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