健康监测

This commit is contained in:
花有清香月有阴
2022-01-11 15:56:08 +08:00
parent 086c4fbc91
commit 2cbcf2198c
4 changed files with 109 additions and 12 deletions

View File

@@ -66,15 +66,59 @@ export default {
data() {
return {
data: [],
id: '',
}
},
computed: {
...mapState(['user']),
},
watch: {},
onLoad() {},
onShow() {},
onLoad(o) {
if (o.id) {
this.id = o.id
this.getDetail()
}
this.getRecord()
},
onShow() {
document.title = '健康监测'
},
methods: {
getDetail() {
this.$loading()
this.$http
.post(`/app/appepidemichealthreport/list`)
.then((res) => {
if (res?.code == 0) {
console.log(res.data)
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
this.$hideLoading()
} else {
this.$hideLoading()
}
})
.catch(() => {
this.$hideLoading()
})
},
getRecord() {
this.$loading()
this.$http
.post(`/app/appepidemicunusuallog/list`)
.then((res) => {
if (res?.code == 0) {
console.log(res.data)
this.$hideLoading()
} else {
this.$hideLoading()
}
})
.catch(() => {
this.$hideLoading()
})
},
toUserDetail() {
uni.navigateTo({
url: `./UserDetail`,