diff --git a/src/views/personalCenter/taskCareOf/table/ProcessInfo.vue b/src/views/personalCenter/taskCareOf/table/ProcessInfo.vue index 10fc5251..2a2d22ae 100644 --- a/src/views/personalCenter/taskCareOf/table/ProcessInfo.vue +++ b/src/views/personalCenter/taskCareOf/table/ProcessInfo.vue @@ -62,7 +62,7 @@ :can-drag="true" :scroll="{x: '100%', y: yScrollHeight}" ref="table" - rowKey="taskId" + :rowKey="(record) => {return record.taskId + ',' + (record.projectId || '')}" :columns="columns" :dataSource="dataSource" :pagination="ipagination" @@ -154,7 +154,7 @@ export default { if (row.state) { return @@ -177,8 +177,9 @@ export default { } this.loading = true const param = {} - param.taskId = fieldName + param.taskId = fieldName.split(',')[0] param.transferUser = value + param.projectId = fieldName.split(',')[1] || '' processInfoTransfer(param).then(res => { if (res.success) { this.$message.success(res.message) @@ -207,8 +208,9 @@ export default { const params = [] for (const item of this.selectedRowKeys) { const param = {} - param.taskId = item + param.taskId = item.split(',')[0] param.transferUser = value + param.projectId = item.split(',')[1] || '' params.push(param) } processInfoBatchTransfer(params).then(res => {