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 |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 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 9300a92..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);
@@ -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'}
                 ]]
             });
         }

--
Gitblit v1.9.1