开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 2001|回复: 3
收起左侧

[已解决] 网页返回的json数据有分组信息,请问易语言的树形框要如何引用?

 关闭 [复制链接]
结帖率:60% (61/102)
发表于 2018-6-4 14:38:06 | 显示全部楼层 |阅读模式   江苏省苏州市
5精币
本帖最后由 d270624 于 2018-6-4 14:51 编辑

返回的分组有很多没有规律,想过用遍历的方法,但是不知道怎么才能记录分组信息,求思路
QQ截图20180604144146.png 这种结构的

  1. [{"children":[{"children":[],"description":"","id":"r_15","key":"YX","leaf":true,"name":"查看营xiao中心","parent":12,"text":"查看营xiao中心","treeId":15},{"children":[],"description":"","id":"r_13","key":"PORTALCPXLEADER","leaf":true,"name":"Portal产品线领导","parent":12,"text":"Portal产品线领导","treeId":13},{"children":[],"description":"","id":"r_16","key":"DEVPROLINE","leaf":true,"name":"查看研发中心和产品线","parent":12,"text":"查看研发中心和产品线","treeId":16},{"children":[],"description":"","id":"r_20","key":"GYLZX","leaf":true,"name":"查看供应链中心","parent":12,"text":"查看供应链中心","treeId":20},{"children":[],"description":"","id":"r_19","key":"YWBM","leaf":true,"name":"查看业务部门权限","parent":12,"text":"查看业务部门权限","treeId":19},{"children":[],"description":"","id":"r_18","key":"YFYJB","leaf":true,"name":"查看研发硬件部","parent":12,"text":"查看研发硬件部","treeId":18}],"description":"统一用户管理平台","id":"m_12","key":"UCENTER","leaf":false,"name":"统一用户管理平台","parent":0,"text":"统一用户管理平台","treeId":12},{"children":[{"children":[],"description":"","id":"r_5","key":"liyufeng","leaf":true,"name":"李总","parent":43,"text":"李总","treeId":5},{"children":[],"description":"","id":"r_4","key":"weizhibing","leaf":true,"name":"魏总","parent":43,"text":"魏总","treeId":4},{"children":[],"description":"","id":"r_1","key":"qianjianzhong","leaf":true,"name":"钱总","parent":43,"text":"钱总","treeId":1},{"children":[],"description":"","id":"r_17","key":"zhangyong","leaf":true,"name":"zhangyong","parent":43,"text":"zhangyong","treeId":17},{"children":[],"description":"","id":"r_2","key":"zhufengyong","leaf":true,"name":"朱总","parent":43,"text":"朱总","treeId":2},{"children":[],"description":"","id":"r_3","key":"qinzhiming","leaf":true,"name":"秦总","parent":43,"text":"秦总","treeId":3},{"children":[],"description":"","id":"r_12","key":"xuyun","leaf":true,"name":"徐总","parent":43,"text":"徐总","treeId":12},{"children":[],"description":"可以查看编辑所有代理商信息","id":"r_7","key":"Admin","leaf":true,"name":"渠道管理员","parent":43,"text":"渠道管理员","treeId":7},{"children":[],"description":"","id":"r_6","key":"zongjingli","leaf":true,"name":"总经理","parent":43,"text":"总经理","treeId":6},{"children":[],"description":"","id":"r_14","key":"hanrenguan","leaf":true,"name":"韩总","parent":43,"text":"韩总","treeId":14}],"description":"渠道管理系统渠道管理系统渠道管理系统正式","id":"m_43","key":"channel","leaf":false,"name":"渠道管理系统","parent":0,"text":"渠道管理系统","treeId":43},{"children":[],"description":"","id":"m_44","key":"EasyTrackPPM","leaf":true,"name":"EasyTrack项目管理系统","parent":0,"text":"EasyTrack项目管理系统","treeId":44},{"children":[],"description":"","id":"m_45","key":"fms","leaf":true,"name":"资料发布平台","parent":0,"text":"资料发布平台","treeId":45},{"children":[],"description":"","id":"m_46","key":"K_Channel_FMS","leaf":true,"name":"渠道资料发布平台","parent":0,"text":"渠道资料发布平台","treeId":46},{"children":[{"children":[],"description":"","id":"r_10","key":"agentucenterC","leaf":true,"name":"报备李彧峰","parent":47,"text":"报备李彧峰","treeId":10},{"children":[],"description":"","id":"r_32","key":"kunming","leaf":true,"name":"昆明分公司","parent":47,"text":"昆明分公司","treeId":32},{"children":[],"description":"","id":"r_44","key":"zhenzhou","leaf":true,"name":"郑州分公司","parent":47,"text":"郑州分公司","treeId":44},{"children":[],"description":"","id":"r_8","key":"agentucenterA","leaf":true,"name":"报备朱风涌","parent":47,"text":"报备朱风涌","treeId":8},{"children":[],"description":"","id":"r_40","key":"tianjin","leaf":true,"name":"天津分公司","parent":47,"text":"天津分公司","treeId":40},{"children":[],"description":"","id":"r_41","key":"wuhan","leaf":true,"name":"武汉分公司","parent":47,"text":"武汉分公司","treeId":41},{"children":[],"description":"","id":"r_28","key":"hangzhou","leaf":true,"name":"杭州分公司","parent":47,"text":"杭州分公司","treeId":28},{"children":[],"description":"","id":"r_29","key":"hefei","leaf":true,"name":"合肥分公司","parent":47,"text":"合肥分公司","treeId":29},{"children":[],"description":"","id":"r_33","key":"lanzhou","leaf":true,"name":"兰州分公司","parent":47,"text":"兰州分公司","treeId":33},{"children":[],"description":"","id":"r_35","key":"nanning","leaf":true,"name":"南宁分公司","parent":47,"text":"南宁分公司","treeId":35},{"children":[],"description":"管理部门中 选择要看的部门","id":"r_21","key":"zhouxiaoming","leaf":true,"name":"测试","parent":47,"text":"测试","treeId":21},{"children":[],"description":"","id":"r_30","key":"huhehaote","leaf":true,"name":"呼和浩特分公司","parent":47,"text":"呼和浩特分公司","treeId":30},{"children":[],"description":"","id":"r_38","key":"shijiazhuang","leaf":true,"name":"石家庄分公司","parent":47,"text":"石家庄分公司","treeId":38},{"children":[],"description":"","id":"r_45","key":"chongqing","leaf":true,"name":"重庆分公司","parent":47,"text":"重庆分公司","treeId":45},{"children":[],"description":"","id":"r_25","key":"guangzhou","leaf":true,"name":"广州分公司","parent":47,"text":"广州分公司","treeId":25},{"children":[],"description":"","id":"r_34","key":"nanchan","leaf":true,"name":"南昌分公司","parent":47,"text":"南昌分公司","treeId":34},{"children":[],"description":"","id":"r_23","key":"chengdu","leaf":true,"name":"成都分公司","parent":47,"text":"成都分公司","treeId":23},{"children":[],"description":"","id":"r_31","key":"jinan","leaf":true,"name":"济南分公司","parent":47,"text":"济南分公司","treeId":31},{"children":[],"description":"","id":"r_9","key":"agentucenterB","leaf":true,"name":"报备","parent":47,"text":"报备","treeId":9},{"children":[],"description":"","id":"r_26","key":"guiyang","leaf":true,"name":"贵阳分公司","parent":47,"text":"贵阳分公司","treeId":26},{"children":[],"description":"","id":"r_22","key":"beijing","leaf":true,"name":"北京分公司","parent":47,"text":"北京分公司","treeId":22},{"children":[],"description":"","id":"r_36","key":"shanghai","leaf":true,"name":"上海分公司","parent":47,"text":"上海分公司","treeId":36},{"children":[],"description":"","id":"r_24","key":"fuzhou","leaf":true,"name":"福州分公司","parent":47,"text":"福州分公司","treeId":24},{"children":[],"description":"","id":"r_42","key":"xian","leaf":true,"name":"西安分公司","parent":47,"text":"西安分公司","treeId":42},{"children":[],"description":"","id":"r_37","key":"shengyang","leaf":true,"name":"沈阳分公司","parent":47,"text":"沈阳分公司","treeId":37},{"children":[],"description":"","id":"r_39","key":"taiyuan","leaf":true,"name":"太原分公司","parent":47,"text":"太原分公司","treeId":39},{"children":[],"description":"","id":"r_11","key":"agentucenterD","leaf":true,"name":"报备钱建忠","parent":47,"text":"报备钱建忠","treeId":11},{"children":[],"description":"","id":"r_43","key":"changsha","leaf":true,"name":"长沙分公司","parent":47,"text":"长沙分公司","treeId":43},{"children":[],"description":"","id":"r_27","key":"haerbin","leaf":true,"name":"哈尔滨分公司","parent":47,"text":"哈尔滨分公司","treeId":27}],"description":"","id":"m_47","key":"agentucenter","leaf":false,"name":"渠道用户管理平台","parent":0,"text":"渠道用户管理平台","treeId":47},{"children":[],"description":"","id":"m_48","key":"FMS2.0","leaf":true,"name":"资料发布平台2.0","parent":0,"text":"资料发布平台2.0","treeId":48},{"children":[],"description":"日报管理系统","id":"m_49","key":"report","leaf":true,"name":"日报管理系统","parent":0,"text":"日报管理系统","treeId":49},{"children":[],"description":"","id":"m_50","key":"app_news","leaf":true,"name":"手机新闻管理后台","parent":0,"text":"手机新闻管理后台","treeId":50},{"children":[],"description":"","id":"m_51","key":"VersionServer","leaf":true,"name":"版本服务器","parent":0,"text":"版本服务器","treeId":51},{"children":[],"description":"微网站管理后台","id":"m_52","key":"exhibition","leaf":true,"name":"微网站管理后台","parent":0,"text":"微网站管理后台","treeId":52}]
复制代码



求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。
友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。

结帖率:100% (7/7)
发表于 2018-6-4 14:38:07 | 显示全部楼层   重庆市重庆市
1.e (683.43 KB, 下载次数: 59)

评分

参与人数 1荣誉 +3 收起 理由
笨潴 + 3 热心帮助他人,荣誉+3,希望继续努力(*^__^*) 嘻嘻!

查看全部评分

回复

使用道具 举报

结帖率:96% (85/89)

签到天数: 10 天

发表于 2018-6-4 14:42:52 | 显示全部楼层   安徽省合肥市
贴出来 空讲谁知道哪对哪
回复

使用道具 举报

结帖率:60% (61/102)
 楼主| 发表于 2018-6-4 14:52:18 | 显示全部楼层   江苏省苏州市
dice1412 发表于 2018-6-4 14:42
贴出来 空讲谁知道哪对哪

已贴上相关json数据
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表