Agriculture-front-end/dist/assets/Index.a3bb7739.js

6 lines
131 KiB
JavaScript
Raw Normal View History

2023-07-26 17:29:34 +08:00
import{K as re,_ as wa,u as Aa,r as v,D as Ot,t as ba,X as wl,M as At,d as L,o,c as i,k as t,J as U,f as s,m,e as u,w as c,y as r,l as y,G as Ke,H as $e,j as W,F as et,P as F,Q as G,B as ka,p as xa,q as Ca}from"./index.1974707a.js";import Ct from"./downloads.4cdbbcc5.js";import{_ as Tt}from"./linesGL.99030c5a.js";import{_ as Ta,a as Ha,b as Ea,c as _a}from"./position.a021215f.js";import{_ as Da,a as Sa}from"./face.2eec3bdc.js";import{_ as Ma}from"./dow.b4b83e88.js";import{L as Q,i as Ya,_ as Ia,a as Ba}from"./mark.1aa0c6ec.js";import"./index.e2d056fa.js";/* empty css */import{d as De}from"./download.b14e0d1d.js";import{u as bt}from"./useEcharts.2e9d7b11.js";import{h as I}from"./moment.9709ab41.js";import{e as kt}from"./element-resize-detector.d8720798.js";import{i as ge,L as Al}from"./install.49294472.js";const za="/assets/insect.46611a7c.png",Ra="/assets/spore.b8bb2c5c.png",Pa="/assets/soil.cf5e9f99.png",xl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAoCAYAAACfKfiZAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACFElEQVRYR+2V723CMBDF7XSOFHWPUsEoHaBdgbBCOwCjEJXuUdGMAF+Ley85SJz4z9moHyrxk4ztkPg9350TdQ2PlVk8VabiaRaa+2QgbIxa8VQZrZafla55KqbgPomxONBGbXOikRyB+cpsqVt0sylaq/VHpcVGxAaQb9oldn0Rh9hJqRq750stKSZEBlg8KDKOjNRE1IAz357FHffWVJzrUHEGDbjEY9We+oz3FLh2s1trHTtqiAwixNMWEvEWrdcAiouHAOJLHnd8NQv93WzRin1jpQMmsGsaYo1aUgtOEAUUIE8vQFDvGzNsYxNSkt8D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/wErX2wJmmknOTvQfJP8KWitiuwnNEFSP+qLF9tcBfUdmkRyEEvp3XiPoroUmsRkbl4yBLRBnCuRUBRZ3uoB1T2KJzuXw86qRAA4fryeqkmwvFkFqx6t1B/GT+fTlD1U3YQQvNGNmD2oLuSP9Wt7xOxip/6Q1AVS8EoBzYekvguJjaI3HdzTXOhORiGBi4m2liflVuHP/l5k5nYhadIygHi1/23Zx6pjM3XDpB5J3eL4dZBKTQP6vfcrJvXDZB4z89CV8XYhV/tHcfWlbT+Anw83gdgYAQg9gHFfTi+o2I+Hm4A5EEC+XwcBgHcXolxqB/b5DgAAAABJRU5ErkJggg==";function be(M){return re({url:"equipment/findAllSpor
2023-07-24 18:07:54 +08:00
`,p+=q}else p=d;return p}}},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 Al(0,0,0,1,[{offset:0,color:"rgba(43, 224, 152, 1)"},{offset:1,color:"rgba(185, 250, 224, 1)"}])}},data:He._rawValue,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:He._rawValue,z:1,zlevel:0,tooltip:{show:!1}}]};a&&l.setOption(a,{notMerge:!0,grid:{bottom:20}}),bt(l,a),kt().listenTo(St.value,()=>{At(()=>{l.resize()})})}function hl(){const l=ge(Mt.value);let a=Re._rawValue,n=he._rawValue,d={backgroundColor:"transparent",grid:{left:"15%",right:"7%",top:"15%",bottom:"17%"},tooltip:{trigger:"axis",axisPointer:{type:"shadow",lineStyle:{color:"#57617B"}}},dataZoom:[{type:"slider",zoomLock:!0,show:!1,handleSize:0,startValue:0,endValue:6,height:10,left:"5%",right:"4%",bottom:5,borderColor:"#000",fillerColor:"#269cdb",borderRadius:5,backgroundColor:"#33384b",showDataShadow:!1,showDetail:!1,realtime:!0,filterMode:"filter"},{type:"inside",show:!0,start:1,end:100}],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:{interval:1,textStyle:{color:"rgba(219, 225, 255, 1)"},formatter:function(h){var w="",H=h.length,E=10,q=Math.ceil(H/E);if(H>E)for(var b=0;b<q;b++){var R="",O=b*E,Z=O+E;b==q-1?R=h.substring(O,H):R=h.substring(O,Z)+`
`,w+=R}else w=h;return w}},data:n},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 Al(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:a}]};bt(l,d),kt().listenTo(Mt.value,()=>{At(()=>{l.resize()})})}function Qt(){const l=ge(Yt.value);var a=he._rawValue,n=ee.value,d=j.value;bt(l,{tooltip:{trigger:"axis"},grid:{top:"15%",left:"5%",right:"7%",bottom:"15%",containLabel:!0},dataZoom:[{type:"slider",zoomLock:!0,show:!1,handleSize:0,startValue:0,endValue:6,height:10,left:"5%",right:"4%",bottom:5,borderColor:"#000",fillerColor:"#269cdb",borderRadius:5,backgroundColor:"#33384b",showDataShadow:!1,showDetail:!1,realtime:!0,filterMode:"filter"},{type:"inside",show:!0,start:1,end:100}],xAxis:[{type:"category",data:a,axisLine:{show:!1},axisLabel:{textStyle:{color:"rgba(255, 255, 255, 0.7)"},interval:1,formatter:function(w){var H="",E=w.length,q=10,b=Math.ceil(E/q);if(E>q)for(var R=0;R<b;R++){var O="",Z=R*q,ne=Z+q;R==b-1?O=w.substring(Z,E):O=w.substring(Z,ne)+`
`,H+=O}else H=w;return H}},boundaryGap:!1,axisTick:{show:!1}}],yAxis:[{name:"\u571F\u58E4\u6E29\u5EA6 (\u2103)",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:d,symbolSize:1,itemStyle:{normal:{color:"rgba(252, 186, 211, 1)"}},smooth:!0,yAxisIndex:0,showSymbol:!1,lineStyle:{width:3,color:"rgba(252, 186, 211, 1)"}},{name:"\u571F\u58E4\u6E7F\u5EA6",type:"line",data:n,symbolSize:1,yAxisIndex:1,itemStyle:{normal:{color:"rgba(168, 216, 234, 1)"}},smooth:!0,showSymbol:!1,lineStyle:{width:3,color:"rgba(168, 216, 234, 1)"}}]}),kt().listenTo(Yt.value,()=>{At(()=>{l.resize()})})}function je(){const l=ge(we.value);let a="\u571F\u58E4\u6E29\u5EA6 (\u2103)",n="",d="rgba(255, 235, 59, 1)";switch(Y.value){case 6:a="EC\u503C(S/cm)",n="EC\u503C",d="rgba(0, 209, 195, 1)";break;case 7:a="PH\u503C(ph)",n="PH\u503C",d="rgba(201, 255, 148, 1)";break;default:a="\u571F\u58E4\u6E29\u5EA6 (\u2103)",n="\u571F\u58E4\u6E29\u5EA6";break}var p=he._rawValue,h=ee.value,w=j.value;let H=30/j.value.length*100;bt(l,{color:[d,"rgba(199, 125, 231, 1)"],tooltip:{trigger:"axis"},grid:{top:"15%",left:"5%",right:"7%",bottom:"15%",containLabel:!0},legend:{show:!0,top:"7%",x:"center",textStyle:{color:"black"},itemWidth:20,itemHeight:12.5,icon:"rect",backgroundColor:"transparent"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:H,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"35%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],xAxis:[{type:"category",data:p,axisLine:{show:!1},axisLabel:{textStyle:{color:"rgba(102, 102, 102, 1)"},interval:0,rotate:45,formatter:function(b){var R="",O=b.length,Z=10,ne=Math.ceil(O/Z);if(O>Z)for(var ce=0;ce<ne;ce++){var vt="",pt=ce*Z,ht=pt+Z;ce==ne-1?vt=b.substring(pt,O):vt=b.substring(pt,ht)+`
2023-07-26 17:29:34 +08:00
`,R+=vt}else R=b;return R}},boundaryGap:!1,axisTick:{show:!1}}],yAxis:[{name:a,type:"value",axisLine:{show:!1,lineStyle:{color:"rgba(102, 102, 102, 1)"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(102, 102, 102, 1)"}},splitLine:{show:!0,lineStyle:{color:"#ccc",type:"solid",opacity:1}}},{name:"\u571F\u58E4\u6E7F\u5EA6(%RH)",type:"value",axisLine:{show:!1,lineStyle:{color:"rgba(102, 102, 102, 1)"}},position:"right",axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(102, 102, 102, 1)"},formatter:"{value}"},splitLine:{show:!1}}],series:[{name:n,type:"line",data:w,symbolSize:10,itemStyle:{normal:{color:function(b){if(Y.value==1)return b.value>=-10&&b.value<=40?d:"red";if(Y.value==2)return b.value>=-5<=40?d:"red";if(Y.value==3)return b.value>=0&&b.value<=30?d:"red";if(Y.value==4)return b.value>=0&&b.value<=30?d:"red";if(Y.value==5)return b.value>=0&&b.value<=30?d:"red";if(Y.value==6)return b.value>=0&&b.value<=.2?d:"red";if(Y.value==7)return b.value>=5.5&&b.value<=7.5?d:"red"}}},smooth:!0,yAxisIndex:0,showSymbol:!0,symbol:"circle",lineStyle:{width:3,color:d}},{name:"\u571F\u58E4\u6E7F\u5EA6",type:"line",data:h,symbolSize:10,yAxisIndex:1,itemStyle:{normal:{color:function(b){if(Y.value==1)return b.value>=5&&b.value<=60?"rgba(199, 125, 231, 1)":"red";if(Y.value==2)return b.value>=0<=30?"rgba(199, 125, 231, 1)":"red";if(Y.value==3)return b.value>=0&&b.value<=30?"rgba(199, 125, 231, 1)":"red";if(Y.value==4)return b.value>=0&&b.value<=40?"rgba(199, 125, 231, 1)":"red";if(Y.value==5)return b.value>=0&&b.value<=40?"rgba(199, 125, 231, 1)":"red"}}},label:{color:b=>b.color},smooth:!0,showSymbol:!0,symbol:"circle",lineStyle:{width:3,color:"rgba(199, 125, 231, 1)"}},{name:"\u9884\u8B66",type:"bar",data:[],itemStyle:{color:"red"}}]}),kt().listenTo(we.value,()=>{At(()=>{l.resize()})})}function pa(l,a,n){let d=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+`/map-${l}/wms111/`,layers:l+"@"+l,parameters:{service:"WMS",format:"image/png",srs:"EPSG:4326",VERSION:"1.1.1",transparent:!0,exceptions:"application/vnd.ogc.se_inimage"}});d.customName=a;let p=pe.imageryLayers.addImageryProvider(d);n&&(pe.imageryLayers.lowerToBottom(p),pe.imageryLayers.raise(p))}function ha(){removeWms(["gbznt"],!0),pa("shuzisannong:huangdaoqu_town","tl"),pe.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),yt.value=!1}v({});function ga(){if(ae.value&&ae.label[0].msLongitude&&ae.label[0].msLatitude){const a=Cesium.Cartesian3.fromDegrees(Number(ae.label[0].msLongitude),Number(ae.label[0].msLatitude),0);var l=Cesium.SceneTransforms.wgs84ToWindowCoordinates(pe.scene,a);if(Cesium.defined(l)){const n=document.getElementById("pop");n.style.top=l.y-10+"px",n.style.left=l.x+10+"px"}}}function ma(){const l=document.getElementById("pop");l.style.display="none",pe.scene.postRender.removeEventListener(ga),yt.value=!1}function ya(){XZDM="",XZQDM="",removeWms(["village_CQL"]),removeWms(["aaa"]),deleteEntityByName("villageLine"),deleteEntityByName("townLine");const l=document.getElementById("pops");l.style.display="none",pe.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),removeWms(["gbznt"],!0),yt.value=!1}return(l,a)=>{const n=L("el-table-column"),d=L("image-preview"),p=L("el-image"),h=L("el-table"),w=L("el-tooltip"),H=L("el-button"),E=L("Close"),q=L("el-icon"),b=L("el-date-picker"),R=L("el-option"),O=L("el-select"),Z=L("el-pagination"),ne=L("el-dialog"),ce=L("el-tab-pane"),vt=L("el-tabs"),pt=L("el-tree"),ht=L("el-form-item"),fa=L("el-form"),gl=L("el-card"),ml=L("el-col"),yl=L("el-row");return o(),i("div",Fa,[t("div",Ga,[t("div",{ref_key:"cesiumContainer",ref:Cl,style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,512),t("div",Na,[t("div",Xa,[t("div",{class:"title"},[Ja,t("p",{onClick:Rl},"\u5C55\u793A\u5168\u90E8")]),t("div",Wa,[t("div",Za,[ja,t("p",{onClick:a[0]||(a[0]=e=>{Il()}),class:U(s(K)==1||s(K)==4?"sele_types":"")}," \u667A\u80FD\u5B62\u5B50\u4EEA ",2)]),t("div",Ka,[$a,t("p",{onClick:a[1]||(a[1]=e=>{Bl()}),class:U(s(K)==2||s(K)