| | |
| | | </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 ? '该条' : '选中的项' |