From bfae974cd2e0c37e546b627a3515095ac3ffd2e8 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Sat, 21 Aug 2021 15:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawerDialog/index.vue | 48 ++++++++++++++------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/src/components/drawerDialog/index.vue b/src/components/drawerDialog/index.vue index 6bc3664..b6a0964 100644 --- a/src/components/drawerDialog/index.vue +++ b/src/components/drawerDialog/index.vue @@ -57,8 +57,8 @@ placeholder="报告类型" style="width: 215px" clearable + @change="getDicCodeList" > - row.value === val) + if (!bglxs.length) { + return } + // 3. 获取对应报告类型字典数据 + const bglx = bglxs[0] + this.getDicDataByTypeCode(bglx.code, 'dicCode', bglx.id) }, getNeibuList(type, parentCode, species) { this.api({ @@ -1169,7 +1171,7 @@ export default { this.formTemplate.shebeipinzhongdaima ) this.neibuleibie = JSON.parse(this.formTemplate.neibuleibie) - this.getDicCodeList(this.formTemplate.bglx) + this.getBglxList().then(() => this.getDicCodeList(this.formTemplate.bglx, false)) this.getNeibuList( 'nblb', this.formTemplate.jianyanleibie,