25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
2.2KB

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