feature_0521
zhenghuang 5 years ago
parent 587d798576
commit e6ab2c8174

@ -1,7 +1,16 @@
<template> <template>
<div> <div>
<Row class="search-row"> <Row :gutter="10"
<i-col span="24" 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"> class="search-col">
<Row class="row-style"> <Row class="row-style">
<Button @click="handleEdit" <Button @click="handleEdit"
@ -63,6 +72,7 @@ export default {
let _this = this; let _this = this;
return { return {
loading: false, loading: false,
store: null,
// //
total: 0, total: 0,
pageSize: 10, pageSize: 10,
@ -138,6 +148,10 @@ export default {
); );
}); });
}, },
search () {
this.pageNum = 1;
this.handlePaginate();
},
// //
handlePaginate () { handlePaginate () {
this.loading = true; this.loading = true;
@ -145,7 +159,8 @@ export default {
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: this.pageSize, pageSize: this.pageSize,
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId, userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
categoryCode: "welcome" categoryCode: "welcome",
store: this.store
}; };
http.getWelcomeList(params, res => { http.getWelcomeList(params, res => {
const data = res.data.results.this || {}; const data = res.data.results.this || {};

Loading…
Cancel
Save