704.html 30 KB

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