[update] 修改任务转交传参增加projectId

This commit is contained in:
lideqin
2024-01-17 14:05:16 +08:00
parent 93d5a70c65
commit daf1e54720
@@ -62,7 +62,7 @@
:can-drag="true" :can-drag="true"
:scroll="{x: '100%', y: yScrollHeight}" :scroll="{x: '100%', y: yScrollHeight}"
ref="table" ref="table"
rowKey="taskId" :rowKey="(record) => {return record.taskId + ',' + (record.projectId || '')}"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
@@ -154,7 +154,7 @@ export default {
if (row.state) { if (row.state) {
return <user-selection v-model={this.dataSource[index].transferUser} return <user-selection v-model={this.dataSource[index].transferUser}
nameStr={this.dataSource[index].transferUser_dictText} nameStr={this.dataSource[index].transferUser_dictText}
filedName={this.dataSource[index].taskId} filedName={this.dataSource[index].taskId + ',' + (this.dataSource[index].projectId || '')}
onChange={this.transferUserChange} onChange={this.transferUserChange}
onNameChange={this.userNameChange} showBtn={false} onNameChange={this.userNameChange} showBtn={false}
disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} /> disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} />
@@ -177,8 +177,9 @@ export default {
} }
this.loading = true this.loading = true
const param = {} const param = {}
param.taskId = fieldName param.taskId = fieldName.split(',')[0]
param.transferUser = value param.transferUser = value
param.projectId = fieldName.split(',')[1] || ''
processInfoTransfer(param).then(res => { processInfoTransfer(param).then(res => {
if (res.success) { if (res.success) {
this.$message.success(res.message) this.$message.success(res.message)
@@ -207,8 +208,9 @@ export default {
const params = [] const params = []
for (const item of this.selectedRowKeys) { for (const item of this.selectedRowKeys) {
const param = {} const param = {}
param.taskId = item param.taskId = item.split(',')[0]
param.transferUser = value param.transferUser = value
param.projectId = item.split(',')[1] || ''
params.push(param) params.push(param)
} }
processInfoBatchTransfer(params).then(res => { processInfoBatchTransfer(params).then(res => {