detailMobject.jsp
4.12 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<div id="breadcrumb">
<a href="#" title="Go to Home" class="tip-bottom"><i
class="icon-home"></i> Home</a> <a href="#" class="current">监控对象</a> <a
href="#" class="current">详情</a>
</div>
<div class="container-fluid">
<div class="widget-box">
<div class="widget-title">
<h5>监控对象详情</h5>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="widget-box" id="viewTable">
<div class="widget-title">
<h5>Static table</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>Column name</th>
<th>Column name</th>
<th>Column name</th>
<th>Column name</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="widget-box" id="modelTable">
<div class="widget-title">
<h5>Static table</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>Column name</th>
<th>Column name</th>
<th>Column name</th>
<th>Column name</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="widget-box" id="queueTable">
<div class="widget-title">
<h5>Static table</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>Column name</th>
<th>Column name</th>
<th>Column name</th>
<th>Column name</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$(function() {
$.ajax({
url:"",
type:"post",
dataType:"json",
data:{
moId:paramObj.moId
},
success:function(data){
updateViewTable(data);
}
});
function updateViewTable(data){
var innerHTML = "";
for (var i = 0; i < orderMsgList.length; i ++) {
innerHTML += "<tr><td>" + orderMsgList[i].influxTime + "</td>";
innerHTML += "<td>" + orderMsgList[i].isSend + "</td>";
innerHTML += "<td>" + orderMsgList[i].orderCode + "</td>";
innerHTML += "<td>" + orderMsgList[i].event + "</td></tr>";
}
document.getElementById('viewTable').getElementsByTagName("tbody")[0].innerHTML = innerHTML;
};
$.ajax({
url:"",
type:"post",
dataType:"json",
data:{
moId:paramObj.moId
},
success:function(data){
updateModelTable(data);
}
});
function updateModelTable(data){
var innerHTML = "";
for (var i = 0; i < orderMsgList.length; i ++) {
innerHTML += "<tr><td>" + orderMsgList[i].influxTime + "</td>";
innerHTML += "<td>" + orderMsgList[i].isSend + "</td>";
innerHTML += "<td>" + orderMsgList[i].orderCode + "</td>";
innerHTML += "<td>" + orderMsgList[i].event + "</td></tr>";
}
document.getElementById('modelTable').getElementsByTagName("tbody")[0].innerHTML = innerHTML;
}
});
$.ajax({
url:"",
type:"post",
dataType:"json",
data:{
moId:paramObj.moId
},
success:function(data){
updateQueueTable(data);
}
});
function updateQueueTable(data){
var innerHTML = "";
for (var i = 0; i < orderMsgList.length; i ++) {
innerHTML += "<tr><td>" + orderMsgList[i].influxTime + "</td>";
innerHTML += "<td>" + orderMsgList[i].isSend + "</td>";
innerHTML += "<td>" + orderMsgList[i].orderCode + "</td>";
innerHTML += "<td>" + orderMsgList[i].event + "</td></tr>";
}
document.getElementById('queueTable').getElementsByTagName("tbody")[0].innerHTML = innerHTML;
}
});
</script>