jQuery MiniUI

 找回密码
 立即注册
查看: 1097|回复: 2

treegrid多级目录异常 [复制链接]

Rank: 2

发表于 2023-5-27 16:51:23 |显示全部楼层










数据库字段设计是模仿范例的,parentField="d_taocode",idField="d_id",但是在实际页面上,增加二级目录没问题,增加三级目录的时候,三级目录不会属于二级目录,这是咋回事?请大佬们不吝赐教
附件: 你需要登录才可以下载或查看附件。没有帐号?立即注册

Rank: 8Rank: 8

发表于 2023-5-29 09:03:00 |显示全部楼层
把前端加载的全部json数据发上来看看。

Rank: 2

发表于 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万条数据,其中根目录和二级目录在前,三级目录在最后,这样多级目录就异常;我不知道这是怎么回事,但我数据库新增了一个排序字段,绕过了这个问题。如果版主有兴趣优化的话,可以试试多增加点数据

Archiver|普加软件

GMT+8, 2024-6-13 01:56 , Processed in 1.067549 second(s), 11 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部