2024-02-03 17:46:05 +08:00
|
|
|
import{x as h,_ as x}from"./index.fccb4ef5.js";import{J as v}from"./element-plus.ae8e286c.js";import{C as y}from"./vue-echarts.7d14c1c5.js";import{d as l,_ as f,i as E,a3 as A,o as c,c as u,a as t,T as i,K as n,S as e,U as w,a6 as g,u as B}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./lodash.e92d81a1.js";import"./axios.4ebfdb3f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.dbf33394.js";import"./color.e1b5fced.js";import"./clone.0a4e8ac3.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.f174a91e.js";import"./ms.a9ae1d6d.js";import"./@element-plus.d6eabd08.js";import"./nprogress.d7c3ab1b.js";import"./vue-clipboard3.add720e2.js";import"./clipboard.01ea18f5.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.664390f6.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"},"\u57FA\u5730\u6570",-1),N={class:"text-6xl"},V={class:"text-tx-secondary"},z={class:"w-1/2 md:w-1/4"},J=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"},I={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"}),Jt=l({...Y,setup(Z){const a=f({today:{},menu:[],chart_data:[],dataOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u57FA\u5730\u6570","\u4EA7\u54C1\u6570","\u8BBE\u5907\u6570","\u62A5\u8B66\u6570"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u57FA\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=A("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,[J,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_a
|