kouxiangtang 0.0.85 → 0.0.87
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/README.md +13 -13
- package/dist/{AttachmentUploader-5MUEMGlw.js → AttachmentUploader-B4pX4-Yq.js} +2 -2
- package/dist/{AttachmentUploader-5MUEMGlw.js.map → AttachmentUploader-B4pX4-Yq.js.map} +1 -1
- package/dist/{ImageUploader-DV57379x.js → ImageUploader-BkCExkEy.js} +2 -2
- package/dist/{ImageUploader-DV57379x.js.map → ImageUploader-BkCExkEy.js.map} +1 -1
- package/dist/{ImagesUploader-BaNALrAL.js → ImagesUploader-CjRH6O1L.js} +2 -2
- package/dist/{ImagesUploader-BaNALrAL.js.map → ImagesUploader-CjRH6O1L.js.map} +1 -1
- package/dist/{RichTextEditor-9hogGXkV.js → RichTextEditor-CDqwfcAi.js} +2 -2
- package/dist/{RichTextEditor-9hogGXkV.js.map → RichTextEditor-CDqwfcAi.js.map} +1 -1
- package/dist/{config-Dq5hc4u6.js → config-B-pjuj8Y.js} +2 -2
- package/dist/{config-Dq5hc4u6.js.map → config-B-pjuj8Y.js.map} +1 -1
- package/dist/config-B2CWYjIt.js +76 -0
- package/dist/config-B2CWYjIt.js.map +1 -0
- package/dist/{config-BbVbGfL6.js → config-B89Z-LnS.js} +2 -2
- package/dist/{config-BbVbGfL6.js.map → config-B89Z-LnS.js.map} +1 -1
- package/dist/{config-Mav8bi6o.js → config-BH4A_NiQ.js} +2 -2
- package/dist/{config-Mav8bi6o.js.map → config-BH4A_NiQ.js.map} +1 -1
- package/dist/{config-BIm-L4OF.js → config-BYAfOPPJ.js} +2 -2
- package/dist/{config-BIm-L4OF.js.map → config-BYAfOPPJ.js.map} +1 -1
- package/dist/{config-CaVw0Uey.js → config-BqC9IVKH.js} +3 -3
- package/dist/{config-CaVw0Uey.js.map → config-BqC9IVKH.js.map} +1 -1
- package/dist/{config-y0eSzzRc.js → config-C2sD4VPj.js} +2 -2
- package/dist/{config-y0eSzzRc.js.map → config-C2sD4VPj.js.map} +1 -1
- package/dist/{config-CFxacuQl.js → config-CBgiOKrA.js} +2 -2
- package/dist/{config-CFxacuQl.js.map → config-CBgiOKrA.js.map} +1 -1
- package/dist/{config-CvquE5fQ.js → config-CtnT1VxY.js} +2 -2
- package/dist/{config-CvquE5fQ.js.map → config-CtnT1VxY.js.map} +1 -1
- package/dist/{config-DpTtroe0.js → config-CwjAEk26.js} +3 -3
- package/dist/{config-DpTtroe0.js.map → config-CwjAEk26.js.map} +1 -1
- package/dist/config-D3WxbOr9.js +64 -0
- package/dist/config-D3WxbOr9.js.map +1 -0
- package/dist/{config-B8hd4Rhp.js → config-DAN1rEwr.js} +2 -2
- package/dist/{config-B8hd4Rhp.js.map → config-DAN1rEwr.js.map} +1 -1
- package/dist/{config-DivNupSQ.js → config-DE3vLJyX.js} +10 -9
- package/dist/config-DE3vLJyX.js.map +1 -0
- package/dist/{config-DCrLYyDQ.js → config-DMN9s66_.js} +2 -2
- package/dist/{config-DCrLYyDQ.js.map → config-DMN9s66_.js.map} +1 -1
- package/dist/{config-QjbD-Eq4.js → config-DMZKncqs.js} +2 -2
- package/dist/{config-QjbD-Eq4.js.map → config-DMZKncqs.js.map} +1 -1
- package/dist/{config-CS0O39NF.js → config-DtEcupsu.js} +2 -2
- package/dist/{config-CS0O39NF.js.map → config-DtEcupsu.js.map} +1 -1
- package/dist/config-RAxfaUNa.js +135 -0
- package/dist/config-RAxfaUNa.js.map +1 -0
- package/dist/{config-C5d2Y5lT.js → config-Ut2E1TaK.js} +14 -13
- package/dist/config-Ut2E1TaK.js.map +1 -0
- package/dist/{config-Dq2ZmEk2.js → config-VPO2Rsz4.js} +3 -3
- package/dist/{config-Dq2ZmEk2.js.map → config-VPO2Rsz4.js.map} +1 -1
- package/dist/{config-WK3Q0VIm.js → config-X2LhF_WL.js} +2 -2
- package/dist/{config-WK3Q0VIm.js.map → config-X2LhF_WL.js.map} +1 -1
- package/dist/{index-lyE0nMga.js → index-DOzO-57R.js} +1165 -1140
- package/dist/index-DOzO-57R.js.map +1 -0
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +8 -8
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/config-BOoO5ADD.js +0 -60
- package/dist/config-BOoO5ADD.js.map +0 -1
- package/dist/config-C5d2Y5lT.js.map +0 -1
- package/dist/config-CoPjI4Bu.js +0 -63
- package/dist/config-CoPjI4Bu.js.map +0 -1
- package/dist/config-CuSnXh3v.js +0 -127
- package/dist/config-CuSnXh3v.js.map +0 -1
- package/dist/config-DivNupSQ.js.map +0 -1
- package/dist/index-lyE0nMga.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as
|
|
1
|
+
import { openBlock as p, createBlock as S, unref as m, createSlots as De, withCtx as E, renderSlot as J, createElementVNode as C, toDisplayString as j, resolveComponent as qe, withDirectives as _e, createElementBlock as x, normalizeStyle as Ge, createVNode as O, createTextVNode as N, computed as I, Fragment as P, renderList as q, ref as D, reactive as xe, watch as B, 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
|
+
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as Oe, 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";
|
|
5
5
|
function bn(t, e) {
|
|
@@ -7,11 +7,11 @@ function bn(t, e) {
|
|
|
7
7
|
return t.apply(e, arguments);
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
const { toString:
|
|
11
|
-
const n =
|
|
10
|
+
const { toString: xs } = Object.prototype, { getPrototypeOf: _t } = Object, We = /* @__PURE__ */ ((t) => (e) => {
|
|
11
|
+
const n = xs.call(e);
|
|
12
12
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
13
13
|
})(/* @__PURE__ */ Object.create(null)), re = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Qe = (t) => (e) => typeof e === t, { isArray: be } = Array, Ae = Qe("undefined");
|
|
14
|
-
function
|
|
14
|
+
function Os(t) {
|
|
15
15
|
return t !== null && !Ae(t) && t.constructor !== null && !Ae(t.constructor) && Z(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
16
16
|
}
|
|
17
17
|
const wn = re("ArrayBuffer");
|
|
@@ -52,9 +52,9 @@ function $n(t, e) {
|
|
|
52
52
|
return o;
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
55
|
-
const Sn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
55
|
+
const Sn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, xn = (t) => !Ae(t) && t !== Sn;
|
|
56
56
|
function it() {
|
|
57
|
-
const { caseless: t } =
|
|
57
|
+
const { caseless: t } = xn(this) && this || {}, e = {}, n = (s, o) => {
|
|
58
58
|
const r = t && $n(e, o) || o;
|
|
59
59
|
Ve(e[r]) && Ve(s) ? e[r] = it(e[r], s) : Ve(s) ? e[r] = it({}, s) : be(s) ? e[r] = s.slice() : e[r] = s;
|
|
60
60
|
};
|
|
@@ -113,14 +113,14 @@ const Vs = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
|
113
113
|
function(n, s, o) {
|
|
114
114
|
return s.toUpperCase() + o;
|
|
115
115
|
}
|
|
116
|
-
), Nt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ys = re("RegExp"),
|
|
116
|
+
), Nt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ys = re("RegExp"), On = (t, e) => {
|
|
117
117
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
|
118
118
|
Te(n, (o, r) => {
|
|
119
119
|
let a;
|
|
120
120
|
(a = e(o, r, t)) !== !1 && (s[r] = a || o);
|
|
121
121
|
}), Object.defineProperties(t, s);
|
|
122
122
|
}, Gs = (t) => {
|
|
123
|
-
|
|
123
|
+
On(t, (e, n) => {
|
|
124
124
|
if (Z(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
125
125
|
return !1;
|
|
126
126
|
const s = t[n];
|
|
@@ -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 d = n(a, o + 1);
|
|
169
|
+
!Ae(d) && (r[i] = d);
|
|
170
170
|
}), e[o] = void 0, r;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -176,7 +176,7 @@ const no = (t) => {
|
|
|
176
176
|
}, so = re("AsyncFunction"), oo = (t) => t && (Je(t) || Z(t)) && Z(t.then) && Z(t.catch), v = {
|
|
177
177
|
isArray: be,
|
|
178
178
|
isArrayBuffer: wn,
|
|
179
|
-
isBuffer:
|
|
179
|
+
isBuffer: Os,
|
|
180
180
|
isFormData: Ps,
|
|
181
181
|
isArrayBufferView: ks,
|
|
182
182
|
isString: As,
|
|
@@ -211,7 +211,7 @@ const no = (t) => {
|
|
|
211
211
|
hasOwnProperty: Nt,
|
|
212
212
|
hasOwnProp: Nt,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
|
-
reduceDescriptors:
|
|
214
|
+
reduceDescriptors: On,
|
|
215
215
|
freezeMethods: Gs,
|
|
216
216
|
toObjectSet: Ks,
|
|
217
217
|
toCamelCase: Js,
|
|
@@ -219,7 +219,7 @@ const no = (t) => {
|
|
|
219
219
|
toFiniteNumber: Zs,
|
|
220
220
|
findKey: $n,
|
|
221
221
|
global: Sn,
|
|
222
|
-
isContextDefined:
|
|
222
|
+
isContextDefined: xn,
|
|
223
223
|
ALPHABET: kn,
|
|
224
224
|
generateString: eo,
|
|
225
225
|
isSpecCompliantForm: to,
|
|
@@ -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(d) {
|
|
277
|
+
return d !== 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;
|
|
@@ -302,10 +302,10 @@ function Ye(t, e, n) {
|
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(
|
|
306
|
-
return !v.isUndefined(g[
|
|
305
|
+
}, !1, function(f, g) {
|
|
306
|
+
return !v.isUndefined(g[f]);
|
|
307
307
|
});
|
|
308
|
-
const s = n.metaTokens, o = n.visitor ||
|
|
308
|
+
const s = n.metaTokens, o = n.visitor || l, r = n.dots, a = n.indexes, d = (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,49 +313,49 @@ function Ye(t, e, n) {
|
|
|
313
313
|
return "";
|
|
314
314
|
if (v.isDate(y))
|
|
315
315
|
return y.toISOString();
|
|
316
|
-
if (!
|
|
316
|
+
if (!d && 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) ? d && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function l(y, f, g) {
|
|
321
321
|
let $ = y;
|
|
322
322
|
if (y && !g && typeof y == "object") {
|
|
323
|
-
if (v.endsWith(
|
|
324
|
-
|
|
325
|
-
else if (v.isArray(y) && ro(y) || (v.isFileList(y) || v.endsWith(
|
|
326
|
-
return
|
|
327
|
-
!(v.isUndefined(
|
|
323
|
+
if (v.endsWith(f, "{}"))
|
|
324
|
+
f = s ? f : f.slice(0, -2), y = JSON.stringify(y);
|
|
325
|
+
else if (v.isArray(y) && ro(y) || (v.isFileList(y) || v.endsWith(f, "[]")) && ($ = v.toArray(y)))
|
|
326
|
+
return f = Dn(f), $.forEach(function(w, _) {
|
|
327
|
+
!(v.isUndefined(w) || w === null) && e.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
|
-
a === !0 ? Mt([
|
|
330
|
-
h(
|
|
329
|
+
a === !0 ? Mt([f], _, r) : a === null ? f : f + "[]",
|
|
330
|
+
h(w)
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return lt(y) ? !0 : (e.append(Mt(g,
|
|
334
|
+
return lt(y) ? !0 : (e.append(Mt(g, f, r), h(y)), !1);
|
|
335
335
|
}
|
|
336
|
-
const
|
|
337
|
-
defaultVisitor:
|
|
336
|
+
const c = [], b = Object.assign(io, {
|
|
337
|
+
defaultVisitor: l,
|
|
338
338
|
convertValue: h,
|
|
339
339
|
isVisitable: lt
|
|
340
340
|
});
|
|
341
|
-
function
|
|
341
|
+
function k(y, f) {
|
|
342
342
|
if (!v.isUndefined(y)) {
|
|
343
|
-
if (
|
|
344
|
-
throw Error("Circular reference detected in " +
|
|
345
|
-
|
|
343
|
+
if (c.indexOf(y) !== -1)
|
|
344
|
+
throw Error("Circular reference detected in " + f.join("."));
|
|
345
|
+
c.push(y), v.forEach(y, function($, u) {
|
|
346
346
|
(!(v.isUndefined($) || $ === null) && o.call(
|
|
347
347
|
e,
|
|
348
348
|
$,
|
|
349
|
-
v.isString(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
)) === !0 &&
|
|
353
|
-
}),
|
|
349
|
+
v.isString(u) ? u.trim() : u,
|
|
350
|
+
f,
|
|
351
|
+
b
|
|
352
|
+
)) === !0 && k($, f ? f.concat(u) : [u]);
|
|
353
|
+
}), c.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
if (!v.isObject(t))
|
|
357
357
|
throw new TypeError("data must be an object");
|
|
358
|
-
return
|
|
358
|
+
return k(t), e;
|
|
359
359
|
}
|
|
360
360
|
function Ut(t) {
|
|
361
361
|
const e = {
|
|
@@ -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), d = r >= n.length;
|
|
504
|
+
return a = !a && v.isArray(o) ? o.length : a, d ? (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 d = this.env && this.env.FormData;
|
|
543
543
|
return Ye(
|
|
544
544
|
i ? { "files[]": e } : e,
|
|
545
|
-
|
|
545
|
+
d && new d(),
|
|
546
546
|
this.formSerializer
|
|
547
547
|
);
|
|
548
548
|
}
|
|
@@ -638,10 +638,10 @@ function et(t, e, n, s, o) {
|
|
|
638
638
|
return s.test(e);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function xo(t) {
|
|
642
642
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function Oo(t, e) {
|
|
645
645
|
const n = v.toCamelCase(" " + e);
|
|
646
646
|
["get", "set", "has"].forEach((s) => {
|
|
647
647
|
Object.defineProperty(t, s + n, {
|
|
@@ -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, d, h) {
|
|
662
|
+
const l = Ee(d);
|
|
663
|
+
if (!l)
|
|
664
664
|
throw new Error("header name must be a non-empty string");
|
|
665
|
-
const
|
|
666
|
-
(!
|
|
665
|
+
const c = v.findKey(o, l);
|
|
666
|
+
(!c || o[c] === void 0 || h === !0 || h === void 0 && o[c] !== !1) && (o[c || d] = Ne(i));
|
|
667
667
|
}
|
|
668
|
-
const a = (i,
|
|
668
|
+
const a = (i, d) => v.forEach(i, (h, l) => r(h, l, d));
|
|
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) {
|
|
@@ -720,7 +720,7 @@ class ee {
|
|
|
720
720
|
n[a] = Ne(o), delete n[r];
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
const i = e ?
|
|
723
|
+
const i = e ? xo(r) : String(r).trim();
|
|
724
724
|
i !== r && delete n[r], n[i] = Ne(o), s[i] = !0;
|
|
725
725
|
}), this;
|
|
726
726
|
}
|
|
@@ -756,7 +756,7 @@ class ee {
|
|
|
756
756
|
}).accessors, o = this.prototype;
|
|
757
757
|
function r(a) {
|
|
758
758
|
const i = Ee(a);
|
|
759
|
-
s[i] || (
|
|
759
|
+
s[i] || (Oo(o, a), s[i] = !0);
|
|
760
760
|
}
|
|
761
761
|
return v.isArray(e) ? e.forEach(r) : r(e), this;
|
|
762
762
|
}
|
|
@@ -874,109 +874,109 @@ 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
|
|
881
|
-
for (;
|
|
882
|
-
|
|
877
|
+
return e = e !== void 0 ? e : 1e3, function(d) {
|
|
878
|
+
const h = Date.now(), l = s[r];
|
|
879
|
+
a || (a = h), n[o] = d, s[o] = h;
|
|
880
|
+
let c = r, b = 0;
|
|
881
|
+
for (; c !== o; )
|
|
882
|
+
b += n[c++], c = c % t;
|
|
883
883
|
if (o = (o + 1) % t, o === r && (r = (r + 1) % t), h - a < e)
|
|
884
884
|
return;
|
|
885
|
-
const
|
|
886
|
-
return
|
|
885
|
+
const k = l && h - l;
|
|
886
|
+
return k ? Math.round(b * 1e3 / k) : 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, d = s(i), h = r <= a;
|
|
894
894
|
n = r;
|
|
895
|
-
const
|
|
895
|
+
const l = {
|
|
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: d || void 0,
|
|
901
|
+
estimated: d && a && h ? (a - r) / d : void 0,
|
|
902
902
|
event: o
|
|
903
903
|
};
|
|
904
|
-
|
|
904
|
+
l[e ? "download" : "upload"] = !0, t(l);
|
|
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, d;
|
|
912
912
|
function h() {
|
|
913
|
-
t.cancelToken && t.cancelToken.unsubscribe(
|
|
913
|
+
t.cancelToken && t.cancelToken.unsubscribe(d), t.signal && t.signal.removeEventListener("abort", d);
|
|
914
914
|
}
|
|
915
|
-
let
|
|
915
|
+
let l;
|
|
916
916
|
if (v.isFormData(o)) {
|
|
917
917
|
if (ae.hasStandardBrowserEnv || ae.hasStandardBrowserWebWorkerEnv)
|
|
918
918
|
r.setContentType(!1);
|
|
919
|
-
else if ((
|
|
920
|
-
const [
|
|
921
|
-
r.setContentType([
|
|
919
|
+
else if ((l = r.getContentType()) !== !1) {
|
|
920
|
+
const [f, ...g] = l ? l.split(";").map(($) => $.trim()).filter(Boolean) : [];
|
|
921
|
+
r.setContentType([f || "multipart/form-data", ...g].join("; "));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
let
|
|
924
|
+
let c = new XMLHttpRequest();
|
|
925
925
|
if (t.auth) {
|
|
926
|
-
const
|
|
927
|
-
r.set("Authorization", "Basic " + btoa(
|
|
926
|
+
const f = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
927
|
+
r.set("Authorization", "Basic " + btoa(f + ":" + g));
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
|
|
931
|
-
function
|
|
932
|
-
if (!
|
|
929
|
+
const b = Bn(t.baseURL, t.url);
|
|
930
|
+
c.open(t.method.toUpperCase(), Tn(b, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
|
|
931
|
+
function k() {
|
|
932
|
+
if (!c)
|
|
933
933
|
return;
|
|
934
|
-
const
|
|
935
|
-
"getAllResponseHeaders" in
|
|
934
|
+
const f = ee.from(
|
|
935
|
+
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
936
936
|
), $ = {
|
|
937
|
-
data: !a || a === "text" || a === "json" ?
|
|
938
|
-
status:
|
|
939
|
-
statusText:
|
|
940
|
-
headers:
|
|
937
|
+
data: !a || a === "text" || a === "json" ? c.responseText : c.response,
|
|
938
|
+
status: c.status,
|
|
939
|
+
statusText: c.statusText,
|
|
940
|
+
headers: f,
|
|
941
941
|
config: t,
|
|
942
|
-
request:
|
|
942
|
+
request: c
|
|
943
943
|
};
|
|
944
|
-
ko(function(
|
|
945
|
-
n(
|
|
946
|
-
}, function(
|
|
947
|
-
s(
|
|
948
|
-
}, $),
|
|
949
|
-
}
|
|
950
|
-
if ("onloadend" in
|
|
951
|
-
!
|
|
952
|
-
},
|
|
953
|
-
|
|
954
|
-
},
|
|
955
|
-
s(new T("Network Error", T.ERR_NETWORK, t,
|
|
956
|
-
},
|
|
944
|
+
ko(function(w) {
|
|
945
|
+
n(w), h();
|
|
946
|
+
}, function(w) {
|
|
947
|
+
s(w), h();
|
|
948
|
+
}, $), c = null;
|
|
949
|
+
}
|
|
950
|
+
if ("onloadend" in c ? c.onloadend = k : c.onreadystatechange = function() {
|
|
951
|
+
!c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(k);
|
|
952
|
+
}, c.onabort = function() {
|
|
953
|
+
c && (s(new T("Request aborted", T.ECONNABORTED, t, c)), c = null);
|
|
954
|
+
}, c.onerror = function() {
|
|
955
|
+
s(new T("Network Error", T.ERR_NETWORK, t, c)), c = null;
|
|
956
|
+
}, c.ontimeout = function() {
|
|
957
957
|
let g = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
958
958
|
const $ = t.transitional || Fn;
|
|
959
959
|
t.timeoutErrorMessage && (g = t.timeoutErrorMessage), s(new T(
|
|
960
960
|
g,
|
|
961
961
|
$.clarifyTimeoutError ? T.ETIMEDOUT : T.ECONNABORTED,
|
|
962
962
|
t,
|
|
963
|
-
|
|
964
|
-
)),
|
|
965
|
-
}, ae.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(
|
|
966
|
-
const
|
|
967
|
-
|
|
968
|
-
}
|
|
969
|
-
o === void 0 && r.setContentType(null), "setRequestHeader" in
|
|
970
|
-
|
|
971
|
-
}), v.isUndefined(t.withCredentials) || (
|
|
972
|
-
|
|
973
|
-
}, t.cancelToken && t.cancelToken.subscribe(
|
|
974
|
-
const y = To(
|
|
963
|
+
c
|
|
964
|
+
)), c = null;
|
|
965
|
+
}, ae.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(b))) {
|
|
966
|
+
const f = t.xsrfHeaderName && t.xsrfCookieName && Ao.read(t.xsrfCookieName);
|
|
967
|
+
f && r.set(t.xsrfHeaderName, f);
|
|
968
|
+
}
|
|
969
|
+
o === void 0 && r.setContentType(null), "setRequestHeader" in c && v.forEach(r.toJSON(), function(g, $) {
|
|
970
|
+
c.setRequestHeader($, g);
|
|
971
|
+
}), v.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), a && a !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (d = (f) => {
|
|
972
|
+
c && (s(!f || f.type ? new Le(null, t, c) : f), c.abort(), c = null);
|
|
973
|
+
}, t.cancelToken && t.cancelToken.subscribe(d), t.signal && (t.signal.aborted ? d() : t.signal.addEventListener("abort", d)));
|
|
974
|
+
const y = To(b);
|
|
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;
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
c.send(o || null);
|
|
980
980
|
});
|
|
981
981
|
}, ut = {
|
|
982
982
|
http: ao,
|
|
@@ -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, d]) => `adapter ${i} ` + (d === !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, l, c) {
|
|
1052
|
+
return v.isPlainObject(h) && v.isPlainObject(l) ? v.merge.call({ caseless: c }, h, l) : v.isPlainObject(l) ? v.merge({}, l) : v.isArray(l) ? l.slice() : l;
|
|
1053
1053
|
}
|
|
1054
|
-
function o(h,
|
|
1055
|
-
if (v.isUndefined(
|
|
1054
|
+
function o(h, l, c) {
|
|
1055
|
+
if (v.isUndefined(l)) {
|
|
1056
1056
|
if (!v.isUndefined(h))
|
|
1057
|
-
return s(void 0, h,
|
|
1057
|
+
return s(void 0, h, c);
|
|
1058
1058
|
} else
|
|
1059
|
-
return s(h,
|
|
1059
|
+
return s(h, l, c);
|
|
1060
1060
|
}
|
|
1061
|
-
function r(h,
|
|
1062
|
-
if (!v.isUndefined(
|
|
1063
|
-
return s(void 0,
|
|
1061
|
+
function r(h, l) {
|
|
1062
|
+
if (!v.isUndefined(l))
|
|
1063
|
+
return s(void 0, l);
|
|
1064
1064
|
}
|
|
1065
|
-
function a(h,
|
|
1066
|
-
if (v.isUndefined(
|
|
1065
|
+
function a(h, l) {
|
|
1066
|
+
if (v.isUndefined(l)) {
|
|
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, l);
|
|
1071
1071
|
}
|
|
1072
|
-
function i(h,
|
|
1073
|
-
if (
|
|
1074
|
-
return s(h,
|
|
1075
|
-
if (
|
|
1072
|
+
function i(h, l, c) {
|
|
1073
|
+
if (c in e)
|
|
1074
|
+
return s(h, l);
|
|
1075
|
+
if (c in t)
|
|
1076
1076
|
return s(void 0, h);
|
|
1077
1077
|
}
|
|
1078
|
-
const
|
|
1078
|
+
const d = {
|
|
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, l) => o(Jt(h), Jt(l), !0)
|
|
1108
1108
|
};
|
|
1109
|
-
return v.forEach(Object.keys(Object.assign({}, t, e)), function(
|
|
1110
|
-
const
|
|
1111
|
-
v.isUndefined(
|
|
1109
|
+
return v.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
|
1110
|
+
const c = d[l] || o, b = c(t[l], e[l], l);
|
|
1111
|
+
v.isUndefined(b) && c !== i || (n[l] = b);
|
|
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], d = i === void 0 || a(i, r, t);
|
|
1148
|
+
if (d !== !0)
|
|
1149
|
+
throw new T("option " + r + " must be " + d, T.ERR_BAD_OPTION_VALUE);
|
|
1150
1150
|
continue;
|
|
1151
1151
|
}
|
|
1152
1152
|
if (n !== !0)
|
|
@@ -1210,40 +1210,40 @@ class de {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
), n.headers = ee.concat(a, r);
|
|
1212
1212
|
const i = [];
|
|
1213
|
-
let
|
|
1214
|
-
this.interceptors.request.forEach(function(
|
|
1215
|
-
typeof
|
|
1213
|
+
let d = !0;
|
|
1214
|
+
this.interceptors.request.forEach(function(f) {
|
|
1215
|
+
typeof f.runWhen == "function" && f.runWhen(n) === !1 || (d = d && f.synchronous, i.unshift(f.fulfilled, f.rejected));
|
|
1216
1216
|
});
|
|
1217
1217
|
const h = [];
|
|
1218
|
-
this.interceptors.response.forEach(function(
|
|
1219
|
-
h.push(
|
|
1218
|
+
this.interceptors.response.forEach(function(f) {
|
|
1219
|
+
h.push(f.fulfilled, f.rejected);
|
|
1220
1220
|
});
|
|
1221
|
-
let
|
|
1222
|
-
if (!
|
|
1221
|
+
let l, c = 0, b;
|
|
1222
|
+
if (!d) {
|
|
1223
1223
|
const y = [Qt.bind(this), void 0];
|
|
1224
|
-
for (y.unshift.apply(y, i), y.push.apply(y, h),
|
|
1225
|
-
|
|
1226
|
-
return
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
let
|
|
1230
|
-
for (
|
|
1231
|
-
const y = i[
|
|
1224
|
+
for (y.unshift.apply(y, i), y.push.apply(y, h), b = y.length, l = Promise.resolve(n); c < b; )
|
|
1225
|
+
l = l.then(y[c++], y[c++]);
|
|
1226
|
+
return l;
|
|
1227
|
+
}
|
|
1228
|
+
b = i.length;
|
|
1229
|
+
let k = n;
|
|
1230
|
+
for (c = 0; c < b; ) {
|
|
1231
|
+
const y = i[c++], f = i[c++];
|
|
1232
1232
|
try {
|
|
1233
|
-
|
|
1233
|
+
k = y(k);
|
|
1234
1234
|
} catch (g) {
|
|
1235
|
-
|
|
1235
|
+
f.call(this, g);
|
|
1236
1236
|
break;
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
try {
|
|
1240
|
-
|
|
1240
|
+
l = Qt.call(this, k);
|
|
1241
1241
|
} catch (y) {
|
|
1242
1242
|
return Promise.reject(y);
|
|
1243
1243
|
}
|
|
1244
|
-
for (
|
|
1245
|
-
|
|
1246
|
-
return
|
|
1244
|
+
for (c = 0, b = h.length; c < b; )
|
|
1245
|
+
l = l.then(h[c++], h[c++]);
|
|
1246
|
+
return l;
|
|
1247
1247
|
}
|
|
1248
1248
|
getUri(e) {
|
|
1249
1249
|
e = ye(this.defaults, e);
|
|
@@ -1519,77 +1519,77 @@ var Mn = { exports: {} };
|
|
|
1519
1519
|
typeof Jo == "function" ? t.exports = s() : n.pluralize = s();
|
|
1520
1520
|
})(Wo, function() {
|
|
1521
1521
|
var n = [], s = [], o = {}, r = {}, a = {};
|
|
1522
|
-
function i(
|
|
1523
|
-
return typeof
|
|
1522
|
+
function i(f) {
|
|
1523
|
+
return typeof f == "string" ? new RegExp("^" + f + "$", "i") : f;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1525
|
+
function d(f, g) {
|
|
1526
|
+
return f === g ? g : f === f.toLowerCase() ? g.toLowerCase() : f === f.toUpperCase() ? g.toUpperCase() : f[0] === f[0].toUpperCase() ? g.charAt(0).toUpperCase() + g.substr(1).toLowerCase() : g.toLowerCase();
|
|
1527
1527
|
}
|
|
1528
|
-
function h(
|
|
1529
|
-
return
|
|
1530
|
-
return g[
|
|
1528
|
+
function h(f, g) {
|
|
1529
|
+
return f.replace(/\$(\d{1,2})/g, function($, u) {
|
|
1530
|
+
return g[u] || "";
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1534
|
-
return
|
|
1535
|
-
var
|
|
1536
|
-
return
|
|
1533
|
+
function l(f, g) {
|
|
1534
|
+
return f.replace(g[0], function($, u) {
|
|
1535
|
+
var w = h(g[1], arguments);
|
|
1536
|
+
return d($ === "" ? f[u - 1] : $, w);
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1540
|
-
if (!
|
|
1539
|
+
function c(f, g, $) {
|
|
1540
|
+
if (!f.length || o.hasOwnProperty(f))
|
|
1541
1541
|
return g;
|
|
1542
|
-
for (var
|
|
1543
|
-
var
|
|
1544
|
-
if (
|
|
1545
|
-
return
|
|
1542
|
+
for (var u = $.length; u--; ) {
|
|
1543
|
+
var w = $[u];
|
|
1544
|
+
if (w[0].test(g))
|
|
1545
|
+
return l(g, w);
|
|
1546
1546
|
}
|
|
1547
1547
|
return g;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1550
|
-
return function(
|
|
1551
|
-
var
|
|
1552
|
-
return g.hasOwnProperty(
|
|
1549
|
+
function b(f, g, $) {
|
|
1550
|
+
return function(u) {
|
|
1551
|
+
var w = u.toLowerCase();
|
|
1552
|
+
return g.hasOwnProperty(w) ? d(u, w) : f.hasOwnProperty(w) ? d(u, f[w]) : c(w, u, $);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1556
|
-
return function(
|
|
1557
|
-
var _ =
|
|
1558
|
-
return g.hasOwnProperty(_) ? !0 :
|
|
1555
|
+
function k(f, g, $, u) {
|
|
1556
|
+
return function(w) {
|
|
1557
|
+
var _ = w.toLowerCase();
|
|
1558
|
+
return g.hasOwnProperty(_) ? !0 : f.hasOwnProperty(_) ? !1 : c(_, _, $) === _;
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function y(
|
|
1562
|
-
var
|
|
1563
|
-
return ($ ? g + " " : "") +
|
|
1561
|
+
function y(f, g, $) {
|
|
1562
|
+
var u = g === 1 ? y.singular(f) : y.plural(f);
|
|
1563
|
+
return ($ ? g + " " : "") + u;
|
|
1564
1564
|
}
|
|
1565
|
-
return y.plural =
|
|
1565
|
+
return y.plural = b(
|
|
1566
1566
|
a,
|
|
1567
1567
|
r,
|
|
1568
1568
|
n
|
|
1569
|
-
), y.isPlural =
|
|
1569
|
+
), y.isPlural = k(
|
|
1570
1570
|
a,
|
|
1571
1571
|
r,
|
|
1572
1572
|
n
|
|
1573
|
-
), y.singular =
|
|
1573
|
+
), y.singular = b(
|
|
1574
1574
|
r,
|
|
1575
1575
|
a,
|
|
1576
1576
|
s
|
|
1577
|
-
), y.isSingular =
|
|
1577
|
+
), y.isSingular = k(
|
|
1578
1578
|
r,
|
|
1579
1579
|
a,
|
|
1580
1580
|
s
|
|
1581
|
-
), y.addPluralRule = function(
|
|
1582
|
-
n.push([i(
|
|
1583
|
-
}, y.addSingularRule = function(
|
|
1584
|
-
s.push([i(
|
|
1585
|
-
}, y.addUncountableRule = function(
|
|
1586
|
-
if (typeof
|
|
1587
|
-
o[
|
|
1581
|
+
), y.addPluralRule = function(f, g) {
|
|
1582
|
+
n.push([i(f), g]);
|
|
1583
|
+
}, y.addSingularRule = function(f, g) {
|
|
1584
|
+
s.push([i(f), g]);
|
|
1585
|
+
}, y.addUncountableRule = function(f) {
|
|
1586
|
+
if (typeof f == "string") {
|
|
1587
|
+
o[f.toLowerCase()] = !0;
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
|
-
y.addPluralRule(
|
|
1591
|
-
}, y.addIrregularRule = function(
|
|
1592
|
-
g = g.toLowerCase(),
|
|
1590
|
+
y.addPluralRule(f, "$0"), y.addSingularRule(f, "$0");
|
|
1591
|
+
}, y.addIrregularRule = function(f, g) {
|
|
1592
|
+
g = g.toLowerCase(), f = f.toLowerCase(), a[f] = g, r[g] = f;
|
|
1593
1593
|
}, [
|
|
1594
1594
|
// Pronouns.
|
|
1595
1595
|
["I", "we"],
|
|
@@ -1643,8 +1643,8 @@ var Mn = { exports: {} };
|
|
|
1643
1643
|
["groove", "grooves"],
|
|
1644
1644
|
["pickaxe", "pickaxes"],
|
|
1645
1645
|
["passerby", "passersby"]
|
|
1646
|
-
].forEach(function(
|
|
1647
|
-
return y.addIrregularRule(
|
|
1646
|
+
].forEach(function(f) {
|
|
1647
|
+
return y.addIrregularRule(f[0], f[1]);
|
|
1648
1648
|
}), [
|
|
1649
1649
|
[/s?$/i, "s"],
|
|
1650
1650
|
[/[^\u0000-\u007F]$/i, "$0"],
|
|
@@ -1671,8 +1671,8 @@ var Mn = { exports: {} };
|
|
|
1671
1671
|
[/eaux$/i, "$0"],
|
|
1672
1672
|
[/m[ae]n$/i, "men"],
|
|
1673
1673
|
["thou", "you"]
|
|
1674
|
-
].forEach(function(
|
|
1675
|
-
return y.addPluralRule(
|
|
1674
|
+
].forEach(function(f) {
|
|
1675
|
+
return y.addPluralRule(f[0], f[1]);
|
|
1676
1676
|
}), [
|
|
1677
1677
|
[/s$/i, ""],
|
|
1678
1678
|
[/(ss)$/i, "$1"],
|
|
@@ -1697,8 +1697,8 @@ var Mn = { exports: {} };
|
|
|
1697
1697
|
[/(child)ren$/i, "$1"],
|
|
1698
1698
|
[/(eau)x?$/i, "$1"],
|
|
1699
1699
|
[/men$/i, "man"]
|
|
1700
|
-
].forEach(function(
|
|
1701
|
-
return y.addSingularRule(
|
|
1700
|
+
].forEach(function(f) {
|
|
1701
|
+
return y.addSingularRule(f[0], f[1]);
|
|
1702
1702
|
}), [
|
|
1703
1703
|
// Singular words with no plurals.
|
|
1704
1704
|
"adulthood",
|
|
@@ -1883,7 +1883,7 @@ class Xo {
|
|
|
1883
1883
|
return oe.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
|
-
const
|
|
1886
|
+
const il = {
|
|
1887
1887
|
Client: Ko,
|
|
1888
1888
|
ReadOnlyClient: Xo,
|
|
1889
1889
|
GET_LIST: Ie,
|
|
@@ -1901,7 +1901,7 @@ const al = {
|
|
|
1901
1901
|
}, ea = ["createdAt", "updatedAt", "deletedAt"];
|
|
1902
1902
|
class ta {
|
|
1903
1903
|
constructor(e, n) {
|
|
1904
|
-
this.domain = n, this.type = e.type || "string", this.code = e.code, this.label = e.label, this.showInList = this._showInList(e), this.showInDetail = this._showInDetail(e), this.extendDetail = e.extendDetail || !1, this.rules = e.rules || [], this.editable = this._editable(e), this.visible = this._visible(e), this.width = this.computeWidth(e), this.span = e.span || 6, this.wholeRow = (e == null ? void 0 : e.wholeRow) || !1, this.fixed = !1, this.maxImageCounts = e.maxImageCounts, this.format = e.format || "HH:mm:ss", this.change = (e == null ? void 0 : e.change) || null;
|
|
1904
|
+
this.domain = n, this.type = e.type || "string", this.code = e.code, this.label = e.label, this.showInList = this._showInList(e), this.showInDetail = this._showInDetail(e), this.placeholder = e.placeholder || "", this.prefix = e.prefix || "", this.suffix = e.suffix || "", this.extendDetail = e.extendDetail || !1, this.rules = e.rules || [], this.editable = this._editable(e), this.visible = this._visible(e), this.width = this.computeWidth(e), this.span = e.span || 6, this.wholeRow = (e == null ? void 0 : e.wholeRow) || !1, this.fixed = !1, this.maxImageCounts = e.maxImageCounts, this.format = e.format || "HH:mm:ss", this.change = (e == null ? void 0 : e.change) || null;
|
|
1905
1905
|
}
|
|
1906
1906
|
computeWidth(e) {
|
|
1907
1907
|
return e.width ? e.width : ea.includes(e.code) ? 200 : e.code === "id" || e.type === "image" ? 100 : null;
|
|
@@ -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-CwjAEk26.js"), "./field/belongs-to/config.js": () => import("./config-CBgiOKrA.js"), "./field/boolean/config.js": () => import("./config-BH4A_NiQ.js"), "./field/cascader/config.js": () => import("./config-DtEcupsu.js"), "./field/component/config.js": () => import("./config-B-pjuj8Y.js"), "./field/date/config.js": () => import("./config-DE3vLJyX.js"), "./field/datetime/config.js": () => import("./config-D3WxbOr9.js"), "./field/image/config.js": () => import("./config-VPO2Rsz4.js"), "./field/images/config.js": () => import("./config-C2sD4VPj.js"), "./field/input-number/config.js": () => import("./config-DMZKncqs.js"), "./field/json/config.js": () => import("./config-DAN1rEwr.js"), "./field/radio-group/config.js": () => import("./config-BYAfOPPJ.js"), "./field/rich-text/config.js": () => import("./config-BqC9IVKH.js"), "./field/row-id/config.js": () => import("./config-DMN9s66_.js"), "./field/select/config.js": () => import("./config-RAxfaUNa.js"), "./field/string/config.js": () => import("./config-B2CWYjIt.js"), "./field/switch/config.js": () => import("./config-B89Z-LnS.js"), "./field/text/config.js": () => import("./config-Ut2E1TaK.js"), "./field/time/config.js": () => import("./config-CtnT1VxY.js"), "./field/tree-select/config.js": () => import("./config-X2LhF_WL.js") }), `./field/${t}/config.js`, 4);
|
|
2013
2013
|
return new s.default(e, n);
|
|
2014
2014
|
}
|
|
2015
2015
|
function Kt(t, e = "unknown") {
|
|
@@ -2039,10 +2039,10 @@ let ft = {
|
|
|
2039
2039
|
fileUploadUrl: "",
|
|
2040
2040
|
idempotentUrl: ""
|
|
2041
2041
|
}, Ce = {};
|
|
2042
|
-
function
|
|
2042
|
+
function ll(t) {
|
|
2043
2043
|
ft = { ...ft, ...t }, Ce = t.domainConfigs;
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2045
|
+
function ul(t) {
|
|
2046
2046
|
Object.keys(Ce).forEach((e) => {
|
|
2047
2047
|
const n = Ce[e];
|
|
2048
2048
|
Object.keys(n).forEach((s) => {
|
|
@@ -2173,7 +2173,7 @@ const V = (t, e) => {
|
|
|
2173
2173
|
},
|
|
2174
2174
|
setup(t) {
|
|
2175
2175
|
const e = t;
|
|
2176
|
-
return (n, s) => (
|
|
2176
|
+
return (n, s) => (p(), S(m(mn), { shadow: "never" }, De({
|
|
2177
2177
|
default: E(() => [
|
|
2178
2178
|
J(n.$slots, "default", {}, void 0, !0)
|
|
2179
2179
|
]),
|
|
@@ -2183,7 +2183,7 @@ const V = (t, e) => {
|
|
|
2183
2183
|
name: "header",
|
|
2184
2184
|
fn: E(() => [
|
|
2185
2185
|
C("div", aa, [
|
|
2186
|
-
C("span", ra,
|
|
2186
|
+
C("span", ra, j(e.title), 1)
|
|
2187
2187
|
])
|
|
2188
2188
|
]),
|
|
2189
2189
|
key: "0"
|
|
@@ -2215,38 +2215,38 @@ const V = (t, e) => {
|
|
|
2215
2215
|
let n = "#f7faff", s = "10px";
|
|
2216
2216
|
return e.background && (n = e.background, n == "none" && (s = "0px")), (o, r) => {
|
|
2217
2217
|
const a = qe("RouterLink");
|
|
2218
|
-
return _e((
|
|
2218
|
+
return _e((p(), x("div", {
|
|
2219
2219
|
class: "container",
|
|
2220
|
-
style: Ge(`background: ${
|
|
2220
|
+
style: Ge(`background: ${m(n)}; padding: ${m(s)}`)
|
|
2221
2221
|
}, [
|
|
2222
2222
|
C("div", {
|
|
2223
2223
|
class: "item-box-data mono-data",
|
|
2224
2224
|
style: Ge(`text-align: ${e.align};`)
|
|
2225
2225
|
}, [
|
|
2226
|
-
e.value != null ? (
|
|
2226
|
+
e.value != null ? (p(), x("span", ua, j(e.value), 1)) : (p(), x("span", ca, "..."))
|
|
2227
2227
|
], 4),
|
|
2228
2228
|
C("div", {
|
|
2229
2229
|
class: "item-box-tip",
|
|
2230
2230
|
style: Ge(`text-align: ${e.align};`)
|
|
2231
2231
|
}, [
|
|
2232
|
-
e.link ? (
|
|
2233
|
-
|
|
2232
|
+
e.link ? (p(), x("span", da, [
|
|
2233
|
+
O(a, {
|
|
2234
2234
|
to: e.link
|
|
2235
2235
|
}, {
|
|
2236
2236
|
default: E(() => [
|
|
2237
|
-
|
|
2237
|
+
O(m(as), { type: "primary" }, {
|
|
2238
2238
|
default: E(() => [
|
|
2239
|
-
N(
|
|
2239
|
+
N(j(e.title), 1)
|
|
2240
2240
|
]),
|
|
2241
2241
|
_: 1
|
|
2242
2242
|
})
|
|
2243
2243
|
]),
|
|
2244
2244
|
_: 1
|
|
2245
2245
|
}, 8, ["to"])
|
|
2246
|
-
])) : (
|
|
2246
|
+
])) : (p(), x("span", pa, j(e.title), 1))
|
|
2247
2247
|
], 4)
|
|
2248
2248
|
], 4)), [
|
|
2249
|
-
[
|
|
2249
|
+
[m(ve), e.value == null]
|
|
2250
2250
|
]);
|
|
2251
2251
|
};
|
|
2252
2252
|
}
|
|
@@ -2274,9 +2274,9 @@ const V = (t, e) => {
|
|
|
2274
2274
|
},
|
|
2275
2275
|
setup(t) {
|
|
2276
2276
|
const e = t;
|
|
2277
|
-
return (n, s) => (
|
|
2277
|
+
return (n, s) => (p(), S(la, null, {
|
|
2278
2278
|
default: E(() => [
|
|
2279
|
-
|
|
2279
|
+
O(ma, {
|
|
2280
2280
|
title: e.title,
|
|
2281
2281
|
value: e.value,
|
|
2282
2282
|
icon: e.icon,
|
|
@@ -2288,16 +2288,16 @@ const V = (t, e) => {
|
|
|
2288
2288
|
_: 1
|
|
2289
2289
|
}));
|
|
2290
2290
|
}
|
|
2291
|
-
},
|
|
2291
|
+
}, cl = /* @__PURE__ */ V(ha, [["__scopeId", "data-v-f338c407"]]), ga = {}, ya = { style: { padding: "20px 0" } };
|
|
2292
2292
|
function _a(t, e) {
|
|
2293
|
-
return
|
|
2293
|
+
return p(), x("div", ya, [
|
|
2294
2294
|
J(t.$slots, "default")
|
|
2295
2295
|
]);
|
|
2296
2296
|
}
|
|
2297
|
-
const
|
|
2297
|
+
const dl = /* @__PURE__ */ V(ga, [["render", _a]]), va = {
|
|
2298
2298
|
__name: "DashboardRow",
|
|
2299
2299
|
setup(t) {
|
|
2300
|
-
return (e, n) => (
|
|
2300
|
+
return (e, n) => (p(), S(m(Oe), {
|
|
2301
2301
|
style: { "margin-bottom": "20px" },
|
|
2302
2302
|
class: "row"
|
|
2303
2303
|
}, {
|
|
@@ -2307,7 +2307,7 @@ const ul = /* @__PURE__ */ V(ga, [["render", _a]]), va = {
|
|
|
2307
2307
|
_: 3
|
|
2308
2308
|
}));
|
|
2309
2309
|
}
|
|
2310
|
-
},
|
|
2310
|
+
}, pl = /* @__PURE__ */ V(va, [["__scopeId", "data-v-5b091760"]]);
|
|
2311
2311
|
function Q(t) {
|
|
2312
2312
|
const e = { ...t.query, ...t.params };
|
|
2313
2313
|
if (t.params.domain && t.params.id) {
|
|
@@ -2324,6 +2324,9 @@ function mt(t) {
|
|
|
2324
2324
|
return t.map((e) => ba(e));
|
|
2325
2325
|
}
|
|
2326
2326
|
const wa = {
|
|
2327
|
+
key: 0,
|
|
2328
|
+
class: "classify-wrap"
|
|
2329
|
+
}, Ea = {
|
|
2327
2330
|
__name: "FormLayout",
|
|
2328
2331
|
props: {
|
|
2329
2332
|
layout: Object,
|
|
@@ -2331,14 +2334,20 @@ const wa = {
|
|
|
2331
2334
|
},
|
|
2332
2335
|
setup(t) {
|
|
2333
2336
|
const e = t, n = I(() => {
|
|
2337
|
+
var r;
|
|
2334
2338
|
if (e.layout.length == 0) {
|
|
2335
|
-
if (e.fields
|
|
2336
|
-
|
|
2337
|
-
|
|
2339
|
+
if (((r = e.fields) == null ? void 0 : r.filter(
|
|
2340
|
+
(d) => {
|
|
2341
|
+
var h;
|
|
2342
|
+
return !((h = d.code) != null && h.includes("classify"));
|
|
2343
|
+
}
|
|
2344
|
+
).length) <= 6) {
|
|
2345
|
+
const d = o(e.fields, 1);
|
|
2346
|
+
return mt(d);
|
|
2338
2347
|
}
|
|
2339
2348
|
console.log(e.fields);
|
|
2340
|
-
const
|
|
2341
|
-
return mt(
|
|
2349
|
+
const i = o(e.fields, 2);
|
|
2350
|
+
return mt(i);
|
|
2342
2351
|
}
|
|
2343
2352
|
return e.layout;
|
|
2344
2353
|
});
|
|
@@ -2346,30 +2355,42 @@ const wa = {
|
|
|
2346
2355
|
return e.fields.find((i) => i.code == r);
|
|
2347
2356
|
}
|
|
2348
2357
|
function o(r, a = 2) {
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2358
|
+
var h;
|
|
2359
|
+
const i = r.map((l) => l.code), d = [];
|
|
2360
|
+
if (a == 2)
|
|
2361
|
+
for (let l = 0; l < i.length; l += a)
|
|
2362
|
+
i[l].includes("classify") ? (d.push([i[l]]), i.splice(i[l].includes("classify") ? l : l + 1, 1), l -= a) : (h = i[l + 1]) != null && h.includes("classify") ? (d.push([i[l]]), d.push([i[l + 1]])) : d.push(i.slice(l, l + a));
|
|
2363
|
+
else
|
|
2364
|
+
for (let l = 0; l < i.length; l += a)
|
|
2365
|
+
d.push(i.slice(l, l + a));
|
|
2366
|
+
return d;
|
|
2353
2367
|
}
|
|
2354
|
-
return (r, a) => (
|
|
2355
|
-
(
|
|
2368
|
+
return (r, a) => (p(), x("div", null, [
|
|
2369
|
+
(p(!0), x(P, null, q(n.value, (i) => (p(), S(m(Oe), { gutter: 20 }, {
|
|
2356
2370
|
default: E(() => [
|
|
2357
|
-
(
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2371
|
+
(p(!0), x(P, null, q(i.cols, (d) => {
|
|
2372
|
+
var h, l, c;
|
|
2373
|
+
return p(), S(m($e), {
|
|
2374
|
+
span: (h = s(d.field)) != null && h.wholeRow ? 24 : ((l = i.cols) == null ? void 0 : l.length) == 1 && !((c = d.field) != null && c.includes("classify")) && e.fields.length > 6 ? 12 : d.span
|
|
2375
|
+
}, {
|
|
2376
|
+
default: E(() => {
|
|
2377
|
+
var b, k;
|
|
2378
|
+
return [
|
|
2379
|
+
(b = d.field) != null && b.includes("classify") ? (p(), x("div", wa, j((k = s(d.field)) == null ? void 0 : k.label), 1)) : J(r.$slots, "default", {
|
|
2380
|
+
key: 1,
|
|
2381
|
+
field: s(d.field)
|
|
2382
|
+
}, void 0, !0)
|
|
2383
|
+
];
|
|
2384
|
+
}),
|
|
2385
|
+
_: 2
|
|
2386
|
+
}, 1032, ["span"]);
|
|
2387
|
+
}), 256))
|
|
2367
2388
|
]),
|
|
2368
2389
|
_: 2
|
|
2369
2390
|
}, 1024))), 256))
|
|
2370
2391
|
]));
|
|
2371
2392
|
}
|
|
2372
|
-
}, Ea = { style: { width: "100%" } },
|
|
2393
|
+
}, $a = /* @__PURE__ */ V(Ea, [["__scopeId", "data-v-3b8299b1"]]), Sa = { style: { width: "100%" } }, xa = { class: "footer" }, Oa = { key: 1 }, ka = {
|
|
2373
2394
|
__name: "PureForm",
|
|
2374
2395
|
props: {
|
|
2375
2396
|
config: {
|
|
@@ -2385,25 +2406,25 @@ const wa = {
|
|
|
2385
2406
|
},
|
|
2386
2407
|
emits: ["submit", "remove"],
|
|
2387
2408
|
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 _ =
|
|
2390
|
-
return
|
|
2409
|
+
const n = U(), s = Q(n), o = e, r = D(!1), a = t, i = mt(a.config.formLayout || []), d = xe({ ...a.data }), h = D(null), l = a.config.fields.filter((w) => w.rules).reduce((w, _) => (w[_.code] = k(_.rules), w), {}), c = I(u), b = I(() => a.config.fields.filter((w) => {
|
|
2410
|
+
const _ = w.editable(d, s), A = w.visible(d, s);
|
|
2411
|
+
return w.disabled = A && !_, _ || A;
|
|
2391
2412
|
}));
|
|
2392
|
-
function
|
|
2393
|
-
return typeof
|
|
2413
|
+
function k(w) {
|
|
2414
|
+
return typeof w == "object" ? w : typeof w == "function" ? w(d) : [];
|
|
2394
2415
|
}
|
|
2395
|
-
function y(
|
|
2396
|
-
r.value = !0, o("submit",
|
|
2416
|
+
function y(w) {
|
|
2417
|
+
r.value = !0, o("submit", w, d, () => {
|
|
2397
2418
|
r.value = !1;
|
|
2398
2419
|
});
|
|
2399
2420
|
}
|
|
2400
|
-
async function
|
|
2401
|
-
await h.value.validate(async (
|
|
2421
|
+
async function f() {
|
|
2422
|
+
await h.value.validate(async (w, _) => {
|
|
2402
2423
|
var K, M;
|
|
2403
|
-
if (!
|
|
2424
|
+
if (!w)
|
|
2404
2425
|
return console.log("error submit!", _), !1;
|
|
2405
|
-
const
|
|
2406
|
-
if (
|
|
2426
|
+
const A = (K = a.config.fields.find((Y) => ["images", "attachments", "attachment"].includes(Y.type))) == null ? void 0 : K.code, R = { ...d };
|
|
2427
|
+
if (A && (R[A] = (M = R[A]) == null ? void 0 : M.map((Y) => Y.id)), a.config.submitConfirm) {
|
|
2407
2428
|
await a.config.submitConfirm(R) && y(R);
|
|
2408
2429
|
return;
|
|
2409
2430
|
}
|
|
@@ -2411,11 +2432,11 @@ const wa = {
|
|
|
2411
2432
|
});
|
|
2412
2433
|
}
|
|
2413
2434
|
function g() {
|
|
2414
|
-
o("remove",
|
|
2435
|
+
o("remove", d);
|
|
2415
2436
|
}
|
|
2416
2437
|
function $() {
|
|
2417
2438
|
if (a.config.removeConfirm) {
|
|
2418
|
-
a.config.removeConfirm(
|
|
2439
|
+
a.config.removeConfirm(d, g);
|
|
2419
2440
|
return;
|
|
2420
2441
|
}
|
|
2421
2442
|
is.confirm("确定要删除该条数据吗?", "提示", {
|
|
@@ -2432,67 +2453,67 @@ const wa = {
|
|
|
2432
2453
|
});
|
|
2433
2454
|
});
|
|
2434
2455
|
}
|
|
2435
|
-
function
|
|
2436
|
-
const
|
|
2437
|
-
return typeof
|
|
2456
|
+
function u() {
|
|
2457
|
+
const w = a.config.showSubmit;
|
|
2458
|
+
return typeof w == "boolean" ? w : typeof w == "function" ? w(s, d) : !0;
|
|
2438
2459
|
}
|
|
2439
|
-
return
|
|
2440
|
-
() => ({ ...
|
|
2441
|
-
(
|
|
2442
|
-
const R = Object.keys(
|
|
2460
|
+
return B(
|
|
2461
|
+
() => ({ ...d }),
|
|
2462
|
+
(w, _) => {
|
|
2463
|
+
const R = Object.keys(w).filter((M) => _[M] !== w[M]).map((M) => {
|
|
2443
2464
|
var Y;
|
|
2444
2465
|
return (Y = h.value) == null || Y.clearValidate(M), {
|
|
2445
2466
|
field: M,
|
|
2446
|
-
newValue:
|
|
2467
|
+
newValue: w[M],
|
|
2447
2468
|
oldValue: _[M]
|
|
2448
2469
|
};
|
|
2449
2470
|
});
|
|
2450
|
-
|
|
2451
|
-
M.formChange && M.formChange(
|
|
2471
|
+
b.value.filter((M) => !M.disabled).forEach((M) => {
|
|
2472
|
+
M.formChange && M.formChange(d, R);
|
|
2452
2473
|
});
|
|
2453
2474
|
}
|
|
2454
|
-
),
|
|
2475
|
+
), B(
|
|
2455
2476
|
() => a.data,
|
|
2456
|
-
(
|
|
2457
|
-
Object.keys(
|
|
2458
|
-
|
|
2477
|
+
(w) => {
|
|
2478
|
+
Object.keys(w).forEach((_) => {
|
|
2479
|
+
d[_] = w[_];
|
|
2459
2480
|
});
|
|
2460
2481
|
},
|
|
2461
2482
|
{ immediate: !0 }
|
|
2462
|
-
), (
|
|
2483
|
+
), (w, _) => (p(), S(m(hn), {
|
|
2463
2484
|
id: "form",
|
|
2464
2485
|
ref_key: "formRef",
|
|
2465
2486
|
ref: h,
|
|
2466
|
-
model:
|
|
2487
|
+
model: d,
|
|
2467
2488
|
"label-width": "100px",
|
|
2468
2489
|
"label-position": "top",
|
|
2469
|
-
rules:
|
|
2490
|
+
rules: m(l)
|
|
2470
2491
|
}, {
|
|
2471
2492
|
default: E(() => [
|
|
2472
|
-
|
|
2473
|
-
layout:
|
|
2474
|
-
fields:
|
|
2493
|
+
O($a, {
|
|
2494
|
+
layout: m(i),
|
|
2495
|
+
fields: b.value
|
|
2475
2496
|
}, {
|
|
2476
|
-
default: E(({ field:
|
|
2477
|
-
(
|
|
2478
|
-
key:
|
|
2479
|
-
label:
|
|
2480
|
-
prop:
|
|
2497
|
+
default: E(({ field: A }) => [
|
|
2498
|
+
(p(), S(m(ot), {
|
|
2499
|
+
key: A.code,
|
|
2500
|
+
label: A.label,
|
|
2501
|
+
prop: A.code
|
|
2481
2502
|
}, {
|
|
2482
2503
|
default: E(() => [
|
|
2483
|
-
C("div",
|
|
2484
|
-
|
|
2504
|
+
C("div", Sa, [
|
|
2505
|
+
A != null && A.editor ? (p(), S(X(A.editor), {
|
|
2485
2506
|
key: 0,
|
|
2486
|
-
modelValue:
|
|
2487
|
-
"onUpdate:modelValue": (R) =>
|
|
2488
|
-
field:
|
|
2489
|
-
disabled:
|
|
2490
|
-
"form-data":
|
|
2507
|
+
modelValue: d[A.code],
|
|
2508
|
+
"onUpdate:modelValue": (R) => d[A.code] = R,
|
|
2509
|
+
field: A,
|
|
2510
|
+
disabled: A.disabled,
|
|
2511
|
+
"form-data": d,
|
|
2491
2512
|
"domain-config": a.config,
|
|
2492
|
-
row:
|
|
2493
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (
|
|
2513
|
+
row: d
|
|
2514
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (p(), S(m(rs), {
|
|
2494
2515
|
key: 1,
|
|
2495
|
-
title: `未找到 ${
|
|
2516
|
+
title: `未找到 ${A.code}(${A.type}) 的编辑器`,
|
|
2496
2517
|
type: "error",
|
|
2497
2518
|
effect: "dark",
|
|
2498
2519
|
closable: !1
|
|
@@ -2504,8 +2525,8 @@ const wa = {
|
|
|
2504
2525
|
]),
|
|
2505
2526
|
_: 1
|
|
2506
2527
|
}, 8, ["layout", "fields"]),
|
|
2507
|
-
C("div",
|
|
2508
|
-
|
|
2528
|
+
C("div", xa, [
|
|
2529
|
+
d.id && !d.deletedAt && a.removable ? (p(), S(m(ne), {
|
|
2509
2530
|
key: 0,
|
|
2510
2531
|
size: "default",
|
|
2511
2532
|
type: "danger",
|
|
@@ -2515,13 +2536,13 @@ const wa = {
|
|
|
2515
2536
|
N(" 删除 ")
|
|
2516
2537
|
]),
|
|
2517
2538
|
_: 1
|
|
2518
|
-
})) : (
|
|
2519
|
-
|
|
2539
|
+
})) : (p(), x("div", Oa)),
|
|
2540
|
+
c.value ? (p(), S(m(ne), {
|
|
2520
2541
|
key: 2,
|
|
2521
2542
|
size: "default",
|
|
2522
2543
|
type: "primary",
|
|
2523
2544
|
loading: r.value,
|
|
2524
|
-
onClick:
|
|
2545
|
+
onClick: f
|
|
2525
2546
|
}, {
|
|
2526
2547
|
default: E(() => [
|
|
2527
2548
|
N(" 提交 ")
|
|
@@ -2533,12 +2554,12 @@ const wa = {
|
|
|
2533
2554
|
_: 1
|
|
2534
2555
|
}, 8, ["model", "rules"]));
|
|
2535
2556
|
}
|
|
2536
|
-
},
|
|
2537
|
-
function
|
|
2557
|
+
}, Aa = /* @__PURE__ */ V(ka, [["__scopeId", "data-v-e33a452e"]]);
|
|
2558
|
+
function Ca() {
|
|
2538
2559
|
return He().idempotentUrl ? oe.get(He().idempotentUrl).then((t) => t.data) : "";
|
|
2539
2560
|
}
|
|
2540
2561
|
const Se = {
|
|
2541
|
-
getValue:
|
|
2562
|
+
getValue: Ca
|
|
2542
2563
|
}, St = {
|
|
2543
2564
|
__name: "FormEditor",
|
|
2544
2565
|
props: {
|
|
@@ -2561,54 +2582,58 @@ const Se = {
|
|
|
2561
2582
|
},
|
|
2562
2583
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2563
2584
|
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 })),
|
|
2585
|
+
const n = U(), s = Q(n), o = e, r = t, a = D(r.data), i = I(() => ({ ...a.value, idempotentToken: h.value })), d = I(() => r.config.fields.filter((f) => {
|
|
2586
|
+
var g;
|
|
2587
|
+
if (!((g = f.code) != null && g.includes("classify")))
|
|
2588
|
+
return f.visible(i, s);
|
|
2589
|
+
}).length >= 6 ? "60%" : "40%"), h = D(""), l = I({
|
|
2565
2590
|
get() {
|
|
2566
2591
|
return r.modelValue;
|
|
2567
2592
|
},
|
|
2568
2593
|
set(y) {
|
|
2569
2594
|
o("update:modelValue", y);
|
|
2570
2595
|
}
|
|
2571
|
-
}),
|
|
2572
|
-
function
|
|
2573
|
-
a.value =
|
|
2596
|
+
}), c = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
|
|
2597
|
+
function b(y, f, g) {
|
|
2598
|
+
a.value = f, o("submit", y, async () => {
|
|
2574
2599
|
h.value = await Se.getValue(), g();
|
|
2575
2600
|
});
|
|
2576
2601
|
}
|
|
2577
|
-
function
|
|
2602
|
+
function k(y, f) {
|
|
2578
2603
|
o("remove", y, async () => {
|
|
2579
|
-
h.value = await Se.getValue(),
|
|
2604
|
+
h.value = await Se.getValue(), f();
|
|
2580
2605
|
});
|
|
2581
2606
|
}
|
|
2582
|
-
return
|
|
2583
|
-
() =>
|
|
2607
|
+
return B(
|
|
2608
|
+
() => l,
|
|
2584
2609
|
async () => {
|
|
2585
2610
|
h.value = await Se.getValue();
|
|
2586
2611
|
},
|
|
2587
2612
|
{ immediate: !0 }
|
|
2588
|
-
), (y,
|
|
2589
|
-
modelValue:
|
|
2590
|
-
"onUpdate:modelValue":
|
|
2591
|
-
width:
|
|
2613
|
+
), (y, f) => (p(), S(m(ls), {
|
|
2614
|
+
modelValue: l.value,
|
|
2615
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => l.value = g),
|
|
2616
|
+
width: d.value,
|
|
2592
2617
|
top: "20px",
|
|
2593
|
-
title:
|
|
2618
|
+
title: c.value,
|
|
2594
2619
|
"close-on-click-modal": !1,
|
|
2595
2620
|
"append-to-body": !0,
|
|
2596
2621
|
"destroy-on-close": "",
|
|
2597
2622
|
"z-index": 2e3
|
|
2598
2623
|
}, {
|
|
2599
2624
|
default: E(() => [
|
|
2600
|
-
|
|
2625
|
+
O(Aa, {
|
|
2601
2626
|
config: r.config,
|
|
2602
2627
|
data: i.value,
|
|
2603
2628
|
removable: r.removable,
|
|
2604
|
-
onSubmit:
|
|
2605
|
-
onRemove:
|
|
2629
|
+
onSubmit: b,
|
|
2630
|
+
onRemove: k
|
|
2606
2631
|
}, null, 8, ["config", "data", "removable"])
|
|
2607
2632
|
]),
|
|
2608
2633
|
_: 1
|
|
2609
2634
|
}, 8, ["modelValue", "width", "title"]));
|
|
2610
2635
|
}
|
|
2611
|
-
},
|
|
2636
|
+
}, fl = {
|
|
2612
2637
|
__name: "RowActionFormEditor",
|
|
2613
2638
|
props: {
|
|
2614
2639
|
row: {
|
|
@@ -2644,22 +2669,22 @@ const Se = {
|
|
|
2644
2669
|
code: e.code,
|
|
2645
2670
|
fields: e.fields
|
|
2646
2671
|
});
|
|
2647
|
-
Promise.all(i.fields).then((
|
|
2648
|
-
i.fields =
|
|
2672
|
+
Promise.all(i.fields).then((l) => {
|
|
2673
|
+
i.fields = l, i.restRepeat = e.restRepeat, i.rest = e.rest, o.value = i;
|
|
2649
2674
|
});
|
|
2650
|
-
async function
|
|
2651
|
-
const
|
|
2652
|
-
if (
|
|
2653
|
-
const { data:
|
|
2675
|
+
async function d() {
|
|
2676
|
+
const l = e.rest;
|
|
2677
|
+
if (l != null && l.getOne) {
|
|
2678
|
+
const { data: c } = await l.getOne({
|
|
2654
2679
|
...e.row,
|
|
2655
2680
|
...a
|
|
2656
2681
|
});
|
|
2657
|
-
n.value =
|
|
2682
|
+
n.value = c;
|
|
2658
2683
|
}
|
|
2659
2684
|
s.value = !0;
|
|
2660
2685
|
}
|
|
2661
|
-
function h(
|
|
2662
|
-
e.onSubmit(
|
|
2686
|
+
function h(l, c) {
|
|
2687
|
+
e.onSubmit(l).then(() => {
|
|
2663
2688
|
s.value = !1, ke({
|
|
2664
2689
|
showClose: !0,
|
|
2665
2690
|
grouping: !0,
|
|
@@ -2667,19 +2692,19 @@ const Se = {
|
|
|
2667
2692
|
type: "success"
|
|
2668
2693
|
}), console.log("success");
|
|
2669
2694
|
}).catch(() => {
|
|
2670
|
-
console.log("请求失败"),
|
|
2695
|
+
console.log("请求失败"), c();
|
|
2671
2696
|
});
|
|
2672
2697
|
}
|
|
2673
|
-
return (
|
|
2698
|
+
return (l, c) => (p(), S(m(ne), {
|
|
2674
2699
|
type: e.type,
|
|
2675
|
-
onClick:
|
|
2700
|
+
onClick: d
|
|
2676
2701
|
}, {
|
|
2677
2702
|
default: E(() => [
|
|
2678
|
-
N(
|
|
2679
|
-
s.value ? (
|
|
2703
|
+
N(j(e.text) + " ", 1),
|
|
2704
|
+
s.value ? (p(), S(St, {
|
|
2680
2705
|
key: 0,
|
|
2681
2706
|
modelValue: s.value,
|
|
2682
|
-
"onUpdate:modelValue":
|
|
2707
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => s.value = b),
|
|
2683
2708
|
title: e.text,
|
|
2684
2709
|
config: o.value,
|
|
2685
2710
|
data: n.value,
|
|
@@ -2689,7 +2714,7 @@ const Se = {
|
|
|
2689
2714
|
_: 1
|
|
2690
2715
|
}, 8, ["type"]));
|
|
2691
2716
|
}
|
|
2692
|
-
},
|
|
2717
|
+
}, Da = { class: "not-found" }, Ra = {
|
|
2693
2718
|
__name: "EmptyTip",
|
|
2694
2719
|
props: {
|
|
2695
2720
|
text: {
|
|
@@ -2699,9 +2724,9 @@ const Se = {
|
|
|
2699
2724
|
},
|
|
2700
2725
|
setup(t) {
|
|
2701
2726
|
const e = t;
|
|
2702
|
-
return (n, s) => (
|
|
2727
|
+
return (n, s) => (p(), x("span", Da, j(e.text), 1));
|
|
2703
2728
|
}
|
|
2704
|
-
},
|
|
2729
|
+
}, ml = /* @__PURE__ */ V(Ra, [["__scopeId", "data-v-c97e855f"]]), hl = {
|
|
2705
2730
|
__name: "FieldEditor",
|
|
2706
2731
|
props: {
|
|
2707
2732
|
modelValue: {
|
|
@@ -2715,19 +2740,19 @@ const Se = {
|
|
|
2715
2740
|
},
|
|
2716
2741
|
emits: ["update:modelValue"],
|
|
2717
2742
|
setup(t, { emit: e }) {
|
|
2718
|
-
const n = Zn(() => import("./ImagesUploader-
|
|
2719
|
-
function
|
|
2720
|
-
let
|
|
2721
|
-
|
|
2743
|
+
const n = Zn(() => import("./ImagesUploader-CjRH6O1L.js")), s = He().fileUploadUrl, o = e, r = t, a = xe({ value: r.modelValue }), i = r.field.converter;
|
|
2744
|
+
function d(l) {
|
|
2745
|
+
let c = -1;
|
|
2746
|
+
l.id && (c = a.value.findIndex((b) => b.id === l.id)), l.url && (c = a.value.findIndex((b) => b.url === l.url)), c >= 0 && (a.value.splice(c, 1), o("update:modelValue", a.value));
|
|
2722
2747
|
}
|
|
2723
|
-
function h(
|
|
2724
|
-
console.log(
|
|
2748
|
+
function h(l) {
|
|
2749
|
+
console.log(l), Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), oe.post(s, l).then((c) => {
|
|
2725
2750
|
Be.service().close(), ke({
|
|
2726
2751
|
message: "上传成功",
|
|
2727
2752
|
type: "success"
|
|
2728
2753
|
});
|
|
2729
|
-
const
|
|
2730
|
-
a.value = a.value ? [...a.value,
|
|
2754
|
+
const b = i(c.data);
|
|
2755
|
+
a.value = a.value ? [...a.value, b] : [b], o("update:modelValue", a.value);
|
|
2731
2756
|
}).catch(() => {
|
|
2732
2757
|
Be.service().close(), ke({
|
|
2733
2758
|
message: "上传失败",
|
|
@@ -2735,18 +2760,18 @@ const Se = {
|
|
|
2735
2760
|
});
|
|
2736
2761
|
});
|
|
2737
2762
|
}
|
|
2738
|
-
return
|
|
2763
|
+
return B(
|
|
2739
2764
|
() => r.modelValue,
|
|
2740
2765
|
async () => {
|
|
2741
2766
|
a.value = r.modelValue;
|
|
2742
2767
|
},
|
|
2743
2768
|
{ immediate: !0 }
|
|
2744
|
-
), (
|
|
2745
|
-
|
|
2769
|
+
), (l, c) => (p(), x("div", null, [
|
|
2770
|
+
O(m(n), {
|
|
2746
2771
|
images: a.value,
|
|
2747
2772
|
props: r.field.props,
|
|
2748
2773
|
onOnUpload: h,
|
|
2749
|
-
onOnRemove:
|
|
2774
|
+
onOnRemove: d
|
|
2750
2775
|
}, null, 8, ["images", "props"])
|
|
2751
2776
|
]));
|
|
2752
2777
|
}
|
|
@@ -2777,7 +2802,7 @@ const Se = {
|
|
|
2777
2802
|
}),
|
|
2778
2803
|
getters: {
|
|
2779
2804
|
validFilters() {
|
|
2780
|
-
return
|
|
2805
|
+
return Ta(
|
|
2781
2806
|
t,
|
|
2782
2807
|
e,
|
|
2783
2808
|
this.filters,
|
|
@@ -2795,23 +2820,23 @@ const Se = {
|
|
|
2795
2820
|
}
|
|
2796
2821
|
}
|
|
2797
2822
|
});
|
|
2798
|
-
function
|
|
2799
|
-
let a = { ...
|
|
2823
|
+
function Ta(t, e, n, s, o) {
|
|
2824
|
+
let a = { ...Fa(t, e, s), ...n };
|
|
2800
2825
|
return o != null && o.setupCreate && (a = o.setupCreate(a)), ht(t, e, a);
|
|
2801
2826
|
}
|
|
2802
|
-
function
|
|
2827
|
+
function Fa(t, e, n) {
|
|
2803
2828
|
const s = `filters---${e}---${t}`;
|
|
2804
2829
|
let o = {};
|
|
2805
2830
|
return localStorage.getItem(s) && (o = JSON.parse(localStorage.getItem(s))), Object.keys(o).filter((r) => Object.keys(n).includes(r)).reduce((r, a) => (r[a] = o[a], r), {});
|
|
2806
2831
|
}
|
|
2807
2832
|
function ht(t, e, n) {
|
|
2808
|
-
const s = `filters---${e}---${t}`, o =
|
|
2833
|
+
const s = `filters---${e}---${t}`, o = La(n);
|
|
2809
2834
|
return localStorage.setItem(s, JSON.stringify(o)), o;
|
|
2810
2835
|
}
|
|
2811
|
-
function
|
|
2836
|
+
function La(t) {
|
|
2812
2837
|
return Object.keys(t).filter((e) => t[e] != null && t[e] != null && t[e] != "").reduce((e, n) => (e[n] = t[n], e), {});
|
|
2813
2838
|
}
|
|
2814
|
-
const
|
|
2839
|
+
const Pa = { class: "sorters-box" }, ja = ["onClick"], Ba = { class: "sorters-label" }, Va = { class: "sorters-arrow-box" }, Na = ["onClick"], Ia = ["onClick"], Ma = {
|
|
2815
2840
|
__name: "FiltersSorters",
|
|
2816
2841
|
props: {
|
|
2817
2842
|
sorters: {
|
|
@@ -2830,12 +2855,12 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2830
2855
|
async function r() {
|
|
2831
2856
|
typeof s.sorters.sortersList == "function" ? o.value = await s.sorters.sortersList() : o.value = s.sorters.sortersList;
|
|
2832
2857
|
}
|
|
2833
|
-
r(),
|
|
2858
|
+
r(), B(
|
|
2834
2859
|
() => s.value,
|
|
2835
2860
|
() => {
|
|
2836
2861
|
a();
|
|
2837
2862
|
}
|
|
2838
|
-
),
|
|
2863
|
+
), B(
|
|
2839
2864
|
() => o,
|
|
2840
2865
|
() => {
|
|
2841
2866
|
a();
|
|
@@ -2844,44 +2869,44 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2844
2869
|
);
|
|
2845
2870
|
function a() {
|
|
2846
2871
|
if (s.value.length > 0)
|
|
2847
|
-
for (let
|
|
2848
|
-
const h = o.value[
|
|
2849
|
-
for (let
|
|
2850
|
-
const
|
|
2851
|
-
h.field ===
|
|
2872
|
+
for (let d = 0; d < o.value.length; d++) {
|
|
2873
|
+
const h = o.value[d];
|
|
2874
|
+
for (let l = 0; l < s.value.length; l++) {
|
|
2875
|
+
const c = s.value[l];
|
|
2876
|
+
h.field === c.field && (h.order = c.order);
|
|
2852
2877
|
}
|
|
2853
2878
|
}
|
|
2854
2879
|
else
|
|
2855
|
-
for (let
|
|
2856
|
-
o.value[
|
|
2880
|
+
for (let d = 0; d < o.value.length; d++)
|
|
2881
|
+
o.value[d].order = "";
|
|
2857
2882
|
}
|
|
2858
|
-
function i(
|
|
2859
|
-
const
|
|
2860
|
-
h ? d
|
|
2883
|
+
function i(d, h) {
|
|
2884
|
+
const l = o.value;
|
|
2885
|
+
h ? l[d].order = h : l[d].order ? l[d].order === "ASC" ? l[d].order = "DESC" : l[d].order === "DESC" && (l[d].order = "") : l[d].order = "ASC", n(
|
|
2861
2886
|
"updateSorters",
|
|
2862
|
-
|
|
2887
|
+
l.filter((c) => c.order)
|
|
2863
2888
|
);
|
|
2864
2889
|
}
|
|
2865
|
-
return (
|
|
2866
|
-
(
|
|
2890
|
+
return (d, h) => (p(), x("div", Pa, [
|
|
2891
|
+
(p(!0), x(P, null, q(o.value, (l, c) => (p(), x("div", {
|
|
2867
2892
|
class: "sorters-item",
|
|
2868
|
-
onClick: (
|
|
2893
|
+
onClick: (b) => i(c, "")
|
|
2869
2894
|
}, [
|
|
2870
|
-
C("div",
|
|
2871
|
-
C("div",
|
|
2895
|
+
C("div", Ba, j(l.name), 1),
|
|
2896
|
+
C("div", Va, [
|
|
2872
2897
|
C("i", {
|
|
2873
|
-
class: he(["sort-caret ascending",
|
|
2874
|
-
onClick: Tt((
|
|
2875
|
-
}, null, 10,
|
|
2898
|
+
class: he(["sort-caret ascending", l.order === "ASC" ? "ascending-active" : ""]),
|
|
2899
|
+
onClick: Tt((b) => i(c, "ASC"), ["stop"])
|
|
2900
|
+
}, null, 10, Na),
|
|
2876
2901
|
C("i", {
|
|
2877
|
-
class: he(["sort-caret descending",
|
|
2878
|
-
onClick: Tt((
|
|
2879
|
-
}, null, 10,
|
|
2902
|
+
class: he(["sort-caret descending", l.order === "DESC" ? "descending-active" : ""]),
|
|
2903
|
+
onClick: Tt((b) => i(c, "DESC"), ["stop"])
|
|
2904
|
+
}, null, 10, Ia)
|
|
2880
2905
|
])
|
|
2881
|
-
], 8,
|
|
2906
|
+
], 8, ja))), 256))
|
|
2882
2907
|
]));
|
|
2883
2908
|
}
|
|
2884
|
-
},
|
|
2909
|
+
}, Ua = /* @__PURE__ */ V(Ma, [["__scopeId", "data-v-fa20b02a"]]), za = { class: "ranges-box" }, Ha = { class: "range-item" }, qa = { class: "range-label" }, Wa = { class: "range-input-box" }, Qa = {
|
|
2885
2910
|
__name: "FiltersRange",
|
|
2886
2911
|
props: {
|
|
2887
2912
|
ranges: {
|
|
@@ -2896,8 +2921,8 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2896
2921
|
},
|
|
2897
2922
|
emits: ["updateRanges"],
|
|
2898
2923
|
setup(t, { emit: e }) {
|
|
2899
|
-
const n = e, s = t, o =
|
|
2900
|
-
|
|
2924
|
+
const n = e, s = t, o = xe(s.ranges.rangesList);
|
|
2925
|
+
B(
|
|
2901
2926
|
() => s.value,
|
|
2902
2927
|
() => {
|
|
2903
2928
|
r();
|
|
@@ -2905,50 +2930,50 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2905
2930
|
);
|
|
2906
2931
|
function r() {
|
|
2907
2932
|
s.value && s.value.length > 0 ? o.forEach((i) => {
|
|
2908
|
-
s.value.forEach((
|
|
2909
|
-
i.field ===
|
|
2933
|
+
s.value.forEach((d) => {
|
|
2934
|
+
i.field === d.field && (i.min = d.min ? Number(d.min) : null, i.max = d.max ? Number(d.max) : null);
|
|
2910
2935
|
});
|
|
2911
2936
|
}) : o.forEach((i) => {
|
|
2912
2937
|
i.min = null, i.max = null;
|
|
2913
2938
|
});
|
|
2914
2939
|
}
|
|
2915
|
-
function a(i,
|
|
2916
|
-
const
|
|
2917
|
-
|
|
2918
|
-
|
|
2940
|
+
function a(i, d, h) {
|
|
2941
|
+
const l = [...o];
|
|
2942
|
+
l.forEach((c) => {
|
|
2943
|
+
c.field === d && (c[h] = i);
|
|
2919
2944
|
}), n(
|
|
2920
2945
|
"updateRanges",
|
|
2921
|
-
|
|
2946
|
+
l.filter((c) => c.min || c.max)
|
|
2922
2947
|
);
|
|
2923
2948
|
}
|
|
2924
|
-
return r(), (i,
|
|
2925
|
-
(
|
|
2926
|
-
C("div",
|
|
2927
|
-
C("div",
|
|
2928
|
-
|
|
2949
|
+
return r(), (i, d) => (p(), x("div", za, [
|
|
2950
|
+
(p(!0), x(P, null, q(o, (h) => (p(), x("div", Ha, [
|
|
2951
|
+
C("div", qa, j(h.name), 1),
|
|
2952
|
+
C("div", Wa, [
|
|
2953
|
+
O(m(Pt), {
|
|
2929
2954
|
modelValue: h.min,
|
|
2930
|
-
"onUpdate:modelValue": (
|
|
2955
|
+
"onUpdate:modelValue": (l) => h.min = l,
|
|
2931
2956
|
"controls-position": "right",
|
|
2932
2957
|
class: "input-box",
|
|
2933
|
-
onChange: (
|
|
2934
|
-
a(
|
|
2958
|
+
onChange: (l) => {
|
|
2959
|
+
a(l, h.field, "min");
|
|
2935
2960
|
}
|
|
2936
2961
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
|
|
2937
|
-
|
|
2962
|
+
O(m(Pt), {
|
|
2938
2963
|
modelValue: h.max,
|
|
2939
|
-
"onUpdate:modelValue": (
|
|
2964
|
+
"onUpdate:modelValue": (l) => h.max = l,
|
|
2940
2965
|
"controls-position": "right",
|
|
2941
2966
|
class: "input-box",
|
|
2942
2967
|
type: "number",
|
|
2943
|
-
onChange: (
|
|
2944
|
-
a(
|
|
2968
|
+
onChange: (l) => {
|
|
2969
|
+
a(l, h.field, "max");
|
|
2945
2970
|
}
|
|
2946
2971
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
2947
2972
|
])
|
|
2948
2973
|
]))), 256))
|
|
2949
2974
|
]));
|
|
2950
2975
|
}
|
|
2951
|
-
},
|
|
2976
|
+
}, Ja = /* @__PURE__ */ V(Qa, [["__scopeId", "data-v-30f46526"]]), Ya = { key: 0 }, Ga = {
|
|
2952
2977
|
__name: "FiltersEditor",
|
|
2953
2978
|
props: {
|
|
2954
2979
|
settings: {
|
|
@@ -2960,137 +2985,137 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
2960
2985
|
label: "name",
|
|
2961
2986
|
children: "children",
|
|
2962
2987
|
value: "id"
|
|
2963
|
-
}, s = U(), o = Q(s), r = D([]), a =
|
|
2988
|
+
}, s = U(), o = Q(s), r = D([]), a = xe({}), i = xe({}), d = Pe(
|
|
2964
2989
|
e.settings.code,
|
|
2965
2990
|
s.path,
|
|
2966
2991
|
e.settings.filters,
|
|
2967
2992
|
e.settings.filterHook
|
|
2968
2993
|
)();
|
|
2969
|
-
|
|
2970
|
-
|
|
2994
|
+
d.$subscribe((u, w) => {
|
|
2995
|
+
w.filters.isDeleted !== a.isDeleted && (Object.keys(a).forEach((_) => {
|
|
2971
2996
|
a[_] = void 0;
|
|
2972
|
-
}), a.isDeleted =
|
|
2997
|
+
}), a.isDeleted = w.filters.isDeleted);
|
|
2973
2998
|
});
|
|
2974
|
-
function h(
|
|
2975
|
-
return typeof
|
|
2999
|
+
function h(u) {
|
|
3000
|
+
return typeof u == "boolean" ? u : typeof u == "function" ? u(o) : !0;
|
|
2976
3001
|
}
|
|
2977
|
-
async function
|
|
3002
|
+
async function l(u, w) {
|
|
2978
3003
|
var _;
|
|
2979
|
-
if (typeof
|
|
2980
|
-
i[
|
|
3004
|
+
if (typeof u.options == "function")
|
|
3005
|
+
i[u.code] = await u.options(
|
|
2981
3006
|
a,
|
|
2982
3007
|
o,
|
|
2983
|
-
|
|
3008
|
+
w
|
|
2984
3009
|
);
|
|
2985
|
-
else if (Array.isArray(
|
|
2986
|
-
i[
|
|
2987
|
-
else if (typeof
|
|
2988
|
-
const
|
|
2989
|
-
if (!
|
|
2990
|
-
i[
|
|
2991
|
-
|
|
2992
|
-
i[
|
|
2993
|
-
code: K.data[
|
|
2994
|
-
name: K.data[
|
|
3010
|
+
else if (Array.isArray(u.options))
|
|
3011
|
+
i[u.code] = u.options;
|
|
3012
|
+
else if (typeof u.options == "object") {
|
|
3013
|
+
const A = u.options.getOneUrl ? u.options.getOneUrl : u.options.url;
|
|
3014
|
+
if (!w && Array.isArray(a[u.code]) && a[u.code].length > 0)
|
|
3015
|
+
i[u.code] = [], a[u.code].forEach((R) => {
|
|
3016
|
+
A.getOne({ id: R }).then((K) => {
|
|
3017
|
+
i[u.code].push({
|
|
3018
|
+
code: K.data[u.options.data.value] || K.data.id,
|
|
3019
|
+
name: K.data[u.options.data.label] || K.data.name
|
|
2995
3020
|
});
|
|
2996
3021
|
});
|
|
2997
3022
|
});
|
|
2998
|
-
else if (!
|
|
2999
|
-
|
|
3000
|
-
i[
|
|
3023
|
+
else if (!w && !Array.isArray(a[u.code]) && a[u.code])
|
|
3024
|
+
A.getOne({ id: a[u.code] }).then((R) => {
|
|
3025
|
+
i[u.code] = [
|
|
3001
3026
|
{
|
|
3002
|
-
code: R.data[
|
|
3003
|
-
name: R.data[
|
|
3027
|
+
code: R.data[u.options.data.value] || R.data.id,
|
|
3028
|
+
name: R.data[u.options.data.label] || R.data.name
|
|
3004
3029
|
}
|
|
3005
3030
|
];
|
|
3006
3031
|
});
|
|
3007
3032
|
else {
|
|
3008
|
-
const R =
|
|
3009
|
-
|
|
3010
|
-
...
|
|
3011
|
-
[R]:
|
|
3033
|
+
const R = u.options.query.keyWord.toString(), K = u.options.method ? u.options.method : "getList";
|
|
3034
|
+
u.options.url[K]({
|
|
3035
|
+
...u.options.query,
|
|
3036
|
+
[R]: w
|
|
3012
3037
|
}).then((M) => {
|
|
3013
|
-
i[
|
|
3014
|
-
code: Y[
|
|
3015
|
-
name: Y[
|
|
3038
|
+
i[u.code] = M.data.rows.map((Y) => ({
|
|
3039
|
+
code: Y[u.options.data.value] || Y.id,
|
|
3040
|
+
name: Y[u.options.data.label] || Y.name
|
|
3016
3041
|
}));
|
|
3017
3042
|
});
|
|
3018
3043
|
}
|
|
3019
3044
|
}
|
|
3020
|
-
if (i[
|
|
3021
|
-
const
|
|
3022
|
-
a[
|
|
3023
|
-
(R) => R.code == a[
|
|
3045
|
+
if (i[u.code] && u.type != "tree-select") {
|
|
3046
|
+
const A = i[u.code].map((R) => R.code);
|
|
3047
|
+
a[u.code] && (u.multiple ? a[u.code] = a[u.code].filter((R) => (console.log(A.includes(R)), A.includes(R))) : a[u.code] = (_ = i[u.code].find(
|
|
3048
|
+
(R) => R.code == a[u.code]
|
|
3024
3049
|
)) == null ? void 0 : _.code, g());
|
|
3025
3050
|
}
|
|
3026
3051
|
}
|
|
3027
|
-
function u
|
|
3028
|
-
if (
|
|
3029
|
-
return (
|
|
3030
|
-
|
|
3052
|
+
function c(u) {
|
|
3053
|
+
if (u.remote)
|
|
3054
|
+
return (w) => {
|
|
3055
|
+
l(u, w);
|
|
3031
3056
|
};
|
|
3032
3057
|
}
|
|
3033
|
-
function
|
|
3034
|
-
a.sorters =
|
|
3058
|
+
function b(u) {
|
|
3059
|
+
a.sorters = u, g();
|
|
3035
3060
|
}
|
|
3036
|
-
function
|
|
3037
|
-
a.filters =
|
|
3061
|
+
function k(u) {
|
|
3062
|
+
a.filters = u;
|
|
3038
3063
|
}
|
|
3039
3064
|
function y() {
|
|
3040
|
-
Object.keys(a).forEach((
|
|
3041
|
-
a[
|
|
3042
|
-
}), r.value = Object.keys(e.settings.filters).filter((
|
|
3043
|
-
const
|
|
3044
|
-
return a[
|
|
3045
|
-
...
|
|
3046
|
-
dateType:
|
|
3047
|
-
format:
|
|
3065
|
+
Object.keys(a).forEach((u) => {
|
|
3066
|
+
a[u] = void 0;
|
|
3067
|
+
}), r.value = Object.keys(e.settings.filters).filter((u) => h(e.settings.filters[u].visible)).map((u) => {
|
|
3068
|
+
const w = { ...e.settings.filters[u], code: u };
|
|
3069
|
+
return a[u] = f(u), (w.type === "select" || w.type === "selectV2" || w.type === "tree" || w.type === "tree-select") && l(w), {
|
|
3070
|
+
...w,
|
|
3071
|
+
dateType: w.dateType || "datetimerange",
|
|
3072
|
+
format: w.format || "YYYY-MM-DD HH:mm:ss"
|
|
3048
3073
|
};
|
|
3049
|
-
}).filter((
|
|
3074
|
+
}).filter((u) => u.code !== "isDeleted");
|
|
3050
3075
|
}
|
|
3051
|
-
function
|
|
3052
|
-
const
|
|
3053
|
-
return
|
|
3076
|
+
function f(u) {
|
|
3077
|
+
const w = e.settings.filters[u], _ = d.validFilters[u];
|
|
3078
|
+
return w.type === "boolean" && typeof _ != "boolean" ? w.value : _;
|
|
3054
3079
|
}
|
|
3055
3080
|
function g() {
|
|
3056
|
-
let
|
|
3057
|
-
const
|
|
3058
|
-
|
|
3081
|
+
let u = JSON.parse(JSON.stringify(a));
|
|
3082
|
+
const w = e.settings.filterHook;
|
|
3083
|
+
w != null && w.preSubmit && (u = w.preSubmit(u, o)), u !== !1 && d.change(u);
|
|
3059
3084
|
}
|
|
3060
3085
|
function $() {
|
|
3061
|
-
|
|
3086
|
+
d.$reset({}), y(), g();
|
|
3062
3087
|
}
|
|
3063
|
-
return
|
|
3088
|
+
return B(
|
|
3064
3089
|
() => e.settings,
|
|
3065
3090
|
() => {
|
|
3066
3091
|
y(), g();
|
|
3067
3092
|
},
|
|
3068
3093
|
{ immediate: !0 }
|
|
3069
|
-
),
|
|
3094
|
+
), B(
|
|
3070
3095
|
() => ({ ...a }),
|
|
3071
|
-
(
|
|
3072
|
-
const
|
|
3096
|
+
(u, w) => {
|
|
3097
|
+
const A = Object.keys(u).filter((R) => w[R] !== u[R]).map((R) => ({
|
|
3073
3098
|
field: R,
|
|
3074
|
-
newValue:
|
|
3075
|
-
oldValue:
|
|
3099
|
+
newValue: u[R],
|
|
3100
|
+
oldValue: w[R]
|
|
3076
3101
|
}));
|
|
3077
3102
|
r.value.forEach((R) => {
|
|
3078
|
-
R.formChange && R.formChange(a,
|
|
3103
|
+
R.formChange && R.formChange(a, A);
|
|
3079
3104
|
});
|
|
3080
3105
|
}
|
|
3081
|
-
), (
|
|
3082
|
-
|
|
3106
|
+
), (u, w) => Object.keys(e.settings.filters).length > 0 ? (p(), x("div", Ya, [
|
|
3107
|
+
O(m(hn), {
|
|
3083
3108
|
model: a,
|
|
3084
3109
|
inline: "",
|
|
3085
3110
|
class: "form-editor"
|
|
3086
3111
|
}, {
|
|
3087
3112
|
default: E(() => [
|
|
3088
|
-
(
|
|
3113
|
+
(p(!0), x(P, null, q(r.value, (_) => (p(), S(m(ot), null, {
|
|
3089
3114
|
default: E(() => [
|
|
3090
|
-
_.type === "boolean" ? (
|
|
3115
|
+
_.type === "boolean" ? (p(), S(m(jt), {
|
|
3091
3116
|
key: 0,
|
|
3092
3117
|
modelValue: a[_.code],
|
|
3093
|
-
"onUpdate:modelValue": (
|
|
3118
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3094
3119
|
filterable: "",
|
|
3095
3120
|
clearable: "",
|
|
3096
3121
|
placeholder: `是否${_.name}`,
|
|
@@ -3098,20 +3123,20 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3098
3123
|
onChange: g
|
|
3099
3124
|
}, {
|
|
3100
3125
|
default: E(() => [
|
|
3101
|
-
|
|
3126
|
+
O(m(Ke), {
|
|
3102
3127
|
value: !0,
|
|
3103
3128
|
label: `已${_.name}`
|
|
3104
3129
|
}, null, 8, ["label"]),
|
|
3105
|
-
|
|
3130
|
+
O(m(Ke), {
|
|
3106
3131
|
value: !1,
|
|
3107
3132
|
label: `未${_.name}`
|
|
3108
3133
|
}, null, 8, ["label"])
|
|
3109
3134
|
]),
|
|
3110
3135
|
_: 2
|
|
3111
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "select" ? (
|
|
3136
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "select" ? (p(), S(m(jt), {
|
|
3112
3137
|
key: 1,
|
|
3113
3138
|
modelValue: a[_.code],
|
|
3114
|
-
"onUpdate:modelValue": (
|
|
3139
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3115
3140
|
filterable: "",
|
|
3116
3141
|
clearable: "",
|
|
3117
3142
|
remote: "",
|
|
@@ -3123,23 +3148,23 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3123
3148
|
"collapse-tags": "",
|
|
3124
3149
|
class: he(_.multiple ? "tags-selects-input" : ""),
|
|
3125
3150
|
"multiple-limit": _.multipleLimit ? _.multipleLimit : 0,
|
|
3126
|
-
"remote-method":
|
|
3151
|
+
"remote-method": c(_),
|
|
3127
3152
|
"value-on-clear": null,
|
|
3128
3153
|
onChange: g
|
|
3129
3154
|
}, {
|
|
3130
3155
|
default: E(() => [
|
|
3131
|
-
(
|
|
3132
|
-
key:
|
|
3133
|
-
label:
|
|
3134
|
-
value:
|
|
3135
|
-
title:
|
|
3156
|
+
(p(!0), x(P, null, q(i[_.code], (A) => (p(), S(m(Ke), {
|
|
3157
|
+
key: A.code,
|
|
3158
|
+
label: A.name,
|
|
3159
|
+
value: A.code,
|
|
3160
|
+
title: A.name
|
|
3136
3161
|
}, null, 8, ["label", "value", "title"]))), 128))
|
|
3137
3162
|
]),
|
|
3138
3163
|
_: 2
|
|
3139
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : _.type === "selectV2" ? (
|
|
3164
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : _.type === "selectV2" ? (p(), S(m(us), {
|
|
3140
3165
|
key: 2,
|
|
3141
3166
|
modelValue: a[_.code],
|
|
3142
|
-
"onUpdate:modelValue": (
|
|
3167
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3143
3168
|
filterable: "",
|
|
3144
3169
|
options: i[_.code] ? i[_.code] : [],
|
|
3145
3170
|
props: { label: "name", value: "code" },
|
|
@@ -3148,20 +3173,20 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3148
3173
|
clearable: "",
|
|
3149
3174
|
"value-on-clear": null,
|
|
3150
3175
|
onChange: g
|
|
3151
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : _.type === "sorters" ? (
|
|
3176
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : _.type === "sorters" ? (p(), S(Ua, {
|
|
3152
3177
|
key: 3,
|
|
3153
3178
|
value: a[_.code],
|
|
3154
3179
|
sorters: _,
|
|
3155
|
-
onUpdateSorters:
|
|
3156
|
-
}, null, 8, ["value", "sorters"])) : _.type === "range" ? (
|
|
3180
|
+
onUpdateSorters: b
|
|
3181
|
+
}, null, 8, ["value", "sorters"])) : _.type === "range" ? (p(), S(Ja, {
|
|
3157
3182
|
key: 4,
|
|
3158
3183
|
value: a[_.code],
|
|
3159
3184
|
ranges: _,
|
|
3160
|
-
onUpdateRanges:
|
|
3161
|
-
}, null, 8, ["value", "ranges"])) : _.type === "tree-select" ? (
|
|
3185
|
+
onUpdateRanges: k
|
|
3186
|
+
}, null, 8, ["value", "ranges"])) : _.type === "tree-select" ? (p(), S(m(cs), {
|
|
3162
3187
|
key: 5,
|
|
3163
3188
|
modelValue: a[_.code],
|
|
3164
|
-
"onUpdate:modelValue": (
|
|
3189
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3165
3190
|
placeholder: _.name,
|
|
3166
3191
|
data: i[_.code],
|
|
3167
3192
|
props: n,
|
|
@@ -3178,39 +3203,39 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3178
3203
|
filterable: "",
|
|
3179
3204
|
"collapse-tags": "",
|
|
3180
3205
|
"multiple-limit": _.multipleLimit ? _.multipleLimit : 0,
|
|
3181
|
-
"remote-method":
|
|
3206
|
+
"remote-method": c(_),
|
|
3182
3207
|
onCheck: g,
|
|
3183
3208
|
onChange: g
|
|
3184
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "data", "multiple", "check-strictly", "multiple-limit", "remote-method"])) : _.type === "date" ? (
|
|
3209
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "data", "multiple", "check-strictly", "multiple-limit", "remote-method"])) : _.type === "date" ? (p(), S(m(Xe), {
|
|
3185
3210
|
key: 6,
|
|
3186
3211
|
modelValue: a[_.code],
|
|
3187
|
-
"onUpdate:modelValue": (
|
|
3212
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3188
3213
|
type: "date",
|
|
3189
3214
|
format: "YYYY-MM-DD",
|
|
3190
3215
|
"value-format": "YYYY-MM-DD",
|
|
3191
3216
|
placeholder: _.name
|
|
3192
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime" ? (
|
|
3217
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime" ? (p(), S(m(Xe), {
|
|
3193
3218
|
key: 7,
|
|
3194
3219
|
modelValue: a[_.code],
|
|
3195
|
-
"onUpdate:modelValue": (
|
|
3220
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3196
3221
|
type: "datetime",
|
|
3197
3222
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
3198
3223
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
3199
3224
|
placeholder: _.name
|
|
3200
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime-range" ? (
|
|
3225
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime-range" ? (p(), S(m(Xe), {
|
|
3201
3226
|
key: 8,
|
|
3202
3227
|
modelValue: a[_.code],
|
|
3203
|
-
"onUpdate:modelValue": (
|
|
3228
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3204
3229
|
type: _.dateType,
|
|
3205
3230
|
format: _.format,
|
|
3206
3231
|
"value-format": _.format,
|
|
3207
3232
|
"start-placeholder": _.name,
|
|
3208
3233
|
"end-placeholder": _.name,
|
|
3209
3234
|
placeholder: _.name
|
|
3210
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (
|
|
3235
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (p(), S(m(ds), {
|
|
3211
3236
|
key: 9,
|
|
3212
3237
|
modelValue: a[_.code],
|
|
3213
|
-
"onUpdate:modelValue": (
|
|
3238
|
+
"onUpdate:modelValue": (A) => a[_.code] = A,
|
|
3214
3239
|
modelModifiers: { trim: !0 },
|
|
3215
3240
|
placeholder: _.name,
|
|
3216
3241
|
type: _.type,
|
|
@@ -3219,9 +3244,9 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3219
3244
|
]),
|
|
3220
3245
|
_: 2
|
|
3221
3246
|
}, 1024))), 256)),
|
|
3222
|
-
r.value.length > 0 ? (
|
|
3247
|
+
r.value.length > 0 ? (p(), S(m(ot), { key: 0 }, {
|
|
3223
3248
|
default: E(() => [
|
|
3224
|
-
|
|
3249
|
+
O(m(ne), {
|
|
3225
3250
|
type: "primary",
|
|
3226
3251
|
onClick: g
|
|
3227
3252
|
}, {
|
|
@@ -3230,7 +3255,7 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3230
3255
|
]),
|
|
3231
3256
|
_: 1
|
|
3232
3257
|
}),
|
|
3233
|
-
|
|
3258
|
+
O(m(ne), { onClick: $ }, {
|
|
3234
3259
|
default: E(() => [
|
|
3235
3260
|
N(" 重置 ")
|
|
3236
3261
|
]),
|
|
@@ -3244,13 +3269,13 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
|
|
|
3244
3269
|
}, 8, ["model"])
|
|
3245
3270
|
])) : L("", !0);
|
|
3246
3271
|
}
|
|
3247
|
-
},
|
|
3272
|
+
}, Ka = /* @__PURE__ */ V(Ga, [["__scopeId", "data-v-30b12d36"]]);
|
|
3248
3273
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
3249
|
-
var
|
|
3274
|
+
var Xa = /* @__PURE__ */ W({
|
|
3250
3275
|
name: "ArrowDown",
|
|
3251
3276
|
__name: "arrow-down",
|
|
3252
3277
|
setup(t) {
|
|
3253
|
-
return (e, n) => (
|
|
3278
|
+
return (e, n) => (p(), x("svg", {
|
|
3254
3279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3255
3280
|
viewBox: "0 0 1024 1024"
|
|
3256
3281
|
}, [
|
|
@@ -3260,11 +3285,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3260
3285
|
})
|
|
3261
3286
|
]));
|
|
3262
3287
|
}
|
|
3263
|
-
}),
|
|
3288
|
+
}), Za = Xa, er = /* @__PURE__ */ W({
|
|
3264
3289
|
name: "CircleCloseFilled",
|
|
3265
3290
|
__name: "circle-close-filled",
|
|
3266
3291
|
setup(t) {
|
|
3267
|
-
return (e, n) => (
|
|
3292
|
+
return (e, n) => (p(), x("svg", {
|
|
3268
3293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3269
3294
|
viewBox: "0 0 1024 1024"
|
|
3270
3295
|
}, [
|
|
@@ -3274,11 +3299,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3274
3299
|
})
|
|
3275
3300
|
]));
|
|
3276
3301
|
}
|
|
3277
|
-
}),
|
|
3302
|
+
}), gl = er, tr = /* @__PURE__ */ W({
|
|
3278
3303
|
name: "Close",
|
|
3279
3304
|
__name: "close",
|
|
3280
3305
|
setup(t) {
|
|
3281
|
-
return (e, n) => (
|
|
3306
|
+
return (e, n) => (p(), x("svg", {
|
|
3282
3307
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3283
3308
|
viewBox: "0 0 1024 1024"
|
|
3284
3309
|
}, [
|
|
@@ -3288,11 +3313,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3288
3313
|
})
|
|
3289
3314
|
]));
|
|
3290
3315
|
}
|
|
3291
|
-
}),
|
|
3316
|
+
}), nr = tr, sr = /* @__PURE__ */ W({
|
|
3292
3317
|
name: "DArrowLeft",
|
|
3293
3318
|
__name: "d-arrow-left",
|
|
3294
3319
|
setup(t) {
|
|
3295
|
-
return (e, n) => (
|
|
3320
|
+
return (e, n) => (p(), x("svg", {
|
|
3296
3321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3297
3322
|
viewBox: "0 0 1024 1024"
|
|
3298
3323
|
}, [
|
|
@@ -3302,11 +3327,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3302
3327
|
})
|
|
3303
3328
|
]));
|
|
3304
3329
|
}
|
|
3305
|
-
}), Xt =
|
|
3330
|
+
}), Xt = sr, or = /* @__PURE__ */ W({
|
|
3306
3331
|
name: "DArrowRight",
|
|
3307
3332
|
__name: "d-arrow-right",
|
|
3308
3333
|
setup(t) {
|
|
3309
|
-
return (e, n) => (
|
|
3334
|
+
return (e, n) => (p(), x("svg", {
|
|
3310
3335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3311
3336
|
viewBox: "0 0 1024 1024"
|
|
3312
3337
|
}, [
|
|
@@ -3316,11 +3341,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3316
3341
|
})
|
|
3317
3342
|
]));
|
|
3318
3343
|
}
|
|
3319
|
-
}),
|
|
3344
|
+
}), ar = or, rr = /* @__PURE__ */ W({
|
|
3320
3345
|
name: "Delete",
|
|
3321
3346
|
__name: "delete",
|
|
3322
3347
|
setup(t) {
|
|
3323
|
-
return (e, n) => (
|
|
3348
|
+
return (e, n) => (p(), x("svg", {
|
|
3324
3349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3325
3350
|
viewBox: "0 0 1024 1024"
|
|
3326
3351
|
}, [
|
|
@@ -3330,11 +3355,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3330
3355
|
})
|
|
3331
3356
|
]));
|
|
3332
3357
|
}
|
|
3333
|
-
}),
|
|
3358
|
+
}), yl = rr, ir = /* @__PURE__ */ W({
|
|
3334
3359
|
name: "Document",
|
|
3335
3360
|
__name: "document",
|
|
3336
3361
|
setup(t) {
|
|
3337
|
-
return (e, n) => (
|
|
3362
|
+
return (e, n) => (p(), x("svg", {
|
|
3338
3363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3339
3364
|
viewBox: "0 0 1024 1024"
|
|
3340
3365
|
}, [
|
|
@@ -3344,11 +3369,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3344
3369
|
})
|
|
3345
3370
|
]));
|
|
3346
3371
|
}
|
|
3347
|
-
}),
|
|
3372
|
+
}), _l = ir, lr = /* @__PURE__ */ W({
|
|
3348
3373
|
name: "Download",
|
|
3349
3374
|
__name: "download",
|
|
3350
3375
|
setup(t) {
|
|
3351
|
-
return (e, n) => (
|
|
3376
|
+
return (e, n) => (p(), x("svg", {
|
|
3352
3377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3353
3378
|
viewBox: "0 0 1024 1024"
|
|
3354
3379
|
}, [
|
|
@@ -3358,11 +3383,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3358
3383
|
})
|
|
3359
3384
|
]));
|
|
3360
3385
|
}
|
|
3361
|
-
}),
|
|
3386
|
+
}), vl = lr, ur = /* @__PURE__ */ W({
|
|
3362
3387
|
name: "Grid",
|
|
3363
3388
|
__name: "grid",
|
|
3364
3389
|
setup(t) {
|
|
3365
|
-
return (e, n) => (
|
|
3390
|
+
return (e, n) => (p(), x("svg", {
|
|
3366
3391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3367
3392
|
viewBox: "0 0 1024 1024"
|
|
3368
3393
|
}, [
|
|
@@ -3372,11 +3397,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3372
3397
|
})
|
|
3373
3398
|
]));
|
|
3374
3399
|
}
|
|
3375
|
-
}),
|
|
3400
|
+
}), cr = ur, dr = /* @__PURE__ */ W({
|
|
3376
3401
|
name: "Loading",
|
|
3377
3402
|
__name: "loading",
|
|
3378
3403
|
setup(t) {
|
|
3379
|
-
return (e, n) => (
|
|
3404
|
+
return (e, n) => (p(), x("svg", {
|
|
3380
3405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3381
3406
|
viewBox: "0 0 1024 1024"
|
|
3382
3407
|
}, [
|
|
@@ -3386,11 +3411,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3386
3411
|
})
|
|
3387
3412
|
]));
|
|
3388
3413
|
}
|
|
3389
|
-
}),
|
|
3414
|
+
}), bl = dr, pr = /* @__PURE__ */ W({
|
|
3390
3415
|
name: "Minus",
|
|
3391
3416
|
__name: "minus",
|
|
3392
3417
|
setup(t) {
|
|
3393
|
-
return (e, n) => (
|
|
3418
|
+
return (e, n) => (p(), x("svg", {
|
|
3394
3419
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3395
3420
|
viewBox: "0 0 1024 1024"
|
|
3396
3421
|
}, [
|
|
@@ -3400,11 +3425,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3400
3425
|
})
|
|
3401
3426
|
]));
|
|
3402
3427
|
}
|
|
3403
|
-
}),
|
|
3428
|
+
}), fr = pr, mr = /* @__PURE__ */ W({
|
|
3404
3429
|
name: "Operation",
|
|
3405
3430
|
__name: "operation",
|
|
3406
3431
|
setup(t) {
|
|
3407
|
-
return (e, n) => (
|
|
3432
|
+
return (e, n) => (p(), x("svg", {
|
|
3408
3433
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3409
3434
|
viewBox: "0 0 1024 1024"
|
|
3410
3435
|
}, [
|
|
@@ -3414,11 +3439,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3414
3439
|
})
|
|
3415
3440
|
]));
|
|
3416
3441
|
}
|
|
3417
|
-
}),
|
|
3442
|
+
}), hr = mr, gr = /* @__PURE__ */ W({
|
|
3418
3443
|
name: "Plus",
|
|
3419
3444
|
__name: "plus",
|
|
3420
3445
|
setup(t) {
|
|
3421
|
-
return (e, n) => (
|
|
3446
|
+
return (e, n) => (p(), x("svg", {
|
|
3422
3447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3423
3448
|
viewBox: "0 0 1024 1024"
|
|
3424
3449
|
}, [
|
|
@@ -3428,11 +3453,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3428
3453
|
})
|
|
3429
3454
|
]));
|
|
3430
3455
|
}
|
|
3431
|
-
}),
|
|
3456
|
+
}), wl = gr, yr = /* @__PURE__ */ W({
|
|
3432
3457
|
name: "PriceTag",
|
|
3433
3458
|
__name: "price-tag",
|
|
3434
3459
|
setup(t) {
|
|
3435
|
-
return (e, n) => (
|
|
3460
|
+
return (e, n) => (p(), x("svg", {
|
|
3436
3461
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3437
3462
|
viewBox: "0 0 1024 1024"
|
|
3438
3463
|
}, [
|
|
@@ -3446,11 +3471,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3446
3471
|
})
|
|
3447
3472
|
]));
|
|
3448
3473
|
}
|
|
3449
|
-
}), Zt =
|
|
3474
|
+
}), Zt = yr, _r = /* @__PURE__ */ W({
|
|
3450
3475
|
name: "QuestionFilled",
|
|
3451
3476
|
__name: "question-filled",
|
|
3452
3477
|
setup(t) {
|
|
3453
|
-
return (e, n) => (
|
|
3478
|
+
return (e, n) => (p(), x("svg", {
|
|
3454
3479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3455
3480
|
viewBox: "0 0 1024 1024"
|
|
3456
3481
|
}, [
|
|
@@ -3460,11 +3485,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3460
3485
|
})
|
|
3461
3486
|
]));
|
|
3462
3487
|
}
|
|
3463
|
-
}),
|
|
3488
|
+
}), El = _r, vr = /* @__PURE__ */ W({
|
|
3464
3489
|
name: "Setting",
|
|
3465
3490
|
__name: "setting",
|
|
3466
3491
|
setup(t) {
|
|
3467
|
-
return (e, n) => (
|
|
3492
|
+
return (e, n) => (p(), x("svg", {
|
|
3468
3493
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3469
3494
|
viewBox: "0 0 1024 1024"
|
|
3470
3495
|
}, [
|
|
@@ -3474,11 +3499,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3474
3499
|
})
|
|
3475
3500
|
]));
|
|
3476
3501
|
}
|
|
3477
|
-
}),
|
|
3502
|
+
}), br = vr, wr = /* @__PURE__ */ W({
|
|
3478
3503
|
name: "SuccessFilled",
|
|
3479
3504
|
__name: "success-filled",
|
|
3480
3505
|
setup(t) {
|
|
3481
|
-
return (e, n) => (
|
|
3506
|
+
return (e, n) => (p(), x("svg", {
|
|
3482
3507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3483
3508
|
viewBox: "0 0 1024 1024"
|
|
3484
3509
|
}, [
|
|
@@ -3488,11 +3513,11 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3488
3513
|
})
|
|
3489
3514
|
]));
|
|
3490
3515
|
}
|
|
3491
|
-
}),
|
|
3516
|
+
}), $l = wr, Er = /* @__PURE__ */ W({
|
|
3492
3517
|
name: "View",
|
|
3493
3518
|
__name: "view",
|
|
3494
3519
|
setup(t) {
|
|
3495
|
-
return (e, n) => (
|
|
3520
|
+
return (e, n) => (p(), x("svg", {
|
|
3496
3521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3497
3522
|
viewBox: "0 0 1024 1024"
|
|
3498
3523
|
}, [
|
|
@@ -3502,8 +3527,8 @@ var Ga = /* @__PURE__ */ W({
|
|
|
3502
3527
|
})
|
|
3503
3528
|
]));
|
|
3504
3529
|
}
|
|
3505
|
-
}),
|
|
3506
|
-
const
|
|
3530
|
+
}), Sl = Er;
|
|
3531
|
+
const $r = { class: "data-page-title" }, Sr = { class: "title" }, xr = { class: "data-page-toolbar" }, Or = {
|
|
3507
3532
|
__name: "DataTableHeader",
|
|
3508
3533
|
props: {
|
|
3509
3534
|
settings: {
|
|
@@ -3519,52 +3544,52 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3519
3544
|
s.path,
|
|
3520
3545
|
e.settings.filters,
|
|
3521
3546
|
e.settings.filterHook
|
|
3522
|
-
)(), a = Re(), i = I(() => r.validFilters.isDeleted || !1),
|
|
3547
|
+
)(), a = Re(), i = I(() => r.validFilters.isDeleted || !1), d = I(() => e.settings.displayMode.normalMode);
|
|
3523
3548
|
function h() {
|
|
3524
3549
|
r.$reset({ isDeleted: !i.value });
|
|
3525
3550
|
}
|
|
3526
|
-
function
|
|
3527
|
-
const
|
|
3528
|
-
o.change(
|
|
3529
|
-
}
|
|
3530
|
-
function
|
|
3531
|
-
o.change(
|
|
3532
|
-
const
|
|
3533
|
-
localStorage.setItem(
|
|
3534
|
-
}
|
|
3535
|
-
return dn(
|
|
3536
|
-
C("div",
|
|
3537
|
-
C("div",
|
|
3538
|
-
C("div",
|
|
3539
|
-
|
|
3551
|
+
function l() {
|
|
3552
|
+
const b = `table-view-${s.path}-${e.settings.code}`, k = localStorage.getItem(b) ? localStorage.getItem(b) : d.value;
|
|
3553
|
+
o.change(k);
|
|
3554
|
+
}
|
|
3555
|
+
function c(b) {
|
|
3556
|
+
o.change(b);
|
|
3557
|
+
const k = `table-view-${s.path}-${e.settings.code}`;
|
|
3558
|
+
localStorage.setItem(k, o.mode);
|
|
3559
|
+
}
|
|
3560
|
+
return dn(l), (b, k) => (p(), x(P, null, [
|
|
3561
|
+
C("div", $r, [
|
|
3562
|
+
C("div", Sr, j(i.value ? `已删除的${m(n)}` : m(n)), 1),
|
|
3563
|
+
C("div", xr, [
|
|
3564
|
+
m(a).operations ? (p(), S(m(pe), {
|
|
3540
3565
|
key: 0,
|
|
3541
3566
|
class: "button-groups"
|
|
3542
3567
|
}, {
|
|
3543
3568
|
default: E(() => [
|
|
3544
|
-
J(
|
|
3569
|
+
J(b.$slots, "operations", {}, void 0, !0)
|
|
3545
3570
|
]),
|
|
3546
3571
|
_: 3
|
|
3547
3572
|
})) : L("", !0),
|
|
3548
|
-
|
|
3573
|
+
O(m(pe), { class: "button-groups" }, {
|
|
3549
3574
|
default: E(() => [
|
|
3550
|
-
J(
|
|
3575
|
+
J(b.$slots, "tools", {}, void 0, !0)
|
|
3551
3576
|
]),
|
|
3552
3577
|
_: 3
|
|
3553
3578
|
}),
|
|
3554
|
-
|
|
3579
|
+
O(m(at), {
|
|
3555
3580
|
trigger: "click",
|
|
3556
|
-
onCommand:
|
|
3581
|
+
onCommand: c
|
|
3557
3582
|
}, {
|
|
3558
3583
|
dropdown: E(() => [
|
|
3559
|
-
|
|
3584
|
+
O(m(rt), null, {
|
|
3560
3585
|
default: E(() => [
|
|
3561
|
-
|
|
3586
|
+
O(m(ue), { command: "list" }, {
|
|
3562
3587
|
default: E(() => [
|
|
3563
3588
|
N(" 列表 ")
|
|
3564
3589
|
]),
|
|
3565
3590
|
_: 1
|
|
3566
3591
|
}),
|
|
3567
|
-
|
|
3592
|
+
O(m(ue), { command: "grid" }, {
|
|
3568
3593
|
default: E(() => [
|
|
3569
3594
|
N(" 网格 ")
|
|
3570
3595
|
]),
|
|
@@ -3575,17 +3600,17 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3575
3600
|
})
|
|
3576
3601
|
]),
|
|
3577
3602
|
default: E(() => [
|
|
3578
|
-
|
|
3603
|
+
O(m(ne), null, {
|
|
3579
3604
|
default: E(() => [
|
|
3580
|
-
|
|
3605
|
+
O(m(G), null, {
|
|
3581
3606
|
default: E(() => [
|
|
3582
|
-
|
|
3607
|
+
O(m(cr))
|
|
3583
3608
|
]),
|
|
3584
3609
|
_: 1
|
|
3585
3610
|
}),
|
|
3586
|
-
|
|
3611
|
+
O(m(G), { class: "el-icon--right" }, {
|
|
3587
3612
|
default: E(() => [
|
|
3588
|
-
|
|
3613
|
+
O(m(Za))
|
|
3589
3614
|
]),
|
|
3590
3615
|
_: 1
|
|
3591
3616
|
})
|
|
@@ -3595,19 +3620,19 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3595
3620
|
]),
|
|
3596
3621
|
_: 1
|
|
3597
3622
|
}),
|
|
3598
|
-
e.settings.filters.isDeleted ? (
|
|
3623
|
+
e.settings.filters.isDeleted ? (p(), S(m(at), {
|
|
3599
3624
|
key: 1,
|
|
3600
3625
|
trigger: "click"
|
|
3601
3626
|
}, {
|
|
3602
3627
|
dropdown: E(() => [
|
|
3603
|
-
|
|
3628
|
+
O(m(rt), null, {
|
|
3604
3629
|
default: E(() => [
|
|
3605
|
-
|
|
3630
|
+
O(m(ue), {
|
|
3606
3631
|
command: "deleted",
|
|
3607
3632
|
onClick: h
|
|
3608
3633
|
}, {
|
|
3609
3634
|
default: E(() => [
|
|
3610
|
-
C("div", null,
|
|
3635
|
+
C("div", null, j(i.value ? "未删除" : "已删除"), 1)
|
|
3611
3636
|
]),
|
|
3612
3637
|
_: 1
|
|
3613
3638
|
})
|
|
@@ -3616,11 +3641,11 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3616
3641
|
})
|
|
3617
3642
|
]),
|
|
3618
3643
|
default: E(() => [
|
|
3619
|
-
|
|
3644
|
+
O(m(ne), null, {
|
|
3620
3645
|
default: E(() => [
|
|
3621
|
-
|
|
3646
|
+
O(m(G), null, {
|
|
3622
3647
|
default: E(() => [
|
|
3623
|
-
|
|
3648
|
+
O(m(br))
|
|
3624
3649
|
]),
|
|
3625
3650
|
_: 1
|
|
3626
3651
|
})
|
|
@@ -3632,15 +3657,15 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3632
3657
|
})) : L("", !0)
|
|
3633
3658
|
])
|
|
3634
3659
|
]),
|
|
3635
|
-
|
|
3660
|
+
O(Ka, {
|
|
3636
3661
|
settings: e.settings
|
|
3637
3662
|
}, null, 8, ["settings"])
|
|
3638
3663
|
], 64));
|
|
3639
3664
|
}
|
|
3640
|
-
},
|
|
3665
|
+
}, kr = /* @__PURE__ */ V(Or, [["__scopeId", "data-v-898f42af"]]), Ar = { class: "kst-field-row-id" }, Cr = { key: 0 }, Dr = {
|
|
3641
3666
|
key: 1,
|
|
3642
3667
|
class: "mono-data"
|
|
3643
|
-
},
|
|
3668
|
+
}, Rr = { key: 1 }, Tr = {
|
|
3644
3669
|
__name: "FieldDisplay",
|
|
3645
3670
|
props: {
|
|
3646
3671
|
field: {
|
|
@@ -3661,43 +3686,43 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3661
3686
|
function i() {
|
|
3662
3687
|
return s.field.isRouter(s.row, Q(n));
|
|
3663
3688
|
}
|
|
3664
|
-
return (
|
|
3665
|
-
const
|
|
3666
|
-
return
|
|
3667
|
-
r.value ? (
|
|
3668
|
-
i() ? (
|
|
3689
|
+
return (d, h) => {
|
|
3690
|
+
const l = qe("RouterLink");
|
|
3691
|
+
return p(), x("div", Ar, [
|
|
3692
|
+
r.value ? (p(), x("span", Cr, [
|
|
3693
|
+
i() ? (p(), S(l, {
|
|
3669
3694
|
key: 0,
|
|
3670
3695
|
class: "bld-link mono-data",
|
|
3671
3696
|
to: a.value
|
|
3672
3697
|
}, {
|
|
3673
3698
|
default: E(() => [
|
|
3674
|
-
|
|
3675
|
-
J(
|
|
3676
|
-
N("(#" +
|
|
3677
|
-
], 64)) : (
|
|
3678
|
-
N(" #" +
|
|
3699
|
+
m(e).name ? (p(), x(P, { key: 0 }, [
|
|
3700
|
+
J(d.$slots, "name", {}, void 0, !0),
|
|
3701
|
+
N("(#" + j(r.value) + ") ", 1)
|
|
3702
|
+
], 64)) : (p(), x(P, { key: 1 }, [
|
|
3703
|
+
N(" #" + j(r.value), 1)
|
|
3679
3704
|
], 64))
|
|
3680
3705
|
]),
|
|
3681
3706
|
_: 3
|
|
3682
|
-
}, 8, ["to"])) : (
|
|
3683
|
-
|
|
3684
|
-
J(
|
|
3685
|
-
N("(" +
|
|
3686
|
-
], 64)) : (
|
|
3687
|
-
N(
|
|
3707
|
+
}, 8, ["to"])) : (p(), x("span", Dr, [
|
|
3708
|
+
m(e).name ? (p(), x(P, { key: 0 }, [
|
|
3709
|
+
J(d.$slots, "name", {}, void 0, !0),
|
|
3710
|
+
N("(" + j(r.value) + ") ", 1)
|
|
3711
|
+
], 64)) : (p(), x(P, { key: 1 }, [
|
|
3712
|
+
N(j(r.value), 1)
|
|
3688
3713
|
], 64))
|
|
3689
3714
|
]))
|
|
3690
|
-
])) : (
|
|
3715
|
+
])) : (p(), x("span", Rr, " NO ID "))
|
|
3691
3716
|
]);
|
|
3692
3717
|
};
|
|
3693
3718
|
}
|
|
3694
|
-
},
|
|
3695
|
-
function
|
|
3719
|
+
}, Fr = /* @__PURE__ */ V(Tr, [["__scopeId", "data-v-00021e61"]]);
|
|
3720
|
+
function Lr(t) {
|
|
3696
3721
|
ke(t);
|
|
3697
3722
|
}
|
|
3698
|
-
const
|
|
3699
|
-
show:
|
|
3700
|
-
}, en = 10,
|
|
3723
|
+
const Pr = {
|
|
3724
|
+
show: Lr
|
|
3725
|
+
}, en = 10, xt = yt("route-history", {
|
|
3701
3726
|
state: () => ({
|
|
3702
3727
|
root: null,
|
|
3703
3728
|
history: []
|
|
@@ -3723,7 +3748,7 @@ const Fr = {
|
|
|
3723
3748
|
n && (n.title = e);
|
|
3724
3749
|
}
|
|
3725
3750
|
}
|
|
3726
|
-
}),
|
|
3751
|
+
}), Ot = {
|
|
3727
3752
|
__name: "DomainEdit",
|
|
3728
3753
|
props: {
|
|
3729
3754
|
row: {
|
|
@@ -3744,64 +3769,64 @@ const Fr = {
|
|
|
3744
3769
|
},
|
|
3745
3770
|
setup(t) {
|
|
3746
3771
|
var y;
|
|
3747
|
-
const e =
|
|
3748
|
-
var
|
|
3749
|
-
return a.row.deletedAt ? !1 : (
|
|
3750
|
-
}),
|
|
3751
|
-
async function
|
|
3752
|
-
const
|
|
3772
|
+
const e = xt(), n = ce(), s = U(), o = fe(), r = Q(s), a = t, i = D({}), d = D(!1), h = I(() => {
|
|
3773
|
+
var f, g;
|
|
3774
|
+
return a.row.deletedAt ? !1 : (f = a.operations) != null && f.updatable ? !0 : !!((g = a.operations) != null && g.removable);
|
|
3775
|
+
}), l = D((y = a.operations) == null ? void 0 : y.removable);
|
|
3776
|
+
async function c() {
|
|
3777
|
+
const f = a.settings.formHook, g = a.settings.btnVisible, $ = a.settings.rest, { data: u } = await $.getOne({
|
|
3753
3778
|
...a.row,
|
|
3754
3779
|
...r
|
|
3755
3780
|
});
|
|
3756
|
-
i.value =
|
|
3757
|
-
}
|
|
3758
|
-
function
|
|
3759
|
-
const $ = a.settings.formHook,
|
|
3760
|
-
Object.keys(r).forEach((
|
|
3761
|
-
|
|
3762
|
-
}), $ != null && $.preUpdateSubmit && (
|
|
3763
|
-
|
|
3781
|
+
i.value = u, f.setupUpdate && (i.value = f.setupUpdate(i.value, r)), g.showRemove && (l.value = g.showRemove(i.value)), d.value = !0;
|
|
3782
|
+
}
|
|
3783
|
+
function b(f, g) {
|
|
3784
|
+
const $ = a.settings.formHook, u = a.settings.rest;
|
|
3785
|
+
Object.keys(r).forEach((w) => {
|
|
3786
|
+
f[w] = r[w];
|
|
3787
|
+
}), $ != null && $.preUpdateSubmit && (f = $.preUpdateSubmit(f)), u.update(f).then(() => {
|
|
3788
|
+
d.value = !1, n.fireUpdated();
|
|
3764
3789
|
}).catch(async () => {
|
|
3765
3790
|
g();
|
|
3766
3791
|
});
|
|
3767
3792
|
}
|
|
3768
|
-
function
|
|
3769
|
-
a.settings.rest.remove(
|
|
3770
|
-
|
|
3771
|
-
s.fullPath.includes(
|
|
3793
|
+
function k(f, g) {
|
|
3794
|
+
a.settings.rest.remove(f).then(() => {
|
|
3795
|
+
Pr.show({ type: "success", message: "删除成功" }), d.value = !1, a.isDetail && e.history.forEach((u) => {
|
|
3796
|
+
s.fullPath.includes(u.path) && (e.remove(u.code), o.back());
|
|
3772
3797
|
}), n.fireRemoved();
|
|
3773
3798
|
}).catch(() => {
|
|
3774
3799
|
g();
|
|
3775
3800
|
});
|
|
3776
3801
|
}
|
|
3777
|
-
return (
|
|
3802
|
+
return (f, g) => h.value ? (p(), S(m(ne), {
|
|
3778
3803
|
key: 0,
|
|
3779
3804
|
type: "primary",
|
|
3780
|
-
onClick:
|
|
3805
|
+
onClick: c
|
|
3781
3806
|
}, {
|
|
3782
3807
|
default: E(() => [
|
|
3783
3808
|
N(" 编辑 "),
|
|
3784
|
-
|
|
3809
|
+
d.value ? (p(), S(St, {
|
|
3785
3810
|
key: 0,
|
|
3786
|
-
modelValue:
|
|
3787
|
-
"onUpdate:modelValue": g[0] || (g[0] = ($) =>
|
|
3811
|
+
modelValue: d.value,
|
|
3812
|
+
"onUpdate:modelValue": g[0] || (g[0] = ($) => d.value = $),
|
|
3788
3813
|
config: a.settings,
|
|
3789
3814
|
data: i.value,
|
|
3790
|
-
removable:
|
|
3791
|
-
onSubmit:
|
|
3792
|
-
onRemove:
|
|
3815
|
+
removable: l.value,
|
|
3816
|
+
onSubmit: b,
|
|
3817
|
+
onRemove: k
|
|
3793
3818
|
}, null, 8, ["modelValue", "config", "data", "removable"])) : L("", !0)
|
|
3794
3819
|
]),
|
|
3795
3820
|
_: 1
|
|
3796
3821
|
})) : L("", !0);
|
|
3797
3822
|
}
|
|
3798
|
-
},
|
|
3823
|
+
}, jr = (t) => (pn("data-v-0941be48"), t = t(), fn(), t), Br = { class: "data-grid-wrapper" }, Vr = {
|
|
3799
3824
|
key: 0,
|
|
3800
3825
|
class: "cover"
|
|
3801
|
-
},
|
|
3826
|
+
}, Nr = /* @__PURE__ */ jr(() => /* @__PURE__ */ C("div", { class: "image-slot" }, null, -1)), Ir = { class: "header" }, Mr = { key: 0 }, Ur = { class: "key" }, zr = { class: "value" }, Hr = {
|
|
3802
3827
|
key: 1,
|
|
3803
3828
|
class: "footer tools"
|
|
3804
|
-
},
|
|
3829
|
+
}, qr = {
|
|
3805
3830
|
__name: "DataGrid",
|
|
3806
3831
|
props: {
|
|
3807
3832
|
settings: {
|
|
@@ -3822,75 +3847,75 @@ const Fr = {
|
|
|
3822
3847
|
e.path,
|
|
3823
3848
|
o.settings.filters,
|
|
3824
3849
|
o.settings.filterHook
|
|
3825
|
-
)(), { filters: a } = ge(r), i = D(a.value),
|
|
3826
|
-
async function
|
|
3850
|
+
)(), { filters: a } = ge(r), i = D(a.value), d = te([]), h = te(null), l = D(!1);
|
|
3851
|
+
async function c() {
|
|
3827
3852
|
return await o.settings.showEdit(n, "grid");
|
|
3828
3853
|
}
|
|
3829
3854
|
gt(() => {
|
|
3830
|
-
|
|
3831
|
-
|
|
3855
|
+
c().then(($) => {
|
|
3856
|
+
l.value = $;
|
|
3832
3857
|
});
|
|
3833
3858
|
});
|
|
3834
|
-
const
|
|
3835
|
-
var $,
|
|
3836
|
-
return !!(($ = o.operations) != null && $.updatable &&
|
|
3837
|
-
}),
|
|
3838
|
-
function
|
|
3839
|
-
h.value = o.settings.fields.find(($) => $.code === "id"),
|
|
3859
|
+
const b = I(() => {
|
|
3860
|
+
var $, u;
|
|
3861
|
+
return !!(($ = o.operations) != null && $.updatable && l || (u = o.operations) != null && u.removable && l);
|
|
3862
|
+
}), k = I(() => o.settings.displayMode.gridWidth), y = I(() => o.settings.displayMode.heightAuto);
|
|
3863
|
+
function f() {
|
|
3864
|
+
h.value = o.settings.fields.find(($) => $.code === "id"), d.value = o.settings.fields.filter(($) => $.code === o.settings.coverField || $.code === o.settings.nameField || $.code === "id" ? !1 : $.showInList(n, i.value));
|
|
3840
3865
|
}
|
|
3841
3866
|
function g($) {
|
|
3842
3867
|
return o.settings.nameField ? $[o.settings.nameField] : $.name ? $.name : `${$.id}`;
|
|
3843
3868
|
}
|
|
3844
|
-
return
|
|
3845
|
-
i.value = $,
|
|
3846
|
-
}),
|
|
3847
|
-
t.data.length === 0 ? (
|
|
3869
|
+
return B(a, ($) => {
|
|
3870
|
+
i.value = $, f();
|
|
3871
|
+
}), f(), ($, u) => (p(), x("div", Br, [
|
|
3872
|
+
t.data.length === 0 ? (p(), S(m(ps), {
|
|
3848
3873
|
key: 0,
|
|
3849
3874
|
description: "暂无数据"
|
|
3850
|
-
})) : (
|
|
3875
|
+
})) : (p(), S(m(Oe), {
|
|
3851
3876
|
key: 1,
|
|
3852
3877
|
gutter: 20
|
|
3853
3878
|
}, {
|
|
3854
3879
|
default: E(() => [
|
|
3855
|
-
(
|
|
3880
|
+
(p(!0), x(P, null, q(t.data, (w) => (p(), S(m($e), {
|
|
3856
3881
|
style: { "margin-bottom": "20px" },
|
|
3857
|
-
span:
|
|
3858
|
-
xs:
|
|
3859
|
-
sm:
|
|
3860
|
-
md:
|
|
3861
|
-
lg:
|
|
3862
|
-
xl:
|
|
3882
|
+
span: k.value ? k.value : 24,
|
|
3883
|
+
xs: k.value ? {} : 24,
|
|
3884
|
+
sm: k.value ? {} : 12,
|
|
3885
|
+
md: k.value ? {} : 8,
|
|
3886
|
+
lg: k.value ? {} : 6,
|
|
3887
|
+
xl: k.value ? {} : 4
|
|
3863
3888
|
}, {
|
|
3864
3889
|
default: E(() => [
|
|
3865
|
-
|
|
3890
|
+
O(m(mn), {
|
|
3866
3891
|
"body-style": { padding: "0px" },
|
|
3867
3892
|
shadow: "hover"
|
|
3868
3893
|
}, {
|
|
3869
3894
|
default: E(() => [
|
|
3870
|
-
|
|
3871
|
-
|
|
3895
|
+
m(s).cover || o.settings.coverField ? (p(), x("div", Vr, [
|
|
3896
|
+
m(s).cover ? J($.$slots, "cover", {
|
|
3872
3897
|
key: 0,
|
|
3873
|
-
row:
|
|
3874
|
-
}, void 0, !0) : (
|
|
3898
|
+
row: w
|
|
3899
|
+
}, void 0, !0) : (p(), S(m(gn), {
|
|
3875
3900
|
key: 1,
|
|
3876
|
-
src:
|
|
3901
|
+
src: w[o.settings.coverField],
|
|
3877
3902
|
fit: "contain"
|
|
3878
3903
|
}, {
|
|
3879
3904
|
error: E(() => [
|
|
3880
|
-
|
|
3905
|
+
Nr
|
|
3881
3906
|
]),
|
|
3882
3907
|
_: 2
|
|
3883
3908
|
}, 1032, ["src"]))
|
|
3884
3909
|
])) : L("", !0),
|
|
3885
|
-
C("div",
|
|
3886
|
-
|
|
3910
|
+
C("div", Ir, [
|
|
3911
|
+
O(Fr, {
|
|
3887
3912
|
field: h.value,
|
|
3888
|
-
row:
|
|
3913
|
+
row: w
|
|
3889
3914
|
}, De({ _: 2 }, [
|
|
3890
|
-
|
|
3915
|
+
w[o.settings.nameField] ? {
|
|
3891
3916
|
name: "name",
|
|
3892
3917
|
fn: E(() => [
|
|
3893
|
-
N(
|
|
3918
|
+
N(j(g(w)), 1)
|
|
3894
3919
|
]),
|
|
3895
3920
|
key: "0"
|
|
3896
3921
|
} : void 0
|
|
@@ -3899,39 +3924,39 @@ const Fr = {
|
|
|
3899
3924
|
C("div", {
|
|
3900
3925
|
class: he(y.value ? "body heightAuto" : "body")
|
|
3901
3926
|
}, [
|
|
3902
|
-
|
|
3903
|
-
J($.$slots, "body", { row:
|
|
3904
|
-
])) : (
|
|
3927
|
+
m(s).body ? (p(), x("div", Mr, [
|
|
3928
|
+
J($.$slots, "body", { row: w }, void 0, !0)
|
|
3929
|
+
])) : (p(!0), x(P, { key: 1 }, q(d.value, (_) => (p(), x("div", {
|
|
3905
3930
|
key: _.code,
|
|
3906
3931
|
class: "field mono-data"
|
|
3907
3932
|
}, [
|
|
3908
|
-
C("div",
|
|
3909
|
-
C("div",
|
|
3910
|
-
(
|
|
3933
|
+
C("div", Ur, j(_.label) + " ", 1),
|
|
3934
|
+
C("div", zr, [
|
|
3935
|
+
(p(), S(X(_.display), {
|
|
3911
3936
|
field: _,
|
|
3912
|
-
row:
|
|
3937
|
+
row: w,
|
|
3913
3938
|
mode: "grid"
|
|
3914
3939
|
}, null, 8, ["field", "row"]))
|
|
3915
3940
|
])
|
|
3916
3941
|
]))), 128))
|
|
3917
3942
|
], 2),
|
|
3918
|
-
|
|
3919
|
-
|
|
3943
|
+
m(s).actions || b.value ? (p(), x("div", Hr, [
|
|
3944
|
+
m(s).actions ? (p(), S(m(pe), {
|
|
3920
3945
|
key: 0,
|
|
3921
3946
|
size: "small"
|
|
3922
3947
|
}, {
|
|
3923
3948
|
default: E(() => [
|
|
3924
|
-
J($.$slots, "actions", { row:
|
|
3949
|
+
J($.$slots, "actions", { row: w }, void 0, !0)
|
|
3925
3950
|
]),
|
|
3926
3951
|
_: 2
|
|
3927
3952
|
}, 1024)) : L("", !0),
|
|
3928
|
-
|
|
3953
|
+
b.value ? (p(), S(m(pe), {
|
|
3929
3954
|
key: 1,
|
|
3930
3955
|
size: "small"
|
|
3931
3956
|
}, {
|
|
3932
3957
|
default: E(() => [
|
|
3933
|
-
|
|
3934
|
-
row:
|
|
3958
|
+
O(Ot, {
|
|
3959
|
+
row: w,
|
|
3935
3960
|
settings: o.settings,
|
|
3936
3961
|
operations: o.operations
|
|
3937
3962
|
}, null, 8, ["row", "settings", "operations"])
|
|
@@ -3950,14 +3975,14 @@ const Fr = {
|
|
|
3950
3975
|
}))
|
|
3951
3976
|
]));
|
|
3952
3977
|
}
|
|
3953
|
-
},
|
|
3954
|
-
function
|
|
3978
|
+
}, Wr = /* @__PURE__ */ V(qr, [["__scopeId", "data-v-0941be48"]]);
|
|
3979
|
+
function Qr(t, e) {
|
|
3955
3980
|
const n = t.fields.map((o) => o.code), s = Object.keys(e);
|
|
3956
3981
|
n.forEach((o) => {
|
|
3957
3982
|
s.includes(o) || console.error(`${t.code}.${o} : 与服务端数据不匹配`);
|
|
3958
3983
|
});
|
|
3959
3984
|
}
|
|
3960
|
-
const
|
|
3985
|
+
const Jr = {
|
|
3961
3986
|
__name: "DataList",
|
|
3962
3987
|
props: {
|
|
3963
3988
|
settings: {
|
|
@@ -3988,42 +4013,42 @@ const Wr = {
|
|
|
3988
4013
|
n.path,
|
|
3989
4014
|
a.settings.filters,
|
|
3990
4015
|
a.settings.filterHook
|
|
3991
|
-
)(), { filters:
|
|
3992
|
-
async function
|
|
4016
|
+
)(), { filters: d } = ge(i), h = D(d.value), l = te([]), c = D(!1);
|
|
4017
|
+
async function b() {
|
|
3993
4018
|
return await a.settings.showEdit(s, "list");
|
|
3994
4019
|
}
|
|
3995
4020
|
gt(() => {
|
|
3996
|
-
|
|
3997
|
-
|
|
4021
|
+
b().then((u) => {
|
|
4022
|
+
c.value = u;
|
|
3998
4023
|
});
|
|
3999
4024
|
});
|
|
4000
|
-
const
|
|
4001
|
-
var
|
|
4002
|
-
return !!((
|
|
4025
|
+
const k = I(() => {
|
|
4026
|
+
var u, w;
|
|
4027
|
+
return !!((u = a.operations) != null && u.updatable && c.value || (w = a.operations) != null && w.removable && c.value);
|
|
4003
4028
|
});
|
|
4004
|
-
function y(
|
|
4005
|
-
o("sort-column",
|
|
4029
|
+
function y(u) {
|
|
4030
|
+
o("sort-column", u);
|
|
4006
4031
|
}
|
|
4007
|
-
function
|
|
4008
|
-
o("enable-item",
|
|
4032
|
+
function f(u) {
|
|
4033
|
+
o("enable-item", u);
|
|
4009
4034
|
}
|
|
4010
4035
|
function g() {
|
|
4011
|
-
|
|
4036
|
+
l.value = a.settings.fields.filter((u) => u.showInList(s, h.value));
|
|
4012
4037
|
}
|
|
4013
|
-
function $(
|
|
4038
|
+
function $(u) {
|
|
4014
4039
|
o("select-change", {
|
|
4015
4040
|
routeQuery: s,
|
|
4016
|
-
data:
|
|
4041
|
+
data: u
|
|
4017
4042
|
});
|
|
4018
4043
|
}
|
|
4019
|
-
return g(),
|
|
4044
|
+
return g(), B(
|
|
4020
4045
|
() => a.data,
|
|
4021
4046
|
() => {
|
|
4022
|
-
a.data.length > 0 &&
|
|
4047
|
+
a.data.length > 0 && Qr(a.settings, a.data[0]);
|
|
4023
4048
|
}
|
|
4024
|
-
),
|
|
4025
|
-
h.value =
|
|
4026
|
-
}), (
|
|
4049
|
+
), B(d, (u) => {
|
|
4050
|
+
h.value = u, g();
|
|
4051
|
+
}), (u, w) => (p(), S(m(fs), {
|
|
4027
4052
|
ref: "dataTable",
|
|
4028
4053
|
class: "table mono-data",
|
|
4029
4054
|
data: a.data,
|
|
@@ -4034,11 +4059,11 @@ const Wr = {
|
|
|
4034
4059
|
onSortChange: y
|
|
4035
4060
|
}, {
|
|
4036
4061
|
default: E(() => [
|
|
4037
|
-
|
|
4062
|
+
O(m(je), {
|
|
4038
4063
|
type: "selection",
|
|
4039
4064
|
width: "40"
|
|
4040
4065
|
}),
|
|
4041
|
-
(
|
|
4066
|
+
(p(!0), x(P, null, q(l.value, (_) => (p(), S(m(je), {
|
|
4042
4067
|
key: _.code,
|
|
4043
4068
|
label: _.label,
|
|
4044
4069
|
width: _.width,
|
|
@@ -4048,54 +4073,54 @@ const Wr = {
|
|
|
4048
4073
|
}, De({ _: 2 }, [
|
|
4049
4074
|
_.type === "switch" ? {
|
|
4050
4075
|
name: "default",
|
|
4051
|
-
fn: E(({ row:
|
|
4052
|
-
(
|
|
4076
|
+
fn: E(({ row: A }) => [
|
|
4077
|
+
(p(), S(X(_.display), {
|
|
4053
4078
|
field: _,
|
|
4054
|
-
row:
|
|
4079
|
+
row: A,
|
|
4055
4080
|
mode: "list",
|
|
4056
|
-
onEnable:
|
|
4081
|
+
onEnable: f
|
|
4057
4082
|
}, null, 40, ["field", "row"]))
|
|
4058
4083
|
]),
|
|
4059
4084
|
key: "0"
|
|
4060
4085
|
} : {
|
|
4061
4086
|
name: "default",
|
|
4062
|
-
fn: E(({ row:
|
|
4063
|
-
(
|
|
4064
|
-
key:
|
|
4087
|
+
fn: E(({ row: A }) => [
|
|
4088
|
+
(p(), S(X(_.display), {
|
|
4089
|
+
key: A.updatedAt,
|
|
4065
4090
|
field: _,
|
|
4066
|
-
row:
|
|
4091
|
+
row: A,
|
|
4067
4092
|
mode: "list"
|
|
4068
4093
|
}, null, 8, ["field", "row"]))
|
|
4069
4094
|
]),
|
|
4070
4095
|
key: "1"
|
|
4071
4096
|
}
|
|
4072
4097
|
]), 1032, ["label", "width", "prop", "sortable", "fixed"]))), 128)),
|
|
4073
|
-
|
|
4098
|
+
m(r).actions ? (p(), S(m(je), {
|
|
4074
4099
|
key: 0,
|
|
4075
4100
|
label: "管理",
|
|
4076
4101
|
fixed: "right",
|
|
4077
4102
|
width: a.actionsWidth
|
|
4078
4103
|
}, {
|
|
4079
4104
|
default: E(({ row: _ }) => [
|
|
4080
|
-
|
|
4105
|
+
O(m(pe), { size: "small" }, {
|
|
4081
4106
|
default: E(() => [
|
|
4082
|
-
J(
|
|
4107
|
+
J(u.$slots, "actions", { row: _ }, void 0, !0)
|
|
4083
4108
|
]),
|
|
4084
4109
|
_: 2
|
|
4085
4110
|
}, 1024)
|
|
4086
4111
|
]),
|
|
4087
4112
|
_: 3
|
|
4088
4113
|
}, 8, ["width"])) : L("", !0),
|
|
4089
|
-
|
|
4114
|
+
k.value ? (p(), S(m(je), {
|
|
4090
4115
|
key: 1,
|
|
4091
4116
|
fixed: "right",
|
|
4092
4117
|
label: "操作",
|
|
4093
4118
|
width: a.operationsWidth
|
|
4094
4119
|
}, {
|
|
4095
4120
|
default: E(({ row: _ }) => [
|
|
4096
|
-
|
|
4121
|
+
O(m(pe), { size: "small" }, {
|
|
4097
4122
|
default: E(() => [
|
|
4098
|
-
|
|
4123
|
+
O(Ot, {
|
|
4099
4124
|
row: _,
|
|
4100
4125
|
settings: a.settings,
|
|
4101
4126
|
operations: a.operations
|
|
@@ -4110,7 +4135,7 @@ const Wr = {
|
|
|
4110
4135
|
_: 3
|
|
4111
4136
|
}, 8, ["data"]));
|
|
4112
4137
|
}
|
|
4113
|
-
}, tn = /* @__PURE__ */ V(
|
|
4138
|
+
}, tn = /* @__PURE__ */ V(Jr, [["__scopeId", "data-v-31b40ae5"]]), Yr = {
|
|
4114
4139
|
__name: "DataTable",
|
|
4115
4140
|
props: {
|
|
4116
4141
|
data: {
|
|
@@ -4131,20 +4156,20 @@ const Wr = {
|
|
|
4131
4156
|
e.$reset();
|
|
4132
4157
|
const { mode: n } = ge(e), s = Re(), o = t, r = te(tn);
|
|
4133
4158
|
function a(i) {
|
|
4134
|
-
i == "grid" ? r.value =
|
|
4159
|
+
i == "grid" ? r.value = Wr : r.value = tn;
|
|
4135
4160
|
}
|
|
4136
|
-
return
|
|
4161
|
+
return B(n, (i) => {
|
|
4137
4162
|
a(i);
|
|
4138
|
-
}), (i,
|
|
4139
|
-
q(
|
|
4140
|
-
name:
|
|
4141
|
-
fn: E((
|
|
4142
|
-
J(i.$slots,
|
|
4163
|
+
}), (i, d) => (p(), S(X(r.value), Ft(Lt(o)), De({ _: 2 }, [
|
|
4164
|
+
q(m(s), (h, l) => ({
|
|
4165
|
+
name: l,
|
|
4166
|
+
fn: E((c) => [
|
|
4167
|
+
J(i.$slots, l, Ft(Lt(c || {})))
|
|
4143
4168
|
])
|
|
4144
4169
|
}))
|
|
4145
4170
|
]), 1040));
|
|
4146
4171
|
}
|
|
4147
|
-
},
|
|
4172
|
+
}, Gr = {
|
|
4148
4173
|
__name: "DomainNew",
|
|
4149
4174
|
props: {
|
|
4150
4175
|
settings: {
|
|
@@ -4158,44 +4183,44 @@ const Wr = {
|
|
|
4158
4183
|
},
|
|
4159
4184
|
setup(t) {
|
|
4160
4185
|
const e = ce(), n = U(), s = Q(n), o = t, r = D({}), a = D(!1), i = D(!1);
|
|
4161
|
-
async function
|
|
4162
|
-
var
|
|
4163
|
-
return await ((
|
|
4186
|
+
async function d() {
|
|
4187
|
+
var c;
|
|
4188
|
+
return await ((c = o.operations) == null ? void 0 : c.creatable);
|
|
4164
4189
|
}
|
|
4165
4190
|
gt(() => {
|
|
4166
|
-
|
|
4167
|
-
i.value =
|
|
4191
|
+
d().then((c) => {
|
|
4192
|
+
i.value = c;
|
|
4168
4193
|
});
|
|
4169
4194
|
});
|
|
4170
4195
|
async function h() {
|
|
4171
|
-
const
|
|
4172
|
-
r.value =
|
|
4173
|
-
}
|
|
4174
|
-
function
|
|
4175
|
-
const
|
|
4176
|
-
Object.keys(s).forEach((
|
|
4177
|
-
|
|
4178
|
-
}),
|
|
4196
|
+
const c = o.settings.formHook, b = o.settings.fields.reduce((k, y) => (k[y.code] = y.default, k), {});
|
|
4197
|
+
r.value = b, c.setupCreate && (r.value = c.setupCreate(r.value, s)), a.value = !0;
|
|
4198
|
+
}
|
|
4199
|
+
function l(c, b) {
|
|
4200
|
+
const k = o.settings.formHook, y = o.settings.rest;
|
|
4201
|
+
Object.keys(s).forEach((f) => {
|
|
4202
|
+
c[f] = s[f];
|
|
4203
|
+
}), k != null && k.preCreateSubmit && (c = k.preCreateSubmit(c)), y.create(c).then(() => {
|
|
4179
4204
|
a.value = !1, e.fireCreated();
|
|
4180
4205
|
}).catch(async () => {
|
|
4181
|
-
|
|
4206
|
+
b();
|
|
4182
4207
|
});
|
|
4183
4208
|
}
|
|
4184
|
-
return (
|
|
4209
|
+
return (c, b) => i.value ? (p(), S(m(ne), {
|
|
4185
4210
|
key: 0,
|
|
4186
4211
|
type: "success",
|
|
4187
4212
|
onClick: h
|
|
4188
4213
|
}, {
|
|
4189
4214
|
default: E(() => [
|
|
4190
4215
|
N(" 添加 "),
|
|
4191
|
-
a.value ? (
|
|
4216
|
+
a.value ? (p(), S(St, {
|
|
4192
4217
|
key: 0,
|
|
4193
4218
|
modelValue: a.value,
|
|
4194
|
-
"onUpdate:modelValue":
|
|
4219
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => a.value = k),
|
|
4195
4220
|
config: o.settings,
|
|
4196
4221
|
data: r.value,
|
|
4197
4222
|
removable: !1,
|
|
4198
|
-
onSubmit:
|
|
4223
|
+
onSubmit: l
|
|
4199
4224
|
}, null, 8, ["modelValue", "config", "data"])) : L("", !0)
|
|
4200
4225
|
]),
|
|
4201
4226
|
_: 1
|
|
@@ -4220,50 +4245,50 @@ const Wr = {
|
|
|
4220
4245
|
setup(t) {
|
|
4221
4246
|
const e = fe(), n = ce(), s = t, o = te([]);
|
|
4222
4247
|
let r = "";
|
|
4223
|
-
async function a(
|
|
4224
|
-
if (r = Be.service({ fullscreen: !0 }),
|
|
4225
|
-
r.close(), i(
|
|
4248
|
+
async function a(d, h) {
|
|
4249
|
+
if (r = Be.service({ fullscreen: !0 }), d.path) {
|
|
4250
|
+
r.close(), i(d, h);
|
|
4226
4251
|
return;
|
|
4227
4252
|
}
|
|
4228
|
-
const
|
|
4253
|
+
const l = await Se.getValue();
|
|
4229
4254
|
try {
|
|
4230
|
-
await
|
|
4255
|
+
await d.action({
|
|
4231
4256
|
...h,
|
|
4232
4257
|
...s.query,
|
|
4233
|
-
idempotentToken:
|
|
4258
|
+
idempotentToken: l
|
|
4234
4259
|
}), r.close(), n.fireUpdated();
|
|
4235
4260
|
} catch {
|
|
4236
4261
|
r.close(), n.fireUpdated();
|
|
4237
4262
|
}
|
|
4238
4263
|
}
|
|
4239
|
-
function i(
|
|
4240
|
-
e.push(
|
|
4264
|
+
function i(d, h) {
|
|
4265
|
+
e.push(d.path(h, s.query));
|
|
4241
4266
|
}
|
|
4242
|
-
return
|
|
4267
|
+
return B(
|
|
4243
4268
|
() => s.row,
|
|
4244
4269
|
() => {
|
|
4245
4270
|
o.value = s.settings.rowActions(s.query);
|
|
4246
4271
|
},
|
|
4247
4272
|
{ immediate: !0 }
|
|
4248
|
-
), (
|
|
4249
|
-
|
|
4250
|
-
|
|
4273
|
+
), (d, h) => (p(!0), x(P, null, q(o.value, (l) => (p(), x(P, null, [
|
|
4274
|
+
l.isVisible(s.row, s.query, s.mode) ? (p(), x(P, { key: 0 }, [
|
|
4275
|
+
l.component ? (p(), S(X(l.component), {
|
|
4251
4276
|
key: 0,
|
|
4252
4277
|
row: t.row
|
|
4253
|
-
}, null, 8, ["row"])) : (
|
|
4278
|
+
}, null, 8, ["row"])) : (p(), S(m(ne), {
|
|
4254
4279
|
key: 1,
|
|
4255
|
-
type:
|
|
4256
|
-
onClick: (
|
|
4280
|
+
type: l.type ? l.type : "primary",
|
|
4281
|
+
onClick: (c) => a(l, s.row)
|
|
4257
4282
|
}, {
|
|
4258
4283
|
default: E(() => [
|
|
4259
|
-
N(
|
|
4284
|
+
N(j(l.name), 1)
|
|
4260
4285
|
]),
|
|
4261
4286
|
_: 2
|
|
4262
4287
|
}, 1032, ["type", "onClick"]))
|
|
4263
4288
|
], 64)) : L("", !0)
|
|
4264
4289
|
], 64))), 256));
|
|
4265
4290
|
}
|
|
4266
|
-
},
|
|
4291
|
+
}, Kr = {
|
|
4267
4292
|
__name: "PageActions",
|
|
4268
4293
|
props: {
|
|
4269
4294
|
settings: {
|
|
@@ -4281,84 +4306,84 @@ const Wr = {
|
|
|
4281
4306
|
},
|
|
4282
4307
|
setup(t) {
|
|
4283
4308
|
const e = ce(), n = t, s = n.query, o = D({}), r = te([]), a = I(() => {
|
|
4284
|
-
var
|
|
4285
|
-
return ((
|
|
4309
|
+
var l, c;
|
|
4310
|
+
return ((c = (l = n.tableDataSelect) == null ? void 0 : l.data) == null ? void 0 : c.length) > 0;
|
|
4286
4311
|
});
|
|
4287
|
-
D(!1),
|
|
4312
|
+
D(!1), B(
|
|
4288
4313
|
() => n.filterForm,
|
|
4289
|
-
(
|
|
4290
|
-
o.value =
|
|
4314
|
+
(l) => {
|
|
4315
|
+
o.value = l;
|
|
4291
4316
|
}
|
|
4292
4317
|
);
|
|
4293
4318
|
const i = D(!1);
|
|
4294
|
-
async function
|
|
4319
|
+
async function d(l) {
|
|
4295
4320
|
i.value = !0;
|
|
4296
|
-
const
|
|
4321
|
+
const c = await Se.getValue();
|
|
4297
4322
|
try {
|
|
4298
|
-
await
|
|
4323
|
+
await l.action({
|
|
4299
4324
|
...n.tableDataSelect,
|
|
4300
4325
|
filterForms: o.value,
|
|
4301
4326
|
query: s,
|
|
4302
|
-
idempotentToken:
|
|
4327
|
+
idempotentToken: c
|
|
4303
4328
|
}), i.value = !1, e.fireUpdated();
|
|
4304
4329
|
} catch {
|
|
4305
4330
|
i.value = !1, e.fireUpdated();
|
|
4306
4331
|
}
|
|
4307
4332
|
}
|
|
4308
|
-
function h(
|
|
4309
|
-
return typeof h == "boolean" ?
|
|
4333
|
+
function h(l) {
|
|
4334
|
+
return typeof h == "boolean" ? l : typeof l == "function" ? l(o.value, s) : !0;
|
|
4310
4335
|
}
|
|
4311
|
-
return
|
|
4336
|
+
return B(
|
|
4312
4337
|
() => n.row,
|
|
4313
4338
|
() => {
|
|
4314
4339
|
r.value = n.settings.pageActions(n.query);
|
|
4315
4340
|
},
|
|
4316
4341
|
{ immediate: !0 }
|
|
4317
|
-
), (
|
|
4318
|
-
h(
|
|
4319
|
-
|
|
4342
|
+
), (l, c) => (p(!0), x(P, null, q(r.value, (b) => (p(), x(P, null, [
|
|
4343
|
+
h(b.isVisible) ? (p(), x(P, { key: 0 }, [
|
|
4344
|
+
b.component ? (p(), S(X(b.component), {
|
|
4320
4345
|
key: 0,
|
|
4321
|
-
item:
|
|
4346
|
+
item: b,
|
|
4322
4347
|
settings: t.settings,
|
|
4323
|
-
query:
|
|
4348
|
+
query: m(s),
|
|
4324
4349
|
"table-data-select": t.tableDataSelect,
|
|
4325
4350
|
"filter-form": t.filterForm
|
|
4326
|
-
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) :
|
|
4351
|
+
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : b.tooltip && b.tooltip.content ? (p(), S(m(yn), {
|
|
4327
4352
|
key: 1,
|
|
4328
|
-
effect:
|
|
4329
|
-
content:
|
|
4330
|
-
placement:
|
|
4353
|
+
effect: b.tooltip.effect || "dark",
|
|
4354
|
+
content: b.tooltip.content || "default tip",
|
|
4355
|
+
placement: b.tooltip.placement || "top-start"
|
|
4331
4356
|
}, {
|
|
4332
4357
|
default: E(() => [
|
|
4333
|
-
|
|
4334
|
-
type:
|
|
4358
|
+
O(m(ne), {
|
|
4359
|
+
type: b.type,
|
|
4335
4360
|
loading: i.value,
|
|
4336
|
-
disabled: !
|
|
4337
|
-
onClick: (
|
|
4361
|
+
disabled: !b.enable && !a.value,
|
|
4362
|
+
onClick: (k) => d(b)
|
|
4338
4363
|
}, {
|
|
4339
4364
|
default: E(() => [
|
|
4340
|
-
N(
|
|
4365
|
+
N(j(b.name), 1)
|
|
4341
4366
|
]),
|
|
4342
4367
|
_: 2
|
|
4343
4368
|
}, 1032, ["type", "loading", "disabled", "onClick"])
|
|
4344
4369
|
]),
|
|
4345
4370
|
_: 2
|
|
4346
|
-
}, 1032, ["effect", "content", "placement"])) : (
|
|
4371
|
+
}, 1032, ["effect", "content", "placement"])) : (p(), S(m(ne), {
|
|
4347
4372
|
key: 2,
|
|
4348
|
-
type:
|
|
4373
|
+
type: b.type,
|
|
4349
4374
|
loading: i.value,
|
|
4350
|
-
disabled: !
|
|
4351
|
-
onClick: (
|
|
4375
|
+
disabled: !b.enable && !a.value,
|
|
4376
|
+
onClick: (k) => d(b)
|
|
4352
4377
|
}, {
|
|
4353
4378
|
default: E(() => [
|
|
4354
|
-
N(
|
|
4379
|
+
N(j(b.name), 1)
|
|
4355
4380
|
]),
|
|
4356
4381
|
_: 2
|
|
4357
4382
|
}, 1032, ["type", "loading", "disabled", "onClick"]))
|
|
4358
4383
|
], 64)) : L("", !0)
|
|
4359
4384
|
], 64))), 256));
|
|
4360
4385
|
}
|
|
4361
|
-
},
|
|
4386
|
+
}, Xr = { class: "pagination-wrapper" }, Zr = {
|
|
4362
4387
|
__name: "Pagination",
|
|
4363
4388
|
props: {
|
|
4364
4389
|
total: {
|
|
@@ -4379,20 +4404,20 @@ const Wr = {
|
|
|
4379
4404
|
},
|
|
4380
4405
|
emits: ["page-change"],
|
|
4381
4406
|
setup(t, { emit: e }) {
|
|
4382
|
-
const n = e, s = fe(), o = U(), r = t, a = D(r.page), i = D(r.size),
|
|
4383
|
-
|
|
4407
|
+
const n = e, s = fe(), o = U(), r = t, a = D(r.page), i = D(r.size), d = D(r.total), h = D(r.pageSizes);
|
|
4408
|
+
B(
|
|
4384
4409
|
() => r.total,
|
|
4385
|
-
(
|
|
4386
|
-
|
|
4410
|
+
(b) => {
|
|
4411
|
+
d.value = b;
|
|
4387
4412
|
}
|
|
4388
|
-
),
|
|
4413
|
+
), B(
|
|
4389
4414
|
() => [o.query.page, o.query.pageSize],
|
|
4390
4415
|
() => {
|
|
4391
4416
|
!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
4417
|
}
|
|
4393
4418
|
);
|
|
4394
|
-
function
|
|
4395
|
-
a.value =
|
|
4419
|
+
function l(b) {
|
|
4420
|
+
a.value = b, s.push({
|
|
4396
4421
|
path: o.path,
|
|
4397
4422
|
query: {
|
|
4398
4423
|
...o.query,
|
|
@@ -4401,8 +4426,8 @@ const Wr = {
|
|
|
4401
4426
|
}
|
|
4402
4427
|
});
|
|
4403
4428
|
}
|
|
4404
|
-
function
|
|
4405
|
-
i.value =
|
|
4429
|
+
function c(b) {
|
|
4430
|
+
i.value = b, s.push({
|
|
4406
4431
|
path: o.path,
|
|
4407
4432
|
query: {
|
|
4408
4433
|
...o.query,
|
|
@@ -4411,84 +4436,84 @@ const Wr = {
|
|
|
4411
4436
|
}
|
|
4412
4437
|
});
|
|
4413
4438
|
}
|
|
4414
|
-
return (
|
|
4415
|
-
|
|
4439
|
+
return (b, k) => (p(), x("div", Xr, [
|
|
4440
|
+
O(m(ms), {
|
|
4416
4441
|
background: "",
|
|
4417
4442
|
"page-size": i.value,
|
|
4418
4443
|
"page-sizes": h.value,
|
|
4419
|
-
total:
|
|
4444
|
+
total: d.value,
|
|
4420
4445
|
"current-page": t.page,
|
|
4421
4446
|
layout: "total,sizes, prev, pager, next",
|
|
4422
|
-
onCurrentChange:
|
|
4423
|
-
onSizeChange:
|
|
4447
|
+
onCurrentChange: l,
|
|
4448
|
+
onSizeChange: c
|
|
4424
4449
|
}, null, 8, ["page-size", "page-sizes", "total", "current-page"])
|
|
4425
4450
|
]));
|
|
4426
4451
|
}
|
|
4427
|
-
},
|
|
4452
|
+
}, ei = /* @__PURE__ */ V(Zr, [["__scopeId", "data-v-3c65f1a1"]]);
|
|
4428
4453
|
var nn;
|
|
4429
4454
|
const Wn = typeof window < "u";
|
|
4430
4455
|
Wn && ((nn = window == null ? void 0 : window.navigator) != null && nn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
4431
|
-
function
|
|
4432
|
-
return typeof t == "function" ? t() :
|
|
4456
|
+
function ti(t) {
|
|
4457
|
+
return typeof t == "function" ? t() : m(t);
|
|
4433
4458
|
}
|
|
4434
|
-
function
|
|
4459
|
+
function ni(t) {
|
|
4435
4460
|
return t;
|
|
4436
4461
|
}
|
|
4437
|
-
function
|
|
4462
|
+
function si(t) {
|
|
4438
4463
|
return es() ? (ts(t), !0) : !1;
|
|
4439
4464
|
}
|
|
4440
|
-
function
|
|
4465
|
+
function oi(t, e = !0) {
|
|
4441
4466
|
ns() ? dn(t) : e ? t() : ss(t);
|
|
4442
4467
|
}
|
|
4443
|
-
function
|
|
4468
|
+
function ai(t) {
|
|
4444
4469
|
var e;
|
|
4445
|
-
const n =
|
|
4470
|
+
const n = ti(t);
|
|
4446
4471
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
4447
4472
|
}
|
|
4448
|
-
const
|
|
4449
|
-
function
|
|
4473
|
+
const ri = Wn ? window : void 0;
|
|
4474
|
+
function ii(t, e = !1) {
|
|
4450
4475
|
const n = D(), s = () => n.value = !!t();
|
|
4451
|
-
return s(),
|
|
4476
|
+
return s(), oi(s, e), n;
|
|
4452
4477
|
}
|
|
4453
4478
|
const sn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, on = "__vueuse_ssr_handlers__";
|
|
4454
4479
|
sn[on] = sn[on] || {};
|
|
4455
|
-
var an = Object.getOwnPropertySymbols,
|
|
4480
|
+
var an = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ci = (t, e) => {
|
|
4456
4481
|
var n = {};
|
|
4457
4482
|
for (var s in t)
|
|
4458
|
-
|
|
4483
|
+
li.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
|
|
4459
4484
|
if (t != null && an)
|
|
4460
4485
|
for (var s of an(t))
|
|
4461
|
-
e.indexOf(s) < 0 &&
|
|
4486
|
+
e.indexOf(s) < 0 && ui.call(t, s) && (n[s] = t[s]);
|
|
4462
4487
|
return n;
|
|
4463
4488
|
};
|
|
4464
4489
|
function rn(t, e, n = {}) {
|
|
4465
|
-
const s = n, { window: o =
|
|
4490
|
+
const s = n, { window: o = ri } = s, r = ci(s, ["window"]);
|
|
4466
4491
|
let a;
|
|
4467
|
-
const i =
|
|
4492
|
+
const i = ii(() => o && "ResizeObserver" in o), d = () => {
|
|
4468
4493
|
a && (a.disconnect(), a = void 0);
|
|
4469
|
-
}, h =
|
|
4470
|
-
|
|
4471
|
-
}, { immediate: !0, flush: "post" }),
|
|
4472
|
-
|
|
4494
|
+
}, h = B(() => ai(t), (c) => {
|
|
4495
|
+
d(), i.value && o && c && (a = new ResizeObserver(e), a.observe(c, r));
|
|
4496
|
+
}, { immediate: !0, flush: "post" }), l = () => {
|
|
4497
|
+
d(), h();
|
|
4473
4498
|
};
|
|
4474
|
-
return
|
|
4499
|
+
return si(l), {
|
|
4475
4500
|
isSupported: i,
|
|
4476
|
-
stop:
|
|
4501
|
+
stop: l
|
|
4477
4502
|
};
|
|
4478
4503
|
}
|
|
4479
4504
|
var ln;
|
|
4480
4505
|
(function(t) {
|
|
4481
4506
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
4482
4507
|
})(ln || (ln = {}));
|
|
4483
|
-
var
|
|
4508
|
+
var di = Object.defineProperty, un = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, cn = (t, e, n) => e in t ? di(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, mi = (t, e) => {
|
|
4484
4509
|
for (var n in e || (e = {}))
|
|
4485
|
-
|
|
4510
|
+
pi.call(e, n) && cn(t, n, e[n]);
|
|
4486
4511
|
if (un)
|
|
4487
4512
|
for (var n of un(e))
|
|
4488
|
-
|
|
4513
|
+
fi.call(e, n) && cn(t, n, e[n]);
|
|
4489
4514
|
return t;
|
|
4490
4515
|
};
|
|
4491
|
-
const
|
|
4516
|
+
const hi = {
|
|
4492
4517
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
4493
4518
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
4494
4519
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -4514,10 +4539,10 @@ const fi = {
|
|
|
4514
4539
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
4515
4540
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
4516
4541
|
};
|
|
4517
|
-
|
|
4518
|
-
linear:
|
|
4519
|
-
},
|
|
4520
|
-
const
|
|
4542
|
+
mi({
|
|
4543
|
+
linear: ni
|
|
4544
|
+
}, hi);
|
|
4545
|
+
const gi = {
|
|
4521
4546
|
__name: "DataTablePage",
|
|
4522
4547
|
props: {
|
|
4523
4548
|
settings: {
|
|
@@ -4541,46 +4566,46 @@ const mi = {
|
|
|
4541
4566
|
s.settings.filters,
|
|
4542
4567
|
s.settings.filterHook
|
|
4543
4568
|
)(), { filters: r } = ge(o), a = (Dt = s == null ? void 0 : s.hasMany) == null ? void 0 : Dt.tableName;
|
|
4544
|
-
|
|
4545
|
-
|
|
4569
|
+
B(r, (F) => {
|
|
4570
|
+
u.value = F, M();
|
|
4546
4571
|
});
|
|
4547
|
-
const i = ce(), { created:
|
|
4548
|
-
|
|
4572
|
+
const i = ce(), { created: d, updated: h, removed: l } = ge(i);
|
|
4573
|
+
B([d, h, l], ([F, z, se]) => {
|
|
4549
4574
|
(F || z || se) && M();
|
|
4550
4575
|
});
|
|
4551
|
-
const
|
|
4576
|
+
const c = D(!0), b = D([]), k = D(0), y = D({}), f = D({}), g = D(null), $ = D(null), u = D({}), w = D(parseInt(e.query.pageSize) || 30), _ = D(parseInt(e.query.page) || 1), A = (Rt = s.hasMany) == null ? void 0 : Rt.tableContentHeight;
|
|
4552
4577
|
function R(F) {
|
|
4553
4578
|
let z = null;
|
|
4554
|
-
if (F.order === "ascending" ? z = "ASC" : F.order === "descending" && (z = "DESC"),
|
|
4579
|
+
if (F.order === "ascending" ? z = "ASC" : F.order === "descending" && (z = "DESC"), u.value.sorters) {
|
|
4555
4580
|
let se = [];
|
|
4556
|
-
|
|
4581
|
+
u.value.sorters.some((ie) => ie.field === F.prop) ? u.value.sorters.forEach((ie) => {
|
|
4557
4582
|
ie.field === F.prop && (ie.order = z, ie.name || se.push(ie)), ie.name && se.push(ie);
|
|
4558
4583
|
}) : se = [
|
|
4559
|
-
...
|
|
4584
|
+
...u.value.sorters,
|
|
4560
4585
|
{ field: F.prop, order: z }
|
|
4561
|
-
],
|
|
4586
|
+
], u.value.sorters = se;
|
|
4562
4587
|
} else
|
|
4563
|
-
|
|
4588
|
+
u.value.sorters = [{ field: F.prop, order: z }];
|
|
4564
4589
|
M();
|
|
4565
4590
|
}
|
|
4566
4591
|
function K() {
|
|
4567
|
-
|
|
4592
|
+
f.value = s.settings.operations(n);
|
|
4568
4593
|
}
|
|
4569
4594
|
function M(F) {
|
|
4570
|
-
|
|
4595
|
+
c.value = !0;
|
|
4571
4596
|
const z = {
|
|
4572
|
-
...
|
|
4597
|
+
...u.value,
|
|
4573
4598
|
...n,
|
|
4574
4599
|
...s.query,
|
|
4575
4600
|
page: F == "again" ? _.value - 1 : _.value,
|
|
4576
|
-
size:
|
|
4601
|
+
size: w.value
|
|
4577
4602
|
};
|
|
4578
4603
|
s.settings.rest.getList(z).then((se) => {
|
|
4579
|
-
y.value.data = [],
|
|
4604
|
+
y.value.data = [], b.value = se.data.rows, k.value = se.data.count, c.value = !1, k.value && b.value.length == 0 && M("again");
|
|
4580
4605
|
});
|
|
4581
4606
|
}
|
|
4582
4607
|
function Y(F) {
|
|
4583
|
-
_.value = F.page,
|
|
4608
|
+
_.value = F.page, w.value = F.size, M();
|
|
4584
4609
|
}
|
|
4585
4610
|
function kt(F) {
|
|
4586
4611
|
const z = { id: F.id, enable: !F.enable };
|
|
@@ -4613,8 +4638,8 @@ const mi = {
|
|
|
4613
4638
|
var z;
|
|
4614
4639
|
Ct.value = ((z = F[0]) == null ? void 0 : z.contentRect.height) || 0;
|
|
4615
4640
|
});
|
|
4616
|
-
const Xn = I(() =>
|
|
4617
|
-
return K(), (F, z) => (
|
|
4641
|
+
const Xn = I(() => A && k.value > 0 ? `${A}px` : `calc(100% - ${At.value + Ct.value}px)`);
|
|
4642
|
+
return K(), (F, z) => (p(), x("div", {
|
|
4618
4643
|
key: s.settings.code,
|
|
4619
4644
|
style: { height: "100%" }
|
|
4620
4645
|
}, [
|
|
@@ -4622,66 +4647,66 @@ const mi = {
|
|
|
4622
4647
|
ref_key: "pageHeader",
|
|
4623
4648
|
ref: g
|
|
4624
4649
|
}, [
|
|
4625
|
-
|
|
4650
|
+
O(kr, {
|
|
4626
4651
|
settings: s.settings,
|
|
4627
|
-
"table-name":
|
|
4652
|
+
"table-name": m(a)
|
|
4628
4653
|
}, {
|
|
4629
4654
|
operations: E(() => [
|
|
4630
|
-
|
|
4655
|
+
O(Kr, {
|
|
4631
4656
|
settings: s.settings,
|
|
4632
4657
|
"table-data-select": y.value,
|
|
4633
|
-
query:
|
|
4634
|
-
"filter-form":
|
|
4658
|
+
query: m(n),
|
|
4659
|
+
"filter-form": u.value
|
|
4635
4660
|
}, null, 8, ["settings", "table-data-select", "query", "filter-form"]),
|
|
4636
|
-
|
|
4661
|
+
O(Gr, {
|
|
4637
4662
|
settings: s.settings,
|
|
4638
|
-
operations:
|
|
4663
|
+
operations: f.value
|
|
4639
4664
|
}, null, 8, ["settings", "operations"])
|
|
4640
4665
|
]),
|
|
4641
4666
|
_: 1
|
|
4642
4667
|
}, 8, ["settings", "table-name"])
|
|
4643
4668
|
], 512),
|
|
4644
|
-
_e((
|
|
4669
|
+
_e((p(), S(Yr, {
|
|
4645
4670
|
class: "data-table-box",
|
|
4646
|
-
data:
|
|
4647
|
-
operations:
|
|
4671
|
+
data: b.value,
|
|
4672
|
+
operations: f.value,
|
|
4648
4673
|
settings: s.settings,
|
|
4649
4674
|
"actions-width": s.settings.actionsWidth,
|
|
4650
4675
|
onSortColumn: R,
|
|
4651
4676
|
onEnableItem: Gn,
|
|
4652
4677
|
onSelectChange: Kn
|
|
4653
4678
|
}, De({ _: 2 }, [
|
|
4654
|
-
s.settings.rowActions(
|
|
4679
|
+
s.settings.rowActions(m(n)).length > 0 ? {
|
|
4655
4680
|
name: "actions",
|
|
4656
4681
|
fn: E(({ row: se }) => [
|
|
4657
|
-
|
|
4682
|
+
O(qn, {
|
|
4658
4683
|
mode: "list",
|
|
4659
4684
|
row: se,
|
|
4660
4685
|
settings: s.settings,
|
|
4661
|
-
query:
|
|
4686
|
+
query: m(n)
|
|
4662
4687
|
}, null, 8, ["row", "settings", "query"])
|
|
4663
4688
|
]),
|
|
4664
4689
|
key: "0"
|
|
4665
4690
|
} : void 0
|
|
4666
4691
|
]), 1032, ["data", "operations", "settings", "actions-width"])), [
|
|
4667
|
-
[
|
|
4692
|
+
[m(ve), c.value]
|
|
4668
4693
|
]),
|
|
4669
4694
|
C("div", {
|
|
4670
4695
|
ref_key: "pagination",
|
|
4671
4696
|
ref: $
|
|
4672
4697
|
}, [
|
|
4673
|
-
|
|
4698
|
+
O(ei, {
|
|
4674
4699
|
page: _.value,
|
|
4675
|
-
size:
|
|
4676
|
-
total:
|
|
4700
|
+
size: w.value,
|
|
4701
|
+
total: k.value,
|
|
4677
4702
|
onPageChange: Y
|
|
4678
4703
|
}, null, 8, ["page", "size", "total"])
|
|
4679
4704
|
], 512)
|
|
4680
4705
|
]));
|
|
4681
4706
|
}
|
|
4682
|
-
}, Qn = /* @__PURE__ */ V(
|
|
4707
|
+
}, Qn = /* @__PURE__ */ V(gi, [["__scopeId", "data-v-4a31051d"]]);
|
|
4683
4708
|
/*! Element Plus v2.7.2 */
|
|
4684
|
-
var
|
|
4709
|
+
var yi = {
|
|
4685
4710
|
name: "zh-cn",
|
|
4686
4711
|
el: {
|
|
4687
4712
|
breadcrumb: {
|
|
@@ -4821,7 +4846,7 @@ var hi = {
|
|
|
4821
4846
|
}
|
|
4822
4847
|
}
|
|
4823
4848
|
};
|
|
4824
|
-
const
|
|
4849
|
+
const _i = {
|
|
4825
4850
|
__name: "TooltipText",
|
|
4826
4851
|
props: {
|
|
4827
4852
|
content: {
|
|
@@ -4844,38 +4869,38 @@ const gi = {
|
|
|
4844
4869
|
},
|
|
4845
4870
|
setup(t) {
|
|
4846
4871
|
const e = t, n = I(() => e.content ? e.content.toString() : "");
|
|
4847
|
-
return (s, o) => (
|
|
4848
|
-
n.value.length > e.tipShowLength ? (
|
|
4872
|
+
return (s, o) => (p(), x("div", null, [
|
|
4873
|
+
n.value.length > e.tipShowLength ? (p(), S(m(yn), {
|
|
4849
4874
|
key: 0,
|
|
4850
4875
|
content: n.value,
|
|
4851
4876
|
effect: "light"
|
|
4852
4877
|
}, {
|
|
4853
4878
|
default: E(() => [
|
|
4854
|
-
|
|
4879
|
+
O(m(Bt), {
|
|
4855
4880
|
class: he(e.className),
|
|
4856
4881
|
type: e.textType,
|
|
4857
4882
|
"line-clamp": e.lineClamp
|
|
4858
4883
|
}, {
|
|
4859
4884
|
default: E(() => [
|
|
4860
|
-
N(
|
|
4885
|
+
N(j(n.value), 1)
|
|
4861
4886
|
]),
|
|
4862
4887
|
_: 1
|
|
4863
4888
|
}, 8, ["class", "type", "line-clamp"])
|
|
4864
4889
|
]),
|
|
4865
4890
|
_: 1
|
|
4866
|
-
}, 8, ["content"])) : (
|
|
4891
|
+
}, 8, ["content"])) : (p(), S(m(Bt), {
|
|
4867
4892
|
key: 1,
|
|
4868
4893
|
type: e.textType,
|
|
4869
4894
|
class: he(e.className)
|
|
4870
4895
|
}, {
|
|
4871
4896
|
default: E(() => [
|
|
4872
|
-
N(
|
|
4897
|
+
N(j(n.value), 1)
|
|
4873
4898
|
]),
|
|
4874
4899
|
_: 1
|
|
4875
4900
|
}, 8, ["type", "class"]))
|
|
4876
4901
|
]));
|
|
4877
4902
|
}
|
|
4878
|
-
},
|
|
4903
|
+
}, vi = { class: "header-box" }, bi = { class: "header-box-left" }, wi = { class: "page-title" }, Ei = { class: "tabs-container" }, $i = { class: "user-profile" }, Si = {
|
|
4879
4904
|
__name: "HeaderMenu",
|
|
4880
4905
|
props: {
|
|
4881
4906
|
config: {
|
|
@@ -4883,110 +4908,110 @@ const gi = {
|
|
|
4883
4908
|
}
|
|
4884
4909
|
},
|
|
4885
4910
|
setup(t) {
|
|
4886
|
-
const e = fe(), n = U(), s =
|
|
4911
|
+
const e = fe(), n = U(), s = xt(), o = D("首页"), r = t, a = n.fullPath.split("/")[1], i = k();
|
|
4887
4912
|
s.setupRootPath("首页", `/${a}/home`);
|
|
4888
|
-
function
|
|
4889
|
-
var
|
|
4890
|
-
const
|
|
4891
|
-
let $ = (
|
|
4892
|
-
if (
|
|
4893
|
-
$ = Et()[
|
|
4894
|
-
const
|
|
4895
|
-
|
|
4913
|
+
function d(y) {
|
|
4914
|
+
var w, _;
|
|
4915
|
+
const f = y.meta.side, g = y.params.domain;
|
|
4916
|
+
let $ = (w = y.meta) == null ? void 0 : w.title, u = (_ = y.meta) == null ? void 0 : _.code;
|
|
4917
|
+
if (f && g) {
|
|
4918
|
+
$ = Et()[f][y.params.domain].name, u = y.params.domain;
|
|
4919
|
+
const A = y.params.id;
|
|
4920
|
+
A && A != "detail" && ($ = `${$} - ${y.params.id}`, u = `${y.params.domain}-${y.params.id}`);
|
|
4896
4921
|
} else {
|
|
4897
|
-
const
|
|
4898
|
-
|
|
4922
|
+
const A = i.find((R) => R.route === y.path);
|
|
4923
|
+
A && ($ = A.title, u = A.route);
|
|
4899
4924
|
}
|
|
4900
|
-
$ &&
|
|
4925
|
+
$ && u && (s.push($, u, y.fullPath), o.value = u);
|
|
4901
4926
|
}
|
|
4902
4927
|
function h(y) {
|
|
4903
|
-
const
|
|
4904
|
-
e.push(
|
|
4928
|
+
const f = s.history.find((g) => g.code == y.props.name);
|
|
4929
|
+
e.push(f.path);
|
|
4905
4930
|
}
|
|
4906
|
-
function
|
|
4931
|
+
function l(y) {
|
|
4907
4932
|
if (s.remove(y), y == o.value) {
|
|
4908
|
-
const
|
|
4909
|
-
o.value =
|
|
4933
|
+
const f = s.getLast();
|
|
4934
|
+
o.value = f.title, e.push(f.path);
|
|
4910
4935
|
}
|
|
4911
4936
|
}
|
|
4912
|
-
const
|
|
4937
|
+
const c = (y, f) => {
|
|
4913
4938
|
const g = s.history.length;
|
|
4914
|
-
return y === 0 &&
|
|
4939
|
+
return y === 0 && f === "self" || y < 2 && f === "left" || y === g - 1 && f === "right" || g === 1 && f === "all" ? !1 : !(g < 2 && f === "other");
|
|
4915
4940
|
};
|
|
4916
|
-
function
|
|
4941
|
+
function b(y, f) {
|
|
4917
4942
|
const g = [], $ = s.history;
|
|
4918
|
-
switch (
|
|
4943
|
+
switch (f) {
|
|
4919
4944
|
case "self":
|
|
4920
4945
|
g.push($[y].code);
|
|
4921
4946
|
break;
|
|
4922
4947
|
case "left":
|
|
4923
|
-
for (let
|
|
4924
|
-
|
|
4948
|
+
for (let u = 0; u < y; u++)
|
|
4949
|
+
u !== 0 && g.push($[u].code);
|
|
4925
4950
|
break;
|
|
4926
4951
|
case "right":
|
|
4927
|
-
for (let
|
|
4928
|
-
g.push($[
|
|
4952
|
+
for (let u = y + 1; u < $.length; u++)
|
|
4953
|
+
g.push($[u].code);
|
|
4929
4954
|
break;
|
|
4930
4955
|
case "all":
|
|
4931
|
-
for (let
|
|
4932
|
-
|
|
4956
|
+
for (let u = 0; u < $.length; u++)
|
|
4957
|
+
u !== 0 && g.push($[u].code);
|
|
4933
4958
|
break;
|
|
4934
4959
|
case "other":
|
|
4935
|
-
for (let
|
|
4936
|
-
|
|
4960
|
+
for (let u = 1; u < $.length; u++)
|
|
4961
|
+
u !== y && g.push($[u].code);
|
|
4937
4962
|
break;
|
|
4938
4963
|
}
|
|
4939
|
-
for (let
|
|
4940
|
-
|
|
4964
|
+
for (let u = 0; u < g.length; u++)
|
|
4965
|
+
l(g[u]);
|
|
4941
4966
|
}
|
|
4942
|
-
function
|
|
4967
|
+
function k() {
|
|
4943
4968
|
return r.config.sideMenus[a].map((y) => y.children ? y.children : y).flat();
|
|
4944
4969
|
}
|
|
4945
|
-
return
|
|
4970
|
+
return B(
|
|
4946
4971
|
() => e.currentRoute.value,
|
|
4947
4972
|
() => {
|
|
4948
|
-
|
|
4973
|
+
d(n);
|
|
4949
4974
|
},
|
|
4950
4975
|
{ immediate: !0 }
|
|
4951
|
-
), (y,
|
|
4976
|
+
), (y, f) => (p(), x("div", vi, [
|
|
4952
4977
|
C("div", null, [
|
|
4953
|
-
C("div",
|
|
4954
|
-
|
|
4978
|
+
C("div", bi, [
|
|
4979
|
+
O(m(gn), {
|
|
4955
4980
|
class: "header-img",
|
|
4956
4981
|
src: r.config.logo,
|
|
4957
4982
|
fit: "scale-down"
|
|
4958
4983
|
}, null, 8, ["src"]),
|
|
4959
|
-
C("div",
|
|
4984
|
+
C("div", wi, j(r.config.name), 1)
|
|
4960
4985
|
])
|
|
4961
4986
|
]),
|
|
4962
|
-
C("div",
|
|
4963
|
-
|
|
4987
|
+
C("div", Ei, [
|
|
4988
|
+
O(m(_n), {
|
|
4964
4989
|
modelValue: o.value,
|
|
4965
|
-
"onUpdate:modelValue":
|
|
4990
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => o.value = g),
|
|
4966
4991
|
type: "card",
|
|
4967
4992
|
class: "tabs",
|
|
4968
4993
|
onTabClick: h,
|
|
4969
|
-
onTabRemove:
|
|
4994
|
+
onTabRemove: l
|
|
4970
4995
|
}, {
|
|
4971
4996
|
default: E(() => [
|
|
4972
|
-
(
|
|
4997
|
+
(p(!0), x(P, null, q(m(s).history, (g, $) => (p(), S(m(vn), {
|
|
4973
4998
|
closable: g.title != "首页",
|
|
4974
4999
|
label: g.title,
|
|
4975
5000
|
name: g.code
|
|
4976
5001
|
}, {
|
|
4977
5002
|
label: E(() => [
|
|
4978
|
-
|
|
5003
|
+
O(m(at), { trigger: "contextmenu" }, {
|
|
4979
5004
|
dropdown: E(() => [
|
|
4980
|
-
|
|
5005
|
+
O(m(rt), null, {
|
|
4981
5006
|
default: E(() => [
|
|
4982
|
-
|
|
5007
|
+
c($, "self") ? (p(), S(m(ue), {
|
|
4983
5008
|
key: 0,
|
|
4984
|
-
onClick: (
|
|
5009
|
+
onClick: (u) => b($, "self")
|
|
4985
5010
|
}, {
|
|
4986
5011
|
default: E(() => [
|
|
4987
|
-
|
|
5012
|
+
O(m(G), null, {
|
|
4988
5013
|
default: E(() => [
|
|
4989
|
-
|
|
5014
|
+
O(m(nr))
|
|
4990
5015
|
]),
|
|
4991
5016
|
_: 1
|
|
4992
5017
|
}),
|
|
@@ -4994,14 +5019,14 @@ const gi = {
|
|
|
4994
5019
|
]),
|
|
4995
5020
|
_: 2
|
|
4996
5021
|
}, 1032, ["onClick"])) : L("", !0),
|
|
4997
|
-
|
|
5022
|
+
c($, "left") ? (p(), S(m(ue), {
|
|
4998
5023
|
key: 1,
|
|
4999
|
-
onClick: (
|
|
5024
|
+
onClick: (u) => b($, "left")
|
|
5000
5025
|
}, {
|
|
5001
5026
|
default: E(() => [
|
|
5002
|
-
|
|
5027
|
+
O(m(G), null, {
|
|
5003
5028
|
default: E(() => [
|
|
5004
|
-
|
|
5029
|
+
O(m(Xt))
|
|
5005
5030
|
]),
|
|
5006
5031
|
_: 1
|
|
5007
5032
|
}),
|
|
@@ -5009,14 +5034,14 @@ const gi = {
|
|
|
5009
5034
|
]),
|
|
5010
5035
|
_: 2
|
|
5011
5036
|
}, 1032, ["onClick"])) : L("", !0),
|
|
5012
|
-
|
|
5037
|
+
c($, "right") ? (p(), S(m(ue), {
|
|
5013
5038
|
key: 2,
|
|
5014
|
-
onClick: (
|
|
5039
|
+
onClick: (u) => b($, "right")
|
|
5015
5040
|
}, {
|
|
5016
5041
|
default: E(() => [
|
|
5017
|
-
|
|
5042
|
+
O(m(G), null, {
|
|
5018
5043
|
default: E(() => [
|
|
5019
|
-
|
|
5044
|
+
O(m(ar))
|
|
5020
5045
|
]),
|
|
5021
5046
|
_: 1
|
|
5022
5047
|
}),
|
|
@@ -5024,14 +5049,14 @@ const gi = {
|
|
|
5024
5049
|
]),
|
|
5025
5050
|
_: 2
|
|
5026
5051
|
}, 1032, ["onClick"])) : L("", !0),
|
|
5027
|
-
|
|
5052
|
+
c($, "all") ? (p(), S(m(ue), {
|
|
5028
5053
|
key: 3,
|
|
5029
|
-
onClick: (
|
|
5054
|
+
onClick: (u) => b($, "all")
|
|
5030
5055
|
}, {
|
|
5031
5056
|
default: E(() => [
|
|
5032
|
-
|
|
5057
|
+
O(m(G), null, {
|
|
5033
5058
|
default: E(() => [
|
|
5034
|
-
|
|
5059
|
+
O(m(fr))
|
|
5035
5060
|
]),
|
|
5036
5061
|
_: 1
|
|
5037
5062
|
}),
|
|
@@ -5039,14 +5064,14 @@ const gi = {
|
|
|
5039
5064
|
]),
|
|
5040
5065
|
_: 2
|
|
5041
5066
|
}, 1032, ["onClick"])) : L("", !0),
|
|
5042
|
-
|
|
5067
|
+
c($, "other") ? (p(), S(m(ue), {
|
|
5043
5068
|
key: 4,
|
|
5044
|
-
onClick: (
|
|
5069
|
+
onClick: (u) => b($, "other")
|
|
5045
5070
|
}, {
|
|
5046
5071
|
default: E(() => [
|
|
5047
|
-
|
|
5072
|
+
O(m(G), null, {
|
|
5048
5073
|
default: E(() => [
|
|
5049
|
-
|
|
5074
|
+
O(m(hr))
|
|
5050
5075
|
]),
|
|
5051
5076
|
_: 1
|
|
5052
5077
|
}),
|
|
@@ -5059,7 +5084,7 @@ const gi = {
|
|
|
5059
5084
|
}, 1024)
|
|
5060
5085
|
]),
|
|
5061
5086
|
default: E(() => [
|
|
5062
|
-
|
|
5087
|
+
O(_i, {
|
|
5063
5088
|
content: g.title,
|
|
5064
5089
|
"line-clamp": 1,
|
|
5065
5090
|
"class-name": "tab-pane-label",
|
|
@@ -5076,27 +5101,27 @@ const gi = {
|
|
|
5076
5101
|
}, 8, ["modelValue"]),
|
|
5077
5102
|
C("span", {
|
|
5078
5103
|
class: "back-icon",
|
|
5079
|
-
onClick:
|
|
5104
|
+
onClick: f[1] || (f[1] = (g) => m(e).back())
|
|
5080
5105
|
}, [
|
|
5081
|
-
|
|
5106
|
+
O(m(G), null, {
|
|
5082
5107
|
default: E(() => [
|
|
5083
|
-
|
|
5108
|
+
O(m(Xt))
|
|
5084
5109
|
]),
|
|
5085
5110
|
_: 1
|
|
5086
5111
|
})
|
|
5087
5112
|
])
|
|
5088
5113
|
]),
|
|
5089
|
-
C("div",
|
|
5114
|
+
C("div", $i, [
|
|
5090
5115
|
J(y.$slots, "user-profile", {}, void 0, !0)
|
|
5091
5116
|
])
|
|
5092
5117
|
]));
|
|
5093
5118
|
}
|
|
5094
|
-
},
|
|
5119
|
+
}, xi = /* @__PURE__ */ V(Si, [["__scopeId", "data-v-4c5cfc79"]]), Oi = (t) => (pn("data-v-22a49b3f"), t = t(), fn(), t), ki = {
|
|
5095
5120
|
key: 2,
|
|
5096
5121
|
class: "dot-wrapper"
|
|
5097
|
-
},
|
|
5098
|
-
|
|
5099
|
-
],
|
|
5122
|
+
}, Ai = /* @__PURE__ */ Oi(() => /* @__PURE__ */ C("span", { class: "dot" }, null, -1)), Ci = [
|
|
5123
|
+
Ai
|
|
5124
|
+
], Di = {
|
|
5100
5125
|
__name: "SideBarItem",
|
|
5101
5126
|
props: {
|
|
5102
5127
|
data: { type: Object },
|
|
@@ -5107,55 +5132,55 @@ const gi = {
|
|
|
5107
5132
|
},
|
|
5108
5133
|
setup(t) {
|
|
5109
5134
|
const e = t;
|
|
5110
|
-
return (n, s) => t.data.children ? (
|
|
5135
|
+
return (n, s) => t.data.children ? (p(), S(m(hs), {
|
|
5111
5136
|
key: 0,
|
|
5112
5137
|
index: t.data.title
|
|
5113
5138
|
}, {
|
|
5114
5139
|
title: E(() => [
|
|
5115
|
-
t.data.icon ? (
|
|
5140
|
+
t.data.icon ? (p(), S(m(G), { key: 0 }, {
|
|
5116
5141
|
default: E(() => [
|
|
5117
|
-
(
|
|
5142
|
+
(p(), S(X(t.data.icon)))
|
|
5118
5143
|
]),
|
|
5119
5144
|
_: 1
|
|
5120
|
-
})) : (
|
|
5145
|
+
})) : (p(), S(m(G), { key: 1 }, {
|
|
5121
5146
|
default: E(() => [
|
|
5122
|
-
|
|
5147
|
+
O(m(Zt))
|
|
5123
5148
|
]),
|
|
5124
5149
|
_: 1
|
|
5125
5150
|
})),
|
|
5126
|
-
C("span", null,
|
|
5151
|
+
C("span", null, j(t.data.title), 1)
|
|
5127
5152
|
]),
|
|
5128
5153
|
default: E(() => [
|
|
5129
|
-
(
|
|
5154
|
+
(p(!0), x(P, null, q(t.data.children, (o) => (p(), S(Jn, {
|
|
5130
5155
|
data: o,
|
|
5131
5156
|
"has-parent": !0
|
|
5132
5157
|
}, null, 8, ["data"]))), 256))
|
|
5133
5158
|
]),
|
|
5134
5159
|
_: 1
|
|
5135
|
-
}, 8, ["index"])) : (
|
|
5160
|
+
}, 8, ["index"])) : (p(), S(m(gs), {
|
|
5136
5161
|
key: 1,
|
|
5137
5162
|
index: t.data.route,
|
|
5138
5163
|
route: t.data.route,
|
|
5139
5164
|
class: "menu-item"
|
|
5140
5165
|
}, {
|
|
5141
5166
|
default: E(() => [
|
|
5142
|
-
t.data.icon ? (
|
|
5167
|
+
t.data.icon ? (p(), S(m(G), { key: 0 }, {
|
|
5143
5168
|
default: E(() => [
|
|
5144
|
-
(
|
|
5169
|
+
(p(), S(X(t.data.icon)))
|
|
5145
5170
|
]),
|
|
5146
5171
|
_: 1
|
|
5147
|
-
})) : e.hasParent ? (
|
|
5172
|
+
})) : e.hasParent ? (p(), x("span", ki, Ci)) : (p(), S(m(G), { key: 1 }, {
|
|
5148
5173
|
default: E(() => [
|
|
5149
|
-
|
|
5174
|
+
O(m(Zt))
|
|
5150
5175
|
]),
|
|
5151
5176
|
_: 1
|
|
5152
5177
|
})),
|
|
5153
|
-
C("span", null,
|
|
5178
|
+
C("span", null, j(t.data.title), 1)
|
|
5154
5179
|
]),
|
|
5155
5180
|
_: 1
|
|
5156
5181
|
}, 8, ["index", "route"]));
|
|
5157
5182
|
}
|
|
5158
|
-
}, Jn = /* @__PURE__ */ V(
|
|
5183
|
+
}, Jn = /* @__PURE__ */ V(Di, [["__scopeId", "data-v-22a49b3f"]]), Ri = {
|
|
5159
5184
|
__name: "SideBar",
|
|
5160
5185
|
props: {
|
|
5161
5186
|
sideMenus: {
|
|
@@ -5164,26 +5189,26 @@ const gi = {
|
|
|
5164
5189
|
},
|
|
5165
5190
|
setup(t) {
|
|
5166
5191
|
const e = fe(), n = U(), s = D(n.fullPath), o = t, r = n.fullPath.split("/")[1], a = o.sideMenus[r];
|
|
5167
|
-
return
|
|
5192
|
+
return B(
|
|
5168
5193
|
() => e.currentRoute.value,
|
|
5169
5194
|
() => {
|
|
5170
5195
|
var i;
|
|
5171
5196
|
if ((i = n.meta) != null && i.side) {
|
|
5172
|
-
const
|
|
5173
|
-
n.params.id == "detail" ? s.value = `/${
|
|
5197
|
+
const d = n.meta.side;
|
|
5198
|
+
n.params.id == "detail" ? s.value = `/${d}/${n.params.domain}/detail` : s.value = `/${d}/${n.params.domain}/list`;
|
|
5174
5199
|
} else
|
|
5175
5200
|
s.value = n.fullPath;
|
|
5176
5201
|
},
|
|
5177
5202
|
{ immediate: !0 }
|
|
5178
|
-
), (i,
|
|
5203
|
+
), (i, d) => (p(), S(m(ys), null, {
|
|
5179
5204
|
default: E(() => [
|
|
5180
|
-
|
|
5205
|
+
O(m(_s), {
|
|
5181
5206
|
class: "menu",
|
|
5182
5207
|
router: !0,
|
|
5183
5208
|
"default-active": s.value
|
|
5184
5209
|
}, {
|
|
5185
5210
|
default: E(() => [
|
|
5186
|
-
(
|
|
5211
|
+
(p(!0), x(P, null, q(m(a), (h) => (p(), S(Jn, { data: h }, null, 8, ["data"]))), 256))
|
|
5187
5212
|
]),
|
|
5188
5213
|
_: 1
|
|
5189
5214
|
}, 8, ["default-active"])
|
|
@@ -5191,7 +5216,7 @@ const gi = {
|
|
|
5191
5216
|
_: 1
|
|
5192
5217
|
}));
|
|
5193
5218
|
}
|
|
5194
|
-
},
|
|
5219
|
+
}, Ti = /* @__PURE__ */ V(Ri, [["__scopeId", "data-v-e039032d"]]), Fi = {
|
|
5195
5220
|
__name: "BaseLayout",
|
|
5196
5221
|
props: {
|
|
5197
5222
|
config: {
|
|
@@ -5203,13 +5228,13 @@ const gi = {
|
|
|
5203
5228
|
const e = U(), n = t, s = { ...He(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
|
|
5204
5229
|
return (r, a) => {
|
|
5205
5230
|
const i = qe("router-view");
|
|
5206
|
-
return
|
|
5231
|
+
return p(), S(m(vs), { locale: m(yi) }, {
|
|
5207
5232
|
default: E(() => [
|
|
5208
|
-
|
|
5233
|
+
O(m(Vt), { style: { height: "100%" } }, {
|
|
5209
5234
|
default: E(() => [
|
|
5210
|
-
|
|
5235
|
+
O(m(bs), { class: "page-header" }, {
|
|
5211
5236
|
default: E(() => [
|
|
5212
|
-
|
|
5237
|
+
O(xi, { config: s }, {
|
|
5213
5238
|
"user-profile": E(() => [
|
|
5214
5239
|
J(r.$slots, "user-profile", {}, void 0, !0)
|
|
5215
5240
|
]),
|
|
@@ -5218,19 +5243,19 @@ const gi = {
|
|
|
5218
5243
|
]),
|
|
5219
5244
|
_: 3
|
|
5220
5245
|
}),
|
|
5221
|
-
|
|
5246
|
+
O(m(Vt), { class: "page-content-container" }, {
|
|
5222
5247
|
default: E(() => [
|
|
5223
|
-
|
|
5248
|
+
O(m(ws), { class: "page-content-aside" }, {
|
|
5224
5249
|
default: E(() => [
|
|
5225
|
-
|
|
5250
|
+
O(Ti, {
|
|
5226
5251
|
"side-menus": s.sideMenus
|
|
5227
5252
|
}, null, 8, ["side-menus"])
|
|
5228
5253
|
]),
|
|
5229
5254
|
_: 1
|
|
5230
5255
|
}),
|
|
5231
|
-
|
|
5256
|
+
O(m(Es), { class: "page-content-main" }, {
|
|
5232
5257
|
default: E(() => [
|
|
5233
|
-
(
|
|
5258
|
+
(p(), S(i, { key: o.value }))
|
|
5234
5259
|
]),
|
|
5235
5260
|
_: 1
|
|
5236
5261
|
})
|
|
@@ -5245,10 +5270,10 @@ const gi = {
|
|
|
5245
5270
|
}, 8, ["locale"]);
|
|
5246
5271
|
};
|
|
5247
5272
|
}
|
|
5248
|
-
},
|
|
5273
|
+
}, xl = /* @__PURE__ */ V(Fi, [["__scopeId", "data-v-ea73195f"]]), Li = {
|
|
5249
5274
|
key: 1,
|
|
5250
5275
|
class: "loading-wrapper"
|
|
5251
|
-
},
|
|
5276
|
+
}, Pi = {
|
|
5252
5277
|
__name: "List",
|
|
5253
5278
|
props: {
|
|
5254
5279
|
domain: {
|
|
@@ -5259,17 +5284,17 @@ const gi = {
|
|
|
5259
5284
|
const e = t, n = U(), s = n.meta.side, o = e.domain || n.params.domain, r = te(null);
|
|
5260
5285
|
return $t(s, o).then((a) => {
|
|
5261
5286
|
r.value = a;
|
|
5262
|
-
}), (a, i) => r.value ? (
|
|
5287
|
+
}), (a, i) => r.value ? (p(), S(Qn, {
|
|
5263
5288
|
key: 0,
|
|
5264
5289
|
settings: r.value
|
|
5265
|
-
}, null, 8, ["settings"])) : _e((
|
|
5266
|
-
[
|
|
5290
|
+
}, null, 8, ["settings"])) : _e((p(), x("div", Li, null, 512)), [
|
|
5291
|
+
[m(ve), !0]
|
|
5267
5292
|
]);
|
|
5268
5293
|
}
|
|
5269
|
-
},
|
|
5294
|
+
}, ji = /* @__PURE__ */ V(Pi, [["__scopeId", "data-v-2d9c8e98"]]), Bi = { key: 0 }, Vi = { class: "key" }, Ni = { class: "value" }, Ii = {
|
|
5270
5295
|
key: 1,
|
|
5271
5296
|
class: "loading-wrapper"
|
|
5272
|
-
},
|
|
5297
|
+
}, Mi = {
|
|
5273
5298
|
__name: "DomainDescription",
|
|
5274
5299
|
props: {
|
|
5275
5300
|
settings: {
|
|
@@ -5281,7 +5306,7 @@ const gi = {
|
|
|
5281
5306
|
},
|
|
5282
5307
|
emits: ["done"],
|
|
5283
5308
|
setup(t, { emit: e }) {
|
|
5284
|
-
const n = e, s = t, o = U(), r = Q(o), a = ce(), { updated: i } = ge(a),
|
|
5309
|
+
const n = e, s = t, o = U(), r = Q(o), a = ce(), { updated: i } = ge(a), d = D(null), h = [
|
|
5285
5310
|
"image",
|
|
5286
5311
|
"images",
|
|
5287
5312
|
"attachments",
|
|
@@ -5294,68 +5319,68 @@ const gi = {
|
|
|
5294
5319
|
"tree-select",
|
|
5295
5320
|
"radio-group",
|
|
5296
5321
|
"input-number"
|
|
5297
|
-
],
|
|
5322
|
+
], l = I(() => s.settings.fields.filter((g) => g.showInDetail(d.value, {
|
|
5298
5323
|
...r,
|
|
5299
5324
|
...s.query
|
|
5300
|
-
}))),
|
|
5325
|
+
}))), c = I(() => l.value.find((g) => g.code === s.settings.coverField)), b = I(() => l.value.filter((g) => !h.includes(g.type) && !g.extendDetail)), k = I(() => {
|
|
5301
5326
|
var $;
|
|
5302
|
-
const g = ($ =
|
|
5303
|
-
return
|
|
5327
|
+
const g = ($ = c.value) == null ? void 0 : $.code;
|
|
5328
|
+
return l.value.filter((u) => h.includes(u.type) || u.extendDetail).filter((u) => u.code !== g);
|
|
5304
5329
|
}), y = I({
|
|
5305
5330
|
get() {
|
|
5306
|
-
return
|
|
5331
|
+
return k.value.map((g) => g.code);
|
|
5307
5332
|
},
|
|
5308
5333
|
set(g) {
|
|
5309
5334
|
}
|
|
5310
5335
|
});
|
|
5311
|
-
function
|
|
5336
|
+
function f() {
|
|
5312
5337
|
s.settings.rest.getOne(s.query).then((g) => {
|
|
5313
|
-
g.data.isDeleted = !!g.data.deletedAt,
|
|
5338
|
+
g.data.isDeleted = !!g.data.deletedAt, d.value = g.data, n("done", g.data);
|
|
5314
5339
|
});
|
|
5315
5340
|
}
|
|
5316
|
-
return
|
|
5341
|
+
return B(
|
|
5317
5342
|
i,
|
|
5318
5343
|
() => {
|
|
5319
|
-
|
|
5344
|
+
f();
|
|
5320
5345
|
},
|
|
5321
5346
|
{ immediate: !0 }
|
|
5322
|
-
), (g, $) => (
|
|
5323
|
-
|
|
5324
|
-
|
|
5347
|
+
), (g, $) => (p(), x("div", null, [
|
|
5348
|
+
d.value ? (p(), x("div", Bi, [
|
|
5349
|
+
O(m(Oe), { gutter: 20 }, {
|
|
5325
5350
|
default: E(() => [
|
|
5326
|
-
|
|
5351
|
+
c.value ? (p(), S(m($e), {
|
|
5327
5352
|
key: 0,
|
|
5328
5353
|
span: 6,
|
|
5329
5354
|
style: { "margin-bottom": "20px" }
|
|
5330
5355
|
}, {
|
|
5331
5356
|
default: E(() => [
|
|
5332
|
-
(
|
|
5333
|
-
field:
|
|
5334
|
-
row:
|
|
5357
|
+
(p(), S(X(c.value.display), {
|
|
5358
|
+
field: c.value,
|
|
5359
|
+
row: d.value
|
|
5335
5360
|
}, null, 8, ["field", "row"]))
|
|
5336
5361
|
]),
|
|
5337
5362
|
_: 1
|
|
5338
5363
|
})) : L("", !0),
|
|
5339
|
-
|
|
5340
|
-
span:
|
|
5364
|
+
O(m($e), {
|
|
5365
|
+
span: c.value ? 18 : 24
|
|
5341
5366
|
}, {
|
|
5342
5367
|
default: E(() => [
|
|
5343
|
-
|
|
5368
|
+
O(m(Oe), { gutter: 20 }, {
|
|
5344
5369
|
default: E(() => [
|
|
5345
|
-
(
|
|
5346
|
-
span:
|
|
5370
|
+
(p(!0), x(P, null, q(b.value, (u) => (p(), S(m($e), {
|
|
5371
|
+
span: u.span,
|
|
5347
5372
|
class: "mono-data",
|
|
5348
5373
|
style: { "margin-bottom": "20px" }
|
|
5349
5374
|
}, {
|
|
5350
5375
|
default: E(() => [
|
|
5351
|
-
C("div",
|
|
5352
|
-
C("div",
|
|
5353
|
-
|
|
5354
|
-
N(
|
|
5355
|
-
], 64)) : (
|
|
5376
|
+
C("div", Vi, j(u.label), 1),
|
|
5377
|
+
C("div", Ni, [
|
|
5378
|
+
u.code === "id" ? (p(), x(P, { key: 0 }, [
|
|
5379
|
+
N(j(d.value.id), 1)
|
|
5380
|
+
], 64)) : (p(), S(X(u.display), {
|
|
5356
5381
|
key: 1,
|
|
5357
|
-
field:
|
|
5358
|
-
row:
|
|
5382
|
+
field: u,
|
|
5383
|
+
row: d.value,
|
|
5359
5384
|
mode: "description"
|
|
5360
5385
|
}, null, 8, ["field", "row"]))
|
|
5361
5386
|
])
|
|
@@ -5371,22 +5396,22 @@ const gi = {
|
|
|
5371
5396
|
]),
|
|
5372
5397
|
_: 1
|
|
5373
5398
|
}),
|
|
5374
|
-
|
|
5399
|
+
k.value.length > 0 ? (p(), S(m($s), {
|
|
5375
5400
|
key: 0,
|
|
5376
5401
|
modelValue: y.value,
|
|
5377
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
5402
|
+
"onUpdate:modelValue": $[0] || ($[0] = (u) => y.value = u),
|
|
5378
5403
|
class: "extend-fields"
|
|
5379
5404
|
}, {
|
|
5380
5405
|
default: E(() => [
|
|
5381
|
-
(
|
|
5382
|
-
title:
|
|
5383
|
-
name:
|
|
5406
|
+
(p(!0), x(P, null, q(k.value, (u) => (p(), S(m(Ss), {
|
|
5407
|
+
title: u.label,
|
|
5408
|
+
name: u.code,
|
|
5384
5409
|
class: "mono-data"
|
|
5385
5410
|
}, {
|
|
5386
5411
|
default: E(() => [
|
|
5387
|
-
(
|
|
5388
|
-
field:
|
|
5389
|
-
row:
|
|
5412
|
+
(p(), S(X(u.display), {
|
|
5413
|
+
field: u,
|
|
5414
|
+
row: d.value,
|
|
5390
5415
|
mode: "extend"
|
|
5391
5416
|
}, null, 8, ["field", "row"]))
|
|
5392
5417
|
]),
|
|
@@ -5395,12 +5420,12 @@ const gi = {
|
|
|
5395
5420
|
]),
|
|
5396
5421
|
_: 1
|
|
5397
5422
|
}, 8, ["modelValue"])) : L("", !0)
|
|
5398
|
-
])) : _e((
|
|
5399
|
-
[
|
|
5423
|
+
])) : _e((p(), x("div", Ii, null, 512)), [
|
|
5424
|
+
[m(ve), !0]
|
|
5400
5425
|
])
|
|
5401
5426
|
]));
|
|
5402
5427
|
}
|
|
5403
|
-
}, Yn = /* @__PURE__ */ V(
|
|
5428
|
+
}, Yn = /* @__PURE__ */ V(Mi, [["__scopeId", "data-v-a9915925"]]), Ui = { class: "data-page-title" }, zi = { class: "title" }, Hi = {
|
|
5404
5429
|
__name: "DataDetailHeader",
|
|
5405
5430
|
props: {
|
|
5406
5431
|
data: {
|
|
@@ -5415,35 +5440,35 @@ const gi = {
|
|
|
5415
5440
|
},
|
|
5416
5441
|
emits: ["get-item"],
|
|
5417
5442
|
setup(t, { emit: e }) {
|
|
5418
|
-
|
|
5443
|
+
xt();
|
|
5419
5444
|
const n = U(), s = Q(n), o = t, r = D("加载中..."), a = D({});
|
|
5420
|
-
function i(
|
|
5445
|
+
function i(d) {
|
|
5421
5446
|
const h = o.settings;
|
|
5422
5447
|
if (h.displayMode.normalMode == "detail")
|
|
5423
5448
|
r.value = `${h.name}`;
|
|
5424
5449
|
else {
|
|
5425
|
-
const
|
|
5426
|
-
r.value =
|
|
5450
|
+
const c = `${h.formatName(d)}`;
|
|
5451
|
+
r.value = c ? `${h.name}:${c}` : `${h.name}`;
|
|
5427
5452
|
}
|
|
5428
5453
|
}
|
|
5429
|
-
return
|
|
5454
|
+
return B(
|
|
5430
5455
|
() => o.data,
|
|
5431
|
-
(
|
|
5432
|
-
|
|
5456
|
+
(d) => {
|
|
5457
|
+
d && (a.value = o.settings.operations(s), i(d));
|
|
5433
5458
|
},
|
|
5434
5459
|
{ immediate: !0 }
|
|
5435
|
-
), (
|
|
5436
|
-
C("div",
|
|
5460
|
+
), (d, h) => (p(), x("div", Ui, [
|
|
5461
|
+
C("div", zi, j(r.value), 1),
|
|
5437
5462
|
C("div", null, [
|
|
5438
|
-
o.data ? (
|
|
5463
|
+
o.data ? (p(), S(m(pe), { key: 0 }, {
|
|
5439
5464
|
default: E(() => [
|
|
5440
|
-
|
|
5465
|
+
O(qn, {
|
|
5441
5466
|
row: o.data,
|
|
5442
5467
|
settings: o.settings,
|
|
5443
|
-
query:
|
|
5468
|
+
query: m(s),
|
|
5444
5469
|
mode: "detail"
|
|
5445
5470
|
}, null, 8, ["row", "settings", "query"]),
|
|
5446
|
-
o.settings.showEdit(
|
|
5471
|
+
o.settings.showEdit(m(s), "detail") ? (p(), S(Ot, {
|
|
5447
5472
|
key: 0,
|
|
5448
5473
|
row: o.data,
|
|
5449
5474
|
settings: o.settings,
|
|
@@ -5456,7 +5481,7 @@ const gi = {
|
|
|
5456
5481
|
])
|
|
5457
5482
|
]));
|
|
5458
5483
|
}
|
|
5459
|
-
},
|
|
5484
|
+
}, qi = /* @__PURE__ */ V(Hi, [["__scopeId", "data-v-0d04eb53"]]), Wi = {
|
|
5460
5485
|
__name: "DetailPageTabs",
|
|
5461
5486
|
props: {
|
|
5462
5487
|
associations: {
|
|
@@ -5475,13 +5500,13 @@ const gi = {
|
|
|
5475
5500
|
query: s
|
|
5476
5501
|
});
|
|
5477
5502
|
}
|
|
5478
|
-
function
|
|
5503
|
+
function d(h) {
|
|
5479
5504
|
if (o.associations.length > 0)
|
|
5480
5505
|
if (n.params.association) {
|
|
5481
5506
|
r.value = n.params.association;
|
|
5482
|
-
const
|
|
5507
|
+
const l = o.associations.find((c) => c.domain === n.params.association);
|
|
5483
5508
|
a.value = {
|
|
5484
|
-
...
|
|
5509
|
+
...l,
|
|
5485
5510
|
domainData: o.domainData
|
|
5486
5511
|
};
|
|
5487
5512
|
} else
|
|
@@ -5490,10 +5515,10 @@ const gi = {
|
|
|
5490
5515
|
domainData: o.domainData
|
|
5491
5516
|
}, h && h();
|
|
5492
5517
|
}
|
|
5493
|
-
return
|
|
5518
|
+
return B(
|
|
5494
5519
|
() => o.domainData,
|
|
5495
5520
|
() => {
|
|
5496
|
-
|
|
5521
|
+
d(() => {
|
|
5497
5522
|
e.replace({
|
|
5498
5523
|
name: `${n.meta.side}-association`,
|
|
5499
5524
|
params: { association: r.value },
|
|
@@ -5502,37 +5527,37 @@ const gi = {
|
|
|
5502
5527
|
});
|
|
5503
5528
|
},
|
|
5504
5529
|
{ immediate: !0 }
|
|
5505
|
-
),
|
|
5530
|
+
), B(
|
|
5506
5531
|
() => n.params,
|
|
5507
5532
|
() => {
|
|
5508
|
-
|
|
5533
|
+
d();
|
|
5509
5534
|
},
|
|
5510
5535
|
{ immediate: !0 }
|
|
5511
|
-
), (h,
|
|
5512
|
-
const
|
|
5513
|
-
return
|
|
5514
|
-
|
|
5536
|
+
), (h, l) => {
|
|
5537
|
+
const c = qe("router-view");
|
|
5538
|
+
return p(), x(P, null, [
|
|
5539
|
+
O(m(_n), {
|
|
5515
5540
|
modelValue: r.value,
|
|
5516
|
-
"onUpdate:modelValue":
|
|
5541
|
+
"onUpdate:modelValue": l[0] || (l[0] = (b) => r.value = b),
|
|
5517
5542
|
class: "association-tabs",
|
|
5518
5543
|
onTabClick: i
|
|
5519
5544
|
}, {
|
|
5520
5545
|
default: E(() => [
|
|
5521
|
-
(
|
|
5522
|
-
label:
|
|
5523
|
-
name:
|
|
5546
|
+
(p(!0), x(P, null, q(o.associations, (b) => (p(), S(m(vn), {
|
|
5547
|
+
label: b.name,
|
|
5548
|
+
name: b.domain
|
|
5524
5549
|
}, null, 8, ["label", "name"]))), 256))
|
|
5525
5550
|
]),
|
|
5526
5551
|
_: 1
|
|
5527
5552
|
}, 8, ["modelValue"]),
|
|
5528
|
-
a.value ? (
|
|
5553
|
+
a.value ? (p(), S(c, {
|
|
5529
5554
|
key: a.value,
|
|
5530
5555
|
association: a.value
|
|
5531
5556
|
}, null, 8, ["association"])) : L("", !0)
|
|
5532
5557
|
], 64);
|
|
5533
5558
|
};
|
|
5534
5559
|
}
|
|
5535
|
-
},
|
|
5560
|
+
}, Qi = /* @__PURE__ */ V(Wi, [["__scopeId", "data-v-0dc49aad"]]), Ji = {
|
|
5536
5561
|
__name: "DetailPageList",
|
|
5537
5562
|
props: {
|
|
5538
5563
|
associations: {
|
|
@@ -5543,18 +5568,18 @@ const gi = {
|
|
|
5543
5568
|
}
|
|
5544
5569
|
},
|
|
5545
5570
|
setup(t) {
|
|
5546
|
-
return (e, n) => (
|
|
5547
|
-
s.type == "has-many" ? (
|
|
5571
|
+
return (e, n) => (p(!0), x(P, null, q(t.associations, (s) => (p(), x("div", null, [
|
|
5572
|
+
s.type == "has-many" ? (p(), S(ji, {
|
|
5548
5573
|
key: 0,
|
|
5549
5574
|
domain: s.domain
|
|
5550
5575
|
}, null, 8, ["domain"])) : L("", !0),
|
|
5551
|
-
s.type == "has-one" ? (
|
|
5576
|
+
s.type == "has-one" ? (p(), S(Zi, {
|
|
5552
5577
|
key: 1,
|
|
5553
5578
|
domain: s.domain
|
|
5554
5579
|
}, null, 8, ["domain"])) : L("", !0)
|
|
5555
5580
|
]))), 256));
|
|
5556
5581
|
}
|
|
5557
|
-
},
|
|
5582
|
+
}, Yi = {
|
|
5558
5583
|
__name: "DataDetailPage",
|
|
5559
5584
|
props: {
|
|
5560
5585
|
settings: {
|
|
@@ -5570,34 +5595,34 @@ const gi = {
|
|
|
5570
5595
|
function r(a) {
|
|
5571
5596
|
o.value = a;
|
|
5572
5597
|
}
|
|
5573
|
-
return (a, i) => (
|
|
5574
|
-
key: `${
|
|
5598
|
+
return (a, i) => (p(), x("div", {
|
|
5599
|
+
key: `${m(e).params.domain}-${m(e).params.id}`
|
|
5575
5600
|
}, [
|
|
5576
|
-
|
|
5601
|
+
O(qi, {
|
|
5577
5602
|
data: o.value,
|
|
5578
5603
|
settings: s.settings,
|
|
5579
|
-
query: { ...
|
|
5604
|
+
query: { ...m(e).params, ...m(n) }
|
|
5580
5605
|
}, null, 8, ["data", "settings", "query"]),
|
|
5581
|
-
|
|
5582
|
-
query: { ...
|
|
5606
|
+
O(Yn, {
|
|
5607
|
+
query: { ...m(e).params, ...m(n) },
|
|
5583
5608
|
settings: s.settings,
|
|
5584
5609
|
onDone: r
|
|
5585
5610
|
}, null, 8, ["query", "settings"]),
|
|
5586
|
-
s.settings.detailSubType === "tabs" ? (
|
|
5611
|
+
s.settings.detailSubType === "tabs" ? (p(), S(Qi, {
|
|
5587
5612
|
key: 0,
|
|
5588
5613
|
associations: t.associations,
|
|
5589
5614
|
"domain-data": o.value
|
|
5590
|
-
}, null, 8, ["associations", "domain-data"])) : (
|
|
5615
|
+
}, null, 8, ["associations", "domain-data"])) : (p(), S(Ji, {
|
|
5591
5616
|
key: 1,
|
|
5592
5617
|
associations: t.associations,
|
|
5593
5618
|
"domain-data": o.value
|
|
5594
5619
|
}, null, 8, ["associations", "domain-data"]))
|
|
5595
5620
|
]));
|
|
5596
5621
|
}
|
|
5597
|
-
},
|
|
5622
|
+
}, Gi = /* @__PURE__ */ V(Yi, [["__scopeId", "data-v-6e5c2d0f"]]), Ki = {
|
|
5598
5623
|
key: 1,
|
|
5599
5624
|
class: "loading-wrapper"
|
|
5600
|
-
},
|
|
5625
|
+
}, Xi = {
|
|
5601
5626
|
__name: "Detail",
|
|
5602
5627
|
props: {
|
|
5603
5628
|
domain: {
|
|
@@ -5607,36 +5632,36 @@ const gi = {
|
|
|
5607
5632
|
setup(t) {
|
|
5608
5633
|
const e = t, n = U(), s = Q(n), o = n.meta.side, r = e.domain || n.params.domain, a = te(null), i = te([]);
|
|
5609
5634
|
$t(o, r).then((h) => {
|
|
5610
|
-
const
|
|
5611
|
-
a.value =
|
|
5635
|
+
const l = h, c = d("has-many", l.hasMany(s)), b = d("has-one", l.hasOne(s));
|
|
5636
|
+
a.value = l, i.value = b.concat(c);
|
|
5612
5637
|
});
|
|
5613
|
-
function
|
|
5614
|
-
return (
|
|
5638
|
+
function d(h, l) {
|
|
5639
|
+
return (l || []).map((c) => typeof c == "object" ? {
|
|
5615
5640
|
type: h,
|
|
5616
|
-
domain:
|
|
5617
|
-
name:
|
|
5618
|
-
tableName:
|
|
5619
|
-
tableContentHeight:
|
|
5620
|
-
query:
|
|
5641
|
+
domain: c.code,
|
|
5642
|
+
name: c.name,
|
|
5643
|
+
tableName: c.tableName,
|
|
5644
|
+
tableContentHeight: c.tableContentHeight,
|
|
5645
|
+
query: c.query || (() => ({}))
|
|
5621
5646
|
} : {
|
|
5622
5647
|
type: h,
|
|
5623
|
-
domain:
|
|
5624
|
-
name: Et()[o][
|
|
5648
|
+
domain: c,
|
|
5649
|
+
name: Et()[o][c].name,
|
|
5625
5650
|
query: () => ({})
|
|
5626
5651
|
});
|
|
5627
5652
|
}
|
|
5628
|
-
return (h,
|
|
5653
|
+
return (h, l) => a.value ? (p(), S(Gi, {
|
|
5629
5654
|
key: 0,
|
|
5630
5655
|
settings: a.value,
|
|
5631
5656
|
associations: i.value
|
|
5632
|
-
}, null, 8, ["settings", "associations"])) : _e((
|
|
5633
|
-
[
|
|
5657
|
+
}, null, 8, ["settings", "associations"])) : _e((p(), x("div", Ki, null, 512)), [
|
|
5658
|
+
[m(ve), !0]
|
|
5634
5659
|
]);
|
|
5635
5660
|
}
|
|
5636
|
-
},
|
|
5661
|
+
}, Zi = /* @__PURE__ */ V(Xi, [["__scopeId", "data-v-ecd5a448"]]), el = { key: 0 }, tl = {
|
|
5637
5662
|
key: 1,
|
|
5638
5663
|
class: "loading-wrapper"
|
|
5639
|
-
},
|
|
5664
|
+
}, nl = {
|
|
5640
5665
|
__name: "DetailTab",
|
|
5641
5666
|
props: {
|
|
5642
5667
|
association: {
|
|
@@ -5645,7 +5670,7 @@ const gi = {
|
|
|
5645
5670
|
},
|
|
5646
5671
|
setup(t) {
|
|
5647
5672
|
const e = U(), n = e.meta.side, s = Q(e), o = t, r = te(null);
|
|
5648
|
-
return
|
|
5673
|
+
return B(
|
|
5649
5674
|
() => e.params.association,
|
|
5650
5675
|
() => {
|
|
5651
5676
|
$t(n, e.params.association).then((a) => {
|
|
@@ -5653,65 +5678,65 @@ const gi = {
|
|
|
5653
5678
|
});
|
|
5654
5679
|
},
|
|
5655
5680
|
{ immediate: !0 }
|
|
5656
|
-
), (a, i) => r.value && o.association.domainData ? (
|
|
5657
|
-
r.value.type === "has-many" ? (
|
|
5681
|
+
), (a, i) => r.value && o.association.domainData ? (p(), x("div", el, [
|
|
5682
|
+
r.value.type === "has-many" ? (p(), S(Qn, {
|
|
5658
5683
|
key: `has-many-${r.value.domain}`,
|
|
5659
5684
|
settings: r.value.settings,
|
|
5660
5685
|
"has-many": o.association,
|
|
5661
5686
|
query: r.value.query(o.association.domainData)
|
|
5662
|
-
}, null, 8, ["settings", "has-many", "query"])) : r.value.type === "has-one" ? (
|
|
5687
|
+
}, null, 8, ["settings", "has-many", "query"])) : r.value.type === "has-one" ? (p(), S(Yn, {
|
|
5663
5688
|
key: `has-one-${r.value.domain}`,
|
|
5664
5689
|
style: { "padding-top": "20px" },
|
|
5665
|
-
query:
|
|
5690
|
+
query: m(s),
|
|
5666
5691
|
settings: r.value.settings
|
|
5667
5692
|
}, null, 8, ["query", "settings"])) : L("", !0)
|
|
5668
|
-
])) : _e((
|
|
5669
|
-
[
|
|
5693
|
+
])) : _e((p(), x("div", tl, null, 512)), [
|
|
5694
|
+
[m(ve), !0]
|
|
5670
5695
|
]);
|
|
5671
5696
|
}
|
|
5672
|
-
},
|
|
5697
|
+
}, Ol = /* @__PURE__ */ V(nl, [["__scopeId", "data-v-79eac380"]]);
|
|
5673
5698
|
export {
|
|
5674
|
-
|
|
5699
|
+
fl as A,
|
|
5675
5700
|
ta as B,
|
|
5676
5701
|
St as C,
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5702
|
+
dl as D,
|
|
5703
|
+
ml as E,
|
|
5704
|
+
Fr as F,
|
|
5680
5705
|
Qn as G,
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5706
|
+
xl as H,
|
|
5707
|
+
Zi as I,
|
|
5708
|
+
Ol as J,
|
|
5684
5709
|
ce as K,
|
|
5685
|
-
|
|
5686
|
-
|
|
5710
|
+
ji as L,
|
|
5711
|
+
xt as M,
|
|
5687
5712
|
ma as S,
|
|
5688
5713
|
la as W,
|
|
5689
5714
|
V as _,
|
|
5690
|
-
|
|
5715
|
+
vl as a,
|
|
5691
5716
|
zn as b,
|
|
5692
5717
|
na as c,
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5718
|
+
_l as d,
|
|
5719
|
+
$l as e,
|
|
5720
|
+
gl as f,
|
|
5696
5721
|
$t as g,
|
|
5697
5722
|
oe as h,
|
|
5698
|
-
|
|
5723
|
+
hl as i,
|
|
5699
5724
|
He as j,
|
|
5700
|
-
|
|
5701
|
-
|
|
5725
|
+
nr as k,
|
|
5726
|
+
bl as l,
|
|
5702
5727
|
H as m,
|
|
5703
|
-
|
|
5728
|
+
yl as n,
|
|
5704
5729
|
Wo as o,
|
|
5705
|
-
|
|
5706
|
-
|
|
5730
|
+
wl as p,
|
|
5731
|
+
El as q,
|
|
5707
5732
|
Qo as r,
|
|
5708
5733
|
Q as s,
|
|
5709
|
-
|
|
5734
|
+
il as t,
|
|
5710
5735
|
oa as u,
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5736
|
+
Sl as v,
|
|
5737
|
+
ll as w,
|
|
5738
|
+
ul as x,
|
|
5739
|
+
cl as y,
|
|
5740
|
+
pl as z
|
|
5716
5741
|
};
|
|
5717
|
-
//# sourceMappingURL=index-
|
|
5742
|
+
//# sourceMappingURL=index-DOzO-57R.js.map
|