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