From cadcf4f5b412b2eb7cef5078978d13dd7414fec2 Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 18 Dec 2024 17:02:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ems):=20=E4=BC=98=E5=8C=96=E6=B8=A9?= =?UTF-8?q?=E5=BA=A6=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2=E5=92=8C=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 TWTempertureDataMapper.xml 中的查询语句,增加时间范围限制 - 更新 board 页面的 AlarmInfo 数据处理方式 - 调整 baseAlarmInfo 页面的字段显示 - 移除不必要的权限配置 --- .../ems/record/TWTempertureDataMapper.xml | 23 ++++++++++++++++++- .../framework/config/SecurityConfig.java | 6 +---- .../src/views/base/baseAlarmInfo/index.vue | 8 +++---- ruoyi-ui/src/views/board/index.vue | 4 ++-- ruoyi-ui/src/views/board/index2.vue | 4 ++-- 5 files changed, 31 insertions(+), 14 deletions(-) diff --git a/ruoyi-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml b/ruoyi-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml index 449e4a9..5a95377 100644 --- a/ruoyi-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml +++ b/ruoyi-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml @@ -245,10 +245,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + select objid, + monitorId, + collectTime, + tempreture, + humidity, + illuminance, + noise, + concentration, + recodeTime, + alarmType, + pm1, + pm2, + pm10, + standby + from T_W_TempertureData + WHERE + recodeTime >= date_sub(CURDATE(), INTERVAL 7 DAY) + ORDER BY objid DESC + LIMIT 1000 diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index ddb83fa..629e2ef 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -128,16 +128,12 @@ public class SecurityConfig .antMatchers("/ems/base/baseMonitorInfo/monitorInfo").permitAll() .antMatchers("/ems/base/baseMonitorInfo/**").permitAll() .antMatchers("/ems/record/recordIOTInstant/selectLastTWTempertureData").permitAll() - .antMatchers("/ems/base/baseMonitorInfo/list").permitAll() + .antMatchers("/ems/base/baseMonitorInfo/monitorInfo/**").permitAll() .antMatchers("/record/recordBusbarAlarm/recordBusbarAlarmList").permitAll() // 允许匿名访问 看板 下所有页面 .antMatchers("/board/**").permitAll() - .antMatchers("/board/index2").permitAll() - .antMatchers("/board/index1").permitAll() - .antMatchers("/board/index").permitAll() - .antMatchers("/board/index3").permitAll() // 允许匿名访问 字典类型 .antMatchers("/system/dict/data/type/**").permitAll() diff --git a/ruoyi-ui/src/views/base/baseAlarmInfo/index.vue b/ruoyi-ui/src/views/base/baseAlarmInfo/index.vue index 710583e..335fee2 100644 --- a/ruoyi-ui/src/views/base/baseAlarmInfo/index.vue +++ b/ruoyi-ui/src/views/base/baseAlarmInfo/index.vue @@ -175,7 +175,7 @@ - +