import{b as w,u as D,a as E,r as y,bM as r,$ as A,o as l,c as V,v as C,p as o,q as s,x,n as i,y as p,t as u,s as M,D as P,S as L,ak as S}from"./index.8d733f79.js";import{E as N,a as z}from"./el-tab-pane.27bff4fc.js";import U from"./faultInfo.25d0377b.js";import d from"./period.45e2056e.js";import"./el-progress.ee3fa77d.js";import"./el-autocomplete.9376268e.js";import"./diagnosticReport.fd129147.js";import"./faultType.8bb3732b.js";import"./deviceTree.170dfbd9.js";import"./searchStore.0c98fb50.js";import"./tabContent.1b1bf0e8.js";import"./trendAnalysis.ca75b1b0.js";import"./snapshot.c42a7ddb.js";import"./exporting.83037eec.js";import"./annotations.d7724f2a.js";import"./xlsx.030dfc28.js";import"./deviceAnalysis.ce7ce4e7.js";import"./common.d6f7c05a.js";import"./timePicker.140359bf.js";import"./el-date-picker-panel.089dbe6d.js";import"./panel-time-pick.b2dd8e75.js";import"./index.28f6da25.js";import"./trendWaveSpectrum.aa3ebf01.js";import"./boost.ce41cdde.js";import"./addMarker.dcd7eb99.js";import"./peakSpectralLine.0c14ecfb.js";import"./domainIndicator.0f0d3f21.js";import"./setFreqNum.0945eb14.js";import"./el-input-number.60463ef8.js";import"./faultLib.09636fba.js";import"./bearingLib.05230f01.js";import"./filterWave.e3fbfb2d.js";import"./envelopeAnalysis.03f59002.js";import"./envelopeDemodulate.a1c94995.js";import"./waterfallPlot.5a844b96.js";import"./domainMultiTrend.c4a59f6f.js";import"./orderAnalysis.aac19ad2.js";import"./crossPhase.759c6bec.js";import"./cepstrum.0505dec6.js";import"./multiWaveform.77669c37.js";import"./multiSpectrum.d94d22f6.js";import"./trendWaveSpectrumAudio.c837a0fe.js";import"./deviceInfo.e4629621.js";const j={class:"subPage-content addCase_container"},F={class:"nav",style:{padding:"10px 0 10px 16px"}},xe={__name:"addCase",setup(G){var _,b;const{t:n}=w(),{proxy:f}=P(),R=D(),a=E(),t=y(),h=y((_=a.query)!=null&&_.id?((b=a.query)==null?void 0:b.type)==="view"?n("view"):n("edit"):n("add"));a.query.caseActiveName?(t.value=a.query.caseActiveName,setTimeout(()=>{f.$refs[`${t.value}Ref`].showModal(t.value)},10)):t.value="info",r().setCaseActiveTab(t.value),a.query.id?r().setCaseId(a.query.id):r().setCaseId("");const k=()=>{R.push("/knowledgeBase/faultLib")},$=e=>e!=="info"&&!r().caseId?(L.error(n("saveCase")),!1):!0,g=e=>{e!=="info"&&setTimeout(()=>{f.$refs[`${e}Ref`].showModal(e)},10),r().setCaseActiveTab(e),document.getElementById(`tab-${t.value}`).blur(),r().clearAtlasCheckListDel()},c=e=>{setTimeout(()=>{f.$refs[`${e}Ref`].showModal(e)},0)};return(e,v)=>{const B=A("Back"),I=S,m=N,T=z;return l(),V("div",j,[C("div",F,[o(I,{color:"#0052D9",size:"24",onClick:k,style:{cursor:"pointer"}},{default:s(()=>[o(B)]),_:1}),C("span",null,x(i(h)),1)]),o(T,{class:"f-h",modelValue:i(t),"onUpdate:modelValue":v[0]||(v[0]=q=>M(t)?t.value=q:null),"tab-position":"left","before-leave":$,onTabChange:g},{default:s(()=>[o(m,{label:e.$t("faultCaseInfo"),name:"info"},{default:s(()=>[i(t)==="info"?(l(),p(U,{key:0,ref:"infoRef"},null,512)):u("",!0)]),_:1},8,["label"]),o(m,{label:e.$t("normalData"),name:"normal"},{default:s(()=>[i(t)==="normal"?(l(),p(d,{key:0,ref:"normalRef",onRefresh:c},null,512)):u("",!0)]),_:1},8,["label"]),o(m,{label:e.$t("faultData"),name:"fault"},{default:s(()=>[i(t)==="fault"?(l(),p(d,{key:0,ref:"faultRef",onRefresh:c},null,512)):u("",!0)]),_:1},8,["label"]),o(m,{label:e.$t("repairData"),name:"afterRepair"},{default:s(()=>[i(t)==="afterRepair"?(l(),p(d,{key:0,ref:"afterRepairRef",onRefresh:c},null,512)):u("",!0)]),_:1},8,["label"])]),_:1},8,["modelValue"])])}}};export{xe as default};
