6 changed files with 441 additions and 173 deletions
@ -1,117 +1,126 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
||||
<head> |
<head> |
||||
<th:block th:include="include :: header('通知公告列表')" /> |
<th:block th:include="include :: header('通知公告列表')"/> |
||||
</head> |
</head> |
||||
<body class="gray-bg"> |
<body class="gray-bg"> |
||||
<div class="container-div"> |
<div class="container-div"> |
||||
<div class="row"> |
<div class="row"> |
||||
<div class="col-sm-12 search-collapse"> |
<div class="col-sm-12 search-collapse"> |
||||
<form id="notice-form"> |
<form id="notice-form"> |
||||
<div class="select-list"> |
<div class="select-list"> |
||||
<ul> |
<ul> |
||||
<li> |
<li> |
||||
公告标题:<input type="text" name="noticeTitle"/> |
通知标题:<input type="text" name="noticeTitle"/> |
||||
</li> |
</li> |
||||
<li> |
<li id="day" class="day" style="display: flex;"> |
||||
操作人员:<input type="text" name="createBy"/> |
<p>发布时间:</p> |
||||
</li> |
<input type="text" class="time-input" id="beginTime" placeholder="开始时间" name="beginTime" |
||||
<li> |
style="width: 100px"/> |
||||
公告类型:<select name="noticeType" th:with="type=${@dict.getType('sys_notice_type')}"> |
<span>-</span> |
||||
<option value="">所有</option> |
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime" |
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
style="width: 100px"/> |
||||
</select> |
</li> |
||||
</li> |
<li> |
||||
<li> |
发布部门:<input type="text" name="bureauDeptNames"/> |
||||
<a class="btn btn-success btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
</li> |
||||
<a class="btn btn-reset btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
<li> |
||||
</li> |
发布对象:<select name="objectType" th:with="type=${@dict.getType('object')}" style="width: 100px"> |
||||
</ul> |
<option value=""></option> |
||||
</div> |
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
||||
</form> |
th:value="${dict.dictValue}"></option> |
||||
</div> |
</select> |
||||
|
</li> |
||||
<div class="btn-group-sm" id="toolbar" role="group"> |
<li> |
||||
<a class="btn btn-success" onclick="$.operate.addFull()" shiro:hasPermission="system:notice:add"> |
<a class="btn btn-success btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
||||
<i class="fa fa-plus"></i> 新增 |
<a class="btn btn-reset btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
||||
</a> |
</li> |
||||
<a class="btn btn-primary single disabled" onclick="$.operate.editFull()" shiro:hasPermission="system:notice:edit"> |
</ul> |
||||
<i class="fa fa-edit"></i> 修改 |
</div> |
||||
</a> |
</form> |
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:notice:remove"> |
</div> |
||||
<i class="fa fa-remove"></i> 删除 |
|
||||
</a> |
<div class="btn-group-sm" id="toolbar" role="group"> |
||||
</div> |
<a class="btn btn-success" onclick="$.operate.addFull()" shiro:hasPermission="system:notice:add"> |
||||
|
<i class="fa fa-plus"></i> 新增 |
||||
<div class="col-sm-12 select-table table-bordered"> |
</a> |
||||
<table id="bootstrap-table"></table> |
<a class="btn btn-primary single disabled" onclick="$.operate.editFull()" |
||||
</div> |
shiro:hasPermission="system:notice:edit"> |
||||
</div> |
<i class="fa fa-edit"></i> 修改 |
||||
|
</a> |
||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" |
||||
|
shiro:hasPermission="system:notice:remove"> |
||||
|
<i class="fa fa-remove"></i> 删除 |
||||
|
</a> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-sm-12 select-table table-bordered"> |
||||
|
<table id="bootstrap-table"></table> |
||||
|
</div> |
||||
</div> |
</div> |
||||
<th:block th:include="include :: footer" /> |
</div> |
||||
<script th:inline="javascript"> |
<th:block th:include="zdxtInclude :: footer"/> |
||||
var editFlag = [[${@permission.hasPermi('system:notice:edit')}]]; |
<script th:inline="javascript"> |
||||
var removeFlag = [[${@permission.hasPermi('system:notice:remove')}]]; |
var editFlag = [[${@permission.hasPermi('system:notice:edit')}]]; |
||||
var types = [[${@dict.getType('sys_notice_type')}]]; |
var removeFlag = [[${@permission.hasPermi('system:notice:remove')}]]; |
||||
var datas = [[${@dict.getType('sys_notice_status')}]]; |
var types = [[${@dict.getType('object')}]]; |
||||
var prefix = ctx + "system/notice"; |
var datas = [[${@dict.getType('notice_status_type')}]]; |
||||
|
var prefix = ctx + "system/notice"; |
||||
|
|
||||
$(function() { |
$(function () { |
||||
var options = { |
var options = { |
||||
url: prefix + "/list", |
url: prefix + "/list", |
||||
createUrl: prefix + "/add", |
createUrl: prefix + "/add", |
||||
updateUrl: prefix + "/edit/{id}", |
updateUrl: prefix + "/edit/{id}", |
||||
removeUrl: prefix + "/remove", |
removeUrl: prefix + "/remove", |
||||
modalName: "公告", |
modalName: "通知", |
||||
columns: [{ |
uniqueId:"noticeId", |
||||
checkbox: true |
columns: [{ |
||||
}, |
checkbox: true |
||||
{ |
}, |
||||
field : 'noticeId', |
{ |
||||
title : '序号' |
field: 'noticeTitle', |
||||
}, |
title: '通知标题' |
||||
{ |
}, |
||||
field : 'noticeTitle', |
{ |
||||
title : '公告标题' |
field: 'createTime', |
||||
}, |
title: '发布时间', |
||||
{ |
// sortable: true |
||||
field: 'noticeType', |
}, |
||||
title: '公告类型', |
{ |
||||
align: 'center', |
field: 'bureauDeptNames', |
||||
formatter: function(value, row, index) { |
title: '发布部门', |
||||
return $.table.selectDictLabel(types, value); |
}, |
||||
} |
{ |
||||
}, |
field: 'objectType', |
||||
{ |
title: '发布对象', |
||||
field: 'status', |
align: 'center', |
||||
title: '状态', |
formatter: function (value, row, index) { |
||||
align: 'center', |
return $.table.selectDictLabel(types, value); |
||||
formatter: function(value, row, index) { |
} |
||||
return $.table.selectDictLabel(datas, value); |
}, |
||||
} |
{ |
||||
}, |
field: 'status', |
||||
{ |
title: '发布状态', |
||||
field : 'createBy', |
align: 'center', |
||||
title : '创建者' |
formatter: function (value, row, index) { |
||||
}, |
return $.table.selectDictLabel(datas, value); |
||||
{ |
} |
||||
field: 'createTime', |
}, |
||||
title: '创建时间', |
{ |
||||
sortable: true |
title: '操作', |
||||
}, |
align: 'center', |
||||
{ |
formatter: function (value, row, index) { |
||||
title: '操作', |
return '<span style="cursor: pointer;color: blue;" ONCLICK="openNoticeDetails(\'' + row.noticeId + '\')">' + '详情' + '</span>'; |
||||
align: 'center', |
} |
||||
formatter: function(value, row, index) { |
}] |
||||
var actions = []; |
}; |
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editFull(\'' + row.noticeId + '\')"><i class="fa fa-edit"></i> 编辑</a> '); |
$.table.init(options); |
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.noticeId + '\')"><i class="fa fa-remove"></i> 删除</a>'); |
}); |
||||
return actions.join(''); |
function openNoticeDetails(noticeId){ |
||||
} |
console.log(noticeId); |
||||
}] |
$.modal.openClose("通知公告详情", prefix + "/detail/" + noticeId); |
||||
}; |
} |
||||
$.table.init(options); |
</script> |
||||
}); |
|
||||
</script> |
|
||||
</body> |
</body> |
||||
</html> |
</html> |
||||
Loading…
Reference in new issue