BUG 28274
This commit is contained in:
@@ -23,17 +23,19 @@
|
||||
<i>{{ item.diffNum || 0 }}</i>
|
||||
<span>天</span>
|
||||
</div>
|
||||
<div class="item-bottom__right" hover-class="text-hover" v-if="item.today === '0'" @click.stop="$linkTo('./AddReport?id=' + item.id)">
|
||||
<div class="item-bottom__right" hover-class="text-hover" v-if="item.today === '0'"
|
||||
@click.stop="$linkTo('./AddReport?id=' + item.id)">
|
||||
<span style="color: #FF883C">今日未上报</span>
|
||||
<u-icon name="arrow-right" color="#ddd"/>
|
||||
</div>
|
||||
<div class="item-bottom__right" hover-class="text-hover" v-else @click.stop="$linkTo('./RecordList?id=' + item.id)">
|
||||
<div class="item-bottom__right" hover-class="text-hover" v-else
|
||||
@click.stop="$linkTo('./RecordList?id=' + item.id)">
|
||||
<span style="color: #999999">今日已上报</span>
|
||||
<u-icon name="arrow-right" color="#ddd"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length && !isMore"/>
|
||||
<AiEmpty v-if="list.length==0"/>
|
||||
</div>
|
||||
<div class="btn-wrapper">
|
||||
<div class="btn" @click="toReport" hover-class="text-hover">添加上报人员</div>
|
||||
@@ -42,17 +44,17 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name:"AppHealthReport",
|
||||
appName:"健康上报",
|
||||
data () {
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "AppHealthReport",
|
||||
appName: "健康上报",
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
pageShow: false,
|
||||
current: 1,
|
||||
total: 0,
|
||||
isMore: false
|
||||
}
|
||||
},
|
||||
|
||||
@@ -60,7 +62,7 @@
|
||||
...mapState(['user'])
|
||||
},
|
||||
|
||||
onLoad () {
|
||||
onLoad() {
|
||||
this.$loading()
|
||||
this.$dict.load(['villageActivityStatus']).then(() => {
|
||||
this.getList()
|
||||
@@ -68,8 +70,6 @@
|
||||
|
||||
uni.$on('update', () => {
|
||||
this.current = 1
|
||||
this.isMore = false
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.getList()
|
||||
})
|
||||
@@ -77,12 +77,11 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
toReport () {
|
||||
toReport() {
|
||||
this.$linkTo('./AddUser')
|
||||
},
|
||||
|
||||
getList() {
|
||||
if (this.isMore) return
|
||||
|
||||
this.$instance.post(`/app/appepidemicreportmember/list?openId=${this.user.openId}`, null, {
|
||||
params: {
|
||||
@@ -100,7 +99,6 @@
|
||||
uni.hideLoading()
|
||||
this.pageShow = true
|
||||
if (res.data.records.length < 15) {
|
||||
this.isMore = true
|
||||
|
||||
return false
|
||||
}
|
||||
@@ -118,11 +116,11 @@
|
||||
onReachBottom() {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" socped>
|
||||
.returnHomeRegister {
|
||||
.returnHomeRegister {
|
||||
padding: 0 0 150px 0;
|
||||
|
||||
.title {
|
||||
@@ -221,5 +219,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user