diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/xml/SysPermissionMapper.xml b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/xml/SysPermissionMapper.xml
index 5261e637..51666a11 100644
--- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/xml/SysPermissionMapper.xml
+++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/mapper/xml/SysPermissionMapper.xml
@@ -53,19 +53,19 @@
)
)
and p.del_flag = 0
-
+
UNION
SELECT p.*
FROM sys_permission p
WHERE exists(
- select a.id from sys_depart_role_permission a
- join sys_depart_role b on a.role_id = b.id
- join sys_depart_role_user c on c.drole_id = b.id
+ select a.id from sys_depart_permission a
+ join sys_depart b on a.depart_id = b.id
+ join sys_user_depart c on c.dep_id = b.id
join sys_user d on d.id = c.user_id
where p.id = a.permission_id AND d.username = #{username,jdbcType=VARCHAR}
)
and p.del_flag = 0
-
+
) h order by h.sort_no ASC
diff --git a/jero-web/src/views/system/DepartUserList.vue b/jero-web/src/views/system/DepartUserList.vue
index a66b13de..29921e04 100644
--- a/jero-web/src/views/system/DepartUserList.vue
+++ b/jero-web/src/views/system/DepartUserList.vue
@@ -38,9 +38,9 @@
-
-
-
+
+
+
@@ -106,13 +106,13 @@
loadData() {
this.refresh();
},
- clearSelectedDepartKeys() {
- this.checkedKeys = [];
- this.selectedKeys = [];
- this.currentDeptId = '';
- this.$refs.DeptUserInfo.currentDeptId='';
- this.$refs.DeptRoleInfo.currentDeptId='';
- },
+ // clearSelectedDepartKeys() {
+ // this.checkedKeys = [];
+ // this.selectedKeys = [];
+ // this.currentDeptId = '';
+ // this.$refs.DeptUserInfo.currentDeptId='';
+ // this.$refs.DeptRoleInfo.currentDeptId='';
+ // },
loadTree() {
var that = this
that.treeData = []
diff --git a/jero-web/src/views/system/modules/DeptRoleInfo.vue b/jero-web/src/views/system/modules/DeptRoleInfo.vue
index ee357c82..a20401d8 100644
--- a/jero-web/src/views/system/modules/DeptRoleInfo.vue
+++ b/jero-web/src/views/system/modules/DeptRoleInfo.vue
@@ -1,191 +1,191 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
-
新建部门角色
-
-
- 删除
-
- 批量操作
-
-
-
-
-
-
-
- 编辑
-
-
-
- 更多
-
-
-
- 授权
-
-
- handleDelete(record.id)">
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/jero-web/src/views/system/modules/DeptRoleUserModal.vue b/jero-web/src/views/system/modules/DeptRoleUserModal.vue
index b09a4b3f..bfdc7ecf 100644
--- a/jero-web/src/views/system/modules/DeptRoleUserModal.vue
+++ b/jero-web/src/views/system/modules/DeptRoleUserModal.vue
@@ -1,200 +1,200 @@
-
-
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
- {{ des.text }}
-
-
-
-
-
-
-
-
- 无可配置角色!
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jero-web/src/views/system/modules/DeptUserInfo.vue b/jero-web/src/views/system/modules/DeptUserInfo.vue
index 5b87e522..96e74176 100644
--- a/jero-web/src/views/system/modules/DeptUserInfo.vue
+++ b/jero-web/src/views/system/modules/DeptUserInfo.vue
@@ -70,9 +70,9 @@
更多
-
- 部门角色
-
+
+
+
用户详情
@@ -95,7 +95,7 @@
-
+
@@ -104,13 +104,13 @@
import {getAction, postAction, deleteAction} from '@/api/manage'
import SelectUserModal from './SelectUserModal'
import UserModal from './UserModal'
- import DeptRoleUserModal from './DeptRoleUserModal'
+ // import DeptRoleUserModal from './DeptRoleUserModal'
export default {
name: "DeptUserInfo",
mixins: [JeroListMixin],
components: {
- DeptRoleUserModal,
+ // DeptRoleUserModal,
SelectUserModal,
UserModal
},
@@ -311,14 +311,14 @@
}
})
},
- handleDeptRole(record){
- if(this.currentDeptId != ''){
- this.$refs.deptRoleUser.add(record,this.currentDeptId);
- this.$refs.deptRoleUser.title = "部门角色分配";
- }else{
- this.$message.warning("请先选择一个部门!");
- }
- }
+ // handleDeptRole(record){
+ // if(this.currentDeptId != ''){
+ // this.$refs.deptRoleUser.add(record,this.currentDeptId);
+ // this.$refs.deptRoleUser.title = "部门角色分配";
+ // }else{
+ // this.$message.warning("请先选择一个部门!");
+ // }
+ // }
}
}