Commit 911c8601639bb87db93d47d9d88f0bd4fe9c8ebd
1 parent
165dcdf8
修改入库首选项修改添加模块为select
Showing
4 changed files
with
16 additions
and
6 deletions
src/main/resources/templates/config/filterConfigDetail/filterConfigDetail.html
src/main/resources/templates/config/filterConfigHeader/add.html
... | ... | @@ -8,7 +8,9 @@ |
8 | 8 | <div class="form-group"> |
9 | 9 | <label class="col-sm-3 control-label">模块:</label> |
10 | 10 | <div class="col-sm-8"> |
11 | - <input id="moduleType" name="moduleType" class="form-control" type="text"> | |
11 | + <select class="form-control" name="moduleType" th:with="moduleType=${@dict.getType('moduleType')}"> | |
12 | + <option th:each="e : ${moduleType}" th:text="${e['dictLabel']}" th:value="${e['dictValue']}"></option> | |
13 | + </select> | |
12 | 14 | </div> |
13 | 15 | </div> |
14 | 16 | <div class="form-group"> |
... | ... | @@ -81,6 +83,7 @@ |
81 | 83 | submitHandler: function (form) { |
82 | 84 | // $.operate.save(prefix + "/add", $('#form-locationType-add').serialize()); |
83 | 85 | var tableValue = $.common.getTableValue("#form-filterConfigHeader-add"); |
86 | + tableValue = formValueReplace(tableValue, "moduleType", $("#moduleType option:selected").val()); | |
84 | 87 | $.operate.save(prefix + "/add", tableValue); |
85 | 88 | } |
86 | 89 | }); |
... | ... |
src/main/resources/templates/config/filterConfigHeader/edit.html
... | ... | @@ -9,7 +9,9 @@ |
9 | 9 | <div class="form-group"> |
10 | 10 | <label class="col-sm-3 control-label">模块:</label> |
11 | 11 | <div class="col-sm-8"> |
12 | - <input id="moduleType" name="moduleType" class="form-control" type="text" th:field="*{moduleType}"> | |
12 | + <select class="form-control" name="moduleType" th:with="moduleType=${@dict.getType('moduleType')}" th:field="*{moduleType}"> | |
13 | + <option th:each="e : ${moduleType}" th:text="${e['dictLabel']}" th:value="${e['dictValue']}"></option> | |
14 | + </select> | |
13 | 15 | </div> |
14 | 16 | </div> |
15 | 17 | <div class="form-group"> |
... | ... | @@ -90,6 +92,7 @@ |
90 | 92 | }, |
91 | 93 | submitHandler: function(form) { |
92 | 94 | var tableValue = $.common.getTableValue("#form-filterConfigHeader-edit"); |
95 | + tableValue = formValueReplace(tableValue, "moduleType", $("#moduleType option:selected").val()); | |
93 | 96 | $.operate.save(prefix + "/edit", tableValue); |
94 | 97 | } |
95 | 98 | }); |
... | ... |
src/main/resources/templates/config/filterConfigHeader/filterConfigHeader.html
... | ... | @@ -74,14 +74,14 @@ |
74 | 74 | var editFlag = [[${@permission.hasPermi('config:filterConfigHeader:edit')}]]; |
75 | 75 | var removeFlag = [[${@permission.hasPermi('config:filterConfigHeader:remove')}]]; |
76 | 76 | var datas = [[${@dict.getType('sys_normal_disable')}]]; |
77 | - | |
77 | + var moduleType = [[${@dict.getType('moduleType')}]]; | |
78 | 78 | $(function() { |
79 | 79 | var options = { |
80 | 80 | url: prefix + "/list", |
81 | 81 | createUrl: prefix + "/add", |
82 | 82 | updateUrl: prefix + "/edit/{id}", |
83 | 83 | removeUrl: prefix + "/remove", |
84 | - modalName: "订单分析主表", | |
84 | + modalName: "规则配置主表", | |
85 | 85 | search: false, |
86 | 86 | sortName: "id", |
87 | 87 | sortOrder: "desc", |
... | ... | @@ -97,7 +97,11 @@ |
97 | 97 | }, |
98 | 98 | { |
99 | 99 | field : 'moduleType', |
100 | - title : '模块' | |
100 | + title : '模块', | |
101 | + align : "center", | |
102 | + formatter: function (value, item, index) { | |
103 | + return $.table.selectDictLabel(moduleType, value); | |
104 | + } | |
101 | 105 | }, |
102 | 106 | { |
103 | 107 | field : 'recordType', |
... | ... |