用户管理编辑提交报错问题

This commit is contained in:
高嵩
2023-02-14 09:26:18 +08:00
parent f27866dc4a
commit 971def33fb
2 changed files with 11 additions and 4 deletions
@@ -3119,6 +3119,9 @@
.popconfirmmize .anticon-exclamation-circle {
display: none !important;
}
.popconfirmmize .ant-popover-message{
padding: 4px 0 36px!important;
}
//.popconfirm .ant-popover-inner-content{
// padding: 0px 16px;
//}
@@ -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) {