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 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置