健康监测
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user