Commit 25f3f947 authored by liuyang's avatar liuyang

fixed 订单列表BUG

parent e1985a0d
......@@ -398,7 +398,7 @@ export default {
disposereq(this, err);
});
},
handleTableChange() {
handleTableChange(pagination,filters,sorter) {
let queryParam = { ...this.searchPage };
queryParam.pageIndex = pagination.current;
queryParam.pageSize = pagination.pageSize;
......
......@@ -31,9 +31,9 @@
<div>手机:{{record.username}}</div>
</template>
<template slot="status" slot-scope="text,record">
<a-tag v-if="text == 'WAIT_PAY'" color="red">未支付</a-tag>
<a-tag v-if="text == 'WAIT_PAY'" color="orange">未支付</a-tag>
<a-tag v-if="text == 'PAY_COMPLETE'" color="green">已支付</a-tag>
<a-tag v-if="text == 'PAY_FAILD'" color="red">支付失败</a-tag>
<a-tag v-if="text == 'PAY_CLOSE'" color="red">已关闭</a-tag>
</template>
</a-table>
</div>
......@@ -51,8 +51,9 @@ let columns = [
},
{
title: "订单名称",
dataIndex: "orderNo",
align: "orderName"
dataIndex: "orderName",
align: "center"
},
{
title: "单价",
......@@ -142,6 +143,17 @@ export default {
this.loading = false
disposereq(this,err)
})
},
handleTableChange(pagination,filters,sorter){
let queryParam = { ...this.searchPage };
queryParam.pageIndex = pagination.current;
queryParam.pageSize = pagination.pageSize;
this.getList(queryParam);
},
handlSearch(){
let queryParam = { ...this.searchPage };
this.getList(queryParam);
}
}
}
......
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