Agriculture-front-end/dist/assets/index.e6428bfd.js

28 lines
52 KiB
JavaScript
Raw Normal View History

2023-05-28 21:55:59 +08:00
import{z as j,_ as ut,r as g,A as Ae,B as dt,C as ct,D as ve,d as U,o as k,c as X,l as n,e as m,w as C,J as We,K as Ne,k as Te,f as D,x as z,g as V,m as W,y as mt,a0 as Oe,p as pt,q as ft}from"./index.770945b1.js";import{_ as ne}from"./close1.45635d81.js";import{_ as gt,a as ht,b as Ct,c as yt,d as At,e as vt}from"./linesGL.90f708a5.js";import{i as bt}from"./index.c9f5bd8b.js";import{T as Dt}from"./TimeLine.436c6eb2.js";import{u as wt}from"./useEcharts.a6becf8f.js";import{a as St}from"./classify.0eb45b6d.js";function ke(I){return j({url:"equipment/typhoon",method:"get",params:I})}function Et(I){return j({url:"equipment/year",method:"get",params:I})}function Bt(I){return j({url:"equipment/windPower",method:"get",params:I})}function It(I){return j({url:"equipment/typhoonDamageSave",method:"get",params:I})}function Mt(I){return j({url:"equipment/typhoonDamageSelect",method:"get",params:I})}function Lt(I){return j({url:"equipment/typhoonDamageDelete",method:"get",params:I})}const $=I=>(pt("data-v-cddc5283"),I=I(),ft(),I),xt={class:"center"},Pt=$(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Wt={class:"leftWra"},Nt={class:"leftTop"},Tt={class:"title"},Ot=$(()=>n("span",null,"\u53F0\u98CE\u6570\u636E\u9009\u62E9",-1)),kt={class:"tabulation"},zt=$(()=>n("div",{class:"chart_div_title"},[n("span",null,"\u53F0\u98CE\u5217\u8868")],-1)),Ft={class:"tableDiv"},Ut={class:"tabulation"},Gt={class:"chart_div_title"},Qt={key:0,src:ne,alt:""},qt={key:0,class:"imgrotate",src:ne,alt:""},Xt={class:"rightWra"},Vt={class:"rightTop"},Ht=$(()=>n("div",{class:"title"},[n("span",null,"\u53F0\u98CE\u707E\u635F\u9884\u6D4B\u7ED3\u679C")],-1)),Zt={class:"farmlandDiv"},Rt=["onClick"],jt={key:0,src:ne,alt:""},Yt={key:0,class:"imgrotate",src:ne,alt:""},Kt={class:"bottom_center"},Jt=mt('<div class="tool" data-v-cddc5283><span data-v-cddc5283><img src="'+gt+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+ht+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+Ct+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+yt+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+At+'" alt="" data-v-cddc5283></span><span data-v-cddc5283><img src="'+vt+'" alt="" data-v-cddc5283></span></div>',1),_t={id:"popup"},$t={id:"pop"},ea={key:0},ta=$(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),aa={class:"frameDiv"},ra={class:"dialog-footer"},oa={class:"frame"},la={class:"dialog-footer"},ia={__name:"index",setup(I){let y=g(null);const F=g("2023");let Y=Ae({arr:[],brr:[],crr:[]}),ee=g({name:"",value:""});const ze=g([]),te=g(!1);let Z=g(!1),R=g(!1);g(["false"]);const be=g(null);g("");const De=g([]);g([]);const ae=g(!1),re=g(!1);let H=g([]);const Fe=g();let ue=g([]),de=g([]),ce=g(""),oe=g([]);const Ue=g([{date1:"\u9EC4\u5C9B\u533A",date2:"1531",date3:"11607.35",date4:"5951.78",date5:"903.61"}]),we=g([]),T=Ae({name:"",power:"14",speed:"18",pressure:"1000",date2:"360"});var Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAABNCAYAAADq4knKAAAAAXNSR0IArs4c6QAAIABJREFUeF7cvGesZdl1JrbzPvnme1+sevXqVXWlztXsZlRTgUqQNZKGDQ9Gli3YEA3YFmAbAxj+Q/KHMTZmLAm0NYBkGxKEsQw3ZWmUKGlEsZmpDtW5u3J6+b2b74k7G6coEuxRGGpGggHfP+9d4Kazzt5rfev7vrUh+P/48clPOvTpT0P7nT/DOQc/9cUv4saQ03m+7BrhAeQgwVlKYBFr8amPX1Sf+hSA/+b7/r4uBf59ffB3/bnOQQCh+9br66CtrFzBYr2BwARwzMSDAEqqSP13pmgB3rmo6///fxWk559/Hr/T68FPf/SjDy6ufv7cc8+ZbwXmM5+7ybMsTZywJOQeVZWpSGwlyIwPAgCwQQ/eFyTMmG6VfuLyZfVd34S/gxf+va+kf/Ybb4QwpF1rrKBUVTgXdtIg2kWp7OytBTA2kbPKl6WjyAEpAJhGSPsKs8AAY5xFCBFHGYYqCnyJpbHzMpcZAOBEJMU8i+wxAPIiuGim0ytofz91n/70N2/G39Xj7yVID7bM5SveQtFI5zrxgMuDAozKmLdzAEBsvRIzEeTWhRBZ6wAuPSCN1NYBh0KDXcAcKh2mRAgBEAXUYwSHjALKKVVKAqMhHDTDqg7ENC8KD0M5nChfIwl9QhaHrcnkWyv33zdYfzdB+o688pnP3ORmdd4WxqMMaIM01topD2LEgcOlwmIRSBpXBHGnrUAWSOUqIytcMopCh90y4UBRQ4WFgGEEIWWuaRCETUI59XBlrUEIE84J0j5F6Z2DYhJEzMYeWc8rSRapSpWyo40zsY6ot/j65KoAwx769HOX5L9LwP69g1Tnl49//OO2rjadMy9GmYGUUQwJAYGyNCEAGUOcA1CX0oDCUySutCWOGi9AhHAGY9/zk16LtSlGPKu01MY4UVkICbIhx0EcstgYYxeZTB1EhVHaNGKPYwQ8bazUxg7vH1XXTvZYdaIXoKLS6vZBHrWbfsdYZ+8fzSYWmiwYgdEnPvG3z2d/qyDVpRl+ZyX6tbueH475f/fc5XkdrEN5IixY1GRaxxBB
\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=[],l=[],i=[],u=[],w=[],N=[];if(r)for(const B of r){let G=function(t,e,s,L,S,Q,O){if(L.length>1){let A=Math.max(...L),d=Math.min(...L),o=Math.max(...S),f=Math.min(...S),b=A-d,p=o-f;if(b>=p){let c=b/2,h=new Cesium.Rectangle.fromDegrees(d-c,f,A+c,o);t.camera.flyTo({destination:h})}else{let c=p/2,h=new Cesium.Rectangle.fromDegrees(d,f-c,A,o+c);t.camera.flyTo({destination:h})}}else t.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(L[0],S[0],1e6)});t.clock.shouldAnimate=!0;const q=Cesium.JulianDate.fromDate(new Date(2015,2,25,16)),fe=Cesium.JulianDate.addSeconds(q,e.length,new Cesium.JulianDate);t.clock.startTime=q.clone(),t.clock.stopTime=fe.clone(),t.clock.currentTime=q.clone(),t.clock.multiplier=5;const Le=ie(q,e),se=t.entities.add({name:"\u53F0\u98CE\u8DEF\u5F84",availability:new Cesium.TimeIntervalCollection([new Cesium.TimeInterval({start:q,stop:fe})]),show:!0,position:Le,orientation:new Cesium.VelocityOrientationProperty(Le),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:Se,scale:.9,rotation:0,show:!0,width:48,height:48,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.RELATIVE_TO_GROUND}});se.addProperty("imageClock");var xe=0;se.imageClock=setInterval(function(){parseInt(t.clock.currentTime.secondsOfDay)<=t.clock.stopTime.secondsOfDay&&(xe+=.1,se.billboard.rotation=xe)},20);const _=[];t.entities.add({name:"taifeng",availability:new Cesium.TimeIntervalCollection([new Cesium.TimeInterval({start:q,stop:fe})]),show:!0,position:new Cesium.CallbackProperty(function(A,d){let o=parseInt(Cesium.JulianDate.secondsDifference(A,q));if(_.length===0||o!==_[_.length-1]){if(_.length===0){let h=Cesium.Cartesian3.fromDegrees(parseFloat(e[0].fLongitude),parseFloat(e[0].fLatitude),3e4),E;switch(e[o].strong){case"\u70ED\u5E26\u98CE\u66B4(TS)":E=new Cesium.Color(0,0,1,1);break;case"\u5F3A\u70ED\u5E26\u98CE\u66B4(STS)":E=new Cesium.Color(1,1,0,1);break;case"\u53F0\u98CE(TY)":E=new Cesium.Color(0,1,1,1);break;case"\u5F3A\u53F0\u98CE(STY)":E=new Cesium.Color(1,0,1,1);break;case"\u8D85\u5F3A\u53F0\u98CE(Super\xA0TY)":E=new Cesium.Color(1,0,0,1);break;case"\u70ED\u5E26\u4F4E\u538B(TD)":E=new Cesium.Color(0,1,0,1);break;default:E=null}t.entities.add({name:"taifeng",position:h,point:{pixelSize:6,outlineWidth:.01,color:E}})}_.push(o);let p=Cesium.Cartesian3.fromDegrees(parseFloat(e[o].fLongitude),parseFloat(e[o].fLatitude),3e4),c;switch(e[o].strong){case"\u70ED\u5E26\u98CE\u66B4(TS)":c=new Cesium.Color(0,0,1,1);break;case"\u5F3A\u70ED\u5E26\u98CE\u66B4(STS)":c=new Cesium.Color(1,1,0,1);break;case"\u53F0\u98CE(TY)":c=new Cesium.Color(0,1,1,1);break;case"\u5F3A\u53F0\u98CE(STY)":c=new Cesium.Color(1,0,1,1);break;case"\u8D85\u5F3A\u53F0\u98CE(Super\xA0TY)":c=new Cesium.Color(1,0,0,1);break;case"\u70ED\u5E26\u4F4E\u538B(TD)":c=new Cesium.Color(0,1,0,1);break;default:c=null}if(t.entities.add({name:"taifeng",position:p,point:{pixelSize:6,outlineWidth:.01,color:c}}),o===parseInt(e.length-1)){let h=Cesium.Cartesian3.fromDegrees(parseFloat(e[e.length-1].fLongitude),parseFloat(e[e.length-1].fLatitude),3e4);var f=t.entities.add({name:"taifeng",position:h,billboard:{image:Se,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
\u8BC4\u4F30\u65F6\u95F4\uFF1A
<el-date-picker
v-model="value1"
type="daterange"
range-separator="-"
start-placeholder="\u5F00\u59CB\u65E5\u671F"
end-placeholder="\u7ED3\u675F\u65E5\u671F"
:size="size"
/>
</div> `),m(w,{data:we.value,style:{width:"100%"}},{default:C(()=>[m(u,{prop:"createdTime",label:"\u65F6\u95F4"}),m(u,{prop:"tyName",label:"\u53F0\u98CE\u540D\u79F0"}),m(u,{prop:"weizhi",label:"\u4F4D\u7F6E"}),m(u,{prop:"affectedArea",label:"\u53D7\u707E\u9762\u79EF(\u516C\u9877)"}),V(` <el-table-column prop="name" label="\u8BE6\u60C5">
<template #default="scope">
<span style="color: rgba(41, 255, 219, 1); cursor: pointer">
\u8BE6\u60C5
</span>
</template>
</el-table-column> `),m(u,{prop:"address",label:"\u5220\u9664"},{default:C(s=>[n("span",{style:{color:"red",cursor:"pointer"},onClick:L=>rt(s.row)}," \u5220\u9664 ",8,Rt)]),_:1})]),_:1},8,["data"])]),V(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),n("div",{class:"rightFoldDiv",onClick:a[3]||(a[3]=s=>je())},[m(N,{disabled:!D(R),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[D(R)?(k(),X("img",jt)):V("v-if",!0)]),_:1},8,["disabled"]),m(N,{disabled:D(R),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[D(R)?V("v-if",!0):(k(),X("img",Yt))]),_:1},8,["disabled"])])]),n("div",Kt,[m(Dt)]),Jt,n("div",_t,[n("div",null,[W(" \u540D\u79F0\uFF1A "),n("p",null,z(D(H).name),1)]),n("div",null,[W(" \u5F53\u524D\u4F4D\u7F6E\uFF1A "),n("p",null,z(D(H).fLongitude)+"\xB0E/"+z(D(H).fLatitude)+"\xB0N",1)]),n("div",null,[W(" \u65F6\u95F4\uFF1A "),n("p",null,z(D(H).time),1)]),n("div",null,[W(" \u6C14\u538B\uFF1A "),n("p",null,z(D(H).pressure)+"\u767E\u5E15",1)]),n("div",null,[W(" \u6700\u5927\u98CE\u901F\uFF1A "),n("p",null,z(D(H).speed)+"\u7C73/\u79D2",1)]),n("div",null,[W(" \u98CE\u529B\uFF1A "),n("p",null,z(D(H).power)+"\u7EA7",1)]),n("div",{class:"cancel",onClick:le},"X")]),n("div",$t,[(k(!0),X(We,null,Ne(D(K).label,(s,L)=>(k(),X("div",{key:L},[n("div",null,z(s.crop)+"\uFF1A",1),n("div",null,z((s.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),D(K).XZQMC?(k(),X("div",ea,[ta,n("div",null,z(D(K).XZQMC),1)])):V("v-if",!0),n("div",{class:"cancel",onClick:le},"X")]),n("div",aa,[m(e,{modelValue:ae.value,"onUpdate:modelValue":a[10]||(a[10]=s=>ae.value=s),title:"\u53F0\u98CE\u707E\u5BB3\u635F\u5931\u9884\u6D4B",width:"30%",center:""},{footer:C(()=>[n("span",ra,[m(t,{type:"primary",onClick:a[9]||(a[9]=s=>Ye())},{default:C(()=>[W("\u70B9\u51FB\u9884\u6D4B")]),_:1})])]),default:C(()=>[m(ie,{ref_key:"ruleFormRef",ref:Fe,model:T,rules:Ge,"label-width":"140px",class:"demo-ruleForm",size:r.formSize,"status-icon":""},{default:C(()=>[m(G,{label:"\u53F0\u98CE\u8FC7\u5883\u6301\u7EED\u65F6\u95F4",prop:"name"},{default:C(()=>[m(B,{modelValue:T.name,"onUpdate:modelValue":a[4]||(a[4]=s=>T.name=s)},{append:C(()=>[W("\u5C0F\u65F6")]),_:1},8,["modelValue"])]),_:1}),m(G,{label:"\u98CE\u529B\u7B49\u7EA7",prop:"power"},{default:C(()=>[m(B,{disabled:"",modelValue:T.power,"onUpdate:modelValue":a[5]||(a[5]=s=>T.power=s)},{append:C(()=>[W("\u7EA7")]),_:1},8,["modelValue"])]),_:1}),m(G,{label:"\u53F0\u98CE\u8FC7\u5883\u98CE\u901F",prop:"speed"},{default:C(()=>[m(B,{disabled:"",modelValue:T.speed,"onUpdate:modelValue":a[6]||(a[6]=s=>T.speed=s)},{append:C(()=>[W("\u7C73/\u79D2")]),_:1},8,["modelValue"])]),_:1}),m(G,{label:"\u53F0\u98CE\u5B9E\u65F6\u4E2D\u5FC3\u6C14\u538B",prop:"pressure"},{default:C(()=>[m(B,{disabled:"",modelValue:T.pressure,"onUpdate:modelValue":a[7]||(a[7]=s=>T.pressure=s)},{append:C(()=>[W("\u767E\u5E15")]),_:1},8,["modelValue"])]),_:1}),m(G,{label:"\u98CE\u5708\u534A\u5F84",prop:"date2"},{default:C(()=>[m(B,{disabled:"",modelValue:T.date2,"onUpdate:modelValue":a[8]||(a[8]=s=>T.date2=s)},{append:C(()=>[W("\u5343\u7C73")]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules","size"])]),_:1},8,["modelValue"])]),n("div",oa,[m(e,{modelValue:re.value,"onUpdate:modelValue":a[12]||(a[12]=s=>re.value=s),title:"\u53F0\u98CE\u707E\u5BB3\u9884\u6D4B\u4FE1\u606F",width:"30%",center:""},{footer:C(()=>[n("span",la,[m(t,{onClick:a[11]||(a[11]=s=>Ke())},{default:C(()=>[W("\u4FDD\u5B58\u9884\u6D4B\u7ED3\u679C")]),_:1})])]),default:C(()=>[m(w,{data:Ue.value,style:{width:"100%"}},{default:C(()=>[m(u,{prop:"date1",label:"\u884C\u653F\u533A\u5212"}),m(u,{prop:"date2",label:"\u9884\u8BA1\u53D7\u5F71\u54CD\u4EBA\u53E3(\u5355\u4F4D\uFF1A\u4EBA)"}),m(u,{prop:"date3",label:"\u9884\u8BA1\u7ECF\u6D4E\u635F\u5931(\u5355\u4F4D\uFF1A\u4E07\u5143)"}),m(u,{prop:"date4",label:"\u9884\u8BA1\u53D7\u707E\u9762\u79EF(\u5355\u4F4D\uFF1A\u516C\u9877)"}),m(u,{prop:"date5"