import{_ as M}from"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import{u as R}from"./useModal-CO65vga3.js";import{p as v}from"./group-DxznlajQ.js";import{d as C,V as $,r as i,ay as b,c as n,o as t,l,w as p,cC as j,h as F,a9 as O,F as P}from"./index-9PRMimni.js";import{_ as S,a as T}from"./TimelineItem-Bkds7ZW8.js";const H=C({__name:"timeLine",props:{title:{type:String},logId:{type:Number,default:null}},emits:["change","register"],setup(u,{expose:d,emit:D}){const{t:g}=$(),s=i([]),r=u,f=i(r.title),y=i(r.logId),[k,{openModal:h,closeModal:m,setProps:I}]=R({title:f,logId:y,subBtuText:"Sure",width:450});async function _(){m()}async function x(e){if(!e)return;const o=await v(e,"exerciseProject"),{records:a}=o;s.value=a}return b(()=>r.logId,(e,o)=>{console.log(`logId 从 ${o} 变为 ${e}`),x(e)},{immediate:!1}),d({openModal:h,closeModal:m,okModal:_,setProps:I}),(e,o)=>{const a=j,L=T,w=S;return t(),n(l(M),{onRegister:l(k),ref:"modalRef",onOnOk:_},{default:p(()=>[s.value.length===0?(t(),n(a,{key:0,description:l(g)("drill.manage.noData")},null,8,["description"])):(t(),n(w,{key:1},{default:p(()=>[(t(!0),F(P,null,O(s.value,(c,B)=>(t(),n(L,{key:B,type:"'success'",title:c.operator,content:c.remark,time:c.createTime},null,8,["title","content","time"]))),128))]),_:1}))]),_:1},8,["onRegister"])}}});export{H as _};
