25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.2KB

  1. import{al as v,b as i,c as r,d as u,H as h,e as o,n as j,f as n,N as B,t as y,F as b,L,h as s,i as _,u as O,j as P,k as I}from"./index-dd5fae99.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"},H={class:"flex flex-col"},M=I({name:"childFlow"}),G=Object.assign(M,{props:{nodeData:Array},setup(l){const w=v("showApprovalDialog"),C=v("addNode"),N=v("removeNode"),f=d=>{C(d)},D=(d,e,p,k)=>{N(d,e,p,k)},x=({key:d,type:e,item:p})=>{w({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(b,null,h(l.nodeData,(t,a)=>{var g;return r(),u("div",{key:a,class:"childFlow"},[t.branchs?P("",!0):(r(),u("div",S,[o("div",T,[o("div",{class:j(`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:B(c=>D(a,l.nodeData),["stop"])},null,8,["onClick"]),o("p",R,y(t.name),1),o("div",U,[t.props&&((g=t.props.assignedUser)!=null&&g.length)?(r(!0),u(b,{key:0},h(t.props.assignedUser,(c,V)=>(r(),L(k,{key:V,type:"info",class:"mr-4"},{default:s(()=>[_(y(c.name),1)]),_:2},1024))),128)):(r(),u("span",z,y(t.placeholder||"请选择"),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",H,[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]=[_(" 审批人 ")])),_: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]=[_(" 盖章人 ")])),_: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]=[_(" 抄送人 ")])),_:2},1032,["onClick"])]),o("p",null,[n(m,{class:"mb-8 w-full",onClick:c=>O(C)({key:a,type:"CONSTRCTION",item:l.nodeData})},{default:s(()=>e[3]||(e[3]=[_(" 建设审批人 ")])),_:2},1032,["onClick"])])])]),_:2},1024)])]))])}),128)}}});export{G as default};