kouxiangtang 0.0.47 → 0.0.49
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-DAja7sl_.js → AttachmentUploader-DCyshkG0.js} +2 -2
- package/dist/{AttachmentUploader-DAja7sl_.js.map → AttachmentUploader-DCyshkG0.js.map} +1 -1
- package/dist/{ImageUploader-Cj9hnc_a.js → ImageUploader-B1_mID5R.js} +2 -2
- package/dist/{ImageUploader-Cj9hnc_a.js.map → ImageUploader-B1_mID5R.js.map} +1 -1
- package/dist/{ImagesUploader-2UytVh7o.js → ImagesUploader-D-XPUBP2.js} +2 -2
- package/dist/{ImagesUploader-2UytVh7o.js.map → ImagesUploader-D-XPUBP2.js.map} +1 -1
- package/dist/{RichTextEditor-09H-buel.js → RichTextEditor-B_0MIOKx.js} +2 -2
- package/dist/{RichTextEditor-09H-buel.js.map → RichTextEditor-B_0MIOKx.js.map} +1 -1
- package/dist/{config-Il-cSavZ.js → config-B7lceYyH.js} +2 -2
- package/dist/{config-Il-cSavZ.js.map → config-B7lceYyH.js.map} +1 -1
- package/dist/{config-DyjbA8rr.js → config-BCAUAyF7.js} +29 -29
- package/dist/config-BCAUAyF7.js.map +1 -0
- package/dist/{config-Bysdg4Tn.js → config-BLvYyM3T.js} +12 -12
- package/dist/config-BLvYyM3T.js.map +1 -0
- package/dist/{config-BY8u7elp.js → config-BRxoZQ52.js} +3 -3
- package/dist/{config-BY8u7elp.js.map → config-BRxoZQ52.js.map} +1 -1
- package/dist/{config-DZmjKHd6.js → config-BW9jvuW5.js} +3 -3
- package/dist/{config-DZmjKHd6.js.map → config-BW9jvuW5.js.map} +1 -1
- package/dist/{config-CFk5wLMH.js → config-B_RLj9Hv.js} +2 -2
- package/dist/{config-CFk5wLMH.js.map → config-B_RLj9Hv.js.map} +1 -1
- package/dist/{config-CebKIlk_.js → config-BbKfNDqe.js} +2 -2
- package/dist/{config-CebKIlk_.js.map → config-BbKfNDqe.js.map} +1 -1
- package/dist/{config-mTP6jlfg.js → config-C5JzH89W.js} +2 -2
- package/dist/{config-mTP6jlfg.js.map → config-C5JzH89W.js.map} +1 -1
- package/dist/{config-DmuYRga0.js → config-CAot7p98.js} +2 -2
- package/dist/{config-DmuYRga0.js.map → config-CAot7p98.js.map} +1 -1
- package/dist/{config-B3FxL_gf.js → config-CNtiXWZ8.js} +2 -2
- package/dist/{config-B3FxL_gf.js.map → config-CNtiXWZ8.js.map} +1 -1
- package/dist/{config-GvQDMYuk.js → config-CRAIqQDi.js} +3 -3
- package/dist/{config-GvQDMYuk.js.map → config-CRAIqQDi.js.map} +1 -1
- package/dist/{config-RKJFSbGR.js → config-D43m9_jf.js} +2 -2
- package/dist/{config-RKJFSbGR.js.map → config-D43m9_jf.js.map} +1 -1
- package/dist/{config-kYIoJHgD.js → config-DW9zXh7I.js} +2 -2
- package/dist/{config-kYIoJHgD.js.map → config-DW9zXh7I.js.map} +1 -1
- package/dist/{config-Dr2HM5A2.js → config-D_6sEq9t.js} +2 -2
- package/dist/{config-Dr2HM5A2.js.map → config-D_6sEq9t.js.map} +1 -1
- package/dist/{config-B5nYLQCA.js → config-Dyr3ggPP.js} +2 -2
- package/dist/{config-B5nYLQCA.js.map → config-Dyr3ggPP.js.map} +1 -1
- package/dist/{config-BVDfZ3ym.js → config-JvrjLObh.js} +2 -2
- package/dist/{config-BVDfZ3ym.js.map → config-JvrjLObh.js.map} +1 -1
- package/dist/{index-EHhiwbjo.js → index-VhXXlvT7.js} +430 -435
- package/dist/index-VhXXlvT7.js.map +1 -0
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +7 -7
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/config-Bysdg4Tn.js.map +0 -1
- package/dist/config-DyjbA8rr.js.map +0 -1
- package/dist/index-EHhiwbjo.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as c, createBlock as E, unref as f, createSlots as Ce, withCtx as w, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as He, withDirectives as he, createElementBlock as $, normalizeStyle as Ge, createVNode as
|
|
1
|
+
import { openBlock as c, createBlock as E, unref as f, createSlots as Ce, withCtx as w, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as He, withDirectives as he, createElementBlock as $, normalizeStyle as Ge, createVNode as O, createTextVNode as B, computed as N, Fragment as L, renderList as M, ref as A, reactive as $e, watch as P, resolveDynamicComponent as K, createCommentVNode as T, shallowRef as Q, defineAsyncComponent as Jn, normalizeClass as Se, defineComponent as H, pushScopeId as rn, popScopeId as an, withModifiers as xt, 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 ge, ElRow as Oe, ElCol as we, ElForm as cn, ElFormItem as nt, ElAlert as es, ElButton as te, ElMessageBox as ts, ElMessage as Ne, ElDialog as ns, ElLoading as Pe, ElTooltip as ss, ElText as At, ElImage as dn, ElTabs as pn, ElTabPane as fn, ElDropdown as st, ElDropdownMenu as ot, ElDropdownItem as ue, 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 Ye, ElSelectV2 as ps, ElDatePicker as Ft, ElInput as fs, ElButtonGroup as de, ElEmpty as ms, ElTable as hs, ElTableColumn as Le, ElPagination as gs, ElCollapse as _s, ElCollapseItem as ys } from "element-plus";
|
|
3
3
|
import { useRoute as z, useRouter as _e } from "vue-router";
|
|
4
4
|
import { defineStore as mt, storeToRefs as pe } from "pinia";
|
|
@@ -165,8 +165,8 @@ const Ys = (t) => {
|
|
|
165
165
|
e[o] = s;
|
|
166
166
|
const r = ye(s) ? [] : {};
|
|
167
167
|
return Re(s, (a, i) => {
|
|
168
|
-
const
|
|
169
|
-
!xe(
|
|
168
|
+
const u = n(a, o + 1);
|
|
169
|
+
!xe(u) && (r[i] = u);
|
|
170
170
|
}), e[o] = void 0, r;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -273,8 +273,8 @@ Object.defineProperties(R, $n);
|
|
|
273
273
|
Object.defineProperty(En, "isAxiosError", { value: !0 });
|
|
274
274
|
R.from = (t, e, n, s, o, r) => {
|
|
275
275
|
const a = Object.create(En);
|
|
276
|
-
return v.toFlatObject(t, a, function(
|
|
277
|
-
return
|
|
276
|
+
return v.toFlatObject(t, a, function(u) {
|
|
277
|
+
return u !== Error.prototype;
|
|
278
278
|
}, (i) => i !== "isAxiosError"), R.call(a, t.message, e, n, s, o), a.cause = t, a.name = t.name, r && Object.assign(a, r), a;
|
|
279
279
|
};
|
|
280
280
|
const Zs = null;
|
|
@@ -302,10 +302,10 @@ function Qe(t, e, n) {
|
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(
|
|
306
|
-
return !v.isUndefined(_[
|
|
305
|
+
}, !1, function(l, _) {
|
|
306
|
+
return !v.isUndefined(_[l]);
|
|
307
307
|
});
|
|
308
|
-
const s = n.metaTokens, o = n.visitor || d, r = n.dots, a = n.indexes,
|
|
308
|
+
const s = n.metaTokens, o = n.visitor || d, r = n.dots, a = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
|
|
309
309
|
if (!v.isFunction(o))
|
|
310
310
|
throw new TypeError("visitor must be a function");
|
|
311
311
|
function h(m) {
|
|
@@ -313,49 +313,49 @@ function Qe(t, e, n) {
|
|
|
313
313
|
return "";
|
|
314
314
|
if (v.isDate(m))
|
|
315
315
|
return m.toISOString();
|
|
316
|
-
if (!
|
|
316
|
+
if (!u && v.isBlob(m))
|
|
317
317
|
throw new R("Blob is not supported. Use a Buffer instead.");
|
|
318
|
-
return v.isArrayBuffer(m) || v.isTypedArray(m) ?
|
|
318
|
+
return v.isArrayBuffer(m) || v.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
319
319
|
}
|
|
320
|
-
function d(m,
|
|
320
|
+
function d(m, l, _) {
|
|
321
321
|
let g = m;
|
|
322
322
|
if (m && !_ && typeof m == "object") {
|
|
323
|
-
if (v.endsWith(
|
|
324
|
-
|
|
325
|
-
else if (v.isArray(m) && eo(m) || (v.isFileList(m) || v.endsWith(
|
|
326
|
-
return
|
|
323
|
+
if (v.endsWith(l, "{}"))
|
|
324
|
+
l = s ? l : l.slice(0, -2), m = JSON.stringify(m);
|
|
325
|
+
else if (v.isArray(m) && eo(m) || (v.isFileList(m) || v.endsWith(l, "[]")) && (g = v.toArray(m)))
|
|
326
|
+
return l = Sn(l), g.forEach(function(b, k) {
|
|
327
327
|
!(v.isUndefined(b) || b === null) && e.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
|
-
a === !0 ? jt([
|
|
329
|
+
a === !0 ? jt([l], k, r) : a === null ? l : l + "[]",
|
|
330
330
|
h(b)
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return at(m) ? !0 : (e.append(jt(_,
|
|
334
|
+
return at(m) ? !0 : (e.append(jt(_, l, r), h(m)), !1);
|
|
335
335
|
}
|
|
336
336
|
const p = [], S = Object.assign(to, {
|
|
337
337
|
defaultVisitor: d,
|
|
338
338
|
convertValue: h,
|
|
339
339
|
isVisitable: at
|
|
340
340
|
});
|
|
341
|
-
function
|
|
341
|
+
function x(m, l) {
|
|
342
342
|
if (!v.isUndefined(m)) {
|
|
343
343
|
if (p.indexOf(m) !== -1)
|
|
344
|
-
throw Error("Circular reference detected in " +
|
|
344
|
+
throw Error("Circular reference detected in " + l.join("."));
|
|
345
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
349
|
v.isString(y) ? y.trim() : y,
|
|
350
|
-
|
|
350
|
+
l,
|
|
351
351
|
S
|
|
352
|
-
)) === !0 &&
|
|
352
|
+
)) === !0 && x(g, l ? l.concat(y) : [y]);
|
|
353
353
|
}), p.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
if (!v.isObject(t))
|
|
357
357
|
throw new TypeError("data must be an object");
|
|
358
|
-
return
|
|
358
|
+
return x(t), e;
|
|
359
359
|
}
|
|
360
360
|
function Bt(t) {
|
|
361
361
|
const e = {
|
|
@@ -500,8 +500,8 @@ function An(t) {
|
|
|
500
500
|
let a = n[r++];
|
|
501
501
|
if (a === "__proto__")
|
|
502
502
|
return !0;
|
|
503
|
-
const i = Number.isFinite(+a),
|
|
504
|
-
return a = !a && v.isArray(o) ? o.length : a,
|
|
503
|
+
const i = Number.isFinite(+a), u = r >= n.length;
|
|
504
|
+
return a = !a && v.isArray(o) ? o.length : a, u ? (v.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !i) : ((!o[a] || !v.isObject(o[a])) && (o[a] = []), e(n, s, o[a], r) && v.isArray(o[a]) && (o[a] = fo(o[a])), !i);
|
|
505
505
|
}
|
|
506
506
|
if (v.isFormData(t) && v.isFunction(t.entries)) {
|
|
507
507
|
const n = {};
|
|
@@ -539,10 +539,10 @@ const De = {
|
|
|
539
539
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
540
540
|
return co(e, this.formSerializer).toString();
|
|
541
541
|
if ((i = v.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
542
|
-
const
|
|
542
|
+
const u = this.env && this.env.FormData;
|
|
543
543
|
return Qe(
|
|
544
544
|
i ? { "files[]": e } : e,
|
|
545
|
-
|
|
545
|
+
u && new u(),
|
|
546
546
|
this.formSerializer
|
|
547
547
|
);
|
|
548
548
|
}
|
|
@@ -658,14 +658,14 @@ class Z {
|
|
|
658
658
|
}
|
|
659
659
|
set(e, n, s) {
|
|
660
660
|
const o = this;
|
|
661
|
-
function r(i,
|
|
662
|
-
const d = be(
|
|
661
|
+
function r(i, u, h) {
|
|
662
|
+
const d = be(u);
|
|
663
663
|
if (!d)
|
|
664
664
|
throw new Error("header name must be a non-empty string");
|
|
665
665
|
const p = v.findKey(o, d);
|
|
666
|
-
(!p || o[p] === void 0 || h === !0 || h === void 0 && o[p] !== !1) && (o[p ||
|
|
666
|
+
(!p || o[p] === void 0 || h === !0 || h === void 0 && o[p] !== !1) && (o[p || u] = Be(i));
|
|
667
667
|
}
|
|
668
|
-
const a = (i,
|
|
668
|
+
const a = (i, u) => v.forEach(i, (h, d) => r(h, d, u));
|
|
669
669
|
return v.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : v.isString(e) && (e = e.trim()) && !yo(e) ? a(go(e), n) : e != null && r(n, e, s), this;
|
|
670
670
|
}
|
|
671
671
|
get(e, n) {
|
|
@@ -874,31 +874,31 @@ function ko(t, e) {
|
|
|
874
874
|
t = t || 10;
|
|
875
875
|
const n = new Array(t), s = new Array(t);
|
|
876
876
|
let o = 0, r = 0, a;
|
|
877
|
-
return e = e !== void 0 ? e : 1e3, function(
|
|
877
|
+
return e = e !== void 0 ? e : 1e3, function(u) {
|
|
878
878
|
const h = Date.now(), d = s[r];
|
|
879
|
-
a || (a = h), n[o] =
|
|
879
|
+
a || (a = h), n[o] = u, s[o] = h;
|
|
880
880
|
let p = r, S = 0;
|
|
881
881
|
for (; p !== o; )
|
|
882
882
|
S += n[p++], p = p % t;
|
|
883
883
|
if (o = (o + 1) % t, o === r && (r = (r + 1) % t), h - a < e)
|
|
884
884
|
return;
|
|
885
|
-
const
|
|
886
|
-
return
|
|
885
|
+
const x = d && h - d;
|
|
886
|
+
return x ? Math.round(S * 1e3 / x) : void 0;
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
function Vt(t, e) {
|
|
890
890
|
let n = 0;
|
|
891
891
|
const s = ko(50, 250);
|
|
892
892
|
return (o) => {
|
|
893
|
-
const r = o.loaded, a = o.lengthComputable ? o.total : void 0, i = r - n,
|
|
893
|
+
const r = o.loaded, a = o.lengthComputable ? o.total : void 0, i = r - n, u = s(i), h = r <= a;
|
|
894
894
|
n = r;
|
|
895
895
|
const d = {
|
|
896
896
|
loaded: r,
|
|
897
897
|
total: a,
|
|
898
898
|
progress: a ? r / a : void 0,
|
|
899
899
|
bytes: i,
|
|
900
|
-
rate:
|
|
901
|
-
estimated:
|
|
900
|
+
rate: u || void 0,
|
|
901
|
+
estimated: u && a && h ? (a - r) / u : void 0,
|
|
902
902
|
event: o
|
|
903
903
|
};
|
|
904
904
|
d[e ? "download" : "upload"] = !0, t(d);
|
|
@@ -908,36 +908,36 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
|
|
|
908
908
|
return new Promise(function(n, s) {
|
|
909
909
|
let o = t.data;
|
|
910
910
|
const r = Z.from(t.headers).normalize();
|
|
911
|
-
let { responseType: a, withXSRFToken: i } = t,
|
|
911
|
+
let { responseType: a, withXSRFToken: i } = t, u;
|
|
912
912
|
function h() {
|
|
913
|
-
t.cancelToken && t.cancelToken.unsubscribe(
|
|
913
|
+
t.cancelToken && t.cancelToken.unsubscribe(u), t.signal && t.signal.removeEventListener("abort", u);
|
|
914
914
|
}
|
|
915
915
|
let d;
|
|
916
916
|
if (v.isFormData(o)) {
|
|
917
917
|
if (ne.hasStandardBrowserEnv || ne.hasStandardBrowserWebWorkerEnv)
|
|
918
918
|
r.setContentType(!1);
|
|
919
919
|
else if ((d = r.getContentType()) !== !1) {
|
|
920
|
-
const [
|
|
921
|
-
r.setContentType([
|
|
920
|
+
const [l, ..._] = d ? d.split(";").map((g) => g.trim()).filter(Boolean) : [];
|
|
921
|
+
r.setContentType([l || "multipart/form-data", ..._].join("; "));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
let p = new XMLHttpRequest();
|
|
925
925
|
if (t.auth) {
|
|
926
|
-
const
|
|
927
|
-
r.set("Authorization", "Basic " + btoa(
|
|
926
|
+
const l = t.auth.username || "", _ = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
927
|
+
r.set("Authorization", "Basic " + btoa(l + ":" + _));
|
|
928
928
|
}
|
|
929
929
|
const S = Dn(t.baseURL, t.url);
|
|
930
930
|
p.open(t.method.toUpperCase(), xn(S, t.params, t.paramsSerializer), !0), p.timeout = t.timeout;
|
|
931
|
-
function
|
|
931
|
+
function x() {
|
|
932
932
|
if (!p)
|
|
933
933
|
return;
|
|
934
|
-
const
|
|
934
|
+
const l = Z.from(
|
|
935
935
|
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
936
936
|
), g = {
|
|
937
937
|
data: !a || a === "text" || a === "json" ? p.responseText : p.response,
|
|
938
938
|
status: p.status,
|
|
939
939
|
statusText: p.statusText,
|
|
940
|
-
headers:
|
|
940
|
+
headers: l,
|
|
941
941
|
config: t,
|
|
942
942
|
request: p
|
|
943
943
|
};
|
|
@@ -947,8 +947,8 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
|
|
|
947
947
|
s(b), h();
|
|
948
948
|
}, g), p = null;
|
|
949
949
|
}
|
|
950
|
-
if ("onloadend" in p ? p.onloadend =
|
|
951
|
-
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
950
|
+
if ("onloadend" in p ? p.onloadend = x : p.onreadystatechange = function() {
|
|
951
|
+
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
952
952
|
}, p.onabort = function() {
|
|
953
953
|
p && (s(new R("Request aborted", R.ECONNABORTED, t, p)), p = null);
|
|
954
954
|
}, p.onerror = function() {
|
|
@@ -963,14 +963,14 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
|
|
|
963
963
|
p
|
|
964
964
|
)), p = null;
|
|
965
965
|
}, ne.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Oo(S))) {
|
|
966
|
-
const
|
|
967
|
-
|
|
966
|
+
const l = t.xsrfHeaderName && t.xsrfCookieName && Eo.read(t.xsrfCookieName);
|
|
967
|
+
l && r.set(t.xsrfHeaderName, l);
|
|
968
968
|
}
|
|
969
969
|
o === void 0 && r.setContentType(null), "setRequestHeader" in p && v.forEach(r.toJSON(), function(_, g) {
|
|
970
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) && (
|
|
972
|
-
p && (s(!
|
|
973
|
-
}, t.cancelToken && t.cancelToken.subscribe(
|
|
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) && (u = (l) => {
|
|
972
|
+
p && (s(!l || l.type ? new Te(null, t, p) : l), p.abort(), p = null);
|
|
973
|
+
}, t.cancelToken && t.cancelToken.subscribe(u), t.signal && (t.signal.aborted ? u() : t.signal.addEventListener("abort", u)));
|
|
974
974
|
const m = xo(S);
|
|
975
975
|
if (m && ne.protocols.indexOf(m) === -1) {
|
|
976
976
|
s(new R("Unsupported protocol " + m + ":", R.ERR_BAD_REQUEST, t));
|
|
@@ -1008,7 +1008,7 @@ const Ut = (t) => `- ${t}`, Ro = (t) => v.isFunction(t) || t === null || t === !
|
|
|
1008
1008
|
}
|
|
1009
1009
|
if (!s) {
|
|
1010
1010
|
const r = Object.entries(o).map(
|
|
1011
|
-
([i,
|
|
1011
|
+
([i, u]) => `adapter ${i} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1012
1012
|
);
|
|
1013
1013
|
let a = e ? r.length > 1 ? `since :
|
|
1014
1014
|
` + r.map(Ut).join(`
|
|
@@ -1075,7 +1075,7 @@ function me(t, e) {
|
|
|
1075
1075
|
if (p in t)
|
|
1076
1076
|
return s(void 0, h);
|
|
1077
1077
|
}
|
|
1078
|
-
const
|
|
1078
|
+
const u = {
|
|
1079
1079
|
url: r,
|
|
1080
1080
|
method: r,
|
|
1081
1081
|
data: r,
|
|
@@ -1107,7 +1107,7 @@ function me(t, e) {
|
|
|
1107
1107
|
headers: (h, d) => o(Mt(h), Mt(d), !0)
|
|
1108
1108
|
};
|
|
1109
1109
|
return v.forEach(Object.keys(Object.assign({}, t, e)), function(d) {
|
|
1110
|
-
const p =
|
|
1110
|
+
const p = u[d] || o, S = p(t[d], e[d], d);
|
|
1111
1111
|
v.isUndefined(S) && p !== i || (n[d] = S);
|
|
1112
1112
|
}), n;
|
|
1113
1113
|
}
|
|
@@ -1144,9 +1144,9 @@ function Do(t, e, n) {
|
|
|
1144
1144
|
for (; o-- > 0; ) {
|
|
1145
1145
|
const r = s[o], a = e[r];
|
|
1146
1146
|
if (a) {
|
|
1147
|
-
const i = t[r],
|
|
1148
|
-
if (
|
|
1149
|
-
throw new R("option " + r + " must be " +
|
|
1147
|
+
const i = t[r], u = i === void 0 || a(i, r, t);
|
|
1148
|
+
if (u !== !0)
|
|
1149
|
+
throw new R("option " + r + " must be " + u, R.ERR_BAD_OPTION_VALUE);
|
|
1150
1150
|
continue;
|
|
1151
1151
|
}
|
|
1152
1152
|
if (n !== !0)
|
|
@@ -1210,34 +1210,34 @@ class ce {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
), n.headers = Z.concat(a, r);
|
|
1212
1212
|
const i = [];
|
|
1213
|
-
let
|
|
1214
|
-
this.interceptors.request.forEach(function(
|
|
1215
|
-
typeof
|
|
1213
|
+
let u = !0;
|
|
1214
|
+
this.interceptors.request.forEach(function(l) {
|
|
1215
|
+
typeof l.runWhen == "function" && l.runWhen(n) === !1 || (u = u && l.synchronous, i.unshift(l.fulfilled, l.rejected));
|
|
1216
1216
|
});
|
|
1217
1217
|
const h = [];
|
|
1218
|
-
this.interceptors.response.forEach(function(
|
|
1219
|
-
h.push(
|
|
1218
|
+
this.interceptors.response.forEach(function(l) {
|
|
1219
|
+
h.push(l.fulfilled, l.rejected);
|
|
1220
1220
|
});
|
|
1221
1221
|
let d, p = 0, S;
|
|
1222
|
-
if (!
|
|
1222
|
+
if (!u) {
|
|
1223
1223
|
const m = [zt.bind(this), void 0];
|
|
1224
1224
|
for (m.unshift.apply(m, i), m.push.apply(m, h), S = m.length, d = Promise.resolve(n); p < S; )
|
|
1225
1225
|
d = d.then(m[p++], m[p++]);
|
|
1226
1226
|
return d;
|
|
1227
1227
|
}
|
|
1228
1228
|
S = i.length;
|
|
1229
|
-
let
|
|
1229
|
+
let x = n;
|
|
1230
1230
|
for (p = 0; p < S; ) {
|
|
1231
|
-
const m = i[p++],
|
|
1231
|
+
const m = i[p++], l = i[p++];
|
|
1232
1232
|
try {
|
|
1233
|
-
|
|
1233
|
+
x = m(x);
|
|
1234
1234
|
} catch (_) {
|
|
1235
|
-
|
|
1235
|
+
l.call(this, _);
|
|
1236
1236
|
break;
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
try {
|
|
1240
|
-
d = zt.call(this,
|
|
1240
|
+
d = zt.call(this, x);
|
|
1241
1241
|
} catch (m) {
|
|
1242
1242
|
return Promise.reject(m);
|
|
1243
1243
|
}
|
|
@@ -1519,25 +1519,25 @@ var Pn = { exports: {} };
|
|
|
1519
1519
|
typeof zo == "function" ? t.exports = s() : n.pluralize = s();
|
|
1520
1520
|
})(Vo, function() {
|
|
1521
1521
|
var n = [], s = [], o = {}, r = {}, a = {};
|
|
1522
|
-
function i(
|
|
1523
|
-
return typeof
|
|
1522
|
+
function i(l) {
|
|
1523
|
+
return typeof l == "string" ? new RegExp("^" + l + "$", "i") : l;
|
|
1524
1524
|
}
|
|
1525
|
-
function l
|
|
1526
|
-
return
|
|
1525
|
+
function u(l, _) {
|
|
1526
|
+
return l === _ ? _ : l === l.toLowerCase() ? _.toLowerCase() : l === l.toUpperCase() ? _.toUpperCase() : l[0] === l[0].toUpperCase() ? _.charAt(0).toUpperCase() + _.substr(1).toLowerCase() : _.toLowerCase();
|
|
1527
1527
|
}
|
|
1528
|
-
function h(
|
|
1529
|
-
return
|
|
1528
|
+
function h(l, _) {
|
|
1529
|
+
return l.replace(/\$(\d{1,2})/g, function(g, y) {
|
|
1530
1530
|
return _[y] || "";
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
|
-
function d(
|
|
1534
|
-
return
|
|
1533
|
+
function d(l, _) {
|
|
1534
|
+
return l.replace(_[0], function(g, y) {
|
|
1535
1535
|
var b = h(_[1], arguments);
|
|
1536
|
-
return
|
|
1536
|
+
return u(g === "" ? l[y - 1] : g, b);
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
|
-
function p(
|
|
1540
|
-
if (!
|
|
1539
|
+
function p(l, _, g) {
|
|
1540
|
+
if (!l.length || o.hasOwnProperty(l))
|
|
1541
1541
|
return _;
|
|
1542
1542
|
for (var y = g.length; y--; ) {
|
|
1543
1543
|
var b = g[y];
|
|
@@ -1546,27 +1546,27 @@ var Pn = { exports: {} };
|
|
|
1546
1546
|
}
|
|
1547
1547
|
return _;
|
|
1548
1548
|
}
|
|
1549
|
-
function S(
|
|
1549
|
+
function S(l, _, g) {
|
|
1550
1550
|
return function(y) {
|
|
1551
1551
|
var b = y.toLowerCase();
|
|
1552
|
-
return _.hasOwnProperty(b) ?
|
|
1552
|
+
return _.hasOwnProperty(b) ? u(y, b) : l.hasOwnProperty(b) ? u(y, l[b]) : p(b, y, g);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function x(l, _, g, y) {
|
|
1556
1556
|
return function(b) {
|
|
1557
1557
|
var k = b.toLowerCase();
|
|
1558
|
-
return _.hasOwnProperty(k) ? !0 :
|
|
1558
|
+
return _.hasOwnProperty(k) ? !0 : l.hasOwnProperty(k) ? !1 : p(k, k, g) === k;
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function m(
|
|
1562
|
-
var y = _ === 1 ? m.singular(
|
|
1561
|
+
function m(l, _, g) {
|
|
1562
|
+
var y = _ === 1 ? m.singular(l) : m.plural(l);
|
|
1563
1563
|
return (g ? _ + " " : "") + y;
|
|
1564
1564
|
}
|
|
1565
1565
|
return m.plural = S(
|
|
1566
1566
|
a,
|
|
1567
1567
|
r,
|
|
1568
1568
|
n
|
|
1569
|
-
), m.isPlural =
|
|
1569
|
+
), m.isPlural = x(
|
|
1570
1570
|
a,
|
|
1571
1571
|
r,
|
|
1572
1572
|
n
|
|
@@ -1574,22 +1574,22 @@ var Pn = { exports: {} };
|
|
|
1574
1574
|
r,
|
|
1575
1575
|
a,
|
|
1576
1576
|
s
|
|
1577
|
-
), m.isSingular =
|
|
1577
|
+
), m.isSingular = x(
|
|
1578
1578
|
r,
|
|
1579
1579
|
a,
|
|
1580
1580
|
s
|
|
1581
|
-
), m.addPluralRule = function(
|
|
1582
|
-
n.push([i(
|
|
1583
|
-
}, m.addSingularRule = function(
|
|
1584
|
-
s.push([i(
|
|
1585
|
-
}, m.addUncountableRule = function(
|
|
1586
|
-
if (typeof
|
|
1587
|
-
o[
|
|
1581
|
+
), m.addPluralRule = function(l, _) {
|
|
1582
|
+
n.push([i(l), _]);
|
|
1583
|
+
}, m.addSingularRule = function(l, _) {
|
|
1584
|
+
s.push([i(l), _]);
|
|
1585
|
+
}, m.addUncountableRule = function(l) {
|
|
1586
|
+
if (typeof l == "string") {
|
|
1587
|
+
o[l.toLowerCase()] = !0;
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
|
-
m.addPluralRule(
|
|
1591
|
-
}, m.addIrregularRule = function(
|
|
1592
|
-
_ = _.toLowerCase(),
|
|
1590
|
+
m.addPluralRule(l, "$0"), m.addSingularRule(l, "$0");
|
|
1591
|
+
}, m.addIrregularRule = function(l, _) {
|
|
1592
|
+
_ = _.toLowerCase(), l = l.toLowerCase(), a[l] = _, r[_] = l;
|
|
1593
1593
|
}, [
|
|
1594
1594
|
// Pronouns.
|
|
1595
1595
|
["I", "we"],
|
|
@@ -1643,8 +1643,8 @@ var Pn = { exports: {} };
|
|
|
1643
1643
|
["groove", "grooves"],
|
|
1644
1644
|
["pickaxe", "pickaxes"],
|
|
1645
1645
|
["passerby", "passersby"]
|
|
1646
|
-
].forEach(function(
|
|
1647
|
-
return m.addIrregularRule(
|
|
1646
|
+
].forEach(function(l) {
|
|
1647
|
+
return m.addIrregularRule(l[0], l[1]);
|
|
1648
1648
|
}), [
|
|
1649
1649
|
[/s?$/i, "s"],
|
|
1650
1650
|
[/[^\u0000-\u007F]$/i, "$0"],
|
|
@@ -1671,8 +1671,8 @@ var Pn = { exports: {} };
|
|
|
1671
1671
|
[/eaux$/i, "$0"],
|
|
1672
1672
|
[/m[ae]n$/i, "men"],
|
|
1673
1673
|
["thou", "you"]
|
|
1674
|
-
].forEach(function(
|
|
1675
|
-
return m.addPluralRule(
|
|
1674
|
+
].forEach(function(l) {
|
|
1675
|
+
return m.addPluralRule(l[0], l[1]);
|
|
1676
1676
|
}), [
|
|
1677
1677
|
[/s$/i, ""],
|
|
1678
1678
|
[/(ss)$/i, "$1"],
|
|
@@ -1697,8 +1697,8 @@ var Pn = { exports: {} };
|
|
|
1697
1697
|
[/(child)ren$/i, "$1"],
|
|
1698
1698
|
[/(eau)x?$/i, "$1"],
|
|
1699
1699
|
[/men$/i, "man"]
|
|
1700
|
-
].forEach(function(
|
|
1701
|
-
return m.addSingularRule(
|
|
1700
|
+
].forEach(function(l) {
|
|
1701
|
+
return m.addSingularRule(l[0], l[1]);
|
|
1702
1702
|
}), [
|
|
1703
1703
|
// Singular words with no plurals.
|
|
1704
1704
|
"adulthood",
|
|
@@ -1927,12 +1927,7 @@ class Go {
|
|
|
1927
1927
|
if ("showInList" in this.defaultConfig())
|
|
1928
1928
|
return () => this.defaultConfig().showInList;
|
|
1929
1929
|
if (typeof n > "u")
|
|
1930
|
-
return (
|
|
1931
|
-
const o = JSON.parse(JSON.stringify(s));
|
|
1932
|
-
return o.association && o.association.split("-").forEach((a) => {
|
|
1933
|
-
delete o[a + "Id"];
|
|
1934
|
-
}), !o[e.code];
|
|
1935
|
-
};
|
|
1930
|
+
return () => !0;
|
|
1936
1931
|
throw new Exception(`invalid showInList : ${n}`);
|
|
1937
1932
|
}
|
|
1938
1933
|
_showInDetail(e) {
|
|
@@ -2010,7 +2005,7 @@ const tt = {
|
|
|
2010
2005
|
component: { config: "component" }
|
|
2011
2006
|
};
|
|
2012
2007
|
async function qt(t, e, n) {
|
|
2013
|
-
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-CRAIqQDi.js"), "./field/belongs-to/config.js": () => import("./config-BCAUAyF7.js"), "./field/boolean/config.js": () => import("./config-CNtiXWZ8.js"), "./field/cascader/config.js": () => import("./config-Dyr3ggPP.js"), "./field/component/config.js": () => import("./config-BbKfNDqe.js"), "./field/datetime/config.js": () => import("./config-DW9zXh7I.js"), "./field/image/config.js": () => import("./config-BW9jvuW5.js"), "./field/images/config.js": () => import("./config-B7lceYyH.js"), "./field/json/config.js": () => import("./config-BLvYyM3T.js"), "./field/rich-text/config.js": () => import("./config-BRxoZQ52.js"), "./field/row-id/config.js": () => import("./config-B_RLj9Hv.js"), "./field/select/config.js": () => import("./config-D_6sEq9t.js"), "./field/string/config.js": () => import("./config-CAot7p98.js"), "./field/switch/config.js": () => import("./config-JvrjLObh.js"), "./field/text/config.js": () => import("./config-D43m9_jf.js"), "./field/tree-select/config.js": () => import("./config-C5JzH89W.js") }), `./field/${t}/config.js`, 4);
|
|
2014
2009
|
return new s.default(e, n);
|
|
2015
2010
|
}
|
|
2016
2011
|
function Wt(t, e = "unknown") {
|
|
@@ -2194,11 +2189,11 @@ const j = (t, e) => {
|
|
|
2194
2189
|
style: Ge(`text-align: ${e.align};`)
|
|
2195
2190
|
}, [
|
|
2196
2191
|
e.link ? (c(), $("span", rr, [
|
|
2197
|
-
|
|
2192
|
+
O(a, {
|
|
2198
2193
|
to: e.link
|
|
2199
2194
|
}, {
|
|
2200
2195
|
default: w(() => [
|
|
2201
|
-
|
|
2196
|
+
O(f(Zn), { type: "primary" }, {
|
|
2202
2197
|
default: w(() => [
|
|
2203
2198
|
B(F(e.title), 1)
|
|
2204
2199
|
]),
|
|
@@ -2240,7 +2235,7 @@ const j = (t, e) => {
|
|
|
2240
2235
|
const e = t;
|
|
2241
2236
|
return (n, s) => (c(), E(nr, null, {
|
|
2242
2237
|
default: w(() => [
|
|
2243
|
-
|
|
2238
|
+
O(lr, {
|
|
2244
2239
|
title: e.title,
|
|
2245
2240
|
value: e.value,
|
|
2246
2241
|
icon: e.icon,
|
|
@@ -2294,7 +2289,7 @@ const hr = {
|
|
|
2294
2289
|
fields: Array
|
|
2295
2290
|
},
|
|
2296
2291
|
setup(t) {
|
|
2297
|
-
const e = t, n =
|
|
2292
|
+
const e = t, n = N(() => {
|
|
2298
2293
|
if (e.layout.length == 0) {
|
|
2299
2294
|
if (e.fields.length <= 6) {
|
|
2300
2295
|
const a = o(e.fields, 1);
|
|
@@ -2309,20 +2304,20 @@ const hr = {
|
|
|
2309
2304
|
return e.fields.find((i) => i.code == r);
|
|
2310
2305
|
}
|
|
2311
2306
|
function o(r, a = 2) {
|
|
2312
|
-
const i = r.map((h) => h.code),
|
|
2307
|
+
const i = r.map((h) => h.code), u = [];
|
|
2313
2308
|
for (let h = 0; h < i.length; h += a)
|
|
2314
|
-
|
|
2315
|
-
return
|
|
2309
|
+
u.push(i.slice(h, h + a));
|
|
2310
|
+
return u;
|
|
2316
2311
|
}
|
|
2317
2312
|
return (r, a) => (c(), $("div", null, [
|
|
2318
2313
|
(c(!0), $(L, null, M(n.value, (i) => (c(), E(f(Oe), { gutter: 20 }, {
|
|
2319
2314
|
default: w(() => [
|
|
2320
|
-
(c(!0), $(L, null, M(i.cols, (
|
|
2321
|
-
span:
|
|
2315
|
+
(c(!0), $(L, null, M(i.cols, (u) => (c(), E(f(we), {
|
|
2316
|
+
span: u.span
|
|
2322
2317
|
}, {
|
|
2323
2318
|
default: w(() => [
|
|
2324
2319
|
J(r.$slots, "default", {
|
|
2325
|
-
field: s(
|
|
2320
|
+
field: s(u.field)
|
|
2326
2321
|
})
|
|
2327
2322
|
]),
|
|
2328
2323
|
_: 2
|
|
@@ -2348,30 +2343,30 @@ const hr = {
|
|
|
2348
2343
|
},
|
|
2349
2344
|
emits: ["submit", "remove"],
|
|
2350
2345
|
setup(t, { emit: e }) {
|
|
2351
|
-
const n = z(), s = Y(n), o = e, r = A(!1), a = t, i = pt(a.config.formLayout || []),
|
|
2352
|
-
const b = y.editable(
|
|
2346
|
+
const n = z(), s = Y(n), o = e, r = A(!1), a = t, i = pt(a.config.formLayout || []), u = $e({ ...a.data }), h = A(null), d = a.config.fields.filter((y) => y.rules).reduce((y, b) => (y[b.code] = x(b.rules), y), {}), p = N(g), S = N(() => a.config.fields.filter((y) => {
|
|
2347
|
+
const b = y.editable(u, s), k = y.visible(u, s);
|
|
2353
2348
|
return y.disabled = k && !b, b || k;
|
|
2354
2349
|
}));
|
|
2355
|
-
function
|
|
2356
|
-
return typeof y == "object" ? y : typeof y == "function" ? y(
|
|
2350
|
+
function x(y) {
|
|
2351
|
+
return typeof y == "object" ? y : typeof y == "function" ? y(u) : [];
|
|
2357
2352
|
}
|
|
2358
2353
|
async function m() {
|
|
2359
2354
|
await h.value.validate((y, b) => {
|
|
2360
2355
|
var W, q;
|
|
2361
2356
|
if (!y)
|
|
2362
2357
|
return console.log("error submit!", b), !1;
|
|
2363
|
-
const k = (W = a.config.fields.find((oe) => ["images", "attachments", "attachment"].includes(oe.type))) == null ? void 0 : W.code, V = { ...
|
|
2358
|
+
const k = (W = a.config.fields.find((oe) => ["images", "attachments", "attachment"].includes(oe.type))) == null ? void 0 : W.code, V = { ...u };
|
|
2364
2359
|
k && (V[k] = (q = V[k]) == null ? void 0 : q.map((oe) => oe.id)), r.value = !0, o("submit", V, () => {
|
|
2365
2360
|
r.value = !1;
|
|
2366
2361
|
});
|
|
2367
2362
|
});
|
|
2368
2363
|
}
|
|
2369
|
-
function
|
|
2370
|
-
o("remove",
|
|
2364
|
+
function l() {
|
|
2365
|
+
o("remove", u);
|
|
2371
2366
|
}
|
|
2372
2367
|
function _() {
|
|
2373
2368
|
if (a.config.removeConfirm) {
|
|
2374
|
-
a.config.removeConfirm(
|
|
2369
|
+
a.config.removeConfirm(u, l);
|
|
2375
2370
|
return;
|
|
2376
2371
|
}
|
|
2377
2372
|
ts.confirm("确定要删除该条数据吗?", "提示", {
|
|
@@ -2380,7 +2375,7 @@ const hr = {
|
|
|
2380
2375
|
type: "warning",
|
|
2381
2376
|
appendTo: "#form"
|
|
2382
2377
|
}).then(() => {
|
|
2383
|
-
|
|
2378
|
+
l();
|
|
2384
2379
|
}).catch(() => {
|
|
2385
2380
|
Ne({
|
|
2386
2381
|
type: "info",
|
|
@@ -2390,10 +2385,10 @@ const hr = {
|
|
|
2390
2385
|
}
|
|
2391
2386
|
function g() {
|
|
2392
2387
|
const y = a.config.showSubmit;
|
|
2393
|
-
return typeof y == "boolean" ? y : typeof y == "function" ? y(s,
|
|
2388
|
+
return typeof y == "boolean" ? y : typeof y == "function" ? y(s, u) : !0;
|
|
2394
2389
|
}
|
|
2395
2390
|
return P(
|
|
2396
|
-
() => ({ ...
|
|
2391
|
+
() => ({ ...u }),
|
|
2397
2392
|
(y, b) => {
|
|
2398
2393
|
const V = Object.keys(y).filter((q) => b[q] !== y[q]).map((q) => {
|
|
2399
2394
|
var oe;
|
|
@@ -2404,14 +2399,14 @@ const hr = {
|
|
|
2404
2399
|
};
|
|
2405
2400
|
});
|
|
2406
2401
|
S.value.filter((q) => !q.disabled).forEach((q) => {
|
|
2407
|
-
q.formChange && q.formChange(
|
|
2402
|
+
q.formChange && q.formChange(u, V);
|
|
2408
2403
|
});
|
|
2409
2404
|
}
|
|
2410
2405
|
), P(
|
|
2411
2406
|
() => a.data,
|
|
2412
2407
|
(y) => {
|
|
2413
2408
|
Object.keys(y).forEach((b) => {
|
|
2414
|
-
|
|
2409
|
+
u[b] = y[b];
|
|
2415
2410
|
});
|
|
2416
2411
|
},
|
|
2417
2412
|
{ immediate: !0 }
|
|
@@ -2419,13 +2414,13 @@ const hr = {
|
|
|
2419
2414
|
id: "form",
|
|
2420
2415
|
ref_key: "formRef",
|
|
2421
2416
|
ref: h,
|
|
2422
|
-
model:
|
|
2417
|
+
model: u,
|
|
2423
2418
|
"label-width": "100px",
|
|
2424
2419
|
"label-position": "top",
|
|
2425
2420
|
rules: f(d)
|
|
2426
2421
|
}, {
|
|
2427
2422
|
default: w(() => [
|
|
2428
|
-
|
|
2423
|
+
O(hr, {
|
|
2429
2424
|
layout: f(i),
|
|
2430
2425
|
fields: S.value
|
|
2431
2426
|
}, {
|
|
@@ -2439,11 +2434,11 @@ const hr = {
|
|
|
2439
2434
|
C("div", gr, [
|
|
2440
2435
|
k != null && k.editor ? (c(), E(K(k.editor), {
|
|
2441
2436
|
key: 0,
|
|
2442
|
-
modelValue:
|
|
2443
|
-
"onUpdate:modelValue": (V) =>
|
|
2437
|
+
modelValue: u[k.code],
|
|
2438
|
+
"onUpdate:modelValue": (V) => u[k.code] = V,
|
|
2444
2439
|
field: k,
|
|
2445
2440
|
disabled: k.disabled,
|
|
2446
|
-
"form-data":
|
|
2441
|
+
"form-data": u,
|
|
2447
2442
|
"domain-config": a.config
|
|
2448
2443
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config"])) : (c(), E(f(es), {
|
|
2449
2444
|
key: 1,
|
|
@@ -2460,7 +2455,7 @@ const hr = {
|
|
|
2460
2455
|
_: 1
|
|
2461
2456
|
}, 8, ["layout", "fields"]),
|
|
2462
2457
|
C("div", _r, [
|
|
2463
|
-
|
|
2458
|
+
u.id && !u.deletedAt && a.removable ? (c(), E(f(te), {
|
|
2464
2459
|
key: 0,
|
|
2465
2460
|
size: "default",
|
|
2466
2461
|
type: "danger",
|
|
@@ -2516,48 +2511,48 @@ const Ee = {
|
|
|
2516
2511
|
},
|
|
2517
2512
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2518
2513
|
setup(t, { emit: e }) {
|
|
2519
|
-
const n = z(), s = Y(n), o = e, r = t, a =
|
|
2514
|
+
const n = z(), s = Y(n), o = e, r = t, a = A(r.data), i = N(() => ({ ...a.value, idempotentToken: h.value })), u = N(() => r.config.fields.filter((l) => l.visible(i, s)).length >= 6 ? "60%" : "40%"), h = A(""), d = N({
|
|
2520
2515
|
get() {
|
|
2521
2516
|
return r.modelValue;
|
|
2522
2517
|
},
|
|
2523
|
-
set(
|
|
2524
|
-
o("update:modelValue",
|
|
2518
|
+
set(m) {
|
|
2519
|
+
o("update:modelValue", m);
|
|
2525
2520
|
}
|
|
2526
|
-
}),
|
|
2527
|
-
function
|
|
2528
|
-
o("submit",
|
|
2529
|
-
|
|
2521
|
+
}), p = N(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
|
|
2522
|
+
function S(m, l) {
|
|
2523
|
+
a.value = m, o("submit", m, async () => {
|
|
2524
|
+
h.value = await Ee.getValue(), l();
|
|
2530
2525
|
});
|
|
2531
2526
|
}
|
|
2532
|
-
function
|
|
2533
|
-
o("remove",
|
|
2534
|
-
|
|
2527
|
+
function x(m, l) {
|
|
2528
|
+
o("remove", m, async () => {
|
|
2529
|
+
h.value = await Ee.getValue(), l();
|
|
2535
2530
|
});
|
|
2536
2531
|
}
|
|
2537
2532
|
return P(
|
|
2538
|
-
() =>
|
|
2533
|
+
() => d,
|
|
2539
2534
|
async () => {
|
|
2540
|
-
|
|
2535
|
+
h.value = await Ee.getValue();
|
|
2541
2536
|
},
|
|
2542
2537
|
{ immediate: !0 }
|
|
2543
|
-
), (
|
|
2544
|
-
modelValue:
|
|
2545
|
-
"onUpdate:modelValue":
|
|
2546
|
-
width:
|
|
2538
|
+
), (m, l) => (c(), E(f(ns), {
|
|
2539
|
+
modelValue: d.value,
|
|
2540
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => d.value = _),
|
|
2541
|
+
width: u.value,
|
|
2547
2542
|
top: "20px",
|
|
2548
|
-
title:
|
|
2543
|
+
title: p.value,
|
|
2549
2544
|
"close-on-click-modal": !1,
|
|
2550
2545
|
"append-to-body": !0,
|
|
2551
2546
|
"destroy-on-close": "",
|
|
2552
2547
|
"z-index": 1e3
|
|
2553
2548
|
}, {
|
|
2554
2549
|
default: w(() => [
|
|
2555
|
-
|
|
2550
|
+
O(br, {
|
|
2556
2551
|
config: r.config,
|
|
2557
|
-
data:
|
|
2552
|
+
data: i.value,
|
|
2558
2553
|
removable: r.removable,
|
|
2559
|
-
onSubmit:
|
|
2560
|
-
onRemove:
|
|
2554
|
+
onSubmit: S,
|
|
2555
|
+
onRemove: x
|
|
2561
2556
|
}, null, 8, ["config", "data", "removable"])
|
|
2562
2557
|
]),
|
|
2563
2558
|
_: 1
|
|
@@ -2599,14 +2594,14 @@ const Ee = {
|
|
|
2599
2594
|
code: e.code,
|
|
2600
2595
|
fields: e.fields
|
|
2601
2596
|
});
|
|
2602
|
-
Promise.all(r.fields).then((
|
|
2603
|
-
r.fields =
|
|
2597
|
+
Promise.all(r.fields).then((u) => {
|
|
2598
|
+
r.fields = u, r.restRepeat = e.restRepeat, r.rest = e.rest, o.value = r;
|
|
2604
2599
|
});
|
|
2605
2600
|
async function a() {
|
|
2606
2601
|
s.value = !0;
|
|
2607
2602
|
}
|
|
2608
|
-
function i(
|
|
2609
|
-
e.onSubmit(
|
|
2603
|
+
function i(u, h) {
|
|
2604
|
+
e.onSubmit(u).then(() => {
|
|
2610
2605
|
s.value = !1, ElMessage({
|
|
2611
2606
|
showClose: !0,
|
|
2612
2607
|
grouping: !0,
|
|
@@ -2617,7 +2612,7 @@ const Ee = {
|
|
|
2617
2612
|
console.log("请求失败"), h();
|
|
2618
2613
|
});
|
|
2619
2614
|
}
|
|
2620
|
-
return (
|
|
2615
|
+
return (u, h) => (c(), E(f(te), {
|
|
2621
2616
|
type: e.type,
|
|
2622
2617
|
onClick: a
|
|
2623
2618
|
}, {
|
|
@@ -2662,8 +2657,8 @@ const Ee = {
|
|
|
2662
2657
|
},
|
|
2663
2658
|
emits: ["update:modelValue"],
|
|
2664
2659
|
setup(t, { emit: e }) {
|
|
2665
|
-
const n = Jn(() => import("./ImagesUploader-
|
|
2666
|
-
function
|
|
2660
|
+
const n = Jn(() => import("./ImagesUploader-D-XPUBP2.js")), s = Me().fileUploadUrl, o = e, r = t, a = $e({ value: r.modelValue }), i = r.field.converter;
|
|
2661
|
+
function u(d) {
|
|
2667
2662
|
const p = a.value.findIndex((S) => S.id === d.id);
|
|
2668
2663
|
a.value.splice(p, 1), o("update:modelValue", a.value);
|
|
2669
2664
|
}
|
|
@@ -2689,11 +2684,11 @@ const Ee = {
|
|
|
2689
2684
|
},
|
|
2690
2685
|
{ immediate: !0 }
|
|
2691
2686
|
), (d, p) => (c(), $("div", null, [
|
|
2692
|
-
|
|
2687
|
+
O(f(n), {
|
|
2693
2688
|
images: a.value,
|
|
2694
2689
|
props: r.field.props,
|
|
2695
2690
|
onOnUpload: h,
|
|
2696
|
-
onOnRemove:
|
|
2691
|
+
onOnRemove: u
|
|
2697
2692
|
}, null, 8, ["images", "props"])
|
|
2698
2693
|
]));
|
|
2699
2694
|
}
|
|
@@ -2861,7 +2856,7 @@ const Or = {
|
|
|
2861
2856
|
}
|
|
2862
2857
|
},
|
|
2863
2858
|
setup(t) {
|
|
2864
|
-
const e = t, n =
|
|
2859
|
+
const e = t, n = N(() => e.content ? e.content.toString() : "");
|
|
2865
2860
|
return (s, o) => (c(), $("div", null, [
|
|
2866
2861
|
n.value.length > e.tipShowLength ? (c(), E(f(ss), {
|
|
2867
2862
|
key: 0,
|
|
@@ -2869,7 +2864,7 @@ const Or = {
|
|
|
2869
2864
|
effect: "light"
|
|
2870
2865
|
}, {
|
|
2871
2866
|
default: w(() => [
|
|
2872
|
-
|
|
2867
|
+
O(f(At), {
|
|
2873
2868
|
class: Se(e.className),
|
|
2874
2869
|
type: e.textType,
|
|
2875
2870
|
"line-clamp": e.lineClamp
|
|
@@ -3186,14 +3181,14 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3186
3181
|
}
|
|
3187
3182
|
},
|
|
3188
3183
|
setup(t) {
|
|
3189
|
-
const e = _e(), n = z(), s = Et(), o = A("首页"), r = t, a = n.fullPath.split("/")[1], i =
|
|
3184
|
+
const e = _e(), n = z(), s = Et(), o = A("首页"), r = t, a = n.fullPath.split("/")[1], i = x();
|
|
3190
3185
|
s.setupRootPath("首页", `/${a}/home`);
|
|
3191
|
-
function
|
|
3186
|
+
function u(m) {
|
|
3192
3187
|
var b, k;
|
|
3193
|
-
const
|
|
3188
|
+
const l = m.meta.side, _ = m.params.domain;
|
|
3194
3189
|
let g = (b = m.meta) == null ? void 0 : b.title, y = (k = m.meta) == null ? void 0 : k.code;
|
|
3195
|
-
if (
|
|
3196
|
-
g = vt()[
|
|
3190
|
+
if (l && _)
|
|
3191
|
+
g = vt()[l][m.params.domain].name, y = m.params.domain, m.params.id && (g = `${g} - ${m.params.id}`, y = `${m.params.domain}-${m.params.id}`);
|
|
3197
3192
|
else {
|
|
3198
3193
|
const V = i.find((W) => W.route === m.path);
|
|
3199
3194
|
V && (g = V.title, y = V.route);
|
|
@@ -3201,22 +3196,22 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3201
3196
|
g && y && (s.push(g, y, m.fullPath), o.value = y);
|
|
3202
3197
|
}
|
|
3203
3198
|
function h(m) {
|
|
3204
|
-
const
|
|
3205
|
-
e.push(
|
|
3199
|
+
const l = s.history.find((_) => _.code == m.props.name);
|
|
3200
|
+
e.push(l.path);
|
|
3206
3201
|
}
|
|
3207
3202
|
function d(m) {
|
|
3208
3203
|
if (s.remove(m), m == o.value) {
|
|
3209
|
-
const
|
|
3210
|
-
o.value =
|
|
3204
|
+
const l = s.getLast();
|
|
3205
|
+
o.value = l.title, e.push(l.path);
|
|
3211
3206
|
}
|
|
3212
3207
|
}
|
|
3213
|
-
const p = (m,
|
|
3208
|
+
const p = (m, l) => {
|
|
3214
3209
|
const _ = s.history.length;
|
|
3215
|
-
return m === 0 &&
|
|
3210
|
+
return m === 0 && l === "self" || m < 2 && l === "left" || m === _ - 1 && l === "right" || _ === 1 && l === "all" ? !1 : !(_ < 2 && l === "other");
|
|
3216
3211
|
};
|
|
3217
|
-
function S(m,
|
|
3212
|
+
function S(m, l) {
|
|
3218
3213
|
const _ = [], g = s.history;
|
|
3219
|
-
switch (
|
|
3214
|
+
switch (l) {
|
|
3220
3215
|
case "self":
|
|
3221
3216
|
_.push(g[m].code);
|
|
3222
3217
|
break;
|
|
@@ -3240,19 +3235,19 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3240
3235
|
for (let y = 0; y < _.length; y++)
|
|
3241
3236
|
d(_[y]);
|
|
3242
3237
|
}
|
|
3243
|
-
function
|
|
3238
|
+
function x() {
|
|
3244
3239
|
return r.config.sideMenus[a].map((m) => m.children ? m.children : m).flat();
|
|
3245
3240
|
}
|
|
3246
3241
|
return P(
|
|
3247
3242
|
() => e.currentRoute.value,
|
|
3248
3243
|
() => {
|
|
3249
|
-
|
|
3244
|
+
u(n);
|
|
3250
3245
|
},
|
|
3251
3246
|
{ immediate: !0 }
|
|
3252
|
-
), (m,
|
|
3247
|
+
), (m, l) => (c(), $("div", Kr, [
|
|
3253
3248
|
C("div", null, [
|
|
3254
3249
|
C("div", Xr, [
|
|
3255
|
-
|
|
3250
|
+
O(f(dn), {
|
|
3256
3251
|
class: "header-img",
|
|
3257
3252
|
src: r.config.logo,
|
|
3258
3253
|
fit: "scale-down"
|
|
@@ -3261,9 +3256,9 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3261
3256
|
])
|
|
3262
3257
|
]),
|
|
3263
3258
|
C("div", ea, [
|
|
3264
|
-
|
|
3259
|
+
O(f(pn), {
|
|
3265
3260
|
modelValue: o.value,
|
|
3266
|
-
"onUpdate:modelValue":
|
|
3261
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => o.value = _),
|
|
3267
3262
|
type: "card",
|
|
3268
3263
|
class: "tabs",
|
|
3269
3264
|
onTabClick: h,
|
|
@@ -3276,18 +3271,18 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3276
3271
|
name: _.code
|
|
3277
3272
|
}, {
|
|
3278
3273
|
label: w(() => [
|
|
3279
|
-
|
|
3274
|
+
O(f(st), { trigger: "contextmenu" }, {
|
|
3280
3275
|
dropdown: w(() => [
|
|
3281
|
-
|
|
3276
|
+
O(f(ot), null, {
|
|
3282
3277
|
default: w(() => [
|
|
3283
3278
|
p(g, "self") ? (c(), E(f(ue), {
|
|
3284
3279
|
key: 0,
|
|
3285
3280
|
onClick: (y) => S(g, "self")
|
|
3286
3281
|
}, {
|
|
3287
3282
|
default: w(() => [
|
|
3288
|
-
|
|
3283
|
+
O(f(G), null, {
|
|
3289
3284
|
default: w(() => [
|
|
3290
|
-
|
|
3285
|
+
O(f(Rr))
|
|
3291
3286
|
]),
|
|
3292
3287
|
_: 1
|
|
3293
3288
|
}),
|
|
@@ -3300,9 +3295,9 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3300
3295
|
onClick: (y) => S(g, "left")
|
|
3301
3296
|
}, {
|
|
3302
3297
|
default: w(() => [
|
|
3303
|
-
|
|
3298
|
+
O(f(G), null, {
|
|
3304
3299
|
default: w(() => [
|
|
3305
|
-
|
|
3300
|
+
O(f(Jt))
|
|
3306
3301
|
]),
|
|
3307
3302
|
_: 1
|
|
3308
3303
|
}),
|
|
@@ -3315,9 +3310,9 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3315
3310
|
onClick: (y) => S(g, "right")
|
|
3316
3311
|
}, {
|
|
3317
3312
|
default: w(() => [
|
|
3318
|
-
|
|
3313
|
+
O(f(G), null, {
|
|
3319
3314
|
default: w(() => [
|
|
3320
|
-
|
|
3315
|
+
O(f(Fr))
|
|
3321
3316
|
]),
|
|
3322
3317
|
_: 1
|
|
3323
3318
|
}),
|
|
@@ -3330,9 +3325,9 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3330
3325
|
onClick: (y) => S(g, "all")
|
|
3331
3326
|
}, {
|
|
3332
3327
|
default: w(() => [
|
|
3333
|
-
|
|
3328
|
+
O(f(G), null, {
|
|
3334
3329
|
default: w(() => [
|
|
3335
|
-
|
|
3330
|
+
O(f(Ur))
|
|
3336
3331
|
]),
|
|
3337
3332
|
_: 1
|
|
3338
3333
|
}),
|
|
@@ -3345,9 +3340,9 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3345
3340
|
onClick: (y) => S(g, "other")
|
|
3346
3341
|
}, {
|
|
3347
3342
|
default: w(() => [
|
|
3348
|
-
|
|
3343
|
+
O(f(G), null, {
|
|
3349
3344
|
default: w(() => [
|
|
3350
|
-
|
|
3345
|
+
O(f(Mr))
|
|
3351
3346
|
]),
|
|
3352
3347
|
_: 1
|
|
3353
3348
|
}),
|
|
@@ -3360,7 +3355,7 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3360
3355
|
}, 1024)
|
|
3361
3356
|
]),
|
|
3362
3357
|
default: w(() => [
|
|
3363
|
-
|
|
3358
|
+
O(Or, {
|
|
3364
3359
|
content: _.title,
|
|
3365
3360
|
"line-clamp": 1,
|
|
3366
3361
|
"class-name": "tab-pane-label",
|
|
@@ -3377,11 +3372,11 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3377
3372
|
}, 8, ["modelValue"]),
|
|
3378
3373
|
C("span", {
|
|
3379
3374
|
class: "back-icon",
|
|
3380
|
-
onClick:
|
|
3375
|
+
onClick: l[1] || (l[1] = (_) => f(e).back())
|
|
3381
3376
|
}, [
|
|
3382
|
-
|
|
3377
|
+
O(f(G), null, {
|
|
3383
3378
|
default: w(() => [
|
|
3384
|
-
|
|
3379
|
+
O(f(Jt))
|
|
3385
3380
|
]),
|
|
3386
3381
|
_: 1
|
|
3387
3382
|
})
|
|
@@ -3420,7 +3415,7 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3420
3415
|
_: 1
|
|
3421
3416
|
})) : (c(), E(f(G), { key: 1 }, {
|
|
3422
3417
|
default: w(() => [
|
|
3423
|
-
|
|
3418
|
+
O(f(Qt))
|
|
3424
3419
|
]),
|
|
3425
3420
|
_: 1
|
|
3426
3421
|
})),
|
|
@@ -3447,7 +3442,7 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3447
3442
|
_: 1
|
|
3448
3443
|
})) : e.hasParent ? (c(), $("span", ra, ia)) : (c(), E(f(G), { key: 1 }, {
|
|
3449
3444
|
default: w(() => [
|
|
3450
|
-
|
|
3445
|
+
O(f(Qt))
|
|
3451
3446
|
]),
|
|
3452
3447
|
_: 1
|
|
3453
3448
|
})),
|
|
@@ -3470,15 +3465,15 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3470
3465
|
() => {
|
|
3471
3466
|
var i;
|
|
3472
3467
|
if ((i = n.meta) != null && i.side) {
|
|
3473
|
-
const
|
|
3474
|
-
s.value = `/${
|
|
3468
|
+
const u = n.meta.side;
|
|
3469
|
+
s.value = `/${u}/${n.params.domain}/list`;
|
|
3475
3470
|
} else
|
|
3476
3471
|
s.value = n.fullPath;
|
|
3477
3472
|
},
|
|
3478
3473
|
{ immediate: !0 }
|
|
3479
|
-
), (i,
|
|
3474
|
+
), (i, u) => (c(), E(f(as), null, {
|
|
3480
3475
|
default: w(() => [
|
|
3481
|
-
|
|
3476
|
+
O(f(is), {
|
|
3482
3477
|
class: "menu",
|
|
3483
3478
|
router: !0,
|
|
3484
3479
|
"default-active": s.value
|
|
@@ -3501,16 +3496,16 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3501
3496
|
}
|
|
3502
3497
|
},
|
|
3503
3498
|
setup(t) {
|
|
3504
|
-
const e = z(), n = t, s = { ...Me(), ...n.config }, o =
|
|
3499
|
+
const e = z(), n = t, s = { ...Me(), ...n.config }, o = N(() => e.params.domain ? e.params.domain : e.fullPath);
|
|
3505
3500
|
return (r, a) => {
|
|
3506
3501
|
const i = He("router-view");
|
|
3507
3502
|
return c(), E(f(ls), { locale: f(Sr) }, {
|
|
3508
3503
|
default: w(() => [
|
|
3509
|
-
|
|
3504
|
+
O(f(Rt), { style: { height: "100%" } }, {
|
|
3510
3505
|
default: w(() => [
|
|
3511
|
-
|
|
3506
|
+
O(f(us), { class: "page-header" }, {
|
|
3512
3507
|
default: w(() => [
|
|
3513
|
-
|
|
3508
|
+
O(sa, { config: s }, {
|
|
3514
3509
|
"user-profile": w(() => [
|
|
3515
3510
|
J(r.$slots, "user-profile", {}, void 0, !0)
|
|
3516
3511
|
]),
|
|
@@ -3519,17 +3514,17 @@ const Gt = 10, Et = mt("route-history", {
|
|
|
3519
3514
|
]),
|
|
3520
3515
|
_: 3
|
|
3521
3516
|
}),
|
|
3522
|
-
|
|
3517
|
+
O(f(Rt), { class: "page-content-container" }, {
|
|
3523
3518
|
default: w(() => [
|
|
3524
|
-
|
|
3519
|
+
O(f(cs), { class: "page-content-aside" }, {
|
|
3525
3520
|
default: w(() => [
|
|
3526
|
-
|
|
3521
|
+
O(ca, {
|
|
3527
3522
|
"side-menus": s.sideMenus
|
|
3528
3523
|
}, null, 8, ["side-menus"])
|
|
3529
3524
|
]),
|
|
3530
3525
|
_: 1
|
|
3531
3526
|
}),
|
|
3532
|
-
|
|
3527
|
+
O(f(ds), { class: "page-content-main" }, {
|
|
3533
3528
|
default: w(() => [
|
|
3534
3529
|
(c(), E(i, { key: o.value }))
|
|
3535
3530
|
]),
|
|
@@ -3640,25 +3635,25 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3640
3635
|
);
|
|
3641
3636
|
function a() {
|
|
3642
3637
|
if (s.value.length > 0)
|
|
3643
|
-
for (let
|
|
3644
|
-
const h = o.value[
|
|
3638
|
+
for (let u = 0; u < o.value.length; u++) {
|
|
3639
|
+
const h = o.value[u];
|
|
3645
3640
|
for (let d = 0; d < s.value.length; d++) {
|
|
3646
3641
|
const p = s.value[d];
|
|
3647
3642
|
h.field === p.field && (h.order = p.order);
|
|
3648
3643
|
}
|
|
3649
3644
|
}
|
|
3650
3645
|
else
|
|
3651
|
-
for (let
|
|
3652
|
-
o.value[
|
|
3646
|
+
for (let u = 0; u < o.value.length; u++)
|
|
3647
|
+
o.value[u].order = "";
|
|
3653
3648
|
}
|
|
3654
|
-
function i(
|
|
3649
|
+
function i(u, h) {
|
|
3655
3650
|
const d = o.value;
|
|
3656
|
-
h ? d[
|
|
3651
|
+
h ? d[u].order = h : d[u].order ? d[u].order === "ASC" ? d[u].order = "DESC" : d[u].order === "DESC" && (d[u].order = "") : d[u].order = "ASC", n(
|
|
3657
3652
|
"updateSorters",
|
|
3658
3653
|
d.filter((p) => p.order)
|
|
3659
3654
|
);
|
|
3660
3655
|
}
|
|
3661
|
-
return (
|
|
3656
|
+
return (u, h) => (c(), $("div", ha, [
|
|
3662
3657
|
(c(!0), $(L, null, M(o.value, (d, p) => (c(), $("div", {
|
|
3663
3658
|
class: "sorters-item",
|
|
3664
3659
|
onClick: (S) => i(p, "")
|
|
@@ -3701,27 +3696,27 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3701
3696
|
);
|
|
3702
3697
|
function r() {
|
|
3703
3698
|
s.value && s.value.length > 0 ? o.forEach((i) => {
|
|
3704
|
-
s.value.forEach((
|
|
3705
|
-
i.field ===
|
|
3699
|
+
s.value.forEach((u) => {
|
|
3700
|
+
i.field === u.field && (i.min = u.min ? Number(u.min) : null, i.max = u.max ? Number(u.max) : null);
|
|
3706
3701
|
});
|
|
3707
3702
|
}) : o.forEach((i) => {
|
|
3708
3703
|
i.min = null, i.max = null;
|
|
3709
3704
|
});
|
|
3710
3705
|
}
|
|
3711
|
-
function a(i,
|
|
3706
|
+
function a(i, u, h) {
|
|
3712
3707
|
const d = [...o];
|
|
3713
3708
|
d.forEach((p) => {
|
|
3714
|
-
p.field ===
|
|
3709
|
+
p.field === u && (p[h] = i);
|
|
3715
3710
|
}), n(
|
|
3716
3711
|
"updateRanges",
|
|
3717
3712
|
d.filter((p) => p.min || p.max)
|
|
3718
3713
|
);
|
|
3719
3714
|
}
|
|
3720
|
-
return r(), (i,
|
|
3715
|
+
return r(), (i, u) => (c(), $("div", $a, [
|
|
3721
3716
|
(c(!0), $(L, null, M(o, (h) => (c(), $("div", Sa, [
|
|
3722
3717
|
C("div", Oa, F(h.name), 1),
|
|
3723
3718
|
C("div", xa, [
|
|
3724
|
-
|
|
3719
|
+
O(f(Dt), {
|
|
3725
3720
|
modelValue: h.min,
|
|
3726
3721
|
"onUpdate:modelValue": (d) => h.min = d,
|
|
3727
3722
|
"controls-position": "right",
|
|
@@ -3730,7 +3725,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3730
3725
|
a(d, h.field, "min");
|
|
3731
3726
|
}
|
|
3732
3727
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
|
|
3733
|
-
|
|
3728
|
+
O(f(Dt), {
|
|
3734
3729
|
modelValue: h.max,
|
|
3735
3730
|
"onUpdate:modelValue": (d) => h.max = d,
|
|
3736
3731
|
"controls-position": "right",
|
|
@@ -3763,7 +3758,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3763
3758
|
r[b] = void 0;
|
|
3764
3759
|
}), r.isDeleted = y.filters.isDeleted);
|
|
3765
3760
|
});
|
|
3766
|
-
function
|
|
3761
|
+
function u(g) {
|
|
3767
3762
|
return typeof g == "boolean" ? g : typeof g == "function" ? g(s) : !0;
|
|
3768
3763
|
}
|
|
3769
3764
|
async function h(g, y) {
|
|
@@ -3813,15 +3808,15 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3813
3808
|
};
|
|
3814
3809
|
}
|
|
3815
3810
|
function p(g) {
|
|
3816
|
-
r.sorters = g,
|
|
3811
|
+
r.sorters = g, l();
|
|
3817
3812
|
}
|
|
3818
3813
|
function S(g) {
|
|
3819
3814
|
r.filters = g;
|
|
3820
3815
|
}
|
|
3821
|
-
function
|
|
3816
|
+
function x() {
|
|
3822
3817
|
Object.keys(r).forEach((g) => {
|
|
3823
3818
|
r[g] = void 0;
|
|
3824
|
-
}), o.value = Object.keys(e.settings.filters).filter((g) =>
|
|
3819
|
+
}), o.value = Object.keys(e.settings.filters).filter((g) => u(e.settings.filters[g].visible)).map((g) => {
|
|
3825
3820
|
const y = { ...e.settings.filters[g], code: g };
|
|
3826
3821
|
return r[g] = m(g), (y.type === "select" || y.type === "selectV2" || y.type === "tree") && h(y), y;
|
|
3827
3822
|
}).filter((g) => g.code !== "isDeleted");
|
|
@@ -3830,22 +3825,22 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3830
3825
|
const y = e.settings.filters[g], b = i.validFilters[g];
|
|
3831
3826
|
return y.type === "boolean" && typeof b != "boolean" ? y.value : b;
|
|
3832
3827
|
}
|
|
3833
|
-
function
|
|
3828
|
+
function l() {
|
|
3834
3829
|
let g = JSON.parse(JSON.stringify(r));
|
|
3835
3830
|
const y = e.settings.filterHook;
|
|
3836
3831
|
y != null && y.preSubmit && (g = y.preSubmit(g, s)), i.change(g);
|
|
3837
3832
|
}
|
|
3838
3833
|
function _() {
|
|
3839
|
-
i.$reset({}),
|
|
3834
|
+
i.$reset({}), x(), l();
|
|
3840
3835
|
}
|
|
3841
3836
|
return P(
|
|
3842
3837
|
() => e.settings,
|
|
3843
3838
|
() => {
|
|
3844
|
-
|
|
3839
|
+
x(), l();
|
|
3845
3840
|
},
|
|
3846
3841
|
{ immediate: !0 }
|
|
3847
3842
|
), (g, y) => Object.keys(e.settings.filters).length > 0 ? (c(), $("div", Aa, [
|
|
3848
|
-
|
|
3843
|
+
O(f(cn), {
|
|
3849
3844
|
model: r,
|
|
3850
3845
|
inline: "",
|
|
3851
3846
|
class: "form-editor"
|
|
@@ -3861,14 +3856,14 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3861
3856
|
clearable: "",
|
|
3862
3857
|
placeholder: `是否${b.name}`,
|
|
3863
3858
|
"value-on-clear": null,
|
|
3864
|
-
onChange:
|
|
3859
|
+
onChange: l
|
|
3865
3860
|
}, {
|
|
3866
3861
|
default: w(() => [
|
|
3867
|
-
|
|
3862
|
+
O(f(Ye), {
|
|
3868
3863
|
value: !0,
|
|
3869
3864
|
label: `已${b.name}`
|
|
3870
3865
|
}, null, 8, ["label"]),
|
|
3871
|
-
|
|
3866
|
+
O(f(Ye), {
|
|
3872
3867
|
value: !1,
|
|
3873
3868
|
label: `未${b.name}`
|
|
3874
3869
|
}, null, 8, ["label"])
|
|
@@ -3891,7 +3886,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3891
3886
|
"multiple-limit": b.multipleLimit ? b.multipleLimit : 0,
|
|
3892
3887
|
"remote-method": d(b),
|
|
3893
3888
|
"value-on-clear": null,
|
|
3894
|
-
onChange:
|
|
3889
|
+
onChange: l
|
|
3895
3890
|
}, {
|
|
3896
3891
|
default: w(() => [
|
|
3897
3892
|
(c(!0), $(L, null, M(a[b.code], (k) => (c(), E(f(Ye), {
|
|
@@ -3913,7 +3908,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3913
3908
|
placeholder: b.name,
|
|
3914
3909
|
clearable: "",
|
|
3915
3910
|
"value-on-clear": null,
|
|
3916
|
-
onChange:
|
|
3911
|
+
onChange: l
|
|
3917
3912
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : b.type === "sorters" ? (c(), E(Ea, {
|
|
3918
3913
|
key: 3,
|
|
3919
3914
|
value: r[b.code],
|
|
@@ -3956,16 +3951,16 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3956
3951
|
}, 1024))), 256)),
|
|
3957
3952
|
o.value.length > 0 ? (c(), E(f(nt), { key: 0 }, {
|
|
3958
3953
|
default: w(() => [
|
|
3959
|
-
|
|
3954
|
+
O(f(te), {
|
|
3960
3955
|
type: "primary",
|
|
3961
|
-
onClick:
|
|
3956
|
+
onClick: l
|
|
3962
3957
|
}, {
|
|
3963
3958
|
default: w(() => [
|
|
3964
3959
|
B(" 查询 ")
|
|
3965
3960
|
]),
|
|
3966
3961
|
_: 1
|
|
3967
3962
|
}),
|
|
3968
|
-
|
|
3963
|
+
O(f(te), { onClick: _ }, {
|
|
3969
3964
|
default: w(() => [
|
|
3970
3965
|
B(" 重置 ")
|
|
3971
3966
|
]),
|
|
@@ -3992,8 +3987,8 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
3992
3987
|
s.path,
|
|
3993
3988
|
e.settings.filters,
|
|
3994
3989
|
e.settings.filterHook
|
|
3995
|
-
)(), a = Ae(), i =
|
|
3996
|
-
function
|
|
3990
|
+
)(), a = Ae(), i = N(() => r.validFilters.isDeleted || !1);
|
|
3991
|
+
function u() {
|
|
3997
3992
|
r.$reset({ isDeleted: !i.value });
|
|
3998
3993
|
}
|
|
3999
3994
|
function h() {
|
|
@@ -4018,26 +4013,26 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4018
4013
|
]),
|
|
4019
4014
|
_: 3
|
|
4020
4015
|
})) : T("", !0),
|
|
4021
|
-
|
|
4016
|
+
O(f(de), { class: "button-groups" }, {
|
|
4022
4017
|
default: w(() => [
|
|
4023
4018
|
J(p.$slots, "tools", {}, void 0, !0)
|
|
4024
4019
|
]),
|
|
4025
4020
|
_: 3
|
|
4026
4021
|
}),
|
|
4027
|
-
|
|
4022
|
+
O(f(st), {
|
|
4028
4023
|
trigger: "click",
|
|
4029
4024
|
onCommand: d
|
|
4030
4025
|
}, {
|
|
4031
4026
|
dropdown: w(() => [
|
|
4032
|
-
|
|
4027
|
+
O(f(ot), null, {
|
|
4033
4028
|
default: w(() => [
|
|
4034
|
-
|
|
4029
|
+
O(f(ue), { command: "list" }, {
|
|
4035
4030
|
default: w(() => [
|
|
4036
4031
|
B(" 列表 ")
|
|
4037
4032
|
]),
|
|
4038
4033
|
_: 1
|
|
4039
4034
|
}),
|
|
4040
|
-
|
|
4035
|
+
O(f(ue), { command: "grid" }, {
|
|
4041
4036
|
default: w(() => [
|
|
4042
4037
|
B(" 网格 ")
|
|
4043
4038
|
]),
|
|
@@ -4048,17 +4043,17 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4048
4043
|
})
|
|
4049
4044
|
]),
|
|
4050
4045
|
default: w(() => [
|
|
4051
|
-
|
|
4046
|
+
O(f(te), null, {
|
|
4052
4047
|
default: w(() => [
|
|
4053
|
-
|
|
4048
|
+
O(f(G), null, {
|
|
4054
4049
|
default: w(() => [
|
|
4055
|
-
|
|
4050
|
+
O(f(Nr))
|
|
4056
4051
|
]),
|
|
4057
4052
|
_: 1
|
|
4058
4053
|
}),
|
|
4059
|
-
|
|
4054
|
+
O(f(G), { class: "el-icon--right" }, {
|
|
4060
4055
|
default: w(() => [
|
|
4061
|
-
|
|
4056
|
+
O(f(kr))
|
|
4062
4057
|
]),
|
|
4063
4058
|
_: 1
|
|
4064
4059
|
})
|
|
@@ -4073,11 +4068,11 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4073
4068
|
trigger: "click"
|
|
4074
4069
|
}, {
|
|
4075
4070
|
dropdown: w(() => [
|
|
4076
|
-
|
|
4071
|
+
O(f(ot), null, {
|
|
4077
4072
|
default: w(() => [
|
|
4078
|
-
|
|
4073
|
+
O(f(ue), {
|
|
4079
4074
|
command: "deleted",
|
|
4080
|
-
onClick:
|
|
4075
|
+
onClick: u
|
|
4081
4076
|
}, {
|
|
4082
4077
|
default: w(() => [
|
|
4083
4078
|
C("div", null, F(i.value ? "未删除" : "已删除"), 1)
|
|
@@ -4089,11 +4084,11 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4089
4084
|
})
|
|
4090
4085
|
]),
|
|
4091
4086
|
default: w(() => [
|
|
4092
|
-
|
|
4087
|
+
O(f(te), null, {
|
|
4093
4088
|
default: w(() => [
|
|
4094
|
-
|
|
4089
|
+
O(f(G), null, {
|
|
4095
4090
|
default: w(() => [
|
|
4096
|
-
|
|
4091
|
+
O(f(Qr))
|
|
4097
4092
|
]),
|
|
4098
4093
|
_: 1
|
|
4099
4094
|
})
|
|
@@ -4105,7 +4100,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4105
4100
|
})) : T("", !0)
|
|
4106
4101
|
])
|
|
4107
4102
|
]),
|
|
4108
|
-
|
|
4103
|
+
O(Da, {
|
|
4109
4104
|
settings: e.settings
|
|
4110
4105
|
}, null, 8, ["settings"])
|
|
4111
4106
|
], 64));
|
|
@@ -4127,17 +4122,17 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4127
4122
|
}
|
|
4128
4123
|
},
|
|
4129
4124
|
setup(t) {
|
|
4130
|
-
const e = Ae(), n = z(), s = t, o = n.meta.side, r = s.row[s.field.code], a =
|
|
4131
|
-
path: `/${o}/${s.field.domain}/${r}`,
|
|
4125
|
+
const e = Ae(), n = z(), s = t, o = n.meta.side, r = N(() => s.row[s.field.code]), a = N(() => ({
|
|
4126
|
+
path: `/${o}/${s.field.domain}/${r.value}`,
|
|
4132
4127
|
query: { ...Y(n), ...s.field.rowQuery(s.row) }
|
|
4133
4128
|
}));
|
|
4134
4129
|
function i() {
|
|
4135
4130
|
return s.field.isRouter(s.row, Y(n));
|
|
4136
4131
|
}
|
|
4137
|
-
return (
|
|
4132
|
+
return (u, h) => {
|
|
4138
4133
|
const d = He("RouterLink");
|
|
4139
4134
|
return c(), $("div", Ba, [
|
|
4140
|
-
|
|
4135
|
+
r.value ? (c(), $("span", Na, [
|
|
4141
4136
|
i() ? (c(), E(d, {
|
|
4142
4137
|
key: 0,
|
|
4143
4138
|
class: "bld-link mono-data",
|
|
@@ -4145,26 +4140,26 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
|
|
|
4145
4140
|
}, {
|
|
4146
4141
|
default: w(() => [
|
|
4147
4142
|
f(e).name ? (c(), $(L, { key: 0 }, [
|
|
4148
|
-
J(
|
|
4149
|
-
B("(#" + F(
|
|
4143
|
+
J(u.$slots, "name", {}, void 0, !0),
|
|
4144
|
+
B("(#" + F(r.value) + ") ", 1)
|
|
4150
4145
|
], 64)) : (c(), $(L, { key: 1 }, [
|
|
4151
|
-
B(" #" + F(
|
|
4146
|
+
B(" #" + F(r.value), 1)
|
|
4152
4147
|
], 64))
|
|
4153
4148
|
]),
|
|
4154
4149
|
_: 3
|
|
4155
4150
|
}, 8, ["to"])) : (c(), $("span", Ia, [
|
|
4156
4151
|
f(e).name ? (c(), $(L, { key: 0 }, [
|
|
4157
|
-
J(
|
|
4158
|
-
B("(" + F(
|
|
4152
|
+
J(u.$slots, "name", {}, void 0, !0),
|
|
4153
|
+
B("(" + F(r.value) + ") ", 1)
|
|
4159
4154
|
], 64)) : (c(), $(L, { key: 1 }, [
|
|
4160
|
-
B(F(
|
|
4155
|
+
B(F(r.value), 1)
|
|
4161
4156
|
], 64))
|
|
4162
4157
|
]))
|
|
4163
4158
|
])) : (c(), $("span", Va, " NO ID "))
|
|
4164
4159
|
]);
|
|
4165
4160
|
};
|
|
4166
4161
|
}
|
|
4167
|
-
}, za = /* @__PURE__ */ j(Ua, [["__scopeId", "data-v-
|
|
4162
|
+
}, za = /* @__PURE__ */ j(Ua, [["__scopeId", "data-v-00021e61"]]);
|
|
4168
4163
|
function Ma(t) {
|
|
4169
4164
|
Ne(t);
|
|
4170
4165
|
}
|
|
@@ -4191,52 +4186,52 @@ const Ha = {
|
|
|
4191
4186
|
},
|
|
4192
4187
|
setup(t) {
|
|
4193
4188
|
var m;
|
|
4194
|
-
const e = Et(), n = re(), s = z(), o = _e(), r = Y(s), a = t, i = A({}),
|
|
4195
|
-
var
|
|
4196
|
-
return a.row.deletedAt ? !1 : (
|
|
4189
|
+
const e = Et(), n = re(), s = z(), o = _e(), r = Y(s), a = t, i = A({}), u = A(!1), h = N(() => {
|
|
4190
|
+
var l, _;
|
|
4191
|
+
return a.row.deletedAt ? !1 : (l = a.operations) != null && l.updatable ? !0 : !!((_ = a.operations) != null && _.removable);
|
|
4197
4192
|
}), d = A((m = a.operations) == null ? void 0 : m.removable);
|
|
4198
4193
|
async function p() {
|
|
4199
|
-
const
|
|
4194
|
+
const l = a.settings.formHook, _ = a.settings.btnVisible, g = a.settings.rest, { data: y } = await g.getOne({
|
|
4200
4195
|
...a.row,
|
|
4201
4196
|
...r
|
|
4202
4197
|
});
|
|
4203
|
-
i.value = y,
|
|
4198
|
+
i.value = y, l.setupUpdate && (i.value = l.setupUpdate(i.value)), _.showRemove && (d.value = _.showRemove(i.value)), u.value = !0;
|
|
4204
4199
|
}
|
|
4205
|
-
function S(
|
|
4200
|
+
function S(l, _) {
|
|
4206
4201
|
const g = a.settings.formHook, y = a.settings.rest;
|
|
4207
4202
|
Object.keys(r).forEach((b) => {
|
|
4208
|
-
|
|
4209
|
-
}), g != null && g.preUpdateSubmit && (
|
|
4210
|
-
|
|
4203
|
+
l[b] = r[b];
|
|
4204
|
+
}), g != null && g.preUpdateSubmit && (l = g.preUpdateSubmit(l)), y.update(l).then(() => {
|
|
4205
|
+
u.value = !1, n.fireUpdated();
|
|
4211
4206
|
}).catch(async () => {
|
|
4212
4207
|
_();
|
|
4213
4208
|
});
|
|
4214
4209
|
}
|
|
4215
|
-
function
|
|
4216
|
-
a.settings.rest.remove(
|
|
4217
|
-
Ha.show({ type: "success", message: "删除成功" }),
|
|
4210
|
+
function x(l, _) {
|
|
4211
|
+
a.settings.rest.remove(l).then(() => {
|
|
4212
|
+
Ha.show({ type: "success", message: "删除成功" }), u.value = !1, a.isDetail && e.history.forEach((y) => {
|
|
4218
4213
|
s.fullPath.includes(y.path) && (e.remove(y.code), o.back());
|
|
4219
4214
|
}), n.fireRemoved();
|
|
4220
4215
|
}).catch(() => {
|
|
4221
4216
|
_();
|
|
4222
4217
|
});
|
|
4223
4218
|
}
|
|
4224
|
-
return (
|
|
4219
|
+
return (l, _) => h.value ? (c(), E(f(te), {
|
|
4225
4220
|
key: 0,
|
|
4226
4221
|
type: "primary",
|
|
4227
4222
|
onClick: p
|
|
4228
4223
|
}, {
|
|
4229
4224
|
default: w(() => [
|
|
4230
4225
|
B(" 编辑 "),
|
|
4231
|
-
|
|
4226
|
+
u.value ? (c(), E(wt, {
|
|
4232
4227
|
key: 0,
|
|
4233
|
-
modelValue:
|
|
4234
|
-
"onUpdate:modelValue": _[0] || (_[0] = (g) =>
|
|
4228
|
+
modelValue: u.value,
|
|
4229
|
+
"onUpdate:modelValue": _[0] || (_[0] = (g) => u.value = g),
|
|
4235
4230
|
config: a.settings,
|
|
4236
4231
|
data: i.value,
|
|
4237
4232
|
removable: d.value,
|
|
4238
4233
|
onSubmit: S,
|
|
4239
|
-
onRemove:
|
|
4234
|
+
onRemove: x
|
|
4240
4235
|
}, null, 8, ["modelValue", "config", "data", "removable"])) : T("", !0)
|
|
4241
4236
|
]),
|
|
4242
4237
|
_: 1
|
|
@@ -4269,19 +4264,19 @@ const Ha = {
|
|
|
4269
4264
|
e.path,
|
|
4270
4265
|
o.settings.filters,
|
|
4271
4266
|
o.settings.filterHook
|
|
4272
|
-
)(), { filters: a } = pe(r), i = A(a.value),
|
|
4273
|
-
var
|
|
4274
|
-
return !!((
|
|
4267
|
+
)(), { filters: a } = pe(r), i = A(a.value), u = Q([]), h = Q(null), d = N(() => {
|
|
4268
|
+
var x, m;
|
|
4269
|
+
return !!((x = o.operations) != null && x.updatable || (m = o.operations) != null && m.removable);
|
|
4275
4270
|
});
|
|
4276
4271
|
function p() {
|
|
4277
|
-
h.value = o.settings.fields.find((
|
|
4272
|
+
h.value = o.settings.fields.find((x) => x.code === "id"), u.value = o.settings.fields.filter((x) => x.code === o.settings.coverField || x.code === o.settings.nameField || x.code === "id" ? !1 : x.showInList(n, i.value));
|
|
4278
4273
|
}
|
|
4279
|
-
function S(
|
|
4280
|
-
return o.settings.nameField ?
|
|
4274
|
+
function S(x) {
|
|
4275
|
+
return o.settings.nameField ? x[o.settings.nameField] : x.name ? x.name : `${x.id}`;
|
|
4281
4276
|
}
|
|
4282
|
-
return P(a, (
|
|
4283
|
-
i.value =
|
|
4284
|
-
}), p(), (
|
|
4277
|
+
return P(a, (x) => {
|
|
4278
|
+
i.value = x, p();
|
|
4279
|
+
}), p(), (x, m) => (c(), $("div", Wa, [
|
|
4285
4280
|
t.data.length === 0 ? (c(), E(f(ms), {
|
|
4286
4281
|
key: 0,
|
|
4287
4282
|
description: "暂无数据"
|
|
@@ -4290,7 +4285,7 @@ const Ha = {
|
|
|
4290
4285
|
gutter: 20
|
|
4291
4286
|
}, {
|
|
4292
4287
|
default: w(() => [
|
|
4293
|
-
(c(!0), $(L, null, M(t.data, (
|
|
4288
|
+
(c(!0), $(L, null, M(t.data, (l) => (c(), E(f(we), {
|
|
4294
4289
|
style: { "margin-bottom": "20px" },
|
|
4295
4290
|
xs: 24,
|
|
4296
4291
|
sm: 12,
|
|
@@ -4299,18 +4294,18 @@ const Ha = {
|
|
|
4299
4294
|
xl: 4
|
|
4300
4295
|
}, {
|
|
4301
4296
|
default: w(() => [
|
|
4302
|
-
|
|
4297
|
+
O(f(un), {
|
|
4303
4298
|
"body-style": { padding: "0px" },
|
|
4304
4299
|
shadow: "hover"
|
|
4305
4300
|
}, {
|
|
4306
4301
|
default: w(() => [
|
|
4307
4302
|
f(s).cover || o.settings.coverField ? (c(), $("div", Ja, [
|
|
4308
|
-
f(s).cover ? J(
|
|
4303
|
+
f(s).cover ? J(x.$slots, "cover", {
|
|
4309
4304
|
key: 0,
|
|
4310
|
-
row:
|
|
4305
|
+
row: l
|
|
4311
4306
|
}, void 0, !0) : (c(), E(f(dn), {
|
|
4312
4307
|
key: 1,
|
|
4313
|
-
src:
|
|
4308
|
+
src: l[o.settings.coverField],
|
|
4314
4309
|
fit: "contain"
|
|
4315
4310
|
}, {
|
|
4316
4311
|
error: w(() => [
|
|
@@ -4320,14 +4315,14 @@ const Ha = {
|
|
|
4320
4315
|
}, 1032, ["src"]))
|
|
4321
4316
|
])) : T("", !0),
|
|
4322
4317
|
C("div", Ga, [
|
|
4323
|
-
|
|
4318
|
+
O(za, {
|
|
4324
4319
|
field: h.value,
|
|
4325
|
-
row:
|
|
4320
|
+
row: l
|
|
4326
4321
|
}, Ce({ _: 2 }, [
|
|
4327
|
-
|
|
4322
|
+
l[o.settings.nameField] ? {
|
|
4328
4323
|
name: "name",
|
|
4329
4324
|
fn: w(() => [
|
|
4330
|
-
B(F(S(
|
|
4325
|
+
B(F(S(l)), 1)
|
|
4331
4326
|
]),
|
|
4332
4327
|
key: "0"
|
|
4333
4328
|
} : void 0
|
|
@@ -4335,8 +4330,8 @@ const Ha = {
|
|
|
4335
4330
|
]),
|
|
4336
4331
|
C("div", Ya, [
|
|
4337
4332
|
f(s).body ? (c(), $("div", Ka, [
|
|
4338
|
-
J(
|
|
4339
|
-
])) : (c(!0), $(L, { key: 1 }, M(
|
|
4333
|
+
J(x.$slots, "body", { row: l }, void 0, !0)
|
|
4334
|
+
])) : (c(!0), $(L, { key: 1 }, M(u.value, (_) => (c(), $("div", {
|
|
4340
4335
|
key: _.code,
|
|
4341
4336
|
class: "field mono-data"
|
|
4342
4337
|
}, [
|
|
@@ -4344,7 +4339,7 @@ const Ha = {
|
|
|
4344
4339
|
C("div", Za, [
|
|
4345
4340
|
(c(), E(K(_.display), {
|
|
4346
4341
|
field: _,
|
|
4347
|
-
row:
|
|
4342
|
+
row: l,
|
|
4348
4343
|
mode: "grid"
|
|
4349
4344
|
}, null, 8, ["field", "row"]))
|
|
4350
4345
|
])
|
|
@@ -4356,7 +4351,7 @@ const Ha = {
|
|
|
4356
4351
|
size: "small"
|
|
4357
4352
|
}, {
|
|
4358
4353
|
default: w(() => [
|
|
4359
|
-
J(
|
|
4354
|
+
J(x.$slots, "actions", { row: l }, void 0, !0)
|
|
4360
4355
|
]),
|
|
4361
4356
|
_: 2
|
|
4362
4357
|
}, 1024)) : T("", !0),
|
|
@@ -4365,8 +4360,8 @@ const Ha = {
|
|
|
4365
4360
|
size: "small"
|
|
4366
4361
|
}, {
|
|
4367
4362
|
default: w(() => [
|
|
4368
|
-
|
|
4369
|
-
row:
|
|
4363
|
+
O($t, {
|
|
4364
|
+
row: l,
|
|
4370
4365
|
settings: o.settings,
|
|
4371
4366
|
operations: o.operations
|
|
4372
4367
|
}, null, 8, ["row", "settings", "operations"])
|
|
@@ -4423,20 +4418,20 @@ const oi = {
|
|
|
4423
4418
|
n.path,
|
|
4424
4419
|
a.settings.filters,
|
|
4425
4420
|
a.settings.filterHook
|
|
4426
|
-
)(), { filters:
|
|
4421
|
+
)(), { filters: u } = pe(i), h = A(u.value), d = Q([]), p = N(() => {
|
|
4427
4422
|
var _, g;
|
|
4428
4423
|
return !!((_ = a.operations) != null && _.updatable || (g = a.operations) != null && g.removable);
|
|
4429
4424
|
});
|
|
4430
4425
|
function S(_) {
|
|
4431
4426
|
o("sort-column", _);
|
|
4432
4427
|
}
|
|
4433
|
-
function
|
|
4428
|
+
function x(_) {
|
|
4434
4429
|
o("enable-item", _);
|
|
4435
4430
|
}
|
|
4436
4431
|
function m() {
|
|
4437
4432
|
d.value = a.settings.fields.filter((_) => _.showInList(s, h.value));
|
|
4438
4433
|
}
|
|
4439
|
-
function
|
|
4434
|
+
function l(_) {
|
|
4440
4435
|
o("select-change", {
|
|
4441
4436
|
routeQuery: s,
|
|
4442
4437
|
data: _
|
|
@@ -4447,7 +4442,7 @@ const oi = {
|
|
|
4447
4442
|
() => {
|
|
4448
4443
|
a.data.length > 0 && si(a.settings, a.data[0]);
|
|
4449
4444
|
}
|
|
4450
|
-
), P(
|
|
4445
|
+
), P(u, (_) => {
|
|
4451
4446
|
h.value = _, m();
|
|
4452
4447
|
}), (_, g) => (c(), E(f(hs), {
|
|
4453
4448
|
ref: "dataTable",
|
|
@@ -4456,11 +4451,11 @@ const oi = {
|
|
|
4456
4451
|
"show-overflow-tooltip": "",
|
|
4457
4452
|
"highlight-current-row": "",
|
|
4458
4453
|
"row-key": "id",
|
|
4459
|
-
onSelectionChange:
|
|
4454
|
+
onSelectionChange: l,
|
|
4460
4455
|
onSortChange: S
|
|
4461
4456
|
}, {
|
|
4462
4457
|
default: w(() => [
|
|
4463
|
-
|
|
4458
|
+
O(f(Le), {
|
|
4464
4459
|
type: "selection",
|
|
4465
4460
|
width: "40"
|
|
4466
4461
|
}),
|
|
@@ -4479,7 +4474,7 @@ const oi = {
|
|
|
4479
4474
|
field: y,
|
|
4480
4475
|
row: b,
|
|
4481
4476
|
mode: "list",
|
|
4482
|
-
onEnable:
|
|
4477
|
+
onEnable: x
|
|
4483
4478
|
}, null, 40, ["field", "row"]))
|
|
4484
4479
|
]),
|
|
4485
4480
|
key: "0"
|
|
@@ -4503,7 +4498,7 @@ const oi = {
|
|
|
4503
4498
|
width: a.actionsWidth
|
|
4504
4499
|
}, {
|
|
4505
4500
|
default: w(({ row: y }) => [
|
|
4506
|
-
|
|
4501
|
+
O(f(de), { size: "small" }, {
|
|
4507
4502
|
default: w(() => [
|
|
4508
4503
|
J(_.$slots, "actions", { row: y }, void 0, !0)
|
|
4509
4504
|
]),
|
|
@@ -4519,9 +4514,9 @@ const oi = {
|
|
|
4519
4514
|
width: a.operationsWidth
|
|
4520
4515
|
}, {
|
|
4521
4516
|
default: w(({ row: y }) => [
|
|
4522
|
-
|
|
4517
|
+
O(f(de), { size: "small" }, {
|
|
4523
4518
|
default: w(() => [
|
|
4524
|
-
|
|
4519
|
+
O($t, {
|
|
4525
4520
|
row: y,
|
|
4526
4521
|
settings: a.settings,
|
|
4527
4522
|
operations: a.operations
|
|
@@ -4561,7 +4556,7 @@ const oi = {
|
|
|
4561
4556
|
}
|
|
4562
4557
|
return P(n, (i) => {
|
|
4563
4558
|
a(i);
|
|
4564
|
-
}), (i,
|
|
4559
|
+
}), (i, u) => (c(), E(K(r.value), kt(Ct(o)), Ce({ _: 2 }, [
|
|
4565
4560
|
M(f(s), (h, d) => ({
|
|
4566
4561
|
name: d,
|
|
4567
4562
|
fn: w((p) => [
|
|
@@ -4583,19 +4578,19 @@ const oi = {
|
|
|
4583
4578
|
}
|
|
4584
4579
|
},
|
|
4585
4580
|
setup(t) {
|
|
4586
|
-
const e = re(), n = z(), s = Y(n), o = t, r = A({}), a = A(!1), i =
|
|
4581
|
+
const e = re(), n = z(), s = Y(n), o = t, r = A({}), a = A(!1), i = N(() => {
|
|
4587
4582
|
var d;
|
|
4588
4583
|
return !!((d = o.operations) != null && d.creatable);
|
|
4589
4584
|
});
|
|
4590
|
-
async function
|
|
4591
|
-
const d = o.settings.formHook, p = o.settings.fields.reduce((S,
|
|
4585
|
+
async function u() {
|
|
4586
|
+
const d = o.settings.formHook, p = o.settings.fields.reduce((S, x) => (S[x.code] = x.default, S), {});
|
|
4592
4587
|
r.value = p, d.setupCreate && (r.value = d.setupCreate(r.value)), a.value = !0;
|
|
4593
4588
|
}
|
|
4594
4589
|
function h(d, p) {
|
|
4595
|
-
const S = o.settings.formHook,
|
|
4590
|
+
const S = o.settings.formHook, x = o.settings.rest;
|
|
4596
4591
|
Object.keys(s).forEach((m) => {
|
|
4597
4592
|
d[m] = s[m];
|
|
4598
|
-
}), S != null && S.preCreateSubmit && (d = S.preCreateSubmit(d)),
|
|
4593
|
+
}), S != null && S.preCreateSubmit && (d = S.preCreateSubmit(d)), x.create(d).then(() => {
|
|
4599
4594
|
a.value = !1, e.fireCreated();
|
|
4600
4595
|
}).catch(async () => {
|
|
4601
4596
|
p();
|
|
@@ -4604,7 +4599,7 @@ const oi = {
|
|
|
4604
4599
|
return (d, p) => i.value ? (c(), E(f(te), {
|
|
4605
4600
|
key: 0,
|
|
4606
4601
|
type: "success",
|
|
4607
|
-
onClick:
|
|
4602
|
+
onClick: u
|
|
4608
4603
|
}, {
|
|
4609
4604
|
default: w(() => [
|
|
4610
4605
|
B(" 添加 "),
|
|
@@ -4637,14 +4632,14 @@ const oi = {
|
|
|
4637
4632
|
setup(t) {
|
|
4638
4633
|
const e = _e(), n = re(), s = t, o = Q([]);
|
|
4639
4634
|
let r = "";
|
|
4640
|
-
async function a(
|
|
4641
|
-
if (r = Pe.service({ fullscreen: !0 }),
|
|
4642
|
-
r.close(), i(
|
|
4635
|
+
async function a(u, h) {
|
|
4636
|
+
if (r = Pe.service({ fullscreen: !0 }), u.path) {
|
|
4637
|
+
r.close(), i(u, h);
|
|
4643
4638
|
return;
|
|
4644
4639
|
}
|
|
4645
4640
|
const d = await Ee.getValue();
|
|
4646
4641
|
try {
|
|
4647
|
-
await
|
|
4642
|
+
await u.action({
|
|
4648
4643
|
...h,
|
|
4649
4644
|
...s.query,
|
|
4650
4645
|
idempotentToken: d
|
|
@@ -4653,8 +4648,8 @@ const oi = {
|
|
|
4653
4648
|
r.close(), n.fireUpdated();
|
|
4654
4649
|
}
|
|
4655
4650
|
}
|
|
4656
|
-
function i(
|
|
4657
|
-
e.push(
|
|
4651
|
+
function i(u, h) {
|
|
4652
|
+
e.push(u.path(h, s.query));
|
|
4658
4653
|
}
|
|
4659
4654
|
return P(
|
|
4660
4655
|
() => s.row,
|
|
@@ -4662,7 +4657,7 @@ const oi = {
|
|
|
4662
4657
|
o.value = s.settings.rowActions(s.query);
|
|
4663
4658
|
},
|
|
4664
4659
|
{ immediate: !0 }
|
|
4665
|
-
), (
|
|
4660
|
+
), (u, h) => (c(!0), $(L, null, M(o.value, (d) => (c(), $(L, null, [
|
|
4666
4661
|
d.isVisible(s.row) ? (c(), $(L, { key: 0 }, [
|
|
4667
4662
|
d.component ? (c(), E(K(d.component), {
|
|
4668
4663
|
key: 0,
|
|
@@ -4694,17 +4689,17 @@ const oi = {
|
|
|
4694
4689
|
}
|
|
4695
4690
|
},
|
|
4696
4691
|
setup(t) {
|
|
4697
|
-
const e = re(), n = t, s = Q([]), o =
|
|
4698
|
-
var i,
|
|
4699
|
-
return ((
|
|
4692
|
+
const e = re(), n = t, s = Q([]), o = N(() => {
|
|
4693
|
+
var i, u;
|
|
4694
|
+
return ((u = (i = n.tableDataSelect) == null ? void 0 : i.data) == null ? void 0 : u.length) > 0;
|
|
4700
4695
|
}), r = A(!1);
|
|
4701
4696
|
async function a(i) {
|
|
4702
4697
|
r.value = !0;
|
|
4703
|
-
const
|
|
4698
|
+
const u = await Ee.getValue();
|
|
4704
4699
|
try {
|
|
4705
4700
|
await i.action({
|
|
4706
4701
|
...n.tableDataSelect,
|
|
4707
|
-
idempotentToken:
|
|
4702
|
+
idempotentToken: u
|
|
4708
4703
|
}), r.value = !1, e.fireUpdated();
|
|
4709
4704
|
} catch {
|
|
4710
4705
|
r.value = !1, e.fireUpdated();
|
|
@@ -4716,7 +4711,7 @@ const oi = {
|
|
|
4716
4711
|
s.value = n.settings.pageActions(n.query);
|
|
4717
4712
|
},
|
|
4718
4713
|
{ immediate: !0 }
|
|
4719
|
-
), (i,
|
|
4714
|
+
), (i, u) => (c(!0), $(L, null, M(s.value, (h) => (c(), $(L, null, [
|
|
4720
4715
|
h.component ? (c(), E(K(h.component), {
|
|
4721
4716
|
key: 0,
|
|
4722
4717
|
item: h,
|
|
@@ -4758,11 +4753,11 @@ const oi = {
|
|
|
4758
4753
|
},
|
|
4759
4754
|
emits: ["page-change"],
|
|
4760
4755
|
setup(t, { emit: e }) {
|
|
4761
|
-
const n = e, s = _e(), o = z(), r = t, a = A(r.page), i = A(r.size),
|
|
4756
|
+
const n = e, s = _e(), o = z(), r = t, a = A(r.page), i = A(r.size), u = A(r.total), h = A(r.pageSizes);
|
|
4762
4757
|
P(
|
|
4763
4758
|
() => r.total,
|
|
4764
4759
|
(S) => {
|
|
4765
|
-
|
|
4760
|
+
u.value = S;
|
|
4766
4761
|
}
|
|
4767
4762
|
), P(
|
|
4768
4763
|
() => [o.query.page, o.query.pageSize],
|
|
@@ -4790,12 +4785,12 @@ const oi = {
|
|
|
4790
4785
|
}
|
|
4791
4786
|
});
|
|
4792
4787
|
}
|
|
4793
|
-
return (S,
|
|
4794
|
-
|
|
4788
|
+
return (S, x) => (c(), $("div", li, [
|
|
4789
|
+
O(f(gs), {
|
|
4795
4790
|
background: "",
|
|
4796
4791
|
"page-size": i.value,
|
|
4797
4792
|
"page-sizes": h.value,
|
|
4798
|
-
total:
|
|
4793
|
+
total: u.value,
|
|
4799
4794
|
"current-page": t.page,
|
|
4800
4795
|
layout: "total,sizes, prev, pager, next",
|
|
4801
4796
|
onCurrentChange: d,
|
|
@@ -4843,12 +4838,12 @@ var en = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, vi
|
|
|
4843
4838
|
function tn(t, e, n = {}) {
|
|
4844
4839
|
const s = n, { window: o = gi } = s, r = bi(s, ["window"]);
|
|
4845
4840
|
let a;
|
|
4846
|
-
const i = _i(() => o && "ResizeObserver" in o),
|
|
4841
|
+
const i = _i(() => o && "ResizeObserver" in o), u = () => {
|
|
4847
4842
|
a && (a.disconnect(), a = void 0);
|
|
4848
4843
|
}, h = P(() => hi(t), (p) => {
|
|
4849
|
-
|
|
4844
|
+
u(), i.value && o && p && (a = new ResizeObserver(e), a.observe(p, r));
|
|
4850
4845
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
4851
|
-
|
|
4846
|
+
u(), h();
|
|
4852
4847
|
};
|
|
4853
4848
|
return fi(d), {
|
|
4854
4849
|
isSupported: i,
|
|
@@ -4919,25 +4914,25 @@ const xi = {
|
|
|
4919
4914
|
P(r, (D) => {
|
|
4920
4915
|
g = D, W();
|
|
4921
4916
|
});
|
|
4922
|
-
const a = re(), { created: i, updated:
|
|
4923
|
-
P([i,
|
|
4924
|
-
(D ||
|
|
4917
|
+
const a = re(), { created: i, updated: u, removed: h } = pe(a);
|
|
4918
|
+
P([i, u, h], ([D, I, ae]) => {
|
|
4919
|
+
(D || I || ae) && W();
|
|
4925
4920
|
});
|
|
4926
|
-
const d = A(!0), p = A([]), S = A(0),
|
|
4921
|
+
const d = A(!0), p = A([]), S = A(0), x = A({}), m = A({}), l = A(null), _ = A(null);
|
|
4927
4922
|
let g = {};
|
|
4928
4923
|
const y = A(parseInt(e.query.pageSize) || 30), b = A(parseInt(e.query.page) || 1);
|
|
4929
4924
|
function k(D) {
|
|
4930
|
-
let
|
|
4931
|
-
if (D.order === "ascending" ?
|
|
4925
|
+
let I = null;
|
|
4926
|
+
if (D.order === "ascending" ? I = "ASC" : D.order === "descending" && (I = "DESC"), g.sorters) {
|
|
4932
4927
|
let ae = [];
|
|
4933
4928
|
g.sorters.some((ie) => ie.field === D.prop) ? g.sorters.forEach((ie) => {
|
|
4934
|
-
ie.field === D.prop && (ie.order =
|
|
4929
|
+
ie.field === D.prop && (ie.order = I, ie.name || ae.push(ie)), ie.name && ae.push(ie);
|
|
4935
4930
|
}) : ae = [
|
|
4936
4931
|
...g.sorters,
|
|
4937
|
-
{ field: D.prop, order:
|
|
4932
|
+
{ field: D.prop, order: I }
|
|
4938
4933
|
], g.sorters = ae;
|
|
4939
4934
|
} else
|
|
4940
|
-
g.sorters = [{ field: D.prop, order:
|
|
4935
|
+
g.sorters = [{ field: D.prop, order: I }];
|
|
4941
4936
|
W();
|
|
4942
4937
|
}
|
|
4943
4938
|
function V() {
|
|
@@ -4952,23 +4947,23 @@ const xi = {
|
|
|
4952
4947
|
page: b.value,
|
|
4953
4948
|
size: y.value
|
|
4954
4949
|
};
|
|
4955
|
-
s.settings.rest.getList(D).then((
|
|
4956
|
-
|
|
4950
|
+
s.settings.rest.getList(D).then((I) => {
|
|
4951
|
+
x.value.data = [], p.value = I.data.rows, S.value = I.data.count, d.value = !1;
|
|
4957
4952
|
});
|
|
4958
4953
|
}
|
|
4959
4954
|
function q(D) {
|
|
4960
4955
|
b.value = D.page, y.value = D.size, W();
|
|
4961
4956
|
}
|
|
4962
4957
|
function oe(D) {
|
|
4963
|
-
const
|
|
4964
|
-
s.settings.rest.enable(
|
|
4958
|
+
const I = { id: D.id, enable: !D.enable };
|
|
4959
|
+
s.settings.rest.enable(I).then(() => {
|
|
4965
4960
|
W();
|
|
4966
4961
|
});
|
|
4967
4962
|
}
|
|
4968
4963
|
function Hn(D) {
|
|
4969
4964
|
if (D.enable) {
|
|
4970
|
-
const
|
|
4971
|
-
ElMessageBox.confirm(`确定要${
|
|
4965
|
+
const I = D.label === "上架" ? "下架" : "停用";
|
|
4966
|
+
ElMessageBox.confirm(`确定要${I}该条数据吗?`, "提示", {
|
|
4972
4967
|
confirmButtonText: "确定",
|
|
4973
4968
|
cancelButtonText: "取消",
|
|
4974
4969
|
type: "warning"
|
|
@@ -4980,35 +4975,35 @@ const xi = {
|
|
|
4980
4975
|
oe(D);
|
|
4981
4976
|
}
|
|
4982
4977
|
function qn(D) {
|
|
4983
|
-
|
|
4978
|
+
x.value = D;
|
|
4984
4979
|
}
|
|
4985
4980
|
const St = A(0), Ot = A(0);
|
|
4986
|
-
tn(
|
|
4987
|
-
var
|
|
4988
|
-
St.value = ((
|
|
4981
|
+
tn(l, (D) => {
|
|
4982
|
+
var I;
|
|
4983
|
+
St.value = ((I = D[0]) == null ? void 0 : I.contentRect.height) || 0;
|
|
4989
4984
|
}), tn(_, (D) => {
|
|
4990
|
-
var
|
|
4991
|
-
Ot.value = ((
|
|
4985
|
+
var I;
|
|
4986
|
+
Ot.value = ((I = D[0]) == null ? void 0 : I.contentRect.height) || 0;
|
|
4992
4987
|
});
|
|
4993
|
-
const Wn =
|
|
4994
|
-
return V(), (D,
|
|
4988
|
+
const Wn = N(() => `${St.value + Ot.value}px`);
|
|
4989
|
+
return V(), (D, I) => (c(), $("div", {
|
|
4995
4990
|
key: s.settings.code,
|
|
4996
4991
|
style: { height: "100%" }
|
|
4997
4992
|
}, [
|
|
4998
4993
|
C("div", {
|
|
4999
4994
|
ref_key: "pageHeader",
|
|
5000
|
-
ref:
|
|
4995
|
+
ref: l
|
|
5001
4996
|
}, [
|
|
5002
|
-
|
|
4997
|
+
O(ja, {
|
|
5003
4998
|
settings: s.settings
|
|
5004
4999
|
}, {
|
|
5005
5000
|
operations: w(() => [
|
|
5006
|
-
|
|
5001
|
+
O(ii, {
|
|
5007
5002
|
settings: s.settings,
|
|
5008
|
-
"table-data-select":
|
|
5003
|
+
"table-data-select": x.value,
|
|
5009
5004
|
query: f(n)
|
|
5010
5005
|
}, null, 8, ["settings", "table-data-select", "query"]),
|
|
5011
|
-
|
|
5006
|
+
O(ai, {
|
|
5012
5007
|
settings: s.settings,
|
|
5013
5008
|
operations: m.value
|
|
5014
5009
|
}, null, 8, ["settings", "operations"])
|
|
@@ -5029,7 +5024,7 @@ const xi = {
|
|
|
5029
5024
|
s.settings.rowActions(f(n)).length > 0 ? {
|
|
5030
5025
|
name: "actions",
|
|
5031
5026
|
fn: w(({ row: ae }) => [
|
|
5032
|
-
|
|
5027
|
+
O(Vn, {
|
|
5033
5028
|
row: ae,
|
|
5034
5029
|
settings: s.settings,
|
|
5035
5030
|
query: f(n)
|
|
@@ -5044,7 +5039,7 @@ const xi = {
|
|
|
5044
5039
|
ref_key: "pagination",
|
|
5045
5040
|
ref: _
|
|
5046
5041
|
}, [
|
|
5047
|
-
|
|
5042
|
+
O(ci, {
|
|
5048
5043
|
page: b.value,
|
|
5049
5044
|
size: y.value,
|
|
5050
5045
|
total: S.value,
|
|
@@ -5084,7 +5079,7 @@ const xi = {
|
|
|
5084
5079
|
},
|
|
5085
5080
|
emits: ["done"],
|
|
5086
5081
|
setup(t, { emit: e }) {
|
|
5087
|
-
const n = e, s = t, o = re(), { updated: r } = pe(o), a = Q([]), i = A(null),
|
|
5082
|
+
const n = e, s = t, o = re(), { updated: r } = pe(o), a = Q([]), i = A(null), u = [
|
|
5088
5083
|
"image",
|
|
5089
5084
|
"images",
|
|
5090
5085
|
"attachments",
|
|
@@ -5096,18 +5091,18 @@ const xi = {
|
|
|
5096
5091
|
"json"
|
|
5097
5092
|
];
|
|
5098
5093
|
a.value = s.settings.fields.filter((m) => m.showInDetail());
|
|
5099
|
-
const h =
|
|
5100
|
-
var
|
|
5101
|
-
const m = (
|
|
5102
|
-
return a.value.filter((_) =>
|
|
5103
|
-
}), S =
|
|
5094
|
+
const h = N(() => a.value.find((m) => m.code === s.settings.coverField)), d = N(() => a.value.filter((m) => !u.includes(m.type))), p = N(() => {
|
|
5095
|
+
var l;
|
|
5096
|
+
const m = (l = h.value) == null ? void 0 : l.code;
|
|
5097
|
+
return a.value.filter((_) => u.includes(_.type)).filter((_) => _.code !== m);
|
|
5098
|
+
}), S = N({
|
|
5104
5099
|
get() {
|
|
5105
5100
|
return p.value.map((m) => m.code);
|
|
5106
5101
|
},
|
|
5107
5102
|
set(m) {
|
|
5108
5103
|
}
|
|
5109
5104
|
});
|
|
5110
|
-
function
|
|
5105
|
+
function x() {
|
|
5111
5106
|
s.settings.rest.getOne(s.query).then((m) => {
|
|
5112
5107
|
m.data.isDeleted = !!m.data.deletedAt, i.value = m.data, n("done", m.data);
|
|
5113
5108
|
});
|
|
@@ -5115,12 +5110,12 @@ const xi = {
|
|
|
5115
5110
|
return P(
|
|
5116
5111
|
r,
|
|
5117
5112
|
() => {
|
|
5118
|
-
|
|
5113
|
+
x();
|
|
5119
5114
|
},
|
|
5120
5115
|
{ immediate: !0 }
|
|
5121
|
-
), (m,
|
|
5116
|
+
), (m, l) => (c(), $("div", null, [
|
|
5122
5117
|
i.value ? (c(), $("div", Ai, [
|
|
5123
|
-
|
|
5118
|
+
O(f(Oe), { gutter: 20 }, {
|
|
5124
5119
|
default: w(() => [
|
|
5125
5120
|
h.value ? (c(), E(f(we), {
|
|
5126
5121
|
key: 0,
|
|
@@ -5135,11 +5130,11 @@ const xi = {
|
|
|
5135
5130
|
]),
|
|
5136
5131
|
_: 1
|
|
5137
5132
|
})) : T("", !0),
|
|
5138
|
-
|
|
5133
|
+
O(f(we), {
|
|
5139
5134
|
span: h.value ? 18 : 24
|
|
5140
5135
|
}, {
|
|
5141
5136
|
default: w(() => [
|
|
5142
|
-
|
|
5137
|
+
O(f(Oe), { gutter: 20 }, {
|
|
5143
5138
|
default: w(() => [
|
|
5144
5139
|
(c(!0), $(L, null, M(d.value, (_) => (c(), E(f(we), {
|
|
5145
5140
|
span: _.span,
|
|
@@ -5173,7 +5168,7 @@ const xi = {
|
|
|
5173
5168
|
p.value.length > 0 ? (c(), E(f(_s), {
|
|
5174
5169
|
key: 0,
|
|
5175
5170
|
modelValue: S.value,
|
|
5176
|
-
"onUpdate:modelValue":
|
|
5171
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => S.value = _),
|
|
5177
5172
|
class: "extend-fields"
|
|
5178
5173
|
}, {
|
|
5179
5174
|
default: w(() => [
|
|
@@ -5215,13 +5210,13 @@ const xi = {
|
|
|
5215
5210
|
emits: ["get-item"],
|
|
5216
5211
|
setup(t, { emit: e }) {
|
|
5217
5212
|
const n = Et(), s = z(), o = Y(s), r = t, a = A("加载中..."), i = A({});
|
|
5218
|
-
function
|
|
5213
|
+
function u(d, p) {
|
|
5219
5214
|
const S = `${d}-${p}`;
|
|
5220
5215
|
n.updateTitleByCode(S, a.value), document.title = a.value;
|
|
5221
5216
|
}
|
|
5222
5217
|
function h(d) {
|
|
5223
5218
|
const p = r.settings;
|
|
5224
|
-
a.value = `${p.name}: ${p.formatName(d)}`,
|
|
5219
|
+
a.value = `${p.name}: ${p.formatName(d)}`, u(p.code, d.id);
|
|
5225
5220
|
}
|
|
5226
5221
|
return P(
|
|
5227
5222
|
() => r.data,
|
|
@@ -5234,12 +5229,12 @@ const xi = {
|
|
|
5234
5229
|
C("div", null, [
|
|
5235
5230
|
r.data ? (c(), E(f(de), { key: 0 }, {
|
|
5236
5231
|
default: w(() => [
|
|
5237
|
-
|
|
5232
|
+
O(Vn, {
|
|
5238
5233
|
row: r.data,
|
|
5239
5234
|
settings: r.settings,
|
|
5240
5235
|
query: f(o)
|
|
5241
5236
|
}, null, 8, ["row", "settings", "query"]),
|
|
5242
|
-
|
|
5237
|
+
O($t, {
|
|
5243
5238
|
row: r.data,
|
|
5244
5239
|
settings: r.settings,
|
|
5245
5240
|
operations: i.value,
|
|
@@ -5262,35 +5257,35 @@ const xi = {
|
|
|
5262
5257
|
}
|
|
5263
5258
|
},
|
|
5264
5259
|
setup(t) {
|
|
5265
|
-
const e = _e(), n = z(), s = Y(n), o = t, r = Q([]), a = A(""), i = Q(null),
|
|
5266
|
-
pe(h), r.value = o.settings.fields.filter((
|
|
5267
|
-
function d(
|
|
5268
|
-
|
|
5260
|
+
const e = _e(), n = z(), s = Y(n), o = t, r = Q([]), a = A(""), i = Q(null), u = A(null), h = re();
|
|
5261
|
+
pe(h), r.value = o.settings.fields.filter((x) => x.showInDetail !== !1);
|
|
5262
|
+
function d(x) {
|
|
5263
|
+
u.value = x;
|
|
5269
5264
|
}
|
|
5270
|
-
function p(
|
|
5271
|
-
a.value =
|
|
5265
|
+
function p(x) {
|
|
5266
|
+
a.value = x.props.name, e.push({
|
|
5272
5267
|
name: `${n.meta.side}-association`,
|
|
5273
|
-
params: { association:
|
|
5268
|
+
params: { association: x.props.name },
|
|
5274
5269
|
query: s
|
|
5275
5270
|
});
|
|
5276
5271
|
}
|
|
5277
|
-
function S(
|
|
5272
|
+
function S(x) {
|
|
5278
5273
|
if (o.associations.length > 0)
|
|
5279
5274
|
if (n.params.association) {
|
|
5280
5275
|
a.value = n.params.association;
|
|
5281
|
-
const m = o.associations.find((
|
|
5276
|
+
const m = o.associations.find((l) => l.domain === n.params.association);
|
|
5282
5277
|
i.value = {
|
|
5283
5278
|
...m,
|
|
5284
|
-
domainData:
|
|
5279
|
+
domainData: u.value
|
|
5285
5280
|
};
|
|
5286
5281
|
} else
|
|
5287
5282
|
a.value = o.associations[0].domain, i.value = {
|
|
5288
5283
|
...o.associations[0],
|
|
5289
|
-
domainData:
|
|
5290
|
-
},
|
|
5284
|
+
domainData: u.value
|
|
5285
|
+
}, x && x();
|
|
5291
5286
|
}
|
|
5292
5287
|
return P(
|
|
5293
|
-
|
|
5288
|
+
u,
|
|
5294
5289
|
() => {
|
|
5295
5290
|
S(() => {
|
|
5296
5291
|
e.replace({
|
|
@@ -5304,25 +5299,25 @@ const xi = {
|
|
|
5304
5299
|
), P(
|
|
5305
5300
|
() => n.params,
|
|
5306
5301
|
() => {
|
|
5307
|
-
|
|
5302
|
+
u.value && S();
|
|
5308
5303
|
},
|
|
5309
5304
|
{ immediate: !0 }
|
|
5310
|
-
), (
|
|
5311
|
-
const
|
|
5305
|
+
), (x, m) => {
|
|
5306
|
+
const l = He("router-view");
|
|
5312
5307
|
return c(), $("div", {
|
|
5313
5308
|
key: `${f(n).params.domain}-${f(n).params.id}`
|
|
5314
5309
|
}, [
|
|
5315
|
-
|
|
5316
|
-
data:
|
|
5310
|
+
O(Bi, {
|
|
5311
|
+
data: u.value,
|
|
5317
5312
|
settings: o.settings,
|
|
5318
5313
|
query: { ...f(n).params, ...f(s) }
|
|
5319
5314
|
}, null, 8, ["data", "settings", "query"]),
|
|
5320
|
-
|
|
5315
|
+
O(Mn, {
|
|
5321
5316
|
query: { ...f(n).params, ...f(s) },
|
|
5322
5317
|
settings: o.settings,
|
|
5323
5318
|
onDone: d
|
|
5324
5319
|
}, null, 8, ["query", "settings"]),
|
|
5325
|
-
|
|
5320
|
+
O(f(pn), {
|
|
5326
5321
|
modelValue: a.value,
|
|
5327
5322
|
"onUpdate:modelValue": m[0] || (m[0] = (_) => a.value = _),
|
|
5328
5323
|
class: "association-tabs",
|
|
@@ -5336,7 +5331,7 @@ const xi = {
|
|
|
5336
5331
|
]),
|
|
5337
5332
|
_: 1
|
|
5338
5333
|
}, 8, ["modelValue"]),
|
|
5339
|
-
i.value ? (c(), E(
|
|
5334
|
+
i.value ? (c(), E(l, {
|
|
5340
5335
|
key: i.value,
|
|
5341
5336
|
association: i.value
|
|
5342
5337
|
}, null, 8, ["association"])) : T("", !0)
|
|
@@ -5351,11 +5346,11 @@ const xi = {
|
|
|
5351
5346
|
setup(t) {
|
|
5352
5347
|
const e = z(), n = e.meta.side, s = e.params.domain, o = Q(null), r = Q([]);
|
|
5353
5348
|
bt(n, s).then((i) => {
|
|
5354
|
-
const
|
|
5355
|
-
o.value =
|
|
5349
|
+
const u = i, h = a("has-many", u.hasMany), d = a("has-one", u.hasOne);
|
|
5350
|
+
o.value = u, r.value = h.concat(d);
|
|
5356
5351
|
});
|
|
5357
|
-
function a(i,
|
|
5358
|
-
return (
|
|
5352
|
+
function a(i, u) {
|
|
5353
|
+
return (u || []).map((h) => typeof h == "object" ? {
|
|
5359
5354
|
type: i,
|
|
5360
5355
|
domain: h.code,
|
|
5361
5356
|
name: h.name,
|
|
@@ -5367,7 +5362,7 @@ const xi = {
|
|
|
5367
5362
|
query: () => ({})
|
|
5368
5363
|
});
|
|
5369
5364
|
}
|
|
5370
|
-
return (i,
|
|
5365
|
+
return (i, u) => o.value ? (c(), E(Ii, {
|
|
5371
5366
|
key: 0,
|
|
5372
5367
|
settings: o.value,
|
|
5373
5368
|
associations: r.value
|
|
@@ -5454,4 +5449,4 @@ export {
|
|
|
5454
5449
|
Xi as y,
|
|
5455
5450
|
el as z
|
|
5456
5451
|
};
|
|
5457
|
-
//# sourceMappingURL=index-
|
|
5452
|
+
//# sourceMappingURL=index-VhXXlvT7.js.map
|