Commit 38a69f35 authored by Z's avatar Z

Z: Dot: store strict search done.next unstrict search.

parent c0c3ef7d
......@@ -57,3 +57,11 @@ export function ApiStoreGetBarList(inData) {
})
}
export function ApiStoreSearch(inData) {
return request({
url: '/admin/auth/stall/getStallByKeyWords',
method: 'get',
params: inData
})
}
......@@ -12,12 +12,17 @@
<el-form-item label="关键词">
<el-input
size="small"
v-model="data.search.keys"
v-model="zdata.searchPost.keywords"
style="width:160px"
placeholder="请输入关键词"
/>
</el-form-item>
<el-button class="button buttondark" size="small" style="margin-top:4px;">搜索</el-button>
<el-button
class="button buttondark"
size="small"
@click="storeSearch"
style="margin-top:4px;"
>搜索</el-button>
</el-form>
</div>
<!-- 列表区 -->
......@@ -274,7 +279,9 @@ import {
ApiStoreGetStoreDetail,
ApiStoreDelStore,
ApiStoreGetUnGroupManList,
ApiStoreEditStore
ApiStoreEditStore,
ApiStoreGetBarList,
ApiStoreSearch
} from "@api/in/store";
import axios from "axios";
const zlog = console.log.bind(console);
......@@ -293,6 +300,9 @@ export default {
}
},
zdata: {
searchPost: {
keywords: ""
},
see: {
storeName: "storeName",
storeType: "storeType",
......@@ -365,7 +375,8 @@ export default {
name: "柜组二号"
}
],
unGroupMan: []
unGroupMan: [],
bar: []
},
page: {
......@@ -500,6 +511,7 @@ export default {
})
.catch(err => {});
},
storeGetBarList() {},
matchManIdAndManName(inId) {
let manList = this.list.man;
let manName = "未知";
......@@ -532,6 +544,23 @@ export default {
}
}
},
storeSearch() {
let postData = {
keyWords: this.zdata.searchPost.keywords
};
if (this.zdata.searchPost.keywords == "") {
this.storeGetMainList();
} else {
ApiStoreSearch(postData)
.then(res => {
let result = [];
console.log("--->res", res);
result.push(res.data.stallInfo);
this.list.main = result;
})
.catch(err => {});
}
},
storeGetMainList() {
// zlog("--->In Get API!");
let postData = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment