Commit 25f3f947 authored by liuyang's avatar liuyang

fixed 订单列表BUG

parent e1985a0d
...@@ -398,7 +398,7 @@ export default { ...@@ -398,7 +398,7 @@ export default {
disposereq(this, err); disposereq(this, err);
}); });
}, },
handleTableChange() { handleTableChange(pagination,filters,sorter) {
let queryParam = { ...this.searchPage }; let queryParam = { ...this.searchPage };
queryParam.pageIndex = pagination.current; queryParam.pageIndex = pagination.current;
queryParam.pageSize = pagination.pageSize; queryParam.pageSize = pagination.pageSize;
......
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
<div>手机:{{record.username}}</div> <div>手机:{{record.username}}</div>
</template> </template>
<template slot="status" slot-scope="text,record"> <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_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> </template>
</a-table> </a-table>
</div> </div>
...@@ -51,8 +51,9 @@ let columns = [ ...@@ -51,8 +51,9 @@ let columns = [
}, },
{ {
title: "订单名称", title: "订单名称",
dataIndex: "orderNo", dataIndex: "orderName",
align: "orderName" align: "center"
}, },
{ {
title: "单价", title: "单价",
...@@ -142,6 +143,17 @@ export default { ...@@ -142,6 +143,17 @@ export default {
this.loading = false this.loading = false
disposereq(this,err) 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