From 79dda6eb5451d16a148bd5c51f61567e8847b136 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 09 五月 2025 17:42:12 +0800 Subject: [PATCH] 产品结构树引用(借用)部件前端页面 修改原有删除文档接口 --- src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue | 45 +++++++++++++++++++++++++-------------------- 1 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue index a734005..1fed810 100644 --- a/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue +++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue @@ -4,7 +4,7 @@ <div style="display: flex;flex-direction: column;height: 100%"> <div style="display: flex;justify-content: space-between"> <a-input placeholder="杈撳叆鍏抽敭瀛楄繘琛屾悳绱�" allowClear v-model="searchInput" - @change="handleSearchInputChange"/> + @change="handleSearchInputChange" /> <!-- <a-tooltip title="鍒锋柊">--> <!-- <a-button icon="reload" @click="handleTreeReload" style="width: 18%;margin-left: 8px"></a-button>--> <!-- </a-tooltip>--> @@ -31,16 +31,16 @@ @select="handleTreeSelect" @expand="handleTreeExpand" @rightClick="handleTreeRightClick"> <template slot="title" slot-scope="{ label, parentId, key:treeKey,type}"> <ProductStructureTreeContextMenu ref="contextMenuRef" - :treeParams="{label,treeKey,searchValue,type}"/> + :treeParams="{label,treeKey,searchValue,type}" /> </template> - <a-icon slot="switcherIcon" type="down"/> - <a-icon slot="product" type="shopping"/> - <a-icon slot="component" type="camera"/> - <a-icon slot="part" type="hdd"/> - <a-icon slot="processSpecVersion" type="tag"/> - <a-icon slot="process" type="apartment"/> - <a-icon slot="processStep" type="tool"/> + <a-icon slot="switcherIcon" type="down" /> + <a-icon slot="product" type="shopping" /> + <a-icon slot="component" type="camera" /> + <a-icon slot="part" type="hdd" /> + <a-icon slot="processSpecVersion" type="tag" /> + <a-icon slot="process" type="apartment" /> + <a-icon slot="processStep" type="tool" /> </a-tree> </div> </div> @@ -48,23 +48,25 @@ <!--浜у搧寮圭獥--> <ProductModal ref="productModalFormRef" :currentTreeNodeInfo="rightClickSelected" - @submitSuccess="getTreeDataByApi"/> + @submitSuccess="getTreeDataByApi" /> <!--閮ㄤ欢寮圭獥--> - <ComponentModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess"/> + <ComponentModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> <!--闆朵欢寮圭獥--> - <PartModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess"/> + <PartModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> <!--宸ヨ壓瑙勭▼鐗堟湰寮圭獥--> - <ProcessSpecVersionModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess"/> + <ProcessSpecVersionModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> <!--宸ュ簭寮圭獥--> - <ProcessModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess"/> + <ProcessModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> <!--宸ユ寮圭獥--> - <ProcessStepModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess"/> + <ProcessStepModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> <!--鏉冮檺閰嶇疆寮圭獥--> - <AssignPermissionModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess"/> + <AssignPermissionModal :currentTreeNodeInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> <!--妫�绱㈢數瀛愭ā鏉垮脊绐�--> - <NcDocumentSearchModal :currentDocumentInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess"/> + <NcDocumentSearchModal :currentDocumentInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> + <!--寮曠敤閮ㄤ欢--> + <NcComponentBorrowModal :currentBorrowInfo="rightClickSelected" @submitSuccess="modalFormSubmitSuccess" /> <!--浜у搧缁撴瀯鏍戝熀鏈彸閿彍鍗�(绌虹櫧澶勮Е鍙�)--> - <ProductStructureBaseContextMenu ref="baseContextmenuRef"/> + <ProductStructureBaseContextMenu ref="baseContextmenuRef" /> </a-card> </template> @@ -80,8 +82,10 @@ import ProcessStepModal from './ProcessStep/ProcessStepModal' import AssignPermissionModal from './Permission/AssignPermissionModal' import DeviceCustomTypeModal from '@views/dnc/base/modules/ProductStructure/DeviceCustomType/DeviceCustomTypeModal.vue' -import ProductStructureBaseContextMenu from '@views/dnc/base/modules/ProductStructure/ProductStructureBaseContextMenu.vue' +import ProductStructureBaseContextMenu + from '@views/dnc/base/modules/ProductStructure/ProductStructureBaseContextMenu.vue' import NcDocumentSearchModal from '@views/dnc/base/modules/ProductStructure/Document/NcDocumentSearchModal.vue' +import NcComponentBorrowModal from '@views/dnc/base/modules/ProductStructure/Document/NcComponentBorrowModal.vue' export default { name: 'ProductStructureTree', @@ -96,7 +100,8 @@ ComponentModal, ProductModal, ProductStructureTreeContextMenu, - NcDocumentSearchModal + NcDocumentSearchModal, + NcComponentBorrowModal }, data() { return { -- Gitblit v1.9.3