Commit 15cb5448 authored by 黄媛媛's avatar 黄媛媛

营销中心和设置分页修改

parent 470ee9bf
......@@ -90,12 +90,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="total">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="total">
</el-pagination>
</div>
......
......@@ -25,6 +25,8 @@
<el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入昵称搜索"
v-model="msg.MemberName"
@clear="getList"
@keyup.enter.native="getList"
size="small"
clearable>
</el-input>
......@@ -78,11 +80,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
<!-- 选择导出信息 -->
......@@ -145,9 +148,12 @@
},
methods:{
getDateList(){
if(this.value!=''){
if(this.value!='' && this.value !=null){
this.msg.StartDate = this.value[0];
this.msg.EndDate = this.value[1];
}else{
this.msg.StartDate = '';
this.msg.EndDate = '';
}
this.loading=true;
this.apipost("/api/Integral/GetRechargeRulesPage", this.msg, res => {
......@@ -197,6 +203,7 @@
this.msg.EndDate='';
}
this.msg.pageIndex=1
this.getDateList();
},
......@@ -210,6 +217,7 @@
this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
},
getList(){
this.msg.pageIndex=1
this.getDateList();
}
......
......@@ -214,9 +214,12 @@
<div class="el-form-item">
<div class="el-form-item__content" >
<div class="el-input el-input--small" style="width: 40%;" >
<input type="text" autocomplete="off" placeholder="商品名称" class="el-input__inner" v-model="msg2.Name">
<input type="text" autocomplete="off" placeholder="商品名称" class="el-input__inner" v-model="msg2.Name"
@clear="msg2.pageIndex=1,getProductGoodsPageList()"
@keyup.enter.native="msg2.pageIndex=1,getProductGoodsPageList()"
>
</div>
<button type="button" class="el-button el-button--default el-button--small" style="margin-left: 15px" @click="getProductGoodsPageList">查找商品</button>
<button type="button" class="el-button el-button--default el-button--small" style="margin-left: 15px" @click="msg2.pageIndex=1,getProductGoodsPageList()">查找商品</button>
<button class="el-button el-button--default el-button--small" style="float: right;" @click="batchAdd">批量添加</button>
</div>
</div>
......@@ -260,11 +263,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg2.pageSize"
layout="prev, pager, next"
:current-page.sync="msg2.pageIndex"
:total="count">
</el-pagination>
</template>
......
......@@ -25,10 +25,12 @@
<el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入昵称搜索"
v-model="msg.MemberName"
@clear="msg.pageIndex=1,getList()"
@keyup.enter.native="msg.pageIndex=1,getList()"
size="small"
clearable>
</el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
<span @click="msg.pageIndex=1,getList()" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div>
</div>
</div>
......@@ -76,11 +78,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
<!-- 选择导出信息 -->
......@@ -140,9 +143,12 @@
},
methods:{
getDateList(){
if(this.value!=''){
if(this.value!='' && this.value!=null){
this.msg.StartDate = this.value[0];
this.msg.EndDate = this.value[1];
}else{
this.msg.StartDate = '';
this.msg.EndDate = '';
}
this.loading=true;
this.apipost("/api/Recharge/GetMemberBalancePageList", this.msg, res => {
......@@ -192,6 +198,7 @@
this.msg.EndDate='';
}
this.msg.pageIndex =1
this.getDateList();
},
......
......@@ -14,6 +14,8 @@
placeholder="请输入卡券名称搜索"
v-model="msg.Name"
size="small"
@clear="getList"
@keyup.enter.native="getList"
clearable>
</el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
......@@ -86,11 +88,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
</div>
......@@ -163,6 +166,7 @@
this.$router.push('/rechargeSet');
},
getList(){
this.msg.pageIndex = 1
this.getDateList()
},
handleCurrentChange(val) {
......
......@@ -14,6 +14,8 @@
placeholder="请输入优惠券名称搜索"
v-model="msg.Name"
size="small"
@clear="getList"
@keyup.enter.native="getList"
clearable>
</el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
......@@ -117,11 +119,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
</div>
......@@ -203,6 +206,7 @@
this.$router.push('/rechargeSet');
},
getList(){
this.msg.pageIndex = 1
this.getDateList()
},
dianswitch(row){
......
......@@ -14,6 +14,8 @@
<el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入昵称搜索"
v-model="msg.Name"
@clear="getList()"
@keyup.enter.native="getList()"
size="small"
clearable>
</el-input>
......@@ -78,11 +80,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
</div>
......@@ -155,6 +158,7 @@
this.$router.push('/rechargeSet');
},
getList(){
this.msg.pageIndex = 1;
this.getDateList()
},
handleCurrentChange(val) {
......
......@@ -10,7 +10,10 @@
</div>
<div class="search_s">
<div class="input-item">
<el-input placeholder="请输入搜索内容" v-model="msg.Name" style="width: 300px;font-size: 10px;height: 32px">
<el-input placeholder="请输入搜索内容" v-model="msg.Name" style="width: 300px;font-size: 10px;height: 32px"
@clear="search"
@keyup.enter.native="search"
clearable>
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
</el-input>
</div>
......
......@@ -81,9 +81,12 @@
getAreaBuyInfo(){
this.apipost("/api/MallBase/GetAreaBuyInfo",{} , res => {
if (res.data.resultCode == 1) {
this.msg.IsOpenMinPrice = res.data.data.IsOpenMinPrice;
this.msg.List = res.data.data.List;
this.msg.ID = res.data.data.ID;
if( res.data.data !=null){
this.msg.IsOpenMinPrice = res.data.data.IsOpenMinPrice;
this.msg.List = res.data.data.List;
this.msg.ID = res.data.data.ID;
}
} else {
this.Info(res.data.message);
}
......
......@@ -7,7 +7,10 @@
<div class="search_s">
<div class="input-item">
<el-input placeholder="请输入收件人姓名或联系方式" v-model="msg.Name" style="width: 300px;font-size: 10px;height: 32px">
<el-input placeholder="请输入收件人姓名或联系方式" v-model="msg.Name" style="width: 300px;font-size: 10px;height: 32px"
@clear="search"
@keyup.enter.native="search"
clearable>
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
</el-input>
</div>
......
......@@ -6,7 +6,10 @@
<div style="justify-content: space-between; display: flex;">
<div class="input-item">
<el-input placeholder="请输入内容" v-model="msg.RulesName" >
<el-input placeholder="请输入内容" v-model="msg.RulesName"
@clear="search"
@keyup.enter.native="search"
clearable>
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
</el-input>
</div>
......
......@@ -27,7 +27,10 @@
<div style="justify-content: space-between; display: flex;">
<div class="input-item">
<el-input placeholder="请输入内容" v-model="msg.RulesName" >
<el-input placeholder="请输入内容" v-model="msg.RulesName"
@clear="search"
@keyup.enter.native="search"
clearable>
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
</el-input>
</div>
......
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