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