|
|
|
@ -1,7 +1,16 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<Row class="search-row">
|
|
|
|
|
<i-col span="24"
|
|
|
|
|
<Row :gutter="10"
|
|
|
|
|
class="search-row">
|
|
|
|
|
<i-col span="8">
|
|
|
|
|
<i-input placeholder="请输入店铺名称或编码"
|
|
|
|
|
v-model="store" />
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="3">
|
|
|
|
|
<Button type="primary"
|
|
|
|
|
@click="search"
|
|
|
|
|
class="search-btn">查询</Button></i-col>
|
|
|
|
|
<i-col span="13"
|
|
|
|
|
class="search-col">
|
|
|
|
|
<Row class="row-style">
|
|
|
|
|
<Button @click="handleEdit"
|
|
|
|
@ -63,6 +72,7 @@ export default {
|
|
|
|
|
let _this = this;
|
|
|
|
|
return {
|
|
|
|
|
loading: false,
|
|
|
|
|
store: null,
|
|
|
|
|
// 分页
|
|
|
|
|
total: 0,
|
|
|
|
|
pageSize: 10,
|
|
|
|
@ -138,6 +148,10 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
search () {
|
|
|
|
|
this.pageNum = 1;
|
|
|
|
|
this.handlePaginate();
|
|
|
|
|
},
|
|
|
|
|
// 分页刷新
|
|
|
|
|
handlePaginate () {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -145,7 +159,8 @@ export default {
|
|
|
|
|
pageNum: this.pageNum,
|
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
|
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
|
|
|
|
|
categoryCode: "welcome"
|
|
|
|
|
categoryCode: "welcome",
|
|
|
|
|
store: this.store
|
|
|
|
|
};
|
|
|
|
|
http.getWelcomeList(params, res => {
|
|
|
|
|
const data = res.data.results.this || {};
|
|
|
|
|