Browse Source

户籍地问题 导出不需要验证码

master
mk 3 months ago
parent
commit
2e4d3ac9eb
  1. 52
      src/views/modules/epidemic/epidemicreportuserinfo.vue

52
src/views/modules/epidemic/epidemicreportuserinfo.vue

@ -600,12 +600,11 @@
align="center"
width="150"></el-table-column>
<el-table-column prop="householdRegisterName"
label="户籍地">
header-align="center"
label="户籍地" header-align="center"
align="center"
width="150"></el-table-column>
>
</el-table-column>
<el-table-column prop="hushaiStatus"
label="户籍状态"
header-align="center"
@ -1332,29 +1331,30 @@ export default {
exportHandle () {
this.checkMobile = ''
this.smsCode = ''
this.$http
.get(`/sys/verificationfreeuser/preCheckLoginUser`)
.then(({ data: res }) => {
if (res.code > 1) {
return this.$message.error(res.msg)
}
//
if (res.code === 1) {
//
var myreg = /^[1][0-9]{10}$/
if (!myreg.test(res.msg)) {
return this.$message.error(res.msg + '手机号格式错误!')
}
// ****
this.checkMobile = res.msg.replace(res.msg.substring(3, 7), '****')
this.dialogVisibleSMS = true
}
if (res.code === 0) {
//
this.downloadExport()
}
})
.catch(() => { })
// this.$http
// .get(`/sys/verificationfreeuser/preCheckLoginUser`)
// .then(({ data: res }) => {
// if (res.code > 1) {
// return this.$message.error(res.msg)
// }
// //
// if (res.code === 1) {
// //
// var myreg = /^[1][0-9]{10}$/
// if (!myreg.test(res.msg)) {
// return this.$message.error(res.msg + '')
// }
// // ****
// this.checkMobile = res.msg.replace(res.msg.substring(3, 7), '****')
// this.dialogVisibleSMS = true
// }
// if (res.code === 0) {
// //
// this.downloadExport()
// }
// })
// .catch(() => { })
},
//
downloadExport () {

Loading…
Cancel
Save