用户管理编辑提交报错问题
This commit is contained in:
@@ -483,13 +483,17 @@
|
||||
handleSubmitOk() {
|
||||
this.confirmLoading = true
|
||||
let selectedRole = JSON.parse(JSON.stringify(this.selectedRole))
|
||||
let dutyTerritorie = JSON.parse(JSON.stringify(this.dutyTerritories))
|
||||
let brand = JSON.parse(JSON.stringify(this.brands))
|
||||
if(this.dutyTerritories){
|
||||
let dutyTerritorie = JSON.parse(JSON.stringify(this.dutyTerritories))
|
||||
}
|
||||
if(this.brands){
|
||||
let brand = JSON.parse(JSON.stringify(this.brands))
|
||||
}
|
||||
let param = {
|
||||
ids: this.userId,
|
||||
selectedroles: selectedRole.join(','),
|
||||
dutyTerritories: dutyTerritorie.join(','),
|
||||
brands: brand.join(',')
|
||||
dutyTerritories: this.dutyTerritories ? dutyTerritorie.join(',') : '',
|
||||
brands: this.brands ? brand.join(',') : ''
|
||||
}
|
||||
postAction('/sys/user/setRole', param).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user