[update] 任务转交基础库转交传参修改
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
:can-drag="true"
|
||||
:scroll="{x: '100%', y: yScrollHeight}"
|
||||
ref="table"
|
||||
:rowKey="(record) => {return record.id + '-' + record.type}"
|
||||
:rowKey="(record) => {return record.id + ',' + record.type}"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
customRender: (value, row, index) => {
|
||||
return <user-selection v-model={this.dataSource[index].transferUser}
|
||||
disabled={this.disabled} type={'radio'}
|
||||
filedName={this.dataSource[index].id + '-' + this.dataSource[index].type}
|
||||
filedName={this.dataSource[index].id + ',' + this.dataSource[index].type}
|
||||
nameStr={this.dataSource[index].transferUser_dictText}
|
||||
onNameChange={this.userNameChange} showBtn={false}
|
||||
placeholder={this.$t('pleaseSelect')} onChange={this.transferUserChange} />
|
||||
@@ -193,8 +193,8 @@ export default {
|
||||
return
|
||||
}
|
||||
const param = {}
|
||||
param.id = fieldName.split('-')[0]
|
||||
param.type = fieldName.split('-')[1]
|
||||
param.id = fieldName.split(',')[0]
|
||||
param.type = fieldName.split(',')[1]
|
||||
param.transferUser = value
|
||||
this.loading = true
|
||||
basicInfoTransfer(param).then(res => {
|
||||
@@ -207,7 +207,7 @@ export default {
|
||||
})
|
||||
},
|
||||
userNameChange (value, fieldName) {
|
||||
const data = this.dataSource.find(item => item.id === fieldName.split('-')[0])
|
||||
const data = this.dataSource.find(item => item.id === fieldName.split(',')[0])
|
||||
data.transferUser_dictText = value
|
||||
},
|
||||
// 批量转交
|
||||
@@ -224,8 +224,8 @@ export default {
|
||||
const params = []
|
||||
for (const item of this.selectedRowKeys) {
|
||||
const param = {}
|
||||
param.id = item.split('-')[0]
|
||||
param.type = item.split('-')[1]
|
||||
param.id = item.split(',')[0]
|
||||
param.type = item.split(',')[1]
|
||||
param.transferUser = value
|
||||
params.push(param)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user