- 注册时间
- 2013-11-1
- 最后登录
- 2017-11-10
- 阅读权限
- 10
- 积分
- 188
- 精华
- 0
- 帖子
- 32
|
felt 发表于 2014-7-17 15:49
把你treegrid的代码和数据都贴出来
TREEGRID定义:
<div id="qxtree" class="mini-treegrid" style="width:100%;height:100%;"
treeColumn="MODELNAME" idField="MODELKEY" parentField="PMODELKEY" resultAsTree="true"
allowResize="true" expandOnLoad="true" showTreeIcon="true"
allowSelect="false" allowCellSelect="false" enableHotTrack="false"
ondrawcell="ondrawcell" autoLoad="false"
>
<div property="columns">
<div type="indexcolumn"></div>
<div name="MODELNAME" field="MODELNAME" width="170" >模块名称</div>
<div field="JSQX" width="100%">权限</div>
</div>
</div>
CUR_JSQX的值是:(贴不全)
[ { "MODELKEY": "01", "MODELNAME": "计划管理" }, { "MODELKEY": "0101", "MODELNAME": "材料计划", "PMODELKEY": "01", "JSQX": [ { "name": "增加", "checked": false }, { "name": "修改", "checked": false }, { "name": "删除", "checked": false } ] },
...............
{ "MODELKEY": "1303", "MODELNAME": "系统更新", "PMODELKEY": "13", "JSQX": [ { "name": "系统更新", "checked": false } ] } ]
|
|