|
|
@@ -1222,10 +1222,6 @@ export default {
|
|
|
getUserOrgStoreList() {
|
|
|
this.storeType = localStorage.getItem('storeType');
|
|
|
this.endShow = false;
|
|
|
- if (this.refreshing) {
|
|
|
- this.list = [];
|
|
|
- this.refreshing = false;
|
|
|
- }
|
|
|
var that = this;
|
|
|
this.disabled = true;
|
|
|
this.toastLoading(0, '加载中...', true);
|
|
|
@@ -1241,6 +1237,9 @@ export default {
|
|
|
genDate: this.genDate,
|
|
|
}).then((res) => {
|
|
|
this.disabled = false;
|
|
|
+ if (this.refreshing) {
|
|
|
+ this.refreshing = false;
|
|
|
+ }
|
|
|
this.toastLoading().clear();
|
|
|
if (res.code == 200) {
|
|
|
this.loading = false;
|
|
|
@@ -1268,6 +1267,7 @@ export default {
|
|
|
this.showPopoverZ.push({ showPopover: false });
|
|
|
});
|
|
|
} else {
|
|
|
+ this.list = [];
|
|
|
this.$toast(res.msg);
|
|
|
}
|
|
|
});
|
|
|
@@ -1304,10 +1304,6 @@ export default {
|
|
|
forbidClick: true,
|
|
|
});
|
|
|
this.endShow = false;
|
|
|
- if (this.refreshing) {
|
|
|
- this.list = [];
|
|
|
- this.refreshing = false;
|
|
|
- }
|
|
|
getUserOutPlaList({
|
|
|
lat: that.lat,
|
|
|
lon: that.lon,
|
|
|
@@ -1320,6 +1316,9 @@ export default {
|
|
|
genDate: this.genDate,
|
|
|
}).then((res) => {
|
|
|
this.disabled = false;
|
|
|
+ if (this.refreshing) {
|
|
|
+ this.refreshing = false;
|
|
|
+ }
|
|
|
if (res.code == 200) {
|
|
|
loading3.clear();
|
|
|
this.loading = false;
|
|
|
@@ -1343,6 +1342,7 @@ export default {
|
|
|
this.showPopoverZ.push({ showPopover: false });
|
|
|
});
|
|
|
} else {
|
|
|
+ this.list = [];
|
|
|
this.$toast(res.msg);
|
|
|
}
|
|
|
});
|