若依2.2版本发布
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">公告类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="noticeType" class="form-control m-b" th:with="type=${@dictService.selectDictData('sys_notice_type')}">
|
||||
<select name="noticeType" class="form-control m-b" th:with="type=${@dict.getType('sys_notice_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict['dictLabel']}" th:value="${dict['dictValue']}"></option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">公告状态:</label>
|
||||
<div class="col-sm-8" th:with="type=${@dictService.selectDictData('sys_notice_status')}">
|
||||
<div class="col-sm-8" th:with="type=${@dict.getType('sys_notice_status')}">
|
||||
<div th:each="dict : ${type}" th:class="${dict['cssClass']}">
|
||||
<input type="radio" th:id="${dict['dictCode']}" name="status" th:value="${dict['dictValue']}" th:checked="${dict['isDefault'] == 'Y' ? true : false}">
|
||||
<label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
|
||||
@@ -65,7 +65,7 @@
|
||||
submitHandler: function(form) {
|
||||
var sHTML = $('.summernote').code();
|
||||
$("#noticeContent").val(sHTML);
|
||||
$.operate.save(prefix + "/save", $('#form-notice-add').serialize());
|
||||
$.operate.save(prefix + "/add", $('#form-notice-add').serialize());
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">公告类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="noticeType" class="form-control m-b" th:with="type=${@dictService.selectDictData('sys_notice_type')}">
|
||||
<select name="noticeType" class="form-control m-b" th:with="type=${@dict.getType('sys_notice_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict['dictLabel']}" th:value="${dict['dictValue']}" th:field="*{noticeType}"></option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">公告状态:</label>
|
||||
<div class="col-sm-8" th:with="type=${@dictService.selectDictData('sys_notice_status')}">
|
||||
<div class="col-sm-8" th:with="type=${@dict.getType('sys_notice_status')}">
|
||||
<div th:each="dict : ${type}" th:class="${dict['cssClass']}">
|
||||
<input type="radio" th:id="${dict['dictCode']}" name="status" th:value="${dict['dictValue']}" th:field="*{status}">
|
||||
<label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
|
||||
@@ -69,7 +69,7 @@
|
||||
submitHandler: function(form) {
|
||||
var sHTML = $('.summernote').code();
|
||||
$("#noticeContent").val(sHTML);
|
||||
$.operate.save(prefix + "/save", $('#form-notice-edit').serialize());
|
||||
$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
操作人员:<input type="text" name="createBy"/>
|
||||
</li>
|
||||
<li>
|
||||
公告类型:<select name="noticeType" th:with="type=${@dictService.selectDictData('sys_notice_type')}">
|
||||
公告类型:<select name="noticeType" th:with="type=${@dict.getType('sys_notice_type')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="e : ${type}" th:text="${e['dictLabel']}" th:value="${e['dictValue']}"></option>
|
||||
</select>
|
||||
@@ -46,8 +46,10 @@
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permissionService.hasPermi('system:notice:edit')}]];
|
||||
var removeFlag = [[${@permissionService.hasPermi('system:notice:remove')}]];
|
||||
var editFlag = [[${@permission.hasPermi('system:notice:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('system:notice:remove')}]];
|
||||
var types = [[${@dict.getType('sys_notice_type')}]];
|
||||
var datas = [[${@dict.getType('sys_notice_status')}]];
|
||||
var prefix = ctx + "system/notice"
|
||||
|
||||
$(function() {
|
||||
@@ -74,11 +76,7 @@
|
||||
title: '公告类型',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
if (value == '1') {
|
||||
return '<span class="label label-warning">通知</span>';
|
||||
} else if (value == '2') {
|
||||
return '<span class="badge badge-success">公告</span>';
|
||||
}
|
||||
return $.table.selectDictLabel(types, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -86,11 +84,7 @@
|
||||
title: '状态',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
if (value == '0') {
|
||||
return '<span class="badge badge-primary">正常</span>';
|
||||
} else if (value == '1') {
|
||||
return '<span class="badge badge-danger">关闭</span>';
|
||||
}
|
||||
return $.table.selectDictLabel(datas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user