首页 文本状态---标准状态

This commit is contained in:
zhoulingpo
2023-12-07 17:00:32 +08:00
parent 81f132acb3
commit 3f40228d09
2 changed files with 8 additions and 8 deletions
@@ -42,7 +42,7 @@
</el-table-column>
<el-table-column
width="120"
label="文本状态">
label="标准状态">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textState] }}</span>
</template>
@@ -74,7 +74,7 @@ export default {
total: 0,
putTime: '',
standardReleaseList: [], //标准发布数据
textStatusMap: {} // 文本状态id与name对应
textStatusMap: {} // 标准状态id与name对应
}
},
computed: {},
@@ -84,7 +84,7 @@ export default {
_this: this
}, res => {
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
this.setMap(res.data.WBZTCLASS) // 文本状态
this.setMap(res.data.WBZTCLASS) // 标准状态
}
}, e => {
})
@@ -107,7 +107,7 @@ export default {
togo () {
this.$router.push({path:'/releaseUs2'})
},
// 将文本状态的id与name对应
// 将标准状态的id与name对应
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
@@ -45,7 +45,7 @@
</el-table-column>
<el-table-column
width="120"
label="文本状态">
label="标准状态">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textState] }}</span>
</template>
@@ -75,7 +75,7 @@ export default {
total: 0,
putTime: '',
standardReleaseList: [], //标准发布数据
textStatusMap: {} // 文本状态id与name对应
textStatusMap: {} // 标准状态id与name对应
}
},
computed: {},
@@ -85,7 +85,7 @@ export default {
_this: this
}, res => {
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
this.setMap(res.data.WBZTCLASS) // 文本状态
this.setMap(res.data.WBZTCLASS) // 标准状态
}
}, e => {
})
@@ -114,7 +114,7 @@ export default {
}
this.getAdvice()
},
// 将文本状态的id与name对应
// 将标准状态的id与name对应
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)