diff --git a/src/assets/css/components/views/charts2/networkOverviewLine.scss b/src/assets/css/components/views/charts2/networkOverviewLine.scss index 8958dde7..f4396cde 100644 --- a/src/assets/css/components/views/charts2/networkOverviewLine.scss +++ b/src/assets/css/components/views/charts2/networkOverviewLine.scss @@ -1,13 +1,11 @@ .line.network { height: 100%; width: 100%; - position: relative; border: 1px solid #E2E5EC; border-radius: 4px; .chart-drawing { height: 80%; width: 100%; - top: 70px; .echarts-tooltip.echarts-tooltip-dark { .cn-chart-tooltip { display: flex; @@ -21,137 +19,142 @@ } } } - .line-select { - top: 20px; - right: 20px; + .line-header { display: flex; - position: absolute; - .line-select-metric {} - .line-select__operation { - .el-input__inner { - width: 100px; - } - } - .line-select-reference-line { - .line-select__operation { - .el-input__inner { - width: 127px; - } - } - } - .line-select-metric,.line-select-reference-line { + justify-content: space-between; + .line-select.line-header-right { display: flex; - align-items: center; - span { - font-size: 12px; - color: #575757; - font-weight: 400; - margin-right: 3px; - } + //flex: 1; .line-select__operation { - height: 24px; - margin-left: 3px; - box-shadow: none; - border-radius: 2px; .el-input__inner { - padding-left: 4px; - line-height: 24px; - height: 24px; - font-size: 12px; - color: #2C72C6; - font-weight: 400; + width: 100px; } - .el-input__suffix { - display: flex; - .el-input__suffix-inner { + } + .line-select-reference-line { + margin-right: 20px; + .line-select__operation { + .el-input__inner { + width: 127px; + } + } + } + .line-select-metric,.line-select-reference-line { + display: flex; + align-items: center; + span { + font-size: 12px; + color: #575757; + font-weight: 400; + margin-right: 3px; + } + .line-select__operation { + height: 24px; + margin-left: 3px; + box-shadow: none; + border-radius: 2px; + .el-input__inner { + padding-left: 4px; line-height: 24px; - .el-select__caret { + height: 24px; + font-size: 12px; + color: #2C72C6; + font-weight: 400; + } + .el-input__suffix { + display: flex; + .el-input__suffix-inner { line-height: 24px; - width: 16px; - color: #575757; + .el-select__caret { + line-height: 24px; + width: 16px; + color: #575757; + } + } + } + } + } + .line-select-reference-line { + margin-left: 20px; + } + } + .line-header-left { + .line-value-active { + position: absolute; + height: 3px; + border-radius: 4px 0 0 0; + background: #046ECA; + top: 0; + z-index: 1; + transition: all linear .2s; + } + .line-value { + //position: absolute; + //top: 0; + //left: 0; + display: flex; + .line-value-mpackets.mousemove-cursor { + border-top: 4px solid #D3D0D8; + z-index: 0; + } + .line-value-mpackets { + cursor: pointer; + padding: 16px 0 0 20px; + border-top: 4px solid transparent; + .line-value-unit { + .line-value-unit-number { + font-family: Helvetica-Bold; + font-size: 28px; + color: #353636; + margin-right: 4px; + } + .line-value-unit-number2 { + font-size: 0; + span { + font-size: 12px; + color: #575757; + font-weight: 400; + } + } + } + .line-value-mpackets-name { + position: relative; + display: flex; + .mpackets-name { + flex: 1; + padding-left: 19px; + } + .total,.inbound,.outbound,.internal,.through,.other { + width: 14px; + height: 14px; + border-radius: 50%; + position: absolute; + top: 50%; + margin-top: -7px; + } + .total { + background: #00A7AB; + } + .inbound { + background: #7FA054; + } + .outbound { + background: #35ADDA; + } + .internal { + background: #E48F3E; + } + .through { + background: #9FBC1D; + } + .other { + background: #98709B; } } } } } - .line-select-reference-line { - margin-left: 20px; - } - } - .line-value-active { - position: absolute; - height: 3px; - border-radius: 4px 0 0 0; - background: #046ECA; - top: 0; - z-index: 1; - transition: all linear .2s; - } - .line-value { - position: absolute; - top: 0; - left: 0; - display: flex; - .line-value-mpackets.mousemove-cursor { - border-top: 4px solid #D3D0D8; - z-index: 0; - } - .line-value-mpackets { - cursor: pointer; - padding: 16px 0 0 20px; - border-top: 4px solid transparent; - .line-value-unit { - .line-value-unit-number { - font-family: Helvetica-Bold; - font-size: 28px; - color: #353636; - margin-right: 4px; - } - .line-value-unit-number2 { - font-size: 0; - span { - font-size: 12px; - color: #575757; - font-weight: 400; - } - } - } - .line-value-mpackets-name { - position: relative; - display: flex; - .mpackets-name { - flex: 1; - padding-left: 19px; - } - .total,.inbound,.outbound,.internal,.through,.other { - width: 14px; - height: 14px; - border-radius: 50%; - position: absolute; - top: 50%; - margin-top: -7px; - } - .total { - background: #00A7AB; - } - .inbound { - background: #7FA054; - } - .outbound { - background: #35ADDA; - } - .internal { - background: #E48F3E; - } - .through { - background: #9FBC1D; - } - .other { - background: #98709B; - } - } - } } + } .metric.el-select__popper,.reference-line.el-select__popper { top: 216px !important; diff --git a/src/assets/css/components/views/charts2/npmEventsByType.scss b/src/assets/css/components/views/charts2/npmEventsByType.scss index 09522a6b..1d69a12d 100644 --- a/src/assets/css/components/views/charts2/npmEventsByType.scss +++ b/src/assets/css/components/views/charts2/npmEventsByType.scss @@ -39,6 +39,9 @@ height: 8px; margin-right: 5px; } + .npm-event-pie-legend-type-severity { + text-transform: capitalize; + } .critical { background: rgb(226,97,84); } diff --git a/src/assets/css/components/views/charts2/npmEventsHeader.scss b/src/assets/css/components/views/charts2/npmEventsHeader.scss index eeeef67c..a7854c2f 100644 --- a/src/assets/css/components/views/charts2/npmEventsHeader.scss +++ b/src/assets/css/components/views/charts2/npmEventsHeader.scss @@ -43,6 +43,7 @@ font-size: 12px; color: #575757; font-weight: 900; + text-transform: capitalize; } } .npm-header-body-total { diff --git a/src/assets/css/components/views/charts2/npmRecentEvents.scss b/src/assets/css/components/views/charts2/npmRecentEvents.scss index 9026176f..fae8d737 100644 --- a/src/assets/css/components/views/charts2/npmRecentEvents.scss +++ b/src/assets/css/components/views/charts2/npmRecentEvents.scss @@ -37,6 +37,7 @@ font-weight: 500; border-radius: 4px; padding: 0 6px; + text-transform: capitalize; } .critical { color: #E26154; diff --git a/src/utils/api.js b/src/utils/api.js index a999ff72..b49de665 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -161,10 +161,18 @@ export const api = { appPacketRetransPercent: '/interface/application/performance/overview/appPacketRetransPercent' }, location: { - + // 折线图 + thoughput: '/interface/application/performance/location/thoughput', + tcpConnectionEstablishLatency: '/interface/application/performance/location/tcpConnectionEstablishLatency', + httpResponseLatency: '/interface/application/performance/location/httpResponseLatency', + sslHandshakeLatency: '/interface/application/performance/location/sslHandshakeLatency', + packetsLoss: '/interface/application/performance/location/packetsLoss', + packetsRetrains: '/interface/application/performance/location/packetsRetrains', }, events: { - + list: '/interface/overview/event/list', + recentEvents: '/interface/overview/event/recentEvents', + dimensionEvents: '/interface/overview/event/dimensionEvents' } } } diff --git a/src/views/charts/charts/tools.js b/src/views/charts/charts/tools.js index 2b9eac76..b8a15ea0 100644 --- a/src/views/charts/charts/tools.js +++ b/src/views/charts/charts/tools.js @@ -477,7 +477,7 @@ export function stackedLineTooltipFormatter (params) { ` str += '' str += ` - ${unitConvert(item.data[1], 'number').join(' ')} + ${unitConvert(item.data[1], item.value[2]).join(' ')} ` str += '' }) diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue index 9e6fe649..885e3ec5 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue @@ -2,58 +2,62 @@