Merge branch 'dev_linlong'
Showing
1 changed file
with
74 additions
and
11 deletions
@@ -108,40 +108,103 @@ | @@ -108,40 +108,103 @@ | ||
108 | { | 108 | { |
109 | title: "业务分类", | 109 | title: "业务分类", |
110 | width:"200px", | 110 | width:"200px", |
111 | -// field: "name" | ||
112 | formatter: function (value, rowData, rowIndex) { | 111 | formatter: function (value, rowData, rowIndex) { |
113 | - return rowData.name.substring(0,17); | 112 | + return "<div style='padding:15px;'>"+rowData.name+"</div>"; |
114 | } | 113 | } |
115 | }, | 114 | }, |
116 | { | 115 | { |
117 | title: "地址", | 116 | title: "地址", |
118 | width: "200px", | 117 | width: "200px", |
119 | - field: "url" | 118 | + // field: "url" |
119 | + formatter: function (value, rowData, rowIndex) { | ||
120 | + var array = rowData.url.split("\r\n"); | ||
121 | + var div = ""; | ||
122 | + for(var i=0;i<array.length;i++) | ||
123 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
124 | + return div; | ||
125 | + } | ||
120 | }, { | 126 | }, { |
121 | title: "当前连接数", | 127 | title: "当前连接数", |
122 | - field: "curConnections" | 128 | + // field: "curConnections" |
129 | + formatter: function (value, rowData, rowIndex) { | ||
130 | + var array = rowData.curConnections.split("\r\n"); | ||
131 | + var div = ""; | ||
132 | + for(var i=0;i<array.length;i++) | ||
133 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
134 | + return div; | ||
135 | + } | ||
123 | }, { | 136 | }, { |
124 | title: "启动时长", | 137 | title: "启动时长", |
125 | - field: "upTime" | 138 | + width:"120px", |
139 | + // field: "upTime" | ||
140 | + formatter: function (value, rowData, rowIndex) { | ||
141 | + var array = rowData.upTime.split("\r\n"); | ||
142 | + var div = ""; | ||
143 | + for(var i=0;i<array.length;i++) | ||
144 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
145 | + return div; | ||
146 | + } | ||
126 | }, { | 147 | }, { |
127 | title: "get频率(次/秒)", | 148 | title: "get频率(次/秒)", |
128 | - field: 'cmdGet' | 149 | + // field: 'cmdGet' |
150 | + formatter: function (value, rowData, rowIndex) { | ||
151 | + var array = rowData.cmdGet.split("\r\n"); | ||
152 | + var div = ""; | ||
153 | + for(var i=0;i<array.length;i++) | ||
154 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
155 | + return div; | ||
156 | + } | ||
129 | }, { | 157 | }, { |
130 | title: "set频率(次/秒)", | 158 | title: "set频率(次/秒)", |
131 | - field: "cmdSet" | 159 | + // field: "cmdSet" |
160 | + formatter: function (value, rowData, rowIndex) { | ||
161 | + var array = rowData.cmdSet.split("\r\n"); | ||
162 | + var div = ""; | ||
163 | + for(var i=0;i<array.length;i++) | ||
164 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
165 | + return div; | ||
166 | + } | ||
132 | }, { | 167 | }, { |
133 | title: "get命中率", | 168 | title: "get命中率", |
134 | width: "100px", | 169 | width: "100px", |
135 | - field: "hitRate" | 170 | + // field: "hitRate" |
171 | + formatter: function (value, rowData, rowIndex) { | ||
172 | + var array = rowData.hitRate.split("\r\n"); | ||
173 | + var div = ""; | ||
174 | + for(var i=0;i<array.length;i++) | ||
175 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
176 | + return div; | ||
177 | + } | ||
136 | }, { | 178 | }, { |
137 | title: "使用内存", | 179 | title: "使用内存", |
138 | - field: "useMemory" | 180 | + // field: "useMemory" |
181 | + formatter: function (value, rowData, rowIndex) { | ||
182 | + var array = rowData.useMemory.split("\r\n"); | ||
183 | + var div = ""; | ||
184 | + for(var i=0;i<array.length;i++) | ||
185 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
186 | + return div; | ||
187 | + } | ||
139 | }, { | 188 | }, { |
140 | title: "最大内存", | 189 | title: "最大内存", |
141 | - field: "maxMemory" | 190 | + // field: "maxMemory" |
191 | + formatter: function (value, rowData, rowIndex) { | ||
192 | + var array = rowData.maxMemory.split("\r\n"); | ||
193 | + var div = ""; | ||
194 | + for(var i=0;i<array.length;i++) | ||
195 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
196 | + return div; | ||
197 | + } | ||
142 | }, { | 198 | }, { |
143 | title: "当前数量", | 199 | title: "当前数量", |
144 | - field: "curItems" | 200 | + // field: "curItems" |
201 | + formatter: function (value, rowData, rowIndex) { | ||
202 | + var array = rowData.curItems.split("\r\n"); | ||
203 | + var div = ""; | ||
204 | + for(var i=0;i<array.length;i++) | ||
205 | + div = div+ "<div style='height:30px;padding:10px;'>"+array[i]+"</div>"; | ||
206 | + return div; | ||
207 | + } | ||
145 | }], | 208 | }], |
146 | /* data: data*/ | 209 | /* data: data*/ |
147 | }); | 210 | }); |
-
Please register or login to post a comment