From 87398e1cf491803494ba65d741ac56d05a8998b4 Mon Sep 17 00:00:00 2001 From: danshihao Date: Mon, 8 Jul 2024 19:36:19 +0800 Subject: [PATCH] =?UTF-8?q?[fix=2086924]=20=E5=88=86=E5=8F=91=E8=B5=84?= =?UTF-8?q?=E6=96=99-=E5=88=86=E5=8F=91id=E6=94=B9=E6=88=90=E5=8F=96fileId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkingGroupProjectDataMaintenance.vue | 9 ++++++--- .../modules/WorkGroupDistributeModule.vue | 8 +++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue b/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue index eb09dee..81ae2df 100644 --- a/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue +++ b/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue @@ -57,7 +57,7 @@ - 分发 + 分发 下载 删除 @@ -79,6 +79,7 @@ :project-type="projectType" :is-batch="isBatchDistribute" :record-id="dataId" + :file-id="fileId" @ok="modalFormOk"> @@ -158,6 +159,7 @@ export default { distributeModalVisible: false, isBatchDistribute: false, dataId: '', // 资料id,传给分发 + fileId: '', // 文件id, 单个分发时查询用 canOperate: true // 是否可操作(负责人B不可操作) } }, @@ -209,8 +211,9 @@ export default { /** * 分发 */ - handleDistribute(id) { - this.dataId = id + handleDistribute(record) { + this.fileId = record.fileId + this.dataId = record.id this.distributeModalVisible = true this.isBatchDistribute = false }, diff --git a/src/views/projectManagement/modules/WorkGroupDistributeModule.vue b/src/views/projectManagement/modules/WorkGroupDistributeModule.vue index 74d04dc..01b045d 100644 --- a/src/views/projectManagement/modules/WorkGroupDistributeModule.vue +++ b/src/views/projectManagement/modules/WorkGroupDistributeModule.vue @@ -207,6 +207,12 @@ export default { type: Boolean, required: false, default: false + }, + // 单个分发时的文件Id + fileId: { + type: String, + required: false, + default: null } }, watch: { @@ -265,7 +271,7 @@ export default { } // 非批量上传的时候传当前选中的文件id if(!this.isBatch) { - param.fileId = this.recordId + param.fileId = this.fileId } distributeMemberList(param).then(res => { if (res.success) {