index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. <template>
  2. <div class="base-container no-events">
  3. <fnHeader showDate></fnHeader>
  4. <div class="content">
  5. <navigation @handleTab="handleTab"></navigation>
  6. <div class="left yes-events">
  7. <tool-list
  8. direction="left"
  9. :list="leftToolList"
  10. @handleActive="handleActiveLeft"
  11. ></tool-list>
  12. <component :is="components[currentComponent]" />
  13. <!-- 箭头 -->
  14. <div class="arrow" @click="handleShrink">
  15. <el-icon class="icon" color="#141414"><DArrowLeft /></el-icon>
  16. </div>
  17. </div>
  18. <div class="home-bottom">
  19. <time-line class="time-wrap yes-events"></time-line>
  20. <img class="fly-icon" src="@/assets/images/home/fly-icon.png" alt="">
  21. <!-- <div class="log-box yes-events">
  22. <chart-box class="overflow">
  23. <template #title-name>
  24. <div class="box-name" @click="handleSelectArea">果园日志</div>
  25. </template>
  26. <div class="log-content">
  27. 2月13日,共抽样193棵树,拍摄了193张照片,{{indicatorChartData.content}}
  28. </div>
  29. <div class="chart-wrap">
  30. <indicator-chart :key="0 + 'log'" type="feature" :chartData="indicatorChartData"></indicator-chart>
  31. </div>
  32. </chart-box>
  33. </div> -->
  34. <!-- <div class="file-box yes-events">
  35. <chart-box name="果园档案">
  36. <template #title-right>
  37. <el-icon class="arrow-icon cursor-pointer" color="#141414"
  38. ><DArrowLeft
  39. /></el-icon>
  40. <div class="edit-btn cursor-pointer" @click="toFilePage">编辑</div>
  41. </template>
  42. <file-bar></file-bar>
  43. </chart-box>
  44. </div> -->
  45. </div>
  46. <div class="right yes-events">
  47. <div class="list">
  48. <chart-box name="农事列表" arrow="arrow-left" :class="{'list-wrap': rightIndex===0}">
  49. <template v-if="rightIndex===0">
  50. <album></album>
  51. <!-- <img class="tabs" src="@/assets/images/home/ns-tabs.png" alt="">
  52. <div class="img-box">
  53. <img @click="handleAct(item)" v-for="item in 2" :key="item" :src="require(`@/assets/images/home/0${act<=2&&act==item?item+'-act':item}.png`)" alt="">
  54. </div> -->
  55. </template>
  56. <template v-if="rightIndex===1">
  57. <div class="img-box1">
  58. <img src="@/assets/images/home/fh01.png" alt="">
  59. <img src="@/assets/images/home/fh02.png" alt="">
  60. </div>
  61. </template>
  62. <template v-if="rightIndex===2">
  63. <div class="btn-wrap">
  64. <div :class="{active:btnIndex===0}" @click="handleBtn(0)">{{btnIndex===0&&btnName!=''?'采样分区:'+ btnName:'选择采样分区'}}</div>
  65. <div :class="{active:btnIndex===1}" @click="handleBtn(1)">{{btnIndex===1&&btnName!=''?'单树编号:'+ btnName:'选择树'}}</div>
  66. </div>
  67. <div class="img-box2" v-show="showPoint">
  68. <img v-if="showType==='point'" src="@/assets/images/home/line-chart.png" alt="">
  69. <img v-else src="@/assets/images/home/line-chart2.png" alt="">
  70. <img src="@/assets/images/home/fh01.png" alt="">
  71. </div>
  72. <div class="img-box2" v-show="!showPoint">
  73. <img v-if="showType==='point'" src="@/assets/images/home/line-chart1.png" alt="">
  74. <img v-else src="@/assets/images/home/line-chart3.png" alt="">
  75. <img src="@/assets/images/home/fh02.png" alt="">
  76. </div>
  77. </template>
  78. </chart-box>
  79. </div>
  80. <tool-list direction="right" :list="rightToolList" @handleActive="handleActiveRight"></tool-list>
  81. </div>
  82. <!-- 图例 -->
  83. <img class="legend yes-events" src="@/assets/images/home/legend.png" alt="">
  84. </div>
  85. </div>
  86. <div ref="mapRef" class="bottom-map"></div>
  87. <!-- 图片弹窗 -->
  88. <PicturePreview
  89. :imageUrl="urls"
  90. :curIndex="urlsIndex"
  91. ></PicturePreview>
  92. <album-carousel></album-carousel>
  93. <PdfDialog title="果园报告" ></PdfDialog>
  94. </template>
  95. <script setup>
  96. import { onMounted, onUnmounted, ref } from "vue";
  97. import config from "@/api/config.js"
  98. import timeLine from "@/components/timeLine.vue";
  99. import PicturePreview from "@/components/PicturePreview.vue";
  100. import fnHeader from "@/components/fnHeader.vue";
  101. import navigation from "@/components/navigation.vue";
  102. import chartBox from "@/components/chartBox.vue";
  103. import toolList from "@/components/toolList.vue";
  104. import fileBar from "@/components/fileBar.vue";
  105. import HomeMap from "./map/homeMap";
  106. import homePage from "./components/homePage.vue";
  107. import weatherPage from "./components/weatherPage.vue";
  108. import phenologyPage from "./components/phenologyPage.vue";
  109. import indicatorChart from "./components/indicatorChart.vue";
  110. import { useRouter } from "vue-router";
  111. import SamplePointLayer from "./map/samplePointLayer";
  112. import {useStore} from "vuex";
  113. import RegionLayer from "./map/regionLayer";
  114. import BlueRegionLayer from "./map/blueRegionLayer";
  115. import eventBus from "@/api/eventBus";
  116. import AlbumCarousel from "./album_compoents/albumCarousel.vue";
  117. import album from "./album/index.vue";
  118. import PdfDialog from "../../components/PdfDialog"
  119. let store = useStore()
  120. const components = {
  121. homePage,
  122. weatherPage,
  123. phenologyPage,
  124. };
  125. //当前农场
  126. const currentFarm = {
  127. id: store.getters.userinfo.curFarmId,
  128. name: store.getters.userinfo.curFarmName,
  129. }
  130. //当前区域
  131. const currentRegion = {
  132. id: null,
  133. name: null
  134. }
  135. let homeMap = new HomeMap();
  136. let samplePointLayer = null
  137. let regionLayer = null
  138. let blueRegionLayer = null
  139. const router = useRouter();
  140. const mapRef = ref();
  141. onMounted(() => {
  142. homeMap.initMap("POINT(113.61448114737868 23.585550924763083)", mapRef.value);
  143. // homeMap.initMap(store.getters.userinfo.location, mapRef.value);
  144. // regionLayer = new RegionLayer(homeMap.kmap.map, currentFarm, currentRegion)
  145. samplePointLayer = new SamplePointLayer(homeMap.kmap.map)
  146. blueRegionLayer = new BlueRegionLayer(homeMap.kmap)
  147. getYellow()
  148. getFarmLog()
  149. //区域切换监听事件
  150. eventBus.on('area:id',areaId)
  151. //选项卡子项事件监听
  152. eventBus.on('handleTabItem',handleTabItem)
  153. });
  154. onUnmounted(()=>{
  155. eventBus.off('area:id',areaId)
  156. eventBus.off('handleTabItem',handleTabItem)
  157. })
  158. const blueList = ref([])
  159. const getBlueRegionList = (callback) =>{
  160. VE_API.farm.blueRegionList({farmId:organId.value,regionId:regionId.value}).then(({ data }) => {
  161. blueList.value = data.map(item =>{
  162. let color = 'rgba(255, 255, 255, 0.5)' //失效区域
  163. if(item.status===2){ //物候期风险
  164. color = 'rgba(63, 255, 53, 0.5)'
  165. }
  166. if(item.status===3){ //生长异常
  167. color = 'rgba(255, 252, 61, 0.5)'
  168. }
  169. if(item.status===4){ //病虫害
  170. color = 'rgba(255, 73, 73, 0.5)'
  171. }
  172. return {
  173. ...item,
  174. color
  175. }
  176. })
  177. blueRegionLayer.initData(blueList.value)
  178. callback && callback()
  179. });
  180. }
  181. const organId = ref(null)
  182. const regionId = ref(null)
  183. const tabName = ref('')
  184. const tabId = ref(0)
  185. //选项卡事件监听
  186. const handleTab = async ({name,id,isUpdate,params}) =>{
  187. tabName.value = name
  188. tabId.value = id
  189. if(id===0){
  190. getBlueRegionList(()=>{
  191. if(isUpdate){
  192. handleTabItem(params)
  193. }
  194. })
  195. }else{
  196. console.log('456456');
  197. getFarmIndexReport((()=>{
  198. if(isUpdate){
  199. handleTabItem(params)
  200. }
  201. }))
  202. }
  203. }
  204. //区域切换监听事件
  205. function areaId({areaId,farmId}){
  206. organId.value = farmId
  207. regionId.value = areaId
  208. samplePointLayer.initData(farmId,areaId)
  209. if(tabId.value===0){
  210. getBlueRegionList()
  211. }else{
  212. getFarmIndexReport()
  213. }
  214. }
  215. //选项卡子项事件监听
  216. const handleTabItem = (e) =>{
  217. console.log('e',e);
  218. if(reportData.value.blueZoneList){
  219. const index = reportData.value.blueZoneList.findIndex(item => item.key===e)
  220. let arr = []
  221. if(reportData.value.blueZoneList.length){
  222. arr = blueListConvert(reportData.value.blueZoneList[index].obj,index)
  223. }
  224. blueRegionLayer.initData(arr,'87')
  225. }
  226. }
  227. const reportData = ref({})
  228. const blueListConvert = (data,index)=>{
  229. const list = []
  230. for (let key in data) {
  231. const filterData = reportData.value.blueZoneLegendList[index].list.filter(item => item.val === key)
  232. const arr = data[key]
  233. arr.forEach(item =>{
  234. const listObj = blueList.value.filter(ele =>ele.blueZoneCode === item)
  235. const updateList = listObj.map(ele => {
  236. return{
  237. ...ele,
  238. level: key,
  239. name:filterData[0].name,
  240. color:filterData[0].color
  241. }
  242. })
  243. list.push(...updateList)
  244. })
  245. }
  246. return list
  247. }
  248. const getFarmIndexReport = (callback) =>{
  249. const params = { farmId:organId.value,regionId:regionId.value, type: tabName.value };
  250. VE_API.farm.farmIndexReport(params).then(({data,code}) => {
  251. if (code === 0) {
  252. reportData.value = data || {};
  253. let arr = []
  254. if(data.blueZoneList.length){
  255. arr = blueListConvert(data.blueZoneList[0].obj,0)
  256. }
  257. blueRegionLayer.initData(arr,'87')
  258. callback && callback()
  259. }
  260. });
  261. }
  262. const indicatorChartData = ref({})
  263. const blueZone = ref('ws0y1meyhxp4')
  264. const getFarmLog = () =>{
  265. const params = {
  266. id: null,
  267. farmId: 766,
  268. blueZone:blueZone.value
  269. }
  270. VE_API.warning.fetchFarmLog(params).then(({data}) => {
  271. indicatorChartData.value = data || {}
  272. eventBus.emit('chart:updateOption',data)
  273. })
  274. }
  275. const urls = ref([])
  276. const urlsIndex = ref(0)
  277. const getYellow = () =>{
  278. VE_API.home.getYellowList().then(res =>{
  279. // urls.value = res.data.map(item =>{
  280. // return {
  281. // ...item,
  282. // imgPath:config.base_img_url2+item.cloudFilename
  283. // }
  284. // })
  285. // urls.value = [
  286. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-07.jpg",
  287. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-08.jpg",
  288. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-09.jpg",
  289. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-10.jpg",
  290. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-11.jpg",
  291. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-12.jpg",
  292. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-13.jpg",
  293. // ]
  294. })
  295. }
  296. const btnIndex = ref(null)
  297. const btnName = ref("")
  298. const handleBtn = (e) =>{
  299. btnName.value = ""
  300. btnIndex.value = e
  301. eventBus.emit("clear:area")
  302. samplePointLayer.updateAreaStatus(e===0?true:false)
  303. regionLayer.resetData()
  304. samplePointLayer.resetPoint()
  305. }
  306. //点击果园日志
  307. const handleSelectArea = () =>{
  308. btnName.value = ""
  309. btnIndex.value = null
  310. eventBus.emit("clear:area")
  311. regionLayer.resetData()
  312. samplePointLayer.resetPoint()
  313. samplePointLayer.updateAreaStatus(true)
  314. }
  315. //农事点击高亮
  316. const act = ref(null)
  317. const handleAct = (v) =>{
  318. act.value = v
  319. samplePointLayer.resetPoint()
  320. if(v===1){
  321. regionLayer.selectAreaMultiple([
  322. {value:2,color:"blue"},
  323. {value:4,color:"blue1"},
  324. {value:5,color:"blue2"},
  325. {value:7,color:"blue"},
  326. {value:13,color:"blue2"},
  327. ])
  328. }
  329. if(v===2){
  330. regionLayer.selectAreaMultiple([
  331. {value:1,color:"blue"},
  332. {value:2,color:"blue1"},
  333. {value:9,color:"blue2"},
  334. {value:12,color:"blue2"},
  335. ])
  336. }
  337. }
  338. //柱状图点击事件监听
  339. eventBus.on('echart:barClick',(e)=>{
  340. btnName.value = ""
  341. btnIndex.value = null
  342. eventBus.emit("clear:area")
  343. samplePointLayer.updateAreaStatus(false)
  344. const arr = ["花穗伸长", "啃食虫害","毛毡病"]
  345. const isDraw = arr.includes(e)
  346. const index = arr.indexOf(e)
  347. if(isDraw){
  348. if(index===0){
  349. regionLayer.selectAreaMultiple([
  350. {value:0,color:"green"},
  351. {value:1,color:"green"},
  352. {value:2,color:"green"},
  353. {value:3,color:"green1"},
  354. {value:4,color:"green1"},
  355. {value:5,color:"green2"},
  356. {value:6,color:"green1"},
  357. {value:7,color:"green2"},
  358. {value:8,color:"green2"},
  359. {value:9,color:"green"},
  360. {value:10,color:"green"},
  361. {value:11,color:"green1"},
  362. {value:12,color:"green2"},
  363. {value:13,color:"green"},
  364. {value:14,color:"green2"},
  365. ])
  366. }else if(index===1){
  367. regionLayer.selectAreaMultiple([{value:6,color:"red"}])
  368. }else{
  369. regionLayer.selectAreaMultiple([
  370. {value:12,color:"red2"},
  371. {value:10,color:"red"},
  372. {value:1,color:"red"}
  373. ])
  374. }
  375. }
  376. })
  377. //黄板点击事件监听
  378. eventBus.on('click:yellowBlock',(e)=>{
  379. const arr = ["113.61396985128522","113.61390710255375","113.61491218688275"]
  380. if(arr[0]==e){
  381. urls.value = ["HB-ws0y1menggxv"]
  382. urlsIndex.value = 0
  383. }
  384. if(arr[1]==e){
  385. urls.value = ["HB-ws0y1mg0pvd" ]
  386. urlsIndex.value = 3
  387. }
  388. if(arr[2]==e){
  389. urls.value = ["HB-ws0y1mg9wpcp"]
  390. urlsIndex.value = 6
  391. }
  392. eventBus.emit('dialog:show',true)
  393. })
  394. const showPoint = ref(true)
  395. const showType = ref("point")
  396. //地图点击事件
  397. eventBus.on('click:point',(e)=>{
  398. // showType.value = "point"
  399. // if(btnIndex.value===1){
  400. // btnName.value=e.name
  401. // if(e.value===1){
  402. // showPoint.value = true
  403. // samplePointLayer.updatePointStatus(true)
  404. // }else{
  405. // showPoint.value = false
  406. // }
  407. // }
  408. })
  409. //地图点击区域事件
  410. eventBus.on('click:area',(e)=>{
  411. // showType.value = "area"
  412. // if(btnIndex.value===0){
  413. // btnName.value=e.name
  414. // if(e.value===1){
  415. // showPoint.value = true
  416. // }else{
  417. // showPoint.value = false
  418. // }
  419. // regionLayer.selectArea((e.name*1)===0?0: (e.name*1) - 1,"blue")
  420. // }
  421. })
  422. eventBus.on('click:updateArea',(e)=>{
  423. blueZone.value = e.value
  424. btnName.value=e.name
  425. regionLayer.selectArea((e.name*1)===0?0: (e.name*1) - 1,"blue")
  426. getFarmLog()
  427. })
  428. const currentComponent = ref("homePage");
  429. const handleActiveLeft = (e) => {
  430. currentComponent.value = e.componentName;
  431. if(e.title==='首页'){
  432. router.push('/warningHome')
  433. }
  434. };
  435. const leftToolList = [
  436. {
  437. title: "首页",
  438. name: "home",
  439. componentName: "homePage",
  440. },
  441. {
  442. title: "气象预警",
  443. componentName: "weatherPage",
  444. },
  445. {
  446. title: "物候调节",
  447. componentName: "phenologyPage",
  448. },
  449. {
  450. title: "病虫测报",
  451. },
  452. {
  453. title: "营养评估",
  454. },
  455. ];
  456. const rightIndex = ref(0)
  457. const handleActiveRight = ({index}) => {
  458. rightIndex.value = index
  459. btnIndex.value = null
  460. btnName.value = ""
  461. samplePointLayer.updateAreaStatus(false)
  462. regionLayer.resetData()
  463. samplePointLayer.resetPoint()
  464. if(index!==0){
  465. act.value = null
  466. }
  467. };
  468. const hanleRightIndex = (num) =>{
  469. rightIndex.value = num
  470. eventBus.emit('tool:updateAct',num)
  471. }
  472. const rightToolList = [
  473. {
  474. title: "农事列表",
  475. index:0,
  476. },
  477. {
  478. title: "处方分析",
  479. index:2,
  480. },
  481. {
  482. title: "复核对比",
  483. index:1,
  484. },
  485. ];
  486. // 跳转果园档案
  487. const toFilePage = () => {
  488. router.push('/garden-file')
  489. }
  490. </script>
  491. <style lang="scss" scoped>
  492. .base-container {
  493. width: 100%;
  494. height: 100vh;
  495. color: #fff;
  496. position: absolute;
  497. box-sizing: border-box;
  498. z-index: 1;
  499. .content {
  500. width: 100%;
  501. height: calc(100% - 74px - 48px);
  502. display: flex;
  503. justify-content: space-between;
  504. box-sizing: border-box;
  505. .left,
  506. .right {
  507. width: calc(376px + 54px);
  508. height: 100%;
  509. margin-top: 10px;
  510. box-sizing: border-box;
  511. display: flex;
  512. position: relative;
  513. }
  514. .left{
  515. background: #101010;
  516. border-radius: 4px;
  517. border: 1px solid #444444;
  518. .arrow{
  519. position: absolute;
  520. right: -16px;
  521. top:calc(50% - 40px);
  522. background: #fff;
  523. width: 16px;
  524. height: 80px;
  525. line-height: 80px;
  526. border-radius: 0 5px 5px 0;
  527. text-align: center;
  528. cursor: pointer;
  529. }
  530. }
  531. .right {
  532. .list {
  533. width: 100%;
  534. height: 100%;
  535. .btn-wrap{
  536. width: 100%;
  537. height: 25px;
  538. line-height: 25px;
  539. margin: 10px 0;
  540. display: flex;
  541. align-items: center;
  542. justify-content: space-between;
  543. div{
  544. width: 48%;
  545. height: 100%;
  546. color: #FFD489;
  547. border: 1px solid rgba(255,213,137,0.6);
  548. border-radius: 2px;
  549. text-align: center;
  550. font-size: 12px;
  551. cursor: pointer;
  552. &.active{
  553. background: #FFD489;
  554. color: #000;
  555. }
  556. }
  557. }
  558. .img-box{
  559. width: 100%;
  560. height: calc(100% - 35px);
  561. overflow: auto;
  562. }
  563. .img-box1{
  564. width: 100%;
  565. height: calc(100% - 10px);
  566. overflow: auto;
  567. margin-top: 10px;
  568. }
  569. .img-box2{
  570. width: 100%;
  571. height: calc(100% - 45px);
  572. overflow: auto;
  573. margin-top: 10px;
  574. }
  575. img{
  576. width: 100%;
  577. height: auto;
  578. object-fit: cover;
  579. margin-bottom: 12px;
  580. cursor: pointer;
  581. }
  582. .mt{
  583. margin-top: -12px;
  584. }
  585. .list-wrap {
  586. ::v-deep {
  587. .chart-content {
  588. padding: 16px 0 0 0;
  589. }
  590. }
  591. }
  592. }
  593. }
  594. .overflow{
  595. overflow: auto;
  596. }
  597. .home-bottom {
  598. display: flex;
  599. align-items: flex-end;
  600. width: calc(100% - 60px - 430px * 2 );
  601. height: 152px;
  602. align-self: flex-end;
  603. .time-wrap{
  604. height: 85px;
  605. }
  606. .fly-icon{
  607. width: 148px;
  608. height: 100%;
  609. margin-left: 27px;
  610. }
  611. .log-box {
  612. height: 34%;
  613. width: calc(100% - 340px - 28px);
  614. margin-right: 28px;
  615. .box-name{
  616. width: 89px;
  617. height: 22px;
  618. text-align: center;
  619. line-height: 22px;
  620. border-radius: 20px;
  621. margin: 10px 0 5px 6px;
  622. cursor: pointer;
  623. background: linear-gradient(0deg,#BBA269 0%, #3D3523 100%);
  624. }
  625. .log-content {
  626. font-size: 12px;
  627. line-height: 1.5;
  628. padding: 0 18px;
  629. }
  630. .chart-wrap{
  631. width: 100%;
  632. height: calc(100% - 50px);
  633. .line{
  634. margin-top: 10px;
  635. margin-bottom: 12px;
  636. }
  637. img{
  638. width: 100%;
  639. margin-bottom: 10px;
  640. }
  641. }
  642. }
  643. .file-box {
  644. height: 25%;
  645. min-height: 210px;
  646. width: 340px;
  647. position: relative;
  648. img{
  649. width: 100%;
  650. margin-top: 12px;
  651. }
  652. .arrow-icon {
  653. top: -32px;
  654. left: 50%;
  655. position: absolute;
  656. background: #fff;
  657. width: 16px;
  658. height: 80px;
  659. line-height: 80px;
  660. border-radius: 5px 0 0 5px;
  661. text-align: center;
  662. transform: translateX(-50%) rotate(270deg);
  663. }
  664. .edit-btn {
  665. padding: 2px 24px;
  666. background: #FFD489;
  667. border-radius: 4px;
  668. color: #000;
  669. }
  670. }
  671. }
  672. .legend{
  673. position: fixed;
  674. bottom: 8px;
  675. right: 64px;
  676. width: 525px;
  677. height: 16px;
  678. }
  679. }
  680. }
  681. .bottom-map {
  682. width: 100%;
  683. height: 100vh;
  684. position: absolute;
  685. z-index: 0;
  686. }
  687. </style>