Browse Source

修复部分bug

dev-xx
qb 8 months ago
parent
commit
5f0e4b3c37
  1. 4
      src/option/distribution/abnormalList.js
  2. 31
      src/views/distribution/artery/abnormalList.vue

4
src/option/distribution/abnormalList.js

@ -32,7 +32,7 @@ export const columnList = [
{ {
prop: 'abnormalTypeName', prop: 'abnormalTypeName',
label: '异常类型', label: '异常类型',
type: 3, type: 14,
values: '', values: '',
width: '130', width: '130',
checkarr: [ checkarr: [
@ -139,7 +139,7 @@ export const columnList = [
{ {
prop: 'abnormalStatusName', prop: 'abnormalStatusName',
label: '异常状态', label: '异常状态',
type: 3, type: 14,
values: '', values: '',
width: '130', width: '130',
checkarr: [ checkarr: [

31
src/views/distribution/artery/abnormalList.vue

@ -83,6 +83,29 @@
@selection="selectionChange" @selection="selectionChange"
> >
<template #default="slotProps"> <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 === '操作'"> <template v-if="slotProps.scope.column.label === '操作'">
<el-text <el-text
v-if="Number(slotProps.scope.row.abnormalStatus) === 0" v-if="Number(slotProps.scope.row.abnormalStatus) === 0"
@ -470,4 +493,12 @@ const handleSynchronization = () => {
.fwb { .fwb {
font-weight: bold; font-weight: bold;
} }
:deep(.el-tag) {
border: none;
&.blue {
background: var(--el-color-primary);
}
}
</style> </style>

Loading…
Cancel
Save