From 13f6f85a9e89ea551b04ba57b2da63b761998220 Mon Sep 17 00:00:00 2001 From: bjang03 <259278618@qq.com> Date: Fri, 6 Sep 2024 11:02:46 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=AF=86=E7=A0=81=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E4=BC=98=E5=8C=96(=E4=BB=8E=E5=AD=97=E5=85=B8=E8=A1=A8?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=88=B0=E7=8B=AC=E7=AB=8B=E8=A1=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/password/index.ts | 25 ++++ src/views/system/passwordRule/index.vue | 153 ++++++++++++++++++++++++ 2 files changed, 178 insertions(+) create mode 100644 src/api/system/password/index.ts create mode 100644 src/views/system/passwordRule/index.vue diff --git a/src/api/system/password/index.ts b/src/api/system/password/index.ts new file mode 100644 index 000000000..cc2495169 --- /dev/null +++ b/src/api/system/password/index.ts @@ -0,0 +1,25 @@ +import request from '@/config/axios' + +export interface PassWordConfigVO { + id: number + status: boolean + ruleLevel: string + ruleDesc: string + tryCount: number + lockMinutes: number + updatePeriod: number +} +// 获取密码策略 +export const getConfig = () => { + return request.get({ url: '/system/password/getConfig' }) +} + +// 设置密码策略 +export const setConfig = (data: PassWordConfigVO) => { + return request.post({ url: '/system/password/setConfig', data }) +} + +// 获取密码复杂度 +export const getRuleList = () => { + return request.get({ url: '/system/password/getRuleList'}) +} diff --git a/src/views/system/passwordRule/index.vue b/src/views/system/passwordRule/index.vue new file mode 100644 index 000000000..d5f964e88 --- /dev/null +++ b/src/views/system/passwordRule/index.vue @@ -0,0 +1,153 @@ + + +