From 87c0c5e680d467f2e618c6aa3cd78b7e7faa747d Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期五, 14 二月 2025 15:00:08 +0800 Subject: [PATCH] 设备结构树: 1、实现文档批量删除功能 2、实现文档列表的排序以及筛选功能 3、实现树节点车间与设备的权限配置功能 系统管理:删除DNC部门管理页面以及在菜单管理中删除对应菜单 --- 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