Commit 62836725 by lixiaomin

修改用户管理分页

parent 92721ae4
......@@ -163,10 +163,10 @@ export default {
this.orderPageNum=1;
this.pageSize=10;
this.orderLoading=true;
this.getOrderList(this.orderPageNum,this.pageSize,this.customerId,this.tag);
this.getOrderList(this.orderPageNum,this.pageSize);
},
getOrderList(pageNum,pageSize,id,tag) {
getCustomer({'id':id,'status':tag,'pageNum':pageNum,'pageSize':pageSize}).then((response) => {
getOrderList(pageNum,pageSize) {
getCustomer({'id':this.customerId,'status':this.tag,'pageNum':pageNum,'pageSize':pageSize}).then((response) => {
if(response.code=="200"){
this.orderList = response.rows;
this.orderTotal = response.total;
......@@ -188,6 +188,7 @@ export default {
getDetial(row){
this.orderLoading=true;
this.customerId=row.id;
this.tag=1
this.userName=row.userName;
this.phoneNumber=row.phoneNumber;
this.amount=row.amount;
......@@ -197,7 +198,7 @@ export default {
this.orderPageNum=1;
this.pageSize=10;
this.activeName="first";
this.getOrderList(this.orderPageNum,this.pageSize,this.customerId,'1');
this.getOrderList(this.orderPageNum,this.pageSize);
},
// 取消按钮
cancel() {
......
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