UNPKG

element-pro-crud-modeltwo

Version:

二次封装Table,Form组件,配套表单,表格设计器,一键Crud

27 lines (25 loc) 138 kB
/*! * element-pro-crud-modeltwo v0.9.4-7 * Author: BoBo<BoBoooooo159@gmail.com> * Documentation: undefined * Date: Mon May 17 2021 17:12:04 GMT+0800 (GMT+08:00) */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("element-ui")):"function"==typeof define&&define.amd?define(["vue","element-ui"],t):"object"==typeof exports?exports.ProCrud=t(require("vue"),require("element-ui")):e.ProCrud=t(e.Vue,e.ELEMENT)}(window,(function(__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__24__){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/lib/",n(n.s=34)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return o.a})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return C}));var i=n(5),o=n.n(i); /** * vue-class-component v7.2.6 * (c) 2015-present Evan You * @license MIT */ function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function c(e,t){d(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){d(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){d(e,t,n)}))}function d(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(i){var o=n?Reflect.getOwnMetadata(i,t,n):Reflect.getOwnMetadata(i,t);n?Reflect.defineMetadata(i,o,e,n):Reflect.defineMetadata(i,o,e)}))}var u={__proto__:[]}instanceof Array;function p(e){return function(t,n,i){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof i&&(i=void 0),o.__decorators__.push((function(t){return e(t,n,i)}))}}function f(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var i in e.$options.props)e.hasOwnProperty(i)||n.push(i);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var i=new t;t.prototype._init=n;var o={};return Object.keys(i).forEach((function(e){void 0!==i[e]&&(o[e]=i[e])})),o}var h=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(h.indexOf(e)>-1)t[e]=n[e];else{var i=Object.getOwnPropertyDescriptor(n,e);void 0!==i.value?"function"==typeof i.value?(t.methods||(t.methods={}))[e]=i.value:(t.mixins||(t.mixins=[])).push({data:function(){return a({},e,i.value)}}):(i.get||i.set)&&((t.computed||(t.computed={}))[e]={get:i.get,set:i.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return f(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(e){return e(t)})),delete e.__decorators__);var r=Object.getPrototypeOf(e.prototype),l=r instanceof o.a?r.constructor:o.a,d=l.extend(t);return g(d,e,l),s()&&c(d,e),d}var b={prototype:!0,arguments:!0,callee:!0,caller:!0};function g(e,t,n){Object.getOwnPropertyNames(t).forEach((function(i){if(!b[i]){var o=Object.getOwnPropertyDescriptor(e,i);if(!o||o.configurable){var a,l,s=Object.getOwnPropertyDescriptor(t,i);if(!u){if("cid"===i)return;var c=Object.getOwnPropertyDescriptor(n,i);if(a=s.value,l=r(a),null!=a&&("object"===l||"function"===l)&&c&&c.value===s.value)return}0,Object.defineProperty(e,i,s)}}}))}function y(e){return"function"==typeof e?m(e):function(t){return m(t,e)}}y.registerHooks=function(e){h.push.apply(h,l(e))};var v=y;var w="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function _(e,t,n){if(w&&!Array.isArray(e)&&"function"!=typeof e&&void 0===e.type){var i=Reflect.getMetadata("design:type",t,n);i!==Object&&(e.type=i)}}function O(e){return void 0===e&&(e={}),function(t,n){_(e,t,n),p((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function C(e,t){void 0===t&&(t={});var n=t.deep,i=void 0!==n&&n,o=t.immediate,r=void 0!==o&&o;return p((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var o=t.watch;"object"!=typeof o[e]||Array.isArray(o[e])?void 0===o[e]&&(o[e]=[]):o[e]=[o[e]],o[e].push({handler:n,deep:i,immediate:r})}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return pe})),n.d(t,"c",(function(){return _e})),n.d(t,"d",(function(){return fe})),n.d(t,"e",(function(){return ne})),n.d(t,"f",(function(){return te})),n.d(t,"g",(function(){return X})),n.d(t,"h",(function(){return U})),n.d(t,"i",(function(){return Z})),n.d(t,"j",(function(){return ue})),n.d(t,"k",(function(){return de}));var i=n(5),o=n.n(i);function r(e){return"function"==typeof e&&/native code/.test(e.toString())}var a="undefined"!=typeof Symbol&&r(Symbol)&&"undefined"!=typeof Reflect&&r(Reflect.ownKeys),l=function(e){return e};function s(e,t,n){var i=n.get,o=n.set;Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:i||l,set:o||l})}function c(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}function d(e,t){return Object.hasOwnProperty.call(e,t)}function u(e){return Array.isArray(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return null!==e&&"object"==typeof e}function h(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function m(e){return"function"==typeof e}function b(e,t){o.a.util.warn(e,t)}var g=void 0;try{var y=n(5);y&&_(y)?g=y:y&&"default"in y&&_(y.default)&&(g=y.default)}catch(e){}var v=null,w=null;function _(e){return e&&"function"==typeof e&&"Vue"===e.name}function O(){return v}function C(e){w=e}function x(){return w?function e(t){if(k.has(t))return k.get(t);var n={proxy:t,update:t.$forceUpdate,uid:t._uid,emit:t.$emit.bind(t),parent:null,root:null};["data","props","attrs","refs","vnode","slots"].forEach((function(e){s(n,e,{get:function(){return t["$"+e]}})})),s(n,"isMounted",{get:function(){return t._isMounted}}),s(n,"isUnmounted",{get:function(){return t._isDestroyed}}),s(n,"isDeactivated",{get:function(){return t._inactive}}),s(n,"emitted",{get:function(){return t._events}}),k.set(t,n),t.$parent&&(n.parent=e(t.$parent));t.$root&&(n.root=e(t.$root));return n}(w):null}var S,k=new WeakMap;function j(e){var t=x();return null==t?void 0:t.proxy}function T(e,t){void 0===t&&(t={});var n=e.config.silent;e.config.silent=!0;var i=new e(t);return e.config.silent=n,i}function $(e,t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.$scopedSlots[t]?e.$scopedSlots[t].apply(e,n):b("slots."+t+'() got called outside of the "render()" scope',e)}}var E=function(){return(E=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function L(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function F(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}function A(e){return a?Symbol.for(e):e}var P=A("composition-api.preFlushQueue"),M=A("composition-api.postFlushQueue"),B="composition-api.refKey",N=new WeakMap,R=(new WeakMap,new WeakMap),I=function(e){s(this,"value",{get:e.get,set:e.set})};function z(e,t){var n=new I(e),i=Object.seal(n);return R.set(i,!0),i}function U(e){var t;if(V(e))return e;var n=X(((t={})[B]=e,t));return z({get:function(){return n[B]},set:function(e){return n[B]=e}})}function V(e){return e instanceof I}function W(e,t){var n=e[t];return V(n)?n:z({get:function(){return e[t]},set:function(n){return e[t]=n}})}function q(e){var t;return Boolean((null==e?void 0:e.__ob__)&&(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function H(e){var t;return Boolean((null==e?void 0:e.__ob__)&&!(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function J(e){if(!(!h(e)||q(e)||Array.isArray(e)||V(e)||(t=e,n=O(),n&&t instanceof n)||N.has(e))){var t,n;N.set(e,!0);for(var i=Object.keys(e),o=0;o<i.length;o++)K(e,i[o])}}function K(e,t,n){if("__ob__"!==t&&!q(e[t])){var i,o,r=Object.getOwnPropertyDescriptor(e,t);if(r){if(!1===r.configurable)return;i=r.get,o=r.set,i&&!o||2!==arguments.length||(n=e[t])}J(n),Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var o=i?i.call(e):n;return t!==B&&V(o)?o.value:o},set:function(r){if(!i||o){var a=i?i.call(e):n;t!==B&&V(a)&&!V(r)?a.value=r:o?o.call(e,r):n=r,J(r)}}})}}function Y(e){var t,n=v||g;n.observable?t=n.observable(e):t=T(n,{data:{$$state:e}})._data.$$state;return d(t,"__ob__")||c(t,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:l,depend:l,addSub:l,removeSub:l}}}(t)),t}function G(){return Y({}).__ob__}function X(e){if(!f(e))return e;if(!h(e)&&!u(e)||q(e)||!Object.isExtensible(e))return e;var t=Y(e);return J(t),t}function Z(e,t,n){var i=O().util,o=(i.warn,i.defineReactive);if(u(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(o(r.value,t,n),K(e,t,n),r.dep.notify(),n):(e[t]=n,n)}function Q(e){return function(t){var n,i=j(((n=e)[0].toUpperCase(),n.slice(1)));i&&function(e,t,n,i){var o=t.$options,r=e.config.optionMergeStrategies[n];o[n]=r(o[n],function(e,t){return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=null===(n=x())||void 0===n?void 0:n.proxy;C(e);try{return t.apply(void 0,F([],D(i)))}finally{C(r)}}}(t,i))}(O(),i,e,t)}}Q("beforeMount");var ee,te=Q("mounted"),ne=(Q("beforeUpdate"),Q("updated"),Q("beforeDestroy"));Q("destroyed"),Q("errorCaptured"),Q("activated"),Q("deactivated"),Q("serverPrefetch");function ie(){ae(this,P)}function oe(){ae(this,M)}function re(){var e,t=null===(e=x())||void 0===e?void 0:e.proxy;return t?function(e){return void 0!==e[P]}(t)||function(e){e[P]=[],e[M]=[],e.$on("hook:beforeUpdate",ie),e.$on("hook:updated",oe)}(t):(ee||(ee=T(O())),t=ee),t}function ae(e,t){for(var n=e[t],i=0;i<n.length;i++)n[i]();n.length=0}function le(e,t,n){var i=function(){e.$nextTick((function(){e[P].length&&ae(e,P),e[M].length&&ae(e,M)}))};switch(n){case"pre":i(),e[P].push(t);break;case"post":i(),e[M].push(t);break;default:!function(e,t){if(!e)throw new Error("[vue-composition-api] "+t)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+n)}}function se(e,t){var n=e.teardown;e.teardown=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.apply(e,i),t()}}function ce(e,t,n,i){var o,r,a=i.flush,s="sync"===a,c=function(e){r=function(){try{e()}catch(e){!function(e,t,n){if("undefined"==typeof window||"undefined"==typeof console)throw e;console.error(e)}(e)}}},d=function(){r&&(r(),r=null)},u=function(t){return s||e===ee?t:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return le(e,(function(){t.apply(void 0,F([],D(n)))}),a)}};if(null===n){var p=!1,f=function(e,t,n,i){var o=e._watchers.length;return e.$watch(t,n,{immediate:i.immediateInvokeCallback,deep:i.deep,lazy:i.noRun,sync:i.sync,before:i.before}),e._watchers[o]}(e,(function(){if(!p)try{p=!0,t(c)}finally{p=!1}}),l,{deep:i.deep||!1,sync:s,before:d});se(f,d),f.lazy=!1;var h=f.get.bind(f);return f.get=u(h),function(){f.teardown()}}var g,y=i.deep;Array.isArray(t)?g=function(){return t.map((function(e){return V(e)?e.value:e()}))}:V(t)?g=function(){return t.value}:H(t)?(g=function(){return t},y=!0):m(t)?g=t:(g=l,b("Invalid watch source: "+JSON.stringify(t)+".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.",e));var v=function(e,t){d(),n(e,t,c)},w=u(v);if(i.immediate){var _=w,O=function(e,t){O=_,v(e,t)};w=function(e,t){O(e,t)}}var C=e.$watch(g,w,{immediate:i.immediate,deep:y,sync:s}),x=e._watchers[e._watchers.length-1];return H(x.value)&&(null===(o=x.value.__ob__)||void 0===o?void 0:o.dep)&&y&&x.value.__ob__.dep.addSub({update:function(){x.run()}}),se(x,d),function(){C()}}function de(e,t){var n=function(e){return E({immediate:!0,deep:!1,flush:"pre"},e)}(t);return ce(re(),e,null,n)}function ue(e,t,n){var i=null;"function"==typeof t?i=t:(n=t,i=null);var o=function(e){return E({immediate:!1,deep:!1,flush:"pre"},e)}(n);return ce(re(),e,i,o)}function pe(e){var t,n,i,o,r,a=null===(t=x())||void 0===t?void 0:t.proxy;if("function"==typeof e?n=e:(n=e.get,i=e.set),a&&!a.$isServer){var s,c=function(){if(!S){var e=T(O(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;S={Watcher:t,Dep:n},e.$destroy()}return S}(),d=c.Watcher,u=c.Dep;r=function(){return s||(s=new d(a,n,l,{lazy:!0})),s.dirty&&s.evaluate(),u.target&&s.depend(),s.value},o=function(e){i&&i(e)}}else{var p=T(O(),{computed:{$$state:{get:n,set:i}}});a&&a.$on("hook:destroyed",(function(){return p.$destroy()})),r=function(){return p.$$state},o=function(e){p.$$state=e}}return z({get:r,set:o})}var fe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=O())||void 0===e?void 0:e.nextTick.apply(this,t)};var he={set:function(e,t,n){(e.__composition_api_state__=e.__composition_api_state__||{})[t]=n},get:function(e,t){return(e.__composition_api_state__||{})[t]}};function me(e){var t=he.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,i=he.get(e,"refs")||[],o=0;o<i.length;o++){var r=t[s=i[o]];!n[s]&&r&&V(r)&&(r.value=null)}var a=Object.keys(n),l=[];for(o=0;o<a.length;o++){var s;r=t[s=a[o]];n[s]&&r&&V(r)&&(r.value=n[s],l.push(s))}he.set(e,"refs",l)}}function be(e,t){var n=e.$options._parentVnode;if(n){for(var i=he.get(e,"slots")||[],o=function(e,t){var n;if(e){if(e._normalized)return e._normalized;for(var i in n={},e)e[i]&&"$"!==i[0]&&(n[i]=!0)}else n={};for(var i in t)i in n||(n[i]=!0);return n}(n.data.scopedSlots,e.$slots),r=0;r<i.length;r++){o[l=i[r]]||delete t[l]}var a=Object.keys(o);for(r=0;r<a.length;r++){var l;t[l=a[r]]||(t[l]=$(e,l))}he.set(e,"slots",a)}}function ge(e,t,n){var i=w;C(e);try{return t(e)}catch(e){if(!n)throw e;n(e)}finally{C(i)}}function ye(e){e.mixin({beforeCreate:function(){var e=this,t=e.$options,n=t.setup,i=t.render;i&&(t.render=function(){for(var t=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return ge(e,(function(){return i.apply(t,n)}))});if(!n)return;if("function"!=typeof n)return void 0;var o=t.data;t.data=function(){return function(e,t){void 0===t&&(t={});var n,i=e.$options.setup,o=function(e){var t={slots:{}};["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(n){var i="$"+n;s(t,n,{get:function(){return e[i]},set:function(){b("Cannot assign to '"+n+"' because it is a read-only property",e)}})})),["attrs"].forEach((function(n){var i="$"+n;s(t,n,{get:function(){var t,n,o=X({}),r=e[i],a=function(t){s(o,t,{get:function(){return e[i][t]}})};try{for(var l=L(Object.keys(r)),c=l.next();!c.done;c=l.next()){a(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return o},set:function(){b("Cannot assign to '"+n+"' because it is a read-only property",e)}})})),["emit"].forEach((function(n){var i="$"+n;s(t,n,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=e[i];o.apply(e,t)}}})})),!1;return t}(e);if(c(t,"__ob__",G()),be(e,o.slots),ge(e,(function(){n=i(t,o)})),!n)return;if(m(n)){var r=n;return void(e.$options.render=function(){return be(e,o.slots),ge(e,(function(){return r()}))})}if(h(n)){H(n)&&(n=function(e){if(!h(e))return e;var t={};for(var n in e)t[n]=W(e,n);return t}(n)),he.set(e,"rawBindings",n);var a=n;return void Object.keys(a).forEach((function(t){var n=a[t];V(n)||(H(n)?u(n)&&(n=U(n)):m(n)?n=n.bind(e):f(n)?function e(t,n){void 0===n&&(n=new Map);if(n.has(t))return n.get(t);if(n.set(t,!1),Array.isArray(t)&&H(t))return n.set(t,!0),!0;if(!h(t)||q(t))return!1;return Object.keys(t).some((function(i){return e(t[i],n)}))}(n)&&function e(t){if(!h(t)||V(t)||H(t)||q(t))return;var n=O().util.defineReactive;Object.keys(t).forEach((function(i){var o=t[i];n(t,i,o),o&&e(o)}))}(n):n=U(n)),function(e,t,n){var i=e.$options.props;t in e||i&&d(i,t)||(V(n)?s(e,t,{get:function(){return n.value},set:function(e){n.value=e}}):e[t]=n)}(e,t,n)}))}0}(e,e.$props),"function"==typeof o?o.call(e,e):o||{}}},mounted:function(){me(this)},updated:function(){me(this)}})}function ve(e){(function(e){return d(e,"__composition_api_installed__")})(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(n,i){return function e(t,n){if(!t)return n;if(!n)return t;for(var i,o,r,l=a?Reflect.ownKeys(t):Object.keys(t),s=0;s<l.length;s++)"__ob__"!==(i=l[s])&&(o=n[i],r=t[i],d(n,i)?o!==r&&h(o)&&!V(o)&&h(r)&&!V(r)&&e(r,o):n[i]=r);return n}("function"==typeof e?e(n,i)||{}:void 0,"function"==typeof t?t(n,i)||{}:void 0)}},function(e){v=e,Object.defineProperty(e,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(e),ye(e))}var we={install:function(e){return ve(e)}};function _e(e){return e}"undefined"!=typeof window&&window.Vue&&window.Vue.use(we),t.b=we},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));function i(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}Object.create;Object.create},function(e,t,n){"use strict";function i(e,t,n,i,o,r,a,l){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=s):o&&(s=l?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(c.functional){c._injectStyles=s;var d=c.render;c.render=function(e,t){return s.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},,function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.INSERT="add",e.UPDATE="update",e.DELETE="delete",e.SELECT="list",e.TREE="tree",e.TREE_LAZY="treeByParentID",e.DETAIL="detail",e.DELETES="deleteByIds"}(i||(i={}))},function(e,t,n){"use strict";function i(e){return!/[^\u4e00-\u9fa5]/.test(e)}function o(e,t){let n=null;return function(){clearTimeout(n),n=setTimeout(()=>{e(t)},300)}}function r(){const e=[];return function t(n){for(const i of n)i.prop&&i.searchable&&e.push(i),i.children&&t(i.children);return e}}n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return s}));const i=[{type:"text",name:"标题",icon:"language",options:{defaultValue:"",remoteFunc:"",align:"center",fontSize:"16px",hiddenLabel:!1}},{type:"input",name:"姓名",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"date",name:"出生日期",labelWidth:void 0,hidden:!1,icon:"regular/calendar-alt",options:{hiddenLabel:!1,defaultValue:!1,readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",type:"date",format:"yyyy-MM-dd",timestamp:!1,required:!1,width:"100%"}},{type:"input",name:"民族",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"input",name:"政治面貌",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"radio",name:"性别",icon:"regular/dot-circle",labelWidth:void 0,hidden:!1,options:{inline:!0,defaultValue:"",showLabel:!1,hiddenLabel:!1,options:[{value:"男",label:"1"},{value:"女",label:"0"}],required:!1,disabled:!1,width:"100%",remote:"static",remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{type:"input",name:"工作单位",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"input",name:"籍贯",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"input",name:"职务",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"input",name:"学历",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"input",name:"学位",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"input",name:"证件类型",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"textarea",name:"个人履历",icon:"regular/keyboard",labelWidth:void 0,hidden:!1,options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,maxLength:"",pattern:"",placeholder:"",hiddenLabel:!1}},{type:"textarea",name:"先进事迹",icon:"regular/keyboard",labelWidth:void 0,hidden:!1,options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,maxLength:"",pattern:"",placeholder:"",hiddenLabel:!1}},{type:"input",name:"职称",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"radio",name:"是否已故",icon:"regular/dot-circle",labelWidth:void 0,hidden:!1,options:{inline:!0,defaultValue:"",showLabel:!1,hiddenLabel:!1,options:[{value:"是",label:"1"},{value:"否",label:"0"}],required:!1,disabled:!1,width:"100%",remote:"static",remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{type:"radio",name:"是否困难",icon:"regular/dot-circle",labelWidth:void 0,hidden:!1,options:{inline:!0,defaultValue:"",showLabel:!1,hiddenLabel:!1,options:[{value:"是",label:"1"},{value:"否",label:"0"}],required:!1,disabled:!1,width:"100%",remote:"static",remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{type:"radio",name:"是否享受待遇",icon:"regular/dot-circle",labelWidth:void 0,hidden:!1,options:{inline:!0,defaultValue:"",showLabel:!1,hiddenLabel:!1,options:[{value:"是",label:"1"},{value:"否",label:"0"}],required:!1,disabled:!1,width:"100%",remote:"static",remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{type:"textarea",name:"详细事迹",icon:"regular/keyboard",labelWidth:void 0,hidden:!1,options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,maxLength:"",pattern:"",placeholder:"",hiddenLabel:!1}},{type:"textarea",name:"征求意见",icon:"regular/keyboard",labelWidth:void 0,hidden:!1,options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,maxLength:"",pattern:"",placeholder:"",hiddenLabel:!1}},{type:"input",name:"身份证号",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}},{type:"input",name:"银行卡号",labelWidth:void 0,hidden:!1,icon:"regular/keyboard",options:{width:"100%",defaultValue:"",readonly:!1,disabled:!1,showWordLimit:!1,required:!1,dataType:"string",pattern:"",maxLength:"",placeholder:"",hiddenLabel:!1,appendButton:!1}}],o=[{type:"upload",name:"公示材料",icon:"upload",labelWidth:void 0,options:{resourceId:"id",fileType:"",defaultValue:"",remoteFunc:"",readonly:!1,hiddenLabel:!1}},{type:"avatar",name:"上传照片",icon:"user",labelWidth:void 0,options:{resourceId:"id",uploadUrl:"/file/upload",width:"180px",hiddenLabel:!0}},{type:"table",name:"工作履历",icon:"table",labelWidth:void 0,options:{remoteFunc:"",visibleList:{actionColumnBtnEdit:!0,actionColumnBtnDetail:!1,btnAdd:!0,actionColumn:!0,tableTitle:!1,searchForm:!1,actionColumnBtnDel:!0},tableParams:"",prefill:"",tableTitle:"",showPagination:!0,isMultiple:!1,tableName:"",tableDesignerName:"",dialogFormDesignerName:"",hiddenLabel:!1}},{type:"form",name:"教育经历",icon:"file-word",labelWidth:void 0,tableColumns:[],options:{hiddenLabel:!0,remote:"custom",remoteFunc:"",tableParams:"",prefill:"",tableName:""}}],r=[{type:"grid-table",name:"表格布局",icon:"table",beta:!0,options:{borderWidth:1,borderColor:"#999",width:"100%",sumColSpan:1,sumRowSpan:1},rows:[{columns:[]}]}],a=[],l={tabs:{type:[{label:"普通",value:""},{label:"选项卡",value:"card"},{label:"卡片化",value:"border-card"}],position:[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}]}},s=["input","textarea","number","radio","checkbox","date","time","rate","color","select","switch","slider","cascader","treeselect","richtext"]},function(e,t,n){"use strict";function i(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function o(){return Math.ceil(99999*Math.random())}function r(){const e="td_"+o();return{type:"td",options:{colspan:1,rowspan:1,align:"left",valign:"middle",width:"",height:""},list:[],key:e,model:e}}n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return I}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-upload",{staticClass:"avatar-uploader",class:{"is-disabled":e.readOnly},style:{width:e.widget.options.width,height:e.widget.options.width},attrs:{headers:e.headers,action:e.action,"before-upload":e.beforeUpload,"show-file-list":!1,"on-success":e.handleAvatarSuccess}},[e.hasImage?n("img",{staticClass:"avatar",attrs:{src:e.imageUrl}}):n("div",{staticClass:"uploader-container"},[n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])])};i._withStripped=!0;var o={name:"AvatarUpload",model:{prop:"value",event:"change"},data:function(){return{hasImage:!1,prefix:window.__HOST__URL__+window.__PREFIX__URL__}},props:{value:{type:String,default:""},widget:{type:Object,default:function(){return{options:{width:""}}}},readOnly:{type:Boolean,default:!1}},created:function(){this.value&&(this.hasImage=!0)},computed:{imageUrl:function(){return this.prefix+this.value},action:function(){return this.prefix+this.widget.options.uploadUrl},headers:function(){return{Authorization:sessionStorage.getItem("token")}}},methods:{handleAvatarSuccess:function(e,t){this.hasImage=!0,this.$emit("change",e.data)},beforeUpload:function(){return!this.readOnly}}},r=n(3),a=Object(r.a)(o,i,[],!1,null,"0cb665e0",null);a.options.__file="src/component/modules/AvatarUpload/index.vue";var l=a.exports,s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-card",{staticClass:"card",attrs:{shadow:"hover","body-style":{height:e.height,width:"100%",padding:0}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.title))])]),n("div",{ref:"native-echarts-wrap",staticClass:"native-echarts-wrap",class:e.className,style:{height:"100%",width:"100%",padding:"20px"},on:{mouseover:function(t){return t.stopPropagation(),e.clearLoop(t)},mouseout:function(t){return t.stopPropagation(),e.startLoop(t)}}},[n("div",{ref:"native-echarts",staticClass:"native-echarts"})])])};s._withStripped=!0;var c=n(7),d={name:"Echarts",props:{option:{type:Object,required:!1,default:function(){return{}}},className:{type:String},height:{type:String,default:"300px"},title:{type:String,default:""},map:{type:Object,default:null},loop:{type:Boolean,default:!1},wait:{type:Number,default:1e4}},data:function(){return{chart:null,resizeTimer:null,loopTimer:[]}},computed:{eDom:function(){return this.$refs["native-echarts"]}},mounted:function(){var e=this;this.initEcharts(),this.resizeHanlder=function(){e.chart&&e.chart.resize()},window.addEventListener("resize",Object(c.a)(this.resizeHanlder))},methods:{initEcharts:function(){this.map&&echarts.registerMap(this.map.type,this.map.json),this.chart=echarts.init(this.eDom),this.initEvent(),this.setOption()},initLoopFn:function(){var e=this,t=setInterval((function(){e.chart.clear(),e.setOption(!0)}),this.wait);this.loopTimer.push(t)},clearLoop:function(){this.loopTimer.forEach((function(e){window.clearInterval(e)})),this.loopTimer=[]},startLoop:function(){var e=this,t=setTimeout((function(){e.initLoopFn()}));this.loopTimer.push(t)},initEvent:function(){var e=this;Object.keys(this.$listeners).forEach((function(t){e.chart.on(t,e.$listeners[t])}))},setOption:function(){var e=this;arguments.length>0&&void 0!==arguments[0]||this.notMerge;this.chart&&(this.chart.setOption(this.option,!0),this.chart.on("click",(function(t){e.$emit("click",t)})),this.chart.resize())}},watch:{option:{deep:!0,handler:function(){this.setOption(!0)}},loop:function(e){e?this.initLoopFn():this.clearLoop()}},beforeDestroy:function(){this.chart&&(window.removeEventListener("resize",this.resizeHanlder),this.chart.dispose(),this.chart=null,this.loop&&this.clearLoop())}},u=Object(r.a)(d,s,[],!1,null,"119302f3",null);u.options.__file="src/component/modules/Charts/Echarts.vue";var p=u.exports,f=function(){var e=this.$createElement,t=this._self._c||e;return t("el-card",{staticClass:"card",attrs:{shadow:"hover","body-style":{height:this.height,width:this.width,padding:0}}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("span",[this._v(this._s(this.title))])]),t("div",{ref:"chart",class:this.className,style:{height:"100%",width:this.width,padding:"20px"}})])};f._withStripped=!0;var h={props:{className:{type:String},yAxisMax:{type:String,default:null},width:{type:String,default:"100%"},height:{type:String,default:"300px"},type:{type:String,default:"bar"},data:{type:Array,default:function(){return[]}},title:{type:String,default:""},option:{type:Object,default:function(){}},rotate:{type:Boolean,default:!1},xUnit:{type:String,default:""},yUnit:{type:String,default:"个"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.resizeHanlder=function(){e.chart&&e.chart.resize()},window.addEventListener("resize",Object(c.a)(this.resizeHanlder))},beforeDestroy:function(){this.chart&&(window.removeEventListener("resize",this.resizeHanlder),this.chart.dispose(),this.chart=null)},computed:{xData:function(){var e=this,t=[];return this.data.forEach((function(n){t.push(n.name+e.xUnit)})),t},chartOption:function(){var e={color:["#7190FF"],tooltip:{textStyle:{fontSize:18},trigger:"axis",formatter:"{b}:{c} ".concat(this.yUnit)},dataZoom:[{type:"inside",show:!0,start:0,endValue:this.xData.length>6?5:this.xData.length,xAxisIndex:[0],zoomLock:!0}],title:{left:"50%",top:"0",textAlign:"center",textStyle:{fontSize:16,color:"#000"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.xData,axisLine:{lineStyle:{color:"#2a343f"}},axisLabel:{interval:0,textStyle:{color:"#000"},formatter:function(e){return 6===e.length?"".concat(e.substring(0,4),"\n").concat(e.substring(4,6)):e.length>5?"".concat(e.substring(0,4),"\n").concat(e.substring(4,6),"..."):e}},splitLine:{lineStyle:{color:"#2a343f"}}}],yAxis:[{type:"value",name:this.yUnit,max:this.yAxisMax,minInterval:1,textStyle:{color:"#000"},axisLine:{lineStyle:{color:"#2a343f"}},axisLabel:{color:"#000",textStyle:{color:"#000"}},splitLine:{lineStyle:{color:"#2a343f"}}}],series:[{barWidth:30,name:this.yUnit,type:this.type,data:this.data.map((function(e){return e.value})),itemStyle:{normal:{lineStyle:{color:"#66e0ef"},label:{show:!0,color:"#fff"}}}}]};if(e.series[0].itemStyle.normal.lineStyle.color="#0B8A82",e.grid={top:"8%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},"bar"===this.type&&(e.tooltip.axisPointer={type:"shadow"}),this.rotate){var t=[e.yAxis,e.xAxis];e.xAxis=t[0],e.yAxis=t[1],e.yAxis[0].data=e.yAxis[0].data.reverse(),e.series[0].data=e.series[0].data.reverse(),e.xAxis[0].position="top",e.dataZoom[0]={type:"inside",show:!0,startValue:4,endValue:7,yAxisIndex:[0],zoomLock:!0},e.series[0].barWidth=null}return e}},methods:{initChart:function(){var e=this;this.$refs.chart&&(this.chart=echarts.init(this.$refs.chart),this.chart.setOption(this.chartOption,!0),this.chart.off("click"),this.chart.on("click",(function(t){e.$emit("click",t)})),this.chart.resize())}},watch:{data:{deep:!0,immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){t.initChart()}))}},chartOption:{handler:function(e){var t=this;this.$nextTick((function(){t.initChart()}))}}}},m=Object(r.a)(h,f,[],!1,null,"c0c45bfa",null);m.options.__file="src/component/modules/Charts/LineChart.vue";var b=m.exports,g=function(){var e=this.$createElement,t=this._self._c||e;return t("el-card",{staticClass:"card",attrs:{shadow:"hover","body-style":{height:this.height,width:this.width,padding:0}}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("span",[this._v(this._s(this.title))])]),t("div",{ref:"chart",class:this.className,style:{height:"100%",width:this.width,padding:"20px"}})])};g._withStripped=!0;var y=n(19).a,v=Object(r.a)(y,g,[],!1,null,"87e5e9ee",null);v.options.__file="src/component/modules/Charts/PieChart.vue";var w=v.exports,_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"upload-container"},[e.view.upload&&!e.readOnly?n("el-upload",{ref:"upload",attrs:{action:e.uploadUrl,data:e.uploadParams,accept:e.accept,headers:{Authorization:this.$store.getters.token},"show-file-list":!1,"before-upload":e.beforeUpload,"on-success":e.uploadSuccess,multiple:""}},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"上传附件",placement:"bottom"}},[n("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",loading:e.btnSaveIsLoading,type:"primary"}},[e._v("上传附件")])],1)],1):e._e(),e.view.list?n("ProTable",{ref:"table",attrs:{listField:e.listField,emptyText:"暂无附件",tableName:e.tableName,maxHeightMinus:290,pageSize:[10,20,50],tableTitle:e.tableTitle,tableParams:e.tableParams,promiseForSelect:e.promiseForSelect,fullHeight:e.fullHeight,visibleList:{searchForm:!0,btnAdd:!1,actionColumnBtnEdit:!1,actionColumnBtnDel:!1,tableTitle:!1},paginationLayout:e.paginationLayout,showPagination:e.showPagination,isMultiple:e.isMultiple},on:{selection:e.getSelection},scopedSlots:e._u([{key:"columnFormatter",fn:function(t){var i=t.prop,o=t.row;return["filename"===i?[n("span",[e._v(e._s(o.filename))])]:e._e()]}},{key:"btnBarPrevBtn",fn:function(){},proxy:!0},{key:"btnCustom",fn:function(t){return[e._t("btnCustom",null,{row:t.row}),!1===t.row.isdeleted?n("div",[n("el-dropdown",{staticClass:"selectButton",attrs:{trigger:"click",placement:"bottom"}},[n("el-button",{staticClass:"el-dropdown-link",attrs:{type:"text"}},[e._v(" 更多"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[n("i",{staticClass:"el-icon-download",on:{click:function(n){return e.btnDownloadOnClick(t)}}},[n("span",{staticClass:"dropLink"},[e._v(" 下载 ")])])]),n("el-dropdown-item",[n("i",{staticClass:"el-icon-delete",on:{click:function(n){return e.btnDelOnClick(t)}}},[n("span",{staticClass:"dropLink"},[e._v(" 删除 ")])])])],1)],1)],1):e._e()]}}],null,!0)}):e._e()],1)};_._withStripped=!0;var O=n(2),C=n(0),x=n(5),S=n.n(x),k=n(6);let j=class extends C.c{constructor(){super(...arguments),this.API_URL=this.API_URL,this.btnSaveIsLoading=!1}get view(){return{btnAdd:!1,btnDel:!0,btnEdit:!1,upload:!0,list:!0,tableTitle:!1,...this.visibleList}}get tableParams(){const e={};return this.resourceid&&(e.resourceid=this.resourceid),this.fileType&&(e.type=this.fileType),e}get uploadParams(){const{myTask:e,resourceid:t,fileType:n}=this,i={userid:this.$store.getters.userid};return t&&(i.resourceid=t),n&&(i.filetype=n),i}beforeUpload(){return this.btnSaveIsLoading=!0,this.$message({type:"info",message:"文件上传中……"}),!0}uploadSuccess(e){const{code:t}=e;400===t?this.$message({type:"error",message:"上传失败"}):(this.$message({type:"success",message:"上传成功"}),this.tableReload(),this.$emit("uploadSuccess")),this.btnSaveIsLoading=!1}btnDownloadOnClick(e){!function(e,t,n,i="get"){let o;o="get"===i?S.a.prototype.$PROCRUD.axios.get(e,{responseType:"blob",params:n}):S.a.prototype.$PROCRUD.axios.post(e,n,{responseType:"blob"}),o.then(e=>{if(!e)return;const n=new Blob([e]),i=new Date;let o;o=/^.*\..{1,4}$/.test(t)?t:`${t} ${i.getFullYear()}年${i.getMonth()+1}月${i.getDate()}日${i.getHours()}时${i.getMinutes()}分${i.getSeconds()}秒.xls`;const r=document.createElement("a");r.style.display="none",r.download=o,r.href=URL.createObjectURL(n),document.body.appendChild(r),r.click(),URL.revokeObjectURL(r.href),document.body.removeChild(r)})}(this.API_URL+"file/download",e.row.filename,{id:e.row.id})}btnDelOnClick({row:e}){this.$confirm("此操作将删除该附件, 是否继续?","提示",{confirmButtonText:"确认删除",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$PROCRUD.crud(k.a.DELETE,this.tableName,{},{id:e.id}).then(e=>{200===e.code&&(this.$message.success("删除成功"),this.tableReload())})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}tableReload(){this.$refs.table.tableReload()}getSelection(e){this.$emit("selection",e)}};Object(O.a)([Object(C.b)({type:Boolean,default:!1})],j.prototype,"fullHeight",void 0),Object(O.a)([Object(C.b)({type:String,default:"data.list"})],j.prototype,"listField",void 0),Object(O.a)([Object(C.b)({type:String,default:".doc,.docx,.xls,.xlsx,.PDF"})],j.prototype,"accept",void 0),Object(O.a)([Object(C.b)({type:Boolean,default:!1})],j.prototype,"showPagination",void 0),Object(O.a)([Object(C.b)({type:String,default:""})],j.prototype,"resourceid",void 0),Object(O.a)([Object(C.b)({type:Object,default:null})],j.prototype,"myTask",void 0),Object(O.a)([Object(C.b)({type:Object,default:()=>({})})],j.prototype,"visibleList",void 0),Object(O.a)([Object(C.b)({type:String,default:""})],j.prototype,"tableTitle",void 0),Object(O.a)([Object(C.b)({type:String,default:window.__HOST__URL__+window.__PREFIX__URL__+"file/upload"})],j.prototype,"uploadUrl",void 0),Object(O.a)([Object(C.b)({type:String,default:"file"})],j.prototype,"tableName",void 0),Object(O.a)([Object(C.b)({type:String,default:"sizes,total,prev, pager, next"})],j.prototype,"paginationLayout",void 0),Object(O.a)([Object(C.b)({type:Boolean,default:!1})],j.prototype,"isMultiple",void 0),Object(O.a)([Object(C.b)({type:String,default:""})],j.prototype,"fileType",void 0),Object(O.a)([Object(C.b)({type:Boolean,default:!1})],j.prototype,"readOnly",void 0),j=Object(O.a)([Object(C.a)({name:"FileUpload"})],j);var T=j,$=Object(r.a)(T,_,[],!1,null,"1ceae41a",null);$.options.__file="src/component/modules/FileUpload/index.vue";var E=$.exports,L=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"tinymce-container editor-container",class:{fullscreen:this.fullscreen}},[t("textarea",{staticClass:"tinymce-textarea",attrs:{id:this.tinymceId}}),t("div",{staticClass:"editor-custom-btn-container",staticStyle:{display:"none"}},[t("editorImage",{staticClass:"editor-upload-btn",attrs:{color:"#1890ff"},on:{successCBK:this.imageSuccessCBK}})],1)])};L._withStripped=!0;var D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"upload-container"},[n("el-button",{style:{background:e.color,borderColor:e.color},attrs:{icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(t){e.dialogVisible=!0}}},[e._v("上传图片 ")]),n("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-upload",{staticClass:"editor-slide-upload",attrs:{multiple:!0,"file-list":e.fileList,"show-file-list":!0,"on-remove":e.handleRemove,action:e.uploadUrl,headers:{Authorization:e.getToken},"on-success":e.handleSuccess,"before-upload":e.beforeUpload,"list-type":"picture-card"}},[n("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1),n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确 定")])],1)],1)};D._withStripped=!0;var F=n(20).a,A=Object(r.a)(F,D,[],!1,null,"9127f970",null);A.options.__file="src/component/modules/Tinymce/components/editorImage.vue";var P=A.exports,M=["advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools insertdatetime link lists nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount"],B=["searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample","hr bullist numlist link image charmap preview anchor pagebreak insertdatetime table forecolor backcolor fullscreen"],N={name:"Tinymce",components:{editorImage:P},props:{id:{type:String,default:function(){return"vue-tinymce-".concat(+new Date).concat((1e3*Math.random()).toFixed(0))}},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{type:String,default:"file edit insert view format table"},readonly:{type:Boolean,default:!1},height:{type:Number,required:!1,default:360}},data:function(){return{hasChange:!1,hasInit:!1,tinymceId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN"}}},computed:{language:function(){return this.languageTypeList[this.$store.getters.language]}},watch:{value:function(e){var t=this;!this.hasChange&&this.hasInit&&this.$nextTick((function(){return window.tinymce.get(t.tinymceId).setContent(e||"")}))},language:function(){var e=this;this.destroyTinymce(),this.$nextTick((function(){return e.initTinymce()}))}},mounted:function(){this.initTinymce()},activated:function(){this.initTinymce()},deactivated:function(){this.destroyTinymce()},destroyed:function(){this.destroyTinymce()},methods:{initTinymce:function(){var e=this,t=this;window.tinymce.init({selector:"#".concat(this.tinymceId),height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:B,menubar:this.menubar,plugins:M,readonly:this.readonly,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:function(n){t.value&&n.setContent(t.value),t.hasInit=!0,n.on("NodeChange Change KeyUp SetContent",(function(){e.hasChange=!0,e.$emit("input",n.getContent())}))},setup:function(e){e.on("FullscreenStateChanged",(function(e){t.fullscreen=e.state}))},images_upload_handler:function(e,n,i,o){t.$store.getters.token}})},destroyTinymce:function(){var e=window.tinymce.get(this.tinymceId);this.fullscreen&&e.execCommand("mceFullScreen"),e&&e.destroy()},setContent:function(e){window.tinymce.get(this.tinymceId).setContent(e)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()},imageSuccessCBK:function(e){var t=this;e.forEach((function(e){window.tinymce.get(t.tinymceId).insertContent('<img class="wscnph" src="'.concat(e.url,'" >'))}))}}},R=Object(r.a)(N,L,[],!1,null,"02b04f62",null);R.options.__file="src/component/modules/Tinymce/index.vue";var I=R.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"table-form-wrapper"},[n("el-form",{ref:"proForm",staticClass:"form",class:{pad:"pad"===e.deviceMode,mobile:"mobile"===e.deviceMode},attrs:{model:e.models,"label-position":e.data&&e.data.config&&e.data.config.labelPosition,"label-width":e.data&&e.data.config&&e.data.config.labelWidth?e.data.config.labelWidth+"px":"140px",size:e.data&&e.data.config&&e.data.config.size}},[e._l(e.data&&e.data.list||[],(function(t,i){return[n("ProLayout",e._g({key:i,attrs:{models:e.models,data:e.data,item:t,readOnly:e.readOnly,rules:e.rules,remote:e.remote,formTableConfig:e.formTableConfig}},e.$listeners))]}))],2)],1)};i._withStripped=!0;var o=n(2),r=n(0),a=n(8),l=n(21),s=n.n(l),c=n(14);let d=class extends r.c{constructor(){super(...arguments),this.models={},this.fieldMap={},this.linkEffect={}}created(){this.data&&this.data.list&&this.generateModel(this.data.list)}controlFieldHandler(e){this.rules.forEach(e=>{const t=this.models[e.field];if(this.linkEffect[e.field]&&this.resetComponent(this.linkEffect[e.field]),t){const n=e.control.filter(e=>t.includes(e.value));if(n.length>0){const t=[];for(const e of n)t.push(...e.rule);t.length>0&&(this.linkEffect[e.field]=[],t.forEach(t=>{const n=this.fieldMap[t.field];if(n){switch(t.operator){case"show":this.$set(n,"hidden",!1),this.models[t.field]&&0!==this.models[t.field].length||!t.value||(Array.isArray(this.models[t.field])?this.models[t.field].push(t.value):this.models[t.field]=t.value);break;case"hidden":this.$set(n,"hidden",!0);break;case"required":this.setRequired(n);break;case"unrequired":this.setUnRequired(n)}this.linkEffect[e.field].push(t)}}))}}})}setRequired(e){e.options.required||(e.options.required=!0,e.rules.push({message:e.name+"必须填写",required:!0}))}resetComponent(e){e.forEach(e=>{const t=this.fieldMap[e.field];if(t)switch(e.operator){case"show":this.$set(t,"hidden",!0);break;case"hidden":this.$set(t,"hidden",!1),this.models[e.field]=e.value?e.value:null;break;case"required":this.setUnRequired(t);break;case"unrequired":this.setRequired(t)}})}setUnRequired(e){e.options.required=!1,e.rules=e.rules.filter(e=>!e.required)}generateModel(e,t=!0){for(let n=0;n<e.length