epx-frame 5.2.2 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/0.js +1 -1
- package/lib/118.js +1 -1
- package/lib/135.js +3 -1
- package/lib/136.js +1 -1
- package/lib/137.js +1 -0
- package/lib/2.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/add-form-item.js +1 -1
- package/lib/components/add-form.js +2 -2
- package/lib/components/ai-agent-page.js +1 -1
- package/lib/components/ai-chat-page.js +1 -1
- package/lib/components/ai-import-page.js +2 -2
- package/lib/components/ai-import.js +1 -1
- package/lib/components/alert.js +1 -1
- package/lib/components/app-index.js +1 -1
- package/lib/components/app-nav.js +2 -2
- package/lib/components/app-tabs.js +1 -1
- package/lib/components/apply-form.js +1 -1
- package/lib/components/approval-index-page.js +2 -2
- package/lib/components/approval-index.js +2 -2
- package/lib/components/base-page.js +2 -2
- package/lib/components/button.js +1 -1
- package/lib/components/card-form-item.js +1 -1
- package/lib/components/card.js +1 -1
- package/lib/components/carousel.js +1 -1
- package/lib/components/category-list.js +1 -1
- package/lib/components/chart.js +2 -2
- package/lib/components/check-history.js +2 -2
- package/lib/components/collapse.js +1 -1
- package/lib/components/color-picker.js +1 -1
- package/lib/components/component.js +1 -1
- package/lib/components/config-page.js +2 -2
- package/lib/components/contacts.js +1 -1
- package/lib/components/dashboard.js +2 -2
- package/lib/components/div.js +1 -1
- package/lib/components/dropdown.js +2 -2
- package/lib/components/edit-entity-list.js +1 -1
- package/lib/components/entity-add-page.js +2 -2
- package/lib/components/entity-apply-page.js +2 -2
- package/lib/components/entity-card-list.js +1 -1
- package/lib/components/entity-list-find-page.js +2 -2
- package/lib/components/entity-list-find.js +2 -2
- package/lib/components/entity-list-page.js +2 -2
- package/lib/components/entity-list.js +2 -2
- package/lib/components/entity-no-submit-sub-list.js +1 -1
- package/lib/components/entity-sub-grid.js +2 -2
- package/lib/components/entity-sub-list.js +2 -2
- package/lib/components/entity-tree-find-page.js +2 -2
- package/lib/components/entity-tree-find.js +2 -2
- package/lib/components/export-file.js +1 -1
- package/lib/components/export.js +2 -2
- package/lib/components/flow-num.js +1 -1
- package/lib/components/footer.js +1 -1
- package/lib/components/form-field.js +1 -1
- package/lib/components/form-item.js +2 -2
- package/lib/components/form.js +2 -2
- package/lib/components/formula.js +1 -1
- package/lib/components/gauge.js +1 -1
- package/lib/components/grid.js +1 -1
- package/lib/components/header.js +1 -1
- package/lib/components/html.js +1 -1
- package/lib/components/icon.js +1 -1
- package/lib/components/iframe.js +1 -1
- package/lib/components/image.js +1 -1
- package/lib/components/import-file.js +1 -1
- package/lib/components/import.js +2 -2
- package/lib/components/layout.js +1 -1
- package/lib/components/list.js +1 -1
- package/lib/components/load-page.js +1 -1
- package/lib/components/m-entity-add-page.js +2 -2
- package/lib/components/m-entity-dept-find.js +1 -1
- package/lib/components/m-entity-list-find.js +1 -1
- package/lib/components/m-entity-list.js +1 -1
- package/lib/components/m-entity-no-submit-sub-list.js +2 -2
- package/lib/components/m-entity-tree-find.js +1 -1
- package/lib/components/m-entity-user-find.js +1 -1
- package/lib/components/menu-index.js +1 -1
- package/lib/components/menu.js +1 -1
- package/lib/components/mine.js +1 -1
- package/lib/components/module-index-page.js +2 -2
- package/lib/components/module-list-page.js +2 -2
- package/lib/components/module-list.js +1 -1
- package/lib/components/module-tabs-page.js +2 -2
- package/lib/components/nav-add-form.js +1 -1
- package/lib/components/num.js +1 -1
- package/lib/components/org-chart.js +1 -1
- package/lib/components/page-help.js +1 -1
- package/lib/components/page-tabs.js +1 -1
- package/lib/components/page.js +2 -2
- package/lib/components/pagination.js +1 -1
- package/lib/components/progress-chart.js +1 -1
- package/lib/components/progress.js +1 -1
- package/lib/components/report-chart.js +2 -2
- package/lib/components/report-html.js +2 -2
- package/lib/components/report-preview.js +2 -2
- package/lib/components/report.js +2 -2
- package/lib/components/router-view.js +1 -1
- package/lib/components/scope.js +2 -2
- package/lib/components/search-bar.js +1 -1
- package/lib/components/search-list.js +1 -1
- package/lib/components/search.js +2 -2
- package/lib/components/step-item.js +1 -1
- package/lib/components/step.js +1 -1
- package/lib/components/tab-bar.js +1 -1
- package/lib/components/tab-tags.js +1 -1
- package/lib/components/tabs.js +1 -1
- package/lib/components/tag.js +1 -1
- package/lib/components/task-list-page.js +2 -2
- package/lib/components/task-list.js +2 -2
- package/lib/components/template.js +2 -2
- package/lib/components/text-editor.js +1 -1
- package/lib/components/text.js +1 -1
- package/lib/components/title.js +1 -1
- package/lib/components/update-form-item.js +1 -1
- package/lib/components/update-form.js +2 -2
- package/lib/components/update-sub-list.js +1 -1
- package/lib/components/video.js +1 -1
- package/lib/components/visual-config-page.js +2 -2
- package/lib/http.js +2 -2
- package/lib/router.js +2 -2
- package/lib/store.js +2 -2
- package/lib/utils/Config.js +1 -1
- package/lib/utils/axios.js +2 -2
- package/lib/utils/fieldFactory.js +2 -2
- package/lib/utils/formula.js +1 -1
- package/lib/utils/index.js +2 -2
- package/lib/utils/loadComponent.js +1 -1
- package/lib/utils/loadLibrary.js +1 -1
- package/lib/utils/meta.js +1 -1
- package/lib/utils/mixins/component.js +2 -2
- package/lib/utils/mixins/global.js +2 -2
- package/lib/utils/mixins/index.js +2 -2
- package/lib/utils/page.js +1 -1
- package/lib/utils/pdf.viewer.js +2 -2
- package/lib/utils/security.js +1 -0
- package/lib/utils/util.js +1 -1
- package/package.json +1 -1
package/lib/store.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=
|
|
1
|
+
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=674)}({0:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(7);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},1:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10);var i=n(15);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},103:function(t,e){t.exports=require("epx-frame/lib/http")},11:function(t,e){t.exports=require("core-js/modules/web.dom-collections.for-each.js")},115:function(t,e){t.exports=require("core-js/modules/es.error.cause.js")},12:function(t,e){t.exports=require("core-js/modules/es.regexp.exec.js")},139:function(t,e){t.exports=require("epx-frame/lib/utils/axios")},14:function(t,e){t.exports=require("core-js/modules/es.array.find.js")},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},16:function(t,e){t.exports=require("core-js/modules/es.iterator.constructor.js")},17:function(t,e,n){"use strict";function r(t,e,n,i){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}(r=function(t,e,n,i){function o(e,n){r(t,e,(function(t){return this._invoke(e,n,t)}))}e?a?a(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(o("next",0),o("throw",1),o("return",2))})(t,e,n,i)}function i(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
-
var t,e,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function c(n,i,a,o){var c=i&&i.prototype instanceof s?i:s,f=Object.create(c.prototype);return r(f,"_invoke",function(n,r,i){var a,o,c,s=0,f=i||[],d=!1,l={p:0,n:0,v:t,a:b,f:b.bind(t,4),d:function(e,n){return a=e,o=0,c=t,l.n=n,u}};function b(n,r){for(o=n,c=r,e=0;!d&&s&&!i&&e<f.length;e++){var i,a=f[e],b=l.p,m=a[2];n>3?(i=m===r)&&(c=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=t):a[0]<=b&&((i=n<2&&b<a[1])?(o=0,l.v=r,l.n=a[1]):b<m&&(i=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,l.n=m,o=0))}if(i||n>1)return u;throw d=!0,r}return function(i,f,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===f&&b(f,m),o=f,c=m;(e=o<2?t:c)||!d;){a||(o?o<3?(o>1&&(l.n=-1),b(o,c)):l.n=c:l.v=c);try{if(s=2,a){if(o||(i="next"),e=a[i]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,o<2&&(o=0)}else 1===o&&(e=a.return)&&e.call(a),o<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=t}else if((e=(d=l.n<0)?c:n.call(r,l))!==u)break}catch(e){a=t,o=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,a,o),!0),f}var u={};function s(){}function f(){}function d(){}e=Object.getPrototypeOf;var l=[][a]?e(e([][a]())):(r(e={},a,(function(){return this})),e),b=d.prototype=s.prototype=Object.create(l);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,r(t,o,"GeneratorFunction")),t.prototype=Object.create(b),t}return f.prototype=d,r(b,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,o,"GeneratorFunction"),r(b),r(b,o,"Generator"),r(b,a,(function(){return this})),r(b,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:c,m:m}})()}n.d(e,"a",(function(){return i}))},177:function(t,e){t.exports=require("element-ui")},18:function(t,e){t.exports=require("core-js/modules/es.string.replace.js")},19:function(t,e){t.exports=require("core-js/modules/es.array.includes.js")},20:function(t,e){t.exports=require("core-js/modules/es.array.concat.js")},21:function(t,e){t.exports=require("core-js/modules/es.object.keys.js")},22:function(t,e){t.exports=require("core-js/modules/es.string.includes.js")},23:function(t,e){t.exports=require("core-js/modules/web.dom-collections.iterator.js")},24:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4);function i(t){var e=function(t,e){if("object"!=Object(r.a)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Object(r.a)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Object(r.a)(e)?e:e+""}},249:function(t,e){t.exports=require("epx-frame/lib/utils/page")},25:function(t,e){t.exports=require("core-js/modules/es.iterator.map.js")},26:function(t,e){t.exports=require("core-js/modules/es.array.push.js")},28:function(t,e){t.exports=require("core-js/modules/es.iterator.for-each.js")},29:function(t,e){t.exports=require("core-js/modules/es.array.splice.js")},3:function(t,e){t.exports=require("core-js/modules/es.object.to-string.js")},30:function(t,e){t.exports=require("core-js/modules/es.iterator.find.js")},31:function(t,e){t.exports=require("core-js/modules/es.array.filter.js")},32:function(t,e,n){"use strict";function r(t,e,n,r,i,a,o){try{var c=t[a](o),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function c(t){r(o,i,a,c,u,"next",t)}function u(t){r(o,i,a,c,u,"throw",t)}c(void 0)}))}}n.d(e,"a",(function(){return i}))},33:function(t,e){t.exports=require("core-js/modules/es.string.iterator.js")},34:function(t,e){t.exports=require("vuex")},38:function(t,e){t.exports=require("vue")},39:function(t,e){t.exports=require("core-js/modules/es.array.iterator.js")},4:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return r}))},40:function(t,e){t.exports=require("core-js/modules/es.json.parse.js")},42:function(t,e){t.exports=require("core-js/modules/es.iterator.filter.js")},423:function(t,e,n){"use strict";n.r(e);n(39),n(3),n(12),n(18),n(11),n(23),n(16),n(28);var r={},i=n(673);i.keys().forEach((function(t){var e=t.replace(/^\.\/(.+).js$/,"$1");"index"!==e&&(r[e]=i(t).default)})),e.default=r},44:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"o",(function(){return s})),n.d(e,"w",(function(){return f})),n.d(e,"q",(function(){return d})),n.d(e,"x",(function(){return l})),n.d(e,"v",(function(){return b})),n.d(e,"y",(function(){return m})),n.d(e,"t",(function(){return j})),n.d(e,"u",(function(){return O})),n.d(e,"g",(function(){return p})),n.d(e,"K",(function(){return v})),n.d(e,"E",(function(){return y})),n.d(e,"G",(function(){return E})),n.d(e,"p",(function(){return h})),n.d(e,"h",(function(){return g})),n.d(e,"j",(function(){return T})),n.d(e,"z",(function(){return I})),n.d(e,"D",(function(){return _})),n.d(e,"B",(function(){return S})),n.d(e,"n",(function(){return M})),n.d(e,"C",(function(){return D})),n.d(e,"A",(function(){return w})),n.d(e,"m",(function(){return A})),n.d(e,"H",(function(){return P})),n.d(e,"I",(function(){return R})),n.d(e,"l",(function(){return L})),n.d(e,"F",(function(){return x})),n.d(e,"r",(function(){return C})),n.d(e,"s",(function(){return k})),n.d(e,"i",(function(){return F})),n.d(e,"k",(function(){return N})),n.d(e,"J",(function(){return G}));var r="ADD_LIST",i="ADD_OBJECT_COUNT",a="ADD_OBJECT",o="ADD_TAG",c="ADD_META",u="ADD_PAGE",s="DELETE_PAGE",f="GET_USER",d="DELETE_USER",l="GET_USER_INFO",b="GET_SYSTEM_CONFIG",m="GET_VIEWPORT",j="GET_APP_CONFIG",O="GET_MENU",p="CLEAR_MENU",v="SWITCH_MENU_SHOW",y="PUSH_ROUTER",E="SET_ROUTER",h="DELETE_ROUTER",g="CLEAR_ROUTER",T="CLEAR_TABS_ROUTER",I="PICK_ROUTER",_="PUSH_MODULE_ROUTER",S="POP_MODULE_ROUTER",M="DELETE_MODULE_ROUTER",D="PUSH_MENU_ROUTER",w="POP_MENU_ROUTER",A="DELETE_MENU_ROUTER",P="SET_ROUTER_QUERY",R="SET_ROUTER_RELOAD",L="CREATE_TAB",x="SELECT_TAB",C="DESTORY_TAB",k="DESTORY_TAG_TAB",F="CLEAR_TABS",N="CLEAR_TAG_TABS",G="SET_TAB_QUERY"},46:function(t,e){t.exports=require("core-js/modules/es.array.find-index.js")},51:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(15);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,c=[],u=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return c}}(t,e)||Object(r.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},52:function(t,e){t.exports=require("core-js/modules/es.promise.js")},53:function(t,e){t.exports=require("core-js/modules/es.object.values.js")},630:function(t,e){t.exports=require("epx-frame/lib/utils/meta")},672:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(38),a=n.n(i),o=n(34),c=n.n(o),u=n(423);a.a.use(c.a);var s=new c.a.Store({state:{},mutations:{},actions:{},modules:Object(r.a)({},u.default)});window.store=s,e.default=s},673:function(t,e,n){var r={"./config.js":674,"./file.js":675,"./index.js":423,"./list.js":676,"./meta.js":677,"./page.js":678,"./router.js":679,"./tabs.js":680,"./user.js":681};function i(t){var e=a(t);return n(e)}function a(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id=673},674:function(t,e,n){"use strict";n.r(e);var r,i=n(17),a=n(32),o=n(7),c=n(1),u=n(0),s=(n(20),n(14),n(9),n(3),n(52),n(26),n(16),n(30),n(25),n(44)),f=n(177),d=n(104),l=n.n(d),b=n(140),m=n.n(b),j=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;e.default={state:{systemConfig:{},appConfig:{},configSystem:{},clientConfig:{},appMenus:[],currentMenu:{},route:{},routers:[],showMenu:!0,showAppNav:!0,screen:{width:j,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},mobileWidth:992,isMobile:j<=992,isPcMd:j>992&&j<=1400,isPcLg:j>1400&&j<=1680,isPcXl:j>1680,systemVariableList:[],decryptKey:{rsaKey:"",aesKey:""},temporaryRole:null},mutations:(r={},Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(r,s.v,(function(t,e){t.systemConfig=Object(u.a)(Object(u.a)({},t.systemConfig),e)})),s.t,(function(t,e){t.appConfig=Object(u.a)(Object(u.a)({},t.appConfig),e)})),"GET_CONFIG_SYSTEM",(function(t,e){t.configSystem=Object(u.a)(Object(u.a)({},t.configSystem),e)})),"GET_CLIENT_CONFIG",(function(t,e){t.clientConfig=Object(u.a)(Object(u.a)({},t.clientConfig),e)})),"SET_MENUS",(function(t,e){t.appMenus=e})),s.u,(function(t,e){t.currentMenu=Object(u.a)({},e)})),s.g,(function(t){t.currentMenu={}})),s.K,(function(t,e){t.showMenu=void 0!==e?e:!t.showMenu})),"SWITCH_APP_NAV_SHOW",(function(t,e){t.showAppNav=void 0!==e?e:!t.showMenu})),s.y,(function(t){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;t.screen={width:e,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},t.isMobile=e<=t.mobileWidth,t.isPcMd=e>t.mobileWidth&&e<=1400,t.isPcLg=e>1400&&e<=1680,t.isPcXl=e>1680})),Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(r,"SET_MOBILE_WIDTH",(function(t,e){t.mobileWidth=e;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;t.screen={width:n,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},t.isMobile=n<=t.mobileWidth,t.isPcMd=n>t.mobileWidth&&n<=1400,t.isPcLg=n>1400&&n<=1680,t.isPcXl=n>1680})),"GET_SYSTEM_VARIABLE",(function(t,e){t.systemVariableList=Object(c.a)(e)})),"GET_DECRYPT_KEY",(function(t,e){t.decryptKey=e})),"SET_TEMPORARY_ROLE",(function(t,e){t.temporaryRole=e}))),actions:Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},s.v,(function(t,e){var n=t.commit;return new Promise(function(){var t=Object(a.a)(Object(i.a)().m((function t(e){var r;return Object(i.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,l.a.getSystemInfo();case 1:(r=t.v)?(n(s.v,r||{}),e(r||{})):(n(s.v,{}),e({}));case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}())})),s.t,(function(t,e){var n=t.commit,r={action:"getInitInfo",entityId:"FM_MGN_SYSTEM",clientCode:e.client,systemCode:e.system,serviceCode:e.app};return new Promise((function(t,e){l.a.get(r,{client:"frame",system:"epxing-frame-manage"}).then((function(e){var r={};if(e){e.service&&e.service.data&&(r=e.service.data);var i=e.client.data,a=e.system.data;for(var o in i)r["CLIENT|"+o]=i[o];for(var c in a)r["SYSTEM|"+c]=a[c];n("GET_CLIENT_CONFIG",i||{}),n(s.t,r||{}),t(r||{}),e.versionVary&&f.Message.warning("当前程序不是单独部署,需要满足最新版本的平台配置,请联系工作人员升级,或单独部署")}else n(s.t,{}),t({})})).catch((function(t){n(s.t,{}),e(t)}))}))})),"GET_CONFIG_SYSTEM",(function(t,e){var n=t.commit;return l.a.find({entityId:"FM_SYSTEM",link:"client","scope.CLIENT|CODE":e.client,"scope.CODE":e.system}).then((function(t){return n("GET_CONFIG_SYSTEM",t.data||{}),Promise.resolve(t.data)})).catch((function(){return n("GET_CONFIG_SYSTEM",{}),Promise.resolve({})}))})),"GET_CONFIG_CLIENT",(function(t,e){var n=t.commit;l.a.find({entityId:"FM_CLIENT","scope.CODE":e.client}).then((function(t){return n("GET_CONFIG_CLIENT",t.data||{}),Promise.resolve({})})).catch((function(){return n("GET_CONFIG_CLIENT",{}),Promise.resolve({})}))})),s.u,(function(t,e){var n=this,r=t.commit;return new Promise(function(){var t=Object(a.a)(Object(i.a)().m((function t(a){var o,c,u,f,d,b,m,j,O,p;return Object(i.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,l.a.get({entityId:"FM_MODULE",id:e.moduleId});case 1:return o=t.v,c=n.$route.params,u=c.roleId,f=c.role,u||(d=n.user.serviceRoles,b=(void 0===d?{}:d)[n.appConfig.ID]||[],m=b.find((function(t){return t.code===f}))||{},u=m.id),t.n=2,l.a.getUserMenuTreeData({moduleId:e.moduleId,roleId:u,mode:e.isMobile?"move":"pc"});case 2:(j=t.v).map((function(t){return"1"===t.HIDDEN_SUB_MENU&&(t.children=[]),t})),j&&(O=o.bean||{},p=O.data,r(s.u,{name:p.NAME,data:j||[]}),a(j));case 3:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}())})),"GET_SYSTEM_VARIABLE",(function(t){var e=t.commit;return l.a.list({action:"searchParam",entityId:"FM_SEARCH_PARAM",order_field:"ORDER_NUM",order_mode:"asc"}).then((function(t){var n=[];for(var r in t)if("user.propertyMap"===r){var i=[];for(var a in t[r])i.push({name:t[r][a],text:t[r][a],code:"#{".concat(r,".").concat(a,"}"),value:"#{".concat(r,".").concat(a,"}"),type:"variable"});n.push({name:"用户扩展信息",code:"#{".concat(r,"}"),value:"#{".concat(r,"}"),type:"variable",children:i})}else n.push({name:t[r],code:"#{".concat(r,"}"),value:"#{".concat(r,"}"),type:"variable"});return e("GET_SYSTEM_VARIABLE",n),t.entitys}))})),"GET_DECRYPT_KEY",(function(t){var e=t.commit;return m.a.get("/"+window.BASE_PROJECT_NAME+"/api/v1/rsa/public/v2").then((function(t){var n={rsaKey:t.publicKey,aesKey:t.aesKey};return e("GET_DECRYPT_KEY",n),n}))}))}},675:function(t,e,n){"use strict";n.r(e);var r=n(7),i=(n(3),n(52),n(113),n(104)),a=n.n(i);e.default={state:{fieList:[],filePromises:{}},getters:{},mutations:{},actions:Object(r.a)({},"ADD_FILE",(function(t){t.commit;var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,n){e.id||n(new Error),a.a.get({entityId:"FM_FILE",id:e.id}).then((function(e){t(e)})).catch((function(t){n(t)}))}))}))}},676:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(0),a=n(1),o=(n(39),n(9),n(8),n(21),n(3),n(52),n(23),n(113),n(26),n(16),n(25),n(104)),c=n.n(o),u=n(44),s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return t.map((function(t){return t.defaultIndex=0,t.values||(t.values=Object(a.a)(e)),t.name=t.text||t.title,t.values.push(t.value),t.values.length>n.count&&(n.count=t.values.length),t.children.length>0?t.values=s(t.children,t.values,n):delete t.children,t}))};e.default={state:{lists:{},treeList:{},objects:{},object_counts:{},listStatus:{},tags:{}},getters:{getCodeById:function(t){return function(e){return t.lists[e]||t.treeList[e]}},getTreeCodeById:function(t){return function(e){return t.treeList[e]}},getTreeById:function(t){return function(e){return t.objects[e]}},getTreeCountById:function(t){return function(e){return t.object_counts[e]}},getTagListByMetaId:function(t){return function(e){return t.tags[e]}}},mutations:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},u.a,(function(t,e){t.lists=Object(i.a)(Object(i.a)({},t.lists),e);var n=Object.keys(t.lists);if(n.length>100){var r=n.shift();delete t.lists[r]}})),"DELETE_LIST",(function(t,e){delete t.lists[e.key]})),"ADD_TREE_LIST",(function(t,e){t.treeList=Object(i.a)(Object(i.a)({},t.treeList),e);var n=Object.keys(t.treeList);if(n.length>100){var r=n.shift();delete t.treeList[r]}})),u.c,(function(t,e){t.objects=Object(i.a)(Object(i.a)({},t.objects),e);var n=Object.keys(t.objects);if(n.length>100){var r=n.shift();delete t.objects[r]}})),u.d,(function(t,e){t.object_counts=Object(i.a)(Object(i.a)({},t.object_counts),e)})),u.f,(function(t,e){t.tags=Object(i.a)(Object(i.a)({},t.tags),e)})),actions:Object(r.a)(Object(r.a)({},u.a,(function(t,e){var n=t.state,a=t.commit,o=n.listStatus[e.key];if(o)return o;var f=new Promise((function(t,i){if(e.key)return"treeList"===e.dataType?c.a.getTree({entityId:"FM_CODE_DEFINE",key:e.key}).then((function(n){var i=s(n,[],{count:1});a("ADD_TREE_LIST",Object(r.a)({},e.key,i)),t(i)})).catch((function(t){i(t),delete n.listStatus[e.key]})):"object"===e.dataType?c.a.getTree({entityId:e.key}).then((function(i){var o={count:1},c=s(i,[],o);a(u.d,Object(r.a)({},e.key,o.count)),a(u.c,Object(r.a)({},e.key,c)),t(i),delete n.listStatus[e.key]})).catch((function(t){i(t),delete n.listStatus[e.key]})):c.a.getCodes({key:e.key,systemId:e.systemId}).then((function(i){a(u.a,Object(r.a)({},e.key,i||[])),t(i||[]),delete n.listStatus[e.key]})).catch((function(t){i(t),delete n.listStatus[e.key]}));i(new Error),delete n.listStatus[e.metaId]}));return n.listStatus=Object(i.a)(Object(i.a)({},n.listStatus),{},Object(r.a)({},e.key,f)),f})),u.f,(function(t,e){var n=t.state,a=t.commit,o=n.listStatus[e.metaId];if(o)return o;var s=new Promise((function(t,i){if(e.metaId)return c.a.$get({action:"getTags",entityId:"FM_ENTITY",metaId:e.metaId}).then((function(i){a(u.f,Object(r.a)({},e.metaId,i.entitys||[])),t(i||[]),delete n.listStatus[e.metaId]})).catch((function(t){i(t),delete n.listStatus[e.metaId]}));i(new Error),delete n.listStatus[e.metaId]}));return n.listStatus=Object(i.a)(Object(i.a)({},n.listStatus),{},Object(r.a)({},e.metaId,s)),s}))}},677:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(1),a=n(0),o=(n(31),n(14),n(19),n(9),n(21),n(3),n(53),n(52),n(22),n(11),n(113),n(26),n(16),n(42),n(30),n(28),n(25),n(104)),c=n.n(o),u=n(630),s=n.n(u),f=n(44),d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t.forEach((function(t){if(t.field||(t.field=e?e.toUpperCase()+"|"+t.code:t.code),t.codeKey||(t.codeKey=t.relatedEntity),t.relationMeta){var n,r=t.relationMeta,o=r.children,c=r.linkFlag,u=r.relationMetaList,s=r.id,f=r.text;if(t.children=o.map((function(t){return Object(a.a)(Object(a.a)({},t),{},{meta:s,metaLabel:f})})),t.linkFlag=e?e+"|"+c:c,u)u.forEach((function(e){e.isSub=!0,e.type="meta",e.linkFlag=t.linkFlag+"|"+e.linkFlag,e.field=e.linkFlag,e.children=e.children.map((function(t){return Object(a.a)(Object(a.a)({},t),{},{meta:e.id,metaLabel:e.text,relationSort:e.relationType})}))})),(n=t.children).push.apply(n,Object(i.a)(u))}t.children&&d(t.children,t.linkFlag)}))};e.default={state:{metas:{},simpleMetas:{},metaStatus:{},simpleMetaStatus:{},metaRelationFields:{},metaRelationFieldStatus:{},metaViewFields:{},metaViewFieldStatus:{}},mutations:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},f.b,(function(t,e){t.metas=Object(a.a)(Object(a.a)({},t.metas),e);var n=Object.keys(t.metas);if(n.length>50){var r=n.shift();delete t.metas[r]}})),"ADD_SIMPLE_META",(function(t,e){t.simpleMetas=Object(a.a)(Object(a.a)({},t.simpleMetas),e)})),"ADD_META_RELATION_FIELDS",(function(t,e){t.metaRelationFields=Object(a.a)(Object(a.a)({},t.metaRelationFields),e);var n=Object.keys(t.metaRelationFields);if(n.length>50){var r=n.shift();delete t.metaRelationFields[r]}})),"ADD_META_VIEW_FIELDS",(function(t,e){t.metaViewFields=Object(a.a)(Object(a.a)({},t.metaViewFields),e);var n=Object.keys(t.metaViewFields);if(n.length>50){var r=n.shift();delete t.metaViewFields[r]}})),getters:{getMetaById:function(t){return function(e){return t.metas[e]}},getMeta:function(t){return function(e){return Object.values(t.metas).find((function(t){return t.id===e||t.code===e||t.code+"@"+t.systemCode+"@"+t.clientCode===e}))}},getSimpleMeta:function(t){return function(e){return t.simpleMetas[e]||Object.values(t.metas).find((function(t){return t.id===e||t.code===e}))}},getMetaRelationFields:function(t){return function(e){return t.metaRelationFields[e]}},getMetaViewFields:function(t){return function(e,n){return t.metaViewFields[e+(n||"")]}}},actions:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},f.b,(function(t){var e=t.state,n=t.commit,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.metaStatus[i.metaId];if(o)return o;var u=new Promise((function(t,a){i.metaId?c.a.getMeta({metaId:i.metaId.includes("@system@")?i.metaId.split("@")[0]:i.metaId}).then((function(o){if(o){var c=new s.a(o);n(f.b,Object(r.a)({},i.metaId,c)),delete e.metaStatus[i.metaId],t(c)}a(new Error)})).catch((function(t){delete e.metaStatus[i.metaId],a(t)})):(a(new Error),delete e.metaStatus[i.metaId])}));return e.metaStatus=Object(a.a)(Object(a.a)({},e.metaStatus),{},Object(r.a)({},i.metaId,u)),u})),"ADD_SIMPLE_META",(function(t){var e=t.state,n=t.commit,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.simpleMetaStatus[i.metaId];if(o)return o;var u=new Promise((function(t,a){i.metaId?c.a.getSimpleMeta({metaId:i.metaId}).then((function(o){o&&(n("ADD_SIMPLE_META",Object(r.a)({},i.metaId,o)),delete e.simpleMetaStatus[i.metaId],t(o)),a(new Error)})).catch((function(t){delete e.simpleMetaStatus[i.metaId],a(t)})):(a(new Error),delete e.simpleMetaStatus[i.metaId])}));return e.simpleMetaStatus=Object(a.a)(Object(a.a)({},e.simpleMetaStatus),{},Object(r.a)({},i.metaId,u)),u})),"ADD_META_RELATION_FIELDS",(function(t){var e=t.state,n=t.commit,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=e.metaRelationFieldStatus[o.id];if(u)return u;var s=c.a.get({action:"metaRelationTree",entityId:"FM_ENTITY",metaId:o.id,allSub:!0}).then((function(t){if(t){var c;if(t.children=t.children.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{meta:t.id})})),t.relationMetaList)t.relationMetaList.forEach((function(t){t.isSub=!0,t.type="meta",t.isMeta=!0,t.field=t.linkFlag,t.children=t.children.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{relationSort:t.relationType,meta:t.id,field:t.linkFlag.toUpperCase()+"|"+e.code})}))})),(c=t.children).push.apply(c,Object(i.a)(t.relationMetaList));t.isMain=!0,t.isUnFold=!0;var u=[t];return d(u),n("ADD_META_RELATION_FIELDS",Object(r.a)({},o.id,u)),delete e.metaRelationFieldStatus[o.id],u}})).catch((function(){delete e.metaRelationFieldStatus[o.id]}));return e.metaRelationFieldStatus=Object(a.a)(Object(a.a)({},e.metaRelationFieldStatus),{},Object(r.a)({},o.id,s)),s})),"ADD_META_VIEW_FIELDS",(function(t){var e=t.state,n=t.commit,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.metaId+(i.viewId||""),u=e.metaViewFieldStatus[o];if(u)return u;var s=c.a.get({action:"getEntityMetaView",entityId:"FM_ENTITY_VIEW",metaId:i.metaId,metaViewId:i.viewId,allSub:!0}).then((function(t){if(t){t[0].isMain=!0;var i=function(t){return t.filter((function(t){return!!t})).map((function(t){return t.field="meta"===t.type?t.linkFlag||t.code:t.linkCode||t.code,t.relationSort=t.relationType,t.codeKey||(t.codeKey=t.relatedEntity),"meta"===t.type&&"1"===t.relationType&&(t.isSub=!0),t.children&&(t.children=i(t.children)),t}))},a=i(t);return n("ADD_META_VIEW_FIELDS",Object(r.a)({},o,a)),delete e.metaViewFieldStatus[o],a}})).catch((function(){delete e.metaViewFieldStatus[o]}));return e.metaViewFieldStatus=Object(a.a)(Object(a.a)({},e.metaViewFieldStatus),{},Object(r.a)({},o,s)),s}))}},678:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(51),a=n(7),o=(n(14),n(46),n(39),n(29),n(21),n(3),n(52),n(33),n(23),n(26),n(16),n(30),n(40),n(104)),c=n.n(o),u=n(249),s=n.n(u),f=n(44),d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.pageId?c.a.getPageConfigById({id:t.pageId}):c.a.getPageConfig({metaId:t.metaId,flag:t.flag})};e.default={state:{configs:[],templateLibrary:[],templateStatus:{},componentLibrary:[],componentStatus:{}},getters:{getPageById:function(t){return function(e){return t.configs.find((function(t){return t.pageId===e}))}},getPageByMetaId:function(t){return function(e,n){return t.configs.find((function(t){return(t.pageMetaId===e||t.metaId===e||!t.pageMetaId&&!e)&&t.flag==n}))}},getTemplate:function(t){return function(e){return t.templateLibrary.find((function(t){return t.ID===e}))}},getComponent:function(t){return function(e){return t.componentLibrary.find((function(t){return t.CODE===e}))}}},mutations:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},f.e,(function(t,e){t.configs.push(e),t.configs.length>50&&t.configs.shift()})),f.o,(function(t,e){var n=e.flag,r=e.metaId,i=e.pageId,a=-1;-1!==(a=i?t.configs.findIndex((function(t){return t.pageId===i})):t.configs.findIndex((function(t){return t.flag===n&&t.metaId===r})))&&t.configs.splice(a,1)})),"ADD_TEMPLATE",(function(t,e){t.templateLibrary.push(e)})),"DELETE_TEMPLATE",(function(t,e){if(e.id){var n=t.templateLibrary.findIndex((function(t){return t.id===e.id}));-1!==n&&t.templateLibrary.splice(n,1)}})),"ADD_COMPONENT",(function(t,e){t.componentLibrary.push(e)})),"DELETE_COMPONENT",(function(t,e){if(e.code){var n=t.componentLibrary.findIndex((function(t){return t.CODE===e.code}));-1!==n&&t.componentLibrary.splice(n,1)}})),actions:Object(a.a)(Object(a.a)(Object(a.a)({},f.e,(function(t){var e=t.commit,n=t.getters,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,i){if(r.pageId){var a=n.getPageById(r.pageId);if(a)return t(a)}else if(r.flag){var o=n.getPageByMetaId(r.metaId,r.flag);if(o)return t(o)}d(r).then((function(n){var i=(r||{}).metaId,a=new s.a(n);a.pageMetaId=i||a.metaId,e(f.e,a),t(a)})).catch((function(t){i(t)}))}))})),"ADD_TEMPLATE",(function(t){var e=t.commit,n=t.state,o=t.getters,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u.id){var s=o.getTemplate(u.id);if(s)return s;var f=n.templateStatus[u.id];if(f)return f;var d=Promise.all([c.a.get({entityId:"FM_TEMPLATE",id:u.id}),c.a.list({entityId:"FM_TEMPLATE_ATTRIBUTE","scope.TEMPLATE":u.id})]).then((function(t){var r=Object(i.a)(t,2),a=r[0],o=r[1];delete n.templateStatus[u.id];var c=a.data;return c.content=JSON.parse(c.CONTENT||"{}"),c.attributes=o.entitys,e("ADD_TEMPLATE",c),c})).catch((function(){delete n.templateStatus[u.id]}));return n.templateStatus=Object(r.a)(Object(r.a)({},n.templateStatus),{},Object(a.a)({},u.id,d)),d}})),"ADD_COMPONENT",(function(t){var e=t.commit,n=t.state,o=t.getters,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u.code){var s=o.getComponent(u.code);if(s)return s;var f=n.componentStatus[u.code];if(f)return f;var d=Promise.all([c.a.find({entityId:"FM_PAGE","scope.CODE":u.code}),c.a.list({entityId:"FM_PAGE_ATTRIBUTE","scope.PAGE|CODE":u.code})]).then((function(t){var r=Object(i.a)(t,2),a=r[0],o=r[1];delete n.componentStatus[u.code];var c=a.data;return c.content=JSON.parse(c.CONTENT||"{}"),c.attributes=o.entitys,e("ADD_COMPONENT",c),c})).catch((function(){delete n.componentStatus[u.code]}));return n.componentStatus=Object(r.a)(Object(r.a)({},n.componentStatus),{},Object(a.a)({},u.code,d)),d}}))}},679:function(t,e,n){"use strict";n.r(e);var r,i=n(7),a=n(0),o=n(1),c=(n(20),n(31),n(46),n(19),n(29),n(3),n(22),n(11),n(26),n(16),n(42),n(28),n(44));e.default={state:{routers:[],moduleRoute:{},moduleRouters:[],menuRoute:{},menuRouters:[],currentRoute:{},query:{},reload:!1},mutations:(r={},Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(r,c.E,(function(t,e){t.routers.forEach((function(t){t.active=!1}));var n=(new Date).getTime()+Math.random();t.routers=[].concat(Object(o.a)(t.routers),[Object(a.a)(Object(a.a)({},e),{},{key:String(e.key||n),active:!0,time:n})])})),c.G,(function(t,e){var n=e.key,r=e.router,i=-1;-1!==(i=n?t.routers.findIndex((function(t){return t.key===n})):t.routers.findIndex((function(t){return!0===t.active})))&&t.routers.splice(i,1,Object(a.a)(Object(a.a)({},r),{},{key:n}))})),c.z,(function(t,e){t.routers.forEach((function(t){t.key===e?t.active=!0:t.active=!1}))})),c.p,(function(t,e){var n=t.routers,r=n.findIndex((function(t){return t.key===e})),i=n[r];i&&i.active&&(n[r-1]?n[r-1].active=!0:n[r+1]&&(n[r+1].active=!0)),n.splice(r,1),t.routers=Object(o.a)(n)})),c.h,(function(t){t.routers=[]})),c.j,(function(t){t.routers=t.routers.filter((function(t){return t.key&&(t.key+"").includes("nav-")}))})),c.D,(function(t,e){var n=e.key,r=e.router,i=-1;if(-1!==(i=n?t.routers.findIndex((function(t){return t.key===n})):t.routers.findIndex((function(t){return!0===t.active})))){var o=t.routers[i];o.children||(o.children=[]),o.children.push(Object(a.a)(Object(a.a)({},r),{},{key:(new Date).getTime()})),t.routers.splice(i,1,o)}})),c.B,(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.key,r=-1;if(-1!==(r=n?t.routers.findIndex((function(t){return t.key===n})):t.routers.findIndex((function(t){return!0===t.active})))){var i=Object(o.a)(t.routers),a=t.routers[r];a.children&&a.children.length>0&&a.children.pop(),i.splice(r,1,a),t.routers=Object(o.a)(i)}})),c.n,(function(t,e){t.moduleRoute={},t.moduleRouters=[]})),c.C,(function(t,e){var n=e.router,r=t.routers.findIndex((function(t){return!0===t.active}));if(-1!==r){var i=t.routers[r].children||[],c=i[i.length-1]||{};c.children||(c.children=[]),c.children.push(Object(a.a)(Object(a.a)({},n),{},{key:(new Date).getTime()}));var u=Object(o.a)(t.routers);u.splice(r,1,Object(a.a)(Object(a.a)({},t.routers[r]),{},{children:i})),t.routers=Object(o.a)(u)}})),Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(r,c.A,(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e.key,t.routers.findIndex((function(t){return!0===t.active})));if(-1!==n){var r=t.routers[n].children||[],i=r[r.length-1]||{};i.children&&i.children.length>0&&i.children.pop(),t.routers.splice(n,1,Object(a.a)(Object(a.a)({},t.routers[n]),{},{children:r}))}})),c.m,(function(t){t.menuRoute={},t.menuRouters=[]})),c.H,(function(t,e){var n=t.routers.findIndex((function(t){return!0===t.active}));-1!==n&&t.routers.splice(n,1,Object(a.a)(Object(a.a)({},t.routers[n]),e))})),c.I,(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.reload=e}))),actions:{}}},680:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(1),a=n(0),o=(n(31),n(14),n(46),n(19),n(29),n(3),n(22),n(11),n(26),n(16),n(42),n(30),n(28),n(44)),c=function(){var t=(new Date).getTime(),e=Math.random();return String(e).split(".")[1]+t};e.default={state:{tabs:[]},getters:{getTab:function(t){return function(e){return t.tabs.find((function(t){return t.key===e}))}}},mutations:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},o.l,(function(t,e){t.tabs.forEach((function(t){t.active=!1}));var n=e.key;if(n){var r=t.tabs.findIndex((function(t){return t.key===n}));-1!==r&&t.tabs.splice(r,1)}else n=c();t.tabs.push(Object(a.a)(Object(a.a)({},e),{},{active:!0,key:n}))})),"UNSHIFT_TAB",(function(t,e){t.tabs.forEach((function(t){t.active=!1}));var n=e.key;if(n){var r=t.tabs.findIndex((function(t){return t.key===n}));-1!==r&&t.tabs.splice(r,1)}else n=c();t.tabs.unshift(Object(a.a)(Object(a.a)({},e),{},{active:!0,key:n}))})),o.F,(function(t,e){t.tabs.forEach((function(t){t.key===e?t.active=!0:t.active=!1}))})),"POP_TAB",(function(t){var e=Object(i.a)(t.tabs),n=e.length-1;!0===e.pop().active&&(e[n-1]?e[n-1]=Object(a.a)(Object(a.a)({},e[n-1]),{},{active:!0}):e[n+1]&&(t.tabs[n+1]=Object(a.a)(Object(a.a)({},e[n+1]),{},{active:!0}))),t.tabs=Object(i.a)(e)})),o.r,(function(t,e){var n=Object(i.a)(t.tabs),r=n.findIndex((function(t){return t.key===e}));-1!==r&&(!0===n[r].active&&(n[r-1]?n[r-1]=Object(a.a)(Object(a.a)({},n[r-1]),{},{active:!0}):n[r+1]&&(t.tabs[r+1]=Object(a.a)(Object(a.a)({},n[r+1]),{},{active:!0}))),n.splice(r,1),t.tabs=Object(i.a)(n))})),o.s,(function(t,e){var n=Object(i.a)(t.tabs),r=Object(i.a)(t.tabs).filter((function(t){return!(t.key+"").includes("default-")})),o=n.findIndex((function(t){return t.key===e})),c=r.findIndex((function(t){return t.key===e}));if(-1!==o){if(!0===n[o].active){var u="";if((r[c-1]||r[c-1])&&(u=r[c-1].key),u){var s=n.findIndex((function(t){return t.key===u}));-1!==s&&(n[s]=Object(a.a)(Object(a.a)({},n[s]),{},{active:!0}))}}n.splice(o,1),t.tabs=Object(i.a)(n)}})),o.i,(function(t){t.tabs=t.tabs.filter((function(t){return t.key.includes("default-")})),t.tabs.length>0&&!t.tabs.find((function(t){return t.active}))&&(t.tabs[0].active=!0)})),o.k,(function(t){t.tabs=t.tabs.filter((function(t){return t.key.includes("default-")})),t.tabs.length>0&&(t.tabs[t.tabs.length-1].active=!0)})),"DELETE_TABS",(function(t){t.tabs=[]})),o.J,(function(t,e){var n=e.key,r=e.query,i=void 0===r?{}:r,o=t.tabs.findIndex((function(t){return n?t.key===n:!0===t.active}));if(-1!==o){var c=t.tabs[o];t.tabs.splice(o,1),t.tabs.splice(o,0,Object(a.a)(Object(a.a)({},c),i))}})),actions:{}}},681:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(0),a=(n(14),n(3),n(52),n(113),n(26),n(16),n(30),n(44)),o=n(104),c=n.n(o);e.default={state:{user:{},userInfo:{}},mutations:Object(r.a)(Object(r.a)(Object(r.a)({},a.w,(function(t,e){t.user=Object(i.a)(Object(i.a)({},t.user),e)})),a.x,(function(t,e){t.userInfo=Object(i.a)(Object(i.a)({},t.userInfo),e)})),a.q,(function(t){t.user={},t.userInfo={}})),actions:Object(r.a)(Object(r.a)({},a.w,(function(t,e){var n=t.commit;return new Promise((function(t,e){c.a.getUser().then((function(r){if(r){var i=r.bean||{},o=i.services,c=void 0===o?{}:o,u=i.roles,s=void 0===u?{}:u,f={};for(var d in c){var l=c[d],b=[];for(var m in l){var j=s[m]||{};b.push({id:m,isDefault:l[m],name:j.NAME,code:j.CODE,system:j.SYSTEM,type:j.TYPE})}f[d]=b}i.serviceRoles=f,n(a.w,i),t(i)}else e(new Error)})).catch((function(t){e(t)}))}))})),a.x,(function(t){var e=t.commit;c.a.find({entityId:"FM_USER","scope.ID":"#{user.id}"}).then((function(t){var n=t.data||{};e(a.x,n)}))}))}},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(24);function i(t,e,n){return(e=Object(r.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},8:function(t,e){t.exports=require("core-js/modules/es.function.name.js")},9:function(t,e){t.exports=require("core-js/modules/es.array.map.js")}});
|
|
3
|
+
var t,e,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function c(n,i,a,o){var c=i&&i.prototype instanceof s?i:s,f=Object.create(c.prototype);return r(f,"_invoke",function(n,r,i){var a,o,c,s=0,f=i||[],d=!1,l={p:0,n:0,v:t,a:b,f:b.bind(t,4),d:function(e,n){return a=e,o=0,c=t,l.n=n,u}};function b(n,r){for(o=n,c=r,e=0;!d&&s&&!i&&e<f.length;e++){var i,a=f[e],b=l.p,m=a[2];n>3?(i=m===r)&&(c=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=t):a[0]<=b&&((i=n<2&&b<a[1])?(o=0,l.v=r,l.n=a[1]):b<m&&(i=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,l.n=m,o=0))}if(i||n>1)return u;throw d=!0,r}return function(i,f,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===f&&b(f,m),o=f,c=m;(e=o<2?t:c)||!d;){a||(o?o<3?(o>1&&(l.n=-1),b(o,c)):l.n=c:l.v=c);try{if(s=2,a){if(o||(i="next"),e=a[i]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,o<2&&(o=0)}else 1===o&&(e=a.return)&&e.call(a),o<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=t}else if((e=(d=l.n<0)?c:n.call(r,l))!==u)break}catch(e){a=t,o=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,a,o),!0),f}var u={};function s(){}function f(){}function d(){}e=Object.getPrototypeOf;var l=[][a]?e(e([][a]())):(r(e={},a,(function(){return this})),e),b=d.prototype=s.prototype=Object.create(l);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,r(t,o,"GeneratorFunction")),t.prototype=Object.create(b),t}return f.prototype=d,r(b,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,o,"GeneratorFunction"),r(b),r(b,o,"Generator"),r(b,a,(function(){return this})),r(b,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:c,m:m}})()}n.d(e,"a",(function(){return i}))},177:function(t,e){t.exports=require("element-ui")},18:function(t,e){t.exports=require("core-js/modules/es.string.replace.js")},19:function(t,e){t.exports=require("core-js/modules/es.array.includes.js")},20:function(t,e){t.exports=require("core-js/modules/es.array.concat.js")},21:function(t,e){t.exports=require("core-js/modules/es.object.keys.js")},22:function(t,e){t.exports=require("core-js/modules/es.string.includes.js")},23:function(t,e){t.exports=require("core-js/modules/web.dom-collections.iterator.js")},24:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4);function i(t){var e=function(t,e){if("object"!=Object(r.a)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Object(r.a)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Object(r.a)(e)?e:e+""}},25:function(t,e){t.exports=require("core-js/modules/es.iterator.map.js")},250:function(t,e){t.exports=require("epx-frame/lib/utils/page")},26:function(t,e){t.exports=require("core-js/modules/es.array.push.js")},28:function(t,e){t.exports=require("core-js/modules/es.iterator.for-each.js")},29:function(t,e){t.exports=require("core-js/modules/es.array.splice.js")},3:function(t,e){t.exports=require("core-js/modules/es.object.to-string.js")},30:function(t,e){t.exports=require("core-js/modules/es.iterator.find.js")},31:function(t,e,n){"use strict";function r(t,e,n,r,i,a,o){try{var c=t[a](o),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function c(t){r(o,i,a,c,u,"next",t)}function u(t){r(o,i,a,c,u,"throw",t)}c(void 0)}))}}n.d(e,"a",(function(){return i}))},32:function(t,e){t.exports=require("core-js/modules/es.array.filter.js")},33:function(t,e){t.exports=require("core-js/modules/es.string.iterator.js")},34:function(t,e){t.exports=require("vuex")},38:function(t,e){t.exports=require("vue")},39:function(t,e){t.exports=require("core-js/modules/es.array.iterator.js")},4:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return r}))},40:function(t,e){t.exports=require("core-js/modules/es.json.parse.js")},42:function(t,e){t.exports=require("core-js/modules/es.iterator.filter.js")},425:function(t,e,n){"use strict";n.r(e);n(39),n(3),n(12),n(18),n(11),n(23),n(16),n(28);var r={},i=n(675);i.keys().forEach((function(t){var e=t.replace(/^\.\/(.+).js$/,"$1");"index"!==e&&(r[e]=i(t).default)})),e.default=r},44:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"o",(function(){return s})),n.d(e,"w",(function(){return f})),n.d(e,"q",(function(){return d})),n.d(e,"x",(function(){return l})),n.d(e,"v",(function(){return b})),n.d(e,"y",(function(){return m})),n.d(e,"t",(function(){return j})),n.d(e,"u",(function(){return O})),n.d(e,"g",(function(){return p})),n.d(e,"K",(function(){return v})),n.d(e,"E",(function(){return y})),n.d(e,"G",(function(){return E})),n.d(e,"p",(function(){return h})),n.d(e,"h",(function(){return g})),n.d(e,"j",(function(){return T})),n.d(e,"z",(function(){return I})),n.d(e,"D",(function(){return _})),n.d(e,"B",(function(){return S})),n.d(e,"n",(function(){return M})),n.d(e,"C",(function(){return D})),n.d(e,"A",(function(){return w})),n.d(e,"m",(function(){return A})),n.d(e,"H",(function(){return P})),n.d(e,"I",(function(){return R})),n.d(e,"l",(function(){return L})),n.d(e,"F",(function(){return x})),n.d(e,"r",(function(){return C})),n.d(e,"s",(function(){return k})),n.d(e,"i",(function(){return F})),n.d(e,"k",(function(){return N})),n.d(e,"J",(function(){return G}));var r="ADD_LIST",i="ADD_OBJECT_COUNT",a="ADD_OBJECT",o="ADD_TAG",c="ADD_META",u="ADD_PAGE",s="DELETE_PAGE",f="GET_USER",d="DELETE_USER",l="GET_USER_INFO",b="GET_SYSTEM_CONFIG",m="GET_VIEWPORT",j="GET_APP_CONFIG",O="GET_MENU",p="CLEAR_MENU",v="SWITCH_MENU_SHOW",y="PUSH_ROUTER",E="SET_ROUTER",h="DELETE_ROUTER",g="CLEAR_ROUTER",T="CLEAR_TABS_ROUTER",I="PICK_ROUTER",_="PUSH_MODULE_ROUTER",S="POP_MODULE_ROUTER",M="DELETE_MODULE_ROUTER",D="PUSH_MENU_ROUTER",w="POP_MENU_ROUTER",A="DELETE_MENU_ROUTER",P="SET_ROUTER_QUERY",R="SET_ROUTER_RELOAD",L="CREATE_TAB",x="SELECT_TAB",C="DESTORY_TAB",k="DESTORY_TAG_TAB",F="CLEAR_TABS",N="CLEAR_TAG_TABS",G="SET_TAB_QUERY"},46:function(t,e){t.exports=require("core-js/modules/es.array.find-index.js")},51:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(15);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,c=[],u=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return c}}(t,e)||Object(r.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},52:function(t,e){t.exports=require("core-js/modules/es.promise.js")},53:function(t,e){t.exports=require("core-js/modules/es.object.values.js")},632:function(t,e){t.exports=require("epx-frame/lib/utils/meta")},674:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(38),a=n.n(i),o=n(34),c=n.n(o),u=n(425);a.a.use(c.a);var s=new c.a.Store({state:{},mutations:{},actions:{},modules:Object(r.a)({},u.default)});window.store=s,e.default=s},675:function(t,e,n){var r={"./config.js":676,"./file.js":677,"./index.js":425,"./list.js":678,"./meta.js":679,"./page.js":680,"./router.js":681,"./tabs.js":682,"./user.js":683};function i(t){var e=a(t);return n(e)}function a(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id=675},676:function(t,e,n){"use strict";n.r(e);var r,i=n(17),a=n(31),o=n(7),c=n(1),u=n(0),s=(n(20),n(14),n(9),n(3),n(52),n(26),n(16),n(30),n(25),n(44)),f=n(177),d=n(103),l=n.n(d),b=n(139),m=n.n(b),j=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;e.default={state:{systemConfig:{},appConfig:{},configSystem:{},clientConfig:{},appMenus:[],currentMenu:{},route:{},routers:[],showMenu:!0,showAppNav:!0,screen:{width:j,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},mobileWidth:992,isMobile:j<=992,isPcMd:j>992&&j<=1400,isPcLg:j>1400&&j<=1680,isPcXl:j>1680,systemVariableList:[],decryptKey:{rsaKey:"",aesKey:""},temporaryRole:null},mutations:(r={},Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(r,s.v,(function(t,e){t.systemConfig=Object(u.a)(Object(u.a)({},t.systemConfig),e)})),s.t,(function(t,e){t.appConfig=Object(u.a)(Object(u.a)({},t.appConfig),e)})),"GET_CONFIG_SYSTEM",(function(t,e){t.configSystem=Object(u.a)(Object(u.a)({},t.configSystem),e)})),"GET_CLIENT_CONFIG",(function(t,e){t.clientConfig=Object(u.a)(Object(u.a)({},t.clientConfig),e)})),"SET_MENUS",(function(t,e){t.appMenus=e})),s.u,(function(t,e){t.currentMenu=Object(u.a)({},e)})),s.g,(function(t){t.currentMenu={}})),s.K,(function(t,e){t.showMenu=void 0!==e?e:!t.showMenu})),"SWITCH_APP_NAV_SHOW",(function(t,e){t.showAppNav=void 0!==e?e:!t.showMenu})),s.y,(function(t){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;t.screen={width:e,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},t.isMobile=e<=t.mobileWidth,t.isPcMd=e>t.mobileWidth&&e<=1400,t.isPcLg=e>1400&&e<=1680,t.isPcXl=e>1680})),Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(r,"SET_MOBILE_WIDTH",(function(t,e){t.mobileWidth=e;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;t.screen={width:n,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},t.isMobile=n<=t.mobileWidth,t.isPcMd=n>t.mobileWidth&&n<=1400,t.isPcLg=n>1400&&n<=1680,t.isPcXl=n>1680})),"GET_SYSTEM_VARIABLE",(function(t,e){t.systemVariableList=Object(c.a)(e)})),"GET_DECRYPT_KEY",(function(t,e){t.decryptKey=e})),"SET_TEMPORARY_ROLE",(function(t,e){t.temporaryRole=e}))),actions:Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},s.v,(function(t,e){var n=t.commit;return new Promise(function(){var t=Object(a.a)(Object(i.a)().m((function t(e){var r;return Object(i.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,l.a.getSystemInfo();case 1:(r=t.v)?(n(s.v,r||{}),e(r||{})):(n(s.v,{}),e({}));case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}())})),s.t,(function(t,e){var n=t.commit,r={action:"getInitInfo",entityId:"FM_MGN_SYSTEM",clientCode:e.client,systemCode:e.system,serviceCode:e.app};return new Promise((function(t,e){l.a.get(r,{client:"frame",system:"epxing-frame-manage"}).then((function(e){var r={};if(e){e.service&&e.service.data&&(r=e.service.data);var i=e.client.data,a=e.system.data;for(var o in i)r["CLIENT|"+o]=i[o];for(var c in a)r["SYSTEM|"+c]=a[c];n("GET_CLIENT_CONFIG",i||{}),n(s.t,r||{}),t(r||{}),e.versionVary&&f.Message.warning("当前程序不是单独部署,需要满足最新版本的平台配置,请联系工作人员升级,或单独部署")}else n(s.t,{}),t({})})).catch((function(t){n(s.t,{}),e(t)}))}))})),"GET_CONFIG_SYSTEM",(function(t,e){var n=t.commit;return l.a.find({entityId:"FM_SYSTEM",link:"client","scope.CLIENT|CODE":e.client,"scope.CODE":e.system}).then((function(t){return n("GET_CONFIG_SYSTEM",t.data||{}),Promise.resolve(t.data)})).catch((function(){return n("GET_CONFIG_SYSTEM",{}),Promise.resolve({})}))})),"GET_CONFIG_CLIENT",(function(t,e){var n=t.commit;l.a.find({entityId:"FM_CLIENT","scope.CODE":e.client}).then((function(t){return n("GET_CONFIG_CLIENT",t.data||{}),Promise.resolve({})})).catch((function(){return n("GET_CONFIG_CLIENT",{}),Promise.resolve({})}))})),s.u,(function(t,e){var n=this,r=t.commit;return new Promise(function(){var t=Object(a.a)(Object(i.a)().m((function t(a){var o,c,u,f,d,b,m,j,O,p;return Object(i.a)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,l.a.get({entityId:"FM_MODULE",id:e.moduleId});case 1:return o=t.v,c=n.$route.params,u=c.roleId,f=c.role,u||(d=n.user.serviceRoles,b=(void 0===d?{}:d)[n.appConfig.ID]||[],m=b.find((function(t){return t.code===f}))||{},u=m.id),t.n=2,l.a.getUserMenuTreeData({moduleId:e.moduleId,roleId:u,mode:e.isMobile?"move":"pc"});case 2:(j=t.v).map((function(t){return"1"===t.HIDDEN_SUB_MENU&&(t.children=[]),t})),j&&(O=o.bean||{},p=O.data,r(s.u,{name:p.NAME,data:j||[]}),a(j));case 3:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}())})),"GET_SYSTEM_VARIABLE",(function(t){var e=t.commit;return l.a.list({action:"searchParam",entityId:"FM_SEARCH_PARAM",order_field:"ORDER_NUM",order_mode:"asc"}).then((function(t){var n=[];for(var r in t)if("user.propertyMap"===r){var i=[];for(var a in t[r])i.push({name:t[r][a],text:t[r][a],code:"#{".concat(r,".").concat(a,"}"),value:"#{".concat(r,".").concat(a,"}"),type:"variable"});n.push({name:"用户扩展信息",code:"#{".concat(r,"}"),value:"#{".concat(r,"}"),type:"variable",children:i})}else n.push({name:t[r],code:"#{".concat(r,"}"),value:"#{".concat(r,"}"),type:"variable"});return e("GET_SYSTEM_VARIABLE",n),t.entitys}))})),"GET_DECRYPT_KEY",(function(t){var e=t.commit;return m.a.get("/"+window.BASE_PROJECT_NAME+"/api/v1/rsa/public/v2").then((function(t){var n={rsaKey:t.publicKey,aesKey:t.aesKey};return e("GET_DECRYPT_KEY",n),n}))}))}},677:function(t,e,n){"use strict";n.r(e);var r=n(7),i=(n(3),n(52),n(115),n(103)),a=n.n(i);e.default={state:{fieList:[],filePromises:{}},getters:{},mutations:{},actions:Object(r.a)({},"ADD_FILE",(function(t){t.commit;var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,n){e.id||n(new Error),a.a.get({entityId:"FM_FILE",id:e.id}).then((function(e){t(e)})).catch((function(t){n(t)}))}))}))}},678:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(0),a=n(1),o=(n(39),n(9),n(8),n(21),n(3),n(52),n(23),n(115),n(26),n(16),n(25),n(103)),c=n.n(o),u=n(44),s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return t.map((function(t){return t.defaultIndex=0,t.values||(t.values=Object(a.a)(e)),t.name=t.text||t.title,t.values.push(t.value),t.values.length>n.count&&(n.count=t.values.length),t.children.length>0?t.values=s(t.children,t.values,n):delete t.children,t}))};e.default={state:{lists:{},treeList:{},objects:{},object_counts:{},listStatus:{},tags:{}},getters:{getCodeById:function(t){return function(e){return t.lists[e]||t.treeList[e]}},getTreeCodeById:function(t){return function(e){return t.treeList[e]}},getTreeById:function(t){return function(e){return t.objects[e]}},getTreeCountById:function(t){return function(e){return t.object_counts[e]}},getTagListByMetaId:function(t){return function(e){return t.tags[e]}}},mutations:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},u.a,(function(t,e){t.lists=Object(i.a)(Object(i.a)({},t.lists),e);var n=Object.keys(t.lists);if(n.length>100){var r=n.shift();delete t.lists[r]}})),"DELETE_LIST",(function(t,e){delete t.lists[e.key]})),"ADD_TREE_LIST",(function(t,e){t.treeList=Object(i.a)(Object(i.a)({},t.treeList),e);var n=Object.keys(t.treeList);if(n.length>100){var r=n.shift();delete t.treeList[r]}})),u.c,(function(t,e){t.objects=Object(i.a)(Object(i.a)({},t.objects),e);var n=Object.keys(t.objects);if(n.length>100){var r=n.shift();delete t.objects[r]}})),u.d,(function(t,e){t.object_counts=Object(i.a)(Object(i.a)({},t.object_counts),e)})),u.f,(function(t,e){t.tags=Object(i.a)(Object(i.a)({},t.tags),e)})),actions:Object(r.a)(Object(r.a)({},u.a,(function(t,e){var n=t.state,a=t.commit,o=n.listStatus[e.key];if(o)return o;var f=new Promise((function(t,i){if(e.key)return"treeList"===e.dataType?c.a.getTree({entityId:"FM_CODE_DEFINE",key:e.key}).then((function(n){var i=s(n,[],{count:1});a("ADD_TREE_LIST",Object(r.a)({},e.key,i)),t(i)})).catch((function(t){i(t),delete n.listStatus[e.key]})):"object"===e.dataType?c.a.getTree({entityId:e.key}).then((function(i){var o={count:1},c=s(i,[],o);a(u.d,Object(r.a)({},e.key,o.count)),a(u.c,Object(r.a)({},e.key,c)),t(i),delete n.listStatus[e.key]})).catch((function(t){i(t),delete n.listStatus[e.key]})):c.a.getCodes({key:e.key,systemId:e.systemId}).then((function(i){a(u.a,Object(r.a)({},e.key,i||[])),t(i||[]),delete n.listStatus[e.key]})).catch((function(t){i(t),delete n.listStatus[e.key]}));i(new Error),delete n.listStatus[e.metaId]}));return n.listStatus=Object(i.a)(Object(i.a)({},n.listStatus),{},Object(r.a)({},e.key,f)),f})),u.f,(function(t,e){var n=t.state,a=t.commit,o=n.listStatus[e.metaId];if(o)return o;var s=new Promise((function(t,i){if(e.metaId)return c.a.$get({action:"getTags",entityId:"FM_ENTITY",metaId:e.metaId}).then((function(i){a(u.f,Object(r.a)({},e.metaId,i.entitys||[])),t(i||[]),delete n.listStatus[e.metaId]})).catch((function(t){i(t),delete n.listStatus[e.metaId]}));i(new Error),delete n.listStatus[e.metaId]}));return n.listStatus=Object(i.a)(Object(i.a)({},n.listStatus),{},Object(r.a)({},e.metaId,s)),s}))}},679:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(1),a=n(0),o=(n(32),n(14),n(19),n(9),n(21),n(3),n(53),n(52),n(22),n(11),n(115),n(26),n(16),n(42),n(30),n(28),n(25),n(103)),c=n.n(o),u=n(632),s=n.n(u),f=n(44),d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t.forEach((function(t){if(t.field||(t.field=e?e.toUpperCase()+"|"+t.code:t.code),t.codeKey||(t.codeKey=t.relatedEntity),t.relationMeta){var n,r=t.relationMeta,o=r.children,c=r.linkFlag,u=r.relationMetaList,s=r.id,f=r.text;if(t.children=o.map((function(t){return Object(a.a)(Object(a.a)({},t),{},{meta:s,metaLabel:f})})),t.linkFlag=e?e+"|"+c:c,u)u.forEach((function(e){e.isSub=!0,e.type="meta",e.linkFlag=t.linkFlag+"|"+e.linkFlag,e.field=e.linkFlag,e.children=e.children.map((function(t){return Object(a.a)(Object(a.a)({},t),{},{meta:e.id,metaLabel:e.text,relationSort:e.relationType})}))})),(n=t.children).push.apply(n,Object(i.a)(u))}t.children&&d(t.children,t.linkFlag)}))};e.default={state:{metas:{},simpleMetas:{},metaStatus:{},simpleMetaStatus:{},metaRelationFields:{},metaRelationFieldStatus:{},metaViewFields:{},metaViewFieldStatus:{}},mutations:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},f.b,(function(t,e){t.metas=Object(a.a)(Object(a.a)({},t.metas),e);var n=Object.keys(t.metas);if(n.length>50){var r=n.shift();delete t.metas[r]}})),"ADD_SIMPLE_META",(function(t,e){t.simpleMetas=Object(a.a)(Object(a.a)({},t.simpleMetas),e)})),"ADD_META_RELATION_FIELDS",(function(t,e){t.metaRelationFields=Object(a.a)(Object(a.a)({},t.metaRelationFields),e);var n=Object.keys(t.metaRelationFields);if(n.length>50){var r=n.shift();delete t.metaRelationFields[r]}})),"ADD_META_VIEW_FIELDS",(function(t,e){t.metaViewFields=Object(a.a)(Object(a.a)({},t.metaViewFields),e);var n=Object.keys(t.metaViewFields);if(n.length>50){var r=n.shift();delete t.metaViewFields[r]}})),getters:{getMetaById:function(t){return function(e){return t.metas[e]}},getMeta:function(t){return function(e){return Object.values(t.metas).find((function(t){return t.id===e||t.code===e||t.code+"@"+t.systemCode+"@"+t.clientCode===e}))}},getSimpleMeta:function(t){return function(e){return t.simpleMetas[e]||Object.values(t.metas).find((function(t){return t.id===e||t.code===e}))}},getMetaRelationFields:function(t){return function(e){return t.metaRelationFields[e]}},getMetaViewFields:function(t){return function(e,n){return t.metaViewFields[e+(n||"")]}}},actions:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},f.b,(function(t){var e=t.state,n=t.commit,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.metaStatus[i.metaId];if(o)return o;var u=new Promise((function(t,a){i.metaId?c.a.getMeta({metaId:i.metaId.includes("@system@")?i.metaId.split("@")[0]:i.metaId}).then((function(o){if(o){var c=new s.a(o);n(f.b,Object(r.a)({},i.metaId,c)),delete e.metaStatus[i.metaId],t(c)}a(new Error)})).catch((function(t){delete e.metaStatus[i.metaId],a(t)})):(a(new Error),delete e.metaStatus[i.metaId])}));return e.metaStatus=Object(a.a)(Object(a.a)({},e.metaStatus),{},Object(r.a)({},i.metaId,u)),u})),"ADD_SIMPLE_META",(function(t){var e=t.state,n=t.commit,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.simpleMetaStatus[i.metaId];if(o)return o;var u=new Promise((function(t,a){i.metaId?c.a.getSimpleMeta({metaId:i.metaId}).then((function(o){o&&(n("ADD_SIMPLE_META",Object(r.a)({},i.metaId,o)),delete e.simpleMetaStatus[i.metaId],t(o)),a(new Error)})).catch((function(t){delete e.simpleMetaStatus[i.metaId],a(t)})):(a(new Error),delete e.simpleMetaStatus[i.metaId])}));return e.simpleMetaStatus=Object(a.a)(Object(a.a)({},e.simpleMetaStatus),{},Object(r.a)({},i.metaId,u)),u})),"ADD_META_RELATION_FIELDS",(function(t){var e=t.state,n=t.commit,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=e.metaRelationFieldStatus[o.id];if(u)return u;var s=c.a.get({action:"metaRelationTree",entityId:"FM_ENTITY",metaId:o.id,allSub:!0}).then((function(t){if(t){var c;if(t.children=t.children.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{meta:t.id})})),t.relationMetaList)t.relationMetaList.forEach((function(t){t.isSub=!0,t.type="meta",t.isMeta=!0,t.field=t.linkFlag,t.children=t.children.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{relationSort:t.relationType,meta:t.id,field:t.linkFlag.toUpperCase()+"|"+e.code})}))})),(c=t.children).push.apply(c,Object(i.a)(t.relationMetaList));t.isMain=!0,t.isUnFold=!0;var u=[t];return d(u),n("ADD_META_RELATION_FIELDS",Object(r.a)({},o.id,u)),delete e.metaRelationFieldStatus[o.id],u}})).catch((function(){delete e.metaRelationFieldStatus[o.id]}));return e.metaRelationFieldStatus=Object(a.a)(Object(a.a)({},e.metaRelationFieldStatus),{},Object(r.a)({},o.id,s)),s})),"ADD_META_VIEW_FIELDS",(function(t){var e=t.state,n=t.commit,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.metaId+(i.viewId||""),u=e.metaViewFieldStatus[o];if(u)return u;var s=c.a.get({action:"getEntityMetaView",entityId:"FM_ENTITY_VIEW",metaId:i.metaId,metaViewId:i.viewId,allSub:!0}).then((function(t){if(t){t[0].isMain=!0;var i=function(t){return t.filter((function(t){return!!t})).map((function(t){return t.field="meta"===t.type?t.linkFlag||t.code:t.linkCode||t.code,t.relationSort=t.relationType,t.codeKey||(t.codeKey=t.relatedEntity),"meta"===t.type&&"1"===t.relationType&&(t.isSub=!0),t.children&&(t.children=i(t.children)),t}))},a=i(t);return n("ADD_META_VIEW_FIELDS",Object(r.a)({},o,a)),delete e.metaViewFieldStatus[o],a}})).catch((function(){delete e.metaViewFieldStatus[o]}));return e.metaViewFieldStatus=Object(a.a)(Object(a.a)({},e.metaViewFieldStatus),{},Object(r.a)({},o,s)),s}))}},680:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(51),a=n(7),o=(n(14),n(46),n(39),n(29),n(21),n(3),n(52),n(33),n(23),n(26),n(16),n(30),n(40),n(103)),c=n.n(o),u=n(250),s=n.n(u),f=n(44),d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.pageId?c.a.getPageConfigById({id:t.pageId}):c.a.getPageConfig({metaId:t.metaId,flag:t.flag})};e.default={state:{configs:[],templateLibrary:[],templateStatus:{},componentLibrary:[],componentStatus:{}},getters:{getPageById:function(t){return function(e){return t.configs.find((function(t){return t.pageId===e}))}},getPageByMetaId:function(t){return function(e,n){return t.configs.find((function(t){return(t.pageMetaId===e||t.metaId===e||!t.pageMetaId&&!e)&&t.flag==n}))}},getTemplate:function(t){return function(e){return t.templateLibrary.find((function(t){return t.ID===e}))}},getComponent:function(t){return function(e){return t.componentLibrary.find((function(t){return t.CODE===e}))}}},mutations:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},f.e,(function(t,e){t.configs.push(e),t.configs.length>50&&t.configs.shift()})),f.o,(function(t,e){var n=e.flag,r=e.metaId,i=e.pageId,a=-1;-1!==(a=i?t.configs.findIndex((function(t){return t.pageId===i})):t.configs.findIndex((function(t){return t.flag===n&&t.metaId===r})))&&t.configs.splice(a,1)})),"ADD_TEMPLATE",(function(t,e){t.templateLibrary.push(e)})),"DELETE_TEMPLATE",(function(t,e){if(e.id){var n=t.templateLibrary.findIndex((function(t){return t.id===e.id}));-1!==n&&t.templateLibrary.splice(n,1)}})),"ADD_COMPONENT",(function(t,e){t.componentLibrary.push(e)})),"DELETE_COMPONENT",(function(t,e){if(e.code){var n=t.componentLibrary.findIndex((function(t){return t.CODE===e.code}));-1!==n&&t.componentLibrary.splice(n,1)}})),actions:Object(a.a)(Object(a.a)(Object(a.a)({},f.e,(function(t){var e=t.commit,n=t.getters,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,i){if(r.pageId){var a=n.getPageById(r.pageId);if(a)return t(a)}else if(r.flag){var o=n.getPageByMetaId(r.metaId,r.flag);if(o)return t(o)}d(r).then((function(n){var i=(r||{}).metaId,a=new s.a(n);a.pageMetaId=i||a.metaId,e(f.e,a),t(a)})).catch((function(t){i(t)}))}))})),"ADD_TEMPLATE",(function(t){var e=t.commit,n=t.state,o=t.getters,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u.id){var s=o.getTemplate(u.id);if(s)return s;var f=n.templateStatus[u.id];if(f)return f;var d=Promise.all([c.a.get({entityId:"FM_TEMPLATE",id:u.id}),c.a.list({entityId:"FM_TEMPLATE_ATTRIBUTE","scope.TEMPLATE":u.id})]).then((function(t){var r=Object(i.a)(t,2),a=r[0],o=r[1];delete n.templateStatus[u.id];var c=a.data;return c.content=JSON.parse(c.CONTENT||"{}"),c.attributes=o.entitys,e("ADD_TEMPLATE",c),c})).catch((function(){delete n.templateStatus[u.id]}));return n.templateStatus=Object(r.a)(Object(r.a)({},n.templateStatus),{},Object(a.a)({},u.id,d)),d}})),"ADD_COMPONENT",(function(t){var e=t.commit,n=t.state,o=t.getters,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u.code){var s=o.getComponent(u.code);if(s)return s;var f=n.componentStatus[u.code];if(f)return f;var d=Promise.all([c.a.find({entityId:"FM_PAGE","scope.CODE":u.code}),c.a.list({entityId:"FM_PAGE_ATTRIBUTE","scope.PAGE|CODE":u.code})]).then((function(t){var r=Object(i.a)(t,2),a=r[0],o=r[1];delete n.componentStatus[u.code];var c=a.data;return c.content=JSON.parse(c.CONTENT||"{}"),c.attributes=o.entitys,e("ADD_COMPONENT",c),c})).catch((function(){delete n.componentStatus[u.code]}));return n.componentStatus=Object(r.a)(Object(r.a)({},n.componentStatus),{},Object(a.a)({},u.code,d)),d}}))}},681:function(t,e,n){"use strict";n.r(e);var r,i=n(7),a=n(0),o=n(1),c=(n(20),n(32),n(46),n(29),n(3),n(22),n(11),n(26),n(16),n(42),n(28),n(44));e.default={state:{routers:[],moduleRoute:{},moduleRouters:[],menuRoute:{},menuRouters:[],currentRoute:{},query:{},reload:!1},mutations:(r={},Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(r,c.E,(function(t,e){t.routers.forEach((function(t){t.active=!1}));var n=(new Date).getTime()+Math.random();t.routers=[].concat(Object(o.a)(t.routers),[Object(a.a)(Object(a.a)({},e),{},{key:String(e.key||n),active:!0,time:n})])})),c.G,(function(t,e){var n=e.key,r=e.router,i=-1;-1!==(i=n?t.routers.findIndex((function(t){return t.key===n})):t.routers.findIndex((function(t){return!0===t.active})))&&t.routers.splice(i,1,Object(a.a)(Object(a.a)({},r),{},{key:n}))})),c.z,(function(t,e){t.routers.forEach((function(t){t.key===e?t.active=!0:t.active=!1}))})),c.p,(function(t,e){var n=t.routers,r=n.findIndex((function(t){return t.key===e})),i=n[r];i&&i.active&&(n[r-1]?n[r-1].active=!0:n[r+1]&&(n[r+1].active=!0)),n.splice(r,1),t.routers=Object(o.a)(n)})),c.h,(function(t){t.routers=[]})),c.j,(function(t){t.routers=t.routers.filter((function(t){return t.key&&(t.key+"").includes("nav-")}))})),c.D,(function(t,e){var n=e.key,r=e.router,i=-1;if(-1!==(i=n?t.routers.findIndex((function(t){return t.key===n})):t.routers.findIndex((function(t){return!0===t.active})))){var o=t.routers[i];o.children||(o.children=[]),o.children.push(Object(a.a)(Object(a.a)({},r),{},{key:(new Date).getTime()})),t.routers.splice(i,1,o)}})),c.B,(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.key,r=-1;if(-1!==(r=n?t.routers.findIndex((function(t){return t.key===n})):t.routers.findIndex((function(t){return!0===t.active})))){var i=Object(o.a)(t.routers),a=t.routers[r];a.children&&a.children.length>0&&a.children.pop(),i.splice(r,1,a),t.routers=Object(o.a)(i)}})),c.n,(function(t,e){t.moduleRoute={},t.moduleRouters=[]})),c.C,(function(t,e){var n=e.router,r=t.routers.findIndex((function(t){return!0===t.active}));if(-1!==r){var i=t.routers[r].children||[],c=i[i.length-1]||{};c.children||(c.children=[]),c.children.push(Object(a.a)(Object(a.a)({},n),{},{key:(new Date).getTime()}));var u=Object(o.a)(t.routers);u.splice(r,1,Object(a.a)(Object(a.a)({},t.routers[r]),{},{children:i})),t.routers=Object(o.a)(u)}})),Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(r,c.A,(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e.key,t.routers.findIndex((function(t){return!0===t.active})));if(-1!==n){var r=t.routers[n].children||[],i=r[r.length-1]||{};i.children&&i.children.length>0&&i.children.pop(),t.routers.splice(n,1,Object(a.a)(Object(a.a)({},t.routers[n]),{},{children:r}))}})),c.m,(function(t){t.menuRoute={},t.menuRouters=[]})),c.H,(function(t,e){var n=t.routers.findIndex((function(t){return!0===t.active}));-1!==n&&t.routers.splice(n,1,Object(a.a)(Object(a.a)({},t.routers[n]),e))})),c.I,(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.reload=e}))),actions:{}}},682:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(1),a=n(0),o=(n(32),n(14),n(46),n(19),n(29),n(3),n(22),n(11),n(26),n(16),n(42),n(30),n(28),n(44)),c=function(){var t=(new Date).getTime(),e=Math.random();return String(e).split(".")[1]+t};e.default={state:{tabs:[]},getters:{getTab:function(t){return function(e){return t.tabs.find((function(t){return t.key===e}))}}},mutations:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},o.l,(function(t,e){t.tabs.forEach((function(t){t.active=!1}));var n=e.key;if(n){var r=t.tabs.findIndex((function(t){return t.key===n}));-1!==r&&t.tabs.splice(r,1)}else n=c();t.tabs.push(Object(a.a)(Object(a.a)({},e),{},{active:!0,key:n}))})),"UNSHIFT_TAB",(function(t,e){t.tabs.forEach((function(t){t.active=!1}));var n=e.key;if(n){var r=t.tabs.findIndex((function(t){return t.key===n}));-1!==r&&t.tabs.splice(r,1)}else n=c();t.tabs.unshift(Object(a.a)(Object(a.a)({},e),{},{active:!0,key:n}))})),o.F,(function(t,e){t.tabs.forEach((function(t){t.key===e?t.active=!0:t.active=!1}))})),"POP_TAB",(function(t){var e=Object(i.a)(t.tabs),n=e.length-1;!0===e.pop().active&&(e[n-1]?e[n-1]=Object(a.a)(Object(a.a)({},e[n-1]),{},{active:!0}):e[n+1]&&(t.tabs[n+1]=Object(a.a)(Object(a.a)({},e[n+1]),{},{active:!0}))),t.tabs=Object(i.a)(e)})),o.r,(function(t,e){var n=Object(i.a)(t.tabs),r=n.findIndex((function(t){return t.key===e}));-1!==r&&(!0===n[r].active&&(n[r-1]?n[r-1]=Object(a.a)(Object(a.a)({},n[r-1]),{},{active:!0}):n[r+1]&&(t.tabs[r+1]=Object(a.a)(Object(a.a)({},n[r+1]),{},{active:!0}))),n.splice(r,1),t.tabs=Object(i.a)(n))})),o.s,(function(t,e){var n=Object(i.a)(t.tabs),r=Object(i.a)(t.tabs).filter((function(t){return!(t.key+"").includes("default-")})),o=n.findIndex((function(t){return t.key===e})),c=r.findIndex((function(t){return t.key===e}));if(-1!==o){if(!0===n[o].active){var u="";if((r[c-1]||r[c-1])&&(u=r[c-1].key),u){var s=n.findIndex((function(t){return t.key===u}));-1!==s&&(n[s]=Object(a.a)(Object(a.a)({},n[s]),{},{active:!0}))}}n.splice(o,1),t.tabs=Object(i.a)(n)}})),o.i,(function(t){t.tabs=t.tabs.filter((function(t){return t.key.includes("default-")})),t.tabs.length>0&&!t.tabs.find((function(t){return t.active}))&&(t.tabs[0].active=!0)})),o.k,(function(t){t.tabs=t.tabs.filter((function(t){return t.key.includes("default-")})),t.tabs.length>0&&(t.tabs[t.tabs.length-1].active=!0)})),"DELETE_TABS",(function(t){t.tabs=[]})),o.J,(function(t,e){var n=e.key,r=e.query,i=void 0===r?{}:r,o=t.tabs.findIndex((function(t){return n?t.key===n:!0===t.active}));if(-1!==o){var c=t.tabs[o];t.tabs.splice(o,1),t.tabs.splice(o,0,Object(a.a)(Object(a.a)({},c),i))}})),actions:{}}},683:function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(0),a=(n(14),n(3),n(52),n(115),n(26),n(16),n(30),n(44)),o=n(103),c=n.n(o);e.default={state:{user:{},userInfo:{}},mutations:Object(r.a)(Object(r.a)(Object(r.a)({},a.w,(function(t,e){t.user=Object(i.a)(Object(i.a)({},t.user),e)})),a.x,(function(t,e){t.userInfo=Object(i.a)(Object(i.a)({},t.userInfo),e)})),a.q,(function(t){t.user={},t.userInfo={}})),actions:Object(r.a)(Object(r.a)({},a.w,(function(t,e){var n=t.commit;return new Promise((function(t,e){c.a.getUser().then((function(r){if(r){var i=r.bean||{},o=i.services,c=void 0===o?{}:o,u=i.roles,s=void 0===u?{}:u,f={};for(var d in c){var l=c[d],b=[];for(var m in l){var j=s[m]||{};b.push({id:m,isDefault:l[m],name:j.NAME,code:j.CODE,system:j.SYSTEM,type:j.TYPE})}f[d]=b}i.serviceRoles=f,n(a.w,i),t(i)}else e(new Error)})).catch((function(t){e(t)}))}))})),a.x,(function(t){var e=t.commit;c.a.find({entityId:"FM_USER","scope.ID":"#{user.id}"}).then((function(t){var n=t.data||{};e(a.x,n)}))}))}},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(24);function i(t,e,n){return(e=Object(r.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},8:function(t,e){t.exports=require("core-js/modules/es.function.name.js")},9:function(t,e){t.exports=require("core-js/modules/es.array.map.js")}});
|
package/lib/utils/Config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="/dist/",e(e.s=
|
|
1
|
+
module.exports=function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="/dist/",e(e.s=264)}({0:function(t,r,e){"use strict";e.d(r,"a",(function(){return i}));var n=e(7);function o(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function i(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?o(Object(e),!0).forEach((function(r){Object(n.a)(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}},1:function(t,r,e){"use strict";e.d(r,"a",(function(){return i}));var n=e(10);var o=e(15);function i(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10:function(t,r,e){"use strict";function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,"a",(function(){return n}))},111:function(t,r,e){"use strict";function n(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}e.d(r,"a",(function(){return n}))},112:function(t,r,e){"use strict";e.d(r,"a",(function(){return i}));var n=e(24);function o(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Object(n.a)(o.key),o)}}function i(t,r,e){return r&&o(t.prototype,r),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}},15:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(10);function o(t,r){if(t){if("string"==typeof t)return Object(n.a)(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Object(n.a)(t,r):void 0}}},24:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(4);function o(t){var r=function(t,r){if("object"!=Object(n.a)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,r||"default");if("object"!=Object(n.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Object(n.a)(r)?r:r+""}},264:function(t,r,e){"use strict";e.r(r);var n=e(0),o=e(1),i=e(111),u=e(112),c=e(90),a=function(){return Object(u.a)((function t(){Object(i.a)(this,t)}),[{key:"set",value:function(t){for(var r in t)try{Object(c.isObject)(t[r])?Array.isArray(t[r])?this[r]=Object(o.a)(t[r]):(this[r]||(this[r]={}),this[r]=Object(n.a)(Object(n.a)({},this[r]),t[r])):this[r]=t[r]}catch(e){this[r]=t[r]}}}])}();r.default=a},4:function(t,r,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.d(r,"a",(function(){return n}))},7:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(24);function o(t,r,e){return(r=Object(n.a)(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},90:function(t,r){t.exports=require("lodash-es")}});
|
package/lib/utils/axios.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=function(e){function r(r){for(var t,n,i=r[0],s=r[1],c=0,u=[];c<i.length;c++)n=i[c],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&u.push(o[n][0]),o[n]=0;for(t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t]);for(a&&a(r);u.length;)u.shift()()}var t={},o={120:0};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},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,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="/dist/",n.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=r,i=i.slice();for(var c=0;c<i.length;c++)r(i[c]);var a=s;return n(n.s=
|
|
1
|
+
module.exports=function(e){function r(r){for(var t,n,i=r[0],s=r[1],c=0,u=[];c<i.length;c++)n=i[c],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&u.push(o[n][0]),o[n]=0;for(t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t]);for(a&&a(r);u.length;)u.shift()()}var t={},o={120:0};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},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,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="/dist/",n.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=r,i=i.slice();for(var c=0;c<i.length;c++)r(i[c]);var a=s;return n(n.s=263)}({0:function(e,r,t){"use strict";t.d(r,"a",(function(){return i}));var o=t(7);function n(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?n(Object(t),!0).forEach((function(r){Object(o.a)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}},113:function(e,r){e.exports=require("core-js/modules/es.regexp.dot-all.js")},114:function(e,r){e.exports=require("core-js/modules/es.regexp.sticky.js")},12:function(e,r){e.exports=require("core-js/modules/es.regexp.exec.js")},124:function(e,r){e.exports=require("axios")},130:function(e,r){e.exports=require("core-js/modules/esnext.string.replace-all.js")},131:function(e,r){e.exports=require("core-js/modules/es.string.replace-all.js")},140:function(e,r){e.exports=require("js-cookie")},142:function(e,r){e.exports=require("core-js/modules/es.string.starts-with.js")},168:function(e,r){e.exports=require("core-js/modules/web.atob.js")},169:function(e,r){e.exports=require("core-js/modules/web.dom-exception.constructor.js")},17:function(e,r,t){"use strict";function o(e,r,t,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(o=function(e,r,t,n){function s(r,t){o(e,r,(function(e){return this._invoke(r,t,e)}))}r?i?i(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(s("next",0),s("throw",1),s("return",2))})(e,r,t,n)}function n(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
-
var e,r,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",s=t.toStringTag||"@@toStringTag";function c(t,n,i,s){var c=n&&n.prototype instanceof u?n:u,l=Object.create(c.prototype);return o(l,"_invoke",function(t,o,n){var i,s,c,u=0,l=n||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(r,t){return i=r,s=0,c=e,p.n=t,a}};function d(t,o){for(s=t,c=o,r=0;!f&&u&&!n&&r<l.length;r++){var n,i=l[r],d=p.p,m=i[2];t>3?(n=m===o)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((n=t<2&&d<i[1])?(s=0,p.v=o,p.n=i[1]):d<m&&(n=t<3||i[0]>o||o>m)&&(i[4]=t,i[5]=o,p.n=m,s=0))}if(n||t>1)return a;throw f=!0,o}return function(n,l,m){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,m),s=l,c=m;(r=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(n="next"),r=i[n]){if(!(r=r.call(i,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,s<2&&(s=0)}else 1===s&&(r=i.return)&&r.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((r=(f=p.n<0)?c:t.call(o,p))!==a)break}catch(r){i=e,s=1,c=r}finally{u=1}}return{value:r,done:f}}}(t,i,s),!0),l}var a={};function u(){}function l(){}function f(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(o(r={},i,(function(){return this})),r),d=f.prototype=u.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,o(e,s,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=f,o(d,"constructor",f),o(f,"constructor",l),l.displayName="GeneratorFunction",o(f,s,"GeneratorFunction"),o(d),o(d,s,"Generator"),o(d,i,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:c,m:m}})()}t.d(r,"a",(function(){return n}))},170:function(e,r){e.exports=require("core-js/modules/web.dom-exception.stack.js")},171:function(e,r){e.exports=require("core-js/modules/web.dom-exception.to-string-tag.js")},177:function(e,r){e.exports=require("element-ui")},18:function(e,r){e.exports=require("core-js/modules/es.string.replace.js")},21:function(e,r){e.exports=require("core-js/modules/es.object.keys.js")},219:function(e,r){e.exports=require("crypto-js")},23:function(e,r){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},24:function(e,r,t){"use strict";t.d(r,"a",(function(){return n}));var o=t(4);function n(e){var r=function(e,r){if("object"!=Object(o.a)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=Object(o.a)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==Object(o.a)(r)?r:r+""}},
|
|
3
|
+
var e,r,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",s=t.toStringTag||"@@toStringTag";function c(t,n,i,s){var c=n&&n.prototype instanceof u?n:u,l=Object.create(c.prototype);return o(l,"_invoke",function(t,o,n){var i,s,c,u=0,l=n||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(r,t){return i=r,s=0,c=e,p.n=t,a}};function d(t,o){for(s=t,c=o,r=0;!f&&u&&!n&&r<l.length;r++){var n,i=l[r],d=p.p,m=i[2];t>3?(n=m===o)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((n=t<2&&d<i[1])?(s=0,p.v=o,p.n=i[1]):d<m&&(n=t<3||i[0]>o||o>m)&&(i[4]=t,i[5]=o,p.n=m,s=0))}if(n||t>1)return a;throw f=!0,o}return function(n,l,m){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,m),s=l,c=m;(r=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(n="next"),r=i[n]){if(!(r=r.call(i,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,s<2&&(s=0)}else 1===s&&(r=i.return)&&r.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((r=(f=p.n<0)?c:t.call(o,p))!==a)break}catch(r){i=e,s=1,c=r}finally{u=1}}return{value:r,done:f}}}(t,i,s),!0),l}var a={};function u(){}function l(){}function f(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(o(r={},i,(function(){return this})),r),d=f.prototype=u.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,o(e,s,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=f,o(d,"constructor",f),o(f,"constructor",l),l.displayName="GeneratorFunction",o(f,s,"GeneratorFunction"),o(d),o(d,s,"Generator"),o(d,i,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:c,m:m}})()}t.d(r,"a",(function(){return n}))},170:function(e,r){e.exports=require("core-js/modules/web.dom-exception.stack.js")},171:function(e,r){e.exports=require("core-js/modules/web.dom-exception.to-string-tag.js")},177:function(e,r){e.exports=require("element-ui")},18:function(e,r){e.exports=require("core-js/modules/es.string.replace.js")},21:function(e,r){e.exports=require("core-js/modules/es.object.keys.js")},219:function(e,r){e.exports=require("crypto-js")},23:function(e,r){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},24:function(e,r,t){"use strict";t.d(r,"a",(function(){return n}));var o=t(4);function n(e){var r=function(e,r){if("object"!=Object(o.a)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=Object(o.a)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==Object(o.a)(r)?r:r+""}},263:function(e,r,t){"use strict";t.r(r);var o,n=t(17),i=t(31),s=t(0),c=(t(39),t(8),t(21),t(3),t(52),t(99),t(12),t(89),t(33),t(18),t(92),t(142),t(130),t(23),t(40),t(113),t(114),t(131),t(168),t(169),t(170),t(171),t(124)),a=t.n(c),u=t(49),l=t.n(u),f=t(140),p=t.n(f),d=t(177),m=null,g=null,b=function(e){g&&clearTimeout(g),g=setTimeout((function(){m&&m.close(),m=Object(d.Message)({message:e||"登录失效,请重新登录",type:"error"}),l.a.toLogin&&l.a.toLogin()}),100)};r.default=((o=a.a.create({timeout:12e5,baseURL:""})).defaults.withCredentials=!!window.WITH_CREDENTIALS,o.interceptors.request.use((function(e){window.IP&&(e.baseURL=window.IP);var r=null,t={};window.router&&(t=window.router.history.current.params,r=window.router.history.current.name);var o=window.location.hash.split("?")[0],n=/(app\/role\/select|hall\/role\/select|app|hall\/login|hall|login|system|client|service\/setting|recruit\/register)\/(\w+)\/?([\w-]+)?\/(\w+)\/?([\w-_]+)?/.exec(o),i=n?"login"===RegExp.$2?RegExp.$3:RegExp.$2:null,c=n?RegExp.$3:null,a=n?"hall"===RegExp.$1?"FM_SERVICE_HALL":RegExp.$4:null,u=n?"hall"===RegExp.$1?RegExp.$3:"system"===RegExp.$1?RegExp.$4:RegExp.$5:null,f=window.store.state.config,d=f.clientConfig,m=void 0===d?{}:d,g=f.appConfig,b=void 0===g?{}:g,j=f.temporaryRole,w=m.CODE,y=void 0===w?"":w,v=m.LANGUAGE_DEFAULT,h=void 0===v?"":v,x=b.CODE,O=void 0===x?"":x,E=b.EXTEND_OF_COMPETENCE,P=window.store.state.user.userInfo.LANGUAGE,S=t.client||i||y,T=t.app||O||a,q=t.role||u||"";"Config"===r&&(q="SYSTEM");var k=l.a.search("token",window.location.hash);k&&localStorage.setItem(S+"-token",k);var R=l.a.search("_token",window.location.hash)||localStorage.getItem(S+"-token");window.IP&&R&&(e.headers.Authorization="Bearer ".concat(R)),e.headers.Language=localStorage.getItem(S+"-language")||P||h||"010",("manage"===r||o.startsWith("#/manage"))&&(e.headers.Mode="manage"),e.headers.Client=S,e.headers["App-Agent"]=T,(t.system||c)&&(e.headers.System=t.system||c),("allRole"!==E&&q||j)&&(e.headers.Role=(null==j?void 0:j.code)||q);var _=p.a.get("xsrf_token");return _&&(e.headers.xsrf_token=_),e.params=Object(s.a)(Object(s.a)({},e.params),{},{nonceStr:l.a.uuid().replaceAll("-",""),timestamp:(new Date).getTime()}),e})),o.interceptors.response.use(function(){var e=Object(i.a)(Object(n.a)().m((function e(r){var o,i,s,c,a,u,l,f,p,d,m;return Object(n.a)().w((function(e){for(;;)switch(e.n){case 0:if(o={},window.router&&(o=window.router.history.current.params),/(login|hall\/login|hall|app\/role\/select|app|system|client|service\/setting)\/(\w+)/.exec(window.location.hash),i=window.store.state.config.appConfig["CLIENT|CODE"],s=void 0===i?"":i,c=o.client||RegExp.$2||s,(a=r.headers.authorization)&&(u=a.split("Bearer ")[1],localStorage.setItem(c+"-token",u)),l=r.data,!((f=void 0===l?{}:l)instanceof Blob)){e.n=1;break}return p=r.headers["content-disposition"]||"",d=p.replace(/(.+)filename="(.+)"/,"$2"),e.a(2,Promise.resolve({blob:f,filename:decodeURIComponent(d)}));case 1:if("0"!==f.code){e.n=6;break}if(!f.responseEncrypt){e.n=4;break}if((m=window.store.state.config.decryptKey).aesKey){e.n=3;break}return e.n=2,window.store.dispatch("GET_DECRYPT_KEY");case 2:m=e.v;case 3:return e.a(2,Promise.resolve().then(t.t.bind(null,219,7)).then((function(e){var r=atob(m.aesKey),t=e.enc.Utf8.parse(r.toString(e.enc.Utf8)),o=e.AES.decrypt(f.data,t,{iv:t,mode:e.mode.CBC,padding:e.pad.Pkcs7}),n=JSON.parse(o.toString(e.enc.Utf8));return Promise.resolve(n)})));case 4:return e.a(2,Promise.resolve(f.data));case 5:e.n=8;break;case 6:if("error.nologin"!==f.code&&"login.expired"!==f.code&&"401"!==f.code){e.n=7;break}localStorage.removeItem(c+"-token"),f.urlToRedirectTo?window.location.href=f.urlToRedirectTo:b(f.msg),e.n=8;break;case 7:return f.message=f.msg,e.a(2,Promise.reject(f));case 8:return e.a(2)}}),e)})));return function(r){return e.apply(this,arguments)}}(),(function(e){if("Cancel"!==e.toString()){var r=e.response||{},t=r.data,o=void 0===t?{code:"500",msg:"处理失败"}:t,n=r.status;if(o instanceof Blob){var i=new FileReader;return i.readAsText(o,"utf-8"),new Promise((function(e,r){i.onload=function(){var e=JSON.parse(i.result);r(Object(s.a)({message:e.msg},e))}}))}if("error.nologin"!==o.code&&"login.expired"!==o.code&&"401"!==o.code&&401!==n)return o.msg&&(o.message=o.msg),Promise.reject(o);var c={};window.router&&(c=window.router.history.current.params),/(login|hall\/login|hall|app\/role\/select|app|system|client|service\/setting)\/(\w+)/.exec(window.location.hash);var a=window.store.state.config.appConfig["CLIENT|CODE"],u=void 0===a?"":a,l=c.client||RegExp.$2||u;localStorage.removeItem(l+"-token"),o.urlToRedirectTo?window.location.href=o.urlToRedirectTo:b(o.msg)}})),o)},3:function(e,r){e.exports=require("core-js/modules/es.object.to-string.js")},31:function(e,r,t){"use strict";function o(e,r,t,o,n,i,s){try{var c=e[i](s),a=c.value}catch(e){return void t(e)}c.done?r(a):Promise.resolve(a).then(o,n)}function n(e){return function(){var r=this,t=arguments;return new Promise((function(n,i){var s=e.apply(r,t);function c(e){o(s,n,i,c,a,"next",e)}function a(e){o(s,n,i,c,a,"throw",e)}c(void 0)}))}}t.d(r,"a",(function(){return n}))},33:function(e,r){e.exports=require("core-js/modules/es.string.iterator.js")},39:function(e,r){e.exports=require("core-js/modules/es.array.iterator.js")},4:function(e,r,t){"use strict";function o(e){return(o="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)}t.d(r,"a",(function(){return o}))},40:function(e,r){e.exports=require("core-js/modules/es.json.parse.js")},49:function(e,r){e.exports=require("epx-frame/lib/utils/util")},52:function(e,r){e.exports=require("core-js/modules/es.promise.js")},7:function(e,r,t){"use strict";t.d(r,"a",(function(){return n}));var o=t(24);function n(e,r,t){return(r=Object(o.a)(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}},8:function(e,r){e.exports=require("core-js/modules/es.function.name.js")},89:function(e,r){e.exports=require("core-js/modules/es.regexp.to-string.js")},92:function(e,r){e.exports=require("core-js/modules/es.string.search.js")},99:function(e,r){e.exports=require("core-js/modules/es.regexp.constructor.js")}});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=
|
|
1
|
+
module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=265)}({0:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(7);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},1:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(10);var o=r(15);function i(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,"a",(function(){return n}))},11:function(t,e){t.exports=require("core-js/modules/web.dom-collections.for-each.js")},111:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return n}))},112:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(24);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Object(n.a)(o.key),o)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}},122:function(t,e){t.exports=require("epx-frame/lib/store")},123:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(4);function o(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(Object(n.a)(t)+" is not iterable")}},14:function(t,e){t.exports=require("core-js/modules/es.array.find.js")},15:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(10);function o(t,e){if(t){if("string"==typeof t)return Object(n.a)(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(t,e):void 0}}},16:function(t,e){t.exports=require("core-js/modules/es.iterator.constructor.js")},17:function(t,e,r){"use strict";function n(t,e,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(n=function(t,e,r,o){function u(e,r){n(t,e,(function(t){return this._invoke(e,r,t)}))}e?i?i(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(u("next",0),u("throw",1),u("return",2))})(t,e,r,o)}function o(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
-
var t,e,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",u=r.toStringTag||"@@toStringTag";function a(r,o,i,u){var a=o&&o.prototype instanceof f?o:f,s=Object.create(a.prototype);return n(s,"_invoke",function(r,n,o){var i,u,a,f=0,s=o||[],l=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,u=0,a=t,d.n=r,c}};function p(r,n){for(u=r,a=n,e=0;!l&&f&&!o&&e<s.length;e++){var o,i=s[e],p=d.p,b=i[2];r>3?(o=b===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(u=0,d.v=n,d.n=i[1]):p<b&&(o=r<3||i[0]>n||n>b)&&(i[4]=r,i[5]=n,d.n=b,u=0))}if(o||r>1)return c;throw l=!0,n}return function(o,s,b){if(f>1)throw TypeError("Generator is already running");for(l&&1===s&&p(s,b),u=s,a=b;(e=u<2?t:a)||!l;){i||(u?u<3?(u>1&&(d.n=-1),p(u,a)):d.n=a:d.v=a);try{if(f=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(l=d.n<0)?a:r.call(n,d))!==c)break}catch(e){i=t,u=1,a=e}finally{f=1}}return{value:e,done:l}}}(r,i,u),!0),s}var c={};function f(){}function s(){}function l(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(n(e={},i,(function(){return this})),e),p=l.prototype=f.prototype=Object.create(d);function b(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,n(t,u,"GeneratorFunction")),t.prototype=Object.create(p),t}return s.prototype=l,n(p,"constructor",l),n(l,"constructor",s),s.displayName="GeneratorFunction",n(l,u,"GeneratorFunction"),n(p),n(p,u,"Generator"),n(p,i,(function(){return this})),n(p,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:a,m:b}})()}r.d(e,"a",(function(){return o}))},19:function(t,e){t.exports=require("core-js/modules/es.array.includes.js")},21:function(t,e){t.exports=require("core-js/modules/es.object.keys.js")},22:function(t,e){t.exports=require("core-js/modules/es.string.includes.js")},23:function(t,e){t.exports=require("core-js/modules/web.dom-collections.iterator.js")},24:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(4);function o(t){var e=function(t,e){if("object"!=Object(n.a)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=Object(n.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Object(n.a)(e)?e:e+""}},26:function(t,e){t.exports=require("core-js/modules/es.array.push.js")},
|
|
3
|
+
var t,e,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",u=r.toStringTag||"@@toStringTag";function a(r,o,i,u){var a=o&&o.prototype instanceof f?o:f,s=Object.create(a.prototype);return n(s,"_invoke",function(r,n,o){var i,u,a,f=0,s=o||[],l=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,u=0,a=t,d.n=r,c}};function p(r,n){for(u=r,a=n,e=0;!l&&f&&!o&&e<s.length;e++){var o,i=s[e],p=d.p,b=i[2];r>3?(o=b===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(u=0,d.v=n,d.n=i[1]):p<b&&(o=r<3||i[0]>n||n>b)&&(i[4]=r,i[5]=n,d.n=b,u=0))}if(o||r>1)return c;throw l=!0,n}return function(o,s,b){if(f>1)throw TypeError("Generator is already running");for(l&&1===s&&p(s,b),u=s,a=b;(e=u<2?t:a)||!l;){i||(u?u<3?(u>1&&(d.n=-1),p(u,a)):d.n=a:d.v=a);try{if(f=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(l=d.n<0)?a:r.call(n,d))!==c)break}catch(e){i=t,u=1,a=e}finally{f=1}}return{value:e,done:l}}}(r,i,u),!0),s}var c={};function f(){}function s(){}function l(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(n(e={},i,(function(){return this})),e),p=l.prototype=f.prototype=Object.create(d);function b(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,n(t,u,"GeneratorFunction")),t.prototype=Object.create(p),t}return s.prototype=l,n(p,"constructor",l),n(l,"constructor",s),s.displayName="GeneratorFunction",n(l,u,"GeneratorFunction"),n(p),n(p,u,"Generator"),n(p,i,(function(){return this})),n(p,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:a,m:b}})()}r.d(e,"a",(function(){return o}))},19:function(t,e){t.exports=require("core-js/modules/es.array.includes.js")},21:function(t,e){t.exports=require("core-js/modules/es.object.keys.js")},22:function(t,e){t.exports=require("core-js/modules/es.string.includes.js")},23:function(t,e){t.exports=require("core-js/modules/web.dom-collections.iterator.js")},24:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(4);function o(t){var e=function(t,e){if("object"!=Object(n.a)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=Object(n.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Object(n.a)(e)?e:e+""}},26:function(t,e){t.exports=require("core-js/modules/es.array.push.js")},265:function(t,e,r){"use strict";r.r(e);var n=r(123),o=r(17),i=r(0),u=r(1),a=r(31),c=r(111),f=r(112),s=(r(14),r(19),r(39),r(21),r(3),r(22),r(33),r(11),r(23),r(26),r(16),r(30),r(28),r(40),r(122)),l=r.n(s),d=r(44),p=r(90),b=function(){return Object(f.a)((function t(){Object(c.a)(this,t)}),[{key:"createFields",value:(t=Object(a.a)(Object(o.a)().m((function t(e){var r,a,c,f,s,b,y,m,O,E,j,T,v,_,g,h,S,D,R,A,w,P,N,x=this;return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:if(r=e.fields,a=e.fieldScope,c=e.meta,f=e.pageType,s=void 0===f?"DETAIL":f,b=e.metaId,y=void 0===b?"":b,m=e.metaViewId,O=e.hiddenFields,E=void 0===O?[]:O,j=e.defaultFieldConfigs,T=void 0===j?{}:j,v=e.type,_=void 0===v?"list":v,g=[],h=null,S=c||l.a.state.meta.metas["".concat(y)]){t.n=2;break}return t.n=1,l.a.dispatch({type:d.b,metaId:y});case 1:S=t.v;case 2:S.metaView&&(h=S.metaView[m]),D={},h&&h.fields&&JSON.parse(h.fields).forEach((function(t){"string"!=typeof t&&(D[t.attriName]=t)})),r&&0!==Object.keys(r).length||(R=Object(u.a)("form"===_?S.getFormFields():S.getListFields()),h&&h.listFields&&(r=JSON.parse(h.listFields))&&0!==r.length||(r=R)),A=S.getKey(),w=S.getKeyType(),P=Object(o.a)().m((function t(){var e,n,u,c,f,b,y,m,O,j,v;return Object(o.a)().w((function(t){for(;;)switch(t.n){case 0:if(e={},n=r[N],u=D[n.attriName||n]||{},"meta"===(e=Object(p.isString)(n)?Object(i.a)({attriName:n},u):Object(i.a)(Object(i.a)({},n),u)).type&&(c=S.relatedEntitys.find((function(t){return t.flag===e.attriName})))&&(e.attriLabel||(e.attriLabel=c.title)),e.attriName){t.n=1;break}return t.a(2,0);case 1:if(T[e.attriName]&&(e=Object(i.a)(Object(i.a)({},T[e.attriName]),e)),e.attriName===A&&"SEARCH"!==(e.state||s)&&"DETAIL"!==e.state&&("assigned"!==w?e.state="HIDDEN":"derive"===S.attributes[A].dataType&&("EDIT"!==s&&"ADD"!==s||(e.state="HIDDEN"))),e.state||(e.state=s),E.find((function(t){return e.attriName===(t.attriName||t)}))&&(e.state="HIDDEN"),!e.state||"INVALID"!==e.state){t.n=2;break}return g.push(e),t.a(2,0);case 2:if(f=S.getId(),b=S,!((y=e.attriName).indexOf("|")>-1)){t.n=7;break}m=y.split("|"),y=m[m.length-1],O=0;case 3:if(!(O<m.length-1)){t.n=7;break}if(f=b.getRelationIdByMetaId(m[O])){t.n=4;break}return t.a(3,7);case 4:if(b=l.a.getters.getMetaById(f)){t.n=6;break}return t.n=5,l.a.dispatch({type:d.b,metaId:f});case 5:b=t.v;case 6:O++,t.n=3;break;case 7:if(e=x.createFieldConfig({fieldFromMeta:b,fieldConfig:Object(i.a)({},e),fieldName:y}),!a||"meta"===e.type){t.n=8;break}if(j="ADD"===e.state||"EDIT"===e.state?"2":"1",!(v=a[j])){t.n=8;break}if("custom"===e.dataType||v.includes(e.attriName)){t.n=8;break}return t.a(2,0);case 8:e.attriLabel&&g.push(e);case 9:return t.a(2)}}),t)})),N=0;case 3:if(!(N<r.length)){t.n=6;break}return t.d(Object(n.a)(P()),4);case 4:if(0!==t.v){t.n=5;break}return t.a(3,5);case 5:N++,t.n=3;break;case 6:return t.a(2,g)}}),t)}))),function(e){return t.apply(this,arguments)})},{key:"createFieldConfig",value:function(t){var e=t.fieldFromMeta,r=t.fieldConfig,n=t.fieldName,o=e.getAttribute(n)||{};return o.entityId=e.id,r.attribute=Object(i.a)(Object(i.a)({},o),r.attribute||{}),r.attriLabel||(r.attriLabel=o.label),r.dataType||(r.dataType=o.dataType),r.codeKey||("list"===r.dataType?r.codeKey=o.codeKey:r.codeKey=o.relatedEntity||o.codeKey),r.isRequired||(r.isRequired=o.isRequired),"EDIT"!==r.state&&"ADD"!==r.state&&"SEARCH"!==r.state||("list"===r.dataType||"treeList"===r.dataType||"radio"===r.dataType||"multibox"===r.dataType?this.setList(r.dataType,r.codeKey,r.attribute):r.dataType),"formula"===r.dataType&&(r.submitValue=!1,"EDIT"!==r.state&&"ADD"!==r.state||(r.state="HIDDEN")),r.fieldLabel&&(r.attriLabel=r.fieldLabel),r.emptyText&&(r.placeholder=r.emptyText),r}},{key:"setList",value:function(t,e,r){var n=r.optionType;l.a.dispatch({type:d.a,key:e,dataType:n||t})}}]);var t}();e.default=new b},28:function(t,e){t.exports=require("core-js/modules/es.iterator.for-each.js")},3:function(t,e){t.exports=require("core-js/modules/es.object.to-string.js")},30:function(t,e){t.exports=require("core-js/modules/es.iterator.find.js")},31:function(t,e,r){"use strict";function n(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var u=t.apply(e,r);function a(t){n(u,o,i,a,c,"next",t)}function c(t){n(u,o,i,a,c,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return o}))},33:function(t,e){t.exports=require("core-js/modules/es.string.iterator.js")},39:function(t,e){t.exports=require("core-js/modules/es.array.iterator.js")},4:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(e,"a",(function(){return n}))},40:function(t,e){t.exports=require("core-js/modules/es.json.parse.js")},44:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"f",(function(){return u})),r.d(e,"b",(function(){return a})),r.d(e,"e",(function(){return c})),r.d(e,"o",(function(){return f})),r.d(e,"w",(function(){return s})),r.d(e,"q",(function(){return l})),r.d(e,"x",(function(){return d})),r.d(e,"v",(function(){return p})),r.d(e,"y",(function(){return b})),r.d(e,"t",(function(){return y})),r.d(e,"u",(function(){return m})),r.d(e,"g",(function(){return O})),r.d(e,"K",(function(){return E})),r.d(e,"E",(function(){return j})),r.d(e,"G",(function(){return T})),r.d(e,"p",(function(){return v})),r.d(e,"h",(function(){return _})),r.d(e,"j",(function(){return g})),r.d(e,"z",(function(){return h})),r.d(e,"D",(function(){return S})),r.d(e,"B",(function(){return D})),r.d(e,"n",(function(){return R})),r.d(e,"C",(function(){return A})),r.d(e,"A",(function(){return w})),r.d(e,"m",(function(){return P})),r.d(e,"H",(function(){return N})),r.d(e,"I",(function(){return x})),r.d(e,"l",(function(){return U})),r.d(e,"F",(function(){return I})),r.d(e,"r",(function(){return L})),r.d(e,"s",(function(){return k})),r.d(e,"i",(function(){return C})),r.d(e,"k",(function(){return q})),r.d(e,"J",(function(){return G}));var n="ADD_LIST",o="ADD_OBJECT_COUNT",i="ADD_OBJECT",u="ADD_TAG",a="ADD_META",c="ADD_PAGE",f="DELETE_PAGE",s="GET_USER",l="DELETE_USER",d="GET_USER_INFO",p="GET_SYSTEM_CONFIG",b="GET_VIEWPORT",y="GET_APP_CONFIG",m="GET_MENU",O="CLEAR_MENU",E="SWITCH_MENU_SHOW",j="PUSH_ROUTER",T="SET_ROUTER",v="DELETE_ROUTER",_="CLEAR_ROUTER",g="CLEAR_TABS_ROUTER",h="PICK_ROUTER",S="PUSH_MODULE_ROUTER",D="POP_MODULE_ROUTER",R="DELETE_MODULE_ROUTER",A="PUSH_MENU_ROUTER",w="POP_MENU_ROUTER",P="DELETE_MENU_ROUTER",N="SET_ROUTER_QUERY",x="SET_ROUTER_RELOAD",U="CREATE_TAB",I="SELECT_TAB",L="DESTORY_TAB",k="DESTORY_TAG_TAB",C="CLEAR_TABS",q="CLEAR_TAG_TABS",G="SET_TAB_QUERY"},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(24);function o(t,e,r){return(e=Object(n.a)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},90:function(t,e){t.exports=require("lodash-es")}});
|
package/lib/utils/formula.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(n){var r={};function t(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,r){if(1&r&&(n=t(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var u in n)t.d(e,u,function(r){return n[r]}.bind(null,u));return e},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},t.p="/dist/",t(t.s=211)}({
|
|
1
|
+
module.exports=function(n){var r={};function t(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,r){if(1&r&&(n=t(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var u in n)t.d(e,u,function(r){return n[r]}.bind(null,u));return e},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},t.p="/dist/",t(t.s=211)}({106:function(n,r){n.exports=require("core-js/modules/es.array.slice.js")},107:function(n,r){n.exports=require("moment")},110:function(n,r){n.exports=require("core-js/modules/es.string.trim.js")},12:function(n,r){n.exports=require("core-js/modules/es.regexp.exec.js")},18:function(n,r){n.exports=require("core-js/modules/es.string.replace.js")},19:function(n,r){n.exports=require("core-js/modules/es.array.includes.js")},21:function(n,r){n.exports=require("core-js/modules/es.object.keys.js")},211:function(n,r,t){"use strict";t.r(r),t.d(r,"EQ",(function(){return i})),t.d(r,"NE",(function(){return c})),t.d(r,"LT",(function(){return f})),t.d(r,"LE",(function(){return s})),t.d(r,"GT",(function(){return d})),t.d(r,"GE",(function(){return a})),t.d(r,"AND",(function(){return l})),t.d(r,"OR",(function(){return j})),t.d(r,"NOT",(function(){return p})),t.d(r,"IN",(function(){return m})),t.d(r,"IN_TEXT",(function(){return E})),t.d(r,"IF",(function(){return O})),t.d(r,"ISEMPTY",(function(){return g})),t.d(r,"SUM",(function(){return b})),t.d(r,"SUBTRACT",(function(){return y})),t.d(r,"PRODUCT",(function(){return T})),t.d(r,"DIVIDED",(function(){return v})),t.d(r,"MOD",(function(){return M})),t.d(r,"POW",(function(){return A})),t.d(r,"MAX",(function(){return h})),t.d(r,"MIN",(function(){return x})),t.d(r,"ABS",(function(){return D})),t.d(r,"FLOOR",(function(){return R})),t.d(r,"CEIL",(function(){return S})),t.d(r,"ROUND",(function(){return N})),t.d(r,"RANDOM",(function(){return Y})),t.d(r,"AVERAGE",(function(){return q})),t.d(r,"DATE_SUBTRACT",(function(){return I})),t.d(r,"DATE_ADD",(function(){return _})),t.d(r,"DATE_FORMAT",(function(){return P})),t.d(r,"FORMAT_DATE",(function(){return L})),t.d(r,"DATEDIF",(function(){return C})),t.d(r,"NOW",(function(){return U})),t.d(r,"GET_DATE",(function(){return w})),t.d(r,"CONCATENATE",(function(){return B})),t.d(r,"VALUE",(function(){return F})),t.d(r,"LEN",(function(){return G})),t.d(r,"REPLACE_STR",(function(){return V})),t.d(r,"SUBSTRING",(function(){return H})),t.d(r,"UPPER",(function(){return W})),t.d(r,"LOWER",(function(){return X})),t.d(r,"TRIM",(function(){return k})),t.d(r,"TEXT",(function(){return z})),t.d(r,"REPLACE",(function(){return J})),t.d(r,"GET",(function(){return K})),t.d(r,"SET",(function(){return Q})),t.d(r,"KEYS",(function(){return Z})),t.d(r,"VALUES",(function(){return $})),t.d(r,"MAP",(function(){return nn})),t.d(r,"SIZE",(function(){return rn})),t.d(r,"JOIN",(function(){return tn})),t.d(r,"ORDER_BY",(function(){return en})),t.d(r,"FILTER",(function(){return un})),t.d(r,"FIND",(function(){return on})),t.d(r,"NTH",(function(){return cn})),t.d(r,"EVERY",(function(){return fn})),t.d(r,"SOME",(function(){return sn}));t(19),t(37),t(106),t(36),t(21),t(3),t(53),t(12),t(89),t(22),t(18),t(110),t(81);var e=t(107),u=t.n(e),o=t(90),i=function(n,r){return n===r},c=function(n,r){return n!==r},f=function(n,r,t){return"date"===t?u()(n).isBefore(r):n<r},s=function(n,r,t){return"date"===t?u()(n).isSameOrBefore(r):n<=r},d=function(n,r,t){return"date"===t?u()(n).isAfter(r):n>r},a=function(n,r,t){return"date"===t?u()(n).isSameOrAfter(r):n>=r},l=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.every((function(n){return n}))},j=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.some((function(n){return n}))},p=function(n){return!n},m=function(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return 0!==t.length&&(t.length>1?t.includes(n):t[0].split(",").includes(n))},E=function(n,r){return r.includes(n)},O=function(n,r,t){return n?r:t},g=function(n){return""===n||null==n},b=function(n,r){return n+r},y=function(n,r){return n-r},T=function(n,r){return n*r},v=function(n,r){return n/r},M=function(n,r){return n%r},A=function(n,r){return Math.pow(n,r)},h=function(){return Math.max.apply(Math,arguments)},x=function(){return Math.min.apply(Math,arguments)},D=function(n){return Math.abs(n)},R=function(n){return Math.floor(n)},S=function(n){return Math.ceil(n)},N=function(n){return Math.round(n)},Y=function(n,r){return Math.floor(Math.random()*(r-n+1)+n)},q=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduce((function(n,r){return n+r}))/r.length},I=function(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days";return u()(n).subtract(r,t)},_=function(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days";return u()(n).add(r,t)},P=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD";return u()(n).format(r)},L=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD";return u()(n).format(r)},C=function(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days";return u()(n).diff(r,t)},U=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"YYYY-MM-DD HH:mm:ss";return u()().format(n)},w=function(n,r){return u()(n).get(r)},B=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.join("")},F=function(n){return Number(n)},G=function(n){return n.length},V=function(n,r,t){return n.replace(r,t)},H=function(n,r,t){return n.substr(r,t)},W=function(n){return n.toUpperCase()},X=function(n){return n.toLowerCase()},k=function(n){return n.trim()},z=function(n){return n.toString()},J=function(n,r,t,e){return n.slice(0,r)+e+n.slice(r+t)},K=function(n,r,t){return Object(o.get)(n,r,t||"")},Q=function(n,r,t){return Object(o.set)(n,r,t||"")},Z=function(n){return Object.keys(n)},$=function(n){return Object.values(n)},nn=function(n,r){return Object(o.map)(n,r)},rn=function(n){return Object(o.size)(n)},tn=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return n.join(r)},en=function(n,r,t){return"string"==typeof r&&(r=[r]),"string"==typeof t&&(t=[t]),Object(o.orderBy)(n,r,t)},un=function(n,r){return Object(o.filter)(n,r)},on=function(n,r){return Object(o.find)(n,r)},cn=function(n,r){return Object(o.nth)(n,r)},fn=function(n,r){return Object(o.every)(n,r)},sn=function(n,r){return Object(o.some)(n,r)}},22:function(n,r){n.exports=require("core-js/modules/es.string.includes.js")},3:function(n,r){n.exports=require("core-js/modules/es.object.to-string.js")},36:function(n,r){n.exports=require("core-js/modules/es.number.constructor.js")},37:function(n,r){n.exports=require("core-js/modules/es.array.join.js")},53:function(n,r){n.exports=require("core-js/modules/es.object.values.js")},81:function(n,r){n.exports=require("core-js/modules/es.array.reduce.js")},89:function(n,r){n.exports=require("core-js/modules/es.regexp.to-string.js")},90:function(n,r){n.exports=require("lodash-es")}});
|