diff --git a/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue b/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue index 1cce90a58..18586f89e 100644 --- a/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue +++ b/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue @@ -124,7 +124,7 @@ width="130"> diff --git a/src/components/CustomFormComponents/InputForStandardsForForeign.vue b/src/components/CustomFormComponents/InputForStandardsForForeign.vue index 303fce717..bcd048c27 100644 --- a/src/components/CustomFormComponents/InputForStandardsForForeign.vue +++ b/src/components/CustomFormComponents/InputForStandardsForForeign.vue @@ -112,9 +112,14 @@ width="130"> + {{$t('m.dataAcquisition')}} @@ -178,6 +183,8 @@ export default { }, data() { return { + textStatus:'',//文本状态 + textStatusMap: {}, // 文本状态id与name对应 replaceLawsNumModel: false, sarBussionessLawsEO: { replaceLawsNum: '' @@ -213,6 +220,12 @@ export default { } }, methods: { + // 将文本状态的id与name对应 + setMap(data) { + data.forEach(item => { + this.$set(this.textStatusMap, item.value, item.label) + }) + }, handleChange (event) { // const value = event.target.value const value = event @@ -336,6 +349,17 @@ export default { 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: { dataSourceFrom: { handler (val) { diff --git a/src/pages/config/pages/mechanismManage/index.vue b/src/pages/config/pages/mechanismManage/index.vue index bf1e90b44..bd978749c 100644 --- a/src/pages/config/pages/mechanismManage/index.vue +++ b/src/pages/config/pages/mechanismManage/index.vue @@ -27,6 +27,32 @@
+ +
+ + + + + + + + + + + + + + 查询 + + + + + 清空 + + + +
{ + console.log(res.data) res.data.forEach((item) => { var NameList = '' item.positions.forEach((items) => { diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index 6d8ab71ef..1669d43ce 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -2196,7 +2196,7 @@ export default { data.forEach(item => { this.$set(this.textStatusMap, item.value, item.label) }) - console.log(this.textStatusMap, '文本状态的值') + console.log(this.textStatusMap, '外面的文本状态的值') }, busVsFunc(){ this.$http.get('sarVppsTree/list', '', {