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" align="center"
width="150"></el-table-column> width="150"></el-table-column>
<el-table-column prop="householdRegisterName" <el-table-column prop="householdRegisterName"
label="户籍地"> label="户籍地" header-align="center"
header-align="center"
align="center" align="center"
width="150"></el-table-column> >
</el-table-column>
<el-table-column prop="hushaiStatus" <el-table-column prop="hushaiStatus"
label="户籍状态" label="户籍状态"
header-align="center" header-align="center"
@ -1332,29 +1331,30 @@ export default {
exportHandle () { exportHandle () {
this.checkMobile = '' this.checkMobile = ''
this.smsCode = '' 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() this.downloadExport()
} // this.$http
}) // .get(`/sys/verificationfreeuser/preCheckLoginUser`)
.catch(() => { }) // .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 () { downloadExport () {

Loading…
Cancel
Save