From 7e33d014d47abdecf11897b060d876c12af1a835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Tue, 10 Oct 2023 15:59:37 +0800 Subject: [PATCH 1/3] =?UTF-8?q?alarm=20=E6=A8=A1=E5=9D=97=20SERVICE=20AND?= =?UTF-8?q?=20PROCESS=20tab=20=E9=A1=B5=E9=9D=A2=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E5=8F=8A=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20alarm=20=E6=A8=A1=E5=9D=97=20CPU=20tab=20=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=9B=BE=E8=A1=A8=E6=A0=87=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../serverMonitor/instances/cpu.vue | 3 +- .../instances/serviceProcess.vue | 29 +++++++++++++------ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue b/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue index 5b75ac1..43dbf83 100644 --- a/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue +++ b/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue @@ -813,7 +813,6 @@ export default { &-item { width: 100%; height: 100%; - // background: #ade6ee; &-chart { width: 100%; height: calc(100% - 40px); @@ -831,7 +830,7 @@ export default { font-size: 14px; font-weight: normal; color: #ffffff; - margin-left: 10px; + // margin-left: 5px; span { color: #00e9fe; background: none; diff --git a/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue b/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue index 43a213a..00d2669 100644 --- a/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue +++ b/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue @@ -216,14 +216,26 @@ export default { processCpu: { content: null, legend: ['mysqld.exe', 'svchost.exe'], - color: ['#2d5cd3', '#60cae8', '#1ab060', '#ffbf44', '#e86954', 'red'], + color: [ + ['rgb(45, 92, 211)', 'rgba(45, 92, 211,0)'], + ['rgb(96, 202, 232)', 'rgba(96, 202, 232,0)'], + ['rgb(26, 176, 96)', 'rgba(26, 176, 96,0)'], + ['rgb(255, 191, 68)', 'rgba(255, 191, 68,0)'], + ['rgb(232, 105, 84)', 'rgba(232, 105, 84,0)'], + ], xData: [], data: [], }, processMenbry: { content: null, legend: ['mysqld.exe', 'svchost.exe'], - color: ['#2d5cd3', '#60cae8', '#1ab060', '#ffbf44', '#e86954', 'red'], + color: [ + ['rgb(45, 92, 211)', 'rgba(45, 92, 211,0)'], + ['rgb(96, 202, 232)', 'rgba(96, 202, 232,0)'], + ['rgb(26, 176, 96)', 'rgba(26, 176, 96,0)'], + ['rgb(255, 191, 68)', 'rgba(255, 191, 68,0)'], + ['rgb(232, 105, 84)', 'rgba(232, 105, 84,0)'], + ], xData: [], data: [], }, @@ -242,7 +254,6 @@ export default { showSizeChanger: true, total: 0, }, - xData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], rankData: {}, } }, @@ -525,12 +536,12 @@ export default { type: 'line', name: item.name, symbol: 'none', - itemStyle: { normal: { color: this.processCpu.color[index] } }, + itemStyle: { normal: { color: this.processCpu.color[index][0] } }, areaStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: this.processCpu.color[index] }, - { offset: 1, color: 'rgba(255,255,255,0)' }, + { offset: 0, color: this.processCpu.color[index][0] }, + { offset: 1, color: this.processCpu.color[index][1] }, ]), }, }, @@ -599,12 +610,12 @@ export default { type: 'line', name: item.name, symbol: 'none', - itemStyle: { normal: { color: this.processCpu.color[index] } }, + itemStyle: { normal: { color: this.processMenbry.color[index][0] } }, areaStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: this.processCpu.color[index] }, - { offset: 1, color: 'rgba(255,255,255,0)' }, + { offset: 0, color: this.processMenbry.color[index][0] }, + { offset: 1, color: this.processMenbry.color[index][1] }, ]), }, }, From 1de8300df304e875c431a674ae5391c5070ba4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Tue, 10 Oct 2023 17:28:53 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../serverMonitor/instances/createRules.vue | 254 ++++++++---------- 1 file changed, 114 insertions(+), 140 deletions(-) diff --git a/src/views/abnormalAlarm/serverMonitor/instances/createRules.vue b/src/views/abnormalAlarm/serverMonitor/instances/createRules.vue index 9feda96..af1d92a 100644 --- a/src/views/abnormalAlarm/serverMonitor/instances/createRules.vue +++ b/src/views/abnormalAlarm/serverMonitor/instances/createRules.vue @@ -1,48 +1,38 @@ diff --git a/src/style.less b/src/style.less index e9aff9a..45f7b8a 100644 --- a/src/style.less +++ b/src/style.less @@ -67,7 +67,7 @@ body { @table-border-radius-base: 0; @table-padding-vertical-sm: 2px; @table-padding-vertical: 6px; -@table-padding-horizontal: 8px; +@table-padding-horizontal: 8px; @table-row-hover-bg: #0e505f; .ant-table { @@ -188,9 +188,8 @@ body { } &-time-picker-combobox { background-color: @modalBg !important; - border-color: @formInputBorderColor !important + border-color: @formInputBorderColor !important; } - &-picker { width: 100%; @@ -202,7 +201,7 @@ body { color: #00e9fe !important; } &-select { - background-color: @formInputBgColor !important + background-color: @formInputBgColor !important; } } @@ -275,7 +274,7 @@ body { } } } -.ant-calendar-range .ant-calendar-in-range-cell::before{ +.ant-calendar-range .ant-calendar-in-range-cell::before { background: #1397a3; } @@ -341,7 +340,8 @@ body { &-selected-day &-date, &-date:hover { - background-color: #072f32 !important; + background-color: #0b4f54 !important; + // background-color: #072f32 !important; } } @@ -382,10 +382,10 @@ body { } // 输入框样式 -.ant-calendar-input{ +.ant-calendar-input { background-color: transparent !important; } -.ant-calendar-range-middle{ +.ant-calendar-range-middle { color: #fff; } .ant-input { @@ -639,7 +639,7 @@ input[type='number']::-webkit-outer-spin-button { } } } -.ant-select-selection--multiple .ant-select-selection__choice{ +.ant-select-selection--multiple .ant-select-selection__choice { max-width: 60%; }