uu
This commit is contained in:
parent
6829645900
commit
b46bce64f9
@ -114,6 +114,7 @@
|
||||
return
|
||||
}
|
||||
if (reload) {
|
||||
this.$emit('onListReload', this.searchParam)
|
||||
this.page.pageNum = 1
|
||||
this.showLoading()
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
<template v-slot:body>
|
||||
<view class="pos-abt-all">
|
||||
<tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
|
||||
ref="listRef"
|
||||
ref="listRef" @onListReload="handleListReload"
|
||||
>
|
||||
<view class="pgb-cont">
|
||||
<!-- 列表数据 -->
|
||||
@ -168,10 +168,13 @@
|
||||
return res
|
||||
},
|
||||
initData(){
|
||||
this.getStaticData()
|
||||
},
|
||||
async getStaticData(){
|
||||
let cpParam = this.transSearchPm(this.searchParam)
|
||||
handleListReload(params){
|
||||
// list重置到第一页,需重新查询统计数据
|
||||
this.getStaticData(params)
|
||||
},
|
||||
async getStaticData(params){
|
||||
let cpParam = this.transSearchPm(params)
|
||||
const staRes = await apiService.getWaybillStatMap(cpParam)
|
||||
let { hasDoNum, waitDoNum, statNumList } = staRes.data
|
||||
this.staticInfo.commStat = { hasDoNum, waitDoNum }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user