123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851 |
- <!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>
|