|
|
|
@ -78,7 +78,7 @@ |
|
|
|
<!-- <market-news></market-news> --> |
|
|
|
|
|
|
|
<!-- order list --> |
|
|
|
<order-list ref="Order" :ordersOpen="ordersOpen" :conditionOrders="conditionOrders" :ordersHistory="ordersHistory" :priceDecimals="priceDecimals" :qtyDecimals="qtyDecimals" :isLogin="isLogin" :pair="pair" @change="currentTab = $event" @update="update"></order-list> |
|
|
|
<order-list ref="Order" :ordersOpen="ordersOpen" :conditionOrders="conditionOrders" :ordersHistory="ordersHistory" :priceDecimals="priceDecimals" :qtyDecimals="qtyDecimals" :isLogin="isLogin" :pair="pair" @change="currentTab = $event" @update="update" @Pagination="page = $event"></order-list> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -180,7 +180,8 @@ export default { |
|
|
|
|
|
|
|
currentTab: "opens", // orders显示的tab |
|
|
|
price_cny:0, |
|
|
|
currentIcon: '' |
|
|
|
currentIcon: '', |
|
|
|
page: 1 |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
@ -286,7 +287,12 @@ export default { |
|
|
|
currentTab() { |
|
|
|
// tab切换时自动更新 |
|
|
|
this.getOrders(); |
|
|
|
} |
|
|
|
}, |
|
|
|
page() { |
|
|
|
if (this.currentTab == "histories") { // 历史委托 |
|
|
|
this.getHistories(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
@ -460,6 +466,7 @@ export default { |
|
|
|
if (this.isLogin) { |
|
|
|
Order.getHistoryEntrust({ |
|
|
|
symbol: this.marketInfo.pair_name, |
|
|
|
page:this.page |
|
|
|
}) |
|
|
|
.then(data => { |
|
|
|
this.ordersHistory = data; |
|
|
|
|