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