import{_ as $}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as L}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{u as P}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{w as z,i as R,ap as S}from"./index-BTglIPU2.js?v=1773287522785";import{g as T}from"./index-BwY1p9YL.js?v=1773287522785";import{k as B,R as U,e as j,m as n,$ as D,Z as E,a0 as m,a9 as l,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";import"./index.vue_vue_type_script_setup_true_lang-HxsqzSKU.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import"./index-BRQskX9P.js?v=1773287522785";import"./useTableColumns-DDeyYvje.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import"./theme-monokai-Bqt0uTuQ.js?v=1773287522785";import"./ace-CNnfDSio.js?v=1773287522785";import"./organization-BLgjdABO.js?v=1773287522785";const I={class:"p-20px"},mt=B({__name:"index",props:{data:{}},setup(d,{expose:_}){const{t:a}=U(),u=d,{id:g}=u.data,o=j({p:1,rows:10}),{keys:f,table:s,columns:b}=L([{key:"name",title:a("Crontab.arrange.index_5"),render:t=>n("span",{},[z(t.start_time)])},{key:"name",title:a("Crontab.arrange.index_6"),render:t=>{const r=t.end_time-t.start_time;return n("span",{},["".concat(r<1?"<1":r).concat(a("Crontab.Planned.index_45"))])}},{key:"name",title:a("Crontab.Planned.index_23"),render:function(t){return n("span",{},[t.status?n("span",{class:"text-[#20a53a]"},a("Crontab.arrange.index_35")):n("span",{class:"text-[#ef0808]"},a("Crontab.arrange.index_36"))])}},{key:"name",title:a("Crontab.arrange.index_20"),width:"50%",render:function(t){return n("pre",{class:"max-h-[14rem]",style:{"white-space":"pre-line",color:"var(--pre-color-text)","background-color":"var(--pre-bg-color)"}},[t.status?t.result_succ:t.result_err])}}]),{loading:x,setLoading:c}=P(),y=()=>({...o,script_id:g}),i=async()=>{try{c(!0);const{message:t}=await T(y());R(t)&&(s.data=t.data,s.total=S(t.page))}finally{f.value=[],c(!1)}};return i(),_({init:i}),(t,r)=>{const k=w,C=v,h=$;return D(),E("div",I,[m(h,null,{table:l(()=>[m(k,{loading:e(x),"max-height":420,data:e(s).data,columns:e(b)},null,8,["loading","data","columns"])]),pageRight:l(()=>[m(C,{page:e(o).p,"onUpdate:page":r[0]||(r[0]=p=>e(o).p=p),"page-size":e(o).rows,"onUpdate:pageSize":r[1]||(r[1]=p=>e(o).rows=p),"item-count":e(s).total,onRefresh:i},null,8,["page","page-size","item-count"])]),_:1})])}}});export{mt as default};
