import{a8 as S,a9 as q,V as R,W as U,v as B,w as V,b7 as F,G as N,a0 as A}from"./antd-B7v2hwFR.js";import{f as C,r as G,a9 as g,a5 as b,aa as l,k as e,ae as I,u as n,G as r}from"./vue-DApy1uhY.js";const T={__name:"task-form",props:{showSubmit:{type:Boolean,default:!1}},setup(y,{expose:w}){const f=C();async function _(){var p;try{return await((p=f.value)==null?void 0:p.validateFields())}catch(a){console.log("Failed:",a)}}const t=G({name2:null,url2:null,owner2:null,approver2:null,dateRange2:null,type2:null});return w({handleSubmit:_}),(p,a)=>{const i=U,o=R,s=q,m=V,d=B,v=S,c=F,k=N,x=A;return b(),g(x,{ref_key:"formRef",ref:f,model:n(t),onSubmit:_},{default:l(()=>[e(v,{class:"form-row",gutter:16},{default:l(()=>[e(s,{lg:6,md:12,sm:24},{default:l(()=>[e(o,{name:"name2",rules:[{required:!0,message:"请输入任务名称"}],label:"任务名"},{default:l(()=>[e(i,{value:n(t).name2,"onUpdate:value":a[0]||(a[0]=u=>n(t).name2=u),placeholder:"请输入任务名称"},null,8,["value"])]),_:1})]),_:1}),e(s,{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24},{default:l(()=>[e(o,{name:"url2",rules:[{required:!0,message:"请输入任务描述"}],label:"任务描述"},{default:l(()=>[e(i,{value:n(t).url2,"onUpdate:value":a[1]||(a[1]=u=>n(t).url2=u),placeholder:"请输入任务描述"},null,8,["value"])]),_:1})]),_:1}),e(s,{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24},{default:l(()=>[e(o,{name:"owner2",rules:[{required:!0,message:"请选择执行人"}],label:"执行人"},{default:l(()=>[e(d,{value:n(t).owner2,"onUpdate:value":a[2]||(a[2]=u=>n(t).owner2=u),placeholder:"请选择执行人"},{default:l(()=>[e(m,{value:"KirkLin"},{default:l(()=>a[6]||(a[6]=[r(" Kirk Lin ")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1})]),_:1}),e(v,{class:"form-row",gutter:16},{default:l(()=>[e(s,{lg:6,md:12,sm:24},{default:l(()=>[e(o,{name:"approver2",rules:[{required:!0,message:"请选择责任人"}],label:"责任人"},{default:l(()=>[e(d,{value:n(t).approver2,"onUpdate:value":a[3]||(a[3]=u=>n(t).approver2=u),placeholder:"请选择责任人"},{default:l(()=>[e(m,{value:"Aibayanyu"},{default:l(()=>a[7]||(a[7]=[r(" Aibayanyu ")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e(s,{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24},{default:l(()=>[e(o,{name:"dateRange2",rules:[{required:!0,message:"请选择提醒时间"}],label:"提醒时间"},{default:l(()=>[e(c,{value:n(t).dateRange2,"onUpdate:value":a[4]||(a[4]=u=>n(t).dateRange2=u),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),e(s,{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24},{default:l(()=>[e(o,{name:"type2",rules:[{required:!0,message:"请选择任务类型"}],label:"任务类型"},{default:l(()=>[e(d,{value:n(t).type2,"onUpdate:value":a[5]||(a[5]=u=>n(t).type2=u),placeholder:"请选择任务类型"},{default:l(()=>[e(m,{value:"定时执行"},{default:l(()=>a[8]||(a[8]=[r(" 定时执行 ")])),_:1}),e(m,{value:"周期执行"},{default:l(()=>a[9]||(a[9]=[r(" 周期执行 ")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1})]),_:1}),y.showSubmit?(b(),g(o,{key:0},{default:l(()=>[e(k,{"html-type":"submit"},{default:l(()=>a[10]||(a[10]=[r(" Submit ")])),_:1})]),_:1})):I("",!0)]),_:1},8,["model"])}}};export{T as default};
