From 18e90fabbf22da3f168d020989609c3de83e9670 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 17 三月 2025 10:14:08 +0800 Subject: [PATCH] DNC产品结构树页面新增点击设备类后展示设备类下挂载的设备列表 --- src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue index ddaa77d..518c220 100644 --- a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue +++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue @@ -22,13 +22,18 @@ <ProcessStepInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/> </a-tab-pane> + <a-tab-pane :key="1" tab="璁惧鍒楄〃" v-if="currentLevelInfo.hasOwnProperty('deviceManagementId')"> + <UseDeviceCustomTypeEquipmentTableList ref="useTypeEquipmentTableListRef" + :currentLevelDetails="currentLevelInfo" :size="containerSize"/> + </a-tab-pane> + <!--绯荤粺鍙傛暟閰嶇疆涓嫢鍙傛暟涓�1鏃舵墠灞曠ず瀵瑰簲灞傜骇鐨勫垁鍏峰垪琛�--> <a-tab-pane :key="2" tab="鍒�鍏峰垪琛�" v-if="+currentLevelInfo.type===5&&isProcessHasCutterList||+currentLevelInfo.type===6&&isProcessStepHasCutterList"> <CutterTableList ref="cutterTableListRef" :currentLevelInfo="currentLevelInfo" :size="containerSize"/> </a-tab-pane> - <template v-if="currentLevelInfo.hasOwnProperty('attributionType')"> + <template v-if="currentLevelInfo.hasOwnProperty('docId')"> <a-tab-pane :key="1" tab="鏂囨。灞炴��"> <DocumentInfo :currentLevelDetails="currentLevelInfo" :size="containerSize"/> </a-tab-pane> @@ -68,10 +73,13 @@ import FilePreview from '../../../common/FilePreview' import TableContextMenu from '../../../common/TableContextMenu' import { getAction } from '@/api/manage' +import UseDeviceCustomTypeEquipmentTableList + from '@views/dnc/base/modules/ProductStructure/DeviceCustomType/UseDeviceCustomTypeEquipmentTableList.vue' export default { name: 'ProductStructureMainBottom', components: { + UseDeviceCustomTypeEquipmentTableList, CutterTableList, TableContextMenu, FilePreview, @@ -97,6 +105,7 @@ }, created() { this.$bus.$on('sendCurrentClickedDocumentInfo', this.receiveCurrentLevelInfo) + this.$bus.$on('sendCurrentClickedTypeInfo', this.receiveCurrentLevelInfo) this.$bus.$on('sendCurrentTreeNodeInfo', this.receiveCurrentLevelInfo) this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData) this.getCutterListDisplayPermission('dnc_cutter_process', 'isProcessHasCutterList') @@ -123,6 +132,13 @@ receiveCurrentLevelInfo(levelInfo) { this.currentLevelInfo = levelInfo this.activeTabKey = 1 + this.$nextTick(() => { + if (this.$refs.useTypeEquipmentTableListRef) { + this.$refs.useTypeEquipmentTableListRef.setQueryParamAndLoadData() + this.hasLoadedDataTabKeyArray.push(this.activeTabKey) + return + } + }) this.hasLoadedDataTabKeyArray = [] }, -- Gitblit v1.9.3