easyUI 函数加载目录树

3 篇文章 0 订阅
function InitTree1() {

    $("#tt").tree({
        data: [{
            id: "0",
            text: "地图文档",
            children: [{
                id: "01",
                text: "基础地理",
                children: [{
                    id: "011",
                    text: "地形",
                    children: [{
                        id: "0111",
                        text: "坡度"
                    },
                        {
                            id: "0112",
                            text: "坡向"
                        },
                        {
                            id: "0113",
                            text: "起伏度"
                        },
                    ]
                },
                    {
                        id: "012",
                        text: "地貌"
                    },
                    {
                        id: "013",
                        text: "地质",
                        children: [{
                            id: "0131",
                            text: "岩性"
                        },
                            {
                                id: "0132",
                                text: "工程岩组"
                            },
                            {
                                id: "0133",
                                text: "断裂带"
                            },
                        ]
                    },
                    {
                        id: "014",
                        text: "界限",
                        children: [{
                            id: "0141",
                            text: "行政区界"
                        }, ]
                    }
                ]
            },
                {
                    id: "02",
                    text: "水文",
                    children: [{
                        id: "021",
                        text: "水系",
                        children: [{
                            id: "0211",
                            text: "一级水系"
                        },
                            {
                                id: "0212",
                                text: "二级水系"
                            },
                            {
                                id: "0213",
                                text: "三级水系"
                            },
                        ]
                    },
                        {
                            id: "022",
                            text: "湖泊"
                        },
                    ]
                },
                {
                    id: "03",
                    text: "道路交通",
                    children: [{
                        id: "031",
                        text: "国道"
                    },
                        {
                            id: "032",
                            text: "省道"
                        },
                        {
                            id: "033",
                            text: "县级公路"
                        },
                    ]
                },
                {
                    id: "04",
                    text: "xxxxxx",
                    children: [{
                        id: "041",
                        text: "xxx"
                    },
                        {
                            id: "042",
                            text: "xxxx"
                        },
                        {
                            id: "043",
                            text: "xx"
                        },
                    ]
                }
            ]
        }],
        dnd: true, //可拖放
        lines: true, //显示树线条
        checkbox: true, //显示复选框
        animate: true //展开动画效果
    });
}

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值