From b276638aa877436e04156fe72fbcd7c5a396ee93 Mon Sep 17 00:00:00 2001 From: liulixin Date: Mon, 15 Jan 2024 16:31:17 +0800 Subject: [PATCH] hiddenRegionTree bug --- .../inspection/components/add.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/safetyenvironmental/inspection/components/add.vue b/src/views/safetyenvironmental/inspection/components/add.vue index b00583f..76bede6 100644 --- a/src/views/safetyenvironmental/inspection/components/add.vue +++ b/src/views/safetyenvironmental/inspection/components/add.vue @@ -458,6 +458,7 @@ export default { await this.getDict() await this.handleAdd() await this.getEditMyInfo() + await this.getHiddenReginTreeListData() loading.close() }, mounted() { @@ -1048,6 +1049,23 @@ export default { openConfirm() { this.$refs.confirm.init() }, + + // 获取隐患部位 下拉树 + getHiddenReginTreeListData() { + return new Promise((resolve) => { + this.treeLoading = true + requestFN( + '/hiddenRegion/listAll', + {} + ).then((data) => { + this.treeLoading = false + this.hiddenPartList = JSON.parse(data.zTreeNodes) + resolve('ok') + }).catch((e) => { + this.treeLoading = false + }) + }) + }, getProposal(information) { this.form.CONFIRM_MESSAGE = information.INSPECTION_USER_OPINION this.form.CONFIRM_MESSAGE_SIGN = information.INSPECTION_USER_SIGN_IMG