diff --git a/src/api/system/password/index.ts b/src/api/system/password/index.ts index 9f07574cc..13d65aa23 100644 --- a/src/api/system/password/index.ts +++ b/src/api/system/password/index.ts @@ -6,8 +6,9 @@ export interface PassWordConfigVO { ruleLevel: string ruleDesc: string tryCount: number - lockMinutes: number + lockHours: number updatePeriod: number + dayTryCount: number } // 获取密码策略 export const getConfig = () => { diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 9793a55e5..9c6aad57a 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -832,6 +832,7 @@ export default { 未税差额:'Untaxed Difference', 含税差额:'Difference including tax', 可开票数量:'Number of tickets available', + 可开票数量不能为0:'The amount invogeable cannot be 0', 采购审批人:'Procurement Approver', 采购审批时间:'Purchase approval time', 财务审批时间:'Financial approval time', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 1e78e1525..49c3e196f 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -833,6 +833,7 @@ export default { 未税差额:'未税差额', 含税差额:'含税差额', 可开票数量:'可开票数量', + 可开票数量不能为0:'可开票数量不能为0', 采购审批人:'采购审批人', 采购审批时间:'采购审批时间', 财务审批时间:'财务审批时间', diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue index 0fe8506d1..ed783f5c6 100644 --- a/src/views/login/components/LoginForm.vue +++ b/src/views/login/components/LoginForm.vue @@ -260,14 +260,7 @@ console.log('登陆res',res) const differenceDays = await PassWordApi.validateResetTime(res.userId) switch (differenceDays){ - case -1: - await ElMessageBox.alert( - '密码即将到期,请尽快修改。', - '重要提示', - { - dangerouslyUseHTMLString: true, - } - ) + case null: break case 0: await ElMessageBox.alert( @@ -281,13 +274,22 @@ return case 1: await ElMessageBox.alert( - '密码过期账号已冻结,请联系管理员解冻', + '密码过期,请联系管理员修改', '重要提示', { dangerouslyUseHTMLString: true, } ) return + default: + await ElMessageBox.alert( + '密码'+differenceDays+'到期,请尽快修改。', + '重要提示', + { + dangerouslyUseHTMLString: true, + } + ) + break } if (!res) { console.log('登录-195') diff --git a/src/views/login/updatePasswordNewTips.vue b/src/views/login/updatePasswordNewTips.vue index 06a74b6b6..328644072 100644 --- a/src/views/login/updatePasswordNewTips.vue +++ b/src/views/login/updatePasswordNewTips.vue @@ -6,7 +6,7 @@ - + @@ -15,7 +15,7 @@ - + diff --git a/src/views/system/passwordRule/index.vue b/src/views/system/passwordRule/index.vue index a01c5da99..74ca7f75f 100644 --- a/src/views/system/passwordRule/index.vue +++ b/src/views/system/passwordRule/index.vue @@ -1,7 +1,7 @@