first commit
This commit is contained in:
314
WebRoot/jsp/digitalProcess/intelligentDehydrationControl_CG.jsp
Normal file
314
WebRoot/jsp/digitalProcess/intelligentDehydrationControl_CG.jsp
Normal file
@ -0,0 +1,314 @@
|
||||
<%@ 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"
|
||||
];
|
||||
|
||||
$(function () {
|
||||
let windowHeight = $(window).height();
|
||||
$('#main').css("height", (windowHeight - 30) + "px");
|
||||
|
||||
getData();
|
||||
})
|
||||
|
||||
function getData(modelType) {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: ext.contextPath + "/digitalProcess/digitalTechnologist/getHFCGJspData.do",
|
||||
dataType: 'json',
|
||||
data: {
|
||||
unitId: unitId,
|
||||
jspId: 'improveSystemPrediction_CG',
|
||||
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
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
let legendName1 = ['实际加药量', '预测加药量'];
|
||||
let series1 = [];
|
||||
series1.push({
|
||||
name: '实际加药量',
|
||||
type: 'line',
|
||||
data: [['2024-01-01', 36], ['2024-01-02', 45], ['2024-01-03', 21], ['2024-01-04', 65], ['2024-01-05', 47]]
|
||||
})
|
||||
series1.push({
|
||||
name: '预测加药量',
|
||||
type: 'line',
|
||||
data: [['2024-01-01', 51], ['2024-01-02', 35], ['2024-01-03', 28], ['2024-01-04', 57], ['2024-01-05', 50]]
|
||||
})
|
||||
|
||||
getChart('chart1', legendName1, series1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getChart(chartId, legendName, series) {
|
||||
let myChart = echarts.init(document.getElementById(chartId));
|
||||
let option = {
|
||||
color: color,
|
||||
animation: true,
|
||||
// title: {
|
||||
// text: titleName,
|
||||
// left: '20px',
|
||||
// top: '0'
|
||||
// },
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
},
|
||||
grid: {
|
||||
left: '4%', // 与容器左侧的距离
|
||||
right: '4%', // 与容器右侧的距离
|
||||
// top: '8%', // 与容器顶部的距离
|
||||
bottom: '40px', // 与容器底部的距离
|
||||
containLabel: true
|
||||
},
|
||||
legend: {
|
||||
data: legendName,
|
||||
left: 'center',
|
||||
bottom: '10'
|
||||
},
|
||||
xAxis: {
|
||||
type: 'time'
|
||||
},
|
||||
yAxis: [
|
||||
{
|
||||
type: 'value'
|
||||
// name: '(%)'
|
||||
}
|
||||
],
|
||||
series: series
|
||||
};
|
||||
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;border: 1px solid rgba(225, 225, 225, 1);border-radius:4px;">
|
||||
<div style="float: left;width: calc((100% - 1px)*0.8);height: 100%;padding-top: 20px;">
|
||||
<table style="width: 100%;height: 100%;text-align: center;">
|
||||
<tr style="height: 20px;color: #333333;font-size: 18px;font-weight: 700;text-align: left;">
|
||||
<td colspan="6" style="padding-left: 20px;height: 40px;vertical-align: top;">运行参数</td>
|
||||
</tr>
|
||||
<tr style="height: 20px;color: #B0B0B0;font-size: 14px;">
|
||||
<td>设备单体</td>
|
||||
<td>设备状态</td>
|
||||
<td>储泥池污泥含水率</td>
|
||||
<td>脱水后污泥含水率</td>
|
||||
<td>设定药剂投加率</td>
|
||||
<td>污泥输送泵频率</td>
|
||||
</tr>
|
||||
<tr style="height: 20px;color: #B0B0B0;font-size: 14px;">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>(%)</td>
|
||||
<td>(%)</td>
|
||||
<td>(g/g)</td>
|
||||
<td>(Hz)</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>1#离心机</td>
|
||||
<td>正常</td>
|
||||
<td>95.5</td>
|
||||
<td>95.5</td>
|
||||
<td style="color: #89E1FF;">95.5</td>
|
||||
<td>95.5</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>2#离心机</td>
|
||||
<td>正常</td>
|
||||
<td>95.5</td>
|
||||
<td>95.5</td>
|
||||
<td style="color: #89E1FF;">95.5</td>
|
||||
<td>95.5</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>3#离心机</td>
|
||||
<td>正常</td>
|
||||
<td>95.5</td>
|
||||
<td>95.5</td>
|
||||
<td style="color: #89E1FF;">95.5</td>
|
||||
<td>95.5</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>4#离心机</td>
|
||||
<td>正常</td>
|
||||
<td>95.5</td>
|
||||
<td>95.5</td>
|
||||
<td style="color: #89E1FF;">95.5</td>
|
||||
<td>95.5</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="float: left;width: 1px;height: 100%;padding-top: 20px;padding-bottom: 20px;">
|
||||
<div style="float: left;width: 1px;height: 100%;background-color: #B0B0B0;"></div>
|
||||
</div>
|
||||
<div style="float: left;width: calc((100% - 1px)*0.2);height: 100%;padding-top: 20px;">
|
||||
<table style="width: 100%;height: 100%;text-align: center;">
|
||||
<tr style="height: 20px;color: #333333;font-size: 18px;font-weight: 700;text-align: left;">
|
||||
<td colspan="6" style="padding-left: 20px;height: 40px;vertical-align: top;">预测值</td>
|
||||
</tr>
|
||||
<tr style="height: 20px;color: #B0B0B0;font-size: 14px;">
|
||||
<td>药剂加药量</td>
|
||||
</tr>
|
||||
<tr style="height: 20px;color: #B0B0B0;font-size: 14px;">
|
||||
<td>(kg)</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>95.5</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>95.5</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>95.5</td>
|
||||
</tr>
|
||||
<tr style="font-size: 30px;color: #333333;font-weight: 400;">
|
||||
<td>95.5</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;border: 1px solid rgba(225, 225, 225, 1);border-radius:4px;">
|
||||
<div style="float: left;width: 100%;height: 60px;padding-top: 15px;">
|
||||
<div style="float: left;width: 250px;height: 100%;line-height: 45px;padding-left: 20px;font-weight: 700;font-size: 18px;">
|
||||
干化药剂投加曲线
|
||||
</div>
|
||||
<div style="float: right;width: 120px;height: 100%;padding-top: 7px;">
|
||||
<select style="width: 80px;height: 30px;">
|
||||
<option selected>1#产线</option>
|
||||
<option>2#产线</option>
|
||||
<option>3#产线</option>
|
||||
<option>4#产线</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div style="float: left;width: 100%;height: calc(100% - 60px);" id="chart1"></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>
|
||||
Reference in New Issue
Block a user