From bc5a1f69197d5c2b92f6f999b678c7794846ecb9 Mon Sep 17 00:00:00 2001 From: chuguofei <1633295391@qq.com> Date: Mon, 12 Jun 2023 21:39:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/oss/admin/index.jsp | 2 +- .../WEB-INF/oss/base/common/resource_lib.jsp | 3 +- src/main/webapp/WEB-INF/oss/iot/alarm_all.jsp | 166 ++- .../webapp/WEB-INF/oss/iot/alarm_manager.jsp | 243 ++-- .../WEB-INF/oss/iot/history_sensor_data.jsp | 8 +- src/main/webapp/WEB-INF/oss/iot/index.jsp | 2 +- src/main/webapp/WEB-INF/oss/iot/monitor.jsp | 1182 +++++++++-------- .../webapp/WEB-INF/oss/iot/task_record.jsp | 167 ++- src/main/webapp/WEB-INF/web.xml | 122 +- .../wechat/iot/common/resource_lib.jsp | 1 + src/main/webapp/css/oss/iot/monitor.css | 1 - .../webapp/css/oss/iot/monitor_device.css | 3 - src/main/webapp/lib/tailwind/tailwind.js | 63 + src/main/webapp/page/visual/index.html | 10 +- 14 files changed, 1081 insertions(+), 892 deletions(-) create mode 100644 src/main/webapp/lib/tailwind/tailwind.js diff --git a/src/main/webapp/WEB-INF/oss/admin/index.jsp b/src/main/webapp/WEB-INF/oss/admin/index.jsp index e3edfbc..6456cf5 100644 --- a/src/main/webapp/WEB-INF/oss/admin/index.jsp +++ b/src/main/webapp/WEB-INF/oss/admin/index.jsp @@ -15,7 +15,7 @@ - + diff --git a/src/main/webapp/WEB-INF/oss/base/common/resource_lib.jsp b/src/main/webapp/WEB-INF/oss/base/common/resource_lib.jsp index 73b31f5..82593aa 100644 --- a/src/main/webapp/WEB-INF/oss/base/common/resource_lib.jsp +++ b/src/main/webapp/WEB-INF/oss/base/common/resource_lib.jsp @@ -30,10 +30,11 @@ + <% } %> - + diff --git a/src/main/webapp/WEB-INF/oss/iot/alarm_all.jsp b/src/main/webapp/WEB-INF/oss/iot/alarm_all.jsp index 0d1eb9a..bb0d07e 100644 --- a/src/main/webapp/WEB-INF/oss/iot/alarm_all.jsp +++ b/src/main/webapp/WEB-INF/oss/iot/alarm_all.jsp @@ -1,50 +1,68 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ page import="com.lp.cfg.ProConfig"%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> + pageEncoding="UTF-8" %> +<%@ page import="com.lp.cfg.ProConfig" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> -<%@ include file="/WEB-INF/oss/iot/common/variable.jsp"%> -<%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp"%> -<%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp"%> - - + <%@ include file="/WEB-INF/oss/iot/common/variable.jsp" %> + <%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp" %> + <%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp" %> + + -
- -
-
-
-
-
-
- 项目名称: - - - 报警级别: - - - 时间区间: - - ~ - - -
- -
+
+
+
+
+
+ +
+ +
+
+ 项目名称: + +
+ +
+ 报警级别: + +
+ +
+ 时间区间: + + ~ + +
+
+ +
+ +
+
+ +
+ +
-
-
-
-
-
-
-
+ { name:'操作', type:'self', value_callback :'value_function','width':'5%'}]"> +
+
+
+
+
+ + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/oss/iot/alarm_manager.jsp b/src/main/webapp/WEB-INF/oss/iot/alarm_manager.jsp index 60c0a62..d54bdf2 100644 --- a/src/main/webapp/WEB-INF/oss/iot/alarm_manager.jsp +++ b/src/main/webapp/WEB-INF/oss/iot/alarm_manager.jsp @@ -1,48 +1,72 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ page import="com.lp.cfg.ProConfig"%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> + pageEncoding="UTF-8" %> +<%@ page import="com.lp.cfg.ProConfig" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> -<%@ include file="/WEB-INF/oss/iot/common/variable.jsp"%> -<%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp"%> -<%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp"%> - - + <%@ include file="/WEB-INF/oss/iot/common/variable.jsp" %> + <%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp" %> + <%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp" %> + + -
-
-
-
-
-
-
- 项目名称: - - 传感器名称: - - - - - 报警级别: - - - - - -
- -
+
+
+
+
+
+ +
+ +
+
+ 项目名称: + +
+ +
+ 传感器名称: + + +
+ +
+ 报警级别: + +
+
+ +
+ + + + +
+
+ +
+ +
-
-
-
-
-
-
-
+ { name:'操作', type:'self', value_callback :'value_function','width':'10%'}]"> +
+
+
+
+
+ + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/oss/iot/history_sensor_data.jsp b/src/main/webapp/WEB-INF/oss/iot/history_sensor_data.jsp index 7b23a2f..a2046fd 100644 --- a/src/main/webapp/WEB-INF/oss/iot/history_sensor_data.jsp +++ b/src/main/webapp/WEB-INF/oss/iot/history_sensor_data.jsp @@ -9,7 +9,9 @@ <%@ include file="/WEB-INF/oss/iot/common/variable.jsp"%> <%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp"%> <%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp"%> - + + -
- -
- -
-
- 项目列表 -
-
    - -
  • - - class="active" - - - - - class="active" - - - sid="${obj.id}"> -  ${obj.name } -
  • -
    -
-
-
-
-
- - -
-
- -
-
-
- -
-
-
  - {0}     {1} - 设置参数 - 设备号:{2} -
-
- {3} -
-
-
- - -
-
-
-
-
- image -
-
-
{0}
-
{2}
-
-
-
-
- {3} -<%-- 下发--%> - 下发 -
-
- 详情 -
-
-
- -
-
-
-
-
- image -
-
-
{0}
-
{2}
-
-
-
-
- - -<%-- 下发--%> - 下发 -
-
- 详情 -
-
-
- -
-
-
-
-
- image -
-
-
{0}
-
{2}
-
-
-
-
- -
-
- 详情 -
-
-
- -
-
-
-
-
- image -
-
-
{0}
-
{2}
-
-
-
-
- {3} - 下发 -
-
- 详情 -
-
-
- -
-
-
-
-
- image -
-
-
{0}
-
{2}
-
-
-
-
- {3} -
-
- 详情 -
-
-
-
-
+
+ +
+ +
+
+ 项目列表 +
+
    + +
  • + + class="active" + + + + + class="active" + + + sid="${obj.id}"> +  ${obj.name } +
  • +
    +
+
+
+
+
+ + +
+
+ +
+
+
+ +
+
+
  + {0}     {1} + 设置参数 + 设备号:{2} +
+
+ {3} +
+
+
+ + +
+
+
+ +
+
{0}
+
{2}
+
+
+
+ {3} + 下发 +
+ + 详情 +  >> + +
+
+ + +
+
+
+ +
+
{0}
+
{2}
+
+
+
+ + 下发 +
+ + 详情 +  >> + +
+
+ + + +
+
+
+ +
+
{0}
+
{2}
+
+
+
+ +
+ + 详情 +  >> + +
+
+ + +
+
+
+ +
+
{0}
+
{2}
+
+
+
+ {3} + 下发 +
+ + 详情 +  >> + +
+
+ + + +
+
+
+ +
+
{0}
+
{2}
+
+
+
+ {3} +
+ + 详情 +  >> + +
+
+
+
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/oss/iot/task_record.jsp b/src/main/webapp/WEB-INF/oss/iot/task_record.jsp index bb51c62..08a4393 100644 --- a/src/main/webapp/WEB-INF/oss/iot/task_record.jsp +++ b/src/main/webapp/WEB-INF/oss/iot/task_record.jsp @@ -1,53 +1,74 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ page import="com.lp.cfg.ProConfig"%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> + pageEncoding="UTF-8" %> +<%@ page import="com.lp.cfg.ProConfig" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> - <%@ include file="/WEB-INF/oss/iot/common/variable.jsp"%> - <%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp"%> - <%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp"%> - - + <%@ include file="/WEB-INF/oss/iot/common/variable.jsp" %> + <%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp" %> + <%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp" %> + +
- -
-
-
-
-
-
- 项目名称: - <%----%> - - - 执行结果: - + +
+
+
+
+
+
- 时间区间: - - ~ - - -
+
-
+
+ 项目名称: + <%----%> + +
+ +
+ 执行结果: + +
+ +
+ 时间区间: + + ~ + +
+
+ +
+ +
+
+ + + +
+ +
-
-
-
-
-
-
+ {name:'时间','type':'time','value':'task_time','width':'10%'}]"> +
+
+
+
+
+
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 1d34bc8..a2b1a80 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -1,66 +1,66 @@ - - - index.jsp - - - encodingFilter - org.springframework.web.filter.CharacterEncodingFilter - - encoding - UTF-8 - - - forceEncoding - true - - - - encodingFilter - /* - - - contextConfigLocation - - classpath:rest-content.xml - - + xmlns:web="http://java.sun.com/xml/ns/javaee" xmlns:websocket="http://www.springframework.org/schema/websocket" + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd http://www.springframework.org/schema/websocket http://www.springframework.org/schema/websocket/spring-websocket.xsd" + id="WebApp_ID" version="3.0"> + + + index.jsp + + + encodingFilter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + UTF-8 + + + forceEncoding + true + + + + encodingFilter + /* + + + contextConfigLocation + + classpath:rest-content.xml + + - - header - com.lp.HeaderFilter - - - header - /* - + + header + com.lp.HeaderFilter + + + header + /* + - - org.springframework.web.context.ContextLoaderListener - - - spring - com.lp.Dispatcher - - contextConfigLocation - classpath:rest-servlet.xml - - 1 - - - spring - /service/* - - - spring - - - - spring - /vp/* - + + org.springframework.web.context.ContextLoaderListener + + + spring + com.lp.Dispatcher + + contextConfigLocation + classpath:rest-servlet.xml + + 1 + + + spring + /service/* + + + spring + + + + spring + /vp/* + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/wechat/iot/common/resource_lib.jsp b/src/main/webapp/WEB-INF/wechat/iot/common/resource_lib.jsp index 3729a33..46464bf 100644 --- a/src/main/webapp/WEB-INF/wechat/iot/common/resource_lib.jsp +++ b/src/main/webapp/WEB-INF/wechat/iot/common/resource_lib.jsp @@ -15,6 +15,7 @@ + - + + - +