this.$hideLoading()
This commit is contained in:
@@ -131,43 +131,25 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getUser() {
|
||||
this.$loading()
|
||||
this.$http
|
||||
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.userList = res.data
|
||||
this.$hideLoading()
|
||||
} else {
|
||||
this.$hideLoading()
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.userList = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 异常情况
|
||||
getErrThing() {
|
||||
this.$loading()
|
||||
this.$http
|
||||
.post(`/app/appepidemichealthreport/list?memberId=${this.id}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.datas = res.data.records
|
||||
this.$hideLoading()
|
||||
} else {
|
||||
this.$hideLoading()
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
this.$http.post(`/app/appepidemichealthreport/list?memberId=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.datas = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 异常情况记录
|
||||
getRecord() {
|
||||
this.$loading()
|
||||
this.$http
|
||||
.post(`/app/appepidemicunusuallog/list`, null, {
|
||||
params: {
|
||||
@@ -179,14 +161,8 @@ export default {
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||
this.$hideLoading()
|
||||
} else {
|
||||
this.$hideLoading()
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
// 新增记录
|
||||
|
||||
@@ -147,22 +147,11 @@ export default {
|
||||
},
|
||||
|
||||
getUserList() {
|
||||
uni.showLoading({
|
||||
title: '加载数据中',
|
||||
this.$http.post(`/app/appepidemicreportmember/statistic?areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.userList = res.data
|
||||
}
|
||||
})
|
||||
this.$http
|
||||
.post(`/app/appepidemicreportmember/statistic?areaId=${this.areaId}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.userList = res.data
|
||||
uni.hideLoading()
|
||||
} else {
|
||||
uni.hideLoading()
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
goDetail(item) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user