From 81dd2bf5fca9019038d3bd5cca2bd9aea76c0cb5 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Tue, 31 Aug 2021 15:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=20=E5=9B=BD=E5=86=85=E5=A4=96=E6=A0=87?= =?UTF-8?q?=E5=87=86=E6=B3=95=E8=A7=84--=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=89=8B=E5=8A=A8=E6=9F=A5=E6=89=BE=E6=9F=A5?= =?UTF-8?q?=E6=89=BE=E7=9A=84=E6=A0=87=E5=87=86=E7=9A=84=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AF=B9=EF=BC=8C?= =?UTF-8?q?=E4=B8=94=E6=8A=8A=E6=A0=87=E5=87=86=E7=8A=B6=E6=80=81=E6=94=B9?= =?UTF-8?q?=E6=88=90=E6=96=87=E6=9C=AC=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InputForStandards.vue | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/components/CustomFormComponents/InputForStandards.vue b/src/components/CustomFormComponents/InputForStandards.vue index 946f39711..39274d02a 100644 --- a/src/components/CustomFormComponents/InputForStandards.vue +++ b/src/components/CustomFormComponents/InputForStandards.vue @@ -106,9 +106,12 @@ + {{$t('m.dataAcquisition')}} @@ -168,6 +171,8 @@ export default { }, data () { return { + textStatus:'',//文本状态 + textStatusMap: {}, // 文本状态id与name对应 replaceLawsNumModel: false, sarBussionessLawsEO: { replaceLawsNum: '' @@ -203,7 +208,22 @@ export default { return !!this.config.isMust } }, + mounted() { + //从数据库中查询下拉框数据 + this.$http.get("sys/dictype/getDicTypeListCode", {}, { + _this: this + }, res => { + this.standStateOptions = res.data.WBZTCLASS; // 文本状态 + this.setMap(this.standStateOptions); + }); + }, 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