import{d as l,e as u}from"./home.1703796278973.js";import{h as p}from"./system.1703796278973.js";import{d as v,k as _,o as h,x as g,z as t,u as i,A as d,G as f,H as C}from"./vue.1703796278973.js";import{_ as x}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 D=""+new URL("../images/home/product.png",import.meta.url).href,b=""+new URL("../images/home/top-1.png",import.meta.url).href,e=o=>(f("data-v-8adc8ac9"),o=o(),C(),o),I={class:"device-count-container"},P=e(()=>t("h5",{class:"title"},"设备统计",-1)),S={class:"box-list"},k={class:"box-item"},B=e(()=>t("div",{class:"label"},"产品数量",-1)),w={class:"value"},y=e(()=>t("img",{src:D,alt:""},null,-1)),N={class:"box-item"},j=e(()=>t("div",{class:"label"},"设备数量",-1)),L={class:"value"},R=e(()=>t("img",{src:b,alt:""},null,-1)),U=v({__name:"DeviceCountCard",setup(o){const{jumpPage:m}=p(),a=_(0),c=_(0),r=p().hasPermission;return(()=>{r("device/Product")&&l().then(s=>{c.value=s.result}),r("device/Instance")&&u({}).then(s=>{a.value=s.result})})(),(s,n)=>(h(),g("div",I,[P,t("span",{class:"detail",onClick:n[0]||(n[0]=A=>i(m)("device/DashBoard"))}," 详情 "),t("div",S,[t("div",k,[B,t("div",w,d(i(a)),1),y]),t("div",N,[j,t("div",L,d(i(c)),1),R])])]))}});const st=x(U,[["__scopeId","data-v-8adc8ac9"]]);export{st as default};
