@morghulis/core 1.0.56 → 1.0.58
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasInjectionContext as qr, inject as xt, getCurrentInstance as Hr, effectScope as Ia, ref as x, markRaw as it, reactive as Kt, isRef as ie, isReactive as wo, toRef as Yn, toRaw as Yt, nextTick as Ve, computed as O, getCurrentScope as Kr, onScopeDispose as Yr, watch as
|
|
1
|
+
import { hasInjectionContext as qr, inject as xt, getCurrentInstance as Hr, effectScope as Ia, ref as x, markRaw as it, reactive as Kt, isRef as ie, isReactive as wo, toRef as Yn, toRaw as Yt, nextTick as Ve, computed as O, getCurrentScope as Kr, onScopeDispose as Yr, watch as X, toRefs as tl, unref as h, onUnmounted as Fa, defineComponent as I, onMounted as Vt, onBeforeUnmount as Pa, createElementBlock as M, openBlock as b, normalizeStyle as je, useSlots as Tn, normalizeClass as Tt, createBlock as k, createCommentVNode as K, renderSlot as Q, resolveComponent as w, withCtx as f, createVNode as m, createElementVNode as te, createTextVNode as S, resolveDirective as At, withKeys as Le, createSlots as ko, withDirectives as Ye, toDisplayString as z, Fragment as H, defineAsyncComponent as Wt, shallowRef as Wr, renderList as se, resolveDynamicComponent as An, mergeProps as ke, vShow as Gr } from "vue";
|
|
2
2
|
import { library as Jr } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
import { faUser as Xr, faPaperPlane as Zr, faRefresh as Qr, faExchangeAlt as ei, faCalculator as ti, faDatabase as ni, faClose as oi, faPlus as li, faSave as ai, faMinusSquare as si, faSearch as ri, faBan as ii, faEdit as ui, faTrash as ci, faPaste as di, faPlusSquare as pi, faLeaf as fi, faFolder as mi, faTable as _i, faUpload as gi, faClone as hi, faDownload as vi, faFolderOpen as yi, faExpand as bi, faCode as wi, faCheckCircle as ki, faInfoCircle as Ei, faClipboard as xi, faFileExcel as Ci, faXmark as Oi, faXmarkCircle as Si, faXmarkSquare as $i, faWarning as Vi, faFileText as Ti, faBookOpen as Ai, faFileImport as Di, faCloudUploadAlt as Ri, faCloudUpload as Ii, faCheckSquare as Fi, faSort as Pi, faLayerGroup as Ni, faFile as Ui, faA as Bi, faCheck as Li, faSortDesc as zi, faSearchMinus as Mi, faSortAsc as ji, faCaretSquareUp as qi, faTableCells as Hi, faTableList as Ki, faRobot as Yi, faLock as Wi, faQuoteLeftAlt as Gi, faScroll as Ji, faSlidersH as Xi, faCalendarDay as Zi, faListUl as Qi, faCalendarWeek as eu, faCalendarAlt as tu, faLink as nu, faUnlink as ou, faBox as lu, faBoxes as au, faFolderTree as su, faBolt as ru, faCheckToSlot as iu, faCircleDot as uu, faCircle as cu, faCopy as du, faCogs as pu, faListAlt as fu, faUnlock as mu, faPen as _u, faSpinner as gu, faRightToBracket as hu, faRightFromBracket as vu, faEnvelope as yu, faKey as bu, faCodeBranch as wu, faAddressCard as ku, faHome as Eu, faCircleUser as xu, faUsers as Cu, faList as Ou, faUserLock as Su, faRotateLeft as $u, faBars as Vu, faEye as Tu, faAt as Au, faUserTag as Du, faLockOpen as Ru, faCalendar as Iu, faStar as Fu, faCog as Pu, faSquare as Nu, faBoxOpen as Uu, faUserGroup as Bu, faHourglass as Lu, faUserGraduate as zu, faAsterisk as Mu, faUserPlus as ju } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import { pick as ve, isEqual as Ie, isEmpty as qe, isBoolean as Dn, isNumber as no, isArray as oo, cloneDeep as Qe, keyBy as Eo, merge as xo, range as Na, intersection as pn, union as lo, difference as qu, omit as Rn, get as Hu, mapValues as Ku } from "lodash";
|
|
@@ -1792,11 +1792,11 @@ var xc = Object.create, qa = Object.defineProperty, Cc = Object.getOwnPropertyDe
|
|
|
1792
1792
|
"¤": "tien te"
|
|
1793
1793
|
}
|
|
1794
1794
|
}, i = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), u = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), d = function(y, E) {
|
|
1795
|
-
var T = "-", D = "", C = "", V = !0, P = {}, $, F, U, A, R, B, q,
|
|
1795
|
+
var T = "-", D = "", C = "", V = !0, P = {}, $, F, U, A, R, B, q, J, de, ne, G, ae, oe, Ne, pe = "";
|
|
1796
1796
|
if (typeof y != "string")
|
|
1797
1797
|
return "";
|
|
1798
|
-
if (typeof E == "string" && (T = E), q = r.en,
|
|
1799
|
-
$ = E.maintainCase || !1, P = E.custom && typeof E.custom == "object" ? E.custom : P, U = +E.truncate > 1 && E.truncate || !1, A = E.uric || !1, R = E.uricNoSlash || !1, B = E.mark || !1, V = !(E.symbols === !1 || E.lang === !1), T = E.separator || T, A && (pe += i), R && (pe += u), B && (pe += c), q = E.lang && r[E.lang] && V ? r[E.lang] : V ? r.en : {},
|
|
1798
|
+
if (typeof E == "string" && (T = E), q = r.en, J = a.en, typeof E == "object") {
|
|
1799
|
+
$ = E.maintainCase || !1, P = E.custom && typeof E.custom == "object" ? E.custom : P, U = +E.truncate > 1 && E.truncate || !1, A = E.uric || !1, R = E.uricNoSlash || !1, B = E.mark || !1, V = !(E.symbols === !1 || E.lang === !1), T = E.separator || T, A && (pe += i), R && (pe += u), B && (pe += c), q = E.lang && r[E.lang] && V ? r[E.lang] : V ? r.en : {}, J = E.lang && a[E.lang] ? a[E.lang] : E.lang === !1 || E.lang === !0 ? {} : a.en, E.titleCase && typeof E.titleCase.length == "number" && Array.prototype.toString.call(E.titleCase) ? (E.titleCase.forEach(function(_e) {
|
|
1800
1800
|
P[_e + ""] = _e + "";
|
|
1801
1801
|
}), F = !0) : F = !!E.titleCase, E.custom && typeof E.custom.length == "number" && Array.prototype.toString.call(E.custom) && E.custom.forEach(function(_e) {
|
|
1802
1802
|
P[_e + ""] = _e + "";
|
|
@@ -1808,7 +1808,7 @@ var xc = Object.create, qa = Object.defineProperty, Cc = Object.getOwnPropertyDe
|
|
|
1808
1808
|
pe += G;
|
|
1809
1809
|
}
|
|
1810
1810
|
for (pe += T, pe = g(pe), y = y.replace(/(^\s+|\s+$)/g, ""), oe = !1, Ne = !1, ne = 0, ae = y.length; ne < ae; ne++)
|
|
1811
|
-
G = y[ne], p(G, P) ? oe = !1 :
|
|
1811
|
+
G = y[ne], p(G, P) ? oe = !1 : J[G] ? (G = oe && J[G].match(/[A-Za-z0-9]/) ? " " + J[G] : J[G], oe = !1) : G in o ? (ne + 1 < ae && l.indexOf(y[ne + 1]) >= 0 ? (C += G, G = "") : Ne === !0 ? (G = s[C] + o[G], C = "") : G = oe && o[G].match(/[A-Za-z0-9]/) ? " " + o[G] : o[G], oe = !1, Ne = !1) : G in s ? (C += G, G = "", ne === ae - 1 && (G = s[C]), Ne = !0) : /* process symbol chars */ q[G] && !(A && i.indexOf(G) !== -1) && !(R && u.indexOf(G) !== -1) ? (G = oe || D.substr(-1).match(/[A-Za-z0-9]/) ? T + q[G] : q[G], G += y[ne + 1] !== void 0 && y[ne + 1].match(/[A-Za-z0-9]/) ? T : "", oe = !0) : (Ne === !0 ? (G = s[C] + G, C = "", Ne = !1) : oe && (/[A-Za-z0-9]/.test(G) || D.substr(-1).match(/A-Za-z0-9]/)) && (G = " " + G), oe = !1), D += G.replace(new RegExp("[^\\w\\s" + pe + "_-]", "g"), T);
|
|
1812
1812
|
return F && (D = D.replace(/(\w)(\S*)/g, function(_e, He, st) {
|
|
1813
1813
|
var yt = He.toUpperCase() + (st !== null ? st : "");
|
|
1814
1814
|
return Object.keys(P).indexOf(yt.toLowerCase()) < 0 ? yt : yt.toLowerCase();
|
|
@@ -4015,7 +4015,7 @@ function kp(e, t) {
|
|
|
4015
4015
|
});
|
|
4016
4016
|
});
|
|
4017
4017
|
}, !0), t._customProperties.forEach((a) => {
|
|
4018
|
-
|
|
4018
|
+
X(() => h(t[a]), (r, i) => {
|
|
4019
4019
|
n.notifyComponentUpdate(), n.sendInspectorState(ye), Et && n.addTimelineEvent({
|
|
4020
4020
|
layerId: rt,
|
|
4021
4021
|
event: {
|
|
@@ -4240,9 +4240,9 @@ function go(e, t, n = {}, o, l, s) {
|
|
|
4240
4240
|
return A[Xn] = R, A;
|
|
4241
4241
|
const B = function() {
|
|
4242
4242
|
Qt(o);
|
|
4243
|
-
const q = Array.from(arguments),
|
|
4243
|
+
const q = Array.from(arguments), J = [], de = [];
|
|
4244
4244
|
function ne(oe) {
|
|
4245
|
-
|
|
4245
|
+
J.push(oe);
|
|
4246
4246
|
}
|
|
4247
4247
|
function G(oe) {
|
|
4248
4248
|
de.push(oe);
|
|
@@ -4260,7 +4260,7 @@ function go(e, t, n = {}, o, l, s) {
|
|
|
4260
4260
|
} catch (oe) {
|
|
4261
4261
|
throw bt(de, oe), oe;
|
|
4262
4262
|
}
|
|
4263
|
-
return ae instanceof Promise ? ae.then((oe) => (bt(
|
|
4263
|
+
return ae instanceof Promise ? ae.then((oe) => (bt(J, oe), oe)).catch((oe) => (bt(de, oe), Promise.reject(oe))) : (bt(J, ae), ae);
|
|
4264
4264
|
};
|
|
4265
4265
|
return B[ia] = !0, B[Xn] = R, B;
|
|
4266
4266
|
}, V = /* @__PURE__ */ it({
|
|
@@ -4276,12 +4276,12 @@ function go(e, t, n = {}, o, l, s) {
|
|
|
4276
4276
|
$patch: E,
|
|
4277
4277
|
$reset: T,
|
|
4278
4278
|
$subscribe(A, R = {}) {
|
|
4279
|
-
const B = ra(d, A, R.detached, () => q()), q = a.run(() =>
|
|
4279
|
+
const B = ra(d, A, R.detached, () => q()), q = a.run(() => X(() => o.state.value[e], (J) => {
|
|
4280
4280
|
(R.flush === "sync" ? c : u) && A({
|
|
4281
4281
|
storeId: e,
|
|
4282
4282
|
type: ze.direct,
|
|
4283
4283
|
events: g
|
|
4284
|
-
},
|
|
4284
|
+
}, J);
|
|
4285
4285
|
}, $e({}, i, R)));
|
|
4286
4286
|
return B;
|
|
4287
4287
|
},
|
|
@@ -4700,7 +4700,7 @@ function zp(e) {
|
|
|
4700
4700
|
status: a,
|
|
4701
4701
|
open: r
|
|
4702
4702
|
} = Lp(e);
|
|
4703
|
-
return
|
|
4703
|
+
return X(s, () => {
|
|
4704
4704
|
const c = JSON.parse(s.value), d = c.tag;
|
|
4705
4705
|
if (d === "batch")
|
|
4706
4706
|
n(c);
|
|
@@ -5946,7 +5946,7 @@ const er = (e) => {
|
|
|
5946
5946
|
} = er(p), R = t || fetch;
|
|
5947
5947
|
$ = $ ? ($ + "").toLowerCase() : "text";
|
|
5948
5948
|
let B = am([T, D && D.toAbortSignal()], C), q = null;
|
|
5949
|
-
const
|
|
5949
|
+
const J = B && B.unsubscribe && (() => {
|
|
5950
5950
|
B.unsubscribe();
|
|
5951
5951
|
});
|
|
5952
5952
|
let de;
|
|
@@ -5978,7 +5978,7 @@ const er = (e) => {
|
|
|
5978
5978
|
q = s && new n(v, G);
|
|
5979
5979
|
let ae = await (s ? R(q, A) : R(v, G));
|
|
5980
5980
|
const oe = c && ($ === "stream" || $ === "response");
|
|
5981
|
-
if (c && (V || oe &&
|
|
5981
|
+
if (c && (V || oe && J)) {
|
|
5982
5982
|
const pe = {};
|
|
5983
5983
|
["status", "statusText", "headers"].forEach((yt) => {
|
|
5984
5984
|
pe[yt] = ae[yt];
|
|
@@ -5989,14 +5989,14 @@ const er = (e) => {
|
|
|
5989
5989
|
) || [];
|
|
5990
5990
|
ae = new o(
|
|
5991
5991
|
wa(ae.body, ka, He, () => {
|
|
5992
|
-
st && st(),
|
|
5992
|
+
st && st(), J && J();
|
|
5993
5993
|
}),
|
|
5994
5994
|
pe
|
|
5995
5995
|
);
|
|
5996
5996
|
}
|
|
5997
5997
|
$ = $ || "text";
|
|
5998
5998
|
let Ne = await d[N.findKey(d, $) || "text"](ae, p);
|
|
5999
|
-
return !oe &&
|
|
5999
|
+
return !oe && J && J(), await new Promise((pe, _e) => {
|
|
6000
6000
|
Zs(pe, _e, {
|
|
6001
6001
|
data: Ne,
|
|
6002
6002
|
headers: Ce.from(ae.headers),
|
|
@@ -6007,7 +6007,7 @@ const er = (e) => {
|
|
|
6007
6007
|
});
|
|
6008
6008
|
});
|
|
6009
6009
|
} catch (ne) {
|
|
6010
|
-
throw
|
|
6010
|
+
throw J && J(), ne && ne.name === "TypeError" && /Load failed|fetch/i.test(ne.message) ? Object.assign(
|
|
6011
6011
|
new ee("Network Error", ee.ERR_NETWORK, p, q),
|
|
6012
6012
|
{
|
|
6013
6013
|
cause: ne.cause || ne
|
|
@@ -6690,7 +6690,7 @@ function rr() {
|
|
|
6690
6690
|
}
|
|
6691
6691
|
function ir(e) {
|
|
6692
6692
|
const t = ie(e) ? e : x(e), { mount: n, unmount: o } = xt("channel-hub"), l = x();
|
|
6693
|
-
|
|
6693
|
+
X(t, (u, c) => {
|
|
6694
6694
|
c && o(c), l.value = n(u);
|
|
6695
6695
|
}, { deep: !0, immediate: !0 }), Fa(() => o(t.value));
|
|
6696
6696
|
const { getAxiosInstance: s } = Mn(), a = O(() => l.value?.status.loading), r = O(() => l.value?.status.payload);
|
|
@@ -6989,7 +6989,7 @@ class cr {
|
|
|
6989
6989
|
}
|
|
6990
6990
|
parse(t) {
|
|
6991
6991
|
const { domain: n, prop: o, not_null: l, tool: s } = this.field, a = t[o];
|
|
6992
|
-
return a == null ? l ? this.parseNull() : this.parseDefault(a) : me.DOMAINS.linkage.includes(n) ? this.parseLinkage(t) : me.DOMAINS.multiple.includes(n) ? this.parseMultiple(t) : ["boolean", "switch"].includes(s) ? this.parseBoolean(a) : ["number"].includes(s) ? this.
|
|
6992
|
+
return a == null ? l ? this.parseNull() : this.parseDefault(a) : me.DOMAINS.linkage.includes(n) ? this.parseLinkage(t) : me.DOMAINS.multiple.includes(n) ? this.parseMultiple(t) : ["boolean", "switch"].includes(s) ? this.parseBoolean(a) : ["number"].includes(s) ? this._parseNumber(a) : ["date"].includes(s) ? n === "DateTimeField" ? this.parseDateTime(a) : this.parseDate(a) : ["time"].includes(s) ? this.parseTime(a) : ["timerange"].includes(s) ? this.parseTimeRange(a) : ["daterange"].includes(s) ? this.parseDateRange(a) : ["dates"].includes(s) ? this.parseDates(a) : ["set"].includes(s) ? this.parseSet(a) : ["color"].includes(s) ? this.parseColor(a) : ["file"].includes(s) ? this.parseFile(a) : this.parseDefault(a);
|
|
6993
6993
|
}
|
|
6994
6994
|
parseNull() {
|
|
6995
6995
|
return {
|
|
@@ -7012,7 +7012,7 @@ class cr {
|
|
|
7012
7012
|
const s = [!0, "是", 1, "1", "TRUE", "true", "True", "yes", "YES", "Yes"], a = [!1, "否", 0, "0", "FALSE", "false", "False", "no", "NO", "No"];
|
|
7013
7013
|
return s.includes(t) ? (t = !0, n = "是") : a.includes(t) ? (t = !1, n = "否") : (o = Dn(t), o ? n = t ? "是" : "否" : l = "非布尔型"), { value: t, content: n, valid: o, message: l };
|
|
7014
7014
|
}
|
|
7015
|
-
|
|
7015
|
+
_parseNumber(t) {
|
|
7016
7016
|
if (t == null) return this.parseDefault(t);
|
|
7017
7017
|
const { domain: n, format: { precision: o } } = this.field;
|
|
7018
7018
|
let [l, s, a] = [t, !0, ""];
|
|
@@ -7021,6 +7021,7 @@ class cr {
|
|
|
7021
7021
|
else {
|
|
7022
7022
|
const r = Number(t);
|
|
7023
7023
|
if (s = no(r) && !isNaN(r), s) {
|
|
7024
|
+
t = n === "FloatField" ? parseFloat(t) : parseInt(t);
|
|
7024
7025
|
const i = n === "FloatField" ? o || 2 : 0;
|
|
7025
7026
|
l = r.toFixed(i);
|
|
7026
7027
|
} else
|
|
@@ -7314,7 +7315,7 @@ function Om(e) {
|
|
|
7314
7315
|
}
|
|
7315
7316
|
function Nt(e, t) {
|
|
7316
7317
|
const n = ie(e) ? e : x(e), o = x({}), l = O(() => n.value.root), s = O(() => o.value[l.value]?.children || []);
|
|
7317
|
-
return
|
|
7318
|
+
return X(n, () => {
|
|
7318
7319
|
const { results: a } = n.value;
|
|
7319
7320
|
o.value = {};
|
|
7320
7321
|
const r = {};
|
|
@@ -7337,7 +7338,7 @@ function Nt(e, t) {
|
|
|
7337
7338
|
}
|
|
7338
7339
|
function pr(e) {
|
|
7339
7340
|
const t = ie(e) ? e : x(e), n = x({}), o = x([]), l = O(() => o.value.length), s = O(() => t.value.total);
|
|
7340
|
-
return
|
|
7341
|
+
return X(t, () => {
|
|
7341
7342
|
const { results: a } = t.value;
|
|
7342
7343
|
o.value = a, n.value = Eo(a, "id");
|
|
7343
7344
|
}, { deep: !0, immediate: !0 }), { mapping: n, total: s, length: l, options: o };
|
|
@@ -7357,7 +7358,7 @@ function fr(e) {
|
|
|
7357
7358
|
const y = { ...p, ...u(g) }, E = Object.keys(y).map((T) => parseInt(T));
|
|
7358
7359
|
return n.value = { ...n.value, ...y }, E;
|
|
7359
7360
|
};
|
|
7360
|
-
|
|
7361
|
+
X(t, () => {
|
|
7361
7362
|
const { results: _ } = t.value;
|
|
7362
7363
|
r.value = 0, n.value = {}, i(_);
|
|
7363
7364
|
}, { deep: !0, immediate: !0 });
|
|
@@ -7464,7 +7465,7 @@ function _r(e = {}) {
|
|
|
7464
7465
|
}
|
|
7465
7466
|
function qo(e = {}) {
|
|
7466
7467
|
const t = ie(e) ? e : x(e), n = O(() => a(t.value.includes)), o = x(s(t.value));
|
|
7467
|
-
|
|
7468
|
+
X(t, () => {
|
|
7468
7469
|
o.value = s(t.value);
|
|
7469
7470
|
}, { deep: !0, immediate: !0 });
|
|
7470
7471
|
function l(i) {
|
|
@@ -7516,7 +7517,7 @@ function Ho(e, t, n) {
|
|
|
7516
7517
|
function i($) {
|
|
7517
7518
|
Object.assign(a.value, $);
|
|
7518
7519
|
}
|
|
7519
|
-
|
|
7520
|
+
X(() => [
|
|
7520
7521
|
e.value.db,
|
|
7521
7522
|
e.value.entity,
|
|
7522
7523
|
e.value.code,
|
|
@@ -7533,7 +7534,7 @@ function Ho(e, t, n) {
|
|
|
7533
7534
|
modes: o.value.$modes
|
|
7534
7535
|
};
|
|
7535
7536
|
}
|
|
7536
|
-
|
|
7537
|
+
X(() => [
|
|
7537
7538
|
e.value.includes,
|
|
7538
7539
|
e.value.excludes,
|
|
7539
7540
|
o.value.$modes
|
|
@@ -7550,7 +7551,7 @@ function Ho(e, t, n) {
|
|
|
7550
7551
|
payload: y,
|
|
7551
7552
|
loading: E
|
|
7552
7553
|
} = he(a, !0), { setEnable: T } = Ae(o);
|
|
7553
|
-
|
|
7554
|
+
X(() => e.value.disabled, ($) => T(!$));
|
|
7554
7555
|
function D() {
|
|
7555
7556
|
v.meta_view().then(($) => {
|
|
7556
7557
|
$.$$validator = e.value.validator, e.value.beforeInit && e.value.beforeInit($), o.value = $, e.value.disabled && T(!1), C();
|
|
@@ -7566,14 +7567,14 @@ function Ho(e, t, n) {
|
|
|
7566
7567
|
l.value = F, y && n($ || []);
|
|
7567
7568
|
}).catch((F) => s.value = F.message);
|
|
7568
7569
|
}
|
|
7569
|
-
|
|
7570
|
+
X(() => ({
|
|
7570
7571
|
db: a.value.db,
|
|
7571
7572
|
entity: a.value.entity,
|
|
7572
7573
|
code: a.value.code
|
|
7573
7574
|
}), ($, F) => {
|
|
7574
7575
|
const U = ve($, ["db", "entity"]), A = ve(F, ["db", "entity"]);
|
|
7575
7576
|
F?.entity != null && !Ie(U, A) && (u.value.includes = {}, u.value.excludes = {}), D();
|
|
7576
|
-
}, { deep: !0, immediate: !0 }),
|
|
7577
|
+
}, { deep: !0, immediate: !0 }), X(() => ({
|
|
7577
7578
|
conditions: p.value,
|
|
7578
7579
|
orders: t.value.orders,
|
|
7579
7580
|
page: t.value.page,
|
|
@@ -7840,7 +7841,7 @@ const br = (e = "/api/") => ({
|
|
|
7840
7841
|
let o = null;
|
|
7841
7842
|
return Vt(async () => {
|
|
7842
7843
|
n.value && (o = (await import("echarts")).init(n.value), o.setOption(t.options));
|
|
7843
|
-
}),
|
|
7844
|
+
}), X(() => t.options, (l) => {
|
|
7844
7845
|
o && l && Ve().then(() => o && o.setOption(l, !0, !0));
|
|
7845
7846
|
}, { deep: !0 }), Pa(() => {
|
|
7846
7847
|
o?.dispose();
|
|
@@ -9889,7 +9890,7 @@ const br = (e = "/api/") => ({
|
|
|
9889
9890
|
spinReverse: e.spinReverse,
|
|
9890
9891
|
widthAuto: e.widthAuto
|
|
9891
9892
|
}, null, 8, ["icon", "border", "style", "flip", "mask", "maskId", "listItem", "pull", "pulse", "rotation", "rotateBy", "swapOpacity", "size", "spin", "transform", "symbol", "title", "titleId", "inverse", "bounce", "shake", "beat", "fade", "beatFade", "spinPulse", "spinReverse", "widthAuto"])) : K("", !0),
|
|
9892
|
-
|
|
9893
|
+
Q(s.$slots, "default")
|
|
9893
9894
|
], 2));
|
|
9894
9895
|
}
|
|
9895
9896
|
}), Tm = /* @__PURE__ */ I({
|
|
@@ -9909,7 +9910,7 @@ const br = (e = "/api/") => ({
|
|
|
9909
9910
|
default: f(() => [
|
|
9910
9911
|
m(o, { span: 12 }, {
|
|
9911
9912
|
default: f(() => [
|
|
9912
|
-
|
|
9913
|
+
Q(t.$slots, "default")
|
|
9913
9914
|
]),
|
|
9914
9915
|
_: 3
|
|
9915
9916
|
}),
|
|
@@ -9921,7 +9922,7 @@ const br = (e = "/api/") => ({
|
|
|
9921
9922
|
default: f(() => [
|
|
9922
9923
|
m(l, { size: "large" }, {
|
|
9923
9924
|
default: f(() => [
|
|
9924
|
-
|
|
9925
|
+
Q(t.$slots, "tool"),
|
|
9925
9926
|
m(j, {
|
|
9926
9927
|
icon: "expand",
|
|
9927
9928
|
onClick: n[0] || (n[0] = (a) => e.control.expand()),
|
|
@@ -9958,7 +9959,7 @@ const br = (e = "/api/") => ({
|
|
|
9958
9959
|
const o = w("el-button"), l = w("el-space");
|
|
9959
9960
|
return b(), M("div", Am, [
|
|
9960
9961
|
te("div", null, [
|
|
9961
|
-
|
|
9962
|
+
Q(t.$slots, "tool")
|
|
9962
9963
|
]),
|
|
9963
9964
|
e.show.footerTool ? (b(), k(l, { key: 0 }, {
|
|
9964
9965
|
default: f(() => [
|
|
@@ -10095,7 +10096,7 @@ const br = (e = "/api/") => ({
|
|
|
10095
10096
|
show: r.value
|
|
10096
10097
|
}, {
|
|
10097
10098
|
tool: f(() => [
|
|
10098
|
-
|
|
10099
|
+
Q(V.$slots, "tool", {
|
|
10099
10100
|
raw: c.value.raw,
|
|
10100
10101
|
data: c.value.data,
|
|
10101
10102
|
controller: C,
|
|
@@ -10103,7 +10104,7 @@ const br = (e = "/api/") => ({
|
|
|
10103
10104
|
})
|
|
10104
10105
|
]),
|
|
10105
10106
|
default: f(() => [
|
|
10106
|
-
|
|
10107
|
+
Q(V.$slots, "header", {
|
|
10107
10108
|
data: c.value.data,
|
|
10108
10109
|
raw: c.value.raw,
|
|
10109
10110
|
controller: C,
|
|
@@ -10149,7 +10150,7 @@ const br = (e = "/api/") => ({
|
|
|
10149
10150
|
"element-loading-background": "rgba(255,255,255,0.6)",
|
|
10150
10151
|
style: { "min-height": "80px" }
|
|
10151
10152
|
}, [
|
|
10152
|
-
|
|
10153
|
+
Q(V.$slots, "default", {
|
|
10153
10154
|
raw: c.value.raw,
|
|
10154
10155
|
data: c.value.data,
|
|
10155
10156
|
controller: C,
|
|
@@ -10254,7 +10255,7 @@ const br = (e = "/api/") => ({
|
|
|
10254
10255
|
]),
|
|
10255
10256
|
m(g, null, {
|
|
10256
10257
|
default: f(() => [
|
|
10257
|
-
|
|
10258
|
+
Q(c.$slots, "tool", {
|
|
10258
10259
|
data: a.value.data,
|
|
10259
10260
|
control: u
|
|
10260
10261
|
}),
|
|
@@ -10268,7 +10269,7 @@ const br = (e = "/api/") => ({
|
|
|
10268
10269
|
})
|
|
10269
10270
|
])),
|
|
10270
10271
|
te("div", Fm, [
|
|
10271
|
-
|
|
10272
|
+
Q(c.$slots, "default", {
|
|
10272
10273
|
data: a.value.data,
|
|
10273
10274
|
control: u
|
|
10274
10275
|
})
|
|
@@ -10279,12 +10280,12 @@ const br = (e = "/api/") => ({
|
|
|
10279
10280
|
], 64);
|
|
10280
10281
|
};
|
|
10281
10282
|
}
|
|
10282
|
-
}),
|
|
10283
|
+
}), Z = {
|
|
10283
10284
|
info: (e) => rn({ message: e, type: "info", grouping: !0, appendTo: "body" }),
|
|
10284
10285
|
success: (e) => rn({ message: e, type: "success", grouping: !0 }),
|
|
10285
10286
|
warning: (e) => rn({ message: e, type: "warning", grouping: !0, appendTo: "body" }),
|
|
10286
10287
|
error: (e) => rn({ message: e, type: "error", grouping: !0 })
|
|
10287
|
-
}, kr = (e, t) =>
|
|
10288
|
+
}, kr = (e, t) => Z[t](e), Pm = {
|
|
10288
10289
|
info: (e, t = {}) => Je.alert(e, { ...t, type: "info" }),
|
|
10289
10290
|
success: (e, t) => Je.alert(e, t, { type: "success" }),
|
|
10290
10291
|
warning: (e, t) => Je.alert(e, t, { type: "warning" }),
|
|
@@ -10309,7 +10310,7 @@ const br = (e = "/api/") => ({
|
|
|
10309
10310
|
placeholder: "请输入内容...",
|
|
10310
10311
|
readOnly: l.disabled
|
|
10311
10312
|
}), d = (p, v) => {
|
|
10312
|
-
|
|
10313
|
+
Z.info(`${p}-${v}`);
|
|
10313
10314
|
}, _ = (p, v, y) => {
|
|
10314
10315
|
y(!0);
|
|
10315
10316
|
};
|
|
@@ -10500,7 +10501,7 @@ const br = (e = "/api/") => ({
|
|
|
10500
10501
|
shake: e.shake,
|
|
10501
10502
|
"beat-fade": e.beatFade
|
|
10502
10503
|
}, null, 8, ["icon", "style", "bounce", "shake", "beat-fade"])) : K("", !0),
|
|
10503
|
-
|
|
10504
|
+
Q(r.$slots, "default")
|
|
10504
10505
|
]),
|
|
10505
10506
|
_: 3
|
|
10506
10507
|
}, 8, ["type", "disabled", "size"])
|
|
@@ -10535,13 +10536,13 @@ const br = (e = "/api/") => ({
|
|
|
10535
10536
|
te("span", {
|
|
10536
10537
|
style: je(n.value)
|
|
10537
10538
|
}, [
|
|
10538
|
-
|
|
10539
|
+
Q(o.$slots, "left", {}, () => [
|
|
10539
10540
|
S(z(e.left), 1)
|
|
10540
10541
|
])
|
|
10541
10542
|
], 4)
|
|
10542
10543
|
]),
|
|
10543
10544
|
te("b", zm, [
|
|
10544
|
-
|
|
10545
|
+
Q(o.$slots, "right", {}, () => [
|
|
10545
10546
|
S(z(e.right), 1)
|
|
10546
10547
|
])
|
|
10547
10548
|
])
|
|
@@ -10561,7 +10562,7 @@ function Mm(e) {
|
|
|
10561
10562
|
const _ = n.value.map((g) => g.prop);
|
|
10562
10563
|
return { ...ve(t.value.item, _), ...ve(t.value.temp || {}, _) };
|
|
10563
10564
|
}, a = x(s());
|
|
10564
|
-
|
|
10565
|
+
X(t, () => a.value = s(), { immediate: !0, deep: !0 });
|
|
10565
10566
|
const r = O(() => {
|
|
10566
10567
|
const _ = n.value.map((g) => {
|
|
10567
10568
|
const p = g.prop, v = d(g, a.value, t.value.item);
|
|
@@ -10636,7 +10637,7 @@ const ce = ["update:modelValue", "confirm", "reload"], Hm = /* @__PURE__ */ I({
|
|
|
10636
10637
|
set: (r) => o("update:modelValue", r || null)
|
|
10637
10638
|
}), { copy: s } = _t();
|
|
10638
10639
|
function a() {
|
|
10639
|
-
s(l.value),
|
|
10640
|
+
s(l.value), Z.info("颜色代码已复制");
|
|
10640
10641
|
}
|
|
10641
10642
|
return (r, i) => {
|
|
10642
10643
|
const u = w("el-color-picker"), c = w("el-col"), d = w("el-row");
|
|
@@ -11035,7 +11036,7 @@ function sn(e, t, n, o) {
|
|
|
11035
11036
|
root: l.root,
|
|
11036
11037
|
page: 1,
|
|
11037
11038
|
size: 0
|
|
11038
|
-
}, [s]).then((d) => c.value = d) : (
|
|
11039
|
+
}, [s]).then((d) => c.value = d) : (Z.error("该字段未配置元数据"), c.value = new nt());
|
|
11039
11040
|
}), { model: c, loading: u, param: a, manager: i, condition: s };
|
|
11040
11041
|
}
|
|
11041
11042
|
function Da(e = {}, t) {
|
|
@@ -11503,7 +11504,7 @@ const o_ = /* @__PURE__ */ I({
|
|
|
11503
11504
|
});
|
|
11504
11505
|
function p_() {
|
|
11505
11506
|
const e = Bt(), t = O(() => e.permissions), { manager: n } = he({ entity: "valar.Menu" }), o = x(new nt()), { options: l, mapping: s } = Nt(o);
|
|
11506
|
-
return
|
|
11507
|
+
return X(
|
|
11507
11508
|
t,
|
|
11508
11509
|
() => {
|
|
11509
11510
|
const a = { path__in: t.value };
|
|
@@ -11577,7 +11578,7 @@ const f_ = { class: "justified full" }, m_ = {
|
|
|
11577
11578
|
emits: ["click"],
|
|
11578
11579
|
setup(e, { emit: t }) {
|
|
11579
11580
|
const n = x(), o = ot(), l = Ba(), s = { label: "name", value: "path" }, a = O(() => l.path), r = x(!1), i = x(!1);
|
|
11580
|
-
|
|
11581
|
+
X(a, () => {
|
|
11581
11582
|
Ve().then(() => n.value?.setCurrentKey(a.value));
|
|
11582
11583
|
}, { immediate: !0 });
|
|
11583
11584
|
function u(d, _, g, p) {
|
|
@@ -11714,13 +11715,13 @@ function Oe() {
|
|
|
11714
11715
|
function Wo(e) {
|
|
11715
11716
|
if (e === "admin") return !0;
|
|
11716
11717
|
const t = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
11717
|
-
return t ||
|
|
11718
|
+
return t || Z.error("邮箱格式不正确"), t;
|
|
11718
11719
|
}
|
|
11719
11720
|
function $n(e, t) {
|
|
11720
11721
|
if (t && e !== t)
|
|
11721
|
-
return
|
|
11722
|
+
return Z.error("密码不一致"), !1;
|
|
11722
11723
|
const n = e.length >= 8;
|
|
11723
|
-
return n ||
|
|
11724
|
+
return n || Z.error("密码长度不小于8位"), n;
|
|
11724
11725
|
}
|
|
11725
11726
|
const h_ = /* @__PURE__ */ I({
|
|
11726
11727
|
__name: "RetrieveDialog",
|
|
@@ -12407,7 +12408,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12407
12408
|
function s(r, i) {
|
|
12408
12409
|
const { old_password: u, new_password: c } = o.value?.getData() || {};
|
|
12409
12410
|
u && c ? l.changePassword(u, c).then((d) => {
|
|
12410
|
-
d ? (
|
|
12411
|
+
d ? (Z.success("密码修改成功"), i()) : i(!1);
|
|
12411
12412
|
}) : i(!1);
|
|
12412
12413
|
}
|
|
12413
12414
|
return t({ open: () => n.value?.open() }), (r, i) => (b(), k(h(le), {
|
|
@@ -12441,7 +12442,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12441
12442
|
ref_key: "outer",
|
|
12442
12443
|
ref: t
|
|
12443
12444
|
}, [
|
|
12444
|
-
h(n) > e.width ?
|
|
12445
|
+
h(n) > e.width ? Q(o.$slots, "default", {
|
|
12445
12446
|
key: 0,
|
|
12446
12447
|
ref: "slot"
|
|
12447
12448
|
}) : (b(), k(s, {
|
|
@@ -12454,7 +12455,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12454
12455
|
teleported: ""
|
|
12455
12456
|
}, {
|
|
12456
12457
|
content: f(() => [
|
|
12457
|
-
|
|
12458
|
+
Q(o.$slots, "default")
|
|
12458
12459
|
]),
|
|
12459
12460
|
default: f(() => [
|
|
12460
12461
|
m(j, {
|
|
@@ -12483,13 +12484,13 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12483
12484
|
};
|
|
12484
12485
|
}), g = O(() => t.ticker?.percentage ? `${t.ticker?.percentage}%` : "加载中...");
|
|
12485
12486
|
let p = null;
|
|
12486
|
-
return
|
|
12487
|
+
return X(() => [t.loading, n.value], () => {
|
|
12487
12488
|
t.loading && n.value ? (p = Xu.service({
|
|
12488
12489
|
target: n.value,
|
|
12489
12490
|
background: "rgba(255,255,255,0.6)",
|
|
12490
12491
|
customClass: "m-dialog-loading"
|
|
12491
12492
|
}), p?.setText(g?.value)) : p?.close();
|
|
12492
|
-
}, { immediate: !0, deep: !0 }),
|
|
12493
|
+
}, { immediate: !0, deep: !0 }), X(() => t.ticker, () => p?.setText(g.value)), (v, y) => {
|
|
12493
12494
|
const E = w("el-col"), T = w("el-space"), D = w("el-row");
|
|
12494
12495
|
return b(), M("div", {
|
|
12495
12496
|
ref_key: "wrap",
|
|
@@ -12510,7 +12511,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12510
12511
|
span: _.value.left
|
|
12511
12512
|
}, {
|
|
12512
12513
|
default: f(() => [
|
|
12513
|
-
|
|
12514
|
+
Q(v.$slots, "header", { width: h(i) })
|
|
12514
12515
|
]),
|
|
12515
12516
|
_: 3
|
|
12516
12517
|
}, 8, ["span"]),
|
|
@@ -12525,7 +12526,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12525
12526
|
default: f(() => [
|
|
12526
12527
|
m(T, { size: "small" }, {
|
|
12527
12528
|
default: f(() => [
|
|
12528
|
-
|
|
12529
|
+
Q(v.$slots, "header-tool", { width: h(u) })
|
|
12529
12530
|
]),
|
|
12530
12531
|
_: 3
|
|
12531
12532
|
})
|
|
@@ -12542,7 +12543,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12542
12543
|
class: "m-wrap-body",
|
|
12543
12544
|
style: je([{ overflow: "auto", "scrollbar-width": "none" }, { height: e.height || "auto" }])
|
|
12544
12545
|
}, [
|
|
12545
|
-
|
|
12546
|
+
Q(v.$slots, "default", { width: h(r) })
|
|
12546
12547
|
], 4),
|
|
12547
12548
|
m(D, {
|
|
12548
12549
|
class: "m-wrap-footer",
|
|
@@ -12555,7 +12556,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12555
12556
|
span: 12
|
|
12556
12557
|
}, {
|
|
12557
12558
|
default: f(() => [
|
|
12558
|
-
|
|
12559
|
+
Q(v.$slots, "footer", { width: h(c) })
|
|
12559
12560
|
]),
|
|
12560
12561
|
_: 3
|
|
12561
12562
|
}, 512),
|
|
@@ -12566,7 +12567,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12566
12567
|
class: "right"
|
|
12567
12568
|
}, {
|
|
12568
12569
|
default: f(() => [
|
|
12569
|
-
|
|
12570
|
+
Q(v.$slots, "footer-tool", { width: h(d) })
|
|
12570
12571
|
]),
|
|
12571
12572
|
_: 3
|
|
12572
12573
|
}, 512)
|
|
@@ -12614,12 +12615,12 @@ function V_(e, t) {
|
|
|
12614
12615
|
}
|
|
12615
12616
|
function T_(e, t) {
|
|
12616
12617
|
const { collector: n, collection: o } = A_(O(() => e.results.map((s) => s.id))), l = O(() => e.results.filter((s) => o.value.includes(s.id)));
|
|
12617
|
-
return
|
|
12618
|
+
return X(o, () => {
|
|
12618
12619
|
t.value?.clearSelection(), l.value.forEach((s) => t.value?.toggleRowSelection(s, !0)), Ve().then(() => requestAnimationFrame(() => t.value?.doLayout()));
|
|
12619
12620
|
}, { deep: !0 }), { selection: l, collector: n, collection: o };
|
|
12620
12621
|
}
|
|
12621
12622
|
function A_(e) {
|
|
12622
|
-
|
|
12623
|
+
X(e, r, { deep: !0 });
|
|
12623
12624
|
const t = x([]);
|
|
12624
12625
|
function n(u) {
|
|
12625
12626
|
const c = qu(t.value, e.value), d = pn(e.value, u), _ = lo(c, d);
|
|
@@ -12765,7 +12766,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
12765
12766
|
const o = n, l = e, s = x(), a = x(), r = O(() => l.selection.map((D) => D.id));
|
|
12766
12767
|
function i(D, C) {
|
|
12767
12768
|
const V = a.value?.getData();
|
|
12768
|
-
V == null ? (
|
|
12769
|
+
V == null ? (Z.warning("请注意非空值"), C(!1)) : V.length ? (l.rest.save_many(V), C()) : (Z.warning("数据无变化,是否关闭?"), C(!1));
|
|
12769
12770
|
}
|
|
12770
12771
|
function u(D, C) {
|
|
12771
12772
|
const { keys: V, insert: P } = D;
|
|
@@ -12804,7 +12805,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
12804
12805
|
}
|
|
12805
12806
|
function p() {
|
|
12806
12807
|
const D = l.selection.map((C) => Rn(C, ["id", "sort"]));
|
|
12807
|
-
l.rest.save_many(D),
|
|
12808
|
+
l.rest.save_many(D), Z.info(`已复制 ${D.length} 条数据`);
|
|
12808
12809
|
}
|
|
12809
12810
|
const { toAoa: v } = Ae(l.view), { copy: y } = _t();
|
|
12810
12811
|
function E() {
|
|
@@ -12814,14 +12815,14 @@ const Or = /* @__PURE__ */ I({
|
|
|
12814
12815
|
U != null && V.push([$, U]);
|
|
12815
12816
|
});
|
|
12816
12817
|
const P = JSON.stringify(Object.fromEntries(V));
|
|
12817
|
-
y(P).then(() =>
|
|
12818
|
+
y(P).then(() => Z.success("所选数据已存入剪切板"));
|
|
12818
12819
|
}
|
|
12819
12820
|
return t({ controller: {
|
|
12820
12821
|
insert: (D) => _(!0, D),
|
|
12821
|
-
edit: () => l.selection.length ? _(!1) :
|
|
12822
|
-
remove: () => l.selection.length ? g() :
|
|
12823
|
-
clone: () => l.selection.length ? p() :
|
|
12824
|
-
paste: () => l.selection.length ? E() :
|
|
12822
|
+
edit: () => l.selection.length ? _(!1) : Z.warning("请选择数据"),
|
|
12823
|
+
remove: () => l.selection.length ? g() : Z.warning("请选择数据"),
|
|
12824
|
+
clone: () => l.selection.length ? p() : Z.warning("请选择数据"),
|
|
12825
|
+
paste: () => l.selection.length ? E() : Z.warning("请选择数据")
|
|
12825
12826
|
} }), (D, C) => {
|
|
12826
12827
|
const V = w("el-text"), P = w("el-tag"), $ = w("el-space");
|
|
12827
12828
|
return b(), M(H, null, [
|
|
@@ -13329,7 +13330,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13329
13330
|
u && (n.rest.lookup(i.prop, u), o.value?.close());
|
|
13330
13331
|
}
|
|
13331
13332
|
function a(i) {
|
|
13332
|
-
n.rest.lookup(i.prop),
|
|
13333
|
+
n.rest.lookup(i.prop), Z.info(`已清空${i.name}的检索条件`), o.value?.close();
|
|
13333
13334
|
}
|
|
13334
13335
|
function r(i, u) {
|
|
13335
13336
|
n.view.allow_search && u.allow_search && o.value?.open(i, { title: `检索:${u.name}`, data: u });
|
|
@@ -13524,7 +13525,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13524
13525
|
});
|
|
13525
13526
|
}), l = O(() => t.frame[n.value] || []), { copy: s } = _t();
|
|
13526
13527
|
function a(r) {
|
|
13527
|
-
s(r).then((i) =>
|
|
13528
|
+
s(r).then((i) => Z.success(`已复制"${r}"`));
|
|
13528
13529
|
}
|
|
13529
13530
|
return (r, i) => {
|
|
13530
13531
|
const u = w("el-segmented"), c = w("el-button"), d = w("el-table-column"), _ = w("el-table"), g = w("el-card");
|
|
@@ -13677,7 +13678,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13677
13678
|
emits: ["restore", "remove", "edit"],
|
|
13678
13679
|
setup(e, { emit: t }) {
|
|
13679
13680
|
const n = t, o = e;
|
|
13680
|
-
|
|
13681
|
+
X(() => o.rows.length, () => {
|
|
13681
13682
|
u.value = !1, i.value = !1;
|
|
13682
13683
|
});
|
|
13683
13684
|
function l(g) {
|
|
@@ -13820,7 +13821,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13820
13821
|
header: f(() => [
|
|
13821
13822
|
m(P, null, {
|
|
13822
13823
|
content: f(() => [
|
|
13823
|
-
S(z(A.prop), 1)
|
|
13824
|
+
S(z(A.prop) + " // " + z(A.tool), 1)
|
|
13824
13825
|
]),
|
|
13825
13826
|
default: f(() => [
|
|
13826
13827
|
m(C, {
|
|
@@ -13930,7 +13931,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13930
13931
|
});
|
|
13931
13932
|
};
|
|
13932
13933
|
}
|
|
13933
|
-
}), Y_ = /* @__PURE__ */ lt(K_, [["__scopeId", "data-v-
|
|
13934
|
+
}), Y_ = /* @__PURE__ */ lt(K_, [["__scopeId", "data-v-3cdd62a6"]]);
|
|
13934
13935
|
function W_(e) {
|
|
13935
13936
|
const t = ie(e) ? e : x(e), n = x({
|
|
13936
13937
|
hasId: !1,
|
|
@@ -13938,7 +13939,7 @@ function W_(e) {
|
|
|
13938
13939
|
isUpdate: !1,
|
|
13939
13940
|
useKey: !1
|
|
13940
13941
|
}), { post: o, loading: l } = at(), s = x({});
|
|
13941
|
-
|
|
13942
|
+
X(t, () => {
|
|
13942
13943
|
const y = Object.values(t.value.view.$fields).filter((E) => {
|
|
13943
13944
|
const { allow_upload: T, domain: D, refer: { entity: C }, tool: V } = E;
|
|
13944
13945
|
if (!T) return !1;
|
|
@@ -13952,13 +13953,13 @@ function W_(e) {
|
|
|
13952
13953
|
const { prop: C, allow_update: V, allow_upload: P } = D, $ = !["id", "sort"].includes(C), F = n.value.isUpdate ? V : P;
|
|
13953
13954
|
return $ && F;
|
|
13954
13955
|
}).forEach((D) => {
|
|
13955
|
-
let { domain: C, prop: V, label: P, not_null: $, format: F } = D;
|
|
13956
|
-
if (me.DOMAINS.referred) {
|
|
13957
|
-
const
|
|
13958
|
-
T.push(a({ prop: V, label: P, domain: C, not_null: $, multiple:
|
|
13956
|
+
let { domain: C, prop: V, label: P, not_null: $, format: F, tool: U } = D;
|
|
13957
|
+
if (me.DOMAINS.referred.includes(C)) {
|
|
13958
|
+
const A = me.DOMAINS.multiple.includes(C), R = n.value.useKey ? "value" : "label", B = (s.value[V] || []).map((J) => [J[R], J[R]]), q = Object.fromEntries(B);
|
|
13959
|
+
T.push(a({ prop: V, label: P, domain: C, not_null: $, multiple: A, set: q }));
|
|
13959
13960
|
} else {
|
|
13960
|
-
const { set:
|
|
13961
|
-
|
|
13961
|
+
const { set: A, multiple: R } = F, B = a({ prop: V, label: P, domain: C, not_null: $, multiple: R, set: A });
|
|
13962
|
+
["date"].includes(U) && (B.tool = U), T.push(B);
|
|
13962
13963
|
}
|
|
13963
13964
|
}), T;
|
|
13964
13965
|
}), i = O(() => {
|
|
@@ -14009,7 +14010,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14009
14010
|
const t = e, { write: n } = Ut(), { toText: o } = ht(), { copy: l } = _t(), s = O(() => t.fields.map((i) => i.label));
|
|
14010
14011
|
function a() {
|
|
14011
14012
|
const i = o([s.value]);
|
|
14012
|
-
l(i).then(() =>
|
|
14013
|
+
l(i).then(() => Z.info("表头已复制,请即使将其粘贴到Excel文件中。"));
|
|
14013
14014
|
}
|
|
14014
14015
|
function r() {
|
|
14015
14016
|
const i = { data: [s.value] };
|
|
@@ -14108,7 +14109,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14108
14109
|
emits: ["confirm", "pending"],
|
|
14109
14110
|
setup(e, { emit: t }) {
|
|
14110
14111
|
const n = t, { fromText: o } = ht(), { pending: l, openPaster: s, getClipboardData: a } = yr(), r = () => s().then((i) => n("confirm", o(i)));
|
|
14111
|
-
return
|
|
14112
|
+
return X(l, () => n("pending", l.value)), (i, u) => {
|
|
14112
14113
|
const c = w("el-button"), d = w("el-divider"), _ = w("el-space");
|
|
14113
14114
|
return b(), k(_, null, {
|
|
14114
14115
|
default: f(() => [
|
|
@@ -14281,7 +14282,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14281
14282
|
}
|
|
14282
14283
|
function P(A, R) {
|
|
14283
14284
|
const B = A.$index, q = r.value?.getData();
|
|
14284
|
-
q ? (q.length && E(q[0], B), R()) : (
|
|
14285
|
+
q ? (q.length && E(q[0], B), R()) : (Z.warning("注意验证信息"), R(!1));
|
|
14285
14286
|
}
|
|
14286
14287
|
function $(A) {
|
|
14287
14288
|
A.payload = !0;
|
|
@@ -14296,26 +14297,26 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14296
14297
|
n("confirm", p.value);
|
|
14297
14298
|
else {
|
|
14298
14299
|
const R = p.value.map((B) => (Object.keys(v.value).forEach((q) => {
|
|
14299
|
-
const
|
|
14300
|
+
const J = v.value[q], de = B[q];
|
|
14300
14301
|
if (de instanceof Array) {
|
|
14301
14302
|
const ne = [];
|
|
14302
14303
|
de.forEach((G) => {
|
|
14303
|
-
const ae =
|
|
14304
|
+
const ae = J.find((oe) => oe.label === G);
|
|
14304
14305
|
ae && ne.push(ae.value);
|
|
14305
14306
|
}), B[q] = ne;
|
|
14306
14307
|
} else {
|
|
14307
|
-
const ne =
|
|
14308
|
+
const ne = J.find((G) => G.label === de) || {};
|
|
14308
14309
|
B[q] = ne.value;
|
|
14309
14310
|
}
|
|
14310
14311
|
}), B));
|
|
14311
14312
|
n("confirm", R);
|
|
14312
14313
|
}
|
|
14313
|
-
}) :
|
|
14314
|
+
}) : Z.warning("无有效数据");
|
|
14314
14315
|
}
|
|
14315
14316
|
return (A, R) => {
|
|
14316
|
-
const B = w("el-space"), q = w("el-col"),
|
|
14317
|
+
const B = w("el-space"), q = w("el-col"), J = w("el-row"), de = At("loading");
|
|
14317
14318
|
return b(), M(H, null, [
|
|
14318
|
-
Ye((b(), k(
|
|
14319
|
+
Ye((b(), k(J, { align: "middle" }, {
|
|
14319
14320
|
default: f(() => [
|
|
14320
14321
|
m(q, { class: "justified" }, {
|
|
14321
14322
|
default: f(() => [
|
|
@@ -14749,7 +14750,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14749
14750
|
const t = e;
|
|
14750
14751
|
let n = x(0);
|
|
14751
14752
|
const o = x();
|
|
14752
|
-
|
|
14753
|
+
X(o, () => n.value = o.value?.offsetWidth + 30);
|
|
14753
14754
|
const l = O(() => {
|
|
14754
14755
|
const a = t.row;
|
|
14755
14756
|
return t.buttons.map((r) => {
|
|
@@ -14869,7 +14870,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14869
14870
|
const t = e;
|
|
14870
14871
|
let n = x(0);
|
|
14871
14872
|
const o = x();
|
|
14872
|
-
|
|
14873
|
+
X(o, () => n.value = o.value?.offsetWidth + 30);
|
|
14873
14874
|
function l(s) {
|
|
14874
14875
|
const a = s.id;
|
|
14875
14876
|
return () => t.setCollection([a]);
|
|
@@ -15275,7 +15276,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15275
15276
|
selection: g,
|
|
15276
15277
|
collector: p
|
|
15277
15278
|
} = T_(l, s), { createSortable: v } = V_(l, s);
|
|
15278
|
-
|
|
15279
|
+
X(() => [l.results, l.view], () => {
|
|
15279
15280
|
const F = l.view.allow_edit_on_sort && Ie(l.search.orders, { sort: -1 }) && !!l.results.length;
|
|
15280
15281
|
v(l.results, F);
|
|
15281
15282
|
}, { deep: !0, immediate: !0 });
|
|
@@ -15295,8 +15296,8 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15295
15296
|
}
|
|
15296
15297
|
function $(F, U, A, R) {
|
|
15297
15298
|
R.preventDefault(), R.stopPropagation();
|
|
15298
|
-
const { type: B, property: q } = U,
|
|
15299
|
-
if (p.clear(), p.set([
|
|
15299
|
+
const { type: B, property: q } = U, J = F.id;
|
|
15300
|
+
if (p.clear(), p.set([J]), B === "index")
|
|
15300
15301
|
i.value?.open(R);
|
|
15301
15302
|
else if (q) {
|
|
15302
15303
|
if (Object.keys(l.core).includes(q)) return;
|
|
@@ -15318,7 +15319,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15318
15319
|
ticker: e.ticker
|
|
15319
15320
|
}, {
|
|
15320
15321
|
header: f(({ width: q }) => [
|
|
15321
|
-
|
|
15322
|
+
Q(F.$slots, "header", { width: q }, () => [
|
|
15322
15323
|
m(A, { tag: "b" }, {
|
|
15323
15324
|
default: f(() => [
|
|
15324
15325
|
S(z(e.title || e.view.$meta_name), 1)
|
|
@@ -15334,21 +15335,21 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15334
15335
|
}, F.$props, {
|
|
15335
15336
|
selection: h(g),
|
|
15336
15337
|
collector: h(p),
|
|
15337
|
-
onUpload: U[0] || (U[0] = (
|
|
15338
|
+
onUpload: U[0] || (U[0] = (J) => d.value?.open())
|
|
15338
15339
|
}), null, 16, ["selection", "collector"]),
|
|
15339
15340
|
e.total ? (b(), k(h(ig), {
|
|
15340
15341
|
key: 0,
|
|
15341
15342
|
size: e.search.size,
|
|
15342
|
-
"onUpdate:size": U[1] || (U[1] = (
|
|
15343
|
+
"onUpdate:size": U[1] || (U[1] = (J) => e.search.size = J),
|
|
15343
15344
|
total: e.total
|
|
15344
15345
|
}, null, 8, ["size", "total"])) : K("", !0)
|
|
15345
15346
|
]),
|
|
15346
15347
|
footer: f(({ width: q }) => [
|
|
15347
15348
|
m(h(eg), {
|
|
15348
15349
|
size: e.search.size,
|
|
15349
|
-
"onUpdate:size": U[2] || (U[2] = (
|
|
15350
|
+
"onUpdate:size": U[2] || (U[2] = (J) => e.search.size = J),
|
|
15350
15351
|
page: e.search.page,
|
|
15351
|
-
"onUpdate:page": U[3] || (U[3] = (
|
|
15352
|
+
"onUpdate:page": U[3] || (U[3] = (J) => e.search.page = J),
|
|
15352
15353
|
total: e.total,
|
|
15353
15354
|
width: q
|
|
15354
15355
|
}, null, 8, ["size", "page", "total", "width"])
|
|
@@ -15412,8 +15413,8 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15412
15413
|
frame: V.value,
|
|
15413
15414
|
collection: h(_),
|
|
15414
15415
|
onField: U[5] || (U[5] = (q) => o("field", e.view.$fields[q.prop])),
|
|
15415
|
-
onLookup: U[6] || (U[6] = (q,
|
|
15416
|
-
onCell: U[7] || (U[7] = (q,
|
|
15416
|
+
onLookup: U[6] || (U[6] = (q, J) => c.value?.open(q, J)),
|
|
15417
|
+
onCell: U[7] || (U[7] = (q, J) => u.value?.open(q, J))
|
|
15417
15418
|
}), null, 16, ["collector", "frame", "collection"]),
|
|
15418
15419
|
e.columns && e.columns.length ? (b(), k(cg, {
|
|
15419
15420
|
key: 0,
|
|
@@ -15612,9 +15613,9 @@ function wg(e, t) {
|
|
|
15612
15613
|
const n = x([]), o = O(() => n.value.map((u) => e.value.mapping[u])), l = O(
|
|
15613
15614
|
() => Object.values(e.value.mapping).filter((u) => !u.children.length).map((u) => u.id)
|
|
15614
15615
|
);
|
|
15615
|
-
|
|
15616
|
+
X(l, () => {
|
|
15616
15617
|
n.value = n.value.filter((u) => l.value.includes(u));
|
|
15617
|
-
}, { deep: !0 }),
|
|
15618
|
+
}, { deep: !0 }), X(n, () => {
|
|
15618
15619
|
Ve().then(() => {
|
|
15619
15620
|
Ve().then(() => {
|
|
15620
15621
|
l.value.forEach((u) => {
|
|
@@ -15643,9 +15644,9 @@ function kg(e, t) {
|
|
|
15643
15644
|
const n = x([]), o = O(
|
|
15644
15645
|
() => Object.values(e.value.mapping).filter((C) => !C.isLeaf).map((C) => C.id)
|
|
15645
15646
|
);
|
|
15646
|
-
|
|
15647
|
+
X(o, () => {
|
|
15647
15648
|
e.value.expandAll || (n.value = n.value.filter((C) => o.value.includes(C)));
|
|
15648
|
-
}, { deep: !0 }),
|
|
15649
|
+
}, { deep: !0 }), X(n, () => {
|
|
15649
15650
|
Ve().then(() => {
|
|
15650
15651
|
o.value.forEach((C) => {
|
|
15651
15652
|
const V = t.value?.getNode(C);
|
|
@@ -15724,8 +15725,8 @@ function kg(e, t) {
|
|
|
15724
15725
|
};
|
|
15725
15726
|
e.value.rest.save_many([B]);
|
|
15726
15727
|
} else {
|
|
15727
|
-
const B = Ku(e.value.mapping, (G) => G.sort), q = V.parent.childNodes.map((G) => G.data),
|
|
15728
|
-
const oe = G.id, Ne =
|
|
15728
|
+
const B = Ku(e.value.mapping, (G) => G.sort), q = V.parent.childNodes.map((G) => G.data), J = q.map((G) => G.sort).sort((G, ae) => ae - G), de = U.pid, ne = q.map((G, ae) => {
|
|
15729
|
+
const oe = G.id, Ne = J[ae], pe = {
|
|
15729
15730
|
id: oe,
|
|
15730
15731
|
sort: Ne
|
|
15731
15732
|
};
|
|
@@ -15863,7 +15864,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
15863
15864
|
}
|
|
15864
15865
|
function a(r, i) {
|
|
15865
15866
|
const u = l.value?.getData();
|
|
15866
|
-
u?.length ? (n.rest.save_many(u), i()) : (
|
|
15867
|
+
u?.length ? (n.rest.save_many(u), i()) : (Z.info("内容为空"), i(!1));
|
|
15867
15868
|
}
|
|
15868
15869
|
return t({ open: s }), (r, i) => {
|
|
15869
15870
|
const u = w("el-text"), c = w("el-tag"), d = w("el-space");
|
|
@@ -16148,7 +16149,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16148
16149
|
const { $fields: P, $modes: $ } = l.view, F = c.value, U = P[F], A = l.view.$modes[F];
|
|
16149
16150
|
return U || (A ? i(A) : new me());
|
|
16150
16151
|
}), _ = x("");
|
|
16151
|
-
|
|
16152
|
+
X(_, (P) => s.value.filter(P));
|
|
16152
16153
|
const {
|
|
16153
16154
|
collection: g,
|
|
16154
16155
|
selection: p,
|
|
@@ -16193,7 +16194,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16193
16194
|
onMeta: $[0] || ($[0] = (q) => o("meta", q))
|
|
16194
16195
|
}, null, 8, ["collection", "expansion", "collector", "disclosure"]),
|
|
16195
16196
|
m(F, { direction: "vertical" }),
|
|
16196
|
-
|
|
16197
|
+
Q(P.$slots, "header", { width: B }, () => [
|
|
16197
16198
|
m(U, { tag: "b" }, {
|
|
16198
16199
|
default: f(() => [
|
|
16199
16200
|
S(z(e.view.$meta_name), 1)
|
|
@@ -16249,16 +16250,16 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16249
16250
|
data: B,
|
|
16250
16251
|
field: d.value
|
|
16251
16252
|
}, null, 8, ["node", "data", "field"]),
|
|
16252
|
-
|
|
16253
|
+
Q(P.$slots, "prefix", {
|
|
16253
16254
|
isLeaf: B.isLeaf,
|
|
16254
16255
|
node: q,
|
|
16255
16256
|
data: B
|
|
16256
16257
|
}, () => [
|
|
16257
|
-
B.isLeaf ?
|
|
16258
|
+
B.isLeaf ? Q(P.$slots, "prefix-leaf", {
|
|
16258
16259
|
key: 0,
|
|
16259
16260
|
node: q,
|
|
16260
16261
|
data: B
|
|
16261
|
-
}) :
|
|
16262
|
+
}) : Q(P.$slots, "prefix-branch", {
|
|
16262
16263
|
key: 1,
|
|
16263
16264
|
node: q,
|
|
16264
16265
|
data: B
|
|
@@ -16269,16 +16270,16 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16269
16270
|
}, 1024),
|
|
16270
16271
|
m(A, null, {
|
|
16271
16272
|
default: f(() => [
|
|
16272
|
-
|
|
16273
|
+
Q(P.$slots, "suffix", {
|
|
16273
16274
|
isLeaf: B.isLeaf,
|
|
16274
16275
|
node: q,
|
|
16275
16276
|
data: B
|
|
16276
16277
|
}, () => [
|
|
16277
|
-
B.isLeaf ?
|
|
16278
|
+
B.isLeaf ? Q(P.$slots, "suffix-leaf", {
|
|
16278
16279
|
key: 0,
|
|
16279
16280
|
node: q,
|
|
16280
16281
|
data: B
|
|
16281
|
-
}) :
|
|
16282
|
+
}) : Q(P.$slots, "suffix-branch", {
|
|
16282
16283
|
key: 1,
|
|
16283
16284
|
node: q,
|
|
16284
16285
|
data: B
|
|
@@ -16329,12 +16330,12 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16329
16330
|
});
|
|
16330
16331
|
}).catch((g) => {
|
|
16331
16332
|
console.log(g);
|
|
16332
|
-
}) :
|
|
16333
|
+
}) : Z.warning("获取用户信息失败");
|
|
16333
16334
|
};
|
|
16334
16335
|
function c(d, _) {
|
|
16335
16336
|
const { account_id: g } = d, v = (a.value?.getData() || [])[0];
|
|
16336
16337
|
qe(v) || (v.account_id = g, i.save_one(v).then((y) => {
|
|
16337
|
-
o("reload"),
|
|
16338
|
+
o("reload"), Z.success("用户信息修改成功"), _();
|
|
16338
16339
|
})), _(!1);
|
|
16339
16340
|
}
|
|
16340
16341
|
return t({ open: u }), (d, _) => (b(), k(h(le), {
|
|
@@ -16624,7 +16625,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16624
16625
|
}),
|
|
16625
16626
|
m(c, null, {
|
|
16626
16627
|
default: f(() => [
|
|
16627
|
-
|
|
16628
|
+
Q(a.$slots, "tool", {}, void 0, !0),
|
|
16628
16629
|
m(Dg)
|
|
16629
16630
|
]),
|
|
16630
16631
|
_: 3
|
|
@@ -16642,7 +16643,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16642
16643
|
m(Rg, { mapping: h(l) }, null, 8, ["mapping"]),
|
|
16643
16644
|
m(c, null, {
|
|
16644
16645
|
default: f(() => [
|
|
16645
|
-
|
|
16646
|
+
Q(a.$slots, "tag", {}, void 0, !0)
|
|
16646
16647
|
]),
|
|
16647
16648
|
_: 3
|
|
16648
16649
|
})
|
|
@@ -16664,7 +16665,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16664
16665
|
height: `${h(t).footer}px`
|
|
16665
16666
|
}, {
|
|
16666
16667
|
default: f(() => [
|
|
16667
|
-
|
|
16668
|
+
Q(a.$slots, "footer", {}, () => [
|
|
16668
16669
|
m(u, { type: "info" }, {
|
|
16669
16670
|
default: f(() => [
|
|
16670
16671
|
m(c, null, {
|
|
@@ -16719,10 +16720,10 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16719
16720
|
const s = w("el-button");
|
|
16720
16721
|
return h(n) === "CONNECTED" ? (b(), k(Ng, { key: 0 }, {
|
|
16721
16722
|
tool: f(() => [
|
|
16722
|
-
|
|
16723
|
+
Q(o.$slots, "tool")
|
|
16723
16724
|
]),
|
|
16724
16725
|
footer: f(() => [
|
|
16725
|
-
|
|
16726
|
+
Q(o.$slots, "footer")
|
|
16726
16727
|
]),
|
|
16727
16728
|
_: 3
|
|
16728
16729
|
})) : h(n) === "CONNECTING" ? (b(), k(j, {
|
|
@@ -16736,7 +16737,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16736
16737
|
S("CONNECTING... ", -1)
|
|
16737
16738
|
])]),
|
|
16738
16739
|
_: 1
|
|
16739
|
-
})) :
|
|
16740
|
+
})) : Q(o.$slots, "connect", { key: 2 }, () => [
|
|
16740
16741
|
m(s, {
|
|
16741
16742
|
size: "small",
|
|
16742
16743
|
type: "primary",
|
|
@@ -16792,7 +16793,7 @@ const Rr = /* @__PURE__ */ I({
|
|
|
16792
16793
|
const C = `/valar/${n.field.$db}/${n.field.$entity}/remove_file`;
|
|
16793
16794
|
De.warning(`是否删除文件:${l.value}`).then(() => _(C, i.value)).then(() => {
|
|
16794
16795
|
l.value = null, o("reload");
|
|
16795
|
-
}).catch(() =>
|
|
16796
|
+
}).catch(() => Z.info("取消删除文件"));
|
|
16796
16797
|
}
|
|
16797
16798
|
const v = localStorage.getItem("MINIO");
|
|
16798
16799
|
function y() {
|
|
@@ -16800,13 +16801,13 @@ const Rr = /* @__PURE__ */ I({
|
|
|
16800
16801
|
}
|
|
16801
16802
|
function E(C) {
|
|
16802
16803
|
const { name: V, size: P } = C, $ = V.indexOf(".") !== -1 ? `.${V.split(".").pop()}` : "", F = [];
|
|
16803
|
-
return (u.value === "*" ? !0 : r.value.accept.includes($)) || F.push(`文件类型不符合:${u.value}`), P / 1e6 <= r.value.maximum || F.push(`文件大小不超过${r.value.maximum}Mb`), F.length > 0 ? (
|
|
16804
|
+
return (u.value === "*" ? !0 : r.value.accept.includes($)) || F.push(`文件类型不符合:${u.value}`), P / 1e6 <= r.value.maximum || F.push(`文件大小不超过${r.value.maximum}Mb`), F.length > 0 ? (Z.error(F.join(";")), !1) : !0;
|
|
16804
16805
|
}
|
|
16805
16806
|
function T(C) {
|
|
16806
|
-
C.payload ? (l.value = C.payload, o("reload"),
|
|
16807
|
+
C.payload ? (l.value = C.payload, o("reload"), Z.success("上传成功!")) : D(), s.value?.clearFiles();
|
|
16807
16808
|
}
|
|
16808
16809
|
function D() {
|
|
16809
|
-
|
|
16810
|
+
Z.error("上传失败");
|
|
16810
16811
|
}
|
|
16811
16812
|
return (C, V) => {
|
|
16812
16813
|
const P = w("el-upload"), $ = w("el-text"), F = w("el-tooltip"), U = w("el-divider"), A = w("el-space"), R = w("el-input");
|
|
@@ -16949,7 +16950,7 @@ const Rr = /* @__PURE__ */ I({
|
|
|
16949
16950
|
set: (r) => l("update:modelValue", r)
|
|
16950
16951
|
});
|
|
16951
16952
|
function a(r, i) {
|
|
16952
|
-
i(),
|
|
16953
|
+
i(), Z.info("JSON结果已暂存");
|
|
16953
16954
|
}
|
|
16954
16955
|
return (r, i) => {
|
|
16955
16956
|
const u = w("el-button");
|
|
@@ -17007,7 +17008,7 @@ const Rr = /* @__PURE__ */ I({
|
|
|
17007
17008
|
set: (i) => o("update:modelValue", i || null)
|
|
17008
17009
|
}), s = x(), a = x();
|
|
17009
17010
|
function r(i, u) {
|
|
17010
|
-
|
|
17011
|
+
Z.info("富文本结果已暂存"), u();
|
|
17011
17012
|
}
|
|
17012
17013
|
return (i, u) => {
|
|
17013
17014
|
const c = w("el-button");
|
|
@@ -17347,13 +17348,13 @@ const Vn = /* @__PURE__ */ I({
|
|
|
17347
17348
|
reset: _,
|
|
17348
17349
|
invalid: g
|
|
17349
17350
|
} = Mm(l);
|
|
17350
|
-
|
|
17351
|
+
X(c, () => {
|
|
17351
17352
|
const v = Object.values(d.value).map((y) => [y.prop, y.value]);
|
|
17352
17353
|
o("change", Object.fromEntries(v), g.value);
|
|
17353
17354
|
}, { deep: !0 });
|
|
17354
17355
|
function p() {
|
|
17355
17356
|
if (g.value)
|
|
17356
|
-
return
|
|
17357
|
+
return Z.warning("注意验证信息"), null;
|
|
17357
17358
|
const v = c.value;
|
|
17358
17359
|
return !l.insert && qe(v) ? [] : (l.keys || [l.item.id]).map((E) => ({ id: E, saved: !0, ...v }));
|
|
17359
17360
|
}
|
|
@@ -17435,7 +17436,7 @@ function jg(e) {
|
|
|
17435
17436
|
const t = x(Qe(e.item)), n = x(e.codes.length ? e.codes[0].value : "default"), o = x(new Me()), { manager: l } = he({
|
|
17436
17437
|
entity: e.entity
|
|
17437
17438
|
});
|
|
17438
|
-
return
|
|
17439
|
+
return X(n, () => {
|
|
17439
17440
|
l.meta_view(n.value).then((s) => {
|
|
17440
17441
|
const r = e.codes.find((i) => i.value === n.value)?.convert;
|
|
17441
17442
|
r && r(s), o.value = s;
|
|
@@ -17496,7 +17497,7 @@ const qg = {
|
|
|
17496
17497
|
disabled: e.disabled,
|
|
17497
17498
|
onChange: u
|
|
17498
17499
|
}, null, 8, ["view", "item", "temp", "disabled"]),
|
|
17499
|
-
|
|
17500
|
+
Q(_.$slots, "default", {
|
|
17500
17501
|
view: h(s),
|
|
17501
17502
|
item: h(a),
|
|
17502
17503
|
update: r,
|
|
@@ -17559,8 +17560,8 @@ function Kg(e, t) {
|
|
|
17559
17560
|
},
|
|
17560
17561
|
download: () => {
|
|
17561
17562
|
l.find(..._.value).then((R) => {
|
|
17562
|
-
const B = P(R), q = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" },
|
|
17563
|
-
De.info("请选择数据下载方式:", q).then(() => F($(B))).then(() =>
|
|
17563
|
+
const B = P(R), q = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, J = e.value.title || g.value.$meta_name;
|
|
17564
|
+
De.info("请选择数据下载方式:", q).then(() => F($(B))).then(() => Z.success("数据已存至剪切板")).catch(() => U(J || gt(), { data: B, name: J }));
|
|
17564
17565
|
});
|
|
17565
17566
|
}
|
|
17566
17567
|
},
|
|
@@ -18337,7 +18338,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18337
18338
|
db: o.value.db,
|
|
18338
18339
|
entity: o.value.entity || ""
|
|
18339
18340
|
})));
|
|
18340
|
-
|
|
18341
|
+
X(() => [
|
|
18341
18342
|
o.value.db,
|
|
18342
18343
|
o.value.entity,
|
|
18343
18344
|
o.value.isTree
|
|
@@ -18623,7 +18624,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18623
18624
|
});
|
|
18624
18625
|
function i(u, c) {
|
|
18625
18626
|
const d = s.value?.getData();
|
|
18626
|
-
d == null ? (
|
|
18627
|
+
d == null ? (Z.warning("请查看验证信息"), c(!1)) : qe(d) ? (Z.info("数据无变化"), c(!1)) : (r.save_many([d]), c());
|
|
18627
18628
|
}
|
|
18628
18629
|
return t({ open: a }), (u, c) => (b(), k(h(le), {
|
|
18629
18630
|
ref_key: "dialog",
|
|
@@ -18668,7 +18669,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18668
18669
|
const p = a.value?.getSelection(), v = l.view.id, y = p?.map((E) => E.prop);
|
|
18669
18670
|
y?.length ? i("valar/add_fields", { view_id: v, props: y }).then(() => {
|
|
18670
18671
|
o("complete"), g();
|
|
18671
|
-
}) : (
|
|
18672
|
+
}) : (Z.info("请选择"), g(!1));
|
|
18672
18673
|
}
|
|
18673
18674
|
return t({ open: c }), (_, g) => (b(), k(h(le), {
|
|
18674
18675
|
ref_key: "dialog",
|
|
@@ -18794,7 +18795,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18794
18795
|
}
|
|
18795
18796
|
function i(u, c) {
|
|
18796
18797
|
const d = s.value?.getData();
|
|
18797
|
-
d?.length ? (a.save_many(d), c()) : (
|
|
18798
|
+
d?.length ? (a.save_many(d), c()) : (Z.info("请选择"), c(!1));
|
|
18798
18799
|
}
|
|
18799
18800
|
return t({ open: r }), (u, c) => (b(), k(h(le), {
|
|
18800
18801
|
ref_key: "dialog",
|
|
@@ -19154,7 +19155,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
19154
19155
|
});
|
|
19155
19156
|
function r(u, c) {
|
|
19156
19157
|
const d = s.value?.getData();
|
|
19157
|
-
qe(d) ? (
|
|
19158
|
+
qe(d) ? (Z.info("数据未修改"), c()) : a.save_one(d).then(() => {
|
|
19158
19159
|
o("reload"), c();
|
|
19159
19160
|
});
|
|
19160
19161
|
}
|
|
@@ -19560,7 +19561,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
19560
19561
|
onField: s.value?.open
|
|
19561
19562
|
}, {
|
|
19562
19563
|
header: f(({ width: F }) => [
|
|
19563
|
-
|
|
19564
|
+
Q(P.$slots, "header", { width: F })
|
|
19564
19565
|
]),
|
|
19565
19566
|
_: 3
|
|
19566
19567
|
}, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "loading", "ticker", "error", "admin", "title", "single", "height", "buttons", "columns", "onMeta", "onField"]),
|
|
@@ -19592,7 +19593,7 @@ function gh(e) {
|
|
|
19592
19593
|
size: e.value.size,
|
|
19593
19594
|
orders: a.value
|
|
19594
19595
|
}));
|
|
19595
|
-
return
|
|
19596
|
+
return X(a, () => r.value.orders = a.value, { deep: !0 }), {
|
|
19596
19597
|
items: n,
|
|
19597
19598
|
mapping: o,
|
|
19598
19599
|
total: l,
|
|
@@ -19605,7 +19606,7 @@ function hh(e) {
|
|
|
19605
19606
|
const { fromMode: t } = Ae(), n = O(
|
|
19606
19607
|
() => lo(...e.value.results.map(Object.keys)).filter((s) => !["id", "sort", "saved"].includes(s))
|
|
19607
19608
|
), o = x(l());
|
|
19608
|
-
|
|
19609
|
+
X(() => [
|
|
19609
19610
|
e.value.modes,
|
|
19610
19611
|
n.value
|
|
19611
19612
|
], () => o.value = l(), { deep: !0 });
|
|
@@ -19640,7 +19641,7 @@ function vh(e, t) {
|
|
|
19640
19641
|
function v() {
|
|
19641
19642
|
p.value = l.value.filter(g);
|
|
19642
19643
|
}
|
|
19643
|
-
|
|
19644
|
+
X(() => [
|
|
19644
19645
|
d.value,
|
|
19645
19646
|
l.value
|
|
19646
19647
|
], v, { deep: !0 });
|
|
@@ -19690,7 +19691,7 @@ function vh(e, t) {
|
|
|
19690
19691
|
},
|
|
19691
19692
|
download: () => {
|
|
19692
19693
|
const $ = T(y.value), F = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, U = n.value.title;
|
|
19693
|
-
De.info("请选择数据下载方式:", F).then(() => C(D($))).then(() =>
|
|
19694
|
+
De.info("请选择数据下载方式:", F).then(() => C(D($))).then(() => Z.success("数据已存至剪切板")).catch(() => V(U || gt(), { data: $, name: U }));
|
|
19694
19695
|
}
|
|
19695
19696
|
},
|
|
19696
19697
|
orders: r
|
|
@@ -19727,7 +19728,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19727
19728
|
} = vh(l, (y) => {
|
|
19728
19729
|
s.value?.set(y);
|
|
19729
19730
|
});
|
|
19730
|
-
return
|
|
19731
|
+
return X(a, () => {
|
|
19731
19732
|
o("change", a.value);
|
|
19732
19733
|
}, { deep: !0 }), t({
|
|
19733
19734
|
getSelection: (y = !1) => {
|
|
@@ -19755,7 +19756,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19755
19756
|
columns: e.columns
|
|
19756
19757
|
}, {
|
|
19757
19758
|
header: f(({ width: T }) => [
|
|
19758
|
-
|
|
19759
|
+
Q(y.$slots, "header", { width: T })
|
|
19759
19760
|
]),
|
|
19760
19761
|
_: 3
|
|
19761
19762
|
}, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "error", "admin", "title", "single", "height", "buttons", "columns"]));
|
|
@@ -19815,7 +19816,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19815
19816
|
key: 0,
|
|
19816
19817
|
direction: "vertical"
|
|
19817
19818
|
})) : K("", !0),
|
|
19818
|
-
|
|
19819
|
+
Q(g.$slots, "header", { width: T })
|
|
19819
19820
|
]),
|
|
19820
19821
|
_: 2
|
|
19821
19822
|
}, 1024)
|
|
@@ -19827,7 +19828,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19827
19828
|
});
|
|
19828
19829
|
function yh(e, t) {
|
|
19829
19830
|
const n = x(new Pt({ ...e.value, type: "tree" }));
|
|
19830
|
-
|
|
19831
|
+
X(() => e.value.root, ($) => n.value.root = $ || 0);
|
|
19831
19832
|
const {
|
|
19832
19833
|
model: o,
|
|
19833
19834
|
manager: l,
|
|
@@ -20089,7 +20090,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20089
20090
|
function P(F, U) {
|
|
20090
20091
|
F.stopPropagation(), F.preventDefault(), a.value?.set([U]);
|
|
20091
20092
|
}
|
|
20092
|
-
return
|
|
20093
|
+
return X(() => a.value?.selection, (F) => {
|
|
20093
20094
|
if (l.single) {
|
|
20094
20095
|
const U = F?.length === 1 ? F[0] : null;
|
|
20095
20096
|
o("change", U);
|
|
@@ -20129,10 +20130,10 @@ const bh = /* @__PURE__ */ I({
|
|
|
20129
20130
|
onTable: r.value?.open
|
|
20130
20131
|
}, {
|
|
20131
20132
|
header: f(({ width: R }) => [
|
|
20132
|
-
|
|
20133
|
+
Q(F.$slots, "header", { width: R })
|
|
20133
20134
|
]),
|
|
20134
20135
|
prefix: f(({ data: R, node: B, isLeaf: q }) => [
|
|
20135
|
-
|
|
20136
|
+
Q(F.$slots, "prefix", {
|
|
20136
20137
|
isLeaf: R.isLeaf,
|
|
20137
20138
|
node: B,
|
|
20138
20139
|
data: R,
|
|
@@ -20140,35 +20141,35 @@ const bh = /* @__PURE__ */ I({
|
|
|
20140
20141
|
})
|
|
20141
20142
|
]),
|
|
20142
20143
|
"prefix-leaf": f(({ data: R, node: B }) => [
|
|
20143
|
-
|
|
20144
|
+
Q(F.$slots, "prefix-leaf", {
|
|
20144
20145
|
node: B,
|
|
20145
20146
|
data: R,
|
|
20146
20147
|
select: P
|
|
20147
20148
|
})
|
|
20148
20149
|
]),
|
|
20149
20150
|
"prefix-branch": f(({ data: R, node: B }) => [
|
|
20150
|
-
|
|
20151
|
+
Q(F.$slots, "prefix-branch", {
|
|
20151
20152
|
node: B,
|
|
20152
20153
|
data: R,
|
|
20153
20154
|
select: P
|
|
20154
20155
|
})
|
|
20155
20156
|
]),
|
|
20156
20157
|
suffix: f(({ data: R, node: B, isLeaf: q }) => [
|
|
20157
|
-
|
|
20158
|
+
Q(F.$slots, "suffix", {
|
|
20158
20159
|
node: B,
|
|
20159
20160
|
data: R,
|
|
20160
20161
|
select: P
|
|
20161
20162
|
})
|
|
20162
20163
|
]),
|
|
20163
20164
|
"suffix-leaf": f(({ data: R, node: B }) => [
|
|
20164
|
-
|
|
20165
|
+
Q(F.$slots, "suffix-leaf", {
|
|
20165
20166
|
node: B,
|
|
20166
20167
|
data: R,
|
|
20167
20168
|
select: P
|
|
20168
20169
|
})
|
|
20169
20170
|
]),
|
|
20170
20171
|
"suffix-branch": f(({ data: R, node: B }) => [
|
|
20171
|
-
|
|
20172
|
+
Q(F.$slots, "suffix-branch", {
|
|
20172
20173
|
node: B,
|
|
20173
20174
|
data: R,
|
|
20174
20175
|
select: P
|
|
@@ -20217,7 +20218,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20217
20218
|
const i = n(l.value);
|
|
20218
20219
|
return o(i, s.value);
|
|
20219
20220
|
});
|
|
20220
|
-
|
|
20221
|
+
X(() => t.url, r, { deep: !0, immediate: !0 });
|
|
20221
20222
|
async function r() {
|
|
20222
20223
|
const i = await fetch(t.url);
|
|
20223
20224
|
l.value = await i.text();
|
|
@@ -20256,7 +20257,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20256
20257
|
return c ? `.${c}` : "";
|
|
20257
20258
|
});
|
|
20258
20259
|
const { readURL: n, toPlain: o } = Ut(), l = x({}), s = x(""), a = x([]), r = O(() => o(l.value[s.value], i.value)), i = x(!0);
|
|
20259
|
-
return
|
|
20260
|
+
return X(() => t.url, () => {
|
|
20260
20261
|
n(t.url).then((c) => {
|
|
20261
20262
|
l.value = c;
|
|
20262
20263
|
const d = Object.keys(c);
|
|
@@ -20409,7 +20410,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20409
20410
|
},
|
|
20410
20411
|
setup(e) {
|
|
20411
20412
|
const t = e, n = x("");
|
|
20412
|
-
|
|
20413
|
+
X(() => t.url, o, { deep: !0, immediate: !0 });
|
|
20413
20414
|
async function o() {
|
|
20414
20415
|
const l = await fetch(t.url);
|
|
20415
20416
|
n.value = await l.text();
|
|
@@ -20438,7 +20439,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20438
20439
|
return u ? `.${u}` : "";
|
|
20439
20440
|
}), l = localStorage.getItem("MINIO"), s = O(() => t.path ? `${l}/${decodeURI(t.path)}` : null);
|
|
20440
20441
|
function a(i) {
|
|
20441
|
-
i && t.field?.format.locked ?
|
|
20442
|
+
i && t.field?.format.locked ? Z.warning("抱歉,该文件不支持下载!请在线预览。") : s.value ? window.open(s.value, "_blank") : Z.warning("无文件");
|
|
20442
20443
|
}
|
|
20443
20444
|
const r = O(() => {
|
|
20444
20445
|
switch (o.value) {
|
|
@@ -20529,7 +20530,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20529
20530
|
validate(e) {
|
|
20530
20531
|
if (e === "admin") return !0;
|
|
20531
20532
|
const t = this.account.validateRegExp.test(e);
|
|
20532
|
-
return t ||
|
|
20533
|
+
return t || Z.error(this.account.validateMessage), t;
|
|
20533
20534
|
},
|
|
20534
20535
|
init(e) {
|
|
20535
20536
|
this.baseURL = e?.baseURL || "/api/", this.title = e?.title || "Valar Morghulis", this.signInOnly = e?.signInOnly || !1, this.scope = e?.scope || "admin";
|
|
@@ -20845,7 +20846,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
20845
20846
|
setup(e, { expose: t, emit: n }) {
|
|
20846
20847
|
const o = n, l = e, s = x(), a = x();
|
|
20847
20848
|
function r() {
|
|
20848
|
-
l.vacant.length ? s.value?.open(l.vacant) :
|
|
20849
|
+
l.vacant.length ? s.value?.open(l.vacant) : Z.warning("无可用路由");
|
|
20849
20850
|
}
|
|
20850
20851
|
function i(u, c) {
|
|
20851
20852
|
const _ = (a.value?.getSelection() || []).map((g) => ({ ...g, isLeaf: !0, pid: l.pid }));
|
|
@@ -20883,7 +20884,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
20883
20884
|
c ? De.info("是否将菜单名称设置为路由名称").then(() => {
|
|
20884
20885
|
const d = { id: u.id, name: c };
|
|
20885
20886
|
o("confirm", [d]), s.value?.close();
|
|
20886
|
-
}) :
|
|
20887
|
+
}) : Z.info("已是默认值");
|
|
20887
20888
|
}
|
|
20888
20889
|
const i = (u) => {
|
|
20889
20890
|
const c = ve(u, ["id", "path"]);
|
|
@@ -21059,7 +21060,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21059
21060
|
}
|
|
21060
21061
|
];
|
|
21061
21062
|
function u(d) {
|
|
21062
|
-
De.info(`是否向用户邮箱【${d.username}】发送密码【${d.token}】?`).then(() => a.sendPassword(d.id)).catch(() => l(d.token).then(() =>
|
|
21063
|
+
De.info(`是否向用户邮箱【${d.username}】发送密码【${d.token}】?`).then(() => a.sendPassword(d.id)).catch(() => l(d.token).then(() => Z.warning("密码已复制到剪切板")));
|
|
21063
21064
|
}
|
|
21064
21065
|
function c(d) {
|
|
21065
21066
|
De.info(`是否重置账户 “${d.username}” 的密码`).then(() => a.retrieve({ id: d.id })).finally(() => o.value?.rest.reload());
|
|
@@ -21491,7 +21492,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21491
21492
|
immediate: !0
|
|
21492
21493
|
// 立即开始
|
|
21493
21494
|
});
|
|
21494
|
-
return
|
|
21495
|
+
return X(n, () => {
|
|
21495
21496
|
n.value >= 10 && (o(), t.push("/"));
|
|
21496
21497
|
}), (a, r) => {
|
|
21497
21498
|
const i = w("el-text"), u = w("el-button"), c = w("el-space"), d = w("el-empty");
|
|
@@ -21562,7 +21563,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21562
21563
|
immediate: !0
|
|
21563
21564
|
// 立即开始
|
|
21564
21565
|
});
|
|
21565
|
-
return
|
|
21566
|
+
return X(n, () => {
|
|
21566
21567
|
n.value >= 10 && (o(), t.push("/"));
|
|
21567
21568
|
}), (a, r) => {
|
|
21568
21569
|
const i = w("el-text"), u = w("el-button"), c = w("el-space"), d = w("el-result");
|
|
@@ -21653,7 +21654,7 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21653
21654
|
$$message: kr,
|
|
21654
21655
|
$alert: Pm,
|
|
21655
21656
|
$confirm: De,
|
|
21656
|
-
$message:
|
|
21657
|
+
$message: Z,
|
|
21657
21658
|
CodesForm: Jo,
|
|
21658
21659
|
CodesTable: Mr,
|
|
21659
21660
|
Condition: Te,
|
|
@@ -21723,7 +21724,7 @@ export {
|
|
|
21723
21724
|
kr as $$message,
|
|
21724
21725
|
Pm as $alert,
|
|
21725
21726
|
De as $confirm,
|
|
21726
|
-
|
|
21727
|
+
Z as $message,
|
|
21727
21728
|
Jo as CodesForm,
|
|
21728
21729
|
Mr as CodesTable,
|
|
21729
21730
|
Te as Condition,
|