提审服管理修改

master
duhui 2021-07-09 14:43:49 +08:00
parent 0a85c598da
commit 8d7775828a
3 changed files with 5 additions and 16 deletions

View File

@ -58,10 +58,7 @@
对应服务器:</label>
<div class="formControls col-xs-8 col-sm-9">
<!--<input type="hidden" id="serverInfoInput"/>-->
<select name="serverInfo" class="input-text" id="serverInfo"><!--下拉列表-->
<option value="0" selected="selected">正式服</option>
<option value="1" >提审服</option>
</select>
<input type="text" id="serverInfo" name="serverInfo" style="width: 100px;" placeholder="只能输入数字" class="input-text"/>
</div>
</div>
@ -114,9 +111,7 @@
function addTishenInfo() {
var erroCode = $('.ERRINFO');
var _id = $("input[name='_id']").val();
// var serverInfo = $("#serverInfoInput").val();
var serverInfo = document.getElementById("serverInfo").value;
var serverInfo = $("input[name='serverInfo']").val();
var remark = $("input[name='remark']").val();
if (_id === '' || _id == null) {
@ -130,7 +125,7 @@
JSON.stringify({
"_id": _id,
"remark":remark,
"serverInfo": serverInfo,
"serverInfo": serverInfo
})
,
url: "/addTishenServer",

View File

@ -50,10 +50,7 @@
<tr th:each="obj:${handInInfos}">
<!--<td><input type="checkbox" value="" name=""/></td>-->
<td th:text="${obj._id}" style="text-align: center;"></td>
<td th:switch="${obj.serverInfo}" style="text-align: center;">
<span th:case=0> 正式服</span>
<span th:case=1> 提审服</span>
</td>
<td th:text="${obj.serverInfo}" style="text-align: center;"></td>
<td th:text="${obj.remark}" style="text-align: center;"></td>
<td style="text-align: center; width: 300px">

View File

@ -58,10 +58,7 @@
对应服务器:</label>
<div class="formControls col-xs-8 col-sm-9">
<!--<input type="hidden" id="serverInfoInput"/>-->
<select name="serverInfo" class="input-text" id="serverInfo" th:value="*{serverInfo}"><!--下拉列表-->
<option value="0" th:selected="*{serverInfo eq 0}">正式服</option>
<option value="1" th:selected="*{serverInfo eq 1}">提审服</option>
</select>
<input type="text" id="serverInfo" name="serverInfo" placeholder="" th:value="*{serverInfo}" class="input-text" />
</div>
</div>