首页 文本状态---标准状态
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
width="120"
|
width="120"
|
||||||
label="文本状态">
|
label="标准状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -74,7 +74,7 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], //标准发布数据
|
||||||
textStatusMap: {} // 文本状态id与name对应
|
textStatusMap: {} // 标准状态id与name对应
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -84,7 +84,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
|
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
|
||||||
this.setMap(res.data.WBZTCLASS) // 文本状态
|
this.setMap(res.data.WBZTCLASS) // 标准状态
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -107,7 +107,7 @@ export default {
|
|||||||
togo () {
|
togo () {
|
||||||
this.$router.push({path:'/releaseUs2'})
|
this.$router.push({path:'/releaseUs2'})
|
||||||
},
|
},
|
||||||
// 将文本状态的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)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
width="120"
|
width="120"
|
||||||
label="文本状态">
|
label="标准状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -75,7 +75,7 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], //标准发布数据
|
||||||
textStatusMap: {} // 文本状态id与name对应
|
textStatusMap: {} // 标准状态id与name对应
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
|
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
|
||||||
this.setMap(res.data.WBZTCLASS) // 文本状态
|
this.setMap(res.data.WBZTCLASS) // 标准状态
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -114,7 +114,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 将文本状态的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)
|
||||||
|
|||||||
Reference in New Issue
Block a user