公司现在在做一个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] 您能不能给个思路 您处理的思路 谢谢 |
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
|
---|
要么在前台遍历你的JSON数据,然后再输出。要么在后台输出JSON数据前先组织好。Ext的组件里面似乎没有现成的处理方法。
你不能通过服务器端用算法来合并,再出JSON?
这让EXT来做,我觉得不太合适.