From 15aca237e53c5eebf51c048e2f4e57741bbfec88 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 30 Sep 2021 11:30:54 +0800 Subject: [PATCH] 20210928 --- src/main/resources/templates/febs/views/modules/mallMember/agentList.html | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 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 92ea7ed..dcf2afe 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/agentList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/agentList.html @@ -92,6 +92,17 @@ activateAccount(data.id); }); } + if (layEvent === 'agentLevelSet') { + febs.modal.open('设置代理级别', 'modules/mallMember/agentLevelSet/' + data.id, { + btn: ['确认', '取消'], + yes: function (index, layero) { + $('#agent-level-set').find('#submit').trigger('click'); + }, + btn2: function () { + layer.closeAll(); + } + }); + } }); function activateAccount(id) { @@ -132,9 +143,11 @@ 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="agentLevelSet" 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>' + return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agentLevelSet" shiro:hasPermission="user:update">设置代理等级</button>' + + '<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