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