doway-coms 1.1.13 → 1.1.15

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.
@@ -36510,6 +36510,1183 @@ function getWhatDay (date, offset, mode) {
36510
36510
  module.exports = getWhatDay
36511
36511
 
36512
36512
 
36513
+ /***/ }),
36514
+
36515
+ /***/ "7736":
36516
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
36517
+
36518
+ "use strict";
36519
+ /* WEBPACK VAR INJECTION */(function(global) {/* unused harmony export Store */
36520
+ /* unused harmony export createLogger */
36521
+ /* unused harmony export createNamespacedHelpers */
36522
+ /* unused harmony export install */
36523
+ /* unused harmony export mapActions */
36524
+ /* unused harmony export mapGetters */
36525
+ /* unused harmony export mapMutations */
36526
+ /* unused harmony export mapState */
36527
+ /*!
36528
+ * vuex v3.6.2
36529
+ * (c) 2021 Evan You
36530
+ * @license MIT
36531
+ */
36532
+ function applyMixin (Vue) {
36533
+ var version = Number(Vue.version.split('.')[0]);
36534
+
36535
+ if (version >= 2) {
36536
+ Vue.mixin({ beforeCreate: vuexInit });
36537
+ } else {
36538
+ // override init and inject vuex init procedure
36539
+ // for 1.x backwards compatibility.
36540
+ var _init = Vue.prototype._init;
36541
+ Vue.prototype._init = function (options) {
36542
+ if ( options === void 0 ) options = {};
36543
+
36544
+ options.init = options.init
36545
+ ? [vuexInit].concat(options.init)
36546
+ : vuexInit;
36547
+ _init.call(this, options);
36548
+ };
36549
+ }
36550
+
36551
+ /**
36552
+ * Vuex init hook, injected into each instances init hooks list.
36553
+ */
36554
+
36555
+ function vuexInit () {
36556
+ var options = this.$options;
36557
+ // store injection
36558
+ if (options.store) {
36559
+ this.$store = typeof options.store === 'function'
36560
+ ? options.store()
36561
+ : options.store;
36562
+ } else if (options.parent && options.parent.$store) {
36563
+ this.$store = options.parent.$store;
36564
+ }
36565
+ }
36566
+ }
36567
+
36568
+ var target = typeof window !== 'undefined'
36569
+ ? window
36570
+ : typeof global !== 'undefined'
36571
+ ? global
36572
+ : {};
36573
+ var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
36574
+
36575
+ function devtoolPlugin (store) {
36576
+ if (!devtoolHook) { return }
36577
+
36578
+ store._devtoolHook = devtoolHook;
36579
+
36580
+ devtoolHook.emit('vuex:init', store);
36581
+
36582
+ devtoolHook.on('vuex:travel-to-state', function (targetState) {
36583
+ store.replaceState(targetState);
36584
+ });
36585
+
36586
+ store.subscribe(function (mutation, state) {
36587
+ devtoolHook.emit('vuex:mutation', mutation, state);
36588
+ }, { prepend: true });
36589
+
36590
+ store.subscribeAction(function (action, state) {
36591
+ devtoolHook.emit('vuex:action', action, state);
36592
+ }, { prepend: true });
36593
+ }
36594
+
36595
+ /**
36596
+ * Get the first item that pass the test
36597
+ * by second argument function
36598
+ *
36599
+ * @param {Array} list
36600
+ * @param {Function} f
36601
+ * @return {*}
36602
+ */
36603
+ function find (list, f) {
36604
+ return list.filter(f)[0]
36605
+ }
36606
+
36607
+ /**
36608
+ * Deep copy the given object considering circular structure.
36609
+ * This function caches all nested objects and its copies.
36610
+ * If it detects circular structure, use cached copy to avoid infinite loop.
36611
+ *
36612
+ * @param {*} obj
36613
+ * @param {Array<Object>} cache
36614
+ * @return {*}
36615
+ */
36616
+ function deepCopy (obj, cache) {
36617
+ if ( cache === void 0 ) cache = [];
36618
+
36619
+ // just return if obj is immutable value
36620
+ if (obj === null || typeof obj !== 'object') {
36621
+ return obj
36622
+ }
36623
+
36624
+ // if obj is hit, it is in circular structure
36625
+ var hit = find(cache, function (c) { return c.original === obj; });
36626
+ if (hit) {
36627
+ return hit.copy
36628
+ }
36629
+
36630
+ var copy = Array.isArray(obj) ? [] : {};
36631
+ // put the copy into cache at first
36632
+ // because we want to refer it in recursive deepCopy
36633
+ cache.push({
36634
+ original: obj,
36635
+ copy: copy
36636
+ });
36637
+
36638
+ Object.keys(obj).forEach(function (key) {
36639
+ copy[key] = deepCopy(obj[key], cache);
36640
+ });
36641
+
36642
+ return copy
36643
+ }
36644
+
36645
+ /**
36646
+ * forEach for object
36647
+ */
36648
+ function forEachValue (obj, fn) {
36649
+ Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
36650
+ }
36651
+
36652
+ function isObject (obj) {
36653
+ return obj !== null && typeof obj === 'object'
36654
+ }
36655
+
36656
+ function isPromise (val) {
36657
+ return val && typeof val.then === 'function'
36658
+ }
36659
+
36660
+ function assert (condition, msg) {
36661
+ if (!condition) { throw new Error(("[vuex] " + msg)) }
36662
+ }
36663
+
36664
+ function partial (fn, arg) {
36665
+ return function () {
36666
+ return fn(arg)
36667
+ }
36668
+ }
36669
+
36670
+ // Base data struct for store's module, package with some attribute and method
36671
+ var Module = function Module (rawModule, runtime) {
36672
+ this.runtime = runtime;
36673
+ // Store some children item
36674
+ this._children = Object.create(null);
36675
+ // Store the origin module object which passed by programmer
36676
+ this._rawModule = rawModule;
36677
+ var rawState = rawModule.state;
36678
+
36679
+ // Store the origin module's state
36680
+ this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
36681
+ };
36682
+
36683
+ var prototypeAccessors = { namespaced: { configurable: true } };
36684
+
36685
+ prototypeAccessors.namespaced.get = function () {
36686
+ return !!this._rawModule.namespaced
36687
+ };
36688
+
36689
+ Module.prototype.addChild = function addChild (key, module) {
36690
+ this._children[key] = module;
36691
+ };
36692
+
36693
+ Module.prototype.removeChild = function removeChild (key) {
36694
+ delete this._children[key];
36695
+ };
36696
+
36697
+ Module.prototype.getChild = function getChild (key) {
36698
+ return this._children[key]
36699
+ };
36700
+
36701
+ Module.prototype.hasChild = function hasChild (key) {
36702
+ return key in this._children
36703
+ };
36704
+
36705
+ Module.prototype.update = function update (rawModule) {
36706
+ this._rawModule.namespaced = rawModule.namespaced;
36707
+ if (rawModule.actions) {
36708
+ this._rawModule.actions = rawModule.actions;
36709
+ }
36710
+ if (rawModule.mutations) {
36711
+ this._rawModule.mutations = rawModule.mutations;
36712
+ }
36713
+ if (rawModule.getters) {
36714
+ this._rawModule.getters = rawModule.getters;
36715
+ }
36716
+ };
36717
+
36718
+ Module.prototype.forEachChild = function forEachChild (fn) {
36719
+ forEachValue(this._children, fn);
36720
+ };
36721
+
36722
+ Module.prototype.forEachGetter = function forEachGetter (fn) {
36723
+ if (this._rawModule.getters) {
36724
+ forEachValue(this._rawModule.getters, fn);
36725
+ }
36726
+ };
36727
+
36728
+ Module.prototype.forEachAction = function forEachAction (fn) {
36729
+ if (this._rawModule.actions) {
36730
+ forEachValue(this._rawModule.actions, fn);
36731
+ }
36732
+ };
36733
+
36734
+ Module.prototype.forEachMutation = function forEachMutation (fn) {
36735
+ if (this._rawModule.mutations) {
36736
+ forEachValue(this._rawModule.mutations, fn);
36737
+ }
36738
+ };
36739
+
36740
+ Object.defineProperties( Module.prototype, prototypeAccessors );
36741
+
36742
+ var ModuleCollection = function ModuleCollection (rawRootModule) {
36743
+ // register root module (Vuex.Store options)
36744
+ this.register([], rawRootModule, false);
36745
+ };
36746
+
36747
+ ModuleCollection.prototype.get = function get (path) {
36748
+ return path.reduce(function (module, key) {
36749
+ return module.getChild(key)
36750
+ }, this.root)
36751
+ };
36752
+
36753
+ ModuleCollection.prototype.getNamespace = function getNamespace (path) {
36754
+ var module = this.root;
36755
+ return path.reduce(function (namespace, key) {
36756
+ module = module.getChild(key);
36757
+ return namespace + (module.namespaced ? key + '/' : '')
36758
+ }, '')
36759
+ };
36760
+
36761
+ ModuleCollection.prototype.update = function update$1 (rawRootModule) {
36762
+ update([], this.root, rawRootModule);
36763
+ };
36764
+
36765
+ ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
36766
+ var this$1 = this;
36767
+ if ( runtime === void 0 ) runtime = true;
36768
+
36769
+ if ((false)) {}
36770
+
36771
+ var newModule = new Module(rawModule, runtime);
36772
+ if (path.length === 0) {
36773
+ this.root = newModule;
36774
+ } else {
36775
+ var parent = this.get(path.slice(0, -1));
36776
+ parent.addChild(path[path.length - 1], newModule);
36777
+ }
36778
+
36779
+ // register nested modules
36780
+ if (rawModule.modules) {
36781
+ forEachValue(rawModule.modules, function (rawChildModule, key) {
36782
+ this$1.register(path.concat(key), rawChildModule, runtime);
36783
+ });
36784
+ }
36785
+ };
36786
+
36787
+ ModuleCollection.prototype.unregister = function unregister (path) {
36788
+ var parent = this.get(path.slice(0, -1));
36789
+ var key = path[path.length - 1];
36790
+ var child = parent.getChild(key);
36791
+
36792
+ if (!child) {
36793
+ if ((false)) {}
36794
+ return
36795
+ }
36796
+
36797
+ if (!child.runtime) {
36798
+ return
36799
+ }
36800
+
36801
+ parent.removeChild(key);
36802
+ };
36803
+
36804
+ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
36805
+ var parent = this.get(path.slice(0, -1));
36806
+ var key = path[path.length - 1];
36807
+
36808
+ if (parent) {
36809
+ return parent.hasChild(key)
36810
+ }
36811
+
36812
+ return false
36813
+ };
36814
+
36815
+ function update (path, targetModule, newModule) {
36816
+ if ((false)) {}
36817
+
36818
+ // update target module
36819
+ targetModule.update(newModule);
36820
+
36821
+ // update nested modules
36822
+ if (newModule.modules) {
36823
+ for (var key in newModule.modules) {
36824
+ if (!targetModule.getChild(key)) {
36825
+ if ((false)) {}
36826
+ return
36827
+ }
36828
+ update(
36829
+ path.concat(key),
36830
+ targetModule.getChild(key),
36831
+ newModule.modules[key]
36832
+ );
36833
+ }
36834
+ }
36835
+ }
36836
+
36837
+ var functionAssert = {
36838
+ assert: function (value) { return typeof value === 'function'; },
36839
+ expected: 'function'
36840
+ };
36841
+
36842
+ var objectAssert = {
36843
+ assert: function (value) { return typeof value === 'function' ||
36844
+ (typeof value === 'object' && typeof value.handler === 'function'); },
36845
+ expected: 'function or object with "handler" function'
36846
+ };
36847
+
36848
+ var assertTypes = {
36849
+ getters: functionAssert,
36850
+ mutations: functionAssert,
36851
+ actions: objectAssert
36852
+ };
36853
+
36854
+ function assertRawModule (path, rawModule) {
36855
+ Object.keys(assertTypes).forEach(function (key) {
36856
+ if (!rawModule[key]) { return }
36857
+
36858
+ var assertOptions = assertTypes[key];
36859
+
36860
+ forEachValue(rawModule[key], function (value, type) {
36861
+ assert(
36862
+ assertOptions.assert(value),
36863
+ makeAssertionMessage(path, key, type, value, assertOptions.expected)
36864
+ );
36865
+ });
36866
+ });
36867
+ }
36868
+
36869
+ function makeAssertionMessage (path, key, type, value, expected) {
36870
+ var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
36871
+ if (path.length > 0) {
36872
+ buf += " in module \"" + (path.join('.')) + "\"";
36873
+ }
36874
+ buf += " is " + (JSON.stringify(value)) + ".";
36875
+ return buf
36876
+ }
36877
+
36878
+ var Vue; // bind on install
36879
+
36880
+ var Store = function Store (options) {
36881
+ var this$1 = this;
36882
+ if ( options === void 0 ) options = {};
36883
+
36884
+ // Auto install if it is not done yet and `window` has `Vue`.
36885
+ // To allow users to avoid auto-installation in some cases,
36886
+ // this code should be placed here. See #731
36887
+ if (!Vue && typeof window !== 'undefined' && window.Vue) {
36888
+ install(window.Vue);
36889
+ }
36890
+
36891
+ if ((false)) {}
36892
+
36893
+ var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
36894
+ var strict = options.strict; if ( strict === void 0 ) strict = false;
36895
+
36896
+ // store internal state
36897
+ this._committing = false;
36898
+ this._actions = Object.create(null);
36899
+ this._actionSubscribers = [];
36900
+ this._mutations = Object.create(null);
36901
+ this._wrappedGetters = Object.create(null);
36902
+ this._modules = new ModuleCollection(options);
36903
+ this._modulesNamespaceMap = Object.create(null);
36904
+ this._subscribers = [];
36905
+ this._watcherVM = new Vue();
36906
+ this._makeLocalGettersCache = Object.create(null);
36907
+
36908
+ // bind commit and dispatch to self
36909
+ var store = this;
36910
+ var ref = this;
36911
+ var dispatch = ref.dispatch;
36912
+ var commit = ref.commit;
36913
+ this.dispatch = function boundDispatch (type, payload) {
36914
+ return dispatch.call(store, type, payload)
36915
+ };
36916
+ this.commit = function boundCommit (type, payload, options) {
36917
+ return commit.call(store, type, payload, options)
36918
+ };
36919
+
36920
+ // strict mode
36921
+ this.strict = strict;
36922
+
36923
+ var state = this._modules.root.state;
36924
+
36925
+ // init root module.
36926
+ // this also recursively registers all sub-modules
36927
+ // and collects all module getters inside this._wrappedGetters
36928
+ installModule(this, state, [], this._modules.root);
36929
+
36930
+ // initialize the store vm, which is responsible for the reactivity
36931
+ // (also registers _wrappedGetters as computed properties)
36932
+ resetStoreVM(this, state);
36933
+
36934
+ // apply plugins
36935
+ plugins.forEach(function (plugin) { return plugin(this$1); });
36936
+
36937
+ var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
36938
+ if (useDevtools) {
36939
+ devtoolPlugin(this);
36940
+ }
36941
+ };
36942
+
36943
+ var prototypeAccessors$1 = { state: { configurable: true } };
36944
+
36945
+ prototypeAccessors$1.state.get = function () {
36946
+ return this._vm._data.$$state
36947
+ };
36948
+
36949
+ prototypeAccessors$1.state.set = function (v) {
36950
+ if ((false)) {}
36951
+ };
36952
+
36953
+ Store.prototype.commit = function commit (_type, _payload, _options) {
36954
+ var this$1 = this;
36955
+
36956
+ // check object-style commit
36957
+ var ref = unifyObjectStyle(_type, _payload, _options);
36958
+ var type = ref.type;
36959
+ var payload = ref.payload;
36960
+ var options = ref.options;
36961
+
36962
+ var mutation = { type: type, payload: payload };
36963
+ var entry = this._mutations[type];
36964
+ if (!entry) {
36965
+ if ((false)) {}
36966
+ return
36967
+ }
36968
+ this._withCommit(function () {
36969
+ entry.forEach(function commitIterator (handler) {
36970
+ handler(payload);
36971
+ });
36972
+ });
36973
+
36974
+ this._subscribers
36975
+ .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
36976
+ .forEach(function (sub) { return sub(mutation, this$1.state); });
36977
+
36978
+ if (
36979
+ false
36980
+ ) {}
36981
+ };
36982
+
36983
+ Store.prototype.dispatch = function dispatch (_type, _payload) {
36984
+ var this$1 = this;
36985
+
36986
+ // check object-style dispatch
36987
+ var ref = unifyObjectStyle(_type, _payload);
36988
+ var type = ref.type;
36989
+ var payload = ref.payload;
36990
+
36991
+ var action = { type: type, payload: payload };
36992
+ var entry = this._actions[type];
36993
+ if (!entry) {
36994
+ if ((false)) {}
36995
+ return
36996
+ }
36997
+
36998
+ try {
36999
+ this._actionSubscribers
37000
+ .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
37001
+ .filter(function (sub) { return sub.before; })
37002
+ .forEach(function (sub) { return sub.before(action, this$1.state); });
37003
+ } catch (e) {
37004
+ if ((false)) {}
37005
+ }
37006
+
37007
+ var result = entry.length > 1
37008
+ ? Promise.all(entry.map(function (handler) { return handler(payload); }))
37009
+ : entry[0](payload);
37010
+
37011
+ return new Promise(function (resolve, reject) {
37012
+ result.then(function (res) {
37013
+ try {
37014
+ this$1._actionSubscribers
37015
+ .filter(function (sub) { return sub.after; })
37016
+ .forEach(function (sub) { return sub.after(action, this$1.state); });
37017
+ } catch (e) {
37018
+ if ((false)) {}
37019
+ }
37020
+ resolve(res);
37021
+ }, function (error) {
37022
+ try {
37023
+ this$1._actionSubscribers
37024
+ .filter(function (sub) { return sub.error; })
37025
+ .forEach(function (sub) { return sub.error(action, this$1.state, error); });
37026
+ } catch (e) {
37027
+ if ((false)) {}
37028
+ }
37029
+ reject(error);
37030
+ });
37031
+ })
37032
+ };
37033
+
37034
+ Store.prototype.subscribe = function subscribe (fn, options) {
37035
+ return genericSubscribe(fn, this._subscribers, options)
37036
+ };
37037
+
37038
+ Store.prototype.subscribeAction = function subscribeAction (fn, options) {
37039
+ var subs = typeof fn === 'function' ? { before: fn } : fn;
37040
+ return genericSubscribe(subs, this._actionSubscribers, options)
37041
+ };
37042
+
37043
+ Store.prototype.watch = function watch (getter, cb, options) {
37044
+ var this$1 = this;
37045
+
37046
+ if ((false)) {}
37047
+ return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
37048
+ };
37049
+
37050
+ Store.prototype.replaceState = function replaceState (state) {
37051
+ var this$1 = this;
37052
+
37053
+ this._withCommit(function () {
37054
+ this$1._vm._data.$$state = state;
37055
+ });
37056
+ };
37057
+
37058
+ Store.prototype.registerModule = function registerModule (path, rawModule, options) {
37059
+ if ( options === void 0 ) options = {};
37060
+
37061
+ if (typeof path === 'string') { path = [path]; }
37062
+
37063
+ if ((false)) {}
37064
+
37065
+ this._modules.register(path, rawModule);
37066
+ installModule(this, this.state, path, this._modules.get(path), options.preserveState);
37067
+ // reset store to update getters...
37068
+ resetStoreVM(this, this.state);
37069
+ };
37070
+
37071
+ Store.prototype.unregisterModule = function unregisterModule (path) {
37072
+ var this$1 = this;
37073
+
37074
+ if (typeof path === 'string') { path = [path]; }
37075
+
37076
+ if ((false)) {}
37077
+
37078
+ this._modules.unregister(path);
37079
+ this._withCommit(function () {
37080
+ var parentState = getNestedState(this$1.state, path.slice(0, -1));
37081
+ Vue.delete(parentState, path[path.length - 1]);
37082
+ });
37083
+ resetStore(this);
37084
+ };
37085
+
37086
+ Store.prototype.hasModule = function hasModule (path) {
37087
+ if (typeof path === 'string') { path = [path]; }
37088
+
37089
+ if ((false)) {}
37090
+
37091
+ return this._modules.isRegistered(path)
37092
+ };
37093
+
37094
+ Store.prototype.hotUpdate = function hotUpdate (newOptions) {
37095
+ this._modules.update(newOptions);
37096
+ resetStore(this, true);
37097
+ };
37098
+
37099
+ Store.prototype._withCommit = function _withCommit (fn) {
37100
+ var committing = this._committing;
37101
+ this._committing = true;
37102
+ fn();
37103
+ this._committing = committing;
37104
+ };
37105
+
37106
+ Object.defineProperties( Store.prototype, prototypeAccessors$1 );
37107
+
37108
+ function genericSubscribe (fn, subs, options) {
37109
+ if (subs.indexOf(fn) < 0) {
37110
+ options && options.prepend
37111
+ ? subs.unshift(fn)
37112
+ : subs.push(fn);
37113
+ }
37114
+ return function () {
37115
+ var i = subs.indexOf(fn);
37116
+ if (i > -1) {
37117
+ subs.splice(i, 1);
37118
+ }
37119
+ }
37120
+ }
37121
+
37122
+ function resetStore (store, hot) {
37123
+ store._actions = Object.create(null);
37124
+ store._mutations = Object.create(null);
37125
+ store._wrappedGetters = Object.create(null);
37126
+ store._modulesNamespaceMap = Object.create(null);
37127
+ var state = store.state;
37128
+ // init all modules
37129
+ installModule(store, state, [], store._modules.root, true);
37130
+ // reset vm
37131
+ resetStoreVM(store, state, hot);
37132
+ }
37133
+
37134
+ function resetStoreVM (store, state, hot) {
37135
+ var oldVm = store._vm;
37136
+
37137
+ // bind store public getters
37138
+ store.getters = {};
37139
+ // reset local getters cache
37140
+ store._makeLocalGettersCache = Object.create(null);
37141
+ var wrappedGetters = store._wrappedGetters;
37142
+ var computed = {};
37143
+ forEachValue(wrappedGetters, function (fn, key) {
37144
+ // use computed to leverage its lazy-caching mechanism
37145
+ // direct inline function use will lead to closure preserving oldVm.
37146
+ // using partial to return function with only arguments preserved in closure environment.
37147
+ computed[key] = partial(fn, store);
37148
+ Object.defineProperty(store.getters, key, {
37149
+ get: function () { return store._vm[key]; },
37150
+ enumerable: true // for local getters
37151
+ });
37152
+ });
37153
+
37154
+ // use a Vue instance to store the state tree
37155
+ // suppress warnings just in case the user has added
37156
+ // some funky global mixins
37157
+ var silent = Vue.config.silent;
37158
+ Vue.config.silent = true;
37159
+ store._vm = new Vue({
37160
+ data: {
37161
+ $$state: state
37162
+ },
37163
+ computed: computed
37164
+ });
37165
+ Vue.config.silent = silent;
37166
+
37167
+ // enable strict mode for new vm
37168
+ if (store.strict) {
37169
+ enableStrictMode(store);
37170
+ }
37171
+
37172
+ if (oldVm) {
37173
+ if (hot) {
37174
+ // dispatch changes in all subscribed watchers
37175
+ // to force getter re-evaluation for hot reloading.
37176
+ store._withCommit(function () {
37177
+ oldVm._data.$$state = null;
37178
+ });
37179
+ }
37180
+ Vue.nextTick(function () { return oldVm.$destroy(); });
37181
+ }
37182
+ }
37183
+
37184
+ function installModule (store, rootState, path, module, hot) {
37185
+ var isRoot = !path.length;
37186
+ var namespace = store._modules.getNamespace(path);
37187
+
37188
+ // register in namespace map
37189
+ if (module.namespaced) {
37190
+ if (store._modulesNamespaceMap[namespace] && ("production" !== 'production')) {
37191
+ console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
37192
+ }
37193
+ store._modulesNamespaceMap[namespace] = module;
37194
+ }
37195
+
37196
+ // set state
37197
+ if (!isRoot && !hot) {
37198
+ var parentState = getNestedState(rootState, path.slice(0, -1));
37199
+ var moduleName = path[path.length - 1];
37200
+ store._withCommit(function () {
37201
+ if ((false)) {}
37202
+ Vue.set(parentState, moduleName, module.state);
37203
+ });
37204
+ }
37205
+
37206
+ var local = module.context = makeLocalContext(store, namespace, path);
37207
+
37208
+ module.forEachMutation(function (mutation, key) {
37209
+ var namespacedType = namespace + key;
37210
+ registerMutation(store, namespacedType, mutation, local);
37211
+ });
37212
+
37213
+ module.forEachAction(function (action, key) {
37214
+ var type = action.root ? key : namespace + key;
37215
+ var handler = action.handler || action;
37216
+ registerAction(store, type, handler, local);
37217
+ });
37218
+
37219
+ module.forEachGetter(function (getter, key) {
37220
+ var namespacedType = namespace + key;
37221
+ registerGetter(store, namespacedType, getter, local);
37222
+ });
37223
+
37224
+ module.forEachChild(function (child, key) {
37225
+ installModule(store, rootState, path.concat(key), child, hot);
37226
+ });
37227
+ }
37228
+
37229
+ /**
37230
+ * make localized dispatch, commit, getters and state
37231
+ * if there is no namespace, just use root ones
37232
+ */
37233
+ function makeLocalContext (store, namespace, path) {
37234
+ var noNamespace = namespace === '';
37235
+
37236
+ var local = {
37237
+ dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
37238
+ var args = unifyObjectStyle(_type, _payload, _options);
37239
+ var payload = args.payload;
37240
+ var options = args.options;
37241
+ var type = args.type;
37242
+
37243
+ if (!options || !options.root) {
37244
+ type = namespace + type;
37245
+ if (false) {}
37246
+ }
37247
+
37248
+ return store.dispatch(type, payload)
37249
+ },
37250
+
37251
+ commit: noNamespace ? store.commit : function (_type, _payload, _options) {
37252
+ var args = unifyObjectStyle(_type, _payload, _options);
37253
+ var payload = args.payload;
37254
+ var options = args.options;
37255
+ var type = args.type;
37256
+
37257
+ if (!options || !options.root) {
37258
+ type = namespace + type;
37259
+ if (false) {}
37260
+ }
37261
+
37262
+ store.commit(type, payload, options);
37263
+ }
37264
+ };
37265
+
37266
+ // getters and state object must be gotten lazily
37267
+ // because they will be changed by vm update
37268
+ Object.defineProperties(local, {
37269
+ getters: {
37270
+ get: noNamespace
37271
+ ? function () { return store.getters; }
37272
+ : function () { return makeLocalGetters(store, namespace); }
37273
+ },
37274
+ state: {
37275
+ get: function () { return getNestedState(store.state, path); }
37276
+ }
37277
+ });
37278
+
37279
+ return local
37280
+ }
37281
+
37282
+ function makeLocalGetters (store, namespace) {
37283
+ if (!store._makeLocalGettersCache[namespace]) {
37284
+ var gettersProxy = {};
37285
+ var splitPos = namespace.length;
37286
+ Object.keys(store.getters).forEach(function (type) {
37287
+ // skip if the target getter is not match this namespace
37288
+ if (type.slice(0, splitPos) !== namespace) { return }
37289
+
37290
+ // extract local getter type
37291
+ var localType = type.slice(splitPos);
37292
+
37293
+ // Add a port to the getters proxy.
37294
+ // Define as getter property because
37295
+ // we do not want to evaluate the getters in this time.
37296
+ Object.defineProperty(gettersProxy, localType, {
37297
+ get: function () { return store.getters[type]; },
37298
+ enumerable: true
37299
+ });
37300
+ });
37301
+ store._makeLocalGettersCache[namespace] = gettersProxy;
37302
+ }
37303
+
37304
+ return store._makeLocalGettersCache[namespace]
37305
+ }
37306
+
37307
+ function registerMutation (store, type, handler, local) {
37308
+ var entry = store._mutations[type] || (store._mutations[type] = []);
37309
+ entry.push(function wrappedMutationHandler (payload) {
37310
+ handler.call(store, local.state, payload);
37311
+ });
37312
+ }
37313
+
37314
+ function registerAction (store, type, handler, local) {
37315
+ var entry = store._actions[type] || (store._actions[type] = []);
37316
+ entry.push(function wrappedActionHandler (payload) {
37317
+ var res = handler.call(store, {
37318
+ dispatch: local.dispatch,
37319
+ commit: local.commit,
37320
+ getters: local.getters,
37321
+ state: local.state,
37322
+ rootGetters: store.getters,
37323
+ rootState: store.state
37324
+ }, payload);
37325
+ if (!isPromise(res)) {
37326
+ res = Promise.resolve(res);
37327
+ }
37328
+ if (store._devtoolHook) {
37329
+ return res.catch(function (err) {
37330
+ store._devtoolHook.emit('vuex:error', err);
37331
+ throw err
37332
+ })
37333
+ } else {
37334
+ return res
37335
+ }
37336
+ });
37337
+ }
37338
+
37339
+ function registerGetter (store, type, rawGetter, local) {
37340
+ if (store._wrappedGetters[type]) {
37341
+ if ((false)) {}
37342
+ return
37343
+ }
37344
+ store._wrappedGetters[type] = function wrappedGetter (store) {
37345
+ return rawGetter(
37346
+ local.state, // local state
37347
+ local.getters, // local getters
37348
+ store.state, // root state
37349
+ store.getters // root getters
37350
+ )
37351
+ };
37352
+ }
37353
+
37354
+ function enableStrictMode (store) {
37355
+ store._vm.$watch(function () { return this._data.$$state }, function () {
37356
+ if ((false)) {}
37357
+ }, { deep: true, sync: true });
37358
+ }
37359
+
37360
+ function getNestedState (state, path) {
37361
+ return path.reduce(function (state, key) { return state[key]; }, state)
37362
+ }
37363
+
37364
+ function unifyObjectStyle (type, payload, options) {
37365
+ if (isObject(type) && type.type) {
37366
+ options = payload;
37367
+ payload = type;
37368
+ type = type.type;
37369
+ }
37370
+
37371
+ if ((false)) {}
37372
+
37373
+ return { type: type, payload: payload, options: options }
37374
+ }
37375
+
37376
+ function install (_Vue) {
37377
+ if (Vue && _Vue === Vue) {
37378
+ if ((false)) {}
37379
+ return
37380
+ }
37381
+ Vue = _Vue;
37382
+ applyMixin(Vue);
37383
+ }
37384
+
37385
+ /**
37386
+ * Reduce the code which written in Vue.js for getting the state.
37387
+ * @param {String} [namespace] - Module's namespace
37388
+ * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
37389
+ * @param {Object}
37390
+ */
37391
+ var mapState = normalizeNamespace(function (namespace, states) {
37392
+ var res = {};
37393
+ if (false) {}
37394
+ normalizeMap(states).forEach(function (ref) {
37395
+ var key = ref.key;
37396
+ var val = ref.val;
37397
+
37398
+ res[key] = function mappedState () {
37399
+ var state = this.$store.state;
37400
+ var getters = this.$store.getters;
37401
+ if (namespace) {
37402
+ var module = getModuleByNamespace(this.$store, 'mapState', namespace);
37403
+ if (!module) {
37404
+ return
37405
+ }
37406
+ state = module.context.state;
37407
+ getters = module.context.getters;
37408
+ }
37409
+ return typeof val === 'function'
37410
+ ? val.call(this, state, getters)
37411
+ : state[val]
37412
+ };
37413
+ // mark vuex getter for devtools
37414
+ res[key].vuex = true;
37415
+ });
37416
+ return res
37417
+ });
37418
+
37419
+ /**
37420
+ * Reduce the code which written in Vue.js for committing the mutation
37421
+ * @param {String} [namespace] - Module's namespace
37422
+ * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
37423
+ * @return {Object}
37424
+ */
37425
+ var mapMutations = normalizeNamespace(function (namespace, mutations) {
37426
+ var res = {};
37427
+ if (false) {}
37428
+ normalizeMap(mutations).forEach(function (ref) {
37429
+ var key = ref.key;
37430
+ var val = ref.val;
37431
+
37432
+ res[key] = function mappedMutation () {
37433
+ var args = [], len = arguments.length;
37434
+ while ( len-- ) args[ len ] = arguments[ len ];
37435
+
37436
+ // Get the commit method from store
37437
+ var commit = this.$store.commit;
37438
+ if (namespace) {
37439
+ var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
37440
+ if (!module) {
37441
+ return
37442
+ }
37443
+ commit = module.context.commit;
37444
+ }
37445
+ return typeof val === 'function'
37446
+ ? val.apply(this, [commit].concat(args))
37447
+ : commit.apply(this.$store, [val].concat(args))
37448
+ };
37449
+ });
37450
+ return res
37451
+ });
37452
+
37453
+ /**
37454
+ * Reduce the code which written in Vue.js for getting the getters
37455
+ * @param {String} [namespace] - Module's namespace
37456
+ * @param {Object|Array} getters
37457
+ * @return {Object}
37458
+ */
37459
+ var mapGetters = normalizeNamespace(function (namespace, getters) {
37460
+ var res = {};
37461
+ if (false) {}
37462
+ normalizeMap(getters).forEach(function (ref) {
37463
+ var key = ref.key;
37464
+ var val = ref.val;
37465
+
37466
+ // The namespace has been mutated by normalizeNamespace
37467
+ val = namespace + val;
37468
+ res[key] = function mappedGetter () {
37469
+ if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
37470
+ return
37471
+ }
37472
+ if (false) {}
37473
+ return this.$store.getters[val]
37474
+ };
37475
+ // mark vuex getter for devtools
37476
+ res[key].vuex = true;
37477
+ });
37478
+ return res
37479
+ });
37480
+
37481
+ /**
37482
+ * Reduce the code which written in Vue.js for dispatch the action
37483
+ * @param {String} [namespace] - Module's namespace
37484
+ * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
37485
+ * @return {Object}
37486
+ */
37487
+ var mapActions = normalizeNamespace(function (namespace, actions) {
37488
+ var res = {};
37489
+ if (false) {}
37490
+ normalizeMap(actions).forEach(function (ref) {
37491
+ var key = ref.key;
37492
+ var val = ref.val;
37493
+
37494
+ res[key] = function mappedAction () {
37495
+ var args = [], len = arguments.length;
37496
+ while ( len-- ) args[ len ] = arguments[ len ];
37497
+
37498
+ // get dispatch function from store
37499
+ var dispatch = this.$store.dispatch;
37500
+ if (namespace) {
37501
+ var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
37502
+ if (!module) {
37503
+ return
37504
+ }
37505
+ dispatch = module.context.dispatch;
37506
+ }
37507
+ return typeof val === 'function'
37508
+ ? val.apply(this, [dispatch].concat(args))
37509
+ : dispatch.apply(this.$store, [val].concat(args))
37510
+ };
37511
+ });
37512
+ return res
37513
+ });
37514
+
37515
+ /**
37516
+ * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
37517
+ * @param {String} namespace
37518
+ * @return {Object}
37519
+ */
37520
+ var createNamespacedHelpers = function (namespace) { return ({
37521
+ mapState: mapState.bind(null, namespace),
37522
+ mapGetters: mapGetters.bind(null, namespace),
37523
+ mapMutations: mapMutations.bind(null, namespace),
37524
+ mapActions: mapActions.bind(null, namespace)
37525
+ }); };
37526
+
37527
+ /**
37528
+ * Normalize the map
37529
+ * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
37530
+ * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
37531
+ * @param {Array|Object} map
37532
+ * @return {Object}
37533
+ */
37534
+ function normalizeMap (map) {
37535
+ if (!isValidMap(map)) {
37536
+ return []
37537
+ }
37538
+ return Array.isArray(map)
37539
+ ? map.map(function (key) { return ({ key: key, val: key }); })
37540
+ : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
37541
+ }
37542
+
37543
+ /**
37544
+ * Validate whether given map is valid or not
37545
+ * @param {*} map
37546
+ * @return {Boolean}
37547
+ */
37548
+ function isValidMap (map) {
37549
+ return Array.isArray(map) || isObject(map)
37550
+ }
37551
+
37552
+ /**
37553
+ * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
37554
+ * @param {Function} fn
37555
+ * @return {Function}
37556
+ */
37557
+ function normalizeNamespace (fn) {
37558
+ return function (namespace, map) {
37559
+ if (typeof namespace !== 'string') {
37560
+ map = namespace;
37561
+ namespace = '';
37562
+ } else if (namespace.charAt(namespace.length - 1) !== '/') {
37563
+ namespace += '/';
37564
+ }
37565
+ return fn(namespace, map)
37566
+ }
37567
+ }
37568
+
37569
+ /**
37570
+ * Search a special module from store by namespace. if module not exist, print error message.
37571
+ * @param {Object} store
37572
+ * @param {String} helper
37573
+ * @param {String} namespace
37574
+ * @return {Object}
37575
+ */
37576
+ function getModuleByNamespace (store, helper, namespace) {
37577
+ var module = store._modulesNamespaceMap[namespace];
37578
+ if (false) {}
37579
+ return module
37580
+ }
37581
+
37582
+ // Credits: borrowed code from fcomb/redux-logger
37583
+
37584
+ function createLogger (ref) {
37585
+ if ( ref === void 0 ) ref = {};
37586
+ var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
37587
+ var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
37588
+ var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
37589
+ var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
37590
+ var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
37591
+ var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
37592
+ var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
37593
+ var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
37594
+ var logger = ref.logger; if ( logger === void 0 ) logger = console;
37595
+
37596
+ return function (store) {
37597
+ var prevState = deepCopy(store.state);
37598
+
37599
+ if (typeof logger === 'undefined') {
37600
+ return
37601
+ }
37602
+
37603
+ if (logMutations) {
37604
+ store.subscribe(function (mutation, state) {
37605
+ var nextState = deepCopy(state);
37606
+
37607
+ if (filter(mutation, prevState, nextState)) {
37608
+ var formattedTime = getFormattedTime();
37609
+ var formattedMutation = mutationTransformer(mutation);
37610
+ var message = "mutation " + (mutation.type) + formattedTime;
37611
+
37612
+ startMessage(logger, message, collapsed);
37613
+ logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
37614
+ logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
37615
+ logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
37616
+ endMessage(logger);
37617
+ }
37618
+
37619
+ prevState = nextState;
37620
+ });
37621
+ }
37622
+
37623
+ if (logActions) {
37624
+ store.subscribeAction(function (action, state) {
37625
+ if (actionFilter(action, state)) {
37626
+ var formattedTime = getFormattedTime();
37627
+ var formattedAction = actionTransformer(action);
37628
+ var message = "action " + (action.type) + formattedTime;
37629
+
37630
+ startMessage(logger, message, collapsed);
37631
+ logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
37632
+ endMessage(logger);
37633
+ }
37634
+ });
37635
+ }
37636
+ }
37637
+ }
37638
+
37639
+ function startMessage (logger, message, collapsed) {
37640
+ var startMessage = collapsed
37641
+ ? logger.groupCollapsed
37642
+ : logger.group;
37643
+
37644
+ // render
37645
+ try {
37646
+ startMessage.call(logger, message);
37647
+ } catch (e) {
37648
+ logger.log(message);
37649
+ }
37650
+ }
37651
+
37652
+ function endMessage (logger) {
37653
+ try {
37654
+ logger.groupEnd();
37655
+ } catch (e) {
37656
+ logger.log('—— log end ——');
37657
+ }
37658
+ }
37659
+
37660
+ function getFormattedTime () {
37661
+ var time = new Date();
37662
+ return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
37663
+ }
37664
+
37665
+ function repeat (str, times) {
37666
+ return (new Array(times + 1)).join(str)
37667
+ }
37668
+
37669
+ function pad (num, maxLength) {
37670
+ return repeat('0', maxLength - num.toString().length) + num
37671
+ }
37672
+
37673
+ var index = {
37674
+ Store: Store,
37675
+ install: install,
37676
+ version: '3.6.2',
37677
+ mapState: mapState,
37678
+ mapMutations: mapMutations,
37679
+ mapGetters: mapGetters,
37680
+ mapActions: mapActions,
37681
+ createNamespacedHelpers: createNamespacedHelpers,
37682
+ createLogger: createLogger
37683
+ };
37684
+
37685
+ /* harmony default export */ __webpack_exports__["a"] = (index);
37686
+
37687
+
37688
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("2409")))
37689
+
36513
37690
  /***/ }),
36514
37691
 
36515
37692
  /***/ "7745":
@@ -75445,7 +76622,7 @@ __webpack_require__.d(__webpack_exports__, "BasePulldown", function() { return /
75445
76622
  __webpack_require__.d(__webpack_exports__, "BaseIntervalInput", function() { return /* reexport */ BaseIntervalInput; });
75446
76623
  __webpack_require__.d(__webpack_exports__, "BaseForm", function() { return /* reexport */ BaseForm; });
75447
76624
  __webpack_require__.d(__webpack_exports__, "UtilFilters", function() { return /* reexport */ /* Cannot get final name for export "default" in "./packages/utils/filters.js" (known exports: timeAgo parseTime formatTime momentTime nFormatter html2Text toThousandslsFilter popupDisplayFilter displayFieldValueFilter displaySelectCaption displaySelectMultiCaption displayCaptionFilter splitFieldValueFilter dropdownDisplayFilter dateformat secondDisplayTime, known reexports: ) */ undefined; });
75448
- __webpack_require__.d(__webpack_exports__, "UtilStore", function() { return /* reexport */ utils_store; });
76625
+ __webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ utils_store; });
75449
76626
  __webpack_require__.d(__webpack_exports__, "request", function() { return /* reexport */ request; });
75450
76627
 
75451
76628
  // NAMESPACE OBJECT: ./node_modules/_vee-validate@3.4.14@vee-validate/dist/rules.js
@@ -104138,11 +105315,125 @@ var api = {
104138
105315
 
104139
105316
  api.warn = api.warning;
104140
105317
  /* harmony default export */ var notification = (api);
105318
+ // CONCATENATED MODULE: ./packages/utils/api.js
105319
+
105320
+ const apiUmsUrl = Object({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_UMS_SERVICE_URL + '/v1/module'
105321
+ function loadViewInfo(moduleCode) {
105322
+ return request({
105323
+ url: apiUmsUrl + '/loadViewInfo',
105324
+ method: 'get',
105325
+ params: {
105326
+ moduleCode: moduleCode
105327
+ }
105328
+ })
105329
+ }
105330
+
105331
+ // EXTERNAL MODULE: ./node_modules/_vuex@3.6.2@vuex/dist/vuex.esm.js
105332
+ var vuex_esm = __webpack_require__("7736");
105333
+
105334
+ // CONCATENATED MODULE: ./packages/utils/store.js
105335
+
105336
+
105337
+
105338
+
105339
+
105340
+ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* default */])
105341
+ /* harmony default export */ var utils_store = (new vuex_esm["a" /* default */].Store({
105342
+ state: {
105343
+ token: '',
105344
+ webAppCode: '',
105345
+ moduleViewInfo: {},
105346
+ controlSize: 'small',
105347
+ newId: 0,//明细新增id
105348
+ },
105349
+ mutations: {
105350
+ SET_TOKEN: (state, token) => {
105351
+ state.token = token
105352
+ },
105353
+ SET_WEB_APP_CODE: (state, webAppCode) => {
105354
+ state.webAppCode = webAppCode
105355
+ },
105356
+ SET_MODULE_VIEW_INFO: (state, data) => {
105357
+ state.moduleViewInfo[data.moduleCode] = data.info
105358
+ console.debug(state.moduleViewInfo)
105359
+ },
105360
+ SET_NEW_ID: (state, id) => {
105361
+ state.newId = id
105362
+ }
105363
+ },
105364
+ actions: {
105365
+ setTabTitle({ commit }, tabInfo) {
105366
+ if (tabInfo.replaceQuery) {
105367
+ let newRoutePath =
105368
+ tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
105369
+ history.replaceState(null,null,(window.$wujie.props.webAppActiveRule + newRoutePath))
105370
+ let keepAliveComp =
105371
+ tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
105372
+ .componentInstance
105373
+
105374
+ for (let cacheKey in keepAliveComp.cache) {
105375
+ if (
105376
+ keepAliveComp.cache[cacheKey].componentInstance._uid ===
105377
+ tabInfo.compUid
105378
+ ) {
105379
+ keepAliveComp.cache[newRoutePath] = keepAliveComp.cache[cacheKey]
105380
+ keepAliveComp.keyToCache = newRoutePath
105381
+ XEUtils.remove(keepAliveComp.keys, loopKey => loopKey === cacheKey)
105382
+ delete keepAliveComp.cache[cacheKey]
105383
+ keepAliveComp.keys.push(newRoutePath)
105384
+ break
105385
+ }
105386
+ }
105387
+ }
105388
+ //通知父应用修改Tab标签文字描述
105389
+ window.$wujie.bus.$emit('subAppSetTabTitle', {
105390
+ title: tabInfo.title,
105391
+ name: tabInfo.name,
105392
+ query: tabInfo.query,
105393
+ replaceQuery: tabInfo.replaceQuery,
105394
+ path: tabInfo.path
105395
+ })
105396
+ },
105397
+ closeTab({ commit }, fullPath) {
105398
+ window.$wujie.bus.$emit(
105399
+ 'subAppCloseTab',
105400
+ window.$wujie.props.webAppActiveRule + fullPath
105401
+ )
105402
+ },
105403
+ moduleLoadViewInfo({ commit, state }, dataInfo) {
105404
+ let vm = this
105405
+ return new Promise((resolve, reject) => {
105406
+ loadViewInfo(dataInfo.moduleCode)
105407
+ .then(reponseData => {
105408
+ commit('SET_MODULE_VIEW_INFO', {
105409
+ moduleCode: dataInfo.moduleCode,
105410
+ info: reponseData.content
105411
+ })
105412
+ resolve()
105413
+ })
105414
+ .catch(error => {
105415
+ reject(error)
105416
+ })
105417
+ })
105418
+ }
105419
+ },
105420
+ getters: {
105421
+ token: state => state.token,
105422
+ webAppCode: state => state.webAppCode,
105423
+ moduleViewInfo: state => state.moduleViewInfo,
105424
+ controlSize: state => state.controlSize,
105425
+ newId: state => () => {
105426
+ state.newId = state.newId + 1
105427
+ return state.newId
105428
+ }
105429
+ }
105430
+ }));
104141
105431
  // CONCATENATED MODULE: ./packages/utils/request.js
104142
105432
 
104143
105433
 
104144
105434
 
104145
105435
 
105436
+
104146
105437
  // create an axios instance
104147
105438
  const service = _axios_0_18_0_axios_default.a.create({
104148
105439
  // baseURL: process.env.BASE_API, // api的base_url
@@ -104151,9 +105442,9 @@ const service = _axios_0_18_0_axios_default.a.create({
104151
105442
  // request interceptor
104152
105443
  service.interceptors.request.use(
104153
105444
  config => {
104154
- console.debug(external_commonjs_vue_commonjs2_vue_root_Vue_default.a.$store)
105445
+ console.debug(utils_store)
104155
105446
  // Do something before request is sent
104156
- let tempToken = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.$store.state.token
105447
+ let tempToken = utils_store.state.token
104157
105448
  if (tempToken) {
104158
105449
  config.headers.Authorization = `Bearer ${tempToken}`
104159
105450
  }
@@ -104182,7 +105473,7 @@ service.interceptors.response.use(
104182
105473
  return response.data
104183
105474
  }
104184
105475
  if (res.code === 401) {
104185
- external_commonjs_vue_commonjs2_vue_root_Vue_default.a.$store.dispatch('logOut')
105476
+ utils_store.dispatch('logOut')
104186
105477
  return Promise.reject(res.msg)
104187
105478
  }
104188
105479
  notification.error({
@@ -104201,7 +105492,7 @@ service.interceptors.response.use(
104201
105492
  error => {
104202
105493
  // console.debug(error)
104203
105494
  if (error.response && error.response.status === 401) {
104204
- external_commonjs_vue_commonjs2_vue_root_Vue_default.a.$store.dispatch('logOut').then(() => {})
105495
+ utils_store.dispatch('logOut').then(() => {})
104205
105496
  return
104206
105497
  }
104207
105498
  let errorMsg = ''
@@ -105943,101 +107234,6 @@ BaseForm_src.install = function(Vue) {
105943
107234
  };
105944
107235
  // 默认导出组件
105945
107236
  /* harmony default export */ var BaseForm = (BaseForm_src);
105946
- // CONCATENATED MODULE: ./packages/utils/store.js
105947
-
105948
- const store_store = {
105949
- state: {
105950
- token: '',
105951
- webAppCode: '',
105952
- moduleViewInfo: {},
105953
- controlSize: 'small',
105954
- newId: 0,//明细新增id
105955
- },
105956
- mutations: {
105957
- SET_TOKEN: (state, token) => {
105958
- state.token = token
105959
- },
105960
- SET_WEB_APP_CODE: (state, webAppCode) => {
105961
- state.webAppCode = webAppCode
105962
- },
105963
- SET_MODULE_VIEW_INFO: (state, data) => {
105964
- state.moduleViewInfo[data.moduleCode] = data.info
105965
- console.debug(state.moduleViewInfo)
105966
- },
105967
- SET_NEW_ID: (state, id) => {
105968
- state.newId = id
105969
- }
105970
- },
105971
- actions: {
105972
- setTabTitle({ commit }, tabInfo) {
105973
- if (tabInfo.replaceQuery) {
105974
- let newRoutePath =
105975
- tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
105976
- history.replaceState(null,null,(window.$wujie.props.webAppActiveRule + newRoutePath))
105977
- let keepAliveComp =
105978
- tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
105979
- .componentInstance
105980
-
105981
- for (let cacheKey in keepAliveComp.cache) {
105982
- if (
105983
- keepAliveComp.cache[cacheKey].componentInstance._uid ===
105984
- tabInfo.compUid
105985
- ) {
105986
- keepAliveComp.cache[newRoutePath] = keepAliveComp.cache[cacheKey]
105987
- keepAliveComp.keyToCache = newRoutePath
105988
- XEUtils.remove(keepAliveComp.keys, loopKey => loopKey === cacheKey)
105989
- delete keepAliveComp.cache[cacheKey]
105990
- keepAliveComp.keys.push(newRoutePath)
105991
- break
105992
- }
105993
- }
105994
- }
105995
- //通知父应用修改Tab标签文字描述
105996
- window.$wujie.bus.$emit('subAppSetTabTitle', {
105997
- title: tabInfo.title,
105998
- name: tabInfo.name,
105999
- query: tabInfo.query,
106000
- replaceQuery: tabInfo.replaceQuery,
106001
- path: tabInfo.path
106002
- })
106003
- },
106004
- closeTab({ commit }, fullPath) {
106005
- window.$wujie.bus.$emit(
106006
- 'subAppCloseTab',
106007
- window.$wujie.props.webAppActiveRule + fullPath
106008
- )
106009
- },
106010
- moduleLoadViewInfo({ commit, state }, dataInfo) {
106011
- let vm = this
106012
- return new Promise((resolve, reject) => {
106013
- loadViewInfo(dataInfo.moduleCode)
106014
- .then(reponseData => {
106015
- commit('SET_MODULE_VIEW_INFO', {
106016
- moduleCode: dataInfo.moduleCode,
106017
- info: reponseData.content
106018
- })
106019
- resolve()
106020
- })
106021
- .catch(error => {
106022
- reject(error)
106023
- })
106024
- })
106025
- }
106026
- },
106027
- getters: {
106028
- token: state => state.token,
106029
- webAppCode: state => state.webAppCode,
106030
- moduleViewInfo: state => state.moduleViewInfo,
106031
- controlSize: state => state.controlSize,
106032
- newId: state => () => {
106033
- state.newId = state.newId + 1
106034
- return state.newId
106035
- }
106036
- }
106037
- }
106038
- /* harmony default export */ var utils_store = (store_store);
106039
-
106040
- // export default store
106041
107237
  // CONCATENATED MODULE: ./node_modules/_vee-validate@3.4.14@vee-validate/dist/rules.js
106042
107238
  /**
106043
107239
  * vee-validate v3.4.14