diff --git a/src/pages/src/common/demand-import.js b/src/pages/src/common/demand-import.js index 13959604a..8f78a2a8e 100644 --- a/src/pages/src/common/demand-import.js +++ b/src/pages/src/common/demand-import.js @@ -41,6 +41,7 @@ import { bkProgress, bkRadio, bkRadioGroup, + bkRadioButton, bkRoundProgress, bkRow, bkSearchSelect, @@ -100,6 +101,7 @@ Vue.use(bkProcess); Vue.use(bkProgress); Vue.use(bkRadio); Vue.use(bkRadioGroup); +Vue.use(bkRadioButton); Vue.use(bkRoundProgress); Vue.use(bkRow); Vue.use(bkSearchSelect); diff --git a/src/pages/src/language/lang/en.js b/src/pages/src/language/lang/en.js index 7cf22d291..4bf791a23 100644 --- a/src/pages/src/language/lang/en.js +++ b/src/pages/src/language/lang/en.js @@ -164,6 +164,7 @@ export default { 修复: '【FIX】', 优化: '【OPTIMIZATION】', // 密码 + 原密码: 'Old Password', 重置密码: 'Reset Password', 密码长度为: 'Password length is', '-32个字符,必须包含': '-32 characters, it must be included', @@ -173,7 +174,13 @@ export default { 数字: 'number', '特殊字符(除空格)': 'Special characters (except spaces)', '请输入账户绑定的邮箱,我们将为您发送密码重置邮件': 'Please enter your account bound email address and we will send you a password reset email', + '请输入账号信息,我们将为您发送重置密码短信': 'Please enter your account information, and we will send you a message to reset your password', + '请输入用户名/手机号': 'Please enter username or mobile number', + 发送验证码: 'Send verification code', + 请输入验证码: 'Please enter the verification code', 请输入邮箱: 'Please enter email address', + 后: 'after', + 重新发送: 'Resend', '邮箱格式错误,请重新输入': 'Mailbox format error, please re - enter', 发送密码重置邮件: 'Send a password reset message', 已发送密码重置邮件: 'A password reset message has been sent', @@ -187,6 +194,7 @@ export default { '两次输入的密码不一致,请重新输入': 'The passwords entered twice do not match. Please re-enter them', 设置新密码: 'Set new password', 请输入新密码进行密码重设: 'Please enter a new password for password reset', + 请输入原密码: 'Please enter old password', 请输入新密码: 'Please enter a new password', 请再次确认新密码: 'Please confirm the new password again', 密码修改成功: 'Password changed successfully', @@ -260,6 +268,8 @@ export default { 最近三个月: 'Last 3 months', 时间: 'Time', 操作人员: 'The operator', + 操作用户: 'The operator', + 用户全名: 'Full name', 操作对象: 'Action object', 操作类型: 'Operation type', 用户目录管理无权限访问: '【Categories Management】No access authority', @@ -446,4 +456,5 @@ export default { 退出登录: 'Log out', 确认退出登录_: '确认退出登录?', _需要设置新密码: ', You need to set a new password', + 导入覆盖提升: 'After checking, it is allowed to edit the personal information of existing users, and the existing user information will face the risk of being modified, so be cautious.', }; diff --git a/src/pages/src/language/lang/zh.js b/src/pages/src/language/lang/zh.js index 1d59f3424..b7c72c855 100644 --- a/src/pages/src/language/lang/zh.js +++ b/src/pages/src/language/lang/zh.js @@ -164,6 +164,7 @@ export default { 修复: '【修复】', 优化: '【优化】', // 密码 + 原密码: '原密码', 重置密码: '重置密码', 密码长度为: '密码长度为', '-32个字符,必须包含': '-32个字符,必须包含', @@ -173,6 +174,12 @@ export default { 数字: '数字', '特殊字符(除空格)': '特殊字符(除空格)', '请输入账户绑定的邮箱,我们将为您发送密码重置邮件': '请输入账户绑定的邮箱,我们将为您发送密码重置邮件', + '请输入账号信息,我们将为您发送重置密码短信': '请输入账号信息,我们将为您发送重置密码短信', + '请输入用户名/手机号': '请输入用户名/手机号', + 发送验证码: '发送验证码', + 请输入验证码: '请输入验证码', + 后: '后', + 重新发送: '重新发送', 请输入邮箱: '请输入邮箱', '邮箱格式错误,请重新输入': ' 邮箱格式错误,请重新输入', 发送密码重置邮件: '发送密码重置邮件', @@ -187,6 +194,7 @@ export default { '两次输入的密码不一致,请重新输入': '两次输入的密码不一致,请重新输入', 设置新密码: '设置新密码', 请输入新密码进行密码重设: '请输入新密码进行密码重设', + 请输入原密码: '请输入原密码', 请输入新密码: '请输入新密码', 请再次确认新密码: '请再次确认新密码', 密码修改成功: '密码修改成功', @@ -260,6 +268,8 @@ export default { 最近三个月: '最近三个月', 时间: '时间', 操作人员: '操作人员', + 操作用户: '操作用户', + 用户全名: '用户全名', 操作对象: '操作对象', 操作类型: '操作类型', 用户目录管理无权限访问: '【用户目录管理】无权限访问', @@ -445,4 +455,5 @@ export default { 退出登录: '退出登录', 确认退出登录_: '确认退出登录?', _需要设置新密码: ',需要设置新密码', + 导入覆盖提升: '勾选后,将允许对已经存在用户的个人信息进行编辑操作,现存用户信息将面临被修改风险,谨慎操作。', }; diff --git a/src/pages/src/store/modules/password.js b/src/pages/src/store/modules/password.js index 3c9e843b1..b9edf642c 100644 --- a/src/pages/src/store/modules/password.js +++ b/src/pages/src/store/modules/password.js @@ -33,5 +33,13 @@ export default { reset(context, params, config = {}) { return http.post('api/v1/web/passwords/reset/send_email/', params); }, + // 获取短信验证码 + sendSms(context, params, config = {}) { + return http.post('api/v1/web/passwords/reset/verification_code/send_sms/', params); + }, + // 发送验证码 + sendCode(context, params, config = {}) { + return http.post('api/v1/web/passwords/reset/verification_code/verify/', params); + }, }, }; diff --git a/src/pages/src/views/password/Email.vue b/src/pages/src/views/password/Email.vue new file mode 100644 index 000000000..d1c23e5a7 --- /dev/null +++ b/src/pages/src/views/password/Email.vue @@ -0,0 +1,151 @@ + + + + + + diff --git a/src/pages/src/views/password/Reset.vue b/src/pages/src/views/password/Reset.vue index 95faded4f..b22f771ef 100644 --- a/src/pages/src/views/password/Reset.vue +++ b/src/pages/src/views/password/Reset.vue @@ -25,71 +25,38 @@
蓝鲸智云
-
-
-
-

{{$t('重置密码')}}

-

{{$t('请输入账户绑定的邮箱,我们将为您发送密码重置邮件')}}

-

- - {{$t('邮箱格式错误,请重新输入')}} -

- - {{$t('发送密码重置邮件')}} -
-
-
-

{{$t('已发送密码重置邮件')}}

-

{{$t('已发送至您的邮箱')}}:{{resetEmail}}
{{$t('请查看邮件并根据提示进行操作')}}

- {{$t('前往邮箱')}} -
+
+ + + 短信 + + + 邮箱 + +
+ +
@@ -138,75 +105,9 @@ export default { } } -.login-content { - padding: 0 24px; - font-size: 14px; -} - -.common-title { - margin: 20px 0 6px 0; - font-size: 20px; - font-weight: 400; - color: rgba(49, 50, 56, 1); - line-height: 28px; -} - -.select-text { - padding-left: 12px; - - &::input-placeholder { - color: rgba(195, 205, 215, 1); - } -} - -.submit { - width: 100%; -} -// 重置密码 -.reset-content { - .text { - font-size: 14px; - font-weight: 400; - color: rgba(99, 101, 110, 1); - line-height: 20px; - margin: 10px 0 20px; - - &.show-error-info { - margin-bottom: 10px; - } - } - - .select-text { - margin-bottom: 20px; - } -} -// 错误提示 -.error-text { - margin-bottom: 10px; - color: #ea3636; - font-size: 14px; - - .text { - color: #ea3636; - } - - .icon { - color: #ea3636; - } +.login-methond { + position: absolute; + right: 24px; + top: 120px; } - -/*.logo-title { - width: 100%; - height: 110px; - border-bottom: 1px solid #F0F1F5; - border-radius: 2px 2px 0 0; - background: #fff; - text-align: center; - line-height: 110px; - img { - height: 35px; - vertical-align: top; - margin-top: 37px; - } - }*/ diff --git a/src/pages/src/views/password/Set.vue b/src/pages/src/views/password/Set.vue index 2ca9bf412..34e6632b6 100644 --- a/src/pages/src/views/password/Set.vue +++ b/src/pages/src/views/password/Set.vue @@ -29,7 +29,11 @@

{{$t('设置新密码')}}

-

{{setPasswordText}}{{$t('_需要设置新密码')}}

+

+ {{setPasswordText}}{{$t('_需要设置新密码')}} +

{{errorText}} @@ -89,7 +93,7 @@ export default { isShow: false, title: this.$t('密码修改成功'), }, - setPasswordText: this.$route.query.data.substring(1, this.$route.query.data.length - 1), + setPasswordText: (this.$route.query.data || '').substring(1, (this.$route.query.data || '').length - 1), }; }, // mounted () { diff --git a/src/pages/src/views/password/Sms.vue b/src/pages/src/views/password/Sms.vue new file mode 100644 index 000000000..74f8407a3 --- /dev/null +++ b/src/pages/src/views/password/Sms.vue @@ -0,0 +1,222 @@ + + + + + +