Browse Source

菜单&数据权限新增(展开/折叠 全选/全不选 父子联动)

RuoYi 4 years ago
parent
commit
69829827fe

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml

@@ -97,8 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  			<if test="roleKey != null and roleKey != ''">role_key,</if>
  			<if test="roleSort != null and roleSort != ''">role_sort,</if>
  			<if test="dataScope != null and dataScope != ''">data_scope,</if>
- 			<if test="menuCheckStrictly != null and menuCheckStrictly != ''">menu_check_strictly,</if>
- 			<if test="deptCheckStrictly != null and deptCheckStrictly != ''">dept_check_strictly,</if>
+ 			<if test="menuCheckStrictly != null">menu_check_strictly,</if>
+ 			<if test="deptCheckStrictly != null">dept_check_strictly,</if>
  			<if test="status != null and status != ''">status,</if>
  			<if test="remark != null and remark != ''">remark,</if>
  			<if test="createBy != null and createBy != ''">create_by,</if>

+ 1 - 0
ruoyi-ui/src/views/system/role/index.vue

@@ -440,6 +440,7 @@ export default {
         menuIds: [],
         deptIds: [],
         menuCheckStrictly: true,
+		deptCheckStrictly: true,
         remark: undefined
       };
       this.resetForm("form");