From cf200a1f92c01ba22c326c49391f748ffb006910 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 05 Jul 2021 17:28:35 +0800 Subject: [PATCH] 20210617 开售开关 --- src/main/resources/templates/febs/views/modules/documentary/traderProfit.html | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/documentary/traderProfit.html b/src/main/resources/templates/febs/views/modules/documentary/traderProfit.html index 7c4b03b..aa7f12d 100644 --- a/src/main/resources/templates/febs/views/modules/documentary/traderProfit.html +++ b/src/main/resources/templates/febs/views/modules/documentary/traderProfit.html @@ -76,12 +76,16 @@ } if (layEvent === 'seeFollowerInfo') { - febs.modal.open('总利润详情', 'modules/documentary/seeFollowerInfo/' + data.id, { + febs.modal.open('跟随者详情', 'modules/documentary/seeFollowerInfo/' + data.id, { area: $(window).width() <= 750 ? '90%' : '80%', offset: '30px', - btn: ['取消'], btn2: function () { layer.closeAll(); + }, + cancel: function(){ + var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name + parent.layer.close(index);//关闭当前窗口 + window.parent.location.reload();//刷新 } }); $query.click(); @@ -96,6 +100,7 @@ layer.closeAll(); } }); + $query.click(); } if (layEvent === 'getOut') { febs.modal.confirm('确认', '您是否要踢出该交易员?', function () { @@ -170,7 +175,7 @@ {field: 'profitRatioTotal', title: '总返利润', minWidth: 80,align:'center'}, {title: '利润详情', templet: function (d) { - return '<button lay-event="seeFollowerInfo" shiro:hasPermission="user:update">查看</button>' + return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeFollowerInfo" shiro:hasPermission="user:update">查看</button>' }, minWidth: 100,align:'center'}, {field: 'totalProfitRatio', title: '累计收益率', minWidth: 80,align:'center'}, {field: 'totalProfit', title: '带单总收益', minWidth: 80,align:'center'}, -- Gitblit v1.9.1