From c34ba139d5f9c2df3387cc38e861c0068fe2e392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Fri, 3 Feb 2023 22:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD:=20=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E6=8E=88=E6=9D=83=E9=A1=B5=E9=9D=A2,=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/system/login/component/account.vue | 8 +- web/src/views/system/rolePermission/api.ts | 9 + web/src/views/system/rolePermission/index.vue | 269 ++++++++++++++++++ 3 files changed, 282 insertions(+), 4 deletions(-) create mode 100644 web/src/views/system/rolePermission/api.ts create mode 100644 web/src/views/system/rolePermission/index.vue diff --git a/web/src/views/system/login/component/account.vue b/web/src/views/system/login/component/account.vue index d4854a8..576c404 100644 --- a/web/src/views/system/login/component/account.vue +++ b/web/src/views/system/login/component/account.vue @@ -103,14 +103,14 @@ export default defineComponent({ const getCaptcha = async () => { loginApi.getCaptcha().then((ret: any) => { - state.ruleForm.captchaImgBase = ret.image_base; - state.ruleForm.captchaKey = ret.key; + state.ruleForm.captchaImgBase = ret.data.image_base; + state.ruleForm.captchaKey = ret.data.key; }); }; const refreshCaptcha = async () => { loginApi.getCaptcha().then((ret: any) => { - state.ruleForm.captchaImgBase = ret.image_base; - state.ruleForm.captchaKey = ret.key; + state.ruleForm.captchaImgBase = ret.data.image_base; + state.ruleForm.captchaKey = ret.data.key; }); }; const loginClick = async () => { diff --git a/web/src/views/system/rolePermission/api.ts b/web/src/views/system/rolePermission/api.ts new file mode 100644 index 0000000..bef92fa --- /dev/null +++ b/web/src/views/system/rolePermission/api.ts @@ -0,0 +1,9 @@ +import { request } from "/@/utils/service"; + +export function getMenu(params:any) { + return request({ + url: '/api/system/menu/', + method: 'get', + params:params + }); +} diff --git a/web/src/views/system/rolePermission/index.vue b/web/src/views/system/rolePermission/index.vue new file mode 100644 index 0000000..31b98bb --- /dev/null +++ b/web/src/views/system/rolePermission/index.vue @@ -0,0 +1,269 @@ + + + + +