From 21429b27b6048a4115476cdff66abb462f4327fe Mon Sep 17 00:00:00 2001
From: bjang03 <259278618@qq.com>
Date: Thu, 5 Sep 2024 14:11:47 +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 | 99 ++++++++++++++++---------
2 files changed, 90 insertions(+), 34 deletions(-)
create mode 100644 src/api/system/password/index.ts
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
index 85c56771c..274a90235 100644
--- a/src/views/system/passwordRule/index.vue
+++ b/src/views/system/passwordRule/index.vue
@@ -9,21 +9,21 @@
>