hbjc.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>环保监测</title>
  6. <link href="css/common.css" rel="stylesheet">
  7. <link href="css/hbjc.css" rel="stylesheet">
  8. <link href="css/scrollBar.css" rel="stylesheet">
  9. <link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet">
  10. <script type="text/javascript" src="js/echarts.min.js"></script>
  11. <script type="text/javascript" src="js/jquery-2.2.4.min.js"></script>
  12. <script type="text/javascript" src="js/common.js"></script>
  13. <script type="text/javascript" src="js/api.js"></script>
  14. <script type="text/javascript" src="js/jsmpeg.min.js"></script>
  15. </head>
  16. <body>
  17. <div class="header-wrapper">
  18. <div class="title">
  19. 智能化综合管理平台
  20. <svg version="1.1" width="900" height='100'>
  21. <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"/>
  22. </svg>
  23. </div>
  24. <div class="nav-bar">
  25. <a class="item " href="index.html">首页</a>
  26. <a class="item " href="fzfx.html">生产管理</a>
  27. <a class="item " href="swfk.html">生物防控</a>
  28. <a class="item " href="spjk.html">视频监控</a>
  29. <a class="item active" href="hbjc.html">环保监测</a>
  30. </div>
  31. </div>
  32. <div class="grid-wrapper">
  33. <div class="left1">
  34. <div class="wrapper">
  35. <div class='chart-tab-t'><div class="chart-tab-title">化学需氧量</div></div>
  36. <div class="wrapper-content">
  37. <div class="wide-border">
  38. </div>
  39. <svg version="1.1" width="37" height="25" class="wide-border-line1">
  40. <g transform="translate(0.5 0.5)">
  41. <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  42. </g>
  43. </svg>
  44. <svg version="1.1" width="90" height="25" class="wide-border-line2">
  45. <g transform="translate(0.5 0.5)">
  46. <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  47. </g>
  48. </svg>
  49. <svg version="1.1" width="25" height="26" class="wide-border-line3">
  50. <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
  51. </svg>
  52. <svg version="1.1" width="25" height="26" class="wide-border-line4">
  53. <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
  54. </svg>
  55. <div id="chart-hxxyl"></div>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="left2">
  60. <div class="wrapper">
  61. <div class='chart-tab-t'><div class="chart-tab-title">氨氮</div></div>
  62. <div class="wrapper-content">
  63. <div class="wide-border">
  64. </div>
  65. <svg version="1.1" width="37" height="25" class="wide-border-line1">
  66. <g transform="translate(0.5 0.5)">
  67. <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  68. </g>
  69. </svg>
  70. <svg version="1.1" width="90" height="25" class="wide-border-line2">
  71. <g transform="translate(0.5 0.5)">
  72. <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  73. </g>
  74. </svg>
  75. <svg version="1.1" width="25" height="26" class="wide-border-line3">
  76. <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
  77. </svg>
  78. <svg version="1.1" width="25" height="26" class="wide-border-line4">
  79. <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
  80. </svg>
  81. <div id="chart-ad"></div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="center">
  86. <div class="line1">
  87. <div class="cont datenow"></div>
  88. <div class="division"></div>
  89. <div class="cont">环保监测</div>
  90. <div class="division"></div>
  91. <div class="cont wether"></div>
  92. </div>
  93. <div class="line3" id="play-box-0">
  94. </div>
  95. </div>
  96. <div class="right1">
  97. <div class="wrapper">
  98. <div class='chart-tab-t'><div class="chart-tab-title">流量</div></div>
  99. <div class="wrapper-content">
  100. <div class="wide-border">
  101. </div>
  102. <svg version="1.1" width="37" height="25" class="wide-border-line1">
  103. <g transform="translate(0.5 0.5)">
  104. <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  105. </g>
  106. </svg>
  107. <svg version="1.1" width="90" height="25" class="wide-border-line2">
  108. <g transform="translate(0.5 0.5)">
  109. <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  110. </g>
  111. </svg>
  112. <svg version="1.1" width="25" height="26" class="wide-border-line3">
  113. <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
  114. </svg>
  115. <svg version="1.1" width="25" height="26" class="wide-border-line4">
  116. <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
  117. </svg>
  118. <div id="chart-ll"></div>
  119. </div>
  120. </div>
  121. </div>
  122. <div class="right2">
  123. <div class="wrapper">
  124. <div class='chart-tab-t'><div class="chart-tab-title">累计流量</div></div>
  125. <div class="wrapper-content">
  126. <div class="wide-border">
  127. </div>
  128. <svg version="1.1" width="37" height="25" class="wide-border-line1">
  129. <g transform="translate(0.5 0.5)">
  130. <polyline points="0,24.5 0,0 37,23.5 " style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  131. </g>
  132. </svg>
  133. <svg version="1.1" width="90" height="25" class="wide-border-line2">
  134. <g transform="translate(0.5 0.5)">
  135. <polyline points="90,25 65,0 25,0 -1,23.5" style="fill:#0f215c;stroke:#53BAFD;stroke-width:1"/>
  136. </g>
  137. </svg>
  138. <svg version="1.1" width="25" height="26" class="wide-border-line3">
  139. <line x1="0" y1="0" x2="26" y2="24.5"style="stroke:#53BAFD;stroke-width:1"/>
  140. </svg>
  141. <svg version="1.1" width="25" height="26" class="wide-border-line4">
  142. <line x1="0" y1="24" x2="25" y2="0"style="stroke:#53BAFD;stroke-width:1"/>
  143. </svg>
  144. <div id="chart-ljll"></div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="bottom1">
  149. <div class="wrapper">
  150. <div class="chartBlock">
  151. <div id='chartBottom1'>
  152. <div class="chartTab-t"><div class="chartTab-title">总磷</div></div>
  153. <div id="chart-zl"></div>
  154. </div>
  155. <div id='chartBottom2'>
  156. <div class="chartTab-t"><div class="chartTab-title">总氮</div></div>
  157. <div id="chart-zd"></div>
  158. </div>
  159. <div id='chartBottom3'>
  160. <div class="chartTab-t"><div class="chartTab-title">PH</div></div>
  161. <div id="chart-ph"></div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. <script>
  168. var dom_hxxyl = document.getElementById("chart-hxxyl");
  169. var dom_ad = document.getElementById("chart-ad");
  170. var dom_ll = document.getElementById("chart-ll");
  171. var dom_ljll = document.getElementById("chart-ljll");
  172. var dom_zl = document.getElementById("chart-zl");
  173. var dom_zd = document.getElementById("chart-zd");
  174. var dom_ph = document.getElementById("chart-ph");
  175. var myChart_hxxyl = echarts.init(dom_hxxyl);
  176. var myChart_ad = echarts.init(dom_ad);
  177. var myChart_ll = echarts.init(dom_ll);
  178. var myChart_ljll = echarts.init(dom_ljll);
  179. var myChart_zl = echarts.init(dom_zl);
  180. var myChart_zd = echarts.init(dom_zd);
  181. var myChart_ph = echarts.init(dom_ph);
  182. var app = {};
  183. option_hxxyl=null,option_ad=null,option_ll=null,option_ljll=null,option_zl=null,option_zd=null,option_ph=null;
  184. option_hxxyl = {
  185. tooltip: {
  186. formatter: '{b} : {c}mg/L'
  187. },
  188. series: [
  189. {
  190. name: '化学需氧量',
  191. type: 'gauge',
  192. min: 0,
  193. max: 1000,
  194. splitNumber: 10,
  195. radius: '95%',
  196. center:['50%','57%'],
  197. axisLine: { // 坐标轴线
  198. lineStyle: { // 属性lineStyle控制线条样式
  199. color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
  200. width: 3,
  201. shadowColor: '#fff', //默认透明
  202. shadowBlur: 10
  203. }
  204. },
  205. axisLabel: { // 坐标轴小标记
  206. fontWeight: 'bolder',
  207. color: '#fff',
  208. shadowColor: '#fff', //默认透明
  209. shadowBlur: 10
  210. },
  211. axisTick: { // 坐标轴小标记
  212. length: 15, // 属性length控制线长
  213. lineStyle: { // 属性lineStyle控制线条样式
  214. color: 'auto',
  215. shadowColor: '#fff', //默认透明
  216. shadowBlur: 10
  217. }
  218. },
  219. splitLine: { // 分隔线
  220. length: 25, // 属性length控制线长
  221. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  222. width: 3,
  223. color: '#fff',
  224. shadowColor: '#fff', //默认透明
  225. shadowBlur: 10
  226. }
  227. },
  228. pointer: { // 分隔线
  229. shadowColor: '#fff', //默认透明
  230. shadowBlur: 5
  231. },
  232. title: {
  233. show:false,
  234. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  235. fontWeight: 'bolder',
  236. fontSize: 20,
  237. fontStyle: 'italic',
  238. color: '#fff',
  239. shadowColor: '#fff', //默认透明
  240. shadowBlur: 10
  241. }
  242. },
  243. detail: {
  244. backgroundColor: 'rgba(30,144,255,0.8)',
  245. borderWidth: 1,
  246. formatter: '{value}mg/L',
  247. borderColor: '#fff',
  248. shadowColor: '#fff', //默认透明
  249. shadowBlur: 5,
  250. offsetCenter: [0, '50%'], // x, y,单位px
  251. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  252. fontWeight: 'bolder',
  253. fontSize:18,
  254. color: '#fff'
  255. }
  256. },
  257. data: [{value: 214, name: '化学需氧量'}]
  258. }
  259. ]
  260. };
  261. option_ad = {
  262. tooltip: {
  263. formatter: '{b} : {c}mg/L'
  264. },
  265. series: [
  266. {
  267. name: '氨氮',
  268. type: 'gauge',
  269. min: 0,
  270. max: 10,
  271. splitNumber: 10,
  272. radius: '95%',
  273. center:['50%','57%'],
  274. axisLine: { // 坐标轴线
  275. lineStyle: { // 属性lineStyle控制线条样式
  276. color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
  277. width: 3,
  278. shadowColor: '#fff', //默认透明
  279. shadowBlur: 10
  280. }
  281. },
  282. axisLabel: { // 坐标轴小标记
  283. fontWeight: 'bolder',
  284. color: '#fff',
  285. shadowColor: '#fff', //默认透明
  286. shadowBlur: 10
  287. },
  288. axisTick: { // 坐标轴小标记
  289. length: 15, // 属性length控制线长
  290. lineStyle: { // 属性lineStyle控制线条样式
  291. color: 'auto',
  292. shadowColor: '#fff', //默认透明
  293. shadowBlur: 10
  294. }
  295. },
  296. splitLine: { // 分隔线
  297. length: 25, // 属性length控制线长
  298. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  299. width: 3,
  300. color: '#fff',
  301. shadowColor: '#fff', //默认透明
  302. shadowBlur: 10
  303. }
  304. },
  305. pointer: { // 分隔线
  306. shadowColor: '#fff', //默认透明
  307. shadowBlur: 5
  308. },
  309. title: {
  310. show:false,
  311. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  312. fontWeight: 'bolder',
  313. fontSize: 20,
  314. fontStyle: 'italic',
  315. color: '#fff',
  316. shadowColor: '#fff', //默认透明
  317. shadowBlur: 10
  318. }
  319. },
  320. detail: {
  321. backgroundColor: 'rgba(30,144,255,0.8)',
  322. borderWidth: 1,
  323. formatter: '{value}mg/L',
  324. borderColor: '#fff',
  325. shadowColor: '#fff', //默认透明
  326. shadowBlur: 5,
  327. offsetCenter: [0, '50%'], // x, y,单位px
  328. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  329. fontWeight: 'bolder',
  330. fontSize:18,
  331. color: '#fff'
  332. }
  333. },
  334. data: [{value: 1.45, name: '氨氮'}]
  335. }
  336. ]
  337. };
  338. option_ll = {
  339. tooltip: {
  340. formatter: '{b} : {c}T/HT'
  341. },
  342. series: [
  343. {
  344. name: '流量',
  345. type: 'gauge',
  346. min: 0,
  347. max: 1000,
  348. splitNumber: 10,
  349. radius: '95%',
  350. center:['50%','57%'],
  351. axisLine: { // 坐标轴线
  352. lineStyle: { // 属性lineStyle控制线条样式
  353. color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
  354. width: 3,
  355. shadowColor: '#fff', //默认透明
  356. shadowBlur: 10
  357. }
  358. },
  359. axisLabel: { // 坐标轴小标记
  360. fontWeight: 'bolder',
  361. color: '#fff',
  362. shadowColor: '#fff', //默认透明
  363. shadowBlur: 10
  364. },
  365. axisTick: { // 坐标轴小标记
  366. length: 15, // 属性length控制线长
  367. lineStyle: { // 属性lineStyle控制线条样式
  368. color: 'auto',
  369. shadowColor: '#fff', //默认透明
  370. shadowBlur: 10
  371. }
  372. },
  373. splitLine: { // 分隔线
  374. length: 25, // 属性length控制线长
  375. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  376. width: 3,
  377. color: '#fff',
  378. shadowColor: '#fff', //默认透明
  379. shadowBlur: 10
  380. }
  381. },
  382. pointer: { // 分隔线
  383. shadowColor: '#fff', //默认透明
  384. shadowBlur: 5
  385. },
  386. title: {
  387. show:false,
  388. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  389. fontWeight: 'bolder',
  390. fontSize: 20,
  391. fontStyle: 'italic',
  392. color: '#fff',
  393. shadowColor: '#fff', //默认透明
  394. shadowBlur: 10
  395. }
  396. },
  397. detail: {
  398. backgroundColor: 'rgba(30,144,255,0.8)',
  399. borderWidth: 1,
  400. formatter: '{value}T/HT',
  401. borderColor: '#fff',
  402. shadowColor: '#fff', //默认透明
  403. shadowBlur: 5,
  404. offsetCenter: [0, '50%'], // x, y,单位px
  405. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  406. fontWeight: 'bolder',
  407. fontSize:18,
  408. color: '#fff'
  409. }
  410. },
  411. data: [{value: 156, name: '流量'}]
  412. }
  413. ]
  414. };
  415. option_ljll = {
  416. tooltip: {
  417. formatter: '{b} : {c}T/HT'
  418. },
  419. series: [
  420. {
  421. name: '累计流量',
  422. type: 'gauge',
  423. min: 0,
  424. max: 10000,
  425. splitNumber: 10,
  426. radius: '95%',
  427. center:['50%','57%'],
  428. axisLine: { // 坐标轴线
  429. lineStyle: { // 属性lineStyle控制线条样式
  430. color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
  431. width: 3,
  432. shadowColor: '#fff', //默认透明
  433. shadowBlur: 10
  434. }
  435. },
  436. axisLabel: { // 坐标轴小标记
  437. fontWeight: 'bolder',
  438. color: '#fff',
  439. shadowColor: '#fff', //默认透明
  440. shadowBlur: 10
  441. },
  442. axisTick: { // 坐标轴小标记
  443. length: 15, // 属性length控制线长
  444. lineStyle: { // 属性lineStyle控制线条样式
  445. color: 'auto',
  446. shadowColor: '#fff', //默认透明
  447. shadowBlur: 10
  448. }
  449. },
  450. splitLine: { // 分隔线
  451. length: 25, // 属性length控制线长
  452. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  453. width: 3,
  454. color: '#fff',
  455. shadowColor: '#fff', //默认透明
  456. shadowBlur: 10
  457. }
  458. },
  459. pointer: { // 分隔线
  460. shadowColor: '#fff', //默认透明
  461. shadowBlur: 5
  462. },
  463. title: {
  464. show:false,
  465. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  466. fontWeight: 'bolder',
  467. fontSize: 20,
  468. fontStyle: 'italic',
  469. color: '#fff',
  470. shadowColor: '#fff', //默认透明
  471. shadowBlur: 10
  472. }
  473. },
  474. detail: {
  475. backgroundColor: 'rgba(30,144,255,0.8)',
  476. borderWidth: 1,
  477. formatter: '{value}T/HT',
  478. borderColor: '#fff',
  479. shadowColor: '#fff', //默认透明
  480. shadowBlur: 5,
  481. offsetCenter: [0, '50%'], // x, y,单位px
  482. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  483. fontWeight: 'bolder',
  484. fontSize:18,
  485. color: '#fff'
  486. }
  487. },
  488. data: [{value: 871, name: '累计流量'}]
  489. }
  490. ]
  491. };
  492. option_zl = {
  493. tooltip: {
  494. formatter: '{b} : {c}mg/L'
  495. },
  496. series: [
  497. {
  498. name: '总磷',
  499. type: 'gauge',
  500. min: 0,
  501. max: 10,
  502. splitNumber: 10,
  503. radius: '95%',
  504. center:['50%','50%'],
  505. axisLine: { // 坐标轴线
  506. lineStyle: { // 属性lineStyle控制线条样式
  507. color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
  508. width: 3,
  509. shadowColor: '#fff', //默认透明
  510. shadowBlur: 10
  511. }
  512. },
  513. axisLabel: { // 坐标轴小标记
  514. fontWeight: 'bolder',
  515. color: '#fff',
  516. shadowColor: '#fff', //默认透明
  517. shadowBlur: 10
  518. },
  519. axisTick: { // 坐标轴小标记
  520. length: 15, // 属性length控制线长
  521. lineStyle: { // 属性lineStyle控制线条样式
  522. color: 'auto',
  523. shadowColor: '#fff', //默认透明
  524. shadowBlur: 10
  525. }
  526. },
  527. splitLine: { // 分隔线
  528. length: 25, // 属性length控制线长
  529. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  530. width: 3,
  531. color: '#fff',
  532. shadowColor: '#fff', //默认透明
  533. shadowBlur: 10
  534. }
  535. },
  536. pointer: { // 分隔线
  537. shadowColor: '#fff', //默认透明
  538. shadowBlur: 5
  539. },
  540. title: {
  541. show:false,
  542. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  543. fontWeight: 'bolder',
  544. fontSize: 20,
  545. fontStyle: 'italic',
  546. color: '#fff',
  547. shadowColor: '#fff', //默认透明
  548. shadowBlur: 10
  549. }
  550. },
  551. detail: {
  552. backgroundColor: 'rgba(30,144,255,0.8)',
  553. borderWidth: 1,
  554. formatter: '{value}mg/L',
  555. borderColor: '#fff',
  556. shadowColor: '#fff', //默认透明
  557. shadowBlur: 5,
  558. offsetCenter: [0, '50%'], // x, y,单位px
  559. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  560. fontWeight: 'bolder',
  561. fontSize:18,
  562. color: '#fff'
  563. }
  564. },
  565. data: [{value: 2.36, name: '总磷'}]
  566. }
  567. ]
  568. };
  569. option_zd = {
  570. tooltip: {
  571. formatter: '{b} : {c}mg/L'
  572. },
  573. series: [
  574. {
  575. name: '总氮',
  576. type: 'gauge',
  577. min: 0,
  578. max: 50,
  579. splitNumber: 10,
  580. radius: '95%',
  581. center:['50%','50%'],
  582. axisLine: { // 坐标轴线
  583. lineStyle: { // 属性lineStyle控制线条样式
  584. color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
  585. width: 3,
  586. shadowColor: '#fff', //默认透明
  587. shadowBlur: 10
  588. }
  589. },
  590. axisLabel: { // 坐标轴小标记
  591. fontWeight: 'bolder',
  592. color: '#fff',
  593. shadowColor: '#fff', //默认透明
  594. shadowBlur: 10
  595. },
  596. axisTick: { // 坐标轴小标记
  597. length: 15, // 属性length控制线长
  598. lineStyle: { // 属性lineStyle控制线条样式
  599. color: 'auto',
  600. shadowColor: '#fff', //默认透明
  601. shadowBlur: 10
  602. }
  603. },
  604. splitLine: { // 分隔线
  605. length: 25, // 属性length控制线长
  606. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  607. width: 3,
  608. color: '#fff',
  609. shadowColor: '#fff', //默认透明
  610. shadowBlur: 10
  611. }
  612. },
  613. pointer: { // 分隔线
  614. shadowColor: '#fff', //默认透明
  615. shadowBlur: 5
  616. },
  617. title: {
  618. show:false,
  619. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  620. fontWeight: 'bolder',
  621. fontSize: 20,
  622. fontStyle: 'italic',
  623. color: '#fff',
  624. shadowColor: '#fff', //默认透明
  625. shadowBlur: 10
  626. }
  627. },
  628. detail: {
  629. backgroundColor: 'rgba(30,144,255,0.8)',
  630. borderWidth: 1,
  631. formatter: '{value}mg/L',
  632. borderColor: '#fff',
  633. shadowColor: '#fff', //默认透明
  634. shadowBlur: 5,
  635. offsetCenter: [0, '50%'], // x, y,单位px
  636. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  637. fontWeight: 'bolder',
  638. fontSize:18,
  639. color: '#fff'
  640. }
  641. },
  642. data: [{value: 3.51, name: '总氮'}]
  643. }
  644. ]
  645. };
  646. option_ph = {
  647. tooltip: {
  648. formatter: '{b} : {c}'
  649. },
  650. series: [
  651. {
  652. name: 'PH',
  653. type: 'gauge',
  654. min: 0,
  655. max: 14,
  656. splitNumber: 10,
  657. radius: '90%',
  658. center:['50%','50%'],
  659. axisLine: { // 坐标轴线
  660. lineStyle: { // 属性lineStyle控制线条样式
  661. color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']],
  662. width: 3,
  663. shadowColor: '#fff', //默认透明
  664. shadowBlur: 10
  665. }
  666. },
  667. axisLabel: { // 坐标轴小标记
  668. fontWeight: 'bolder',
  669. color: '#fff',
  670. shadowColor: '#fff', //默认透明
  671. shadowBlur: 10
  672. },
  673. axisTick: { // 坐标轴小标记
  674. length: 15, // 属性length控制线长
  675. lineStyle: { // 属性lineStyle控制线条样式
  676. color: 'auto',
  677. shadowColor: '#fff', //默认透明
  678. shadowBlur: 10
  679. }
  680. },
  681. splitLine: { // 分隔线
  682. length: 25, // 属性length控制线长
  683. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  684. width: 3,
  685. color: '#fff',
  686. shadowColor: '#fff', //默认透明
  687. shadowBlur: 10
  688. }
  689. },
  690. pointer: { // 分隔线
  691. shadowColor: '#fff', //默认透明
  692. shadowBlur: 5
  693. },
  694. title: {
  695. show:false,
  696. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  697. fontWeight: 'bolder',
  698. fontSize: 20,
  699. fontStyle: 'italic',
  700. color: '#fff',
  701. shadowColor: '#fff', //默认透明
  702. shadowBlur: 10
  703. }
  704. },
  705. detail: {
  706. backgroundColor: 'rgba(30,144,255,0.8)',
  707. borderWidth: 1,
  708. formatter: '{value}',
  709. borderColor: '#fff',
  710. shadowColor: '#fff', //默认透明
  711. shadowBlur: 5,
  712. offsetCenter: [0, '50%'], // x, y,单位px
  713. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  714. fontWeight: 'bolder',
  715. fontSize:18,
  716. color: '#fff'
  717. }
  718. },
  719. data: [{value: 6.7, name: 'PH'}]
  720. }
  721. ]
  722. };
  723. if (option_hxxyl && typeof option_hxxyl === "object") {
  724. myChart_hxxyl.setOption(option_hxxyl, true);
  725. }
  726. if (option_ad && typeof option_ad === "object") {
  727. myChart_ad.setOption(option_ad, true);
  728. }
  729. if (option_ll && typeof option_ll === "object") {
  730. myChart_ll.setOption(option_ll, true);
  731. }
  732. if (option_ljll && typeof option_ljll === "object") {
  733. myChart_ljll.setOption(option_ljll, true);
  734. }
  735. if (option_zl && typeof option_zl === "object") {
  736. myChart_zl.setOption(option_zl, true);
  737. }
  738. if (option_zd && typeof option_zd === "object") {
  739. myChart_zd.setOption(option_zd, true);
  740. }
  741. if (option_ph && typeof option_ph === "object") {
  742. myChart_ph.setOption(option_ph, true);
  743. }
  744. //数据配置
  745. var indexDataSetParam = {
  746. id:30007
  747. };
  748. var indexDataSetUrl = "/publics/sysconf/get";
  749. getData(indexDataSetUrl,indexDataSetParam).then(res => {
  750. var data = JSON.parse(res.conf.data);
  751. console.log(data);
  752. option_hxxyl.series[0].data[0].value = data[0].val;
  753. myChart_hxxyl.setOption(option_hxxyl, true);
  754. option_ad.series[0].data[0].value = data[1].val;
  755. myChart_ad.setOption(option_ad, true);
  756. option_ll.series[0].data[0].value = data[2].val;
  757. myChart_ll.setOption(option_ll, true);
  758. option_ljll.series[0].data[0].value = data[3].val;
  759. myChart_ljll.setOption(option_ljll, true);
  760. option_zl.series[0].data[0].value = data[4].val;
  761. myChart_zl.setOption(option_zl, true);
  762. option_zd.series[0].data[0].value = data[5].val;
  763. myChart_zd.setOption(option_zd, true);
  764. option_ph.series[0].data[0].value = data[6].val;
  765. myChart_ph.setOption(option_ph, true);
  766. })
  767. //固定视频
  768. if(player1!=null){
  769. ///console.log(player)
  770. player1.stop();
  771. player1.destroy();
  772. player1=null;
  773. }
  774. var player1=null;
  775. var videoArr =
  776. ["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"]
  777. $(function(){
  778. console.log(sessionStorage.getItem("currIp"),sessionStorage.getItem("loginIp"))
  779. currIp = currIp?currIp:sessionStorage.getItem("currIp")
  780. loginIp = loginIp?loginIp:sessionStorage.getItem("loginIp")
  781. lanIp = lanIp?lanIp:sessionStorage.getItem("lanIp")
  782. console.log(currIp,loginIp)
  783. if(currIp==loginIp){
  784. //登录IP和设备IP一致
  785. videoIp = lanIp
  786. setTimeout(function() {
  787. player1 = play(0,videoArr[0][0],"1366x768")
  788. },1000)
  789. }else{
  790. //用普清
  791. videoIp = currIp;
  792. setTimeout(function() {
  793. player1 = play(0,videoArr[0][1],"640x480")
  794. },1000)
  795. }
  796. })
  797. </script>
  798. </body>
  799. </html>