Agriculture-front-end/dist/assets/index.e8a6b6d8.js

18 lines
123 KiB
JavaScript
Raw Normal View History

2023-05-12 18:10:29 +08:00
import{z as Si,A as Ai,_ as _i,r as fe,B as Rn,C as ki,D as Ei,F as Wn,d as Fe,o as ze,c as Qe,l as A,m as gt,e as J,w as ce,f as he,x as At,G as Tr,H as Sr,g as _t,k as Di,I as un,J as Ni,y as Li,K as ji,p as Mi,q as Ii}from"./index.be11ec00.js";import _r from"./downloads.e955445d.js";import{_ as cn}from"./close1.45635d81.js";import{g as Oi,a as qi,b as Pi,_ as Bi,c as Hi,d as Ri,e as Wi,f as Fi,h as zi}from"./linesGL.7d091c0b.js";import{i as ln,r as Xi,L as Ar}from"./index.7fec779c.js";import{u as fn}from"./useEcharts.7c77fa00.js";const Ui="/assets/spore.b8bb2c5c.png",Vi="/assets/insect.46611a7c.png",Gi="/assets/soil.cf5e9f99.png";function Ji(Ke){return Si({url:"equipment/findAllSpore",method:"get",params:Ke})}var kr={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(Ke){(function(H,U){Ke.exports=H.document?U(H,!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(H,U){var be=[],kt=Object.getPrototypeOf,Ie=be.slice,Et=be.flat?function(e){return be.flat.call(e)}:function(e){return be.concat.apply([],e)},Dt=be.push,He=be.indexOf,it={},Nt=it.toString,Xe=it.hasOwnProperty,Re=Xe.toString,Ue=Re.call(Object),V={},W=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},Ve=function(t){return t!=null&&t===t.window},z=H.document,zt={type:!0,src:!0,nonce:!0,noModule:!0};function yt(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 Ee(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 Ie.call(this)},get:function(e){return e==null?Ie.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(Ie.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:Dt,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=kt(e),t?(n=Xe.call(t,"constructor")&&t.constructor,typeof n=="function"&&Re.call(n)===Ue):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){yt(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(vt(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&&(vt(Object(e))?i.merge(n,typeof e=="string"?[e]:e):Dt.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:He.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(vt(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 Et(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 vt(e){var t=!!e&&"length"in e&&e.length,n=Ee(e);return W(e)||Ve(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}var Ge=function(e){var t,n,r,o,a,s,c,l,h,y,C,g,v,N,F,D,de,le,Se,K="sizzle"+1*new Date,R=e.document,we=0,G=0,ae=rn(),Ht=rn(),en=rn(),Ae=rn(),ft=function(u,f){return u===f&&(C=!0),0},ct={}.hasOwnProperty,Te=[],nt=Te.pop,je=Te.push,rt=Te.push,hr=Te.slice,dt=functi
`):e)),t};var Jr=/\[\]$/,ur=/\r?\n/g,Zr=/^(?:submit|button|image|reset|file)$/i,Yr=/^(?:input|select|textarea|keygen)/i;function kn(e,t,n,r){var o;if(Array.isArray(t))i.each(t,function(a,s){n||Jr.test(e)?r(e,s):kn(e+"["+(typeof s=="object"&&s!=null?a:"")+"]",s,n,r)});else if(!n&&Ee(t)==="object")for(o in t)kn(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)kn(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||!B.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(ur,`\r
`)}}):{name:t.name,value:n.replace(ur,`\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=/^\/\//,lr={},En={},fr="*/".concat("*"),Dn=z.createElement("a");Dn.href=Pt.href;function cr(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 dr(e,t,n,r){var o={},a=e===En;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:{"*":fr,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:cr(lr),ajaxTransport:cr(En),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(),D=i.Callbacks("once memory"),de=g.statusCode||{},le={},Se={},K="canceled",R={readyState:0,getResponseHeader:function(G){var ae;if(l){if(!a)for(a={};ae=ei.exec(o);)a[ae[1].toLowerCase()+" "]=(a[ae[1].toLowerCase()+" "]||[]).concat(ae[2]);ae=a[G.toLowerCase()+" "]}return ae==null?null:ae.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(G,ae){return l==null&&(G=Se[G.toLowerCase()]=Se[G.toLowerCase()]||G,le[G]=ae),this},overrideMimeType:function(G){return l==null&&(g.mimeType=G),this},statusCode:function(G){var ae;if(G)if(l)R.always(G[R.status]);else for(ae in G)de[ae]=[de[ae],G[ae]];return this},abort:function(G){var ae=G||K;return n&&n.abort(ae),we(0,ae),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=Dn.protocol+"//"+Dn.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)),dr(lr,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
`,M+=Y}else M=P;return M}},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,E)}function vn(){const x=ln(Et.value);var T=["06:00","06:30","07:00","07:30","08:00","08:30","09:00"],k=[688,108,2288,188,929,3108,1008],E=[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:E,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:k,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 k=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:x,parameters:{service:"WMS",format:"image/png",transparent:!0}});k.customName=T;let E=U.imageryLayers.addImageryProvider(k);T.indexOf("gbznt")>-1&&(U.imageryLayers.lowerToBottom(E),U.imageryLayers.raise(E))}function Ne(){We(["gbznt"],!0),Mt("shuzisannong:huangdaoqu_town","tl"),U.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Xe.value=!1}function at(x){console.log("item:",x),We(["huangdaoqu_town"],!0),We(["tl"],!0);let T="shuzisannong:farmland",k=!1;const E=U.imageryLayers._layers;for(let M=E.length-1;M>=0;M--)E[M]&&E[M]._imageryProvider.customName&&E[M]._imageryProvider.customName===T+"gbznt"&&(k=!0);k||Mt(T,T+"gbznt"),Nt.value.forEach(M=>{console.log("it.properties.name:",M.properties.name),console.log("item.name:",x.name),M.properties.name===x.name&&(console.log("dingwei"),U.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(M.bbox[0],M.bbox[1],M.bbox[2],M.bbox[3]),duration:2}))}),Xe.value=!0,ye.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(ye.label),Zt({x:642,y:312})}function st(){let x=L.value;console.log("fl:",x),Wn({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((E,P)=>{const M=Cesium.Rectangle.fromDegrees(E.bbox[0],E.bbox[1],E.bbox[2],E.bbox[3]),ie=Cesium.Rectangle.center(M);let ne=Cesium.Math.toDegrees(ie.longitude),Z=Cesium.Math.toDegrees(ie.latitude);E.properties.XZDM==="370211011"?(ne=120.0863,Z=35.941):E.properties.XZDM==="370211003"&&(ne=120.243682,Z=35.97123201);const $=x[E.properties.XZMC];let Y=[];$&&(Y=$.map((re,B)=>re.properties)),U.entities.add({name:"point"+E.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(ne,Z),p