diff --git a/report-ui/src/api/accessRole.js b/report-ui/src/api/accessRole.js new file mode 100755 index 00000000..0c0a4a49 --- /dev/null +++ b/report-ui/src/api/accessRole.js @@ -0,0 +1,58 @@ +import request from '@/utils/request' + +export function accessRoleList (params) { + return request({ + url: 'accessRole/pageList', + method: 'GET', + params, + }) +} + +export function accessRoleAdd (data) { + return request({ + url: 'accessRole', + method: 'post', + data + }) +} + +export function accessRoleDeleteBatch (data) { + return request({ + url: 'accessRole/delete/batch', + method: 'post', + data + }) +} + +export function accessRoleUpdate (data) { + return request({ + url: 'accessRole', + method: 'put', data, + }) +} + +export function accessRoleDetail (data) { + return request({ + url: 'accessRole/' + data.id, + method: 'get', + params: { accessKey: data.accessKey } + }) +} + +export function accessRoleAuthorityTree (roleCode) { + return request({ + url: 'accessRole/authorityTree/' + roleCode, + method: 'get', + }) +} + +export function saveAuthorityTree (data) { + return request({ + url: 'accessRole/saveAuthorityTree', + method: 'post', + data + }) +} + + +export default { accessRoleList, accessRoleAdd, accessRoleDeleteBatch, accessRoleUpdate, accessRoleDetail, accessRoleAuthorityTree, saveAuthorityTree } diff --git a/report-ui/src/views/accessRole/index.vue b/report-ui/src/views/accessRole/index.vue new file mode 100755 index 00000000..c163eef2 --- /dev/null +++ b/report-ui/src/views/accessRole/index.vue @@ -0,0 +1,192 @@ + + + diff --git a/report-ui/src/views/accessUser/components/UserRole.vue b/report-ui/src/views/accessUser/components/UserRole.vue new file mode 100644 index 00000000..89e15a08 --- /dev/null +++ b/report-ui/src/views/accessUser/components/UserRole.vue @@ -0,0 +1,86 @@ + +