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"> 删除 + + + + + +