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',
label: '异常类型',
type: 3,
type: 14,
values: '',
width: '130',
checkarr: [
@ -139,7 +139,7 @@ export const columnList = [
{
prop: 'abnormalStatusName',
label: '异常状态',
type: 3,
type: 14,
values: '',
width: '130',
checkarr: [

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

@ -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>

Loading…
Cancel
Save