import{_ as V,d as B,ap as h,c as i,e as d,f as _,J as g,h as w,g as e,n as I,i as t,Y as O,t as k,F as D,I as S,j as n,k as p,u as E}from"./index.2939355b.js";const L={key:0},T={class:"node flex flex-col justify-center items-center"},U=["onClick"],J={class:"tit"},M={class:"content"},R={key:1,class:"text-info"},z={class:"flex flex-col"},K=B({name:"childFlow"}),Y=Object.assign(K,{props:{nodeData:Array},setup(s){const b=h("showApprovalDialog"),y=h("addNode"),N=h("removeNode"),f=c=>{y(c)},x=(c,u,r,v)=>{N(c,u,r,v)},F=({key:c,type:u,item:r})=>{b({key:c,type:u,item:r})};return(c,u)=>{const r=i("svg-icon"),v=i("el-tag"),$=i("Plus"),j=i("el-icon"),m=i("el-button"),A=i("el-popover");return d(!0),_(D,null,g(s.nodeData,(o,l)=>{var C;return d(),_("div",{key:l,class:"childFlow"},[w("    \u5BA1\u6279\u8282\u70B9"),o.branchs?w("v-if",!0):(d(),_("div",L,[e("div",T,[e("div",{class:I(`box box_${o.type} px-24 py-16 bg-white rounded-4`),onClick:a=>F({key:l,type:o.type,item:s.nodeData})},[t(r,{name:"delIcon","svg-class":"delIcon",onClick:O(a=>x(l,s.nodeData),["stop"])},null,8,["onClick"]),e("p",J,k(o.name),1),e("div",M,[o.props&&((C=o.props.assignedUser)==null?void 0:C.length)?(d(!0),_(D,{key:0},g(o.props.assignedUser,(a,P)=>(d(),S(v,{key:P,type:"info",class:"mr-4"},{default:n(()=>[p(k(a.name),1)]),_:2},1024))),128)):(d(),_("span",R,k(o.placeholder||"\u8BF7\u9009\u62E9"),1))])],10,U),t(A,{placement:"right",width:100,trigger:"hover"},{reference:n(()=>[t(j,{class:"add_icon mt-20 mb-20 cursor-pointer"},{default:n(()=>[t($)]),_:1})]),default:n(()=>[e("div",z,[e("p",null,[t(m,{class:"mb-8 w-full",onClick:a=>f({key:l,type:"APPROVAL",item:s.nodeData})},{default:n(()=>[p(" \u5BA1\u6279\u4EBA ")]),_:2},1032,["onClick"])]),e("p",null,[t(m,{class:"ml-1 mb-8 w-full",onClick:a=>f({key:l,type:"SEAL",item:s.nodeData})},{default:n(()=>[p(" \u76D6\u7AE0\u4EBA ")]),_:2},1032,["onClick"])]),e("p",null,[t(m,{class:"ml-1 mb-8 w-full",onClick:a=>f({key:l,type:"CC",item:s.nodeData})},{default:n(()=>[p(" \u6284\u9001\u4EBA ")]),_:2},1032,["onClick"])]),e("p",null,[t(m,{class:"mb-8 w-full",onClick:a=>E(y)({key:l,type:"CONSTRCTION",item:s.nodeData})},{default:n(()=>[p(" \u5EFA\u8BBE\u5BA1\u6279\u4EBA ")]),_:2},1032,["onClick"])])])]),_:2},1024)])]))])}),128)}}}),G=V(Y,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/unitSet/flowPathConfiguration/configEdit/components/childFlow.vue"]]);export{G as default};
