From 63a846c145704323d29087f353ba330afc5f60e4 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 29 Sep 2021 14:44:43 +0800 Subject: [PATCH] 20210928 --- src/main/resources/templates/febs/views/modules/mallMember/agentList.html | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/mallMember/agentList.html b/src/main/resources/templates/febs/views/modules/mallMember/agentList.html index 40c4b82..92ea7ed 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/agentList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/agentList.html @@ -22,6 +22,7 @@ <div class="layui-input-inline"> <select name="level"> <option value="">请选择</option> + <option value="ZERO_LEVEL">未激活</option> <option value="FIRST_LEVEL">普通会员</option> <option value="SECOND_LEVEL">业务经理</option> <option value="THIRD_LEVEL">区域代理</option> @@ -86,7 +87,19 @@ maxmin: true, }); } + if (layEvent === 'activate') { + febs.modal.confirm('激活', '确认激活该账号?', function () { + activateAccount(data.id); + }); + } }); + + function activateAccount(id) { + febs.get(ctx + 'admin/mallMember/activateAccount/' + id, null, function () { + febs.alert.success('操作成功'); + $query.click(); + }); + } // 查询按钮 $query.on('click', function () { @@ -117,7 +130,12 @@ {field: 'amount', title: '团队业绩', minWidth: 100,align:'left'}, {title: '操作', templet: function (d) { + if (d.level === 'ZERO_LEVEL'){ + return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="activate" shiro:hasPermission="user:update">激活</button>' + + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agentAllMember" shiro:hasPermission="user:update">全部成员</button>' + }else{ return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agentAllMember" shiro:hasPermission="user:update">全部成员</button>' + } },minWidth: 300,align:'center'} ]] }); -- Gitblit v1.9.1