From 2af63eb68c08a45dac49ff95487d2b771b755f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Tue, 29 Oct 2024 17:44:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=8A=E8=AD=A6=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=B1=95=E7=A4=BA=E9=94=99=E8=AF=AF=20?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E5=91=8A=E8=AD=A6=E5=88=97=E8=A1=A8=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=B1=95=E7=A4=BA20=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../new_dashboard_component/AlarmHandling.vue | 14 +++++++------- .../DailyAlarmStatistics.vue | 4 ++-- .../new_dashboard_component/WarningList.vue | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/AlarmHandling.vue b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/AlarmHandling.vue index 91932b2..0a56b47 100644 --- a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/AlarmHandling.vue +++ b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/AlarmHandling.vue @@ -22,7 +22,7 @@ import LineCharts from './echarts/LineCharts.vue' import ItemCard from './ItemCard.vue' import { getSevenDayWarnTrend } from 'services/system/dashboard' import echarts from '@cmp/cmp-echarts/hooks/echarts' -export const colorMap = ['rgba(255, 0, 0, 1)', 'rgba(245, 167, 45, 1)', 'rgba(18, 185, 242, 1)', 'rgba(24, 144, 255, 1)'] +export const colorMap = ['rgba(24, 144, 255, 1)', 'rgba(18, 185, 242, 1)', 'rgba(245, 167, 45, 1)', 'rgba(255, 0, 0, 1)', , ,] const chartSetting = { color: colorMap, legend: { @@ -37,7 +37,7 @@ export default { setup() { const countData = ref([ { - name: '紧急告警', + name: '严重告警', value: 0 }, { @@ -49,7 +49,7 @@ export default { value: 0 }, { - name: '提示告警', + name: '警告告警', value: 0 } ]) @@ -62,10 +62,10 @@ export default { if (!res.success) return const names = Object.keys(res.data) const nameMap = { - 1: '紧急告警', - 2: '重要告警', - 3: '次要告警', - 4: '提示告警' + 4: '严重告警', + 3: '重要告警', + 2: '次要告警', + 1: '警告告警' } if (!names.length) return // 左侧 diff --git a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/DailyAlarmStatistics.vue b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/DailyAlarmStatistics.vue index 1b327c7..326107b 100644 --- a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/DailyAlarmStatistics.vue +++ b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/DailyAlarmStatistics.vue @@ -19,7 +19,7 @@ export default { loaded: false, todayAlarmData: [ { - name: '紧急告警', + name: '严重告警', value: 0 }, { @@ -31,7 +31,7 @@ export default { value: 0 }, { - name: '提示告警', + name: '警告告警', value: 0 } ], diff --git a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue index bfdb0d8..285ce23 100644 --- a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue +++ b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/WarningList.vue @@ -53,7 +53,7 @@ export default { tableList: [], params: { page: 1, - rows: 10 + rows: 20 }, total: 0, dialog: { @@ -89,7 +89,7 @@ export default { icon: 次要 }, 1: { - text: '常规告警', + text: '警告告警', icon: 常规 } }