import{a5 as u,r as p,w as _,o as f,c as d,v as b,x as g,p as t,q as s,n as o,s as v,D as y}from"./index.8d733f79.js";import{E as A,a as T}from"./el-tab-pane.27bff4fc.js";import $ from"./sensor.94934dc8.js";import V from"./collector.2a1626e7.js";import{u as l}from"./searchStore.0c98fb50.js";import"./el-date-picker-panel.089dbe6d.js";import"./panel-time-pick.b2dd8e75.js";import"./index.28f6da25.js";const h={class:"page-content"},w={class:"page-title"},B=u({name:"autoDiagnosis"}),j=Object.assign(B,{setup(D){const{proxy:m}=y(),a=p(m.$route.query.activeTab||"sensor");return l().autoAlarmTab&&(a.value=l().autoAlarmTab),_(()=>a.value,e=>{l().setAutoAlarmTab(e)}),(e,r)=>{const n=A,c=T;return f(),d("div",h,[b("div",w,g(e.$t("selfDiagnosisAlarm")),1),t(c,{class:"noBorderTabs",modelValue:o(a),"onUpdate:modelValue":r[0]||(r[0]=i=>v(a)?a.value=i:null),type:"card"},{default:s(()=>[t(n,{label:e.$t("sensorAlarm"),name:"sensor",lazy:""},{default:s(()=>[t(o($),{status:"sensor"})]),_:1},8,["label"]),t(n,{label:e.$t("gatewayAlarm"),name:"collector",lazy:""},{default:s(()=>[t(o(V),{status:"collector"})]),_:1},8,["label"])]),_:1},8,["modelValue"])])}}});export{j as default};
