From a43294bf2dcaa2c8eb940134fd1426a0f904f096 Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <l287285524@qq.com> Date: Sun, 07 Nov 2021 17:34:44 +0800 Subject: [PATCH] 新增门店 --- src/views/mine/stores/stores.vue | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/mine/stores/stores.vue b/src/views/mine/stores/stores.vue index c4240cb..246eba9 100644 --- a/src/views/mine/stores/stores.vue +++ b/src/views/mine/stores/stores.vue @@ -24,7 +24,7 @@ </van-list> </div> - <van-button class="btn" @click="$router.push(`/mine/stores-add?merId=${merId}`)" v-if="orgType!=1"> + <van-button class="btn" @click="$router.push(`/mine/stores-add?merId=${merId}`)"> <div class="inner"> <van-icon name="plus" /> <span class="text">新增</span> @@ -63,7 +63,7 @@ if (this.orgType == 1 && !this.$route.query.merId) { objForm = { searchKey: this.value, - storeId: this.storeId, + storeId: this.storeId, } } else { objForm = { @@ -104,10 +104,20 @@ onSearch(val) { this.list = [] this.loading = true - this.$api.storeStoreList({ - searchKey: this.value, - merId: this.merId, - }).then(res => { + let objForm = {} + if (this.orgType == 1 && !this.$route.query.merId) { + objForm = { + searchKey: this.value, + // storeId: this.storeId, + } + } else { + objForm = { + searchKey: this.value, + // storeId: this.storeId, + merId: this.merId, + } + } + this.$api.storeStoreList(objForm).then(res => { if (res.body.storeList.length < 10) { this.list = [...this.list, ...res.body.storeList] this.storeId = '' -- Gitblit v1.8.0