2 lines
4.7 KiB
JavaScript
2 lines
4.7 KiB
JavaScript
import{x as h,_ as v}from"./index.79566453.js";import{I as x}from"./element-plus.f958bb38.js";import{C as y}from"./vue-echarts.5be4544b.js";import{d as l,$ as f,j as E,a4 as w,o as u,c,a as t,U as r,L as d,T as i,V as A,a7 as g,u as B}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./lodash.ec5da75f.js";import"./axios.eb055ccc.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./@element-plus.196c7323.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./resize-detector.4e96b72b.js";const F={class:"workbench"},C={class:"lg:flex"},O=t("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),b={class:"text-tx-secondary text-xs ml-4"},k={class:"flex flex-wrap"},D={class:"w-1/2 md:w-1/4"},V=t("div",{class:"leading-10"},"\u571F\u5730\u6570",-1),L={class:"text-6xl"},N={class:"text-tx-secondary"},S={class:"w-1/2 md:w-1/4"},j=t("div",{class:"leading-10"},"\u4EA7\u54C1\u6570",-1),z={class:"text-6xl"},I={class:"text-tx-secondary"},M={class:"w-1/2 md:w-1/4"},T=t("div",{class:"leading-10"},"\u8BBE\u5907\u6570",-1),U={class:"text-6xl"},W={class:"text-tx-secondary"},$={class:"w-1/2 md:w-1/4"},q=t("div",{class:"leading-10"},"\u62A5\u8B66\u6570",-1),G={class:"text-6xl"},H={class:"text-tx-secondary"},J={class:"function mb-4"},K=t("span",null,"\u5FEB\u6377\u5165\u53E3",-1),P={class:"flex flex-wrap"},Q={class:"mt-2"},R={class:"md:flex"},X=l({name:"workbench"}),jt=l({...X,setup(Y){const o=f({today:{},menu:[],visitor:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u571F\u5730\u6570","\u4EA7\u54C1\u6570","\u8BBE\u5907\u6570","\u62A5\u8B66\u6570"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u571F\u5730\u6570",data:[0],type:"line",smooth:!0},{name:"\u4EA7\u54C1\u6570",data:[1],type:"line",smooth:!0},{name:"\u8BBE\u5907\u6570",data:[2],type:"line",smooth:!0},{name:"\u62A5\u8B66\u6570",data:[3],type:"line",smooth:!0}]}}),_=()=>{h().then(s=>{o.today=s.today,o.menu=s.menu,o.visitor=s.visitor,o.visitorOption.xAxis.data=[],o.visitorOption.series[0].data=[],o.visitorOption.series[1].data=[],o.visitorOption.series[2].data=[],o.visitorOption.series[3].data=[],s.visitor.date.reverse().forEach(e=>{o.visitorOption.xAxis.data.push(e)}),s.visitor.list[0].data.forEach(e=>{o.visitorOption.series[0].data.push(e)}),s.visitor.list[1].data.forEach(e=>{o.visitorOption.series[1].data.push(e)}),s.visitor.list[2].data.forEach(e=>{o.visitorOption.series[2].data.push(e)}),s.visitor.list[3].data.forEach(e=>{o.visitorOption.series[3].data.push(e)})}).catch(s=>{console.log("err",s)})};return E(()=>{_()}),(s,e)=>{const n=x,p=v,m=w("router-link");return u(),c("div",F,[t("div",C,[r(n,{class:"!border-none mb-4 flex-1",shadow:"never"},{header:d(()=>[t("div",null,[O,t("span",b," \u66F4\u65B0\u65F6\u95F4\uFF1A"+i(o.today.time),1)])]),default:d(()=>[t("div",k,[t("div",D,[V,t("div",L,i(o.today.total_land),1),t("div",N," \u4ECA\u65E5\u65B0\u589E\uFF1A"+i(o.today.today_land),1)]),t("div",S,[j,t("div",z,i(o.today.total_product),1),t("div",I," \u4ECA\u65E5\u65B0\u589E\uFF1A"+i(o.today.today_product),1)]),t("div",M,[T,t("div",U,i(o.today.total_device),1),t("div",W," \u4ECA\u65E5\u65B0\u589E\uFF1A"+i(o.today.today_device),1)]),t("div",$,[q,t("div",G,i(o.today.total_alarm),1),t("div",H," \u4ECA\u65E5\u65B0\u589E\uFF1A"+i(o.today.today_alarm),1)])])]),_:1})]),t("div",J,[r(n,{class:"flex-1 !border-none",shadow:"never"},{header:d(()=>[K]),default:d(()=>[t("div",P,[(u(!0),c(A,null,g(o.menu,a=>(u(),c("div",{class:"md:w-[12.5%] w-1/4 flex flex-col items-center",key:a},[r(m,{to:a.url,class:"mb-3 flex flex-col items-center"},{default:d(()=>[r(p,{width:"40px",height:"40px",src:a==null?void 0:a.image},null,8,["src"]),t("div",Q,i(a.name),1)]),_:2},1032,["to"])]))),128))])]),_:1})]),t("div",R,[r(n,{class:"flex-1 !border-none md:mr-4 mb-4",shadow:"never"},{default:d(()=>[t("div",null,[r(B(y),{style:{height:"350px"},option:o.visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{jt as default};
|