• 组织结构图


    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>


  • 相关阅读:
    UML 入门课程
    在Visio中建立数据库模型的步骤
    phpMyAdmin
    采用软件负载均衡器实现web服务器集群
    Javascript 调用后台方法
    log4net 使用相关要点汇总
    静栈/动堆
    国外web 2.0网站模板
    yum应用学习笔记
    分页 : 存储分页 :row_number
  • 原文地址:https://www.cnblogs.com/onceweb/p/14764772.html
Copyright © 2020-2023  润新知