UNPKG

hulk-form-designer

Version:

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

27 lines (25 loc) 157 kB
/*! * hulk-form-designer v0.9.5-18 * Author: hulk * Documentation: https://gitee.com/jiudu800/form-designer/blob/master/README.md * Date: Sat Jul 10 2021 20:31:50 GMT+0800 (中国标准时间) */ !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__27__){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=61)}([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 x}));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){u(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){u(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){u(e,t,n)}))}function u(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 d={__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,u=l.extend(t);return b(u,e,l),s()&&c(u,e),u}var g={prototype:!0,arguments:!0,callee:!0,caller:!0};function b(e,t,n){Object.getOwnPropertyNames(t).forEach((function(i){if(!g[i]){var o=Object.getOwnPropertyDescriptor(e,i);if(!o||o.configurable){var a,l,s=Object.getOwnPropertyDescriptor(t,i);if(!d){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 x(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 he})),n.d(t,"c",(function(){return xe})),n.d(t,"d",(function(){return me})),n.d(t,"e",(function(){return oe})),n.d(t,"f",(function(){return ie})),n.d(t,"g",(function(){return Q})),n.d(t,"h",(function(){return q})),n.d(t,"i",(function(){return ee})),n.d(t,"j",(function(){return fe})),n.d(t,"k",(function(){return pe}));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 u(e,t){return Object.hasOwnProperty.call(e,t)}function d(e){return Array.isArray(e)}var p=Object.prototype.toString,f=function(e){return p.call(e)};function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)&&t<=4294967295}function m(e){return null!==e&&"object"==typeof e}function g(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function b(e){return"function"==typeof e}function y(e,t){o.a.util.warn(e,t)}var v=void 0;try{var w=n(5);w&&x(w)?v=w:w&&"default"in w&&x(w.default)&&(v=w.default)}catch(e){}var _=null,O=null;function x(e){return e&&"function"==typeof e&&"Vue"===e.name}function S(){return _}function C(e){O=e}function j(){return O?function e(t){if(T.has(t))return T.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}}),T.set(t,n),t.$parent&&(n.parent=e(t.$parent));t.$root&&(n.root=e(t.$root));return n}(O):null}var k,T=new WeakMap;function E(e){var t=j();return null==t?void 0:t.proxy}function $(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 L(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):y("slots."+t+'() got called outside of the "render()" scope',e)}}var A=function(){return(A=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 D(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 F(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 P(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}function N(e){return a?Symbol.for(e):e}var M=N("composition-api.preFlushQueue"),R=N("composition-api.postFlushQueue"),B="composition-api.refKey",I=new WeakMap,U=(new WeakMap,new WeakMap),z=function(e){s(this,"value",{get:e.get,set:e.set})};function V(e,t){var n=new z(e),i=Object.seal(n);return U.set(i,!0),i}function q(e){var t;if(W(e))return e;var n=Q(((t={})[B]=e,t));return V({get:function(){return n[B]},set:function(e){return n[B]=e}})}function W(e){return e instanceof z}function H(e,t){var n=e[t];return W(n)?n:V({get:function(){return e[t]},set:function(n){return e[t]=n}})}function K(e){var t;return Boolean(e&&u(e,"__ob__")&&"object"==typeof e.__ob__&&(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function J(e){var t;return Boolean(e&&u(e,"__ob__")&&"object"==typeof e.__ob__&&!(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function G(e){if(!(!g(e)||K(e)||Array.isArray(e)||W(e)||(t=e,n=S(),n&&t instanceof n)||I.has(e))){var t,n;I.set(e,!0);for(var i=Object.keys(e),o=0;o<i.length;o++)Y(e,i[o])}}function Y(e,t,n){if("__ob__"!==t&&!K(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])}G(n),s(e,t,{get:function(){var o=i?i.call(e):n;return t!==B&&W(o)?o.value:o},set:function(r){if(!i||o){var a=i?i.call(e):n;t!==B&&W(a)&&!W(r)?a.value=r:o?o.call(e,r):n=r,G(r)}}})}}function X(e){var t,n=_||v;n.observable?t=n.observable(e):t=$(n,{data:{$$state:e}})._data.$$state;return u(t,"__ob__")||function e(t,n){var i,o;void 0===n&&(n=new WeakMap);if(n.has(t))return;c(t,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:l,depend:l,addSub:l,removeSub:l}}}(t)),n.set(t,!0);try{for(var r=D(Object.keys(t)),a=r.next();!a.done;a=r.next()){var s=a.value,u=t[s];(g(u)||d(u))&&!K(u)&&Object.isExtensible(u)&&e(u)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}}(t),t}function Z(){return X({}).__ob__}function Q(e){if(!m(e))return e;if(!g(e)&&!d(e)||K(e)||!Object.isExtensible(e))return e;var t=X(e);return G(t),t}function ee(e,t,n){var i,o=S().util,r=(o.warn,o.defineReactive);if(d(e)){if(h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if("length"===t&&n!==e.length)return e.length=n,null===(i=e.__ob__)||void 0===i||i.dep.notify(),n}if(t in e&&!(t in Object.prototype))return e[t]=n,n;var a=e.__ob__;return e._isVue||a&&a.vmCount?n:a?(r(a.value,t,n),Y(e,t,n),a.dep.notify(),n):(e[t]=n,n)}function te(e){return function(t){var n,i=E(((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=j())||void 0===n?void 0:n.proxy;C(e);try{return t.apply(void 0,P([],F(i)))}finally{C(r)}}}(t,i))}(S(),i,e,t)}}te("beforeMount");var ne,ie=te("mounted"),oe=(te("beforeUpdate"),te("updated"),te("beforeDestroy"));te("destroyed"),te("errorCaptured"),te("activated"),te("deactivated"),te("serverPrefetch");function re(){se(this,M)}function ae(){se(this,R)}function le(){var e,t=null===(e=j())||void 0===e?void 0:e.proxy;return t?function(e){return void 0!==e[M]}(t)||function(e){e[M]=[],e[R]=[],e.$on("hook:beforeUpdate",re),e.$on("hook:updated",ae)}(t):(ne||(ne=$(S())),t=ne),t}function se(e,t){for(var n=e[t],i=0;i<n.length;i++)n[i]();n.length=0}function ce(e,t,n){var i=function(){e.$nextTick((function(){e[M].length&&se(e,M),e[R].length&&se(e,R)}))};switch(n){case"pre":i(),e[M].push(t);break;case"post":i(),e[R].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 ue(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 de(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)}}},u=function(){r&&(r(),r=null)},p=function(t){return s||e===ne?t:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return ce(e,(function(){t.apply(void 0,P([],F(n)))}),a)}};if(null===n){var h=!1,v=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(!h)try{h=!0,t(c)}finally{h=!1}}),l,{deep:i.deep||!1,sync:s,before:u});ue(v,u),v.lazy=!1;var w=v.get.bind(v);return v.get=p(w),function(){v.teardown()}}var _,O=i.deep;W(t)?_=function(){return t.value}:J(t)?(_=function(){return t},O=!0):d(t)?_=function(){return t.map((function(t){return W(t)?t.value:J(t)?function e(t,n){void 0===n&&(n=new Set);if(!m(t)||n.has(t))return t;if(n.add(t),W(t))e(t.value,n);else if(d(t))for(var i=0;i<t.length;i++)e(t[i],n);else if(r=t,"[object Set]"===f(r)||function(e){return"[object Map]"===f(e)}(t))t.forEach((function(t){e(t,n)}));else if(g(t))for(var o in t)e(t[o],n);var r;return t}(t):b(t)?t():(y("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),l)}))}:b(t)?_=t:(_=l,y("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 x=function(e,t){u(),n(e,t,c)},S=p(x);if(i.immediate){var C=S,j=function(e,t){j=C,x(e,d(e)?[]:t)};S=function(e,t){j(e,t)}}var k=e.$watch(_,S,{immediate:i.immediate,deep:O,sync:s}),T=e._watchers[e._watchers.length-1];return J(T.value)&&(null===(o=T.value.__ob__)||void 0===o?void 0:o.dep)&&O&&T.value.__ob__.dep.addSub({update:function(){T.run()}}),ue(T,u),function(){k()}}function pe(e,t){var n=function(e){return A({immediate:!0,deep:!1,flush:"pre"},e)}(t);return de(le(),e,null,n)}function fe(e,t,n){var i=null;"function"==typeof t?i=t:(n=t,i=null);var o=function(e){return A({immediate:!1,deep:!1,flush:"pre"},e)}(n);return de(le(),e,i,o)}function he(e){var t,n,i,o,r,a=null===(t=j())||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(!k){var e=$(S(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;k={Watcher:t,Dep:n},e.$destroy()}return k}(),u=c.Watcher,d=c.Dep;r=function(){return s||(s=new u(a,n,l,{lazy:!0})),s.dirty&&s.evaluate(),d.target&&s.depend(),s.value},o=function(e){i&&i(e)}}else{var p=$(S(),{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 V({get:r,set:o})}var me=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=S())||void 0===e?void 0:e.nextTick.apply(this,t)};var ge={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 be(e){var t=ge.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,i=ge.get(e,"refs")||[],o=0;o<i.length;o++){var r=t[s=i[o]];!n[s]&&r&&W(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&&W(r)&&(r.value=n[s],l.push(s))}ge.set(e,"refs",l)}}function ye(e,t){var n=e.$options._parentVnode;if(n){for(var i=ge.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]=L(e,l))}ge.set(e,"slots",a)}}function ve(e,t,n){var i=O;C(e);try{return t(e)}catch(e){if(!n)throw e;n(e)}finally{C(i)}}function we(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 ve(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(){y("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=Q({}),r=e[i],a=function(t){s(o,t,{get:function(){return e[i][t]}})};try{for(var l=D(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(){y("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__",Z()),ye(e,o.slots),ve(e,(function(){n=i(t,o)})),!n)return;if(b(n)){var r=n;return void(e.$options.render=function(){return ye(e,o.slots),ve(e,(function(){return r()}))})}if(g(n)){J(n)&&(n=function(e){if(!g(e))return e;var t={};for(var n in e)t[n]=H(e,n);return t}(n)),ge.set(e,"rawBindings",n);var a=n;return void Object.keys(a).forEach((function(t){var n=a[t];W(n)||(J(n)?d(n)&&(n=q(n)):b(n)?n=n.bind(e):m(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)&&J(t))return n.set(t,!0),!0;if(!g(t)||K(t))return!1;return Object.keys(t).some((function(i){return e(t[i],n)}))}(n)&&function e(t){if(!g(t)||W(t)||J(t)||K(t))return;var n=S().util.defineReactive;Object.keys(t).forEach((function(i){var o=t[i];n(t,i,o),o&&e(o)}))}(n):n=q(n)),function(e,t,n){var i=e.$options.props;t in e||i&&u(i,t)||(W(n)?s(e,t,{get:function(){return n.value},set:function(e){n.value=e}}):s(e,t,{get:function(){return J(n)&&n.__ob__.dep.depend(),n},set:function(e){n=e}}))}(e,t,n)}))}0}(e,e.$props),"function"==typeof o?o.call(e,e):o||{}}},mounted:function(){be(this)},updated:function(){be(this)}})}function _e(e){(function(e){return u(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],u(n,i)?o!==r&&g(o)&&!W(o)&&g(r)&&!W(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){_=e,Object.defineProperty(e,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(e),we(e))}var Oe={install:function(e){return _e(e)}};function xe(e){return e}"undefined"!=typeof window&&window.Vue&&window.Vue.use(Oe),t.b=Oe},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 u=c.render;c.render=function(e,t){return s.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,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:"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:"number",name:"计数器",icon:"sort-numeric-up",labelWidth:void 0,hidden:!1,options:{width:"100%",required:!1,defaultValue:0,min:"",max:"",step:1,disabled:!1,controlsPosition:"",hiddenLabel:!1}},{type:"radio",name:"单选框组",icon:"regular/dot-circle",labelWidth:void 0,hidden:!1,options:{inline:!0,defaultValue:"",showLabel:!0,hiddenLabel:!1,options:[{value:"value",label:"label"}],required:!1,disabled:!1,width:"100%",remote:"dynamic",dynamic:{method:"GET",parameter:"",path:"http://jsonplaceholder.typicode.com/users",dataLocation:"list",valueKey:"value",labelKey:"label",childrenKey:"children"},remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{type:"checkbox",name:"多选框组",icon:"regular/check-square",labelWidth:void 0,hidden:!1,options:{inline:!0,buttonStyle:!1,defaultValue:[],showLabel:!0,disabled:!1,min:null,max:null,hiddenLabel:!1,options:[{value:"value",label:"label"}],required:!1,width:"100%",remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",remote:"dynamic",dynamic:{method:"GET",parameter:"",path:"http://jsonplaceholder.typicode.com/users",dataLocation:"list",valueKey:"value",labelKey:"label",childrenKey:"children"}}},{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:"time",name:"时间选择器",labelWidth:void 0,hidden:!1,icon:"clock",options:{hiddenLabel:!1,defaultValue:!1,readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",type:"datetime",format:"hh:mm:ss",timestamp:!1,required:!1,width:"100%"}},{type:"rate",name:"评分",icon:"regular/star",labelWidth:void 0,hidden:!1,options:{hiddenLabel:!1,defaultValue:null,max:5,disabled:!1,allowHalf:!1,required:!1}},{type:"color",name:"颜色选择器",icon:"palette",labelWidth:void 0,hidden:!1,options:{hiddenLabel:!1,defaultValue:"",disabled:!1,showAlpha:!1,required:!1}},{type:"select",name:"下拉选择框",labelWidth:void 0,hidden:!1,icon:"regular/caret-square-down",options:{hiddenLabel:!1,defaultValue:"",multiple:!1,disabled:!1,clearable:!1,placeholder:"",required:!1,showLabel:!0,allowCreate:!1,width:"100%",options:[{value:"value",label:"label"}],remote:"dynamic",dynamic:{method:"GET",parameter:"",path:"http://jsonplaceholder.typicode.com/users",dataLocation:"list",valueKey:"value",labelKey:"label",childrenKey:"children"},remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{type:"switch",name:"开关",labelWidth:void 0,hidden:!1,icon:"toggle-off",options:{hiddenLabel:!1,defaultValue:!1,required:!1,disabled:!1}},{type:"slider",name:"滑块",icon:"sliders-h",labelWidth:void 0,hidden:!1,options:{hiddenLabel:!1,defaultValue:0,disabled:!1,required:!1,min:0,max:100,step:1,showInput:!1,range:!1,width:"100%"}},{type:"text",name:"文本",icon:"language",options:{defaultValue:"",remoteFunc:"",align:"center",fontSize:"16px",hiddenLabel:!1}},{type:"html",name:"HTML",icon:"heading",labelWidth:void 0,options:{html:null,hiddenLabel:!1}},{type:"cascader",name:"级联选择器",icon:"random",labelWidth:void 0,options:{defaultValue:[],width:"100%",separator:"/",placeholder:"",required:!1,multiple:!1,disabled:!1,clearable:!1,checkStrictly:!1,remote:"dynamic",dynamic:{method:"GET",parameter:"",path:"http://jsonplaceholder.typicode.com/users",dataLocation:"list",valueKey:"value",labelKey:"label",childrenKey:"children"},remoteOptions:[],options:[{value:"A",label:"A",children:[{value:"AA",label:"AA",children:[{value:"AAA",label:"AAA"}]}]}],props:{value:"value",label:"label",children:"children"},remoteFunc:"",hiddenLabel:!1}},{type:"treeselect",name:"树形下拉框",icon:"tree",labelWidth:void 0,options:{remoteFunc:"",placeholder:"",width:"100%",defaultValue:null,maxHeight:300,multiple:!1,remote:"dynamic",dynamic:{method:"GET",parameter:"",path:"http://jsonplaceholder.typicode.com/users",dataLocation:"list",valueKey:"value",labelKey:"label",childrenKey:"children"},appendToBody:!1,props:{value:"value",label:"label",children:"children"},clearable:!0,searchable:!0,noChildrenText:"暂无数据",noOptionsText:"暂无数据",noResultsText:"暂无数据",searchNested:!0,required:!1,showValueLabelSlot:!1,disabled:!1,showCount:!1,disableBranchNodes:!0,remoteOptions:[{value:"测试数据A",label:"测试数据A",children:[{value:"测试数据AA",label:"测试数据AA"},{value:"测试数据AB",label:"测试数据AB"}]},{value:"测试数据B",label:"测试数据B"},{value:"测试数据C",label:"测试数据C"}],hiddenLabel:!1}},{type:"richtext",name:"富文本",icon:"text-width",labelWidth:void 0,hidden:!1,options:{defaultValue:"",readonly:!1,hiddenLabel:!1,required:!1}}],o=[{type:"blank",name:"自定义(插槽)",icon:"chalkboard",labelWidth:void 0,options:{defaultType:"String",hiddenLabel:!1}},{type:"button",name:"按钮",icon:"mouse-pointer",labelWidth:void 0,hidden:!1,options:{text:"确认",eventName:"btnCallback",btnType:"primary",hiddenLabel:!0}},{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",name:"栅格布局",icon:"th",columns:[{span:24,list:[]}],options:{gutter:0,marginTop:0,marginLeft:0,justify:"start",align:"top"}},{type:"grid-table",name:"表格布局",icon:"table",beta:!1,options:{borderWidth:1,borderColor:"#999",width:"100%",sumColSpan:1,sumRowSpan:1},rows:[{columns:[]}]},{type:"tabs",name:"标签页",icon:"tags",beta:!1,items:[{name:"标签页1",label:"标签页1",list:[]}],options:{type:"",hiddenLabel:!0,position:"top"}},{type:"divider",name:"分割线",icon:"divide",labelWidth:void 0,options:{align:"center",hiddenLabel:!0}}],a=[{type:"chart-pie",name:"饼图",icon:"chart-pie",options:{className:"",width:"100%",option:"",hiddenLabel:!0,hollow:!0,height:"300px",data:[{name:"商品一",value:"20"},{name:"商品二",value:"5"},{name:"商品三",value:"10"}]}},{type:"chart-line",name:"柱状/折线图",icon:"chart-line",options:{className:"",yAxisMax:null,width:"100%",type:"bar",option:"",rotate:!1,xUnit:"",yUnit:"个",hiddenLabel:!0,height:"400px",data:[{name:"商品一",value:"20"},{name:"商品二",value:"5"},{name:"商品三",value:"10"}]}},{type:"chart-common",name:"通用图表",icon:"chart-bar",options:{className:"",height:"400px",hiddenLabel:!0,width:"100%",loop:!1,option:{xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[150,230,224,218,135,147,260],type:"line"}]}}}],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";var i=n(31),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:s,isStream:function(e){return l(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,i){"object"==typeof t[i]&&"object"==typeof n?t[i]=e(t[i],n):t[i]=n}for(var i=0,o=arguments.length;i<o;i++)c(arguments[i],n);return t},deepMerge:function e(){var t={};function n(n,i){"object"==typeof t[i]&&"object"==typeof n?t[i]=e(t[i],n):t[i]="object"==typeof n?e({},n):n}for(var i=0,o=arguments.length;i<o;i++)c(arguments[i],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},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 g})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return $})),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),u={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(){},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())}},d=Object(r.a)(u,s,[],!1,null,"119302f3",null);d.options.__file="src/component/modules/Charts/Echarts.vue";var p=d.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 g=m.exports,b=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"}})])};b._withStripped=!0;var y=n(22).a,v=Object(r.a)(y,b,[],!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),x=n(0),S=n(5),C=n.n(S),j=n(6);let k=class extends x.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?C.a.prototype.$PROCRUD.axios.get(e,{responseType:"blob",params:n}):C.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(j.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(x.b)({type:Boolean,default:!1})],k.prototype,"fullHeight",void 0),Object(O.a)([Object(x.b)({type:String,default:"data.list"})],k.prototype,"listField",void 0),Object(O.a)([Object(x.b)({type:String,default:".doc,.docx,.xls,.xlsx,.PDF"})],k.prototype,"accept",void 0),Object(O.a)([Object(x.b)({type:Boolean,default:!1})],k.prototype,"showPagination",void 0),Object(O.a)([Object(x.b)({type:String,default:""})],k.prototype,"resourceid",void 0),Object(O.a)([Object(x.b)({type:Object,default:null})],k.prototype,"myTask",void 0),Object(O.a)([Object(x.b)({type:Object,default:()=>({})})],k.prototype,"visibleList",void 0),Object(O.a)([Object(x.b)({type:String,default:""})],k.prototype,"tableTitle",void 0),Object(O.a)([Object(x.b)({type:String,default:window.__HOST__URL__+window.__PREFIX__URL__+"file/upload"})],k.prototype,"uploadUrl",void 0),Object(O.a)([Object(x.b)({type:String,default:"file"})],k.prototype,"tableName",void 0),Object(O.a)([Object(x.b)({type:String,default:"sizes,total,prev, pager, next"})],k.prototype,"paginationLayout",void 0),Object(O.a)([Object(x.b)({type:Boolean,default:!1})],k.prototype,"isMultiple",void 0),Object(O.a)([Object(x.b)({type:String,default:""})],k.prototype,"fileType",void 0),Object(O.a)([Object(x.b)({type:Boolean,default:!1})],k.prototype,"readOnly",void 0),k=Object(O.a)([Object(x.a)({name:"FileUpload"})],k);var T=k,E=Object(r.a)(T,_,[],!1,null,"1ceae41a",null);E.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 A=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)};A._withStripped=!0;var D=n(23).a,F=Object(r.a)(D,A,[],!1,null,"9127f970",null);F.options.__file="src/component/modules/Tinymce/components/editorImage.vue";var P=F.exports,N=["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"],M=["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"],R={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;th