[update] 修改任务转交-流程信息转交增加user字段

This commit is contained in:
lideqin
2024-02-07 14:20:13 +08:00
parent 717e08b1c4
commit 401dc9b02f
@@ -62,7 +62,7 @@
:can-drag="true"
:scroll="{x: '100%', y: yScrollHeight}"
ref="table"
:rowKey="(record) => {return record.taskId + ',' + (record.projectId || '') + ',' + record.id + ',' + record.prcType}"
:rowKey="(record) => {return record.taskId + ',' + (record.projectId || '') + ',' + record.id + ',' + record.prcType + ',' + record.user}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
@@ -160,7 +160,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 + ',' + (this.dataSource[index].projectId || '') + ',' + this.dataSource[index].id + ',' + this.dataSource[index].prcType}
filedName={this.dataSource[index].taskId + ',' + (this.dataSource[index].projectId || '') + ',' + this.dataSource[index].id + ',' + this.dataSource[index].prcType + ',' + this.dataSource[index].user}
onChange={this.transferUserChange}
onNameChange={this.userNameChange} showBtn={false}
disabled={this.disabled} type={'radio'} placeholder={this.$t('pleaseSelect')} />
@@ -188,6 +188,7 @@ export default {
param.projectId = fieldName.split(',')[1] || ''
param.id = fieldName.split(',')[2] || ''
param.prcType = fieldName.split(',')[3] || ''
param.user = fieldName.split(',')[4] || ''
processInfoTransfer(param).then(res => {
if (res.success) {
this.$message.success(res.message)
@@ -198,7 +199,7 @@ export default {
})
},
userNameChange (value, fieldName) {
const data = this.dataSource.find(item => (item.taskId + ',' + (item.projectId || '') + ',' + item.id + ',' + item.prcType) === fieldName)
const data = this.dataSource.find(item => (item.taskId + ',' + (item.projectId || '') + ',' + item.id + ',' + item.prcType + ',' + item.user) === fieldName)
data.transferUser_dictText = value
},
// 批量转交
@@ -220,6 +221,7 @@ export default {
param.projectId = item.split(',')[1] || ''
param.id = item.split(',')[2] || ''
param.prcType = item.split(',')[3] || ''
param.user = item.split(',')[4] || ''
params.push(param)
}
processInfoBatchTransfer(params).then(res => {