| | |
| | | } |
| | | }); |
| | | } |
| | | 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); |
| | |
| | | }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'} |
| | | ]] |
| | | }); |
| | | } |