kouxiangtang 0.0.39 → 0.0.40
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/{AttachmentUploader-BdDkTump.js → AttachmentUploader-DkBTVZW9.js} +2 -2
- package/dist/{AttachmentUploader-BdDkTump.js.map → AttachmentUploader-DkBTVZW9.js.map} +1 -1
- package/dist/{ImageUploader-CHkIpPtj.js → ImageUploader-CI5IMfbX.js} +2 -2
- package/dist/{ImageUploader-CHkIpPtj.js.map → ImageUploader-CI5IMfbX.js.map} +1 -1
- package/dist/{ImagesUploader-p9a3bu1Q.js → ImagesUploader-DP3H4CgN.js} +2 -2
- package/dist/{ImagesUploader-p9a3bu1Q.js.map → ImagesUploader-DP3H4CgN.js.map} +1 -1
- package/dist/{RichTextEditor-DJYZD9vY.js → RichTextEditor-CmWUYWbU.js} +2 -2
- package/dist/{RichTextEditor-DJYZD9vY.js.map → RichTextEditor-CmWUYWbU.js.map} +1 -1
- package/dist/{config-B1iWoDgQ.js → config-BHQjTR1P.js} +3 -3
- package/dist/{config-B1iWoDgQ.js.map → config-BHQjTR1P.js.map} +1 -1
- package/dist/{config-DuvmS9LR.js → config-BNwOB5hl.js} +2 -2
- package/dist/{config-DuvmS9LR.js.map → config-BNwOB5hl.js.map} +1 -1
- package/dist/{config-BDG6ljUO.js → config-BwOPNyIw.js} +2 -2
- package/dist/{config-BDG6ljUO.js.map → config-BwOPNyIw.js.map} +1 -1
- package/dist/{config-BmOWXJKs.js → config-C-L6-5nl.js} +3 -3
- package/dist/{config-BmOWXJKs.js.map → config-C-L6-5nl.js.map} +1 -1
- package/dist/{config-trKFYrjO.js → config-C77NlS42.js} +2 -2
- package/dist/{config-trKFYrjO.js.map → config-C77NlS42.js.map} +1 -1
- package/dist/{config-Xu4Cnivk.js → config-CI8auEwd.js} +2 -2
- package/dist/{config-Xu4Cnivk.js.map → config-CI8auEwd.js.map} +1 -1
- package/dist/{config-BeivkfGi.js → config-CscLYdNf.js} +2 -2
- package/dist/{config-BeivkfGi.js.map → config-CscLYdNf.js.map} +1 -1
- package/dist/{config-CzMS2zhn.js → config-CtTzTOfQ.js} +2 -2
- package/dist/{config-CzMS2zhn.js.map → config-CtTzTOfQ.js.map} +1 -1
- package/dist/{config-C7y05luV.js → config-DiYB27JS.js} +2 -2
- package/dist/{config-C7y05luV.js.map → config-DiYB27JS.js.map} +1 -1
- package/dist/{config-BbXDjdqk.js → config-Dv3oakjJ.js} +2 -2
- package/dist/{config-BbXDjdqk.js.map → config-Dv3oakjJ.js.map} +1 -1
- package/dist/{config-ClsjosNk.js → config-ZW08WCha.js} +2 -2
- package/dist/{config-ClsjosNk.js.map → config-ZW08WCha.js.map} +1 -1
- package/dist/{config-C5CioVqt.js → config-cPSnYR_W.js} +3 -3
- package/dist/{config-C5CioVqt.js.map → config-cPSnYR_W.js.map} +1 -1
- package/dist/{config-SWYlqm92.js → config-imtlNR-t.js} +2 -2
- package/dist/{config-SWYlqm92.js.map → config-imtlNR-t.js.map} +1 -1
- package/dist/{config-DTVPd1QF.js → config-pxsBixPq.js} +2 -2
- package/dist/{config-DTVPd1QF.js.map → config-pxsBixPq.js.map} +1 -1
- package/dist/{config-CsDCisYj.js → config-rtFPHOZL.js} +2 -2
- package/dist/{config-CsDCisYj.js.map → config-rtFPHOZL.js.map} +1 -1
- package/dist/{config-BUyzXYu7.js → config-uT5A3c5i.js} +2 -2
- package/dist/{config-BUyzXYu7.js.map → config-uT5A3c5i.js.map} +1 -1
- package/dist/{index-BX1xTWzJ.js → index-BF3lUmGn.js} +230 -231
- package/dist/{index-BX1xTWzJ.js.map → index-BF3lUmGn.js.map} +1 -1
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +1 -1
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as d, createBlock as $, unref as f, createSlots as Ce, withCtx as b, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as Me, withDirectives as me, createElementBlock as S, normalizeStyle as Qe, createVNode as x, createTextVNode as j, computed as
|
|
1
|
+
import { openBlock as d, createBlock as $, unref as f, createSlots as Ce, withCtx as b, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as Me, withDirectives as me, createElementBlock as S, normalizeStyle as Qe, createVNode as x, createTextVNode as j, computed as I, Fragment as L, renderList as M, ref as A, reactive as Ee, watch as B, resolveDynamicComponent as Y, createCommentVNode as T, shallowRef as Q, defineAsyncComponent as Jn, normalizeClass as $e, defineComponent as H, pushScopeId as rn, popScopeId as an, withModifiers as Ot, useSlots as Ae, onMounted as ln, normalizeProps as kt, guardReactiveProps as Ct, getCurrentScope as Qn, onScopeDispose as Gn, getCurrentInstance as Yn, nextTick as Kn, useCssVars as Xn } from "vue";
|
|
2
2
|
import { ElCard as un, ElLink as Zn, vLoading as he, ElRow as Se, ElCol as be, ElForm as cn, ElFormItem as tt, ElAlert as es, ElButton as te, ElMessageBox as ts, ElMessage as Be, ElDialog as ns, ElLoading as Le, ElTooltip as ss, ElText as At, ElImage as dn, ElTabs as pn, ElTabPane as fn, ElDropdown as nt, ElDropdownMenu as st, ElDropdownItem as le, ElIcon as G, ElSubMenu as os, ElMenuItem as rs, ElScrollbar as as, ElMenu as is, ElConfigProvider as ls, ElContainer as Rt, ElHeader as us, ElAside as cs, ElMain as ds, ElInputNumber as Dt, ElSelect as Tt, ElOption as Ge, ElSelectV2 as ps, ElDatePicker as Ft, ElInput as fs, ElButtonGroup as ce, ElEmpty as ms, ElTable as hs, ElTableColumn as Fe, ElPagination as gs, ElCollapse as _s, ElCollapseItem as ys } from "element-plus";
|
|
3
3
|
import { useRoute as z, useRouter as ge } from "vue-router";
|
|
4
4
|
import { defineStore as ft, storeToRefs as xe } from "pinia";
|
|
@@ -95,14 +95,14 @@ const Ts = (t, e, n, { allOwnKeys: s } = {}) => (Re(e, (o, r) => {
|
|
|
95
95
|
for (; e-- > 0; )
|
|
96
96
|
n[e] = t[e];
|
|
97
97
|
return n;
|
|
98
|
-
}, Ns = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && mt(Uint8Array)),
|
|
98
|
+
}, Ns = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && mt(Uint8Array)), Is = (t, e) => {
|
|
99
99
|
const s = (t && t[Symbol.iterator]).call(t);
|
|
100
100
|
let o;
|
|
101
101
|
for (; (o = s.next()) && !o.done; ) {
|
|
102
102
|
const r = o.value;
|
|
103
103
|
e.call(t, r[0], r[1]);
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, Vs = (t, e) => {
|
|
106
106
|
let n;
|
|
107
107
|
const s = [];
|
|
108
108
|
for (; (n = t.exec(e)) !== null; )
|
|
@@ -205,8 +205,8 @@ const Ys = (t) => {
|
|
|
205
205
|
kindOfTest: se,
|
|
206
206
|
endsWith: js,
|
|
207
207
|
toArray: Bs,
|
|
208
|
-
forEachEntry:
|
|
209
|
-
matchAll:
|
|
208
|
+
forEachEntry: Is,
|
|
209
|
+
matchAll: Vs,
|
|
210
210
|
isHTMLForm: Us,
|
|
211
211
|
hasOwnProperty: Lt,
|
|
212
212
|
hasOwnProp: Lt,
|
|
@@ -302,8 +302,8 @@ function Je(t, e, n) {
|
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(u,
|
|
306
|
-
return !v.isUndefined(
|
|
305
|
+
}, !1, function(u, _) {
|
|
306
|
+
return !v.isUndefined(_[u]);
|
|
307
307
|
});
|
|
308
308
|
const s = n.metaTokens, o = n.visitor || l, r = n.dots, a = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
|
|
309
309
|
if (!v.isFunction(o))
|
|
@@ -317,9 +317,9 @@ function Je(t, e, n) {
|
|
|
317
317
|
throw new R("Blob is not supported. Use a Buffer instead.");
|
|
318
318
|
return v.isArrayBuffer(m) || v.isTypedArray(m) ? c && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
319
319
|
}
|
|
320
|
-
function l(m, u,
|
|
320
|
+
function l(m, u, _) {
|
|
321
321
|
let g = m;
|
|
322
|
-
if (m && !
|
|
322
|
+
if (m && !_ && typeof m == "object") {
|
|
323
323
|
if (v.endsWith(u, "{}"))
|
|
324
324
|
u = s ? u : u.slice(0, -2), m = JSON.stringify(m);
|
|
325
325
|
else if (v.isArray(m) && eo(m) || (v.isFileList(m) || v.endsWith(u, "[]")) && (g = v.toArray(m)))
|
|
@@ -331,7 +331,7 @@ function Je(t, e, n) {
|
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return rt(m) ? !0 : (e.append(jt(
|
|
334
|
+
return rt(m) ? !0 : (e.append(jt(_, u, r), h(m)), !1);
|
|
335
335
|
}
|
|
336
336
|
const p = [], E = Object.assign(to, {
|
|
337
337
|
defaultVisitor: l,
|
|
@@ -342,14 +342,14 @@ function Je(t, e, n) {
|
|
|
342
342
|
if (!v.isUndefined(m)) {
|
|
343
343
|
if (p.indexOf(m) !== -1)
|
|
344
344
|
throw Error("Circular reference detected in " + u.join("."));
|
|
345
|
-
p.push(m), v.forEach(m, function(g,
|
|
345
|
+
p.push(m), v.forEach(m, function(g, y) {
|
|
346
346
|
(!(v.isUndefined(g) || g === null) && o.call(
|
|
347
347
|
e,
|
|
348
348
|
g,
|
|
349
|
-
v.isString(
|
|
349
|
+
v.isString(y) ? y.trim() : y,
|
|
350
350
|
u,
|
|
351
351
|
E
|
|
352
|
-
)) === !0 && O(g, u ? u.concat(
|
|
352
|
+
)) === !0 && O(g, u ? u.concat(y) : [y]);
|
|
353
353
|
}), p.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -613,7 +613,7 @@ const ho = v.toObjectSet([
|
|
|
613
613
|
`).forEach(function(a) {
|
|
614
614
|
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), s = a.substring(o + 1).trim(), !(!n || e[n] && ho[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
|
|
615
615
|
}), e;
|
|
616
|
-
},
|
|
616
|
+
}, It = Symbol("internals");
|
|
617
617
|
function ve(t) {
|
|
618
618
|
return t && String(t).trim().toLowerCase();
|
|
619
619
|
}
|
|
@@ -751,7 +751,7 @@ class X {
|
|
|
751
751
|
return n.forEach((o) => s.set(o)), s;
|
|
752
752
|
}
|
|
753
753
|
static accessor(e) {
|
|
754
|
-
const s = (this[
|
|
754
|
+
const s = (this[It] = this[It] = {
|
|
755
755
|
accessors: {}
|
|
756
756
|
}).accessors, o = this.prototype;
|
|
757
757
|
function r(a) {
|
|
@@ -886,7 +886,7 @@ function ko(t, e) {
|
|
|
886
886
|
return O ? Math.round(E * 1e3 / O) : void 0;
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Vt(t, e) {
|
|
890
890
|
let n = 0;
|
|
891
891
|
const s = ko(50, 250);
|
|
892
892
|
return (o) => {
|
|
@@ -917,14 +917,14 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
|
|
|
917
917
|
if (ne.hasStandardBrowserEnv || ne.hasStandardBrowserWebWorkerEnv)
|
|
918
918
|
r.setContentType(!1);
|
|
919
919
|
else if ((l = r.getContentType()) !== !1) {
|
|
920
|
-
const [u, ...
|
|
921
|
-
r.setContentType([u || "multipart/form-data", ...
|
|
920
|
+
const [u, ..._] = l ? l.split(";").map((g) => g.trim()).filter(Boolean) : [];
|
|
921
|
+
r.setContentType([u || "multipart/form-data", ..._].join("; "));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
let p = new XMLHttpRequest();
|
|
925
925
|
if (t.auth) {
|
|
926
|
-
const u = t.auth.username || "",
|
|
927
|
-
r.set("Authorization", "Basic " + btoa(u + ":" +
|
|
926
|
+
const u = t.auth.username || "", _ = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
927
|
+
r.set("Authorization", "Basic " + btoa(u + ":" + _));
|
|
928
928
|
}
|
|
929
929
|
const E = Dn(t.baseURL, t.url);
|
|
930
930
|
p.open(t.method.toUpperCase(), On(E, t.params, t.paramsSerializer), !0), p.timeout = t.timeout;
|
|
@@ -954,10 +954,10 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
|
|
|
954
954
|
}, p.onerror = function() {
|
|
955
955
|
s(new R("Network Error", R.ERR_NETWORK, t, p)), p = null;
|
|
956
956
|
}, p.ontimeout = function() {
|
|
957
|
-
let
|
|
957
|
+
let _ = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
958
958
|
const g = t.transitional || kn;
|
|
959
|
-
t.timeoutErrorMessage && (
|
|
960
|
-
|
|
959
|
+
t.timeoutErrorMessage && (_ = t.timeoutErrorMessage), s(new R(
|
|
960
|
+
_,
|
|
961
961
|
g.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
|
|
962
962
|
t,
|
|
963
963
|
p
|
|
@@ -966,9 +966,9 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
|
|
|
966
966
|
const u = t.xsrfHeaderName && t.xsrfCookieName && Eo.read(t.xsrfCookieName);
|
|
967
967
|
u && r.set(t.xsrfHeaderName, u);
|
|
968
968
|
}
|
|
969
|
-
o === void 0 && r.setContentType(null), "setRequestHeader" in p && v.forEach(r.toJSON(), function(
|
|
970
|
-
p.setRequestHeader(g,
|
|
971
|
-
}), v.isUndefined(t.withCredentials) || (p.withCredentials = !!t.withCredentials), a && a !== "json" && (p.responseType = t.responseType), typeof t.onDownloadProgress == "function" && p.addEventListener("progress",
|
|
969
|
+
o === void 0 && r.setContentType(null), "setRequestHeader" in p && v.forEach(r.toJSON(), function(_, g) {
|
|
970
|
+
p.setRequestHeader(g, _);
|
|
971
|
+
}), v.isUndefined(t.withCredentials) || (p.withCredentials = !!t.withCredentials), a && a !== "json" && (p.responseType = t.responseType), typeof t.onDownloadProgress == "function" && p.addEventListener("progress", Vt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", Vt(t.onUploadProgress)), (t.cancelToken || t.signal) && (c = (u) => {
|
|
972
972
|
p && (s(!u || u.type ? new Te(null, t, p) : u), p.abort(), p = null);
|
|
973
973
|
}, t.cancelToken && t.cancelToken.subscribe(c), t.signal && (t.signal.aborted ? c() : t.signal.addEventListener("abort", c)));
|
|
974
974
|
const m = Oo(E);
|
|
@@ -1231,8 +1231,8 @@ class ue {
|
|
|
1231
1231
|
const m = i[p++], u = i[p++];
|
|
1232
1232
|
try {
|
|
1233
1233
|
O = m(O);
|
|
1234
|
-
} catch (
|
|
1235
|
-
u.call(this,
|
|
1234
|
+
} catch (_) {
|
|
1235
|
+
u.call(this, _);
|
|
1236
1236
|
break;
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
@@ -1487,7 +1487,7 @@ async function No(t, e, n = {}) {
|
|
|
1487
1487
|
});
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
1490
|
-
async function
|
|
1490
|
+
async function Io(t, e, n = {}) {
|
|
1491
1491
|
return new Promise((s, o) => {
|
|
1492
1492
|
ye.put(t, e, {
|
|
1493
1493
|
headers: n
|
|
@@ -1501,12 +1501,12 @@ async function Vo(t, e, n = {}) {
|
|
|
1501
1501
|
const ee = {
|
|
1502
1502
|
get: jo,
|
|
1503
1503
|
post: Bo,
|
|
1504
|
-
put:
|
|
1504
|
+
put: Io,
|
|
1505
1505
|
remove: No,
|
|
1506
1506
|
setupAxios: Lo,
|
|
1507
1507
|
getAxiosInstance: Po
|
|
1508
1508
|
};
|
|
1509
|
-
var
|
|
1509
|
+
var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1510
1510
|
function Uo(t) {
|
|
1511
1511
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1512
1512
|
}
|
|
@@ -1517,50 +1517,50 @@ var Pn = { exports: {} };
|
|
|
1517
1517
|
(function(t, e) {
|
|
1518
1518
|
(function(n, s) {
|
|
1519
1519
|
typeof zo == "function" ? t.exports = s() : n.pluralize = s();
|
|
1520
|
-
})(
|
|
1520
|
+
})(Vo, function() {
|
|
1521
1521
|
var n = [], s = [], o = {}, r = {}, a = {};
|
|
1522
1522
|
function i(u) {
|
|
1523
1523
|
return typeof u == "string" ? new RegExp("^" + u + "$", "i") : u;
|
|
1524
1524
|
}
|
|
1525
|
-
function c(u,
|
|
1526
|
-
return u ===
|
|
1525
|
+
function c(u, _) {
|
|
1526
|
+
return u === _ ? _ : u === u.toLowerCase() ? _.toLowerCase() : u === u.toUpperCase() ? _.toUpperCase() : u[0] === u[0].toUpperCase() ? _.charAt(0).toUpperCase() + _.substr(1).toLowerCase() : _.toLowerCase();
|
|
1527
1527
|
}
|
|
1528
|
-
function h(u,
|
|
1529
|
-
return u.replace(/\$(\d{1,2})/g, function(g,
|
|
1530
|
-
return y
|
|
1528
|
+
function h(u, _) {
|
|
1529
|
+
return u.replace(/\$(\d{1,2})/g, function(g, y) {
|
|
1530
|
+
return _[y] || "";
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
|
-
function l(u,
|
|
1534
|
-
return u.replace(
|
|
1535
|
-
var w = h(
|
|
1536
|
-
return c(g === "" ? u[
|
|
1533
|
+
function l(u, _) {
|
|
1534
|
+
return u.replace(_[0], function(g, y) {
|
|
1535
|
+
var w = h(_[1], arguments);
|
|
1536
|
+
return c(g === "" ? u[y - 1] : g, w);
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
|
-
function p(u,
|
|
1539
|
+
function p(u, _, g) {
|
|
1540
1540
|
if (!u.length || o.hasOwnProperty(u))
|
|
1541
|
-
return
|
|
1542
|
-
for (var
|
|
1543
|
-
var w = g[
|
|
1544
|
-
if (w[0].test(
|
|
1545
|
-
return l(
|
|
1541
|
+
return _;
|
|
1542
|
+
for (var y = g.length; y--; ) {
|
|
1543
|
+
var w = g[y];
|
|
1544
|
+
if (w[0].test(_))
|
|
1545
|
+
return l(_, w);
|
|
1546
1546
|
}
|
|
1547
|
-
return
|
|
1547
|
+
return _;
|
|
1548
1548
|
}
|
|
1549
|
-
function E(u,
|
|
1550
|
-
return function(
|
|
1551
|
-
var w =
|
|
1552
|
-
return
|
|
1549
|
+
function E(u, _, g) {
|
|
1550
|
+
return function(y) {
|
|
1551
|
+
var w = y.toLowerCase();
|
|
1552
|
+
return _.hasOwnProperty(w) ? c(y, w) : u.hasOwnProperty(w) ? c(y, u[w]) : p(w, y, g);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
function O(u,
|
|
1555
|
+
function O(u, _, g, y) {
|
|
1556
1556
|
return function(w) {
|
|
1557
1557
|
var k = w.toLowerCase();
|
|
1558
|
-
return
|
|
1558
|
+
return _.hasOwnProperty(k) ? !0 : u.hasOwnProperty(k) ? !1 : p(k, k, g) === k;
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function m(u,
|
|
1562
|
-
var
|
|
1563
|
-
return (g ?
|
|
1561
|
+
function m(u, _, g) {
|
|
1562
|
+
var y = _ === 1 ? m.singular(u) : m.plural(u);
|
|
1563
|
+
return (g ? _ + " " : "") + y;
|
|
1564
1564
|
}
|
|
1565
1565
|
return m.plural = E(
|
|
1566
1566
|
a,
|
|
@@ -1578,18 +1578,18 @@ var Pn = { exports: {} };
|
|
|
1578
1578
|
r,
|
|
1579
1579
|
a,
|
|
1580
1580
|
s
|
|
1581
|
-
), m.addPluralRule = function(u,
|
|
1582
|
-
n.push([i(u),
|
|
1583
|
-
}, m.addSingularRule = function(u,
|
|
1584
|
-
s.push([i(u),
|
|
1581
|
+
), m.addPluralRule = function(u, _) {
|
|
1582
|
+
n.push([i(u), _]);
|
|
1583
|
+
}, m.addSingularRule = function(u, _) {
|
|
1584
|
+
s.push([i(u), _]);
|
|
1585
1585
|
}, m.addUncountableRule = function(u) {
|
|
1586
1586
|
if (typeof u == "string") {
|
|
1587
1587
|
o[u.toLowerCase()] = !0;
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
1590
|
m.addPluralRule(u, "$0"), m.addSingularRule(u, "$0");
|
|
1591
|
-
}, m.addIrregularRule = function(u,
|
|
1592
|
-
|
|
1591
|
+
}, m.addIrregularRule = function(u, _) {
|
|
1592
|
+
_ = _.toLowerCase(), u = u.toLowerCase(), a[u] = _, r[_] = u;
|
|
1593
1593
|
}, [
|
|
1594
1594
|
// Pronouns.
|
|
1595
1595
|
["I", "we"],
|
|
@@ -1813,7 +1813,7 @@ var Pn = { exports: {} };
|
|
|
1813
1813
|
});
|
|
1814
1814
|
})(Pn);
|
|
1815
1815
|
var Mo = Pn.exports;
|
|
1816
|
-
const jn = /* @__PURE__ */ Uo(Mo), Bn = (t) => t.replace(/([-_][a-z])/gi, (e) => e.toUpperCase().replace("-", "").replace("_", "")), Ne = "GET_LIST",
|
|
1816
|
+
const jn = /* @__PURE__ */ Uo(Mo), Bn = (t) => t.replace(/([-_][a-z])/gi, (e) => e.toUpperCase().replace("-", "").replace("_", "")), Ne = "GET_LIST", Ie = "GET_ONE", Ve = "CREATE", Ue = "UPDATE", pe = "REMOVE", ut = "RESTORE", Nn = "ENABLE", Ho = [Ne, Ie, Ve, Ue, pe, Nn];
|
|
1817
1817
|
class qo {
|
|
1818
1818
|
constructor(e, n, s = Ho) {
|
|
1819
1819
|
this.side = e == "platform" ? "admin" : e, this.domain = n, this.resources = jn(n), this.operations = s, this.operations.forEach((o) => {
|
|
@@ -1829,15 +1829,15 @@ class qo {
|
|
|
1829
1829
|
return ee.get(`${this.side}/${this.resources}`, e);
|
|
1830
1830
|
}
|
|
1831
1831
|
_getOne(e) {
|
|
1832
|
-
if (!this.operations.includes(
|
|
1833
|
-
console.log(`${this.side}/${this.domain} 不支持 ${
|
|
1832
|
+
if (!this.operations.includes(Ie)) {
|
|
1833
|
+
console.log(`${this.side}/${this.domain} 不支持 ${Ie} 操作`);
|
|
1834
1834
|
return;
|
|
1835
1835
|
}
|
|
1836
1836
|
return ee.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1837
1837
|
}
|
|
1838
1838
|
_create(e) {
|
|
1839
|
-
if (!this.operations.includes(
|
|
1840
|
-
console.log(`${this.side}/${this.domain} 不支持 ${
|
|
1839
|
+
if (!this.operations.includes(Ve)) {
|
|
1840
|
+
console.log(`${this.side}/${this.domain} 不支持 ${Ve} 操作`);
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
1843
|
return ee.post(`${this.side}/${this.resources}`, e);
|
|
@@ -1887,8 +1887,8 @@ const Gi = {
|
|
|
1887
1887
|
Client: qo,
|
|
1888
1888
|
ReadOnlyClient: Wo,
|
|
1889
1889
|
GET_LIST: Ne,
|
|
1890
|
-
GET_ONE:
|
|
1891
|
-
CREATE:
|
|
1890
|
+
GET_ONE: Ie,
|
|
1891
|
+
CREATE: Ve,
|
|
1892
1892
|
UPDATE: Ue,
|
|
1893
1893
|
REMOVE: pe,
|
|
1894
1894
|
RESTORE: ut,
|
|
@@ -2005,7 +2005,7 @@ const et = {
|
|
|
2005
2005
|
component: { config: "component" }
|
|
2006
2006
|
};
|
|
2007
2007
|
async function qt(t, e, n) {
|
|
2008
|
-
const s = await Jo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2008
|
+
const s = await Jo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-cPSnYR_W.js"), "./field/belongs-to/config.js": () => import("./config-CtTzTOfQ.js"), "./field/boolean/config.js": () => import("./config-C77NlS42.js"), "./field/cascader/config.js": () => import("./config-pxsBixPq.js"), "./field/component/config.js": () => import("./config-DiYB27JS.js"), "./field/datetime/config.js": () => import("./config-imtlNR-t.js"), "./field/image/config.js": () => import("./config-BHQjTR1P.js"), "./field/images/config.js": () => import("./config-Dv3oakjJ.js"), "./field/json/config.js": () => import("./config-rtFPHOZL.js"), "./field/rich-text/config.js": () => import("./config-C-L6-5nl.js"), "./field/row-id/config.js": () => import("./config-ZW08WCha.js"), "./field/select/config.js": () => import("./config-BNwOB5hl.js"), "./field/string/config.js": () => import("./config-CI8auEwd.js"), "./field/switch/config.js": () => import("./config-BwOPNyIw.js"), "./field/text/config.js": () => import("./config-CscLYdNf.js"), "./field/tree-select/config.js": () => import("./config-uT5A3c5i.js") }), `./field/${t}/config.js`, 4);
|
|
2009
2009
|
return new s.default(e, n);
|
|
2010
2010
|
}
|
|
2011
2011
|
function Wt(t, e = "unknown") {
|
|
@@ -2289,7 +2289,7 @@ const hr = {
|
|
|
2289
2289
|
fields: Array
|
|
2290
2290
|
},
|
|
2291
2291
|
setup(t) {
|
|
2292
|
-
const e = t, n =
|
|
2292
|
+
const e = t, n = I(() => {
|
|
2293
2293
|
if (e.layout.length == 0) {
|
|
2294
2294
|
if (e.fields.length <= 6) {
|
|
2295
2295
|
const a = o(e.fields, 1);
|
|
@@ -2343,20 +2343,20 @@ const hr = {
|
|
|
2343
2343
|
},
|
|
2344
2344
|
emits: ["submit", "remove"],
|
|
2345
2345
|
setup(t, { emit: e }) {
|
|
2346
|
-
const n = z(), s = Z(n), o = e, r = A(!1), a = t, i = dt(a.config.formLayout || []), c = Ee({ ...a.data }), h = A(null), l = a.config.fields.filter((
|
|
2347
|
-
const w =
|
|
2348
|
-
return
|
|
2346
|
+
const n = z(), s = Z(n), o = e, r = A(!1), a = t, i = dt(a.config.formLayout || []), c = Ee({ ...a.data }), h = A(null), l = a.config.fields.filter((y) => y.rules).reduce((y, w) => (y[w.code] = O(w.rules), y), {}), p = I(g), E = I(() => a.config.fields.filter((y) => {
|
|
2347
|
+
const w = y.editable(c, s), k = y.visible(c, s);
|
|
2348
|
+
return y.disabled = k && !w, w || k;
|
|
2349
2349
|
}));
|
|
2350
|
-
function O(
|
|
2351
|
-
return typeof
|
|
2350
|
+
function O(y) {
|
|
2351
|
+
return typeof y == "object" ? y : typeof y == "function" ? y(c) : [];
|
|
2352
2352
|
}
|
|
2353
2353
|
async function m() {
|
|
2354
|
-
await h.value.validate((
|
|
2354
|
+
await h.value.validate((y, w) => {
|
|
2355
2355
|
var q, W;
|
|
2356
|
-
if (!
|
|
2356
|
+
if (!y)
|
|
2357
2357
|
return console.log("error submit!", w), !1;
|
|
2358
|
-
const k = (q = a.config.fields.find((de) => ["images", "attachments", "attachment"].includes(de.type))) == null ? void 0 : q.code,
|
|
2359
|
-
k && (
|
|
2358
|
+
const k = (q = a.config.fields.find((de) => ["images", "attachments", "attachment"].includes(de.type))) == null ? void 0 : q.code, V = { ...c };
|
|
2359
|
+
k && (V[k] = (W = V[k]) == null ? void 0 : W.map((de) => de.id)), r.value = !0, o("submit", V, () => {
|
|
2360
2360
|
r.value = !1;
|
|
2361
2361
|
});
|
|
2362
2362
|
});
|
|
@@ -2364,7 +2364,7 @@ const hr = {
|
|
|
2364
2364
|
function u() {
|
|
2365
2365
|
o("remove", c);
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2367
|
+
function _() {
|
|
2368
2368
|
if (a.config.removeConfirm) {
|
|
2369
2369
|
a.config.removeConfirm(c, u);
|
|
2370
2370
|
return;
|
|
@@ -2384,30 +2384,30 @@ const hr = {
|
|
|
2384
2384
|
});
|
|
2385
2385
|
}
|
|
2386
2386
|
function g() {
|
|
2387
|
-
const
|
|
2388
|
-
return typeof
|
|
2387
|
+
const y = a.config.showSubmit;
|
|
2388
|
+
return typeof y == "boolean" ? y : typeof y == "function" ? y(s, c) : !0;
|
|
2389
2389
|
}
|
|
2390
2390
|
return B(
|
|
2391
2391
|
() => ({ ...c }),
|
|
2392
|
-
(
|
|
2393
|
-
const
|
|
2392
|
+
(y, w) => {
|
|
2393
|
+
const V = Object.keys(y).filter((W) => w[W] !== y[W]).map((W) => ({
|
|
2394
2394
|
field: W,
|
|
2395
|
-
newValue:
|
|
2395
|
+
newValue: y[W],
|
|
2396
2396
|
oldValue: w[W]
|
|
2397
2397
|
}));
|
|
2398
2398
|
E.value.filter((W) => !W.disabled).forEach((W) => {
|
|
2399
|
-
W.formChange && W.formChange(c,
|
|
2399
|
+
W.formChange && W.formChange(c, V);
|
|
2400
2400
|
});
|
|
2401
2401
|
}
|
|
2402
2402
|
), B(
|
|
2403
2403
|
() => a.data,
|
|
2404
|
-
(
|
|
2405
|
-
Object.keys(
|
|
2406
|
-
c[w] =
|
|
2404
|
+
(y) => {
|
|
2405
|
+
Object.keys(y).forEach((w) => {
|
|
2406
|
+
c[w] = y[w];
|
|
2407
2407
|
});
|
|
2408
2408
|
},
|
|
2409
2409
|
{ immediate: !0 }
|
|
2410
|
-
), (
|
|
2410
|
+
), (y, w) => (d(), $(f(cn), {
|
|
2411
2411
|
id: "form",
|
|
2412
2412
|
ref_key: "formRef",
|
|
2413
2413
|
ref: h,
|
|
@@ -2432,7 +2432,7 @@ const hr = {
|
|
|
2432
2432
|
k != null && k.editor ? (d(), $(Y(k.editor), {
|
|
2433
2433
|
key: 0,
|
|
2434
2434
|
modelValue: c[k.code],
|
|
2435
|
-
"onUpdate:modelValue": (
|
|
2435
|
+
"onUpdate:modelValue": (V) => c[k.code] = V,
|
|
2436
2436
|
field: k,
|
|
2437
2437
|
disabled: k.disabled,
|
|
2438
2438
|
"form-data": c,
|
|
@@ -2456,7 +2456,7 @@ const hr = {
|
|
|
2456
2456
|
key: 0,
|
|
2457
2457
|
size: "default",
|
|
2458
2458
|
type: "danger",
|
|
2459
|
-
onClick:
|
|
2459
|
+
onClick: _
|
|
2460
2460
|
}, {
|
|
2461
2461
|
default: b(() => [
|
|
2462
2462
|
j(" 删除 ")
|
|
@@ -2508,14 +2508,14 @@ const we = {
|
|
|
2508
2508
|
},
|
|
2509
2509
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2510
2510
|
setup(t, { emit: e }) {
|
|
2511
|
-
const n = z(), s = Z(n), o = e, r = t, a =
|
|
2511
|
+
const n = z(), s = Z(n), o = e, r = t, a = I(() => ({ ...r.data, idempotentToken: c.value })), i = I(() => r.config.fields.filter((m) => m.visible(a, s)).length >= 6 ? "60%" : "40%"), c = A(""), h = I({
|
|
2512
2512
|
get() {
|
|
2513
2513
|
return r.modelValue;
|
|
2514
2514
|
},
|
|
2515
2515
|
set(O) {
|
|
2516
2516
|
o("update:modelValue", O);
|
|
2517
2517
|
}
|
|
2518
|
-
}), l =
|
|
2518
|
+
}), l = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
|
|
2519
2519
|
function p(O, m) {
|
|
2520
2520
|
o("submit", O, async () => {
|
|
2521
2521
|
c.value = await we.getValue(), m();
|
|
@@ -2651,7 +2651,7 @@ const we = {
|
|
|
2651
2651
|
},
|
|
2652
2652
|
emits: ["update:modelValue"],
|
|
2653
2653
|
setup(t, { emit: e }) {
|
|
2654
|
-
const n = Jn(() => import("./ImagesUploader-
|
|
2654
|
+
const n = Jn(() => import("./ImagesUploader-DP3H4CgN.js")), s = ze().fileUploadUrl, o = e, r = t, a = Ee({ value: r.modelValue }), i = r.field.converter;
|
|
2655
2655
|
function c(l) {
|
|
2656
2656
|
const p = a.value.findIndex((E) => E.id === l.id);
|
|
2657
2657
|
a.value.splice(p, 1), o("update:modelValue", a.value);
|
|
@@ -2850,7 +2850,7 @@ const xr = {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
},
|
|
2852
2852
|
setup(t) {
|
|
2853
|
-
const e = t, n =
|
|
2853
|
+
const e = t, n = I(() => e.content ? e.content.toString() : "");
|
|
2854
2854
|
return (s, o) => (d(), S("div", null, [
|
|
2855
2855
|
n.value.length > e.tipShowLength ? (d(), $(f(ss), {
|
|
2856
2856
|
key: 0,
|
|
@@ -3010,7 +3010,7 @@ var Or = /* @__PURE__ */ H({
|
|
|
3010
3010
|
})
|
|
3011
3011
|
]));
|
|
3012
3012
|
}
|
|
3013
|
-
}), Nr = Br,
|
|
3013
|
+
}), Nr = Br, Ir = /* @__PURE__ */ H({
|
|
3014
3014
|
name: "Loading",
|
|
3015
3015
|
__name: "loading",
|
|
3016
3016
|
setup(t) {
|
|
@@ -3024,7 +3024,7 @@ var Or = /* @__PURE__ */ H({
|
|
|
3024
3024
|
})
|
|
3025
3025
|
]));
|
|
3026
3026
|
}
|
|
3027
|
-
}), ll =
|
|
3027
|
+
}), ll = Ir, Vr = /* @__PURE__ */ H({
|
|
3028
3028
|
name: "Minus",
|
|
3029
3029
|
__name: "minus",
|
|
3030
3030
|
setup(t) {
|
|
@@ -3038,7 +3038,7 @@ var Or = /* @__PURE__ */ H({
|
|
|
3038
3038
|
})
|
|
3039
3039
|
]));
|
|
3040
3040
|
}
|
|
3041
|
-
}), Ur =
|
|
3041
|
+
}), Ur = Vr, zr = /* @__PURE__ */ H({
|
|
3042
3042
|
name: "Operation",
|
|
3043
3043
|
__name: "operation",
|
|
3044
3044
|
setup(t) {
|
|
@@ -3179,18 +3179,18 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3179
3179
|
s.setupRootPath("首页", `/${a}/home`);
|
|
3180
3180
|
function c(m) {
|
|
3181
3181
|
var w, k;
|
|
3182
|
-
const u = m.meta.side,
|
|
3183
|
-
let g = (w = m.meta) == null ? void 0 : w.title,
|
|
3184
|
-
if (u &&
|
|
3185
|
-
g = yt()[u][m.params.domain].name,
|
|
3182
|
+
const u = m.meta.side, _ = m.params.domain;
|
|
3183
|
+
let g = (w = m.meta) == null ? void 0 : w.title, y = (k = m.meta) == null ? void 0 : k.code;
|
|
3184
|
+
if (u && _)
|
|
3185
|
+
g = yt()[u][m.params.domain].name, y = m.params.domain, m.params.id && (g = `${g} - ${m.params.id}`, y = `${m.params.domain}-${m.params.id}`);
|
|
3186
3186
|
else {
|
|
3187
|
-
const
|
|
3188
|
-
|
|
3187
|
+
const V = i.find((q) => q.route === m.path);
|
|
3188
|
+
V && (g = V.title, y = V.route);
|
|
3189
3189
|
}
|
|
3190
|
-
g &&
|
|
3190
|
+
g && y && (s.push(g, y, m.fullPath), o.value = y);
|
|
3191
3191
|
}
|
|
3192
3192
|
function h(m) {
|
|
3193
|
-
const u = s.history.find((
|
|
3193
|
+
const u = s.history.find((_) => _.code == m.props.name);
|
|
3194
3194
|
e.push(u.path);
|
|
3195
3195
|
}
|
|
3196
3196
|
function l(m) {
|
|
@@ -3200,34 +3200,34 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3200
3200
|
}
|
|
3201
3201
|
}
|
|
3202
3202
|
const p = (m, u) => {
|
|
3203
|
-
const
|
|
3204
|
-
return m === 0 && u === "self" || m < 2 && u === "left" || m ===
|
|
3203
|
+
const _ = s.history.length;
|
|
3204
|
+
return m === 0 && u === "self" || m < 2 && u === "left" || m === _ - 1 && u === "right" || _ === 1 && u === "all" ? !1 : !(_ < 2 && u === "other");
|
|
3205
3205
|
};
|
|
3206
3206
|
function E(m, u) {
|
|
3207
|
-
const
|
|
3207
|
+
const _ = [], g = s.history;
|
|
3208
3208
|
switch (u) {
|
|
3209
3209
|
case "self":
|
|
3210
|
-
|
|
3210
|
+
_.push(g[m].code);
|
|
3211
3211
|
break;
|
|
3212
3212
|
case "left":
|
|
3213
|
-
for (let
|
|
3214
|
-
|
|
3213
|
+
for (let y = 0; y < m; y++)
|
|
3214
|
+
y !== 0 && _.push(g[y].code);
|
|
3215
3215
|
break;
|
|
3216
3216
|
case "right":
|
|
3217
|
-
for (let
|
|
3218
|
-
|
|
3217
|
+
for (let y = m + 1; y < g.length; y++)
|
|
3218
|
+
_.push(g[y].code);
|
|
3219
3219
|
break;
|
|
3220
3220
|
case "all":
|
|
3221
|
-
for (let
|
|
3222
|
-
|
|
3221
|
+
for (let y = 0; y < g.length; y++)
|
|
3222
|
+
y !== 0 && _.push(g[y].code);
|
|
3223
3223
|
break;
|
|
3224
3224
|
case "other":
|
|
3225
|
-
for (let
|
|
3226
|
-
|
|
3225
|
+
for (let y = 1; y < g.length; y++)
|
|
3226
|
+
y !== m && _.push(g[y].code);
|
|
3227
3227
|
break;
|
|
3228
3228
|
}
|
|
3229
|
-
for (let
|
|
3230
|
-
l(y
|
|
3229
|
+
for (let y = 0; y < _.length; y++)
|
|
3230
|
+
l(_[y]);
|
|
3231
3231
|
}
|
|
3232
3232
|
function O() {
|
|
3233
3233
|
return r.config.sideMenus[a].map((m) => m.children ? m.children : m).flat();
|
|
@@ -3252,17 +3252,17 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3252
3252
|
C("div", ea, [
|
|
3253
3253
|
x(f(pn), {
|
|
3254
3254
|
modelValue: o.value,
|
|
3255
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3255
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => o.value = _),
|
|
3256
3256
|
type: "card",
|
|
3257
3257
|
class: "tabs",
|
|
3258
3258
|
onTabClick: h,
|
|
3259
3259
|
onTabRemove: l
|
|
3260
3260
|
}, {
|
|
3261
3261
|
default: b(() => [
|
|
3262
|
-
(d(!0), S(L, null, M(f(s).history, (
|
|
3263
|
-
closable:
|
|
3264
|
-
label:
|
|
3265
|
-
name:
|
|
3262
|
+
(d(!0), S(L, null, M(f(s).history, (_, g) => (d(), $(f(fn), {
|
|
3263
|
+
closable: _.title != "首页",
|
|
3264
|
+
label: _.title,
|
|
3265
|
+
name: _.code
|
|
3266
3266
|
}, {
|
|
3267
3267
|
label: b(() => [
|
|
3268
3268
|
x(f(nt), { trigger: "contextmenu" }, {
|
|
@@ -3271,7 +3271,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3271
3271
|
default: b(() => [
|
|
3272
3272
|
p(g, "self") ? (d(), $(f(le), {
|
|
3273
3273
|
key: 0,
|
|
3274
|
-
onClick: (
|
|
3274
|
+
onClick: (y) => E(g, "self")
|
|
3275
3275
|
}, {
|
|
3276
3276
|
default: b(() => [
|
|
3277
3277
|
x(f(G), null, {
|
|
@@ -3286,7 +3286,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3286
3286
|
}, 1032, ["onClick"])) : T("", !0),
|
|
3287
3287
|
p(g, "left") ? (d(), $(f(le), {
|
|
3288
3288
|
key: 1,
|
|
3289
|
-
onClick: (
|
|
3289
|
+
onClick: (y) => E(g, "left")
|
|
3290
3290
|
}, {
|
|
3291
3291
|
default: b(() => [
|
|
3292
3292
|
x(f(G), null, {
|
|
@@ -3301,7 +3301,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3301
3301
|
}, 1032, ["onClick"])) : T("", !0),
|
|
3302
3302
|
p(g, "right") ? (d(), $(f(le), {
|
|
3303
3303
|
key: 2,
|
|
3304
|
-
onClick: (
|
|
3304
|
+
onClick: (y) => E(g, "right")
|
|
3305
3305
|
}, {
|
|
3306
3306
|
default: b(() => [
|
|
3307
3307
|
x(f(G), null, {
|
|
@@ -3316,7 +3316,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3316
3316
|
}, 1032, ["onClick"])) : T("", !0),
|
|
3317
3317
|
p(g, "all") ? (d(), $(f(le), {
|
|
3318
3318
|
key: 3,
|
|
3319
|
-
onClick: (
|
|
3319
|
+
onClick: (y) => E(g, "all")
|
|
3320
3320
|
}, {
|
|
3321
3321
|
default: b(() => [
|
|
3322
3322
|
x(f(G), null, {
|
|
@@ -3331,7 +3331,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3331
3331
|
}, 1032, ["onClick"])) : T("", !0),
|
|
3332
3332
|
p(g, "other") ? (d(), $(f(le), {
|
|
3333
3333
|
key: 4,
|
|
3334
|
-
onClick: (
|
|
3334
|
+
onClick: (y) => E(g, "other")
|
|
3335
3335
|
}, {
|
|
3336
3336
|
default: b(() => [
|
|
3337
3337
|
x(f(G), null, {
|
|
@@ -3350,7 +3350,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3350
3350
|
]),
|
|
3351
3351
|
default: b(() => [
|
|
3352
3352
|
x(xr, {
|
|
3353
|
-
content:
|
|
3353
|
+
content: _.title,
|
|
3354
3354
|
"line-clamp": 1,
|
|
3355
3355
|
"class-name": "tab-pane-label",
|
|
3356
3356
|
"tip-show-length": "6"
|
|
@@ -3366,7 +3366,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3366
3366
|
}, 8, ["modelValue"]),
|
|
3367
3367
|
C("span", {
|
|
3368
3368
|
class: "back-icon",
|
|
3369
|
-
onClick: u[1] || (u[1] = (
|
|
3369
|
+
onClick: u[1] || (u[1] = (_) => f(e).back())
|
|
3370
3370
|
}, [
|
|
3371
3371
|
x(f(G), null, {
|
|
3372
3372
|
default: b(() => [
|
|
@@ -3416,7 +3416,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3416
3416
|
C("span", null, F(t.data.title), 1)
|
|
3417
3417
|
]),
|
|
3418
3418
|
default: b(() => [
|
|
3419
|
-
(d(!0), S(L, null, M(t.data.children, (o) => (d(), $(
|
|
3419
|
+
(d(!0), S(L, null, M(t.data.children, (o) => (d(), $(In, {
|
|
3420
3420
|
data: o,
|
|
3421
3421
|
"has-parent": !0
|
|
3422
3422
|
}, null, 8, ["data"]))), 256))
|
|
@@ -3445,7 +3445,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3445
3445
|
_: 1
|
|
3446
3446
|
}, 8, ["index", "route"]));
|
|
3447
3447
|
}
|
|
3448
|
-
},
|
|
3448
|
+
}, In = /* @__PURE__ */ P(la, [["__scopeId", "data-v-22a49b3f"]]), ua = {
|
|
3449
3449
|
__name: "SideBar",
|
|
3450
3450
|
props: {
|
|
3451
3451
|
sideMenus: {
|
|
@@ -3473,7 +3473,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3473
3473
|
"default-active": s.value
|
|
3474
3474
|
}, {
|
|
3475
3475
|
default: b(() => [
|
|
3476
|
-
(d(!0), S(L, null, M(f(a), (h) => (d(), $(
|
|
3476
|
+
(d(!0), S(L, null, M(f(a), (h) => (d(), $(In, { data: h }, null, 8, ["data"]))), 256))
|
|
3477
3477
|
]),
|
|
3478
3478
|
_: 1
|
|
3479
3479
|
}, 8, ["default-active"])
|
|
@@ -3490,7 +3490,7 @@ const Gt = 10, wt = ft("route-history", {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
},
|
|
3492
3492
|
setup(t) {
|
|
3493
|
-
const e = z(), n = t, s = { ...ze(), ...n.config }, o =
|
|
3493
|
+
const e = z(), n = t, s = { ...ze(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
|
|
3494
3494
|
return (r, a) => {
|
|
3495
3495
|
const i = Me("router-view");
|
|
3496
3496
|
return d(), $(f(ls), { locale: f(Sr) }, {
|
|
@@ -3747,20 +3747,20 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3747
3747
|
e.settings.filters,
|
|
3748
3748
|
e.settings.filterHook
|
|
3749
3749
|
)();
|
|
3750
|
-
i.$subscribe((g,
|
|
3751
|
-
|
|
3750
|
+
i.$subscribe((g, y) => {
|
|
3751
|
+
y.filters.isDeleted !== r.isDeleted && (Object.keys(r).forEach((w) => {
|
|
3752
3752
|
r[w] = void 0;
|
|
3753
|
-
}), r.isDeleted =
|
|
3753
|
+
}), r.isDeleted = y.filters.isDeleted);
|
|
3754
3754
|
});
|
|
3755
3755
|
function c(g) {
|
|
3756
3756
|
return typeof g == "boolean" ? g : typeof g == "function" ? g(s) : !0;
|
|
3757
3757
|
}
|
|
3758
|
-
async function h(g,
|
|
3758
|
+
async function h(g, y) {
|
|
3759
3759
|
if (typeof g.options == "function")
|
|
3760
3760
|
a[g.code] = await g.options(
|
|
3761
3761
|
r,
|
|
3762
3762
|
s,
|
|
3763
|
-
|
|
3763
|
+
y
|
|
3764
3764
|
);
|
|
3765
3765
|
else if (Array.isArray(g.options))
|
|
3766
3766
|
a[g.code] = g.options;
|
|
@@ -3768,10 +3768,10 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3768
3768
|
const w = g.options.getOneUrl ? g.options.getOneUrl : g.options.url;
|
|
3769
3769
|
if (Array.isArray(r[g.code]) && r[g.code].length > 0)
|
|
3770
3770
|
a[g.code] = [], r[g.code].forEach((k) => {
|
|
3771
|
-
w.getOne({ id: k }).then((
|
|
3771
|
+
w.getOne({ id: k }).then((V) => {
|
|
3772
3772
|
a[g.code].push({
|
|
3773
|
-
code:
|
|
3774
|
-
name:
|
|
3773
|
+
code: V.data[g.options.data.value] || V.data.id,
|
|
3774
|
+
name: V.data[g.options.data.label] || V.data.name
|
|
3775
3775
|
});
|
|
3776
3776
|
});
|
|
3777
3777
|
});
|
|
@@ -3786,8 +3786,8 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3786
3786
|
});
|
|
3787
3787
|
else {
|
|
3788
3788
|
const k = g.options.query.keyWord.toString();
|
|
3789
|
-
g.options.url.getList({ ...g.options.query, [k]:
|
|
3790
|
-
a[g.code] =
|
|
3789
|
+
g.options.url.getList({ ...g.options.query, [k]: y }).then((V) => {
|
|
3790
|
+
a[g.code] = V.data.rows.map((q) => ({
|
|
3791
3791
|
code: q[g.options.data.value] || q.id,
|
|
3792
3792
|
name: q[g.options.data.label] || q.name
|
|
3793
3793
|
}));
|
|
@@ -3797,8 +3797,8 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3797
3797
|
}
|
|
3798
3798
|
function l(g) {
|
|
3799
3799
|
if (g.remote)
|
|
3800
|
-
return (
|
|
3801
|
-
h(g,
|
|
3800
|
+
return (y) => {
|
|
3801
|
+
h(g, y);
|
|
3802
3802
|
};
|
|
3803
3803
|
}
|
|
3804
3804
|
function p(g) {
|
|
@@ -3811,20 +3811,20 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3811
3811
|
Object.keys(r).forEach((g) => {
|
|
3812
3812
|
r[g] = void 0;
|
|
3813
3813
|
}), o.value = Object.keys(e.settings.filters).filter((g) => c(e.settings.filters[g].visible)).map((g) => {
|
|
3814
|
-
const
|
|
3815
|
-
return r[g] = m(g), (
|
|
3814
|
+
const y = { ...e.settings.filters[g], code: g };
|
|
3815
|
+
return r[g] = m(g), (y.type === "select" || y.type === "selectV2" || y.type === "tree") && h(y), y;
|
|
3816
3816
|
}).filter((g) => g.code !== "isDeleted");
|
|
3817
3817
|
}
|
|
3818
3818
|
function m(g) {
|
|
3819
|
-
const
|
|
3820
|
-
return
|
|
3819
|
+
const y = e.settings.filters[g], w = i.validFilters[g];
|
|
3820
|
+
return y.type === "boolean" && typeof w != "boolean" ? y.value : w;
|
|
3821
3821
|
}
|
|
3822
3822
|
function u() {
|
|
3823
3823
|
let g = JSON.parse(JSON.stringify(r));
|
|
3824
|
-
const
|
|
3825
|
-
|
|
3824
|
+
const y = e.settings.filterHook;
|
|
3825
|
+
y != null && y.preSubmit && (g = y.preSubmit(g, s)), i.change(g);
|
|
3826
3826
|
}
|
|
3827
|
-
function
|
|
3827
|
+
function _() {
|
|
3828
3828
|
i.$reset({}), O(), u();
|
|
3829
3829
|
}
|
|
3830
3830
|
return B(
|
|
@@ -3833,10 +3833,9 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3833
3833
|
O(), u();
|
|
3834
3834
|
},
|
|
3835
3835
|
{ immediate: !0 }
|
|
3836
|
-
), (g,
|
|
3836
|
+
), (g, y) => Object.keys(e.settings.filters).length > 0 ? (d(), S("div", Aa, [
|
|
3837
3837
|
x(f(cn), {
|
|
3838
|
-
|
|
3839
|
-
"onUpdate:modelValue": _[0] || (_[0] = (w) => r = w),
|
|
3838
|
+
model: r,
|
|
3840
3839
|
inline: "",
|
|
3841
3840
|
class: "form-editor"
|
|
3842
3841
|
}, {
|
|
@@ -3955,7 +3954,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3955
3954
|
]),
|
|
3956
3955
|
_: 1
|
|
3957
3956
|
}),
|
|
3958
|
-
x(f(te), { onClick:
|
|
3957
|
+
x(f(te), { onClick: _ }, {
|
|
3959
3958
|
default: b(() => [
|
|
3960
3959
|
j(" 重置 ")
|
|
3961
3960
|
]),
|
|
@@ -3966,10 +3965,10 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3966
3965
|
})) : T("", !0)
|
|
3967
3966
|
]),
|
|
3968
3967
|
_: 1
|
|
3969
|
-
}, 8, ["
|
|
3968
|
+
}, 8, ["model"])
|
|
3970
3969
|
])) : T("", !0);
|
|
3971
3970
|
}
|
|
3972
|
-
}, Da = /* @__PURE__ */ P(Ra, [["__scopeId", "data-v-
|
|
3971
|
+
}, Da = /* @__PURE__ */ P(Ra, [["__scopeId", "data-v-cadbb5a7"]]), Ta = { class: "data-page-title" }, Fa = { class: "title" }, La = { class: "data-page-toolbar" }, Pa = {
|
|
3973
3972
|
__name: "DataTableHeader",
|
|
3974
3973
|
props: {
|
|
3975
3974
|
settings: {
|
|
@@ -3982,7 +3981,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3982
3981
|
s.path,
|
|
3983
3982
|
e.settings.filters,
|
|
3984
3983
|
e.settings.filterHook
|
|
3985
|
-
)(), a = Ae(), i =
|
|
3984
|
+
)(), a = Ae(), i = I(() => r.validFilters.isDeleted || !1);
|
|
3986
3985
|
function c() {
|
|
3987
3986
|
r.$reset({ isDeleted: !i.value });
|
|
3988
3987
|
}
|
|
@@ -4100,10 +4099,10 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4100
4099
|
}, null, 8, ["settings"])
|
|
4101
4100
|
], 64));
|
|
4102
4101
|
}
|
|
4103
|
-
}, ja = /* @__PURE__ */ P(Pa, [["__scopeId", "data-v-4bec2921"]]), Ba = { class: "kst-field-row-id" }, Na = { key: 0 },
|
|
4102
|
+
}, ja = /* @__PURE__ */ P(Pa, [["__scopeId", "data-v-4bec2921"]]), Ba = { class: "kst-field-row-id" }, Na = { key: 0 }, Ia = {
|
|
4104
4103
|
key: 1,
|
|
4105
4104
|
class: "mono-data"
|
|
4106
|
-
},
|
|
4105
|
+
}, Va = { key: 1 }, Ua = {
|
|
4107
4106
|
__name: "FieldDisplay",
|
|
4108
4107
|
props: {
|
|
4109
4108
|
field: {
|
|
@@ -4117,7 +4116,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4117
4116
|
}
|
|
4118
4117
|
},
|
|
4119
4118
|
setup(t) {
|
|
4120
|
-
const e = Ae(), n = z(), s = t, o = n.meta.side, r = s.row[s.field.code], a =
|
|
4119
|
+
const e = Ae(), n = z(), s = t, o = n.meta.side, r = s.row[s.field.code], a = I(() => ({
|
|
4121
4120
|
path: `/${o}/${s.field.domain}/${r}`,
|
|
4122
4121
|
query: { ...Z(n), ...s.field.rowQuery(s.row) }
|
|
4123
4122
|
}));
|
|
@@ -4139,7 +4138,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4139
4138
|
], 64))
|
|
4140
4139
|
]),
|
|
4141
4140
|
_: 3
|
|
4142
|
-
}, 8, ["to"])) : (d(), S("span",
|
|
4141
|
+
}, 8, ["to"])) : (d(), S("span", Ia, [
|
|
4143
4142
|
f(e).name ? (d(), S(L, { key: 0 }, [
|
|
4144
4143
|
J(i.$slots, "name", {}, void 0, !0),
|
|
4145
4144
|
j("(" + F(f(r)) + ") ", 1)
|
|
@@ -4147,7 +4146,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4147
4146
|
j(F(f(r)), 1)
|
|
4148
4147
|
], 64))
|
|
4149
4148
|
]))
|
|
4150
|
-
])) : (d(), S("span",
|
|
4149
|
+
])) : (d(), S("span", Va, " NO ID "))
|
|
4151
4150
|
]);
|
|
4152
4151
|
};
|
|
4153
4152
|
}
|
|
@@ -4178,37 +4177,37 @@ const Ha = {
|
|
|
4178
4177
|
},
|
|
4179
4178
|
setup(t) {
|
|
4180
4179
|
var m;
|
|
4181
|
-
const e = wt(), n = oe(), s = z(), o = ge(), r = Z(s), a = t, i = A({}), c = A(!1), h =
|
|
4182
|
-
var u,
|
|
4183
|
-
return a.row.deletedAt ? !1 : (u = a.operations) != null && u.updatable ? !0 : !!((
|
|
4180
|
+
const e = wt(), n = oe(), s = z(), o = ge(), r = Z(s), a = t, i = A({}), c = A(!1), h = I(() => {
|
|
4181
|
+
var u, _;
|
|
4182
|
+
return a.row.deletedAt ? !1 : (u = a.operations) != null && u.updatable ? !0 : !!((_ = a.operations) != null && _.removable);
|
|
4184
4183
|
}), l = A((m = a.operations) == null ? void 0 : m.removable);
|
|
4185
4184
|
async function p() {
|
|
4186
|
-
const u = a.settings.formHook,
|
|
4185
|
+
const u = a.settings.formHook, _ = a.settings.btnVisible, g = a.settings.rest, { data: y } = await g.getOne({
|
|
4187
4186
|
...a.row,
|
|
4188
4187
|
...r
|
|
4189
4188
|
});
|
|
4190
|
-
i.value =
|
|
4189
|
+
i.value = y, u.setupUpdate && (i.value = u.setupUpdate(i.value)), _.showRemove && (l.value = _.showRemove(i.value)), c.value = !0;
|
|
4191
4190
|
}
|
|
4192
|
-
function E(u,
|
|
4193
|
-
const g = a.settings.formHook,
|
|
4191
|
+
function E(u, _) {
|
|
4192
|
+
const g = a.settings.formHook, y = a.settings.rest;
|
|
4194
4193
|
Object.keys(r).forEach((w) => {
|
|
4195
4194
|
u[w] = r[w];
|
|
4196
|
-
}), g != null && g.preUpdateSubmit && (u = g.preUpdateSubmit(u)),
|
|
4195
|
+
}), g != null && g.preUpdateSubmit && (u = g.preUpdateSubmit(u)), y.update(u).then(() => {
|
|
4197
4196
|
c.value = !1, n.fireUpdated();
|
|
4198
4197
|
}).catch(async () => {
|
|
4199
|
-
|
|
4198
|
+
_();
|
|
4200
4199
|
});
|
|
4201
4200
|
}
|
|
4202
|
-
function O(u,
|
|
4201
|
+
function O(u, _) {
|
|
4203
4202
|
a.settings.rest.remove(u).then(() => {
|
|
4204
|
-
Ha.show({ type: "success", message: "删除成功" }), c.value = !1, a.isDetail && e.history.forEach((
|
|
4205
|
-
s.fullPath.includes(
|
|
4203
|
+
Ha.show({ type: "success", message: "删除成功" }), c.value = !1, a.isDetail && e.history.forEach((y) => {
|
|
4204
|
+
s.fullPath.includes(y.path) && (e.remove(y.code), o.back());
|
|
4206
4205
|
}), n.fireRemoved();
|
|
4207
4206
|
}).catch(() => {
|
|
4208
|
-
|
|
4207
|
+
_();
|
|
4209
4208
|
});
|
|
4210
4209
|
}
|
|
4211
|
-
return (u,
|
|
4210
|
+
return (u, _) => h.value ? (d(), $(f(te), {
|
|
4212
4211
|
key: 0,
|
|
4213
4212
|
type: "primary",
|
|
4214
4213
|
onClick: p
|
|
@@ -4218,7 +4217,7 @@ const Ha = {
|
|
|
4218
4217
|
c.value ? (d(), $(bt, {
|
|
4219
4218
|
key: 0,
|
|
4220
4219
|
modelValue: c.value,
|
|
4221
|
-
"onUpdate:modelValue":
|
|
4220
|
+
"onUpdate:modelValue": _[0] || (_[0] = (g) => c.value = g),
|
|
4222
4221
|
config: a.settings,
|
|
4223
4222
|
data: i.value,
|
|
4224
4223
|
removable: l.value,
|
|
@@ -4251,7 +4250,7 @@ const Ha = {
|
|
|
4251
4250
|
}
|
|
4252
4251
|
},
|
|
4253
4252
|
setup(t) {
|
|
4254
|
-
const e = z(), n = Z(e), s = Ae(), o = t, r = Q([]), a = Q(null), i =
|
|
4253
|
+
const e = z(), n = Z(e), s = Ae(), o = t, r = Q([]), a = Q(null), i = I(() => {
|
|
4255
4254
|
var l, p;
|
|
4256
4255
|
return !!((l = o.operations) != null && l.updatable || (p = o.operations) != null && p.removable);
|
|
4257
4256
|
});
|
|
@@ -4398,7 +4397,7 @@ const oi = {
|
|
|
4398
4397
|
},
|
|
4399
4398
|
emits: ["sort-column", "select-change", "enable-item"],
|
|
4400
4399
|
setup(t, { emit: e }) {
|
|
4401
|
-
const n = z(), s = Z(n), o = e, r = Ae(), a = t, i = Q([]), c =
|
|
4400
|
+
const n = z(), s = Z(n), o = e, r = Ae(), a = t, i = Q([]), c = I(() => {
|
|
4402
4401
|
var O, m;
|
|
4403
4402
|
return !!((O = a.operations) != null && O.updatable || (m = a.operations) != null && m.removable);
|
|
4404
4403
|
});
|
|
@@ -4447,10 +4446,10 @@ const oi = {
|
|
|
4447
4446
|
}, Ce({ _: 2 }, [
|
|
4448
4447
|
u.type === "switch" ? {
|
|
4449
4448
|
name: "default",
|
|
4450
|
-
fn: b(({ row:
|
|
4449
|
+
fn: b(({ row: _ }) => [
|
|
4451
4450
|
(d(), $(Y(u.display), {
|
|
4452
4451
|
field: u,
|
|
4453
|
-
row:
|
|
4452
|
+
row: _,
|
|
4454
4453
|
mode: "list",
|
|
4455
4454
|
onEnable: l
|
|
4456
4455
|
}, null, 40, ["field", "row"]))
|
|
@@ -4458,11 +4457,11 @@ const oi = {
|
|
|
4458
4457
|
key: "0"
|
|
4459
4458
|
} : {
|
|
4460
4459
|
name: "default",
|
|
4461
|
-
fn: b(({ row:
|
|
4460
|
+
fn: b(({ row: _ }) => [
|
|
4462
4461
|
(d(), $(Y(u.display), {
|
|
4463
|
-
key:
|
|
4462
|
+
key: _.updatedAt,
|
|
4464
4463
|
field: u,
|
|
4465
|
-
row:
|
|
4464
|
+
row: _,
|
|
4466
4465
|
mode: "list"
|
|
4467
4466
|
}, null, 8, ["field", "row"]))
|
|
4468
4467
|
]),
|
|
@@ -4556,7 +4555,7 @@ const oi = {
|
|
|
4556
4555
|
}
|
|
4557
4556
|
},
|
|
4558
4557
|
setup(t) {
|
|
4559
|
-
const e = oe(), n = z(), s = Z(n), o = t, r = A({}), a = A(!1), i =
|
|
4558
|
+
const e = oe(), n = z(), s = Z(n), o = t, r = A({}), a = A(!1), i = I(() => {
|
|
4560
4559
|
var l;
|
|
4561
4560
|
return !!((l = o.operations) != null && l.creatable);
|
|
4562
4561
|
});
|
|
@@ -4594,7 +4593,7 @@ const oi = {
|
|
|
4594
4593
|
_: 1
|
|
4595
4594
|
})) : T("", !0);
|
|
4596
4595
|
}
|
|
4597
|
-
},
|
|
4596
|
+
}, Vn = {
|
|
4598
4597
|
__name: "RowActions",
|
|
4599
4598
|
props: {
|
|
4600
4599
|
row: {
|
|
@@ -4667,7 +4666,7 @@ const oi = {
|
|
|
4667
4666
|
}
|
|
4668
4667
|
},
|
|
4669
4668
|
setup(t) {
|
|
4670
|
-
const e = oe(), n = t, s = Q([]), o =
|
|
4669
|
+
const e = oe(), n = t, s = Q([]), o = I(() => {
|
|
4671
4670
|
var i, c;
|
|
4672
4671
|
return ((c = (i = n.tableDataSelect) == null ? void 0 : i.data) == null ? void 0 : c.length) > 0;
|
|
4673
4672
|
}), r = A(!1);
|
|
@@ -4896,9 +4895,9 @@ const Oi = {
|
|
|
4896
4895
|
B([i, c, h], ([D, N, re]) => {
|
|
4897
4896
|
(D || N || re) && q();
|
|
4898
4897
|
});
|
|
4899
|
-
const l = A(!0), p = A([]), E = A(0), O = A({}), m = A({}), u = A(null),
|
|
4898
|
+
const l = A(!0), p = A([]), E = A(0), O = A({}), m = A({}), u = A(null), _ = A(null);
|
|
4900
4899
|
let g = {};
|
|
4901
|
-
const
|
|
4900
|
+
const y = A(parseInt(e.query.pageSize) || 30), w = A(parseInt(e.query.page) || 1);
|
|
4902
4901
|
function k(D) {
|
|
4903
4902
|
let N = null;
|
|
4904
4903
|
if (D.order === "ascending" ? N = "ASC" : D.order === "descending" && (N = "DESC"), g.sorters) {
|
|
@@ -4913,7 +4912,7 @@ const Oi = {
|
|
|
4913
4912
|
g.sorters = [{ field: D.prop, order: N }];
|
|
4914
4913
|
q();
|
|
4915
4914
|
}
|
|
4916
|
-
function
|
|
4915
|
+
function V() {
|
|
4917
4916
|
m.value = s.settings.operations(n);
|
|
4918
4917
|
}
|
|
4919
4918
|
function q() {
|
|
@@ -4923,14 +4922,14 @@ const Oi = {
|
|
|
4923
4922
|
...n,
|
|
4924
4923
|
...s.query,
|
|
4925
4924
|
page: w.value,
|
|
4926
|
-
size:
|
|
4925
|
+
size: y.value
|
|
4927
4926
|
};
|
|
4928
4927
|
s.settings.rest.getList(D).then((N) => {
|
|
4929
4928
|
O.value.data = [], p.value = N.data.rows, E.value = N.data.count, l.value = !1;
|
|
4930
4929
|
});
|
|
4931
4930
|
}
|
|
4932
4931
|
function W(D) {
|
|
4933
|
-
w.value = D.page,
|
|
4932
|
+
w.value = D.page, y.value = D.size, q();
|
|
4934
4933
|
}
|
|
4935
4934
|
function de(D) {
|
|
4936
4935
|
const N = { id: D.id, enable: !D.enable };
|
|
@@ -4959,12 +4958,12 @@ const Oi = {
|
|
|
4959
4958
|
tn(u, (D) => {
|
|
4960
4959
|
var N;
|
|
4961
4960
|
St.value = ((N = D[0]) == null ? void 0 : N.contentRect.height) || 0;
|
|
4962
|
-
}), tn(
|
|
4961
|
+
}), tn(_, (D) => {
|
|
4963
4962
|
var N;
|
|
4964
4963
|
xt.value = ((N = D[0]) == null ? void 0 : N.contentRect.height) || 0;
|
|
4965
4964
|
});
|
|
4966
|
-
const Wn =
|
|
4967
|
-
return
|
|
4965
|
+
const Wn = I(() => `${St.value + xt.value}px`);
|
|
4966
|
+
return V(), (D, N) => (d(), S("div", {
|
|
4968
4967
|
key: s.settings.code,
|
|
4969
4968
|
style: { height: "100%" }
|
|
4970
4969
|
}, [
|
|
@@ -5002,7 +5001,7 @@ const Oi = {
|
|
|
5002
5001
|
s.settings.rowActions(f(n)).length > 0 ? {
|
|
5003
5002
|
name: "actions",
|
|
5004
5003
|
fn: b(({ row: re }) => [
|
|
5005
|
-
x(
|
|
5004
|
+
x(Vn, {
|
|
5006
5005
|
row: re,
|
|
5007
5006
|
settings: s.settings,
|
|
5008
5007
|
query: f(n)
|
|
@@ -5015,11 +5014,11 @@ const Oi = {
|
|
|
5015
5014
|
]),
|
|
5016
5015
|
C("div", {
|
|
5017
5016
|
ref_key: "pagination",
|
|
5018
|
-
ref:
|
|
5017
|
+
ref: _
|
|
5019
5018
|
}, [
|
|
5020
5019
|
x(ci, {
|
|
5021
5020
|
page: w.value,
|
|
5022
|
-
size:
|
|
5021
|
+
size: y.value,
|
|
5023
5022
|
total: E.value,
|
|
5024
5023
|
onPageChange: W
|
|
5025
5024
|
}, null, 8, ["page", "size", "total"])
|
|
@@ -5069,11 +5068,11 @@ const Oi = {
|
|
|
5069
5068
|
"json"
|
|
5070
5069
|
];
|
|
5071
5070
|
a.value = s.settings.fields.filter((m) => m.showInDetail());
|
|
5072
|
-
const h =
|
|
5071
|
+
const h = I(() => a.value.find((m) => m.code === s.settings.coverField)), l = I(() => a.value.filter((m) => !c.includes(m.type))), p = I(() => {
|
|
5073
5072
|
var u;
|
|
5074
5073
|
const m = (u = h.value) == null ? void 0 : u.code;
|
|
5075
|
-
return a.value.filter((
|
|
5076
|
-
}), E =
|
|
5074
|
+
return a.value.filter((_) => c.includes(_.type)).filter((_) => _.code !== m);
|
|
5075
|
+
}), E = I({
|
|
5077
5076
|
get() {
|
|
5078
5077
|
return p.value.map((m) => m.code);
|
|
5079
5078
|
},
|
|
@@ -5114,19 +5113,19 @@ const Oi = {
|
|
|
5114
5113
|
default: b(() => [
|
|
5115
5114
|
x(f(Se), { gutter: 20 }, {
|
|
5116
5115
|
default: b(() => [
|
|
5117
|
-
(d(!0), S(L, null, M(l.value, (
|
|
5118
|
-
span:
|
|
5116
|
+
(d(!0), S(L, null, M(l.value, (_) => (d(), $(f(be), {
|
|
5117
|
+
span: _.span,
|
|
5119
5118
|
class: "mono-data",
|
|
5120
5119
|
style: { "margin-bottom": "20px" }
|
|
5121
5120
|
}, {
|
|
5122
5121
|
default: b(() => [
|
|
5123
|
-
C("div", Ri, F(
|
|
5122
|
+
C("div", Ri, F(_.label), 1),
|
|
5124
5123
|
C("div", Di, [
|
|
5125
|
-
|
|
5124
|
+
_.code === "id" ? (d(), S(L, { key: 0 }, [
|
|
5126
5125
|
j(F(i.value.id), 1)
|
|
5127
|
-
], 64)) : (d(), $(Y(
|
|
5126
|
+
], 64)) : (d(), $(Y(_.display), {
|
|
5128
5127
|
key: 1,
|
|
5129
|
-
field:
|
|
5128
|
+
field: _,
|
|
5130
5129
|
row: i.value,
|
|
5131
5130
|
mode: "description"
|
|
5132
5131
|
}, null, 8, ["field", "row"]))
|
|
@@ -5146,18 +5145,18 @@ const Oi = {
|
|
|
5146
5145
|
p.value.length > 0 ? (d(), $(f(_s), {
|
|
5147
5146
|
key: 0,
|
|
5148
5147
|
modelValue: E.value,
|
|
5149
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
5148
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => E.value = _),
|
|
5150
5149
|
class: "extend-fields"
|
|
5151
5150
|
}, {
|
|
5152
5151
|
default: b(() => [
|
|
5153
|
-
(d(!0), S(L, null, M(p.value, (
|
|
5154
|
-
title:
|
|
5155
|
-
name:
|
|
5152
|
+
(d(!0), S(L, null, M(p.value, (_) => (d(), $(f(ys), {
|
|
5153
|
+
title: _.label,
|
|
5154
|
+
name: _.code,
|
|
5156
5155
|
class: "mono-data"
|
|
5157
5156
|
}, {
|
|
5158
5157
|
default: b(() => [
|
|
5159
|
-
(d(), $(Y(
|
|
5160
|
-
field:
|
|
5158
|
+
(d(), $(Y(_.display), {
|
|
5159
|
+
field: _,
|
|
5161
5160
|
row: i.value,
|
|
5162
5161
|
mode: "extend"
|
|
5163
5162
|
}, null, 8, ["field", "row"]))
|
|
@@ -5207,7 +5206,7 @@ const Oi = {
|
|
|
5207
5206
|
C("div", null, [
|
|
5208
5207
|
r.data ? (d(), $(f(ce), { key: 0 }, {
|
|
5209
5208
|
default: b(() => [
|
|
5210
|
-
x(
|
|
5209
|
+
x(Vn, {
|
|
5211
5210
|
row: r.data,
|
|
5212
5211
|
settings: r.settings,
|
|
5213
5212
|
query: f(o)
|
|
@@ -5297,14 +5296,14 @@ const Oi = {
|
|
|
5297
5296
|
}, null, 8, ["query", "settings"]),
|
|
5298
5297
|
x(f(pn), {
|
|
5299
5298
|
modelValue: a.value,
|
|
5300
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
5299
|
+
"onUpdate:modelValue": m[0] || (m[0] = (_) => a.value = _),
|
|
5301
5300
|
class: "association-tabs",
|
|
5302
5301
|
onTabClick: p
|
|
5303
5302
|
}, {
|
|
5304
5303
|
default: b(() => [
|
|
5305
|
-
(d(!0), S(L, null, M(o.associations, (
|
|
5306
|
-
label:
|
|
5307
|
-
name:
|
|
5304
|
+
(d(!0), S(L, null, M(o.associations, (_) => (d(), $(f(fn), {
|
|
5305
|
+
label: _.name,
|
|
5306
|
+
name: _.domain
|
|
5308
5307
|
}, null, 8, ["label", "name"]))), 256))
|
|
5309
5308
|
]),
|
|
5310
5309
|
_: 1
|
|
@@ -5316,7 +5315,7 @@ const Oi = {
|
|
|
5316
5315
|
]);
|
|
5317
5316
|
};
|
|
5318
5317
|
}
|
|
5319
|
-
},
|
|
5318
|
+
}, Ii = /* @__PURE__ */ P(Ni, [["__scopeId", "data-v-4881eb36"]]), Vi = {
|
|
5320
5319
|
key: 1,
|
|
5321
5320
|
class: "loading-wrapper"
|
|
5322
5321
|
}, Ui = {
|
|
@@ -5340,11 +5339,11 @@ const Oi = {
|
|
|
5340
5339
|
query: () => ({})
|
|
5341
5340
|
});
|
|
5342
5341
|
}
|
|
5343
|
-
return (i, c) => o.value ? (d(), $(
|
|
5342
|
+
return (i, c) => o.value ? (d(), $(Ii, {
|
|
5344
5343
|
key: 0,
|
|
5345
5344
|
settings: o.value,
|
|
5346
5345
|
associations: r.value
|
|
5347
|
-
}, null, 8, ["settings", "associations"])) : me((d(), S("div",
|
|
5346
|
+
}, null, 8, ["settings", "associations"])) : me((d(), S("div", Vi, null, 512)), [
|
|
5348
5347
|
[f(he), !0]
|
|
5349
5348
|
]);
|
|
5350
5349
|
}
|
|
@@ -5413,7 +5412,7 @@ export {
|
|
|
5413
5412
|
U as k,
|
|
5414
5413
|
ll as l,
|
|
5415
5414
|
rl as m,
|
|
5416
|
-
|
|
5415
|
+
Vo as n,
|
|
5417
5416
|
Uo as o,
|
|
5418
5417
|
ul as p,
|
|
5419
5418
|
cl as q,
|
|
@@ -5427,4 +5426,4 @@ export {
|
|
|
5427
5426
|
Xi as y,
|
|
5428
5427
|
el as z
|
|
5429
5428
|
};
|
|
5430
|
-
//# sourceMappingURL=index-
|
|
5429
|
+
//# sourceMappingURL=index-BF3lUmGn.js.map
|