| | |
| | | </el-table-column> |
| | | <el-table-column prop="taskStatus" show-overflow-tooltip label="巡查任务状态"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.taskStatus, dictObj.taskStatus) }} |
| | | <span :style="{color: colors?.[row?.taskStatus]}"> |
| | | {{ getDictLabel(row.taskStatus, dictObj.taskStatus) }} |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="executeTime" show-overflow-tooltip label="任务执行时间" /> |
| | |
| | | const activeName = ref('all') |
| | | provide('dictObj', dictObj) |
| | | |
| | | const colors = { |
| | | 0: '#F6A000',//0待签收 |
| | | 1: '#FF0202',//1拒绝签收 |
| | | 2: '#FF0202',//2已撤回 |
| | | 3: '#212BF4',//3待审核 |
| | | 4: '#FF0000',//4审核驳回 |
| | | 5: '#0068F0',//5审核通过 |
| | | 6: '#FD6716',//6待验收 |
| | | 7: '#FF0000',//7拒绝验收 |
| | | 8: '#019612',//8验收通过 |
| | | } |
| | | |
| | | |
| | | // 获取列表 |
| | | async function getList() { |
| | | const range = dateRangeFormat(dateRange.value) |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="status" show-overflow-tooltip label="阶段状态"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.workOrderStatus, dictObj.workOrderStatus).split('_')[0] }} |
| | | <span :style="{color: colors?.[row?.workOrderStatus]}"> |
| | | {{ getDictLabel(row.workOrderStatus, dictObj.workOrderStatus).split('_')[0] }} |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="workOrderStatus" show-overflow-tooltip label="工单状态"> |
| | |
| | | }) |
| | | } |
| | | |
| | | const colors = { |
| | | 10: '#AE00FF', |
| | | 11: '#AE00FF', |
| | | 20: '#002BFF', |
| | | 21: '#002BFF', |
| | | 22: '#002BFF', |
| | | 23: '#002BFF', |
| | | 30: '#FF5106', |
| | | 31: '#FF5106', |
| | | 40: '#FF0000', |
| | | 50: '#008CFF', |
| | | 60: '#019612', |
| | | } |
| | | |
| | | // 删除 |
| | | async function handleDelete(row) { |
| | | const tips = row ? '该条' : '选中的项' |