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,