| | |
| | | |
| | | <el-table v-loading="loading" :data="taskList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="任务编号" align="center" prop="taskCode"> |
| | | <el-table-column label="任务编号" align="center" prop="taskCode" min-width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="text" |
| | | @click="handleView(scope.row)" |
| | | v-hasPermi="['task:general:query']" |
| | | style="font-family: 'Courier New', monospace; font-size: 13px;" |
| | | >{{ scope.row.taskCode }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <dict-tag :options="dict.type.sys_task_type" :value="scope.row.taskType"/> |
| | | <el-tag v-if="scope.row.taskType === 'EMERGENCY_TRANSFER'" type="danger" size="mini" style="margin-left: 5px;"> |
| | | <i class="el-icon-warning"></i> |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="同步状态" align="center" prop="syncStatus" width="120" v-if="hasEmergencyTask"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.taskType !== 'EMERGENCY_TRANSFER'" style="color: #C0C4CC;">--</span> |
| | | <el-tag v-else-if="!scope.row.emergencyInfo" type="info" size="mini">--</el-tag> |
| | | <el-tag v-else-if="scope.row.emergencyInfo.syncStatus === 0" type="info" size="mini"> |
| | | <i class="el-icon-warning"></i> 未同步 |
| | | </el-tag> |
| | | <el-tag v-else-if="scope.row.emergencyInfo.syncStatus === 1" type="warning" size="mini"> |
| | | <i class="el-icon-loading"></i> 同步中 |
| | | </el-tag> |
| | | <el-tag v-else-if="scope.row.emergencyInfo.syncStatus === 2" type="success" size="mini"> |
| | | <i class="el-icon-success"></i> 已同步 |
| | | </el-tag> |
| | | <el-tag v-else-if="scope.row.emergencyInfo.syncStatus === 3" type="danger" size="mini"> |
| | | <i class="el-icon-error"></i> 同步失败 |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="计划开始时间" align="center" prop="plannedStartTime" width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.plannedStartTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> |
| | | <span v-if="scope.row.plannedStartTime">{{ parseTime(scope.row.plannedStartTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> |
| | | <span v-else style="color: #C0C4CC;">--</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="计划结束时间" align="center" prop="plannedEndTime" width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.plannedEndTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="创建人" align="center" prop="creatorName" /> |
| | | <el-table-column label="执行人" align="center" prop="assigneeName" /> |
| | | <el-table-column label="创建时间" align="center" prop="createTime" width="180"> |
| | |
| | | total: 0, |
| | | // 任务管理表格数据 |
| | | taskList: [], |
| | | // 是否有急救转运任务(用于控制同步状态列显示) |
| | | hasEmergencyTask: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | listTask(this.queryParams).then(response => { |
| | | this.taskList = response.rows; |
| | | this.total = response.total; |
| | | // 检查是否有急救转运任务,用于控制同步状态相关列的显示 |
| | | this.hasEmergencyTask = this.taskList.some(task => task.taskType === 'EMERGENCY_TRANSFER'); |
| | | this.loading = false; |
| | | }); |
| | | }, |