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 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛