|
@@ -271,7 +271,7 @@ export default {
|
|
|
activated() {
|
|
activated() {
|
|
|
let typeQuery = localStorage.getItem('typeQuery');
|
|
let typeQuery = localStorage.getItem('typeQuery');
|
|
|
if(this.latestUpdateTime!=null && typeQuery == 1){
|
|
if(this.latestUpdateTime!=null && typeQuery == 1){
|
|
|
- this.getListTotalFn();
|
|
|
|
|
|
|
+ this.getListTotalFn();
|
|
|
}else{
|
|
}else{
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.onSearch();
|
|
this.onSearch();
|
|
@@ -440,7 +440,9 @@ export default {
|
|
|
loading1.clear();
|
|
loading1.clear();
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
- this.latestUpdateTime = res.dataTime;
|
|
|
|
|
|
|
+ if(this.pageNum == 1){
|
|
|
|
|
+ this.latestUpdateTime = res.dataTime;
|
|
|
|
|
+ }
|
|
|
this.list = this.list.concat(res.data);
|
|
this.list = this.list.concat(res.data);
|
|
|
if (this.list.length >= res.total) {
|
|
if (this.list.length >= res.total) {
|
|
|
this.finished = true;
|
|
this.finished = true;
|