卡口登记

This commit is contained in:
shijingjing
2022-09-23 16:09:06 +08:00
parent 3b5aec0bca
commit c1ea828f77
4 changed files with 220 additions and 142 deletions

View File

@@ -9,7 +9,7 @@
</div>
</div>
<div class="home-list">
<div class="item" hover-class="bg-hover" @click="$linkTo(`./Detail?id=${item.id}`)"
<div class="item" hover-class="bg-hover" @click="$linkTo(`./DetailGetway?id=${item.id}`)"
v-for="(item, index) in list" :key="index">
<div class="item-top">
<h2>{{ item.name }}</h2>
@@ -29,6 +29,10 @@
<image src="/static/img/to-date.png"/>
<span>{{ item.arriveTime && item.arriveTime.substr(0, item.arriveTime.length - 3) }} 到达</span>
</div>
<div class="item-info__item">
<image src="/static/img/kakou.png"/>
<span>{{ item.gatewayName }}</span>
</div>
</div>
</div>
<AiEmpty v-if="list.length==0"/>
@@ -73,21 +77,17 @@ export default {
this.$linkTo('./AddGetway')
},
getList() {
this.$instance.post(`/app/appepidemicbackhomerecord/list`, null, {
this.$instance.post(`/app/appepidemicpreventionregisterinfo/list`, null, {
params: {
openId: this.user.openId,
createUserId: this.user.id,
current: this.current,
size: 15
size: 10,
}
}).then(res => {
uni.hideLoading()
if (res?.data) {
this.total = res.data.total
if (this.current > 1) {
this.list = [...this.list, ...res.data.records]
} else {
this.list = res.data.records
}
this.list = this.current == 1? res.data.records:[...this.list, ...res.data.records]
}
}).catch(() => {
uni.hideLoading()