日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

您的位置:首頁技術文章
文章詳情頁

vue 動態生成拓撲圖的示例

瀏覽:141日期:2022-10-13 11:21:20
橫向拓撲

在 index.html 文件中引入文件。

<link rel='external nofollow' rel='stylesheet'> <link rel='external nofollow' rel='stylesheet'> <script src='https://magicbox.bk.tencent.com/static_api/v3/assets/js/jquery-1.10.2.min.js'></script> <script src='https://magicbox.bk.tencent.com/static_api/v3/assets/bootstrap-3.3.4/js/bootstrap.min.js'></script> <script src='https://magicbox.bk.tencent.com/static_api/v3/assets/bkTopology-1.2/js/bkTopology.js'></script>

在需要繪制拓撲圖的組件進行編程。

<template> <div> <span>S型拓撲圖</span> <div class='bktopo-container'> <div id='bktopo_demo2'> <div data-container='body' data-placement='top' data-html='true' data-trigger='hover'> <div class='node-container'><span class='node-text'></span></div> </div> <div style='height:350px;'></div> </div> </div> </div></template><script> export default { data() { return { data: { 'nodes': [ { 'id': 'root', 'x': 10, 'y': 152, 'height': 50, 'width': 120, 'text': '卡機健康度', 'className': 'info' }, { 'id': 'child1', 'x': 200, 'y': 30, 'height': 50, 'width': 120, 'text': '進程CPU監控', 'className': 'info' }, { 'id': 'child2', 'x': 200, 'y': 90, 'height': 50, 'width': 120, 'text': '網管網絡故障監控', 'className': 'info' }, { 'id': 'child3', 'x': 200, 'y': 150, 'height': 50, 'width': 120, 'text': '進程內在泄露監控', 'className': 'info' }, { 'id': 'child4', 'x': 200, 'y': 210, 'height': 50, 'width': 120, 'text': '進程存活監控', 'className': 'info' }, { 'id': 'child5', 'x': 200, 'y': 270, 'height': 50, 'width': 120, 'text': '用戶內在使用監控', 'className': 'info' }, { 'id': 'child1_1', 'x': 380, 'y': 30, 'height': 50, 'width': 120, 'text': '監控正常無觸發自愈', 'className': 'success' }, { 'id': 'child2_1', 'x': 380, 'y': 90, 'height': 50, 'width': 120, 'text': '監控正常無觸發自愈', 'className': 'success' }, { 'id': 'child3_1', 'x': 380, 'y': 150, 'height': 50, 'width': 120, 'text': '發現異常觸發自愈', 'className': 'danger' }, { 'id': 'child3_2', 'x': 560, 'y': 150, 'height': 50, 'width': 120, 'text': '重啟進程正常', 'className': 'success' }, { 'id': 'child4_1', 'x': 380, 'y': 210, 'height': 50, 'width': 120, 'text': '發現異常觸發自愈', 'className': 'danger' }, { 'id': 'child4_2', 'x': 560, 'y': 210, 'height': 50, 'width': 120, 'text': '重啟進程正常', 'className': 'success' }, { 'id': 'child5_1', 'x': 380, 'y': 270, 'height': 50, 'width': 120, 'text': '發現異常觸發自愈', 'className': 'success' }, ], 'edges': [ { 'source': 'root', 'sDirection': ’right’, 'target': 'child1', 'tDirection': ’left’, 'edgesType': 'info' }, { 'source': 'root', 'sDirection': ’right’, 'target': 'child2', 'tDirection': ’left’, 'edgesType': 'info' }, { 'source': 'root', 'sDirection': ’right’, 'target': 'child3', 'tDirection': ’left’, 'edgesType': 'info' }, { 'source': 'root', 'sDirection': ’right’, 'target': 'child4', 'tDirection': ’left’, 'edgesType': 'info' }, { 'source': 'root', 'sDirection': ’right’, 'target': 'child5', 'tDirection': ’left’, 'edgesType': 'info' }, { 'source': 'child1', 'sDirection': ’right’, 'target': 'child1_1', 'tDirection': ’left’, 'edgesType': 'success' }, { 'source': 'child2', 'sDirection': ’right’, 'target': 'child2_1', 'tDirection': ’left’, 'edgesType': 'success' }, { 'source': 'child3', 'sDirection': ’right’, 'target': 'child3_1', 'tDirection': ’left’, 'edgesType': 'danger' }, { 'source': 'child3_1', 'sDirection': ’right’, 'target': 'child3_2', 'tDirection': ’left’, 'edgesType': 'success' }, { 'source': 'child4', 'sDirection': ’right’, 'target': 'child4_1', 'tDirection': ’left’, 'edgesType': 'danger' }, { 'source': 'child4_1', 'sDirection': ’right’, 'target': 'child4_2', 'tDirection': ’left’, 'edgesType': 'success' }, { 'source': 'child5', 'sDirection': ’right’, 'target': 'child5_1', 'tDirection': ’left’, 'edgesType': 'success' } ] } } }, mounted() { this.init() }, methods: { init() { $(’#bktopo_demo2 .bktopo_box’).bkTopology({ data: this.data, //配置數據源 lineType: [ //配置線條的類型 { type: ’success’, lineColor: ’#46C37B’ }, { type: ’info’, lineColor: ’#4A9BFF’ }, { type: ’warning’, lineColor: ’#f0a63a’ }, { type: ’danger’, lineColor: ’#c94d3c’ }, { type: ’default’, lineColor: ’#aaa’ } ] }); } }, }</script><style scoped></style>S型拓撲

和上面橫向一樣,需要在 index.html 文件中引用 js 文件。

<template> <div> <span>橫向拓撲圖</span> <div class='bktopo-container'> <div id='bktopo_demo2'> <div data-container='body' data-placement='top' data-html='true' data-trigger='hover'> <div class='node-container'><span class='node-text'></span></div> </div> <div style='height:350px;'></div> </div> </div> </div></template><script> export default { data() { return { data: { 'nodes': [ { 'id': 'demo3_node1', 'x': 100, 'y': 50, 'height': 50, 'width': 100, 'text': '發起', 'className': 'node success' }, { 'id': 'demo3_node2', 'x': 250, 'y': 50, 'height': 50, 'width': 100, 'text': '過程1', 'className': 'node success' }, { 'id': 'demo3_node3', 'x': 400, 'y': 50, 'height': 50, 'width': 100, 'text': '過程2', 'className': 'node danger' }, { 'id': 'demo3_node4', 'x': 550, 'y': 50, 'height': 50, 'width': 100, 'text': '過程3', 'className': 'node success' }, { 'id': 'demo3_node5', 'x': 550, 'y': 150, 'height': 50, 'width': 100, 'text': '過程4', 'className': 'node success' }, { 'id': 'demo3_node6', 'x': 400, 'y': 150, 'height': 50, 'width': 100, 'text': '過程5', 'className': 'node warning' }, { 'id': 'demo3_node7', 'x': 250, 'y': 150, 'height': 50, 'width': 100, 'text': '過程6', 'className': 'node success' }, { 'id': 'demo3_node8', 'x': 100, 'y': 150, 'height': 50, 'width': 100, 'text': '過程7', 'className': 'node success' }, ], 'edges': [ { 'source': 'demo3_node1', 'sDirection': ’right’, 'target': 'demo3_node2', 'tDirection': ’left’, 'edgesType': 'success' }, { 'source': 'demo3_node2', 'sDirection': ’right’, 'target': 'demo3_node3', 'tDirection': ’left’, 'edgesType': 'danger' }, { 'source': 'demo3_node3', 'sDirection': ’right’, 'target': 'demo3_node4', 'tDirection': ’left’, 'edgesType': 'success' }, { 'source': 'demo3_node4', 'sDirection': ’right’, 'target': 'demo3_node5', 'tDirection': ’right’, 'edgesType': 'success' }, { 'source': 'demo3_node5', 'sDirection': ’right’, 'target': 'demo3_node6', 'tDirection': ’right’, 'edgesType': 'warning' }, { 'source': 'demo3_node6', 'sDirection': ’right’, 'target': 'demo3_node7', 'tDirection': ’right’, 'edgesType': 'success' }, { 'source': 'demo3_node7', 'sDirection': ’right’, 'target': 'demo3_node8', 'tDirection': ’right’, 'edgesType': 'success' }, ] } } }, mounted() { this.init() }, methods: { init() { $(’#bktopo_demo2 .bktopo_box’).bkTopology({ data: this.data, //配置數據源 lineType: [ //配置線條的類型 { type: ’success’, lineColor: ’#46C37B’ }, { type: ’info’, lineColor: ’#4A9BFF’ }, { type: ’warning’, lineColor: ’#f0a63a’ }, { type: ’danger’, lineColor: ’#c94d3c’ }, { type: ’default’, lineColor: ’#aaa’ } ] }); } }, }</script><style scoped></style>縱向拓撲

和上面橫向一樣,需要在 index.html 文件中引用 js 文件。

<template> <div> <span>縱向拓撲圖</span> <div class='bktopo-container'> <div id='bktopo_demo2'> <div data-container='body' data-placement='top' data-html='true' data-trigger='hover'> <div class='node-container'><span class='node-text'></span></div> </div> <div style='height:350px;'></div> </div> </div> </div></template><script> export default { data() { return { data: { 'nodes': [ { 'id': 'node1', 'x': 361, 'y': 20, 'height': 50, 'width': 180, 'text': '瀏覽器發起’www.qq.com’請求', 'className': 'node success' }, { 'id': 'node2', 'x': 391, 'y': 100, 'height': 50, 'width': 120, 'text': '本地hosts文件解析', 'className': 'node success' }, { 'id': 'node3', 'x': 301, 'y': 200, 'height': 50, 'width': 100, 'text': '客戶接入聯通網', 'className': 'node' }, { 'id': 'node4', 'x': 400, 'y': 200, 'height': 50, 'width': 100, 'text': '客戶接入移動網', 'className': 'node' }, { 'id': 'node5', 'x': 499, 'y': 200, 'height': 50, 'width': 100, 'text': '客戶接入電信網', 'className': 'node success', 'title': '如果hosts匹配成功則不經過DNS服務器解析。直接使用IP訪問' }, { 'id': 'node6', 'x': 233, 'y': 300, 'height': 50, 'width': 140, 'text': '聯通DNS服務器', 'className': 'node' }, { 'id': 'node7', 'x': 372, 'y': 300, 'height': 50, 'width': 140, 'text': '移動DNS服務器', 'className': 'node' }, { 'id': 'node8', 'x': 511, 'y': 300, 'height': 50, 'width': 140, 'text': '電信DNS服務器', 'className': 'node success' }, { 'id': 'node9', 'x': 233, 'y': 400, 'height': 50, 'width': 370, 'text': '核心骨干交換網集群', 'className': 'node success' }, { 'id': 'node19', 'x': 343, 'y': 500, 'height': 50, 'width': 150, 'text': 'WEb服務器', 'className': 'node success' }, ], 'edges': [ { 'source': 'node1', 'sDirection': ’bottom’, 'target': 'node2', 'tDirection': ’top’, 'edgesType': 'success' }, { 'source': 'node2', 'sDirection': ’bottom’, 'target': 'node5', 'tDirection': ’top’, 'edgesType': 'success' }, { 'source': 'node3', 'sDirection': ’bottom’, 'target': 'node6', 'tDirection': ’top’, 'edgesType': 'danger' }, { 'source': 'node6', 'sDirection': ’bottom’, 'target': 'node9', 'tDirection': ’left’, 'edgesType': 'danger' }, { 'source': 'node4', 'sDirection': ’bottom’, 'target': 'node7', 'tDirection': ’top’, 'edgesType': 'danger' }, { 'source': 'node5', 'sDirection': ’bottom’, 'target': 'node8', 'tDirection': ’top’, 'edgesType': 'success' }, { 'source': 'node7', 'sDirection': ’bottom’, 'target': 'node9', 'tDirection': ’top’, 'edgesType': 'danger' }, { 'source': 'node8', 'sDirection': ’bottom’, 'target': 'node9', 'tDirection': ’right’, 'edgesType': 'danger' }, { 'source': 'node9', 'sDirection': ’bottom’, 'target': 'node19', 'tDirection': ’top’, 'edgesType': 'success' } ] } } }, mounted() { this.init() }, methods: { init() { $(’#bktopo_demo2 .bktopo_box’).bkTopology({ data: this.data, //配置數據源 lineType: [ //配置線條的類型 { type: ’success’, lineColor: ’#46C37B’ }, { type: ’info’, lineColor: ’#4A9BFF’ }, { type: ’warning’, lineColor: ’#f0a63a’ }, { type: ’danger’, lineColor: ’#c94d3c’ }, { type: ’default’, lineColor: ’#aaa’ } ] }); } }, }</script><style scoped></style>

vue 動態生成拓撲圖的示例

以上就是vue 動態生成拓撲圖的示例的詳細內容,更多關于vue 生成拓撲圖的資料請關注好吧啦網其它相關文章!

標簽: Vue
相關文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
国产日韩精品视频一区二区三区| 中文字幕人成乱码在线观看 | 日日夜夜免费精品视频| 蜜臀av免费一区二区三区| 久久三级福利| 欧美一区二区三区高清视频| 999久久久免费精品国产| 中文亚洲欧美| 日本视频一区二区| 国产精品第十页| 亚洲涩涩在线| 久久男女视频| 久久成人精品| 麻豆精品在线| 亚洲性色视频| 奇米777国产一区国产二区| 欧美黄页在线免费观看 | 男人天堂欧美日韩| 国产日产精品_国产精品毛片| 精品精品99| 悠悠资源网久久精品| 欧美久久一区二区三区| 日本蜜桃在线观看视频| 日韩在线播放一区二区| 欧美一级全黄| 桃色一区二区| 国产欧美日韩免费观看| 久久蜜桃av| 国产人成精品一区二区三| 日本午夜大片a在线观看| 蜜桃视频一区二区三区在线观看| 国产精品1区在线| 中文亚洲免费| 国产 日韩 欧美一区| 欧美一区免费| 在线亚洲观看| 亚洲精品一区三区三区在线观看| 亚洲精选成人| 精品一区在线| 久久a爱视频| 亚洲狼人精品一区二区三区| 久久婷婷av| 精品国产欧美日韩| 国产欧美精品久久| 免费观看日韩电影| 亚洲欧洲午夜| 欧美成人午夜| 久久久成人网| 久久亚洲精品中文字幕蜜潮电影| 麻豆视频久久| 国产精品视频首页| 国产欧美亚洲一区| 久久精品99国产精品日本| 免费一区二区视频| 欧美福利一区| 国产99久久| 好吊日精品视频| 亚洲电影在线一区二区三区| 999国产精品永久免费视频app| 国产v日韩v欧美v| 久久久蜜桃一区二区人| 久久天堂成人| 国产高清久久| 性色av一区二区怡红| 国产精品社区| 日韩午夜视频在线| 欧美中文一区| 麻豆精品少妇| 99视频精品全国免费| 久久婷婷av| 好吊视频一区二区三区四区| 老牛国产精品一区的观看方式| 一区二区三区国产在线| 日韩不卡一二三区| 精品伊人久久| 999精品在线| 综合一区av| 91亚洲自偷观看高清| 99xxxx成人网| 国产精品伦一区二区| 色婷婷色综合| 最新国产拍偷乱拍精品| 日韩一区二区三免费高清在线观看 | 樱桃成人精品视频在线播放| 一区在线视频观看| 欧美精品影院| 欧美日韩色图| 国产日韩欧美三级| 深夜视频一区二区| 日本一区二区三区中文字幕| 欧美a级一区二区| 91精品韩国| 91免费精品国偷自产在线在线| 五月天av在线| 欧美一区激情| 免费人成精品欧美精品| 精品美女视频 | 在线亚洲精品| 国产精品主播| 91精品国产91久久久久久黑人| 中文字幕一区二区av| 日韩久久精品网| 青青草国产精品亚洲专区无| 欧美久久精品一级c片| 国产亚洲欧美日韩精品一区二区三区| 欧美日韩一二三四| 国产中文字幕一区二区三区| 亚洲天堂免费| 午夜视频精品| 日本精品不卡| 精品午夜视频| 国产欧美综合一区二区三区| 男女激情视频一区| 欧美日韩精品一本二本三本| 国产精品免费99久久久| 日韩欧美在线精品| 久久都是精品| 性欧美精品高清| 伊人成人网在线看| 欧美亚洲国产一区| 99久精品视频在线观看视频| 九九色在线视频| 日韩伦理一区| 久久亚洲成人| 欧美日韩国产传媒| 99日韩精品| 一区二区三区网站| 日韩精彩视频在线观看| 亚洲精品麻豆| 免费欧美日韩| 亚洲精品美女91| 日韩一区二区三区精品| 日本免费新一区视频| 国产欧美日韩精品高清二区综合区| 日韩精品久久理论片| 日韩不卡一区二区| 国产精品久一| 四虎8848精品成人免费网站 | 视频一区二区国产| 亚洲精品福利| 老司机精品在线| 啪啪国产精品| 视频一区二区中文字幕| 亚洲人成亚洲精品| 国产精品多人| 91精品高清| 日本视频中文字幕一区二区三区| 国产精品一站二站| 久久uomeier| 免费看黄色91| 亚洲欧洲高清| 免费在线看一区| 日本一二区不卡| 欧美1级日本1级| 久久国产精品99国产| 精品亚洲成人| 亚洲欧美日韩精品一区二区| 国产精品久久久网站| 亚洲黄色免费av| 亚洲精品亚洲人成在线观看| 国产一区二区三区日韩精品| 99热精品在线| 精品不卡一区| 日韩福利在线观看| 中文字幕系列一区| 国产精品国码视频| 国产日韩综合| 精品香蕉视频| 综合视频一区| 麻豆91精品| 色88888久久久久久影院| 亚洲日本欧美| 国产综合激情| 你懂的亚洲视频| 亚洲一区黄色| 精品亚洲美女网站| 国产精品久一| 日韩中文字幕1| 9色国产精品| 国产精品原创| 国产精品亚洲综合色区韩国| 亚洲精品在线观看91| 激情丁香综合| 亚洲精品88| 国产精品99视频| 国产精品久久久久77777丨| 日韩在线观看中文字幕| 黑丝一区二区| 国产精品伦理久久久久久| 国产日韩一区二区三免费高清| 亚洲精品日韩久久| 蜜臀av免费一区二区三区| 日韩毛片在线| 色一区二区三区| 久久91导航| 亚洲成人不卡| 中文字幕系列一区| 日本免费一区二区三区四区| 日韩大片在线播放| 色婷婷精品视频|