Kaynağa Gözat

Bug 错误时列表无限刷新

rongxin_dev
zhaodengke 7 ay önce
ebeveyn
işleme
bc82f96296
16 değiştirilmiş dosya ile 39 ekleme ve 0 silme
  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 Dosyayı Görüntüle

@@ -123,6 +123,8 @@ export default {
{ {
this.setupFinished(true); this.setupFinished(true);
} }
}).catch((err) => {
this.setupError(err);
}).finally(() => { }).finally(() => {
this.setupLoading(false); this.setupLoading(false);
this.setupRefreshing(false); this.setupRefreshing(false);
@@ -157,6 +159,13 @@ export default {
if(ok) if(ok)
this.$emit('finished', this.stateTotal); 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) { setupRefreshing(ok) {
this.log(`refreshing -> ${ok}`); this.log(`refreshing -> ${ok}`);
this.stateRefreshing = ok; this.stateRefreshing = ok;


+ 2
- 0
src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/onlineHome/homestead/arbitration/arbitrationList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/onlineHome/homestead/arbitration/arbitrationProcessList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/onlineHome/homestead/certificate/certificateList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/onlineHome/homestead/homeApplication/applicationList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/onlineHome/homestead/reporting/taskReportingList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/onlineHome/publicity.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/sunVillage_info/arbitration/arbitrationList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/sunVillage_info/entityReport/reportLineList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/sunVillage_info/entityReport/reportList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/sunVillage_info/homeApplication/applicationList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/sunVillage_info/homeApplication/applicationNewList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/sunVillage_info/list_tourists_ranking_lite.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/yinnong/homestead/homeApplication/applicationGsList.vue Dosyayı Görüntüle

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


+ 2
- 0
src/views/yinnong/homestead/homeApplication/applicationList.vue Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet