From 565e416492975b9c15f0fa513a2c99b30e1f232e Mon Sep 17 00:00:00 2001
From: zhangyongzhangyong <2012005003@qq.com>
Date: Thu, 23 Dec 2021 13:54:00 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=8D=E6=A0=A1=E9=AA=8CPC=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/zh-CN.js | 2 +
.../epidemic/epidemicreportuserinfo.vue | 12 +-
.../verificationfreeuser-add-or-update.vue | 131 ++++++++++++++++++
.../modules/sys/verificationfreeuser.vue | 116 ++++++++++++++++
4 files changed, 255 insertions(+), 6 deletions(-)
create mode 100644 src/views/modules/sys/verificationfreeuser-add-or-update.vue
create mode 100644 src/views/modules/sys/verificationfreeuser.vue
diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js
index 917042f..8070c48 100644
--- a/src/i18n/zh-CN.js
+++ b/src/i18n/zh-CN.js
@@ -383,6 +383,8 @@ t.user.mobile = '手机号'
t.user.status = '状态'
t.user.status0 = '停用'
t.user.status1 = '正常'
+t.user.status2 = '拒绝访问'
+t.user.status3 = '允许访问'
t.user.createDate = '创建时间'
t.user.password = '密码'
t.user.comfirmPassword = '确认密码'
diff --git a/src/views/modules/epidemic/epidemicreportuserinfo.vue b/src/views/modules/epidemic/epidemicreportuserinfo.vue
index b17436b..3419710 100644
--- a/src/views/modules/epidemic/epidemicreportuserinfo.vue
+++ b/src/views/modules/epidemic/epidemicreportuserinfo.vue
@@ -956,7 +956,7 @@ export default {
exportHandle () {
this.checkMobile = ''
this.$http
- .get(`/custom/epidemicuserinfo/preCheckLoginUser`)
+ .get(`/sys/verificationfreeuser/preCheckLoginUser`)
.then(({ data: res }) => {
if (res.code > 1) {
return this.$message.error(res.msg)
@@ -964,9 +964,9 @@ export default {
// 需要向当前登录用户,发送短信验证码
if (res.code === 1) {
// 校验手机号格式
- var myreg=/^[1][0-9]{10}$/
+ var myreg = /^[1][0-9]{10}$/
if (!myreg.test(res.msg)) {
- return this.$message.error(res.msg + '手机号格式错误!')
+ return this.$message.error(res.msg + '手机号格式错误!')
}
this.checkMobile = res.msg
this.dialogVisibleSMS = true
@@ -987,9 +987,9 @@ export default {
window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportURL}?${params}`
},
// 发送验证码
- sendSMS() {
+ sendSMS () {
this.$http
- .get(`/custom/epidemicuserinfo/sendSMS`)
+ .get(`/sys/verificationfreeuser/sendSMS`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@@ -999,7 +999,7 @@ export default {
},
postCheckSMSCode () {
this.$http
- .get(`/custom/epidemicuserinfo/postCheckSMSCode/${this.smsCode}`)
+ .get(`/sys/verificationfreeuser/postCheckSMSCode/${this.smsCode}`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
diff --git a/src/views/modules/sys/verificationfreeuser-add-or-update.vue b/src/views/modules/sys/verificationfreeuser-add-or-update.vue
new file mode 100644
index 0000000..43c0096
--- /dev/null
+++ b/src/views/modules/sys/verificationfreeuser-add-or-update.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+ {{ $t('confirm') }}
+
+
+
+
+
diff --git a/src/views/modules/sys/verificationfreeuser.vue b/src/views/modules/sys/verificationfreeuser.vue
new file mode 100644
index 0000000..df92d30
--- /dev/null
+++ b/src/views/modules/sys/verificationfreeuser.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('query') }}
+
+
+
+
+
+
+
+
+
+
+ {{ $t('user.status2') }}
+ {{ $t('user.status3') }}
+
+
+
+
+
+ 允许访问
+ 拒绝访问
+
+
+
+
+
+
+
+
+
+
+
+