704.html 29 KB

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