704.html 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta
  6. name="viewport"
  7. content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"
  8. />
  9. <meta
  10. name="format-detection"
  11. content="telephone=no,email=no,date=no,address=no"
  12. />
  13. <title></title>
  14. <link rel="stylesheet" type="text/css" href="../../css/api.css" />
  15. <link rel="stylesheet" type="text/css" href="../../css/style.css" />
  16. <link rel="stylesheet" href="../../css/aui.css" />
  17. <link rel="stylesheet" href="../../css/projeck.css" />
  18. <style>
  19. body,
  20. html {
  21. background: #f3f3f3;
  22. overflow: hidden;
  23. -webkit-box-sizing: border-box;
  24. -moz-box-sizing: border-box;
  25. box-sizing: border-box;
  26. position: relative;
  27. }
  28. .api_layout {
  29. height: 100%;
  30. overflow-y: scroll;
  31. -webkit-overflow-scrolling: touch;
  32. }
  33. .contents {
  34. padding: 7px;
  35. }
  36. .Notice {
  37. margin-bottom: 7px;
  38. padding: 0;
  39. }
  40. .paddings {
  41. padding: 15px 15px 20px 15px;
  42. }
  43. .circularR {
  44. width: 60px;
  45. height: 60px;
  46. -webkit-border-radius: 50%;
  47. -moz-border-radius: 50%;
  48. border-radius: 50%;
  49. line-height: 58px;
  50. text-align: center;
  51. margin: 10px 0;
  52. font-size: 16px;
  53. color: #fff;
  54. }
  55. .Chart .centertT:nth-child(1) .circularR {
  56. background: #27ae60;
  57. }
  58. .Chart .centertT:nth-child(2) .circularR {
  59. background: #fc2449;
  60. }
  61. .Chart .centertT:nth-child(3) .circularR {
  62. background: #3498db;
  63. }
  64. .Chart .centertT:nth-child(4) .circularR {
  65. background: #2c3e50;
  66. }
  67. .Chart {
  68. margin-top: 30px;
  69. }
  70. /*工作面简介*/
  71. .Stitle .ico {
  72. width: 20px;
  73. height: 20px;
  74. background-position: center;
  75. margin-right: 12px;
  76. position: relative;
  77. top: -1px;
  78. }
  79. .ico-img {
  80. width: 20px;
  81. height: 20px;
  82. margin-right: 12px;
  83. position: relative;
  84. top: -2px;
  85. }
  86. .Stitle .security-ico {
  87. background: url('../../icon/security.png') no-repeat;
  88. background-size: cover;
  89. }
  90. .Stitle .location-ico {
  91. background: url('../../icon/location.png') no-repeat;
  92. background-size: cover;
  93. }
  94. .Stitle .TV-ico {
  95. background: url('../../icon/tv.png') no-repeat;
  96. background-size: cover;
  97. }
  98. .Stitle .tel-ico {
  99. background: url('../../icon/tel.png') no-repeat;
  100. background-size: cover;
  101. }
  102. .padding-top {
  103. padding-top: 25px;
  104. }
  105. .main p {
  106. text-indent: 30px;
  107. font-size: 15px;
  108. color: #232627;
  109. line-height: 1.6;
  110. padding-top: 15px;
  111. }
  112. .introduction {
  113. flex-wrap: wrap;
  114. padding-bottom: 10px;
  115. }
  116. .introduction li {
  117. width: 25%;
  118. text-align: center;
  119. margin-bottom: 10px;
  120. }
  121. .introduction li i {
  122. display: block;
  123. width: 45px;
  124. height: 45px;
  125. margin: auto;
  126. margin-bottom: 10px;
  127. }
  128. .introduction li:nth-child(1) i {
  129. background: url('../../icon/dj.png') no-repeat;
  130. background-size: cover;
  131. }
  132. .introduction li:nth-child(2) i {
  133. background: url('../../icon/aq.png') no-repeat;
  134. background-size: cover;
  135. }
  136. .introduction li:nth-child(3) i {
  137. background: url('../../icon/zd.png') no-repeat;
  138. background-size: cover;
  139. }
  140. .introduction li:nth-child(4) i {
  141. background: url('../../icon/jx.png') no-repeat;
  142. background-size: cover;
  143. }
  144. .introduction li:nth-child(5) i {
  145. background: url('../../icon/px.png') no-repeat;
  146. background-size: cover;
  147. }
  148. .introduction li:nth-child(6) i {
  149. background: url('../../icon/js.png') no-repeat;
  150. background-size: cover;
  151. }
  152. .introduction li:nth-child(7) i {
  153. background: url('../../icon/cx.png') no-repeat;
  154. background-size: cover;
  155. }
  156. .introduction li:nth-child(8) i {
  157. background: url('../../icon/ry.png') no-repeat;
  158. background-size: cover;
  159. }
  160. .introduction li:nth-child(9) i {
  161. background: url('http://colliery-system.oss-cn-qingdao.aliyuncs.com/7d73adfebe0f4556af092450ab8fcf95.png')
  162. no-repeat;
  163. background-size: cover;
  164. }
  165. .introduction li:nth-child(10) i {
  166. background: url('http://colliery-system.oss-cn-qingdao.aliyuncs.com/06e367f7a7b94cc5a97ddec34c440b3d.jpg')
  167. no-repeat;
  168. background-size: cover;
  169. }
  170. /*查看详情*/
  171. .Stitle {
  172. position: relative;
  173. }
  174. .mores {
  175. display: block;
  176. position: absolute;
  177. top: 1px;
  178. right: 0;
  179. width: 20px;
  180. height: 20px;
  181. background: url('../../icon/right.png') no-repeat;
  182. background-size: cover;
  183. }
  184. .tv-list {
  185. flex-wrap: wrap;
  186. }
  187. .tv-list li {
  188. width: 33.33%;
  189. text-align: center;
  190. color: #455a64;
  191. font-size: 14px;
  192. margin-bottom: 10px;
  193. }
  194. .tv-list li i {
  195. display: block;
  196. width: 50px;
  197. height: 50px;
  198. margin: auto;
  199. margin-bottom: 14px;
  200. }
  201. .tv-list li:nth-child(1) i {
  202. background: url('../../icon/v1.png') no-repeat;
  203. background-size: contain;
  204. }
  205. .tv-list li:nth-child(2) i {
  206. background: url('../../icon/v2.png') no-repeat;
  207. background-size: contain;
  208. }
  209. .tv-list li:nth-child(3) i {
  210. background: url('../../icon/v3.png') no-repeat;
  211. background-size: contain;
  212. }
  213. .tv-list li:nth-child(4) i {
  214. background: url('../../icon/v4.png') no-repeat;
  215. background-size: contain;
  216. }
  217. .tv-list li:nth-child(5) i {
  218. background: url('../../icon/v5.png') no-repeat;
  219. background-size: contain;
  220. }
  221. .tv-list li:nth-child(6) i {
  222. background: url('../../icon/v6.png') no-repeat;
  223. background-size: contain;
  224. }
  225. .tv-list li:nth-child(7) i {
  226. background: url('../../icon/v7.png') no-repeat;
  227. background-size: contain;
  228. }
  229. .tv-list li:nth-child(8) i {
  230. background: url('../../icon/v8.png') no-repeat;
  231. background-size: contain;
  232. }
  233. .tv-list li:nth-child(9) i {
  234. background: url('../../icon/v9.png') no-repeat;
  235. background-size: contain;
  236. }
  237. .itmes {
  238. font-size: 14px;
  239. text-align: center;
  240. padding-top: 20px;
  241. flex-wrap: wrap;
  242. }
  243. .itmes li {
  244. padding: 10px 0;
  245. width: 48%;
  246. }
  247. .itmes p {
  248. width: 48%;
  249. color: #232627;
  250. }
  251. .itmes span {
  252. width: 48%;
  253. color: #232627;
  254. background: #8adaff;
  255. }
  256. /*安全监测列表*/
  257. .nav_title {
  258. width: 100%;
  259. padding: 0 5px;
  260. background: #f3f6fa;
  261. }
  262. .nav_title li {
  263. text-align: center;
  264. font-size: 14px;
  265. padding: 15px 0;
  266. color: #232627;
  267. }
  268. .li-box {
  269. font-size: 14px;
  270. color: #232627;
  271. padding: 15px 0;
  272. }
  273. .downWellPersonnal li {
  274. position: relative;
  275. align-items: center;
  276. }
  277. .downWellPersonnal li:after {
  278. content: '';
  279. width: 100%;
  280. height: 1px;
  281. background: #e8e9ea;
  282. position: absolute;
  283. bottom: 0;
  284. left: 0;
  285. }
  286. </style>
  287. </head>
  288. <body>
  289. <div class="api_layout">
  290. <div class="contents">
  291. <!-- 工作面简介 -->
  292. <div class="Notice borderRa">
  293. <div class="paddings">
  294. <div class="main">
  295. <img
  296. src="http://jiewei-icon.oss-cn-beijing.aliyuncs.com/220704%E8%87%AA%E5%8A%A8%E5%8C%96%E5%B7%A5%E4%BD%9C%E9%9D%A2/220704-%E7%AE%80%E4%BB%8B.png?nsukey=S%2F5bJbhnXmekERZkyMUrFPbgWX3BT87kXzNMz9Owr6QDQlO44mUjEVZAndi1y9DB67vu5trhN5GHPk0AFANRdWrduyPW3eAGmU9%2FYsAeqb%2FxdF%2FTtngB01CEsBFUfbbyCtOW0%2B6gPbnjSiANWJ0e2%2FuaYlBDXWfmdjIBLhNNNBsnesbXvMjFPdZ4mdIz5oIu3na2gNhduSGp14uQlXUrig%3D%3D"
  297. alt=""
  298. />
  299. <p>
  300. 枣泉煤矿220704智能开采工作面为国家2030重点科研攻关项目和国家能源集团重点建设的20个智能化工作面之一,工作面可采走向长度1590米,倾向长度284.6米,煤层平均厚度2.35米,平均倾角13.4°,预计回采原煤153.87万吨左右。项目自启动以来,历时65天完成了自动化工作面安装调试工作,该工作面由自动化控制系统、电液控制系统、智能远程供液系统、语音通讯系统和顺槽输送机控制系统五部分组成,通过机巷的集控中心对工作面设备割煤、推溜、移架等工序实行信息化、数字化、可视化、精准化“远程操作”,目前井下顺槽监控中心和地面分控中心实现设备“一键启停”(设备包括乳化液泵站、破碎机等设备),工作面实现了2000米远程特高压供液系统,同时实现了工作面数据无线传输。为枣泉矿打造高质量发展的智慧矿山迈出了坚实步伐。
  301. </p>
  302. </div>
  303. </div>
  304. <ul class="introduction flex-start">
  305. <li
  306. onclick="linkQrcode('9d0676f84e544bcb9327edffe5951db5','区队概况')"
  307. >
  308. <i></i>
  309. <p>区队概况</p>
  310. </li>
  311. <li
  312. onclick="linkQrcode('fed1e751568b42e5a22ce77cf80348e0','安全管理')"
  313. >
  314. <i></i>
  315. <p>安全管理</p>
  316. </li>
  317. <li
  318. onclick="linkQrcode('76734cbabd984798b58ba689bab39383','管理制度')"
  319. >
  320. <i></i>
  321. <p>管理制度</p>
  322. </li>
  323. <li
  324. onclick="linkQrcode('7a6375cb628a482bbf4ee7ad9f24f5f7','绩效管理')"
  325. >
  326. <i></i>
  327. <p>绩效管理</p>
  328. </li>
  329. <li
  330. onclick="linkQrcode('ea188eecfffa4a0a91b48529989306e8','智慧培训')"
  331. >
  332. <i></i>
  333. <p>智慧培训</p>
  334. </li>
  335. <li
  336. onclick="linkQrcode('681f83e5460e412d8ee1af6643793e88','技术管理')"
  337. >
  338. <i></i>
  339. <p>技术管理</p>
  340. </li>
  341. <li
  342. onclick="linkQrcode('ddd84498da2b4fd0b3b380a22e78f798','创新管理')"
  343. >
  344. <i></i>
  345. <p>创新管理</p>
  346. </li>
  347. <li
  348. onclick="linkQrcode('3d79d003fa834516b147f5a7815572d3','人员信息')"
  349. >
  350. <i></i>
  351. <p>人员信息</p>
  352. </li>
  353. <li
  354. onclick="linkQrcode('4285771346bf4188aef0420e67c9d9d6','智慧生产')"
  355. >
  356. <i></i>
  357. <p>智慧生产</p>
  358. </li>
  359. <li
  360. onclick="linkQrcode('fb9d970d712e44eb9a3d772f209de022','生产剪裁')"
  361. >
  362. <i></i>
  363. <p>生产剪影</p>
  364. </li>
  365. </ul>
  366. </div>
  367. <!-- 今日产量 -->
  368. <div class="Notice borderRa beforS" id="todayYield"></div>
  369. <!--安全监测-->
  370. <div class="Notice borderRa beforS" id="securityId"></div>
  371. <!--当前井下人员-->
  372. <div class="Notice borderRa beforS" id="EchartsID"></div>
  373. <!--工业电视-->
  374. <div class="Notice borderRa beforS" id="tv_list"></div>
  375. <!--采煤机-->
  376. <div id="mians"></div>
  377. <!-- 联系电话 -->
  378. <div class="Notice borderRa beforS" id="telID"></div>
  379. </div>
  380. </div>
  381. <!-- 今日产量 -->
  382. <script type="text/template" id="templateToday">
  383. <div class="paddings">
  384. <p class="Stitle centertT flex-center">
  385. 今日产量
  386. <span class="mores" onclick="effectControl()"></span>
  387. </p>
  388. <div class="" style="width:100%">
  389. <canvas id="todayDownWell" style="width: 100%;margin-top:10px;height:210px"></canvas>
  390. </div>
  391. </div>
  392. </script>
  393. <!-- 安全监测 -->
  394. <script type="text/template" id="templateSecurity">
  395. <div class="paddings" style="padding:15px 0 20px 0">
  396. <p class="Stitle centertT flex-center" style="right: 15px;">
  397. <i class="ico security-ico"></i>
  398. 安全监测
  399. <span class="mores" onclick="securityMonitor()"></span>
  400. </p>
  401. <div class="Chart flex-space" style="padding:0 15px;">
  402. {{~it:value:index}}
  403. {{?index<4}}
  404. <div class="canvasParent centertT" onclick="securityList('{{=value.name}}','{{=value.type}}')">
  405. <span class="canvasTitle">{{=value.name}}</span>
  406. <div class="circularR sales">{{=value.count}}个</div>
  407. </div>
  408. {{?}}
  409. {{~}}
  410. </div>
  411. <!--列表-->
  412. <nav style="padding-top:20px">
  413. <ul class="nav_title flex-wrap flex-start">
  414. <li style="width:25%;">测点编号</li>
  415. <li style="width:50%;padding:0 5px;">安装地点</li>
  416. <li style="width:25%;">数值/状态</li>
  417. </ul>
  418. </nav>
  419. <ul class="downWellPersonnal" id="downWellPersonnal">
  420. </ul>
  421. </div>
  422. </script>
  423. <script type="text/template" id="templateList">
  424. {{~it:value:index}}
  425. <li class="flex-wrap li-box centertT after-border">
  426. <span style="width:25%;">{{=value.id}}</span>
  427. <span style="width:50%;">{{=value.position}}</span>
  428. <span style="width:25%;">{{=value.value}}{{=value.unit}}</span>
  429. </li>
  430. {{~}}
  431. </script>
  432. <!-- 工业电视 -->
  433. <script type="text/template" id="templateTv">
  434. <div class="paddings">
  435. <p class="Stitle centertT flex-center">
  436. <i class="ico TV-ico"></i>
  437. 工业电视
  438. <span class="mores" onclick="videoMonitor()"></span>
  439. </p>
  440. <ul class="padding-top tv-list flex-start">
  441. {{~it:value}}
  442. <li onclick="SeeVideo('{{=value.cameraIndexCode}}','{{=value.cameraName}}','{{=value.regionIndexCode}}')">
  443. <i></i>
  444. <p>{{=value.cameraName}}</p>
  445. </li>
  446. {{~}}
  447. </ul>
  448. </div>
  449. </script>
  450. <!-- 人员定位 -->
  451. <!-- <script type="text/template" id="templateEcharts">
  452. <div class="paddings">
  453. <p class="Stitle centertT flex-center">
  454. <i class="ico location-ico"></i>
  455. 人员定位
  456. <span class="mores" onclick="personalLocationJu()"></span>
  457. </p>
  458. <div class="" style="width:100%">
  459. <canvas id="downWell" style="width: 100%;"></canvas>
  460. </div>
  461. </div>
  462. </script> -->
  463. <!-- 采煤机,刮板机 -->
  464. <script type="text/template" id="templateCaimeiji">
  465. {{~it:value}}
  466. <div class="Notice borderRa beforS">
  467. <div class="paddings">
  468. <p class="Stitle centertT flex-center">
  469. <img class="ico-img" src="{{=value.icon}}" alt="">
  470. {{=value.name}}
  471. <span class="mores"></span>
  472. </p>
  473. <div class="padding-top">
  474. <img src="{{=value.banner}}" alt="">
  475. <ul class="itmes flex-space">
  476. {{ for (var i=0;i<value.data.length;i++) { }}
  477. <li class="flex-space">
  478. <p>{{=value.data[i].name}}</p>
  479. <span>{{=value.data[i].data.value}}{{=value.data[i].data.unit}}</span>
  480. </li>
  481. {{ } }}
  482. </ul>
  483. </div>
  484. </div>
  485. </div>
  486. {{~}}
  487. </script>
  488. <!-- 联系电话 -->
  489. <script type="text/template" id="templateTel">
  490. <div class="paddings">
  491. <p class="Stitle centertT flex-center">
  492. <i class="ico tel-ico"></i>
  493. 工作面联系电话
  494. </p>
  495. <ul class="itmes flex-space">
  496. {{~it:value}}
  497. <li class="flex-space" onclick="callPhone('{{=value.tel}}')">
  498. <p>{{=value.name}}</p>
  499. <span>{{=value.tel}}</span>
  500. </li>
  501. {{~}}
  502. </ul>
  503. </div>
  504. </script>
  505. <script src="../../script/api.js"></script>
  506. <script src="../../script/doT.min.js"></script>
  507. <script src="../../script/zepto.js"></script>
  508. <script src="../../script/f2.js"></script>
  509. <script src="../../script/config.js"></script>
  510. <script>
  511. var toast = new auiToast(),
  512. headers;
  513. var videoArray = [];
  514. apiready = function () {
  515. var info = $api.getStorage('data'),
  516. token = JSON.parse(info).data.access_token;
  517. headers = {
  518. Authorization: 'Bearer ' + token,
  519. };
  520. todayDownWell(); // 今日产量
  521. monitorListFun(); // 安全监测
  522. getTvList(); // 工业电视
  523. // downWell() // 人员定位
  524. getShearerData(); //采煤机
  525. telCall(); //联系人
  526. };
  527. // 工作简介
  528. function linkQrcode(id, title) {
  529. $event.openWin(
  530. 'browseQrcode_win',
  531. '../browseQrcode/browseQrcode_win',
  532. {pageId: id, title: title},
  533. ''
  534. );
  535. }
  536. // 今日产量
  537. function todayDownWell() {
  538. $http.fnReuestDataNologing(
  539. jinfengUrlRouter.getBanNowDayAllTotal,
  540. '',
  541. 'get',
  542. '',
  543. function (ret, err) {
  544. if (ret.status === 20000) {
  545. $apis.html(todayYield, '#templateToday', '');
  546. var data = ret.data;
  547. var map = {};
  548. data.map(function (obj) {
  549. map[obj.devName] = getInteger(obj.total) + '吨';
  550. });
  551. var chart = new F2.Chart({
  552. id: 'todayDownWell',
  553. pixelRatio: window.devicePixelRatio,
  554. padding: [20, 'auto'],
  555. });
  556. chart.source(data, {
  557. percent: {
  558. formatter: function formatter(val) {
  559. return val + '吨';
  560. },
  561. },
  562. });
  563. chart.tooltip(false);
  564. chart.legend({
  565. position: 'right',
  566. itemFormatter: function itemFormatter(val) {
  567. return val + ' ' + map[val];
  568. },
  569. });
  570. chart.coord('polar', {
  571. transposed: true,
  572. innerRadius: 0.7,
  573. radius: 0.85,
  574. });
  575. chart.axis(false);
  576. chart
  577. .interval()
  578. .position('conts*total')
  579. .color('devName', [
  580. '#1890FF',
  581. '#13C2C2',
  582. '#2FC25B',
  583. '#FACC14',
  584. '#F04864',
  585. '#8543E0',
  586. '#3436C7',
  587. '#223273',
  588. ])
  589. .adjust('stack');
  590. chart.guide().html({
  591. position: ['50%', '45%'],
  592. html:
  593. '<div style="width: 250px;height: 40px;text-align: center;">' +
  594. '<div style="font-size: 16px">总产量</div>' +
  595. '<div style="font-size: 18px">' +
  596. getInteger(ret.data[0].count) +
  597. ' 吨</div>' +
  598. '</div>',
  599. });
  600. chart.render();
  601. }
  602. }
  603. );
  604. }
  605. // 安全监测
  606. function monitorListFun() {
  607. var param = {
  608. name: '220704',
  609. like: 1,
  610. };
  611. $http.fnReuestDataNologing(
  612. jinfengUrlRouter.getSafetyTotal,
  613. '',
  614. 'post',
  615. param,
  616. function (ret, err) {
  617. if (ret && ret.code === 0) {
  618. $apis.html(securityId, '#templateSecurity', ret.data);
  619. monitorList();
  620. } else if (ret.code == 1) {
  621. api.toast({
  622. msg: '网络请求超时,请稍后重试',
  623. duration: 2000,
  624. location: 'bottom',
  625. });
  626. }
  627. }
  628. );
  629. }
  630. function monitorList() {
  631. $http.fnReuestDataNologing(
  632. jinfengUrlRouter.getSafetyList,
  633. '',
  634. 'post',
  635. '',
  636. function (ret, err) {
  637. if (ret && ret.code === 0) {
  638. $apis.html(downWellPersonnal, '#templateList', ret.data);
  639. }
  640. }
  641. );
  642. }
  643. function securityList(name, type) {
  644. var params = {
  645. title: name,
  646. type: type,
  647. };
  648. $event.openWin('securtyWin', 'securtyWin', params, '');
  649. }
  650. // 工业电视
  651. function getTvList() {
  652. var regionUuid = {
  653. indexCode: 'fe6e66e1-2e1e-4dd6-8454-7994542c4d44',
  654. pageNum: 1,
  655. pageSize: 200,
  656. };
  657. $http
  658. .requestData(jinfengUrlRouter.selectResourceList, 'get', regionUuid)
  659. .then((ret) => {
  660. if (ret.code === '0') {
  661. var data = ret.data.list;
  662. for (var i = 0; i < data.length; i++) {
  663. if (
  664. data[i].cameraIndexCode == 'a4563a47725c4ab7aca8c18bad6a0982'
  665. ) {
  666. videoArray.push(data[i]);
  667. } else if (
  668. data[i].cameraIndexCode == '6671bd0a7578485ca4b81f85b51a9560'
  669. ) {
  670. videoArray.push(data[i]);
  671. } else if (
  672. data[i].cameraIndexCode == 'd09baca64e6143bd836d6a044a42d33c'
  673. ) {
  674. videoArray.push(data[i]);
  675. } else if (
  676. data[i].cameraIndexCode == '5df5fe65d83a475085aa2a699755b2cb'
  677. ) {
  678. videoArray.push(data[i]);
  679. } else if (
  680. data[i].cameraIndexCode == '966d2d7b7da44aa482140f0c797f3554'
  681. ) {
  682. videoArray.push(data[i]);
  683. } else if (
  684. data[i].cameraIndexCode == 'a3e4e492aaf74bbe9786cf6d15b124bc'
  685. ) {
  686. videoArray.push(data[i]);
  687. } else if (
  688. data[i].cameraIndexCode == 'acf2cae6fb8d4d9ba142dc41dde00d1c'
  689. ) {
  690. videoArray.push(data[i]);
  691. } else if (
  692. data[i].cameraIndexCode == 'e7fc50ee10a24201b125a3eb57d49264'
  693. ) {
  694. videoArray.push(data[i]);
  695. } else if (
  696. data[i].cameraIndexCode == '4b0a549d19554a6ab3b00e7b6ff053b4'
  697. ) {
  698. videoArray.push(data[i]);
  699. }
  700. }
  701. $apis.html(tv_list, '#templateTv', '');
  702. vedioS();
  703. }
  704. })
  705. .catch((err) => {});
  706. }
  707. function vedioS() {
  708. var regionUuid1 = {
  709. indexCode: '34b9245f-c3ef-4b58-aba4-79c99adcdb28',
  710. pageNum: 1,
  711. pageSize: 200,
  712. };
  713. $http
  714. .requestData(jinfengUrlRouter.selectResourceList, 'get', regionUuid1)
  715. .then((ret) => {
  716. if (ret.code === '0') {
  717. var datas = ret.data.list;
  718. for (var i = 0; i < datas.length; i++) {
  719. if (
  720. datas[i].cameraIndexCode == 'd56e3c2dc3834e32904fd3b06c4b8f06'
  721. ) {
  722. videoArray.push(datas[i]);
  723. }
  724. }
  725. $apis.html(
  726. tv_list,
  727. '#templateTv',
  728. videoArray.sort((a, b) => {
  729. return (
  730. a.cameraName.substring(3, a.cameraName.lastIndexOf('#')) -
  731. b.cameraName.substring(3, b.cameraName.lastIndexOf('#'))
  732. );
  733. })
  734. );
  735. }
  736. })
  737. .catch((err) => {});
  738. }
  739. // 查看视频
  740. function SeeVideo(id, title, regionIndexCode1) {
  741. $http.fnReuestDataNologing(
  742. jinfengUrlRouter.selectResourcePreviewURLs,
  743. headers,
  744. 'get',
  745. {cameraIndexCode: id, regionIndexCode: regionIndexCode1},
  746. function (ret, err) {
  747. if (ret.code === '0') {
  748. var pageParam = {
  749. videoUrl: ret.data.url,
  750. title: title,
  751. };
  752. var video = api.require('modulehikvision');
  753. var param = {
  754. url:
  755. 'rtsp://120.253.43.7' +
  756. ret.data.url.substring(ret.data.url.lastIndexOf(':')),
  757. };
  758. video.start2HikVisionLogin(param);
  759. }
  760. }
  761. );
  762. }
  763. // 采煤机, 刮板机 ,转载机,液压支架,运输皮带
  764. function getShearerData() {
  765. $http.fnReuestDataNologing(
  766. jinfengUrlRouter.getSelectWebSocketRequest,
  767. '',
  768. 'get',
  769. '',
  770. function (ret, err) {
  771. $apis.html(mians, '#templateCaimeiji', ret);
  772. }
  773. );
  774. }
  775. // 当前下井人数
  776. function downWell() {
  777. $http.fnReuestDataNologing(
  778. jinfengUrlRouter.getPersonalInfo,
  779. '',
  780. 'post',
  781. {area_id: '04'},
  782. function (ret, err) {
  783. if (ret.code === 0) {
  784. var data = ret.data.people_distribute;
  785. $apis.html(EchartsID, '#templateEcharts', '');
  786. var map = {};
  787. data.map(function (obj) {
  788. map[obj.depart_name] = obj.pepole_num + '人';
  789. });
  790. var dataClass = data.filter(function (item) {
  791. return item.pepole_num > 0;
  792. });
  793. var chart = new F2.Chart({
  794. id: 'downWell',
  795. height: 350,
  796. pixelRatio: window.devicePixelRatio,
  797. appendPadding: [30, 15, 15, 15],
  798. });
  799. chart.source(dataClass, {
  800. percent: {
  801. formatter: function formatter(val) {
  802. return val + '人';
  803. },
  804. },
  805. });
  806. chart.tooltip(false);
  807. chart.legend({
  808. position: 'bottom',
  809. align: 'center',
  810. itemFormatter: function itemFormatter(val) {
  811. return val + ' ' + map[val];
  812. },
  813. });
  814. chart.coord('polar', {
  815. transposed: true,
  816. innerRadius: 0.6,
  817. radius: 0.9,
  818. });
  819. // 配置文本饼图
  820. chart.pieLabel({
  821. sidePadding: 0,
  822. label1: function label1(data) {
  823. return {
  824. text: data.depart_name,
  825. fill: '#808080',
  826. };
  827. },
  828. label2: function label2(data) {
  829. return {
  830. fill: '#000000',
  831. text: data.pepole_num + '人',
  832. fontWeight: 500,
  833. fontSize: 10,
  834. };
  835. },
  836. });
  837. chart.axis(false);
  838. chart
  839. .interval()
  840. .position('const*pepole_num')
  841. .color('depart_name', [
  842. '#3436C7',
  843. '#2FC25B',
  844. '#FACC14',
  845. '#d81e06',
  846. '#13C2C2',
  847. ])
  848. .adjust('stack');
  849. chart.guide().html({
  850. position: ['50%', '45%'],
  851. html:
  852. '<div style="width: 250px;height: 40px;text-align: center;" onclick="personalMap()">' +
  853. '<div style="font-size: 16px">总人数</div>' +
  854. '<div style="font-size: 18px">' +
  855. ret.data.people_total +
  856. '人</div>' +
  857. '</div>',
  858. });
  859. chart.render();
  860. }
  861. }
  862. );
  863. }
  864. // 查看704人员定位详情
  865. function personalMap() {
  866. var params = {
  867. moduleType: 'Working',
  868. title: '人员定位',
  869. name: '姓名',
  870. dep: '部门',
  871. position: '当前位置',
  872. time: '下井时间',
  873. url: jinfengUrlRouter.getPersonalMap,
  874. moduleParam: '',
  875. };
  876. $event.openWin(
  877. 'personnelLocationDetails',
  878. '../productionData/personnelLocationDetails',
  879. params,
  880. ''
  881. );
  882. }
  883. // 联系人
  884. function telCall() {
  885. var data = [
  886. {name: '矿调度室', tel: '8811'},
  887. {name: '机巷机尾', tel: '8341'},
  888. {name: '机巷机头', tel: '8342'},
  889. {name: '风巷上口', tel: '8343'},
  890. {name: '辅巷泵站', tel: '8345'},
  891. {name: '控制台', tel: '8337'},
  892. {name: '22运上1#给煤机', tel: '8391'},
  893. {name: '22运上2#给煤机', tel: '8397'},
  894. {name: '22运上皮带机头', tel: '8151'},
  895. {name: '22采区变电所', tel: '8153'},
  896. ];
  897. $apis.html(telID, '#templateTel', data);
  898. }
  899. // 拨打电话
  900. function callPhone(tel) {
  901. api.call({
  902. type: 'tel_prompt',
  903. number: tel,
  904. });
  905. }
  906. // 安全监测权限
  907. function securityMonitor() {
  908. $http.fnReuestDataNologing(
  909. jinfengUrlRouter.securityJurisdiction,
  910. headers,
  911. 'post',
  912. '',
  913. function (ret, err) {
  914. if (ret.code === 0) {
  915. $event.openWin(
  916. 'securityMonitor',
  917. '../productionData/securityMonitor',
  918. '',
  919. ''
  920. );
  921. } else if (ret.code === 1) {
  922. api.alert({
  923. title: '提示',
  924. msg: '该用户没有此权限',
  925. });
  926. }
  927. }
  928. );
  929. }
  930. // 人员定位权限
  931. function personalLocationJu() {
  932. $http.fnReuestDataNologing(
  933. jinfengUrlRouter.personalLocation,
  934. headers,
  935. 'post',
  936. '',
  937. function (ret, err) {
  938. if (ret.code === 0) {
  939. $event.openWin(
  940. 'persnoalLocation',
  941. '../productionData/persnoalLocation',
  942. '',
  943. ''
  944. );
  945. } else if (ret.code === 1) {
  946. api.alert({
  947. title: '提示',
  948. msg: '该用户没有此权限',
  949. });
  950. }
  951. }
  952. );
  953. }
  954. // 视频详情
  955. function videoMonitor() {
  956. $http.fnReuestDataNologing(
  957. jinfengUrlRouter.regionApi,
  958. headers,
  959. 'get',
  960. '',
  961. function (ret, err) {
  962. if (ret.code === 0) {
  963. $event.openWin('videoMonitor', '../video/videoMonitor', '', '');
  964. } else if (ret.code === 1) {
  965. api.alert({
  966. title: '提示',
  967. msg: '该用户没有此权限',
  968. });
  969. }
  970. }
  971. );
  972. }
  973. // 生产数据详情
  974. function effectControl() {
  975. $http.fnReuestDataNologing(
  976. jinfengUrlRouter.efficacyShow,
  977. headers,
  978. 'post',
  979. '',
  980. function (ret, err) {
  981. if (ret.code === 0) {
  982. $event.openWin(
  983. 'efficiencyWin',
  984. '../productionData/efficiencyWin',
  985. '',
  986. ''
  987. );
  988. } else if (ret.code === 1) {
  989. api.alert({
  990. title: '提示',
  991. msg: '该用户没有此权限',
  992. });
  993. }
  994. }
  995. );
  996. }
  997. // 取整数
  998. function getInteger(data) {
  999. return Math.floor(data / 1);
  1000. }
  1001. </script>
  1002. </body>
  1003. </html>