xiaoyong931011
2021-06-17 4c902d9c20dd965d1ec832760809c622d1df9aac
src/main/resources/templates/febs/views/modules/systemSetting/platformBanner.html
@@ -100,7 +100,6 @@
            
            if (layEvent === 'edit') {
                febs.modal.open('轮播图设置', 'modules/systemSetting/platformBannerUpdate/' + data.id, {
                    area: $(window).width() <= 1000 ? '100%' : '50%',
                    btn: ['提交', '取消'],
                    yes: function (index, layero) {
                        $('#user-update').find('#submit').trigger('click');
@@ -130,11 +129,17 @@
            sortObject.type = 'null';
            tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject});
        });
        // 新增按钮
        // 刷新按钮
        $add.on('click', function () {
           febs.get(ctx + 'systemSetting/platformBannerAdd/', null, function () {
               febs.alert.success('确认新增');
                $reset.click();
           febs.modal.open('轮播图新增', 'modules/systemSetting/platformBannerAdd/', {
                btn: ['提交', '取消'],
                yes: function (index, layero) {
                    $('#user-add').find('#submit').trigger('click');
                },
                btn2: function () {
                    layer.closeAll();
                }
            });
        });
@@ -152,7 +157,10 @@
                cols: [[
                   {field: 'id', title: '', minWidth: 10,align:'left'},
                   {field: 'name', title: '标题', minWidth: 120,align:'center'},
                    {field: 'imageUrl', title: '图片链接', minWidth: 200,align:'center'},
                    {field: 'imageUrl', title: '图片链接',
                        templet: function (d) {
                            return '<img src="'+d.imageUrl+'" >'
                        }, minWidth: 200,align:'center'},
                    {field: 'jumpUrl', title: '跳转链接', minWidth: 200,align:'center'},
                    {field: 'sort', title: '联系方式', minWidth: 200,align:'center'},