xiaoyong931011
2020-06-30 2d57b956efa9227c602ab6598bfa8958fcea3e34
src/main/resources/templates/febs/views/modules/trademanage/contractHoldOrder.html
@@ -30,24 +30,6 @@
        </div>
    </div>
</div>
<script type="text/html" id="tradeType">
    {{#
    var tradeType = {
    1: {title: '市价' , color: 'green'},
    2: {title: '限价' , color: 'blue' }
    }[d.tradeType];
    }}
    <span class="layui-badge febs-tag-{{tradeType.color}}">{{ tradeType.title }}</span>
</script>
<script type="text/html" id="openingType">
    {{#
    var openingType = {
    1: {title: '开多' , color: 'green'},
    2: {title: '开空' , color: 'red' }
    }[d.openingType];
    }}
    <span class="layui-badge febs-tag-{{openingType.color}}">{{ openingType.title }}</span>
</script>
<!-- 表格操作栏 end -->
<script data-th-inline="none" type="text/javascript">
    // 引入组件并初始化
@@ -95,8 +77,22 @@
                    {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
                    {field: 'inviteId', title: '邀请码UID', minWidth: 120,align:'center'},
                    {field: 'orderNo', title: '订单编号', minWidth: 200,align:'center'},
                    {title: '开仓类型', templet: '#openingType', minWidth: 80,align:'center'},
                    {title: '交易类型', templet: '#tradeType', minWidth: 80,align:'center'},
                    {field: 'openingType', title: '开仓类型',
                       templet: function (d) {
                            if (d.openingType === 1) {
                                return '<span style="color:green;">开多</span>'
                            }else {
                                return '<span style="color:red;">开空</span>'
                            }
                        }, minWidth: 100,align:'center'},
                    {field: 'tradeType', title: '交易类型',
                           templet: function (d) {
                                if (d.tradeType === 1) {
                                    return '<span style="color:green;">市价</span>'
                                }else {
                                    return '<span style="color:red;">限价</span>'
                                }
                            }, minWidth: 100,align:'center'},
                    {field: 'symbol', title: '币种', minWidth: 100,align:'center'},
                    {field: 'symbolCnt', title: '手数', minWidth: 80,align:'center'},
                    {field: 'rewardRatio', title: '实时盈亏',