Commit bb32a363e671c91fbce51b47eeb88b8b917f8378

Authored by mahuandong
1 parent 04b51eb8

修改规则配置添加时类型选择项

src/main/resources/templates/config/filterConfigHeader/add.html
... ... @@ -9,7 +9,10 @@
9 9 <div class="form-group">
10 10 <label class="col-sm-3 control-label">类型:</label>
11 11 <div class="col-sm-8">
12   - <select id="recordType" name="recordType" class="form-control" th:with="recordType=${@dict.getType('recordType')}">
  12 + <select id="recordType" name="recordType" class="form-control" th:if="${moduleType == 'receipt'}" th:with="recordType=${@dict.getType('receiptRuleType')}">
  13 + <option th:each="item : ${recordType}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option>
  14 + </select>
  15 + <select id="recordType" name="recordType" class="form-control" th:if="${moduleType != 'receipt'}" th:with="recordType=${@dict.getType('shipmentRuleType')}">
13 16 <option th:each="item : ${recordType}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option>
14 17 </select>
15 18 </div>
... ...