18 lines
123 KiB
JavaScript
18 lines
123 KiB
JavaScript
|
import{z as Si,A as Ai,_ as ki,r as le,B as wr,C as Ei,D as Di,F as Rn,d as Ze,o as We,c as Ye,l as A,m as gt,e as Q,w as he,f as de,x as yt,G as Tr,H as Sr,g as kt,k as _i,I as un,J as Ni,y as Li,K as ji,p as Mi,q as Ii}from"./index.75ecb6e9.js";import kr from"./downloads.e955445d.js";import{_ as cn}from"./close1.45635d81.js";import{g as Oi,a as qi,b as Pi,_ as Hi,c as Bi,d as Ri,e as Wi,f as Fi,h as zi}from"./linesGL.c51488ff.js";import{i as ln,r as Xi,L as Ar}from"./index.7fec779c.js";import{u as fn}from"./useEcharts.00fc3079.js";const Ui="/assets/spore.b8bb2c5c.png",Vi="/assets/insect.46611a7c.png",Gi="/assets/soil.cf5e9f99.png";function Ji(Qe){return Si({url:"equipment/findAllSpore",method:"get",params:Qe})}var Er={exports:{}};/*!
|
||
|
* jQuery JavaScript Library v3.6.4
|
||
|
* https://jquery.com/
|
||
|
*
|
||
|
* Includes Sizzle.js
|
||
|
* https://sizzlejs.com/
|
||
|
*
|
||
|
* Copyright OpenJS Foundation and other contributors
|
||
|
* Released under the MIT license
|
||
|
* https://jquery.org/license
|
||
|
*
|
||
|
* Date: 2023-03-08T15:28Z
|
||
|
*/(function(Qe){(function(B,U){Qe.exports=B.document?U(B,!0):function(be){if(!be.document)throw new Error("jQuery requires a window with a document");return U(be)}})(typeof window<"u"?window:Ai,function(B,U){var be=[],Et=Object.getPrototypeOf,je=be.slice,Dt=be.flat?function(e){return be.flat.call(e)}:function(e){return be.concat.apply([],e)},_t=be.push,qe=be.indexOf,it={},Nt=it.toString,Fe=it.hasOwnProperty,Pe=Fe.toString,ze=Pe.call(Object),V={},W=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},Xe=function(t){return t!=null&&t===t.window},z=B.document,zt={type:!0,src:!0,nonce:!0,noModule:!0};function vt(e,t,n){n=n||z;var r,o,a=n.createElement("script");if(a.text=e,t)for(r in zt)o=t[r]||t.getAttribute&&t.getAttribute(r),o&&a.setAttribute(r,o);n.head.appendChild(a).parentNode.removeChild(a)}function He(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?it[Nt.call(e)]||"object":typeof e}var Xt="3.6.4",i=function(e,t){return new i.fn.init(e,t)};i.fn=i.prototype={jquery:Xt,constructor:i,length:0,toArray:function(){return je.call(this)},get:function(e){return e==null?je.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=i.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return i.each(this,e)},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(je.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:_t,sort:be.sort,splice:be.splice},i.extend=i.fn.extend=function(){var e,t,n,r,o,a,s=arguments[0]||{},c=1,l=arguments.length,h=!1;for(typeof s=="boolean"&&(h=s,s=arguments[c]||{},c++),typeof s!="object"&&!W(s)&&(s={}),c===l&&(s=this,c--);c<l;c++)if((e=arguments[c])!=null)for(t in e)r=e[t],!(t==="__proto__"||s===r)&&(h&&r&&(i.isPlainObject(r)||(o=Array.isArray(r)))?(n=s[t],o&&!Array.isArray(n)?a=[]:!o&&!i.isPlainObject(n)?a={}:a=n,o=!1,s[t]=i.extend(h,a,r)):r!==void 0&&(s[t]=r));return s},i.extend({expando:"jQuery"+(Xt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||Nt.call(e)!=="[object Object]"?!1:(t=Et(e),t?(n=Fe.call(t,"constructor")&&t.constructor,typeof n=="function"&&Pe.call(n)===ze):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){vt(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(mt(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},makeArray:function(e,t){var n=t||[];return e!=null&&(mt(Object(e))?i.merge(n,typeof e=="string"?[e]:e):_t.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:qe.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r,o=[],a=0,s=e.length,c=!n;a<s;a++)r=!t(e[a],a),r!==c&&o.push(e[a]);return o},map:function(e,t,n){var r,o,a=0,s=[];if(mt(e))for(r=e.length;a<r;a++)o=t(e[a],a,n),o!=null&&s.push(o);else for(a in e)o=t(e[a],a,n),o!=null&&s.push(o);return Dt(s)},guid:1,support:V}),typeof Symbol=="function"&&(i.fn[Symbol.iterator]=be[Symbol.iterator]),i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){it["[object "+t+"]"]=t.toLowerCase()});function mt(e){var t=!!e&&"length"in e&&e.length,n=He(e);return W(e)||Xe(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}var Ue=function(e){var t,n,r,o,a,s,c,l,h,y,C,g,v,N,F,_,fe,ue,Se,K="sizzle"+1*new Date,R=e.document,we=0,G=0,oe=rn(),Bt=rn(),en=rn(),Ae=rn(),ft=function(u,f){return u===f&&(C=!0),0},ct={}.hasOwnProperty,Te=[],nt=Te.pop,Ne=Te.push,rt=Te.push,pr=Te.slice,dt=functi
|
||
|
`):e)),t};var Jr=/\[\]$/,sr=/\r?\n/g,Zr=/^(?:submit|button|image|reset|file)$/i,Yr=/^(?:input|select|textarea|keygen)/i;function En(e,t,n,r){var o;if(Array.isArray(t))i.each(t,function(a,s){n||Jr.test(e)?r(e,s):En(e+"["+(typeof s=="object"&&s!=null?a:"")+"]",s,n,r)});else if(!n&&He(t)==="object")for(o in t)En(e+"["+o+"]",t[o],n,r);else r(e,t)}i.param=function(e,t){var n,r=[],o=function(a,s){var c=W(s)?s():s;r[r.length]=encodeURIComponent(a)+"="+encodeURIComponent(c==null?"":c)};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){o(this.name,this.value)});else for(n in e)En(n,e[n],t,o);return r.join("&")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=i.prop(this,"elements");return e?i.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!i(this).is(":disabled")&&Yr.test(this.nodeName)&&!Zr.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=i(this).val();return n==null?null:Array.isArray(n)?i.map(n,function(r){return{name:t.name,value:r.replace(sr,`\r
|
||
|
`)}}):{name:t.name,value:n.replace(sr,`\r
|
||
|
`)}}).get()}});var Qr=/%20/g,Kr=/#.*$/,$r=/([?&])_=[^&]*/,ei=/^(.*?):[ \t]*([^\r\n]*)$/mg,ti=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ni=/^(?:GET|HEAD)$/,ri=/^\/\//,ur={},Dn={},lr="*/".concat("*"),_n=z.createElement("a");_n.href=Pt.href;function fr(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,o=0,a=t.toLowerCase().match(De)||[];if(W(n))for(;r=a[o++];)r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function cr(e,t,n,r){var o={},a=e===Dn;function s(c){var l;return o[c]=!0,i.each(e[c]||[],function(h,y){var C=y(t,n,r);if(typeof C=="string"&&!a&&!o[C])return t.dataTypes.unshift(C),s(C),!1;if(a)return!(l=C)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Nn(e,t){var n,r,o=i.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&i.extend(!0,e,r),e}function ii(e,t,n){for(var r,o,a,s,c=e.contents,l=e.dataTypes;l[0]==="*";)l.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r){for(o in c)if(c[o]&&c[o].test(r)){l.unshift(o);break}}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}s||(s=o)}a=a||s}if(a)return a!==l[0]&&l.unshift(a),n[a]}function oi(e,t,n,r){var o,a,s,c,l,h={},y=e.dataTypes.slice();if(y[1])for(s in e.converters)h[s.toLowerCase()]=e.converters[s];for(a=y.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=y.shift(),a){if(a==="*")a=l;else if(l!=="*"&&l!==a){if(s=h[l+" "+a]||h["* "+a],!s){for(o in h)if(c=o.split(" "),c[1]===a&&(s=h[l+" "+c[0]]||h["* "+c[0]],s)){s===!0?s=h[o]:h[o]!==!0&&(a=c[0],y.unshift(c[1]));break}}if(s!==!0)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(C){return{state:"parsererror",error:s?C:"No conversion from "+l+" to "+a}}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:ti.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lr,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Nn(Nn(e,i.ajaxSettings),t):Nn(i.ajaxSettings,e)},ajaxPrefilter:fr(ur),ajaxTransport:fr(Dn),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,c,l,h,y,C,g=i.ajaxSetup({},t),v=g.context||g,N=g.context&&(v.nodeType||v.jquery)?i(v):i.event,F=i.Deferred(),_=i.Callbacks("once memory"),fe=g.statusCode||{},ue={},Se={},K="canceled",R={readyState:0,getResponseHeader:function(G){var oe;if(l){if(!a)for(a={};oe=ei.exec(o);)a[oe[1].toLowerCase()+" "]=(a[oe[1].toLowerCase()+" "]||[]).concat(oe[2]);oe=a[G.toLowerCase()+" "]}return oe==null?null:oe.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(G,oe){return l==null&&(G=Se[G.toLowerCase()]=Se[G.toLowerCase()]||G,ue[G]=oe),this},overrideMimeType:function(G){return l==null&&(g.mimeType=G),this},statusCode:function(G){var oe;if(G)if(l)R.always(G[R.status]);else for(oe in G)fe[oe]=[fe[oe],G[oe]];return this},abort:function(G){var oe=G||K;return n&&n.abort(oe),we(0,oe),this}};if(F.promise(R),g.url=((e||g.url||Pt.href)+"").replace(ri,Pt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(De)||[""],g.crossDomain==null){c=z.createElement("a");try{c.href=g.url,c.href=c.href,g.crossDomain=_n.protocol+"//"+_n.host!=c.protocol+"//"+c.host}catch{g.crossDomain=!0}}if(g.data&&g.processData&&typeof g.data!="string"&&(g.data=i.param(g.data,g.traditional)),cr(ur,g,t,R),l)return R;h=i.event&&g.global,h&&i.active++===0&&i.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!ni.test(g.type),r=g.url.replace(Kr,""),g.hasContent?g.data&&g.processData&&(g.contentTyp
|
||
|
`,H+=Z}else H=P;return H}},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 Ar(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}]};fn(x,D)}function vn(){const x=ln(Dt.value);var T=["06:00","06:30","07:00","07:30","08:00","08:30","09:00"],E=[688,108,2288,188,929,3108,1008],D=[1140,2135,125,140,1130,138,120];fn(x,{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:D,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:E,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 Mt(x,T){let E=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:x,parameters:{service:"WMS",format:"image/png",transparent:!0}});E.customName=T;let D=U.imageryLayers.addImageryProvider(E);T.indexOf("gbznt")>-1&&(U.imageryLayers.lowerToBottom(D),U.imageryLayers.raise(D))}function _e(){Be(["gbznt"],!0),Mt("shuzisannong:huangdaoqu_town","tl"),U.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Fe.value=!1}function at(x){console.log("item:",x),Be(["huangdaoqu_town"],!0),Be(["tl"],!0);let T="shuzisannong:farmland",E=!1;const D=U.imageryLayers._layers;for(let H=D.length-1;H>=0;H--)D[H]&&D[H]._imageryProvider.customName&&D[H]._imageryProvider.customName===T+"gbznt"&&(E=!0);E||Mt(T,T+"gbznt"),Nt.value.forEach(H=>{console.log("it.properties.name:",H.properties.name),console.log("item.name:",x.name),H.properties.name===x.name&&(console.log("dingwei"),U.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(H.bbox[0],H.bbox[1],H.bbox[2],H.bbox[3]),duration:2}))}),Fe.value=!0,ge.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(ge.label),Zt({x:642,y:312})}function st(){let x=j.value;console.log("fl:",x),Rn({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((D,P)=>{const H=Cesium.Rectangle.fromDegrees(D.bbox[0],D.bbox[1],D.bbox[2],D.bbox[3]),re=Cesium.Rectangle.center(H);let ne=Cesium.Math.toDegrees(re.longitude),J=Cesium.Math.toDegrees(re.latitude);D.properties.XZDM==="370211011"?(ne=120.0863,J=35.941):D.properties.XZDM==="370211003"&&(ne=120.243682,J=35.97123201);const $=x[D.properties.XZMC];let Z=[];$&&(Z=$.map((L,pe)=>L.properties)),U.entities.add({name:"point"+D.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(ne,J),po
|