Agriculture-front-end/dist/assets/index.144b8a89.js

2 lines
15 KiB
JavaScript
Raw Normal View History

2023-07-09 20:38:38 +08:00
import{H as G,_ as Se,r as c,A as ke,V as Ce,U as Y,d as w,o as p,c as C,l as s,m as I,e as D,w as x,L as Q,N as J,f as v,k as M,g as W,F as Le,x as Ee,y as Fe,p as ze,q as De}from"./index.955aa49e.js";import Ae from"./downloads.4cdbbcc5.js";import{_ as ne}from"./close1.45635d81.js";import{_ as Ve,a as qe,b as je,c as Ne}from"./position.a021215f.js";import{_ as Te,a as Ie}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import{_ as Me}from"./icon.d0cb5387.js";import"./index.6098b0aa.js";import"./linesGL.306b5757.js";import{T as We}from"./TimeLine.c55795b7.js";import{u as oe}from"./useEcharts.586cdb9c.js";import{i as ae,L as Ge}from"./install.6cb28b74.js";function re(d){return G({url:"equipment/nonFood",method:"get",params:d})}function Be(d){return G({url:"equipment/nonFoodChun",method:"get",params:d})}function Pe(d){return G({url:"equipment/nonFoodHuoChun",method:"get",params:d})}function Re(d){return G({url:"equipment/flYear ",method:"get",params:d})}const S=d=>(ze("data-v-8f171897"),d=d(),De(),d),Ye={class:"center"},Qe=S(()=>s("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Je={class:"rightWra"},Oe={class:"rightbottom"},$e={class:"title"},He=S(()=>s("span",null,"\u975E\u7CAE\u5316\u8015\u5730\u9762\u79EF\u7EDF\u8BA1",-1)),Ue=S(()=>s("img",{src:Ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Xe={class:"rightbottom"},Ze=S(()=>s("div",{class:"title"},[s("span",null,"\u975E\u7CAE\u5316\u8015\u5730\u9762\u79EF\u5360\u6BD4")],-1)),Ke={key:0,src:ne,alt:""},et={key:0,class:"imgrotate",src:ne,alt:""},tt={class:"mt-4"},ot={class:"bottom_center"},at=Fe('<div class="tool" data-v-8f171897><span data-v-8f171897><img src="'+Ve+'" alt="" data-v-8f171897></span><span data-v-8f171897><img src="'+qe+'" alt="" data-v-8f171897></span><span data-v-8f171897><img src="'+je+'" alt="" data-v-8f171897></span><span data-v-8f171897><img src="'+Te+'" alt="" data-v-8f171897></span><span data-v-8f171897><img src="'+Ie+'" alt="" data-v-8f171897></span><span data-v-8f171897><img src="'+Ne+'" alt="" data-v-8f171897></span></div>',1),rt={id:"popup",class:"ol-popup"},nt=S(()=>s("div",{class:"pophead",style:{width:"100%"}},[s("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px",color:"rgba(246, 255, 255, 1)","line-height":"42px","padding-left":"45px"}}),s("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),lt={id:"popup-content",style:{padding:"10px"}},st={class:"perform_children"},it=S(()=>s("img",{src:Me},null,-1)),ct=S(()=>s("span",null,"\u975E\u7CAE\u5316",-1)),dt=S(()=>s("div",{id:"popup-pagination"},null,-1)),ut={__name:"index",setup(d){c(null);const O=c(null),$=c(null);let L=ke({arr:[],brr:[],crr:[]}),g=c([]);const h=c("370211");c({info:[]});const le=c(!1);c(!0);let k=c(!0);const q=c([]);let H=c([]),B=c([]),P=c([]),A=c("");const se=e=>{ie(e)},ie=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};let R={\u975E\u7CAE\u5316:{color:"rgba(47, 236, 56, 0.8)",disabled:!1}},E={\u975E\u7CAE\u5316:{setOf:"2022-06-01-gengdi",name:"T2022_06_01_feilianghua"}},j=c(null);Ce(()=>{ce()});function ce(){ve(),de(),me();for(const e in R)R[e].disabled!==!0&&H.value.push(e);q.value=H.value}Y(()=>A.value,(e,t)=>{h.value="370211",K(A.value.name)});let n=c(null);c(null),c(null);let U=c(null),N=c(null);function de(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");n=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),ue(),pe(),n.on("moveend",function(o){var a=n.getView().getZoom();a>=13?j.setVisible(!0):j.setVisible(!1)}),n.on("singleclick",function(o){var a=o.coordinate,i=a[0],f=a[1],V=n.getView(),y=n.getView().getZoom();console.log(i,f),V.animate({center:[i,f],duration:1e3}),y>=13?X(o,"CJQY3702112019WGS84@huangdaoqu_bia