xiaoyong931011
2022-09-08 42f399525b68f57f0f8491f455c0488c27c293d5
src/main/resources/templates/febs/views/modules/leader/leaderList.html
@@ -86,6 +86,18 @@
        table.on('tool(leaderTable)', function (obj) {
            var data = obj.data,
                layEvent = obj.event;
            if (layEvent === 'leaderGoodsUpdate') {
                febs.modal.open('编辑', 'modules/leader/leaderGoodsUpdate/' + data.id, {
                    btn: ['提交', '取消'],
                    area:['100%','100%'],
                    yes: function (index, layero) {
                        $('#febs-leaderGoods-update').find('#submit').trigger('click');
                    },
                    btn2: function () {
                        layer.closeAll();
                    }
                });
            }
            if (layEvent === 'leaderUpdate') {
                febs.modal.open('编辑', 'modules/leader/leaderUpdate/' + data.id, {
                    btn: ['提交', '取消'],
@@ -99,7 +111,7 @@
                });
            }
            if (layEvent === 'leaderCancel') {
                febs.modal.confirm('取消', '确认取消该团长?', function () {
                febs.modal.confirm('取消', '用户被取消团长资格将无法再次申请', function () {
                    leaderCancel(data.id);
                });
            }
@@ -153,6 +165,10 @@
                        templet: function (d) {
                            return '<a lay-event="seeImgThumb"><img id="seeImgThumb'+d.id+'" src="'+d.addressPic+'" alt=""></a>';
                        }, minWidth: 150,align:'center'},
                    {field: 'addressArea', title: '自提点名称', minWidth: 150,align:'left'},
                    {field: 'detailAddress', title: '自提点地址', minWidth: 150,align:'left'},
                    {field: 'totalProfit', title: '收益', minWidth: 150,align:'left'},
                    // {field: 'phone', title: '电话', minWidth: 150,align:'left'},
                    {field: 'state', title: '状态',
                        templet: function (d) {
                            if (d.state === 1) {
@@ -175,6 +191,7 @@
                            }else if(d.state === 1) {
                                return ''
                                    + '<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 '';
                            }