import{h as m}from"./system.1703796278973.js";import{i as _}from"./index.1703796278973314.js";import{d as r,k as u,m as l,p as h,o as f,x as v,z as s,V as x,G as y,H as b}from"./vue.1703796278973.js";import{_ as g}from"./_plugin-vue_export-helper.1703796278973.js";import"./comm.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const S=e=>(y("data-v-2d7c418c"),e=e(),b(),e),w={class:"device-count"},k=S(()=>s("div",{class:"header"},[s("div",{class:"header-title"},"设备实时运行状态")],-1)),D=r({name:"DeviceRunningStatus"}),R=r({...D,setup(e){const a=u({}),p=m();let t=null;const n=(o=[],c=[])=>{const i=a.value;if(i){t=_(i);const d={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["Forest","Steppe","Desert","Wetland"]},grid:{top:"10%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},xAxis:[{type:"category",axisTick:{show:!1},data:["2012","2013","2014","2015","2016"]}],yAxis:[{type:"value"}],series:[{name:"Forest",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[320,332,301,334,390]},{name:"Steppe",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[220,182,191,234,290]},{name:"Desert",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[150,232,201,154,190]}]};x(()=>{t.setOption(d),window.addEventListener("resize",function(){t.resize()})})}};return l(()=>p.collapsed,o=>{setTimeout(()=>{t.resize()},300)}),h(()=>{n()}),(o,c)=>(f(),v("div",w,[k,s("div",{ref_key:"chartRef",ref:a,style:{width:"100%","min-height":"300px"}},null,512)]))}});const J=g(R,[["__scopeId","data-v-2d7c418c"]]);export{J as default};
