zoukankan      html  css  js  c++  java
  • 组织结构图

    https://spiritree.github.io/vue-orgchart/#/quickstart
    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>ERP树形组织图</title> <link rel="stylesheet" href="https://cdn.suoluomei.com/common/js2.0/npm/vue-orgchart/dist/style.min.css"> <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css"> </head> <style> #chart-container { overflow: inherit !important; } .orgchart .node .title { font-size: 20px; padding: 20px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 5px; line-height: 0; flex-direction: row-reverse; background: lightseagreen; } .orgchart .node .title .symbol { float: none; margin-top: 0; margin-right: 10px; } .orgchart .node { width: auto; } .oc-export-btn { bottom: 88%; } </style> <body> <div id="vue"> <vo-basic :data="chartData" :pan="true" :zoom="true" :export-button="true" export-button-name="导出" :draggable="true" :toggle-siblings-resp="true" parent-node-symbol="fa-users"></vo-basic> </div> </body> <script src="http://cdn.suoluomei.com/common/js2.0/vue/v2.5.16/vue.js"></script> <script src="https://cdn.suoluomei.com/common/js2.0/npm/vue-orgchart/dist/vue-orgchart.min.js"></script> <script src="https://cdn.suoluomei.com/common/js2.0/html2canvas/1.0/html2canvas.min.js"></script> <script type="text/javascript"> new Vue({ el: '#vue', data: { }, created() { this.chartData = { name: '组织架构图', children: [ { name: '超能者', children: [ { name: '总监', children: [ { name: '主管', children: [ { name: '前端客服' }, { name: '推广员' } ] }, ] }, ] }, { name: '董事长', children: [ { name: '总经办', children: [ { name: '外部访问组' } ] }, ] }, ] } } }) </script> </html>


  • 相关阅读:
    Linux date自己实现代码
    Linux常用指令
    awk getline命令
    文档资料记录
    数学之美番外篇:平凡而又神奇的贝叶斯方法
    最小二乘法(ZZ)
    SpringMVC简单使用教程
    Oracle设置序列方法
    Bootstrap Table的使用详解
    Html中div块居中显示
  • 原文地址:https://www.cnblogs.com/onceweb/p/14764772.html
Copyright © 2011-2022 走看看