From 1f7383c5e295f11a66fdfa9b75e596f72b35b4a8 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 15 Sep 2022 16:38:51 +0800 Subject: [PATCH] 20220902 --- src/main/resources/templates/febs/views/modules/leader/leaderList.html | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/leader/leaderList.html b/src/main/resources/templates/febs/views/modules/leader/leaderList.html index 2bdac6c..c7ca5e1 100644 --- a/src/main/resources/templates/febs/views/modules/leader/leaderList.html +++ b/src/main/resources/templates/febs/views/modules/leader/leaderList.html @@ -117,6 +117,18 @@ } }); } + if (layEvent === 'fenceAdd') { + febs.modal.open('设置配送范围', 'modules/leader/fenceAdd/' + data.id, { + btn: ['提交', '取消'], + area:['100%','100%'], + yes: function (index, layero) { + $('#user-addLeaderFence').find('#submit').trigger('click'); + }, + btn2: function () { + layer.closeAll(); + } + }); + } if (layEvent === 'leaderCancel') { febs.modal.confirm('拉黑', '团长被拉黑,将无法再次申请团长', function () { leaderCancel(data.id); @@ -187,7 +199,7 @@ }else if (d.state === 3) { return '<span style="color:blue;">待审核</span>' }else if (d.state === 4) { - return '<span style="color:blue;">已取消</span>' + return '<span style="color:blue;">已取消资格</span>' }else{ return '' } @@ -200,12 +212,13 @@ }else if(d.state === 1) { return '' + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="leaderUpdate" shiro:hasPermission="user:update">修改</button>' + + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="fenceAdd" shiro:hasPermission="user:update">设置配送范围</button>' + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="leaderCancel" shiro:hasPermission="user:update">拉黑</button>' // + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="leaderGoodsUpdate" shiro:hasPermission="user:update">团长商品设置</button>' }else{ return ''; } - },minWidth: 160,align:'center'} + },minWidth: 200,align:'center'} ]] }); } @@ -216,6 +229,7 @@ } else { closeProfit(data.value); } + $query.click(); }) function startProfit(id) { -- Gitblit v1.9.1