mooho-base-admin-plus 2.1.0 → 2.1.2
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);
|
|
@@ -35677,7 +35672,6 @@ const _sfc_main$B = {
|
|
|
35677
35672
|
mixins: [mixinPage],
|
|
35678
35673
|
data() {
|
|
35679
35674
|
return {
|
|
35680
|
-
inited: false,
|
|
35681
35675
|
opened: false,
|
|
35682
35676
|
sourceFilter: {}
|
|
35683
35677
|
};
|
|
@@ -35707,7 +35701,6 @@ const _sfc_main$B = {
|
|
|
35707
35701
|
this.$refs.selectSourceTable.loadData();
|
|
35708
35702
|
this.$refs.selectTargetTable.init(targetViewCode, () => {
|
|
35709
35703
|
this.setSelected([]);
|
|
35710
|
-
this.inited = true;
|
|
35711
35704
|
if (typeof callback === "function") {
|
|
35712
35705
|
callback();
|
|
35713
35706
|
}
|
|
@@ -35724,8 +35717,10 @@ const _sfc_main$B = {
|
|
|
35724
35717
|
return this.$refs.selectTargetTable.data;
|
|
35725
35718
|
},
|
|
35726
35719
|
setSelected(data2) {
|
|
35727
|
-
if (this.inited) {
|
|
35720
|
+
if (this.$refs.selectTargetTable.inited) {
|
|
35728
35721
|
this.$refs.selectTargetTable.loadData(data2);
|
|
35722
|
+
}
|
|
35723
|
+
if (this.$refs.selectSourceTable.inited) {
|
|
35729
35724
|
this.$refs.selectSourceTable.setSelected(data2);
|
|
35730
35725
|
}
|
|
35731
35726
|
},
|
|
@@ -50599,24 +50594,6 @@ const _sfc_main$o = {
|
|
|
50599
50594
|
computed: {},
|
|
50600
50595
|
methods: {
|
|
50601
50596
|
...mapActions("admin/dataView", { loadDataView: "load" }),
|
|
50602
|
-
getWidth(column) {
|
|
50603
|
-
switch (column.columnWidth) {
|
|
50604
|
-
case "Column12":
|
|
50605
|
-
return 100 * 24 / 24;
|
|
50606
|
-
case "Column9":
|
|
50607
|
-
return 100 * 18 / 24;
|
|
50608
|
-
case "Column8":
|
|
50609
|
-
return 100 * 16 / 24;
|
|
50610
|
-
case "Column6":
|
|
50611
|
-
return 100 * 12 / 24;
|
|
50612
|
-
case "Column4":
|
|
50613
|
-
return 100 * 8 / 24;
|
|
50614
|
-
case "Column3":
|
|
50615
|
-
return 100 * 6 / 24;
|
|
50616
|
-
case "Column2":
|
|
50617
|
-
return 100 * 4 / 24;
|
|
50618
|
-
}
|
|
50619
|
-
},
|
|
50620
50597
|
getRules(column) {
|
|
50621
50598
|
if (!column.isShow) {
|
|
50622
50599
|
return [];
|
|
@@ -50710,6 +50687,7 @@ const _sfc_main$o = {
|
|
|
50710
50687
|
this.initTab();
|
|
50711
50688
|
this.initStaticItem();
|
|
50712
50689
|
this.initTrigger();
|
|
50690
|
+
this.initNewLine();
|
|
50713
50691
|
this.onDataChange();
|
|
50714
50692
|
});
|
|
50715
50693
|
},
|
|
@@ -50993,44 +50971,13 @@ const _sfc_main$o = {
|
|
|
50993
50971
|
return column.name;
|
|
50994
50972
|
}
|
|
50995
50973
|
},
|
|
50996
|
-
|
|
50997
|
-
|
|
50998
|
-
|
|
50999
|
-
|
|
51000
|
-
|
|
51001
|
-
case "Column12":
|
|
51002
|
-
width = 24;
|
|
51003
|
-
break;
|
|
51004
|
-
case "Column9":
|
|
51005
|
-
width = 18;
|
|
51006
|
-
break;
|
|
51007
|
-
case "Column8":
|
|
51008
|
-
width = 16;
|
|
51009
|
-
break;
|
|
51010
|
-
case "Column6":
|
|
51011
|
-
width = 12;
|
|
51012
|
-
break;
|
|
51013
|
-
case "Column4":
|
|
51014
|
-
width = 8;
|
|
51015
|
-
break;
|
|
51016
|
-
case "Column3":
|
|
51017
|
-
width = 6;
|
|
51018
|
-
break;
|
|
51019
|
-
case "Column2":
|
|
51020
|
-
width = 4;
|
|
51021
|
-
break;
|
|
51022
|
-
}
|
|
51023
|
-
if (width == 24) {
|
|
51024
|
-
current = 0;
|
|
51025
|
-
} else if (this.columns[i3].newLine || current + width > 24) {
|
|
51026
|
-
current = width;
|
|
51027
|
-
} else if (current + width == 24) {
|
|
51028
|
-
current = 0;
|
|
51029
|
-
} else {
|
|
51030
|
-
current = current + width;
|
|
51031
|
-
}
|
|
50974
|
+
getClass(column) {
|
|
50975
|
+
const grid = this.getGrid(column.columnWidth);
|
|
50976
|
+
const classes = [];
|
|
50977
|
+
for (const key in grid) {
|
|
50978
|
+
classes.push("ivu-col-span-" + key + "-" + grid[key]);
|
|
51032
50979
|
}
|
|
51033
|
-
return
|
|
50980
|
+
return classes;
|
|
51034
50981
|
},
|
|
51035
50982
|
mouseover(column) {
|
|
51036
50983
|
if (!this.dragging) {
|
|
@@ -51043,7 +50990,7 @@ const _sfc_main$o = {
|
|
|
51043
50990
|
}
|
|
51044
50991
|
},
|
|
51045
50992
|
start(evt) {
|
|
51046
|
-
this.draggingColumn = this.columns[evt.
|
|
50993
|
+
this.draggingColumn = this.columns[evt.oldDraggableIndex];
|
|
51047
50994
|
this.draggingColumn._actived = true;
|
|
51048
50995
|
this.draggingColumn._editable = false;
|
|
51049
50996
|
this.dragging = true;
|
|
@@ -51051,10 +50998,28 @@ const _sfc_main$o = {
|
|
|
51051
50998
|
end(evt) {
|
|
51052
50999
|
this.draggingColumn._actived = false;
|
|
51053
51000
|
this.dragging = false;
|
|
51001
|
+
this.initNewLine();
|
|
51002
|
+
},
|
|
51003
|
+
initNewLine() {
|
|
51004
|
+
this.columns.forEach((column, index2) => {
|
|
51005
|
+
const line = document.getElementById("line-" + index2);
|
|
51006
|
+
if (line) {
|
|
51007
|
+
line.parentNode.removeChild(line);
|
|
51008
|
+
}
|
|
51009
|
+
});
|
|
51010
|
+
this.columns.forEach((column, index2) => {
|
|
51011
|
+
if (column.newLine) {
|
|
51012
|
+
const col = document.getElementById("col-" + index2);
|
|
51013
|
+
const line = document.createElement("div");
|
|
51014
|
+
line.id = "line-" + index2;
|
|
51015
|
+
line.style.width = "100%";
|
|
51016
|
+
col.parentNode.insertBefore(line, col);
|
|
51017
|
+
}
|
|
51018
|
+
});
|
|
51054
51019
|
}
|
|
51055
51020
|
}
|
|
51056
51021
|
};
|
|
51057
|
-
const _hoisted_1$f = ["onMouseover", "onMouseleave"];
|
|
51022
|
+
const _hoisted_1$f = ["id", "onMouseover", "onMouseleave"];
|
|
51058
51023
|
const _hoisted_2$d = { style: { "position": "absolute", "z-index": "100", "top": "4px", "right": "4px" } };
|
|
51059
51024
|
const _hoisted_3$b = { key: 2 };
|
|
51060
51025
|
const _hoisted_4$4 = { class: "title" };
|
|
@@ -51105,14 +51070,15 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51105
51070
|
group: "sort",
|
|
51106
51071
|
onStart: $options.start,
|
|
51107
51072
|
onEnd: $options.end,
|
|
51108
|
-
|
|
51073
|
+
class: "ivu-row ivu-row-flex",
|
|
51074
|
+
style: { "margin-left": "-12px", "margin-right": "-12px" }
|
|
51109
51075
|
}, {
|
|
51110
51076
|
item: withCtx(({ element: column, index: index2 }) => [
|
|
51111
51077
|
createElementVNode("div", {
|
|
51112
|
-
|
|
51113
|
-
|
|
51114
|
-
|
|
51115
|
-
]),
|
|
51078
|
+
id: "col-" + index2,
|
|
51079
|
+
ref: "col-" + index2,
|
|
51080
|
+
class: normalizeClass(["ivu-col", $options.getClass(column)]),
|
|
51081
|
+
style: normalizeStyle$1([{ "padding-left": "12px", "padding-right": "12px" }, column._actived ? "border: dashed #ddd 1px; background-color: #ffefd5;" : ""]),
|
|
51116
51082
|
onMouseover: ($event) => $options.mouseover(column),
|
|
51117
51083
|
onMouseleave: ($event) => $options.mouseleave(column)
|
|
51118
51084
|
}, [
|
|
@@ -51563,7 +51529,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51563
51529
|
]),
|
|
51564
51530
|
_: 2
|
|
51565
51531
|
}, 1032, ["label", "prop", "rules", "error"])) : createCommentVNode("v-if", true)
|
|
51566
|
-
],
|
|
51532
|
+
], 46, _hoisted_1$f)
|
|
51567
51533
|
]),
|
|
51568
51534
|
_: 1
|
|
51569
51535
|
}, 8, ["modelValue", "onStart", "onEnd"])
|