appDegradeEdit.jsp
1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<%@page language="java" contentType="text/html;charset=utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<form class="form-horizontal" id="degradeInfoForm" name="degradeInfoForm">
<div class="form-group">
<label class="col-sm-2 control-label">接口名称:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="apiName" readonly name="apiName" maxlength="100" size="40"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">接口编号:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="apiCode" readonly name="apiCode" maxlength="100" size="40"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">接口描述:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="apiDesc" name="apiDesc" maxlength="100" size="40"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">开关:</label>
<div class="col-sm-8">
<select id="switchOn" name="switchOn" class="form-control">
<option value="N">不降级</option>
<option value="Y">降级</option>
</select>
</div>
</div>
</form>
<script>
$(function(){
$("#degradeInfoForm #switchOn").val(paramObj.switchOn);
$("#degradeInfoForm #apiName").val(paramObj.apiName);
$("#degradeInfoForm #apiDesc").val(paramObj.apiDesc);
$("#degradeInfoForm #apiCode").val(paramObj.apiCode);
})
</script>