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