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