Commit 2bfd947d3f2689a55d3851d854b1dc6c051be1a0

Authored by pengcheng
1 parent af8877b2

前端传参错误

src/main/resources/templates/config/location/add.html
... ... @@ -48,8 +48,8 @@
48 48 <div class="form-group">
49 49 <label class="col-sm-3 control-label">库位状态:</label>
50 50 <div class="col-sm-8">
51   - <select id="status" name="status" class="form-control" th:with="statusList=${@dict.getType('locationStatus')}">
52   - <option th:each="item : ${statusList}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option>
  51 + <select id="status" name="status" class="form-control" th:with="status=${@dict.getType('locationStatus')}">
  52 + <option th:each="item : ${status}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option>
53 53 </select>
54 54 </div>
55 55 </div>
... ... @@ -95,7 +95,7 @@
95 95 "iGrid": $("input[name='iGrid']").val(),
96 96 "locationType": $("#locationType option:selected").val(),
97 97 "zoneCode": $("#zoneCode option:selected").attr("code"),
98   - "enable" : $("input[name='enable']").is(':checked'),
  98 + "status" : $("#status option:selected").val(),
99 99 },
100 100 async : false,
101 101 error : function(request) {
... ...
src/main/resources/templates/config/location/addBatch.html
... ... @@ -48,8 +48,8 @@
48 48 <div class="form-group">
49 49 <label class="col-sm-3 control-label">库位状态:</label>
50 50 <div class="col-sm-8">
51   - <select id="status" name="status" class="form-control" th:with="statusList=${@dict.getType('locationStatus')}">
52   - <option th:each="item : ${statusList}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option>
  51 + <select id="status" name="status" class="form-control" th:with="status=${@dict.getType('locationStatus')}">
  52 + <option th:each="item : ${status}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option>
53 53 </select>
54 54 </div>
55 55 </div>
... ... @@ -106,7 +106,7 @@
106 106 "iGrid": $("input[name='iGrid']").val(),
107 107 "locationType": $("#locationType option:selected").val(),
108 108 "zoneCode": $("#zone option:selected").attr("code"),
109   - "status" : $("input[name='status']").is(':checked'),
  109 + "status" : $("#status option:selected").val(),
110 110 },
111 111 async : false,
112 112 error : function(request) {
... ...