[update] 任务转交基础库转交传参修改

This commit is contained in:
lideqin
2024-01-18 15:21:47 +08:00
parent fcd7544771
commit 384273642a
@@ -49,7 +49,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.id + '-' + record.type}" :rowKey="(record) => {return record.id + ',' + record.type}"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
@@ -157,7 +157,7 @@ export default {
customRender: (value, row, index) => { customRender: (value, row, index) => {
return <user-selection v-model={this.dataSource[index].transferUser} return <user-selection v-model={this.dataSource[index].transferUser}
disabled={this.disabled} type={'radio'} 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} nameStr={this.dataSource[index].transferUser_dictText}
onNameChange={this.userNameChange} showBtn={false} onNameChange={this.userNameChange} showBtn={false}
placeholder={this.$t('pleaseSelect')} onChange={this.transferUserChange} /> placeholder={this.$t('pleaseSelect')} onChange={this.transferUserChange} />
@@ -193,8 +193,8 @@ export default {
return return
} }
const param = {} const param = {}
param.id = fieldName.split('-')[0] param.id = fieldName.split(',')[0]
param.type = fieldName.split('-')[1] param.type = fieldName.split(',')[1]
param.transferUser = value param.transferUser = value
this.loading = true this.loading = true
basicInfoTransfer(param).then(res => { basicInfoTransfer(param).then(res => {
@@ -207,7 +207,7 @@ export default {
}) })
}, },
userNameChange (value, fieldName) { 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 data.transferUser_dictText = value
}, },
// 批量转交 // 批量转交
@@ -224,8 +224,8 @@ export default {
const params = [] const params = []
for (const item of this.selectedRowKeys) { for (const item of this.selectedRowKeys) {
const param = {} const param = {}
param.id = item.split('-')[0] param.id = item.split(',')[0]
param.type = item.split('-')[1] param.type = item.split(',')[1]
param.transferUser = value param.transferUser = value
params.push(param) params.push(param)
} }