import{a as _,r as d,w as C,e as g,ea as h,o as R,c as T,v as p,x as s,p as r,q as o,n as e,s as w,D as A}from"./index.8d733f79.js";import{E as I,a as N}from"./el-tab-pane.27bff4fc.js";import f from"./pending.f63f5dfa.js";import{u as b}from"./searchStore.0c98fb50.js";import"./el-date-picker-panel.089dbe6d.js";import"./panel-time-pick.b2dd8e75.js";import"./index.28f6da25.js";import"./deviceType.30ac56e5.js";import"./alarmDetailDialog.759ad7cb.js";import"./alarmDeal.f22d0f9a.js";import"./el-progress.ee3fa77d.js";import"./faultType.8bb3732b.js";import"./closeAlarm.25760a56.js";import"./toObserve.0c91713e.js";import"./closeDefect.64a12e94.js";import"./addInCaseDialog.249bc7e6.js";import"./deviceTree.170dfbd9.js";import"./v4.442de5a8.js";import"./msgInhibition.2ba2767e.js";import"./absAlarm.7709bb44.js";import"./el-input-number.60463ef8.js";import"./chartTrend.c3888dfe.js";import"./deviceAnalysis.ce7ce4e7.js";import"./setValue.1d09ba51.js";import"./changeRateAlarm.91e44f77.js";import"./chartChangeRateOrTrend.099c4326.js";import"./trendAlarm.b40e952e.js";import"./divideBandAlarm.2ff8880c.js";import"./spectrumChart.b3e35fb1.js";const V={class:"page-content"},z={class:"page-title"},ue={__name:"index",setup(B){const{proxy:c}=A(),n=_(),l=d("raw"),t=d(null);b().aiAlarmTab&&(l.value=b().aiAlarmTab),n.query.status&&(l.value=n.query.status);const m=d({deviceName:n.query.deviceName||"",factoryId:n.query.factoryId?Number(n.query.factoryId):""});C(()=>l.value,a=>{b().setAiAlarmTab(a)}),g(()=>{u(),c.$refs[`${l.value}Ref`].initTable()});const v=a=>{setTimeout(()=>{c.$refs[`${a}Ref`].initTable(a),u()},100)},u=()=>{h().then(a=>{t.value=a.data})};return(a,y)=>{const i=I,$=N;return R(),T("div",V,[p("div",z,s(a.$t("handleAlarm")),1),r($,{class:"noBorderTabs",modelValue:e(l),"onUpdate:modelValue":y[0]||(y[0]=q=>w(l)?l.value=q:null),type:"card",onTabChange:v},{default:o(()=>[r(i,{label:a.$t("toHandle"),name:"raw",lazy:""},{label:o(()=>[p("span",null,s(a.$t("toHandle"))+s(e(t)?`(${e(t).rawUnreadCount}/${e(t).rawCount})`:""),1)]),default:o(()=>[r(e(f),{ref:"rawRef",status:"raw",query:e(m),onOnRefresh:u},null,8,["query"])]),_:1},8,["label"]),r(i,{label:a.$t("observeIng"),name:"observe",lazy:""},{label:o(()=>[p("span",null,s(a.$t("observeIng"))+s(e(t)?`(${e(t).observeUnreadCount}/${e(t).observeCount})`:""),1)]),default:o(()=>[r(e(f),{ref:"observeRef",status:"observe",query:e(m),onOnRefresh:u},null,8,["query"])]),_:1},8,["label"]),r(i,{label:a.$t("toFault"),name:"fault",lazy:""},{label:o(()=>[p("span",null,s(a.$t("toFault"))+s(e(t)?`(${e(t).faultUnreadCount}/${e(t).faultCount})`:""),1)]),default:o(()=>[r(e(f),{ref:"faultRef",status:"fault",query:e(m),onOnRefresh:u},null,8,["query"])]),_:1},8,["label"]),r(i,{label:a.$t("closed"),name:"closed",lazy:""},{default:o(()=>[r(e(f),{ref:"closedRef",query:e(m),status:"closed"},null,8,["query"])]),_:1},8,["label"])]),_:1},8,["modelValue"])])}}};export{ue as default};
