国内外标准法规--编辑页面的手动查找查找的标准的文本状态显示不对,且把标准状态改成文本状态
This commit is contained in:
@@ -112,9 +112,14 @@
|
|||||||
width="130">
|
width="130">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standStateShow"
|
prop="textStatus"
|
||||||
label="标准状态"
|
label="文本状态"
|
||||||
width="130">
|
width="130">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>
|
||||||
|
{{ textStatusMap[scope.row.textStatus] }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
|
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
|
||||||
@@ -178,6 +183,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
textStatus:'',//文本状态
|
||||||
|
textStatusMap: {}, // 文本状态id与name对应
|
||||||
replaceLawsNumModel: false,
|
replaceLawsNumModel: false,
|
||||||
sarBussionessLawsEO: {
|
sarBussionessLawsEO: {
|
||||||
replaceLawsNum: ''
|
replaceLawsNum: ''
|
||||||
@@ -213,6 +220,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data) {
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
|
})
|
||||||
|
},
|
||||||
handleChange (event) {
|
handleChange (event) {
|
||||||
// const value = event.target.value
|
// const value = event.target.value
|
||||||
const value = event
|
const value = event
|
||||||
@@ -336,6 +349,17 @@ export default {
|
|||||||
this.getReplaceLawsNumRow()
|
this.getReplaceLawsNumRow()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async mounted () {
|
||||||
|
// 从数据库中查询各下拉框数据
|
||||||
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||||
|
this.setMap(this.standStateOptions)
|
||||||
|
}, e => {
|
||||||
|
console.log("error");
|
||||||
|
})
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
dataSourceFrom: {
|
dataSourceFrom: {
|
||||||
handler (val) {
|
handler (val) {
|
||||||
|
|||||||
@@ -2196,7 +2196,7 @@ export default {
|
|||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
this.$set(this.textStatusMap, item.value, item.label)
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
})
|
})
|
||||||
console.log(this.textStatusMap, '文本状态的值')
|
console.log(this.textStatusMap, '外面的文本状态的值')
|
||||||
},
|
},
|
||||||
busVsFunc(){
|
busVsFunc(){
|
||||||
this.$http.get('sarVppsTree/list', '', {
|
this.$http.get('sarVppsTree/list', '', {
|
||||||
|
|||||||
Reference in New Issue
Block a user