|
@@ -92,10 +92,10 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
- this.fetchStoreList();
|
|
|
|
|
|
|
+ this.fetchStoreList(true);
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
- this.fetchStoreList();
|
|
|
|
|
|
|
+ this.fetchStoreList(true);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
fetchStoreList(isRefresh = false) {
|
|
fetchStoreList(isRefresh = false) {
|
|
@@ -130,13 +130,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleSearch() {
|
|
handleSearch() {
|
|
|
this.pagination.page = 1;
|
|
this.pagination.page = 1;
|
|
|
- this.fetchStoreList();
|
|
|
|
|
|
|
+ this.fetchStoreList(true);
|
|
|
},
|
|
},
|
|
|
viewDetails(id) {
|
|
viewDetails(id) {
|
|
|
- uni.navigateTo({ url: '/pages/cjx/hexiao/add_retail?edit=0&id='+id });
|
|
|
|
|
|
|
+ uni.navigateTo({ url: '/pages/cjx/hexiao/ywy/add_retail?edit=0&id='+id });
|
|
|
console.log('查看详情 ID:', id);
|
|
console.log('查看详情 ID:', id);
|
|
|
},
|
|
},
|
|
|
- editStore(id) { uni.navigateTo({ url: '/pages/cjx/hexiao/add_retail?edit=1&id='+id });},
|
|
|
|
|
|
|
+ editStore(id) { uni.navigateTo({ url: '/pages/cjx/hexiao/ywy/add_retail?edit=1&id='+id });},
|
|
|
patrolStore(id) { console.log('巡店 ID:', id); },
|
|
patrolStore(id) { console.log('巡店 ID:', id); },
|
|
|
deleteStore(id) {
|
|
deleteStore(id) {
|
|
|
let self = this;
|
|
let self = this;
|
|
@@ -158,7 +158,7 @@ export default {
|
|
|
this.fetchStoreList(true);
|
|
this.fetchStoreList(true);
|
|
|
},
|
|
},
|
|
|
addNewStore() {
|
|
addNewStore() {
|
|
|
- uni.navigateTo({ url: `/pages/cjx/hexiao/add_retail?edit=1` });
|
|
|
|
|
|
|
+ uni.navigateTo({ url: `/pages/cjx/hexiao/ywy/add_retail?edit=1` });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|