@@ -486,7 +486,7 @@ export default {
486486 source: sourceName,
487487 target: targetName,
488488 lineStyle: {
489- color: " rgba(112, 198, 199 , 1)" ,
489+ color: " rgba(70, 67, 188 , 1)" ,
490490 width: 1 ,
491491 },
492492 emphasis: {
@@ -502,7 +502,7 @@ export default {
502502 target: targetName,
503503 // 连接线的样式设置
504504 lineStyle: {
505- color: " rgba(112, 198, 199 , 1)" ,
505+ color: " rgba(70, 67, 188 , 1)" ,
506506 type: " dashed" ,
507507 },
508508 // 鼠标滑到连接线上的样式配置
@@ -540,8 +540,9 @@ export default {
540540 force: {
541541 repulsion: [800 , 1000 ], // 斥力因子
542542 gravity: 0.8 , // 是否向中心靠拢 值越大越接近于中心
543- edgeLength: [100 , 200 ], // 链接线的长度范围
543+ edgeLength: [150 , 250 ], // 链接线的长度范围
544544 layoutAnimation: true ,
545+ friction: 0.2
545546 },
546547 // zoom:0.1, //设置整体视图缩放的比例
547548 zoom: this .dataIndex ,
@@ -590,7 +591,7 @@ export default {
590591 zoomSpeedRule = 0.04 ;
591592 setTime = 950 ;
592593 } else if (nodeArray .length < 50 ) {
593- zoomRule = 1 ;
594+ zoomRule = 0.75 ;
594595 zoomSpeedRule = 0.07 ;
595596 setTime = 950 ;
596597 }
@@ -612,11 +613,14 @@ export default {
612613 // 最后一次渲染
613614 setTimeout (() => {
614615 graphOption .series [0 ].zoom = zoomRule - 0.28 ;
615- graphOption .series [0 ].links = nodeLinksArray;
616616 graphOption .series [0 ].force .gravity = 0.3 ;
617617 this .graphEcharts .setOption (graphOption);
618618 this .flShowRevertIcon = true ;
619619 }, setTime);
620+ this .graphEcharts .on (' click' , params => {
621+ graphOption .series [0 ].links = nodeLinksArray .filter (item => (item .source === params .data .name || item .target === params .data .name ) && item);
622+ this .graphEcharts .setOption (graphOption);
623+ })
620624 },
621625 formatPrettyName (name ) {
622626 const prettyName = this .formatName (name);
@@ -680,7 +684,10 @@ export default {
680684 height: 100 % ;
681685 // 线上数据
682686 .graph_content_wrap {
687+ @include flex;
688+ flex- direction: column;
683689 width: 100 % ;
690+ height: 100 % ;
684691 box- sizing: border- box;
685692 padding: 0 0 .4rem ;
686693 margin: 0 auto;
@@ -752,8 +759,8 @@ export default {
752759 }
753760
754761 .graph_charts_container {
755- height: 100 % ;
756-
762+ // height: 100%;
763+ flex : 1 ;
757764 .graph_charts_title {
758765 padding: 0 .2rem 0 0 .2rem 0 .2rem ;
759766 font- size: 0 .12rem ;
@@ -935,7 +942,7 @@ export default {
935942 color: rgba (134 , 143 , 211 , 1 );
936943 .legend_item {
937944 margin- top: 0 .03rem ;
938- max- width: 1 .6rem ;
945+ max- width: 1 .5rem ;
939946 overflow: hidden;
940947 text- overflow: ellipsis;
941948 white- space: nowrap;
@@ -992,6 +999,7 @@ export default {
992999 position: absolute;
9931000 right: 2 .29rem ;
9941001 top: 50 % ;
1002+ transform: translateY (- 100 % );
9951003 z- index: 10 ;
9961004
9971005 .pick_up_img_content {
@@ -1008,6 +1016,7 @@ export default {
10081016 .pick_up_show_content {
10091017 position: absolute;
10101018 top: 50 % ;
1019+ transform: translateY (- 100 % );
10111020 right: 0 ;
10121021
10131022 .pick_up_show_img_content {
@@ -1180,7 +1189,7 @@ export default {
11801189
11811190 p: nth- of - type (2 ) {
11821191 span: nth- of - type (1 ) {
1183- margin- left: 0 ;
1192+ // margin-left: 0;
11841193 }
11851194 }
11861195 }
0 commit comments