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

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

vue 動(dòng)態(tài)生成拓?fù)鋱D的示例

瀏覽:149日期:2022-10-13 11:21:20
橫向拓?fù)?p>在 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>

在需要繪制拓?fù)鋱D的組件進(jìn)行編程。

<template> <div> <span>S型拓?fù)鋱D</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': '卡機(jī)健康度', 'className': 'info' }, { 'id': 'child1', 'x': 200, 'y': 30, 'height': 50, 'width': 120, 'text': '進(jìn)程CPU監(jiān)控', 'className': 'info' }, { 'id': 'child2', 'x': 200, 'y': 90, 'height': 50, 'width': 120, 'text': '網(wǎng)管網(wǎng)絡(luò)故障監(jiān)控', 'className': 'info' }, { 'id': 'child3', 'x': 200, 'y': 150, 'height': 50, 'width': 120, 'text': '進(jìn)程內(nèi)在泄露監(jiān)控', 'className': 'info' }, { 'id': 'child4', 'x': 200, 'y': 210, 'height': 50, 'width': 120, 'text': '進(jìn)程存活監(jiān)控', 'className': 'info' }, { 'id': 'child5', 'x': 200, 'y': 270, 'height': 50, 'width': 120, 'text': '用戶內(nèi)在使用監(jiān)控', 'className': 'info' }, { 'id': 'child1_1', 'x': 380, 'y': 30, 'height': 50, 'width': 120, 'text': '監(jiān)控正常無(wú)觸發(fā)自愈', 'className': 'success' }, { 'id': 'child2_1', 'x': 380, 'y': 90, 'height': 50, 'width': 120, 'text': '監(jiān)控正常無(wú)觸發(fā)自愈', 'className': 'success' }, { 'id': 'child3_1', 'x': 380, 'y': 150, 'height': 50, 'width': 120, 'text': '發(fā)現(xiàn)異常觸發(fā)自愈', 'className': 'danger' }, { 'id': 'child3_2', 'x': 560, 'y': 150, 'height': 50, 'width': 120, 'text': '重啟進(jìn)程正常', 'className': 'success' }, { 'id': 'child4_1', 'x': 380, 'y': 210, 'height': 50, 'width': 120, 'text': '發(fā)現(xiàn)異常觸發(fā)自愈', 'className': 'danger' }, { 'id': 'child4_2', 'x': 560, 'y': 210, 'height': 50, 'width': 120, 'text': '重啟進(jìn)程正常', 'className': 'success' }, { 'id': 'child5_1', 'x': 380, 'y': 270, 'height': 50, 'width': 120, 'text': '發(fā)現(xiàn)異常觸發(fā)自愈', '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, //配置數(shù)據(jù)源 lineType: [ //配置線條的類(lèi)型 { 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型拓?fù)?p>和上面橫向一樣,需要在 index.html 文件中引用 js 文件。

<template> <div> <span>橫向拓?fù)鋱D</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': '發(fā)起', 'className': 'node success' }, { 'id': 'demo3_node2', 'x': 250, 'y': 50, 'height': 50, 'width': 100, 'text': '過(guò)程1', 'className': 'node success' }, { 'id': 'demo3_node3', 'x': 400, 'y': 50, 'height': 50, 'width': 100, 'text': '過(guò)程2', 'className': 'node danger' }, { 'id': 'demo3_node4', 'x': 550, 'y': 50, 'height': 50, 'width': 100, 'text': '過(guò)程3', 'className': 'node success' }, { 'id': 'demo3_node5', 'x': 550, 'y': 150, 'height': 50, 'width': 100, 'text': '過(guò)程4', 'className': 'node success' }, { 'id': 'demo3_node6', 'x': 400, 'y': 150, 'height': 50, 'width': 100, 'text': '過(guò)程5', 'className': 'node warning' }, { 'id': 'demo3_node7', 'x': 250, 'y': 150, 'height': 50, 'width': 100, 'text': '過(guò)程6', 'className': 'node success' }, { 'id': 'demo3_node8', 'x': 100, 'y': 150, 'height': 50, 'width': 100, 'text': '過(guò)程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, //配置數(shù)據(jù)源 lineType: [ //配置線條的類(lèi)型 { type: ’success’, lineColor: ’#46C37B’ }, { type: ’info’, lineColor: ’#4A9BFF’ }, { type: ’warning’, lineColor: ’#f0a63a’ }, { type: ’danger’, lineColor: ’#c94d3c’ }, { type: ’default’, lineColor: ’#aaa’ } ] }); } }, }</script><style scoped></style>縱向拓?fù)?p>和上面橫向一樣,需要在 index.html 文件中引用 js 文件。

<template> <div> <span>縱向拓?fù)鋱D</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': '瀏覽器發(fā)起’www.qq.com’請(qǐng)求', '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': '客戶接入聯(lián)通網(wǎng)', 'className': 'node' }, { 'id': 'node4', 'x': 400, 'y': 200, 'height': 50, 'width': 100, 'text': '客戶接入移動(dòng)網(wǎng)', 'className': 'node' }, { 'id': 'node5', 'x': 499, 'y': 200, 'height': 50, 'width': 100, 'text': '客戶接入電信網(wǎng)', 'className': 'node success', 'title': '如果hosts匹配成功則不經(jīng)過(guò)DNS服務(wù)器解析。直接使用IP訪問(wèn)' }, { 'id': 'node6', 'x': 233, 'y': 300, 'height': 50, 'width': 140, 'text': '聯(lián)通DNS服務(wù)器', 'className': 'node' }, { 'id': 'node7', 'x': 372, 'y': 300, 'height': 50, 'width': 140, 'text': '移動(dòng)DNS服務(wù)器', 'className': 'node' }, { 'id': 'node8', 'x': 511, 'y': 300, 'height': 50, 'width': 140, 'text': '電信DNS服務(wù)器', 'className': 'node success' }, { 'id': 'node9', 'x': 233, 'y': 400, 'height': 50, 'width': 370, 'text': '核心骨干交換網(wǎng)集群', 'className': 'node success' }, { 'id': 'node19', 'x': 343, 'y': 500, 'height': 50, 'width': 150, 'text': 'WEb服務(wù)器', '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, //配置數(shù)據(jù)源 lineType: [ //配置線條的類(lèi)型 { 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 動(dòng)態(tài)生成拓?fù)鋱D的示例

以上就是vue 動(dòng)態(tài)生成拓?fù)鋱D的示例的詳細(xì)內(nèi)容,更多關(guān)于vue 生成拓?fù)鋱D的資料請(qǐng)關(guān)注好吧啦網(wǎng)其它相關(guān)文章!

標(biāo)簽: Vue
相關(guān)文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
免费观看久久久4p| 成人看片网站| 久久人人99| 日本精品在线中文字幕| 国产精品精品| 久久久久99| 欧美日韩国产高清| 亚洲一区久久| 免费久久精品| 蜜桃91丨九色丨蝌蚪91桃色| 最新国产精品视频| 久久精品xxxxx| 卡一卡二国产精品| av在线最新| 欧美日韩国产综合网| 久久亚洲二区| 国产精品网址| 群体交乱之放荡娇妻一区二区| 99久久夜色精品国产亚洲1000部| 黄页网站一区| 婷婷成人av| 精品免费视频| 午夜一级久久| 亚洲tv在线| 国产一区一一区高清不卡| 久久青草久久| 日韩精品一级二级| 高清一区二区三区av| 亚洲一区二区免费看| 国产亚洲第一伦理第一区| 亚洲网站视频| 国产精品对白| 久久av一区| bbw在线视频| 亚洲精品乱码久久久久久蜜桃麻豆 | 精品色999| 亚洲一区二区三区高清| 国产精品亚洲综合久久| 一区二区小说| 国产成人黄色| 欧美日韩1区2区3区| 国产美女一区| 婷婷激情久久| 欧美成人a交片免费看| 久久国产乱子精品免费女| 婷婷成人基地| 蜜桃视频在线网站| 日韩av成人高清| 日韩精品一二区| 青草av.久久免费一区| 亚洲二区视频| 成人日韩在线| 91视频精品| 精品网站999| 国产日韩中文在线中文字幕 | 日韩电影免费网址| 日韩中文av| 亚洲综合中文| 亚洲精品国产精品粉嫩| 99精品美女| av在线资源| 亚洲伊人av| 久久狠狠婷婷| 激情综合网址| 黄色不卡一区| 欧美日韩精品一本二本三本| 婷婷综合社区| 亚洲在线成人| 日韩欧美另类中文字幕| 日韩一区二区三区精品| 日本麻豆一区二区三区视频| 日韩1区2区3区| 久久国内精品自在自线400部| 涩涩涩久久久成人精品| 蜜桃视频在线观看一区二区| 中文亚洲免费| 日韩精品午夜视频| 国产欧美日韩精品一区二区免费| 免费在线日韩av| 久久电影tv| 欧美日韩国产高清| 日韩一区精品| 麻豆91精品视频| 久久精品卡一| 一区二区三区四区精品视频| 欧美日韩亚洲一区二区三区在线 | 亚洲精品国产嫩草在线观看| а√天堂8资源在线| 亚洲二区精品| 国产精品羞羞答答在线观看| 成人日韩在线| 日韩高清欧美激情| 日韩精品免费一区二区在线观看| 久久aⅴ国产紧身牛仔裤| 欧美视频二区| 激情综合激情| 老司机精品视频在线播放| 国产99精品一区| 青青伊人久久| 欧美一区二区三区高清视频| 91精品日本| 久久精品99久久无色码中文字幕| 亚洲免费影视| 国产一区二区精品福利地址| 亚洲深深色噜噜狠狠爱网站| se01亚洲视频| 久久麻豆视频| 蜜桃免费网站一区二区三区| 欧美日韩国产v| 久久精品资源| 中文字幕一区二区精品区| 999视频精品| 高清av一区| 免费一级欧美片在线观看网站| 午夜一区在线| 亚洲成人三区| 欧洲一级精品| 久久爱www成人| 四虎精品永久免费| 国产视频一区免费看| 欧美91精品| 成人日韩在线观看| 精品一区二区三区在线观看视频 | 日韩精品91亚洲二区在线观看| 激情久久五月| 亚洲a一区二区三区| 伊伊综合在线| 久久婷婷av| 在线视频精品| 视频一区视频二区中文字幕| 91精品国产91久久久久久黑人| 久久精品日韩欧美| 国产精品精品国产一区二区| 激情黄产视频在线免费观看| 久久一区二区三区电影| 欧美成人久久| 免播放器亚洲| 青草av.久久免费一区| 欧美精品国产| 国产精品久久| 高清一区二区| 婷婷成人基地| 婷婷五月色综合香五月| 国产精品一区二区99| 久久精品系列| 性欧美videohd高精| 亚洲高清av| 免费日本视频一区| 国产精品一区高清| 国产激情在线播放| 一区在线免费观看| 日韩av三区| 一区二区三区四区在线看| 日本一不卡视频| 精品国产不卡一区二区| 香蕉久久99| 久久精品99国产精品| аⅴ资源天堂资源库在线| 女主播福利一区| 国产黄色精品| 91九色精品国产一区二区| 亚洲女人av| 成人精品高清在线视频| 视频一区国产视频| 欧美www视频在线观看| 久久先锋影音| 免费看av不卡| 国产精品伊人| 午夜一区在线| 欧美精品资源| 国产精品免费不| 亚洲一区欧美激情| 午夜av成人| 国产精品一区二区99| 丝袜国产日韩另类美女| 蜜桃视频在线网站| 日韩激情一二三区| 视频在线观看一区二区三区| 欧洲精品一区二区三区| 国产精品一区三区在线观看| 亚洲美女91| 在线综合视频| 女人天堂亚洲aⅴ在线观看| 中文字幕高清在线播放| 国产精品22p| 久久国产视频网| 久久国产麻豆精品| 日本伊人久久| 一区二区三区四区日韩| 亚洲一区av| 蜜桃视频一区二区| 99视频一区| 免费日韩一区二区| 亚洲欧美成人综合| 国产精品毛片在线| 鲁大师影院一区二区三区| 偷拍欧美精品| 日韩精品一二三| 亚洲精品九九| 国产亚洲一区二区三区不卡|