From 2ceb99a629b70a3d63154656b534dcc603af78e7 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期五, 14 二月 2025 13:55:45 +0800 Subject: [PATCH] 1、调整产品和设备结构树权限配置分配用户时,admin只有在分配后或者有权限时才会被禁用 --- src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue index 308ce66..5de5c43 100644 --- a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue +++ b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue @@ -1,10 +1,10 @@ <template> <a-tabs style="height: 100%" v-model="activeTabKey" @change="handleTabChange"> - <a-tab-pane :key="1" tab="璁惧灞炴��" v-if="currentTreeNodeInfo.equipmentId"> + <a-tab-pane :key="1" tab="璁惧灞炴��" v-if="currentTreeNodeInfo.type===2&&!currentDocumentInfo.docId"> <DeviceInfo :currentLevelDetails="currentTreeNodeInfo.entity" :size="containerSize"/> </a-tab-pane> - <template v-else> + <template v-if="currentDocumentInfo.docId"> <a-tab-pane :key="1" tab="鏂囨。灞炴��"> <DocumentInfo :currentLevelDetails="currentDocumentInfo" :size="containerSize"/> </a-tab-pane> @@ -55,6 +55,14 @@ hasLoadedDataTabKeyArray: [] } }, + watch: { + currentTreeNodeInfo: { + handler(value) { + this.currentDocumentInfo = {} + }, + immediate: true + } + }, created() { this.$bus.$on('sendCurrentClickedDocumentInfo', this.receiveCurrentDocumentInfo) this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData) -- Gitblit v1.9.3