kouxiangtang 0.0.84 → 0.0.85
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-idx1heQj.js → AttachmentUploader-5MUEMGlw.js} +2 -2
- package/dist/{AttachmentUploader-idx1heQj.js.map → AttachmentUploader-5MUEMGlw.js.map} +1 -1
- package/dist/{ImageUploader-CTBQqhNF.js → ImageUploader-DV57379x.js} +2 -2
- package/dist/{ImageUploader-CTBQqhNF.js.map → ImageUploader-DV57379x.js.map} +1 -1
- package/dist/{ImagesUploader-BN3tFc0p.js → ImagesUploader-BaNALrAL.js} +2 -2
- package/dist/{ImagesUploader-BN3tFc0p.js.map → ImagesUploader-BaNALrAL.js.map} +1 -1
- package/dist/{RichTextEditor-D8v7yIgd.js → RichTextEditor-9hogGXkV.js} +2 -2
- package/dist/{RichTextEditor-D8v7yIgd.js.map → RichTextEditor-9hogGXkV.js.map} +1 -1
- package/dist/{config-CZkwakoK.js → config-B8hd4Rhp.js} +2 -2
- package/dist/{config-CZkwakoK.js.map → config-B8hd4Rhp.js.map} +1 -1
- package/dist/{config-B5P5Joqp.js → config-BIm-L4OF.js} +2 -2
- package/dist/{config-B5P5Joqp.js.map → config-BIm-L4OF.js.map} +1 -1
- package/dist/{config-D7aQ3giE.js → config-BOoO5ADD.js} +2 -2
- package/dist/{config-D7aQ3giE.js.map → config-BOoO5ADD.js.map} +1 -1
- package/dist/{config-BWnfEr-l.js → config-BbVbGfL6.js} +2 -2
- package/dist/{config-BWnfEr-l.js.map → config-BbVbGfL6.js.map} +1 -1
- package/dist/{config-C-pe3KIp.js → config-C5d2Y5lT.js} +2 -2
- package/dist/{config-C-pe3KIp.js.map → config-C5d2Y5lT.js.map} +1 -1
- package/dist/{config-BIvSC-1E.js → config-CFxacuQl.js} +2 -2
- package/dist/{config-BIvSC-1E.js.map → config-CFxacuQl.js.map} +1 -1
- package/dist/{config-U-xCFpc7.js → config-CS0O39NF.js} +2 -2
- package/dist/{config-U-xCFpc7.js.map → config-CS0O39NF.js.map} +1 -1
- package/dist/{config-fl8Bbg1W.js → config-CaVw0Uey.js} +3 -3
- package/dist/{config-fl8Bbg1W.js.map → config-CaVw0Uey.js.map} +1 -1
- package/dist/{config-DbUEFSiD.js → config-CoPjI4Bu.js} +2 -2
- package/dist/{config-DbUEFSiD.js.map → config-CoPjI4Bu.js.map} +1 -1
- package/dist/{config-CsLa2LwH.js → config-CuSnXh3v.js} +2 -2
- package/dist/{config-CsLa2LwH.js.map → config-CuSnXh3v.js.map} +1 -1
- package/dist/{config-coXEn0oo.js → config-CvquE5fQ.js} +2 -2
- package/dist/{config-coXEn0oo.js.map → config-CvquE5fQ.js.map} +1 -1
- package/dist/{config-BqxwxsGX.js → config-DCrLYyDQ.js} +2 -2
- package/dist/{config-BqxwxsGX.js.map → config-DCrLYyDQ.js.map} +1 -1
- package/dist/{config-BexMPARW.js → config-DivNupSQ.js} +2 -2
- package/dist/{config-BexMPARW.js.map → config-DivNupSQ.js.map} +1 -1
- package/dist/{config-DXHp0PH9.js → config-DpTtroe0.js} +3 -3
- package/dist/{config-DXHp0PH9.js.map → config-DpTtroe0.js.map} +1 -1
- package/dist/{config-eyniyVUh.js → config-Dq2ZmEk2.js} +3 -3
- package/dist/{config-eyniyVUh.js.map → config-Dq2ZmEk2.js.map} +1 -1
- package/dist/{config-B-idK80V.js → config-Dq5hc4u6.js} +2 -2
- package/dist/{config-B-idK80V.js.map → config-Dq5hc4u6.js.map} +1 -1
- package/dist/{config-DxnSZUF6.js → config-Mav8bi6o.js} +2 -2
- package/dist/{config-DxnSZUF6.js.map → config-Mav8bi6o.js.map} +1 -1
- package/dist/{config-BELDR8GG.js → config-QjbD-Eq4.js} +2 -2
- package/dist/{config-BELDR8GG.js.map → config-QjbD-Eq4.js.map} +1 -1
- package/dist/{config-KHMuvceL.js → config-WK3Q0VIm.js} +2 -2
- package/dist/{config-KHMuvceL.js.map → config-WK3Q0VIm.js.map} +1 -1
- package/dist/{config-BDrSI8Vv.js → config-y0eSzzRc.js} +2 -2
- package/dist/{config-BDrSI8Vv.js.map → config-y0eSzzRc.js.map} +1 -1
- package/dist/{index-DlGennc6.js → index-lyE0nMga.js} +447 -447
- package/dist/index-lyE0nMga.js.map +1 -0
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +1 -1
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/index-DlGennc6.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as c, createBlock as S, unref as f, createSlots as De, withCtx as
|
|
1
|
+
import { openBlock as c, createBlock as S, unref as f, createSlots as De, withCtx as E, renderSlot as J, createElementVNode as C, toDisplayString as B, resolveComponent as qe, withDirectives as _e, createElementBlock as O, normalizeStyle as Ge, createVNode as x, createTextVNode as N, computed as I, Fragment as P, renderList as q, ref as D, reactive as Oe, watch as j, resolveDynamicComponent as X, createCommentVNode as L, shallowRef as te, defineAsyncComponent as Zn, normalizeClass as he, withModifiers as Tt, defineComponent as W, useSlots as Re, onMounted as dn, watchEffect as gt, pushScopeId as pn, popScopeId as fn, normalizeProps as Ft, guardReactiveProps as Lt, getCurrentScope as es, onScopeDispose as ts, getCurrentInstance as ns, nextTick as ss, useCssVars as os } from "vue";
|
|
2
2
|
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as xe, ElCol as $e, ElForm as hn, ElFormItem as ot, ElAlert as rs, ElButton as ne, ElMessageBox as is, ElMessage as ke, ElDialog as ls, ElLoading as Be, ElInputNumber as Pt, ElSelect as jt, ElOption as Ke, ElSelectV2 as us, ElTreeSelect as cs, ElDatePicker as Xe, ElInput as ds, ElButtonGroup as pe, ElDropdown as at, ElDropdownMenu as rt, ElDropdownItem as ue, ElIcon as G, ElEmpty as ps, ElImage as gn, ElTable as fs, ElTableColumn as je, ElTooltip as yn, ElPagination as ms, ElText as Bt, ElTabs as _n, ElTabPane as vn, ElSubMenu as hs, ElMenuItem as gs, ElScrollbar as ys, ElMenu as _s, ElConfigProvider as vs, ElContainer as Vt, ElHeader as bs, ElAside as ws, ElMain as Es, ElCollapse as $s, ElCollapseItem as Ss } from "element-plus";
|
|
3
3
|
import { useRoute as U, useRouter as fe } from "vue-router";
|
|
4
4
|
import { defineStore as yt, storeToRefs as ge } from "pinia";
|
|
@@ -165,8 +165,8 @@ const no = (t) => {
|
|
|
165
165
|
e[o] = s;
|
|
166
166
|
const r = be(s) ? [] : {};
|
|
167
167
|
return Te(s, (a, i) => {
|
|
168
|
-
const
|
|
169
|
-
!Ae(
|
|
168
|
+
const p = n(a, o + 1);
|
|
169
|
+
!Ae(p) && (r[i] = p);
|
|
170
170
|
}), e[o] = void 0, r;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -273,8 +273,8 @@ Object.defineProperties(T, Cn);
|
|
|
273
273
|
Object.defineProperty(An, "isAxiosError", { value: !0 });
|
|
274
274
|
T.from = (t, e, n, s, o, r) => {
|
|
275
275
|
const a = Object.create(An);
|
|
276
|
-
return v.toFlatObject(t, a, function(
|
|
277
|
-
return
|
|
276
|
+
return v.toFlatObject(t, a, function(p) {
|
|
277
|
+
return p !== Error.prototype;
|
|
278
278
|
}, (i) => i !== "isAxiosError"), T.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 ao = null;
|
|
@@ -305,7 +305,7 @@ function Ye(t, e, n) {
|
|
|
305
305
|
}, !1, function(m, g) {
|
|
306
306
|
return !v.isUndefined(g[m]);
|
|
307
307
|
});
|
|
308
|
-
const s = n.metaTokens, o = n.visitor ||
|
|
308
|
+
const s = n.metaTokens, o = n.visitor || d, r = n.dots, a = n.indexes, p = (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(y) {
|
|
@@ -313,11 +313,11 @@ function Ye(t, e, n) {
|
|
|
313
313
|
return "";
|
|
314
314
|
if (v.isDate(y))
|
|
315
315
|
return y.toISOString();
|
|
316
|
-
if (!
|
|
316
|
+
if (!p && v.isBlob(y))
|
|
317
317
|
throw new T("Blob is not supported. Use a Buffer instead.");
|
|
318
|
-
return v.isArrayBuffer(y) || v.isTypedArray(y) ?
|
|
318
|
+
return v.isArrayBuffer(y) || v.isTypedArray(y) ? p && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function d(y, m, g) {
|
|
321
321
|
let $ = y;
|
|
322
322
|
if (y && !g && typeof y == "object") {
|
|
323
323
|
if (v.endsWith(m, "{}"))
|
|
@@ -333,8 +333,8 @@ function Ye(t, e, n) {
|
|
|
333
333
|
}
|
|
334
334
|
return lt(y) ? !0 : (e.append(Mt(g, m, r), h(y)), !1);
|
|
335
335
|
}
|
|
336
|
-
const u = [],
|
|
337
|
-
defaultVisitor:
|
|
336
|
+
const u = [], w = Object.assign(io, {
|
|
337
|
+
defaultVisitor: d,
|
|
338
338
|
convertValue: h,
|
|
339
339
|
isVisitable: lt
|
|
340
340
|
});
|
|
@@ -348,7 +348,7 @@ function Ye(t, e, n) {
|
|
|
348
348
|
$,
|
|
349
349
|
v.isString(l) ? l.trim() : l,
|
|
350
350
|
m,
|
|
351
|
-
|
|
351
|
+
w
|
|
352
352
|
)) === !0 && A($, m ? m.concat(l) : [l]);
|
|
353
353
|
}), u.pop();
|
|
354
354
|
}
|
|
@@ -500,8 +500,8 @@ function Pn(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), p = r >= n.length;
|
|
504
|
+
return a = !a && v.isArray(o) ? o.length : a, p ? (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] = vo(o[a])), !i);
|
|
505
505
|
}
|
|
506
506
|
if (v.isFormData(t) && v.isFunction(t.entries)) {
|
|
507
507
|
const n = {};
|
|
@@ -539,10 +539,10 @@ const Fe = {
|
|
|
539
539
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
540
540
|
return yo(e, this.formSerializer).toString();
|
|
541
541
|
if ((i = v.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
542
|
-
const
|
|
542
|
+
const p = this.env && this.env.FormData;
|
|
543
543
|
return Ye(
|
|
544
544
|
i ? { "files[]": e } : e,
|
|
545
|
-
|
|
545
|
+
p && new p(),
|
|
546
546
|
this.formSerializer
|
|
547
547
|
);
|
|
548
548
|
}
|
|
@@ -658,14 +658,14 @@ class ee {
|
|
|
658
658
|
}
|
|
659
659
|
set(e, n, s) {
|
|
660
660
|
const o = this;
|
|
661
|
-
function r(i,
|
|
662
|
-
const
|
|
663
|
-
if (!
|
|
661
|
+
function r(i, p, h) {
|
|
662
|
+
const d = Ee(p);
|
|
663
|
+
if (!d)
|
|
664
664
|
throw new Error("header name must be a non-empty string");
|
|
665
|
-
const u = v.findKey(o,
|
|
666
|
-
(!u || o[u] === void 0 || h === !0 || h === void 0 && o[u] !== !1) && (o[u ||
|
|
665
|
+
const u = v.findKey(o, d);
|
|
666
|
+
(!u || o[u] === void 0 || h === !0 || h === void 0 && o[u] !== !1) && (o[u || p] = Ne(i));
|
|
667
667
|
}
|
|
668
|
-
const a = (i,
|
|
668
|
+
const a = (i, p) => v.forEach(i, (h, d) => r(h, d, p));
|
|
669
669
|
return v.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : v.isString(e) && (e = e.trim()) && !So(e) ? a(Eo(e), n) : e != null && r(n, e, s), this;
|
|
670
670
|
}
|
|
671
671
|
get(e, n) {
|
|
@@ -874,50 +874,50 @@ function Fo(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(
|
|
878
|
-
const h = Date.now(),
|
|
879
|
-
a || (a = h), n[o] =
|
|
880
|
-
let u = r,
|
|
877
|
+
return e = e !== void 0 ? e : 1e3, function(p) {
|
|
878
|
+
const h = Date.now(), d = s[r];
|
|
879
|
+
a || (a = h), n[o] = p, s[o] = h;
|
|
880
|
+
let u = r, w = 0;
|
|
881
881
|
for (; u !== o; )
|
|
882
|
-
|
|
882
|
+
w += n[u++], u = u % t;
|
|
883
883
|
if (o = (o + 1) % t, o === r && (r = (r + 1) % t), h - a < e)
|
|
884
884
|
return;
|
|
885
|
-
const A =
|
|
886
|
-
return A ? Math.round(
|
|
885
|
+
const A = d && h - d;
|
|
886
|
+
return A ? Math.round(w * 1e3 / A) : void 0;
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
function qt(t, e) {
|
|
890
890
|
let n = 0;
|
|
891
891
|
const s = Fo(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, p = s(i), h = r <= a;
|
|
894
894
|
n = r;
|
|
895
|
-
const
|
|
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: p || void 0,
|
|
901
|
+
estimated: p && a && h ? (a - r) / p : void 0,
|
|
902
902
|
event: o
|
|
903
903
|
};
|
|
904
|
-
|
|
904
|
+
d[e ? "download" : "upload"] = !0, t(d);
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
const Lo = typeof XMLHttpRequest < "u", Po = Lo && function(t) {
|
|
908
908
|
return new Promise(function(n, s) {
|
|
909
909
|
let o = t.data;
|
|
910
910
|
const r = ee.from(t.headers).normalize();
|
|
911
|
-
let { responseType: a, withXSRFToken: i } = t,
|
|
911
|
+
let { responseType: a, withXSRFToken: i } = t, p;
|
|
912
912
|
function h() {
|
|
913
|
-
t.cancelToken && t.cancelToken.unsubscribe(
|
|
913
|
+
t.cancelToken && t.cancelToken.unsubscribe(p), t.signal && t.signal.removeEventListener("abort", p);
|
|
914
914
|
}
|
|
915
|
-
let
|
|
915
|
+
let d;
|
|
916
916
|
if (v.isFormData(o)) {
|
|
917
917
|
if (ae.hasStandardBrowserEnv || ae.hasStandardBrowserWebWorkerEnv)
|
|
918
918
|
r.setContentType(!1);
|
|
919
|
-
else if ((
|
|
920
|
-
const [m, ...g] =
|
|
919
|
+
else if ((d = r.getContentType()) !== !1) {
|
|
920
|
+
const [m, ...g] = d ? d.split(";").map(($) => $.trim()).filter(Boolean) : [];
|
|
921
921
|
r.setContentType([m || "multipart/form-data", ...g].join("; "));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
@@ -926,8 +926,8 @@ const Lo = typeof XMLHttpRequest < "u", Po = Lo && function(t) {
|
|
|
926
926
|
const m = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
927
927
|
r.set("Authorization", "Basic " + btoa(m + ":" + g));
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
u.open(t.method.toUpperCase(), Tn(
|
|
929
|
+
const w = Bn(t.baseURL, t.url);
|
|
930
|
+
u.open(t.method.toUpperCase(), Tn(w, t.params, t.paramsSerializer), !0), u.timeout = t.timeout;
|
|
931
931
|
function A() {
|
|
932
932
|
if (!u)
|
|
933
933
|
return;
|
|
@@ -962,16 +962,16 @@ const Lo = typeof XMLHttpRequest < "u", Po = Lo && function(t) {
|
|
|
962
962
|
t,
|
|
963
963
|
u
|
|
964
964
|
)), u = null;
|
|
965
|
-
}, ae.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(
|
|
965
|
+
}, ae.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(w))) {
|
|
966
966
|
const m = t.xsrfHeaderName && t.xsrfCookieName && Ao.read(t.xsrfCookieName);
|
|
967
967
|
m && r.set(t.xsrfHeaderName, m);
|
|
968
968
|
}
|
|
969
969
|
o === void 0 && r.setContentType(null), "setRequestHeader" in u && v.forEach(r.toJSON(), function(g, $) {
|
|
970
970
|
u.setRequestHeader($, g);
|
|
971
|
-
}), v.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), a && a !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (
|
|
971
|
+
}), v.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), a && a !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (p = (m) => {
|
|
972
972
|
u && (s(!m || m.type ? new Le(null, t, u) : m), u.abort(), u = null);
|
|
973
|
-
}, t.cancelToken && t.cancelToken.subscribe(
|
|
974
|
-
const y = To(
|
|
973
|
+
}, t.cancelToken && t.cancelToken.subscribe(p), t.signal && (t.signal.aborted ? p() : t.signal.addEventListener("abort", p)));
|
|
974
|
+
const y = To(w);
|
|
975
975
|
if (y && ae.protocols.indexOf(y) === -1) {
|
|
976
976
|
s(new T("Unsupported protocol " + y + ":", T.ERR_BAD_REQUEST, t));
|
|
977
977
|
return;
|
|
@@ -1008,7 +1008,7 @@ const Wt = (t) => `- ${t}`, jo = (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, p]) => `adapter ${i} ` + (p === !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(Wt).join(`
|
|
@@ -1048,34 +1048,34 @@ const Jt = (t) => t instanceof ee ? { ...t } : t;
|
|
|
1048
1048
|
function ye(t, e) {
|
|
1049
1049
|
e = e || {};
|
|
1050
1050
|
const n = {};
|
|
1051
|
-
function s(h,
|
|
1052
|
-
return v.isPlainObject(h) && v.isPlainObject(
|
|
1051
|
+
function s(h, d, u) {
|
|
1052
|
+
return v.isPlainObject(h) && v.isPlainObject(d) ? v.merge.call({ caseless: u }, h, d) : v.isPlainObject(d) ? v.merge({}, d) : v.isArray(d) ? d.slice() : d;
|
|
1053
1053
|
}
|
|
1054
|
-
function o(h,
|
|
1055
|
-
if (v.isUndefined(
|
|
1054
|
+
function o(h, d, u) {
|
|
1055
|
+
if (v.isUndefined(d)) {
|
|
1056
1056
|
if (!v.isUndefined(h))
|
|
1057
1057
|
return s(void 0, h, u);
|
|
1058
1058
|
} else
|
|
1059
|
-
return s(h,
|
|
1059
|
+
return s(h, d, u);
|
|
1060
1060
|
}
|
|
1061
|
-
function r(h,
|
|
1062
|
-
if (!v.isUndefined(
|
|
1063
|
-
return s(void 0,
|
|
1061
|
+
function r(h, d) {
|
|
1062
|
+
if (!v.isUndefined(d))
|
|
1063
|
+
return s(void 0, d);
|
|
1064
1064
|
}
|
|
1065
|
-
function a(h,
|
|
1066
|
-
if (v.isUndefined(
|
|
1065
|
+
function a(h, d) {
|
|
1066
|
+
if (v.isUndefined(d)) {
|
|
1067
1067
|
if (!v.isUndefined(h))
|
|
1068
1068
|
return s(void 0, h);
|
|
1069
1069
|
} else
|
|
1070
|
-
return s(void 0,
|
|
1070
|
+
return s(void 0, d);
|
|
1071
1071
|
}
|
|
1072
|
-
function i(h,
|
|
1072
|
+
function i(h, d, u) {
|
|
1073
1073
|
if (u in e)
|
|
1074
|
-
return s(h,
|
|
1074
|
+
return s(h, d);
|
|
1075
1075
|
if (u in t)
|
|
1076
1076
|
return s(void 0, h);
|
|
1077
1077
|
}
|
|
1078
|
-
const
|
|
1078
|
+
const p = {
|
|
1079
1079
|
url: r,
|
|
1080
1080
|
method: r,
|
|
1081
1081
|
data: r,
|
|
@@ -1104,11 +1104,11 @@ function ye(t, e) {
|
|
|
1104
1104
|
socketPath: a,
|
|
1105
1105
|
responseEncoding: a,
|
|
1106
1106
|
validateStatus: i,
|
|
1107
|
-
headers: (h,
|
|
1107
|
+
headers: (h, d) => o(Jt(h), Jt(d), !0)
|
|
1108
1108
|
};
|
|
1109
|
-
return v.forEach(Object.keys(Object.assign({}, t, e)), function(
|
|
1110
|
-
const u = d
|
|
1111
|
-
v.isUndefined(
|
|
1109
|
+
return v.forEach(Object.keys(Object.assign({}, t, e)), function(d) {
|
|
1110
|
+
const u = p[d] || o, w = u(t[d], e[d], d);
|
|
1111
|
+
v.isUndefined(w) && u !== i || (n[d] = w);
|
|
1112
1112
|
}), n;
|
|
1113
1113
|
}
|
|
1114
1114
|
const Nn = "1.6.8", bt = {};
|
|
@@ -1144,9 +1144,9 @@ function Bo(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 T("option " + r + " must be " +
|
|
1147
|
+
const i = t[r], p = i === void 0 || a(i, r, t);
|
|
1148
|
+
if (p !== !0)
|
|
1149
|
+
throw new T("option " + r + " must be " + p, T.ERR_BAD_OPTION_VALUE);
|
|
1150
1150
|
continue;
|
|
1151
1151
|
}
|
|
1152
1152
|
if (n !== !0)
|
|
@@ -1210,24 +1210,24 @@ class de {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
), n.headers = ee.concat(a, r);
|
|
1212
1212
|
const i = [];
|
|
1213
|
-
let
|
|
1213
|
+
let p = !0;
|
|
1214
1214
|
this.interceptors.request.forEach(function(m) {
|
|
1215
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (
|
|
1215
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (p = p && m.synchronous, i.unshift(m.fulfilled, m.rejected));
|
|
1216
1216
|
});
|
|
1217
1217
|
const h = [];
|
|
1218
1218
|
this.interceptors.response.forEach(function(m) {
|
|
1219
1219
|
h.push(m.fulfilled, m.rejected);
|
|
1220
1220
|
});
|
|
1221
|
-
let
|
|
1222
|
-
if (!
|
|
1221
|
+
let d, u = 0, w;
|
|
1222
|
+
if (!p) {
|
|
1223
1223
|
const y = [Qt.bind(this), void 0];
|
|
1224
|
-
for (y.unshift.apply(y, i), y.push.apply(y, h),
|
|
1225
|
-
|
|
1226
|
-
return
|
|
1224
|
+
for (y.unshift.apply(y, i), y.push.apply(y, h), w = y.length, d = Promise.resolve(n); u < w; )
|
|
1225
|
+
d = d.then(y[u++], y[u++]);
|
|
1226
|
+
return d;
|
|
1227
1227
|
}
|
|
1228
|
-
|
|
1228
|
+
w = i.length;
|
|
1229
1229
|
let A = n;
|
|
1230
|
-
for (u = 0; u <
|
|
1230
|
+
for (u = 0; u < w; ) {
|
|
1231
1231
|
const y = i[u++], m = i[u++];
|
|
1232
1232
|
try {
|
|
1233
1233
|
A = y(A);
|
|
@@ -1237,13 +1237,13 @@ class de {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
try {
|
|
1240
|
-
|
|
1240
|
+
d = Qt.call(this, A);
|
|
1241
1241
|
} catch (y) {
|
|
1242
1242
|
return Promise.reject(y);
|
|
1243
1243
|
}
|
|
1244
|
-
for (u = 0,
|
|
1245
|
-
|
|
1246
|
-
return
|
|
1244
|
+
for (u = 0, w = h.length; u < w; )
|
|
1245
|
+
d = d.then(h[u++], h[u++]);
|
|
1246
|
+
return d;
|
|
1247
1247
|
}
|
|
1248
1248
|
getUri(e) {
|
|
1249
1249
|
e = ye(this.defaults, e);
|
|
@@ -1522,7 +1522,7 @@ var Mn = { exports: {} };
|
|
|
1522
1522
|
function i(m) {
|
|
1523
1523
|
return typeof m == "string" ? new RegExp("^" + m + "$", "i") : m;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function p(m, g) {
|
|
1526
1526
|
return m === g ? g : m === m.toLowerCase() ? g.toLowerCase() : m === m.toUpperCase() ? g.toUpperCase() : m[0] === m[0].toUpperCase() ? g.charAt(0).toUpperCase() + g.substr(1).toLowerCase() : g.toLowerCase();
|
|
1527
1527
|
}
|
|
1528
1528
|
function h(m, g) {
|
|
@@ -1530,10 +1530,10 @@ var Mn = { exports: {} };
|
|
|
1530
1530
|
return g[l] || "";
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function d(m, g) {
|
|
1534
1534
|
return m.replace(g[0], function($, l) {
|
|
1535
1535
|
var b = h(g[1], arguments);
|
|
1536
|
-
return
|
|
1536
|
+
return p($ === "" ? m[l - 1] : $, b);
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
1539
|
function u(m, g, $) {
|
|
@@ -1542,14 +1542,14 @@ var Mn = { exports: {} };
|
|
|
1542
1542
|
for (var l = $.length; l--; ) {
|
|
1543
1543
|
var b = $[l];
|
|
1544
1544
|
if (b[0].test(g))
|
|
1545
|
-
return
|
|
1545
|
+
return d(g, b);
|
|
1546
1546
|
}
|
|
1547
1547
|
return g;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function w(m, g, $) {
|
|
1550
1550
|
return function(l) {
|
|
1551
1551
|
var b = l.toLowerCase();
|
|
1552
|
-
return g.hasOwnProperty(b) ?
|
|
1552
|
+
return g.hasOwnProperty(b) ? p(l, b) : m.hasOwnProperty(b) ? p(l, m[b]) : u(b, l, $);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
1555
|
function A(m, g, $, l) {
|
|
@@ -1562,7 +1562,7 @@ var Mn = { exports: {} };
|
|
|
1562
1562
|
var l = g === 1 ? y.singular(m) : y.plural(m);
|
|
1563
1563
|
return ($ ? g + " " : "") + l;
|
|
1564
1564
|
}
|
|
1565
|
-
return y.plural =
|
|
1565
|
+
return y.plural = w(
|
|
1566
1566
|
a,
|
|
1567
1567
|
r,
|
|
1568
1568
|
n
|
|
@@ -1570,7 +1570,7 @@ var Mn = { exports: {} };
|
|
|
1570
1570
|
a,
|
|
1571
1571
|
r,
|
|
1572
1572
|
n
|
|
1573
|
-
), y.singular =
|
|
1573
|
+
), y.singular = w(
|
|
1574
1574
|
r,
|
|
1575
1575
|
a,
|
|
1576
1576
|
s
|
|
@@ -2009,7 +2009,7 @@ const st = {
|
|
|
2009
2009
|
"input-number": { config: "input-number" }
|
|
2010
2010
|
};
|
|
2011
2011
|
async function Gt(t, e, n) {
|
|
2012
|
-
const s = await Zo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2012
|
+
const s = await Zo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-DpTtroe0.js"), "./field/belongs-to/config.js": () => import("./config-CFxacuQl.js"), "./field/boolean/config.js": () => import("./config-Mav8bi6o.js"), "./field/cascader/config.js": () => import("./config-CS0O39NF.js"), "./field/component/config.js": () => import("./config-Dq5hc4u6.js"), "./field/date/config.js": () => import("./config-DivNupSQ.js"), "./field/datetime/config.js": () => import("./config-CoPjI4Bu.js"), "./field/image/config.js": () => import("./config-Dq2ZmEk2.js"), "./field/images/config.js": () => import("./config-y0eSzzRc.js"), "./field/input-number/config.js": () => import("./config-QjbD-Eq4.js"), "./field/json/config.js": () => import("./config-B8hd4Rhp.js"), "./field/radio-group/config.js": () => import("./config-BIm-L4OF.js"), "./field/rich-text/config.js": () => import("./config-CaVw0Uey.js"), "./field/row-id/config.js": () => import("./config-DCrLYyDQ.js"), "./field/select/config.js": () => import("./config-CuSnXh3v.js"), "./field/string/config.js": () => import("./config-BOoO5ADD.js"), "./field/switch/config.js": () => import("./config-BbVbGfL6.js"), "./field/text/config.js": () => import("./config-C5d2Y5lT.js"), "./field/time/config.js": () => import("./config-CvquE5fQ.js"), "./field/tree-select/config.js": () => import("./config-WK3Q0VIm.js") }), `./field/${t}/config.js`, 4);
|
|
2013
2013
|
return new s.default(e, n);
|
|
2014
2014
|
}
|
|
2015
2015
|
function Kt(t, e = "unknown") {
|
|
@@ -2174,14 +2174,14 @@ const V = (t, e) => {
|
|
|
2174
2174
|
setup(t) {
|
|
2175
2175
|
const e = t;
|
|
2176
2176
|
return (n, s) => (c(), S(f(mn), { shadow: "never" }, De({
|
|
2177
|
-
default:
|
|
2177
|
+
default: E(() => [
|
|
2178
2178
|
J(n.$slots, "default", {}, void 0, !0)
|
|
2179
2179
|
]),
|
|
2180
2180
|
_: 2
|
|
2181
2181
|
}, [
|
|
2182
2182
|
e.title ? {
|
|
2183
2183
|
name: "header",
|
|
2184
|
-
fn:
|
|
2184
|
+
fn: E(() => [
|
|
2185
2185
|
C("div", aa, [
|
|
2186
2186
|
C("span", ra, B(e.title), 1)
|
|
2187
2187
|
])
|
|
@@ -2233,9 +2233,9 @@ const V = (t, e) => {
|
|
|
2233
2233
|
x(a, {
|
|
2234
2234
|
to: e.link
|
|
2235
2235
|
}, {
|
|
2236
|
-
default:
|
|
2236
|
+
default: E(() => [
|
|
2237
2237
|
x(f(as), { type: "primary" }, {
|
|
2238
|
-
default:
|
|
2238
|
+
default: E(() => [
|
|
2239
2239
|
N(B(e.title), 1)
|
|
2240
2240
|
]),
|
|
2241
2241
|
_: 1
|
|
@@ -2275,7 +2275,7 @@ const V = (t, e) => {
|
|
|
2275
2275
|
setup(t) {
|
|
2276
2276
|
const e = t;
|
|
2277
2277
|
return (n, s) => (c(), S(la, null, {
|
|
2278
|
-
default:
|
|
2278
|
+
default: E(() => [
|
|
2279
2279
|
x(ma, {
|
|
2280
2280
|
title: e.title,
|
|
2281
2281
|
value: e.value,
|
|
@@ -2301,7 +2301,7 @@ const ul = /* @__PURE__ */ V(ga, [["render", _a]]), va = {
|
|
|
2301
2301
|
style: { "margin-bottom": "20px" },
|
|
2302
2302
|
class: "row"
|
|
2303
2303
|
}, {
|
|
2304
|
-
default:
|
|
2304
|
+
default: E(() => [
|
|
2305
2305
|
J(e.$slots, "default", {}, void 0, !0)
|
|
2306
2306
|
]),
|
|
2307
2307
|
_: 3
|
|
@@ -2346,20 +2346,20 @@ const wa = {
|
|
|
2346
2346
|
return e.fields.find((i) => i.code == r);
|
|
2347
2347
|
}
|
|
2348
2348
|
function o(r, a = 2) {
|
|
2349
|
-
const i = r.map((h) => h.code),
|
|
2349
|
+
const i = r.map((h) => h.code), p = [];
|
|
2350
2350
|
for (let h = 0; h < i.length; h += a)
|
|
2351
|
-
|
|
2352
|
-
return
|
|
2351
|
+
p.push(i.slice(h, h + a));
|
|
2352
|
+
return p;
|
|
2353
2353
|
}
|
|
2354
2354
|
return (r, a) => (c(), O("div", null, [
|
|
2355
2355
|
(c(!0), O(P, null, q(n.value, (i) => (c(), S(f(xe), { gutter: 20 }, {
|
|
2356
|
-
default:
|
|
2357
|
-
(c(!0), O(P, null, q(i.cols, (
|
|
2358
|
-
span: s(
|
|
2356
|
+
default: E(() => [
|
|
2357
|
+
(c(!0), O(P, null, q(i.cols, (p) => (c(), S(f($e), {
|
|
2358
|
+
span: s(p.field).wholeRow ? 24 : p.span
|
|
2359
2359
|
}, {
|
|
2360
|
-
default:
|
|
2360
|
+
default: E(() => [
|
|
2361
2361
|
J(r.$slots, "default", {
|
|
2362
|
-
field: s(
|
|
2362
|
+
field: s(p.field)
|
|
2363
2363
|
})
|
|
2364
2364
|
]),
|
|
2365
2365
|
_: 2
|
|
@@ -2385,15 +2385,15 @@ const wa = {
|
|
|
2385
2385
|
},
|
|
2386
2386
|
emits: ["submit", "remove"],
|
|
2387
2387
|
setup(t, { emit: e }) {
|
|
2388
|
-
const n = U(), s = Q(n), o = e, r = D(!1), a = t, i = mt(a.config.formLayout || []),
|
|
2389
|
-
const _ = b.editable(
|
|
2388
|
+
const n = U(), s = Q(n), o = e, r = D(!1), a = t, i = mt(a.config.formLayout || []), p = Oe({ ...a.data }), h = D(null), d = a.config.fields.filter((b) => b.rules).reduce((b, _) => (b[_.code] = A(_.rules), b), {}), u = I(l), w = I(() => a.config.fields.filter((b) => {
|
|
2389
|
+
const _ = b.editable(p, s), k = b.visible(p, s);
|
|
2390
2390
|
return b.disabled = k && !_, _ || k;
|
|
2391
2391
|
}));
|
|
2392
2392
|
function A(b) {
|
|
2393
|
-
return typeof b == "object" ? b : typeof b == "function" ? b(
|
|
2393
|
+
return typeof b == "object" ? b : typeof b == "function" ? b(p) : [];
|
|
2394
2394
|
}
|
|
2395
2395
|
function y(b) {
|
|
2396
|
-
r.value = !0, o("submit", b,
|
|
2396
|
+
r.value = !0, o("submit", b, p, () => {
|
|
2397
2397
|
r.value = !1;
|
|
2398
2398
|
});
|
|
2399
2399
|
}
|
|
@@ -2402,7 +2402,7 @@ const wa = {
|
|
|
2402
2402
|
var K, M;
|
|
2403
2403
|
if (!b)
|
|
2404
2404
|
return console.log("error submit!", _), !1;
|
|
2405
|
-
const k = (K = a.config.fields.find((Y) => ["images", "attachments", "attachment"].includes(Y.type))) == null ? void 0 : K.code, R = { ...
|
|
2405
|
+
const k = (K = a.config.fields.find((Y) => ["images", "attachments", "attachment"].includes(Y.type))) == null ? void 0 : K.code, R = { ...p };
|
|
2406
2406
|
if (k && (R[k] = (M = R[k]) == null ? void 0 : M.map((Y) => Y.id)), a.config.submitConfirm) {
|
|
2407
2407
|
await a.config.submitConfirm(R) && y(R);
|
|
2408
2408
|
return;
|
|
@@ -2411,11 +2411,11 @@ const wa = {
|
|
|
2411
2411
|
});
|
|
2412
2412
|
}
|
|
2413
2413
|
function g() {
|
|
2414
|
-
o("remove",
|
|
2414
|
+
o("remove", p);
|
|
2415
2415
|
}
|
|
2416
2416
|
function $() {
|
|
2417
2417
|
if (a.config.removeConfirm) {
|
|
2418
|
-
a.config.removeConfirm(
|
|
2418
|
+
a.config.removeConfirm(p, g);
|
|
2419
2419
|
return;
|
|
2420
2420
|
}
|
|
2421
2421
|
is.confirm("确定要删除该条数据吗?", "提示", {
|
|
@@ -2434,10 +2434,10 @@ const wa = {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
function l() {
|
|
2436
2436
|
const b = a.config.showSubmit;
|
|
2437
|
-
return typeof b == "boolean" ? b : typeof b == "function" ? b(s,
|
|
2437
|
+
return typeof b == "boolean" ? b : typeof b == "function" ? b(s, p) : !0;
|
|
2438
2438
|
}
|
|
2439
2439
|
return j(
|
|
2440
|
-
() => ({ ...
|
|
2440
|
+
() => ({ ...p }),
|
|
2441
2441
|
(b, _) => {
|
|
2442
2442
|
const R = Object.keys(b).filter((M) => _[M] !== b[M]).map((M) => {
|
|
2443
2443
|
var Y;
|
|
@@ -2447,15 +2447,15 @@ const wa = {
|
|
|
2447
2447
|
oldValue: _[M]
|
|
2448
2448
|
};
|
|
2449
2449
|
});
|
|
2450
|
-
|
|
2451
|
-
M.formChange && M.formChange(
|
|
2450
|
+
w.value.filter((M) => !M.disabled).forEach((M) => {
|
|
2451
|
+
M.formChange && M.formChange(p, R);
|
|
2452
2452
|
});
|
|
2453
2453
|
}
|
|
2454
2454
|
), j(
|
|
2455
2455
|
() => a.data,
|
|
2456
2456
|
(b) => {
|
|
2457
2457
|
Object.keys(b).forEach((_) => {
|
|
2458
|
-
|
|
2458
|
+
p[_] = b[_];
|
|
2459
2459
|
});
|
|
2460
2460
|
},
|
|
2461
2461
|
{ immediate: !0 }
|
|
@@ -2463,33 +2463,33 @@ const wa = {
|
|
|
2463
2463
|
id: "form",
|
|
2464
2464
|
ref_key: "formRef",
|
|
2465
2465
|
ref: h,
|
|
2466
|
-
model:
|
|
2466
|
+
model: p,
|
|
2467
2467
|
"label-width": "100px",
|
|
2468
2468
|
"label-position": "top",
|
|
2469
|
-
rules: f(
|
|
2469
|
+
rules: f(d)
|
|
2470
2470
|
}, {
|
|
2471
|
-
default:
|
|
2471
|
+
default: E(() => [
|
|
2472
2472
|
x(wa, {
|
|
2473
2473
|
layout: f(i),
|
|
2474
|
-
fields:
|
|
2474
|
+
fields: w.value
|
|
2475
2475
|
}, {
|
|
2476
|
-
default:
|
|
2476
|
+
default: E(({ field: k }) => [
|
|
2477
2477
|
(c(), S(f(ot), {
|
|
2478
2478
|
key: k.code,
|
|
2479
2479
|
label: k.label,
|
|
2480
2480
|
prop: k.code
|
|
2481
2481
|
}, {
|
|
2482
|
-
default:
|
|
2482
|
+
default: E(() => [
|
|
2483
2483
|
C("div", Ea, [
|
|
2484
2484
|
k != null && k.editor ? (c(), S(X(k.editor), {
|
|
2485
2485
|
key: 0,
|
|
2486
|
-
modelValue:
|
|
2487
|
-
"onUpdate:modelValue": (R) =>
|
|
2486
|
+
modelValue: p[k.code],
|
|
2487
|
+
"onUpdate:modelValue": (R) => p[k.code] = R,
|
|
2488
2488
|
field: k,
|
|
2489
2489
|
disabled: k.disabled,
|
|
2490
|
-
"form-data":
|
|
2490
|
+
"form-data": p,
|
|
2491
2491
|
"domain-config": a.config,
|
|
2492
|
-
row:
|
|
2492
|
+
row: p
|
|
2493
2493
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (c(), S(f(rs), {
|
|
2494
2494
|
key: 1,
|
|
2495
2495
|
title: `未找到 ${k.code}(${k.type}) 的编辑器`,
|
|
@@ -2505,13 +2505,13 @@ const wa = {
|
|
|
2505
2505
|
_: 1
|
|
2506
2506
|
}, 8, ["layout", "fields"]),
|
|
2507
2507
|
C("div", $a, [
|
|
2508
|
-
|
|
2508
|
+
p.id && !p.deletedAt && a.removable ? (c(), S(f(ne), {
|
|
2509
2509
|
key: 0,
|
|
2510
2510
|
size: "default",
|
|
2511
2511
|
type: "danger",
|
|
2512
2512
|
onClick: $
|
|
2513
2513
|
}, {
|
|
2514
|
-
default:
|
|
2514
|
+
default: E(() => [
|
|
2515
2515
|
N(" 删除 ")
|
|
2516
2516
|
]),
|
|
2517
2517
|
_: 1
|
|
@@ -2523,7 +2523,7 @@ const wa = {
|
|
|
2523
2523
|
loading: r.value,
|
|
2524
2524
|
onClick: m
|
|
2525
2525
|
}, {
|
|
2526
|
-
default:
|
|
2526
|
+
default: E(() => [
|
|
2527
2527
|
N(" 提交 ")
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 1
|
|
@@ -2561,7 +2561,7 @@ const Se = {
|
|
|
2561
2561
|
},
|
|
2562
2562
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2563
2563
|
setup(t, { emit: e }) {
|
|
2564
|
-
const n = U(), s = Q(n), o = e, r = t, a = D(r.data), i = I(() => ({ ...a.value, idempotentToken: h.value })),
|
|
2564
|
+
const n = U(), s = Q(n), o = e, r = t, a = D(r.data), i = I(() => ({ ...a.value, idempotentToken: h.value })), p = I(() => r.config.fields.filter((m) => m.visible(i, s)).length >= 6 ? "60%" : "40%"), h = D(""), d = I({
|
|
2565
2565
|
get() {
|
|
2566
2566
|
return r.modelValue;
|
|
2567
2567
|
},
|
|
@@ -2569,7 +2569,7 @@ const Se = {
|
|
|
2569
2569
|
o("update:modelValue", y);
|
|
2570
2570
|
}
|
|
2571
2571
|
}), u = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
|
|
2572
|
-
function
|
|
2572
|
+
function w(y, m, g) {
|
|
2573
2573
|
a.value = m, o("submit", y, async () => {
|
|
2574
2574
|
h.value = await Se.getValue(), g();
|
|
2575
2575
|
});
|
|
@@ -2580,15 +2580,15 @@ const Se = {
|
|
|
2580
2580
|
});
|
|
2581
2581
|
}
|
|
2582
2582
|
return j(
|
|
2583
|
-
() =>
|
|
2583
|
+
() => d,
|
|
2584
2584
|
async () => {
|
|
2585
2585
|
h.value = await Se.getValue();
|
|
2586
2586
|
},
|
|
2587
2587
|
{ immediate: !0 }
|
|
2588
2588
|
), (y, m) => (c(), S(f(ls), {
|
|
2589
|
-
modelValue:
|
|
2590
|
-
"onUpdate:modelValue": m[0] || (m[0] = (g) =>
|
|
2591
|
-
width:
|
|
2589
|
+
modelValue: d.value,
|
|
2590
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => d.value = g),
|
|
2591
|
+
width: p.value,
|
|
2592
2592
|
top: "20px",
|
|
2593
2593
|
title: u.value,
|
|
2594
2594
|
"close-on-click-modal": !1,
|
|
@@ -2596,12 +2596,12 @@ const Se = {
|
|
|
2596
2596
|
"destroy-on-close": "",
|
|
2597
2597
|
"z-index": 2e3
|
|
2598
2598
|
}, {
|
|
2599
|
-
default:
|
|
2599
|
+
default: E(() => [
|
|
2600
2600
|
x(xa, {
|
|
2601
2601
|
config: r.config,
|
|
2602
2602
|
data: i.value,
|
|
2603
2603
|
removable: r.removable,
|
|
2604
|
-
onSubmit:
|
|
2604
|
+
onSubmit: w,
|
|
2605
2605
|
onRemove: A
|
|
2606
2606
|
}, null, 8, ["config", "data", "removable"])
|
|
2607
2607
|
]),
|
|
@@ -2644,13 +2644,13 @@ const Se = {
|
|
|
2644
2644
|
code: e.code,
|
|
2645
2645
|
fields: e.fields
|
|
2646
2646
|
});
|
|
2647
|
-
Promise.all(i.fields).then((
|
|
2648
|
-
i.fields =
|
|
2647
|
+
Promise.all(i.fields).then((d) => {
|
|
2648
|
+
i.fields = d, i.restRepeat = e.restRepeat, i.rest = e.rest, o.value = i;
|
|
2649
2649
|
});
|
|
2650
|
-
async function
|
|
2651
|
-
const
|
|
2652
|
-
if (
|
|
2653
|
-
const { data: u } = await
|
|
2650
|
+
async function p() {
|
|
2651
|
+
const d = e.rest;
|
|
2652
|
+
if (d != null && d.getOne) {
|
|
2653
|
+
const { data: u } = await d.getOne({
|
|
2654
2654
|
...e.row,
|
|
2655
2655
|
...a
|
|
2656
2656
|
});
|
|
@@ -2658,8 +2658,8 @@ const Se = {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
s.value = !0;
|
|
2660
2660
|
}
|
|
2661
|
-
function h(
|
|
2662
|
-
e.onSubmit(
|
|
2661
|
+
function h(d, u) {
|
|
2662
|
+
e.onSubmit(d).then(() => {
|
|
2663
2663
|
s.value = !1, ke({
|
|
2664
2664
|
showClose: !0,
|
|
2665
2665
|
grouping: !0,
|
|
@@ -2670,16 +2670,16 @@ const Se = {
|
|
|
2670
2670
|
console.log("请求失败"), u();
|
|
2671
2671
|
});
|
|
2672
2672
|
}
|
|
2673
|
-
return (
|
|
2673
|
+
return (d, u) => (c(), S(f(ne), {
|
|
2674
2674
|
type: e.type,
|
|
2675
|
-
onClick:
|
|
2675
|
+
onClick: p
|
|
2676
2676
|
}, {
|
|
2677
|
-
default:
|
|
2677
|
+
default: E(() => [
|
|
2678
2678
|
N(B(e.text) + " ", 1),
|
|
2679
2679
|
s.value ? (c(), S(St, {
|
|
2680
2680
|
key: 0,
|
|
2681
2681
|
modelValue: s.value,
|
|
2682
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2682
|
+
"onUpdate:modelValue": u[0] || (u[0] = (w) => s.value = w),
|
|
2683
2683
|
title: e.text,
|
|
2684
2684
|
config: o.value,
|
|
2685
2685
|
data: n.value,
|
|
@@ -2715,19 +2715,19 @@ const Se = {
|
|
|
2715
2715
|
},
|
|
2716
2716
|
emits: ["update:modelValue"],
|
|
2717
2717
|
setup(t, { emit: e }) {
|
|
2718
|
-
const n = Zn(() => import("./ImagesUploader-
|
|
2719
|
-
function d
|
|
2720
|
-
|
|
2721
|
-
u >= 0 && (a.value.splice(u, 1), o("update:modelValue", a.value));
|
|
2718
|
+
const n = Zn(() => import("./ImagesUploader-BaNALrAL.js")), s = He().fileUploadUrl, o = e, r = t, a = Oe({ value: r.modelValue }), i = r.field.converter;
|
|
2719
|
+
function p(d) {
|
|
2720
|
+
let u = -1;
|
|
2721
|
+
d.id && (u = a.value.findIndex((w) => w.id === d.id)), d.url && (u = a.value.findIndex((w) => w.url === d.url)), u >= 0 && (a.value.splice(u, 1), o("update:modelValue", a.value));
|
|
2722
2722
|
}
|
|
2723
|
-
function h(
|
|
2724
|
-
Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), oe.post(s,
|
|
2723
|
+
function h(d) {
|
|
2724
|
+
console.log(d), Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), oe.post(s, d).then((u) => {
|
|
2725
2725
|
Be.service().close(), ke({
|
|
2726
2726
|
message: "上传成功",
|
|
2727
2727
|
type: "success"
|
|
2728
2728
|
});
|
|
2729
|
-
const
|
|
2730
|
-
a.value = a.value ? [...a.value,
|
|
2729
|
+
const w = i(u.data);
|
|
2730
|
+
a.value = a.value ? [...a.value, w] : [w], o("update:modelValue", a.value);
|
|
2731
2731
|
}).catch(() => {
|
|
2732
2732
|
Be.service().close(), ke({
|
|
2733
2733
|
message: "上传失败",
|
|
@@ -2741,12 +2741,12 @@ const Se = {
|
|
|
2741
2741
|
a.value = r.modelValue;
|
|
2742
2742
|
},
|
|
2743
2743
|
{ immediate: !0 }
|
|
2744
|
-
), (
|
|
2744
|
+
), (d, u) => (c(), O("div", null, [
|
|
2745
2745
|
x(f(n), {
|
|
2746
2746
|
images: a.value,
|
|
2747
2747
|
props: r.field.props,
|
|
2748
2748
|
onOnUpload: h,
|
|
2749
|
-
onOnRemove:
|
|
2749
|
+
onOnRemove: p
|
|
2750
2750
|
}, null, 8, ["images", "props"])
|
|
2751
2751
|
]));
|
|
2752
2752
|
}
|
|
@@ -2844,38 +2844,38 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2844
2844
|
);
|
|
2845
2845
|
function a() {
|
|
2846
2846
|
if (s.value.length > 0)
|
|
2847
|
-
for (let
|
|
2848
|
-
const h = o.value[
|
|
2849
|
-
for (let
|
|
2850
|
-
const u = s.value[
|
|
2847
|
+
for (let p = 0; p < o.value.length; p++) {
|
|
2848
|
+
const h = o.value[p];
|
|
2849
|
+
for (let d = 0; d < s.value.length; d++) {
|
|
2850
|
+
const u = s.value[d];
|
|
2851
2851
|
h.field === u.field && (h.order = u.order);
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
2854
|
else
|
|
2855
|
-
for (let
|
|
2856
|
-
o.value[
|
|
2855
|
+
for (let p = 0; p < o.value.length; p++)
|
|
2856
|
+
o.value[p].order = "";
|
|
2857
2857
|
}
|
|
2858
|
-
function i(
|
|
2859
|
-
const
|
|
2860
|
-
h ? p
|
|
2858
|
+
function i(p, h) {
|
|
2859
|
+
const d = o.value;
|
|
2860
|
+
h ? d[p].order = h : d[p].order ? d[p].order === "ASC" ? d[p].order = "DESC" : d[p].order === "DESC" && (d[p].order = "") : d[p].order = "ASC", n(
|
|
2861
2861
|
"updateSorters",
|
|
2862
|
-
|
|
2862
|
+
d.filter((u) => u.order)
|
|
2863
2863
|
);
|
|
2864
2864
|
}
|
|
2865
|
-
return (
|
|
2866
|
-
(c(!0), O(P, null, q(o.value, (
|
|
2865
|
+
return (p, h) => (c(), O("div", Fa, [
|
|
2866
|
+
(c(!0), O(P, null, q(o.value, (d, u) => (c(), O("div", {
|
|
2867
2867
|
class: "sorters-item",
|
|
2868
|
-
onClick: (
|
|
2868
|
+
onClick: (w) => i(u, "")
|
|
2869
2869
|
}, [
|
|
2870
|
-
C("div", Pa, B(
|
|
2870
|
+
C("div", Pa, B(d.name), 1),
|
|
2871
2871
|
C("div", ja, [
|
|
2872
2872
|
C("i", {
|
|
2873
|
-
class: he(["sort-caret ascending",
|
|
2874
|
-
onClick: Tt((
|
|
2873
|
+
class: he(["sort-caret ascending", d.order === "ASC" ? "ascending-active" : ""]),
|
|
2874
|
+
onClick: Tt((w) => i(u, "ASC"), ["stop"])
|
|
2875
2875
|
}, null, 10, Ba),
|
|
2876
2876
|
C("i", {
|
|
2877
|
-
class: he(["sort-caret descending",
|
|
2878
|
-
onClick: Tt((
|
|
2877
|
+
class: he(["sort-caret descending", d.order === "DESC" ? "descending-active" : ""]),
|
|
2878
|
+
onClick: Tt((w) => i(u, "DESC"), ["stop"])
|
|
2879
2879
|
}, null, 10, Va)
|
|
2880
2880
|
])
|
|
2881
2881
|
], 8, La))), 256))
|
|
@@ -2905,43 +2905,43 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2905
2905
|
);
|
|
2906
2906
|
function r() {
|
|
2907
2907
|
s.value && s.value.length > 0 ? o.forEach((i) => {
|
|
2908
|
-
s.value.forEach((
|
|
2909
|
-
i.field ===
|
|
2908
|
+
s.value.forEach((p) => {
|
|
2909
|
+
i.field === p.field && (i.min = p.min ? Number(p.min) : null, i.max = p.max ? Number(p.max) : null);
|
|
2910
2910
|
});
|
|
2911
2911
|
}) : o.forEach((i) => {
|
|
2912
2912
|
i.min = null, i.max = null;
|
|
2913
2913
|
});
|
|
2914
2914
|
}
|
|
2915
|
-
function a(i,
|
|
2916
|
-
const
|
|
2917
|
-
|
|
2918
|
-
u.field ===
|
|
2915
|
+
function a(i, p, h) {
|
|
2916
|
+
const d = [...o];
|
|
2917
|
+
d.forEach((u) => {
|
|
2918
|
+
u.field === p && (u[h] = i);
|
|
2919
2919
|
}), n(
|
|
2920
2920
|
"updateRanges",
|
|
2921
|
-
|
|
2921
|
+
d.filter((u) => u.min || u.max)
|
|
2922
2922
|
);
|
|
2923
2923
|
}
|
|
2924
|
-
return r(), (i,
|
|
2924
|
+
return r(), (i, p) => (c(), O("div", Ma, [
|
|
2925
2925
|
(c(!0), O(P, null, q(o, (h) => (c(), O("div", Ua, [
|
|
2926
2926
|
C("div", za, B(h.name), 1),
|
|
2927
2927
|
C("div", Ha, [
|
|
2928
2928
|
x(f(Pt), {
|
|
2929
2929
|
modelValue: h.min,
|
|
2930
|
-
"onUpdate:modelValue": (
|
|
2930
|
+
"onUpdate:modelValue": (d) => h.min = d,
|
|
2931
2931
|
"controls-position": "right",
|
|
2932
2932
|
class: "input-box",
|
|
2933
|
-
onChange: (
|
|
2934
|
-
a(
|
|
2933
|
+
onChange: (d) => {
|
|
2934
|
+
a(d, h.field, "min");
|
|
2935
2935
|
}
|
|
2936
2936
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
|
|
2937
2937
|
x(f(Pt), {
|
|
2938
2938
|
modelValue: h.max,
|
|
2939
|
-
"onUpdate:modelValue": (
|
|
2939
|
+
"onUpdate:modelValue": (d) => h.max = d,
|
|
2940
2940
|
"controls-position": "right",
|
|
2941
2941
|
class: "input-box",
|
|
2942
2942
|
type: "number",
|
|
2943
|
-
onChange: (
|
|
2944
|
-
a(
|
|
2943
|
+
onChange: (d) => {
|
|
2944
|
+
a(d, h.field, "max");
|
|
2945
2945
|
}
|
|
2946
2946
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
2947
2947
|
])
|
|
@@ -2960,13 +2960,13 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2960
2960
|
label: "name",
|
|
2961
2961
|
children: "children",
|
|
2962
2962
|
value: "id"
|
|
2963
|
-
}, s = U(), o = Q(s), r = D([]), a = Oe({}), i = Oe({}),
|
|
2963
|
+
}, s = U(), o = Q(s), r = D([]), a = Oe({}), i = Oe({}), p = Pe(
|
|
2964
2964
|
e.settings.code,
|
|
2965
2965
|
s.path,
|
|
2966
2966
|
e.settings.filters,
|
|
2967
2967
|
e.settings.filterHook
|
|
2968
2968
|
)();
|
|
2969
|
-
|
|
2969
|
+
p.$subscribe((l, b) => {
|
|
2970
2970
|
b.filters.isDeleted !== a.isDeleted && (Object.keys(a).forEach((_) => {
|
|
2971
2971
|
a[_] = void 0;
|
|
2972
2972
|
}), a.isDeleted = b.filters.isDeleted);
|
|
@@ -2974,7 +2974,7 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2974
2974
|
function h(l) {
|
|
2975
2975
|
return typeof l == "boolean" ? l : typeof l == "function" ? l(o) : !0;
|
|
2976
2976
|
}
|
|
2977
|
-
async function
|
|
2977
|
+
async function d(l, b) {
|
|
2978
2978
|
var _;
|
|
2979
2979
|
if (typeof l.options == "function")
|
|
2980
2980
|
i[l.code] = await l.options(
|
|
@@ -3027,10 +3027,10 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3027
3027
|
function u(l) {
|
|
3028
3028
|
if (l.remote)
|
|
3029
3029
|
return (b) => {
|
|
3030
|
-
|
|
3030
|
+
d(l, b);
|
|
3031
3031
|
};
|
|
3032
3032
|
}
|
|
3033
|
-
function
|
|
3033
|
+
function w(l) {
|
|
3034
3034
|
a.sorters = l, g();
|
|
3035
3035
|
}
|
|
3036
3036
|
function A(l) {
|
|
@@ -3041,7 +3041,7 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3041
3041
|
a[l] = void 0;
|
|
3042
3042
|
}), r.value = Object.keys(e.settings.filters).filter((l) => h(e.settings.filters[l].visible)).map((l) => {
|
|
3043
3043
|
const b = { ...e.settings.filters[l], code: l };
|
|
3044
|
-
return a[l] = m(l), (b.type === "select" || b.type === "selectV2" || b.type === "tree" || b.type === "tree-select") &&
|
|
3044
|
+
return a[l] = m(l), (b.type === "select" || b.type === "selectV2" || b.type === "tree" || b.type === "tree-select") && d(b), {
|
|
3045
3045
|
...b,
|
|
3046
3046
|
dateType: b.dateType || "datetimerange",
|
|
3047
3047
|
format: b.format || "YYYY-MM-DD HH:mm:ss"
|
|
@@ -3049,16 +3049,16 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3049
3049
|
}).filter((l) => l.code !== "isDeleted");
|
|
3050
3050
|
}
|
|
3051
3051
|
function m(l) {
|
|
3052
|
-
const b = e.settings.filters[l], _ =
|
|
3052
|
+
const b = e.settings.filters[l], _ = p.validFilters[l];
|
|
3053
3053
|
return b.type === "boolean" && typeof _ != "boolean" ? b.value : _;
|
|
3054
3054
|
}
|
|
3055
3055
|
function g() {
|
|
3056
3056
|
let l = JSON.parse(JSON.stringify(a));
|
|
3057
3057
|
const b = e.settings.filterHook;
|
|
3058
|
-
b != null && b.preSubmit && (l = b.preSubmit(l, o)),
|
|
3058
|
+
b != null && b.preSubmit && (l = b.preSubmit(l, o)), p.change(l);
|
|
3059
3059
|
}
|
|
3060
3060
|
function $() {
|
|
3061
|
-
|
|
3061
|
+
p.$reset({}), y(), g();
|
|
3062
3062
|
}
|
|
3063
3063
|
return j(
|
|
3064
3064
|
() => e.settings,
|
|
@@ -3084,9 +3084,9 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3084
3084
|
inline: "",
|
|
3085
3085
|
class: "form-editor"
|
|
3086
3086
|
}, {
|
|
3087
|
-
default:
|
|
3087
|
+
default: E(() => [
|
|
3088
3088
|
(c(!0), O(P, null, q(r.value, (_) => (c(), S(f(ot), null, {
|
|
3089
|
-
default:
|
|
3089
|
+
default: E(() => [
|
|
3090
3090
|
_.type === "boolean" ? (c(), S(f(jt), {
|
|
3091
3091
|
key: 0,
|
|
3092
3092
|
modelValue: a[_.code],
|
|
@@ -3097,7 +3097,7 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3097
3097
|
"value-on-clear": null,
|
|
3098
3098
|
onChange: g
|
|
3099
3099
|
}, {
|
|
3100
|
-
default:
|
|
3100
|
+
default: E(() => [
|
|
3101
3101
|
x(f(Ke), {
|
|
3102
3102
|
value: !0,
|
|
3103
3103
|
label: `已${_.name}`
|
|
@@ -3127,7 +3127,7 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3127
3127
|
"value-on-clear": null,
|
|
3128
3128
|
onChange: g
|
|
3129
3129
|
}, {
|
|
3130
|
-
default:
|
|
3130
|
+
default: E(() => [
|
|
3131
3131
|
(c(!0), O(P, null, q(i[_.code], (k) => (c(), S(f(Ke), {
|
|
3132
3132
|
key: k.code,
|
|
3133
3133
|
label: k.name,
|
|
@@ -3152,7 +3152,7 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3152
3152
|
key: 3,
|
|
3153
3153
|
value: a[_.code],
|
|
3154
3154
|
sorters: _,
|
|
3155
|
-
onUpdateSorters:
|
|
3155
|
+
onUpdateSorters: w
|
|
3156
3156
|
}, null, 8, ["value", "sorters"])) : _.type === "range" ? (c(), S(Wa, {
|
|
3157
3157
|
key: 4,
|
|
3158
3158
|
value: a[_.code],
|
|
@@ -3220,18 +3220,18 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3220
3220
|
_: 2
|
|
3221
3221
|
}, 1024))), 256)),
|
|
3222
3222
|
r.value.length > 0 ? (c(), S(f(ot), { key: 0 }, {
|
|
3223
|
-
default:
|
|
3223
|
+
default: E(() => [
|
|
3224
3224
|
x(f(ne), {
|
|
3225
3225
|
type: "primary",
|
|
3226
3226
|
onClick: g
|
|
3227
3227
|
}, {
|
|
3228
|
-
default:
|
|
3228
|
+
default: E(() => [
|
|
3229
3229
|
N(" 查询 ")
|
|
3230
3230
|
]),
|
|
3231
3231
|
_: 1
|
|
3232
3232
|
}),
|
|
3233
3233
|
x(f(ne), { onClick: $ }, {
|
|
3234
|
-
default:
|
|
3234
|
+
default: E(() => [
|
|
3235
3235
|
N(" 重置 ")
|
|
3236
3236
|
]),
|
|
3237
3237
|
_: 1
|
|
@@ -3519,20 +3519,20 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3519
3519
|
s.path,
|
|
3520
3520
|
e.settings.filters,
|
|
3521
3521
|
e.settings.filterHook
|
|
3522
|
-
)(), a = Re(), i = I(() => r.validFilters.isDeleted || !1),
|
|
3522
|
+
)(), a = Re(), i = I(() => r.validFilters.isDeleted || !1), p = I(() => e.settings.displayMode.normalMode);
|
|
3523
3523
|
function h() {
|
|
3524
3524
|
r.$reset({ isDeleted: !i.value });
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3527
|
-
const
|
|
3526
|
+
function d() {
|
|
3527
|
+
const w = `table-view-${s.path}-${e.settings.code}`, A = localStorage.getItem(w) ? localStorage.getItem(w) : p.value;
|
|
3528
3528
|
o.change(A);
|
|
3529
3529
|
}
|
|
3530
|
-
function u(
|
|
3531
|
-
o.change(
|
|
3530
|
+
function u(w) {
|
|
3531
|
+
o.change(w);
|
|
3532
3532
|
const A = `table-view-${s.path}-${e.settings.code}`;
|
|
3533
3533
|
localStorage.setItem(A, o.mode);
|
|
3534
3534
|
}
|
|
3535
|
-
return dn(
|
|
3535
|
+
return dn(d), (w, A) => (c(), O(P, null, [
|
|
3536
3536
|
C("div", wr, [
|
|
3537
3537
|
C("div", Er, B(i.value ? `已删除的${f(n)}` : f(n)), 1),
|
|
3538
3538
|
C("div", $r, [
|
|
@@ -3540,14 +3540,14 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3540
3540
|
key: 0,
|
|
3541
3541
|
class: "button-groups"
|
|
3542
3542
|
}, {
|
|
3543
|
-
default:
|
|
3544
|
-
J(
|
|
3543
|
+
default: E(() => [
|
|
3544
|
+
J(w.$slots, "operations", {}, void 0, !0)
|
|
3545
3545
|
]),
|
|
3546
3546
|
_: 3
|
|
3547
3547
|
})) : L("", !0),
|
|
3548
3548
|
x(f(pe), { class: "button-groups" }, {
|
|
3549
|
-
default:
|
|
3550
|
-
J(
|
|
3549
|
+
default: E(() => [
|
|
3550
|
+
J(w.$slots, "tools", {}, void 0, !0)
|
|
3551
3551
|
]),
|
|
3552
3552
|
_: 3
|
|
3553
3553
|
}),
|
|
@@ -3555,17 +3555,17 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3555
3555
|
trigger: "click",
|
|
3556
3556
|
onCommand: u
|
|
3557
3557
|
}, {
|
|
3558
|
-
dropdown:
|
|
3558
|
+
dropdown: E(() => [
|
|
3559
3559
|
x(f(rt), null, {
|
|
3560
|
-
default:
|
|
3560
|
+
default: E(() => [
|
|
3561
3561
|
x(f(ue), { command: "list" }, {
|
|
3562
|
-
default:
|
|
3562
|
+
default: E(() => [
|
|
3563
3563
|
N(" 列表 ")
|
|
3564
3564
|
]),
|
|
3565
3565
|
_: 1
|
|
3566
3566
|
}),
|
|
3567
3567
|
x(f(ue), { command: "grid" }, {
|
|
3568
|
-
default:
|
|
3568
|
+
default: E(() => [
|
|
3569
3569
|
N(" 网格 ")
|
|
3570
3570
|
]),
|
|
3571
3571
|
_: 1
|
|
@@ -3574,17 +3574,17 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3574
3574
|
_: 1
|
|
3575
3575
|
})
|
|
3576
3576
|
]),
|
|
3577
|
-
default:
|
|
3577
|
+
default: E(() => [
|
|
3578
3578
|
x(f(ne), null, {
|
|
3579
|
-
default:
|
|
3579
|
+
default: E(() => [
|
|
3580
3580
|
x(f(G), null, {
|
|
3581
|
-
default:
|
|
3581
|
+
default: E(() => [
|
|
3582
3582
|
x(f(lr))
|
|
3583
3583
|
]),
|
|
3584
3584
|
_: 1
|
|
3585
3585
|
}),
|
|
3586
3586
|
x(f(G), { class: "el-icon--right" }, {
|
|
3587
|
-
default:
|
|
3587
|
+
default: E(() => [
|
|
3588
3588
|
x(f(Ka))
|
|
3589
3589
|
]),
|
|
3590
3590
|
_: 1
|
|
@@ -3599,14 +3599,14 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3599
3599
|
key: 1,
|
|
3600
3600
|
trigger: "click"
|
|
3601
3601
|
}, {
|
|
3602
|
-
dropdown:
|
|
3602
|
+
dropdown: E(() => [
|
|
3603
3603
|
x(f(rt), null, {
|
|
3604
|
-
default:
|
|
3604
|
+
default: E(() => [
|
|
3605
3605
|
x(f(ue), {
|
|
3606
3606
|
command: "deleted",
|
|
3607
3607
|
onClick: h
|
|
3608
3608
|
}, {
|
|
3609
|
-
default:
|
|
3609
|
+
default: E(() => [
|
|
3610
3610
|
C("div", null, B(i.value ? "未删除" : "已删除"), 1)
|
|
3611
3611
|
]),
|
|
3612
3612
|
_: 1
|
|
@@ -3615,11 +3615,11 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3615
3615
|
_: 1
|
|
3616
3616
|
})
|
|
3617
3617
|
]),
|
|
3618
|
-
default:
|
|
3618
|
+
default: E(() => [
|
|
3619
3619
|
x(f(ne), null, {
|
|
3620
|
-
default:
|
|
3620
|
+
default: E(() => [
|
|
3621
3621
|
x(f(G), null, {
|
|
3622
|
-
default:
|
|
3622
|
+
default: E(() => [
|
|
3623
3623
|
x(f(_r))
|
|
3624
3624
|
]),
|
|
3625
3625
|
_: 1
|
|
@@ -3661,18 +3661,18 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3661
3661
|
function i() {
|
|
3662
3662
|
return s.field.isRouter(s.row, Q(n));
|
|
3663
3663
|
}
|
|
3664
|
-
return (
|
|
3665
|
-
const
|
|
3664
|
+
return (p, h) => {
|
|
3665
|
+
const d = qe("RouterLink");
|
|
3666
3666
|
return c(), O("div", xr, [
|
|
3667
3667
|
r.value ? (c(), O("span", kr, [
|
|
3668
|
-
i() ? (c(), S(
|
|
3668
|
+
i() ? (c(), S(d, {
|
|
3669
3669
|
key: 0,
|
|
3670
3670
|
class: "bld-link mono-data",
|
|
3671
3671
|
to: a.value
|
|
3672
3672
|
}, {
|
|
3673
|
-
default:
|
|
3673
|
+
default: E(() => [
|
|
3674
3674
|
f(e).name ? (c(), O(P, { key: 0 }, [
|
|
3675
|
-
J(
|
|
3675
|
+
J(p.$slots, "name", {}, void 0, !0),
|
|
3676
3676
|
N("(#" + B(r.value) + ") ", 1)
|
|
3677
3677
|
], 64)) : (c(), O(P, { key: 1 }, [
|
|
3678
3678
|
N(" #" + B(r.value), 1)
|
|
@@ -3681,7 +3681,7 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3681
3681
|
_: 3
|
|
3682
3682
|
}, 8, ["to"])) : (c(), O("span", Ar, [
|
|
3683
3683
|
f(e).name ? (c(), O(P, { key: 0 }, [
|
|
3684
|
-
J(
|
|
3684
|
+
J(p.$slots, "name", {}, void 0, !0),
|
|
3685
3685
|
N("(" + B(r.value) + ") ", 1)
|
|
3686
3686
|
], 64)) : (c(), O(P, { key: 1 }, [
|
|
3687
3687
|
N(B(r.value), 1)
|
|
@@ -3744,30 +3744,30 @@ const Fr = {
|
|
|
3744
3744
|
},
|
|
3745
3745
|
setup(t) {
|
|
3746
3746
|
var y;
|
|
3747
|
-
const e = Ot(), n = ce(), s = U(), o = fe(), r = Q(s), a = t, i = D({}),
|
|
3747
|
+
const e = Ot(), n = ce(), s = U(), o = fe(), r = Q(s), a = t, i = D({}), p = D(!1), h = I(() => {
|
|
3748
3748
|
var m, g;
|
|
3749
3749
|
return a.row.deletedAt ? !1 : (m = a.operations) != null && m.updatable ? !0 : !!((g = a.operations) != null && g.removable);
|
|
3750
|
-
}),
|
|
3750
|
+
}), d = D((y = a.operations) == null ? void 0 : y.removable);
|
|
3751
3751
|
async function u() {
|
|
3752
3752
|
const m = a.settings.formHook, g = a.settings.btnVisible, $ = a.settings.rest, { data: l } = await $.getOne({
|
|
3753
3753
|
...a.row,
|
|
3754
3754
|
...r
|
|
3755
3755
|
});
|
|
3756
|
-
i.value = l, m.setupUpdate && (i.value = m.setupUpdate(i.value, r)), g.showRemove && (
|
|
3756
|
+
i.value = l, m.setupUpdate && (i.value = m.setupUpdate(i.value, r)), g.showRemove && (d.value = g.showRemove(i.value)), p.value = !0;
|
|
3757
3757
|
}
|
|
3758
|
-
function
|
|
3758
|
+
function w(m, g) {
|
|
3759
3759
|
const $ = a.settings.formHook, l = a.settings.rest;
|
|
3760
3760
|
Object.keys(r).forEach((b) => {
|
|
3761
3761
|
m[b] = r[b];
|
|
3762
3762
|
}), $ != null && $.preUpdateSubmit && (m = $.preUpdateSubmit(m)), l.update(m).then(() => {
|
|
3763
|
-
|
|
3763
|
+
p.value = !1, n.fireUpdated();
|
|
3764
3764
|
}).catch(async () => {
|
|
3765
3765
|
g();
|
|
3766
3766
|
});
|
|
3767
3767
|
}
|
|
3768
3768
|
function A(m, g) {
|
|
3769
3769
|
a.settings.rest.remove(m).then(() => {
|
|
3770
|
-
Fr.show({ type: "success", message: "删除成功" }),
|
|
3770
|
+
Fr.show({ type: "success", message: "删除成功" }), p.value = !1, a.isDetail && e.history.forEach((l) => {
|
|
3771
3771
|
s.fullPath.includes(l.path) && (e.remove(l.code), o.back());
|
|
3772
3772
|
}), n.fireRemoved();
|
|
3773
3773
|
}).catch(() => {
|
|
@@ -3779,16 +3779,16 @@ const Fr = {
|
|
|
3779
3779
|
type: "primary",
|
|
3780
3780
|
onClick: u
|
|
3781
3781
|
}, {
|
|
3782
|
-
default:
|
|
3782
|
+
default: E(() => [
|
|
3783
3783
|
N(" 编辑 "),
|
|
3784
|
-
|
|
3784
|
+
p.value ? (c(), S(St, {
|
|
3785
3785
|
key: 0,
|
|
3786
|
-
modelValue:
|
|
3787
|
-
"onUpdate:modelValue": g[0] || (g[0] = ($) =>
|
|
3786
|
+
modelValue: p.value,
|
|
3787
|
+
"onUpdate:modelValue": g[0] || (g[0] = ($) => p.value = $),
|
|
3788
3788
|
config: a.settings,
|
|
3789
3789
|
data: i.value,
|
|
3790
|
-
removable:
|
|
3791
|
-
onSubmit:
|
|
3790
|
+
removable: d.value,
|
|
3791
|
+
onSubmit: w,
|
|
3792
3792
|
onRemove: A
|
|
3793
3793
|
}, null, 8, ["modelValue", "config", "data", "removable"])) : L("", !0)
|
|
3794
3794
|
]),
|
|
@@ -3822,21 +3822,21 @@ const Fr = {
|
|
|
3822
3822
|
e.path,
|
|
3823
3823
|
o.settings.filters,
|
|
3824
3824
|
o.settings.filterHook
|
|
3825
|
-
)(), { filters: a } = ge(r), i = D(a.value),
|
|
3825
|
+
)(), { filters: a } = ge(r), i = D(a.value), p = te([]), h = te(null), d = D(!1);
|
|
3826
3826
|
async function u() {
|
|
3827
3827
|
return await o.settings.showEdit(n, "grid");
|
|
3828
3828
|
}
|
|
3829
3829
|
gt(() => {
|
|
3830
3830
|
u().then(($) => {
|
|
3831
|
-
|
|
3831
|
+
d.value = $;
|
|
3832
3832
|
});
|
|
3833
3833
|
});
|
|
3834
|
-
const
|
|
3834
|
+
const w = I(() => {
|
|
3835
3835
|
var $, l;
|
|
3836
|
-
return !!(($ = o.operations) != null && $.updatable &&
|
|
3836
|
+
return !!(($ = o.operations) != null && $.updatable && d || (l = o.operations) != null && l.removable && d);
|
|
3837
3837
|
}), A = I(() => o.settings.displayMode.gridWidth), y = I(() => o.settings.displayMode.heightAuto);
|
|
3838
3838
|
function m() {
|
|
3839
|
-
h.value = o.settings.fields.find(($) => $.code === "id"),
|
|
3839
|
+
h.value = o.settings.fields.find(($) => $.code === "id"), p.value = o.settings.fields.filter(($) => $.code === o.settings.coverField || $.code === o.settings.nameField || $.code === "id" ? !1 : $.showInList(n, i.value));
|
|
3840
3840
|
}
|
|
3841
3841
|
function g($) {
|
|
3842
3842
|
return o.settings.nameField ? $[o.settings.nameField] : $.name ? $.name : `${$.id}`;
|
|
@@ -3851,7 +3851,7 @@ const Fr = {
|
|
|
3851
3851
|
key: 1,
|
|
3852
3852
|
gutter: 20
|
|
3853
3853
|
}, {
|
|
3854
|
-
default:
|
|
3854
|
+
default: E(() => [
|
|
3855
3855
|
(c(!0), O(P, null, q(t.data, (b) => (c(), S(f($e), {
|
|
3856
3856
|
style: { "margin-bottom": "20px" },
|
|
3857
3857
|
span: A.value ? A.value : 24,
|
|
@@ -3861,12 +3861,12 @@ const Fr = {
|
|
|
3861
3861
|
lg: A.value ? {} : 6,
|
|
3862
3862
|
xl: A.value ? {} : 4
|
|
3863
3863
|
}, {
|
|
3864
|
-
default:
|
|
3864
|
+
default: E(() => [
|
|
3865
3865
|
x(f(mn), {
|
|
3866
3866
|
"body-style": { padding: "0px" },
|
|
3867
3867
|
shadow: "hover"
|
|
3868
3868
|
}, {
|
|
3869
|
-
default:
|
|
3869
|
+
default: E(() => [
|
|
3870
3870
|
f(s).cover || o.settings.coverField ? (c(), O("div", jr, [
|
|
3871
3871
|
f(s).cover ? J($.$slots, "cover", {
|
|
3872
3872
|
key: 0,
|
|
@@ -3876,7 +3876,7 @@ const Fr = {
|
|
|
3876
3876
|
src: b[o.settings.coverField],
|
|
3877
3877
|
fit: "contain"
|
|
3878
3878
|
}, {
|
|
3879
|
-
error:
|
|
3879
|
+
error: E(() => [
|
|
3880
3880
|
Br
|
|
3881
3881
|
]),
|
|
3882
3882
|
_: 2
|
|
@@ -3889,7 +3889,7 @@ const Fr = {
|
|
|
3889
3889
|
}, De({ _: 2 }, [
|
|
3890
3890
|
b[o.settings.nameField] ? {
|
|
3891
3891
|
name: "name",
|
|
3892
|
-
fn:
|
|
3892
|
+
fn: E(() => [
|
|
3893
3893
|
N(B(g(b)), 1)
|
|
3894
3894
|
]),
|
|
3895
3895
|
key: "0"
|
|
@@ -3901,7 +3901,7 @@ const Fr = {
|
|
|
3901
3901
|
}, [
|
|
3902
3902
|
f(s).body ? (c(), O("div", Nr, [
|
|
3903
3903
|
J($.$slots, "body", { row: b }, void 0, !0)
|
|
3904
|
-
])) : (c(!0), O(P, { key: 1 }, q(
|
|
3904
|
+
])) : (c(!0), O(P, { key: 1 }, q(p.value, (_) => (c(), O("div", {
|
|
3905
3905
|
key: _.code,
|
|
3906
3906
|
class: "field mono-data"
|
|
3907
3907
|
}, [
|
|
@@ -3915,21 +3915,21 @@ const Fr = {
|
|
|
3915
3915
|
])
|
|
3916
3916
|
]))), 128))
|
|
3917
3917
|
], 2),
|
|
3918
|
-
f(s).actions ||
|
|
3918
|
+
f(s).actions || w.value ? (c(), O("div", Ur, [
|
|
3919
3919
|
f(s).actions ? (c(), S(f(pe), {
|
|
3920
3920
|
key: 0,
|
|
3921
3921
|
size: "small"
|
|
3922
3922
|
}, {
|
|
3923
|
-
default:
|
|
3923
|
+
default: E(() => [
|
|
3924
3924
|
J($.$slots, "actions", { row: b }, void 0, !0)
|
|
3925
3925
|
]),
|
|
3926
3926
|
_: 2
|
|
3927
3927
|
}, 1024)) : L("", !0),
|
|
3928
|
-
|
|
3928
|
+
w.value ? (c(), S(f(pe), {
|
|
3929
3929
|
key: 1,
|
|
3930
3930
|
size: "small"
|
|
3931
3931
|
}, {
|
|
3932
|
-
default:
|
|
3932
|
+
default: E(() => [
|
|
3933
3933
|
x(xt, {
|
|
3934
3934
|
row: b,
|
|
3935
3935
|
settings: o.settings,
|
|
@@ -3988,12 +3988,12 @@ const Wr = {
|
|
|
3988
3988
|
n.path,
|
|
3989
3989
|
a.settings.filters,
|
|
3990
3990
|
a.settings.filterHook
|
|
3991
|
-
)(), { filters:
|
|
3992
|
-
async function
|
|
3991
|
+
)(), { filters: p } = ge(i), h = D(p.value), d = te([]), u = D(!1);
|
|
3992
|
+
async function w() {
|
|
3993
3993
|
return await a.settings.showEdit(s, "list");
|
|
3994
3994
|
}
|
|
3995
3995
|
gt(() => {
|
|
3996
|
-
|
|
3996
|
+
w().then((l) => {
|
|
3997
3997
|
u.value = l;
|
|
3998
3998
|
});
|
|
3999
3999
|
});
|
|
@@ -4008,7 +4008,7 @@ const Wr = {
|
|
|
4008
4008
|
o("enable-item", l);
|
|
4009
4009
|
}
|
|
4010
4010
|
function g() {
|
|
4011
|
-
|
|
4011
|
+
d.value = a.settings.fields.filter((l) => l.showInList(s, h.value));
|
|
4012
4012
|
}
|
|
4013
4013
|
function $(l) {
|
|
4014
4014
|
o("select-change", {
|
|
@@ -4021,7 +4021,7 @@ const Wr = {
|
|
|
4021
4021
|
() => {
|
|
4022
4022
|
a.data.length > 0 && qr(a.settings, a.data[0]);
|
|
4023
4023
|
}
|
|
4024
|
-
), j(
|
|
4024
|
+
), j(p, (l) => {
|
|
4025
4025
|
h.value = l, g();
|
|
4026
4026
|
}), (l, b) => (c(), S(f(fs), {
|
|
4027
4027
|
ref: "dataTable",
|
|
@@ -4033,12 +4033,12 @@ const Wr = {
|
|
|
4033
4033
|
onSelectionChange: $,
|
|
4034
4034
|
onSortChange: y
|
|
4035
4035
|
}, {
|
|
4036
|
-
default:
|
|
4036
|
+
default: E(() => [
|
|
4037
4037
|
x(f(je), {
|
|
4038
4038
|
type: "selection",
|
|
4039
4039
|
width: "40"
|
|
4040
4040
|
}),
|
|
4041
|
-
(c(!0), O(P, null, q(
|
|
4041
|
+
(c(!0), O(P, null, q(d.value, (_) => (c(), S(f(je), {
|
|
4042
4042
|
key: _.code,
|
|
4043
4043
|
label: _.label,
|
|
4044
4044
|
width: _.width,
|
|
@@ -4048,7 +4048,7 @@ const Wr = {
|
|
|
4048
4048
|
}, De({ _: 2 }, [
|
|
4049
4049
|
_.type === "switch" ? {
|
|
4050
4050
|
name: "default",
|
|
4051
|
-
fn:
|
|
4051
|
+
fn: E(({ row: k }) => [
|
|
4052
4052
|
(c(), S(X(_.display), {
|
|
4053
4053
|
field: _,
|
|
4054
4054
|
row: k,
|
|
@@ -4059,7 +4059,7 @@ const Wr = {
|
|
|
4059
4059
|
key: "0"
|
|
4060
4060
|
} : {
|
|
4061
4061
|
name: "default",
|
|
4062
|
-
fn:
|
|
4062
|
+
fn: E(({ row: k }) => [
|
|
4063
4063
|
(c(), S(X(_.display), {
|
|
4064
4064
|
key: k.updatedAt,
|
|
4065
4065
|
field: _,
|
|
@@ -4076,9 +4076,9 @@ const Wr = {
|
|
|
4076
4076
|
fixed: "right",
|
|
4077
4077
|
width: a.actionsWidth
|
|
4078
4078
|
}, {
|
|
4079
|
-
default:
|
|
4079
|
+
default: E(({ row: _ }) => [
|
|
4080
4080
|
x(f(pe), { size: "small" }, {
|
|
4081
|
-
default:
|
|
4081
|
+
default: E(() => [
|
|
4082
4082
|
J(l.$slots, "actions", { row: _ }, void 0, !0)
|
|
4083
4083
|
]),
|
|
4084
4084
|
_: 2
|
|
@@ -4092,9 +4092,9 @@ const Wr = {
|
|
|
4092
4092
|
label: "操作",
|
|
4093
4093
|
width: a.operationsWidth
|
|
4094
4094
|
}, {
|
|
4095
|
-
default:
|
|
4095
|
+
default: E(({ row: _ }) => [
|
|
4096
4096
|
x(f(pe), { size: "small" }, {
|
|
4097
|
-
default:
|
|
4097
|
+
default: E(() => [
|
|
4098
4098
|
x(xt, {
|
|
4099
4099
|
row: _,
|
|
4100
4100
|
settings: a.settings,
|
|
@@ -4135,11 +4135,11 @@ const Wr = {
|
|
|
4135
4135
|
}
|
|
4136
4136
|
return j(n, (i) => {
|
|
4137
4137
|
a(i);
|
|
4138
|
-
}), (i,
|
|
4139
|
-
q(f(s), (h,
|
|
4140
|
-
name:
|
|
4141
|
-
fn:
|
|
4142
|
-
J(i.$slots,
|
|
4138
|
+
}), (i, p) => (c(), S(X(r.value), Ft(Lt(o)), De({ _: 2 }, [
|
|
4139
|
+
q(f(s), (h, d) => ({
|
|
4140
|
+
name: d,
|
|
4141
|
+
fn: E((u) => [
|
|
4142
|
+
J(i.$slots, d, Ft(Lt(u || {})))
|
|
4143
4143
|
])
|
|
4144
4144
|
}))
|
|
4145
4145
|
]), 1040));
|
|
@@ -4158,44 +4158,44 @@ const Wr = {
|
|
|
4158
4158
|
},
|
|
4159
4159
|
setup(t) {
|
|
4160
4160
|
const e = ce(), n = U(), s = Q(n), o = t, r = D({}), a = D(!1), i = D(!1);
|
|
4161
|
-
async function
|
|
4161
|
+
async function p() {
|
|
4162
4162
|
var u;
|
|
4163
4163
|
return await ((u = o.operations) == null ? void 0 : u.creatable);
|
|
4164
4164
|
}
|
|
4165
4165
|
gt(() => {
|
|
4166
|
-
|
|
4166
|
+
p().then((u) => {
|
|
4167
4167
|
i.value = u;
|
|
4168
4168
|
});
|
|
4169
4169
|
});
|
|
4170
4170
|
async function h() {
|
|
4171
|
-
const u = o.settings.formHook,
|
|
4172
|
-
r.value =
|
|
4171
|
+
const u = o.settings.formHook, w = o.settings.fields.reduce((A, y) => (A[y.code] = y.default, A), {});
|
|
4172
|
+
r.value = w, u.setupCreate && (r.value = u.setupCreate(r.value, s)), a.value = !0;
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function d(u, w) {
|
|
4175
4175
|
const A = o.settings.formHook, y = o.settings.rest;
|
|
4176
4176
|
Object.keys(s).forEach((m) => {
|
|
4177
4177
|
u[m] = s[m];
|
|
4178
4178
|
}), A != null && A.preCreateSubmit && (u = A.preCreateSubmit(u)), y.create(u).then(() => {
|
|
4179
4179
|
a.value = !1, e.fireCreated();
|
|
4180
4180
|
}).catch(async () => {
|
|
4181
|
-
|
|
4181
|
+
w();
|
|
4182
4182
|
});
|
|
4183
4183
|
}
|
|
4184
|
-
return (u,
|
|
4184
|
+
return (u, w) => i.value ? (c(), S(f(ne), {
|
|
4185
4185
|
key: 0,
|
|
4186
4186
|
type: "success",
|
|
4187
4187
|
onClick: h
|
|
4188
4188
|
}, {
|
|
4189
|
-
default:
|
|
4189
|
+
default: E(() => [
|
|
4190
4190
|
N(" 添加 "),
|
|
4191
4191
|
a.value ? (c(), S(St, {
|
|
4192
4192
|
key: 0,
|
|
4193
4193
|
modelValue: a.value,
|
|
4194
|
-
"onUpdate:modelValue":
|
|
4194
|
+
"onUpdate:modelValue": w[0] || (w[0] = (A) => a.value = A),
|
|
4195
4195
|
config: o.settings,
|
|
4196
4196
|
data: r.value,
|
|
4197
4197
|
removable: !1,
|
|
4198
|
-
onSubmit:
|
|
4198
|
+
onSubmit: d
|
|
4199
4199
|
}, null, 8, ["modelValue", "config", "data"])) : L("", !0)
|
|
4200
4200
|
]),
|
|
4201
4201
|
_: 1
|
|
@@ -4220,24 +4220,24 @@ const Wr = {
|
|
|
4220
4220
|
setup(t) {
|
|
4221
4221
|
const e = fe(), n = ce(), s = t, o = te([]);
|
|
4222
4222
|
let r = "";
|
|
4223
|
-
async function a(
|
|
4224
|
-
if (r = Be.service({ fullscreen: !0 }),
|
|
4225
|
-
r.close(), i(
|
|
4223
|
+
async function a(p, h) {
|
|
4224
|
+
if (r = Be.service({ fullscreen: !0 }), p.path) {
|
|
4225
|
+
r.close(), i(p, h);
|
|
4226
4226
|
return;
|
|
4227
4227
|
}
|
|
4228
|
-
const
|
|
4228
|
+
const d = await Se.getValue();
|
|
4229
4229
|
try {
|
|
4230
|
-
await
|
|
4230
|
+
await p.action({
|
|
4231
4231
|
...h,
|
|
4232
4232
|
...s.query,
|
|
4233
|
-
idempotentToken:
|
|
4233
|
+
idempotentToken: d
|
|
4234
4234
|
}), r.close(), n.fireUpdated();
|
|
4235
4235
|
} catch {
|
|
4236
4236
|
r.close(), n.fireUpdated();
|
|
4237
4237
|
}
|
|
4238
4238
|
}
|
|
4239
|
-
function i(
|
|
4240
|
-
e.push(
|
|
4239
|
+
function i(p, h) {
|
|
4240
|
+
e.push(p.path(h, s.query));
|
|
4241
4241
|
}
|
|
4242
4242
|
return j(
|
|
4243
4243
|
() => s.row,
|
|
@@ -4245,18 +4245,18 @@ const Wr = {
|
|
|
4245
4245
|
o.value = s.settings.rowActions(s.query);
|
|
4246
4246
|
},
|
|
4247
4247
|
{ immediate: !0 }
|
|
4248
|
-
), (
|
|
4249
|
-
|
|
4250
|
-
|
|
4248
|
+
), (p, h) => (c(!0), O(P, null, q(o.value, (d) => (c(), O(P, null, [
|
|
4249
|
+
d.isVisible(s.row, s.query, s.mode) ? (c(), O(P, { key: 0 }, [
|
|
4250
|
+
d.component ? (c(), S(X(d.component), {
|
|
4251
4251
|
key: 0,
|
|
4252
4252
|
row: t.row
|
|
4253
4253
|
}, null, 8, ["row"])) : (c(), S(f(ne), {
|
|
4254
4254
|
key: 1,
|
|
4255
|
-
type:
|
|
4256
|
-
onClick: (u) => a(
|
|
4255
|
+
type: d.type ? d.type : "primary",
|
|
4256
|
+
onClick: (u) => a(d, s.row)
|
|
4257
4257
|
}, {
|
|
4258
|
-
default:
|
|
4259
|
-
N(B(
|
|
4258
|
+
default: E(() => [
|
|
4259
|
+
N(B(d.name), 1)
|
|
4260
4260
|
]),
|
|
4261
4261
|
_: 2
|
|
4262
4262
|
}, 1032, ["type", "onClick"]))
|
|
@@ -4281,21 +4281,21 @@ const Wr = {
|
|
|
4281
4281
|
},
|
|
4282
4282
|
setup(t) {
|
|
4283
4283
|
const e = ce(), n = t, s = n.query, o = D({}), r = te([]), a = I(() => {
|
|
4284
|
-
var
|
|
4285
|
-
return ((u = (
|
|
4284
|
+
var d, u;
|
|
4285
|
+
return ((u = (d = n.tableDataSelect) == null ? void 0 : d.data) == null ? void 0 : u.length) > 0;
|
|
4286
4286
|
});
|
|
4287
4287
|
D(!1), j(
|
|
4288
4288
|
() => n.filterForm,
|
|
4289
|
-
(
|
|
4290
|
-
o.value =
|
|
4289
|
+
(d) => {
|
|
4290
|
+
o.value = d;
|
|
4291
4291
|
}
|
|
4292
4292
|
);
|
|
4293
4293
|
const i = D(!1);
|
|
4294
|
-
async function d
|
|
4294
|
+
async function p(d) {
|
|
4295
4295
|
i.value = !0;
|
|
4296
4296
|
const u = await Se.getValue();
|
|
4297
4297
|
try {
|
|
4298
|
-
await
|
|
4298
|
+
await d.action({
|
|
4299
4299
|
...n.tableDataSelect,
|
|
4300
4300
|
filterForms: o.value,
|
|
4301
4301
|
query: s,
|
|
@@ -4305,8 +4305,8 @@ const Wr = {
|
|
|
4305
4305
|
i.value = !1, e.fireUpdated();
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
|
-
function h(
|
|
4309
|
-
return typeof h == "boolean" ?
|
|
4308
|
+
function h(d) {
|
|
4309
|
+
return typeof h == "boolean" ? d : typeof d == "function" ? d(o.value, s) : !0;
|
|
4310
4310
|
}
|
|
4311
4311
|
return j(
|
|
4312
4312
|
() => n.row,
|
|
@@ -4314,30 +4314,30 @@ const Wr = {
|
|
|
4314
4314
|
r.value = n.settings.pageActions(n.query);
|
|
4315
4315
|
},
|
|
4316
4316
|
{ immediate: !0 }
|
|
4317
|
-
), (
|
|
4318
|
-
h(
|
|
4319
|
-
|
|
4317
|
+
), (d, u) => (c(!0), O(P, null, q(r.value, (w) => (c(), O(P, null, [
|
|
4318
|
+
h(w.isVisible) ? (c(), O(P, { key: 0 }, [
|
|
4319
|
+
w.component ? (c(), S(X(w.component), {
|
|
4320
4320
|
key: 0,
|
|
4321
|
-
item:
|
|
4321
|
+
item: w,
|
|
4322
4322
|
settings: t.settings,
|
|
4323
4323
|
query: f(s),
|
|
4324
4324
|
"table-data-select": t.tableDataSelect,
|
|
4325
4325
|
"filter-form": t.filterForm
|
|
4326
|
-
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) :
|
|
4326
|
+
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : w.tooltip && w.tooltip.content ? (c(), S(f(yn), {
|
|
4327
4327
|
key: 1,
|
|
4328
|
-
effect:
|
|
4329
|
-
content:
|
|
4330
|
-
placement:
|
|
4328
|
+
effect: w.tooltip.effect || "dark",
|
|
4329
|
+
content: w.tooltip.content || "default tip",
|
|
4330
|
+
placement: w.tooltip.placement || "top-start"
|
|
4331
4331
|
}, {
|
|
4332
|
-
default:
|
|
4332
|
+
default: E(() => [
|
|
4333
4333
|
x(f(ne), {
|
|
4334
|
-
type:
|
|
4334
|
+
type: w.type,
|
|
4335
4335
|
loading: i.value,
|
|
4336
|
-
disabled: !
|
|
4337
|
-
onClick: (A) =>
|
|
4336
|
+
disabled: !w.enable && !a.value,
|
|
4337
|
+
onClick: (A) => p(w)
|
|
4338
4338
|
}, {
|
|
4339
|
-
default:
|
|
4340
|
-
N(B(
|
|
4339
|
+
default: E(() => [
|
|
4340
|
+
N(B(w.name), 1)
|
|
4341
4341
|
]),
|
|
4342
4342
|
_: 2
|
|
4343
4343
|
}, 1032, ["type", "loading", "disabled", "onClick"])
|
|
@@ -4345,13 +4345,13 @@ const Wr = {
|
|
|
4345
4345
|
_: 2
|
|
4346
4346
|
}, 1032, ["effect", "content", "placement"])) : (c(), S(f(ne), {
|
|
4347
4347
|
key: 2,
|
|
4348
|
-
type:
|
|
4348
|
+
type: w.type,
|
|
4349
4349
|
loading: i.value,
|
|
4350
|
-
disabled: !
|
|
4351
|
-
onClick: (A) =>
|
|
4350
|
+
disabled: !w.enable && !a.value,
|
|
4351
|
+
onClick: (A) => p(w)
|
|
4352
4352
|
}, {
|
|
4353
|
-
default:
|
|
4354
|
-
N(B(
|
|
4353
|
+
default: E(() => [
|
|
4354
|
+
N(B(w.name), 1)
|
|
4355
4355
|
]),
|
|
4356
4356
|
_: 2
|
|
4357
4357
|
}, 1032, ["type", "loading", "disabled", "onClick"]))
|
|
@@ -4379,11 +4379,11 @@ const Wr = {
|
|
|
4379
4379
|
},
|
|
4380
4380
|
emits: ["page-change"],
|
|
4381
4381
|
setup(t, { emit: e }) {
|
|
4382
|
-
const n = e, s = fe(), o = U(), r = t, a = D(r.page), i = D(r.size),
|
|
4382
|
+
const n = e, s = fe(), o = U(), r = t, a = D(r.page), i = D(r.size), p = D(r.total), h = D(r.pageSizes);
|
|
4383
4383
|
j(
|
|
4384
4384
|
() => r.total,
|
|
4385
|
-
(
|
|
4386
|
-
|
|
4385
|
+
(w) => {
|
|
4386
|
+
p.value = w;
|
|
4387
4387
|
}
|
|
4388
4388
|
), j(
|
|
4389
4389
|
() => [o.query.page, o.query.pageSize],
|
|
@@ -4391,8 +4391,8 @@ const Wr = {
|
|
|
4391
4391
|
!o.query.page || !o.query.pageSize ? (a.value = 1, i.value = 30) : (a.value = parseInt(o.query.page), i.value = parseInt(o.query.pageSize)), n("page-change", { page: a.value, size: i.value });
|
|
4392
4392
|
}
|
|
4393
4393
|
);
|
|
4394
|
-
function
|
|
4395
|
-
a.value =
|
|
4394
|
+
function d(w) {
|
|
4395
|
+
a.value = w, s.push({
|
|
4396
4396
|
path: o.path,
|
|
4397
4397
|
query: {
|
|
4398
4398
|
...o.query,
|
|
@@ -4401,8 +4401,8 @@ const Wr = {
|
|
|
4401
4401
|
}
|
|
4402
4402
|
});
|
|
4403
4403
|
}
|
|
4404
|
-
function u(
|
|
4405
|
-
i.value =
|
|
4404
|
+
function u(w) {
|
|
4405
|
+
i.value = w, s.push({
|
|
4406
4406
|
path: o.path,
|
|
4407
4407
|
query: {
|
|
4408
4408
|
...o.query,
|
|
@@ -4411,15 +4411,15 @@ const Wr = {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
});
|
|
4413
4413
|
}
|
|
4414
|
-
return (
|
|
4414
|
+
return (w, A) => (c(), O("div", Gr, [
|
|
4415
4415
|
x(f(ms), {
|
|
4416
4416
|
background: "",
|
|
4417
4417
|
"page-size": i.value,
|
|
4418
4418
|
"page-sizes": h.value,
|
|
4419
|
-
total:
|
|
4419
|
+
total: p.value,
|
|
4420
4420
|
"current-page": t.page,
|
|
4421
4421
|
layout: "total,sizes, prev, pager, next",
|
|
4422
|
-
onCurrentChange:
|
|
4422
|
+
onCurrentChange: d,
|
|
4423
4423
|
onSizeChange: u
|
|
4424
4424
|
}, null, 8, ["page-size", "page-sizes", "total", "current-page"])
|
|
4425
4425
|
]));
|
|
@@ -4464,16 +4464,16 @@ var an = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ii
|
|
|
4464
4464
|
function rn(t, e, n = {}) {
|
|
4465
4465
|
const s = n, { window: o = oi } = s, r = li(s, ["window"]);
|
|
4466
4466
|
let a;
|
|
4467
|
-
const i = ai(() => o && "ResizeObserver" in o),
|
|
4467
|
+
const i = ai(() => o && "ResizeObserver" in o), p = () => {
|
|
4468
4468
|
a && (a.disconnect(), a = void 0);
|
|
4469
4469
|
}, h = j(() => si(t), (u) => {
|
|
4470
|
-
|
|
4471
|
-
}, { immediate: !0, flush: "post" }),
|
|
4472
|
-
|
|
4470
|
+
p(), i.value && o && u && (a = new ResizeObserver(e), a.observe(u, r));
|
|
4471
|
+
}, { immediate: !0, flush: "post" }), d = () => {
|
|
4472
|
+
p(), h();
|
|
4473
4473
|
};
|
|
4474
|
-
return ti(
|
|
4474
|
+
return ti(d), {
|
|
4475
4475
|
isSupported: i,
|
|
4476
|
-
stop:
|
|
4476
|
+
stop: d
|
|
4477
4477
|
};
|
|
4478
4478
|
}
|
|
4479
4479
|
var ln;
|
|
@@ -4544,11 +4544,11 @@ const mi = {
|
|
|
4544
4544
|
j(r, (F) => {
|
|
4545
4545
|
l.value = F, M();
|
|
4546
4546
|
});
|
|
4547
|
-
const i = ce(), { created:
|
|
4548
|
-
j([
|
|
4547
|
+
const i = ce(), { created: p, updated: h, removed: d } = ge(i);
|
|
4548
|
+
j([p, h, d], ([F, z, se]) => {
|
|
4549
4549
|
(F || z || se) && M();
|
|
4550
4550
|
});
|
|
4551
|
-
const u = D(!0),
|
|
4551
|
+
const u = D(!0), w = D([]), A = D(0), y = D({}), m = D({}), g = D(null), $ = D(null), l = D({}), b = D(parseInt(e.query.pageSize) || 30), _ = D(parseInt(e.query.page) || 1), k = (Rt = s.hasMany) == null ? void 0 : Rt.tableContentHeight;
|
|
4552
4552
|
function R(F) {
|
|
4553
4553
|
let z = null;
|
|
4554
4554
|
if (F.order === "ascending" ? z = "ASC" : F.order === "descending" && (z = "DESC"), l.value.sorters) {
|
|
@@ -4576,7 +4576,7 @@ const mi = {
|
|
|
4576
4576
|
size: b.value
|
|
4577
4577
|
};
|
|
4578
4578
|
s.settings.rest.getList(z).then((se) => {
|
|
4579
|
-
y.value.data = [],
|
|
4579
|
+
y.value.data = [], w.value = se.data.rows, A.value = se.data.count, u.value = !1, A.value && w.value.length == 0 && M("again");
|
|
4580
4580
|
});
|
|
4581
4581
|
}
|
|
4582
4582
|
function Y(F) {
|
|
@@ -4626,7 +4626,7 @@ const mi = {
|
|
|
4626
4626
|
settings: s.settings,
|
|
4627
4627
|
"table-name": f(a)
|
|
4628
4628
|
}, {
|
|
4629
|
-
operations:
|
|
4629
|
+
operations: E(() => [
|
|
4630
4630
|
x(Yr, {
|
|
4631
4631
|
settings: s.settings,
|
|
4632
4632
|
"table-data-select": y.value,
|
|
@@ -4643,7 +4643,7 @@ const mi = {
|
|
|
4643
4643
|
], 512),
|
|
4644
4644
|
_e((c(), S(Qr, {
|
|
4645
4645
|
class: "data-table-box",
|
|
4646
|
-
data:
|
|
4646
|
+
data: w.value,
|
|
4647
4647
|
operations: m.value,
|
|
4648
4648
|
settings: s.settings,
|
|
4649
4649
|
"actions-width": s.settings.actionsWidth,
|
|
@@ -4653,7 +4653,7 @@ const mi = {
|
|
|
4653
4653
|
}, De({ _: 2 }, [
|
|
4654
4654
|
s.settings.rowActions(f(n)).length > 0 ? {
|
|
4655
4655
|
name: "actions",
|
|
4656
|
-
fn:
|
|
4656
|
+
fn: E(({ row: se }) => [
|
|
4657
4657
|
x(qn, {
|
|
4658
4658
|
mode: "list",
|
|
4659
4659
|
row: se,
|
|
@@ -4850,13 +4850,13 @@ const gi = {
|
|
|
4850
4850
|
content: n.value,
|
|
4851
4851
|
effect: "light"
|
|
4852
4852
|
}, {
|
|
4853
|
-
default:
|
|
4853
|
+
default: E(() => [
|
|
4854
4854
|
x(f(Bt), {
|
|
4855
4855
|
class: he(e.className),
|
|
4856
4856
|
type: e.textType,
|
|
4857
4857
|
"line-clamp": e.lineClamp
|
|
4858
4858
|
}, {
|
|
4859
|
-
default:
|
|
4859
|
+
default: E(() => [
|
|
4860
4860
|
N(B(n.value), 1)
|
|
4861
4861
|
]),
|
|
4862
4862
|
_: 1
|
|
@@ -4868,7 +4868,7 @@ const gi = {
|
|
|
4868
4868
|
type: e.textType,
|
|
4869
4869
|
class: he(e.className)
|
|
4870
4870
|
}, {
|
|
4871
|
-
default:
|
|
4871
|
+
default: E(() => [
|
|
4872
4872
|
N(B(n.value), 1)
|
|
4873
4873
|
]),
|
|
4874
4874
|
_: 1
|
|
@@ -4885,7 +4885,7 @@ const gi = {
|
|
|
4885
4885
|
setup(t) {
|
|
4886
4886
|
const e = fe(), n = U(), s = Ot(), o = D("首页"), r = t, a = n.fullPath.split("/")[1], i = A();
|
|
4887
4887
|
s.setupRootPath("首页", `/${a}/home`);
|
|
4888
|
-
function
|
|
4888
|
+
function p(y) {
|
|
4889
4889
|
var b, _;
|
|
4890
4890
|
const m = y.meta.side, g = y.params.domain;
|
|
4891
4891
|
let $ = (b = y.meta) == null ? void 0 : b.title, l = (_ = y.meta) == null ? void 0 : _.code;
|
|
@@ -4903,7 +4903,7 @@ const gi = {
|
|
|
4903
4903
|
const m = s.history.find((g) => g.code == y.props.name);
|
|
4904
4904
|
e.push(m.path);
|
|
4905
4905
|
}
|
|
4906
|
-
function
|
|
4906
|
+
function d(y) {
|
|
4907
4907
|
if (s.remove(y), y == o.value) {
|
|
4908
4908
|
const m = s.getLast();
|
|
4909
4909
|
o.value = m.title, e.push(m.path);
|
|
@@ -4913,7 +4913,7 @@ const gi = {
|
|
|
4913
4913
|
const g = s.history.length;
|
|
4914
4914
|
return y === 0 && m === "self" || y < 2 && m === "left" || y === g - 1 && m === "right" || g === 1 && m === "all" ? !1 : !(g < 2 && m === "other");
|
|
4915
4915
|
};
|
|
4916
|
-
function
|
|
4916
|
+
function w(y, m) {
|
|
4917
4917
|
const g = [], $ = s.history;
|
|
4918
4918
|
switch (m) {
|
|
4919
4919
|
case "self":
|
|
@@ -4937,7 +4937,7 @@ const gi = {
|
|
|
4937
4937
|
break;
|
|
4938
4938
|
}
|
|
4939
4939
|
for (let l = 0; l < g.length; l++)
|
|
4940
|
-
|
|
4940
|
+
d(g[l]);
|
|
4941
4941
|
}
|
|
4942
4942
|
function A() {
|
|
4943
4943
|
return r.config.sideMenus[a].map((y) => y.children ? y.children : y).flat();
|
|
@@ -4945,7 +4945,7 @@ const gi = {
|
|
|
4945
4945
|
return j(
|
|
4946
4946
|
() => e.currentRoute.value,
|
|
4947
4947
|
() => {
|
|
4948
|
-
|
|
4948
|
+
p(n);
|
|
4949
4949
|
},
|
|
4950
4950
|
{ immediate: !0 }
|
|
4951
4951
|
), (y, m) => (c(), O("div", yi, [
|
|
@@ -4966,26 +4966,26 @@ const gi = {
|
|
|
4966
4966
|
type: "card",
|
|
4967
4967
|
class: "tabs",
|
|
4968
4968
|
onTabClick: h,
|
|
4969
|
-
onTabRemove:
|
|
4969
|
+
onTabRemove: d
|
|
4970
4970
|
}, {
|
|
4971
|
-
default:
|
|
4971
|
+
default: E(() => [
|
|
4972
4972
|
(c(!0), O(P, null, q(f(s).history, (g, $) => (c(), S(f(vn), {
|
|
4973
4973
|
closable: g.title != "首页",
|
|
4974
4974
|
label: g.title,
|
|
4975
4975
|
name: g.code
|
|
4976
4976
|
}, {
|
|
4977
|
-
label:
|
|
4977
|
+
label: E(() => [
|
|
4978
4978
|
x(f(at), { trigger: "contextmenu" }, {
|
|
4979
|
-
dropdown:
|
|
4979
|
+
dropdown: E(() => [
|
|
4980
4980
|
x(f(rt), null, {
|
|
4981
|
-
default:
|
|
4981
|
+
default: E(() => [
|
|
4982
4982
|
u($, "self") ? (c(), S(f(ue), {
|
|
4983
4983
|
key: 0,
|
|
4984
|
-
onClick: (l) =>
|
|
4984
|
+
onClick: (l) => w($, "self")
|
|
4985
4985
|
}, {
|
|
4986
|
-
default:
|
|
4986
|
+
default: E(() => [
|
|
4987
4987
|
x(f(G), null, {
|
|
4988
|
-
default:
|
|
4988
|
+
default: E(() => [
|
|
4989
4989
|
x(f(er))
|
|
4990
4990
|
]),
|
|
4991
4991
|
_: 1
|
|
@@ -4996,11 +4996,11 @@ const gi = {
|
|
|
4996
4996
|
}, 1032, ["onClick"])) : L("", !0),
|
|
4997
4997
|
u($, "left") ? (c(), S(f(ue), {
|
|
4998
4998
|
key: 1,
|
|
4999
|
-
onClick: (l) =>
|
|
4999
|
+
onClick: (l) => w($, "left")
|
|
5000
5000
|
}, {
|
|
5001
|
-
default:
|
|
5001
|
+
default: E(() => [
|
|
5002
5002
|
x(f(G), null, {
|
|
5003
|
-
default:
|
|
5003
|
+
default: E(() => [
|
|
5004
5004
|
x(f(Xt))
|
|
5005
5005
|
]),
|
|
5006
5006
|
_: 1
|
|
@@ -5011,11 +5011,11 @@ const gi = {
|
|
|
5011
5011
|
}, 1032, ["onClick"])) : L("", !0),
|
|
5012
5012
|
u($, "right") ? (c(), S(f(ue), {
|
|
5013
5013
|
key: 2,
|
|
5014
|
-
onClick: (l) =>
|
|
5014
|
+
onClick: (l) => w($, "right")
|
|
5015
5015
|
}, {
|
|
5016
|
-
default:
|
|
5016
|
+
default: E(() => [
|
|
5017
5017
|
x(f(G), null, {
|
|
5018
|
-
default:
|
|
5018
|
+
default: E(() => [
|
|
5019
5019
|
x(f(sr))
|
|
5020
5020
|
]),
|
|
5021
5021
|
_: 1
|
|
@@ -5026,11 +5026,11 @@ const gi = {
|
|
|
5026
5026
|
}, 1032, ["onClick"])) : L("", !0),
|
|
5027
5027
|
u($, "all") ? (c(), S(f(ue), {
|
|
5028
5028
|
key: 3,
|
|
5029
|
-
onClick: (l) =>
|
|
5029
|
+
onClick: (l) => w($, "all")
|
|
5030
5030
|
}, {
|
|
5031
|
-
default:
|
|
5031
|
+
default: E(() => [
|
|
5032
5032
|
x(f(G), null, {
|
|
5033
|
-
default:
|
|
5033
|
+
default: E(() => [
|
|
5034
5034
|
x(f(dr))
|
|
5035
5035
|
]),
|
|
5036
5036
|
_: 1
|
|
@@ -5041,11 +5041,11 @@ const gi = {
|
|
|
5041
5041
|
}, 1032, ["onClick"])) : L("", !0),
|
|
5042
5042
|
u($, "other") ? (c(), S(f(ue), {
|
|
5043
5043
|
key: 4,
|
|
5044
|
-
onClick: (l) =>
|
|
5044
|
+
onClick: (l) => w($, "other")
|
|
5045
5045
|
}, {
|
|
5046
|
-
default:
|
|
5046
|
+
default: E(() => [
|
|
5047
5047
|
x(f(G), null, {
|
|
5048
|
-
default:
|
|
5048
|
+
default: E(() => [
|
|
5049
5049
|
x(f(fr))
|
|
5050
5050
|
]),
|
|
5051
5051
|
_: 1
|
|
@@ -5058,7 +5058,7 @@ const gi = {
|
|
|
5058
5058
|
_: 2
|
|
5059
5059
|
}, 1024)
|
|
5060
5060
|
]),
|
|
5061
|
-
default:
|
|
5061
|
+
default: E(() => [
|
|
5062
5062
|
x(gi, {
|
|
5063
5063
|
content: g.title,
|
|
5064
5064
|
"line-clamp": 1,
|
|
@@ -5079,7 +5079,7 @@ const gi = {
|
|
|
5079
5079
|
onClick: m[1] || (m[1] = (g) => f(e).back())
|
|
5080
5080
|
}, [
|
|
5081
5081
|
x(f(G), null, {
|
|
5082
|
-
default:
|
|
5082
|
+
default: E(() => [
|
|
5083
5083
|
x(f(Xt))
|
|
5084
5084
|
]),
|
|
5085
5085
|
_: 1
|
|
@@ -5111,21 +5111,21 @@ const gi = {
|
|
|
5111
5111
|
key: 0,
|
|
5112
5112
|
index: t.data.title
|
|
5113
5113
|
}, {
|
|
5114
|
-
title:
|
|
5114
|
+
title: E(() => [
|
|
5115
5115
|
t.data.icon ? (c(), S(f(G), { key: 0 }, {
|
|
5116
|
-
default:
|
|
5116
|
+
default: E(() => [
|
|
5117
5117
|
(c(), S(X(t.data.icon)))
|
|
5118
5118
|
]),
|
|
5119
5119
|
_: 1
|
|
5120
5120
|
})) : (c(), S(f(G), { key: 1 }, {
|
|
5121
|
-
default:
|
|
5121
|
+
default: E(() => [
|
|
5122
5122
|
x(f(Zt))
|
|
5123
5123
|
]),
|
|
5124
5124
|
_: 1
|
|
5125
5125
|
})),
|
|
5126
5126
|
C("span", null, B(t.data.title), 1)
|
|
5127
5127
|
]),
|
|
5128
|
-
default:
|
|
5128
|
+
default: E(() => [
|
|
5129
5129
|
(c(!0), O(P, null, q(t.data.children, (o) => (c(), S(Jn, {
|
|
5130
5130
|
data: o,
|
|
5131
5131
|
"has-parent": !0
|
|
@@ -5138,14 +5138,14 @@ const gi = {
|
|
|
5138
5138
|
route: t.data.route,
|
|
5139
5139
|
class: "menu-item"
|
|
5140
5140
|
}, {
|
|
5141
|
-
default:
|
|
5141
|
+
default: E(() => [
|
|
5142
5142
|
t.data.icon ? (c(), S(f(G), { key: 0 }, {
|
|
5143
|
-
default:
|
|
5143
|
+
default: E(() => [
|
|
5144
5144
|
(c(), S(X(t.data.icon)))
|
|
5145
5145
|
]),
|
|
5146
5146
|
_: 1
|
|
5147
5147
|
})) : e.hasParent ? (c(), O("span", Oi, ki)) : (c(), S(f(G), { key: 1 }, {
|
|
5148
|
-
default:
|
|
5148
|
+
default: E(() => [
|
|
5149
5149
|
x(f(Zt))
|
|
5150
5150
|
]),
|
|
5151
5151
|
_: 1
|
|
@@ -5169,20 +5169,20 @@ const gi = {
|
|
|
5169
5169
|
() => {
|
|
5170
5170
|
var i;
|
|
5171
5171
|
if ((i = n.meta) != null && i.side) {
|
|
5172
|
-
const
|
|
5173
|
-
n.params.id == "detail" ? s.value = `/${
|
|
5172
|
+
const p = n.meta.side;
|
|
5173
|
+
n.params.id == "detail" ? s.value = `/${p}/${n.params.domain}/detail` : s.value = `/${p}/${n.params.domain}/list`;
|
|
5174
5174
|
} else
|
|
5175
5175
|
s.value = n.fullPath;
|
|
5176
5176
|
},
|
|
5177
5177
|
{ immediate: !0 }
|
|
5178
|
-
), (i,
|
|
5179
|
-
default:
|
|
5178
|
+
), (i, p) => (c(), S(f(ys), null, {
|
|
5179
|
+
default: E(() => [
|
|
5180
5180
|
x(f(_s), {
|
|
5181
5181
|
class: "menu",
|
|
5182
5182
|
router: !0,
|
|
5183
5183
|
"default-active": s.value
|
|
5184
5184
|
}, {
|
|
5185
|
-
default:
|
|
5185
|
+
default: E(() => [
|
|
5186
5186
|
(c(!0), O(P, null, q(f(a), (h) => (c(), S(Jn, { data: h }, null, 8, ["data"]))), 256))
|
|
5187
5187
|
]),
|
|
5188
5188
|
_: 1
|
|
@@ -5204,13 +5204,13 @@ const gi = {
|
|
|
5204
5204
|
return (r, a) => {
|
|
5205
5205
|
const i = qe("router-view");
|
|
5206
5206
|
return c(), S(f(vs), { locale: f(hi) }, {
|
|
5207
|
-
default:
|
|
5207
|
+
default: E(() => [
|
|
5208
5208
|
x(f(Vt), { style: { height: "100%" } }, {
|
|
5209
|
-
default:
|
|
5209
|
+
default: E(() => [
|
|
5210
5210
|
x(f(bs), { class: "page-header" }, {
|
|
5211
|
-
default:
|
|
5211
|
+
default: E(() => [
|
|
5212
5212
|
x($i, { config: s }, {
|
|
5213
|
-
"user-profile":
|
|
5213
|
+
"user-profile": E(() => [
|
|
5214
5214
|
J(r.$slots, "user-profile", {}, void 0, !0)
|
|
5215
5215
|
]),
|
|
5216
5216
|
_: 3
|
|
@@ -5219,9 +5219,9 @@ const gi = {
|
|
|
5219
5219
|
_: 3
|
|
5220
5220
|
}),
|
|
5221
5221
|
x(f(Vt), { class: "page-content-container" }, {
|
|
5222
|
-
default:
|
|
5222
|
+
default: E(() => [
|
|
5223
5223
|
x(f(ws), { class: "page-content-aside" }, {
|
|
5224
|
-
default:
|
|
5224
|
+
default: E(() => [
|
|
5225
5225
|
x(Di, {
|
|
5226
5226
|
"side-menus": s.sideMenus
|
|
5227
5227
|
}, null, 8, ["side-menus"])
|
|
@@ -5229,7 +5229,7 @@ const gi = {
|
|
|
5229
5229
|
_: 1
|
|
5230
5230
|
}),
|
|
5231
5231
|
x(f(Es), { class: "page-content-main" }, {
|
|
5232
|
-
default:
|
|
5232
|
+
default: E(() => [
|
|
5233
5233
|
(c(), S(i, { key: o.value }))
|
|
5234
5234
|
]),
|
|
5235
5235
|
_: 1
|
|
@@ -5281,7 +5281,7 @@ const gi = {
|
|
|
5281
5281
|
},
|
|
5282
5282
|
emits: ["done"],
|
|
5283
5283
|
setup(t, { emit: e }) {
|
|
5284
|
-
const n = e, s = t, o = U(), r = Q(o), a = ce(), { updated: i } = ge(a),
|
|
5284
|
+
const n = e, s = t, o = U(), r = Q(o), a = ce(), { updated: i } = ge(a), p = D(null), h = [
|
|
5285
5285
|
"image",
|
|
5286
5286
|
"images",
|
|
5287
5287
|
"attachments",
|
|
@@ -5294,13 +5294,13 @@ const gi = {
|
|
|
5294
5294
|
"tree-select",
|
|
5295
5295
|
"radio-group",
|
|
5296
5296
|
"input-number"
|
|
5297
|
-
],
|
|
5297
|
+
], d = I(() => s.settings.fields.filter((g) => g.showInDetail(p.value, {
|
|
5298
5298
|
...r,
|
|
5299
5299
|
...s.query
|
|
5300
|
-
}))), u = I(() =>
|
|
5300
|
+
}))), u = I(() => d.value.find((g) => g.code === s.settings.coverField)), w = I(() => d.value.filter((g) => !h.includes(g.type) && !g.extendDetail)), A = I(() => {
|
|
5301
5301
|
var $;
|
|
5302
5302
|
const g = ($ = u.value) == null ? void 0 : $.code;
|
|
5303
|
-
return
|
|
5303
|
+
return d.value.filter((l) => h.includes(l.type) || l.extendDetail).filter((l) => l.code !== g);
|
|
5304
5304
|
}), y = I({
|
|
5305
5305
|
get() {
|
|
5306
5306
|
return A.value.map((g) => g.code);
|
|
@@ -5310,7 +5310,7 @@ const gi = {
|
|
|
5310
5310
|
});
|
|
5311
5311
|
function m() {
|
|
5312
5312
|
s.settings.rest.getOne(s.query).then((g) => {
|
|
5313
|
-
g.data.isDeleted = !!g.data.deletedAt,
|
|
5313
|
+
g.data.isDeleted = !!g.data.deletedAt, p.value = g.data, n("done", g.data);
|
|
5314
5314
|
});
|
|
5315
5315
|
}
|
|
5316
5316
|
return j(
|
|
@@ -5320,18 +5320,18 @@ const gi = {
|
|
|
5320
5320
|
},
|
|
5321
5321
|
{ immediate: !0 }
|
|
5322
5322
|
), (g, $) => (c(), O("div", null, [
|
|
5323
|
-
|
|
5323
|
+
p.value ? (c(), O("div", Pi, [
|
|
5324
5324
|
x(f(xe), { gutter: 20 }, {
|
|
5325
|
-
default:
|
|
5325
|
+
default: E(() => [
|
|
5326
5326
|
u.value ? (c(), S(f($e), {
|
|
5327
5327
|
key: 0,
|
|
5328
5328
|
span: 6,
|
|
5329
5329
|
style: { "margin-bottom": "20px" }
|
|
5330
5330
|
}, {
|
|
5331
|
-
default:
|
|
5331
|
+
default: E(() => [
|
|
5332
5332
|
(c(), S(X(u.value.display), {
|
|
5333
5333
|
field: u.value,
|
|
5334
|
-
row:
|
|
5334
|
+
row: p.value
|
|
5335
5335
|
}, null, 8, ["field", "row"]))
|
|
5336
5336
|
]),
|
|
5337
5337
|
_: 1
|
|
@@ -5339,23 +5339,23 @@ const gi = {
|
|
|
5339
5339
|
x(f($e), {
|
|
5340
5340
|
span: u.value ? 18 : 24
|
|
5341
5341
|
}, {
|
|
5342
|
-
default:
|
|
5342
|
+
default: E(() => [
|
|
5343
5343
|
x(f(xe), { gutter: 20 }, {
|
|
5344
|
-
default:
|
|
5345
|
-
(c(!0), O(P, null, q(
|
|
5344
|
+
default: E(() => [
|
|
5345
|
+
(c(!0), O(P, null, q(w.value, (l) => (c(), S(f($e), {
|
|
5346
5346
|
span: l.span,
|
|
5347
5347
|
class: "mono-data",
|
|
5348
5348
|
style: { "margin-bottom": "20px" }
|
|
5349
5349
|
}, {
|
|
5350
|
-
default:
|
|
5350
|
+
default: E(() => [
|
|
5351
5351
|
C("div", ji, B(l.label), 1),
|
|
5352
5352
|
C("div", Bi, [
|
|
5353
5353
|
l.code === "id" ? (c(), O(P, { key: 0 }, [
|
|
5354
|
-
N(B(
|
|
5354
|
+
N(B(p.value.id), 1)
|
|
5355
5355
|
], 64)) : (c(), S(X(l.display), {
|
|
5356
5356
|
key: 1,
|
|
5357
5357
|
field: l,
|
|
5358
|
-
row:
|
|
5358
|
+
row: p.value,
|
|
5359
5359
|
mode: "description"
|
|
5360
5360
|
}, null, 8, ["field", "row"]))
|
|
5361
5361
|
])
|
|
@@ -5377,16 +5377,16 @@ const gi = {
|
|
|
5377
5377
|
"onUpdate:modelValue": $[0] || ($[0] = (l) => y.value = l),
|
|
5378
5378
|
class: "extend-fields"
|
|
5379
5379
|
}, {
|
|
5380
|
-
default:
|
|
5380
|
+
default: E(() => [
|
|
5381
5381
|
(c(!0), O(P, null, q(A.value, (l) => (c(), S(f(Ss), {
|
|
5382
5382
|
title: l.label,
|
|
5383
5383
|
name: l.code,
|
|
5384
5384
|
class: "mono-data"
|
|
5385
5385
|
}, {
|
|
5386
|
-
default:
|
|
5386
|
+
default: E(() => [
|
|
5387
5387
|
(c(), S(X(l.display), {
|
|
5388
5388
|
field: l,
|
|
5389
|
-
row:
|
|
5389
|
+
row: p.value,
|
|
5390
5390
|
mode: "extend"
|
|
5391
5391
|
}, null, 8, ["field", "row"]))
|
|
5392
5392
|
]),
|
|
@@ -5417,26 +5417,26 @@ const gi = {
|
|
|
5417
5417
|
setup(t, { emit: e }) {
|
|
5418
5418
|
Ot();
|
|
5419
5419
|
const n = U(), s = Q(n), o = t, r = D("加载中..."), a = D({});
|
|
5420
|
-
function i(
|
|
5420
|
+
function i(p) {
|
|
5421
5421
|
const h = o.settings;
|
|
5422
5422
|
if (h.displayMode.normalMode == "detail")
|
|
5423
5423
|
r.value = `${h.name}`;
|
|
5424
5424
|
else {
|
|
5425
|
-
const u = `${h.formatName(
|
|
5425
|
+
const u = `${h.formatName(p)}`;
|
|
5426
5426
|
r.value = u ? `${h.name}:${u}` : `${h.name}`;
|
|
5427
5427
|
}
|
|
5428
5428
|
}
|
|
5429
5429
|
return j(
|
|
5430
5430
|
() => o.data,
|
|
5431
|
-
(
|
|
5432
|
-
|
|
5431
|
+
(p) => {
|
|
5432
|
+
p && (a.value = o.settings.operations(s), i(p));
|
|
5433
5433
|
},
|
|
5434
5434
|
{ immediate: !0 }
|
|
5435
|
-
), (
|
|
5435
|
+
), (p, h) => (c(), O("div", Ii, [
|
|
5436
5436
|
C("div", Mi, B(r.value), 1),
|
|
5437
5437
|
C("div", null, [
|
|
5438
5438
|
o.data ? (c(), S(f(pe), { key: 0 }, {
|
|
5439
|
-
default:
|
|
5439
|
+
default: E(() => [
|
|
5440
5440
|
x(qn, {
|
|
5441
5441
|
row: o.data,
|
|
5442
5442
|
settings: o.settings,
|
|
@@ -5475,13 +5475,13 @@ const gi = {
|
|
|
5475
5475
|
query: s
|
|
5476
5476
|
});
|
|
5477
5477
|
}
|
|
5478
|
-
function
|
|
5478
|
+
function p(h) {
|
|
5479
5479
|
if (o.associations.length > 0)
|
|
5480
5480
|
if (n.params.association) {
|
|
5481
5481
|
r.value = n.params.association;
|
|
5482
|
-
const
|
|
5482
|
+
const d = o.associations.find((u) => u.domain === n.params.association);
|
|
5483
5483
|
a.value = {
|
|
5484
|
-
...
|
|
5484
|
+
...d,
|
|
5485
5485
|
domainData: o.domainData
|
|
5486
5486
|
};
|
|
5487
5487
|
} else
|
|
@@ -5493,7 +5493,7 @@ const gi = {
|
|
|
5493
5493
|
return j(
|
|
5494
5494
|
() => o.domainData,
|
|
5495
5495
|
() => {
|
|
5496
|
-
|
|
5496
|
+
p(() => {
|
|
5497
5497
|
e.replace({
|
|
5498
5498
|
name: `${n.meta.side}-association`,
|
|
5499
5499
|
params: { association: r.value },
|
|
@@ -5505,22 +5505,22 @@ const gi = {
|
|
|
5505
5505
|
), j(
|
|
5506
5506
|
() => n.params,
|
|
5507
5507
|
() => {
|
|
5508
|
-
|
|
5508
|
+
p();
|
|
5509
5509
|
},
|
|
5510
5510
|
{ immediate: !0 }
|
|
5511
|
-
), (h,
|
|
5511
|
+
), (h, d) => {
|
|
5512
5512
|
const u = qe("router-view");
|
|
5513
5513
|
return c(), O(P, null, [
|
|
5514
5514
|
x(f(_n), {
|
|
5515
5515
|
modelValue: r.value,
|
|
5516
|
-
"onUpdate:modelValue":
|
|
5516
|
+
"onUpdate:modelValue": d[0] || (d[0] = (w) => r.value = w),
|
|
5517
5517
|
class: "association-tabs",
|
|
5518
5518
|
onTabClick: i
|
|
5519
5519
|
}, {
|
|
5520
|
-
default:
|
|
5521
|
-
(c(!0), O(P, null, q(o.associations, (
|
|
5522
|
-
label:
|
|
5523
|
-
name:
|
|
5520
|
+
default: E(() => [
|
|
5521
|
+
(c(!0), O(P, null, q(o.associations, (w) => (c(), S(f(vn), {
|
|
5522
|
+
label: w.name,
|
|
5523
|
+
name: w.domain
|
|
5524
5524
|
}, null, 8, ["label", "name"]))), 256))
|
|
5525
5525
|
]),
|
|
5526
5526
|
_: 1
|
|
@@ -5607,11 +5607,11 @@ const gi = {
|
|
|
5607
5607
|
setup(t) {
|
|
5608
5608
|
const e = t, n = U(), s = Q(n), o = n.meta.side, r = e.domain || n.params.domain, a = te(null), i = te([]);
|
|
5609
5609
|
$t(o, r).then((h) => {
|
|
5610
|
-
const
|
|
5611
|
-
a.value =
|
|
5610
|
+
const d = h, u = p("has-many", d.hasMany(s)), w = p("has-one", d.hasOne(s));
|
|
5611
|
+
a.value = d, i.value = w.concat(u);
|
|
5612
5612
|
});
|
|
5613
|
-
function
|
|
5614
|
-
return (
|
|
5613
|
+
function p(h, d) {
|
|
5614
|
+
return (d || []).map((u) => typeof u == "object" ? {
|
|
5615
5615
|
type: h,
|
|
5616
5616
|
domain: u.code,
|
|
5617
5617
|
name: u.name,
|
|
@@ -5625,7 +5625,7 @@ const gi = {
|
|
|
5625
5625
|
query: () => ({})
|
|
5626
5626
|
});
|
|
5627
5627
|
}
|
|
5628
|
-
return (h,
|
|
5628
|
+
return (h, d) => a.value ? (c(), S(Ji, {
|
|
5629
5629
|
key: 0,
|
|
5630
5630
|
settings: a.value,
|
|
5631
5631
|
associations: i.value
|
|
@@ -5714,4 +5714,4 @@ export {
|
|
|
5714
5714
|
ll as y,
|
|
5715
5715
|
cl as z
|
|
5716
5716
|
};
|
|
5717
|
-
//# sourceMappingURL=index-
|
|
5717
|
+
//# sourceMappingURL=index-lyE0nMga.js.map
|