3 lines
21 KiB
JavaScript
3 lines
21 KiB
JavaScript
import{_ as Ae,r as p,z as re,A as Fe,B as Ee,C as q,d as X,o as h,c as C,l as o,m as Q,e as f,w as k,f as y,x as z,F as Ne,D as We,g as T,k as Re,y as ne,p as Xe,q as Ze}from"./index.276e09af.js";import de from"./downloads.e955445d.js";import{_ as Z}from"./close1.45635d81.js";import{g as Be,a as Oe,b as Ge,c as qe,u as j,_ as Qe,d as je,e as Je,f as He,h as Ue,i as $e}from"./linesGL.4533f4ed.js";import{i as J,L as le}from"./index.c9f5bd8b.js";const Ye="/assets/spore.b8bb2c5c.png",Ve="/assets/insect.46611a7c.png",Ke="/assets/soil.cf5e9f99.png";const _=A=>(Xe("data-v-b301384e"),A=A(),Ze(),A),et={class:"center"},tt=_(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),at={class:"leftWra"},st=ne('<div class="leftTop" data-v-b301384e><div class="title" data-v-b301384e><span data-v-b301384e>\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1</span></div><div class="types" data-v-b301384e><div width="100%" class="types_left" data-v-b301384e><img width="100%" src="'+Ye+'" alt="" data-v-b301384e><p data-v-b301384e>\u667A\u80FD\u5B62\u5B50\u6355\u6349\u5206\u6790</p></div><div width="100%" class="types_center" data-v-b301384e><img width="100%" src="'+Ve+'" alt="" data-v-b301384e><p data-v-b301384e>\u866B\u60C5\u76D1\u6D4B\u4EEA</p></div><div width="100%" class="types_right" data-v-b301384e><img width="100%" src="'+Ke+'" alt="" data-v-b301384e><p data-v-b301384e>\u571F\u58E4\u5892\u60C5\u3001\u571F\u8D28</p></div></div></div><div class="leftcenter" data-v-b301384e><div class="title" data-v-b301384e><span data-v-b301384e>\u8BBE\u5907\u7167\u7247</span></div><div class="imgdiv" data-v-b301384e><img width="100%" src="https://img.js.design/assets/img/641d73a7cece21d6b61bedf9.png#d27dd8c8c5369101dca2dcf160e5bba9" alt="" data-v-b301384e></div></div>',2),ot={class:"leftbottom"},it={class:"title"},rt=_(()=>o("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),lt=_(()=>o("img",{src:de,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),nt={class:"tableDiv"},dt={key:0,src:Z,alt:""},ct={key:0,class:"imgrotate",src:Z,alt:""},ut={class:"rightWra"},pt={class:"rightTop"},mt=_(()=>o("div",{class:"title"},[o("span",null,"\u5892\u60C5\u3001\u571F\u8D28\u76D1\u6D4B\u6570\u636E")],-1)),ft=_(()=>o("div",{class:"depth"},[o("p",{class:"SelectedDiv"},"0cm"),o("p",null,"-10cm"),o("p",null,"-20cm"),o("p",null,"-30cm")],-1)),gt={key:0,src:Z,alt:""},vt={key:0,class:"imgrotate",src:Z,alt:""},yt={class:"bottom_center"},bt=_(()=>o("div",{class:"left_bottom"},[o("div",{class:"title"},[o("span",null,"\u8BBE\u5907\u7167\u7247")]),o("div",{class:"imgdiv"},[o("img",{src:"https://img.js.design/assets/img/641d73b4634e77963ddc9e3c.png#34e63fa85ea624d67ab959d24318b0e9",alt:""})])],-1)),ht={class:"right_bottom"},_t={class:"title"},xt=_(()=>o("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),wt=_(()=>o("img",{src:de,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ct={class:"tableDiv"},St=ne('<div class="tool" data-v-b301384e><span data-v-b301384e><img src="'+Qe+'" alt="" data-v-b301384e></span><span data-v-b301384e><img src="'+je+'" alt="" data-v-b301384e></span><span data-v-b301384e><img src="'+Je+'" alt="" data-v-b301384e></span><span data-v-b301384e><img src="'+He+'" alt="" data-v-b301384e></span><span data-v-b301384e><img src="'+Ue+'" alt="" data-v-b301384e></span><span data-v-b301384e><img src="'+$e+'" alt="" data-v-b301384e></span></div>',1),Dt={id:"popup"},Lt={id:"pop"},kt={key:0},Mt=_(()=>o("div",null,"\u6751\u540D\uFF1A",-1)),Tt={__name:"index",setup(A){let l=p(null);const H=p(null),U=p(null),$=p(null);p(null);const ce=p("370211");p(null);let I=re({arr:[],brr:[],crr:[]});re({arr:[]});const Y=p({name:"",value:""});p([]);const V=p([]),F=p(!1);let S=p(!0),D=p(!0);Fe(()=>I.arr,e=>{console.log("val:",e)});var K={title:[]};let B={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},ee=[{date:"\u5C0F\u9EA6",name:"2934362\u4EA9",address:"35%"},{date:"\u7389\u7C73",name:"1676778\u4EA9",address:"20%"},{date:"\u5927\u8C46",name:"1257584\u4EA9",address:"15%"},{date:"\u5730\u74DC",name:"1341423\u4EA9",address:"16%"},{date:"\u82B1\u751F",name:"1592939\u4EA9",address:"19%"}];Ee(()=>{_e(),Ce(),xe(),we(),pe(),De(),fe(),Le(),ke()});const ue={url:"http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=31091965e263284a501a723b8909f405",layer:"tdtCva",style:"default",format:"tiles",tileMatrixSetID:"c",subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],tilingScheme:new Cesium.GeographicTilingScheme,tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],maximumLevel:18};Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c";function pe(){l=new Cesium.Viewer("cesiumContainer",{baseLayerPicker:!1,shouldAnimate:!0,infoBox:!1,animation:!1,timeline:!1,geocoder:!1,homeButton:!1,navigationHelpButton:!1,selectionIndicator:!1,fullscreenButton:!1,terrainProvider:new Cesium.EllipsoidTerrainProvider({}),sceneModePicker:!1,contextOptions:{webgl:{alpha:!0}},imageryProvider:new Cesium.WebMapTileServiceImageryProvider({...ue})}),l.cesiumWidget.creditContainer.style.display="none",O("shuzisannong:huangdaoqu_town","tl"),l.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),ge(),Pe()}function te(e,t,a){e.forEach(s=>{let i=[];s[0].forEach(r=>{i.push(r[0]),i.push(r[1])}),l.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(i),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:a?Cesium.Color.fromCssColorString(a):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function me(e){return e>48e6?0:e>24e6?1:e>12e6?2:e>6e6?3:e>3e6?4:e>15e5?5:e>75e4?6:e>375e3?7:e>187500?8:e>93750?9:e>46875?10:e>23437.5?11:e>11718.75?12:e>5859.38?13:e>2929.69?14:e>1464.84?15:e>732.42?16:e>366.21?17:18}function fe(){q({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(e=>{console.log("\u519C\u7530\uFF1A",e),V.value=e.data.features}).catch(e=>{})}let g=p({label:[]}),E="";function ge(){var e=new Cesium.ScreenSpaceEventHandler(l.canvas);e.setInputAction(function(t){var a=l.camera.getPickRay(t.position),s=l.scene.globe.pick(a,l.scene);if(s){let i=Cesium.Cartographic.fromCartesian(s);if(i){let r=new Cesium.Cartesian2,n=l.camera.positionCartographic.height,c=me(n);const m=l.imageryLayers._layers,u=m.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(u>-1){const d=m[u];let v=d._imageryProvider;if(v&&v.ready&&v._layers&&d.show===!0){r=v.tilingScheme.positionToTileXY(i,c,r);let w=v.pickFeatures(r.x,r.y,c,i.longitude,i.latitude);w&&w.then(W=>{if(W.length>0){let b=W[0];if(b.properties&&b.properties.XZDM)if(E!==b.properties.XZDM){E=b.properties.XZDM,ce.value=E,selectTab();let M=b.data;l.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(M.bbox[0],M.bbox[1],M.bbox[2],M.bbox[3]),duration:2}),P("townLine"),te(M.geometry&&M.geometry.coordinates,"townLine","yellow"),x(["village_CQL"]),ye(`XZDM=${b.properties.XZDM}`,"village_CQL");let R=l.entities._entities._array;for(var L=R.length-1;L>=0;L--)if(R[L]._name&&R[L]._name==="point"+b.properties.XZDM){let ze=R[L]._info;g.value=ze,console.log(g.value,"------------------"),ie(t.position),l.scene.postRender.addEventListener(oe)}P("villageLine"),N=""}else ve(m,r,c,i);else x(["village_CQL"]),G()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let N="";function ve(e,t,a,s){const i=e.findIndex(r=>r._imageryProvider._layers&&r._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(i>-1){const r=e[i];let n=r._imageryProvider;if(n&&n.ready&&n._layers&&r.show===!0){t=n.tilingScheme.positionToTileXY(s,a,t);let c=n.pickFeatures(t.x,t.y,a,s.longitude,s.latitude);c&&c.then(m=>{if(m.length>0){let u=m[0];if(u.properties&&u.properties.XZQDM&&N!==u.properties.XZQDM){N=u.properties.XZQDM;let d=u.data;if(P("villageLine"),te(d.geometry&&d.geometry.coordinates,"villageLine","yellow"),u.properties.XZQDM==="370211104217"){const v=Cesium.Rectangle.fromDegrees(d.bbox[0],d.bbox[1],d.bbox[2],d.bbox[3]),w=Cesium.Rectangle.center(v);let W=Cesium.Math.toDegrees(w.longitude),L=Cesium.Math.toDegrees(w.latitude),b={lon:W,lat:L,...d.properties,label:[{crop:"\u8336\u53F6",Shape_Area:2820},{crop:"\u5927\u8C46",Shape_Area:2767},{crop:"\u82B1\u751F",Shape_Area:62356},{crop:"\u84DD\u8393",Shape_Area:5443},{crop:"\u5730\u74DC",Shape_Area:897},{crop:"\u5C0F\u9EA6",Shape_Area:20111}]};g.value=b}}}})}}}function ye(e,t){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});a.customName=t,l.imageryLayers.addImageryProvider(a)}function x(e,t){if(l){const a=l.imageryLayers._layers;for(let s=a.length-1;s>=0;s--)e.forEach(i=>{a[s]._imageryProvider&&a[s]._imageryProvider.customName&&(t?a[s]._imageryProvider.customName.indexOf(i)>-1&&l.imageryLayers.remove(a[s]):a[s]._imageryProvider.customName===i&&l.imageryLayers.remove(a[s]))})}}function P(e){if(l){let a=l.entities._entities._array;for(var t=a.length-1;t>=0;t--)a[t]._name&&a[t]._name===e&&l.entities.remove(a[t])}}function be(){if(S.value=!S.value,S.value){let e=document.querySelector(".leftWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".leftWra");e.style.transform="translate(-107%,0)"}}function he(){if(D.value=!D.value,D.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}}const _e=()=>{Be({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},xe=()=>{Oe().then(e=>{I.arr=e.features,I.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],a=[];t.splice(0,1),t.forEach(s=>{a.push(s.properties.XZMC)}),K.title=[...Object.values(a)]})},we=()=>{Ge().then(e=>{I.brr=e.features})},Ce=()=>{qe().then(e=>{I.crr=e.features,K.title.forEach((t,a)=>{let s=e.features.map(i=>{if(t===i.properties.town)return i.properties});Object.keys(B).forEach(i=>{const r=s.findIndex(n=>n&&n.crop===i);r>-1?B[i].push(s[r].Shape_Area):B[i].push(null)})})})},ae=e=>{Se(e)},Se=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function De(){const e=J(H.value);var t={grid:{top:"15%",left:"17%",right:"2%",bottom:"14%"},legend:{data:["EC\u503C"],inactiveColor:"rgba(92,200,255,0.35)",icon:"roundRect",top:0,right:0,itemWidth:20,itemHeight:7,textStyle:{color:"#FFF"},show:!0},tooltip:{show:!1},xAxis:{data:["06:00","07:00","08:00","09:00","10:00","11:00","12:00"],axisLine:{lineStyle:{color:"transparent"}},axisLabel:{textStyle:{color:"#fff",fontSize:12}}},yAxis:[{name:"EC\u503C(mS/cm) ",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.2)",width:1,type:"solid"}},axisLine:{show:!1,lineStyle:{color:"transparent"}},axisLabel:{show:!0,fontSize:12,textStyle:{color:"#ADD6FF"}}}],series:[{name:"EC\u503C",type:"bar",barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(255, 255, 255, 0.3)"},itemStyle:{normal:{color:new le(0,0,0,1,[{offset:0,color:"rgba(43, 224, 152, 1)"},{offset:1,color:"rgba(185, 250, 224, 1)"}])}},data:[20,80,100,40,34,90,60,20,80,100,40,34],z:0,zlevel:0},{type:"pictorialBar",barWidth:20,itemStyle:{normal:{color:"rgba(2, 31, 26, 0.85)"}},symbolRepeat:"fixed",symbolMargin:3,symbol:"rect",symbolSize:[30,4],symbolPosition:"end",symbolOffset:[0,0],data:[20,80,100,40,34,90,60,20,80,100,40,34],z:1,zlevel:0}]};e.on("click",function(a){console.log(a.name)}),e.on("click",a=>Te(a)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),j(e,t)}function Le(){const e=J(U.value);let t=[20,30,60,40,50,30],s={backgroundColor:"transparent",grid:{left:"15%",right:"2%",top:"15%",bottom:"17%"},tooltip:{trigger:"axis",axisPointer:{type:"shadow",lineStyle:{color:"#57617B"}}},xAxis:{type:"category",axisLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.7)"}},offset:12,axisTick:{show:!1,alignWithLabel:!0,lineStyle:{color:"#dddddd"}},axisLabel:{show:!0,interval:0,textStyle:{color:"rgba(219, 225, 255, 1)"},formatter:function(i){var r="",n=i.length,c=10,m=Math.ceil(n/c);if(n>c)for(var u=0;u<m;u++){var d="",v=u*c,w=v+c;u==m-1?d=i.substring(v,n):d=i.substring(v,w)+`
|
|
`,r+=d}else r=i;return r}},data:["2023/03/0814:52:00","2023/03/0814:52:00","2023/03/0814:52:00","2023/03/0814:52:00"]},yAxis:{name:"PH\u503C(ph)",type:"value",axisLine:{show:!1,lineStyle:{color:"#dddddd"}},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.2)",width:1,type:"solid"}},axisTick:{show:!1},axisLabel:{fontSize:16},boundaryGap:["20%","20%"]},series:[{name:"",type:"line",stack:"\u603B\u91CF",smooth:!0,symbol:"none",showSymbol:!1,symbolSize:8,itemStyle:{normal:{areaStyle:{color:new le(0,1,0,0,[{offset:.4,color:"rgba(163, 198, 255, 0.4)"},{offset:1,color:"rgba(163, 198, 255, 0.01)"}])}}},markPoint:{itemStyle:{normal:{color:"red"}}},data:t}]};j(e,s)}function ke(){const e=J($.value);var t=["06:00","06:30","07:00","07:30","08:00","08:30","09:00"],a=[688,108,2288,188,929,3108,1008],s=[1140,2135,125,140,1130,138,120];j(e,{legend:{icon:"rect",top:7,left:"center",itemWidth:20,itemHeight:10,itemGap:30,textStyle:{color:"rgba(255, 255, 255, 0.7)"}},tooltip:{trigger:"axis"},grid:{top:"15%",left:"5%",right:"4%",bottom:"15%",containLabel:!0},xAxis:[{type:"category",data:t,axisLine:{show:!1},axisLabel:{textStyle:{color:"rgba(255, 255, 255, 0.7)"}},boundaryGap:!1,axisTick:{show:!1}}],yAxis:[{name:"PH\u503C(ph)",type:"value",axisLine:{show:!1,lineStyle:{color:"#dddddd"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(255, 255, 255, 0.7)"}},splitLine:{show:!0,lineStyle:{color:"#ccc",type:"solid",opacity:1}}},{name:"\u571F\u58E4\u6E7F\u5EA6(%RH)",type:"value",axisLine:{show:!1,lineStyle:{color:"#dddddd"}},position:"right",axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(255, 255, 255, 0.7)"},formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"\u571F\u58E4\u6E29\u5EA6",type:"line",data:s,symbolSize:1,itemStyle:{normal:{color:"rgba(252, 186, 211, 1)"}},smooth:!0,yAxisIndex:0,showSymbol:!1,lineStyle:{width:1,color:"rgba(252, 186, 211, 1)"}},{name:"\u571F\u58E4\u6E7F\u5EA6",type:"line",data:a,symbolSize:1,yAxisIndex:1,itemStyle:{normal:{color:"rgba(168, 216, 234, 1)"}},smooth:!0,showSymbol:!1,lineStyle:{width:1,color:"rgba(168, 216, 234, 1)"}}]})}function O(e,t){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=t;let s=l.imageryLayers.addImageryProvider(a);t.indexOf("gbznt")>-1&&(l.imageryLayers.lowerToBottom(s),l.imageryLayers.raise(s))}function Me(){x(["gbznt"],!0),O("shuzisannong:huangdaoqu_town","tl"),l.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),F.value=!1}function Te(e){console.log("item:",e),x(["huangdaoqu_town"],!0),x(["tl"],!0);let t="shuzisannong:farmland",a=!1;const s=l.imageryLayers._layers;for(let r=s.length-1;r>=0;r--)s[r]&&s[r]._imageryProvider.customName&&s[r]._imageryProvider.customName===t+"gbznt"&&(a=!0);a||O(t,t+"gbznt"),V.value.forEach(r=>{console.log("it.properties.name:",r.properties.name),console.log("item.name:",e.name),r.properties.name===e.name&&(console.log("dingwei"),l.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(r.bbox[0],r.bbox[1],r.bbox[2],r.bbox[3]),duration:2}))}),F.value=!0,g.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(g.label),ie({x:642,y:312})}function Ie(){let e=se.value;console.log("fl:",e),q({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(t=>{console.log("res1111:",t),t.data.features.forEach((s,i)=>{const r=Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),n=Cesium.Rectangle.center(r);let c=Cesium.Math.toDegrees(n.longitude),m=Cesium.Math.toDegrees(n.latitude);s.properties.XZDM==="370211011"?(c=120.0863,m=35.941):s.properties.XZDM==="370211003"&&(c=120.243682,m=35.97123201);const u=e[s.properties.XZMC];let d=[];u&&(d=u.map((v,w)=>v.properties)),l.entities.add({name:"point"+s.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(c,m),point:new Cesium.PointGraphics({show:!0,pixelSize:10,color:Cesium.Color.fromCssColorString("rgba(255, 255, 26, 1)"),outlineColor:new Cesium.Color(0,0,0,0),outlineWidth:0,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}),info:{label:d,...s.properties,lon:c,lat:m}})})}).catch(t=>{})}let se=p({});function Pe(){q({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let t=e.data.features,a={};t.forEach(s=>{let i=s.properties.town;a[i]?a[i].push(s):a[i]=[s]}),se.value=a,Ie()}).catch(e=>{})}function oe(){if(g.value&&g.value.lon&&g.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(l.scene,t);if(Cesium.defined(e)){const a=document.getElementById("pop");a.style.top=e.y-10+"px",a.style.left=e.x+10+"px"}}}function G(){E="",N="",x(["village_CQL"]),x(["aaa"]),P("villageLine"),P("townLine");const e=document.getElementById("pop");e.style.display="none",l.scene.postRender.removeEventListener(oe),l.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),x(["gbznt"],!0),F.value=!1}function ie(e){console.log(e);const t=document.getElementById("pop");t.style.display="block",t.style.position="absolute",t.style.top=e.y-10+"px",t.style.left=e.x+10+"px",t.style.zIndex=99}return(e,t)=>{const a=X("el-table-column"),s=X("el-table"),i=X("el-tooltip"),r=X("el-button");return h(),C("div",et,[tt,o("div",at,[st,o("div",ot,[o("div",it,[rt,o("p",{onClick:t[0]||(t[0]=n=>ae("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[Q(" \u5386\u53F2\u6570\u636E \xA0 "),lt])]),o("div",nt,[f(s,{"max-height":"200px",data:y(ee),stripe:"",style:{width:"100%"}},{default:k(()=>[f(a,{prop:"date",label:"\u8BBE\u5907\u7F16\u53F7"}),f(a,{prop:"name",label:"\u76D1\u6D4B\u65F6\u95F4"}),f(a,{prop:"address",label:"\u9884\u8B66\u60C5\u51B5"}),f(a,{prop:"address",label:"\u7167\u7247"})]),_:1},8,["data"])])]),o("div",{class:"leftFoldDiv",onClick:t[1]||(t[1]=n=>be())},[f(i,{class:"box-item","show-arrow":!1,disabled:y(S),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[y(S)?T("v-if",!0):(h(),C("img",dt))]),_:1},8,["disabled"]),f(i,{disabled:!y(S),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[y(S)?(h(),C("img",ct)):T("v-if",!0)]),_:1},8,["disabled"])])]),o("div",ut,[o("div",pt,[mt,o("div",{ref_key:"farmlandDiv",ref:H,class:"farmlandDiv"},null,512),o("div",{ref_key:"Phdiv",ref:U,class:"Phdiv"},null,512),ft,o("div",{ref_key:"soilDiv",ref:$,class:"soilDiv"},null,512)]),o("div",{class:"rightFoldDiv",onClick:t[2]||(t[2]=n=>he())},[f(i,{disabled:!y(D),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[y(D)?(h(),C("img",gt)):T("v-if",!0)]),_:1},8,["disabled"]),f(i,{disabled:y(D),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[y(D)?T("v-if",!0):(h(),C("img",vt))]),_:1},8,["disabled"])])]),o("div",yt,[bt,o("div",ht,[o("div",_t,[xt,o("p",{onClick:t[3]||(t[3]=n=>ae("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[Q(" \u5386\u53F2\u6570\u636E \xA0 "),wt])]),o("div",Ct,[f(s,{"max-height":"200px",data:y(ee),stripe:"",style:{width:"100%"}},{default:k(()=>[f(a,{prop:"date",label:"\u8BBE\u5907\u7F16\u53F7"}),f(a,{prop:"name",label:"\u76D1\u6D4B\u65F6\u95F4"}),f(a,{prop:"address",label:"\u9884\u8B66\u60C5\u51B5"}),f(a,{prop:"address",label:"\u7167\u7247"})]),_:1},8,["data"])])])]),St,o("div",Dt,[o("div",null,z(Y.value.name)+"\uFF1A",1),o("div",null,z(Y.value.value)+"\u4EA9",1),o("div",{class:"cancel",onClick:G},"X")]),o("div",Lt,[(h(!0),C(Ne,null,We(y(g).label,(n,c)=>(h(),C("div",{key:c},[o("div",null,z(n.crop)+"\uFF1A",1),o("div",null,z((n.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),y(g).XZQMC?(h(),C("div",kt,[Mt,o("div",null,z(y(g).XZQMC),1)])):T("v-if",!0),o("div",{class:"cancel",onClick:G},"X")]),F.value?(h(),Re(r,{key:0,class:"back_button",onClick:t[4]||(t[4]=n=>Me())},{default:k(()=>[Q("\u8FD4\u56DE")]),_:1})):T("v-if",!0)])}}},Et=Ae(Tt,[["__scopeId","data-v-b301384e"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/index.vue"]]);export{Et as default};
|