[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"
: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 <user-selection v-model={this.dataSource[index].transferUser}
nameStr={this.dataSource[index].transferUser_dictText}
filedName={this.dataSource[index].taskId}
filedName={this.dataSource[index].taskId + ',' + (this.dataSource[index].projectId || '')}
onChange={this.transferUserChange}
onNameChange={this.userNameChange} showBtn={false}
disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} />
@@ -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 => {