From c5dfc743f410b70f369ba3b708f05a6eb1563929 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 29 Jun 2020 10:21:28 +0800
Subject: [PATCH] 20200629  代碼提交

---
 src/main/resources/templates/febs/views/modules/trademanage/contractHoldOrder.html |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/trademanage/contractHoldOrder.html b/src/main/resources/templates/febs/views/modules/trademanage/contractHoldOrder.html
index a9cb42e..288da5a 100644
--- a/src/main/resources/templates/febs/views/modules/trademanage/contractHoldOrder.html
+++ b/src/main/resources/templates/febs/views/modules/trademanage/contractHoldOrder.html
@@ -89,8 +89,9 @@
                 elem: $view.find('table'),
                 id: 'userTable',
                 url: ctx + 'tradeManage/contractHoldOrder',
+                totalRow: true,
                 cols: [[
-                    {field: 'phone', title: '手机号', minWidth: 100,align:'left'},
+                    {field: 'phone', title: '手机号', minWidth: 100,align:'left',totalRowText: '合计'},
                     {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
                     {field: 'inviteId', title: '邀请码UID', minWidth: 120,align:'center'},
                     {field: 'orderNo', title: '订单编号', minWidth: 200,align:'center'},
@@ -98,10 +99,17 @@
                     {title: '交易类型', templet: '#tradeType', minWidth: 80,align:'center'},
                     {field: 'symbol', title: '币种', minWidth: 100,align:'center'},
                     {field: 'symbolCnt', title: '手数', minWidth: 80,align:'center'},
-                    {field: 'rewardRatio', title: '实时盈亏', minWidth: 120,align:'center'},
+                    {field: 'rewardRatio', title: '实时盈亏', 
+                    	templet: function (d) {
+                            if (d.rewardRatio > 0) {
+                                return '<span style="color:green;">' + d.rewardRatio + '</span>'
+                            }else {
+                                return '<span style="color:red;">' + d.rewardRatio + '</span>'
+                            }
+                        },minWidth: 120,align:'center',totalRow: true},
                     {field: 'symbolSku', title: '币种规格', minWidth: 120,align:'center'},
                     {field: 'openingPrice', title: '开仓价', minWidth: 100,align:'center'},
-                    {field: 'openingFeeAmount', title: '开仓手续费', minWidth: 120,align:'center'},
+                    {field: 'openingFeeAmount', title: '开仓手续费', minWidth: 120,align:'center',totalRow: true},
                     {field: 'bondAmount', title: '保证金', minWidth: 120,align:'center'},
                     {field: 'leverRatio', title: '杠杆倍率', minWidth: 120,align:'center'},
                     {field: 'stopLossPrice', title: '止损价', minWidth: 120,align:'center'},

--
Gitblit v1.9.1