Showing
1 changed file
with
16 additions
and
16 deletions
@@ -123,7 +123,7 @@ | @@ -123,7 +123,7 @@ | ||
123 | title: "业务分类", | 123 | title: "业务分类", |
124 | width:"110px", | 124 | width:"110px", |
125 | formatter: function (value, rowData, rowIndex) { | 125 | formatter: function (value, rowData, rowIndex) { |
126 | - return "<div style='padding:15px;'>"+rowData.name+"</div>"; | 126 | + return "<div>"+rowData.name+"</div>"; |
127 | } | 127 | } |
128 | }, | 128 | }, |
129 | { | 129 | { |
@@ -134,33 +134,33 @@ | @@ -134,33 +134,33 @@ | ||
134 | var array = rowData.url.split("\r\n"); | 134 | var array = rowData.url.split("\r\n"); |
135 | var div = ""; | 135 | var div = ""; |
136 | for(var i=0;i<array.length;i++) | 136 | for(var i=0;i<array.length;i++) |
137 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 137 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
138 | return div; | 138 | return div; |
139 | } | 139 | } |
140 | } | 140 | } |
141 | , | 141 | , |
142 | { | 142 | { |
143 | title: "CPU(%)", | 143 | title: "CPU(%)", |
144 | - width: "100px", | 144 | + width: "80px", |
145 | // field: "url" | 145 | // field: "url" |
146 | formatter: function (value, rowData, rowIndex) { | 146 | formatter: function (value, rowData, rowIndex) { |
147 | var array = rowData.cpu.split("\r\n"); | 147 | var array = rowData.cpu.split("\r\n"); |
148 | var div = ""; | 148 | var div = ""; |
149 | for(var i=0;i<array.length;i++) | 149 | for(var i=0;i<array.length;i++) |
150 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 150 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
151 | return div; | 151 | return div; |
152 | } | 152 | } |
153 | } | 153 | } |
154 | , | 154 | , |
155 | { | 155 | { |
156 | title: "可用/总内存(MB)", | 156 | title: "可用/总内存(MB)", |
157 | - width: "200px", | 157 | + width: "180px", |
158 | // field: "url" | 158 | // field: "url" |
159 | formatter: function (value, rowData, rowIndex) { | 159 | formatter: function (value, rowData, rowIndex) { |
160 | var array = rowData.mem.split("\r\n"); | 160 | var array = rowData.mem.split("\r\n"); |
161 | var div = ""; | 161 | var div = ""; |
162 | for(var i=0;i<array.length;i++) | 162 | for(var i=0;i<array.length;i++) |
163 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 163 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
164 | return div; | 164 | return div; |
165 | } | 165 | } |
166 | } | 166 | } |
@@ -173,7 +173,7 @@ | @@ -173,7 +173,7 @@ | ||
173 | var array = rowData.net.split("\r\n"); | 173 | var array = rowData.net.split("\r\n"); |
174 | var div = ""; | 174 | var div = ""; |
175 | for(var i=0;i<array.length;i++) | 175 | for(var i=0;i<array.length;i++) |
176 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 176 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
177 | return div; | 177 | return div; |
178 | } | 178 | } |
179 | }, { | 179 | }, { |
@@ -184,7 +184,7 @@ | @@ -184,7 +184,7 @@ | ||
184 | var array = rowData.curConnections.split("\r\n"); | 184 | var array = rowData.curConnections.split("\r\n"); |
185 | var div = ""; | 185 | var div = ""; |
186 | for(var i=0;i<array.length;i++) | 186 | for(var i=0;i<array.length;i++) |
187 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 187 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
188 | return div; | 188 | return div; |
189 | } | 189 | } |
190 | }, { | 190 | }, { |
@@ -195,7 +195,7 @@ | @@ -195,7 +195,7 @@ | ||
195 | var array = rowData.upTime.split("\r\n"); | 195 | var array = rowData.upTime.split("\r\n"); |
196 | var div = ""; | 196 | var div = ""; |
197 | for(var i=0;i<array.length;i++) | 197 | for(var i=0;i<array.length;i++) |
198 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 198 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
199 | return div; | 199 | return div; |
200 | } | 200 | } |
201 | }, { | 201 | }, { |
@@ -206,7 +206,7 @@ | @@ -206,7 +206,7 @@ | ||
206 | var array = rowData.cmdGet.split("\r\n"); | 206 | var array = rowData.cmdGet.split("\r\n"); |
207 | var div = ""; | 207 | var div = ""; |
208 | for(var i=0;i<array.length;i++) | 208 | for(var i=0;i<array.length;i++) |
209 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 209 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
210 | return div; | 210 | return div; |
211 | } | 211 | } |
212 | }, { | 212 | }, { |
@@ -217,7 +217,7 @@ | @@ -217,7 +217,7 @@ | ||
217 | var array = rowData.cmdSet.split("\r\n"); | 217 | var array = rowData.cmdSet.split("\r\n"); |
218 | var div = ""; | 218 | var div = ""; |
219 | for(var i=0;i<array.length;i++) | 219 | for(var i=0;i<array.length;i++) |
220 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 220 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
221 | return div; | 221 | return div; |
222 | } | 222 | } |
223 | }, { | 223 | }, { |
@@ -228,7 +228,7 @@ | @@ -228,7 +228,7 @@ | ||
228 | var array = rowData.hitRate.split("\r\n"); | 228 | var array = rowData.hitRate.split("\r\n"); |
229 | var div = ""; | 229 | var div = ""; |
230 | for(var i=0;i<array.length;i++) | 230 | for(var i=0;i<array.length;i++) |
231 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 231 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
232 | return div; | 232 | return div; |
233 | } | 233 | } |
234 | }, { | 234 | }, { |
@@ -239,7 +239,7 @@ | @@ -239,7 +239,7 @@ | ||
239 | var array = rowData.useMemory.split("\r\n"); | 239 | var array = rowData.useMemory.split("\r\n"); |
240 | var div = ""; | 240 | var div = ""; |
241 | for(var i=0;i<array.length;i++) | 241 | for(var i=0;i<array.length;i++) |
242 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 242 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
243 | return div; | 243 | return div; |
244 | } | 244 | } |
245 | }, { | 245 | }, { |
@@ -250,18 +250,18 @@ | @@ -250,18 +250,18 @@ | ||
250 | var array = rowData.maxMemory.split("\r\n"); | 250 | var array = rowData.maxMemory.split("\r\n"); |
251 | var div = ""; | 251 | var div = ""; |
252 | for(var i=0;i<array.length;i++) | 252 | for(var i=0;i<array.length;i++) |
253 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 253 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
254 | return div; | 254 | return div; |
255 | } | 255 | } |
256 | }, { | 256 | }, { |
257 | title: "当前数量", | 257 | title: "当前数量", |
258 | - width:"80px", | 258 | + width:"90px", |
259 | // field: "curItems" | 259 | // field: "curItems" |
260 | formatter: function (value, rowData, rowIndex) { | 260 | formatter: function (value, rowData, rowIndex) { |
261 | var array = rowData.curItems.split("\r\n"); | 261 | var array = rowData.curItems.split("\r\n"); |
262 | var div = ""; | 262 | var div = ""; |
263 | for(var i=0;i<array.length;i++) | 263 | for(var i=0;i<array.length;i++) |
264 | - div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | 264 | + div = div+ "<div style='height:30px;'>"+array[i]+"</div>"; |
265 | return div; | 265 | return div; |
266 | } | 266 | } |
267 | }], | 267 | }], |
-
Please register or login to post a comment