HOkrTree实现一个公司组织架构图效果代码

代码语言:html

所属分类:图表

代码描述:HOkrTree实现一个公司组织架构图效果代码

代码标签: HOkrTree 公司 组织 架构图

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.1.11.min.js"></script>
</head>

<body>
    <div class="item-template" style="background:#fff;border-radius:50px;width:140px;border:solid 1px #ddd;overflow: hidden;box-shadow: 0px 0px 10px #eee;box-sizing:border-box;display:none;">
        <img style="height:40px;width:40px;border-radius:50%;vertical-align:middle;" src="//repo.bfw.wiki/bfwrepo/image/6078f69f7e176.png" /><span style="display:inline-block;vertical-align:middle;font-size:12px;margin-left:10px;">这是一个模板</span>
    </div>
    <div class="container">

    </div>
    <!-- <script type="text/javascript" src="./index.js"></script> -->

<script>
    var data = [{
        name: 'CEO',
        children: [{
            name: "销售部",
            children: [{
                name: "1-1"
            }]
        }, {
            name: "副总裁",
            type: "tag"
        }, {
            name: "技术部",
            children: [{
                    name: '2-3',
                    type: "tag"
                },

                {
                    name: "2-1"
                }, {
                    name: "2-2",
                    children: [{
                        name: "2-2-1"
                    }, {
                        name: "3-1-1"
                    }, {
                        name: "3-1-2"
                    }, {
                        name: "3-1-1"
                    }, {
                        name: "3-1-2"
                    }, {
                        name: "3-1-1"
                    }, {
                        name: "3-1-2"
                    }]
       .........完整代码请登录后点击上方下载按钮下载查看

网友评论0