Agriculture-front-end/dist/assets/index.82cd9fe1.js

12 lines
94 KiB
JavaScript
Raw Normal View History

2023-06-06 10:46:36 +08:00
import{z as Q,_ as wl,r,A as Ke,B as yl,C as bl,D as je,d as T,o as d,c as p,l as e,F as B,f as n,m as v,e as i,w as o,g as k,G as oe,H as se,x as c,k as O,I as Te,y as Cl,J as _,K as $,p as kl,q as xl}from"./index.68b143c5.js";import Ve from"./downloads.e955445d.js";import{_ as Ye}from"./close1.45635d81.js";import{_ as El,a as Ml,b as Il,c as Dl,d as Bl,e as Sl}from"./linesGL.90f708a5.js";import{i as _e,L as Vt}from"./index.c9f5bd8b.js";import{d as $e}from"./download.f3809092.js";import{u as et}from"./useEcharts.758855d9.js";import{g as Hl}from"./classify.3cc97447.js";import{h as ne}from"./moment.9709ab41.js";const Tl="/assets/insect.46611a7c.png",Rl="/assets/spore.b8bb2c5c.png",Vl="/assets/soil.cf5e9f99.png",Yt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAoCAYAAACfKfiZAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACFElEQVRYR+2V723CMBDF7XSOFHWPUsEoHaBdgbBCOwCjEJXuUdGMAF+Ley85SJz4z9moHyrxk4ztkPg9350TdQ2PlVk8VabiaRaa+2QgbIxa8VQZrZafla55KqbgPomxONBGbXOikRyB+cpsqVt0sylaq/VHpcVGxAaQb9oldn0Rh9hJqRq750stKSZEBlg8KDKOjNRE1IAz357FHffWVJzrUHEGDbjEY9We+oz3FLh2s1trHTtqiAwixNMWEvEWrdcAiouHAOJLHnd8NQv93WzRin1jpQMmsGsaYo1aUgtOEAUUIE8vQFDvGzNsYxNSkt8D2LEynpBqKrr70o5UBLkBhLywj6IPc6LwP5TBWjkjehW3IXeJ0455ZIF7pSmJGsBCRtnHqoXDbWYlFb1d9QDPSEz4U4CQ35GwI98QPM1Ka/GYUZ5NcBsI5DuUX68JwmUaTAwEd/JDoRYUl++kuExYBlIejOHbyHitzkBivqWEUnJOpZbcxNM8IvWk8RrleU/GGy2GM72kU+CHpy0IuUjcmDdqhtqhHUfAmlibpwMQInxQ4JDGfDVMLz5sURMAKYdWkt6EqTjagf9NQvQtcHDk/mpyDWy4H+K69od0dYACFBXhjRs3fHSf4wzmFY6heqHhkVbZ7Cr92v2TRpaBgXiPVu85JvLehGNxYNQzj5L4p98CyjmPelzXBFxbhF3Ys4tQqV+LyF9Q2/m3qgAAAABJRU5ErkJggg==";function Re(x){return Q({url:"equipment/findAllSpore",method:"get",params:x})}function me(x){return Q({url:"equipment/findAllSoil",method:"get",params:x})}function fe(x){return Q({url:"equipment/findAllDetectionLights",method:"get",params:x})}function Yl(x){return Q({url:"equipment/sporeEquipment",method:"get",params:x})}function Ul(x){return Q({url:"equipment/detectionLightsEquipment",method:"get",params:x})}function Pl(x){return Q({url:"equipment/soilEquipment",method:"get",params:x})}function Fl(x){return Q({url:"equipment/sporeEquipmentCondition",method:"get",params:x})}function Ol(x){return Q({url:"equipment/equipmentCondition",method:"get",params:x})}function Ql(x){return Q({url:"equipment/eqLightEquipmentCondition",method:"get",params:x})}function zl(x){return Q({url:"equipment/deviceNumber",method:"get",params:x})}const A=x=>(kl("data-v-b301384e"),x=x(),xl(),x),Gl={class:"fatherDiv"},ql={class:"centerBox"},Jl={class:"leftWra"},Xl={class:"leftTop"},Nl=A(()=>e("span",null,"\u8BBE\u5907\u7C7B\u578B\u9009\u62E9",-1)),Ll={class:"types"},Wl={width:"100%",class:"types_left"},Zl=A(()=>e("img",{width:"90",src:Tl,alt:""},null,-1)),Kl={width:"100%",class:"types_center"},jl=A(()=>e("img",{width:"90",src:Rl,alt:""},null,-1)),_l={width:"100%",class:"types_right"},$l=A(()=>e("img",{width:"90",src:Vl,alt:""},null,-1)),ea={key:0,class:"leftbottom"},ta=A(()=>e("span",null,"\u667A\u80FD\u5B62\u5B50\u76D1\u6D4B\u6570\u636E",-1)),la=A(()=>e("img",{src:Ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),aa={class:"tableDiv"},ia={key:0,style:{"background-color":"rgba(255, 62, 57, 1)",padding:"2px 12px 2px 12px","border-radius":"2px"}},oa={key:1,style:{"background-color":"rgba(9, 222, 133, 1)",padding:"2px 12px 2px 12px","border-radius":"2px"}},sa={key:0},na=A(()=>e("div",{slot:"error",class:"image-slot"},[e("i",{class:"el-icon-picture-outline"})],-1)),ra={key:1},da={key:1,class:"leftbottom"},ua=A(()=>e("span",null,"\u5B9E\u65F6\u76D1\u6D4B\u6570\u636E",-1)),ca=A(()=>e("img",{src:Ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),pa={class:"tableDiv"},ga={key:0,style:{"background-color":"rgba(255, 62, 57, 1)",padding:"2px 12px 2px 12px","border-radius":"2px"}},va={key:1,style:{"background-color":"rgba(9, 222, 133, 1)",padding:"2px 12px 2px 12px","border-radius":"2px"}},ma={key:0},fa=A(()=>e("div",{slot:"error",class:"image-slot"},[e("i",{class:"el-icon-picture-outline"})],-1)),ha={key:1},Aa={key:2,class:"leftbottom
`,u+=I}else u=s;return u}}},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 Vt(0,0,0,1,[{offset:0,color:"rgba(43, 224, 152, 1)"},{offset:1,color:"rgba(185, 250, 224, 1)"}])}},data:Xe._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:Xe._rawValue,z:1,zlevel:0,tooltip:{show:!1}}]};l.on("click",function(s){console.log(s.name)}),a&&l.setOption(a,{notMerge:!0,grid:{bottom:20}}),et(l,a)}function Bt(){const l=_e(lt.value);let a=rt._rawValue,s=we._rawValue,u={backgroundColor:"transparent",grid:{left:"15%",right:"7%",top:"15%",bottom:"17%"},tooltip:{trigger:"axis",axisPointer:{type:"shadow",lineStyle:{color:"#57617B"}}},dataZoom:[{type:"slider",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(f){var b="",C=f.length,g=10,I=Math.ceil(C/g);if(C>g)for(var R=0;R<I;R++){var D="",M=R*g,V=M+g;R==I-1?D=f.substring(M,C):D=f.substring(M,V)+`
`,b+=D}else b=f;return b}},data:s},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 Vt(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}]};et(l,u)}function Ze(){const l=_e(at.value);var a=we._rawValue,s=W.value,u=L.value;et(l,{tooltip:{trigger:"axis"},grid:{top:"15%",left:"5%",right:"7%",bottom:"15%",containLabel:!0},dataZoom:[{type:"slider",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(b){var C="",g=b.length,I=10,R=Math.ceil(g/I);if(g>I)for(var D=0;D<R;D++){var M="",V=D*I,ve=V+I;D==R-1?M=b.substring(V,g):M=b.substring(V,ve)+`
`,C+=M}else C=b;return C}},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:u,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:s,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)"}}]})}function St(l,a){let s=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:l,parameters:{service:"WMS",format:"image/png",transparent:!0}});s.customName=a;let u=y.imageryLayers.addImageryProvider(s);a.indexOf("gbznt")>-1&&(y.imageryLayers.lowerToBottom(u),y.imageryLayers.raise(u))}function vl(){Ie(["gbznt"],!0),St("shuzisannong:huangdaoqu_town","tl"),y.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),qe.value=!1}function ml(){let l=Ht.value;je({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(a=>{a.data.features.forEach((u,f)=>{const b=Cesium.Rectangle.fromDegrees(u.bbox[0],u.bbox[1],u.bbox[2],u.bbox[3]),C=Cesium.Rectangle.center(b);Cesium.Math.toDegrees(C.longitude),Cesium.Math.toDegrees(C.latitude),u.properties.XZDM==="370211011"||u.properties.XZDM;const g=l[u.properties.XZMC];g&&g.map((I,R)=>I.properties)})}).catch(a=>{})}let Ht=r({});function fl(){je({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(l=>{let a=l.data.features,s={};a.forEach(u=>{let f=u.properties.town;s[f]?s[f].push(u):s[f]=[u]}),Ht.value=s,ml()}).catch(l=>{})}function Tt(){if(z.value&&z.label[0].longitude&&z.label[0].latitude){const a=Cesium.Cartesian3.fromDegrees(Number(z.label[0].longitude),Number(z.label[0].latitude),0);var l=Cesium.SceneTransforms.wgs84ToWindowCoordinates(y.scene,a);if(Cesium.defined(l)){const s=document.getElementById("pop");s.style.top=l.y-10+"px",s.style.left=l.x+10+"px"}}}function Rt(){Ie(["village_CQL"]),Ie(["aaa"]),bt("villageLine"),bt("townLine");const l=document.getElementById("pop");l.style.display="none",y.scene.postRender.removeEventListener(Tt),y.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ie(["gbznt"],!0),qe.value=!1}function hl(l){const a=document.getElementById("pop");a.style.display="block",a.style.position="absolute",a.style.top=l.y-10+"px",a.style.left=l.x+10+"px",a.style.zIndex=99}return(l,a)=>{const s=T("el-table-column"),u=T("image-preview"),f=T("el-image"),b=T("el-table"),C=T("el-tooltip"),g=T("el-button"),I=T("Close"),R=T("el-icon"),D=T("el-date-picker"),M=T("el-option"),V=T("el-select"),ve=T("el-pagination"),De=T("el-dialog"),Be=T("el-tree"),F=T("el-form-item"),Se=T("el-form"),He=T("el-tab-pane"),Al=T("el-tabs");return d(),p("div",Gl,[e("div",ql,[e("div",{ref_key:"cesiumContainer",ref:Ut,style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,512),e("div",Jl,[e("div",Xl,[e("div",{class:"title"},[Nl,e("p",{onClick:Jt},"\u5C55\u793A\u5168\u90E8")]),e("div",Ll,[e("div",Wl,[Zl,e("p",{onClick:a[0]||(a[0]=t=>{zt()}),class:B(n(Y)==1||n(Y)==4?"sele_types":"")}," \u667A\u80FD\u5B62\u5B50\u4EEA ",2)]),e("div",Kl,[jl,e("p",{onClick:a[1]||(a[1]=t=>{Gt()}),class:B(n(Y)==2||n(Y)==4?"sele_types":"")}," \u866B\u60C5\u76D1\u6D4B\u4EEA ",2)]),e("di
<template #placeholder>\r
<div class="image-slot">\r
Loading\r
<span class="dot">...</span>\r
</div>\r
</template>\r
</el-image> `),e("div",eo,[to,e("div",null,[e("span",null,"\u5BB3\u866B\u540D\u79F0\uFF1A"+c(n(ye).picturesMark2O1List[0].pestName),1),e("span",null,"\u5BB3\u866B\u4E2A\u6570\uFF1A"+c(n(ye).recognition),1)])])]),_:1},8,["modelValue"])])]),e("div",lo,[i(Al,{modelValue:wt.value,"onUpdate:modelValue":a[40]||(a[40]=t=>wt.value=t),class:"demo-tabs",onTabClick:rl},{default:o(()=>[i(He,{label:"\u5168\u90E8",name:"first"},{default:o(()=>[e("div",ao,[e("div",io,[oo,i(Be,{data:be,props:l.defaultProps,onNodeClick:Ce},null,8,["props"])]),e("div",so,[e("div",no,[i(Se,{inline:!0,model:n(U),class:"demo-form-inline"},{default:o(()=>[i(F,{style:{width:"180px"},label:"\u9884\u8B66\u60C5\u51B5:"},{default:o(()=>[i(V,{"popper-class":"selectCity",modelValue:n(U).flag,"onUpdate:modelValue":a[28]||(a[28]=t=>n(U).flag=t),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[i(M,{label:"\u884C\u653F\u533A\u5212",value:"2"}),i(M,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})]),_:1},8,["modelValue"])]),_:1}),i(F,{style:{width:"270px"},label:"\u76D1\u6D4B\u65F6\u95F4:"},{default:o(()=>[i(D,{modelValue:w.value,"onUpdate:modelValue":a[29]||(a[29]=t=>w.value=t),type:"daterange","range-separator":"\u27A1\uFE0F","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),i(F,null,{default:o(()=>[i(g,{type:"primary",onClick:l.onSubmit},{default:o(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),i(g,{plain:"",onClick:l.resetForm},{default:o(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"]),l.operate?k("v-if",!0):(d(),O(g,{key:0,type:"primary",text:"",onClick:l.dowcity},{default:o(()=>[v(" \u4E0B\u8F7D ")]),_:1},8,["onClick"]))]),_:1})]),_:1},8,["model"]),e("div",{class:"modeDiv",onClick:a[30]||(a[30]=(...t)=>l.SwitchMode&&l.SwitchMode(...t))},[e("div",{class:B(l.SwitchFlag?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),e("div",{class:B(l.SwitchFlag?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])])]),e("div",{class:"centent"},[e("div",{class:"arrow",onClick:ke})]),oe(e("div",ro,null,512),[[se,!n(ee)]])])]),_:1}),i(He,{label:"\u667A\u80FD\u5B62\u5B50\u4EEA",name:"firsts"},{default:o(()=>[e("div",uo,[e("div",co,[po,i(Be,{data:be,props:l.defaultProps,onNodeClick:Ce},null,8,["props"])]),e("div",go,[e("div",vo,[i(Se,{inline:!0,model:n(U),class:"demo-form-inline"},{default:o(()=>[i(F,{style:{width:"180px"},label:"\u9884\u8B66\u60C5\u51B5:"},{default:o(()=>[i(V,{"popper-class":"selectCity",modelValue:n(U).flag,"onUpdate:modelValue":a[31]||(a[31]=t=>n(U).flag=t),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[i(M,{label:"\u884C\u653F\u533A\u5212",value:"2"}),i(M,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})]),_:1},8,["modelValue"])]),_:1}),i(F,{style:{width:"270px"},label:"\u76D1\u6D4B\u65F6\u95F4:"},{default:o(()=>[i(D,{modelValue:w.value,"onUpdate:modelValue":a[32]||(a[32]=t=>w.value=t),type:"daterange","range-separator":"\u27A1\uFE0F","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),i(F,null,{default:o(()=>[i(g,{type:"primary",onClick:l.onSubmit},{default:o(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),i(g,{plain:"",onClick:l.resetForm},{default:o(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"]),l.operate?k("v-if",!0):(d(),O(g,{key:0,type:"primary",text:"",onClick:l.dowcity},{default:o(()=>[v(" \u4E0B\u8F7D ")]),_:1},8,["onClick"]))]),_:1})]),_:1},8,["model"]),e("div",{class:"modeDiv",onClick:a[33]||(a[33]=(...t)=>l.SwitchMode&&l.SwitchMode(...t))},[e("div",{class:B(l.SwitchFlag?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),e("div",{class:B(l.SwitchFlag?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])])]),e("div",{class:"centent"},[e("div",{class:"arrow",onClick:ke})]),oe(e("div",mo,null,512),[[se,!n(ee)]])])]),_:1}),i(He,{label:"\u866B\u60C5\u76D1\u6D4B\u4EEA",name:"second"},{default:o(()=>[e("div",fo,[e("div",ho,[Ao,i(Be,{data:be,props:l.defaultProps,onNodeClick:Ce},null,8,["props"])]),e("div",wo,[e("div",yo,[i(Se,{inline:!0,model:n(U),class:"demo-form-inline"},{default:o(()=>[i(F,{style:{width:"180px"},lab