degradeEdit.jsp
4.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<%@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="configName" name="configName" maxlength="80" size="40" readonly="readonly"/>
</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="level1Page" name="level1Page" 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="level2Page" name="level2Page" maxlength="200" 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="configShowName" name="configShowName" maxlength="80" 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="apiName" 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="configDesc" name="configDesc" maxlength="200" 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="functionPointName" name="functionPointName" maxlength="80" 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="clientType" name="clientType" maxlength="30" size="40"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">配置级别:</label>
<div class="col-sm-8">
<select id="level" name="level" class="form-control">
<option value="0">全部</option>
<option value="1">一级</option>
<option value="2">二级</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">服务器:</label>
<div class="col-sm-8">
<select id="cloudType" name="cloudType" class="form-control">
<option value="all">全部</option>
<option value="zookeeper_aws">aws</option>
<option value="zookeeper_qq">qCloud</option>
</select>
</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 #configName").val(paramObj.configName);
$("#degradeInfoForm #configShowName").val(paramObj.configShowName);
$("#degradeInfoForm #configDesc").val(paramObj.configDesc);
$("#degradeInfoForm #level").val(paramObj.level);
$("#degradeInfoForm #switchOn").val(paramObj.switchOn);
$("#degradeInfoForm #cloudType").val(paramObj.cloudType);
$("#degradeInfoForm #functionPointName").val(paramObj.functionPointName);
$("#degradeInfoForm #level1Page").val(paramObj.level1Page);
$("#degradeInfoForm #level2Page").val(paramObj.level2Page);
$("#degradeInfoForm #apiName").val(paramObj.apiName);
$("#degradeInfoForm #clientType").val(paramObj.clientType);
})
</script>