webtree

功能描述

移动端Tree树型权限选择器

快速使用

   // api.ajax对应的案例数据:
    [{
        "id": "1",
        "text": "我的公司",
        "spread": true,
        "checked": false,
        "childs": [{
            "id": "11",
            "text": "公司管理",
            "rules": "D"
        },
        {
            "id": "12",
            "text": "部门管理",
            "rules": "CUD"
        }]
    },
    {
        "id": "2",
        "text": "租赁业务",
        "spread": true,
        "checked": false,
        "childs": [{
            "id": "21",
            "text": "仓库管理",
            "rules": "CD"
        },
        {
            "id": "22",
            "text": "库存管理",
            "rules": "CU"
        }]
    },
    {
        "id": "3",
        "text": "物流业务",
        "spread": true,
        "checked": false,
        "childs": []
    },
    {
        "id": "4",
        "text": "婚庆服务",
        "spread": true,
        "checked": false,
        "childs": []
    },
    {
        "id": "5",
        "text": "中介服务",
        "spread": true,
        "checked": false,
        "childs": []
    }];

特别说明

插件封装在了groupRule.js,后续也可根据自己的需要进行扩展。
此插件可通过api.ajax接收json数据实现动态加载移动端权限树的功能。
是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24