import{aj as a,an as e,x as t,j as s,_ as l}from"./utils-lib.js?v=1761009159";import{c as o,g as r,v as i,x as m,e as n,y as c,z as d,B as p,C as u,A as b,D as f,Q as _,bO as j,bN as x,G as v}from"./base-lib.js?v=1761009159";import{d as y,g,b as k,a as h,s as z}from"./index8.js?v=1761009159";import{d as w}from"./useMethod2.js?v=1761009159";import A from"./index117.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index105.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./config.js?v=1761009159";import"./useMethod3.js?v=1761009159";import"./validator.js?v=1761009159";import"./site.js?v=1761009159";import"./index119.js?v=1761009159";import"./form-item.js?v=1761009159";const H={class:"p-2rem"},T={class:"p-1.2rem pt-0"},B={class:"flex flex-col leading-[22px]"},C={class:"max-w-[58rem] truncate inline-block"},S=["title"],V={key:0},D={class:"w-full flex justify-end mt-[1.2rem]"},M=l(o({__name:"detail-back",setup(l){const o=r(()=>"restore"===y.value?"还原":"备份"),M=()=>{w.value={operateType:"detail",...w.value},z.value=!0},N=[{label:"备份详情",name:"backup",lazy:!0},{label:"还原详情",name:"restore",lazy:!0}],q=[{type:"index"},{label:"失败项",prop:"name"},{label:"失败原因",prop:"msg",width:320,render:a=>n("span",{class:"text-[".concat(a.task_status?"var(--el-color-primary)":"#ef0808","]")},[a.task_status?"成功":a.msg])}],{BtTabs:G}=a({type:"card",value:y,options:0!==w.value.restore_status?N:N.filter(a=>"restore"!==a.name)}),{BtTable:I,config:O,refresh:Q}=e({request:g,columns:q}),U=a=>{y.value=a,Q()};return(a,e)=>{const l=j,r=x,y=v,g=s;return i(),m("div",H,[n(c(G),{onTabChange:U}),d("div",T,[d("div",B,[n(r,{title:!1,column:1,size:"small",border:"",class:"table-descriptions"},{default:p(()=>[n(l,{label:"".concat(c(o),"时间：")},{default:p(()=>[u(b(c(k).backup_time),1)]),_:1},8,["label"]),n(l,{label:"".concat(c(o),"大小：")},{default:p(()=>[u(b(c(t)(Number(c(k).size))||"--"),1)]),_:1},8,["label"]),n(l,{label:"".concat(c(o),"存储位置：")},{default:p(()=>[d("span",C,b(c(k).path||"--"),1)]),_:1},8,["label"]),n(l,{label:"SHA-256："},{default:p(()=>[d("span",{class:"max-w-[58rem] truncate inline-block",title:c(w)["SHA-256"]},b(c(k)["SHA-256"]||"--"),9,S)]),_:1}),n(l,{label:"".concat(c(o),"耗时：")},{default:p(()=>[u(b("".concat(c(k).time_count?"".concat(c(k).time_count,"s"):"")||"--"),1)]),_:1},8,["label"])]),_:1})]),0!=c(O).total?(i(),m("div",V,[e[1]||(e[1]=d("p",{class:"font-bold text-dangerDark my-1.2rem"},"失败详情",-1)),n(c(I),{"max-height":360})])):f("",!0),d("div",D,[n(y,{type:"primary",onClick:M},{default:p(()=>e[2]||(e[2]=[u("查看全部详情 ",-1)])),_:1,__:[2]})]),n(g,{title:"详情信息",area:74,modelValue:c(z),"onUpdate:modelValue":e[0]||(e[0]=a=>_(z)?z.value=a:null)},{default:p(()=>[n(A,{data:c(h)},null,8,["data"])]),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-889f1449"]]);export{M as default};
