src/views/systemSetting/baseSetting/user/components/updateUser/index.vue
@@ -130,8 +130,8 @@ } else { this.$axios({ method: 'post', url: 'sccg/admin/role/update?adminId=' + user.id + '&roleIds=' + user.role, method: 'put', url: 'sccg/depart/user_update_Role?id=' + user.id + '&roles=' + user.role, }) .then(res => { this.$message({ @@ -175,6 +175,7 @@ }, // 部门修改 handleCheck(data, checked) { console.log(this.selectOrg.orgsid[0]) this.user.departName = data.departName; // 获取当前选择的id在数组中的索引 const indexs = this.selectOrg.orgsid.indexOf(data.id);