0

目前,我只能显示外部列表数据,而 keyStats 什么也不显示。我想要的是,只要 currentNumberOfEntries 大于 0,我还想直接从相应列标题下的下一行显示 keyStats 数据。否则继续下一个数据。

[{
  "cacheName" : "PIPELINE",
  "urlName" : null,
  "keyName" : null,
  "hits" : 0,
  "misses" : 0,
  "currentNumberOfEntries" : 0,
  "keyStats" : [ ]
}, {
  "cacheName" : "REQUEST",
  "urlName" : null,
  "keyName" : "key"
  "hits" : 2,
  "misses" : 4,
  "currentNumberOfEntries" : 3,
  "keyStats" : [ {
  "cacheName" : "REQUEST",
  "keyName" : "1722957",
  "hits" : 0,
  "misses" : 0
}, {
  "cacheName" : "REQUEST",
  "keyName" : "SummaryRequest",
  "hits" : 0,
  "misses" : 0
}, {
  "cacheName" : "REQUEST",
  "keyName" : "LOAD_SUMMARY",
  "hits" : 0,
  "misses" : 0
 } ]
}, {
  "cacheName" : "Filter",
  "urlName" : null,
  "keyName" : null,
  "hits" : 0,
  "misses" : 0,
  "currentNumberOfEntries" : 0,
  "keyStats" : [ ]
} ]

这是我的列定义:

 columnDefs : [
{
field:'cacheName',
displayName:'   Cache Name          '
},{
field : 'currentNumberOfEntries',
displayName:'   Number of entries           '
},{
field : 'keyName',
displayName:'   Cache Key           ',
cellTemplate : '<a href>{{row.keyName}}</a>'
 },{
field : 'hits',
displayName:'   Number of Hits      '
 },{
field : 'misses',
displayName:'   Number of Misses    '
 } ]

任何帮助表示赞赏

4

0 回答 0