|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-11-29 16:31:31
|
|
* @Date: 2021-11-29 16:31:31
|
|
- * @LastEditTime: 2022-02-28 16:41:32
|
|
|
|
|
|
+ * @LastEditTime: 2022-03-01 11:10:13
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: 新增/编辑角色
|
|
* @Description: 新增/编辑角色
|
|
* @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\authorityRoleStatus.vue
|
|
* @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\authorityRoleStatus.vue
|
|
@@ -39,16 +39,13 @@
|
|
<div class="r24 flex1 part">
|
|
<div class="r24 flex1 part">
|
|
<Permissiontree v-loading="loading" element-loading-text="数据加载中" @getTreeData="getTreeData" :checkedKeys="checkedKeys" title="权限树" />
|
|
<Permissiontree v-loading="loading" element-loading-text="数据加载中" @getTreeData="getTreeData" :checkedKeys="checkedKeys" title="权限树" />
|
|
</div>
|
|
</div>
|
|
- <div class="r24 flex1 part">
|
|
|
|
|
|
+ <div :class="isClass ? '':'r24'" class="flex1 part">
|
|
<Rulesofcompetency v-loading="loading" element-loading-text="数据加载中" :authList="authList" :authTo="authTo" title="权限规则" />
|
|
<Rulesofcompetency v-loading="loading" element-loading-text="数据加载中" :authList="authList" :authTo="authTo" title="权限规则" />
|
|
</div>
|
|
</div>
|
|
- <div class="flex1 part">
|
|
|
|
- <template v-is="['role_edit_mutually_exclusive']">
|
|
|
|
- <Rolelist v-loading="loading" element-loading-text="数据加载中" @checkChange="checkChange" @checkClick="checkClick" :roleType="roleType" :checkBoxList="radioCheck" :active="true" class="hucRole" :imageSize="80" :number="8" style="height: 280px; overflow: hidden" title="互斥角色" />
|
|
|
|
- </template>
|
|
|
|
- <template v-is="['role_edit_mutually_exclusive_list']">
|
|
|
|
- <Permissionlist v-loading="permission" element-loading-text="数据加载中" :check="true" :imageSize="80" :RoleList="RoleList" class="hucPower" style="margin-top: 24px" title="互斥角色已有权限列表" />
|
|
|
|
- </template>
|
|
|
|
|
|
+ <div v-is="['role_edit_mutually_exclusive','role_edit_mutually_exclusive_list']" class="flex1 part">
|
|
|
|
+ <Rolelist v-is="['role_edit_mutually_exclusive']" v-loading="loading" element-loading-text="数据加载中" @checkChange="checkChange" @checkClick="checkClick" :roleType="roleType" :checkBoxList="radioCheck" :active="true" class="hucRole" :imageSize="80" :number="8" style="height: 280px; overflow: hidden" title="互斥角色" />
|
|
|
|
+
|
|
|
|
+ <Permissionlist v-is="['role_edit_mutually_exclusive_list']" v-loading="permission" element-loading-text="数据加载中" :check="true" :imageSize="80" :RoleList="RoleList" class="hucPower" style="margin-top: 24px" title="互斥角色已有权限列表" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -61,6 +58,7 @@ import Permissiontree from "@/components/permissiontree";
|
|
import Rolelist from "@/components/rolelist";
|
|
import Rolelist from "@/components/rolelist";
|
|
import { RoleDetails, EditRole, RoleAuths } from "@/api/apiAuthority";
|
|
import { RoleDetails, EditRole, RoleAuths } from "@/api/apiAuthority";
|
|
import roleData from "../minixs/roleData";
|
|
import roleData from "../minixs/roleData";
|
|
|
|
+import { checkPermission } from '@/utils/add-is-class';
|
|
export default {
|
|
export default {
|
|
name: "AuthorityRoleEdit",
|
|
name: "AuthorityRoleEdit",
|
|
components: { Permissionlist, Rulesofcompetency, Permissiontree, Rolelist },
|
|
components: { Permissionlist, Rulesofcompetency, Permissiontree, Rolelist },
|
|
@@ -106,6 +104,12 @@ export default {
|
|
mounted () {
|
|
mounted () {
|
|
this.roleType = 'onlyRole';
|
|
this.roleType = 'onlyRole';
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ isClass () {
|
|
|
|
+ const le = checkPermission(['role_add_mutually_exclusive', 'role_add_mutually_exclusive_list']);
|
|
|
|
+ return le;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
//角色明细
|
|
//角色明细
|
|
async roleDetails (id) {
|
|
async roleDetails (id) {
|