From 363c0f2d5ac2cec13e28bcba4f46f272dff448dc Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 28 Jul 2022 16:55:55 +0800 Subject: [PATCH] 20220727 保存代码 --- src/main/resources/templates/febs/views/modules/leader/leaderList.html | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 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 74430e9..841d023 100644 --- a/src/main/resources/templates/febs/views/modules/leader/leaderList.html +++ b/src/main/resources/templates/febs/views/modules/leader/leaderList.html @@ -20,6 +20,7 @@ <option value="1">通过</option> <option value="2">不通过</option> <option value="3">申请中</option> + <option value="4">取消</option> </select> </div> </div> @@ -97,6 +98,11 @@ } }); } + if (layEvent === 'leaderCancel') { + febs.modal.confirm('取消', '确认取消该团长?', function () { + leaderCancel(data.id); + }); + } if (layEvent === 'seeImgThumb') { var t = $view.find('#seeImgThumb'+data.id+''); //页面层 @@ -113,6 +119,13 @@ }); } }); + + function leaderCancel(id) { + febs.get(ctx + 'admin/leader/leaderCancel/' + id, null, function () { + febs.alert.success('操作成功'); + $query.click(); + }); + } // 查询按钮 $query.on('click', function () { @@ -148,6 +161,8 @@ return '<span style="color:red;">拒绝</span>' }else if (d.state === 3) { return '<span style="color:blue;">待审核</span>' + }else if (d.state === 4) { + return '<span style="color:blue;">已取消</span>' }else{ return '' } @@ -157,6 +172,9 @@ if (d.state === 3) { return '' + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="leaderUpdate" shiro:hasPermission="user:update">审核</button>' + }else if(d.state === 1) { + return '' + + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="leaderCancel" shiro:hasPermission="user:update">取消</button>' }else{ return ''; } -- Gitblit v1.9.1