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) {