|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
|
<div class="page-box">
|
|
|
- <moduleView :propConfig="config" ref="view" v-loading="load" @pagination="pagination" @onRefresh="getList" @resert="queryList" @search="queryList" />
|
|
|
+ <moduleView :propConfig="config" ref="view" v-loading="load" @pagination="pagination" @onRefresh="statisticsHandle" @resert="queryList" @search="queryList" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { computed,getCurrentInstance,ref } from "vue";
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
- import {list} from '@/api/base/adPutIn'
|
|
|
+ import {list,totalHandle} from '@/api/base/adPutIn'
|
|
|
|
|
|
|
|
|
const config = ref({
|
|
@@ -159,8 +159,15 @@
|
|
|
load.value = false;
|
|
|
})
|
|
|
}
|
|
|
+ const statisticsHandle= () => {
|
|
|
+ totalHandle().then(()=>{
|
|
|
+ getList()
|
|
|
+ }).catch(()=>{
|
|
|
+ getList()
|
|
|
+ })
|
|
|
+ }
|
|
|
nextTick(()=>{
|
|
|
- getList()
|
|
|
+ statisticsHandle()
|
|
|
})
|
|
|
</script>
|
|
|
|