mooho-base-admin-plus 2.1.0 → 2.1.1
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.
|
@@ -6977,8 +6977,8 @@ const util$8 = {
|
|
|
6977
6977
|
db: db$1
|
|
6978
6978
|
};
|
|
6979
6979
|
/*!
|
|
6980
|
-
* vue-router v4.
|
|
6981
|
-
* (c)
|
|
6980
|
+
* vue-router v4.2.0
|
|
6981
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
6982
6982
|
* @license MIT
|
|
6983
6983
|
*/
|
|
6984
6984
|
const isBrowser = typeof window !== "undefined";
|
|
@@ -7070,6 +7070,10 @@ function resolveRelativePath(to, from) {
|
|
|
7070
7070
|
return from;
|
|
7071
7071
|
const fromSegments = from.split("/");
|
|
7072
7072
|
const toSegments = to.split("/");
|
|
7073
|
+
const lastToSegment = toSegments[toSegments.length - 1];
|
|
7074
|
+
if (lastToSegment === ".." || lastToSegment === ".") {
|
|
7075
|
+
toSegments.push("");
|
|
7076
|
+
}
|
|
7073
7077
|
let position2 = fromSegments.length - 1;
|
|
7074
7078
|
let toPosition;
|
|
7075
7079
|
let segment;
|
|
@@ -7244,7 +7248,9 @@ function useHistoryListeners(base2, historyState, currentLocation, replace) {
|
|
|
7244
7248
|
window.removeEventListener("beforeunload", beforeUnloadListener);
|
|
7245
7249
|
}
|
|
7246
7250
|
window.addEventListener("popstate", popStateHandler);
|
|
7247
|
-
window.addEventListener("beforeunload", beforeUnloadListener
|
|
7251
|
+
window.addEventListener("beforeunload", beforeUnloadListener, {
|
|
7252
|
+
passive: true
|
|
7253
|
+
});
|
|
7248
7254
|
return {
|
|
7249
7255
|
pauseListeners,
|
|
7250
7256
|
listen,
|
|
@@ -8491,7 +8497,8 @@ const RouterView = RouterViewImpl;
|
|
|
8491
8497
|
function warnDeprecatedUsage() {
|
|
8492
8498
|
const instance = getCurrentInstance();
|
|
8493
8499
|
const parentName = instance.parent && instance.parent.type.name;
|
|
8494
|
-
|
|
8500
|
+
const parentSubTreeType = instance.parent && instance.parent.subTree && instance.parent.subTree.type;
|
|
8501
|
+
if (parentName && (parentName === "KeepAlive" || parentName.includes("Transition")) && typeof parentSubTreeType === "object" && parentSubTreeType.name === "RouterView") {
|
|
8495
8502
|
const comp = parentName === "KeepAlive" ? "keep-alive" : "transition";
|
|
8496
8503
|
warn$3(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
8497
8504
|
Use slot props instead:
|
|
@@ -8963,7 +8970,7 @@ function createRouter(options) {
|
|
|
8963
8970
|
}
|
|
8964
8971
|
}
|
|
8965
8972
|
matcherLocation = assign$1({}, rawLocation, {
|
|
8966
|
-
params: encodeParams(
|
|
8973
|
+
params: encodeParams(targetParams)
|
|
8967
8974
|
});
|
|
8968
8975
|
currentLocation.params = encodeParams(currentLocation.params);
|
|
8969
8976
|
}
|
|
@@ -9064,8 +9071,9 @@ ${JSON.stringify(newTargetLocation, null, 2)}
|
|
|
9064
9071
|
return (failure ? Promise.resolve(failure) : navigate(toLocation, from)).catch((error2) => isNavigationFailure(error2) ? isNavigationFailure(error2, 2) ? error2 : markAsReady(error2) : triggerError(error2, toLocation, from)).then((failure2) => {
|
|
9065
9072
|
if (failure2) {
|
|
9066
9073
|
if (isNavigationFailure(failure2, 2)) {
|
|
9067
|
-
if (isSameRouteLocation(stringifyQuery$1, resolve(failure2.to), toLocation) && redirectedFrom && (redirectedFrom._count = redirectedFrom._count ? redirectedFrom._count + 1 : 1) >
|
|
9068
|
-
warn$3(`Detected
|
|
9074
|
+
if (isSameRouteLocation(stringifyQuery$1, resolve(failure2.to), toLocation) && redirectedFrom && (redirectedFrom._count = redirectedFrom._count ? redirectedFrom._count + 1 : 1) > 30) {
|
|
9075
|
+
warn$3(`Detected a possibly infinite redirection in a navigation guard when going from "${from.fullPath}" to "${toLocation.fullPath}". Aborting to avoid a Stack Overflow.
|
|
9076
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`);
|
|
9069
9077
|
return Promise.reject(new Error("Infinite redirect in navigation guard"));
|
|
9070
9078
|
}
|
|
9071
9079
|
return pushWithRedirect(
|
|
@@ -9089,6 +9097,10 @@ ${JSON.stringify(newTargetLocation, null, 2)}
|
|
|
9089
9097
|
const error2 = checkCanceledNavigation(to, from);
|
|
9090
9098
|
return error2 ? Promise.reject(error2) : Promise.resolve();
|
|
9091
9099
|
}
|
|
9100
|
+
function runWithContext(fn) {
|
|
9101
|
+
const app = installedApps.values().next().value;
|
|
9102
|
+
return app && typeof app.runWithContext === "function" ? app.runWithContext(fn) : fn();
|
|
9103
|
+
}
|
|
9092
9104
|
function navigate(to, from) {
|
|
9093
9105
|
let guards;
|
|
9094
9106
|
const [leavingRecords, updatingRecords, enteringRecords] = extractChangingRecords(to, from);
|
|
@@ -9145,8 +9157,9 @@ ${JSON.stringify(newTargetLocation, null, 2)}
|
|
|
9145
9157
|
}).catch((err) => isNavigationFailure(err, 8) ? err : Promise.reject(err));
|
|
9146
9158
|
}
|
|
9147
9159
|
function triggerAfterEach(to, from, failure) {
|
|
9148
|
-
for (const guard of afterGuards.list())
|
|
9149
|
-
guard(to, from, failure);
|
|
9160
|
+
for (const guard of afterGuards.list()) {
|
|
9161
|
+
runWithContext(() => guard(to, from, failure));
|
|
9162
|
+
}
|
|
9150
9163
|
}
|
|
9151
9164
|
function finalizeNavigation(toLocation, from, isPush, replace2, data2) {
|
|
9152
9165
|
const error2 = checkCanceledNavigation(toLocation, from);
|
|
@@ -9322,11 +9335,11 @@ ${JSON.stringify(newTargetLocation, null, 2)}
|
|
|
9322
9335
|
}
|
|
9323
9336
|
}
|
|
9324
9337
|
};
|
|
9338
|
+
function runGuardQueue(guards) {
|
|
9339
|
+
return guards.reduce((promise2, guard) => promise2.then(() => runWithContext(guard)), Promise.resolve());
|
|
9340
|
+
}
|
|
9325
9341
|
return router2;
|
|
9326
9342
|
}
|
|
9327
|
-
function runGuardQueue(guards) {
|
|
9328
|
-
return guards.reduce((promise2, guard) => promise2.then(() => guard()), Promise.resolve());
|
|
9329
|
-
}
|
|
9330
9343
|
function extractChangingRecords(to, from) {
|
|
9331
9344
|
const leavingRecords = [];
|
|
9332
9345
|
const updatingRecords = [];
|
|
@@ -13006,40 +13019,22 @@ head.insertBefore(oscript, head.firstChild);
|
|
|
13006
13019
|
var lodop = {
|
|
13007
13020
|
getLodop
|
|
13008
13021
|
};
|
|
13022
|
+
function _typeof$1(obj) {
|
|
13023
|
+
"@babel/helpers - typeof";
|
|
13024
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
13025
|
+
return typeof obj2;
|
|
13026
|
+
} : function(obj2) {
|
|
13027
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
13028
|
+
}, _typeof$1(obj);
|
|
13029
|
+
}
|
|
13009
13030
|
function requiredArgs(required, args) {
|
|
13010
13031
|
if (args.length < required) {
|
|
13011
13032
|
throw new TypeError(required + " argument" + (required > 1 ? "s" : "") + " required, but only " + args.length + " present");
|
|
13012
13033
|
}
|
|
13013
13034
|
}
|
|
13014
|
-
function _typeof$2(obj) {
|
|
13015
|
-
"@babel/helpers - typeof";
|
|
13016
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
13017
|
-
_typeof$2 = function _typeof2(obj2) {
|
|
13018
|
-
return typeof obj2;
|
|
13019
|
-
};
|
|
13020
|
-
} else {
|
|
13021
|
-
_typeof$2 = function _typeof2(obj2) {
|
|
13022
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
13023
|
-
};
|
|
13024
|
-
}
|
|
13025
|
-
return _typeof$2(obj);
|
|
13026
|
-
}
|
|
13027
13035
|
function isDate$1(value) {
|
|
13028
13036
|
requiredArgs(1, arguments);
|
|
13029
|
-
return value instanceof Date || _typeof$
|
|
13030
|
-
}
|
|
13031
|
-
function _typeof$1(obj) {
|
|
13032
|
-
"@babel/helpers - typeof";
|
|
13033
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
13034
|
-
_typeof$1 = function _typeof2(obj2) {
|
|
13035
|
-
return typeof obj2;
|
|
13036
|
-
};
|
|
13037
|
-
} else {
|
|
13038
|
-
_typeof$1 = function _typeof2(obj2) {
|
|
13039
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
13040
|
-
};
|
|
13041
|
-
}
|
|
13042
|
-
return _typeof$1(obj);
|
|
13037
|
+
return value instanceof Date || _typeof$1(value) === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
13043
13038
|
}
|
|
13044
13039
|
function toDate(argument) {
|
|
13045
13040
|
requiredArgs(1, arguments);
|
|
@@ -23908,6 +23903,7 @@ const _hoisted_22$2 = { class: "content" };
|
|
|
23908
23903
|
const _hoisted_23$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value1" }, "\u5F85\u5206\u6D3E", -1));
|
|
23909
23904
|
const _hoisted_24$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value2" }, "\u5DF2\u5206\u6D3E", -1));
|
|
23910
23905
|
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23906
|
+
const _component_DatePicker = resolveComponent("DatePicker");
|
|
23911
23907
|
const _component_Icon = resolveComponent("Icon");
|
|
23912
23908
|
const _component_Numeral = resolveComponent("Numeral");
|
|
23913
23909
|
const _component_Card = resolveComponent("Card");
|
|
@@ -23917,6 +23913,10 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23917
23913
|
const _component_shortcut = resolveComponent("shortcut");
|
|
23918
23914
|
const _directive_font = resolveDirective("font");
|
|
23919
23915
|
return openBlock(), createElementBlock("div", null, [
|
|
23916
|
+
createVNode$1(_component_DatePicker, {
|
|
23917
|
+
type: "date",
|
|
23918
|
+
size: "small"
|
|
23919
|
+
}),
|
|
23920
23920
|
createVNode$1(_component_Row, {
|
|
23921
23921
|
gutter: 24,
|
|
23922
23922
|
class: "ivu-mt"
|
|
@@ -35677,7 +35677,6 @@ const _sfc_main$B = {
|
|
|
35677
35677
|
mixins: [mixinPage],
|
|
35678
35678
|
data() {
|
|
35679
35679
|
return {
|
|
35680
|
-
inited: false,
|
|
35681
35680
|
opened: false,
|
|
35682
35681
|
sourceFilter: {}
|
|
35683
35682
|
};
|
|
@@ -35707,7 +35706,6 @@ const _sfc_main$B = {
|
|
|
35707
35706
|
this.$refs.selectSourceTable.loadData();
|
|
35708
35707
|
this.$refs.selectTargetTable.init(targetViewCode, () => {
|
|
35709
35708
|
this.setSelected([]);
|
|
35710
|
-
this.inited = true;
|
|
35711
35709
|
if (typeof callback === "function") {
|
|
35712
35710
|
callback();
|
|
35713
35711
|
}
|
|
@@ -35724,8 +35722,10 @@ const _sfc_main$B = {
|
|
|
35724
35722
|
return this.$refs.selectTargetTable.data;
|
|
35725
35723
|
},
|
|
35726
35724
|
setSelected(data2) {
|
|
35727
|
-
if (this.inited) {
|
|
35725
|
+
if (this.$refs.selectTargetTable.inited) {
|
|
35728
35726
|
this.$refs.selectTargetTable.loadData(data2);
|
|
35727
|
+
}
|
|
35728
|
+
if (this.$refs.selectSourceTable.inited) {
|
|
35729
35729
|
this.$refs.selectSourceTable.setSelected(data2);
|
|
35730
35730
|
}
|
|
35731
35731
|
},
|