dflow-designer 0.3.7 → 0.3.8
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,o=e.elemsToHtml,a=e.styleToHtml,l=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(d){return rn.registerMenu(d)}),n&&n.forEach(function(d){return rn.registerRenderElem(d)}),r&&rn.registerRenderStyle(r),o&&o.forEach(function(d){return rn.registerElemToHtml(d)}),a&&rn.registerStyleToHtml(a),l&&l.forEach(function(d){return rn.registerPreParseHtml(d)}),s&&s.forEach(function(d){return rn.registerParseElemHtml(d)}),c&&rn.registerParseStyleHtml(c),u&&rn.registerPlugin(u)}bge.forEach(function(e){return As(e)}),As(Zme),As(Cbe),As(Vwe),As(EEe),As(dke);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"]}},hke={hoverbarKeys:Ot(Ot({},bU),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};rn.setEditorConfig(Ot(Ot({},hke),{decorate:yU}));var gke={hoverbarKeys:bU};rn.setSimpleEditorConfig(Ot(Ot({},gke),{decorate:yU}));var mke={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"]};rn.setToolbarConfig(mke);var yke={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,o=r===void 0?[]:r,a=e.html,l=e.config,s=l===void 0?{}:l,c=e.mode,u=(c===void 0?"default":c)==="simple"?rn.simpleEditorConfig:rn.editorConfig,d=Ot(Ot({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return _se({selector:n,config:Ot(Ot(Ot({},u),s),{hoverbarKeys:d}),content:o,html:a,plugins:rn.plugins})}function _U(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,a=e.mode,l=a===void 0?"default":a;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=l==="simple"?rn.simpleToolbarConfig:rn.toolbarConfig,c=function(u,d){if(u==null)throw new Error("Cannot create toolbar, because editor is null");var f=d.selector,h=d.config,p=h===void 0?{}:h;if(function(g,b){return FA(g,"data-w-e-toolbar",b)}(u,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=jr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),m=new cO(f,v);return __.set(m,u),H0.set(u,m),m}(n,{selector:t,config:Ot(Ot({},s),o)});return c}rn.setSimpleToolbarConfig(yke);var vke={};const bke=Object.freeze(Object.defineProperty({__proto__:null,Boot:rn,DomEditor:M,SlateEditor:D,SlateElement:ve,SlateLocation:Dee,SlateNode:se,SlatePath:G,SlatePoint:Fe,SlateRange:te,SlateText:he,SlateTransforms:Z,Toolbar:cO,createEditor:wU,createToolbar:_U,createUploader:CC,default:vke,genModalButtonElems:Hl,genModalInputElems:ir,genModalTextareaElems:gse,i18nAddResources:Gn,i18nChangeLanguage:qse,i18nGetResources:Gse,t:ce},Symbol.toStringTag,{value:"Module"}));var wke=Object.defineProperty,_ke=Object.defineProperties,Cke=Object.getOwnPropertyDescriptors,CU=Object.getOwnPropertySymbols,Eke=Object.prototype.hasOwnProperty,kke=Object.prototype.propertyIsEnumerable,EU=(e,t,n)=>t in e?wke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xke=(e,t)=>{for(var n in t||(t={}))Eke.call(t,n)&&EU(e,n,t[n]);if(CU)for(var n of CU(t))kke.call(t,n)&&EU(e,n,t[n]);return e},Nke=(e,t)=>_ke(e,Cke(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 Ske=i.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=i.ref(null),r=i.shallowRef(null),o=i.ref(""),a=()=>{if(!n.value)return;const s=i.toRaw(e.defaultContent);wU({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:Nke(xke({},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(o.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 i.onMounted(()=>{a()}),i.watch(()=>e.modelValue,s=>{s!==o.value&&l(s)}),{box:n}}}),Dke={ref:"box",style:{height:"100%"}};function Bke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Dke,null,512)}var Ake=kU(Ske,[["render",Bke]]);const Oke=i.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=i.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");M.getToolbar(r)||_U({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Vke={ref:"selector"};function Fke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Vke,null,512)}var Tke=kU(Oke,[["render",Fke]]),xU={exports:{}};const Pke=Jq(bke);(function(e,t){(function(n,r){e.exports=r(Pke)})(self,n=>(()=>{var r={857:s=>{s.exports=n}},o={};function a(s){var c=o[s];if(c!==void 0)return c.exports;var u=o[s]={exports:{}};return r[s](u,u.exports,a),u.exports}a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>B});var s=a(857);(0,s.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,s.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function c(V,L,F,Y,$){return{sel:V,data:L,children:F,text:Y,elm:$,key:L===void 0?void 0:L.key}}const u=Array.isArray;function d(V){return typeof V=="string"||typeof V=="number"||V instanceof String||V instanceof Number}function f(V,L,F){if(V.ns="http://www.w3.org/2000/svg",F!=="foreignObject"&&L!==void 0)for(let Y=0;Y<L.length;++Y){const $=L[Y];if(typeof $=="string")continue;const ie=$.data;ie!==void 0&&f(ie,$.children,$.sel)}}function h(V,L,F){let Y,$,ie,K={};if(F!==void 0?(L!==null&&(K=L),u(F)?Y=F:d(F)?$=F.toString():F&&F.sel&&(Y=[F])):L!=null&&(u(L)?Y=L:d(L)?$=L.toString():L&&L.sel?Y=[L]:K=L),Y!==void 0)for(ie=0;ie<Y.length;++ie)d(Y[ie])&&(Y[ie]=c(void 0,void 0,void 0,Y[ie],void 0));return V[0]!=="s"||V[1]!=="v"||V[2]!=="g"||V.length!==3&&V[3]!=="."&&V[3]!=="#"||f(K,Y,V),c(V,K,Y,$,void 0)}const p={type:"attachment",renderElem:function(V,L,F){var Y=F.isDisabled(),$=s.DomEditor.isNodeSelected(F,V),ie=V,K=ie.fileName,X=K===void 0?"":K,ge=ie.link,ae=ge===void 0?"":ge;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:$&&!Y?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:Y?"pointer":"inherit"},on:{click:function(){Y&&ae&&window.open(ae,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),X])}};function v(V){return V!==null&&typeof V=="object"&&"constructor"in V&&V.constructor===Object}function m(V={},L={}){Object.keys(L).forEach(F=>{V[F]===void 0?V[F]=L[F]:v(L[F])&&v(V[F])&&Object.keys(L[F]).length>0&&m(V[F],L[F])})}const g={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const V=typeof document<"u"?document:{};return m(V,g),V}const y={document:g,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:V=>typeof setTimeout>"u"?(V(),null):setTimeout(V,0),cancelAnimationFrame(V){typeof setTimeout<"u"&&clearTimeout(V)}};function w(){const V=typeof window<"u"?window:{};return m(V,y),V}class _ extends Array{constructor(L){typeof L=="number"?super(L):(super(...L||[]),function(F){const Y=F.__proto__;Object.defineProperty(F,"__proto__",{get:()=>Y,set($){Y.__proto__=$}})}(this))}}function E(V,L){const F=w(),Y=b();let $=[];if(!L&&V instanceof _)return V;if(!V)return new _($);if(typeof V=="string"){const ie=V.trim();if(ie.indexOf("<")>=0&&ie.indexOf(">")>=0){let K="div";ie.indexOf("<li")===0&&(K="ul"),ie.indexOf("<tr")===0&&(K="tbody"),ie.indexOf("<td")!==0&&ie.indexOf("<th")!==0||(K="tr"),ie.indexOf("<tbody")===0&&(K="table"),ie.indexOf("<option")===0&&(K="select");const X=Y.createElement(K);X.innerHTML=ie;for(let ge=0;ge<X.childNodes.length;ge+=1)$.push(X.childNodes[ge])}else $=function(K,X){if(typeof K!="string")return[K];const ge=[],ae=X.querySelectorAll(K);for(let ne=0;ne<ae.length;ne+=1)ge.push(ae[ne]);return ge}(V.trim(),L||Y)}else if(V.nodeType||V===F||V===Y)$.push(V);else if(Array.isArray(V)){if(V instanceof _)return V;$=V}return new _(function(ie){const K=[];for(let X=0;X<ie.length;X+=1)K.indexOf(ie[X])===-1&&K.push(ie[X]);return K}($))}function N(...V){let[L,F,Y,$]=V;function ie(ae){const ne=ae.target;if(!ne)return;const me=ae.target.dom7EventData||[];if(me.indexOf(ae)<0&&me.unshift(ae),E(ne).is(F))Y.apply(ne,me);else{const ot=E(ne).parents();for(let Ne=0;Ne<ot.length;Ne+=1)E(ot[Ne]).is(F)&&Y.apply(ot[Ne],me)}}function K(ae){const ne=ae&&ae.target&&ae.target.dom7EventData||[];ne.indexOf(ae)<0&&ne.unshift(ae),Y.apply(this,ne)}typeof V[1]=="function"&&([L,Y,$]=V,F=void 0),$||($=!1);const X=L.split(" ");let ge;for(let ae=0;ae<this.length;ae+=1){const ne=this[ae];if(F)for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7LiveListeners||(ne.dom7LiveListeners={}),ne.dom7LiveListeners[me]||(ne.dom7LiveListeners[me]=[]),ne.dom7LiveListeners[me].push({listener:Y,proxyListener:ie}),ne.addEventListener(me,ie,$)}else for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7Listeners||(ne.dom7Listeners={}),ne.dom7Listeners[me]||(ne.dom7Listeners[me]=[]),ne.dom7Listeners[me].push({listener:Y,proxyListener:K}),ne.addEventListener(me,K,$)}}return this}function C(){for(let V=0;V<this.length;V+=1)this[V].style.display="none";return this}function S(...V){let L;const F=b();for(let Y=0;Y<V.length;Y+=1){L=V[Y];for(let $=0;$<this.length;$+=1)if(typeof L=="string"){const ie=F.createElement("div");for(ie.innerHTML=L;ie.firstChild;)this[$].appendChild(ie.firstChild)}else if(L instanceof _)for(let ie=0;ie<L.length;ie+=1)this[$].appendChild(L[ie]);else this[$].appendChild(L)}return this}E.fn=_.prototype;const x="resize scroll".split(" ");function A(V){return function(...L){if(L[0]===void 0){for(let F=0;F<this.length;F+=1)x.indexOf(V)<0&&(V in this[F]?this[F][V]():E(this[F]).trigger(V));return this}return this.on(V,...L)}}const P=A("click"),j=E;C&&(j.fn.hide=C),S&&(j.fn.append=S),P&&(j.fn.click=P),N&&(j.fn.on=N);const W=j;var R=function(){return R=Object.assign||function(V){for(var L,F=1,Y=arguments.length;F<Y;F++)for(var $ in L=arguments[F])Object.prototype.hasOwnProperty.call(L,$)&&(V[$]=L[$]);return V},R.apply(this,arguments)},U=function(V,L,F,Y){return new(F||(F=Promise))(function($,ie){function K(ae){try{ge(Y.next(ae))}catch(ne){ie(ne)}}function X(ae){try{ge(Y.throw(ae))}catch(ne){ie(ne)}}function ge(ae){var ne;ae.done?$(ae.value):(ne=ae.value,ne instanceof F?ne:new F(function(me){me(ne)})).then(K,X)}ge((Y=Y.apply(V,[])).next())})},Q=function(V,L){var F,Y,$,ie,K={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ie={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function X(ge){return function(ae){return function(ne){if(F)throw new TypeError("Generator is already executing.");for(;K;)try{if(F=1,Y&&($=2&ne[0]?Y.return:ne[0]?Y.throw||(($=Y.return)&&$.call(Y),0):Y.next)&&!($=$.call(Y,ne[1])).done)return $;switch(Y=0,$&&(ne=[2&ne[0],$.value]),ne[0]){case 0:case 1:$=ne;break;case 4:return K.label++,{value:ne[1],done:!1};case 5:K.label++,Y=ne[1],ne=[0];continue;case 7:ne=K.ops.pop(),K.trys.pop();continue;default:if(!(($=($=K.trys).length>0&&$[$.length-1])||ne[0]!==6&&ne[0]!==2)){K=0;continue}if(ne[0]===3&&(!$||ne[1]>$[0]&&ne[1]<$[3])){K.label=ne[1];break}if(ne[0]===6&&K.label<$[1]){K.label=$[1],$=ne;break}if($&&K.label<$[2]){K.label=$[2],K.ops.push(ne);break}$[2]&&K.ops.pop(),K.trys.pop();continue}ne=L.call(V,K)}catch(me){ne=[6,me],Y=0}finally{F=$=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([ge,ae])}}};function I(V){return V.getMenuConfig("uploadAttachment")}function T(V,L,F){if(L&&F){V.restoreSelection();var Y={type:"attachment",fileName:L,link:F,children:[{text:""}]};V.insertNode(Y),V.move(1);var $=I(V).onInsertedAttachment;$&&$(Y)}}function J(V,L){return U(this,void 0,void 0,function(){var F,Y,$,ie;return Q(this,function(K){switch(K.label){case 0:return F=function(X){var ge=oe.get(X);if(ge!=null)return ge;var ae=I(X),ne=ae.onSuccess,me=ae.onProgress,ot=ae.onFailed,Ne=ae.customInsert,Ge=ae.onError;return ge=(0,s.createUploader)(R(R({},ae),{onProgress:function(Re){X.showProgressBar(Re),me&&me(Re)},onSuccess:function(Re,at){if(Ne)Ne(at,Re,function(on,Xn){return T(X,on,Xn)});else{var Se=at.errno,Vt=Se===void 0?1:Se,En=at.data,Yn=En===void 0?{}:En;if(Vt!==0)return console.error("'".concat(Re.name,"' upload failed"),at),void ot(Re,at);var It=Yn.url,hn=It===void 0?"":It;T(X,Re.name,hn),ne(Re,at)}},onError:function(Re,at,Se){var Vt=Re.name;console.error("'".concat(Vt," upload error"),at,Se),Ge&&Ge(Re,at,Se)}})),oe.set(X,ge),ge}(V),Y=L.name,$=L.type,ie=L.size,F.addFile({name:Y,type:$,size:ie,data:L}),[4,F.upload()];case 1:return K.sent(),[2]}})})}var oe=new WeakMap;const O=function(){function V(){this.title=(0,s.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return V.prototype.getValue=function(L){return""},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){var Y=this.getMenuConfig(L),$=Y.allowedFileTypes,ie=$===void 0?[]:$,K=Y.customBrowseAndUpload;if(K)K(function(ne,me){return T(L,ne,me)});else{var X="";ie.length>0&&(X='accept="'.concat(ie.join(", "),'"'));var ge=W("body"),ae=W('<input type="file" '.concat(X," multiple/>"));ae.hide(),ge.append(ae),ae.click(),ae.on("change",function(){var ne=ae[0].files;(function(me,ot){var Ne,Ge;U(this,void 0,void 0,function(){var Re,at,Se,Vt,En,Yn;return Q(this,function(It){switch(It.label){case 0:if(ot==null)return[2];Re=Array.prototype.slice.call(ot),at=I(me).customUpload,It.label=1;case 1:It.trys.push([1,9,10,15]),Se=function(hn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var on,Xn=hn[Symbol.asyncIterator];return Xn?Xn.call(hn):(hn=typeof __values=="function"?__values(hn):hn[Symbol.iterator](),on={},Sr("next"),Sr("throw"),Sr("return"),on[Symbol.asyncIterator]=function(){return this},on);function Sr(an){on[an]=hn[an]&&function(ln){return new Promise(function(kn,An){(function(sn,ur,Os,Zo){Promise.resolve(Zo).then(function(mo){sn({value:mo,done:Os})},ur)})(kn,An,(ln=hn[an](ln)).done,ln.value)})}}}(Re),It.label=2;case 2:return[4,Se.next()];case 3:return(Vt=It.sent()).done?[3,8]:(En=Vt.value,at?[4,at(En,function(hn,on){return T(me,hn,on)})]:[3,5]);case 4:return It.sent(),[3,7];case 5:return[4,J(me,En)];case 6:It.sent(),It.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return Yn=It.sent(),Ne={error:Yn},[3,15];case 10:return It.trys.push([10,,13,14]),Vt&&!Vt.done&&(Ge=Se.return)?[4,Ge.call(Se)]:[3,12];case 11:It.sent(),It.label=12;case 12:return[3,14];case 13:if(Ne)throw Ne.error;return[7];case 14:return[7];case 15:return[2]}})})})(L,ne)})}},V.prototype.isDisabled=function(L){var F=L.selection;if(F==null||s.SlateRange.isExpanded(F))return!0;var Y=s.DomEditor.getSelectedElems(L);return!!Y.some(function($){return L.isVoid($)})||!!Y.some(function($){return s.DomEditor.getNodeType($)==="pre"})},V.prototype.getMenuConfig=function(L){return L.getMenuConfig("uploadAttachment")},V}(),k=function(){function V(){this.title=(0,s.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return V.prototype.getValue=function(L){var F=this.getSelectedElem(L);return F==null?"":F.link},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){F&&typeof F=="string"&&window.open(F,"_blank")},V.prototype.isDisabled=function(L){var F=L.selection;return F==null||!!s.SlateRange.isExpanded(F)||this.getSelectedElem(L)==null},V.prototype.getSelectedElem=function(L){var F=s.DomEditor.getSelectedNodeByType(L,"attachment");return F??null},V}(),B={editorPlugin:function(V){var L=V.isInline,F=V.isVoid,Y=V;return Y.isInline=function($){return s.DomEditor.getNodeType($)==="attachment"||L($)},Y.isVoid=function($){return s.DomEditor.getNodeType($)==="attachment"||F($)},Y},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(V,L){var F=V,Y=F.link,$=Y===void 0?"":Y,ie=F.fileName,K=ie===void 0?"":ie;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat($,'" download="').concat(K,'">').concat(K,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(V,L,F){return{type:"attachment",link:V.getAttribute("href")||"",fileName:V.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new O},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(V){return V},onProgress:function(V){},onSuccess:function(V,L){},onFailed:function(V,L){},onError:function(V,L,F){},onInsertedAttachment:function(V){}}},{key:"downloadAttachment",factory:function(){return new k}}]}})(),l})())})(xU);var jke=xU.exports;const Ike=Zq(jke),Lke=["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"},Rke=()=>({variables:NU,getPrefixClass:t=>`${NU.namespace}-${t}`}),tb=XU(et(i.defineComponent({name:"WangEditor",__name:"index",props:i.mergeModels({toolbarKeys:{default:()=>[]},excludeKeys:{default:()=>[]},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},hideToolBar:{type:Boolean,default:!1}},{modelValue:{default:""},modelModifiers:{}}),emits:i.mergeModels(["imageUpload","imageBeforeUpload","imageProgress","imageSuccess","imageFailed","imageError","videoUpload","fileBeforeUpload","fileUpload","onPaste","onCreated"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const{getPrefixClass:r}=Rke(),o=r("wang-editor"),a=e,l=n,s=i.useModel(e,"modelValue"),c=i.shallowRef(),u=i.reactive({placeholder:"请输入内容 ...",readOnly:a.disabled,MENU_CONF:{uploadImage:{maxFileSize:10*1024*1024,allowedFileTypes:["image/*"],customUpload:(p,v)=>{l("imageUpload",p,v)},onBeforeUpload:p=>{l("imageBeforeUpload",p)},onProgress:p=>{l("imageProgress",p)},onSuccess:(p,v)=>{l("imageSuccess",p,v)},onFailed:(p,v)=>{l("imageFailed",p,v)},onError:(p,v,m)=>{l("imageError",p,v,m)}},uploadVideo:{maxFileSize:300*1024*1024,allowedFileTypes:["video/*"],customUpload:(p,v)=>{l("videoUpload",p,v)}},uploadAttachment:{maxFileSize:10*1024*1024,onBeforeUpload:p=>{l("fileBeforeUpload",p)},customUpload:(p,v)=>{l("fileUpload",p,v)}}}}),d=i.computed(()=>({toolbarKeys:a.toolbarKeys.length>0?a.toolbarKeys:Lke,excludeKeys:a.excludeKeys,insertKeys:{index:22,keys:["uploadAttachment"]}}));i.watch(()=>a.disabled,()=>{i.unref(c)&&(a.disabled?i.unref(c).disable():i.unref(c).enable())}),i.onMounted(()=>{try{rn.registerModule(Ike)}catch{}});const f=p=>{c.value=p,a.disabled?i.unref(c).disable():i.unref(c).enable(),l("onCreated",p)},h=(p,v)=>{l("onPaste",p,v)};return i.onBeforeUnmount(()=>{i.unref(c)&&i.unref(c).destroy()}),t({editor:c}),(p,v)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(o),{disabled:p.disabled}])},[p.hideToolBar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Tke),{key:0,class:i.normalizeClass(`${i.unref(o)}__toolbar`),editor:c.value,defaultConfig:d.value,mode:p.mode},null,8,["class","editor","defaultConfig","mode"])),i.createVNode(i.unref(Ake),i.mergeProps({class:`${i.unref(o)}__content`,style:{height:typeof p.height=="string"?p.height:`${p.height}px`,overflowY:"hidden"},modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=m=>s.value=m),defaultConfig:u,mode:p.mode},p.$attrs,{onOnCreated:f,onCustomPaste:h}),null,16,["class","style","modelValue","defaultConfig","mode"])],2))}}),[["__scopeId","data-v-36eeeada"]])),Mke=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"dingDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送钉钉消息是指以企业工作通知会话中某个微应用的名义推送到员工的通知消息 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-29c0611f"]])},Symbol.toStringTag,{value:"Module"})),zke={style:{float:"left"}},Uke={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Hke={key:0,class:"no-work"},Wke={key:1,class:"config-detail"},qke={class:"config-item"},Gke={class:"children-query",style:{"margin-top":"20px"}},Kke={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Yke={style:{flex:"1"}},Xke={class:"flex-both"},Zke={class:"flex"},Jke={class:"txt-label"},Qke={class:"condition-select"},$ke={key:0,class:"function-tag"},exe={class:"box"},txe={class:"ellipsis table-name"},nxe={class:"field-name ellipsis"},rxe={style:{margin:"20px 0"}},oxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},ixe={class:"field-list"},axe=["onClick"],lxe={class:"field"},sxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"editDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var v,m;const p=r.value.trim().toLowerCase();return(m=(v=t.config)==null?void 0:v.selectNodeFields)==null?void 0:m.filter(g=>[g.columnName,g.columnComment].some(b=>String(b||"").toLowerCase().includes(p)))});function a(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){a(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&a(p.childNode,v,m),m}function l(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table","api","summary"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){l(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&l(p.childNode,v,m),m}const s=i.computed(()=>{const p=[];return a(n.value.nodeConfig,t.node.nodeId,p),p}),c=i.computed(()=>{const p=[];return p.push(Jr.defaultNode),l(n.value.nodeConfig,t.node.nodeId,p),p});async function u(){const p=s.value.find(v=>v.nodeId===t.config.selectNodeId);p&&(t.config.workId=p.config.workId,t.config.workName=p.config.workName,t.config.selectNodeFields=xn(p.config.fields))}function d(p){p.compare="eq",t.config.fields.push(p)}function f(p){t.config.fields.splice(p,1)}function h(p){p.nodeId="",p.nodeName="",p.fieldValue=void 0,p.fieldValueName=""}return(p,v)=>{const m=i.resolveComponent("el-option"),g=i.resolveComponent("el-select"),b=i.resolveComponent("el-form-item"),y=i.resolveComponent("el-form"),w=i.resolveComponent("InfoFilled"),_=i.resolveComponent("el-icon"),E=i.resolveComponent("Close"),N=i.resolveComponent("el-input"),C=i.resolveComponent("el-button"),S=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(y,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(b,{label:"选择更新对象"},{default:i.withCtx(()=>[i.createVNode(g,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":v[0]||(v[0]=x=>t.config.selectNodeId=x),filterable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(x,A)=>(i.openBlock(),i.createBlock(m,{key:A,label:x.nodeName,value:x.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",zke,i.toDisplayString(x.nodeName),1),i.createElementVNode("span",Uke,' 工作表 "'+i.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),v[6]||(v[6]=i.createElementVNode("div",{class:"title"},"更新字段",-1)),t.config.selectNodeId?(i.openBlock(),i.createElementBlock("div",Wke,[i.createElementVNode("div",qke,[i.createElementVNode("div",Gke,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(x,A)=>{var P;return i.openBlock(),i.createElementBlock(i.Fragment,{key:A},[x.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",Kke,[i.createElementVNode("div",Yke,[i.createElementVNode("div",Xke,[i.createElementVNode("div",Zke,[i.createElementVNode("span",Jke,i.toDisplayString(x.columnComment),1),i.createElementVNode("span",null,[i.createVNode(g,{modelValue:x.compare,"onUpdate:modelValue":j=>x.compare=j,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(m,{label:"设为",value:"eq"}),i.createVNode(m,{label:"添加",value:"add"}),i.createVNode(m,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(_,{class:"close-icon",onClick:j=>f(A)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Qke,[x.nodeId?(i.openBlock(),i.createElementBlock("div",$ke,[i.createElementVNode("div",exe,[i.createElementVNode("div",txe,[i.createElementVNode("span",null,i.toDisplayString(x.nodeName),1),v[3]||(v[3]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),v[4]||(v[4]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",nxe,i.toDisplayString(x.fieldValueName),1)]),i.createVNode(_,{onClick:j=>h(x)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((P=x==null?void 0:x.fieldAttr)==null?void 0:P.type)?(i.openBlock(),i.createBlock(g,{key:0,modelValue:x.fieldValue,"onUpdate:modelValue":j=>x.fieldValue=j,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.fieldAttr.enum,(j,W)=>(i.openBlock(),i.createBlock(m,{key:W,label:j.label,value:j.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(N,{key:1,modelValue:x.fieldValue,"onUpdate:modelValue":j=>x.fieldValue=j,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(p.$slots,"action",{item:x,varList:c.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",rxe,[i.createVNode(S,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(C,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>v[5]||(v[5]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",oxe,[i.createVNode(N,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":v[1]||(v[1]=x=>r.value=x)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",ixe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(x,A)=>{var P;return i.openBlock(),i.createElementBlock(i.Fragment,{key:A},[x.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:j=>d(x)},[i.createElementVNode("span",lxe," ["+i.toDisplayString(i.unref(ti)(((P=x==null?void 0:x.fieldAttr)==null?void 0:P.type)||x.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(x.columnComment),1)],8,axe)):i.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",Hke,[i.createVNode(_,{size:"17"},{default:i.withCtx(()=>[i.createVNode(w)]),_:1}),v[2]||(v[2]=i.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-357d0abf"]])},Symbol.toStringTag,{value:"Module"})),cxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"emailDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=ref(0),r=i.inject("showUser");function o(){n.value=0,r()}function a(){n.value=1,r()}const l=i.inject("getUserIds");i.watch(l,c=>{c&&c.length>0&&(n.value===1?t.config.notifys=[...t.config.notifys,...c]:t.config.accounts=[...t.config.accounts,...c])});function s(c,u){c.splice(u,1)}return(c,u)=>{const d=i.resolveComponent("el-tag"),f=i.resolveComponent("el-button"),h=i.resolveComponent("el-form-item"),p=i.resolveComponent("el-input"),v=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[u[2]||(u[2]=i.createElementVNode("div",{class:"header"},"仅支持通过代发邮件",-1)),i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(h,{label:"收件人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.accounts,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:o},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"抄送人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.notifys,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.notify,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:a},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"主题"},{default:i.withCtx(()=>[i.createVNode(p,{modelValue:t.config.title,"onUpdate:modelValue":u[0]||(u[0]=m=>t.config.title=m)},null,8,["modelValue"])]),_:1}),i.createVNode(h,{label:"正文"},{default:i.withCtx(()=>[i.createVNode(i.unref(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"})),uxe={class:"no-work",style:{width:"100%","line-height":"14px"}},dxe={style:{float:"left"}},fxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},pxe={class:"sub-title"},hxe={style:{color:"#1e88e5 !important"}},gxe={class:"no-work"},mxe={class:"ml"},yxe={key:0,style:{color:"red"}},vxe={key:1},bxe={class:"config-detail"},wxe={class:"config-item"},_xe={class:"children-query",style:{"margin-top":"20px"}},Cxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Exe={style:{flex:"1"}},kxe={class:"flex-both"},xxe={class:"flex"},Nxe={class:"txt-label"},Sxe={class:"condition-select"},Dxe={key:0,class:"function-tag"},Bxe={class:"box"},Axe={class:"ellipsis table-name"},Oxe={class:"field-name ellipsis"},Vxe={style:{margin:"20px 0"}},Fxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},Txe={class:"field-list"},Pxe=["onClick"],jxe={class:"field"},Ixe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var N,C;const E=r.value.trim().toLowerCase();return(C=(N=t.config)==null?void 0:N.fields)==null?void 0:C.filter(S=>[S.columnName,S.columnComment].some(x=>String(x||"").toLowerCase().includes(E)))});function a(E,N,C=[]){if(E.nodeId===N)return C;["odd","search","add","button","table"].includes(E.nodeType)&&C.push(E);let x=!1;if(E.nodeType==="router"&&E.conditionNodes){for(const A of E.conditionNodes)if(Ft(A,N)){a(A.childNode,N,C),x=!0;break}}return!x&&E.childNode&&a(E.childNode,N,C),C}const l=i.computed(()=>{const E=[];return a(n.value.nodeConfig,t.node.nodeId,E),E}),s=i.inject("getFlowFun"),c=i.inject(Qn),u=i.inject("getParentFlowFun"),d=i.ref([]);async function f(){d.value=await s(t.config.workId)}f(),t.config.procId||(t.config.procId=Uu());const h=i.computed(()=>{const E=[];E.push(Jr.defaultNode);const N=l.value.find(C=>C.nodeId===t.config.selectNodeId);return N&&E.push(N),E});async function p(){b();const E=l.value.find(N=>N.nodeId===t.config.selectNodeId);E&&(t.config.procId||(t.config.procId=Uu()),t.config.nodeType=E.nodeType,t.config.workId=E.config.workId,t.config.workName=E.config.workName,t.config.fields=E.config.fields,f())}function v(E){E.compare="eq",t.config.params.push(E)}function m(E){t.config.params.splice(E,1)}function g(E){E.nodeId="",E.nodeName="",E.fieldValue=void 0,E.fieldValueName=""}function b(){t.config.procId="",t.config.procName="子流程"}function y(E){t.config.procId=E.procId,t.config.procName=E.procName}const w=i.ref([]);async function _(){var N;if(t.config.workId){const C=await c(t.config.workId);C&&(t.config.fields=C.fieldList,t.config.workName=C.workName)}const E=await u(t.config.procId,t.node.nodeId,t.node.selectNodeId);E&&(t.config.procName=E.config.procName,w.value=(N=E==null?void 0:E.parentProcName)==null?void 0:N.split(","))}return _(),(E,N)=>{const C=i.resolveComponent("el-form-item"),S=i.resolveComponent("el-form"),x=i.resolveComponent("el-option"),A=i.resolveComponent("el-select"),P=i.resolveComponent("el-radio"),j=i.resolveComponent("el-radio-group"),W=i.resolveComponent("arrow-down"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-dropdown-item"),Q=i.resolveComponent("el-dropdown-menu"),I=i.resolveComponent("el-dropdown"),T=i.resolveComponent("Close"),J=i.resolveComponent("el-input"),oe=i.resolveComponent("el-button"),O=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.unref(n).procType==="flow"?(i.openBlock(),i.createBlock(S,{key:0,model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"数据源"},{default:i.withCtx(()=>[i.createTextVNode(" 工作表: "+i.toDisplayString(t.config.workName),1)]),_:1}),i.createVNode(C,{label:"被以下工作流触发"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.value,k=>(i.openBlock(),i.createElementBlock("div",uxe,i.toDisplayString(k),1))),256))]),_:1})]),_:1},8,["model"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(S,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"选择数据对象"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":N[0]||(N[0]=k=>t.config.selectNodeId=k),filterable:"",onChange:p},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(x,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",dxe,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",fxe,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t.config.nodeType==="odd"?(i.openBlock(),i.createBlock(C,{key:0,label:"多条数据执行方式"},{default:i.withCtx(()=>[N[7]||(N[7]=i.createElementVNode("span",{class:"remark"}," 您选择了多条数据对象,将根据数据的条数执行多条子流程 ",-1)),i.createVNode(j,{modelValue:e.config.oddType,"onUpdate:modelValue":N[1]||(N[1]=k=>e.config.oddType=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>N[3]||(N[3]=[i.createTextVNode("并行")])),_:1}),N[5]||(N[5]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将同时执行各自的流程。即便某条子流程运行中止,也不影响其他子流程的执行。 ",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>N[4]||(N[4]=[i.createTextVNode("逐条执行")])),_:1}),N[6]||(N[6]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将依次执行流程。每条子流程需要等前一条子流程通过后再开始触发 ",-1))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["model"]),i.createElementVNode("div",pxe,[N[10]||(N[10]=i.createElementVNode("span",null,"执行子流程",-1)),i.createVNode(I,null,{dropdown:i.withCtx(()=>[i.createVNode(Q,null,{default:i.withCtx(()=>[i.createVNode(U,{onClick:b},{default:i.withCtx(()=>N[9]||(N[9]=[i.createTextVNode("清除选择")])),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[B===0?(i.openBlock(),i.createBlock(U,{key:0,divided:"",onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"])):(i.openBlock(),i.createBlock(U,{key:1,onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("span",hxe,[N[8]||(N[8]=i.createTextVNode(" 选择已有流程 ")),i.createVNode(R,{class:"el-icon--right"},{default:i.withCtx(()=>[i.createVNode(W)]),_:1})])]),_:1})]),i.createElementVNode("div",gxe,[i.createElementVNode("div",mxe,[t.config.procId?(i.openBlock(),i.createElementBlock("span",vxe,i.toDisplayString(t.config.procName),1)):(i.openBlock(),i.createElementBlock("span",yxe,"节点保存后,将自动创建一个新的子流程(新建)"))])]),i.createElementVNode("div",bxe,[i.createElementVNode("div",wxe,[i.createElementVNode("div",_xe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.params,(k,B)=>{var V;return i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",Cxe,[i.createElementVNode("div",Exe,[i.createElementVNode("div",kxe,[i.createElementVNode("div",xxe,[i.createElementVNode("span",Nxe,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(A,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(x,{label:"设为",value:"eq"}),i.createVNode(x,{label:"添加",value:"add"}),i.createVNode(x,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>m(B)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Sxe,[k.nodeId?(i.openBlock(),i.createElementBlock("div",Dxe,[i.createElementVNode("div",Bxe,[i.createElementVNode("div",Axe,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),N[11]||(N[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[12]||(N[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",Oxe,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>g(k)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(A,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(x,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(E.$slots,"action",{item:k,varList:h.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",Vxe,[i.createVNode(O,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>N[13]||(N[13]=[i.createTextVNode("添加参数")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",Fxe,[i.createVNode(J,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":N[2]||(N[2]=k=>r.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",Txe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(k,B)=>{var V;return i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>v(k)},[i.createElementVNode("span",jxe," ["+i.toDisplayString(i.unref(ti)(((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)||k.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(k.columnComment),1)],8,Pxe)):i.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])],64))])}}}),[["__scopeId","data-v-00c8a0fc"]])},Symbol.toStringTag,{value:"Module"})),Lxe={style:{float:"left"}},Rxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Mxe={key:0},zxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"notifyDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(u,d,f=[]){return u.nodeId===d||(u.config.fields&&u.config.fields.length>0&&f.push(u),u.childNode&&r(u.childNode,d,f)),f}const o=i.computed(()=>{const u=[];return r(n.value.nodeConfig,t.node.nodeId,u),u});async function a(){const u=o.value.find(d=>d.nodeId===t.config.selectNodeId);u&&(t.config.workId=u.config.workId,t.config.workName=u.config.workName,t.config.selectNodeFields=xn(u.config.fields))}const l=i.ref("base");i.onMounted(async()=>{s()});function s(){t.config.handlerScope||(t.config.handlerScope=1),t.config.handlers||(t.config.handlers=[])}function c(){t.config.handlers=[]}return(u,d)=>{const f=i.resolveComponent("el-option"),h=i.resolveComponent("el-select"),p=i.resolveComponent("el-form-item"),v=i.resolveComponent("el-form"),m=i.resolveComponent("el-radio"),g=i.resolveComponent("el-radio-group"),b=i.resolveComponent("el-tab-pane"),y=i.resolveComponent("el-tabs");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(p,{label:"数据对象"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":d[0]||(d[0]=w=>t.config.selectNodeId=w),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(w,_)=>(i.openBlock(),i.createBlock(f,{key:_,label:w.nodeName,value:w.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Lxe,i.toDisplayString(w.nodeName),1),i.createElementVNode("span",Rxe,' 工作表 "'+i.toDisplayString(w.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),i.createVNode(y,{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=w=>l.value=w)},{default:i.withCtx(()=>[i.createVNode(b,{label:"基本设置",name:"base"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("div",null,[d[6]||(d[6]=i.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),i.createElementVNode("div",null,[i.createVNode(g,{modelValue:t.config.handlerScope,"onUpdate:modelValue":d[1]||(d[1]=w=>t.config.handlerScope=w),onChange:c},{default:i.withCtx(()=>[i.createVNode(m,{label:1},{default:i.withCtx(()=>d[4]||(d[4]=[i.createTextVNode("指定人员")])),_:1}),i.createVNode(m,{label:2},{default:i.withCtx(()=>d[5]||(d[5]=[i.createTextVNode("部门主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(i.openBlock(),i.createElementBlock("div",Mxe,[d[7]||(d[7]=i.createElementVNode("div",{class:"title"},"指定成员",-1)),i.createElementVNode("div",null,[i.createVNode(ON,{modelValue:t.config.handlers,"onUpdate:modelValue":d[2]||(d[2]=w=>t.config.handlers=w),enableRole:!0},null,8,["modelValue"])])])):i.createCommentVNode("",!0)])]),_:1}),i.createVNode(b,{label:"表单操作权限",name:"permissions"},{default:i.withCtx(()=>[i.createVNode(AK,{config:t.config,"node-type":i.unref(zh)},null,8,["config","node-type"])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-d7695d2b"]])},Symbol.toStringTag,{value:"Module"})),Uxe={style:{float:"left"}},Hxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Wxe={style:{float:"left"}},qxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Gxe={class:"config-detail"},Kxe={class:"config-item"},Yxe={class:"children-query",style:{"margin-top":"20px"}},Xxe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},Zxe={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},Jxe={style:{flex:"1"}},Qxe={class:"flex-both"},$xe={class:"flex"},e3e={class:"txt-label"},t3e={class:"condition-select"},n3e={key:0,class:"function-tag"},r3e={class:"box"},o3e={class:"ellipsis table-name"},i3e={class:"field-name ellipsis"},a3e={style:{margin:"20px 0"}},l3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},s3e={class:"field-list"},c3e=["onClick"],u3e={class:"field"},d3e={style:{display:"flex",width:"100%"}},f3e={style:{display:"flex",width:"100%"}},p3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"oddDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(I,T,J=[]){if(I.nodeId===T)return J;I.nodeType==="add"&&I.config.addType==="2"&&J.push(I);let oe=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const O of I.conditionNodes)if(Ft(O,T)){r(O.childNode,T,J),oe=!0;break}}return!oe&&I.childNode&&r(I.childNode,T,J),J}function o(I,T,J=[]){if(I.nodeId===T)return J;I.nodeType==="api"&&J.push(I);let oe=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const O of I.conditionNodes)if(Ft(O,T)){o(O.childNode,T,J),oe=!0;break}}return!oe&&I.childNode&&o(I.childNode,T,J),J}function a(I,T,J=[]){if(I.nodeId===T)return J;(I.nodeType==="flow"||I.nodeType==="add"||I.nodeType==="search")&&J.push(I);let oe=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const O of I.conditionNodes)if(Ft(O,T)){a(O.childNode,T,J),oe=!0;break}}return!oe&&I.childNode&&a(I.childNode,T,J),J}const l=i.computed(()=>{const I=[];return o(n.value.nodeConfig,t.node.nodeId,I),I}),s=i.computed(()=>{const I=[];return a(n.value.nodeConfig,t.node.nodeId,I),I});function c(){var T,J;const I=l.value.find(oe=>oe.nodeId===t.config.selectNodeId);I&&(t.config.workName=I.nodeName,t.config.responseParams=(J=(T=I.config.callApi)==null?void 0:T.responseParams)==null?void 0:J.filter(oe=>oe.type==="Array"))}function u(){var T;const I=s.value.find(J=>J.nodeId===t.config.selectNodeId);I&&(t.config.workName=I.nodeName,t.config.responseParams=(T=I.config.fields)==null?void 0:T.filter(J=>J.type==="Array"))}function d(){var T;const I=t.config.responseParams.find(J=>J.code===t.config.responseField);I&&(t.config.fields=(T=I==null?void 0:I.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}function f(){var T;const I=t.config.responseParams.find(J=>J.columnName===t.config.responseField);I&&(t.config.fields=(T=I==null?void 0:I.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}const h=i.computed(()=>{const I=[];return r(n.value.nodeConfig,t.node.nodeId,I),I});function p(I,T,J=[]){if(I.nodeId===T)return J;["search","flow","add","button","table"].includes(I.nodeType)&&J.push(I);let O=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const k of I.conditionNodes)if(Ft(k,T)){p(k.childNode,T,J),O=!0;break}}return!O&&I.childNode&&p(I.childNode,T,J),J}function v(I,T,J=[]){if(I.nodeId===T)return J;["search","flow","add","button","table","api","summary"].includes(I.nodeType)&&J.push(I);let O=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const k of I.conditionNodes)if(Ft(k,T)){v(k.childNode,T,J),O=!0;break}}return!O&&I.childNode&&v(I.childNode,T,J),J}const m=i.computed(()=>{const I=[];return p(n.value.nodeConfig,t.node.nodeId,I),I}),g=i.ref(""),b=i.computed(()=>{var T,J;const I=g.value.trim().toLowerCase();return(J=(T=t.config)==null?void 0:T.fields)==null?void 0:J.filter(oe=>[oe.columnName,oe.columnComment].some(O=>String(O||"").toLowerCase().includes(I)))}),y=i.ref("and");function w(){t.config.filter.forEach(I=>{I.join=y.value})}function _(I){I.join=y.value,I.compare=10,t.config.filter.push({...I})}function E(I){t.config.filter.splice(I,1)}function N(I){I.nodeId="",I.nodeName="",I.fieldValue=void 0,I.fieldValueName=""}const C=i.ref(),S=i.inject(Rs),x=i.inject(Qn);async function A(){C.value=await S(null)}A();const P=i.computed(()=>{const I=[];return I.push(Jr.defaultNode),v(n.value.nodeConfig,t.node.nodeId,I),I}),j=()=>{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 I=m.value.find(T=>T.nodeId===t.config.selectNodeId);I&&(t.config.selectNodeFields=xn(I.config.fields))}async function R(I){const T=await x(I);t.config.fields=T==null?void 0:T.fieldList,t.config.workName=T==null?void 0:T.workName}async function U(){const I=h.value.find(T=>T.nodeId===t.config.selectNodeId);I&&(t.config.workId=I.config.workId,t.config.workName=I.config.workName,t.config.fields=xn(I.config.fields),t.config.order="update_time")}async function Q(){const I=t.config.selectNodeFields.find(T=>T.columnName===t.config.linkField);if(I){const T=await x(I.fieldAttr.workId);t.config.fields=T.fieldList,t.config.workName=T.workName,t.config.workId=T.workId,t.config.order="update_time"}}return(I,T)=>{const J=i.resolveComponent("el-radio"),oe=i.resolveComponent("el-radio-group"),O=i.resolveComponent("el-form-item"),k=i.resolveComponent("el-option"),B=i.resolveComponent("el-select"),V=i.resolveComponent("Close"),L=i.resolveComponent("el-icon"),F=i.resolveComponent("el-input"),Y=i.resolveComponent("el-button"),$=i.resolveComponent("el-popover"),ie=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[T[36]||(T[36]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(ie,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(O,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.type,"onUpdate:modelValue":T[0]||(T[0]=K=>e.config.type=K),onChange:j},{default:i.withCtx(()=>[i.createVNode(J,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>T[15]||(T[15]=[i.createTextVNode("从工作表获取多条")])),_:1}),T[20]||(T[20]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(J,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>T[16]||(T[16]=[i.createTextVNode("获取关联记录")])),_:1}),T[21]||(T[21]=i.createElementVNode("div",{class:"raido-txt"},"获取关联记录、子表、选择字段中的记录",-1)),i.createVNode(J,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>T[17]||(T[17]=[i.createTextVNode("从新增节点获取记录")])),_:1}),T[22]||(T[22]=i.createElementVNode("div",{class:"raido-txt"},"从创建多条的新增节点获取记录",-1)),i.createVNode(J,{value:"api",style:{width:"100%"}},{default:i.withCtx(()=>T[18]||(T[18]=[i.createTextVNode("从集成API获取记录")])),_:1}),i.createVNode(J,{value:"array",style:{width:"100%"}},{default:i.withCtx(()=>T[19]||(T[19]=[i.createTextVNode("从数组获取记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="api"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(O,{label:"选择集成API节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[1]||(T[1]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:c},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[2]||(T[2]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:d},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.code,value:K.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(O,{label:"选择数据类型节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[3]||(T[3]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[4]||(T[4]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnName,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="work"?(i.openBlock(),i.createBlock(O,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.workId,"onUpdate:modelValue":T[5]||(T[5]=K=>t.config.workId=K),filterable:"",onChange:R},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.workName,value:K.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="add"?(i.openBlock(),i.createBlock(O,{key:3,label:"选择新增记录节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[6]||(T[6]=K=>t.config.selectNodeId=K),filterable:"",onChange:U},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Uxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",Hxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[i.createVNode(O,{label:"选择获取对象"},{default:i.withCtx(()=>[T[23]||(T[23]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[7]||(T[7]=K=>t.config.selectNodeId=K),filterable:"",onChange:W},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Wxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",qxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[T[24]||(T[24]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(B,{modelValue:t.config.linkField,"onUpdate:modelValue":T[8]||(T[8]=K=>t.config.linkField=K),filterable:"",onChange:Q},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(K,X)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:X},[K.htmlType==="Related"||K.htmlType==="SubTable"?(i.openBlock(),i.createBlock(k,{key:0,label:K.columnComment,value:K.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Gxe,[T[28]||(T[28]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),T[29]||(T[29]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",Kxe,[i.createElementVNode("div",Yxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(K,X)=>{var ge;return i.openBlock(),i.createElementBlock("div",{key:X,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",Xxe,[X===0?(i.openBlock(),i.createBlock(B,{key:0,modelValue:y.value,"onUpdate:modelValue":T[9]||(T[9]=ae=>y.value=ae),onChange:w},{default:i.withCtx(()=>[i.createVNode(k,{label:"且",value:"and"}),i.createVNode(k,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",Zxe,i.toDisplayString(K.join==="and"?"且":"或"),1))]),i.createElementVNode("div",Jxe,[i.createElementVNode("div",Qxe,[i.createElementVNode("div",$xe,[i.createElementVNode("span",e3e,i.toDisplayString(K.columnComment),1),i.createElementVNode("span",null,[i.createVNode(B,{modelValue:K.compare,"onUpdate:modelValue":ae=>K.compare=ae,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(k,{label:"等于",value:10}),i.createVNode(k,{label:"不等于",value:110}),i.createVNode(k,{label:"大于",value:20}),i.createVNode(k,{label:"大于等于",value:21}),i.createVNode(k,{label:"小于",value:30}),i.createVNode(k,{label:"小于等于",value:31}),i.createVNode(k,{label:"多词匹配",value:40}),i.createVNode(k,{label:"包含",value:50}),i.createVNode(k,{label:"不包含",value:150}),i.createVNode(k,{label:"区间",value:80}),i.createVNode(k,{label:"为空",value:90}),i.createVNode(k,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(L,{class:"close-icon",onClick:ae=>E(X)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])]),i.createElementVNode("span",t3e,[K.nodeId?(i.openBlock(),i.createElementBlock("div",n3e,[i.createElementVNode("div",r3e,[i.createElementVNode("div",o3e,[i.createElementVNode("span",null,i.toDisplayString(K.nodeName),1),T[25]||(T[25]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),T[26]||(T[26]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",i3e,i.toDisplayString(K.fieldValueName),1)]),i.createVNode(L,{onClick:ae=>N(K)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((ge=K==null?void 0:K.fieldAttr)==null?void 0:ge.type)?(i.openBlock(),i.createBlock(B,{key:0,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.fieldAttr.enum,(ae,ne)=>(i.openBlock(),i.createBlock(k,{key:ne,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(F,{key:1,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(I.$slots,"action",{item:K,varList:P.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",a3e,[i.createVNode($,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Y,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>T[27]||(T[27]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",l3e,[i.createVNode(F,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:g.value,"onUpdate:modelValue":T[10]||(T[10]=K=>g.value=K)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",s3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value,(K,X)=>{var ge;return i.openBlock(),i.createElementBlock("div",{key:X,class:"field-item",onClick:ae=>_(K)},[i.createElementVNode("span",u3e," ["+i.toDisplayString(i.unref(ti)(((ge=K==null?void 0:K.fieldAttr)==null?void 0:ge.type)||K.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(K.columnComment),1)],8,c3e)}),128))])]),_:1})])])]),i.createVNode(O,{label:"排序规则"},{default:i.withCtx(()=>[T[30]||(T[30]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得数据。如果未设置规则,返回最近更新的一条数据 ",-1)),i.createElementVNode("div",d3e,[i.createVNode(B,{modelValue:t.config.order,"onUpdate:modelValue":T[11]||(T[11]=K=>t.config.order=K),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnComment,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(B,{modelValue:t.config.sort,"onUpdate:modelValue":T[12]||(T[12]=K=>t.config.sort=K),filterable:""},{default:i.withCtx(()=>[i.createVNode(k,{label:"升序",value:"asc"}),i.createVNode(k,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(O,{label:"限制数量"},{default:i.withCtx(()=>[T[31]||(T[31]=i.createElementVNode("span",{class:"remark"},"最多获取条数",-1)),i.createElementVNode("div",f3e,[i.createVNode(F,{modelValue:t.config.limit,"onUpdate:modelValue":T[13]||(T[13]=K=>t.config.limit=K)},null,8,["modelValue"])])]),_:1}),i.createVNode(O,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.way,"onUpdate:modelValue":T[14]||(T[14]=K=>e.config.way=K)},{default:i.withCtx(()=>[i.createVNode(J,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>T[32]||(T[32]=[i.createTextVNode("直接获取")])),_:1}),T[34]||(T[34]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(J,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>T[33]||(T[33]=[i.createTextVNode("每次使用时动态获取")])),_:1}),T[35]||(T[35]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-fce91187"]])},Symbol.toStringTag,{value:"Module"})),h3e={style:{float:"left"}},g3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},m3e={style:{float:"left"}},y3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},v3e={class:"config-detail"},b3e={class:"config-item"},w3e={class:"children-query",style:{"margin-top":"20px"}},_3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},C3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},E3e={style:{flex:"1"}},k3e={class:"flex-both"},x3e={class:"flex"},N3e={class:"txt-label"},S3e={class:"condition-select"},D3e={key:0,class:"function-tag"},B3e={class:"box"},A3e={class:"ellipsis table-name"},O3e={class:"field-name ellipsis"},V3e={style:{margin:"20px 0"}},F3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},T3e={class:"field-list"},P3e=["onClick"],j3e={class:"field"},I3e={style:{display:"flex",width:"100%"}},L3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"searchDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(x,A,P=[]){if(x.nodeId===A)return P;(x.nodeType==="odd"||x.nodeType==="button")&&x.config.workId&&P.push(x);let j=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const W of x.conditionNodes)if(Ft(W,A)){r(W.childNode,A,P),j=!0;break}}return!j&&x.childNode&&r(x.childNode,A,P),P}function o(x,A,P=[]){if(x.nodeId===A)return P;["odd","search","flow","add","button","table"].includes(x.nodeType)&&P.push(x);let W=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const R of x.conditionNodes)if(Ft(R,A)){o(R.childNode,A,P),W=!0;break}}return!W&&x.childNode&&o(x.childNode,A,P),P}function a(x,A,P=[]){if(x.nodeId===A)return P;["odd","search","flow","add","button","table","api","summary"].includes(x.nodeType)&&P.push(x);let W=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const R of x.conditionNodes)if(Ft(R,A)){a(R.childNode,A,P),W=!0;break}}return!W&&x.childNode&&a(x.childNode,A,P),P}const l=i.computed(()=>{const x=[];return r(n.value.nodeConfig,t.node.nodeId,x),x}),s=i.computed(()=>{const x=[];return o(n.value.nodeConfig,t.node.nodeId,x),x}),c=i.computed(()=>{const x=[];return x.push(Jr.defaultNode),a(n.value.nodeConfig,t.node.nodeId,x),x}),u=i.ref(""),d=i.computed(()=>{var A,P;const x=u.value.trim().toLowerCase();return(P=(A=t.config)==null?void 0:A.fields)==null?void 0:P.filter(j=>[j.columnName,j.columnComment].some(W=>String(W||"").toLowerCase().includes(x)))}),f=i.ref("and");function h(){t.config.filter.forEach(x=>{x.join=f.value})}function p(x){x.join=f.value,x.compare=10,t.config.filter.push({...x})}function v(x){t.config.filter.splice(x,1)}function m(x){x.nodeId="",x.nodeName="",x.fieldValue=void 0,x.fieldValueName=""}const g=i.ref(),b=i.inject(Rs),y=i.inject(Qn);async function w(){g.value=await b(null)}w();const _=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function E(x){const A=await y(x);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 N(){const x=l.value.find(A=>A.nodeId===t.config.selectNodeId);x&&(t.config.workId=x.config.workId,t.config.workName=x.config.workName,t.config.fields=xn(x.config.fields),t.config.order="update_time")}async function C(){const x=s.value.find(A=>A.nodeId===t.config.selectNodeId);x&&(t.config.selectNodeFields=xn(x.config.fields))}async function S(){const x=t.config.selectNodeFields.find(A=>A.columnName===t.config.linkField);if(x){const A=await y(x.fieldAttr.workId);t.config.fields=A.fieldList,t.config.workName=A.workName,t.config.workId=A.workId,t.config.order="update_time"}}return(x,A)=>{const P=i.resolveComponent("el-radio"),j=i.resolveComponent("el-radio-group"),W=i.resolveComponent("el-form-item"),R=i.resolveComponent("el-option"),U=i.resolveComponent("el-select"),Q=i.resolveComponent("Close"),I=i.resolveComponent("el-icon"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover"),O=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[A[27]||(A[27]=i.createElementVNode("div",{class:"header"}," 基于一种获取方式,通过筛选条件和排序规则获得符合条件的唯一数据,供流程中的其他节点使用。 ",-1)),i.createVNode(O,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(W,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:t.config.type,"onUpdate:modelValue":A[0]||(A[0]=k=>t.config.type=k),onChange:_},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>A[10]||(A[10]=[i.createTextVNode("从工作表获取单条")])),_:1}),A[13]||(A[13]=i.createElementVNode("div",{class:"raido-txt"},"从工作表获取一条指定记录",-1)),i.createVNode(P,{value:"odd",style:{width:"100%"}},{default:i.withCtx(()=>A[11]||(A[11]=[i.createTextVNode("从多条数据节点获取单条")])),_:1}),A[14]||(A[14]=i.createElementVNode("div",{class:"raido-txt"},"从多条数据节点获取一条指定记录",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>A[12]||(A[12]=[i.createTextVNode("从关联字段获取单条")])),_:1}),A[15]||(A[15]=i.createElementVNode("div",{class:"raido-txt"}," 从关联表、子表或级联选择字段获取一条指定记录 ",-1))]),_:1},8,["modelValue"])]),_:1}),t.config.type==="work"?(i.openBlock(),i.createBlock(W,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.workId,"onUpdate:modelValue":A[1]||(A[1]=k=>t.config.workId=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="odd"?(i.openBlock(),i.createBlock(W,{key:1,label:"选择多条数据节点"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[2]||(A[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:N},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",h3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",g3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(W,{label:"选择获取对象"},{default:i.withCtx(()=>[A[16]||(A[16]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[3]||(A[3]=k=>t.config.selectNodeId=k),filterable:"",onChange:C},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",m3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",y3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(W,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[A[17]||(A[17]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(U,{modelValue:t.config.linkField,"onUpdate:modelValue":A[4]||(A[4]=k=>t.config.linkField=k),filterable:"",onChange:S},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="Related"||k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(R,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",v3e,[A[21]||(A[21]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),A[22]||(A[22]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",b3e,[i.createElementVNode("div",w3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",_3e,[B===0?(i.openBlock(),i.createBlock(U,{key:0,modelValue:f.value,"onUpdate:modelValue":A[5]||(A[5]=L=>f.value=L),onChange:h},{default:i.withCtx(()=>[i.createVNode(R,{label:"且",value:"and"}),i.createVNode(R,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",C3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",E3e,[i.createElementVNode("div",k3e,[i.createElementVNode("div",x3e,[i.createElementVNode("span",N3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"等于",value:10}),i.createVNode(R,{label:"不等于",value:110}),i.createVNode(R,{label:"大于",value:20}),i.createVNode(R,{label:"大于等于",value:21}),i.createVNode(R,{label:"小于",value:30}),i.createVNode(R,{label:"小于等于",value:31}),i.createVNode(R,{label:"多词匹配",value:40}),i.createVNode(R,{label:"包含",value:50}),i.createVNode(R,{label:"不包含",value:150}),i.createVNode(R,{label:"区间",value:80}),i.createVNode(R,{label:"为空",value:90}),i.createVNode(R,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(I,{class:"close-icon",onClick:L=>v(B)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])]),i.createElementVNode("span",S3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",D3e,[i.createElementVNode("div",B3e,[i.createElementVNode("div",A3e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),A[18]||(A[18]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),A[19]||(A[19]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",O3e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(I,{onClick:L=>m(k)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(R,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(x.$slots,"action",{item:k,varList:c.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",V3e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>A[20]||(A[20]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",F3e,[i.createVNode(T,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":A[6]||(A[6]=k=>u.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",T3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:L=>p(k)},[i.createElementVNode("span",j3e," ["+i.toDisplayString(i.unref(ti)(((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)||k.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(k.columnComment),1)],8,P3e)}),128))])]),_:1})])])]),i.createVNode(W,{label:"排序规则"},{default:i.withCtx(()=>[A[23]||(A[23]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得第一条数据。如果未设置规则,按照字段配置的排序规则返回第一条数据 ",-1)),i.createElementVNode("div",I3e,[i.createVNode(U,{modelValue:t.config.order,"onUpdate:modelValue":A[7]||(A[7]=k=>t.config.order=k),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.columnComment,value:k.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(U,{modelValue:t.config.sort,"onUpdate:modelValue":A[8]||(A[8]=k=>t.config.sort=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(R,{label:"升序",value:"asc"}),i.createVNode(R,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(W,{label:"未获取到数据时"},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:t.config.way,"onUpdate:modelValue":A[9]||(A[9]=k=>t.config.way=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"go",style:{width:"100%"}},{default:i.withCtx(()=>A[24]||(A[24]=[i.createTextVNode("继续执行")])),_:1}),A[26]||(A[26]=i.createElementVNode("div",{class:"raido-txt"}," 之后节点在使用本节点对象或数据时将跳过执行 ",-1)),i.createVNode(P,{value:"aborted"},{default:i.withCtx(()=>A[25]||(A[25]=[i.createTextVNode("中止流程,或继续执行查找结果分支")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-2ee02079"]])},Symbol.toStringTag,{value:"Module"})),R3e={style:{float:"left"}},M3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},z3e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(l,s,c=[]){return l.nodeId===s||(l.config.fields&&l.config.fields.length>0&&c.push(l),l.childNode&&r(l.childNode,s,c)),c}const o=i.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=o.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName,t.config.selectNodeFields=xn(l.config.fields))}return(l,s)=>{const c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("el-form-item"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(d,{label:"发起审批的数据对象"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(h,p)=>(i.openBlock(),i.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",R3e,i.toDisplayString(h.nodeName),1),i.createElementVNode("span",M3e,' 工作表 "'+i.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(d,{label:"发起人"},{default:i.withCtx(()=>s[1]||(s[1]=[i.createTextVNode("触发者")])),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),U3e={style:{float:"left"}},H3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},W3e={class:"config-detail"},q3e={class:"config-item"},G3e={class:"children-query",style:{"margin-top":"20px"}},K3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},Y3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},X3e={style:{flex:"1"}},Z3e={class:"flex-both"},J3e={class:"flex"},Q3e={class:"txt-label"},$3e={class:"condition-select"},e8e={key:0,class:"function-tag"},t8e={class:"box"},n8e={class:"ellipsis table-name"},r8e={class:"field-name ellipsis"},o8e={style:{margin:"20px 0"}},i8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},a8e={class:"field-list"},l8e=["onClick"],s8e={class:"field"},c8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"summaryDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(N,C,S=[]){if(N.nodeId===C)return S;["search","flow","add","button","table"].includes(N.nodeType)&&S.push(N);let A=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(Ft(P,C)){r(P.childNode,C,S),A=!0;break}}return!A&&N.childNode&&r(N.childNode,C,S),S}function o(N,C,S=[]){if(N.nodeId===C)return S;["search","flow","add","button","table","api","summary"].includes(N.nodeType)&&S.push(N);let A=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(Ft(P,C)){o(P.childNode,C,S),A=!0;break}}return!A&&N.childNode&&o(N.childNode,C,S),S}const a=i.computed(()=>{const N=[];return r(n.value.nodeConfig,t.node.nodeId,N),N}),l=i.ref(""),s=i.computed(()=>{var C,S;const N=l.value.trim().toLowerCase();return(S=(C=t.config)==null?void 0:C.fields)==null?void 0:S.filter(x=>[x.columnName,x.columnComment].some(A=>String(A||"").toLowerCase().includes(N)))}),c=i.ref("and");function u(){t.config.filter.forEach(N=>{N.join=c.value})}function d(N){N.join=c.value,N.compare=10,t.config.filter.push({...N})}function f(N){t.config.filter.splice(N,1)}function h(N){N.nodeId="",N.nodeName="",N.fieldValue=void 0,N.fieldValueName=""}const p=i.ref(),v=i.inject(Rs),m=i.inject(Qn);async function g(){p.value=await v(null)}g();const b=i.computed(()=>{const N=[];return N.push(Jr.defaultNode),o(n.value.nodeConfig,t.node.nodeId,N),N}),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 N=a.value.find(C=>C.nodeId===t.config.selectNodeId);N&&(t.config.selectNodeFields=xn(N.config.fields))}async function _(N){const C=await m(N);t.config.fields=C==null?void 0:C.fieldList,t.config.workName=C==null?void 0:C.workName}async function E(){const N=t.config.selectNodeFields.find(C=>C.columnName===t.config.linkField);if(N){const C=await m(N.fieldAttr.workId);t.config.fields=C.fieldList,t.config.workName=C.workName,t.config.workId=C.workId,t.config.order="update_time"}}return(N,C)=>{const S=i.resolveComponent("el-radio"),x=i.resolveComponent("el-radio-group"),A=i.resolveComponent("el-form-item"),P=i.resolveComponent("el-option"),j=i.resolveComponent("el-select"),W=i.resolveComponent("Close"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-input"),Q=i.resolveComponent("el-button"),I=i.resolveComponent("el-popover"),T=i.resolveComponent("el-divider"),J=i.resolveComponent("el-col"),oe=i.resolveComponent("el-row"),O=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[C[24]||(C[24]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(O,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(A,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(x,{modelValue:e.config.type,"onUpdate:modelValue":C[0]||(C[0]=k=>e.config.type=k),onChange:y},{default:i.withCtx(()=>[i.createVNode(S,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>C[9]||(C[9]=[i.createTextVNode("从工作表进行汇总")])),_:1}),C[11]||(C[11]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(S,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>C[10]||(C[10]=[i.createTextVNode("获取关联子表记录")])),_:1}),C[12]||(C[12]=i.createElementVNode("div",{class:"raido-txt"},"获取关联子表记录",-1))]),_:1},8,["modelValue"])]),_:1}),e.config.type==="work"?(i.openBlock(),i.createBlock(A,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:t.config.workId,"onUpdate:modelValue":C[1]||(C[1]=k=>t.config.workId=k),filterable:"",onChange:_},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(A,{label:"选择获取对象"},{default:i.withCtx(()=>[C[13]||(C[13]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(j,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":C[2]||(C[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:w},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",U3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",H3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[C[14]||(C[14]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(j,{modelValue:t.config.linkField,"onUpdate:modelValue":C[3]||(C[3]=k=>t.config.linkField=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(P,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",W3e,[C[18]||(C[18]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),C[19]||(C[19]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",q3e,[i.createElementVNode("div",G3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",K3e,[B===0?(i.openBlock(),i.createBlock(j,{key:0,modelValue:c.value,"onUpdate:modelValue":C[4]||(C[4]=L=>c.value=L),onChange:u},{default:i.withCtx(()=>[i.createVNode(P,{label:"且",value:"and"}),i.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",Y3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",X3e,[i.createElementVNode("div",Z3e,[i.createElementVNode("div",J3e,[i.createElementVNode("span",Q3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(j,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(P,{label:"等于",value:10}),i.createVNode(P,{label:"不等于",value:110}),i.createVNode(P,{label:"大于",value:20}),i.createVNode(P,{label:"大于等于",value:21}),i.createVNode(P,{label:"小于",value:30}),i.createVNode(P,{label:"小于等于",value:31}),i.createVNode(P,{label:"多词匹配",value:40}),i.createVNode(P,{label:"包含",value:50}),i.createVNode(P,{label:"不包含",value:150}),i.createVNode(P,{label:"区间",value:80}),i.createVNode(P,{label:"为空",value:90}),i.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>f(B)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])]),i.createElementVNode("span",$3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",e8e,[i.createElementVNode("div",t8e,[i.createElementVNode("div",n8e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),C[15]||(C[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),C[16]||(C[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",r8e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>h(k)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(j,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(P,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(U,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(N.$slots,"action",{item:k,varList:b.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",o8e,[i.createVNode(I,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Q,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>C[17]||(C[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",i8e,[i.createVNode(U,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:l.value,"onUpdate:modelValue":C[5]||(C[5]=k=>l.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",a8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:L=>d(k)},[i.createElementVNode("span",s8e," ["+i.toDisplayString(i.unref(ti)(((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)||k.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(k.columnComment),1)],8,l8e)}),128))])]),_:1})])])]),i.createVNode(A,{label:"汇总方式"},{default:i.withCtx(()=>[i.createVNode(oe,{style:{width:"100%",display:"flex","justify-content":"space-between"}},{default:i.withCtx(()=>[i.createVNode(J,{span:11},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:e.config.summary,"onUpdate:modelValue":C[6]||(C[6]=k=>e.config.summary=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(P,{value:"count(*)",label:"记录数量"}),i.createVNode(T,{style:{margin:"2px 0"}}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,value:k.columnName,label:k.columnComment},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.config.summary!=="count(*)"?(i.openBlock(),i.createBlock(J,{key:0,span:11},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:e.config.fun,"onUpdate:modelValue":C[7]||(C[7]=k=>e.config.fun=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"notnull",label:"已填计数"}),i.createVNode(P,{value:"null",label:"未填计数"}),i.createVNode(P,{value:"sum",label:"求和"}),i.createVNode(P,{value:"avg",label:"平均值"}),i.createVNode(P,{value:"max",label:"最大值"}),i.createVNode(P,{value:"min",label:"最小值"})]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1})]),_:1}),i.createVNode(A,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(x,{modelValue:e.config.way,"onUpdate:modelValue":C[8]||(C[8]=k=>e.config.way=k)},{default:i.withCtx(()=>[i.createVNode(S,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>C[20]||(C[20]=[i.createTextVNode("直接获取")])),_:1}),C[22]||(C[22]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(S,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>C[21]||(C[21]=[i.createTextVNode("每次使用时动态获取")])),_:1}),C[23]||(C[23]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-2e5c5d78"]])},Symbol.toStringTag,{value:"Module"})),u8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"systemDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[s[1]||(s[1]=i.createElementVNode("span",{class:"remark"},"将通过系统消息发送",-1)),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-3d5b6cc6"]])},Symbol.toStringTag,{value:"Module"})),d8e={key:0,class:"raido-txt"},f8e={key:1,class:"raido-txt"},p8e={class:"config-detail"},h8e={class:"config-item"},g8e={class:"children-query",style:{"margin-top":"20px"}},m8e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},y8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},v8e={style:{flex:"1"}},b8e={class:"flex-both"},w8e={class:"flex"},_8e={class:"txt-label"},C8e={class:"condition-select"},E8e={key:0,class:"function-tag"},k8e={class:"box"},x8e={class:"ellipsis table-name"},N8e={class:"field-name ellipsis"},S8e={style:{margin:"20px 0"}},D8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},B8e={class:"field-list"},A8e=["onClick"],O8e={class:"field"},V8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.inject(Rs),o=i.inject(Qn);async function a(){n.value=await r(null)}a();async function l(m){const g=await o(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}const s=i.computed(()=>{const m=[];return m.push(Jr.defaultNode),m.push(t.node),m}),c=i.ref(""),u=i.computed(()=>{var g,b;const m=c.value.trim().toLowerCase();return(b=(g=t.config)==null?void 0:g.fields)==null?void 0:b.filter(y=>[y.columnName,y.columnComment].some(w=>String(w||"").toLowerCase().includes(m)))}),d=i.ref("and");function f(){t.config.filter.forEach(m=>{m.join=d.value})}function h(m){m.join=d.value,m.compare=10,t.config.filter.push({...m})}function p(m){t.config.filter.splice(m,1)}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("el-radio"),E=i.resolveComponent("el-radio-group"),N=i.resolveComponent("Close"),C=i.resolveComponent("el-icon"),S=i.resolveComponent("el-input"),x=i.resolveComponent("el-button"),A=i.resolveComponent("el-popover"),P=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(P,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=j=>t.config.workId=j),filterable:"",onChange:l},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(j,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:j.workName,value:j.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(w,{label:"触发方式"},{default:i.withCtx(()=>[i.createVNode(E,{modelValue:e.config.type,"onUpdate:modelValue":g[3]||(g[3]=j=>e.config.type=j)},{default:i.withCtx(()=>[i.createVNode(_,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>g[6]||(g[6]=[i.createTextVNode(" 当新增或更新记录时 ")])),_:1}),e.config.type==="save"?(i.openBlock(),i.createElementBlock("div",d8e,[g[7]||(g[7]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[1]||(g[1]=j=>t.config.assignField=j),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(j,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:j.columnComment,value:j.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[8]||(g[8]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>g[9]||(g[9]=[i.createTextVNode("仅新增记录时")])),_:1}),g[14]||(g[14]=i.createElementVNode("div",{class:"raido-txt"},"当新增记录时触发流程",-1)),i.createVNode(_,{value:"edit",style:{width:"100%"}},{default:i.withCtx(()=>g[10]||(g[10]=[i.createTextVNode("仅更新记录时")])),_:1}),e.config.type==="edit"?(i.openBlock(),i.createElementBlock("div",f8e,[g[11]||(g[11]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[2]||(g[2]=j=>t.config.assignField=j),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(j,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:j.columnComment,value:j.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[12]||(g[12]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"del",style:{width:"100%"}},{default:i.withCtx(()=>g[13]||(g[13]=[i.createTextVNode("删除记录时")])),_:1})]),_:1},8,["modelValue"])]),_:1}),i.createElementVNode("div",p8e,[g[18]||(g[18]=i.createElementVNode("div",{class:"item-label"},"触发条件",-1)),g[19]||(g[19]=i.createElementVNode("span",{class:"remark"},"设置筛选条件,仅使满足条件的记录进入流程。",-1)),i.createElementVNode("div",h8e,[i.createElementVNode("div",g8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(j,W)=>{var R;return i.openBlock(),i.createElementBlock("div",{key:W,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",m8e,[W===0?(i.openBlock(),i.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[4]||(g[4]=U=>d.value=U),onChange:f},{default:i.withCtx(()=>[i.createVNode(b,{label:"且",value:"and"}),i.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",y8e,i.toDisplayString(j.join==="and"?"且":"或"),1))]),i.createElementVNode("div",v8e,[i.createElementVNode("div",b8e,[i.createElementVNode("div",w8e,[i.createElementVNode("span",_8e,i.toDisplayString(j.columnComment),1),i.createElementVNode("span",null,[i.createVNode(y,{modelValue:j.compare,"onUpdate:modelValue":U=>j.compare=U,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(b,{label:"等于",value:10}),i.createVNode(b,{label:"不等于",value:110}),i.createVNode(b,{label:"大于",value:20}),i.createVNode(b,{label:"大于等于",value:21}),i.createVNode(b,{label:"小于",value:30}),i.createVNode(b,{label:"小于等于",value:31}),i.createVNode(b,{label:"包含",value:50}),i.createVNode(b,{label:"不包含",value:150}),i.createVNode(b,{label:"区间",value:80}),i.createVNode(b,{label:"为空",value:90}),i.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(C,{class:"close-icon",onClick:U=>p(W)},{default:i.withCtx(()=>[i.createVNode(N)]),_:2},1032,["onClick"])]),i.createElementVNode("span",C8e,[j.nodeId?(i.openBlock(),i.createElementBlock("div",E8e,[i.createElementVNode("div",k8e,[i.createElementVNode("div",x8e,[i.createElementVNode("span",null,i.toDisplayString(j.nodeName),1),g[15]||(g[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[16]||(g[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",N8e,i.toDisplayString(j.fieldValueName),1)]),i.createVNode(C,{onClick:U=>v(j)},{default:i.withCtx(()=>[i.createVNode(N)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=j==null?void 0:j.fieldAttr)==null?void 0:R.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:j.fieldValue,"onUpdate:modelValue":U=>j.fieldValue=U,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(j.fieldAttr.enum,(U,Q)=>(i.openBlock(),i.createBlock(b,{key:Q,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(S,{key:1,modelValue:j.fieldValue,"onUpdate:modelValue":U=>j.fieldValue=U,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:j,varList:s.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",S8e,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(x,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>g[17]||(g[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",D8e,[i.createVNode(S,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[5]||(g[5]=j=>c.value=j)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",B8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(j,W)=>{var R;return i.openBlock(),i.createElementBlock("div",{key:W,class:"field-item",onClick:U=>h(j)},[i.createElementVNode("span",O8e," ["+i.toDisplayString(i.unref(ti)(((R=j==null?void 0:j.fieldAttr)==null?void 0:R.type)||j.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(j.columnComment),1)],8,A8e)}),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-f96974e3"]])},Symbol.toStringTag,{value:"Module"})),F8e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e;return(n,r)=>{const o=i.resolveComponent("el-date-picker"),a=i.resolveComponent("el-form-item"),l=i.resolveComponent("el-option"),s=i.resolveComponent("el-select"),c=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(c,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(a,{label:"开始执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.start,"onUpdate:modelValue":r[0]||(r[0]=u=>t.config.start=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"结束执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.end,"onUpdate:modelValue":r[1]||(r[1]=u=>t.config.end=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"循环"},{default:i.withCtx(()=>[i.createVNode(s,{modelValue:t.config.loop,"onUpdate:modelValue":r[2]||(r[2]=u=>t.config.loop=u)},{default:i.withCtx(()=>[i.createVNode(l,{label:"每小时",value:"hour"}),i.createVNode(l,{label:"每天",value:"day"}),i.createVNode(l,{label:"每周",value:"week"}),i.createVNode(l,{label:"每月",value:"month"}),i.createVNode(l,{label:"每年",value:"year"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),T8e={style:{float:"left"}},P8e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},j8e={key:0,class:"no-work"},I8e={key:1,class:"config-detail"},L8e={class:"config-item"},R8e={class:"children-query",style:{"margin-top":"20px"}},M8e={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},z8e={style:{flex:"1"}},U8e={class:"flex-both"},H8e={class:"flex"},W8e={class:"txt-label"},q8e={class:"condition-select"},G8e={key:0,class:"function-tag"},K8e={class:"box"},Y8e={class:"ellipsis table-name"},X8e={class:"field-name ellipsis"},Z8e={style:{margin:"20px 0"}},J8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},Q8e={class:"field-list"},$8e=["onClick"],e6e={class:"field"},t6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"uiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.ref(),o=i.ref(),a=i.ref(),l=i.inject(Rs),s=i.inject(bG),c=i.inject(Qn),u=i.ref(""),d=i.computed(()=>{var S;const C=u.value.trim().toLowerCase();return(S=o.value)==null?void 0:S.filter(x=>[x.columnName,x.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,o.value=C==null?void 0:C.fieldList}}f();async function h(C){const S=await c(C);t.config.workName=S==null?void 0:S.workName,t.config.viewId="",t.config.fields=[],r.value=S==null?void 0:S.viewList,o.value=S==null?void 0:S.fieldList}async function p(C){if(t.config.workName="",t.config.workId="",t.config.type==="drag"&&!a.value){const S=await s(C);a.value=S}}function v(){var S;const C=(S=a.value)==null?void 0:S.find(x=>x.workId===t.config.workId);t.config.workName=C==null?void 0:C.workName}async function m(){const C=y.value.find(S=>S.nodeId===t.config.selectNodeId);C&&(t.config.workId=C.config.workId,t.config.workName=C.config.workName)}const g=i.inject(Vn);function b(C,S,x=[]){if(C.nodeId===S)return x;["search","add","button","table","api","summary"].includes(C.nodeType)&&x.push(C);let P=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const j of C.conditionNodes)if(Ft(j,S)){b(j.childNode,S,x),P=!0;break}}return!P&&C.childNode&&b(C.childNode,S,x),x}const y=i.computed(()=>{const C=[];return b(g.value.nodeConfig,t.node.nodeId,C),C}),w=i.computed(()=>{const C=[];return C.push(Jr.defaultNode),b(g.value.nodeConfig,t.node.nodeId,C),C});function _(C){t.config.fields.push({...C})}function E(C){t.config.fields.splice(C,1)}function N(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}return(C,S)=>{const x=i.resolveComponent("el-option"),A=i.resolveComponent("el-select"),P=i.resolveComponent("el-form-item"),j=i.resolveComponent("el-radio"),W=i.resolveComponent("el-radio-group"),R=i.resolveComponent("el-form"),U=i.resolveComponent("InfoFilled"),Q=i.resolveComponent("el-icon"),I=i.resolveComponent("Close"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(R,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(P,{label:"推送内容"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.type,"onUpdate:modelValue":S[0]||(S[0]=O=>t.config.type=O),filterable:"",onChange:p},{default:i.withCtx(()=>[i.createVNode(x,{label:"打开记录创建层",value:"form"}),i.createVNode(x,{label:"打开记录详情页",value:"info"}),i.createVNode(x,{label:"打开工作表视图",value:"view"}),i.createVNode(x,{label:"打开自定义页面",value:"drag"})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="info"?(i.openBlock(),i.createBlock(P,{key:0,label:"选择记录"},{default:i.withCtx(()=>[S[7]||(S[7]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(A,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":S[1]||(S[1]=O=>t.config.selectNodeId=O),filterable:"",clearable:"",onChange:m},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.nodeName,value:O.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",T8e,i.toDisplayString(O.nodeName),1),i.createElementVNode("span",P8e,' 工作表 "'+i.toDisplayString(O.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.config.type==="drag"?(i.openBlock(),i.createBlock(P,{key:1,label:"选择自定义页面"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":S[2]||(S[2]=O=>t.config.workId=O),filterable:"",clearable:"",onChange:v},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.workName,value:O.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):(i.openBlock(),i.createBlock(P,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":S[3]||(S[3]=O=>t.config.workId=O),filterable:"",clearable:"",onChange:h},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.workName,value:O.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),e.config.type==="view"?(i.openBlock(),i.createBlock(P,{key:3,label:"选择视图"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.viewId,"onUpdate:modelValue":S[4]||(S[4]=O=>t.config.viewId=O),filterable:"",clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.viewName,value:O.viewId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),i.createVNode(P,{label:"打开方式"},{default:i.withCtx(()=>[i.createVNode(W,{modelValue:t.config.open,"onUpdate:modelValue":S[5]||(S[5]=O=>t.config.open=O)},{default:i.withCtx(()=>[i.createVNode(j,{value:"popup"},{default:i.withCtx(()=>S[8]||(S[8]=[i.createTextVNode("弹窗")])),_:1}),i.createVNode(j,{value:"page"},{default:i.withCtx(()=>S[9]||(S[9]=[i.createTextVNode("打开新页面")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.config.type==="form"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[S[14]||(S[14]=i.createElementVNode("div",{class:"title"},"设置字段",-1)),t.config.workId?(i.openBlock(),i.createElementBlock("div",I8e,[i.createElementVNode("div",L8e,[i.createElementVNode("div",R8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(O,k)=>{var B;return i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[O.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",M8e,[i.createElementVNode("div",z8e,[i.createElementVNode("div",U8e,[i.createElementVNode("div",H8e,[i.createElementVNode("span",W8e,i.toDisplayString(O.columnComment),1)]),i.createVNode(Q,{class:"close-icon",onClick:V=>E(k)},{default:i.withCtx(()=>[i.createVNode(I)]),_:2},1032,["onClick"])]),i.createElementVNode("span",q8e,[O.nodeId?(i.openBlock(),i.createElementBlock("div",G8e,[i.createElementVNode("div",K8e,[i.createElementVNode("div",Y8e,[i.createElementVNode("span",null,i.toDisplayString(O.nodeName),1),S[11]||(S[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[12]||(S[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",X8e,i.toDisplayString(O.fieldValueName),1)]),i.createVNode(Q,{onClick:V=>N(O)},{default:i.withCtx(()=>[i.createVNode(I)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((B=O==null?void 0:O.fieldAttr)==null?void 0:B.type)?(i.openBlock(),i.createBlock(A,{key:0,modelValue:O.fieldValue,"onUpdate:modelValue":V=>O.fieldValue=V,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.fieldAttr.enum,(V,L)=>(i.openBlock(),i.createBlock(x,{key:L,label:V.label,value:V.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:O.fieldValue,"onUpdate:modelValue":V=>O.fieldValue=V,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(C.$slots,"action",{item:O,varList:w.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",Z8e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:C.Plus,text:""},{default:i.withCtx(()=>S[13]||(S[13]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",J8e,[i.createVNode(T,{"prefix-icon":C.Search,placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":S[6]||(S[6]=O=>u.value=O)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",Q8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(O,k)=>{var B;return i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[O.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:V=>_(O)},[i.createElementVNode("span",e6e," ["+i.toDisplayString(i.unref(ti)(((B=O==null?void 0:O.fieldAttr)==null?void 0:B.type)||O.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(O.columnComment),1)],8,$8e)):i.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",j8e,[i.createVNode(Q,{size:"17"},{default:i.withCtx(()=>[i.createVNode(U)]),_:1}),S[10]||(S[10]=i.createElementVNode("div",{class:"ml"},"必须先选择一个工作表后,才能设置可执行的动作",-1))]))],64)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c793f167"]])},Symbol.toStringTag,{value:"Module"})),n6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"wechatDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送服务号消息是指向已关注公众号的微信用户发送模版消息。发送对象支持使用人员字段(通过微信授权注册的外部门户用户)或文本字段(存储微信公众号openid)。使用微信公众号模板消息需要组织后台绑定已认证的企业服务号,并在微信公众号后台开通“模板消息”功能。 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-46fa206d"]])},Symbol.toStringTag,{value:"Module"})),r6e={key:0,class:"node-title"},o6e={key:1,class:"no-set"},i6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"addNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",r6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",o6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),a6e={key:0},l6e={key:1,class:"no-set"},s6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"apiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.callApi.controlName,message:"请选择集成API"})),(r,o)=>t.node.config.callApi.controlName?(i.openBlock(),i.createElementBlock("div",a6e," 调用API:"+i.toDisplayString(t.node.config.callApi.controlName),1)):(i.openBlock(),i.createElementBlock("div",l6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),c6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"approverNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&t.node.config.selectNodeId&&t.node.config.workId,message:"请选择审批人或发起审批数据对象不能为空"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 审批人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode("连续多级主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),u6e={class:"ep-node-router"},d6e={key:0,class:"ep-condition-node-add"},f6e={class:"ep-node-router-box"},p6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"branchNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e;i.onMounted(async()=>{});const r=t,o=l=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(l,1):r("removeNode")},a=()=>{const l=xn($e[ei].defaultNode),s=n.node.conditionNodes.length;n.node.conditionNodes.splice(s-1,0,l)};return(l,s)=>{var c;return i.openBlock(),i.createElementBlock("div",u6e,[(c=n.node)!=null&&c.isBanch?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",d6e,"判断条件"))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:a}," 添加条件 "))],64)),i.createElementVNode("div",f6e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.node.conditionNodes,(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:"ep-node-router-col",key:d},[i.createVNode(Eb,{"is-view":n.isView,node:u,conditionNodes:n.node.conditionNodes,conditionIndex:d,onRemoveNode:f=>o(d)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),d==0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[s[0]||(s[0]=i.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),s[1]||(s[1]=i.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):i.createCommentVNode("",!0),d==n.node.conditionNodes.length-1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[s[2]||(s[2]=i.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),s[3]||(s[3]=i.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):i.createCommentVNode("",!0)]))),128))]),i.createVNode(Xh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-9fd02762"]])},Symbol.toStringTag,{value:"Module"})),h6e={key:0,class:"node-title"},g6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"buttonNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[e.node.config.buttonName?(i.openBlock(),i.createElementBlock("div",h6e,' 按钮 "'+i.toDisplayString(e.node.config.buttonName)+'" ',1)):i.createCommentVNode("",!0),n[0]||(n[0]=i.createElementVNode("div",{class:"remark"},"点击按钮后立即执行",-1))],64))}}),[["__scopeId","data-v-f5243367"]])},Symbol.toStringTag,{value:"Module"})),m6e={key:1,class:"ep-node-condition"},y6e={key:0,class:"node-title"},v6e={key:1,class:"no-set"},b6e={key:2,class:"node-title"},w6e={class:"remark"},_6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"conditionNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){var n,r;const t=e;return(r=(n=t.node)==null?void 0:n.config)!=null&&r.isBanch||i.inject(Rt).register(t.tempNodeId,()=>{var l,s;let a=!0;return t.node.isLastCondition||((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)===0&&(a=!1),{valid:a,message:"请选择条件"}}),(o,a)=>{var u,d,f,h,p,v,m,g;const l=i.resolveComponent("SuccessFilled"),s=i.resolveComponent("el-icon"),c=i.resolveComponent("CircleCloseFilled");return(d=(u=t.node)==null?void 0:u.config)!=null&&d.isBanch?(i.openBlock(),i.createElementBlock("div",{key:0,class:"branch-item",style:i.normalizeStyle((f=t.node.config)!=null&&f.isData?{color:"#01ca86"}:{color:"#f44336"})},[(h=t.node.config)!=null&&h.isData?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(l)]),_:1}),a[0]||(a[0]=i.createElementVNode("span",null,"有数据",-1))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(c)]),_:1}),a[1]||(a[1]=i.createElementVNode("span",null,"无数据",-1))],64))],4)):(i.openBlock(),i.createElementBlock("div",m6e,[((v=(p=t.node.config)==null?void 0:p.filter)==null?void 0:v.length)>0?(i.openBlock(),i.createElementBlock("div",y6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):t.node.isLastCondition?(i.openBlock(),i.createElementBlock("div",b6e,"其他条件进入此流程")):(i.openBlock(),i.createElementBlock("div",v6e," 设置此节点 ")),i.createElementVNode("div",w6e,[((g=(m=t.node.config)==null?void 0:m.filter)==null?void 0:g.length)>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode("筛选"+i.toDisplayString(e.node.config.filter.length)+"个字段",1)],64)):i.createCommentVNode("",!0)])]))}}}),[["__scopeId","data-v-df26e984"]])},Symbol.toStringTag,{value:"Module"})),C6e={key:0,class:"node-title"},E6e={key:1,class:"no-set"},k6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"delNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",C6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",E6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),x6e={key:0},N6e={key:1,class:"no-set"},S6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"dingNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",x6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",N6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),D6e={key:0,class:"node-title"},B6e={key:1,class:"no-set"},A6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"editNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",D6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",B6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),O6e={key:0},V6e={key:1,class:"no-set"},F6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"emailNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",O6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",V6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),T6e={key:0,class:"node-title"},P6e={key:1,class:"no-set"},j6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowNode",props:{tempNodeId:{type:String},isView:{type:Boolean,default:!1},node:{type:Object,default:()=>({})}},setup(e){const t=e;i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"}));function r(o){window.open(`/workflow/${o.procId}`)}return(o,a)=>{const l=i.resolveComponent("Link"),s=i.resolveComponent("el-icon");return e.node.config.procName?(i.openBlock(),i.createElementBlock("div",T6e,[i.createTextVNode(" 执行流程: "+i.toDisplayString(e.node.config.procName)+" ",1),e.node.config.procId&&!t.isView?(i.openBlock(),i.createBlock(s,{key:0,size:"18",style:{color:"#1565c0"},onClick:a[0]||(a[0]=i.withModifiers(c=>r(e.node.config),["stop"]))},{default:i.withCtx(()=>[i.createVNode(l)]),_:1})):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",P6e,"设置此节点"))}}}),[["__scopeId","data-v-15f8ce24"]])},Symbol.toStringTag,{value:"Module"})),I6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"notifyNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&!!t.node.config.selectNodeId,message:"请选择抄送人和数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 抄送人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),L6e={key:0,class:"node-title"},R6e={key:1,class:"no-set"},M6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"oddNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",L6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",R6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),z6e={key:0,class:"node-title"},U6e={key:1,class:"no-set"},H6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"searchNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",z6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",U6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),W6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.selectNodeId,message:"请选择发起审批的数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,"发起人:触发者"))}})},Symbol.toStringTag,{value:"Module"})),q6e={key:0,class:"node-title"},G6e={key:1,class:"no-set"},K6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"summaryNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(h=>{const p=c.fieldList.some(v=>v.columnId===h.columnId);return p||u.push(h.columnComment||`字段ID: ${h.columnId}`),p}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`};const{summary:d}=t.node.config;if(!d)return{valid:!1,message:"请选择汇总方式"};if(!c.fieldList.some(h=>h.columnName===d))return{valid:!1,message:`汇总字段不存在: ${d}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",q6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",G6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),Y6e={key:0},X6e={key:1,class:"no-set"},Z6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"systemNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",Y6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",X6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),J6e={class:"node-title"},Q6e={class:"remark"},$6e={key:1,class:"no-set"},eNe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);i.onMounted(async()=>{if(t.node.config.workId){const l=await n(t.node.config.workId);r.set(t.node.config.workId,l),t.node.config.workName=l.workName}}),o.register(t.tempNodeId,()=>{var l,s,c;if(!((l=t.node.config)!=null&&l.workName))return{valid:!1,message:"请选择工作表"};if(((c=(s=t.node.config)==null?void 0:s.filter)==null?void 0:c.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const u=r.get(t.node.config.workId),d=[];if(t.node.config.filter.filter(f=>{const h=u.fieldList.some(p=>p.columnId===f.columnId);return h||d.push(f.columnComment||`字段ID: ${f.columnId}`),h}),d.length>0)return{valid:!1,message:`以下字段不存在: ${d.join(", ")}`}}}return{valid:!0,message:"通过"}});const a=i.computed(()=>{switch(t.node.config.type){case"save":return"当新增或更新记录时";case"add":return"仅新增记录时";case"edit":return"仅更新记录时";case"del":return"删除记录时";default:return""}});return(l,s)=>e.node.config.workName?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",J6e,'工作表 "'+i.toDisplayString(e.node.config.workName)+'"',1),i.createElementVNode("div",Q6e,i.toDisplayString(a.value),1)],64)):(i.openBlock(),i.createElementBlock("div",$6e,"设置此节点"))}}),[["__scopeId","data-v-a1ebfe82"]])},Symbol.toStringTag,{value:"Module"})),tNe={key:0},nNe={key:1,class:"no-set"},rNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.start,message:"请选择开始时间"})),(r,o)=>e.node.config.start?(i.openBlock(),i.createElementBlock("div",tNe,"从 "+i.toDisplayString(t.node.config.start)+" 开始",1)):(i.openBlock(),i.createElementBlock("div",nNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),oNe={key:0,class:"node-title"},iNe={key:1,class:"no-set"},aNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"uiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",oNe,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",iNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),lNe={key:0},sNe={key:1,class:"no-set"},cNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"wechatNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",lNe," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",sNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"}));return LG});
|
|
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 Ske=i.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=i.ref(null),r=i.shallowRef(null),o=i.ref(""),a=()=>{if(!n.value)return;const s=i.toRaw(e.defaultContent);wU({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:Nke(xke({},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(o.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 i.onMounted(()=>{a()}),i.watch(()=>e.modelValue,s=>{s!==o.value&&l(s)}),{box:n}}}),Dke={ref:"box",style:{height:"100%"}};function Bke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Dke,null,512)}var Ake=kU(Ske,[["render",Bke]]);const Oke=i.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=i.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");M.getToolbar(r)||_U({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Vke={ref:"selector"};function Fke(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Vke,null,512)}var Tke=kU(Oke,[["render",Fke]]),xU={exports:{}};const Pke=Jq(bke);(function(e,t){(function(n,r){e.exports=r(Pke)})(self,n=>(()=>{var r={857:s=>{s.exports=n}},o={};function a(s){var c=o[s];if(c!==void 0)return c.exports;var u=o[s]={exports:{}};return r[s](u,u.exports,a),u.exports}a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>B});var s=a(857);(0,s.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,s.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function c(V,L,F,Y,$){return{sel:V,data:L,children:F,text:Y,elm:$,key:L===void 0?void 0:L.key}}const u=Array.isArray;function d(V){return typeof V=="string"||typeof V=="number"||V instanceof String||V instanceof Number}function f(V,L,F){if(V.ns="http://www.w3.org/2000/svg",F!=="foreignObject"&&L!==void 0)for(let Y=0;Y<L.length;++Y){const $=L[Y];if(typeof $=="string")continue;const ie=$.data;ie!==void 0&&f(ie,$.children,$.sel)}}function h(V,L,F){let Y,$,ie,K={};if(F!==void 0?(L!==null&&(K=L),u(F)?Y=F:d(F)?$=F.toString():F&&F.sel&&(Y=[F])):L!=null&&(u(L)?Y=L:d(L)?$=L.toString():L&&L.sel?Y=[L]:K=L),Y!==void 0)for(ie=0;ie<Y.length;++ie)d(Y[ie])&&(Y[ie]=c(void 0,void 0,void 0,Y[ie],void 0));return V[0]!=="s"||V[1]!=="v"||V[2]!=="g"||V.length!==3&&V[3]!=="."&&V[3]!=="#"||f(K,Y,V),c(V,K,Y,$,void 0)}const p={type:"attachment",renderElem:function(V,L,F){var Y=F.isDisabled(),$=s.DomEditor.isNodeSelected(F,V),ie=V,K=ie.fileName,X=K===void 0?"":K,ge=ie.link,ae=ge===void 0?"":ge;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:$&&!Y?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:Y?"pointer":"inherit"},on:{click:function(){Y&&ae&&window.open(ae,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),X])}};function v(V){return V!==null&&typeof V=="object"&&"constructor"in V&&V.constructor===Object}function m(V={},L={}){Object.keys(L).forEach(F=>{V[F]===void 0?V[F]=L[F]:v(L[F])&&v(V[F])&&Object.keys(L[F]).length>0&&m(V[F],L[F])})}const g={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const V=typeof document<"u"?document:{};return m(V,g),V}const y={document:g,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:V=>typeof setTimeout>"u"?(V(),null):setTimeout(V,0),cancelAnimationFrame(V){typeof setTimeout<"u"&&clearTimeout(V)}};function w(){const V=typeof window<"u"?window:{};return m(V,y),V}class _ extends Array{constructor(L){typeof L=="number"?super(L):(super(...L||[]),function(F){const Y=F.__proto__;Object.defineProperty(F,"__proto__",{get:()=>Y,set($){Y.__proto__=$}})}(this))}}function E(V,L){const F=w(),Y=b();let $=[];if(!L&&V instanceof _)return V;if(!V)return new _($);if(typeof V=="string"){const ie=V.trim();if(ie.indexOf("<")>=0&&ie.indexOf(">")>=0){let K="div";ie.indexOf("<li")===0&&(K="ul"),ie.indexOf("<tr")===0&&(K="tbody"),ie.indexOf("<td")!==0&&ie.indexOf("<th")!==0||(K="tr"),ie.indexOf("<tbody")===0&&(K="table"),ie.indexOf("<option")===0&&(K="select");const X=Y.createElement(K);X.innerHTML=ie;for(let ge=0;ge<X.childNodes.length;ge+=1)$.push(X.childNodes[ge])}else $=function(K,X){if(typeof K!="string")return[K];const ge=[],ae=X.querySelectorAll(K);for(let ne=0;ne<ae.length;ne+=1)ge.push(ae[ne]);return ge}(V.trim(),L||Y)}else if(V.nodeType||V===F||V===Y)$.push(V);else if(Array.isArray(V)){if(V instanceof _)return V;$=V}return new _(function(ie){const K=[];for(let X=0;X<ie.length;X+=1)K.indexOf(ie[X])===-1&&K.push(ie[X]);return K}($))}function N(...V){let[L,F,Y,$]=V;function ie(ae){const ne=ae.target;if(!ne)return;const me=ae.target.dom7EventData||[];if(me.indexOf(ae)<0&&me.unshift(ae),E(ne).is(F))Y.apply(ne,me);else{const ot=E(ne).parents();for(let Ne=0;Ne<ot.length;Ne+=1)E(ot[Ne]).is(F)&&Y.apply(ot[Ne],me)}}function K(ae){const ne=ae&&ae.target&&ae.target.dom7EventData||[];ne.indexOf(ae)<0&&ne.unshift(ae),Y.apply(this,ne)}typeof V[1]=="function"&&([L,Y,$]=V,F=void 0),$||($=!1);const X=L.split(" ");let ge;for(let ae=0;ae<this.length;ae+=1){const ne=this[ae];if(F)for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7LiveListeners||(ne.dom7LiveListeners={}),ne.dom7LiveListeners[me]||(ne.dom7LiveListeners[me]=[]),ne.dom7LiveListeners[me].push({listener:Y,proxyListener:ie}),ne.addEventListener(me,ie,$)}else for(ge=0;ge<X.length;ge+=1){const me=X[ge];ne.dom7Listeners||(ne.dom7Listeners={}),ne.dom7Listeners[me]||(ne.dom7Listeners[me]=[]),ne.dom7Listeners[me].push({listener:Y,proxyListener:K}),ne.addEventListener(me,K,$)}}return this}function C(){for(let V=0;V<this.length;V+=1)this[V].style.display="none";return this}function S(...V){let L;const F=b();for(let Y=0;Y<V.length;Y+=1){L=V[Y];for(let $=0;$<this.length;$+=1)if(typeof L=="string"){const ie=F.createElement("div");for(ie.innerHTML=L;ie.firstChild;)this[$].appendChild(ie.firstChild)}else if(L instanceof _)for(let ie=0;ie<L.length;ie+=1)this[$].appendChild(L[ie]);else this[$].appendChild(L)}return this}E.fn=_.prototype;const x="resize scroll".split(" ");function A(V){return function(...L){if(L[0]===void 0){for(let F=0;F<this.length;F+=1)x.indexOf(V)<0&&(V in this[F]?this[F][V]():E(this[F]).trigger(V));return this}return this.on(V,...L)}}const P=A("click"),j=E;C&&(j.fn.hide=C),S&&(j.fn.append=S),P&&(j.fn.click=P),N&&(j.fn.on=N);const W=j;var R=function(){return R=Object.assign||function(V){for(var L,F=1,Y=arguments.length;F<Y;F++)for(var $ in L=arguments[F])Object.prototype.hasOwnProperty.call(L,$)&&(V[$]=L[$]);return V},R.apply(this,arguments)},U=function(V,L,F,Y){return new(F||(F=Promise))(function($,ie){function K(ae){try{ge(Y.next(ae))}catch(ne){ie(ne)}}function X(ae){try{ge(Y.throw(ae))}catch(ne){ie(ne)}}function ge(ae){var ne;ae.done?$(ae.value):(ne=ae.value,ne instanceof F?ne:new F(function(me){me(ne)})).then(K,X)}ge((Y=Y.apply(V,[])).next())})},Q=function(V,L){var F,Y,$,ie,K={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ie={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function X(ge){return function(ae){return function(ne){if(F)throw new TypeError("Generator is already executing.");for(;K;)try{if(F=1,Y&&($=2&ne[0]?Y.return:ne[0]?Y.throw||(($=Y.return)&&$.call(Y),0):Y.next)&&!($=$.call(Y,ne[1])).done)return $;switch(Y=0,$&&(ne=[2&ne[0],$.value]),ne[0]){case 0:case 1:$=ne;break;case 4:return K.label++,{value:ne[1],done:!1};case 5:K.label++,Y=ne[1],ne=[0];continue;case 7:ne=K.ops.pop(),K.trys.pop();continue;default:if(!(($=($=K.trys).length>0&&$[$.length-1])||ne[0]!==6&&ne[0]!==2)){K=0;continue}if(ne[0]===3&&(!$||ne[1]>$[0]&&ne[1]<$[3])){K.label=ne[1];break}if(ne[0]===6&&K.label<$[1]){K.label=$[1],$=ne;break}if($&&K.label<$[2]){K.label=$[2],K.ops.push(ne);break}$[2]&&K.ops.pop(),K.trys.pop();continue}ne=L.call(V,K)}catch(me){ne=[6,me],Y=0}finally{F=$=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([ge,ae])}}};function I(V){return V.getMenuConfig("uploadAttachment")}function T(V,L,F){if(L&&F){V.restoreSelection();var Y={type:"attachment",fileName:L,link:F,children:[{text:""}]};V.insertNode(Y),V.move(1);var $=I(V).onInsertedAttachment;$&&$(Y)}}function J(V,L){return U(this,void 0,void 0,function(){var F,Y,$,ie;return Q(this,function(K){switch(K.label){case 0:return F=function(X){var ge=oe.get(X);if(ge!=null)return ge;var ae=I(X),ne=ae.onSuccess,me=ae.onProgress,ot=ae.onFailed,Ne=ae.customInsert,Ge=ae.onError;return ge=(0,s.createUploader)(R(R({},ae),{onProgress:function(Re){X.showProgressBar(Re),me&&me(Re)},onSuccess:function(Re,at){if(Ne)Ne(at,Re,function(on,Xn){return T(X,on,Xn)});else{var Se=at.errno,Vt=Se===void 0?1:Se,En=at.data,Yn=En===void 0?{}:En;if(Vt!==0)return console.error("'".concat(Re.name,"' upload failed"),at),void ot(Re,at);var It=Yn.url,hn=It===void 0?"":It;T(X,Re.name,hn),ne(Re,at)}},onError:function(Re,at,Se){var Vt=Re.name;console.error("'".concat(Vt," upload error"),at,Se),Ge&&Ge(Re,at,Se)}})),oe.set(X,ge),ge}(V),Y=L.name,$=L.type,ie=L.size,F.addFile({name:Y,type:$,size:ie,data:L}),[4,F.upload()];case 1:return K.sent(),[2]}})})}var oe=new WeakMap;const O=function(){function V(){this.title=(0,s.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return V.prototype.getValue=function(L){return""},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){var Y=this.getMenuConfig(L),$=Y.allowedFileTypes,ie=$===void 0?[]:$,K=Y.customBrowseAndUpload;if(K)K(function(ne,me){return T(L,ne,me)});else{var X="";ie.length>0&&(X='accept="'.concat(ie.join(", "),'"'));var ge=W("body"),ae=W('<input type="file" '.concat(X," multiple/>"));ae.hide(),ge.append(ae),ae.click(),ae.on("change",function(){var ne=ae[0].files;(function(me,ot){var Ne,Ge;U(this,void 0,void 0,function(){var Re,at,Se,Vt,En,Yn;return Q(this,function(It){switch(It.label){case 0:if(ot==null)return[2];Re=Array.prototype.slice.call(ot),at=I(me).customUpload,It.label=1;case 1:It.trys.push([1,9,10,15]),Se=function(hn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var on,Xn=hn[Symbol.asyncIterator];return Xn?Xn.call(hn):(hn=typeof __values=="function"?__values(hn):hn[Symbol.iterator](),on={},Sr("next"),Sr("throw"),Sr("return"),on[Symbol.asyncIterator]=function(){return this},on);function Sr(an){on[an]=hn[an]&&function(ln){return new Promise(function(kn,An){(function(sn,ur,Os,Zo){Promise.resolve(Zo).then(function(mo){sn({value:mo,done:Os})},ur)})(kn,An,(ln=hn[an](ln)).done,ln.value)})}}}(Re),It.label=2;case 2:return[4,Se.next()];case 3:return(Vt=It.sent()).done?[3,8]:(En=Vt.value,at?[4,at(En,function(hn,on){return T(me,hn,on)})]:[3,5]);case 4:return It.sent(),[3,7];case 5:return[4,J(me,En)];case 6:It.sent(),It.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return Yn=It.sent(),Ne={error:Yn},[3,15];case 10:return It.trys.push([10,,13,14]),Vt&&!Vt.done&&(Ge=Se.return)?[4,Ge.call(Se)]:[3,12];case 11:It.sent(),It.label=12;case 12:return[3,14];case 13:if(Ne)throw Ne.error;return[7];case 14:return[7];case 15:return[2]}})})})(L,ne)})}},V.prototype.isDisabled=function(L){var F=L.selection;if(F==null||s.SlateRange.isExpanded(F))return!0;var Y=s.DomEditor.getSelectedElems(L);return!!Y.some(function($){return L.isVoid($)})||!!Y.some(function($){return s.DomEditor.getNodeType($)==="pre"})},V.prototype.getMenuConfig=function(L){return L.getMenuConfig("uploadAttachment")},V}(),k=function(){function V(){this.title=(0,s.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return V.prototype.getValue=function(L){var F=this.getSelectedElem(L);return F==null?"":F.link},V.prototype.isActive=function(L){return!1},V.prototype.exec=function(L,F){F&&typeof F=="string"&&window.open(F,"_blank")},V.prototype.isDisabled=function(L){var F=L.selection;return F==null||!!s.SlateRange.isExpanded(F)||this.getSelectedElem(L)==null},V.prototype.getSelectedElem=function(L){var F=s.DomEditor.getSelectedNodeByType(L,"attachment");return F??null},V}(),B={editorPlugin:function(V){var L=V.isInline,F=V.isVoid,Y=V;return Y.isInline=function($){return s.DomEditor.getNodeType($)==="attachment"||L($)},Y.isVoid=function($){return s.DomEditor.getNodeType($)==="attachment"||F($)},Y},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(V,L){var F=V,Y=F.link,$=Y===void 0?"":Y,ie=F.fileName,K=ie===void 0?"":ie;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat($,'" download="').concat(K,'">').concat(K,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(V,L,F){return{type:"attachment",link:V.getAttribute("href")||"",fileName:V.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new O},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(V){return V},onProgress:function(V){},onSuccess:function(V,L){},onFailed:function(V,L){},onError:function(V,L,F){},onInsertedAttachment:function(V){}}},{key:"downloadAttachment",factory:function(){return new k}}]}})(),l})())})(xU);var jke=xU.exports;const Ike=Zq(jke),Lke=["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"},Rke=()=>({variables:NU,getPrefixClass:t=>`${NU.namespace}-${t}`}),tb=XU(et(i.defineComponent({name:"WangEditor",__name:"index",props:i.mergeModels({toolbarKeys:{default:()=>[]},excludeKeys:{default:()=>[]},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},hideToolBar:{type:Boolean,default:!1}},{modelValue:{default:""},modelModifiers:{}}),emits:i.mergeModels(["imageUpload","imageBeforeUpload","imageProgress","imageSuccess","imageFailed","imageError","videoUpload","fileBeforeUpload","fileUpload","onPaste","onCreated"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const{getPrefixClass:r}=Rke(),o=r("wang-editor"),a=e,l=n,s=i.useModel(e,"modelValue"),c=i.shallowRef(),u=i.reactive({placeholder:"请输入内容 ...",readOnly:a.disabled,MENU_CONF:{uploadImage:{maxFileSize:10*1024*1024,allowedFileTypes:["image/*"],customUpload:(p,v)=>{l("imageUpload",p,v)},onBeforeUpload:p=>{l("imageBeforeUpload",p)},onProgress:p=>{l("imageProgress",p)},onSuccess:(p,v)=>{l("imageSuccess",p,v)},onFailed:(p,v)=>{l("imageFailed",p,v)},onError:(p,v,m)=>{l("imageError",p,v,m)}},uploadVideo:{maxFileSize:300*1024*1024,allowedFileTypes:["video/*"],customUpload:(p,v)=>{l("videoUpload",p,v)}},uploadAttachment:{maxFileSize:10*1024*1024,onBeforeUpload:p=>{l("fileBeforeUpload",p)},customUpload:(p,v)=>{l("fileUpload",p,v)}}}}),d=i.computed(()=>({toolbarKeys:a.toolbarKeys.length>0?a.toolbarKeys:Lke,excludeKeys:a.excludeKeys,insertKeys:{index:22,keys:["uploadAttachment"]}}));i.watch(()=>a.disabled,()=>{i.unref(c)&&(a.disabled?i.unref(c).disable():i.unref(c).enable())}),i.onMounted(()=>{try{rn.registerModule(Ike)}catch{}});const f=p=>{c.value=p,a.disabled?i.unref(c).disable():i.unref(c).enable(),l("onCreated",p)},h=(p,v)=>{l("onPaste",p,v)};return i.onBeforeUnmount(()=>{i.unref(c)&&i.unref(c).destroy()}),t({editor:c}),(p,v)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(o),{disabled:p.disabled}])},[p.hideToolBar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Tke),{key:0,class:i.normalizeClass(`${i.unref(o)}__toolbar`),editor:c.value,defaultConfig:d.value,mode:p.mode},null,8,["class","editor","defaultConfig","mode"])),i.createVNode(i.unref(Ake),i.mergeProps({class:`${i.unref(o)}__content`,style:{height:typeof p.height=="string"?p.height:`${p.height}px`,overflowY:"hidden"},modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=m=>s.value=m),defaultConfig:u,mode:p.mode},p.$attrs,{onOnCreated:f,onCustomPaste:h}),null,16,["class","style","modelValue","defaultConfig","mode"])],2))}}),[["__scopeId","data-v-36eeeada"]])),Mke=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"dingDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送钉钉消息是指以企业工作通知会话中某个微应用的名义推送到员工的通知消息 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-29c0611f"]])},Symbol.toStringTag,{value:"Module"})),zke={style:{float:"left"}},Uke={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Hke={key:0,class:"no-work"},Wke={key:1,class:"config-detail"},qke={class:"config-item"},Gke={class:"children-query",style:{"margin-top":"20px"}},Kke={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Yke={style:{flex:"1"}},Xke={class:"flex-both"},Zke={class:"flex"},Jke={class:"txt-label"},Qke={class:"condition-select"},$ke={key:0,class:"function-tag"},exe={class:"box"},txe={class:"ellipsis table-name"},nxe={class:"field-name ellipsis"},rxe={style:{margin:"20px 0"}},oxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},ixe={class:"field-list"},axe=["onClick"],lxe={class:"field"},sxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"editDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var v,m;const p=r.value.trim().toLowerCase();return(m=(v=t.config)==null?void 0:v.selectNodeFields)==null?void 0:m.filter(g=>[g.columnName,g.columnComment].some(b=>String(b||"").toLowerCase().includes(p)))});function a(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){a(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&a(p.childNode,v,m),m}function l(p,v,m=[]){if(p.nodeId===v)return m;["odd","search","flow","add","button","table","api","summary"].includes(p.nodeType)&&m.push(p);let b=!1;if(p.nodeType==="router"&&p.conditionNodes){for(const y of p.conditionNodes)if(Ft(y,v)){l(y.childNode,v,m),b=!0;break}}return!b&&p.childNode&&l(p.childNode,v,m),m}const s=i.computed(()=>{const p=[];return a(n.value.nodeConfig,t.node.nodeId,p),p}),c=i.computed(()=>{const p=[];return p.push(Jr.defaultNode),l(n.value.nodeConfig,t.node.nodeId,p),p});async function u(){const p=s.value.find(v=>v.nodeId===t.config.selectNodeId);p&&(t.config.workId=p.config.workId,t.config.workName=p.config.workName,t.config.selectNodeFields=xn(p.config.fields))}function d(p){p.compare="eq",t.config.fields.push(p)}function f(p){t.config.fields.splice(p,1)}function h(p){p.nodeId="",p.nodeName="",p.fieldValue=void 0,p.fieldValueName=""}return(p,v)=>{const m=i.resolveComponent("el-option"),g=i.resolveComponent("el-select"),b=i.resolveComponent("el-form-item"),y=i.resolveComponent("el-form"),w=i.resolveComponent("InfoFilled"),_=i.resolveComponent("el-icon"),E=i.resolveComponent("Close"),N=i.resolveComponent("el-input"),C=i.resolveComponent("el-button"),S=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(y,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(b,{label:"选择更新对象"},{default:i.withCtx(()=>[i.createVNode(g,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":v[0]||(v[0]=x=>t.config.selectNodeId=x),filterable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(x,A)=>(i.openBlock(),i.createBlock(m,{key:A,label:x.nodeName,value:x.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",zke,i.toDisplayString(x.nodeName),1),i.createElementVNode("span",Uke,' 工作表 "'+i.toDisplayString(x.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),v[6]||(v[6]=i.createElementVNode("div",{class:"title"},"更新字段",-1)),t.config.selectNodeId?(i.openBlock(),i.createElementBlock("div",Wke,[i.createElementVNode("div",qke,[i.createElementVNode("div",Gke,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(x,A)=>{var P;return i.openBlock(),i.createElementBlock(i.Fragment,{key:A},[x.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",Kke,[i.createElementVNode("div",Yke,[i.createElementVNode("div",Xke,[i.createElementVNode("div",Zke,[i.createElementVNode("span",Jke,i.toDisplayString(x.columnComment),1),i.createElementVNode("span",null,[i.createVNode(g,{modelValue:x.compare,"onUpdate:modelValue":j=>x.compare=j,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(m,{label:"设为",value:"eq"}),i.createVNode(m,{label:"添加",value:"add"}),i.createVNode(m,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(_,{class:"close-icon",onClick:j=>f(A)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Qke,[x.nodeId?(i.openBlock(),i.createElementBlock("div",$ke,[i.createElementVNode("div",exe,[i.createElementVNode("div",txe,[i.createElementVNode("span",null,i.toDisplayString(x.nodeName),1),v[3]||(v[3]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),v[4]||(v[4]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",nxe,i.toDisplayString(x.fieldValueName),1)]),i.createVNode(_,{onClick:j=>h(x)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((P=x==null?void 0:x.fieldAttr)==null?void 0:P.type)?(i.openBlock(),i.createBlock(g,{key:0,modelValue:x.fieldValue,"onUpdate:modelValue":j=>x.fieldValue=j,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.fieldAttr.enum,(j,W)=>(i.openBlock(),i.createBlock(m,{key:W,label:j.label,value:j.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(N,{key:1,modelValue:x.fieldValue,"onUpdate:modelValue":j=>x.fieldValue=j,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(p.$slots,"action",{item:x,varList:c.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",rxe,[i.createVNode(S,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(C,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>v[5]||(v[5]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",oxe,[i.createVNode(N,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":v[1]||(v[1]=x=>r.value=x)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",ixe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(x,A)=>{var P;return i.openBlock(),i.createElementBlock(i.Fragment,{key:A},[x.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:j=>d(x)},[i.createElementVNode("span",lxe," ["+i.toDisplayString(i.unref(ti)(((P=x==null?void 0:x.fieldAttr)==null?void 0:P.type)||x.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(x.columnComment),1)],8,axe)):i.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",Hke,[i.createVNode(_,{size:"17"},{default:i.withCtx(()=>[i.createVNode(w)]),_:1}),v[2]||(v[2]=i.createElementVNode("div",{class:"ml"},"必须先选择一个对象后,才能设置可执行的动作",-1))]))])}}}),[["__scopeId","data-v-357d0abf"]])},Symbol.toStringTag,{value:"Module"})),cxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"emailDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=ref(0),r=i.inject("showUser");function o(){n.value=0,r()}function a(){n.value=1,r()}const l=i.inject("getUserIds");i.watch(l,c=>{c&&c.length>0&&(n.value===1?t.config.notifys=[...t.config.notifys,...c]:t.config.accounts=[...t.config.accounts,...c])});function s(c,u){c.splice(u,1)}return(c,u)=>{const d=i.resolveComponent("el-tag"),f=i.resolveComponent("el-button"),h=i.resolveComponent("el-form-item"),p=i.resolveComponent("el-input"),v=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[u[2]||(u[2]=i.createElementVNode("div",{class:"header"},"仅支持通过代发邮件",-1)),i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(h,{label:"收件人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.accounts,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:o},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"抄送人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.notifys,(m,g)=>(i.openBlock(),i.createBlock(d,{key:g,effect:"light",round:"",type:"info",class:"mr",onClose:b=>s(e.config.notify,g),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(f,{icon:i.unref(Br),circle:"",size:"small",onClick:a},null,8,["icon"])])]),_:1}),i.createVNode(h,{label:"主题"},{default:i.withCtx(()=>[i.createVNode(p,{modelValue:t.config.title,"onUpdate:modelValue":u[0]||(u[0]=m=>t.config.title=m)},null,8,["modelValue"])]),_:1}),i.createVNode(h,{label:"正文"},{default:i.withCtx(()=>[i.createVNode(i.unref(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"})),uxe={class:"no-work",style:{width:"100%","line-height":"14px"}},dxe={style:{float:"left"}},fxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},pxe={class:"sub-title"},hxe={style:{color:"#1e88e5 !important"}},gxe={class:"no-work"},mxe={class:"ml"},yxe={key:0,style:{color:"red"}},vxe={key:1},bxe={class:"config-detail"},wxe={class:"config-item"},_xe={class:"children-query",style:{"margin-top":"20px"}},Cxe={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},Exe={style:{flex:"1"}},kxe={class:"flex-both"},xxe={class:"flex"},Nxe={class:"txt-label"},Sxe={class:"condition-select"},Dxe={key:0,class:"function-tag"},Bxe={class:"box"},Axe={class:"ellipsis table-name"},Oxe={class:"field-name ellipsis"},Vxe={style:{margin:"20px 0"}},Fxe={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},Txe={class:"field-list"},Pxe=["onClick"],jxe={class:"field"},Ixe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn),r=i.ref(""),o=i.computed(()=>{var N,C;const E=r.value.trim().toLowerCase();return(C=(N=t.config)==null?void 0:N.fields)==null?void 0:C.filter(S=>[S.columnName,S.columnComment].some(x=>String(x||"").toLowerCase().includes(E)))});function a(E,N,C=[]){if(E.nodeId===N)return C;["odd","search","add","button","table"].includes(E.nodeType)&&C.push(E);let x=!1;if(E.nodeType==="router"&&E.conditionNodes){for(const A of E.conditionNodes)if(Ft(A,N)){a(A.childNode,N,C),x=!0;break}}return!x&&E.childNode&&a(E.childNode,N,C),C}const l=i.computed(()=>{const E=[];return a(n.value.nodeConfig,t.node.nodeId,E),E}),s=i.inject("getFlowFun"),c=i.inject(Qn),u=i.inject("getParentFlowFun"),d=i.ref([]);async function f(){d.value=await s(t.config.workId)}f(),t.config.procId||(t.config.procId=Uu());const h=i.computed(()=>{const E=[];E.push(Jr.defaultNode);const N=l.value.find(C=>C.nodeId===t.config.selectNodeId);return N&&E.push(N),E});async function p(){b();const E=l.value.find(N=>N.nodeId===t.config.selectNodeId);E&&(t.config.procId||(t.config.procId=Uu()),t.config.nodeType=E.nodeType,t.config.workId=E.config.workId,t.config.workName=E.config.workName,t.config.fields=E.config.fields,f())}function v(E){E.compare="eq",t.config.params.push(E)}function m(E){t.config.params.splice(E,1)}function g(E){E.nodeId="",E.nodeName="",E.fieldValue=void 0,E.fieldValueName=""}function b(){t.config.procId="",t.config.procName="子流程"}function y(E){t.config.procId=E.procId,t.config.procName=E.procName}const w=i.ref([]);async function _(){var N;if(t.config.workId){const C=await c(t.config.workId);C&&(t.config.fields=C.fieldList,t.config.workName=C.workName)}const E=await u(t.config.procId,t.node.nodeId,t.node.selectNodeId);E&&(t.config.procName=E.config.procName,w.value=(N=E==null?void 0:E.parentProcName)==null?void 0:N.split(","))}return _(),(E,N)=>{const C=i.resolveComponent("el-form-item"),S=i.resolveComponent("el-form"),x=i.resolveComponent("el-option"),A=i.resolveComponent("el-select"),P=i.resolveComponent("el-radio"),j=i.resolveComponent("el-radio-group"),W=i.resolveComponent("arrow-down"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-dropdown-item"),Q=i.resolveComponent("el-dropdown-menu"),I=i.resolveComponent("el-dropdown"),T=i.resolveComponent("Close"),J=i.resolveComponent("el-input"),oe=i.resolveComponent("el-button"),O=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.unref(n).procType==="flow"?(i.openBlock(),i.createBlock(S,{key:0,model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"数据源"},{default:i.withCtx(()=>[i.createTextVNode(" 工作表: "+i.toDisplayString(t.config.workName),1)]),_:1}),i.createVNode(C,{label:"被以下工作流触发"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.value,k=>(i.openBlock(),i.createElementBlock("div",uxe,i.toDisplayString(k),1))),256))]),_:1})]),_:1},8,["model"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(S,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(C,{label:"选择数据对象"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":N[0]||(N[0]=k=>t.config.selectNodeId=k),filterable:"",onChange:p},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(x,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",dxe,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",fxe,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t.config.nodeType==="odd"?(i.openBlock(),i.createBlock(C,{key:0,label:"多条数据执行方式"},{default:i.withCtx(()=>[N[7]||(N[7]=i.createElementVNode("span",{class:"remark"}," 您选择了多条数据对象,将根据数据的条数执行多条子流程 ",-1)),i.createVNode(j,{modelValue:e.config.oddType,"onUpdate:modelValue":N[1]||(N[1]=k=>e.config.oddType=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>N[3]||(N[3]=[i.createTextVNode("并行")])),_:1}),N[5]||(N[5]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将同时执行各自的流程。即便某条子流程运行中止,也不影响其他子流程的执行。 ",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>N[4]||(N[4]=[i.createTextVNode("逐条执行")])),_:1}),N[6]||(N[6]=i.createElementVNode("div",{class:"raido-txt"}," 多个数据对象将依次执行流程。每条子流程需要等前一条子流程通过后再开始触发 ",-1))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["model"]),i.createElementVNode("div",pxe,[N[10]||(N[10]=i.createElementVNode("span",null,"执行子流程",-1)),i.createVNode(I,null,{dropdown:i.withCtx(()=>[i.createVNode(Q,null,{default:i.withCtx(()=>[i.createVNode(U,{onClick:b},{default:i.withCtx(()=>N[9]||(N[9]=[i.createTextVNode("清除选择")])),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[B===0?(i.openBlock(),i.createBlock(U,{key:0,divided:"",onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"])):(i.openBlock(),i.createBlock(U,{key:1,onClick:V=>y(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.procName),1)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("span",hxe,[N[8]||(N[8]=i.createTextVNode(" 选择已有流程 ")),i.createVNode(R,{class:"el-icon--right"},{default:i.withCtx(()=>[i.createVNode(W)]),_:1})])]),_:1})]),i.createElementVNode("div",gxe,[i.createElementVNode("div",mxe,[t.config.procId?(i.openBlock(),i.createElementBlock("span",vxe,i.toDisplayString(t.config.procName),1)):(i.openBlock(),i.createElementBlock("span",yxe,"节点保存后,将自动创建一个新的子流程(新建)"))])]),i.createElementVNode("div",bxe,[i.createElementVNode("div",wxe,[i.createElementVNode("div",_xe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.params,(k,B)=>{var V;return i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",Cxe,[i.createElementVNode("div",Exe,[i.createElementVNode("div",kxe,[i.createElementVNode("div",xxe,[i.createElementVNode("span",Nxe,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(A,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(x,{label:"设为",value:"eq"}),i.createVNode(x,{label:"添加",value:"add"}),i.createVNode(x,{label:"减少",value:"inc"})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>m(B)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])]),i.createElementVNode("span",Sxe,[k.nodeId?(i.openBlock(),i.createElementBlock("div",Dxe,[i.createElementVNode("div",Bxe,[i.createElementVNode("div",Axe,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),N[11]||(N[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),N[12]||(N[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",Oxe,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>g(k)},{default:i.withCtx(()=>[i.createVNode(T)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(A,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(x,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(J,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(E.$slots,"action",{item:k,varList:h.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",Vxe,[i.createVNode(O,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(oe,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>N[13]||(N[13]=[i.createTextVNode("添加参数")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",Fxe,[i.createVNode(J,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:r.value,"onUpdate:modelValue":N[2]||(N[2]=k=>r.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",Txe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(k,B)=>{var V;return i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:L=>v(k)},[i.createElementVNode("span",jxe," ["+i.toDisplayString(i.unref(ti)(((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)||k.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(k.columnComment),1)],8,Pxe)):i.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])],64))])}}}),[["__scopeId","data-v-00c8a0fc"]])},Symbol.toStringTag,{value:"Module"})),Lxe={style:{float:"left"}},Rxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Mxe={key:0},zxe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"notifyDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(u,d,f=[]){return u.nodeId===d||(u.config.fields&&u.config.fields.length>0&&f.push(u),u.childNode&&r(u.childNode,d,f)),f}const o=i.computed(()=>{const u=[];return r(n.value.nodeConfig,t.node.nodeId,u),u});async function a(){const u=o.value.find(d=>d.nodeId===t.config.selectNodeId);u&&(t.config.workId=u.config.workId,t.config.workName=u.config.workName,t.config.selectNodeFields=xn(u.config.fields))}const l=i.ref("base");i.onMounted(async()=>{s()});function s(){t.config.handlerScope||(t.config.handlerScope=1),t.config.handlers||(t.config.handlers=[])}function c(){t.config.handlers=[]}return(u,d)=>{const f=i.resolveComponent("el-option"),h=i.resolveComponent("el-select"),p=i.resolveComponent("el-form-item"),v=i.resolveComponent("el-form"),m=i.resolveComponent("el-radio"),g=i.resolveComponent("el-radio-group"),b=i.resolveComponent("el-tab-pane"),y=i.resolveComponent("el-tabs");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(v,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(p,{label:"数据对象"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":d[0]||(d[0]=w=>t.config.selectNodeId=w),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(w,_)=>(i.openBlock(),i.createBlock(f,{key:_,label:w.nodeName,value:w.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Lxe,i.toDisplayString(w.nodeName),1),i.createElementVNode("span",Rxe,' 工作表 "'+i.toDisplayString(w.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),i.createVNode(y,{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=w=>l.value=w)},{default:i.withCtx(()=>[i.createVNode(b,{label:"基本设置",name:"base"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("div",null,[d[6]||(d[6]=i.createElementVNode("div",{class:"title"},"请选择该节点的审批人",-1)),i.createElementVNode("div",null,[i.createVNode(g,{modelValue:t.config.handlerScope,"onUpdate:modelValue":d[1]||(d[1]=w=>t.config.handlerScope=w),onChange:c},{default:i.withCtx(()=>[i.createVNode(m,{label:1},{default:i.withCtx(()=>d[4]||(d[4]=[i.createTextVNode("指定人员")])),_:1}),i.createVNode(m,{label:2},{default:i.withCtx(()=>d[5]||(d[5]=[i.createTextVNode("部门主管")])),_:1})]),_:1},8,["modelValue"])])]),t.config.handlerScope===1?(i.openBlock(),i.createElementBlock("div",Mxe,[d[7]||(d[7]=i.createElementVNode("div",{class:"title"},"指定成员",-1)),i.createElementVNode("div",null,[i.createVNode(ON,{modelValue:t.config.handlers,"onUpdate:modelValue":d[2]||(d[2]=w=>t.config.handlers=w),enableRole:!0},null,8,["modelValue"])])])):i.createCommentVNode("",!0)])]),_:1}),i.createVNode(b,{label:"表单操作权限",name:"permissions"},{default:i.withCtx(()=>[i.createVNode(AK,{config:t.config,"node-type":i.unref(zh)},null,8,["config","node-type"])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-d7695d2b"]])},Symbol.toStringTag,{value:"Module"})),Uxe={style:{float:"left"}},Hxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Wxe={style:{float:"left"}},qxe={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},Gxe={class:"config-detail"},Kxe={class:"config-item"},Yxe={class:"children-query",style:{"margin-top":"20px"}},Xxe={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},Zxe={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},Jxe={style:{flex:"1"}},Qxe={class:"flex-both"},$xe={class:"flex"},e3e={class:"txt-label"},t3e={class:"condition-select"},n3e={key:0,class:"function-tag"},r3e={class:"box"},o3e={class:"ellipsis table-name"},i3e={class:"field-name ellipsis"},a3e={style:{margin:"20px 0"}},l3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},s3e={class:"field-list"},c3e=["onClick"],u3e={class:"field"},d3e={style:{display:"flex",width:"100%"}},f3e={style:{display:"flex",width:"100%"}},p3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"oddDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(I,T,J=[]){if(I.nodeId===T)return J;I.nodeType==="add"&&I.config.addType==="2"&&J.push(I);let oe=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const O of I.conditionNodes)if(Ft(O,T)){r(O.childNode,T,J),oe=!0;break}}return!oe&&I.childNode&&r(I.childNode,T,J),J}function o(I,T,J=[]){if(I.nodeId===T)return J;I.nodeType==="api"&&J.push(I);let oe=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const O of I.conditionNodes)if(Ft(O,T)){o(O.childNode,T,J),oe=!0;break}}return!oe&&I.childNode&&o(I.childNode,T,J),J}function a(I,T,J=[]){if(I.nodeId===T)return J;(I.nodeType==="flow"||I.nodeType==="add"||I.nodeType==="search")&&J.push(I);let oe=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const O of I.conditionNodes)if(Ft(O,T)){a(O.childNode,T,J),oe=!0;break}}return!oe&&I.childNode&&a(I.childNode,T,J),J}const l=i.computed(()=>{const I=[];return o(n.value.nodeConfig,t.node.nodeId,I),I}),s=i.computed(()=>{const I=[];return a(n.value.nodeConfig,t.node.nodeId,I),I});function c(){var T,J;const I=l.value.find(oe=>oe.nodeId===t.config.selectNodeId);I&&(t.config.workName=I.nodeName,t.config.responseParams=(J=(T=I.config.callApi)==null?void 0:T.responseParams)==null?void 0:J.filter(oe=>oe.type==="Array"))}function u(){var T;const I=s.value.find(J=>J.nodeId===t.config.selectNodeId);I&&(t.config.workName=I.nodeName,t.config.responseParams=(T=I.config.fields)==null?void 0:T.filter(J=>J.type==="Array"))}function d(){var T;const I=t.config.responseParams.find(J=>J.code===t.config.responseField);I&&(t.config.fields=(T=I==null?void 0:I.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}function f(){var T;const I=t.config.responseParams.find(J=>J.columnName===t.config.responseField);I&&(t.config.fields=(T=I==null?void 0:I.children)==null?void 0:T.map(J=>({columnName:J.code,columnComment:J.code,type:J.type,children:J.children})))}const h=i.computed(()=>{const I=[];return r(n.value.nodeConfig,t.node.nodeId,I),I});function p(I,T,J=[]){if(I.nodeId===T)return J;["search","flow","add","button","table"].includes(I.nodeType)&&J.push(I);let O=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const k of I.conditionNodes)if(Ft(k,T)){p(k.childNode,T,J),O=!0;break}}return!O&&I.childNode&&p(I.childNode,T,J),J}function v(I,T,J=[]){if(I.nodeId===T)return J;["search","flow","add","button","table","api","summary"].includes(I.nodeType)&&J.push(I);let O=!1;if(I.nodeType==="router"&&I.conditionNodes){for(const k of I.conditionNodes)if(Ft(k,T)){v(k.childNode,T,J),O=!0;break}}return!O&&I.childNode&&v(I.childNode,T,J),J}const m=i.computed(()=>{const I=[];return p(n.value.nodeConfig,t.node.nodeId,I),I}),g=i.ref(""),b=i.computed(()=>{var T,J;const I=g.value.trim().toLowerCase();return(J=(T=t.config)==null?void 0:T.fields)==null?void 0:J.filter(oe=>[oe.columnName,oe.columnComment].some(O=>String(O||"").toLowerCase().includes(I)))}),y=i.ref("and");function w(){t.config.filter.forEach(I=>{I.join=y.value})}function _(I){I.join=y.value,I.compare=10,t.config.filter.push({...I})}function E(I){t.config.filter.splice(I,1)}function N(I){I.nodeId="",I.nodeName="",I.fieldValue=void 0,I.fieldValueName=""}const C=i.ref(),S=i.inject(Rs),x=i.inject(Qn);async function A(){C.value=await S(null)}A();const P=i.computed(()=>{const I=[];return I.push(Jr.defaultNode),v(n.value.nodeConfig,t.node.nodeId,I),I}),j=()=>{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 I=m.value.find(T=>T.nodeId===t.config.selectNodeId);I&&(t.config.selectNodeFields=xn(I.config.fields))}async function R(I){const T=await x(I);t.config.fields=T==null?void 0:T.fieldList,t.config.workName=T==null?void 0:T.workName}async function U(){const I=h.value.find(T=>T.nodeId===t.config.selectNodeId);I&&(t.config.workId=I.config.workId,t.config.workName=I.config.workName,t.config.fields=xn(I.config.fields),t.config.order="update_time")}async function Q(){const I=t.config.selectNodeFields.find(T=>T.columnName===t.config.linkField);if(I){const T=await x(I.fieldAttr.workId);t.config.fields=T.fieldList,t.config.workName=T.workName,t.config.workId=T.workId,t.config.order="update_time"}}return(I,T)=>{const J=i.resolveComponent("el-radio"),oe=i.resolveComponent("el-radio-group"),O=i.resolveComponent("el-form-item"),k=i.resolveComponent("el-option"),B=i.resolveComponent("el-select"),V=i.resolveComponent("Close"),L=i.resolveComponent("el-icon"),F=i.resolveComponent("el-input"),Y=i.resolveComponent("el-button"),$=i.resolveComponent("el-popover"),ie=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[T[36]||(T[36]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(ie,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(O,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.type,"onUpdate:modelValue":T[0]||(T[0]=K=>e.config.type=K),onChange:j},{default:i.withCtx(()=>[i.createVNode(J,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>T[15]||(T[15]=[i.createTextVNode("从工作表获取多条")])),_:1}),T[20]||(T[20]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(J,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>T[16]||(T[16]=[i.createTextVNode("获取关联记录")])),_:1}),T[21]||(T[21]=i.createElementVNode("div",{class:"raido-txt"},"获取关联记录、子表、选择字段中的记录",-1)),i.createVNode(J,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>T[17]||(T[17]=[i.createTextVNode("从新增节点获取记录")])),_:1}),T[22]||(T[22]=i.createElementVNode("div",{class:"raido-txt"},"从创建多条的新增节点获取记录",-1)),i.createVNode(J,{value:"api",style:{width:"100%"}},{default:i.withCtx(()=>T[18]||(T[18]=[i.createTextVNode("从集成API获取记录")])),_:1}),i.createVNode(J,{value:"array",style:{width:"100%"}},{default:i.withCtx(()=>T[19]||(T[19]=[i.createTextVNode("从数组获取记录")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="api"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(O,{label:"选择集成API节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[1]||(T[1]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:c},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[2]||(T[2]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:d},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.code,value:K.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(O,{label:"选择数据类型节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[3]||(T[3]=K=>t.config.selectNodeId=K),filterable:"",clearable:"",onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择数组"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.responseField,"onUpdate:modelValue":T[4]||(T[4]=K=>t.config.responseField=K),filterable:"",clearable:"",onChange:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.config.responseParams,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnName,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),e.config.type==="work"?(i.openBlock(),i.createBlock(O,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.workId,"onUpdate:modelValue":T[5]||(T[5]=K=>t.config.workId=K),filterable:"",onChange:R},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.workName,value:K.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="add"?(i.openBlock(),i.createBlock(O,{key:3,label:"选择新增记录节点"},{default:i.withCtx(()=>[i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[6]||(T[6]=K=>t.config.selectNodeId=K),filterable:"",onChange:U},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Uxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",Hxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[i.createVNode(O,{label:"选择获取对象"},{default:i.withCtx(()=>[T[23]||(T[23]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(B,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":T[7]||(T[7]=K=>t.config.selectNodeId=K),filterable:"",onChange:W},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.nodeName,value:K.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",Wxe,i.toDisplayString(K.nodeName),1),i.createElementVNode("span",qxe,' 工作表 "'+i.toDisplayString(K.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(O,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[T[24]||(T[24]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(B,{modelValue:t.config.linkField,"onUpdate:modelValue":T[8]||(T[8]=K=>t.config.linkField=K),filterable:"",onChange:Q},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(K,X)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:X},[K.htmlType==="Related"||K.htmlType==="SubTable"?(i.openBlock(),i.createBlock(k,{key:0,label:K.columnComment,value:K.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Gxe,[T[28]||(T[28]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),T[29]||(T[29]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",Kxe,[i.createElementVNode("div",Yxe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(K,X)=>{var ge;return i.openBlock(),i.createElementBlock("div",{key:X,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",Xxe,[X===0?(i.openBlock(),i.createBlock(B,{key:0,modelValue:y.value,"onUpdate:modelValue":T[9]||(T[9]=ae=>y.value=ae),onChange:w},{default:i.withCtx(()=>[i.createVNode(k,{label:"且",value:"and"}),i.createVNode(k,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",Zxe,i.toDisplayString(K.join==="and"?"且":"或"),1))]),i.createElementVNode("div",Jxe,[i.createElementVNode("div",Qxe,[i.createElementVNode("div",$xe,[i.createElementVNode("span",e3e,i.toDisplayString(K.columnComment),1),i.createElementVNode("span",null,[i.createVNode(B,{modelValue:K.compare,"onUpdate:modelValue":ae=>K.compare=ae,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(k,{label:"等于",value:10}),i.createVNode(k,{label:"不等于",value:110}),i.createVNode(k,{label:"大于",value:20}),i.createVNode(k,{label:"大于等于",value:21}),i.createVNode(k,{label:"小于",value:30}),i.createVNode(k,{label:"小于等于",value:31}),i.createVNode(k,{label:"多词匹配",value:40}),i.createVNode(k,{label:"包含",value:50}),i.createVNode(k,{label:"不包含",value:150}),i.createVNode(k,{label:"区间",value:80}),i.createVNode(k,{label:"为空",value:90}),i.createVNode(k,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(L,{class:"close-icon",onClick:ae=>E(X)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])]),i.createElementVNode("span",t3e,[K.nodeId?(i.openBlock(),i.createElementBlock("div",n3e,[i.createElementVNode("div",r3e,[i.createElementVNode("div",o3e,[i.createElementVNode("span",null,i.toDisplayString(K.nodeName),1),T[25]||(T[25]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),T[26]||(T[26]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",i3e,i.toDisplayString(K.fieldValueName),1)]),i.createVNode(L,{onClick:ae=>N(K)},{default:i.withCtx(()=>[i.createVNode(V)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((ge=K==null?void 0:K.fieldAttr)==null?void 0:ge.type)?(i.openBlock(),i.createBlock(B,{key:0,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.fieldAttr.enum,(ae,ne)=>(i.openBlock(),i.createBlock(k,{key:ne,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(F,{key:1,modelValue:K.fieldValue,"onUpdate:modelValue":ae=>K.fieldValue=ae,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(I.$slots,"action",{item:K,varList:P.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",a3e,[i.createVNode($,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Y,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>T[27]||(T[27]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",l3e,[i.createVNode(F,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:g.value,"onUpdate:modelValue":T[10]||(T[10]=K=>g.value=K)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",s3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value,(K,X)=>{var ge;return i.openBlock(),i.createElementBlock("div",{key:X,class:"field-item",onClick:ae=>_(K)},[i.createElementVNode("span",u3e," ["+i.toDisplayString(i.unref(ti)(((ge=K==null?void 0:K.fieldAttr)==null?void 0:ge.type)||K.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(K.columnComment),1)],8,c3e)}),128))])]),_:1})])])]),i.createVNode(O,{label:"排序规则"},{default:i.withCtx(()=>[T[30]||(T[30]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得数据。如果未设置规则,返回最近更新的一条数据 ",-1)),i.createElementVNode("div",d3e,[i.createVNode(B,{modelValue:t.config.order,"onUpdate:modelValue":T[11]||(T[11]=K=>t.config.order=K),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(K,X)=>(i.openBlock(),i.createBlock(k,{key:X,label:K.columnComment,value:K.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(B,{modelValue:t.config.sort,"onUpdate:modelValue":T[12]||(T[12]=K=>t.config.sort=K),filterable:""},{default:i.withCtx(()=>[i.createVNode(k,{label:"升序",value:"asc"}),i.createVNode(k,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(O,{label:"限制数量"},{default:i.withCtx(()=>[T[31]||(T[31]=i.createElementVNode("span",{class:"remark"},"最多获取条数",-1)),i.createElementVNode("div",f3e,[i.createVNode(F,{modelValue:t.config.limit,"onUpdate:modelValue":T[13]||(T[13]=K=>t.config.limit=K)},null,8,["modelValue"])])]),_:1}),i.createVNode(O,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(oe,{modelValue:e.config.way,"onUpdate:modelValue":T[14]||(T[14]=K=>e.config.way=K)},{default:i.withCtx(()=>[i.createVNode(J,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>T[32]||(T[32]=[i.createTextVNode("直接获取")])),_:1}),T[34]||(T[34]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(J,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>T[33]||(T[33]=[i.createTextVNode("每次使用时动态获取")])),_:1}),T[35]||(T[35]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-fce91187"]])},Symbol.toStringTag,{value:"Module"})),h3e={style:{float:"left"}},g3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},m3e={style:{float:"left"}},y3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},v3e={class:"config-detail"},b3e={class:"config-item"},w3e={class:"children-query",style:{"margin-top":"20px"}},_3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},C3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},E3e={style:{flex:"1"}},k3e={class:"flex-both"},x3e={class:"flex"},N3e={class:"txt-label"},S3e={class:"condition-select"},D3e={key:0,class:"function-tag"},B3e={class:"box"},A3e={class:"ellipsis table-name"},O3e={class:"field-name ellipsis"},V3e={style:{margin:"20px 0"}},F3e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},T3e={class:"field-list"},P3e=["onClick"],j3e={class:"field"},I3e={style:{display:"flex",width:"100%"}},L3e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"searchDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(x,A,P=[]){if(x.nodeId===A)return P;(x.nodeType==="odd"||x.nodeType==="button")&&x.config.workId&&P.push(x);let j=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const W of x.conditionNodes)if(Ft(W,A)){r(W.childNode,A,P),j=!0;break}}return!j&&x.childNode&&r(x.childNode,A,P),P}function o(x,A,P=[]){if(x.nodeId===A)return P;["odd","search","flow","add","button","table"].includes(x.nodeType)&&P.push(x);let W=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const R of x.conditionNodes)if(Ft(R,A)){o(R.childNode,A,P),W=!0;break}}return!W&&x.childNode&&o(x.childNode,A,P),P}function a(x,A,P=[]){if(x.nodeId===A)return P;["odd","search","flow","add","button","table","api","summary"].includes(x.nodeType)&&P.push(x);let W=!1;if(x.nodeType==="router"&&x.conditionNodes){for(const R of x.conditionNodes)if(Ft(R,A)){a(R.childNode,A,P),W=!0;break}}return!W&&x.childNode&&a(x.childNode,A,P),P}const l=i.computed(()=>{const x=[];return r(n.value.nodeConfig,t.node.nodeId,x),x}),s=i.computed(()=>{const x=[];return o(n.value.nodeConfig,t.node.nodeId,x),x}),c=i.computed(()=>{const x=[];return x.push(Jr.defaultNode),a(n.value.nodeConfig,t.node.nodeId,x),x}),u=i.ref(""),d=i.computed(()=>{var A,P;const x=u.value.trim().toLowerCase();return(P=(A=t.config)==null?void 0:A.fields)==null?void 0:P.filter(j=>[j.columnName,j.columnComment].some(W=>String(W||"").toLowerCase().includes(x)))}),f=i.ref("and");function h(){t.config.filter.forEach(x=>{x.join=f.value})}function p(x){x.join=f.value,x.compare=10,t.config.filter.push({...x})}function v(x){t.config.filter.splice(x,1)}function m(x){x.nodeId="",x.nodeName="",x.fieldValue=void 0,x.fieldValueName=""}const g=i.ref(),b=i.inject(Rs),y=i.inject(Qn);async function w(){g.value=await b(null)}w();const _=()=>{t.config.selectNodeId="",t.config.workId="",t.config.workName="",t.config.fields=[],t.config.filter=[],t.config.order="",t.config.linkField=""};async function E(x){const A=await y(x);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 N(){const x=l.value.find(A=>A.nodeId===t.config.selectNodeId);x&&(t.config.workId=x.config.workId,t.config.workName=x.config.workName,t.config.fields=xn(x.config.fields),t.config.order="update_time")}async function C(){const x=s.value.find(A=>A.nodeId===t.config.selectNodeId);x&&(t.config.selectNodeFields=xn(x.config.fields))}async function S(){const x=t.config.selectNodeFields.find(A=>A.columnName===t.config.linkField);if(x){const A=await y(x.fieldAttr.workId);t.config.fields=A.fieldList,t.config.workName=A.workName,t.config.workId=A.workId,t.config.order="update_time"}}return(x,A)=>{const P=i.resolveComponent("el-radio"),j=i.resolveComponent("el-radio-group"),W=i.resolveComponent("el-form-item"),R=i.resolveComponent("el-option"),U=i.resolveComponent("el-select"),Q=i.resolveComponent("Close"),I=i.resolveComponent("el-icon"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover"),O=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[A[27]||(A[27]=i.createElementVNode("div",{class:"header"}," 基于一种获取方式,通过筛选条件和排序规则获得符合条件的唯一数据,供流程中的其他节点使用。 ",-1)),i.createVNode(O,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(W,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:t.config.type,"onUpdate:modelValue":A[0]||(A[0]=k=>t.config.type=k),onChange:_},{default:i.withCtx(()=>[i.createVNode(P,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>A[10]||(A[10]=[i.createTextVNode("从工作表获取单条")])),_:1}),A[13]||(A[13]=i.createElementVNode("div",{class:"raido-txt"},"从工作表获取一条指定记录",-1)),i.createVNode(P,{value:"odd",style:{width:"100%"}},{default:i.withCtx(()=>A[11]||(A[11]=[i.createTextVNode("从多条数据节点获取单条")])),_:1}),A[14]||(A[14]=i.createElementVNode("div",{class:"raido-txt"},"从多条数据节点获取一条指定记录",-1)),i.createVNode(P,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>A[12]||(A[12]=[i.createTextVNode("从关联字段获取单条")])),_:1}),A[15]||(A[15]=i.createElementVNode("div",{class:"raido-txt"}," 从关联表、子表或级联选择字段获取一条指定记录 ",-1))]),_:1},8,["modelValue"])]),_:1}),t.config.type==="work"?(i.openBlock(),i.createBlock(W,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.workId,"onUpdate:modelValue":A[1]||(A[1]=k=>t.config.workId=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="odd"?(i.openBlock(),i.createBlock(W,{key:1,label:"选择多条数据节点"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[2]||(A[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:N},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",h3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",g3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(W,{label:"选择获取对象"},{default:i.withCtx(()=>[A[16]||(A[16]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(U,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":A[3]||(A[3]=k=>t.config.selectNodeId=k),filterable:"",onChange:C},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",m3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",y3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(W,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[A[17]||(A[17]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(U,{modelValue:t.config.linkField,"onUpdate:modelValue":A[4]||(A[4]=k=>t.config.linkField=k),filterable:"",onChange:S},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="Related"||k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(R,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",v3e,[A[21]||(A[21]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),A[22]||(A[22]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",b3e,[i.createElementVNode("div",w3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",_3e,[B===0?(i.openBlock(),i.createBlock(U,{key:0,modelValue:f.value,"onUpdate:modelValue":A[5]||(A[5]=L=>f.value=L),onChange:h},{default:i.withCtx(()=>[i.createVNode(R,{label:"且",value:"and"}),i.createVNode(R,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",C3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",E3e,[i.createElementVNode("div",k3e,[i.createElementVNode("div",x3e,[i.createElementVNode("span",N3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(U,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(R,{label:"等于",value:10}),i.createVNode(R,{label:"不等于",value:110}),i.createVNode(R,{label:"大于",value:20}),i.createVNode(R,{label:"大于等于",value:21}),i.createVNode(R,{label:"小于",value:30}),i.createVNode(R,{label:"小于等于",value:31}),i.createVNode(R,{label:"多词匹配",value:40}),i.createVNode(R,{label:"包含",value:50}),i.createVNode(R,{label:"不包含",value:150}),i.createVNode(R,{label:"区间",value:80}),i.createVNode(R,{label:"为空",value:90}),i.createVNode(R,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(I,{class:"close-icon",onClick:L=>v(B)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])]),i.createElementVNode("span",S3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",D3e,[i.createElementVNode("div",B3e,[i.createElementVNode("div",A3e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),A[18]||(A[18]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),A[19]||(A[19]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",O3e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(I,{onClick:L=>m(k)},{default:i.withCtx(()=>[i.createVNode(Q)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(U,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(R,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(x.$slots,"action",{item:k,varList:c.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",V3e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>A[20]||(A[20]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",F3e,[i.createVNode(T,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":A[6]||(A[6]=k=>u.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",T3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:L=>p(k)},[i.createElementVNode("span",j3e," ["+i.toDisplayString(i.unref(ti)(((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)||k.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(k.columnComment),1)],8,P3e)}),128))])]),_:1})])])]),i.createVNode(W,{label:"排序规则"},{default:i.withCtx(()=>[A[23]||(A[23]=i.createElementVNode("span",{class:"remark"}," 当查找到多个数据时,将按照以下排序规则获得第一条数据。如果未设置规则,按照字段配置的排序规则返回第一条数据 ",-1)),i.createElementVNode("div",I3e,[i.createVNode(U,{modelValue:t.config.order,"onUpdate:modelValue":A[7]||(A[7]=k=>t.config.order=k),filterable:"",style:{"margin-right":"20px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(R,{key:B,label:k.columnComment,value:k.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(U,{modelValue:t.config.sort,"onUpdate:modelValue":A[8]||(A[8]=k=>t.config.sort=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(R,{label:"升序",value:"asc"}),i.createVNode(R,{label:"降序",value:"desc"})]),_:1},8,["modelValue"])])]),_:1}),i.createVNode(W,{label:"未获取到数据时"},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:t.config.way,"onUpdate:modelValue":A[9]||(A[9]=k=>t.config.way=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"go",style:{width:"100%"}},{default:i.withCtx(()=>A[24]||(A[24]=[i.createTextVNode("继续执行")])),_:1}),A[26]||(A[26]=i.createElementVNode("div",{class:"raido-txt"}," 之后节点在使用本节点对象或数据时将跳过执行 ",-1)),i.createVNode(P,{value:"aborted"},{default:i.withCtx(()=>A[25]||(A[25]=[i.createTextVNode("中止流程,或继续执行查找结果分支")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-2ee02079"]])},Symbol.toStringTag,{value:"Module"})),R3e={style:{float:"left"}},M3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},z3e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(l,s,c=[]){return l.nodeId===s||(l.config.fields&&l.config.fields.length>0&&c.push(l),l.childNode&&r(l.childNode,s,c)),c}const o=i.computed(()=>{const l=[];return r(n.value.nodeConfig,t.node.nodeId,l),l});async function a(){const l=o.value.find(s=>s.nodeId===t.config.selectNodeId);l&&(t.config.workId=l.config.workId,t.config.workName=l.config.workName,t.config.selectNodeFields=xn(l.config.fields))}return(l,s)=>{const c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("el-form-item"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(d,{label:"发起审批的数据对象"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.selectNodeId=h),filterable:"",onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(h,p)=>(i.openBlock(),i.createBlock(c,{key:p,label:h.nodeName,value:h.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",R3e,i.toDisplayString(h.nodeName),1),i.createElementVNode("span",M3e,' 工作表 "'+i.toDisplayString(h.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(d,{label:"发起人"},{default:i.withCtx(()=>s[1]||(s[1]=[i.createTextVNode("触发者")])),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),U3e={style:{float:"left"}},H3e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},W3e={class:"config-detail"},q3e={class:"config-item"},G3e={class:"children-query",style:{"margin-top":"20px"}},K3e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},Y3e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},X3e={style:{flex:"1"}},Z3e={class:"flex-both"},J3e={class:"flex"},Q3e={class:"txt-label"},$3e={class:"condition-select"},e8e={key:0,class:"function-tag"},t8e={class:"box"},n8e={class:"ellipsis table-name"},r8e={class:"field-name ellipsis"},o8e={style:{margin:"20px 0"}},i8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},a8e={class:"field-list"},l8e=["onClick"],s8e={class:"field"},c8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"summaryDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Vn);function r(N,C,S=[]){if(N.nodeId===C)return S;["search","flow","add","button","table"].includes(N.nodeType)&&S.push(N);let A=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(Ft(P,C)){r(P.childNode,C,S),A=!0;break}}return!A&&N.childNode&&r(N.childNode,C,S),S}function o(N,C,S=[]){if(N.nodeId===C)return S;["search","flow","add","button","table","api","summary"].includes(N.nodeType)&&S.push(N);let A=!1;if(N.nodeType==="router"&&N.conditionNodes){for(const P of N.conditionNodes)if(Ft(P,C)){o(P.childNode,C,S),A=!0;break}}return!A&&N.childNode&&o(N.childNode,C,S),S}const a=i.computed(()=>{const N=[];return r(n.value.nodeConfig,t.node.nodeId,N),N}),l=i.ref(""),s=i.computed(()=>{var C,S;const N=l.value.trim().toLowerCase();return(S=(C=t.config)==null?void 0:C.fields)==null?void 0:S.filter(x=>[x.columnName,x.columnComment].some(A=>String(A||"").toLowerCase().includes(N)))}),c=i.ref("and");function u(){t.config.filter.forEach(N=>{N.join=c.value})}function d(N){N.join=c.value,N.compare=10,t.config.filter.push({...N})}function f(N){t.config.filter.splice(N,1)}function h(N){N.nodeId="",N.nodeName="",N.fieldValue=void 0,N.fieldValueName=""}const p=i.ref(),v=i.inject(Rs),m=i.inject(Qn);async function g(){p.value=await v(null)}g();const b=i.computed(()=>{const N=[];return N.push(Jr.defaultNode),o(n.value.nodeConfig,t.node.nodeId,N),N}),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 N=a.value.find(C=>C.nodeId===t.config.selectNodeId);N&&(t.config.selectNodeFields=xn(N.config.fields))}async function _(N){const C=await m(N);t.config.fields=C==null?void 0:C.fieldList,t.config.workName=C==null?void 0:C.workName}async function E(){const N=t.config.selectNodeFields.find(C=>C.columnName===t.config.linkField);if(N){const C=await m(N.fieldAttr.workId);t.config.fields=C.fieldList,t.config.workName=C.workName,t.config.workId=C.workId,t.config.order="update_time"}}return(N,C)=>{const S=i.resolveComponent("el-radio"),x=i.resolveComponent("el-radio-group"),A=i.resolveComponent("el-form-item"),P=i.resolveComponent("el-option"),j=i.resolveComponent("el-select"),W=i.resolveComponent("Close"),R=i.resolveComponent("el-icon"),U=i.resolveComponent("el-input"),Q=i.resolveComponent("el-button"),I=i.resolveComponent("el-popover"),T=i.resolveComponent("el-divider"),J=i.resolveComponent("el-col"),oe=i.resolveComponent("el-row"),O=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[C[24]||(C[24]=i.createElementVNode("div",{class:"header"}," 您获取的多条数据可供本流程的数据处理节点或子流程节点使用。被数据处理节点(新增、更新、删除)使用,最多支持100条。被子流程节点使用,最多支持1万条。 ",-1)),i.createVNode(O,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(A,{label:"选择获取方式"},{default:i.withCtx(()=>[i.createVNode(x,{modelValue:e.config.type,"onUpdate:modelValue":C[0]||(C[0]=k=>e.config.type=k),onChange:y},{default:i.withCtx(()=>[i.createVNode(S,{value:"work",style:{width:"100%"}},{default:i.withCtx(()=>C[9]||(C[9]=[i.createTextVNode("从工作表进行汇总")])),_:1}),C[11]||(C[11]=i.createElementVNode("div",{class:"raido-txt"},"获取工作表记录",-1)),i.createVNode(S,{value:"link",style:{width:"100%"}},{default:i.withCtx(()=>C[10]||(C[10]=[i.createTextVNode("获取关联子表记录")])),_:1}),C[12]||(C[12]=i.createElementVNode("div",{class:"raido-txt"},"获取关联子表记录",-1))]),_:1},8,["modelValue"])]),_:1}),e.config.type==="work"?(i.openBlock(),i.createBlock(A,{key:0,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:t.config.workId,"onUpdate:modelValue":C[1]||(C[1]=k=>t.config.workId=k),filterable:"",onChange:_},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.workName,value:k.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),e.config.type==="link"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(A,{label:"选择获取对象"},{default:i.withCtx(()=>[C[13]||(C[13]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(j,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":C[2]||(C[2]=k=>t.config.selectNodeId=k),filterable:"",onChange:w},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,label:k.nodeName,value:k.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",U3e,i.toDisplayString(k.nodeName),1),i.createElementVNode("span",H3e,' 工作表 "'+i.toDisplayString(k.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(A,{label:"选择关联类型的字段"},{default:i.withCtx(()=>[C[14]||(C[14]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createVNode(j,{modelValue:t.config.linkField,"onUpdate:modelValue":C[3]||(C[3]=k=>t.config.linkField=k),filterable:"",onChange:E},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.selectNodeFields,(k,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:B},[k.htmlType==="SubTable"?(i.openBlock(),i.createBlock(P,{key:0,label:k.columnComment,value:k.columnName},null,8,["label","value"])):i.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})],64)):i.createCommentVNode("",!0),i.createElementVNode("div",W3e,[C[18]||(C[18]=i.createElementVNode("div",{class:"item-label"},"筛选条件",-1)),C[19]||(C[19]=i.createElementVNode("span",{class:"remark"},"系统将输出此字段中所关联的第一条记录,供流程中其他节点使用",-1)),i.createElementVNode("div",q3e,[i.createElementVNode("div",G3e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",K3e,[B===0?(i.openBlock(),i.createBlock(j,{key:0,modelValue:c.value,"onUpdate:modelValue":C[4]||(C[4]=L=>c.value=L),onChange:u},{default:i.withCtx(()=>[i.createVNode(P,{label:"且",value:"and"}),i.createVNode(P,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",Y3e,i.toDisplayString(k.join==="and"?"且":"或"),1))]),i.createElementVNode("div",X3e,[i.createElementVNode("div",Z3e,[i.createElementVNode("div",J3e,[i.createElementVNode("span",Q3e,i.toDisplayString(k.columnComment),1),i.createElementVNode("span",null,[i.createVNode(j,{modelValue:k.compare,"onUpdate:modelValue":L=>k.compare=L,style:{"min-width":"100px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(P,{label:"等于",value:10}),i.createVNode(P,{label:"不等于",value:110}),i.createVNode(P,{label:"大于",value:20}),i.createVNode(P,{label:"大于等于",value:21}),i.createVNode(P,{label:"小于",value:30}),i.createVNode(P,{label:"小于等于",value:31}),i.createVNode(P,{label:"多词匹配",value:40}),i.createVNode(P,{label:"包含",value:50}),i.createVNode(P,{label:"不包含",value:150}),i.createVNode(P,{label:"区间",value:80}),i.createVNode(P,{label:"为空",value:90}),i.createVNode(P,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(R,{class:"close-icon",onClick:L=>f(B)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])]),i.createElementVNode("span",$3e,[k.nodeId?(i.openBlock(),i.createElementBlock("div",e8e,[i.createElementVNode("div",t8e,[i.createElementVNode("div",n8e,[i.createElementVNode("span",null,i.toDisplayString(k.nodeName),1),C[15]||(C[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),C[16]||(C[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",r8e,i.toDisplayString(k.fieldValueName),1)]),i.createVNode(R,{onClick:L=>h(k)},{default:i.withCtx(()=>[i.createVNode(W)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)?(i.openBlock(),i.createBlock(j,{key:0,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.fieldAttr.enum,(L,F)=>(i.openBlock(),i.createBlock(P,{key:F,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(U,{key:1,modelValue:k.fieldValue,"onUpdate:modelValue":L=>k.fieldValue=L,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(N.$slots,"action",{item:k,varList:b.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",o8e,[i.createVNode(I,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(Q,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>C[17]||(C[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",i8e,[i.createVNode(U,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:l.value,"onUpdate:modelValue":C[5]||(C[5]=k=>l.value=k)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",a8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(k,B)=>{var V;return i.openBlock(),i.createElementBlock("div",{key:B,class:"field-item",onClick:L=>d(k)},[i.createElementVNode("span",s8e," ["+i.toDisplayString(i.unref(ti)(((V=k==null?void 0:k.fieldAttr)==null?void 0:V.type)||k.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(k.columnComment),1)],8,l8e)}),128))])]),_:1})])])]),i.createVNode(A,{label:"汇总方式"},{default:i.withCtx(()=>[i.createVNode(oe,{style:{width:"100%",display:"flex","justify-content":"space-between"}},{default:i.withCtx(()=>[i.createVNode(J,{span:11},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:e.config.summary,"onUpdate:modelValue":C[6]||(C[6]=k=>e.config.summary=k),filterable:""},{default:i.withCtx(()=>[i.createVNode(P,{value:"count(*)",label:"记录数量"}),i.createVNode(T,{style:{margin:"2px 0"}}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(k,B)=>(i.openBlock(),i.createBlock(P,{key:B,value:k.columnName,label:k.columnComment},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.config.summary!=="count(*)"?(i.openBlock(),i.createBlock(J,{key:0,span:11},{default:i.withCtx(()=>[i.createVNode(j,{modelValue:e.config.fun,"onUpdate:modelValue":C[7]||(C[7]=k=>e.config.fun=k)},{default:i.withCtx(()=>[i.createVNode(P,{value:"notnull",label:"已填计数"}),i.createVNode(P,{value:"null",label:"未填计数"}),i.createVNode(P,{value:"sum",label:"求和"}),i.createVNode(P,{value:"avg",label:"平均值"}),i.createVNode(P,{value:"max",label:"最大值"}),i.createVNode(P,{value:"min",label:"最小值"})]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]),_:1})]),_:1}),i.createVNode(A,{label:"获取方式"},{default:i.withCtx(()=>[i.createVNode(x,{modelValue:e.config.way,"onUpdate:modelValue":C[8]||(C[8]=k=>e.config.way=k)},{default:i.withCtx(()=>[i.createVNode(S,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>C[20]||(C[20]=[i.createTextVNode("直接获取")])),_:1}),C[22]||(C[22]=i.createElementVNode("div",{class:"raido-txt"}," 执行到本节点时获取,并保存当时的数据供流程中的其他节点使用 ",-1)),i.createVNode(S,{value:"get",style:{width:"100%"}},{default:i.withCtx(()=>C[21]||(C[21]=[i.createTextVNode("每次使用时动态获取")])),_:1}),C[23]||(C[23]=i.createElementVNode("div",{class:"raido-txt"}," 每次其他节点使用到本节点数据时,重新获取最新的数据 ",-1))]),_:1},8,["modelValue"])]),_:1})]),_:3},8,["model"])])}}}),[["__scopeId","data-v-2e5c5d78"]])},Symbol.toStringTag,{value:"Module"})),u8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"systemDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[s[1]||(s[1]=i.createElementVNode("span",{class:"remark"},"将通过系统消息发送",-1)),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-3d5b6cc6"]])},Symbol.toStringTag,{value:"Module"})),d8e={key:0,class:"raido-txt"},f8e={key:1,class:"raido-txt"},p8e={class:"config-detail"},h8e={class:"config-item"},g8e={class:"children-query",style:{"margin-top":"20px"}},m8e={style:{width:"60px","margin-top":"4px","margin-right":"8px"}},y8e={key:1,style:{padding:"4px 12px","font-size":"14px",color:"#606266"}},v8e={style:{flex:"1"}},b8e={class:"flex-both"},w8e={class:"flex"},_8e={class:"txt-label"},C8e={class:"condition-select"},E8e={key:0,class:"function-tag"},k8e={class:"box"},x8e={class:"ellipsis table-name"},N8e={class:"field-name ellipsis"},S8e={style:{margin:"20px 0"}},D8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},B8e={class:"field-list"},A8e=["onClick"],O8e={class:"field"},V8e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.inject(Rs),o=i.inject(Qn);async function a(){n.value=await r(null)}a();async function l(m){const g=await o(m);t.config.fields=g==null?void 0:g.fieldList,t.config.workName=g==null?void 0:g.workName}const s=i.computed(()=>{const m=[];return m.push(Jr.defaultNode),m.push(t.node),m}),c=i.ref(""),u=i.computed(()=>{var g,b;const m=c.value.trim().toLowerCase();return(b=(g=t.config)==null?void 0:g.fields)==null?void 0:b.filter(y=>[y.columnName,y.columnComment].some(w=>String(w||"").toLowerCase().includes(m)))}),d=i.ref("and");function f(){t.config.filter.forEach(m=>{m.join=d.value})}function h(m){m.join=d.value,m.compare=10,t.config.filter.push({...m})}function p(m){t.config.filter.splice(m,1)}function v(m){m.nodeId="",m.nodeName="",m.fieldValue=void 0,m.fieldValueName=""}return(m,g)=>{const b=i.resolveComponent("el-option"),y=i.resolveComponent("el-select"),w=i.resolveComponent("el-form-item"),_=i.resolveComponent("el-radio"),E=i.resolveComponent("el-radio-group"),N=i.resolveComponent("Close"),C=i.resolveComponent("el-icon"),S=i.resolveComponent("el-input"),x=i.resolveComponent("el-button"),A=i.resolveComponent("el-popover"),P=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(P,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(w,{label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:t.config.workId,"onUpdate:modelValue":g[0]||(g[0]=j=>t.config.workId=j),filterable:"",onChange:l},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(j,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:j.workName,value:j.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(w,{label:"触发方式"},{default:i.withCtx(()=>[i.createVNode(E,{modelValue:e.config.type,"onUpdate:modelValue":g[3]||(g[3]=j=>e.config.type=j)},{default:i.withCtx(()=>[i.createVNode(_,{value:"save",style:{width:"100%"}},{default:i.withCtx(()=>g[6]||(g[6]=[i.createTextVNode(" 当新增或更新记录时 ")])),_:1}),e.config.type==="save"?(i.openBlock(),i.createElementBlock("div",d8e,[g[7]||(g[7]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[1]||(g[1]=j=>t.config.assignField=j),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(j,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:j.columnComment,value:j.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[8]||(g[8]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"add",style:{width:"100%"}},{default:i.withCtx(()=>g[9]||(g[9]=[i.createTextVNode("仅新增记录时")])),_:1}),g[14]||(g[14]=i.createElementVNode("div",{class:"raido-txt"},"当新增记录时触发流程",-1)),i.createVNode(_,{value:"edit",style:{width:"100%"}},{default:i.withCtx(()=>g[10]||(g[10]=[i.createTextVNode("仅更新记录时")])),_:1}),e.config.type==="edit"?(i.openBlock(),i.createElementBlock("div",f8e,[g[11]||(g[11]=i.createTextVNode(" 选择触发字段 ")),i.createVNode(y,{modelValue:t.config.assignField,"onUpdate:modelValue":g[2]||(g[2]=j=>t.config.assignField=j),multiple:"",filterable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(j,W)=>(i.openBlock(),i.createBlock(b,{key:W,label:j.columnComment,value:j.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),g[12]||(g[12]=i.createTextVNode(" 当以上指定的其中一个字段更新时将触发流程,如未指定则表示任何字段更新时都会触发 "))])):i.createCommentVNode("",!0),i.createVNode(_,{value:"del",style:{width:"100%"}},{default:i.withCtx(()=>g[13]||(g[13]=[i.createTextVNode("删除记录时")])),_:1})]),_:1},8,["modelValue"])]),_:1}),i.createElementVNode("div",p8e,[g[18]||(g[18]=i.createElementVNode("div",{class:"item-label"},"触发条件",-1)),g[19]||(g[19]=i.createElementVNode("span",{class:"remark"},"设置筛选条件,仅使满足条件的记录进入流程。",-1)),i.createElementVNode("div",h8e,[i.createElementVNode("div",g8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.filter,(j,W)=>{var R;return i.openBlock(),i.createElementBlock("div",{key:W,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},[i.createElementVNode("span",m8e,[W===0?(i.openBlock(),i.createBlock(y,{key:0,modelValue:d.value,"onUpdate:modelValue":g[4]||(g[4]=U=>d.value=U),onChange:f},{default:i.withCtx(()=>[i.createVNode(b,{label:"且",value:"and"}),i.createVNode(b,{label:"或",value:"or"})]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock("span",y8e,i.toDisplayString(j.join==="and"?"且":"或"),1))]),i.createElementVNode("div",v8e,[i.createElementVNode("div",b8e,[i.createElementVNode("div",w8e,[i.createElementVNode("span",_8e,i.toDisplayString(j.columnComment),1),i.createElementVNode("span",null,[i.createVNode(y,{modelValue:j.compare,"onUpdate:modelValue":U=>j.compare=U,style:{"min-width":"60px"},size:"small",class:"config-type"},{default:i.withCtx(()=>[i.createVNode(b,{label:"等于",value:10}),i.createVNode(b,{label:"不等于",value:110}),i.createVNode(b,{label:"大于",value:20}),i.createVNode(b,{label:"大于等于",value:21}),i.createVNode(b,{label:"小于",value:30}),i.createVNode(b,{label:"小于等于",value:31}),i.createVNode(b,{label:"包含",value:50}),i.createVNode(b,{label:"不包含",value:150}),i.createVNode(b,{label:"区间",value:80}),i.createVNode(b,{label:"为空",value:90}),i.createVNode(b,{label:"非空",value:190})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),i.createVNode(C,{class:"close-icon",onClick:U=>p(W)},{default:i.withCtx(()=>[i.createVNode(N)]),_:2},1032,["onClick"])]),i.createElementVNode("span",C8e,[j.nodeId?(i.openBlock(),i.createElementBlock("div",E8e,[i.createElementVNode("div",k8e,[i.createElementVNode("div",x8e,[i.createElementVNode("span",null,i.toDisplayString(j.nodeName),1),g[15]||(g[15]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),g[16]||(g[16]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",N8e,i.toDisplayString(j.fieldValueName),1)]),i.createVNode(C,{onClick:U=>v(j)},{default:i.withCtx(()=>[i.createVNode(N)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((R=j==null?void 0:j.fieldAttr)==null?void 0:R.type)?(i.openBlock(),i.createBlock(y,{key:0,modelValue:j.fieldValue,"onUpdate:modelValue":U=>j.fieldValue=U,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(j.fieldAttr.enum,(U,Q)=>(i.openBlock(),i.createBlock(b,{key:Q,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(S,{key:1,modelValue:j.fieldValue,"onUpdate:modelValue":U=>j.fieldValue=U,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(m.$slots,"action",{item:j,varList:s.value},void 0,!0)])])])}),128))]),i.createElementVNode("div",S8e,[i.createVNode(A,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(x,{icon:i.unref(Br),text:""},{default:i.withCtx(()=>g[17]||(g[17]=[i.createTextVNode("设置筛选条件")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",D8e,[i.createVNode(S,{"prefix-icon":i.unref(Vi),placeholder:"搜索字段",modelValue:c.value,"onUpdate:modelValue":g[5]||(g[5]=j=>c.value=j)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",B8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(j,W)=>{var R;return i.openBlock(),i.createElementBlock("div",{key:W,class:"field-item",onClick:U=>h(j)},[i.createElementVNode("span",O8e," ["+i.toDisplayString(i.unref(ti)(((R=j==null?void 0:j.fieldAttr)==null?void 0:R.type)||j.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(j.columnComment),1)],8,A8e)}),128))])]),_:1})])])])]),_:3},8,["model"])])}}}),[["__scopeId","data-v-f96974e3"]])},Symbol.toStringTag,{value:"Module"})),F8e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e;return(n,r)=>{const o=i.resolveComponent("el-date-picker"),a=i.resolveComponent("el-form-item"),l=i.resolveComponent("el-option"),s=i.resolveComponent("el-select"),c=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(c,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(a,{label:"开始执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.start,"onUpdate:modelValue":r[0]||(r[0]=u=>t.config.start=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"结束执行时间"},{default:i.withCtx(()=>[i.createVNode(o,{modelValue:t.config.end,"onUpdate:modelValue":r[1]||(r[1]=u=>t.config.end=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),i.createVNode(a,{label:"循环"},{default:i.withCtx(()=>[i.createVNode(s,{modelValue:t.config.loop,"onUpdate:modelValue":r[2]||(r[2]=u=>t.config.loop=u)},{default:i.withCtx(()=>[i.createVNode(l,{label:"每小时",value:"hour"}),i.createVNode(l,{label:"每天",value:"day"}),i.createVNode(l,{label:"每周",value:"week"}),i.createVNode(l,{label:"每月",value:"month"}),i.createVNode(l,{label:"每年",value:"year"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}})},Symbol.toStringTag,{value:"Module"})),T8e={style:{float:"left"}},P8e={style:{float:"right","font-size":"13px",color:"var(--el-text-color-secondary)"}},j8e={key:0,class:"no-work"},I8e={key:1,class:"config-detail"},L8e={class:"config-item"},R8e={class:"children-query",style:{"margin-top":"20px"}},M8e={key:0,style:{display:"flex","margin-bottom":"20px",cursor:"pointer"}},z8e={style:{flex:"1"}},U8e={class:"flex-both"},H8e={class:"flex"},W8e={class:"txt-label"},q8e={class:"condition-select"},G8e={key:0,class:"function-tag"},K8e={class:"box"},Y8e={class:"ellipsis table-name"},X8e={class:"field-name ellipsis"},Z8e={style:{margin:"20px 0"}},J8e={class:"f-ipt",style:{padding:"10px 0","margin-bottom":"10px","border-bottom":"1px solid #eeeeee"}},Q8e={class:"field-list"},$8e=["onClick"],e6e={class:"field"},t6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"uiDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.ref(),r=i.ref(),o=i.ref(),a=i.ref(),l=i.inject(Rs),s=i.inject(bG),c=i.inject(Qn),u=i.ref(""),d=i.computed(()=>{var S;const C=u.value.trim().toLowerCase();return(S=o.value)==null?void 0:S.filter(x=>[x.columnName,x.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,o.value=C==null?void 0:C.fieldList}}f();async function h(C){const S=await c(C);t.config.workName=S==null?void 0:S.workName,t.config.viewId="",t.config.fields=[],r.value=S==null?void 0:S.viewList,o.value=S==null?void 0:S.fieldList}async function p(C){if(t.config.workName="",t.config.workId="",t.config.type==="drag"&&!a.value){const S=await s(C);a.value=S}}function v(){var S;const C=(S=a.value)==null?void 0:S.find(x=>x.workId===t.config.workId);t.config.workName=C==null?void 0:C.workName}async function m(){const C=y.value.find(S=>S.nodeId===t.config.selectNodeId);C&&(t.config.workId=C.config.workId,t.config.workName=C.config.workName)}const g=i.inject(Vn);function b(C,S,x=[]){if(C.nodeId===S)return x;["search","add","button","table","api","summary"].includes(C.nodeType)&&x.push(C);let P=!1;if(C.nodeType==="router"&&C.conditionNodes){for(const j of C.conditionNodes)if(Ft(j,S)){b(j.childNode,S,x),P=!0;break}}return!P&&C.childNode&&b(C.childNode,S,x),x}const y=i.computed(()=>{const C=[];return b(g.value.nodeConfig,t.node.nodeId,C),C}),w=i.computed(()=>{const C=[];return C.push(Jr.defaultNode),b(g.value.nodeConfig,t.node.nodeId,C),C});function _(C){t.config.fields.push({...C})}function E(C){t.config.fields.splice(C,1)}function N(C){C.nodeId="",C.nodeName="",C.fieldValue=void 0,C.fieldValueName=""}return(C,S)=>{const x=i.resolveComponent("el-option"),A=i.resolveComponent("el-select"),P=i.resolveComponent("el-form-item"),j=i.resolveComponent("el-radio"),W=i.resolveComponent("el-radio-group"),R=i.resolveComponent("el-form"),U=i.resolveComponent("InfoFilled"),Q=i.resolveComponent("el-icon"),I=i.resolveComponent("Close"),T=i.resolveComponent("el-input"),J=i.resolveComponent("el-button"),oe=i.resolveComponent("el-popover");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(R,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(P,{label:"推送内容"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.type,"onUpdate:modelValue":S[0]||(S[0]=O=>t.config.type=O),filterable:"",onChange:p},{default:i.withCtx(()=>[i.createVNode(x,{label:"打开记录创建层",value:"form"}),i.createVNode(x,{label:"打开记录详情页",value:"info"}),i.createVNode(x,{label:"打开工作表视图",value:"view"}),i.createVNode(x,{label:"打开自定义页面",value:"drag"})]),_:1},8,["modelValue"])]),_:1}),e.config.type==="info"?(i.openBlock(),i.createBlock(P,{key:0,label:"选择记录"},{default:i.withCtx(()=>[S[7]||(S[7]=i.createElementVNode("span",{class:"remark"},"当前流程中的节点对象",-1)),i.createVNode(A,{modelValue:t.config.selectNodeId,"onUpdate:modelValue":S[1]||(S[1]=O=>t.config.selectNodeId=O),filterable:"",clearable:"",onChange:m},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.nodeName,value:O.nodeId},{default:i.withCtx(()=>[i.createElementVNode("span",T8e,i.toDisplayString(O.nodeName),1),i.createElementVNode("span",P8e,' 工作表 "'+i.toDisplayString(O.config.workName)+'" ',1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.config.type==="drag"?(i.openBlock(),i.createBlock(P,{key:1,label:"选择自定义页面"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":S[2]||(S[2]=O=>t.config.workId=O),filterable:"",clearable:"",onChange:v},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.workName,value:O.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):(i.openBlock(),i.createBlock(P,{key:2,label:"选择工作表"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.workId,"onUpdate:modelValue":S[3]||(S[3]=O=>t.config.workId=O),filterable:"",clearable:"",onChange:h},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.workName,value:O.workId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),e.config.type==="view"?(i.openBlock(),i.createBlock(P,{key:3,label:"选择视图"},{default:i.withCtx(()=>[i.createVNode(A,{modelValue:t.config.viewId,"onUpdate:modelValue":S[4]||(S[4]=O=>t.config.viewId=O),filterable:"",clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(O,k)=>(i.openBlock(),i.createBlock(x,{key:k,label:O.viewName,value:O.viewId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),i.createVNode(P,{label:"打开方式"},{default:i.withCtx(()=>[i.createVNode(W,{modelValue:t.config.open,"onUpdate:modelValue":S[5]||(S[5]=O=>t.config.open=O)},{default:i.withCtx(()=>[i.createVNode(j,{value:"popup"},{default:i.withCtx(()=>S[8]||(S[8]=[i.createTextVNode("弹窗")])),_:1}),i.createVNode(j,{value:"page"},{default:i.withCtx(()=>S[9]||(S[9]=[i.createTextVNode("打开新页面")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.config.type==="form"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[S[14]||(S[14]=i.createElementVNode("div",{class:"title"},"设置字段",-1)),t.config.workId?(i.openBlock(),i.createElementBlock("div",I8e,[i.createElementVNode("div",L8e,[i.createElementVNode("div",R8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.fields,(O,k)=>{var B;return i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[O.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",M8e,[i.createElementVNode("div",z8e,[i.createElementVNode("div",U8e,[i.createElementVNode("div",H8e,[i.createElementVNode("span",W8e,i.toDisplayString(O.columnComment),1)]),i.createVNode(Q,{class:"close-icon",onClick:V=>E(k)},{default:i.withCtx(()=>[i.createVNode(I)]),_:2},1032,["onClick"])]),i.createElementVNode("span",q8e,[O.nodeId?(i.openBlock(),i.createElementBlock("div",G8e,[i.createElementVNode("div",K8e,[i.createElementVNode("div",Y8e,[i.createElementVNode("span",null,i.toDisplayString(O.nodeName),1),S[11]||(S[11]=i.createElementVNode("div",{class:"arrow arrow-top"},null,-1)),S[12]||(S[12]=i.createElementVNode("div",{class:"arrow arrow-bottom"},null,-1))]),i.createElementVNode("div",X8e,i.toDisplayString(O.fieldValueName),1)]),i.createVNode(Q,{onClick:V=>N(O)},{default:i.withCtx(()=>[i.createVNode(I)]),_:2},1032,["onClick"])])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[["Radio","Checkbox","Select"].includes((B=O==null?void 0:O.fieldAttr)==null?void 0:B.type)?(i.openBlock(),i.createBlock(A,{key:0,modelValue:O.fieldValue,"onUpdate:modelValue":V=>O.fieldValue=V,clearable:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.fieldAttr.enum,(V,L)=>(i.openBlock(),i.createBlock(x,{key:L,label:V.label,value:V.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(i.openBlock(),i.createBlock(T,{key:1,modelValue:O.fieldValue,"onUpdate:modelValue":V=>O.fieldValue=V,clearable:""},null,8,["modelValue","onUpdate:modelValue"]))],64)),i.renderSlot(C.$slots,"action",{item:O,varList:w.value},void 0,!0)])])])):i.createCommentVNode("",!0)],64)}),128))]),i.createElementVNode("div",Z8e,[i.createVNode(oe,{trigger:"click",width:220},{reference:i.withCtx(()=>[i.createVNode(J,{icon:C.Plus,text:""},{default:i.withCtx(()=>S[13]||(S[13]=[i.createTextVNode("添加字段")])),_:1},8,["icon"])]),default:i.withCtx(()=>[i.createElementVNode("div",J8e,[i.createVNode(T,{"prefix-icon":C.Search,placeholder:"搜索字段",modelValue:u.value,"onUpdate:modelValue":S[6]||(S[6]=O=>u.value=O)},null,8,["prefix-icon","modelValue"])]),i.createElementVNode("div",Q8e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(O,k)=>{var B;return i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[O.isSys!=="1"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"field-item",onClick:V=>_(O)},[i.createElementVNode("span",e6e," ["+i.toDisplayString(i.unref(ti)(((B=O==null?void 0:O.fieldAttr)==null?void 0:B.type)||O.htmlType))+"] ",1),i.createTextVNode(" "+i.toDisplayString(O.columnComment),1)],8,$8e)):i.createCommentVNode("",!0)],64)}),128))])]),_:1})])])])):(i.openBlock(),i.createElementBlock("div",j8e,[i.createVNode(Q,{size:"17"},{default:i.withCtx(()=>[i.createVNode(U)]),_:1}),S[10]||(S[10]=i.createElementVNode("div",{class:"ml"},"必须先选择一个工作表后,才能设置可执行的动作",-1))]))],64)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c793f167"]])},Symbol.toStringTag,{value:"Module"})),n6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"wechatDrawer",props:{node:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject("showUser");function r(){n()}const o=i.inject("getUserIds");i.watch(o,l=>{l&&l.length>0&&(t.config.accounts=[...t.config.accounts,...l])});function a(l,s){l.splice(s,1)}return(l,s)=>{const c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-tag"),d=i.resolveComponent("el-button"),f=i.resolveComponent("el-form");return i.openBlock(),i.createElementBlock("div",null,[s[1]||(s[1]=i.createElementVNode("div",{class:"header"}," 发送服务号消息是指向已关注公众号的微信用户发送模版消息。发送对象支持使用人员字段(通过微信授权注册的外部门户用户)或文本字段(存储微信公众号openid)。使用微信公众号模板消息需要组织后台绑定已认证的企业服务号,并在微信公众号后台开通“模板消息”功能。 ",-1)),i.createVNode(f,{model:t.config,labelPosition:"top"},{default:i.withCtx(()=>[i.createVNode(c,{label:"通知内容"},{default:i.withCtx(()=>[i.createVNode(i.unref(tb),{modelValue:t.config.conent,"onUpdate:modelValue":s[0]||(s[0]=h=>t.config.conent=h),height:"350px"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"通知人"},{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.config.accounts,(h,p)=>(i.openBlock(),i.createBlock(u,{key:p,effect:"light",round:"",type:"info",class:"mr",onClose:v=>a(e.config.accounts,p),closable:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.nickName),1)]),_:2},1032,["onClose"]))),128)),i.createVNode(d,{icon:i.unref(Br),circle:"",size:"small",onClick:r},null,8,["icon"])])]),_:1})]),_:1},8,["model"])])}}}),[["__scopeId","data-v-46fa206d"]])},Symbol.toStringTag,{value:"Module"})),r6e={key:0,class:"node-title"},o6e={key:1,class:"no-set"},i6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"addNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);if(r.set(t.node.config.workId,a),t.node.config.workName=a.workName,a.fieldList){const l=new Map(t.node.config.fields.map(s=>[s.columnName,s]));t.node.config.fields=a.fieldList.reduce((s,c)=>{const u=l.get(c.columnName);return u?s.push({...u,...c}):s.push(c),s},[])}}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",r6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",o6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),a6e={key:0},l6e={key:1,class:"no-set"},s6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"apiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.callApi.controlName,message:"请选择集成API"})),(r,o)=>t.node.config.callApi.controlName?(i.openBlock(),i.createElementBlock("div",a6e," 调用API:"+i.toDisplayString(t.node.config.callApi.controlName),1)):(i.openBlock(),i.createElementBlock("div",l6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),c6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"approverNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&t.node.config.selectNodeId&&t.node.config.workId,message:"请选择审批人或发起审批数据对象不能为空"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 审批人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode("连续多级主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),u6e={class:"ep-node-router"},d6e={key:0,class:"ep-condition-node-add"},f6e={class:"ep-node-router-box"},p6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"branchNode",props:{isView:{type:Boolean,default:()=>!1},node:{type:Object,default:()=>({})}},emits:["removeNode"],setup(e,{emit:t}){const n=e;i.onMounted(async()=>{});const r=t,o=l=>{n.node.conditionNodes.length>2?n.node.conditionNodes.splice(l,1):r("removeNode")},a=()=>{const l=xn($e[ei].defaultNode),s=n.node.conditionNodes.length;n.node.conditionNodes.splice(s-1,0,l)};return(l,s)=>{var c;return i.openBlock(),i.createElementBlock("div",u6e,[(c=n.node)!=null&&c.isBanch?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",d6e,"判断条件"))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.isView?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"ep-condition-node-add",onClick:a}," 添加条件 "))],64)),i.createElementVNode("div",f6e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.node.conditionNodes,(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:"ep-node-router-col",key:d},[i.createVNode(Eb,{"is-view":n.isView,node:u,conditionNodes:n.node.conditionNodes,conditionIndex:d,onRemoveNode:f=>o(d)},null,8,["is-view","node","conditionNodes","conditionIndex","onRemoveNode"]),d==0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[s[0]||(s[0]=i.createElementVNode("div",{class:"cover-line top-left-cover-line"},null,-1)),s[1]||(s[1]=i.createElementVNode("div",{class:"cover-line bottom-left-cover-line"},null,-1))],64)):i.createCommentVNode("",!0),d==n.node.conditionNodes.length-1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[s[2]||(s[2]=i.createElementVNode("div",{class:"cover-line top-right-cover-line"},null,-1)),s[3]||(s[3]=i.createElementVNode("div",{class:"cover-line bottom-right-cover-line"},null,-1))],64)):i.createCommentVNode("",!0)]))),128))]),i.createVNode(Xh,{node:n.node,"is-view":n.isView},null,8,["node","is-view"])])}}}),[["__scopeId","data-v-9fd02762"]])},Symbol.toStringTag,{value:"Module"})),h6e={key:0,class:"node-title"},g6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"buttonNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[e.node.config.buttonName?(i.openBlock(),i.createElementBlock("div",h6e,' 按钮 "'+i.toDisplayString(e.node.config.buttonName)+'" ',1)):i.createCommentVNode("",!0),n[0]||(n[0]=i.createElementVNode("div",{class:"remark"},"点击按钮后立即执行",-1))],64))}}),[["__scopeId","data-v-f5243367"]])},Symbol.toStringTag,{value:"Module"})),m6e={key:1,class:"ep-node-condition"},y6e={key:0,class:"node-title"},v6e={key:1,class:"no-set"},b6e={key:2,class:"node-title"},w6e={class:"remark"},_6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"conditionNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){var n,r;const t=e;return(r=(n=t.node)==null?void 0:n.config)!=null&&r.isBanch||i.inject(Rt).register(t.tempNodeId,()=>{var l,s;let a=!0;return t.node.isLastCondition||((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)===0&&(a=!1),{valid:a,message:"请选择条件"}}),(o,a)=>{var u,d,f,h,p,v,m,g;const l=i.resolveComponent("SuccessFilled"),s=i.resolveComponent("el-icon"),c=i.resolveComponent("CircleCloseFilled");return(d=(u=t.node)==null?void 0:u.config)!=null&&d.isBanch?(i.openBlock(),i.createElementBlock("div",{key:0,class:"branch-item",style:i.normalizeStyle((f=t.node.config)!=null&&f.isData?{color:"#01ca86"}:{color:"#f44336"})},[(h=t.node.config)!=null&&h.isData?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(l)]),_:1}),a[0]||(a[0]=i.createElementVNode("span",null,"有数据",-1))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(s,{class:"mr"},{default:i.withCtx(()=>[i.createVNode(c)]),_:1}),a[1]||(a[1]=i.createElementVNode("span",null,"无数据",-1))],64))],4)):(i.openBlock(),i.createElementBlock("div",m6e,[((v=(p=t.node.config)==null?void 0:p.filter)==null?void 0:v.length)>0?(i.openBlock(),i.createElementBlock("div",y6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):t.node.isLastCondition?(i.openBlock(),i.createElementBlock("div",b6e,"其他条件进入此流程")):(i.openBlock(),i.createElementBlock("div",v6e," 设置此节点 ")),i.createElementVNode("div",w6e,[((g=(m=t.node.config)==null?void 0:m.filter)==null?void 0:g.length)>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode("筛选"+i.toDisplayString(e.node.config.filter.length)+"个字段",1)],64)):i.createCommentVNode("",!0)])]))}}}),[["__scopeId","data-v-df26e984"]])},Symbol.toStringTag,{value:"Module"})),C6e={key:0,class:"node-title"},E6e={key:1,class:"no-set"},k6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"delNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",C6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",E6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),x6e={key:0},N6e={key:1,class:"no-set"},S6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"dingNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",x6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",N6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),D6e={key:0,class:"node-title"},B6e={key:1,class:"no-set"},A6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"editNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map;return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),i.inject(Rt).register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.fields.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",D6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",B6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),O6e={key:0},V6e={key:1,class:"no-set"},F6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"emailNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",O6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",V6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),T6e={key:0,class:"node-title"},P6e={key:1,class:"no-set"},j6e=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"flowNode",props:{tempNodeId:{type:String},isView:{type:Boolean,default:!1},node:{type:Object,default:()=>({})}},setup(e){const t=e;i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"}));function r(o){window.open(`/workflow/${o.procId}`)}return(o,a)=>{const l=i.resolveComponent("Link"),s=i.resolveComponent("el-icon");return e.node.config.procName?(i.openBlock(),i.createElementBlock("div",T6e,[i.createTextVNode(" 执行流程: "+i.toDisplayString(e.node.config.procName)+" ",1),e.node.config.procId&&!t.isView?(i.openBlock(),i.createBlock(s,{key:0,size:"18",style:{color:"#1565c0"},onClick:a[0]||(a[0]=i.withModifiers(c=>r(e.node.config),["stop"]))},{default:i.withCtx(()=>[i.createVNode(l)]),_:1})):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",P6e,"设置此节点"))}}}),[["__scopeId","data-v-15f8ce24"]])},Symbol.toStringTag,{value:"Module"})),I6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"notifyNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.handlerScope&&!!t.node.config.selectNodeId,message:"请选择抄送人和数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[o[0]||(o[0]=i.createTextVNode(" 抄送人: ")),e.node.config.handlerScope===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(e.node.config.handlers.map(a=>a.label).join(", ")),1)],64)):i.createCommentVNode("",!0),e.node.config.handlerScope===2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("部门主管")],64)):i.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),L6e={key:0,class:"node-title"},R6e={key:1,class:"no-set"},M6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"oddNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",L6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",R6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),z6e={key:0,class:"node-title"},U6e={key:1,class:"no-set"},H6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"searchNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(d=>{const f=c.fieldList.some(h=>h.columnId===d.columnId);return f||u.push(d.columnComment||`字段ID: ${d.columnId}`),f}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",z6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",U6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),W6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"startNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.selectNodeId,message:"请选择发起审批的数据对象"})),(r,o)=>(i.openBlock(),i.createElementBlock("div",null,"发起人:触发者"))}})},Symbol.toStringTag,{value:"Module"})),q6e={key:0,class:"node-title"},G6e={key:1,class:"no-set"},K6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"summaryNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);return i.onMounted(async()=>{if(t.node.config.workId){const a=await n(t.node.config.workId);r.set(t.node.config.workId,a),t.node.config.workName=a.workName}}),o.register(t.tempNodeId,()=>{var a,l,s;if(!((a=t.node.config)!=null&&a.workName))return{valid:!1,message:"请选择工作表"};if(((s=(l=t.node.config)==null?void 0:l.filter)==null?void 0:s.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const c=r.get(t.node.config.workId),u=[];if(t.node.config.filter.filter(h=>{const p=c.fieldList.some(v=>v.columnId===h.columnId);return p||u.push(h.columnComment||`字段ID: ${h.columnId}`),p}),u.length>0)return{valid:!1,message:`以下字段不存在: ${u.join(", ")}`};const{summary:d}=t.node.config;if(!d)return{valid:!1,message:"请选择汇总方式"};if(!c.fieldList.some(h=>h.columnName===d))return{valid:!1,message:`汇总字段不存在: ${d}`}}}return{valid:!0,message:"通过"}}),(a,l)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",q6e,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",G6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),Y6e={key:0},X6e={key:1,class:"no-set"},Z6e=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"systemNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",Y6e," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",X6e,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),J6e={class:"node-title"},Q6e={class:"remark"},$6e={key:1,class:"no-set"},eNe=Object.freeze(Object.defineProperty({__proto__:null,default:et(i.defineComponent({__name:"tableNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e,n=i.inject(Qn),r=new Map,o=i.inject(Rt);i.onMounted(async()=>{if(t.node.config.workId){const l=await n(t.node.config.workId);r.set(t.node.config.workId,l),t.node.config.workName=l.workName}}),o.register(t.tempNodeId,()=>{var l,s,c;if(!((l=t.node.config)!=null&&l.workName))return{valid:!1,message:"请选择工作表"};if(((c=(s=t.node.config)==null?void 0:s.filter)==null?void 0:c.length)>0){if(!t.node.config.workId)return{valid:!1,message:"请先配置工作表ID"};if(r.has(t.node.config.workId)){const u=r.get(t.node.config.workId),d=[];if(t.node.config.filter.filter(f=>{const h=u.fieldList.some(p=>p.columnId===f.columnId);return h||d.push(f.columnComment||`字段ID: ${f.columnId}`),h}),d.length>0)return{valid:!1,message:`以下字段不存在: ${d.join(", ")}`}}}return{valid:!0,message:"通过"}});const a=i.computed(()=>{switch(t.node.config.type){case"save":return"当新增或更新记录时";case"add":return"仅新增记录时";case"edit":return"仅更新记录时";case"del":return"删除记录时";default:return""}});return(l,s)=>e.node.config.workName?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",J6e,'工作表 "'+i.toDisplayString(e.node.config.workName)+'"',1),i.createElementVNode("div",Q6e,i.toDisplayString(a.value),1)],64)):(i.openBlock(),i.createElementBlock("div",$6e,"设置此节点"))}}),[["__scopeId","data-v-a1ebfe82"]])},Symbol.toStringTag,{value:"Module"})),tNe={key:0},nNe={key:1,class:"no-set"},rNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"timeNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.start,message:"请选择开始时间"})),(r,o)=>e.node.config.start?(i.openBlock(),i.createElementBlock("div",tNe,"从 "+i.toDisplayString(t.node.config.start)+" 开始",1)):(i.openBlock(),i.createElementBlock("div",nNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),oNe={key:0,class:"node-title"},iNe={key:1,class:"no-set"},aNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"uiNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>({valid:!!t.node.config.workName,message:"请选择工作表"})),(r,o)=>e.node.config.workName?(i.openBlock(),i.createElementBlock("div",oNe,' 工作表 "'+i.toDisplayString(e.node.config.workName)+'" ',1)):(i.openBlock(),i.createElementBlock("div",iNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"})),lNe={key:0},sNe={key:1,class:"no-set"},cNe=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"wechatNode",props:{tempNodeId:{type:String},node:{type:Object,default:()=>({})}},setup(e){const t=e;return i.inject(Rt).register(t.tempNodeId,()=>{var r;return{valid:((r=t.node.config.accounts)==null?void 0:r.length)>0,message:"请选择通知人"}}),(r,o)=>t.node.config.accounts&&t.node.config.accounts.length>0?(i.openBlock(),i.createElementBlock("div",lNe," 通知人:"+i.toDisplayString(t.node.config.accounts.map(a=>a.nickName).join(", ")),1)):(i.openBlock(),i.createElementBlock("div",sNe,"设置此节点"))}})},Symbol.toStringTag,{value:"Module"}));return LG});
|