jQuery MiniUI

标题: treegrid多级目录异常 [打印本页]

作者: ljq    时间: 2023-5-27 16:51:23     标题: treegrid多级目录异常

[attach]13793[/attach]
[attach]13794[/attach]
[attach]13795[/attach]

[attach]13796[/attach]





数据库字段设计是模仿范例的,parentField="d_taocode",idField="d_id",但是在实际页面上,增加二级目录没问题,增加三级目录的时候,三级目录不会属于二级目录,这是咋回事?请大佬们不吝赐教

作者: felt    时间: 2023-5-29 09:03:00

把前端加载的全部json数据发上来看看。
作者: ljq    时间: 2023-5-29 10:38:36

[
{"z_state":1,"z_del":1,"d_putThisWayman":null,"z_id":1301,"d_uploaddate":"2023-05-27T07:57:15","z_name":"五金图纸","d_isFolder":"yes","d_guid":"4cbe4e32-7f6a-4cc9-b488-b0bfd668298e","z_shuyu":1300,"d_modifyman":null,"d_id":3000663,"d_putThisWaydate":null,"d_url":"UpLoadFile\\Drawing\\鸿志监控报价_20235169951638.png","d_state":1,"d_uploadman":"a5d0387f-fcb2-4cc7-888d-581f2d310e89","d_title":"title1","d_tuhao":"tuhao1","d_order":3000663,"d_del":1,"d_ispublic":null,"d_taocode":-1,"d_modifydate":null,"d_publicID":null,"iconCls":null,"d_guige":"guige1","d_memo":"memo1","d_kind":1301},
{"z_state":null,"z_del":null,"d_putThisWayman":null,"z_id":null,"d_uploaddate":null,"z_name":null,"d_isFolder":"yes","d_guid":"32e13ef3-18c9-447b-8ea0-e7e8fd6db16f","z_shuyu":null,"d_modifyman":null,"d_id":3030684,"d_putThisWaydate":null,"d_url":null,"d_state":1,"d_uploadman":null,"d_title":"ceshi1","d_tuhao":null,"d_order":3000663,"d_del":1,"d_ispublic":null,"d_taocode":3000663,"d_modifydate":null,"d_publicID":null,"iconCls":"mini-tree-folder mini-tree-icon mini-icon","d_guige":null,"d_memo":"","d_kind":null},
{"z_state":null,"z_del":null,"d_putThisWayman":null,"z_id":null,"d_uploaddate":null,"z_name":null,"d_isFolder":"yes","d_guid":"ca01588e-6906-4e18-a440-fa2618e953ed","z_shuyu":null,"d_modifyman":null,"d_id":3030690,"d_putThisWaydate":null,"d_url":null,"d_state":1,"d_uploadman":null,"d_title":"ceshi2","d_tuhao":null,"d_order":3030684,"d_del":1,"d_ispublic":null,"d_taocode":3030684,"d_modifydate":null,"d_publicID":null,"iconCls":"mini-tree-folder mini-tree-icon mini-icon","d_guige":null,"d_memo":"","d_kind":null},
3
]

版主,你好;感谢回复!这是我返回的JSON数据,我后面多返回了一个数据总数3;不碍事的;我找到原因了,其实JSON数据没问题;问题在于,数据量的跨度,我做了实验,比如我就取这三条数据,最终显示的多级目录是正常的,但是我返回的3万条数据,其中根目录和二级目录在前,三级目录在最后,这样多级目录就异常;我不知道这是怎么回事,但我数据库新增了一个排序字段,绕过了这个问题。如果版主有兴趣优化的话,可以试试多增加点数据




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2