kouxiangtang 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AttachmentUploader-B_MyXAxj.js → AttachmentUploader-8IaI6ynz.js} +2 -2
- package/dist/{AttachmentUploader-B_MyXAxj.js.map → AttachmentUploader-8IaI6ynz.js.map} +1 -1
- package/dist/{ImageUploader-DYvd8RV-.js → ImageUploader-DTvZQ3FY.js} +2 -2
- package/dist/{ImageUploader-DYvd8RV-.js.map → ImageUploader-DTvZQ3FY.js.map} +1 -1
- package/dist/{ImagesUploader-DM_Y29U-.js → ImagesUploader-C_lRUsOq.js} +2 -2
- package/dist/{ImagesUploader-DM_Y29U-.js.map → ImagesUploader-C_lRUsOq.js.map} +1 -1
- package/dist/{RichTextEditor-XHYlTrQk.js → RichTextEditor-DWecmNsQ.js} +2 -2
- package/dist/{RichTextEditor-XHYlTrQk.js.map → RichTextEditor-DWecmNsQ.js.map} +1 -1
- package/dist/{config-CDnK4MyO.js → config-BHkdHfrB.js} +2 -2
- package/dist/{config-CDnK4MyO.js.map → config-BHkdHfrB.js.map} +1 -1
- package/dist/{config-B16P7On0.js → config-BU2sr1IC.js} +2 -2
- package/dist/{config-B16P7On0.js.map → config-BU2sr1IC.js.map} +1 -1
- package/dist/{config-CZvR92Bb.js → config-BVPYOETn.js} +3 -3
- package/dist/{config-CZvR92Bb.js.map → config-BVPYOETn.js.map} +1 -1
- package/dist/{config-Cm5lCLUR.js → config-BsUoj1r1.js} +2 -2
- package/dist/{config-Cm5lCLUR.js.map → config-BsUoj1r1.js.map} +1 -1
- package/dist/{config-D1FDevTu.js → config-CLkMDLs5.js} +2 -2
- package/dist/{config-D1FDevTu.js.map → config-CLkMDLs5.js.map} +1 -1
- package/dist/{config-c93Sg1zd.js → config-CiRKf9gO.js} +2 -2
- package/dist/{config-c93Sg1zd.js.map → config-CiRKf9gO.js.map} +1 -1
- package/dist/{config-B3gQObno.js → config-Cn0z8LnF.js} +2 -2
- package/dist/{config-B3gQObno.js.map → config-Cn0z8LnF.js.map} +1 -1
- package/dist/{config-B60zOYrr.js → config-Cn5jQKRY.js} +2 -2
- package/dist/{config-B60zOYrr.js.map → config-Cn5jQKRY.js.map} +1 -1
- package/dist/{config-H8dpV1N3.js → config-CvKmCDBm.js} +2 -2
- package/dist/{config-H8dpV1N3.js.map → config-CvKmCDBm.js.map} +1 -1
- package/dist/config-CwI1EbsY.js +114 -0
- package/dist/config-CwI1EbsY.js.map +1 -0
- package/dist/{config-0-HkoN0k.js → config-D19luHMm.js} +2 -2
- package/dist/{config-0-HkoN0k.js.map → config-D19luHMm.js.map} +1 -1
- package/dist/{config-DZklFDE8.js → config-D7tKOIT2.js} +2 -2
- package/dist/{config-DZklFDE8.js.map → config-D7tKOIT2.js.map} +1 -1
- package/dist/{config-CkWkEfLR.js → config-DEhHnk2B.js} +2 -2
- package/dist/{config-CkWkEfLR.js.map → config-DEhHnk2B.js.map} +1 -1
- package/dist/{config-BSPI764z.js → config-DH736Dzq.js} +2 -2
- package/dist/{config-BSPI764z.js.map → config-DH736Dzq.js.map} +1 -1
- package/dist/{config-CvreDl-u.js → config-DL2jlaxo.js} +3 -3
- package/dist/{config-CvreDl-u.js.map → config-DL2jlaxo.js.map} +1 -1
- package/dist/{config-FXnyPV16.js → config-HXvD5W1L.js} +2 -2
- package/dist/{config-FXnyPV16.js.map → config-HXvD5W1L.js.map} +1 -1
- package/dist/{config-fmKuN1Au.js → config-JRtmWsWg.js} +2 -2
- package/dist/{config-fmKuN1Au.js.map → config-JRtmWsWg.js.map} +1 -1
- package/dist/{config-dIaU4sVG.js → config-QhV-mcAJ.js} +2 -2
- package/dist/{config-dIaU4sVG.js.map → config-QhV-mcAJ.js.map} +1 -1
- package/dist/{config-DUEXjIHK.js → config-hx_TBfIr.js} +2 -2
- package/dist/{config-DUEXjIHK.js.map → config-hx_TBfIr.js.map} +1 -1
- package/dist/{config-CjzdxyNk.js → config-mjFfM12K.js} +2 -2
- package/dist/{config-CjzdxyNk.js.map → config-mjFfM12K.js.map} +1 -1
- package/dist/{index-DixHP1pC.js → index-BGG4xNjJ.js} +754 -741
- package/dist/index-BGG4xNjJ.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-CdD2VMl-.js +0 -87
- package/dist/config-CdD2VMl-.js.map +0 -1
- package/dist/index-DixHP1pC.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { openBlock as u, createBlock as $, unref as f, createSlots as Se, withCtx as b, renderSlot as Y, createElementVNode as
|
|
2
|
-
import { ElCard as bt, ElLink as ls, vLoading as
|
|
3
|
-
import { useRoute as z, useRouter as
|
|
1
|
+
import { openBlock as u, createBlock as $, unref as f, createSlots as Se, withCtx as b, renderSlot as Y, createElementVNode as C, toDisplayString as P, resolveComponent as Qe, withDirectives as ye, createElementBlock as x, normalizeStyle as Ve, createVNode as O, createTextVNode as M, defineComponent as N, computed as I, Fragment as L, renderList as H, ref as A, reactive as Ce, watch as j, resolveDynamicComponent as G, createCommentVNode as T, shallowRef as te, defineAsyncComponent as ts, normalizeClass as me, withModifiers as Lt, useSlots as Re, onMounted as pn, watchEffect as vt, pushScopeId as fn, popScopeId as mn, normalizeProps as Bt, guardReactiveProps as jt, getCurrentScope as ns, onScopeDispose as ss, getCurrentInstance as os, nextTick as as, useCssVars as rs, Transition as is } from "vue";
|
|
2
|
+
import { ElCard as bt, ElLink as ls, vLoading as ve, ElRow as he, ElCol as pe, ElForm as hn, ElFormItem as rt, ElAlert as us, ElButton as ne, ElMessageBox as cs, ElMessage as De, ElDialog as ds, ElLoading as Me, ElInputNumber as Vt, ElSelect as Mt, ElOption as Xe, ElSelectV2 as ps, ElTreeSelect as fs, ElDatePicker as Ze, ElInput as ms, ElButtonGroup as _e, ElDropdown as it, ElDropdownMenu as lt, ElDropdownItem as de, ElIcon as K, ElEmpty as hs, ElImage as _n, ElTable as _s, ElTableColumn as je, ElTooltip as gn, ElPagination as gs, ElText as ut, ElTabs as yn, ElTabPane as vn, ElSubMenu as ys, ElMenuItem as vs, ElScrollbar as bs, ElMenu as ws, ElConfigProvider as Es, ElContainer as It, ElHeader as $s, ElAside as Ss, ElMain as xs, ElCollapse as bn, ElCollapseItem as wn } from "element-plus";
|
|
3
|
+
import { useRoute as z, useRouter as be } from "vue-router";
|
|
4
4
|
import { defineStore as wt, storeToRefs as ge } from "pinia";
|
|
5
5
|
function En(t, e) {
|
|
6
6
|
return function() {
|
|
@@ -15,11 +15,11 @@ 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 $n = re("ArrayBuffer");
|
|
18
|
-
function
|
|
18
|
+
function Fs(t) {
|
|
19
19
|
let e;
|
|
20
20
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $n(t.buffer), e;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Cs = Ge("string"), Z = Ge("function"), Sn = Ge("number"), Ye = (t) => t !== null && typeof t == "object", Ds = (t) => t === !0 || t === !1, Ie = (t) => {
|
|
23
23
|
if (Je(t) !== "object")
|
|
24
24
|
return !1;
|
|
25
25
|
const e = Et(t);
|
|
@@ -56,15 +56,15 @@ const kn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
56
56
|
function ct() {
|
|
57
57
|
const { caseless: t } = On(this) && this || {}, e = {}, n = (s, o) => {
|
|
58
58
|
const r = t && xn(e, o) || o;
|
|
59
|
-
|
|
59
|
+
Ie(e[r]) && Ie(s) ? e[r] = ct(e[r], s) : Ie(s) ? e[r] = ct({}, s) : xe(s) ? e[r] = s.slice() : e[r] = s;
|
|
60
60
|
};
|
|
61
61
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
62
62
|
arguments[s] && Te(arguments[s], n);
|
|
63
63
|
return e;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const Ms = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
66
66
|
n && Z(o) ? t[r] = En(o, n) : t[r] = o;
|
|
67
|
-
}, { allOwnKeys: s }), t),
|
|
67
|
+
}, { allOwnKeys: s }), t), Is = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ns = (t, e, n, s) => {
|
|
68
68
|
t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
69
69
|
value: e.prototype
|
|
70
70
|
}), n && Object.assign(t.prototype, n);
|
|
@@ -113,14 +113,14 @@ const Is = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
|
113
113
|
function(n, s, o) {
|
|
114
114
|
return s.toUpperCase() + o;
|
|
115
115
|
}
|
|
116
|
-
),
|
|
116
|
+
), Nt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ys = re("RegExp"), Fn = (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
|
}, Ks = (t) => {
|
|
123
|
-
|
|
123
|
+
Fn(t, (e, n) => {
|
|
124
124
|
if (Z(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
125
125
|
return !1;
|
|
126
126
|
const s = t[n];
|
|
@@ -142,11 +142,11 @@ const Is = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
|
142
142
|
};
|
|
143
143
|
return xe(t) ? s(t) : s(String(t).split(e)), n;
|
|
144
144
|
}, Zs = () => {
|
|
145
|
-
}, eo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), et = "abcdefghijklmnopqrstuvwxyz", zt = "0123456789",
|
|
145
|
+
}, eo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), et = "abcdefghijklmnopqrstuvwxyz", zt = "0123456789", Cn = {
|
|
146
146
|
DIGIT: zt,
|
|
147
147
|
ALPHA: et,
|
|
148
148
|
ALPHA_DIGIT: et + et.toUpperCase() + zt
|
|
149
|
-
}, to = (t = 16, e =
|
|
149
|
+
}, to = (t = 16, e = Cn.ALPHA_DIGIT) => {
|
|
150
150
|
let n = "";
|
|
151
151
|
const { length: s } = e;
|
|
152
152
|
for (; t--; )
|
|
@@ -178,12 +178,12 @@ const so = (t) => {
|
|
|
178
178
|
isArrayBuffer: $n,
|
|
179
179
|
isBuffer: Os,
|
|
180
180
|
isFormData: Bs,
|
|
181
|
-
isArrayBufferView:
|
|
182
|
-
isString:
|
|
181
|
+
isArrayBufferView: Fs,
|
|
182
|
+
isString: Cs,
|
|
183
183
|
isNumber: Sn,
|
|
184
184
|
isBoolean: Ds,
|
|
185
185
|
isObject: Ye,
|
|
186
|
-
isPlainObject:
|
|
186
|
+
isPlainObject: Ie,
|
|
187
187
|
isUndefined: Ae,
|
|
188
188
|
isDate: As,
|
|
189
189
|
isFile: Rs,
|
|
@@ -196,10 +196,10 @@ const so = (t) => {
|
|
|
196
196
|
isFileList: Ps,
|
|
197
197
|
forEach: Te,
|
|
198
198
|
merge: ct,
|
|
199
|
-
extend:
|
|
199
|
+
extend: Ms,
|
|
200
200
|
trim: Vs,
|
|
201
|
-
stripBOM:
|
|
202
|
-
inherits:
|
|
201
|
+
stripBOM: Is,
|
|
202
|
+
inherits: Ns,
|
|
203
203
|
toFlatObject: zs,
|
|
204
204
|
kindOf: Je,
|
|
205
205
|
kindOfTest: re,
|
|
@@ -208,10 +208,10 @@ const so = (t) => {
|
|
|
208
208
|
forEachEntry: Ws,
|
|
209
209
|
matchAll: Qs,
|
|
210
210
|
isHTMLForm: Js,
|
|
211
|
-
hasOwnProperty:
|
|
212
|
-
hasOwnProp:
|
|
211
|
+
hasOwnProperty: Nt,
|
|
212
|
+
hasOwnProp: Nt,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
|
-
reduceDescriptors:
|
|
214
|
+
reduceDescriptors: Fn,
|
|
215
215
|
freezeMethods: Ks,
|
|
216
216
|
toObjectSet: Xs,
|
|
217
217
|
toCamelCase: Gs,
|
|
@@ -220,7 +220,7 @@ const so = (t) => {
|
|
|
220
220
|
findKey: xn,
|
|
221
221
|
global: kn,
|
|
222
222
|
isContextDefined: On,
|
|
223
|
-
ALPHABET:
|
|
223
|
+
ALPHABET: Cn,
|
|
224
224
|
generateString: to,
|
|
225
225
|
isSpecCompliantForm: no,
|
|
226
226
|
toJSONObject: so,
|
|
@@ -302,27 +302,27 @@ function Ke(t, e, n) {
|
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(h,
|
|
306
|
-
return !w.isUndefined(
|
|
305
|
+
}, !1, function(h, g) {
|
|
306
|
+
return !w.isUndefined(g[h]);
|
|
307
307
|
});
|
|
308
308
|
const s = n.metaTokens, o = n.visitor || c, r = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && w.isSpecCompliantForm(e);
|
|
309
309
|
if (!w.isFunction(o))
|
|
310
310
|
throw new TypeError("visitor must be a function");
|
|
311
|
-
function m(
|
|
312
|
-
if (
|
|
311
|
+
function m(_) {
|
|
312
|
+
if (_ === null)
|
|
313
313
|
return "";
|
|
314
|
-
if (w.isDate(
|
|
315
|
-
return
|
|
316
|
-
if (!d && w.isBlob(
|
|
314
|
+
if (w.isDate(_))
|
|
315
|
+
return _.toISOString();
|
|
316
|
+
if (!d && w.isBlob(_))
|
|
317
317
|
throw new R("Blob is not supported. Use a Buffer instead.");
|
|
318
|
-
return w.isArrayBuffer(
|
|
318
|
+
return w.isArrayBuffer(_) || w.isTypedArray(_) ? d && typeof Blob == "function" ? new Blob([_]) : Buffer.from(_) : _;
|
|
319
319
|
}
|
|
320
|
-
function c(
|
|
321
|
-
let E =
|
|
322
|
-
if (
|
|
320
|
+
function c(_, h, g) {
|
|
321
|
+
let E = _;
|
|
322
|
+
if (_ && !g && typeof _ == "object") {
|
|
323
323
|
if (w.endsWith(h, "{}"))
|
|
324
|
-
h = s ? h : h.slice(0, -2),
|
|
325
|
-
else if (w.isArray(
|
|
324
|
+
h = s ? h : h.slice(0, -2), _ = JSON.stringify(_);
|
|
325
|
+
else if (w.isArray(_) && io(_) || (w.isFileList(_) || w.endsWith(h, "[]")) && (E = w.toArray(_)))
|
|
326
326
|
return h = Rn(h), E.forEach(function(S, y) {
|
|
327
327
|
!(w.isUndefined(S) || S === null) && e.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -331,18 +331,18 @@ function Ke(t, e, n) {
|
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return dt(
|
|
334
|
+
return dt(_) ? !0 : (e.append(Ut(g, h, r), m(_)), !1);
|
|
335
335
|
}
|
|
336
336
|
const l = [], v = Object.assign(lo, {
|
|
337
337
|
defaultVisitor: c,
|
|
338
338
|
convertValue: m,
|
|
339
339
|
isVisitable: dt
|
|
340
340
|
});
|
|
341
|
-
function k(
|
|
342
|
-
if (!w.isUndefined(
|
|
343
|
-
if (l.indexOf(
|
|
341
|
+
function k(_, h) {
|
|
342
|
+
if (!w.isUndefined(_)) {
|
|
343
|
+
if (l.indexOf(_) !== -1)
|
|
344
344
|
throw Error("Circular reference detected in " + h.join("."));
|
|
345
|
-
l.push(
|
|
345
|
+
l.push(_), w.forEach(_, function(E, p) {
|
|
346
346
|
(!(w.isUndefined(E) || E === null) && o.call(
|
|
347
347
|
e,
|
|
348
348
|
E,
|
|
@@ -466,14 +466,14 @@ const Ln = {
|
|
|
466
466
|
Blob: fo
|
|
467
467
|
},
|
|
468
468
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
469
|
-
}, Bn = typeof window < "u" && typeof document < "u", ho = ((t) => Bn && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product),
|
|
470
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
469
|
+
}, Bn = typeof window < "u" && typeof document < "u", ho = ((t) => Bn && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), _o = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
470
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
471
|
__proto__: null,
|
|
472
472
|
hasBrowserEnv: Bn,
|
|
473
473
|
hasStandardBrowserEnv: ho,
|
|
474
|
-
hasStandardBrowserWebWorkerEnv:
|
|
474
|
+
hasStandardBrowserWebWorkerEnv: _o
|
|
475
475
|
}, Symbol.toStringTag, { value: "Module" })), ae = {
|
|
476
|
-
...
|
|
476
|
+
...go,
|
|
477
477
|
...mo
|
|
478
478
|
};
|
|
479
479
|
function yo(t, e) {
|
|
@@ -617,8 +617,8 @@ const Eo = w.toObjectSet([
|
|
|
617
617
|
function Oe(t) {
|
|
618
618
|
return t && String(t).trim().toLowerCase();
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return t === !1 || t == null ? t : w.isArray(t) ? t.map(
|
|
620
|
+
function Ne(t) {
|
|
621
|
+
return t === !1 || t == null ? t : w.isArray(t) ? t.map(Ne) : String(t);
|
|
622
622
|
}
|
|
623
623
|
function So(t) {
|
|
624
624
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -663,7 +663,7 @@ class ee {
|
|
|
663
663
|
if (!c)
|
|
664
664
|
throw new Error("header name must be a non-empty string");
|
|
665
665
|
const l = w.findKey(o, c);
|
|
666
|
-
(!l || o[l] === void 0 || m === !0 || m === void 0 && o[l] !== !1) && (o[l || d] =
|
|
666
|
+
(!l || o[l] === void 0 || m === !0 || m === void 0 && o[l] !== !1) && (o[l || d] = Ne(i));
|
|
667
667
|
}
|
|
668
668
|
const a = (i, d) => w.forEach(i, (m, c) => r(m, c, d));
|
|
669
669
|
return w.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : w.isString(e) && (e = e.trim()) && !xo(e) ? a($o(e), n) : e != null && r(n, e, s), this;
|
|
@@ -717,11 +717,11 @@ class ee {
|
|
|
717
717
|
return w.forEach(this, (o, r) => {
|
|
718
718
|
const a = w.findKey(s, r);
|
|
719
719
|
if (a) {
|
|
720
|
-
n[a] =
|
|
720
|
+
n[a] = Ne(o), delete n[r];
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
723
|
const i = e ? ko(r) : String(r).trim();
|
|
724
|
-
i !== r && delete n[r], n[i] =
|
|
724
|
+
i !== r && delete n[r], n[i] = Ne(o), s[i] = !0;
|
|
725
725
|
}), this;
|
|
726
726
|
}
|
|
727
727
|
concat(...e) {
|
|
@@ -788,7 +788,7 @@ function Le(t, e, n) {
|
|
|
788
788
|
w.inherits(Le, R, {
|
|
789
789
|
__CANCEL__: !0
|
|
790
790
|
});
|
|
791
|
-
function
|
|
791
|
+
function Fo(t, e, n) {
|
|
792
792
|
const s = n.config.validateStatus;
|
|
793
793
|
!n.status || !s || s(n.status) ? t(n) : e(new R(
|
|
794
794
|
"Request failed with status code " + n.status,
|
|
@@ -798,7 +798,7 @@ function Co(t, e, n) {
|
|
|
798
798
|
n
|
|
799
799
|
));
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const Co = ae.hasStandardBrowserEnv ? (
|
|
802
802
|
// Standard browser envs support document.cookie
|
|
803
803
|
{
|
|
804
804
|
write(t, e, n, s, o, r) {
|
|
@@ -831,7 +831,7 @@ function Do(t) {
|
|
|
831
831
|
function Ao(t, e) {
|
|
832
832
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Mn(t, e) {
|
|
835
835
|
return t && !Do(e) ? Ao(t, e) : e;
|
|
836
836
|
}
|
|
837
837
|
const Ro = ae.hasStandardBrowserEnv ? (
|
|
@@ -917,16 +917,16 @@ const Lo = typeof XMLHttpRequest < "u", Bo = Lo && function(t) {
|
|
|
917
917
|
if (ae.hasStandardBrowserEnv || ae.hasStandardBrowserWebWorkerEnv)
|
|
918
918
|
r.setContentType(!1);
|
|
919
919
|
else if ((c = r.getContentType()) !== !1) {
|
|
920
|
-
const [h, ...
|
|
921
|
-
r.setContentType([h || "multipart/form-data", ...
|
|
920
|
+
const [h, ...g] = c ? c.split(";").map((E) => E.trim()).filter(Boolean) : [];
|
|
921
|
+
r.setContentType([h || "multipart/form-data", ...g].join("; "));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
let l = new XMLHttpRequest();
|
|
925
925
|
if (t.auth) {
|
|
926
|
-
const h = t.auth.username || "",
|
|
927
|
-
r.set("Authorization", "Basic " + btoa(h + ":" +
|
|
926
|
+
const h = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
927
|
+
r.set("Authorization", "Basic " + btoa(h + ":" + g));
|
|
928
928
|
}
|
|
929
|
-
const v =
|
|
929
|
+
const v = Mn(t.baseURL, t.url);
|
|
930
930
|
l.open(t.method.toUpperCase(), Pn(v, t.params, t.paramsSerializer), !0), l.timeout = t.timeout;
|
|
931
931
|
function k() {
|
|
932
932
|
if (!l)
|
|
@@ -941,7 +941,7 @@ const Lo = typeof XMLHttpRequest < "u", Bo = Lo && function(t) {
|
|
|
941
941
|
config: t,
|
|
942
942
|
request: l
|
|
943
943
|
};
|
|
944
|
-
|
|
944
|
+
Fo(function(S) {
|
|
945
945
|
n(S), m();
|
|
946
946
|
}, function(S) {
|
|
947
947
|
s(S), m();
|
|
@@ -954,26 +954,26 @@ const Lo = typeof XMLHttpRequest < "u", Bo = Lo && function(t) {
|
|
|
954
954
|
}, l.onerror = function() {
|
|
955
955
|
s(new R("Network Error", R.ERR_NETWORK, t, l)), l = null;
|
|
956
956
|
}, l.ontimeout = function() {
|
|
957
|
-
let
|
|
957
|
+
let g = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
958
958
|
const E = t.transitional || Ln;
|
|
959
|
-
t.timeoutErrorMessage && (
|
|
960
|
-
|
|
959
|
+
t.timeoutErrorMessage && (g = t.timeoutErrorMessage), s(new R(
|
|
960
|
+
g,
|
|
961
961
|
E.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
|
|
962
962
|
t,
|
|
963
963
|
l
|
|
964
964
|
)), l = null;
|
|
965
965
|
}, ae.hasStandardBrowserEnv && (i && w.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(v))) {
|
|
966
|
-
const h = t.xsrfHeaderName && t.xsrfCookieName &&
|
|
966
|
+
const h = t.xsrfHeaderName && t.xsrfCookieName && Co.read(t.xsrfCookieName);
|
|
967
967
|
h && r.set(t.xsrfHeaderName, h);
|
|
968
968
|
}
|
|
969
|
-
o === void 0 && r.setContentType(null), "setRequestHeader" in l && w.forEach(r.toJSON(), function(
|
|
970
|
-
l.setRequestHeader(E,
|
|
969
|
+
o === void 0 && r.setContentType(null), "setRequestHeader" in l && w.forEach(r.toJSON(), function(g, E) {
|
|
970
|
+
l.setRequestHeader(E, g);
|
|
971
971
|
}), w.isUndefined(t.withCredentials) || (l.withCredentials = !!t.withCredentials), a && a !== "json" && (l.responseType = t.responseType), typeof t.onDownloadProgress == "function" && l.addEventListener("progress", Qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (d = (h) => {
|
|
972
972
|
l && (s(!h || h.type ? new Le(null, t, l) : h), l.abort(), l = null);
|
|
973
973
|
}, t.cancelToken && t.cancelToken.subscribe(d), t.signal && (t.signal.aborted ? d() : t.signal.addEventListener("abort", d)));
|
|
974
|
-
const
|
|
975
|
-
if (
|
|
976
|
-
s(new R("Unsupported protocol " +
|
|
974
|
+
const _ = To(v);
|
|
975
|
+
if (_ && ae.protocols.indexOf(_) === -1) {
|
|
976
|
+
s(new R("Unsupported protocol " + _ + ":", R.ERR_BAD_REQUEST, t));
|
|
977
977
|
return;
|
|
978
978
|
}
|
|
979
979
|
l.send(o || null);
|
|
@@ -991,7 +991,7 @@ w.forEach(pt, (t, e) => {
|
|
|
991
991
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
|
-
const Jt = (t) => `- ${t}`, jo = (t) => w.isFunction(t) || t === null || t === !1,
|
|
994
|
+
const Jt = (t) => `- ${t}`, jo = (t) => w.isFunction(t) || t === null || t === !1, In = {
|
|
995
995
|
getAdapter: (t) => {
|
|
996
996
|
t = w.isArray(t) ? t : [t];
|
|
997
997
|
const { length: e } = t;
|
|
@@ -1030,7 +1030,7 @@ function Gt(t) {
|
|
|
1030
1030
|
return st(t), t.headers = ee.from(t.headers), t.data = nt.call(
|
|
1031
1031
|
t,
|
|
1032
1032
|
t.transformRequest
|
|
1033
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1033
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), In.getAdapter(t.adapter || Pe.adapter)(t).then(function(s) {
|
|
1034
1034
|
return st(t), s.data = nt.call(
|
|
1035
1035
|
t,
|
|
1036
1036
|
t.transformResponse,
|
|
@@ -1111,7 +1111,7 @@ function Ee(t, e) {
|
|
|
1111
1111
|
w.isUndefined(v) && l !== i || (n[c] = v);
|
|
1112
1112
|
}), n;
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const Nn = "1.6.8", St = {};
|
|
1115
1115
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1116
1116
|
St[t] = function(s) {
|
|
1117
1117
|
return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
@@ -1120,7 +1120,7 @@ const Mn = "1.6.8", St = {};
|
|
|
1120
1120
|
const Kt = {};
|
|
1121
1121
|
St.transitional = function(e, n, s) {
|
|
1122
1122
|
function o(r, a) {
|
|
1123
|
-
return "[Axios v" +
|
|
1123
|
+
return "[Axios v" + Nn + "] Transitional option '" + r + "'" + a + (s ? ". " + s : "");
|
|
1124
1124
|
}
|
|
1125
1125
|
return (r, a, i) => {
|
|
1126
1126
|
if (e === !1)
|
|
@@ -1205,8 +1205,8 @@ class fe {
|
|
|
1205
1205
|
);
|
|
1206
1206
|
r && w.forEach(
|
|
1207
1207
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1208
|
-
(
|
|
1209
|
-
delete r[
|
|
1208
|
+
(_) => {
|
|
1209
|
+
delete r[_];
|
|
1210
1210
|
}
|
|
1211
1211
|
), n.headers = ee.concat(a, r);
|
|
1212
1212
|
const i = [];
|
|
@@ -1220,26 +1220,26 @@ class fe {
|
|
|
1220
1220
|
});
|
|
1221
1221
|
let c, l = 0, v;
|
|
1222
1222
|
if (!d) {
|
|
1223
|
-
const
|
|
1224
|
-
for (
|
|
1225
|
-
c = c.then(
|
|
1223
|
+
const _ = [Gt.bind(this), void 0];
|
|
1224
|
+
for (_.unshift.apply(_, i), _.push.apply(_, m), v = _.length, c = Promise.resolve(n); l < v; )
|
|
1225
|
+
c = c.then(_[l++], _[l++]);
|
|
1226
1226
|
return c;
|
|
1227
1227
|
}
|
|
1228
1228
|
v = i.length;
|
|
1229
1229
|
let k = n;
|
|
1230
1230
|
for (l = 0; l < v; ) {
|
|
1231
|
-
const
|
|
1231
|
+
const _ = i[l++], h = i[l++];
|
|
1232
1232
|
try {
|
|
1233
|
-
k =
|
|
1234
|
-
} catch (
|
|
1235
|
-
h.call(this,
|
|
1233
|
+
k = _(k);
|
|
1234
|
+
} catch (g) {
|
|
1235
|
+
h.call(this, g);
|
|
1236
1236
|
break;
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
try {
|
|
1240
1240
|
c = Gt.call(this, k);
|
|
1241
|
-
} catch (
|
|
1242
|
-
return Promise.reject(
|
|
1241
|
+
} catch (_) {
|
|
1242
|
+
return Promise.reject(_);
|
|
1243
1243
|
}
|
|
1244
1244
|
for (l = 0, v = m.length; l < v; )
|
|
1245
1245
|
c = c.then(m[l++], m[l++]);
|
|
@@ -1247,7 +1247,7 @@ class fe {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
getUri(e) {
|
|
1249
1249
|
e = Ee(this.defaults, e);
|
|
1250
|
-
const n =
|
|
1250
|
+
const n = Mn(e.baseURL, e.url);
|
|
1251
1251
|
return Pn(n, e.params, e.paramsSerializer);
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
@@ -1343,12 +1343,12 @@ class xt {
|
|
|
1343
1343
|
};
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Mo(t) {
|
|
1347
1347
|
return function(n) {
|
|
1348
1348
|
return t.apply(null, n);
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Io(t) {
|
|
1352
1352
|
return w.isObject(t) && t.isAxiosError === !0;
|
|
1353
1353
|
}
|
|
1354
1354
|
const mt = {
|
|
@@ -1430,23 +1430,23 @@ W.Axios = fe;
|
|
|
1430
1430
|
W.CanceledError = Le;
|
|
1431
1431
|
W.CancelToken = xt;
|
|
1432
1432
|
W.isCancel = Vn;
|
|
1433
|
-
W.VERSION =
|
|
1433
|
+
W.VERSION = Nn;
|
|
1434
1434
|
W.toFormData = Ke;
|
|
1435
1435
|
W.AxiosError = R;
|
|
1436
1436
|
W.Cancel = W.CanceledError;
|
|
1437
1437
|
W.all = function(e) {
|
|
1438
1438
|
return Promise.all(e);
|
|
1439
1439
|
};
|
|
1440
|
-
W.spread =
|
|
1441
|
-
W.isAxiosError =
|
|
1440
|
+
W.spread = Mo;
|
|
1441
|
+
W.isAxiosError = Io;
|
|
1442
1442
|
W.mergeConfig = Ee;
|
|
1443
1443
|
W.AxiosHeaders = ee;
|
|
1444
1444
|
W.formToJSON = (t) => jn(w.isHTMLForm(t) ? new FormData(t) : t);
|
|
1445
|
-
W.getAdapter =
|
|
1445
|
+
W.getAdapter = In.getAdapter;
|
|
1446
1446
|
W.HttpStatusCode = mt;
|
|
1447
1447
|
W.default = W;
|
|
1448
1448
|
let ke = null;
|
|
1449
|
-
function
|
|
1449
|
+
function No(t) {
|
|
1450
1450
|
ke = W.create(t);
|
|
1451
1451
|
}
|
|
1452
1452
|
function zo() {
|
|
@@ -1503,7 +1503,7 @@ const oe = {
|
|
|
1503
1503
|
post: Ho,
|
|
1504
1504
|
put: Wo,
|
|
1505
1505
|
remove: qo,
|
|
1506
|
-
setupAxios:
|
|
1506
|
+
setupAxios: No,
|
|
1507
1507
|
getAxiosInstance: zo
|
|
1508
1508
|
};
|
|
1509
1509
|
var Qo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1522,74 +1522,74 @@ var Un = { exports: {} };
|
|
|
1522
1522
|
function i(h) {
|
|
1523
1523
|
return typeof h == "string" ? new RegExp("^" + h + "$", "i") : h;
|
|
1524
1524
|
}
|
|
1525
|
-
function d(h,
|
|
1526
|
-
return h ===
|
|
1525
|
+
function d(h, g) {
|
|
1526
|
+
return h === g ? g : h === h.toLowerCase() ? g.toLowerCase() : h === h.toUpperCase() ? g.toUpperCase() : h[0] === h[0].toUpperCase() ? g.charAt(0).toUpperCase() + g.substr(1).toLowerCase() : g.toLowerCase();
|
|
1527
1527
|
}
|
|
1528
|
-
function m(h,
|
|
1528
|
+
function m(h, g) {
|
|
1529
1529
|
return h.replace(/\$(\d{1,2})/g, function(E, p) {
|
|
1530
|
-
return
|
|
1530
|
+
return g[p] || "";
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
|
-
function c(h,
|
|
1534
|
-
return h.replace(
|
|
1535
|
-
var S = m(
|
|
1533
|
+
function c(h, g) {
|
|
1534
|
+
return h.replace(g[0], function(E, p) {
|
|
1535
|
+
var S = m(g[1], arguments);
|
|
1536
1536
|
return d(E === "" ? h[p - 1] : E, S);
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
|
-
function l(h,
|
|
1539
|
+
function l(h, g, E) {
|
|
1540
1540
|
if (!h.length || o.hasOwnProperty(h))
|
|
1541
|
-
return
|
|
1541
|
+
return g;
|
|
1542
1542
|
for (var p = E.length; p--; ) {
|
|
1543
1543
|
var S = E[p];
|
|
1544
|
-
if (S[0].test(
|
|
1545
|
-
return c(
|
|
1544
|
+
if (S[0].test(g))
|
|
1545
|
+
return c(g, S);
|
|
1546
1546
|
}
|
|
1547
|
-
return
|
|
1547
|
+
return g;
|
|
1548
1548
|
}
|
|
1549
|
-
function v(h,
|
|
1549
|
+
function v(h, g, E) {
|
|
1550
1550
|
return function(p) {
|
|
1551
1551
|
var S = p.toLowerCase();
|
|
1552
|
-
return
|
|
1552
|
+
return g.hasOwnProperty(S) ? d(p, S) : h.hasOwnProperty(S) ? d(p, h[S]) : l(S, p, E);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
function k(h,
|
|
1555
|
+
function k(h, g, E, p) {
|
|
1556
1556
|
return function(S) {
|
|
1557
1557
|
var y = S.toLowerCase();
|
|
1558
|
-
return
|
|
1558
|
+
return g.hasOwnProperty(y) ? !0 : h.hasOwnProperty(y) ? !1 : l(y, y, E) === y;
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
var p =
|
|
1563
|
-
return (E ?
|
|
1561
|
+
function _(h, g, E) {
|
|
1562
|
+
var p = g === 1 ? _.singular(h) : _.plural(h);
|
|
1563
|
+
return (E ? g + " " : "") + p;
|
|
1564
1564
|
}
|
|
1565
|
-
return
|
|
1565
|
+
return _.plural = v(
|
|
1566
1566
|
a,
|
|
1567
1567
|
r,
|
|
1568
1568
|
n
|
|
1569
|
-
),
|
|
1569
|
+
), _.isPlural = k(
|
|
1570
1570
|
a,
|
|
1571
1571
|
r,
|
|
1572
1572
|
n
|
|
1573
|
-
),
|
|
1573
|
+
), _.singular = v(
|
|
1574
1574
|
r,
|
|
1575
1575
|
a,
|
|
1576
1576
|
s
|
|
1577
|
-
),
|
|
1577
|
+
), _.isSingular = k(
|
|
1578
1578
|
r,
|
|
1579
1579
|
a,
|
|
1580
1580
|
s
|
|
1581
|
-
),
|
|
1582
|
-
n.push([i(h),
|
|
1583
|
-
},
|
|
1584
|
-
s.push([i(h),
|
|
1585
|
-
},
|
|
1581
|
+
), _.addPluralRule = function(h, g) {
|
|
1582
|
+
n.push([i(h), g]);
|
|
1583
|
+
}, _.addSingularRule = function(h, g) {
|
|
1584
|
+
s.push([i(h), g]);
|
|
1585
|
+
}, _.addUncountableRule = function(h) {
|
|
1586
1586
|
if (typeof h == "string") {
|
|
1587
1587
|
o[h.toLowerCase()] = !0;
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
|
-
|
|
1591
|
-
},
|
|
1592
|
-
|
|
1590
|
+
_.addPluralRule(h, "$0"), _.addSingularRule(h, "$0");
|
|
1591
|
+
}, _.addIrregularRule = function(h, g) {
|
|
1592
|
+
g = g.toLowerCase(), h = h.toLowerCase(), a[h] = g, r[g] = h;
|
|
1593
1593
|
}, [
|
|
1594
1594
|
// Pronouns.
|
|
1595
1595
|
["I", "we"],
|
|
@@ -1644,7 +1644,7 @@ var Un = { exports: {} };
|
|
|
1644
1644
|
["pickaxe", "pickaxes"],
|
|
1645
1645
|
["passerby", "passersby"]
|
|
1646
1646
|
].forEach(function(h) {
|
|
1647
|
-
return
|
|
1647
|
+
return _.addIrregularRule(h[0], h[1]);
|
|
1648
1648
|
}), [
|
|
1649
1649
|
[/s?$/i, "s"],
|
|
1650
1650
|
[/[^\u0000-\u007F]$/i, "$0"],
|
|
@@ -1672,7 +1672,7 @@ var Un = { exports: {} };
|
|
|
1672
1672
|
[/m[ae]n$/i, "men"],
|
|
1673
1673
|
["thou", "you"]
|
|
1674
1674
|
].forEach(function(h) {
|
|
1675
|
-
return
|
|
1675
|
+
return _.addPluralRule(h[0], h[1]);
|
|
1676
1676
|
}), [
|
|
1677
1677
|
[/s$/i, ""],
|
|
1678
1678
|
[/(ss)$/i, "$1"],
|
|
@@ -1698,7 +1698,7 @@ var Un = { exports: {} };
|
|
|
1698
1698
|
[/(eau)x?$/i, "$1"],
|
|
1699
1699
|
[/men$/i, "man"]
|
|
1700
1700
|
].forEach(function(h) {
|
|
1701
|
-
return
|
|
1701
|
+
return _.addSingularRule(h[0], h[1]);
|
|
1702
1702
|
}), [
|
|
1703
1703
|
// Singular words with no plurals.
|
|
1704
1704
|
"adulthood",
|
|
@@ -1809,11 +1809,11 @@ var Un = { exports: {} };
|
|
|
1809
1809
|
/pox$/i,
|
|
1810
1810
|
// "chickpox", "smallpox"
|
|
1811
1811
|
/sheep$/i
|
|
1812
|
-
].forEach(
|
|
1812
|
+
].forEach(_.addUncountableRule), _;
|
|
1813
1813
|
});
|
|
1814
1814
|
})(Un);
|
|
1815
1815
|
var Yo = Un.exports;
|
|
1816
|
-
const Hn = /* @__PURE__ */ Jo(Yo), qn = (t) => t.replace(/([-_][a-z])/gi, (e) => e.toUpperCase().replace("-", "").replace("_", "")), ze = "GET_LIST", Ue = "GET_ONE", He = "CREATE", qe = "UPDATE",
|
|
1816
|
+
const Hn = /* @__PURE__ */ Jo(Yo), qn = (t) => t.replace(/([-_][a-z])/gi, (e) => e.toUpperCase().replace("-", "").replace("_", "")), ze = "GET_LIST", Ue = "GET_ONE", He = "CREATE", qe = "UPDATE", we = "REMOVE", ht = "RESTORE", Wn = "ENABLE", Ko = [ze, Ue, He, qe, we, Wn];
|
|
1817
1817
|
class Xo {
|
|
1818
1818
|
constructor(e, n, s = Ko) {
|
|
1819
1819
|
this.side = e == "platform" ? "admin" : e, this.domain = n, this.resources = Hn(n), this.operations = s, this.operations.forEach((o) => {
|
|
@@ -1850,8 +1850,8 @@ class Xo {
|
|
|
1850
1850
|
return oe.put(`${this.side}/${this.resources}/${e.id}`, e);
|
|
1851
1851
|
}
|
|
1852
1852
|
_remove(e) {
|
|
1853
|
-
if (!this.operations.includes(
|
|
1854
|
-
console.log(`${this.side}/${this.domain} 不支持 ${
|
|
1853
|
+
if (!this.operations.includes(we)) {
|
|
1854
|
+
console.log(`${this.side}/${this.domain} 不支持 ${we} 操作`);
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
1857
1857
|
return oe.remove(`${this.side}/${this.resources}/${e.id}`, e);
|
|
@@ -1864,8 +1864,8 @@ class Xo {
|
|
|
1864
1864
|
return oe.put(`${this.side}/${this.resources}/${e.id}/restore`, e);
|
|
1865
1865
|
}
|
|
1866
1866
|
_enable(e) {
|
|
1867
|
-
if (!this.operations.includes(
|
|
1868
|
-
console.log(`${this.side}/${this.domain} 不支持 ${
|
|
1867
|
+
if (!this.operations.includes(we)) {
|
|
1868
|
+
console.log(`${this.side}/${this.domain} 不支持 ${we} 操作`);
|
|
1869
1869
|
return;
|
|
1870
1870
|
}
|
|
1871
1871
|
return oe.put(`${this.side}/${this.resources}/${e.id}/switch`, e);
|
|
@@ -1883,14 +1883,14 @@ class Zo {
|
|
|
1883
1883
|
return oe.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
|
-
const
|
|
1886
|
+
const Fl = {
|
|
1887
1887
|
Client: Xo,
|
|
1888
1888
|
ReadOnlyClient: Zo,
|
|
1889
1889
|
GET_LIST: ze,
|
|
1890
1890
|
GET_ONE: Ue,
|
|
1891
1891
|
CREATE: He,
|
|
1892
1892
|
UPDATE: qe,
|
|
1893
|
-
REMOVE:
|
|
1893
|
+
REMOVE: we,
|
|
1894
1894
|
RESTORE: ht,
|
|
1895
1895
|
ENABLE: Wn
|
|
1896
1896
|
}, ea = (t, e, n) => {
|
|
@@ -1901,7 +1901,7 @@ const kl = {
|
|
|
1901
1901
|
}, ta = ["createdAt", "updatedAt", "deletedAt"];
|
|
1902
1902
|
class na {
|
|
1903
1903
|
constructor(e, n) {
|
|
1904
|
-
this.domain = n, this.type = e.type || "string", this.code = e.code, this.info = e.info ? "(" + (e == null ? void 0 : e.info) + ")" : "", this.label = e.label + this.info, 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;
|
|
1904
|
+
this.domain = n, this.type = e.type || "string", this.code = e.code, this.info = e.info ? "(" + (e == null ? void 0 : e.info) + ")" : "", this.label = e.label + this.info, 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, this.waterMark = (e == null ? void 0 : e.waterMark) || "";
|
|
1905
1905
|
}
|
|
1906
1906
|
computeWidth(e) {
|
|
1907
1907
|
return e.width ? e.width : ta.includes(e.code) ? 200 : e.code === "id" || e.type === "image" ? 100 : null;
|
|
@@ -2009,7 +2009,7 @@ const ot = {
|
|
|
2009
2009
|
"input-number": { config: "input-number" }
|
|
2010
2010
|
};
|
|
2011
2011
|
async function Xt(t, e, n) {
|
|
2012
|
-
const s = await ea(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2012
|
+
const s = await ea(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-BVPYOETn.js"), "./field/belongs-to/config.js": () => import("./config-HXvD5W1L.js"), "./field/boolean/config.js": () => import("./config-CiRKf9gO.js"), "./field/cascader/config.js": () => import("./config-hx_TBfIr.js"), "./field/component/config.js": () => import("./config-BU2sr1IC.js"), "./field/date/config.js": () => import("./config-JRtmWsWg.js"), "./field/datetime/config.js": () => import("./config-DH736Dzq.js"), "./field/image/config.js": () => import("./config-CwI1EbsY.js"), "./field/images/config.js": () => import("./config-mjFfM12K.js"), "./field/input-number/config.js": () => import("./config-CvKmCDBm.js"), "./field/json/config.js": () => import("./config-Cn5jQKRY.js"), "./field/radio-group/config.js": () => import("./config-BHkdHfrB.js"), "./field/rich-text/config.js": () => import("./config-DL2jlaxo.js"), "./field/row-id/config.js": () => import("./config-D19luHMm.js"), "./field/select/config.js": () => import("./config-BsUoj1r1.js"), "./field/string/config.js": () => import("./config-DEhHnk2B.js"), "./field/switch/config.js": () => import("./config-D7tKOIT2.js"), "./field/text/config.js": () => import("./config-CLkMDLs5.js"), "./field/time/config.js": () => import("./config-Cn0z8LnF.js"), "./field/tree-select/config.js": () => import("./config-QhV-mcAJ.js") }), `./field/${t}/config.js`, 4);
|
|
2013
2013
|
return new s.default(e, n);
|
|
2014
2014
|
}
|
|
2015
2015
|
function at(t, e = "unknown") {
|
|
@@ -2031,7 +2031,7 @@ function at(t, e = "unknown") {
|
|
|
2031
2031
|
return Xt("string", s, s.domain || e);
|
|
2032
2032
|
});
|
|
2033
2033
|
}
|
|
2034
|
-
let
|
|
2034
|
+
let _t = {
|
|
2035
2035
|
name: "管理后台",
|
|
2036
2036
|
logo: "",
|
|
2037
2037
|
sideMenus: {},
|
|
@@ -2039,10 +2039,10 @@ let gt = {
|
|
|
2039
2039
|
fileUploadUrl: "",
|
|
2040
2040
|
idempotentUrl: ""
|
|
2041
2041
|
}, $e = {};
|
|
2042
|
-
function Ol(t) {
|
|
2043
|
-
gt = { ...gt, ...t }, $e = t.domainConfigs;
|
|
2044
|
-
}
|
|
2045
2042
|
function Cl(t) {
|
|
2043
|
+
_t = { ..._t, ...t }, $e = t.domainConfigs;
|
|
2044
|
+
}
|
|
2045
|
+
function Dl(t) {
|
|
2046
2046
|
Object.keys($e).forEach((e) => {
|
|
2047
2047
|
const n = $e[e];
|
|
2048
2048
|
Object.keys(n).forEach((s) => {
|
|
@@ -2052,7 +2052,7 @@ function Cl(t) {
|
|
|
2052
2052
|
});
|
|
2053
2053
|
}
|
|
2054
2054
|
function We() {
|
|
2055
|
-
return
|
|
2055
|
+
return _t;
|
|
2056
2056
|
}
|
|
2057
2057
|
function kt() {
|
|
2058
2058
|
return $e;
|
|
@@ -2207,8 +2207,8 @@ const V = (t, e) => {
|
|
|
2207
2207
|
e.title ? {
|
|
2208
2208
|
name: "header",
|
|
2209
2209
|
fn: b(() => [
|
|
2210
|
-
|
|
2211
|
-
|
|
2210
|
+
C("div", ra, [
|
|
2211
|
+
C("span", ia, P(e.title), 1)
|
|
2212
2212
|
])
|
|
2213
2213
|
]),
|
|
2214
2214
|
key: "0"
|
|
@@ -2240,17 +2240,17 @@ const V = (t, e) => {
|
|
|
2240
2240
|
let n = "#f7faff", s = "10px";
|
|
2241
2241
|
return e.background && (n = e.background, n == "none" && (s = "0px")), (o, r) => {
|
|
2242
2242
|
const a = Qe("RouterLink");
|
|
2243
|
-
return
|
|
2243
|
+
return ye((u(), x("div", {
|
|
2244
2244
|
class: "container",
|
|
2245
2245
|
style: Ve(`background: ${f(n)}; padding: ${f(s)}`)
|
|
2246
2246
|
}, [
|
|
2247
|
-
|
|
2247
|
+
C("div", {
|
|
2248
2248
|
class: "item-box-data mono-data",
|
|
2249
2249
|
style: Ve(`text-align: ${e.align};`)
|
|
2250
2250
|
}, [
|
|
2251
|
-
e.value != null ? (u(), x("span", ca,
|
|
2251
|
+
e.value != null ? (u(), x("span", ca, P(e.value), 1)) : (u(), x("span", da, "..."))
|
|
2252
2252
|
], 4),
|
|
2253
|
-
|
|
2253
|
+
C("div", {
|
|
2254
2254
|
class: "item-box-tip",
|
|
2255
2255
|
style: Ve(`text-align: ${e.align};`)
|
|
2256
2256
|
}, [
|
|
@@ -2261,21 +2261,21 @@ const V = (t, e) => {
|
|
|
2261
2261
|
default: b(() => [
|
|
2262
2262
|
O(f(ls), { type: "primary" }, {
|
|
2263
2263
|
default: b(() => [
|
|
2264
|
-
|
|
2264
|
+
M(P(e.title), 1)
|
|
2265
2265
|
]),
|
|
2266
2266
|
_: 1
|
|
2267
2267
|
})
|
|
2268
2268
|
]),
|
|
2269
2269
|
_: 1
|
|
2270
2270
|
}, 8, ["to"])
|
|
2271
|
-
])) : (u(), x("span", fa,
|
|
2271
|
+
])) : (u(), x("span", fa, P(e.title), 1))
|
|
2272
2272
|
], 4)
|
|
2273
2273
|
], 4)), [
|
|
2274
|
-
[f(
|
|
2274
|
+
[f(ve), e.value == null]
|
|
2275
2275
|
]);
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
|
-
}, ha = /* @__PURE__ */ V(ma, [["__scopeId", "data-v-73228f1a"]]),
|
|
2278
|
+
}, ha = /* @__PURE__ */ V(ma, [["__scopeId", "data-v-73228f1a"]]), _a = {
|
|
2279
2279
|
__name: "StatisticCard",
|
|
2280
2280
|
props: {
|
|
2281
2281
|
title: {
|
|
@@ -2313,16 +2313,16 @@ const V = (t, e) => {
|
|
|
2313
2313
|
_: 1
|
|
2314
2314
|
}));
|
|
2315
2315
|
}
|
|
2316
|
-
},
|
|
2316
|
+
}, Al = /* @__PURE__ */ V(_a, [["__scopeId", "data-v-f338c407"]]), ga = {}, ya = { style: { padding: "20px 0" } };
|
|
2317
2317
|
function va(t, e) {
|
|
2318
2318
|
return u(), x("div", ya, [
|
|
2319
2319
|
Y(t.$slots, "default")
|
|
2320
2320
|
]);
|
|
2321
2321
|
}
|
|
2322
|
-
const
|
|
2322
|
+
const Rl = /* @__PURE__ */ V(ga, [["render", va]]), ba = {
|
|
2323
2323
|
__name: "DashboardRow",
|
|
2324
2324
|
setup(t) {
|
|
2325
|
-
return (e, n) => (u(), $(f(
|
|
2325
|
+
return (e, n) => (u(), $(f(he), {
|
|
2326
2326
|
style: { "margin-bottom": "20px" },
|
|
2327
2327
|
class: "row"
|
|
2328
2328
|
}, {
|
|
@@ -2332,9 +2332,9 @@ const Dl = /* @__PURE__ */ V(_a, [["render", va]]), ba = {
|
|
|
2332
2332
|
_: 3
|
|
2333
2333
|
}));
|
|
2334
2334
|
}
|
|
2335
|
-
},
|
|
2335
|
+
}, Tl = /* @__PURE__ */ V(ba, [["__scopeId", "data-v-5b091760"]]);
|
|
2336
2336
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
2337
|
-
var wa = /* @__PURE__ */
|
|
2337
|
+
var wa = /* @__PURE__ */ N({
|
|
2338
2338
|
name: "ArrowDown",
|
|
2339
2339
|
__name: "arrow-down",
|
|
2340
2340
|
setup(t) {
|
|
@@ -2342,13 +2342,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2342
2342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2343
2343
|
viewBox: "0 0 1024 1024"
|
|
2344
2344
|
}, [
|
|
2345
|
-
|
|
2345
|
+
C("path", {
|
|
2346
2346
|
fill: "currentColor",
|
|
2347
2347
|
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
2348
2348
|
})
|
|
2349
2349
|
]));
|
|
2350
2350
|
}
|
|
2351
|
-
}), Ea = wa, $a = /* @__PURE__ */
|
|
2351
|
+
}), Ea = wa, $a = /* @__PURE__ */ N({
|
|
2352
2352
|
name: "CircleCloseFilled",
|
|
2353
2353
|
__name: "circle-close-filled",
|
|
2354
2354
|
setup(t) {
|
|
@@ -2356,13 +2356,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2356
2356
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2357
2357
|
viewBox: "0 0 1024 1024"
|
|
2358
2358
|
}, [
|
|
2359
|
-
|
|
2359
|
+
C("path", {
|
|
2360
2360
|
fill: "currentColor",
|
|
2361
2361
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
2362
2362
|
})
|
|
2363
2363
|
]));
|
|
2364
2364
|
}
|
|
2365
|
-
}),
|
|
2365
|
+
}), Pl = $a, Sa = /* @__PURE__ */ N({
|
|
2366
2366
|
name: "CirclePlus",
|
|
2367
2367
|
__name: "circle-plus",
|
|
2368
2368
|
setup(t) {
|
|
@@ -2370,21 +2370,21 @@ var wa = /* @__PURE__ */ M({
|
|
|
2370
2370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2371
2371
|
viewBox: "0 0 1024 1024"
|
|
2372
2372
|
}, [
|
|
2373
|
-
|
|
2373
|
+
C("path", {
|
|
2374
2374
|
fill: "currentColor",
|
|
2375
2375
|
d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
|
|
2376
2376
|
}),
|
|
2377
|
-
|
|
2377
|
+
C("path", {
|
|
2378
2378
|
fill: "currentColor",
|
|
2379
2379
|
d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
|
|
2380
2380
|
}),
|
|
2381
|
-
|
|
2381
|
+
C("path", {
|
|
2382
2382
|
fill: "currentColor",
|
|
2383
2383
|
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
2384
2384
|
})
|
|
2385
2385
|
]));
|
|
2386
2386
|
}
|
|
2387
|
-
}), xa = Sa, ka = /* @__PURE__ */
|
|
2387
|
+
}), xa = Sa, ka = /* @__PURE__ */ N({
|
|
2388
2388
|
name: "Close",
|
|
2389
2389
|
__name: "close",
|
|
2390
2390
|
setup(t) {
|
|
@@ -2392,13 +2392,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2392
2392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2393
2393
|
viewBox: "0 0 1024 1024"
|
|
2394
2394
|
}, [
|
|
2395
|
-
|
|
2395
|
+
C("path", {
|
|
2396
2396
|
fill: "currentColor",
|
|
2397
2397
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
2398
2398
|
})
|
|
2399
2399
|
]));
|
|
2400
2400
|
}
|
|
2401
|
-
}), Oa = ka,
|
|
2401
|
+
}), Oa = ka, Fa = /* @__PURE__ */ N({
|
|
2402
2402
|
name: "DArrowLeft",
|
|
2403
2403
|
__name: "d-arrow-left",
|
|
2404
2404
|
setup(t) {
|
|
@@ -2406,13 +2406,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2406
2406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2407
2407
|
viewBox: "0 0 1024 1024"
|
|
2408
2408
|
}, [
|
|
2409
|
-
|
|
2409
|
+
C("path", {
|
|
2410
2410
|
fill: "currentColor",
|
|
2411
2411
|
d: "M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"
|
|
2412
2412
|
})
|
|
2413
2413
|
]));
|
|
2414
2414
|
}
|
|
2415
|
-
}), Zt =
|
|
2415
|
+
}), Zt = Fa, Ca = /* @__PURE__ */ N({
|
|
2416
2416
|
name: "DArrowRight",
|
|
2417
2417
|
__name: "d-arrow-right",
|
|
2418
2418
|
setup(t) {
|
|
@@ -2420,13 +2420,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2420
2420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2421
2421
|
viewBox: "0 0 1024 1024"
|
|
2422
2422
|
}, [
|
|
2423
|
-
|
|
2423
|
+
C("path", {
|
|
2424
2424
|
fill: "currentColor",
|
|
2425
2425
|
d: "M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"
|
|
2426
2426
|
})
|
|
2427
2427
|
]));
|
|
2428
2428
|
}
|
|
2429
|
-
}), Da =
|
|
2429
|
+
}), Da = Ca, Aa = /* @__PURE__ */ N({
|
|
2430
2430
|
name: "Delete",
|
|
2431
2431
|
__name: "delete",
|
|
2432
2432
|
setup(t) {
|
|
@@ -2434,13 +2434,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2434
2434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2435
2435
|
viewBox: "0 0 1024 1024"
|
|
2436
2436
|
}, [
|
|
2437
|
-
|
|
2437
|
+
C("path", {
|
|
2438
2438
|
fill: "currentColor",
|
|
2439
2439
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
2440
2440
|
})
|
|
2441
2441
|
]));
|
|
2442
2442
|
}
|
|
2443
|
-
}), Ra = Aa, Ta = /* @__PURE__ */
|
|
2443
|
+
}), Ra = Aa, Ta = /* @__PURE__ */ N({
|
|
2444
2444
|
name: "Document",
|
|
2445
2445
|
__name: "document",
|
|
2446
2446
|
setup(t) {
|
|
@@ -2448,13 +2448,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2448
2448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2449
2449
|
viewBox: "0 0 1024 1024"
|
|
2450
2450
|
}, [
|
|
2451
|
-
|
|
2451
|
+
C("path", {
|
|
2452
2452
|
fill: "currentColor",
|
|
2453
2453
|
d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"
|
|
2454
2454
|
})
|
|
2455
2455
|
]));
|
|
2456
2456
|
}
|
|
2457
|
-
}),
|
|
2457
|
+
}), Ll = Ta, Pa = /* @__PURE__ */ N({
|
|
2458
2458
|
name: "Download",
|
|
2459
2459
|
__name: "download",
|
|
2460
2460
|
setup(t) {
|
|
@@ -2462,13 +2462,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2462
2462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2463
2463
|
viewBox: "0 0 1024 1024"
|
|
2464
2464
|
}, [
|
|
2465
|
-
|
|
2465
|
+
C("path", {
|
|
2466
2466
|
fill: "currentColor",
|
|
2467
2467
|
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
|
|
2468
2468
|
})
|
|
2469
2469
|
]));
|
|
2470
2470
|
}
|
|
2471
|
-
}),
|
|
2471
|
+
}), Bl = Pa, La = /* @__PURE__ */ N({
|
|
2472
2472
|
name: "EditPen",
|
|
2473
2473
|
__name: "edit-pen",
|
|
2474
2474
|
setup(t) {
|
|
@@ -2476,13 +2476,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2476
2476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2477
2477
|
viewBox: "0 0 1024 1024"
|
|
2478
2478
|
}, [
|
|
2479
|
-
|
|
2479
|
+
C("path", {
|
|
2480
2480
|
fill: "currentColor",
|
|
2481
2481
|
d: "m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"
|
|
2482
2482
|
})
|
|
2483
2483
|
]));
|
|
2484
2484
|
}
|
|
2485
|
-
}), Ba = La, ja = /* @__PURE__ */
|
|
2485
|
+
}), Ba = La, ja = /* @__PURE__ */ N({
|
|
2486
2486
|
name: "Finished",
|
|
2487
2487
|
__name: "finished",
|
|
2488
2488
|
setup(t) {
|
|
@@ -2490,13 +2490,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2490
2490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2491
2491
|
viewBox: "0 0 1024 1024"
|
|
2492
2492
|
}, [
|
|
2493
|
-
|
|
2493
|
+
C("path", {
|
|
2494
2494
|
fill: "currentColor",
|
|
2495
2495
|
d: "M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"
|
|
2496
2496
|
})
|
|
2497
2497
|
]));
|
|
2498
2498
|
}
|
|
2499
|
-
}), Va = ja,
|
|
2499
|
+
}), Va = ja, Ma = /* @__PURE__ */ N({
|
|
2500
2500
|
name: "Grid",
|
|
2501
2501
|
__name: "grid",
|
|
2502
2502
|
setup(t) {
|
|
@@ -2504,13 +2504,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2504
2504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2505
2505
|
viewBox: "0 0 1024 1024"
|
|
2506
2506
|
}, [
|
|
2507
|
-
|
|
2507
|
+
C("path", {
|
|
2508
2508
|
fill: "currentColor",
|
|
2509
2509
|
d: "M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"
|
|
2510
2510
|
})
|
|
2511
2511
|
]));
|
|
2512
2512
|
}
|
|
2513
|
-
}),
|
|
2513
|
+
}), Ia = Ma, Na = /* @__PURE__ */ N({
|
|
2514
2514
|
name: "Loading",
|
|
2515
2515
|
__name: "loading",
|
|
2516
2516
|
setup(t) {
|
|
@@ -2518,13 +2518,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2518
2518
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2519
2519
|
viewBox: "0 0 1024 1024"
|
|
2520
2520
|
}, [
|
|
2521
|
-
|
|
2521
|
+
C("path", {
|
|
2522
2522
|
fill: "currentColor",
|
|
2523
2523
|
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
|
|
2524
2524
|
})
|
|
2525
2525
|
]));
|
|
2526
2526
|
}
|
|
2527
|
-
}),
|
|
2527
|
+
}), jl = Na, za = /* @__PURE__ */ N({
|
|
2528
2528
|
name: "Minus",
|
|
2529
2529
|
__name: "minus",
|
|
2530
2530
|
setup(t) {
|
|
@@ -2532,13 +2532,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2532
2532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2533
2533
|
viewBox: "0 0 1024 1024"
|
|
2534
2534
|
}, [
|
|
2535
|
-
|
|
2535
|
+
C("path", {
|
|
2536
2536
|
fill: "currentColor",
|
|
2537
2537
|
d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
|
|
2538
2538
|
})
|
|
2539
2539
|
]));
|
|
2540
2540
|
}
|
|
2541
|
-
}), Ua = za, Ha = /* @__PURE__ */
|
|
2541
|
+
}), Ua = za, Ha = /* @__PURE__ */ N({
|
|
2542
2542
|
name: "Operation",
|
|
2543
2543
|
__name: "operation",
|
|
2544
2544
|
setup(t) {
|
|
@@ -2546,13 +2546,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2546
2546
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2547
2547
|
viewBox: "0 0 1024 1024"
|
|
2548
2548
|
}, [
|
|
2549
|
-
|
|
2549
|
+
C("path", {
|
|
2550
2550
|
fill: "currentColor",
|
|
2551
2551
|
d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
|
|
2552
2552
|
})
|
|
2553
2553
|
]));
|
|
2554
2554
|
}
|
|
2555
|
-
}), qa = Ha, Wa = /* @__PURE__ */
|
|
2555
|
+
}), qa = Ha, Wa = /* @__PURE__ */ N({
|
|
2556
2556
|
name: "Plus",
|
|
2557
2557
|
__name: "plus",
|
|
2558
2558
|
setup(t) {
|
|
@@ -2560,13 +2560,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2560
2560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2561
2561
|
viewBox: "0 0 1024 1024"
|
|
2562
2562
|
}, [
|
|
2563
|
-
|
|
2563
|
+
C("path", {
|
|
2564
2564
|
fill: "currentColor",
|
|
2565
2565
|
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
2566
2566
|
})
|
|
2567
2567
|
]));
|
|
2568
2568
|
}
|
|
2569
|
-
}),
|
|
2569
|
+
}), Vl = Wa, Qa = /* @__PURE__ */ N({
|
|
2570
2570
|
name: "PriceTag",
|
|
2571
2571
|
__name: "price-tag",
|
|
2572
2572
|
setup(t) {
|
|
@@ -2574,17 +2574,17 @@ var wa = /* @__PURE__ */ M({
|
|
|
2574
2574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2575
2575
|
viewBox: "0 0 1024 1024"
|
|
2576
2576
|
}, [
|
|
2577
|
-
|
|
2577
|
+
C("path", {
|
|
2578
2578
|
fill: "currentColor",
|
|
2579
2579
|
d: "M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"
|
|
2580
2580
|
}),
|
|
2581
|
-
|
|
2581
|
+
C("path", {
|
|
2582
2582
|
fill: "currentColor",
|
|
2583
2583
|
d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
|
|
2584
2584
|
})
|
|
2585
2585
|
]));
|
|
2586
2586
|
}
|
|
2587
|
-
}), en = Qa, Ja = /* @__PURE__ */
|
|
2587
|
+
}), en = Qa, Ja = /* @__PURE__ */ N({
|
|
2588
2588
|
name: "QuestionFilled",
|
|
2589
2589
|
__name: "question-filled",
|
|
2590
2590
|
setup(t) {
|
|
@@ -2592,13 +2592,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2592
2592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2593
2593
|
viewBox: "0 0 1024 1024"
|
|
2594
2594
|
}, [
|
|
2595
|
-
|
|
2595
|
+
C("path", {
|
|
2596
2596
|
fill: "currentColor",
|
|
2597
2597
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"
|
|
2598
2598
|
})
|
|
2599
2599
|
]));
|
|
2600
2600
|
}
|
|
2601
|
-
}),
|
|
2601
|
+
}), Ml = Ja, Ga = /* @__PURE__ */ N({
|
|
2602
2602
|
name: "Refresh",
|
|
2603
2603
|
__name: "refresh",
|
|
2604
2604
|
setup(t) {
|
|
@@ -2606,13 +2606,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2606
2606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2607
2607
|
viewBox: "0 0 1024 1024"
|
|
2608
2608
|
}, [
|
|
2609
|
-
|
|
2609
|
+
C("path", {
|
|
2610
2610
|
fill: "currentColor",
|
|
2611
2611
|
d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
|
|
2612
2612
|
})
|
|
2613
2613
|
]));
|
|
2614
2614
|
}
|
|
2615
|
-
}), Ya = Ga, Ka = /* @__PURE__ */
|
|
2615
|
+
}), Ya = Ga, Ka = /* @__PURE__ */ N({
|
|
2616
2616
|
name: "Search",
|
|
2617
2617
|
__name: "search",
|
|
2618
2618
|
setup(t) {
|
|
@@ -2620,13 +2620,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2620
2620
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2621
2621
|
viewBox: "0 0 1024 1024"
|
|
2622
2622
|
}, [
|
|
2623
|
-
|
|
2623
|
+
C("path", {
|
|
2624
2624
|
fill: "currentColor",
|
|
2625
2625
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
|
|
2626
2626
|
})
|
|
2627
2627
|
]));
|
|
2628
2628
|
}
|
|
2629
|
-
}), Xa = Ka, Za = /* @__PURE__ */
|
|
2629
|
+
}), Xa = Ka, Za = /* @__PURE__ */ N({
|
|
2630
2630
|
name: "Setting",
|
|
2631
2631
|
__name: "setting",
|
|
2632
2632
|
setup(t) {
|
|
@@ -2634,13 +2634,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2634
2634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2635
2635
|
viewBox: "0 0 1024 1024"
|
|
2636
2636
|
}, [
|
|
2637
|
-
|
|
2637
|
+
C("path", {
|
|
2638
2638
|
fill: "currentColor",
|
|
2639
2639
|
d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
|
|
2640
2640
|
})
|
|
2641
2641
|
]));
|
|
2642
2642
|
}
|
|
2643
|
-
}), er = Za, tr = /* @__PURE__ */
|
|
2643
|
+
}), er = Za, tr = /* @__PURE__ */ N({
|
|
2644
2644
|
name: "SuccessFilled",
|
|
2645
2645
|
__name: "success-filled",
|
|
2646
2646
|
setup(t) {
|
|
@@ -2648,13 +2648,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2648
2648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2649
2649
|
viewBox: "0 0 1024 1024"
|
|
2650
2650
|
}, [
|
|
2651
|
-
|
|
2651
|
+
C("path", {
|
|
2652
2652
|
fill: "currentColor",
|
|
2653
2653
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
2654
2654
|
})
|
|
2655
2655
|
]));
|
|
2656
2656
|
}
|
|
2657
|
-
}),
|
|
2657
|
+
}), Il = tr, nr = /* @__PURE__ */ N({
|
|
2658
2658
|
name: "View",
|
|
2659
2659
|
__name: "view",
|
|
2660
2660
|
setup(t) {
|
|
@@ -2662,13 +2662,13 @@ var wa = /* @__PURE__ */ M({
|
|
|
2662
2662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2663
2663
|
viewBox: "0 0 1024 1024"
|
|
2664
2664
|
}, [
|
|
2665
|
-
|
|
2665
|
+
C("path", {
|
|
2666
2666
|
fill: "currentColor",
|
|
2667
2667
|
d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
|
|
2668
2668
|
})
|
|
2669
2669
|
]));
|
|
2670
2670
|
}
|
|
2671
|
-
}),
|
|
2671
|
+
}), Nl = nr;
|
|
2672
2672
|
function J(t) {
|
|
2673
2673
|
const e = { ...t.query, ...t.params };
|
|
2674
2674
|
if (t.params.domain && t.params.id) {
|
|
@@ -2681,7 +2681,7 @@ function sr(t) {
|
|
|
2681
2681
|
const e = t.length, n = Math.floor(24 / e);
|
|
2682
2682
|
return { type: "row", cols: t.map((o) => ({ type: "col", span: n, field: o })) };
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function gt(t) {
|
|
2685
2685
|
return t.map((e) => sr(e));
|
|
2686
2686
|
}
|
|
2687
2687
|
const or = {
|
|
@@ -2694,7 +2694,7 @@ const or = {
|
|
|
2694
2694
|
fields: Array
|
|
2695
2695
|
},
|
|
2696
2696
|
setup(t) {
|
|
2697
|
-
const e = t, n =
|
|
2697
|
+
const e = t, n = I(() => {
|
|
2698
2698
|
var r;
|
|
2699
2699
|
if (e.layout.length == 0) {
|
|
2700
2700
|
if (((r = e.fields) == null ? void 0 : r.filter(
|
|
@@ -2704,11 +2704,11 @@ const or = {
|
|
|
2704
2704
|
}
|
|
2705
2705
|
).length) <= 6) {
|
|
2706
2706
|
const d = o(e.fields, 1);
|
|
2707
|
-
return
|
|
2707
|
+
return gt(d);
|
|
2708
2708
|
}
|
|
2709
2709
|
console.log(e.fields);
|
|
2710
2710
|
const i = o(e.fields, 2);
|
|
2711
|
-
return
|
|
2711
|
+
return gt(i);
|
|
2712
2712
|
}
|
|
2713
2713
|
return e.layout;
|
|
2714
2714
|
});
|
|
@@ -2727,9 +2727,9 @@ const or = {
|
|
|
2727
2727
|
return d;
|
|
2728
2728
|
}
|
|
2729
2729
|
return (r, a) => (u(), x("div", null, [
|
|
2730
|
-
(u(!0), x(
|
|
2730
|
+
(u(!0), x(L, null, H(n.value, (i) => (u(), $(f(he), { gutter: 20 }, {
|
|
2731
2731
|
default: b(() => [
|
|
2732
|
-
(u(!0), x(
|
|
2732
|
+
(u(!0), x(L, null, H(i.cols, (d) => {
|
|
2733
2733
|
var m, c, l;
|
|
2734
2734
|
return u(), $(f(pe), {
|
|
2735
2735
|
span: (m = s(d.field)) != null && m.wholeRow ? 24 : ((c = i.cols) == null ? void 0 : c.length) == 1 && !((l = d.field) != null && l.includes("classify")) && e.fields.length > 6 ? 12 : d.span
|
|
@@ -2737,7 +2737,7 @@ const or = {
|
|
|
2737
2737
|
default: b(() => {
|
|
2738
2738
|
var v, k;
|
|
2739
2739
|
return [
|
|
2740
|
-
(v = d.field) != null && v.includes("classify") && ((k = s(d.field)) != null && k.label) ? (u(), x("div", or,
|
|
2740
|
+
(v = d.field) != null && v.includes("classify") && ((k = s(d.field)) != null && k.label) ? (u(), x("div", or, P(s(d.field).label), 1)) : Y(r.$slots, "default", {
|
|
2741
2741
|
key: 1,
|
|
2742
2742
|
field: s(d.field)
|
|
2743
2743
|
}, void 0, !0)
|
|
@@ -2767,14 +2767,14 @@ const or = {
|
|
|
2767
2767
|
},
|
|
2768
2768
|
emits: ["submit", "remove"],
|
|
2769
2769
|
setup(t, { emit: e }) {
|
|
2770
|
-
const n = z(), s = J(n), o = e, r = A(!1), a = t, i =
|
|
2770
|
+
const n = z(), s = J(n), o = e, r = A(!1), a = t, i = gt(a.config.formLayout || []), d = a.config.formStyleConfig || {
|
|
2771
2771
|
labelPosition: "top",
|
|
2772
2772
|
labelWidth: 100
|
|
2773
|
-
}, m =
|
|
2774
|
-
const
|
|
2775
|
-
return y.disabled = D && !
|
|
2773
|
+
}, m = Ce({ ...a.data }), c = A(null), l = a.config.fields.filter((y) => y.rules).reduce((y, F) => (y[F.code] = _(F.rules), y), {}), v = I(S), k = I(() => a.config.fields.filter((y) => {
|
|
2774
|
+
const F = y.editable(m, s), D = y.visible(m, s);
|
|
2775
|
+
return y.disabled = D && !F, F || D;
|
|
2776
2776
|
}));
|
|
2777
|
-
function
|
|
2777
|
+
function _(y) {
|
|
2778
2778
|
return typeof y == "object" ? y : typeof y == "function" ? y(m) : [];
|
|
2779
2779
|
}
|
|
2780
2780
|
function h(y) {
|
|
@@ -2782,11 +2782,11 @@ const or = {
|
|
|
2782
2782
|
r.value = !1;
|
|
2783
2783
|
});
|
|
2784
2784
|
}
|
|
2785
|
-
async function
|
|
2786
|
-
await c.value.validate(async (y,
|
|
2785
|
+
async function g() {
|
|
2786
|
+
await c.value.validate(async (y, F) => {
|
|
2787
2787
|
var X, U;
|
|
2788
2788
|
if (!y)
|
|
2789
|
-
return console.log("error submit!",
|
|
2789
|
+
return console.log("error submit!", F), !1;
|
|
2790
2790
|
const D = (X = a.config.fields.find((ie) => ["images", "attachments", "attachment"].includes(ie.type))) == null ? void 0 : X.code, Q = { ...m };
|
|
2791
2791
|
if (D && (Q[D] = (U = Q[D]) == null ? void 0 : U.map((ie) => ie.id)), a.config.submitConfirm) {
|
|
2792
2792
|
await a.config.submitConfirm(Q) && h(Q);
|
|
@@ -2823,13 +2823,13 @@ const or = {
|
|
|
2823
2823
|
}
|
|
2824
2824
|
return j(
|
|
2825
2825
|
() => ({ ...m }),
|
|
2826
|
-
(y,
|
|
2827
|
-
const Q = Object.keys(y).filter((U) =>
|
|
2826
|
+
(y, F) => {
|
|
2827
|
+
const Q = Object.keys(y).filter((U) => F[U] !== y[U]).map((U) => {
|
|
2828
2828
|
var ie;
|
|
2829
2829
|
return (ie = c.value) == null || ie.clearValidate(U), {
|
|
2830
2830
|
field: U,
|
|
2831
2831
|
newValue: y[U],
|
|
2832
|
-
oldValue:
|
|
2832
|
+
oldValue: F[U]
|
|
2833
2833
|
};
|
|
2834
2834
|
});
|
|
2835
2835
|
k.value.filter((U) => !U.disabled).forEach((U) => {
|
|
@@ -2839,12 +2839,12 @@ const or = {
|
|
|
2839
2839
|
), j(
|
|
2840
2840
|
() => a.data,
|
|
2841
2841
|
(y) => {
|
|
2842
|
-
Object.keys(y).forEach((
|
|
2843
|
-
m[
|
|
2842
|
+
Object.keys(y).forEach((F) => {
|
|
2843
|
+
m[F] = y[F];
|
|
2844
2844
|
});
|
|
2845
2845
|
},
|
|
2846
2846
|
{ immediate: !0 }
|
|
2847
|
-
), (y,
|
|
2847
|
+
), (y, F) => (u(), $(f(hn), {
|
|
2848
2848
|
id: "form",
|
|
2849
2849
|
ref_key: "formRef",
|
|
2850
2850
|
ref: c,
|
|
@@ -2865,7 +2865,7 @@ const or = {
|
|
|
2865
2865
|
prop: D.code
|
|
2866
2866
|
}, {
|
|
2867
2867
|
default: b(() => [
|
|
2868
|
-
|
|
2868
|
+
C("div", ir, [
|
|
2869
2869
|
D != null && D.editor ? (u(), $(G(D.editor), {
|
|
2870
2870
|
key: 0,
|
|
2871
2871
|
modelValue: m[D.code],
|
|
@@ -2889,7 +2889,7 @@ const or = {
|
|
|
2889
2889
|
]),
|
|
2890
2890
|
_: 1
|
|
2891
2891
|
}, 8, ["layout", "fields"]),
|
|
2892
|
-
|
|
2892
|
+
C("div", lr, [
|
|
2893
2893
|
m.id && !m.deletedAt && a.removable ? (u(), $(f(ne), {
|
|
2894
2894
|
key: 0,
|
|
2895
2895
|
size: "default",
|
|
@@ -2899,7 +2899,7 @@ const or = {
|
|
|
2899
2899
|
onClick: p
|
|
2900
2900
|
}, {
|
|
2901
2901
|
default: b(() => [
|
|
2902
|
-
|
|
2902
|
+
M(" 删除 ")
|
|
2903
2903
|
]),
|
|
2904
2904
|
_: 1
|
|
2905
2905
|
}, 8, ["icon"])) : (u(), x("div", ur)),
|
|
@@ -2909,10 +2909,10 @@ const or = {
|
|
|
2909
2909
|
icon: f(Va),
|
|
2910
2910
|
type: "primary",
|
|
2911
2911
|
loading: r.value,
|
|
2912
|
-
onClick:
|
|
2912
|
+
onClick: g
|
|
2913
2913
|
}, {
|
|
2914
2914
|
default: b(() => [
|
|
2915
|
-
|
|
2915
|
+
M(" 提交 ")
|
|
2916
2916
|
]),
|
|
2917
2917
|
_: 1
|
|
2918
2918
|
}, 8, ["icon", "loading"])) : T("", !0)
|
|
@@ -2925,9 +2925,9 @@ const or = {
|
|
|
2925
2925
|
function pr() {
|
|
2926
2926
|
return We().idempotentUrl ? oe.get(We().idempotentUrl).then((t) => t.data) : "";
|
|
2927
2927
|
}
|
|
2928
|
-
const
|
|
2928
|
+
const Fe = {
|
|
2929
2929
|
getValue: pr
|
|
2930
|
-
},
|
|
2930
|
+
}, fr = { style: { "font-weight": "700", "font-size": "22px", color: "#333" } }, Ft = {
|
|
2931
2931
|
__name: "FormEditor",
|
|
2932
2932
|
props: {
|
|
2933
2933
|
modelValue: {
|
|
@@ -2949,46 +2949,49 @@ const Ce = {
|
|
|
2949
2949
|
},
|
|
2950
2950
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2951
2951
|
setup(t, { emit: e }) {
|
|
2952
|
-
const n = z(), s = J(n), o = e, r = t, a = A(r.data), i =
|
|
2953
|
-
var
|
|
2954
|
-
if (!((
|
|
2952
|
+
const n = z(), s = J(n), o = e, r = t, a = A(r.data), i = I(() => ({ ...a.value, idempotentToken: m.value })), d = I(() => r.config.fields.filter((h) => {
|
|
2953
|
+
var g;
|
|
2954
|
+
if (!((g = h.code) != null && g.includes("classify")))
|
|
2955
2955
|
return h.visible(i, s);
|
|
2956
|
-
}).length >= 6 ? "60%" : "40%"), m = A(""), c =
|
|
2956
|
+
}).length >= 6 ? "60%" : "40%"), m = A(""), c = I({
|
|
2957
2957
|
get() {
|
|
2958
2958
|
return r.modelValue;
|
|
2959
2959
|
},
|
|
2960
|
-
set(
|
|
2961
|
-
o("update:modelValue",
|
|
2960
|
+
set(_) {
|
|
2961
|
+
o("update:modelValue", _);
|
|
2962
2962
|
}
|
|
2963
|
-
}), l =
|
|
2964
|
-
function v(
|
|
2965
|
-
a.value = h, o("submit",
|
|
2966
|
-
m.value = await
|
|
2963
|
+
}), l = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `新增${r.config.name}`);
|
|
2964
|
+
function v(_, h, g) {
|
|
2965
|
+
a.value = h, o("submit", _, async () => {
|
|
2966
|
+
m.value = await Fe.getValue(), g();
|
|
2967
2967
|
});
|
|
2968
2968
|
}
|
|
2969
|
-
function k(
|
|
2970
|
-
o("remove",
|
|
2971
|
-
m.value = await
|
|
2969
|
+
function k(_, h) {
|
|
2970
|
+
o("remove", _, async () => {
|
|
2971
|
+
m.value = await Fe.getValue(), h();
|
|
2972
2972
|
});
|
|
2973
2973
|
}
|
|
2974
2974
|
return j(
|
|
2975
2975
|
() => c,
|
|
2976
2976
|
async () => {
|
|
2977
|
-
m.value = await
|
|
2977
|
+
m.value = await Fe.getValue();
|
|
2978
2978
|
},
|
|
2979
2979
|
{ immediate: !0 }
|
|
2980
|
-
), (
|
|
2980
|
+
), (_, h) => (u(), $(f(ds), {
|
|
2981
2981
|
modelValue: c.value,
|
|
2982
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2982
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => c.value = g),
|
|
2983
2983
|
width: d.value,
|
|
2984
2984
|
top: "20px",
|
|
2985
|
-
title:
|
|
2985
|
+
title: null,
|
|
2986
2986
|
"close-on-click-modal": !1,
|
|
2987
2987
|
"append-to-body": !0,
|
|
2988
2988
|
"destroy-on-close": "",
|
|
2989
2989
|
"z-index": 2e3,
|
|
2990
2990
|
style: { "border-radius": "12px" }
|
|
2991
2991
|
}, {
|
|
2992
|
+
title: b(() => [
|
|
2993
|
+
C("div", fr, P(l.value), 1)
|
|
2994
|
+
]),
|
|
2992
2995
|
default: b(() => [
|
|
2993
2996
|
O(dr, {
|
|
2994
2997
|
config: r.config,
|
|
@@ -2999,9 +3002,9 @@ const Ce = {
|
|
|
2999
3002
|
}, null, 8, ["config", "data", "removable"])
|
|
3000
3003
|
]),
|
|
3001
3004
|
_: 1
|
|
3002
|
-
}, 8, ["modelValue", "width"
|
|
3005
|
+
}, 8, ["modelValue", "width"]));
|
|
3003
3006
|
}
|
|
3004
|
-
},
|
|
3007
|
+
}, zl = {
|
|
3005
3008
|
__name: "RowActionFormEditor",
|
|
3006
3009
|
props: {
|
|
3007
3010
|
row: {
|
|
@@ -3035,7 +3038,7 @@ const Ce = {
|
|
|
3035
3038
|
}
|
|
3036
3039
|
},
|
|
3037
3040
|
setup(t) {
|
|
3038
|
-
const e = t, n = A(e.row), s = A(!1), o = te(null), r = z(), a = J(r), i =
|
|
3041
|
+
const e = t, n = A(e.row), s = A(!1), o = te(null), r = z(), a = J(r), i = I(() => {
|
|
3039
3042
|
const l = e.formStyleConfig || {};
|
|
3040
3043
|
return {
|
|
3041
3044
|
...{
|
|
@@ -3081,8 +3084,8 @@ const Ce = {
|
|
|
3081
3084
|
onClick: m
|
|
3082
3085
|
}, {
|
|
3083
3086
|
default: b(() => [
|
|
3084
|
-
|
|
3085
|
-
s.value ? (u(), $(
|
|
3087
|
+
M(P(e.text) + " ", 1),
|
|
3088
|
+
s.value ? (u(), $(Ft, {
|
|
3086
3089
|
key: 0,
|
|
3087
3090
|
modelValue: s.value,
|
|
3088
3091
|
"onUpdate:modelValue": v[0] || (v[0] = (k) => s.value = k),
|
|
@@ -3095,7 +3098,7 @@ const Ce = {
|
|
|
3095
3098
|
_: 1
|
|
3096
3099
|
}, 8, ["type"]));
|
|
3097
3100
|
}
|
|
3098
|
-
},
|
|
3101
|
+
}, mr = { class: "not-found" }, hr = {
|
|
3099
3102
|
__name: "EmptyTip",
|
|
3100
3103
|
props: {
|
|
3101
3104
|
text: {
|
|
@@ -3105,9 +3108,9 @@ const Ce = {
|
|
|
3105
3108
|
},
|
|
3106
3109
|
setup(t) {
|
|
3107
3110
|
const e = t;
|
|
3108
|
-
return (n, s) => (u(), x("span",
|
|
3111
|
+
return (n, s) => (u(), x("span", mr, P(e.text), 1));
|
|
3109
3112
|
}
|
|
3110
|
-
},
|
|
3113
|
+
}, Ul = /* @__PURE__ */ V(hr, [["__scopeId", "data-v-c97e855f"]]), Hl = {
|
|
3111
3114
|
__name: "FieldEditor",
|
|
3112
3115
|
props: {
|
|
3113
3116
|
modelValue: {
|
|
@@ -3121,21 +3124,21 @@ const Ce = {
|
|
|
3121
3124
|
},
|
|
3122
3125
|
emits: ["update:modelValue"],
|
|
3123
3126
|
setup(t, { emit: e }) {
|
|
3124
|
-
const n = ts(() => import("./ImagesUploader-
|
|
3127
|
+
const n = ts(() => import("./ImagesUploader-C_lRUsOq.js")), s = We().fileUploadUrl, o = e, r = t, a = Ce({ value: r.modelValue }), i = r.field.converter;
|
|
3125
3128
|
function d(c) {
|
|
3126
3129
|
let l = -1;
|
|
3127
3130
|
c.id && (l = a.value.findIndex((v) => v.id === c.id)), c.url && (l = a.value.findIndex((v) => v.url === c.url)), l >= 0 && (a.value.splice(l, 1), o("update:modelValue", a.value));
|
|
3128
3131
|
}
|
|
3129
3132
|
function m(c) {
|
|
3130
|
-
console.log(c),
|
|
3131
|
-
|
|
3133
|
+
console.log(c), Me.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), oe.post(s, c).then((l) => {
|
|
3134
|
+
Me.service().close(), De({
|
|
3132
3135
|
message: "上传成功",
|
|
3133
3136
|
type: "success"
|
|
3134
3137
|
});
|
|
3135
3138
|
const v = i(l.data);
|
|
3136
3139
|
a.value = a.value ? [...a.value, v] : [v], o("update:modelValue", a.value);
|
|
3137
3140
|
}).catch(() => {
|
|
3138
|
-
|
|
3141
|
+
Me.service().close(), De({
|
|
3139
3142
|
message: "上传失败",
|
|
3140
3143
|
type: "warning"
|
|
3141
3144
|
});
|
|
@@ -3183,7 +3186,7 @@ const Ce = {
|
|
|
3183
3186
|
}),
|
|
3184
3187
|
getters: {
|
|
3185
3188
|
validFilters() {
|
|
3186
|
-
return
|
|
3189
|
+
return _r(
|
|
3187
3190
|
t,
|
|
3188
3191
|
e,
|
|
3189
3192
|
this.filters,
|
|
@@ -3201,7 +3204,7 @@ const Ce = {
|
|
|
3201
3204
|
}
|
|
3202
3205
|
}
|
|
3203
3206
|
});
|
|
3204
|
-
function
|
|
3207
|
+
function _r(t, e, n, s, o) {
|
|
3205
3208
|
let a = { ...gr(t, e, s), ...n };
|
|
3206
3209
|
return o != null && o.setupCreate && (a = o.setupCreate(a)), yt(t, e, a);
|
|
3207
3210
|
}
|
|
@@ -3211,13 +3214,13 @@ function gr(t, e, n) {
|
|
|
3211
3214
|
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), {});
|
|
3212
3215
|
}
|
|
3213
3216
|
function yt(t, e, n) {
|
|
3214
|
-
const s = `filters---${e}---${t}`, o =
|
|
3217
|
+
const s = `filters---${e}---${t}`, o = yr(n);
|
|
3215
3218
|
return localStorage.setItem(s, JSON.stringify(o)), o;
|
|
3216
3219
|
}
|
|
3217
|
-
function
|
|
3220
|
+
function yr(t) {
|
|
3218
3221
|
return Object.keys(t).filter((e) => t[e] != null && t[e] != null && t[e] != "").reduce((e, n) => (e[n] = t[n], e), {});
|
|
3219
3222
|
}
|
|
3220
|
-
const
|
|
3223
|
+
const vr = { class: "sorters-box" }, br = ["onClick"], wr = { class: "sorters-label" }, Er = { class: "sorters-arrow-box" }, $r = ["onClick"], Sr = ["onClick"], xr = {
|
|
3221
3224
|
__name: "FiltersSorters",
|
|
3222
3225
|
props: {
|
|
3223
3226
|
sorters: {
|
|
@@ -3268,26 +3271,26 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3268
3271
|
c.filter((l) => l.order)
|
|
3269
3272
|
);
|
|
3270
3273
|
}
|
|
3271
|
-
return (d, m) => (u(), x("div",
|
|
3272
|
-
(u(!0), x(
|
|
3274
|
+
return (d, m) => (u(), x("div", vr, [
|
|
3275
|
+
(u(!0), x(L, null, H(o.value, (c, l) => (u(), x("div", {
|
|
3273
3276
|
class: "sorters-item",
|
|
3274
3277
|
onClick: (v) => i(l, "")
|
|
3275
3278
|
}, [
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
class:
|
|
3279
|
+
C("div", wr, P(c.name), 1),
|
|
3280
|
+
C("div", Er, [
|
|
3281
|
+
C("i", {
|
|
3282
|
+
class: me(["sort-caret ascending", c.order === "ASC" ? "ascending-active" : ""]),
|
|
3280
3283
|
onClick: Lt((v) => i(l, "ASC"), ["stop"])
|
|
3281
|
-
}, null, 10,
|
|
3282
|
-
|
|
3283
|
-
class:
|
|
3284
|
+
}, null, 10, $r),
|
|
3285
|
+
C("i", {
|
|
3286
|
+
class: me(["sort-caret descending", c.order === "DESC" ? "descending-active" : ""]),
|
|
3284
3287
|
onClick: Lt((v) => i(l, "DESC"), ["stop"])
|
|
3285
|
-
}, null, 10,
|
|
3288
|
+
}, null, 10, Sr)
|
|
3286
3289
|
])
|
|
3287
|
-
], 8,
|
|
3290
|
+
], 8, br))), 256))
|
|
3288
3291
|
]));
|
|
3289
3292
|
}
|
|
3290
|
-
},
|
|
3293
|
+
}, kr = /* @__PURE__ */ V(xr, [["__scopeId", "data-v-fa20b02a"]]), Or = { class: "ranges-box" }, Fr = { class: "range-item" }, Cr = { class: "range-label" }, Dr = { class: "range-input-box" }, Ar = {
|
|
3291
3294
|
__name: "FiltersRange",
|
|
3292
3295
|
props: {
|
|
3293
3296
|
ranges: {
|
|
@@ -3302,7 +3305,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3302
3305
|
},
|
|
3303
3306
|
emits: ["updateRanges"],
|
|
3304
3307
|
setup(t, { emit: e }) {
|
|
3305
|
-
const n = e, s = t, o =
|
|
3308
|
+
const n = e, s = t, o = Ce(s.ranges.rangesList);
|
|
3306
3309
|
j(
|
|
3307
3310
|
() => s.value,
|
|
3308
3311
|
() => {
|
|
@@ -3327,10 +3330,10 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3327
3330
|
c.filter((l) => l.min || l.max)
|
|
3328
3331
|
);
|
|
3329
3332
|
}
|
|
3330
|
-
return r(), (i, d) => (u(), x("div",
|
|
3331
|
-
(u(!0), x(
|
|
3332
|
-
|
|
3333
|
-
|
|
3333
|
+
return r(), (i, d) => (u(), x("div", Or, [
|
|
3334
|
+
(u(!0), x(L, null, H(o, (m) => (u(), x("div", Fr, [
|
|
3335
|
+
C("div", Cr, P(m.name), 1),
|
|
3336
|
+
C("div", Dr, [
|
|
3334
3337
|
O(f(Vt), {
|
|
3335
3338
|
modelValue: m.min,
|
|
3336
3339
|
"onUpdate:modelValue": (c) => m.min = c,
|
|
@@ -3354,7 +3357,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3354
3357
|
]))), 256))
|
|
3355
3358
|
]));
|
|
3356
3359
|
}
|
|
3357
|
-
},
|
|
3360
|
+
}, Rr = /* @__PURE__ */ V(Ar, [["__scopeId", "data-v-30f46526"]]), Tr = { key: 0 }, Pr = {
|
|
3358
3361
|
__name: "FiltersEditor",
|
|
3359
3362
|
props: {
|
|
3360
3363
|
settings: {
|
|
@@ -3366,7 +3369,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3366
3369
|
label: "name",
|
|
3367
3370
|
children: "children",
|
|
3368
3371
|
value: "id"
|
|
3369
|
-
}, s = z(), o = J(s), r = A([]), a =
|
|
3372
|
+
}, s = z(), o = J(s), r = A([]), a = Ce({}), i = Ce({}), d = Be(
|
|
3370
3373
|
e.settings.code,
|
|
3371
3374
|
s.path,
|
|
3372
3375
|
e.settings.filters,
|
|
@@ -3391,10 +3394,10 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3391
3394
|
else if (Array.isArray(p.options))
|
|
3392
3395
|
i[p.code] = p.options;
|
|
3393
3396
|
else if (typeof p.options == "object") {
|
|
3394
|
-
const
|
|
3397
|
+
const F = p.options.getOneUrl ? p.options.getOneUrl : p.options.url;
|
|
3395
3398
|
if (!S && Array.isArray(a[p.code]) && a[p.code].length > 0)
|
|
3396
3399
|
i[p.code] = [], a[p.code].forEach((D) => {
|
|
3397
|
-
|
|
3400
|
+
F.getOne({ id: D }).then((Q) => {
|
|
3398
3401
|
i[p.code].push({
|
|
3399
3402
|
code: Q.data[p.options.data.value] || Q.data.id,
|
|
3400
3403
|
name: Q.data[p.options.data.label] || Q.data.name
|
|
@@ -3402,7 +3405,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3402
3405
|
});
|
|
3403
3406
|
});
|
|
3404
3407
|
else if (!S && !Array.isArray(a[p.code]) && a[p.code])
|
|
3405
|
-
|
|
3408
|
+
F.getOne({ id: a[p.code] }).then((D) => {
|
|
3406
3409
|
i[p.code] = [
|
|
3407
3410
|
{
|
|
3408
3411
|
code: D.data[p.options.data.value] || D.data.id,
|
|
@@ -3424,10 +3427,10 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3424
3427
|
}
|
|
3425
3428
|
}
|
|
3426
3429
|
if (i[p.code] && p.type != "tree-select") {
|
|
3427
|
-
const
|
|
3428
|
-
a[p.code] && (p.multiple ? a[p.code] = a[p.code].filter((D) => (console.log(
|
|
3430
|
+
const F = i[p.code].map((D) => D.code);
|
|
3431
|
+
a[p.code] && (p.multiple ? a[p.code] = a[p.code].filter((D) => (console.log(F.includes(D)), F.includes(D))) : a[p.code] = (y = i[p.code].find(
|
|
3429
3432
|
(D) => D.code == a[p.code]
|
|
3430
|
-
)) == null ? void 0 : y.code,
|
|
3433
|
+
)) == null ? void 0 : y.code, g());
|
|
3431
3434
|
}
|
|
3432
3435
|
}
|
|
3433
3436
|
function l(p) {
|
|
@@ -3437,12 +3440,12 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3437
3440
|
};
|
|
3438
3441
|
}
|
|
3439
3442
|
function v(p) {
|
|
3440
|
-
a.sorters = p,
|
|
3443
|
+
a.sorters = p, g();
|
|
3441
3444
|
}
|
|
3442
3445
|
function k(p) {
|
|
3443
3446
|
a.filters = p;
|
|
3444
3447
|
}
|
|
3445
|
-
function
|
|
3448
|
+
function _() {
|
|
3446
3449
|
Object.keys(a).forEach((p) => {
|
|
3447
3450
|
a[p] = void 0;
|
|
3448
3451
|
}), r.value = Object.keys(e.settings.filters).filter((p) => m(e.settings.filters[p].visible)).map((p) => {
|
|
@@ -3458,50 +3461,50 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3458
3461
|
const S = e.settings.filters[p], y = d.validFilters[p];
|
|
3459
3462
|
return S.type === "boolean" && typeof y != "boolean" ? S.value : y;
|
|
3460
3463
|
}
|
|
3461
|
-
function
|
|
3464
|
+
function g() {
|
|
3462
3465
|
let p = JSON.parse(JSON.stringify(a));
|
|
3463
3466
|
const S = e.settings.filterHook;
|
|
3464
3467
|
S != null && S.preSubmit && (p = S.preSubmit(p, o)), p !== !1 && d.change(p);
|
|
3465
3468
|
}
|
|
3466
3469
|
function E() {
|
|
3467
|
-
d.$reset({}),
|
|
3470
|
+
d.$reset({}), _(), g();
|
|
3468
3471
|
}
|
|
3469
3472
|
return j(
|
|
3470
3473
|
() => e.settings,
|
|
3471
3474
|
() => {
|
|
3472
|
-
|
|
3475
|
+
_(), g();
|
|
3473
3476
|
},
|
|
3474
3477
|
{ immediate: !0 }
|
|
3475
3478
|
), j(
|
|
3476
3479
|
() => ({ ...a }),
|
|
3477
3480
|
(p, S) => {
|
|
3478
|
-
const
|
|
3481
|
+
const F = Object.keys(p).filter((D) => S[D] !== p[D]).map((D) => ({
|
|
3479
3482
|
field: D,
|
|
3480
3483
|
newValue: p[D],
|
|
3481
3484
|
oldValue: S[D]
|
|
3482
3485
|
}));
|
|
3483
3486
|
r.value.forEach((D) => {
|
|
3484
|
-
D.formChange && D.formChange(a,
|
|
3487
|
+
D.formChange && D.formChange(a, F);
|
|
3485
3488
|
});
|
|
3486
3489
|
}
|
|
3487
|
-
), (p, S) => Object.keys(e.settings.filters).length > 0 ? (u(), x("div",
|
|
3490
|
+
), (p, S) => Object.keys(e.settings.filters).length > 0 ? (u(), x("div", Tr, [
|
|
3488
3491
|
O(f(hn), {
|
|
3489
3492
|
model: a,
|
|
3490
3493
|
inline: "",
|
|
3491
3494
|
class: "form-editor"
|
|
3492
3495
|
}, {
|
|
3493
3496
|
default: b(() => [
|
|
3494
|
-
(u(!0), x(
|
|
3497
|
+
(u(!0), x(L, null, H(r.value, (y) => (u(), $(f(rt), null, {
|
|
3495
3498
|
default: b(() => [
|
|
3496
|
-
y.type === "boolean" ? (u(), $(f(
|
|
3499
|
+
y.type === "boolean" ? (u(), $(f(Mt), {
|
|
3497
3500
|
key: 0,
|
|
3498
3501
|
modelValue: a[y.code],
|
|
3499
|
-
"onUpdate:modelValue": (
|
|
3502
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3500
3503
|
filterable: "",
|
|
3501
3504
|
clearable: "",
|
|
3502
3505
|
placeholder: `是否${y.name}`,
|
|
3503
3506
|
"value-on-clear": null,
|
|
3504
|
-
onChange:
|
|
3507
|
+
onChange: g
|
|
3505
3508
|
}, {
|
|
3506
3509
|
default: b(() => [
|
|
3507
3510
|
O(f(Xe), {
|
|
@@ -3514,10 +3517,10 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3514
3517
|
}, null, 8, ["label"])
|
|
3515
3518
|
]),
|
|
3516
3519
|
_: 2
|
|
3517
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : y.type === "select" ? (u(), $(f(
|
|
3520
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : y.type === "select" ? (u(), $(f(Mt), {
|
|
3518
3521
|
key: 1,
|
|
3519
3522
|
modelValue: a[y.code],
|
|
3520
|
-
"onUpdate:modelValue": (
|
|
3523
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3521
3524
|
filterable: "",
|
|
3522
3525
|
clearable: "",
|
|
3523
3526
|
remote: "",
|
|
@@ -3527,25 +3530,25 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3527
3530
|
placeholder: y.name,
|
|
3528
3531
|
multiple: y.multiple,
|
|
3529
3532
|
"collapse-tags": "",
|
|
3530
|
-
class:
|
|
3533
|
+
class: me(y.multiple ? "tags-selects-input" : ""),
|
|
3531
3534
|
"multiple-limit": y.multipleLimit ? y.multipleLimit : 0,
|
|
3532
3535
|
"remote-method": l(y),
|
|
3533
3536
|
"value-on-clear": null,
|
|
3534
|
-
onChange:
|
|
3537
|
+
onChange: g
|
|
3535
3538
|
}, {
|
|
3536
3539
|
default: b(() => [
|
|
3537
|
-
(u(!0), x(
|
|
3538
|
-
key:
|
|
3539
|
-
label:
|
|
3540
|
-
value:
|
|
3541
|
-
title:
|
|
3540
|
+
(u(!0), x(L, null, H(i[y.code], (F) => (u(), $(f(Xe), {
|
|
3541
|
+
key: F.code,
|
|
3542
|
+
label: F.name,
|
|
3543
|
+
value: F.code,
|
|
3544
|
+
title: F.name
|
|
3542
3545
|
}, null, 8, ["label", "value", "title"]))), 128))
|
|
3543
3546
|
]),
|
|
3544
3547
|
_: 2
|
|
3545
3548
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : y.type === "selectV2" ? (u(), $(f(ps), {
|
|
3546
3549
|
key: 2,
|
|
3547
3550
|
modelValue: a[y.code],
|
|
3548
|
-
"onUpdate:modelValue": (
|
|
3551
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3549
3552
|
filterable: "",
|
|
3550
3553
|
options: i[y.code] ? i[y.code] : [],
|
|
3551
3554
|
props: { label: "name", value: "code" },
|
|
@@ -3553,13 +3556,13 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3553
3556
|
placeholder: y.name,
|
|
3554
3557
|
clearable: "",
|
|
3555
3558
|
"value-on-clear": null,
|
|
3556
|
-
onChange:
|
|
3557
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : y.type === "sorters" ? (u(), $(
|
|
3559
|
+
onChange: g
|
|
3560
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : y.type === "sorters" ? (u(), $(kr, {
|
|
3558
3561
|
key: 3,
|
|
3559
3562
|
value: a[y.code],
|
|
3560
3563
|
sorters: y,
|
|
3561
3564
|
onUpdateSorters: v
|
|
3562
|
-
}, null, 8, ["value", "sorters"])) : y.type === "range" ? (u(), $(
|
|
3565
|
+
}, null, 8, ["value", "sorters"])) : y.type === "range" ? (u(), $(Rr, {
|
|
3563
3566
|
key: 4,
|
|
3564
3567
|
value: a[y.code],
|
|
3565
3568
|
ranges: y,
|
|
@@ -3567,7 +3570,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3567
3570
|
}, null, 8, ["value", "ranges"])) : y.type === "tree-select" ? (u(), $(f(fs), {
|
|
3568
3571
|
key: 5,
|
|
3569
3572
|
modelValue: a[y.code],
|
|
3570
|
-
"onUpdate:modelValue": (
|
|
3573
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3571
3574
|
placeholder: y.name,
|
|
3572
3575
|
data: i[y.code],
|
|
3573
3576
|
props: n,
|
|
@@ -3585,12 +3588,12 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3585
3588
|
"collapse-tags": "",
|
|
3586
3589
|
"multiple-limit": y.multipleLimit ? y.multipleLimit : 0,
|
|
3587
3590
|
"remote-method": l(y),
|
|
3588
|
-
onCheck:
|
|
3589
|
-
onChange:
|
|
3591
|
+
onCheck: g,
|
|
3592
|
+
onChange: g
|
|
3590
3593
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "data", "multiple", "check-strictly", "multiple-limit", "remote-method"])) : y.type === "date" ? (u(), $(f(Ze), {
|
|
3591
3594
|
key: 6,
|
|
3592
3595
|
modelValue: a[y.code],
|
|
3593
|
-
"onUpdate:modelValue": (
|
|
3596
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3594
3597
|
type: "date",
|
|
3595
3598
|
format: "YYYY-MM-DD",
|
|
3596
3599
|
"value-format": "YYYY-MM-DD",
|
|
@@ -3598,7 +3601,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3598
3601
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : y.type === "datetime" ? (u(), $(f(Ze), {
|
|
3599
3602
|
key: 7,
|
|
3600
3603
|
modelValue: a[y.code],
|
|
3601
|
-
"onUpdate:modelValue": (
|
|
3604
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3602
3605
|
type: "datetime",
|
|
3603
3606
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
3604
3607
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
@@ -3606,7 +3609,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3606
3609
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : y.type === "datetime-range" ? (u(), $(f(Ze), {
|
|
3607
3610
|
key: 8,
|
|
3608
3611
|
modelValue: a[y.code],
|
|
3609
|
-
"onUpdate:modelValue": (
|
|
3612
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3610
3613
|
type: y.dateType,
|
|
3611
3614
|
format: y.format,
|
|
3612
3615
|
"value-format": y.format,
|
|
@@ -3616,7 +3619,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3616
3619
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (u(), $(f(ms), {
|
|
3617
3620
|
key: 9,
|
|
3618
3621
|
modelValue: a[y.code],
|
|
3619
|
-
"onUpdate:modelValue": (
|
|
3622
|
+
"onUpdate:modelValue": (F) => a[y.code] = F,
|
|
3620
3623
|
modelModifiers: { trim: !0 },
|
|
3621
3624
|
placeholder: y.name,
|
|
3622
3625
|
type: y.type,
|
|
@@ -3630,10 +3633,10 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3630
3633
|
O(f(ne), {
|
|
3631
3634
|
icon: f(Xa),
|
|
3632
3635
|
type: "primary",
|
|
3633
|
-
onClick:
|
|
3636
|
+
onClick: g
|
|
3634
3637
|
}, {
|
|
3635
3638
|
default: b(() => [
|
|
3636
|
-
|
|
3639
|
+
M(" 查询 ")
|
|
3637
3640
|
]),
|
|
3638
3641
|
_: 1
|
|
3639
3642
|
}, 8, ["icon"]),
|
|
@@ -3642,7 +3645,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3642
3645
|
onClick: E
|
|
3643
3646
|
}, {
|
|
3644
3647
|
default: b(() => [
|
|
3645
|
-
|
|
3648
|
+
M(" 重置 ")
|
|
3646
3649
|
]),
|
|
3647
3650
|
_: 1
|
|
3648
3651
|
}, 8, ["icon"])
|
|
@@ -3654,7 +3657,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3654
3657
|
}, 8, ["model"])
|
|
3655
3658
|
])) : T("", !0);
|
|
3656
3659
|
}
|
|
3657
|
-
},
|
|
3660
|
+
}, Lr = /* @__PURE__ */ V(Pr, [["__scopeId", "data-v-8ce141d0"]]), Br = { class: "data-page-title" }, jr = { class: "title" }, Vr = { class: "data-page-toolbar" }, Mr = {
|
|
3658
3661
|
__name: "DataTableHeader",
|
|
3659
3662
|
props: {
|
|
3660
3663
|
settings: {
|
|
@@ -3670,7 +3673,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3670
3673
|
s.path,
|
|
3671
3674
|
e.settings.filters,
|
|
3672
3675
|
e.settings.filterHook
|
|
3673
|
-
)(), a = Re(), i =
|
|
3676
|
+
)(), a = Re(), i = I(() => r.validFilters.isDeleted || !1), d = I(() => e.settings.displayMode.normalMode);
|
|
3674
3677
|
function m() {
|
|
3675
3678
|
r.$reset({ isDeleted: !i.value });
|
|
3676
3679
|
}
|
|
@@ -3683,11 +3686,11 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3683
3686
|
const k = `table-view-${s.path}-${e.settings.code}`;
|
|
3684
3687
|
localStorage.setItem(k, o.mode);
|
|
3685
3688
|
}
|
|
3686
|
-
return pn(c), (v, k) => (u(), x(
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
f(a).operations ? (u(), $(f(
|
|
3689
|
+
return pn(c), (v, k) => (u(), x(L, null, [
|
|
3690
|
+
C("div", Br, [
|
|
3691
|
+
C("div", jr, P(i.value ? `已删除的${f(n)}` : f(n)), 1),
|
|
3692
|
+
C("div", Vr, [
|
|
3693
|
+
f(a).operations ? (u(), $(f(_e), {
|
|
3691
3694
|
key: 0,
|
|
3692
3695
|
class: "button-groups"
|
|
3693
3696
|
}, {
|
|
@@ -3696,7 +3699,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3696
3699
|
]),
|
|
3697
3700
|
_: 3
|
|
3698
3701
|
})) : T("", !0),
|
|
3699
|
-
O(f(
|
|
3702
|
+
O(f(_e), { class: "button-groups" }, {
|
|
3700
3703
|
default: b(() => [
|
|
3701
3704
|
Y(v.$slots, "tools", {}, void 0, !0)
|
|
3702
3705
|
]),
|
|
@@ -3711,13 +3714,13 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3711
3714
|
default: b(() => [
|
|
3712
3715
|
O(f(de), { command: "list" }, {
|
|
3713
3716
|
default: b(() => [
|
|
3714
|
-
|
|
3717
|
+
M(" 列表 ")
|
|
3715
3718
|
]),
|
|
3716
3719
|
_: 1
|
|
3717
3720
|
}),
|
|
3718
3721
|
O(f(de), { command: "grid" }, {
|
|
3719
3722
|
default: b(() => [
|
|
3720
|
-
|
|
3723
|
+
M(" 网格 ")
|
|
3721
3724
|
]),
|
|
3722
3725
|
_: 1
|
|
3723
3726
|
})
|
|
@@ -3730,7 +3733,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3730
3733
|
default: b(() => [
|
|
3731
3734
|
O(f(K), null, {
|
|
3732
3735
|
default: b(() => [
|
|
3733
|
-
O(f(
|
|
3736
|
+
O(f(Ia))
|
|
3734
3737
|
]),
|
|
3735
3738
|
_: 1
|
|
3736
3739
|
}),
|
|
@@ -3758,7 +3761,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3758
3761
|
onClick: m
|
|
3759
3762
|
}, {
|
|
3760
3763
|
default: b(() => [
|
|
3761
|
-
|
|
3764
|
+
C("div", null, P(i.value ? "未删除" : "已删除"), 1)
|
|
3762
3765
|
]),
|
|
3763
3766
|
_: 1
|
|
3764
3767
|
})
|
|
@@ -3783,15 +3786,15 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3783
3786
|
})) : T("", !0)
|
|
3784
3787
|
])
|
|
3785
3788
|
]),
|
|
3786
|
-
O(
|
|
3789
|
+
O(Lr, {
|
|
3787
3790
|
settings: e.settings
|
|
3788
3791
|
}, null, 8, ["settings"])
|
|
3789
3792
|
], 64));
|
|
3790
3793
|
}
|
|
3791
|
-
}, Ir = /* @__PURE__ */ V(
|
|
3794
|
+
}, Ir = /* @__PURE__ */ V(Mr, [["__scopeId", "data-v-43420b94"]]), Nr = { class: "kst-field-row-id" }, zr = { key: 0 }, Ur = {
|
|
3792
3795
|
key: 1,
|
|
3793
3796
|
class: "mono-data"
|
|
3794
|
-
},
|
|
3797
|
+
}, Hr = { key: 1 }, qr = {
|
|
3795
3798
|
__name: "FieldDisplay",
|
|
3796
3799
|
props: {
|
|
3797
3800
|
field: {
|
|
@@ -3805,7 +3808,7 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3805
3808
|
}
|
|
3806
3809
|
},
|
|
3807
3810
|
setup(t) {
|
|
3808
|
-
const e = Re(), n = z(), s = t, o = n.meta.side, r =
|
|
3811
|
+
const e = Re(), n = z(), s = t, o = n.meta.side, r = I(() => s.row[s.field.code]), a = I(() => ({
|
|
3809
3812
|
path: `/${o}/${s.field.domain}/${r.value}`,
|
|
3810
3813
|
query: { ...J(n), ...s.field.rowQuery(s.row) }
|
|
3811
3814
|
}));
|
|
@@ -3815,40 +3818,40 @@ const yr = { class: "sorters-box" }, vr = ["onClick"], br = { class: "sorters-la
|
|
|
3815
3818
|
return (d, m) => {
|
|
3816
3819
|
const c = Qe("RouterLink");
|
|
3817
3820
|
return u(), x("div", Nr, [
|
|
3818
|
-
r.value ? (u(), x("span",
|
|
3821
|
+
r.value ? (u(), x("span", zr, [
|
|
3819
3822
|
i() ? (u(), $(c, {
|
|
3820
3823
|
key: 0,
|
|
3821
3824
|
class: "bld-link mono-data",
|
|
3822
3825
|
to: a.value
|
|
3823
3826
|
}, {
|
|
3824
3827
|
default: b(() => [
|
|
3825
|
-
f(e).name ? (u(), x(
|
|
3828
|
+
f(e).name ? (u(), x(L, { key: 0 }, [
|
|
3826
3829
|
Y(d.$slots, "name", {}, void 0, !0),
|
|
3827
|
-
|
|
3828
|
-
], 64)) : (u(), x(
|
|
3829
|
-
|
|
3830
|
+
M("(#" + P(r.value) + ") ", 1)
|
|
3831
|
+
], 64)) : (u(), x(L, { key: 1 }, [
|
|
3832
|
+
M(" #" + P(r.value), 1)
|
|
3830
3833
|
], 64))
|
|
3831
3834
|
]),
|
|
3832
3835
|
_: 3
|
|
3833
|
-
}, 8, ["to"])) : (u(), x("span",
|
|
3834
|
-
f(e).name ? (u(), x(
|
|
3836
|
+
}, 8, ["to"])) : (u(), x("span", Ur, [
|
|
3837
|
+
f(e).name ? (u(), x(L, { key: 0 }, [
|
|
3835
3838
|
Y(d.$slots, "name", {}, void 0, !0),
|
|
3836
|
-
|
|
3837
|
-
], 64)) : (u(), x(
|
|
3838
|
-
|
|
3839
|
+
M("(" + P(r.value) + ") ", 1)
|
|
3840
|
+
], 64)) : (u(), x(L, { key: 1 }, [
|
|
3841
|
+
M(P(r.value), 1)
|
|
3839
3842
|
], 64))
|
|
3840
3843
|
]))
|
|
3841
|
-
])) : (u(), x("span",
|
|
3844
|
+
])) : (u(), x("span", Hr, " NO ID "))
|
|
3842
3845
|
]);
|
|
3843
3846
|
};
|
|
3844
3847
|
}
|
|
3845
|
-
},
|
|
3846
|
-
function
|
|
3848
|
+
}, Wr = /* @__PURE__ */ V(qr, [["__scopeId", "data-v-00021e61"]]);
|
|
3849
|
+
function Qr(t) {
|
|
3847
3850
|
De(t);
|
|
3848
3851
|
}
|
|
3849
|
-
const
|
|
3850
|
-
show:
|
|
3851
|
-
}, tn = 10,
|
|
3852
|
+
const Jr = {
|
|
3853
|
+
show: Qr
|
|
3854
|
+
}, tn = 10, Ct = wt("route-history", {
|
|
3852
3855
|
state: () => ({
|
|
3853
3856
|
root: null,
|
|
3854
3857
|
history: []
|
|
@@ -3894,49 +3897,49 @@ const Qr = {
|
|
|
3894
3897
|
}
|
|
3895
3898
|
},
|
|
3896
3899
|
setup(t) {
|
|
3897
|
-
var
|
|
3898
|
-
const e =
|
|
3899
|
-
var h,
|
|
3900
|
-
return a.row.deletedAt ? !1 : (h = a.operations) != null && h.updatable ? !0 : !!((
|
|
3901
|
-
}), c = A((
|
|
3900
|
+
var _;
|
|
3901
|
+
const e = Ct(), n = le(), s = z(), o = be(), r = J(s), a = t, i = A({}), d = A(!1), m = I(() => {
|
|
3902
|
+
var h, g;
|
|
3903
|
+
return a.row.deletedAt ? !1 : (h = a.operations) != null && h.updatable ? !0 : !!((g = a.operations) != null && g.removable);
|
|
3904
|
+
}), c = A((_ = a.operations) == null ? void 0 : _.removable);
|
|
3902
3905
|
async function l() {
|
|
3903
|
-
const h = a.settings.formHook,
|
|
3906
|
+
const h = a.settings.formHook, g = a.settings.btnVisible, E = a.settings.rest, { data: p } = await E.getOne({
|
|
3904
3907
|
...a.row,
|
|
3905
3908
|
...r
|
|
3906
3909
|
});
|
|
3907
|
-
i.value = p, h.setupUpdate && (i.value = h.setupUpdate(i.value, r)),
|
|
3910
|
+
i.value = p, h.setupUpdate && (i.value = h.setupUpdate(i.value, r)), g.showRemove && (c.value = g.showRemove(i.value)), d.value = !0;
|
|
3908
3911
|
}
|
|
3909
|
-
function v(h,
|
|
3912
|
+
function v(h, g) {
|
|
3910
3913
|
const E = a.settings.formHook, p = a.settings.rest;
|
|
3911
3914
|
Object.keys(r).forEach((S) => {
|
|
3912
3915
|
h[S] = r[S];
|
|
3913
3916
|
}), E != null && E.preUpdateSubmit && (h = E.preUpdateSubmit(h)), p.update(h).then(() => {
|
|
3914
3917
|
d.value = !1, n.fireUpdated();
|
|
3915
3918
|
}).catch(async () => {
|
|
3916
|
-
|
|
3919
|
+
g();
|
|
3917
3920
|
});
|
|
3918
3921
|
}
|
|
3919
|
-
function k(h,
|
|
3922
|
+
function k(h, g) {
|
|
3920
3923
|
a.settings.rest.remove(h).then(() => {
|
|
3921
|
-
|
|
3924
|
+
Jr.show({ type: "success", message: "删除成功" }), d.value = !1, a.isDetail && e.history.forEach((p) => {
|
|
3922
3925
|
s.fullPath.includes(p.path) && (e.remove(p.code), o.back());
|
|
3923
3926
|
}), n.fireRemoved();
|
|
3924
3927
|
}).catch(() => {
|
|
3925
|
-
|
|
3928
|
+
g();
|
|
3926
3929
|
});
|
|
3927
3930
|
}
|
|
3928
|
-
return (h,
|
|
3931
|
+
return (h, g) => m.value ? (u(), $(f(ne), {
|
|
3929
3932
|
key: 0,
|
|
3930
3933
|
icon: f(Ba),
|
|
3931
3934
|
type: "primary",
|
|
3932
3935
|
onClick: l
|
|
3933
3936
|
}, {
|
|
3934
3937
|
default: b(() => [
|
|
3935
|
-
|
|
3936
|
-
d.value ? (u(), $(
|
|
3938
|
+
M(" 编辑 "),
|
|
3939
|
+
d.value ? (u(), $(Ft, {
|
|
3937
3940
|
key: 0,
|
|
3938
3941
|
modelValue: d.value,
|
|
3939
|
-
"onUpdate:modelValue":
|
|
3942
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => d.value = E),
|
|
3940
3943
|
config: a.settings,
|
|
3941
3944
|
data: i.value,
|
|
3942
3945
|
removable: c.value,
|
|
@@ -3947,13 +3950,13 @@ const Qr = {
|
|
|
3947
3950
|
_: 1
|
|
3948
3951
|
}, 8, ["icon"])) : T("", !0);
|
|
3949
3952
|
}
|
|
3950
|
-
},
|
|
3953
|
+
}, Gr = (t) => (fn("data-v-0941be48"), t = t(), mn(), t), Yr = { class: "data-grid-wrapper" }, Kr = {
|
|
3951
3954
|
key: 0,
|
|
3952
3955
|
class: "cover"
|
|
3953
|
-
},
|
|
3956
|
+
}, Xr = /* @__PURE__ */ Gr(() => /* @__PURE__ */ C("div", { class: "image-slot" }, null, -1)), Zr = { class: "header" }, ei = { key: 0 }, ti = { class: "key" }, ni = { class: "value" }, si = {
|
|
3954
3957
|
key: 1,
|
|
3955
3958
|
class: "footer tools"
|
|
3956
|
-
},
|
|
3959
|
+
}, oi = {
|
|
3957
3960
|
__name: "DataGrid",
|
|
3958
3961
|
props: {
|
|
3959
3962
|
settings: {
|
|
@@ -3983,28 +3986,28 @@ const Qr = {
|
|
|
3983
3986
|
c.value = E;
|
|
3984
3987
|
});
|
|
3985
3988
|
});
|
|
3986
|
-
const v =
|
|
3989
|
+
const v = I(() => {
|
|
3987
3990
|
var E, p;
|
|
3988
3991
|
return !!((E = o.operations) != null && E.updatable && c || (p = o.operations) != null && p.removable && c);
|
|
3989
|
-
}), k =
|
|
3992
|
+
}), k = I(() => o.settings.displayMode.gridWidth), _ = I(() => o.settings.displayMode.heightAuto);
|
|
3990
3993
|
function h() {
|
|
3991
3994
|
m.value = o.settings.fields.find((E) => E.code === "id"), d.value = o.settings.fields.filter((E) => E.code === o.settings.coverField || E.code === o.settings.nameField || E.code === "id" ? !1 : E.showInList(n, i.value));
|
|
3992
3995
|
}
|
|
3993
|
-
function
|
|
3996
|
+
function g(E) {
|
|
3994
3997
|
return o.settings.nameField ? E[o.settings.nameField] : E.name ? E.name : `${E.id}`;
|
|
3995
3998
|
}
|
|
3996
3999
|
return j(a, (E) => {
|
|
3997
4000
|
i.value = E, h();
|
|
3998
|
-
}), h(), (E, p) => (u(), x("div",
|
|
4001
|
+
}), h(), (E, p) => (u(), x("div", Yr, [
|
|
3999
4002
|
t.data.length === 0 ? (u(), $(f(hs), {
|
|
4000
4003
|
key: 0,
|
|
4001
4004
|
description: "暂无数据"
|
|
4002
|
-
})) : (u(), $(f(
|
|
4005
|
+
})) : (u(), $(f(he), {
|
|
4003
4006
|
key: 1,
|
|
4004
4007
|
gutter: 20
|
|
4005
4008
|
}, {
|
|
4006
4009
|
default: b(() => [
|
|
4007
|
-
(u(!0), x(
|
|
4010
|
+
(u(!0), x(L, null, H(t.data, (S) => (u(), $(f(pe), {
|
|
4008
4011
|
style: { "margin-bottom": "20px" },
|
|
4009
4012
|
span: k.value ? k.value : 24,
|
|
4010
4013
|
xs: k.value ? {} : 24,
|
|
@@ -4019,46 +4022,46 @@ const Qr = {
|
|
|
4019
4022
|
shadow: "hover"
|
|
4020
4023
|
}, {
|
|
4021
4024
|
default: b(() => [
|
|
4022
|
-
f(s).cover || o.settings.coverField ? (u(), x("div",
|
|
4025
|
+
f(s).cover || o.settings.coverField ? (u(), x("div", Kr, [
|
|
4023
4026
|
f(s).cover ? Y(E.$slots, "cover", {
|
|
4024
4027
|
key: 0,
|
|
4025
4028
|
row: S
|
|
4026
|
-
}, void 0, !0) : (u(), $(f(
|
|
4029
|
+
}, void 0, !0) : (u(), $(f(_n), {
|
|
4027
4030
|
key: 1,
|
|
4028
4031
|
src: S[o.settings.coverField],
|
|
4029
4032
|
fit: "contain"
|
|
4030
4033
|
}, {
|
|
4031
4034
|
error: b(() => [
|
|
4032
|
-
|
|
4035
|
+
Xr
|
|
4033
4036
|
]),
|
|
4034
4037
|
_: 2
|
|
4035
4038
|
}, 1032, ["src"]))
|
|
4036
4039
|
])) : T("", !0),
|
|
4037
|
-
|
|
4038
|
-
O(
|
|
4040
|
+
C("div", Zr, [
|
|
4041
|
+
O(Wr, {
|
|
4039
4042
|
field: m.value,
|
|
4040
4043
|
row: S
|
|
4041
4044
|
}, Se({ _: 2 }, [
|
|
4042
4045
|
S[o.settings.nameField] ? {
|
|
4043
4046
|
name: "name",
|
|
4044
4047
|
fn: b(() => [
|
|
4045
|
-
|
|
4048
|
+
M(P(g(S)), 1)
|
|
4046
4049
|
]),
|
|
4047
4050
|
key: "0"
|
|
4048
4051
|
} : void 0
|
|
4049
4052
|
]), 1032, ["field", "row"])
|
|
4050
4053
|
]),
|
|
4051
|
-
|
|
4052
|
-
class:
|
|
4054
|
+
C("div", {
|
|
4055
|
+
class: me(_.value ? "body heightAuto" : "body")
|
|
4053
4056
|
}, [
|
|
4054
|
-
f(s).body ? (u(), x("div",
|
|
4057
|
+
f(s).body ? (u(), x("div", ei, [
|
|
4055
4058
|
Y(E.$slots, "body", { row: S }, void 0, !0)
|
|
4056
|
-
])) : (u(!0), x(
|
|
4059
|
+
])) : (u(!0), x(L, { key: 1 }, H(d.value, (y) => (u(), x("div", {
|
|
4057
4060
|
key: y.code,
|
|
4058
4061
|
class: "field mono-data"
|
|
4059
4062
|
}, [
|
|
4060
|
-
|
|
4061
|
-
|
|
4063
|
+
C("div", ti, P(y.label) + " ", 1),
|
|
4064
|
+
C("div", ni, [
|
|
4062
4065
|
(u(), $(G(y.display), {
|
|
4063
4066
|
field: y,
|
|
4064
4067
|
row: S,
|
|
@@ -4067,8 +4070,8 @@ const Qr = {
|
|
|
4067
4070
|
])
|
|
4068
4071
|
]))), 128))
|
|
4069
4072
|
], 2),
|
|
4070
|
-
f(s).actions || v.value ? (u(), x("div",
|
|
4071
|
-
f(s).actions ? (u(), $(f(
|
|
4073
|
+
f(s).actions || v.value ? (u(), x("div", si, [
|
|
4074
|
+
f(s).actions ? (u(), $(f(_e), {
|
|
4072
4075
|
key: 0,
|
|
4073
4076
|
size: "small"
|
|
4074
4077
|
}, {
|
|
@@ -4077,7 +4080,7 @@ const Qr = {
|
|
|
4077
4080
|
]),
|
|
4078
4081
|
_: 2
|
|
4079
4082
|
}, 1024)) : T("", !0),
|
|
4080
|
-
v.value ? (u(), $(f(
|
|
4083
|
+
v.value ? (u(), $(f(_e), {
|
|
4081
4084
|
key: 1,
|
|
4082
4085
|
size: "small"
|
|
4083
4086
|
}, {
|
|
@@ -4102,14 +4105,14 @@ const Qr = {
|
|
|
4102
4105
|
}))
|
|
4103
4106
|
]));
|
|
4104
4107
|
}
|
|
4105
|
-
},
|
|
4106
|
-
function
|
|
4108
|
+
}, ai = /* @__PURE__ */ V(oi, [["__scopeId", "data-v-0941be48"]]);
|
|
4109
|
+
function ri(t, e) {
|
|
4107
4110
|
const n = t.fields.map((o) => o.code), s = Object.keys(e);
|
|
4108
4111
|
n.forEach((o) => {
|
|
4109
4112
|
s.includes(o) || console.error(`${t.code}.${o} : 与服务端数据不匹配`);
|
|
4110
4113
|
});
|
|
4111
4114
|
}
|
|
4112
|
-
const
|
|
4115
|
+
const ii = {
|
|
4113
4116
|
__name: "DataList",
|
|
4114
4117
|
props: {
|
|
4115
4118
|
settings: {
|
|
@@ -4152,22 +4155,22 @@ const ri = {
|
|
|
4152
4155
|
v.value = S;
|
|
4153
4156
|
});
|
|
4154
4157
|
});
|
|
4155
|
-
const
|
|
4158
|
+
const _ = I(() => {
|
|
4156
4159
|
var S, y;
|
|
4157
4160
|
return !!((S = a.operations) != null && S.updatable && v.value || (y = a.operations) != null && y.removable && v.value);
|
|
4158
4161
|
});
|
|
4159
4162
|
function h(S) {
|
|
4160
4163
|
o("sort-column", S);
|
|
4161
4164
|
}
|
|
4162
|
-
function
|
|
4165
|
+
function g(S) {
|
|
4163
4166
|
o("enable-item", S);
|
|
4164
4167
|
}
|
|
4165
4168
|
function E() {
|
|
4166
|
-
var y,
|
|
4169
|
+
var y, F;
|
|
4167
4170
|
const S = [...a.settings.fields];
|
|
4168
4171
|
if ((y = a.settings) != null && y.extendTableColumnfields) {
|
|
4169
4172
|
const D = a.settings.extendTableColumnfields(
|
|
4170
|
-
(
|
|
4173
|
+
(F = a.data) == null ? void 0 : F[0]
|
|
4171
4174
|
);
|
|
4172
4175
|
S.push(...D);
|
|
4173
4176
|
}
|
|
@@ -4182,11 +4185,11 @@ const ri = {
|
|
|
4182
4185
|
return E(), j(
|
|
4183
4186
|
() => a.data,
|
|
4184
4187
|
() => {
|
|
4185
|
-
a.data.length > 0 && (
|
|
4188
|
+
a.data.length > 0 && (ri(a.settings, a.data[0]), E());
|
|
4186
4189
|
}
|
|
4187
4190
|
), j(m, (S) => {
|
|
4188
4191
|
c.value = S, E();
|
|
4189
|
-
}), (S, y) => (u(), $(f(
|
|
4192
|
+
}), (S, y) => (u(), $(f(_s), {
|
|
4190
4193
|
ref: "dataTable",
|
|
4191
4194
|
class: "table mono-data",
|
|
4192
4195
|
data: a.data,
|
|
@@ -4202,31 +4205,31 @@ const ri = {
|
|
|
4202
4205
|
type: "selection",
|
|
4203
4206
|
width: "40"
|
|
4204
4207
|
}),
|
|
4205
|
-
(u(!0), x(
|
|
4206
|
-
key:
|
|
4207
|
-
label:
|
|
4208
|
-
width:
|
|
4209
|
-
prop:
|
|
4210
|
-
sortable:
|
|
4211
|
-
fixed:
|
|
4208
|
+
(u(!0), x(L, null, H(l.value, (F) => (u(), $(f(je), {
|
|
4209
|
+
key: F.code,
|
|
4210
|
+
label: F.label,
|
|
4211
|
+
width: F.width,
|
|
4212
|
+
prop: F.code,
|
|
4213
|
+
sortable: F.sortable ? "custom" : !1,
|
|
4214
|
+
fixed: F.fixed
|
|
4212
4215
|
}, Se({ _: 2 }, [
|
|
4213
|
-
|
|
4216
|
+
F.type === "switch" ? {
|
|
4214
4217
|
name: "default",
|
|
4215
4218
|
fn: b(({ row: D }) => [
|
|
4216
|
-
(u(), $(G(
|
|
4217
|
-
field:
|
|
4219
|
+
(u(), $(G(F.display), {
|
|
4220
|
+
field: F,
|
|
4218
4221
|
row: D,
|
|
4219
4222
|
mode: "list",
|
|
4220
|
-
onEnable:
|
|
4223
|
+
onEnable: g
|
|
4221
4224
|
}, null, 40, ["field", "row"]))
|
|
4222
4225
|
]),
|
|
4223
4226
|
key: "0"
|
|
4224
4227
|
} : {
|
|
4225
4228
|
name: "default",
|
|
4226
4229
|
fn: b(({ row: D }) => [
|
|
4227
|
-
(u(), $(G(
|
|
4230
|
+
(u(), $(G(F.display), {
|
|
4228
4231
|
key: D.updatedAt,
|
|
4229
|
-
field:
|
|
4232
|
+
field: F,
|
|
4230
4233
|
row: D,
|
|
4231
4234
|
mode: "list"
|
|
4232
4235
|
}, null, 8, ["field", "row"]))
|
|
@@ -4240,27 +4243,27 @@ const ri = {
|
|
|
4240
4243
|
fixed: "right",
|
|
4241
4244
|
width: a.actionsWidth
|
|
4242
4245
|
}, {
|
|
4243
|
-
default: b(({ row:
|
|
4244
|
-
O(f(
|
|
4246
|
+
default: b(({ row: F }) => [
|
|
4247
|
+
O(f(_e), { size: "small" }, {
|
|
4245
4248
|
default: b(() => [
|
|
4246
|
-
Y(S.$slots, "actions", { row:
|
|
4249
|
+
Y(S.$slots, "actions", { row: F }, void 0, !0)
|
|
4247
4250
|
]),
|
|
4248
4251
|
_: 2
|
|
4249
4252
|
}, 1024)
|
|
4250
4253
|
]),
|
|
4251
4254
|
_: 3
|
|
4252
4255
|
}, 8, ["width"])) : T("", !0),
|
|
4253
|
-
|
|
4256
|
+
_.value ? (u(), $(f(je), {
|
|
4254
4257
|
key: 1,
|
|
4255
4258
|
fixed: "right",
|
|
4256
4259
|
label: "操作",
|
|
4257
4260
|
width: a.operationsWidth
|
|
4258
4261
|
}, {
|
|
4259
|
-
default: b(({ row:
|
|
4260
|
-
O(f(
|
|
4262
|
+
default: b(({ row: F }) => [
|
|
4263
|
+
O(f(_e), { size: "small" }, {
|
|
4261
4264
|
default: b(() => [
|
|
4262
4265
|
O(Dt, {
|
|
4263
|
-
row:
|
|
4266
|
+
row: F,
|
|
4264
4267
|
settings: a.settings,
|
|
4265
4268
|
operations: a.operations
|
|
4266
4269
|
}, null, 8, ["row", "settings", "operations"])
|
|
@@ -4274,7 +4277,7 @@ const ri = {
|
|
|
4274
4277
|
_: 3
|
|
4275
4278
|
}, 8, ["data"]));
|
|
4276
4279
|
}
|
|
4277
|
-
}, nn = /* @__PURE__ */ V(
|
|
4280
|
+
}, nn = /* @__PURE__ */ V(ii, [["__scopeId", "data-v-ee2a6431"]]), li = {
|
|
4278
4281
|
__name: "DataTable",
|
|
4279
4282
|
props: {
|
|
4280
4283
|
data: {
|
|
@@ -4295,7 +4298,7 @@ const ri = {
|
|
|
4295
4298
|
e.$reset();
|
|
4296
4299
|
const { mode: n } = ge(e), s = Re(), o = t, r = te(nn);
|
|
4297
4300
|
function a(i) {
|
|
4298
|
-
i == "grid" ? r.value =
|
|
4301
|
+
i == "grid" ? r.value = ai : r.value = nn;
|
|
4299
4302
|
}
|
|
4300
4303
|
return j(n, (i) => {
|
|
4301
4304
|
a(i);
|
|
@@ -4308,7 +4311,7 @@ const ri = {
|
|
|
4308
4311
|
}))
|
|
4309
4312
|
]), 1040));
|
|
4310
4313
|
}
|
|
4311
|
-
},
|
|
4314
|
+
}, ui = {
|
|
4312
4315
|
__name: "DomainNew",
|
|
4313
4316
|
props: {
|
|
4314
4317
|
settings: {
|
|
@@ -4332,14 +4335,14 @@ const ri = {
|
|
|
4332
4335
|
});
|
|
4333
4336
|
});
|
|
4334
4337
|
async function m() {
|
|
4335
|
-
const l = o.settings.formHook, v = o.settings.fields.reduce((k,
|
|
4338
|
+
const l = o.settings.formHook, v = o.settings.fields.reduce((k, _) => (k[_.code] = _.default, k), {});
|
|
4336
4339
|
r.value = v, l.setupCreate && (r.value = l.setupCreate(r.value, s)), a.value = !0;
|
|
4337
4340
|
}
|
|
4338
4341
|
function c(l, v) {
|
|
4339
|
-
const k = o.settings.formHook,
|
|
4342
|
+
const k = o.settings.formHook, _ = o.settings.rest;
|
|
4340
4343
|
Object.keys(s).forEach((h) => {
|
|
4341
4344
|
l[h] = s[h];
|
|
4342
|
-
}), k != null && k.preCreateSubmit && (l = k.preCreateSubmit(l)),
|
|
4345
|
+
}), k != null && k.preCreateSubmit && (l = k.preCreateSubmit(l)), _.create(l).then(() => {
|
|
4343
4346
|
a.value = !1, e.fireCreated();
|
|
4344
4347
|
}).catch(async () => {
|
|
4345
4348
|
v();
|
|
@@ -4352,8 +4355,8 @@ const ri = {
|
|
|
4352
4355
|
onClick: m
|
|
4353
4356
|
}, {
|
|
4354
4357
|
default: b(() => [
|
|
4355
|
-
|
|
4356
|
-
a.value ? (u(), $(
|
|
4358
|
+
M(" 新增 "),
|
|
4359
|
+
a.value ? (u(), $(Ft, {
|
|
4357
4360
|
key: 0,
|
|
4358
4361
|
modelValue: a.value,
|
|
4359
4362
|
"onUpdate:modelValue": v[0] || (v[0] = (k) => a.value = k),
|
|
@@ -4383,14 +4386,14 @@ const ri = {
|
|
|
4383
4386
|
}
|
|
4384
4387
|
},
|
|
4385
4388
|
setup(t) {
|
|
4386
|
-
const e =
|
|
4389
|
+
const e = be(), n = le(), s = t, o = te([]);
|
|
4387
4390
|
let r = "";
|
|
4388
4391
|
async function a(d, m) {
|
|
4389
|
-
if (r =
|
|
4392
|
+
if (r = Me.service({ fullscreen: !0 }), d.path) {
|
|
4390
4393
|
r.close(), i(d, m);
|
|
4391
4394
|
return;
|
|
4392
4395
|
}
|
|
4393
|
-
const c = await
|
|
4396
|
+
const c = await Fe.getValue();
|
|
4394
4397
|
try {
|
|
4395
4398
|
await d.action({
|
|
4396
4399
|
...m,
|
|
@@ -4410,8 +4413,8 @@ const ri = {
|
|
|
4410
4413
|
o.value = s.settings.rowActions(s.query);
|
|
4411
4414
|
},
|
|
4412
4415
|
{ immediate: !0 }
|
|
4413
|
-
), (d, m) => (u(!0), x(
|
|
4414
|
-
c.isVisible(s.row, s.query, s.mode) ? (u(), x(
|
|
4416
|
+
), (d, m) => (u(!0), x(L, null, H(o.value, (c) => (u(), x(L, null, [
|
|
4417
|
+
c.isVisible(s.row, s.query, s.mode) ? (u(), x(L, { key: 0 }, [
|
|
4415
4418
|
c.component ? (u(), $(G(c.component), {
|
|
4416
4419
|
key: 0,
|
|
4417
4420
|
row: t.row
|
|
@@ -4421,14 +4424,14 @@ const ri = {
|
|
|
4421
4424
|
onClick: (l) => a(c, s.row)
|
|
4422
4425
|
}, {
|
|
4423
4426
|
default: b(() => [
|
|
4424
|
-
|
|
4427
|
+
M(P(c.name), 1)
|
|
4425
4428
|
]),
|
|
4426
4429
|
_: 2
|
|
4427
4430
|
}, 1032, ["type", "onClick"]))
|
|
4428
4431
|
], 64)) : T("", !0)
|
|
4429
4432
|
], 64))), 256));
|
|
4430
4433
|
}
|
|
4431
|
-
},
|
|
4434
|
+
}, ci = {
|
|
4432
4435
|
__name: "PageActions",
|
|
4433
4436
|
props: {
|
|
4434
4437
|
settings: {
|
|
@@ -4445,7 +4448,7 @@ const ri = {
|
|
|
4445
4448
|
}
|
|
4446
4449
|
},
|
|
4447
4450
|
setup(t) {
|
|
4448
|
-
const e = le(), n = t, s = n.query, o = A({}), r = te([]), a =
|
|
4451
|
+
const e = le(), n = t, s = n.query, o = A({}), r = te([]), a = I(() => {
|
|
4449
4452
|
var c, l;
|
|
4450
4453
|
return ((l = (c = n.tableDataSelect) == null ? void 0 : c.data) == null ? void 0 : l.length) > 0;
|
|
4451
4454
|
});
|
|
@@ -4458,7 +4461,7 @@ const ri = {
|
|
|
4458
4461
|
const i = A(!1);
|
|
4459
4462
|
async function d(c) {
|
|
4460
4463
|
i.value = !0;
|
|
4461
|
-
const l = await
|
|
4464
|
+
const l = await Fe.getValue();
|
|
4462
4465
|
try {
|
|
4463
4466
|
await c.action({
|
|
4464
4467
|
...n.tableDataSelect,
|
|
@@ -4479,8 +4482,8 @@ const ri = {
|
|
|
4479
4482
|
r.value = n.settings.pageActions(n.query);
|
|
4480
4483
|
},
|
|
4481
4484
|
{ immediate: !0 }
|
|
4482
|
-
), (c, l) => (u(!0), x(
|
|
4483
|
-
m(v.isVisible) ? (u(), x(
|
|
4485
|
+
), (c, l) => (u(!0), x(L, null, H(r.value, (v) => (u(), x(L, null, [
|
|
4486
|
+
m(v.isVisible) ? (u(), x(L, { key: 0 }, [
|
|
4484
4487
|
v.component ? (u(), $(G(v.component), {
|
|
4485
4488
|
key: 0,
|
|
4486
4489
|
item: v,
|
|
@@ -4488,7 +4491,7 @@ const ri = {
|
|
|
4488
4491
|
query: f(s),
|
|
4489
4492
|
"table-data-select": t.tableDataSelect,
|
|
4490
4493
|
"filter-form": t.filterForm
|
|
4491
|
-
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : v.tooltip && v.tooltip.content ? (u(), $(f(
|
|
4494
|
+
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : v.tooltip && v.tooltip.content ? (u(), $(f(gn), {
|
|
4492
4495
|
key: 1,
|
|
4493
4496
|
effect: v.tooltip.effect || "dark",
|
|
4494
4497
|
content: v.tooltip.content || "default tip",
|
|
@@ -4502,7 +4505,7 @@ const ri = {
|
|
|
4502
4505
|
onClick: (k) => d(v)
|
|
4503
4506
|
}, {
|
|
4504
4507
|
default: b(() => [
|
|
4505
|
-
|
|
4508
|
+
M(P(v.name), 1)
|
|
4506
4509
|
]),
|
|
4507
4510
|
_: 2
|
|
4508
4511
|
}, 1032, ["type", "loading", "disabled", "onClick"])
|
|
@@ -4516,14 +4519,14 @@ const ri = {
|
|
|
4516
4519
|
onClick: (k) => d(v)
|
|
4517
4520
|
}, {
|
|
4518
4521
|
default: b(() => [
|
|
4519
|
-
|
|
4522
|
+
M(P(v.name), 1)
|
|
4520
4523
|
]),
|
|
4521
4524
|
_: 2
|
|
4522
4525
|
}, 1032, ["type", "loading", "disabled", "onClick"]))
|
|
4523
4526
|
], 64)) : T("", !0)
|
|
4524
4527
|
], 64))), 256));
|
|
4525
4528
|
}
|
|
4526
|
-
},
|
|
4529
|
+
}, di = { class: "pagination-wrapper" }, pi = {
|
|
4527
4530
|
__name: "Pagination",
|
|
4528
4531
|
props: {
|
|
4529
4532
|
total: {
|
|
@@ -4544,7 +4547,7 @@ const ri = {
|
|
|
4544
4547
|
},
|
|
4545
4548
|
emits: ["page-change"],
|
|
4546
4549
|
setup(t, { emit: e }) {
|
|
4547
|
-
const n = e, s =
|
|
4550
|
+
const n = e, s = be(), o = z(), r = t, a = A(r.page), i = A(r.size), d = A(r.total), m = A(r.pageSizes);
|
|
4548
4551
|
j(
|
|
4549
4552
|
() => r.total,
|
|
4550
4553
|
(v) => {
|
|
@@ -4576,8 +4579,8 @@ const ri = {
|
|
|
4576
4579
|
}
|
|
4577
4580
|
});
|
|
4578
4581
|
}
|
|
4579
|
-
return (v, k) => (u(), x("div",
|
|
4580
|
-
O(f(
|
|
4582
|
+
return (v, k) => (u(), x("div", di, [
|
|
4583
|
+
O(f(gs), {
|
|
4581
4584
|
background: "",
|
|
4582
4585
|
"page-size": i.value,
|
|
4583
4586
|
"page-sizes": m.value,
|
|
@@ -4589,54 +4592,54 @@ const ri = {
|
|
|
4589
4592
|
}, null, 8, ["page-size", "page-sizes", "total", "current-page"])
|
|
4590
4593
|
]));
|
|
4591
4594
|
}
|
|
4592
|
-
},
|
|
4595
|
+
}, fi = /* @__PURE__ */ V(pi, [["__scopeId", "data-v-1df5c171"]]);
|
|
4593
4596
|
var sn;
|
|
4594
4597
|
const Jn = typeof window < "u";
|
|
4595
4598
|
Jn && ((sn = window == null ? void 0 : window.navigator) != null && sn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
4596
|
-
function
|
|
4599
|
+
function mi(t) {
|
|
4597
4600
|
return typeof t == "function" ? t() : f(t);
|
|
4598
4601
|
}
|
|
4599
|
-
function
|
|
4602
|
+
function hi(t) {
|
|
4600
4603
|
return t;
|
|
4601
4604
|
}
|
|
4602
|
-
function
|
|
4605
|
+
function _i(t) {
|
|
4603
4606
|
return ns() ? (ss(t), !0) : !1;
|
|
4604
4607
|
}
|
|
4605
4608
|
function gi(t, e = !0) {
|
|
4606
4609
|
os() ? pn(t) : e ? t() : as(t);
|
|
4607
4610
|
}
|
|
4608
|
-
function
|
|
4611
|
+
function yi(t) {
|
|
4609
4612
|
var e;
|
|
4610
|
-
const n =
|
|
4613
|
+
const n = mi(t);
|
|
4611
4614
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
4612
4615
|
}
|
|
4613
|
-
const
|
|
4614
|
-
function
|
|
4616
|
+
const vi = Jn ? window : void 0;
|
|
4617
|
+
function bi(t, e = !1) {
|
|
4615
4618
|
const n = A(), s = () => n.value = !!t();
|
|
4616
4619
|
return s(), gi(s, e), n;
|
|
4617
4620
|
}
|
|
4618
4621
|
const on = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, an = "__vueuse_ssr_handlers__";
|
|
4619
4622
|
on[an] = on[an] || {};
|
|
4620
|
-
var rn = Object.getOwnPropertySymbols,
|
|
4623
|
+
var rn = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, $i = (t, e) => {
|
|
4621
4624
|
var n = {};
|
|
4622
4625
|
for (var s in t)
|
|
4623
|
-
|
|
4626
|
+
wi.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
|
|
4624
4627
|
if (t != null && rn)
|
|
4625
4628
|
for (var s of rn(t))
|
|
4626
|
-
e.indexOf(s) < 0 &&
|
|
4629
|
+
e.indexOf(s) < 0 && Ei.call(t, s) && (n[s] = t[s]);
|
|
4627
4630
|
return n;
|
|
4628
4631
|
};
|
|
4629
4632
|
function ln(t, e, n = {}) {
|
|
4630
|
-
const s = n, { window: o =
|
|
4633
|
+
const s = n, { window: o = vi } = s, r = $i(s, ["window"]);
|
|
4631
4634
|
let a;
|
|
4632
|
-
const i =
|
|
4635
|
+
const i = bi(() => o && "ResizeObserver" in o), d = () => {
|
|
4633
4636
|
a && (a.disconnect(), a = void 0);
|
|
4634
|
-
}, m = j(() =>
|
|
4637
|
+
}, m = j(() => yi(t), (l) => {
|
|
4635
4638
|
d(), i.value && o && l && (a = new ResizeObserver(e), a.observe(l, r));
|
|
4636
4639
|
}, { immediate: !0, flush: "post" }), c = () => {
|
|
4637
4640
|
d(), m();
|
|
4638
4641
|
};
|
|
4639
|
-
return
|
|
4642
|
+
return _i(c), {
|
|
4640
4643
|
isSupported: i,
|
|
4641
4644
|
stop: c
|
|
4642
4645
|
};
|
|
@@ -4645,15 +4648,15 @@ var un;
|
|
|
4645
4648
|
(function(t) {
|
|
4646
4649
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
4647
4650
|
})(un || (un = {}));
|
|
4648
|
-
var
|
|
4651
|
+
var Si = Object.defineProperty, cn = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, dn = (t, e, n) => e in t ? Si(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Oi = (t, e) => {
|
|
4649
4652
|
for (var n in e || (e = {}))
|
|
4650
|
-
|
|
4653
|
+
xi.call(e, n) && dn(t, n, e[n]);
|
|
4651
4654
|
if (cn)
|
|
4652
4655
|
for (var n of cn(e))
|
|
4653
|
-
|
|
4656
|
+
ki.call(e, n) && dn(t, n, e[n]);
|
|
4654
4657
|
return t;
|
|
4655
4658
|
};
|
|
4656
|
-
const
|
|
4659
|
+
const Fi = {
|
|
4657
4660
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
4658
4661
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
4659
4662
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -4679,9 +4682,9 @@ const Oi = {
|
|
|
4679
4682
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
4680
4683
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
4681
4684
|
};
|
|
4682
|
-
|
|
4683
|
-
linear:
|
|
4684
|
-
},
|
|
4685
|
+
Oi({
|
|
4686
|
+
linear: hi
|
|
4687
|
+
}, Fi);
|
|
4685
4688
|
const Ci = {
|
|
4686
4689
|
__name: "DataTablePage",
|
|
4687
4690
|
props: {
|
|
@@ -4697,8 +4700,8 @@ const Ci = {
|
|
|
4697
4700
|
},
|
|
4698
4701
|
setup(t) {
|
|
4699
4702
|
var Tt, Pt;
|
|
4700
|
-
rs((
|
|
4701
|
-
|
|
4703
|
+
rs((B) => ({
|
|
4704
|
+
a9002c92: es.value
|
|
4702
4705
|
}));
|
|
4703
4706
|
const e = z(), n = J(e), s = t, o = Be(
|
|
4704
4707
|
s.settings.code,
|
|
@@ -4706,99 +4709,101 @@ const Ci = {
|
|
|
4706
4709
|
s.settings.filters,
|
|
4707
4710
|
s.settings.filterHook
|
|
4708
4711
|
)(), { filters: r } = ge(o), a = (Tt = s == null ? void 0 : s.hasMany) == null ? void 0 : Tt.tableName;
|
|
4709
|
-
j(r, (
|
|
4710
|
-
p.value =
|
|
4712
|
+
j(r, (B) => {
|
|
4713
|
+
p.value = B, X();
|
|
4711
4714
|
});
|
|
4712
4715
|
const i = le(), { created: d, updated: m, removed: c } = ge(i);
|
|
4713
|
-
j([d, m, c], ([
|
|
4714
|
-
(
|
|
4716
|
+
j([d, m, c], ([B, q, se]) => {
|
|
4717
|
+
(B || q || se) && X();
|
|
4715
4718
|
});
|
|
4716
|
-
const l = A(!0), v = A([]), k = A(0),
|
|
4717
|
-
function D(
|
|
4719
|
+
const l = A(!0), v = A([]), k = A(0), _ = A({}), h = A({}), g = A(null), E = A(null), p = A({}), S = A(parseInt(e.query.pageSize) || 30), y = A(parseInt(e.query.page) || 1), F = (Pt = s.hasMany) == null ? void 0 : Pt.tableContentHeight;
|
|
4720
|
+
function D(B) {
|
|
4718
4721
|
let q = null;
|
|
4719
|
-
if (
|
|
4722
|
+
if (B.order === "ascending" ? q = "ASC" : B.order === "descending" && (q = "DESC"), p.value.sorters) {
|
|
4720
4723
|
let se = [];
|
|
4721
|
-
p.value.sorters.some((ue) => ue.field ===
|
|
4722
|
-
ue.field ===
|
|
4724
|
+
p.value.sorters.some((ue) => ue.field === B.prop) ? p.value.sorters.forEach((ue) => {
|
|
4725
|
+
ue.field === B.prop && (ue.order = q, ue.name || se.push(ue)), ue.name && se.push(ue);
|
|
4723
4726
|
}) : se = [
|
|
4724
4727
|
...p.value.sorters,
|
|
4725
|
-
{ field:
|
|
4728
|
+
{ field: B.prop, order: q }
|
|
4726
4729
|
], p.value.sorters = se;
|
|
4727
4730
|
} else
|
|
4728
|
-
p.value.sorters = [{ field:
|
|
4731
|
+
p.value.sorters = [{ field: B.prop, order: q }];
|
|
4729
4732
|
X();
|
|
4730
4733
|
}
|
|
4731
4734
|
function Q() {
|
|
4732
4735
|
h.value = s.settings.operations(n);
|
|
4733
4736
|
}
|
|
4734
|
-
function X(
|
|
4737
|
+
function X(B) {
|
|
4735
4738
|
l.value = !0;
|
|
4736
4739
|
const q = {
|
|
4737
4740
|
...p.value,
|
|
4738
4741
|
...n,
|
|
4739
4742
|
...s.query,
|
|
4740
|
-
page:
|
|
4743
|
+
page: B == "again" ? y.value - 1 : y.value,
|
|
4741
4744
|
size: S.value
|
|
4742
4745
|
};
|
|
4743
4746
|
s.settings.rest.getList(q).then((se) => {
|
|
4744
|
-
|
|
4747
|
+
_.value.data = [], v.value = se.data.rows, k.value = se.data.count, l.value = !1, k.value && v.value.length == 0 && X("again");
|
|
4745
4748
|
});
|
|
4746
4749
|
}
|
|
4747
|
-
function U(
|
|
4748
|
-
y.value =
|
|
4750
|
+
function U(B) {
|
|
4751
|
+
y.value = B.page, S.value = B.size, X();
|
|
4749
4752
|
}
|
|
4750
|
-
function ie(
|
|
4751
|
-
const q = { id:
|
|
4753
|
+
function ie(B) {
|
|
4754
|
+
const q = { id: B.id, enable: !B.enable };
|
|
4752
4755
|
s.settings.rest.enable(q).then(() => {
|
|
4753
4756
|
X();
|
|
4754
4757
|
});
|
|
4755
4758
|
}
|
|
4756
|
-
function Xn(
|
|
4757
|
-
if (
|
|
4758
|
-
const q =
|
|
4759
|
+
function Xn(B) {
|
|
4760
|
+
if (B.enable) {
|
|
4761
|
+
const q = B.label === "上架" ? "下架" : "停用";
|
|
4759
4762
|
ElMessageBox.confirm(`确定要${q}该条数据吗?`, "提示", {
|
|
4760
4763
|
confirmButtonText: "确定",
|
|
4761
4764
|
cancelButtonText: "取消",
|
|
4762
4765
|
type: "warning"
|
|
4763
4766
|
}).then(() => {
|
|
4764
|
-
ie(
|
|
4767
|
+
ie(B);
|
|
4765
4768
|
}).catch(() => {
|
|
4766
4769
|
});
|
|
4767
4770
|
} else
|
|
4768
|
-
ie(
|
|
4771
|
+
ie(B);
|
|
4769
4772
|
}
|
|
4770
|
-
function Zn(
|
|
4771
|
-
|
|
4773
|
+
function Zn(B) {
|
|
4774
|
+
_.value = B;
|
|
4772
4775
|
}
|
|
4773
4776
|
const At = A(0), Rt = A(0);
|
|
4774
|
-
ln(
|
|
4777
|
+
ln(g, (B) => {
|
|
4775
4778
|
var q;
|
|
4776
|
-
At.value = ((q =
|
|
4777
|
-
}), ln(E, (
|
|
4779
|
+
At.value = ((q = B[0]) == null ? void 0 : q.contentRect.height) || 0;
|
|
4780
|
+
}), ln(E, (B) => {
|
|
4778
4781
|
var q;
|
|
4779
|
-
Rt.value = ((q =
|
|
4782
|
+
Rt.value = ((q = B[0]) == null ? void 0 : q.contentRect.height) || 0;
|
|
4780
4783
|
});
|
|
4781
|
-
const es =
|
|
4782
|
-
return Q(), (
|
|
4784
|
+
const es = I(() => F && k.value > 0 ? `${F - 14}px` : `calc(100% - ${At.value + Rt.value + 14}px)`);
|
|
4785
|
+
return Q(), (B, q) => (u(), x("div", {
|
|
4783
4786
|
key: s.settings.code,
|
|
4784
|
-
style: { height: "100%" }
|
|
4787
|
+
style: { height: "100%" },
|
|
4788
|
+
class: "aa"
|
|
4785
4789
|
}, [
|
|
4786
|
-
|
|
4790
|
+
C("div", {
|
|
4787
4791
|
ref_key: "pageHeader",
|
|
4788
|
-
ref:
|
|
4792
|
+
ref: g,
|
|
4793
|
+
class: "header-wrap"
|
|
4789
4794
|
}, [
|
|
4790
4795
|
O(Ir, {
|
|
4791
4796
|
settings: s.settings,
|
|
4792
4797
|
"table-name": f(a)
|
|
4793
4798
|
}, {
|
|
4794
4799
|
operations: b(() => [
|
|
4795
|
-
O(
|
|
4800
|
+
O(ci, {
|
|
4796
4801
|
settings: s.settings,
|
|
4797
|
-
"table-data-select":
|
|
4802
|
+
"table-data-select": _.value,
|
|
4798
4803
|
query: f(n),
|
|
4799
4804
|
"filter-form": p.value
|
|
4800
4805
|
}, null, 8, ["settings", "table-data-select", "query", "filter-form"]),
|
|
4801
|
-
O(
|
|
4806
|
+
O(ui, {
|
|
4802
4807
|
settings: s.settings,
|
|
4803
4808
|
operations: h.value
|
|
4804
4809
|
}, null, 8, ["settings", "operations"])
|
|
@@ -4806,7 +4811,7 @@ const Ci = {
|
|
|
4806
4811
|
_: 1
|
|
4807
4812
|
}, 8, ["settings", "table-name"])
|
|
4808
4813
|
], 512),
|
|
4809
|
-
|
|
4814
|
+
ye((u(), $(li, {
|
|
4810
4815
|
class: "data-table-box",
|
|
4811
4816
|
data: v.value,
|
|
4812
4817
|
operations: h.value,
|
|
@@ -4829,14 +4834,14 @@ const Ci = {
|
|
|
4829
4834
|
key: "0"
|
|
4830
4835
|
} : void 0
|
|
4831
4836
|
]), 1032, ["data", "operations", "settings", "actions-width"])), [
|
|
4832
|
-
[f(
|
|
4837
|
+
[f(ve), l.value]
|
|
4833
4838
|
]),
|
|
4834
4839
|
s.settings.showPagination ? (u(), x("div", {
|
|
4835
4840
|
key: 0,
|
|
4836
4841
|
ref_key: "pagination",
|
|
4837
4842
|
ref: E
|
|
4838
4843
|
}, [
|
|
4839
|
-
O(
|
|
4844
|
+
O(fi, {
|
|
4840
4845
|
page: y.value,
|
|
4841
4846
|
size: S.value,
|
|
4842
4847
|
total: k.value,
|
|
@@ -4845,9 +4850,9 @@ const Ci = {
|
|
|
4845
4850
|
], 512)) : T("", !0)
|
|
4846
4851
|
]));
|
|
4847
4852
|
}
|
|
4848
|
-
}, Gn = /* @__PURE__ */ V(Ci, [["__scopeId", "data-v-
|
|
4853
|
+
}, Gn = /* @__PURE__ */ V(Ci, [["__scopeId", "data-v-1a269129"]]);
|
|
4849
4854
|
/*! Element Plus v2.11.2 */
|
|
4850
|
-
var
|
|
4855
|
+
var Di = {
|
|
4851
4856
|
name: "zh-cn",
|
|
4852
4857
|
el: {
|
|
4853
4858
|
breadcrumb: {
|
|
@@ -5026,7 +5031,7 @@ var Fi = {
|
|
|
5026
5031
|
}
|
|
5027
5032
|
}
|
|
5028
5033
|
};
|
|
5029
|
-
const
|
|
5034
|
+
const Ai = {
|
|
5030
5035
|
__name: "TooltipText",
|
|
5031
5036
|
props: {
|
|
5032
5037
|
content: {
|
|
@@ -5048,21 +5053,21 @@ const Di = {
|
|
|
5048
5053
|
}
|
|
5049
5054
|
},
|
|
5050
5055
|
setup(t) {
|
|
5051
|
-
const e = t, n =
|
|
5056
|
+
const e = t, n = I(() => e.content ? e.content.toString() : "");
|
|
5052
5057
|
return (s, o) => (u(), x("div", null, [
|
|
5053
|
-
n.value.length > e.tipShowLength ? (u(), $(f(
|
|
5058
|
+
n.value.length > e.tipShowLength ? (u(), $(f(gn), {
|
|
5054
5059
|
key: 0,
|
|
5055
5060
|
content: n.value,
|
|
5056
5061
|
effect: "light"
|
|
5057
5062
|
}, {
|
|
5058
5063
|
default: b(() => [
|
|
5059
5064
|
O(f(ut), {
|
|
5060
|
-
class:
|
|
5065
|
+
class: me(e.className),
|
|
5061
5066
|
type: e.textType,
|
|
5062
5067
|
"line-clamp": e.lineClamp
|
|
5063
5068
|
}, {
|
|
5064
5069
|
default: b(() => [
|
|
5065
|
-
|
|
5070
|
+
M(P(n.value), 1)
|
|
5066
5071
|
]),
|
|
5067
5072
|
_: 1
|
|
5068
5073
|
}, 8, ["class", "type", "line-clamp"])
|
|
@@ -5071,16 +5076,16 @@ const Di = {
|
|
|
5071
5076
|
}, 8, ["content"])) : (u(), $(f(ut), {
|
|
5072
5077
|
key: 1,
|
|
5073
5078
|
type: e.textType,
|
|
5074
|
-
class:
|
|
5079
|
+
class: me(e.className)
|
|
5075
5080
|
}, {
|
|
5076
5081
|
default: b(() => [
|
|
5077
|
-
|
|
5082
|
+
M(P(n.value), 1)
|
|
5078
5083
|
]),
|
|
5079
5084
|
_: 1
|
|
5080
5085
|
}, 8, ["type", "class"]))
|
|
5081
5086
|
]));
|
|
5082
5087
|
}
|
|
5083
|
-
},
|
|
5088
|
+
}, Ri = { class: "header-box" }, Ti = { class: "header-box-left" }, Pi = { class: "page-title" }, Li = { class: "tabs-container" }, Bi = { class: "user-profile" }, ji = {
|
|
5084
5089
|
__name: "HeaderMenu",
|
|
5085
5090
|
props: {
|
|
5086
5091
|
config: {
|
|
@@ -5088,64 +5093,64 @@ const Di = {
|
|
|
5088
5093
|
}
|
|
5089
5094
|
},
|
|
5090
5095
|
setup(t) {
|
|
5091
|
-
const e =
|
|
5096
|
+
const e = be(), n = z(), s = Ct(), o = A("首页"), r = t, a = n.fullPath.split("/")[1], i = k();
|
|
5092
5097
|
s.setupRootPath("首页", `/${a}/home`);
|
|
5093
|
-
function d(
|
|
5098
|
+
function d(_) {
|
|
5094
5099
|
var S, y;
|
|
5095
|
-
const h =
|
|
5096
|
-
let E = (S =
|
|
5097
|
-
if (h &&
|
|
5098
|
-
E = kt()[h][
|
|
5099
|
-
const
|
|
5100
|
-
|
|
5100
|
+
const h = _.meta.side, g = _.params.domain;
|
|
5101
|
+
let E = (S = _.meta) == null ? void 0 : S.title, p = (y = _.meta) == null ? void 0 : y.code;
|
|
5102
|
+
if (h && g) {
|
|
5103
|
+
E = kt()[h][_.params.domain].name, p = _.params.domain;
|
|
5104
|
+
const F = _.params.id;
|
|
5105
|
+
F && F != "detail" && (E = `${E} - ${_.params.id}`, p = `${_.params.domain}-${_.params.id}`);
|
|
5101
5106
|
} else {
|
|
5102
|
-
const
|
|
5103
|
-
|
|
5107
|
+
const F = i.find((D) => D.route === _.path);
|
|
5108
|
+
F && (E = F.title, p = F.route);
|
|
5104
5109
|
}
|
|
5105
|
-
E && p && (s.push(E, p,
|
|
5110
|
+
E && p && (s.push(E, p, _.fullPath), o.value = p);
|
|
5106
5111
|
}
|
|
5107
|
-
function m(
|
|
5108
|
-
const h = s.history.find((
|
|
5112
|
+
function m(_) {
|
|
5113
|
+
const h = s.history.find((g) => g.code == _.props.name);
|
|
5109
5114
|
e.push(h.path);
|
|
5110
5115
|
}
|
|
5111
|
-
function c(
|
|
5112
|
-
if (s.remove(
|
|
5116
|
+
function c(_) {
|
|
5117
|
+
if (s.remove(_), _ == o.value) {
|
|
5113
5118
|
const h = s.getLast();
|
|
5114
5119
|
o.value = h.title, e.push(h.path);
|
|
5115
5120
|
}
|
|
5116
5121
|
}
|
|
5117
|
-
const l = (
|
|
5118
|
-
const
|
|
5119
|
-
return
|
|
5122
|
+
const l = (_, h) => {
|
|
5123
|
+
const g = s.history.length;
|
|
5124
|
+
return _ === 0 && h === "self" || _ < 2 && h === "left" || _ === g - 1 && h === "right" || g === 1 && h === "all" ? !1 : !(g < 2 && h === "other");
|
|
5120
5125
|
};
|
|
5121
|
-
function v(
|
|
5122
|
-
const
|
|
5126
|
+
function v(_, h) {
|
|
5127
|
+
const g = [], E = s.history;
|
|
5123
5128
|
switch (h) {
|
|
5124
5129
|
case "self":
|
|
5125
|
-
|
|
5130
|
+
g.push(E[_].code);
|
|
5126
5131
|
break;
|
|
5127
5132
|
case "left":
|
|
5128
|
-
for (let p = 0; p <
|
|
5129
|
-
p !== 0 &&
|
|
5133
|
+
for (let p = 0; p < _; p++)
|
|
5134
|
+
p !== 0 && g.push(E[p].code);
|
|
5130
5135
|
break;
|
|
5131
5136
|
case "right":
|
|
5132
|
-
for (let p =
|
|
5133
|
-
|
|
5137
|
+
for (let p = _ + 1; p < E.length; p++)
|
|
5138
|
+
g.push(E[p].code);
|
|
5134
5139
|
break;
|
|
5135
5140
|
case "all":
|
|
5136
5141
|
for (let p = 0; p < E.length; p++)
|
|
5137
|
-
p !== 0 &&
|
|
5142
|
+
p !== 0 && g.push(E[p].code);
|
|
5138
5143
|
break;
|
|
5139
5144
|
case "other":
|
|
5140
5145
|
for (let p = 1; p < E.length; p++)
|
|
5141
|
-
p !==
|
|
5146
|
+
p !== _ && g.push(E[p].code);
|
|
5142
5147
|
break;
|
|
5143
5148
|
}
|
|
5144
|
-
for (let p = 0; p <
|
|
5145
|
-
c(
|
|
5149
|
+
for (let p = 0; p < g.length; p++)
|
|
5150
|
+
c(g[p]);
|
|
5146
5151
|
}
|
|
5147
5152
|
function k() {
|
|
5148
|
-
return r.config.sideMenus[a].map((
|
|
5153
|
+
return r.config.sideMenus[a].map((_) => _.children ? _.children : _).flat();
|
|
5149
5154
|
}
|
|
5150
5155
|
return j(
|
|
5151
5156
|
() => e.currentRoute.value,
|
|
@@ -5153,31 +5158,31 @@ const Di = {
|
|
|
5153
5158
|
d(n);
|
|
5154
5159
|
},
|
|
5155
5160
|
{ immediate: !0 }
|
|
5156
|
-
), (
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
O(f(
|
|
5161
|
+
), (_, h) => (u(), x("div", Ri, [
|
|
5162
|
+
C("div", null, [
|
|
5163
|
+
C("div", Ti, [
|
|
5164
|
+
O(f(_n), {
|
|
5160
5165
|
class: "header-img",
|
|
5161
5166
|
src: r.config.logo,
|
|
5162
5167
|
fit: "scale-down"
|
|
5163
5168
|
}, null, 8, ["src"]),
|
|
5164
|
-
|
|
5169
|
+
C("div", Pi, P(r.config.name), 1)
|
|
5165
5170
|
])
|
|
5166
5171
|
]),
|
|
5167
|
-
|
|
5172
|
+
C("div", Li, [
|
|
5168
5173
|
O(f(yn), {
|
|
5169
5174
|
modelValue: o.value,
|
|
5170
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
5175
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => o.value = g),
|
|
5171
5176
|
type: "card",
|
|
5172
5177
|
class: "tabs",
|
|
5173
5178
|
onTabClick: m,
|
|
5174
5179
|
onTabRemove: c
|
|
5175
5180
|
}, {
|
|
5176
5181
|
default: b(() => [
|
|
5177
|
-
(u(!0), x(
|
|
5178
|
-
closable:
|
|
5179
|
-
label:
|
|
5180
|
-
name:
|
|
5182
|
+
(u(!0), x(L, null, H(f(s).history, (g, E) => (u(), $(f(vn), {
|
|
5183
|
+
closable: g.title != "首页",
|
|
5184
|
+
label: g.title,
|
|
5185
|
+
name: g.code
|
|
5181
5186
|
}, {
|
|
5182
5187
|
label: b(() => [
|
|
5183
5188
|
O(f(it), { trigger: "contextmenu" }, {
|
|
@@ -5195,7 +5200,7 @@ const Di = {
|
|
|
5195
5200
|
]),
|
|
5196
5201
|
_: 1
|
|
5197
5202
|
}),
|
|
5198
|
-
|
|
5203
|
+
M(" 关闭当前标签页 ")
|
|
5199
5204
|
]),
|
|
5200
5205
|
_: 2
|
|
5201
5206
|
}, 1032, ["onClick"])) : T("", !0),
|
|
@@ -5210,7 +5215,7 @@ const Di = {
|
|
|
5210
5215
|
]),
|
|
5211
5216
|
_: 1
|
|
5212
5217
|
}),
|
|
5213
|
-
|
|
5218
|
+
M(" 关闭左侧标签页 ")
|
|
5214
5219
|
]),
|
|
5215
5220
|
_: 2
|
|
5216
5221
|
}, 1032, ["onClick"])) : T("", !0),
|
|
@@ -5225,7 +5230,7 @@ const Di = {
|
|
|
5225
5230
|
]),
|
|
5226
5231
|
_: 1
|
|
5227
5232
|
}),
|
|
5228
|
-
|
|
5233
|
+
M(" 关闭右侧标签页 ")
|
|
5229
5234
|
]),
|
|
5230
5235
|
_: 2
|
|
5231
5236
|
}, 1032, ["onClick"])) : T("", !0),
|
|
@@ -5240,7 +5245,7 @@ const Di = {
|
|
|
5240
5245
|
]),
|
|
5241
5246
|
_: 1
|
|
5242
5247
|
}),
|
|
5243
|
-
|
|
5248
|
+
M(" 关闭全部标签页 ")
|
|
5244
5249
|
]),
|
|
5245
5250
|
_: 2
|
|
5246
5251
|
}, 1032, ["onClick"])) : T("", !0),
|
|
@@ -5255,7 +5260,7 @@ const Di = {
|
|
|
5255
5260
|
]),
|
|
5256
5261
|
_: 1
|
|
5257
5262
|
}),
|
|
5258
|
-
|
|
5263
|
+
M(" 关闭其他标签页 ")
|
|
5259
5264
|
]),
|
|
5260
5265
|
_: 2
|
|
5261
5266
|
}, 1032, ["onClick"])) : T("", !0)
|
|
@@ -5264,8 +5269,8 @@ const Di = {
|
|
|
5264
5269
|
}, 1024)
|
|
5265
5270
|
]),
|
|
5266
5271
|
default: b(() => [
|
|
5267
|
-
O(
|
|
5268
|
-
content:
|
|
5272
|
+
O(Ai, {
|
|
5273
|
+
content: g.title,
|
|
5269
5274
|
"line-clamp": 1,
|
|
5270
5275
|
"class-name": "tab-pane-label",
|
|
5271
5276
|
"tip-show-length": "6"
|
|
@@ -5279,9 +5284,9 @@ const Di = {
|
|
|
5279
5284
|
]),
|
|
5280
5285
|
_: 1
|
|
5281
5286
|
}, 8, ["modelValue"]),
|
|
5282
|
-
|
|
5287
|
+
C("span", {
|
|
5283
5288
|
class: "back-icon",
|
|
5284
|
-
onClick: h[1] || (h[1] = (
|
|
5289
|
+
onClick: h[1] || (h[1] = (g) => f(e).back())
|
|
5285
5290
|
}, [
|
|
5286
5291
|
O(f(K), null, {
|
|
5287
5292
|
default: b(() => [
|
|
@@ -5291,17 +5296,17 @@ const Di = {
|
|
|
5291
5296
|
})
|
|
5292
5297
|
])
|
|
5293
5298
|
]),
|
|
5294
|
-
|
|
5295
|
-
Y(
|
|
5299
|
+
C("div", Bi, [
|
|
5300
|
+
Y(_.$slots, "user-profile", {}, void 0, !0)
|
|
5296
5301
|
])
|
|
5297
5302
|
]));
|
|
5298
5303
|
}
|
|
5299
|
-
},
|
|
5304
|
+
}, Vi = /* @__PURE__ */ V(ji, [["__scopeId", "data-v-598fe7a8"]]), Mi = (t) => (fn("data-v-9a00f172"), t = t(), mn(), t), Ii = {
|
|
5300
5305
|
key: 2,
|
|
5301
5306
|
class: "dot-wrapper"
|
|
5302
|
-
}, Ni = /* @__PURE__ */
|
|
5307
|
+
}, Ni = /* @__PURE__ */ Mi(() => /* @__PURE__ */ C("span", { class: "dot" }, null, -1)), zi = [
|
|
5303
5308
|
Ni
|
|
5304
|
-
],
|
|
5309
|
+
], Ui = {
|
|
5305
5310
|
__name: "SideBarItem",
|
|
5306
5311
|
props: {
|
|
5307
5312
|
data: { type: Object },
|
|
@@ -5328,10 +5333,10 @@ const Di = {
|
|
|
5328
5333
|
]),
|
|
5329
5334
|
_: 1
|
|
5330
5335
|
})),
|
|
5331
|
-
|
|
5336
|
+
C("span", null, P(t.data.title), 1)
|
|
5332
5337
|
]),
|
|
5333
5338
|
default: b(() => [
|
|
5334
|
-
(u(!0), x(
|
|
5339
|
+
(u(!0), x(L, null, H(t.data.children, (o) => (u(), $(Yn, {
|
|
5335
5340
|
data: o,
|
|
5336
5341
|
"has-parent": !0
|
|
5337
5342
|
}, null, 8, ["data"]))), 256))
|
|
@@ -5349,18 +5354,18 @@ const Di = {
|
|
|
5349
5354
|
(u(), $(G(t.data.icon)))
|
|
5350
5355
|
]),
|
|
5351
5356
|
_: 1
|
|
5352
|
-
})) : e.hasParent ? (u(), x("span", Ii,
|
|
5357
|
+
})) : e.hasParent ? (u(), x("span", Ii, zi)) : (u(), $(f(K), { key: 1 }, {
|
|
5353
5358
|
default: b(() => [
|
|
5354
5359
|
O(f(en))
|
|
5355
5360
|
]),
|
|
5356
5361
|
_: 1
|
|
5357
5362
|
})),
|
|
5358
|
-
|
|
5363
|
+
C("span", null, P(t.data.title), 1)
|
|
5359
5364
|
]),
|
|
5360
5365
|
_: 1
|
|
5361
5366
|
}, 8, ["index", "route"]));
|
|
5362
5367
|
}
|
|
5363
|
-
}, Yn = /* @__PURE__ */ V(
|
|
5368
|
+
}, Yn = /* @__PURE__ */ V(Ui, [["__scopeId", "data-v-9a00f172"]]), Hi = {
|
|
5364
5369
|
__name: "SideBar",
|
|
5365
5370
|
props: {
|
|
5366
5371
|
sideMenus: {
|
|
@@ -5368,7 +5373,7 @@ const Di = {
|
|
|
5368
5373
|
}
|
|
5369
5374
|
},
|
|
5370
5375
|
setup(t) {
|
|
5371
|
-
const e =
|
|
5376
|
+
const e = be(), n = z(), s = A(n.fullPath), o = t, r = n.fullPath.split("/")[1], a = o.sideMenus[r];
|
|
5372
5377
|
return j(
|
|
5373
5378
|
() => e.currentRoute.value,
|
|
5374
5379
|
() => {
|
|
@@ -5388,7 +5393,7 @@ const Di = {
|
|
|
5388
5393
|
"default-active": s.value
|
|
5389
5394
|
}, {
|
|
5390
5395
|
default: b(() => [
|
|
5391
|
-
(u(!0), x(
|
|
5396
|
+
(u(!0), x(L, null, H(f(a), (m) => (u(), $(Yn, { data: m }, null, 8, ["data"]))), 256))
|
|
5392
5397
|
]),
|
|
5393
5398
|
_: 1
|
|
5394
5399
|
}, 8, ["default-active"])
|
|
@@ -5396,7 +5401,7 @@ const Di = {
|
|
|
5396
5401
|
_: 1
|
|
5397
5402
|
}));
|
|
5398
5403
|
}
|
|
5399
|
-
},
|
|
5404
|
+
}, qi = /* @__PURE__ */ V(Hi, [["__scopeId", "data-v-bbb38e99"]]), Wi = {
|
|
5400
5405
|
__name: "BaseLayout",
|
|
5401
5406
|
props: {
|
|
5402
5407
|
config: {
|
|
@@ -5405,16 +5410,16 @@ const Di = {
|
|
|
5405
5410
|
}
|
|
5406
5411
|
},
|
|
5407
5412
|
setup(t) {
|
|
5408
|
-
const e = z(), n = t, s = { ...We(), ...n.config }, o =
|
|
5413
|
+
const e = z(), n = t, s = { ...We(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
|
|
5409
5414
|
return (r, a) => {
|
|
5410
5415
|
const i = Qe("router-view");
|
|
5411
|
-
return u(), $(f(Es), { locale: f(
|
|
5416
|
+
return u(), $(f(Es), { locale: f(Di) }, {
|
|
5412
5417
|
default: b(() => [
|
|
5413
|
-
O(f(
|
|
5418
|
+
O(f(It), { style: { height: "100%" } }, {
|
|
5414
5419
|
default: b(() => [
|
|
5415
5420
|
O(f($s), { class: "page-header" }, {
|
|
5416
5421
|
default: b(() => [
|
|
5417
|
-
O(
|
|
5422
|
+
O(Vi, { config: s }, {
|
|
5418
5423
|
"user-profile": b(() => [
|
|
5419
5424
|
Y(r.$slots, "user-profile", {}, void 0, !0)
|
|
5420
5425
|
]),
|
|
@@ -5423,36 +5428,41 @@ const Di = {
|
|
|
5423
5428
|
]),
|
|
5424
5429
|
_: 3
|
|
5425
5430
|
}),
|
|
5426
|
-
O(f(
|
|
5427
|
-
default: b(() =>
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5431
|
+
O(f(It), { class: "page-content-container" }, {
|
|
5432
|
+
default: b(() => {
|
|
5433
|
+
var d;
|
|
5434
|
+
return [
|
|
5435
|
+
O(f(Ss), { class: "page-content-aside" }, {
|
|
5436
|
+
default: b(() => [
|
|
5437
|
+
O(qi, {
|
|
5438
|
+
"side-menus": s.sideMenus
|
|
5439
|
+
}, null, 8, ["side-menus"])
|
|
5440
|
+
]),
|
|
5441
|
+
_: 1
|
|
5442
|
+
}),
|
|
5443
|
+
O(f(xs), {
|
|
5444
|
+
class: me(["page-content-main", (d = f(e).fullPath) != null && d.includes("/list") ? "list-main" : ""])
|
|
5445
|
+
}, {
|
|
5446
|
+
default: b(() => [
|
|
5447
|
+
f(e).params.domain ? (u(), $(i, { key: 0 }, {
|
|
5448
|
+
default: b(({ Component: m, route: c }) => [
|
|
5449
|
+
O(is, {
|
|
5450
|
+
name: "KxtFade",
|
|
5451
|
+
mode: "out-in"
|
|
5452
|
+
}, {
|
|
5453
|
+
default: b(() => [
|
|
5454
|
+
(u(), $(G(m), { key: o.value }))
|
|
5455
|
+
]),
|
|
5456
|
+
_: 2
|
|
5457
|
+
}, 1024)
|
|
5458
|
+
]),
|
|
5459
|
+
_: 1
|
|
5460
|
+
})) : (u(), $(i, { key: o.value }))
|
|
5461
|
+
]),
|
|
5462
|
+
_: 1
|
|
5463
|
+
}, 8, ["class"])
|
|
5464
|
+
];
|
|
5465
|
+
}),
|
|
5456
5466
|
_: 1
|
|
5457
5467
|
})
|
|
5458
5468
|
]),
|
|
@@ -5463,10 +5473,10 @@ const Di = {
|
|
|
5463
5473
|
}, 8, ["locale"]);
|
|
5464
5474
|
};
|
|
5465
5475
|
}
|
|
5466
|
-
},
|
|
5476
|
+
}, ql = /* @__PURE__ */ V(Wi, [["__scopeId", "data-v-8a72885c"]]), Qi = {
|
|
5467
5477
|
key: 1,
|
|
5468
5478
|
class: "loading-wrapper"
|
|
5469
|
-
},
|
|
5479
|
+
}, Ji = {
|
|
5470
5480
|
__name: "List",
|
|
5471
5481
|
props: {
|
|
5472
5482
|
domain: {
|
|
@@ -5480,14 +5490,14 @@ const Di = {
|
|
|
5480
5490
|
}), (a, i) => r.value ? (u(), $(Gn, {
|
|
5481
5491
|
key: 0,
|
|
5482
5492
|
settings: r.value
|
|
5483
|
-
}, null, 8, ["settings"])) :
|
|
5484
|
-
[f(
|
|
5493
|
+
}, null, 8, ["settings"])) : ye((u(), x("div", Qi, null, 512)), [
|
|
5494
|
+
[f(ve), !0]
|
|
5485
5495
|
]);
|
|
5486
5496
|
}
|
|
5487
|
-
},
|
|
5497
|
+
}, Gi = /* @__PURE__ */ V(Ji, [["__scopeId", "data-v-2d9c8e98"]]), Yi = { key: 0 }, Ki = { class: "key" }, Xi = { class: "value" }, Zi = { style: { color: "#111", "font-size": "14px", "font-weight": "500" } }, el = {
|
|
5488
5498
|
key: 1,
|
|
5489
5499
|
class: "loading-wrapper"
|
|
5490
|
-
},
|
|
5500
|
+
}, tl = {
|
|
5491
5501
|
__name: "DomainDescription",
|
|
5492
5502
|
props: {
|
|
5493
5503
|
settings: {
|
|
@@ -5512,23 +5522,23 @@ const Di = {
|
|
|
5512
5522
|
"tree-select"
|
|
5513
5523
|
// "radio-group",
|
|
5514
5524
|
// "input-number",
|
|
5515
|
-
], c =
|
|
5525
|
+
], c = I(() => s.settings.fields.filter((g) => g.showInDetail(d.value, {
|
|
5516
5526
|
...r,
|
|
5517
5527
|
...s.query
|
|
5518
|
-
}))), l =
|
|
5528
|
+
}))), l = I(() => c.value.find((g) => g.code === s.settings.coverField)), v = I(() => c.value.filter((g) => !m.includes(g.type) && !g.extendDetail)), k = I(() => {
|
|
5519
5529
|
var E;
|
|
5520
|
-
const
|
|
5521
|
-
return c.value.filter((p) => m.includes(p.type) || p.extendDetail).filter((p) => p.code !==
|
|
5522
|
-
}),
|
|
5530
|
+
const g = (E = l.value) == null ? void 0 : E.code;
|
|
5531
|
+
return c.value.filter((p) => m.includes(p.type) || p.extendDetail).filter((p) => p.code !== g);
|
|
5532
|
+
}), _ = I({
|
|
5523
5533
|
get() {
|
|
5524
|
-
return k.value.map((
|
|
5534
|
+
return k.value.map((g) => g.code);
|
|
5525
5535
|
},
|
|
5526
|
-
set(
|
|
5536
|
+
set(g) {
|
|
5527
5537
|
}
|
|
5528
5538
|
});
|
|
5529
5539
|
function h() {
|
|
5530
|
-
s.settings.rest.getOne(s.query).then((
|
|
5531
|
-
|
|
5540
|
+
s.settings.rest.getOne(s.query).then((g) => {
|
|
5541
|
+
g.data.isDeleted = !!g.data.deletedAt, d.value = g.data, n("done", g.data);
|
|
5532
5542
|
});
|
|
5533
5543
|
}
|
|
5534
5544
|
return j(
|
|
@@ -5537,9 +5547,9 @@ const Di = {
|
|
|
5537
5547
|
h();
|
|
5538
5548
|
},
|
|
5539
5549
|
{ immediate: !0 }
|
|
5540
|
-
), (
|
|
5541
|
-
d.value ? (u(), x("div",
|
|
5542
|
-
O(f(
|
|
5550
|
+
), (g, E) => (u(), x("div", null, [
|
|
5551
|
+
d.value ? (u(), x("div", Yi, [
|
|
5552
|
+
O(f(he), { gutter: 20 }, {
|
|
5543
5553
|
default: b(() => [
|
|
5544
5554
|
l.value ? (u(), $(f(pe), {
|
|
5545
5555
|
key: 0,
|
|
@@ -5558,18 +5568,18 @@ const Di = {
|
|
|
5558
5568
|
span: l.value ? 18 : 24
|
|
5559
5569
|
}, {
|
|
5560
5570
|
default: b(() => [
|
|
5561
|
-
O(f(
|
|
5571
|
+
O(f(he), { gutter: 20 }, {
|
|
5562
5572
|
default: b(() => [
|
|
5563
|
-
(u(!0), x(
|
|
5573
|
+
(u(!0), x(L, null, H(v.value, (p) => (u(), $(f(pe), {
|
|
5564
5574
|
span: p.span,
|
|
5565
5575
|
class: "mono-data",
|
|
5566
5576
|
style: { "margin-bottom": "20px" }
|
|
5567
5577
|
}, {
|
|
5568
5578
|
default: b(() => [
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
p.code === "id" ? (u(), x(
|
|
5572
|
-
|
|
5579
|
+
C("div", Ki, P(p.label), 1),
|
|
5580
|
+
C("div", Xi, [
|
|
5581
|
+
p.code === "id" ? (u(), x(L, { key: 0 }, [
|
|
5582
|
+
M(P(d.value.id), 1)
|
|
5573
5583
|
], 64)) : (u(), $(G(p.display), {
|
|
5574
5584
|
key: 1,
|
|
5575
5585
|
field: p,
|
|
@@ -5591,16 +5601,19 @@ const Di = {
|
|
|
5591
5601
|
}),
|
|
5592
5602
|
k.value.length > 0 ? (u(), $(f(bn), {
|
|
5593
5603
|
key: 0,
|
|
5594
|
-
modelValue:
|
|
5595
|
-
"onUpdate:modelValue": E[0] || (E[0] = (p) =>
|
|
5604
|
+
modelValue: _.value,
|
|
5605
|
+
"onUpdate:modelValue": E[0] || (E[0] = (p) => _.value = p),
|
|
5596
5606
|
class: "extend-fields"
|
|
5597
5607
|
}, {
|
|
5598
5608
|
default: b(() => [
|
|
5599
|
-
(u(!0), x(
|
|
5600
|
-
title:
|
|
5609
|
+
(u(!0), x(L, null, H(k.value, (p) => (u(), $(f(wn), {
|
|
5610
|
+
title: null,
|
|
5601
5611
|
name: p.code,
|
|
5602
5612
|
class: "mono-data"
|
|
5603
5613
|
}, {
|
|
5614
|
+
title: b(() => [
|
|
5615
|
+
C("span", Zi, P(p.label), 1)
|
|
5616
|
+
]),
|
|
5604
5617
|
default: b(() => [
|
|
5605
5618
|
(u(), $(G(p.display), {
|
|
5606
5619
|
field: p,
|
|
@@ -5609,19 +5622,19 @@ const Di = {
|
|
|
5609
5622
|
}, null, 8, ["field", "row"]))
|
|
5610
5623
|
]),
|
|
5611
5624
|
_: 2
|
|
5612
|
-
}, 1032, ["
|
|
5625
|
+
}, 1032, ["name"]))), 256))
|
|
5613
5626
|
]),
|
|
5614
5627
|
_: 1
|
|
5615
5628
|
}, 8, ["modelValue"])) : T("", !0)
|
|
5616
|
-
])) :
|
|
5617
|
-
[f(
|
|
5629
|
+
])) : ye((u(), x("div", el, null, 512)), [
|
|
5630
|
+
[f(ve), !0]
|
|
5618
5631
|
])
|
|
5619
5632
|
]));
|
|
5620
5633
|
}
|
|
5621
|
-
}, Kn = /* @__PURE__ */ V(
|
|
5634
|
+
}, Kn = /* @__PURE__ */ V(tl, [["__scopeId", "data-v-b0b39e69"]]), nl = { key: 0 }, sl = { class: "group-item-head" }, ol = { class: "key" }, al = { class: "value" }, rl = {
|
|
5622
5635
|
key: 1,
|
|
5623
5636
|
class: "loading-wrapper"
|
|
5624
|
-
},
|
|
5637
|
+
}, il = {
|
|
5625
5638
|
__name: "DomainDescriptionGroup",
|
|
5626
5639
|
props: {
|
|
5627
5640
|
settings: {
|
|
@@ -5646,13 +5659,13 @@ const Di = {
|
|
|
5646
5659
|
"text",
|
|
5647
5660
|
"json",
|
|
5648
5661
|
"tree-select"
|
|
5649
|
-
], m =
|
|
5662
|
+
], m = I(() => {
|
|
5650
5663
|
var l, v;
|
|
5651
5664
|
return ((v = (l = s.settings) == null ? void 0 : l.detailGroupFields) == null ? void 0 : v.map((k) => {
|
|
5652
|
-
var h,
|
|
5653
|
-
const
|
|
5665
|
+
var h, g, E, p;
|
|
5666
|
+
const _ = ((g = (h = k == null ? void 0 : k.childrenFields) == null ? void 0 : h.filter(
|
|
5654
5667
|
(S) => d.includes(S.type) || S.extendDetail
|
|
5655
|
-
)) == null ? void 0 :
|
|
5668
|
+
)) == null ? void 0 : g.filter((S) => S.code !== (k == null ? void 0 : k.coverField))) || [];
|
|
5656
5669
|
return {
|
|
5657
5670
|
...k,
|
|
5658
5671
|
coverField: (E = k == null ? void 0 : k.childrenFields) == null ? void 0 : E.find(
|
|
@@ -5661,8 +5674,8 @@ const Di = {
|
|
|
5661
5674
|
detailFields: (p = k == null ? void 0 : k.childrenFields) == null ? void 0 : p.filter(
|
|
5662
5675
|
(S) => !d.includes(S.type) && !S.extendDetail
|
|
5663
5676
|
),
|
|
5664
|
-
extendFields:
|
|
5665
|
-
activeFields: (
|
|
5677
|
+
extendFields: _,
|
|
5678
|
+
activeFields: (_ == null ? void 0 : _.map((S) => S.code)) || []
|
|
5666
5679
|
};
|
|
5667
5680
|
})) || [];
|
|
5668
5681
|
});
|
|
@@ -5678,14 +5691,14 @@ const Di = {
|
|
|
5678
5691
|
},
|
|
5679
5692
|
{ immediate: !0 }
|
|
5680
5693
|
), (l, v) => (u(), x("div", null, [
|
|
5681
|
-
i.value ? (u(), x("div",
|
|
5682
|
-
(u(!0), x(
|
|
5694
|
+
i.value ? (u(), x("div", nl, [
|
|
5695
|
+
(u(!0), x(L, null, H(m.value, (k) => (u(), $(f(bt), {
|
|
5683
5696
|
class: "group-item",
|
|
5684
5697
|
shadow: "hover",
|
|
5685
5698
|
style: Ve(`background: ${k.background || "#fff"}`)
|
|
5686
5699
|
}, Se({
|
|
5687
5700
|
default: b(() => [
|
|
5688
|
-
O(f(
|
|
5701
|
+
O(f(he), { gutter: 20 }, {
|
|
5689
5702
|
default: b(() => [
|
|
5690
5703
|
k.coverField ? (u(), $(f(pe), {
|
|
5691
5704
|
key: 0,
|
|
@@ -5704,21 +5717,21 @@ const Di = {
|
|
|
5704
5717
|
span: k.coverField ? 18 : 24
|
|
5705
5718
|
}, {
|
|
5706
5719
|
default: b(() => [
|
|
5707
|
-
O(f(
|
|
5720
|
+
O(f(he), { gutter: 20 }, {
|
|
5708
5721
|
default: b(() => [
|
|
5709
|
-
(u(!0), x(
|
|
5710
|
-
span:
|
|
5722
|
+
(u(!0), x(L, null, H(k.detailFields, (_) => (u(), $(f(pe), {
|
|
5723
|
+
span: _.span,
|
|
5711
5724
|
class: "mono-data",
|
|
5712
5725
|
style: { "margin-bottom": "20px" }
|
|
5713
5726
|
}, {
|
|
5714
5727
|
default: b(() => [
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
], 64)) : (u(), $(G(
|
|
5728
|
+
C("div", ol, P(_.label), 1),
|
|
5729
|
+
C("div", al, [
|
|
5730
|
+
_.code === "id" ? (u(), x(L, { key: 0 }, [
|
|
5731
|
+
M(P(i.value.id), 1)
|
|
5732
|
+
], 64)) : (u(), $(G(_.display), {
|
|
5720
5733
|
key: 1,
|
|
5721
|
-
field:
|
|
5734
|
+
field: _,
|
|
5722
5735
|
row: i.value,
|
|
5723
5736
|
mode: "description"
|
|
5724
5737
|
}, null, 8, ["field", "row"]))
|
|
@@ -5738,18 +5751,18 @@ const Di = {
|
|
|
5738
5751
|
k && k.extendFields.length > 0 ? (u(), $(f(bn), {
|
|
5739
5752
|
key: 0,
|
|
5740
5753
|
modelValue: k.activeFields,
|
|
5741
|
-
"onUpdate:modelValue": (
|
|
5754
|
+
"onUpdate:modelValue": (_) => k.activeFields = _,
|
|
5742
5755
|
class: "extend-fields"
|
|
5743
5756
|
}, {
|
|
5744
5757
|
default: b(() => [
|
|
5745
|
-
(u(!0), x(
|
|
5746
|
-
title:
|
|
5747
|
-
name:
|
|
5758
|
+
(u(!0), x(L, null, H(k.extendFields, (_) => (u(), $(f(wn), {
|
|
5759
|
+
title: _.label,
|
|
5760
|
+
name: _.code,
|
|
5748
5761
|
class: "mono-data"
|
|
5749
5762
|
}, {
|
|
5750
5763
|
default: b(() => [
|
|
5751
|
-
(u(), $(G(
|
|
5752
|
-
field:
|
|
5764
|
+
(u(), $(G(_.display), {
|
|
5765
|
+
field: _,
|
|
5753
5766
|
row: i.value,
|
|
5754
5767
|
mode: "extend"
|
|
5755
5768
|
}, null, 8, ["field", "row"]))
|
|
@@ -5765,14 +5778,14 @@ const Di = {
|
|
|
5765
5778
|
k.title ? {
|
|
5766
5779
|
name: "header",
|
|
5767
5780
|
fn: b(() => [
|
|
5768
|
-
|
|
5781
|
+
C("div", sl, [
|
|
5769
5782
|
O(f(ut), {
|
|
5770
5783
|
class: "group-title",
|
|
5771
5784
|
tag: "b",
|
|
5772
5785
|
size: "large"
|
|
5773
5786
|
}, {
|
|
5774
5787
|
default: b(() => [
|
|
5775
|
-
|
|
5788
|
+
M(P(k.title), 1)
|
|
5776
5789
|
]),
|
|
5777
5790
|
_: 2
|
|
5778
5791
|
}, 1024)
|
|
@@ -5781,12 +5794,12 @@ const Di = {
|
|
|
5781
5794
|
key: "0"
|
|
5782
5795
|
} : void 0
|
|
5783
5796
|
]), 1032, ["style"]))), 256))
|
|
5784
|
-
])) :
|
|
5785
|
-
[f(
|
|
5797
|
+
])) : ye((u(), x("div", rl, null, 512)), [
|
|
5798
|
+
[f(ve), !0]
|
|
5786
5799
|
])
|
|
5787
5800
|
]));
|
|
5788
5801
|
}
|
|
5789
|
-
},
|
|
5802
|
+
}, ll = /* @__PURE__ */ V(il, [["__scopeId", "data-v-50c9cb06"]]), ul = { class: "data-page-title" }, cl = { class: "title" }, dl = {
|
|
5790
5803
|
__name: "DataDetailHeader",
|
|
5791
5804
|
props: {
|
|
5792
5805
|
data: {
|
|
@@ -5801,7 +5814,7 @@ const Di = {
|
|
|
5801
5814
|
},
|
|
5802
5815
|
emits: ["get-item"],
|
|
5803
5816
|
setup(t, { emit: e }) {
|
|
5804
|
-
|
|
5817
|
+
Ct();
|
|
5805
5818
|
const n = z(), s = J(n), o = t, r = A("加载中..."), a = A({});
|
|
5806
5819
|
function i(d) {
|
|
5807
5820
|
const m = o.settings;
|
|
@@ -5818,10 +5831,10 @@ const Di = {
|
|
|
5818
5831
|
d && (a.value = o.settings.operations(s), i(d));
|
|
5819
5832
|
},
|
|
5820
5833
|
{ immediate: !0 }
|
|
5821
|
-
), (d, m) => (u(), x("div",
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
o.data ? (u(), $(f(
|
|
5834
|
+
), (d, m) => (u(), x("div", ul, [
|
|
5835
|
+
C("div", cl, P(r.value), 1),
|
|
5836
|
+
C("div", null, [
|
|
5837
|
+
o.data ? (u(), $(f(_e), { key: 0 }, {
|
|
5825
5838
|
default: b(() => [
|
|
5826
5839
|
O(Qn, {
|
|
5827
5840
|
row: o.data,
|
|
@@ -5842,7 +5855,7 @@ const Di = {
|
|
|
5842
5855
|
])
|
|
5843
5856
|
]));
|
|
5844
5857
|
}
|
|
5845
|
-
},
|
|
5858
|
+
}, pl = /* @__PURE__ */ V(dl, [["__scopeId", "data-v-f9999537"]]), fl = {
|
|
5846
5859
|
__name: "DetailPageTabs",
|
|
5847
5860
|
props: {
|
|
5848
5861
|
associations: {
|
|
@@ -5853,7 +5866,7 @@ const Di = {
|
|
|
5853
5866
|
}
|
|
5854
5867
|
},
|
|
5855
5868
|
setup(t) {
|
|
5856
|
-
const e =
|
|
5869
|
+
const e = be(), n = z(), s = J(n), o = t, r = A(""), a = te(null);
|
|
5857
5870
|
function i(m) {
|
|
5858
5871
|
r.value = m.props.name, e.push({
|
|
5859
5872
|
name: `${n.meta.side}-association`,
|
|
@@ -5896,7 +5909,7 @@ const Di = {
|
|
|
5896
5909
|
{ immediate: !0 }
|
|
5897
5910
|
), (m, c) => {
|
|
5898
5911
|
const l = Qe("router-view");
|
|
5899
|
-
return u(), x(
|
|
5912
|
+
return u(), x(L, null, [
|
|
5900
5913
|
O(f(yn), {
|
|
5901
5914
|
modelValue: r.value,
|
|
5902
5915
|
"onUpdate:modelValue": c[0] || (c[0] = (v) => r.value = v),
|
|
@@ -5904,7 +5917,7 @@ const Di = {
|
|
|
5904
5917
|
onTabClick: i
|
|
5905
5918
|
}, {
|
|
5906
5919
|
default: b(() => [
|
|
5907
|
-
(u(!0), x(
|
|
5920
|
+
(u(!0), x(L, null, H(o.associations, (v) => (u(), $(f(vn), {
|
|
5908
5921
|
label: v.name,
|
|
5909
5922
|
name: v.domain
|
|
5910
5923
|
}, null, 8, ["label", "name"]))), 256))
|
|
@@ -5918,7 +5931,7 @@ const Di = {
|
|
|
5918
5931
|
], 64);
|
|
5919
5932
|
};
|
|
5920
5933
|
}
|
|
5921
|
-
},
|
|
5934
|
+
}, ml = /* @__PURE__ */ V(fl, [["__scopeId", "data-v-0dc49aad"]]), hl = {
|
|
5922
5935
|
__name: "DetailPageList",
|
|
5923
5936
|
props: {
|
|
5924
5937
|
associations: {
|
|
@@ -5929,18 +5942,18 @@ const Di = {
|
|
|
5929
5942
|
}
|
|
5930
5943
|
},
|
|
5931
5944
|
setup(t) {
|
|
5932
|
-
return (e, n) => (u(!0), x(
|
|
5933
|
-
s.type == "has-many" ? (u(), $(
|
|
5945
|
+
return (e, n) => (u(!0), x(L, null, H(t.associations, (s) => (u(), x("div", null, [
|
|
5946
|
+
s.type == "has-many" ? (u(), $(Gi, {
|
|
5934
5947
|
key: 0,
|
|
5935
5948
|
domain: s.domain
|
|
5936
5949
|
}, null, 8, ["domain"])) : T("", !0),
|
|
5937
|
-
s.type == "has-one" ? (u(), $(
|
|
5950
|
+
s.type == "has-one" ? (u(), $(bl, {
|
|
5938
5951
|
key: 1,
|
|
5939
5952
|
domain: s.domain
|
|
5940
5953
|
}, null, 8, ["domain"])) : T("", !0)
|
|
5941
5954
|
]))), 256));
|
|
5942
5955
|
}
|
|
5943
|
-
},
|
|
5956
|
+
}, _l = {
|
|
5944
5957
|
__name: "DataDetailPage",
|
|
5945
5958
|
props: {
|
|
5946
5959
|
settings: {
|
|
@@ -5951,7 +5964,7 @@ const Di = {
|
|
|
5951
5964
|
}
|
|
5952
5965
|
},
|
|
5953
5966
|
setup(t) {
|
|
5954
|
-
|
|
5967
|
+
be();
|
|
5955
5968
|
const e = z(), n = J(e), s = t, o = A(null);
|
|
5956
5969
|
function r(a) {
|
|
5957
5970
|
o.value = a;
|
|
@@ -5961,12 +5974,12 @@ const Di = {
|
|
|
5961
5974
|
return u(), x("div", {
|
|
5962
5975
|
key: `${f(e).params.domain}-${f(e).params.id}`
|
|
5963
5976
|
}, [
|
|
5964
|
-
O(
|
|
5977
|
+
O(pl, {
|
|
5965
5978
|
data: o.value,
|
|
5966
5979
|
settings: s.settings,
|
|
5967
5980
|
query: { ...f(e).params, ...f(n) }
|
|
5968
5981
|
}, null, 8, ["data", "settings", "query"]),
|
|
5969
|
-
(m = (d = s.settings) == null ? void 0 : d.detailGroupFields) != null && m.length ? (u(), $(
|
|
5982
|
+
(m = (d = s.settings) == null ? void 0 : d.detailGroupFields) != null && m.length ? (u(), $(ll, {
|
|
5970
5983
|
key: 0,
|
|
5971
5984
|
query: { ...f(e).params, ...f(n) },
|
|
5972
5985
|
settings: s.settings,
|
|
@@ -5977,11 +5990,11 @@ const Di = {
|
|
|
5977
5990
|
settings: s.settings,
|
|
5978
5991
|
onDone: r
|
|
5979
5992
|
}, null, 8, ["query", "settings"])),
|
|
5980
|
-
s.settings.detailSubType === "tabs" ? (u(), $(
|
|
5993
|
+
s.settings.detailSubType === "tabs" ? (u(), $(ml, {
|
|
5981
5994
|
key: 2,
|
|
5982
5995
|
associations: t.associations,
|
|
5983
5996
|
"domain-data": o.value
|
|
5984
|
-
}, null, 8, ["associations", "domain-data"])) : (u(), $(
|
|
5997
|
+
}, null, 8, ["associations", "domain-data"])) : (u(), $(hl, {
|
|
5985
5998
|
key: 3,
|
|
5986
5999
|
associations: t.associations,
|
|
5987
6000
|
"domain-data": o.value
|
|
@@ -5989,10 +6002,10 @@ const Di = {
|
|
|
5989
6002
|
]);
|
|
5990
6003
|
};
|
|
5991
6004
|
}
|
|
5992
|
-
},
|
|
6005
|
+
}, gl = /* @__PURE__ */ V(_l, [["__scopeId", "data-v-8b30eefd"]]), yl = {
|
|
5993
6006
|
key: 1,
|
|
5994
6007
|
class: "loading-wrapper"
|
|
5995
|
-
},
|
|
6008
|
+
}, vl = {
|
|
5996
6009
|
__name: "Detail",
|
|
5997
6010
|
props: {
|
|
5998
6011
|
domain: {
|
|
@@ -6020,18 +6033,18 @@ const Di = {
|
|
|
6020
6033
|
query: () => ({})
|
|
6021
6034
|
});
|
|
6022
6035
|
}
|
|
6023
|
-
return (m, c) => a.value ? (u(), $(
|
|
6036
|
+
return (m, c) => a.value ? (u(), $(gl, {
|
|
6024
6037
|
key: 0,
|
|
6025
6038
|
settings: a.value,
|
|
6026
6039
|
associations: i.value
|
|
6027
|
-
}, null, 8, ["settings", "associations"])) :
|
|
6028
|
-
[f(
|
|
6040
|
+
}, null, 8, ["settings", "associations"])) : ye((u(), x("div", yl, null, 512)), [
|
|
6041
|
+
[f(ve), !0]
|
|
6029
6042
|
]);
|
|
6030
6043
|
}
|
|
6031
|
-
},
|
|
6044
|
+
}, bl = /* @__PURE__ */ V(vl, [["__scopeId", "data-v-ecd5a448"]]), wl = { key: 0 }, El = {
|
|
6032
6045
|
key: 1,
|
|
6033
6046
|
class: "loading-wrapper"
|
|
6034
|
-
},
|
|
6047
|
+
}, $l = {
|
|
6035
6048
|
__name: "DetailTab",
|
|
6036
6049
|
props: {
|
|
6037
6050
|
association: {
|
|
@@ -6048,7 +6061,7 @@ const Di = {
|
|
|
6048
6061
|
});
|
|
6049
6062
|
},
|
|
6050
6063
|
{ immediate: !0 }
|
|
6051
|
-
), (a, i) => r.value && o.association.domainData ? (u(), x("div",
|
|
6064
|
+
), (a, i) => r.value && o.association.domainData ? (u(), x("div", wl, [
|
|
6052
6065
|
r.value.type === "has-many" ? (u(), $(Gn, {
|
|
6053
6066
|
key: `has-many-${r.value.domain}`,
|
|
6054
6067
|
settings: r.value.settings,
|
|
@@ -6060,53 +6073,53 @@ const Di = {
|
|
|
6060
6073
|
query: f(s),
|
|
6061
6074
|
settings: r.value.settings
|
|
6062
6075
|
}, null, 8, ["query", "settings"])) : T("", !0)
|
|
6063
|
-
])) :
|
|
6064
|
-
[f(
|
|
6076
|
+
])) : ye((u(), x("div", El, null, 512)), [
|
|
6077
|
+
[f(ve), !0]
|
|
6065
6078
|
]);
|
|
6066
6079
|
}
|
|
6067
|
-
},
|
|
6080
|
+
}, Wl = /* @__PURE__ */ V($l, [["__scopeId", "data-v-79eac380"]]);
|
|
6068
6081
|
export {
|
|
6069
|
-
|
|
6082
|
+
zl as A,
|
|
6070
6083
|
na as B,
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6084
|
+
Ft as C,
|
|
6085
|
+
Rl as D,
|
|
6086
|
+
Ul as E,
|
|
6087
|
+
Wr as F,
|
|
6075
6088
|
Gn as G,
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6089
|
+
ql as H,
|
|
6090
|
+
bl as I,
|
|
6091
|
+
Wl as J,
|
|
6079
6092
|
le as K,
|
|
6080
|
-
|
|
6081
|
-
|
|
6093
|
+
Gi as L,
|
|
6094
|
+
Ct as M,
|
|
6082
6095
|
ha as S,
|
|
6083
6096
|
ua as W,
|
|
6084
6097
|
V as _,
|
|
6085
|
-
|
|
6098
|
+
Bl as a,
|
|
6086
6099
|
qn as b,
|
|
6087
6100
|
sa as c,
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6101
|
+
Ll as d,
|
|
6102
|
+
Il as e,
|
|
6103
|
+
Pl as f,
|
|
6091
6104
|
Ot as g,
|
|
6092
6105
|
oe as h,
|
|
6093
|
-
|
|
6106
|
+
Hl as i,
|
|
6094
6107
|
We as j,
|
|
6095
6108
|
Oa as k,
|
|
6096
|
-
|
|
6109
|
+
jl as l,
|
|
6097
6110
|
W as m,
|
|
6098
6111
|
Ra as n,
|
|
6099
6112
|
Qo as o,
|
|
6100
|
-
|
|
6101
|
-
|
|
6113
|
+
Vl as p,
|
|
6114
|
+
Ml as q,
|
|
6102
6115
|
Jo as r,
|
|
6103
6116
|
J as s,
|
|
6104
|
-
|
|
6117
|
+
Fl as t,
|
|
6105
6118
|
aa as u,
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6119
|
+
Nl as v,
|
|
6120
|
+
Cl as w,
|
|
6121
|
+
Dl as x,
|
|
6122
|
+
Al as y,
|
|
6123
|
+
Tl as z
|
|
6111
6124
|
};
|
|
6112
|
-
//# sourceMappingURL=index-
|
|
6125
|
+
//# sourceMappingURL=index-BGG4xNjJ.js.map
|