this.$hideLoading()

This commit is contained in:
花有清香月有阴
2022-01-18 10:05:35 +08:00
parent b661481877
commit ffe3eb79f0
3 changed files with 25 additions and 76 deletions

View File

@@ -157,38 +157,22 @@ export default {
methods: {
getUser() {
this.$loading()
this.$http
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`)
.then((res) => {
if (res.code == 0) {
this.data = res.data
this.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
this.$hideLoading()
} else {
this.$hideLoading()
}
})
.catch(() => {
this.$hideLoading()
})
this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`).then((res) => {
if (res.code == 0) {
this.data = res.data
this.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/, '$1********$2')
}
})
},
// 异常情况记录
getRecord() {
this.$loading()
this.$http
.post(`/app/appepidemicunusuallog/list?recordId=${this.userList.memberId}`)
.then((res) => {
if (res.code == 0) {
this.datas = res.data.records
this.$hideLoading()
} else {
this.$hideLoading()
}
})
.catch(() => {
this.$hideLoading()
})
this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.userList.memberId}`).then((res) => {
if (res.code == 0) {
this.datas = res.data.records
}
})
},
callPhone(phone) {