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

3 lines
21 KiB
JavaScript
Raw Normal View History

2023-05-05 16:32:31 +08:00
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
`,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.PointGra