dflow-designer 0.4.1 → 0.4.3
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/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -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 As(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,a=e.styleToHtml,l=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(d){return an.registerMenu(d)}),n&&n.forEach(function(d){return an.registerRenderElem(d)}),r&&an.registerRenderStyle(r),i&&i.forEach(function(d){return an.registerElemToHtml(d)}),a&&an.registerStyleToHtml(a),l&&l.forEach(function(d){return an.registerPreParseHtml(d)}),s&&s.forEach(function(d){return an.registerParseElemHtml(d)}),c&&an.registerParseStyleHtml(c),u&&an.registerPlugin(u)}Fge.forEach(function(e){return As(e)}),As(uye),As(jbe),As(G1e),As(IEe),As(x4e);var vU='<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>',bU={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"]}},D4e={hoverbarKeys:Ft(Ft({},bU),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};an.setEditorConfig(Ft(Ft({},D4e),{decorate:yU}));var B4e={hoverbarKeys:bU};an.setSimpleEditorConfig(Ft(Ft({},B4e),{decorate:yU}));var V4e={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:vU,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"]};an.setToolbarConfig(V4e);var A4e={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:vU,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function wU(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,i=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"?an.simpleEditorConfig:an.editorConfig,d=Ft(Ft({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return Pse({selector:n,config:Ft(Ft(Ft({},u),s),{hoverbarKeys:d}),content:i,html:a,plugins:an.plugins})}function _U(e){var t=e.selector,n=e.editor,r=e.config,i=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"?an.simpleToolbarConfig:an.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 F9(g,"data-w-e-toolbar",b)}(u,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=Lr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),m=new cA(f,v);return __.set(m,u),H0.set(u,m),m}(n,{selector:t,config:Ft(Ft({},s),i)});return c}an.setSimpleToolbarConfig(A4e);var O4e={};const F4e=Object.freeze(Object.defineProperty({__proto__:null,Boot:an,DomEditor:M,SlateEditor:B,SlateElement:ve,SlateLocation:Uee,SlateNode:se,SlatePath:Y,SlatePoint:Fe,SlateRange:ne,SlateText:he,SlateTransforms:Q,Toolbar:cA,createEditor:wU,createToolbar:_U,createUploader:CC,default:O4e,genModalButtonElems:Wl,genModalInputElems:lr,genModalTextareaElems:Bse,i18nAddResources:Kn,i18nChangeLanguage:ice,i18nGetResources:ace,t:ce},Symbol.toStringTag,{value:"Module"}));var T4e=Object.defineProperty,P4e=Object.defineProperties,j4e=Object.getOwnPropertyDescriptors,CU=Object.getOwnPropertySymbols,I4e=Object.prototype.hasOwnProperty,L4e=Object.prototype.propertyIsEnumerable,EU=(e,t,n)=>t in e?T4e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R4e=(e,t)=>{for(var n in t||(t={}))I4e.call(t,n)&&EU(e,n,t[n]);if(CU)for(var n of CU(t))L4e.call(t,n)&&EU(e,n,t[n]);return e},M4e=(e,t)=>P4e(e,j4e(t));function Ya(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
|
|
191
|
-
Please use '@${e}' event instead of props`,t}var kU=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const z4e=o.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=o.ref(null),r=o.shallowRef(null),i=o.ref(""),a=()=>{if(!n.value)return;const s=o.toRaw(e.defaultContent);wU({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:M4e(R4e({},e.defaultConfig),{onCreated(c){if(r.value=c,t.emit("onCreated",c),e.defaultConfig.onCreated){const u=Ya("onCreated");throw new Error(u)}},onChange(c){const u=c.getHtml();if(i.value=u,t.emit("update:modelValue",u),t.emit("onChange",c),e.defaultConfig.onChange){const d=Ya("onChange");throw new Error(d)}},onDestroyed(c){if(t.emit("onDestroyed",c),e.defaultConfig.onDestroyed){const u=Ya("onDestroyed");throw new Error(u)}},onMaxLength(c){if(t.emit("onMaxLength",c),e.defaultConfig.onMaxLength){const u=Ya("onMaxLength");throw new Error(u)}},onFocus(c){if(t.emit("onFocus",c),e.defaultConfig.onFocus){const u=Ya("onFocus");throw new Error(u)}},onBlur(c){if(t.emit("onBlur",c),e.defaultConfig.onBlur){const u=Ya("onBlur");throw new Error(u)}},customAlert(c,u){if(t.emit("customAlert",c,u),e.defaultConfig.customAlert){const d=Ya("customAlert");throw new Error(d)}},customPaste:(c,u)=>{if(e.defaultConfig.customPaste){const f=Ya("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 o.onMounted(()=>{a()}),o.watch(()=>e.modelValue,s=>{s!==i.value&&l(s)}),{box:n}}}),U4e={ref:"box",style:{height:"100%"}};function H4e(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",U4e,null,512)}var W4e=kU(z4e,[["render",H4e]]);const q4e=o.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=o.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)||_U({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return o.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),G4e={ref:"selector"};function K4e(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",G4e,null,512)}var Y4e=kU(q4e,[["render",K4e]]),xU={exports:{}};const X4e=Qq(F4e);(function(e,t){(function(n,r){e.exports=r(X4e)})(self,n=>(()=>{var r={857:s=>{s.exports=n}},i={};function a(s){var c=i[s];if(c!==void 0)return c.exports;var u=i[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:()=>V});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(O,R,T,U,Z){return{sel:O,data:R,children:T,text:U,elm:Z,key:R===void 0?void 0:R.key}}const u=Array.isArray;function d(O){return typeof O=="string"||typeof O=="number"||O instanceof String||O instanceof Number}function f(O,R,T){if(O.ns="http://www.w3.org/2000/svg",T!=="foreignObject"&&R!==void 0)for(let U=0;U<R.length;++U){const Z=R[U];if(typeof Z=="string")continue;const ie=Z.data;ie!==void 0&&f(ie,Z.children,Z.sel)}}function h(O,R,T){let U,Z,ie,G={};if(T!==void 0?(R!==null&&(G=R),u(T)?U=T:d(T)?Z=T.toString():T&&T.sel&&(U=[T])):R!=null&&(u(R)?U=R:d(R)?Z=R.toString():R&&R.sel?U=[R]:G=R),U!==void 0)for(ie=0;ie<U.length;++ie)d(U[ie])&&(U[ie]=c(void 0,void 0,void 0,U[ie],void 0));return O[0]!=="s"||O[1]!=="v"||O[2]!=="g"||O.length!==3&&O[3]!=="."&&O[3]!=="#"||f(G,U,O),c(O,G,U,Z,void 0)}const p={type:"attachment",renderElem:function(O,R,T){var U=T.isDisabled(),Z=s.DomEditor.isNodeSelected(T,O),ie=O,G=ie.fileName,J=G===void 0?"":G,ge=ie.link,ae=ge===void 0?"":ge;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:Z&&!U?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:U?"pointer":"inherit"},on:{click:function(){U&&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"}}),J])}};function v(O){return O!==null&&typeof O=="object"&&"constructor"in O&&O.constructor===Object}function m(O={},R={}){Object.keys(R).forEach(T=>{O[T]===void 0?O[T]=R[T]:v(R[T])&&v(O[T])&&Object.keys(R[T]).length>0&&m(O[T],R[T])})}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 O=typeof document<"u"?document:{};return m(O,g),O}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:O=>typeof setTimeout>"u"?(O(),null):setTimeout(O,0),cancelAnimationFrame(O){typeof setTimeout<"u"&&clearTimeout(O)}};function w(){const O=typeof window<"u"?window:{};return m(O,y),O}class _ extends Array{constructor(R){typeof R=="number"?super(R):(super(...R||[]),function(T){const U=T.__proto__;Object.defineProperty(T,"__proto__",{get:()=>U,set(Z){U.__proto__=Z}})}(this))}}function E(O,R){const T=w(),U=b();let Z=[];if(!R&&O instanceof _)return O;if(!O)return new _(Z);if(typeof O=="string"){const ie=O.trim();if(ie.indexOf("<")>=0&&ie.indexOf(">")>=0){let G="div";ie.indexOf("<li")===0&&(G="ul"),ie.indexOf("<tr")===0&&(G="tbody"),ie.indexOf("<td")!==0&&ie.indexOf("<th")!==0||(G="tr"),ie.indexOf("<tbody")===0&&(G="table"),ie.indexOf("<option")===0&&(G="select");const J=U.createElement(G);J.innerHTML=ie;for(let ge=0;ge<J.childNodes.length;ge+=1)Z.push(J.childNodes[ge])}else Z=function(G,J){if(typeof G!="string")return[G];const ge=[],ae=J.querySelectorAll(G);for(let ee=0;ee<ae.length;ee+=1)ge.push(ae[ee]);return ge}(O.trim(),R||U)}else if(O.nodeType||O===T||O===U)Z.push(O);else if(Array.isArray(O)){if(O instanceof _)return O;Z=O}return new _(function(ie){const G=[];for(let J=0;J<ie.length;J+=1)G.indexOf(ie[J])===-1&&G.push(ie[J]);return G}(Z))}function S(...O){let[R,T,U,Z]=O;function ie(ae){const ee=ae.target;if(!ee)return;const me=ae.target.dom7EventData||[];if(me.indexOf(ae)<0&&me.unshift(ae),E(ee).is(T))U.apply(ee,me);else{const it=E(ee).parents();for(let Ne=0;Ne<it.length;Ne+=1)E(it[Ne]).is(T)&&U.apply(it[Ne],me)}}function G(ae){const ee=ae&&ae.target&&ae.target.dom7EventData||[];ee.indexOf(ae)<0&&ee.unshift(ae),U.apply(this,ee)}typeof O[1]=="function"&&([R,U,Z]=O,T=void 0),Z||(Z=!1);const J=R.split(" ");let ge;for(let ae=0;ae<this.length;ae+=1){const ee=this[ae];if(T)for(ge=0;ge<J.length;ge+=1){const me=J[ge];ee.dom7LiveListeners||(ee.dom7LiveListeners={}),ee.dom7LiveListeners[me]||(ee.dom7LiveListeners[me]=[]),ee.dom7LiveListeners[me].push({listener:U,proxyListener:ie}),ee.addEventListener(me,ie,Z)}else for(ge=0;ge<J.length;ge+=1){const me=J[ge];ee.dom7Listeners||(ee.dom7Listeners={}),ee.dom7Listeners[me]||(ee.dom7Listeners[me]=[]),ee.dom7Listeners[me].push({listener:U,proxyListener:G}),ee.addEventListener(me,G,Z)}}return this}function C(){for(let O=0;O<this.length;O+=1)this[O].style.display="none";return this}function k(...O){let R;const T=b();for(let U=0;U<O.length;U+=1){R=O[U];for(let Z=0;Z<this.length;Z+=1)if(typeof R=="string"){const ie=T.createElement("div");for(ie.innerHTML=R;ie.firstChild;)this[Z].appendChild(ie.firstChild)}else if(R instanceof _)for(let ie=0;ie<R.length;ie+=1)this[Z].appendChild(R[ie]);else this[Z].appendChild(R)}return this}E.fn=_.prototype;const N="resize scroll".split(" ");function A(O){return function(...R){if(R[0]===void 0){for(let T=0;T<this.length;T+=1)N.indexOf(O)<0&&(O in this[T]?this[T][O]():E(this[T]).trigger(O));return this}return this.on(O,...R)}}const F=A("click"),I=E;C&&(I.fn.hide=C),k&&(I.fn.append=k),F&&(I.fn.click=F),S&&(I.fn.on=S);const W=I;var P=function(){return P=Object.assign||function(O){for(var R,T=1,U=arguments.length;T<U;T++)for(var Z in R=arguments[T])Object.prototype.hasOwnProperty.call(R,Z)&&(O[Z]=R[Z]);return O},P.apply(this,arguments)},H=function(O,R,T,U){return new(T||(T=Promise))(function(Z,ie){function G(ae){try{ge(U.next(ae))}catch(ee){ie(ee)}}function J(ae){try{ge(U.throw(ae))}catch(ee){ie(ee)}}function ge(ae){var ee;ae.done?Z(ae.value):(ee=ae.value,ee instanceof T?ee:new T(function(me){me(ee)})).then(G,J)}ge((U=U.apply(O,[])).next())})},X=function(O,R){var T,U,Z,ie,G={label:0,sent:function(){if(1&Z[0])throw Z[1];return Z[1]},trys:[],ops:[]};return ie={next:J(0),throw:J(1),return:J(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function J(ge){return function(ae){return function(ee){if(T)throw new TypeError("Generator is already executing.");for(;G;)try{if(T=1,U&&(Z=2&ee[0]?U.return:ee[0]?U.throw||((Z=U.return)&&Z.call(U),0):U.next)&&!(Z=Z.call(U,ee[1])).done)return Z;switch(U=0,Z&&(ee=[2&ee[0],Z.value]),ee[0]){case 0:case 1:Z=ee;break;case 4:return G.label++,{value:ee[1],done:!1};case 5:G.label++,U=ee[1],ee=[0];continue;case 7:ee=G.ops.pop(),G.trys.pop();continue;default:if(!((Z=(Z=G.trys).length>0&&Z[Z.length-1])||ee[0]!==6&&ee[0]!==2)){G=0;continue}if(ee[0]===3&&(!Z||ee[1]>Z[0]&&ee[1]<Z[3])){G.label=ee[1];break}if(ee[0]===6&&G.label<Z[1]){G.label=Z[1],Z=ee;break}if(Z&&G.label<Z[2]){G.label=Z[2],G.ops.push(ee);break}Z[2]&&G.ops.pop(),G.trys.pop();continue}ee=R.call(O,G)}catch(me){ee=[6,me],U=0}finally{T=Z=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}([ge,ae])}}};function L(O){return O.getMenuConfig("uploadAttachment")}function j(O,R,T){if(R&&T){O.restoreSelection();var U={type:"attachment",fileName:R,link:T,children:[{text:""}]};O.insertNode(U),O.move(1);var Z=L(O).onInsertedAttachment;Z&&Z(U)}}function $(O,R){return H(this,void 0,void 0,function(){var T,U,Z,ie;return X(this,function(G){switch(G.label){case 0:return T=function(J){var ge=oe.get(J);if(ge!=null)return ge;var ae=L(J),ee=ae.onSuccess,me=ae.onProgress,it=ae.onFailed,Ne=ae.customInsert,Ke=ae.onError;return ge=(0,s.createUploader)(P(P({},ae),{onProgress:function(Me){J.showProgressBar(Me),me&&me(Me)},onSuccess:function(Me,lt){if(Ne)Ne(lt,Me,function(ln,Zn){return j(J,ln,Zn)});else{var Se=lt.errno,Tt=Se===void 0?1:Se,xn=lt.data,Xn=xn===void 0?{}:xn;if(Tt!==0)return console.error("'".concat(Me.name,"' upload failed"),lt),void it(Me,lt);var Rt=Xn.url,mn=Rt===void 0?"":Rt;j(J,Me.name,mn),ee(Me,lt)}},onError:function(Me,lt,Se){var Tt=Me.name;console.error("'".concat(Tt," upload error"),lt,Se),Ke&&Ke(Me,lt,Se)}})),oe.set(J,ge),ge}(O),U=R.name,Z=R.type,ie=R.size,T.addFile({name:U,type:Z,size:ie,data:R}),[4,T.upload()];case 1:return G.sent(),[2]}})})}var oe=new WeakMap;const D=function(){function O(){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 O.prototype.getValue=function(R){return""},O.prototype.isActive=function(R){return!1},O.prototype.exec=function(R,T){var U=this.getMenuConfig(R),Z=U.allowedFileTypes,ie=Z===void 0?[]:Z,G=U.customBrowseAndUpload;if(G)G(function(ee,me){return j(R,ee,me)});else{var J="";ie.length>0&&(J='accept="'.concat(ie.join(", "),'"'));var ge=W("body"),ae=W('<input type="file" '.concat(J," multiple/>"));ae.hide(),ge.append(ae),ae.click(),ae.on("change",function(){var ee=ae[0].files;(function(me,it){var Ne,Ke;H(this,void 0,void 0,function(){var Me,lt,Se,Tt,xn,Xn;return X(this,function(Rt){switch(Rt.label){case 0:if(it==null)return[2];Me=Array.prototype.slice.call(it),lt=L(me).customUpload,Rt.label=1;case 1:Rt.trys.push([1,9,10,15]),Se=function(mn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ln,Zn=mn[Symbol.asyncIterator];return Zn?Zn.call(mn):(mn=typeof __values=="function"?__values(mn):mn[Symbol.iterator](),ln={},Br("next"),Br("throw"),Br("return"),ln[Symbol.asyncIterator]=function(){return this},ln);function Br(sn){ln[sn]=mn[sn]&&function(cn){return new Promise(function(Nn,On){(function(un,fr,Os,Jo){Promise.resolve(Jo).then(function(yo){un({value:yo,done:Os})},fr)})(Nn,On,(cn=mn[sn](cn)).done,cn.value)})}}}(Me),Rt.label=2;case 2:return[4,Se.next()];case 3:return(Tt=Rt.sent()).done?[3,8]:(xn=Tt.value,lt?[4,lt(xn,function(mn,ln){return j(me,mn,ln)})]:[3,5]);case 4:return Rt.sent(),[3,7];case 5:return[4,$(me,xn)];case 6:Rt.sent(),Rt.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return Xn=Rt.sent(),Ne={error:Xn},[3,15];case 10:return Rt.trys.push([10,,13,14]),Tt&&!Tt.done&&(Ke=Se.return)?[4,Ke.call(Se)]:[3,12];case 11:Rt.sent(),Rt.label=12;case 12:return[3,14];case 13:if(Ne)throw Ne.error;return[7];case 14:return[7];case 15:return[2]}})})})(R,ee)})}},O.prototype.isDisabled=function(R){var T=R.selection;if(T==null||s.SlateRange.isExpanded(T))return!0;var U=s.DomEditor.getSelectedElems(R);return!!U.some(function(Z){return R.isVoid(Z)})||!!U.some(function(Z){return s.DomEditor.getNodeType(Z)==="pre"})},O.prototype.getMenuConfig=function(R){return R.getMenuConfig("uploadAttachment")},O}(),x=function(){function O(){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 O.prototype.getValue=function(R){var T=this.getSelectedElem(R);return T==null?"":T.link},O.prototype.isActive=function(R){return!1},O.prototype.exec=function(R,T){T&&typeof T=="string"&&window.open(T,"_blank")},O.prototype.isDisabled=function(R){var T=R.selection;return T==null||!!s.SlateRange.isExpanded(T)||this.getSelectedElem(R)==null},O.prototype.getSelectedElem=function(R){var T=s.DomEditor.getSelectedNodeByType(R,"attachment");return T??null},O}(),V={editorPlugin:function(O){var R=O.isInline,T=O.isVoid,U=O;return U.isInline=function(Z){return s.DomEditor.getNodeType(Z)==="attachment"||R(Z)},U.isVoid=function(Z){return s.DomEditor.getNodeType(Z)==="attachment"||T(Z)},U},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(O,R){var T=O,U=T.link,Z=U===void 0?"":U,ie=T.fileName,G=ie===void 0?"":ie;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(Z,'" download="').concat(G,'">').concat(G,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(O,R,T){return{type:"attachment",link:O.getAttribute("href")||"",fileName:O.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new D},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(O){return O},onProgress:function(O){},onSuccess:function(O,R){},onFailed:function(O,R){},onError:function(O,R,T){},onInsertedAttachment:function(O){}}},{key:"downloadAttachment",factory:function(){return new x}}]}})(),l})())})(xU);var Z4e=xU.exports;const J4e=Jq(Z4e),Q4e=["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"],NU={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"},$4e=()=>({variables:NU,getPrefixClass:t=>`${NU.namespace}-${t}`}),tb=ZU(tt(o.defineComponent({name:"WangEditor",__name:"index",props:o.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:o.mergeModels(["imageUpload","imageBeforeUpload","imageProgress","imageSuccess","imageFailed","imageError","videoUpload","fileBeforeUpload","fileUpload","onPaste","onCreated"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const{getPrefixClass:r}=$4e(),i=r("wang-editor"),a=e,l=n,s=o.useModel(e,"modelValue"),c=o.shallowRef(),u=o.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=o.computed(()=>({toolbarKeys:a.toolbarKeys.length>0?a.toolbarKeys:Q4e,excludeKeys:a.excludeKeys,insertKeys:{index:22,keys:["uploadAttachment"]}}));o.watch(()=>a.disabled,()=>{o.unref(c)&&(a.disabled?o.unref(c).disable():o.unref(c).enable())}),o.onMounted(()=>{try{an.registerModule(J4e)}catch{}});const f=p=>{c.value=p,a.disabled?o.unref(c).disable():o.unref(c).enable(),l("onCreated",p)},h=(p,v)=>{l("onPaste",p,v)};return o.onBeforeUnmount(()=>{o.unref(c)&&o.unref(c).destroy()}),t({editor:c}),(p,v)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([o.unref(i),{disabled:p.disabled}])},[p.hideToolBar?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Y4e),{key:0,class:o.normalizeClass(`${o.unref(i)}__toolbar`),editor:c.value,defaultConfig:d.value,mode:p.mode},null,8,["class","editor","defaultConfig","mode"])),o.createVNode(o.unref(W4e),o.mergeProps({class:`${o.unref(i)}__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"]])),exe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"dingDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject("showUser");function r(){n()}const i=o.inject("getUserIds");o.watch(i,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=o.resolveComponent("el-form-item"),u=o.resolveComponent("el-tag"),d=o.resolveComponent("el-button"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[s[1]||(s[1]=o.createElementVNode("div",{class:"header"}," 发送钉钉消息是指以企业工作通知会话中某个微应用的名义推送到员工的通知消息 ",-1)),o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(c,{label:"通知内容"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),o.createVNode(c,{label:"通知人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(h,p)=>(o.openBlock(),o.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(d,{icon:o.unref($n),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-29c0611f"]])},Symbol.toStringTag,{value:"Module"})),txe={style:{float:"left"}},nxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},rxe={key:0,class:"no-work"},oxe={key:1,class:"config-detail"},ixe={class:"config-item"},axe={class:"children-query",style:{"margin-top":"20px"}},lxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},sxe={style:{flex:"1"}},cxe={class:"flex-both"},uxe={class:"flex"},dxe={class:"txt-label"},fxe={class:"field"},pxe={class:"condition-select"},hxe={key:0,class:"function-tag"},gxe={class:"box"},mxe={class:"ellipsis table-name"},yxe={class:"field"},vxe={class:"field-name ellipsis"},bxe={style:{margin:"20px 0"}},wxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},_xe={class:"field-list"},Cxe=["onClick"],Exe={class:"field"},kxe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"editDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.ref(""),i=o.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","loop"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(At(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","loop"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(At(y,v)){l(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&l(p.childNode,v,m),m}const s=o.computed(()=>{const p=[];return a(n.value.nodeConfig,t.node.nodeId,p),p}),c=o.computed(()=>{const p=[];return p.push(Ar.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=Sn(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=o.resolveComponent("el-option"),g=o.resolveComponent("el-select"),b=o.resolveComponent("el-form-item"),y=o.resolveComponent("el-form"),w=o.resolveComponent("InfoFilled"),_=o.resolveComponent("el-icon"),E=o.resolveComponent("Close"),S=o.resolveComponent("el-input"),C=o.resolveComponent("el-button"),k=o.resolveComponent("el-popover");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(y,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(b,{label:"选择更新对象"},{default:o.withCtx(()=>[o.createVNode(g,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":v[0]||(v[0]=N=>t.config.selectNodeId=N),filterable:"",onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(N,A)=>(o.openBlock(),o.createBlock(m,{key:A,label:N.nodeName,value:N.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",txe,o.toDisplayString(N.nodeName),1),o.createElementVNode("span",nxe,' 工作表 "'+o.toDisplayString(N.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),v[6]||(v[6]=o.createElementVNode("div",{class:"title"},"更新字段",-1)),t.config.selectNodeId?(o.openBlock(),o.createElementBlock("div",oxe,[o.createElementVNode("div",ixe,[o.createElementVNode("div",axe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(N,A)=>{var F,I;return o.openBlock(),o.createElementBlock(o.Fragment,{key:A},[N.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",lxe,[o.createElementVNode("div",sxe,[o.createElementVNode("div",cxe,[o.createElementVNode("div",uxe,[o.createElementVNode("span",dxe,[o.createElementVNode("span",fxe," ["+o.toDisplayString(o.unref(Te)(((F=N==null?void 0:N.fieldAttr)==null?void 0:F.type)||N.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(N.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(g,{modelValue:N.compare,"onUpdate:modelValue":W=>N.compare=W,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(m,{label:"设为",value:"eq"}),o.createVNode(m,{label:"添加",value:"add"}),o.createVNode(m,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(_,{class:"close-icon",onClick:W=>f(A)},{default:o.withCtx(()=>[o.createVNode(E)]),_:2},1032,["onClick"])]),o.createElementVNode("span",pxe,[N.nodeId?(o.openBlock(),o.createElementBlock("div",hxe,[o.createElementVNode("div",gxe,[o.createElementVNode("div",mxe,[o.createElementVNode("span",yxe," ["+o.toDisplayString(o.unref(Te)(N==null?void 0:N.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(N.nodeName),1),v[3]||(v[3]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),v[4]||(v[4]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",vxe,o.toDisplayString(N.fieldValueName),1)]),o.createVNode(_,{onClick:W=>h(N)},{default:o.withCtx(()=>[o.createVNode(E)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((I=N==null?void 0:N.fieldAttr)==null?void 0:I.type)?(o.openBlock(),o.createBlock(g,{key:0,modelValue:N.fieldValue,"onUpdate:modelValue":W=>N.fieldValue=W,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(N.fieldAttr.enum,(W,P)=>(o.openBlock(),o.createBlock(m,{key:P,label:W.label,value:W.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(S,{key:1,modelValue:N.fieldValue,"onUpdate:modelValue":W=>N.fieldValue=W,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(p.$slots,"action",{item:N,varList:c.value},void 0,!0)])])])):o.createCommentVNode("",!0)],64)}),128))]),o.createElementVNode("div",bxe,[o.createVNode(k,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(C,{icon:o.unref($n),text:""},{default:o.withCtx(()=>v[5]||(v[5]=[o.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",wxe,[o.createVNode(S,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":v[1]||(v[1]=N=>r.value=N)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",_xe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(N,A)=>{var F;return o.openBlock(),o.createElementBlock(o.Fragment,{key:A},[N.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"field-item",onClick:I=>d(N)},[o.createElementVNode("span",Exe," ["+o.toDisplayString(o.unref(Te)(((F=N==null?void 0:N.fieldAttr)==null?void 0:F.type)||N.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(N.columnComment),1)],8,Cxe)):o.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(o.openBlock(),o.createElementBlock("div",rxe,[o.createVNode(_,{size:"17"},{default:o.withCtx(()=>[o.createVNode(w)]),_:1}),v[2]||(v[2]=o.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-f041cd46"]])},Symbol.toStringTag,{value:"Module"})),xxe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"emailDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=ref(0),r=o.inject("showUser");function i(){n.value=0,r()}function a(){n.value=1,r()}const l=o.inject("getUserIds");o.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=o.resolveComponent("el-tag"),f=o.resolveComponent("el-button"),h=o.resolveComponent("el-form-item"),p=o.resolveComponent("el-input"),v=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[u[2]||(u[2]=o.createElementVNode("div",{class:"header"},"仅支持通过代发邮件",-1)),o.createVNode(v,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(h,{label:"收件人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(m,g)=>(o.openBlock(),o.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.accounts,g),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(f,{icon:o.unref($n),circle:"",size:"small",onClick:i},null,8,["icon"])])]),_:1}),o.createVNode(h,{label:"抄送人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.notifys,(m,g)=>(o.openBlock(),o.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.notify,g),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(f,{icon:o.unref($n),circle:"",size:"small",onClick:a},null,8,["icon"])])]),_:1}),o.createVNode(h,{label:"主题"},{default:o.withCtx(()=>[o.createVNode(p,{modelValue:t.config.title,"onUpdate:modelValue":u[0]||(u[0]=m=>t.config.title=m)},null,8,["modelValue"])]),_:1}),o.createVNode(h,{label:"正文"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{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"})),Nxe={class:"no-work",style:{width:"100%","line-height":"14px"}},Sxe={style:{color:"#1565c0",cursor:"pointer"}},Dxe={style:{float:"left"}},Bxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Vxe={class:"sub-title"},Axe={style:{color:"#1e88e5 !important"}},Oxe={class:"no-work"},Fxe={class:"ml"},Txe={key:0,style:{color:"red"}},Pxe={key:1},jxe={class:"config-detail"},Ixe={class:"config-item"},Lxe={class:"children-query",style:{"margin-top":"20px"}},Rxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Mxe={style:{flex:"1"}},zxe={class:"flex-both"},Uxe={class:"flex"},Hxe={class:"txt-label"},Wxe={class:"field"},qxe={class:"condition-select"},Gxe={key:0,class:"function-tag"},Kxe={class:"box"},Yxe={class:"ellipsis table-name"},Xxe={class:"field"},Zxe={class:"field-name ellipsis"},Jxe={style:{margin:"20px 0"}},Qxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},$xe={class:"field-list"},eNe=["onClick"],tNe={class:"field"},nNe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"flowDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.ref(""),i=o.computed(()=>{var k,N;const C=r.value.trim().toLowerCase();return(N=(k=t.config)==null?void 0:k.fields)==null?void 0:N.filter(A=>[A.columnName,A.columnComment].some(F=>String(F||"").toLowerCase().includes(C)))});function a(C,k,N=[]){if(C.nodeId===k)return N;["odd","search","add","button","table","loop"].includes(C.nodeType)&&N.push(C);let F=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const I of C.conditionNodes)if(At(I,k)){a(I.childNode,k,N),F=!0;break}}return!F&&C.childNode&&a(C.childNode,k,N),N}const l=o.computed(()=>{const C=[];return a(n.value.nodeConfig,t.node.nodeId,C),C}),s=o.inject("getFlowFun"),c=o.inject(er),u=o.inject("delProcFun"),d=o.inject("getParentFlowFun"),f=o.ref([]);async function h(){f.value=await s(t.config.workId)}h(),t.config.procId||(t.config.procId=$a());const p=o.computed(()=>{const C=[];C.push(Ar.defaultNode);const k=l.value.find(N=>N.nodeId===t.config.selectNodeId);return k&&C.push(k),C});async function v(){y();const C=l.value.find(k=>k.nodeId===t.config.selectNodeId);C&&(t.config.procId||(t.config.procId=$a()),t.config.nodeType=C.nodeType,t.config.workId=C.config.workId,t.config.workName=C.config.workName,t.config.fields=C.config.fields,h())}function m(C){C.compare="eq",t.config.params.push(C)}function g(C){t.config.params.splice(C,1)}function b(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}function y(){t.config.procId=$a(),t.config.procName="子流程"}function w(C){t.config.procId=C.procId,t.config.procName=C.procName}const _=o.ref([]);async function E(){if(t.config.workId){const k=await c(t.config.workId);k&&(t.config.fields=k.fieldList,t.config.workName=k.workName)}const C=await d(t.config.procId,t.node.nodeId,t.node.selectNodeId);C&&(t.config.procName=C.config.procName,_.value=C==null?void 0:C.parentProc)}E();async function S(C,k){await u({parentProc:C,...k,nodeId:t.node.nodeId}),E()}return(C,k)=>{const N=o.resolveComponent("el-form-item"),A=o.resolveComponent("Close"),F=o.resolveComponent("el-icon"),I=o.resolveComponent("el-form"),W=o.resolveComponent("el-option"),P=o.resolveComponent("el-select"),H=o.resolveComponent("el-radio"),X=o.resolveComponent("el-radio-group"),L=o.resolveComponent("arrow-down"),j=o.resolveComponent("el-dropdown-item"),$=o.resolveComponent("el-dropdown-menu"),oe=o.resolveComponent("el-dropdown"),D=o.resolveComponent("el-input"),x=o.resolveComponent("el-button"),V=o.resolveComponent("el-popover");return o.openBlock(),o.createElementBlock("div",null,[o.unref(n).procType==="flow"?(o.openBlock(),o.createBlock(I,{key:0,model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(N,{label:"数据源"},{default:o.withCtx(()=>[o.createTextVNode(" 工作表: "+o.toDisplayString(t.config.workName),1)]),_:1}),o.createVNode(N,{label:"被以下工作流触发"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.value,O=>(o.openBlock(),o.createElementBlock("div",Nxe,[o.createTextVNode(o.toDisplayString(O.procName)+" ",1),o.createElementVNode("span",Sxe,[o.createVNode(F,{onClick:R=>S(O,t.config)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])]))),256))]),_:1})]),_:1},8,["model"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(I,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(N,{label:"选择数据对象"},{default:o.withCtx(()=>[o.createVNode(P,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":k[0]||(k[0]=O=>t.config.selectNodeId=O),filterable:"",onChange:v},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(O,R)=>(o.openBlock(),o.createBlock(W,{key:R,label:O.nodeName,value:O.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",Dxe,o.toDisplayString(O.nodeName),1),o.createElementVNode("span",Bxe,' 工作表 "'+o.toDisplayString(O.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t.config.nodeType==="odd"?(o.openBlock(),o.createBlock(N,{key:0,label:"多条数据执行方式"},{default:o.withCtx(()=>[k[7]||(k[7]=o.createElementVNode("span",{class:"remark"}," 您选择了多条数据对象,将根据数据的条数执行多条子流程 ",-1)),o.createVNode(X,{modelValue:e.config.oddType,"onUpdate:modelValue":k[1]||(k[1]=O=>e.config.oddType=O)},{default:o.withCtx(()=>[o.createVNode(H,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>k[3]||(k[3]=[o.createTextVNode("并行")])),_:1}),k[5]||(k[5]=o.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将同时执行各自的流程。即便某条子流程运行中止,也不影响其他子流程的执行。 ",-1)),o.createVNode(H,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>k[4]||(k[4]=[o.createTextVNode("逐条执行")])),_:1}),k[6]||(k[6]=o.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将依次执行流程。每条子流程需要等前一条子流程通过后再开始触发 ",-1))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["model"]),o.createElementVNode("div",Vxe,[k[10]||(k[10]=o.createElementVNode("span",null,"执行子流程",-1)),o.createVNode(oe,null,{dropdown:o.withCtx(()=>[o.createVNode($,null,{default:o.withCtx(()=>[o.createVNode(j,{onClick:y},{default:o.withCtx(()=>k[9]||(k[9]=[o.createTextVNode("清除选择")])),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(O,R)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:R},[R===0?(o.openBlock(),o.createBlock(j,{key:0,divided:"",onClick:T=>w(O)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(O.procName),1)]),_:2},1032,["onClick"])):(o.openBlock(),o.createBlock(j,{key:1,onClick:T=>w(O)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(O.procName),1)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",Axe,[k[8]||(k[8]=o.createTextVNode(" 选择已有流程 ")),o.createVNode(F,{class:"el-icon--right"},{default:o.withCtx(()=>[o.createVNode(L)]),_:1})])]),_:1})]),o.createElementVNode("div",Oxe,[o.createElementVNode("div",Fxe,[!t.config.procName||t.config.procName==="子流程"?(o.openBlock(),o.createElementBlock("span",Txe,"节点保存后,将自动创建一个新的子流程(新建)")):(o.openBlock(),o.createElementBlock("span",Pxe,o.toDisplayString(t.config.procName),1))])]),o.createElementVNode("div",jxe,[o.createElementVNode("div",Ixe,[o.createElementVNode("div",Lxe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.params,(O,R)=>{var T,U;return o.openBlock(),o.createElementBlock(o.Fragment,{key:R},[O.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",Rxe,[o.createElementVNode("div",Mxe,[o.createElementVNode("div",zxe,[o.createElementVNode("div",Uxe,[o.createElementVNode("span",Hxe,[o.createElementVNode("span",Wxe," ["+o.toDisplayString(o.unref(Te)(((T=O==null?void 0:O.fieldAttr)==null?void 0:T.type)||O.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(O.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(P,{modelValue:O.compare,"onUpdate:modelValue":Z=>O.compare=Z,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(W,{label:"设为",value:"eq"}),o.createVNode(W,{label:"添加",value:"add"}),o.createVNode(W,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(F,{class:"close-icon",onClick:Z=>g(R)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])]),o.createElementVNode("span",qxe,[O.nodeId?(o.openBlock(),o.createElementBlock("div",Gxe,[o.createElementVNode("div",Kxe,[o.createElementVNode("div",Yxe,[o.createElementVNode("span",Xxe," ["+o.toDisplayString(o.unref(Te)(O==null?void 0:O.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(O.nodeName),1),k[11]||(k[11]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),k[12]||(k[12]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",Zxe,o.toDisplayString(O.fieldValueName),1)]),o.createVNode(F,{onClick:Z=>b(O)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((U=O==null?void 0:O.fieldAttr)==null?void 0:U.type)?(o.openBlock(),o.createBlock(P,{key:0,modelValue:O.fieldValue,"onUpdate:modelValue":Z=>O.fieldValue=Z,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(O.fieldAttr.enum,(Z,ie)=>(o.openBlock(),o.createBlock(W,{key:ie,label:Z.label,value:Z.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(D,{key:1,modelValue:O.fieldValue,"onUpdate:modelValue":Z=>O.fieldValue=Z,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(C.$slots,"action",{item:O,varList:p.value},void 0,!0)])])])):o.createCommentVNode("",!0)],64)}),128))]),o.createElementVNode("div",Jxe,[o.createVNode(V,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(x,{icon:o.unref($n),text:""},{default:o.withCtx(()=>k[13]||(k[13]=[o.createTextVNode("添加参数")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",Qxe,[o.createVNode(D,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":k[2]||(k[2]=O=>r.value=O)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",$xe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(O,R)=>{var T;return o.openBlock(),o.createElementBlock(o.Fragment,{key:R},[O.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"field-item",onClick:U=>m(O)},[o.createElementVNode("span",tNe," ["+o.toDisplayString(o.unref(Te)(((T=O==null?void 0:O.fieldAttr)==null?void 0:T.type)||O.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(O.columnComment),1)],8,eNe)):o.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])],64))])}}}),[["__scopeId","data-v-2ba5426e"]])},Symbol.toStringTag,{value:"Module"})),rNe={class:"condition-select"},oNe={key:0,class:"function-tag"},iNe={class:"box"},aNe={class:"ellipsis table-name"},lNe={class:"field"},sNe={class:"field-name ellipsis"},cNe={class:"no-work",style:{width:"100%","line-height":"14px"}},uNe={style:{color:"#1565c0",cursor:"pointer"}},dNe={class:"condition-select"},fNe={key:0,class:"function-tag"},pNe={class:"box"},hNe={class:"ellipsis table-name"},gNe={class:"field"},mNe={class:"field-name ellipsis"},yNe={key:0,class:"config-detail"},vNe={class:"config-item"},bNe={class:"children-query",style:{"margin-top":"20px"}},wNe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},_Ne={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},CNe={style:{flex:"1"}},ENe={class:"flex-both"},kNe={class:"flex"},xNe={class:"txt-label"},NNe={class:"field"},SNe={class:"condition-select"},DNe={key:0,class:"function-tag"},BNe={class:"box"},VNe={class:"ellipsis table-name"},ANe={class:"field"},ONe={class:"field-name ellipsis"},FNe={style:{margin:"20px 0"}},TNe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},PNe={class:"field-list"},jNe=["onClick"],INe={class:"field"},LNe={style:{display:"flex",width:"100%"}},RNe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"loopDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.ref(""),i=o.computed(()=>{var S,C;const E=r.value.trim().toLowerCase();return(C=(S=t.config)==null?void 0:S.fields)==null?void 0:C.filter(k=>[k.columnName,k.columnComment].some(N=>String(N||"").toLowerCase().includes(E)))}),a=o.inject("getParentLoopFun"),l=o.inject("delProcFun");t.config.procId||(t.config.procId=$a());function s(E,S,C=[]){if(E.nodeId===S)return C;["search","flow","add","button","table","api","summary","loop"].includes(E.nodeType)&&C.push(E);let N=!1;if(E.nodeType==="router"&&E.conditionNodes){for(const A of E.conditionNodes)if(At(A,S)){s(A.childNode,S,C),N=!0;break}}return!N&&E.childNode&&s(E.childNode,S,C),C}const c=o.computed(()=>{const E=[];return E.push(Ar.defaultNode),s(n.value.nodeConfig,t.node.nodeId,E),E}),u=E=>t.config.type==="count"?E<3:E===0;function d(){t.config.fields.push({columnName:"",columnComment:"",type:"Text",fieldValue:""})}function f(E){t.config.fields.splice(E,1)}function h(E){E.nodeId="",E.nodeName="",E.fieldValue=void 0,E.fieldValueName=""}function p(E){t.config.type==="count"?t.config.fields=[{columnName:"index",columnComment:"循环开始值",type:"Number",fieldValue:1},{columnName:"end",columnComment:"循环结束值",type:"Number",fieldValue:1},{columnName:"step",columnComment:"循环步长",type:"Number",fieldValue:1}]:t.config.fields=[{columnName:"index",columnComment:"循环开始值",type:"Number",fieldValue:1}]}const v=o.ref("and");function m(){t.config.filter.forEach(E=>{E.join=v.value})}function g(E){E.join=v.value,E.compare=10,t.config.filter.push({...E})}function b(E){t.config.filter.splice(E,1)}const y=o.ref([]);async function w(){const E=await a(t.config.procId,t.node.nodeId);if(E&&(t.config.procName=E.config.procName,y.value=E==null?void 0:E.parentProc,n.value.procType==="loop"&&E.parentNode)){const S=typeof E.parentNode.config=="string"?JSON.parse(E.parentNode.config):{...E.parentNode.config};t.config.filter=S.filter||[],t.config.fields=S.fields||[]}}w();async function _(E,S){await l({parentProc:E,...S,nodeId:t.node.nodeId}),w()}return(E,S)=>{const C=o.resolveComponent("el-form-item"),k=o.resolveComponent("el-table-column"),N=o.resolveComponent("el-table"),A=o.resolveComponent("Close"),F=o.resolveComponent("el-icon"),I=o.resolveComponent("el-radio"),W=o.resolveComponent("el-radio-group"),P=o.resolveComponent("el-option"),H=o.resolveComponent("el-select"),X=o.resolveComponent("el-input"),L=o.resolveComponent("el-button"),j=o.resolveComponent("el-popover"),$=o.resolveComponent("el-input-number"),oe=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(oe,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.unref(n).procType==="loop"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(C,{label:"参数设置"},{default:o.withCtx(()=>S[5]||(S[5]=[o.createTextVNode(" 定义循环中使用的参数,每次循环可以使用前一次循环中更新的参数值。“index”参数每次循环后自动加1。 ")])),_:1}),o.createVNode(C,{label:"参数列表"},{default:o.withCtx(()=>[o.createVNode(N,{data:t.config.fields,"max-height":"300"},{default:o.withCtx(()=>[o.createVNode(k,{label:"参数类型",prop:"type"},{default:o.withCtx(D=>{var x;return[o.createTextVNode(o.toDisplayString(o.unref(Te)((x=D.row)==null?void 0:x.type)),1)]}),_:1}),o.createVNode(k,{label:"参数名称",prop:"columnName"}),o.createVNode(k,{label:"参数描述",prop:"columnComment"}),o.createVNode(k,{label:"默认值",prop:"fieldValue",width:"330"},{default:o.withCtx(D=>{var x,V,O;return[o.createElementVNode("span",rNe,[D.row.nodeId?(o.openBlock(),o.createElementBlock("div",oNe,[o.createElementVNode("div",iNe,[o.createElementVNode("div",aNe,[o.createElementVNode("span",lNe," ["+o.toDisplayString(o.unref(Te)((x=D.row)==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString((V=D.row)==null?void 0:V.nodeName),1),S[6]||(S[6]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[7]||(S[7]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",sNe,o.toDisplayString((O=D.row)==null?void 0:O.fieldValueName),1)])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(D.row.fieldValue),1)],64))])]}),_:1})]),_:1},8,["data"])]),_:1}),o.createVNode(C,{label:"被以下工作流事件调用"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y.value,D=>(o.openBlock(),o.createElementBlock("div",cNe,[o.createTextVNode(o.toDisplayString(D.procName)+" ",1),o.createElementVNode("span",uNe,[o.createVNode(F,{onClick:x=>_(D,t.config)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])]))),256))]),_:1})],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(C,{label:"循环方式"},{default:o.withCtx(()=>[o.createVNode(W,{modelValue:e.config.type,"onUpdate:modelValue":S[0]||(S[0]=D=>e.config.type=D),onChange:p},{default:o.withCtx(()=>[o.createVNode(I,{value:"filter",style:{width:"100%"}},{default:o.withCtx(()=>S[8]||(S[8]=[o.createTextVNode("满足条件时循环")])),_:1}),S[10]||(S[10]=o.createElementVNode("div",{class:"raido-txt"}," 一直循环允许一段流程,并在参数达到退出条件后结束 ",-1)),o.createVNode(I,{value:"count",style:{width:"100%"}},{default:o.withCtx(()=>S[9]||(S[9]=[o.createTextVNode("循环指定次数")])),_:1}),S[11]||(S[11]=o.createElementVNode("div",{class:"raido-txt"}," 按指定的起始值、结束值和步长值循环固定次数 ",-1))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(C,{label:"参数列表"},{default:o.withCtx(()=>[o.createVNode(N,{data:t.config.fields,"max-height":"300"},{default:o.withCtx(()=>[o.createVNode(k,{label:"参数类型",prop:"type"},{default:o.withCtx(D=>[o.createVNode(H,{modelValue:D.row.type,"onUpdate:modelValue":x=>D.row.type=x,filterable:"",disabled:u(D.$index)},{default:o.withCtx(()=>[o.createVNode(P,{label:"数值",value:"Number"}),o.createVNode(P,{label:"日期",value:"Date"}),o.createVNode(P,{label:"文本",value:"Text"}),o.createVNode(P,{label:"人员",value:"User"}),o.createVNode(P,{label:"部门",value:"Dept"}),o.createVNode(P,{label:"组织角色",value:"Role"})]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),o.createVNode(k,{label:"参数名称",prop:"columnName"},{default:o.withCtx(D=>[o.createVNode(X,{disabled:u(D.$index),modelValue:D.row.columnName,"onUpdate:modelValue":x=>D.row.columnName=x,placeholder:"请输入参数名称"},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:1}),o.createVNode(k,{label:"参数描述",prop:"columnComment"},{default:o.withCtx(D=>[o.createVNode(X,{disabled:u(D.$index),modelValue:D.row.columnComment,"onUpdate:modelValue":x=>D.row.columnComment=x,placeholder:"请输入参数描述"},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:1}),o.createVNode(k,{label:"默认值",prop:"fieldValue",width:"330"},{default:o.withCtx(D=>{var x,V,O;return[o.createElementVNode("span",dNe,[D.row.nodeId?(o.openBlock(),o.createElementBlock("div",fNe,[o.createElementVNode("div",pNe,[o.createElementVNode("div",hNe,[o.createElementVNode("span",gNe," ["+o.toDisplayString(o.unref(Te)((x=D.row)==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString((V=D.row)==null?void 0:V.nodeName),1),S[12]||(S[12]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[13]||(S[13]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",mNe,o.toDisplayString((O=D.row)==null?void 0:O.fieldValueName),1)]),o.createVNode(F,{onClick:R=>h(D.row)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createBlock(X,{key:1,modelValue:D.row.fieldValue,"onUpdate:modelValue":R=>D.row.fieldValue=R,clearable:""},null,8,["modelValue","onUpdate:modelValue"])),o.renderSlot(E.$slots,"action",{item:D.row,varList:c.value},void 0,!0),u(D.$index)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(F,{key:2,class:"close-icon",onClick:R=>f(D.$index),style:{"margin-left":"8px",cursor:"pointer"}},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"]))])]}),_:3})]),_:3},8,["data"]),o.createVNode(L,{icon:o.unref($n),type:"primary",style:{"margin-top":"10px"},link:"",onClick:d},{default:o.withCtx(()=>S[14]||(S[14]=[o.createTextVNode("添加参数")])),_:1},8,["icon"])]),_:3}),t.config.type!=="count"?(o.openBlock(),o.createElementBlock("div",yNe,[S[18]||(S[18]=o.createElementVNode("div",{class:"item-label"},"循环退出条件",-1)),S[19]||(S[19]=o.createElementVNode("span",{class:"remark"},"参数满足下面条件时退出循环,请在循环中更新参数值以触发条件",-1)),o.createElementVNode("div",vNe,[o.createElementVNode("div",bNe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(D,x)=>(o.openBlock(),o.createElementBlock("div",{key:x,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",wNe,[x===0?(o.openBlock(),o.createBlock(H,{key:0,modelValue:v.value,"onUpdate:modelValue":S[1]||(S[1]=V=>v.value=V),onChange:m},{default:o.withCtx(()=>[o.createVNode(P,{label:"且",value:"and"}),o.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",_Ne,o.toDisplayString(D.join==="and"?"且":"或"),1))]),o.createElementVNode("div",CNe,[o.createElementVNode("div",ENe,[o.createElementVNode("div",kNe,[o.createElementVNode("span",xNe,[o.createElementVNode("span",NNe," ["+o.toDisplayString(o.unref(Te)((D==null?void 0:D.type)||D.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(H,{modelValue:D.compare,"onUpdate:modelValue":V=>D.compare=V,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(P,{label:"等于",value:10}),o.createVNode(P,{label:"不等于",value:110}),o.createVNode(P,{label:"大于",value:20}),o.createVNode(P,{label:"大于等于",value:21}),o.createVNode(P,{label:"小于",value:30}),o.createVNode(P,{label:"小于等于",value:31}),o.createVNode(P,{label:"多词匹配",value:61}),o.createVNode(P,{label:"包含",value:50}),o.createVNode(P,{label:"不包含",value:150}),o.createVNode(P,{label:"区间",value:80}),o.createVNode(P,{label:"为空",value:90}),o.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(F,{class:"close-icon",onClick:V=>b(x)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])]),o.createElementVNode("span",SNe,[D.nodeId?(o.openBlock(),o.createElementBlock("div",DNe,[o.createElementVNode("div",BNe,[o.createElementVNode("div",VNe,[o.createElementVNode("span",ANe," ["+o.toDisplayString(o.unref(Te)(D==null?void 0:D.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(D.nodeName),1),S[15]||(S[15]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[16]||(S[16]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",ONe,o.toDisplayString(D.fieldValueName),1)]),o.createVNode(F,{onClick:V=>h(D)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createBlock(X,{key:1,modelValue:D.fieldValue,"onUpdate:modelValue":V=>D.fieldValue=V,clearable:""},null,8,["modelValue","onUpdate:modelValue"])),o.renderSlot(E.$slots,"action",{item:D,varList:c.value},void 0,!0)])])]))),128))]),o.createElementVNode("div",FNe,[o.createVNode(j,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(L,{icon:o.unref($n),text:""},{default:o.withCtx(()=>S[17]||(S[17]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",TNe,[o.createVNode(X,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":S[2]||(S[2]=D=>r.value=D)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",PNe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(D,x)=>(o.openBlock(),o.createElementBlock("div",{key:x,class:"field-item",onClick:V=>g(D)},[o.createElementVNode("span",INe," ["+o.toDisplayString(o.unref(Te)((D==null?void 0:D.type)||(D==null?void 0:D.htmlType)))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)],8,jNe))),128))])]),_:1})])])])):o.createCommentVNode("",!0),o.createVNode(C,{label:"最大循环次数"},{default:o.withCtx(()=>[S[20]||(S[20]=o.createElementVNode("span",{class:"remark"},"值范围为1~10000。为避免影响性能或超时,到达最大循环次数时将自动终止循环并进入后续流程。",-1)),o.createElementVNode("div",LNe,[o.createVNode($,{modelValue:t.config.limit,"onUpdate:modelValue":S[3]||(S[3]=D=>t.config.limit=D),min:1,max:1e4,"controls-position":"right"},null,8,["modelValue"])])]),_:1}),o.createVNode(C,{label:"循环中流程中止时"},{default:o.withCtx(()=>[o.createVNode(W,{modelValue:t.config.way,"onUpdate:modelValue":S[4]||(S[4]=D=>t.config.way=D)},{default:o.withCtx(()=>[o.createVNode(I,{value:"go",style:{width:"100%"}},{default:o.withCtx(()=>S[21]||(S[21]=[o.createTextVNode(" 跳出并进入下一次循环 ")])),_:1}),o.createVNode(I,{value:"aborted",style:{width:"100%"}},{default:o.withCtx(()=>S[22]||(S[22]=[o.createTextVNode(" 中止流程 ")])),_:1})]),_:1},8,["modelValue"])]),_:1})],64))]),_:3},8,["model"])])}}}),[["__scopeId","data-v-f0dedb76"]])},Symbol.toStringTag,{value:"Module"})),MNe={style:{float:"left"}},zNe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},UNe={key:0},HNe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"notifyDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);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 i=o.computed(()=>{const u=[];return r(n.value.nodeConfig,t.node.nodeId,u),u});async function a(){const u=i.value.find(d=>d.nodeId===t.config.selectNodeId);u&&(t.config.workId=u.config.workId,t.config.workName=u.config.workName,t.config.selectNodeFields=Sn(u.config.fields))}const l=o.ref("base");o.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=o.resolveComponent("el-option"),h=o.resolveComponent("el-select"),p=o.resolveComponent("el-form-item"),v=o.resolveComponent("el-form"),m=o.resolveComponent("el-radio"),g=o.resolveComponent("el-radio-group"),b=o.resolveComponent("el-tab-pane"),y=o.resolveComponent("el-tabs");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(v,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(p,{label:"数据对象"},{default:o.withCtx(()=>[o.createVNode(h,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":d[0]||(d[0]=w=>t.config.selectNodeId=w),filterable:"",onChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(w,_)=>(o.openBlock(),o.createBlock(f,{key:_,label:w.nodeName,value:w.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",MNe,o.toDisplayString(w.nodeName),1),o.createElementVNode("span",zNe,' 工作表 "'+o.toDisplayString(w.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),o.createVNode(y,{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=w=>l.value=w)},{default:o.withCtx(()=>[o.createVNode(b,{label:"基本设置",name:"base"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[o.createElementVNode("div",null,[d[6]||(d[6]=o.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),o.createElementVNode("div",null,[o.createVNode(g,{modelValue:t.config.handlerScope,"onUpdate:modelValue":d[1]||(d[1]=w=>t.config.handlerScope=w),onChange:c},{default:o.withCtx(()=>[o.createVNode(m,{label:1},{default:o.withCtx(()=>d[4]||(d[4]=[o.createTextVNode("指定人员")])),_:1}),o.createVNode(m,{label:2},{default:o.withCtx(()=>d[5]||(d[5]=[o.createTextVNode("部门主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(o.openBlock(),o.createElementBlock("div",UNe,[d[7]||(d[7]=o.createElementVNode("div",{class:"title"},"指定成员",-1)),o.createElementVNode("div",null,[o.createVNode(A6,{modelValue:t.config.handlers,"onUpdate:modelValue":d[2]||(d[2]=w=>t.config.handlers=w),enableRole:!0},null,8,["modelValue"])])])):o.createCommentVNode("",!0)])]),_:1}),o.createVNode(b,{label:"表单操作权限",name:"permissions"},{default:o.withCtx(()=>[o.createVNode(FK,{config:t.config,"node-type":o.unref(zh)},null,8,["config","node-type"])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-d7695d2b"]])},Symbol.toStringTag,{value:"Module"})),WNe={style:{float:"left"}},qNe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},GNe={style:{float:"left"}},KNe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},YNe={class:"config-detail"},XNe={class:"config-item"},ZNe={class:"children-query",style:{"margin-top":"20px"}},JNe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},QNe={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},$Ne={style:{flex:"1"}},e3e={class:"flex-both"},t3e={class:"flex"},n3e={class:"txt-label"},r3e={class:"field"},o3e={class:"condition-select"},i3e={key:0,class:"function-tag"},a3e={class:"box"},l3e={class:"ellipsis table-name"},s3e={class:"field"},c3e={class:"field-name ellipsis"},u3e={style:{margin:"20px 0"}},d3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},f3e={class:"field-list"},p3e=["onClick"],h3e={class:"field"},g3e={style:{display:"flex",width:"100%"}},m3e={style:{display:"flex",width:"100%"}},y3e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"oddDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);function r(L,j,$=[]){if(L.nodeId===j)return $;L.nodeType==="add"&&L.config.addType==="2"&&$.push(L);let oe=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const D of L.conditionNodes)if(At(D,j)){r(D.childNode,j,$),oe=!0;break}}return!oe&&L.childNode&&r(L.childNode,j,$),$}function i(L,j,$=[]){if(L.nodeId===j)return $;L.nodeType==="api"&&$.push(L);let oe=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const D of L.conditionNodes)if(At(D,j)){i(D.childNode,j,$),oe=!0;break}}return!oe&&L.childNode&&i(L.childNode,j,$),$}function a(L,j,$=[]){if(L.nodeId===j)return $;(L.nodeType==="flow"||L.nodeType==="add"||L.nodeType==="search")&&$.push(L);let oe=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const D of L.conditionNodes)if(At(D,j)){a(D.childNode,j,$),oe=!0;break}}return!oe&&L.childNode&&a(L.childNode,j,$),$}const l=o.computed(()=>{const L=[];return i(n.value.nodeConfig,t.node.nodeId,L),L}),s=o.computed(()=>{const L=[];return a(n.value.nodeConfig,t.node.nodeId,L),L});function c(){var j,$;const L=l.value.find(oe=>oe.nodeId===t.config.selectNodeId);L&&(t.config.workName=L.nodeName,t.config.responseParams=($=(j=L.config.callApi)==null?void 0:j.responseParams)==null?void 0:$.filter(oe=>oe.type==="Array"))}function u(){var j;const L=s.value.find($=>$.nodeId===t.config.selectNodeId);L&&(t.config.workName=L.nodeName,t.config.responseParams=(j=L.config.fields)==null?void 0:j.filter($=>$.type==="Array"))}function d(){var j;const L=t.config.responseParams.find($=>$.code===t.config.responseField);L&&(t.config.fields=(j=L==null?void 0:L.children)==null?void 0:j.map($=>({columnName:$.code,columnComment:$.code,type:$.type,children:$.children})))}function f(){var j;const L=t.config.responseParams.find($=>$.columnName===t.config.responseField);L&&(t.config.fields=(j=L==null?void 0:L.children)==null?void 0:j.map($=>({columnName:$.code,columnComment:$.code,type:$.type,children:$.children})))}const h=o.computed(()=>{const L=[];return r(n.value.nodeConfig,t.node.nodeId,L),L});function p(L,j,$=[]){if(L.nodeId===j)return $;["search","flow","add","button","table"].includes(L.nodeType)&&$.push(L);let D=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const x of L.conditionNodes)if(At(x,j)){p(x.childNode,j,$),D=!0;break}}return!D&&L.childNode&&p(L.childNode,j,$),$}function v(L,j,$=[]){if(L.nodeId===j)return $;["search","flow","add","button","table","api","summary","loop"].includes(L.nodeType)&&$.push(L);let D=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const x of L.conditionNodes)if(At(x,j)){v(x.childNode,j,$),D=!0;break}}return!D&&L.childNode&&v(L.childNode,j,$),$}const m=o.computed(()=>{const L=[];return p(n.value.nodeConfig,t.node.nodeId,L),L}),g=o.ref(""),b=o.computed(()=>{var j,$;const L=g.value.trim().toLowerCase();return($=(j=t.config)==null?void 0:j.fields)==null?void 0:$.filter(oe=>[oe.columnName,oe.columnComment].some(D=>String(D||"").toLowerCase().includes(L)))}),y=o.ref("and");function w(){t.config.filter.forEach(L=>{L.join=y.value})}function _(L){L.join=y.value,L.compare=10,t.config.filter.push({...L})}function E(L){t.config.filter.splice(L,1)}function S(L){L.nodeId="",L.nodeName="",L.fieldValue=void 0,L.fieldValueName=""}const C=o.ref(),k=o.inject(Ms),N=o.inject(er);async function A(){C.value=await k(null)}A();const F=o.computed(()=>{const L=[];return L.push(Ar.defaultNode),v(n.value.nodeConfig,t.node.nodeId,L),L}),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 L=m.value.find(j=>j.nodeId===t.config.selectNodeId);L&&(t.config.selectNodeFields=Sn(L.config.fields))}async function P(L){const j=await N(L);t.config.fields=j==null?void 0:j.fieldList,t.config.workName=j==null?void 0:j.workName}async function H(){const L=h.value.find(j=>j.nodeId===t.config.selectNodeId);L&&(t.config.workId=L.config.workId,t.config.workName=L.config.workName,t.config.fields=Sn(L.config.fields),t.config.order="update_time")}async function X(){const L=t.config.selectNodeFields.find(j=>j.columnName===t.config.linkField);if(L){const j=await N(L.fieldAttr.workId);t.config.fields=j.fieldList,t.config.workName=j.workName,t.config.workId=j.workId,t.config.order="update_time"}}return(L,j)=>{const $=o.resolveComponent("el-radio"),oe=o.resolveComponent("el-radio-group"),D=o.resolveComponent("el-form-item"),x=o.resolveComponent("el-option"),V=o.resolveComponent("el-select"),O=o.resolveComponent("Close"),R=o.resolveComponent("el-icon"),T=o.resolveComponent("el-input"),U=o.resolveComponent("el-button"),Z=o.resolveComponent("el-popover"),ie=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[j[36]||(j[36]=o.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),o.createVNode(ie,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(D,{label:"选择获取方式"},{default:o.withCtx(()=>[o.createVNode(oe,{modelValue:e.config.type,"onUpdate:modelValue":j[0]||(j[0]=G=>e.config.type=G),onChange:I},{default:o.withCtx(()=>[o.createVNode($,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>j[15]||(j[15]=[o.createTextVNode("从工作表获取多条")])),_:1}),j[20]||(j[20]=o.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),o.createVNode($,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>j[16]||(j[16]=[o.createTextVNode("获取关联记录")])),_:1}),j[21]||(j[21]=o.createElementVNode("div",{class:"raido-txt"},"获取关联记录、子表、选择字段中的记录",-1)),o.createVNode($,{value:"add",style:{width:"100%"}},{default:o.withCtx(()=>j[17]||(j[17]=[o.createTextVNode("从新增节点获取记录")])),_:1}),j[22]||(j[22]=o.createElementVNode("div",{class:"raido-txt"},"从创建多条的新增节点获取记录",-1)),o.createVNode($,{value:"api",style:{width:"100%"}},{default:o.withCtx(()=>j[18]||(j[18]=[o.createTextVNode("从集成API获取记录")])),_:1}),o.createVNode($,{value:"array",style:{width:"100%"}},{default:o.withCtx(()=>j[19]||(j[19]=[o.createTextVNode("从数组获取记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="api"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(D,{label:"选择集成API节点"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[1]||(j[1]=G=>t.config.selectNodeId=G),filterable:"",clearable:"",onChange:c},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(D,{label:"选择数组"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.responseField,"onUpdate:modelValue":j[2]||(j[2]=G=>t.config.responseField=G),filterable:"",clearable:"",onChange:d},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.config.responseParams,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.code,value:G.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),e.config.type==="array"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(D,{label:"选择数据类型节点"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[3]||(j[3]=G=>t.config.selectNodeId=G),filterable:"",clearable:"",onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(D,{label:"选择数组"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.responseField,"onUpdate:modelValue":j[4]||(j[4]=G=>t.config.responseField=G),filterable:"",clearable:"",onChange:f},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.config.responseParams,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.columnName,value:G.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),e.config.type==="work"?(o.openBlock(),o.createBlock(D,{key:2,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.workId,"onUpdate:modelValue":j[5]||(j[5]=G=>t.config.workId=G),filterable:"",onChange:P},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(C.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.workName,value:G.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="add"?(o.openBlock(),o.createBlock(D,{key:3,label:"选择新增记录节点"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[6]||(j[6]=G=>t.config.selectNodeId=G),filterable:"",onChange:H},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",WNe,o.toDisplayString(G.nodeName),1),o.createElementVNode("span",qNe,' 工作表 "'+o.toDisplayString(G.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="link"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:4},[o.createVNode(D,{label:"选择获取对象"},{default:o.withCtx(()=>[j[23]||(j[23]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[7]||(j[7]=G=>t.config.selectNodeId=G),filterable:"",onChange:W},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",GNe,o.toDisplayString(G.nodeName),1),o.createElementVNode("span",KNe,' 工作表 "'+o.toDisplayString(G.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(D,{label:"选择关联类型的字段"},{default:o.withCtx(()=>[j[24]||(j[24]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createVNode(V,{modelValue:t.config.linkField,"onUpdate:modelValue":j[8]||(j[8]=G=>t.config.linkField=G),filterable:"",onChange:X},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.selectNodeFields,(G,J)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:J},[G.htmlType==="Related"||G.htmlType==="SubTable"?(o.openBlock(),o.createBlock(x,{key:0,label:G.columnComment,value:G.columnName},null,8,["label","value"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),o.createElementVNode("div",YNe,[j[28]||(j[28]=o.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),j[29]||(j[29]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createElementVNode("div",XNe,[o.createElementVNode("div",ZNe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(G,J)=>{var ge,ae;return o.openBlock(),o.createElementBlock("div",{key:J,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",JNe,[J===0?(o.openBlock(),o.createBlock(V,{key:0,modelValue:y.value,"onUpdate:modelValue":j[9]||(j[9]=ee=>y.value=ee),onChange:w},{default:o.withCtx(()=>[o.createVNode(x,{label:"且",value:"and"}),o.createVNode(x,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",QNe,o.toDisplayString(G.join==="and"?"且":"或"),1))]),o.createElementVNode("div",$Ne,[o.createElementVNode("div",e3e,[o.createElementVNode("div",t3e,[o.createElementVNode("span",n3e,[o.createElementVNode("span",r3e," ["+o.toDisplayString(o.unref(Te)(((ge=G==null?void 0:G.fieldAttr)==null?void 0:ge.type)||G.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(G.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(V,{modelValue:G.compare,"onUpdate:modelValue":ee=>G.compare=ee,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(x,{label:"等于",value:10}),o.createVNode(x,{label:"不等于",value:110}),o.createVNode(x,{label:"大于",value:20}),o.createVNode(x,{label:"大于等于",value:21}),o.createVNode(x,{label:"小于",value:30}),o.createVNode(x,{label:"小于等于",value:31}),o.createVNode(x,{label:"多词匹配",value:61}),o.createVNode(x,{label:"包含",value:50}),o.createVNode(x,{label:"不包含",value:150}),o.createVNode(x,{label:"区间",value:80}),o.createVNode(x,{label:"为空",value:90}),o.createVNode(x,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(R,{class:"close-icon",onClick:ee=>E(J)},{default:o.withCtx(()=>[o.createVNode(O)]),_:2},1032,["onClick"])]),o.createElementVNode("span",o3e,[G.nodeId?(o.openBlock(),o.createElementBlock("div",i3e,[o.createElementVNode("div",a3e,[o.createElementVNode("div",l3e,[o.createElementVNode("span",s3e," ["+o.toDisplayString(o.unref(Te)(G==null?void 0:G.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(G.nodeName),1),j[25]||(j[25]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),j[26]||(j[26]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",c3e,o.toDisplayString(G.fieldValueName),1)]),o.createVNode(R,{onClick:ee=>S(G)},{default:o.withCtx(()=>[o.createVNode(O)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((ae=G==null?void 0:G.fieldAttr)==null?void 0:ae.type)?(o.openBlock(),o.createBlock(V,{key:0,modelValue:G.fieldValue,"onUpdate:modelValue":ee=>G.fieldValue=ee,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(G.fieldAttr.enum,(ee,me)=>(o.openBlock(),o.createBlock(x,{key:me,label:ee.label,value:ee.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(T,{key:1,modelValue:G.fieldValue,"onUpdate:modelValue":ee=>G.fieldValue=ee,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(L.$slots,"action",{item:G,varList:F.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",u3e,[o.createVNode(Z,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(U,{icon:o.unref($n),text:""},{default:o.withCtx(()=>j[27]||(j[27]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",d3e,[o.createVNode(T,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:g.value,"onUpdate:modelValue":j[10]||(j[10]=G=>g.value=G)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",f3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.value,(G,J)=>{var ge;return o.openBlock(),o.createElementBlock("div",{key:J,class:"field-item",onClick:ae=>_(G)},[o.createElementVNode("span",h3e," ["+o.toDisplayString(o.unref(Te)(((ge=G==null?void 0:G.fieldAttr)==null?void 0:ge.type)||G.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(G.columnComment),1)],8,p3e)}),128))])]),_:1})])])]),o.createVNode(D,{label:"排序规则"},{default:o.withCtx(()=>[j[30]||(j[30]=o.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得数据。如果未设置规则,返回最近更新的一条数据 ",-1)),o.createElementVNode("div",g3e,[o.createVNode(V,{modelValue:t.config.order,"onUpdate:modelValue":j[11]||(j[11]=G=>t.config.order=G),filterable:"",style:{"margin-right":"20px"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.columnComment,value:G.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(V,{modelValue:t.config.sort,"onUpdate:modelValue":j[12]||(j[12]=G=>t.config.sort=G),filterable:""},{default:o.withCtx(()=>[o.createVNode(x,{label:"升序",value:"asc"}),o.createVNode(x,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),o.createVNode(D,{label:"限制数量"},{default:o.withCtx(()=>[j[31]||(j[31]=o.createElementVNode("span",{class:"remark"},"最多获取条数",-1)),o.createElementVNode("div",m3e,[o.createVNode(T,{modelValue:t.config.limit,"onUpdate:modelValue":j[13]||(j[13]=G=>t.config.limit=G)},null,8,["modelValue"])])]),_:1}),o.createVNode(D,{label:"获取方式"},{default:o.withCtx(()=>[o.createVNode(oe,{modelValue:e.config.way,"onUpdate:modelValue":j[14]||(j[14]=G=>e.config.way=G)},{default:o.withCtx(()=>[o.createVNode($,{value:"save",style:{width:"100%"}},{default:o.withCtx(()=>j[32]||(j[32]=[o.createTextVNode("直接获取")])),_:1}),j[34]||(j[34]=o.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),o.createVNode($,{value:"get",style:{width:"100%"}},{default:o.withCtx(()=>j[33]||(j[33]=[o.createTextVNode("每次使用时动态获取")])),_:1}),j[35]||(j[35]=o.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-d46a64ec"]])},Symbol.toStringTag,{value:"Module"})),v3e={style:{float:"left"}},b3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},w3e={style:{float:"left"}},_3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},C3e={class:"config-detail"},E3e={class:"config-item"},k3e={class:"children-query",style:{"margin-top":"20px"}},x3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},N3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},S3e={style:{flex:"1"}},D3e={class:"flex-both"},B3e={class:"flex"},V3e={class:"txt-label"},A3e={class:"field"},O3e={class:"condition-select"},F3e={key:0,class:"function-tag"},T3e={class:"box"},P3e={class:"ellipsis table-name"},j3e={class:"field"},I3e={class:"field-name ellipsis"},L3e={style:{margin:"20px 0"}},R3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},M3e={class:"field-list"},z3e=["onClick"],U3e={class:"field"},H3e={style:{display:"flex",width:"100%"}},W3e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"searchDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);function r(N,A,F=[]){if(N.nodeId===A)return F;(N.nodeType==="odd"||N.nodeType==="button")&&N.config.workId&&F.push(N);let I=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const W of N.conditionNodes)if(At(W,A)){r(W.childNode,A,F),I=!0;break}}return!I&&N.childNode&&r(N.childNode,A,F),F}function i(N,A,F=[]){if(N.nodeId===A)return F;["odd","search","flow","add","button","table","loop"].includes(N.nodeType)&&F.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(At(P,A)){i(P.childNode,A,F),W=!0;break}}return!W&&N.childNode&&i(N.childNode,A,F),F}function a(N,A,F=[]){if(N.nodeId===A)return F;["odd","search","flow","add","button","table","api","summary","loop"].includes(N.nodeType)&&F.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(At(P,A)){a(P.childNode,A,F),W=!0;break}}return!W&&N.childNode&&a(N.childNode,A,F),F}const l=o.computed(()=>{const N=[];return r(n.value.nodeConfig,t.node.nodeId,N),N}),s=o.computed(()=>{const N=[];return i(n.value.nodeConfig,t.node.nodeId,N),N}),c=o.computed(()=>{const N=[];return N.push(Ar.defaultNode),a(n.value.nodeConfig,t.node.nodeId,N),N}),u=o.ref(""),d=o.computed(()=>{var A,F;const N=u.value.trim().toLowerCase();return(F=(A=t.config)==null?void 0:A.fields)==null?void 0:F.filter(I=>[I.columnName,I.columnComment].some(W=>String(W||"").toLowerCase().includes(N)))}),f=o.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=o.ref(),b=o.inject(Ms),y=o.inject(er);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 A=await y(N);t.config.fields=A==null?void 0:A.fieldList,t.config.workName=A==null?void 0:A.workName,t.config.filter=[],t.config.order="update_time"}async function S(){const N=l.value.find(A=>A.nodeId===t.config.selectNodeId);N&&(t.config.workId=N.config.workId,t.config.workName=N.config.workName,t.config.fields=Sn(N.config.fields),t.config.order="update_time")}async function C(){const N=s.value.find(A=>A.nodeId===t.config.selectNodeId);N&&(t.config.selectNodeFields=Sn(N.config.fields))}async function k(){const N=t.config.selectNodeFields.find(A=>A.columnName===t.config.linkField);if(N){const A=await y(N.fieldAttr.workId);t.config.fields=A.fieldList,t.config.workName=A.workName,t.config.workId=A.workId,t.config.order="update_time"}}return(N,A)=>{const F=o.resolveComponent("el-radio"),I=o.resolveComponent("el-radio-group"),W=o.resolveComponent("el-form-item"),P=o.resolveComponent("el-option"),H=o.resolveComponent("el-select"),X=o.resolveComponent("Close"),L=o.resolveComponent("el-icon"),j=o.resolveComponent("el-input"),$=o.resolveComponent("el-button"),oe=o.resolveComponent("el-popover"),D=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[A[27]||(A[27]=o.createElementVNode("div",{class:"header"}," 基于一种获取方式,通过筛选条件和排序规则获得符合条件的唯一数据,供流程中的其他节点使用。 ",-1)),o.createVNode(D,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(W,{label:"选择获取方式"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:t.config.type,"onUpdate:modelValue":A[0]||(A[0]=x=>t.config.type=x),onChange:_},{default:o.withCtx(()=>[o.createVNode(F,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>A[10]||(A[10]=[o.createTextVNode("从工作表获取单条")])),_:1}),A[13]||(A[13]=o.createElementVNode("div",{class:"raido-txt"},"从工作表获取一条指定记录",-1)),o.createVNode(F,{value:"odd",style:{width:"100%"}},{default:o.withCtx(()=>A[11]||(A[11]=[o.createTextVNode("从多条数据节点获取单条")])),_:1}),A[14]||(A[14]=o.createElementVNode("div",{class:"raido-txt"},"从多条数据节点获取一条指定记录",-1)),o.createVNode(F,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>A[12]||(A[12]=[o.createTextVNode("从关联字段获取单条")])),_:1}),A[15]||(A[15]=o.createElementVNode("div",{class:"raido-txt"}," 从关联表、子表或级联选择字段获取一条指定记录 ",-1))]),_:1},8,["modelValue"])]),_:1}),t.config.type==="work"?(o.openBlock(),o.createBlock(W,{key:0,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(H,{modelValue:t.config.workId,"onUpdate:modelValue":A[1]||(A[1]=x=>t.config.workId=x),filterable:"",onChange:E},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.workName,value:x.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="odd"?(o.openBlock(),o.createBlock(W,{key:1,label:"选择多条数据节点"},{default:o.withCtx(()=>[o.createVNode(H,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[2]||(A[2]=x=>t.config.selectNodeId=x),filterable:"",onChange:S},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.nodeName,value:x.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",v3e,o.toDisplayString(x.nodeName),1),o.createElementVNode("span",b3e,' 工作表 "'+o.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="link"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createVNode(W,{label:"选择获取对象"},{default:o.withCtx(()=>[A[16]||(A[16]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(H,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[3]||(A[3]=x=>t.config.selectNodeId=x),filterable:"",onChange:C},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.nodeName,value:x.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",w3e,o.toDisplayString(x.nodeName),1),o.createElementVNode("span",_3e,' 工作表 "'+o.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(W,{label:"选择关联类型的字段"},{default:o.withCtx(()=>[A[17]||(A[17]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createVNode(H,{modelValue:t.config.linkField,"onUpdate:modelValue":A[4]||(A[4]=x=>t.config.linkField=x),filterable:"",onChange:k},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.selectNodeFields,(x,V)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:V},[x.htmlType==="Related"||x.htmlType==="SubTable"?(o.openBlock(),o.createBlock(P,{key:0,label:x.columnComment,value:x.columnName},null,8,["label","value"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),o.createElementVNode("div",C3e,[A[21]||(A[21]=o.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),A[22]||(A[22]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createElementVNode("div",E3e,[o.createElementVNode("div",k3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(x,V)=>{var O,R;return o.openBlock(),o.createElementBlock("div",{key:V,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",x3e,[V===0?(o.openBlock(),o.createBlock(H,{key:0,modelValue:f.value,"onUpdate:modelValue":A[5]||(A[5]=T=>f.value=T),onChange:h},{default:o.withCtx(()=>[o.createVNode(P,{label:"且",value:"and"}),o.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",N3e,o.toDisplayString(x.join==="and"?"且":"或"),1))]),o.createElementVNode("div",S3e,[o.createElementVNode("div",D3e,[o.createElementVNode("div",B3e,[o.createElementVNode("span",V3e,[o.createElementVNode("span",A3e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(H,{modelValue:x.compare,"onUpdate:modelValue":T=>x.compare=T,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(P,{label:"等于",value:10}),o.createVNode(P,{label:"不等于",value:110}),o.createVNode(P,{label:"大于",value:20}),o.createVNode(P,{label:"大于等于",value:21}),o.createVNode(P,{label:"小于",value:30}),o.createVNode(P,{label:"小于等于",value:31}),o.createVNode(P,{label:"多词匹配",value:61}),o.createVNode(P,{label:"包含",value:50}),o.createVNode(P,{label:"不包含",value:150}),o.createVNode(P,{label:"区间",value:80}),o.createVNode(P,{label:"为空",value:90}),o.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(L,{class:"close-icon",onClick:T=>v(V)},{default:o.withCtx(()=>[o.createVNode(X)]),_:2},1032,["onClick"])]),o.createElementVNode("span",O3e,[x.nodeId?(o.openBlock(),o.createElementBlock("div",F3e,[o.createElementVNode("div",T3e,[o.createElementVNode("div",P3e,[o.createElementVNode("span",j3e," ["+o.toDisplayString(o.unref(Te)(x==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(x.nodeName),1),A[18]||(A[18]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),A[19]||(A[19]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",I3e,o.toDisplayString(x.fieldValueName),1)]),o.createVNode(L,{onClick:T=>m(x)},{default:o.withCtx(()=>[o.createVNode(X)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=x==null?void 0:x.fieldAttr)==null?void 0:R.type)?(o.openBlock(),o.createBlock(H,{key:0,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.fieldAttr.enum,(T,U)=>(o.openBlock(),o.createBlock(P,{key:U,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(j,{key:1,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(N.$slots,"action",{item:x,varList:c.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",L3e,[o.createVNode(oe,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode($,{icon:o.unref($n),text:""},{default:o.withCtx(()=>A[20]||(A[20]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",R3e,[o.createVNode(j,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":A[6]||(A[6]=x=>u.value=x)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",M3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(x,V)=>{var O;return o.openBlock(),o.createElementBlock("div",{key:V,class:"field-item",onClick:R=>p(x)},[o.createElementVNode("span",U3e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)],8,z3e)}),128))])]),_:1})])])]),o.createVNode(W,{label:"排序规则"},{default:o.withCtx(()=>[A[23]||(A[23]=o.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得第一条数据。如果未设置规则,按照字段配置的排序规则返回第一条数据 ",-1)),o.createElementVNode("div",H3e,[o.createVNode(H,{modelValue:t.config.order,"onUpdate:modelValue":A[7]||(A[7]=x=>t.config.order=x),filterable:"",style:{"margin-right":"20px"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.columnComment,value:x.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(H,{modelValue:t.config.sort,"onUpdate:modelValue":A[8]||(A[8]=x=>t.config.sort=x),filterable:""},{default:o.withCtx(()=>[o.createVNode(P,{label:"升序",value:"asc"}),o.createVNode(P,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),o.createVNode(W,{label:"未获取到数据时"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:t.config.way,"onUpdate:modelValue":A[9]||(A[9]=x=>t.config.way=x)},{default:o.withCtx(()=>[o.createVNode(F,{value:"go",style:{width:"100%"}},{default:o.withCtx(()=>A[24]||(A[24]=[o.createTextVNode("继续执行")])),_:1}),A[26]||(A[26]=o.createElementVNode("div",{class:"raido-txt"}," 之后节点在使用本节点对象或数据时将跳过执行 ",-1)),o.createVNode(F,{value:"aborted"},{default:o.withCtx(()=>A[25]||(A[25]=[o.createTextVNode("中止流程,或继续执行查找结果分支")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-db79c3c5"]])},Symbol.toStringTag,{value:"Module"})),q3e={style:{float:"left"}},G3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},K3e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"startDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);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 i=o.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=i.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName,t.config.selectNodeFields=Sn(l.config.fields))}return(l,s)=>{const c=o.resolveComponent("el-option"),u=o.resolveComponent("el-select"),d=o.resolveComponent("el-form-item"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(d,{label:"发起审批的数据对象"},{default:o.withCtx(()=>[o.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(h,p)=>(o.openBlock(),o.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",q3e,o.toDisplayString(h.nodeName),1),o.createElementVNode("span",G3e,' 工作表 "'+o.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(d,{label:"发起人"},{default:o.withCtx(()=>s[1]||(s[1]=[o.createTextVNode("触发者")])),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),Y3e={style:{float:"left"}},X3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Z3e={class:"config-detail"},J3e={class:"config-item"},Q3e={class:"children-query",style:{"margin-top":"20px"}},$3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},e8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},t8e={style:{flex:"1"}},n8e={class:"flex-both"},r8e={class:"flex"},o8e={class:"txt-label"},i8e={class:"field"},a8e={class:"condition-select"},l8e={key:0,class:"function-tag"},s8e={class:"box"},c8e={class:"ellipsis table-name"},u8e={class:"field"},d8e={class:"field-name ellipsis"},f8e={style:{margin:"20px 0"}},p8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},h8e={class:"field-list"},g8e=["onClick"],m8e={class:"field"},y8e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"summaryDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);function r(S,C,k=[]){if(S.nodeId===C)return k;["search","flow","add","button","table","loop"].includes(S.nodeType)&&k.push(S);let A=!1;if(S.nodeType==="router"&&S.conditionNodes){for(const F of S.conditionNodes)if(At(F,C)){r(F.childNode,C,k),A=!0;break}}return!A&&S.childNode&&r(S.childNode,C,k),k}function i(S,C,k=[]){if(S.nodeId===C)return k;["search","flow","add","button","table","api","summary","loop"].includes(S.nodeType)&&k.push(S);let A=!1;if(S.nodeType==="router"&&S.conditionNodes){for(const F of S.conditionNodes)if(At(F,C)){i(F.childNode,C,k),A=!0;break}}return!A&&S.childNode&&i(S.childNode,C,k),k}const a=o.computed(()=>{const S=[];return r(n.value.nodeConfig,t.node.nodeId,S),S}),l=o.ref(""),s=o.computed(()=>{var C,k;const S=l.value.trim().toLowerCase();return(k=(C=t.config)==null?void 0:C.fields)==null?void 0:k.filter(N=>[N.columnName,N.columnComment].some(A=>String(A||"").toLowerCase().includes(S)))}),c=o.ref("and");function u(){t.config.filter.forEach(S=>{S.join=c.value})}function d(S){S.join=c.value,S.compare=10,t.config.filter.push({...S})}function f(S){t.config.filter.splice(S,1)}function h(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}const p=o.ref(),v=o.inject(Ms),m=o.inject(er);async function g(){p.value=await v(null)}g();const b=o.computed(()=>{const S=[];return S.push(Ar.defaultNode),i(n.value.nodeConfig,t.node.nodeId,S),S}),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 S=a.value.find(C=>C.nodeId===t.config.selectNodeId);S&&(t.config.selectNodeFields=Sn(S.config.fields))}async function _(S){const C=await m(S);t.config.fields=C==null?void 0:C.fieldList,t.config.workName=C==null?void 0:C.workName}async function E(){const S=t.config.selectNodeFields.find(C=>C.columnName===t.config.linkField);if(S){const C=await m(S.fieldAttr.workId);t.config.fields=C.fieldList,t.config.workName=C.workName,t.config.workId=C.workId,t.config.order="update_time"}}return(S,C)=>{const k=o.resolveComponent("el-radio"),N=o.resolveComponent("el-radio-group"),A=o.resolveComponent("el-form-item"),F=o.resolveComponent("el-option"),I=o.resolveComponent("el-select"),W=o.resolveComponent("Close"),P=o.resolveComponent("el-icon"),H=o.resolveComponent("el-input"),X=o.resolveComponent("el-button"),L=o.resolveComponent("el-popover"),j=o.resolveComponent("el-divider"),$=o.resolveComponent("el-col"),oe=o.resolveComponent("el-row"),D=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[C[24]||(C[24]=o.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),o.createVNode(D,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(A,{label:"选择获取方式"},{default:o.withCtx(()=>[o.createVNode(N,{modelValue:e.config.type,"onUpdate:modelValue":C[0]||(C[0]=x=>e.config.type=x),onChange:y},{default:o.withCtx(()=>[o.createVNode(k,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>C[9]||(C[9]=[o.createTextVNode("从工作表进行汇总")])),_:1}),C[11]||(C[11]=o.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),o.createVNode(k,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>C[10]||(C[10]=[o.createTextVNode("获取关联子表记录")])),_:1}),C[12]||(C[12]=o.createElementVNode("div",{class:"raido-txt"},"获取关联子表记录",-1))]),_:1},8,["modelValue"])]),_:1}),e.config.type==="work"?(o.openBlock(),o.createBlock(A,{key:0,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:t.config.workId,"onUpdate:modelValue":C[1]||(C[1]=x=>t.config.workId=x),filterable:"",onChange:_},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,(x,V)=>(o.openBlock(),o.createBlock(F,{key:V,label:x.workName,value:x.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="link"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(A,{label:"选择获取对象"},{default:o.withCtx(()=>[C[13]||(C[13]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(I,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":C[2]||(C[2]=x=>t.config.selectNodeId=x),filterable:"",onChange:w},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(x,V)=>(o.openBlock(),o.createBlock(F,{key:V,label:x.nodeName,value:x.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",Y3e,o.toDisplayString(x.nodeName),1),o.createElementVNode("span",X3e,' 工作表 "'+o.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(A,{label:"选择关联类型的字段"},{default:o.withCtx(()=>[C[14]||(C[14]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createVNode(I,{modelValue:t.config.linkField,"onUpdate:modelValue":C[3]||(C[3]=x=>t.config.linkField=x),filterable:"",onChange:E},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.selectNodeFields,(x,V)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:V},[x.htmlType==="SubTable"?(o.openBlock(),o.createBlock(F,{key:0,label:x.columnComment,value:x.columnName},null,8,["label","value"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),o.createElementVNode("div",Z3e,[C[18]||(C[18]=o.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),C[19]||(C[19]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createElementVNode("div",J3e,[o.createElementVNode("div",Q3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(x,V)=>{var O,R;return o.openBlock(),o.createElementBlock("div",{key:V,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",$3e,[V===0?(o.openBlock(),o.createBlock(I,{key:0,modelValue:c.value,"onUpdate:modelValue":C[4]||(C[4]=T=>c.value=T),onChange:u},{default:o.withCtx(()=>[o.createVNode(F,{label:"且",value:"and"}),o.createVNode(F,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",e8e,o.toDisplayString(x.join==="and"?"且":"或"),1))]),o.createElementVNode("div",t8e,[o.createElementVNode("div",n8e,[o.createElementVNode("div",r8e,[o.createElementVNode("span",o8e,[o.createElementVNode("span",i8e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(I,{modelValue:x.compare,"onUpdate:modelValue":T=>x.compare=T,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(F,{label:"等于",value:10}),o.createVNode(F,{label:"不等于",value:110}),o.createVNode(F,{label:"大于",value:20}),o.createVNode(F,{label:"大于等于",value:21}),o.createVNode(F,{label:"小于",value:30}),o.createVNode(F,{label:"小于等于",value:31}),o.createVNode(F,{label:"多词匹配",value:61}),o.createVNode(F,{label:"包含",value:50}),o.createVNode(F,{label:"不包含",value:150}),o.createVNode(F,{label:"区间",value:80}),o.createVNode(F,{label:"为空",value:90}),o.createVNode(F,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(P,{class:"close-icon",onClick:T=>f(V)},{default:o.withCtx(()=>[o.createVNode(W)]),_:2},1032,["onClick"])]),o.createElementVNode("span",a8e,[x.nodeId?(o.openBlock(),o.createElementBlock("div",l8e,[o.createElementVNode("div",s8e,[o.createElementVNode("div",c8e,[o.createElementVNode("span",u8e," ["+o.toDisplayString(o.unref(Te)(x==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(x.nodeName),1),C[15]||(C[15]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),C[16]||(C[16]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",d8e,o.toDisplayString(x.fieldValueName),1)]),o.createVNode(P,{onClick:T=>h(x)},{default:o.withCtx(()=>[o.createVNode(W)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=x==null?void 0:x.fieldAttr)==null?void 0:R.type)?(o.openBlock(),o.createBlock(I,{key:0,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.fieldAttr.enum,(T,U)=>(o.openBlock(),o.createBlock(F,{key:U,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(H,{key:1,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(S.$slots,"action",{item:x,varList:b.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",f8e,[o.createVNode(L,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(X,{icon:o.unref($n),text:""},{default:o.withCtx(()=>C[17]||(C[17]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",p8e,[o.createVNode(H,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:l.value,"onUpdate:modelValue":C[5]||(C[5]=x=>l.value=x)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",h8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(x,V)=>{var O;return o.openBlock(),o.createElementBlock("div",{key:V,class:"field-item",onClick:R=>d(x)},[o.createElementVNode("span",m8e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)],8,g8e)}),128))])]),_:1})])])]),o.createVNode(A,{label:"汇总方式"},{default:o.withCtx(()=>[o.createVNode(oe,{style:{width:"100%",display:"flex","justify-content":"space-between"}},{default:o.withCtx(()=>[o.createVNode($,{span:11},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:e.config.summary,"onUpdate:modelValue":C[6]||(C[6]=x=>e.config.summary=x),filterable:""},{default:o.withCtx(()=>[o.createVNode(F,{value:"count(*)",label:"记录数量"}),o.createVNode(j,{style:{margin:"2px 0"}}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(x,V)=>(o.openBlock(),o.createBlock(F,{key:V,value:x.columnName,label:x.columnComment},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.config.summary!=="count(*)"?(o.openBlock(),o.createBlock($,{key:0,span:11},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:e.config.fun,"onUpdate:modelValue":C[7]||(C[7]=x=>e.config.fun=x)},{default:o.withCtx(()=>[o.createVNode(F,{value:"notnull",label:"已填计数"}),o.createVNode(F,{value:"null",label:"未填计数"}),o.createVNode(F,{value:"sum",label:"求和"}),o.createVNode(F,{value:"avg",label:"平均值"}),o.createVNode(F,{value:"max",label:"最大值"}),o.createVNode(F,{value:"min",label:"最小值"})]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0)]),_:1})]),_:1}),o.createVNode(A,{label:"获取方式"},{default:o.withCtx(()=>[o.createVNode(N,{modelValue:e.config.way,"onUpdate:modelValue":C[8]||(C[8]=x=>e.config.way=x)},{default:o.withCtx(()=>[o.createVNode(k,{value:"save",style:{width:"100%"}},{default:o.withCtx(()=>C[20]||(C[20]=[o.createTextVNode("直接获取")])),_:1}),C[22]||(C[22]=o.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),o.createVNode(k,{value:"get",style:{width:"100%"}},{default:o.withCtx(()=>C[21]||(C[21]=[o.createTextVNode("每次使用时动态获取")])),_:1}),C[23]||(C[23]=o.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-1b3eb0d4"]])},Symbol.toStringTag,{value:"Module"})),v8e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"systemDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject("showUser");function r(){n()}const i=o.inject("getUserIds");o.watch(i,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=o.resolveComponent("el-form-item"),u=o.resolveComponent("el-tag"),d=o.resolveComponent("el-button"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(c,{label:"通知内容"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),o.createVNode(c,{label:"通知人"},{default:o.withCtx(()=>[s[1]||(s[1]=o.createElementVNode("span",{class:"remark"},"将通过系统消息发送",-1)),o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(h,p)=>(o.openBlock(),o.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(d,{icon:o.unref($n),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-3d5b6cc6"]])},Symbol.toStringTag,{value:"Module"})),b8e={key:0,class:"raido-txt"},w8e={key:1,class:"raido-txt"},_8e={class:"config-detail"},C8e={class:"config-item"},E8e={class:"children-query",style:{"margin-top":"20px"}},k8e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},x8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},N8e={style:{flex:"1"}},S8e={class:"flex-both"},D8e={class:"flex"},B8e={class:"txt-label"},V8e={class:"field"},A8e={class:"condition-select"},O8e={key:0,class:"function-tag"},F8e={class:"box"},T8e={class:"ellipsis table-name"},P8e={class:"field"},j8e={class:"field-name ellipsis"},I8e={style:{margin:"20px 0"}},L8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},R8e={class:"field-list"},M8e=["onClick"],z8e={class:"field"},U8e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"tableDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.ref(),r=o.inject(Ms),i=o.inject(er);async function a(){n.value=await r(null)}a();async function l(m){const g=await i(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}const s=o.computed(()=>{const m=[];return m.push(Ar.defaultNode),m.push(t.node),m}),c=o.ref(""),u=o.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=o.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=o.resolveComponent("el-option"),y=o.resolveComponent("el-select"),w=o.resolveComponent("el-form-item"),_=o.resolveComponent("el-radio"),E=o.resolveComponent("el-radio-group"),S=o.resolveComponent("Close"),C=o.resolveComponent("el-icon"),k=o.resolveComponent("el-input"),N=o.resolveComponent("el-button"),A=o.resolveComponent("el-popover"),F=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(F,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(w,{label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=I=>t.config.workId=I),filterable:"",onChange:l},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(I,W)=>(o.openBlock(),o.createBlock(b,{key:W,label:I.workName,value:I.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(w,{label:"触发方式"},{default:o.withCtx(()=>[o.createVNode(E,{modelValue:e.config.type,"onUpdate:modelValue":g[3]||(g[3]=I=>e.config.type=I)},{default:o.withCtx(()=>[o.createVNode(_,{value:"save",style:{width:"100%"}},{default:o.withCtx(()=>g[6]||(g[6]=[o.createTextVNode(" 当新增或更新记录时 ")])),_:1}),e.config.type==="save"?(o.openBlock(),o.createElementBlock("div",b8e,[g[7]||(g[7]=o.createTextVNode(" 选择触发字段 ")),o.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[1]||(g[1]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(I,W)=>(o.openBlock(),o.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[8]||(g[8]=o.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):o.createCommentVNode("",!0),o.createVNode(_,{value:"add",style:{width:"100%"}},{default:o.withCtx(()=>g[9]||(g[9]=[o.createTextVNode("仅新增记录时")])),_:1}),g[14]||(g[14]=o.createElementVNode("div",{class:"raido-txt"},"当新增记录时触发流程",-1)),o.createVNode(_,{value:"edit",style:{width:"100%"}},{default:o.withCtx(()=>g[10]||(g[10]=[o.createTextVNode("仅更新记录时")])),_:1}),e.config.type==="edit"?(o.openBlock(),o.createElementBlock("div",w8e,[g[11]||(g[11]=o.createTextVNode(" 选择触发字段 ")),o.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[2]||(g[2]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(I,W)=>(o.openBlock(),o.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[12]||(g[12]=o.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):o.createCommentVNode("",!0),o.createVNode(_,{value:"del",style:{width:"100%"}},{default:o.withCtx(()=>g[13]||(g[13]=[o.createTextVNode("删除记录时")])),_:1})]),_:1},8,["modelValue"])]),_:1}),o.createElementVNode("div",_8e,[g[18]||(g[18]=o.createElementVNode("div",{class:"item-label"},"触发条件",-1)),g[19]||(g[19]=o.createElementVNode("span",{class:"remark"},"设置筛选条件,仅使满足条件的记录进入流程。",-1)),o.createElementVNode("div",C8e,[o.createElementVNode("div",E8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(I,W)=>{var P,H;return o.openBlock(),o.createElementBlock("div",{key:W,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",k8e,[W===0?(o.openBlock(),o.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[4]||(g[4]=X=>d.value=X),onChange:f},{default:o.withCtx(()=>[o.createVNode(b,{label:"且",value:"and"}),o.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",x8e,o.toDisplayString(I.join==="and"?"且":"或"),1))]),o.createElementVNode("div",N8e,[o.createElementVNode("div",S8e,[o.createElementVNode("div",D8e,[o.createElementVNode("span",B8e,[o.createElementVNode("span",V8e," ["+o.toDisplayString(o.unref(Te)(((P=I==null?void 0:I.fieldAttr)==null?void 0:P.type)||I.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(I.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(y,{modelValue:I.compare,"onUpdate:modelValue":X=>I.compare=X,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(b,{label:"等于",value:10}),o.createVNode(b,{label:"不等于",value:110}),o.createVNode(b,{label:"大于",value:20}),o.createVNode(b,{label:"大于等于",value:21}),o.createVNode(b,{label:"小于",value:30}),o.createVNode(b,{label:"小于等于",value:31}),o.createVNode(b,{label:"包含",value:50}),o.createVNode(b,{label:"不包含",value:150}),o.createVNode(b,{label:"区间",value:80}),o.createVNode(b,{label:"为空",value:90}),o.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(C,{class:"close-icon",onClick:X=>p(W)},{default:o.withCtx(()=>[o.createVNode(S)]),_:2},1032,["onClick"])]),o.createElementVNode("span",A8e,[I.nodeId?(o.openBlock(),o.createElementBlock("div",O8e,[o.createElementVNode("div",F8e,[o.createElementVNode("div",T8e,[o.createElementVNode("span",P8e," ["+o.toDisplayString(o.unref(Te)(I==null?void 0:I.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(I.nodeName),1),g[15]||(g[15]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[16]||(g[16]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",j8e,o.toDisplayString(I.fieldValueName),1)]),o.createVNode(C,{onClick:X=>v(I)},{default:o.withCtx(()=>[o.createVNode(S)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((H=I==null?void 0:I.fieldAttr)==null?void 0:H.type)?(o.openBlock(),o.createBlock(y,{key:0,modelValue:I.fieldValue,"onUpdate:modelValue":X=>I.fieldValue=X,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.fieldAttr.enum,(X,L)=>(o.openBlock(),o.createBlock(b,{key:L,label:X.label,value:X.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(k,{key:1,modelValue:I.fieldValue,"onUpdate:modelValue":X=>I.fieldValue=X,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(m.$slots,"action",{item:I,varList:s.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",I8e,[o.createVNode(A,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(N,{icon:o.unref($n),text:""},{default:o.withCtx(()=>g[17]||(g[17]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",L8e,[o.createVNode(k,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[5]||(g[5]=I=>c.value=I)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",R8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(I,W)=>{var P;return o.openBlock(),o.createElementBlock("div",{key:W,class:"field-item",onClick:H=>h(I)},[o.createElementVNode("span",z8e," ["+o.toDisplayString(o.unref(Te)(((P=I==null?void 0:I.fieldAttr)==null?void 0:P.type)||I.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(I.columnComment),1)],8,M8e)}),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-53e95284"]])},Symbol.toStringTag,{value:"Module"})),H8e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"timeDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e;return(n,r)=>{const i=o.resolveComponent("el-date-picker"),a=o.resolveComponent("el-form-item"),l=o.resolveComponent("el-option"),s=o.resolveComponent("el-select"),c=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(c,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(a,{label:"开始执行时间"},{default:o.withCtx(()=>[o.createVNode(i,{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}),o.createVNode(a,{label:"结束执行时间"},{default:o.withCtx(()=>[o.createVNode(i,{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}),o.createVNode(a,{label:"循环"},{default:o.withCtx(()=>[o.createVNode(s,{modelValue:t.config.loop,"onUpdate:modelValue":r[2]||(r[2]=u=>t.config.loop=u)},{default:o.withCtx(()=>[o.createVNode(l,{label:"每小时",value:"hour"}),o.createVNode(l,{label:"每天",value:"day"}),o.createVNode(l,{label:"每周",value:"week"}),o.createVNode(l,{label:"每月",value:"month"}),o.createVNode(l,{label:"每年",value:"year"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),W8e={style:{float:"left"}},q8e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},G8e={key:0,class:"no-work"},K8e={key:1,class:"config-detail"},Y8e={class:"config-item"},X8e={class:"children-query",style:{"margin-top":"20px"}},Z8e={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},J8e={style:{flex:"1"}},Q8e={class:"flex-both"},$8e={class:"flex"},e6e={class:"txt-label"},t6e={class:"field"},n6e={class:"condition-select"},r6e={key:0,class:"function-tag"},o6e={class:"box"},i6e={class:"ellipsis table-name"},a6e={class:"field"},l6e={class:"field-name ellipsis"},s6e={style:{margin:"20px 0"}},c6e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},u6e={class:"field-list"},d6e=["onClick"],f6e={class:"field"},p6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"uiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.ref(),r=o.ref(),i=o.ref(),a=o.ref(),l=o.inject(Ms),s=o.inject(wG),c=o.inject(er),u=o.ref(""),d=o.computed(()=>{var k;const C=u.value.trim().toLowerCase();return(k=i.value)==null?void 0:k.filter(N=>[N.columnName,N.columnComment].some(A=>String(A||"").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,i.value=C==null?void 0:C.fieldList}}f();async function h(C){const k=await c(C);t.config.workName=k==null?void 0:k.workName,t.config.viewId="",t.config.fields=[],r.value=k==null?void 0:k.viewList,i.value=k==null?void 0:k.fieldList}async function p(C){if(t.config.workName="",t.config.workId="",t.config.type==="drag"&&!a.value){const k=await s(C);a.value=k}}function v(){var k;const C=(k=a.value)==null?void 0:k.find(N=>N.workId===t.config.workId);t.config.workName=C==null?void 0:C.workName}async function m(){const C=y.value.find(k=>k.nodeId===t.config.selectNodeId);C&&(t.config.workId=C.config.workId,t.config.workName=C.config.workName)}const g=o.inject(zt);function b(C,k,N=[]){if(C.nodeId===k)return N;["search","add","button","table","api","summary","loop"].includes(C.nodeType)&&N.push(C);let F=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const I of C.conditionNodes)if(At(I,k)){b(I.childNode,k,N),F=!0;break}}return!F&&C.childNode&&b(C.childNode,k,N),N}const y=o.computed(()=>{const C=[];return b(g.value.nodeConfig,t.node.nodeId,C),C}),w=o.computed(()=>{const C=[];return C.push(Ar.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 S(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}return(C,k)=>{const N=o.resolveComponent("el-option"),A=o.resolveComponent("el-select"),F=o.resolveComponent("el-form-item"),I=o.resolveComponent("el-radio"),W=o.resolveComponent("el-radio-group"),P=o.resolveComponent("el-form"),H=o.resolveComponent("InfoFilled"),X=o.resolveComponent("el-icon"),L=o.resolveComponent("Close"),j=o.resolveComponent("el-input"),$=o.resolveComponent("el-button"),oe=o.resolveComponent("el-popover");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(P,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(F,{label:"推送内容"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.type,"onUpdate:modelValue":k[0]||(k[0]=D=>t.config.type=D),filterable:"",onChange:p},{default:o.withCtx(()=>[o.createVNode(N,{label:"打开记录创建层",value:"form"}),o.createVNode(N,{label:"打开记录详情页",value:"info"}),o.createVNode(N,{label:"打开工作表视图",value:"view"}),o.createVNode(N,{label:"打开自定义页面",value:"drag"})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="info"?(o.openBlock(),o.createBlock(F,{key:0,label:"选择记录"},{default:o.withCtx(()=>[k[7]||(k[7]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(A,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":k[1]||(k[1]=D=>t.config.selectNodeId=D),filterable:"",clearable:"",onChange:m},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.nodeName,value:D.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",W8e,o.toDisplayString(D.nodeName),1),o.createElementVNode("span",q8e,' 工作表 "'+o.toDisplayString(D.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.config.type==="drag"?(o.openBlock(),o.createBlock(F,{key:1,label:"选择自定义页面"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":k[2]||(k[2]=D=>t.config.workId=D),filterable:"",clearable:"",onChange:v},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.workName,value:D.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):(o.openBlock(),o.createBlock(F,{key:2,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":k[3]||(k[3]=D=>t.config.workId=D),filterable:"",clearable:"",onChange:h},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.workName,value:D.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),e.config.type==="view"?(o.openBlock(),o.createBlock(F,{key:3,label:"选择视图"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.viewId,"onUpdate:modelValue":k[4]||(k[4]=D=>t.config.viewId=D),filterable:"",clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.viewName,value:D.viewId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{label:"打开方式"},{default:o.withCtx(()=>[o.createVNode(W,{modelValue:t.config.open,"onUpdate:modelValue":k[5]||(k[5]=D=>t.config.open=D)},{default:o.withCtx(()=>[o.createVNode(I,{value:"popup"},{default:o.withCtx(()=>k[8]||(k[8]=[o.createTextVNode("弹窗")])),_:1}),o.createVNode(I,{value:"page"},{default:o.withCtx(()=>k[9]||(k[9]=[o.createTextVNode("打开新页面")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.config.type==="form"||e.config.type==="view"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[k[14]||(k[14]=o.createElementVNode("div",{class:"title"},"设置字段",-1)),t.config.workId?(o.openBlock(),o.createElementBlock("div",K8e,[o.createElementVNode("div",Y8e,[o.createElementVNode("div",X8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(D,x)=>{var V,O;return o.openBlock(),o.createElementBlock(o.Fragment,{key:x},[D.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",Z8e,[o.createElementVNode("div",J8e,[o.createElementVNode("div",Q8e,[o.createElementVNode("div",$8e,[o.createElementVNode("span",e6e,[o.createElementVNode("span",t6e," ["+o.toDisplayString(o.unref(Te)(((V=D==null?void 0:D.fieldAttr)==null?void 0:V.type)||D.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)])]),o.createVNode(X,{class:"close-icon",onClick:R=>E(x)},{default:o.withCtx(()=>[o.createVNode(L)]),_:2},1032,["onClick"])]),o.createElementVNode("span",n6e,[D.nodeId?(o.openBlock(),o.createElementBlock("div",r6e,[o.createElementVNode("div",o6e,[o.createElementVNode("div",i6e,[o.createElementVNode("span",a6e," ["+o.toDisplayString(o.unref(Te)(D==null?void 0:D.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(D.nodeName),1),k[11]||(k[11]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),k[12]||(k[12]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",l6e,o.toDisplayString(D.fieldValueName),1)]),o.createVNode(X,{onClick:R=>S(D)},{default:o.withCtx(()=>[o.createVNode(L)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((O=D==null?void 0:D.fieldAttr)==null?void 0:O.type)?(o.openBlock(),o.createBlock(A,{key:0,modelValue:D.fieldValue,"onUpdate:modelValue":R=>D.fieldValue=R,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.fieldAttr.enum,(R,T)=>(o.openBlock(),o.createBlock(N,{key:T,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(j,{key:1,modelValue:D.fieldValue,"onUpdate:modelValue":R=>D.fieldValue=R,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(C.$slots,"action",{item:D,varList:w.value},void 0,!0)])])])):o.createCommentVNode("",!0)],64)}),128))]),o.createElementVNode("div",s6e,[o.createVNode(oe,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode($,{icon:C.Plus,text:""},{default:o.withCtx(()=>k[13]||(k[13]=[o.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",c6e,[o.createVNode(j,{"prefix-icon":C.Search,placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":k[6]||(k[6]=D=>u.value=D)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",u6e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(D,x)=>{var V;return o.openBlock(),o.createElementBlock(o.Fragment,{key:x},[D.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"field-item",onClick:O=>_(D)},[o.createElementVNode("span",f6e," ["+o.toDisplayString(o.unref(Te)(((V=D==null?void 0:D.fieldAttr)==null?void 0:V.type)||D.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)],8,d6e)):o.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(o.openBlock(),o.createElementBlock("div",G8e,[o.createVNode(X,{size:"17"},{default:o.withCtx(()=>[o.createVNode(H)]),_:1}),k[10]||(k[10]=o.createElementVNode("div",{class:"ml"},"必须先选择一个工作表后,才能设置可执行的动作",-1))]))],64)):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-b7f4d181"]])},Symbol.toStringTag,{value:"Module"})),h6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"wechatDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject("showUser");function r(){n()}const i=o.inject("getUserIds");o.watch(i,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=o.resolveComponent("el-form-item"),u=o.resolveComponent("el-tag"),d=o.resolveComponent("el-button"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[s[1]||(s[1]=o.createElementVNode("div",{class:"header"}," 发送服务号消息是指向已关注公众号的微信用户发送模版消息。发送对象支持使用人员字段(通过微信授权注册的外部门户用户)或文本字段(存储微信公众号openid)。使用微信公众号模板消息需要组织后台绑定已认证的企业服务号,并在微信公众号后台开通“模板消息”功能。 ",-1)),o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(c,{label:"通知内容"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),o.createVNode(c,{label:"通知人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(h,p)=>(o.openBlock(),o.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(d,{icon:o.unref($n),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-46fa206d"]])},Symbol.toStringTag,{value:"Module"})),g6e={key:0,class:"node-title"},m6e={key:1,class:"no-set"},y6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"addNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);if(i.set(t.node.config.workId,s),t.node.config.workName=s.workName,s.fieldList){const c=new Map(t.node.config.fields.map(u=>[u.columnName,u]));t.node.config.fields=s.fieldList.reduce((u,d)=>{const f=c.get(d.columnName);return f?u.push({...f,...d}):u.push(d),u},[])}}}),o.inject(Pt).register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.fields)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.fields.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",g6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",m6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),v6e={key:0},b6e={key:1,class:"no-set"},w6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"apiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.callApi.controlName,message:"请选择集成API"})),(r,i)=>t.node.config.callApi.controlName?(o.openBlock(),o.createElementBlock("div",v6e," 调用API:"+o.toDisplayString(t.node.config.callApi.controlName),1)):(o.openBlock(),o.createElementBlock("div",b6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),_6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"approverNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&t.node.config.selectNodeId&&t.node.config.workId,message:"请选择审批人或发起审批数据对象不能为空"})),(r,i)=>(o.openBlock(),o.createElementBlock("div",null,[i[0]||(i[0]=o.createTextVNode(" 审批人: ")),e.node.config.handlerScope===1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):o.createCommentVNode("",!0),e.node.config.handlerScope===2?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("部门主管")],64)):o.createCommentVNode("",!0),e.node.config.handlerScope===3?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode("连续多级主管")],64)):o.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),C6e={class:"ep-node-router"},E6e={key:0,class:"ep-condition-node-add"},k6e={class:"ep-node-router-box"},x6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"branchNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e;o.onMounted(async()=>{});const r=t,i=l=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(l,1):r("removeNode")},a=()=>{const l=Sn(et[ti].defaultNode),s=n.node.conditionNodes.length;n.node.conditionNodes.splice(s-1,0,l)};return(l,s)=>{var c;return o.openBlock(),o.createElementBlock("div",C6e,[(c=n.node)!=null&&c.isBanch?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.isView?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",E6e,"判断条件"))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.isView?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:a}," 添加条件 "))],64)),o.createElementVNode("div",k6e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.node.conditionNodes,(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:"ep-node-router-col",key:d},[o.createVNode(Eb,{"is-view":n.isView,node:u,conditionNodes:n.node.conditionNodes,conditionIndex:d,onRemoveNode:f=>i(d)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),d==0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[s[0]||(s[0]=o.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),s[1]||(s[1]=o.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):o.createCommentVNode("",!0),d==n.node.conditionNodes.length-1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[s[2]||(s[2]=o.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),s[3]||(s[3]=o.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):o.createCommentVNode("",!0)]))),128))]),o.createVNode(Xh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-9fd02762"]])},Symbol.toStringTag,{value:"Module"})),N6e={key:0,class:"node-title"},S6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"buttonNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[e.node.config.buttonName?(o.openBlock(),o.createElementBlock("div",N6e,' 按钮 "'+o.toDisplayString(e.node.config.buttonName)+'" ',1)):o.createCommentVNode("",!0),n[0]||(n[0]=o.createElementVNode("div",{class:"remark"},"点击按钮后立即执行",-1))],64))}}),[["__scopeId","data-v-f5243367"]])},Symbol.toStringTag,{value:"Module"})),D6e={key:1,class:"ep-node-condition"},B6e={key:0,class:"node-title"},V6e={key:1,class:"no-set"},A6e={key:2,class:"node-title"},O6e={class:"remark"},F6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.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||o.inject(Pt).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:"请选择条件"}}),(i,a)=>{var u,d,f,h,p,v,m,g;const l=o.resolveComponent("SuccessFilled"),s=o.resolveComponent("el-icon"),c=o.resolveComponent("CircleCloseFilled");return(d=(u=t.node)==null?void 0:u.config)!=null&&d.isBanch?(o.openBlock(),o.createElementBlock("div",{key:0,class:"branch-item",style:o.normalizeStyle((f=t.node.config)!=null&&f.isData?{color:"#01ca86"}:{color:"#f44336"})},[(h=t.node.config)!=null&&h.isData?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(s,{class:"mr"},{default:o.withCtx(()=>[o.createVNode(l)]),_:1}),a[0]||(a[0]=o.createElementVNode("span",null,"有数据",-1))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(s,{class:"mr"},{default:o.withCtx(()=>[o.createVNode(c)]),_:1}),a[1]||(a[1]=o.createElementVNode("span",null,"无数据",-1))],64))],4)):(o.openBlock(),o.createElementBlock("div",D6e,[((v=(p=t.node.config)==null?void 0:p.filter)==null?void 0:v.length)>0?(o.openBlock(),o.createElementBlock("div",B6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):t.node.isLastCondition?(o.openBlock(),o.createElementBlock("div",A6e,"其他条件进入此流程")):(o.openBlock(),o.createElementBlock("div",V6e," 设置此节点 ")),o.createElementVNode("div",O6e,[((g=(m=t.node.config)==null?void 0:m.filter)==null?void 0:g.length)>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("筛选"+o.toDisplayString(e.node.config.filter.length)+"个字段",1)],64)):o.createCommentVNode("",!0)])]))}}}),[["__scopeId","data-v-df26e984"]])},Symbol.toStringTag,{value:"Module"})),T6e={key:0,class:"node-title"},P6e={key:1,class:"no-set"},j6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"delNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,i)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",T6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",P6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),I6e={key:0},L6e={key:1,class:"no-set"},R6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"dingNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",I6e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",L6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),M6e={key:0,class:"node-title"},z6e={key:1,class:"no-set"},U6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"editNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);i.set(t.node.config.workId,s),t.node.config.workName=s.workName}}),o.inject(Pt).register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.fields)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.fields.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",M6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",z6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),H6e={key:0},W6e={key:1,class:"no-set"},q6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"emailNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",H6e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",W6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),G6e={key:0,class:"node-title"},K6e={key:1,class:"no-set"},Y6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"flowNode",props:{tempNodeId:{type:String},isView:{type:Boolean,default:!1},node:{type:Object,default:()=>({})}},setup(e){const t=e;o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"}));function r(i){window.open(`/workflow/${i.procId}`)}return(i,a)=>{const l=o.resolveComponent("Link"),s=o.resolveComponent("el-icon");return e.node.config.procName?(o.openBlock(),o.createElementBlock("div",G6e,[o.createTextVNode(" 执行流程: "+o.toDisplayString(e.node.config.procName)+" ",1),e.node.config.procId&&!t.isView?(o.openBlock(),o.createBlock(s,{key:0,size:"18",style:{color:"#1565c0"},onClick:a[0]||(a[0]=o.withModifiers(c=>r(e.node.config),["stop"]))},{default:o.withCtx(()=>[o.createVNode(l)]),_:1})):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",K6e,"设置此节点"))}}}),[["__scopeId","data-v-bf0accd5"]])},Symbol.toStringTag,{value:"Module"})),X6e={key:0,class:"node-title"},Z6e={key:1,class:"no-set"},J6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"loopNode",props:{tempNodeId:{type:String},isView:{type:Boolean,default:!1},node:{type:Object,default:()=>({})}},setup(e){const t=e;o.inject(Pt).register(t.tempNodeId,()=>{var i;return{valid:!!t.node.config.filter||!!((i=t.node.config.filter)!=null&&i.length),message:"请输入循环退出条件"}});function r(i){window.open(`/workflow/${i.procId}`)}return(i,a)=>{const l=o.resolveComponent("Link"),s=o.resolveComponent("el-icon");return e.node.config.type?(o.openBlock(),o.createElementBlock("div",X6e,[e.node.config.type!=="count"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" 满足条件时循环 ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" 循环指定次数 ")],64)),e.node.config.procName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(" : "+o.toDisplayString(e.node.config.procName),1)],64)):o.createCommentVNode("",!0),e.node.config.procId&&!t.isView?(o.openBlock(),o.createBlock(s,{key:3,size:"18",style:{color:"#1565c0","margin-left":"5px"},onClick:a[0]||(a[0]=o.withModifiers(c=>r(e.node.config),["stop"]))},{default:o.withCtx(()=>[o.createVNode(l)]),_:1})):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",Z6e,"设置此节点"))}}}),[["__scopeId","data-v-268e643a"]])},Symbol.toStringTag,{value:"Module"})),Q6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"notifyNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&!!t.node.config.selectNodeId,message:"请选择抄送人和数据对象"})),(r,i)=>(o.openBlock(),o.createElementBlock("div",null,[i[0]||(i[0]=o.createTextVNode(" 抄送人: ")),e.node.config.handlerScope===1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):o.createCommentVNode("",!0),e.node.config.handlerScope===2?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("部门主管")],64)):o.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),$6e={key:0,class:"node-title"},e5e={key:1,class:"no-set"},t5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"oddNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}const l=o.inject(Pt);return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);i.set(t.node.config.workId,s),t.node.config.workName=s.workName}}),l.register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.filter)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.filter.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",$6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",e5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),n5e={key:0,class:"node-title"},r5e={key:1,class:"no-set"},o5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"searchNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}const l=o.inject(Pt);return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);i.set(t.node.config.workId,s),t.node.config.workName=s.workName}}),l.register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.filter)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.filter.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",n5e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",r5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),i5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"startNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.selectNodeId,message:"请选择发起审批的数据对象"})),(r,i)=>(o.openBlock(),o.createElementBlock("div",null,"发起人:触发者"))}})},Symbol.toStringTag,{value:"Module"})),a5e={key:0,class:"node-title"},l5e={key:1,class:"no-set"},s5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"summaryNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(er),r=new Map,i=o.inject(Pt);return o.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.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?(o.openBlock(),o.createElementBlock("div",a5e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",l5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),c5e={key:0},u5e={key:1,class:"no-set"},d5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"systemNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",c5e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",u5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),f5e={class:"node-title"},p5e={class:"remark"},h5e={key:1,class:"no-set"},g5e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"tableNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(er),r=new Map,i=o.inject(Pt);o.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}}),i.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=o.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?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",f5e,'工作表 "'+o.toDisplayString(e.node.config.workName)+'"',1),o.createElementVNode("div",p5e,o.toDisplayString(a.value),1)],64)):(o.openBlock(),o.createElementBlock("div",h5e,"设置此节点"))}}),[["__scopeId","data-v-a1ebfe82"]])},Symbol.toStringTag,{value:"Module"})),m5e={key:0},y5e={key:1,class:"no-set"},v5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"timeNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.start,message:"请选择开始时间"})),(r,i)=>e.node.config.start?(o.openBlock(),o.createElementBlock("div",m5e,"从 "+o.toDisplayString(t.node.config.start)+" 开始",1)):(o.openBlock(),o.createElementBlock("div",y5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),b5e={key:0,class:"node-title"},w5e={key:1,class:"no-set"},_5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"uiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,i)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",b5e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",w5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),C5e={key:0},E5e={key:1,class:"no-set"},k5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"wechatNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",C5e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",E5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"}));return RG});
|
|
191
|
+
Please use '@${e}' event instead of props`,t}var kU=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const z4e=o.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=o.ref(null),r=o.shallowRef(null),i=o.ref(""),a=()=>{if(!n.value)return;const s=o.toRaw(e.defaultContent);wU({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:M4e(R4e({},e.defaultConfig),{onCreated(c){if(r.value=c,t.emit("onCreated",c),e.defaultConfig.onCreated){const u=Ya("onCreated");throw new Error(u)}},onChange(c){const u=c.getHtml();if(i.value=u,t.emit("update:modelValue",u),t.emit("onChange",c),e.defaultConfig.onChange){const d=Ya("onChange");throw new Error(d)}},onDestroyed(c){if(t.emit("onDestroyed",c),e.defaultConfig.onDestroyed){const u=Ya("onDestroyed");throw new Error(u)}},onMaxLength(c){if(t.emit("onMaxLength",c),e.defaultConfig.onMaxLength){const u=Ya("onMaxLength");throw new Error(u)}},onFocus(c){if(t.emit("onFocus",c),e.defaultConfig.onFocus){const u=Ya("onFocus");throw new Error(u)}},onBlur(c){if(t.emit("onBlur",c),e.defaultConfig.onBlur){const u=Ya("onBlur");throw new Error(u)}},customAlert(c,u){if(t.emit("customAlert",c,u),e.defaultConfig.customAlert){const d=Ya("customAlert");throw new Error(d)}},customPaste:(c,u)=>{if(e.defaultConfig.customPaste){const f=Ya("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 o.onMounted(()=>{a()}),o.watch(()=>e.modelValue,s=>{s!==i.value&&l(s)}),{box:n}}}),U4e={ref:"box",style:{height:"100%"}};function H4e(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",U4e,null,512)}var W4e=kU(z4e,[["render",H4e]]);const q4e=o.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=o.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)||_U({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return o.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),G4e={ref:"selector"};function K4e(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",G4e,null,512)}var Y4e=kU(q4e,[["render",K4e]]),xU={exports:{}};const X4e=Qq(F4e);(function(e,t){(function(n,r){e.exports=r(X4e)})(self,n=>(()=>{var r={857:s=>{s.exports=n}},i={};function a(s){var c=i[s];if(c!==void 0)return c.exports;var u=i[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:()=>V});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(O,R,T,U,Z){return{sel:O,data:R,children:T,text:U,elm:Z,key:R===void 0?void 0:R.key}}const u=Array.isArray;function d(O){return typeof O=="string"||typeof O=="number"||O instanceof String||O instanceof Number}function f(O,R,T){if(O.ns="http://www.w3.org/2000/svg",T!=="foreignObject"&&R!==void 0)for(let U=0;U<R.length;++U){const Z=R[U];if(typeof Z=="string")continue;const ie=Z.data;ie!==void 0&&f(ie,Z.children,Z.sel)}}function h(O,R,T){let U,Z,ie,G={};if(T!==void 0?(R!==null&&(G=R),u(T)?U=T:d(T)?Z=T.toString():T&&T.sel&&(U=[T])):R!=null&&(u(R)?U=R:d(R)?Z=R.toString():R&&R.sel?U=[R]:G=R),U!==void 0)for(ie=0;ie<U.length;++ie)d(U[ie])&&(U[ie]=c(void 0,void 0,void 0,U[ie],void 0));return O[0]!=="s"||O[1]!=="v"||O[2]!=="g"||O.length!==3&&O[3]!=="."&&O[3]!=="#"||f(G,U,O),c(O,G,U,Z,void 0)}const p={type:"attachment",renderElem:function(O,R,T){var U=T.isDisabled(),Z=s.DomEditor.isNodeSelected(T,O),ie=O,G=ie.fileName,J=G===void 0?"":G,ge=ie.link,ae=ge===void 0?"":ge;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:Z&&!U?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:U?"pointer":"inherit"},on:{click:function(){U&&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"}}),J])}};function v(O){return O!==null&&typeof O=="object"&&"constructor"in O&&O.constructor===Object}function m(O={},R={}){Object.keys(R).forEach(T=>{O[T]===void 0?O[T]=R[T]:v(R[T])&&v(O[T])&&Object.keys(R[T]).length>0&&m(O[T],R[T])})}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 O=typeof document<"u"?document:{};return m(O,g),O}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:O=>typeof setTimeout>"u"?(O(),null):setTimeout(O,0),cancelAnimationFrame(O){typeof setTimeout<"u"&&clearTimeout(O)}};function w(){const O=typeof window<"u"?window:{};return m(O,y),O}class _ extends Array{constructor(R){typeof R=="number"?super(R):(super(...R||[]),function(T){const U=T.__proto__;Object.defineProperty(T,"__proto__",{get:()=>U,set(Z){U.__proto__=Z}})}(this))}}function E(O,R){const T=w(),U=b();let Z=[];if(!R&&O instanceof _)return O;if(!O)return new _(Z);if(typeof O=="string"){const ie=O.trim();if(ie.indexOf("<")>=0&&ie.indexOf(">")>=0){let G="div";ie.indexOf("<li")===0&&(G="ul"),ie.indexOf("<tr")===0&&(G="tbody"),ie.indexOf("<td")!==0&&ie.indexOf("<th")!==0||(G="tr"),ie.indexOf("<tbody")===0&&(G="table"),ie.indexOf("<option")===0&&(G="select");const J=U.createElement(G);J.innerHTML=ie;for(let ge=0;ge<J.childNodes.length;ge+=1)Z.push(J.childNodes[ge])}else Z=function(G,J){if(typeof G!="string")return[G];const ge=[],ae=J.querySelectorAll(G);for(let ee=0;ee<ae.length;ee+=1)ge.push(ae[ee]);return ge}(O.trim(),R||U)}else if(O.nodeType||O===T||O===U)Z.push(O);else if(Array.isArray(O)){if(O instanceof _)return O;Z=O}return new _(function(ie){const G=[];for(let J=0;J<ie.length;J+=1)G.indexOf(ie[J])===-1&&G.push(ie[J]);return G}(Z))}function S(...O){let[R,T,U,Z]=O;function ie(ae){const ee=ae.target;if(!ee)return;const me=ae.target.dom7EventData||[];if(me.indexOf(ae)<0&&me.unshift(ae),E(ee).is(T))U.apply(ee,me);else{const it=E(ee).parents();for(let Ne=0;Ne<it.length;Ne+=1)E(it[Ne]).is(T)&&U.apply(it[Ne],me)}}function G(ae){const ee=ae&&ae.target&&ae.target.dom7EventData||[];ee.indexOf(ae)<0&&ee.unshift(ae),U.apply(this,ee)}typeof O[1]=="function"&&([R,U,Z]=O,T=void 0),Z||(Z=!1);const J=R.split(" ");let ge;for(let ae=0;ae<this.length;ae+=1){const ee=this[ae];if(T)for(ge=0;ge<J.length;ge+=1){const me=J[ge];ee.dom7LiveListeners||(ee.dom7LiveListeners={}),ee.dom7LiveListeners[me]||(ee.dom7LiveListeners[me]=[]),ee.dom7LiveListeners[me].push({listener:U,proxyListener:ie}),ee.addEventListener(me,ie,Z)}else for(ge=0;ge<J.length;ge+=1){const me=J[ge];ee.dom7Listeners||(ee.dom7Listeners={}),ee.dom7Listeners[me]||(ee.dom7Listeners[me]=[]),ee.dom7Listeners[me].push({listener:U,proxyListener:G}),ee.addEventListener(me,G,Z)}}return this}function C(){for(let O=0;O<this.length;O+=1)this[O].style.display="none";return this}function k(...O){let R;const T=b();for(let U=0;U<O.length;U+=1){R=O[U];for(let Z=0;Z<this.length;Z+=1)if(typeof R=="string"){const ie=T.createElement("div");for(ie.innerHTML=R;ie.firstChild;)this[Z].appendChild(ie.firstChild)}else if(R instanceof _)for(let ie=0;ie<R.length;ie+=1)this[Z].appendChild(R[ie]);else this[Z].appendChild(R)}return this}E.fn=_.prototype;const N="resize scroll".split(" ");function A(O){return function(...R){if(R[0]===void 0){for(let T=0;T<this.length;T+=1)N.indexOf(O)<0&&(O in this[T]?this[T][O]():E(this[T]).trigger(O));return this}return this.on(O,...R)}}const F=A("click"),I=E;C&&(I.fn.hide=C),k&&(I.fn.append=k),F&&(I.fn.click=F),S&&(I.fn.on=S);const W=I;var P=function(){return P=Object.assign||function(O){for(var R,T=1,U=arguments.length;T<U;T++)for(var Z in R=arguments[T])Object.prototype.hasOwnProperty.call(R,Z)&&(O[Z]=R[Z]);return O},P.apply(this,arguments)},H=function(O,R,T,U){return new(T||(T=Promise))(function(Z,ie){function G(ae){try{ge(U.next(ae))}catch(ee){ie(ee)}}function J(ae){try{ge(U.throw(ae))}catch(ee){ie(ee)}}function ge(ae){var ee;ae.done?Z(ae.value):(ee=ae.value,ee instanceof T?ee:new T(function(me){me(ee)})).then(G,J)}ge((U=U.apply(O,[])).next())})},X=function(O,R){var T,U,Z,ie,G={label:0,sent:function(){if(1&Z[0])throw Z[1];return Z[1]},trys:[],ops:[]};return ie={next:J(0),throw:J(1),return:J(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function J(ge){return function(ae){return function(ee){if(T)throw new TypeError("Generator is already executing.");for(;G;)try{if(T=1,U&&(Z=2&ee[0]?U.return:ee[0]?U.throw||((Z=U.return)&&Z.call(U),0):U.next)&&!(Z=Z.call(U,ee[1])).done)return Z;switch(U=0,Z&&(ee=[2&ee[0],Z.value]),ee[0]){case 0:case 1:Z=ee;break;case 4:return G.label++,{value:ee[1],done:!1};case 5:G.label++,U=ee[1],ee=[0];continue;case 7:ee=G.ops.pop(),G.trys.pop();continue;default:if(!((Z=(Z=G.trys).length>0&&Z[Z.length-1])||ee[0]!==6&&ee[0]!==2)){G=0;continue}if(ee[0]===3&&(!Z||ee[1]>Z[0]&&ee[1]<Z[3])){G.label=ee[1];break}if(ee[0]===6&&G.label<Z[1]){G.label=Z[1],Z=ee;break}if(Z&&G.label<Z[2]){G.label=Z[2],G.ops.push(ee);break}Z[2]&&G.ops.pop(),G.trys.pop();continue}ee=R.call(O,G)}catch(me){ee=[6,me],U=0}finally{T=Z=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}([ge,ae])}}};function L(O){return O.getMenuConfig("uploadAttachment")}function j(O,R,T){if(R&&T){O.restoreSelection();var U={type:"attachment",fileName:R,link:T,children:[{text:""}]};O.insertNode(U),O.move(1);var Z=L(O).onInsertedAttachment;Z&&Z(U)}}function $(O,R){return H(this,void 0,void 0,function(){var T,U,Z,ie;return X(this,function(G){switch(G.label){case 0:return T=function(J){var ge=oe.get(J);if(ge!=null)return ge;var ae=L(J),ee=ae.onSuccess,me=ae.onProgress,it=ae.onFailed,Ne=ae.customInsert,Ke=ae.onError;return ge=(0,s.createUploader)(P(P({},ae),{onProgress:function(Me){J.showProgressBar(Me),me&&me(Me)},onSuccess:function(Me,lt){if(Ne)Ne(lt,Me,function(ln,Zn){return j(J,ln,Zn)});else{var Se=lt.errno,Tt=Se===void 0?1:Se,xn=lt.data,Xn=xn===void 0?{}:xn;if(Tt!==0)return console.error("'".concat(Me.name,"' upload failed"),lt),void it(Me,lt);var Rt=Xn.url,mn=Rt===void 0?"":Rt;j(J,Me.name,mn),ee(Me,lt)}},onError:function(Me,lt,Se){var Tt=Me.name;console.error("'".concat(Tt," upload error"),lt,Se),Ke&&Ke(Me,lt,Se)}})),oe.set(J,ge),ge}(O),U=R.name,Z=R.type,ie=R.size,T.addFile({name:U,type:Z,size:ie,data:R}),[4,T.upload()];case 1:return G.sent(),[2]}})})}var oe=new WeakMap;const D=function(){function O(){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 O.prototype.getValue=function(R){return""},O.prototype.isActive=function(R){return!1},O.prototype.exec=function(R,T){var U=this.getMenuConfig(R),Z=U.allowedFileTypes,ie=Z===void 0?[]:Z,G=U.customBrowseAndUpload;if(G)G(function(ee,me){return j(R,ee,me)});else{var J="";ie.length>0&&(J='accept="'.concat(ie.join(", "),'"'));var ge=W("body"),ae=W('<input type="file" '.concat(J," multiple/>"));ae.hide(),ge.append(ae),ae.click(),ae.on("change",function(){var ee=ae[0].files;(function(me,it){var Ne,Ke;H(this,void 0,void 0,function(){var Me,lt,Se,Tt,xn,Xn;return X(this,function(Rt){switch(Rt.label){case 0:if(it==null)return[2];Me=Array.prototype.slice.call(it),lt=L(me).customUpload,Rt.label=1;case 1:Rt.trys.push([1,9,10,15]),Se=function(mn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ln,Zn=mn[Symbol.asyncIterator];return Zn?Zn.call(mn):(mn=typeof __values=="function"?__values(mn):mn[Symbol.iterator](),ln={},Br("next"),Br("throw"),Br("return"),ln[Symbol.asyncIterator]=function(){return this},ln);function Br(sn){ln[sn]=mn[sn]&&function(cn){return new Promise(function(Nn,On){(function(un,fr,Os,Jo){Promise.resolve(Jo).then(function(yo){un({value:yo,done:Os})},fr)})(Nn,On,(cn=mn[sn](cn)).done,cn.value)})}}}(Me),Rt.label=2;case 2:return[4,Se.next()];case 3:return(Tt=Rt.sent()).done?[3,8]:(xn=Tt.value,lt?[4,lt(xn,function(mn,ln){return j(me,mn,ln)})]:[3,5]);case 4:return Rt.sent(),[3,7];case 5:return[4,$(me,xn)];case 6:Rt.sent(),Rt.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return Xn=Rt.sent(),Ne={error:Xn},[3,15];case 10:return Rt.trys.push([10,,13,14]),Tt&&!Tt.done&&(Ke=Se.return)?[4,Ke.call(Se)]:[3,12];case 11:Rt.sent(),Rt.label=12;case 12:return[3,14];case 13:if(Ne)throw Ne.error;return[7];case 14:return[7];case 15:return[2]}})})})(R,ee)})}},O.prototype.isDisabled=function(R){var T=R.selection;if(T==null||s.SlateRange.isExpanded(T))return!0;var U=s.DomEditor.getSelectedElems(R);return!!U.some(function(Z){return R.isVoid(Z)})||!!U.some(function(Z){return s.DomEditor.getNodeType(Z)==="pre"})},O.prototype.getMenuConfig=function(R){return R.getMenuConfig("uploadAttachment")},O}(),x=function(){function O(){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 O.prototype.getValue=function(R){var T=this.getSelectedElem(R);return T==null?"":T.link},O.prototype.isActive=function(R){return!1},O.prototype.exec=function(R,T){T&&typeof T=="string"&&window.open(T,"_blank")},O.prototype.isDisabled=function(R){var T=R.selection;return T==null||!!s.SlateRange.isExpanded(T)||this.getSelectedElem(R)==null},O.prototype.getSelectedElem=function(R){var T=s.DomEditor.getSelectedNodeByType(R,"attachment");return T??null},O}(),V={editorPlugin:function(O){var R=O.isInline,T=O.isVoid,U=O;return U.isInline=function(Z){return s.DomEditor.getNodeType(Z)==="attachment"||R(Z)},U.isVoid=function(Z){return s.DomEditor.getNodeType(Z)==="attachment"||T(Z)},U},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(O,R){var T=O,U=T.link,Z=U===void 0?"":U,ie=T.fileName,G=ie===void 0?"":ie;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(Z,'" download="').concat(G,'">').concat(G,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(O,R,T){return{type:"attachment",link:O.getAttribute("href")||"",fileName:O.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new D},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(O){return O},onProgress:function(O){},onSuccess:function(O,R){},onFailed:function(O,R){},onError:function(O,R,T){},onInsertedAttachment:function(O){}}},{key:"downloadAttachment",factory:function(){return new x}}]}})(),l})())})(xU);var Z4e=xU.exports;const J4e=Jq(Z4e),Q4e=["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"],NU={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"},$4e=()=>({variables:NU,getPrefixClass:t=>`${NU.namespace}-${t}`}),tb=ZU(tt(o.defineComponent({name:"WangEditor",__name:"index",props:o.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:o.mergeModels(["imageUpload","imageBeforeUpload","imageProgress","imageSuccess","imageFailed","imageError","videoUpload","fileBeforeUpload","fileUpload","onPaste","onCreated"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const{getPrefixClass:r}=$4e(),i=r("wang-editor"),a=e,l=n,s=o.useModel(e,"modelValue"),c=o.shallowRef(),u=o.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=o.computed(()=>({toolbarKeys:a.toolbarKeys.length>0?a.toolbarKeys:Q4e,excludeKeys:a.excludeKeys,insertKeys:{index:22,keys:["uploadAttachment"]}}));o.watch(()=>a.disabled,()=>{o.unref(c)&&(a.disabled?o.unref(c).disable():o.unref(c).enable())}),o.onMounted(()=>{try{an.registerModule(J4e)}catch{}});const f=p=>{c.value=p,a.disabled?o.unref(c).disable():o.unref(c).enable(),l("onCreated",p)},h=(p,v)=>{l("onPaste",p,v)};return o.onBeforeUnmount(()=>{o.unref(c)&&o.unref(c).destroy()}),t({editor:c}),(p,v)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([o.unref(i),{disabled:p.disabled}])},[p.hideToolBar?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Y4e),{key:0,class:o.normalizeClass(`${o.unref(i)}__toolbar`),editor:c.value,defaultConfig:d.value,mode:p.mode},null,8,["class","editor","defaultConfig","mode"])),o.createVNode(o.unref(W4e),o.mergeProps({class:`${o.unref(i)}__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"]])),exe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"dingDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject("showUser");function r(){n()}const i=o.inject("getUserIds");o.watch(i,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=o.resolveComponent("el-form-item"),u=o.resolveComponent("el-tag"),d=o.resolveComponent("el-button"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[s[1]||(s[1]=o.createElementVNode("div",{class:"header"}," 发送钉钉消息是指以企业工作通知会话中某个微应用的名义推送到员工的通知消息 ",-1)),o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(c,{label:"通知内容"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),o.createVNode(c,{label:"通知人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(h,p)=>(o.openBlock(),o.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(d,{icon:o.unref($n),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-29c0611f"]])},Symbol.toStringTag,{value:"Module"})),txe={style:{float:"left"}},nxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},rxe={key:0,class:"no-work"},oxe={key:1,class:"config-detail"},ixe={class:"config-item"},axe={class:"children-query",style:{"margin-top":"20px"}},lxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},sxe={style:{flex:"1"}},cxe={class:"flex-both"},uxe={class:"flex"},dxe={class:"txt-label"},fxe={class:"field"},pxe={class:"condition-select"},hxe={key:0,class:"function-tag"},gxe={class:"box"},mxe={class:"ellipsis table-name"},yxe={class:"field"},vxe={class:"field-name ellipsis"},bxe={style:{margin:"20px 0"}},wxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},_xe={class:"field-list"},Cxe=["onClick"],Exe={class:"field"},kxe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"editDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.ref(""),i=o.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","loop"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(At(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","loop"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(At(y,v)){l(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&l(p.childNode,v,m),m}const s=o.computed(()=>{const p=[];return a(n.value.nodeConfig,t.node.nodeId,p),p}),c=o.computed(()=>{const p=[];return p.push(Ar.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=Sn(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=o.resolveComponent("el-option"),g=o.resolveComponent("el-select"),b=o.resolveComponent("el-form-item"),y=o.resolveComponent("el-form"),w=o.resolveComponent("InfoFilled"),_=o.resolveComponent("el-icon"),E=o.resolveComponent("Close"),S=o.resolveComponent("el-input"),C=o.resolveComponent("el-button"),k=o.resolveComponent("el-popover");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(y,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(b,{label:"选择更新对象"},{default:o.withCtx(()=>[o.createVNode(g,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":v[0]||(v[0]=N=>t.config.selectNodeId=N),filterable:"",onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(N,A)=>(o.openBlock(),o.createBlock(m,{key:A,label:N.nodeName,value:N.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",txe,o.toDisplayString(N.nodeName),1),o.createElementVNode("span",nxe,' 工作表 "'+o.toDisplayString(N.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),v[6]||(v[6]=o.createElementVNode("div",{class:"title"},"更新字段",-1)),t.config.selectNodeId?(o.openBlock(),o.createElementBlock("div",oxe,[o.createElementVNode("div",ixe,[o.createElementVNode("div",axe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(N,A)=>{var F,I;return o.openBlock(),o.createElementBlock(o.Fragment,{key:A},[N.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",lxe,[o.createElementVNode("div",sxe,[o.createElementVNode("div",cxe,[o.createElementVNode("div",uxe,[o.createElementVNode("span",dxe,[o.createElementVNode("span",fxe," ["+o.toDisplayString(o.unref(Te)(((F=N==null?void 0:N.fieldAttr)==null?void 0:F.type)||N.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(N.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(g,{modelValue:N.compare,"onUpdate:modelValue":W=>N.compare=W,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(m,{label:"设为",value:"eq"}),o.createVNode(m,{label:"添加",value:"add"}),o.createVNode(m,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(_,{class:"close-icon",onClick:W=>f(A)},{default:o.withCtx(()=>[o.createVNode(E)]),_:2},1032,["onClick"])]),o.createElementVNode("span",pxe,[N.nodeId?(o.openBlock(),o.createElementBlock("div",hxe,[o.createElementVNode("div",gxe,[o.createElementVNode("div",mxe,[o.createElementVNode("span",yxe," ["+o.toDisplayString(o.unref(Te)(N==null?void 0:N.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(N.nodeName),1),v[3]||(v[3]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),v[4]||(v[4]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",vxe,o.toDisplayString(N.fieldValueName),1)]),o.createVNode(_,{onClick:W=>h(N)},{default:o.withCtx(()=>[o.createVNode(E)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((I=N==null?void 0:N.fieldAttr)==null?void 0:I.type)?(o.openBlock(),o.createBlock(g,{key:0,modelValue:N.fieldValue,"onUpdate:modelValue":W=>N.fieldValue=W,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(N.fieldAttr.enum,(W,P)=>(o.openBlock(),o.createBlock(m,{key:P,label:W.label,value:W.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(S,{key:1,modelValue:N.fieldValue,"onUpdate:modelValue":W=>N.fieldValue=W,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(p.$slots,"action",{item:N,varList:c.value},void 0,!0)])])])):o.createCommentVNode("",!0)],64)}),128))]),o.createElementVNode("div",bxe,[o.createVNode(k,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(C,{icon:o.unref($n),text:""},{default:o.withCtx(()=>v[5]||(v[5]=[o.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",wxe,[o.createVNode(S,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":v[1]||(v[1]=N=>r.value=N)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",_xe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(N,A)=>{var F;return o.openBlock(),o.createElementBlock(o.Fragment,{key:A},[N.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"field-item",onClick:I=>d(N)},[o.createElementVNode("span",Exe," ["+o.toDisplayString(o.unref(Te)(((F=N==null?void 0:N.fieldAttr)==null?void 0:F.type)||N.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(N.columnComment),1)],8,Cxe)):o.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(o.openBlock(),o.createElementBlock("div",rxe,[o.createVNode(_,{size:"17"},{default:o.withCtx(()=>[o.createVNode(w)]),_:1}),v[2]||(v[2]=o.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-f041cd46"]])},Symbol.toStringTag,{value:"Module"})),xxe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"emailDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=ref(0),r=o.inject("showUser");function i(){n.value=0,r()}function a(){n.value=1,r()}const l=o.inject("getUserIds");o.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=o.resolveComponent("el-tag"),f=o.resolveComponent("el-button"),h=o.resolveComponent("el-form-item"),p=o.resolveComponent("el-input"),v=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[u[2]||(u[2]=o.createElementVNode("div",{class:"header"},"仅支持通过代发邮件",-1)),o.createVNode(v,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(h,{label:"收件人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(m,g)=>(o.openBlock(),o.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.accounts,g),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(f,{icon:o.unref($n),circle:"",size:"small",onClick:i},null,8,["icon"])])]),_:1}),o.createVNode(h,{label:"抄送人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.notifys,(m,g)=>(o.openBlock(),o.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.notify,g),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(f,{icon:o.unref($n),circle:"",size:"small",onClick:a},null,8,["icon"])])]),_:1}),o.createVNode(h,{label:"主题"},{default:o.withCtx(()=>[o.createVNode(p,{modelValue:t.config.title,"onUpdate:modelValue":u[0]||(u[0]=m=>t.config.title=m)},null,8,["modelValue"])]),_:1}),o.createVNode(h,{label:"正文"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{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"})),Nxe={class:"no-work",style:{width:"100%","line-height":"14px"}},Sxe={style:{color:"#1565c0",cursor:"pointer"}},Dxe={style:{float:"left"}},Bxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Vxe={class:"sub-title"},Axe={style:{color:"#1e88e5 !important"}},Oxe={class:"no-work"},Fxe={class:"ml"},Txe={key:0,style:{color:"red"}},Pxe={key:1},jxe={class:"config-detail"},Ixe={class:"config-item"},Lxe={class:"children-query",style:{"margin-top":"20px"}},Rxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Mxe={style:{flex:"1"}},zxe={class:"flex-both"},Uxe={class:"flex"},Hxe={class:"txt-label"},Wxe={class:"field"},qxe={class:"condition-select"},Gxe={key:0,class:"function-tag"},Kxe={class:"box"},Yxe={class:"ellipsis table-name"},Xxe={class:"field"},Zxe={class:"field-name ellipsis"},Jxe={style:{margin:"20px 0"}},Qxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},$xe={class:"field-list"},eNe=["onClick"],tNe={class:"field"},nNe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"flowDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.ref(""),i=o.computed(()=>{var k,N;const C=r.value.trim().toLowerCase();return(N=(k=t.config)==null?void 0:k.fields)==null?void 0:N.filter(A=>[A.columnName,A.columnComment].some(F=>String(F||"").toLowerCase().includes(C)))});function a(C,k,N=[]){if(C.nodeId===k)return N;["odd","search","add","button","table","loop"].includes(C.nodeType)&&N.push(C);let F=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const I of C.conditionNodes)if(At(I,k)){a(I.childNode,k,N),F=!0;break}}return!F&&C.childNode&&a(C.childNode,k,N),N}const l=o.computed(()=>{const C=[];return a(n.value.nodeConfig,t.node.nodeId,C),C}),s=o.inject("getFlowFun"),c=o.inject(er),u=o.inject("delProcFun"),d=o.inject("getParentFlowFun"),f=o.ref([]);async function h(){f.value=await s(t.config.workId)}h(),t.config.procId||(t.config.procId=$a());const p=o.computed(()=>{const C=[];C.push(Ar.defaultNode);const k=l.value.find(N=>N.nodeId===t.config.selectNodeId);return k&&C.push(k),C});async function v(){y();const C=l.value.find(k=>k.nodeId===t.config.selectNodeId);C&&(t.config.procId||(t.config.procId=$a()),t.config.nodeType=C.nodeType,t.config.workId=C.config.workId,t.config.workName=C.config.workName,t.config.fields=C.config.fields,h())}function m(C){C.compare="eq",t.config.params.push(C)}function g(C){t.config.params.splice(C,1)}function b(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}function y(){t.config.procId=$a(),t.config.procName="子流程"}function w(C){t.config.procId=C.procId,t.config.procName=C.procName}const _=o.ref([]);async function E(){if(t.config.workId){const k=await c(t.config.workId);k&&(t.config.fields=k.fieldList,t.config.workName=k.workName)}const C=await d(t.config.procId,t.node.nodeId,t.node.selectNodeId);C&&(t.config.procName=C.config.procName,_.value=C==null?void 0:C.parentProc)}E();async function S(C,k){await u({parentProc:C,...k,nodeId:t.node.nodeId}),E()}return(C,k)=>{const N=o.resolveComponent("el-form-item"),A=o.resolveComponent("Close"),F=o.resolveComponent("el-icon"),I=o.resolveComponent("el-form"),W=o.resolveComponent("el-option"),P=o.resolveComponent("el-select"),H=o.resolveComponent("el-radio"),X=o.resolveComponent("el-radio-group"),L=o.resolveComponent("arrow-down"),j=o.resolveComponent("el-dropdown-item"),$=o.resolveComponent("el-dropdown-menu"),oe=o.resolveComponent("el-dropdown"),D=o.resolveComponent("el-input"),x=o.resolveComponent("el-button"),V=o.resolveComponent("el-popover");return o.openBlock(),o.createElementBlock("div",null,[o.unref(n).procType==="flow"?(o.openBlock(),o.createBlock(I,{key:0,model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(N,{label:"数据源"},{default:o.withCtx(()=>[o.createTextVNode(" 工作表: "+o.toDisplayString(t.config.workName),1)]),_:1}),o.createVNode(N,{label:"被以下工作流触发"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.value,O=>(o.openBlock(),o.createElementBlock("div",Nxe,[o.createTextVNode(o.toDisplayString(O.procName)+" ",1),o.createElementVNode("span",Sxe,[o.createVNode(F,{onClick:R=>S(O,t.config)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])]))),256))]),_:1})]),_:1},8,["model"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(I,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(N,{label:"选择数据对象"},{default:o.withCtx(()=>[o.createVNode(P,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":k[0]||(k[0]=O=>t.config.selectNodeId=O),filterable:"",onChange:v},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(O,R)=>(o.openBlock(),o.createBlock(W,{key:R,label:O.nodeName,value:O.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",Dxe,o.toDisplayString(O.nodeName),1),o.createElementVNode("span",Bxe,' 工作表 "'+o.toDisplayString(O.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t.config.nodeType==="odd"?(o.openBlock(),o.createBlock(N,{key:0,label:"多条数据执行方式"},{default:o.withCtx(()=>[k[7]||(k[7]=o.createElementVNode("span",{class:"remark"}," 您选择了多条数据对象,将根据数据的条数执行多条子流程 ",-1)),o.createVNode(X,{modelValue:e.config.oddType,"onUpdate:modelValue":k[1]||(k[1]=O=>e.config.oddType=O)},{default:o.withCtx(()=>[o.createVNode(H,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>k[3]||(k[3]=[o.createTextVNode("并行")])),_:1}),k[5]||(k[5]=o.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将同时执行各自的流程。即便某条子流程运行中止,也不影响其他子流程的执行。 ",-1)),o.createVNode(H,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>k[4]||(k[4]=[o.createTextVNode("逐条执行")])),_:1}),k[6]||(k[6]=o.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将依次执行流程。每条子流程需要等前一条子流程通过后再开始触发 ",-1))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["model"]),o.createElementVNode("div",Vxe,[k[10]||(k[10]=o.createElementVNode("span",null,"执行子流程",-1)),o.createVNode(oe,null,{dropdown:o.withCtx(()=>[o.createVNode($,null,{default:o.withCtx(()=>[o.createVNode(j,{onClick:y},{default:o.withCtx(()=>k[9]||(k[9]=[o.createTextVNode("清除选择")])),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(O,R)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:R},[R===0?(o.openBlock(),o.createBlock(j,{key:0,divided:"",onClick:T=>w(O)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(O.procName),1)]),_:2},1032,["onClick"])):(o.openBlock(),o.createBlock(j,{key:1,onClick:T=>w(O)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(O.procName),1)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",Axe,[k[8]||(k[8]=o.createTextVNode(" 选择已有流程 ")),o.createVNode(F,{class:"el-icon--right"},{default:o.withCtx(()=>[o.createVNode(L)]),_:1})])]),_:1})]),o.createElementVNode("div",Oxe,[o.createElementVNode("div",Fxe,[!t.config.procName||t.config.procName==="子流程"?(o.openBlock(),o.createElementBlock("span",Txe,"节点保存后,将自动创建一个新的子流程(新建)")):(o.openBlock(),o.createElementBlock("span",Pxe,o.toDisplayString(t.config.procName),1))])]),o.createElementVNode("div",jxe,[o.createElementVNode("div",Ixe,[o.createElementVNode("div",Lxe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.params,(O,R)=>{var T,U;return o.openBlock(),o.createElementBlock(o.Fragment,{key:R},[O.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",Rxe,[o.createElementVNode("div",Mxe,[o.createElementVNode("div",zxe,[o.createElementVNode("div",Uxe,[o.createElementVNode("span",Hxe,[o.createElementVNode("span",Wxe," ["+o.toDisplayString(o.unref(Te)(((T=O==null?void 0:O.fieldAttr)==null?void 0:T.type)||O.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(O.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(P,{modelValue:O.compare,"onUpdate:modelValue":Z=>O.compare=Z,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(W,{label:"设为",value:"eq"}),o.createVNode(W,{label:"添加",value:"add"}),o.createVNode(W,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(F,{class:"close-icon",onClick:Z=>g(R)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])]),o.createElementVNode("span",qxe,[O.nodeId?(o.openBlock(),o.createElementBlock("div",Gxe,[o.createElementVNode("div",Kxe,[o.createElementVNode("div",Yxe,[o.createElementVNode("span",Xxe," ["+o.toDisplayString(o.unref(Te)(O==null?void 0:O.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(O.nodeName),1),k[11]||(k[11]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),k[12]||(k[12]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",Zxe,o.toDisplayString(O.fieldValueName),1)]),o.createVNode(F,{onClick:Z=>b(O)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((U=O==null?void 0:O.fieldAttr)==null?void 0:U.type)?(o.openBlock(),o.createBlock(P,{key:0,modelValue:O.fieldValue,"onUpdate:modelValue":Z=>O.fieldValue=Z,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(O.fieldAttr.enum,(Z,ie)=>(o.openBlock(),o.createBlock(W,{key:ie,label:Z.label,value:Z.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(D,{key:1,modelValue:O.fieldValue,"onUpdate:modelValue":Z=>O.fieldValue=Z,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(C.$slots,"action",{item:O,varList:p.value},void 0,!0)])])])):o.createCommentVNode("",!0)],64)}),128))]),o.createElementVNode("div",Jxe,[o.createVNode(V,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(x,{icon:o.unref($n),text:""},{default:o.withCtx(()=>k[13]||(k[13]=[o.createTextVNode("添加参数")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",Qxe,[o.createVNode(D,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":k[2]||(k[2]=O=>r.value=O)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",$xe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(O,R)=>{var T;return o.openBlock(),o.createElementBlock(o.Fragment,{key:R},[O.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"field-item",onClick:U=>m(O)},[o.createElementVNode("span",tNe," ["+o.toDisplayString(o.unref(Te)(((T=O==null?void 0:O.fieldAttr)==null?void 0:T.type)||O.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(O.columnComment),1)],8,eNe)):o.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])],64))])}}}),[["__scopeId","data-v-2ba5426e"]])},Symbol.toStringTag,{value:"Module"})),rNe={class:"condition-select"},oNe={key:0,class:"function-tag"},iNe={class:"box"},aNe={class:"ellipsis table-name"},lNe={class:"field"},sNe={class:"field-name ellipsis"},cNe={class:"no-work",style:{width:"100%","line-height":"14px"}},uNe={style:{color:"#1565c0",cursor:"pointer"}},dNe={class:"condition-select"},fNe={key:0,class:"function-tag"},pNe={class:"box"},hNe={class:"ellipsis table-name"},gNe={class:"field"},mNe={class:"field-name ellipsis"},yNe={key:0,class:"config-detail"},vNe={class:"config-item"},bNe={class:"children-query",style:{"margin-top":"20px"}},wNe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},_Ne={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},CNe={style:{flex:"1"}},ENe={class:"flex-both"},kNe={class:"flex"},xNe={class:"txt-label"},NNe={class:"field"},SNe={class:"condition-select"},DNe={key:0,class:"function-tag"},BNe={class:"box"},VNe={class:"ellipsis table-name"},ANe={class:"field"},ONe={class:"field-name ellipsis"},FNe={style:{margin:"20px 0"}},TNe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},PNe={class:"field-list"},jNe=["onClick"],INe={class:"field"},LNe={style:{display:"flex",width:"100%"}},RNe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"loopDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.ref(""),i=o.computed(()=>{var S,C;const E=r.value.trim().toLowerCase();return(C=(S=t.config)==null?void 0:S.fields)==null?void 0:C.filter(k=>[k.columnName,k.columnComment].some(N=>String(N||"").toLowerCase().includes(E)))}),a=o.inject("getParentLoopFun"),l=o.inject("delProcFun");t.config.procId||(t.config.procId=$a());function s(E,S,C=[]){if(E.nodeId===S)return C;["search","flow","add","button","table","api","summary","loop"].includes(E.nodeType)&&C.push(E);let N=!1;if(E.nodeType==="router"&&E.conditionNodes){for(const A of E.conditionNodes)if(At(A,S)){s(A.childNode,S,C),N=!0;break}}return!N&&E.childNode&&s(E.childNode,S,C),C}const c=o.computed(()=>{const E=[];return E.push(Ar.defaultNode),s(n.value.nodeConfig,t.node.nodeId,E),E}),u=E=>t.config.type==="count"?E<3:E===0;function d(){t.config.fields.push({columnName:"",columnComment:"",type:"Text",fieldValue:""})}function f(E){t.config.fields.splice(E,1)}function h(E){E.nodeId="",E.nodeName="",E.fieldValue=void 0,E.fieldValueName=""}function p(E){t.config.type==="count"?t.config.fields=[{columnName:"index",columnComment:"循环开始值",type:"Number",fieldValue:1},{columnName:"end",columnComment:"循环结束值",type:"Number",fieldValue:1},{columnName:"step",columnComment:"循环步长",type:"Number",fieldValue:1}]:t.config.fields=[{columnName:"index",columnComment:"循环开始值",type:"Number",fieldValue:1}]}const v=o.ref("and");function m(){t.config.filter.forEach(E=>{E.join=v.value})}function g(E){E.join=v.value,E.compare=10,t.config.filter.push({...E})}function b(E){t.config.filter.splice(E,1)}const y=o.ref([]);async function w(){const E=await a(t.config.procId,t.node.nodeId);if(E&&(t.config.procName=E.config.procName,y.value=E==null?void 0:E.parentProc,n.value.procType==="loop"&&E.parentNode)){const S=typeof E.parentNode.config=="string"?JSON.parse(E.parentNode.config):{...E.parentNode.config};t.config.filter=S.filter||[],t.config.fields=S.fields||[]}}w();async function _(E,S){await l({parentProc:E,...S,nodeId:t.node.nodeId}),w()}return(E,S)=>{const C=o.resolveComponent("el-form-item"),k=o.resolveComponent("el-table-column"),N=o.resolveComponent("el-table"),A=o.resolveComponent("Close"),F=o.resolveComponent("el-icon"),I=o.resolveComponent("el-radio"),W=o.resolveComponent("el-radio-group"),P=o.resolveComponent("el-option"),H=o.resolveComponent("el-select"),X=o.resolveComponent("el-input"),L=o.resolveComponent("el-button"),j=o.resolveComponent("el-popover"),$=o.resolveComponent("el-input-number"),oe=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(oe,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.unref(n).procType==="loop"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(C,{label:"参数设置"},{default:o.withCtx(()=>S[5]||(S[5]=[o.createTextVNode(" 定义循环中使用的参数,每次循环可以使用前一次循环中更新的参数值。“index”参数每次循环后自动加1。 ")])),_:1}),o.createVNode(C,{label:"参数列表"},{default:o.withCtx(()=>[o.createVNode(N,{data:t.config.fields,"max-height":"300"},{default:o.withCtx(()=>[o.createVNode(k,{label:"参数类型",prop:"type"},{default:o.withCtx(D=>{var x;return[o.createTextVNode(o.toDisplayString(o.unref(Te)((x=D.row)==null?void 0:x.type)),1)]}),_:1}),o.createVNode(k,{label:"参数名称",prop:"columnName"}),o.createVNode(k,{label:"参数描述",prop:"columnComment"}),o.createVNode(k,{label:"默认值",prop:"fieldValue",width:"330"},{default:o.withCtx(D=>{var x,V,O;return[o.createElementVNode("span",rNe,[D.row.nodeId?(o.openBlock(),o.createElementBlock("div",oNe,[o.createElementVNode("div",iNe,[o.createElementVNode("div",aNe,[o.createElementVNode("span",lNe," ["+o.toDisplayString(o.unref(Te)((x=D.row)==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString((V=D.row)==null?void 0:V.nodeName),1),S[6]||(S[6]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[7]||(S[7]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",sNe,o.toDisplayString((O=D.row)==null?void 0:O.fieldValueName),1)])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(D.row.fieldValue),1)],64))])]}),_:1})]),_:1},8,["data"])]),_:1}),o.createVNode(C,{label:"被以下工作流事件调用"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y.value,D=>(o.openBlock(),o.createElementBlock("div",cNe,[o.createTextVNode(o.toDisplayString(D.procName)+" ",1),o.createElementVNode("span",uNe,[o.createVNode(F,{onClick:x=>_(D,t.config)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])]))),256))]),_:1})],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(C,{label:"循环方式"},{default:o.withCtx(()=>[o.createVNode(W,{modelValue:e.config.type,"onUpdate:modelValue":S[0]||(S[0]=D=>e.config.type=D),onChange:p},{default:o.withCtx(()=>[o.createVNode(I,{value:"filter",style:{width:"100%"}},{default:o.withCtx(()=>S[8]||(S[8]=[o.createTextVNode("满足条件时循环")])),_:1}),S[10]||(S[10]=o.createElementVNode("div",{class:"raido-txt"}," 一直循环允许一段流程,并在参数达到退出条件后结束 ",-1)),o.createVNode(I,{value:"count",style:{width:"100%"}},{default:o.withCtx(()=>S[9]||(S[9]=[o.createTextVNode("循环指定次数")])),_:1}),S[11]||(S[11]=o.createElementVNode("div",{class:"raido-txt"}," 按指定的起始值、结束值和步长值循环固定次数 ",-1))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(C,{label:"参数列表"},{default:o.withCtx(()=>[o.createVNode(N,{data:t.config.fields,"max-height":"300"},{default:o.withCtx(()=>[o.createVNode(k,{label:"参数类型",prop:"type"},{default:o.withCtx(D=>[o.createVNode(H,{modelValue:D.row.type,"onUpdate:modelValue":x=>D.row.type=x,filterable:"",disabled:u(D.$index)},{default:o.withCtx(()=>[o.createVNode(P,{label:"数值",value:"Number"}),o.createVNode(P,{label:"日期",value:"Date"}),o.createVNode(P,{label:"文本",value:"Text"}),o.createVNode(P,{label:"人员",value:"User"}),o.createVNode(P,{label:"部门",value:"Dept"}),o.createVNode(P,{label:"组织角色",value:"Role"})]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),o.createVNode(k,{label:"参数名称",prop:"columnName"},{default:o.withCtx(D=>[o.createVNode(X,{disabled:u(D.$index),modelValue:D.row.columnName,"onUpdate:modelValue":x=>D.row.columnName=x,placeholder:"请输入参数名称"},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:1}),o.createVNode(k,{label:"参数描述",prop:"columnComment"},{default:o.withCtx(D=>[o.createVNode(X,{disabled:u(D.$index),modelValue:D.row.columnComment,"onUpdate:modelValue":x=>D.row.columnComment=x,placeholder:"请输入参数描述"},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:1}),o.createVNode(k,{label:"默认值",prop:"fieldValue",width:"330"},{default:o.withCtx(D=>{var x,V,O;return[o.createElementVNode("span",dNe,[D.row.nodeId?(o.openBlock(),o.createElementBlock("div",fNe,[o.createElementVNode("div",pNe,[o.createElementVNode("div",hNe,[o.createElementVNode("span",gNe," ["+o.toDisplayString(o.unref(Te)((x=D.row)==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString((V=D.row)==null?void 0:V.nodeName),1),S[12]||(S[12]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[13]||(S[13]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",mNe,o.toDisplayString((O=D.row)==null?void 0:O.fieldValueName),1)]),o.createVNode(F,{onClick:R=>h(D.row)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createBlock(X,{key:1,modelValue:D.row.fieldValue,"onUpdate:modelValue":R=>D.row.fieldValue=R,clearable:""},null,8,["modelValue","onUpdate:modelValue"])),o.renderSlot(E.$slots,"action",{item:D.row,varList:c.value},void 0,!0),u(D.$index)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(F,{key:2,class:"close-icon",onClick:R=>f(D.$index),style:{"margin-left":"8px",cursor:"pointer"}},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"]))])]}),_:3})]),_:3},8,["data"]),o.createVNode(L,{icon:o.unref($n),type:"primary",style:{"margin-top":"10px"},link:"",onClick:d},{default:o.withCtx(()=>S[14]||(S[14]=[o.createTextVNode("添加参数")])),_:1},8,["icon"])]),_:3}),t.config.type!=="count"?(o.openBlock(),o.createElementBlock("div",yNe,[S[18]||(S[18]=o.createElementVNode("div",{class:"item-label"},"循环退出条件",-1)),S[19]||(S[19]=o.createElementVNode("span",{class:"remark"},"参数满足下面条件时退出循环,请在循环中更新参数值以触发条件",-1)),o.createElementVNode("div",vNe,[o.createElementVNode("div",bNe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(D,x)=>(o.openBlock(),o.createElementBlock("div",{key:x,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",wNe,[x===0?(o.openBlock(),o.createBlock(H,{key:0,modelValue:v.value,"onUpdate:modelValue":S[1]||(S[1]=V=>v.value=V),onChange:m},{default:o.withCtx(()=>[o.createVNode(P,{label:"且",value:"and"}),o.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",_Ne,o.toDisplayString(D.join==="and"?"且":"或"),1))]),o.createElementVNode("div",CNe,[o.createElementVNode("div",ENe,[o.createElementVNode("div",kNe,[o.createElementVNode("span",xNe,[o.createElementVNode("span",NNe," ["+o.toDisplayString(o.unref(Te)((D==null?void 0:D.type)||D.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(H,{modelValue:D.compare,"onUpdate:modelValue":V=>D.compare=V,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(P,{label:"等于",value:10}),o.createVNode(P,{label:"不等于",value:110}),o.createVNode(P,{label:"大于",value:20}),o.createVNode(P,{label:"大于等于",value:21}),o.createVNode(P,{label:"小于",value:30}),o.createVNode(P,{label:"小于等于",value:31}),o.createVNode(P,{label:"多词匹配",value:61}),o.createVNode(P,{label:"包含",value:50}),o.createVNode(P,{label:"不包含",value:150}),o.createVNode(P,{label:"区间",value:80}),o.createVNode(P,{label:"为空",value:90}),o.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(F,{class:"close-icon",onClick:V=>b(x)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])]),o.createElementVNode("span",SNe,[D.nodeId?(o.openBlock(),o.createElementBlock("div",DNe,[o.createElementVNode("div",BNe,[o.createElementVNode("div",VNe,[o.createElementVNode("span",ANe," ["+o.toDisplayString(o.unref(Te)(D==null?void 0:D.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(D.nodeName),1),S[15]||(S[15]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[16]||(S[16]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",ONe,o.toDisplayString(D.fieldValueName),1)]),o.createVNode(F,{onClick:V=>h(D)},{default:o.withCtx(()=>[o.createVNode(A)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createBlock(X,{key:1,modelValue:D.fieldValue,"onUpdate:modelValue":V=>D.fieldValue=V,clearable:""},null,8,["modelValue","onUpdate:modelValue"])),o.renderSlot(E.$slots,"action",{item:D,varList:c.value},void 0,!0)])])]))),128))]),o.createElementVNode("div",FNe,[o.createVNode(j,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(L,{icon:o.unref($n),text:""},{default:o.withCtx(()=>S[17]||(S[17]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",TNe,[o.createVNode(X,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":S[2]||(S[2]=D=>r.value=D)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",PNe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(D,x)=>(o.openBlock(),o.createElementBlock("div",{key:x,class:"field-item",onClick:V=>g(D)},[o.createElementVNode("span",INe," ["+o.toDisplayString(o.unref(Te)((D==null?void 0:D.type)||(D==null?void 0:D.htmlType)))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)],8,jNe))),128))])]),_:1})])])])):o.createCommentVNode("",!0),o.createVNode(C,{label:"最大循环次数"},{default:o.withCtx(()=>[S[20]||(S[20]=o.createElementVNode("span",{class:"remark"},"值范围为1~10000。为避免影响性能或超时,到达最大循环次数时将自动终止循环并进入后续流程。",-1)),o.createElementVNode("div",LNe,[o.createVNode($,{modelValue:t.config.limit,"onUpdate:modelValue":S[3]||(S[3]=D=>t.config.limit=D),min:1,max:1e4,"controls-position":"right"},null,8,["modelValue"])])]),_:1}),o.createVNode(C,{label:"循环中流程中止时"},{default:o.withCtx(()=>[o.createVNode(W,{modelValue:t.config.way,"onUpdate:modelValue":S[4]||(S[4]=D=>t.config.way=D)},{default:o.withCtx(()=>[o.createVNode(I,{value:"go",style:{width:"100%"}},{default:o.withCtx(()=>S[21]||(S[21]=[o.createTextVNode(" 跳出并进入下一次循环 ")])),_:1}),o.createVNode(I,{value:"aborted",style:{width:"100%"}},{default:o.withCtx(()=>S[22]||(S[22]=[o.createTextVNode(" 中止流程 ")])),_:1})]),_:1},8,["modelValue"])]),_:1})],64))]),_:3},8,["model"])])}}}),[["__scopeId","data-v-f0dedb76"]])},Symbol.toStringTag,{value:"Module"})),MNe={style:{float:"left"}},zNe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},UNe={key:0},HNe=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"notifyDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);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 i=o.computed(()=>{const u=[];return r(n.value.nodeConfig,t.node.nodeId,u),u});async function a(){const u=i.value.find(d=>d.nodeId===t.config.selectNodeId);u&&(t.config.workId=u.config.workId,t.config.workName=u.config.workName,t.config.selectNodeFields=Sn(u.config.fields))}const l=o.ref("base");o.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=o.resolveComponent("el-option"),h=o.resolveComponent("el-select"),p=o.resolveComponent("el-form-item"),v=o.resolveComponent("el-form"),m=o.resolveComponent("el-radio"),g=o.resolveComponent("el-radio-group"),b=o.resolveComponent("el-tab-pane"),y=o.resolveComponent("el-tabs");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(v,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(p,{label:"数据对象"},{default:o.withCtx(()=>[o.createVNode(h,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":d[0]||(d[0]=w=>t.config.selectNodeId=w),filterable:"",onChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(w,_)=>(o.openBlock(),o.createBlock(f,{key:_,label:w.nodeName,value:w.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",MNe,o.toDisplayString(w.nodeName),1),o.createElementVNode("span",zNe,' 工作表 "'+o.toDisplayString(w.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),o.createVNode(y,{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=w=>l.value=w)},{default:o.withCtx(()=>[o.createVNode(b,{label:"基本设置",name:"base"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[o.createElementVNode("div",null,[d[6]||(d[6]=o.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),o.createElementVNode("div",null,[o.createVNode(g,{modelValue:t.config.handlerScope,"onUpdate:modelValue":d[1]||(d[1]=w=>t.config.handlerScope=w),onChange:c},{default:o.withCtx(()=>[o.createVNode(m,{label:1},{default:o.withCtx(()=>d[4]||(d[4]=[o.createTextVNode("指定人员")])),_:1}),o.createVNode(m,{label:2},{default:o.withCtx(()=>d[5]||(d[5]=[o.createTextVNode("部门主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(o.openBlock(),o.createElementBlock("div",UNe,[d[7]||(d[7]=o.createElementVNode("div",{class:"title"},"指定成员",-1)),o.createElementVNode("div",null,[o.createVNode(A6,{modelValue:t.config.handlers,"onUpdate:modelValue":d[2]||(d[2]=w=>t.config.handlers=w),enableRole:!0},null,8,["modelValue"])])])):o.createCommentVNode("",!0)])]),_:1}),o.createVNode(b,{label:"表单操作权限",name:"permissions"},{default:o.withCtx(()=>[o.createVNode(FK,{config:t.config,"node-type":o.unref(zh)},null,8,["config","node-type"])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-d7695d2b"]])},Symbol.toStringTag,{value:"Module"})),WNe={style:{float:"left"}},qNe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},GNe={style:{float:"left"}},KNe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},YNe={class:"config-detail"},XNe={class:"config-item"},ZNe={class:"children-query",style:{"margin-top":"20px"}},JNe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},QNe={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},$Ne={style:{flex:"1"}},e3e={class:"flex-both"},t3e={class:"flex"},n3e={class:"txt-label"},r3e={class:"field"},o3e={class:"condition-select"},i3e={key:0,class:"function-tag"},a3e={class:"box"},l3e={class:"ellipsis table-name"},s3e={class:"field"},c3e={class:"field-name ellipsis"},u3e={style:{margin:"20px 0"}},d3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},f3e={class:"field-list"},p3e=["onClick"],h3e={class:"field"},g3e={style:{display:"flex",width:"100%"}},m3e={style:{display:"flex",width:"100%"}},y3e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"oddDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);function r(L,j,$=[]){if(L.nodeId===j)return $;L.nodeType==="add"&&L.config.addType==="2"&&$.push(L);let oe=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const D of L.conditionNodes)if(At(D,j)){r(D.childNode,j,$),oe=!0;break}}return!oe&&L.childNode&&r(L.childNode,j,$),$}function i(L,j,$=[]){if(L.nodeId===j)return $;L.nodeType==="api"&&$.push(L);let oe=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const D of L.conditionNodes)if(At(D,j)){i(D.childNode,j,$),oe=!0;break}}return!oe&&L.childNode&&i(L.childNode,j,$),$}function a(L,j,$=[]){if(L.nodeId===j)return $;(L.nodeType==="flow"||L.nodeType==="add"||L.nodeType==="search")&&$.push(L);let oe=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const D of L.conditionNodes)if(At(D,j)){a(D.childNode,j,$),oe=!0;break}}return!oe&&L.childNode&&a(L.childNode,j,$),$}const l=o.computed(()=>{const L=[];return i(n.value.nodeConfig,t.node.nodeId,L),L}),s=o.computed(()=>{const L=[];return a(n.value.nodeConfig,t.node.nodeId,L),L});function c(){var j,$;const L=l.value.find(oe=>oe.nodeId===t.config.selectNodeId);L&&(t.config.workName=L.nodeName,t.config.responseParams=($=(j=L.config.callApi)==null?void 0:j.responseParams)==null?void 0:$.filter(oe=>oe.type==="Array"))}function u(){var j;const L=s.value.find($=>$.nodeId===t.config.selectNodeId);L&&(t.config.workName=L.nodeName,t.config.responseParams=(j=L.config.fields)==null?void 0:j.filter($=>$.type==="Array"))}function d(){var j;const L=t.config.responseParams.find($=>$.code===t.config.responseField);L&&(t.config.fields=(j=L==null?void 0:L.children)==null?void 0:j.map($=>({columnName:$.code,columnComment:$.code,type:$.type,children:$.children})))}function f(){var j;const L=t.config.responseParams.find($=>$.columnName===t.config.responseField);L&&(t.config.fields=(j=L==null?void 0:L.children)==null?void 0:j.map($=>({columnName:$.code,columnComment:$.code,type:$.type,children:$.children})))}const h=o.computed(()=>{const L=[];return r(n.value.nodeConfig,t.node.nodeId,L),L});function p(L,j,$=[]){if(L.nodeId===j)return $;["search","flow","add","button","table"].includes(L.nodeType)&&$.push(L);let D=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const x of L.conditionNodes)if(At(x,j)){p(x.childNode,j,$),D=!0;break}}return!D&&L.childNode&&p(L.childNode,j,$),$}function v(L,j,$=[]){if(L.nodeId===j)return $;["search","flow","add","button","table","api","summary","loop"].includes(L.nodeType)&&$.push(L);let D=!1;if(L.nodeType==="router"&&L.conditionNodes){for(const x of L.conditionNodes)if(At(x,j)){v(x.childNode,j,$),D=!0;break}}return!D&&L.childNode&&v(L.childNode,j,$),$}const m=o.computed(()=>{const L=[];return p(n.value.nodeConfig,t.node.nodeId,L),L}),g=o.ref(""),b=o.computed(()=>{var j,$;const L=g.value.trim().toLowerCase();return($=(j=t.config)==null?void 0:j.fields)==null?void 0:$.filter(oe=>[oe.columnName,oe.columnComment].some(D=>String(D||"").toLowerCase().includes(L)))}),y=o.ref("and");function w(){t.config.filter.forEach(L=>{L.join=y.value})}function _(L){L.join=y.value,L.compare=10,t.config.filter.push({...L})}function E(L){t.config.filter.splice(L,1)}function S(L){L.nodeId="",L.nodeName="",L.fieldValue=void 0,L.fieldValueName=""}const C=o.ref(),k=o.inject(Ms),N=o.inject(er);async function A(){C.value=await k(null)}A();const F=o.computed(()=>{const L=[];return L.push(Ar.defaultNode),v(n.value.nodeConfig,t.node.nodeId,L),L}),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 L=m.value.find(j=>j.nodeId===t.config.selectNodeId);L&&(t.config.selectNodeFields=Sn(L.config.fields))}async function P(L){const j=await N(L);t.config.fields=j==null?void 0:j.fieldList,t.config.workName=j==null?void 0:j.workName}async function H(){const L=h.value.find(j=>j.nodeId===t.config.selectNodeId);L&&(t.config.workId=L.config.workId,t.config.workName=L.config.workName,t.config.fields=Sn(L.config.fields),t.config.order="update_time")}async function X(){const L=t.config.selectNodeFields.find(j=>j.columnName===t.config.linkField);if(L){const j=await N(L.fieldAttr.workId);t.config.fields=j.fieldList,t.config.workName=j.workName,t.config.workId=j.workId,t.config.order="update_time"}}return(L,j)=>{const $=o.resolveComponent("el-radio"),oe=o.resolveComponent("el-radio-group"),D=o.resolveComponent("el-form-item"),x=o.resolveComponent("el-option"),V=o.resolveComponent("el-select"),O=o.resolveComponent("Close"),R=o.resolveComponent("el-icon"),T=o.resolveComponent("el-input"),U=o.resolveComponent("el-button"),Z=o.resolveComponent("el-popover"),ie=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[j[36]||(j[36]=o.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),o.createVNode(ie,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(D,{label:"选择获取方式"},{default:o.withCtx(()=>[o.createVNode(oe,{modelValue:e.config.type,"onUpdate:modelValue":j[0]||(j[0]=G=>e.config.type=G),onChange:I},{default:o.withCtx(()=>[o.createVNode($,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>j[15]||(j[15]=[o.createTextVNode("从工作表获取多条")])),_:1}),j[20]||(j[20]=o.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),o.createVNode($,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>j[16]||(j[16]=[o.createTextVNode("获取关联记录")])),_:1}),j[21]||(j[21]=o.createElementVNode("div",{class:"raido-txt"},"获取关联记录、子表、选择字段中的记录",-1)),o.createVNode($,{value:"add",style:{width:"100%"}},{default:o.withCtx(()=>j[17]||(j[17]=[o.createTextVNode("从新增节点获取记录")])),_:1}),j[22]||(j[22]=o.createElementVNode("div",{class:"raido-txt"},"从创建多条的新增节点获取记录",-1)),o.createVNode($,{value:"api",style:{width:"100%"}},{default:o.withCtx(()=>j[18]||(j[18]=[o.createTextVNode("从集成API获取记录")])),_:1}),o.createVNode($,{value:"array",style:{width:"100%"}},{default:o.withCtx(()=>j[19]||(j[19]=[o.createTextVNode("从数组获取记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="api"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(D,{label:"选择集成API节点"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[1]||(j[1]=G=>t.config.selectNodeId=G),filterable:"",clearable:"",onChange:c},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(D,{label:"选择数组"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.responseField,"onUpdate:modelValue":j[2]||(j[2]=G=>t.config.responseField=G),filterable:"",clearable:"",onChange:d},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.config.responseParams,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.code,value:G.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),e.config.type==="array"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(D,{label:"选择数据类型节点"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[3]||(j[3]=G=>t.config.selectNodeId=G),filterable:"",clearable:"",onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(D,{label:"选择数组"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.responseField,"onUpdate:modelValue":j[4]||(j[4]=G=>t.config.responseField=G),filterable:"",clearable:"",onChange:f},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.config.responseParams,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.columnName,value:G.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),e.config.type==="work"?(o.openBlock(),o.createBlock(D,{key:2,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.workId,"onUpdate:modelValue":j[5]||(j[5]=G=>t.config.workId=G),filterable:"",onChange:P},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(C.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.workName,value:G.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="add"?(o.openBlock(),o.createBlock(D,{key:3,label:"选择新增记录节点"},{default:o.withCtx(()=>[o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[6]||(j[6]=G=>t.config.selectNodeId=G),filterable:"",onChange:H},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",WNe,o.toDisplayString(G.nodeName),1),o.createElementVNode("span",qNe,' 工作表 "'+o.toDisplayString(G.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="link"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:4},[o.createVNode(D,{label:"选择获取对象"},{default:o.withCtx(()=>[j[23]||(j[23]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(V,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":j[7]||(j[7]=G=>t.config.selectNodeId=G),filterable:"",onChange:W},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.nodeName,value:G.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",GNe,o.toDisplayString(G.nodeName),1),o.createElementVNode("span",KNe,' 工作表 "'+o.toDisplayString(G.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(D,{label:"选择关联类型的字段"},{default:o.withCtx(()=>[j[24]||(j[24]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createVNode(V,{modelValue:t.config.linkField,"onUpdate:modelValue":j[8]||(j[8]=G=>t.config.linkField=G),filterable:"",onChange:X},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.selectNodeFields,(G,J)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:J},[G.htmlType==="Related"||G.htmlType==="SubTable"?(o.openBlock(),o.createBlock(x,{key:0,label:G.columnComment,value:G.columnName},null,8,["label","value"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),o.createElementVNode("div",YNe,[j[28]||(j[28]=o.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),j[29]||(j[29]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createElementVNode("div",XNe,[o.createElementVNode("div",ZNe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(G,J)=>{var ge,ae;return o.openBlock(),o.createElementBlock("div",{key:J,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",JNe,[J===0?(o.openBlock(),o.createBlock(V,{key:0,modelValue:y.value,"onUpdate:modelValue":j[9]||(j[9]=ee=>y.value=ee),onChange:w},{default:o.withCtx(()=>[o.createVNode(x,{label:"且",value:"and"}),o.createVNode(x,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",QNe,o.toDisplayString(G.join==="and"?"且":"或"),1))]),o.createElementVNode("div",$Ne,[o.createElementVNode("div",e3e,[o.createElementVNode("div",t3e,[o.createElementVNode("span",n3e,[o.createElementVNode("span",r3e," ["+o.toDisplayString(o.unref(Te)(((ge=G==null?void 0:G.fieldAttr)==null?void 0:ge.type)||G.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(G.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(V,{modelValue:G.compare,"onUpdate:modelValue":ee=>G.compare=ee,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(x,{label:"等于",value:10}),o.createVNode(x,{label:"不等于",value:110}),o.createVNode(x,{label:"大于",value:20}),o.createVNode(x,{label:"大于等于",value:21}),o.createVNode(x,{label:"小于",value:30}),o.createVNode(x,{label:"小于等于",value:31}),o.createVNode(x,{label:"多词匹配",value:61}),o.createVNode(x,{label:"包含",value:50}),o.createVNode(x,{label:"不包含",value:150}),o.createVNode(x,{label:"区间",value:80}),o.createVNode(x,{label:"为空",value:90}),o.createVNode(x,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(R,{class:"close-icon",onClick:ee=>E(J)},{default:o.withCtx(()=>[o.createVNode(O)]),_:2},1032,["onClick"])]),o.createElementVNode("span",o3e,[G.nodeId?(o.openBlock(),o.createElementBlock("div",i3e,[o.createElementVNode("div",a3e,[o.createElementVNode("div",l3e,[o.createElementVNode("span",s3e," ["+o.toDisplayString(o.unref(Te)(G==null?void 0:G.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(G.nodeName),1),j[25]||(j[25]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),j[26]||(j[26]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",c3e,o.toDisplayString(G.fieldValueName),1)]),o.createVNode(R,{onClick:ee=>S(G)},{default:o.withCtx(()=>[o.createVNode(O)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((ae=G==null?void 0:G.fieldAttr)==null?void 0:ae.type)?(o.openBlock(),o.createBlock(V,{key:0,modelValue:G.fieldValue,"onUpdate:modelValue":ee=>G.fieldValue=ee,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(G.fieldAttr.enum,(ee,me)=>(o.openBlock(),o.createBlock(x,{key:me,label:ee.label,value:ee.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(T,{key:1,modelValue:G.fieldValue,"onUpdate:modelValue":ee=>G.fieldValue=ee,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(L.$slots,"action",{item:G,varList:F.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",u3e,[o.createVNode(Z,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(U,{icon:o.unref($n),text:""},{default:o.withCtx(()=>j[27]||(j[27]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",d3e,[o.createVNode(T,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:g.value,"onUpdate:modelValue":j[10]||(j[10]=G=>g.value=G)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",f3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.value,(G,J)=>{var ge;return o.openBlock(),o.createElementBlock("div",{key:J,class:"field-item",onClick:ae=>_(G)},[o.createElementVNode("span",h3e," ["+o.toDisplayString(o.unref(Te)(((ge=G==null?void 0:G.fieldAttr)==null?void 0:ge.type)||G.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(G.columnComment),1)],8,p3e)}),128))])]),_:1})])])]),o.createVNode(D,{label:"排序规则"},{default:o.withCtx(()=>[j[30]||(j[30]=o.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得数据。如果未设置规则,返回最近更新的一条数据 ",-1)),o.createElementVNode("div",g3e,[o.createVNode(V,{modelValue:t.config.order,"onUpdate:modelValue":j[11]||(j[11]=G=>t.config.order=G),filterable:"",style:{"margin-right":"20px"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(G,J)=>(o.openBlock(),o.createBlock(x,{key:J,label:G.columnComment,value:G.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(V,{modelValue:t.config.sort,"onUpdate:modelValue":j[12]||(j[12]=G=>t.config.sort=G),filterable:""},{default:o.withCtx(()=>[o.createVNode(x,{label:"升序",value:"asc"}),o.createVNode(x,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),o.createVNode(D,{label:"限制数量"},{default:o.withCtx(()=>[j[31]||(j[31]=o.createElementVNode("span",{class:"remark"},"最多获取条数",-1)),o.createElementVNode("div",m3e,[o.createVNode(T,{modelValue:t.config.limit,"onUpdate:modelValue":j[13]||(j[13]=G=>t.config.limit=G)},null,8,["modelValue"])])]),_:1}),o.createVNode(D,{label:"获取方式"},{default:o.withCtx(()=>[o.createVNode(oe,{modelValue:e.config.way,"onUpdate:modelValue":j[14]||(j[14]=G=>e.config.way=G)},{default:o.withCtx(()=>[o.createVNode($,{value:"save",style:{width:"100%"}},{default:o.withCtx(()=>j[32]||(j[32]=[o.createTextVNode("直接获取")])),_:1}),j[34]||(j[34]=o.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),o.createVNode($,{value:"get",style:{width:"100%"}},{default:o.withCtx(()=>j[33]||(j[33]=[o.createTextVNode("每次使用时动态获取")])),_:1}),j[35]||(j[35]=o.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-d46a64ec"]])},Symbol.toStringTag,{value:"Module"})),v3e={style:{float:"left"}},b3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},w3e={style:{float:"left"}},_3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},C3e={class:"config-detail"},E3e={class:"config-item"},k3e={class:"children-query",style:{"margin-top":"20px"}},x3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},N3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},S3e={style:{flex:"1"}},D3e={class:"flex-both"},B3e={class:"flex"},V3e={class:"txt-label"},A3e={class:"field"},O3e={class:"condition-select"},F3e={key:0,class:"function-tag"},T3e={class:"box"},P3e={class:"ellipsis table-name"},j3e={class:"field"},I3e={class:"field-name ellipsis"},L3e={style:{margin:"20px 0"}},R3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},M3e={class:"field-list"},z3e=["onClick"],U3e={class:"field"},H3e={style:{display:"flex",width:"100%"}},W3e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"searchDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);function r(N,A,F=[]){if(N.nodeId===A)return F;(N.nodeType==="odd"||N.nodeType==="button")&&N.config.workId&&F.push(N);let I=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const W of N.conditionNodes)if(At(W,A)){r(W.childNode,A,F),I=!0;break}}return!I&&N.childNode&&r(N.childNode,A,F),F}function i(N,A,F=[]){if(N.nodeId===A)return F;["odd","search","flow","add","button","table","loop"].includes(N.nodeType)&&F.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(At(P,A)){i(P.childNode,A,F),W=!0;break}}return!W&&N.childNode&&i(N.childNode,A,F),F}function a(N,A,F=[]){if(N.nodeId===A)return F;["odd","search","flow","add","button","table","api","summary","loop"].includes(N.nodeType)&&F.push(N);let W=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(At(P,A)){a(P.childNode,A,F),W=!0;break}}return!W&&N.childNode&&a(N.childNode,A,F),F}const l=o.computed(()=>{const N=[];return r(n.value.nodeConfig,t.node.nodeId,N),N}),s=o.computed(()=>{const N=[];return i(n.value.nodeConfig,t.node.nodeId,N),N}),c=o.computed(()=>{const N=[];return N.push(Ar.defaultNode),a(n.value.nodeConfig,t.node.nodeId,N),N}),u=o.ref(""),d=o.computed(()=>{var A,F;const N=u.value.trim().toLowerCase();return(F=(A=t.config)==null?void 0:A.fields)==null?void 0:F.filter(I=>[I.columnName,I.columnComment].some(W=>String(W||"").toLowerCase().includes(N)))}),f=o.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=o.ref(),b=o.inject(Ms),y=o.inject(er);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 A=await y(N);t.config.fields=A==null?void 0:A.fieldList,t.config.workName=A==null?void 0:A.workName,t.config.filter=[],t.config.order="update_time"}async function S(){const N=l.value.find(A=>A.nodeId===t.config.selectNodeId);N&&(t.config.workId=N.config.workId,t.config.workName=N.config.workName,t.config.fields=Sn(N.config.fields),t.config.order="update_time")}async function C(){const N=s.value.find(A=>A.nodeId===t.config.selectNodeId);N&&(t.config.selectNodeFields=Sn(N.config.fields))}async function k(){const N=t.config.selectNodeFields.find(A=>A.columnName===t.config.linkField);if(N){const A=await y(N.fieldAttr.workId);t.config.fields=A.fieldList,t.config.workName=A.workName,t.config.workId=A.workId,t.config.order="update_time"}}return(N,A)=>{const F=o.resolveComponent("el-radio"),I=o.resolveComponent("el-radio-group"),W=o.resolveComponent("el-form-item"),P=o.resolveComponent("el-option"),H=o.resolveComponent("el-select"),X=o.resolveComponent("Close"),L=o.resolveComponent("el-icon"),j=o.resolveComponent("el-input"),$=o.resolveComponent("el-button"),oe=o.resolveComponent("el-popover"),D=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[A[27]||(A[27]=o.createElementVNode("div",{class:"header"}," 基于一种获取方式,通过筛选条件和排序规则获得符合条件的唯一数据,供流程中的其他节点使用。 ",-1)),o.createVNode(D,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(W,{label:"选择获取方式"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:t.config.type,"onUpdate:modelValue":A[0]||(A[0]=x=>t.config.type=x),onChange:_},{default:o.withCtx(()=>[o.createVNode(F,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>A[10]||(A[10]=[o.createTextVNode("从工作表获取单条")])),_:1}),A[13]||(A[13]=o.createElementVNode("div",{class:"raido-txt"},"从工作表获取一条指定记录",-1)),o.createVNode(F,{value:"odd",style:{width:"100%"}},{default:o.withCtx(()=>A[11]||(A[11]=[o.createTextVNode("从多条数据节点获取单条")])),_:1}),A[14]||(A[14]=o.createElementVNode("div",{class:"raido-txt"},"从多条数据节点获取一条指定记录",-1)),o.createVNode(F,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>A[12]||(A[12]=[o.createTextVNode("从关联字段获取单条")])),_:1}),A[15]||(A[15]=o.createElementVNode("div",{class:"raido-txt"}," 从关联表、子表或级联选择字段获取一条指定记录 ",-1))]),_:1},8,["modelValue"])]),_:1}),t.config.type==="work"?(o.openBlock(),o.createBlock(W,{key:0,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(H,{modelValue:t.config.workId,"onUpdate:modelValue":A[1]||(A[1]=x=>t.config.workId=x),filterable:"",onChange:E},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.workName,value:x.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="odd"?(o.openBlock(),o.createBlock(W,{key:1,label:"选择多条数据节点"},{default:o.withCtx(()=>[o.createVNode(H,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[2]||(A[2]=x=>t.config.selectNodeId=x),filterable:"",onChange:S},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.nodeName,value:x.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",v3e,o.toDisplayString(x.nodeName),1),o.createElementVNode("span",b3e,' 工作表 "'+o.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="link"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createVNode(W,{label:"选择获取对象"},{default:o.withCtx(()=>[A[16]||(A[16]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(H,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[3]||(A[3]=x=>t.config.selectNodeId=x),filterable:"",onChange:C},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.nodeName,value:x.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",w3e,o.toDisplayString(x.nodeName),1),o.createElementVNode("span",_3e,' 工作表 "'+o.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(W,{label:"选择关联类型的字段"},{default:o.withCtx(()=>[A[17]||(A[17]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createVNode(H,{modelValue:t.config.linkField,"onUpdate:modelValue":A[4]||(A[4]=x=>t.config.linkField=x),filterable:"",onChange:k},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.selectNodeFields,(x,V)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:V},[x.htmlType==="Related"||x.htmlType==="SubTable"?(o.openBlock(),o.createBlock(P,{key:0,label:x.columnComment,value:x.columnName},null,8,["label","value"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),o.createElementVNode("div",C3e,[A[21]||(A[21]=o.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),A[22]||(A[22]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createElementVNode("div",E3e,[o.createElementVNode("div",k3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(x,V)=>{var O,R;return o.openBlock(),o.createElementBlock("div",{key:V,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",x3e,[V===0?(o.openBlock(),o.createBlock(H,{key:0,modelValue:f.value,"onUpdate:modelValue":A[5]||(A[5]=T=>f.value=T),onChange:h},{default:o.withCtx(()=>[o.createVNode(P,{label:"且",value:"and"}),o.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",N3e,o.toDisplayString(x.join==="and"?"且":"或"),1))]),o.createElementVNode("div",S3e,[o.createElementVNode("div",D3e,[o.createElementVNode("div",B3e,[o.createElementVNode("span",V3e,[o.createElementVNode("span",A3e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(H,{modelValue:x.compare,"onUpdate:modelValue":T=>x.compare=T,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(P,{label:"等于",value:10}),o.createVNode(P,{label:"不等于",value:110}),o.createVNode(P,{label:"大于",value:20}),o.createVNode(P,{label:"大于等于",value:21}),o.createVNode(P,{label:"小于",value:30}),o.createVNode(P,{label:"小于等于",value:31}),o.createVNode(P,{label:"多词匹配",value:61}),o.createVNode(P,{label:"包含",value:50}),o.createVNode(P,{label:"不包含",value:150}),o.createVNode(P,{label:"区间",value:80}),o.createVNode(P,{label:"为空",value:90}),o.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(L,{class:"close-icon",onClick:T=>v(V)},{default:o.withCtx(()=>[o.createVNode(X)]),_:2},1032,["onClick"])]),o.createElementVNode("span",O3e,[x.nodeId?(o.openBlock(),o.createElementBlock("div",F3e,[o.createElementVNode("div",T3e,[o.createElementVNode("div",P3e,[o.createElementVNode("span",j3e," ["+o.toDisplayString(o.unref(Te)(x==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(x.nodeName),1),A[18]||(A[18]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),A[19]||(A[19]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",I3e,o.toDisplayString(x.fieldValueName),1)]),o.createVNode(L,{onClick:T=>m(x)},{default:o.withCtx(()=>[o.createVNode(X)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=x==null?void 0:x.fieldAttr)==null?void 0:R.type)?(o.openBlock(),o.createBlock(H,{key:0,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.fieldAttr.enum,(T,U)=>(o.openBlock(),o.createBlock(P,{key:U,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(j,{key:1,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(N.$slots,"action",{item:x,varList:c.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",L3e,[o.createVNode(oe,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode($,{icon:o.unref($n),text:""},{default:o.withCtx(()=>A[20]||(A[20]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",R3e,[o.createVNode(j,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":A[6]||(A[6]=x=>u.value=x)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",M3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(x,V)=>{var O;return o.openBlock(),o.createElementBlock("div",{key:V,class:"field-item",onClick:R=>p(x)},[o.createElementVNode("span",U3e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)],8,z3e)}),128))])]),_:1})])])]),o.createVNode(W,{label:"排序规则"},{default:o.withCtx(()=>[A[23]||(A[23]=o.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得第一条数据。如果未设置规则,按照字段配置的排序规则返回第一条数据 ",-1)),o.createElementVNode("div",H3e,[o.createVNode(H,{modelValue:t.config.order,"onUpdate:modelValue":A[7]||(A[7]=x=>t.config.order=x),filterable:"",style:{"margin-right":"20px"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(x,V)=>(o.openBlock(),o.createBlock(P,{key:V,label:x.columnComment,value:x.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(H,{modelValue:t.config.sort,"onUpdate:modelValue":A[8]||(A[8]=x=>t.config.sort=x),filterable:""},{default:o.withCtx(()=>[o.createVNode(P,{label:"升序",value:"asc"}),o.createVNode(P,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),o.createVNode(W,{label:"未获取到数据时"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:t.config.way,"onUpdate:modelValue":A[9]||(A[9]=x=>t.config.way=x)},{default:o.withCtx(()=>[o.createVNode(F,{value:"go",style:{width:"100%"}},{default:o.withCtx(()=>A[24]||(A[24]=[o.createTextVNode("继续执行")])),_:1}),A[26]||(A[26]=o.createElementVNode("div",{class:"raido-txt"}," 之后节点在使用本节点对象或数据时将跳过执行 ",-1)),o.createVNode(F,{value:"aborted"},{default:o.withCtx(()=>A[25]||(A[25]=[o.createTextVNode("中止流程,或继续执行查找结果分支")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-db79c3c5"]])},Symbol.toStringTag,{value:"Module"})),q3e={style:{float:"left"}},G3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},K3e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"startDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);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 i=o.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=i.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName,t.config.selectNodeFields=Sn(l.config.fields))}return(l,s)=>{const c=o.resolveComponent("el-option"),u=o.resolveComponent("el-select"),d=o.resolveComponent("el-form-item"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(d,{label:"发起审批的数据对象"},{default:o.withCtx(()=>[o.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(h,p)=>(o.openBlock(),o.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",q3e,o.toDisplayString(h.nodeName),1),o.createElementVNode("span",G3e,' 工作表 "'+o.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(d,{label:"发起人"},{default:o.withCtx(()=>s[1]||(s[1]=[o.createTextVNode("触发者")])),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),Y3e={style:{float:"left"}},X3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Z3e={class:"config-detail"},J3e={class:"config-item"},Q3e={class:"children-query",style:{"margin-top":"20px"}},$3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},e8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},t8e={style:{flex:"1"}},n8e={class:"flex-both"},r8e={class:"flex"},o8e={class:"txt-label"},i8e={class:"field"},a8e={class:"condition-select"},l8e={key:0,class:"function-tag"},s8e={class:"box"},c8e={class:"ellipsis table-name"},u8e={class:"field"},d8e={class:"field-name ellipsis"},f8e={style:{margin:"20px 0"}},p8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},h8e={class:"field-list"},g8e=["onClick"],m8e={class:"field"},y8e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"summaryDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt);function r(S,C,k=[]){if(S.nodeId===C)return k;["search","flow","add","button","table","loop"].includes(S.nodeType)&&k.push(S);let A=!1;if(S.nodeType==="router"&&S.conditionNodes){for(const F of S.conditionNodes)if(At(F,C)){r(F.childNode,C,k),A=!0;break}}return!A&&S.childNode&&r(S.childNode,C,k),k}function i(S,C,k=[]){if(S.nodeId===C)return k;["search","flow","add","button","table","api","summary","loop"].includes(S.nodeType)&&k.push(S);let A=!1;if(S.nodeType==="router"&&S.conditionNodes){for(const F of S.conditionNodes)if(At(F,C)){i(F.childNode,C,k),A=!0;break}}return!A&&S.childNode&&i(S.childNode,C,k),k}const a=o.computed(()=>{const S=[];return r(n.value.nodeConfig,t.node.nodeId,S),S}),l=o.ref(""),s=o.computed(()=>{var C,k;const S=l.value.trim().toLowerCase();return(k=(C=t.config)==null?void 0:C.fields)==null?void 0:k.filter(N=>[N.columnName,N.columnComment].some(A=>String(A||"").toLowerCase().includes(S)))}),c=o.ref("and");function u(){t.config.filter.forEach(S=>{S.join=c.value})}function d(S){S.join=c.value,S.compare=10,t.config.filter.push({...S})}function f(S){t.config.filter.splice(S,1)}function h(S){S.nodeId="",S.nodeName="",S.fieldValue=void 0,S.fieldValueName=""}const p=o.ref(),v=o.inject(Ms),m=o.inject(er);async function g(){p.value=await v(null)}g();const b=o.computed(()=>{const S=[];return S.push(Ar.defaultNode),i(n.value.nodeConfig,t.node.nodeId,S),S}),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 S=a.value.find(C=>C.nodeId===t.config.selectNodeId);S&&(t.config.selectNodeFields=Sn(S.config.fields))}async function _(S){const C=await m(S);t.config.fields=C==null?void 0:C.fieldList,t.config.workName=C==null?void 0:C.workName}async function E(){const S=t.config.selectNodeFields.find(C=>C.columnName===t.config.linkField);if(S){const C=await m(S.fieldAttr.workId);t.config.fields=C.fieldList,t.config.workName=C.workName,t.config.workId=C.workId,t.config.order="update_time"}}return(S,C)=>{const k=o.resolveComponent("el-radio"),N=o.resolveComponent("el-radio-group"),A=o.resolveComponent("el-form-item"),F=o.resolveComponent("el-option"),I=o.resolveComponent("el-select"),W=o.resolveComponent("Close"),P=o.resolveComponent("el-icon"),H=o.resolveComponent("el-input"),X=o.resolveComponent("el-button"),L=o.resolveComponent("el-popover"),j=o.resolveComponent("el-divider"),$=o.resolveComponent("el-col"),oe=o.resolveComponent("el-row"),D=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[C[24]||(C[24]=o.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),o.createVNode(D,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(A,{label:"选择获取方式"},{default:o.withCtx(()=>[o.createVNode(N,{modelValue:e.config.type,"onUpdate:modelValue":C[0]||(C[0]=x=>e.config.type=x),onChange:y},{default:o.withCtx(()=>[o.createVNode(k,{value:"work",style:{width:"100%"}},{default:o.withCtx(()=>C[9]||(C[9]=[o.createTextVNode("从工作表进行汇总")])),_:1}),C[11]||(C[11]=o.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),o.createVNode(k,{value:"link",style:{width:"100%"}},{default:o.withCtx(()=>C[10]||(C[10]=[o.createTextVNode("获取关联子表记录")])),_:1}),C[12]||(C[12]=o.createElementVNode("div",{class:"raido-txt"},"获取关联子表记录",-1))]),_:1},8,["modelValue"])]),_:1}),e.config.type==="work"?(o.openBlock(),o.createBlock(A,{key:0,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:t.config.workId,"onUpdate:modelValue":C[1]||(C[1]=x=>t.config.workId=x),filterable:"",onChange:_},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,(x,V)=>(o.openBlock(),o.createBlock(F,{key:V,label:x.workName,value:x.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),e.config.type==="link"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(A,{label:"选择获取对象"},{default:o.withCtx(()=>[C[13]||(C[13]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(I,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":C[2]||(C[2]=x=>t.config.selectNodeId=x),filterable:"",onChange:w},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(x,V)=>(o.openBlock(),o.createBlock(F,{key:V,label:x.nodeName,value:x.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",Y3e,o.toDisplayString(x.nodeName),1),o.createElementVNode("span",X3e,' 工作表 "'+o.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(A,{label:"选择关联类型的字段"},{default:o.withCtx(()=>[C[14]||(C[14]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createVNode(I,{modelValue:t.config.linkField,"onUpdate:modelValue":C[3]||(C[3]=x=>t.config.linkField=x),filterable:"",onChange:E},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.selectNodeFields,(x,V)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:V},[x.htmlType==="SubTable"?(o.openBlock(),o.createBlock(F,{key:0,label:x.columnComment,value:x.columnName},null,8,["label","value"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):o.createCommentVNode("",!0),o.createElementVNode("div",Z3e,[C[18]||(C[18]=o.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),C[19]||(C[19]=o.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),o.createElementVNode("div",J3e,[o.createElementVNode("div",Q3e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(x,V)=>{var O,R;return o.openBlock(),o.createElementBlock("div",{key:V,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",$3e,[V===0?(o.openBlock(),o.createBlock(I,{key:0,modelValue:c.value,"onUpdate:modelValue":C[4]||(C[4]=T=>c.value=T),onChange:u},{default:o.withCtx(()=>[o.createVNode(F,{label:"且",value:"and"}),o.createVNode(F,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",e8e,o.toDisplayString(x.join==="and"?"且":"或"),1))]),o.createElementVNode("div",t8e,[o.createElementVNode("div",n8e,[o.createElementVNode("div",r8e,[o.createElementVNode("span",o8e,[o.createElementVNode("span",i8e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(I,{modelValue:x.compare,"onUpdate:modelValue":T=>x.compare=T,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(F,{label:"等于",value:10}),o.createVNode(F,{label:"不等于",value:110}),o.createVNode(F,{label:"大于",value:20}),o.createVNode(F,{label:"大于等于",value:21}),o.createVNode(F,{label:"小于",value:30}),o.createVNode(F,{label:"小于等于",value:31}),o.createVNode(F,{label:"多词匹配",value:61}),o.createVNode(F,{label:"包含",value:50}),o.createVNode(F,{label:"不包含",value:150}),o.createVNode(F,{label:"区间",value:80}),o.createVNode(F,{label:"为空",value:90}),o.createVNode(F,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(P,{class:"close-icon",onClick:T=>f(V)},{default:o.withCtx(()=>[o.createVNode(W)]),_:2},1032,["onClick"])]),o.createElementVNode("span",a8e,[x.nodeId?(o.openBlock(),o.createElementBlock("div",l8e,[o.createElementVNode("div",s8e,[o.createElementVNode("div",c8e,[o.createElementVNode("span",u8e," ["+o.toDisplayString(o.unref(Te)(x==null?void 0:x.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(x.nodeName),1),C[15]||(C[15]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),C[16]||(C[16]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",d8e,o.toDisplayString(x.fieldValueName),1)]),o.createVNode(P,{onClick:T=>h(x)},{default:o.withCtx(()=>[o.createVNode(W)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=x==null?void 0:x.fieldAttr)==null?void 0:R.type)?(o.openBlock(),o.createBlock(I,{key:0,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.fieldAttr.enum,(T,U)=>(o.openBlock(),o.createBlock(F,{key:U,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(H,{key:1,modelValue:x.fieldValue,"onUpdate:modelValue":T=>x.fieldValue=T,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(S.$slots,"action",{item:x,varList:b.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",f8e,[o.createVNode(L,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(X,{icon:o.unref($n),text:""},{default:o.withCtx(()=>C[17]||(C[17]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",p8e,[o.createVNode(H,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:l.value,"onUpdate:modelValue":C[5]||(C[5]=x=>l.value=x)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",h8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(x,V)=>{var O;return o.openBlock(),o.createElementBlock("div",{key:V,class:"field-item",onClick:R=>d(x)},[o.createElementVNode("span",m8e," ["+o.toDisplayString(o.unref(Te)(((O=x==null?void 0:x.fieldAttr)==null?void 0:O.type)||x.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(x.columnComment),1)],8,g8e)}),128))])]),_:1})])])]),o.createVNode(A,{label:"汇总方式"},{default:o.withCtx(()=>[o.createVNode(oe,{style:{width:"100%",display:"flex","justify-content":"space-between"}},{default:o.withCtx(()=>[o.createVNode($,{span:11},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:e.config.summary,"onUpdate:modelValue":C[6]||(C[6]=x=>e.config.summary=x),filterable:""},{default:o.withCtx(()=>[o.createVNode(F,{value:"count(*)",label:"记录数量"}),o.createVNode(j,{style:{margin:"2px 0"}}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(x,V)=>(o.openBlock(),o.createBlock(F,{key:V,value:x.columnName,label:x.columnComment},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.config.summary!=="count(*)"?(o.openBlock(),o.createBlock($,{key:0,span:11},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:e.config.fun,"onUpdate:modelValue":C[7]||(C[7]=x=>e.config.fun=x)},{default:o.withCtx(()=>[o.createVNode(F,{value:"notnull",label:"已填计数"}),o.createVNode(F,{value:"null",label:"未填计数"}),o.createVNode(F,{value:"sum",label:"求和"}),o.createVNode(F,{value:"avg",label:"平均值"}),o.createVNode(F,{value:"max",label:"最大值"}),o.createVNode(F,{value:"min",label:"最小值"})]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0)]),_:1})]),_:1}),o.createVNode(A,{label:"获取方式"},{default:o.withCtx(()=>[o.createVNode(N,{modelValue:e.config.way,"onUpdate:modelValue":C[8]||(C[8]=x=>e.config.way=x)},{default:o.withCtx(()=>[o.createVNode(k,{value:"save",style:{width:"100%"}},{default:o.withCtx(()=>C[20]||(C[20]=[o.createTextVNode("直接获取")])),_:1}),C[22]||(C[22]=o.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),o.createVNode(k,{value:"get",style:{width:"100%"}},{default:o.withCtx(()=>C[21]||(C[21]=[o.createTextVNode("每次使用时动态获取")])),_:1}),C[23]||(C[23]=o.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-1b3eb0d4"]])},Symbol.toStringTag,{value:"Module"})),v8e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"systemDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject("showUser");function r(){n()}const i=o.inject("getUserIds");o.watch(i,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=o.resolveComponent("el-form-item"),u=o.resolveComponent("el-tag"),d=o.resolveComponent("el-button"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(c,{label:"通知内容"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),o.createVNode(c,{label:"通知人"},{default:o.withCtx(()=>[s[1]||(s[1]=o.createElementVNode("span",{class:"remark"},"将通过系统消息发送",-1)),o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(h,p)=>(o.openBlock(),o.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(d,{icon:o.unref($n),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-3d5b6cc6"]])},Symbol.toStringTag,{value:"Module"})),b8e={key:0,class:"raido-txt"},w8e={key:1,class:"raido-txt"},_8e={class:"config-detail"},C8e={class:"config-item"},E8e={class:"children-query",style:{"margin-top":"20px"}},k8e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},x8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},N8e={style:{flex:"1"}},S8e={class:"flex-both"},D8e={class:"flex"},B8e={class:"txt-label"},V8e={class:"field"},A8e={class:"condition-select"},O8e={key:0,class:"function-tag"},F8e={class:"box"},T8e={class:"ellipsis table-name"},P8e={class:"field"},j8e={class:"field-name ellipsis"},I8e={style:{margin:"20px 0"}},L8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},R8e={class:"field-list"},M8e=["onClick"],z8e={class:"field"},U8e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"tableDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.ref(),r=o.inject(Ms),i=o.inject(er);async function a(){n.value=await r(null)}a();async function l(m){const g=await i(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}const s=o.computed(()=>{const m=[];return m.push(Ar.defaultNode),m.push(t.node),m}),c=o.ref(""),u=o.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=o.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=o.resolveComponent("el-option"),y=o.resolveComponent("el-select"),w=o.resolveComponent("el-form-item"),_=o.resolveComponent("el-radio"),E=o.resolveComponent("el-radio-group"),S=o.resolveComponent("Close"),C=o.resolveComponent("el-icon"),k=o.resolveComponent("el-input"),N=o.resolveComponent("el-button"),A=o.resolveComponent("el-popover"),F=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(F,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(w,{label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=I=>t.config.workId=I),filterable:"",onChange:l},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(I,W)=>(o.openBlock(),o.createBlock(b,{key:W,label:I.workName,value:I.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o.createVNode(w,{label:"触发方式"},{default:o.withCtx(()=>[o.createVNode(E,{modelValue:e.config.type,"onUpdate:modelValue":g[3]||(g[3]=I=>e.config.type=I)},{default:o.withCtx(()=>[o.createVNode(_,{value:"save",style:{width:"100%"}},{default:o.withCtx(()=>g[6]||(g[6]=[o.createTextVNode(" 当新增或更新记录时 ")])),_:1}),e.config.type==="save"?(o.openBlock(),o.createElementBlock("div",b8e,[g[7]||(g[7]=o.createTextVNode(" 选择触发字段 ")),o.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[1]||(g[1]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(I,W)=>(o.openBlock(),o.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[8]||(g[8]=o.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):o.createCommentVNode("",!0),o.createVNode(_,{value:"add",style:{width:"100%"}},{default:o.withCtx(()=>g[9]||(g[9]=[o.createTextVNode("仅新增记录时")])),_:1}),g[14]||(g[14]=o.createElementVNode("div",{class:"raido-txt"},"当新增记录时触发流程",-1)),o.createVNode(_,{value:"edit",style:{width:"100%"}},{default:o.withCtx(()=>g[10]||(g[10]=[o.createTextVNode("仅更新记录时")])),_:1}),e.config.type==="edit"?(o.openBlock(),o.createElementBlock("div",w8e,[g[11]||(g[11]=o.createTextVNode(" 选择触发字段 ")),o.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[2]||(g[2]=I=>t.config.assignField=I),multiple:"",filterable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(I,W)=>(o.openBlock(),o.createBlock(b,{key:W,label:I.columnComment,value:I.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[12]||(g[12]=o.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):o.createCommentVNode("",!0),o.createVNode(_,{value:"del",style:{width:"100%"}},{default:o.withCtx(()=>g[13]||(g[13]=[o.createTextVNode("删除记录时")])),_:1})]),_:1},8,["modelValue"])]),_:1}),o.createElementVNode("div",_8e,[g[18]||(g[18]=o.createElementVNode("div",{class:"item-label"},"触发条件",-1)),g[19]||(g[19]=o.createElementVNode("span",{class:"remark"},"设置筛选条件,仅使满足条件的记录进入流程。",-1)),o.createElementVNode("div",C8e,[o.createElementVNode("div",E8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.filter,(I,W)=>{var P,H;return o.openBlock(),o.createElementBlock("div",{key:W,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[o.createElementVNode("span",k8e,[W===0?(o.openBlock(),o.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[4]||(g[4]=X=>d.value=X),onChange:f},{default:o.withCtx(()=>[o.createVNode(b,{label:"且",value:"and"}),o.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock("span",x8e,o.toDisplayString(I.join==="and"?"且":"或"),1))]),o.createElementVNode("div",N8e,[o.createElementVNode("div",S8e,[o.createElementVNode("div",D8e,[o.createElementVNode("span",B8e,[o.createElementVNode("span",V8e," ["+o.toDisplayString(o.unref(Te)(((P=I==null?void 0:I.fieldAttr)==null?void 0:P.type)||I.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(I.columnComment),1)]),o.createElementVNode("span",null,[o.createVNode(y,{modelValue:I.compare,"onUpdate:modelValue":X=>I.compare=X,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:o.withCtx(()=>[o.createVNode(b,{label:"等于",value:10}),o.createVNode(b,{label:"不等于",value:110}),o.createVNode(b,{label:"大于",value:20}),o.createVNode(b,{label:"大于等于",value:21}),o.createVNode(b,{label:"小于",value:30}),o.createVNode(b,{label:"小于等于",value:31}),o.createVNode(b,{label:"包含",value:50}),o.createVNode(b,{label:"不包含",value:150}),o.createVNode(b,{label:"区间",value:80}),o.createVNode(b,{label:"为空",value:90}),o.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),o.createVNode(C,{class:"close-icon",onClick:X=>p(W)},{default:o.withCtx(()=>[o.createVNode(S)]),_:2},1032,["onClick"])]),o.createElementVNode("span",A8e,[I.nodeId?(o.openBlock(),o.createElementBlock("div",O8e,[o.createElementVNode("div",F8e,[o.createElementVNode("div",T8e,[o.createElementVNode("span",P8e," ["+o.toDisplayString(o.unref(Te)(I==null?void 0:I.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(I.nodeName),1),g[15]||(g[15]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[16]||(g[16]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",j8e,o.toDisplayString(I.fieldValueName),1)]),o.createVNode(C,{onClick:X=>v(I)},{default:o.withCtx(()=>[o.createVNode(S)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((H=I==null?void 0:I.fieldAttr)==null?void 0:H.type)?(o.openBlock(),o.createBlock(y,{key:0,modelValue:I.fieldValue,"onUpdate:modelValue":X=>I.fieldValue=X,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.fieldAttr.enum,(X,L)=>(o.openBlock(),o.createBlock(b,{key:L,label:X.label,value:X.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(k,{key:1,modelValue:I.fieldValue,"onUpdate:modelValue":X=>I.fieldValue=X,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(m.$slots,"action",{item:I,varList:s.value},void 0,!0)])])])}),128))]),o.createElementVNode("div",I8e,[o.createVNode(A,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode(N,{icon:o.unref($n),text:""},{default:o.withCtx(()=>g[17]||(g[17]=[o.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",L8e,[o.createVNode(k,{"prefix-icon":o.unref(ni),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[5]||(g[5]=I=>c.value=I)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",R8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(I,W)=>{var P;return o.openBlock(),o.createElementBlock("div",{key:W,class:"field-item",onClick:H=>h(I)},[o.createElementVNode("span",z8e," ["+o.toDisplayString(o.unref(Te)(((P=I==null?void 0:I.fieldAttr)==null?void 0:P.type)||I.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(I.columnComment),1)],8,M8e)}),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-53e95284"]])},Symbol.toStringTag,{value:"Module"})),H8e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"timeDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e;return(n,r)=>{const i=o.resolveComponent("el-date-picker"),a=o.resolveComponent("el-form-item"),l=o.resolveComponent("el-option"),s=o.resolveComponent("el-select"),c=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(c,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(a,{label:"开始执行时间"},{default:o.withCtx(()=>[o.createVNode(i,{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}),o.createVNode(a,{label:"结束执行时间"},{default:o.withCtx(()=>[o.createVNode(i,{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}),o.createVNode(a,{label:"循环"},{default:o.withCtx(()=>[o.createVNode(s,{modelValue:t.config.loop,"onUpdate:modelValue":r[2]||(r[2]=u=>t.config.loop=u)},{default:o.withCtx(()=>[o.createVNode(l,{label:"每小时",value:"hour"}),o.createVNode(l,{label:"每天",value:"day"}),o.createVNode(l,{label:"每周",value:"week"}),o.createVNode(l,{label:"每月",value:"month"}),o.createVNode(l,{label:"每年",value:"year"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),W8e={style:{float:"left"}},q8e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},G8e={key:0,class:"no-work"},K8e={key:1,class:"config-detail"},Y8e={class:"config-item"},X8e={class:"children-query",style:{"margin-top":"20px"}},Z8e={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},J8e={style:{flex:"1"}},Q8e={class:"flex-both"},$8e={class:"flex"},e6e={class:"txt-label"},t6e={class:"field"},n6e={class:"condition-select"},r6e={key:0,class:"function-tag"},o6e={class:"box"},i6e={class:"ellipsis table-name"},a6e={class:"field"},l6e={class:"field-name ellipsis"},s6e={style:{margin:"20px 0"}},c6e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},u6e={class:"field-list"},d6e=["onClick"],f6e={class:"field"},p6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"uiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.ref(),r=o.ref(),i=o.ref(),a=o.ref(),l=o.inject(Ms),s=o.inject(wG),c=o.inject(er),u=o.ref(""),d=o.computed(()=>{var k;const C=u.value.trim().toLowerCase();return(k=i.value)==null?void 0:k.filter(N=>[N.columnName,N.columnComment].some(A=>String(A||"").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,i.value=C==null?void 0:C.fieldList}}f();async function h(C){const k=await c(C);t.config.workName=k==null?void 0:k.workName,t.config.viewId="",t.config.fields=[],r.value=k==null?void 0:k.viewList,i.value=k==null?void 0:k.fieldList}async function p(C){if(t.config.workName="",t.config.workId="",t.config.type==="drag"&&!a.value){const k=await s(C);a.value=k}}function v(){var k;const C=(k=a.value)==null?void 0:k.find(N=>N.workId===t.config.workId);t.config.workName=C==null?void 0:C.workName}async function m(){const C=y.value.find(k=>k.nodeId===t.config.selectNodeId);C&&(t.config.workId=C.config.workId,t.config.workName=C.config.workName)}const g=o.inject(zt);function b(C,k,N=[]){if(C.nodeId===k)return N;["search","add","button","table","api","summary","loop"].includes(C.nodeType)&&N.push(C);let F=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const I of C.conditionNodes)if(At(I,k)){b(I.childNode,k,N),F=!0;break}}return!F&&C.childNode&&b(C.childNode,k,N),N}const y=o.computed(()=>{const C=[];return b(g.value.nodeConfig,t.node.nodeId,C),C}),w=o.computed(()=>{const C=[];return C.push(Ar.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 S(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}return(C,k)=>{const N=o.resolveComponent("el-option"),A=o.resolveComponent("el-select"),F=o.resolveComponent("el-form-item"),I=o.resolveComponent("el-radio"),W=o.resolveComponent("el-radio-group"),P=o.resolveComponent("el-form"),H=o.resolveComponent("InfoFilled"),X=o.resolveComponent("el-icon"),L=o.resolveComponent("Close"),j=o.resolveComponent("el-input"),$=o.resolveComponent("el-button"),oe=o.resolveComponent("el-popover");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(P,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(F,{label:"推送内容"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.type,"onUpdate:modelValue":k[0]||(k[0]=D=>t.config.type=D),filterable:"",onChange:p},{default:o.withCtx(()=>[o.createVNode(N,{label:"打开记录创建层",value:"form"}),o.createVNode(N,{label:"打开记录详情页",value:"info"}),o.createVNode(N,{label:"打开工作表视图",value:"view"}),o.createVNode(N,{label:"打开自定义页面",value:"drag"})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="info"?(o.openBlock(),o.createBlock(F,{key:0,label:"选择记录"},{default:o.withCtx(()=>[k[7]||(k[7]=o.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),o.createVNode(A,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":k[1]||(k[1]=D=>t.config.selectNodeId=D),filterable:"",clearable:"",onChange:m},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.nodeName,value:D.nodeId},{default:o.withCtx(()=>[o.createElementVNode("span",W8e,o.toDisplayString(D.nodeName),1),o.createElementVNode("span",q8e,' 工作表 "'+o.toDisplayString(D.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.config.type==="drag"?(o.openBlock(),o.createBlock(F,{key:1,label:"选择自定义页面"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":k[2]||(k[2]=D=>t.config.workId=D),filterable:"",clearable:"",onChange:v},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.workName,value:D.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):(o.openBlock(),o.createBlock(F,{key:2,label:"选择工作表"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":k[3]||(k[3]=D=>t.config.workId=D),filterable:"",clearable:"",onChange:h},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.workName,value:D.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),e.config.type==="view"?(o.openBlock(),o.createBlock(F,{key:3,label:"选择视图"},{default:o.withCtx(()=>[o.createVNode(A,{modelValue:t.config.viewId,"onUpdate:modelValue":k[4]||(k[4]=D=>t.config.viewId=D),filterable:"",clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(D,x)=>(o.openBlock(),o.createBlock(N,{key:x,label:D.viewName,value:D.viewId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{label:"打开方式"},{default:o.withCtx(()=>[o.createVNode(W,{modelValue:t.config.open,"onUpdate:modelValue":k[5]||(k[5]=D=>t.config.open=D)},{default:o.withCtx(()=>[o.createVNode(I,{value:"popup"},{default:o.withCtx(()=>k[8]||(k[8]=[o.createTextVNode("弹窗")])),_:1}),o.createVNode(I,{value:"page"},{default:o.withCtx(()=>k[9]||(k[9]=[o.createTextVNode("打开新页面")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.config.type==="form"||e.config.type==="view"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[k[14]||(k[14]=o.createElementVNode("div",{class:"title"},"设置字段",-1)),t.config.workId?(o.openBlock(),o.createElementBlock("div",K8e,[o.createElementVNode("div",Y8e,[o.createElementVNode("div",X8e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.fields,(D,x)=>{var V,O;return o.openBlock(),o.createElementBlock(o.Fragment,{key:x},[D.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",Z8e,[o.createElementVNode("div",J8e,[o.createElementVNode("div",Q8e,[o.createElementVNode("div",$8e,[o.createElementVNode("span",e6e,[o.createElementVNode("span",t6e," ["+o.toDisplayString(o.unref(Te)(((V=D==null?void 0:D.fieldAttr)==null?void 0:V.type)||D.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)])]),o.createVNode(X,{class:"close-icon",onClick:R=>E(x)},{default:o.withCtx(()=>[o.createVNode(L)]),_:2},1032,["onClick"])]),o.createElementVNode("span",n6e,[D.nodeId?(o.openBlock(),o.createElementBlock("div",r6e,[o.createElementVNode("div",o6e,[o.createElementVNode("div",i6e,[o.createElementVNode("span",a6e," ["+o.toDisplayString(o.unref(Te)(D==null?void 0:D.fieldType))+"] ",1),o.createElementVNode("span",null,o.toDisplayString(D.nodeName),1),k[11]||(k[11]=o.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),k[12]||(k[12]=o.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),o.createElementVNode("div",l6e,o.toDisplayString(D.fieldValueName),1)]),o.createVNode(X,{onClick:R=>S(D)},{default:o.withCtx(()=>[o.createVNode(L)]),_:2},1032,["onClick"])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((O=D==null?void 0:D.fieldAttr)==null?void 0:O.type)?(o.openBlock(),o.createBlock(A,{key:0,modelValue:D.fieldValue,"onUpdate:modelValue":R=>D.fieldValue=R,clearable:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.fieldAttr.enum,(R,T)=>(o.openBlock(),o.createBlock(N,{key:T,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(j,{key:1,modelValue:D.fieldValue,"onUpdate:modelValue":R=>D.fieldValue=R,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),o.renderSlot(C.$slots,"action",{item:D,varList:w.value},void 0,!0)])])])):o.createCommentVNode("",!0)],64)}),128))]),o.createElementVNode("div",s6e,[o.createVNode(oe,{trigger:"click",width:220},{reference:o.withCtx(()=>[o.createVNode($,{icon:C.Plus,text:""},{default:o.withCtx(()=>k[13]||(k[13]=[o.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:o.withCtx(()=>[o.createElementVNode("div",c6e,[o.createVNode(j,{"prefix-icon":C.Search,placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":k[6]||(k[6]=D=>u.value=D)},null,8,["prefix-icon","modelValue"])]),o.createElementVNode("div",u6e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(D,x)=>{var V;return o.openBlock(),o.createElementBlock(o.Fragment,{key:x},[D.isSys!=="1"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"field-item",onClick:O=>_(D)},[o.createElementVNode("span",f6e," ["+o.toDisplayString(o.unref(Te)(((V=D==null?void 0:D.fieldAttr)==null?void 0:V.type)||D.htmlType))+"] ",1),o.createTextVNode(" "+o.toDisplayString(D.columnComment),1)],8,d6e)):o.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(o.openBlock(),o.createElementBlock("div",G8e,[o.createVNode(X,{size:"17"},{default:o.withCtx(()=>[o.createVNode(H)]),_:1}),k[10]||(k[10]=o.createElementVNode("div",{class:"ml"},"必须先选择一个工作表后,才能设置可执行的动作",-1))]))],64)):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-b7f4d181"]])},Symbol.toStringTag,{value:"Module"})),h6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"wechatDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject("showUser");function r(){n()}const i=o.inject("getUserIds");o.watch(i,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=o.resolveComponent("el-form-item"),u=o.resolveComponent("el-tag"),d=o.resolveComponent("el-button"),f=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",null,[s[1]||(s[1]=o.createElementVNode("div",{class:"header"}," 发送服务号消息是指向已关注公众号的微信用户发送模版消息。发送对象支持使用人员字段(通过微信授权注册的外部门户用户)或文本字段(存储微信公众号openid)。使用微信公众号模板消息需要组织后台绑定已认证的企业服务号,并在微信公众号后台开通“模板消息”功能。 ",-1)),o.createVNode(f,{model:t.config,labelPosition:"top"},{default:o.withCtx(()=>[o.createVNode(c,{label:"通知内容"},{default:o.withCtx(()=>[o.createVNode(o.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),o.createVNode(c,{label:"通知人"},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.config.accounts,(h,p)=>(o.openBlock(),o.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),o.createVNode(d,{icon:o.unref($n),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-46fa206d"]])},Symbol.toStringTag,{value:"Module"})),g6e={key:0,class:"node-title"},m6e={key:1,class:"no-set"},y6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"addNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);if(i.set(t.node.config.workId,s),t.node.config.workName=s.workName,s.fieldList){const c=new Map(t.node.config.fields.map(u=>[u.columnName,u]));t.node.config.fields=s.fieldList.reduce((u,d)=>{const f=c.get(d.columnName);return f?u.push({...f,...d}):u.push(d),u},[])}}}),o.inject(Pt).register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.fields)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.fields.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}if(g.nodeType==="summary")return;(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",g6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",m6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),v6e={key:0},b6e={key:1,class:"no-set"},w6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"apiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.callApi.controlName,message:"请选择集成API"})),(r,i)=>t.node.config.callApi.controlName?(o.openBlock(),o.createElementBlock("div",v6e," 调用API:"+o.toDisplayString(t.node.config.callApi.controlName),1)):(o.openBlock(),o.createElementBlock("div",b6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),_6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"approverNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&t.node.config.selectNodeId&&t.node.config.workId,message:"请选择审批人或发起审批数据对象不能为空"})),(r,i)=>(o.openBlock(),o.createElementBlock("div",null,[i[0]||(i[0]=o.createTextVNode(" 审批人: ")),e.node.config.handlerScope===1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):o.createCommentVNode("",!0),e.node.config.handlerScope===2?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("部门主管")],64)):o.createCommentVNode("",!0),e.node.config.handlerScope===3?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode("连续多级主管")],64)):o.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),C6e={class:"ep-node-router"},E6e={key:0,class:"ep-condition-node-add"},k6e={class:"ep-node-router-box"},x6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"branchNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e;o.onMounted(async()=>{});const r=t,i=l=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(l,1):r("removeNode")},a=()=>{const l=Sn(et[ti].defaultNode),s=n.node.conditionNodes.length;n.node.conditionNodes.splice(s-1,0,l)};return(l,s)=>{var c;return o.openBlock(),o.createElementBlock("div",C6e,[(c=n.node)!=null&&c.isBanch?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.isView?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",E6e,"判断条件"))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.isView?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:a}," 添加条件 "))],64)),o.createElementVNode("div",k6e,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.node.conditionNodes,(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:"ep-node-router-col",key:d},[o.createVNode(Eb,{"is-view":n.isView,node:u,conditionNodes:n.node.conditionNodes,conditionIndex:d,onRemoveNode:f=>i(d)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),d==0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[s[0]||(s[0]=o.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),s[1]||(s[1]=o.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):o.createCommentVNode("",!0),d==n.node.conditionNodes.length-1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[s[2]||(s[2]=o.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),s[3]||(s[3]=o.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):o.createCommentVNode("",!0)]))),128))]),o.createVNode(Xh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-9fd02762"]])},Symbol.toStringTag,{value:"Module"})),N6e={key:0,class:"node-title"},S6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"buttonNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[e.node.config.buttonName?(o.openBlock(),o.createElementBlock("div",N6e,' 按钮 "'+o.toDisplayString(e.node.config.buttonName)+'" ',1)):o.createCommentVNode("",!0),n[0]||(n[0]=o.createElementVNode("div",{class:"remark"},"点击按钮后立即执行",-1))],64))}}),[["__scopeId","data-v-f5243367"]])},Symbol.toStringTag,{value:"Module"})),D6e={key:1,class:"ep-node-condition"},B6e={key:0,class:"node-title"},V6e={key:1,class:"no-set"},A6e={key:2,class:"node-title"},O6e={class:"remark"},F6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.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||o.inject(Pt).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:"请选择条件"}}),(i,a)=>{var u,d,f,h,p,v,m,g;const l=o.resolveComponent("SuccessFilled"),s=o.resolveComponent("el-icon"),c=o.resolveComponent("CircleCloseFilled");return(d=(u=t.node)==null?void 0:u.config)!=null&&d.isBanch?(o.openBlock(),o.createElementBlock("div",{key:0,class:"branch-item",style:o.normalizeStyle((f=t.node.config)!=null&&f.isData?{color:"#01ca86"}:{color:"#f44336"})},[(h=t.node.config)!=null&&h.isData?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(s,{class:"mr"},{default:o.withCtx(()=>[o.createVNode(l)]),_:1}),a[0]||(a[0]=o.createElementVNode("span",null,"有数据",-1))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(s,{class:"mr"},{default:o.withCtx(()=>[o.createVNode(c)]),_:1}),a[1]||(a[1]=o.createElementVNode("span",null,"无数据",-1))],64))],4)):(o.openBlock(),o.createElementBlock("div",D6e,[((v=(p=t.node.config)==null?void 0:p.filter)==null?void 0:v.length)>0?(o.openBlock(),o.createElementBlock("div",B6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):t.node.isLastCondition?(o.openBlock(),o.createElementBlock("div",A6e,"其他条件进入此流程")):(o.openBlock(),o.createElementBlock("div",V6e," 设置此节点 ")),o.createElementVNode("div",O6e,[((g=(m=t.node.config)==null?void 0:m.filter)==null?void 0:g.length)>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("筛选"+o.toDisplayString(e.node.config.filter.length)+"个字段",1)],64)):o.createCommentVNode("",!0)])]))}}}),[["__scopeId","data-v-df26e984"]])},Symbol.toStringTag,{value:"Module"})),T6e={key:0,class:"node-title"},P6e={key:1,class:"no-set"},j6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"delNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,i)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",T6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",P6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),I6e={key:0},L6e={key:1,class:"no-set"},R6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"dingNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",I6e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",L6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),M6e={key:0,class:"node-title"},z6e={key:1,class:"no-set"},U6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"editNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);i.set(t.node.config.workId,s),t.node.config.workName=s.workName}}),o.inject(Pt).register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.fields)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.fields.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}if(g.nodeType==="summary")return;(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",M6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",z6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),H6e={key:0},W6e={key:1,class:"no-set"},q6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"emailNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",H6e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",W6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),G6e={key:0,class:"node-title"},K6e={key:1,class:"no-set"},Y6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"flowNode",props:{tempNodeId:{type:String},isView:{type:Boolean,default:!1},node:{type:Object,default:()=>({})}},setup(e){const t=e;o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"}));function r(i){window.open(`/workflow/${i.procId}`)}return(i,a)=>{const l=o.resolveComponent("Link"),s=o.resolveComponent("el-icon");return e.node.config.procName?(o.openBlock(),o.createElementBlock("div",G6e,[o.createTextVNode(" 执行流程: "+o.toDisplayString(e.node.config.procName)+" ",1),e.node.config.procId&&!t.isView?(o.openBlock(),o.createBlock(s,{key:0,size:"18",style:{color:"#1565c0"},onClick:a[0]||(a[0]=o.withModifiers(c=>r(e.node.config),["stop"]))},{default:o.withCtx(()=>[o.createVNode(l)]),_:1})):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",K6e,"设置此节点"))}}}),[["__scopeId","data-v-bf0accd5"]])},Symbol.toStringTag,{value:"Module"})),X6e={key:0,class:"node-title"},Z6e={key:1,class:"no-set"},J6e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"loopNode",props:{tempNodeId:{type:String},isView:{type:Boolean,default:!1},node:{type:Object,default:()=>({})}},setup(e){const t=e;o.inject(Pt).register(t.tempNodeId,()=>{var i;return{valid:!!t.node.config.filter||!!((i=t.node.config.filter)!=null&&i.length),message:"请输入循环退出条件"}});function r(i){window.open(`/workflow/${i.procId}`)}return(i,a)=>{const l=o.resolveComponent("Link"),s=o.resolveComponent("el-icon");return e.node.config.type?(o.openBlock(),o.createElementBlock("div",X6e,[e.node.config.type!=="count"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" 满足条件时循环 ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" 循环指定次数 ")],64)),e.node.config.procName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(" : "+o.toDisplayString(e.node.config.procName),1)],64)):o.createCommentVNode("",!0),e.node.config.procId&&!t.isView?(o.openBlock(),o.createBlock(s,{key:3,size:"18",style:{color:"#1565c0","margin-left":"5px"},onClick:a[0]||(a[0]=o.withModifiers(c=>r(e.node.config),["stop"]))},{default:o.withCtx(()=>[o.createVNode(l)]),_:1})):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",Z6e,"设置此节点"))}}}),[["__scopeId","data-v-268e643a"]])},Symbol.toStringTag,{value:"Module"})),Q6e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"notifyNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&!!t.node.config.selectNodeId,message:"请选择抄送人和数据对象"})),(r,i)=>(o.openBlock(),o.createElementBlock("div",null,[i[0]||(i[0]=o.createTextVNode(" 抄送人: ")),e.node.config.handlerScope===1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):o.createCommentVNode("",!0),e.node.config.handlerScope===2?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("部门主管")],64)):o.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),$6e={key:0,class:"node-title"},e5e={key:1,class:"no-set"},t5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"oddNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}const l=o.inject(Pt);return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);i.set(t.node.config.workId,s),t.node.config.workName=s.workName}}),l.register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.filter)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.filter.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}if(g.nodeType==="summary")return;(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",$6e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",e5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),n5e={key:0,class:"node-title"},r5e={key:1,class:"no-set"},o5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"searchNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(zt),r=o.inject(er),i=new Map;function a(s,c){if(!s)return null;if(s.nodeId===c)return s;if(s.nodeType==="router"&&s.conditionNodes)for(const u of s.conditionNodes){const d=a(u.childNode,c);if(d)return d}return s.childNode?a(s.childNode,c):null}const l=o.inject(Pt);return o.onMounted(async()=>{if(t.node.config.workId){const s=await r(t.node.config.workId);i.set(t.node.config.workId,s),t.node.config.workName=s.workName}}),l.register(t.tempNodeId,()=>{var s,c,u;if(!((s=t.node.config)!=null&&s.workName))return{valid:!1,message:"请选择工作表"};if(((u=(c=t.node.config)==null?void 0:c.filter)==null?void 0:u.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(i.has(t.node.config.workId)){const d=i.get(t.node.config.workId),f=new Map(d.fieldList.map(v=>[v.columnName,v])),h=[],p=[];if(t.node.config.filter.forEach(v=>{var w,_;const m=v.columnComment||`字段ID: ${v.columnId}`;if(!f.has(v.columnName)){h.push(m);return}if(!v.nodeId||v.nodeId==="1000")return;const g=a(n.value.nodeConfig,v.nodeId);if(!g){p.push(m);return}if(g.nodeType==="summary")return;(((w=g.config)==null?void 0:w.fields)??((_=g.config)==null?void 0:_.selectNodeFields)??[]).some(E=>E.columnName===v.fieldValue)||p.push(m)}),p.length>0)return{valid:!1,message:`以下字段值不存在: ${p.join(", ")}`};if(h.length>0)return{valid:!1,message:`以下字段不存在: ${h.join(", ")}`}}}return{valid:!0,message:"通过"}}),(s,c)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",n5e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",r5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),i5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"startNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.selectNodeId,message:"请选择发起审批的数据对象"})),(r,i)=>(o.openBlock(),o.createElementBlock("div",null,"发起人:触发者"))}})},Symbol.toStringTag,{value:"Module"})),a5e={key:0,class:"node-title"},l5e={key:1,class:"no-set"},s5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"summaryNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(er),r=new Map,i=o.inject(Pt);return o.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.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?(o.openBlock(),o.createElementBlock("div",a5e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",l5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),c5e={key:0},u5e={key:1,class:"no-set"},d5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"systemNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",c5e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",u5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),f5e={class:"node-title"},p5e={class:"remark"},h5e={key:1,class:"no-set"},g5e=Object.freeze(Object.defineProperty({__proto__:null,default:tt(o.defineComponent({__name:"tableNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.inject(er),r=new Map,i=o.inject(Pt);o.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}}),i.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=o.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?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",f5e,'工作表 "'+o.toDisplayString(e.node.config.workName)+'"',1),o.createElementVNode("div",p5e,o.toDisplayString(a.value),1)],64)):(o.openBlock(),o.createElementBlock("div",h5e,"设置此节点"))}}),[["__scopeId","data-v-a1ebfe82"]])},Symbol.toStringTag,{value:"Module"})),m5e={key:0},y5e={key:1,class:"no-set"},v5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"timeNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.start,message:"请选择开始时间"})),(r,i)=>e.node.config.start?(o.openBlock(),o.createElementBlock("div",m5e,"从 "+o.toDisplayString(t.node.config.start)+" 开始",1)):(o.openBlock(),o.createElementBlock("div",y5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),b5e={key:0,class:"node-title"},w5e={key:1,class:"no-set"},_5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"uiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,i)=>e.node.config.workName?(o.openBlock(),o.createElementBlock("div",b5e,' 工作表 "'+o.toDisplayString(e.node.config.workName)+'" ',1)):(o.openBlock(),o.createElementBlock("div",w5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),C5e={key:0},E5e={key:1,class:"no-set"},k5e=Object.freeze(Object.defineProperty({__proto__:null,default:o.defineComponent({__name:"wechatNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return o.inject(Pt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,i)=>t.node.config.accounts&&t.node.config.accounts.length>0?(o.openBlock(),o.createElementBlock("div",C5e," 通知人:"+o.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(o.openBlock(),o.createElementBlock("div",E5e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"}));return RG});
|