bigdata.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. <!--一体化首页-->
  2. <template>
  3. <div class="bigdata-con">
  4. <!-- 头部B -->
  5. <div class="header">
  6. <!-- title -->
  7. <div class="header-left"><img class="logo" src="@/assets/images/integrated/logo-small.png"/>
  8. <h3 class="title">{{ systemTitle.title }}-{{ systemTitle.subTitle }}-统计分析</h3>
  9. </div>
  10. <div class="bignav">
  11. <img src="@/assets/images/integrated/bigdata-header-nav-left.png"/>
  12. <router-link v-for="(navbar,index) in navbar " :key="index" :to="navbar.path" class="bignav-list"
  13. :class="index===navbar.length-1?'on':''" exact>
  14. {{ navbar.name }}
  15. </router-link>
  16. <img src="@/assets/images/integrated/bigdata-header-nav-right.png"/>
  17. </div>
  18. </div>
  19. <!-- 头部E -->
  20. <div class="bigdata-body">
  21. <!-- 第一纵向-->
  22. <div class="bigdata-list wid-li-1">
  23. <!-- <div class="b-con mg-b-20">
  24. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  25. <span>隐患整改情况</span>
  26. </div>
  27. <chartEvent></chartEvent>
  28. </div> -->
  29. <div class="b-con mg-b-20">
  30. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  31. <span>应急物资信息</span>
  32. </div>
  33. <chartFireCause></chartFireCause>
  34. </div>
  35. <div class="b-con tall">
  36. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  37. <span>从业人员分布情况</span>
  38. </div>
  39. <chartEquipmentType></chartEquipmentType>
  40. </div>
  41. </div>
  42. <!-- 第二纵向-->
  43. <div class="bigdata-list wid-li-2 m-l-15">
  44. <div class="bigdata-map mg-b-20">
  45. <!-- 地图 -->
  46. <bigdataSupermap ref="bigdataSupermap" style="width: 100%;height: 59vh;" class="indexSupermapClass"
  47. :mapDiv="'bigdataMap'" dynamicPlotting="false" :mapSite="{doubleClickZoom:false}"
  48. :codes="['9fa5']" :isSideBySide="false"/>
  49. </div>
  50. <tabbar></tabbar>
  51. </div>
  52. <!-- 第三纵向-->
  53. <div class="bigdata-list wid-li-3 m-l-15 flex-r">
  54. <div class="b-con mg-b-20 tall">
  55. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  56. <span>危化企业信息</span>
  57. </div>
  58. <chartenterprises/>
  59. </div>
  60. <div class="b-con mg-b-20 b-49">
  61. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  62. <span>应急队伍信息</span>
  63. </div>
  64. <chartteam></chartteam>
  65. </div>
  66. <div class="b-con mg-b-20 b-49">
  67. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  68. <span>仓库信息</span>
  69. </div>
  70. <chartwarehouse></chartwarehouse>
  71. </div>
  72. </div>
  73. <!-- <div class="b-con mg-b-20 b-49">
  74. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  75. <span>高发不合格项</span>
  76. </div>
  77. <chartKeyArea></chartKeyArea>
  78. </div> -->
  79. <!-- <div class="b-con mg-b-20 b-49">-->
  80. <!-- <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  81. <!-- <span>巡检不通过类型统计</span>-->
  82. <!-- </div>-->
  83. <!-- <chartAncientTree></chartAncientTree>-->
  84. <!-- </div>-->
  85. <!-- <div class="b-con tall">
  86. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  87. <span>高危企业分布情况</span>
  88. </div>
  89. <chartEventTrend></chartEventTrend>
  90. <strong></strong>
  91. </div>
  92. </div> -->
  93. <!-- 第四纵向-->
  94. <!-- <div class="bigdata-list wid-li-3 m-l-15 flex-r">-->
  95. <!-- <div class="b-con mg-b-20 taller">-->
  96. <!-- <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  97. <!-- <span>企业分布情况</span>-->
  98. <!-- </div>-->
  99. <!-- <chartGridDistribution></chartGridDistribution>-->
  100. <!-- </div>-->
  101. <!-- <div class="b-con">
  102. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  103. <span>逾期预警情况</span>
  104. </div>
  105. <chartWeatherTrends></chartWeatherTrends>
  106. </div> -->
  107. <!-- </div>-->
  108. <!-- 第五纵向-->
  109. <!-- <div class="bigdata-list wid-li-3 m-l-15 flex-r">-->
  110. <!-- <div class="b-con mg-b-20 tall">-->
  111. <!-- <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  112. <!-- <span>网格人员</span>-->
  113. <!-- </div>-->
  114. <!--&lt;!&ndash; <chartGridStaff></chartGridStaff>&ndash;&gt;-->
  115. <!-- </div>-->
  116. <!-- <div class="b-con mg-b-20 b-49">-->
  117. <!-- <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  118. <!-- <span>防火队</span>-->
  119. <!-- </div>-->
  120. <!--&lt;!&ndash; <chartFireBrigade></chartFireBrigade>&ndash;&gt;-->
  121. <!-- </div>-->
  122. <!-- <div class="b-con mg-b-20 b-49">-->
  123. <!-- <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  124. <!-- <span>气象站</span>-->
  125. <!-- </div>-->
  126. <!--&lt;!&ndash; <chartWeatherStation></chartWeatherStation>&ndash;&gt;-->
  127. <!-- </div>-->
  128. <!-- </div>-->
  129. <!-- 第六纵向-->
  130. <!-- <div class="bigdata-list wid-li-1 m-l-15">
  131. <div class="b-con mg-b-20 taller">
  132. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  133. <span>应急工作情况</span>
  134. </div>
  135. <chartEquipmentDistribution></chartEquipmentDistribution>
  136. </div>
  137. </div> -->
  138. </div>
  139. </div>
  140. </template>
  141. <script>
  142. import tabbar from './tabbar.vue' //区域切换
  143. import bigdataSupermap from '@/components/supermap' //超图
  144. //echarts
  145. import chartEvent from './chart-event.vue' //1 隐患整改情况
  146. import chartteam from './chart-team.vue'
  147. import chartwarehouse from './chart-warehouse.vue'
  148. import chartenterprises from './chart-enterprises.vue'
  149. import chartForestFarm from './chart-forestFarm.vue' //2 行业高危企业
  150. import chartEquipmentType from './chart-equipmentType.vue' //3 从业人员分布情况
  151. import chartFireCause from './chart-fireCause.vue' //4 应急物资、、
  152. import chartDeviceReportingEvents from './chart-deviceReportingEvents.vue' //5 巡检通过类型统计、、
  153. import chartEventTrend from './chart-eventTrend.vue' //6 高危企业分布情况、、
  154. import chartKeyArea from './chart-keyArea.vue' //7 高发不合格项、、
  155. import chartAncientTree from './chart-ancientTree.vue' //8 巡检不通过类型统计、、
  156. import chartWeatherTrends from './chart-weatherTrends.vue' //9 逾期预警情况、、
  157. import chartGridDistribution from './chart-gridDistribution.vue' //10 企业分布情况、、
  158. // import chartFireBrigade from './chart-fireBrigade.vue' //12 防火队、、
  159. // import chartGridStaff from './chart-gridStaff.vue' //13 网格人员、、
  160. // import chartWeatherStation from './chart-weatherStation.vue' //14 气象站、、
  161. import chartEquipmentDistribution from './chart-equipmentDistribution' //16 应急工作情况、、
  162. import { getRlt } from '@/api/bigdata'
  163. import { fontConfig } from '@/api/login'
  164. export default {
  165. components: {
  166. bigdataSupermap,
  167. tabbar,
  168. chartEvent,
  169. chartForestFarm,
  170. chartenterprises,
  171. chartEquipmentType,
  172. chartFireCause,
  173. chartDeviceReportingEvents,
  174. chartEventTrend,
  175. chartKeyArea,
  176. chartwarehouse,
  177. chartAncientTree,
  178. chartWeatherTrends,
  179. chartGridDistribution,
  180. chartteam,
  181. // chartFireBrigade,
  182. // chartGridStaff,
  183. // chartWeatherStation,
  184. chartEquipmentDistribution
  185. },
  186. data() {
  187. return {
  188. systemTitle: {
  189. title: '', //标题
  190. subTitle: ''//副标题 数字应急
  191. },
  192. visited: '',
  193. navbar: [
  194. {
  195. path: '/forest',
  196. name: '应急云图'
  197. },
  198. // {
  199. // path: '/forestDanger',
  200. // name: '巡检隐患'
  201. // },
  202. {
  203. path: '/monitor',
  204. name: '监控中心'
  205. },
  206. {
  207. path: '/datacenter',
  208. name: '应急资源'
  209. },
  210. // {
  211. // path: '/leader',
  212. // name: '巡检轨迹'
  213. // },
  214. {
  215. path: '/bigdata',
  216. name: '统计分析'
  217. }
  218. ],
  219. total: 0, //事件总数
  220. untreated: 0, //事件-未处理
  221. processing: 0 // 事件-处理中
  222. }
  223. },
  224. created() {
  225. this.fontConfig
  226. },
  227. computed:{
  228. fontConfig() {
  229. fontConfig().then(res => {
  230. this.systemTitle.title = res.data.fontTitle
  231. this.systemTitle.subTitle = res.data.subTitle
  232. })
  233. },
  234. },
  235. methods: {
  236. rlt() {
  237. let that = this
  238. getRlt().then(resp => {
  239. setTimeout(() => {
  240. //事件分布
  241. that.$refs.bigdataSupermap.loadHeatMap(resp.data)
  242. }, 5000)
  243. })
  244. }
  245. },
  246. mounted() {
  247. this.rlt()
  248. }
  249. }
  250. </script>
  251. <style rel="stylesheet/scss" lang="scss" scoped>
  252. @import '@/assets/styles/base.scss';
  253. .bigdata-con {
  254. width: -webkit-fit-content;
  255. height: 100%;
  256. background: #01020c;
  257. .el-loading-mask {
  258. background: none;
  259. }
  260. .header {
  261. height: 3rem;
  262. display: flex;
  263. align-items: center;
  264. .header-left {
  265. position: fixed;
  266. left: 10px;
  267. top: 5px;
  268. display: flex;
  269. align-items: center;
  270. color: $inBlue;
  271. font-family: $fontFk;
  272. .title {
  273. margin: 0 auto;
  274. text-align: center;
  275. background-image: -webkit-linear-gradient(bottom, rgba($color: #00f6ff, $alpha: 1.0), rgba($color: #005aff, $alpha: 1.0));
  276. -webkit-background-clip: text;
  277. -webkit-text-fill-color: transparent;
  278. color: #fff;
  279. font-size: 20px;
  280. }
  281. }
  282. .bignav {
  283. height: 40px;
  284. position: fixed;
  285. left: 50%;
  286. transform: translateX(-50%);
  287. top: 0;
  288. z-index: 1000;
  289. border-radius: 5px;
  290. display: flex;
  291. justify-content: cetner;
  292. align-items: center;
  293. .bignav-list {
  294. background: url(../../assets/images/integrated/bigdata-header-nav-re.png) repeat-x center;
  295. float: left;
  296. display: flex;
  297. justify-content: cetner;
  298. align-items: center;
  299. color: #fff;
  300. height: 40px;
  301. font-size: 12px;
  302. padding: 0 23px;
  303. cursor: pointer;
  304. -webkit-transform: translateY(0);
  305. transform: translateY(0);
  306. transition: all 0.3s ease-in-out;
  307. }
  308. .router-link-active,
  309. .bignav-list:hover {
  310. filter: brightness(2.3);
  311. -webkit-transform: translateY(2px);
  312. transform: translateY(2px);
  313. color: $inBlueHover;
  314. border-bottom: 1px solid $inBlueHover;
  315. transition: all 0.3s ease-in-out;
  316. }
  317. }
  318. }
  319. .bigdata-body {
  320. margin: 15px;
  321. display: flex;
  322. align-items: top;
  323. // justify-content: center;
  324. }
  325. .flex-r {
  326. display: flex;
  327. flex-direction: row !important;
  328. align-content: flex-start;
  329. justify-content: space-between
  330. }
  331. .bigdata-list {
  332. display: flex;
  333. flex-direction: column;
  334. flex-wrap: wrap;
  335. .twins-con {
  336. width: 100% !important;
  337. }
  338. .b-49 {
  339. width: 49% !important;
  340. }
  341. .b-con {
  342. width: 100%;
  343. //height: 28.5vh;
  344. height: 28.5vh;
  345. box-shadow: 0 0 1px rgba($color: #163696, $alpha: .1),
  346. -0 -0 30px rgba($color: #163696, $alpha: .5) inset;
  347. // display: flex;
  348. // flex-direction: column;
  349. .b-tit {
  350. width: 100%;
  351. display: flex;
  352. align-items: center;
  353. padding: 10px;
  354. span {
  355. font-size: 15px;
  356. color: #00ceec;
  357. margin-left: 5px;
  358. text-shadow: 0 0 3px rgba($color: #41ff84, $alpha: .5),
  359. -0 -0 10px rgba($color: #41fff8, $alpha: .9);
  360. }
  361. }
  362. .b-tit1 {
  363. width: 100%;
  364. display: flex;
  365. align-items: center;
  366. padding: 10px;
  367. span {
  368. font-size: 15px;
  369. color: #00ceec;
  370. margin-left: 5px;
  371. text-shadow: 0 0 3px rgba($color: #41ff84, $alpha: .5),
  372. -0 -0 10px rgba($color: #41fff8, $alpha: .9);
  373. }
  374. }
  375. .twins {
  376. width: 100%;
  377. display: flex;
  378. position: relative;
  379. .count {
  380. width: 100%;
  381. color: #fff;
  382. font-size: 12px;
  383. position: absolute;
  384. display: flex;
  385. align-items: center;
  386. left: 1rem;
  387. top: 9px;
  388. z-index: 100;
  389. .count-z {
  390. display: flex;
  391. margin: 0 .5rem;
  392. span {
  393. margin-left: .4rem;
  394. font-size: 1rem;
  395. color: #2ee0fb !important;
  396. font-weight: bolder;
  397. }
  398. }
  399. }
  400. }
  401. }
  402. .b-con1 {
  403. width: 100%;
  404. //height: 28.5vh;
  405. height: 57vh;
  406. box-shadow: 0 0 1px rgba($color: #163696, $alpha: .1),
  407. -0 -0 30px rgba($color: #163696, $alpha: .5) inset;
  408. // display: flex;
  409. // flex-direction: column;
  410. .b-tit {
  411. width: 100%;
  412. display: flex;
  413. align-items: center;
  414. padding: 10px;
  415. span {
  416. font-size: 15px;
  417. color: #00ceec;
  418. margin-left: 5px;
  419. text-shadow: 0 0 3px rgba($color: #41ff84, $alpha: .5),
  420. -0 -0 10px rgba($color: #41fff8, $alpha: .9);
  421. }
  422. }
  423. .b-tit1 {
  424. width: 100%;
  425. display: flex;
  426. align-items: center;
  427. padding: 10px;
  428. span {
  429. font-size: 15px;
  430. color: #00ceec;
  431. margin-left: 5px;
  432. text-shadow: 0 0 3px rgba($color: #41ff84, $alpha: .5),
  433. -0 -0 10px rgba($color: #41fff8, $alpha: .9);
  434. }
  435. }
  436. .twins {
  437. width: 100%;
  438. display: flex;
  439. position: relative;
  440. .count {
  441. width: 100%;
  442. color: #fff;
  443. font-size: 12px;
  444. position: absolute;
  445. display: flex;
  446. align-items: center;
  447. left: 1rem;
  448. top: 9px;
  449. z-index: 100;
  450. .count-z {
  451. display: flex;
  452. margin: 0 .5rem;
  453. span {
  454. margin-left: .4rem;
  455. font-size: 1rem;
  456. color: #2ee0fb !important;
  457. font-weight: bolder;
  458. }
  459. }
  460. }
  461. }
  462. }
  463. .tall {
  464. height: 59vh !important;
  465. }
  466. .taller {
  467. height: 89.5vh !important;
  468. }
  469. .three {
  470. display: flex;
  471. flex-direction: column;
  472. }
  473. .el-row {
  474. width: 100%;
  475. }
  476. .bigdata-map {
  477. width: 100%;
  478. height: 59vh;
  479. position: relative;
  480. background: #00101f;
  481. .event-count {
  482. color: #fff;
  483. font-size: 14px;
  484. font-weight: bolder;
  485. padding: 10px;
  486. background-color: #000000;
  487. position: absolute;
  488. top: 10px;
  489. left: 10px;
  490. z-index: 1000;
  491. span {
  492. font-size: 16px;
  493. color: #d50000;
  494. }
  495. }
  496. }
  497. }
  498. .wid-li-1 {
  499. width: 396px;
  500. }
  501. .wid-li-2 {
  502. width: 760px;
  503. }
  504. .wid-li-3 {
  505. width: 850px;
  506. }
  507. .wid-li-4 {
  508. width: 304px;
  509. }
  510. .mg-b-20 {
  511. margin-bottom: 2vh;
  512. }
  513. .m-l-15 {
  514. margin-left: .5%;
  515. }
  516. }
  517. </style>