From d9a4c361c29597d38c302f4d415006adc1f60c4f Mon Sep 17 00:00:00 2001 From: "idiotalex@163.com" Date: Sat, 20 Feb 2021 16:09:13 +0800 Subject: [PATCH] update role dynamic page --- web-vue/src/api/role.js | 16 ++++ web-vue/src/pages/role/index.vue | 126 ++++++++++++++++++++----------- 2 files changed, 100 insertions(+), 42 deletions(-) diff --git a/web-vue/src/api/role.js b/web-vue/src/api/role.js index 6eae27354..861a936d4 100644 --- a/web-vue/src/api/role.js +++ b/web-vue/src/api/role.js @@ -57,4 +57,20 @@ export function getRoleDynamicList(params) { timeout: 0, data: params }) +} + +/** + * editRoleDynamic + * @param { + * id: 角色 ID + * dynamic: dynamic + * } params + */ +export function editRoleDynamic(params) { + return axios({ + url: '/user/role/saveDynamic.json', + method: 'post', + timeout: 0, + data: params + }) } \ No newline at end of file diff --git a/web-vue/src/pages/role/index.vue b/web-vue/src/pages/role/index.vue index 73bc19dba..023bb4a6a 100644 --- a/web-vue/src/pages/role/index.vue +++ b/web-vue/src/pages/role/index.vue @@ -27,22 +27,25 @@ - - - - - + + + + + + +