From b68359eceae3ce3060e7733586501f1b9a82c42e Mon Sep 17 00:00:00 2001
From: zhouhao <787329763@qq.com>
Date: Thu, 04 Nov 2021 18:20:15 +0800
Subject: [PATCH] 解决商户查询问题
---
src/views/mine/stores/stores.vue | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/views/mine/stores/stores.vue b/src/views/mine/stores/stores.vue
index c4240cb..ac37647 100644
--- a/src/views/mine/stores/stores.vue
+++ b/src/views/mine/stores/stores.vue
@@ -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