import{_ as e}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";import{c as t,d as n,h as s}from"./public.js?v=1763625242172";import{c as r}from"./organization.js?v=1763625242172";import{a9 as i,c as o,y as p}from"./page_layout.js?v=1763625242172";import{k as _,P as l,e as m,m as u,R as d,S as c,X as g,a3 as x,V as y}from"./vue.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const f={class:"p-20px"},j=_({__name:"index",props:{data:{}},setup(_,{expose:j}){const{t:b}=l(),v=_,{id:h}=v.data,C=m({p:1,rows:10}),{keys:k,table:w,columns:z}=t([{key:"name",title:b("Crontab.arrange.index_5"),render:e=>u("span",{},[i(e.start_time)])},{key:"name",title:b("Crontab.arrange.index_6"),render:e=>{const a=e.end_time-e.start_time;return u("span",{},["".concat(a<1?"<1":a).concat(b("Crontab.Planned.index_45"))])}},{key:"name",title:b("Crontab.Planned.index_23"),render:function(e){return u("span",{},[e.status?u("span",{class:"text-[#20a53a]"},b("Crontab.arrange.index_35")):u("span",{class:"text-[#ef0808]"},b("Crontab.arrange.index_36"))])}},{key:"name",title:b("Crontab.arrange.index_20"),width:"50%",render:function(e){return u("pre",{class:"max-h-[14rem]",style:{"white-space":"pre-line"}},[e.status?e.result_succ:e.result_err])}}]),{loading:P,setLoading:R}=n(),S=async()=>{try{R(!0);const{message:e}=await r({...C,trigger_id:h});o(e)&&(w.data=e.data,w.total=p(e.page))}finally{k.value=[],R(!1)}};return S(),j({init:S}),(t,n)=>{const r=s,i=a,o=e;return d(),c("div",f,[g(o,null,{table:x((()=>[g(r,{loading:y(P),"max-height":420,data:y(w).data,columns:y(z)},null,8,["loading","data","columns"])])),pageRight:x((()=>[g(i,{page:y(C).p,"onUpdate:page":n[0]||(n[0]=e=>y(C).p=e),"page-size":y(C).rows,"onUpdate:pageSize":n[1]||(n[1]=e=>y(C).rows=e),"item-count":y(w).total,onRefresh:S},null,8,["page","page-size","item-count"])])),_:1})])}}});export{j as default};
