diff --git a/src/components/charts/chart-options.js b/src/components/charts/chart-options.js
index f9b9f639..56051358 100644
--- a/src/components/charts/chart-options.js
+++ b/src/components/charts/chart-options.js
@@ -305,12 +305,53 @@ const relationShip = {
}
]
}
+const sankeyShip = {
+ tooltip: {
+ trigger: 'item',
+ triggerOn: 'mousemove'
+ },
+ series: [
+ {
+ type: 'sankey',
+ data: [],
+ links: [],
+ levels: [
+ {
+ depth: 0,
+ itemStyle: {
+ color: '#47D49C'
+ },
+ lineStyle: {
+ color: '#999'
+ }
+ }, {
+ depth: 1,
+ itemStyle: {
+ color: '#A69BF5'
+ },
+ lineStyle: {
+ color: '#999'
+ }
+ }, {
+ depth: 2,
+ itemStyle: {
+ color: '#73A0FA'
+ },
+ lineStyle: {
+ color: '#999'
+ }
+ }
+ ]
+ }
+ ]
+}
const typeOptionMappings = [
{ value: 11, option: line }, // 常规折线图
{ value: 12, option: lineWithStatistics }, // 带统计表格的折线图
{ value: 13, option: lineStack }, // 折线堆叠图
{ value: 31, option: pieWithTable }, // 常规折线图
{ value: 42, option: relationShip }, // 关系图
+ { value: 43, option: sankeyShip }, // 桑基图
{ value: 52, option: singleValueLine }
]
const typeCategory = {
@@ -360,6 +401,10 @@ export function isEchartsWithStatistics (type) {
export function isRelationShip (type) {
return type === 42
}
+/* 桑基图 */
+export function isSankey (type) {
+ return type === 43
+}
/* 单值 */
export function isSingleValue (type) {
return type >= 51 && type <= 60
diff --git a/src/components/charts/panel.scss b/src/components/charts/panel.scss
index 218f26f0..54fae7bb 100644
--- a/src/components/charts/panel.scss
+++ b/src/components/charts/panel.scss
@@ -143,6 +143,22 @@
}
.cn-chart__body {
flex: auto;
+ display: flex;
+ .el-descriptions {
+ padding-top: 30px;
+ }
+ &>.el-descriptions {
+ flex: 0 0 350px;
+ padding: 30px 36px;
+ }
+ .chart-location {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ }
+ .el-descriptions__content {
+ color: #3976CB;
+ }
}
}
&>.cn-chart__group {
@@ -153,6 +169,7 @@
padding: 0 20px;
.cn-chart {
border: none;
+ box-shadow: none;
}
}
}
@@ -202,6 +219,11 @@
font-size: 16px;
color: #666666;
}
+ &.single-value__content--with-chart {
+ .content__title {
+ border-bottom: 1px solid $--content-right-background-color;
+ }
+ }
.single-value__unit {
font-weight: normal;
padding-left: 10px;
@@ -626,6 +648,13 @@
font-size: 16px;
}
}
+ .cn-chart__header {
+ border-bottom: none;
+ .header__title {
+ color: #3976CB;
+ font-size: 14px;
+ }
+ }
}
}
}
@@ -654,6 +683,11 @@
margin-left: 12px;
cursor: pointer;
}
+.ip-detail-as {
+ color: #999;
+ font-size: 12px;
+ padding-left: 10px;
+}
//.cn-chart-select{
// display: flex;
// align-items: center;
diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue
index 65e0b312..49e243e7 100644
--- a/src/views/charts/Chart.vue
+++ b/src/views/charts/Chart.vue
@@ -47,7 +47,21 @@
-
+
+
+ {{detailData.asn}}
+ {{detailData.asSubnet}}
+ {{detailData.isp}}
+ {{detailData.dnsPTR}}
+
+
+
+
@@ -117,7 +131,15 @@
>
-
{{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name}}
+
+ {{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name}}
+
+ as {{chartInfo.params.as}}
+
+
{{handleSingleValue[0] || handleSingleValue[0] === 0 ? handleSingleValue[0] : '-'}}
{{handleSingleValue[1]}}
@@ -201,14 +223,28 @@
:style="computePosition"
>
-
+