123456789 |
- import{b as Dt,c as Pt,_ as Wt}from"./index.beaea096.js";import{M as Ct,j as at,s as Lt,a3 as Bt,m as Gt,aK as Xt,k as Yt,am as St,o as N,a as Z,b as a,_ as j,u as Ht,X as vt,F as mt,ad as gt,e as Vt,aF as qt,aG as Nt,n as Zt,P as jt,Z as U,f as Ut}from"./vue.60d2ee98.js";import{ad as Kt,G as $t,S as Jt,ae as Qt,o as te,af as pt,ag as ee,ah as ae,h as ie,x as ne,aa as se,a as oe,e as kt,ai as re,i as it}from"./echarts.20c3f7a1.js";import"./echarts.d86c392b.js";Kt({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(c){return{fill:c.get("color")}},visualDrawType:"fill",optionUpdated:function(){var c=this.option;c.gridSize=Math.max(Math.floor(c.gridSize),4)},getInitialData:function(c,s){var i=$t(c.data,{coordDimensions:["value"]}),l=new Jt(i,this);return l.initData(c.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}});Qt({type:"wordCloud",render:function(c,s,i){var l=this.group;l.removeAll();var t=c.getData(),_=c.get("gridSize");c.layoutInstance.ondraw=function(h,n,k,y){var B=t.getItemModel(k),H=B.getModel("textStyle"),C=new te({style:pt(H),scaleX:1/y.info.mu,scaleY:1/y.info.mu,x:(y.gx+y.info.gw/2)*_,y:(y.gy+y.info.gh/2)*_,rotation:y.rot});C.setStyle({x:y.info.fillTextOffsetX,y:y.info.fillTextOffsetY+n*.5,text:h,verticalAlign:"middle",fill:t.getItemVisual(k,"style").fill,fontSize:n}),l.add(C),t.setItemGraphicEl(k,C),C.ensureState("emphasis").style=pt(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),C.ensureState("blur").style=pt(B.getModel(["blur","textStyle"]),{state:"blur"}),ee(C,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),C.stateTransition={duration:c.get("animation")?c.get(["stateAnimation","duration"]):0,easing:c.get(["stateAnimation","easing"])},C.__highDownDispatcher=!0},this._model=c},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*!
- * wordcloud2.js
- * http://timdream.org/wordcloud2.js/
- *
- * Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
- * Released under the MIT license
- */window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var i=[void 0],l="zero-timeout-message",t=function(h){var n=i.length;return i.push(h),window.postMessage(l+n.toString(36),"*"),n};return window.addEventListener("message",function(h){if(!(typeof h.data!="string"||h.data.substr(0,l.length)!==l)){h.stopImmediatePropagation();var n=parseInt(h.data.substr(l.length),36);i[n]&&(i[n](),i[n]=void 0)}},!0),window.clearImmediate=function(h){i[h]&&(i[h]=void 0)},t}()||function(i){window.setTimeout(i,0)}}());window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(i){window.clearTimeout(i)}}());var _t=function(){var s=document.createElement("canvas");if(!s||!s.getContext)return!1;var i=s.getContext("2d");return!(!i||!i.getImageData||!i.fillText||!Array.prototype.some||!Array.prototype.push)}(),wt=function(){if(_t){for(var s=document.createElement("canvas").getContext("2d"),i=20,l,t;i;){if(s.font=i.toString(10)+"px sans-serif",s.measureText("W").width===l&&s.measureText("m").width===t)return i+1;l=s.measureText("W").width,t=s.measureText("m").width,i--}return 0}}(),le=function(c){if(Array.isArray(c)){var s=c.slice();return s.splice(0,2),s}else return[]},de=function(s){for(var i,l,t=s.length;t;)i=Math.floor(Math.random()*t),l=s[--t],s[t]=s[i],s[i]=l;return s},tt={},ot=function(s,i){if(!_t)return;var l=Math.floor(Math.random()*Date.now());Array.isArray(s)||(s=[s]),s.forEach(function(v,e){if(typeof v=="string"){if(s[e]=document.getElementById(v),!s[e])throw new Error("The element id specified is not found.")}else if(!v.tagName&&!v.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var t={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(i)for(var _ in i)_ in t&&(t[_]=i[_]);if(typeof t.weightFactor!="function"){var h=t.weightFactor;t.weightFactor=function(e){return e*h}}if(typeof t.shape!="function")switch(t.shape){case"circle":default:t.shape="circle";break;case"cardioid":t.shape=function(e){return 1-Math.sin(e)};break;case"diamond":t.shape=function(e){var o=e%(2*Math.PI/4);return 1/(Math.cos(o)+Math.sin(o))};break;case"square":t.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":t.shape=function(e){var o=e%(2*Math.PI/3);return 1/(Math.cos(o)+Math.sqrt(3)*Math.sin(o))};break;case"triangle":case"triangle-upright":t.shape=function(e){var o=(e+Math.PI*3/2)%(2*Math.PI/3);return 1/(Math.cos(o)+Math.sqrt(3)*Math.sin(o))};break;case"pentagon":t.shape=function(e){var o=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(o)+.726543*Math.sin(o))};break;case"star":t.shape=function(e){var o=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-o)+3.07768*Math.sin(2*Math.PI/10-o)):1/(Math.cos(o)+3.07768*Math.sin(o))};break}t.gridSize=Math.max(Math.floor(t.gridSize),4);var n=t.gridSize,k=n-t.maskGapWidth,y=Math.abs(t.maxRotation-t.minRotation),B=Math.min(t.maxRotation,t.minRotation),H=t.rotationStep,C,M,E,G,F,g,O;function K(v,e){return"hsl("+(Math.random()*360).toFixed()+","+(Math.random()*30+70).toFixed()+"%,"+(Math.random()*(e-v)+v).toFixed()+"%)"}switch(t.color){case"random-dark":O=function(){return K(10,50)};break;case"random-light":O=function(){return K(50,90)};break;default:typeof t.color=="function"&&(O=t.color);break}var V;typeof t.fontWeight=="function"&&(V=t.fontWeight);var D=null;typeof t.classes=="function"&&(D=t.classes);var Y=!1,nt=[],rt,yt=function(e){var o=e.currentTarget,r=o.getBoundingClientRect(),f,d;e.touches?(f=e.touches[0].clientX,d=e.touches[0].clientY):(f=e.clientX,d=e.clientY);var u=f-r.left,T=d-r.top,p=Math.floor(u*(o.width/r.width||1)/n),w=Math.floor(T*(o.height/r.height||1)/n);return nt[p]?nt[p][w]:null},xt=function(e){var o=yt(e);if(rt!==o){if(rt=o,!o){t.hover(void 0,void 0,e);return}t.hover(o.item,o.dimension,e)}},lt=function(e){var o=yt(e);o&&(t.click(o.item,o.dimension,e),e.preventDefault())},dt=[],Mt=function(e){if(dt[e])return dt[e];var o=e*8,r=o,f=[];for(e===0&&f.push([G[0],G[1],0]);r--;){var d=1;t.shape!=="circle"&&(d=t.shape(r/o*2*Math.PI)),f.push([G[0]+e*d*Math.cos(-r/o*2*Math.PI),G[1]+e*d*Math.sin(-r/o*2*Math.PI)*t.ellipticity,r/o*2*Math.PI])}return dt[e]=f,f},ct=function(){return t.abortThreshold>0&&new Date().getTime()-g>t.abortThreshold},Tt=function(){return t.rotateRatio===0||Math.random()>t.rotateRatio?0:y===0?B:B+Math.round(Math.random()*y/H)*H},It=function(e,o,r,f){var d=t.weightFactor(o);if(d<=t.minSize)return!1;var u=1;d<wt&&(u=function(){for(var ut=2;ut*d<wt;)ut+=2;return ut}());var T;V?T=V(e,o,d,f):T=t.fontWeight;var p=document.createElement("canvas"),w=p.getContext("2d",{willReadFrequently:!0});w.font=T+" "+(d*u).toString(10)+"px "+t.fontFamily;var z=w.measureText(e).width/u,x=Math.max(d*u,w.measureText("m").width,w.measureText("W").width)/u,b=z+x*2,R=x*3,W=Math.ceil(b/n),L=Math.ceil(R/n);b=W*n,R=L*n;var I=-z/2,m=-x*.4,S=Math.ceil((b*Math.abs(Math.sin(r))+R*Math.abs(Math.cos(r)))/n),A=Math.ceil((b*Math.abs(Math.cos(r))+R*Math.abs(Math.sin(r)))/n),X=A*n,Q=S*n;p.setAttribute("width",X),p.setAttribute("height",Q),w.scale(1/u,1/u),w.translate(X*u/2,Q*u/2),w.rotate(-r),w.font=T+" "+(d*u).toString(10)+"px "+t.fontFamily,w.fillStyle="#000",w.textBaseline="middle",w.fillText(e,I*u,(m+d*.5)*u);var st=w.getImageData(0,0,X,Q).data;if(ct())return!1;for(var bt=[],J=A,$,ht,ft,q=[S/2,A/2,S/2,A/2];J--;)for($=S;$--;){ft=n;t:for(;ft--;)for(ht=n;ht--;)if(st[(($*n+ft)*X+(J*n+ht))*4+3]){bt.push([J,$]),J<q[3]&&(q[3]=J),J>q[1]&&(q[1]=J),$<q[0]&&(q[0]=$),$>q[2]&&(q[2]=$);break t}}return{mu:u,occupied:bt,bounds:q,gw:A,gh:S,fillTextOffsetX:I,fillTextOffsetY:m,fillTextWidth:z,fillTextHeight:x,fontSize:d}},Et=function(e,o,r,f,d){for(var u=d.length;u--;){var T=e+d[u][0],p=o+d[u][1];if(T>=M||p>=E||T<0||p<0){if(!t.drawOutOfBound)return!1;continue}if(!C[T][p])return!1}return!0},Ft=function(e,o,r,f,d,u,T,p,w,z){var x=r.fontSize,b;O?b=O(f,d,x,u,T,z):b=t.color;var R;V?R=V(f,d,x,z):R=t.fontWeight;var W;D?W=D(f,d,x,z):W=t.classes,s.forEach(function(L){if(L.getContext){var I=L.getContext("2d"),m=r.mu;I.save(),I.scale(1/m,1/m),I.font=R+" "+(x*m).toString(10)+"px "+t.fontFamily,I.fillStyle=b,I.translate((e+r.gw/2)*n*m,(o+r.gh/2)*n*m),p!==0&&I.rotate(-p),I.textBaseline="middle",I.fillText(f,r.fillTextOffsetX*m,(r.fillTextOffsetY+x*.5)*m),I.restore()}else{var S=document.createElement("span"),A="";A="rotate("+-p/Math.PI*180+"deg) ",r.mu!==1&&(A+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var X={position:"absolute",display:"block",font:R+" "+x*r.mu+"px "+t.fontFamily,left:(e+r.gw/2)*n+r.fillTextOffsetX+"px",top:(o+r.gh/2)*n+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:x+"px",whiteSpace:"nowrap",transform:A,webkitTransform:A,msTransform:A,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};b&&(X.color=b),S.textContent=f;for(var Q in X)S.style[Q]=X[Q];if(w)for(var st in w)S.setAttribute(st,w[st]);W&&(S.className+=W),L.appendChild(S)}})},Rt=function(e,o,r,f,d){if(!(e>=M||o>=E||e<0||o<0)){if(C[e][o]=!1,r){var u=s[0].getContext("2d");u.fillRect(e*n,o*n,k,k)}Y&&(nt[e][o]={item:d,dimension:f})}},At=function(e,o,r,f,d,u){var T=d.occupied,p=t.drawMask,w;p&&(w=s[0].getContext("2d"),w.save(),w.fillStyle=t.maskColor);var z;if(Y){var x=d.bounds;z={x:(e+x[3])*n,y:(o+x[0])*n,w:(x[1]-x[3]+1)*n,h:(x[2]-x[0]+1)*n}}for(var b=T.length;b--;){var R=e+T[b][0],W=o+T[b][1];R>=M||W>=E||R<0||W<0||Rt(R,W,p,z,u)}p&&w.restore()},Ot=function v(e,o){if(o>20)return null;var r,f,d;Array.isArray(e)?(r=e[0],f=e[1]):(r=e.word,f=e.weight,d=e.attributes);var u=Tt(),T=le(e),p=It(r,f,u,T);if(!p||ct())return!1;if(!t.drawOutOfBound&&!t.shrinkToFit){var w=p.bounds;if(w[1]-w[3]+1>M||w[2]-w[0]+1>E)return!1}for(var z=F+1,x=function(L){var I=Math.floor(L[0]-p.gw/2),m=Math.floor(L[1]-p.gh/2),S=p.gw,A=p.gh;return Et(I,m,S,A,p.occupied)?(Ft(I,m,p,r,f,F-z,L[2],u,d,T),At(I,m,S,A,p,e),{gx:I,gy:m,rot:u,info:p}):!1};z--;){var b=Mt(F-z);t.shuffle&&(b=[].concat(b),de(b));for(var R=0;R<b.length;R++){var W=x(b[R]);if(W)return W}}return t.shrinkToFit?(Array.isArray(e)?e[1]=e[1]*3/4:e.weight=e.weight*3/4,v(e,o+1)):null},et=function(e,o,r){if(o)return!s.some(function(f){var d=new CustomEvent(e,{detail:r||{}});return!f.dispatchEvent(d)},this);s.forEach(function(f){var d=new CustomEvent(e,{detail:r||{}});f.dispatchEvent(d)},this)},zt=function(){var e=s[0];if(e.getContext)M=Math.ceil(e.width/n),E=Math.ceil(e.height/n);else{var o=e.getBoundingClientRect();M=Math.ceil(o.width/n),E=Math.ceil(o.height/n)}if(et("wordcloudstart",!0)){G=t.origin?[t.origin[0]/n,t.origin[1]/n]:[M/2,E/2],F=Math.floor(Math.sqrt(M*M+E*E)),C=[];var r,f,d;if(!e.getContext||t.clearCanvas)for(s.forEach(function(m){if(m.getContext){var S=m.getContext("2d");S.fillStyle=t.backgroundColor,S.clearRect(0,0,M*(n+1),E*(n+1)),S.fillRect(0,0,M*(n+1),E*(n+1))}else m.textContent="",m.style.backgroundColor=t.backgroundColor,m.style.position="relative"}),r=M;r--;)for(C[r]=[],f=E;f--;)C[r][f]=!0;else{var u=document.createElement("canvas").getContext("2d");u.fillStyle=t.backgroundColor,u.fillRect(0,0,1,1);var T=u.getImageData(0,0,1,1).data,p=e.getContext("2d").getImageData(0,0,M*n,E*n).data;r=M;for(var w,z;r--;)for(C[r]=[],f=E;f--;){z=n;t:for(;z--;)for(w=n;w--;)for(d=4;d--;)if(p[((f*n+z)*M*n+(r*n+w))*4+d]!==T[d]){C[r][f]=!1;break t}C[r][f]!==!1&&(C[r][f]=!0)}p=u=T=void 0}if(t.hover||t.click){for(Y=!0,r=M+1;r--;)nt[r]=[];t.hover&&e.addEventListener("mousemove",xt),t.click&&(e.addEventListener("click",lt),e.addEventListener("touchstart",lt),e.addEventListener("touchend",function(m){m.preventDefault()}),e.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),e.addEventListener("wordcloudstart",function m(){e.removeEventListener("wordcloudstart",m),e.removeEventListener("mousemove",xt),e.removeEventListener("click",lt),rt=void 0})}d=0;var x,b,R=!0;t.layoutAnimation?t.wait!==0?(x=window.setTimeout,b=window.clearTimeout):(x=window.setImmediate,b=window.clearImmediate):(x=function(m){m()},b=function(){R=!1});var W=function(S,A){s.forEach(function(X){X.addEventListener(S,A)},this)},L=function(S,A){s.forEach(function(X){X.removeEventListener(S,A)},this)},I=function m(){L("wordcloudstart",m),b(tt[l])};W("wordcloudstart",I),tt[l]=(t.layoutAnimation?x:setTimeout)(function m(){if(R){if(d>=t.list.length){b(tt[l]),et("wordcloudstop",!1),L("wordcloudstart",I),delete tt[l];return}g=new Date().getTime();var S=Ot(t.list[d],0),A=!et("wordclouddrawn",!0,{item:t.list[d],drawn:S});if(ct()||A){b(tt[l]),t.abort(),et("wordcloudabort",!1),et("wordcloudstop",!1),L("wordcloudstart",I);return}d++,tt[l]=x(m,t.wait)}},t.wait)}};zt()};ot.isSupported=_t;ot.minFontSize=wt;if(!ot.isSupported)throw new Error("Sorry your browser not support wordCloud");function ce(c){for(var s=c.getContext("2d"),i=s.getImageData(0,0,c.width,c.height),l=s.createImageData(i),t=0,_=0,h=0;h<i.data.length;h+=4){var n=i.data[h+3];if(n>128){var k=i.data[h]+i.data[h+1]+i.data[h+2];t+=k,++_}}for(var y=t/_,h=0;h<i.data.length;h+=4){var k=i.data[h]+i.data[h+1]+i.data[h+2],n=i.data[h+3];n<128||k>y?(l.data[h]=0,l.data[h+1]=0,l.data[h+2]=0,l.data[h+3]=0):(l.data[h]=255,l.data[h+1]=255,l.data[h+2]=255,l.data[h+3]=255)}s.putImageData(l,0,0)}ae(function(c,s){c.eachSeriesByType("wordCloud",function(i){var l=ne(i.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()}),t=i.get("keepAspect"),_=i.get("maskImage"),h=_?_.width/_.height:1;t&&he(l,h);var n=i.getData(),k=document.createElement("canvas");k.width=l.width,k.height=l.height;var y=k.getContext("2d");if(_)try{y.drawImage(_,0,0,k.width,k.height),ce(k)}catch(F){console.error("Invalid mask image"),console.error(F.toString())}var B=i.get("sizeRange"),H=i.get("rotationRange"),C=n.getDataExtent("value"),M=Math.PI/180,E=i.get("gridSize");ot(k,{list:n.mapArray("value",function(F,g){var O=n.getItemModel(g);return[n.getName(g),O.get("textStyle.fontSize",!0)||se(F,C,B),g]}).sort(function(F,g){return g[1]-F[1]}),fontFamily:i.get("textStyle.fontFamily")||i.get("emphasis.textStyle.fontFamily")||c.get("textStyle.fontFamily"),fontWeight:i.get("textStyle.fontWeight")||i.get("emphasis.textStyle.fontWeight")||c.get("textStyle.fontWeight"),gridSize:E,ellipticity:l.height/l.width,minRotation:H[0]*M,maxRotation:H[1]*M,clearCanvas:!_,rotateRatio:1,rotationStep:i.get("rotationStep")*M,drawOutOfBound:i.get("drawOutOfBound"),shrinkToFit:i.get("shrinkToFit"),layoutAnimation:i.get("layoutAnimation"),shuffle:!1,shape:i.get("shape")});function G(F){var g=F.detail.item;F.detail.drawn&&i.layoutInstance.ondraw&&(F.detail.drawn.gx+=l.x/E,F.detail.drawn.gy+=l.y/E,i.layoutInstance.ondraw(g[0],g[1],g[2],F.detail.drawn))}k.addEventListener("wordclouddrawn",G),i.layoutInstance&&i.layoutInstance.dispose(),i.layoutInstance={ondraw:null,dispose:function(){k.removeEventListener("wordclouddrawn",G),k.addEventListener("wordclouddrawn",function(F){F.preventDefault()})}}})});ie(function(c){var s=(c||{}).series;!oe(s)&&(s=s?[s]:[]);var i=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];kt(s,function(t){if(t&&t.type==="wordCloud"){var _=t.textStyle||{};l(_.normal),l(_.emphasis)}});function l(t){t&&kt(i,function(_){t.hasOwnProperty(_)&&(t["text"+re(_)]=t[_])})}});function he(c,s){var i=c.width,l=c.height;i>l*s?(c.x+=(i-l*s)/2,c.width=l*s):(c.y+=(l-i/s)/2,c.height=i/s)}const fe=[{v1:"时间",v2:"天气",v3:"温度",v5:"降水",v7:"风力",type:"title"},{v1:"今天",v2:"ele-Sunny",v3:"20°/26°",v5:"50%",v7:"13m/s"},{v1:"明天",v2:"ele-Lightning",v3:"20°/26°",v5:"50%",v7:"13m/s"}],ue=[{v2:"阳光玫瑰种植",v3:"126天",v4:"设备在线"}],ve=[{label:"温度"},{label:"光照"},{label:"湿度"},{label:"风力"}],P=c=>(qt("data-v-2f27edd8"),c=c(),Nt(),c),me={class:"chart-scrollbar layout-padding"},ge={class:"chart-warp layout-padding-auto layout-padding-view"},pe={class:"chart-warp-top"},we={class:"chart-warp-bottom"},_e={class:"big-data-down-left"},ye={class:"flex-warp-item"},xe={class:"flex-warp-item-box"},be=P(()=>a("div",{class:"flex-title"},"天气预报",-1)),Se={class:"flex-content"},ke={class:"sky"},Ce=P(()=>a("div",{class:"sky-center"},[a("div",{class:"mb2"},[a("span",null,"多云转晴"),a("span",null,"东南风"),a("span",{class:"span ml5"},"良")])],-1)),Me=P(()=>a("div",{class:"sky-right"},[a("span",null,"25"),a("span",null,"°C")],-1)),Te={class:"sky-dd"},Ie={key:0},Ee={key:1},Fe={class:"tip"},Re={class:"flex-warp-item"},Ae={class:"flex-warp-item-box"},Oe=P(()=>a("div",{class:"flex-title"},"当前设备状态",-1)),ze={class:"flex-content flex-content-overflow"},De={class:"d-states"},Pe={class:"d-states-item"},We=P(()=>a("div",{class:"d-states-flex"},[a("div",{class:"d-states-item-label"},"园区设备数"),a("div",{class:"d-states-item-value"},"99")],-1)),Le={class:"d-states-item"},Be=P(()=>a("div",{class:"d-states-flex"},[a("div",{class:"d-states-item-label"},"预警设备数"),a("div",{class:"d-states-item-value"},"10")],-1)),Ge={class:"d-states-item"},Xe=P(()=>a("div",{class:"d-states-flex"},[a("div",{class:"d-states-item-label"},"运行设备数"),a("div",{class:"d-states-item-value"},"20")],-1)),Ye={class:"d-btn"},He=P(()=>a("i",{class:"d-btn-item-left el-icon-money"},null,-1)),Ve={class:"d-btn-item-center"},qe={class:"d-btn-item-eight"},Ne={class:"flex-warp-item"},Ze={class:"flex-warp-item-box"},je=P(()=>a("div",{class:"flex-title"},"近30天预警总数",-1)),Ue={class:"flex-content"},Ke={class:"big-data-down-center"},$e={class:"big-data-down-center-one"},Je={class:"big-data-down-center-one-content"},Qe={class:"big-data-down-center-two"},ta={class:"flex-warp-item-box"},ea=P(()=>a("div",{class:"flex-title"},[a("span",null,"当前设备监测"),a("span",{class:"flex-title-small"},"单位:次")],-1)),aa={class:"flex-content"},ia={class:"flex-content-left"},na={class:"monitor-wave"},sa={class:"monitor-z-index"},oa={class:"monitor-item-label"},ra={class:"flex-content-right"},la={class:"big-data-down-right"},da={class:"flex-warp-item"},ca={class:"flex-warp-item-box"},ha=P(()=>a("div",{class:"flex-title"},[a("span",null,"近7天产品追溯扫码统计"),a("span",{class:"flex-title-small"},"单位:次")],-1)),fa={class:"flex-content"},ua={class:"flex-warp-item"},va={class:"flex-warp-item-box"},ma=P(()=>a("div",{class:"flex-title"},"当前任务统计",-1)),ga={class:"flex-content"},pa=Vt('<div class="task" data-v-2f27edd8><div class="task-item task-first-item" data-v-2f27edd8><div class="task-item-value task-first" data-v-2f27edd8>25</div><div class="task-item-label" data-v-2f27edd8>待办任务</div></div><div class="task-item" data-v-2f27edd8><div class="task-item-box task1" data-v-2f27edd8><div class="task-item-value" data-v-2f27edd8>12</div><div class="task-item-label" data-v-2f27edd8>施肥</div></div></div><div class="task-item" data-v-2f27edd8><div class="task-item-box task2" data-v-2f27edd8><div class="task-item-value" data-v-2f27edd8>3</div><div class="task-item-label" data-v-2f27edd8>施药</div></div></div><div class="task-item" data-v-2f27edd8><div class="task-item-box task3" data-v-2f27edd8><div class="task-item-value" data-v-2f27edd8>5</div><div class="task-item-label" data-v-2f27edd8>农事</div></div></div></div>',1),wa={class:"progress"},_a={class:"progress-item"},ya=P(()=>a("span",null,"施肥率",-1)),xa={class:"progress-box"},ba={class:"progress-item"},Sa=P(()=>a("span",null,"施药率",-1)),ka={class:"progress-box"},Ca={class:"progress-item"},Ma=P(()=>a("span",null,"农事率",-1)),Ta={class:"progress-box"},Ia={class:"flex-warp-item"},Ea={class:"flex-warp-item-box"},Fa=P(()=>a("div",{class:"flex-title"},[a("span",null,"近7天投入品记录"),a("span",{class:"flex-title-small"},"单位:件")],-1)),Ra={class:"flex-content"},Aa=Ct({name:"chartIndex"}),Oa=Ct({...Aa,setup(c){const s=Ut(()=>Pt(()=>import("./head.3b08aeb1.js"),["assets/head.3b08aeb1.js","assets/vue.60d2ee98.js","assets/formatTime.29ac8c52.js","assets/index.beaea096.js","assets/index.b5b78cd7.css","assets/head.e927ce91.css"])),i=at(),l=at(),t=at(),_=at(),h=at(),n=Dt(),{isTagsViewCurrenFull:k}=Lt(n),y=Bt({skyList:fe,dBtnList:ue,chartData4List:ve,myCharts:[]}),B=()=>{const g=it(i.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{},series:[{type:"wordCloud",sizeRange:[12,40],rotationRange:[0,0],rotationStep:45,gridSize:Math.random()*20+5,shape:"circle",width:"100%",height:"100%",textStyle:{fontFamily:"sans-serif",fontWeight:"bold",color:function(){return`rgb(${[Math.round(Math.random()*160),Math.round(Math.random()*160),Math.round(Math.random()*160)].join(",")})`}},data:[{name:"vue-next-admin",value:520},{name:"lyt",value:520},{name:"next-admin",value:500},{name:"更名",value:420},{name:"智慧农业",value:520},{name:"男神",value:2.64},{name:"好身材",value:4.03},{name:"校草",value:24.95},{name:"酷",value:4.04},{name:"时尚",value:5.27},{name:"阳光活力",value:5.8},{name:"初恋",value:3.09},{name:"英俊潇洒",value:24.71},{name:"霸气",value:6.33},{name:"腼腆",value:2.55},{name:"蠢萌",value:3.88},{name:"青春",value:8.04},{name:"网红",value:5.87},{name:"萌",value:6.97},{name:"认真",value:2.53},{name:"古典",value:2.49},{name:"温柔",value:3.91},{name:"有个性",value:3.25},{name:"可爱",value:9.93},{name:"幽默诙谐",value:3.65}]}]};g.setOption(O),y.myCharts.push(g)},H=()=>{const g=it(l.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["1天","2天","3天","4天","5天","6天","7天"]},yAxis:{type:"value"},series:[{name:"邮件营销",type:"line",stack:"总量",data:[12,32,11,34,90,23,21]},{name:"联盟广告",type:"line",stack:"总量",data:[22,82,91,24,90,30,30]},{name:"视频广告",type:"line",stack:"总量",data:[50,32,18,14,90,30,50]}]};g.setOption(O),y.myCharts.push(g)},C=()=>{const g=it(t.value),O={grid:{top:50,right:20,bottom:30,left:30},tooltip:{trigger:"item"},series:[{name:"面积模式",type:"pie",radius:[20,50],center:["50%","50%"],roseType:"area",itemStyle:{borderRadius:8},data:[{value:40,name:"监测设备预警"},{value:38,name:"天气预警"},{value:32,name:"任务预警"},{value:30,name:"病虫害预警"}]}]};g.setOption(O),y.myCharts.push(g)},M=()=>{const g=it(_.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["02:00","04:00","06:00","08:00","10:00","12:00","14:00"]},yAxis:{type:"value"},series:[{itemStyle:{color:"#289df5",borderColor:"#289df5",areaStyle:{type:"default",opacity:.1}},data:[20,32,31,34,12,13,20],type:"line",areaStyle:{}}]};g.setOption(O),y.myCharts.push(g)},E=()=>{const g=it(h.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",data:["1天","2天","3天","4天","5天","6天","7天"]},yAxis:{type:"value"},series:[{data:[10,20,15,80,70,11,30],type:"bar"}]};g.setOption(O),y.myCharts.push(g)},G=()=>{Zt(()=>{for(let g=0;g<y.myCharts.length;g++)y.myCharts[g].resize()})},F=()=>{window.addEventListener("resize",G)};return Gt(()=>{B(),H(),C(),M(),E(),F()}),Xt(()=>{G()}),Yt(()=>k.value,()=>{G()}),(g,O)=>{const K=St("SvgIcon"),V=St("el-progress");return N(),Z("div",me,[a("div",ge,[a("div",pe,[j(Ht(s))]),a("div",we,[vt(" 左边 "),a("div",_e,[a("div",ye,[a("div",xe,[be,a("div",Se,[a("div",ke,[j(K,{name:"ele-Sunny",class:"sky-left"}),Ce,Me]),a("div",Te,[(N(!0),Z(mt,null,gt(y.skyList,(D,Y)=>(N(),Z("div",{class:jt(["sky-dl",{"sky-dl-first":Y===1}]),key:Y},[a("div",null,U(D.v1),1),D.type==="title"?(N(),Z("div",Ie,U(D.v2),1)):(N(),Z("div",Ee,[j(K,{name:D.v2},null,8,["name"])])),a("div",null,U(D.v3),1),a("div",Fe,U(D.v5),1),a("div",null,U(D.v7),1)],2))),128))])])])]),a("div",Re,[a("div",Ae,[Oe,a("div",ze,[a("div",De,[a("div",Pe,[j(K,{name:"ele-Odometer",class:"i-bg1"}),We]),a("div",Le,[j(K,{name:"ele-FirstAidKit",class:"i-bg2"}),Be]),a("div",Ge,[j(K,{name:"ele-VideoPlay",class:"i-bg3"}),Xe])]),a("div",Ye,[(N(!0),Z(mt,null,gt(y.dBtnList,(D,Y)=>(N(),Z("div",{class:"d-btn-item",key:Y},[He,a("div",Ve,[a("div",null,U(D.v2)+"|"+U(D.v3),1)]),a("div",qe,U(D.v4),1)]))),128))])])])]),a("div",Ne,[a("div",Ze,[je,a("div",Ue,[a("div",{style:{height:"100%"},ref_key:"chartsWarningRef",ref:t},null,512)])])])]),vt(" 中间 "),a("div",Ke,[a("div",$e,[a("div",Je,[a("div",{style:{height:"100%"},ref_key:"chartsCenterOneRef",ref:i},null,512)])]),a("div",Qe,[a("div",ta,[ea,a("div",aa,[a("div",ia,[(N(!0),Z(mt,null,gt(y.chartData4List,(D,Y)=>(N(),Z("div",{class:"monitor-item",key:Y},[a("div",na,[a("div",sa,[a("div",oa,U(D.label),1)])])]))),128))]),a("div",ra,[a("div",{style:{height:"100%"},ref_key:"chartsMonitorRef",ref:_},null,512)])])])])]),vt(" 右边 "),a("div",la,[a("div",da,[a("div",ca,[ha,a("div",fa,[a("div",{style:{height:"100%"},ref_key:"chartsSevenDaysRef",ref:l},null,512)])])]),a("div",ua,[a("div",va,[ma,a("div",ga,[pa,a("div",wa,[a("div",_a,[ya,a("div",xa,[j(V,{percentage:70,color:"#43bdf0"})])]),a("div",ba,[Sa,a("div",ka,[j(V,{percentage:36,color:"#43bdf0"})])]),a("div",Ca,[Ma,a("div",Ta,[j(V,{percentage:91,color:"#43bdf0"})])])])])])]),a("div",Ia,[a("div",Ea,[Fa,a("div",Ra,[a("div",{style:{height:"100%"},ref_key:"chartsInvestmentRef",ref:h},null,512)])])])])])])])}}});const Ba=Wt(Oa,[["__scopeId","data-v-2f27edd8"],["__file","C:/Users/89282/Desktop/xmgl_yjy/project-manager/h5/src/views/chart/index.vue"]]);export{Ba as default};
- //# sourceMappingURL=index.f94ca96a.js.map
|