diff --git a/.gitignore b/.gitignore index 0192f93c..8ac1f6ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # IntelliJ IDEA .idea/ +.smarttomcat/ *.iml # Eclipse diff --git a/pom.xml b/pom.xml index ac575730..25efc0b0 100644 --- a/pom.xml +++ b/pom.xml @@ -611,6 +611,12 @@ com.github.xiaoymin knife4j-spring 2.0.5 + + + com.google.guava + guava + + com.github.xiaoymin diff --git a/src/main/webapp/IMG/icon_bz.png b/src/main/webapp/IMG/icon_bz.png new file mode 100644 index 00000000..0b70d41d Binary files /dev/null and b/src/main/webapp/IMG/icon_bz.png differ diff --git a/src/main/webapp/IMG/icon_gd.png b/src/main/webapp/IMG/icon_gd.png new file mode 100644 index 00000000..88229e7a Binary files /dev/null and b/src/main/webapp/IMG/icon_gd.png differ diff --git a/src/main/webapp/IMG/icon_gj.png b/src/main/webapp/IMG/icon_gj.png new file mode 100644 index 00000000..87204b71 Binary files /dev/null and b/src/main/webapp/IMG/icon_gj.png differ diff --git a/src/main/webapp/IMG/icon_jh.png b/src/main/webapp/IMG/icon_jh.png new file mode 100644 index 00000000..50bd60e3 Binary files /dev/null and b/src/main/webapp/IMG/icon_jh.png differ diff --git a/src/main/webapp/IMG/icon_jl.png b/src/main/webapp/IMG/icon_jl.png new file mode 100644 index 00000000..4652b585 Binary files /dev/null and b/src/main/webapp/IMG/icon_jl.png differ diff --git a/src/main/webapp/IMG/icon_qy.png b/src/main/webapp/IMG/icon_qy.png new file mode 100644 index 00000000..cd2a2499 Binary files /dev/null and b/src/main/webapp/IMG/icon_qy.png differ diff --git a/src/main/webapp/IMG/icon_wsc.png b/src/main/webapp/IMG/icon_wsc.png new file mode 100644 index 00000000..0b072574 Binary files /dev/null and b/src/main/webapp/IMG/icon_wsc.png differ diff --git a/src/main/webapp/IMG/screen1.png b/src/main/webapp/IMG/screen1.png index ca3c578c..fafd0ac4 100644 Binary files a/src/main/webapp/IMG/screen1.png and b/src/main/webapp/IMG/screen1.png differ diff --git a/src/main/webapp/IMG/wsgj.png b/src/main/webapp/IMG/wsgj.png new file mode 100644 index 00000000..91b4eab8 Binary files /dev/null and b/src/main/webapp/IMG/wsgj.png differ diff --git a/src/main/webapp/JS/comm.js b/src/main/webapp/JS/comm.js index 7129ee17..63447865 100644 --- a/src/main/webapp/JS/comm.js +++ b/src/main/webapp/JS/comm.js @@ -493,8 +493,95 @@ function getMpPic() { function initMenu() { var menu = $('#menu'); + + // 定义一个内部函数来执行DOM操作添加菜单 + var appendS223Menu = function() { + var $menu = $('#menu'); + + // 查找“纳管企业清单”所在的菜单项 + // 情况1: 一级菜单,名称在 span 中 + var $targetSpan = $menu.find("span").filter(function() { + return $(this).text().trim() === '纳管企业清单'; + }); + + var $targetLi = null; + + if ($targetSpan.length > 0) { + $targetLi = $targetSpan.closest('li'); + } else { + // 情况2: 二级菜单,名称直接在 a 标签中(可能是文本节点) + var $targetLink = $menu.find('a').filter(function() { + // 克隆节点,移除子元素(如图标),只获取自身的文本 + return $(this).clone().children().remove().end().text().trim() === '纳管企业清单'; + }); + if ($targetLink.length > 0) { + $targetLi = $targetLink.closest('li'); + } + } + + if ($targetLi && $targetLi.length > 0) { + var $treeviewMenu = $targetLi.find('> .treeview-menu'); + + // 确保 treeview-menu 存在 + if ($treeviewMenu.length === 0) { + $treeviewMenu = $(''); + $targetLi.append($treeviewMenu); + } + + // 检查是否已经添加过,防止重复添加 + // 注意:新菜单项可能直接是文本,也可能包含 i 标签 + var exists = false; + $treeviewMenu.find('li').each(function() { + if ($(this).text().indexOf('新源头GIS管理') > -1) { + exists = true; + } + }); + + if (!exists) { + // 根据层级决定样式,通常二级或三级菜单项不需要 span 包裹文字,或者保持一致 + // 这里的样式参考了 menuitems.jsp 中的 Level 3:
  • Name
  • + // 使用 addTab 函数而不是 refreshPage,以支持在 tab 页中打开(如果系统支持)或者在当前 iframe 打开 + // 检查 addTab 是否存在,如果存在则使用它,否则回退到 refreshPage + var newMenuHtml = ''; + if (typeof addTab === 'function') { + // 假设 addTab(id, name, url) + // /jsp/pipeline/pipelineDataList.jsp + // newMenuHtml = '
  • 新源头GIS管理
  • '; + newMenuHtml = '
  • 管道管理
  • '; + } else { + // 如果没有 addTab,尝试使用 iframe 加载或者直接跳转(但在框架内) + // refreshPage 通常是 location.replace,这会刷新整个页面。 + // 如果目标是内嵌,我们应该寻找 iframe 的加载方式。 + // 查看 comm.js 其他部分,发现有 refreshPage(url) 实现为 location.replace(url)。 + // 如果要内嵌,通常是设置某个 iframe 的 src。 + // 假设主内容区域是一个 iframe,或者支持通过 data-url 加载。 + // 暂时使用 refreshPage,但确认它是在当前窗口(iframe)中加载,而不是弹出新窗口。 + // 用户反馈说“不要新开特么弹窗”,可能是指 window.open 或者 target="_blank"。 + // refreshPage 使用 location.replace,是在当前窗口打开。 + // 如果当前窗口是整个 index 页面,那就会刷新整个页面。 + // 如果是 SPA 或者 iframe 架构,我们需要找到正确的方法。 + + // 观察 menuitems.jsp,发现二级菜单使用 addTab('${cumcl2.id}','${cumcl2.name}','${cumcl2.location}') + // 所以我们应该优先使用 addTab。 + // 如果 addTab 未定义(可能在 index.jsp 中定义),我们尝试模拟它。 + // 由于 comm.js 被 index.jsp 引用,addTab 应该可用。 + // newMenuHtml = '
  • 新源头GIS管理
  • '; + newMenuHtml = '
  • 管道管理
  • '; + } + $treeviewMenu.append(newMenuHtml); + + // 确保父菜单是展开状态(可选) + // $targetLi.addClass('active menu-open'); + } + } + }; + if (sessionStorage.menu != undefined) { $('#menu').html(sessionStorage.menu); + + // 即使是缓存加载,也尝试添加新菜单 + appendS223Menu(); + if (sessionStorage.m1 != undefined) { $('#' + sessionStorage.m1).addClass('treeview active menu-open') } @@ -521,8 +608,17 @@ function initMenu() { '' + ''; result = result + bigScreenHtml; + // 替换源头GIS管理页面链接为JSP + result = result.replace('newSourceGISPage.html', 'newSourceGISPage.jsp'); + result = result.replace('newGIS.html', 'newSourceGISPage.jsp'); + $('#menu').html(result); - sessionStorage.setItem("menu", result); + + // 在设置HTML后执行DOM注入 + appendS223Menu(); + + sessionStorage.setItem("menu", $('#menu').html()); // 保存修改后的HTML到sessionStorage + if (sessionStorage.m1 != undefined) { $('#' + sessionStorage.m1).addClass('treeview active menu-open') } diff --git a/src/main/webapp/jsp/bigScreen2.jsp b/src/main/webapp/jsp/bigScreen2.jsp index 0c2986a1..943a1ecc 100644 --- a/src/main/webapp/jsp/bigScreen2.jsp +++ b/src/main/webapp/jsp/bigScreen2.jsp @@ -394,7 +394,7 @@ type: 'bar', barWidth: '40%', itemStyle: { - color: 'rgba(255, 153, 0, 0.3)', + color: '#FF9900', borderColor: '#FF9900', borderWidth: 1 }, diff --git a/src/main/webapp/jsp/visual/newSourceGISPage.html b/src/main/webapp/jsp/visual/newSourceGISPage.html new file mode 100644 index 00000000..e60b3515 --- /dev/null +++ b/src/main/webapp/jsp/visual/newSourceGISPage.html @@ -0,0 +1,1746 @@ + + + + + + + 源头GIS管理 + + + + + + + + + + +
    +
    +
    + > +
    +
    +
    + 污水厂 +
    +
    + 泵站 +
    +
    + 企业 +
    +
    + 管道 +
    +
    + 管井 +
    +
    + 巡检计划 +
    +
    + 巡检记录 +
    +
    +
    + +
    +
    污水厂查询
    + +
    +
    + +
    +
    + + +
    + ~ +
    + + +
    +
    +
    +
    + +
    + + ~ + +
    +
    +
    + +
    + + + + + +
    +
    +
    + +
    + +
    + +
    + + + + + + + + + + + + + + + + + +
    序号选择名称出口流量
    (m³/h)
    入口流量
    (m³/h)
    状态设计能力
    (万吨/天)
    详细地址监测时间
    +
    +
    + + +
    +
    泵站查询
    + +
    +
    + +
    +
    + + +
    + ~ +
    + + +
    +
    +
    +
    + +
    + + + + +
    +
    +
    + +
    + +
    + +
    + + + + + + + + + + + + + + +
    序号泵站名称液位(m)流量(m³/h)状态监测时间
    +
    +
    + + +
    +
    企业查询
    + +
    +
    + +
    +
    + + +
    + ~ +
    + + +
    +
    +
    +
    + +
    + + + + +
    +
    +
    + +
    + +
    + +
    + + + + + + + + + + + + + + + +
    序号编号名称地址污水厂编号排放编号日排放量日排放点位
    +
    +
    + + +
    +
    管道查询
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    选择序号管道名称管径(mm)管长(m)起点埋深(m)终点埋深(m)起点地面高程(m)终点地面高程(m)管线内底标高(m)
    汇总:--2561416.00109253.23--
    +
    +
    + + +
    +
    管井查询
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + + + + + + + + + + + + + + + + +
    选择序号管井名称埋深(m)井底标高(m)地面高程(m)规格(mm)经度纬度
    +
    +
    +
    +
    巡检计划
    +
    +
    + + +
    +
    + +
    +
    +
    + + + + + + + + + + + + + + + +
    选择序号任务名称启用状态巡检时长巡检间隔开始时间结束时间
    +
    +
    +
    +
    巡检记录
    +
    +
    +
    +
    +
    + + +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + + + + + + + + + + + + + + +
    选择序号任务名称完成状态计划开始时间计划结束时间实际完成时间
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/jsp/visual/newSourceGISPage.jsp b/src/main/webapp/jsp/visual/newSourceGISPage.jsp new file mode 100644 index 00000000..29cc8331 --- /dev/null +++ b/src/main/webapp/jsp/visual/newSourceGISPage.jsp @@ -0,0 +1,1744 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + + + + + + 源头GIS管理 + + + + + + + + + + +
    +
    +
    + > +
    +
    +
    + 污水厂 +
    +
    + 泵站 +
    +
    + 企业 +
    +
    + 管道 +
    +
    + 管井 +
    +
    + 巡检计划 +
    +
    + 巡检记录 +
    +
    +
    + +
    +
    污水厂查询
    + +
    +
    + +
    +
    + + +
    + ~ +
    + + +
    +
    +
    +
    + +
    + + ~ + +
    +
    +
    + +
    + + + + + +
    +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + +
    序号选择名称出口流量
    (m³/h)
    入口流量
    (m³/h)
    状态设计能力
    (万吨/天)
    详细地址监测时间
    +
    + + +
    +
    泵站查询
    + +
    +
    + +
    +
    + + +
    + ~ +
    + + +
    +
    +
    +
    + +
    + + + + +
    +
    +
    + +
    + +
    + +
    + + + + + + + + + + + + + + +
    序号泵站名称液位(m)流量(m³/h)状态监测时间
    +
    +
    + + +
    +
    企业查询
    + +
    +
    + +
    +
    + + +
    + ~ +
    + + +
    +
    +
    +
    + +
    + + + + +
    +
    +
    + +
    + +
    + +
    + + + + + + + + + + + + + + + +
    序号编号名称地址污水厂编号排放编号日排放量日排放点位
    +
    +
    + + +
    +
    管道查询
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    选择序号管道名称管径(mm)管长(m)起点埋深(m)终点埋深(m)起点地面高程(m)终点地面高程(m)管线内底标高(m)
    汇总:--2561416.00109253.23--
    +
    +
    + + +
    +
    管井查询
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + + + + + + + + + + + + + + + + +
    选择序号管井名称埋深(m)井底标高(m)地面高程(m)规格(mm)经度纬度
    +
    +
    +
    +
    巡检计划
    +
    +
    + + +
    +
    + +
    +
    +
    + + + + + + + + + + + + + + + +
    选择序号任务名称启用状态巡检时长巡检间隔开始时间结束时间
    +
    +
    +
    +
    巡检记录
    +
    +
    +
    +
    +
    + + +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + + + + + + + + + + + + + + +
    选择序号任务名称完成状态计划开始时间计划结束时间实际完成时间
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/jsp/z_bigScreen/bigScreen1.html b/src/main/webapp/jsp/z_bigScreen/bigScreen1.html index a8cc4c04..a470a568 100644 --- a/src/main/webapp/jsp/z_bigScreen/bigScreen1.html +++ b/src/main/webapp/jsp/z_bigScreen/bigScreen1.html @@ -4,6 +4,8 @@ 水厂大屏展示 + +
    - +
    +
    +
    6040
    +
    4197
    +
    12356
    +
    + + +
    +
    +
    + + +
    +
    +
    0
    +
    200
    +
    4.89
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    300
    +
    200
    +
    1
    +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    参数当前值平均值最高最低指标
    COD (mg/L)13.18612.99614.66611.920.000–20.000
    TP (mg/L)13.18612.99614.66611.920.000–20.000
    NH3–N (mg/L)13.18612.99614.66611.920.000–20.000
    TN (mg/L)13.18612.99614.66611.920.000–20.000
    PH (mg/L)13.18612.99614.66611.920.000–20.000
    SS13.18612.99614.66611.920.000–20.000
    温度(℃)13.18612.99614.66611.920.000–20.000
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    + +
    + +
    + +
    + + +
    + +
    + +
    +
    +
    + + +
    + +
    + diff --git a/src/main/webapp/jsp/z_bigScreen/bigScreen2.html b/src/main/webapp/jsp/z_bigScreen/bigScreen2.html index 3726427a..300a19af 100644 --- a/src/main/webapp/jsp/z_bigScreen/bigScreen2.html +++ b/src/main/webapp/jsp/z_bigScreen/bigScreen2.html @@ -1,4 +1,4 @@ - +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> @@ -14,7 +14,7 @@ padding: 0; width: 100%; height: 100%; - overflow: auto; + overflow: auto; /* Allow scrolling if window is smaller */ background-color: #030829; } .screen-container { @@ -394,10 +394,10 @@ type: 'bar', barWidth: '40%', itemStyle: { - color: 'rgba(255, 170, 0, 0.4)', - borderColor: '#ffaa00', - borderWidth: 1 - }, + color: '#FF9900', + borderColor: '#FF9900', + borderWidth: 1 + }, markPoint: { symbol: 'pin', symbolSize: 50, @@ -407,7 +407,7 @@ fontSize: 12 }, itemStyle: { - color: '#ffaa00' + color: '#FF9900' }, data: [ { type: 'max', name: 'Max' }, @@ -423,11 +423,11 @@ show: true, position: 'end', formatter: '{c}', - color: '#ffaa00' + color: '#FF9900' }, lineStyle: { type: 'dotted', - color: '#ffaa00' + color: '#FF9900' } } }