|
@@ -7,20 +7,20 @@
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
|
<form class="form-horizontal m" id="form-config-edit" th:object="${sysInfoConfig}">
|
|
|
<input name="confId" th:field="*{confId}" type="hidden">
|
|
|
- <div class="form-group">
|
|
|
- <label class="col-sm-3 control-label">系统类型:</label>
|
|
|
- <div class="col-sm-8">
|
|
|
- <select name="typeCd" class="form-control m-b" th:with="type=${@dict.getType('sys_tp_cd')}">
|
|
|
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{typeCd}"></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="col-sm-3 control-label">场景类型:</label>
|
|
|
- <div class="col-sm-8">
|
|
|
- <select name="sceneTpCd" class="form-control m-b" th:with="type=${@dict.getType('sys_tp_cd')}">
|
|
|
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sceneTpCd}"></option>
|
|
|
- </select>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-3 control-label">配置类型:</label>
|
|
|
+ <div id="element" class="row">
|
|
|
+ <div class="col-sm-4">
|
|
|
+ <select name="typeCd" class="type form-control m-b" th:attr='data-value=*{typeCd}' data-first-title="请选择">
|
|
|
+<!-- <select name="typeCd" class="type form-control m-b" data-first-title="请选择">-->
|
|
|
+ <option value="">请选择</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-4">
|
|
|
+ <select name="sceneTpCd" class="router form-control m-b" th:attr='data-value=*{sceneTpCd}' data-first-title="请选择">
|
|
|
+ <option value="">请选择</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
@@ -40,10 +40,40 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
<th:block th:include="include :: footer" />
|
|
|
+ <th:block th:include="include :: jquery-cxselect-js" />
|
|
|
<script th:inline="javascript">
|
|
|
+ // 直接返回获取
|
|
|
+ var dictDataList = [[${dictDataList}]];
|
|
|
+ $('#element').cxSelect({
|
|
|
+ selects: ['type', 'router'],
|
|
|
+ jsonValue: 'v',
|
|
|
+ data: dictDataList
|
|
|
+ });
|
|
|
+
|
|
|
var prefix = ctx + "opt/config";
|
|
|
$("#form-config-edit").validate({
|
|
|
- focusCleanup: true
|
|
|
+ rules: {
|
|
|
+ typeCd: {
|
|
|
+ required: true
|
|
|
+ },
|
|
|
+ sceneTpCd: {
|
|
|
+ required: true
|
|
|
+ },
|
|
|
+ content: {
|
|
|
+ required: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ messages: {
|
|
|
+ typeCd: {
|
|
|
+ required: "",
|
|
|
+ },
|
|
|
+ sceneTpCd: {
|
|
|
+ required: "",
|
|
|
+ },
|
|
|
+ content: {
|
|
|
+ required: "内容不能为空",
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
function submitHandler() {
|