EasyUI之treegrid学习

json记得传parentId和Children.

例如:

{"total":4,"rows":[{"typeName":"招牌类型","id":1,"parentId":0,"createTime":"2014-07-05 16:39:22","operUser":"admin","remark":"关联产品基础信息表productType字段所对应的集合","updateTime":"2014-07-06 22:48:22","state":"closed","children":[{"typeName":"招牌类型1","id":10,"createTime":"2014-07-06 22:47:22","parentId":1,"operUser":"admin","remark":"铝塑板","updateTime":"2014-07-06 22:48:36","state":"open","typeText":"铝塑板","typeCode":"productType","isValid":1},{"typeName":"招牌类型2","id":11,"createTime":"2014-07-06 22:48:02","parentId":1,"operUser":"admin","remark":null,"updateTime":null,"state":"open","typeText":"灯布灯箱","typeCode":"productType","isValid":1},{"typeName":"招牌类型3","id":12,"createTime":"2014-07-06 22:49:13","parentId":1,"operUser":"admin","remark":"说点什么吧...","updateTime":null,"state":"open","typeText":"亚克力灯箱","typeCode":"productType","isValid":1},{"typeName":"招牌类型4","id":13,"createTime":"2014-07-06 22:50:30","parentId":1,"operUser":"admin","remark":"说点什么吧...","updateTime":null,"state":"open","typeText":"玻璃","typeCode":"productType","isValid":1}],"typeCode":"productType","isValid":1},{"typeName":"产品颜色","id":2,"parentId":0,"createTime":"2014-07-05 16:48:41","operUser":"admin","remark":"关联产品基础信息表productColor字段所对应的集合","updateTime":"2014-07-06 20:39:13","state":"closed","children":[{"typeName":"产品颜色1","id":14,"createTime":"2014-07-06 22:51:13","parentId":2,"operUser":"admin","remark":"红","updateTime":null,"state":"open","typeText":"红","typeCode":"productColor","isValid":1},{"typeName":"产品颜色2","id":15,"createTime":"2014-07-06 22:55:56","parentId":2,"operUser":"admin","remark":"白色","updateTime":null,"state":"open","typeText":"白","typeCode":"productColor","isValid":1},{"typeName":"产品颜色3","id":16,"createTime":"2014-07-06 22:56:21","parentId":2,"operUser":"admin","remark":"蓝色","updateTime":null,"state":"open","typeText":"蓝","typeCode":"productColor","isValid":1},{"typeName":"产品颜色4","id":17,"createTime":"2014-07-06 22:56:39","parentId":2,"operUser":"admin","remark":"绿色","updateTime":null,"state":"open","typeText":"绿","typeCode":"productColor","isValid":1},{"typeName":"产品颜色5","id":18,"createTime":"2014-07-06 22:57:05","parentId":2,"operUser":"admin","remark":"黄色","updateTime":null,"state":"open","typeText":"黄","typeCode":"productColor","isValid":1},{"typeName":"产品颜色6","id":19,"createTime":"2014-07-06 22:57:23","parentId":2,"operUser":"admin","remark":"双色","updateTime":null,"state":"open","typeText":"双色","typeCode":"productColor","isValid":1},{"typeName":"产品颜色7","id":20,"createTime":"2014-07-06 22:57:42","parentId":2,"operUser":"admin","remark":"彩色","updateTime":null,"state":"open","typeText":"彩色","typeCode":"productColor","isValid":1}],"typeCode":"productColor","isValid":1},{"typeName":"像素","id":3,"parentId":0,"createTime":"2014-07-05 16:51:49","operUser":"admin","remark":"关联产品基础信息表productPixel 字段所对应的集合","updateTime":"2014-07-06 20:44:13","state":"closed","children":[{"typeName":"像素1","id":4,"createTime":"2014-07-05 16:55:19","parentId":3,"operUser":"admin","remark":"像素大小","updateTime":"2014-07-06 22:37:26","state":"open","typeText":"32*16","typeCode":"pixel","isValid":1},{"typeName":"像素2","id":7,"createTime":"2014-07-06 22:44:28","parentId":3,"operUser":"admin","remark":"说点什么吧...","updateTime":"2014-07-06 22:45:48","state":"open","typeText":"64*32","typeCode":"pixel","isValid":1},{"typeName":"像素3","id":8,"createTime":"2014-07-06 22:45:15","parentId":3,"operUser":"admin","remark":"说点什么吧...","updateTime":"2014-07-06 22:45:37","state":"open","typeText":"128*512","typeCode":"pixel","isValid":1}],"typeCode":"pixel","isValid":1},{"typeName":"换灯布","id":6,"parentId":0,"createTime":"2014-07-05 17:02:48","operUser":"admin","remark":"关联产品基础信息表changeLightCloth字段所对应的集合","updateTime":"2014-07-06 20:40:05","state":"open","children":[],"typeCode":"changeLightCloth","isValid":1}]}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

macrobn

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值