From 978d02a3dd9471046ae5a92edd7f767918e71236 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期四, 13 二月 2025 15:14:49 +0800 Subject: [PATCH] 产品结构树删除节点接口参数改变,提交后由后端测试 --- src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue index e4191af..e73697e 100644 --- a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue +++ b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue @@ -12,7 +12,7 @@ <script> import { getAction } from '@/api/manage' import { JeecgListMixin } from '@/mixins/JeecgListMixin' - import DocumentModal from './DocumentModal' + import DocumentModal from '../../../../common/DocumentModal' export default { name: 'OtherDocumentTableList', @@ -48,10 +48,18 @@ { title: '涓婁紶鏃堕棿', dataIndex: 'createTime', align: 'center' } ], dataSource: [], - currentDocumentInfo: {}, + currentClickedDocumentInfo: {}, url: { list: '/nc/doc/find/page' } + } + }, + watch: { + currentTreeNodeInfo: { + handler(value) { + this.currentClickedDocumentInfo = {} + }, + immediate: true } }, created() { @@ -97,8 +105,8 @@ this.$emit('handleTableContextMenuOpen', { ...record, param: 'OTHER' }) }, click: () => { - if (this.currentDocumentInfo.docId === record.docId) return - this.currentDocumentInfo = Object.assign({}, record) + if (this.currentClickedDocumentInfo.docId === record.docId) return + this.currentClickedDocumentInfo = Object.assign({}, record) this.$bus.$emit('sendCurrentClickedDocumentInfo', record) } } @@ -110,8 +118,12 @@ this.$refs.modalForm.title = modalTitle }, + handleDelete() { + // 姝ゅ鍑芥暟涓哄睆钄絤ixins涓殑鍚屽悕鍑芥暟锛岄�氱敤鍑芥暟鍐欏湪鐖剁骇涓� + }, + triggerCorrespondingMethod({ methodName, level, modalTitle, tableRowInfo }) { - if (this[methodName] && tableRowInfo.attributionType === 1) this[methodName](tableRowInfo, modalTitle) + if (this[methodName] && tableRowInfo.param === 'OTHER') this[methodName](tableRowInfo, modalTitle) } } } -- Gitblit v1.9.3