From e231e8eed32682036308bfa38bf7dbbb3b2865c4 Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Thu, 28 Mar 2024 16:16:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86/=E8=AF=91=E6=96=87=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=B3=E8=AF=B7=20=E6=A0=87=E5=87=86=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B/=E6=A0=87=E5=87=86=E7=BC=96=E5=8F=B7=E8=81=94?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/addModal.vue | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue index a5c9918e1..9aa3151c1 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue @@ -133,16 +133,7 @@ export default { StandardApplyForEO: {}, typeList: [], standTypeList: [], - standLbList: [ - { - label: 'GB', - value: 'GB', - }, - { - label: 'GB/T', - value: 'GB/T', - } - ], + standLbList: [], addFormRules: { applyForUnitName: [ { required: true, message: '申请单位不能为空', trigger: 'blur' } ], applyForUserName: [ { required: true, message: '申请人不能为空', trigger: 'blur' } ], @@ -163,9 +154,6 @@ export default { } } }, - mounted () { - this.getDicTypeListCode() - }, methods: { getDicTypeListCode () { this.$http.get('/lawss/standardApplyFor/getStandTypeDropDownData', {}, { @@ -188,6 +176,7 @@ export default { this.StandardApplyForEO = { ...this.StandardApplyForEO } this.$nextTick(() => { this.$refs.addFormRef.clearValidate() + this.getDicTypeListCode() }) }, showModal (item) { @@ -201,11 +190,18 @@ export default { if (value === '') { this.standLbList = [] } - this.$http.get('/lawss/standardApplyFor/getStandLbDropDownData', { dicId: value },res=>{ + this.$http.get('/lawss/standardApplyFor/getStandLbDropDownData', { dicId: value }, { + _this: this + }, res => { if (res.ok) { - this.standLbList = res.data + this.$nextTick(() => { + this.standLbList = res.data + this.$set(this.StandardApplyForEO, 'standLb', null) + }) + return } this.standLbList = [] + this.$set(this.StandardApplyForEO, 'standLb', null) }) }, submit () {