import{_ as H,r as N}from"./existing-jJhe6AQJ.js";import{_ as T,r as p,d as n,o as y,l as b,f as t,e,h as w,z as V,p as s,n as A,H as U,s as q,t as F,m as c}from"./index-TnLvmlMR.js";const _=r=>(q("data-v-4d476186"),r=r(),F(),r),J=_(()=>c("div",null,null,-1)),K=_(()=>c("div",null,null,-1)),L=_(()=>c("div",null,null,-1)),M=_(()=>c("br",null,null,-1)),O=_(()=>c("br",null,null,-1)),P=_(()=>c("br",null,null,-1)),Q=_(()=>c("br",null,null,-1)),W={__name:"index",setup(r){const m=p([]),i=p([]),x=p([]),f=p(""),D=()=>{i.value.push(m.value)},I=()=>{x.value.push(m.value)},R=()=>{N(i.value).then(a=>{console.log(a)})},S=a=>{N(new Array(i.value[a])).then(u=>{console.log(u)})},h=function(a){i.value.splice(a,1)},z=a=>{console.log("data:",a),m.value=a};return(a,u)=>{const g=n("el-col"),k=n("ArrowRight"),C=n("el-icon"),o=n("el-button"),B=n("el-space"),d=n("el-table-column"),$=n("el-table"),j=n("el-text"),E=n("el-time-select"),G=n("el-row");return y(),b(G,{gutter:50,justify:"space-evenly"},{default:t(()=>[e(g,{span:8},{default:t(()=>[e(H,{onGetExistingData:z})]),_:1}),e(g,{span:2},{default:t(()=>[e(B,{fill:!0,size:65,direction:"vertical"},{default:t(()=>[J,e(o,{type:"primary",onClick:D},{default:t(()=>[e(C,{class:"el-icon--right"},{default:t(()=>[e(k)]),_:1})]),_:1}),K,L,e(o,{type:"primary",onClick:I},{default:t(()=>[e(C,{class:"el-icon--right"},{default:t(()=>[e(k)]),_:1})]),_:1})]),_:1})]),_:1}),e(g,{span:12},{default:t(()=>[e($,{data:w(i)},{default:t(()=>[e(d,{type:"index",width:"30"}),e(d,{label:"脚本列表"},{default:t(l=>[l.row.scriptName!==""?(y(),b(o,{key:0,type:"warning",round:""},{default:t(()=>[s(V(l.row.scriptName),1)]),_:2},1024)):A("",!0)]),_:1}),e(d,{align:"right"},{default:t(l=>[e(o,{type:"primary",onClick:v=>S(l.$index)},{default:t(()=>[s("运行")]),_:2},1032,["onClick"]),e(o,{type:"danger",onClick:v=>h(l.$index)},{default:t(()=>[s("删除 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(o,{class:"run-all-script",type:"primary",onClick:R},{default:t(()=>[s("运行所有脚本")]),_:1}),M,O,P,Q,e(j,{class:"mx-1",size:"large",tag:"b"},{default:t(()=>[s("每天运行一次")]),_:1}),e($,{data:w(x)},{default:t(()=>[e(d,{label:"时间",width:"300"},{default:t(()=>[e(E,{modelValue:w(f),"onUpdate:modelValue":u[0]||(u[0]=l=>U(f)?f.value=l:null),start:"00:05",step:"00:05",end:"23:55",placeholder:"选择时间"},null,8,["modelValue"])]),_:1}),e(d,{label:"脚本名称"},{default:t(l=>[l.row.scriptName!==""?(y(),b(o,{key:0,type:"warning",round:""},{default:t(()=>[s(V(l.row.scriptName),1)]),_:2},1024)):A("",!0)]),_:1}),e(d,{align:"right"},{default:t(l=>[e(o,{type:"primary",onClick:v=>h(l.$index)},{default:t(()=>[s("运行")]),_:2},1032,["onClick"]),e(o,{type:"danger",onClick:v=>h(l.$index)},{default:t(()=>[s("取消 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1})}}},Z=T(W,[["__scopeId","data-v-4d476186"]]);export{Z as default};
