jQuery通讯录树形节点

所属分类:导航,输入-文件树,选择框

 68257  459  查看评论 (53)
分享到微信朋友圈
X
jQuery通讯录树形节点 ie兼容10

数据结构如下:

var obj = {
    "childList": [
        {
            "id": 2,
            "name": "行政部门",
            "parentId": 1,
            "parentIds": "0,1,",
            "childList": [
                {
                    "childList": [],
                    "id": 4,
                    "name": "校长室",
                    "parentId": 2,
                    "parentIds": "0,1,2,",
                    "userList": [
                    {
                    "id": 111,
                   "realName": "杨武1",
                   "userName": "admin",
                   "uuid": "uuidtest1"
               }
                    ]
                },
                {
                    "childList": [],
                    "id": 5,
                    "name": "德育处",
                    "parentId": 2,
                    "parentIds": "0,1,2,",
                    "userList": [
                    {
                    "id": 111,
                   "realName": "杨武(test)2",
                   "userName": "yang",
                   "uuid": "uuidtest2"
               },
               {
               "id": 222,
                   "realName": "杨武(test)3",
                   "userName": "yang",
                   "uuid": "uuidtest2"
               }
                    ]
                }
            ],
            "userList": [
                {
                "id": 333,
                    "realName": "杨武s",
                    "userName": "admin",
                    "uuid": "uuidtest1"
                },
                {
                "id": 444,
                    "realName": "杨武(test)s",
                    "userName": "yang",
                    "uuid": "uuidtest2"
                }
            ]
        },
   {
            "id": 3,
            "name": "学科组",
            "parentId": 1,
            "parentIds": "0,1,",
            "childList": [
                {
                    "id": 6,
                    "name": "文科组",
                    "parentId": 3,
                    "parentIds": "0,1,3,",
                    "childList": [
                    {
                   "id": 6,
                   "name": "语文组",
                   "parentId": 3,
                   "parentIds": "0,1,3,",
                   "childList": [
                   
                   ],
                   "userList": [
                   {
                   "id": 555,
                   "realName": "杨武语文",
                   "userName": "admin",
                   "uuid": "uuidtest1"
               }
                   ]
               },
               {
                   "id": 6,
                   "name": "英语组",
                   "parentId": 3,
                   "parentIds": "0,1,3,",
                   "childList": [],
                   "userList": [
                   {
                   "id": 444,
                   "realName": "杨武英语",
                   "userName": "admin",
                   "uuid": "uuidtest1"
               },
               {
               "id": 777,
                   "realName": "杨武(test)",
                   "userName": "yang",
                   "uuid": "uuidtest2"
               }
                   ]
               }
                    ],
                    "userList": [
                    {
                    "id": 888,
                   "realName": "杨武",
                   "userName": "admin",
                   "uuid": "uuidtest1"
               },
               {
               "id": 999,
                   "realName": "杨武(test)",
                   "userName": "yang",
                   "uuid": "uuidtest2"
               }
                    ]
                },
                {
                    "id": 6,
                    "name": "理科组",
                    "parentId": 3,
                    "parentIds": "0,1,3,",
                    "childList": [],
                    "userList": [
                    {
                    "id": 1010,
                   "realName": "杨武",
                   "userName": "admin",
                   "uuid": "uuidtest1"
               },
               {
               "id": 1111,
                   "realName": "杨武(test)",
                   "userName": "yang",
                   "uuid": "uuidtest2"
               }
                    ]
                }
       ],
            "userList": [
            {
            "id": 1212,
                    "realName": "杨武(test)",
                    "userName": "yang",
                    "uuid": "uuidtest2"
                }
            ]
        }
    ],
    "id": 1,
    "name": "天心岛小学部门",
    "parentId": 0,
    "parentIds": "0,",
    "userList": [
        {
        "id": 1313,
            "realName": "杨武",
            "userName": "admin",
            "uuid": "uuidtest1"
        }
    ]
}

1. 只需要根据树形结构数据就可以自动生成

相关插件-文件树,选择框

jQuery文件树插件SimpleTree.js

jQuery文件树插件SimpleTree.js,代码少使用方便。
  文件树
 54274  333

vue树形插件

vue的树形插件,支持增加节点,修改节点,删除节点 . 简单实用。
  文件树
 53206  337

带有复选框可折叠的树形结构

该插件是我改良的layer的树形插件,在原始的layer插件中的树形结构是没有复选框的,经我修改后可用以拿来做权限系统的权限选择
  文件树
 103535  524

jquery mobile 树插件

jquery mobile 树形插件
  文件树
 60451  359

讨论这个项目(53)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

    岁月如歌 ?? 0
    2022/7/26 16:51:03
    展开不要全选啊,全选事件不是应该加载单选按钮上吗
        Onecat0
        2023/2/2 15:43:06
        我也觉得
    回复
    爱不变 0
    2020/4/8 17:32:31
    有能发送一份的兄弟吗?303198110@qq.com,谢谢了 回复
    yuzhibo 0
    2019/6/10 12:51:16
    除了样子好看以外,没什么优点。
    基本无法和其他框架兼任,系统存在较多BUG。 回复
    狂飙的蜗牛 0
    2018/11/11 15:32:49
    然后就没有了然后 0
    2018/10/18 9:58:18
    有能发送一份的兄弟吗?997485027@qq.com,最近项目要用,谢谢了 回复
    . 0
    2018/9/19 17:48:01
    这个好用吗 看着挺不错的
        cheney0
        2018/9/20 15:39:56
        积分不够啊
        小陈啊0
        2018/11/30 22:00:40
        我的积分也不够好想要。。。
    回复
    下页--孤云 0
    2018/8/16 15:11:48
    有能发送一份的兄弟吗?1129088609@qq.com,谢谢了
        下页--孤云0
        2018/8/16 15:13:05
        有能发送一份的兄弟吗?1129088609@qq.com,谢谢了
    回复
    laughing 0
    2018/8/15 17:45:05
    能给我发一份吗
    1302947749@qq.com
    回复
    胡世林 0
    2018/8/13 15:17:30
    有能发送一份的兄弟吗?1738731967@qq.com,谢谢了 回复
    暧昧只是爱情的前奏 0
    2018/6/20 14:32:53
    再加上拖拽怎么做呢!可以请教你吗?
        忘了说再见┿0
        2018/8/24 13:39:46
        可以发一份给我么? 1125294530@qq.com
    回复
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复