index.vue 25 KB

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