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 1/2] =?UTF-8?q?1=E3=80=81=E5=AF=86=E7=A0=81=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E4=BC=98=E5=8C=96(=E4=BB=8E=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E8=A1=A8=E8=BF=81=E7=A7=BB=E5=88=B0=E7=8B=AC=E7=AB=8B=E8=A1=A8?= =?UTF-8?q?)?= 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 @@ + + + From db7ec25557a05899983df29be1fd5700ee483023 Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Fri, 6 Sep 2024 11:04:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=EF=BC=8C=E6=9A=82=E5=AD=98=E5=90=8E=E5=86=8D=E5=8F=91=E5=B8=83?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20=20=20HL-5848?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionJob/index.vue | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/views/qms/inspectionJob/index.vue b/src/views/qms/inspectionJob/index.vue index 7be97e488..0cecf6f33 100644 --- a/src/views/qms/inspectionJob/index.vue +++ b/src/views/qms/inspectionJob/index.vue @@ -238,15 +238,6 @@ const isShowMainButton3 = (row) => { } } -// 根据状态返回该按钮是否显示 -const isShowMainButton2 = (row, val) => { - if (val.indexOf(row.isStaging) > -1) { - return false - } else { - return true - } -} - // 根据状态返回该按钮是否显示 const isShowMainButton1 = (row, val) => { if (val.indexOf(row.status) > -1) { @@ -278,10 +269,6 @@ const butttondata = (row) => { hide: isShowMainButton(row, ['1', '2']), hasPermi: 'qms:inspection-job-main:execute' }), // 执行 - defaultButtons.mainListOrderPubBtn({ - hide: isShowMainButton2(row, ['TRUE']), - hasPermi: 'qms:inspection-job-main:execute' - }), // 发布 defaultButtons.mainListPackageBtn(null), // 包装 defaultButtons.mainListPlanCheckQualityReportBtn({ hide: isShowMainButton3(row)