@morghulis/core 1.0.57 → 1.0.59
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.
- package/dist/index.css +1 -1
- package/dist/morghulis-core.es.js +172 -172
- package/dist/morghulis-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -7315,7 +7315,7 @@ function Om(e) {
|
|
|
7315
7315
|
}
|
|
7316
7316
|
function Nt(e, t) {
|
|
7317
7317
|
const n = ie(e) ? e : x(e), o = x({}), l = O(() => n.value.root), s = O(() => o.value[l.value]?.children || []);
|
|
7318
|
-
return
|
|
7318
|
+
return X(n, () => {
|
|
7319
7319
|
const { results: a } = n.value;
|
|
7320
7320
|
o.value = {};
|
|
7321
7321
|
const r = {};
|
|
@@ -7338,7 +7338,7 @@ function Nt(e, t) {
|
|
|
7338
7338
|
}
|
|
7339
7339
|
function pr(e) {
|
|
7340
7340
|
const t = ie(e) ? e : x(e), n = x({}), o = x([]), l = O(() => o.value.length), s = O(() => t.value.total);
|
|
7341
|
-
return
|
|
7341
|
+
return X(t, () => {
|
|
7342
7342
|
const { results: a } = t.value;
|
|
7343
7343
|
o.value = a, n.value = Eo(a, "id");
|
|
7344
7344
|
}, { deep: !0, immediate: !0 }), { mapping: n, total: s, length: l, options: o };
|
|
@@ -7358,7 +7358,7 @@ function fr(e) {
|
|
|
7358
7358
|
const y = { ...p, ...u(g) }, E = Object.keys(y).map((T) => parseInt(T));
|
|
7359
7359
|
return n.value = { ...n.value, ...y }, E;
|
|
7360
7360
|
};
|
|
7361
|
-
|
|
7361
|
+
X(t, () => {
|
|
7362
7362
|
const { results: _ } = t.value;
|
|
7363
7363
|
r.value = 0, n.value = {}, i(_);
|
|
7364
7364
|
}, { deep: !0, immediate: !0 });
|
|
@@ -7465,7 +7465,7 @@ function _r(e = {}) {
|
|
|
7465
7465
|
}
|
|
7466
7466
|
function qo(e = {}) {
|
|
7467
7467
|
const t = ie(e) ? e : x(e), n = O(() => a(t.value.includes)), o = x(s(t.value));
|
|
7468
|
-
|
|
7468
|
+
X(t, () => {
|
|
7469
7469
|
o.value = s(t.value);
|
|
7470
7470
|
}, { deep: !0, immediate: !0 });
|
|
7471
7471
|
function l(i) {
|
|
@@ -7517,7 +7517,7 @@ function Ho(e, t, n) {
|
|
|
7517
7517
|
function i($) {
|
|
7518
7518
|
Object.assign(a.value, $);
|
|
7519
7519
|
}
|
|
7520
|
-
|
|
7520
|
+
X(() => [
|
|
7521
7521
|
e.value.db,
|
|
7522
7522
|
e.value.entity,
|
|
7523
7523
|
e.value.code,
|
|
@@ -7534,7 +7534,7 @@ function Ho(e, t, n) {
|
|
|
7534
7534
|
modes: o.value.$modes
|
|
7535
7535
|
};
|
|
7536
7536
|
}
|
|
7537
|
-
|
|
7537
|
+
X(() => [
|
|
7538
7538
|
e.value.includes,
|
|
7539
7539
|
e.value.excludes,
|
|
7540
7540
|
o.value.$modes
|
|
@@ -7551,7 +7551,7 @@ function Ho(e, t, n) {
|
|
|
7551
7551
|
payload: y,
|
|
7552
7552
|
loading: E
|
|
7553
7553
|
} = he(a, !0), { setEnable: T } = Ae(o);
|
|
7554
|
-
|
|
7554
|
+
X(() => e.value.disabled, ($) => T(!$));
|
|
7555
7555
|
function D() {
|
|
7556
7556
|
v.meta_view().then(($) => {
|
|
7557
7557
|
$.$$validator = e.value.validator, e.value.beforeInit && e.value.beforeInit($), o.value = $, e.value.disabled && T(!1), C();
|
|
@@ -7567,14 +7567,14 @@ function Ho(e, t, n) {
|
|
|
7567
7567
|
l.value = F, y && n($ || []);
|
|
7568
7568
|
}).catch((F) => s.value = F.message);
|
|
7569
7569
|
}
|
|
7570
|
-
|
|
7570
|
+
X(() => ({
|
|
7571
7571
|
db: a.value.db,
|
|
7572
7572
|
entity: a.value.entity,
|
|
7573
7573
|
code: a.value.code
|
|
7574
7574
|
}), ($, F) => {
|
|
7575
7575
|
const U = ve($, ["db", "entity"]), A = ve(F, ["db", "entity"]);
|
|
7576
7576
|
F?.entity != null && !Ie(U, A) && (u.value.includes = {}, u.value.excludes = {}), D();
|
|
7577
|
-
}, { deep: !0, immediate: !0 }),
|
|
7577
|
+
}, { deep: !0, immediate: !0 }), X(() => ({
|
|
7578
7578
|
conditions: p.value,
|
|
7579
7579
|
orders: t.value.orders,
|
|
7580
7580
|
page: t.value.page,
|
|
@@ -7841,7 +7841,7 @@ const br = (e = "/api/") => ({
|
|
|
7841
7841
|
let o = null;
|
|
7842
7842
|
return Vt(async () => {
|
|
7843
7843
|
n.value && (o = (await import("echarts")).init(n.value), o.setOption(t.options));
|
|
7844
|
-
}),
|
|
7844
|
+
}), X(() => t.options, (l) => {
|
|
7845
7845
|
o && l && Ve().then(() => o && o.setOption(l, !0, !0));
|
|
7846
7846
|
}, { deep: !0 }), Pa(() => {
|
|
7847
7847
|
o?.dispose();
|
|
@@ -9890,7 +9890,7 @@ const br = (e = "/api/") => ({
|
|
|
9890
9890
|
spinReverse: e.spinReverse,
|
|
9891
9891
|
widthAuto: e.widthAuto
|
|
9892
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),
|
|
9893
|
-
|
|
9893
|
+
Q(s.$slots, "default")
|
|
9894
9894
|
], 2));
|
|
9895
9895
|
}
|
|
9896
9896
|
}), Tm = /* @__PURE__ */ I({
|
|
@@ -9910,7 +9910,7 @@ const br = (e = "/api/") => ({
|
|
|
9910
9910
|
default: f(() => [
|
|
9911
9911
|
m(o, { span: 12 }, {
|
|
9912
9912
|
default: f(() => [
|
|
9913
|
-
|
|
9913
|
+
Q(t.$slots, "default")
|
|
9914
9914
|
]),
|
|
9915
9915
|
_: 3
|
|
9916
9916
|
}),
|
|
@@ -9922,7 +9922,7 @@ const br = (e = "/api/") => ({
|
|
|
9922
9922
|
default: f(() => [
|
|
9923
9923
|
m(l, { size: "large" }, {
|
|
9924
9924
|
default: f(() => [
|
|
9925
|
-
|
|
9925
|
+
Q(t.$slots, "tool"),
|
|
9926
9926
|
m(j, {
|
|
9927
9927
|
icon: "expand",
|
|
9928
9928
|
onClick: n[0] || (n[0] = (a) => e.control.expand()),
|
|
@@ -9959,7 +9959,7 @@ const br = (e = "/api/") => ({
|
|
|
9959
9959
|
const o = w("el-button"), l = w("el-space");
|
|
9960
9960
|
return b(), M("div", Am, [
|
|
9961
9961
|
te("div", null, [
|
|
9962
|
-
|
|
9962
|
+
Q(t.$slots, "tool")
|
|
9963
9963
|
]),
|
|
9964
9964
|
e.show.footerTool ? (b(), k(l, { key: 0 }, {
|
|
9965
9965
|
default: f(() => [
|
|
@@ -10096,7 +10096,7 @@ const br = (e = "/api/") => ({
|
|
|
10096
10096
|
show: r.value
|
|
10097
10097
|
}, {
|
|
10098
10098
|
tool: f(() => [
|
|
10099
|
-
|
|
10099
|
+
Q(V.$slots, "tool", {
|
|
10100
10100
|
raw: c.value.raw,
|
|
10101
10101
|
data: c.value.data,
|
|
10102
10102
|
controller: C,
|
|
@@ -10104,7 +10104,7 @@ const br = (e = "/api/") => ({
|
|
|
10104
10104
|
})
|
|
10105
10105
|
]),
|
|
10106
10106
|
default: f(() => [
|
|
10107
|
-
|
|
10107
|
+
Q(V.$slots, "header", {
|
|
10108
10108
|
data: c.value.data,
|
|
10109
10109
|
raw: c.value.raw,
|
|
10110
10110
|
controller: C,
|
|
@@ -10150,7 +10150,7 @@ const br = (e = "/api/") => ({
|
|
|
10150
10150
|
"element-loading-background": "rgba(255,255,255,0.6)",
|
|
10151
10151
|
style: { "min-height": "80px" }
|
|
10152
10152
|
}, [
|
|
10153
|
-
|
|
10153
|
+
Q(V.$slots, "default", {
|
|
10154
10154
|
raw: c.value.raw,
|
|
10155
10155
|
data: c.value.data,
|
|
10156
10156
|
controller: C,
|
|
@@ -10255,7 +10255,7 @@ const br = (e = "/api/") => ({
|
|
|
10255
10255
|
]),
|
|
10256
10256
|
m(g, null, {
|
|
10257
10257
|
default: f(() => [
|
|
10258
|
-
|
|
10258
|
+
Q(c.$slots, "tool", {
|
|
10259
10259
|
data: a.value.data,
|
|
10260
10260
|
control: u
|
|
10261
10261
|
}),
|
|
@@ -10269,7 +10269,7 @@ const br = (e = "/api/") => ({
|
|
|
10269
10269
|
})
|
|
10270
10270
|
])),
|
|
10271
10271
|
te("div", Fm, [
|
|
10272
|
-
|
|
10272
|
+
Q(c.$slots, "default", {
|
|
10273
10273
|
data: a.value.data,
|
|
10274
10274
|
control: u
|
|
10275
10275
|
})
|
|
@@ -10280,12 +10280,12 @@ const br = (e = "/api/") => ({
|
|
|
10280
10280
|
], 64);
|
|
10281
10281
|
};
|
|
10282
10282
|
}
|
|
10283
|
-
}),
|
|
10283
|
+
}), Z = {
|
|
10284
10284
|
info: (e) => rn({ message: e, type: "info", grouping: !0, appendTo: "body" }),
|
|
10285
10285
|
success: (e) => rn({ message: e, type: "success", grouping: !0 }),
|
|
10286
10286
|
warning: (e) => rn({ message: e, type: "warning", grouping: !0, appendTo: "body" }),
|
|
10287
10287
|
error: (e) => rn({ message: e, type: "error", grouping: !0 })
|
|
10288
|
-
}, kr = (e, t) =>
|
|
10288
|
+
}, kr = (e, t) => Z[t](e), Pm = {
|
|
10289
10289
|
info: (e, t = {}) => Je.alert(e, { ...t, type: "info" }),
|
|
10290
10290
|
success: (e, t) => Je.alert(e, t, { type: "success" }),
|
|
10291
10291
|
warning: (e, t) => Je.alert(e, t, { type: "warning" }),
|
|
@@ -10310,7 +10310,7 @@ const br = (e = "/api/") => ({
|
|
|
10310
10310
|
placeholder: "请输入内容...",
|
|
10311
10311
|
readOnly: l.disabled
|
|
10312
10312
|
}), d = (p, v) => {
|
|
10313
|
-
|
|
10313
|
+
Z.info(`${p}-${v}`);
|
|
10314
10314
|
}, _ = (p, v, y) => {
|
|
10315
10315
|
y(!0);
|
|
10316
10316
|
};
|
|
@@ -10501,7 +10501,7 @@ const br = (e = "/api/") => ({
|
|
|
10501
10501
|
shake: e.shake,
|
|
10502
10502
|
"beat-fade": e.beatFade
|
|
10503
10503
|
}, null, 8, ["icon", "style", "bounce", "shake", "beat-fade"])) : K("", !0),
|
|
10504
|
-
|
|
10504
|
+
Q(r.$slots, "default")
|
|
10505
10505
|
]),
|
|
10506
10506
|
_: 3
|
|
10507
10507
|
}, 8, ["type", "disabled", "size"])
|
|
@@ -10536,13 +10536,13 @@ const br = (e = "/api/") => ({
|
|
|
10536
10536
|
te("span", {
|
|
10537
10537
|
style: je(n.value)
|
|
10538
10538
|
}, [
|
|
10539
|
-
|
|
10539
|
+
Q(o.$slots, "left", {}, () => [
|
|
10540
10540
|
S(z(e.left), 1)
|
|
10541
10541
|
])
|
|
10542
10542
|
], 4)
|
|
10543
10543
|
]),
|
|
10544
10544
|
te("b", zm, [
|
|
10545
|
-
|
|
10545
|
+
Q(o.$slots, "right", {}, () => [
|
|
10546
10546
|
S(z(e.right), 1)
|
|
10547
10547
|
])
|
|
10548
10548
|
])
|
|
@@ -10562,7 +10562,7 @@ function Mm(e) {
|
|
|
10562
10562
|
const _ = n.value.map((g) => g.prop);
|
|
10563
10563
|
return { ...ve(t.value.item, _), ...ve(t.value.temp || {}, _) };
|
|
10564
10564
|
}, a = x(s());
|
|
10565
|
-
|
|
10565
|
+
X(t, () => a.value = s(), { immediate: !0, deep: !0 });
|
|
10566
10566
|
const r = O(() => {
|
|
10567
10567
|
const _ = n.value.map((g) => {
|
|
10568
10568
|
const p = g.prop, v = d(g, a.value, t.value.item);
|
|
@@ -10637,7 +10637,7 @@ const ce = ["update:modelValue", "confirm", "reload"], Hm = /* @__PURE__ */ I({
|
|
|
10637
10637
|
set: (r) => o("update:modelValue", r || null)
|
|
10638
10638
|
}), { copy: s } = _t();
|
|
10639
10639
|
function a() {
|
|
10640
|
-
s(l.value),
|
|
10640
|
+
s(l.value), Z.info("颜色代码已复制");
|
|
10641
10641
|
}
|
|
10642
10642
|
return (r, i) => {
|
|
10643
10643
|
const u = w("el-color-picker"), c = w("el-col"), d = w("el-row");
|
|
@@ -11036,7 +11036,7 @@ function sn(e, t, n, o) {
|
|
|
11036
11036
|
root: l.root,
|
|
11037
11037
|
page: 1,
|
|
11038
11038
|
size: 0
|
|
11039
|
-
}, [s]).then((d) => c.value = d) : (
|
|
11039
|
+
}, [s]).then((d) => c.value = d) : (Z.error("该字段未配置元数据"), c.value = new nt());
|
|
11040
11040
|
}), { model: c, loading: u, param: a, manager: i, condition: s };
|
|
11041
11041
|
}
|
|
11042
11042
|
function Da(e = {}, t) {
|
|
@@ -11504,7 +11504,7 @@ const o_ = /* @__PURE__ */ I({
|
|
|
11504
11504
|
});
|
|
11505
11505
|
function p_() {
|
|
11506
11506
|
const e = Bt(), t = O(() => e.permissions), { manager: n } = he({ entity: "valar.Menu" }), o = x(new nt()), { options: l, mapping: s } = Nt(o);
|
|
11507
|
-
return
|
|
11507
|
+
return X(
|
|
11508
11508
|
t,
|
|
11509
11509
|
() => {
|
|
11510
11510
|
const a = { path__in: t.value };
|
|
@@ -11578,7 +11578,7 @@ const f_ = { class: "justified full" }, m_ = {
|
|
|
11578
11578
|
emits: ["click"],
|
|
11579
11579
|
setup(e, { emit: t }) {
|
|
11580
11580
|
const n = x(), o = ot(), l = Ba(), s = { label: "name", value: "path" }, a = O(() => l.path), r = x(!1), i = x(!1);
|
|
11581
|
-
|
|
11581
|
+
X(a, () => {
|
|
11582
11582
|
Ve().then(() => n.value?.setCurrentKey(a.value));
|
|
11583
11583
|
}, { immediate: !0 });
|
|
11584
11584
|
function u(d, _, g, p) {
|
|
@@ -11715,13 +11715,13 @@ function Oe() {
|
|
|
11715
11715
|
function Wo(e) {
|
|
11716
11716
|
if (e === "admin") return !0;
|
|
11717
11717
|
const t = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
11718
|
-
return t ||
|
|
11718
|
+
return t || Z.error("邮箱格式不正确"), t;
|
|
11719
11719
|
}
|
|
11720
11720
|
function $n(e, t) {
|
|
11721
11721
|
if (t && e !== t)
|
|
11722
|
-
return
|
|
11722
|
+
return Z.error("密码不一致"), !1;
|
|
11723
11723
|
const n = e.length >= 8;
|
|
11724
|
-
return n ||
|
|
11724
|
+
return n || Z.error("密码长度不小于8位"), n;
|
|
11725
11725
|
}
|
|
11726
11726
|
const h_ = /* @__PURE__ */ I({
|
|
11727
11727
|
__name: "RetrieveDialog",
|
|
@@ -12408,7 +12408,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12408
12408
|
function s(r, i) {
|
|
12409
12409
|
const { old_password: u, new_password: c } = o.value?.getData() || {};
|
|
12410
12410
|
u && c ? l.changePassword(u, c).then((d) => {
|
|
12411
|
-
d ? (
|
|
12411
|
+
d ? (Z.success("密码修改成功"), i()) : i(!1);
|
|
12412
12412
|
}) : i(!1);
|
|
12413
12413
|
}
|
|
12414
12414
|
return t({ open: () => n.value?.open() }), (r, i) => (b(), k(h(le), {
|
|
@@ -12442,7 +12442,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12442
12442
|
ref_key: "outer",
|
|
12443
12443
|
ref: t
|
|
12444
12444
|
}, [
|
|
12445
|
-
h(n) > e.width ?
|
|
12445
|
+
h(n) > e.width ? Q(o.$slots, "default", {
|
|
12446
12446
|
key: 0,
|
|
12447
12447
|
ref: "slot"
|
|
12448
12448
|
}) : (b(), k(s, {
|
|
@@ -12455,7 +12455,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12455
12455
|
teleported: ""
|
|
12456
12456
|
}, {
|
|
12457
12457
|
content: f(() => [
|
|
12458
|
-
|
|
12458
|
+
Q(o.$slots, "default")
|
|
12459
12459
|
]),
|
|
12460
12460
|
default: f(() => [
|
|
12461
12461
|
m(j, {
|
|
@@ -12484,13 +12484,13 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12484
12484
|
};
|
|
12485
12485
|
}), g = O(() => t.ticker?.percentage ? `${t.ticker?.percentage}%` : "加载中...");
|
|
12486
12486
|
let p = null;
|
|
12487
|
-
return
|
|
12487
|
+
return X(() => [t.loading, n.value], () => {
|
|
12488
12488
|
t.loading && n.value ? (p = Xu.service({
|
|
12489
12489
|
target: n.value,
|
|
12490
12490
|
background: "rgba(255,255,255,0.6)",
|
|
12491
12491
|
customClass: "m-dialog-loading"
|
|
12492
12492
|
}), p?.setText(g?.value)) : p?.close();
|
|
12493
|
-
}, { immediate: !0, deep: !0 }),
|
|
12493
|
+
}, { immediate: !0, deep: !0 }), X(() => t.ticker, () => p?.setText(g.value)), (v, y) => {
|
|
12494
12494
|
const E = w("el-col"), T = w("el-space"), D = w("el-row");
|
|
12495
12495
|
return b(), M("div", {
|
|
12496
12496
|
ref_key: "wrap",
|
|
@@ -12511,7 +12511,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12511
12511
|
span: _.value.left
|
|
12512
12512
|
}, {
|
|
12513
12513
|
default: f(() => [
|
|
12514
|
-
|
|
12514
|
+
Q(v.$slots, "header", { width: h(i) })
|
|
12515
12515
|
]),
|
|
12516
12516
|
_: 3
|
|
12517
12517
|
}, 8, ["span"]),
|
|
@@ -12526,7 +12526,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12526
12526
|
default: f(() => [
|
|
12527
12527
|
m(T, { size: "small" }, {
|
|
12528
12528
|
default: f(() => [
|
|
12529
|
-
|
|
12529
|
+
Q(v.$slots, "header-tool", { width: h(u) })
|
|
12530
12530
|
]),
|
|
12531
12531
|
_: 3
|
|
12532
12532
|
})
|
|
@@ -12543,7 +12543,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12543
12543
|
class: "m-wrap-body",
|
|
12544
12544
|
style: je([{ overflow: "auto", "scrollbar-width": "none" }, { height: e.height || "auto" }])
|
|
12545
12545
|
}, [
|
|
12546
|
-
|
|
12546
|
+
Q(v.$slots, "default", { width: h(r) })
|
|
12547
12547
|
], 4),
|
|
12548
12548
|
m(D, {
|
|
12549
12549
|
class: "m-wrap-footer",
|
|
@@ -12556,7 +12556,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12556
12556
|
span: 12
|
|
12557
12557
|
}, {
|
|
12558
12558
|
default: f(() => [
|
|
12559
|
-
|
|
12559
|
+
Q(v.$slots, "footer", { width: h(c) })
|
|
12560
12560
|
]),
|
|
12561
12561
|
_: 3
|
|
12562
12562
|
}, 512),
|
|
@@ -12567,7 +12567,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12567
12567
|
class: "right"
|
|
12568
12568
|
}, {
|
|
12569
12569
|
default: f(() => [
|
|
12570
|
-
|
|
12570
|
+
Q(v.$slots, "footer-tool", { width: h(d) })
|
|
12571
12571
|
]),
|
|
12572
12572
|
_: 3
|
|
12573
12573
|
}, 512)
|
|
@@ -12615,12 +12615,12 @@ function V_(e, t) {
|
|
|
12615
12615
|
}
|
|
12616
12616
|
function T_(e, t) {
|
|
12617
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)));
|
|
12618
|
-
return
|
|
12618
|
+
return X(o, () => {
|
|
12619
12619
|
t.value?.clearSelection(), l.value.forEach((s) => t.value?.toggleRowSelection(s, !0)), Ve().then(() => requestAnimationFrame(() => t.value?.doLayout()));
|
|
12620
12620
|
}, { deep: !0 }), { selection: l, collector: n, collection: o };
|
|
12621
12621
|
}
|
|
12622
12622
|
function A_(e) {
|
|
12623
|
-
|
|
12623
|
+
X(e, r, { deep: !0 });
|
|
12624
12624
|
const t = x([]);
|
|
12625
12625
|
function n(u) {
|
|
12626
12626
|
const c = qu(t.value, e.value), d = pn(e.value, u), _ = lo(c, d);
|
|
@@ -12766,7 +12766,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
12766
12766
|
const o = n, l = e, s = x(), a = x(), r = O(() => l.selection.map((D) => D.id));
|
|
12767
12767
|
function i(D, C) {
|
|
12768
12768
|
const V = a.value?.getData();
|
|
12769
|
-
V == null ? (
|
|
12769
|
+
V == null ? (Z.warning("请注意非空值"), C(!1)) : V.length ? (l.rest.save_many(V), C()) : (Z.warning("数据无变化,是否关闭?"), C(!1));
|
|
12770
12770
|
}
|
|
12771
12771
|
function u(D, C) {
|
|
12772
12772
|
const { keys: V, insert: P } = D;
|
|
@@ -12805,7 +12805,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
12805
12805
|
}
|
|
12806
12806
|
function p() {
|
|
12807
12807
|
const D = l.selection.map((C) => Rn(C, ["id", "sort"]));
|
|
12808
|
-
l.rest.save_many(D),
|
|
12808
|
+
l.rest.save_many(D), Z.info(`已复制 ${D.length} 条数据`);
|
|
12809
12809
|
}
|
|
12810
12810
|
const { toAoa: v } = Ae(l.view), { copy: y } = _t();
|
|
12811
12811
|
function E() {
|
|
@@ -12815,14 +12815,14 @@ const Or = /* @__PURE__ */ I({
|
|
|
12815
12815
|
U != null && V.push([$, U]);
|
|
12816
12816
|
});
|
|
12817
12817
|
const P = JSON.stringify(Object.fromEntries(V));
|
|
12818
|
-
y(P).then(() =>
|
|
12818
|
+
y(P).then(() => Z.success("所选数据已存入剪切板"));
|
|
12819
12819
|
}
|
|
12820
12820
|
return t({ controller: {
|
|
12821
12821
|
insert: (D) => _(!0, D),
|
|
12822
|
-
edit: () => l.selection.length ? _(!1) :
|
|
12823
|
-
remove: () => l.selection.length ? g() :
|
|
12824
|
-
clone: () => l.selection.length ? p() :
|
|
12825
|
-
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("请选择数据")
|
|
12826
12826
|
} }), (D, C) => {
|
|
12827
12827
|
const V = w("el-text"), P = w("el-tag"), $ = w("el-space");
|
|
12828
12828
|
return b(), M(H, null, [
|
|
@@ -13330,7 +13330,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13330
13330
|
u && (n.rest.lookup(i.prop, u), o.value?.close());
|
|
13331
13331
|
}
|
|
13332
13332
|
function a(i) {
|
|
13333
|
-
n.rest.lookup(i.prop),
|
|
13333
|
+
n.rest.lookup(i.prop), Z.info(`已清空${i.name}的检索条件`), o.value?.close();
|
|
13334
13334
|
}
|
|
13335
13335
|
function r(i, u) {
|
|
13336
13336
|
n.view.allow_search && u.allow_search && o.value?.open(i, { title: `检索:${u.name}`, data: u });
|
|
@@ -13525,7 +13525,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13525
13525
|
});
|
|
13526
13526
|
}), l = O(() => t.frame[n.value] || []), { copy: s } = _t();
|
|
13527
13527
|
function a(r) {
|
|
13528
|
-
s(r).then((i) =>
|
|
13528
|
+
s(r).then((i) => Z.success(`已复制"${r}"`));
|
|
13529
13529
|
}
|
|
13530
13530
|
return (r, i) => {
|
|
13531
13531
|
const u = w("el-segmented"), c = w("el-button"), d = w("el-table-column"), _ = w("el-table"), g = w("el-card");
|
|
@@ -13678,7 +13678,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13678
13678
|
emits: ["restore", "remove", "edit"],
|
|
13679
13679
|
setup(e, { emit: t }) {
|
|
13680
13680
|
const n = t, o = e;
|
|
13681
|
-
|
|
13681
|
+
X(() => o.rows.length, () => {
|
|
13682
13682
|
u.value = !1, i.value = !1;
|
|
13683
13683
|
});
|
|
13684
13684
|
function l(g) {
|
|
@@ -13821,7 +13821,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13821
13821
|
header: f(() => [
|
|
13822
13822
|
m(P, null, {
|
|
13823
13823
|
content: f(() => [
|
|
13824
|
-
S(z(A.prop), 1)
|
|
13824
|
+
S(z(A.prop) + " // " + z(A.tool), 1)
|
|
13825
13825
|
]),
|
|
13826
13826
|
default: f(() => [
|
|
13827
13827
|
m(C, {
|
|
@@ -13931,7 +13931,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13931
13931
|
});
|
|
13932
13932
|
};
|
|
13933
13933
|
}
|
|
13934
|
-
}), Y_ = /* @__PURE__ */ lt(K_, [["__scopeId", "data-v-
|
|
13934
|
+
}), Y_ = /* @__PURE__ */ lt(K_, [["__scopeId", "data-v-3cdd62a6"]]);
|
|
13935
13935
|
function W_(e) {
|
|
13936
13936
|
const t = ie(e) ? e : x(e), n = x({
|
|
13937
13937
|
hasId: !1,
|
|
@@ -13939,7 +13939,7 @@ function W_(e) {
|
|
|
13939
13939
|
isUpdate: !1,
|
|
13940
13940
|
useKey: !1
|
|
13941
13941
|
}), { post: o, loading: l } = at(), s = x({});
|
|
13942
|
-
|
|
13942
|
+
X(t, () => {
|
|
13943
13943
|
const y = Object.values(t.value.view.$fields).filter((E) => {
|
|
13944
13944
|
const { allow_upload: T, domain: D, refer: { entity: C }, tool: V } = E;
|
|
13945
13945
|
if (!T) return !1;
|
|
@@ -13953,13 +13953,13 @@ function W_(e) {
|
|
|
13953
13953
|
const { prop: C, allow_update: V, allow_upload: P } = D, $ = !["id", "sort"].includes(C), F = n.value.isUpdate ? V : P;
|
|
13954
13954
|
return $ && F;
|
|
13955
13955
|
}).forEach((D) => {
|
|
13956
|
-
let { domain: C, prop: V, label: P, not_null: $, format: F } = D;
|
|
13957
|
-
if (me.DOMAINS.referred) {
|
|
13958
|
-
const
|
|
13959
|
-
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 }));
|
|
13960
13960
|
} else {
|
|
13961
|
-
const { set:
|
|
13962
|
-
|
|
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);
|
|
13963
13963
|
}
|
|
13964
13964
|
}), T;
|
|
13965
13965
|
}), i = O(() => {
|
|
@@ -14010,7 +14010,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14010
14010
|
const t = e, { write: n } = Ut(), { toText: o } = ht(), { copy: l } = _t(), s = O(() => t.fields.map((i) => i.label));
|
|
14011
14011
|
function a() {
|
|
14012
14012
|
const i = o([s.value]);
|
|
14013
|
-
l(i).then(() =>
|
|
14013
|
+
l(i).then(() => Z.info("表头已复制,请即使将其粘贴到Excel文件中。"));
|
|
14014
14014
|
}
|
|
14015
14015
|
function r() {
|
|
14016
14016
|
const i = { data: [s.value] };
|
|
@@ -14109,7 +14109,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14109
14109
|
emits: ["confirm", "pending"],
|
|
14110
14110
|
setup(e, { emit: t }) {
|
|
14111
14111
|
const n = t, { fromText: o } = ht(), { pending: l, openPaster: s, getClipboardData: a } = yr(), r = () => s().then((i) => n("confirm", o(i)));
|
|
14112
|
-
return
|
|
14112
|
+
return X(l, () => n("pending", l.value)), (i, u) => {
|
|
14113
14113
|
const c = w("el-button"), d = w("el-divider"), _ = w("el-space");
|
|
14114
14114
|
return b(), k(_, null, {
|
|
14115
14115
|
default: f(() => [
|
|
@@ -14282,7 +14282,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14282
14282
|
}
|
|
14283
14283
|
function P(A, R) {
|
|
14284
14284
|
const B = A.$index, q = r.value?.getData();
|
|
14285
|
-
q ? (q.length && E(q[0], B), R()) : (
|
|
14285
|
+
q ? (q.length && E(q[0], B), R()) : (Z.warning("注意验证信息"), R(!1));
|
|
14286
14286
|
}
|
|
14287
14287
|
function $(A) {
|
|
14288
14288
|
A.payload = !0;
|
|
@@ -14297,26 +14297,26 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14297
14297
|
n("confirm", p.value);
|
|
14298
14298
|
else {
|
|
14299
14299
|
const R = p.value.map((B) => (Object.keys(v.value).forEach((q) => {
|
|
14300
|
-
const
|
|
14300
|
+
const J = v.value[q], de = B[q];
|
|
14301
14301
|
if (de instanceof Array) {
|
|
14302
14302
|
const ne = [];
|
|
14303
14303
|
de.forEach((G) => {
|
|
14304
|
-
const ae =
|
|
14304
|
+
const ae = J.find((oe) => oe.label === G);
|
|
14305
14305
|
ae && ne.push(ae.value);
|
|
14306
14306
|
}), B[q] = ne;
|
|
14307
14307
|
} else {
|
|
14308
|
-
const ne =
|
|
14308
|
+
const ne = J.find((G) => G.label === de) || {};
|
|
14309
14309
|
B[q] = ne.value;
|
|
14310
14310
|
}
|
|
14311
14311
|
}), B));
|
|
14312
14312
|
n("confirm", R);
|
|
14313
14313
|
}
|
|
14314
|
-
}) :
|
|
14314
|
+
}) : Z.warning("无有效数据");
|
|
14315
14315
|
}
|
|
14316
14316
|
return (A, R) => {
|
|
14317
|
-
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");
|
|
14318
14318
|
return b(), M(H, null, [
|
|
14319
|
-
Ye((b(), k(
|
|
14319
|
+
Ye((b(), k(J, { align: "middle" }, {
|
|
14320
14320
|
default: f(() => [
|
|
14321
14321
|
m(q, { class: "justified" }, {
|
|
14322
14322
|
default: f(() => [
|
|
@@ -14750,7 +14750,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14750
14750
|
const t = e;
|
|
14751
14751
|
let n = x(0);
|
|
14752
14752
|
const o = x();
|
|
14753
|
-
|
|
14753
|
+
X(o, () => n.value = o.value?.offsetWidth + 30);
|
|
14754
14754
|
const l = O(() => {
|
|
14755
14755
|
const a = t.row;
|
|
14756
14756
|
return t.buttons.map((r) => {
|
|
@@ -14870,7 +14870,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14870
14870
|
const t = e;
|
|
14871
14871
|
let n = x(0);
|
|
14872
14872
|
const o = x();
|
|
14873
|
-
|
|
14873
|
+
X(o, () => n.value = o.value?.offsetWidth + 30);
|
|
14874
14874
|
function l(s) {
|
|
14875
14875
|
const a = s.id;
|
|
14876
14876
|
return () => t.setCollection([a]);
|
|
@@ -15276,7 +15276,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15276
15276
|
selection: g,
|
|
15277
15277
|
collector: p
|
|
15278
15278
|
} = T_(l, s), { createSortable: v } = V_(l, s);
|
|
15279
|
-
|
|
15279
|
+
X(() => [l.results, l.view], () => {
|
|
15280
15280
|
const F = l.view.allow_edit_on_sort && Ie(l.search.orders, { sort: -1 }) && !!l.results.length;
|
|
15281
15281
|
v(l.results, F);
|
|
15282
15282
|
}, { deep: !0, immediate: !0 });
|
|
@@ -15296,8 +15296,8 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15296
15296
|
}
|
|
15297
15297
|
function $(F, U, A, R) {
|
|
15298
15298
|
R.preventDefault(), R.stopPropagation();
|
|
15299
|
-
const { type: B, property: q } = U,
|
|
15300
|
-
if (p.clear(), p.set([
|
|
15299
|
+
const { type: B, property: q } = U, J = F.id;
|
|
15300
|
+
if (p.clear(), p.set([J]), B === "index")
|
|
15301
15301
|
i.value?.open(R);
|
|
15302
15302
|
else if (q) {
|
|
15303
15303
|
if (Object.keys(l.core).includes(q)) return;
|
|
@@ -15319,7 +15319,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15319
15319
|
ticker: e.ticker
|
|
15320
15320
|
}, {
|
|
15321
15321
|
header: f(({ width: q }) => [
|
|
15322
|
-
|
|
15322
|
+
Q(F.$slots, "header", { width: q }, () => [
|
|
15323
15323
|
m(A, { tag: "b" }, {
|
|
15324
15324
|
default: f(() => [
|
|
15325
15325
|
S(z(e.title || e.view.$meta_name), 1)
|
|
@@ -15335,21 +15335,21 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15335
15335
|
}, F.$props, {
|
|
15336
15336
|
selection: h(g),
|
|
15337
15337
|
collector: h(p),
|
|
15338
|
-
onUpload: U[0] || (U[0] = (
|
|
15338
|
+
onUpload: U[0] || (U[0] = (J) => d.value?.open())
|
|
15339
15339
|
}), null, 16, ["selection", "collector"]),
|
|
15340
15340
|
e.total ? (b(), k(h(ig), {
|
|
15341
15341
|
key: 0,
|
|
15342
15342
|
size: e.search.size,
|
|
15343
|
-
"onUpdate:size": U[1] || (U[1] = (
|
|
15343
|
+
"onUpdate:size": U[1] || (U[1] = (J) => e.search.size = J),
|
|
15344
15344
|
total: e.total
|
|
15345
15345
|
}, null, 8, ["size", "total"])) : K("", !0)
|
|
15346
15346
|
]),
|
|
15347
15347
|
footer: f(({ width: q }) => [
|
|
15348
15348
|
m(h(eg), {
|
|
15349
15349
|
size: e.search.size,
|
|
15350
|
-
"onUpdate:size": U[2] || (U[2] = (
|
|
15350
|
+
"onUpdate:size": U[2] || (U[2] = (J) => e.search.size = J),
|
|
15351
15351
|
page: e.search.page,
|
|
15352
|
-
"onUpdate:page": U[3] || (U[3] = (
|
|
15352
|
+
"onUpdate:page": U[3] || (U[3] = (J) => e.search.page = J),
|
|
15353
15353
|
total: e.total,
|
|
15354
15354
|
width: q
|
|
15355
15355
|
}, null, 8, ["size", "page", "total", "width"])
|
|
@@ -15413,8 +15413,8 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15413
15413
|
frame: V.value,
|
|
15414
15414
|
collection: h(_),
|
|
15415
15415
|
onField: U[5] || (U[5] = (q) => o("field", e.view.$fields[q.prop])),
|
|
15416
|
-
onLookup: U[6] || (U[6] = (q,
|
|
15417
|
-
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))
|
|
15418
15418
|
}), null, 16, ["collector", "frame", "collection"]),
|
|
15419
15419
|
e.columns && e.columns.length ? (b(), k(cg, {
|
|
15420
15420
|
key: 0,
|
|
@@ -15613,9 +15613,9 @@ function wg(e, t) {
|
|
|
15613
15613
|
const n = x([]), o = O(() => n.value.map((u) => e.value.mapping[u])), l = O(
|
|
15614
15614
|
() => Object.values(e.value.mapping).filter((u) => !u.children.length).map((u) => u.id)
|
|
15615
15615
|
);
|
|
15616
|
-
|
|
15616
|
+
X(l, () => {
|
|
15617
15617
|
n.value = n.value.filter((u) => l.value.includes(u));
|
|
15618
|
-
}, { deep: !0 }),
|
|
15618
|
+
}, { deep: !0 }), X(n, () => {
|
|
15619
15619
|
Ve().then(() => {
|
|
15620
15620
|
Ve().then(() => {
|
|
15621
15621
|
l.value.forEach((u) => {
|
|
@@ -15644,9 +15644,9 @@ function kg(e, t) {
|
|
|
15644
15644
|
const n = x([]), o = O(
|
|
15645
15645
|
() => Object.values(e.value.mapping).filter((C) => !C.isLeaf).map((C) => C.id)
|
|
15646
15646
|
);
|
|
15647
|
-
|
|
15647
|
+
X(o, () => {
|
|
15648
15648
|
e.value.expandAll || (n.value = n.value.filter((C) => o.value.includes(C)));
|
|
15649
|
-
}, { deep: !0 }),
|
|
15649
|
+
}, { deep: !0 }), X(n, () => {
|
|
15650
15650
|
Ve().then(() => {
|
|
15651
15651
|
o.value.forEach((C) => {
|
|
15652
15652
|
const V = t.value?.getNode(C);
|
|
@@ -15725,8 +15725,8 @@ function kg(e, t) {
|
|
|
15725
15725
|
};
|
|
15726
15726
|
e.value.rest.save_many([B]);
|
|
15727
15727
|
} else {
|
|
15728
|
-
const B = Ku(e.value.mapping, (G) => G.sort), q = V.parent.childNodes.map((G) => G.data),
|
|
15729
|
-
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 = {
|
|
15730
15730
|
id: oe,
|
|
15731
15731
|
sort: Ne
|
|
15732
15732
|
};
|
|
@@ -15864,7 +15864,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
15864
15864
|
}
|
|
15865
15865
|
function a(r, i) {
|
|
15866
15866
|
const u = l.value?.getData();
|
|
15867
|
-
u?.length ? (n.rest.save_many(u), i()) : (
|
|
15867
|
+
u?.length ? (n.rest.save_many(u), i()) : (Z.info("内容为空"), i(!1));
|
|
15868
15868
|
}
|
|
15869
15869
|
return t({ open: s }), (r, i) => {
|
|
15870
15870
|
const u = w("el-text"), c = w("el-tag"), d = w("el-space");
|
|
@@ -16149,7 +16149,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16149
16149
|
const { $fields: P, $modes: $ } = l.view, F = c.value, U = P[F], A = l.view.$modes[F];
|
|
16150
16150
|
return U || (A ? i(A) : new me());
|
|
16151
16151
|
}), _ = x("");
|
|
16152
|
-
|
|
16152
|
+
X(_, (P) => s.value.filter(P));
|
|
16153
16153
|
const {
|
|
16154
16154
|
collection: g,
|
|
16155
16155
|
selection: p,
|
|
@@ -16194,7 +16194,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16194
16194
|
onMeta: $[0] || ($[0] = (q) => o("meta", q))
|
|
16195
16195
|
}, null, 8, ["collection", "expansion", "collector", "disclosure"]),
|
|
16196
16196
|
m(F, { direction: "vertical" }),
|
|
16197
|
-
|
|
16197
|
+
Q(P.$slots, "header", { width: B }, () => [
|
|
16198
16198
|
m(U, { tag: "b" }, {
|
|
16199
16199
|
default: f(() => [
|
|
16200
16200
|
S(z(e.view.$meta_name), 1)
|
|
@@ -16250,16 +16250,16 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16250
16250
|
data: B,
|
|
16251
16251
|
field: d.value
|
|
16252
16252
|
}, null, 8, ["node", "data", "field"]),
|
|
16253
|
-
|
|
16253
|
+
Q(P.$slots, "prefix", {
|
|
16254
16254
|
isLeaf: B.isLeaf,
|
|
16255
16255
|
node: q,
|
|
16256
16256
|
data: B
|
|
16257
16257
|
}, () => [
|
|
16258
|
-
B.isLeaf ?
|
|
16258
|
+
B.isLeaf ? Q(P.$slots, "prefix-leaf", {
|
|
16259
16259
|
key: 0,
|
|
16260
16260
|
node: q,
|
|
16261
16261
|
data: B
|
|
16262
|
-
}) :
|
|
16262
|
+
}) : Q(P.$slots, "prefix-branch", {
|
|
16263
16263
|
key: 1,
|
|
16264
16264
|
node: q,
|
|
16265
16265
|
data: B
|
|
@@ -16270,16 +16270,16 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16270
16270
|
}, 1024),
|
|
16271
16271
|
m(A, null, {
|
|
16272
16272
|
default: f(() => [
|
|
16273
|
-
|
|
16273
|
+
Q(P.$slots, "suffix", {
|
|
16274
16274
|
isLeaf: B.isLeaf,
|
|
16275
16275
|
node: q,
|
|
16276
16276
|
data: B
|
|
16277
16277
|
}, () => [
|
|
16278
|
-
B.isLeaf ?
|
|
16278
|
+
B.isLeaf ? Q(P.$slots, "suffix-leaf", {
|
|
16279
16279
|
key: 0,
|
|
16280
16280
|
node: q,
|
|
16281
16281
|
data: B
|
|
16282
|
-
}) :
|
|
16282
|
+
}) : Q(P.$slots, "suffix-branch", {
|
|
16283
16283
|
key: 1,
|
|
16284
16284
|
node: q,
|
|
16285
16285
|
data: B
|
|
@@ -16330,12 +16330,12 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16330
16330
|
});
|
|
16331
16331
|
}).catch((g) => {
|
|
16332
16332
|
console.log(g);
|
|
16333
|
-
}) :
|
|
16333
|
+
}) : Z.warning("获取用户信息失败");
|
|
16334
16334
|
};
|
|
16335
16335
|
function c(d, _) {
|
|
16336
16336
|
const { account_id: g } = d, v = (a.value?.getData() || [])[0];
|
|
16337
16337
|
qe(v) || (v.account_id = g, i.save_one(v).then((y) => {
|
|
16338
|
-
o("reload"),
|
|
16338
|
+
o("reload"), Z.success("用户信息修改成功"), _();
|
|
16339
16339
|
})), _(!1);
|
|
16340
16340
|
}
|
|
16341
16341
|
return t({ open: u }), (d, _) => (b(), k(h(le), {
|
|
@@ -16625,7 +16625,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16625
16625
|
}),
|
|
16626
16626
|
m(c, null, {
|
|
16627
16627
|
default: f(() => [
|
|
16628
|
-
|
|
16628
|
+
Q(a.$slots, "tool", {}, void 0, !0),
|
|
16629
16629
|
m(Dg)
|
|
16630
16630
|
]),
|
|
16631
16631
|
_: 3
|
|
@@ -16643,7 +16643,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16643
16643
|
m(Rg, { mapping: h(l) }, null, 8, ["mapping"]),
|
|
16644
16644
|
m(c, null, {
|
|
16645
16645
|
default: f(() => [
|
|
16646
|
-
|
|
16646
|
+
Q(a.$slots, "tag", {}, void 0, !0)
|
|
16647
16647
|
]),
|
|
16648
16648
|
_: 3
|
|
16649
16649
|
})
|
|
@@ -16665,7 +16665,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16665
16665
|
height: `${h(t).footer}px`
|
|
16666
16666
|
}, {
|
|
16667
16667
|
default: f(() => [
|
|
16668
|
-
|
|
16668
|
+
Q(a.$slots, "footer", {}, () => [
|
|
16669
16669
|
m(u, { type: "info" }, {
|
|
16670
16670
|
default: f(() => [
|
|
16671
16671
|
m(c, null, {
|
|
@@ -16720,10 +16720,10 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16720
16720
|
const s = w("el-button");
|
|
16721
16721
|
return h(n) === "CONNECTED" ? (b(), k(Ng, { key: 0 }, {
|
|
16722
16722
|
tool: f(() => [
|
|
16723
|
-
|
|
16723
|
+
Q(o.$slots, "tool")
|
|
16724
16724
|
]),
|
|
16725
16725
|
footer: f(() => [
|
|
16726
|
-
|
|
16726
|
+
Q(o.$slots, "footer")
|
|
16727
16727
|
]),
|
|
16728
16728
|
_: 3
|
|
16729
16729
|
})) : h(n) === "CONNECTING" ? (b(), k(j, {
|
|
@@ -16737,7 +16737,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16737
16737
|
S("CONNECTING... ", -1)
|
|
16738
16738
|
])]),
|
|
16739
16739
|
_: 1
|
|
16740
|
-
})) :
|
|
16740
|
+
})) : Q(o.$slots, "connect", { key: 2 }, () => [
|
|
16741
16741
|
m(s, {
|
|
16742
16742
|
size: "small",
|
|
16743
16743
|
type: "primary",
|
|
@@ -16793,7 +16793,7 @@ const Rr = /* @__PURE__ */ I({
|
|
|
16793
16793
|
const C = `/valar/${n.field.$db}/${n.field.$entity}/remove_file`;
|
|
16794
16794
|
De.warning(`是否删除文件:${l.value}`).then(() => _(C, i.value)).then(() => {
|
|
16795
16795
|
l.value = null, o("reload");
|
|
16796
|
-
}).catch(() =>
|
|
16796
|
+
}).catch(() => Z.info("取消删除文件"));
|
|
16797
16797
|
}
|
|
16798
16798
|
const v = localStorage.getItem("MINIO");
|
|
16799
16799
|
function y() {
|
|
@@ -16801,13 +16801,13 @@ const Rr = /* @__PURE__ */ I({
|
|
|
16801
16801
|
}
|
|
16802
16802
|
function E(C) {
|
|
16803
16803
|
const { name: V, size: P } = C, $ = V.indexOf(".") !== -1 ? `.${V.split(".").pop()}` : "", F = [];
|
|
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 ? (
|
|
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;
|
|
16805
16805
|
}
|
|
16806
16806
|
function T(C) {
|
|
16807
|
-
C.payload ? (l.value = C.payload, o("reload"),
|
|
16807
|
+
C.payload ? (l.value = C.payload, o("reload"), Z.success("上传成功!")) : D(), s.value?.clearFiles();
|
|
16808
16808
|
}
|
|
16809
16809
|
function D() {
|
|
16810
|
-
|
|
16810
|
+
Z.error("上传失败");
|
|
16811
16811
|
}
|
|
16812
16812
|
return (C, V) => {
|
|
16813
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");
|
|
@@ -16950,7 +16950,7 @@ const Rr = /* @__PURE__ */ I({
|
|
|
16950
16950
|
set: (r) => l("update:modelValue", r)
|
|
16951
16951
|
});
|
|
16952
16952
|
function a(r, i) {
|
|
16953
|
-
i(),
|
|
16953
|
+
i(), Z.info("JSON结果已暂存");
|
|
16954
16954
|
}
|
|
16955
16955
|
return (r, i) => {
|
|
16956
16956
|
const u = w("el-button");
|
|
@@ -17008,7 +17008,7 @@ const Rr = /* @__PURE__ */ I({
|
|
|
17008
17008
|
set: (i) => o("update:modelValue", i || null)
|
|
17009
17009
|
}), s = x(), a = x();
|
|
17010
17010
|
function r(i, u) {
|
|
17011
|
-
|
|
17011
|
+
Z.info("富文本结果已暂存"), u();
|
|
17012
17012
|
}
|
|
17013
17013
|
return (i, u) => {
|
|
17014
17014
|
const c = w("el-button");
|
|
@@ -17348,13 +17348,13 @@ const Vn = /* @__PURE__ */ I({
|
|
|
17348
17348
|
reset: _,
|
|
17349
17349
|
invalid: g
|
|
17350
17350
|
} = Mm(l);
|
|
17351
|
-
|
|
17351
|
+
X(c, () => {
|
|
17352
17352
|
const v = Object.values(d.value).map((y) => [y.prop, y.value]);
|
|
17353
17353
|
o("change", Object.fromEntries(v), g.value);
|
|
17354
17354
|
}, { deep: !0 });
|
|
17355
17355
|
function p() {
|
|
17356
17356
|
if (g.value)
|
|
17357
|
-
return
|
|
17357
|
+
return Z.warning("注意验证信息"), null;
|
|
17358
17358
|
const v = c.value;
|
|
17359
17359
|
return !l.insert && qe(v) ? [] : (l.keys || [l.item.id]).map((E) => ({ id: E, saved: !0, ...v }));
|
|
17360
17360
|
}
|
|
@@ -17436,7 +17436,7 @@ function jg(e) {
|
|
|
17436
17436
|
const t = x(Qe(e.item)), n = x(e.codes.length ? e.codes[0].value : "default"), o = x(new Me()), { manager: l } = he({
|
|
17437
17437
|
entity: e.entity
|
|
17438
17438
|
});
|
|
17439
|
-
return
|
|
17439
|
+
return X(n, () => {
|
|
17440
17440
|
l.meta_view(n.value).then((s) => {
|
|
17441
17441
|
const r = e.codes.find((i) => i.value === n.value)?.convert;
|
|
17442
17442
|
r && r(s), o.value = s;
|
|
@@ -17497,7 +17497,7 @@ const qg = {
|
|
|
17497
17497
|
disabled: e.disabled,
|
|
17498
17498
|
onChange: u
|
|
17499
17499
|
}, null, 8, ["view", "item", "temp", "disabled"]),
|
|
17500
|
-
|
|
17500
|
+
Q(_.$slots, "default", {
|
|
17501
17501
|
view: h(s),
|
|
17502
17502
|
item: h(a),
|
|
17503
17503
|
update: r,
|
|
@@ -17560,8 +17560,8 @@ function Kg(e, t) {
|
|
|
17560
17560
|
},
|
|
17561
17561
|
download: () => {
|
|
17562
17562
|
l.find(..._.value).then((R) => {
|
|
17563
|
-
const B = P(R), q = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" },
|
|
17564
|
-
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 }));
|
|
17565
17565
|
});
|
|
17566
17566
|
}
|
|
17567
17567
|
},
|
|
@@ -18338,7 +18338,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18338
18338
|
db: o.value.db,
|
|
18339
18339
|
entity: o.value.entity || ""
|
|
18340
18340
|
})));
|
|
18341
|
-
|
|
18341
|
+
X(() => [
|
|
18342
18342
|
o.value.db,
|
|
18343
18343
|
o.value.entity,
|
|
18344
18344
|
o.value.isTree
|
|
@@ -18624,7 +18624,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18624
18624
|
});
|
|
18625
18625
|
function i(u, c) {
|
|
18626
18626
|
const d = s.value?.getData();
|
|
18627
|
-
d == null ? (
|
|
18627
|
+
d == null ? (Z.warning("请查看验证信息"), c(!1)) : qe(d) ? (Z.info("数据无变化"), c(!1)) : (r.save_many([d]), c());
|
|
18628
18628
|
}
|
|
18629
18629
|
return t({ open: a }), (u, c) => (b(), k(h(le), {
|
|
18630
18630
|
ref_key: "dialog",
|
|
@@ -18669,7 +18669,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18669
18669
|
const p = a.value?.getSelection(), v = l.view.id, y = p?.map((E) => E.prop);
|
|
18670
18670
|
y?.length ? i("valar/add_fields", { view_id: v, props: y }).then(() => {
|
|
18671
18671
|
o("complete"), g();
|
|
18672
|
-
}) : (
|
|
18672
|
+
}) : (Z.info("请选择"), g(!1));
|
|
18673
18673
|
}
|
|
18674
18674
|
return t({ open: c }), (_, g) => (b(), k(h(le), {
|
|
18675
18675
|
ref_key: "dialog",
|
|
@@ -18795,7 +18795,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18795
18795
|
}
|
|
18796
18796
|
function i(u, c) {
|
|
18797
18797
|
const d = s.value?.getData();
|
|
18798
|
-
d?.length ? (a.save_many(d), c()) : (
|
|
18798
|
+
d?.length ? (a.save_many(d), c()) : (Z.info("请选择"), c(!1));
|
|
18799
18799
|
}
|
|
18800
18800
|
return t({ open: r }), (u, c) => (b(), k(h(le), {
|
|
18801
18801
|
ref_key: "dialog",
|
|
@@ -19155,7 +19155,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
19155
19155
|
});
|
|
19156
19156
|
function r(u, c) {
|
|
19157
19157
|
const d = s.value?.getData();
|
|
19158
|
-
qe(d) ? (
|
|
19158
|
+
qe(d) ? (Z.info("数据未修改"), c()) : a.save_one(d).then(() => {
|
|
19159
19159
|
o("reload"), c();
|
|
19160
19160
|
});
|
|
19161
19161
|
}
|
|
@@ -19561,7 +19561,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
19561
19561
|
onField: s.value?.open
|
|
19562
19562
|
}, {
|
|
19563
19563
|
header: f(({ width: F }) => [
|
|
19564
|
-
|
|
19564
|
+
Q(P.$slots, "header", { width: F })
|
|
19565
19565
|
]),
|
|
19566
19566
|
_: 3
|
|
19567
19567
|
}, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "loading", "ticker", "error", "admin", "title", "single", "height", "buttons", "columns", "onMeta", "onField"]),
|
|
@@ -19593,7 +19593,7 @@ function gh(e) {
|
|
|
19593
19593
|
size: e.value.size,
|
|
19594
19594
|
orders: a.value
|
|
19595
19595
|
}));
|
|
19596
|
-
return
|
|
19596
|
+
return X(a, () => r.value.orders = a.value, { deep: !0 }), {
|
|
19597
19597
|
items: n,
|
|
19598
19598
|
mapping: o,
|
|
19599
19599
|
total: l,
|
|
@@ -19606,7 +19606,7 @@ function hh(e) {
|
|
|
19606
19606
|
const { fromMode: t } = Ae(), n = O(
|
|
19607
19607
|
() => lo(...e.value.results.map(Object.keys)).filter((s) => !["id", "sort", "saved"].includes(s))
|
|
19608
19608
|
), o = x(l());
|
|
19609
|
-
|
|
19609
|
+
X(() => [
|
|
19610
19610
|
e.value.modes,
|
|
19611
19611
|
n.value
|
|
19612
19612
|
], () => o.value = l(), { deep: !0 });
|
|
@@ -19641,7 +19641,7 @@ function vh(e, t) {
|
|
|
19641
19641
|
function v() {
|
|
19642
19642
|
p.value = l.value.filter(g);
|
|
19643
19643
|
}
|
|
19644
|
-
|
|
19644
|
+
X(() => [
|
|
19645
19645
|
d.value,
|
|
19646
19646
|
l.value
|
|
19647
19647
|
], v, { deep: !0 });
|
|
@@ -19691,7 +19691,7 @@ function vh(e, t) {
|
|
|
19691
19691
|
},
|
|
19692
19692
|
download: () => {
|
|
19693
19693
|
const $ = T(y.value), F = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, U = n.value.title;
|
|
19694
|
-
De.info("请选择数据下载方式:", F).then(() => C(D($))).then(() =>
|
|
19694
|
+
De.info("请选择数据下载方式:", F).then(() => C(D($))).then(() => Z.success("数据已存至剪切板")).catch(() => V(U || gt(), { data: $, name: U }));
|
|
19695
19695
|
}
|
|
19696
19696
|
},
|
|
19697
19697
|
orders: r
|
|
@@ -19728,7 +19728,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19728
19728
|
} = vh(l, (y) => {
|
|
19729
19729
|
s.value?.set(y);
|
|
19730
19730
|
});
|
|
19731
|
-
return
|
|
19731
|
+
return X(a, () => {
|
|
19732
19732
|
o("change", a.value);
|
|
19733
19733
|
}, { deep: !0 }), t({
|
|
19734
19734
|
getSelection: (y = !1) => {
|
|
@@ -19756,7 +19756,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19756
19756
|
columns: e.columns
|
|
19757
19757
|
}, {
|
|
19758
19758
|
header: f(({ width: T }) => [
|
|
19759
|
-
|
|
19759
|
+
Q(y.$slots, "header", { width: T })
|
|
19760
19760
|
]),
|
|
19761
19761
|
_: 3
|
|
19762
19762
|
}, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "error", "admin", "title", "single", "height", "buttons", "columns"]));
|
|
@@ -19816,7 +19816,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19816
19816
|
key: 0,
|
|
19817
19817
|
direction: "vertical"
|
|
19818
19818
|
})) : K("", !0),
|
|
19819
|
-
|
|
19819
|
+
Q(g.$slots, "header", { width: T })
|
|
19820
19820
|
]),
|
|
19821
19821
|
_: 2
|
|
19822
19822
|
}, 1024)
|
|
@@ -19828,7 +19828,7 @@ const zt = /* @__PURE__ */ I({
|
|
|
19828
19828
|
});
|
|
19829
19829
|
function yh(e, t) {
|
|
19830
19830
|
const n = x(new Pt({ ...e.value, type: "tree" }));
|
|
19831
|
-
|
|
19831
|
+
X(() => e.value.root, ($) => n.value.root = $ || 0);
|
|
19832
19832
|
const {
|
|
19833
19833
|
model: o,
|
|
19834
19834
|
manager: l,
|
|
@@ -20090,7 +20090,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20090
20090
|
function P(F, U) {
|
|
20091
20091
|
F.stopPropagation(), F.preventDefault(), a.value?.set([U]);
|
|
20092
20092
|
}
|
|
20093
|
-
return
|
|
20093
|
+
return X(() => a.value?.selection, (F) => {
|
|
20094
20094
|
if (l.single) {
|
|
20095
20095
|
const U = F?.length === 1 ? F[0] : null;
|
|
20096
20096
|
o("change", U);
|
|
@@ -20130,10 +20130,10 @@ const bh = /* @__PURE__ */ I({
|
|
|
20130
20130
|
onTable: r.value?.open
|
|
20131
20131
|
}, {
|
|
20132
20132
|
header: f(({ width: R }) => [
|
|
20133
|
-
|
|
20133
|
+
Q(F.$slots, "header", { width: R })
|
|
20134
20134
|
]),
|
|
20135
20135
|
prefix: f(({ data: R, node: B, isLeaf: q }) => [
|
|
20136
|
-
|
|
20136
|
+
Q(F.$slots, "prefix", {
|
|
20137
20137
|
isLeaf: R.isLeaf,
|
|
20138
20138
|
node: B,
|
|
20139
20139
|
data: R,
|
|
@@ -20141,35 +20141,35 @@ const bh = /* @__PURE__ */ I({
|
|
|
20141
20141
|
})
|
|
20142
20142
|
]),
|
|
20143
20143
|
"prefix-leaf": f(({ data: R, node: B }) => [
|
|
20144
|
-
|
|
20144
|
+
Q(F.$slots, "prefix-leaf", {
|
|
20145
20145
|
node: B,
|
|
20146
20146
|
data: R,
|
|
20147
20147
|
select: P
|
|
20148
20148
|
})
|
|
20149
20149
|
]),
|
|
20150
20150
|
"prefix-branch": f(({ data: R, node: B }) => [
|
|
20151
|
-
|
|
20151
|
+
Q(F.$slots, "prefix-branch", {
|
|
20152
20152
|
node: B,
|
|
20153
20153
|
data: R,
|
|
20154
20154
|
select: P
|
|
20155
20155
|
})
|
|
20156
20156
|
]),
|
|
20157
20157
|
suffix: f(({ data: R, node: B, isLeaf: q }) => [
|
|
20158
|
-
|
|
20158
|
+
Q(F.$slots, "suffix", {
|
|
20159
20159
|
node: B,
|
|
20160
20160
|
data: R,
|
|
20161
20161
|
select: P
|
|
20162
20162
|
})
|
|
20163
20163
|
]),
|
|
20164
20164
|
"suffix-leaf": f(({ data: R, node: B }) => [
|
|
20165
|
-
|
|
20165
|
+
Q(F.$slots, "suffix-leaf", {
|
|
20166
20166
|
node: B,
|
|
20167
20167
|
data: R,
|
|
20168
20168
|
select: P
|
|
20169
20169
|
})
|
|
20170
20170
|
]),
|
|
20171
20171
|
"suffix-branch": f(({ data: R, node: B }) => [
|
|
20172
|
-
|
|
20172
|
+
Q(F.$slots, "suffix-branch", {
|
|
20173
20173
|
node: B,
|
|
20174
20174
|
data: R,
|
|
20175
20175
|
select: P
|
|
@@ -20218,7 +20218,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20218
20218
|
const i = n(l.value);
|
|
20219
20219
|
return o(i, s.value);
|
|
20220
20220
|
});
|
|
20221
|
-
|
|
20221
|
+
X(() => t.url, r, { deep: !0, immediate: !0 });
|
|
20222
20222
|
async function r() {
|
|
20223
20223
|
const i = await fetch(t.url);
|
|
20224
20224
|
l.value = await i.text();
|
|
@@ -20257,7 +20257,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20257
20257
|
return c ? `.${c}` : "";
|
|
20258
20258
|
});
|
|
20259
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);
|
|
20260
|
-
return
|
|
20260
|
+
return X(() => t.url, () => {
|
|
20261
20261
|
n(t.url).then((c) => {
|
|
20262
20262
|
l.value = c;
|
|
20263
20263
|
const d = Object.keys(c);
|
|
@@ -20410,7 +20410,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20410
20410
|
},
|
|
20411
20411
|
setup(e) {
|
|
20412
20412
|
const t = e, n = x("");
|
|
20413
|
-
|
|
20413
|
+
X(() => t.url, o, { deep: !0, immediate: !0 });
|
|
20414
20414
|
async function o() {
|
|
20415
20415
|
const l = await fetch(t.url);
|
|
20416
20416
|
n.value = await l.text();
|
|
@@ -20439,7 +20439,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20439
20439
|
return u ? `.${u}` : "";
|
|
20440
20440
|
}), l = localStorage.getItem("MINIO"), s = O(() => t.path ? `${l}/${decodeURI(t.path)}` : null);
|
|
20441
20441
|
function a(i) {
|
|
20442
|
-
i && t.field?.format.locked ?
|
|
20442
|
+
i && t.field?.format.locked ? Z.warning("抱歉,该文件不支持下载!请在线预览。") : s.value ? window.open(s.value, "_blank") : Z.warning("无文件");
|
|
20443
20443
|
}
|
|
20444
20444
|
const r = O(() => {
|
|
20445
20445
|
switch (o.value) {
|
|
@@ -20530,7 +20530,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20530
20530
|
validate(e) {
|
|
20531
20531
|
if (e === "admin") return !0;
|
|
20532
20532
|
const t = this.account.validateRegExp.test(e);
|
|
20533
|
-
return t ||
|
|
20533
|
+
return t || Z.error(this.account.validateMessage), t;
|
|
20534
20534
|
},
|
|
20535
20535
|
init(e) {
|
|
20536
20536
|
this.baseURL = e?.baseURL || "/api/", this.title = e?.title || "Valar Morghulis", this.signInOnly = e?.signInOnly || !1, this.scope = e?.scope || "admin";
|
|
@@ -20846,7 +20846,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
20846
20846
|
setup(e, { expose: t, emit: n }) {
|
|
20847
20847
|
const o = n, l = e, s = x(), a = x();
|
|
20848
20848
|
function r() {
|
|
20849
|
-
l.vacant.length ? s.value?.open(l.vacant) :
|
|
20849
|
+
l.vacant.length ? s.value?.open(l.vacant) : Z.warning("无可用路由");
|
|
20850
20850
|
}
|
|
20851
20851
|
function i(u, c) {
|
|
20852
20852
|
const _ = (a.value?.getSelection() || []).map((g) => ({ ...g, isLeaf: !0, pid: l.pid }));
|
|
@@ -20884,7 +20884,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
20884
20884
|
c ? De.info("是否将菜单名称设置为路由名称").then(() => {
|
|
20885
20885
|
const d = { id: u.id, name: c };
|
|
20886
20886
|
o("confirm", [d]), s.value?.close();
|
|
20887
|
-
}) :
|
|
20887
|
+
}) : Z.info("已是默认值");
|
|
20888
20888
|
}
|
|
20889
20889
|
const i = (u) => {
|
|
20890
20890
|
const c = ve(u, ["id", "path"]);
|
|
@@ -21060,7 +21060,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21060
21060
|
}
|
|
21061
21061
|
];
|
|
21062
21062
|
function u(d) {
|
|
21063
|
-
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("密码已复制到剪切板")));
|
|
21064
21064
|
}
|
|
21065
21065
|
function c(d) {
|
|
21066
21066
|
De.info(`是否重置账户 “${d.username}” 的密码`).then(() => a.retrieve({ id: d.id })).finally(() => o.value?.rest.reload());
|
|
@@ -21492,7 +21492,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21492
21492
|
immediate: !0
|
|
21493
21493
|
// 立即开始
|
|
21494
21494
|
});
|
|
21495
|
-
return
|
|
21495
|
+
return X(n, () => {
|
|
21496
21496
|
n.value >= 10 && (o(), t.push("/"));
|
|
21497
21497
|
}), (a, r) => {
|
|
21498
21498
|
const i = w("el-text"), u = w("el-button"), c = w("el-space"), d = w("el-empty");
|
|
@@ -21563,7 +21563,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21563
21563
|
immediate: !0
|
|
21564
21564
|
// 立即开始
|
|
21565
21565
|
});
|
|
21566
|
-
return
|
|
21566
|
+
return X(n, () => {
|
|
21567
21567
|
n.value >= 10 && (o(), t.push("/"));
|
|
21568
21568
|
}), (a, r) => {
|
|
21569
21569
|
const i = w("el-text"), u = w("el-button"), c = w("el-space"), d = w("el-result");
|
|
@@ -21654,7 +21654,7 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21654
21654
|
$$message: kr,
|
|
21655
21655
|
$alert: Pm,
|
|
21656
21656
|
$confirm: De,
|
|
21657
|
-
$message:
|
|
21657
|
+
$message: Z,
|
|
21658
21658
|
CodesForm: Jo,
|
|
21659
21659
|
CodesTable: Mr,
|
|
21660
21660
|
Condition: Te,
|
|
@@ -21724,7 +21724,7 @@ export {
|
|
|
21724
21724
|
kr as $$message,
|
|
21725
21725
|
Pm as $alert,
|
|
21726
21726
|
De as $confirm,
|
|
21727
|
-
|
|
21727
|
+
Z as $message,
|
|
21728
21728
|
Jo as CodesForm,
|
|
21729
21729
|
Mr as CodesTable,
|
|
21730
21730
|
Te as Condition,
|