wl-workflow
Version:
审批模块
8 lines • 37.8 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["wl-workflow"]=e():t["wl-workflow"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={1008:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return K}});var o=function(){var t=this,e=t._self._c;return e("div",[t.nodeConfig.type<3?e("div",{staticClass:"node-wrap"},[e("div",{staticClass:"node-wrap-box",class:(0==t.nodeConfig.type?"start-node ":"")+(t.isTried&&t.nodeConfig.error?"active error":"")},[e("div",[e("div",{staticClass:"title",style:`background: rgb(${t.bgColor});`},[0==t.nodeConfig.type?e("span",[t._v(t._s(t.nodeConfig.nodeName))]):[e("span",{staticClass:"iconfont"},[t._v(t._s(1==t.nodeConfig.type?"":""))]),t.isInput?e("input",{directives:[{name:"model",rawName:"v-model",value:t.nodeConfig.nodeName,expression:"nodeConfig.nodeName"}],staticClass:"ant-input editable-title-input",attrs:{type:"text",autofocus:"",placeholder:t.defaultText,maxlength:"10"},domProps:{value:t.nodeConfig.nodeName},on:{blur:function(e){return t.blurEvent()},focus:function(t){return t.currentTarget.select()},input:function(e){e.target.composing||t.$set(t.nodeConfig,"nodeName",e.target.value)}}}):e("span",{staticClass:"editable-title",on:{click:function(e){return t.clickEvent()}}},[t._v(t._s(t.nodeConfig.nodeName))]),e("i",{staticClass:"anticon anticon-close close",on:{click:t.delNode}})]],2),t.nodeConfig.type>0?e("div",{staticClass:"content",on:{click:t.setPerson}},[e("div",{staticClass:"text"},[t.showText?t._e():e("span",{staticClass:"placeholder"},[t._v("请选择"+t._s(t.defaultText))]),t._v(" "+t._s(t.showText)+" ")]),e("i",{staticClass:"anticon anticon-right arrow"})]):e("div",{staticClass:"content"},[e("div",{staticClass:"text-disable"},[t._v("具有操作权限的用户")])]),t.isTried&&t.nodeConfig.error?e("div",{staticClass:"error_tip"},[e("i",{staticClass:"anticon anticon-exclamation-circle"})]):t._e()])]),e("addNode",{attrs:{childNodeP:t.nodeConfig.childNode},on:{"update:childNodeP":function(e){return t.$set(t.nodeConfig,"childNode",e)},"update:child-node-p":function(e){return t.$set(t.nodeConfig,"childNode",e)}}})],1):t._e(),4==t.nodeConfig.type?e("div",{staticClass:"branch-wrap"},[e("div",{staticClass:"branch-box-wrap"},[e("div",{staticClass:"branch-box"},[e("button",{staticClass:"add-branch",on:{click:t.addTerm}},[t._v("添加条件")]),t._l(t.nodeConfig.conditionNodes,(function(n,o){return e("div",{key:o,staticClass:"col-box"},[e("div",{staticClass:"condition-node"},[e("div",{staticClass:"condition-node-box"},[e("div",{staticClass:"auto-judge",class:t.isTried&&n.error?"error active":""},[0!=o?e("div",{staticClass:"sort-left",on:{click:function(e){return t.arrTransfer(o,-1)}}},[t._v("<")]):t._e(),e("div",{staticClass:"title-wrapper"},[t.isInputList[o]?e("input",{directives:[{name:"model",rawName:"v-model",value:n.nodeName,expression:"item.nodeName"}],staticClass:"ant-input editable-title-input",attrs:{type:"text",maxlength:"10",autofocus:""},domProps:{value:n.nodeName},on:{blur:function(e){return t.blurEvent(o)},focus:function(t){return t.currentTarget.select()},input:function(e){e.target.composing||t.$set(n,"nodeName",e.target.value)}}}):e("span",{staticClass:"editable-title",on:{click:function(e){return t.clickEvent(o)}}},[t._v(t._s(n.nodeName))]),e("span",{staticClass:"priority-title",on:{click:function(e){return t.setPerson(n.priorityLevel)}}},[t._v("优先级"+t._s(n.priorityLevel))]),e("i",{staticClass:"anticon anticon-close close",on:{click:function(e){return t.delTerm(o)}}})]),o!=t.nodeConfig.conditionNodes.length-1?e("div",{staticClass:"sort-right",on:{click:function(e){return t.arrTransfer(o)}}},[t._v(">")]):t._e(),e("div",{staticClass:"content",on:{click:function(e){return t.setPerson(n.priorityLevel)}}},[t._v(" "+t._s(t.$func.conditionStr(t.nodeConfig,o)))]),t.isTried&&n.error?e("div",{staticClass:"error_tip"},[e("i",{staticClass:"anticon anticon-exclamation-circle"})]):t._e()]),e("addNode",{attrs:{childNodeP:n.childNode},on:{"update:childNodeP":function(e){return t.$set(n,"childNode",e)},"update:child-node-p":function(e){return t.$set(n,"childNode",e)}}})],1)]),n.childNode&&0!=n.childNode.type?e("nodeWrap",{attrs:{nodeConfig:n.childNode},on:{"update:nodeConfig":function(e){return t.$set(n,"childNode",e)},"update:node-config":function(e){return t.$set(n,"childNode",e)}}}):t._e(),0==o?[e("div",{staticClass:"top-left-cover-line"}),e("div",{staticClass:"bottom-left-cover-line"})]:t._e(),o==t.nodeConfig.conditionNodes.length-1?[e("div",{staticClass:"top-right-cover-line"}),e("div",{staticClass:"bottom-right-cover-line"})]:t._e()],2)}))],2),e("addNode",{attrs:{childNodeP:t.nodeConfig.childNode},on:{"update:childNodeP":function(e){return t.$set(t.nodeConfig,"childNode",e)},"update:child-node-p":function(e){return t.$set(t.nodeConfig,"childNode",e)}}})],1)]):t._e(),t.nodeConfig.childNode&&0!=t.nodeConfig.childNode.type?e("nodeWrap",{attrs:{nodeConfig:t.nodeConfig.childNode},on:{"update:nodeConfig":function(e){return t.$set(t.nodeConfig,"childNode",e)},"update:node-config":function(e){return t.$set(t.nodeConfig,"childNode",e)}}}):t._e()],1)},i=[],r=(n(7658),function(){var t=this,e=t._self._c;return e("div",{staticClass:"add-node-btn-box"},[e("div",{staticClass:"add-node-btn"},[e("el-popover",{attrs:{placement:"right-start"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("div",{staticClass:"add-node-popover-body"},[e("a",{staticClass:"add-node-popover-item approver",on:{click:function(e){return t.addType(1)}}},[e("div",{staticClass:"item-wrapper"},[e("span",{staticClass:"iconfont"},[t._v("")])]),e("p",[t._v("审批人")])]),e("a",{staticClass:"add-node-popover-item notifier",on:{click:function(e){return t.addType(2)}}},[e("div",{staticClass:"item-wrapper"},[e("span",{staticClass:"iconfont"},[t._v("")])]),e("p",[t._v("抄送人")])]),e("a",{staticClass:"add-node-popover-item condition",on:{click:function(e){return t.addType(4)}}},[e("div",{staticClass:"item-wrapper"},[e("span",{staticClass:"iconfont"},[t._v("")])]),e("p",[t._v("条件分支")])])]),e("button",{staticClass:"btn",attrs:{slot:"reference",type:"button"},slot:"reference"},[e("span",{staticClass:"iconfont"},[t._v("")])])])],1)])}),s=[];n(541);
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function c(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:o});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[o].concat(t.init):o,n.call(this,t)}}function o(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var a="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},u=a.__VUE_DEVTOOLS_GLOBAL_HOOK__;function f(t){u&&(t._devtoolHook=u,u.emit("vuex:init",t),u.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){u.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){u.emit("vuex:action",t,e)}),{prepend:!0}))}function d(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function l(t){return null!==t&&"object"===typeof t}function p(t){return t&&"function"===typeof t.then}function h(t,e){return function(){return t(e)}}var v=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},g={namespaced:{configurable:!0}};g.namespaced.get=function(){return!!this._rawModule.namespaced},v.prototype.addChild=function(t,e){this._children[t]=e},v.prototype.removeChild=function(t){delete this._children[t]},v.prototype.getChild=function(t){return this._children[t]},v.prototype.hasChild=function(t){return t in this._children},v.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},v.prototype.forEachChild=function(t){d(this._children,t)},v.prototype.forEachGetter=function(t){this._rawModule.getters&&d(this._rawModule.getters,t)},v.prototype.forEachAction=function(t){this._rawModule.actions&&d(this._rawModule.actions,t)},v.prototype.forEachMutation=function(t){this._rawModule.mutations&&d(this._rawModule.mutations,t)},Object.defineProperties(v.prototype,g);var m=function(t){this.register([],t,!1)};function y(t,e,n){if(e.update(n),n.modules)for(var o in n.modules){if(!e.getChild(o))return void 0;y(t.concat(o),e.getChild(o),n.modules[o])}}m.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},m.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},m.prototype.update=function(t){y([],this.root,t)},m.prototype.register=function(t,e,n){var o=this;void 0===n&&(n=!0);var i=new v(e,n);if(0===t.length)this.root=i;else{var r=this.get(t.slice(0,-1));r.addChild(t[t.length-1],i)}e.modules&&d(e.modules,(function(e,i){o.register(t.concat(i),e,n)}))},m.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],o=e.getChild(n);o&&o.runtime&&e.removeChild(n)},m.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var C;var b=function(t){var e=this;void 0===t&&(t={}),!C&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new C,this._makeLocalGettersCache=Object.create(null);var i=this,r=this,s=r.dispatch,c=r.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return c.call(i,t,e,n)},this.strict=o;var a=this._modules.root.state;O(this,a,[],this._modules.root),N(this,a),n.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:C.config.devtools;u&&f(this)},_={state:{configurable:!0}};function w(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function x(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;O(t,n,[],t._modules.root,!0),N(t,n,e)}function N(t,e,n){var o=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,r={};d(i,(function(e,n){r[n]=h(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=C.config.silent;C.config.silent=!0,t._vm=new C({data:{$$state:e},computed:r}),C.config.silent=s,t.strict&&T(t),o&&(n&&t._withCommit((function(){o._data.$$state=null})),C.nextTick((function(){return o.$destroy()})))}function O(t,e,n,o,i){var r=!n.length,s=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=o),!r&&!i){var c=k(e,n.slice(0,-1)),a=n[n.length-1];t._withCommit((function(){C.set(c,a,o.state)}))}var u=o.context=S(t,s,n);o.forEachMutation((function(e,n){var o=s+n;j(t,o,e,u)})),o.forEachAction((function(e,n){var o=e.root?n:s+n,i=e.handler||e;E(t,o,i,u)})),o.forEachGetter((function(e,n){var o=s+n;P(t,o,e,u)})),o.forEachChild((function(o,r){O(t,e,n.concat(r),o,i)}))}function S(t,e,n){var o=""===e,i={dispatch:o?t.dispatch:function(n,o,i){var r=L(n,o,i),s=r.payload,c=r.options,a=r.type;return c&&c.root||(a=e+a),t.dispatch(a,s)},commit:o?t.commit:function(n,o,i){var r=L(n,o,i),s=r.payload,c=r.options,a=r.type;c&&c.root||(a=e+a),t.commit(a,s,c)}};return Object.defineProperties(i,{getters:{get:o?function(){return t.getters}:function(){return $(t,e)}},state:{get:function(){return k(t.state,n)}}}),i}function $(t,e){if(!t._makeLocalGettersCache[e]){var n={},o=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,o)===e){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function j(t,e,n,o){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,o.state,e)}))}function E(t,e,n,o){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e);return p(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function P(t,e,n,o){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)})}function T(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function k(t,e){return e.reduce((function(t,e){return t[e]}),t)}function L(t,e,n){return l(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function M(t){C&&t===C||(C=t,c(C))}_.state.get=function(){return this._vm._data.$$state},_.state.set=function(t){0},b.prototype.commit=function(t,e,n){var o=this,i=L(t,e,n),r=i.type,s=i.payload,c=(i.options,{type:r,payload:s}),a=this._mutations[r];a&&(this._withCommit((function(){a.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(c,o.state)})))},b.prototype.dispatch=function(t,e){var n=this,o=L(t,e),i=o.type,r=o.payload,s={type:i,payload:r},c=this._actions[i];if(c){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(u){0}var a=c.length>1?Promise.all(c.map((function(t){return t(r)}))):c[0](r);return new Promise((function(t,e){a.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(u){0}e(t)}))}))}},b.prototype.subscribe=function(t,e){return w(t,this._subscribers,e)},b.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return w(n,this._actionSubscribers,e)},b.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch((function(){return t(o.state,o.getters)}),e,n)},b.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},b.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),O(this,this.state,t,this._modules.get(t),n.preserveState),N(this,this.state)},b.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=k(e.state,t.slice(0,-1));C.delete(n,t[t.length-1])})),x(this)},b.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},b.prototype.hotUpdate=function(t){this._modules.update(t),x(this,!0)},b.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(b.prototype,_);var A=F((function(t,e){var n={};return D(e).forEach((function(e){var o=e.key,i=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=R(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[o].vuex=!0})),n})),I=F((function(t,e){var n={};return D(e).forEach((function(e){var o=e.key,i=e.val;n[o]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var o=this.$store.commit;if(t){var r=R(this.$store,"mapMutations",t);if(!r)return;o=r.context.commit}return"function"===typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}})),n}));F((function(t,e){var n={};return D(e).forEach((function(e){var o=e.key,i=e.val;i=t+i,n[o]=function(){if(!t||R(this.$store,"mapGetters",t))return this.$store.getters[i]},n[o].vuex=!0})),n})),F((function(t,e){var n={};return D(e).forEach((function(e){var o=e.key,i=e.val;n[o]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var r=R(this.$store,"mapActions",t);if(!r)return;o=r.context.dispatch}return"function"===typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}})),n}));function D(t){return G(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function G(t){return Array.isArray(t)||l(t)}function F(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function R(t,e,n){var o=t._modulesNamespaceMap[n];return o}var U={props:["childNodeP"],data(){return{visible:!1}},methods:{...I("workflow",["setIsTried"]),addType(t){var e;(this.setIsTried(!1),this.visible=!1,4!=t)?(1==t?e={nodeName:"审批人",error:!0,type:1,settype:1,selectMode:0,selectRange:0,directorLevel:1,examineMode:1,noHanderAction:1,examineEndDirectorLevel:0,childNode:this.childNodeP,nodeUserList:[]}:2==t&&(e={nodeName:"抄送人",error:!0,type:2,ccSelfSelectFlag:1,childNode:this.childNodeP,nodeUserList:[]}),this.$emit("update:childNodeP",e)):this.$emit("update:childNodeP",{nodeName:"路由",type:4,childNode:null,conditionNodes:[{nodeName:"条件1",error:!0,type:3,priorityLevel:1,conditionList:[],nodeUserList:[],childNode:this.childNodeP},{nodeName:"条件2",error:!0,type:3,priorityLevel:2,conditionList:[],nodeUserList:[],childNode:null}]})}}},V=U;function H(t,e,n,o,i,r,s,c){var a,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=a):i&&(a=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),a)if(u.functional){u._injectStyles=a;var f=u.render;u.render=function(t,e){return a.call(e),f(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:u}}var W=H(V,r,s,!1,null,"612f8e63",null),z=W.exports,J={name:"wlWorkflow",components:{addNode:z,nodeWrap:()=>Promise.resolve().then(n.bind(n,1008))},props:["nodeConfigs","flowPermission"],data(){return{nodeConfig:this.nodeConfigs,placeholderList:["发起人","审批人","抄送人"],isInputList:[],isInput:!1}},mounted(){1==this.nodeConfig.type?this.nodeConfig.error=!this.$func.setApproverStr(this.nodeConfig):2==this.nodeConfig.type?this.nodeConfig.error=!this.$func.copyerStr(this.nodeConfig):4==this.nodeConfig.type&&this.resetConditionNodesErr()},computed:{...A("workflow",["isTried","flowPermission1","approverConfig1","copyerConfig1","conditionsConfig1"]),defaultText(){return this.placeholderList[this.nodeConfig.type]},showText(){return 0==this.nodeConfig.type?this.$func.arrToStr(this.flowPermission)||"所有人":1==this.nodeConfig.type?this.$func.setApproverStr(this.nodeConfig):this.$func.copyerStr(this.nodeConfig)},bgColor(){return["87, 106, 149","255, 148, 62","50, 150, 250"][this.nodeConfig.type]}},watch:{flowPermission1(t){t.flag&&t.id===this._uid&&this.$emit("update:flowPermission",t.value)},approverConfig1(t){t.flag&&t.id===this._uid&&this.$emit("update:nodeConfig",t.value)},copyerConfig1(t){t.flag&&t.id===this._uid&&this.$emit("update:nodeConfig",t.value)},conditionsConfig1(t){t.flag&&t.id===this._uid&&this.$emit("update:nodeConfig",t.value)}},methods:{...I("workflow",["setPromoter","setApprover","setCopyer","setCondition","setFlowPermission","setApproverConfig","setCopyerConfig","setConditionsConfig","setIsTried"]),clickEvent(t){t||0===t?this.$set(this.isInputList,t,!0):this.isInput=!0},blurEvent(t){t||0===t?(this.$set(this.isInputList,t,!1),this.nodeConfig.conditionNodes[t].nodeName=this.nodeConfig.conditionNodes[t].nodeName||"条件"):(this.isInput=!1,this.nodeConfig.nodeName=this.nodeConfig.nodeName||this.defaultText)},delNode(){this.$emit("update:nodeConfig",this.nodeConfig.childNode)},addTerm(){let t=this.nodeConfig.conditionNodes.length+1;this.nodeConfig.conditionNodes.push({nodeName:"条件"+t,type:3,priorityLevel:t,conditionList:[],nodeUserList:[],childNode:null}),this.resetConditionNodesErr(),this.$emit("update:nodeConfig",this.nodeConfig)},delTerm(t){this.nodeConfig.conditionNodes.splice(t,1),this.nodeConfig.conditionNodes.map(((t,e)=>{t.priorityLevel=e+1,t.nodeName=`条件${e+1}`})),this.resetConditionNodesErr(),this.$emit("update:nodeConfig",this.nodeConfig),1==this.nodeConfig.conditionNodes.length&&(this.nodeConfig.childNode&&(this.nodeConfig.conditionNodes[0].childNode?this.reData(this.nodeConfig.conditionNodes[0].childNode,this.nodeConfig.childNode):this.nodeConfig.conditionNodes[0].childNode=this.nodeConfig.childNode),this.$emit("update:nodeConfig",this.nodeConfig.conditionNodes[0].childNode))},reData(t,e){t.childNode?this.reData(t.childNode,e):t.childNode=e},setPerson(t){this.setIsTried(!1);var{type:e}=this.nodeConfig;0==e||(1==e?(this.setApprover(!0),this.setApproverConfig({value:{...JSON.parse(JSON.stringify(this.nodeConfig)),settype:this.nodeConfig.settype?this.nodeConfig.settype:1,setting:this.nodeConfig.setting||1,member:this.nodeConfig.member||[],memberLevel:this.nodeConfig.memberLevel||"",examineMode:(this.nodeConfig.member&&this.nodeConfig.member.length>0?this.nodeConfig.examineMode:"")||2,isEdit:this.nodeConfig.isEdit||!1},flag:!1,id:this._uid})):2==e?(this.setCopyer(!0),this.setCopyerConfig({value:{...JSON.parse(JSON.stringify(this.nodeConfig)),setting:this.nodeConfig.setting||1,member:this.nodeConfig.member||[]},flag:!1,id:this._uid})):(this.setCondition(!0),this.setConditionsConfig({value:{...JSON.parse(JSON.stringify(this.nodeConfig))},priorityLevel:t,flag:!1,id:this._uid})))},arrTransfer(t,e=1){this.nodeConfig.conditionNodes[t]=this.nodeConfig.conditionNodes.splice(t+e,1,this.nodeConfig.conditionNodes[t])[0],this.nodeConfig.conditionNodes.map(((t,e)=>{t.priorityLevel=e+1})),this.$emit("update:nodeConfig",this.nodeConfig)},resetConditionNodesErr(){for(var t=0;t<this.nodeConfig.conditionNodes.length;t++)this.nodeConfig.conditionNodes[t].error="请设置条件"==this.$func.conditionStr(this.nodeConfig,t)}}},B=J,X=H(B,o,i,!1,null,null,null),K=X.exports},9662:function(t,e,n){var o=n(614),i=n(6330),r=TypeError;t.exports=function(t){if(o(t))return t;throw r(i(t)+" is not a function")}},9670:function(t,e,n){var o=n(111),i=String,r=TypeError;t.exports=function(t){if(o(t))return t;throw r(i(t)+" is not an object")}},1318:function(t,e,n){var o=n(5656),i=n(1400),r=n(6244),s=function(t){return function(e,n,s){var c,a=o(e),u=r(a),f=i(s,u);if(t&&n!=n){while(u>f)if(c=a[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},3658:function(t,e,n){"use strict";var o=n(9781),i=n(3157),r=TypeError,s=Object.getOwnPropertyDescriptor,c=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(i(t)&&!s(t,"length").writable)throw r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,n){var o=n(1702),i=o({}.toString),r=o("".slice);t.exports=function(t){return r(i(t),8,-1)}},9920:function(t,e,n){var o=n(2597),i=n(3887),r=n(1236),s=n(3070);t.exports=function(t,e,n){for(var c=i(e),a=s.f,u=r.f,f=0;f<c.length;f++){var d=c[f];o(t,d)||n&&o(n,d)||a(t,d,u(e,d))}}},8880:function(t,e,n){var o=n(9781),i=n(3070),r=n(9114);t.exports=o?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,n){var o=n(614),i=n(3070),r=n(6339),s=n(3072);t.exports=function(t,e,n,c){c||(c={});var a=c.enumerable,u=void 0!==c.name?c.name:e;if(o(n)&&r(n,u,c),c.global)a?t[e]=n:s(e,n);else{try{c.unsafe?t[e]&&(a=!0):delete t[e]}catch(f){}a?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},3072:function(t,e,n){var o=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e}},5117:function(t,e,n){"use strict";var o=n(6330),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+o(e)+" of "+o(t))}},9781:function(t,e,n){var o=n(7293);t.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var o=n(7854),i=n(111),r=o.document,s=i(r)&&i(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},7207:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},8113:function(t,e,n){var o=n(5005);t.exports=o("navigator","userAgent")||""},7392:function(t,e,n){var o,i,r=n(7854),s=n(8113),c=r.process,a=r.Deno,u=c&&c.versions||a&&a.version,f=u&&u.v8;f&&(o=f.split("."),i=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&s&&(o=s.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/),o&&(i=+o[1]))),t.exports=i},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var o=n(7854),i=n(1236).f,r=n(8880),s=n(8052),c=n(3072),a=n(9920),u=n(4705);t.exports=function(t,e){var n,f,d,l,p,h,v=t.target,g=t.global,m=t.stat;if(f=g?o:m?o[v]||c(v,{}):(o[v]||{}).prototype,f)for(d in e){if(p=e[d],t.dontCallGetSet?(h=i(f,d),l=h&&h.value):l=f[d],n=u(g?d:v+(m?".":"#")+d,t.forced),!n&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&r(p,"sham",!0),s(f,d,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){var o=n(7293);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var o=n(4374),i=Function.prototype.call;t.exports=o?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var o=n(9781),i=n(2597),r=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,c=i(r,"name"),a=c&&"something"===function(){}.name,u=c&&(!o||o&&s(r,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},1702:function(t,e,n){var o=n(4374),i=Function.prototype,r=i.call,s=o&&i.bind.bind(r,r);t.exports=o?s:function(t){return function(){return r.apply(t,arguments)}}},5005:function(t,e,n){var o=n(7854),i=n(614),r=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(o[t]):o[t]&&o[t][e]}},8173:function(t,e,n){var o=n(9662),i=n(8554);t.exports=function(t,e){var n=t[e];return i(n)?void 0:o(n)}},7854:function(t,e,n){var o=function(t){return t&&t.Math==Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var o=n(1702),i=n(7908),r=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(i(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,n){var o=n(9781),i=n(7293),r=n(317);t.exports=!o&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var o=n(1702),i=n(7293),r=n(4326),s=Object,c=o("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?c(t,""):s(t)}:s},2788:function(t,e,n){var o=n(1702),i=n(614),r=n(5465),s=o(Function.toString);i(r.inspectSource)||(r.inspectSource=function(t){return s(t)}),t.exports=r.inspectSource},9909:function(t,e,n){var o,i,r,s=n(4811),c=n(7854),a=n(111),u=n(8880),f=n(2597),d=n(5465),l=n(6200),p=n(3501),h="Object already initialized",v=c.TypeError,g=c.WeakMap,m=function(t){return r(t)?i(t):o(t,{})},y=function(t){return function(e){var n;if(!a(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}};if(s||d.state){var C=d.state||(d.state=new g);C.get=C.get,C.has=C.has,C.set=C.set,o=function(t,e){if(C.has(t))throw v(h);return e.facade=t,C.set(t,e),e},i=function(t){return C.get(t)||{}},r=function(t){return C.has(t)}}else{var b=l("state");p[b]=!0,o=function(t,e){if(f(t,b))throw v(h);return e.facade=t,u(t,b,e),e},i=function(t){return f(t,b)?t[b]:{}},r=function(t){return f(t,b)}}t.exports={set:o,get:i,has:r,enforce:m,getterFor:y}},3157:function(t,e,n){var o=n(4326);t.exports=Array.isArray||function(t){return"Array"==o(t)}},614:function(t,e,n){var o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},4705:function(t,e,n){var o=n(7293),i=n(614),r=/#|\.prototype\./,s=function(t,e){var n=a[c(t)];return n==f||n!=u&&(i(e)?o(e):!!e)},c=s.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=s.data={},u=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},8554:function(t){t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){var o=n(614),i=n(4154),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:o(t)||t===r}:function(t){return"object"==typeof t?null!==t:o(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var o=n(5005),i=n(614),r=n(7976),s=n(3307),c=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&r(e.prototype,c(t))}},6244:function(t,e,n){var o=n(7466);t.exports=function(t){return o(t.length)}},6339:function(t,e,n){var o=n(7293),i=n(614),r=n(2597),s=n(9781),c=n(6530).CONFIGURABLE,a=n(2788),u=n(9909),f=u.enforce,d=u.get,l=Object.defineProperty,p=s&&!o((function(){return 8!==l((function(){}),"length",{value:8}).length})),h=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||c&&t.name!==e)&&(s?l(t,"name",{value:e,configurable:!0}):t.name=e),p&&n&&r(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?s&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var o=f(t);return r(o,"source")||(o.source=h.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&d(this).source||a(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return(o>0?n:e)(o)}},3070:function(t,e,n){var o=n(9781),i=n(4664),r=n(3353),s=n(9670),c=n(4948),a=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",l="configurable",p="writable";e.f=o?r?function(t,e,n){if(s(t),e=c(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var o=f(t,e);o&&o[p]&&(t[e]=n.value,n={configurable:l in n?n[l]:o[l],enumerable:d in n?n[d]:o[d],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=c(e),s(n),i)try{return u(t,e,n)}catch(o){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var o=n(9781),i=n(6916),r=n(5296),s=n(9114),c=n(5656),a=n(4948),u=n(2597),f=n(4664),d=Object.getOwnPropertyDescriptor;e.f=o?d:function(t,e){if(t=c(t),e=a(e),f)try{return d(t,e)}catch(n){}if(u(t,e))return s(!i(r.f,t,e),t[e])}},8006:function(t,e,n){var o=n(6324),i=n(748),r=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var o=n(1702);t.exports=o({}.isPrototypeOf)},6324:function(t,e,n){var o=n(1702),i=n(2597),r=n(5656),s=n(1318).indexOf,c=n(3501),a=o([].push);t.exports=function(t,e){var n,o=r(t),u=0,f=[];for(n in o)!i(c,n)&&i(o,n)&&a(f,n);while(e.length>u)i(o,n=e[u++])&&(~s(f,n)||a(f,n));return f}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){var o=n(6916),i=n(614),r=n(111),s=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&i(n=t.toString)&&!r(c=o(n,t)))return c;if(i(n=t.valueOf)&&!r(c=o(n,t)))return c;if("string"!==e&&i(n=t.toString)&&!r(c=o(n,t)))return c;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var o=n(5005),i=n(1702),r=n(8006),s=n(5181),c=n(9670),a=i([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=r.f(c(t)),n=s.f;return n?a(e,n(t)):e}},4488:function(t,e,n){var o=n(8554),i=TypeError;t.exports=function(t){if(o(t))throw i("Can't call method on "+t);return t}},6200:function(t,e,n){var o=n(2309),i=n(9711),r=o("keys");t.exports=function(t){return r[t]||(r[t]=i(t))}},5465:function(t,e,n){var o=n(7854),i=n(3072),r="__core-js_shared__",s=o[r]||i(r,{});t.exports=s},2309:function(t,e,n){var o=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:o?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){var o=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},1400:function(t,e,n){var o=n(9303),i=Math.max,r=Math.min;t.exports=function(t,e){var n=o(t);return n<0?i(n+e,0):r(n,e)}},5656:function(t,e,n){var o=n(8361),i=n(4488);t.exports=function(t){return o(i(t))}},9303:function(t,e,n){var o=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:o(e)}},7466:function(t,e,n){var o=n(9303),i=Math.min;t.exports=function(t){return t>0?i(o(t),9007199254740991):0}},7908:function(t,e,n){var o=n(4488),i=Object;t.exports=function(t){return i(o(t))}},7593:function(t,e,n){var o=n(6916),i=n(111),r=n(2190),s=n(8173),c=n(2140),a=n(5112),u=TypeError,f=a("toPrimitive");t.exports=function(t,e){if(!i(t)||r(t))return t;var n,a=s(t,f);if(a){if(void 0===e&&(e="default"),n=o(a,t,e),!i(n)||r(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},4948:function(t,e,n){var o=n(7593),i=n(2190);t.exports=function(t){var e=o(t,"string");return i(e)?e:e+""}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){var o=n(1702),i=0,r=Math.random(),s=o(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+r,36)}},3307:function(t,e,n){var o=n(6293);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var o=n(9781),i=n(7293);t.exports=o&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){var o=n(7854),i=n(614),r=o.WeakMap;t.exports=i(r)&&/native code/.test(String(r))},5112:function(t,e,n){var o=n(7854),i=n(2309),r=n(2597),s=n(9711),c=n(6293),a=n(3307),u=i("wks"),f=o.Symbol,d=f&&f["for"],l=a?f:f&&f.withoutSetter||s;t.exports=function(t){if(!r(u,t)||!c&&"string"!=typeof u[t]){var e="Symbol."+t;c&&r(f,t)?u[t]=f[t]:u[t]=a&&d?d(e):l(e)}return u[t]}},7658:function(t,e,n){"use strict";var o=n(2109),i=n(7908),r=n(6244),s=n(3658),c=n(7207),a=n(7293),u=a((function(){return 4294967297!==[].push.call({length:4294967296},1)})),f=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();o({target:"Array",proto:!0,arity:1,forced:u||f},{push:function(t){var e=i(this),n=r(e),o=arguments.length;c(n+o);for(var a=0;a<o;a++)e[n]=arguments[a],n++;return s(e,n),n}})},541:function(t,e,n){"use strict";var o=n(2109),i=n(7908),r=n(6244),s=n(3658),c=n(5117),a=n(7207),u=1!==[].unshift(0),f=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();o({target:"Array",proto:!0,arity:1,forced:u||f},{unshift:function(t){var e=i(this),n=r(e),o=arguments.length;if(o){a(n+o);var u=n;while(u--){var f=u+o;u in e?e[f]=e[u]:c(e,f)}for(var d=0;d<o;d++)e[d]=arguments[d]}return s(e,n+o)}})}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}!function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var o={};return function(){"use strict";if(n.r(o),n.d(o,{default:function(){return a}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var i=n(1008);const r=[i["default"]],s=function(t){s.installed||(r.forEach((e=>{t.component(e.name,e)})),"undefined"!=typeof window&&window.Vue&&s(window.Vue))};var c={install:s,wlWorkflow:i["default"]},a=c}(),o}()}));
//# sourceMappingURL=wl-workflow.umd.min.js.map