From faaa3ad2b937fdd17cd36b1523e07fddf1346db2 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 02 Jun 2022 22:53:50 +0800 Subject: [PATCH] fix --- src/main/resources/templates/febs/views/modules/mallMember/agentList.html | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 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..f704b1f 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/agentList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/agentList.html @@ -18,17 +18,15 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label layui-form-label-sm">账户状态</label> + <label class="layui-form-label layui-form-label-sm">代理层级</label> <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> - <option value="FOUR_LEVEL">代理</option> - <option value="FIFTH_LEVEL">总代</option> - <option value="SIX_LEVEL">董事</option> + <option value="SECOND_LEVEL">区级代理</option> + <option value="THIRD_LEVEL">市级代理</option> + <option value="FOUR_LEVEL">省级代理</option> + <option value="FIFTH_LEVEL">全国总代</option> </select> </div> </div> @@ -92,6 +90,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 +141,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