Parcourir la source

Bug 错误时列表无限刷新

rongxin_dev
zhaodengke il y a 7 mois
Parent
révision
bc82f96296
16 fichiers modifiés avec 39 ajouts et 0 suppressions
  1. +9
    -0
      src/components/common/PagedList.vue
  2. +2
    -0
      src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue
  3. +2
    -0
      src/views/onlineHome/homestead/arbitration/arbitrationList.vue
  4. +2
    -0
      src/views/onlineHome/homestead/arbitration/arbitrationProcessList.vue
  5. +2
    -0
      src/views/onlineHome/homestead/certificate/certificateList.vue
  6. +2
    -0
      src/views/onlineHome/homestead/homeApplication/applicationList.vue
  7. +2
    -0
      src/views/onlineHome/homestead/reporting/taskReportingList.vue
  8. +2
    -0
      src/views/onlineHome/publicity.vue
  9. +2
    -0
      src/views/sunVillage_info/arbitration/arbitrationList.vue
  10. +2
    -0
      src/views/sunVillage_info/entityReport/reportLineList.vue
  11. +2
    -0
      src/views/sunVillage_info/entityReport/reportList.vue
  12. +2
    -0
      src/views/sunVillage_info/homeApplication/applicationList.vue
  13. +2
    -0
      src/views/sunVillage_info/homeApplication/applicationNewList.vue
  14. +2
    -0
      src/views/sunVillage_info/list_tourists_ranking_lite.vue
  15. +2
    -0
      src/views/yinnong/homestead/homeApplication/applicationGsList.vue
  16. +2
    -0
      src/views/yinnong/homestead/homeApplication/applicationList.vue

+ 9
- 0
src/components/common/PagedList.vue Voir le fichier

@@ -123,6 +123,8 @@ export default {
{
this.setupFinished(true);
}
}).catch((err) => {
this.setupError(err);
}).finally(() => {
this.setupLoading(false);
this.setupRefreshing(false);
@@ -157,6 +159,13 @@ export default {
if(ok)
this.$emit('finished', this.stateTotal);
},
setupError(err) {
this.log(`error -> ${ok}`);
this.stateFinished = true;
if(this.stateFinished != this.finished)
this.$emit('update:finished', this.stateFinished);
this.$emit('error', err);
},
setupRefreshing(ok) {
this.log(`refreshing -> ${ok}`);
this.stateRefreshing = ok;


+ 2
- 0
src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue Voir le fichier

@@ -131,6 +131,8 @@ export default {
});
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/onlineHome/homestead/arbitration/arbitrationList.vue Voir le fichier

@@ -137,6 +137,8 @@ export default {
});
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/onlineHome/homestead/arbitration/arbitrationProcessList.vue Voir le fichier

@@ -131,6 +131,8 @@ export default {
});
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/onlineHome/homestead/certificate/certificateList.vue Voir le fichier

@@ -142,6 +142,8 @@ export default {
});
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/onlineHome/homestead/homeApplication/applicationList.vue Voir le fichier

@@ -146,6 +146,8 @@ export default {
}
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/onlineHome/homestead/reporting/taskReportingList.vue Voir le fichier

@@ -133,6 +133,8 @@ export default {
});
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/onlineHome/publicity.vue Voir le fichier

@@ -90,6 +90,8 @@ import { getList } from "@/api/onlineHome/homestead/information";
});
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/sunVillage_info/arbitration/arbitrationList.vue Voir le fichier

@@ -180,6 +180,8 @@ export default {
});
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/sunVillage_info/entityReport/reportLineList.vue Voir le fichier

@@ -113,6 +113,8 @@ export default {
this.list.push(...response.rows);
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/sunVillage_info/entityReport/reportList.vue Voir le fichier

@@ -129,6 +129,8 @@ export default {
this.list.push(...response.rows);
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/sunVillage_info/homeApplication/applicationList.vue Voir le fichier

@@ -160,6 +160,8 @@ export default {
}
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/sunVillage_info/homeApplication/applicationNewList.vue Voir le fichier

@@ -160,6 +160,8 @@ export default {
}
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/sunVillage_info/list_tourists_ranking_lite.vue Voir le fichier

@@ -115,6 +115,8 @@ import {registrationList} from "@/api/sunVillage_info/subcontract";
}
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/yinnong/homestead/homeApplication/applicationGsList.vue Voir le fichier

@@ -143,6 +143,8 @@
}
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


+ 2
- 0
src/views/yinnong/homestead/homeApplication/applicationList.vue Voir le fichier

@@ -158,6 +158,8 @@ export default {
}
this.total += response.rows.length;
this.finished = this.total >= response.total;
}).catch(() => {
this.finished = true;
}).finally(() => {
this.loading = false;
this.refreshing = false;


Chargement…
Annuler
Enregistrer