iteye_20681 2009-10-19 09:29
浏览 224
已采纳

问Extjs专家一个问题(关于表格合并的问题)

公司现在在做一个EXtjs的 节目编排项目
节目单编排我从后台得到的数据是这样的:
{"root":[
{"colFive":null,"colFour":"


节目详情<\/caption>
03:10- 04:00<\/th><\/tr>
霍元甲包<\/th><\/tr> <\/table>;12","colOne":null,"colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-06T00:00:00"},{"colFive":null,"colFour":null,"colOne":null,"colSix":null,"colTree":null,"colTwo":"节目详情<\/caption>
01:00- 01:53<\/th><\/tr>
方世玉包<\/th><\/tr> <\/table>;28","date":"2009-10-06T00:00:00"},{"colFive":null,"colFour":null,"colOne":null,"colSix":null,"colTree":null,"colTwo":"节目详情<\/caption>
01:00- 01:53<\/th><\/tr>
霍元甲包<\/th><\/tr> <\/table>;26","date":"2009-10-06T00:00:00"},{"colFive":null,"colFour":null,"colOne":"节目详情<\/caption>
00:01- 00:54<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;29","colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-06T00:00:00"},
{"colFive":null,"colFour":null,"colOne":null,"colSix":null,"colTree":"
节目详情<\/caption>
02:00- 03:00<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;30","colTwo":null,"date":"2009-10-06T00:00:00"},
{"colFive":"节目详情<\/caption>
04:00- 05:00<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;31","colFour":null,"colOne":null,"colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-06T00:00:00"},{"colFive":null,"colFour":null,"colOne":null,"colSix":"节目详情<\/caption>
05:00- 06:00<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;32","colTree":null,"colTwo":null,"date":"2009-10-06T00:00:00"},{"colFive":null,"colFour":"节目详情<\/caption>
03:00- 04:00<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;33","colOne":null,"colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-06T00:00:00"},{"colFive":null,"colFour":null,"colOne":null,"colSix":null,"colTree":null,"colTwo":"节目详情<\/caption>
01:00- 01:53<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;4","date":"2009-10-15T00:00:00"},
{"colFive":null,"colFour":null,"colOne":"
节目详情<\/caption>
00:01- 00:54<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;5",
"colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-18T00:00:00"},
{"colFive":null,"colFour":"
节目详情<\/caption>
03:10- 04:00<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;15","colOne":null,"colSix":null,
"colTree":null,"colTwo":null,"date":"2009-10-08T00:00:00"},
{"colFive":null,"colFour":"
节目详情<\/caption>
03:10- 04:00<\/th><\/tr>
色戒包<\/th><\/tr> <\/table>;16",
"colOne":null,"colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-11T00:00:00"},
{"colFive":null,"colFour":"
节目详情<\/caption>

03:10- 04:00<\/th><\/tr>
色戒包<\/th><\/tr>
<\/table>;18","colOne":null,"colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-19T00:00:00"},
{"colFive":null,"colFour":"
节目详情<\/caption>
03:10- 04:00<\/th><\/tr>
霍元甲包<\/th><\/tr> <\/table>;22",
"colOne":null,"colSix":null,"colTree":null,"colTwo":null,"date":"2009-10-19T00:00:00"}
],"totalProperty":0}

我做出来的效果图是这样的:(temp_10.png)
公司要求单元格的编排值这样的(节目单111.jpg)
我先不知道怎样合并现在这个单元格让他们在[color=red]同一个时间段(比如00:00-05:00)在同一行[/color]出现

希望指教不胜感激!!!
[b]问题补充:[/b]
您能不能给个思路 您处理的思路 谢谢

  • 写回答

2条回答 默认 最新

  • 成尚謙 2009-10-19 13:22
    关注

    要么在前台遍历你的JSON数据,然后再输出。要么在后台输出JSON数据前先组织好。Ext的组件里面似乎没有现成的处理方法。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题