bigdata.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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">通榆县乡村振兴监管平台-数字环保-统计分析</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. <chartPollutionSource></chartPollutionSource>
  34. </div>
  35. <div class="b-con">
  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 b-49">
  55. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  56. <span>起火原因统计</span>
  57. </div>
  58. <chartFireCause></chartFireCause>
  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. <chartDeviceReportingEvents></chartDeviceReportingEvents>
  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. <chartKeyArea></chartKeyArea>
  71. </div>
  72. <div class="b-con mg-b-20 b-49">
  73. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  74. <span>重点企业</span>
  75. </div>
  76. <chartKeyEnterprises></chartKeyEnterprises>
  77. </div>
  78. <div class="b-con">
  79. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  80. <span>事件趋势</span>
  81. </div>
  82. <chartEventTrend></chartEventTrend>
  83. <strong></strong>
  84. </div>
  85. </div>
  86. <!-- 第四纵向-->
  87. <div class="bigdata-list wid-li-3 m-l-15 flex-r">
  88. <div class="b-con mg-b-20 tall">
  89. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  90. <span>禁烧区分布</span>
  91. </div>
  92. <chartNoBurningArea></chartNoBurningArea>
  93. </div>
  94. <div class="b-con">
  95. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  96. <span>天气趋势</span>
  97. </div>
  98. <chartWeatherTrends></chartWeatherTrends>
  99. </div>
  100. </div>
  101. <!-- 第五纵向-->
  102. <!--<div class="bigdata-list wid-li-3 m-l-15 flex-r">-->
  103. <!--<div class="b-con mg-b-20 tall">-->
  104. <!--<div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  105. <!--<span>网格人员</span>-->
  106. <!--</div>-->
  107. <!--<chartGridStaff></chartGridStaff>-->
  108. <!--</div>-->
  109. <!--<div class="b-con mg-b-20 b-49">-->
  110. <!--<div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  111. <!--<span>防火队</span>-->
  112. <!--</div>-->
  113. <!--<chartFireBrigade></chartFireBrigade>-->
  114. <!--</div>-->
  115. <!--<div class="b-con mg-b-20 b-49">-->
  116. <!--<div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">-->
  117. <!--<span>气象站</span>-->
  118. <!--</div>-->
  119. <!--<chartWeatherStation></chartWeatherStation>-->
  120. <!--</div>-->
  121. <!--</div>-->
  122. <!-- 第六纵向-->
  123. <div class="bigdata-list wid-li-1 m-l-15">
  124. <div class="b-con mg-b-20 taller">
  125. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  126. <span>设备分布</span>
  127. </div>
  128. <chartEquipmentDistribution></chartEquipmentDistribution>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </template>
  134. <script>
  135. import tabbar from './tabbar.vue' //区域切换
  136. import bigdataSupermap from '@/components/supermap' //超图
  137. //echarts
  138. import chartEvent from './chart-event.vue' //1 事件、、
  139. import chartPollutionSource from './chart-pollutionSource.vue' //2 污染源分布、、
  140. import chartEquipmentType from './chart-equipmentType.vue' //3 公司、、
  141. import chartFireCause from './chart-fireCause.vue' //4 起火原因、、
  142. import chartDeviceReportingEvents from './chart-deviceReportingEvents.vue' //5 设备上报数量、、
  143. import chartEventTrend from './chart-eventTrend.vue' //6 事件趋势、、
  144. import chartKeyArea from './chart-keyArea.vue' //7 重点区域、、
  145. import chartKeyEnterprises from './chart-keyEnterprises.vue' //8 重点企业、、
  146. import chartWeatherTrends from './chart-weatherTrends.vue' //9 天气趋势、、
  147. import chartNoBurningArea from './chart-noBurningArea.vue' //10 禁烧区分布、、
  148. // import chartFireBrigade from './chart-fireBrigade.vue' //12 防火队、、
  149. // import chartGridStaff from './chart-gridStaff.vue' //13 网格人员、、
  150. // import chartWeatherStation from './chart-weatherStation.vue' //14 气象站、、
  151. import chartEquipmentDistribution from './chart-equipmentDistribution' //16 设备分布、、
  152. import {getRlt} from '@/api/bigdata'
  153. export default {
  154. components: {
  155. bigdataSupermap,
  156. tabbar,
  157. chartEvent,
  158. chartPollutionSource,
  159. chartEquipmentType,
  160. chartFireCause,
  161. chartDeviceReportingEvents,
  162. chartEventTrend,
  163. chartKeyArea,
  164. chartKeyEnterprises,
  165. chartWeatherTrends,
  166. chartNoBurningArea,
  167. // chartFireBrigade,
  168. // chartGridStaff,
  169. // chartWeatherStation,
  170. chartEquipmentDistribution
  171. },
  172. data() {
  173. return {
  174. visited: '',
  175. navbar: [
  176. {
  177. //生态云图
  178. path: '/forest',
  179. name: '生态云图'
  180. },
  181. {
  182. //数据中心
  183. path: '/datacenter',
  184. name: '数据中心'
  185. },
  186. {
  187. //监控中心
  188. path: '/monitor',
  189. name: '监控中心'
  190. }, {
  191. path: '/',
  192. name: '土壤墒情'
  193. },
  194. {
  195. path: '/',
  196. name: '污染源'
  197. }, {
  198. path: '/',
  199. name: '水质环境'
  200. },
  201. {
  202. path: '/',
  203. name: '大气环境'
  204. },
  205. {
  206. path: '/bigdata',
  207. name: '统计分析'
  208. }
  209. ],
  210. total: 0, //事件总数
  211. untreated: 0, //事件-未处理
  212. processing: 0 // 事件-处理中
  213. }
  214. },
  215. methods: {
  216. rlt() {
  217. let that = this
  218. getRlt().then(resp => {
  219. setTimeout(() => {
  220. //事件分布
  221. that.$refs.bigdataSupermap.loadHeatMap(resp.data)
  222. }, 5000)
  223. })
  224. }
  225. },
  226. mounted() {
  227. this.rlt()
  228. }
  229. }
  230. </script>
  231. <style rel="stylesheet/scss" lang="scss" scoped>
  232. @import '@/assets/styles/base.scss';
  233. .bigdata-con {
  234. width: -webkit-fit-content;
  235. height: 100%;
  236. background: #01020c;
  237. .el-loading-mask {
  238. background: none;
  239. }
  240. .header {
  241. height: 3rem;
  242. display: flex;
  243. align-items: center;
  244. .header-left {
  245. position: fixed;
  246. left: 10px;
  247. top: 5px;
  248. display: flex;
  249. align-items: center;
  250. color: $inBlue;
  251. font-family: $fontFk;
  252. .title {
  253. margin: 0 auto;
  254. text-align: center;
  255. background-image: -webkit-linear-gradient(bottom, rgba($color: #00f6ff, $alpha: 1.0), rgba($color: #005aff, $alpha: 1.0));
  256. -webkit-background-clip: text;
  257. -webkit-text-fill-color: transparent;
  258. color: #fff;
  259. font-size: 22px;
  260. }
  261. }
  262. .bignav {
  263. height: 40px;
  264. position: fixed;
  265. left: 50%;
  266. transform: translateX(-50%);
  267. top: 0;
  268. z-index: 1000;
  269. border-radius: 5px;
  270. display: flex;
  271. justify-content: cetner;
  272. align-items: center;
  273. .bignav-list {
  274. background: url(../../assets/images/integrated/bigdata-header-nav-re.png) repeat-x center;
  275. float: left;
  276. display: flex;
  277. justify-content: cetner;
  278. align-items: center;
  279. color: #fff;
  280. height: 40px;
  281. font-size: 12px;
  282. padding: 0 23px;
  283. cursor: pointer;
  284. -webkit-transform: translateY(0);
  285. transform: translateY(0);
  286. transition: all 0.3s ease-in-out;
  287. }
  288. .router-link-active,
  289. .bignav-list:hover {
  290. filter: brightness(2.3);
  291. -webkit-transform: translateY(2px);
  292. transform: translateY(2px);
  293. color: $inBlueHover;
  294. border-bottom: 1px solid $inBlueHover;
  295. transition: all 0.3s ease-in-out;
  296. }
  297. }
  298. }
  299. .bigdata-body {
  300. margin: 15px;
  301. display: flex;
  302. align-items: top;
  303. // justify-content: center;
  304. }
  305. .flex-r {
  306. display: flex;
  307. flex-direction: row !important;
  308. align-content: flex-start;
  309. justify-content: space-between
  310. }
  311. .bigdata-list {
  312. display: flex;
  313. flex-direction: column;
  314. flex-wrap: wrap;
  315. .twins-con {
  316. width: 100% !important;
  317. }
  318. .b-49 {
  319. width: 49% !important;
  320. }
  321. .b-con {
  322. width: 100%;
  323. height: 28.5vh;
  324. box-shadow: 0 0 1px rgba($color: #163696, $alpha: .1),
  325. -0 -0 30px rgba($color: #163696, $alpha: .5) inset;
  326. // display: flex;
  327. // flex-direction: column;
  328. .b-tit {
  329. width: 100%;
  330. display: flex;
  331. align-items: center;
  332. padding: 10px;
  333. span {
  334. font-size: 15px;
  335. color: #00ceec;
  336. margin-left: 5px;
  337. text-shadow: 0 0 3px rgba($color: #41ff84, $alpha: .5),
  338. -0 -0 10px rgba($color: #41fff8, $alpha: .9);
  339. }
  340. }
  341. .twins {
  342. width: 100%;
  343. display: flex;
  344. position: relative;
  345. .count {
  346. width: 100%;
  347. color: #fff;
  348. font-size: 12px;
  349. position: absolute;
  350. display: flex;
  351. align-items: center;
  352. left: 1rem;
  353. top: 9px;
  354. z-index: 100;
  355. .count-z {
  356. display: flex;
  357. margin: 0 .5rem;
  358. span {
  359. margin-left: .4rem;
  360. font-size: 1rem;
  361. color: #2ee0fb !important;
  362. font-weight: bolder;
  363. }
  364. }
  365. }
  366. }
  367. }
  368. .tall {
  369. height: 59vh !important;
  370. }
  371. .taller {
  372. height: 89.5vh !important;
  373. }
  374. .three {
  375. display: flex;
  376. flex-direction: column;
  377. }
  378. .el-row {
  379. width: 100%;
  380. }
  381. .bigdata-map {
  382. width: 100%;
  383. height: 59vh;
  384. position: relative;
  385. background: #00101f;
  386. .event-count {
  387. color: #fff;
  388. font-size: 14px;
  389. font-weight: bolder;
  390. padding: 10px;
  391. background-color: #000000;
  392. position: absolute;
  393. top: 10px;
  394. left: 10px;
  395. z-index: 1000;
  396. span {
  397. font-size: 16px;
  398. color: #d50000;
  399. }
  400. }
  401. }
  402. }
  403. .wid-li-1 {
  404. width: 396px;
  405. }
  406. .wid-li-2 {
  407. width: 760px;
  408. }
  409. .wid-li-3 {
  410. width: 850px;
  411. }
  412. .wid-li-4 {
  413. width: 304px;
  414. }
  415. .mg-b-20 {
  416. margin-bottom: 2vh;
  417. }
  418. .m-l-15 {
  419. margin-left: .5%;
  420. }
  421. }
  422. </style>