BUG 29478

This commit is contained in:
aixianling
2022-05-06 16:09:58 +08:00
parent e603f704cd
commit 6f7008e138
2 changed files with 14 additions and 14 deletions

View File

@@ -112,6 +112,8 @@ export default {
}, },
onLoad() { onLoad() {
this.isGirdUser() this.isGirdUser()
this.girdId = this.user.girdId
this.confirmSelect(this.user)
uni.$on('updateBackList', () => { uni.$on('updateBackList', () => {
this.getListInit() this.getListInit()
this.getTotal() this.getTotal()
@@ -143,9 +145,9 @@ export default {
} }
this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveGirdId=${this.girdId}`) this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveGirdId=${this.girdId}`)
.then((res) => { .then((res) => {
if (res.code == 0) { if (res?.data) {
res.data.records.map((item) => { res.data.records.map((item) => {
item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/, "$1********$2") item.idNumber = this.$idCardNoUtil.hideId(item.idNumber)
}) })
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
} }
@@ -153,7 +155,7 @@ export default {
}, },
getTotal() { getTotal() {
this.$http.post(`/app/appepidemicbackhomerecord/statistic?arriveGirdId=${this.girdId}`).then((res) => { this.$http.post(`/app/appepidemicbackhomerecord/statistic?arriveGirdId=${this.girdId}`).then((res) => {
if (res.code == 0) { if (res?.data) {
this.totalInfo = res.data this.totalInfo = res.data
} }
}) })
@@ -168,9 +170,7 @@ export default {
this.isAdmin = false this.isAdmin = false
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res?.data) { if (res?.data) {
if (res.data.checkType != '0') { this.isAdmin = res.data.checkType != '0'
this.isAdmin = true
}
} }
}) })
}, },

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="AppHealthUp"> <div class="AppHealthUp">
<AiTopFixed> <AiTopFixed>
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" @change="change" <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" @change="change"
:bar-width="48" :bar-height="4" active-color="#fff" bg-color="#3975C6" inactive-color="#CDDCF0"></u-tabs> :bar-width="48" :bar-height="4" active-color="#fff" bg-color="#3975C6" inactive-color="#CDDCF0"></u-tabs>
</AiTopFixed> </AiTopFixed>
<div v-if="currentTabs != 1"> <div v-if="currentTabs != 1">
@@ -132,7 +132,7 @@
</div> </div>
<div class="pad-b112" v-if="currentTabs == 1 && isAdmin"></div> <div class="pad-b112" v-if="currentTabs == 1 && isAdmin"></div>
</div> </div>
<div class="add-btn" v-if="!isUpload && currentTabs != 1" @click="submit"> <div class="add-btn" v-if="!isUpload && currentTabs != 1" @click="submit">
<div>提交</div> <div>提交</div>
</div> </div>
@@ -168,7 +168,7 @@ export default {
}, },
onLoad() { onLoad() {
this.$dict.load('epidemicTouchInFourteen', 'epidemicRecentHealth') this.$dict.load('epidemicTouchInFourteen', 'epidemicRecentHealth')
var date = new Date(); let date = new Date();
this.selectDay = date.getDate() this.selectDay = date.getDate()
this.month = date.getMonth() + 1 this.month = date.getMonth() + 1
this.getStatis() this.getStatis()
@@ -217,7 +217,7 @@ export default {
}, },
getCheckTodayReport() { getCheckTodayReport() {
this.$http.post(`/app/appepidemichealthreport/checkTodayReport`).then((res) => { this.$http.post(`/app/appepidemichealthreport/checkTodayReport`).then((res) => {
if (res.code == 0) { if (res?.data) {
this.isUpload = res.data this.isUpload = res.data
} }
}) })
@@ -225,7 +225,7 @@ export default {
getStatis() { getStatis() {
this.dayList = [] this.dayList = []
this.$http.post(`/app/appepidemichealthreport/statistic`).then((res) => { this.$http.post(`/app/appepidemichealthreport/statistic`).then((res) => {
if (res.code == 0) { if (res?.data) {
Object.keys(res.data).forEach((key) => { Object.keys(res.data).forEach((key) => {
var info = { var info = {
week: res.data[key].week, week: res.data[key].week,
@@ -237,12 +237,12 @@ export default {
}) })
var week = Number(this.dayList[0].week) - 1 var week = Number(this.dayList[0].week) - 1
if(week > 0) { if(week > 0) {
for(var i= 0; i<week; i++){ for(var i= 0; i<week; i++){
var info = { var info = {
id: '', id: '',
} }
this.dayList.unshift(info) this.dayList.unshift(info)
} }
} }
this.dayList.map((item) => { this.dayList.map((item) => {
if(item.day == this.selectDay && item.id) { if(item.day == this.selectDay && item.id) {
@@ -511,7 +511,7 @@ uni-page-body {
.placeholder { .placeholder {
.content { .content {
padding: 0 !important; padding: 0 !important;
} }
} }
.fixed { .fixed {