3 lines
20 KiB
JavaScript
3 lines
20 KiB
JavaScript
|
import{_ as Pe,r as p,z as re,A as ze,B as Fe,C as G,d as w,o as D,c as F,l,m as q,e as v,w as E,f as N,x as k,F as Ee,D as Ne,g as se,k as We,y as ie,p as Be,q as Re}from"./index.0bad53d2.js";import le from"./downloads.e955445d.js";import{g as Xe,a as Ze,b as Oe,c as Ge,u as Q,T as qe,_ as Qe,d as Je,e as je,f as Ue,h as Ye,i as He}from"./linesGL.0ef36864.js";import{i as J,L as W}from"./index.c9f5bd8b.js";const Ve="/assets/spore.b8bb2c5c.png",$e="/assets/insect.46611a7c.png",Ke="/assets/soil.cf5e9f99.png";const C=T=>(Be("data-v-b301384e"),T=T(),Re(),T),et={class:"center"},tt=C(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),at={class:"leftWra"},ot=ie('<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="'+Ve+'" 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="'+$e+'" 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),rt={class:"leftbottom"},st={class:"title"},it=C(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),lt=C(()=>l("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),nt={class:"tableDiv"},ct={class:"rightWra"},dt={class:"rightTop"},ut={class:"title"},mt=C(()=>l("span",null,"\u5892\u60C5\u3001\u571F\u8D28\u76D1\u6D4B\u6570\u636E",-1)),pt=C(()=>l("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ft={class:"bottom_center"},gt=ie('<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="'+Ue+'" alt="" data-v-b301384e></span><span data-v-b301384e><img src="'+Ye+'" alt="" data-v-b301384e></span><span data-v-b301384e><img src="'+He+'" alt="" data-v-b301384e></span></div>',1),vt={id:"popup"},yt={id:"pop"},bt={key:0},ht=C(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),_t={__name:"index",setup(T){let i=p(null);const j=p(null),U=p(null),Y=p(null);p(null);const ne=p("370211");p(null);let S=re({arr:[],brr:[],crr:[]});re({arr:[]});const H=p({name:"",value:""});p([]);const V=p([]),M=p(!1);let B=p(!0),R=p(!0);ze(()=>S.arr,e=>{console.log("val:",e)});var $={title:[]};let X={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},ce=[{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%"}];Fe(()=>{he(),we(),_e(),xe(),ue(),Se(),pe(),Le(),De()});const de={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,tileMatrixLabe
|
||
|
`,r+=c}else r=s;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 W(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}]};Q(e,o)}function De(){const e=J(Y.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],o=[1140,2135,125,140,1130,138,120];let s={legend:{icon:"rect",bottom:5,left:"center",itemWidth:20,itemHeight:5,itemGap:60,textStyle:{color:"#666"}},tooltip:{trigger:"axis"},grid:{top:"5%",left:"3%",right:"4%",bottom:"15%",containLabel:!0},xAxis:[{type:"category",data:t,axisLine:{show:!1},axisLabel:{textStyle:{color:"#666"}},boundaryGap:!1,axisTick:{show:!1}}],yAxis:[{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{textStyle:{color:"#666"}},splitLine:{show:!0,lineStyle:{color:"#ff0000",type:"dashed",opacity:.1}}},{type:"value",position:"right",axisTick:{show:!1},axisLabel:{textStyle:{color:"#666"},formatter:"{value}"},axisLine:{show:!1},splitLine:{show:!1}}],series:[{name:"2022\u5E74\u6BCF\u6708\u8BA2\u5355\u51FA\u53E3\u989D",type:"line",data:o,symbolSize:1,symbol:"circle",smooth:!0,yAxisIndex:0,showSymbol:!1,lineStyle:{width:1,color:"#00CA94"},itemStyle:{normal:{color:"rgba(0, 202, 148, 1)",areaStyle:{color:new W(0,1,0,0,[{offset:0,color:"rgba(0, 202, 148, 0)"},{offset:1,color:"rgba(0, 202, 148, 1)"}])}}}},{name:"2023\u5E74\u6BCF\u6708\u8BA2\u5355\u51FA\u53E3\u989D",type:"line",data:a,symbolSize:1,yAxisIndex:1,symbol:"circle",smooth:!0,showSymbol:!1,lineStyle:{width:1,color:"#1E9FFF"},itemStyle:{normal:{color:"rgba(30, 1159, 255, 1)",areaStyle:{color:new W(0,1,0,0,[{offset:0,color:"rgba(30, 1159, 255, 0)"},{offset:1,color:"rgba(30, 1159, 255, 1)"}])}}}}]};Q(e,s)}function Z(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 o=i.imageryLayers.addImageryProvider(a);t.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(o),i.imageryLayers.raise(o))}function ke(){b(["gbznt"],!0),Z("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),M.value=!1}function Te(e){console.log("item:",e),b(["huangdaoqu_town"],!0),b(["tl"],!0);let t="shuzisannong:farmland",a=!1;const o=i.imageryLayers._layers;for(let r=o.length-1;r>=0;r--)o[r]&&o[r]._imageryProvider.customName&&o[r]._imageryProvider.customName===t+"gbznt"&&(a=!0);a||Z(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"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(r.bbox[0],r.bbox[1],r.bbox[2],r.bbox[3]),duration:2}))}),M.value=!0,f.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(f.label),oe({x:642,y:312})}function Me(){let e=te.value;console.log("fl:",e),G({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((o,s)=>{const r=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),d=Cesium.Rectangle.center(r);let m=Cesium.Math.toDegrees(d.longitude),n=Cesium.Math.toDegrees(d.latitude);o.properties.XZDM==="370211011"?(m=120.0863,n=35.941):o.properties.XZDM==="370211003"&&(m=120.243682,n=35.97123201);const u=e[o.properties.XZMC];let c=[];u&&(c=u.map((g,h)=>g.properties)),i.enti
|