From 7fbe0f95cf428eb516f9015adae8bbe4baf539d4 Mon Sep 17 00:00:00 2001 From: hyingbo <1363390067@qq.com> Date: 星期五, 25 七月 2025 11:01:15 +0800 Subject: [PATCH] 安灯管理列表筛选条件修改 --- src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue index ac589c8..a109dca 100644 --- a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue +++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue @@ -47,12 +47,12 @@ :size="containerSize"/> </a-tab-pane> - <a-tab-pane :key="4" tab="浣跨敤璁惧" v-if="+currentLevelInfo.attributionType===5"> + <a-tab-pane :key="4" tab="浣跨敤璁惧" v-if="currentLevelInfo.classificationId_dictText==='nc'"> <UseDocumentEquipmentTableList ref="useDocumentEquipmentTableRef" :currentDocumentInfo="currentLevelInfo" :size="containerSize"/> </a-tab-pane> - <a-tab-pane :key="5" tab="鍒�鍏峰垪琛�"> + <a-tab-pane :key="5" tab="鍒�鍏峰垪琛�" v-if="currentLevelInfo.classificationId_dictText==='nc'"> <CutterTableList ref="cutterTableListRef" :currentLevelInfo="currentLevelInfo" :size="containerSize"/> </a-tab-pane> @@ -60,7 +60,7 @@ <DocumentInfoFlow ref="flowTableListRef" :currentLevelDetails="currentLevelInfo" :size="containerSize"/> </a-tab-pane> - <a-tab-pane :key="7" tab="鎵规鍒楄〃"> + <a-tab-pane :key="7" tab="鎵规鍒楄〃" v-if="currentLevelInfo.classificationId_dictText==='nc'"> <GuideCardBatchList ref="guideCardBatchInfoRef" :guideCardBatchInfo="currentLevelInfo" :size="containerSize"/> </a-tab-pane> @@ -129,7 +129,14 @@ this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData) this.getCutterListDisplayPermission('dnc_cutter_process', 'isProcessHasCutterList') this.getCutterListDisplayPermission('dnc_cutter_step', 'isProcessStepHasCutterList') + this.$bus.$on('reloadCutterList', this.reloadCutterList) }, + + // 鍦╞eforeDestroy閽╁瓙涓Щ闄� + beforeDestroy() { + this.$bus.$off('reloadCutterList', this.reloadCutterList) + }, + methods: { /** * 鑾峰彇鍒�鍏峰垪琛ㄥ湪宸ュ簭鍜屽伐姝ュ眰绾х殑灞曠ず鏉冮檺 @@ -144,6 +151,12 @@ }) }, + reloadCutterList() { + if (this.$refs.cutterTableListRef) { + this.$refs.cutterTableListRef.searchQuery(1) + } + }, + /** * 鎺ユ敹鏍戠粍浠朵互鍙婅〃鏍间紶鏉ョ殑褰撳墠閫変腑鎴栫偣鍑荤殑椤逛俊鎭� * @param levelInfo 褰撳墠灞傜骇淇℃伅 -- Gitblit v1.9.3