Commit c5878f7c authored by jingnan's avatar jingnan 👀

合并产品【9229】权限组分配用户页签,选择了组织,权限分配时只是分配给所选组织,没有分配给子组织

parent 2b6e7e47
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-form <el-form
ref="newForm1" ref="newForm1"
:model="form1" :model="form1"
label-width="100px" label-width="120px"
> >
<el-form-item label="选择组:"> <el-form-item label="选择组:">
<OrgLazyLoadSelect <OrgLazyLoadSelect
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
style="width: 100%;" style="width: 100%;"
/> />
</el-form-item> </el-form-item>
<el-form-item label="包含子组织用户:">
<el-checkbox v-model="cascadeSubOrg" />
</el-form-item>
<el-form-item label="选择群组:"> <el-form-item label="选择群组:">
<dee-group <dee-group
v-model="userGroupcheckeds" v-model="userGroupcheckeds"
...@@ -46,6 +49,9 @@ ...@@ -46,6 +49,9 @@
style="width: 100%;" style="width: 100%;"
/> />
</el-form-item> </el-form-item>
<el-form-item label="包含子群组用户:">
<el-checkbox v-model="cascadeSubGroup" />
</el-form-item>
<el-form-item label="选择用户:"> <el-form-item label="选择用户:">
<el-select <el-select
v-model="users" v-model="users"
...@@ -292,11 +298,13 @@ export default { ...@@ -292,11 +298,13 @@ export default {
grouBlen: false, grouBlen: false,
// groups: [], // groups: [],
groupcheckeds: [], groupcheckeds: [],
cascadeSubOrg: false,
currentRow: {}, currentRow: {},
groupRemoteOptions: [], groupRemoteOptions: [],
reGroupRemoteOptions: [], reGroupRemoteOptions: [],
reUserGroupRemoteOptions: [], reUserGroupRemoteOptions: [],
userGroupcheckeds: [], userGroupcheckeds: [],
cascadeSubGroup: false,
// 授权部门 // 授权部门
authOrgIds: [], authOrgIds: [],
authOrgVisible: false, authOrgVisible: false,
...@@ -1448,7 +1456,8 @@ export default { ...@@ -1448,7 +1456,8 @@ export default {
roleId: this.userInfo.id, roleId: this.userInfo.id,
userGroupId: m.id, userGroupId: m.id,
userGroupType: 'GROUP', userGroupType: 'GROUP',
name: m.name name: m.name,
cascadeSubOrg: this.cascadeSubOrg
}) })
}) })
this.userGroupcheckeds.forEach(m => { this.userGroupcheckeds.forEach(m => {
...@@ -1456,10 +1465,10 @@ export default { ...@@ -1456,10 +1465,10 @@ export default {
roleId: this.userInfo.id, roleId: this.userInfo.id,
userGroupId: m.id, userGroupId: m.id,
userGroupType: 'TEAM', userGroupType: 'TEAM',
name: m.name name: m.name,
cascadeSubGroup: this.cascadeSubGroup
}) })
}) })
console.log(this.users)
this.users.forEach(el => { this.users.forEach(el => {
userGroups.push({ userGroups.push({
userGroupType: 'USER', userGroupType: 'USER',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment