我的提问的文本状态改为标准状态

This commit is contained in:
zhoulingpo
2023-12-06 10:23:00 +08:00
parent 6ec8a1657f
commit 623575fa16
@@ -1035,7 +1035,7 @@
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
width="110" width="110"
label="文本状态"> label="标准状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' " style="color: #F56C6C">{{ <span v-if="textStatusMap[scope.row.textStatus] === '废止' " style="color: #F56C6C">{{
textStatusMap[scope.row.textStatus] textStatusMap[scope.row.textStatus]
@@ -1150,7 +1150,7 @@
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
width="110" width="110"
label="文本状态"> label="标准状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止'" style="color: #F56C6C">{{ <span v-if="textStatusMap[scope.row.textStatus] === '废止'" style="color: #F56C6C">{{
textStatusMap[scope.row.textStatus] textStatusMap[scope.row.textStatus]
@@ -1224,7 +1224,7 @@
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="标准状态"
width="110" width="110"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -1322,7 +1322,7 @@ export default {
validFlag: '0', validFlag: '0',
menuId: 'nomenu' menuId: 'nomenu'
}, },
textStatusMap: {},// 文本状态id与name对应 textStatusMap: {},// 标准状态id与name对应
textState: [], textState: [],
standModel: false, standModel: false,
lawInfoTableLoading: true, lawInfoTableLoading: true,
@@ -1415,8 +1415,8 @@ export default {
_this: this, _this: this,
loading: "loading" loading: "loading"
}, res => { }, res => {
this.setMap(res.data.WBZTCLASS);// 文本状态 this.setMap(res.data.WBZTCLASS);// 标准状态
this.textState = res.data.WBZTCLASS // 文本状态 this.textState = res.data.WBZTCLASS // 标准状态
this.pubOptions = res.data.DYGGWT //问答公共问题 this.pubOptions = res.data.DYGGWT //问答公共问题
}, e => { }, e => {
}); });
@@ -1530,7 +1530,7 @@ export default {
}); });
window.open(routeUrl.href, "_blank"); window.open(routeUrl.href, "_blank");
}, },
// 将文本状态的id与name对应 // 将标准状态的id与name对应
setMap(data) { setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)