bug:标准入库流程--标准状态改成文本状态,文本状态的内容回显的不对

This commit is contained in:
fanlin
2021-07-26 14:06:39 +08:00
parent c73440cdd5
commit a8483e0c9b
@@ -1076,9 +1076,12 @@
align="center">
</el-table-column>
<el-table-column
prop="standStateShow"
label="标准状态"
prop="textStatus"
label="文本状态"
align="center">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="80">
<template slot-scope="scope">
@@ -1142,6 +1145,7 @@
},
data () {
return {
textStatusMap: {}, // 文本状态id与name对应
standardDrawer: false,
loadSarStandard: false,
verifySarStandard: false,
@@ -1440,6 +1444,13 @@
},
},
methods: {
// 将文本状态的id与name对应
setMap(data){
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
})
console.log(this.textStatusMap, '文本状态的值')
},
clearFormData(data){
this.form = {
// 基础信息
@@ -2129,6 +2140,7 @@
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
this.qcdwOption = res.data.QCDW // 体系类别
this.setMap(this.standStateOptions)
})
this.busVsFunc()
this.modelFunc()