/* empty css                  *//* empty css                 */import{d as y,r as _,c as u,a as l,b as s,w as t,i as $,f as h,E as A,F as I,h as x,a0 as p,o as v,e as D,u as o,S as F,B as m,$ as w,M,aj as S,t as j,H,_ as L}from"./index-hZHbf6Qq.js";const R={class:"create-flow-container"},T={class:"page-header"},U={class:"flow-form"},q={class:"form-item"},z={class:"flow-designer"},G={class:"flow-node start-node"},J={class:"node-content"},K={class:"flow-line"},O={class:"node-header"},P={class:"node-actions"},Q={class:"node-content"},W={class:"flow-line"},X=["onClick"],Y=y({__name:"create",setup(Z){const k=H(),f=_(""),a=_([{approvers:"周杰伦,杨幂,党群行政人事部..."}]),g=()=>{k.back()},C=()=>{if(a.value.length>=5){p.warning("最多可设置5级审批");return}a.value.unshift({approvers:"请选择审批人"})},N=d=>{if(a.value.length>=5){p.warning("最多可设置5级审批");return}a.value.splice(d+1,0,{approvers:"请选择审批人"})},b=d=>{p.info(`编辑第${d+1}级审批人`)},E=d=>{a.value.splice(d,1)};return(d,e)=>{const n=A,B=$,V=h;return v(),u("div",R,[l("div",T,[s(B,{type:"primary",link:"",onClick:g},{default:t(()=>[s(n,null,{default:t(()=>[s(o(F))]),_:1}),e[1]||(e[1]=D("返回",-1))]),_:1}),e[2]||(e[2]=l("span",{class:"page-title"},"新建审批",-1))]),e[12]||(e[12]=l("div",{class:"flow-tip"},[l("i",{class:"title-bar"}),l("span",null,"最多可设置5级审批")],-1)),l("div",U,[l("div",q,[e[3]||(e[3]=l("label",null,"流程名称",-1)),s(V,{modelValue:f.value,"onUpdate:modelValue":e[0]||(e[0]=r=>f.value=r),placeholder:"请输入",style:{width:"100%"}},null,8,["modelValue"])])]),l("div",z,[l("div",G,[e[5]||(e[5]=l("div",{class:"node-header"},"流程发起",-1)),l("div",J,[e[4]||(e[4]=l("span",null,"发起人：所有人",-1)),s(n,null,{default:t(()=>[s(o(m))]),_:1})])]),l("div",K,[e[6]||(e[6]=l("div",{class:"line"},null,-1)),l("div",{class:"add-btn",onClick:C},[s(n,null,{default:t(()=>[s(o(w))]),_:1})]),e[7]||(e[7]=l("div",{class:"line"},null,-1))]),(v(!0),u(I,null,x(a.value,(r,i)=>(v(),u("div",{key:i,class:"flow-node approval-node"},[l("div",O,[e[8]||(e[8]=l("span",null,"审批人",-1)),l("div",P,[s(n,{onClick:c=>b(i)},{default:t(()=>[s(o(M))]),_:1},8,["onClick"]),s(n,{onClick:c=>E(i)},{default:t(()=>[s(o(S))]),_:1},8,["onClick"])])]),l("div",Q,[l("span",null,"审批人："+j(r.approvers),1),s(n,null,{default:t(()=>[s(o(m))]),_:1})]),l("div",W,[e[9]||(e[9]=l("div",{class:"line"},null,-1)),l("div",{class:"add-btn",onClick:c=>N(i)},[s(n,null,{default:t(()=>[s(o(w))]),_:1})],8,X),e[10]||(e[10]=l("div",{class:"line"},null,-1))])]))),128)),e[11]||(e[11]=l("div",{class:"flow-node end-node"},[l("div",{class:"node-btn"},"审批结束")],-1))])])}}}),tl=L(Y,[["__scopeId","data-v-7418c619"]]);export{tl as default};
