suyuan/public/admin/assets/index.8f4865c8.js

2 lines
4.7 KiB
JavaScript

import{x as h,_ as x}from"./index.eba5ee3f.js";import{I as v}from"./element-plus.5df6f736.js";import{C as y}from"./vue-echarts.7d14c1c5.js";import{d as l,_ as f,i as E,a3 as w,o as c,c as u,a as t,T as i,K as n,S as e,U as A,a6 as g,u as B}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./lodash.33f675f2.js";import"./axios.c2a2014a.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./@element-plus.d6eabd08.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.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"},S=t("div",{class:"leading-10"},"\u571F\u5730\u6570",-1),N={class:"text-6xl"},V={class:"text-tx-secondary"},z={class:"w-1/2 md:w-1/4"},I=t("div",{class:"leading-10"},"\u4EA7\u54C1\u6570",-1),K={class:"text-6xl"},L={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"},j={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"},P=t("span",null,"\u5FEB\u6377\u5165\u53E3",-1),Q={class:"flex flex-wrap"},R={class:"mt-2"},X={class:"md:flex"},Y=l({name:"workbench"}),It=l({...Y,setup(Z){const a=f({today:{},menu:[],chart_data:[],dataOption:{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(o=>{a.today=o.today,a.menu=o.menu,a.chart_data=o.chart_data,a.dataOption.xAxis.data=[],a.dataOption.series[0].data=[],a.dataOption.series[1].data=[],a.dataOption.series[2].data=[],a.dataOption.series[3].data=[],o.chart_data.date.reverse().forEach(s=>{a.dataOption.xAxis.data.push(s)}),o.chart_data.list[0].data.forEach(s=>{a.dataOption.series[0].data.push(s)}),o.chart_data.list[1].data.forEach(s=>{a.dataOption.series[1].data.push(s)}),o.chart_data.list[2].data.forEach(s=>{a.dataOption.series[2].data.push(s)}),o.chart_data.list[3].data.forEach(s=>{a.dataOption.series[3].data.push(s)})}).catch(o=>{console.log("err",o)})};return E(()=>{_()}),(o,s)=>{const r=v,p=x,m=w("router-link");return c(),u("div",F,[t("div",C,[i(r,{class:"!border-none mb-4 flex-1",shadow:"never"},{header:n(()=>[t("div",null,[O,t("span",b," \u66F4\u65B0\u65F6\u95F4\uFF1A"+e(a.today.time),1)])]),default:n(()=>[t("div",k,[t("div",D,[S,t("div",N,e(a.today.total_land),1),t("div",V," \u4ECA\u65E5\u65B0\u589E\uFF1A"+e(a.today.today_land),1)]),t("div",z,[I,t("div",K,e(a.today.total_product),1),t("div",L," \u4ECA\u65E5\u65B0\u589E\uFF1A"+e(a.today.today_product),1)]),t("div",M,[T,t("div",U,e(a.today.total_device),1),t("div",W," \u4ECA\u65E5\u65B0\u589E\uFF1A"+e(a.today.today_device),1)]),t("div",j,[q,t("div",G,e(a.today.total_alarm),1),t("div",H," \u4ECA\u65E5\u65B0\u589E\uFF1A"+e(a.today.today_alarm),1)])])]),_:1})]),t("div",J,[i(r,{class:"flex-1 !border-none",shadow:"never"},{header:n(()=>[P]),default:n(()=>[t("div",Q,[(c(!0),u(A,null,g(a.menu,d=>(c(),u("div",{class:"md:w-[12.5%] w-1/4 flex flex-col items-center",key:d},[i(m,{to:d.url,class:"mb-3 flex flex-col items-center"},{default:n(()=>[i(p,{width:"40px",height:"40px",src:d==null?void 0:d.image},null,8,["src"]),t("div",R,e(d.name),1)]),_:2},1032,["to"])]))),128))])]),_:1})]),t("div",X,[i(r,{class:"flex-1 !border-none md:mr-4 mb-4",shadow:"never"},{default:n(()=>[t("div",null,[i(B(y),{style:{height:"350px"},option:a.dataOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{It as default};