From 52d90d490b26169a1da9e132abde933ac40c5051 Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Mon, 29 Sep 2025 09:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=8A=A5=E8=AD=A6=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=9D=A1=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 ++-- .../homeIndex/components/RealTimeAlarm.vue | 34 +++++++++++++++---- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/.env.development b/.env.development index 4e1dd24..cdbfb0f 100644 --- a/.env.development +++ b/.env.development @@ -5,11 +5,11 @@ VITE_APP_TITLE = 云平台管理系统 VITE_APP_ENV = 'development' # 开发环境 - VITE_APP_BASE_API = 'https://fuyuanshen.com/backend' -# VITE_APP_BASE_API = 'https://www.cnxhyc.com/xh' + #VITE_APP_BASE_API = 'https://fuyuanshen.com/backend' + #VITE_APP_BASE_API = 'https://www.cnxhyc.com/jq' #代永飞接口 -#VITE_APP_BASE_API = 'http://457102h2d6.qicp.vip:24689' +VITE_APP_BASE_API = 'http://192.168.2.23:8000' # 应用访问路径 例如使用前缀 /admin/ diff --git a/src/views/homeIndex/components/RealTimeAlarm.vue b/src/views/homeIndex/components/RealTimeAlarm.vue index 5ebb21d..8e134ae 100644 --- a/src/views/homeIndex/components/RealTimeAlarm.vue +++ b/src/views/homeIndex/components/RealTimeAlarm.vue @@ -5,7 +5,7 @@
设备类型
设备IMEI
报警事件
-
报警位置
+
报警位置
@@ -18,11 +18,11 @@ 0: '强制报警', 1: '撞击闯入', 2: '自动报警', - 3: '电子围栏告警' - }[item.deviceAction]}} - + 3: '电子围栏告警' + }[item.deviceAction] }} +
-
{{ item.location }}
+
{{ item.location }}
@@ -79,12 +79,31 @@ onMounted(() => { color: #fff; } +/* Webkit浏览器滚动条样式 */ +.alarm-table-body::-webkit-scrollbar { + width: 8px; +} + +.alarm-table-body::-webkit-scrollbar-track { + background: transparent; + border-radius: 4px; +} + +.alarm-table-body::-webkit-scrollbar-thumb { + background: #267AD0; + border-radius: 4px; +} + +.alarm-table-body::-webkit-scrollbar-thumb:hover { + background: #267AD0; +} + .alarm-item { display: flex; border-bottom: 1px dashed rgba(100, 150, 200, 0.3); font-size: 0.6vw; align-items: center; - padding: 0.5vw; + padding: 0.8vw; } .item-cell { @@ -92,6 +111,9 @@ onMounted(() => { text-align: center; } +// .item-cell.loaction{ +// color: #267AD0; +// } .alarm-event { color: #ff5252; /* 报警事件红色显示 */