This commit is contained in:
花有清香月有阴
2022-01-12 18:29:17 +08:00
parent b1271700c6
commit 831c3613a6

View File

@@ -94,37 +94,19 @@ export default {
}, },
methods: { methods: {
getUser() { getUser() {
this.$loading() this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`).then((res) => {
this.$http if (res.code == 0) {
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`) this.userList = res.data
.then((res) => { }
if (res.code == 0) { })
this.userList = res.data
this.$hideLoading()
} else {
this.$hideLoading()
}
})
.catch(() => {
this.$hideLoading()
})
}, },
getRecord() { getRecord() {
this.$loading() this.$http.post(`/app/appepidemichealthreport/list?memberId=${this.id}`).then((res) => {
this.$http if (res.code == 0) {
.post(`/app/appepidemichealthreport/list?memberId=${this.id}`) this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
.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()
})
}, },
callPhone(phone) { callPhone(phone) {