@@ -101,7 +101,7 @@ export default {
},
],
currentTabs: 0,
-
+ userList: [],
data: [],
}
},
@@ -113,6 +113,7 @@ export default {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.getList()
+ this.getUserList()
},
onShow() {
document.title = '健康监测'
@@ -123,7 +124,7 @@ export default {
title: '加载数据中',
})
this.$http
- .post('/app/appepidemichealthreport/list', null, {
+ .post('/app/appepidemicreportmember/list', null, {
params: { size: 20, current: this.current, areaId: this.areaId, status: this.currentTabs == 1 ? '0' : '' },
})
.then((res) => {
@@ -139,12 +140,36 @@ export default {
})
},
+ getUserList() {
+ uni.showLoading({
+ title: '加载数据中',
+ })
+ this.$http
+ .post('/app/appepidemicreportmember/statistic')
+ .then((res) => {
+ if (res?.code == 0) {
+ this.userList = res.data
+ uni.hideLoading()
+ } else {
+ uni.hideLoading()
+ }
+ })
+ .catch(() => {
+ uni.hideLoading()
+ })
+ },
+
goDetail() {
uni.navigateTo({
url: `./HealthDetail`,
})
},
+ areaSelect(e) {
+ this.areaId = e
+ this.getList()
+ },
+
change(index) {
this.data = []
this.areaId = this.user.areaId
@@ -232,7 +257,11 @@ export default {
background: #f3f6f9;
}
- .bottom {
+ .bottoms {
+ .u-tabs {
+ margin-bottom: -8px;
+ }
+
.line3 {
height: 4px;
background: #f3f6f9;
diff --git a/src/apps/AppEpidemicSituation/HealthDetail.vue b/src/apps/AppEpidemicSituation/HealthDetail.vue
index 9ec9435f..72f80ccc 100644
--- a/src/apps/AppEpidemicSituation/HealthDetail.vue
+++ b/src/apps/AppEpidemicSituation/HealthDetail.vue
@@ -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`,
diff --git a/src/apps/AppEpidemicSituation/UserDetail.vue b/src/apps/AppEpidemicSituation/UserDetail.vue
index 5c306de8..26f04a29 100644
--- a/src/apps/AppEpidemicSituation/UserDetail.vue
+++ b/src/apps/AppEpidemicSituation/UserDetail.vue
@@ -79,9 +79,32 @@ export default {
components: {},
props: {},
data() {
- return {}
+ return {
+ id: '',
+ }
+ },
+ onLoad() {},
+ onShow() {
+ document.title = '健康监测'
+ },
+ methods: {
+ getDetail() {
+ this.$loading()
+ this.$http
+ .post(`/app/appepidemichealthreport/queryDetailById?memberId=${this.id}`)
+ .then((res) => {
+ if (res?.code == 0) {
+ console.log(res.data)
+ this.$hideLoading()
+ } else {
+ this.$hideLoading()
+ }
+ })
+ .catch(() => {
+ this.$hideLoading()
+ })
+ },
},
- methods: {},
}