|
|
|
@ -83,6 +83,29 @@
|
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<template v-if="slotProps.scope.column.label === '异常类型'"> |
|
|
|
|
<el-tag |
|
|
|
|
:class="{ |
|
|
|
|
red: Number(slotProps.scope.row.abnormalType) === 1, |
|
|
|
|
green: Number(slotProps.scope.row.abnormalType) === 2, |
|
|
|
|
blue: Number(slotProps.scope.row.abnormalType) === 3, |
|
|
|
|
}" |
|
|
|
|
> |
|
|
|
|
{{ slotProps.scope.row.abnormalTypeName }} |
|
|
|
|
</el-tag> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="slotProps.scope.column.label === '异常状态'"> |
|
|
|
|
<el-tag |
|
|
|
|
:class="{ |
|
|
|
|
red: Number(slotProps.scope.row.abnormalStatus) === 0, |
|
|
|
|
green: Number(slotProps.scope.row.abnormalStatus) === 1, |
|
|
|
|
}" |
|
|
|
|
> |
|
|
|
|
{{ slotProps.scope.row.abnormalStatusName }} |
|
|
|
|
</el-tag> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="slotProps.scope.column.label === '操作'"> |
|
|
|
|
<el-text |
|
|
|
|
v-if="Number(slotProps.scope.row.abnormalStatus) === 0" |
|
|
|
@ -470,4 +493,12 @@ const handleSynchronization = () => {
|
|
|
|
|
.fwb { |
|
|
|
|
font-weight: bold; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
:deep(.el-tag) { |
|
|
|
|
border: none; |
|
|
|
|
|
|
|
|
|
&.blue { |
|
|
|
|
background: var(--el-color-primary); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|