|
|
import{b as H,s as J,F as b,c as Q,g as M,_ as W}from"../../assets/index-FZ48n_d9.js";import{h as X}from"../home-finish/home-finish.DR4cSfoU.1751277099553.js";import{h as Y}from"../home-start/home-start.DkzYmnJr.1751277099553.js";import{S as ee}from"../index/index.DTZj_65S.1751277099553.js";import{i as te}from"../echarts/echarts.CoO2sT-h.1751277099553.js";import{u as Z,g as se}from"../deviceComm/deviceComm.DAoxdyzs.1751277099553.js";import{d as B,r,w as K,S as oe,c as v,o as c,h as ae,i as ie,k as D,ag as V,aq as N,I as P,a as e,P as g,M as L,u as F,G as le,H as C}from"../@vue/@vue.B_jFLcBm.1751277099553.js";import"../element-plus/element-plus.DC0PKXec.1751277099553.js";import"../lodash-es/lodash-es.S0Y0Up6J.1751277099553.js";import"../@vueuse/@vueuse.VzzCFLRY.1751277099553.js";import"../@element-plus/@element-plus.C01e5HIG.1751277099553.js";import"../@popperjs/@popperjs.D_chPuIy.1751277099553.js";import"../@ctrl/@ctrl.r5W6hzzQ.1751277099553.js";import"../dayjs/dayjs.CWsDMI8D.1751277099553.js";import"../async-validator/async-validator.CDKkdPIV.1751277099553.js";import"../memoize-one/memoize-one.BdPwpGay.1751277099553.js";import"../normalize-wheel-es/normalize-wheel-es.BQoi3Ox2.1751277099553.js";import"../@floating-ui/@floating-ui.DwceP2Gb.1751277099553.js";import"../pinia/pinia.Col4Kkvr.1751277099553.js";import"../pinia-plugin-persistedstate/pinia-plugin-persistedstate.BUYkM9Wd.1751277099553.js";import"../destr/destr.Ctyiwlcu.1751277099553.js";import"../deep-pick-omit/deep-pick-omit.CegYQlcN.1751277099553.js";import"../vue-i18n/vue-i18n.DKgOWBxc.1751277099553.js";import"../@intlify/@intlify.Bpjdt8ji.1751277099553.js";import"../nanoid/nanoid.OxPLOBIU.1751277099553.js";import"../lodash/lodash.Cz9E_6Pa.1751277099553.js";import"../vue-router/vue-router.DaQm0NVE.1751277099553.js";import"../zrender/zrender.Ds3-8EPb.1751277099553.js";const re="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%3e%3cg%3e%3cpath%20d='M14.9994,0C6.71476,0,0,6.71573,0,15.0006C0,23.2843,6.71476,30,14.9994,30C23.2852,30,30,23.2836,30,15.0006C30,6.71448,23.2852,0,14.9994,0ZM14.2827,2.84895L16.19,2.84895L16.19,6.59162L14.2827,6.59162L14.2827,2.84895ZM8.57713,9.8497L5.93077,7.20282L7.27921,5.85443L9.92557,8.50131L8.57713,9.8497ZM9.51892,4.22103L11.2441,3.41649L12.8264,6.80741L11.0994,7.6132L9.51892,4.22103ZM15.262,25.9324C13.6035,25.9324,12.2607,24.5878,12.2607,22.9313C12.2607,21.6353,13.0809,20.5364,14.2316,20.1154L14.2316,11.5536L16.137,11.5536L16.137,20.0592C17.3669,20.4328,18.2638,21.5766,18.2638,22.9319C18.2638,24.5878,16.9204,25.9324,15.262,25.9324ZM17.4967,6.80367L19.079,3.4115L20.806,4.21791L19.2256,7.61008L17.4967,6.80367ZM21.6879,9.8497L20.3395,8.50131L22.9859,5.85443L24.3343,7.20282L21.6879,9.8497Z'%20fill='%232892F3'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",ne=B({__name:"DashboardChart",setup(o){const a=Z(),n=r(null),s=r(a.sealInfo.pressure);let i=null;K(()=>{var f;s.value=a.sealInfo.pressure;const m=((f=a.sealInfo)==null?void 0:f.pressure)||0;!i&&n.value&&d(),i&&i.setOption({series:[{data:[{value:m}]}]})});const d=()=>{if(!n.value)return;i=te(n.value);const m={tooltip:{formatter:"{a} <br/>{b} : {c}%"},series:[{name:"Pressure",type:"gauge",max:6,progress:{show:!0,width:5},axisLine:{lineStyle:{width:5}},detail:{valueAnimation:!0,formatter:"{value}Kp"},data:[{value:s.value}]}]};i.setOption(m)};return oe(()=>{i&&(i.dispose(),i=null)}),(m,f)=>(c(),v("div",{ref_key:"chartRef",ref:n,style:{width:"40vw",height:"30vw"}},null,512))}});let x=null,I=0;function ue(o){x||(I=Date.now(),x=setInterval(()=>{o&&o(de())},1e3))}function ce(){x&&(clearInterval(x),x=null)}function de(){if(!I)return"00:00:00";const o=Math.floor((Date.now()-I)/1e3),a=Math.floor(o/3600),n=Math.floor(o%3600/60),s=o%60;return[T(a),T(n),T(s)].join(":")}function T(o){return o<10?`0${o}`:`${o}`}const me={class:"dashboard-container"},pe={class:"main-content"},ve={class:"seal-left"},fe={class:"seal-chart"},he={class:"chart-ml"},_e={class:"seal-opt"
|