350 lines
18 KiB
Plaintext
350 lines
18 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8" %>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
|
<%@ page import="com.sipai.entity.base.ServerObject" %>
|
|
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %>
|
|
<%String contextPath = request.getContextPath();%>
|
|
<!DOCTYPE html>
|
|
<!-- <html lang="zh-CN"> -->
|
|
<!-- BEGIN HEAD -->
|
|
<head>
|
|
<title><%= ServerObject.atttable.get("TOPTITLE")%>
|
|
</title>
|
|
|
|
<!-- 引用页头及CSS页-->
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
|
<!-- 引入daterangepicker-->
|
|
<link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.css"/>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/moment.min.js"
|
|
charset="utf-8"></script>
|
|
<script type="text/javascript"
|
|
src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.js"
|
|
charset="utf-8"></script>
|
|
|
|
<style type="text/css">
|
|
</style>
|
|
<script type="text/javascript">
|
|
var color = [
|
|
"#899BFF",
|
|
"#35C837",
|
|
"#89E1FF",
|
|
"#1949EE"
|
|
];
|
|
let series1 = [];
|
|
let legendName1 = [];
|
|
|
|
$(function () {
|
|
let windowHeight = $(window).height();
|
|
$('#main').css("height", (windowHeight - 30) + "px");
|
|
|
|
getData();
|
|
})
|
|
|
|
function getData(modelType) {
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: ext.contextPath + "/digitalProcess/digitalTechnologist/getJspData.do",
|
|
dataType: 'json',
|
|
data: {
|
|
unitId: unitId,
|
|
jspId: 'externalReflux',
|
|
modelType: modelType
|
|
// time: '2022-06-01'
|
|
},
|
|
async: true,
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
if (data.length > 0) {
|
|
console.log(data)
|
|
for (let i = 0; i < data.length; i++) {
|
|
let content = data[i];
|
|
if (content.getValueType == 'getMpMainValue') {
|
|
if (content.mPoint != null) {
|
|
let outValue = toThousands(content.mPoint.parmvalue);
|
|
// if(isNumber(outValue)){
|
|
// outValue = toThousands(outValue);
|
|
// }
|
|
if (content.visualCacheData != null) {
|
|
if (content.visualCacheData.unit != null) {
|
|
outValue += content.visualCacheData.unit;
|
|
}
|
|
}
|
|
$('.' + content.elementCode).text(outValue);
|
|
} else {
|
|
$('.' + content.elementCode).text('-');
|
|
}
|
|
} else if (content.getValueType == 'getRedisData') {
|
|
if (content.value != null) {
|
|
let redisValue = eval("(" + content.value + ")");
|
|
// console.log(redisValue)
|
|
let outValue = redisValue.mpvalue;
|
|
if (isNumber(outValue)) {
|
|
if (content.visualCacheData != null) {
|
|
if (content.visualCacheData.numtail != null) {
|
|
outValue = Number(outValue).toFixed(Number(content.visualCacheData.numtail));
|
|
}
|
|
}
|
|
outValue = toThousands(outValue);
|
|
}
|
|
if (content.visualCacheData != null) {
|
|
if (content.visualCacheData.unit != null) {
|
|
outValue += content.visualCacheData.unit;
|
|
}
|
|
}
|
|
$('.' + content.elementCode).text(outValue);
|
|
} else {
|
|
$('.' + content.elementCode).text('-');
|
|
}
|
|
} else if (content.getValueType == 'getTHDayHistory') {
|
|
if (content.elementCode == 'chartleft') {
|
|
legendName1.push(content.name);
|
|
series1.push({
|
|
name: content.name,
|
|
type: 'line',
|
|
data: content.jsonArray,
|
|
yAxisIndex: 0
|
|
})
|
|
}else if (content.elementCode == 'chartright') {
|
|
legendName1.push(content.name);
|
|
series1.push({
|
|
name: content.name,
|
|
type: 'line',
|
|
data: content.jsonArray,
|
|
yAxisIndex: 1
|
|
})
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
getChart();
|
|
}
|
|
});
|
|
}
|
|
|
|
function getChart() {
|
|
let myChart = echarts.init(document.getElementById("chart"));
|
|
let option = {
|
|
color: color,
|
|
animation: true,
|
|
title: {
|
|
text: '预测外流比',
|
|
left: 'center',
|
|
top: '0'
|
|
},
|
|
tooltip: {
|
|
trigger: 'axis',
|
|
},
|
|
grid: {
|
|
left: '2%', // 与容器左侧的距离
|
|
right: '2%', // 与容器右侧的距离
|
|
// top: '8%', // 与容器顶部的距离
|
|
bottom: '1%', // 与容器底部的距离
|
|
containLabel: true
|
|
},
|
|
legend: {
|
|
data: legendName1,
|
|
left: 'right',
|
|
top: '10'
|
|
},
|
|
xAxis: {
|
|
type: 'time'
|
|
},
|
|
yAxis: [
|
|
{
|
|
type: 'value',
|
|
name: '(%)'
|
|
},
|
|
{
|
|
type: 'value',
|
|
name: '(m3/s)',
|
|
splitLine:{
|
|
show:false
|
|
}
|
|
}
|
|
],
|
|
series: series1
|
|
};
|
|
myChart.setOption(option, true);
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
|
<div class="wrapper">
|
|
<!-- 引用top -->
|
|
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
|
|
<!-- 菜单栏 -->
|
|
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
|
<div class="content-wrapper"
|
|
style="background-size: 100% 100%;">
|
|
<!-- Main content -->
|
|
<section class="content container-fluid">
|
|
<div id="mainAlertdiv"></div>
|
|
<div id="subDiv"></div>
|
|
|
|
<div id="main">
|
|
<div style="float: left;width: 100%;height: calc((100% - 20px)*0.5);background-color: #FFFFFF;">
|
|
<div style="float: left;width: calc((100% - 4px)*0.5);height: 100%;">
|
|
<table style="width: 100%;height: 100%;">
|
|
<tr style="height:60px;color:#333333;font-size:18px;font-weight: 700;text-align: center;">
|
|
<td colspan="7">运行参数</td>
|
|
</tr>
|
|
<tr style="height:30px;color:#B0B0B0;text-align: center;vertical-align: top;">
|
|
<td rowspan="2">工艺单体</td>
|
|
<td>预测进水流量</td>
|
|
<td>液位</td>
|
|
<td>二沉池MLSS</td>
|
|
<td>外回流比</td>
|
|
<td>SV30</td>
|
|
<td>生反池MLSS</td>
|
|
</tr>
|
|
<tr style="height:20px;color:#B0B0B0;text-align: center;">
|
|
<td>(m)</td>
|
|
<td>(m)</td>
|
|
<td>(g/L)</td>
|
|
<td>(%)</td>
|
|
<td>(%)</td>
|
|
<td>(g/L)</td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td>1#二沉池</td>
|
|
<td style="color: #89E1FF;" class="TH_DE_SST_POOL_1_VP_HOURLY_CURRENT"></td>
|
|
<td class="TH_PLC06_RI5_4_Meter1_r_MeterValue"></td>
|
|
<td class="TH_PLC06_RI5_3_Meter11_r_MeterValue"></td>
|
|
<td class="TH_SST_POOL_1_RS_RATIO_ACTUAL"></td>
|
|
<td class="TH_PLC_SYWN_SV30_1"></td>
|
|
<td class="TH_PLC03_RI3_3_Meter8_r_MeterValue"></td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td>2#二沉池</td>
|
|
<td style="color: #89E1FF;" class="TH_DE_SST_POOL_2_VP_HOURLY_CURRENT"></td>
|
|
<td class="TH_PLC06_RI5_2_Meter1_r_MeterValue"></td>
|
|
<td class="TH_PLC06_RI5_1_Meter11_r_MeterValue"></td>
|
|
<td class="TH_SST_POOL_2_RS_RATIO_ACTUAL"></td>
|
|
<td class="TH_PLC_SYWN_SV30_2"></td>
|
|
<td class="TH_PLC02_RI3_3_Meter8_r_MeterValue"></td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td>3#二沉池</td>
|
|
<td style="color: #89E1FF;" class="TH_DE_SST_POOL_3_VP_HOURLY_CURRENT"></td>
|
|
<td class="TH_PLC07_RI5_2_Meter1_r_MeterValue"></td>
|
|
<td class="TH_PLC07_RI5_1_Meter11_r_MeterValue"></td>
|
|
<td class="TH_SST_POOL_3_RS_RATIO_ACTUAL"></td>
|
|
<td class="TH_PLC_SYWN_SV30_3"></td>
|
|
<td class="TH_PLC04_RI3_3_Meter8_r_MeterValue"></td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td>4#二沉池</td>
|
|
<td style="color: #89E1FF;" class="TH_DE_SST_POOL_4_VP_HOURLY_CURRENT"></td>
|
|
<td class="TH_PLC07_RI5_4_Meter1_r_MeterValue"></td>
|
|
<td class="TH_PLC07_RI5_3_Meter11_r_MeterValue"></td>
|
|
<td class="TH_SST_POOL_4_RS_RATIO_ACTUAL"></td>
|
|
<td class="TH_PLC_SYWN_SV30_4"></td>
|
|
<td class="TH_PLC05_RI3_3_Meter8_r_MeterValue"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div style="float: left;width: 2px;height: 100%;padding-top: 20px;padding-bottom: 20px;">
|
|
<div style="float: left;width: 100%;height: 100%;background-color: #F0F0F0;"></div>
|
|
</div>
|
|
<div style="float: left;width: calc((100% - 4px)*0.15);height: 100%;">
|
|
<table style="width: 100%;height: 100%;">
|
|
<tr style="height:60px;color:#333333;font-size:18px;font-weight: 700;text-align: center;">
|
|
<td>设定参数</td>
|
|
</tr>
|
|
<tr style="height:30px;color:#B0B0B0;text-align: center;vertical-align: top;">
|
|
<td>生反池目标MLSS</td>
|
|
</tr>
|
|
<tr style="height:20px;color:#B0B0B0;text-align: center;">
|
|
<td>(g/L)</td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td style="color: #04A7EE;" class="TH_DE_BIOPOOL_1_MLSS_TARGET"></td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td style="color: #04A7EE;" class="TH_DE_BIOPOOL_2_MLSS_TARGET"></td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td style="color: #04A7EE;" class="TH_DE_BIOPOOL_3_MLSS_TARGET"></td>
|
|
</tr>
|
|
<tr style="text-align: center;color: #000000;font-size: 30px;">
|
|
<td style="color: #04A7EE;" class="TH_DE_BIOPOOL_4_MLSS_TARGET"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div style="float: left;width: 2px;height: 100%;padding-top: 20px;padding-bottom: 20px;">
|
|
<div style="float: left;width: 100%;height: 100%;background-color: #F0F0F0;"></div>
|
|
</div>
|
|
<div style="float: left;width: calc((100% - 4px)*0.35);height: 100%;">
|
|
<table style="width: 100%;height: 100%;">
|
|
<tr style="height:60px;color:#333333;font-size:18px;font-weight: 700;text-align: center;">
|
|
<td colspan="3">预测值</td>
|
|
</tr>
|
|
<tr style="height:30px;color:#B0B0B0;text-align: center;vertical-align: top;">
|
|
<td rowspan="2">外回流泵开启台数</td>
|
|
<td>外回流泵平均频率</td>
|
|
<td>集泥井设定液位</td>
|
|
<td>外回流比</td>
|
|
</tr>
|
|
<tr style="height:20px;color:#B0B0B0;text-align: center;">
|
|
<td>(Hz)</td>
|
|
<td>(m)</td>
|
|
<td>(%)</td>
|
|
</tr>
|
|
<tr style="color:#89E1FF;text-align: center;font-size: 30px;">
|
|
<td class="TH_DE_SST_POOL_1_RS_PUMP_NUM_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_1_RS_PUMP_AVG_FREQ_PREDICT"></td>
|
|
<td class="TH_DE_SST_1_SLUDGE_LEVEL_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_1_RS_RATIO_PREDICT"></td>
|
|
</tr>
|
|
<tr style="color:#89E1FF;text-align: center;font-size: 30px;">
|
|
<td class="TH_DE_SST_POOL_2_RS_PUMP_NUM_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_2_RS_PUMP_AVG_FREQ_PREDICT"></td>
|
|
<td class="TH_DE_SST_2_SLUDGE_LEVEL_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_2_RS_RATIO_PREDICT"></td>
|
|
</tr>
|
|
<tr style="color:#89E1FF;text-align: center;font-size: 30px;">
|
|
<td class="TH_DE_SST_POOL_3_RS_PUMP_NUM_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_3_RS_PUMP_AVG_FREQ_PREDICT"></td>
|
|
<td class="TH_DE_SST_3_SLUDGE_LEVEL_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_3_RS_RATIO_PREDICT"></td>
|
|
</tr>
|
|
<tr style="color:#89E1FF;text-align: center;font-size: 30px;">
|
|
<td class="TH_DE_SST_POOL_4_RS_PUMP_NUM_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_4_RS_PUMP_AVG_FREQ_PREDICT"></td>
|
|
<td class="TH_DE_SST_4_SLUDGE_LEVEL_PREDICT"></td>
|
|
<td class="TH_DE_SST_POOL_4_RS_RATIO_PREDICT"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div style="float: left;width: 100%;height: 20px;"></div>
|
|
<div style="float: left;width: 100%;height: calc((100% - 20px)*0.5);background-color: #FFFFFF;padding:10px;">
|
|
<div id="chart"
|
|
style="float: left;width: 100%;height:100%;">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
|
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
|
</div>
|
|
</body>
|
|
<!-- 引入daterangepicker-->
|
|
<link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.css"/>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/moment.min.js"
|
|
charset="utf-8"></script>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.js"
|
|
charset="utf-8"></script>
|
|
</html> |