From ac10a564db63c7f9060a2e99c9cb7cc17f9832b7 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 11 Nov 2020 16:07:13 +0800 Subject: [PATCH] modify --- src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html b/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html index 1d15fc1..6bd6da8 100644 --- a/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html +++ b/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html @@ -40,6 +40,14 @@ </div> </div> </div> +<!-- 表格操作栏 start --> +<script type="text/html" id="user-option"> + <span shiro:lacksPermission="user:view,user:update,user:delete"> + <span class="layui-badge-dot febs-bg-orange"></span> 无权限 + </span> + <a lay-event="edit" shiro:hasPermission="user:update"><i + class="layui-icon febs-edit-area febs-blue"></i></a> +</script> <!-- 表格操作栏 end --> <script data-th-inline="none" type="text/javascript"> // 引入组件并初始化 @@ -59,6 +67,16 @@ // 表格初始化 initTable(); + // 初始化表格操作栏各个按钮功能 + table.on('tool(userTable)', function (obj) { + var data = obj.data, + layEvent = obj.event; + if (layEvent === 'examine') { + febs.modal.open( '个人数据详情', 'modules/member/memberDetailInfo/' + data.inviteId, { + maxmin: true, + }); + } + }); // 查询按钮 $query.on('click', function () { @@ -82,7 +100,10 @@ {field: 'phone', title: '手机号', minWidth: 100,align:'left'}, {field: 'realName', title: '姓名', minWidth: 120,align:'left'}, {field: 'email', title: '邮箱', minWidth: 200,align:'left'}, - {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'}, + {field: 'inviteId', title: '邀请码UID', + templet: function (d) { + return '<a lay-event="examine" shiro:hasPermission="user:update">'+d.inviteId+'</a>' + }, minWidth: 80,align:'center'}, {field: 'rewardratioByMid', title: '盈亏', templet: function (d) { if (d.rewardratioByMid > 0) { @@ -106,12 +127,11 @@ return '' } }, minWidth: 80,align:'center',totalRow: true}, - {field: 'accountType', title: '账号类型', templet: function (d) { if (d.accountType === 2) { return '<span style="color:red;">测试账号</span>' - } else { + } else if (d.accountType === 1) { return '<span style="color:green;">正常账号</span>' } },minWidth: 100,align:'center'}, -- Gitblit v1.9.1