角色分配批量修改
This commit is contained in:
@@ -224,7 +224,9 @@ export default {
|
|||||||
},
|
},
|
||||||
//保存
|
//保存
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let param = {ids: this.selectedRowKeysArray.join(','), selectedroles: `${this.selectedRole.join(',')}`, dutyTerritories: `${this.dutyTerritories.join(',')}`, brands: `${this.brands}` }
|
console.log(this.selectedRole)
|
||||||
|
console.log(this.dutyTerritories,'dutyTerritories')
|
||||||
|
let param = {ids: this.selectedRowKeysArray.join(','), selectedroles: `${this.selectedRole.join(',')}`, dutyTerritories: this.dutyTerritories ? `${this.dutyTerritories.join(',')}` : 'undefined', brands: `${this.brands}` }
|
||||||
postAction('/sys/user/setRole', param).then((res) => {
|
postAction('/sys/user/setRole', param).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$emit('rolevisible', false)
|
this.$emit('rolevisible', false)
|
||||||
|
|||||||
Reference in New Issue
Block a user