Agriculture-front-end/dist/assets/index.7a5a4515.js

12 lines
55 KiB
JavaScript
Raw Normal View History

2023-09-11 21:56:39 +08:00
import{L as _,_ as Dt,r as c,D as ze,Y as wt,t as St,C as Et,d as z,o as x,c as U,k as l,e as g,w as C,f as i,l as G,K as Ye,G as qe,H as Ve,Q as Xe,R as He,j as ce,x as W,m as Z,A as Bt,Z as pe,a6 as It,N as Ze,p as Lt,q as xt}from"./index.b27a548a.js";import{_ as Fe}from"./close1.62ba8f4e.js";import{_ as Mt,a as Nt}from"./zhankaiss.dd067ea4.js";import{_ as Wt,a as kt,b as Pt,c as Tt}from"./position.3b2b2301.js";import{_ as Ot,a as Ut}from"./face.9a19de2e.js";import"./index.b8675889.js";/* empty css */import{h as $}from"./moment.9709ab41.js";import{u as Gt}from"./useEcharts.5f1410aa.js";import{b as Qt}from"./classify.9197976b.js";import"./linesGL.901ceb35.js";import"./browser-detector.e77caf03.js";import{i as zt}from"./install.5b5161c6.js";function je(M){return _({url:"equipment/typhoon",method:"get",params:M})}function Yt(M){return _({url:"equipment/year",method:"get",params:M})}function qt(M){return _({url:"equipment/windPower",method:"get",params:M})}function Vt(M){return _({url:"equipment/typhoonDamageSave",method:"get",params:M})}function Re(M){return _({url:"equipment/typhoonDamageSelect",method:"get",params:M})}function Xt(M){return _({url:"equipment/typhoonDamageDelete",method:"get",params:M})}function Ht(M){return _({url:"equipment/typhoonDamage",method:"get",params:M})}const L=M=>(Lt("data-v-93e4611d"),M=M(),xt(),M),Zt={class:"center"},jt=L(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Rt={class:"leftWra"},Ft={key:0,src:Fe,alt:""},Kt={key:0,class:"imgrotate",src:Fe,alt:""},Jt={class:"rightWra"},_t={class:"tabar"},$t={class:"leftTop"},ea={class:"tabulation"},ta={class:"title"},aa=L(()=>l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),la=L(()=>l("span",null,"\u53F0\u98CE\u5217\u8868",-1)),ra={class:"tableDiv"},oa={class:"tabulation"},ia={class:"title"},sa=L(()=>l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),na={class:"rightTop"},ua=L(()=>l("div",{class:"title"},[l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),l("span",null,"\u53F0\u98CE\u707E\u635F\u9884\u6D4B\u7ED3\u679C")],-1)),da={class:"farmlandDiv"},ma={class:"farmlandHeader"},ca=L(()=>l("br",null,null,-1)),pa=["onClick"],fa=["onClick"],ga=L(()=>l("img",{src:Mt},null,-1)),ha=L(()=>l("img",{src:Nt},null,-1)),Ca=Bt('<div class="tool" data-v-93e4611d><span data-v-93e4611d><img src="'+Wt+'" alt="" data-v-93e4611d></span><span data-v-93e4611d><img src="'+kt+'" alt="" data-v-93e4611d></span><span data-v-93e4611d><img src="'+Pt+'" alt="" data-v-93e4611d></span><span data-v-93e4611d><img src="'+Ot+'" alt="" data-v-93e4611d></span><span data-v-93e4611d><img src="'+Ut+'" alt="" data-v-93e4611d></span><span data-v-93e4611d><img src="'+Tt+'" alt="" data-v-93e4611d></span></div>',1),ya={key:0,id:"popup"},va={key:0},Aa=L(()=>l("span",null,"\u540D\u79F0\uFF1A",-1)),ba={key:1},Da=L(()=>l("span",null,"\u5F53\u524D\u4F4D\u7F6E\uFF1A",-1)),wa={key:2},Sa=L(()=>l("span",null,"\u65F6\u95F4\uFF1A",-1)),Ea={key:3},Ba=L(()=>l("span",null,"\u6C14\u538B\uFF1A",-1)),Ia={key:4},La=L(()=>l("span",null,"\u6700\u5927\u98CE\u901F\uFF1A",-1)),xa={key:5},Ma=L(()=>l("span",null,"\u98CE\u529B\uFF1A",-1)),Na={id:"pop"},Wa={key:0},ka=L(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),Pa={class:"frameDiv"},Ta={class:"dialog-footer"},Oa={class:"detailsDiv"},Ua={class:"center"},Ga=L(()=>l("span",null,"\u53F0\u98CE\u540D\u79F0",-1)),Qa=L(()=>l("span",null,"\u9884\u8BA1\u6210\u707E\u9762\u79EF\uFF08\u5355\u4F4D\uFF1A\u516C\u9877\uFF09",-1)),za=L(()=>l("span",null,"\u4F4D\u7F6E",-1)),Ya=L(()=>l("span",null,"\u9884\u8BA1\u53D7\u5F71\u54CD\u4EBA\u53E3\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",-1)),qa=L(()=>l("span",null,"\u9884\u8BA1\u7ECF\u6D4E\u635F\u5931\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09",-1)),Va=L(()=>l("span",null,"\u9884\u8BA1\u53D7\u707E\u9762\u79EF\uFF08\u5355\u4F4D\uFF1A\u516C\u9877\uF
\u5C0F
\u65F6
\u8B66
\u6212
\u7EBF`,font:"6pt\xA0Source\xA0Han\xA0Sans\xA0CN",fillColor:Cesium.Color.RED}}),v.entities.add({name:"taifeng",polyline:{positions:Cesium.Cartesian3.fromDegreesArray([105,0,120,0,132,15,132,34]),width:2,followSurface:!1,material:new Cesium.PolylineDashMaterialProperty({color:Cesium.Color.BLUE,gapColor:Cesium.Color.TRANSPARENT,dashLength:40,dashPattern:255})},position:Cesium.Cartesian3.fromDegrees(133,34,3e4),label:{text:`48
\u5C0F
\u65F6
\u8B66
\u6212
\u7EBF`,font:"6pt\xA0Source\xA0Han\xA0Sans\xA0CN",fillColor:Cesium.Color.BLUE}});let s=[],u=[],h=[],A=[],V=[],de=[];if(o)for(const Y of o){let K=function(t,e,I,n,B,X,Q){if(n.length>1){let w=Math.max(...n),p=Math.min(...n),r=Math.max(...B),b=Math.min(...B),S=w-p,f=r-b;if(S>=f){let d=S/2,y=new Cesium.Rectangle.fromDegrees(p-d,b,w+d,r);t.camera.flyTo({destination:y})}else{let d=f/2,y=new Cesium.Rectangle.fromDegrees(p,b-d,w,r+d);t.camera.flyTo({destination:y})}}else t.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(n[0],B[0],1e6)});t.clock.shouldAnimate=!0;const H=Cesium.JulianDate.fromDate(new Date(2015,2,25,16)),Be=Cesium.JulianDate.addSeconds(H,e.length,new Cesium.JulianDate);t.clock.startTime=H.clone(),t.clock.stopTime=Be.clone(),t.clock.currentTime=H.clone(),t.clock.multiplier=5;const Ge=J(H,e),me=t.entities.add({name:"\u53F0\u98CE\u8DEF\u5F84",availability:new Cesium.TimeIntervalCollection([new Cesium.TimeInterval({start:H,stop:Be})]),show:!0,position:Ge,orientation:new Cesium.VelocityOrientationProperty(Ge),path:{show:!0,leadTime:0,width:2,resolution:1,material:Cesium.Color.SLATEGREY},label:{text:e[0].name,font:"normal\xA06px\xA0SimHei",fillColor:Cesium.Color.BLACK,backgroundColor:Cesium.Color.AQUA,showBackground:!0,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,pixelOffset:new Cesium.Cartesian2(-50,-6)},billboard:{image:Pe,scale:.9,rotation:0,show:!0,width:48,height:48,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.RELATIVE_TO_GROUND}});me.addProperty("imageClock");var Qe=0;me.imageClock=setInterval(function(){parseInt(t.clock.currentTime.secondsOfDay)<=t.clock.stopTime.secondsOfDay&&(Qe+=.1,me.billboard.rotation=Qe)},20);const oe=[];t.entities.add({name:"taifeng",availability:new Cesium.TimeIntervalCollection([new Cesium.TimeInterval({start:H,stop:Be})]),show:!0,position:new Cesium.CallbackProperty(function(w,p){let r=parseInt(Cesium.JulianDate.secondsDifference(w,H));if(oe.length===0||r!==oe[oe.length-1]){if(oe.length===0){let y=Cesium.Cartesian3.fromDegrees(parseFloat(e[0].fLongitude),parseFloat(e[0].fLatitude),3e4),N;switch(e[r].strong){case"\u70ED\u5E26\u98CE\u66B4(TS)":N=new Cesium.Color(0,0,1,1);break;case"\u5F3A\u70ED\u5E26\u98CE\u66B4(STS)":N=new Cesium.Color(1,1,0,1);break;case"\u53F0\u98CE(TY)":N=new Cesium.Color(0,1,1,1);break;case"\u5F3A\u53F0\u98CE(STY)":N=new Cesium.Color(1,0,1,1);break;case"\u8D85\u5F3A\u53F0\u98CE(Super TY)":N=new Cesium.Color(1,0,0,1);break;case"\u70ED\u5E26\u4F4E\u538B(TD)":N=new Cesium.Color(0,1,0,1);break;default:N=null}t.entities.add({name:"taifeng",position:y,point:{pixelSize:6,outlineWidth:.01,color:N}})}oe.push(r);let f=Cesium.Cartesian3.fromDegrees(parseFloat(e[r].fLongitude),parseFloat(e[r].fLatitude),3e4),d;switch(e[r].strong){case"\u70ED\u5E26\u98CE\u66B4(TS)":d=new Cesium.Color(0,0,1,1);break;case"\u5F3A\u70ED\u5E26\u98CE\u66B4(STS)":d=new Cesium.Color(1,1,0,1);break;case"\u53F0\u98CE(TY)":d=new Cesium.Color(0,1,1,1);break;case"\u5F3A\u53F0\u98CE(STY)":d=new Cesium.Color(1,0,1,1);break;case"\u8D85\u5F3A\u53F0\u98CE(Super TY)":d=new Cesium.Color(1,0,0,1);break;case"\u70ED\u5E26\u4F4E\u538B(TD)":d=new Cesium.Color(0,1,0,1);break;default:d=null}if(t.entities.add({name:"taifeng",position:f,point:{pixelSize:6,outlineWidth:.01,color:d}}),r===parseInt(e.length-1)){let y=Cesium.Cartesian3.fromDegrees(parseFloat(e[e.length-1].fLongitude),parseFloat(e[e.length-1].fLatitude),3e4);var b=t.entities.add({name:"taifeng",position:y,billboard:{image:Pe,scale:.9,rotation:0,show:!0,width:48,height:48,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.RELATIVE_TO_GROUND}});t.entities.add({name:"taifeng",position:Cesium.Cartesian3.fromDegrees(parseFloat(e[0].fLongitude),parseFloat(e[0].fLatitude),3e4),label:{text:e[0].name,font:"normal\xA06px\xA0SimHei",fillColor:Cesium.Color.BLACK,backgroundColor:Cesium.Color.AQUA,showBackground:!0,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,hori