dflow-designer 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designer.style.css +1 -1
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(i,Jn){typeof exports=="object"&&typeof module<"u"?module.exports=Jn(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Jn):(i=typeof globalThis<"u"?globalThis:i||self,i.FlowDesign=Jn(i.Vue))})(this,function(i){"use strict";var nNe=Object.defineProperty;var rNe=(i,Jn,ei)=>Jn in i?nNe(i,Jn,{enumerable:!0,configurable:!0,writable:!0,value:ei}):i[Jn]=ei;var Rh=(i,Jn,ei)=>rNe(i,typeof Jn!="symbol"?Jn+"":Jn,ei);const Jn="router",ei="condition",BU="branch",OU="start",AU="approver",Mh="notify",VU="button",FU="table",TU="edit",PU="add",jU="del",IU="search",LU="odd",RU="system",MU="wechat",zU="ding",UU="email",HU="flow",WU="api",qU="time",GU="ui",KU="summary",Jr={defaultNode:{nodeId:"1000",nodeName:"系统",nodeType:"setting",config:{fields:[{type:"User",columnName:"loginUser",columnComment:"触发者"},{type:"Date",columnName:"currentDate",columnComment:"当前日期"},{type:"Date",columnName:"currentTime",columnComment:"当前时间"},{type:"Text",columnName:"sourceId",columnComment:"数据源id"},{type:"Text",columnName:"instanceId",columnComment:"执行实例id"},{type:"Number",columnName:"timestampSeconds",columnComment:"当前UNIX时间戳(秒)"},{type:"Number",columnName:"timestampMilliseconds",columnComment:"当前UNIX时间戳(毫秒)"}]},childNode:null}},$e={};$e[OU]={title:"发起审批",color:"#FFFFFF",bgColor:"#1e83e9",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"start",color:"#1e83e9"},defaultNode:{nodeName:"发起审批",nodeType:"start",config:{selectNodeId:"",selectNodeName:""},childNode:null}},$e[VU]={title:"按钮事件",color:"#FFFFFF",bgColor:"#1e83e9",canAdd:!1,canRemoved:!1,hasDrawer:!0,icon:{name:"button",color:"#1e83e9"},defaultNode:{nodeName:"按钮触发",nodeType:"button",config:{},childNode:null}},$e[FU]={title:"工作表事件",color:"#FFFFFF",bgColor:"#ffa340",canAdd:!1,canRemoved:!1,hasDrawer:!0,icon:{name:"table",color:"#ffa340"},defaultNode:{nodeName:"工作表事件触发",nodeType:"table",config:{filter:[],type:"add"},childNode:null}},$e[Jn]={title:"条件分支",canAdd:!0,hasDrawer:!1,icon:{name:"router",color:"#3CB371"},defaultNode:{nodeName:"路由",nodeType:"router",config:{},childNode:null,conditionNodes:[{nodeName:"条件",nodeType:"condition",isLastCondition:!1,config:{filter:[],fields:[],workId:"",workName:""},childNode:null},{nodeName:"条件",nodeType:"condition",isLastCondition:!0,config:{filter:[],fields:[],workId:"",workName:""},childNode:null}]}},$e[ei]={title:"条件",color:"#FFFFFF",bgColor:"#3CB371",canAdd:!1,canRemoved:!0,hasDrawer:!0,icon:{name:"condition",color:"#3CB371"},defaultNode:{nodeName:"条件",nodeType:"condition",isLastCondition:!1,config:{filter:[],fields:[],workId:"",workName:""},childNode:{}}},$e[BU]={title:"判断条件分支",canAdd:!0,hasDrawer:!1,icon:{name:"error",color:"#2c2c2c"},defaultNode:{nodeName:"路由",nodeType:"router",isBanch:!0,config:{},childNode:null,conditionNodes:[{nodeName:"有数据",nodeType:"condition",isLastCondition:!1,config:{isBanch:!0,isData:!0},childNode:null},{nodeName:"无数据",nodeType:"condition",isLastCondition:!0,config:{isBanch:!0,isData:!1},childNode:null}]}},$e[AU]={title:"审核人",color:"#FFFFFF",bgColor:"#FF8C00",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"approver",color:"#FF8C00"},defaultNode:{nodeName:"审批人",nodeType:"approver",config:{permissions:[]},childNode:null}},$e[Mh]={title:"抄送人",color:"#FFFFFF",bgColor:"#808000",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"notify",color:"#808000"},defaultNode:{nodeName:"抄送人",nodeType:"notify",config:{permissions:[],selectNodeId:"",selectNodeName:""},childNode:null}},$e[PU]={title:"新增记录",color:"#FFFFFF",bgColor:"#1296db",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"add",color:"#1296db"},defaultNode:{nodeName:"新增记录",nodeType:"add",config:{addType:"1",fields:[],selectNodeId:"",selectNodeName:"",workId:"",workName:""},childNode:null}},$e[TU]={title:"更新记录",color:"#FFFFFF",bgColor:"#FF8C00",canAdd:!0,canRemoved:!0,hasDrawer:!0,fields:[],icon:{name:"edit",color:"#FF8C00"},defaultNode:{nodeName:"更新记录",nodeType:"edit",config:{fields:[],workId:"",workName:"",selectNodeFields:[],selectNodeId:"",selectNodeName:""},childNode:null}},$e[jU]={title:"删除记录",color:"#FFFFFF",bgColor:"#d81e06",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"del",color:"#d81e06"},defaultNode:{nodeName:"删除记录",nodeType:"del",config:{},childNode:null}},$e[IU]={title:"获取单条记录",color:"#FFFFFF",bgColor:"#1296db",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"search",color:"#1296db"},defaultNode:{nodeName:"获取单条记录",nodeType:"search",config:{filter:[],fields:[],workId:"",workName:"",type:"work",sort:"desc",order:"",way:"go",linkField:""},childNode:null}},$e[LU]={title:"获取多条记录",color:"#FFFFFF",bgColor:"#13227a",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"odd",color:"#13227a"},defaultNode:{nodeName:"获取多条记录",nodeType:"odd",config:{filter:[],fields:[],workId:"",workName:"",type:"work",sort:"desc",order:"",way:"save"},childNode:null}},$e[KU]={title:"从工作表汇总",color:"#FFFFFF",bgColor:"#01ca83",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"summary",color:"#01ca83"},defaultNode:{nodeName:"从工作表汇总",nodeType:"summary",config:{filter:[],fields:[],workId:"",workName:"",type:"work",summary:"count(*)",way:"save"},childNode:null}},$e[RU]={title:"系统消息",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"system",color:"#2196f3"},defaultNode:{nodeName:"系统消息",nodeType:"system",config:{accounts:[],conent:""},childNode:null}},$e[MU]={title:"微信消息",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"wechat",color:"#2196f3"},defaultNode:{nodeName:"微信消息",nodeType:"wechat",config:{accounts:[],conent:""},childNode:null}},$e[zU]={title:"钉钉消息",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"ding",color:"#2196f3"},defaultNode:{nodeName:"钉钉消息",nodeType:"ding",config:{accounts:[],conent:""},childNode:null}},$e[UU]={title:"发送邮件",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"email",color:"#2196f3"},defaultNode:{nodeName:"发送邮件",nodeType:"email",config:{accounts:[],notifys:[],title:"",conent:""},childNode:null}},$e[HU]={title:"子流程",color:"#FFFFFF",bgColor:"#4c7d9e",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"flow",color:"#4c7d9e"},defaultNode:{nodeName:"子流程",nodeType:"flow",config:{fields:[],workId:"",workName:"",procId:"",procName:"子流程",params:[]},childNode:null}},$e[WU]={title:"集成API",color:"#FFFFFF",bgColor:"#00BCD4",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"api",color:"#00BCD4"},defaultNode:{nodeName:"集成API",nodeType:"api",config:{callApi:{}},childNode:{}}},$e[qU]={title:"定时触发",color:"#FFFFFF",bgColor:"#2196F3",canAdd:!1,canRemoved:!1,hasDrawer:!0,icon:{name:"time",color:"#2196F3"},defaultNode:{nodeName:"定时触发",nodeType:"time",config:{loop:"",start:"",end:""},childNode:{}}},$e[GU]={title:"界面推送",color:"#FFFFFF",bgColor:"#2196F3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"ui",color:"#2196F3"},defaultNode:{nodeName:"界面推送",nodeType:"ui",config:{open:"popup",fields:[]},childNode:{}}};const YU=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),XU=BigInt(16224768e5),M6=5n,db=5n,zh=12n,ZU=-1n^-1n<<M6,JU=-1n^-1n<<db,QU=zh+M6+db,$U=zh+db,eH=zh,tH=-1n^-1n<<zh;class nH{constructor(t,n){Rh(this,"dataCenterId");Rh(this,"workerId");Rh(this,"lastTimestamp");Rh(this,"sequence");if(t<0n||t>ZU)throw new Error("data center id is out of range");if(n<0n||n>JU)throw new Error("worker id is out of range");this.dataCenterId=t,this.workerId=n,this.lastTimestamp=-1n,this.sequence=0n}nextId(){let t=BigInt(Date.now());if(t<this.lastTimestamp)throw new Error("clock moved backwards");return t===this.lastTimestamp?(this.sequence=this.sequence+1n&tH,this.sequence===0n&&(t=this.waitNextMillisecond(t))):this.sequence=0n,this.lastTimestamp=t,(t-XU<<QU)+(this.dataCenterId<<$U)+(this.workerId<<eH)+this.sequence}waitNextMillisecond(t){for(;t<=this.lastTimestamp;)t=BigInt(Date.now());return t}}const rH=new nH(1n,1n),oH=()=>rH.nextId(),zu=()=>""+oH(),xn=e=>{if(e){const t=JSON.stringify(e);return JSON.parse(t)}return null},iH=e=>({Text:"文本",Number:"数值",Amount:"金额",Select:"下拉",Radio:"单选",Checkbox:"多选",Date:"日期",Time:"时间",Tel:"电话",Email:"邮箱",Switch:"开关",Slider:"滑块",User:"成员",Dept:"部门",Role:"角色",Upload:"附件",Color:"颜色",Rate:"评分",Editor:"富文本",Location:"定位",Region:"地区",Qrcode:"二维码",Barcode:"条码",Related:"关联",SubTable:"子表",LinkField:"他表字段",Summary:"汇总"})[e]??"文本";function Ft(e,t){return e?e.nodeId===t||e.childNode&&Ft(e.childNode,t)?!0:e.conditionNodes?e.conditionNodes.some(n=>Ft(n,t)):!1:!1}/*! Element Plus Icons Vue v2.3.1 */var aH=i.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),lH=aH,sH=i.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),cH=sH,uH=i.defineComponent({name:"Edit",__name:"edit",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),i.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),dH=uH,fH=i.defineComponent({name:"Expand",__name:"expand",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),pH=fH,hH=i.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),gH=hH,mH=i.defineComponent({name:"Plus",__name:"plus",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Br=mH,yH=i.defineComponent({name:"Search",__name:"search",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Ai=yH,vH=i.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),bH=vH,wH=i.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),_H=wH;const CH={key:0,class:"ep-node-drawer-container"},EH=["id"],kH={class:"search-container"},xH=["title"],NH={class:"node-box"},SH=["onClick"],DH={class:"field"},BH=["innerHTML"],OH=i.defineComponent({__name:"BaseDrawer",emits:["updateConfig","cancelUpdateConfig"],setup(e,{expose:t,emit:n}){const r=i.ref(null),o=i.ref(null),a=i.ref(!1),l=i.ref(!1),s=i.ref(""),c=Object.assign({"../add/addDrawer.vue":()=>Promise.resolve().then(()=>$G),"../api/apiDrawer.vue":()=>Promise.resolve().then(()=>iK),"../approver/approverDrawer.vue":()=>Promise.resolve().then(()=>XY),"./BaseDrawer.vue":()=>Promise.resolve().then(()=>AH),"../button/buttonDrawer.vue":()=>Promise.resolve().then(()=>ZY),"../condition/conditionDrawer.vue":()=>Promise.resolve().then(()=>yX),"../del/delDrawer.vue":()=>Promise.resolve().then(()=>wX),"../ding/dingDrawer.vue":()=>Promise.resolve().then(()=>Rke),"../edit/editDrawer.vue":()=>Promise.resolve().then(()=>axe),"../email/emailDrawer.vue":()=>Promise.resolve().then(()=>lxe),"../flow/flowDrawer.vue":()=>Promise.resolve().then(()=>Txe),"../notify/notifyDrawer.vue":()=>Promise.resolve().then(()=>Lxe),"../odd/oddDrawer.vue":()=>Promise.resolve().then(()=>c3e),"../search/searchDrawer.vue":()=>Promise.resolve().then(()=>F3e),"../start/startDrawer.vue":()=>Promise.resolve().then(()=>j3e),"../summary/summaryDrawer.vue":()=>Promise.resolve().then(()=>r8e),"../system/systemDrawer.vue":()=>Promise.resolve().then(()=>o8e),"../table/tableDrawer.vue":()=>Promise.resolve().then(()=>x8e),"../time/timeDrawer.vue":()=>Promise.resolve().then(()=>N8e),"../ui/uiDrawer.vue":()=>Promise.resolve().then(()=>K8e),"../wechat/wechatDrawer.vue":()=>Promise.resolve().then(()=>Y8e)}),u=i.shallowRef({});Object.keys($e).forEach(w=>{if($e[w].hasDrawer){const E=i.defineAsyncComponent(c[`../${w}/${w}Drawer.vue`]);u.value[w]=E}});const d=w=>{r.value=w,o.value=$e[r.value.nodeType],a.value=!0},f=n,h=()=>{a.value=!1,f("updateConfig",xn(r.value.config))},p=()=>{a.value=!1,f("cancelUpdateConfig")};function v(w,_,E){E.nodeId=w.nodeId,E.nodeName=w.nodeName,E.fieldValue=_.columnName??_.jsonPath,E.fieldValueName=_.columnComment??_.code}const m=w=>{const _=s.value.trim();if(!_||!w)return w;const E=new RegExp(`(${_})`,"gi");return w.replace(E,"<mark>$1</mark>")},g=w=>w.filter(_=>{var x,C,S;const E=((x=_.config)==null?void 0:x.fields)??((C=_.config)==null?void 0:C.selectNodeFields);return((S=_.nodeName)==null?void 0:S.toLowerCase().includes(s.value.toLowerCase()))||(E==null?void 0:E.some(N=>{var O;return(O=N.columnComment)==null?void 0:O.toLowerCase().includes(s.value.toLowerCase())}))}),b=w=>{var x,C,S,N,O;const _=((x=w.config)==null?void 0:x.fields)??((C=w.config)==null?void 0:C.selectNodeFields),E=s.value.toLowerCase();return w.nodeType==="api"?((O=(N=(S=w.config)==null?void 0:S.callApi)==null?void 0:N.responseParams)==null?void 0:O.filter(P=>{var I;return(I=P.code)==null?void 0:I.toLowerCase().includes(E)}))||[]:(_==null?void 0:_.filter(P=>{var I;return(I=P.columnComment)==null?void 0:I.toLowerCase().includes(E)}))||[]},y=w=>b(w).length>0;return t({show:d}),(w,_)=>{const E=i.resolveComponent("el-input"),x=i.resolveComponent("el-collapse-item"),C=i.resolveComponent("el-collapse"),S=i.resolveComponent("el-button"),N=i.resolveComponent("el-popover"),O=i.resolveComponent("el-drawer");return r.value?(i.openBlock(),i.createElementBlock("div",CH,[i.createVNode(O,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=P=>a.value=P),icon:"setting",size:"720px","append-to-body":""},{header:i.withCtx(({titleId:P,titleClass:I})=>[l.value?(i.openBlock(),i.createBlock(E,{key:1,class:"m-r",style:{width:"180px"},modelValue:r.value.nodeName,"onUpdate:modelValue":_[1]||(_[1]=W=>r.value.nodeName=W),onBlur:_[2]||(_[2]=W=>l.value=!1),clearable:""},null,8,["modelValue"])):(i.openBlock(),i.createElementBlock("h4",{key:0,id:P,class:i.normalizeClass(I),onClick:_[0]||(_[0]=i.withModifiers(W=>l.value=!0,["stop"]))},i.toDisplayString(`${r.value.nodeName}设置`),11,EH))]),default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value[r.value.nodeType]),{config:r.value.config,node:r.value},{action:i.withCtx(({item:P,varList:I})=>[i.createVNode(N,{placement:"bottom-end",width:420,trigger:"click"},{reference:i.withCtx(()=>[i.createVNode(S,{icon:i.unref(pH),style:{"margin-left":"-2px"}},null,8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",kH,[i.createVNode(E,{class:"ipt","prefix-icon":i.unref(Ai),modelValue:s.value,"onUpdate:modelValue":_[3]||(_[3]=W=>s.value=W),clearable:"",placeholder:"搜索流程节点对象下的字段"},null,8,["prefix-icon","modelValue"]),i.createVNode(C,{accordion:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g(I),(W,R)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:W.nodeId||R},[y(W)?(i.openBlock(),i.createBlock(x,{key:0,class:"custom-collapse-item",name:W.nodeId},{title:i.withCtx(()=>[i.createElementVNode("span",{class:"header-content",title:W.nodeName},i.toDisplayString(W.nodeName),9,xH)]),default:i.withCtx(()=>[i.createElementVNode("div",NH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b(W),(U,Q)=>{var j;return i.openBlock(),i.createElementBlock("div",{class:"node-item",key:Q},[i.createElementVNode("div",{class:"ellipsis",onClick:T=>v(W,U,P)},[i.createElementVNode("span",DH," ["+i.toDisplayString(i.unref(iH)(((j=U==null?void 0:U.fieldAttr)==null?void 0:j.type)||U.type))+"] ",1),i.createElementVNode("span",{innerHTML:m(U.columnComment??U.code)},null,8,BH)],8,SH)])}),128))])]),_:2},1032,["name"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)])]),_:2},1024)]),_:1},8,["config","node"]))]),footer:i.withCtx(()=>[i.createVNode(S,{onClick:p},{default:i.withCtx(()=>_[5]||(_[5]=[i.createTextVNode("取消")])),_:1}),i.createVNode(S,{type:"primary",onClick:h},{default:i.withCtx(()=>_[6]||(_[6]=[i.createTextVNode("确定")])),_:1})]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)}}}),et=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},z6=et(OH,[["__scopeId","data-v-d64d690c"]]),AH=Object.freeze(Object.defineProperty({__proto__:null,default:z6},Symbol.toStringTag,{value:"Module"}));var U6;const Ts=typeof window<"u",VH=e=>typeof e=="string",FH=()=>{};Ts&&((U6=window==null?void 0:window.navigator)!=null&&U6.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fb(e){return typeof e=="function"?e():i.unref(e)}function TH(e){return e}function pb(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function PH(e,t=!0){i.getCurrentInstance()?i.onMounted(e):t?e():i.nextTick(e)}function jH(e,t,n={}){const{immediate:r=!0}=n,o=i.ref(!1);let a=null;function l(){a&&(clearTimeout(a),a=null)}function s(){o.value=!1,l()}function c(...u){l(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...u)},fb(t))}return r&&(o.value=!0,Ts&&c()),pb(s),{isPending:i.readonly(o),start:c,stop:s}}function H6(e){var t;const n=fb(e);return(t=n==null?void 0:n.$el)!=null?t:n}const W6=Ts?window:void 0;function IH(...e){let t,n,r,o;if(VH(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=W6):[t,n,r,o]=e,!t)return FH;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],l=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),c=i.watch(()=>[H6(t),fb(o)],([d,f])=>{l(),d&&a.push(...n.flatMap(h=>r.map(p=>s(d,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),l()};return pb(u),u}function LH(e,t=!1){const n=i.ref(),r=()=>n.value=!!e();return r(),PH(r,t),n}const q6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},G6="__vueuse_ssr_handlers__";q6[G6]=q6[G6]||{};var K6=Object.getOwnPropertySymbols,RH=Object.prototype.hasOwnProperty,MH=Object.prototype.propertyIsEnumerable,zH=(e,t)=>{var n={};for(var r in e)RH.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&K6)for(var r of K6(e))t.indexOf(r)<0&&MH.call(e,r)&&(n[r]=e[r]);return n};function UH(e,t,n={}){const r=n,{window:o=W6}=r,a=zH(r,["window"]);let l;const s=LH(()=>o&&"ResizeObserver"in o),c=()=>{l&&(l.disconnect(),l=void 0)},u=i.watch(()=>H6(e),f=>{c(),s.value&&o&&f&&(l=new ResizeObserver(t),l.observe(f,a))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return pb(d),{isSupported:s,stop:d}}var Y6;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Y6||(Y6={}));var HH=Object.defineProperty,X6=Object.getOwnPropertySymbols,WH=Object.prototype.hasOwnProperty,qH=Object.prototype.propertyIsEnumerable,Z6=(e,t,n)=>t in e?HH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GH=(e,t)=>{for(var n in t||(t={}))WH.call(t,n)&&Z6(e,n,t[n]);if(X6)for(var n of X6(t))qH.call(t,n)&&Z6(e,n,t[n]);return e};GH({linear:TH},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
|
|
1
|
+
(function(i,Jn){typeof exports=="object"&&typeof module<"u"?module.exports=Jn(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Jn):(i=typeof globalThis<"u"?globalThis:i||self,i.FlowDesign=Jn(i.Vue))})(this,function(i){"use strict";var nNe=Object.defineProperty;var rNe=(i,Jn,ei)=>Jn in i?nNe(i,Jn,{enumerable:!0,configurable:!0,writable:!0,value:ei}):i[Jn]=ei;var Rh=(i,Jn,ei)=>rNe(i,typeof Jn!="symbol"?Jn+"":Jn,ei);const Jn="router",ei="condition",BU="branch",OU="start",AU="approver",Mh="notify",VU="button",FU="table",TU="edit",PU="add",jU="del",IU="search",LU="odd",RU="system",MU="wechat",zU="ding",UU="email",HU="flow",WU="api",qU="time",GU="ui",KU="summary",Jr={defaultNode:{nodeId:"1000",nodeName:"系统",nodeType:"setting",config:{fields:[{type:"User",columnName:"loginUser",columnComment:"触发者"},{type:"Date",columnName:"currentDate",columnComment:"当前日期"},{type:"Date",columnName:"currentTime",columnComment:"当前时间"},{type:"Text",columnName:"sourceId",columnComment:"数据源id"},{type:"Text",columnName:"instanceId",columnComment:"执行实例id"},{type:"Number",columnName:"timestampSeconds",columnComment:"当前UNIX时间戳(秒)"},{type:"Number",columnName:"timestampMilliseconds",columnComment:"当前UNIX时间戳(毫秒)"}]},childNode:null}},$e={};$e[OU]={title:"发起审批",color:"#FFFFFF",bgColor:"#1e83e9",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"start",color:"#1e83e9"},defaultNode:{nodeName:"发起审批",nodeType:"start",config:{selectNodeId:"",selectNodeName:""},childNode:null}},$e[VU]={title:"按钮事件",color:"#FFFFFF",bgColor:"#1e83e9",canAdd:!1,canRemoved:!1,hasDrawer:!0,icon:{name:"button",color:"#1e83e9"},defaultNode:{nodeName:"按钮触发",nodeType:"button",config:{},childNode:null}},$e[FU]={title:"工作表事件",color:"#FFFFFF",bgColor:"#ffa340",canAdd:!1,canRemoved:!1,hasDrawer:!0,icon:{name:"table",color:"#ffa340"},defaultNode:{nodeName:"工作表事件触发",nodeType:"table",config:{filter:[],type:"add"},childNode:null}},$e[Jn]={title:"条件分支",canAdd:!0,hasDrawer:!1,icon:{name:"router",color:"#3CB371"},defaultNode:{nodeName:"路由",nodeType:"router",config:{},childNode:null,conditionNodes:[{nodeName:"条件",nodeType:"condition",isLastCondition:!1,config:{filter:[],fields:[],workId:"",workName:""},childNode:null},{nodeName:"条件",nodeType:"condition",isLastCondition:!0,config:{filter:[],fields:[],workId:"",workName:""},childNode:null}]}},$e[ei]={title:"条件",color:"#FFFFFF",bgColor:"#3CB371",canAdd:!1,canRemoved:!0,hasDrawer:!0,icon:{name:"condition",color:"#3CB371"},defaultNode:{nodeName:"条件",nodeType:"condition",isLastCondition:!1,config:{filter:[],fields:[],workId:"",workName:""},childNode:{}}},$e[BU]={title:"判断条件分支",canAdd:!0,hasDrawer:!1,icon:{name:"error",color:"#2c2c2c"},defaultNode:{nodeName:"路由",nodeType:"router",isBanch:!0,config:{},childNode:null,conditionNodes:[{nodeName:"有数据",nodeType:"condition",isLastCondition:!1,config:{isBanch:!0,isData:!0},childNode:null},{nodeName:"无数据",nodeType:"condition",isLastCondition:!0,config:{isBanch:!0,isData:!1},childNode:null}]}},$e[AU]={title:"审核人",color:"#FFFFFF",bgColor:"#FF8C00",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"approver",color:"#FF8C00"},defaultNode:{nodeName:"审批人",nodeType:"approver",config:{permissions:[]},childNode:null}},$e[Mh]={title:"抄送人",color:"#FFFFFF",bgColor:"#808000",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"notify",color:"#808000"},defaultNode:{nodeName:"抄送人",nodeType:"notify",config:{permissions:[],selectNodeId:"",selectNodeName:""},childNode:null}},$e[PU]={title:"新增记录",color:"#FFFFFF",bgColor:"#1296db",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"add",color:"#1296db"},defaultNode:{nodeName:"新增记录",nodeType:"add",config:{addType:"1",fields:[],selectNodeId:"",selectNodeName:"",workId:"",workName:""},childNode:null}},$e[TU]={title:"更新记录",color:"#FFFFFF",bgColor:"#FF8C00",canAdd:!0,canRemoved:!0,hasDrawer:!0,fields:[],icon:{name:"edit",color:"#FF8C00"},defaultNode:{nodeName:"更新记录",nodeType:"edit",config:{fields:[],workId:"",workName:"",selectNodeFields:[],selectNodeId:"",selectNodeName:""},childNode:null}},$e[jU]={title:"删除记录",color:"#FFFFFF",bgColor:"#d81e06",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"del",color:"#d81e06"},defaultNode:{nodeName:"删除记录",nodeType:"del",config:{},childNode:null}},$e[IU]={title:"获取单条记录",color:"#FFFFFF",bgColor:"#1296db",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"search",color:"#1296db"},defaultNode:{nodeName:"获取单条记录",nodeType:"search",config:{filter:[],fields:[],workId:"",workName:"",type:"work",sort:"desc",order:"",way:"go",linkField:""},childNode:null}},$e[LU]={title:"获取多条记录",color:"#FFFFFF",bgColor:"#13227a",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"odd",color:"#13227a"},defaultNode:{nodeName:"获取多条记录",nodeType:"odd",config:{filter:[],fields:[],workId:"",workName:"",type:"work",sort:"desc",order:"",way:"save"},childNode:null}},$e[KU]={title:"从工作表汇总",color:"#FFFFFF",bgColor:"#01ca83",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"summary",color:"#01ca83"},defaultNode:{nodeName:"从工作表汇总",nodeType:"summary",config:{filter:[],fields:[],workId:"",workName:"",type:"work",summary:"count(*)",way:"save"},childNode:null}},$e[RU]={title:"系统消息",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"system",color:"#2196f3"},defaultNode:{nodeName:"系统消息",nodeType:"system",config:{accounts:[],conent:""},childNode:null}},$e[MU]={title:"微信消息",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"wechat",color:"#2196f3"},defaultNode:{nodeName:"微信消息",nodeType:"wechat",config:{accounts:[],conent:""},childNode:null}},$e[zU]={title:"钉钉消息",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"ding",color:"#2196f3"},defaultNode:{nodeName:"钉钉消息",nodeType:"ding",config:{accounts:[],conent:""},childNode:null}},$e[UU]={title:"发送邮件",color:"#FFFFFF",bgColor:"#2196f3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"email",color:"#2196f3"},defaultNode:{nodeName:"发送邮件",nodeType:"email",config:{accounts:[],notifys:[],title:"",conent:""},childNode:null}},$e[HU]={title:"子流程",color:"#FFFFFF",bgColor:"#4c7d9e",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"flow",color:"#4c7d9e"},defaultNode:{nodeName:"子流程",nodeType:"flow",config:{fields:[],workId:"",workName:"",procId:"",procName:"子流程",params:[]},childNode:null}},$e[WU]={title:"集成API",color:"#FFFFFF",bgColor:"#00BCD4",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"api",color:"#00BCD4"},defaultNode:{nodeName:"集成API",nodeType:"api",config:{callApi:{}},childNode:{}}},$e[qU]={title:"定时触发",color:"#FFFFFF",bgColor:"#2196F3",canAdd:!1,canRemoved:!1,hasDrawer:!0,icon:{name:"time",color:"#2196F3"},defaultNode:{nodeName:"定时触发",nodeType:"time",config:{loop:"",start:"",end:""},childNode:{}}},$e[GU]={title:"界面推送",color:"#FFFFFF",bgColor:"#2196F3",canAdd:!0,canRemoved:!0,hasDrawer:!0,icon:{name:"ui",color:"#2196F3"},defaultNode:{nodeName:"界面推送",nodeType:"ui",config:{open:"popup",fields:[]},childNode:{}}};const YU=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),XU=BigInt(16224768e5),M6=5n,db=5n,zh=12n,ZU=-1n^-1n<<M6,JU=-1n^-1n<<db,QU=zh+M6+db,$U=zh+db,eH=zh,tH=-1n^-1n<<zh;class nH{constructor(t,n){Rh(this,"dataCenterId");Rh(this,"workerId");Rh(this,"lastTimestamp");Rh(this,"sequence");if(t<0n||t>ZU)throw new Error("data center id is out of range");if(n<0n||n>JU)throw new Error("worker id is out of range");this.dataCenterId=t,this.workerId=n,this.lastTimestamp=-1n,this.sequence=0n}nextId(){let t=BigInt(Date.now());if(t<this.lastTimestamp)throw new Error("clock moved backwards");return t===this.lastTimestamp?(this.sequence=this.sequence+1n&tH,this.sequence===0n&&(t=this.waitNextMillisecond(t))):this.sequence=0n,this.lastTimestamp=t,(t-XU<<QU)+(this.dataCenterId<<$U)+(this.workerId<<eH)+this.sequence}waitNextMillisecond(t){for(;t<=this.lastTimestamp;)t=BigInt(Date.now());return t}}const rH=new nH(1n,1n),oH=()=>rH.nextId(),zu=()=>""+oH(),xn=e=>{if(e){const t=JSON.stringify(e);return JSON.parse(t)}return null},iH=e=>({Text:"文本",Number:"数值",Amount:"金额",Select:"下拉",Radio:"单选",Checkbox:"多选",Date:"日期",Time:"时间",Tel:"电话",Email:"邮箱",Switch:"开关",Slider:"滑块",User:"成员",Dept:"部门",Role:"角色",Upload:"附件",Color:"颜色",Rate:"评分",Editor:"富文本",Location:"定位",Region:"地区",Qrcode:"二维码",Barcode:"条码",Related:"关联",SubTable:"子表",LinkField:"他表字段",Summary:"汇总"})[e]??"文本";function Ft(e,t){return e?e.nodeId===t||e.childNode&&Ft(e.childNode,t)?!0:e.conditionNodes?e.conditionNodes.some(n=>Ft(n,t)):!1:!1}/*! Element Plus Icons Vue v2.3.1 */var aH=i.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),lH=aH,sH=i.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),cH=sH,uH=i.defineComponent({name:"Edit",__name:"edit",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),i.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),dH=uH,fH=i.defineComponent({name:"Expand",__name:"expand",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),pH=fH,hH=i.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),gH=hH,mH=i.defineComponent({name:"Plus",__name:"plus",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Br=mH,yH=i.defineComponent({name:"Search",__name:"search",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Ai=yH,vH=i.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),bH=vH,wH=i.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),_H=wH;const CH={key:0,class:"ep-node-drawer-container"},EH=["id"],kH={class:"search-container"},xH=["title"],NH={class:"node-box"},SH=["onClick"],DH={class:"field"},BH=["innerHTML"],OH=i.defineComponent({__name:"BaseDrawer",emits:["updateConfig","cancelUpdateConfig"],setup(e,{expose:t,emit:n}){const r=i.ref(null),o=i.ref(null),a=i.ref(!1),l=i.ref(!1),s=i.ref(""),c=Object.assign({"../add/addDrawer.vue":()=>Promise.resolve().then(()=>$G),"../api/apiDrawer.vue":()=>Promise.resolve().then(()=>iK),"../approver/approverDrawer.vue":()=>Promise.resolve().then(()=>XY),"./BaseDrawer.vue":()=>Promise.resolve().then(()=>AH),"../button/buttonDrawer.vue":()=>Promise.resolve().then(()=>ZY),"../condition/conditionDrawer.vue":()=>Promise.resolve().then(()=>yX),"../del/delDrawer.vue":()=>Promise.resolve().then(()=>wX),"../ding/dingDrawer.vue":()=>Promise.resolve().then(()=>Rke),"../edit/editDrawer.vue":()=>Promise.resolve().then(()=>axe),"../email/emailDrawer.vue":()=>Promise.resolve().then(()=>lxe),"../flow/flowDrawer.vue":()=>Promise.resolve().then(()=>Txe),"../notify/notifyDrawer.vue":()=>Promise.resolve().then(()=>Lxe),"../odd/oddDrawer.vue":()=>Promise.resolve().then(()=>c3e),"../search/searchDrawer.vue":()=>Promise.resolve().then(()=>F3e),"../start/startDrawer.vue":()=>Promise.resolve().then(()=>j3e),"../summary/summaryDrawer.vue":()=>Promise.resolve().then(()=>r8e),"../system/systemDrawer.vue":()=>Promise.resolve().then(()=>o8e),"../table/tableDrawer.vue":()=>Promise.resolve().then(()=>x8e),"../time/timeDrawer.vue":()=>Promise.resolve().then(()=>N8e),"../ui/uiDrawer.vue":()=>Promise.resolve().then(()=>K8e),"../wechat/wechatDrawer.vue":()=>Promise.resolve().then(()=>Y8e)}),u=i.shallowRef({});Object.keys($e).forEach(w=>{if($e[w].hasDrawer){const E=i.defineAsyncComponent(c[`../${w}/${w}Drawer.vue`]);u.value[w]=E}});const d=w=>{r.value=w,o.value=$e[r.value.nodeType],a.value=!0},f=n,h=()=>{a.value=!1,f("updateConfig",xn(r.value.config))},p=()=>{a.value=!1,f("cancelUpdateConfig")};function v(w,_,E){E.nodeId=w.nodeId,E.nodeName=w.nodeName,E.fieldValue=_.columnName??_.jsonPath,E.fieldValueName=_.columnComment??_.code}const m=w=>{const _=s.value.trim();if(!_||!w)return w;const E=new RegExp(`(${_})`,"gi");return w.replace(E,"<mark>$1</mark>")},g=w=>w.filter(_=>{var x,C,S;const E=((x=_.config)==null?void 0:x.fields)??((C=_.config)==null?void 0:C.selectNodeFields);return((S=_.nodeName)==null?void 0:S.toLowerCase().includes(s.value.toLowerCase()))||(E==null?void 0:E.some(N=>{var O;return(O=N.columnComment)==null?void 0:O.toLowerCase().includes(s.value.toLowerCase())}))}),b=w=>{var x,C,S,N,O;const _=((x=w.config)==null?void 0:x.fields)??((C=w.config)==null?void 0:C.selectNodeFields),E=s.value.toLowerCase();return w.nodeType==="api"?((O=(N=(S=w.config)==null?void 0:S.callApi)==null?void 0:N.responseParams)==null?void 0:O.filter(P=>{var I;return(I=P.code)==null?void 0:I.toLowerCase().includes(E)}))||[]:w.nodeType==="summary"?[{type:"Number",columnName:"summary",columnComment:"结果"}]:(_==null?void 0:_.filter(P=>{var I;return(I=P.columnComment)==null?void 0:I.toLowerCase().includes(E)}))||[]},y=w=>b(w).length>0;return t({show:d}),(w,_)=>{const E=i.resolveComponent("el-input"),x=i.resolveComponent("el-collapse-item"),C=i.resolveComponent("el-collapse"),S=i.resolveComponent("el-button"),N=i.resolveComponent("el-popover"),O=i.resolveComponent("el-drawer");return r.value?(i.openBlock(),i.createElementBlock("div",CH,[i.createVNode(O,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=P=>a.value=P),icon:"setting",size:"720px","append-to-body":""},{header:i.withCtx(({titleId:P,titleClass:I})=>[l.value?(i.openBlock(),i.createBlock(E,{key:1,class:"m-r",style:{width:"180px"},modelValue:r.value.nodeName,"onUpdate:modelValue":_[1]||(_[1]=W=>r.value.nodeName=W),onBlur:_[2]||(_[2]=W=>l.value=!1),clearable:""},null,8,["modelValue"])):(i.openBlock(),i.createElementBlock("h4",{key:0,id:P,class:i.normalizeClass(I),onClick:_[0]||(_[0]=i.withModifiers(W=>l.value=!0,["stop"]))},i.toDisplayString(`${r.value.nodeName}设置`),11,EH))]),default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value[r.value.nodeType]),{config:r.value.config,node:r.value},{action:i.withCtx(({item:P,varList:I})=>[i.createVNode(N,{placement:"bottom-end",width:420,trigger:"click"},{reference:i.withCtx(()=>[i.createVNode(S,{icon:i.unref(pH),style:{"margin-left":"-2px"}},null,8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",kH,[i.createVNode(E,{class:"ipt","prefix-icon":i.unref(Ai),modelValue:s.value,"onUpdate:modelValue":_[3]||(_[3]=W=>s.value=W),clearable:"",placeholder:"搜索流程节点对象下的字段"},null,8,["prefix-icon","modelValue"]),i.createVNode(C,{accordion:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g(I),(W,R)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:W.nodeId||R},[y(W)?(i.openBlock(),i.createBlock(x,{key:0,class:"custom-collapse-item",name:W.nodeId},{title:i.withCtx(()=>[i.createElementVNode("span",{class:"header-content",title:W.nodeName},i.toDisplayString(W.nodeName),9,xH)]),default:i.withCtx(()=>[i.createElementVNode("div",NH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b(W),(U,Q)=>{var j;return i.openBlock(),i.createElementBlock("div",{class:"node-item",key:Q},[i.createElementVNode("div",{class:"ellipsis",onClick:T=>v(W,U,P)},[i.createElementVNode("span",DH," ["+i.toDisplayString(i.unref(iH)(((j=U==null?void 0:U.fieldAttr)==null?void 0:j.type)||U.type))+"] ",1),i.createElementVNode("span",{innerHTML:m(U.columnComment??U.code)},null,8,BH)],8,SH)])}),128))])]),_:2},1032,["name"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)])]),_:2},1024)]),_:1},8,["config","node"]))]),footer:i.withCtx(()=>[i.createVNode(S,{onClick:p},{default:i.withCtx(()=>_[5]||(_[5]=[i.createTextVNode("取消")])),_:1}),i.createVNode(S,{type:"primary",onClick:h},{default:i.withCtx(()=>_[6]||(_[6]=[i.createTextVNode("确定")])),_:1})]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)}}}),et=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},z6=et(OH,[["__scopeId","data-v-2f1619fb"]]),AH=Object.freeze(Object.defineProperty({__proto__:null,default:z6},Symbol.toStringTag,{value:"Module"}));var U6;const Ts=typeof window<"u",VH=e=>typeof e=="string",FH=()=>{};Ts&&((U6=window==null?void 0:window.navigator)!=null&&U6.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fb(e){return typeof e=="function"?e():i.unref(e)}function TH(e){return e}function pb(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function PH(e,t=!0){i.getCurrentInstance()?i.onMounted(e):t?e():i.nextTick(e)}function jH(e,t,n={}){const{immediate:r=!0}=n,o=i.ref(!1);let a=null;function l(){a&&(clearTimeout(a),a=null)}function s(){o.value=!1,l()}function c(...u){l(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...u)},fb(t))}return r&&(o.value=!0,Ts&&c()),pb(s),{isPending:i.readonly(o),start:c,stop:s}}function H6(e){var t;const n=fb(e);return(t=n==null?void 0:n.$el)!=null?t:n}const W6=Ts?window:void 0;function IH(...e){let t,n,r,o;if(VH(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=W6):[t,n,r,o]=e,!t)return FH;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],l=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),c=i.watch(()=>[H6(t),fb(o)],([d,f])=>{l(),d&&a.push(...n.flatMap(h=>r.map(p=>s(d,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),l()};return pb(u),u}function LH(e,t=!1){const n=i.ref(),r=()=>n.value=!!e();return r(),PH(r,t),n}const q6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},G6="__vueuse_ssr_handlers__";q6[G6]=q6[G6]||{};var K6=Object.getOwnPropertySymbols,RH=Object.prototype.hasOwnProperty,MH=Object.prototype.propertyIsEnumerable,zH=(e,t)=>{var n={};for(var r in e)RH.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&K6)for(var r of K6(e))t.indexOf(r)<0&&MH.call(e,r)&&(n[r]=e[r]);return n};function UH(e,t,n={}){const r=n,{window:o=W6}=r,a=zH(r,["window"]);let l;const s=LH(()=>o&&"ResizeObserver"in o),c=()=>{l&&(l.disconnect(),l=void 0)},u=i.watch(()=>H6(e),f=>{c(),s.value&&o&&f&&(l=new ResizeObserver(t),l.observe(f,a))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return pb(d),{isSupported:s,stop:d}}var Y6;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Y6||(Y6={}));var HH=Object.defineProperty,X6=Object.getOwnPropertySymbols,WH=Object.prototype.hasOwnProperty,qH=Object.prototype.propertyIsEnumerable,Z6=(e,t,n)=>t in e?HH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GH=(e,t)=>{for(var n in t||(t={}))WH.call(t,n)&&Z6(e,n,t[n]);if(X6)for(var n of X6(t))qH.call(t,n)&&Z6(e,n,t[n]);return e};GH({linear:TH},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
|
|
2
2
|
* @vue/shared v3.5.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const KH=Object.prototype.hasOwnProperty,J6=(e,t)=>KH.call(e,t),Uh=e=>typeof e=="function",Uu=e=>typeof e=="string",Q6=e=>e!==null&&typeof e=="object";var YH=typeof global=="object"&&global&&global.Object===Object&&global,XH=typeof self=="object"&&self&&self.Object===Object&&self,hb=YH||XH||Function("return this")(),Ps=hb.Symbol,$6=Object.prototype,ZH=$6.hasOwnProperty,JH=$6.toString,Hu=Ps?Ps.toStringTag:void 0;function QH(e){var t=ZH.call(e,Hu),n=e[Hu];try{e[Hu]=void 0;var r=!0}catch{}var o=JH.call(e);return r&&(t?e[Hu]=n:delete e[Hu]),o}var $H=Object.prototype,eW=$H.toString;function tW(e){return eW.call(e)}var nW="[object Null]",rW="[object Undefined]",eN=Ps?Ps.toStringTag:void 0;function tN(e){return e==null?e===void 0?rW:nW:eN&&eN in Object(e)?QH(e):tW(e)}function oW(e){return e!=null&&typeof e=="object"}var iW="[object Symbol]";function gb(e){return typeof e=="symbol"||oW(e)&&tN(e)==iW}function aW(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var mb=Array.isArray,lW=1/0,nN=Ps?Ps.prototype:void 0,rN=nN?nN.toString:void 0;function oN(e){if(typeof e=="string")return e;if(mb(e))return aW(e,oN)+"";if(gb(e))return rN?rN.call(e):"";var t=e+"";return t=="0"&&1/e==-lW?"-0":t}function iN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sW="[object AsyncFunction]",cW="[object Function]",uW="[object GeneratorFunction]",dW="[object Proxy]";function fW(e){if(!iN(e))return!1;var t=tN(e);return t==cW||t==uW||t==sW||t==dW}var yb=hb["__core-js_shared__"],aN=function(){var e=/[^.]+$/.exec(yb&&yb.keys&&yb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pW(e){return!!aN&&aN in e}var hW=Function.prototype,gW=hW.toString;function mW(e){if(e!=null){try{return gW.call(e)}catch{}try{return e+""}catch{}}return""}var yW=/[\\^$.*+?()[\]{}|]/g,vW=/^\[object .+?Constructor\]$/,bW=Function.prototype,wW=Object.prototype,_W=bW.toString,CW=wW.hasOwnProperty,EW=RegExp("^"+_W.call(CW).replace(yW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kW(e){if(!iN(e)||pW(e))return!1;var t=fW(e)?EW:vW;return t.test(mW(e))}function xW(e,t){return e==null?void 0:e[t]}function lN(e,t){var n=xW(e,t);return kW(n)?n:void 0}function NW(e,t){return e===t||e!==e&&t!==t}var SW=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DW=/^\w*$/;function BW(e,t){if(mb(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||gb(e)?!0:DW.test(e)||!SW.test(e)||t!=null&&e in Object(t)}var Wu=lN(Object,"create");function OW(){this.__data__=Wu?Wu(null):{},this.size=0}function AW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var VW="__lodash_hash_undefined__",FW=Object.prototype,TW=FW.hasOwnProperty;function PW(e){var t=this.__data__;if(Wu){var n=t[e];return n===VW?void 0:n}return TW.call(t,e)?t[e]:void 0}var jW=Object.prototype,IW=jW.hasOwnProperty;function LW(e){var t=this.__data__;return Wu?t[e]!==void 0:IW.call(t,e)}var RW="__lodash_hash_undefined__";function MW(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Wu&&t===void 0?RW:t,this}function Qa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qa.prototype.clear=OW,Qa.prototype.delete=AW,Qa.prototype.get=PW,Qa.prototype.has=LW,Qa.prototype.set=MW;function zW(){this.__data__=[],this.size=0}function Hh(e,t){for(var n=e.length;n--;)if(NW(e[n][0],t))return n;return-1}var UW=Array.prototype,HW=UW.splice;function WW(e){var t=this.__data__,n=Hh(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():HW.call(t,n,1),--this.size,!0}function qW(e){var t=this.__data__,n=Hh(t,e);return n<0?void 0:t[n][1]}function GW(e){return Hh(this.__data__,e)>-1}function KW(e,t){var n=this.__data__,r=Hh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}js.prototype.clear=zW,js.prototype.delete=WW,js.prototype.get=qW,js.prototype.has=GW,js.prototype.set=KW;var YW=lN(hb,"Map");function XW(){this.size=0,this.__data__={hash:new Qa,map:new(YW||js),string:new Qa}}function ZW(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wh(e,t){var n=e.__data__;return ZW(t)?n[typeof t=="string"?"string":"hash"]:n.map}function JW(e){var t=Wh(this,e).delete(e);return this.size-=t?1:0,t}function QW(e){return Wh(this,e).get(e)}function $W(e){return Wh(this,e).has(e)}function eq(e,t){var n=Wh(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function $a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$a.prototype.clear=XW,$a.prototype.delete=JW,$a.prototype.get=QW,$a.prototype.has=$W,$a.prototype.set=eq;var tq="Expected a function";function vb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tq);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var l=e.apply(this,r);return n.cache=a.set(o,l)||a,l};return n.cache=new(vb.Cache||$a),n}vb.Cache=$a;var nq=500;function rq(e){var t=vb(e,function(r){return n.size===nq&&n.clear(),r}),n=t.cache;return t}var oq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iq=/\\(\\)?/g,aq=rq(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oq,function(n,r,o,a){t.push(o?a.replace(iq,"$1"):r||n)}),t});function lq(e){return e==null?"":oN(e)}function sq(e,t){return mb(e)?e:BW(e,t)?[e]:aq(lq(e))}var cq=1/0;function uq(e){if(typeof e=="string"||gb(e))return e;var t=e+"";return t=="0"&&1/e==-cq?"-0":t}function dq(e,t){t=sq(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[uq(t[n++])];return n&&n==r?e:void 0}function fq(e,t,n){var r=e==null?void 0:dq(e,t);return r===void 0?n:r}function pq(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}const hq=e=>e===void 0,sN=e=>typeof e=="boolean",el=e=>typeof e=="number",gq=e=>typeof Element>"u"?!1:e instanceof Element,mq=e=>Uu(e)?!Number.isNaN(Number(e)):!1,cN=e=>Object.keys(e);class yq extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function qh(e,t){if(process.env.NODE_ENV!=="production"){const n=Uu(e)?new yq(`[${e}] ${t}`):e;console.warn(n)}}const vq="utils/dom/style";function bb(e,t="px"){if(!e)return"";if(el(e)||mq(e))return`${e}${t}`;if(Uu(e))return e;qh(vq,"binding value must be a string or number")}const uN="__epPropKey",wo=e=>e,bq=e=>Q6(e)&&!!e[uN],dN=(e,t)=>{if(!Q6(e)||bq(e))return e;const{values:n,required:r,default:o,type:a,validator:l}=e,c={type:a,required:!!r,validator:n||l?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),J6(e,"default")&&f.push(o),d||(d=f.includes(u))),l&&(d||(d=l(u))),!d&&f.length>0){const h=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");i.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[uN]:!0};return J6(e,"default")&&(c.default=o),c},qu=e=>pq(Object.entries(e).map(([t,n])=>[t,dN(n,t)])),wq=wo([String,Object,Function]),_q={Close:cH},fN={success:bH,warning:_H,error:lH,info:gH},pN=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),Cq=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Eq={esc:"Escape"},kq=["","default","small","large"],xq=e=>e;var Nq={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Sq=e=>(t,n)=>Dq(t,n,i.unref(e)),Dq=(e,t,n)=>fq(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var a;return`${(a=t==null?void 0:t[o])!=null?a:`{${o}}`}`}),Bq=e=>{const t=i.computed(()=>i.unref(e).name),n=i.isRef(e)?e:i.ref(e);return{lang:t,locale:n,t:Sq(e)}},hN=Symbol("localeContextKey"),Oq=e=>{const t=e||i.inject(hN,i.ref());return Bq(i.computed(()=>t.value||Nq))},Gh="el",Aq="is-",tl=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},gN=Symbol("namespaceContextKey"),Vq=e=>{const t=e||(i.getCurrentInstance()?i.inject(gN,i.ref(Gh)):i.ref(Gh));return i.computed(()=>i.unref(t)||Gh)},wb=(e,t)=>{const n=Vq(t);return{namespace:n,b:(m="")=>tl(n.value,e,m,"",""),e:m=>m?tl(n.value,e,"",m,""):"",m:m=>m?tl(n.value,e,"","",m):"",be:(m,g)=>m&&g?tl(n.value,e,m,g,""):"",em:(m,g)=>m&&g?tl(n.value,e,"",m,g):"",bm:(m,g)=>m&&g?tl(n.value,e,m,"",g):"",bem:(m,g,b)=>m&&g&&b?tl(n.value,e,m,g,b):"",is:(m,...g)=>{const b=g.length>=1?g[0]:!0;return m&&b?`${Aq}${m}`:""},cssVar:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${b}`]=m[b]);return g},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${e}-${b}`]=m[b]);return g},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},mN={current:0},yN=i.ref(0),vN=2e3,bN=Symbol("elZIndexContextKey"),wN=Symbol("zIndexContextKey"),Fq=e=>{const t=i.getCurrentInstance()?i.inject(bN,mN):mN,n=e||(i.getCurrentInstance()?i.inject(wN,void 0):void 0),r=i.computed(()=>{const l=i.unref(n);return el(l)?l:vN}),o=i.computed(()=>r.value+yN.value),a=()=>(t.current++,yN.value=t.current,o.value);return!Ts&&!i.inject(bN)&&qh("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
6
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:o,nextZIndex:a}},Tq=dN({type:String,values:kq,required:!1}),Pq=Symbol("size"),jq=Symbol("emptyValuesContextKey"),Iq=qu({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Uh(e)?!e():!e}}),_N=Symbol(),Kh=i.ref();function CN(e,t=void 0){return i.getCurrentInstance()?i.inject(_N,Kh):Kh}function Lq(e,t){const n=CN(),r=wb(e,i.computed(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Gh})),o=Oq(i.computed(()=>{var s;return(s=n.value)==null?void 0:s.locale})),a=Fq(i.computed(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||vN})),l=i.computed(()=>{var s;return i.unref(t)||((s=n.value)==null?void 0:s.size)||""});return EN(i.computed(()=>i.unref(n)||{})),{ns:r,locale:o,zIndex:a,size:l}}const EN=(e,t,n=!1)=>{var r;const o=!!i.getCurrentInstance(),a=o?CN():void 0,l=(r=void 0)!=null?r:o?i.provide:void 0;if(!l){qh("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const s=i.computed(()=>{const c=i.unref(e);return a!=null&&a.value?Rq(a.value,c):c});return l(_N,s),l(hN,i.computed(()=>s.value.locale)),l(gN,i.computed(()=>s.value.namespace)),l(wN,i.computed(()=>s.value.zIndex)),l(Pq,{size:i.computed(()=>s.value.size||"")}),l(jq,i.computed(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!Kh.value)&&(Kh.value=s.value),s},Rq=(e,t)=>{const n=[...new Set([...cN(e),...cN(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},Mq=qu({a11y:{type:Boolean,default:!0},locale:{type:wo(Object)},size:Tq,button:{type:wo(Object)},experimentalFeatures:{type:wo(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:wo(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Iq}),Qr={};i.defineComponent({name:"ElConfigProvider",props:Mq,setup(e,{slots:t}){i.watch(()=>e.message,r=>{Object.assign(Qr,r??{})},{immediate:!0,deep:!0});const n=EN(e);return()=>i.renderSlot(t,"default",{config:n==null?void 0:n.value})}});var _b=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const zq=qu({size:{type:wo([Number,String])},color:{type:String}}),Uq=i.defineComponent({name:"ElIcon",inheritAttrs:!1}),Hq=i.defineComponent({...Uq,props:zq,setup(e){const t=e,n=wb("icon"),r=i.computed(()=>{const{size:o,color:a}=t;return!o&&!a?{}:{fontSize:hq(o)?void 0:bb(o),"--color":a}});return(o,a)=>(i.openBlock(),i.createElementBlock("i",i.mergeProps({class:i.unref(n).b(),style:i.unref(r)},o.$attrs),[i.renderSlot(o.$slots,"default")],16))}});var Wq=_b(Hq,[["__file","icon.vue"]]);const kN=pN(Wq),qq=qu({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:wo([String,Object,Array])},offset:{type:wo(Array),default:[0,0]},badgeClass:{type:String}}),Gq=i.defineComponent({name:"ElBadge"}),Kq=i.defineComponent({...Gq,props:qq,setup(e,{expose:t}){const n=e,r=wb("badge"),o=i.computed(()=>n.isDot?"":el(n.value)&&el(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),a=i.computed(()=>{var l,s,c,u,d;return[{backgroundColor:n.color,marginRight:bb(-((s=(l=n.offset)==null?void 0:l[0])!=null?s:0)),marginTop:bb((u=(c=n.offset)==null?void 0:c[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:o}),(l,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(r).b())},[i.renderSlot(l.$slots,"default"),i.createVNode(i.Transition,{name:`${i.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("sup",{class:i.normalizeClass([i.unref(r).e("content"),i.unref(r).em("content",l.type),i.unref(r).is("fixed",!!l.$slots.default),i.unref(r).is("dot",l.isDot),i.unref(r).is("hide-zero",!l.showZero&&n.value===0),l.badgeClass]),style:i.normalizeStyle(i.unref(a)),textContent:i.toDisplayString(i.unref(o))},null,14,["textContent"]),[[i.vShow,!l.hidden&&(i.unref(o)||l.isDot)]])]),_:1},8,["name"])],2))}});var Yq=_b(Kq,[["__file","badge.vue"]]);const Xq=pN(Yq);function Zq(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jq(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}const xN=["success","info","warning","error"],An=xq({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ts?document.body:void 0}),Qq=qu({customClass:{type:String,default:An.customClass},center:{type:Boolean,default:An.center},dangerouslyUseHTMLString:{type:Boolean,default:An.dangerouslyUseHTMLString},duration:{type:Number,default:An.duration},icon:{type:wq,default:An.icon},id:{type:String,default:An.id},message:{type:wo([String,Object,Function]),default:An.message},onClose:{type:wo(Function),default:An.onClose},showClose:{type:Boolean,default:An.showClose},type:{type:String,values:xN,default:An.type},plain:{type:Boolean,default:An.plain},offset:{type:Number,default:An.offset},zIndex:{type:Number,default:An.zIndex},grouping:{type:Boolean,default:An.grouping},repeatNum:{type:Number,default:An.repeatNum}}),$q={destroy:()=>!0},$r=i.shallowReactive([]),eG=e=>{const t=$r.findIndex(o=>o.id===e),n=$r[t];let r;return t>0&&(r=$r[t-1]),{current:n,prev:r}},tG=e=>{const{prev:t}=eG(e);return t?t.vm.exposed.bottom.value:0},nG=(e,t)=>$r.findIndex(r=>r.id===e)>0?16:t,rG=i.defineComponent({name:"ElMessage"}),oG=i.defineComponent({...rG,props:Qq,emits:$q,setup(e,{expose:t}){const n=e,{Close:r}=_q,{ns:o,zIndex:a}=Lq("message"),{currentZIndex:l,nextZIndex:s}=a,c=i.ref(),u=i.ref(!1),d=i.ref(0);let f;const h=i.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),p=i.computed(()=>{const C=n.type;return{[o.bm("icon",C)]:C&&fN[C]}}),v=i.computed(()=>n.icon||fN[n.type]||""),m=i.computed(()=>tG(n.id)),g=i.computed(()=>nG(n.id,n.offset)+m.value),b=i.computed(()=>d.value+g.value),y=i.computed(()=>({top:`${g.value}px`,zIndex:l.value}));function w(){n.duration!==0&&({stop:f}=jH(()=>{E()},n.duration))}function _(){f==null||f()}function E(){u.value=!1}function x({code:C}){C===Eq.esc&&E()}return i.onMounted(()=>{w(),s(),u.value=!0}),i.watch(()=>n.repeatNum,()=>{_(),w()}),IH(document,"keydown",x),UH(c,()=>{d.value=c.value.getBoundingClientRect().height}),t({visible:u,bottom:b,close:E}),(C,S)=>(i.openBlock(),i.createBlock(i.Transition,{name:i.unref(o).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:N=>C.$emit("destroy"),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{id:C.id,ref_key:"messageRef",ref:c,class:i.normalizeClass([i.unref(o).b(),{[i.unref(o).m(C.type)]:C.type},i.unref(o).is("center",C.center),i.unref(o).is("closable",C.showClose),i.unref(o).is("plain",C.plain),C.customClass]),style:i.normalizeStyle(i.unref(y)),role:"alert",onMouseenter:_,onMouseleave:w},[C.repeatNum>1?(i.openBlock(),i.createBlock(i.unref(Xq),{key:0,value:C.repeatNum,type:i.unref(h),class:i.normalizeClass(i.unref(o).e("badge"))},null,8,["value","type","class"])):i.createCommentVNode("v-if",!0),i.unref(v)?(i.openBlock(),i.createBlock(i.unref(kN),{key:1,class:i.normalizeClass([i.unref(o).e("icon"),i.unref(p)])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(v))))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.renderSlot(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),i.createElementVNode("p",{class:i.normalizeClass(i.unref(o).e("content")),innerHTML:C.message},null,10,["innerHTML"])],2112)):(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(i.unref(o).e("content"))},i.toDisplayString(C.message),3))]),C.showClose?(i.openBlock(),i.createBlock(i.unref(kN),{key:2,class:i.normalizeClass(i.unref(o).e("closeBtn")),onClick:i.withModifiers(E,["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(r))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],46,["id"]),[[i.vShow,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var iG=_b(oG,[["__file","message.vue"]]);let aG=1;const NN=e=>{const t=!e||Uu(e)||i.isVNode(e)||Uh(e)?{message:e}:e,n={...An,...t};if(!n.appendTo)n.appendTo=document.body;else if(Uu(n.appendTo)){let r=document.querySelector(n.appendTo);gq(r)||(qh("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),n.appendTo=r}return sN(Qr.grouping)&&!n.grouping&&(n.grouping=Qr.grouping),el(Qr.duration)&&n.duration===3e3&&(n.duration=Qr.duration),el(Qr.offset)&&n.offset===16&&(n.offset=Qr.offset),sN(Qr.showClose)&&!n.showClose&&(n.showClose=Qr.showClose),n},lG=e=>{const t=$r.indexOf(e);if(t===-1)return;$r.splice(t,1);const{handler:n}=e;n.close()},sG=({appendTo:e,...t},n)=>{const r=`message_${aG++}`,o=t.onClose,a=document.createElement("div"),l={...t,id:r,onClose:()=>{o==null||o(),lG(d)},onDestroy:()=>{i.render(null,a)}},s=i.createVNode(iG,l,Uh(l.message)||i.isVNode(l.message)?{default:Uh(l.message)?l.message:()=>l.message}:null);s.appContext=n||Is._context,i.render(s,a),e.appendChild(a.firstElementChild);const c=s.component,d={id:r,vnode:s,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:s.component.props};return d},Is=(e={},t)=>{if(!Ts)return{close:()=>{}};const n=NN(e);if(n.grouping&&$r.length){const o=$r.find(({vnode:a})=>{var l;return((l=a.props)==null?void 0:l.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(el(Qr.max)&&$r.length>=Qr.max)return{close:()=>{}};const r=sG(n,t);return $r.push(r),r.handler};xN.forEach(e=>{Is[e]=(t={},n)=>{const r=NN(t);return Is({...r,type:e},n)}});function cG(e){for(const t of $r)(!e||e===t.props.type)&&t.handler.close()}Is.closeAll=cG,Is._context=null;const uG=Cq(Is,"$message"),dG={class:"ep-node-add"},fG={key:0,ref:"nodeAddBtn",class:"ep-node-add-btn"},pG={ref:"nodeAddSelect",class:"ep-node-add-select-box"},hG={class:"ep-node-add-select-group-title"},gG=["onClick","onMouseenter","onMouseleave"],mG={class:"ep-node-add-select-item-title"},Yh=et(i.defineComponent({__name:"AddNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref([]);Object.keys($e).forEach(s=>{const c=$e[s];c.canAdd&&n.value.push({title:c.title,type:s,icon:c.icon,isSelected:!1})});const r=[{title:"数据处理",keys:["add","edit","del","search","odd","summary"]},{title:"待办",keys:["start","approver","notify"]},{title:"通知",keys:["system","wechat","ding","email"]},{title:"构件",keys:["flow","router","branch","api","ui"]}],o=i.ref([]);i.onMounted(async()=>{r.forEach(s=>{const c={title:s.title,items:[]};s.keys.forEach(u=>{const d=n.value.find(f=>f.type===u);d&&c.items.push({...d})}),c.items.length>0&&o.value.push(c)})});const a=(s,c)=>{c?s.selected=!0:s.selected=!1},l=s=>{const c=$e[s];if(s==="branch"&&t.node.nodeType!=="search"){uG.error("判断条件分支只能在单条查询节点下面");return}if(c){const u=xn(c.defaultNode);u.nodeId=zu();const d=xn(t.node.childNode);u.childNode=d,t.node.childNode=u,s==="branch"&&(t.node.childNode.config={selectNodeId:t.node.nodeId})}};return(s,c)=>{const u=i.resolveComponent("Icon"),d=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",dG,[t.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",fG,[i.createVNode(d,{placement:"right",width:560,trigger:"hover"},{reference:i.withCtx(()=>[i.createVNode(u,{name:"plus",class:"ep-node-add-btn-icon",color:"#FFFFFF"})]),default:i.withCtx(()=>[i.createElementVNode("div",pG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,f=>(i.openBlock(),i.createElementBlock("div",{key:f.title,class:"ep-node-add-select-group"},[i.createElementVNode("div",hG,i.toDisplayString(f.title),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.items,h=>(i.openBlock(),i.createElementBlock("div",{key:h.type,class:i.normalizeClass(["ep-node-add-select-item",h.selected?"ep-node-add-selected":""]),onClick:p=>l(h.type),onMouseenter:p=>a(h,!0),onMouseleave:p=>a(h,!1)},[i.createElementVNode("div",{class:"ep-node-add-select-item-icon",style:i.normalizeStyle({backgroundColor:h.icon.color})},[i.createVNode(u,{name:h.icon.name,color:"#FFFFFF"},null,8,["name"])],4),i.createElementVNode("div",mG,i.toDisplayString(h.title),1)],42,gG))),128))]))),128))],512)]),_:1})],512))])}}}),[["__scopeId","data-v-f48eb2d2"]]),yG=Object.freeze(Object.defineProperty({__proto__:null,default:Yh},Symbol.toStringTag,{value:"Module"})),Rt="validator",Vn="processData",Ls="app_work_list",Qn="app_work_info",vG="app_work_button_info",bG="app_work_drag",wG={key:0,class:"ep-node-header",style:{"background-color":"#ffffff"}},_G={class:"ep-node-header-title"},CG={key:2,class:"ep-node-move ep-node-move-left"},EG={key:3,class:"ep-node-move ep-node-move-right"},kG={key:4,class:"ep-node-error-msg"},xG={class:"ep-node-error-msg-box"},NG={key:0,class:"ep-node-error-tips"},SN=et(i.defineComponent({__name:"BaseNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})},conditionNodes:{type:Array,default:()=>[]},conditionIndex:{type:Number,default:0}},emits:["removeNode"],setup(e,{emit:t}){const n=e,{proxy:r}=i.getCurrentInstance(),o=zu(),a=i.ref($e[n.node.nodeType]),l=i.inject(Rt),s=i.ref(null),c=i.ref(!1);i.watch(()=>n.node,()=>{a.value=$e[n.node.nodeType],l.validate()});const u=Object.assign({"../add/addNode.vue":()=>Promise.resolve().then(()=>J8e),"../api/apiNode.vue":()=>Promise.resolve().then(()=>e6e),"../approver/approverNode.vue":()=>Promise.resolve().then(()=>t6e),"./AddNode.vue":()=>Promise.resolve().then(()=>yG),"./BaseNode.vue":()=>Promise.resolve().then(()=>SG),"../branch/branchNode.vue":()=>Promise.resolve().then(()=>i6e),"../button/buttonNode.vue":()=>Promise.resolve().then(()=>l6e),"../condition/conditionNode.vue":()=>Promise.resolve().then(()=>p6e),"../del/delNode.vue":()=>Promise.resolve().then(()=>m6e),"../ding/dingNode.vue":()=>Promise.resolve().then(()=>b6e),"../edit/editNode.vue":()=>Promise.resolve().then(()=>C6e),"../email/emailNode.vue":()=>Promise.resolve().then(()=>x6e),"../end/endNode.vue":()=>Promise.resolve().then(()=>FG),"../flow/flowNode.vue":()=>Promise.resolve().then(()=>D6e),"../notify/notifyNode.vue":()=>Promise.resolve().then(()=>B6e),"../odd/oddNode.vue":()=>Promise.resolve().then(()=>V6e),"../router/routerNode.vue":()=>Promise.resolve().then(()=>OG),"../search/searchNode.vue":()=>Promise.resolve().then(()=>P6e),"../start/startNode.vue":()=>Promise.resolve().then(()=>j6e),"../summary/summaryNode.vue":()=>Promise.resolve().then(()=>R6e),"../system/systemNode.vue":()=>Promise.resolve().then(()=>U6e),"../table/tableNode.vue":()=>Promise.resolve().then(()=>G6e),"../time/timeNode.vue":()=>Promise.resolve().then(()=>X6e),"../ui/uiNode.vue":()=>Promise.resolve().then(()=>Q6e),"../wechat/wechatNode.vue":()=>Promise.resolve().then(()=>tNe)}),d=i.shallowRef({});Object.keys($e).forEach(j=>{const T=i.defineAsyncComponent(u[`../${j}/${j}Node.vue`]);d.value[j]=T});const f=i.ref(!1),h=i.ref(!1),p=i.ref(!1),v=i.ref(!1);i.onMounted(async()=>{}),i.onUnmounted(async()=>{l.remove(o),l.validate()});const m=i.computed(()=>["time","button","table","flow"].includes(n.node.nodeType)),g=()=>{const j=l.getResult(o);return j?(s.value=j.message,!j.valid):(s.value=null,!1)},b=i.computed(()=>g()),y=i.computed(()=>x()||n.isView?!1:a.value.canRemoved),w=()=>{if(a.value.hasDrawer&&!n.isView){if(x()||E())return!1;r.$refs.nodeDrawer.show(n.node)}},_=()=>n.node.nodeType===ei,E=()=>{var j,T;return!!(_()&&((T=(j=n.node)==null?void 0:j.config)!=null&&T.isBanch))},x=()=>!!(_()&&n.node.isLastCondition),C=t,S=()=>{C("removeNode"),f.value=!1,p.value=!1},N=()=>{P(1,!0),P(2,!0)},O=()=>{P(1,!1),P(2,!1)},P=(j,T)=>{const J=n.conditionIndex,oe=n.conditionNodes.length;_()&&!x()&&(j===1&&J!==0?f.value=T:j===2&&J!==oe-2?p.value=T:p.value=!1)},I=(j,T)=>{j===1?h.value=T:v.value=T},W=j=>{const T=n.conditionIndex;if(j===1){const J=n.conditionNodes[T];n.conditionNodes[T]=n.conditionNodes[T-1],n.conditionNodes[T-1]=J}else{const J=n.conditionNodes[T];n.conditionNodes[T]=n.conditionNodes[T+1],n.conditionNodes[T+1]=J}},R=j=>{n.node.config=j,l.validate()},U=()=>{l.validate()},Q=j=>{c.value=j};return(j,T)=>{var oe,A;const J=i.resolveComponent("Icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({"ep-node":!0,"ep-node-arrows":!m.value})},[i.createElementVNode("div",{class:i.normalizeClass({"ep-node-content":!0,"ep-node-error":b.value}),onMouseenter:T[8]||(T[8]=k=>N()),onMouseleave:T[9]||(T[9]=k=>O())},[(A=(oe=n.node)==null?void 0:oe.config)!=null&&A.isBanch?(i.openBlock(),i.createElementBlock("div",wG,[T[10]||(T[10]=i.createElementVNode("div",{class:"ep-node-header-title"}," ",-1)),y.value?(i.openBlock(),i.createBlock(J,{key:0,name:"close",class:"ep-node-close",color:"#000000",onClick:S})):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",{key:1,class:"ep-node-header",style:i.normalizeStyle({color:a.value.color,"background-color":a.value.bgColor})},[i.createVNode(J,{name:a.value.icon.name,class:"ep-node-icon",color:"#FFFFFF"},null,8,["name"]),i.createElementVNode("div",_G,i.toDisplayString(e.node.nodeName),1),y.value?(i.openBlock(),i.createBlock(J,{key:0,name:"close",class:"ep-node-close",color:"#FFFFFF",onClick:S})):i.createCommentVNode("",!0)],4)),i.createElementVNode("div",{class:"ep-node-body",onClick:w},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.value[n.node.nodeType]),{ref:"node",tempNodeId:i.unref(o),node:n.node},null,8,["tempNodeId","node"]))]),f.value?(i.openBlock(),i.createElementBlock("div",CG,[i.createVNode(J,{name:"left",class:"ep-node-move-icon",color:h.value?"#1e83e9":"#696969",onClick:T[0]||(T[0]=k=>W(1)),onMouseenter:T[1]||(T[1]=k=>I(1,!0)),onMouseleave:T[2]||(T[2]=k=>I(1,!1))},null,8,["color"])])):i.createCommentVNode("",!0),p.value?(i.openBlock(),i.createElementBlock("div",EG,[i.createVNode(J,{name:"right",class:"ep-node-move-icon",color:v.value?"#1e83e9":"#696969",onClick:T[3]||(T[3]=k=>W(2)),onMouseenter:T[4]||(T[4]=k=>I(2,!0)),onMouseleave:T[5]||(T[5]=k=>I(2,!1))},null,8,["color"])])):i.createCommentVNode("",!0),b.value&&!n.isView?(i.openBlock(),i.createElementBlock("div",kG,[i.createElementVNode("div",xG,[i.createVNode(J,{name:"tips",class:"ep-node-error-icon",color:"red",onMouseenter:T[6]||(T[6]=k=>Q(!0)),onMouseleave:T[7]||(T[7]=k=>Q(!1))}),c.value&&s.value?(i.openBlock(),i.createElementBlock("div",NG,i.toDisplayString(s.value),1)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)],34),i.createVNode(Yh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"]),i.createVNode(z6,{ref:"nodeDrawer",onUpdateConfig:R,onCancelUpdateConfig:U},null,512)],2)}}}),[["__scopeId","data-v-d03f538f"]]),SG=Object.freeze(Object.defineProperty({__proto__:null,default:SN},Symbol.toStringTag,{value:"Module"})),DG={class:"ep-node-router"},BG={class:"ep-node-router-box"},DN=et(i.defineComponent({__name:"routerNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e,r=i.inject(Vn),o=t,a=u=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(u,1):o("removeNode")},l=()=>{const u=xn($e[ei].defaultNode),d=n.node.conditionNodes.length;n.node.conditionNodes.splice(d-1,0,u)};function s(u,d,f=null){return u.nodeId===d?f:(f=u,u.childNode?s(u.childNode,d,f):f)}const c=()=>{const u=s(r.value.nodeConfig,n.node.nodeId,null);u&&u.nodeId!==n.node.config.selectNodeId&&(n.node.config.selectNodeId=u.nodeId)};return(u,d)=>{var f;return i.openBlock(),i.createElementBlock("div",DG,[(f=n.node)!=null&&f.isBanch?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:c}," 判断条件 "))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:l}," 添加条件 "))],64)),i.createElementVNode("div",BG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.node.conditionNodes,(h,p)=>(i.openBlock(),i.createElementBlock("div",{class:"ep-node-router-col",key:p},[i.createVNode(Cb,{"is-view":n.isView,node:h,conditionNodes:n.node.conditionNodes,conditionIndex:p,onRemoveNode:v=>a(p)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),p==0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[d[0]||(d[0]=i.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),d[1]||(d[1]=i.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):i.createCommentVNode("",!0),p==n.node.conditionNodes.length-1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[d[2]||(d[2]=i.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),d[3]||(d[3]=i.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):i.createCommentVNode("",!0)]))),128))]),i.createVNode(Yh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-d6a40619"]]),OG=Object.freeze(Object.defineProperty({__proto__:null,default:DN},Symbol.toStringTag,{value:"Module"})),AG={key:0,class:"ep-node-wrap"},Cb=i.defineComponent({__name:"NodeWrap",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})},conditionNodes:{type:Array,default:()=>[]},conditionIndex:{type:Number,default:0},canRemoved:{type:Boolean,default:!0}},emits:["removeNode"],setup(e,{emit:t}){const n=e;i.onMounted(async()=>{});const r=t,o=()=>{r("removeNode")},a=()=>{const l=n.node.childNode.childNode;n.node.childNode=l};return(l,s)=>{const c=i.resolveComponent("NodeWrap",!0);return n.node?(i.openBlock(),i.createElementBlock("div",AG,[n.node.nodeType==i.unref(Jn)?(i.openBlock(),i.createBlock(DN,{key:0,"is-view":n.isView,node:n.node,onRemoveNode:o},null,8,["is-view","node"])):(i.openBlock(),i.createBlock(SN,{key:1,"is-view":n.isView,node:n.node,conditionNodes:n.conditionNodes,conditionIndex:n.conditionIndex,onRemoveNode:o},null,8,["is-view","node","conditionNodes","conditionIndex"])),n.node.childNode&&n.node.childNode.nodeType?(i.openBlock(),i.createBlock(c,{key:2,"is-view":n.isView,node:n.node.childNode,onRemoveNode:a},null,8,["is-view","node"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),VG={class:"ep-node-end"},BN=et(i.defineComponent({__name:"endNode",props:{node:{type:Object,default:()=>({})}},setup(e){return i.onMounted(async()=>{}),(t,n)=>(i.openBlock(),i.createElementBlock("div",VG,n[0]||(n[0]=[i.createElementVNode("div",{class:"ep-node-end-icon"},null,-1),i.createElementVNode("div",{class:"ep-node-end-text"},"流程结束",-1)])))}}),[["__scopeId","data-v-313f2629"]]),FG=Object.freeze(Object.defineProperty({__proto__:null,default:BN},Symbol.toStringTag,{value:"Module"})),TG={nodeConfig:{nodeName:"发起人",nodeType:"start",config:{}}},PG=()=>{const e={};return e.nodeRules=new Map,e.results=i.reactive(new Map),e.register=(t,n)=>{n&&n instanceof Function&&e.nodeRules.set(t,n)},e.remove=t=>{e.nodeRules.delete(t),e.results.delete(t)},e.validate=()=>{let t=!0;const n=[];return e.nodeRules.forEach((r,o)=>{const a=r;if(a&&a instanceof Function){const l=a();l.valid?e.results.delete(o):(t=!1,e.results.set(o,l),n.push(l.message))}}),{valid:t,messages:n}},e.getResult=t=>{const n=e.results.get(t);if(n)return n},e},jG={class:"ep-container"},IG={class:"ep-zoom"},Eb=et(i.defineComponent({__name:"ProcessDesigner",props:{isView:{type:Boolean,default:()=>!1},data:{type:Object,default:()=>({})}},setup(e,{expose:t}){const n=e,r=i.ref(100),o=PG();i.provide(Rt,o);const a=i.ref({});i.provide(Vn,a),i.watch(()=>n.data,()=>{s()}),i.onMounted(async()=>{s()});const l=d=>{if(d===1){if(r.value===50)return;r.value-=10}else{if(r.value===300)return;r.value+=10}},s=()=>{n.data&&n.data.nodeConfig?a.value=xn(n.data):a.value=xn(TG),i.nextTick(()=>{c()})},c=d=>{const f=o.validate();d&&typeof d=="function"&&d(f.valid,f.messages)};return t({validate:c,getResult:()=>xn(a.value)}),(d,f)=>{const h=i.resolveComponent("Icon");return i.openBlock(),i.createElementBlock("div",jG,[i.createElementVNode("div",{class:"ep-process",style:i.normalizeStyle(`transform: scale(${r.value/100});`)},[a.value&&a.value.nodeConfig?(i.openBlock(),i.createBlock(Cb,{key:0,node:a.value.nodeConfig,isView:n.isView},null,8,["node","isView"])):i.createCommentVNode("",!0),i.createVNode(BN)],4),i.createElementVNode("div",IG,[i.createVNode(h,{name:"subtract",class:i.normalizeClass(["ep-zoom-icon",r.value==50&&"disabled"]),color:"#5a5e66",onClick:f[0]||(f[0]=p=>l(1))},null,8,["class"]),i.createElementVNode("span",null,i.toDisplayString(r.value)+"%",1),i.createVNode(h,{name:"plus",class:i.normalizeClass(["ep-zoom-icon",r.value==300&&"disabled"]),color:"#5a5e66",onClick:f[1]||(f[1]=p=>l(2))},null,8,["class"])])])}}}),[["__scopeId","data-v-ad633a0c"]]),LG={install:e=>{e.component(Eb.name,Eb)},FlowDesign:Eb},RG={key:0,class:"no-work"},MG={key:1,class:"config-detail"},zG={class:"config-item"},UG={class:"children-query",style:{"margin-top":"20px"}},HG={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},WG={style:{flex:"1"}},qG={class:"flex-both"},GG={class:"flex"},KG={class:"txt-label"},YG={class:"condition-select"},XG={key:0,class:"function-tag"},ZG={class:"box"},JG={class:"ellipsis table-name"},QG={class:"field-name ellipsis"},$G=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"addDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.inject(Vn),o=i.inject(Ls),a=i.inject(Qn);function l(m,g,b=[]){if(m.nodeId===g)return b;["search","flow","add","button","table","api"].includes(m.nodeType)&&b.push(m);let w=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const _ of m.conditionNodes)if(Ft(_,g)){l(_.childNode,g,b),w=!0;break}}return!w&&m.childNode&&l(m.childNode,g,b),b}const s=i.computed(()=>{const m=[Jr.defaultNode];return l(r.value.nodeConfig,t.node.nodeId,m),m}),c=i.ref([...s.value]);async function u(){n.value=await o(null),p()}u();async function d(m){const g=await a(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}function f(m,g,b=[]){var w;if(m.nodeId===g)return b;(m.nodeType==="odd"||m.nodeType==="button")&&((w=m.config)!=null&&w.fields)&&b.push(m);let y=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const _ of m.conditionNodes)if(Ft(_,g)){f(_.childNode,g,b),y=!0;break}}return!y&&m.childNode&&f(m.childNode,g,b),b}const h=i.computed(()=>{const m=[];return f(r.value.nodeConfig,t.node.nodeId,m),m});function p(){const m=h.value.find(g=>g.nodeId===t.config.selectNodeId);if(m){const g=s.value.length;c.value.length>g?c.value.splice(g,1,m):m.nodeType!=="button"&&c.value.push(m)}}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("el-radio"),E=i.resolveComponent("el-radio-group"),x=i.resolveComponent("el-form"),C=i.resolveComponent("InfoFilled"),S=i.resolveComponent("el-icon"),N=i.resolveComponent("Close"),O=i.resolveComponent("el-input");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(x,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=P=>t.config.workId=P),filterable:"",onChange:d},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(P,I)=>(i.openBlock(),i.createBlock(b,{key:I,label:P.workName,value:P.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(w,null,{default:i.withCtx(()=>[i.createVNode(E,{modelValue:e.config.addType,"onUpdate:modelValue":g[1]||(g[1]=P=>e.config.addType=P)},{default:i.withCtx(()=>[i.createVNode(_,{value:"1",style:{width:"100%"}},{default:i.withCtx(()=>g[3]||(g[3]=[i.createTextVNode("新增一条记录")])),_:1}),i.createVNode(_,{value:"2",style:{width:"100%"}},{default:i.withCtx(()=>g[4]||(g[4]=[i.createTextVNode("基于多条记录逐条新增记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),i.withDirectives(i.createVNode(w,{label:"选择数据源"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":g[2]||(g[2]=P=>t.config.selectNodeId=P),filterable:"",clearable:"",onChange:p},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,(P,I)=>(i.openBlock(),i.createBlock(b,{key:I,label:P.nodeName,value:P.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},512),[[i.vShow,e.config.addType==="2"]])]),_:1},8,["model"]),g[8]||(g[8]=i.createElementVNode("div",{class:"title"},"新增记录",-1)),e.config.workId?(i.openBlock(),i.createElementBlock("div",MG,[i.createElementVNode("div",zG,[i.createElementVNode("div",UG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(P,I)=>{var W;return i.openBlock(),i.createElementBlock(i.Fragment,{key:I},[P.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",HG,[i.createElementVNode("div",WG,[i.createElementVNode("div",qG,[i.createElementVNode("div",GG,[i.createElementVNode("span",KG,i.toDisplayString(P.columnComment),1)])]),i.createElementVNode("span",YG,[P.nodeId?(i.openBlock(),i.createElementBlock("div",XG,[i.createElementVNode("div",ZG,[i.createElementVNode("div",JG,[i.createElementVNode("span",null,i.toDisplayString(P.nodeName),1),g[6]||(g[6]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[7]||(g[7]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",QG,i.toDisplayString(P.fieldValueName),1)]),i.createVNode(S,{onClick:R=>v(P)},{default:i.withCtx(()=>[i.createVNode(N)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((W=P==null?void 0:P.fieldAttr)==null?void 0:W.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:P.fieldValue,"onUpdate:modelValue":R=>P.fieldValue=R,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(P.fieldAttr.enum,(R,U)=>(i.openBlock(),i.createBlock(b,{key:U,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(O,{key:1,modelValue:P.fieldValue,"onUpdate:modelValue":R=>P.fieldValue=R,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:P,varList:c.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))])])])):(i.openBlock(),i.createElementBlock("div",RG,[i.createVNode(S,{size:"17"},{default:i.withCtx(()=>[i.createVNode(C)]),_:1}),g[5]||(g[5]=i.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-3c703d32"]])},Symbol.toStringTag,{value:"Module"})),eK={class:"condition-select"},tK={key:0,class:"function-tag"},nK={class:"box"},rK={class:"ellipsis table-name"},oK={class:"field-name ellipsis"},iK=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"apiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.inject("openApi");function o(){r(t.config)}function a(c,u,d=[]){if(c.nodeId===u)return d;["odd","search","add","flow","button","table"].includes(c.nodeType)&&d.push(c);let h=!1;if(c.nodeType==="router"&&c.conditionNodes){for(const p of c.conditionNodes)if(Ft(p,u)){a(p.childNode,u,d),h=!0;break}}return!h&&c.childNode&&a(c.childNode,u,d),d}const l=i.computed(()=>{const c=[];return c.push(Jr.defaultNode),a(n.value.nodeConfig,t.node.nodeId,c),c});function s(c){c.nodeId="",c.nodeName="",c.fieldValue=void 0,c.fieldValueName=""}return(c,u)=>{const d=i.resolveComponent("el-input"),f=i.resolveComponent("el-form-item"),h=i.resolveComponent("el-table-column"),p=i.resolveComponent("Close"),v=i.resolveComponent("el-icon"),m=i.resolveComponent("el-table"),g=i.resolveComponent("el-col"),b=i.resolveComponent("el-radio"),y=i.resolveComponent("el-radio-group"),w=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(w,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>{var _;return[i.createVNode(f,{label:"调用已集成API"},{default:i.withCtx(()=>[i.createVNode(d,{class:"auto",modelValue:e.config.callApi.controlName,"onUpdate:modelValue":u[0]||(u[0]=E=>e.config.callApi.controlName=E),readonly:"","suffix-icon":i.unref(dH),onClick:u[1]||(u[1]=E=>o())},null,8,["modelValue","suffix-icon"])]),_:1}),(_=e.config)!=null&&_.callApi.apiParams?(i.openBlock(),i.createBlock(g,{key:0,class:"children-query"},{default:i.withCtx(()=>[i.createVNode(f,{label:"输入参数"}),i.createVNode(m,{data:e.config.callApi.apiParams,"row-key":"code","default-expand-all":""},{default:i.withCtx(()=>[i.createVNode(h,{prop:"name",label:"字段名"}),i.createVNode(h,{prop:"code",label:"参数名"}),i.createVNode(h,{width:"320"},{default:i.withCtx(E=>[i.createElementVNode("span",eK,[E.row.nodeId?(i.openBlock(),i.createElementBlock("div",tK,[i.createElementVNode("div",nK,[i.createElementVNode("div",rK,[i.createElementVNode("span",null,i.toDisplayString(E.row.nodeName),1),u[3]||(u[3]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),u[4]||(u[4]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",oK,i.toDisplayString(E.row.fieldValueName),1)]),i.createVNode(v,{onClick:x=>s(E.row)},{default:i.withCtx(()=>[i.createVNode(p)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createBlock(d,{key:1,modelValue:E.row.fieldValue,"onUpdate:modelValue":x=>E.row.fieldValue=x,clearable:""},null,8,["modelValue","onUpdate:modelValue"])),i.renderSlot(c.$slots,"action",{item:E.row,varList:l.value},void 0,!0)])]),_:3})]),_:3},8,["data"])]),_:3})):i.createCommentVNode("",!0),i.createVNode(f,{label:"请求超时或请求失败时",style:{"margin-top":"20px"}},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.way,"onUpdate:modelValue":u[2]||(u[2]=E=>t.config.way=E)},{default:i.withCtx(()=>[i.createVNode(b,{value:"go",style:{width:"100%"}},{default:i.withCtx(()=>u[5]||(u[5]=[i.createTextVNode("继续执行")])),_:1}),i.createVNode(b,{value:"aborted"},{default:i.withCtx(()=>u[6]||(u[6]=[i.createTextVNode("中止流程")])),_:1})]),_:1},8,["modelValue"])]),_:1})]}),_:3},8,["model"])])}}}),[["__scopeId","data-v-6c80d068"]])},Symbol.toStringTag,{value:"Module"})),aK={class:"layout-main"},lK={class:"layout-left"},sK={class:"layout-right"},cK={key:0,class:"selected-item"},uK={class:"selected-item-name"},dK=["onClick"],fK={key:0,class:"selected-item"},pK={class:"selected-item-name"},hK=["onClick"],gK={key:0,class:"selected-item"},mK={class:"selected-item-name"},yK=["onClick"],vK={class:"dialog-footer"},bK=et(i.defineComponent({__name:"index",props:{modelValue:{type:Array,default:()=>[]},enableDept:{type:Boolean,default:!1},enableRole:{type:Boolean,default:!1},multipleSize:{type:Number,default:-1}},emits:["ok"],setup(e,{expose:t,emit:n}){const r=i.inject("roleList"),o=i.inject("userList"),a=e,{proxy:l}=i.getCurrentInstance(),s=i.ref("user"),c=i.ref(["user","dept","role"]),u=i.ref([]),d=i.ref([]),f=i.ref(!1),h=i.ref(""),p=i.ref(""),v=i.ref([]),m=i.ref([]),g={children:"children",label:"nickName",disabled:R=>a.multipleSize>0&&m.value.length===a.multipleSize||!a.enableDept&&R.type==="dept"},b={children:"children",label:"roleName"};i.onMounted(()=>{x(),w(),P()}),i.watch(h,R=>{l.$refs["user-tree"]!=null&&l.$refs["user-tree"].filter(R)}),i.watch(p,R=>{l.$refs["role-tree"]!=null&&l.$refs["role-tree"].filter(R)});function y(){P(),f.value=!0}async function w(){d.value=await r()}const _=i.computed(()=>p.value?d.value.filter(R=>R.roleName.includes(p.value)):d.value),E=i.computed(()=>h.value?u.value.filter(R=>R.nickName.includes(h.value)):u.value);async function x(){u.value=await o({searchValue:h.value})}function C(R,U){return R?U.label.includes(R):!0}function S(){let R=[];const U=N("user-tree");if(R=R.concat(U),a.enableRole){const Q=N("role-tree");R=R.concat(Q)}m.value=R}function N(R){const U=l.$refs[R].getCheckedNodes(),Q=[];return U.map(j=>{Q.push({id:j.userId||j.roleId,nodeKey:j.nodeKey,type:j.userId?"user":"role",label:j.nickName||j.roleName})}),Q}function O(R){R&&R.nodeKey&&(R.type==="user"||R.type==="dept"?l.$refs["user-tree"].setChecked(R.nodeKey,!1):R.type==="role"&&l.$refs["role-tree"].setChecked(R.nodeKey,!1))}function P(){h.value="",p.value="";const R=a.modelValue,U=[];R&&R.length>0&&R.map(Q=>{if(Q&&Q.type&&Q.id){const j=`${Q.type}-${Q.id}`;R.nodeKey=j,U.push(j)}}),v.value=U,m.value=R}const I=n;function W(){f.value=!1,l.$emit("update:modelValue",m.value),I("ok",m.value)}return t({show:y}),(R,U)=>{const Q=i.resolveComponent("el-input"),j=i.resolveComponent("el-tree"),T=i.resolveComponent("el-tab-pane"),J=i.resolveComponent("el-tabs"),oe=i.resolveComponent("Close"),A=i.resolveComponent("el-icon"),k=i.resolveComponent("el-collapse-item"),B=i.resolveComponent("el-collapse"),V=i.resolveComponent("el-button"),L=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(L,{title:"选择用户",modelValue:f.value,"onUpdate:modelValue":U[5]||(U[5]=F=>f.value=F),"destroy-on-close":!0,width:600},{footer:i.withCtx(()=>[i.createElementVNode("div",vK,[i.createVNode(V,{type:"primary",onClick:W},{default:i.withCtx(()=>U[9]||(U[9]=[i.createTextVNode("确 定")])),_:1}),i.createVNode(V,{onClick:U[4]||(U[4]=F=>f.value=!1)},{default:i.withCtx(()=>U[10]||(U[10]=[i.createTextVNode("取 消")])),_:1})])]),default:i.withCtx(()=>[i.createElementVNode("div",aK,[i.createElementVNode("div",lK,[i.createVNode(J,{modelValue:s.value,"onUpdate:modelValue":U[2]||(U[2]=F=>s.value=F),type:"border-card"},{default:i.withCtx(()=>[i.createVNode(T,{label:"用户",name:"user"},{default:i.withCtx(()=>[i.createVNode(Q,{modelValue:h.value,"onUpdate:modelValue":U[0]||(U[0]=F=>h.value=F),placeholder:"搜索关键字"},null,8,["modelValue"]),i.createVNode(j,{ref:"user-tree","empty-text":"暂无数据",props:g,data:E.value,"default-checked-keys":v.value,"node-key":"nodeKey","show-checkbox":"","check-strictly":!0,"render-after-expand":!1,"filter-node-method":C,onCheckChange:S},null,8,["data","default-checked-keys"])]),_:1}),a.enableRole?(i.openBlock(),i.createBlock(T,{key:0,label:"角色",name:"role"},{default:i.withCtx(()=>[i.createVNode(Q,{modelValue:p.value,"onUpdate:modelValue":U[1]||(U[1]=F=>p.value=F),placeholder:"搜索关键字"},null,8,["modelValue"]),i.createVNode(j,{"empty-text":"暂无数据",ref:"role-tree",props:b,data:_.value,"default-checked-keys":v.value,"node-key":"nodeKey","show-checkbox":"","check-strictly":!0,"render-after-expand":!1,"filter-node-method":C,onCheckChange:S},null,8,["data","default-checked-keys"])]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),i.createElementVNode("div",sK,[i.createVNode(B,{modelValue:c.value,"onUpdate:modelValue":U[3]||(U[3]=F=>c.value=F)},{default:i.withCtx(()=>[i.createVNode(k,{name:"user"},{title:i.withCtx(()=>U[6]||(U[6]=[i.createElementVNode("div",{class:"selected-title"},"已选用户",-1)])),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(F,Y)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Y},[F.type=="user"?(i.openBlock(),i.createElementBlock("div",cK,[i.createElementVNode("div",uK,i.toDisplayString(F.label),1),i.createElementVNode("div",{class:"selected-item-close",onClick:$=>O(F)},[i.createVNode(A,null,{default:i.withCtx(()=>[i.createVNode(oe)]),_:1})],8,dK)])):i.createCommentVNode("",!0)],64))),128))]),_:1}),a.enableDept?(i.openBlock(),i.createBlock(k,{key:0,name:"dept"},{title:i.withCtx(()=>U[7]||(U[7]=[i.createElementVNode("div",{class:"selected-title"},"已选部门",-1)])),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(F,Y)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Y},[e.enableDept&&F.type=="dept"?(i.openBlock(),i.createElementBlock("div",fK,[i.createElementVNode("div",pK,i.toDisplayString(F.label),1),i.createElementVNode("div",{class:"selected-item-close",onClick:$=>O(F)},[i.createVNode(A,null,{default:i.withCtx(()=>[i.createVNode(oe)]),_:1})],8,hK)])):i.createCommentVNode("",!0)],64))),128))]),_:1})):i.createCommentVNode("",!0),a.enableRole?(i.openBlock(),i.createBlock(k,{key:1,name:"role"},{title:i.withCtx(()=>U[8]||(U[8]=[i.createElementVNode("div",{class:"selected-title"},"已选角色",-1)])),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(F,Y)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Y},[e.enableRole&&F.type=="role"?(i.openBlock(),i.createElementBlock("div",gK,[i.createElementVNode("div",mK,i.toDisplayString(F.label),1),i.createElementVNode("div",{class:"selected-item-close",onClick:$=>O(F)},[i.createVNode(A,null,{default:i.withCtx(()=>[i.createVNode(oe)]),_:1})],8,yK)])):i.createCommentVNode("",!0)],64))),128))]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-803408be"]]),wK={class:"org-view"},ON=et({__name:"OrgSelectView",props:{modelValue:{type:Array},enableDept:{type:Boolean,default:!1},enableRole:{type:Boolean,default:!1},multipleSize:{type:Number,default:-1}},setup(e){const{proxy:t}=i.getCurrentInstance(),n=e;function r(){t.$refs.userSelect.show()}function o(s){l(s)}function a(s){n.modelValue.splice(n.modelValue.indexOf(s),1)}function l(s){t.$emit("update:modelValue",s)}return(s,c)=>{const u=i.resolveComponent("el-button"),d=i.resolveComponent("el-tag");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",wK,[i.createVNode(u,{class:"tag",type:"primary",onClick:r,size:"small"},{default:i.withCtx(()=>c[1]||(c[1]=[i.createTextVNode("添加")])),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.modelValue,f=>(i.openBlock(),i.createBlock(d,{class:"tag",key:f.id,onClose:h=>a(f),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.label),1)]),_:2},1032,["onClose"]))),128))]),i.createVNode(bK,{ref:"userSelect",modelValue:n.modelValue,"onUpdate:modelValue":c[0]||(c[0]=f=>n.modelValue=f),enableDept:n.enableDept,enableRole:n.enableRole,multipleSize:n.multipleSize,onOk:o},null,8,["modelValue","enableDept","enableRole","multipleSize"])])}}},[["__scopeId","data-v-c40c0858"]]),_K={class:"permissions"},CK={class:"item header"},EK={key:0,class:"option"},kK={class:"option"},xK={class:"option"},NK={class:"field"},SK={key:0,class:"option"},DK={class:"option"},BK={class:"option"},OK=et({__name:"Permissions",props:{nodeType:{type:String,required:!0},config:{type:Object,required:!0,default:()=>{}}},setup(e){const t=e,n=i.ref(1),r=i.ref([]);i.onMounted(async()=>{o()});function o(){r.value=t.config.permissions,a()}function a(){const c=Object.keys(r.value),u=c.length;let d=0,f=0,h=0;c.forEach(p=>{switch(r.value[p].rule){case 1:d++;break;case 2:f++;break;case 3:h++;break}}),u===d?n.value=1:u===f?n.value=2:u===h?n.value=3:n.value=null}function l(c){Object.keys(r.value).forEach(d=>{r.value[d].rule=c})}function s(){t.config.permissions=r.value,a()}return(c,u)=>{const d=i.resolveComponent("el-radio"),f=i.resolveComponent("el-radio-group");return i.openBlock(),i.createElementBlock("div",_K,[i.createElementVNode("div",CK,[u[4]||(u[4]=i.createElementVNode("div",{class:"field"},"表单字段",-1)),i.createVNode(f,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),onChange:l},{default:i.withCtx(()=>[t.nodeType!==i.unref(Mh)?(i.openBlock(),i.createElementBlock("div",EK,[i.createVNode(d,{label:1},{default:i.withCtx(()=>u[1]||(u[1]=[i.createTextVNode("可编辑")])),_:1})])):i.createCommentVNode("",!0),i.createElementVNode("div",kK,[i.createVNode(d,{label:2},{default:i.withCtx(()=>u[2]||(u[2]=[i.createTextVNode("只读")])),_:1})]),i.createElementVNode("div",xK,[i.createVNode(d,{label:3},{default:i.withCtx(()=>u[3]||(u[3]=[i.createTextVNode("隐藏")])),_:1})])]),_:1},8,["modelValue"])]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(h,p)=>(i.openBlock(),i.createElementBlock("div",{class:"item",key:p},[i.createElementVNode("div",NK,i.toDisplayString(h.label),1),i.createVNode(f,{modelValue:h.rule,"onUpdate:modelValue":v=>h.rule=v,onChange:s},{default:i.withCtx(()=>[t.nodeType!==i.unref(Mh)?(i.openBlock(),i.createElementBlock("div",SK,[i.createVNode(d,{label:1},{default:i.withCtx(()=>u[5]||(u[5]=[i.createTextVNode(" ")])),_:1})])):i.createCommentVNode("",!0),i.createElementVNode("div",DK,[i.createVNode(d,{label:2},{default:i.withCtx(()=>u[6]||(u[6]=[i.createTextVNode(" ")])),_:1})]),i.createElementVNode("div",BK,[i.createVNode(d,{label:3},{default:i.withCtx(()=>u[7]||(u[7]=[i.createTextVNode(" ")])),_:1})])]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128))])}}},[["__scopeId","data-v-8548d21c"]]),AK={style:{float:"left"}},VK={key:0,style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},FK={key:0},TK={key:1},PK={class:"config-detail"},jK={class:"config-item"},IK={class:"children-query",style:{"margin-top":"20px"}},LK={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},RK={style:{flex:"1"}},MK={class:"flex-both"},zK={class:"flex"},UK={class:"txt-label"},HK={class:"condition-select"},WK={key:0,class:"function-tag"},qK={class:"box"},GK={class:"ellipsis table-name"},KK={class:"field-name ellipsis"},YK={style:{margin:"20px 0"}},XK={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},ZK={class:"field-list"},JK=["onClick"],QK={class:"config-detail"},$K={class:"config-item"},eY={class:"children-query",style:{"margin-top":"20px"}},tY={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},nY={style:{flex:"1"}},rY={class:"flex-both"},oY={class:"flex"},iY={class:"txt-label"},aY={class:"condition-select"},lY={key:0,class:"function-tag"},sY={class:"box"},cY={class:"ellipsis table-name"},uY={class:"field-name ellipsis"},dY={style:{margin:"20px 0"}},fY={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},pY={class:"field-list"},hY=["onClick"],gY={class:"config-detail"},mY={class:"config-item"},yY={class:"children-query",style:{"margin-top":"20px"}},vY={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},bY={style:{flex:"1"}},wY={class:"flex-both"},_Y={class:"flex"},CY={class:"txt-label"},EY={class:"condition-select"},kY={key:0,class:"function-tag"},xY={class:"box"},NY={class:"ellipsis table-name"},SY={class:"field-name ellipsis"},DY={style:{margin:"20px 0"}},BY={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},OY={class:"field-list"},AY=["onClick"],VY={class:"config-detail"},FY={class:"config-item"},TY={class:"children-query",style:{"margin-top":"20px"}},PY={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},jY={style:{flex:"1"}},IY={class:"flex-both"},LY={class:"flex"},RY={class:"txt-label"},MY={class:"condition-select"},zY={key:0,class:"function-tag"},UY={class:"box"},HY={class:"ellipsis table-name"},WY={class:"field-name ellipsis"},qY={style:{margin:"20px 0"}},GY={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},KY={class:"field-list"},YY=["onClick"],XY=Object.freeze(Object.defineProperty({__proto__:null,default:et({__name:"approverDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref("base"),r=i.inject(Vn),o=i.ref(""),a=i.computed(()=>{var N,O,P,I,W,R,U;const S=o.value.trim().toLowerCase();return((O=(N=s.value)==null?void 0:N.config)==null?void 0:O.fields)??((I=(P=s.value)==null?void 0:P.config)==null||I.selectNodeFields),(U=(R=(W=s.value)==null?void 0:W.config)==null?void 0:R.selectNodeFields)==null?void 0:U.filter(Q=>[Q.columnName,Q.columnComment].some(j=>String(j||"").toLowerCase().includes(S)))});function l(S,N,O){return S.nodeId===N||O||(S.nodeType==="start"&&(O=S),S.childNode&&(O=l(S.childNode,N,O))),O}const s=i.computed(()=>l(r.value.nodeConfig,t.node.nodeId,null));c(),s.value&&(t.config.selectNodeId=s.value.nodeId,t.config.workId=s.value.config.workId,t.config.workName=s.value.config.workName);function c(){t.config.handlerScope||(t.config.handlerScope=1),t.config.leaderHierarchyLimit||(t.config.leaderHierarchyLimit=1),t.config.handlers||(t.config.handlers=[]),t.config.selfSelectionType||(t.config.selfSelectionType=1),t.config.selfSelectionScope||(t.config.selfSelectionScope=1),t.config.selfSelectionItems||(t.config.selfSelectionItems=[]),t.config.handleModel||(t.config.handleModel=1),t.config.whenHandlerEmpty||(t.config.whenHandlerEmpty=2),t.config.careOfUserList||(t.config.careOfUserList=[])}function u(){t.config.leaderHierarchyLimit=1,t.config.handlers=[],t.config.selfSelectionType=1,t.config.selfSelectionScope=1,t.config.selfSelectionItems=[]}function d(S,N,O=[]){return S.nodeId===N||(console.log(S),["start","approver"].includes(S.nodeType)&&(console.log(4444444),console.log(S),O.push(S)),S.childNode&&d(S.childNode,N,O)),O}const f=i.computed(()=>{const S=[];return S.push(Jr.defaultNode),d(r.value.nodeConfig,t.node.nodeId,S),console.log(S),S});function h(S){S.compare="eq",t.config.startFields||(t.config.startFields=[]),t.config.startFields.push({...S})}function p(S){t.config.startFields.splice(S,1)}function v(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}function m(S){S.compare="eq",t.config.backFields||(t.config.backFields=[]),t.config.backFields.push({...S})}function g(S){t.config.backFields.splice(S,1)}function b(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}function y(S){S.compare="eq",t.config.rejectFields||(t.config.rejectFields=[]),t.config.rejectFields.push({...S})}function w(S){t.config.rejectFields.splice(S,1)}function _(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}function E(S){S.compare="eq",t.config.endFields||(t.config.endFields=[]),t.config.endFields.push({...S})}function x(S){t.config.endFields.splice(S,1)}function C(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}return(S,N)=>{const O=i.resolveComponent("el-form-item"),P=i.resolveComponent("el-form"),I=i.resolveComponent("el-radio"),W=i.resolveComponent("el-radio-group"),R=i.resolveComponent("el-option"),U=i.resolveComponent("el-select"),Q=i.resolveComponent("el-tab-pane"),j=i.resolveComponent("Close"),T=i.resolveComponent("el-icon"),J=i.resolveComponent("el-input"),oe=i.resolveComponent("el-button"),A=i.resolveComponent("el-popover"),k=i.resolveComponent("el-tabs");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(P,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(O,{label:"数据对象"},{default:i.withCtx(()=>{var B,V,L,F,Y;return[i.createElementVNode("span",AK,i.toDisplayString((B=s.value)==null?void 0:B.nodeName),1),(L=(V=s.value)==null?void 0:V.config)!=null&&L.workName?(i.openBlock(),i.createElementBlock("span",VK,' 工作表 "'+i.toDisplayString((Y=(F=s.value)==null?void 0:F.config)==null?void 0:Y.workName)+'" ',1)):i.createCommentVNode("",!0)]}),_:1})]),_:1},8,["model"]),i.createVNode(k,{modelValue:n.value,"onUpdate:modelValue":N[9]||(N[9]=B=>n.value=B)},{default:i.withCtx(()=>[i.createVNode(Q,{label:"基本设置",name:"base"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("div",null,[N[13]||(N[13]=i.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),i.createElementVNode("div",null,[i.createVNode(W,{modelValue:t.config.handlerScope,"onUpdate:modelValue":N[0]||(N[0]=B=>t.config.handlerScope=B),onChange:u},{default:i.withCtx(()=>[i.createVNode(I,{label:1},{default:i.withCtx(()=>N[10]||(N[10]=[i.createTextVNode("指定人员")])),_:1}),i.createVNode(I,{label:2},{default:i.withCtx(()=>N[11]||(N[11]=[i.createTextVNode("部门主管")])),_:1}),i.createVNode(I,{label:3},{default:i.withCtx(()=>N[12]||(N[12]=[i.createTextVNode("连续多级主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(i.openBlock(),i.createElementBlock("div",FK,[N[14]||(N[14]=i.createElementVNode("div",{class:"title"},"指定成员(不能超过20人)",-1)),i.createElementVNode("div",null,[i.createVNode(ON,{modelValue:t.config.handlers,"onUpdate:modelValue":N[1]||(N[1]=B=>t.config.handlers=B),enableRole:!0,"multiple-size":20},null,8,["modelValue"])])])):i.createCommentVNode("",!0),t.config.handlerScope===3?(i.openBlock(),i.createElementBlock("div",TK,[N[15]||(N[15]=i.createElementVNode("div",{class:"title"},"连续多级主管审批终点",-1)),i.createElementVNode("div",null,[i.createVNode(U,{modelValue:t.config.leaderHierarchyLimit,"onUpdate:modelValue":N[2]||(N[2]=B=>t.config.leaderHierarchyLimit=B),class:"select-max-width"},{default:i.withCtx(()=>[i.createVNode(R,{label:"第一级主管",value:1}),i.createVNode(R,{label:"第二级主管",value:2}),i.createVNode(R,{label:"第三级主管",value:3}),i.createVNode(R,{label:"第四级主管",value:4}),i.createVNode(R,{label:"第五级主管",value:5}),i.createVNode(R,{label:"第六级主管",value:6}),i.createVNode(R,{label:"第七级主管",value:7}),i.createVNode(R,{label:"第八级主管",value:8}),i.createVNode(R,{label:"第九级主管",value:9}),i.createVNode(R,{label:"第十级主管",value:10})]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[N[16]||(N[16]=i.createElementVNode("div",{class:"title"},"多人审批时采用的审批方式",-1)),i.createElementVNode("div",null,[i.createVNode(U,{modelValue:t.config.handleModel,"onUpdate:modelValue":N[3]||(N[3]=B=>t.config.handleModel=B),class:"select-max-width"},{default:i.withCtx(()=>[i.createVNode(R,{label:"依次审批(按顺序同意或拒绝)",value:1}),i.createVNode(R,{label:"会签(需要所有审批人都同意才可通过)",value:2}),i.createVNode(R,{label:"或签(其中一名审批人同意或拒绝即可)",value:3})]),_:1},8,["modelValue"])])]),i.createElementVNode("div",null,[N[17]||(N[17]=i.createElementVNode("div",{class:"title"},"审批人为空时",-1)),i.createElementVNode("div",null,[i.createVNode(U,{modelValue:t.config.leaderHierarchyLimit,"onUpdate:modelValue":N[4]||(N[4]=B=>t.config.leaderHierarchyLimit=B),class:"select-max-width"},{default:i.withCtx(()=>[i.createVNode(R,{label:"自动通过",value:1}),i.createVNode(R,{label:"自动转交管理员",value:2}),i.createVNode(R,{label:"指定人员审批",value:3})]),_:1},8,["modelValue"])])])])]),_:1}),i.createVNode(Q,{label:"数据更新",name:"update"},{default:i.withCtx(()=>[N[30]||(N[30]=i.createElementVNode("div",{class:"title"},"节点开始时更新",-1)),N[31]||(N[31]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"}," 流程进入此节点且审批开始前,更新数据对象的字段值(退回至此节点也会触发更新) ")],-1)),i.createElementVNode("div",PK,[i.createElementVNode("div",jK,[i.createElementVNode("div",IK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.startFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",LK,[i.createElementVNode("div",RK,[i.createElementVNode("div",MK,[i.createElementVNode("div",zK,[i.createElementVNode("span",UK,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>p(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",HK,[B.nodeId?(i.openBlock(),i.createElementBlock("div",WK,[i.createElementVNode("div",qK,[i.createElementVNode("div",GK,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[18]||(N[18]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[19]||(N[19]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",KK,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>v(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",YK,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[20]||(N[20]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",XK,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[5]||(N[5]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",ZK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>h(B)},i.toDisplayString(B.columnComment),9,JK)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])]),N[32]||(N[32]=i.createElementVNode("div",{class:"title"},"节点通过后更新",-1)),N[33]||(N[33]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"},"节点通过后,更新数据对象的字段值")],-1)),i.createElementVNode("div",QK,[i.createElementVNode("div",$K,[i.createElementVNode("div",eY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.endFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",tY,[i.createElementVNode("div",nY,[i.createElementVNode("div",rY,[i.createElementVNode("div",oY,[i.createElementVNode("span",iY,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>x(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",aY,[B.nodeId?(i.openBlock(),i.createElementBlock("div",lY,[i.createElementVNode("div",sY,[i.createElementVNode("div",cY,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[21]||(N[21]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[22]||(N[22]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",uY,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>C(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",dY,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[23]||(N[23]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",fY,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[6]||(N[6]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",pY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>E(B)},i.toDisplayString(B.columnComment),9,hY)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])]),N[34]||(N[34]=i.createElementVNode("div",{class:"title"},"节点否决后更新",-1)),N[35]||(N[35]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"},"节点否决后,更新数据对象的字段值")],-1)),i.createElementVNode("div",gY,[i.createElementVNode("div",mY,[i.createElementVNode("div",yY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.rejectFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",vY,[i.createElementVNode("div",bY,[i.createElementVNode("div",wY,[i.createElementVNode("div",_Y,[i.createElementVNode("span",CY,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>w(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",EY,[B.nodeId?(i.openBlock(),i.createElementBlock("div",kY,[i.createElementVNode("div",xY,[i.createElementVNode("div",NY,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[24]||(N[24]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[25]||(N[25]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",SY,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>_(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",DY,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[26]||(N[26]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",BY,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[7]||(N[7]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",OY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>y(B)},i.toDisplayString(B.columnComment),9,AY)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])]),N[36]||(N[36]=i.createElementVNode("div",{class:"title"},"节点退回后更新",-1)),N[37]||(N[37]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"},"节点退回后,更新数据对象的字段值")],-1)),i.createElementVNode("div",VY,[i.createElementVNode("div",FY,[i.createElementVNode("div",TY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.backFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",PY,[i.createElementVNode("div",jY,[i.createElementVNode("div",IY,[i.createElementVNode("div",LY,[i.createElementVNode("span",RY,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>g(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",MY,[B.nodeId?(i.openBlock(),i.createElementBlock("div",zY,[i.createElementVNode("div",UY,[i.createElementVNode("div",HY,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[27]||(N[27]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[28]||(N[28]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",WY,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>b(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",qY,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[29]||(N[29]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",GY,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[8]||(N[8]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",KY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>m(B)},i.toDisplayString(B.columnComment),9,YY)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])]),_:3})]),_:3},8,["modelValue"])])}}},[["__scopeId","data-v-35f34b24"]])},Symbol.toStringTag,{value:"Module"})),ZY=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"buttonDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.inject(Qn),o=i.inject(vG);async function a(){var l,s;if((l=t.config)!=null&&l.workId){const c=await r((s=t.config)==null?void 0:s.workId);c!=null&&c.fieldList&&(t.config.fields=c==null?void 0:c.fieldList,t.config.workName=c==null?void 0:c.workName)}if(n.value.procId){const c=await o({procId:n.value.procId});c!=null&&c.buttonName&&(t.config.buttonName=c.buttonName)}}return a(),(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(u,{model:t.config,"label-width":"80px"},{default:i.withCtx(()=>[i.createVNode(c,{label:"工作表"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.config.workName),1)]),_:1}),i.createVNode(c,{label:"数据源"},{default:i.withCtx(()=>s[0]||(s[0]=[i.createTextVNode("单条记录")])),_:1}),i.createVNode(c,{label:"按钮"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.config.buttonName),1)]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),JY={style:{float:"left"}},QY={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},$Y={class:"config-detail"},eX={class:"config-item"},tX={class:"children-query",style:{"margin-top":"20px"}},nX={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},rX={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},oX={style:{flex:"1"}},iX={class:"flex-both"},aX={class:"flex"},lX={class:"txt-label"},sX={class:"condition-select"},cX={key:0,class:"function-tag"},uX={class:"box"},dX={class:"ellipsis table-name"},fX={class:"field-name ellipsis"},pX={style:{margin:"20px 0"}},hX={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},gX={class:"field-list"},mX=["onClick"],yX=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"conditionDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);t.node.nodeId||(t.node.nodeId=zu());function r(m,g,b=[]){if(!m||m.nodeId===g)return b;["search","flow","add","button","table"].includes(m.nodeType)&&b.push(m);let w=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const _ of m.conditionNodes)if(Ft(_,g)){r(_.childNode,g,b),w=!0;break}}return!w&&m.childNode&&r(m.childNode,g,b),b}function o(m,g,b=[]){if(m.nodeId===g)return b;(m.nodeType==="search"||m.nodeType==="add"||m.nodeType==="flow"||m.nodeType==="button"||m.nodeType==="table"||m.nodeType==="api")&&b.push(m);let y=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const w of m.conditionNodes)if(Ft(w,g)){r(w.childNode,g,b),y=!0;break}}return!y&&m.childNode&&o(m.childNode,g,b),b}const a=i.computed(()=>{const m=[];return r(n.value.nodeConfig,t.node.nodeId,m),m}),l=i.computed(()=>{const m=[];return m.push(Jr.defaultNode),o(n.value.nodeConfig,t.node.nodeId,m),m});async function s(){const m=a.value.find(g=>g.nodeId===t.config.selectNodeId);m&&(t.config.workId=m.config.workId,t.config.workName=m.config.workName,t.config.fields=xn(m.config.fields))}const c=i.ref(""),u=i.computed(()=>{var g,b;const m=c.value.trim().toLowerCase();return(b=(g=t.config)==null?void 0:g.fields)==null?void 0:b.filter(y=>[y.columnName,y.columnComment].some(w=>String(w||"").toLowerCase().includes(m)))}),d=i.ref("and");function f(){t.config.filter.forEach(m=>{m.join=d.value})}function h(m){m.join=d.value,m.compare=10,t.config.filter.push({...m})}function p(m){t.config.filter.splice(m,1)}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("Close"),E=i.resolveComponent("el-icon"),x=i.resolveComponent("el-input"),C=i.resolveComponent("el-button"),S=i.resolveComponent("el-popover"),N=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[g[8]||(g[8]=i.createElementVNode("div",{class:"header"},"设置筛选条件后,满足条件的数据才能进入该分支",-1)),i.createVNode(N,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择获取对象"},{default:i.withCtx(()=>[g[3]||(g[3]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(y,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":g[0]||(g[0]=O=>t.config.selectNodeId=O),filterable:"",onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(O,P)=>(i.openBlock(),i.createBlock(b,{key:P,label:O.nodeName,value:O.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",JY,i.toDisplayString(O.nodeName),1),i.createElementVNode("span",QY,' 工作表 "'+i.toDisplayString(O.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createElementVNode("div",$Y,[g[7]||(g[7]=i.createElementVNode("div",{class:"item-label"},"条件规则",-1)),i.createElementVNode("div",eX,[i.createElementVNode("div",tX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(O,P)=>{var I;return i.openBlock(),i.createElementBlock("div",{key:P,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",nX,[P===0?(i.openBlock(),i.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[1]||(g[1]=W=>d.value=W),onChange:f},{default:i.withCtx(()=>[i.createVNode(b,{label:"且",value:"and"}),i.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",rX,i.toDisplayString(O.join==="and"?"且":"或"),1))]),i.createElementVNode("div",oX,[i.createElementVNode("div",iX,[i.createElementVNode("div",aX,[i.createElementVNode("span",lX,i.toDisplayString(O.columnComment),1),i.createElementVNode("span",null,[i.createVNode(y,{modelValue:O.compare,"onUpdate:modelValue":W=>O.compare=W,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(b,{label:"等于",value:10}),i.createVNode(b,{label:"不等于",value:110}),i.createVNode(b,{label:"大于",value:20}),i.createVNode(b,{label:"大于等于",value:21}),i.createVNode(b,{label:"小于",value:30}),i.createVNode(b,{label:"小于等于",value:31}),i.createVNode(b,{label:"包含",value:50}),i.createVNode(b,{label:"不包含",value:150}),i.createVNode(b,{label:"区间",value:80}),i.createVNode(b,{label:"为空",value:90}),i.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(E,{class:"close-icon",onClick:W=>p(P)},{default:i.withCtx(()=>[i.createVNode(_)]),_:2},1032,["onClick"])]),i.createElementVNode("span",sX,[O.nodeId?(i.openBlock(),i.createElementBlock("div",cX,[i.createElementVNode("div",uX,[i.createElementVNode("div",dX,[i.createElementVNode("span",null,i.toDisplayString(O.nodeName),1),g[4]||(g[4]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[5]||(g[5]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",fX,i.toDisplayString(O.fieldValueName),1)]),i.createVNode(E,{onClick:W=>v(O)},{default:i.withCtx(()=>[i.createVNode(_)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((I=O==null?void 0:O.fieldAttr)==null?void 0:I.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:O.fieldValue,"onUpdate:modelValue":W=>O.fieldValue=W,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.fieldAttr.enum,(W,R)=>(i.openBlock(),i.createBlock(b,{key:R,label:W.label,value:W.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(x,{key:1,modelValue:O.fieldValue,"onUpdate:modelValue":W=>O.fieldValue=W,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:O,varList:l.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",pX,[i.createVNode(S,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(C,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>g[6]||(g[6]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",hX,[i.createVNode(x,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[2]||(g[2]=O=>c.value=O)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",gX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(O,P)=>(i.openBlock(),i.createElementBlock("div",{key:P,class:"field-item",onClick:I=>h(O)},i.toDisplayString(O.columnComment),9,mX))),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-67fce240"]])},Symbol.toStringTag,{value:"Module"})),vX={style:{float:"left"}},bX={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},wX=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"delDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(l,s,c=[]){if(l.nodeId===s)return c;(l.nodeType==="odd"||l.nodeType==="search"||l.nodeType==="add"||l.nodeType==="button"||l.nodeType==="table")&&c.push(l);let u=!1;if(l.nodeType==="router"&&l.conditionNodes){for(const d of l.conditionNodes)if(Ft(d,s)){r(d.childNode,s,c),u=!0;break}}return!u&&l.childNode&&r(l.childNode,s,c),c}const o=i.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=o.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName)}return(l,s)=>{const c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("el-form-item"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(d,{label:"选择删除对象"},{default:i.withCtx(()=>[s[1]||(s[1]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(h,p)=>(i.openBlock(),i.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",vX,i.toDisplayString(h.nodeName),1),i.createElementVNode("span",bX,' 工作表 "'+i.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-f3eb02fd"]])},Symbol.toStringTag,{value:"Module"}));var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _X(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nl(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vi,Xh,Zh=function(e){return e&&e.Math==Math&&e},Ve=Zh(typeof globalThis=="object"&&globalThis)||Zh(typeof window=="object"&&window)||Zh(typeof self=="object"&&self)||Zh(typeof dt=="object"&&dt)||function(){return this}()||Function("return this")(),kb=Function.prototype,AN=kb.apply,CX=kb.bind,VN=kb.call,FN=typeof Reflect=="object"&&Reflect.apply||(CX?VN.bind(AN):function(){return VN.apply(AN,arguments)}),TN=Function.prototype,xb=TN.bind,Nb=TN.call,EX=xb&&xb.bind(Nb),yt=xb?function(e){return e&&EX(Nb,e)}:function(e){return e&&function(){return Nb.apply(e,arguments)}},Nn=function(e){return typeof e=="function"},$n=function(e){try{return!!e()}catch{return!0}},er=!$n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Gu=Function.prototype.call,fr=Gu.bind?Gu.bind(Gu):function(){return Gu.apply(Gu,arguments)},PN={}.propertyIsEnumerable,jN=Object.getOwnPropertyDescriptor,kX=jN&&!PN.call({1:2},1)?function(e){var t=jN(this,e);return!!t&&t.enumerable}:PN,Sb={f:kX},eo=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xX=yt({}.toString),NX=yt("".slice),rl=function(e){return NX(xX(e),8,-1)},Db=Ve.Object,SX=yt("".split),IN=$n(function(){return!Db("z").propertyIsEnumerable(0)})?function(e){return rl(e)=="String"?SX(e,""):Db(e)}:Db,DX=Ve.TypeError,Bb=function(e){if(e==null)throw DX("Can't call method on "+e);return e},_o=function(e){return IN(Bb(e))},Or=function(e){return typeof e=="object"?e!==null:Nn(e)},pr={},LN=function(e){return Nn(e)?e:void 0},Rs=function(e,t){return arguments.length<2?LN(pr[e])||LN(Ve[e]):pr[e]&&pr[e][t]||Ve[e]&&Ve[e][t]},Ku=yt({}.isPrototypeOf),Ob=Rs("navigator","userAgent")||"",RN=Ve.process,MN=Ve.Deno,zN=RN&&RN.versions||MN&&MN.version,UN=zN&&zN.v8;UN&&(Xh=(Vi=UN.split("."))[0]>0&&Vi[0]<4?1:+(Vi[0]+Vi[1])),!Xh&&Ob&&(!(Vi=Ob.match(/Edge\/(\d+)/))||Vi[1]>=74)&&(Vi=Ob.match(/Chrome\/(\d+)/))&&(Xh=+Vi[1]);var Jh,Qh=Xh,Co=!!Object.getOwnPropertySymbols&&!$n(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qh&&Qh<41}),Ab=Co&&!Symbol.sham&&typeof Symbol.iterator=="symbol",BX=Ve.Object,Ms=Ab?function(e){return typeof e=="symbol"}:function(e){var t=Rs("Symbol");return Nn(t)&&Ku(t.prototype,BX(e))},OX=Ve.String,Vb=function(e){try{return OX(e)}catch{return"Object"}},AX=Ve.TypeError,Fb=function(e){if(Nn(e))return e;throw AX(Vb(e)+" is not a function")},$h=function(e,t){var n=e[t];return n==null?void 0:Fb(n)},VX=Ve.TypeError,FX=Object.defineProperty,Fi=Ve["__core-js_shared__"]||function(e,t){try{FX(Ve,e,{value:t,configurable:!0,writable:!0})}catch{Ve[e]=t}return t}("__core-js_shared__",{}),ol=nl(function(e){(e.exports=function(t,n){return Fi[t]||(Fi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),TX=Ve.Object,Yu=function(e){return TX(Bb(e))},PX=yt({}.hasOwnProperty),We=Object.hasOwn||function(e,t){return PX(Yu(e),t)},jX=0,IX=Math.random(),LX=yt(1 .toString),eg=function(e){return"Symbol("+(e===void 0?"":e)+")_"+LX(++jX+IX,36)},Xu=ol("wks"),il=Ve.Symbol,HN=il&&il.for,RX=Ab?il:il&&il.withoutSetter||eg,Fn=function(e){if(!We(Xu,e)||!Co&&typeof Xu[e]!="string"){var t="Symbol."+e;Co&&We(il,e)?Xu[e]=il[e]:Xu[e]=Ab&&HN?HN(t):RX(t)}return Xu[e]},MX=Ve.TypeError,zX=Fn("toPrimitive"),UX=function(e,t){if(!Or(e)||Ms(e))return e;var n,r=$h(e,zX);if(r){if(n=fr(r,e,t),!Or(n)||Ms(n))return n;throw MX("Can't convert object to primitive value")}return function(o,a){var l,s;if(Nn(l=o.toString)&&!Or(s=fr(l,o))||Nn(l=o.valueOf)&&!Or(s=fr(l,o)))return s;throw VX("Can't convert object to primitive value")}(e)},zs=function(e){var t=UX(e,"string");return Ms(t)?t:t+""},Tb=Ve.document,HX=Or(Tb)&&Or(Tb.createElement),WN=function(e){return HX?Tb.createElement(e):{}},qN=!er&&!$n(function(){return Object.defineProperty(WN("div"),"a",{get:function(){return 7}}).a!=7}),GN=Object.getOwnPropertyDescriptor,WX=er?GN:function(e,t){if(e=_o(e),t=zs(t),qN)try{return GN(e,t)}catch{}if(We(e,t))return eo(!fr(Sb.f,e,t),e[t])},tg={f:WX},qX=/#|\.prototype\./,Zu=function(e,t){var n=KX[GX(e)];return n==XX||n!=YX&&(Nn(t)?$n(t):!!t)},GX=Zu.normalize=function(e){return String(e).replace(qX,".").toLowerCase()},KX=Zu.data={},YX=Zu.NATIVE="N",XX=Zu.POLYFILL="P",ZX=Zu,KN=yt(yt.bind),Pb=function(e,t){return Fb(e),t===void 0?e:KN?KN(e,t):function(){return e.apply(t,arguments)}},JX=Ve.String,QX=Ve.TypeError,hr=function(e){if(Or(e))return e;throw QX(JX(e)+" is not an object")},$X=Ve.TypeError,YN=Object.defineProperty,eZ=er?YN:function(e,t,n){if(hr(e),t=zs(t),hr(n),qN)try{return YN(e,t,n)}catch{}if("get"in n||"set"in n)throw $X("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ti={f:eZ},Hn=er?function(e,t,n){return Ti.f(e,t,eo(1,n))}:function(e,t,n){return e[t]=n,e},tZ=tg.f,nZ=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return FN(e,this,arguments)};return t.prototype=e.prototype,t},ti=function(e,t){var n,r,o,a,l,s,c,u,d=e.target,f=e.global,h=e.stat,p=e.proto,v=f?Ve:h?Ve[d]:(Ve[d]||{}).prototype,m=f?pr:pr[d]||Hn(pr,d,{})[d],g=m.prototype;for(o in t)n=!ZX(f?o:d+(h?".":"#")+o,e.forced)&&v&&We(v,o),l=m[o],n&&(s=e.noTargetGet?(u=tZ(v,o))&&u.value:v[o]),a=n&&s?s:t[o],n&&typeof l==typeof a||(c=e.bind&&n?Pb(a,Ve):e.wrap&&n?nZ(a):p&&Nn(a)?yt(a):a,(e.sham||a&&a.sham||l&&l.sham)&&Hn(c,"sham",!0),Hn(m,o,c),p&&(We(pr,r=d+"Prototype")||Hn(pr,r,{}),Hn(pr[r],o,a),e.real&&g&&!g[o]&&Hn(g,o,a)))},XN=ol("keys"),ng=function(e){return XN[e]||(XN[e]=eg(e))},rZ=!$n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ZN=ng("IE_PROTO"),jb=Ve.Object,oZ=jb.prototype,rg=rZ?jb.getPrototypeOf:function(e){var t=Yu(e);if(We(t,ZN))return t[ZN];var n=t.constructor;return Nn(n)&&t instanceof n?n.prototype:t instanceof jb?oZ:null},iZ=Ve.String,aZ=Ve.TypeError,og=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=yt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return hr(r),function(a){if(typeof a=="object"||Nn(a))return a;throw aZ("Can't set "+iZ(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),lZ=Math.ceil,sZ=Math.floor,Ib=function(e){var t=+e;return t!=t||t===0?0:(t>0?sZ:lZ)(t)},cZ=Math.max,uZ=Math.min,Lb=function(e,t){var n=Ib(e);return n<0?cZ(n+t,0):uZ(n,t)},dZ=Math.min,Ju=function(e){return(t=e.length)>0?dZ(Ib(t),9007199254740991):0;var t},fZ=function(e){return function(t,n,r){var o,a=_o(t),l=Ju(a),s=Lb(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},pZ={indexOf:fZ(!1)},Qu={},hZ=pZ.indexOf,JN=yt([].push),QN=function(e,t){var n,r=_o(e),o=0,a=[];for(n in r)!We(Qu,n)&&We(r,n)&&JN(a,n);for(;t.length>o;)We(r,n=t[o++])&&(~hZ(a,n)||JN(a,n));return a},ig=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gZ=ig.concat("length","prototype"),mZ=Object.getOwnPropertyNames||function(e){return QN(e,gZ)},Rb={f:mZ},ag={f:Object.getOwnPropertySymbols},yZ=yt([].concat),vZ=Rs("Reflect","ownKeys")||function(e){var t=Rb.f(hr(e)),n=ag.f;return n?yZ(t,n(e)):t},Mb=Object.keys||function(e){return QN(e,ig)},bZ=er?Object.defineProperties:function(e,t){hr(e);for(var n,r=_o(t),o=Mb(t),a=o.length,l=0;a>l;)Ti.f(e,n=o[l++],r[n]);return e},wZ=Rs("document","documentElement"),$N=ng("IE_PROTO"),zb=function(){},e5=function(e){return"<script>"+e+"<\/script>"},t5=function(e){e.write(e5("")),e.close();var t=e.parentWindow.Object;return e=null,t},lg=function(){try{Jh=new ActiveXObject("htmlfile")}catch{}var e,t;lg=typeof document<"u"?document.domain&&Jh?t5(Jh):((t=WN("iframe")).style.display="none",wZ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(e5("document.F=Object")),e.close(),e.F):t5(Jh);for(var n=ig.length;n--;)delete lg.prototype[ig[n]];return lg()};Qu[$N]=!0;var ni=Object.create||function(e,t){var n;return e!==null?(zb.prototype=hr(e),n=new zb,zb.prototype=null,n[$N]=e):n=lg(),t===void 0?n:bZ(n,t)},Ub=function(e,t,n){var r=zs(t);r in e?Ti.f(e,r,eo(0,n)):e[r]=n},_Z=Ve.Array,CZ=Math.max,n5=function(e,t,n){for(var r=Ju(e),o=Lb(t,r),a=Lb(r,r),l=_Z(CZ(a-o,0)),s=0;o<a;o++,s++)Ub(l,s,e[o]);return l.length=s,l},EZ=yt("".replace),kZ=yt("".split),xZ=yt([].join),Hb=String(Error("zxcasd").stack),r5=/\n\s*at [^:]*:[^\n]*/,NZ=r5.test(Hb),SZ=/@[^\n]*\n/.test(Hb)&&!/zxcasd/.test(Hb),DZ=function(e,t){if(typeof e!="string")return e;if(NZ)for(;t--;)e=EZ(e,r5,"");else if(SZ)return xZ(n5(kZ(e,`
|
|
6
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:o,nextZIndex:a}},Tq=dN({type:String,values:kq,required:!1}),Pq=Symbol("size"),jq=Symbol("emptyValuesContextKey"),Iq=qu({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Uh(e)?!e():!e}}),_N=Symbol(),Kh=i.ref();function CN(e,t=void 0){return i.getCurrentInstance()?i.inject(_N,Kh):Kh}function Lq(e,t){const n=CN(),r=wb(e,i.computed(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Gh})),o=Oq(i.computed(()=>{var s;return(s=n.value)==null?void 0:s.locale})),a=Fq(i.computed(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||vN})),l=i.computed(()=>{var s;return i.unref(t)||((s=n.value)==null?void 0:s.size)||""});return EN(i.computed(()=>i.unref(n)||{})),{ns:r,locale:o,zIndex:a,size:l}}const EN=(e,t,n=!1)=>{var r;const o=!!i.getCurrentInstance(),a=o?CN():void 0,l=(r=void 0)!=null?r:o?i.provide:void 0;if(!l){qh("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const s=i.computed(()=>{const c=i.unref(e);return a!=null&&a.value?Rq(a.value,c):c});return l(_N,s),l(hN,i.computed(()=>s.value.locale)),l(gN,i.computed(()=>s.value.namespace)),l(wN,i.computed(()=>s.value.zIndex)),l(Pq,{size:i.computed(()=>s.value.size||"")}),l(jq,i.computed(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!Kh.value)&&(Kh.value=s.value),s},Rq=(e,t)=>{const n=[...new Set([...cN(e),...cN(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},Mq=qu({a11y:{type:Boolean,default:!0},locale:{type:wo(Object)},size:Tq,button:{type:wo(Object)},experimentalFeatures:{type:wo(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:wo(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Iq}),Qr={};i.defineComponent({name:"ElConfigProvider",props:Mq,setup(e,{slots:t}){i.watch(()=>e.message,r=>{Object.assign(Qr,r??{})},{immediate:!0,deep:!0});const n=EN(e);return()=>i.renderSlot(t,"default",{config:n==null?void 0:n.value})}});var _b=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const zq=qu({size:{type:wo([Number,String])},color:{type:String}}),Uq=i.defineComponent({name:"ElIcon",inheritAttrs:!1}),Hq=i.defineComponent({...Uq,props:zq,setup(e){const t=e,n=wb("icon"),r=i.computed(()=>{const{size:o,color:a}=t;return!o&&!a?{}:{fontSize:hq(o)?void 0:bb(o),"--color":a}});return(o,a)=>(i.openBlock(),i.createElementBlock("i",i.mergeProps({class:i.unref(n).b(),style:i.unref(r)},o.$attrs),[i.renderSlot(o.$slots,"default")],16))}});var Wq=_b(Hq,[["__file","icon.vue"]]);const kN=pN(Wq),qq=qu({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:wo([String,Object,Array])},offset:{type:wo(Array),default:[0,0]},badgeClass:{type:String}}),Gq=i.defineComponent({name:"ElBadge"}),Kq=i.defineComponent({...Gq,props:qq,setup(e,{expose:t}){const n=e,r=wb("badge"),o=i.computed(()=>n.isDot?"":el(n.value)&&el(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),a=i.computed(()=>{var l,s,c,u,d;return[{backgroundColor:n.color,marginRight:bb(-((s=(l=n.offset)==null?void 0:l[0])!=null?s:0)),marginTop:bb((u=(c=n.offset)==null?void 0:c[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:o}),(l,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(r).b())},[i.renderSlot(l.$slots,"default"),i.createVNode(i.Transition,{name:`${i.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("sup",{class:i.normalizeClass([i.unref(r).e("content"),i.unref(r).em("content",l.type),i.unref(r).is("fixed",!!l.$slots.default),i.unref(r).is("dot",l.isDot),i.unref(r).is("hide-zero",!l.showZero&&n.value===0),l.badgeClass]),style:i.normalizeStyle(i.unref(a)),textContent:i.toDisplayString(i.unref(o))},null,14,["textContent"]),[[i.vShow,!l.hidden&&(i.unref(o)||l.isDot)]])]),_:1},8,["name"])],2))}});var Yq=_b(Kq,[["__file","badge.vue"]]);const Xq=pN(Yq);function Zq(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jq(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}const xN=["success","info","warning","error"],An=xq({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ts?document.body:void 0}),Qq=qu({customClass:{type:String,default:An.customClass},center:{type:Boolean,default:An.center},dangerouslyUseHTMLString:{type:Boolean,default:An.dangerouslyUseHTMLString},duration:{type:Number,default:An.duration},icon:{type:wq,default:An.icon},id:{type:String,default:An.id},message:{type:wo([String,Object,Function]),default:An.message},onClose:{type:wo(Function),default:An.onClose},showClose:{type:Boolean,default:An.showClose},type:{type:String,values:xN,default:An.type},plain:{type:Boolean,default:An.plain},offset:{type:Number,default:An.offset},zIndex:{type:Number,default:An.zIndex},grouping:{type:Boolean,default:An.grouping},repeatNum:{type:Number,default:An.repeatNum}}),$q={destroy:()=>!0},$r=i.shallowReactive([]),eG=e=>{const t=$r.findIndex(o=>o.id===e),n=$r[t];let r;return t>0&&(r=$r[t-1]),{current:n,prev:r}},tG=e=>{const{prev:t}=eG(e);return t?t.vm.exposed.bottom.value:0},nG=(e,t)=>$r.findIndex(r=>r.id===e)>0?16:t,rG=i.defineComponent({name:"ElMessage"}),oG=i.defineComponent({...rG,props:Qq,emits:$q,setup(e,{expose:t}){const n=e,{Close:r}=_q,{ns:o,zIndex:a}=Lq("message"),{currentZIndex:l,nextZIndex:s}=a,c=i.ref(),u=i.ref(!1),d=i.ref(0);let f;const h=i.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),p=i.computed(()=>{const C=n.type;return{[o.bm("icon",C)]:C&&fN[C]}}),v=i.computed(()=>n.icon||fN[n.type]||""),m=i.computed(()=>tG(n.id)),g=i.computed(()=>nG(n.id,n.offset)+m.value),b=i.computed(()=>d.value+g.value),y=i.computed(()=>({top:`${g.value}px`,zIndex:l.value}));function w(){n.duration!==0&&({stop:f}=jH(()=>{E()},n.duration))}function _(){f==null||f()}function E(){u.value=!1}function x({code:C}){C===Eq.esc&&E()}return i.onMounted(()=>{w(),s(),u.value=!0}),i.watch(()=>n.repeatNum,()=>{_(),w()}),IH(document,"keydown",x),UH(c,()=>{d.value=c.value.getBoundingClientRect().height}),t({visible:u,bottom:b,close:E}),(C,S)=>(i.openBlock(),i.createBlock(i.Transition,{name:i.unref(o).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:N=>C.$emit("destroy"),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{id:C.id,ref_key:"messageRef",ref:c,class:i.normalizeClass([i.unref(o).b(),{[i.unref(o).m(C.type)]:C.type},i.unref(o).is("center",C.center),i.unref(o).is("closable",C.showClose),i.unref(o).is("plain",C.plain),C.customClass]),style:i.normalizeStyle(i.unref(y)),role:"alert",onMouseenter:_,onMouseleave:w},[C.repeatNum>1?(i.openBlock(),i.createBlock(i.unref(Xq),{key:0,value:C.repeatNum,type:i.unref(h),class:i.normalizeClass(i.unref(o).e("badge"))},null,8,["value","type","class"])):i.createCommentVNode("v-if",!0),i.unref(v)?(i.openBlock(),i.createBlock(i.unref(kN),{key:1,class:i.normalizeClass([i.unref(o).e("icon"),i.unref(p)])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(v))))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.renderSlot(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),i.createElementVNode("p",{class:i.normalizeClass(i.unref(o).e("content")),innerHTML:C.message},null,10,["innerHTML"])],2112)):(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(i.unref(o).e("content"))},i.toDisplayString(C.message),3))]),C.showClose?(i.openBlock(),i.createBlock(i.unref(kN),{key:2,class:i.normalizeClass(i.unref(o).e("closeBtn")),onClick:i.withModifiers(E,["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(r))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],46,["id"]),[[i.vShow,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var iG=_b(oG,[["__file","message.vue"]]);let aG=1;const NN=e=>{const t=!e||Uu(e)||i.isVNode(e)||Uh(e)?{message:e}:e,n={...An,...t};if(!n.appendTo)n.appendTo=document.body;else if(Uu(n.appendTo)){let r=document.querySelector(n.appendTo);gq(r)||(qh("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),n.appendTo=r}return sN(Qr.grouping)&&!n.grouping&&(n.grouping=Qr.grouping),el(Qr.duration)&&n.duration===3e3&&(n.duration=Qr.duration),el(Qr.offset)&&n.offset===16&&(n.offset=Qr.offset),sN(Qr.showClose)&&!n.showClose&&(n.showClose=Qr.showClose),n},lG=e=>{const t=$r.indexOf(e);if(t===-1)return;$r.splice(t,1);const{handler:n}=e;n.close()},sG=({appendTo:e,...t},n)=>{const r=`message_${aG++}`,o=t.onClose,a=document.createElement("div"),l={...t,id:r,onClose:()=>{o==null||o(),lG(d)},onDestroy:()=>{i.render(null,a)}},s=i.createVNode(iG,l,Uh(l.message)||i.isVNode(l.message)?{default:Uh(l.message)?l.message:()=>l.message}:null);s.appContext=n||Is._context,i.render(s,a),e.appendChild(a.firstElementChild);const c=s.component,d={id:r,vnode:s,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:s.component.props};return d},Is=(e={},t)=>{if(!Ts)return{close:()=>{}};const n=NN(e);if(n.grouping&&$r.length){const o=$r.find(({vnode:a})=>{var l;return((l=a.props)==null?void 0:l.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(el(Qr.max)&&$r.length>=Qr.max)return{close:()=>{}};const r=sG(n,t);return $r.push(r),r.handler};xN.forEach(e=>{Is[e]=(t={},n)=>{const r=NN(t);return Is({...r,type:e},n)}});function cG(e){for(const t of $r)(!e||e===t.props.type)&&t.handler.close()}Is.closeAll=cG,Is._context=null;const uG=Cq(Is,"$message"),dG={class:"ep-node-add"},fG={key:0,ref:"nodeAddBtn",class:"ep-node-add-btn"},pG={ref:"nodeAddSelect",class:"ep-node-add-select-box"},hG={class:"ep-node-add-select-group-title"},gG=["onClick","onMouseenter","onMouseleave"],mG={class:"ep-node-add-select-item-title"},Yh=et(i.defineComponent({__name:"AddNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref([]);Object.keys($e).forEach(s=>{const c=$e[s];c.canAdd&&n.value.push({title:c.title,type:s,icon:c.icon,isSelected:!1})});const r=[{title:"数据处理",keys:["add","edit","del","search","odd","summary"]},{title:"待办",keys:["start","approver","notify"]},{title:"通知",keys:["system","wechat","ding","email"]},{title:"构件",keys:["flow","router","branch","api","ui"]}],o=i.ref([]);i.onMounted(async()=>{r.forEach(s=>{const c={title:s.title,items:[]};s.keys.forEach(u=>{const d=n.value.find(f=>f.type===u);d&&c.items.push({...d})}),c.items.length>0&&o.value.push(c)})});const a=(s,c)=>{c?s.selected=!0:s.selected=!1},l=s=>{const c=$e[s];if(s==="branch"&&t.node.nodeType!=="search"){uG.error("判断条件分支只能在单条查询节点下面");return}if(c){const u=xn(c.defaultNode);u.nodeId=zu();const d=xn(t.node.childNode);u.childNode=d,t.node.childNode=u,s==="branch"&&(t.node.childNode.config={selectNodeId:t.node.nodeId})}};return(s,c)=>{const u=i.resolveComponent("Icon"),d=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",dG,[t.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",fG,[i.createVNode(d,{placement:"right",width:560,trigger:"hover"},{reference:i.withCtx(()=>[i.createVNode(u,{name:"plus",class:"ep-node-add-btn-icon",color:"#FFFFFF"})]),default:i.withCtx(()=>[i.createElementVNode("div",pG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,f=>(i.openBlock(),i.createElementBlock("div",{key:f.title,class:"ep-node-add-select-group"},[i.createElementVNode("div",hG,i.toDisplayString(f.title),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.items,h=>(i.openBlock(),i.createElementBlock("div",{key:h.type,class:i.normalizeClass(["ep-node-add-select-item",h.selected?"ep-node-add-selected":""]),onClick:p=>l(h.type),onMouseenter:p=>a(h,!0),onMouseleave:p=>a(h,!1)},[i.createElementVNode("div",{class:"ep-node-add-select-item-icon",style:i.normalizeStyle({backgroundColor:h.icon.color})},[i.createVNode(u,{name:h.icon.name,color:"#FFFFFF"},null,8,["name"])],4),i.createElementVNode("div",mG,i.toDisplayString(h.title),1)],42,gG))),128))]))),128))],512)]),_:1})],512))])}}}),[["__scopeId","data-v-f48eb2d2"]]),yG=Object.freeze(Object.defineProperty({__proto__:null,default:Yh},Symbol.toStringTag,{value:"Module"})),Rt="validator",Vn="processData",Ls="app_work_list",Qn="app_work_info",vG="app_work_button_info",bG="app_work_drag",wG={key:0,class:"ep-node-header",style:{"background-color":"#ffffff"}},_G={class:"ep-node-header-title"},CG={key:2,class:"ep-node-move ep-node-move-left"},EG={key:3,class:"ep-node-move ep-node-move-right"},kG={key:4,class:"ep-node-error-msg"},xG={class:"ep-node-error-msg-box"},NG={key:0,class:"ep-node-error-tips"},SN=et(i.defineComponent({__name:"BaseNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})},conditionNodes:{type:Array,default:()=>[]},conditionIndex:{type:Number,default:0}},emits:["removeNode"],setup(e,{emit:t}){const n=e,{proxy:r}=i.getCurrentInstance(),o=zu(),a=i.ref($e[n.node.nodeType]),l=i.inject(Rt),s=i.ref(null),c=i.ref(!1);i.watch(()=>n.node,()=>{a.value=$e[n.node.nodeType],l.validate()});const u=Object.assign({"../add/addNode.vue":()=>Promise.resolve().then(()=>J8e),"../api/apiNode.vue":()=>Promise.resolve().then(()=>e6e),"../approver/approverNode.vue":()=>Promise.resolve().then(()=>t6e),"./AddNode.vue":()=>Promise.resolve().then(()=>yG),"./BaseNode.vue":()=>Promise.resolve().then(()=>SG),"../branch/branchNode.vue":()=>Promise.resolve().then(()=>i6e),"../button/buttonNode.vue":()=>Promise.resolve().then(()=>l6e),"../condition/conditionNode.vue":()=>Promise.resolve().then(()=>p6e),"../del/delNode.vue":()=>Promise.resolve().then(()=>m6e),"../ding/dingNode.vue":()=>Promise.resolve().then(()=>b6e),"../edit/editNode.vue":()=>Promise.resolve().then(()=>C6e),"../email/emailNode.vue":()=>Promise.resolve().then(()=>x6e),"../end/endNode.vue":()=>Promise.resolve().then(()=>FG),"../flow/flowNode.vue":()=>Promise.resolve().then(()=>D6e),"../notify/notifyNode.vue":()=>Promise.resolve().then(()=>B6e),"../odd/oddNode.vue":()=>Promise.resolve().then(()=>V6e),"../router/routerNode.vue":()=>Promise.resolve().then(()=>OG),"../search/searchNode.vue":()=>Promise.resolve().then(()=>P6e),"../start/startNode.vue":()=>Promise.resolve().then(()=>j6e),"../summary/summaryNode.vue":()=>Promise.resolve().then(()=>R6e),"../system/systemNode.vue":()=>Promise.resolve().then(()=>U6e),"../table/tableNode.vue":()=>Promise.resolve().then(()=>G6e),"../time/timeNode.vue":()=>Promise.resolve().then(()=>X6e),"../ui/uiNode.vue":()=>Promise.resolve().then(()=>Q6e),"../wechat/wechatNode.vue":()=>Promise.resolve().then(()=>tNe)}),d=i.shallowRef({});Object.keys($e).forEach(j=>{const T=i.defineAsyncComponent(u[`../${j}/${j}Node.vue`]);d.value[j]=T});const f=i.ref(!1),h=i.ref(!1),p=i.ref(!1),v=i.ref(!1);i.onMounted(async()=>{}),i.onUnmounted(async()=>{l.remove(o),l.validate()});const m=i.computed(()=>["time","button","table","flow"].includes(n.node.nodeType)),g=()=>{const j=l.getResult(o);return j?(s.value=j.message,!j.valid):(s.value=null,!1)},b=i.computed(()=>g()),y=i.computed(()=>x()||n.isView?!1:a.value.canRemoved),w=()=>{if(a.value.hasDrawer&&!n.isView){if(x()||E())return!1;r.$refs.nodeDrawer.show(n.node)}},_=()=>n.node.nodeType===ei,E=()=>{var j,T;return!!(_()&&((T=(j=n.node)==null?void 0:j.config)!=null&&T.isBanch))},x=()=>!!(_()&&n.node.isLastCondition),C=t,S=()=>{C("removeNode"),f.value=!1,p.value=!1},N=()=>{P(1,!0),P(2,!0)},O=()=>{P(1,!1),P(2,!1)},P=(j,T)=>{const J=n.conditionIndex,oe=n.conditionNodes.length;_()&&!x()&&(j===1&&J!==0?f.value=T:j===2&&J!==oe-2?p.value=T:p.value=!1)},I=(j,T)=>{j===1?h.value=T:v.value=T},W=j=>{const T=n.conditionIndex;if(j===1){const J=n.conditionNodes[T];n.conditionNodes[T]=n.conditionNodes[T-1],n.conditionNodes[T-1]=J}else{const J=n.conditionNodes[T];n.conditionNodes[T]=n.conditionNodes[T+1],n.conditionNodes[T+1]=J}},R=j=>{n.node.config=j,l.validate()},U=()=>{l.validate()},Q=j=>{c.value=j};return(j,T)=>{var oe,A;const J=i.resolveComponent("Icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({"ep-node":!0,"ep-node-arrows":!m.value})},[i.createElementVNode("div",{class:i.normalizeClass({"ep-node-content":!0,"ep-node-error":b.value}),onMouseenter:T[8]||(T[8]=k=>N()),onMouseleave:T[9]||(T[9]=k=>O())},[(A=(oe=n.node)==null?void 0:oe.config)!=null&&A.isBanch?(i.openBlock(),i.createElementBlock("div",wG,[T[10]||(T[10]=i.createElementVNode("div",{class:"ep-node-header-title"}," ",-1)),y.value?(i.openBlock(),i.createBlock(J,{key:0,name:"close",class:"ep-node-close",color:"#000000",onClick:S})):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",{key:1,class:"ep-node-header",style:i.normalizeStyle({color:a.value.color,"background-color":a.value.bgColor})},[i.createVNode(J,{name:a.value.icon.name,class:"ep-node-icon",color:"#FFFFFF"},null,8,["name"]),i.createElementVNode("div",_G,i.toDisplayString(e.node.nodeName),1),y.value?(i.openBlock(),i.createBlock(J,{key:0,name:"close",class:"ep-node-close",color:"#FFFFFF",onClick:S})):i.createCommentVNode("",!0)],4)),i.createElementVNode("div",{class:"ep-node-body",onClick:w},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.value[n.node.nodeType]),{ref:"node",tempNodeId:i.unref(o),node:n.node},null,8,["tempNodeId","node"]))]),f.value?(i.openBlock(),i.createElementBlock("div",CG,[i.createVNode(J,{name:"left",class:"ep-node-move-icon",color:h.value?"#1e83e9":"#696969",onClick:T[0]||(T[0]=k=>W(1)),onMouseenter:T[1]||(T[1]=k=>I(1,!0)),onMouseleave:T[2]||(T[2]=k=>I(1,!1))},null,8,["color"])])):i.createCommentVNode("",!0),p.value?(i.openBlock(),i.createElementBlock("div",EG,[i.createVNode(J,{name:"right",class:"ep-node-move-icon",color:v.value?"#1e83e9":"#696969",onClick:T[3]||(T[3]=k=>W(2)),onMouseenter:T[4]||(T[4]=k=>I(2,!0)),onMouseleave:T[5]||(T[5]=k=>I(2,!1))},null,8,["color"])])):i.createCommentVNode("",!0),b.value&&!n.isView?(i.openBlock(),i.createElementBlock("div",kG,[i.createElementVNode("div",xG,[i.createVNode(J,{name:"tips",class:"ep-node-error-icon",color:"red",onMouseenter:T[6]||(T[6]=k=>Q(!0)),onMouseleave:T[7]||(T[7]=k=>Q(!1))}),c.value&&s.value?(i.openBlock(),i.createElementBlock("div",NG,i.toDisplayString(s.value),1)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)],34),i.createVNode(Yh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"]),i.createVNode(z6,{ref:"nodeDrawer",onUpdateConfig:R,onCancelUpdateConfig:U},null,512)],2)}}}),[["__scopeId","data-v-d03f538f"]]),SG=Object.freeze(Object.defineProperty({__proto__:null,default:SN},Symbol.toStringTag,{value:"Module"})),DG={class:"ep-node-router"},BG={class:"ep-node-router-box"},DN=et(i.defineComponent({__name:"routerNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e,r=i.inject(Vn),o=t,a=u=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(u,1):o("removeNode")},l=()=>{const u=xn($e[ei].defaultNode),d=n.node.conditionNodes.length;n.node.conditionNodes.splice(d-1,0,u)};function s(u,d,f=null){return u.nodeId===d?f:(f=u,u.childNode?s(u.childNode,d,f):f)}const c=()=>{const u=s(r.value.nodeConfig,n.node.nodeId,null);u&&u.nodeId!==n.node.config.selectNodeId&&(n.node.config.selectNodeId=u.nodeId)};return(u,d)=>{var f;return i.openBlock(),i.createElementBlock("div",DG,[(f=n.node)!=null&&f.isBanch?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:c}," 判断条件 "))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:l}," 添加条件 "))],64)),i.createElementVNode("div",BG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.node.conditionNodes,(h,p)=>(i.openBlock(),i.createElementBlock("div",{class:"ep-node-router-col",key:p},[i.createVNode(Cb,{"is-view":n.isView,node:h,conditionNodes:n.node.conditionNodes,conditionIndex:p,onRemoveNode:v=>a(p)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),p==0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[d[0]||(d[0]=i.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),d[1]||(d[1]=i.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):i.createCommentVNode("",!0),p==n.node.conditionNodes.length-1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[d[2]||(d[2]=i.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),d[3]||(d[3]=i.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):i.createCommentVNode("",!0)]))),128))]),i.createVNode(Yh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-d6a40619"]]),OG=Object.freeze(Object.defineProperty({__proto__:null,default:DN},Symbol.toStringTag,{value:"Module"})),AG={key:0,class:"ep-node-wrap"},Cb=i.defineComponent({__name:"NodeWrap",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})},conditionNodes:{type:Array,default:()=>[]},conditionIndex:{type:Number,default:0},canRemoved:{type:Boolean,default:!0}},emits:["removeNode"],setup(e,{emit:t}){const n=e;i.onMounted(async()=>{});const r=t,o=()=>{r("removeNode")},a=()=>{const l=n.node.childNode.childNode;n.node.childNode=l};return(l,s)=>{const c=i.resolveComponent("NodeWrap",!0);return n.node?(i.openBlock(),i.createElementBlock("div",AG,[n.node.nodeType==i.unref(Jn)?(i.openBlock(),i.createBlock(DN,{key:0,"is-view":n.isView,node:n.node,onRemoveNode:o},null,8,["is-view","node"])):(i.openBlock(),i.createBlock(SN,{key:1,"is-view":n.isView,node:n.node,conditionNodes:n.conditionNodes,conditionIndex:n.conditionIndex,onRemoveNode:o},null,8,["is-view","node","conditionNodes","conditionIndex"])),n.node.childNode&&n.node.childNode.nodeType?(i.openBlock(),i.createBlock(c,{key:2,"is-view":n.isView,node:n.node.childNode,onRemoveNode:a},null,8,["is-view","node"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),VG={class:"ep-node-end"},BN=et(i.defineComponent({__name:"endNode",props:{node:{type:Object,default:()=>({})}},setup(e){return i.onMounted(async()=>{}),(t,n)=>(i.openBlock(),i.createElementBlock("div",VG,n[0]||(n[0]=[i.createElementVNode("div",{class:"ep-node-end-icon"},null,-1),i.createElementVNode("div",{class:"ep-node-end-text"},"流程结束",-1)])))}}),[["__scopeId","data-v-313f2629"]]),FG=Object.freeze(Object.defineProperty({__proto__:null,default:BN},Symbol.toStringTag,{value:"Module"})),TG={nodeConfig:{nodeName:"发起人",nodeType:"start",config:{}}},PG=()=>{const e={};return e.nodeRules=new Map,e.results=i.reactive(new Map),e.register=(t,n)=>{n&&n instanceof Function&&e.nodeRules.set(t,n)},e.remove=t=>{e.nodeRules.delete(t),e.results.delete(t)},e.validate=()=>{let t=!0;const n=[];return e.nodeRules.forEach((r,o)=>{const a=r;if(a&&a instanceof Function){const l=a();l.valid?e.results.delete(o):(t=!1,e.results.set(o,l),n.push(l.message))}}),{valid:t,messages:n}},e.getResult=t=>{const n=e.results.get(t);if(n)return n},e},jG={class:"ep-container"},IG={class:"ep-zoom"},Eb=et(i.defineComponent({__name:"ProcessDesigner",props:{isView:{type:Boolean,default:()=>!1},data:{type:Object,default:()=>({})}},setup(e,{expose:t}){const n=e,r=i.ref(100),o=PG();i.provide(Rt,o);const a=i.ref({});i.provide(Vn,a),i.watch(()=>n.data,()=>{s()}),i.onMounted(async()=>{s()});const l=d=>{if(d===1){if(r.value===50)return;r.value-=10}else{if(r.value===300)return;r.value+=10}},s=()=>{n.data&&n.data.nodeConfig?a.value=xn(n.data):a.value=xn(TG),i.nextTick(()=>{c()})},c=d=>{const f=o.validate();d&&typeof d=="function"&&d(f.valid,f.messages)};return t({validate:c,getResult:()=>xn(a.value)}),(d,f)=>{const h=i.resolveComponent("Icon");return i.openBlock(),i.createElementBlock("div",jG,[i.createElementVNode("div",{class:"ep-process",style:i.normalizeStyle(`transform: scale(${r.value/100});`)},[a.value&&a.value.nodeConfig?(i.openBlock(),i.createBlock(Cb,{key:0,node:a.value.nodeConfig,isView:n.isView},null,8,["node","isView"])):i.createCommentVNode("",!0),i.createVNode(BN)],4),i.createElementVNode("div",IG,[i.createVNode(h,{name:"subtract",class:i.normalizeClass(["ep-zoom-icon",r.value==50&&"disabled"]),color:"#5a5e66",onClick:f[0]||(f[0]=p=>l(1))},null,8,["class"]),i.createElementVNode("span",null,i.toDisplayString(r.value)+"%",1),i.createVNode(h,{name:"plus",class:i.normalizeClass(["ep-zoom-icon",r.value==300&&"disabled"]),color:"#5a5e66",onClick:f[1]||(f[1]=p=>l(2))},null,8,["class"])])])}}}),[["__scopeId","data-v-ad633a0c"]]),LG={install:e=>{e.component(Eb.name,Eb)},FlowDesign:Eb},RG={key:0,class:"no-work"},MG={key:1,class:"config-detail"},zG={class:"config-item"},UG={class:"children-query",style:{"margin-top":"20px"}},HG={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},WG={style:{flex:"1"}},qG={class:"flex-both"},GG={class:"flex"},KG={class:"txt-label"},YG={class:"condition-select"},XG={key:0,class:"function-tag"},ZG={class:"box"},JG={class:"ellipsis table-name"},QG={class:"field-name ellipsis"},$G=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"addDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.inject(Vn),o=i.inject(Ls),a=i.inject(Qn);function l(m,g,b=[]){if(m.nodeId===g)return b;["search","flow","add","button","table","api","summary"].includes(m.nodeType)&&b.push(m);let w=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const _ of m.conditionNodes)if(Ft(_,g)){l(_.childNode,g,b),w=!0;break}}return!w&&m.childNode&&l(m.childNode,g,b),b}const s=i.computed(()=>{const m=[Jr.defaultNode];return l(r.value.nodeConfig,t.node.nodeId,m),m}),c=i.ref([...s.value]);async function u(){n.value=await o(null),p()}u();async function d(m){const g=await a(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}function f(m,g,b=[]){var w;if(m.nodeId===g)return b;(m.nodeType==="odd"||m.nodeType==="button")&&((w=m.config)!=null&&w.fields)&&b.push(m);let y=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const _ of m.conditionNodes)if(Ft(_,g)){f(_.childNode,g,b),y=!0;break}}return!y&&m.childNode&&f(m.childNode,g,b),b}const h=i.computed(()=>{const m=[];return f(r.value.nodeConfig,t.node.nodeId,m),m});function p(){const m=h.value.find(g=>g.nodeId===t.config.selectNodeId);if(m){const g=s.value.length;c.value.length>g?c.value.splice(g,1,m):m.nodeType!=="button"&&c.value.push(m)}}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("el-radio"),E=i.resolveComponent("el-radio-group"),x=i.resolveComponent("el-form"),C=i.resolveComponent("InfoFilled"),S=i.resolveComponent("el-icon"),N=i.resolveComponent("Close"),O=i.resolveComponent("el-input");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(x,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=P=>t.config.workId=P),filterable:"",onChange:d},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(P,I)=>(i.openBlock(),i.createBlock(b,{key:I,label:P.workName,value:P.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(w,null,{default:i.withCtx(()=>[i.createVNode(E,{modelValue:e.config.addType,"onUpdate:modelValue":g[1]||(g[1]=P=>e.config.addType=P)},{default:i.withCtx(()=>[i.createVNode(_,{value:"1",style:{width:"100%"}},{default:i.withCtx(()=>g[3]||(g[3]=[i.createTextVNode("新增一条记录")])),_:1}),i.createVNode(_,{value:"2",style:{width:"100%"}},{default:i.withCtx(()=>g[4]||(g[4]=[i.createTextVNode("基于多条记录逐条新增记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),i.withDirectives(i.createVNode(w,{label:"选择数据源"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":g[2]||(g[2]=P=>t.config.selectNodeId=P),filterable:"",clearable:"",onChange:p},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,(P,I)=>(i.openBlock(),i.createBlock(b,{key:I,label:P.nodeName,value:P.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},512),[[i.vShow,e.config.addType==="2"]])]),_:1},8,["model"]),g[8]||(g[8]=i.createElementVNode("div",{class:"title"},"新增记录",-1)),e.config.workId?(i.openBlock(),i.createElementBlock("div",MG,[i.createElementVNode("div",zG,[i.createElementVNode("div",UG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(P,I)=>{var W;return i.openBlock(),i.createElementBlock(i.Fragment,{key:I},[P.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",HG,[i.createElementVNode("div",WG,[i.createElementVNode("div",qG,[i.createElementVNode("div",GG,[i.createElementVNode("span",KG,i.toDisplayString(P.columnComment),1)])]),i.createElementVNode("span",YG,[P.nodeId?(i.openBlock(),i.createElementBlock("div",XG,[i.createElementVNode("div",ZG,[i.createElementVNode("div",JG,[i.createElementVNode("span",null,i.toDisplayString(P.nodeName),1),g[6]||(g[6]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[7]||(g[7]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",QG,i.toDisplayString(P.fieldValueName),1)]),i.createVNode(S,{onClick:R=>v(P)},{default:i.withCtx(()=>[i.createVNode(N)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((W=P==null?void 0:P.fieldAttr)==null?void 0:W.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:P.fieldValue,"onUpdate:modelValue":R=>P.fieldValue=R,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(P.fieldAttr.enum,(R,U)=>(i.openBlock(),i.createBlock(b,{key:U,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(O,{key:1,modelValue:P.fieldValue,"onUpdate:modelValue":R=>P.fieldValue=R,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:P,varList:c.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))])])])):(i.openBlock(),i.createElementBlock("div",RG,[i.createVNode(S,{size:"17"},{default:i.withCtx(()=>[i.createVNode(C)]),_:1}),g[5]||(g[5]=i.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-2622f4cc"]])},Symbol.toStringTag,{value:"Module"})),eK={class:"condition-select"},tK={key:0,class:"function-tag"},nK={class:"box"},rK={class:"ellipsis table-name"},oK={class:"field-name ellipsis"},iK=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"apiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.inject("openApi");function o(){r(t.config)}function a(c,u,d=[]){if(c.nodeId===u)return d;["odd","search","add","flow","button","table","api","summary"].includes(c.nodeType)&&d.push(c);let h=!1;if(c.nodeType==="router"&&c.conditionNodes){for(const p of c.conditionNodes)if(Ft(p,u)){a(p.childNode,u,d),h=!0;break}}return!h&&c.childNode&&a(c.childNode,u,d),d}const l=i.computed(()=>{const c=[];return c.push(Jr.defaultNode),a(n.value.nodeConfig,t.node.nodeId,c),c});function s(c){c.nodeId="",c.nodeName="",c.fieldValue=void 0,c.fieldValueName=""}return(c,u)=>{const d=i.resolveComponent("el-input"),f=i.resolveComponent("el-form-item"),h=i.resolveComponent("el-table-column"),p=i.resolveComponent("Close"),v=i.resolveComponent("el-icon"),m=i.resolveComponent("el-table"),g=i.resolveComponent("el-col"),b=i.resolveComponent("el-radio"),y=i.resolveComponent("el-radio-group"),w=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(w,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>{var _;return[i.createVNode(f,{label:"调用已集成API"},{default:i.withCtx(()=>[i.createVNode(d,{class:"auto",modelValue:e.config.callApi.controlName,"onUpdate:modelValue":u[0]||(u[0]=E=>e.config.callApi.controlName=E),readonly:"","suffix-icon":i.unref(dH),onClick:u[1]||(u[1]=E=>o())},null,8,["modelValue","suffix-icon"])]),_:1}),(_=e.config)!=null&&_.callApi.apiParams?(i.openBlock(),i.createBlock(g,{key:0,class:"children-query"},{default:i.withCtx(()=>[i.createVNode(f,{label:"输入参数"}),i.createVNode(m,{data:e.config.callApi.apiParams,"row-key":"code","default-expand-all":""},{default:i.withCtx(()=>[i.createVNode(h,{prop:"name",label:"字段名"}),i.createVNode(h,{prop:"code",label:"参数名"}),i.createVNode(h,{width:"320"},{default:i.withCtx(E=>[i.createElementVNode("span",eK,[E.row.nodeId?(i.openBlock(),i.createElementBlock("div",tK,[i.createElementVNode("div",nK,[i.createElementVNode("div",rK,[i.createElementVNode("span",null,i.toDisplayString(E.row.nodeName),1),u[3]||(u[3]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),u[4]||(u[4]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",oK,i.toDisplayString(E.row.fieldValueName),1)]),i.createVNode(v,{onClick:x=>s(E.row)},{default:i.withCtx(()=>[i.createVNode(p)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createBlock(d,{key:1,modelValue:E.row.fieldValue,"onUpdate:modelValue":x=>E.row.fieldValue=x,clearable:""},null,8,["modelValue","onUpdate:modelValue"])),i.renderSlot(c.$slots,"action",{item:E.row,varList:l.value},void 0,!0)])]),_:3})]),_:3},8,["data"])]),_:3})):i.createCommentVNode("",!0),i.createVNode(f,{label:"请求超时或请求失败时",style:{"margin-top":"20px"}},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.way,"onUpdate:modelValue":u[2]||(u[2]=E=>t.config.way=E)},{default:i.withCtx(()=>[i.createVNode(b,{value:"go",style:{width:"100%"}},{default:i.withCtx(()=>u[5]||(u[5]=[i.createTextVNode("继续执行")])),_:1}),i.createVNode(b,{value:"aborted"},{default:i.withCtx(()=>u[6]||(u[6]=[i.createTextVNode("中止流程")])),_:1})]),_:1},8,["modelValue"])]),_:1})]}),_:3},8,["model"])])}}}),[["__scopeId","data-v-609fe71a"]])},Symbol.toStringTag,{value:"Module"})),aK={class:"layout-main"},lK={class:"layout-left"},sK={class:"layout-right"},cK={key:0,class:"selected-item"},uK={class:"selected-item-name"},dK=["onClick"],fK={key:0,class:"selected-item"},pK={class:"selected-item-name"},hK=["onClick"],gK={key:0,class:"selected-item"},mK={class:"selected-item-name"},yK=["onClick"],vK={class:"dialog-footer"},bK=et(i.defineComponent({__name:"index",props:{modelValue:{type:Array,default:()=>[]},enableDept:{type:Boolean,default:!1},enableRole:{type:Boolean,default:!1},multipleSize:{type:Number,default:-1}},emits:["ok"],setup(e,{expose:t,emit:n}){const r=i.inject("roleList"),o=i.inject("userList"),a=e,{proxy:l}=i.getCurrentInstance(),s=i.ref("user"),c=i.ref(["user","dept","role"]),u=i.ref([]),d=i.ref([]),f=i.ref(!1),h=i.ref(""),p=i.ref(""),v=i.ref([]),m=i.ref([]),g={children:"children",label:"nickName",disabled:R=>a.multipleSize>0&&m.value.length===a.multipleSize||!a.enableDept&&R.type==="dept"},b={children:"children",label:"roleName"};i.onMounted(()=>{x(),w(),P()}),i.watch(h,R=>{l.$refs["user-tree"]!=null&&l.$refs["user-tree"].filter(R)}),i.watch(p,R=>{l.$refs["role-tree"]!=null&&l.$refs["role-tree"].filter(R)});function y(){P(),f.value=!0}async function w(){d.value=await r()}const _=i.computed(()=>p.value?d.value.filter(R=>R.roleName.includes(p.value)):d.value),E=i.computed(()=>h.value?u.value.filter(R=>R.nickName.includes(h.value)):u.value);async function x(){u.value=await o({searchValue:h.value})}function C(R,U){return R?U.label.includes(R):!0}function S(){let R=[];const U=N("user-tree");if(R=R.concat(U),a.enableRole){const Q=N("role-tree");R=R.concat(Q)}m.value=R}function N(R){const U=l.$refs[R].getCheckedNodes(),Q=[];return U.map(j=>{Q.push({id:j.userId||j.roleId,nodeKey:j.nodeKey,type:j.userId?"user":"role",label:j.nickName||j.roleName})}),Q}function O(R){R&&R.nodeKey&&(R.type==="user"||R.type==="dept"?l.$refs["user-tree"].setChecked(R.nodeKey,!1):R.type==="role"&&l.$refs["role-tree"].setChecked(R.nodeKey,!1))}function P(){h.value="",p.value="";const R=a.modelValue,U=[];R&&R.length>0&&R.map(Q=>{if(Q&&Q.type&&Q.id){const j=`${Q.type}-${Q.id}`;R.nodeKey=j,U.push(j)}}),v.value=U,m.value=R}const I=n;function W(){f.value=!1,l.$emit("update:modelValue",m.value),I("ok",m.value)}return t({show:y}),(R,U)=>{const Q=i.resolveComponent("el-input"),j=i.resolveComponent("el-tree"),T=i.resolveComponent("el-tab-pane"),J=i.resolveComponent("el-tabs"),oe=i.resolveComponent("Close"),A=i.resolveComponent("el-icon"),k=i.resolveComponent("el-collapse-item"),B=i.resolveComponent("el-collapse"),V=i.resolveComponent("el-button"),L=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(L,{title:"选择用户",modelValue:f.value,"onUpdate:modelValue":U[5]||(U[5]=F=>f.value=F),"destroy-on-close":!0,width:600},{footer:i.withCtx(()=>[i.createElementVNode("div",vK,[i.createVNode(V,{type:"primary",onClick:W},{default:i.withCtx(()=>U[9]||(U[9]=[i.createTextVNode("确 定")])),_:1}),i.createVNode(V,{onClick:U[4]||(U[4]=F=>f.value=!1)},{default:i.withCtx(()=>U[10]||(U[10]=[i.createTextVNode("取 消")])),_:1})])]),default:i.withCtx(()=>[i.createElementVNode("div",aK,[i.createElementVNode("div",lK,[i.createVNode(J,{modelValue:s.value,"onUpdate:modelValue":U[2]||(U[2]=F=>s.value=F),type:"border-card"},{default:i.withCtx(()=>[i.createVNode(T,{label:"用户",name:"user"},{default:i.withCtx(()=>[i.createVNode(Q,{modelValue:h.value,"onUpdate:modelValue":U[0]||(U[0]=F=>h.value=F),placeholder:"搜索关键字"},null,8,["modelValue"]),i.createVNode(j,{ref:"user-tree","empty-text":"暂无数据",props:g,data:E.value,"default-checked-keys":v.value,"node-key":"nodeKey","show-checkbox":"","check-strictly":!0,"render-after-expand":!1,"filter-node-method":C,onCheckChange:S},null,8,["data","default-checked-keys"])]),_:1}),a.enableRole?(i.openBlock(),i.createBlock(T,{key:0,label:"角色",name:"role"},{default:i.withCtx(()=>[i.createVNode(Q,{modelValue:p.value,"onUpdate:modelValue":U[1]||(U[1]=F=>p.value=F),placeholder:"搜索关键字"},null,8,["modelValue"]),i.createVNode(j,{"empty-text":"暂无数据",ref:"role-tree",props:b,data:_.value,"default-checked-keys":v.value,"node-key":"nodeKey","show-checkbox":"","check-strictly":!0,"render-after-expand":!1,"filter-node-method":C,onCheckChange:S},null,8,["data","default-checked-keys"])]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),i.createElementVNode("div",sK,[i.createVNode(B,{modelValue:c.value,"onUpdate:modelValue":U[3]||(U[3]=F=>c.value=F)},{default:i.withCtx(()=>[i.createVNode(k,{name:"user"},{title:i.withCtx(()=>U[6]||(U[6]=[i.createElementVNode("div",{class:"selected-title"},"已选用户",-1)])),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(F,Y)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Y},[F.type=="user"?(i.openBlock(),i.createElementBlock("div",cK,[i.createElementVNode("div",uK,i.toDisplayString(F.label),1),i.createElementVNode("div",{class:"selected-item-close",onClick:$=>O(F)},[i.createVNode(A,null,{default:i.withCtx(()=>[i.createVNode(oe)]),_:1})],8,dK)])):i.createCommentVNode("",!0)],64))),128))]),_:1}),a.enableDept?(i.openBlock(),i.createBlock(k,{key:0,name:"dept"},{title:i.withCtx(()=>U[7]||(U[7]=[i.createElementVNode("div",{class:"selected-title"},"已选部门",-1)])),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(F,Y)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Y},[e.enableDept&&F.type=="dept"?(i.openBlock(),i.createElementBlock("div",fK,[i.createElementVNode("div",pK,i.toDisplayString(F.label),1),i.createElementVNode("div",{class:"selected-item-close",onClick:$=>O(F)},[i.createVNode(A,null,{default:i.withCtx(()=>[i.createVNode(oe)]),_:1})],8,hK)])):i.createCommentVNode("",!0)],64))),128))]),_:1})):i.createCommentVNode("",!0),a.enableRole?(i.openBlock(),i.createBlock(k,{key:1,name:"role"},{title:i.withCtx(()=>U[8]||(U[8]=[i.createElementVNode("div",{class:"selected-title"},"已选角色",-1)])),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(F,Y)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Y},[e.enableRole&&F.type=="role"?(i.openBlock(),i.createElementBlock("div",gK,[i.createElementVNode("div",mK,i.toDisplayString(F.label),1),i.createElementVNode("div",{class:"selected-item-close",onClick:$=>O(F)},[i.createVNode(A,null,{default:i.withCtx(()=>[i.createVNode(oe)]),_:1})],8,yK)])):i.createCommentVNode("",!0)],64))),128))]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-803408be"]]),wK={class:"org-view"},ON=et({__name:"OrgSelectView",props:{modelValue:{type:Array},enableDept:{type:Boolean,default:!1},enableRole:{type:Boolean,default:!1},multipleSize:{type:Number,default:-1}},setup(e){const{proxy:t}=i.getCurrentInstance(),n=e;function r(){t.$refs.userSelect.show()}function o(s){l(s)}function a(s){n.modelValue.splice(n.modelValue.indexOf(s),1)}function l(s){t.$emit("update:modelValue",s)}return(s,c)=>{const u=i.resolveComponent("el-button"),d=i.resolveComponent("el-tag");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",wK,[i.createVNode(u,{class:"tag",type:"primary",onClick:r,size:"small"},{default:i.withCtx(()=>c[1]||(c[1]=[i.createTextVNode("添加")])),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.modelValue,f=>(i.openBlock(),i.createBlock(d,{class:"tag",key:f.id,onClose:h=>a(f),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.label),1)]),_:2},1032,["onClose"]))),128))]),i.createVNode(bK,{ref:"userSelect",modelValue:n.modelValue,"onUpdate:modelValue":c[0]||(c[0]=f=>n.modelValue=f),enableDept:n.enableDept,enableRole:n.enableRole,multipleSize:n.multipleSize,onOk:o},null,8,["modelValue","enableDept","enableRole","multipleSize"])])}}},[["__scopeId","data-v-c40c0858"]]),_K={class:"permissions"},CK={class:"item header"},EK={key:0,class:"option"},kK={class:"option"},xK={class:"option"},NK={class:"field"},SK={key:0,class:"option"},DK={class:"option"},BK={class:"option"},OK=et({__name:"Permissions",props:{nodeType:{type:String,required:!0},config:{type:Object,required:!0,default:()=>{}}},setup(e){const t=e,n=i.ref(1),r=i.ref([]);i.onMounted(async()=>{o()});function o(){r.value=t.config.permissions,a()}function a(){const c=Object.keys(r.value),u=c.length;let d=0,f=0,h=0;c.forEach(p=>{switch(r.value[p].rule){case 1:d++;break;case 2:f++;break;case 3:h++;break}}),u===d?n.value=1:u===f?n.value=2:u===h?n.value=3:n.value=null}function l(c){Object.keys(r.value).forEach(d=>{r.value[d].rule=c})}function s(){t.config.permissions=r.value,a()}return(c,u)=>{const d=i.resolveComponent("el-radio"),f=i.resolveComponent("el-radio-group");return i.openBlock(),i.createElementBlock("div",_K,[i.createElementVNode("div",CK,[u[4]||(u[4]=i.createElementVNode("div",{class:"field"},"表单字段",-1)),i.createVNode(f,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),onChange:l},{default:i.withCtx(()=>[t.nodeType!==i.unref(Mh)?(i.openBlock(),i.createElementBlock("div",EK,[i.createVNode(d,{label:1},{default:i.withCtx(()=>u[1]||(u[1]=[i.createTextVNode("可编辑")])),_:1})])):i.createCommentVNode("",!0),i.createElementVNode("div",kK,[i.createVNode(d,{label:2},{default:i.withCtx(()=>u[2]||(u[2]=[i.createTextVNode("只读")])),_:1})]),i.createElementVNode("div",xK,[i.createVNode(d,{label:3},{default:i.withCtx(()=>u[3]||(u[3]=[i.createTextVNode("隐藏")])),_:1})])]),_:1},8,["modelValue"])]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(h,p)=>(i.openBlock(),i.createElementBlock("div",{class:"item",key:p},[i.createElementVNode("div",NK,i.toDisplayString(h.label),1),i.createVNode(f,{modelValue:h.rule,"onUpdate:modelValue":v=>h.rule=v,onChange:s},{default:i.withCtx(()=>[t.nodeType!==i.unref(Mh)?(i.openBlock(),i.createElementBlock("div",SK,[i.createVNode(d,{label:1},{default:i.withCtx(()=>u[5]||(u[5]=[i.createTextVNode(" ")])),_:1})])):i.createCommentVNode("",!0),i.createElementVNode("div",DK,[i.createVNode(d,{label:2},{default:i.withCtx(()=>u[6]||(u[6]=[i.createTextVNode(" ")])),_:1})]),i.createElementVNode("div",BK,[i.createVNode(d,{label:3},{default:i.withCtx(()=>u[7]||(u[7]=[i.createTextVNode(" ")])),_:1})])]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128))])}}},[["__scopeId","data-v-8548d21c"]]),AK={style:{float:"left"}},VK={key:0,style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},FK={key:0},TK={key:1},PK={class:"config-detail"},jK={class:"config-item"},IK={class:"children-query",style:{"margin-top":"20px"}},LK={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},RK={style:{flex:"1"}},MK={class:"flex-both"},zK={class:"flex"},UK={class:"txt-label"},HK={class:"condition-select"},WK={key:0,class:"function-tag"},qK={class:"box"},GK={class:"ellipsis table-name"},KK={class:"field-name ellipsis"},YK={style:{margin:"20px 0"}},XK={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},ZK={class:"field-list"},JK=["onClick"],QK={class:"config-detail"},$K={class:"config-item"},eY={class:"children-query",style:{"margin-top":"20px"}},tY={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},nY={style:{flex:"1"}},rY={class:"flex-both"},oY={class:"flex"},iY={class:"txt-label"},aY={class:"condition-select"},lY={key:0,class:"function-tag"},sY={class:"box"},cY={class:"ellipsis table-name"},uY={class:"field-name ellipsis"},dY={style:{margin:"20px 0"}},fY={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},pY={class:"field-list"},hY=["onClick"],gY={class:"config-detail"},mY={class:"config-item"},yY={class:"children-query",style:{"margin-top":"20px"}},vY={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},bY={style:{flex:"1"}},wY={class:"flex-both"},_Y={class:"flex"},CY={class:"txt-label"},EY={class:"condition-select"},kY={key:0,class:"function-tag"},xY={class:"box"},NY={class:"ellipsis table-name"},SY={class:"field-name ellipsis"},DY={style:{margin:"20px 0"}},BY={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},OY={class:"field-list"},AY=["onClick"],VY={class:"config-detail"},FY={class:"config-item"},TY={class:"children-query",style:{"margin-top":"20px"}},PY={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},jY={style:{flex:"1"}},IY={class:"flex-both"},LY={class:"flex"},RY={class:"txt-label"},MY={class:"condition-select"},zY={key:0,class:"function-tag"},UY={class:"box"},HY={class:"ellipsis table-name"},WY={class:"field-name ellipsis"},qY={style:{margin:"20px 0"}},GY={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},KY={class:"field-list"},YY=["onClick"],XY=Object.freeze(Object.defineProperty({__proto__:null,default:et({__name:"approverDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref("base"),r=i.inject(Vn),o=i.ref(""),a=i.computed(()=>{var N,O,P,I,W,R,U;const S=o.value.trim().toLowerCase();return((O=(N=s.value)==null?void 0:N.config)==null?void 0:O.fields)??((I=(P=s.value)==null?void 0:P.config)==null||I.selectNodeFields),(U=(R=(W=s.value)==null?void 0:W.config)==null?void 0:R.selectNodeFields)==null?void 0:U.filter(Q=>[Q.columnName,Q.columnComment].some(j=>String(j||"").toLowerCase().includes(S)))});function l(S,N,O){return S.nodeId===N||O||(S.nodeType==="start"&&(O=S),S.childNode&&(O=l(S.childNode,N,O))),O}const s=i.computed(()=>l(r.value.nodeConfig,t.node.nodeId,null));c(),s.value&&(t.config.selectNodeId=s.value.nodeId,t.config.workId=s.value.config.workId,t.config.workName=s.value.config.workName);function c(){t.config.handlerScope||(t.config.handlerScope=1),t.config.leaderHierarchyLimit||(t.config.leaderHierarchyLimit=1),t.config.handlers||(t.config.handlers=[]),t.config.selfSelectionType||(t.config.selfSelectionType=1),t.config.selfSelectionScope||(t.config.selfSelectionScope=1),t.config.selfSelectionItems||(t.config.selfSelectionItems=[]),t.config.handleModel||(t.config.handleModel=1),t.config.whenHandlerEmpty||(t.config.whenHandlerEmpty=2),t.config.careOfUserList||(t.config.careOfUserList=[])}function u(){t.config.leaderHierarchyLimit=1,t.config.handlers=[],t.config.selfSelectionType=1,t.config.selfSelectionScope=1,t.config.selfSelectionItems=[]}function d(S,N,O=[]){return S.nodeId===N||(console.log(S),["start","approver"].includes(S.nodeType)&&(console.log(4444444),console.log(S),O.push(S)),S.childNode&&d(S.childNode,N,O)),O}const f=i.computed(()=>{const S=[];return S.push(Jr.defaultNode),d(r.value.nodeConfig,t.node.nodeId,S),console.log(S),S});function h(S){S.compare="eq",t.config.startFields||(t.config.startFields=[]),t.config.startFields.push({...S})}function p(S){t.config.startFields.splice(S,1)}function v(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}function m(S){S.compare="eq",t.config.backFields||(t.config.backFields=[]),t.config.backFields.push({...S})}function g(S){t.config.backFields.splice(S,1)}function b(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}function y(S){S.compare="eq",t.config.rejectFields||(t.config.rejectFields=[]),t.config.rejectFields.push({...S})}function w(S){t.config.rejectFields.splice(S,1)}function _(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}function E(S){S.compare="eq",t.config.endFields||(t.config.endFields=[]),t.config.endFields.push({...S})}function x(S){t.config.endFields.splice(S,1)}function C(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}return(S,N)=>{const O=i.resolveComponent("el-form-item"),P=i.resolveComponent("el-form"),I=i.resolveComponent("el-radio"),W=i.resolveComponent("el-radio-group"),R=i.resolveComponent("el-option"),U=i.resolveComponent("el-select"),Q=i.resolveComponent("el-tab-pane"),j=i.resolveComponent("Close"),T=i.resolveComponent("el-icon"),J=i.resolveComponent("el-input"),oe=i.resolveComponent("el-button"),A=i.resolveComponent("el-popover"),k=i.resolveComponent("el-tabs");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(P,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(O,{label:"数据对象"},{default:i.withCtx(()=>{var B,V,L,F,Y;return[i.createElementVNode("span",AK,i.toDisplayString((B=s.value)==null?void 0:B.nodeName),1),(L=(V=s.value)==null?void 0:V.config)!=null&&L.workName?(i.openBlock(),i.createElementBlock("span",VK,' 工作表 "'+i.toDisplayString((Y=(F=s.value)==null?void 0:F.config)==null?void 0:Y.workName)+'" ',1)):i.createCommentVNode("",!0)]}),_:1})]),_:1},8,["model"]),i.createVNode(k,{modelValue:n.value,"onUpdate:modelValue":N[9]||(N[9]=B=>n.value=B)},{default:i.withCtx(()=>[i.createVNode(Q,{label:"基本设置",name:"base"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("div",null,[N[13]||(N[13]=i.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),i.createElementVNode("div",null,[i.createVNode(W,{modelValue:t.config.handlerScope,"onUpdate:modelValue":N[0]||(N[0]=B=>t.config.handlerScope=B),onChange:u},{default:i.withCtx(()=>[i.createVNode(I,{label:1},{default:i.withCtx(()=>N[10]||(N[10]=[i.createTextVNode("指定人员")])),_:1}),i.createVNode(I,{label:2},{default:i.withCtx(()=>N[11]||(N[11]=[i.createTextVNode("部门主管")])),_:1}),i.createVNode(I,{label:3},{default:i.withCtx(()=>N[12]||(N[12]=[i.createTextVNode("连续多级主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(i.openBlock(),i.createElementBlock("div",FK,[N[14]||(N[14]=i.createElementVNode("div",{class:"title"},"指定成员(不能超过20人)",-1)),i.createElementVNode("div",null,[i.createVNode(ON,{modelValue:t.config.handlers,"onUpdate:modelValue":N[1]||(N[1]=B=>t.config.handlers=B),enableRole:!0,"multiple-size":20},null,8,["modelValue"])])])):i.createCommentVNode("",!0),t.config.handlerScope===3?(i.openBlock(),i.createElementBlock("div",TK,[N[15]||(N[15]=i.createElementVNode("div",{class:"title"},"连续多级主管审批终点",-1)),i.createElementVNode("div",null,[i.createVNode(U,{modelValue:t.config.leaderHierarchyLimit,"onUpdate:modelValue":N[2]||(N[2]=B=>t.config.leaderHierarchyLimit=B),class:"select-max-width"},{default:i.withCtx(()=>[i.createVNode(R,{label:"第一级主管",value:1}),i.createVNode(R,{label:"第二级主管",value:2}),i.createVNode(R,{label:"第三级主管",value:3}),i.createVNode(R,{label:"第四级主管",value:4}),i.createVNode(R,{label:"第五级主管",value:5}),i.createVNode(R,{label:"第六级主管",value:6}),i.createVNode(R,{label:"第七级主管",value:7}),i.createVNode(R,{label:"第八级主管",value:8}),i.createVNode(R,{label:"第九级主管",value:9}),i.createVNode(R,{label:"第十级主管",value:10})]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[N[16]||(N[16]=i.createElementVNode("div",{class:"title"},"多人审批时采用的审批方式",-1)),i.createElementVNode("div",null,[i.createVNode(U,{modelValue:t.config.handleModel,"onUpdate:modelValue":N[3]||(N[3]=B=>t.config.handleModel=B),class:"select-max-width"},{default:i.withCtx(()=>[i.createVNode(R,{label:"依次审批(按顺序同意或拒绝)",value:1}),i.createVNode(R,{label:"会签(需要所有审批人都同意才可通过)",value:2}),i.createVNode(R,{label:"或签(其中一名审批人同意或拒绝即可)",value:3})]),_:1},8,["modelValue"])])]),i.createElementVNode("div",null,[N[17]||(N[17]=i.createElementVNode("div",{class:"title"},"审批人为空时",-1)),i.createElementVNode("div",null,[i.createVNode(U,{modelValue:t.config.leaderHierarchyLimit,"onUpdate:modelValue":N[4]||(N[4]=B=>t.config.leaderHierarchyLimit=B),class:"select-max-width"},{default:i.withCtx(()=>[i.createVNode(R,{label:"自动通过",value:1}),i.createVNode(R,{label:"自动转交管理员",value:2}),i.createVNode(R,{label:"指定人员审批",value:3})]),_:1},8,["modelValue"])])])])]),_:1}),i.createVNode(Q,{label:"数据更新",name:"update"},{default:i.withCtx(()=>[N[30]||(N[30]=i.createElementVNode("div",{class:"title"},"节点开始时更新",-1)),N[31]||(N[31]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"}," 流程进入此节点且审批开始前,更新数据对象的字段值(退回至此节点也会触发更新) ")],-1)),i.createElementVNode("div",PK,[i.createElementVNode("div",jK,[i.createElementVNode("div",IK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.startFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",LK,[i.createElementVNode("div",RK,[i.createElementVNode("div",MK,[i.createElementVNode("div",zK,[i.createElementVNode("span",UK,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>p(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",HK,[B.nodeId?(i.openBlock(),i.createElementBlock("div",WK,[i.createElementVNode("div",qK,[i.createElementVNode("div",GK,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[18]||(N[18]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[19]||(N[19]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",KK,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>v(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",YK,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[20]||(N[20]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",XK,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[5]||(N[5]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",ZK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>h(B)},i.toDisplayString(B.columnComment),9,JK)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])]),N[32]||(N[32]=i.createElementVNode("div",{class:"title"},"节点通过后更新",-1)),N[33]||(N[33]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"},"节点通过后,更新数据对象的字段值")],-1)),i.createElementVNode("div",QK,[i.createElementVNode("div",$K,[i.createElementVNode("div",eY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.endFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",tY,[i.createElementVNode("div",nY,[i.createElementVNode("div",rY,[i.createElementVNode("div",oY,[i.createElementVNode("span",iY,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>x(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",aY,[B.nodeId?(i.openBlock(),i.createElementBlock("div",lY,[i.createElementVNode("div",sY,[i.createElementVNode("div",cY,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[21]||(N[21]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[22]||(N[22]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",uY,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>C(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",dY,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[23]||(N[23]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",fY,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[6]||(N[6]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",pY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>E(B)},i.toDisplayString(B.columnComment),9,hY)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])]),N[34]||(N[34]=i.createElementVNode("div",{class:"title"},"节点否决后更新",-1)),N[35]||(N[35]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"},"节点否决后,更新数据对象的字段值")],-1)),i.createElementVNode("div",gY,[i.createElementVNode("div",mY,[i.createElementVNode("div",yY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.rejectFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",vY,[i.createElementVNode("div",bY,[i.createElementVNode("div",wY,[i.createElementVNode("div",_Y,[i.createElementVNode("span",CY,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>w(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",EY,[B.nodeId?(i.openBlock(),i.createElementBlock("div",kY,[i.createElementVNode("div",xY,[i.createElementVNode("div",NY,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[24]||(N[24]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[25]||(N[25]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",SY,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>_(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",DY,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[26]||(N[26]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",BY,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[7]||(N[7]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",OY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>y(B)},i.toDisplayString(B.columnComment),9,AY)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])]),N[36]||(N[36]=i.createElementVNode("div",{class:"title"},"节点退回后更新",-1)),N[37]||(N[37]=i.createElementVNode("div",{class:"no-work"},[i.createElementVNode("div",{class:"ml"},"节点退回后,更新数据对象的字段值")],-1)),i.createElementVNode("div",VY,[i.createElementVNode("div",FY,[i.createElementVNode("div",TY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.backFields,(B,V)=>{var L;return i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",PY,[i.createElementVNode("div",jY,[i.createElementVNode("div",IY,[i.createElementVNode("div",LY,[i.createElementVNode("span",RY,i.toDisplayString(B.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:B.compare,"onUpdate:modelValue":F=>B.compare=F,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"设为",value:"eq"}),i.createVNode(R,{label:"添加",value:"add"}),i.createVNode(R,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(T,{class:"close-icon",onClick:F=>g(V)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",MY,[B.nodeId?(i.openBlock(),i.createElementBlock("div",zY,[i.createElementVNode("div",UY,[i.createElementVNode("div",HY,[i.createElementVNode("span",null,i.toDisplayString(B.nodeName),1),N[27]||(N[27]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[28]||(N[28]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",WY,i.toDisplayString(B.fieldValueName),1)]),i.createVNode(T,{onClick:F=>b(B)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((L=B==null?void 0:B.fieldAttr)==null?void 0:L.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.fieldAttr.enum,(F,Y)=>(i.openBlock(),i.createBlock(R,{key:Y,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:B.fieldValue,"onUpdate:modelValue":F=>B.fieldValue=F,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(S.$slots,"action",{item:B,varList:[...f.value]},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",qY,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:S.Plus,text:""},{default:i.withCtx(()=>N[29]||(N[29]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",GY,[i.createVNode(J,{"prefix-icon":S.Search,placeholder:"搜索字段",modelValue:o.value,"onUpdate:modelValue":N[8]||(N[8]=B=>o.value=B)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",KY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(B,V)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:V},[B.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>m(B)},i.toDisplayString(B.columnComment),9,YY)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])]),_:3})]),_:3},8,["modelValue"])])}}},[["__scopeId","data-v-35f34b24"]])},Symbol.toStringTag,{value:"Module"})),ZY=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"buttonDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.inject(Qn),o=i.inject(vG);async function a(){var l,s;if((l=t.config)!=null&&l.workId){const c=await r((s=t.config)==null?void 0:s.workId);c!=null&&c.fieldList&&(t.config.fields=c==null?void 0:c.fieldList,t.config.workName=c==null?void 0:c.workName)}if(n.value.procId){const c=await o({procId:n.value.procId});c!=null&&c.buttonName&&(t.config.buttonName=c.buttonName)}}return a(),(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(u,{model:t.config,"label-width":"80px"},{default:i.withCtx(()=>[i.createVNode(c,{label:"工作表"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.config.workName),1)]),_:1}),i.createVNode(c,{label:"数据源"},{default:i.withCtx(()=>s[0]||(s[0]=[i.createTextVNode("单条记录")])),_:1}),i.createVNode(c,{label:"按钮"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.config.buttonName),1)]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),JY={style:{float:"left"}},QY={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},$Y={class:"config-detail"},eX={class:"config-item"},tX={class:"children-query",style:{"margin-top":"20px"}},nX={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},rX={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},oX={style:{flex:"1"}},iX={class:"flex-both"},aX={class:"flex"},lX={class:"txt-label"},sX={class:"condition-select"},cX={key:0,class:"function-tag"},uX={class:"box"},dX={class:"ellipsis table-name"},fX={class:"field-name ellipsis"},pX={style:{margin:"20px 0"}},hX={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},gX={class:"field-list"},mX=["onClick"],yX=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"conditionDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);t.node.nodeId||(t.node.nodeId=zu());function r(m,g,b=[]){if(!m||m.nodeId===g)return b;["search","flow","add","button","table"].includes(m.nodeType)&&b.push(m);let w=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const _ of m.conditionNodes)if(Ft(_,g)){r(_.childNode,g,b),w=!0;break}}return!w&&m.childNode&&r(m.childNode,g,b),b}function o(m,g,b=[]){if(m.nodeId===g)return b;(m.nodeType==="search"||m.nodeType==="add"||m.nodeType==="flow"||m.nodeType==="button"||m.nodeType==="table"||m.nodeType==="api"||m.nodeType==="summary")&&b.push(m);let y=!1;if(m.nodeType==="router"&&m.conditionNodes){for(const w of m.conditionNodes)if(Ft(w,g)){r(w.childNode,g,b),y=!0;break}}return!y&&m.childNode&&o(m.childNode,g,b),b}const a=i.computed(()=>{const m=[];return r(n.value.nodeConfig,t.node.nodeId,m),m}),l=i.computed(()=>{const m=[];return m.push(Jr.defaultNode),o(n.value.nodeConfig,t.node.nodeId,m),m});async function s(){const m=a.value.find(g=>g.nodeId===t.config.selectNodeId);m&&(t.config.workId=m.config.workId,t.config.workName=m.config.workName,t.config.fields=xn(m.config.fields))}const c=i.ref(""),u=i.computed(()=>{var g,b;const m=c.value.trim().toLowerCase();return(b=(g=t.config)==null?void 0:g.fields)==null?void 0:b.filter(y=>[y.columnName,y.columnComment].some(w=>String(w||"").toLowerCase().includes(m)))}),d=i.ref("and");function f(){t.config.filter.forEach(m=>{m.join=d.value})}function h(m){m.join=d.value,m.compare=10,t.config.filter.push({...m})}function p(m){t.config.filter.splice(m,1)}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("Close"),E=i.resolveComponent("el-icon"),x=i.resolveComponent("el-input"),C=i.resolveComponent("el-button"),S=i.resolveComponent("el-popover"),N=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[g[8]||(g[8]=i.createElementVNode("div",{class:"header"},"设置筛选条件后,满足条件的数据才能进入该分支",-1)),i.createVNode(N,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择获取对象"},{default:i.withCtx(()=>[g[3]||(g[3]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(y,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":g[0]||(g[0]=O=>t.config.selectNodeId=O),filterable:"",onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(O,P)=>(i.openBlock(),i.createBlock(b,{key:P,label:O.nodeName,value:O.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",JY,i.toDisplayString(O.nodeName),1),i.createElementVNode("span",QY,' 工作表 "'+i.toDisplayString(O.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createElementVNode("div",$Y,[g[7]||(g[7]=i.createElementVNode("div",{class:"item-label"},"条件规则",-1)),i.createElementVNode("div",eX,[i.createElementVNode("div",tX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(O,P)=>{var I;return i.openBlock(),i.createElementBlock("div",{key:P,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",nX,[P===0?(i.openBlock(),i.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[1]||(g[1]=W=>d.value=W),onChange:f},{default:i.withCtx(()=>[i.createVNode(b,{label:"且",value:"and"}),i.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",rX,i.toDisplayString(O.join==="and"?"且":"或"),1))]),i.createElementVNode("div",oX,[i.createElementVNode("div",iX,[i.createElementVNode("div",aX,[i.createElementVNode("span",lX,i.toDisplayString(O.columnComment),1),i.createElementVNode("span",null,[i.createVNode(y,{modelValue:O.compare,"onUpdate:modelValue":W=>O.compare=W,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(b,{label:"等于",value:10}),i.createVNode(b,{label:"不等于",value:110}),i.createVNode(b,{label:"大于",value:20}),i.createVNode(b,{label:"大于等于",value:21}),i.createVNode(b,{label:"小于",value:30}),i.createVNode(b,{label:"小于等于",value:31}),i.createVNode(b,{label:"包含",value:50}),i.createVNode(b,{label:"不包含",value:150}),i.createVNode(b,{label:"区间",value:80}),i.createVNode(b,{label:"为空",value:90}),i.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(E,{class:"close-icon",onClick:W=>p(P)},{default:i.withCtx(()=>[i.createVNode(_)]),_:2},1032,["onClick"])]),i.createElementVNode("span",sX,[O.nodeId?(i.openBlock(),i.createElementBlock("div",cX,[i.createElementVNode("div",uX,[i.createElementVNode("div",dX,[i.createElementVNode("span",null,i.toDisplayString(O.nodeName),1),g[4]||(g[4]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[5]||(g[5]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",fX,i.toDisplayString(O.fieldValueName),1)]),i.createVNode(E,{onClick:W=>v(O)},{default:i.withCtx(()=>[i.createVNode(_)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((I=O==null?void 0:O.fieldAttr)==null?void 0:I.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:O.fieldValue,"onUpdate:modelValue":W=>O.fieldValue=W,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.fieldAttr.enum,(W,R)=>(i.openBlock(),i.createBlock(b,{key:R,label:W.label,value:W.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(x,{key:1,modelValue:O.fieldValue,"onUpdate:modelValue":W=>O.fieldValue=W,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:O,varList:l.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",pX,[i.createVNode(S,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(C,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>g[6]||(g[6]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",hX,[i.createVNode(x,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[2]||(g[2]=O=>c.value=O)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",gX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(O,P)=>(i.openBlock(),i.createElementBlock("div",{key:P,class:"field-item",onClick:I=>h(O)},i.toDisplayString(O.columnComment),9,mX))),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-fb2658f5"]])},Symbol.toStringTag,{value:"Module"})),vX={style:{float:"left"}},bX={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},wX=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"delDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(l,s,c=[]){if(l.nodeId===s)return c;(l.nodeType==="odd"||l.nodeType==="search"||l.nodeType==="add"||l.nodeType==="button"||l.nodeType==="table")&&c.push(l);let u=!1;if(l.nodeType==="router"&&l.conditionNodes){for(const d of l.conditionNodes)if(Ft(d,s)){r(d.childNode,s,c),u=!0;break}}return!u&&l.childNode&&r(l.childNode,s,c),c}const o=i.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=o.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName)}return(l,s)=>{const c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("el-form-item"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(d,{label:"选择删除对象"},{default:i.withCtx(()=>[s[1]||(s[1]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(h,p)=>(i.openBlock(),i.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",vX,i.toDisplayString(h.nodeName),1),i.createElementVNode("span",bX,' 工作表 "'+i.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-f3eb02fd"]])},Symbol.toStringTag,{value:"Module"}));var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _X(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nl(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vi,Xh,Zh=function(e){return e&&e.Math==Math&&e},Ve=Zh(typeof globalThis=="object"&&globalThis)||Zh(typeof window=="object"&&window)||Zh(typeof self=="object"&&self)||Zh(typeof dt=="object"&&dt)||function(){return this}()||Function("return this")(),kb=Function.prototype,AN=kb.apply,CX=kb.bind,VN=kb.call,FN=typeof Reflect=="object"&&Reflect.apply||(CX?VN.bind(AN):function(){return VN.apply(AN,arguments)}),TN=Function.prototype,xb=TN.bind,Nb=TN.call,EX=xb&&xb.bind(Nb),yt=xb?function(e){return e&&EX(Nb,e)}:function(e){return e&&function(){return Nb.apply(e,arguments)}},Nn=function(e){return typeof e=="function"},$n=function(e){try{return!!e()}catch{return!0}},er=!$n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Gu=Function.prototype.call,fr=Gu.bind?Gu.bind(Gu):function(){return Gu.apply(Gu,arguments)},PN={}.propertyIsEnumerable,jN=Object.getOwnPropertyDescriptor,kX=jN&&!PN.call({1:2},1)?function(e){var t=jN(this,e);return!!t&&t.enumerable}:PN,Sb={f:kX},eo=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xX=yt({}.toString),NX=yt("".slice),rl=function(e){return NX(xX(e),8,-1)},Db=Ve.Object,SX=yt("".split),IN=$n(function(){return!Db("z").propertyIsEnumerable(0)})?function(e){return rl(e)=="String"?SX(e,""):Db(e)}:Db,DX=Ve.TypeError,Bb=function(e){if(e==null)throw DX("Can't call method on "+e);return e},_o=function(e){return IN(Bb(e))},Or=function(e){return typeof e=="object"?e!==null:Nn(e)},pr={},LN=function(e){return Nn(e)?e:void 0},Rs=function(e,t){return arguments.length<2?LN(pr[e])||LN(Ve[e]):pr[e]&&pr[e][t]||Ve[e]&&Ve[e][t]},Ku=yt({}.isPrototypeOf),Ob=Rs("navigator","userAgent")||"",RN=Ve.process,MN=Ve.Deno,zN=RN&&RN.versions||MN&&MN.version,UN=zN&&zN.v8;UN&&(Xh=(Vi=UN.split("."))[0]>0&&Vi[0]<4?1:+(Vi[0]+Vi[1])),!Xh&&Ob&&(!(Vi=Ob.match(/Edge\/(\d+)/))||Vi[1]>=74)&&(Vi=Ob.match(/Chrome\/(\d+)/))&&(Xh=+Vi[1]);var Jh,Qh=Xh,Co=!!Object.getOwnPropertySymbols&&!$n(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qh&&Qh<41}),Ab=Co&&!Symbol.sham&&typeof Symbol.iterator=="symbol",BX=Ve.Object,Ms=Ab?function(e){return typeof e=="symbol"}:function(e){var t=Rs("Symbol");return Nn(t)&&Ku(t.prototype,BX(e))},OX=Ve.String,Vb=function(e){try{return OX(e)}catch{return"Object"}},AX=Ve.TypeError,Fb=function(e){if(Nn(e))return e;throw AX(Vb(e)+" is not a function")},$h=function(e,t){var n=e[t];return n==null?void 0:Fb(n)},VX=Ve.TypeError,FX=Object.defineProperty,Fi=Ve["__core-js_shared__"]||function(e,t){try{FX(Ve,e,{value:t,configurable:!0,writable:!0})}catch{Ve[e]=t}return t}("__core-js_shared__",{}),ol=nl(function(e){(e.exports=function(t,n){return Fi[t]||(Fi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),TX=Ve.Object,Yu=function(e){return TX(Bb(e))},PX=yt({}.hasOwnProperty),We=Object.hasOwn||function(e,t){return PX(Yu(e),t)},jX=0,IX=Math.random(),LX=yt(1 .toString),eg=function(e){return"Symbol("+(e===void 0?"":e)+")_"+LX(++jX+IX,36)},Xu=ol("wks"),il=Ve.Symbol,HN=il&&il.for,RX=Ab?il:il&&il.withoutSetter||eg,Fn=function(e){if(!We(Xu,e)||!Co&&typeof Xu[e]!="string"){var t="Symbol."+e;Co&&We(il,e)?Xu[e]=il[e]:Xu[e]=Ab&&HN?HN(t):RX(t)}return Xu[e]},MX=Ve.TypeError,zX=Fn("toPrimitive"),UX=function(e,t){if(!Or(e)||Ms(e))return e;var n,r=$h(e,zX);if(r){if(n=fr(r,e,t),!Or(n)||Ms(n))return n;throw MX("Can't convert object to primitive value")}return function(o,a){var l,s;if(Nn(l=o.toString)&&!Or(s=fr(l,o))||Nn(l=o.valueOf)&&!Or(s=fr(l,o)))return s;throw VX("Can't convert object to primitive value")}(e)},zs=function(e){var t=UX(e,"string");return Ms(t)?t:t+""},Tb=Ve.document,HX=Or(Tb)&&Or(Tb.createElement),WN=function(e){return HX?Tb.createElement(e):{}},qN=!er&&!$n(function(){return Object.defineProperty(WN("div"),"a",{get:function(){return 7}}).a!=7}),GN=Object.getOwnPropertyDescriptor,WX=er?GN:function(e,t){if(e=_o(e),t=zs(t),qN)try{return GN(e,t)}catch{}if(We(e,t))return eo(!fr(Sb.f,e,t),e[t])},tg={f:WX},qX=/#|\.prototype\./,Zu=function(e,t){var n=KX[GX(e)];return n==XX||n!=YX&&(Nn(t)?$n(t):!!t)},GX=Zu.normalize=function(e){return String(e).replace(qX,".").toLowerCase()},KX=Zu.data={},YX=Zu.NATIVE="N",XX=Zu.POLYFILL="P",ZX=Zu,KN=yt(yt.bind),Pb=function(e,t){return Fb(e),t===void 0?e:KN?KN(e,t):function(){return e.apply(t,arguments)}},JX=Ve.String,QX=Ve.TypeError,hr=function(e){if(Or(e))return e;throw QX(JX(e)+" is not an object")},$X=Ve.TypeError,YN=Object.defineProperty,eZ=er?YN:function(e,t,n){if(hr(e),t=zs(t),hr(n),qN)try{return YN(e,t,n)}catch{}if("get"in n||"set"in n)throw $X("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ti={f:eZ},Hn=er?function(e,t,n){return Ti.f(e,t,eo(1,n))}:function(e,t,n){return e[t]=n,e},tZ=tg.f,nZ=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return FN(e,this,arguments)};return t.prototype=e.prototype,t},ti=function(e,t){var n,r,o,a,l,s,c,u,d=e.target,f=e.global,h=e.stat,p=e.proto,v=f?Ve:h?Ve[d]:(Ve[d]||{}).prototype,m=f?pr:pr[d]||Hn(pr,d,{})[d],g=m.prototype;for(o in t)n=!ZX(f?o:d+(h?".":"#")+o,e.forced)&&v&&We(v,o),l=m[o],n&&(s=e.noTargetGet?(u=tZ(v,o))&&u.value:v[o]),a=n&&s?s:t[o],n&&typeof l==typeof a||(c=e.bind&&n?Pb(a,Ve):e.wrap&&n?nZ(a):p&&Nn(a)?yt(a):a,(e.sham||a&&a.sham||l&&l.sham)&&Hn(c,"sham",!0),Hn(m,o,c),p&&(We(pr,r=d+"Prototype")||Hn(pr,r,{}),Hn(pr[r],o,a),e.real&&g&&!g[o]&&Hn(g,o,a)))},XN=ol("keys"),ng=function(e){return XN[e]||(XN[e]=eg(e))},rZ=!$n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ZN=ng("IE_PROTO"),jb=Ve.Object,oZ=jb.prototype,rg=rZ?jb.getPrototypeOf:function(e){var t=Yu(e);if(We(t,ZN))return t[ZN];var n=t.constructor;return Nn(n)&&t instanceof n?n.prototype:t instanceof jb?oZ:null},iZ=Ve.String,aZ=Ve.TypeError,og=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=yt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return hr(r),function(a){if(typeof a=="object"||Nn(a))return a;throw aZ("Can't set "+iZ(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),lZ=Math.ceil,sZ=Math.floor,Ib=function(e){var t=+e;return t!=t||t===0?0:(t>0?sZ:lZ)(t)},cZ=Math.max,uZ=Math.min,Lb=function(e,t){var n=Ib(e);return n<0?cZ(n+t,0):uZ(n,t)},dZ=Math.min,Ju=function(e){return(t=e.length)>0?dZ(Ib(t),9007199254740991):0;var t},fZ=function(e){return function(t,n,r){var o,a=_o(t),l=Ju(a),s=Lb(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},pZ={indexOf:fZ(!1)},Qu={},hZ=pZ.indexOf,JN=yt([].push),QN=function(e,t){var n,r=_o(e),o=0,a=[];for(n in r)!We(Qu,n)&&We(r,n)&&JN(a,n);for(;t.length>o;)We(r,n=t[o++])&&(~hZ(a,n)||JN(a,n));return a},ig=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gZ=ig.concat("length","prototype"),mZ=Object.getOwnPropertyNames||function(e){return QN(e,gZ)},Rb={f:mZ},ag={f:Object.getOwnPropertySymbols},yZ=yt([].concat),vZ=Rs("Reflect","ownKeys")||function(e){var t=Rb.f(hr(e)),n=ag.f;return n?yZ(t,n(e)):t},Mb=Object.keys||function(e){return QN(e,ig)},bZ=er?Object.defineProperties:function(e,t){hr(e);for(var n,r=_o(t),o=Mb(t),a=o.length,l=0;a>l;)Ti.f(e,n=o[l++],r[n]);return e},wZ=Rs("document","documentElement"),$N=ng("IE_PROTO"),zb=function(){},e5=function(e){return"<script>"+e+"<\/script>"},t5=function(e){e.write(e5("")),e.close();var t=e.parentWindow.Object;return e=null,t},lg=function(){try{Jh=new ActiveXObject("htmlfile")}catch{}var e,t;lg=typeof document<"u"?document.domain&&Jh?t5(Jh):((t=WN("iframe")).style.display="none",wZ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(e5("document.F=Object")),e.close(),e.F):t5(Jh);for(var n=ig.length;n--;)delete lg.prototype[ig[n]];return lg()};Qu[$N]=!0;var ni=Object.create||function(e,t){var n;return e!==null?(zb.prototype=hr(e),n=new zb,zb.prototype=null,n[$N]=e):n=lg(),t===void 0?n:bZ(n,t)},Ub=function(e,t,n){var r=zs(t);r in e?Ti.f(e,r,eo(0,n)):e[r]=n},_Z=Ve.Array,CZ=Math.max,n5=function(e,t,n){for(var r=Ju(e),o=Lb(t,r),a=Lb(r,r),l=_Z(CZ(a-o,0)),s=0;o<a;o++,s++)Ub(l,s,e[o]);return l.length=s,l},EZ=yt("".replace),kZ=yt("".split),xZ=yt([].join),Hb=String(Error("zxcasd").stack),r5=/\n\s*at [^:]*:[^\n]*/,NZ=r5.test(Hb),SZ=/@[^\n]*\n/.test(Hb)&&!/zxcasd/.test(Hb),DZ=function(e,t){if(typeof e!="string")return e;if(NZ)for(;t--;)e=EZ(e,r5,"");else if(SZ)return xZ(n5(kZ(e,`
|
|
7
7
|
`),t),`
|
|
8
8
|
`);return e},BZ=function(e,t){Or(t)&&"cause"in t&&Hn(e,"cause",t.cause)},ri={},OZ=Fn("iterator"),AZ=Array.prototype,o5={};o5[Fn("toStringTag")]="z";var Wb=String(o5)==="[object z]",VZ=Fn("toStringTag"),FZ=Ve.Object,TZ=rl(function(){return arguments}())=="Arguments",$u=Wb?rl:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=FZ(e),VZ))=="string"?n:TZ?rl(t):(r=rl(t))=="Object"&&Nn(t.callee)?"Arguments":r},PZ=Fn("iterator"),i5=function(e){if(e!=null)return $h(e,PZ)||$h(e,"@@iterator")||ri[$u(e)]},jZ=Ve.TypeError,a5=function(e,t,n){var r,o;hr(e);try{if(!(r=$h(e,"return"))){if(t==="throw")throw n;return n}r=fr(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return hr(r),n},IZ=Ve.TypeError,sg=function(e,t){this.stopped=e,this.result=t},l5=sg.prototype,LZ=function(e,t,n){var r,o,a,l,s,c,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Pb(t,d),m=function(b){return r&&a5(r,"normal",b),new sg(!0,b)},g=function(b){return f?(hr(b),p?v(b[0],b[1],m):v(b[0],b[1])):p?v(b,m):v(b)};if(h)r=e;else{if(!(o=i5(e)))throw IZ(Vb(e)+" is not iterable");if(function(b){return b!==void 0&&(ri.Array===b||AZ[OZ]===b)}(o)){for(a=0,l=Ju(e);l>a;a++)if((s=g(e[a]))&&Ku(l5,s))return s;return new sg(!1)}r=function(b,y){var w=arguments.length<2?i5(b):y;if(Fb(w))return hr(fr(w,b));throw jZ(Vb(b)+" is not iterable")}(e,o)}for(c=r.next;!(u=fr(c,r)).done;){try{s=g(u.value)}catch(b){a5(r,"throw",b)}if(typeof s=="object"&&s&&Ku(l5,s))return s}return new sg(!1)},RZ=Ve.String,ed=function(e){if($u(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return RZ(e)},MZ=function(e,t){return e===void 0?arguments.length<2?"":t:ed(e)},zZ=!$n(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",eo(1,7)),e.stack!==7)}),UZ=Fn("toStringTag"),cg=Ve.Error,HZ=[].push,td=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Ku(qb,this);og?n=og(new cg(void 0),o?rg(this):qb):(n=o?this:ni(qb),Hn(n,UZ,"Error")),Hn(n,"message",MZ(t,"")),zZ&&Hn(n,"stack",DZ(n.stack,1)),BZ(n,r);var a=[];return LZ(e,HZ,{that:a}),Hn(n,"errors",a),n};og?og(td,cg):function(e,t){for(var n=vZ(t),r=Ti.f,o=tg.f,a=0;a<n.length;a++){var l=n[a];We(e,l)||r(e,l,o(t,l))}}(td,cg);var qb=td.prototype=ni(cg.prototype,{constructor:eo(1,td),message:eo(1,""),name:eo(1,"AggregateError")});ti({global:!0},{AggregateError:td});var WZ=yt(Function.toString);Nn(Fi.inspectSource)||(Fi.inspectSource=function(e){return WZ(e)});var ug,nd,dg,s5=Fi.inspectSource,c5=Ve.WeakMap,qZ=Nn(c5)&&/native code/.test(s5(c5)),Gb=Ve.TypeError,GZ=Ve.WeakMap;if(qZ||Fi.state){var al=Fi.state||(Fi.state=new GZ),KZ=yt(al.get),u5=yt(al.has),YZ=yt(al.set);ug=function(e,t){if(u5(al,e))throw new Gb("Object already initialized");return t.facade=e,YZ(al,e,t),t},nd=function(e){return KZ(al,e)||{}},dg=function(e){return u5(al,e)}}else{var Us=ng("state");Qu[Us]=!0,ug=function(e,t){if(We(e,Us))throw new Gb("Object already initialized");return t.facade=e,Hn(e,Us,t),t},nd=function(e){return We(e,Us)?e[Us]:{}},dg=function(e){return We(e,Us)}}var Pi,d5,f5,Hs={set:ug,get:nd,has:dg,enforce:function(e){return dg(e)?nd(e):ug(e,{})},getterFor:function(e){return function(t){var n;if(!Or(t)||(n=nd(t)).type!==e)throw Gb("Incompatible receiver, "+e+" required");return n}}},p5=Function.prototype,XZ=er&&Object.getOwnPropertyDescriptor,h5=We(p5,"name"),ZZ={PROPER:h5&&(function(){}).name==="something",CONFIGURABLE:h5&&(!er||er&&XZ(p5,"name").configurable)},fg=function(e,t,n,r){Hn(e,t,n)},Kb=Fn("iterator"),g5=!1;[].keys&&("next"in(f5=[].keys())?(d5=rg(rg(f5)))!==Object.prototype&&(Pi=d5):g5=!0);var JZ=Pi==null||$n(function(){var e={};return Pi[Kb].call(e)!==e});Pi=JZ?{}:ni(Pi),Nn(Pi[Kb])||fg(Pi,Kb,function(){return this});var m5={IteratorPrototype:Pi,BUGGY_SAFARI_ITERATORS:g5},QZ=Wb?{}.toString:function(){return"[object "+$u(this)+"]"},$Z=Ti.f,y5=Fn("toStringTag"),pg=function(e,t,n,r){if(e){var o=n?e:e.prototype;We(o,y5)||$Z(o,y5,{configurable:!0,value:t}),r&&!Wb&&Hn(o,"toString",QZ)}},eJ=m5.IteratorPrototype,tJ=function(){return this},nJ=ZZ.PROPER,Yb=m5.BUGGY_SAFARI_ITERATORS,rJ=Fn("iterator"),oJ=function(){return this},v5=function(e,t,n,r,o,a,l){(function(g,b,y,w){var _=b+" Iterator";g.prototype=ni(eJ,{next:eo(+!w,y)}),pg(g,_,!1,!0),ri[_]=tJ})(n,t,r);var s,c,u=function(g){if(g===o&&v)return v;if(!Yb&&g in h)return h[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[rJ]||h["@@iterator"]||o&&h[o],v=!Yb&&p||u(o),m=t=="Array"&&h.entries||p;return m&&(s=rg(m.call(new e)))!==Object.prototype&&s.next&&(pg(s,d,!0,!0),ri[d]=oJ),nJ&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return fr(p,this)}),o&&(c={values:u("values"),keys:u("keys"),entries:u("entries")},l||ti({target:t,proto:!0,forced:Yb||f},c)),ri[t]=v,c},iJ=Hs.set,aJ=Hs.getterFor("Array Iterator");v5(Array,"Array",function(e,t){iJ(this,{type:"Array Iterator",target:_o(e),index:0,kind:t})},function(){var e=aJ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),ri.Arguments=ri.Array;var lJ=yt("".charAt),b5=yt("".charCodeAt),sJ=yt("".slice),cJ=function(e){return function(t,n){var r,o,a=ed(Bb(t)),l=Ib(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=b5(a,l))<55296||r>56319||l+1===s||(o=b5(a,l+1))<56320||o>57343?e?lJ(a,l):r:e?sJ(a,l,l+2):o-56320+(r-55296<<10)+65536}},uJ={charAt:cJ(!0)}.charAt,dJ=Hs.set,fJ=Hs.getterFor("String Iterator");v5(String,"String",function(e){dJ(this,{type:"String Iterator",string:ed(e),index:0})},function(){var e,t=fJ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=uJ(n,r),t.index+=e.length,{value:e,done:!1})});var pJ=pr.AggregateError,w5=Fn("toStringTag");for(var Xb in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var _5=Ve[Xb],Zb=_5&&_5.prototype;Zb&&$u(Zb)!==w5&&Hn(Zb,w5,Xb),ri[Xb]=ri.Array}var ji,hg,hJ=pJ,gg=function(e){return e&&e.Math==Math&&e},De=gg(typeof globalThis=="object"&&globalThis)||gg(typeof window=="object"&&window)||gg(typeof self=="object"&&self)||gg(typeof dt=="object"&&dt)||function(){return this}()||Function("return this")(),mn=function(e){try{return!!e()}catch{return!0}},Eo=!mn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),rd=Function.prototype.call,Sn=rd.bind?rd.bind(rd):function(){return rd.apply(rd,arguments)},C5={}.propertyIsEnumerable,E5=Object.getOwnPropertyDescriptor,gJ=E5&&!C5.call({1:2},1)?function(e){var t=E5(this,e);return!!t&&t.enumerable}:C5,mJ={f:gJ},Ii=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k5=Function.prototype,Jb=k5.bind,Qb=k5.call,yJ=Jb&&Jb.bind(Qb),st=Jb?function(e){return e&&yJ(Qb,e)}:function(e){return e&&function(){return Qb.apply(e,arguments)}},vJ=st({}.toString),bJ=st("".slice),ll=function(e){return bJ(vJ(e),8,-1)},$b=De.Object,wJ=st("".split),x5=mn(function(){return!$b("z").propertyIsEnumerable(0)})?function(e){return ll(e)=="String"?wJ(e,""):$b(e)}:$b,_J=De.TypeError,mg=function(e){if(e==null)throw _J("Can't call method on "+e);return e},Ws=function(e){return x5(mg(e))},cn=function(e){return typeof e=="function"},ko=function(e){return typeof e=="object"?e!==null:cn(e)},CJ=function(e){return cn(e)?e:void 0},od=function(e,t){return arguments.length<2?CJ(De[e]):De[e]&&De[e][t]},yg=st({}.isPrototypeOf),e2=od("navigator","userAgent")||"",N5=De.process,S5=De.Deno,D5=N5&&N5.versions||S5&&S5.version,B5=D5&&D5.v8;B5&&(hg=(ji=B5.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!hg&&e2&&(!(ji=e2.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=e2.match(/Chrome\/(\d+)/))&&(hg=+ji[1]);var O5=hg,t2=!!Object.getOwnPropertySymbols&&!mn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&O5&&O5<41}),n2=t2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",EJ=De.Object,r2=n2?function(e){return typeof e=="symbol"}:function(e){var t=od("Symbol");return cn(t)&&yg(t.prototype,EJ(e))},kJ=De.String,o2=function(e){try{return kJ(e)}catch{return"Object"}},xJ=De.TypeError,i2=function(e){if(cn(e))return e;throw xJ(o2(e)+" is not a function")},id=function(e,t){var n=e[t];return n==null?void 0:i2(n)},NJ=De.TypeError,SJ=Object.defineProperty,a2=function(e,t){try{SJ(De,e,{value:t,configurable:!0,writable:!0})}catch{De[e]=t}return t},Li=De["__core-js_shared__"]||a2("__core-js_shared__",{}),l2=nl(function(e){(e.exports=function(t,n){return Li[t]||(Li[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),DJ=De.Object,s2=function(e){return DJ(mg(e))},BJ=st({}.hasOwnProperty),tr=Object.hasOwn||function(e,t){return BJ(s2(e),t)},OJ=0,AJ=Math.random(),VJ=st(1 .toString),A5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+VJ(++OJ+AJ,36)},ad=l2("wks"),sl=De.Symbol,V5=sl&&sl.for,FJ=n2?sl:sl&&sl.withoutSetter||A5,Wn=function(e){if(!tr(ad,e)||!t2&&typeof ad[e]!="string"){var t="Symbol."+e;t2&&tr(sl,e)?ad[e]=sl[e]:ad[e]=n2&&V5?V5(t):FJ(t)}return ad[e]},TJ=De.TypeError,PJ=Wn("toPrimitive"),jJ=function(e,t){if(!ko(e)||r2(e))return e;var n,r=id(e,PJ);if(r){if(n=Sn(r,e,t),!ko(n)||r2(n))return n;throw TJ("Can't convert object to primitive value")}return function(o,a){var l,s;if(cn(l=o.toString)&&!ko(s=Sn(l,o))||cn(l=o.valueOf)&&!ko(s=Sn(l,o)))return s;throw NJ("Can't convert object to primitive value")}(e)},c2=function(e){var t=jJ(e,"string");return r2(t)?t:t+""},u2=De.document,IJ=ko(u2)&&ko(u2.createElement),d2=function(e){return IJ?u2.createElement(e):{}},F5=!Eo&&!mn(function(){return Object.defineProperty(d2("div"),"a",{get:function(){return 7}}).a!=7}),T5=Object.getOwnPropertyDescriptor,LJ=Eo?T5:function(e,t){if(e=Ws(e),t=c2(t),F5)try{return T5(e,t)}catch{}if(tr(e,t))return Ii(!Sn(mJ.f,e,t),e[t])},f2={f:LJ},RJ=De.String,MJ=De.TypeError,gr=function(e){if(ko(e))return e;throw MJ(RJ(e)+" is not an object")},zJ=De.TypeError,P5=Object.defineProperty,UJ=Eo?P5:function(e,t,n){if(gr(e),t=c2(t),gr(n),F5)try{return P5(e,t,n)}catch{}if("get"in n||"set"in n)throw zJ("Accessors not supported");return"value"in n&&(e[t]=n.value),e},qs={f:UJ},nr=Eo?function(e,t,n){return qs.f(e,t,Ii(1,n))}:function(e,t,n){return e[t]=n,e},HJ=st(Function.toString);cn(Li.inspectSource)||(Li.inspectSource=function(e){return HJ(e)});var vg,ld,bg,p2=Li.inspectSource,j5=De.WeakMap,WJ=cn(j5)&&/native code/.test(p2(j5)),I5=l2("keys"),h2=function(e){return I5[e]||(I5[e]=A5(e))},g2={},m2=De.TypeError,qJ=De.WeakMap;if(WJ||Li.state){var cl=Li.state||(Li.state=new qJ),GJ=st(cl.get),L5=st(cl.has),KJ=st(cl.set);vg=function(e,t){if(L5(cl,e))throw new m2("Object already initialized");return t.facade=e,KJ(cl,e,t),t},ld=function(e){return GJ(cl,e)||{}},bg=function(e){return L5(cl,e)}}else{var Gs=h2("state");g2[Gs]=!0,vg=function(e,t){if(tr(e,Gs))throw new m2("Object already initialized");return t.facade=e,nr(e,Gs,t),t},ld=function(e){return tr(e,Gs)?e[Gs]:{}},bg=function(e){return tr(e,Gs)}}var ul={set:vg,get:ld,has:bg,enforce:function(e){return bg(e)?ld(e):vg(e,{})},getterFor:function(e){return function(t){var n;if(!ko(t)||(n=ld(t)).type!==e)throw m2("Incompatible receiver, "+e+" required");return n}}},R5=Function.prototype,YJ=Eo&&Object.getOwnPropertyDescriptor,M5=tr(R5,"name"),y2={PROPER:M5&&(function(){}).name==="something",CONFIGURABLE:M5&&(!Eo||Eo&&YJ(R5,"name").configurable)},dl=nl(function(e){var t=y2.CONFIGURABLE,n=ul.get,r=ul.enforce,o=String(String).split("String");(e.exports=function(a,l,s,c){var u,d=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet,p=c&&c.name!==void 0?c.name:l;cn(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!tr(s,"name")||t&&s.name!==p)&&nr(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),a!==De?(d?!h&&a[l]&&(f=!0):delete a[l],f?a[l]=s:nr(a,l,s)):f?a[l]=s:a2(l,s)})(Function.prototype,"toString",function(){return cn(this)&&n(this).source||p2(this)})}),XJ=Math.ceil,ZJ=Math.floor,v2=function(e){var t=+e;return t!=t||t===0?0:(t>0?ZJ:XJ)(t)},JJ=Math.max,QJ=Math.min,b2=function(e,t){var n=v2(e);return n<0?JJ(n+t,0):QJ(n,t)},$J=Math.min,z5=function(e){return e>0?$J(v2(e),9007199254740991):0},wg=function(e){return z5(e.length)},eQ=function(e){return function(t,n,r){var o,a=Ws(t),l=wg(a),s=b2(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},tQ={indexOf:eQ(!1)}.indexOf,U5=st([].push),H5=function(e,t){var n,r=Ws(e),o=0,a=[];for(n in r)!tr(g2,n)&&tr(r,n)&&U5(a,n);for(;t.length>o;)tr(r,n=t[o++])&&(~tQ(a,n)||U5(a,n));return a},_g=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nQ=_g.concat("length","prototype"),rQ=Object.getOwnPropertyNames||function(e){return H5(e,nQ)},oQ={f:rQ},iQ={f:Object.getOwnPropertySymbols},aQ=st([].concat),lQ=od("Reflect","ownKeys")||function(e){var t=oQ.f(gr(e)),n=iQ.f;return n?aQ(t,n(e)):t},W5=function(e,t){for(var n=lQ(t),r=qs.f,o=f2.f,a=0;a<n.length;a++){var l=n[a];tr(e,l)||r(e,l,o(t,l))}},sQ=/#|\.prototype\./,sd=function(e,t){var n=uQ[cQ(e)];return n==fQ||n!=dQ&&(cn(t)?mn(t):!!t)},cQ=sd.normalize=function(e){return String(e).replace(sQ,".").toLowerCase()},uQ=sd.data={},dQ=sd.NATIVE="N",fQ=sd.POLYFILL="P",pQ=sd,hQ=f2.f,cd=function(e,t){var n,r,o,a,l,s=e.target,c=e.global,u=e.stat;if(n=c?De:u?De[s]||a2(s,{}):(De[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=hQ(n,r))&&l.value:n[r],!pQ(c?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;W5(a,o)}(e.sham||o&&o.sham)&&nr(a,"sham",!0),dl(n,r,a,e)}},q5={};q5[Wn("toStringTag")]="z";var Cg,w2=String(q5)==="[object z]",gQ=Wn("toStringTag"),mQ=De.Object,yQ=ll(function(){return arguments}())=="Arguments",Eg=w2?ll:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=mQ(e),gQ))=="string"?n:yQ?ll(t):(r=ll(t))=="Object"&&cn(t.callee)?"Arguments":r},vQ=De.String,fl=function(e){if(Eg(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vQ(e)},bQ=function(){var e=gr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_2=De.RegExp,G5=mn(function(){var e=_2("a","y");return e.lastIndex=2,e.exec("abcd")!=null});G5||mn(function(){return!_2("a","y").sticky});var wQ=G5||mn(function(){var e=_2("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),_Q={BROKEN_CARET:wQ},CQ=Object.keys||function(e){return H5(e,_g)},EQ=Eo?Object.defineProperties:function(e,t){gr(e);for(var n,r=Ws(t),o=CQ(t),a=o.length,l=0;a>l;)qs.f(e,n=o[l++],r[n]);return e},kQ=od("document","documentElement"),K5=h2("IE_PROTO"),C2=function(){},Y5=function(e){return"<script>"+e+"<\/script>"},X5=function(e){e.write(Y5("")),e.close();var t=e.parentWindow.Object;return e=null,t},kg=function(){try{Cg=new ActiveXObject("htmlfile")}catch{}var e,t;kg=typeof document<"u"?document.domain&&Cg?X5(Cg):((t=d2("iframe")).style.display="none",kQ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Y5("document.F=Object")),e.close(),e.F):X5(Cg);for(var n=_g.length;n--;)delete kg.prototype[_g[n]];return kg()};g2[K5]=!0;var Z5,E2,ud=Object.create||function(e,t){var n;return e!==null?(C2.prototype=gr(e),n=new C2,C2.prototype=null,n[K5]=e):n=kg(),t===void 0?n:EQ(n,t)},xQ=De.RegExp,NQ=mn(function(){var e=xQ(".","s");return!(e.dotAll&&e.exec(`
|
|
9
9
|
`)&&e.flags==="s")}),SQ=De.RegExp,DQ=mn(function(){var e=SQ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),BQ=ul.get,OQ=l2("native-string-replace",String.prototype.replace),xg=RegExp.prototype.exec,k2=xg,AQ=st("".charAt),VQ=st("".indexOf),FQ=st("".replace),x2=st("".slice),N2=(E2=/b*/g,Sn(xg,Z5=/a/,"a"),Sn(xg,E2,"a"),Z5.lastIndex!==0||E2.lastIndex!==0),J5=_Q.BROKEN_CARET,S2=/()??/.exec("")[1]!==void 0;(N2||S2||J5||NQ||DQ)&&(k2=function(e){var t,n,r,o,a,l,s,c=this,u=BQ(c),d=fl(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=Sn(k2,f,d),c.lastIndex=f.lastIndex,t;var h=u.groups,p=J5&&c.sticky,v=Sn(bQ,c),m=c.source,g=0,b=d;if(p&&(v=FQ(v,"y",""),VQ(v,"g")===-1&&(v+="g"),b=x2(d,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&AQ(d,c.lastIndex-1)!==`
|
|
@@ -188,4 +188,4 @@ Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&
|
|
|
188
188
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
189
189
|
PERFORMANCE OF THIS SOFTWARE.
|
|
190
190
|
***************************************************************************** */function Bs(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,a=e.styleToHtml,l=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(d){return rn.registerMenu(d)}),n&&n.forEach(function(d){return rn.registerRenderElem(d)}),r&&rn.registerRenderStyle(r),o&&o.forEach(function(d){return rn.registerElemToHtml(d)}),a&&rn.registerStyleToHtml(a),l&&l.forEach(function(d){return rn.registerPreParseHtml(d)}),s&&s.forEach(function(d){return rn.registerParseElemHtml(d)}),c&&rn.registerParseStyleHtml(c),u&&rn.registerPlugin(u)}vge.forEach(function(e){return Bs(e)}),Bs(Xme),Bs(_be),Bs(Awe),Bs(CEe),Bs(uke);var yU='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',vU={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},pke={hoverbarKeys:At(At({},vU),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};rn.setEditorConfig(At(At({},pke),{decorate:mU}));var hke={hoverbarKeys:vU};rn.setSimpleEditorConfig(At(At({},hke),{decorate:mU}));var gke={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ce("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:ce("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:ce("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:ce("editor.image"),iconSvg:yU,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ce("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};rn.setToolbarConfig(gke);var mke={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ce("editor.image"),iconSvg:yU,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function bU(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,a=e.html,l=e.config,s=l===void 0?{}:l,c=e.mode,u=(c===void 0?"default":c)==="simple"?rn.simpleEditorConfig:rn.editorConfig,d=At(At({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return wse({selector:n,config:At(At(At({},u),s),{hoverbarKeys:d}),content:o,html:a,plugins:rn.plugins})}function wU(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,a=e.mode,l=a===void 0?"default":a;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=l==="simple"?rn.simpleToolbarConfig:rn.toolbarConfig,c=function(u,d){if(u==null)throw new Error("Cannot create toolbar, because editor is null");var f=d.selector,h=d.config,p=h===void 0?{}:h;if(function(g,b){return VO(g,"data-w-e-toolbar",b)}(u,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=jr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),m=new sA(f,v);return w_.set(m,u),U0.set(u,m),m}(n,{selector:t,config:At(At({},s),o)});return c}rn.setSimpleToolbarConfig(mke);var yke={};const vke=Object.freeze(Object.defineProperty({__proto__:null,Boot:rn,DomEditor:M,SlateEditor:D,SlateElement:ve,SlateLocation:See,SlateNode:se,SlatePath:G,SlatePoint:Fe,SlateRange:te,SlateText:he,SlateTransforms:Z,Toolbar:sA,createEditor:bU,createToolbar:wU,createUploader:_C,default:yke,genModalButtonElems:Ul,genModalInputElems:ir,genModalTextareaElems:hse,i18nAddResources:Gn,i18nChangeLanguage:Wse,i18nGetResources:qse,t:ce},Symbol.toStringTag,{value:"Module"}));var bke=Object.defineProperty,wke=Object.defineProperties,_ke=Object.getOwnPropertyDescriptors,_U=Object.getOwnPropertySymbols,Cke=Object.prototype.hasOwnProperty,Eke=Object.prototype.propertyIsEnumerable,CU=(e,t,n)=>t in e?bke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kke=(e,t)=>{for(var n in t||(t={}))Cke.call(t,n)&&CU(e,n,t[n]);if(_U)for(var n of _U(t))Eke.call(t,n)&&CU(e,n,t[n]);return e},xke=(e,t)=>wke(e,_ke(t));function Ka(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
|
|
191
|
-
Please use '@${e}' event instead of props`,t}var EU=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Nke=i.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=i.ref(null),r=i.shallowRef(null),o=i.ref(""),a=()=>{if(!n.value)return;const s=i.toRaw(e.defaultContent);bU({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:xke(kke({},e.defaultConfig),{onCreated(c){if(r.value=c,t.emit("onCreated",c),e.defaultConfig.onCreated){const u=Ka("onCreated");throw new Error(u)}},onChange(c){const u=c.getHtml();if(o.value=u,t.emit("update:modelValue",u),t.emit("onChange",c),e.defaultConfig.onChange){const d=Ka("onChange");throw new Error(d)}},onDestroyed(c){if(t.emit("onDestroyed",c),e.defaultConfig.onDestroyed){const u=Ka("onDestroyed");throw new Error(u)}},onMaxLength(c){if(t.emit("onMaxLength",c),e.defaultConfig.onMaxLength){const u=Ka("onMaxLength");throw new Error(u)}},onFocus(c){if(t.emit("onFocus",c),e.defaultConfig.onFocus){const u=Ka("onFocus");throw new Error(u)}},onBlur(c){if(t.emit("onBlur",c),e.defaultConfig.onBlur){const u=Ka("onBlur");throw new Error(u)}},customAlert(c,u){if(t.emit("customAlert",c,u),e.defaultConfig.customAlert){const d=Ka("customAlert");throw new Error(d)}},customPaste:(c,u)=>{if(e.defaultConfig.customPaste){const f=Ka("customPaste");throw new Error(f)}let d;return t.emit("customPaste",c,u,f=>{d=f}),d}})})};function l(s){const c=r.value;c!=null&&c.setHtml(s)}return i.onMounted(()=>{a()}),i.watch(()=>e.modelValue,s=>{s!==o.value&&l(s)}),{box:n}}}),Ske={ref:"box",style:{height:"100%"}};function Dke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Ske,null,512)}var Bke=EU(Nke,[["render",Dke]]);const Oke=i.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=i.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");M.getToolbar(r)||wU({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Ake={ref:"selector"};function Vke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Ake,null,512)}var Fke=EU(Oke,[["render",Vke]]),kU={exports:{}};const Tke=Jq(vke);(function(e,t){(function(n,r){e.exports=r(Tke)})(self,n=>(()=>{var r={857:s=>{s.exports=n}},o={};function a(s){var c=o[s];if(c!==void 0)return c.exports;var u=o[s]={exports:{}};return r[s](u,u.exports,a),u.exports}a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>B});var s=a(857);(0,s.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,s.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function c(V,L,F,Y,$){return{sel:V,data:L,children:F,text:Y,elm:$,key:L===void 0?void 0:L.key}}const u=Array.isArray;function d(V){return typeof V=="string"||typeof V=="number"||V instanceof String||V instanceof Number}function f(V,L,F){if(V.ns="http://www.w3.org/2000/svg",F!=="foreignObject"&&L!==void 0)for(let Y=0;Y<L.length;++Y){const $=L[Y];if(typeof $=="string")continue;const ie=$.data;ie!==void 0&&f(ie,$.children,$.sel)}}function h(V,L,F){let Y,$,ie,K={};if(F!==void 0?(L!==null&&(K=L),u(F)?Y=F:d(F)?$=F.toString():F&&F.sel&&(Y=[F])):L!=null&&(u(L)?Y=L:d(L)?$=L.toString():L&&L.sel?Y=[L]:K=L),Y!==void 0)for(ie=0;ie<Y.length;++ie)d(Y[ie])&&(Y[ie]=c(void 0,void 0,void 0,Y[ie],void 0));return V[0]!=="s"||V[1]!=="v"||V[2]!=="g"||V.length!==3&&V[3]!=="."&&V[3]!=="#"||f(K,Y,V),c(V,K,Y,$,void 0)}const p={type:"attachment",renderElem:function(V,L,F){var Y=F.isDisabled(),$=s.DomEditor.isNodeSelected(F,V),ie=V,K=ie.fileName,X=K===void 0?"":K,ge=ie.link,ae=ge===void 0?"":ge;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:$&&!Y?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:Y?"pointer":"inherit"},on:{click:function(){Y&&ae&&window.open(ae,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),X])}};function v(V){return V!==null&&typeof V=="object"&&"constructor"in V&&V.constructor===Object}function m(V={},L={}){Object.keys(L).forEach(F=>{V[F]===void 0?V[F]=L[F]:v(L[F])&&v(V[F])&&Object.keys(L[F]).length>0&&m(V[F],L[F])})}const g={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const V=typeof document<"u"?document:{};return m(V,g),V}const y={document:g,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:V=>typeof setTimeout>"u"?(V(),null):setTimeout(V,0),cancelAnimationFrame(V){typeof setTimeout<"u"&&clearTimeout(V)}};function w(){const V=typeof window<"u"?window:{};return m(V,y),V}class _ extends Array{constructor(L){typeof L=="number"?super(L):(super(...L||[]),function(F){const Y=F.__proto__;Object.defineProperty(F,"__proto__",{get:()=>Y,set($){Y.__proto__=$}})}(this))}}function E(V,L){const F=w(),Y=b();let $=[];if(!L&&V instanceof _)return V;if(!V)return new _($);if(typeof V=="string"){const ie=V.trim();if(ie.indexOf("<")>=0&&ie.indexOf(">")>=0){let K="div";ie.indexOf("<li")===0&&(K="ul"),ie.indexOf("<tr")===0&&(K="tbody"),ie.indexOf("<td")!==0&&ie.indexOf("<th")!==0||(K="tr"),ie.indexOf("<tbody")===0&&(K="table"),ie.indexOf("<option")===0&&(K="select");const X=Y.createElement(K);X.innerHTML=ie;for(let ge=0;ge<X.childNodes.length;ge+=1)$.push(X.childNodes[ge])}else $=function(K,X){if(typeof K!="string")return[K];const ge=[],ae=X.querySelectorAll(K);for(let ne=0;ne<ae.length;ne+=1)ge.push(ae[ne]);return ge}(V.trim(),L||Y)}else if(V.nodeType||V===F||V===Y)$.push(V);else if(Array.isArray(V)){if(V instanceof _)return V;$=V}return new _(function(ie){const K=[];for(let X=0;X<ie.length;X+=1)K.indexOf(ie[X])===-1&&K.push(ie[X]);return K}($))}function x(...V){let[L,F,Y,$]=V;function ie(ae){const ne=ae.target;if(!ne)return;const me=ae.target.dom7EventData||[];if(me.indexOf(ae)<0&&me.unshift(ae),E(ne).is(F))Y.apply(ne,me);else{const ot=E(ne).parents();for(let Ne=0;Ne<ot.length;Ne+=1)E(ot[Ne]).is(F)&&Y.apply(ot[Ne],me)}}function K(ae){const ne=ae&&ae.target&&ae.target.dom7EventData||[];ne.indexOf(ae)<0&&ne.unshift(ae),Y.apply(this,ne)}typeof V[1]=="function"&&([L,Y,$]=V,F=void 0),$||($=!1);const X=L.split(" ");let ge;for(let ae=0;ae<this.length;ae+=1){const ne=this[ae];if(F)for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7LiveListeners||(ne.dom7LiveListeners={}),ne.dom7LiveListeners[me]||(ne.dom7LiveListeners[me]=[]),ne.dom7LiveListeners[me].push({listener:Y,proxyListener:ie}),ne.addEventListener(me,ie,$)}else for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7Listeners||(ne.dom7Listeners={}),ne.dom7Listeners[me]||(ne.dom7Listeners[me]=[]),ne.dom7Listeners[me].push({listener:Y,proxyListener:K}),ne.addEventListener(me,K,$)}}return this}function C(){for(let V=0;V<this.length;V+=1)this[V].style.display="none";return this}function S(...V){let L;const F=b();for(let Y=0;Y<V.length;Y+=1){L=V[Y];for(let $=0;$<this.length;$+=1)if(typeof L=="string"){const ie=F.createElement("div");for(ie.innerHTML=L;ie.firstChild;)this[$].appendChild(ie.firstChild)}else if(L instanceof _)for(let ie=0;ie<L.length;ie+=1)this[$].appendChild(L[ie]);else this[$].appendChild(L)}return this}E.fn=_.prototype;const N="resize scroll".split(" ");function O(V){return function(...L){if(L[0]===void 0){for(let F=0;F<this.length;F+=1)N.indexOf(V)<0&&(V in this[F]?this[F][V]():E(this[F]).trigger(V));return this}return this.on(V,...L)}}const P=O("click"),I=E;C&&(I.fn.hide=C),S&&(I.fn.append=S),P&&(I.fn.click=P),x&&(I.fn.on=x);const W=I;var R=function(){return R=Object.assign||function(V){for(var L,F=1,Y=arguments.length;F<Y;F++)for(var $ in L=arguments[F])Object.prototype.hasOwnProperty.call(L,$)&&(V[$]=L[$]);return V},R.apply(this,arguments)},U=function(V,L,F,Y){return new(F||(F=Promise))(function($,ie){function K(ae){try{ge(Y.next(ae))}catch(ne){ie(ne)}}function X(ae){try{ge(Y.throw(ae))}catch(ne){ie(ne)}}function ge(ae){var ne;ae.done?$(ae.value):(ne=ae.value,ne instanceof F?ne:new F(function(me){me(ne)})).then(K,X)}ge((Y=Y.apply(V,[])).next())})},Q=function(V,L){var F,Y,$,ie,K={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ie={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function X(ge){return function(ae){return function(ne){if(F)throw new TypeError("Generator is already executing.");for(;K;)try{if(F=1,Y&&($=2&ne[0]?Y.return:ne[0]?Y.throw||(($=Y.return)&&$.call(Y),0):Y.next)&&!($=$.call(Y,ne[1])).done)return $;switch(Y=0,$&&(ne=[2&ne[0],$.value]),ne[0]){case 0:case 1:$=ne;break;case 4:return K.label++,{value:ne[1],done:!1};case 5:K.label++,Y=ne[1],ne=[0];continue;case 7:ne=K.ops.pop(),K.trys.pop();continue;default:if(!(($=($=K.trys).length>0&&$[$.length-1])||ne[0]!==6&&ne[0]!==2)){K=0;continue}if(ne[0]===3&&(!$||ne[1]>$[0]&&ne[1]<$[3])){K.label=ne[1];break}if(ne[0]===6&&K.label<$[1]){K.label=$[1],$=ne;break}if($&&K.label<$[2]){K.label=$[2],K.ops.push(ne);break}$[2]&&K.ops.pop(),K.trys.pop();continue}ne=L.call(V,K)}catch(me){ne=[6,me],Y=0}finally{F=$=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([ge,ae])}}};function j(V){return V.getMenuConfig("uploadAttachment")}function T(V,L,F){if(L&&F){V.restoreSelection();var Y={type:"attachment",fileName:L,link:F,children:[{text:""}]};V.insertNode(Y),V.move(1);var $=j(V).onInsertedAttachment;$&&$(Y)}}function J(V,L){return U(this,void 0,void 0,function(){var F,Y,$,ie;return Q(this,function(K){switch(K.label){case 0:return F=function(X){var ge=oe.get(X);if(ge!=null)return ge;var ae=j(X),ne=ae.onSuccess,me=ae.onProgress,ot=ae.onFailed,Ne=ae.customInsert,Ge=ae.onError;return ge=(0,s.createUploader)(R(R({},ae),{onProgress:function(Re){X.showProgressBar(Re),me&&me(Re)},onSuccess:function(Re,at){if(Ne)Ne(at,Re,function(on,Xn){return T(X,on,Xn)});else{var Se=at.errno,Vt=Se===void 0?1:Se,En=at.data,Yn=En===void 0?{}:En;if(Vt!==0)return console.error("'".concat(Re.name,"' upload failed"),at),void ot(Re,at);var It=Yn.url,hn=It===void 0?"":It;T(X,Re.name,hn),ne(Re,at)}},onError:function(Re,at,Se){var Vt=Re.name;console.error("'".concat(Vt," upload error"),at,Se),Ge&&Ge(Re,at,Se)}})),oe.set(X,ge),ge}(V),Y=L.name,$=L.type,ie=L.size,F.addFile({name:Y,type:$,size:ie,data:L}),[4,F.upload()];case 1:return K.sent(),[2]}})})}var oe=new WeakMap;const A=function(){function V(){this.title=(0,s.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return V.prototype.getValue=function(L){return""},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){var Y=this.getMenuConfig(L),$=Y.allowedFileTypes,ie=$===void 0?[]:$,K=Y.customBrowseAndUpload;if(K)K(function(ne,me){return T(L,ne,me)});else{var X="";ie.length>0&&(X='accept="'.concat(ie.join(", "),'"'));var ge=W("body"),ae=W('<input type="file" '.concat(X," multiple/>"));ae.hide(),ge.append(ae),ae.click(),ae.on("change",function(){var ne=ae[0].files;(function(me,ot){var Ne,Ge;U(this,void 0,void 0,function(){var Re,at,Se,Vt,En,Yn;return Q(this,function(It){switch(It.label){case 0:if(ot==null)return[2];Re=Array.prototype.slice.call(ot),at=j(me).customUpload,It.label=1;case 1:It.trys.push([1,9,10,15]),Se=function(hn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var on,Xn=hn[Symbol.asyncIterator];return Xn?Xn.call(hn):(hn=typeof __values=="function"?__values(hn):hn[Symbol.iterator](),on={},Sr("next"),Sr("throw"),Sr("return"),on[Symbol.asyncIterator]=function(){return this},on);function Sr(an){on[an]=hn[an]&&function(ln){return new Promise(function(kn,On){(function(sn,ur,Os,Zo){Promise.resolve(Zo).then(function(mo){sn({value:mo,done:Os})},ur)})(kn,On,(ln=hn[an](ln)).done,ln.value)})}}}(Re),It.label=2;case 2:return[4,Se.next()];case 3:return(Vt=It.sent()).done?[3,8]:(En=Vt.value,at?[4,at(En,function(hn,on){return T(me,hn,on)})]:[3,5]);case 4:return It.sent(),[3,7];case 5:return[4,J(me,En)];case 6:It.sent(),It.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return Yn=It.sent(),Ne={error:Yn},[3,15];case 10:return It.trys.push([10,,13,14]),Vt&&!Vt.done&&(Ge=Se.return)?[4,Ge.call(Se)]:[3,12];case 11:It.sent(),It.label=12;case 12:return[3,14];case 13:if(Ne)throw Ne.error;return[7];case 14:return[7];case 15:return[2]}})})})(L,ne)})}},V.prototype.isDisabled=function(L){var F=L.selection;if(F==null||s.SlateRange.isExpanded(F))return!0;var Y=s.DomEditor.getSelectedElems(L);return!!Y.some(function($){return L.isVoid($)})||!!Y.some(function($){return s.DomEditor.getNodeType($)==="pre"})},V.prototype.getMenuConfig=function(L){return L.getMenuConfig("uploadAttachment")},V}(),k=function(){function V(){this.title=(0,s.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return V.prototype.getValue=function(L){var F=this.getSelectedElem(L);return F==null?"":F.link},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){F&&typeof F=="string"&&window.open(F,"_blank")},V.prototype.isDisabled=function(L){var F=L.selection;return F==null||!!s.SlateRange.isExpanded(F)||this.getSelectedElem(L)==null},V.prototype.getSelectedElem=function(L){var F=s.DomEditor.getSelectedNodeByType(L,"attachment");return F??null},V}(),B={editorPlugin:function(V){var L=V.isInline,F=V.isVoid,Y=V;return Y.isInline=function($){return s.DomEditor.getNodeType($)==="attachment"||L($)},Y.isVoid=function($){return s.DomEditor.getNodeType($)==="attachment"||F($)},Y},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(V,L){var F=V,Y=F.link,$=Y===void 0?"":Y,ie=F.fileName,K=ie===void 0?"":ie;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat($,'" download="').concat(K,'">').concat(K,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(V,L,F){return{type:"attachment",link:V.getAttribute("href")||"",fileName:V.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new A},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(V){return V},onProgress:function(V){},onSuccess:function(V,L){},onFailed:function(V,L){},onError:function(V,L,F){},onInsertedAttachment:function(V){}}},{key:"downloadAttachment",factory:function(){return new k}}]}})(),l})())})(kU);var Pke=kU.exports;const jke=Zq(Pke),Ike=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:"更多",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink","insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"],xU={namespace:"d",elNamespace:"df",app:"_app_lo4el_1",clearfix:"_clearfix_lo4el_38","text-center":"_text-center_lo4el_44","no-padding":"_no-padding_lo4el_48","flx-center":"_flx-center_lo4el_53","flx-justify-between":"_flx-justify-between_lo4el_59","flx-align-center":"_flx-align-center_lo4el_65","clearfix-after":"_clearfix-after_lo4el_71",sle:"_sle_lo4el_80",mle:"_mle_lo4el_87","break-word":"_break-word_lo4el_95",nprogress:"_nprogress_lo4el_1",bar:"_bar_lo4el_113","spinner-icon":"_spinner-icon_lo4el_117",peg:"_peg_lo4el_122","main-maximize":"_main-maximize_lo4el_127","aside-split":"_aside-split_lo4el_127","df-aside":"_df-aside_lo4el_128","df-header":"_df-header_lo4el_129","df-footer":"_df-footer_lo4el_130","tabs-nav":"_tabs-nav_lo4el_131","antd-message":"_antd-message_lo4el_136","df-message":"_df-message_lo4el_142","is-closable":"_is-closable_lo4el_142","df-message__content":"_df-message__content_lo4el_142","df-message__icon":"_df-message__icon_lo4el_150","df-message__closeBtn":"_df-message__closeBtn_lo4el_153",card:"_card_lo4el_164","theme-color-hover":"_theme-color-hover_lo4el_175","df-drawer":"_df-drawer_lo4el_180","df-drawer__header":"_df-drawer__header_lo4el_184","df-drawer__footer":"_df-drawer__footer_lo4el_189","df-select":"_df-select_lo4el_192","drawer-multiColumn-form":"_drawer-multiColumn-form_lo4el_195","df-form-item":"_df-form-item_lo4el_199","df-dialog":"_df-dialog_lo4el_207","df-dialog__header":"_df-dialog__header_lo4el_207","df-dialog__body":"_df-dialog__body_lo4el_210","df-dialog__footer":"_df-dialog__footer_lo4el_213","m-5":"_m-5_lo4el_218","mt-5":"_mt-5_lo4el_222","mb-5":"_mb-5_lo4el_226","ml-5":"_ml-5_lo4el_230","mr-5":"_mr-5_lo4el_234","p-5":"_p-5_lo4el_238","pt-5":"_pt-5_lo4el_242","pb-5":"_pb-5_lo4el_246","pl-5":"_pl-5_lo4el_250","pr-5":"_pr-5_lo4el_254","m-10":"_m-10_lo4el_258","mt-10":"_mt-10_lo4el_262","mb-10":"_mb-10_lo4el_266","ml-10":"_ml-10_lo4el_270","mr-10":"_mr-10_lo4el_274","p-10":"_p-10_lo4el_278","pt-10":"_pt-10_lo4el_282","pb-10":"_pb-10_lo4el_286","pl-10":"_pl-10_lo4el_290","pr-10":"_pr-10_lo4el_294","m-15":"_m-15_lo4el_298","mt-15":"_mt-15_lo4el_302","mb-15":"_mb-15_lo4el_306","ml-15":"_ml-15_lo4el_310","mr-15":"_mr-15_lo4el_314","p-15":"_p-15_lo4el_318","pt-15":"_pt-15_lo4el_322","pb-15":"_pb-15_lo4el_326","pl-15":"_pl-15_lo4el_330","pr-15":"_pr-15_lo4el_334","m-20":"_m-20_lo4el_338","mt-20":"_mt-20_lo4el_342","mb-20":"_mb-20_lo4el_346","ml-20":"_ml-20_lo4el_350","mr-20":"_mr-20_lo4el_354","p-20":"_p-20_lo4el_358","pt-20":"_pt-20_lo4el_362","pb-20":"_pb-20_lo4el_366","pl-20":"_pl-20_lo4el_370","pr-20":"_pr-20_lo4el_374","m-25":"_m-25_lo4el_378","mt-25":"_mt-25_lo4el_382","mb-25":"_mb-25_lo4el_386","ml-25":"_ml-25_lo4el_390","mr-25":"_mr-25_lo4el_394","p-25":"_p-25_lo4el_398","pt-25":"_pt-25_lo4el_402","pb-25":"_pb-25_lo4el_406","pl-25":"_pl-25_lo4el_410","pr-25":"_pr-25_lo4el_414","m-30":"_m-30_lo4el_418","mt-30":"_mt-30_lo4el_422","mb-30":"_mb-30_lo4el_426","ml-30":"_ml-30_lo4el_430","mr-30":"_mr-30_lo4el_434","p-30":"_p-30_lo4el_438","pt-30":"_pt-30_lo4el_442","pb-30":"_pb-30_lo4el_446","pl-30":"_pl-30_lo4el_450","pr-30":"_pr-30_lo4el_454","fz-14":"_fz-14_lo4el_458","fz-15":"_fz-15_lo4el_462","fz-16":"_fz-16_lo4el_466","fz-17":"_fz-17_lo4el_470","fz-18":"_fz-18_lo4el_474","fz-19":"_fz-19_lo4el_478","fz-20":"_fz-20_lo4el_482","fz-21":"_fz-21_lo4el_486","fz-22":"_fz-22_lo4el_490","fz-23":"_fz-23_lo4el_494","fz-24":"_fz-24_lo4el_498"},Lke=()=>({variables:xU,getPrefixClass:t=>`${xU.namespace}-${t}`}),eb=YU(et(i.defineComponent({name:"WangEditor",__name:"index",props:i.mergeModels({toolbarKeys:{default:()=>[]},excludeKeys:{default:()=>[]},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},hideToolBar:{type:Boolean,default:!1}},{modelValue:{default:""},modelModifiers:{}}),emits:i.mergeModels(["imageUpload","imageBeforeUpload","imageProgress","imageSuccess","imageFailed","imageError","videoUpload","fileBeforeUpload","fileUpload","onPaste","onCreated"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const{getPrefixClass:r}=Lke(),o=r("wang-editor"),a=e,l=n,s=i.useModel(e,"modelValue"),c=i.shallowRef(),u=i.reactive({placeholder:"请输入内容 ...",readOnly:a.disabled,MENU_CONF:{uploadImage:{maxFileSize:10*1024*1024,allowedFileTypes:["image/*"],customUpload:(p,v)=>{l("imageUpload",p,v)},onBeforeUpload:p=>{l("imageBeforeUpload",p)},onProgress:p=>{l("imageProgress",p)},onSuccess:(p,v)=>{l("imageSuccess",p,v)},onFailed:(p,v)=>{l("imageFailed",p,v)},onError:(p,v,m)=>{l("imageError",p,v,m)}},uploadVideo:{maxFileSize:300*1024*1024,allowedFileTypes:["video/*"],customUpload:(p,v)=>{l("videoUpload",p,v)}},uploadAttachment:{maxFileSize:10*1024*1024,onBeforeUpload:p=>{l("fileBeforeUpload",p)},customUpload:(p,v)=>{l("fileUpload",p,v)}}}}),d=i.computed(()=>({toolbarKeys:a.toolbarKeys.length>0?a.toolbarKeys:Ike,excludeKeys:a.excludeKeys,insertKeys:{index:22,keys:["uploadAttachment"]}}));i.watch(()=>a.disabled,()=>{i.unref(c)&&(a.disabled?i.unref(c).disable():i.unref(c).enable())}),i.onMounted(()=>{try{rn.registerModule(jke)}catch{}});const f=p=>{c.value=p,a.disabled?i.unref(c).disable():i.unref(c).enable(),l("onCreated",p)},h=(p,v)=>{l("onPaste",p,v)};return i.onBeforeUnmount(()=>{i.unref(c)&&i.unref(c).destroy()}),t({editor:c}),(p,v)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(o),{disabled:p.disabled}])},[p.hideToolBar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Fke),{key:0,class:i.normalizeClass(`${i.unref(o)}__toolbar`),editor:c.value,defaultConfig:d.value,mode:p.mode},null,8,["class","editor","defaultConfig","mode"])),i.createVNode(i.unref(Bke),i.mergeProps({class:`${i.unref(o)}__content`,style:{height:typeof p.height=="string"?p.height:`${p.height}px`,overflowY:"hidden"},modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=m=>s.value=m),defaultConfig:u,mode:p.mode},p.$attrs,{onOnCreated:f,onCustomPaste:h}),null,16,["class","style","modelValue","defaultConfig","mode"])],2))}}),[["__scopeId","data-v-36eeeada"]])),Rke=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"dingDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送钉钉消息是指以企业工作通知会话中某个微应用的名义推送到员工的通知消息 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-29c0611f"]])},Symbol.toStringTag,{value:"Module"})),Mke={style:{float:"left"}},zke={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Uke={key:0,class:"no-work"},Hke={key:1,class:"config-detail"},Wke={class:"config-item"},qke={class:"children-query",style:{"margin-top":"20px"}},Gke={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Kke={style:{flex:"1"}},Yke={class:"flex-both"},Xke={class:"flex"},Zke={class:"txt-label"},Jke={class:"condition-select"},Qke={key:0,class:"function-tag"},$ke={class:"box"},exe={class:"ellipsis table-name"},txe={class:"field-name ellipsis"},nxe={style:{margin:"20px 0"}},rxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},oxe={class:"field-list"},ixe=["onClick"],axe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"editDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var v,m;const p=r.value.trim().toLowerCase();return(m=(v=t.config)==null?void 0:v.selectNodeFields)==null?void 0:m.filter(g=>[g.columnName,g.columnComment].some(b=>String(b||"").toLowerCase().includes(p)))});function a(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){a(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&a(p.childNode,v,m),m}function l(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table","api"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){l(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&l(p.childNode,v,m),m}const s=i.computed(()=>{const p=[];return a(n.value.nodeConfig,t.node.nodeId,p),p}),c=i.computed(()=>{const p=[];return p.push(Jr.defaultNode),l(n.value.nodeConfig,t.node.nodeId,p),p});async function u(){const p=s.value.find(v=>v.nodeId===t.config.selectNodeId);p&&(t.config.workId=p.config.workId,t.config.workName=p.config.workName,t.config.selectNodeFields=xn(p.config.fields))}function d(p){p.compare="eq",t.config.fields.push(p)}function f(p){t.config.fields.splice(p,1)}function h(p){p.nodeId="",p.nodeName="",p.fieldValue=void 0,p.fieldValueName=""}return(p,v)=>{const m=i.resolveComponent("el-option"),g=i.resolveComponent("el-select"),b=i.resolveComponent("el-form-item"),y=i.resolveComponent("el-form"),w=i.resolveComponent("InfoFilled"),_=i.resolveComponent("el-icon"),E=i.resolveComponent("Close"),x=i.resolveComponent("el-input"),C=i.resolveComponent("el-button"),S=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(y,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(b,{label:"选择更新对象"},{default:i.withCtx(()=>[i.createVNode(g,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":v[0]||(v[0]=N=>t.config.selectNodeId=N),filterable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(N,O)=>(i.openBlock(),i.createBlock(m,{key:O,label:N.nodeName,value:N.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Mke,i.toDisplayString(N.nodeName),1),i.createElementVNode("span",zke,' 工作表 "'+i.toDisplayString(N.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),v[6]||(v[6]=i.createElementVNode("div",{class:"title"},"更新字段",-1)),t.config.selectNodeId?(i.openBlock(),i.createElementBlock("div",Hke,[i.createElementVNode("div",Wke,[i.createElementVNode("div",qke,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(N,O)=>{var P;return i.openBlock(),i.createElementBlock(i.Fragment,{key:O},[N.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",Gke,[i.createElementVNode("div",Kke,[i.createElementVNode("div",Yke,[i.createElementVNode("div",Xke,[i.createElementVNode("span",Zke,i.toDisplayString(N.columnComment),1),i.createElementVNode("span",null,[i.createVNode(g,{modelValue:N.compare,"onUpdate:modelValue":I=>N.compare=I,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(m,{label:"设为",value:"eq"}),i.createVNode(m,{label:"添加",value:"add"}),i.createVNode(m,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(_,{class:"close-icon",onClick:I=>f(O)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Jke,[N.nodeId?(i.openBlock(),i.createElementBlock("div",Qke,[i.createElementVNode("div",$ke,[i.createElementVNode("div",exe,[i.createElementVNode("span",null,i.toDisplayString(N.nodeName),1),v[3]||(v[3]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),v[4]||(v[4]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",txe,i.toDisplayString(N.fieldValueName),1)]),i.createVNode(_,{onClick:I=>h(N)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((P=N==null?void 0:N.fieldAttr)==null?void 0:P.type)?(i.openBlock(),i.createBlock(g,{key:0,modelValue:N.fieldValue,"onUpdate:modelValue":I=>N.fieldValue=I,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(N.fieldAttr.enum,(I,W)=>(i.openBlock(),i.createBlock(m,{key:W,label:I.label,value:I.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(x,{key:1,modelValue:N.fieldValue,"onUpdate:modelValue":I=>N.fieldValue=I,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(p.$slots,"action",{item:N,varList:c.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",nxe,[i.createVNode(S,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(C,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>v[5]||(v[5]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",rxe,[i.createVNode(x,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":v[1]||(v[1]=N=>r.value=N)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",oxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(N,O)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:O},[N.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:P=>d(N)},i.toDisplayString(N.columnComment),9,ixe)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",Uke,[i.createVNode(_,{size:"17"},{default:i.withCtx(()=>[i.createVNode(w)]),_:1}),v[2]||(v[2]=i.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-1e7eba22"]])},Symbol.toStringTag,{value:"Module"})),lxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"emailDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=ref(0),r=i.inject("showUser");function o(){n.value=0,r()}function a(){n.value=1,r()}const l=i.inject("getUserIds");i.watch(l,c=>{c&&c.length>0&&(n.value===1?t.config.notifys=[...t.config.notifys,...c]:t.config.accounts=[...t.config.accounts,...c])});function s(c,u){c.splice(u,1)}return(c,u)=>{const d=i.resolveComponent("el-tag"),f=i.resolveComponent("el-button"),h=i.resolveComponent("el-form-item"),p=i.resolveComponent("el-input"),v=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[u[2]||(u[2]=i.createElementVNode("div",{class:"header"},"仅支持通过代发邮件",-1)),i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(h,{label:"收件人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.accounts,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:o},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"抄送人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.notifys,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.notify,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:a},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"主题"},{default:i.withCtx(()=>[i.createVNode(p,{modelValue:t.config.title,"onUpdate:modelValue":u[0]||(u[0]=m=>t.config.title=m)},null,8,["modelValue"])]),_:1}),i.createVNode(h,{label:"正文"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":u[1]||(u[1]=m=>t.config.conent=m),height:"350px"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-e5fd9820"]])},Symbol.toStringTag,{value:"Module"})),sxe={class:"no-work",style:{width:"100%","line-height":"14px"}},cxe={style:{float:"left"}},uxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},dxe={class:"sub-title"},fxe={style:{color:"#1e88e5 !important"}},pxe={class:"no-work"},hxe={class:"ml"},gxe={key:0,style:{color:"red"}},mxe={key:1},yxe={class:"config-detail"},vxe={class:"config-item"},bxe={class:"children-query",style:{"margin-top":"20px"}},wxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},_xe={style:{flex:"1"}},Cxe={class:"flex-both"},Exe={class:"flex"},kxe={class:"txt-label"},xxe={class:"condition-select"},Nxe={key:0,class:"function-tag"},Sxe={class:"box"},Dxe={class:"ellipsis table-name"},Bxe={class:"field-name ellipsis"},Oxe={style:{margin:"20px 0"}},Axe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},Vxe={class:"field-list"},Fxe=["onClick"],Txe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var x,C;const E=r.value.trim().toLowerCase();return(C=(x=t.config)==null?void 0:x.fields)==null?void 0:C.filter(S=>[S.columnName,S.columnComment].some(N=>String(N||"").toLowerCase().includes(E)))});function a(E,x,C=[]){if(E.nodeId===x)return C;["odd","search","add","button","table"].includes(E.nodeType)&&C.push(E);let N=!1;if(E.nodeType==="router"&&E.conditionNodes){for(const O of E.conditionNodes)if(Ft(O,x)){a(O.childNode,x,C),N=!0;break}}return!N&&E.childNode&&a(E.childNode,x,C),C}const l=i.computed(()=>{const E=[];return a(n.value.nodeConfig,t.node.nodeId,E),E}),s=i.inject("getFlowFun"),c=i.inject(Qn),u=i.inject("getParentFlowFun"),d=i.ref([]);async function f(){d.value=await s(t.config.workId)}f(),t.config.procId||(t.config.procId=zu());const h=i.computed(()=>{const E=[];E.push(Jr.defaultNode);const x=l.value.find(C=>C.nodeId===t.config.selectNodeId);return x&&E.push(x),E});async function p(){b();const E=l.value.find(x=>x.nodeId===t.config.selectNodeId);E&&(t.config.procId||(t.config.procId=zu()),t.config.nodeType=E.nodeType,t.config.workId=E.config.workId,t.config.workName=E.config.workName,t.config.fields=E.config.fields,f())}function v(E){E.compare="eq",t.config.params.push(E)}function m(E){t.config.params.splice(E,1)}function g(E){E.nodeId="",E.nodeName="",E.fieldValue=void 0,E.fieldValueName=""}function b(){t.config.procId="",t.config.procName="子流程"}function y(E){t.config.procId=E.procId,t.config.procName=E.procName}const w=i.ref([]);async function _(){var x;if(t.config.workId){const C=await c(t.config.workId);C&&(t.config.fields=C.fieldList,t.config.workName=C.workName)}const E=await u(t.config.procId,t.node.nodeId,t.node.selectNodeId);E&&(t.config.procName=E.config.procName,w.value=(x=E==null?void 0:E.parentProcName)==null?void 0:x.split(","))}return _(),(E,x)=>{const C=i.resolveComponent("el-form-item"),S=i.resolveComponent("el-form"),N=i.resolveComponent("el-option"),O=i.resolveComponent("el-select"),P=i.resolveComponent("el-radio"),I=i.resolveComponent("el-radio-group"),W=i.resolveComponent("arrow-down"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-dropdown-item"),Q=i.resolveComponent("el-dropdown-menu"),j=i.resolveComponent("el-dropdown"),T=i.resolveComponent("Close"),J=i.resolveComponent("el-input"),oe=i.resolveComponent("el-button"),A=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.unref(n).procType==="flow"?(i.openBlock(),i.createBlock(S,{key:0,model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"数据源"},{default:i.withCtx(()=>[i.createTextVNode(" 工作表: "+i.toDisplayString(t.config.workName),1)]),_:1}),i.createVNode(C,{label:"被以下工作流触发"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.value,k=>(i.openBlock(),i.createElementBlock("div",sxe,i.toDisplayString(k),1))),256))]),_:1})]),_:1},8,["model"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(S,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"选择数据对象"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":x[0]||(x[0]=k=>t.config.selectNodeId=k),filterable:"",onChange:p},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(N,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",cxe,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",uxe,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t.config.nodeType==="odd"?(i.openBlock(),i.createBlock(C,{key:0,label:"多条数据执行方式"},{default:i.withCtx(()=>[x[7]||(x[7]=i.createElementVNode("span",{class:"remark"}," 您选择了多条数据对象,将根据数据的条数执行多条子流程 ",-1)),i.createVNode(I,{modelValue:e.config.oddType,"onUpdate:modelValue":x[1]||(x[1]=k=>e.config.oddType=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>x[3]||(x[3]=[i.createTextVNode("并行")])),_:1}),x[5]||(x[5]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将同时执行各自的流程。即便某条子流程运行中止,也不影响其他子流程的执行。 ",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>x[4]||(x[4]=[i.createTextVNode("逐条执行")])),_:1}),x[6]||(x[6]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将依次执行流程。每条子流程需要等前一条子流程通过后再开始触发 ",-1))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["model"]),i.createElementVNode("div",dxe,[x[10]||(x[10]=i.createElementVNode("span",null,"执行子流程",-1)),i.createVNode(j,null,{dropdown:i.withCtx(()=>[i.createVNode(Q,null,{default:i.withCtx(()=>[i.createVNode(U,{onClick:b},{default:i.withCtx(()=>x[9]||(x[9]=[i.createTextVNode("清除选择")])),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[B===0?(i.openBlock(),i.createBlock(U,{key:0,divided:"",onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"])):(i.openBlock(),i.createBlock(U,{key:1,onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("span",fxe,[x[8]||(x[8]=i.createTextVNode(" 选择已有流程 ")),i.createVNode(R,{class:"el-icon--right"},{default:i.withCtx(()=>[i.createVNode(W)]),_:1})])]),_:1})]),i.createElementVNode("div",pxe,[i.createElementVNode("div",hxe,[t.config.procId?(i.openBlock(),i.createElementBlock("span",mxe,i.toDisplayString(t.config.procName),1)):(i.openBlock(),i.createElementBlock("span",gxe,"节点保存后,将自动创建一个新的子流程(新建)"))])]),i.createElementVNode("div",yxe,[i.createElementVNode("div",vxe,[i.createElementVNode("div",bxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.params,(k,B)=>{var V;return i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",wxe,[i.createElementVNode("div",_xe,[i.createElementVNode("div",Cxe,[i.createElementVNode("div",Exe,[i.createElementVNode("span",kxe,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(O,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(N,{label:"设为",value:"eq"}),i.createVNode(N,{label:"添加",value:"add"}),i.createVNode(N,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>m(B)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])]),i.createElementVNode("span",xxe,[k.nodeId?(i.openBlock(),i.createElementBlock("div",Nxe,[i.createElementVNode("div",Sxe,[i.createElementVNode("div",Dxe,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),x[11]||(x[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),x[12]||(x[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",Bxe,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>g(k)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(O,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(N,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(E.$slots,"action",{item:k,varList:h.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",Oxe,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>x[13]||(x[13]=[i.createTextVNode("添加参数")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",Axe,[i.createVNode(J,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":x[2]||(x[2]=k=>r.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",Vxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:V=>v(k)},i.toDisplayString(k.columnComment),9,Fxe)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])],64))])}}}),[["__scopeId","data-v-709644ee"]])},Symbol.toStringTag,{value:"Module"})),Pxe={style:{float:"left"}},jxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Ixe={key:0},Lxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"notifyDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(u,d,f=[]){return u.nodeId===d||(u.config.fields&&u.config.fields.length>0&&f.push(u),u.childNode&&r(u.childNode,d,f)),f}const o=i.computed(()=>{const u=[];return r(n.value.nodeConfig,t.node.nodeId,u),u});async function a(){const u=o.value.find(d=>d.nodeId===t.config.selectNodeId);u&&(t.config.workId=u.config.workId,t.config.workName=u.config.workName,t.config.selectNodeFields=xn(u.config.fields))}const l=i.ref("base");i.onMounted(async()=>{s()});function s(){t.config.handlerScope||(t.config.handlerScope=1),t.config.handlers||(t.config.handlers=[])}function c(){t.config.handlers=[]}return(u,d)=>{const f=i.resolveComponent("el-option"),h=i.resolveComponent("el-select"),p=i.resolveComponent("el-form-item"),v=i.resolveComponent("el-form"),m=i.resolveComponent("el-radio"),g=i.resolveComponent("el-radio-group"),b=i.resolveComponent("el-tab-pane"),y=i.resolveComponent("el-tabs");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(p,{label:"数据对象"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":d[0]||(d[0]=w=>t.config.selectNodeId=w),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(w,_)=>(i.openBlock(),i.createBlock(f,{key:_,label:w.nodeName,value:w.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Pxe,i.toDisplayString(w.nodeName),1),i.createElementVNode("span",jxe,' 工作表 "'+i.toDisplayString(w.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),i.createVNode(y,{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=w=>l.value=w)},{default:i.withCtx(()=>[i.createVNode(b,{label:"基本设置",name:"base"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("div",null,[d[6]||(d[6]=i.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),i.createElementVNode("div",null,[i.createVNode(g,{modelValue:t.config.handlerScope,"onUpdate:modelValue":d[1]||(d[1]=w=>t.config.handlerScope=w),onChange:c},{default:i.withCtx(()=>[i.createVNode(m,{label:1},{default:i.withCtx(()=>d[4]||(d[4]=[i.createTextVNode("指定人员")])),_:1}),i.createVNode(m,{label:2},{default:i.withCtx(()=>d[5]||(d[5]=[i.createTextVNode("部门主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(i.openBlock(),i.createElementBlock("div",Ixe,[d[7]||(d[7]=i.createElementVNode("div",{class:"title"},"指定成员",-1)),i.createElementVNode("div",null,[i.createVNode(ON,{modelValue:t.config.handlers,"onUpdate:modelValue":d[2]||(d[2]=w=>t.config.handlers=w),enableRole:!0},null,8,["modelValue"])])])):i.createCommentVNode("",!0)])]),_:1}),i.createVNode(b,{label:"表单操作权限",name:"permissions"},{default:i.withCtx(()=>[i.createVNode(OK,{config:t.config,"node-type":i.unref(Mh)},null,8,["config","node-type"])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-d7695d2b"]])},Symbol.toStringTag,{value:"Module"})),Rxe={style:{float:"left"}},Mxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},zxe={style:{float:"left"}},Uxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Hxe={class:"config-detail"},Wxe={class:"config-item"},qxe={class:"children-query",style:{"margin-top":"20px"}},Gxe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},Kxe={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},Yxe={style:{flex:"1"}},Xxe={class:"flex-both"},Zxe={class:"flex"},Jxe={class:"txt-label"},Qxe={class:"condition-select"},$xe={key:0,class:"function-tag"},e3e={class:"box"},t3e={class:"ellipsis table-name"},n3e={class:"field-name ellipsis"},r3e={style:{margin:"20px 0"}},o3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},i3e={class:"field-list"},a3e=["onClick"],l3e={style:{display:"flex",width:"100%"}},s3e={style:{display:"flex",width:"100%"}},c3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"oddDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(j,T,J=[]){if(j.nodeId===T)return J;j.nodeType==="add"&&j.config.addType==="2"&&J.push(j);let oe=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const A of j.conditionNodes)if(Ft(A,T)){r(A.childNode,T,J),oe=!0;break}}return!oe&&j.childNode&&r(j.childNode,T,J),J}function o(j,T,J=[]){if(j.nodeId===T)return J;j.nodeType==="api"&&J.push(j);let oe=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const A of j.conditionNodes)if(Ft(A,T)){o(A.childNode,T,J),oe=!0;break}}return!oe&&j.childNode&&o(j.childNode,T,J),J}function a(j,T,J=[]){if(j.nodeId===T)return J;(j.nodeType==="flow"||j.nodeType==="add"||j.nodeType==="search")&&J.push(j);let oe=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const A of j.conditionNodes)if(Ft(A,T)){a(A.childNode,T,J),oe=!0;break}}return!oe&&j.childNode&&a(j.childNode,T,J),J}const l=i.computed(()=>{const j=[];return o(n.value.nodeConfig,t.node.nodeId,j),j}),s=i.computed(()=>{const j=[];return a(n.value.nodeConfig,t.node.nodeId,j),j});function c(){var T,J;const j=l.value.find(oe=>oe.nodeId===t.config.selectNodeId);j&&(t.config.workName=j.nodeName,t.config.responseParams=(J=(T=j.config.callApi)==null?void 0:T.responseParams)==null?void 0:J.filter(oe=>oe.type==="Array"))}function u(){var T;const j=s.value.find(J=>J.nodeId===t.config.selectNodeId);j&&(t.config.workName=j.nodeName,t.config.responseParams=(T=j.config.fields)==null?void 0:T.filter(J=>J.type==="Array"))}function d(){var T;const j=t.config.responseParams.find(J=>J.code===t.config.responseField);j&&(t.config.fields=(T=j==null?void 0:j.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}function f(){var T;const j=t.config.responseParams.find(J=>J.columnName===t.config.responseField);j&&(t.config.fields=(T=j==null?void 0:j.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}const h=i.computed(()=>{const j=[];return r(n.value.nodeConfig,t.node.nodeId,j),j});function p(j,T,J=[]){if(j.nodeId===T)return J;["search","flow","add","button","table"].includes(j.nodeType)&&J.push(j);let A=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const k of j.conditionNodes)if(Ft(k,T)){p(k.childNode,T,J),A=!0;break}}return!A&&j.childNode&&p(j.childNode,T,J),J}function v(j,T,J=[]){if(j.nodeId===T)return J;["search","flow","add","button","table","api"].includes(j.nodeType)&&J.push(j);let A=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const k of j.conditionNodes)if(Ft(k,T)){v(k.childNode,T,J),A=!0;break}}return!A&&j.childNode&&v(j.childNode,T,J),J}const m=i.computed(()=>{const j=[];return p(n.value.nodeConfig,t.node.nodeId,j),j}),g=i.ref(""),b=i.computed(()=>{var T,J;const j=g.value.trim().toLowerCase();return(J=(T=t.config)==null?void 0:T.fields)==null?void 0:J.filter(oe=>[oe.columnName,oe.columnComment].some(A=>String(A||"").toLowerCase().includes(j)))}),y=i.ref("and");function w(){t.config.filter.forEach(j=>{j.join=y.value})}function _(j){j.join=y.value,j.compare=10,t.config.filter.push({...j})}function E(j){t.config.filter.splice(j,1)}function x(j){j.nodeId="",j.nodeName="",j.fieldValue=void 0,j.fieldValueName=""}const C=i.ref(),S=i.inject(Ls),N=i.inject(Qn);async function O(){C.value=await S(null)}O();const P=i.computed(()=>{const j=[];return j.push(Jr.defaultNode),v(n.value.nodeConfig,t.node.nodeId,j),j}),I=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function W(){const j=m.value.find(T=>T.nodeId===t.config.selectNodeId);j&&(t.config.selectNodeFields=xn(j.config.fields))}async function R(j){const T=await N(j);t.config.fields=T==null?void 0:T.fieldList,t.config.workName=T==null?void 0:T.workName}async function U(){const j=h.value.find(T=>T.nodeId===t.config.selectNodeId);j&&(t.config.workId=j.config.workId,t.config.workName=j.config.workName,t.config.fields=xn(j.config.fields),t.config.order="update_time")}async function Q(){const j=t.config.selectNodeFields.find(T=>T.columnName===t.config.linkField);if(j){const T=await N(j.fieldAttr.workId);t.config.fields=T.fieldList,t.config.workName=T.workName,t.config.workId=T.workId,t.config.order="update_time"}}return(j,T)=>{const J=i.resolveComponent("el-radio"),oe=i.resolveComponent("el-radio-group"),A=i.resolveComponent("el-form-item"),k=i.resolveComponent("el-option"),B=i.resolveComponent("el-select"),V=i.resolveComponent("Close"),L=i.resolveComponent("el-icon"),F=i.resolveComponent("el-input"),Y=i.resolveComponent("el-button"),$=i.resolveComponent("el-popover"),ie=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[T[36]||(T[36]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(ie,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(A,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.type,"onUpdate:modelValue":T[0]||(T[0]=K=>e.config.type=K),onChange:I},{default:i.withCtx(()=>[i.createVNode(J,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>T[15]||(T[15]=[i.createTextVNode("从工作表获取多条")])),_:1}),T[20]||(T[20]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(J,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>T[16]||(T[16]=[i.createTextVNode("获取关联记录")])),_:1}),T[21]||(T[21]=i.createElementVNode("div",{class:"raido-txt"},"获取关联记录、子表、选择字段中的记录",-1)),i.createVNode(J,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>T[17]||(T[17]=[i.createTextVNode("从新增节点获取记录")])),_:1}),T[22]||(T[22]=i.createElementVNode("div",{class:"raido-txt"},"从创建多条的新增节点获取记录",-1)),i.createVNode(J,{value:"api",style:{width:"100%"}},{default:i.withCtx(()=>T[18]||(T[18]=[i.createTextVNode("从集成API获取记录")])),_:1}),i.createVNode(J,{value:"array",style:{width:"100%"}},{default:i.withCtx(()=>T[19]||(T[19]=[i.createTextVNode("从数组获取记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="api"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(A,{label:"选择集成API节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[1]||(T[1]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:c},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[2]||(T[2]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:d},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.code,value:K.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(A,{label:"选择数据类型节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[3]||(T[3]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[4]||(T[4]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnName,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="work"?(i.openBlock(),i.createBlock(A,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.workId,"onUpdate:modelValue":T[5]||(T[5]=K=>t.config.workId=K),filterable:"",onChange:R},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.workName,value:K.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="add"?(i.openBlock(),i.createBlock(A,{key:3,label:"选择新增记录节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[6]||(T[6]=K=>t.config.selectNodeId=K),filterable:"",onChange:U},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Rxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",Mxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[i.createVNode(A,{label:"选择获取对象"},{default:i.withCtx(()=>[T[23]||(T[23]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[7]||(T[7]=K=>t.config.selectNodeId=K),filterable:"",onChange:W},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",zxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",Uxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[T[24]||(T[24]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(B,{modelValue:t.config.linkField,"onUpdate:modelValue":T[8]||(T[8]=K=>t.config.linkField=K),filterable:"",onChange:Q},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(K,X)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:X},[K.htmlType==="Related"||K.htmlType==="SubTable"?(i.openBlock(),i.createBlock(k,{key:0,label:K.columnComment,value:K.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Hxe,[T[28]||(T[28]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),T[29]||(T[29]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",Wxe,[i.createElementVNode("div",qxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(K,X)=>{var ge;return i.openBlock(),i.createElementBlock("div",{key:X,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",Gxe,[X===0?(i.openBlock(),i.createBlock(B,{key:0,modelValue:y.value,"onUpdate:modelValue":T[9]||(T[9]=ae=>y.value=ae),onChange:w},{default:i.withCtx(()=>[i.createVNode(k,{label:"且",value:"and"}),i.createVNode(k,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",Kxe,i.toDisplayString(K.join==="and"?"且":"或"),1))]),i.createElementVNode("div",Yxe,[i.createElementVNode("div",Xxe,[i.createElementVNode("div",Zxe,[i.createElementVNode("span",Jxe,i.toDisplayString(K.columnComment),1),i.createElementVNode("span",null,[i.createVNode(B,{modelValue:K.compare,"onUpdate:modelValue":ae=>K.compare=ae,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(k,{label:"等于",value:10}),i.createVNode(k,{label:"不等于",value:110}),i.createVNode(k,{label:"大于",value:20}),i.createVNode(k,{label:"大于等于",value:21}),i.createVNode(k,{label:"小于",value:30}),i.createVNode(k,{label:"小于等于",value:31}),i.createVNode(k,{label:"多词匹配",value:40}),i.createVNode(k,{label:"包含",value:50}),i.createVNode(k,{label:"不包含",value:150}),i.createVNode(k,{label:"区间",value:80}),i.createVNode(k,{label:"为空",value:90}),i.createVNode(k,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(L,{class:"close-icon",onClick:ae=>E(X)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Qxe,[K.nodeId?(i.openBlock(),i.createElementBlock("div",$xe,[i.createElementVNode("div",e3e,[i.createElementVNode("div",t3e,[i.createElementVNode("span",null,i.toDisplayString(K.nodeName),1),T[25]||(T[25]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),T[26]||(T[26]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",n3e,i.toDisplayString(K.fieldValueName),1)]),i.createVNode(L,{onClick:ae=>x(K)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((ge=K==null?void 0:K.fieldAttr)==null?void 0:ge.type)?(i.openBlock(),i.createBlock(B,{key:0,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.fieldAttr.enum,(ae,ne)=>(i.openBlock(),i.createBlock(k,{key:ne,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(F,{key:1,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(j.$slots,"action",{item:K,varList:P.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",r3e,[i.createVNode($,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Y,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>T[27]||(T[27]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",o3e,[i.createVNode(F,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:g.value,"onUpdate:modelValue":T[10]||(T[10]=K=>g.value=K)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",i3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value,(K,X)=>(i.openBlock(),i.createElementBlock("div",{key:X,class:"field-item",onClick:ge=>_(K)},i.toDisplayString(K.columnComment),9,a3e))),128))])]),_:1})])])]),i.createVNode(A,{label:"排序规则"},{default:i.withCtx(()=>[T[30]||(T[30]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得数据。如果未设置规则,返回最近更新的一条数据 ",-1)),i.createElementVNode("div",l3e,[i.createVNode(B,{modelValue:t.config.order,"onUpdate:modelValue":T[11]||(T[11]=K=>t.config.order=K),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnComment,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(B,{modelValue:t.config.sort,"onUpdate:modelValue":T[12]||(T[12]=K=>t.config.sort=K),filterable:""},{default:i.withCtx(()=>[i.createVNode(k,{label:"升序",value:"asc"}),i.createVNode(k,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(A,{label:"限制数量"},{default:i.withCtx(()=>[T[31]||(T[31]=i.createElementVNode("span",{class:"remark"},"最多获取条数",-1)),i.createElementVNode("div",s3e,[i.createVNode(F,{modelValue:t.config.limit,"onUpdate:modelValue":T[13]||(T[13]=K=>t.config.limit=K)},null,8,["modelValue"])])]),_:1}),i.createVNode(A,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.way,"onUpdate:modelValue":T[14]||(T[14]=K=>e.config.way=K)},{default:i.withCtx(()=>[i.createVNode(J,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>T[32]||(T[32]=[i.createTextVNode("直接获取")])),_:1}),T[34]||(T[34]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(J,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>T[33]||(T[33]=[i.createTextVNode("每次使用时动态获取")])),_:1}),T[35]||(T[35]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-dc55d716"]])},Symbol.toStringTag,{value:"Module"})),u3e={style:{float:"left"}},d3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},f3e={style:{float:"left"}},p3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},h3e={class:"config-detail"},g3e={class:"config-item"},m3e={class:"children-query",style:{"margin-top":"20px"}},y3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},v3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},b3e={style:{flex:"1"}},w3e={class:"flex-both"},_3e={class:"flex"},C3e={class:"txt-label"},E3e={class:"condition-select"},k3e={key:0,class:"function-tag"},x3e={class:"box"},N3e={class:"ellipsis table-name"},S3e={class:"field-name ellipsis"},D3e={style:{margin:"20px 0"}},B3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},O3e={class:"field-list"},A3e=["onClick"],V3e={style:{display:"flex",width:"100%"}},F3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"searchDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(N,O,P=[]){if(N.nodeId===O)return P;(N.nodeType==="odd"||N.nodeType==="button")&&N.config.workId&&P.push(N);let I=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const W of N.conditionNodes)if(Ft(W,O)){r(W.childNode,O,P),I=!0;break}}return!I&&N.childNode&&r(N.childNode,O,P),P}function o(N,O,P=[]){if(N.nodeId===O)return P;["odd","search","flow","add","button","table"].includes(N.nodeType)&&P.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const R of N.conditionNodes)if(Ft(R,O)){o(R.childNode,O,P),W=!0;break}}return!W&&N.childNode&&o(N.childNode,O,P),P}function a(N,O,P=[]){if(N.nodeId===O)return P;["odd","search","flow","add","button","table","api"].includes(N.nodeType)&&P.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const R of N.conditionNodes)if(Ft(R,O)){a(R.childNode,O,P),W=!0;break}}return!W&&N.childNode&&a(N.childNode,O,P),P}const l=i.computed(()=>{const N=[];return r(n.value.nodeConfig,t.node.nodeId,N),N}),s=i.computed(()=>{const N=[];return o(n.value.nodeConfig,t.node.nodeId,N),N}),c=i.computed(()=>{const N=[];return N.push(Jr.defaultNode),a(n.value.nodeConfig,t.node.nodeId,N),N}),u=i.ref(""),d=i.computed(()=>{var O,P;const N=u.value.trim().toLowerCase();return(P=(O=t.config)==null?void 0:O.fields)==null?void 0:P.filter(I=>[I.columnName,I.columnComment].some(W=>String(W||"").toLowerCase().includes(N)))}),f=i.ref("and");function h(){t.config.filter.forEach(N=>{N.join=f.value})}function p(N){N.join=f.value,N.compare=10,t.config.filter.push({...N})}function v(N){t.config.filter.splice(N,1)}function m(N){N.nodeId="",N.nodeName="",N.fieldValue=void 0,N.fieldValueName=""}const g=i.ref(),b=i.inject(Ls),y=i.inject(Qn);async function w(){g.value=await b(null)}w();const _=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function E(N){const O=await y(N);t.config.fields=O==null?void 0:O.fieldList,t.config.workName=O==null?void 0:O.workName,t.config.filter=[],t.config.order="update_time"}async function x(){const N=l.value.find(O=>O.nodeId===t.config.selectNodeId);N&&(t.config.workId=N.config.workId,t.config.workName=N.config.workName,t.config.fields=xn(N.config.fields),t.config.order="update_time")}async function C(){const N=s.value.find(O=>O.nodeId===t.config.selectNodeId);N&&(t.config.selectNodeFields=xn(N.config.fields))}async function S(){const N=t.config.selectNodeFields.find(O=>O.columnName===t.config.linkField);if(N){const O=await y(N.fieldAttr.workId);t.config.fields=O.fieldList,t.config.workName=O.workName,t.config.workId=O.workId,t.config.order="update_time"}}return(N,O)=>{const P=i.resolveComponent("el-radio"),I=i.resolveComponent("el-radio-group"),W=i.resolveComponent("el-form-item"),R=i.resolveComponent("el-option"),U=i.resolveComponent("el-select"),Q=i.resolveComponent("Close"),j=i.resolveComponent("el-icon"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover"),A=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[O[27]||(O[27]=i.createElementVNode("div",{class:"header"}," 基于一种获取方式,通过筛选条件和排序规则获得符合条件的唯一数据,供流程中的其他节点使用。 ",-1)),i.createVNode(A,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(W,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:t.config.type,"onUpdate:modelValue":O[0]||(O[0]=k=>t.config.type=k),onChange:_},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>O[10]||(O[10]=[i.createTextVNode("从工作表获取单条")])),_:1}),O[13]||(O[13]=i.createElementVNode("div",{class:"raido-txt"},"从工作表获取一条指定记录",-1)),i.createVNode(P,{value:"odd",style:{width:"100%"}},{default:i.withCtx(()=>O[11]||(O[11]=[i.createTextVNode("从多条数据节点获取单条")])),_:1}),O[14]||(O[14]=i.createElementVNode("div",{class:"raido-txt"},"从多条数据节点获取一条指定记录",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>O[12]||(O[12]=[i.createTextVNode("从关联字段获取单条")])),_:1}),O[15]||(O[15]=i.createElementVNode("div",{class:"raido-txt"}," 从关联表、子表或级联选择字段获取一条指定记录 ",-1))]),_:1},8,["modelValue"])]),_:1}),t.config.type==="work"?(i.openBlock(),i.createBlock(W,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.workId,"onUpdate:modelValue":O[1]||(O[1]=k=>t.config.workId=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="odd"?(i.openBlock(),i.createBlock(W,{key:1,label:"选择多条数据节点"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":O[2]||(O[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:x},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",u3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",d3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(W,{label:"选择获取对象"},{default:i.withCtx(()=>[O[16]||(O[16]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":O[3]||(O[3]=k=>t.config.selectNodeId=k),filterable:"",onChange:C},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",f3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",p3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(W,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[O[17]||(O[17]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(U,{modelValue:t.config.linkField,"onUpdate:modelValue":O[4]||(O[4]=k=>t.config.linkField=k),filterable:"",onChange:S},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="Related"||k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(R,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",h3e,[O[21]||(O[21]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),O[22]||(O[22]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",g3e,[i.createElementVNode("div",m3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",y3e,[B===0?(i.openBlock(),i.createBlock(U,{key:0,modelValue:f.value,"onUpdate:modelValue":O[5]||(O[5]=L=>f.value=L),onChange:h},{default:i.withCtx(()=>[i.createVNode(R,{label:"且",value:"and"}),i.createVNode(R,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",v3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",b3e,[i.createElementVNode("div",w3e,[i.createElementVNode("div",_3e,[i.createElementVNode("span",C3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"等于",value:10}),i.createVNode(R,{label:"不等于",value:110}),i.createVNode(R,{label:"大于",value:20}),i.createVNode(R,{label:"大于等于",value:21}),i.createVNode(R,{label:"小于",value:30}),i.createVNode(R,{label:"小于等于",value:31}),i.createVNode(R,{label:"多词匹配",value:40}),i.createVNode(R,{label:"包含",value:50}),i.createVNode(R,{label:"不包含",value:150}),i.createVNode(R,{label:"区间",value:80}),i.createVNode(R,{label:"为空",value:90}),i.createVNode(R,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(j,{class:"close-icon",onClick:L=>v(B)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])]),i.createElementVNode("span",E3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",k3e,[i.createElementVNode("div",x3e,[i.createElementVNode("div",N3e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),O[18]||(O[18]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),O[19]||(O[19]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",S3e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(j,{onClick:L=>m(k)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(R,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(N.$slots,"action",{item:k,varList:c.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",D3e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>O[20]||(O[20]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",B3e,[i.createVNode(T,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":O[6]||(O[6]=k=>u.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",O3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>(i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:V=>p(k)},i.toDisplayString(k.columnComment),9,A3e))),128))])]),_:1})])])]),i.createVNode(W,{label:"排序规则"},{default:i.withCtx(()=>[O[23]||(O[23]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得第一条数据。如果未设置规则,按照字段配置的排序规则返回第一条数据 ",-1)),i.createElementVNode("div",V3e,[i.createVNode(U,{modelValue:t.config.order,"onUpdate:modelValue":O[7]||(O[7]=k=>t.config.order=k),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.columnComment,value:k.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(U,{modelValue:t.config.sort,"onUpdate:modelValue":O[8]||(O[8]=k=>t.config.sort=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(R,{label:"升序",value:"asc"}),i.createVNode(R,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(W,{label:"未获取到数据时"},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:t.config.way,"onUpdate:modelValue":O[9]||(O[9]=k=>t.config.way=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"go",style:{width:"100%"}},{default:i.withCtx(()=>O[24]||(O[24]=[i.createTextVNode("继续执行")])),_:1}),O[26]||(O[26]=i.createElementVNode("div",{class:"raido-txt"}," 之后节点在使用本节点对象或数据时将跳过执行 ",-1)),i.createVNode(P,{value:"aborted"},{default:i.withCtx(()=>O[25]||(O[25]=[i.createTextVNode("中止流程,或继续执行查找结果分支")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-fc5069d0"]])},Symbol.toStringTag,{value:"Module"})),T3e={style:{float:"left"}},P3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},j3e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(l,s,c=[]){return l.nodeId===s||(l.config.fields&&l.config.fields.length>0&&c.push(l),l.childNode&&r(l.childNode,s,c)),c}const o=i.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=o.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName,t.config.selectNodeFields=xn(l.config.fields))}return(l,s)=>{const c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("el-form-item"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(d,{label:"发起审批的数据对象"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(h,p)=>(i.openBlock(),i.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",T3e,i.toDisplayString(h.nodeName),1),i.createElementVNode("span",P3e,' 工作表 "'+i.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(d,{label:"发起人"},{default:i.withCtx(()=>s[1]||(s[1]=[i.createTextVNode("触发者")])),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),I3e={style:{float:"left"}},L3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},R3e={class:"config-detail"},M3e={class:"config-item"},z3e={class:"children-query",style:{"margin-top":"20px"}},U3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},H3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},W3e={style:{flex:"1"}},q3e={class:"flex-both"},G3e={class:"flex"},K3e={class:"txt-label"},Y3e={class:"condition-select"},X3e={key:0,class:"function-tag"},Z3e={class:"box"},J3e={class:"ellipsis table-name"},Q3e={class:"field-name ellipsis"},$3e={style:{margin:"20px 0"}},e8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},t8e={class:"field-list"},n8e=["onClick"],r8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"summaryDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(x,C,S=[]){if(x.nodeId===C)return S;["search","flow","add","button","table"].includes(x.nodeType)&&S.push(x);let O=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const P of x.conditionNodes)if(Ft(P,C)){r(P.childNode,C,S),O=!0;break}}return!O&&x.childNode&&r(x.childNode,C,S),S}function o(x,C,S=[]){if(x.nodeId===C)return S;["search","flow","add","button","table","api"].includes(x.nodeType)&&S.push(x);let O=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const P of x.conditionNodes)if(Ft(P,C)){o(P.childNode,C,S),O=!0;break}}return!O&&x.childNode&&o(x.childNode,C,S),S}const a=i.computed(()=>{const x=[];return r(n.value.nodeConfig,t.node.nodeId,x),x}),l=i.ref(""),s=i.computed(()=>{var C,S;const x=l.value.trim().toLowerCase();return(S=(C=t.config)==null?void 0:C.fields)==null?void 0:S.filter(N=>[N.columnName,N.columnComment].some(O=>String(O||"").toLowerCase().includes(x)))}),c=i.ref("and");function u(){t.config.filter.forEach(x=>{x.join=c.value})}function d(x){x.join=c.value,x.compare=10,t.config.filter.push({...x})}function f(x){t.config.filter.splice(x,1)}function h(x){x.nodeId="",x.nodeName="",x.fieldValue=void 0,x.fieldValueName=""}const p=i.ref(),v=i.inject(Ls),m=i.inject(Qn);async function g(){p.value=await v(null)}g();const b=i.computed(()=>{const x=[];return x.push(Jr.defaultNode),o(n.value.nodeConfig,t.node.nodeId,x),x}),y=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function w(){const x=a.value.find(C=>C.nodeId===t.config.selectNodeId);x&&(t.config.selectNodeFields=xn(x.config.fields))}async function _(x){const C=await m(x);t.config.fields=C==null?void 0:C.fieldList,t.config.workName=C==null?void 0:C.workName}async function E(){const x=t.config.selectNodeFields.find(C=>C.columnName===t.config.linkField);if(x){const C=await m(x.fieldAttr.workId);t.config.fields=C.fieldList,t.config.workName=C.workName,t.config.workId=C.workId,t.config.order="update_time"}}return(x,C)=>{const S=i.resolveComponent("el-radio"),N=i.resolveComponent("el-radio-group"),O=i.resolveComponent("el-form-item"),P=i.resolveComponent("el-option"),I=i.resolveComponent("el-select"),W=i.resolveComponent("Close"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-input"),Q=i.resolveComponent("el-button"),j=i.resolveComponent("el-popover"),T=i.resolveComponent("el-divider"),J=i.resolveComponent("el-col"),oe=i.resolveComponent("el-row"),A=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[C[24]||(C[24]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(A,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(O,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(N,{modelValue:e.config.type,"onUpdate:modelValue":C[0]||(C[0]=k=>e.config.type=k),onChange:y},{default:i.withCtx(()=>[i.createVNode(S,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>C[9]||(C[9]=[i.createTextVNode("从工作表进行汇总")])),_:1}),C[11]||(C[11]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(S,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>C[10]||(C[10]=[i.createTextVNode("获取关联子表记录")])),_:1}),C[12]||(C[12]=i.createElementVNode("div",{class:"raido-txt"},"获取关联子表记录",-1))]),_:1},8,["modelValue"])]),_:1}),e.config.type==="work"?(i.openBlock(),i.createBlock(O,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:t.config.workId,"onUpdate:modelValue":C[1]||(C[1]=k=>t.config.workId=k),filterable:"",onChange:_},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(O,{label:"选择获取对象"},{default:i.withCtx(()=>[C[13]||(C[13]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(I,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":C[2]||(C[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:w},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",I3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",L3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[C[14]||(C[14]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(I,{modelValue:t.config.linkField,"onUpdate:modelValue":C[3]||(C[3]=k=>t.config.linkField=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(P,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",R3e,[C[18]||(C[18]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),C[19]||(C[19]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",M3e,[i.createElementVNode("div",z3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",U3e,[B===0?(i.openBlock(),i.createBlock(I,{key:0,modelValue:c.value,"onUpdate:modelValue":C[4]||(C[4]=L=>c.value=L),onChange:u},{default:i.withCtx(()=>[i.createVNode(P,{label:"且",value:"and"}),i.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",H3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",W3e,[i.createElementVNode("div",q3e,[i.createElementVNode("div",G3e,[i.createElementVNode("span",K3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(I,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(P,{label:"等于",value:10}),i.createVNode(P,{label:"不等于",value:110}),i.createVNode(P,{label:"大于",value:20}),i.createVNode(P,{label:"大于等于",value:21}),i.createVNode(P,{label:"小于",value:30}),i.createVNode(P,{label:"小于等于",value:31}),i.createVNode(P,{label:"多词匹配",value:40}),i.createVNode(P,{label:"包含",value:50}),i.createVNode(P,{label:"不包含",value:150}),i.createVNode(P,{label:"区间",value:80}),i.createVNode(P,{label:"为空",value:90}),i.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>f(B)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Y3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",X3e,[i.createElementVNode("div",Z3e,[i.createElementVNode("div",J3e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),C[15]||(C[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),C[16]||(C[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",Q3e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>h(k)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(I,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(P,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(U,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(x.$slots,"action",{item:k,varList:b.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",$3e,[i.createVNode(j,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Q,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>C[17]||(C[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",e8e,[i.createVNode(U,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:l.value,"onUpdate:modelValue":C[5]||(C[5]=k=>l.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",t8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>(i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:V=>d(k)},i.toDisplayString(k.columnComment),9,n8e))),128))])]),_:1})])])]),i.createVNode(O,{label:"汇总方式"},{default:i.withCtx(()=>[i.createVNode(oe,{style:{width:"100%",display:"flex","justify-content":"space-between"}},{default:i.withCtx(()=>[i.createVNode(J,{span:11},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:e.config.summary,"onUpdate:modelValue":C[6]||(C[6]=k=>e.config.summary=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(P,{value:"count(*)",label:"记录数量"}),i.createVNode(T,{style:{margin:"2px 0"}}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,value:k.columnName,label:k.columnComment},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.config.summary!=="count(*)"?(i.openBlock(),i.createBlock(J,{key:0,span:11},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:e.config.fun,"onUpdate:modelValue":C[7]||(C[7]=k=>e.config.fun=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"notnull",label:"已填计数"}),i.createVNode(P,{value:"null",label:"未填计数"}),i.createVNode(P,{value:"sum",label:"求和"}),i.createVNode(P,{value:"avg",label:"平均值"}),i.createVNode(P,{value:"max",label:"最大值"}),i.createVNode(P,{value:"min",label:"最小值"})]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1})]),_:1}),i.createVNode(O,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(N,{modelValue:e.config.way,"onUpdate:modelValue":C[8]||(C[8]=k=>e.config.way=k)},{default:i.withCtx(()=>[i.createVNode(S,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>C[20]||(C[20]=[i.createTextVNode("直接获取")])),_:1}),C[22]||(C[22]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(S,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>C[21]||(C[21]=[i.createTextVNode("每次使用时动态获取")])),_:1}),C[23]||(C[23]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-3d60402d"]])},Symbol.toStringTag,{value:"Module"})),o8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"systemDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[s[1]||(s[1]=i.createElementVNode("span",{class:"remark"},"将通过系统消息发送",-1)),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-3d5b6cc6"]])},Symbol.toStringTag,{value:"Module"})),i8e={key:0,class:"raido-txt"},a8e={key:1,class:"raido-txt"},l8e={class:"config-detail"},s8e={class:"config-item"},c8e={class:"children-query",style:{"margin-top":"20px"}},u8e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},d8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},f8e={style:{flex:"1"}},p8e={class:"flex-both"},h8e={class:"flex"},g8e={class:"txt-label"},m8e={class:"condition-select"},y8e={key:0,class:"function-tag"},v8e={class:"box"},b8e={class:"ellipsis table-name"},w8e={class:"field-name ellipsis"},_8e={style:{margin:"20px 0"}},C8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},E8e={class:"field-list"},k8e=["onClick"],x8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.inject(Ls),o=i.inject(Qn);async function a(){n.value=await r(null)}a();async function l(m){const g=await o(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}const s=i.computed(()=>{const m=[];return m.push(Jr.defaultNode),m.push(t.node),m}),c=i.ref(""),u=i.computed(()=>{var g,b;const m=c.value.trim().toLowerCase();return(b=(g=t.config)==null?void 0:g.fields)==null?void 0:b.filter(y=>[y.columnName,y.columnComment].some(w=>String(w||"").toLowerCase().includes(m)))}),d=i.ref("and");function f(){t.config.filter.forEach(m=>{m.join=d.value})}function h(m){m.join=d.value,m.compare=10,t.config.filter.push({...m})}function p(m){t.config.filter.splice(m,1)}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("el-radio"),E=i.resolveComponent("el-radio-group"),x=i.resolveComponent("Close"),C=i.resolveComponent("el-icon"),S=i.resolveComponent("el-input"),N=i.resolveComponent("el-button"),O=i.resolveComponent("el-popover"),P=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(P,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=I=>t.config.workId=I),filterable:"",onChange:l},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(I,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:I.workName,value:I.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(w,{label:"触发方式"},{default:i.withCtx(()=>[i.createVNode(E,{modelValue:e.config.type,"onUpdate:modelValue":g[3]||(g[3]=I=>e.config.type=I)},{default:i.withCtx(()=>[i.createVNode(_,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>g[6]||(g[6]=[i.createTextVNode(" 当新增或更新记录时 ")])),_:1}),e.config.type==="save"?(i.openBlock(),i.createElementBlock("div",i8e,[g[7]||(g[7]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[1]||(g[1]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(I,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[8]||(g[8]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>g[9]||(g[9]=[i.createTextVNode("仅新增记录时")])),_:1}),g[14]||(g[14]=i.createElementVNode("div",{class:"raido-txt"},"当新增记录时触发流程",-1)),i.createVNode(_,{value:"edit",style:{width:"100%"}},{default:i.withCtx(()=>g[10]||(g[10]=[i.createTextVNode("仅更新记录时")])),_:1}),e.config.type==="edit"?(i.openBlock(),i.createElementBlock("div",a8e,[g[11]||(g[11]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[2]||(g[2]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(I,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[12]||(g[12]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"del",style:{width:"100%"}},{default:i.withCtx(()=>g[13]||(g[13]=[i.createTextVNode("删除记录时")])),_:1})]),_:1},8,["modelValue"])]),_:1}),i.createElementVNode("div",l8e,[g[18]||(g[18]=i.createElementVNode("div",{class:"item-label"},"触发条件",-1)),g[19]||(g[19]=i.createElementVNode("span",{class:"remark"},"设置筛选条件,仅使满足条件的记录进入流程。",-1)),i.createElementVNode("div",s8e,[i.createElementVNode("div",c8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(I,W)=>{var R;return i.openBlock(),i.createElementBlock("div",{key:W,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",u8e,[W===0?(i.openBlock(),i.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[4]||(g[4]=U=>d.value=U),onChange:f},{default:i.withCtx(()=>[i.createVNode(b,{label:"且",value:"and"}),i.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",d8e,i.toDisplayString(I.join==="and"?"且":"或"),1))]),i.createElementVNode("div",f8e,[i.createElementVNode("div",p8e,[i.createElementVNode("div",h8e,[i.createElementVNode("span",g8e,i.toDisplayString(I.columnComment),1),i.createElementVNode("span",null,[i.createVNode(y,{modelValue:I.compare,"onUpdate:modelValue":U=>I.compare=U,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(b,{label:"等于",value:10}),i.createVNode(b,{label:"不等于",value:110}),i.createVNode(b,{label:"大于",value:20}),i.createVNode(b,{label:"大于等于",value:21}),i.createVNode(b,{label:"小于",value:30}),i.createVNode(b,{label:"小于等于",value:31}),i.createVNode(b,{label:"包含",value:50}),i.createVNode(b,{label:"不包含",value:150}),i.createVNode(b,{label:"区间",value:80}),i.createVNode(b,{label:"为空",value:90}),i.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(C,{class:"close-icon",onClick:U=>p(W)},{default:i.withCtx(()=>[i.createVNode(x)]),_:2},1032,["onClick"])]),i.createElementVNode("span",m8e,[I.nodeId?(i.openBlock(),i.createElementBlock("div",y8e,[i.createElementVNode("div",v8e,[i.createElementVNode("div",b8e,[i.createElementVNode("span",null,i.toDisplayString(I.nodeName),1),g[15]||(g[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[16]||(g[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",w8e,i.toDisplayString(I.fieldValueName),1)]),i.createVNode(C,{onClick:U=>v(I)},{default:i.withCtx(()=>[i.createVNode(x)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=I==null?void 0:I.fieldAttr)==null?void 0:R.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:I.fieldValue,"onUpdate:modelValue":U=>I.fieldValue=U,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.fieldAttr.enum,(U,Q)=>(i.openBlock(),i.createBlock(b,{key:Q,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(S,{key:1,modelValue:I.fieldValue,"onUpdate:modelValue":U=>I.fieldValue=U,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:I,varList:s.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",_8e,[i.createVNode(O,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(N,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>g[17]||(g[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",C8e,[i.createVNode(S,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[5]||(g[5]=I=>c.value=I)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",E8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(I,W)=>(i.openBlock(),i.createElementBlock("div",{key:W,class:"field-item",onClick:R=>h(I)},i.toDisplayString(I.columnComment),9,k8e))),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-ece7fafd"]])},Symbol.toStringTag,{value:"Module"})),N8e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e;return(n,r)=>{const o=i.resolveComponent("el-date-picker"),a=i.resolveComponent("el-form-item"),l=i.resolveComponent("el-option"),s=i.resolveComponent("el-select"),c=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(c,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(a,{label:"开始执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.start,"onUpdate:modelValue":r[0]||(r[0]=u=>t.config.start=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"结束执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.end,"onUpdate:modelValue":r[1]||(r[1]=u=>t.config.end=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"循环"},{default:i.withCtx(()=>[i.createVNode(s,{modelValue:t.config.loop,"onUpdate:modelValue":r[2]||(r[2]=u=>t.config.loop=u)},{default:i.withCtx(()=>[i.createVNode(l,{label:"每小时",value:"hour"}),i.createVNode(l,{label:"每天",value:"day"}),i.createVNode(l,{label:"每周",value:"week"}),i.createVNode(l,{label:"每月",value:"month"}),i.createVNode(l,{label:"每年",value:"year"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),S8e={style:{float:"left"}},D8e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},B8e={key:0,class:"no-work"},O8e={key:1,class:"config-detail"},A8e={class:"config-item"},V8e={class:"children-query",style:{"margin-top":"20px"}},F8e={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},T8e={style:{flex:"1"}},P8e={class:"flex-both"},j8e={class:"flex"},I8e={class:"txt-label"},L8e={class:"condition-select"},R8e={key:0,class:"function-tag"},M8e={class:"box"},z8e={class:"ellipsis table-name"},U8e={class:"field-name ellipsis"},H8e={style:{margin:"20px 0"}},W8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},q8e={class:"field-list"},G8e=["onClick"],K8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"uiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.ref(),o=i.ref(),a=i.ref(),l=i.inject(Ls),s=i.inject(bG),c=i.inject(Qn),u=i.ref(""),d=i.computed(()=>{var S;const C=u.value.trim().toLowerCase();return(S=o.value)==null?void 0:S.filter(N=>[N.columnName,N.columnComment].some(O=>String(O||"").toLowerCase().includes(C)))});async function f(){if(n.value=await l(null),t.config.workId){const C=await c(t.config.workId);t.config.workName=C==null?void 0:C.workName,r.value=C==null?void 0:C.viewList,o.value=C==null?void 0:C.fieldList}}f();async function h(C){const S=await c(C);t.config.workName=S==null?void 0:S.workName,t.config.viewId="",t.config.fields=[],r.value=S==null?void 0:S.viewList,o.value=S==null?void 0:S.fieldList}async function p(C){if(t.config.workName="",t.config.workId="",t.config.type==="drag"&&!a.value){const S=await s(C);a.value=S}}function v(){var S;const C=(S=a.value)==null?void 0:S.find(N=>N.workId===t.config.workId);t.config.workName=C==null?void 0:C.workName}async function m(){const C=y.value.find(S=>S.nodeId===t.config.selectNodeId);C&&(t.config.workId=C.config.workId,t.config.workName=C.config.workName)}const g=i.inject(Vn);function b(C,S,N=[]){if(C.nodeId===S)return N;["search","add","button","table"].includes(C.nodeType)&&N.push(C);let P=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const I of C.conditionNodes)if(Ft(I,S)){b(I.childNode,S,N),P=!0;break}}return!P&&C.childNode&&b(C.childNode,S,N),N}const y=i.computed(()=>{const C=[];return b(g.value.nodeConfig,t.node.nodeId,C),C}),w=i.computed(()=>{const C=[];return C.push(Jr.defaultNode),b(g.value.nodeConfig,t.node.nodeId,C),C});function _(C){t.config.fields.push({...C})}function E(C){t.config.fields.splice(C,1)}function x(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}return(C,S)=>{const N=i.resolveComponent("el-option"),O=i.resolveComponent("el-select"),P=i.resolveComponent("el-form-item"),I=i.resolveComponent("el-radio"),W=i.resolveComponent("el-radio-group"),R=i.resolveComponent("el-form"),U=i.resolveComponent("InfoFilled"),Q=i.resolveComponent("el-icon"),j=i.resolveComponent("Close"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(R,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(P,{label:"推送内容"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.type,"onUpdate:modelValue":S[0]||(S[0]=A=>t.config.type=A),filterable:"",onChange:p},{default:i.withCtx(()=>[i.createVNode(N,{label:"打开记录创建层",value:"form"}),i.createVNode(N,{label:"打开记录详情页",value:"info"}),i.createVNode(N,{label:"打开工作表视图",value:"view"}),i.createVNode(N,{label:"打开自定义页面",value:"drag"})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="info"?(i.openBlock(),i.createBlock(P,{key:0,label:"选择记录"},{default:i.withCtx(()=>[S[7]||(S[7]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(O,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":S[1]||(S[1]=A=>t.config.selectNodeId=A),filterable:"",clearable:"",onChange:m},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.nodeName,value:A.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",S8e,i.toDisplayString(A.nodeName),1),i.createElementVNode("span",D8e,' 工作表 "'+i.toDisplayString(A.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.config.type==="drag"?(i.openBlock(),i.createBlock(P,{key:1,label:"选择自定义页面"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.workId,"onUpdate:modelValue":S[2]||(S[2]=A=>t.config.workId=A),filterable:"",clearable:"",onChange:v},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.workName,value:A.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):(i.openBlock(),i.createBlock(P,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.workId,"onUpdate:modelValue":S[3]||(S[3]=A=>t.config.workId=A),filterable:"",clearable:"",onChange:h},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.workName,value:A.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),e.config.type==="view"?(i.openBlock(),i.createBlock(P,{key:3,label:"选择视图"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.viewId,"onUpdate:modelValue":S[4]||(S[4]=A=>t.config.viewId=A),filterable:"",clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.viewName,value:A.viewId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),i.createVNode(P,{label:"打开方式"},{default:i.withCtx(()=>[i.createVNode(W,{modelValue:t.config.open,"onUpdate:modelValue":S[5]||(S[5]=A=>t.config.open=A)},{default:i.withCtx(()=>[i.createVNode(I,{value:"popup"},{default:i.withCtx(()=>S[8]||(S[8]=[i.createTextVNode("弹窗")])),_:1}),i.createVNode(I,{value:"page"},{default:i.withCtx(()=>S[9]||(S[9]=[i.createTextVNode("打开新页面")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.config.type==="form"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[S[14]||(S[14]=i.createElementVNode("div",{class:"title"},"设置字段",-1)),t.config.workId?(i.openBlock(),i.createElementBlock("div",O8e,[i.createElementVNode("div",A8e,[i.createElementVNode("div",V8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(A,k)=>{var B;return i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[A.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",F8e,[i.createElementVNode("div",T8e,[i.createElementVNode("div",P8e,[i.createElementVNode("div",j8e,[i.createElementVNode("span",I8e,i.toDisplayString(A.columnComment),1)]),i.createVNode(Q,{class:"close-icon",onClick:V=>E(k)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",L8e,[A.nodeId?(i.openBlock(),i.createElementBlock("div",R8e,[i.createElementVNode("div",M8e,[i.createElementVNode("div",z8e,[i.createElementVNode("span",null,i.toDisplayString(A.nodeName),1),S[11]||(S[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[12]||(S[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",U8e,i.toDisplayString(A.fieldValueName),1)]),i.createVNode(Q,{onClick:V=>x(A)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((B=A==null?void 0:A.fieldAttr)==null?void 0:B.type)?(i.openBlock(),i.createBlock(O,{key:0,modelValue:A.fieldValue,"onUpdate:modelValue":V=>A.fieldValue=V,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.fieldAttr.enum,(V,L)=>(i.openBlock(),i.createBlock(N,{key:L,label:V.label,value:V.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:A.fieldValue,"onUpdate:modelValue":V=>A.fieldValue=V,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(C.$slots,"action",{item:A,varList:w.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",H8e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:C.Plus,text:""},{default:i.withCtx(()=>S[13]||(S[13]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",W8e,[i.createVNode(T,{"prefix-icon":C.Search,placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":S[6]||(S[6]=A=>u.value=A)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",q8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(A,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[A.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:B=>_(A)},i.toDisplayString(A.columnComment),9,G8e)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",B8e,[i.createVNode(Q,{size:"17"},{default:i.withCtx(()=>[i.createVNode(U)]),_:1}),S[10]||(S[10]=i.createElementVNode("div",{class:"ml"},"必须先选择一个工作表后,才能设置可执行的动作",-1))]))],64)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5a3b4bd7"]])},Symbol.toStringTag,{value:"Module"})),Y8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"wechatDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送服务号消息是指向已关注公众号的微信用户发送模版消息。发送对象支持使用人员字段(通过微信授权注册的外部门户用户)或文本字段(存储微信公众号openid)。使用微信公众号模板消息需要组织后台绑定已认证的企业服务号,并在微信公众号后台开通“模板消息”功能。 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-46fa206d"]])},Symbol.toStringTag,{value:"Module"})),X8e={key:0,class:"node-title"},Z8e={key:1,class:"no-set"},J8e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"addNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",X8e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",Z8e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),Q8e={key:0},$8e={key:1,class:"no-set"},e6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"apiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.callApi.controlName,message:"请选择集成API"})),(r,o)=>t.node.config.callApi.controlName?(i.openBlock(),i.createElementBlock("div",Q8e," 调用API:"+i.toDisplayString(t.node.config.callApi.controlName),1)):(i.openBlock(),i.createElementBlock("div",$8e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),t6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"approverNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&t.node.config.selectNodeId&&t.node.config.workId,message:"请选择审批人或发起审批数据对象不能为空"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 审批人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode("连续多级主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),n6e={class:"ep-node-router"},r6e={key:0,class:"ep-condition-node-add"},o6e={class:"ep-node-router-box"},i6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"branchNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e;i.onMounted(async()=>{});const r=t,o=l=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(l,1):r("removeNode")},a=()=>{const l=xn($e[ei].defaultNode),s=n.node.conditionNodes.length;n.node.conditionNodes.splice(s-1,0,l)};return(l,s)=>{var c;return i.openBlock(),i.createElementBlock("div",n6e,[(c=n.node)!=null&&c.isBanch?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",r6e,"判断条件"))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:a}," 添加条件 "))],64)),i.createElementVNode("div",o6e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.node.conditionNodes,(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:"ep-node-router-col",key:d},[i.createVNode(Cb,{"is-view":n.isView,node:u,conditionNodes:n.node.conditionNodes,conditionIndex:d,onRemoveNode:f=>o(d)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),d==0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[s[0]||(s[0]=i.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),s[1]||(s[1]=i.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):i.createCommentVNode("",!0),d==n.node.conditionNodes.length-1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[s[2]||(s[2]=i.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),s[3]||(s[3]=i.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):i.createCommentVNode("",!0)]))),128))]),i.createVNode(Yh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-9fd02762"]])},Symbol.toStringTag,{value:"Module"})),a6e={key:0,class:"node-title"},l6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"buttonNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[e.node.config.buttonName?(i.openBlock(),i.createElementBlock("div",a6e,' 按钮 "'+i.toDisplayString(e.node.config.buttonName)+'" ',1)):i.createCommentVNode("",!0),n[0]||(n[0]=i.createElementVNode("div",{class:"remark"},"点击按钮后立即执行",-1))],64))}}),[["__scopeId","data-v-f5243367"]])},Symbol.toStringTag,{value:"Module"})),s6e={key:1,class:"ep-node-condition"},c6e={key:0,class:"node-title"},u6e={key:1,class:"no-set"},d6e={key:2,class:"node-title"},f6e={class:"remark"},p6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"conditionNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){var n,r;const t=e;return(r=(n=t.node)==null?void 0:n.config)!=null&&r.isBanch||i.inject(Rt).register(t.tempNodeId,()=>{var l,s;let a=!0;return t.node.isLastCondition||((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)===0&&(a=!1),{valid:a,message:"请选择条件"}}),(o,a)=>{var u,d,f,h,p,v,m,g;const l=i.resolveComponent("SuccessFilled"),s=i.resolveComponent("el-icon"),c=i.resolveComponent("CircleCloseFilled");return(d=(u=t.node)==null?void 0:u.config)!=null&&d.isBanch?(i.openBlock(),i.createElementBlock("div",{key:0,class:"branch-item",style:i.normalizeStyle((f=t.node.config)!=null&&f.isData?{color:"#01ca86"}:{color:"#f44336"})},[(h=t.node.config)!=null&&h.isData?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(l)]),_:1}),a[0]||(a[0]=i.createElementVNode("span",null,"有数据",-1))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(c)]),_:1}),a[1]||(a[1]=i.createElementVNode("span",null,"无数据",-1))],64))],4)):(i.openBlock(),i.createElementBlock("div",s6e,[((v=(p=t.node.config)==null?void 0:p.filter)==null?void 0:v.length)>0?(i.openBlock(),i.createElementBlock("div",c6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):t.node.isLastCondition?(i.openBlock(),i.createElementBlock("div",d6e,"其他条件进入此流程")):(i.openBlock(),i.createElementBlock("div",u6e," 设置此节点 ")),i.createElementVNode("div",f6e,[((g=(m=t.node.config)==null?void 0:m.filter)==null?void 0:g.length)>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode("筛选"+i.toDisplayString(e.node.config.filter.length)+"个字段",1)],64)):i.createCommentVNode("",!0)])]))}}}),[["__scopeId","data-v-df26e984"]])},Symbol.toStringTag,{value:"Module"})),h6e={key:0,class:"node-title"},g6e={key:1,class:"no-set"},m6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"delNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",h6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",g6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),y6e={key:0},v6e={key:1,class:"no-set"},b6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"dingNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",y6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",v6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),w6e={key:0,class:"node-title"},_6e={key:1,class:"no-set"},C6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"editNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",w6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",_6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),E6e={key:0},k6e={key:1,class:"no-set"},x6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"emailNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",E6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",k6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),N6e={key:0,class:"node-title"},S6e={key:1,class:"no-set"},D6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"}));function r(o){window.open(`/workflow/${o.procId}`)}return(o,a)=>{const l=i.resolveComponent("Link"),s=i.resolveComponent("el-icon");return e.node.config.procName?(i.openBlock(),i.createElementBlock("div",N6e,[i.createTextVNode(" 执行流程: "+i.toDisplayString(e.node.config.procName)+" ",1),e.node.config.procId?(i.openBlock(),i.createBlock(s,{key:0,size:"18",style:{color:"#1565c0"},onClick:a[0]||(a[0]=i.withModifiers(c=>r(e.node.config),["stop"]))},{default:i.withCtx(()=>[i.createVNode(l)]),_:1})):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",S6e,"设置此节点"))}}}),[["__scopeId","data-v-c87b9fba"]])},Symbol.toStringTag,{value:"Module"})),B6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"notifyNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&!!t.node.config.selectNodeId,message:"请选择抄送人和数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 抄送人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),O6e={key:0,class:"node-title"},A6e={key:1,class:"no-set"},V6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"oddNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",O6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",A6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),F6e={key:0,class:"node-title"},T6e={key:1,class:"no-set"},P6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"searchNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",F6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",T6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),j6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.selectNodeId,message:"请选择发起审批的数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,"发起人:触发者"))}})},Symbol.toStringTag,{value:"Module"})),I6e={key:0,class:"node-title"},L6e={key:1,class:"no-set"},R6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"summaryNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(h=>{const p=c.fieldList.some(v=>v.columnId===h.columnId);return p||u.push(h.columnComment||`字段ID: ${h.columnId}`),p}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`};const{summary:d}=t.node.config;if(!d)return{valid:!1,message:"请选择汇总方式"};if(!c.fieldList.some(h=>h.columnName===d))return{valid:!1,message:`汇总字段不存在: ${d}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",I6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",L6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),M6e={key:0},z6e={key:1,class:"no-set"},U6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"systemNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",M6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",z6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),H6e={class:"node-title"},W6e={class:"remark"},q6e={key:1,class:"no-set"},G6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);i.onMounted(async()=>{if(t.node.config.workId){const l=await n(t.node.config.workId);r.set(t.node.config.workId,l),t.node.config.workName=l.workName}}),o.register(t.tempNodeId,()=>{var l,s,c;if(!((l=t.node.config)!=null&&l.workName))return{valid:!1,message:"请选择工作表"};if(((c=(s=t.node.config)==null?void 0:s.filter)==null?void 0:c.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const u=r.get(t.node.config.workId),d=[];if(t.node.config.filter.filter(f=>{const h=u.fieldList.some(p=>p.columnId===f.columnId);return h||d.push(f.columnComment||`字段ID: ${f.columnId}`),h}),d.length>0)return{valid:!1,message:`以下字段不存在: ${d.join(", ")}`}}}return{valid:!0,message:"通过"}});const a=i.computed(()=>{switch(t.node.config.type){case"save":return"当新增或更新记录时";case"add":return"仅新增记录时";case"edit":return"仅更新记录时";case"del":return"删除记录时";default:return""}});return(l,s)=>e.node.config.workName?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",H6e,'工作表 "'+i.toDisplayString(e.node.config.workName)+'"',1),i.createElementVNode("div",W6e,i.toDisplayString(a.value),1)],64)):(i.openBlock(),i.createElementBlock("div",q6e,"设置此节点"))}}),[["__scopeId","data-v-a1ebfe82"]])},Symbol.toStringTag,{value:"Module"})),K6e={key:0},Y6e={key:1,class:"no-set"},X6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.start,message:"请选择开始时间"})),(r,o)=>e.node.config.start?(i.openBlock(),i.createElementBlock("div",K6e,"从 "+i.toDisplayString(t.node.config.start)+" 开始",1)):(i.openBlock(),i.createElementBlock("div",Y6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),Z6e={key:0,class:"node-title"},J6e={key:1,class:"no-set"},Q6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"uiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",Z6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",J6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),$6e={key:0},eNe={key:1,class:"no-set"},tNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"wechatNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",$6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",eNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"}));return LG});
|
|
191
|
+
Please use '@${e}' event instead of props`,t}var EU=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Nke=i.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=i.ref(null),r=i.shallowRef(null),o=i.ref(""),a=()=>{if(!n.value)return;const s=i.toRaw(e.defaultContent);bU({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:xke(kke({},e.defaultConfig),{onCreated(c){if(r.value=c,t.emit("onCreated",c),e.defaultConfig.onCreated){const u=Ka("onCreated");throw new Error(u)}},onChange(c){const u=c.getHtml();if(o.value=u,t.emit("update:modelValue",u),t.emit("onChange",c),e.defaultConfig.onChange){const d=Ka("onChange");throw new Error(d)}},onDestroyed(c){if(t.emit("onDestroyed",c),e.defaultConfig.onDestroyed){const u=Ka("onDestroyed");throw new Error(u)}},onMaxLength(c){if(t.emit("onMaxLength",c),e.defaultConfig.onMaxLength){const u=Ka("onMaxLength");throw new Error(u)}},onFocus(c){if(t.emit("onFocus",c),e.defaultConfig.onFocus){const u=Ka("onFocus");throw new Error(u)}},onBlur(c){if(t.emit("onBlur",c),e.defaultConfig.onBlur){const u=Ka("onBlur");throw new Error(u)}},customAlert(c,u){if(t.emit("customAlert",c,u),e.defaultConfig.customAlert){const d=Ka("customAlert");throw new Error(d)}},customPaste:(c,u)=>{if(e.defaultConfig.customPaste){const f=Ka("customPaste");throw new Error(f)}let d;return t.emit("customPaste",c,u,f=>{d=f}),d}})})};function l(s){const c=r.value;c!=null&&c.setHtml(s)}return i.onMounted(()=>{a()}),i.watch(()=>e.modelValue,s=>{s!==o.value&&l(s)}),{box:n}}}),Ske={ref:"box",style:{height:"100%"}};function Dke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Ske,null,512)}var Bke=EU(Nke,[["render",Dke]]);const Oke=i.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=i.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");M.getToolbar(r)||wU({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Ake={ref:"selector"};function Vke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Ake,null,512)}var Fke=EU(Oke,[["render",Vke]]),kU={exports:{}};const Tke=Jq(vke);(function(e,t){(function(n,r){e.exports=r(Tke)})(self,n=>(()=>{var r={857:s=>{s.exports=n}},o={};function a(s){var c=o[s];if(c!==void 0)return c.exports;var u=o[s]={exports:{}};return r[s](u,u.exports,a),u.exports}a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>B});var s=a(857);(0,s.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,s.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function c(V,L,F,Y,$){return{sel:V,data:L,children:F,text:Y,elm:$,key:L===void 0?void 0:L.key}}const u=Array.isArray;function d(V){return typeof V=="string"||typeof V=="number"||V instanceof String||V instanceof Number}function f(V,L,F){if(V.ns="http://www.w3.org/2000/svg",F!=="foreignObject"&&L!==void 0)for(let Y=0;Y<L.length;++Y){const $=L[Y];if(typeof $=="string")continue;const ie=$.data;ie!==void 0&&f(ie,$.children,$.sel)}}function h(V,L,F){let Y,$,ie,K={};if(F!==void 0?(L!==null&&(K=L),u(F)?Y=F:d(F)?$=F.toString():F&&F.sel&&(Y=[F])):L!=null&&(u(L)?Y=L:d(L)?$=L.toString():L&&L.sel?Y=[L]:K=L),Y!==void 0)for(ie=0;ie<Y.length;++ie)d(Y[ie])&&(Y[ie]=c(void 0,void 0,void 0,Y[ie],void 0));return V[0]!=="s"||V[1]!=="v"||V[2]!=="g"||V.length!==3&&V[3]!=="."&&V[3]!=="#"||f(K,Y,V),c(V,K,Y,$,void 0)}const p={type:"attachment",renderElem:function(V,L,F){var Y=F.isDisabled(),$=s.DomEditor.isNodeSelected(F,V),ie=V,K=ie.fileName,X=K===void 0?"":K,ge=ie.link,ae=ge===void 0?"":ge;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:$&&!Y?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:Y?"pointer":"inherit"},on:{click:function(){Y&&ae&&window.open(ae,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),X])}};function v(V){return V!==null&&typeof V=="object"&&"constructor"in V&&V.constructor===Object}function m(V={},L={}){Object.keys(L).forEach(F=>{V[F]===void 0?V[F]=L[F]:v(L[F])&&v(V[F])&&Object.keys(L[F]).length>0&&m(V[F],L[F])})}const g={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const V=typeof document<"u"?document:{};return m(V,g),V}const y={document:g,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:V=>typeof setTimeout>"u"?(V(),null):setTimeout(V,0),cancelAnimationFrame(V){typeof setTimeout<"u"&&clearTimeout(V)}};function w(){const V=typeof window<"u"?window:{};return m(V,y),V}class _ extends Array{constructor(L){typeof L=="number"?super(L):(super(...L||[]),function(F){const Y=F.__proto__;Object.defineProperty(F,"__proto__",{get:()=>Y,set($){Y.__proto__=$}})}(this))}}function E(V,L){const F=w(),Y=b();let $=[];if(!L&&V instanceof _)return V;if(!V)return new _($);if(typeof V=="string"){const ie=V.trim();if(ie.indexOf("<")>=0&&ie.indexOf(">")>=0){let K="div";ie.indexOf("<li")===0&&(K="ul"),ie.indexOf("<tr")===0&&(K="tbody"),ie.indexOf("<td")!==0&&ie.indexOf("<th")!==0||(K="tr"),ie.indexOf("<tbody")===0&&(K="table"),ie.indexOf("<option")===0&&(K="select");const X=Y.createElement(K);X.innerHTML=ie;for(let ge=0;ge<X.childNodes.length;ge+=1)$.push(X.childNodes[ge])}else $=function(K,X){if(typeof K!="string")return[K];const ge=[],ae=X.querySelectorAll(K);for(let ne=0;ne<ae.length;ne+=1)ge.push(ae[ne]);return ge}(V.trim(),L||Y)}else if(V.nodeType||V===F||V===Y)$.push(V);else if(Array.isArray(V)){if(V instanceof _)return V;$=V}return new _(function(ie){const K=[];for(let X=0;X<ie.length;X+=1)K.indexOf(ie[X])===-1&&K.push(ie[X]);return K}($))}function x(...V){let[L,F,Y,$]=V;function ie(ae){const ne=ae.target;if(!ne)return;const me=ae.target.dom7EventData||[];if(me.indexOf(ae)<0&&me.unshift(ae),E(ne).is(F))Y.apply(ne,me);else{const ot=E(ne).parents();for(let Ne=0;Ne<ot.length;Ne+=1)E(ot[Ne]).is(F)&&Y.apply(ot[Ne],me)}}function K(ae){const ne=ae&&ae.target&&ae.target.dom7EventData||[];ne.indexOf(ae)<0&&ne.unshift(ae),Y.apply(this,ne)}typeof V[1]=="function"&&([L,Y,$]=V,F=void 0),$||($=!1);const X=L.split(" ");let ge;for(let ae=0;ae<this.length;ae+=1){const ne=this[ae];if(F)for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7LiveListeners||(ne.dom7LiveListeners={}),ne.dom7LiveListeners[me]||(ne.dom7LiveListeners[me]=[]),ne.dom7LiveListeners[me].push({listener:Y,proxyListener:ie}),ne.addEventListener(me,ie,$)}else for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7Listeners||(ne.dom7Listeners={}),ne.dom7Listeners[me]||(ne.dom7Listeners[me]=[]),ne.dom7Listeners[me].push({listener:Y,proxyListener:K}),ne.addEventListener(me,K,$)}}return this}function C(){for(let V=0;V<this.length;V+=1)this[V].style.display="none";return this}function S(...V){let L;const F=b();for(let Y=0;Y<V.length;Y+=1){L=V[Y];for(let $=0;$<this.length;$+=1)if(typeof L=="string"){const ie=F.createElement("div");for(ie.innerHTML=L;ie.firstChild;)this[$].appendChild(ie.firstChild)}else if(L instanceof _)for(let ie=0;ie<L.length;ie+=1)this[$].appendChild(L[ie]);else this[$].appendChild(L)}return this}E.fn=_.prototype;const N="resize scroll".split(" ");function O(V){return function(...L){if(L[0]===void 0){for(let F=0;F<this.length;F+=1)N.indexOf(V)<0&&(V in this[F]?this[F][V]():E(this[F]).trigger(V));return this}return this.on(V,...L)}}const P=O("click"),I=E;C&&(I.fn.hide=C),S&&(I.fn.append=S),P&&(I.fn.click=P),x&&(I.fn.on=x);const W=I;var R=function(){return R=Object.assign||function(V){for(var L,F=1,Y=arguments.length;F<Y;F++)for(var $ in L=arguments[F])Object.prototype.hasOwnProperty.call(L,$)&&(V[$]=L[$]);return V},R.apply(this,arguments)},U=function(V,L,F,Y){return new(F||(F=Promise))(function($,ie){function K(ae){try{ge(Y.next(ae))}catch(ne){ie(ne)}}function X(ae){try{ge(Y.throw(ae))}catch(ne){ie(ne)}}function ge(ae){var ne;ae.done?$(ae.value):(ne=ae.value,ne instanceof F?ne:new F(function(me){me(ne)})).then(K,X)}ge((Y=Y.apply(V,[])).next())})},Q=function(V,L){var F,Y,$,ie,K={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ie={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function X(ge){return function(ae){return function(ne){if(F)throw new TypeError("Generator is already executing.");for(;K;)try{if(F=1,Y&&($=2&ne[0]?Y.return:ne[0]?Y.throw||(($=Y.return)&&$.call(Y),0):Y.next)&&!($=$.call(Y,ne[1])).done)return $;switch(Y=0,$&&(ne=[2&ne[0],$.value]),ne[0]){case 0:case 1:$=ne;break;case 4:return K.label++,{value:ne[1],done:!1};case 5:K.label++,Y=ne[1],ne=[0];continue;case 7:ne=K.ops.pop(),K.trys.pop();continue;default:if(!(($=($=K.trys).length>0&&$[$.length-1])||ne[0]!==6&&ne[0]!==2)){K=0;continue}if(ne[0]===3&&(!$||ne[1]>$[0]&&ne[1]<$[3])){K.label=ne[1];break}if(ne[0]===6&&K.label<$[1]){K.label=$[1],$=ne;break}if($&&K.label<$[2]){K.label=$[2],K.ops.push(ne);break}$[2]&&K.ops.pop(),K.trys.pop();continue}ne=L.call(V,K)}catch(me){ne=[6,me],Y=0}finally{F=$=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([ge,ae])}}};function j(V){return V.getMenuConfig("uploadAttachment")}function T(V,L,F){if(L&&F){V.restoreSelection();var Y={type:"attachment",fileName:L,link:F,children:[{text:""}]};V.insertNode(Y),V.move(1);var $=j(V).onInsertedAttachment;$&&$(Y)}}function J(V,L){return U(this,void 0,void 0,function(){var F,Y,$,ie;return Q(this,function(K){switch(K.label){case 0:return F=function(X){var ge=oe.get(X);if(ge!=null)return ge;var ae=j(X),ne=ae.onSuccess,me=ae.onProgress,ot=ae.onFailed,Ne=ae.customInsert,Ge=ae.onError;return ge=(0,s.createUploader)(R(R({},ae),{onProgress:function(Re){X.showProgressBar(Re),me&&me(Re)},onSuccess:function(Re,at){if(Ne)Ne(at,Re,function(on,Xn){return T(X,on,Xn)});else{var Se=at.errno,Vt=Se===void 0?1:Se,En=at.data,Yn=En===void 0?{}:En;if(Vt!==0)return console.error("'".concat(Re.name,"' upload failed"),at),void ot(Re,at);var It=Yn.url,hn=It===void 0?"":It;T(X,Re.name,hn),ne(Re,at)}},onError:function(Re,at,Se){var Vt=Re.name;console.error("'".concat(Vt," upload error"),at,Se),Ge&&Ge(Re,at,Se)}})),oe.set(X,ge),ge}(V),Y=L.name,$=L.type,ie=L.size,F.addFile({name:Y,type:$,size:ie,data:L}),[4,F.upload()];case 1:return K.sent(),[2]}})})}var oe=new WeakMap;const A=function(){function V(){this.title=(0,s.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return V.prototype.getValue=function(L){return""},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){var Y=this.getMenuConfig(L),$=Y.allowedFileTypes,ie=$===void 0?[]:$,K=Y.customBrowseAndUpload;if(K)K(function(ne,me){return T(L,ne,me)});else{var X="";ie.length>0&&(X='accept="'.concat(ie.join(", "),'"'));var ge=W("body"),ae=W('<input type="file" '.concat(X," multiple/>"));ae.hide(),ge.append(ae),ae.click(),ae.on("change",function(){var ne=ae[0].files;(function(me,ot){var Ne,Ge;U(this,void 0,void 0,function(){var Re,at,Se,Vt,En,Yn;return Q(this,function(It){switch(It.label){case 0:if(ot==null)return[2];Re=Array.prototype.slice.call(ot),at=j(me).customUpload,It.label=1;case 1:It.trys.push([1,9,10,15]),Se=function(hn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var on,Xn=hn[Symbol.asyncIterator];return Xn?Xn.call(hn):(hn=typeof __values=="function"?__values(hn):hn[Symbol.iterator](),on={},Sr("next"),Sr("throw"),Sr("return"),on[Symbol.asyncIterator]=function(){return this},on);function Sr(an){on[an]=hn[an]&&function(ln){return new Promise(function(kn,On){(function(sn,ur,Os,Zo){Promise.resolve(Zo).then(function(mo){sn({value:mo,done:Os})},ur)})(kn,On,(ln=hn[an](ln)).done,ln.value)})}}}(Re),It.label=2;case 2:return[4,Se.next()];case 3:return(Vt=It.sent()).done?[3,8]:(En=Vt.value,at?[4,at(En,function(hn,on){return T(me,hn,on)})]:[3,5]);case 4:return It.sent(),[3,7];case 5:return[4,J(me,En)];case 6:It.sent(),It.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return Yn=It.sent(),Ne={error:Yn},[3,15];case 10:return It.trys.push([10,,13,14]),Vt&&!Vt.done&&(Ge=Se.return)?[4,Ge.call(Se)]:[3,12];case 11:It.sent(),It.label=12;case 12:return[3,14];case 13:if(Ne)throw Ne.error;return[7];case 14:return[7];case 15:return[2]}})})})(L,ne)})}},V.prototype.isDisabled=function(L){var F=L.selection;if(F==null||s.SlateRange.isExpanded(F))return!0;var Y=s.DomEditor.getSelectedElems(L);return!!Y.some(function($){return L.isVoid($)})||!!Y.some(function($){return s.DomEditor.getNodeType($)==="pre"})},V.prototype.getMenuConfig=function(L){return L.getMenuConfig("uploadAttachment")},V}(),k=function(){function V(){this.title=(0,s.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return V.prototype.getValue=function(L){var F=this.getSelectedElem(L);return F==null?"":F.link},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){F&&typeof F=="string"&&window.open(F,"_blank")},V.prototype.isDisabled=function(L){var F=L.selection;return F==null||!!s.SlateRange.isExpanded(F)||this.getSelectedElem(L)==null},V.prototype.getSelectedElem=function(L){var F=s.DomEditor.getSelectedNodeByType(L,"attachment");return F??null},V}(),B={editorPlugin:function(V){var L=V.isInline,F=V.isVoid,Y=V;return Y.isInline=function($){return s.DomEditor.getNodeType($)==="attachment"||L($)},Y.isVoid=function($){return s.DomEditor.getNodeType($)==="attachment"||F($)},Y},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(V,L){var F=V,Y=F.link,$=Y===void 0?"":Y,ie=F.fileName,K=ie===void 0?"":ie;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat($,'" download="').concat(K,'">').concat(K,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(V,L,F){return{type:"attachment",link:V.getAttribute("href")||"",fileName:V.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new A},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(V){return V},onProgress:function(V){},onSuccess:function(V,L){},onFailed:function(V,L){},onError:function(V,L,F){},onInsertedAttachment:function(V){}}},{key:"downloadAttachment",factory:function(){return new k}}]}})(),l})())})(kU);var Pke=kU.exports;const jke=Zq(Pke),Ike=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:"更多",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink","insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"],xU={namespace:"d",elNamespace:"df",app:"_app_lo4el_1",clearfix:"_clearfix_lo4el_38","text-center":"_text-center_lo4el_44","no-padding":"_no-padding_lo4el_48","flx-center":"_flx-center_lo4el_53","flx-justify-between":"_flx-justify-between_lo4el_59","flx-align-center":"_flx-align-center_lo4el_65","clearfix-after":"_clearfix-after_lo4el_71",sle:"_sle_lo4el_80",mle:"_mle_lo4el_87","break-word":"_break-word_lo4el_95",nprogress:"_nprogress_lo4el_1",bar:"_bar_lo4el_113","spinner-icon":"_spinner-icon_lo4el_117",peg:"_peg_lo4el_122","main-maximize":"_main-maximize_lo4el_127","aside-split":"_aside-split_lo4el_127","df-aside":"_df-aside_lo4el_128","df-header":"_df-header_lo4el_129","df-footer":"_df-footer_lo4el_130","tabs-nav":"_tabs-nav_lo4el_131","antd-message":"_antd-message_lo4el_136","df-message":"_df-message_lo4el_142","is-closable":"_is-closable_lo4el_142","df-message__content":"_df-message__content_lo4el_142","df-message__icon":"_df-message__icon_lo4el_150","df-message__closeBtn":"_df-message__closeBtn_lo4el_153",card:"_card_lo4el_164","theme-color-hover":"_theme-color-hover_lo4el_175","df-drawer":"_df-drawer_lo4el_180","df-drawer__header":"_df-drawer__header_lo4el_184","df-drawer__footer":"_df-drawer__footer_lo4el_189","df-select":"_df-select_lo4el_192","drawer-multiColumn-form":"_drawer-multiColumn-form_lo4el_195","df-form-item":"_df-form-item_lo4el_199","df-dialog":"_df-dialog_lo4el_207","df-dialog__header":"_df-dialog__header_lo4el_207","df-dialog__body":"_df-dialog__body_lo4el_210","df-dialog__footer":"_df-dialog__footer_lo4el_213","m-5":"_m-5_lo4el_218","mt-5":"_mt-5_lo4el_222","mb-5":"_mb-5_lo4el_226","ml-5":"_ml-5_lo4el_230","mr-5":"_mr-5_lo4el_234","p-5":"_p-5_lo4el_238","pt-5":"_pt-5_lo4el_242","pb-5":"_pb-5_lo4el_246","pl-5":"_pl-5_lo4el_250","pr-5":"_pr-5_lo4el_254","m-10":"_m-10_lo4el_258","mt-10":"_mt-10_lo4el_262","mb-10":"_mb-10_lo4el_266","ml-10":"_ml-10_lo4el_270","mr-10":"_mr-10_lo4el_274","p-10":"_p-10_lo4el_278","pt-10":"_pt-10_lo4el_282","pb-10":"_pb-10_lo4el_286","pl-10":"_pl-10_lo4el_290","pr-10":"_pr-10_lo4el_294","m-15":"_m-15_lo4el_298","mt-15":"_mt-15_lo4el_302","mb-15":"_mb-15_lo4el_306","ml-15":"_ml-15_lo4el_310","mr-15":"_mr-15_lo4el_314","p-15":"_p-15_lo4el_318","pt-15":"_pt-15_lo4el_322","pb-15":"_pb-15_lo4el_326","pl-15":"_pl-15_lo4el_330","pr-15":"_pr-15_lo4el_334","m-20":"_m-20_lo4el_338","mt-20":"_mt-20_lo4el_342","mb-20":"_mb-20_lo4el_346","ml-20":"_ml-20_lo4el_350","mr-20":"_mr-20_lo4el_354","p-20":"_p-20_lo4el_358","pt-20":"_pt-20_lo4el_362","pb-20":"_pb-20_lo4el_366","pl-20":"_pl-20_lo4el_370","pr-20":"_pr-20_lo4el_374","m-25":"_m-25_lo4el_378","mt-25":"_mt-25_lo4el_382","mb-25":"_mb-25_lo4el_386","ml-25":"_ml-25_lo4el_390","mr-25":"_mr-25_lo4el_394","p-25":"_p-25_lo4el_398","pt-25":"_pt-25_lo4el_402","pb-25":"_pb-25_lo4el_406","pl-25":"_pl-25_lo4el_410","pr-25":"_pr-25_lo4el_414","m-30":"_m-30_lo4el_418","mt-30":"_mt-30_lo4el_422","mb-30":"_mb-30_lo4el_426","ml-30":"_ml-30_lo4el_430","mr-30":"_mr-30_lo4el_434","p-30":"_p-30_lo4el_438","pt-30":"_pt-30_lo4el_442","pb-30":"_pb-30_lo4el_446","pl-30":"_pl-30_lo4el_450","pr-30":"_pr-30_lo4el_454","fz-14":"_fz-14_lo4el_458","fz-15":"_fz-15_lo4el_462","fz-16":"_fz-16_lo4el_466","fz-17":"_fz-17_lo4el_470","fz-18":"_fz-18_lo4el_474","fz-19":"_fz-19_lo4el_478","fz-20":"_fz-20_lo4el_482","fz-21":"_fz-21_lo4el_486","fz-22":"_fz-22_lo4el_490","fz-23":"_fz-23_lo4el_494","fz-24":"_fz-24_lo4el_498"},Lke=()=>({variables:xU,getPrefixClass:t=>`${xU.namespace}-${t}`}),eb=YU(et(i.defineComponent({name:"WangEditor",__name:"index",props:i.mergeModels({toolbarKeys:{default:()=>[]},excludeKeys:{default:()=>[]},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},hideToolBar:{type:Boolean,default:!1}},{modelValue:{default:""},modelModifiers:{}}),emits:i.mergeModels(["imageUpload","imageBeforeUpload","imageProgress","imageSuccess","imageFailed","imageError","videoUpload","fileBeforeUpload","fileUpload","onPaste","onCreated"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const{getPrefixClass:r}=Lke(),o=r("wang-editor"),a=e,l=n,s=i.useModel(e,"modelValue"),c=i.shallowRef(),u=i.reactive({placeholder:"请输入内容 ...",readOnly:a.disabled,MENU_CONF:{uploadImage:{maxFileSize:10*1024*1024,allowedFileTypes:["image/*"],customUpload:(p,v)=>{l("imageUpload",p,v)},onBeforeUpload:p=>{l("imageBeforeUpload",p)},onProgress:p=>{l("imageProgress",p)},onSuccess:(p,v)=>{l("imageSuccess",p,v)},onFailed:(p,v)=>{l("imageFailed",p,v)},onError:(p,v,m)=>{l("imageError",p,v,m)}},uploadVideo:{maxFileSize:300*1024*1024,allowedFileTypes:["video/*"],customUpload:(p,v)=>{l("videoUpload",p,v)}},uploadAttachment:{maxFileSize:10*1024*1024,onBeforeUpload:p=>{l("fileBeforeUpload",p)},customUpload:(p,v)=>{l("fileUpload",p,v)}}}}),d=i.computed(()=>({toolbarKeys:a.toolbarKeys.length>0?a.toolbarKeys:Ike,excludeKeys:a.excludeKeys,insertKeys:{index:22,keys:["uploadAttachment"]}}));i.watch(()=>a.disabled,()=>{i.unref(c)&&(a.disabled?i.unref(c).disable():i.unref(c).enable())}),i.onMounted(()=>{try{rn.registerModule(jke)}catch{}});const f=p=>{c.value=p,a.disabled?i.unref(c).disable():i.unref(c).enable(),l("onCreated",p)},h=(p,v)=>{l("onPaste",p,v)};return i.onBeforeUnmount(()=>{i.unref(c)&&i.unref(c).destroy()}),t({editor:c}),(p,v)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(o),{disabled:p.disabled}])},[p.hideToolBar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Fke),{key:0,class:i.normalizeClass(`${i.unref(o)}__toolbar`),editor:c.value,defaultConfig:d.value,mode:p.mode},null,8,["class","editor","defaultConfig","mode"])),i.createVNode(i.unref(Bke),i.mergeProps({class:`${i.unref(o)}__content`,style:{height:typeof p.height=="string"?p.height:`${p.height}px`,overflowY:"hidden"},modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=m=>s.value=m),defaultConfig:u,mode:p.mode},p.$attrs,{onOnCreated:f,onCustomPaste:h}),null,16,["class","style","modelValue","defaultConfig","mode"])],2))}}),[["__scopeId","data-v-36eeeada"]])),Rke=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"dingDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送钉钉消息是指以企业工作通知会话中某个微应用的名义推送到员工的通知消息 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-29c0611f"]])},Symbol.toStringTag,{value:"Module"})),Mke={style:{float:"left"}},zke={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Uke={key:0,class:"no-work"},Hke={key:1,class:"config-detail"},Wke={class:"config-item"},qke={class:"children-query",style:{"margin-top":"20px"}},Gke={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Kke={style:{flex:"1"}},Yke={class:"flex-both"},Xke={class:"flex"},Zke={class:"txt-label"},Jke={class:"condition-select"},Qke={key:0,class:"function-tag"},$ke={class:"box"},exe={class:"ellipsis table-name"},txe={class:"field-name ellipsis"},nxe={style:{margin:"20px 0"}},rxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},oxe={class:"field-list"},ixe=["onClick"],axe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"editDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var v,m;const p=r.value.trim().toLowerCase();return(m=(v=t.config)==null?void 0:v.selectNodeFields)==null?void 0:m.filter(g=>[g.columnName,g.columnComment].some(b=>String(b||"").toLowerCase().includes(p)))});function a(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){a(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&a(p.childNode,v,m),m}function l(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table","api","summary"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){l(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&l(p.childNode,v,m),m}const s=i.computed(()=>{const p=[];return a(n.value.nodeConfig,t.node.nodeId,p),p}),c=i.computed(()=>{const p=[];return p.push(Jr.defaultNode),l(n.value.nodeConfig,t.node.nodeId,p),p});async function u(){const p=s.value.find(v=>v.nodeId===t.config.selectNodeId);p&&(t.config.workId=p.config.workId,t.config.workName=p.config.workName,t.config.selectNodeFields=xn(p.config.fields))}function d(p){p.compare="eq",t.config.fields.push(p)}function f(p){t.config.fields.splice(p,1)}function h(p){p.nodeId="",p.nodeName="",p.fieldValue=void 0,p.fieldValueName=""}return(p,v)=>{const m=i.resolveComponent("el-option"),g=i.resolveComponent("el-select"),b=i.resolveComponent("el-form-item"),y=i.resolveComponent("el-form"),w=i.resolveComponent("InfoFilled"),_=i.resolveComponent("el-icon"),E=i.resolveComponent("Close"),x=i.resolveComponent("el-input"),C=i.resolveComponent("el-button"),S=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(y,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(b,{label:"选择更新对象"},{default:i.withCtx(()=>[i.createVNode(g,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":v[0]||(v[0]=N=>t.config.selectNodeId=N),filterable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(N,O)=>(i.openBlock(),i.createBlock(m,{key:O,label:N.nodeName,value:N.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Mke,i.toDisplayString(N.nodeName),1),i.createElementVNode("span",zke,' 工作表 "'+i.toDisplayString(N.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),v[6]||(v[6]=i.createElementVNode("div",{class:"title"},"更新字段",-1)),t.config.selectNodeId?(i.openBlock(),i.createElementBlock("div",Hke,[i.createElementVNode("div",Wke,[i.createElementVNode("div",qke,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(N,O)=>{var P;return i.openBlock(),i.createElementBlock(i.Fragment,{key:O},[N.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",Gke,[i.createElementVNode("div",Kke,[i.createElementVNode("div",Yke,[i.createElementVNode("div",Xke,[i.createElementVNode("span",Zke,i.toDisplayString(N.columnComment),1),i.createElementVNode("span",null,[i.createVNode(g,{modelValue:N.compare,"onUpdate:modelValue":I=>N.compare=I,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(m,{label:"设为",value:"eq"}),i.createVNode(m,{label:"添加",value:"add"}),i.createVNode(m,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(_,{class:"close-icon",onClick:I=>f(O)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Jke,[N.nodeId?(i.openBlock(),i.createElementBlock("div",Qke,[i.createElementVNode("div",$ke,[i.createElementVNode("div",exe,[i.createElementVNode("span",null,i.toDisplayString(N.nodeName),1),v[3]||(v[3]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),v[4]||(v[4]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",txe,i.toDisplayString(N.fieldValueName),1)]),i.createVNode(_,{onClick:I=>h(N)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((P=N==null?void 0:N.fieldAttr)==null?void 0:P.type)?(i.openBlock(),i.createBlock(g,{key:0,modelValue:N.fieldValue,"onUpdate:modelValue":I=>N.fieldValue=I,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(N.fieldAttr.enum,(I,W)=>(i.openBlock(),i.createBlock(m,{key:W,label:I.label,value:I.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(x,{key:1,modelValue:N.fieldValue,"onUpdate:modelValue":I=>N.fieldValue=I,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(p.$slots,"action",{item:N,varList:c.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",nxe,[i.createVNode(S,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(C,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>v[5]||(v[5]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",rxe,[i.createVNode(x,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":v[1]||(v[1]=N=>r.value=N)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",oxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(N,O)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:O},[N.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:P=>d(N)},i.toDisplayString(N.columnComment),9,ixe)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",Uke,[i.createVNode(_,{size:"17"},{default:i.withCtx(()=>[i.createVNode(w)]),_:1}),v[2]||(v[2]=i.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-6c75b14b"]])},Symbol.toStringTag,{value:"Module"})),lxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"emailDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=ref(0),r=i.inject("showUser");function o(){n.value=0,r()}function a(){n.value=1,r()}const l=i.inject("getUserIds");i.watch(l,c=>{c&&c.length>0&&(n.value===1?t.config.notifys=[...t.config.notifys,...c]:t.config.accounts=[...t.config.accounts,...c])});function s(c,u){c.splice(u,1)}return(c,u)=>{const d=i.resolveComponent("el-tag"),f=i.resolveComponent("el-button"),h=i.resolveComponent("el-form-item"),p=i.resolveComponent("el-input"),v=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[u[2]||(u[2]=i.createElementVNode("div",{class:"header"},"仅支持通过代发邮件",-1)),i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(h,{label:"收件人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.accounts,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:o},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"抄送人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.notifys,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.notify,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:a},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"主题"},{default:i.withCtx(()=>[i.createVNode(p,{modelValue:t.config.title,"onUpdate:modelValue":u[0]||(u[0]=m=>t.config.title=m)},null,8,["modelValue"])]),_:1}),i.createVNode(h,{label:"正文"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":u[1]||(u[1]=m=>t.config.conent=m),height:"350px"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-e5fd9820"]])},Symbol.toStringTag,{value:"Module"})),sxe={class:"no-work",style:{width:"100%","line-height":"14px"}},cxe={style:{float:"left"}},uxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},dxe={class:"sub-title"},fxe={style:{color:"#1e88e5 !important"}},pxe={class:"no-work"},hxe={class:"ml"},gxe={key:0,style:{color:"red"}},mxe={key:1},yxe={class:"config-detail"},vxe={class:"config-item"},bxe={class:"children-query",style:{"margin-top":"20px"}},wxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},_xe={style:{flex:"1"}},Cxe={class:"flex-both"},Exe={class:"flex"},kxe={class:"txt-label"},xxe={class:"condition-select"},Nxe={key:0,class:"function-tag"},Sxe={class:"box"},Dxe={class:"ellipsis table-name"},Bxe={class:"field-name ellipsis"},Oxe={style:{margin:"20px 0"}},Axe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},Vxe={class:"field-list"},Fxe=["onClick"],Txe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var x,C;const E=r.value.trim().toLowerCase();return(C=(x=t.config)==null?void 0:x.fields)==null?void 0:C.filter(S=>[S.columnName,S.columnComment].some(N=>String(N||"").toLowerCase().includes(E)))});function a(E,x,C=[]){if(E.nodeId===x)return C;["odd","search","add","button","table"].includes(E.nodeType)&&C.push(E);let N=!1;if(E.nodeType==="router"&&E.conditionNodes){for(const O of E.conditionNodes)if(Ft(O,x)){a(O.childNode,x,C),N=!0;break}}return!N&&E.childNode&&a(E.childNode,x,C),C}const l=i.computed(()=>{const E=[];return a(n.value.nodeConfig,t.node.nodeId,E),E}),s=i.inject("getFlowFun"),c=i.inject(Qn),u=i.inject("getParentFlowFun"),d=i.ref([]);async function f(){d.value=await s(t.config.workId)}f(),t.config.procId||(t.config.procId=zu());const h=i.computed(()=>{const E=[];E.push(Jr.defaultNode);const x=l.value.find(C=>C.nodeId===t.config.selectNodeId);return x&&E.push(x),E});async function p(){b();const E=l.value.find(x=>x.nodeId===t.config.selectNodeId);E&&(t.config.procId||(t.config.procId=zu()),t.config.nodeType=E.nodeType,t.config.workId=E.config.workId,t.config.workName=E.config.workName,t.config.fields=E.config.fields,f())}function v(E){E.compare="eq",t.config.params.push(E)}function m(E){t.config.params.splice(E,1)}function g(E){E.nodeId="",E.nodeName="",E.fieldValue=void 0,E.fieldValueName=""}function b(){t.config.procId="",t.config.procName="子流程"}function y(E){t.config.procId=E.procId,t.config.procName=E.procName}const w=i.ref([]);async function _(){var x;if(t.config.workId){const C=await c(t.config.workId);C&&(t.config.fields=C.fieldList,t.config.workName=C.workName)}const E=await u(t.config.procId,t.node.nodeId,t.node.selectNodeId);E&&(t.config.procName=E.config.procName,w.value=(x=E==null?void 0:E.parentProcName)==null?void 0:x.split(","))}return _(),(E,x)=>{const C=i.resolveComponent("el-form-item"),S=i.resolveComponent("el-form"),N=i.resolveComponent("el-option"),O=i.resolveComponent("el-select"),P=i.resolveComponent("el-radio"),I=i.resolveComponent("el-radio-group"),W=i.resolveComponent("arrow-down"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-dropdown-item"),Q=i.resolveComponent("el-dropdown-menu"),j=i.resolveComponent("el-dropdown"),T=i.resolveComponent("Close"),J=i.resolveComponent("el-input"),oe=i.resolveComponent("el-button"),A=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.unref(n).procType==="flow"?(i.openBlock(),i.createBlock(S,{key:0,model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"数据源"},{default:i.withCtx(()=>[i.createTextVNode(" 工作表: "+i.toDisplayString(t.config.workName),1)]),_:1}),i.createVNode(C,{label:"被以下工作流触发"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.value,k=>(i.openBlock(),i.createElementBlock("div",sxe,i.toDisplayString(k),1))),256))]),_:1})]),_:1},8,["model"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(S,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"选择数据对象"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":x[0]||(x[0]=k=>t.config.selectNodeId=k),filterable:"",onChange:p},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(N,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",cxe,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",uxe,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t.config.nodeType==="odd"?(i.openBlock(),i.createBlock(C,{key:0,label:"多条数据执行方式"},{default:i.withCtx(()=>[x[7]||(x[7]=i.createElementVNode("span",{class:"remark"}," 您选择了多条数据对象,将根据数据的条数执行多条子流程 ",-1)),i.createVNode(I,{modelValue:e.config.oddType,"onUpdate:modelValue":x[1]||(x[1]=k=>e.config.oddType=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>x[3]||(x[3]=[i.createTextVNode("并行")])),_:1}),x[5]||(x[5]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将同时执行各自的流程。即便某条子流程运行中止,也不影响其他子流程的执行。 ",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>x[4]||(x[4]=[i.createTextVNode("逐条执行")])),_:1}),x[6]||(x[6]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将依次执行流程。每条子流程需要等前一条子流程通过后再开始触发 ",-1))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["model"]),i.createElementVNode("div",dxe,[x[10]||(x[10]=i.createElementVNode("span",null,"执行子流程",-1)),i.createVNode(j,null,{dropdown:i.withCtx(()=>[i.createVNode(Q,null,{default:i.withCtx(()=>[i.createVNode(U,{onClick:b},{default:i.withCtx(()=>x[9]||(x[9]=[i.createTextVNode("清除选择")])),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[B===0?(i.openBlock(),i.createBlock(U,{key:0,divided:"",onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"])):(i.openBlock(),i.createBlock(U,{key:1,onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("span",fxe,[x[8]||(x[8]=i.createTextVNode(" 选择已有流程 ")),i.createVNode(R,{class:"el-icon--right"},{default:i.withCtx(()=>[i.createVNode(W)]),_:1})])]),_:1})]),i.createElementVNode("div",pxe,[i.createElementVNode("div",hxe,[t.config.procId?(i.openBlock(),i.createElementBlock("span",mxe,i.toDisplayString(t.config.procName),1)):(i.openBlock(),i.createElementBlock("span",gxe,"节点保存后,将自动创建一个新的子流程(新建)"))])]),i.createElementVNode("div",yxe,[i.createElementVNode("div",vxe,[i.createElementVNode("div",bxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.params,(k,B)=>{var V;return i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",wxe,[i.createElementVNode("div",_xe,[i.createElementVNode("div",Cxe,[i.createElementVNode("div",Exe,[i.createElementVNode("span",kxe,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(O,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(N,{label:"设为",value:"eq"}),i.createVNode(N,{label:"添加",value:"add"}),i.createVNode(N,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>m(B)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])]),i.createElementVNode("span",xxe,[k.nodeId?(i.openBlock(),i.createElementBlock("div",Nxe,[i.createElementVNode("div",Sxe,[i.createElementVNode("div",Dxe,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),x[11]||(x[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),x[12]||(x[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",Bxe,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>g(k)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(O,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(N,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(E.$slots,"action",{item:k,varList:h.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",Oxe,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>x[13]||(x[13]=[i.createTextVNode("添加参数")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",Axe,[i.createVNode(J,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":x[2]||(x[2]=k=>r.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",Vxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:V=>v(k)},i.toDisplayString(k.columnComment),9,Fxe)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])],64))])}}}),[["__scopeId","data-v-709644ee"]])},Symbol.toStringTag,{value:"Module"})),Pxe={style:{float:"left"}},jxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Ixe={key:0},Lxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"notifyDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(u,d,f=[]){return u.nodeId===d||(u.config.fields&&u.config.fields.length>0&&f.push(u),u.childNode&&r(u.childNode,d,f)),f}const o=i.computed(()=>{const u=[];return r(n.value.nodeConfig,t.node.nodeId,u),u});async function a(){const u=o.value.find(d=>d.nodeId===t.config.selectNodeId);u&&(t.config.workId=u.config.workId,t.config.workName=u.config.workName,t.config.selectNodeFields=xn(u.config.fields))}const l=i.ref("base");i.onMounted(async()=>{s()});function s(){t.config.handlerScope||(t.config.handlerScope=1),t.config.handlers||(t.config.handlers=[])}function c(){t.config.handlers=[]}return(u,d)=>{const f=i.resolveComponent("el-option"),h=i.resolveComponent("el-select"),p=i.resolveComponent("el-form-item"),v=i.resolveComponent("el-form"),m=i.resolveComponent("el-radio"),g=i.resolveComponent("el-radio-group"),b=i.resolveComponent("el-tab-pane"),y=i.resolveComponent("el-tabs");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(p,{label:"数据对象"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":d[0]||(d[0]=w=>t.config.selectNodeId=w),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(w,_)=>(i.openBlock(),i.createBlock(f,{key:_,label:w.nodeName,value:w.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Pxe,i.toDisplayString(w.nodeName),1),i.createElementVNode("span",jxe,' 工作表 "'+i.toDisplayString(w.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),i.createVNode(y,{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=w=>l.value=w)},{default:i.withCtx(()=>[i.createVNode(b,{label:"基本设置",name:"base"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("div",null,[d[6]||(d[6]=i.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),i.createElementVNode("div",null,[i.createVNode(g,{modelValue:t.config.handlerScope,"onUpdate:modelValue":d[1]||(d[1]=w=>t.config.handlerScope=w),onChange:c},{default:i.withCtx(()=>[i.createVNode(m,{label:1},{default:i.withCtx(()=>d[4]||(d[4]=[i.createTextVNode("指定人员")])),_:1}),i.createVNode(m,{label:2},{default:i.withCtx(()=>d[5]||(d[5]=[i.createTextVNode("部门主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(i.openBlock(),i.createElementBlock("div",Ixe,[d[7]||(d[7]=i.createElementVNode("div",{class:"title"},"指定成员",-1)),i.createElementVNode("div",null,[i.createVNode(ON,{modelValue:t.config.handlers,"onUpdate:modelValue":d[2]||(d[2]=w=>t.config.handlers=w),enableRole:!0},null,8,["modelValue"])])])):i.createCommentVNode("",!0)])]),_:1}),i.createVNode(b,{label:"表单操作权限",name:"permissions"},{default:i.withCtx(()=>[i.createVNode(OK,{config:t.config,"node-type":i.unref(Mh)},null,8,["config","node-type"])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-d7695d2b"]])},Symbol.toStringTag,{value:"Module"})),Rxe={style:{float:"left"}},Mxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},zxe={style:{float:"left"}},Uxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Hxe={class:"config-detail"},Wxe={class:"config-item"},qxe={class:"children-query",style:{"margin-top":"20px"}},Gxe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},Kxe={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},Yxe={style:{flex:"1"}},Xxe={class:"flex-both"},Zxe={class:"flex"},Jxe={class:"txt-label"},Qxe={class:"condition-select"},$xe={key:0,class:"function-tag"},e3e={class:"box"},t3e={class:"ellipsis table-name"},n3e={class:"field-name ellipsis"},r3e={style:{margin:"20px 0"}},o3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},i3e={class:"field-list"},a3e=["onClick"],l3e={style:{display:"flex",width:"100%"}},s3e={style:{display:"flex",width:"100%"}},c3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"oddDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(j,T,J=[]){if(j.nodeId===T)return J;j.nodeType==="add"&&j.config.addType==="2"&&J.push(j);let oe=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const A of j.conditionNodes)if(Ft(A,T)){r(A.childNode,T,J),oe=!0;break}}return!oe&&j.childNode&&r(j.childNode,T,J),J}function o(j,T,J=[]){if(j.nodeId===T)return J;j.nodeType==="api"&&J.push(j);let oe=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const A of j.conditionNodes)if(Ft(A,T)){o(A.childNode,T,J),oe=!0;break}}return!oe&&j.childNode&&o(j.childNode,T,J),J}function a(j,T,J=[]){if(j.nodeId===T)return J;(j.nodeType==="flow"||j.nodeType==="add"||j.nodeType==="search")&&J.push(j);let oe=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const A of j.conditionNodes)if(Ft(A,T)){a(A.childNode,T,J),oe=!0;break}}return!oe&&j.childNode&&a(j.childNode,T,J),J}const l=i.computed(()=>{const j=[];return o(n.value.nodeConfig,t.node.nodeId,j),j}),s=i.computed(()=>{const j=[];return a(n.value.nodeConfig,t.node.nodeId,j),j});function c(){var T,J;const j=l.value.find(oe=>oe.nodeId===t.config.selectNodeId);j&&(t.config.workName=j.nodeName,t.config.responseParams=(J=(T=j.config.callApi)==null?void 0:T.responseParams)==null?void 0:J.filter(oe=>oe.type==="Array"))}function u(){var T;const j=s.value.find(J=>J.nodeId===t.config.selectNodeId);j&&(t.config.workName=j.nodeName,t.config.responseParams=(T=j.config.fields)==null?void 0:T.filter(J=>J.type==="Array"))}function d(){var T;const j=t.config.responseParams.find(J=>J.code===t.config.responseField);j&&(t.config.fields=(T=j==null?void 0:j.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}function f(){var T;const j=t.config.responseParams.find(J=>J.columnName===t.config.responseField);j&&(t.config.fields=(T=j==null?void 0:j.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}const h=i.computed(()=>{const j=[];return r(n.value.nodeConfig,t.node.nodeId,j),j});function p(j,T,J=[]){if(j.nodeId===T)return J;["search","flow","add","button","table"].includes(j.nodeType)&&J.push(j);let A=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const k of j.conditionNodes)if(Ft(k,T)){p(k.childNode,T,J),A=!0;break}}return!A&&j.childNode&&p(j.childNode,T,J),J}function v(j,T,J=[]){if(j.nodeId===T)return J;["search","flow","add","button","table","api","summary"].includes(j.nodeType)&&J.push(j);let A=!1;if(j.nodeType==="router"&&j.conditionNodes){for(const k of j.conditionNodes)if(Ft(k,T)){v(k.childNode,T,J),A=!0;break}}return!A&&j.childNode&&v(j.childNode,T,J),J}const m=i.computed(()=>{const j=[];return p(n.value.nodeConfig,t.node.nodeId,j),j}),g=i.ref(""),b=i.computed(()=>{var T,J;const j=g.value.trim().toLowerCase();return(J=(T=t.config)==null?void 0:T.fields)==null?void 0:J.filter(oe=>[oe.columnName,oe.columnComment].some(A=>String(A||"").toLowerCase().includes(j)))}),y=i.ref("and");function w(){t.config.filter.forEach(j=>{j.join=y.value})}function _(j){j.join=y.value,j.compare=10,t.config.filter.push({...j})}function E(j){t.config.filter.splice(j,1)}function x(j){j.nodeId="",j.nodeName="",j.fieldValue=void 0,j.fieldValueName=""}const C=i.ref(),S=i.inject(Ls),N=i.inject(Qn);async function O(){C.value=await S(null)}O();const P=i.computed(()=>{const j=[];return j.push(Jr.defaultNode),v(n.value.nodeConfig,t.node.nodeId,j),j}),I=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function W(){const j=m.value.find(T=>T.nodeId===t.config.selectNodeId);j&&(t.config.selectNodeFields=xn(j.config.fields))}async function R(j){const T=await N(j);t.config.fields=T==null?void 0:T.fieldList,t.config.workName=T==null?void 0:T.workName}async function U(){const j=h.value.find(T=>T.nodeId===t.config.selectNodeId);j&&(t.config.workId=j.config.workId,t.config.workName=j.config.workName,t.config.fields=xn(j.config.fields),t.config.order="update_time")}async function Q(){const j=t.config.selectNodeFields.find(T=>T.columnName===t.config.linkField);if(j){const T=await N(j.fieldAttr.workId);t.config.fields=T.fieldList,t.config.workName=T.workName,t.config.workId=T.workId,t.config.order="update_time"}}return(j,T)=>{const J=i.resolveComponent("el-radio"),oe=i.resolveComponent("el-radio-group"),A=i.resolveComponent("el-form-item"),k=i.resolveComponent("el-option"),B=i.resolveComponent("el-select"),V=i.resolveComponent("Close"),L=i.resolveComponent("el-icon"),F=i.resolveComponent("el-input"),Y=i.resolveComponent("el-button"),$=i.resolveComponent("el-popover"),ie=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[T[36]||(T[36]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(ie,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(A,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.type,"onUpdate:modelValue":T[0]||(T[0]=K=>e.config.type=K),onChange:I},{default:i.withCtx(()=>[i.createVNode(J,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>T[15]||(T[15]=[i.createTextVNode("从工作表获取多条")])),_:1}),T[20]||(T[20]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(J,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>T[16]||(T[16]=[i.createTextVNode("获取关联记录")])),_:1}),T[21]||(T[21]=i.createElementVNode("div",{class:"raido-txt"},"获取关联记录、子表、选择字段中的记录",-1)),i.createVNode(J,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>T[17]||(T[17]=[i.createTextVNode("从新增节点获取记录")])),_:1}),T[22]||(T[22]=i.createElementVNode("div",{class:"raido-txt"},"从创建多条的新增节点获取记录",-1)),i.createVNode(J,{value:"api",style:{width:"100%"}},{default:i.withCtx(()=>T[18]||(T[18]=[i.createTextVNode("从集成API获取记录")])),_:1}),i.createVNode(J,{value:"array",style:{width:"100%"}},{default:i.withCtx(()=>T[19]||(T[19]=[i.createTextVNode("从数组获取记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="api"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(A,{label:"选择集成API节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[1]||(T[1]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:c},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[2]||(T[2]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:d},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.code,value:K.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(A,{label:"选择数据类型节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[3]||(T[3]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[4]||(T[4]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnName,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="work"?(i.openBlock(),i.createBlock(A,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.workId,"onUpdate:modelValue":T[5]||(T[5]=K=>t.config.workId=K),filterable:"",onChange:R},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.workName,value:K.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="add"?(i.openBlock(),i.createBlock(A,{key:3,label:"选择新增记录节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[6]||(T[6]=K=>t.config.selectNodeId=K),filterable:"",onChange:U},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Rxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",Mxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[i.createVNode(A,{label:"选择获取对象"},{default:i.withCtx(()=>[T[23]||(T[23]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[7]||(T[7]=K=>t.config.selectNodeId=K),filterable:"",onChange:W},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",zxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",Uxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[T[24]||(T[24]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(B,{modelValue:t.config.linkField,"onUpdate:modelValue":T[8]||(T[8]=K=>t.config.linkField=K),filterable:"",onChange:Q},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(K,X)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:X},[K.htmlType==="Related"||K.htmlType==="SubTable"?(i.openBlock(),i.createBlock(k,{key:0,label:K.columnComment,value:K.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Hxe,[T[28]||(T[28]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),T[29]||(T[29]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",Wxe,[i.createElementVNode("div",qxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(K,X)=>{var ge;return i.openBlock(),i.createElementBlock("div",{key:X,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",Gxe,[X===0?(i.openBlock(),i.createBlock(B,{key:0,modelValue:y.value,"onUpdate:modelValue":T[9]||(T[9]=ae=>y.value=ae),onChange:w},{default:i.withCtx(()=>[i.createVNode(k,{label:"且",value:"and"}),i.createVNode(k,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",Kxe,i.toDisplayString(K.join==="and"?"且":"或"),1))]),i.createElementVNode("div",Yxe,[i.createElementVNode("div",Xxe,[i.createElementVNode("div",Zxe,[i.createElementVNode("span",Jxe,i.toDisplayString(K.columnComment),1),i.createElementVNode("span",null,[i.createVNode(B,{modelValue:K.compare,"onUpdate:modelValue":ae=>K.compare=ae,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(k,{label:"等于",value:10}),i.createVNode(k,{label:"不等于",value:110}),i.createVNode(k,{label:"大于",value:20}),i.createVNode(k,{label:"大于等于",value:21}),i.createVNode(k,{label:"小于",value:30}),i.createVNode(k,{label:"小于等于",value:31}),i.createVNode(k,{label:"多词匹配",value:40}),i.createVNode(k,{label:"包含",value:50}),i.createVNode(k,{label:"不包含",value:150}),i.createVNode(k,{label:"区间",value:80}),i.createVNode(k,{label:"为空",value:90}),i.createVNode(k,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(L,{class:"close-icon",onClick:ae=>E(X)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Qxe,[K.nodeId?(i.openBlock(),i.createElementBlock("div",$xe,[i.createElementVNode("div",e3e,[i.createElementVNode("div",t3e,[i.createElementVNode("span",null,i.toDisplayString(K.nodeName),1),T[25]||(T[25]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),T[26]||(T[26]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",n3e,i.toDisplayString(K.fieldValueName),1)]),i.createVNode(L,{onClick:ae=>x(K)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((ge=K==null?void 0:K.fieldAttr)==null?void 0:ge.type)?(i.openBlock(),i.createBlock(B,{key:0,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.fieldAttr.enum,(ae,ne)=>(i.openBlock(),i.createBlock(k,{key:ne,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(F,{key:1,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(j.$slots,"action",{item:K,varList:P.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",r3e,[i.createVNode($,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Y,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>T[27]||(T[27]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",o3e,[i.createVNode(F,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:g.value,"onUpdate:modelValue":T[10]||(T[10]=K=>g.value=K)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",i3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value,(K,X)=>(i.openBlock(),i.createElementBlock("div",{key:X,class:"field-item",onClick:ge=>_(K)},i.toDisplayString(K.columnComment),9,a3e))),128))])]),_:1})])])]),i.createVNode(A,{label:"排序规则"},{default:i.withCtx(()=>[T[30]||(T[30]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得数据。如果未设置规则,返回最近更新的一条数据 ",-1)),i.createElementVNode("div",l3e,[i.createVNode(B,{modelValue:t.config.order,"onUpdate:modelValue":T[11]||(T[11]=K=>t.config.order=K),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnComment,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(B,{modelValue:t.config.sort,"onUpdate:modelValue":T[12]||(T[12]=K=>t.config.sort=K),filterable:""},{default:i.withCtx(()=>[i.createVNode(k,{label:"升序",value:"asc"}),i.createVNode(k,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(A,{label:"限制数量"},{default:i.withCtx(()=>[T[31]||(T[31]=i.createElementVNode("span",{class:"remark"},"最多获取条数",-1)),i.createElementVNode("div",s3e,[i.createVNode(F,{modelValue:t.config.limit,"onUpdate:modelValue":T[13]||(T[13]=K=>t.config.limit=K)},null,8,["modelValue"])])]),_:1}),i.createVNode(A,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.way,"onUpdate:modelValue":T[14]||(T[14]=K=>e.config.way=K)},{default:i.withCtx(()=>[i.createVNode(J,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>T[32]||(T[32]=[i.createTextVNode("直接获取")])),_:1}),T[34]||(T[34]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(J,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>T[33]||(T[33]=[i.createTextVNode("每次使用时动态获取")])),_:1}),T[35]||(T[35]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-57a9434c"]])},Symbol.toStringTag,{value:"Module"})),u3e={style:{float:"left"}},d3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},f3e={style:{float:"left"}},p3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},h3e={class:"config-detail"},g3e={class:"config-item"},m3e={class:"children-query",style:{"margin-top":"20px"}},y3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},v3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},b3e={style:{flex:"1"}},w3e={class:"flex-both"},_3e={class:"flex"},C3e={class:"txt-label"},E3e={class:"condition-select"},k3e={key:0,class:"function-tag"},x3e={class:"box"},N3e={class:"ellipsis table-name"},S3e={class:"field-name ellipsis"},D3e={style:{margin:"20px 0"}},B3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},O3e={class:"field-list"},A3e=["onClick"],V3e={style:{display:"flex",width:"100%"}},F3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"searchDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(N,O,P=[]){if(N.nodeId===O)return P;(N.nodeType==="odd"||N.nodeType==="button")&&N.config.workId&&P.push(N);let I=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const W of N.conditionNodes)if(Ft(W,O)){r(W.childNode,O,P),I=!0;break}}return!I&&N.childNode&&r(N.childNode,O,P),P}function o(N,O,P=[]){if(N.nodeId===O)return P;["odd","search","flow","add","button","table"].includes(N.nodeType)&&P.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const R of N.conditionNodes)if(Ft(R,O)){o(R.childNode,O,P),W=!0;break}}return!W&&N.childNode&&o(N.childNode,O,P),P}function a(N,O,P=[]){if(N.nodeId===O)return P;["odd","search","flow","add","button","table","api","summary"].includes(N.nodeType)&&P.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const R of N.conditionNodes)if(Ft(R,O)){a(R.childNode,O,P),W=!0;break}}return!W&&N.childNode&&a(N.childNode,O,P),P}const l=i.computed(()=>{const N=[];return r(n.value.nodeConfig,t.node.nodeId,N),N}),s=i.computed(()=>{const N=[];return o(n.value.nodeConfig,t.node.nodeId,N),N}),c=i.computed(()=>{const N=[];return N.push(Jr.defaultNode),a(n.value.nodeConfig,t.node.nodeId,N),N}),u=i.ref(""),d=i.computed(()=>{var O,P;const N=u.value.trim().toLowerCase();return(P=(O=t.config)==null?void 0:O.fields)==null?void 0:P.filter(I=>[I.columnName,I.columnComment].some(W=>String(W||"").toLowerCase().includes(N)))}),f=i.ref("and");function h(){t.config.filter.forEach(N=>{N.join=f.value})}function p(N){N.join=f.value,N.compare=10,t.config.filter.push({...N})}function v(N){t.config.filter.splice(N,1)}function m(N){N.nodeId="",N.nodeName="",N.fieldValue=void 0,N.fieldValueName=""}const g=i.ref(),b=i.inject(Ls),y=i.inject(Qn);async function w(){g.value=await b(null)}w();const _=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function E(N){const O=await y(N);t.config.fields=O==null?void 0:O.fieldList,t.config.workName=O==null?void 0:O.workName,t.config.filter=[],t.config.order="update_time"}async function x(){const N=l.value.find(O=>O.nodeId===t.config.selectNodeId);N&&(t.config.workId=N.config.workId,t.config.workName=N.config.workName,t.config.fields=xn(N.config.fields),t.config.order="update_time")}async function C(){const N=s.value.find(O=>O.nodeId===t.config.selectNodeId);N&&(t.config.selectNodeFields=xn(N.config.fields))}async function S(){const N=t.config.selectNodeFields.find(O=>O.columnName===t.config.linkField);if(N){const O=await y(N.fieldAttr.workId);t.config.fields=O.fieldList,t.config.workName=O.workName,t.config.workId=O.workId,t.config.order="update_time"}}return(N,O)=>{const P=i.resolveComponent("el-radio"),I=i.resolveComponent("el-radio-group"),W=i.resolveComponent("el-form-item"),R=i.resolveComponent("el-option"),U=i.resolveComponent("el-select"),Q=i.resolveComponent("Close"),j=i.resolveComponent("el-icon"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover"),A=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[O[27]||(O[27]=i.createElementVNode("div",{class:"header"}," 基于一种获取方式,通过筛选条件和排序规则获得符合条件的唯一数据,供流程中的其他节点使用。 ",-1)),i.createVNode(A,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(W,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:t.config.type,"onUpdate:modelValue":O[0]||(O[0]=k=>t.config.type=k),onChange:_},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>O[10]||(O[10]=[i.createTextVNode("从工作表获取单条")])),_:1}),O[13]||(O[13]=i.createElementVNode("div",{class:"raido-txt"},"从工作表获取一条指定记录",-1)),i.createVNode(P,{value:"odd",style:{width:"100%"}},{default:i.withCtx(()=>O[11]||(O[11]=[i.createTextVNode("从多条数据节点获取单条")])),_:1}),O[14]||(O[14]=i.createElementVNode("div",{class:"raido-txt"},"从多条数据节点获取一条指定记录",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>O[12]||(O[12]=[i.createTextVNode("从关联字段获取单条")])),_:1}),O[15]||(O[15]=i.createElementVNode("div",{class:"raido-txt"}," 从关联表、子表或级联选择字段获取一条指定记录 ",-1))]),_:1},8,["modelValue"])]),_:1}),t.config.type==="work"?(i.openBlock(),i.createBlock(W,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.workId,"onUpdate:modelValue":O[1]||(O[1]=k=>t.config.workId=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="odd"?(i.openBlock(),i.createBlock(W,{key:1,label:"选择多条数据节点"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":O[2]||(O[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:x},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",u3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",d3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(W,{label:"选择获取对象"},{default:i.withCtx(()=>[O[16]||(O[16]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":O[3]||(O[3]=k=>t.config.selectNodeId=k),filterable:"",onChange:C},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",f3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",p3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(W,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[O[17]||(O[17]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(U,{modelValue:t.config.linkField,"onUpdate:modelValue":O[4]||(O[4]=k=>t.config.linkField=k),filterable:"",onChange:S},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="Related"||k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(R,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",h3e,[O[21]||(O[21]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),O[22]||(O[22]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",g3e,[i.createElementVNode("div",m3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",y3e,[B===0?(i.openBlock(),i.createBlock(U,{key:0,modelValue:f.value,"onUpdate:modelValue":O[5]||(O[5]=L=>f.value=L),onChange:h},{default:i.withCtx(()=>[i.createVNode(R,{label:"且",value:"and"}),i.createVNode(R,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",v3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",b3e,[i.createElementVNode("div",w3e,[i.createElementVNode("div",_3e,[i.createElementVNode("span",C3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"等于",value:10}),i.createVNode(R,{label:"不等于",value:110}),i.createVNode(R,{label:"大于",value:20}),i.createVNode(R,{label:"大于等于",value:21}),i.createVNode(R,{label:"小于",value:30}),i.createVNode(R,{label:"小于等于",value:31}),i.createVNode(R,{label:"多词匹配",value:40}),i.createVNode(R,{label:"包含",value:50}),i.createVNode(R,{label:"不包含",value:150}),i.createVNode(R,{label:"区间",value:80}),i.createVNode(R,{label:"为空",value:90}),i.createVNode(R,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(j,{class:"close-icon",onClick:L=>v(B)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])]),i.createElementVNode("span",E3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",k3e,[i.createElementVNode("div",x3e,[i.createElementVNode("div",N3e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),O[18]||(O[18]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),O[19]||(O[19]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",S3e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(j,{onClick:L=>m(k)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(R,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(N.$slots,"action",{item:k,varList:c.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",D3e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>O[20]||(O[20]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",B3e,[i.createVNode(T,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":O[6]||(O[6]=k=>u.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",O3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>(i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:V=>p(k)},i.toDisplayString(k.columnComment),9,A3e))),128))])]),_:1})])])]),i.createVNode(W,{label:"排序规则"},{default:i.withCtx(()=>[O[23]||(O[23]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得第一条数据。如果未设置规则,按照字段配置的排序规则返回第一条数据 ",-1)),i.createElementVNode("div",V3e,[i.createVNode(U,{modelValue:t.config.order,"onUpdate:modelValue":O[7]||(O[7]=k=>t.config.order=k),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.columnComment,value:k.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(U,{modelValue:t.config.sort,"onUpdate:modelValue":O[8]||(O[8]=k=>t.config.sort=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(R,{label:"升序",value:"asc"}),i.createVNode(R,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(W,{label:"未获取到数据时"},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:t.config.way,"onUpdate:modelValue":O[9]||(O[9]=k=>t.config.way=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"go",style:{width:"100%"}},{default:i.withCtx(()=>O[24]||(O[24]=[i.createTextVNode("继续执行")])),_:1}),O[26]||(O[26]=i.createElementVNode("div",{class:"raido-txt"}," 之后节点在使用本节点对象或数据时将跳过执行 ",-1)),i.createVNode(P,{value:"aborted"},{default:i.withCtx(()=>O[25]||(O[25]=[i.createTextVNode("中止流程,或继续执行查找结果分支")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-120f909c"]])},Symbol.toStringTag,{value:"Module"})),T3e={style:{float:"left"}},P3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},j3e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(l,s,c=[]){return l.nodeId===s||(l.config.fields&&l.config.fields.length>0&&c.push(l),l.childNode&&r(l.childNode,s,c)),c}const o=i.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=o.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName,t.config.selectNodeFields=xn(l.config.fields))}return(l,s)=>{const c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("el-form-item"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(d,{label:"发起审批的数据对象"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(h,p)=>(i.openBlock(),i.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",T3e,i.toDisplayString(h.nodeName),1),i.createElementVNode("span",P3e,' 工作表 "'+i.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(d,{label:"发起人"},{default:i.withCtx(()=>s[1]||(s[1]=[i.createTextVNode("触发者")])),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),I3e={style:{float:"left"}},L3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},R3e={class:"config-detail"},M3e={class:"config-item"},z3e={class:"children-query",style:{"margin-top":"20px"}},U3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},H3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},W3e={style:{flex:"1"}},q3e={class:"flex-both"},G3e={class:"flex"},K3e={class:"txt-label"},Y3e={class:"condition-select"},X3e={key:0,class:"function-tag"},Z3e={class:"box"},J3e={class:"ellipsis table-name"},Q3e={class:"field-name ellipsis"},$3e={style:{margin:"20px 0"}},e8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},t8e={class:"field-list"},n8e=["onClick"],r8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"summaryDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(x,C,S=[]){if(x.nodeId===C)return S;["search","flow","add","button","table"].includes(x.nodeType)&&S.push(x);let O=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const P of x.conditionNodes)if(Ft(P,C)){r(P.childNode,C,S),O=!0;break}}return!O&&x.childNode&&r(x.childNode,C,S),S}function o(x,C,S=[]){if(x.nodeId===C)return S;["search","flow","add","button","table","api","summary"].includes(x.nodeType)&&S.push(x);let O=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const P of x.conditionNodes)if(Ft(P,C)){o(P.childNode,C,S),O=!0;break}}return!O&&x.childNode&&o(x.childNode,C,S),S}const a=i.computed(()=>{const x=[];return r(n.value.nodeConfig,t.node.nodeId,x),x}),l=i.ref(""),s=i.computed(()=>{var C,S;const x=l.value.trim().toLowerCase();return(S=(C=t.config)==null?void 0:C.fields)==null?void 0:S.filter(N=>[N.columnName,N.columnComment].some(O=>String(O||"").toLowerCase().includes(x)))}),c=i.ref("and");function u(){t.config.filter.forEach(x=>{x.join=c.value})}function d(x){x.join=c.value,x.compare=10,t.config.filter.push({...x})}function f(x){t.config.filter.splice(x,1)}function h(x){x.nodeId="",x.nodeName="",x.fieldValue=void 0,x.fieldValueName=""}const p=i.ref(),v=i.inject(Ls),m=i.inject(Qn);async function g(){p.value=await v(null)}g();const b=i.computed(()=>{const x=[];return x.push(Jr.defaultNode),o(n.value.nodeConfig,t.node.nodeId,x),x}),y=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function w(){const x=a.value.find(C=>C.nodeId===t.config.selectNodeId);x&&(t.config.selectNodeFields=xn(x.config.fields))}async function _(x){const C=await m(x);t.config.fields=C==null?void 0:C.fieldList,t.config.workName=C==null?void 0:C.workName}async function E(){const x=t.config.selectNodeFields.find(C=>C.columnName===t.config.linkField);if(x){const C=await m(x.fieldAttr.workId);t.config.fields=C.fieldList,t.config.workName=C.workName,t.config.workId=C.workId,t.config.order="update_time"}}return(x,C)=>{const S=i.resolveComponent("el-radio"),N=i.resolveComponent("el-radio-group"),O=i.resolveComponent("el-form-item"),P=i.resolveComponent("el-option"),I=i.resolveComponent("el-select"),W=i.resolveComponent("Close"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-input"),Q=i.resolveComponent("el-button"),j=i.resolveComponent("el-popover"),T=i.resolveComponent("el-divider"),J=i.resolveComponent("el-col"),oe=i.resolveComponent("el-row"),A=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[C[24]||(C[24]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(A,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(O,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(N,{modelValue:e.config.type,"onUpdate:modelValue":C[0]||(C[0]=k=>e.config.type=k),onChange:y},{default:i.withCtx(()=>[i.createVNode(S,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>C[9]||(C[9]=[i.createTextVNode("从工作表进行汇总")])),_:1}),C[11]||(C[11]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(S,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>C[10]||(C[10]=[i.createTextVNode("获取关联子表记录")])),_:1}),C[12]||(C[12]=i.createElementVNode("div",{class:"raido-txt"},"获取关联子表记录",-1))]),_:1},8,["modelValue"])]),_:1}),e.config.type==="work"?(i.openBlock(),i.createBlock(O,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:t.config.workId,"onUpdate:modelValue":C[1]||(C[1]=k=>t.config.workId=k),filterable:"",onChange:_},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(O,{label:"选择获取对象"},{default:i.withCtx(()=>[C[13]||(C[13]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(I,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":C[2]||(C[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:w},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",I3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",L3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[C[14]||(C[14]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(I,{modelValue:t.config.linkField,"onUpdate:modelValue":C[3]||(C[3]=k=>t.config.linkField=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(P,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",R3e,[C[18]||(C[18]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),C[19]||(C[19]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",M3e,[i.createElementVNode("div",z3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",U3e,[B===0?(i.openBlock(),i.createBlock(I,{key:0,modelValue:c.value,"onUpdate:modelValue":C[4]||(C[4]=L=>c.value=L),onChange:u},{default:i.withCtx(()=>[i.createVNode(P,{label:"且",value:"and"}),i.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",H3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",W3e,[i.createElementVNode("div",q3e,[i.createElementVNode("div",G3e,[i.createElementVNode("span",K3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(I,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(P,{label:"等于",value:10}),i.createVNode(P,{label:"不等于",value:110}),i.createVNode(P,{label:"大于",value:20}),i.createVNode(P,{label:"大于等于",value:21}),i.createVNode(P,{label:"小于",value:30}),i.createVNode(P,{label:"小于等于",value:31}),i.createVNode(P,{label:"多词匹配",value:40}),i.createVNode(P,{label:"包含",value:50}),i.createVNode(P,{label:"不包含",value:150}),i.createVNode(P,{label:"区间",value:80}),i.createVNode(P,{label:"为空",value:90}),i.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>f(B)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Y3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",X3e,[i.createElementVNode("div",Z3e,[i.createElementVNode("div",J3e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),C[15]||(C[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),C[16]||(C[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",Q3e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>h(k)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(I,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(P,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(U,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(x.$slots,"action",{item:k,varList:b.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",$3e,[i.createVNode(j,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Q,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>C[17]||(C[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",e8e,[i.createVNode(U,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:l.value,"onUpdate:modelValue":C[5]||(C[5]=k=>l.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",t8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>(i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:V=>d(k)},i.toDisplayString(k.columnComment),9,n8e))),128))])]),_:1})])])]),i.createVNode(O,{label:"汇总方式"},{default:i.withCtx(()=>[i.createVNode(oe,{style:{width:"100%",display:"flex","justify-content":"space-between"}},{default:i.withCtx(()=>[i.createVNode(J,{span:11},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:e.config.summary,"onUpdate:modelValue":C[6]||(C[6]=k=>e.config.summary=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(P,{value:"count(*)",label:"记录数量"}),i.createVNode(T,{style:{margin:"2px 0"}}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,value:k.columnName,label:k.columnComment},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.config.summary!=="count(*)"?(i.openBlock(),i.createBlock(J,{key:0,span:11},{default:i.withCtx(()=>[i.createVNode(I,{modelValue:e.config.fun,"onUpdate:modelValue":C[7]||(C[7]=k=>e.config.fun=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"notnull",label:"已填计数"}),i.createVNode(P,{value:"null",label:"未填计数"}),i.createVNode(P,{value:"sum",label:"求和"}),i.createVNode(P,{value:"avg",label:"平均值"}),i.createVNode(P,{value:"max",label:"最大值"}),i.createVNode(P,{value:"min",label:"最小值"})]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1})]),_:1}),i.createVNode(O,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(N,{modelValue:e.config.way,"onUpdate:modelValue":C[8]||(C[8]=k=>e.config.way=k)},{default:i.withCtx(()=>[i.createVNode(S,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>C[20]||(C[20]=[i.createTextVNode("直接获取")])),_:1}),C[22]||(C[22]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(S,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>C[21]||(C[21]=[i.createTextVNode("每次使用时动态获取")])),_:1}),C[23]||(C[23]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-a3b2211f"]])},Symbol.toStringTag,{value:"Module"})),o8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"systemDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[s[1]||(s[1]=i.createElementVNode("span",{class:"remark"},"将通过系统消息发送",-1)),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-3d5b6cc6"]])},Symbol.toStringTag,{value:"Module"})),i8e={key:0,class:"raido-txt"},a8e={key:1,class:"raido-txt"},l8e={class:"config-detail"},s8e={class:"config-item"},c8e={class:"children-query",style:{"margin-top":"20px"}},u8e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},d8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},f8e={style:{flex:"1"}},p8e={class:"flex-both"},h8e={class:"flex"},g8e={class:"txt-label"},m8e={class:"condition-select"},y8e={key:0,class:"function-tag"},v8e={class:"box"},b8e={class:"ellipsis table-name"},w8e={class:"field-name ellipsis"},_8e={style:{margin:"20px 0"}},C8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},E8e={class:"field-list"},k8e=["onClick"],x8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.inject(Ls),o=i.inject(Qn);async function a(){n.value=await r(null)}a();async function l(m){const g=await o(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}const s=i.computed(()=>{const m=[];return m.push(Jr.defaultNode),m.push(t.node),m}),c=i.ref(""),u=i.computed(()=>{var g,b;const m=c.value.trim().toLowerCase();return(b=(g=t.config)==null?void 0:g.fields)==null?void 0:b.filter(y=>[y.columnName,y.columnComment].some(w=>String(w||"").toLowerCase().includes(m)))}),d=i.ref("and");function f(){t.config.filter.forEach(m=>{m.join=d.value})}function h(m){m.join=d.value,m.compare=10,t.config.filter.push({...m})}function p(m){t.config.filter.splice(m,1)}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("el-radio"),E=i.resolveComponent("el-radio-group"),x=i.resolveComponent("Close"),C=i.resolveComponent("el-icon"),S=i.resolveComponent("el-input"),N=i.resolveComponent("el-button"),O=i.resolveComponent("el-popover"),P=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(P,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=I=>t.config.workId=I),filterable:"",onChange:l},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(I,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:I.workName,value:I.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(w,{label:"触发方式"},{default:i.withCtx(()=>[i.createVNode(E,{modelValue:e.config.type,"onUpdate:modelValue":g[3]||(g[3]=I=>e.config.type=I)},{default:i.withCtx(()=>[i.createVNode(_,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>g[6]||(g[6]=[i.createTextVNode(" 当新增或更新记录时 ")])),_:1}),e.config.type==="save"?(i.openBlock(),i.createElementBlock("div",i8e,[g[7]||(g[7]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[1]||(g[1]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(I,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[8]||(g[8]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>g[9]||(g[9]=[i.createTextVNode("仅新增记录时")])),_:1}),g[14]||(g[14]=i.createElementVNode("div",{class:"raido-txt"},"当新增记录时触发流程",-1)),i.createVNode(_,{value:"edit",style:{width:"100%"}},{default:i.withCtx(()=>g[10]||(g[10]=[i.createTextVNode("仅更新记录时")])),_:1}),e.config.type==="edit"?(i.openBlock(),i.createElementBlock("div",a8e,[g[11]||(g[11]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[2]||(g[2]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(I,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[12]||(g[12]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"del",style:{width:"100%"}},{default:i.withCtx(()=>g[13]||(g[13]=[i.createTextVNode("删除记录时")])),_:1})]),_:1},8,["modelValue"])]),_:1}),i.createElementVNode("div",l8e,[g[18]||(g[18]=i.createElementVNode("div",{class:"item-label"},"触发条件",-1)),g[19]||(g[19]=i.createElementVNode("span",{class:"remark"},"设置筛选条件,仅使满足条件的记录进入流程。",-1)),i.createElementVNode("div",s8e,[i.createElementVNode("div",c8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(I,W)=>{var R;return i.openBlock(),i.createElementBlock("div",{key:W,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",u8e,[W===0?(i.openBlock(),i.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[4]||(g[4]=U=>d.value=U),onChange:f},{default:i.withCtx(()=>[i.createVNode(b,{label:"且",value:"and"}),i.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",d8e,i.toDisplayString(I.join==="and"?"且":"或"),1))]),i.createElementVNode("div",f8e,[i.createElementVNode("div",p8e,[i.createElementVNode("div",h8e,[i.createElementVNode("span",g8e,i.toDisplayString(I.columnComment),1),i.createElementVNode("span",null,[i.createVNode(y,{modelValue:I.compare,"onUpdate:modelValue":U=>I.compare=U,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(b,{label:"等于",value:10}),i.createVNode(b,{label:"不等于",value:110}),i.createVNode(b,{label:"大于",value:20}),i.createVNode(b,{label:"大于等于",value:21}),i.createVNode(b,{label:"小于",value:30}),i.createVNode(b,{label:"小于等于",value:31}),i.createVNode(b,{label:"包含",value:50}),i.createVNode(b,{label:"不包含",value:150}),i.createVNode(b,{label:"区间",value:80}),i.createVNode(b,{label:"为空",value:90}),i.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(C,{class:"close-icon",onClick:U=>p(W)},{default:i.withCtx(()=>[i.createVNode(x)]),_:2},1032,["onClick"])]),i.createElementVNode("span",m8e,[I.nodeId?(i.openBlock(),i.createElementBlock("div",y8e,[i.createElementVNode("div",v8e,[i.createElementVNode("div",b8e,[i.createElementVNode("span",null,i.toDisplayString(I.nodeName),1),g[15]||(g[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[16]||(g[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",w8e,i.toDisplayString(I.fieldValueName),1)]),i.createVNode(C,{onClick:U=>v(I)},{default:i.withCtx(()=>[i.createVNode(x)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=I==null?void 0:I.fieldAttr)==null?void 0:R.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:I.fieldValue,"onUpdate:modelValue":U=>I.fieldValue=U,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.fieldAttr.enum,(U,Q)=>(i.openBlock(),i.createBlock(b,{key:Q,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(S,{key:1,modelValue:I.fieldValue,"onUpdate:modelValue":U=>I.fieldValue=U,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:I,varList:s.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",_8e,[i.createVNode(O,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(N,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>g[17]||(g[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",C8e,[i.createVNode(S,{"prefix-icon":i.unref(Ai),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[5]||(g[5]=I=>c.value=I)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",E8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(I,W)=>(i.openBlock(),i.createElementBlock("div",{key:W,class:"field-item",onClick:R=>h(I)},i.toDisplayString(I.columnComment),9,k8e))),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-ece7fafd"]])},Symbol.toStringTag,{value:"Module"})),N8e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e;return(n,r)=>{const o=i.resolveComponent("el-date-picker"),a=i.resolveComponent("el-form-item"),l=i.resolveComponent("el-option"),s=i.resolveComponent("el-select"),c=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(c,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(a,{label:"开始执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.start,"onUpdate:modelValue":r[0]||(r[0]=u=>t.config.start=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"结束执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.end,"onUpdate:modelValue":r[1]||(r[1]=u=>t.config.end=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"循环"},{default:i.withCtx(()=>[i.createVNode(s,{modelValue:t.config.loop,"onUpdate:modelValue":r[2]||(r[2]=u=>t.config.loop=u)},{default:i.withCtx(()=>[i.createVNode(l,{label:"每小时",value:"hour"}),i.createVNode(l,{label:"每天",value:"day"}),i.createVNode(l,{label:"每周",value:"week"}),i.createVNode(l,{label:"每月",value:"month"}),i.createVNode(l,{label:"每年",value:"year"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),S8e={style:{float:"left"}},D8e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},B8e={key:0,class:"no-work"},O8e={key:1,class:"config-detail"},A8e={class:"config-item"},V8e={class:"children-query",style:{"margin-top":"20px"}},F8e={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},T8e={style:{flex:"1"}},P8e={class:"flex-both"},j8e={class:"flex"},I8e={class:"txt-label"},L8e={class:"condition-select"},R8e={key:0,class:"function-tag"},M8e={class:"box"},z8e={class:"ellipsis table-name"},U8e={class:"field-name ellipsis"},H8e={style:{margin:"20px 0"}},W8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},q8e={class:"field-list"},G8e=["onClick"],K8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"uiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.ref(),o=i.ref(),a=i.ref(),l=i.inject(Ls),s=i.inject(bG),c=i.inject(Qn),u=i.ref(""),d=i.computed(()=>{var S;const C=u.value.trim().toLowerCase();return(S=o.value)==null?void 0:S.filter(N=>[N.columnName,N.columnComment].some(O=>String(O||"").toLowerCase().includes(C)))});async function f(){if(n.value=await l(null),t.config.workId){const C=await c(t.config.workId);t.config.workName=C==null?void 0:C.workName,r.value=C==null?void 0:C.viewList,o.value=C==null?void 0:C.fieldList}}f();async function h(C){const S=await c(C);t.config.workName=S==null?void 0:S.workName,t.config.viewId="",t.config.fields=[],r.value=S==null?void 0:S.viewList,o.value=S==null?void 0:S.fieldList}async function p(C){if(t.config.workName="",t.config.workId="",t.config.type==="drag"&&!a.value){const S=await s(C);a.value=S}}function v(){var S;const C=(S=a.value)==null?void 0:S.find(N=>N.workId===t.config.workId);t.config.workName=C==null?void 0:C.workName}async function m(){const C=y.value.find(S=>S.nodeId===t.config.selectNodeId);C&&(t.config.workId=C.config.workId,t.config.workName=C.config.workName)}const g=i.inject(Vn);function b(C,S,N=[]){if(C.nodeId===S)return N;["search","add","button","table","api","summary"].includes(C.nodeType)&&N.push(C);let P=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const I of C.conditionNodes)if(Ft(I,S)){b(I.childNode,S,N),P=!0;break}}return!P&&C.childNode&&b(C.childNode,S,N),N}const y=i.computed(()=>{const C=[];return b(g.value.nodeConfig,t.node.nodeId,C),C}),w=i.computed(()=>{const C=[];return C.push(Jr.defaultNode),b(g.value.nodeConfig,t.node.nodeId,C),C});function _(C){t.config.fields.push({...C})}function E(C){t.config.fields.splice(C,1)}function x(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}return(C,S)=>{const N=i.resolveComponent("el-option"),O=i.resolveComponent("el-select"),P=i.resolveComponent("el-form-item"),I=i.resolveComponent("el-radio"),W=i.resolveComponent("el-radio-group"),R=i.resolveComponent("el-form"),U=i.resolveComponent("InfoFilled"),Q=i.resolveComponent("el-icon"),j=i.resolveComponent("Close"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(R,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(P,{label:"推送内容"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.type,"onUpdate:modelValue":S[0]||(S[0]=A=>t.config.type=A),filterable:"",onChange:p},{default:i.withCtx(()=>[i.createVNode(N,{label:"打开记录创建层",value:"form"}),i.createVNode(N,{label:"打开记录详情页",value:"info"}),i.createVNode(N,{label:"打开工作表视图",value:"view"}),i.createVNode(N,{label:"打开自定义页面",value:"drag"})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="info"?(i.openBlock(),i.createBlock(P,{key:0,label:"选择记录"},{default:i.withCtx(()=>[S[7]||(S[7]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(O,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":S[1]||(S[1]=A=>t.config.selectNodeId=A),filterable:"",clearable:"",onChange:m},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.nodeName,value:A.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",S8e,i.toDisplayString(A.nodeName),1),i.createElementVNode("span",D8e,' 工作表 "'+i.toDisplayString(A.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.config.type==="drag"?(i.openBlock(),i.createBlock(P,{key:1,label:"选择自定义页面"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.workId,"onUpdate:modelValue":S[2]||(S[2]=A=>t.config.workId=A),filterable:"",clearable:"",onChange:v},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.workName,value:A.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):(i.openBlock(),i.createBlock(P,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.workId,"onUpdate:modelValue":S[3]||(S[3]=A=>t.config.workId=A),filterable:"",clearable:"",onChange:h},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.workName,value:A.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),e.config.type==="view"?(i.openBlock(),i.createBlock(P,{key:3,label:"选择视图"},{default:i.withCtx(()=>[i.createVNode(O,{modelValue:t.config.viewId,"onUpdate:modelValue":S[4]||(S[4]=A=>t.config.viewId=A),filterable:"",clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(A,k)=>(i.openBlock(),i.createBlock(N,{key:k,label:A.viewName,value:A.viewId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),i.createVNode(P,{label:"打开方式"},{default:i.withCtx(()=>[i.createVNode(W,{modelValue:t.config.open,"onUpdate:modelValue":S[5]||(S[5]=A=>t.config.open=A)},{default:i.withCtx(()=>[i.createVNode(I,{value:"popup"},{default:i.withCtx(()=>S[8]||(S[8]=[i.createTextVNode("弹窗")])),_:1}),i.createVNode(I,{value:"page"},{default:i.withCtx(()=>S[9]||(S[9]=[i.createTextVNode("打开新页面")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.config.type==="form"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[S[14]||(S[14]=i.createElementVNode("div",{class:"title"},"设置字段",-1)),t.config.workId?(i.openBlock(),i.createElementBlock("div",O8e,[i.createElementVNode("div",A8e,[i.createElementVNode("div",V8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(A,k)=>{var B;return i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[A.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",F8e,[i.createElementVNode("div",T8e,[i.createElementVNode("div",P8e,[i.createElementVNode("div",j8e,[i.createElementVNode("span",I8e,i.toDisplayString(A.columnComment),1)]),i.createVNode(Q,{class:"close-icon",onClick:V=>E(k)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])]),i.createElementVNode("span",L8e,[A.nodeId?(i.openBlock(),i.createElementBlock("div",R8e,[i.createElementVNode("div",M8e,[i.createElementVNode("div",z8e,[i.createElementVNode("span",null,i.toDisplayString(A.nodeName),1),S[11]||(S[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[12]||(S[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",U8e,i.toDisplayString(A.fieldValueName),1)]),i.createVNode(Q,{onClick:V=>x(A)},{default:i.withCtx(()=>[i.createVNode(j)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((B=A==null?void 0:A.fieldAttr)==null?void 0:B.type)?(i.openBlock(),i.createBlock(O,{key:0,modelValue:A.fieldValue,"onUpdate:modelValue":V=>A.fieldValue=V,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.fieldAttr.enum,(V,L)=>(i.openBlock(),i.createBlock(N,{key:L,label:V.label,value:V.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:A.fieldValue,"onUpdate:modelValue":V=>A.fieldValue=V,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(C.$slots,"action",{item:A,varList:w.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",H8e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:C.Plus,text:""},{default:i.withCtx(()=>S[13]||(S[13]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",W8e,[i.createVNode(T,{"prefix-icon":C.Search,placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":S[6]||(S[6]=A=>u.value=A)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",q8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(A,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[A.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:B=>_(A)},i.toDisplayString(A.columnComment),9,G8e)):i.createCommentVNode("",!0)],64))),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",B8e,[i.createVNode(Q,{size:"17"},{default:i.withCtx(()=>[i.createVNode(U)]),_:1}),S[10]||(S[10]=i.createElementVNode("div",{class:"ml"},"必须先选择一个工作表后,才能设置可执行的动作",-1))]))],64)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-e2d05e37"]])},Symbol.toStringTag,{value:"Module"})),Y8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"wechatDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送服务号消息是指向已关注公众号的微信用户发送模版消息。发送对象支持使用人员字段(通过微信授权注册的外部门户用户)或文本字段(存储微信公众号openid)。使用微信公众号模板消息需要组织后台绑定已认证的企业服务号,并在微信公众号后台开通“模板消息”功能。 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(eb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-46fa206d"]])},Symbol.toStringTag,{value:"Module"})),X8e={key:0,class:"node-title"},Z8e={key:1,class:"no-set"},J8e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"addNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",X8e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",Z8e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),Q8e={key:0},$8e={key:1,class:"no-set"},e6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"apiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.callApi.controlName,message:"请选择集成API"})),(r,o)=>t.node.config.callApi.controlName?(i.openBlock(),i.createElementBlock("div",Q8e," 调用API:"+i.toDisplayString(t.node.config.callApi.controlName),1)):(i.openBlock(),i.createElementBlock("div",$8e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),t6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"approverNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&t.node.config.selectNodeId&&t.node.config.workId,message:"请选择审批人或发起审批数据对象不能为空"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 审批人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode("连续多级主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),n6e={class:"ep-node-router"},r6e={key:0,class:"ep-condition-node-add"},o6e={class:"ep-node-router-box"},i6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"branchNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e;i.onMounted(async()=>{});const r=t,o=l=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(l,1):r("removeNode")},a=()=>{const l=xn($e[ei].defaultNode),s=n.node.conditionNodes.length;n.node.conditionNodes.splice(s-1,0,l)};return(l,s)=>{var c;return i.openBlock(),i.createElementBlock("div",n6e,[(c=n.node)!=null&&c.isBanch?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",r6e,"判断条件"))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:a}," 添加条件 "))],64)),i.createElementVNode("div",o6e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.node.conditionNodes,(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:"ep-node-router-col",key:d},[i.createVNode(Cb,{"is-view":n.isView,node:u,conditionNodes:n.node.conditionNodes,conditionIndex:d,onRemoveNode:f=>o(d)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),d==0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[s[0]||(s[0]=i.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),s[1]||(s[1]=i.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):i.createCommentVNode("",!0),d==n.node.conditionNodes.length-1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[s[2]||(s[2]=i.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),s[3]||(s[3]=i.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):i.createCommentVNode("",!0)]))),128))]),i.createVNode(Yh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-9fd02762"]])},Symbol.toStringTag,{value:"Module"})),a6e={key:0,class:"node-title"},l6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"buttonNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[e.node.config.buttonName?(i.openBlock(),i.createElementBlock("div",a6e,' 按钮 "'+i.toDisplayString(e.node.config.buttonName)+'" ',1)):i.createCommentVNode("",!0),n[0]||(n[0]=i.createElementVNode("div",{class:"remark"},"点击按钮后立即执行",-1))],64))}}),[["__scopeId","data-v-f5243367"]])},Symbol.toStringTag,{value:"Module"})),s6e={key:1,class:"ep-node-condition"},c6e={key:0,class:"node-title"},u6e={key:1,class:"no-set"},d6e={key:2,class:"node-title"},f6e={class:"remark"},p6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"conditionNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){var n,r;const t=e;return(r=(n=t.node)==null?void 0:n.config)!=null&&r.isBanch||i.inject(Rt).register(t.tempNodeId,()=>{var l,s;let a=!0;return t.node.isLastCondition||((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)===0&&(a=!1),{valid:a,message:"请选择条件"}}),(o,a)=>{var u,d,f,h,p,v,m,g;const l=i.resolveComponent("SuccessFilled"),s=i.resolveComponent("el-icon"),c=i.resolveComponent("CircleCloseFilled");return(d=(u=t.node)==null?void 0:u.config)!=null&&d.isBanch?(i.openBlock(),i.createElementBlock("div",{key:0,class:"branch-item",style:i.normalizeStyle((f=t.node.config)!=null&&f.isData?{color:"#01ca86"}:{color:"#f44336"})},[(h=t.node.config)!=null&&h.isData?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(l)]),_:1}),a[0]||(a[0]=i.createElementVNode("span",null,"有数据",-1))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(c)]),_:1}),a[1]||(a[1]=i.createElementVNode("span",null,"无数据",-1))],64))],4)):(i.openBlock(),i.createElementBlock("div",s6e,[((v=(p=t.node.config)==null?void 0:p.filter)==null?void 0:v.length)>0?(i.openBlock(),i.createElementBlock("div",c6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):t.node.isLastCondition?(i.openBlock(),i.createElementBlock("div",d6e,"其他条件进入此流程")):(i.openBlock(),i.createElementBlock("div",u6e," 设置此节点 ")),i.createElementVNode("div",f6e,[((g=(m=t.node.config)==null?void 0:m.filter)==null?void 0:g.length)>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode("筛选"+i.toDisplayString(e.node.config.filter.length)+"个字段",1)],64)):i.createCommentVNode("",!0)])]))}}}),[["__scopeId","data-v-df26e984"]])},Symbol.toStringTag,{value:"Module"})),h6e={key:0,class:"node-title"},g6e={key:1,class:"no-set"},m6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"delNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",h6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",g6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),y6e={key:0},v6e={key:1,class:"no-set"},b6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"dingNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",y6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",v6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),w6e={key:0,class:"node-title"},_6e={key:1,class:"no-set"},C6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"editNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",w6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",_6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),E6e={key:0},k6e={key:1,class:"no-set"},x6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"emailNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",E6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",k6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),N6e={key:0,class:"node-title"},S6e={key:1,class:"no-set"},D6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"}));function r(o){window.open(`/workflow/${o.procId}`)}return(o,a)=>{const l=i.resolveComponent("Link"),s=i.resolveComponent("el-icon");return e.node.config.procName?(i.openBlock(),i.createElementBlock("div",N6e,[i.createTextVNode(" 执行流程: "+i.toDisplayString(e.node.config.procName)+" ",1),e.node.config.procId?(i.openBlock(),i.createBlock(s,{key:0,size:"18",style:{color:"#1565c0"},onClick:a[0]||(a[0]=i.withModifiers(c=>r(e.node.config),["stop"]))},{default:i.withCtx(()=>[i.createVNode(l)]),_:1})):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",S6e,"设置此节点"))}}}),[["__scopeId","data-v-c87b9fba"]])},Symbol.toStringTag,{value:"Module"})),B6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"notifyNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&!!t.node.config.selectNodeId,message:"请选择抄送人和数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 抄送人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),O6e={key:0,class:"node-title"},A6e={key:1,class:"no-set"},V6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"oddNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",O6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",A6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),F6e={key:0,class:"node-title"},T6e={key:1,class:"no-set"},P6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"searchNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",F6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",T6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),j6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.selectNodeId,message:"请选择发起审批的数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,"发起人:触发者"))}})},Symbol.toStringTag,{value:"Module"})),I6e={key:0,class:"node-title"},L6e={key:1,class:"no-set"},R6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"summaryNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(h=>{const p=c.fieldList.some(v=>v.columnId===h.columnId);return p||u.push(h.columnComment||`字段ID: ${h.columnId}`),p}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`};const{summary:d}=t.node.config;if(!d)return{valid:!1,message:"请选择汇总方式"};if(!c.fieldList.some(h=>h.columnName===d))return{valid:!1,message:`汇总字段不存在: ${d}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",I6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",L6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),M6e={key:0},z6e={key:1,class:"no-set"},U6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"systemNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",M6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",z6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),H6e={class:"node-title"},W6e={class:"remark"},q6e={key:1,class:"no-set"},G6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);i.onMounted(async()=>{if(t.node.config.workId){const l=await n(t.node.config.workId);r.set(t.node.config.workId,l),t.node.config.workName=l.workName}}),o.register(t.tempNodeId,()=>{var l,s,c;if(!((l=t.node.config)!=null&&l.workName))return{valid:!1,message:"请选择工作表"};if(((c=(s=t.node.config)==null?void 0:s.filter)==null?void 0:c.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const u=r.get(t.node.config.workId),d=[];if(t.node.config.filter.filter(f=>{const h=u.fieldList.some(p=>p.columnId===f.columnId);return h||d.push(f.columnComment||`字段ID: ${f.columnId}`),h}),d.length>0)return{valid:!1,message:`以下字段不存在: ${d.join(", ")}`}}}return{valid:!0,message:"通过"}});const a=i.computed(()=>{switch(t.node.config.type){case"save":return"当新增或更新记录时";case"add":return"仅新增记录时";case"edit":return"仅更新记录时";case"del":return"删除记录时";default:return""}});return(l,s)=>e.node.config.workName?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",H6e,'工作表 "'+i.toDisplayString(e.node.config.workName)+'"',1),i.createElementVNode("div",W6e,i.toDisplayString(a.value),1)],64)):(i.openBlock(),i.createElementBlock("div",q6e,"设置此节点"))}}),[["__scopeId","data-v-a1ebfe82"]])},Symbol.toStringTag,{value:"Module"})),K6e={key:0},Y6e={key:1,class:"no-set"},X6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.start,message:"请选择开始时间"})),(r,o)=>e.node.config.start?(i.openBlock(),i.createElementBlock("div",K6e,"从 "+i.toDisplayString(t.node.config.start)+" 开始",1)):(i.openBlock(),i.createElementBlock("div",Y6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),Z6e={key:0,class:"node-title"},J6e={key:1,class:"no-set"},Q6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"uiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",Z6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",J6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),$6e={key:0},eNe={key:1,class:"no-set"},tNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"wechatNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",$6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",eNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"}));return LG});
|