Agriculture-front-end/dist/assets/index.189d671e.js

18 lines
54 KiB
JavaScript
Raw Normal View History

2023-07-11 08:43:34 +08:00
import{H as _,_ as dt,r as f,A as Pe,U as mt,V as ct,W as pt,d as G,o as O,c as V,l,e as p,w as C,L as Te,N as ke,k as Oe,f as h,x as M,g as q,m as H,y as ft,a2 as ce,a4 as gt,J as ht,p as Ct,q as yt}from"./index.afd881ee.js";import{_ as pe}from"./close1.45635d81.js";import{_ as vt,a as At,b as bt,c as Dt}from"./position.a021215f.js";import{_ as wt,a as St}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import"./index.6098b0aa.js";import{h as $}from"./moment.9709ab41.js";import{u as Et}from"./useEcharts.a1c5140e.js";import{a as Bt}from"./classify.0caf1d5e.js";import"./linesGL.306b5757.js";import{i as It}from"./install.6cb28b74.js";function Ue(B){return _({url:"equipment/typhoon",method:"get",params:B})}function Mt(B){return _({url:"equipment/year",method:"get",params:B})}function Lt(B){return _({url:"equipment/windPower",method:"get",params:B})}function xt(B){return _({url:"equipment/typhoonDamageSave",method:"get",params:B})}function Ge(B){return _({url:"equipment/typhoonDamageSelect",method:"get",params:B})}function Nt(B){return _({url:"equipment/typhoonDamageDelete",method:"get",params:B})}function Wt(B){return _({url:"equipment/typhoonDamage",method:"get",params:B})}const L=B=>(Ct("data-v-cddc5283"),B=B(),yt(),B),Pt={class:"center"},Tt=L(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),kt={class:"leftWra"},Ot={class:"leftTop"},Ut={class:"title"},Gt=L(()=>l("span",null,"\u53F0\u98CE\u6570\u636E\u9009\u62E9",-1)),Qt={class:"tabulation"},zt=L(()=>l("div",{class:"chart_div_title"},[l("span",null,"\u53F0\u98CE\u5217\u8868")],-1)),Yt={class:"tableDiv"},Vt={class:"tabulation"},qt={class:"chart_div_title"},Ft={key:0,src:pe,alt:""},Xt={key:0,class:"imgrotate",src:pe,alt:""},Ht={class:"rightWra"},Zt={class:"rightTop"},Rt=L(()=>l("div",{class:"title"},[l("span",null,"\u53F0\u98CE\u707E\u635F\u9884\u6D4B\u7ED3\u679C")],-1)),jt={class:"farmlandDiv"},Kt={class:"farmlandHeader"},Jt=L(()=>l("br",null,null,-1)),_t=["onClick"],$t=["onClick"],ea={key:0,src:pe,alt:""},ta={key:0,class:"imgrotate",src:pe,alt:""},aa=ft('<div class="tool" data-v-cddc5283><span data-v-cddc5283><img src="'+vt+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+At+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+bt+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+wt+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+St+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+Dt+'" alt="" data-v-cddc5283></span></div>',1),la={id:"popup"},ra=L(()=>l("span",null,"\u540D\u79F0\uFF1A",-1)),oa=L(()=>l("span",null,"\u5F53\u524D\u4F4D\u7F6E\uFF1A",-1)),ia=L(()=>l("span",null,"\u65F6\u95F4\uFF1A",-1)),sa=L(()=>l("span",null,"\u6C14\u538B\uFF1A",-1)),na=L(()=>l("span",null,"\u6700\u5927\u98CE\u901F\uFF1A",-1)),ua=L(()=>l("span",null,"\u98CE\u529B\uFF1A",-1)),da={id:"pop"},ma={key:0},ca=L(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),pa={class:"frameDiv"},fa={class:"dialog-footer"},ga={class:"detailsDiv"},ha={class:"center"},Ca=L(()=>l("span",null,"\u53F0\u98CE\u540D\u79F0",-1)),ya=L(()=>l("span",null,"\u9884\u8BA1\u6210\u707E\u9762\u79EF\uFF08\u5355\u4F4D\uFF1A\u516C\u9877\uFF09",-1)),va=L(()=>l("span",null,"\u4F4D\u7F6E",-1)),Aa=L(()=>l("span",null,"\u9884\u8BA1\u53D7\u5F71\u54CD\u4EBA\u53E3\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",-1)),ba=L(()=>l("span",null,"\u9884\u8BA1\u7ECF\u6D4E\u635F\u5931\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09",-1)),Da=L(()=>l("span",null,"\u9884\u8BA1\u53D7\u707E\u9762\u79EF\uFF08\u5355\u4F4D\uFF1A\u516C\u9877\uFF09",-1)),wa={key:0,class:"dialog-footer"},Sa={__name:"index",setup(B){let y=f(null);const Q=f("2023");let re=Pe({arr:[],brr:[],crr:[]}),oe=f({name:"",value:""});f([]);const ie=f(!1);let Z=f(!1),R=f(!1);f(["false"]);const Ee=f(null),j=f(""),Be=f([]);f([]);const se=f(!1),ee=f(!1);let k=f({});f(!1);let x=f([]);const Ie=f();let fe=f([]),ge=f([]),ne=f(""),ue=f([]);f([{date1:"\u9EC4\u5C9B\u533A",date2:"",date3:"",date4:"",date5:""}]);const he=f([]);let Ce=f(!1);const m=f({lng:"",lat:"",radius7:"",qxdm:"370211
\u5C0F
\u65F6
\u8B66
\u6212
\u7EBF`,font:"6pt\xA0Source\xA0Han\xA0Sans\xA0CN",fillColor:Cesium.Color.RED}}),y.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 a=[],i=[],n=[],d=[],N=[],z=[];if(r)for(const Y of r){let K=function(t,e,w,s,D,F,U){if(s.length>1){let A=Math.max(...s),c=Math.min(...s),o=Math.max(...D),S=Math.min(...D),E=A-c,g=o-S;if(E>=g){let u=E/2,v=new Cesium.Rectangle.fromDegrees(c-u,S,A+u,o);t.camera.flyTo({destination:v})}else{let u=g/2,v=new Cesium.Rectangle.fromDegrees(c,S-u,A,o+u);t.camera.flyTo({destination:v})}}else t.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(s[0],D[0],1e6)});t.clock.shouldAnimate=!0;const X=Cesium.JulianDate.fromDate(new Date(2015,2,25,16)),Ae=Cesium.JulianDate.addSeconds(X,e.length,new Cesium.JulianDate);t.clock.startTime=X.clone(),t.clock.stopTime=Ae.clone(),t.clock.currentTime=X.clone(),t.clock.multiplier=5;const Ne=J(X,e),me=t.entities.add({name:"\u53F0\u98CE\u8DEF\u5F84",availability:new Cesium.TimeIntervalCollection([new Cesium.TimeInterval({start:X,stop:Ae})]),show:!0,position:Ne,orientation:new Cesium.VelocityOrientationProperty(Ne),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:Me,scale:.9,rotation:0,show:!0,width:48,height:48,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.RELATIVE_TO_GROUND}});me.addProperty("imageClock");var We=0;me.imageClock=setInterval(function(){parseInt(t.clock.currentTime.secondsOfDay)<=t.clock.stopTime.secondsOfDay&&(We+=.1,me.billboard.rotation=We)},20);const le=[];t.entities.add({name:"taifeng",availability:new Cesium.TimeIntervalCollection([new Cesium.TimeInterval({start:X,stop:Ae})]),show:!0,position:new Cesium.CallbackProperty(function(A,c){let o=parseInt(Cesium.JulianDate.secondsDifference(A,X));if(le.length===0||o!==le[le.length-1]){if(le.length===0){let v=Cesium.Cartesian3.fromDegrees(parseFloat(e[0].fLongitude),parseFloat(e[0].fLatitude),3e4),I;switch(e[o].strong){case"\u70ED\u5E26\u98CE\u66B4(TS)":I=new Cesium.Color(0,0,1,1);break;case"\u5F3A\u70ED\u5E26\u98CE\u66B4(STS)":I=new Cesium.Color(1,1,0,1);break;case"\u53F0\u98CE(TY)":I=new Cesium.Color(0,1,1,1);break;case"\u5F3A\u53F0\u98CE(STY)":I=new Cesium.Color(1,0,1,1);break;case"\u8D85\u5F3A\u53F0\u98CE(Super\xA0TY)":I=new Cesium.Color(1,0,0,1);break;case"\u70ED\u5E26\u4F4E\u538B(TD)":I=new Cesium.Color(0,1,0,1);break;default:I=null}t.entities.add({name:"taifeng",position:v,point:{pixelSize:6,outlineWidth:.01,color:I}})}le.push(o);let g=Cesium.Cartesian3.fromDegrees(parseFloat(e[o].fLongitude),parseFloat(e[o].fLatitude),3e4),u;switch(e[o].strong){case"\u70ED\u5E26\u98CE\u66B4(TS)":u=new Cesium.Color(0,0,1,1);break;case"\u5F3A\u70ED\u5E26\u98CE\u66B4(STS)":u=new Cesium.Color(1,1,0,1);break;case"\u53F0\u98CE(TY)":u=new Cesium.Color(0,1,1,1);break;case"\u5F3A\u53F0\u98CE(STY)":u=new Cesium.Color(1,0,1,1);break;case"\u8D85\u5F3A\u53F0\u98CE(Super\xA0TY)":u=new Cesium.Color(1,0,0,1);break;case"\u70ED\u5E26\u4F4E\u538B(TD)":u=new Cesium.Color(0,1,0,1);break;default:u=null}if(t.entities.add({name:"taifeng",position:g,point:{pixelSize:6,outlineWidth:.01,color:u}}),o===parseInt(e.length-1)){let v=Cesium.Cartesian3.fromDegrees(parseFloat(e[e.length-1].fLongitude),parseFloat(e[e.length-1].fLatitude),3e4);var S=t.entities.add({name:"taifeng",position:v,billboard:{image:Me,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
<span>\u53F0\u98CE\u8FC7\u5883\u65F6\u95F4</span>
<p></p>
</div> `),l("div",null,[ya,l("p",null,M(h(k).affectedArea),1)]),l("div",null,[va,l("p",null,M(`${h(k).longitude}\xB0E/${h(k).latitude}\xB0N`),1)]),l("div",null,[Aa,l("p",null,M(h(k).affectedPopulation),1)]),l("div",null,[ba,l("p",null,M(h(k).economicLosses),1)]),l("div",null,[Da,l("p",null,M(h(k).disasterArea),1)]),q(` <div>
<span></span>
<p></p>
</div> `)])]),_:1},8,["modelValue"])])])}}},Oa=dt(Sa,[["__scopeId","data-v-cddc5283"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/estimate/index.vue"]]);export{Oa as default};