mirror of
https://github.com/yangzongzhuan/RuoYi.git
synced 2025-10-20 20:47:41 +00:00
若依2.2版本发布
This commit is contained in:
@@ -25,7 +25,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_yes_no')}">
|
||||
<div class="col-sm-8" th:with="type=${@dict.getType('sys_yes_no')}">
|
||||
<div th:each="dict : ${type}" th:class="${dict['cssClass']}">
|
||||
<input type="radio" th:id="${dict['dictCode']}" name="configType" th:value="${dict['dictValue']}" th:checked="${dict['isDefault'] == 'Y' ? true : false}">
|
||||
<label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
|
||||
@@ -82,7 +82,7 @@
|
||||
}
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
$.operate.save(prefix + "/save", $('#form-config-add').serialize());
|
||||
$.operate.save(prefix + "/add", $('#form-config-add').serialize());
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
参数键名:<input type="text" name="configKey"/>
|
||||
</li>
|
||||
<li>
|
||||
系统内置:<select name="configType" th:with="type=${@dictService.selectDictData('sys_yes_no')}">
|
||||
系统内置:<select name="configType" th:with="type=${@dict.getType('sys_yes_no')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="e : ${type}" th:text="${e['dictLabel']}" th:value="${e['dictValue']}"></option>
|
||||
</select>
|
||||
@@ -52,8 +52,9 @@
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permissionService.hasPermi('system:config:edit')}]];
|
||||
var removeFlag = [[${@permissionService.hasPermi('system:config:remove')}]];
|
||||
var editFlag = [[${@permission.hasPermi('system:config:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('system:config:remove')}]];
|
||||
var datas = [[${@dict.getType('sys_yes_no')}]];
|
||||
var prefix = ctx + "system/config"
|
||||
|
||||
$(function() {
|
||||
@@ -92,11 +93,7 @@
|
||||
title: '系统内置',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
if (value == 'Y') {
|
||||
return '<span class="badge badge-primary">是</span>';
|
||||
} else if (value == 'N') {
|
||||
return '<span class="badge badge-danger">否</span>';
|
||||
}
|
||||
return $.table.selectDictLabel(datas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -26,7 +26,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_yes_no')}">
|
||||
<div class="col-sm-8" th:with="type=${@dict.getType('sys_yes_no')}">
|
||||
<div th:each="dict : ${type}" th:class="${dict['cssClass']}">
|
||||
<input type="radio" th:id="${dict['dictCode']}" name="configType" th:value="${dict['dictValue']}" th:field="*{configType}">
|
||||
<label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
|
||||
@@ -86,7 +86,7 @@
|
||||
}
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
$.operate.save(prefix + "/save", $('#form-config-edit').serialize());
|
||||
$.operate.save(prefix + "/edit", $('#form-config-edit').serialize());
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user