[update] 修改任务转交-流程信息转交增加user字段
This commit is contained in:
@@ -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="(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"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@@ -160,7 +160,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 + ',' + (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}
|
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')} />
|
||||||
@@ -188,6 +188,7 @@ export default {
|
|||||||
param.projectId = fieldName.split(',')[1] || ''
|
param.projectId = fieldName.split(',')[1] || ''
|
||||||
param.id = fieldName.split(',')[2] || ''
|
param.id = fieldName.split(',')[2] || ''
|
||||||
param.prcType = fieldName.split(',')[3] || ''
|
param.prcType = fieldName.split(',')[3] || ''
|
||||||
|
param.user = fieldName.split(',')[4] || ''
|
||||||
processInfoTransfer(param).then(res => {
|
processInfoTransfer(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
@@ -198,7 +199,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
userNameChange (value, fieldName) {
|
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
|
data.transferUser_dictText = value
|
||||||
},
|
},
|
||||||
// 批量转交
|
// 批量转交
|
||||||
@@ -220,6 +221,7 @@ export default {
|
|||||||
param.projectId = item.split(',')[1] || ''
|
param.projectId = item.split(',')[1] || ''
|
||||||
param.id = item.split(',')[2] || ''
|
param.id = item.split(',')[2] || ''
|
||||||
param.prcType = item.split(',')[3] || ''
|
param.prcType = item.split(',')[3] || ''
|
||||||
|
param.user = item.split(',')[4] || ''
|
||||||
params.push(param)
|
params.push(param)
|
||||||
}
|
}
|
||||||
processInfoBatchTransfer(params).then(res => {
|
processInfoBatchTransfer(params).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user