import{_ as $}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as v}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{u as z}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{c as L}from"./organization-BLgjdABO.js?v=1773287522785";import{w as R,i as T,ap as B}from"./index-BTglIPU2.js?v=1773287522785";import{k as S,R as U,e as j,m as s,$ as A,Z as D,a0 as p,a9 as c,S as e}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";const E={class:"p-20px"},Q=S({__name:"index",props:{data:{}},setup(d,{expose:_}){const{t:a}=U(),u=d,{id:g}=u.data,r=j({p:1,rows:10}),{keys:f,table:o,columns:b}=v([{key:"name",title:a("Crontab.arrange.index_5"),render:t=>s("span",{},[R(t.start_time)])},{key:"name",title:a("Crontab.arrange.index_6"),render:t=>{const n=t.end_time-t.start_time;return s("span",{},["".concat(n<1?"<1":n).concat(a("Crontab.Planned.index_45"))])}},{key:"name",title:a("Crontab.Planned.index_23"),render:function(t){return s("span",{},[t.status?s("span",{class:"text-[#20a53a]"},a("Crontab.arrange.index_35")):s("span",{class:"text-[#ef0808]"},a("Crontab.arrange.index_36"))])}},{key:"name",title:a("Crontab.arrange.index_20"),width:"50%",render:function(t){return s("pre",{class:"max-h-[14rem]",style:{"white-space":"pre-line"}},[t.status?t.result_succ:t.result_err])}}]),{loading:x,setLoading:l}=z(),y=()=>({...r,trigger_id:g}),i=async()=>{try{l(!0);const{message:t}=await L(y());T(t)&&(o.data=t.data,o.total=B(t.page))}finally{f.value=[],l(!1)}};return i(),_({init:i}),(t,n)=>{const C=P,h=w,k=$;return A(),D("div",E,[p(k,null,{table:c(()=>[p(C,{loading:e(x),"max-height":420,data:e(o).data,columns:e(b)},null,8,["loading","data","columns"])]),pageRight:c(()=>[p(h,{page:e(r).p,"onUpdate:page":n[0]||(n[0]=m=>e(r).p=m),"page-size":e(r).rows,"onUpdate:pageSize":n[1]||(n[1]=m=>e(r).rows=m),"item-count":e(o).total,onRefresh:i},null,8,["page","page-size","item-count"])]),_:1})])}}});export{Q as default};
