From 392b64f25fa931bf133ab7e2e16ee8e5a5a4bad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Sat, 17 Jul 2021 22:46:31 +0800 Subject: [PATCH] add authority page --- report-ui/src/api/accessAuthority.js | 42 +++ report-ui/src/views/accessAuthority/index.vue | 247 ++++++++++++++++++ 2 files changed, 289 insertions(+) create mode 100755 report-ui/src/api/accessAuthority.js create mode 100755 report-ui/src/views/accessAuthority/index.vue diff --git a/report-ui/src/api/accessAuthority.js b/report-ui/src/api/accessAuthority.js new file mode 100755 index 00000000..eea7f688 --- /dev/null +++ b/report-ui/src/api/accessAuthority.js @@ -0,0 +1,42 @@ +import request from '@/utils/request' + +export function accessAuthorityList(params) { + return request({ + url: 'accessAuthority/pageList', + method: 'GET', + params, + }) +} + +export function accessAuthorityAdd(data) { + return request({ + url: 'accessAuthority', + method: 'post', + data + }) +} + +export function accessAuthorityDeleteBatch(data) { + return request({ + url: 'accessAuthority/delete/batch', + method: 'post', + data + }) +} + +export function accessAuthorityUpdate(data) { + return request({ + url: 'accessAuthority', + method: 'put', data, + }) +} + +export function accessAuthorityDetail(data) { + return request({ + url: 'accessAuthority/' + data.id, + method: 'get', + params: { accessKey: data.accessKey } + }) +} + +export default { accessAuthorityList, accessAuthorityAdd, accessAuthorityDeleteBatch, accessAuthorityUpdate, accessAuthorityDetail } diff --git a/report-ui/src/views/accessAuthority/index.vue b/report-ui/src/views/accessAuthority/index.vue new file mode 100755 index 00000000..1d5900bf --- /dev/null +++ b/report-ui/src/views/accessAuthority/index.vue @@ -0,0 +1,247 @@ + + +