Agriculture-front-end/dist/assets/index.936c9a4a.js

2 lines
15 KiB
JavaScript
Raw Normal View History

2023-07-11 08:43:34 +08:00
import{H as W,_ as ke,r as c,A as Ce,V as Le,W as Ee,U as Y,a1 as ze,d as w,o as p,c as C,l as i,m as T,e as G,w as x,L as J,N as O,f as v,k as I,g as M,F as De,x as Ae,y as Ge,p as qe,q as je}from"./index.afd881ee.js";import Ve from"./downloads.4cdbbcc5.js";import{_ as le}from"./close1.45635d81.js";import{_ as Ne,a as Fe,b as Te,c as Ie}from"./position.a021215f.js";import{_ as Me,a as We}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import"./index.6098b0aa.js";import"./linesGL.306b5757.js";import{T as Be}from"./TimeLine.7d9e99e3.js";import{u as ae}from"./useEcharts.a1c5140e.js";import{i as re,L as Pe}from"./install.6cb28b74.js";function ne(d){return W({url:"equipment/nonGrain",method:"get",params:d})}function Re(d){return W({url:"equipment/nonGrainChun",method:"get",params:d})}function Ye(d){return W({url:"equipment/nonGrainHuoChun",method:"get",params:d})}function Je(d){return W({url:"equipment/fnYear ",method:"get",params:d})}const L=d=>(qe("data-v-cd47b039"),d=d(),je(),d),Oe={class:"center"},Qe=L(()=>i("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),$e={class:"rightWra"},He={class:"rightbottom"},Ue={class:"title"},Xe=L(()=>i("span",null,"\u975E\u519C\u5316\u8015\u5730\u9762\u79EF\u7EDF\u8BA1",-1)),Ze=L(()=>i("img",{src:Ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ke={class:"rightbottom"},et=L(()=>i("div",{class:"title"},[i("span",null,"\u975E\u519C\u5316\u8015\u5730\u9762\u79EF\u5360\u6BD4")],-1)),tt={key:0,src:le,alt:""},ot={key:0,class:"imgrotate",src:le,alt:""},at={class:"mt-4"},rt={class:"bottom_center"},nt=Ge('<div class="tool" data-v-cd47b039><span data-v-cd47b039><img src="'+Ne+'" alt="" data-v-cd47b039></span><span data-v-cd47b039><img src="'+Fe+'" alt="" data-v-cd47b039></span><span data-v-cd47b039><img src="'+Te+'" alt="" data-v-cd47b039></span><span data-v-cd47b039><img src="'+Me+'" alt="" data-v-cd47b039></span><span data-v-cd47b039><img src="'+We+'" alt="" data-v-cd47b039></span><span data-v-cd47b039><img src="'+Ie+'" alt="" data-v-cd47b039></span></div>',1),lt={id:"popup",class:"ol-popup"},st=L(()=>i("div",{class:"pophead",style:{width:"100%",height:"20px"}},[i("div",{id:"popup-title",style:{font:"bold 15px sans-serif",align:"left",position:"absolute",left:"17px",color:"#fff"}}),i("a",{href:"#",id:"popup-closer",class:"ol-popup-closer",style:{color:"#8e908c"}})],-1)),it={id:"popup-content",style:{padding:"10px"}},ct=L(()=>i("span",null,"\u975E\u519C\u5316",-1)),dt=L(()=>i("div",{id:"popup-pagination"},null,-1)),ut={__name:"index",setup(d){c(null);const Q=c(null),$=c(null);let E=Ce({arr:[],brr:[],crr:[]}),g=c([]);const h=c("370211");c({info:[]});const se=c(!1);c(!0);let S=c(!0);const j=c([]);let H=c([]),B=c([]),P=c([]),k=c("");const ie=e=>{ce(e)},ce=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\u519C\u5316:{color:"rgba(255, 255, 0, 1)",disabled:!1}},z={\u975E\u519C\u5316:{setOf:"2022-06-01-gengdi",name:"T2022_06_01_feinonghua"}},V=c(null);Le(()=>{ye(),de()});function de(){ue(),he(),ge();for(const e in R)R[e].disabled!==!0&&H.value.push(e);j.value=H.value}Ee(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),Y(()=>k.value,(e,t)=>{h.value="370211",ee(k.value.name)});let s=c(null);c(null),c(null);let U=c(null),N=c(null);function ue(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");s=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"})})]}),pe(),fe(),s.on("moveend",function(o){var a=s.getView().getZoom();a>=13?V.setVisible(!0):V.setVisible(!1)}),s.on("singleclick",function(o){var a=o.coordinate,l=a[0],f=a[1],q=s.getView(),y=s.getView().getZoom();console.log(l,f),q.animate({center:[l,f],duration:1e3}),y>=13?X(o,