| | |
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | <script type="text/html" id="isBanner">
|
| | | {{#
|
| | | var isBanner = {
|
| | | 2: {title: '否', color: 'red' },
|
| | | 1: {title: '是' , color: 'green'}
|
| | | }[d.isBanner];
|
| | | }}
|
| | | <span class="layui-badge febs-bg-{{isBanner.color}}">{{ isBanner.title }}</span>
|
| | | </script>
|
| | | <script type="text/html" id="isJump">
|
| | | {{#
|
| | | var isJump = {
|
| | |
| | | }}
|
| | | <span class="layui-badge febs-bg-{{isTop.color}}">{{ isTop.title }}</span>
|
| | | </script>
|
| | | <!-- 表格操作栏 start -->
|
| | | <!-- 表格操作栏
|
| | | <a lay-event="edit" shiro:hasPermission="user:update">编辑
|
| | | <i class="layui-icon febs-edit-area febs-blue"></i>
|
| | | </a>start -->
|
| | | <script type="text/html" id="user-option">
|
| | | <span shiro:lacksPermission="user:view,user:update,user:delete">
|
| | | <span class="layui-badge-dot febs-bg-orange"></span> 无权限
|
| | | </span>
|
| | | <a lay-event="edit" shiro:hasPermission="user:update">编辑
|
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="delete" shiro:hasPermission="user:update">删除
|
| | | <i class="layui-icon febs-edit-area febs-blue"></i>
|
| | | </a>
|
| | | <a lay-event="delete" shiro:hasPermission="user:update">删除
|
| | | <i class="layui-icon febs-edit-area febs-blue"></i>
|
| | | </a>
|
| | | </button>
|
| | | </script>
|
| | | <!-- 表格操作栏 end -->
|
| | | <script data-th-inline="none" type="text/javascript">
|
| | |
| | |
|
| | | 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');
|
| | |
| | | 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();
|
| | | }
|
| | | });
|
| | | });
|
| | |
|
| | |
| | | {title: '跳转外部或内部', templet: '#isInside', minWidth: 60,align:'center'},
|
| | | {title: '显示端口', templet: '#showPort', minWidth: 60,align:'center'},
|
| | | {title: '是否置顶', templet: '#isTop', minWidth: 60,align:'center'},
|
| | | {title: '是否是Banner', templet: '#isBanner', minWidth: 60,align:'center'},
|
| | |
|
| | | {title: '操作', toolbar: '#user-option', minWidth: 140, fixed : 'right'}
|
| | | ]]
|