Commit 62836725 by lixiaomin

修改用户管理分页

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