设备巡检状态文案更改
This commit is contained in:
parent
855e6c3198
commit
42d6a8addc
|
|
@ -235,12 +235,12 @@ export default {
|
||||||
// { label: '禁用', value: 40 },
|
// { label: '禁用', value: 40 },
|
||||||
// ],
|
// ],
|
||||||
results_: {
|
results_: {
|
||||||
'pass': '合格',
|
'pass': '正常',
|
||||||
'fail': '不合格',
|
'fail': '异常',
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{ id: 'pass', name: '合格' },
|
{ id: 'pass', name: '正常' },
|
||||||
{ id: 'fail', name: '不合格' }
|
{ id: 'fail', name: '异常' }
|
||||||
],
|
],
|
||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@
|
||||||
<el-table-column label="巡检结果">
|
<el-table-column label="巡检结果">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.result == 'pass'" type="success">
|
<el-tag v-if="scope.row.result == 'pass'" type="success">
|
||||||
合格
|
正常
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag v-else type="danger">
|
<el-tag v-else type="danger">
|
||||||
不合格
|
异常
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue