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/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)
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 @@
+
+
+
+
+ 密码策略
+
+
+
+
+
+
+
+
+
+
+ 次
+
+
+
+
+ 分钟
+
+
+
+
+ 天
+
+
+
+
+
+
+
+
+
+
+
+
+
+