index.vue 24 KB

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