kouxiangtang 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +408 -4
- package/dist/{AttachmentUploader-Dk3pI8xI.js → AttachmentUploader-dO2PiIqG.js} +58 -48
- package/dist/AttachmentUploader-dO2PiIqG.js.map +1 -0
- package/dist/{ImageUploader-Sl6CARAH.js → ImageUploader-DJfujt_H.js} +2 -2
- package/dist/{ImageUploader-Sl6CARAH.js.map → ImageUploader-DJfujt_H.js.map} +1 -1
- package/dist/ImagesUploader-L2-m9pOt.js +132 -0
- package/dist/ImagesUploader-L2-m9pOt.js.map +1 -0
- package/dist/{RichTextEditor-BN-Grymy.js → RichTextEditor-B0009vbA.js} +2 -2
- package/dist/{RichTextEditor-BN-Grymy.js.map → RichTextEditor-B0009vbA.js.map} +1 -1
- package/dist/{config-3CmGvWbJ.js → config-4opkUG_U.js} +2 -2
- package/dist/{config-3CmGvWbJ.js.map → config-4opkUG_U.js.map} +1 -1
- package/dist/{config-kSnMLu_i.js → config-B7NLL7Za.js} +2 -2
- package/dist/{config-kSnMLu_i.js.map → config-B7NLL7Za.js.map} +1 -1
- package/dist/{config-BPF5NKbv.js → config-BOL73GVE.js} +2 -2
- package/dist/{config-BPF5NKbv.js.map → config-BOL73GVE.js.map} +1 -1
- package/dist/{config-Dfv9X_oH.js → config-B_jV9FcB.js} +3 -3
- package/dist/{config-Dfv9X_oH.js.map → config-B_jV9FcB.js.map} +1 -1
- package/dist/{config-nxWFYd4H.js → config-BbMhy1Am.js} +2 -2
- package/dist/{config-nxWFYd4H.js.map → config-BbMhy1Am.js.map} +1 -1
- package/dist/{config-DIgyOzyY.js → config-Bf2H_VXi.js} +2 -2
- package/dist/{config-DIgyOzyY.js.map → config-Bf2H_VXi.js.map} +1 -1
- package/dist/{config-BIoYHFta.js → config-BgIHsuau.js} +3 -3
- package/dist/{config-BIoYHFta.js.map → config-BgIHsuau.js.map} +1 -1
- package/dist/{config-DWQ07KGg.js → config-BnV5g1r6.js} +2 -2
- package/dist/{config-DWQ07KGg.js.map → config-BnV5g1r6.js.map} +1 -1
- package/dist/{config-B7sfuPS-.js → config-C9BwlRNg.js} +2 -2
- package/dist/{config-B7sfuPS-.js.map → config-C9BwlRNg.js.map} +1 -1
- package/dist/{config-DFY-g88P.js → config-CL0sbSSk.js} +2 -2
- package/dist/{config-DFY-g88P.js.map → config-CL0sbSSk.js.map} +1 -1
- package/dist/{config-BDUo3FW4.js → config-CXX_cyT5.js} +2 -2
- package/dist/{config-BDUo3FW4.js.map → config-CXX_cyT5.js.map} +1 -1
- package/dist/{config-D6JmkLzW.js → config-Ct-kk8lN.js} +2 -2
- package/dist/{config-D6JmkLzW.js.map → config-Ct-kk8lN.js.map} +1 -1
- package/dist/{config-urM6mrhD.js → config-DBWaP3c8.js} +2 -2
- package/dist/{config-urM6mrhD.js.map → config-DBWaP3c8.js.map} +1 -1
- package/dist/{config-Cs24dvIw.js → config-DD7Ikbt-.js} +2 -2
- package/dist/{config-Cs24dvIw.js.map → config-DD7Ikbt-.js.map} +1 -1
- package/dist/{config-CWEv8XKO.js → config-DmxS5C0R.js} +2 -2
- package/dist/{config-CWEv8XKO.js.map → config-DmxS5C0R.js.map} +1 -1
- package/dist/{config-BMegUoCu.js → config-POLpsRRx.js} +2 -2
- package/dist/{config-BMegUoCu.js.map → config-POLpsRRx.js.map} +1 -1
- package/dist/{config-CEbzlR4L.js → config-UhlNBDt2.js} +2 -2
- package/dist/{config-CEbzlR4L.js.map → config-UhlNBDt2.js.map} +1 -1
- package/dist/{config-Gr_n4RJU.js → config-jNNoK2HQ.js} +3 -3
- package/dist/{config-Gr_n4RJU.js.map → config-jNNoK2HQ.js.map} +1 -1
- package/dist/{config-7NNTCgWz.js → config-nq8OiIpn.js} +2 -2
- package/dist/{config-7NNTCgWz.js.map → config-nq8OiIpn.js.map} +1 -1
- package/dist/{index-DWaIPnvt.js → index-BDc0n3q3.js} +617 -606
- package/dist/index-BDc0n3q3.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/AttachmentUploader-Dk3pI8xI.js.map +0 -1
- package/dist/ImagesUploader-CD6qu0oD.js +0 -123
- package/dist/ImagesUploader-CD6qu0oD.js.map +0 -1
- package/dist/index-DWaIPnvt.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as c, createBlock as S, unref as
|
|
2
|
-
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as xe, ElCol as $e, ElForm as hn, ElFormItem as
|
|
1
|
+
import { openBlock as c, createBlock as S, unref as f, createSlots as De, withCtx as w, renderSlot as J, createElementVNode as C, toDisplayString as B, resolveComponent as qe, withDirectives as _e, createElementBlock as O, normalizeStyle as Ge, createVNode as x, createTextVNode as N, computed as I, Fragment as P, renderList as q, ref as D, reactive as Oe, watch as j, resolveDynamicComponent as X, createCommentVNode as L, shallowRef as te, defineAsyncComponent as Zn, normalizeClass as he, withModifiers as Tt, defineComponent as W, useSlots as Re, onMounted as dn, watchEffect as gt, pushScopeId as pn, popScopeId as fn, normalizeProps as Ft, guardReactiveProps as Lt, getCurrentScope as es, onScopeDispose as ts, getCurrentInstance as ns, nextTick as ss, useCssVars as os } from "vue";
|
|
2
|
+
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as xe, ElCol as $e, ElForm as hn, ElFormItem as ot, ElAlert as rs, ElButton as ne, ElMessageBox as is, ElMessage as ke, ElDialog as ls, ElLoading as Be, ElInputNumber as Pt, ElSelect as jt, ElOption as Ke, ElSelectV2 as us, ElTreeSelect as cs, ElDatePicker as Xe, ElInput as ds, ElButtonGroup as pe, ElDropdown as at, ElDropdownMenu as rt, ElDropdownItem as ue, ElIcon as G, ElEmpty as ps, ElImage as gn, ElTable as fs, ElTableColumn as je, ElTooltip as yn, ElPagination as ms, ElText as Bt, ElTabs as _n, ElTabPane as vn, ElSubMenu as hs, ElMenuItem as gs, ElScrollbar as ys, ElMenu as _s, ElConfigProvider as vs, ElContainer as Vt, ElHeader as bs, ElAside as ws, ElMain as Es, ElCollapse as $s, ElCollapseItem as Ss } from "element-plus";
|
|
3
3
|
import { useRoute as U, useRouter as fe } from "vue-router";
|
|
4
|
-
import { defineStore as
|
|
4
|
+
import { defineStore as yt, storeToRefs as ge } from "pinia";
|
|
5
5
|
function bn(t, e) {
|
|
6
6
|
return function() {
|
|
7
7
|
return t.apply(e, arguments);
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
const { toString: Os } = Object.prototype, { getPrototypeOf:
|
|
10
|
+
const { toString: Os } = Object.prototype, { getPrototypeOf: _t } = Object, We = /* @__PURE__ */ ((t) => (e) => {
|
|
11
11
|
const n = Os.call(e);
|
|
12
12
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
13
13
|
})(/* @__PURE__ */ Object.create(null)), re = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Qe = (t) => (e) => typeof e === t, { isArray: be } = Array, Ae = Qe("undefined");
|
|
@@ -19,12 +19,12 @@ function ks(t) {
|
|
|
19
19
|
let e;
|
|
20
20
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && wn(t.buffer), e;
|
|
21
21
|
}
|
|
22
|
-
const As = Qe("string"), Z = Qe("function"), En = Qe("number"), Je = (t) => t !== null && typeof t == "object", Cs = (t) => t === !0 || t === !1,
|
|
22
|
+
const As = Qe("string"), Z = Qe("function"), En = Qe("number"), Je = (t) => t !== null && typeof t == "object", Cs = (t) => t === !0 || t === !1, Ve = (t) => {
|
|
23
23
|
if (We(t) !== "object")
|
|
24
24
|
return !1;
|
|
25
|
-
const e =
|
|
25
|
+
const e = _t(t);
|
|
26
26
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
27
|
-
}, Ds = re("Date"), Rs = re("File"), Ts = re("Blob"), Fs = re("FileList"),
|
|
27
|
+
}, Ds = re("Date"), Rs = re("File"), Ts = re("Blob"), Fs = re("FileList"), Ls = (t) => Je(t) && Z(t.pipe), Ps = (t) => {
|
|
28
28
|
let e;
|
|
29
29
|
return t && (typeof FormData == "function" && t instanceof FormData || Z(t.append) && ((e = We(t)) === "formdata" || // detect form-data instance
|
|
30
30
|
e === "object" && Z(t.toString) && t.toString() === "[object FormData]"));
|
|
@@ -53,18 +53,18 @@ function $n(t, e) {
|
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
55
55
|
const Sn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, On = (t) => !Ae(t) && t !== Sn;
|
|
56
|
-
function
|
|
56
|
+
function it() {
|
|
57
57
|
const { caseless: t } = On(this) && this || {}, e = {}, n = (s, o) => {
|
|
58
58
|
const r = t && $n(e, o) || o;
|
|
59
|
-
|
|
59
|
+
Ve(e[r]) && Ve(s) ? e[r] = it(e[r], s) : Ve(s) ? e[r] = it({}, s) : be(s) ? e[r] = s.slice() : e[r] = s;
|
|
60
60
|
};
|
|
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 Vs = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
66
66
|
n && Z(o) ? t[r] = bn(o, n) : t[r] = o;
|
|
67
|
-
}, { allOwnKeys: s }), t),
|
|
67
|
+
}, { allOwnKeys: s }), t), Ns = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Is = (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);
|
|
@@ -76,7 +76,7 @@ const Ns = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
|
76
76
|
do {
|
|
77
77
|
for (o = Object.getOwnPropertyNames(t), r = o.length; r-- > 0; )
|
|
78
78
|
a = o[r], (!s || s(a, t, e)) && !i[a] && (e[a] = t[a], i[a] = !0);
|
|
79
|
-
t = n !== !1 &&
|
|
79
|
+
t = n !== !1 && _t(t);
|
|
80
80
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
81
81
|
return e;
|
|
82
82
|
}, Us = (t, e, n) => {
|
|
@@ -95,7 +95,7 @@ const Ns = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
|
95
95
|
for (; e-- > 0; )
|
|
96
96
|
n[e] = t[e];
|
|
97
97
|
return n;
|
|
98
|
-
}, Hs = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
98
|
+
}, Hs = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && _t(Uint8Array)), qs = (t, e) => {
|
|
99
99
|
const s = (t && t[Symbol.iterator]).call(t);
|
|
100
100
|
let o;
|
|
101
101
|
for (; (o = s.next()) && !o.done; ) {
|
|
@@ -113,13 +113,13 @@ const Ns = (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"), xn = (t, e) => {
|
|
117
117
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
|
118
118
|
Te(n, (o, r) => {
|
|
119
119
|
let a;
|
|
120
120
|
(a = e(o, r, t)) !== !1 && (s[r] = a || o);
|
|
121
121
|
}), Object.defineProperties(t, s);
|
|
122
|
-
},
|
|
122
|
+
}, Gs = (t) => {
|
|
123
123
|
xn(t, (e, n) => {
|
|
124
124
|
if (Z(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
125
125
|
return !1;
|
|
@@ -134,7 +134,7 @@ const Ns = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
|
-
},
|
|
137
|
+
}, Ks = (t, e) => {
|
|
138
138
|
const n = {}, s = (o) => {
|
|
139
139
|
o.forEach((r) => {
|
|
140
140
|
n[r] = !0;
|
|
@@ -142,10 +142,10 @@ const Ns = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
|
|
|
142
142
|
};
|
|
143
143
|
return be(t) ? s(t) : s(String(t).split(e)), n;
|
|
144
144
|
}, Xs = () => {
|
|
145
|
-
}, Zs = (t, e) => (t = +t, Number.isFinite(t) ? t : e),
|
|
146
|
-
DIGIT:
|
|
147
|
-
ALPHA:
|
|
148
|
-
ALPHA_DIGIT:
|
|
145
|
+
}, Zs = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Ze = "abcdefghijklmnopqrstuvwxyz", It = "0123456789", kn = {
|
|
146
|
+
DIGIT: It,
|
|
147
|
+
ALPHA: Ze,
|
|
148
|
+
ALPHA_DIGIT: Ze + Ze.toUpperCase() + It
|
|
149
149
|
}, eo = (t = 16, e = kn.ALPHA_DIGIT) => {
|
|
150
150
|
let n = "";
|
|
151
151
|
const { length: s } = e;
|
|
@@ -177,29 +177,29 @@ const no = (t) => {
|
|
|
177
177
|
isArray: be,
|
|
178
178
|
isArrayBuffer: wn,
|
|
179
179
|
isBuffer: xs,
|
|
180
|
-
isFormData:
|
|
180
|
+
isFormData: Ps,
|
|
181
181
|
isArrayBufferView: ks,
|
|
182
182
|
isString: As,
|
|
183
183
|
isNumber: En,
|
|
184
184
|
isBoolean: Cs,
|
|
185
185
|
isObject: Je,
|
|
186
|
-
isPlainObject:
|
|
186
|
+
isPlainObject: Ve,
|
|
187
187
|
isUndefined: Ae,
|
|
188
188
|
isDate: Ds,
|
|
189
189
|
isFile: Rs,
|
|
190
190
|
isBlob: Ts,
|
|
191
|
-
isRegExp:
|
|
191
|
+
isRegExp: Ys,
|
|
192
192
|
isFunction: Z,
|
|
193
|
-
isStream:
|
|
193
|
+
isStream: Ls,
|
|
194
194
|
isURLSearchParams: js,
|
|
195
195
|
isTypedArray: Hs,
|
|
196
196
|
isFileList: Fs,
|
|
197
197
|
forEach: Te,
|
|
198
|
-
merge:
|
|
199
|
-
extend:
|
|
198
|
+
merge: it,
|
|
199
|
+
extend: Vs,
|
|
200
200
|
trim: Bs,
|
|
201
|
-
stripBOM:
|
|
202
|
-
inherits:
|
|
201
|
+
stripBOM: Ns,
|
|
202
|
+
inherits: Is,
|
|
203
203
|
toFlatObject: Ms,
|
|
204
204
|
kindOf: We,
|
|
205
205
|
kindOfTest: re,
|
|
@@ -208,12 +208,12 @@ const no = (t) => {
|
|
|
208
208
|
forEachEntry: qs,
|
|
209
209
|
matchAll: Ws,
|
|
210
210
|
isHTMLForm: Qs,
|
|
211
|
-
hasOwnProperty:
|
|
212
|
-
hasOwnProp:
|
|
211
|
+
hasOwnProperty: Nt,
|
|
212
|
+
hasOwnProp: Nt,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
214
|
reduceDescriptors: xn,
|
|
215
|
-
freezeMethods:
|
|
216
|
-
toObjectSet:
|
|
215
|
+
freezeMethods: Gs,
|
|
216
|
+
toObjectSet: Ks,
|
|
217
217
|
toCamelCase: Js,
|
|
218
218
|
noop: Xs,
|
|
219
219
|
toFiniteNumber: Zs,
|
|
@@ -278,7 +278,7 @@ T.from = (t, e, n, s, o, r) => {
|
|
|
278
278
|
}, (i) => i !== "isAxiosError"), T.call(a, t.message, e, n, s, o), a.cause = t, a.name = t.name, r && Object.assign(a, r), a;
|
|
279
279
|
};
|
|
280
280
|
const ao = null;
|
|
281
|
-
function
|
|
281
|
+
function lt(t) {
|
|
282
282
|
return v.isPlainObject(t) || v.isArray(t);
|
|
283
283
|
}
|
|
284
284
|
function Dn(t) {
|
|
@@ -290,20 +290,20 @@ function Mt(t, e, n) {
|
|
|
290
290
|
}).join(n ? "." : "") : e;
|
|
291
291
|
}
|
|
292
292
|
function ro(t) {
|
|
293
|
-
return v.isArray(t) && !t.some(
|
|
293
|
+
return v.isArray(t) && !t.some(lt);
|
|
294
294
|
}
|
|
295
295
|
const io = v.toFlatObject(v, {}, null, function(e) {
|
|
296
296
|
return /^is[A-Z]/.test(e);
|
|
297
297
|
});
|
|
298
|
-
function
|
|
298
|
+
function Ye(t, e, n) {
|
|
299
299
|
if (!v.isObject(t))
|
|
300
300
|
throw new TypeError("target must be an object");
|
|
301
301
|
e = e || new FormData(), n = v.toFlatObject(n, {
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(
|
|
306
|
-
return !v.isUndefined(g[
|
|
305
|
+
}, !1, function(m, g) {
|
|
306
|
+
return !v.isUndefined(g[m]);
|
|
307
307
|
});
|
|
308
308
|
const s = n.metaTokens, o = n.visitor || p, r = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
|
|
309
309
|
if (!v.isFunction(o))
|
|
@@ -317,39 +317,39 @@ function Ge(t, e, n) {
|
|
|
317
317
|
throw new T("Blob is not supported. Use a Buffer instead.");
|
|
318
318
|
return v.isArrayBuffer(y) || v.isTypedArray(y) ? d && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
319
319
|
}
|
|
320
|
-
function p(y,
|
|
320
|
+
function p(y, m, g) {
|
|
321
321
|
let $ = y;
|
|
322
322
|
if (y && !g && typeof y == "object") {
|
|
323
|
-
if (v.endsWith(
|
|
324
|
-
|
|
325
|
-
else if (v.isArray(y) && ro(y) || (v.isFileList(y) || v.endsWith(
|
|
326
|
-
return
|
|
323
|
+
if (v.endsWith(m, "{}"))
|
|
324
|
+
m = s ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
325
|
+
else if (v.isArray(y) && ro(y) || (v.isFileList(y) || v.endsWith(m, "[]")) && ($ = v.toArray(y)))
|
|
326
|
+
return m = Dn(m), $.forEach(function(b, _) {
|
|
327
327
|
!(v.isUndefined(b) || b === null) && e.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
|
-
a === !0 ? Mt([
|
|
329
|
+
a === !0 ? Mt([m], _, r) : a === null ? m : m + "[]",
|
|
330
330
|
h(b)
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return lt(y) ? !0 : (e.append(Mt(g, m, r), h(y)), !1);
|
|
335
335
|
}
|
|
336
336
|
const u = [], E = Object.assign(io, {
|
|
337
337
|
defaultVisitor: p,
|
|
338
338
|
convertValue: h,
|
|
339
|
-
isVisitable:
|
|
339
|
+
isVisitable: lt
|
|
340
340
|
});
|
|
341
|
-
function A(y,
|
|
341
|
+
function A(y, m) {
|
|
342
342
|
if (!v.isUndefined(y)) {
|
|
343
343
|
if (u.indexOf(y) !== -1)
|
|
344
|
-
throw Error("Circular reference detected in " +
|
|
344
|
+
throw Error("Circular reference detected in " + m.join("."));
|
|
345
345
|
u.push(y), v.forEach(y, function($, l) {
|
|
346
346
|
(!(v.isUndefined($) || $ === null) && o.call(
|
|
347
347
|
e,
|
|
348
348
|
$,
|
|
349
349
|
v.isString(l) ? l.trim() : l,
|
|
350
|
-
|
|
350
|
+
m,
|
|
351
351
|
E
|
|
352
|
-
)) === !0 && A($,
|
|
352
|
+
)) === !0 && A($, m ? m.concat(l) : [l]);
|
|
353
353
|
}), u.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -371,10 +371,10 @@ function Ut(t) {
|
|
|
371
371
|
return e[s];
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
this._pairs = [], t &&
|
|
374
|
+
function vt(t, e) {
|
|
375
|
+
this._pairs = [], t && Ye(t, this, e);
|
|
376
376
|
}
|
|
377
|
-
const Rn =
|
|
377
|
+
const Rn = vt.prototype;
|
|
378
378
|
Rn.append = function(e, n) {
|
|
379
379
|
this._pairs.push([e, n]);
|
|
380
380
|
};
|
|
@@ -394,7 +394,7 @@ function Tn(t, e, n) {
|
|
|
394
394
|
return t;
|
|
395
395
|
const s = n && n.encode || lo, o = n && n.serialize;
|
|
396
396
|
let r;
|
|
397
|
-
if (o ? r = o(e, n) : r = v.isURLSearchParams(e) ? e.toString() : new
|
|
397
|
+
if (o ? r = o(e, n) : r = v.isURLSearchParams(e) ? e.toString() : new vt(e, n).toString(s), r) {
|
|
398
398
|
const a = t.indexOf("#");
|
|
399
399
|
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + r;
|
|
400
400
|
}
|
|
@@ -458,7 +458,7 @@ const Fn = {
|
|
|
458
458
|
silentJSONParsing: !0,
|
|
459
459
|
forcedJSONParsing: !0,
|
|
460
460
|
clarifyTimeoutError: !1
|
|
461
|
-
}, uo = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
461
|
+
}, uo = typeof URLSearchParams < "u" ? URLSearchParams : vt, co = typeof FormData < "u" ? FormData : null, po = typeof Blob < "u" ? Blob : null, fo = {
|
|
462
462
|
isBrowser: !0,
|
|
463
463
|
classes: {
|
|
464
464
|
URLSearchParams: uo,
|
|
@@ -466,10 +466,10 @@ const Fn = {
|
|
|
466
466
|
Blob: po
|
|
467
467
|
},
|
|
468
468
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
469
|
-
},
|
|
469
|
+
}, Ln = typeof window < "u" && typeof document < "u", mo = ((t) => Ln && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), ho = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
470
470
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
471
|
__proto__: null,
|
|
472
|
-
hasBrowserEnv:
|
|
472
|
+
hasBrowserEnv: Ln,
|
|
473
473
|
hasStandardBrowserEnv: mo,
|
|
474
474
|
hasStandardBrowserWebWorkerEnv: ho
|
|
475
475
|
}, Symbol.toStringTag, { value: "Module" })), ae = {
|
|
@@ -477,7 +477,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", go
|
|
|
477
477
|
...fo
|
|
478
478
|
};
|
|
479
479
|
function yo(t, e) {
|
|
480
|
-
return
|
|
480
|
+
return Ye(t, new ae.classes.URLSearchParams(), Object.assign({
|
|
481
481
|
visitor: function(n, s, o, r) {
|
|
482
482
|
return ae.isNode && v.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
483
483
|
}
|
|
@@ -495,7 +495,7 @@ function vo(t) {
|
|
|
495
495
|
r = n[s], e[r] = t[r];
|
|
496
496
|
return e;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Pn(t) {
|
|
499
499
|
function e(n, s, o, r) {
|
|
500
500
|
let a = n[r++];
|
|
501
501
|
if (a === "__proto__")
|
|
@@ -527,7 +527,7 @@ const Fe = {
|
|
|
527
527
|
transformRequest: [function(e, n) {
|
|
528
528
|
const s = n.getContentType() || "", o = s.indexOf("application/json") > -1, r = v.isObject(e);
|
|
529
529
|
if (r && v.isHTMLForm(e) && (e = new FormData(e)), v.isFormData(e))
|
|
530
|
-
return o ? JSON.stringify(
|
|
530
|
+
return o ? JSON.stringify(Pn(e)) : e;
|
|
531
531
|
if (v.isArrayBuffer(e) || v.isBuffer(e) || v.isStream(e) || v.isFile(e) || v.isBlob(e))
|
|
532
532
|
return e;
|
|
533
533
|
if (v.isArrayBufferView(e))
|
|
@@ -540,7 +540,7 @@ const Fe = {
|
|
|
540
540
|
return yo(e, this.formSerializer).toString();
|
|
541
541
|
if ((i = v.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
542
542
|
const d = this.env && this.env.FormData;
|
|
543
|
-
return
|
|
543
|
+
return Ye(
|
|
544
544
|
i ? { "files[]": e } : e,
|
|
545
545
|
d && new d(),
|
|
546
546
|
this.formSerializer
|
|
@@ -617,8 +617,8 @@ const wo = v.toObjectSet([
|
|
|
617
617
|
function Ee(t) {
|
|
618
618
|
return t && String(t).trim().toLowerCase();
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return t === !1 || t == null ? t : v.isArray(t) ? t.map(
|
|
620
|
+
function Ne(t) {
|
|
621
|
+
return t === !1 || t == null ? t : v.isArray(t) ? t.map(Ne) : String(t);
|
|
622
622
|
}
|
|
623
623
|
function $o(t) {
|
|
624
624
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -628,7 +628,7 @@ function $o(t) {
|
|
|
628
628
|
return e;
|
|
629
629
|
}
|
|
630
630
|
const So = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
631
|
-
function
|
|
631
|
+
function et(t, e, n, s, o) {
|
|
632
632
|
if (v.isFunction(s))
|
|
633
633
|
return s.call(this, e, n);
|
|
634
634
|
if (o && (e = n), !!v.isString(e)) {
|
|
@@ -663,7 +663,7 @@ class ee {
|
|
|
663
663
|
if (!p)
|
|
664
664
|
throw new Error("header name must be a non-empty string");
|
|
665
665
|
const u = v.findKey(o, p);
|
|
666
|
-
(!u || o[u] === void 0 || h === !0 || h === void 0 && o[u] !== !1) && (o[u || d] =
|
|
666
|
+
(!u || o[u] === void 0 || h === !0 || h === void 0 && o[u] !== !1) && (o[u || d] = Ne(i));
|
|
667
667
|
}
|
|
668
668
|
const a = (i, d) => v.forEach(i, (h, p) => r(h, p, d));
|
|
669
669
|
return v.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : v.isString(e) && (e = e.trim()) && !So(e) ? a(Eo(e), n) : e != null && r(n, e, s), this;
|
|
@@ -688,7 +688,7 @@ class ee {
|
|
|
688
688
|
has(e, n) {
|
|
689
689
|
if (e = Ee(e), e) {
|
|
690
690
|
const s = v.findKey(this, e);
|
|
691
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
|
691
|
+
return !!(s && this[s] !== void 0 && (!n || et(this, this[s], s, n)));
|
|
692
692
|
}
|
|
693
693
|
return !1;
|
|
694
694
|
}
|
|
@@ -698,7 +698,7 @@ class ee {
|
|
|
698
698
|
function r(a) {
|
|
699
699
|
if (a = Ee(a), a) {
|
|
700
700
|
const i = v.findKey(s, a);
|
|
701
|
-
i && (!n ||
|
|
701
|
+
i && (!n || et(s, s[i], i, n)) && (delete s[i], o = !0);
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
return v.isArray(e) ? e.forEach(r) : r(e), o;
|
|
@@ -708,7 +708,7 @@ class ee {
|
|
|
708
708
|
let s = n.length, o = !1;
|
|
709
709
|
for (; s--; ) {
|
|
710
710
|
const r = n[s];
|
|
711
|
-
(!e ||
|
|
711
|
+
(!e || et(this, this[r], r, e, !0)) && (delete this[r], o = !0);
|
|
712
712
|
}
|
|
713
713
|
return o;
|
|
714
714
|
}
|
|
@@ -717,11 +717,11 @@ class ee {
|
|
|
717
717
|
return v.forEach(this, (o, r) => {
|
|
718
718
|
const a = v.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 ? Oo(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) {
|
|
@@ -772,7 +772,7 @@ v.reduceDescriptors(ee.prototype, ({ value: t }, e) => {
|
|
|
772
772
|
};
|
|
773
773
|
});
|
|
774
774
|
v.freezeMethods(ee);
|
|
775
|
-
function
|
|
775
|
+
function tt(t, e) {
|
|
776
776
|
const n = this || Fe, s = e || n, o = ee.from(s.headers);
|
|
777
777
|
let r = s.data;
|
|
778
778
|
return v.forEach(t, function(i) {
|
|
@@ -782,10 +782,10 @@ function et(t, e) {
|
|
|
782
782
|
function jn(t) {
|
|
783
783
|
return !!(t && t.__CANCEL__);
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function Le(t, e, n) {
|
|
786
786
|
T.call(this, t ?? "canceled", T.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
787
787
|
}
|
|
788
|
-
v.inherits(
|
|
788
|
+
v.inherits(Le, T, {
|
|
789
789
|
__CANCEL__: !0
|
|
790
790
|
});
|
|
791
791
|
function ko(t, e, n) {
|
|
@@ -904,7 +904,7 @@ function qt(t, e) {
|
|
|
904
904
|
p[e ? "download" : "upload"] = !0, t(p);
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
|
-
const
|
|
907
|
+
const Lo = typeof XMLHttpRequest < "u", Po = Lo && function(t) {
|
|
908
908
|
return new Promise(function(n, s) {
|
|
909
909
|
let o = t.data;
|
|
910
910
|
const r = ee.from(t.headers).normalize();
|
|
@@ -917,27 +917,27 @@ const Po = typeof XMLHttpRequest < "u", Lo = Po && function(t) {
|
|
|
917
917
|
if (ae.hasStandardBrowserEnv || ae.hasStandardBrowserWebWorkerEnv)
|
|
918
918
|
r.setContentType(!1);
|
|
919
919
|
else if ((p = r.getContentType()) !== !1) {
|
|
920
|
-
const [
|
|
921
|
-
r.setContentType([
|
|
920
|
+
const [m, ...g] = p ? p.split(";").map(($) => $.trim()).filter(Boolean) : [];
|
|
921
|
+
r.setContentType([m || "multipart/form-data", ...g].join("; "));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
let u = new XMLHttpRequest();
|
|
925
925
|
if (t.auth) {
|
|
926
|
-
const
|
|
927
|
-
r.set("Authorization", "Basic " + btoa(
|
|
926
|
+
const m = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
927
|
+
r.set("Authorization", "Basic " + btoa(m + ":" + g));
|
|
928
928
|
}
|
|
929
929
|
const E = Bn(t.baseURL, t.url);
|
|
930
930
|
u.open(t.method.toUpperCase(), Tn(E, t.params, t.paramsSerializer), !0), u.timeout = t.timeout;
|
|
931
931
|
function A() {
|
|
932
932
|
if (!u)
|
|
933
933
|
return;
|
|
934
|
-
const
|
|
934
|
+
const m = ee.from(
|
|
935
935
|
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
936
936
|
), $ = {
|
|
937
937
|
data: !a || a === "text" || a === "json" ? u.responseText : u.response,
|
|
938
938
|
status: u.status,
|
|
939
939
|
statusText: u.statusText,
|
|
940
|
-
headers:
|
|
940
|
+
headers: m,
|
|
941
941
|
config: t,
|
|
942
942
|
request: u
|
|
943
943
|
};
|
|
@@ -963,13 +963,13 @@ const Po = typeof XMLHttpRequest < "u", Lo = Po && function(t) {
|
|
|
963
963
|
u
|
|
964
964
|
)), u = null;
|
|
965
965
|
}, ae.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(E))) {
|
|
966
|
-
const
|
|
967
|
-
|
|
966
|
+
const m = t.xsrfHeaderName && t.xsrfCookieName && Ao.read(t.xsrfCookieName);
|
|
967
|
+
m && r.set(t.xsrfHeaderName, m);
|
|
968
968
|
}
|
|
969
969
|
o === void 0 && r.setContentType(null), "setRequestHeader" in u && v.forEach(r.toJSON(), function(g, $) {
|
|
970
970
|
u.setRequestHeader($, g);
|
|
971
|
-
}), v.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), a && a !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (d = (
|
|
972
|
-
u && (s(!
|
|
971
|
+
}), v.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), a && a !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (d = (m) => {
|
|
972
|
+
u && (s(!m || m.type ? new Le(null, t, u) : m), u.abort(), u = null);
|
|
973
973
|
}, t.cancelToken && t.cancelToken.subscribe(d), t.signal && (t.signal.aborted ? d() : t.signal.addEventListener("abort", d)));
|
|
974
974
|
const y = To(E);
|
|
975
975
|
if (y && ae.protocols.indexOf(y) === -1) {
|
|
@@ -978,11 +978,11 @@ const Po = typeof XMLHttpRequest < "u", Lo = Po && function(t) {
|
|
|
978
978
|
}
|
|
979
979
|
u.send(o || null);
|
|
980
980
|
});
|
|
981
|
-
},
|
|
981
|
+
}, ut = {
|
|
982
982
|
http: ao,
|
|
983
|
-
xhr:
|
|
983
|
+
xhr: Po
|
|
984
984
|
};
|
|
985
|
-
v.forEach(
|
|
985
|
+
v.forEach(ut, (t, e) => {
|
|
986
986
|
if (t) {
|
|
987
987
|
try {
|
|
988
988
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -991,7 +991,7 @@ v.forEach(lt, (t, e) => {
|
|
|
991
991
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
|
-
const Wt = (t) => `- ${t}`, jo = (t) => v.isFunction(t) || t === null || t === !1,
|
|
994
|
+
const Wt = (t) => `- ${t}`, jo = (t) => v.isFunction(t) || t === null || t === !1, Vn = {
|
|
995
995
|
getAdapter: (t) => {
|
|
996
996
|
t = v.isArray(t) ? t : [t];
|
|
997
997
|
const { length: e } = t;
|
|
@@ -1000,7 +1000,7 @@ const Wt = (t) => `- ${t}`, jo = (t) => v.isFunction(t) || t === null || t === !
|
|
|
1000
1000
|
for (let r = 0; r < e; r++) {
|
|
1001
1001
|
n = t[r];
|
|
1002
1002
|
let a;
|
|
1003
|
-
if (s = n, !jo(n) && (s =
|
|
1003
|
+
if (s = n, !jo(n) && (s = ut[(a = String(n)).toLowerCase()], s === void 0))
|
|
1004
1004
|
throw new T(`Unknown adapter '${a}'`);
|
|
1005
1005
|
if (s)
|
|
1006
1006
|
break;
|
|
@@ -1020,24 +1020,24 @@ const Wt = (t) => `- ${t}`, jo = (t) => v.isFunction(t) || t === null || t === !
|
|
|
1020
1020
|
}
|
|
1021
1021
|
return s;
|
|
1022
1022
|
},
|
|
1023
|
-
adapters:
|
|
1023
|
+
adapters: ut
|
|
1024
1024
|
};
|
|
1025
|
-
function
|
|
1025
|
+
function nt(t) {
|
|
1026
1026
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1027
|
-
throw new
|
|
1027
|
+
throw new Le(null, t);
|
|
1028
1028
|
}
|
|
1029
1029
|
function Qt(t) {
|
|
1030
|
-
return
|
|
1030
|
+
return nt(t), t.headers = ee.from(t.headers), t.data = tt.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),
|
|
1034
|
-
return
|
|
1033
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Vn.getAdapter(t.adapter || Fe.adapter)(t).then(function(s) {
|
|
1034
|
+
return nt(t), s.data = tt.call(
|
|
1035
1035
|
t,
|
|
1036
1036
|
t.transformResponse,
|
|
1037
1037
|
s
|
|
1038
1038
|
), s.headers = ee.from(s.headers), s;
|
|
1039
1039
|
}, function(s) {
|
|
1040
|
-
return jn(s) || (
|
|
1040
|
+
return jn(s) || (nt(t), s && s.response && (s.response.data = tt.call(
|
|
1041
1041
|
t,
|
|
1042
1042
|
t.transformResponse,
|
|
1043
1043
|
s.response
|
|
@@ -1111,16 +1111,16 @@ function ye(t, e) {
|
|
|
1111
1111
|
v.isUndefined(E) && u !== i || (n[p] = E);
|
|
1112
1112
|
}), n;
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const Nn = "1.6.8", bt = {};
|
|
1115
1115
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1116
|
-
|
|
1116
|
+
bt[t] = function(s) {
|
|
1117
1117
|
return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1118
1118
|
};
|
|
1119
1119
|
});
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1120
|
+
const Yt = {};
|
|
1121
|
+
bt.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)
|
|
@@ -1128,7 +1128,7 @@ vt.transitional = function(e, n, s) {
|
|
|
1128
1128
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
1129
1129
|
T.ERR_DEPRECATED
|
|
1130
1130
|
);
|
|
1131
|
-
return n && !
|
|
1131
|
+
return n && !Yt[a] && (Yt[a] = !0, console.warn(
|
|
1132
1132
|
o(
|
|
1133
1133
|
a,
|
|
1134
1134
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1153,10 +1153,10 @@ function Bo(t, e, n) {
|
|
|
1153
1153
|
throw new T("Unknown option " + r, T.ERR_BAD_OPTION);
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
-
const
|
|
1156
|
+
const ct = {
|
|
1157
1157
|
assertOptions: Bo,
|
|
1158
|
-
validators:
|
|
1159
|
-
}, le =
|
|
1158
|
+
validators: bt
|
|
1159
|
+
}, le = ct.validators;
|
|
1160
1160
|
class de {
|
|
1161
1161
|
constructor(e) {
|
|
1162
1162
|
this.defaults = e, this.interceptors = {
|
|
@@ -1189,13 +1189,13 @@ class de {
|
|
|
1189
1189
|
_request(e, n) {
|
|
1190
1190
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ye(this.defaults, n);
|
|
1191
1191
|
const { transitional: s, paramsSerializer: o, headers: r } = n;
|
|
1192
|
-
s !== void 0 &&
|
|
1192
|
+
s !== void 0 && ct.assertOptions(s, {
|
|
1193
1193
|
silentJSONParsing: le.transitional(le.boolean),
|
|
1194
1194
|
forcedJSONParsing: le.transitional(le.boolean),
|
|
1195
1195
|
clarifyTimeoutError: le.transitional(le.boolean)
|
|
1196
1196
|
}, !1), o != null && (v.isFunction(o) ? n.paramsSerializer = {
|
|
1197
1197
|
serialize: o
|
|
1198
|
-
} :
|
|
1198
|
+
} : ct.assertOptions(o, {
|
|
1199
1199
|
encode: le.function,
|
|
1200
1200
|
serialize: le.function
|
|
1201
1201
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1211,12 +1211,12 @@ class de {
|
|
|
1211
1211
|
), n.headers = ee.concat(a, r);
|
|
1212
1212
|
const i = [];
|
|
1213
1213
|
let d = !0;
|
|
1214
|
-
this.interceptors.request.forEach(function(
|
|
1215
|
-
typeof
|
|
1214
|
+
this.interceptors.request.forEach(function(m) {
|
|
1215
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, i.unshift(m.fulfilled, m.rejected));
|
|
1216
1216
|
});
|
|
1217
1217
|
const h = [];
|
|
1218
|
-
this.interceptors.response.forEach(function(
|
|
1219
|
-
h.push(
|
|
1218
|
+
this.interceptors.response.forEach(function(m) {
|
|
1219
|
+
h.push(m.fulfilled, m.rejected);
|
|
1220
1220
|
});
|
|
1221
1221
|
let p, u = 0, E;
|
|
1222
1222
|
if (!d) {
|
|
@@ -1228,11 +1228,11 @@ class de {
|
|
|
1228
1228
|
E = i.length;
|
|
1229
1229
|
let A = n;
|
|
1230
1230
|
for (u = 0; u < E; ) {
|
|
1231
|
-
const y = i[u++],
|
|
1231
|
+
const y = i[u++], m = i[u++];
|
|
1232
1232
|
try {
|
|
1233
1233
|
A = y(A);
|
|
1234
1234
|
} catch (g) {
|
|
1235
|
-
|
|
1235
|
+
m.call(this, g);
|
|
1236
1236
|
break;
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
@@ -1275,7 +1275,7 @@ v.forEach(["post", "put", "patch"], function(e) {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
de.prototype[e] = n(), de.prototype[e + "Form"] = n(!0);
|
|
1277
1277
|
});
|
|
1278
|
-
class
|
|
1278
|
+
class wt {
|
|
1279
1279
|
constructor(e) {
|
|
1280
1280
|
if (typeof e != "function")
|
|
1281
1281
|
throw new TypeError("executor must be a function.");
|
|
@@ -1300,7 +1300,7 @@ class bt {
|
|
|
1300
1300
|
s.unsubscribe(r);
|
|
1301
1301
|
}, a;
|
|
1302
1302
|
}, e(function(r, a, i) {
|
|
1303
|
-
s.reason || (s.reason = new
|
|
1303
|
+
s.reason || (s.reason = new Le(r, a, i), n(s.reason));
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
1306
|
/**
|
|
@@ -1336,22 +1336,22 @@ class bt {
|
|
|
1336
1336
|
static source() {
|
|
1337
1337
|
let e;
|
|
1338
1338
|
return {
|
|
1339
|
-
token: new
|
|
1339
|
+
token: new wt(function(o) {
|
|
1340
1340
|
e = o;
|
|
1341
1341
|
}),
|
|
1342
1342
|
cancel: e
|
|
1343
1343
|
};
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Vo(t) {
|
|
1347
1347
|
return function(n) {
|
|
1348
1348
|
return t.apply(null, n);
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function No(t) {
|
|
1352
1352
|
return v.isObject(t) && t.isAxiosError === !0;
|
|
1353
1353
|
}
|
|
1354
|
-
const
|
|
1354
|
+
const dt = {
|
|
1355
1355
|
Continue: 100,
|
|
1356
1356
|
SwitchingProtocols: 101,
|
|
1357
1357
|
Processing: 102,
|
|
@@ -1416,37 +1416,37 @@ const ct = {
|
|
|
1416
1416
|
NotExtended: 510,
|
|
1417
1417
|
NetworkAuthenticationRequired: 511
|
|
1418
1418
|
};
|
|
1419
|
-
Object.entries(
|
|
1420
|
-
|
|
1419
|
+
Object.entries(dt).forEach(([t, e]) => {
|
|
1420
|
+
dt[e] = t;
|
|
1421
1421
|
});
|
|
1422
|
-
function
|
|
1422
|
+
function In(t) {
|
|
1423
1423
|
const e = new de(t), n = bn(de.prototype.request, e);
|
|
1424
1424
|
return v.extend(n, de.prototype, e, { allOwnKeys: !0 }), v.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1425
|
-
return
|
|
1425
|
+
return In(ye(t, o));
|
|
1426
1426
|
}, n;
|
|
1427
1427
|
}
|
|
1428
|
-
const H =
|
|
1428
|
+
const H = In(Fe);
|
|
1429
1429
|
H.Axios = de;
|
|
1430
|
-
H.CanceledError =
|
|
1431
|
-
H.CancelToken =
|
|
1430
|
+
H.CanceledError = Le;
|
|
1431
|
+
H.CancelToken = wt;
|
|
1432
1432
|
H.isCancel = jn;
|
|
1433
|
-
H.VERSION =
|
|
1434
|
-
H.toFormData =
|
|
1433
|
+
H.VERSION = Nn;
|
|
1434
|
+
H.toFormData = Ye;
|
|
1435
1435
|
H.AxiosError = T;
|
|
1436
1436
|
H.Cancel = H.CanceledError;
|
|
1437
1437
|
H.all = function(e) {
|
|
1438
1438
|
return Promise.all(e);
|
|
1439
1439
|
};
|
|
1440
|
-
H.spread =
|
|
1441
|
-
H.isAxiosError =
|
|
1440
|
+
H.spread = Vo;
|
|
1441
|
+
H.isAxiosError = No;
|
|
1442
1442
|
H.mergeConfig = ye;
|
|
1443
1443
|
H.AxiosHeaders = ee;
|
|
1444
|
-
H.formToJSON = (t) =>
|
|
1445
|
-
H.getAdapter =
|
|
1446
|
-
H.HttpStatusCode =
|
|
1444
|
+
H.formToJSON = (t) => Pn(v.isHTMLForm(t) ? new FormData(t) : t);
|
|
1445
|
+
H.getAdapter = Vn.getAdapter;
|
|
1446
|
+
H.HttpStatusCode = dt;
|
|
1447
1447
|
H.default = H;
|
|
1448
1448
|
let we = null;
|
|
1449
|
-
function
|
|
1449
|
+
function Io(t) {
|
|
1450
1450
|
we = H.create(t);
|
|
1451
1451
|
}
|
|
1452
1452
|
function Mo() {
|
|
@@ -1503,7 +1503,7 @@ const oe = {
|
|
|
1503
1503
|
post: zo,
|
|
1504
1504
|
put: qo,
|
|
1505
1505
|
remove: Ho,
|
|
1506
|
-
setupAxios:
|
|
1506
|
+
setupAxios: Io,
|
|
1507
1507
|
getAxiosInstance: Mo
|
|
1508
1508
|
};
|
|
1509
1509
|
var Wo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1519,25 +1519,25 @@ var Mn = { exports: {} };
|
|
|
1519
1519
|
typeof Jo == "function" ? t.exports = s() : n.pluralize = s();
|
|
1520
1520
|
})(Wo, function() {
|
|
1521
1521
|
var n = [], s = [], o = {}, r = {}, a = {};
|
|
1522
|
-
function i(
|
|
1523
|
-
return typeof
|
|
1522
|
+
function i(m) {
|
|
1523
|
+
return typeof m == "string" ? new RegExp("^" + m + "$", "i") : m;
|
|
1524
1524
|
}
|
|
1525
|
-
function d(
|
|
1526
|
-
return
|
|
1525
|
+
function d(m, g) {
|
|
1526
|
+
return m === g ? g : m === m.toLowerCase() ? g.toLowerCase() : m === m.toUpperCase() ? g.toUpperCase() : m[0] === m[0].toUpperCase() ? g.charAt(0).toUpperCase() + g.substr(1).toLowerCase() : g.toLowerCase();
|
|
1527
1527
|
}
|
|
1528
|
-
function h(
|
|
1529
|
-
return
|
|
1528
|
+
function h(m, g) {
|
|
1529
|
+
return m.replace(/\$(\d{1,2})/g, function($, l) {
|
|
1530
1530
|
return g[l] || "";
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
|
-
function p(
|
|
1534
|
-
return
|
|
1533
|
+
function p(m, g) {
|
|
1534
|
+
return m.replace(g[0], function($, l) {
|
|
1535
1535
|
var b = h(g[1], arguments);
|
|
1536
|
-
return d($ === "" ?
|
|
1536
|
+
return d($ === "" ? m[l - 1] : $, b);
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
|
-
function u(
|
|
1540
|
-
if (!
|
|
1539
|
+
function u(m, g, $) {
|
|
1540
|
+
if (!m.length || o.hasOwnProperty(m))
|
|
1541
1541
|
return g;
|
|
1542
1542
|
for (var l = $.length; l--; ) {
|
|
1543
1543
|
var b = $[l];
|
|
@@ -1546,20 +1546,20 @@ var Mn = { exports: {} };
|
|
|
1546
1546
|
}
|
|
1547
1547
|
return g;
|
|
1548
1548
|
}
|
|
1549
|
-
function E(
|
|
1549
|
+
function E(m, g, $) {
|
|
1550
1550
|
return function(l) {
|
|
1551
1551
|
var b = l.toLowerCase();
|
|
1552
|
-
return g.hasOwnProperty(b) ? d(l, b) :
|
|
1552
|
+
return g.hasOwnProperty(b) ? d(l, b) : m.hasOwnProperty(b) ? d(l, m[b]) : u(b, l, $);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
function A(
|
|
1555
|
+
function A(m, g, $, l) {
|
|
1556
1556
|
return function(b) {
|
|
1557
1557
|
var _ = b.toLowerCase();
|
|
1558
|
-
return g.hasOwnProperty(_) ? !0 :
|
|
1558
|
+
return g.hasOwnProperty(_) ? !0 : m.hasOwnProperty(_) ? !1 : u(_, _, $) === _;
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function y(
|
|
1562
|
-
var l = g === 1 ? y.singular(
|
|
1561
|
+
function y(m, g, $) {
|
|
1562
|
+
var l = g === 1 ? y.singular(m) : y.plural(m);
|
|
1563
1563
|
return ($ ? g + " " : "") + l;
|
|
1564
1564
|
}
|
|
1565
1565
|
return y.plural = E(
|
|
@@ -1578,18 +1578,18 @@ var Mn = { exports: {} };
|
|
|
1578
1578
|
r,
|
|
1579
1579
|
a,
|
|
1580
1580
|
s
|
|
1581
|
-
), y.addPluralRule = function(
|
|
1582
|
-
n.push([i(
|
|
1583
|
-
}, y.addSingularRule = function(
|
|
1584
|
-
s.push([i(
|
|
1585
|
-
}, y.addUncountableRule = function(
|
|
1586
|
-
if (typeof
|
|
1587
|
-
o[
|
|
1581
|
+
), y.addPluralRule = function(m, g) {
|
|
1582
|
+
n.push([i(m), g]);
|
|
1583
|
+
}, y.addSingularRule = function(m, g) {
|
|
1584
|
+
s.push([i(m), g]);
|
|
1585
|
+
}, y.addUncountableRule = function(m) {
|
|
1586
|
+
if (typeof m == "string") {
|
|
1587
|
+
o[m.toLowerCase()] = !0;
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
|
-
y.addPluralRule(
|
|
1591
|
-
}, y.addIrregularRule = function(
|
|
1592
|
-
g = g.toLowerCase(),
|
|
1590
|
+
y.addPluralRule(m, "$0"), y.addSingularRule(m, "$0");
|
|
1591
|
+
}, y.addIrregularRule = function(m, g) {
|
|
1592
|
+
g = g.toLowerCase(), m = m.toLowerCase(), a[m] = g, r[g] = m;
|
|
1593
1593
|
}, [
|
|
1594
1594
|
// Pronouns.
|
|
1595
1595
|
["I", "we"],
|
|
@@ -1643,8 +1643,8 @@ var Mn = { exports: {} };
|
|
|
1643
1643
|
["groove", "grooves"],
|
|
1644
1644
|
["pickaxe", "pickaxes"],
|
|
1645
1645
|
["passerby", "passersby"]
|
|
1646
|
-
].forEach(function(
|
|
1647
|
-
return y.addIrregularRule(
|
|
1646
|
+
].forEach(function(m) {
|
|
1647
|
+
return y.addIrregularRule(m[0], m[1]);
|
|
1648
1648
|
}), [
|
|
1649
1649
|
[/s?$/i, "s"],
|
|
1650
1650
|
[/[^\u0000-\u007F]$/i, "$0"],
|
|
@@ -1671,8 +1671,8 @@ var Mn = { exports: {} };
|
|
|
1671
1671
|
[/eaux$/i, "$0"],
|
|
1672
1672
|
[/m[ae]n$/i, "men"],
|
|
1673
1673
|
["thou", "you"]
|
|
1674
|
-
].forEach(function(
|
|
1675
|
-
return y.addPluralRule(
|
|
1674
|
+
].forEach(function(m) {
|
|
1675
|
+
return y.addPluralRule(m[0], m[1]);
|
|
1676
1676
|
}), [
|
|
1677
1677
|
[/s$/i, ""],
|
|
1678
1678
|
[/(ss)$/i, "$1"],
|
|
@@ -1697,8 +1697,8 @@ var Mn = { exports: {} };
|
|
|
1697
1697
|
[/(child)ren$/i, "$1"],
|
|
1698
1698
|
[/(eau)x?$/i, "$1"],
|
|
1699
1699
|
[/men$/i, "man"]
|
|
1700
|
-
].forEach(function(
|
|
1701
|
-
return y.addSingularRule(
|
|
1700
|
+
].forEach(function(m) {
|
|
1701
|
+
return y.addSingularRule(m[0], m[1]);
|
|
1702
1702
|
}), [
|
|
1703
1703
|
// Singular words with no plurals.
|
|
1704
1704
|
"adulthood",
|
|
@@ -1812,18 +1812,18 @@ var Mn = { exports: {} };
|
|
|
1812
1812
|
].forEach(y.addUncountableRule), y;
|
|
1813
1813
|
});
|
|
1814
1814
|
})(Mn);
|
|
1815
|
-
var
|
|
1816
|
-
const Un = /* @__PURE__ */ Qo(
|
|
1817
|
-
class
|
|
1818
|
-
constructor(e, n, s =
|
|
1815
|
+
var Yo = Mn.exports;
|
|
1816
|
+
const Un = /* @__PURE__ */ Qo(Yo), zn = (t) => t.replace(/([-_][a-z])/gi, (e) => e.toUpperCase().replace("-", "").replace("_", "")), Ie = "GET_LIST", Me = "GET_ONE", Ue = "CREATE", ze = "UPDATE", me = "REMOVE", pt = "RESTORE", Hn = "ENABLE", Go = [Ie, Me, Ue, ze, me, Hn];
|
|
1817
|
+
class Ko {
|
|
1818
|
+
constructor(e, n, s = Go) {
|
|
1819
1819
|
this.side = e == "platform" ? "admin" : e, this.domain = n, this.resources = Un(n), this.operations = s, this.operations.forEach((o) => {
|
|
1820
1820
|
const r = zn(o.toLowerCase());
|
|
1821
1821
|
this[r] = this[`_${r}`];
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
1824
1824
|
_getList(e) {
|
|
1825
|
-
if (!this.operations.includes(
|
|
1826
|
-
console.log(`${this.side}/${this.domain} 不支持 ${
|
|
1825
|
+
if (!this.operations.includes(Ie)) {
|
|
1826
|
+
console.log(`${this.side}/${this.domain} 不支持 ${Ie} 操作`);
|
|
1827
1827
|
return;
|
|
1828
1828
|
}
|
|
1829
1829
|
return oe.get(`${this.side}/${this.resources}`, e);
|
|
@@ -1857,8 +1857,8 @@ class Yo {
|
|
|
1857
1857
|
return oe.remove(`${this.side}/${this.resources}/${e.id}`, e);
|
|
1858
1858
|
}
|
|
1859
1859
|
_restore(e) {
|
|
1860
|
-
if (!this.operations.includes(
|
|
1861
|
-
console.log(`${this.side}/${this.domain} 不支持 ${
|
|
1860
|
+
if (!this.operations.includes(pt)) {
|
|
1861
|
+
console.log(`${this.side}/${this.domain} 不支持 ${pt} 操作`);
|
|
1862
1862
|
return;
|
|
1863
1863
|
}
|
|
1864
1864
|
return oe.put(`${this.side}/${this.resources}/${e.id}/restore`, e);
|
|
@@ -1884,14 +1884,14 @@ class Xo {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
const al = {
|
|
1887
|
-
Client:
|
|
1887
|
+
Client: Ko,
|
|
1888
1888
|
ReadOnlyClient: Xo,
|
|
1889
|
-
GET_LIST:
|
|
1889
|
+
GET_LIST: Ie,
|
|
1890
1890
|
GET_ONE: Me,
|
|
1891
1891
|
CREATE: Ue,
|
|
1892
1892
|
UPDATE: ze,
|
|
1893
1893
|
REMOVE: me,
|
|
1894
|
-
RESTORE:
|
|
1894
|
+
RESTORE: pt,
|
|
1895
1895
|
ENABLE: Hn
|
|
1896
1896
|
}, Zo = (t, e, n) => {
|
|
1897
1897
|
const s = t[e];
|
|
@@ -1967,7 +1967,7 @@ class ta {
|
|
|
1967
1967
|
function na(t, e, n) {
|
|
1968
1968
|
console.warn(`${t}.${e} => ${n}`);
|
|
1969
1969
|
}
|
|
1970
|
-
const
|
|
1970
|
+
const st = {
|
|
1971
1971
|
select: { config: "select" },
|
|
1972
1972
|
"belongs-to": { config: "belongs-to" },
|
|
1973
1973
|
boolean: { config: "boolean" },
|
|
@@ -2007,30 +2007,30 @@ const nt = {
|
|
|
2007
2007
|
"radio-group": { config: "radio-group" },
|
|
2008
2008
|
component: { config: "component" }
|
|
2009
2009
|
};
|
|
2010
|
-
async function
|
|
2011
|
-
const s = await Zo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2010
|
+
async function Gt(t, e, n) {
|
|
2011
|
+
const s = await Zo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-BgIHsuau.js"), "./field/belongs-to/config.js": () => import("./config-DBWaP3c8.js"), "./field/boolean/config.js": () => import("./config-CL0sbSSk.js"), "./field/cascader/config.js": () => import("./config-C9BwlRNg.js"), "./field/component/config.js": () => import("./config-UhlNBDt2.js"), "./field/date/config.js": () => import("./config-4opkUG_U.js"), "./field/datetime/config.js": () => import("./config-BbMhy1Am.js"), "./field/image/config.js": () => import("./config-jNNoK2HQ.js"), "./field/images/config.js": () => import("./config-nq8OiIpn.js"), "./field/json/config.js": () => import("./config-BnV5g1r6.js"), "./field/radio-group/config.js": () => import("./config-B7NLL7Za.js"), "./field/rich-text/config.js": () => import("./config-B_jV9FcB.js"), "./field/row-id/config.js": () => import("./config-DmxS5C0R.js"), "./field/select/config.js": () => import("./config-CXX_cyT5.js"), "./field/string/config.js": () => import("./config-BOL73GVE.js"), "./field/switch/config.js": () => import("./config-Ct-kk8lN.js"), "./field/text/config.js": () => import("./config-Bf2H_VXi.js"), "./field/time/config.js": () => import("./config-POLpsRRx.js"), "./field/tree-select/config.js": () => import("./config-DD7Ikbt-.js") }), `./field/${t}/config.js`, 4);
|
|
2012
2012
|
return new s.default(e, n);
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function Kt(t, e = "unknown") {
|
|
2015
2015
|
return t.map((s) => {
|
|
2016
2016
|
if (s instanceof ta)
|
|
2017
2017
|
return s;
|
|
2018
|
-
if (s.code === "id" ? s.type = "row-id" : s.component && (s.type = "component"), Object.keys(
|
|
2019
|
-
const o =
|
|
2018
|
+
if (s.code === "id" ? s.type = "row-id" : s.component && (s.type = "component"), Object.keys(st).includes(s.type)) {
|
|
2019
|
+
const o = st[s.type];
|
|
2020
2020
|
return o.deprecated && na(
|
|
2021
2021
|
s.domain || e,
|
|
2022
2022
|
s.code,
|
|
2023
2023
|
o.deprecated
|
|
2024
|
-
),
|
|
2025
|
-
|
|
2024
|
+
), Gt(
|
|
2025
|
+
st[s.type].config,
|
|
2026
2026
|
s,
|
|
2027
2027
|
s.domain || e
|
|
2028
2028
|
);
|
|
2029
2029
|
}
|
|
2030
|
-
return
|
|
2030
|
+
return Gt("string", s, s.domain || e);
|
|
2031
2031
|
});
|
|
2032
2032
|
}
|
|
2033
|
-
let
|
|
2033
|
+
let ft = {
|
|
2034
2034
|
name: "管理后台",
|
|
2035
2035
|
logo: "",
|
|
2036
2036
|
sideMenus: {},
|
|
@@ -2039,7 +2039,7 @@ let pt = {
|
|
|
2039
2039
|
idempotentUrl: ""
|
|
2040
2040
|
}, Ce = {};
|
|
2041
2041
|
function rl(t) {
|
|
2042
|
-
|
|
2042
|
+
ft = { ...ft, ...t }, Ce = t.domainConfigs;
|
|
2043
2043
|
}
|
|
2044
2044
|
function il(t) {
|
|
2045
2045
|
Object.keys(Ce).forEach((e) => {
|
|
@@ -2051,12 +2051,12 @@ function il(t) {
|
|
|
2051
2051
|
});
|
|
2052
2052
|
}
|
|
2053
2053
|
function He() {
|
|
2054
|
-
return
|
|
2054
|
+
return ft;
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function Et() {
|
|
2057
2057
|
return Ce;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function $t(t, e) {
|
|
2060
2060
|
return Ce[t][e].load().then((n) => {
|
|
2061
2061
|
const s = n.default;
|
|
2062
2062
|
return Promise.all(s.fields).then((o) => (s.fields = o, s));
|
|
@@ -2066,10 +2066,10 @@ class sa {
|
|
|
2066
2066
|
constructor(e, n) {
|
|
2067
2067
|
this.side = e;
|
|
2068
2068
|
const s = n.config ? n.config : n;
|
|
2069
|
-
this.code = s.code, this.fields =
|
|
2069
|
+
this.code = s.code, this.fields = Kt(s.fields, s.code), !s.simple && (this.name = Et()[e][s.code].name, this.filters = s.filters || [], this.coverField = s.coverField, this.nameField = s.nameField || "name", this.showSubmit = s.showSubmit || !0, this.showEdit = this.setupShowEdit(s.showEdit), this.submitConfirm = s.submitConfirm, this.removeConfirm = s.removeConfirm, this.showCreate = this.setupShowCreate(s.showCreate), this.hasMany = this.createHasMany(n), this.hasOne = this.createHasOne(n), this.detailSubType = s.detailSubType ? "list" : "tabs", this.formatName = this.createFormatName(n.formatName), this.rest = this.createRestClient(n.rest), this.rowActions = this.setupRowActions(n), this.pageActions = this.setupPageActions(n), this.actionsWidth = n.actionsWidth || 150, this.formHook = n.form || {}, this.filterHook = n.filterForm || {}, this.restRepeat = this.restRepeat(n.restRepeat), this.btnVisible = n.btnVisible || {}, this.operations = this.setupOperations(), this.formLayout = n.formLayout || [], this.displayMode = n.displayMode || {});
|
|
2070
2070
|
}
|
|
2071
2071
|
wrapFields(e, n) {
|
|
2072
|
-
return
|
|
2072
|
+
return Kt(e, n);
|
|
2073
2073
|
}
|
|
2074
2074
|
createRestClient(e) {
|
|
2075
2075
|
return e;
|
|
@@ -2158,7 +2158,7 @@ class sa {
|
|
|
2158
2158
|
function oa(t, e) {
|
|
2159
2159
|
return new sa(t, e);
|
|
2160
2160
|
}
|
|
2161
|
-
const
|
|
2161
|
+
const V = (t, e) => {
|
|
2162
2162
|
const n = t.__vccOpts || t;
|
|
2163
2163
|
for (const [s, o] of e)
|
|
2164
2164
|
n[s] = o;
|
|
@@ -2172,7 +2172,7 @@ const N = (t, e) => {
|
|
|
2172
2172
|
},
|
|
2173
2173
|
setup(t) {
|
|
2174
2174
|
const e = t;
|
|
2175
|
-
return (n, s) => (c(), S(
|
|
2175
|
+
return (n, s) => (c(), S(f(mn), { shadow: "never" }, De({
|
|
2176
2176
|
default: w(() => [
|
|
2177
2177
|
J(n.$slots, "default", {}, void 0, !0)
|
|
2178
2178
|
]),
|
|
@@ -2189,7 +2189,7 @@ const N = (t, e) => {
|
|
|
2189
2189
|
} : void 0
|
|
2190
2190
|
]), 1024));
|
|
2191
2191
|
}
|
|
2192
|
-
}, la = /* @__PURE__ */
|
|
2192
|
+
}, la = /* @__PURE__ */ V(ia, [["__scopeId", "data-v-c5513c07"]]), ua = { key: 0 }, ca = { key: 1 }, da = { key: 0 }, pa = { key: 1 }, fa = {
|
|
2193
2193
|
__name: "Statistic",
|
|
2194
2194
|
props: {
|
|
2195
2195
|
title: {
|
|
@@ -2216,26 +2216,26 @@ const N = (t, e) => {
|
|
|
2216
2216
|
const a = qe("RouterLink");
|
|
2217
2217
|
return _e((c(), O("div", {
|
|
2218
2218
|
class: "container",
|
|
2219
|
-
style:
|
|
2219
|
+
style: Ge(`background: ${f(n)}; padding: ${f(s)}`)
|
|
2220
2220
|
}, [
|
|
2221
2221
|
C("div", {
|
|
2222
2222
|
class: "item-box-data mono-data",
|
|
2223
|
-
style:
|
|
2223
|
+
style: Ge(`text-align: ${e.align};`)
|
|
2224
2224
|
}, [
|
|
2225
2225
|
e.value != null ? (c(), O("span", ua, B(e.value), 1)) : (c(), O("span", ca, "..."))
|
|
2226
2226
|
], 4),
|
|
2227
2227
|
C("div", {
|
|
2228
2228
|
class: "item-box-tip",
|
|
2229
|
-
style:
|
|
2229
|
+
style: Ge(`text-align: ${e.align};`)
|
|
2230
2230
|
}, [
|
|
2231
2231
|
e.link ? (c(), O("span", da, [
|
|
2232
2232
|
x(a, {
|
|
2233
2233
|
to: e.link
|
|
2234
2234
|
}, {
|
|
2235
2235
|
default: w(() => [
|
|
2236
|
-
x(
|
|
2236
|
+
x(f(as), { type: "primary" }, {
|
|
2237
2237
|
default: w(() => [
|
|
2238
|
-
|
|
2238
|
+
N(B(e.title), 1)
|
|
2239
2239
|
]),
|
|
2240
2240
|
_: 1
|
|
2241
2241
|
})
|
|
@@ -2245,11 +2245,11 @@ const N = (t, e) => {
|
|
|
2245
2245
|
])) : (c(), O("span", pa, B(e.title), 1))
|
|
2246
2246
|
], 4)
|
|
2247
2247
|
], 4)), [
|
|
2248
|
-
[
|
|
2248
|
+
[f(ve), e.value == null]
|
|
2249
2249
|
]);
|
|
2250
2250
|
};
|
|
2251
2251
|
}
|
|
2252
|
-
}, ma = /* @__PURE__ */
|
|
2252
|
+
}, ma = /* @__PURE__ */ V(fa, [["__scopeId", "data-v-73228f1a"]]), ha = {
|
|
2253
2253
|
__name: "StatisticCard",
|
|
2254
2254
|
props: {
|
|
2255
2255
|
title: {
|
|
@@ -2287,16 +2287,16 @@ const N = (t, e) => {
|
|
|
2287
2287
|
_: 1
|
|
2288
2288
|
}));
|
|
2289
2289
|
}
|
|
2290
|
-
}, ll = /* @__PURE__ */
|
|
2290
|
+
}, ll = /* @__PURE__ */ V(ha, [["__scopeId", "data-v-f338c407"]]), ga = {}, ya = { style: { padding: "20px 0" } };
|
|
2291
2291
|
function _a(t, e) {
|
|
2292
2292
|
return c(), O("div", ya, [
|
|
2293
2293
|
J(t.$slots, "default")
|
|
2294
2294
|
]);
|
|
2295
2295
|
}
|
|
2296
|
-
const ul = /* @__PURE__ */
|
|
2296
|
+
const ul = /* @__PURE__ */ V(ga, [["render", _a]]), va = {
|
|
2297
2297
|
__name: "DashboardRow",
|
|
2298
2298
|
setup(t) {
|
|
2299
|
-
return (e, n) => (c(), S(
|
|
2299
|
+
return (e, n) => (c(), S(f(xe), {
|
|
2300
2300
|
style: { "margin-bottom": "20px" },
|
|
2301
2301
|
class: "row"
|
|
2302
2302
|
}, {
|
|
@@ -2306,7 +2306,7 @@ const ul = /* @__PURE__ */ N(ga, [["render", _a]]), va = {
|
|
|
2306
2306
|
_: 3
|
|
2307
2307
|
}));
|
|
2308
2308
|
}
|
|
2309
|
-
}, cl = /* @__PURE__ */
|
|
2309
|
+
}, cl = /* @__PURE__ */ V(va, [["__scopeId", "data-v-5b091760"]]);
|
|
2310
2310
|
function Q(t) {
|
|
2311
2311
|
const e = { ...t.query, ...t.params };
|
|
2312
2312
|
if (t.params.domain && t.params.id) {
|
|
@@ -2319,7 +2319,7 @@ function ba(t) {
|
|
|
2319
2319
|
const e = t.length, n = Math.floor(24 / e);
|
|
2320
2320
|
return { type: "row", cols: t.map((o) => ({ type: "col", span: n, field: o })) };
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function mt(t) {
|
|
2323
2323
|
return t.map((e) => ba(e));
|
|
2324
2324
|
}
|
|
2325
2325
|
const wa = {
|
|
@@ -2329,15 +2329,15 @@ const wa = {
|
|
|
2329
2329
|
fields: Array
|
|
2330
2330
|
},
|
|
2331
2331
|
setup(t) {
|
|
2332
|
-
const e = t, n =
|
|
2332
|
+
const e = t, n = I(() => {
|
|
2333
2333
|
if (e.layout.length == 0) {
|
|
2334
2334
|
if (e.fields.length <= 6) {
|
|
2335
2335
|
const a = o(e.fields, 1);
|
|
2336
|
-
return
|
|
2336
|
+
return mt(a);
|
|
2337
2337
|
}
|
|
2338
2338
|
console.log(e.fields);
|
|
2339
2339
|
const r = o(e.fields, 2);
|
|
2340
|
-
return
|
|
2340
|
+
return mt(r);
|
|
2341
2341
|
}
|
|
2342
2342
|
return e.layout;
|
|
2343
2343
|
});
|
|
@@ -2351,9 +2351,9 @@ const wa = {
|
|
|
2351
2351
|
return d;
|
|
2352
2352
|
}
|
|
2353
2353
|
return (r, a) => (c(), O("div", null, [
|
|
2354
|
-
(c(!0), O(
|
|
2354
|
+
(c(!0), O(P, null, q(n.value, (i) => (c(), S(f(xe), { gutter: 20 }, {
|
|
2355
2355
|
default: w(() => [
|
|
2356
|
-
(c(!0), O(
|
|
2356
|
+
(c(!0), O(P, null, q(i.cols, (d) => (c(), S(f($e), {
|
|
2357
2357
|
span: s(d.field).wholeRow ? 24 : d.span
|
|
2358
2358
|
}, {
|
|
2359
2359
|
default: w(() => [
|
|
@@ -2384,7 +2384,7 @@ const wa = {
|
|
|
2384
2384
|
},
|
|
2385
2385
|
emits: ["submit", "remove"],
|
|
2386
2386
|
setup(t, { emit: e }) {
|
|
2387
|
-
const n = U(), s = Q(n), o = e, r = D(!1), a = t, i =
|
|
2387
|
+
const n = U(), s = Q(n), o = e, r = D(!1), a = t, i = mt(a.config.formLayout || []), d = Oe({ ...a.data }), h = D(null), p = a.config.fields.filter((b) => b.rules).reduce((b, _) => (b[_.code] = A(_.rules), b), {}), u = I(l), E = I(() => a.config.fields.filter((b) => {
|
|
2388
2388
|
const _ = b.editable(d, s), k = b.visible(d, s);
|
|
2389
2389
|
return b.disabled = k && !_, _ || k;
|
|
2390
2390
|
}));
|
|
@@ -2396,13 +2396,13 @@ const wa = {
|
|
|
2396
2396
|
r.value = !1;
|
|
2397
2397
|
});
|
|
2398
2398
|
}
|
|
2399
|
-
async function
|
|
2399
|
+
async function m() {
|
|
2400
2400
|
await h.value.validate(async (b, _) => {
|
|
2401
|
-
var
|
|
2401
|
+
var K, M;
|
|
2402
2402
|
if (!b)
|
|
2403
2403
|
return console.log("error submit!", _), !1;
|
|
2404
|
-
const k = (
|
|
2405
|
-
if (k && (R[k] = (M = R[k]) == null ? void 0 : M.map((
|
|
2404
|
+
const k = (K = a.config.fields.find((Y) => ["images", "attachments", "attachment"].includes(Y.type))) == null ? void 0 : K.code, R = { ...d };
|
|
2405
|
+
if (k && (R[k] = (M = R[k]) == null ? void 0 : M.map((Y) => Y.id)), a.config.submitConfirm) {
|
|
2406
2406
|
await a.config.submitConfirm(R) && y(R);
|
|
2407
2407
|
return;
|
|
2408
2408
|
}
|
|
@@ -2439,8 +2439,8 @@ const wa = {
|
|
|
2439
2439
|
() => ({ ...d }),
|
|
2440
2440
|
(b, _) => {
|
|
2441
2441
|
const R = Object.keys(b).filter((M) => _[M] !== b[M]).map((M) => {
|
|
2442
|
-
var
|
|
2443
|
-
return (
|
|
2442
|
+
var Y;
|
|
2443
|
+
return (Y = h.value) == null || Y.clearValidate(M), {
|
|
2444
2444
|
field: M,
|
|
2445
2445
|
newValue: b[M],
|
|
2446
2446
|
oldValue: _[M]
|
|
@@ -2458,22 +2458,22 @@ const wa = {
|
|
|
2458
2458
|
});
|
|
2459
2459
|
},
|
|
2460
2460
|
{ immediate: !0 }
|
|
2461
|
-
), (b, _) => (c(), S(
|
|
2461
|
+
), (b, _) => (c(), S(f(hn), {
|
|
2462
2462
|
id: "form",
|
|
2463
2463
|
ref_key: "formRef",
|
|
2464
2464
|
ref: h,
|
|
2465
2465
|
model: d,
|
|
2466
2466
|
"label-width": "100px",
|
|
2467
2467
|
"label-position": "top",
|
|
2468
|
-
rules:
|
|
2468
|
+
rules: f(p)
|
|
2469
2469
|
}, {
|
|
2470
2470
|
default: w(() => [
|
|
2471
2471
|
x(wa, {
|
|
2472
|
-
layout:
|
|
2472
|
+
layout: f(i),
|
|
2473
2473
|
fields: E.value
|
|
2474
2474
|
}, {
|
|
2475
2475
|
default: w(({ field: k }) => [
|
|
2476
|
-
(c(), S(
|
|
2476
|
+
(c(), S(f(ot), {
|
|
2477
2477
|
key: k.code,
|
|
2478
2478
|
label: k.label,
|
|
2479
2479
|
prop: k.code
|
|
@@ -2489,7 +2489,7 @@ const wa = {
|
|
|
2489
2489
|
"form-data": d,
|
|
2490
2490
|
"domain-config": a.config,
|
|
2491
2491
|
row: d
|
|
2492
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (c(), S(
|
|
2492
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (c(), S(f(rs), {
|
|
2493
2493
|
key: 1,
|
|
2494
2494
|
title: `未找到 ${k.code}(${k.type}) 的编辑器`,
|
|
2495
2495
|
type: "error",
|
|
@@ -2504,41 +2504,41 @@ const wa = {
|
|
|
2504
2504
|
_: 1
|
|
2505
2505
|
}, 8, ["layout", "fields"]),
|
|
2506
2506
|
C("div", $a, [
|
|
2507
|
-
d.id && !d.deletedAt && a.removable ? (c(), S(
|
|
2507
|
+
d.id && !d.deletedAt && a.removable ? (c(), S(f(ne), {
|
|
2508
2508
|
key: 0,
|
|
2509
2509
|
size: "default",
|
|
2510
2510
|
type: "danger",
|
|
2511
2511
|
onClick: $
|
|
2512
2512
|
}, {
|
|
2513
2513
|
default: w(() => [
|
|
2514
|
-
|
|
2514
|
+
N(" 删除 ")
|
|
2515
2515
|
]),
|
|
2516
2516
|
_: 1
|
|
2517
2517
|
})) : (c(), O("div", Sa)),
|
|
2518
|
-
u.value ? (c(), S(
|
|
2518
|
+
u.value ? (c(), S(f(ne), {
|
|
2519
2519
|
key: 2,
|
|
2520
2520
|
size: "default",
|
|
2521
2521
|
type: "primary",
|
|
2522
2522
|
loading: r.value,
|
|
2523
|
-
onClick:
|
|
2523
|
+
onClick: m
|
|
2524
2524
|
}, {
|
|
2525
2525
|
default: w(() => [
|
|
2526
|
-
|
|
2526
|
+
N(" 提交 ")
|
|
2527
2527
|
]),
|
|
2528
2528
|
_: 1
|
|
2529
|
-
}, 8, ["loading"])) :
|
|
2529
|
+
}, 8, ["loading"])) : L("", !0)
|
|
2530
2530
|
])
|
|
2531
2531
|
]),
|
|
2532
2532
|
_: 1
|
|
2533
2533
|
}, 8, ["model", "rules"]));
|
|
2534
2534
|
}
|
|
2535
|
-
}, xa = /* @__PURE__ */
|
|
2535
|
+
}, xa = /* @__PURE__ */ V(Oa, [["__scopeId", "data-v-e33a452e"]]);
|
|
2536
2536
|
function ka() {
|
|
2537
2537
|
return He().idempotentUrl ? oe.get(He().idempotentUrl).then((t) => t.data) : "";
|
|
2538
2538
|
}
|
|
2539
2539
|
const Se = {
|
|
2540
2540
|
getValue: ka
|
|
2541
|
-
},
|
|
2541
|
+
}, St = {
|
|
2542
2542
|
__name: "FormEditor",
|
|
2543
2543
|
props: {
|
|
2544
2544
|
modelValue: {
|
|
@@ -2560,22 +2560,22 @@ const Se = {
|
|
|
2560
2560
|
},
|
|
2561
2561
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2562
2562
|
setup(t, { emit: e }) {
|
|
2563
|
-
const n = U(), s = Q(n), o = e, r = t, a = D(r.data), i =
|
|
2563
|
+
const n = U(), s = Q(n), o = e, r = t, a = D(r.data), i = I(() => ({ ...a.value, idempotentToken: h.value })), d = I(() => r.config.fields.filter((m) => m.visible(i, s)).length >= 6 ? "60%" : "40%"), h = D(""), p = I({
|
|
2564
2564
|
get() {
|
|
2565
2565
|
return r.modelValue;
|
|
2566
2566
|
},
|
|
2567
2567
|
set(y) {
|
|
2568
2568
|
o("update:modelValue", y);
|
|
2569
2569
|
}
|
|
2570
|
-
}), u =
|
|
2571
|
-
function E(y,
|
|
2572
|
-
a.value =
|
|
2570
|
+
}), u = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
|
|
2571
|
+
function E(y, m, g) {
|
|
2572
|
+
a.value = m, o("submit", y, async () => {
|
|
2573
2573
|
h.value = await Se.getValue(), g();
|
|
2574
2574
|
});
|
|
2575
2575
|
}
|
|
2576
|
-
function A(y,
|
|
2576
|
+
function A(y, m) {
|
|
2577
2577
|
o("remove", y, async () => {
|
|
2578
|
-
h.value = await Se.getValue(),
|
|
2578
|
+
h.value = await Se.getValue(), m();
|
|
2579
2579
|
});
|
|
2580
2580
|
}
|
|
2581
2581
|
return j(
|
|
@@ -2584,9 +2584,9 @@ const Se = {
|
|
|
2584
2584
|
h.value = await Se.getValue();
|
|
2585
2585
|
},
|
|
2586
2586
|
{ immediate: !0 }
|
|
2587
|
-
), (y,
|
|
2587
|
+
), (y, m) => (c(), S(f(ls), {
|
|
2588
2588
|
modelValue: p.value,
|
|
2589
|
-
"onUpdate:modelValue":
|
|
2589
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => p.value = g),
|
|
2590
2590
|
width: d.value,
|
|
2591
2591
|
top: "20px",
|
|
2592
2592
|
title: u.value,
|
|
@@ -2669,13 +2669,13 @@ const Se = {
|
|
|
2669
2669
|
console.log("请求失败"), u();
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
return (p, u) => (c(), S(
|
|
2672
|
+
return (p, u) => (c(), S(f(ne), {
|
|
2673
2673
|
type: e.type,
|
|
2674
2674
|
onClick: d
|
|
2675
2675
|
}, {
|
|
2676
2676
|
default: w(() => [
|
|
2677
|
-
|
|
2678
|
-
s.value ? (c(), S(
|
|
2677
|
+
N(B(e.text) + " ", 1),
|
|
2678
|
+
s.value ? (c(), S(St, {
|
|
2679
2679
|
key: 0,
|
|
2680
2680
|
modelValue: s.value,
|
|
2681
2681
|
"onUpdate:modelValue": u[0] || (u[0] = (E) => s.value = E),
|
|
@@ -2683,7 +2683,7 @@ const Se = {
|
|
|
2683
2683
|
config: o.value,
|
|
2684
2684
|
data: n.value,
|
|
2685
2685
|
onSubmit: h
|
|
2686
|
-
}, null, 8, ["modelValue", "title", "config", "data"])) :
|
|
2686
|
+
}, null, 8, ["modelValue", "title", "config", "data"])) : L("", !0)
|
|
2687
2687
|
]),
|
|
2688
2688
|
_: 1
|
|
2689
2689
|
}, 8, ["type"]));
|
|
@@ -2700,7 +2700,7 @@ const Se = {
|
|
|
2700
2700
|
const e = t;
|
|
2701
2701
|
return (n, s) => (c(), O("span", Aa, B(e.text), 1));
|
|
2702
2702
|
}
|
|
2703
|
-
}, pl = /* @__PURE__ */
|
|
2703
|
+
}, pl = /* @__PURE__ */ V(Ca, [["__scopeId", "data-v-c97e855f"]]), fl = {
|
|
2704
2704
|
__name: "FieldEditor",
|
|
2705
2705
|
props: {
|
|
2706
2706
|
modelValue: {
|
|
@@ -2714,7 +2714,7 @@ const Se = {
|
|
|
2714
2714
|
},
|
|
2715
2715
|
emits: ["update:modelValue"],
|
|
2716
2716
|
setup(t, { emit: e }) {
|
|
2717
|
-
const n = Zn(() => import("./ImagesUploader-
|
|
2717
|
+
const n = Zn(() => import("./ImagesUploader-L2-m9pOt.js")), s = He().fileUploadUrl, o = e, r = t, a = Oe({ value: r.modelValue }), i = r.field.converter;
|
|
2718
2718
|
function d(p) {
|
|
2719
2719
|
const u = a.value.findIndex((E) => E.id === p.id);
|
|
2720
2720
|
u >= 0 && (a.value.splice(u, 1), o("update:modelValue", a.value));
|
|
@@ -2741,7 +2741,7 @@ const Se = {
|
|
|
2741
2741
|
},
|
|
2742
2742
|
{ immediate: !0 }
|
|
2743
2743
|
), (p, u) => (c(), O("div", null, [
|
|
2744
|
-
x(
|
|
2744
|
+
x(f(n), {
|
|
2745
2745
|
images: a.value,
|
|
2746
2746
|
props: r.field.props,
|
|
2747
2747
|
onOnUpload: h,
|
|
@@ -2749,7 +2749,7 @@ const Se = {
|
|
|
2749
2749
|
}, null, 8, ["images", "props"])
|
|
2750
2750
|
]));
|
|
2751
2751
|
}
|
|
2752
|
-
}, ce =
|
|
2752
|
+
}, ce = yt("data-table-mode", {
|
|
2753
2753
|
state: () => ({
|
|
2754
2754
|
mode: "list",
|
|
2755
2755
|
created: -1,
|
|
@@ -2770,7 +2770,7 @@ const Se = {
|
|
|
2770
2770
|
this.removed = Date.now();
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
|
-
}),
|
|
2773
|
+
}), Pe = (t, e, n, s) => yt(`${e}-${t}-filter`, {
|
|
2774
2774
|
state: () => ({
|
|
2775
2775
|
filters: {}
|
|
2776
2776
|
}),
|
|
@@ -2787,30 +2787,30 @@ const Se = {
|
|
|
2787
2787
|
},
|
|
2788
2788
|
actions: {
|
|
2789
2789
|
change(o) {
|
|
2790
|
-
this.filters = { ...this.filters, ...o },
|
|
2790
|
+
this.filters = { ...this.filters, ...o }, ht(t, e, this.filters);
|
|
2791
2791
|
},
|
|
2792
2792
|
$reset(o) {
|
|
2793
|
-
this.filters = { isDeleted: this.filters.isDeleted, ...o },
|
|
2793
|
+
this.filters = { isDeleted: this.filters.isDeleted, ...o }, ht(t, e, this.filters);
|
|
2794
2794
|
}
|
|
2795
2795
|
}
|
|
2796
2796
|
});
|
|
2797
2797
|
function Da(t, e, n, s, o) {
|
|
2798
2798
|
let a = { ...Ra(t, e, s), ...n };
|
|
2799
|
-
return o != null && o.setupCreate && (a = o.setupCreate(a)),
|
|
2799
|
+
return o != null && o.setupCreate && (a = o.setupCreate(a)), ht(t, e, a);
|
|
2800
2800
|
}
|
|
2801
2801
|
function Ra(t, e, n) {
|
|
2802
2802
|
const s = `filters---${e}---${t}`;
|
|
2803
2803
|
let o = {};
|
|
2804
2804
|
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), {});
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function ht(t, e, n) {
|
|
2807
2807
|
const s = `filters---${e}---${t}`, o = Ta(n);
|
|
2808
2808
|
return localStorage.setItem(s, JSON.stringify(o)), o;
|
|
2809
2809
|
}
|
|
2810
2810
|
function Ta(t) {
|
|
2811
2811
|
return Object.keys(t).filter((e) => t[e] != null && t[e] != null && t[e] != "").reduce((e, n) => (e[n] = t[n], e), {});
|
|
2812
2812
|
}
|
|
2813
|
-
const Fa = { class: "sorters-box" },
|
|
2813
|
+
const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-label" }, ja = { class: "sorters-arrow-box" }, Ba = ["onClick"], Va = ["onClick"], Na = {
|
|
2814
2814
|
__name: "FiltersSorters",
|
|
2815
2815
|
props: {
|
|
2816
2816
|
sorters: {
|
|
@@ -2862,25 +2862,25 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
2862
2862
|
);
|
|
2863
2863
|
}
|
|
2864
2864
|
return (d, h) => (c(), O("div", Fa, [
|
|
2865
|
-
(c(!0), O(
|
|
2865
|
+
(c(!0), O(P, null, q(o.value, (p, u) => (c(), O("div", {
|
|
2866
2866
|
class: "sorters-item",
|
|
2867
2867
|
onClick: (E) => i(u, "")
|
|
2868
2868
|
}, [
|
|
2869
|
-
C("div",
|
|
2869
|
+
C("div", Pa, B(p.name), 1),
|
|
2870
2870
|
C("div", ja, [
|
|
2871
2871
|
C("i", {
|
|
2872
2872
|
class: he(["sort-caret ascending", p.order === "ASC" ? "ascending-active" : ""]),
|
|
2873
|
-
onClick:
|
|
2873
|
+
onClick: Tt((E) => i(u, "ASC"), ["stop"])
|
|
2874
2874
|
}, null, 10, Ba),
|
|
2875
2875
|
C("i", {
|
|
2876
2876
|
class: he(["sort-caret descending", p.order === "DESC" ? "descending-active" : ""]),
|
|
2877
|
-
onClick:
|
|
2878
|
-
}, null, 10,
|
|
2877
|
+
onClick: Tt((E) => i(u, "DESC"), ["stop"])
|
|
2878
|
+
}, null, 10, Va)
|
|
2879
2879
|
])
|
|
2880
|
-
], 8,
|
|
2880
|
+
], 8, La))), 256))
|
|
2881
2881
|
]));
|
|
2882
2882
|
}
|
|
2883
|
-
},
|
|
2883
|
+
}, Ia = /* @__PURE__ */ V(Na, [["__scopeId", "data-v-fa20b02a"]]), Ma = { class: "ranges-box" }, Ua = { class: "range-item" }, za = { class: "range-label" }, Ha = { class: "range-input-box" }, qa = {
|
|
2884
2884
|
__name: "FiltersRange",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
ranges: {
|
|
@@ -2921,10 +2921,10 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
2921
2921
|
);
|
|
2922
2922
|
}
|
|
2923
2923
|
return r(), (i, d) => (c(), O("div", Ma, [
|
|
2924
|
-
(c(!0), O(
|
|
2924
|
+
(c(!0), O(P, null, q(o, (h) => (c(), O("div", Ua, [
|
|
2925
2925
|
C("div", za, B(h.name), 1),
|
|
2926
2926
|
C("div", Ha, [
|
|
2927
|
-
x(
|
|
2927
|
+
x(f(Pt), {
|
|
2928
2928
|
modelValue: h.min,
|
|
2929
2929
|
"onUpdate:modelValue": (p) => h.min = p,
|
|
2930
2930
|
"controls-position": "right",
|
|
@@ -2933,7 +2933,7 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
2933
2933
|
a(p, h.field, "min");
|
|
2934
2934
|
}
|
|
2935
2935
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
|
|
2936
|
-
x(
|
|
2936
|
+
x(f(Pt), {
|
|
2937
2937
|
modelValue: h.max,
|
|
2938
2938
|
"onUpdate:modelValue": (p) => h.max = p,
|
|
2939
2939
|
"controls-position": "right",
|
|
@@ -2947,7 +2947,7 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
2947
2947
|
]))), 256))
|
|
2948
2948
|
]));
|
|
2949
2949
|
}
|
|
2950
|
-
}, Wa = /* @__PURE__ */
|
|
2950
|
+
}, Wa = /* @__PURE__ */ V(qa, [["__scopeId", "data-v-30f46526"]]), Qa = { key: 0 }, Ja = {
|
|
2951
2951
|
__name: "FiltersEditor",
|
|
2952
2952
|
props: {
|
|
2953
2953
|
settings: {
|
|
@@ -2959,7 +2959,7 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
2959
2959
|
label: "name",
|
|
2960
2960
|
children: "children",
|
|
2961
2961
|
value: "id"
|
|
2962
|
-
}, s = U(), o = Q(s), r = D([]), a = Oe({}), i = Oe({}), d =
|
|
2962
|
+
}, s = U(), o = Q(s), r = D([]), a = Oe({}), i = Oe({}), d = Pe(
|
|
2963
2963
|
e.settings.code,
|
|
2964
2964
|
s.path,
|
|
2965
2965
|
e.settings.filters,
|
|
@@ -2987,10 +2987,10 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
2987
2987
|
const k = l.options.getOneUrl ? l.options.getOneUrl : l.options.url;
|
|
2988
2988
|
if (!b && Array.isArray(a[l.code]) && a[l.code].length > 0)
|
|
2989
2989
|
i[l.code] = [], a[l.code].forEach((R) => {
|
|
2990
|
-
k.getOne({ id: R }).then((
|
|
2990
|
+
k.getOne({ id: R }).then((K) => {
|
|
2991
2991
|
i[l.code].push({
|
|
2992
|
-
code:
|
|
2993
|
-
name:
|
|
2992
|
+
code: K.data[l.options.data.value] || K.data.id,
|
|
2993
|
+
name: K.data[l.options.data.label] || K.data.name
|
|
2994
2994
|
});
|
|
2995
2995
|
});
|
|
2996
2996
|
});
|
|
@@ -3004,14 +3004,14 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3004
3004
|
];
|
|
3005
3005
|
});
|
|
3006
3006
|
else {
|
|
3007
|
-
const R = l.options.query.keyWord.toString(),
|
|
3008
|
-
l.options.url[
|
|
3007
|
+
const R = l.options.query.keyWord.toString(), K = l.options.method ? l.options.method : "getList";
|
|
3008
|
+
l.options.url[K]({
|
|
3009
3009
|
...l.options.query,
|
|
3010
3010
|
[R]: b
|
|
3011
3011
|
}).then((M) => {
|
|
3012
|
-
i[l.code] = M.data.rows.map((
|
|
3013
|
-
code:
|
|
3014
|
-
name:
|
|
3012
|
+
i[l.code] = M.data.rows.map((Y) => ({
|
|
3013
|
+
code: Y[l.options.data.value] || Y.id,
|
|
3014
|
+
name: Y[l.options.data.label] || Y.name
|
|
3015
3015
|
}));
|
|
3016
3016
|
});
|
|
3017
3017
|
}
|
|
@@ -3040,14 +3040,14 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3040
3040
|
a[l] = void 0;
|
|
3041
3041
|
}), r.value = Object.keys(e.settings.filters).filter((l) => h(e.settings.filters[l].visible)).map((l) => {
|
|
3042
3042
|
const b = { ...e.settings.filters[l], code: l };
|
|
3043
|
-
return a[l] =
|
|
3043
|
+
return a[l] = m(l), (b.type === "select" || b.type === "selectV2" || b.type === "tree" || b.type === "tree-select") && p(b), {
|
|
3044
3044
|
...b,
|
|
3045
3045
|
dateType: b.dateType || "datetimerange",
|
|
3046
3046
|
format: b.format || "YYYY-MM-DD HH:mm:ss"
|
|
3047
3047
|
};
|
|
3048
3048
|
}).filter((l) => l.code !== "isDeleted");
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function m(l) {
|
|
3051
3051
|
const b = e.settings.filters[l], _ = d.validFilters[l];
|
|
3052
3052
|
return b.type === "boolean" && typeof _ != "boolean" ? b.value : _;
|
|
3053
3053
|
}
|
|
@@ -3078,15 +3078,15 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3078
3078
|
});
|
|
3079
3079
|
}
|
|
3080
3080
|
), (l, b) => Object.keys(e.settings.filters).length > 0 ? (c(), O("div", Qa, [
|
|
3081
|
-
x(
|
|
3081
|
+
x(f(hn), {
|
|
3082
3082
|
model: a,
|
|
3083
3083
|
inline: "",
|
|
3084
3084
|
class: "form-editor"
|
|
3085
3085
|
}, {
|
|
3086
3086
|
default: w(() => [
|
|
3087
|
-
(c(!0), O(
|
|
3087
|
+
(c(!0), O(P, null, q(r.value, (_) => (c(), S(f(ot), null, {
|
|
3088
3088
|
default: w(() => [
|
|
3089
|
-
_.type === "boolean" ? (c(), S(
|
|
3089
|
+
_.type === "boolean" ? (c(), S(f(jt), {
|
|
3090
3090
|
key: 0,
|
|
3091
3091
|
modelValue: a[_.code],
|
|
3092
3092
|
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
@@ -3097,17 +3097,17 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3097
3097
|
onChange: g
|
|
3098
3098
|
}, {
|
|
3099
3099
|
default: w(() => [
|
|
3100
|
-
x(
|
|
3100
|
+
x(f(Ke), {
|
|
3101
3101
|
value: !0,
|
|
3102
3102
|
label: `已${_.name}`
|
|
3103
3103
|
}, null, 8, ["label"]),
|
|
3104
|
-
x(
|
|
3104
|
+
x(f(Ke), {
|
|
3105
3105
|
value: !1,
|
|
3106
3106
|
label: `未${_.name}`
|
|
3107
3107
|
}, null, 8, ["label"])
|
|
3108
3108
|
]),
|
|
3109
3109
|
_: 2
|
|
3110
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "select" ? (c(), S(
|
|
3110
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "select" ? (c(), S(f(jt), {
|
|
3111
3111
|
key: 1,
|
|
3112
3112
|
modelValue: a[_.code],
|
|
3113
3113
|
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
@@ -3127,7 +3127,7 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3127
3127
|
onChange: g
|
|
3128
3128
|
}, {
|
|
3129
3129
|
default: w(() => [
|
|
3130
|
-
(c(!0), O(
|
|
3130
|
+
(c(!0), O(P, null, q(i[_.code], (k) => (c(), S(f(Ke), {
|
|
3131
3131
|
key: k.code,
|
|
3132
3132
|
label: k.name,
|
|
3133
3133
|
value: k.code,
|
|
@@ -3135,7 +3135,7 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3135
3135
|
}, null, 8, ["label", "value", "title"]))), 128))
|
|
3136
3136
|
]),
|
|
3137
3137
|
_: 2
|
|
3138
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : _.type === "selectV2" ? (c(), S(
|
|
3138
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : _.type === "selectV2" ? (c(), S(f(us), {
|
|
3139
3139
|
key: 2,
|
|
3140
3140
|
modelValue: a[_.code],
|
|
3141
3141
|
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
@@ -3147,7 +3147,7 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3147
3147
|
clearable: "",
|
|
3148
3148
|
"value-on-clear": null,
|
|
3149
3149
|
onChange: g
|
|
3150
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : _.type === "sorters" ? (c(), S(
|
|
3150
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : _.type === "sorters" ? (c(), S(Ia, {
|
|
3151
3151
|
key: 3,
|
|
3152
3152
|
value: a[_.code],
|
|
3153
3153
|
sorters: _,
|
|
@@ -3157,10 +3157,11 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3157
3157
|
value: a[_.code],
|
|
3158
3158
|
ranges: _,
|
|
3159
3159
|
onUpdateRanges: A
|
|
3160
|
-
}, null, 8, ["value", "ranges"])) : _.type === "tree-select" ? (c(), S(
|
|
3160
|
+
}, null, 8, ["value", "ranges"])) : _.type === "tree-select" ? (c(), S(f(cs), {
|
|
3161
3161
|
key: 5,
|
|
3162
3162
|
modelValue: a[_.code],
|
|
3163
3163
|
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
3164
|
+
placeholder: _.name,
|
|
3164
3165
|
data: i[_.code],
|
|
3165
3166
|
props: n,
|
|
3166
3167
|
"node-key": "id",
|
|
@@ -3174,19 +3175,29 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3174
3175
|
remote: "",
|
|
3175
3176
|
"show-checkbox": "",
|
|
3176
3177
|
filterable: "",
|
|
3178
|
+
"collapse-tags": "",
|
|
3179
|
+
"multiple-limit": _.multipleLimit ? _.multipleLimit : 0,
|
|
3177
3180
|
"remote-method": u(_),
|
|
3178
3181
|
onCheck: g,
|
|
3179
3182
|
onChange: g
|
|
3180
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "multiple", "check-strictly", "remote-method"])) : _.type === "
|
|
3183
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "data", "multiple", "check-strictly", "multiple-limit", "remote-method"])) : _.type === "date" ? (c(), S(f(Xe), {
|
|
3181
3184
|
key: 6,
|
|
3182
3185
|
modelValue: a[_.code],
|
|
3183
3186
|
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
3187
|
+
type: "date",
|
|
3188
|
+
format: "YYYY-MM-DD",
|
|
3189
|
+
"value-format": "YYYY-MM-DD",
|
|
3190
|
+
placeholder: _.name
|
|
3191
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime" ? (c(), S(f(Xe), {
|
|
3192
|
+
key: 7,
|
|
3193
|
+
modelValue: a[_.code],
|
|
3194
|
+
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
3184
3195
|
type: "datetime",
|
|
3185
3196
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
3186
3197
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
3187
3198
|
placeholder: _.name
|
|
3188
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime-range" ? (c(), S(
|
|
3189
|
-
key:
|
|
3199
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime-range" ? (c(), S(f(Xe), {
|
|
3200
|
+
key: 8,
|
|
3190
3201
|
modelValue: a[_.code],
|
|
3191
3202
|
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
3192
3203
|
type: _.dateType,
|
|
@@ -3195,8 +3206,8 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3195
3206
|
"start-placeholder": _.name,
|
|
3196
3207
|
"end-placeholder": _.name,
|
|
3197
3208
|
placeholder: _.name
|
|
3198
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (c(), S(
|
|
3199
|
-
key:
|
|
3209
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (c(), S(f(ds), {
|
|
3210
|
+
key: 9,
|
|
3200
3211
|
modelValue: a[_.code],
|
|
3201
3212
|
"onUpdate:modelValue": (k) => a[_.code] = k,
|
|
3202
3213
|
modelModifiers: { trim: !0 },
|
|
@@ -3207,34 +3218,34 @@ const Fa = { class: "sorters-box" }, Pa = ["onClick"], La = { class: "sorters-la
|
|
|
3207
3218
|
]),
|
|
3208
3219
|
_: 2
|
|
3209
3220
|
}, 1024))), 256)),
|
|
3210
|
-
r.value.length > 0 ? (c(), S(
|
|
3221
|
+
r.value.length > 0 ? (c(), S(f(ot), { key: 0 }, {
|
|
3211
3222
|
default: w(() => [
|
|
3212
|
-
x(
|
|
3223
|
+
x(f(ne), {
|
|
3213
3224
|
type: "primary",
|
|
3214
3225
|
onClick: g
|
|
3215
3226
|
}, {
|
|
3216
3227
|
default: w(() => [
|
|
3217
|
-
|
|
3228
|
+
N(" 查询 ")
|
|
3218
3229
|
]),
|
|
3219
3230
|
_: 1
|
|
3220
3231
|
}),
|
|
3221
|
-
x(
|
|
3232
|
+
x(f(ne), { onClick: $ }, {
|
|
3222
3233
|
default: w(() => [
|
|
3223
|
-
|
|
3234
|
+
N(" 重置 ")
|
|
3224
3235
|
]),
|
|
3225
3236
|
_: 1
|
|
3226
3237
|
})
|
|
3227
3238
|
]),
|
|
3228
3239
|
_: 1
|
|
3229
|
-
})) :
|
|
3240
|
+
})) : L("", !0)
|
|
3230
3241
|
]),
|
|
3231
3242
|
_: 1
|
|
3232
3243
|
}, 8, ["model"])
|
|
3233
|
-
])) :
|
|
3244
|
+
])) : L("", !0);
|
|
3234
3245
|
}
|
|
3235
|
-
},
|
|
3246
|
+
}, Ya = /* @__PURE__ */ V(Ja, [["__scopeId", "data-v-60252da5"]]);
|
|
3236
3247
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
3237
|
-
var
|
|
3248
|
+
var Ga = /* @__PURE__ */ W({
|
|
3238
3249
|
name: "ArrowDown",
|
|
3239
3250
|
__name: "arrow-down",
|
|
3240
3251
|
setup(t) {
|
|
@@ -3248,7 +3259,7 @@ var Ka = /* @__PURE__ */ W({
|
|
|
3248
3259
|
})
|
|
3249
3260
|
]));
|
|
3250
3261
|
}
|
|
3251
|
-
}),
|
|
3262
|
+
}), Ka = Ga, Xa = /* @__PURE__ */ W({
|
|
3252
3263
|
name: "CircleCloseFilled",
|
|
3253
3264
|
__name: "circle-close-filled",
|
|
3254
3265
|
setup(t) {
|
|
@@ -3502,12 +3513,12 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3502
3513
|
}
|
|
3503
3514
|
},
|
|
3504
3515
|
setup(t) {
|
|
3505
|
-
const e = t, n = e.tableName ? e.tableName : e.settings.name, s = U(), o = ce(), r =
|
|
3516
|
+
const e = t, n = e.tableName ? e.tableName : e.settings.name, s = U(), o = ce(), r = Pe(
|
|
3506
3517
|
e.settings.code,
|
|
3507
3518
|
s.path,
|
|
3508
3519
|
e.settings.filters,
|
|
3509
3520
|
e.settings.filterHook
|
|
3510
|
-
)(), a = Re(), i =
|
|
3521
|
+
)(), a = Re(), i = I(() => r.validFilters.isDeleted || !1), d = I(() => e.settings.displayMode.normalMode);
|
|
3511
3522
|
function h() {
|
|
3512
3523
|
r.$reset({ isDeleted: !i.value });
|
|
3513
3524
|
}
|
|
@@ -3520,11 +3531,11 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3520
3531
|
const A = `table-view-${s.path}-${e.settings.code}`;
|
|
3521
3532
|
localStorage.setItem(A, o.mode);
|
|
3522
3533
|
}
|
|
3523
|
-
return dn(p), (E, A) => (c(), O(
|
|
3534
|
+
return dn(p), (E, A) => (c(), O(P, null, [
|
|
3524
3535
|
C("div", wr, [
|
|
3525
|
-
C("div", Er, B(i.value ? `已删除的${
|
|
3536
|
+
C("div", Er, B(i.value ? `已删除的${f(n)}` : f(n)), 1),
|
|
3526
3537
|
C("div", $r, [
|
|
3527
|
-
|
|
3538
|
+
f(a).operations ? (c(), S(f(pe), {
|
|
3528
3539
|
key: 0,
|
|
3529
3540
|
class: "button-groups"
|
|
3530
3541
|
}, {
|
|
@@ -3532,29 +3543,29 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3532
3543
|
J(E.$slots, "operations", {}, void 0, !0)
|
|
3533
3544
|
]),
|
|
3534
3545
|
_: 3
|
|
3535
|
-
})) :
|
|
3536
|
-
x(
|
|
3546
|
+
})) : L("", !0),
|
|
3547
|
+
x(f(pe), { class: "button-groups" }, {
|
|
3537
3548
|
default: w(() => [
|
|
3538
3549
|
J(E.$slots, "tools", {}, void 0, !0)
|
|
3539
3550
|
]),
|
|
3540
3551
|
_: 3
|
|
3541
3552
|
}),
|
|
3542
|
-
x(
|
|
3553
|
+
x(f(at), {
|
|
3543
3554
|
trigger: "click",
|
|
3544
3555
|
onCommand: u
|
|
3545
3556
|
}, {
|
|
3546
3557
|
dropdown: w(() => [
|
|
3547
|
-
x(
|
|
3558
|
+
x(f(rt), null, {
|
|
3548
3559
|
default: w(() => [
|
|
3549
|
-
x(
|
|
3560
|
+
x(f(ue), { command: "list" }, {
|
|
3550
3561
|
default: w(() => [
|
|
3551
|
-
|
|
3562
|
+
N(" 列表 ")
|
|
3552
3563
|
]),
|
|
3553
3564
|
_: 1
|
|
3554
3565
|
}),
|
|
3555
|
-
x(
|
|
3566
|
+
x(f(ue), { command: "grid" }, {
|
|
3556
3567
|
default: w(() => [
|
|
3557
|
-
|
|
3568
|
+
N(" 网格 ")
|
|
3558
3569
|
]),
|
|
3559
3570
|
_: 1
|
|
3560
3571
|
})
|
|
@@ -3563,17 +3574,17 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3563
3574
|
})
|
|
3564
3575
|
]),
|
|
3565
3576
|
default: w(() => [
|
|
3566
|
-
x(
|
|
3577
|
+
x(f(ne), null, {
|
|
3567
3578
|
default: w(() => [
|
|
3568
|
-
x(
|
|
3579
|
+
x(f(G), null, {
|
|
3569
3580
|
default: w(() => [
|
|
3570
|
-
x(
|
|
3581
|
+
x(f(lr))
|
|
3571
3582
|
]),
|
|
3572
3583
|
_: 1
|
|
3573
3584
|
}),
|
|
3574
|
-
x(
|
|
3585
|
+
x(f(G), { class: "el-icon--right" }, {
|
|
3575
3586
|
default: w(() => [
|
|
3576
|
-
x(
|
|
3587
|
+
x(f(Ka))
|
|
3577
3588
|
]),
|
|
3578
3589
|
_: 1
|
|
3579
3590
|
})
|
|
@@ -3583,14 +3594,14 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3583
3594
|
]),
|
|
3584
3595
|
_: 1
|
|
3585
3596
|
}),
|
|
3586
|
-
e.settings.filters.isDeleted ? (c(), S(
|
|
3597
|
+
e.settings.filters.isDeleted ? (c(), S(f(at), {
|
|
3587
3598
|
key: 1,
|
|
3588
3599
|
trigger: "click"
|
|
3589
3600
|
}, {
|
|
3590
3601
|
dropdown: w(() => [
|
|
3591
|
-
x(
|
|
3602
|
+
x(f(rt), null, {
|
|
3592
3603
|
default: w(() => [
|
|
3593
|
-
x(
|
|
3604
|
+
x(f(ue), {
|
|
3594
3605
|
command: "deleted",
|
|
3595
3606
|
onClick: h
|
|
3596
3607
|
}, {
|
|
@@ -3604,11 +3615,11 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3604
3615
|
})
|
|
3605
3616
|
]),
|
|
3606
3617
|
default: w(() => [
|
|
3607
|
-
x(
|
|
3618
|
+
x(f(ne), null, {
|
|
3608
3619
|
default: w(() => [
|
|
3609
|
-
x(
|
|
3620
|
+
x(f(G), null, {
|
|
3610
3621
|
default: w(() => [
|
|
3611
|
-
x(
|
|
3622
|
+
x(f(_r))
|
|
3612
3623
|
]),
|
|
3613
3624
|
_: 1
|
|
3614
3625
|
})
|
|
@@ -3617,15 +3628,15 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3617
3628
|
})
|
|
3618
3629
|
]),
|
|
3619
3630
|
_: 1
|
|
3620
|
-
})) :
|
|
3631
|
+
})) : L("", !0)
|
|
3621
3632
|
])
|
|
3622
3633
|
]),
|
|
3623
|
-
x(
|
|
3634
|
+
x(Ya, {
|
|
3624
3635
|
settings: e.settings
|
|
3625
3636
|
}, null, 8, ["settings"])
|
|
3626
3637
|
], 64));
|
|
3627
3638
|
}
|
|
3628
|
-
}, Or = /* @__PURE__ */
|
|
3639
|
+
}, Or = /* @__PURE__ */ V(Sr, [["__scopeId", "data-v-898f42af"]]), xr = { class: "kst-field-row-id" }, kr = { key: 0 }, Ar = {
|
|
3629
3640
|
key: 1,
|
|
3630
3641
|
class: "mono-data"
|
|
3631
3642
|
}, Cr = { key: 1 }, Dr = {
|
|
@@ -3642,7 +3653,7 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3642
3653
|
}
|
|
3643
3654
|
},
|
|
3644
3655
|
setup(t) {
|
|
3645
|
-
const e = Re(), n = U(), s = t, o = n.meta.side, r =
|
|
3656
|
+
const e = Re(), n = U(), s = t, o = n.meta.side, r = I(() => s.row[s.field.code]), a = I(() => ({
|
|
3646
3657
|
path: `/${o}/${s.field.domain}/${r.value}`,
|
|
3647
3658
|
query: { ...Q(n), ...s.field.rowQuery(s.row) }
|
|
3648
3659
|
}));
|
|
@@ -3659,33 +3670,33 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
|
|
|
3659
3670
|
to: a.value
|
|
3660
3671
|
}, {
|
|
3661
3672
|
default: w(() => [
|
|
3662
|
-
|
|
3673
|
+
f(e).name ? (c(), O(P, { key: 0 }, [
|
|
3663
3674
|
J(d.$slots, "name", {}, void 0, !0),
|
|
3664
|
-
|
|
3665
|
-
], 64)) : (c(), O(
|
|
3666
|
-
|
|
3675
|
+
N("(#" + B(r.value) + ") ", 1)
|
|
3676
|
+
], 64)) : (c(), O(P, { key: 1 }, [
|
|
3677
|
+
N(" #" + B(r.value), 1)
|
|
3667
3678
|
], 64))
|
|
3668
3679
|
]),
|
|
3669
3680
|
_: 3
|
|
3670
3681
|
}, 8, ["to"])) : (c(), O("span", Ar, [
|
|
3671
|
-
|
|
3682
|
+
f(e).name ? (c(), O(P, { key: 0 }, [
|
|
3672
3683
|
J(d.$slots, "name", {}, void 0, !0),
|
|
3673
|
-
|
|
3674
|
-
], 64)) : (c(), O(
|
|
3675
|
-
|
|
3684
|
+
N("(" + B(r.value) + ") ", 1)
|
|
3685
|
+
], 64)) : (c(), O(P, { key: 1 }, [
|
|
3686
|
+
N(B(r.value), 1)
|
|
3676
3687
|
], 64))
|
|
3677
3688
|
]))
|
|
3678
3689
|
])) : (c(), O("span", Cr, " NO ID "))
|
|
3679
3690
|
]);
|
|
3680
3691
|
};
|
|
3681
3692
|
}
|
|
3682
|
-
}, Rr = /* @__PURE__ */
|
|
3693
|
+
}, Rr = /* @__PURE__ */ V(Dr, [["__scopeId", "data-v-00021e61"]]);
|
|
3683
3694
|
function Tr(t) {
|
|
3684
3695
|
ke(t);
|
|
3685
3696
|
}
|
|
3686
3697
|
const Fr = {
|
|
3687
3698
|
show: Tr
|
|
3688
|
-
}, en = 10,
|
|
3699
|
+
}, en = 10, Ot = yt("route-history", {
|
|
3689
3700
|
state: () => ({
|
|
3690
3701
|
root: null,
|
|
3691
3702
|
history: []
|
|
@@ -3711,7 +3722,7 @@ const Fr = {
|
|
|
3711
3722
|
n && (n.title = e);
|
|
3712
3723
|
}
|
|
3713
3724
|
}
|
|
3714
|
-
}),
|
|
3725
|
+
}), xt = {
|
|
3715
3726
|
__name: "DomainEdit",
|
|
3716
3727
|
props: {
|
|
3717
3728
|
row: {
|
|
@@ -3732,29 +3743,29 @@ const Fr = {
|
|
|
3732
3743
|
},
|
|
3733
3744
|
setup(t) {
|
|
3734
3745
|
var y;
|
|
3735
|
-
const e =
|
|
3736
|
-
var
|
|
3737
|
-
return a.row.deletedAt ? !1 : (
|
|
3746
|
+
const e = Ot(), n = ce(), s = U(), o = fe(), r = Q(s), a = t, i = D({}), d = D(!1), h = I(() => {
|
|
3747
|
+
var m, g;
|
|
3748
|
+
return a.row.deletedAt ? !1 : (m = a.operations) != null && m.updatable ? !0 : !!((g = a.operations) != null && g.removable);
|
|
3738
3749
|
}), p = D((y = a.operations) == null ? void 0 : y.removable);
|
|
3739
3750
|
async function u() {
|
|
3740
|
-
const
|
|
3751
|
+
const m = a.settings.formHook, g = a.settings.btnVisible, $ = a.settings.rest, { data: l } = await $.getOne({
|
|
3741
3752
|
...a.row,
|
|
3742
3753
|
...r
|
|
3743
3754
|
});
|
|
3744
|
-
i.value = l,
|
|
3755
|
+
i.value = l, m.setupUpdate && (i.value = m.setupUpdate(i.value, r)), g.showRemove && (p.value = g.showRemove(i.value)), d.value = !0;
|
|
3745
3756
|
}
|
|
3746
|
-
function E(
|
|
3757
|
+
function E(m, g) {
|
|
3747
3758
|
const $ = a.settings.formHook, l = a.settings.rest;
|
|
3748
3759
|
Object.keys(r).forEach((b) => {
|
|
3749
|
-
|
|
3750
|
-
}), $ != null && $.preUpdateSubmit && (
|
|
3760
|
+
m[b] = r[b];
|
|
3761
|
+
}), $ != null && $.preUpdateSubmit && (m = $.preUpdateSubmit(m)), l.update(m).then(() => {
|
|
3751
3762
|
d.value = !1, n.fireUpdated();
|
|
3752
3763
|
}).catch(async () => {
|
|
3753
3764
|
g();
|
|
3754
3765
|
});
|
|
3755
3766
|
}
|
|
3756
|
-
function A(
|
|
3757
|
-
a.settings.rest.remove(
|
|
3767
|
+
function A(m, g) {
|
|
3768
|
+
a.settings.rest.remove(m).then(() => {
|
|
3758
3769
|
Fr.show({ type: "success", message: "删除成功" }), d.value = !1, a.isDetail && e.history.forEach((l) => {
|
|
3759
3770
|
s.fullPath.includes(l.path) && (e.remove(l.code), o.back());
|
|
3760
3771
|
}), n.fireRemoved();
|
|
@@ -3762,14 +3773,14 @@ const Fr = {
|
|
|
3762
3773
|
g();
|
|
3763
3774
|
});
|
|
3764
3775
|
}
|
|
3765
|
-
return (
|
|
3776
|
+
return (m, g) => h.value ? (c(), S(f(ne), {
|
|
3766
3777
|
key: 0,
|
|
3767
3778
|
type: "primary",
|
|
3768
3779
|
onClick: u
|
|
3769
3780
|
}, {
|
|
3770
3781
|
default: w(() => [
|
|
3771
|
-
|
|
3772
|
-
d.value ? (c(), S(
|
|
3782
|
+
N(" 编辑 "),
|
|
3783
|
+
d.value ? (c(), S(St, {
|
|
3773
3784
|
key: 0,
|
|
3774
3785
|
modelValue: d.value,
|
|
3775
3786
|
"onUpdate:modelValue": g[0] || (g[0] = ($) => d.value = $),
|
|
@@ -3778,15 +3789,15 @@ const Fr = {
|
|
|
3778
3789
|
removable: p.value,
|
|
3779
3790
|
onSubmit: E,
|
|
3780
3791
|
onRemove: A
|
|
3781
|
-
}, null, 8, ["modelValue", "config", "data", "removable"])) :
|
|
3792
|
+
}, null, 8, ["modelValue", "config", "data", "removable"])) : L("", !0)
|
|
3782
3793
|
]),
|
|
3783
3794
|
_: 1
|
|
3784
|
-
})) :
|
|
3795
|
+
})) : L("", !0);
|
|
3785
3796
|
}
|
|
3786
|
-
},
|
|
3797
|
+
}, Lr = (t) => (pn("data-v-0941be48"), t = t(), fn(), t), Pr = { class: "data-grid-wrapper" }, jr = {
|
|
3787
3798
|
key: 0,
|
|
3788
3799
|
class: "cover"
|
|
3789
|
-
}, Br = /* @__PURE__ */
|
|
3800
|
+
}, Br = /* @__PURE__ */ Lr(() => /* @__PURE__ */ C("div", { class: "image-slot" }, null, -1)), Vr = { class: "header" }, Nr = { key: 0 }, Ir = { class: "key" }, Mr = { class: "value" }, Ur = {
|
|
3790
3801
|
key: 1,
|
|
3791
3802
|
class: "footer tools"
|
|
3792
3803
|
}, zr = {
|
|
@@ -3805,7 +3816,7 @@ const Fr = {
|
|
|
3805
3816
|
}
|
|
3806
3817
|
},
|
|
3807
3818
|
setup(t) {
|
|
3808
|
-
const e = U(), n = Q(e), s = Re(), o = t, r =
|
|
3819
|
+
const e = U(), n = Q(e), s = Re(), o = t, r = Pe(
|
|
3809
3820
|
o.settings.code,
|
|
3810
3821
|
e.path,
|
|
3811
3822
|
o.settings.filters,
|
|
@@ -3814,33 +3825,33 @@ const Fr = {
|
|
|
3814
3825
|
async function u() {
|
|
3815
3826
|
return await o.settings.showEdit(n, "grid");
|
|
3816
3827
|
}
|
|
3817
|
-
|
|
3828
|
+
gt(() => {
|
|
3818
3829
|
u().then(($) => {
|
|
3819
3830
|
p.value = $;
|
|
3820
3831
|
});
|
|
3821
3832
|
});
|
|
3822
|
-
const E =
|
|
3833
|
+
const E = I(() => {
|
|
3823
3834
|
var $, l;
|
|
3824
3835
|
return !!(($ = o.operations) != null && $.updatable && p || (l = o.operations) != null && l.removable && p);
|
|
3825
|
-
}), A =
|
|
3826
|
-
function
|
|
3836
|
+
}), A = I(() => o.settings.displayMode.gridWidth), y = I(() => o.settings.displayMode.heightAuto);
|
|
3837
|
+
function m() {
|
|
3827
3838
|
h.value = o.settings.fields.find(($) => $.code === "id"), d.value = o.settings.fields.filter(($) => $.code === o.settings.coverField || $.code === o.settings.nameField || $.code === "id" ? !1 : $.showInList(n, i.value));
|
|
3828
3839
|
}
|
|
3829
3840
|
function g($) {
|
|
3830
3841
|
return o.settings.nameField ? $[o.settings.nameField] : $.name ? $.name : `${$.id}`;
|
|
3831
3842
|
}
|
|
3832
3843
|
return j(a, ($) => {
|
|
3833
|
-
i.value = $,
|
|
3834
|
-
}),
|
|
3835
|
-
t.data.length === 0 ? (c(), S(
|
|
3844
|
+
i.value = $, m();
|
|
3845
|
+
}), m(), ($, l) => (c(), O("div", Pr, [
|
|
3846
|
+
t.data.length === 0 ? (c(), S(f(ps), {
|
|
3836
3847
|
key: 0,
|
|
3837
3848
|
description: "暂无数据"
|
|
3838
|
-
})) : (c(), S(
|
|
3849
|
+
})) : (c(), S(f(xe), {
|
|
3839
3850
|
key: 1,
|
|
3840
3851
|
gutter: 20
|
|
3841
3852
|
}, {
|
|
3842
3853
|
default: w(() => [
|
|
3843
|
-
(c(!0), O(
|
|
3854
|
+
(c(!0), O(P, null, q(t.data, (b) => (c(), S(f($e), {
|
|
3844
3855
|
style: { "margin-bottom": "20px" },
|
|
3845
3856
|
span: A.value ? A.value : 24,
|
|
3846
3857
|
xs: A.value ? {} : 24,
|
|
@@ -3850,16 +3861,16 @@ const Fr = {
|
|
|
3850
3861
|
xl: A.value ? {} : 4
|
|
3851
3862
|
}, {
|
|
3852
3863
|
default: w(() => [
|
|
3853
|
-
x(
|
|
3864
|
+
x(f(mn), {
|
|
3854
3865
|
"body-style": { padding: "0px" },
|
|
3855
3866
|
shadow: "hover"
|
|
3856
3867
|
}, {
|
|
3857
3868
|
default: w(() => [
|
|
3858
|
-
|
|
3859
|
-
|
|
3869
|
+
f(s).cover || o.settings.coverField ? (c(), O("div", jr, [
|
|
3870
|
+
f(s).cover ? J($.$slots, "cover", {
|
|
3860
3871
|
key: 0,
|
|
3861
3872
|
row: b
|
|
3862
|
-
}, void 0, !0) : (c(), S(
|
|
3873
|
+
}, void 0, !0) : (c(), S(f(gn), {
|
|
3863
3874
|
key: 1,
|
|
3864
3875
|
src: b[o.settings.coverField],
|
|
3865
3876
|
fit: "contain"
|
|
@@ -3869,8 +3880,8 @@ const Fr = {
|
|
|
3869
3880
|
]),
|
|
3870
3881
|
_: 2
|
|
3871
3882
|
}, 1032, ["src"]))
|
|
3872
|
-
])) :
|
|
3873
|
-
C("div",
|
|
3883
|
+
])) : L("", !0),
|
|
3884
|
+
C("div", Vr, [
|
|
3874
3885
|
x(Rr, {
|
|
3875
3886
|
field: h.value,
|
|
3876
3887
|
row: b
|
|
@@ -3878,7 +3889,7 @@ const Fr = {
|
|
|
3878
3889
|
b[o.settings.nameField] ? {
|
|
3879
3890
|
name: "name",
|
|
3880
3891
|
fn: w(() => [
|
|
3881
|
-
|
|
3892
|
+
N(B(g(b)), 1)
|
|
3882
3893
|
]),
|
|
3883
3894
|
key: "0"
|
|
3884
3895
|
} : void 0
|
|
@@ -3887,13 +3898,13 @@ const Fr = {
|
|
|
3887
3898
|
C("div", {
|
|
3888
3899
|
class: he(y.value ? "body heightAuto" : "body")
|
|
3889
3900
|
}, [
|
|
3890
|
-
|
|
3901
|
+
f(s).body ? (c(), O("div", Nr, [
|
|
3891
3902
|
J($.$slots, "body", { row: b }, void 0, !0)
|
|
3892
|
-
])) : (c(!0), O(
|
|
3903
|
+
])) : (c(!0), O(P, { key: 1 }, q(d.value, (_) => (c(), O("div", {
|
|
3893
3904
|
key: _.code,
|
|
3894
3905
|
class: "field mono-data"
|
|
3895
3906
|
}, [
|
|
3896
|
-
C("div",
|
|
3907
|
+
C("div", Ir, B(_.label) + " ", 1),
|
|
3897
3908
|
C("div", Mr, [
|
|
3898
3909
|
(c(), S(X(_.display), {
|
|
3899
3910
|
field: _,
|
|
@@ -3903,8 +3914,8 @@ const Fr = {
|
|
|
3903
3914
|
])
|
|
3904
3915
|
]))), 128))
|
|
3905
3916
|
], 2),
|
|
3906
|
-
|
|
3907
|
-
|
|
3917
|
+
f(s).actions || E.value ? (c(), O("div", Ur, [
|
|
3918
|
+
f(s).actions ? (c(), S(f(pe), {
|
|
3908
3919
|
key: 0,
|
|
3909
3920
|
size: "small"
|
|
3910
3921
|
}, {
|
|
@@ -3912,21 +3923,21 @@ const Fr = {
|
|
|
3912
3923
|
J($.$slots, "actions", { row: b }, void 0, !0)
|
|
3913
3924
|
]),
|
|
3914
3925
|
_: 2
|
|
3915
|
-
}, 1024)) :
|
|
3916
|
-
E.value ? (c(), S(
|
|
3926
|
+
}, 1024)) : L("", !0),
|
|
3927
|
+
E.value ? (c(), S(f(pe), {
|
|
3917
3928
|
key: 1,
|
|
3918
3929
|
size: "small"
|
|
3919
3930
|
}, {
|
|
3920
3931
|
default: w(() => [
|
|
3921
|
-
x(
|
|
3932
|
+
x(xt, {
|
|
3922
3933
|
row: b,
|
|
3923
3934
|
settings: o.settings,
|
|
3924
3935
|
operations: o.operations
|
|
3925
3936
|
}, null, 8, ["row", "settings", "operations"])
|
|
3926
3937
|
]),
|
|
3927
3938
|
_: 2
|
|
3928
|
-
}, 1024)) :
|
|
3929
|
-
])) :
|
|
3939
|
+
}, 1024)) : L("", !0)
|
|
3940
|
+
])) : L("", !0)
|
|
3930
3941
|
]),
|
|
3931
3942
|
_: 2
|
|
3932
3943
|
}, 1024)
|
|
@@ -3938,7 +3949,7 @@ const Fr = {
|
|
|
3938
3949
|
}))
|
|
3939
3950
|
]));
|
|
3940
3951
|
}
|
|
3941
|
-
}, Hr = /* @__PURE__ */
|
|
3952
|
+
}, Hr = /* @__PURE__ */ V(zr, [["__scopeId", "data-v-0941be48"]]);
|
|
3942
3953
|
function qr(t, e) {
|
|
3943
3954
|
const n = t.fields.map((o) => o.code), s = Object.keys(e);
|
|
3944
3955
|
n.forEach((o) => {
|
|
@@ -3971,7 +3982,7 @@ const Wr = {
|
|
|
3971
3982
|
},
|
|
3972
3983
|
emits: ["sort-column", "select-change", "enable-item"],
|
|
3973
3984
|
setup(t, { emit: e }) {
|
|
3974
|
-
const n = U(), s = Q(n), o = e, r = Re(), a = t, i =
|
|
3985
|
+
const n = U(), s = Q(n), o = e, r = Re(), a = t, i = Pe(
|
|
3975
3986
|
a.settings.code,
|
|
3976
3987
|
n.path,
|
|
3977
3988
|
a.settings.filters,
|
|
@@ -3980,19 +3991,19 @@ const Wr = {
|
|
|
3980
3991
|
async function E() {
|
|
3981
3992
|
return await a.settings.showEdit(s, "list");
|
|
3982
3993
|
}
|
|
3983
|
-
|
|
3994
|
+
gt(() => {
|
|
3984
3995
|
E().then((l) => {
|
|
3985
3996
|
u.value = l;
|
|
3986
3997
|
});
|
|
3987
3998
|
});
|
|
3988
|
-
const A =
|
|
3999
|
+
const A = I(() => {
|
|
3989
4000
|
var l, b;
|
|
3990
4001
|
return !!((l = a.operations) != null && l.updatable && u.value || (b = a.operations) != null && b.removable && u.value);
|
|
3991
4002
|
});
|
|
3992
4003
|
function y(l) {
|
|
3993
4004
|
o("sort-column", l);
|
|
3994
4005
|
}
|
|
3995
|
-
function
|
|
4006
|
+
function m(l) {
|
|
3996
4007
|
o("enable-item", l);
|
|
3997
4008
|
}
|
|
3998
4009
|
function g() {
|
|
@@ -4011,7 +4022,7 @@ const Wr = {
|
|
|
4011
4022
|
}
|
|
4012
4023
|
), j(d, (l) => {
|
|
4013
4024
|
h.value = l, g();
|
|
4014
|
-
}), (l, b) => (c(), S(
|
|
4025
|
+
}), (l, b) => (c(), S(f(fs), {
|
|
4015
4026
|
ref: "dataTable",
|
|
4016
4027
|
class: "table mono-data",
|
|
4017
4028
|
data: a.data,
|
|
@@ -4022,11 +4033,11 @@ const Wr = {
|
|
|
4022
4033
|
onSortChange: y
|
|
4023
4034
|
}, {
|
|
4024
4035
|
default: w(() => [
|
|
4025
|
-
x(
|
|
4036
|
+
x(f(je), {
|
|
4026
4037
|
type: "selection",
|
|
4027
4038
|
width: "40"
|
|
4028
4039
|
}),
|
|
4029
|
-
(c(!0), O(
|
|
4040
|
+
(c(!0), O(P, null, q(p.value, (_) => (c(), S(f(je), {
|
|
4030
4041
|
key: _.code,
|
|
4031
4042
|
label: _.label,
|
|
4032
4043
|
width: _.width,
|
|
@@ -4041,7 +4052,7 @@ const Wr = {
|
|
|
4041
4052
|
field: _,
|
|
4042
4053
|
row: k,
|
|
4043
4054
|
mode: "list",
|
|
4044
|
-
onEnable:
|
|
4055
|
+
onEnable: m
|
|
4045
4056
|
}, null, 40, ["field", "row"]))
|
|
4046
4057
|
]),
|
|
4047
4058
|
key: "0"
|
|
@@ -4058,14 +4069,14 @@ const Wr = {
|
|
|
4058
4069
|
key: "1"
|
|
4059
4070
|
}
|
|
4060
4071
|
]), 1032, ["label", "width", "prop", "sortable", "fixed"]))), 128)),
|
|
4061
|
-
|
|
4072
|
+
f(r).actions ? (c(), S(f(je), {
|
|
4062
4073
|
key: 0,
|
|
4063
4074
|
label: "管理",
|
|
4064
4075
|
fixed: "right",
|
|
4065
4076
|
width: a.actionsWidth
|
|
4066
4077
|
}, {
|
|
4067
4078
|
default: w(({ row: _ }) => [
|
|
4068
|
-
x(
|
|
4079
|
+
x(f(pe), { size: "small" }, {
|
|
4069
4080
|
default: w(() => [
|
|
4070
4081
|
J(l.$slots, "actions", { row: _ }, void 0, !0)
|
|
4071
4082
|
]),
|
|
@@ -4073,17 +4084,17 @@ const Wr = {
|
|
|
4073
4084
|
}, 1024)
|
|
4074
4085
|
]),
|
|
4075
4086
|
_: 3
|
|
4076
|
-
}, 8, ["width"])) :
|
|
4077
|
-
A.value ? (c(), S(
|
|
4087
|
+
}, 8, ["width"])) : L("", !0),
|
|
4088
|
+
A.value ? (c(), S(f(je), {
|
|
4078
4089
|
key: 1,
|
|
4079
4090
|
fixed: "right",
|
|
4080
4091
|
label: "操作",
|
|
4081
4092
|
width: a.operationsWidth
|
|
4082
4093
|
}, {
|
|
4083
4094
|
default: w(({ row: _ }) => [
|
|
4084
|
-
x(
|
|
4095
|
+
x(f(pe), { size: "small" }, {
|
|
4085
4096
|
default: w(() => [
|
|
4086
|
-
x(
|
|
4097
|
+
x(xt, {
|
|
4087
4098
|
row: _,
|
|
4088
4099
|
settings: a.settings,
|
|
4089
4100
|
operations: a.operations
|
|
@@ -4093,12 +4104,12 @@ const Wr = {
|
|
|
4093
4104
|
}, 1024)
|
|
4094
4105
|
]),
|
|
4095
4106
|
_: 1
|
|
4096
|
-
}, 8, ["width"])) :
|
|
4107
|
+
}, 8, ["width"])) : L("", !0)
|
|
4097
4108
|
]),
|
|
4098
4109
|
_: 3
|
|
4099
4110
|
}, 8, ["data"]));
|
|
4100
4111
|
}
|
|
4101
|
-
}, tn = /* @__PURE__ */
|
|
4112
|
+
}, tn = /* @__PURE__ */ V(Wr, [["__scopeId", "data-v-31b40ae5"]]), Qr = {
|
|
4102
4113
|
__name: "DataTable",
|
|
4103
4114
|
props: {
|
|
4104
4115
|
data: {
|
|
@@ -4123,11 +4134,11 @@ const Wr = {
|
|
|
4123
4134
|
}
|
|
4124
4135
|
return j(n, (i) => {
|
|
4125
4136
|
a(i);
|
|
4126
|
-
}), (i, d) => (c(), S(X(r.value),
|
|
4127
|
-
q(
|
|
4137
|
+
}), (i, d) => (c(), S(X(r.value), Ft(Lt(o)), De({ _: 2 }, [
|
|
4138
|
+
q(f(s), (h, p) => ({
|
|
4128
4139
|
name: p,
|
|
4129
4140
|
fn: w((u) => [
|
|
4130
|
-
J(i.$slots, p,
|
|
4141
|
+
J(i.$slots, p, Ft(Lt(u || {})))
|
|
4131
4142
|
])
|
|
4132
4143
|
}))
|
|
4133
4144
|
]), 1040));
|
|
@@ -4150,7 +4161,7 @@ const Wr = {
|
|
|
4150
4161
|
var u;
|
|
4151
4162
|
return await ((u = o.operations) == null ? void 0 : u.creatable);
|
|
4152
4163
|
}
|
|
4153
|
-
|
|
4164
|
+
gt(() => {
|
|
4154
4165
|
d().then((u) => {
|
|
4155
4166
|
i.value = u;
|
|
4156
4167
|
});
|
|
@@ -4161,22 +4172,22 @@ const Wr = {
|
|
|
4161
4172
|
}
|
|
4162
4173
|
function p(u, E) {
|
|
4163
4174
|
const A = o.settings.formHook, y = o.settings.rest;
|
|
4164
|
-
Object.keys(s).forEach((
|
|
4165
|
-
u[
|
|
4175
|
+
Object.keys(s).forEach((m) => {
|
|
4176
|
+
u[m] = s[m];
|
|
4166
4177
|
}), A != null && A.preCreateSubmit && (u = A.preCreateSubmit(u)), y.create(u).then(() => {
|
|
4167
4178
|
a.value = !1, e.fireCreated();
|
|
4168
4179
|
}).catch(async () => {
|
|
4169
4180
|
E();
|
|
4170
4181
|
});
|
|
4171
4182
|
}
|
|
4172
|
-
return (u, E) => i.value ? (c(), S(
|
|
4183
|
+
return (u, E) => i.value ? (c(), S(f(ne), {
|
|
4173
4184
|
key: 0,
|
|
4174
4185
|
type: "success",
|
|
4175
4186
|
onClick: h
|
|
4176
4187
|
}, {
|
|
4177
4188
|
default: w(() => [
|
|
4178
|
-
|
|
4179
|
-
a.value ? (c(), S(
|
|
4189
|
+
N(" 添加 "),
|
|
4190
|
+
a.value ? (c(), S(St, {
|
|
4180
4191
|
key: 0,
|
|
4181
4192
|
modelValue: a.value,
|
|
4182
4193
|
"onUpdate:modelValue": E[0] || (E[0] = (A) => a.value = A),
|
|
@@ -4184,10 +4195,10 @@ const Wr = {
|
|
|
4184
4195
|
data: r.value,
|
|
4185
4196
|
removable: !1,
|
|
4186
4197
|
onSubmit: p
|
|
4187
|
-
}, null, 8, ["modelValue", "config", "data"])) :
|
|
4198
|
+
}, null, 8, ["modelValue", "config", "data"])) : L("", !0)
|
|
4188
4199
|
]),
|
|
4189
4200
|
_: 1
|
|
4190
|
-
})) :
|
|
4201
|
+
})) : L("", !0);
|
|
4191
4202
|
}
|
|
4192
4203
|
}, qn = {
|
|
4193
4204
|
__name: "RowActions",
|
|
@@ -4233,25 +4244,25 @@ const Wr = {
|
|
|
4233
4244
|
o.value = s.settings.rowActions(s.query);
|
|
4234
4245
|
},
|
|
4235
4246
|
{ immediate: !0 }
|
|
4236
|
-
), (d, h) => (c(!0), O(
|
|
4237
|
-
p.isVisible(s.row, s.query, s.mode) ? (c(), O(
|
|
4247
|
+
), (d, h) => (c(!0), O(P, null, q(o.value, (p) => (c(), O(P, null, [
|
|
4248
|
+
p.isVisible(s.row, s.query, s.mode) ? (c(), O(P, { key: 0 }, [
|
|
4238
4249
|
p.component ? (c(), S(X(p.component), {
|
|
4239
4250
|
key: 0,
|
|
4240
4251
|
row: t.row
|
|
4241
|
-
}, null, 8, ["row"])) : (c(), S(
|
|
4252
|
+
}, null, 8, ["row"])) : (c(), S(f(ne), {
|
|
4242
4253
|
key: 1,
|
|
4243
4254
|
type: p.type ? p.type : "primary",
|
|
4244
4255
|
onClick: (u) => a(p, s.row)
|
|
4245
4256
|
}, {
|
|
4246
4257
|
default: w(() => [
|
|
4247
|
-
|
|
4258
|
+
N(B(p.name), 1)
|
|
4248
4259
|
]),
|
|
4249
4260
|
_: 2
|
|
4250
4261
|
}, 1032, ["type", "onClick"]))
|
|
4251
|
-
], 64)) :
|
|
4262
|
+
], 64)) : L("", !0)
|
|
4252
4263
|
], 64))), 256));
|
|
4253
4264
|
}
|
|
4254
|
-
},
|
|
4265
|
+
}, Yr = {
|
|
4255
4266
|
__name: "PageActions",
|
|
4256
4267
|
props: {
|
|
4257
4268
|
settings: {
|
|
@@ -4268,7 +4279,7 @@ const Wr = {
|
|
|
4268
4279
|
}
|
|
4269
4280
|
},
|
|
4270
4281
|
setup(t) {
|
|
4271
|
-
const e = ce(), n = t, s = n.query, o = D({}), r = te([]), a =
|
|
4282
|
+
const e = ce(), n = t, s = n.query, o = D({}), r = te([]), a = I(() => {
|
|
4272
4283
|
var p, u;
|
|
4273
4284
|
return ((u = (p = n.tableDataSelect) == null ? void 0 : p.data) == null ? void 0 : u.length) > 0;
|
|
4274
4285
|
});
|
|
@@ -4302,36 +4313,36 @@ const Wr = {
|
|
|
4302
4313
|
r.value = n.settings.pageActions(n.query);
|
|
4303
4314
|
},
|
|
4304
4315
|
{ immediate: !0 }
|
|
4305
|
-
), (p, u) => (c(!0), O(
|
|
4306
|
-
h(E.isVisible) ? (c(), O(
|
|
4316
|
+
), (p, u) => (c(!0), O(P, null, q(r.value, (E) => (c(), O(P, null, [
|
|
4317
|
+
h(E.isVisible) ? (c(), O(P, { key: 0 }, [
|
|
4307
4318
|
E.component ? (c(), S(X(E.component), {
|
|
4308
4319
|
key: 0,
|
|
4309
4320
|
item: E,
|
|
4310
4321
|
settings: t.settings,
|
|
4311
|
-
query:
|
|
4322
|
+
query: f(s),
|
|
4312
4323
|
"table-data-select": t.tableDataSelect,
|
|
4313
4324
|
"filter-form": t.filterForm
|
|
4314
|
-
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : E.tooltip && E.tooltip.content ? (c(), S(
|
|
4325
|
+
}, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : E.tooltip && E.tooltip.content ? (c(), S(f(yn), {
|
|
4315
4326
|
key: 1,
|
|
4316
4327
|
effect: E.tooltip.effect || "dark",
|
|
4317
4328
|
content: E.tooltip.content || "default tip",
|
|
4318
4329
|
placement: E.tooltip.placement || "top-start"
|
|
4319
4330
|
}, {
|
|
4320
4331
|
default: w(() => [
|
|
4321
|
-
x(
|
|
4332
|
+
x(f(ne), {
|
|
4322
4333
|
type: E.type,
|
|
4323
4334
|
loading: i.value,
|
|
4324
4335
|
disabled: !E.enable && !a.value,
|
|
4325
4336
|
onClick: (A) => d(E)
|
|
4326
4337
|
}, {
|
|
4327
4338
|
default: w(() => [
|
|
4328
|
-
|
|
4339
|
+
N(B(E.name), 1)
|
|
4329
4340
|
]),
|
|
4330
4341
|
_: 2
|
|
4331
4342
|
}, 1032, ["type", "loading", "disabled", "onClick"])
|
|
4332
4343
|
]),
|
|
4333
4344
|
_: 2
|
|
4334
|
-
}, 1032, ["effect", "content", "placement"])) : (c(), S(
|
|
4345
|
+
}, 1032, ["effect", "content", "placement"])) : (c(), S(f(ne), {
|
|
4335
4346
|
key: 2,
|
|
4336
4347
|
type: E.type,
|
|
4337
4348
|
loading: i.value,
|
|
@@ -4339,14 +4350,14 @@ const Wr = {
|
|
|
4339
4350
|
onClick: (A) => d(E)
|
|
4340
4351
|
}, {
|
|
4341
4352
|
default: w(() => [
|
|
4342
|
-
|
|
4353
|
+
N(B(E.name), 1)
|
|
4343
4354
|
]),
|
|
4344
4355
|
_: 2
|
|
4345
4356
|
}, 1032, ["type", "loading", "disabled", "onClick"]))
|
|
4346
|
-
], 64)) :
|
|
4357
|
+
], 64)) : L("", !0)
|
|
4347
4358
|
], 64))), 256));
|
|
4348
4359
|
}
|
|
4349
|
-
},
|
|
4360
|
+
}, Gr = { class: "pagination-wrapper" }, Kr = {
|
|
4350
4361
|
__name: "Pagination",
|
|
4351
4362
|
props: {
|
|
4352
4363
|
total: {
|
|
@@ -4399,8 +4410,8 @@ const Wr = {
|
|
|
4399
4410
|
}
|
|
4400
4411
|
});
|
|
4401
4412
|
}
|
|
4402
|
-
return (E, A) => (c(), O("div",
|
|
4403
|
-
x(
|
|
4413
|
+
return (E, A) => (c(), O("div", Gr, [
|
|
4414
|
+
x(f(ms), {
|
|
4404
4415
|
background: "",
|
|
4405
4416
|
"page-size": i.value,
|
|
4406
4417
|
"page-sizes": h.value,
|
|
@@ -4412,12 +4423,12 @@ const Wr = {
|
|
|
4412
4423
|
}, null, 8, ["page-size", "page-sizes", "total", "current-page"])
|
|
4413
4424
|
]));
|
|
4414
4425
|
}
|
|
4415
|
-
}, Xr = /* @__PURE__ */
|
|
4426
|
+
}, Xr = /* @__PURE__ */ V(Kr, [["__scopeId", "data-v-3c65f1a1"]]);
|
|
4416
4427
|
var nn;
|
|
4417
4428
|
const Wn = typeof window < "u";
|
|
4418
4429
|
Wn && ((nn = window == null ? void 0 : window.navigator) != null && nn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
4419
4430
|
function Zr(t) {
|
|
4420
|
-
return typeof t == "function" ? t() :
|
|
4431
|
+
return typeof t == "function" ? t() : f(t);
|
|
4421
4432
|
}
|
|
4422
4433
|
function ei(t) {
|
|
4423
4434
|
return t;
|
|
@@ -4519,16 +4530,16 @@ const mi = {
|
|
|
4519
4530
|
}
|
|
4520
4531
|
},
|
|
4521
4532
|
setup(t) {
|
|
4522
|
-
var
|
|
4533
|
+
var Dt, Rt;
|
|
4523
4534
|
os((F) => ({
|
|
4524
4535
|
"0ecfde47": Xn.value
|
|
4525
4536
|
}));
|
|
4526
|
-
const e = U(), n = Q(e), s = t, o =
|
|
4537
|
+
const e = U(), n = Q(e), s = t, o = Pe(
|
|
4527
4538
|
s.settings.code,
|
|
4528
4539
|
e.path,
|
|
4529
4540
|
s.settings.filters,
|
|
4530
4541
|
s.settings.filterHook
|
|
4531
|
-
)(), { filters: r } = ge(o), a = (
|
|
4542
|
+
)(), { filters: r } = ge(o), a = (Dt = s == null ? void 0 : s.hasMany) == null ? void 0 : Dt.tableName;
|
|
4532
4543
|
j(r, (F) => {
|
|
4533
4544
|
l.value = F, M();
|
|
4534
4545
|
});
|
|
@@ -4536,7 +4547,7 @@ const mi = {
|
|
|
4536
4547
|
j([d, h, p], ([F, z, se]) => {
|
|
4537
4548
|
(F || z || se) && M();
|
|
4538
4549
|
});
|
|
4539
|
-
const u = D(!0), E = D([]), A = D(0), y = D({}),
|
|
4550
|
+
const u = D(!0), E = D([]), A = D(0), y = D({}), m = D({}), g = D(null), $ = D(null), l = D({}), b = D(parseInt(e.query.pageSize) || 30), _ = D(parseInt(e.query.page) || 1), k = (Rt = s.hasMany) == null ? void 0 : Rt.tableContentHeight;
|
|
4540
4551
|
function R(F) {
|
|
4541
4552
|
let z = null;
|
|
4542
4553
|
if (F.order === "ascending" ? z = "ASC" : F.order === "descending" && (z = "DESC"), l.value.sorters) {
|
|
@@ -4551,8 +4562,8 @@ const mi = {
|
|
|
4551
4562
|
l.value.sorters = [{ field: F.prop, order: z }];
|
|
4552
4563
|
M();
|
|
4553
4564
|
}
|
|
4554
|
-
function
|
|
4555
|
-
|
|
4565
|
+
function K() {
|
|
4566
|
+
m.value = s.settings.operations(n);
|
|
4556
4567
|
}
|
|
4557
4568
|
function M(F) {
|
|
4558
4569
|
u.value = !0;
|
|
@@ -4567,16 +4578,16 @@ const mi = {
|
|
|
4567
4578
|
y.value.data = [], E.value = se.data.rows, A.value = se.data.count, u.value = !1, A.value && E.value.length == 0 && M("again");
|
|
4568
4579
|
});
|
|
4569
4580
|
}
|
|
4570
|
-
function
|
|
4581
|
+
function Y(F) {
|
|
4571
4582
|
_.value = F.page, b.value = F.size, M();
|
|
4572
4583
|
}
|
|
4573
|
-
function
|
|
4584
|
+
function kt(F) {
|
|
4574
4585
|
const z = { id: F.id, enable: !F.enable };
|
|
4575
4586
|
s.settings.rest.enable(z).then(() => {
|
|
4576
4587
|
M();
|
|
4577
4588
|
});
|
|
4578
4589
|
}
|
|
4579
|
-
function
|
|
4590
|
+
function Gn(F) {
|
|
4580
4591
|
if (F.enable) {
|
|
4581
4592
|
const z = F.label === "上架" ? "下架" : "停用";
|
|
4582
4593
|
ElMessageBox.confirm(`确定要${z}该条数据吗?`, "提示", {
|
|
@@ -4584,25 +4595,25 @@ const mi = {
|
|
|
4584
4595
|
cancelButtonText: "取消",
|
|
4585
4596
|
type: "warning"
|
|
4586
4597
|
}).then(() => {
|
|
4587
|
-
|
|
4598
|
+
kt(F);
|
|
4588
4599
|
}).catch(() => {
|
|
4589
4600
|
});
|
|
4590
4601
|
} else
|
|
4591
|
-
|
|
4602
|
+
kt(F);
|
|
4592
4603
|
}
|
|
4593
|
-
function
|
|
4604
|
+
function Kn(F) {
|
|
4594
4605
|
y.value = F;
|
|
4595
4606
|
}
|
|
4596
|
-
const
|
|
4607
|
+
const At = D(0), Ct = D(0);
|
|
4597
4608
|
rn(g, (F) => {
|
|
4598
4609
|
var z;
|
|
4599
|
-
|
|
4610
|
+
At.value = ((z = F[0]) == null ? void 0 : z.contentRect.height) || 0;
|
|
4600
4611
|
}), rn($, (F) => {
|
|
4601
4612
|
var z;
|
|
4602
|
-
|
|
4613
|
+
Ct.value = ((z = F[0]) == null ? void 0 : z.contentRect.height) || 0;
|
|
4603
4614
|
});
|
|
4604
|
-
const Xn =
|
|
4605
|
-
return
|
|
4615
|
+
const Xn = I(() => k && A.value > 0 ? `${k}px` : `calc(100% - ${At.value + Ct.value}px)`);
|
|
4616
|
+
return K(), (F, z) => (c(), O("div", {
|
|
4606
4617
|
key: s.settings.code,
|
|
4607
4618
|
style: { height: "100%" }
|
|
4608
4619
|
}, [
|
|
@@ -4612,18 +4623,18 @@ const mi = {
|
|
|
4612
4623
|
}, [
|
|
4613
4624
|
x(Or, {
|
|
4614
4625
|
settings: s.settings,
|
|
4615
|
-
"table-name":
|
|
4626
|
+
"table-name": f(a)
|
|
4616
4627
|
}, {
|
|
4617
4628
|
operations: w(() => [
|
|
4618
|
-
x(
|
|
4629
|
+
x(Yr, {
|
|
4619
4630
|
settings: s.settings,
|
|
4620
4631
|
"table-data-select": y.value,
|
|
4621
|
-
query:
|
|
4632
|
+
query: f(n),
|
|
4622
4633
|
"filter-form": l.value
|
|
4623
4634
|
}, null, 8, ["settings", "table-data-select", "query", "filter-form"]),
|
|
4624
4635
|
x(Jr, {
|
|
4625
4636
|
settings: s.settings,
|
|
4626
|
-
operations:
|
|
4637
|
+
operations: m.value
|
|
4627
4638
|
}, null, 8, ["settings", "operations"])
|
|
4628
4639
|
]),
|
|
4629
4640
|
_: 1
|
|
@@ -4632,27 +4643,27 @@ const mi = {
|
|
|
4632
4643
|
_e((c(), S(Qr, {
|
|
4633
4644
|
class: "data-table-box",
|
|
4634
4645
|
data: E.value,
|
|
4635
|
-
operations:
|
|
4646
|
+
operations: m.value,
|
|
4636
4647
|
settings: s.settings,
|
|
4637
4648
|
"actions-width": s.settings.actionsWidth,
|
|
4638
4649
|
onSortColumn: R,
|
|
4639
|
-
onEnableItem:
|
|
4640
|
-
onSelectChange:
|
|
4650
|
+
onEnableItem: Gn,
|
|
4651
|
+
onSelectChange: Kn
|
|
4641
4652
|
}, De({ _: 2 }, [
|
|
4642
|
-
s.settings.rowActions(
|
|
4653
|
+
s.settings.rowActions(f(n)).length > 0 ? {
|
|
4643
4654
|
name: "actions",
|
|
4644
4655
|
fn: w(({ row: se }) => [
|
|
4645
4656
|
x(qn, {
|
|
4646
4657
|
mode: "list",
|
|
4647
4658
|
row: se,
|
|
4648
4659
|
settings: s.settings,
|
|
4649
|
-
query:
|
|
4660
|
+
query: f(n)
|
|
4650
4661
|
}, null, 8, ["row", "settings", "query"])
|
|
4651
4662
|
]),
|
|
4652
4663
|
key: "0"
|
|
4653
4664
|
} : void 0
|
|
4654
4665
|
]), 1032, ["data", "operations", "settings", "actions-width"])), [
|
|
4655
|
-
[
|
|
4666
|
+
[f(ve), u.value]
|
|
4656
4667
|
]),
|
|
4657
4668
|
C("div", {
|
|
4658
4669
|
ref_key: "pagination",
|
|
@@ -4662,12 +4673,12 @@ const mi = {
|
|
|
4662
4673
|
page: _.value,
|
|
4663
4674
|
size: b.value,
|
|
4664
4675
|
total: A.value,
|
|
4665
|
-
onPageChange:
|
|
4676
|
+
onPageChange: Y
|
|
4666
4677
|
}, null, 8, ["page", "size", "total"])
|
|
4667
4678
|
], 512)
|
|
4668
4679
|
]));
|
|
4669
4680
|
}
|
|
4670
|
-
}, Qn = /* @__PURE__ */
|
|
4681
|
+
}, Qn = /* @__PURE__ */ V(mi, [["__scopeId", "data-v-4a31051d"]]);
|
|
4671
4682
|
/*! Element Plus v2.7.2 */
|
|
4672
4683
|
var hi = {
|
|
4673
4684
|
name: "zh-cn",
|
|
@@ -4831,33 +4842,33 @@ const gi = {
|
|
|
4831
4842
|
}
|
|
4832
4843
|
},
|
|
4833
4844
|
setup(t) {
|
|
4834
|
-
const e = t, n =
|
|
4845
|
+
const e = t, n = I(() => e.content ? e.content.toString() : "");
|
|
4835
4846
|
return (s, o) => (c(), O("div", null, [
|
|
4836
|
-
n.value.length > e.tipShowLength ? (c(), S(
|
|
4847
|
+
n.value.length > e.tipShowLength ? (c(), S(f(yn), {
|
|
4837
4848
|
key: 0,
|
|
4838
4849
|
content: n.value,
|
|
4839
4850
|
effect: "light"
|
|
4840
4851
|
}, {
|
|
4841
4852
|
default: w(() => [
|
|
4842
|
-
x(
|
|
4853
|
+
x(f(Bt), {
|
|
4843
4854
|
class: he(e.className),
|
|
4844
4855
|
type: e.textType,
|
|
4845
4856
|
"line-clamp": e.lineClamp
|
|
4846
4857
|
}, {
|
|
4847
4858
|
default: w(() => [
|
|
4848
|
-
|
|
4859
|
+
N(B(n.value), 1)
|
|
4849
4860
|
]),
|
|
4850
4861
|
_: 1
|
|
4851
4862
|
}, 8, ["class", "type", "line-clamp"])
|
|
4852
4863
|
]),
|
|
4853
4864
|
_: 1
|
|
4854
|
-
}, 8, ["content"])) : (c(), S(
|
|
4865
|
+
}, 8, ["content"])) : (c(), S(f(Bt), {
|
|
4855
4866
|
key: 1,
|
|
4856
4867
|
type: e.textType,
|
|
4857
4868
|
class: he(e.className)
|
|
4858
4869
|
}, {
|
|
4859
4870
|
default: w(() => [
|
|
4860
|
-
|
|
4871
|
+
N(B(n.value), 1)
|
|
4861
4872
|
]),
|
|
4862
4873
|
_: 1
|
|
4863
4874
|
}, 8, ["type", "class"]))
|
|
@@ -4871,14 +4882,14 @@ const gi = {
|
|
|
4871
4882
|
}
|
|
4872
4883
|
},
|
|
4873
4884
|
setup(t) {
|
|
4874
|
-
const e = fe(), n = U(), s =
|
|
4885
|
+
const e = fe(), n = U(), s = Ot(), o = D("首页"), r = t, a = n.fullPath.split("/")[1], i = A();
|
|
4875
4886
|
s.setupRootPath("首页", `/${a}/home`);
|
|
4876
4887
|
function d(y) {
|
|
4877
4888
|
var b, _;
|
|
4878
|
-
const
|
|
4889
|
+
const m = y.meta.side, g = y.params.domain;
|
|
4879
4890
|
let $ = (b = y.meta) == null ? void 0 : b.title, l = (_ = y.meta) == null ? void 0 : _.code;
|
|
4880
|
-
if (
|
|
4881
|
-
$ =
|
|
4891
|
+
if (m && g) {
|
|
4892
|
+
$ = Et()[m][y.params.domain].name, l = y.params.domain;
|
|
4882
4893
|
const k = y.params.id;
|
|
4883
4894
|
k && k != "detail" && ($ = `${$} - ${y.params.id}`, l = `${y.params.domain}-${y.params.id}`);
|
|
4884
4895
|
} else {
|
|
@@ -4888,22 +4899,22 @@ const gi = {
|
|
|
4888
4899
|
$ && l && (s.push($, l, y.fullPath), o.value = l);
|
|
4889
4900
|
}
|
|
4890
4901
|
function h(y) {
|
|
4891
|
-
const
|
|
4892
|
-
e.push(
|
|
4902
|
+
const m = s.history.find((g) => g.code == y.props.name);
|
|
4903
|
+
e.push(m.path);
|
|
4893
4904
|
}
|
|
4894
4905
|
function p(y) {
|
|
4895
4906
|
if (s.remove(y), y == o.value) {
|
|
4896
|
-
const
|
|
4897
|
-
o.value =
|
|
4907
|
+
const m = s.getLast();
|
|
4908
|
+
o.value = m.title, e.push(m.path);
|
|
4898
4909
|
}
|
|
4899
4910
|
}
|
|
4900
|
-
const u = (y,
|
|
4911
|
+
const u = (y, m) => {
|
|
4901
4912
|
const g = s.history.length;
|
|
4902
|
-
return y === 0 &&
|
|
4913
|
+
return y === 0 && m === "self" || y < 2 && m === "left" || y === g - 1 && m === "right" || g === 1 && m === "all" ? !1 : !(g < 2 && m === "other");
|
|
4903
4914
|
};
|
|
4904
|
-
function E(y,
|
|
4915
|
+
function E(y, m) {
|
|
4905
4916
|
const g = [], $ = s.history;
|
|
4906
|
-
switch (
|
|
4917
|
+
switch (m) {
|
|
4907
4918
|
case "self":
|
|
4908
4919
|
g.push($[y].code);
|
|
4909
4920
|
break;
|
|
@@ -4936,10 +4947,10 @@ const gi = {
|
|
|
4936
4947
|
d(n);
|
|
4937
4948
|
},
|
|
4938
4949
|
{ immediate: !0 }
|
|
4939
|
-
), (y,
|
|
4950
|
+
), (y, m) => (c(), O("div", yi, [
|
|
4940
4951
|
C("div", null, [
|
|
4941
4952
|
C("div", _i, [
|
|
4942
|
-
x(
|
|
4953
|
+
x(f(gn), {
|
|
4943
4954
|
class: "header-img",
|
|
4944
4955
|
src: r.config.logo,
|
|
4945
4956
|
fit: "scale-down"
|
|
@@ -4948,100 +4959,100 @@ const gi = {
|
|
|
4948
4959
|
])
|
|
4949
4960
|
]),
|
|
4950
4961
|
C("div", bi, [
|
|
4951
|
-
x(
|
|
4962
|
+
x(f(_n), {
|
|
4952
4963
|
modelValue: o.value,
|
|
4953
|
-
"onUpdate:modelValue":
|
|
4964
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => o.value = g),
|
|
4954
4965
|
type: "card",
|
|
4955
4966
|
class: "tabs",
|
|
4956
4967
|
onTabClick: h,
|
|
4957
4968
|
onTabRemove: p
|
|
4958
4969
|
}, {
|
|
4959
4970
|
default: w(() => [
|
|
4960
|
-
(c(!0), O(
|
|
4971
|
+
(c(!0), O(P, null, q(f(s).history, (g, $) => (c(), S(f(vn), {
|
|
4961
4972
|
closable: g.title != "首页",
|
|
4962
4973
|
label: g.title,
|
|
4963
4974
|
name: g.code
|
|
4964
4975
|
}, {
|
|
4965
4976
|
label: w(() => [
|
|
4966
|
-
x(
|
|
4977
|
+
x(f(at), { trigger: "contextmenu" }, {
|
|
4967
4978
|
dropdown: w(() => [
|
|
4968
|
-
x(
|
|
4979
|
+
x(f(rt), null, {
|
|
4969
4980
|
default: w(() => [
|
|
4970
|
-
u($, "self") ? (c(), S(
|
|
4981
|
+
u($, "self") ? (c(), S(f(ue), {
|
|
4971
4982
|
key: 0,
|
|
4972
4983
|
onClick: (l) => E($, "self")
|
|
4973
4984
|
}, {
|
|
4974
4985
|
default: w(() => [
|
|
4975
|
-
x(
|
|
4986
|
+
x(f(G), null, {
|
|
4976
4987
|
default: w(() => [
|
|
4977
|
-
x(
|
|
4988
|
+
x(f(er))
|
|
4978
4989
|
]),
|
|
4979
4990
|
_: 1
|
|
4980
4991
|
}),
|
|
4981
|
-
|
|
4992
|
+
N(" 关闭当前标签页 ")
|
|
4982
4993
|
]),
|
|
4983
4994
|
_: 2
|
|
4984
|
-
}, 1032, ["onClick"])) :
|
|
4985
|
-
u($, "left") ? (c(), S(
|
|
4995
|
+
}, 1032, ["onClick"])) : L("", !0),
|
|
4996
|
+
u($, "left") ? (c(), S(f(ue), {
|
|
4986
4997
|
key: 1,
|
|
4987
4998
|
onClick: (l) => E($, "left")
|
|
4988
4999
|
}, {
|
|
4989
5000
|
default: w(() => [
|
|
4990
|
-
x(
|
|
5001
|
+
x(f(G), null, {
|
|
4991
5002
|
default: w(() => [
|
|
4992
|
-
x(
|
|
5003
|
+
x(f(Xt))
|
|
4993
5004
|
]),
|
|
4994
5005
|
_: 1
|
|
4995
5006
|
}),
|
|
4996
|
-
|
|
5007
|
+
N(" 关闭左侧标签页 ")
|
|
4997
5008
|
]),
|
|
4998
5009
|
_: 2
|
|
4999
|
-
}, 1032, ["onClick"])) :
|
|
5000
|
-
u($, "right") ? (c(), S(
|
|
5010
|
+
}, 1032, ["onClick"])) : L("", !0),
|
|
5011
|
+
u($, "right") ? (c(), S(f(ue), {
|
|
5001
5012
|
key: 2,
|
|
5002
5013
|
onClick: (l) => E($, "right")
|
|
5003
5014
|
}, {
|
|
5004
5015
|
default: w(() => [
|
|
5005
|
-
x(
|
|
5016
|
+
x(f(G), null, {
|
|
5006
5017
|
default: w(() => [
|
|
5007
|
-
x(
|
|
5018
|
+
x(f(sr))
|
|
5008
5019
|
]),
|
|
5009
5020
|
_: 1
|
|
5010
5021
|
}),
|
|
5011
|
-
|
|
5022
|
+
N(" 关闭右侧标签页 ")
|
|
5012
5023
|
]),
|
|
5013
5024
|
_: 2
|
|
5014
|
-
}, 1032, ["onClick"])) :
|
|
5015
|
-
u($, "all") ? (c(), S(
|
|
5025
|
+
}, 1032, ["onClick"])) : L("", !0),
|
|
5026
|
+
u($, "all") ? (c(), S(f(ue), {
|
|
5016
5027
|
key: 3,
|
|
5017
5028
|
onClick: (l) => E($, "all")
|
|
5018
5029
|
}, {
|
|
5019
5030
|
default: w(() => [
|
|
5020
|
-
x(
|
|
5031
|
+
x(f(G), null, {
|
|
5021
5032
|
default: w(() => [
|
|
5022
|
-
x(
|
|
5033
|
+
x(f(dr))
|
|
5023
5034
|
]),
|
|
5024
5035
|
_: 1
|
|
5025
5036
|
}),
|
|
5026
|
-
|
|
5037
|
+
N(" 关闭全部标签页 ")
|
|
5027
5038
|
]),
|
|
5028
5039
|
_: 2
|
|
5029
|
-
}, 1032, ["onClick"])) :
|
|
5030
|
-
u($, "other") ? (c(), S(
|
|
5040
|
+
}, 1032, ["onClick"])) : L("", !0),
|
|
5041
|
+
u($, "other") ? (c(), S(f(ue), {
|
|
5031
5042
|
key: 4,
|
|
5032
5043
|
onClick: (l) => E($, "other")
|
|
5033
5044
|
}, {
|
|
5034
5045
|
default: w(() => [
|
|
5035
|
-
x(
|
|
5046
|
+
x(f(G), null, {
|
|
5036
5047
|
default: w(() => [
|
|
5037
|
-
x(
|
|
5048
|
+
x(f(fr))
|
|
5038
5049
|
]),
|
|
5039
5050
|
_: 1
|
|
5040
5051
|
}),
|
|
5041
|
-
|
|
5052
|
+
N(" 关闭其他标签页 ")
|
|
5042
5053
|
]),
|
|
5043
5054
|
_: 2
|
|
5044
|
-
}, 1032, ["onClick"])) :
|
|
5055
|
+
}, 1032, ["onClick"])) : L("", !0)
|
|
5045
5056
|
]),
|
|
5046
5057
|
_: 2
|
|
5047
5058
|
}, 1024)
|
|
@@ -5064,11 +5075,11 @@ const gi = {
|
|
|
5064
5075
|
}, 8, ["modelValue"]),
|
|
5065
5076
|
C("span", {
|
|
5066
5077
|
class: "back-icon",
|
|
5067
|
-
onClick:
|
|
5078
|
+
onClick: m[1] || (m[1] = (g) => f(e).back())
|
|
5068
5079
|
}, [
|
|
5069
|
-
x(
|
|
5080
|
+
x(f(G), null, {
|
|
5070
5081
|
default: w(() => [
|
|
5071
|
-
x(
|
|
5082
|
+
x(f(Xt))
|
|
5072
5083
|
]),
|
|
5073
5084
|
_: 1
|
|
5074
5085
|
})
|
|
@@ -5079,7 +5090,7 @@ const gi = {
|
|
|
5079
5090
|
])
|
|
5080
5091
|
]));
|
|
5081
5092
|
}
|
|
5082
|
-
}, $i = /* @__PURE__ */
|
|
5093
|
+
}, $i = /* @__PURE__ */ V(Ei, [["__scopeId", "data-v-4c5cfc79"]]), Si = (t) => (pn("data-v-22a49b3f"), t = t(), fn(), t), Oi = {
|
|
5083
5094
|
key: 2,
|
|
5084
5095
|
class: "dot-wrapper"
|
|
5085
5096
|
}, xi = /* @__PURE__ */ Si(() => /* @__PURE__ */ C("span", { class: "dot" }, null, -1)), ki = [
|
|
@@ -5095,46 +5106,46 @@ const gi = {
|
|
|
5095
5106
|
},
|
|
5096
5107
|
setup(t) {
|
|
5097
5108
|
const e = t;
|
|
5098
|
-
return (n, s) => t.data.children ? (c(), S(
|
|
5109
|
+
return (n, s) => t.data.children ? (c(), S(f(hs), {
|
|
5099
5110
|
key: 0,
|
|
5100
5111
|
index: t.data.title
|
|
5101
5112
|
}, {
|
|
5102
5113
|
title: w(() => [
|
|
5103
|
-
t.data.icon ? (c(), S(
|
|
5114
|
+
t.data.icon ? (c(), S(f(G), { key: 0 }, {
|
|
5104
5115
|
default: w(() => [
|
|
5105
5116
|
(c(), S(X(t.data.icon)))
|
|
5106
5117
|
]),
|
|
5107
5118
|
_: 1
|
|
5108
|
-
})) : (c(), S(
|
|
5119
|
+
})) : (c(), S(f(G), { key: 1 }, {
|
|
5109
5120
|
default: w(() => [
|
|
5110
|
-
x(
|
|
5121
|
+
x(f(Zt))
|
|
5111
5122
|
]),
|
|
5112
5123
|
_: 1
|
|
5113
5124
|
})),
|
|
5114
5125
|
C("span", null, B(t.data.title), 1)
|
|
5115
5126
|
]),
|
|
5116
5127
|
default: w(() => [
|
|
5117
|
-
(c(!0), O(
|
|
5128
|
+
(c(!0), O(P, null, q(t.data.children, (o) => (c(), S(Jn, {
|
|
5118
5129
|
data: o,
|
|
5119
5130
|
"has-parent": !0
|
|
5120
5131
|
}, null, 8, ["data"]))), 256))
|
|
5121
5132
|
]),
|
|
5122
5133
|
_: 1
|
|
5123
|
-
}, 8, ["index"])) : (c(), S(
|
|
5134
|
+
}, 8, ["index"])) : (c(), S(f(gs), {
|
|
5124
5135
|
key: 1,
|
|
5125
5136
|
index: t.data.route,
|
|
5126
5137
|
route: t.data.route,
|
|
5127
5138
|
class: "menu-item"
|
|
5128
5139
|
}, {
|
|
5129
5140
|
default: w(() => [
|
|
5130
|
-
t.data.icon ? (c(), S(
|
|
5141
|
+
t.data.icon ? (c(), S(f(G), { key: 0 }, {
|
|
5131
5142
|
default: w(() => [
|
|
5132
5143
|
(c(), S(X(t.data.icon)))
|
|
5133
5144
|
]),
|
|
5134
5145
|
_: 1
|
|
5135
|
-
})) : e.hasParent ? (c(), O("span", Oi, ki)) : (c(), S(
|
|
5146
|
+
})) : e.hasParent ? (c(), O("span", Oi, ki)) : (c(), S(f(G), { key: 1 }, {
|
|
5136
5147
|
default: w(() => [
|
|
5137
|
-
x(
|
|
5148
|
+
x(f(Zt))
|
|
5138
5149
|
]),
|
|
5139
5150
|
_: 1
|
|
5140
5151
|
})),
|
|
@@ -5143,7 +5154,7 @@ const gi = {
|
|
|
5143
5154
|
_: 1
|
|
5144
5155
|
}, 8, ["index", "route"]));
|
|
5145
5156
|
}
|
|
5146
|
-
}, Jn = /* @__PURE__ */
|
|
5157
|
+
}, Jn = /* @__PURE__ */ V(Ai, [["__scopeId", "data-v-22a49b3f"]]), Ci = {
|
|
5147
5158
|
__name: "SideBar",
|
|
5148
5159
|
props: {
|
|
5149
5160
|
sideMenus: {
|
|
@@ -5163,15 +5174,15 @@ const gi = {
|
|
|
5163
5174
|
s.value = n.fullPath;
|
|
5164
5175
|
},
|
|
5165
5176
|
{ immediate: !0 }
|
|
5166
|
-
), (i, d) => (c(), S(
|
|
5177
|
+
), (i, d) => (c(), S(f(ys), null, {
|
|
5167
5178
|
default: w(() => [
|
|
5168
|
-
x(
|
|
5179
|
+
x(f(_s), {
|
|
5169
5180
|
class: "menu",
|
|
5170
5181
|
router: !0,
|
|
5171
5182
|
"default-active": s.value
|
|
5172
5183
|
}, {
|
|
5173
5184
|
default: w(() => [
|
|
5174
|
-
(c(!0), O(
|
|
5185
|
+
(c(!0), O(P, null, q(f(a), (h) => (c(), S(Jn, { data: h }, null, 8, ["data"]))), 256))
|
|
5175
5186
|
]),
|
|
5176
5187
|
_: 1
|
|
5177
5188
|
}, 8, ["default-active"])
|
|
@@ -5179,7 +5190,7 @@ const gi = {
|
|
|
5179
5190
|
_: 1
|
|
5180
5191
|
}));
|
|
5181
5192
|
}
|
|
5182
|
-
}, Di = /* @__PURE__ */
|
|
5193
|
+
}, Di = /* @__PURE__ */ V(Ci, [["__scopeId", "data-v-e039032d"]]), Ri = {
|
|
5183
5194
|
__name: "BaseLayout",
|
|
5184
5195
|
props: {
|
|
5185
5196
|
config: {
|
|
@@ -5188,14 +5199,14 @@ const gi = {
|
|
|
5188
5199
|
}
|
|
5189
5200
|
},
|
|
5190
5201
|
setup(t) {
|
|
5191
|
-
const e = U(), n = t, s = { ...He(), ...n.config }, o =
|
|
5202
|
+
const e = U(), n = t, s = { ...He(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
|
|
5192
5203
|
return (r, a) => {
|
|
5193
5204
|
const i = qe("router-view");
|
|
5194
|
-
return c(), S(
|
|
5205
|
+
return c(), S(f(vs), { locale: f(hi) }, {
|
|
5195
5206
|
default: w(() => [
|
|
5196
|
-
x(
|
|
5207
|
+
x(f(Vt), { style: { height: "100%" } }, {
|
|
5197
5208
|
default: w(() => [
|
|
5198
|
-
x(
|
|
5209
|
+
x(f(bs), { class: "page-header" }, {
|
|
5199
5210
|
default: w(() => [
|
|
5200
5211
|
x($i, { config: s }, {
|
|
5201
5212
|
"user-profile": w(() => [
|
|
@@ -5206,9 +5217,9 @@ const gi = {
|
|
|
5206
5217
|
]),
|
|
5207
5218
|
_: 3
|
|
5208
5219
|
}),
|
|
5209
|
-
x(
|
|
5220
|
+
x(f(Vt), { class: "page-content-container" }, {
|
|
5210
5221
|
default: w(() => [
|
|
5211
|
-
x(
|
|
5222
|
+
x(f(ws), { class: "page-content-aside" }, {
|
|
5212
5223
|
default: w(() => [
|
|
5213
5224
|
x(Di, {
|
|
5214
5225
|
"side-menus": s.sideMenus
|
|
@@ -5216,7 +5227,7 @@ const gi = {
|
|
|
5216
5227
|
]),
|
|
5217
5228
|
_: 1
|
|
5218
5229
|
}),
|
|
5219
|
-
x(
|
|
5230
|
+
x(f(Es), { class: "page-content-main" }, {
|
|
5220
5231
|
default: w(() => [
|
|
5221
5232
|
(c(), S(i, { key: o.value }))
|
|
5222
5233
|
]),
|
|
@@ -5233,7 +5244,7 @@ const gi = {
|
|
|
5233
5244
|
}, 8, ["locale"]);
|
|
5234
5245
|
};
|
|
5235
5246
|
}
|
|
5236
|
-
}, $l = /* @__PURE__ */
|
|
5247
|
+
}, $l = /* @__PURE__ */ V(Ri, [["__scopeId", "data-v-ea73195f"]]), Ti = {
|
|
5237
5248
|
key: 1,
|
|
5238
5249
|
class: "loading-wrapper"
|
|
5239
5250
|
}, Fi = {
|
|
@@ -5245,19 +5256,19 @@ const gi = {
|
|
|
5245
5256
|
},
|
|
5246
5257
|
setup(t) {
|
|
5247
5258
|
const e = t, n = U(), s = n.meta.side, o = e.domain || n.params.domain, r = te(null);
|
|
5248
|
-
return
|
|
5259
|
+
return $t(s, o).then((a) => {
|
|
5249
5260
|
r.value = a;
|
|
5250
5261
|
}), (a, i) => r.value ? (c(), S(Qn, {
|
|
5251
5262
|
key: 0,
|
|
5252
5263
|
settings: r.value
|
|
5253
5264
|
}, null, 8, ["settings"])) : _e((c(), O("div", Ti, null, 512)), [
|
|
5254
|
-
[
|
|
5265
|
+
[f(ve), !0]
|
|
5255
5266
|
]);
|
|
5256
5267
|
}
|
|
5257
|
-
},
|
|
5268
|
+
}, Li = /* @__PURE__ */ V(Fi, [["__scopeId", "data-v-2d9c8e98"]]), Pi = { key: 0 }, ji = { class: "key" }, Bi = { class: "value" }, Vi = {
|
|
5258
5269
|
key: 1,
|
|
5259
5270
|
class: "loading-wrapper"
|
|
5260
|
-
},
|
|
5271
|
+
}, Ni = {
|
|
5261
5272
|
__name: "DomainDescription",
|
|
5262
5273
|
props: {
|
|
5263
5274
|
settings: {
|
|
@@ -5281,21 +5292,21 @@ const gi = {
|
|
|
5281
5292
|
"json",
|
|
5282
5293
|
"tree-select",
|
|
5283
5294
|
"radio-group"
|
|
5284
|
-
], p =
|
|
5295
|
+
], p = I(() => s.settings.fields.filter((g) => g.showInDetail(d.value, {
|
|
5285
5296
|
...r,
|
|
5286
5297
|
...s.query
|
|
5287
|
-
}))), u =
|
|
5298
|
+
}))), u = I(() => p.value.find((g) => g.code === s.settings.coverField)), E = I(() => p.value.filter((g) => !h.includes(g.type) && !g.extendDetail)), A = I(() => {
|
|
5288
5299
|
var $;
|
|
5289
5300
|
const g = ($ = u.value) == null ? void 0 : $.code;
|
|
5290
5301
|
return p.value.filter((l) => h.includes(l.type) || l.extendDetail).filter((l) => l.code !== g);
|
|
5291
|
-
}), y =
|
|
5302
|
+
}), y = I({
|
|
5292
5303
|
get() {
|
|
5293
5304
|
return A.value.map((g) => g.code);
|
|
5294
5305
|
},
|
|
5295
5306
|
set(g) {
|
|
5296
5307
|
}
|
|
5297
5308
|
});
|
|
5298
|
-
function
|
|
5309
|
+
function m() {
|
|
5299
5310
|
s.settings.rest.getOne(s.query).then((g) => {
|
|
5300
5311
|
g.data.isDeleted = !!g.data.deletedAt, d.value = g.data, n("done", g.data);
|
|
5301
5312
|
});
|
|
@@ -5303,14 +5314,14 @@ const gi = {
|
|
|
5303
5314
|
return j(
|
|
5304
5315
|
i,
|
|
5305
5316
|
() => {
|
|
5306
|
-
|
|
5317
|
+
m();
|
|
5307
5318
|
},
|
|
5308
5319
|
{ immediate: !0 }
|
|
5309
5320
|
), (g, $) => (c(), O("div", null, [
|
|
5310
|
-
d.value ? (c(), O("div",
|
|
5311
|
-
x(
|
|
5321
|
+
d.value ? (c(), O("div", Pi, [
|
|
5322
|
+
x(f(xe), { gutter: 20 }, {
|
|
5312
5323
|
default: w(() => [
|
|
5313
|
-
u.value ? (c(), S(
|
|
5324
|
+
u.value ? (c(), S(f($e), {
|
|
5314
5325
|
key: 0,
|
|
5315
5326
|
span: 6,
|
|
5316
5327
|
style: { "margin-bottom": "20px" }
|
|
@@ -5322,14 +5333,14 @@ const gi = {
|
|
|
5322
5333
|
}, null, 8, ["field", "row"]))
|
|
5323
5334
|
]),
|
|
5324
5335
|
_: 1
|
|
5325
|
-
})) :
|
|
5326
|
-
x(
|
|
5336
|
+
})) : L("", !0),
|
|
5337
|
+
x(f($e), {
|
|
5327
5338
|
span: u.value ? 18 : 24
|
|
5328
5339
|
}, {
|
|
5329
5340
|
default: w(() => [
|
|
5330
|
-
x(
|
|
5341
|
+
x(f(xe), { gutter: 20 }, {
|
|
5331
5342
|
default: w(() => [
|
|
5332
|
-
(c(!0), O(
|
|
5343
|
+
(c(!0), O(P, null, q(E.value, (l) => (c(), S(f($e), {
|
|
5333
5344
|
span: l.span,
|
|
5334
5345
|
class: "mono-data",
|
|
5335
5346
|
style: { "margin-bottom": "20px" }
|
|
@@ -5337,8 +5348,8 @@ const gi = {
|
|
|
5337
5348
|
default: w(() => [
|
|
5338
5349
|
C("div", ji, B(l.label), 1),
|
|
5339
5350
|
C("div", Bi, [
|
|
5340
|
-
l.code === "id" ? (c(), O(
|
|
5341
|
-
|
|
5351
|
+
l.code === "id" ? (c(), O(P, { key: 0 }, [
|
|
5352
|
+
N(B(d.value.id), 1)
|
|
5342
5353
|
], 64)) : (c(), S(X(l.display), {
|
|
5343
5354
|
key: 1,
|
|
5344
5355
|
field: l,
|
|
@@ -5358,14 +5369,14 @@ const gi = {
|
|
|
5358
5369
|
]),
|
|
5359
5370
|
_: 1
|
|
5360
5371
|
}),
|
|
5361
|
-
A.value.length > 0 ? (c(), S(
|
|
5372
|
+
A.value.length > 0 ? (c(), S(f($s), {
|
|
5362
5373
|
key: 0,
|
|
5363
5374
|
modelValue: y.value,
|
|
5364
5375
|
"onUpdate:modelValue": $[0] || ($[0] = (l) => y.value = l),
|
|
5365
5376
|
class: "extend-fields"
|
|
5366
5377
|
}, {
|
|
5367
5378
|
default: w(() => [
|
|
5368
|
-
(c(!0), O(
|
|
5379
|
+
(c(!0), O(P, null, q(A.value, (l) => (c(), S(f(Ss), {
|
|
5369
5380
|
title: l.label,
|
|
5370
5381
|
name: l.code,
|
|
5371
5382
|
class: "mono-data"
|
|
@@ -5381,13 +5392,13 @@ const gi = {
|
|
|
5381
5392
|
}, 1032, ["title", "name"]))), 256))
|
|
5382
5393
|
]),
|
|
5383
5394
|
_: 1
|
|
5384
|
-
}, 8, ["modelValue"])) :
|
|
5385
|
-
])) : _e((c(), O("div",
|
|
5386
|
-
[
|
|
5395
|
+
}, 8, ["modelValue"])) : L("", !0)
|
|
5396
|
+
])) : _e((c(), O("div", Vi, null, 512)), [
|
|
5397
|
+
[f(ve), !0]
|
|
5387
5398
|
])
|
|
5388
5399
|
]));
|
|
5389
5400
|
}
|
|
5390
|
-
},
|
|
5401
|
+
}, Yn = /* @__PURE__ */ V(Ni, [["__scopeId", "data-v-dbcf33d5"]]), Ii = { class: "data-page-title" }, Mi = { class: "title" }, Ui = {
|
|
5391
5402
|
__name: "DataDetailHeader",
|
|
5392
5403
|
props: {
|
|
5393
5404
|
data: {
|
|
@@ -5402,7 +5413,7 @@ const gi = {
|
|
|
5402
5413
|
},
|
|
5403
5414
|
emits: ["get-item"],
|
|
5404
5415
|
setup(t, { emit: e }) {
|
|
5405
|
-
|
|
5416
|
+
Ot();
|
|
5406
5417
|
const n = U(), s = Q(n), o = t, r = D("加载中..."), a = D({});
|
|
5407
5418
|
function i(d) {
|
|
5408
5419
|
const h = o.settings;
|
|
@@ -5419,31 +5430,31 @@ const gi = {
|
|
|
5419
5430
|
d && (a.value = o.settings.operations(s), i(d));
|
|
5420
5431
|
},
|
|
5421
5432
|
{ immediate: !0 }
|
|
5422
|
-
), (d, h) => (c(), O("div",
|
|
5433
|
+
), (d, h) => (c(), O("div", Ii, [
|
|
5423
5434
|
C("div", Mi, B(r.value), 1),
|
|
5424
5435
|
C("div", null, [
|
|
5425
|
-
o.data ? (c(), S(
|
|
5436
|
+
o.data ? (c(), S(f(pe), { key: 0 }, {
|
|
5426
5437
|
default: w(() => [
|
|
5427
5438
|
x(qn, {
|
|
5428
5439
|
row: o.data,
|
|
5429
5440
|
settings: o.settings,
|
|
5430
|
-
query:
|
|
5441
|
+
query: f(s),
|
|
5431
5442
|
mode: "detail"
|
|
5432
5443
|
}, null, 8, ["row", "settings", "query"]),
|
|
5433
|
-
o.settings.showEdit(
|
|
5444
|
+
o.settings.showEdit(f(s), "detail") ? (c(), S(xt, {
|
|
5434
5445
|
key: 0,
|
|
5435
5446
|
row: o.data,
|
|
5436
5447
|
settings: o.settings,
|
|
5437
5448
|
operations: a.value,
|
|
5438
5449
|
"is-detail": !0
|
|
5439
|
-
}, null, 8, ["row", "settings", "operations"])) :
|
|
5450
|
+
}, null, 8, ["row", "settings", "operations"])) : L("", !0)
|
|
5440
5451
|
]),
|
|
5441
5452
|
_: 1
|
|
5442
|
-
})) :
|
|
5453
|
+
})) : L("", !0)
|
|
5443
5454
|
])
|
|
5444
5455
|
]));
|
|
5445
5456
|
}
|
|
5446
|
-
}, zi = /* @__PURE__ */
|
|
5457
|
+
}, zi = /* @__PURE__ */ V(Ui, [["__scopeId", "data-v-0d04eb53"]]), Hi = {
|
|
5447
5458
|
__name: "DetailPageTabs",
|
|
5448
5459
|
props: {
|
|
5449
5460
|
associations: {
|
|
@@ -5497,15 +5508,15 @@ const gi = {
|
|
|
5497
5508
|
{ immediate: !0 }
|
|
5498
5509
|
), (h, p) => {
|
|
5499
5510
|
const u = qe("router-view");
|
|
5500
|
-
return c(), O(
|
|
5501
|
-
x(
|
|
5511
|
+
return c(), O(P, null, [
|
|
5512
|
+
x(f(_n), {
|
|
5502
5513
|
modelValue: r.value,
|
|
5503
5514
|
"onUpdate:modelValue": p[0] || (p[0] = (E) => r.value = E),
|
|
5504
5515
|
class: "association-tabs",
|
|
5505
5516
|
onTabClick: i
|
|
5506
5517
|
}, {
|
|
5507
5518
|
default: w(() => [
|
|
5508
|
-
(c(!0), O(
|
|
5519
|
+
(c(!0), O(P, null, q(o.associations, (E) => (c(), S(f(vn), {
|
|
5509
5520
|
label: E.name,
|
|
5510
5521
|
name: E.domain
|
|
5511
5522
|
}, null, 8, ["label", "name"]))), 256))
|
|
@@ -5515,11 +5526,11 @@ const gi = {
|
|
|
5515
5526
|
a.value ? (c(), S(u, {
|
|
5516
5527
|
key: a.value,
|
|
5517
5528
|
association: a.value
|
|
5518
|
-
}, null, 8, ["association"])) :
|
|
5529
|
+
}, null, 8, ["association"])) : L("", !0)
|
|
5519
5530
|
], 64);
|
|
5520
5531
|
};
|
|
5521
5532
|
}
|
|
5522
|
-
}, qi = /* @__PURE__ */
|
|
5533
|
+
}, qi = /* @__PURE__ */ V(Hi, [["__scopeId", "data-v-0dc49aad"]]), Wi = {
|
|
5523
5534
|
__name: "DetailPageList",
|
|
5524
5535
|
props: {
|
|
5525
5536
|
associations: {
|
|
@@ -5530,15 +5541,15 @@ const gi = {
|
|
|
5530
5541
|
}
|
|
5531
5542
|
},
|
|
5532
5543
|
setup(t) {
|
|
5533
|
-
return (e, n) => (c(!0), O(
|
|
5534
|
-
s.type == "has-many" ? (c(), S(
|
|
5544
|
+
return (e, n) => (c(!0), O(P, null, q(t.associations, (s) => (c(), O("div", null, [
|
|
5545
|
+
s.type == "has-many" ? (c(), S(Li, {
|
|
5535
5546
|
key: 0,
|
|
5536
5547
|
domain: s.domain
|
|
5537
|
-
}, null, 8, ["domain"])) :
|
|
5538
|
-
s.type == "has-one" ? (c(), S(
|
|
5548
|
+
}, null, 8, ["domain"])) : L("", !0),
|
|
5549
|
+
s.type == "has-one" ? (c(), S(Ki, {
|
|
5539
5550
|
key: 1,
|
|
5540
5551
|
domain: s.domain
|
|
5541
|
-
}, null, 8, ["domain"])) :
|
|
5552
|
+
}, null, 8, ["domain"])) : L("", !0)
|
|
5542
5553
|
]))), 256));
|
|
5543
5554
|
}
|
|
5544
5555
|
}, Qi = {
|
|
@@ -5558,15 +5569,15 @@ const gi = {
|
|
|
5558
5569
|
o.value = a;
|
|
5559
5570
|
}
|
|
5560
5571
|
return (a, i) => (c(), O("div", {
|
|
5561
|
-
key: `${
|
|
5572
|
+
key: `${f(e).params.domain}-${f(e).params.id}`
|
|
5562
5573
|
}, [
|
|
5563
5574
|
x(zi, {
|
|
5564
5575
|
data: o.value,
|
|
5565
5576
|
settings: s.settings,
|
|
5566
|
-
query: { ...
|
|
5577
|
+
query: { ...f(e).params, ...f(n) }
|
|
5567
5578
|
}, null, 8, ["data", "settings", "query"]),
|
|
5568
|
-
x(
|
|
5569
|
-
query: { ...
|
|
5579
|
+
x(Yn, {
|
|
5580
|
+
query: { ...f(e).params, ...f(n) },
|
|
5570
5581
|
settings: s.settings,
|
|
5571
5582
|
onDone: r
|
|
5572
5583
|
}, null, 8, ["query", "settings"]),
|
|
@@ -5581,10 +5592,10 @@ const gi = {
|
|
|
5581
5592
|
}, null, 8, ["associations", "domain-data"]))
|
|
5582
5593
|
]));
|
|
5583
5594
|
}
|
|
5584
|
-
}, Ji = /* @__PURE__ */
|
|
5595
|
+
}, Ji = /* @__PURE__ */ V(Qi, [["__scopeId", "data-v-6e5c2d0f"]]), Yi = {
|
|
5585
5596
|
key: 1,
|
|
5586
5597
|
class: "loading-wrapper"
|
|
5587
|
-
},
|
|
5598
|
+
}, Gi = {
|
|
5588
5599
|
__name: "Detail",
|
|
5589
5600
|
props: {
|
|
5590
5601
|
domain: {
|
|
@@ -5593,7 +5604,7 @@ const gi = {
|
|
|
5593
5604
|
},
|
|
5594
5605
|
setup(t) {
|
|
5595
5606
|
const e = t, n = U(), s = Q(n), o = n.meta.side, r = e.domain || n.params.domain, a = te(null), i = te([]);
|
|
5596
|
-
|
|
5607
|
+
$t(o, r).then((h) => {
|
|
5597
5608
|
const p = h, u = d("has-many", p.hasMany(s)), E = d("has-one", p.hasOne(s));
|
|
5598
5609
|
a.value = p, i.value = E.concat(u);
|
|
5599
5610
|
});
|
|
@@ -5608,7 +5619,7 @@ const gi = {
|
|
|
5608
5619
|
} : {
|
|
5609
5620
|
type: h,
|
|
5610
5621
|
domain: u,
|
|
5611
|
-
name:
|
|
5622
|
+
name: Et()[o][u].name,
|
|
5612
5623
|
query: () => ({})
|
|
5613
5624
|
});
|
|
5614
5625
|
}
|
|
@@ -5616,11 +5627,11 @@ const gi = {
|
|
|
5616
5627
|
key: 0,
|
|
5617
5628
|
settings: a.value,
|
|
5618
5629
|
associations: i.value
|
|
5619
|
-
}, null, 8, ["settings", "associations"])) : _e((c(), O("div",
|
|
5620
|
-
[
|
|
5630
|
+
}, null, 8, ["settings", "associations"])) : _e((c(), O("div", Yi, null, 512)), [
|
|
5631
|
+
[f(ve), !0]
|
|
5621
5632
|
]);
|
|
5622
5633
|
}
|
|
5623
|
-
},
|
|
5634
|
+
}, Ki = /* @__PURE__ */ V(Gi, [["__scopeId", "data-v-ecd5a448"]]), Xi = { key: 0 }, Zi = {
|
|
5624
5635
|
key: 1,
|
|
5625
5636
|
class: "loading-wrapper"
|
|
5626
5637
|
}, el = {
|
|
@@ -5635,7 +5646,7 @@ const gi = {
|
|
|
5635
5646
|
return j(
|
|
5636
5647
|
() => e.params.association,
|
|
5637
5648
|
() => {
|
|
5638
|
-
|
|
5649
|
+
$t(n, e.params.association).then((a) => {
|
|
5639
5650
|
r.value = { ...o.association, settings: a };
|
|
5640
5651
|
});
|
|
5641
5652
|
},
|
|
@@ -5646,41 +5657,41 @@ const gi = {
|
|
|
5646
5657
|
settings: r.value.settings,
|
|
5647
5658
|
"has-many": o.association,
|
|
5648
5659
|
query: r.value.query(o.association.domainData)
|
|
5649
|
-
}, null, 8, ["settings", "has-many", "query"])) : r.value.type === "has-one" ? (c(), S(
|
|
5660
|
+
}, null, 8, ["settings", "has-many", "query"])) : r.value.type === "has-one" ? (c(), S(Yn, {
|
|
5650
5661
|
key: `has-one-${r.value.domain}`,
|
|
5651
5662
|
style: { "padding-top": "20px" },
|
|
5652
|
-
query:
|
|
5663
|
+
query: f(s),
|
|
5653
5664
|
settings: r.value.settings
|
|
5654
|
-
}, null, 8, ["query", "settings"])) :
|
|
5665
|
+
}, null, 8, ["query", "settings"])) : L("", !0)
|
|
5655
5666
|
])) : _e((c(), O("div", Zi, null, 512)), [
|
|
5656
|
-
[
|
|
5667
|
+
[f(ve), !0]
|
|
5657
5668
|
]);
|
|
5658
5669
|
}
|
|
5659
|
-
}, Sl = /* @__PURE__ */
|
|
5670
|
+
}, Sl = /* @__PURE__ */ V(el, [["__scopeId", "data-v-79eac380"]]);
|
|
5660
5671
|
export {
|
|
5661
5672
|
dl as A,
|
|
5662
5673
|
ta as B,
|
|
5663
|
-
|
|
5674
|
+
St as C,
|
|
5664
5675
|
ul as D,
|
|
5665
5676
|
pl as E,
|
|
5666
5677
|
Rr as F,
|
|
5667
5678
|
Qn as G,
|
|
5668
5679
|
$l as H,
|
|
5669
|
-
|
|
5680
|
+
Ki as I,
|
|
5670
5681
|
Sl as J,
|
|
5671
5682
|
ce as K,
|
|
5672
|
-
|
|
5673
|
-
|
|
5683
|
+
Li as L,
|
|
5684
|
+
Ot as M,
|
|
5674
5685
|
ma as S,
|
|
5675
5686
|
la as W,
|
|
5676
|
-
|
|
5687
|
+
V as _,
|
|
5677
5688
|
yl as a,
|
|
5678
5689
|
zn as b,
|
|
5679
5690
|
na as c,
|
|
5680
5691
|
gl as d,
|
|
5681
5692
|
wl as e,
|
|
5682
5693
|
ml as f,
|
|
5683
|
-
|
|
5694
|
+
$t as g,
|
|
5684
5695
|
oe as h,
|
|
5685
5696
|
fl as i,
|
|
5686
5697
|
He as j,
|
|
@@ -5701,4 +5712,4 @@ export {
|
|
|
5701
5712
|
ll as y,
|
|
5702
5713
|
cl as z
|
|
5703
5714
|
};
|
|
5704
|
-
//# sourceMappingURL=index-
|
|
5715
|
+
//# sourceMappingURL=index-BDc0n3q3.js.map
|