|
|
@@ -12,7 +12,7 @@
|
|
|
</van-col>
|
|
|
</van-row> -->
|
|
|
<div class="selectFilter" v-if="tabVal == 1">
|
|
|
- <van-dropdown-menu>
|
|
|
+ <van-dropdown-menu :close-on-click-overlay="false">
|
|
|
<van-dropdown-item :title="dropdownTitle" ref="dropdownItem" @open="dropdownOpen">
|
|
|
<van-cell
|
|
|
center
|
|
|
@@ -392,6 +392,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.initSelect();
|
|
|
this.tabVal = '1';
|
|
|
if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
|
|
|
this.mapShows = false;
|
|
|
@@ -409,20 +410,20 @@ export default {
|
|
|
watch: {
|
|
|
$route(to, from) {
|
|
|
if (to.path == '/storemanagement/index' && from.path == '/storeAdd') {
|
|
|
- this.getStoreTypeList();
|
|
|
- this.getstoreCoverPosition();
|
|
|
- this.onSearch();
|
|
|
+ // this.getStoreTypeList();
|
|
|
+ // this.getstoreCoverPosition();
|
|
|
+ // this.onSearch();
|
|
|
}
|
|
|
if (to.path == '/storemanagement/index' && from.path == '/storeEdit') {
|
|
|
- this.getStoreTypeList();
|
|
|
- this.getstoreCoverPosition();
|
|
|
- this.onSearch();
|
|
|
+ // this.getStoreTypeList();
|
|
|
+ // this.getstoreCoverPosition();
|
|
|
+ // this.onSearch();
|
|
|
}
|
|
|
if (to.path == '/storemanagement/index' && from.path == '/My/index') {
|
|
|
this.tabVal = '1';
|
|
|
- this.getStoreTypeList();
|
|
|
- this.getstoreCoverPosition();
|
|
|
- this.onSearch();
|
|
|
+ // this.getStoreTypeList();
|
|
|
+ // this.getstoreCoverPosition();
|
|
|
+ // this.onSearch();
|
|
|
}
|
|
|
if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
|
|
|
this.mapShows = false;
|
|
|
@@ -433,6 +434,12 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ initSelect() {
|
|
|
+ this.activatedTitles = [];
|
|
|
+ this.activatedValues = [];
|
|
|
+ this.dropdownTitle = '门店状态';
|
|
|
+ this.dropdownOpen();
|
|
|
+ },
|
|
|
linkList(val) {
|
|
|
this.$router.push({
|
|
|
path: '/pItem',
|