|
@@ -509,7 +509,7 @@ layui.define(['common', 'layer', 'form', 'mxClient', 'admin', 'reslist', 'reskpi |
|
@@ -509,7 +509,7 @@ layui.define(['common', 'layer', 'form', 'mxClient', 'admin', 'reslist', 'reskpi |
509
|
container.style.position = 'absolute';
|
509
|
container.style.position = 'absolute';
|
510
|
container.style.overflow = 'hidden';
|
510
|
container.style.overflow = 'hidden';
|
511
|
container.style.width = '100%';
|
511
|
container.style.width = '100%';
|
512
|
- container.style.background = 'url("/src/lib/mxgraph/editors/images/grid.gif")';
|
512
|
+ container.style.background = 'url("/monitor-web/src/lib/mxgraph/editors/images/grid.gif")';
|
513
|
|
513
|
|
514
|
// Workaround for Internet Explorer ignoring certain styles
|
514
|
// Workaround for Internet Explorer ignoring certain styles
|
515
|
if (mxClient.IS_QUIRKS) {
|
515
|
if (mxClient.IS_QUIRKS) {
|
|
@@ -540,80 +540,80 @@ layui.define(['common', 'layer', 'form', 'mxClient', 'admin', 'reslist', 'reskpi |
|
@@ -540,80 +540,80 @@ layui.define(['common', 'layer', 'form', 'mxClient', 'admin', 'reslist', 'reskpi |
540
|
};
|
540
|
};
|
541
|
|
541
|
|
542
|
//基础图标
|
542
|
//基础图标
|
543
|
- addVertex('组卡片', '/src/style/img/mxcell/default-icon-card.png', 120, 160, 'shape=swimlane;startSize=20;', null);
|
|
|
544
|
- addVertex('组', '/src/style/img/mxcell/default-icon-dashed-card.png', 120, 160, 'shape=swimlane;startSize=0;dashed=1;', null);
|
|
|
545
|
- addVertex('矩形', '/src/style/img/mxcell/default-icon-rounded.png', 100, 40, 'shape=rounded;strokeWidth=1;', null);
|
|
|
546
|
- addVertex('圆形', '/src/style/img/mxcell/default-icon-ellipse.png', 64, 64, 'shape=ellipse', null);
|
|
|
547
|
- addVertex('菱形', '/src/style/img/mxcell/default-icon-rhombus.png', 64, 64, 'shape=rhombus', null);
|
|
|
548
|
- addVertex('三角形', '/src/style/img/mxcell/default-icon-triangle.png', 64, 64, 'shape=triangle', null);
|
|
|
549
|
- addVertex('圆柱形', '/src/style/img/mxcell/default-icon-cylinder.png', 64, 64, 'shape=cylinder', null);
|
|
|
550
|
- // addVertex('用户','/src/style/img/mxcell/default-icon-actor.png', 64, 64, 'shape=actor',null);
|
|
|
551
|
- addVertex('文本', '/src/style/img/mxcell/default-icon-text.png', 100, 50, 'strokeColor=none;fillColor=none;', "middle");
|
543
|
+ addVertex('组卡片', '/monitor-web/src/style/img/mxcell/default-icon-card.png', 120, 160, 'shape=swimlane;startSize=20;', null);
|
|
|
544
|
+ addVertex('组', '/monitor-web/src/style/img/mxcell/default-icon-dashed-card.png', 120, 160, 'shape=swimlane;startSize=0;dashed=1;', null);
|
|
|
545
|
+ addVertex('矩形', '/monitor-web/src/style/img/mxcell/default-icon-rounded.png', 100, 40, 'shape=rounded;strokeWidth=1;', null);
|
|
|
546
|
+ addVertex('圆形', '/monitor-web/src/style/img/mxcell/default-icon-ellipse.png', 64, 64, 'shape=ellipse', null);
|
|
|
547
|
+ addVertex('菱形', '/monitor-web/src/style/img/mxcell/default-icon-rhombus.png', 64, 64, 'shape=rhombus', null);
|
|
|
548
|
+ addVertex('三角形', '/monitor-web/src/style/img/mxcell/default-icon-triangle.png', 64, 64, 'shape=triangle', null);
|
|
|
549
|
+ addVertex('圆柱形', '/monitor-web/src/style/img/mxcell/default-icon-cylinder.png', 64, 64, 'shape=cylinder', null);
|
|
|
550
|
+ // addVertex('用户','/monitor-web/src/style/img/mxcell/default-icon-actor.png', 64, 64, 'shape=actor',null);
|
|
|
551
|
+ addVertex('文本', '/monitor-web/src/style/img/mxcell/default-icon-text.png', 100, 50, 'strokeColor=none;fillColor=none;', "middle");
|
552
|
|
552
|
|
553
|
|
553
|
|
554
|
toolbar.addLine();
|
554
|
toolbar.addLine();
|
555
|
|
555
|
|
556
|
//业务图标
|
556
|
//业务图标
|
557
|
- // addVertex('平台','/src/style/img/mxcell/cloud_plat.png', 64, 64,
|
|
|
558
|
- // 'shape=image;image=/src/style/img/mxcell/cloud_plat.png','CLOUD_PLAT');
|
|
|
559
|
- addVertex('阿里云', '/src/style/img/mxcell/icon_ali_cloud.png', 64, 64,
|
|
|
560
|
- 'shape=image;image=/src/style/img/mxcell/icon_ali_cloud.png', 'ALI_CLOUD');
|
|
|
561
|
- addVertex('华为云', '/src/style/img/mxcell/icon_huawei_cloud.png', 64, 64,
|
|
|
562
|
- 'shape=image;image=/src/style/img/mxcell/icon_huawei_cloud.png', 'HUAWEI_CLOUD');
|
|
|
563
|
- addVertex('虚拟化平台', '/src/style/img/mxcell/icon_virtualization_vmware.png', 64, 64,
|
|
|
564
|
- 'shape=image;image=/src/style/img/mxcell/icon_virtualization_vmware.png', 'VIRTUALIZATION_VMWARE');
|
|
|
565
|
- addVertex('服务器', '/src/style/img/mxcell/icon_host.png', 64, 64,
|
|
|
566
|
- 'shape=image;image=/src/style/img/mxcell/icon_host.png', 'HOST');
|
|
|
567
|
- addVertex('小型机', '/src/style/img/mxcell/icon_host_minicomputer_server.png', 64, 64,
|
|
|
568
|
- 'shape=image;image=/src/style/img/mxcell/icon_host_minicomputer_server.png', 'HOST_MINICOMPUTER_SERVER');
|
|
|
569
|
- addVertex('x86物理服务器', '/src/style/img/mxcell/icon_host_x86server.png', 64, 64,
|
|
|
570
|
- 'shape=image;image=/src/style/img/mxcell/icon_host_x86server.png', 'HOST_X86SERVER');
|
|
|
571
|
- addVertex('x86虚拟服务器', '/src/style/img/mxcell/icon_host_x86virtual.png', 64, 64,
|
|
|
572
|
- 'shape=image;image=/src/style/img/mxcell/icon_host_x86virtual.png', 'HOST_X86VIRTUAL');
|
|
|
573
|
- addVertex('Weblogic', '/src/style/img/mxcell/icon_middleware_weblogic.png', 64, 64,
|
|
|
574
|
- 'shape=image;image=/src/style/img/mxcell/icon_middleware_weblogic.png', 'MIDDLEWARE_WEBLOGIC');
|
|
|
575
|
- addVertex('NGINX', '/src/style/img/mxcell/icon_middleware_nginx.png', 64, 64,
|
|
|
576
|
- 'shape=image;image=/src/style/img/mxcell/icon_middleware_nginx.png', 'MIDDLEWARE_NGINX');
|
|
|
577
|
- addVertex('KafKa', '/src/style/img/mxcell/icon_middleware_kafka.png', 64, 64,
|
|
|
578
|
- 'shape=image;image=/src/style/img/mxcell/icon_middleware_kafka.png', 'MIDDLEWARE_KAFKA');
|
|
|
579
|
- addVertex('集群', '/src/style/img/mxcell/icon_cluster.png', 64, 64,
|
|
|
580
|
- 'shape=image;image=/src/style/img/mxcell/icon_cluster.png', 'CLUSTER');
|
|
|
581
|
- addVertex('数据库', '/src/style/img/mxcell/icon_database.png', 64, 64,
|
|
|
582
|
- 'shape=image;image=/src/style/img/mxcell/icon_database.png', 'DATABASE');
|
|
|
583
|
- addVertex('ORACLE数据库', '/src/style/img/mxcell/icon_database_oracle.png', 64, 64,
|
|
|
584
|
- 'shape=image;image=/src/style/img/mxcell/icon_database_oracle.png', 'DATABASE_ORACLE');
|
|
|
585
|
- addVertex('MySQL数据库', '/src/style/img/mxcell/icon_database_mysql.png', 64, 64,
|
|
|
586
|
- 'shape=image;image=/src/style/img/mxcell/icon_database_mysql.png', 'DATABASE_MYSQL');
|
|
|
587
|
- addVertex('Redis', '/src/style/img/mxcell/icon_database_redis.png', 64, 64,
|
|
|
588
|
- 'shape=image;image=/src/style/img/mxcell/icon_database_redis.png', 'DATABASE_REDIS');
|
|
|
589
|
- addVertex('华为云防火墙', '/src/style/img/mxcell/icon_huawei_cloud_firewall.png', 64, 64,
|
|
|
590
|
- 'shape=image;image=/src/style/img/mxcell/icon_huawei_cloud_firewall.png', 'HUAWEI_CLOUD_FIREWALL');
|
|
|
591
|
- addVertex('防火墙', '/src/style/img/mxcell/icon_netsafe_firewall.png', 64, 64,
|
|
|
592
|
- 'shape=image;image=/src/style/img/mxcell/icon_netsafe_firewall.png', 'NETSAFE_FIREWALL');
|
|
|
593
|
- addVertex('路由器', '/src/style/img/mxcell/icon_nethardware_router.png', 64, 64,
|
|
|
594
|
- 'shape=image;image=/src/style/img/mxcell/icon_nethardware_router.png', 'NETHARDWARE_ROUTER');
|
|
|
595
|
- addVertex('交换机', '/src/style/img/mxcell/icon_nethardware_switchboard.png', 64, 64,
|
|
|
596
|
- 'shape=image;image=/src/style/img/mxcell/icon_nethardware_switchboard.png', 'NETHARDWARE_SWITCHBOARD');
|
|
|
597
|
- addVertex('华为云交换机', '/src/style/img/mxcell/icon_huawei_cloud_switchboard.png', 64, 64,
|
|
|
598
|
- 'shape=image;image=/src/style/img/mxcell/icon_huawei_cloud_switchboard.png', 'HUAWEI_CLOUD_SWITCHBOARD');
|
|
|
599
|
- addVertex('SAN交换机', '/src/style/img/mxcell/icon_nethardware_san_switchboard.png', 64, 64,
|
|
|
600
|
- 'shape=image;image=/src/style/img/mxcell/icon_nethardware_san_switchboard.png', 'NETHARDWARE_SAN_SWITCHBOARD');
|
|
|
601
|
- addVertex('DNS', '/src/style/img/mxcell/icon_nethardware_dns.png', 64, 64,
|
|
|
602
|
- 'shape=image;image=/src/style/img/mxcell/icon_nethardware_dns.png', 'NETHARDWARE_DNS');
|
|
|
603
|
- addVertex('网关', '/src/style/img/mxcell/icon_nethardware_gateway.png', 64, 64,
|
|
|
604
|
- 'shape=image;image=/src/style/img/mxcell/icon_nethardware_gateway.png', 'NETHARDWARE_GATEWAY');
|
|
|
605
|
- addVertex('ADS', '/src/style/img/mxcell/icon_nethardware_ads.png', 64, 64,
|
|
|
606
|
- 'shape=image;image=/src/style/img/mxcell/icon_nethardware_ads.png', 'NETHARDWARE_ADS');
|
|
|
607
|
- addVertex('负载均衡', '/src/style/img/mxcell/icon_nethardware_loadbalancing.png', 64, 64,
|
|
|
608
|
- 'shape=image;image=/src/style/img/mxcell/icon_nethardware_loadbalancing.png', 'NETHARDWARE_LOADBALANCING');
|
|
|
609
|
- addVertex('入侵检测', '/src/style/img/mxcell/icon_netsafe_ipsids.png', 64, 64,
|
|
|
610
|
- 'shape=image;image=/src/style/img/mxcell/icon_netsafe_ipsids.png', 'NETSAFE_IPSIDS');
|
|
|
611
|
- addVertex('IPS', '/src/style/img/mxcell/icon_netsafe_ips.png', 64, 64,
|
|
|
612
|
- 'shape=image;image=/src/style/img/mxcell/icon_netsafe_ips.png', 'NETSAFE_IPS');
|
|
|
613
|
- addVertex('IDS', '/src/style/img/mxcell/icon_netsafe_ids.png', 64, 64,
|
|
|
614
|
- 'shape=image;image=/src/style/img/mxcell/icon_netsafe_ids.png', 'NETSAFE_IDS');
|
|
|
615
|
- addVertex('广域网', '/src/style/img/mxcell/icon_cloud.png', 64, 64,
|
|
|
616
|
- 'shape=image;image=/src/style/img/mxcell/icon_cloud.png', null);
|
557
|
+ // addVertex('平台','/monitor-web/src/style/img/mxcell/cloud_plat.png', 64, 64,
|
|
|
558
|
+ // 'shape=image;image=/monitor-web/src/style/img/mxcell/cloud_plat.png','CLOUD_PLAT');
|
|
|
559
|
+ addVertex('阿里云', '/monitor-web/src/style/img/mxcell/icon_ali_cloud.png', 64, 64,
|
|
|
560
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_ali_cloud.png', 'ALI_CLOUD');
|
|
|
561
|
+ addVertex('华为云', '/monitor-web/src/style/img/mxcell/icon_huawei_cloud.png', 64, 64,
|
|
|
562
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_huawei_cloud.png', 'HUAWEI_CLOUD');
|
|
|
563
|
+ addVertex('虚拟化平台', '/monitor-web/src/style/img/mxcell/icon_virtualization_vmware.png', 64, 64,
|
|
|
564
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_virtualization_vmware.png', 'VIRTUALIZATION_VMWARE');
|
|
|
565
|
+ addVertex('服务器', '/monitor-web/src/style/img/mxcell/icon_host.png', 64, 64,
|
|
|
566
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_host.png', 'HOST');
|
|
|
567
|
+ addVertex('小型机', '/monitor-web/src/style/img/mxcell/icon_host_minicomputer_server.png', 64, 64,
|
|
|
568
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_host_minicomputer_server.png', 'HOST_MINICOMPUTER_SERVER');
|
|
|
569
|
+ addVertex('x86物理服务器', '/monitor-web/src/style/img/mxcell/icon_host_x86server.png', 64, 64,
|
|
|
570
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_host_x86server.png', 'HOST_X86SERVER');
|
|
|
571
|
+ addVertex('x86虚拟服务器', '/monitor-web/src/style/img/mxcell/icon_host_x86virtual.png', 64, 64,
|
|
|
572
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_host_x86virtual.png', 'HOST_X86VIRTUAL');
|
|
|
573
|
+ addVertex('Weblogic', '/monitor-web/src/style/img/mxcell/icon_middleware_weblogic.png', 64, 64,
|
|
|
574
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_middleware_weblogic.png', 'MIDDLEWARE_WEBLOGIC');
|
|
|
575
|
+ addVertex('NGINX', '/monitor-web/src/style/img/mxcell/icon_middleware_nginx.png', 64, 64,
|
|
|
576
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_middleware_nginx.png', 'MIDDLEWARE_NGINX');
|
|
|
577
|
+ addVertex('KafKa', '/monitor-web/src/style/img/mxcell/icon_middleware_kafka.png', 64, 64,
|
|
|
578
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_middleware_kafka.png', 'MIDDLEWARE_KAFKA');
|
|
|
579
|
+ addVertex('集群', '/monitor-web/src/style/img/mxcell/icon_cluster.png', 64, 64,
|
|
|
580
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_cluster.png', 'CLUSTER');
|
|
|
581
|
+ addVertex('数据库', '/monitor-web/src/style/img/mxcell/icon_database.png', 64, 64,
|
|
|
582
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_database.png', 'DATABASE');
|
|
|
583
|
+ addVertex('ORACLE数据库', '/monitor-web/src/style/img/mxcell/icon_database_oracle.png', 64, 64,
|
|
|
584
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_database_oracle.png', 'DATABASE_ORACLE');
|
|
|
585
|
+ addVertex('MySQL数据库', '/monitor-web/src/style/img/mxcell/icon_database_mysql.png', 64, 64,
|
|
|
586
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_database_mysql.png', 'DATABASE_MYSQL');
|
|
|
587
|
+ addVertex('Redis', '/monitor-web/src/style/img/mxcell/icon_database_redis.png', 64, 64,
|
|
|
588
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_database_redis.png', 'DATABASE_REDIS');
|
|
|
589
|
+ addVertex('华为云防火墙', '/monitor-web/src/style/img/mxcell/icon_huawei_cloud_firewall.png', 64, 64,
|
|
|
590
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_huawei_cloud_firewall.png', 'HUAWEI_CLOUD_FIREWALL');
|
|
|
591
|
+ addVertex('防火墙', '/monitor-web/src/style/img/mxcell/icon_netsafe_firewall.png', 64, 64,
|
|
|
592
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_netsafe_firewall.png', 'NETSAFE_FIREWALL');
|
|
|
593
|
+ addVertex('路由器', '/monitor-web/src/style/img/mxcell/_nethardware_router.png', 64, 64,
|
|
|
594
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_nethardware_router.png', 'NETHARDWARE_ROUTER');
|
|
|
595
|
+ addVertex('交换机', '/monitor-web/src/style/img/mxcell/icon_nethardware_switchboard.png', 64, 64,
|
|
|
596
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_nethardware_switchboard.png', 'NETHARDWARE_SWITCHBOARD');
|
|
|
597
|
+ addVertex('华为云交换机', '/monitor-web/src/style/img/mxcell/icon_huawei_cloud_switchboard.png', 64, 64,
|
|
|
598
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_huawei_cloud_switchboard.png', 'HUAWEI_CLOUD_SWITCHBOARD');
|
|
|
599
|
+ addVertex('SAN交换机', '/monitor-web/src/style/img/mxcell/icon_nethardware_san_switchboard.png', 64, 64,
|
|
|
600
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_nethardware_san_switchboard.png', 'NETHARDWARE_SAN_SWITCHBOARD');
|
|
|
601
|
+ addVertex('DNS', '/monitor-web/src/style/img/mxcell/icon_nethardware_dns.png', 64, 64,
|
|
|
602
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_nethardware_dns.png', 'NETHARDWARE_DNS');
|
|
|
603
|
+ addVertex('网关', '/monitor-web/src/style/img/mxcell/icon_nethardware_gateway.png', 64, 64,
|
|
|
604
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_nethardware_gateway.png', 'NETHARDWARE_GATEWAY');
|
|
|
605
|
+ addVertex('ADS', '/monitor-web/src/style/img/mxcell/icon_nethardware_ads.png', 64, 64,
|
|
|
606
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_nethardware_ads.png', 'NETHARDWARE_ADS');
|
|
|
607
|
+ addVertex('负载均衡', '/monitor-web/src/style/img/mxcell/icon_nethardware_loadbalancing.png', 64, 64,
|
|
|
608
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_nethardware_loadbalancing.png', 'NETHARDWARE_LOADBALANCING');
|
|
|
609
|
+ addVertex('入侵检测', '/monitor-web/src/style/img/mxcell/icon_netsafe_ipsids.png', 64, 64,
|
|
|
610
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_netsafe_ipsids.png', 'NETSAFE_IPSIDS');
|
|
|
611
|
+ addVertex('IPS', '/monitor-web/src/style/img/mxcell/icon_netsafe_ips.png', 64, 64,
|
|
|
612
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_netsafe_ips.png', 'NETSAFE_IPS');
|
|
|
613
|
+ addVertex('IDS', '/monitor-web/src/style/img/mxcell/icon_netsafe_ids.png', 64, 64,
|
|
|
614
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_netsafe_ids.png', 'NETSAFE_IDS');
|
|
|
615
|
+ addVertex('广域网', '/monitor-web/src/style/img/mxcell/icon_cloud.png', 64, 64,
|
|
|
616
|
+ 'shape=image;image=/monitor-web/src/style/img/mxcell/icon_cloud.png', null);
|
617
|
|
617
|
|
618
|
|
618
|
|
619
|
var button = mxUtils.button('Create toolbar entry from selection', function (evt) {
|
619
|
var button = mxUtils.button('Create toolbar entry from selection', function (evt) {
|
|
@@ -633,7 +633,7 @@ layui.define(['common', 'layer', 'form', 'mxClient', 'admin', 'reslist', 'reskpi |
|
@@ -633,7 +633,7 @@ layui.define(['common', 'layer', 'form', 'mxClient', 'admin', 'reslist', 'reskpi |
633
|
}
|
633
|
}
|
634
|
|
634
|
|
635
|
// Creates the image which is used as the drag icon (preview)
|
635
|
// Creates the image which is used as the drag icon (preview)
|
636
|
- var img = toolbar.addMode(null, '/src/lib/mxgraph/editors/images/outline.gif', funct);
|
636
|
+ var img = toolbar.addMode(null, '/monitor-web/src/lib/mxgraph/editors/images/outline.gif', funct);
|
637
|
mxUtils.makeDraggable(img, graph, funct);
|
637
|
mxUtils.makeDraggable(img, graph, funct);
|
638
|
}
|
638
|
}
|
639
|
});
|
639
|
});
|