From 45c10e85809c33f142233483b170a6bad7ca4d96 Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Wed, 9 Oct 2019 23:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E7=AE=80=E5=8D=95=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QMPlusVuePage/src/api/user.js | 17 +++++++++ .../src/view/superAdmin/user/user.vue | 36 ++++++++++++++++--- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/QMPlusVuePage/src/api/user.js b/QMPlusVuePage/src/api/user.js index 41e4bad8..8bd45341 100644 --- a/QMPlusVuePage/src/api/user.js +++ b/QMPlusVuePage/src/api/user.js @@ -38,4 +38,21 @@ export const getUserList = (data) => { method: 'post', data: data }) +} + + +// @Tags User +// @Summary 设置用户权限 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body api.SetUserAuth true "设置用户权限" +// @Success 200 {string} json "{"success":true,"data":{},"msg":"修改成功"}" +// @Router /user/setUserAuthority [post] +export const setUserAuthority = (data) => { + return service({ + url: "/user/setUserAuthority", + method: 'post', + data: data + }) } \ No newline at end of file diff --git a/QMPlusVuePage/src/view/superAdmin/user/user.vue b/QMPlusVuePage/src/view/superAdmin/user/user.vue index 2feb7ee4..96f7ca7a 100644 --- a/QMPlusVuePage/src/view/superAdmin/user/user.vue +++ b/QMPlusVuePage/src/view/superAdmin/user/user.vue @@ -4,10 +4,12 @@ - + @@ -17,8 +19,7 @@ @@ -39,7 +40,7 @@