From 731aba2c941d2d569ed38189dbed381a378d5e66 Mon Sep 17 00:00:00 2001 From: jiayang yue Date: Wed, 26 Mar 2025 17:18:49 +0800 Subject: [PATCH] =?UTF-8?q?2025.03.24=20=E6=96=87=E6=A1=A3=E6=94=B6?= =?UTF-8?q?=E9=9B=86=E7=B3=BB=E7=BB=9F=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/eam/com_project_proof_record.vue | 23 +++++--- src/views/modules/eam/eamProjectPartInfo.vue | 57 +++++++++++++++---- 2 files changed, 61 insertions(+), 19 deletions(-) diff --git a/src/views/modules/eam/com_project_proof_record.vue b/src/views/modules/eam/com_project_proof_record.vue index 64ad549..0bf0025 100644 --- a/src/views/modules/eam/com_project_proof_record.vue +++ b/src/views/modules/eam/com_project_proof_record.vue @@ -555,6 +555,7 @@ 1) { + // 只保留最后选择的那一行 + const lastRow = selection[selection.length - 1]; + // 清除所有选择 + this.$refs.copyDocumentTable.clearSelection(); + // 选中最后一次选择的那一行 + this.$refs.copyDocumentTable.toggleRowSelection(lastRow, true); + // 如有需要,可以将选中行存储到一个 data 变量中 + this.documentCopySelection = [lastRow]; + } else { + this.documentCopySelection = selection; + } }, //初始化组件的参数 init(inData,authUpdate) { @@ -1861,12 +1873,6 @@ documentType: row.documentType, documentId: row.documentId, } - if (tempData.createBy !== tempData.username) { - this.$message({ - message: '只有上传人才能删除该文件', - type: 'warning' - }) - }else { this.$confirm('是否删除该打样文档的文件?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -1894,7 +1900,6 @@ message: '已取消删除' }); }); - } }, searchDocumentTypeList() { this.searchDocumentTypeData.proofingId = this.modalData.proofingId diff --git a/src/views/modules/eam/eamProjectPartInfo.vue b/src/views/modules/eam/eamProjectPartInfo.vue index 752a2ed..6e01617 100644 --- a/src/views/modules/eam/eamProjectPartInfo.vue +++ b/src/views/modules/eam/eamProjectPartInfo.vue @@ -414,6 +414,7 @@ v-loading="dataListLoading" :row-class-name="tableRowClassName"> 删除 + + + + + +