|
@@ -59,7 +59,7 @@
|
|
|
</van-search>
|
|
</van-search>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="lineGrey"></div>
|
|
<div class="lineGrey"></div>
|
|
|
- <div v-if="refreshTotal" class="refreshBtn" @click="refresh">检测到 {{ refreshTotal }} 条更新,点击刷新</div>
|
|
|
|
|
|
|
+ <div v-if="refreshTotal" class="refreshBtn" @click="onSearch">检测到 {{ refreshTotal }} 条更新,点击刷新</div>
|
|
|
<div v-if="refreshTotal" class="lineGrey"></div>
|
|
<div v-if="refreshTotal" class="lineGrey"></div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 主体内容-->
|
|
<!-- 主体内容-->
|
|
@@ -308,10 +308,6 @@ export default {
|
|
|
this.onSearch();
|
|
this.onSearch();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- refresh(){
|
|
|
|
|
- this.refreshTotal = 0;
|
|
|
|
|
- this.onSearch();
|
|
|
|
|
- },
|
|
|
|
|
getListTotalFn(){
|
|
getListTotalFn(){
|
|
|
getListTotal({
|
|
getListTotal({
|
|
|
startTime: this.startTime + ' 00:00:00',
|
|
startTime: this.startTime + ' 00:00:00',
|
|
@@ -403,6 +399,8 @@ export default {
|
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
|
},
|
|
},
|
|
|
onSearch() {
|
|
onSearch() {
|
|
|
|
|
+ this.refreshTotal = 0;
|
|
|
|
|
+ window.scrollTo(0, 0);
|
|
|
this.pageNum = 1;
|
|
this.pageNum = 1;
|
|
|
this.list = [];
|
|
this.list = [];
|
|
|
this.getVisitsListFn();
|
|
this.getVisitsListFn();
|