Authored by LiQZ

编辑状态选中问题

... ... @@ -57,9 +57,9 @@
<div class="form-group">
<label class="col-sm-2 control-label" for="position">开启或关闭</label>
<div class="col-sm-3">
<select id="status" name="status" tabindex="-1" value="<%if data%><% data.status %><%/if%>" class="select2-offscreen" style="width: 100px;">
<option value="0">关闭</option>
<option value="1">开启</option>
<select id="status" name="status" tabindex="-1" class="select2-offscreen" style="width: 100px;">
<option value="0" <%if data && data.status == 0%>selected<%/if%>>关闭</option>
<option value="1" <%if data && data.status == 1%>selected<%/if%>>开启</option>
</select>
</div>
</div>
... ...