bigdata.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  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. <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. <!--&lt;!&ndash; <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">&ndash;&gt;-->
  56. <!--&lt;!&ndash; <span>起火原因统计</span>&ndash;&gt;-->
  57. <!--&lt;!&ndash; </div>&ndash;&gt;-->
  58. <!--&lt;!&ndash; <chartFireCause></chartFireCause>&ndash;&gt;-->
  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-98">
  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 mg-b-20 tall">
  95. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  96. <span>设备分布</span>
  97. </div>
  98. <chartEquipmentDistribution></chartEquipmentDistribution>
  99. </div>
  100. <div class="b-con">
  101. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  102. <span>天气趋势</span>
  103. </div>
  104. <chartWeatherTrends></chartWeatherTrends>
  105. </div>
  106. </div>
  107. <!-- 第五纵向-->
  108. <!-- <div class="bigdata-list wid-li-1 m-l-15">-->
  109. <!-- -->
  110. <!-- </div>-->
  111. <!-- 第六纵向-->
  112. <div class="bigdata-list wid-li-3 m-l-15 flex-r">
  113. <div class="b-con mg-b-20 tall">
  114. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  115. <span>比重分析按事件类别统计事件比重</span>
  116. </div>
  117. <chartDetector></chartDetector>
  118. </div>
  119. <div class="b-con mg-b-20">
  120. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  121. <span>车辆资源统计</span>
  122. </div>
  123. <chartPit></chartPit>
  124. </div>
  125. </div>
  126. <!-- 第七纵向-->
  127. <div class="bigdata-list wid-li-3 m-l-15 flex-r">
  128. <div class="b-con mg-b-20">
  129. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  130. <span>大气监测分析年统计</span>
  131. </div>
  132. <chartAtmosphereYear></chartAtmosphereYear>
  133. </div>
  134. <div class="b-con mg-b-20">
  135. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  136. <span>大气监测分析日统计</span>
  137. </div>
  138. <chartAtmosphereMonth></chartAtmosphereMonth>
  139. </div>
  140. <div class="b-con mg-b-20">
  141. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  142. <span>污染源监测分析年统计</span>
  143. </div>
  144. <chartPollutionYear></chartPollutionYear>
  145. </div>
  146. </div>
  147. <!-- 第八纵向-->
  148. <div class="bigdata-list wid-li-3 m-l-15 flex-r">
  149. <div class="b-con mg-b-20">
  150. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  151. <span>污染源监测分析日统计</span>
  152. </div>
  153. <chartPollutionMonth></chartPollutionMonth>
  154. </div>
  155. <div class="b-con mg-b-20">
  156. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  157. <span>土壤监测分析年统计</span>
  158. </div>
  159. <chartSoilYear></chartSoilYear>
  160. </div>
  161. <div class="b-con mg-b-20">
  162. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  163. <span>土壤源监测分析日统计</span>
  164. </div>
  165. <chartSoilMonth></chartSoilMonth>
  166. </div>
  167. </div>
  168. <!-- 第九纵向-->
  169. <div class="bigdata-list wid-li-3 m-l-15 flex-r">
  170. <div class="b-con mg-b-20">
  171. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  172. <span>水质监测分析年统计</span>
  173. </div>
  174. <chartWaterqualityYear></chartWaterqualityYear>
  175. </div>
  176. <div class="b-con mg-b-20">
  177. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  178. <span>水质监测分析日统计</span>
  179. </div>
  180. <chartWaterqualityMonth></chartWaterqualityMonth>
  181. </div>
  182. <div class="b-con">
  183. <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
  184. <span>环保人员考勤</span>
  185. </div>
  186. <chartKaoqin></chartKaoqin>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </template>
  192. <script>
  193. import tabbar from './tabbar.vue' //区域切换
  194. import bigdataSupermap from '@/components/supermap' //超图
  195. //echarts
  196. import chartEvent from './chart-event.vue' //1 事件、、
  197. import chartPollutionSource from './chart-pollutionSource.vue' //2 污染源分布、、
  198. import chartEquipmentType from './chart-equipmentType.vue' //3 公司、、
  199. import chartFireCause from './chart-fireCause.vue' //4 起火原因、、
  200. import chartDeviceReportingEvents from './chart-deviceReportingEvents.vue' //5 设备上报数量、、
  201. import chartEventTrend from './chart-eventTrend.vue' //6 事件趋势、、
  202. import chartKeyArea from './chart-keyArea.vue' //7 重点区域、、
  203. import chartKeyEnterprises from './chart-keyEnterprises.vue' //8 重点企业、、
  204. import chartWeatherTrends from './chart-weatherTrends.vue' //9 天气趋势、、
  205. import chartNoBurningArea from './chart-noBurningArea.vue' //10 禁烧区分布、、
  206. // import chartFireBrigade from './chart-fireBrigade.vue' //12 防火队、、
  207. // import chartGridStaff from './chart-gridStaff.vue' //13 网格人员、、
  208. // import chartWeatherStation from './chart-weatherStation.vue' //14 气象站、、
  209. import chartEquipmentDistribution from './chart-equipmentDistribution' //16 设备分布、、
  210. import chartDetector from './chart-detector' //16 设备分布、、
  211. import chartPit from './chart-pit' //16 设备分布、、
  212. import chartAtmosphereYear from './chart-atmosphereYear.vue' //26 大气 监测分析年统计
  213. import chartAtmosphereMonth from './chart-atmosphereMonth.vue' //27 大气 监测分析月统计
  214. import chartPollutionYear from './chart-pollutionYear.vue' //28 污染源 监测分析年统计
  215. import chartPollutionMonth from './chart-pollutionMonth.vue' //29 污染源 监测分析月统计
  216. import chartSoilYear from './chart-soilYear.vue' //30 土壤 监测分析年统计
  217. import chartSoilMonth from './chart-soilMonth.vue' //31 土壤 监测分析月统计
  218. import chartWaterqualityYear from './chart-waterqualityYear.vue' //32 水质 监测分析年统计
  219. import chartWaterqualityMonth from './chart-waterqualityMonth.vue' //33 水质 监测分析月统计
  220. import chartKaoqin from './chart-kaoqin.vue' //33 水质 监测分析月统计
  221. import { getRlt } from '@/api/bigdata'
  222. import {
  223. fontConfig
  224. } from '@/api/login'
  225. export default {
  226. components: {
  227. bigdataSupermap,
  228. tabbar,
  229. chartEvent,
  230. chartPollutionSource,
  231. chartEquipmentType,
  232. chartFireCause,
  233. chartDeviceReportingEvents,
  234. chartEventTrend,
  235. chartKeyArea,
  236. chartKeyEnterprises,
  237. chartWeatherTrends,
  238. chartNoBurningArea,
  239. // chartFireBrigade,
  240. // chartGridStaff,
  241. // chartWeatherStation,
  242. chartEquipmentDistribution,
  243. chartDetector,
  244. chartPit,
  245. chartAtmosphereYear,
  246. chartAtmosphereMonth,
  247. chartPollutionYear,
  248. chartPollutionMonth,
  249. chartSoilYear,
  250. chartSoilMonth,
  251. chartWaterqualityYear,
  252. chartWaterqualityMonth,
  253. chartKaoqin
  254. },
  255. data() {
  256. return {
  257. systemTitle: {
  258. title: '', //标题
  259. subTitle: ''//副标题 数字环保
  260. },
  261. visited: '',
  262. navbar: [
  263. {
  264. //生态云图
  265. path: '/forest',
  266. name: '生态云图'
  267. },
  268. {
  269. //数据中心
  270. path: '/datacenter',
  271. name: '数据中心'
  272. },
  273. {
  274. //监控中心
  275. path: '/monitor',
  276. name: '监控中心'
  277. },
  278. {
  279. //环保人员
  280. path: '/leader',
  281. name: '巡查任务'
  282. },
  283. {
  284. path: '/bigdata',
  285. name: '统计分析'
  286. }
  287. ],
  288. total: 0, //事件总数
  289. untreated: 0, //事件-未处理
  290. processing: 0 // 事件-处理中
  291. }
  292. },
  293. created() {
  294. this.fontConfig()
  295. },
  296. methods: {
  297. fontConfig() {
  298. fontConfig().then(res => {
  299. this.systemTitle.title = res.data.fontTitle
  300. this.systemTitle.subTitle = res.data.subTitle
  301. })
  302. },
  303. rlt() {
  304. let that = this
  305. let data = {
  306. eventTypeId:['102'],
  307. day: new Date().getFullYear()
  308. }
  309. getRlt(data).then(resp => {
  310. setTimeout(() => {
  311. //事件分布
  312. that.$refs.bigdataSupermap.loadHeatMap(resp.data)
  313. }, 5000)
  314. })
  315. }
  316. },
  317. mounted() {
  318. this.rlt()
  319. }
  320. }
  321. </script>
  322. <style rel="stylesheet/scss" lang="scss" scoped>
  323. @import '@/assets/styles/base.scss';
  324. .bigdata-con {
  325. width: -webkit-fit-content;
  326. height: 100%;
  327. background: #01020c;
  328. .el-loading-mask {
  329. background: none;
  330. }
  331. .header {
  332. height: 3rem;
  333. display: flex;
  334. align-items: center;
  335. .header-left {
  336. position: fixed;
  337. left: 10px;
  338. top: 5px;
  339. display: flex;
  340. align-items: center;
  341. color: $inBlue;
  342. font-family: $fontFk;
  343. .title {
  344. margin: 0 auto;
  345. text-align: center;
  346. background-image: -webkit-linear-gradient(bottom, rgba($color: #00f6ff, $alpha: 1.0), rgba($color: #005aff, $alpha: 1.0));
  347. -webkit-background-clip: text;
  348. -webkit-text-fill-color: transparent;
  349. color: #fff;
  350. font-size: 22px;
  351. }
  352. }
  353. .bignav {
  354. height: 40px;
  355. position: fixed;
  356. left: 50%;
  357. transform: translateX(-50%);
  358. top: 0;
  359. z-index: 1000;
  360. border-radius: 5px;
  361. display: flex;
  362. justify-content: cetner;
  363. align-items: center;
  364. .bignav-list {
  365. background: url(../../assets/images/integrated/bigdata-header-nav-re.png) repeat-x center;
  366. float: left;
  367. display: flex;
  368. justify-content: cetner;
  369. align-items: center;
  370. color: #fff;
  371. height: 40px;
  372. font-size: 12px;
  373. padding: 0 23px;
  374. cursor: pointer;
  375. -webkit-transform: translateY(0);
  376. transform: translateY(0);
  377. transition: all 0.3s ease-in-out;
  378. }
  379. .router-link-active,
  380. .bignav-list:hover {
  381. filter: brightness(2.3);
  382. -webkit-transform: translateY(2px);
  383. transform: translateY(2px);
  384. color: $inBlueHover;
  385. border-bottom: 1px solid $inBlueHover;
  386. transition: all 0.3s ease-in-out;
  387. }
  388. }
  389. }
  390. .bigdata-body {
  391. margin: 15px;
  392. display: flex;
  393. align-items: top;
  394. // justify-content: center;
  395. }
  396. .flex-r {
  397. display: flex;
  398. flex-direction: row !important;
  399. align-content: flex-start;
  400. justify-content: space-between
  401. }
  402. .bigdata-list {
  403. display: flex;
  404. flex-direction: column;
  405. flex-wrap: wrap;
  406. .twins-con {
  407. width: 100% !important;
  408. }
  409. .b-49 {
  410. width: 49% !important;
  411. }
  412. .b-98 {
  413. width: 100% !important;
  414. }
  415. .b-con {
  416. width: 100%;
  417. height: 28.5vh;
  418. box-shadow: 0 0 1px rgba($color: #163696, $alpha: .1),
  419. -0 -0 30px rgba($color: #163696, $alpha: .5) inset;
  420. // display: flex;
  421. // flex-direction: column;
  422. .b-tit {
  423. width: 100%;
  424. display: flex;
  425. align-items: center;
  426. padding: 10px;
  427. span {
  428. font-size: 15px;
  429. color: #00ceec;
  430. margin-left: 5px;
  431. text-shadow: 0 0 3px rgba($color: #41ff84, $alpha: .5),
  432. -0 -0 10px rgba($color: #41fff8, $alpha: .9);
  433. }
  434. }
  435. .twins {
  436. width: 100%;
  437. display: flex;
  438. position: relative;
  439. .count {
  440. width: 100%;
  441. color: #fff;
  442. font-size: 12px;
  443. position: absolute;
  444. display: flex;
  445. align-items: center;
  446. left: 1rem;
  447. top: 9px;
  448. z-index: 100;
  449. .count-z {
  450. display: flex;
  451. margin: 0 .5rem;
  452. span {
  453. margin-left: .4rem;
  454. font-size: 1rem;
  455. color: #2ee0fb !important;
  456. font-weight: bolder;
  457. }
  458. }
  459. }
  460. }
  461. }
  462. .tall {
  463. height: 59vh !important;
  464. }
  465. .taller {
  466. height: 89.5vh !important;
  467. }
  468. .three {
  469. display: flex;
  470. flex-direction: column;
  471. }
  472. .el-row {
  473. width: 100%;
  474. }
  475. .bigdata-map {
  476. width: 100%;
  477. height: 59vh;
  478. position: relative;
  479. background: #00101f;
  480. .event-count {
  481. color: #fff;
  482. font-size: 14px;
  483. font-weight: bolder;
  484. padding: 10px;
  485. background-color: #000000;
  486. position: absolute;
  487. top: 10px;
  488. left: 10px;
  489. z-index: 1000;
  490. span {
  491. font-size: 16px;
  492. color: #d50000;
  493. }
  494. }
  495. }
  496. }
  497. .wid-li-1 {
  498. width: 396px;
  499. }
  500. .wid-li-2 {
  501. width: 760px;
  502. }
  503. .wid-li-3 {
  504. width: 850px;
  505. }
  506. .wid-li-4 {
  507. width: 304px;
  508. }
  509. .mg-b-20 {
  510. margin-bottom: 2vh;
  511. }
  512. .m-l-15 {
  513. margin-left: .5%;
  514. }
  515. }
  516. </style>