Browse Source

自定义图片页下拉回显

master
蟑螂恶霸 2 years ago
parent
commit
b52aff488e
  1. 19
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/settings.html

19
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/settings.html

@ -100,9 +100,12 @@
<div class="col-sm-5"> <div class="col-sm-5">
<label class="col-sm-4 control-label is-required">状态:</label> <label class="col-sm-4 control-label is-required">状态:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select onchange="updateStatue('home-bottom-left')" name="status-title-home-bottom-left" id="status-home-bottom-left" class="form-control m-b"> <!-- <select onchange="updateStatue('home-bottom-left')" name="status-title-home-bottom-left" id="status-home-bottom-left" class="form-control m-b">-->
<option value="0">普通</option> <!-- <option value="0">普通</option>-->
<option value="1">定制</option> <!-- <option value="1">定制</option>-->
<!-- </select>-->
<select onchange="updateStatue('home-bottom-left')" name="status-title-home-bottom-left" id="status-home-bottom-left" th:with="type=${@dict.getType('c_image_status')}" class="form-control m-b">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
@ -125,9 +128,12 @@
<div class="col-sm-5"> <div class="col-sm-5">
<label class="col-sm-4 control-label is-required">状态:</label> <label class="col-sm-4 control-label is-required">状态:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select onchange="updateStatue('home-bottom-right-top')" name="status-home-bottom-right-top" id="status-home-bottom-right-top" class="form-control m-b"> <!-- <select onchange="updateStatue('home-bottom-right-top')" name="status-home-bottom-right-top" id="status-home-bottom-right-top" class="form-control m-b">-->
<option value="0">普通</option> <!-- <option value="0">普通</option>-->
<option value="1">定制</option> <!-- <option value="1">定制</option>-->
<!-- </select>-->
<select onchange="updateStatue('home-bottom-right-top')" name="status-home-bottom-right-top" id="status-home-bottom-right-top" th:with="type=${@dict.getType('c_image_status')}" class="form-control m-b">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
@ -308,6 +314,7 @@
dataType: 'json', dataType: 'json',
success: function (data) { //成功,回调函数 success: function (data) { //成功,回调函数
for (var i=0; i<data.rows.length; i++) { for (var i=0; i<data.rows.length; i++) {
$("#status-"+data.rows[i].title).val(data.rows[i].status);
queryFiles(data.rows[i]); queryFiles(data.rows[i]);
} }
}, },

Loading…
Cancel
Save