|
@@ -0,0 +1,851 @@
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
+<html lang="zh">
|
|
|
|
+<head>
|
|
|
|
+ <meta charset="utf-8">
|
|
|
|
+ <title>环保监测</title>
|
|
|
|
+ <link href="css/common.css" rel="stylesheet">
|
|
|
|
+ <link href="css/hbjc.css" rel="stylesheet">
|
|
|
|
+ <link href="css/scrollBar.css" rel="stylesheet">
|
|
|
|
+
|
|
|
|
+ <link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet">
|
|
|
|
+ <script type="text/javascript" src="js/echarts.min.js"></script>
|
|
|
|
+ <script type="text/javascript" src="js/jquery-2.2.4.min.js"></script>
|
|
|
|
+ <script type="text/javascript" src="js/common.js"></script>
|
|
|
|
+ <script type="text/javascript" src="js/api.js"></script>
|
|
|
|
+ <script type="text/javascript" src="js/jsmpeg.min.js"></script>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+ <div class="header-wrapper">
|
|
|
|
+ <div class="title">
|
|
|
|
+ 智能化综合管理平台
|
|
|
|
+ <svg version="1.1" width="900" height='100'>
|
|
|
|
+ <polygon points="0,0 75,100 114,100 135,82 765,82 786,100 825,100 900,0" style="fill:transparent;stroke:#69F8FE;stroke-width:2"/>
|
|
|
|
+ </svg>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="nav-bar">
|
|
|
|
+ <a class="item " href="index.html">首页</a>
|
|
|
|
+ <a class="item " href="fzfx.html">生产管理</a>
|
|
|
|
+ <a class="item " href="swfk.html">生物防控</a>
|
|
|
|
+ <a class="item " href="spjk.html">视频监控</a>
|
|
|
|
+ <a class="item active" href="hbjc.html">环保监测</a>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="grid-wrapper">
|
|
|
|
+ <div class="left1">
|
|
|
|
+ <div class="wrapper">
|
|
|
|
+ <div class='chart-tab-t'><div class="chart-tab-title">化学需氧量</div></div>
|
|
|
|
+ <div class="wrapper-content">
|
|
|
|
+ <div class="wide-border">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <svg version="1.1" width="37" height="25" class="wide-border-line1">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </g>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="90" height="25" class="wide-border-line2">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+ </g>
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line3">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line4">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <div id="chart-hxxyl"></div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="left2">
|
|
|
|
+ <div class="wrapper">
|
|
|
|
+ <div class='chart-tab-t'><div class="chart-tab-title">氨氮</div></div>
|
|
|
|
+ <div class="wrapper-content">
|
|
|
|
+ <div class="wide-border">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <svg version="1.1" width="37" height="25" class="wide-border-line1">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </g>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="90" height="25" class="wide-border-line2">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+ </g>
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line3">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line4">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <div id="chart-ad"></div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="center">
|
|
|
|
+
|
|
|
|
+ <div class="line1">
|
|
|
|
+ <div class="cont datenow"></div>
|
|
|
|
+ <div class="division"></div>
|
|
|
|
+ <div class="cont">环保监测</div>
|
|
|
|
+ <div class="division"></div>
|
|
|
|
+ <div class="cont wether"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="line3" id="play-box-0">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="right1">
|
|
|
|
+ <div class="wrapper">
|
|
|
|
+ <div class='chart-tab-t'><div class="chart-tab-title">流量</div></div>
|
|
|
|
+ <div class="wrapper-content">
|
|
|
|
+ <div class="wide-border">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <svg version="1.1" width="37" height="25" class="wide-border-line1">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </g>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="90" height="25" class="wide-border-line2">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+ </g>
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line3">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line4">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <div id="chart-ll"></div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="right2">
|
|
|
|
+ <div class="wrapper">
|
|
|
|
+ <div class='chart-tab-t'><div class="chart-tab-title">累计流量</div></div>
|
|
|
|
+ <div class="wrapper-content">
|
|
|
|
+ <div class="wide-border">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <svg version="1.1" width="37" height="25" class="wide-border-line1">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </g>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="90" height="25" class="wide-border-line2">
|
|
|
|
+ <g transform="translate(0.5 0.5)">
|
|
|
|
+ <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+ </g>
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line3">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <svg version="1.1" width="25" height="26" class="wide-border-line4">
|
|
|
|
+
|
|
|
|
+ <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
|
|
|
|
+
|
|
|
|
+ </svg>
|
|
|
|
+ <div id="chart-ljll"></div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="bottom1">
|
|
|
|
+ <div class="wrapper">
|
|
|
|
+ <div class="chartBlock">
|
|
|
|
+ <div id='chartBottom1'>
|
|
|
|
+ <div class="chartTab-t"><div class="chartTab-title">总磷</div></div>
|
|
|
|
+ <div id="chart-zl"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id='chartBottom2'>
|
|
|
|
+ <div class="chartTab-t"><div class="chartTab-title">总氮</div></div>
|
|
|
|
+ <div id="chart-zd"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id='chartBottom3'>
|
|
|
|
+ <div class="chartTab-t"><div class="chartTab-title">PH</div></div>
|
|
|
|
+ <div id="chart-ph"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+<script>
|
|
|
|
+ var dom_hxxyl = document.getElementById("chart-hxxyl");
|
|
|
|
+ var dom_ad = document.getElementById("chart-ad");
|
|
|
|
+ var dom_ll = document.getElementById("chart-ll");
|
|
|
|
+ var dom_ljll = document.getElementById("chart-ljll");
|
|
|
|
+ var dom_zl = document.getElementById("chart-zl");
|
|
|
|
+ var dom_zd = document.getElementById("chart-zd");
|
|
|
|
+ var dom_ph = document.getElementById("chart-ph");
|
|
|
|
+ var myChart_hxxyl = echarts.init(dom_hxxyl);
|
|
|
|
+ var myChart_ad = echarts.init(dom_ad);
|
|
|
|
+ var myChart_ll = echarts.init(dom_ll);
|
|
|
|
+ var myChart_ljll = echarts.init(dom_ljll);
|
|
|
|
+ var myChart_zl = echarts.init(dom_zl);
|
|
|
|
+ var myChart_zd = echarts.init(dom_zd);
|
|
|
|
+ var myChart_ph = echarts.init(dom_ph);
|
|
|
|
+ var app = {};
|
|
|
|
+ option_hxxyl=null,option_ad=null,option_ll=null,option_ljll=null,option_zl=null,option_zd=null,option_ph=null;
|
|
|
|
+ option_hxxyl = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ formatter: '{b} : {c}mg/L'
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '化学需氧量',
|
|
|
|
+ type: 'gauge',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 1000,
|
|
|
|
+ splitNumber: 10,
|
|
|
|
+ radius: '95%',
|
|
|
|
+ center:['50%','57%'],
|
|
|
|
+ axisLine: { // 坐标轴线
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
|
|
|
|
+ width: 3,
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ axisLabel: { // 坐标轴小标记
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ },
|
|
|
|
+ axisTick: { // 坐标轴小标记
|
|
|
|
+ length: 15, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: 'auto',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ splitLine: { // 分隔线
|
|
|
|
+ length: 25, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
|
+ width: 3,
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ pointer: { // 分隔线
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ show:false,
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize: 20,
|
|
|
|
+ fontStyle: 'italic',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ detail: {
|
|
|
|
+ backgroundColor: 'rgba(30,144,255,0.8)',
|
|
|
|
+ borderWidth: 1,
|
|
|
|
+ formatter: '{value}mg/L',
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5,
|
|
|
|
+ offsetCenter: [0, '50%'], // x, y,单位px
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize:18,
|
|
|
|
+ color: '#fff'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data: [{value: 214, name: '化学需氧量'}]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+};
|
|
|
|
+ option_ad = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ formatter: '{b} : {c}mg/L'
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '氨氮',
|
|
|
|
+ type: 'gauge',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 10,
|
|
|
|
+ splitNumber: 10,
|
|
|
|
+ radius: '95%',
|
|
|
|
+ center:['50%','57%'],
|
|
|
|
+ axisLine: { // 坐标轴线
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
|
|
|
|
+ width: 3,
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ axisLabel: { // 坐标轴小标记
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ },
|
|
|
|
+ axisTick: { // 坐标轴小标记
|
|
|
|
+ length: 15, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: 'auto',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ splitLine: { // 分隔线
|
|
|
|
+ length: 25, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
|
+ width: 3,
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ pointer: { // 分隔线
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ show:false,
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize: 20,
|
|
|
|
+ fontStyle: 'italic',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ detail: {
|
|
|
|
+ backgroundColor: 'rgba(30,144,255,0.8)',
|
|
|
|
+ borderWidth: 1,
|
|
|
|
+ formatter: '{value}mg/L',
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5,
|
|
|
|
+ offsetCenter: [0, '50%'], // x, y,单位px
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize:18,
|
|
|
|
+ color: '#fff'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data: [{value: 1.45, name: '氨氮'}]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+};
|
|
|
|
+ option_ll = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ formatter: '{b} : {c}T/HT'
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '流量',
|
|
|
|
+ type: 'gauge',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 1000,
|
|
|
|
+ splitNumber: 10,
|
|
|
|
+ radius: '95%',
|
|
|
|
+ center:['50%','57%'],
|
|
|
|
+ axisLine: { // 坐标轴线
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
|
|
|
|
+ width: 3,
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ axisLabel: { // 坐标轴小标记
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ },
|
|
|
|
+ axisTick: { // 坐标轴小标记
|
|
|
|
+ length: 15, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: 'auto',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ splitLine: { // 分隔线
|
|
|
|
+ length: 25, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
|
+ width: 3,
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ pointer: { // 分隔线
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ show:false,
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize: 20,
|
|
|
|
+ fontStyle: 'italic',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ detail: {
|
|
|
|
+ backgroundColor: 'rgba(30,144,255,0.8)',
|
|
|
|
+ borderWidth: 1,
|
|
|
|
+ formatter: '{value}T/HT',
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5,
|
|
|
|
+ offsetCenter: [0, '50%'], // x, y,单位px
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize:18,
|
|
|
|
+ color: '#fff'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data: [{value: 156, name: '流量'}]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+};
|
|
|
|
+ option_ljll = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ formatter: '{b} : {c}T/HT'
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '累计流量',
|
|
|
|
+ type: 'gauge',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 10000,
|
|
|
|
+ splitNumber: 10,
|
|
|
|
+ radius: '95%',
|
|
|
|
+ center:['50%','57%'],
|
|
|
|
+ axisLine: { // 坐标轴线
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
|
|
|
|
+ width: 3,
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ axisLabel: { // 坐标轴小标记
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ },
|
|
|
|
+ axisTick: { // 坐标轴小标记
|
|
|
|
+ length: 15, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: 'auto',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ splitLine: { // 分隔线
|
|
|
|
+ length: 25, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
|
+ width: 3,
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ pointer: { // 分隔线
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ show:false,
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize: 20,
|
|
|
|
+ fontStyle: 'italic',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ detail: {
|
|
|
|
+ backgroundColor: 'rgba(30,144,255,0.8)',
|
|
|
|
+ borderWidth: 1,
|
|
|
|
+ formatter: '{value}T/HT',
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5,
|
|
|
|
+ offsetCenter: [0, '50%'], // x, y,单位px
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize:18,
|
|
|
|
+ color: '#fff'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data: [{value: 871, name: '累计流量'}]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+};
|
|
|
|
+ option_zl = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ formatter: '{b} : {c}mg/L'
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '总磷',
|
|
|
|
+ type: 'gauge',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 10,
|
|
|
|
+ splitNumber: 10,
|
|
|
|
+ radius: '95%',
|
|
|
|
+ center:['50%','50%'],
|
|
|
|
+ axisLine: { // 坐标轴线
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
|
|
|
|
+ width: 3,
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ axisLabel: { // 坐标轴小标记
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ },
|
|
|
|
+ axisTick: { // 坐标轴小标记
|
|
|
|
+ length: 15, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: 'auto',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ splitLine: { // 分隔线
|
|
|
|
+ length: 25, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
|
+ width: 3,
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ pointer: { // 分隔线
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ show:false,
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize: 20,
|
|
|
|
+ fontStyle: 'italic',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ detail: {
|
|
|
|
+ backgroundColor: 'rgba(30,144,255,0.8)',
|
|
|
|
+ borderWidth: 1,
|
|
|
|
+ formatter: '{value}mg/L',
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5,
|
|
|
|
+ offsetCenter: [0, '50%'], // x, y,单位px
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize:18,
|
|
|
|
+ color: '#fff'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data: [{value: 2.36, name: '总磷'}]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+};
|
|
|
|
+ option_zd = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ formatter: '{b} : {c}mg/L'
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '总氮',
|
|
|
|
+ type: 'gauge',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 50,
|
|
|
|
+ splitNumber: 10,
|
|
|
|
+ radius: '95%',
|
|
|
|
+ center:['50%','50%'],
|
|
|
|
+ axisLine: { // 坐标轴线
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
|
|
|
|
+ width: 3,
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ axisLabel: { // 坐标轴小标记
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ },
|
|
|
|
+ axisTick: { // 坐标轴小标记
|
|
|
|
+ length: 15, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: 'auto',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ splitLine: { // 分隔线
|
|
|
|
+ length: 25, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
|
+ width: 3,
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ pointer: { // 分隔线
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ show:false,
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize: 20,
|
|
|
|
+ fontStyle: 'italic',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ detail: {
|
|
|
|
+ backgroundColor: 'rgba(30,144,255,0.8)',
|
|
|
|
+ borderWidth: 1,
|
|
|
|
+ formatter: '{value}mg/L',
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5,
|
|
|
|
+ offsetCenter: [0, '50%'], // x, y,单位px
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize:18,
|
|
|
|
+ color: '#fff'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data: [{value: 3.51, name: '总氮'}]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+};
|
|
|
|
+ option_ph = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ formatter: '{b} : {c}'
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: 'PH',
|
|
|
|
+ type: 'gauge',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 14,
|
|
|
|
+ splitNumber: 10,
|
|
|
|
+ radius: '90%',
|
|
|
|
+ center:['50%','50%'],
|
|
|
|
+ axisLine: { // 坐标轴线
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
|
|
|
|
+ width: 3,
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ axisLabel: { // 坐标轴小标记
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ },
|
|
|
|
+ axisTick: { // 坐标轴小标记
|
|
|
|
+ length: 15, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle控制线条样式
|
|
|
|
+ color: 'auto',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ splitLine: { // 分隔线
|
|
|
|
+ length: 25, // 属性length控制线长
|
|
|
|
+ lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
|
+ width: 3,
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ pointer: { // 分隔线
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ show:false,
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize: 20,
|
|
|
|
+ fontStyle: 'italic',
|
|
|
|
+ color: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 10
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ detail: {
|
|
|
|
+ backgroundColor: 'rgba(30,144,255,0.8)',
|
|
|
|
+ borderWidth: 1,
|
|
|
|
+ formatter: '{value}',
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ shadowColor: '#fff', //默认透明
|
|
|
|
+ shadowBlur: 5,
|
|
|
|
+ offsetCenter: [0, '50%'], // x, y,单位px
|
|
|
|
+ textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
|
+ fontWeight: 'bolder',
|
|
|
|
+ fontSize:18,
|
|
|
|
+ color: '#fff'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data: [{value: 6.7, name: 'PH'}]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+};
|
|
|
|
+ if (option_hxxyl && typeof option_hxxyl === "object") {
|
|
|
|
+ myChart_hxxyl.setOption(option_hxxyl, true);
|
|
|
|
+ }
|
|
|
|
+ if (option_ad && typeof option_ad === "object") {
|
|
|
|
+ myChart_ad.setOption(option_ad, true);
|
|
|
|
+ }
|
|
|
|
+ if (option_ll && typeof option_ll === "object") {
|
|
|
|
+ myChart_ll.setOption(option_ll, true);
|
|
|
|
+ }
|
|
|
|
+ if (option_ljll && typeof option_ljll === "object") {
|
|
|
|
+ myChart_ljll.setOption(option_ljll, true);
|
|
|
|
+ }
|
|
|
|
+ if (option_zl && typeof option_zl === "object") {
|
|
|
|
+ myChart_zl.setOption(option_zl, true);
|
|
|
|
+ }
|
|
|
|
+ if (option_zd && typeof option_zd === "object") {
|
|
|
|
+ myChart_zd.setOption(option_zd, true);
|
|
|
|
+ }
|
|
|
|
+ if (option_ph && typeof option_ph === "object") {
|
|
|
|
+ myChart_ph.setOption(option_ph, true);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //数据配置
|
|
|
|
+ var indexDataSetParam = {
|
|
|
|
+ id:30007
|
|
|
|
+ };
|
|
|
|
+ var indexDataSetUrl = "/publics/sysconf/get";
|
|
|
|
+ getData(indexDataSetUrl,indexDataSetParam).then(res => {
|
|
|
|
+ var data = JSON.parse(res.conf.data);
|
|
|
|
+ console.log(data);
|
|
|
|
+ option_hxxyl.series[0].data[0].value = data[0].val;
|
|
|
|
+ myChart_hxxyl.setOption(option_hxxyl, true);
|
|
|
|
+
|
|
|
|
+ option_ad.series[0].data[0].value = data[1].val;
|
|
|
|
+ myChart_ad.setOption(option_ad, true);
|
|
|
|
+
|
|
|
|
+ option_ll.series[0].data[0].value = data[2].val;
|
|
|
|
+ myChart_ll.setOption(option_ll, true);
|
|
|
|
+
|
|
|
|
+ option_ljll.series[0].data[0].value = data[3].val;
|
|
|
|
+ myChart_ljll.setOption(option_ljll, true);
|
|
|
|
+
|
|
|
|
+ option_zl.series[0].data[0].value = data[4].val;
|
|
|
|
+ myChart_zl.setOption(option_zl, true);
|
|
|
|
+
|
|
|
|
+ option_zd.series[0].data[0].value = data[5].val;
|
|
|
|
+ myChart_zd.setOption(option_zd, true);
|
|
|
|
+
|
|
|
|
+ option_ph.series[0].data[0].value = data[6].val;
|
|
|
|
+ myChart_ph.setOption(option_ph, true);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ //固定视频
|
|
|
|
+ if(player1!=null){
|
|
|
|
+ ///console.log(player)
|
|
|
|
+ player1.stop();
|
|
|
|
+ player1.destroy();
|
|
|
|
+ player1=null;
|
|
|
|
+ }
|
|
|
|
+ var player1=null;
|
|
|
|
+ var videoArr =
|
|
|
|
+ ["rtsp://admin:admin123@192.168.1.17:554/cam/realmonitor?channel=1&subtype=0","rtsp://admin:admin123@192.168.1.17:554/cam/realmonitor?channel=1&subtype=1"]
|
|
|
|
+
|
|
|
|
+ $(function(){
|
|
|
|
+ console.log(sessionStorage.getItem("currIp"),sessionStorage.getItem("loginIp"))
|
|
|
|
+ currIp = currIp?currIp:sessionStorage.getItem("currIp")
|
|
|
|
+ loginIp = loginIp?loginIp:sessionStorage.getItem("loginIp")
|
|
|
|
+ lanIp = lanIp?lanIp:sessionStorage.getItem("lanIp")
|
|
|
|
+ console.log(currIp,loginIp)
|
|
|
|
+ if(currIp==loginIp){
|
|
|
|
+ //登录IP和设备IP一致
|
|
|
|
+ videoIp = lanIp
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ player1 = play(0,videoArr[0][0],"1366x768")
|
|
|
|
+ },1000)
|
|
|
|
+
|
|
|
|
+ }else{
|
|
|
|
+ //用普清
|
|
|
|
+ videoIp = currIp;
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ player1 = play(0,videoArr[0][1],"640x480")
|
|
|
|
+ },1000)
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|