@jt-home/mfe-components 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1143 -1122
- package/dist/types/components/globalInfo/controller/useGlobalInfoController.d.ts +3 -1
- package/dist/types/components/globalInfo/index.d.ts +2 -1
- package/dist/types/components/globalInfo/model/requiredInfoSetValidation.d.ts +7 -0
- package/dist/types/components/globalInfo/model/types.d.ts +9 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/main.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { defineComponent as ce, useAttrs as
|
|
3
|
-
import { ElButton as It, ElIcon as Yt, ElCascader as
|
|
2
|
+
import { defineComponent as ce, useAttrs as xn, computed as V, openBlock as k, createBlock as H, mergeProps as oe, toHandlers as Ze, withCtx as J, renderSlot as ee, resolveDynamicComponent as xt, createCommentVNode as ue, ref as he, watch as Be, mergeDefaults as qn, withKeys as Gn, createElementBlock as Y, Fragment as be, renderList as ge, normalizeStyle as qt, nextTick as Kn, useSlots as Ee, normalizeClass as He, createVNode as we, withModifiers as Gt, unref as re, createSlots as je, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Yn, mergeModels as Mt, shallowRef as Pe, onMounted as Kt, onBeforeUnmount as Un, createTextVNode as Ye, resolveComponent as Hn, onErrorCaptured as Jn } from "vue";
|
|
3
|
+
import { ElButton as It, ElIcon as Yt, ElCascader as Wn, ElDatePicker as Ut, ElInput as Ht, ElSelect as Jt, ElOption as Wt, ElFormItem as Zt, ElForm as Qt, ElTable as Xt, ElTableColumn as en, ElPagination as Zn, ElLoadingDirective as Qn, ElInputNumber as Xn, ElSwitch as eo, ElRow as to, ElCol as no, ElPopconfirm as oo } from "element-plus/es";
|
|
4
4
|
import { JtAttachmentPreview as Tt } from "./JtAttachmentPreview/index.mjs";
|
|
5
|
-
import { JtAttachmentPreviewByParams as
|
|
6
|
-
import { cascaderEmits as
|
|
7
|
-
const gt = 2,
|
|
8
|
-
function
|
|
5
|
+
import { JtAttachmentPreviewByParams as Ha, setupJtAttachmentPreview as Ja } from "./JtAttachmentPreview/index.mjs";
|
|
6
|
+
import { cascaderEmits as ro, inputEmits as Ot, selectEmits as Dt } from "element-plus";
|
|
7
|
+
const gt = 2, ao = 3;
|
|
8
|
+
function so(e) {
|
|
9
9
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
10
10
|
}
|
|
11
11
|
function tn(e) {
|
|
@@ -14,15 +14,15 @@ function tn(e) {
|
|
|
14
14
|
const t = e.charCodeAt(gt);
|
|
15
15
|
return t < 97 || t > 122;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function io(e) {
|
|
18
18
|
if (e.startsWith("on-"))
|
|
19
|
-
return e.slice(
|
|
20
|
-
const [t, n] = e.slice(gt).split(":"), o =
|
|
19
|
+
return e.slice(ao);
|
|
20
|
+
const [t, n] = e.slice(gt).split(":"), o = so(t);
|
|
21
21
|
return n ? `${o}:${n}` : o;
|
|
22
22
|
}
|
|
23
23
|
function nn(e, t = /* @__PURE__ */ new Set()) {
|
|
24
24
|
return Object.fromEntries(
|
|
25
|
-
Object.entries(e).filter(([n, o]) => !t.has(n) && tn(n) && typeof o == "function").map(([n, o]) => [
|
|
25
|
+
Object.entries(e).filter(([n, o]) => !t.has(n) && tn(n) && typeof o == "function").map(([n, o]) => [io(n), o])
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
function on(e, t = /* @__PURE__ */ new Set()) {
|
|
@@ -30,7 +30,7 @@ function on(e, t = /* @__PURE__ */ new Set()) {
|
|
|
30
30
|
Object.entries(e).filter(([n]) => !t.has(n) && !tn(n))
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const lo = /* @__PURE__ */ ce({
|
|
34
34
|
name: "JtButton",
|
|
35
35
|
__name: "index",
|
|
36
36
|
props: {
|
|
@@ -55,7 +55,7 @@ const io = /* @__PURE__ */ ce({
|
|
|
55
55
|
tag: {}
|
|
56
56
|
},
|
|
57
57
|
setup(e) {
|
|
58
|
-
const t = e, n =
|
|
58
|
+
const t = e, n = xn(), o = V(() => {
|
|
59
59
|
const { icon: i, ...s } = t;
|
|
60
60
|
return {
|
|
61
61
|
...on(n),
|
|
@@ -64,9 +64,9 @@ const io = /* @__PURE__ */ ce({
|
|
|
64
64
|
}), r = V(() => nn(n));
|
|
65
65
|
return (i, s) => {
|
|
66
66
|
const l = Yt, a = It;
|
|
67
|
-
return k(),
|
|
67
|
+
return k(), H(a, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
|
|
68
68
|
default: J(() => [
|
|
69
|
-
i.$slots.icon ? (k(),
|
|
69
|
+
i.$slots.icon ? (k(), H(l, {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "jt-button__icon"
|
|
72
72
|
}, {
|
|
@@ -74,12 +74,12 @@ const io = /* @__PURE__ */ ce({
|
|
|
74
74
|
ee(i.$slots, "icon", {}, void 0, !0)
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
77
|
-
})) : t.icon ? (k(),
|
|
77
|
+
})) : t.icon ? (k(), H(l, {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "jt-button__icon"
|
|
80
80
|
}, {
|
|
81
81
|
default: J(() => [
|
|
82
|
-
(k(),
|
|
82
|
+
(k(), H(xt(t.icon)))
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
85
|
})) : ue("", !0),
|
|
@@ -89,12 +89,12 @@ const io = /* @__PURE__ */ ce({
|
|
|
89
89
|
}, 16);
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), ye = (e, t) => {
|
|
93
93
|
const n = e.__vccOpts || e;
|
|
94
94
|
for (const [o, r] of t)
|
|
95
95
|
n[o] = r;
|
|
96
96
|
return n;
|
|
97
|
-
}, tt = /* @__PURE__ */
|
|
97
|
+
}, tt = /* @__PURE__ */ ye(lo, [["__scopeId", "data-v-a8344276"]]), co = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
placeholder: "请选择",
|
|
@@ -106,16 +106,16 @@ function Ft(e) {
|
|
|
106
106
|
Object.entries(e).filter(([, t]) => t !== void 0)
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function uo(e) {
|
|
110
110
|
const t = Ft(e);
|
|
111
111
|
return t.props && (t.props = Ft(
|
|
112
112
|
t.props
|
|
113
113
|
)), t;
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const fo = /* @__PURE__ */ ce({
|
|
116
116
|
name: "JtCascader",
|
|
117
117
|
__name: "index",
|
|
118
|
-
props: /* @__PURE__ */
|
|
118
|
+
props: /* @__PURE__ */ qn({
|
|
119
119
|
size: {},
|
|
120
120
|
placeholder: {},
|
|
121
121
|
disabled: { type: Boolean },
|
|
@@ -153,10 +153,10 @@ const uo = /* @__PURE__ */ ce({
|
|
|
153
153
|
emptyValues: {},
|
|
154
154
|
valueOnClear: { type: [String, Number, Boolean, Function, null] },
|
|
155
155
|
options: {}
|
|
156
|
-
},
|
|
157
|
-
emits:
|
|
156
|
+
}, co),
|
|
157
|
+
emits: ro,
|
|
158
158
|
setup(e, { emit: t }) {
|
|
159
|
-
const n = e, o = V(() =>
|
|
159
|
+
const n = e, o = V(() => uo(n)), r = he(n.modelValue);
|
|
160
160
|
Be(
|
|
161
161
|
() => n.modelValue,
|
|
162
162
|
(g) => {
|
|
@@ -177,7 +177,7 @@ const uo = /* @__PURE__ */ ce({
|
|
|
177
177
|
function c(g) {
|
|
178
178
|
s("focus", g);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function m(g) {
|
|
181
181
|
s("blur", g);
|
|
182
182
|
}
|
|
183
183
|
function _() {
|
|
@@ -186,28 +186,28 @@ const uo = /* @__PURE__ */ ce({
|
|
|
186
186
|
function $(g) {
|
|
187
187
|
s("visibleChange", g);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function b(g) {
|
|
190
190
|
s("expandChange", g);
|
|
191
191
|
}
|
|
192
192
|
function A(g) {
|
|
193
193
|
s("removeTag", g);
|
|
194
194
|
}
|
|
195
195
|
return (g, w) => {
|
|
196
|
-
const
|
|
197
|
-
return k(),
|
|
196
|
+
const S = Wn;
|
|
197
|
+
return k(), H(S, oe({ class: "jt-cascader" }, o.value, {
|
|
198
198
|
"model-value": r.value,
|
|
199
199
|
"onUpdate:modelValue": l,
|
|
200
200
|
onChange: a,
|
|
201
201
|
onFocus: c,
|
|
202
|
-
onBlur:
|
|
202
|
+
onBlur: m,
|
|
203
203
|
onClear: _,
|
|
204
204
|
onVisibleChange: $,
|
|
205
|
-
onExpandChange:
|
|
205
|
+
onExpandChange: b,
|
|
206
206
|
onRemoveTag: A
|
|
207
207
|
}), null, 16, ["model-value"]);
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
}),
|
|
210
|
+
}), po = /* @__PURE__ */ ce({
|
|
211
211
|
name: "JtDatePicker",
|
|
212
212
|
__name: "index",
|
|
213
213
|
props: {
|
|
@@ -269,13 +269,13 @@ const uo = /* @__PURE__ */ ce({
|
|
|
269
269
|
return r?.includes("range") ?? !1;
|
|
270
270
|
}
|
|
271
271
|
return (r, i) => {
|
|
272
|
-
const s =
|
|
273
|
-
return k(),
|
|
272
|
+
const s = Ut;
|
|
273
|
+
return k(), H(s, oe({ class: "jt-date-picker" }, n.value, {
|
|
274
274
|
"onUpdate:modelValue": i[0] || (i[0] = (l) => r.$emit("update:modelValue", l))
|
|
275
275
|
}), null, 16);
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), mo = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-7aa4706e"]]), vo = /* @__PURE__ */ ce({
|
|
279
279
|
name: "JtInput",
|
|
280
280
|
__name: "index",
|
|
281
281
|
props: {
|
|
@@ -325,13 +325,13 @@ const uo = /* @__PURE__ */ ce({
|
|
|
325
325
|
])
|
|
326
326
|
));
|
|
327
327
|
return (i, s) => {
|
|
328
|
-
const l =
|
|
329
|
-
return k(),
|
|
330
|
-
onKeyup: s[0] || (s[0] =
|
|
328
|
+
const l = Ht;
|
|
329
|
+
return k(), H(l, oe({ class: "jt-input" }, n, Ze(r.value), {
|
|
330
|
+
onKeyup: s[0] || (s[0] = Gn((a) => o("enter"), ["enter"]))
|
|
331
331
|
}), null, 16);
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
}), mt = /* @__PURE__ */
|
|
334
|
+
}), mt = /* @__PURE__ */ ye(vo, [["__scopeId", "data-v-031428a1"]]), ho = /* @__PURE__ */ ce({
|
|
335
335
|
name: "JtSelect",
|
|
336
336
|
__name: "index",
|
|
337
337
|
props: {
|
|
@@ -401,18 +401,18 @@ const uo = /* @__PURE__ */ ce({
|
|
|
401
401
|
));
|
|
402
402
|
return (s, l) => {
|
|
403
403
|
const a = Wt, c = Jt;
|
|
404
|
-
return k(),
|
|
404
|
+
return k(), H(c, oe({ class: "jt-select" }, o.value, Ze(i.value)), {
|
|
405
405
|
default: J(() => [
|
|
406
|
-
(k(!0), Y(be, null,
|
|
407
|
-
key:
|
|
406
|
+
(k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(), H(a, oe({
|
|
407
|
+
key: m.value,
|
|
408
408
|
ref_for: !0
|
|
409
|
-
},
|
|
409
|
+
}, m), null, 16))), 128))
|
|
410
410
|
]),
|
|
411
411
|
_: 1
|
|
412
412
|
}, 16);
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
-
}),
|
|
415
|
+
}), go = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-c67cfa84"]]), yo = { class: "jt-form-items" }, vt = 4, bo = /* @__PURE__ */ ce({
|
|
416
416
|
name: "JTFormItems",
|
|
417
417
|
__name: "JtFormItems",
|
|
418
418
|
props: {
|
|
@@ -423,9 +423,9 @@ const uo = /* @__PURE__ */ ce({
|
|
|
423
423
|
setup(e) {
|
|
424
424
|
const t = e, n = {
|
|
425
425
|
input: mt,
|
|
426
|
-
select:
|
|
427
|
-
cascader:
|
|
428
|
-
"date-picker":
|
|
426
|
+
select: go,
|
|
427
|
+
cascader: fo,
|
|
428
|
+
"date-picker": mo
|
|
429
429
|
}, o = {
|
|
430
430
|
"remote-select": "select",
|
|
431
431
|
date: "date-picker",
|
|
@@ -433,85 +433,85 @@ const uo = /* @__PURE__ */ ce({
|
|
|
433
433
|
"date-range": "date-picker",
|
|
434
434
|
dateRange: "date-picker"
|
|
435
435
|
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = V(() => t.configs.filter((I) => I.show !== !1)), a = (I) => {
|
|
436
|
-
const { itemType:
|
|
437
|
-
if (!
|
|
438
|
-
if (typeof
|
|
439
|
-
const T = o[
|
|
436
|
+
const { itemType: h } = I;
|
|
437
|
+
if (!h) return mt;
|
|
438
|
+
if (typeof h != "string") return h;
|
|
439
|
+
const T = o[h] ?? h;
|
|
440
440
|
return i.includes(T) ? n[T] : (console.error(
|
|
441
|
-
`[JtFormItems] 不支持的 itemType: "${
|
|
441
|
+
`[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${i.join(", ")}`
|
|
442
442
|
), mt);
|
|
443
443
|
}, c = (I) => {
|
|
444
|
-
const
|
|
444
|
+
const h = on(I, r);
|
|
445
445
|
return I.itemType === "select" || I.itemType === "remote-select" || I.itemType === "cascader" ? {
|
|
446
|
-
...
|
|
446
|
+
...h,
|
|
447
447
|
options: I.options
|
|
448
448
|
} : j(I.itemType) ? {
|
|
449
|
-
...
|
|
449
|
+
...h,
|
|
450
450
|
type: "daterange"
|
|
451
|
-
} :
|
|
452
|
-
},
|
|
451
|
+
} : h;
|
|
452
|
+
}, m = (I) => nn(I, r), _ = (I) => ({
|
|
453
453
|
rules: I.rules,
|
|
454
454
|
...I.formItemProps
|
|
455
|
-
}), $ = (I,
|
|
456
|
-
t.formData[I] =
|
|
455
|
+
}), $ = (I, h) => {
|
|
456
|
+
t.formData[I] = h;
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
return (
|
|
460
|
-
if (
|
|
461
|
-
s.set(I,
|
|
458
|
+
function b(I) {
|
|
459
|
+
return (h) => {
|
|
460
|
+
if (h) {
|
|
461
|
+
s.set(I, h);
|
|
462
462
|
return;
|
|
463
463
|
}
|
|
464
464
|
s.delete(I);
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function A(I,
|
|
467
|
+
function A(I, h) {
|
|
468
468
|
Kn(() => {
|
|
469
|
-
s.get(I)?.validate(
|
|
469
|
+
s.get(I)?.validate(h).catch(() => {
|
|
470
470
|
});
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w = V(() => {
|
|
474
|
-
const
|
|
475
|
-
(T,
|
|
474
|
+
const h = l.value.reduce(
|
|
475
|
+
(T, p) => T + g(t.span || p.span),
|
|
476
476
|
0
|
|
477
477
|
) % vt;
|
|
478
|
-
return
|
|
478
|
+
return h === 0 ? {
|
|
479
479
|
gridColumn: `1 / span ${vt}`
|
|
480
480
|
} : {
|
|
481
|
-
gridColumn: `${
|
|
481
|
+
gridColumn: `${h + 1} / span ${vt - h}`
|
|
482
482
|
};
|
|
483
|
-
}),
|
|
483
|
+
}), S = (I) => ({
|
|
484
484
|
gridColumn: `span ${g(t.span || I.span)}`
|
|
485
485
|
});
|
|
486
486
|
function j(I) {
|
|
487
487
|
return I === "daterange" || I === "date-range" || I === "dateRange";
|
|
488
488
|
}
|
|
489
|
-
return (I,
|
|
489
|
+
return (I, h) => {
|
|
490
490
|
const T = Zt;
|
|
491
|
-
return k(), Y("div",
|
|
492
|
-
(k(!0), Y(be, null,
|
|
493
|
-
key:
|
|
491
|
+
return k(), Y("div", yo, [
|
|
492
|
+
(k(!0), Y(be, null, ge(l.value, (p) => (k(), H(T, oe({
|
|
493
|
+
key: p.prop,
|
|
494
494
|
ref_for: !0,
|
|
495
|
-
ref:
|
|
495
|
+
ref: b(p.prop),
|
|
496
496
|
class: "jt-form-items__item",
|
|
497
|
-
style:
|
|
498
|
-
label:
|
|
499
|
-
prop:
|
|
500
|
-
}, _(
|
|
497
|
+
style: S(p),
|
|
498
|
+
label: p.label,
|
|
499
|
+
prop: p.prop
|
|
500
|
+
}, _(p)), {
|
|
501
501
|
default: J(() => [
|
|
502
|
-
|
|
502
|
+
p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(), H(xt(a(p)), oe({
|
|
503
503
|
key: 1,
|
|
504
|
-
"model-value": I.formData[
|
|
504
|
+
"model-value": I.formData[p.prop],
|
|
505
505
|
ref_for: !0
|
|
506
|
-
}, c(
|
|
507
|
-
"onUpdate:modelValue": (N) => $(
|
|
508
|
-
onChange: () => A(
|
|
509
|
-
onBlur: () => A(
|
|
506
|
+
}, c(p), Ze(m(p)), {
|
|
507
|
+
"onUpdate:modelValue": (N) => $(p.prop, N),
|
|
508
|
+
onChange: () => A(p.prop, "change"),
|
|
509
|
+
onBlur: () => A(p.prop, "blur")
|
|
510
510
|
}), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
|
|
511
511
|
]),
|
|
512
512
|
_: 2
|
|
513
513
|
}, 1040, ["style", "label", "prop"]))), 128)),
|
|
514
|
-
I.$slots.actions ? (k(),
|
|
514
|
+
I.$slots.actions ? (k(), H(T, {
|
|
515
515
|
key: 0,
|
|
516
516
|
class: "jt-form-items__actions",
|
|
517
517
|
style: qt(w.value)
|
|
@@ -524,9 +524,9 @@ const uo = /* @__PURE__ */ ce({
|
|
|
524
524
|
]);
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
}),
|
|
528
|
-
function
|
|
529
|
-
const e =
|
|
527
|
+
}), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-cb82fcfc"]]);
|
|
528
|
+
function wo() {
|
|
529
|
+
const e = he(!1);
|
|
530
530
|
function t() {
|
|
531
531
|
e.value = !0;
|
|
532
532
|
}
|
|
@@ -539,7 +539,7 @@ function So() {
|
|
|
539
539
|
searchDone: n
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", _o = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", $o = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Co = { class: "jt-filter-bar__btns" }, ko = ["src"], Mo = ["src"], To = ["src"], Oo = /* @__PURE__ */ ce({
|
|
543
543
|
name: "JtFilterBar",
|
|
544
544
|
__name: "JtFilterBar",
|
|
545
545
|
props: {
|
|
@@ -549,30 +549,30 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
549
549
|
},
|
|
550
550
|
emits: ["update:modelValue", "search", "reset"],
|
|
551
551
|
setup(e, { expose: t, emit: n }) {
|
|
552
|
-
const o = e, r = n, i =
|
|
552
|
+
const o = e, r = n, i = he(), s = Ee(), l = he({}), {
|
|
553
553
|
searchDisabled: a,
|
|
554
554
|
searchLoading: c,
|
|
555
|
-
searchDone:
|
|
556
|
-
} =
|
|
555
|
+
searchDone: m
|
|
556
|
+
} = wo(), _ = V(() => o.option), $ = he(_.value.searchCollapsed ?? !0), b = V(() => o.columns.filter((P) => P.search === !0)), A = V(
|
|
557
557
|
() => Math.max(1, _.value.searchSpan ?? 4)
|
|
558
|
-
), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value),
|
|
558
|
+
), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value), S = V(
|
|
559
559
|
() => Math.max(1, w.value * g.value)
|
|
560
|
-
), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"),
|
|
561
|
-
if (!F.value || !$.value) return
|
|
560
|
+
), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"), h = V(() => U(_.value.searchLabelWidth ?? 84)), T = V(() => _.value.searchLabelPosition ?? "top"), p = V(() => G(_.value.searchGutter, 14)), N = V(() => G(_.value.searchRowGap, 14)), y = V(() => X(_.value.searchPadding ?? "18px 4px 0")), F = V(() => _.value.searchCollapse === !1 ? !1 : q(b.value) > S.value), O = V(() => {
|
|
561
|
+
if (!F.value || !$.value) return b.value;
|
|
562
562
|
let P = 0;
|
|
563
|
-
return
|
|
564
|
-
const ae =
|
|
565
|
-
return P + ae >
|
|
563
|
+
return b.value.filter((Z) => {
|
|
564
|
+
const ae = E(Z);
|
|
565
|
+
return P + ae > S.value ? !1 : (P += ae, !0);
|
|
566
566
|
});
|
|
567
|
-
}),
|
|
567
|
+
}), z = V(
|
|
568
568
|
() => O.value.filter((P) => !!s[`${P.prop}-search`])
|
|
569
569
|
), ne = V(() => {
|
|
570
570
|
const [P] = O.value;
|
|
571
|
-
return !!P && O.value.length === 1 &&
|
|
571
|
+
return !!P && O.value.length === 1 && E(P) < A.value;
|
|
572
572
|
}), x = V(() => {
|
|
573
573
|
const [P] = O.value;
|
|
574
|
-
return `${Math.min(A.value, P ?
|
|
575
|
-
}),
|
|
574
|
+
return `${Math.min(A.value, P ? E(P) + 1 : 1)}`;
|
|
575
|
+
}), R = V(
|
|
576
576
|
() => O.value.map((P) => B(P))
|
|
577
577
|
);
|
|
578
578
|
Be(
|
|
@@ -598,7 +598,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
598
598
|
...Z,
|
|
599
599
|
prop: P.prop,
|
|
600
600
|
label: P.searchLabel ?? P.label,
|
|
601
|
-
span:
|
|
601
|
+
span: E(P),
|
|
602
602
|
itemType: P.searchType ?? "input",
|
|
603
603
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
604
604
|
showSlot: !!s[`${P.prop}-search`],
|
|
@@ -612,7 +612,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
612
612
|
},
|
|
613
613
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
614
614
|
onEnter: (...ae) => {
|
|
615
|
-
u(Z.onEnter, ...ae),
|
|
615
|
+
u(Z.onEnter, ...ae), v();
|
|
616
616
|
},
|
|
617
617
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
618
618
|
"onUpdate:modelValue": (ae) => {
|
|
@@ -627,7 +627,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
627
627
|
}
|
|
628
628
|
typeof P == "function" && P(...Z);
|
|
629
629
|
}
|
|
630
|
-
async function
|
|
630
|
+
async function v() {
|
|
631
631
|
if (!a.value) {
|
|
632
632
|
if (i.value)
|
|
633
633
|
try {
|
|
@@ -641,19 +641,19 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
641
641
|
function C() {
|
|
642
642
|
a.value || r("reset");
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function L() {
|
|
645
645
|
$.value = !$.value;
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function E(P) {
|
|
648
648
|
return Math.min(A.value, Math.max(1, P.searchSpan ?? 1));
|
|
649
649
|
}
|
|
650
650
|
function q(P) {
|
|
651
|
-
return P.reduce((Z, ae) => Z +
|
|
651
|
+
return P.reduce((Z, ae) => Z + E(ae), 0);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function U(P) {
|
|
654
654
|
return typeof P == "number" ? `${P}px` : P;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function G(P, Z) {
|
|
657
657
|
return typeof P == "number" ? P : Z;
|
|
658
658
|
}
|
|
659
659
|
function X(P) {
|
|
@@ -667,18 +667,18 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
667
667
|
/** 开启筛选表单禁用。 */
|
|
668
668
|
searchLoading: c,
|
|
669
669
|
/** 关闭筛选表单禁用。 */
|
|
670
|
-
searchDone:
|
|
670
|
+
searchDone: m
|
|
671
671
|
}), (P, Z) => {
|
|
672
672
|
const ae = Qt;
|
|
673
673
|
return k(), Y("div", {
|
|
674
|
-
class:
|
|
674
|
+
class: He(["jt-filter-bar", [`is-label-${T.value}`, { "is-single-filter": ne.value }]]),
|
|
675
675
|
style: qt({
|
|
676
676
|
"--jt-filter-columns": A.value,
|
|
677
677
|
"--jt-filter-field-columns": j.value,
|
|
678
678
|
"--jt-filter-btns-width": I.value,
|
|
679
679
|
"--jt-filter-actions-start": x.value,
|
|
680
|
-
"--jt-filter-label-width":
|
|
681
|
-
"--jt-filter-column-gap": `${
|
|
680
|
+
"--jt-filter-label-width": h.value,
|
|
681
|
+
"--jt-filter-column-gap": `${p.value}px`,
|
|
682
682
|
"--jt-filter-row-gap": `${N.value}px`,
|
|
683
683
|
"--jt-filter-padding": y.value
|
|
684
684
|
})
|
|
@@ -689,36 +689,36 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
689
689
|
class: "jt-filter-bar__form",
|
|
690
690
|
model: l.value,
|
|
691
691
|
"label-position": T.value,
|
|
692
|
-
"label-width":
|
|
692
|
+
"label-width": h.value,
|
|
693
693
|
disabled: re(a),
|
|
694
|
-
onSubmit: Z[0] || (Z[0] =
|
|
694
|
+
onSubmit: Z[0] || (Z[0] = Gt(() => {
|
|
695
695
|
}, ["prevent"]))
|
|
696
696
|
}, {
|
|
697
697
|
default: J(() => [
|
|
698
|
-
we(re(
|
|
699
|
-
configs:
|
|
698
|
+
we(re(So), {
|
|
699
|
+
configs: R.value,
|
|
700
700
|
"form-data": l.value
|
|
701
701
|
}, je({
|
|
702
702
|
actions: J(() => [
|
|
703
|
-
te("div",
|
|
703
|
+
te("div", Co, [
|
|
704
704
|
ee(P.$slots, "search-menu", {
|
|
705
|
-
search:
|
|
705
|
+
search: v,
|
|
706
706
|
reset: C,
|
|
707
707
|
disabled: re(a),
|
|
708
708
|
collapsed: $.value,
|
|
709
|
-
toggleCollapse:
|
|
709
|
+
toggleCollapse: L
|
|
710
710
|
}, () => [
|
|
711
|
-
F.value ? (k(),
|
|
711
|
+
F.value ? (k(), H(re(tt), {
|
|
712
712
|
key: 0,
|
|
713
713
|
class: "jt-filter-bar__btn-collapse",
|
|
714
|
-
onClick:
|
|
714
|
+
onClick: L
|
|
715
715
|
}, {
|
|
716
716
|
icon: J(() => [
|
|
717
717
|
te("img", {
|
|
718
|
-
class:
|
|
719
|
-
src: re(
|
|
718
|
+
class: He(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
|
|
719
|
+
src: re(Io),
|
|
720
720
|
alt: ""
|
|
721
|
-
}, null, 10,
|
|
721
|
+
}, null, 10, ko)
|
|
722
722
|
]),
|
|
723
723
|
default: J(() => [
|
|
724
724
|
te("span", null, fe($.value ? "展 开" : "收 起"), 1)
|
|
@@ -732,9 +732,9 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
732
732
|
}, {
|
|
733
733
|
icon: J(() => [
|
|
734
734
|
te("img", {
|
|
735
|
-
src: re(
|
|
735
|
+
src: re(_o),
|
|
736
736
|
alt: ""
|
|
737
|
-
}, null, 8,
|
|
737
|
+
}, null, 8, Mo)
|
|
738
738
|
]),
|
|
739
739
|
default: J(() => [
|
|
740
740
|
te("span", null, fe(_.value.resetBtnText ?? "重 置"), 1)
|
|
@@ -745,13 +745,13 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
745
745
|
class: "jt-filter-bar__btn-query",
|
|
746
746
|
type: "primary",
|
|
747
747
|
disabled: re(a),
|
|
748
|
-
onClick:
|
|
748
|
+
onClick: v
|
|
749
749
|
}, {
|
|
750
750
|
icon: J(() => [
|
|
751
751
|
te("img", {
|
|
752
|
-
src: re(
|
|
752
|
+
src: re($o),
|
|
753
753
|
alt: ""
|
|
754
|
-
}, null, 8,
|
|
754
|
+
}, null, 8, To)
|
|
755
755
|
]),
|
|
756
756
|
default: J(() => [
|
|
757
757
|
te("span", null, fe(_.value.searchBtnText ?? "查 询"), 1)
|
|
@@ -763,14 +763,14 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
763
763
|
]),
|
|
764
764
|
_: 2
|
|
765
765
|
}, [
|
|
766
|
-
|
|
766
|
+
ge(z.value, (pe) => ({
|
|
767
767
|
name: pe.prop,
|
|
768
768
|
fn: J(() => [
|
|
769
769
|
ee(P.$slots, `${pe.prop}-search`, {
|
|
770
770
|
value: l.value[pe.prop],
|
|
771
771
|
column: pe,
|
|
772
772
|
setValue: (de) => D(pe.prop, de),
|
|
773
|
-
search:
|
|
773
|
+
search: v,
|
|
774
774
|
reset: C,
|
|
775
775
|
disabled: re(a)
|
|
776
776
|
}, void 0, !0)
|
|
@@ -783,7 +783,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
783
783
|
], 6);
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
-
}),
|
|
786
|
+
}), Do = /* @__PURE__ */ ye(Oo, [["__scopeId", "data-v-6a794691"]]), Fo = { key: 1 }, Bo = { key: 2 }, Eo = { key: 3 }, Lo = /* @__PURE__ */ ce({
|
|
787
787
|
name: "JtTable",
|
|
788
788
|
__name: "JtTable",
|
|
789
789
|
props: {
|
|
@@ -793,85 +793,85 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
793
793
|
tableEvents: {}
|
|
794
794
|
},
|
|
795
795
|
setup(e, { expose: t }) {
|
|
796
|
-
const n = e, o =
|
|
797
|
-
function l(
|
|
798
|
-
return !!o[`${
|
|
796
|
+
const n = e, o = Ee(), r = he(), i = V(() => n.option ?? {}), s = V(() => n.columns.filter((b) => !b.hide));
|
|
797
|
+
function l(b) {
|
|
798
|
+
return !!o[`${b}-header`];
|
|
799
799
|
}
|
|
800
|
-
function a(
|
|
801
|
-
return !!o[`${
|
|
800
|
+
function a(b) {
|
|
801
|
+
return !!o[`${b}-data`];
|
|
802
802
|
}
|
|
803
|
-
function c(
|
|
803
|
+
function c(b) {
|
|
804
804
|
return {
|
|
805
|
-
width:
|
|
806
|
-
minWidth:
|
|
807
|
-
align:
|
|
808
|
-
fixed:
|
|
809
|
-
sortable:
|
|
810
|
-
showOverflowTooltip:
|
|
811
|
-
...
|
|
805
|
+
width: b.width,
|
|
806
|
+
minWidth: b.minWidth,
|
|
807
|
+
align: b.align,
|
|
808
|
+
fixed: b.fixed,
|
|
809
|
+
sortable: b.sortable,
|
|
810
|
+
showOverflowTooltip: b.showOverflowTooltip,
|
|
811
|
+
...b.columnOptions
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
return !_(
|
|
814
|
+
function m(b) {
|
|
815
|
+
return !_(b.columnOptions?.type);
|
|
816
816
|
}
|
|
817
|
-
function _(
|
|
818
|
-
return
|
|
817
|
+
function _(b) {
|
|
818
|
+
return b === "selection" || b === "index" || b === "expand";
|
|
819
819
|
}
|
|
820
|
-
function $(
|
|
821
|
-
return
|
|
820
|
+
function $(b, A) {
|
|
821
|
+
return b.find((g) => g.value === A)?.label ?? String(A ?? "");
|
|
822
822
|
}
|
|
823
|
-
return t({ tableRef: r }), (
|
|
823
|
+
return t({ tableRef: r }), (b, A) => {
|
|
824
824
|
const g = en, w = Xt;
|
|
825
|
-
return k(),
|
|
825
|
+
return k(), H(w, oe({
|
|
826
826
|
ref_key: "tableRef",
|
|
827
827
|
ref: r,
|
|
828
|
-
data:
|
|
828
|
+
data: b.data,
|
|
829
829
|
"row-key": i.value.rowKey ?? "id",
|
|
830
830
|
height: i.value.height,
|
|
831
831
|
"max-height": i.value.maxHeight,
|
|
832
832
|
"empty-text": i.value.emptyText,
|
|
833
833
|
class: "jt-table"
|
|
834
|
-
}, i.value.tableProps, Ze(
|
|
834
|
+
}, i.value.tableProps, Ze(b.tableEvents)), {
|
|
835
835
|
default: J(() => [
|
|
836
|
-
i.value.selection ? (k(),
|
|
836
|
+
i.value.selection ? (k(), H(g, {
|
|
837
837
|
key: 0,
|
|
838
838
|
type: "selection",
|
|
839
839
|
width: "55",
|
|
840
840
|
align: "center"
|
|
841
841
|
})) : ue("", !0),
|
|
842
|
-
i.value.index ? (k(),
|
|
842
|
+
i.value.index ? (k(), H(g, {
|
|
843
843
|
key: 1,
|
|
844
844
|
type: "index",
|
|
845
845
|
label: i.value.indexLabel ?? "序号",
|
|
846
846
|
width: "60",
|
|
847
847
|
align: "center"
|
|
848
848
|
}, null, 8, ["label"])) : ue("", !0),
|
|
849
|
-
(k(!0), Y(be, null,
|
|
850
|
-
key:
|
|
851
|
-
prop:
|
|
852
|
-
label:
|
|
853
|
-
formatter: !a(
|
|
849
|
+
(k(!0), Y(be, null, ge(s.value, (S) => (k(), H(g, oe({
|
|
850
|
+
key: S.prop,
|
|
851
|
+
prop: S.prop,
|
|
852
|
+
label: S.label,
|
|
853
|
+
formatter: !a(S.prop) && !S.dicData ? S.formatter : void 0,
|
|
854
854
|
ref_for: !0
|
|
855
|
-
}, c(
|
|
856
|
-
l(
|
|
855
|
+
}, c(S)), je({ _: 2 }, [
|
|
856
|
+
l(S.prop) ? {
|
|
857
857
|
name: "header",
|
|
858
858
|
fn: J((j) => [
|
|
859
|
-
ee(
|
|
859
|
+
ee(b.$slots, `${S.prop}-header`, oe({ ref_for: !0 }, j), void 0, !0)
|
|
860
860
|
]),
|
|
861
861
|
key: "0"
|
|
862
862
|
} : void 0,
|
|
863
|
-
|
|
863
|
+
m(S) ? {
|
|
864
864
|
name: "default",
|
|
865
865
|
fn: J((j) => [
|
|
866
|
-
a(
|
|
866
|
+
a(S.prop) ? ee(b.$slots, `${S.prop}-data`, oe({
|
|
867
867
|
key: 0,
|
|
868
868
|
ref_for: !0
|
|
869
|
-
}, j), void 0, !0) :
|
|
869
|
+
}, j), void 0, !0) : S.dicData ? (k(), Y("span", Fo, fe($(S.dicData, j.row[S.prop])), 1)) : S.formatter ? (k(), Y("span", Bo, fe(S.formatter(j.row, j.column, j.row[S.prop], j.$index)), 1)) : (k(), Y("span", Eo, fe(j.row[S.prop]), 1))
|
|
870
870
|
]),
|
|
871
871
|
key: "1"
|
|
872
872
|
} : void 0
|
|
873
873
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
874
|
-
i.value.menu ? (k(),
|
|
874
|
+
i.value.menu ? (k(), H(g, {
|
|
875
875
|
key: 2,
|
|
876
876
|
label: i.value.menuLabel ?? "操作",
|
|
877
877
|
width: i.value.menuWidth,
|
|
@@ -879,8 +879,8 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
879
879
|
align: i.value.menuAlign ?? "center",
|
|
880
880
|
fixed: i.value.menuFixed
|
|
881
881
|
}, {
|
|
882
|
-
default: J((
|
|
883
|
-
ee(
|
|
882
|
+
default: J((S) => [
|
|
883
|
+
ee(b.$slots, "menu", Me(Fe(S)), void 0, !0)
|
|
884
884
|
]),
|
|
885
885
|
_: 3
|
|
886
886
|
}, 8, ["label", "width", "min-width", "align", "fixed"])) : ue("", !0)
|
|
@@ -889,7 +889,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
889
889
|
}, 16, ["data", "row-key", "height", "max-height", "empty-text"]);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
}),
|
|
892
|
+
}), Vo = /* @__PURE__ */ ye(Lo, [["__scopeId", "data-v-513fa12d"]]), Po = { class: "jt-pagination" }, Ao = { class: "jt-pagination__count" }, jo = /* @__PURE__ */ ce({
|
|
893
893
|
name: "JtPagination",
|
|
894
894
|
__name: "JtPagination",
|
|
895
895
|
props: {
|
|
@@ -905,8 +905,8 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
905
905
|
r("current-change", s), r("page-change", s);
|
|
906
906
|
}
|
|
907
907
|
return (s, l) => {
|
|
908
|
-
const a =
|
|
909
|
-
return k(), Y("div",
|
|
908
|
+
const a = Zn;
|
|
909
|
+
return k(), Y("div", Po, [
|
|
910
910
|
we(a, {
|
|
911
911
|
"current-page": s.currentPage,
|
|
912
912
|
"page-size": s.pageSize,
|
|
@@ -918,14 +918,14 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
918
918
|
onCurrentChange: i,
|
|
919
919
|
onSizeChange: l[2] || (l[2] = (c) => s.$emit("size-change", c))
|
|
920
920
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
921
|
-
te("span",
|
|
921
|
+
te("span", Ao, "共" + fe(s.total) + "条记录", 1)
|
|
922
922
|
]);
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
}),
|
|
925
|
+
}), No = /* @__PURE__ */ ye(jo, [["__scopeId", "data-v-c6e8a4b5"]]), Ro = { class: "jt-crud-table" }, zo = {
|
|
926
926
|
key: 1,
|
|
927
927
|
class: "jt-crud-table__toolbar"
|
|
928
|
-
},
|
|
928
|
+
}, xo = /* @__PURE__ */ ce({
|
|
929
929
|
name: "JtCrudTable",
|
|
930
930
|
__name: "JtCrudTable",
|
|
931
931
|
props: /* @__PURE__ */ Mt({
|
|
@@ -944,113 +944,113 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
944
944
|
}),
|
|
945
945
|
emits: /* @__PURE__ */ Mt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
946
946
|
setup(e, { expose: t, emit: n }) {
|
|
947
|
-
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a =
|
|
948
|
-
() => o.columns.filter((
|
|
947
|
+
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), m = he(), _ = V(() => o.option), $ = V(() => _.value.searchShow !== !1), b = V(() => _.value.paginationShow !== !1), A = V(
|
|
948
|
+
() => o.columns.filter((p) => p.search && !!a[`${p.prop}-search`])
|
|
949
949
|
), g = V(
|
|
950
|
-
() => o.columns.filter((
|
|
950
|
+
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-header`])
|
|
951
951
|
), w = V(
|
|
952
|
-
() => o.columns.filter((
|
|
952
|
+
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-data`])
|
|
953
953
|
);
|
|
954
|
-
function
|
|
955
|
-
const
|
|
954
|
+
function S() {
|
|
955
|
+
const p = {};
|
|
956
956
|
return o.columns.forEach((N) => {
|
|
957
|
-
N.search && (
|
|
958
|
-
}),
|
|
957
|
+
N.search && (p[N.prop] = void 0);
|
|
958
|
+
}), p;
|
|
959
959
|
}
|
|
960
960
|
function j() {
|
|
961
961
|
r("search", { ...l.value });
|
|
962
962
|
}
|
|
963
963
|
function I() {
|
|
964
|
-
l.value =
|
|
964
|
+
l.value = S(), r("reset");
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
|
|
966
|
+
function h() {
|
|
967
|
+
m.value?.searchLoading();
|
|
968
968
|
}
|
|
969
969
|
function T() {
|
|
970
|
-
|
|
970
|
+
m.value?.searchDone();
|
|
971
971
|
}
|
|
972
972
|
return t({
|
|
973
973
|
/** 获取内部 el-table 实例 */
|
|
974
974
|
tableRef: V(() => c.value?.tableRef),
|
|
975
975
|
/** 获取内部筛选条实例 */
|
|
976
|
-
filterBarRef:
|
|
976
|
+
filterBarRef: m,
|
|
977
977
|
/** 开启筛选表单禁用。 */
|
|
978
|
-
searchLoading:
|
|
978
|
+
searchLoading: h,
|
|
979
979
|
/** 关闭筛选表单禁用。 */
|
|
980
980
|
searchDone: T
|
|
981
|
-
}), (
|
|
982
|
-
const y =
|
|
983
|
-
return k(), Y("div",
|
|
984
|
-
ee(
|
|
985
|
-
$.value ? (k(),
|
|
981
|
+
}), (p, N) => {
|
|
982
|
+
const y = Qn;
|
|
983
|
+
return k(), Y("div", Ro, [
|
|
984
|
+
ee(p.$slots, "header", {}, void 0, !0),
|
|
985
|
+
$.value ? (k(), H(Do, {
|
|
986
986
|
key: 0,
|
|
987
987
|
ref_key: "filterBarRef",
|
|
988
|
-
ref:
|
|
988
|
+
ref: m,
|
|
989
989
|
modelValue: l.value,
|
|
990
990
|
"onUpdate:modelValue": N[0] || (N[0] = (F) => l.value = F),
|
|
991
|
-
columns:
|
|
991
|
+
columns: p.columns,
|
|
992
992
|
option: _.value,
|
|
993
993
|
onSearch: j,
|
|
994
994
|
onReset: I
|
|
995
995
|
}, je({ _: 2 }, [
|
|
996
|
-
|
|
996
|
+
ge(A.value, (F) => ({
|
|
997
997
|
name: `${F.prop}-search`,
|
|
998
998
|
fn: J((O) => [
|
|
999
|
-
ee(
|
|
999
|
+
ee(p.$slots, `${F.prop}-search`, Me(Fe(O)), void 0, !0)
|
|
1000
1000
|
])
|
|
1001
1001
|
}))
|
|
1002
1002
|
]), 1032, ["modelValue", "columns", "option"])) : ue("", !0),
|
|
1003
1003
|
re(a).toolbar ? (k(), Y("div", zo, [
|
|
1004
|
-
ee(
|
|
1004
|
+
ee(p.$slots, "toolbar", {}, void 0, !0)
|
|
1005
1005
|
])) : ue("", !0),
|
|
1006
|
-
|
|
1006
|
+
Yn((k(), H(Vo, {
|
|
1007
1007
|
ref_key: "jtTableRef",
|
|
1008
1008
|
ref: c,
|
|
1009
|
-
data:
|
|
1010
|
-
columns:
|
|
1009
|
+
data: p.data,
|
|
1010
|
+
columns: p.columns,
|
|
1011
1011
|
option: _.value,
|
|
1012
|
-
"table-events":
|
|
1012
|
+
"table-events": p.tableEvents
|
|
1013
1013
|
}, je({ _: 2 }, [
|
|
1014
|
-
|
|
1014
|
+
ge(g.value, (F) => ({
|
|
1015
1015
|
name: `${F.prop}-header`,
|
|
1016
1016
|
fn: J((O) => [
|
|
1017
|
-
ee(
|
|
1017
|
+
ee(p.$slots, `${F.prop}-header`, Me(Fe(O)), void 0, !0)
|
|
1018
1018
|
])
|
|
1019
1019
|
})),
|
|
1020
|
-
|
|
1020
|
+
ge(w.value, (F) => ({
|
|
1021
1021
|
name: `${F.prop}-data`,
|
|
1022
1022
|
fn: J((O) => [
|
|
1023
|
-
ee(
|
|
1023
|
+
ee(p.$slots, `${F.prop}-data`, Me(Fe(O)), void 0, !0)
|
|
1024
1024
|
])
|
|
1025
1025
|
})),
|
|
1026
1026
|
_.value.menu ? {
|
|
1027
1027
|
name: "menu",
|
|
1028
1028
|
fn: J((F) => [
|
|
1029
|
-
ee(
|
|
1029
|
+
ee(p.$slots, "menu", Me(Fe(F)), void 0, !0)
|
|
1030
1030
|
]),
|
|
1031
1031
|
key: "0"
|
|
1032
1032
|
} : void 0
|
|
1033
1033
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1034
1034
|
[y, _.value.loading]
|
|
1035
1035
|
]),
|
|
1036
|
-
|
|
1036
|
+
b.value ? (k(), H(No, {
|
|
1037
1037
|
key: 2,
|
|
1038
1038
|
"current-page": i.value,
|
|
1039
1039
|
"onUpdate:currentPage": N[1] || (N[1] = (F) => i.value = F),
|
|
1040
1040
|
"page-size": s.value,
|
|
1041
1041
|
"onUpdate:pageSize": N[2] || (N[2] = (F) => s.value = F),
|
|
1042
|
-
total:
|
|
1042
|
+
total: p.total,
|
|
1043
1043
|
option: _.value,
|
|
1044
|
-
onPageChange: N[3] || (N[3] = (F) =>
|
|
1045
|
-
onSizeChange: N[4] || (N[4] = (F) =>
|
|
1044
|
+
onPageChange: N[3] || (N[3] = (F) => p.$emit("page-change", F)),
|
|
1045
|
+
onSizeChange: N[4] || (N[4] = (F) => p.$emit("size-change", F))
|
|
1046
1046
|
}, null, 8, ["current-page", "page-size", "total", "option"])) : ue("", !0)
|
|
1047
1047
|
]);
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
}),
|
|
1050
|
+
}), za = /* @__PURE__ */ ye(xo, [["__scopeId", "data-v-ad466273"]]), qo = { class: "jt-page-header__title" }, Go = { key: 0 }, Ko = {
|
|
1051
1051
|
key: 0,
|
|
1052
1052
|
class: "jt-page-header__operates"
|
|
1053
|
-
},
|
|
1053
|
+
}, Yo = /* @__PURE__ */ ce({
|
|
1054
1054
|
name: "JtPageHeader",
|
|
1055
1055
|
__name: "index",
|
|
1056
1056
|
props: {
|
|
@@ -1060,21 +1060,21 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1060
1060
|
},
|
|
1061
1061
|
emits: ["operate-click"],
|
|
1062
1062
|
setup(e, { emit: t }) {
|
|
1063
|
-
const n = e, o = t, r =
|
|
1063
|
+
const n = e, o = t, r = Ee(), i = V(() => n.operates.length > 0 || !!r.operates);
|
|
1064
1064
|
function s(l, a) {
|
|
1065
1065
|
l.onClick?.(l, a), o("operate-click", l, a);
|
|
1066
1066
|
}
|
|
1067
1067
|
return (l, a) => (k(), Y("div", oe({
|
|
1068
1068
|
class: ["jt-page-header", `jt-page-header--${l.type}`]
|
|
1069
1069
|
}, l.$attrs), [
|
|
1070
|
-
te("div",
|
|
1070
|
+
te("div", qo, [
|
|
1071
1071
|
ee(l.$slots, "title", {}, () => [
|
|
1072
|
-
l.title ? (k(), Y("span",
|
|
1072
|
+
l.title ? (k(), Y("span", Go, fe(l.title), 1)) : ue("", !0)
|
|
1073
1073
|
], !0)
|
|
1074
1074
|
]),
|
|
1075
1075
|
i.value ? (k(), Y("div", Ko, [
|
|
1076
1076
|
ee(l.$slots, "operates", { operates: l.operates }, () => [
|
|
1077
|
-
(k(!0), Y(be, null,
|
|
1077
|
+
(k(!0), Y(be, null, ge(l.operates, (c) => (k(), H(re(tt), oe({
|
|
1078
1078
|
key: c.key ?? c.label,
|
|
1079
1079
|
ref_for: !0
|
|
1080
1080
|
}, c.buttonProps, {
|
|
@@ -1085,7 +1085,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1085
1085
|
text: c.text,
|
|
1086
1086
|
link: c.link,
|
|
1087
1087
|
icon: c.icon,
|
|
1088
|
-
onClick: (
|
|
1088
|
+
onClick: (m) => s(c, m)
|
|
1089
1089
|
}), {
|
|
1090
1090
|
default: J(() => [
|
|
1091
1091
|
te("span", null, fe(c.label), 1)
|
|
@@ -1096,8 +1096,8 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1096
1096
|
])) : ue("", !0)
|
|
1097
1097
|
], 16));
|
|
1098
1098
|
}
|
|
1099
|
-
}),
|
|
1100
|
-
function
|
|
1099
|
+
}), xa = /* @__PURE__ */ ye(Yo, [["__scopeId", "data-v-9e6bb356"]]);
|
|
1100
|
+
function Uo(e, t) {
|
|
1101
1101
|
t = t || (() => "default-use-once-sync");
|
|
1102
1102
|
const n = /* @__PURE__ */ new Map();
|
|
1103
1103
|
async function o(...r) {
|
|
@@ -1139,105 +1139,105 @@ var an = { exports: {} };
|
|
|
1139
1139
|
(function(n, o) {
|
|
1140
1140
|
e.exports = o();
|
|
1141
1141
|
})(at, function() {
|
|
1142
|
-
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day",
|
|
1143
|
-
var D = ["th", "st", "nd", "rd"], B =
|
|
1144
|
-
return "[" +
|
|
1145
|
-
} }, I = function(
|
|
1146
|
-
var u = String(
|
|
1147
|
-
return !u || u.length >= D ?
|
|
1148
|
-
},
|
|
1149
|
-
var D = -
|
|
1150
|
-
return (D <= 0 ? "+" : "-") + I(u, 2, "0") + ":" + I(
|
|
1151
|
-
}, m: function
|
|
1152
|
-
if (D.date() < B.date()) return -
|
|
1153
|
-
var u = 12 * (B.year() - D.year()) + (B.month() - D.month()),
|
|
1154
|
-
return +(-(u + (B -
|
|
1155
|
-
}, a: function(
|
|
1156
|
-
return
|
|
1157
|
-
}, p: function(
|
|
1158
|
-
return { M: _, y:
|
|
1159
|
-
}, u: function(
|
|
1160
|
-
return
|
|
1161
|
-
} }, T = "en",
|
|
1162
|
-
|
|
1163
|
-
var N = "$isDayjsObject", y = function(
|
|
1164
|
-
return
|
|
1165
|
-
}, F = function
|
|
1166
|
-
var
|
|
1142
|
+
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", m = "week", _ = "month", $ = "quarter", b = "year", A = "date", g = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
1143
|
+
var D = ["th", "st", "nd", "rd"], B = R % 100;
|
|
1144
|
+
return "[" + R + (D[(B - 20) % 10] || D[B] || D[0]) + "]";
|
|
1145
|
+
} }, I = function(R, D, B) {
|
|
1146
|
+
var u = String(R);
|
|
1147
|
+
return !u || u.length >= D ? R : "" + Array(D + 1 - u.length).join(B) + R;
|
|
1148
|
+
}, h = { s: I, z: function(R) {
|
|
1149
|
+
var D = -R.utcOffset(), B = Math.abs(D), u = Math.floor(B / 60), v = B % 60;
|
|
1150
|
+
return (D <= 0 ? "+" : "-") + I(u, 2, "0") + ":" + I(v, 2, "0");
|
|
1151
|
+
}, m: function R(D, B) {
|
|
1152
|
+
if (D.date() < B.date()) return -R(B, D);
|
|
1153
|
+
var u = 12 * (B.year() - D.year()) + (B.month() - D.month()), v = D.clone().add(u, _), C = B - v < 0, L = D.clone().add(u + (C ? -1 : 1), _);
|
|
1154
|
+
return +(-(u + (B - v) / (C ? v - L : L - v)) || 0);
|
|
1155
|
+
}, a: function(R) {
|
|
1156
|
+
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
1157
|
+
}, p: function(R) {
|
|
1158
|
+
return { M: _, y: b, w: m, d: c, D: A, h: a, m: l, s, ms: i, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
1159
|
+
}, u: function(R) {
|
|
1160
|
+
return R === void 0;
|
|
1161
|
+
} }, T = "en", p = {};
|
|
1162
|
+
p[T] = j;
|
|
1163
|
+
var N = "$isDayjsObject", y = function(R) {
|
|
1164
|
+
return R instanceof ne || !(!R || !R[N]);
|
|
1165
|
+
}, F = function R(D, B, u) {
|
|
1166
|
+
var v;
|
|
1167
1167
|
if (!D) return T;
|
|
1168
1168
|
if (typeof D == "string") {
|
|
1169
1169
|
var C = D.toLowerCase();
|
|
1170
|
-
|
|
1171
|
-
var
|
|
1172
|
-
if (!
|
|
1170
|
+
p[C] && (v = C), B && (p[C] = B, v = C);
|
|
1171
|
+
var L = D.split("-");
|
|
1172
|
+
if (!v && L.length > 1) return R(L[0]);
|
|
1173
1173
|
} else {
|
|
1174
|
-
var
|
|
1175
|
-
|
|
1174
|
+
var E = D.name;
|
|
1175
|
+
p[E] = D, v = E;
|
|
1176
1176
|
}
|
|
1177
|
-
return !u &&
|
|
1178
|
-
}, O = function(
|
|
1179
|
-
if (y(
|
|
1177
|
+
return !u && v && (T = v), v || !u && T;
|
|
1178
|
+
}, O = function(R, D) {
|
|
1179
|
+
if (y(R)) return R.clone();
|
|
1180
1180
|
var B = typeof D == "object" ? D : {};
|
|
1181
|
-
return B.date =
|
|
1182
|
-
},
|
|
1183
|
-
|
|
1184
|
-
return O(
|
|
1181
|
+
return B.date = R, B.args = arguments, new ne(B);
|
|
1182
|
+
}, z = h;
|
|
1183
|
+
z.l = F, z.i = y, z.w = function(R, D) {
|
|
1184
|
+
return O(R, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
1185
1185
|
};
|
|
1186
1186
|
var ne = function() {
|
|
1187
|
-
function
|
|
1187
|
+
function R(B) {
|
|
1188
1188
|
this.$L = F(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[N] = !0;
|
|
1189
1189
|
}
|
|
1190
|
-
var D =
|
|
1190
|
+
var D = R.prototype;
|
|
1191
1191
|
return D.parse = function(B) {
|
|
1192
1192
|
this.$d = function(u) {
|
|
1193
|
-
var
|
|
1194
|
-
if (
|
|
1195
|
-
if (
|
|
1196
|
-
if (
|
|
1197
|
-
if (typeof
|
|
1198
|
-
var
|
|
1199
|
-
if (
|
|
1200
|
-
var
|
|
1201
|
-
return C ? new Date(Date.UTC(
|
|
1193
|
+
var v = u.date, C = u.utc;
|
|
1194
|
+
if (v === null) return /* @__PURE__ */ new Date(NaN);
|
|
1195
|
+
if (z.u(v)) return /* @__PURE__ */ new Date();
|
|
1196
|
+
if (v instanceof Date) return new Date(v);
|
|
1197
|
+
if (typeof v == "string" && !/Z$/i.test(v)) {
|
|
1198
|
+
var L = v.match(w);
|
|
1199
|
+
if (L) {
|
|
1200
|
+
var E = L[2] - 1 || 0, q = (L[7] || "0").substring(0, 3);
|
|
1201
|
+
return C ? new Date(Date.UTC(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q)) : new Date(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
return new Date(
|
|
1204
|
+
return new Date(v);
|
|
1205
1205
|
}(B), this.init();
|
|
1206
1206
|
}, D.init = function() {
|
|
1207
1207
|
var B = this.$d;
|
|
1208
1208
|
this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
|
|
1209
1209
|
}, D.$utils = function() {
|
|
1210
|
-
return
|
|
1210
|
+
return z;
|
|
1211
1211
|
}, D.isValid = function() {
|
|
1212
1212
|
return this.$d.toString() !== g;
|
|
1213
1213
|
}, D.isSame = function(B, u) {
|
|
1214
|
-
var
|
|
1215
|
-
return this.startOf(u) <=
|
|
1214
|
+
var v = O(B);
|
|
1215
|
+
return this.startOf(u) <= v && v <= this.endOf(u);
|
|
1216
1216
|
}, D.isAfter = function(B, u) {
|
|
1217
1217
|
return O(B) < this.startOf(u);
|
|
1218
1218
|
}, D.isBefore = function(B, u) {
|
|
1219
1219
|
return this.endOf(u) < O(B);
|
|
1220
|
-
}, D.$g = function(B, u,
|
|
1221
|
-
return
|
|
1220
|
+
}, D.$g = function(B, u, v) {
|
|
1221
|
+
return z.u(B) ? this[u] : this.set(v, B);
|
|
1222
1222
|
}, D.unix = function() {
|
|
1223
1223
|
return Math.floor(this.valueOf() / 1e3);
|
|
1224
1224
|
}, D.valueOf = function() {
|
|
1225
1225
|
return this.$d.getTime();
|
|
1226
1226
|
}, D.startOf = function(B, u) {
|
|
1227
|
-
var
|
|
1228
|
-
var Se =
|
|
1227
|
+
var v = this, C = !!z.u(u) || u, L = z.p(B), E = function(pe, de) {
|
|
1228
|
+
var Se = z.w(v.$u ? Date.UTC(v.$y, de, pe) : new Date(v.$y, de, pe), v);
|
|
1229
1229
|
return C ? Se : Se.endOf(c);
|
|
1230
1230
|
}, q = function(pe, de) {
|
|
1231
|
-
return
|
|
1232
|
-
},
|
|
1233
|
-
switch (
|
|
1234
|
-
case
|
|
1235
|
-
return C ?
|
|
1231
|
+
return z.w(v.toDate()[pe].apply(v.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), v);
|
|
1232
|
+
}, U = this.$W, G = this.$M, X = this.$D, P = "set" + (this.$u ? "UTC" : "");
|
|
1233
|
+
switch (L) {
|
|
1234
|
+
case b:
|
|
1235
|
+
return C ? E(1, 0) : E(31, 11);
|
|
1236
1236
|
case _:
|
|
1237
|
-
return C ?
|
|
1238
|
-
case
|
|
1239
|
-
var Z = this.$locale().weekStart || 0, ae = (
|
|
1240
|
-
return
|
|
1237
|
+
return C ? E(1, G) : E(0, G + 1);
|
|
1238
|
+
case m:
|
|
1239
|
+
var Z = this.$locale().weekStart || 0, ae = (U < Z ? U + 7 : U) - Z;
|
|
1240
|
+
return E(C ? X - ae : X + (6 - ae), G);
|
|
1241
1241
|
case c:
|
|
1242
1242
|
case A:
|
|
1243
1243
|
return q(P + "Hours", 0);
|
|
@@ -1253,105 +1253,105 @@ var an = { exports: {} };
|
|
|
1253
1253
|
}, D.endOf = function(B) {
|
|
1254
1254
|
return this.startOf(B, !1);
|
|
1255
1255
|
}, D.$set = function(B, u) {
|
|
1256
|
-
var
|
|
1257
|
-
if (C === _ || C ===
|
|
1258
|
-
var
|
|
1259
|
-
|
|
1260
|
-
} else
|
|
1256
|
+
var v, C = z.p(B), L = "set" + (this.$u ? "UTC" : ""), E = (v = {}, v[c] = L + "Date", v[A] = L + "Date", v[_] = L + "Month", v[b] = L + "FullYear", v[a] = L + "Hours", v[l] = L + "Minutes", v[s] = L + "Seconds", v[i] = L + "Milliseconds", v)[C], q = C === c ? this.$D + (u - this.$W) : u;
|
|
1257
|
+
if (C === _ || C === b) {
|
|
1258
|
+
var U = this.clone().set(A, 1);
|
|
1259
|
+
U.$d[E](q), U.init(), this.$d = U.set(A, Math.min(this.$D, U.daysInMonth())).$d;
|
|
1260
|
+
} else E && this.$d[E](q);
|
|
1261
1261
|
return this.init(), this;
|
|
1262
1262
|
}, D.set = function(B, u) {
|
|
1263
1263
|
return this.clone().$set(B, u);
|
|
1264
1264
|
}, D.get = function(B) {
|
|
1265
|
-
return this[
|
|
1265
|
+
return this[z.p(B)]();
|
|
1266
1266
|
}, D.add = function(B, u) {
|
|
1267
|
-
var
|
|
1267
|
+
var v, C = this;
|
|
1268
1268
|
B = Number(B);
|
|
1269
|
-
var
|
|
1269
|
+
var L = z.p(u), E = function(G) {
|
|
1270
1270
|
var X = O(C);
|
|
1271
|
-
return
|
|
1271
|
+
return z.w(X.date(X.date() + Math.round(G * B)), C);
|
|
1272
1272
|
};
|
|
1273
|
-
if (
|
|
1274
|
-
if (
|
|
1275
|
-
if (
|
|
1276
|
-
if (
|
|
1277
|
-
var q = (
|
|
1278
|
-
return
|
|
1273
|
+
if (L === _) return this.set(_, this.$M + B);
|
|
1274
|
+
if (L === b) return this.set(b, this.$y + B);
|
|
1275
|
+
if (L === c) return E(1);
|
|
1276
|
+
if (L === m) return E(7);
|
|
1277
|
+
var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1, U = this.$d.getTime() + B * q;
|
|
1278
|
+
return z.w(U, this);
|
|
1279
1279
|
}, D.subtract = function(B, u) {
|
|
1280
1280
|
return this.add(-1 * B, u);
|
|
1281
1281
|
}, D.format = function(B) {
|
|
1282
|
-
var u = this,
|
|
1283
|
-
if (!this.isValid()) return
|
|
1284
|
-
var C = B || "YYYY-MM-DDTHH:mm:ssZ",
|
|
1282
|
+
var u = this, v = this.$locale();
|
|
1283
|
+
if (!this.isValid()) return v.invalidDate || g;
|
|
1284
|
+
var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, U = this.$M, G = v.weekdays, X = v.months, P = v.meridiem, Z = function(de, Se, Oe, Ie) {
|
|
1285
1285
|
return de && (de[Se] || de(u, C)) || Oe[Se].slice(0, Ie);
|
|
1286
1286
|
}, ae = function(de) {
|
|
1287
|
-
return
|
|
1287
|
+
return z.s(E % 12 || 12, de, "0");
|
|
1288
1288
|
}, pe = P || function(de, Se, Oe) {
|
|
1289
1289
|
var Ie = de < 12 ? "AM" : "PM";
|
|
1290
1290
|
return Oe ? Ie.toLowerCase() : Ie;
|
|
1291
1291
|
};
|
|
1292
|
-
return C.replace(
|
|
1292
|
+
return C.replace(S, function(de, Se) {
|
|
1293
1293
|
return Se || function(Oe) {
|
|
1294
1294
|
switch (Oe) {
|
|
1295
1295
|
case "YY":
|
|
1296
1296
|
return String(u.$y).slice(-2);
|
|
1297
1297
|
case "YYYY":
|
|
1298
|
-
return
|
|
1298
|
+
return z.s(u.$y, 4, "0");
|
|
1299
1299
|
case "M":
|
|
1300
|
-
return
|
|
1300
|
+
return U + 1;
|
|
1301
1301
|
case "MM":
|
|
1302
|
-
return
|
|
1302
|
+
return z.s(U + 1, 2, "0");
|
|
1303
1303
|
case "MMM":
|
|
1304
|
-
return Z(
|
|
1304
|
+
return Z(v.monthsShort, U, X, 3);
|
|
1305
1305
|
case "MMMM":
|
|
1306
|
-
return Z(X,
|
|
1306
|
+
return Z(X, U);
|
|
1307
1307
|
case "D":
|
|
1308
1308
|
return u.$D;
|
|
1309
1309
|
case "DD":
|
|
1310
|
-
return
|
|
1310
|
+
return z.s(u.$D, 2, "0");
|
|
1311
1311
|
case "d":
|
|
1312
1312
|
return String(u.$W);
|
|
1313
1313
|
case "dd":
|
|
1314
|
-
return Z(
|
|
1314
|
+
return Z(v.weekdaysMin, u.$W, G, 2);
|
|
1315
1315
|
case "ddd":
|
|
1316
|
-
return Z(
|
|
1316
|
+
return Z(v.weekdaysShort, u.$W, G, 3);
|
|
1317
1317
|
case "dddd":
|
|
1318
|
-
return
|
|
1318
|
+
return G[u.$W];
|
|
1319
1319
|
case "H":
|
|
1320
|
-
return String(
|
|
1320
|
+
return String(E);
|
|
1321
1321
|
case "HH":
|
|
1322
|
-
return
|
|
1322
|
+
return z.s(E, 2, "0");
|
|
1323
1323
|
case "h":
|
|
1324
1324
|
return ae(1);
|
|
1325
1325
|
case "hh":
|
|
1326
1326
|
return ae(2);
|
|
1327
1327
|
case "a":
|
|
1328
|
-
return pe(
|
|
1328
|
+
return pe(E, q, !0);
|
|
1329
1329
|
case "A":
|
|
1330
|
-
return pe(
|
|
1330
|
+
return pe(E, q, !1);
|
|
1331
1331
|
case "m":
|
|
1332
1332
|
return String(q);
|
|
1333
1333
|
case "mm":
|
|
1334
|
-
return
|
|
1334
|
+
return z.s(q, 2, "0");
|
|
1335
1335
|
case "s":
|
|
1336
1336
|
return String(u.$s);
|
|
1337
1337
|
case "ss":
|
|
1338
|
-
return
|
|
1338
|
+
return z.s(u.$s, 2, "0");
|
|
1339
1339
|
case "SSS":
|
|
1340
|
-
return
|
|
1340
|
+
return z.s(u.$ms, 3, "0");
|
|
1341
1341
|
case "Z":
|
|
1342
|
-
return
|
|
1342
|
+
return L;
|
|
1343
1343
|
}
|
|
1344
1344
|
return null;
|
|
1345
|
-
}(de) ||
|
|
1345
|
+
}(de) || L.replace(":", "");
|
|
1346
1346
|
});
|
|
1347
1347
|
}, D.utcOffset = function() {
|
|
1348
1348
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1349
|
-
}, D.diff = function(B, u,
|
|
1350
|
-
var C,
|
|
1351
|
-
return
|
|
1349
|
+
}, D.diff = function(B, u, v) {
|
|
1350
|
+
var C, L = this, E = z.p(u), q = O(B), U = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
|
|
1351
|
+
return z.m(L, q);
|
|
1352
1352
|
};
|
|
1353
|
-
switch (
|
|
1354
|
-
case
|
|
1353
|
+
switch (E) {
|
|
1354
|
+
case b:
|
|
1355
1355
|
C = X() / 12;
|
|
1356
1356
|
break;
|
|
1357
1357
|
case _:
|
|
@@ -1360,35 +1360,35 @@ var an = { exports: {} };
|
|
|
1360
1360
|
case $:
|
|
1361
1361
|
C = X() / 3;
|
|
1362
1362
|
break;
|
|
1363
|
-
case
|
|
1364
|
-
C = (
|
|
1363
|
+
case m:
|
|
1364
|
+
C = (G - U) / 6048e5;
|
|
1365
1365
|
break;
|
|
1366
1366
|
case c:
|
|
1367
|
-
C = (
|
|
1367
|
+
C = (G - U) / 864e5;
|
|
1368
1368
|
break;
|
|
1369
1369
|
case a:
|
|
1370
|
-
C =
|
|
1370
|
+
C = G / r;
|
|
1371
1371
|
break;
|
|
1372
1372
|
case l:
|
|
1373
|
-
C =
|
|
1373
|
+
C = G / o;
|
|
1374
1374
|
break;
|
|
1375
1375
|
case s:
|
|
1376
|
-
C =
|
|
1376
|
+
C = G / n;
|
|
1377
1377
|
break;
|
|
1378
1378
|
default:
|
|
1379
|
-
C =
|
|
1379
|
+
C = G;
|
|
1380
1380
|
}
|
|
1381
|
-
return
|
|
1381
|
+
return v ? C : z.a(C);
|
|
1382
1382
|
}, D.daysInMonth = function() {
|
|
1383
1383
|
return this.endOf(_).$D;
|
|
1384
1384
|
}, D.$locale = function() {
|
|
1385
|
-
return
|
|
1385
|
+
return p[this.$L];
|
|
1386
1386
|
}, D.locale = function(B, u) {
|
|
1387
1387
|
if (!B) return this.$L;
|
|
1388
|
-
var
|
|
1389
|
-
return C && (
|
|
1388
|
+
var v = this.clone(), C = F(B, u, !0);
|
|
1389
|
+
return C && (v.$L = C), v;
|
|
1390
1390
|
}, D.clone = function() {
|
|
1391
|
-
return
|
|
1391
|
+
return z.w(this.$d, this);
|
|
1392
1392
|
}, D.toDate = function() {
|
|
1393
1393
|
return new Date(this.valueOf());
|
|
1394
1394
|
}, D.toJSON = function() {
|
|
@@ -1397,17 +1397,17 @@ var an = { exports: {} };
|
|
|
1397
1397
|
return this.$d.toISOString();
|
|
1398
1398
|
}, D.toString = function() {
|
|
1399
1399
|
return this.$d.toUTCString();
|
|
1400
|
-
},
|
|
1400
|
+
}, R;
|
|
1401
1401
|
}(), x = ne.prototype;
|
|
1402
|
-
return O.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", _], ["$y",
|
|
1403
|
-
x[
|
|
1404
|
-
return this.$g(D,
|
|
1402
|
+
return O.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", _], ["$y", b], ["$D", A]].forEach(function(R) {
|
|
1403
|
+
x[R[1]] = function(D) {
|
|
1404
|
+
return this.$g(D, R[0], R[1]);
|
|
1405
1405
|
};
|
|
1406
|
-
}), O.extend = function(
|
|
1407
|
-
return
|
|
1408
|
-
}, O.locale = F, O.isDayjs = y, O.unix = function(
|
|
1409
|
-
return O(1e3 *
|
|
1410
|
-
}, O.en =
|
|
1406
|
+
}), O.extend = function(R, D) {
|
|
1407
|
+
return R.$i || (R(D, ne, O), R.$i = !0), O;
|
|
1408
|
+
}, O.locale = F, O.isDayjs = y, O.unix = function(R) {
|
|
1409
|
+
return O(1e3 * R);
|
|
1410
|
+
}, O.en = p[T], O.Ls = p, O.p = {}, O;
|
|
1411
1411
|
});
|
|
1412
1412
|
})(an);
|
|
1413
1413
|
var Ho = an.exports;
|
|
@@ -1419,32 +1419,32 @@ var sn = { exports: {} };
|
|
|
1419
1419
|
})(at, function() {
|
|
1420
1420
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, a = {}, c = function(w) {
|
|
1421
1421
|
return (w = +w) + (w > 68 ? 1900 : 2e3);
|
|
1422
|
-
},
|
|
1423
|
-
return function(
|
|
1424
|
-
this[w] = +
|
|
1422
|
+
}, m = function(w) {
|
|
1423
|
+
return function(S) {
|
|
1424
|
+
this[w] = +S;
|
|
1425
1425
|
};
|
|
1426
1426
|
}, _ = [/[+-]\d\d:?(\d\d)?|Z/, function(w) {
|
|
1427
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
1428
|
-
if (!
|
|
1429
|
-
var j =
|
|
1427
|
+
(this.zone || (this.zone = {})).offset = function(S) {
|
|
1428
|
+
if (!S || S === "Z") return 0;
|
|
1429
|
+
var j = S.match(/([+-]|\d\d)/g), I = 60 * j[1] + (+j[2] || 0);
|
|
1430
1430
|
return I === 0 ? 0 : j[0] === "+" ? -I : I;
|
|
1431
1431
|
}(w);
|
|
1432
1432
|
}], $ = function(w) {
|
|
1433
|
-
var
|
|
1434
|
-
return
|
|
1435
|
-
},
|
|
1433
|
+
var S = a[w];
|
|
1434
|
+
return S && (S.indexOf ? S : S.s.concat(S.f));
|
|
1435
|
+
}, b = function(w, S) {
|
|
1436
1436
|
var j, I = a.meridiem;
|
|
1437
1437
|
if (I) {
|
|
1438
|
-
for (var
|
|
1439
|
-
j =
|
|
1438
|
+
for (var h = 1; h <= 24; h += 1) if (w.indexOf(I(h, 0, S)) > -1) {
|
|
1439
|
+
j = h > 12;
|
|
1440
1440
|
break;
|
|
1441
1441
|
}
|
|
1442
|
-
} else j = w === (
|
|
1442
|
+
} else j = w === (S ? "pm" : "PM");
|
|
1443
1443
|
return j;
|
|
1444
1444
|
}, A = { A: [l, function(w) {
|
|
1445
|
-
this.afternoon =
|
|
1445
|
+
this.afternoon = b(w, !1);
|
|
1446
1446
|
}], a: [l, function(w) {
|
|
1447
|
-
this.afternoon =
|
|
1447
|
+
this.afternoon = b(w, !0);
|
|
1448
1448
|
}], Q: [r, function(w) {
|
|
1449
1449
|
this.month = 3 * (w - 1) + 1;
|
|
1450
1450
|
}], S: [r, function(w) {
|
|
@@ -1453,88 +1453,88 @@ var sn = { exports: {} };
|
|
|
1453
1453
|
this.milliseconds = 10 * +w;
|
|
1454
1454
|
}], SSS: [/\d{3}/, function(w) {
|
|
1455
1455
|
this.milliseconds = +w;
|
|
1456
|
-
}], s: [s,
|
|
1457
|
-
var
|
|
1458
|
-
if (this.day = j[0],
|
|
1459
|
-
}], w: [s,
|
|
1460
|
-
var
|
|
1456
|
+
}], s: [s, m("seconds")], ss: [s, m("seconds")], m: [s, m("minutes")], mm: [s, m("minutes")], H: [s, m("hours")], h: [s, m("hours")], HH: [s, m("hours")], hh: [s, m("hours")], D: [s, m("day")], DD: [i, m("day")], Do: [l, function(w) {
|
|
1457
|
+
var S = a.ordinal, j = w.match(/\d+/);
|
|
1458
|
+
if (this.day = j[0], S) for (var I = 1; I <= 31; I += 1) S(I).replace(/\[|\]/g, "") === w && (this.day = I);
|
|
1459
|
+
}], w: [s, m("week")], ww: [i, m("week")], M: [s, m("month")], MM: [i, m("month")], MMM: [l, function(w) {
|
|
1460
|
+
var S = $("months"), j = ($("monthsShort") || S.map(function(I) {
|
|
1461
1461
|
return I.slice(0, 3);
|
|
1462
1462
|
})).indexOf(w) + 1;
|
|
1463
1463
|
if (j < 1) throw new Error();
|
|
1464
1464
|
this.month = j % 12 || j;
|
|
1465
1465
|
}], MMMM: [l, function(w) {
|
|
1466
|
-
var
|
|
1467
|
-
if (
|
|
1468
|
-
this.month =
|
|
1469
|
-
}], Y: [/[+-]?\d+/,
|
|
1466
|
+
var S = $("months").indexOf(w) + 1;
|
|
1467
|
+
if (S < 1) throw new Error();
|
|
1468
|
+
this.month = S % 12 || S;
|
|
1469
|
+
}], Y: [/[+-]?\d+/, m("year")], YY: [i, function(w) {
|
|
1470
1470
|
this.year = c(w);
|
|
1471
|
-
}], YYYY: [/\d{4}/,
|
|
1471
|
+
}], YYYY: [/\d{4}/, m("year")], Z: _, ZZ: _ };
|
|
1472
1472
|
function g(w) {
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1475
|
-
for (var I = (w =
|
|
1473
|
+
var S, j;
|
|
1474
|
+
S = w, j = a && a.formats;
|
|
1475
|
+
for (var I = (w = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, z, ne) {
|
|
1476
1476
|
var x = ne && ne.toUpperCase();
|
|
1477
|
-
return
|
|
1477
|
+
return z || j[ne] || n[ne] || j[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, D, B) {
|
|
1478
1478
|
return D || B.slice(1);
|
|
1479
1479
|
});
|
|
1480
|
-
})).match(o),
|
|
1481
|
-
var
|
|
1482
|
-
I[T] = F ? { regex: y, parser: F } :
|
|
1480
|
+
})).match(o), h = I.length, T = 0; T < h; T += 1) {
|
|
1481
|
+
var p = I[T], N = A[p], y = N && N[0], F = N && N[1];
|
|
1482
|
+
I[T] = F ? { regex: y, parser: F } : p.replace(/^\[|\]$/g, "");
|
|
1483
1483
|
}
|
|
1484
1484
|
return function(O) {
|
|
1485
|
-
for (var
|
|
1486
|
-
var
|
|
1487
|
-
if (typeof
|
|
1485
|
+
for (var z = {}, ne = 0, x = 0; ne < h; ne += 1) {
|
|
1486
|
+
var R = I[ne];
|
|
1487
|
+
if (typeof R == "string") x += R.length;
|
|
1488
1488
|
else {
|
|
1489
|
-
var D =
|
|
1490
|
-
B.call(
|
|
1489
|
+
var D = R.regex, B = R.parser, u = O.slice(x), v = D.exec(u)[0];
|
|
1490
|
+
B.call(z, v), O = O.replace(v, "");
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
1493
|
return function(C) {
|
|
1494
|
-
var
|
|
1495
|
-
if (
|
|
1496
|
-
var
|
|
1497
|
-
|
|
1494
|
+
var L = C.afternoon;
|
|
1495
|
+
if (L !== void 0) {
|
|
1496
|
+
var E = C.hours;
|
|
1497
|
+
L ? E < 12 && (C.hours += 12) : E === 12 && (C.hours = 0), delete C.afternoon;
|
|
1498
1498
|
}
|
|
1499
|
-
}(
|
|
1499
|
+
}(z), z;
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
|
-
return function(w,
|
|
1502
|
+
return function(w, S, j) {
|
|
1503
1503
|
j.p.customParseFormat = !0, w && w.parseTwoDigitYear && (c = w.parseTwoDigitYear);
|
|
1504
|
-
var I =
|
|
1504
|
+
var I = S.prototype, h = I.parse;
|
|
1505
1505
|
I.parse = function(T) {
|
|
1506
|
-
var
|
|
1506
|
+
var p = T.date, N = T.utc, y = T.args;
|
|
1507
1507
|
this.$u = N;
|
|
1508
1508
|
var F = y[1];
|
|
1509
1509
|
if (typeof F == "string") {
|
|
1510
|
-
var O = y[2] === !0,
|
|
1511
|
-
|
|
1510
|
+
var O = y[2] === !0, z = y[3] === !0, ne = O || z, x = y[2];
|
|
1511
|
+
z && (x = y[2]), a = this.$locale(), !O && x && (a = j.Ls[x]), this.$d = function(u, v, C, L) {
|
|
1512
1512
|
try {
|
|
1513
|
-
if (["x", "X"].indexOf(
|
|
1514
|
-
var
|
|
1515
|
-
q && !
|
|
1513
|
+
if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * u);
|
|
1514
|
+
var E = g(v)(u), q = E.year, U = E.month, G = E.day, X = E.hours, P = E.minutes, Z = E.seconds, ae = E.milliseconds, pe = E.zone, de = E.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || U ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), ze = 0;
|
|
1515
|
+
q && !U || (ze = U > 0 ? U - 1 : Se.getMonth());
|
|
1516
1516
|
var xe, et = X || 0, qe = P || 0, f = Z || 0, d = ae || 0;
|
|
1517
|
-
return pe ? new Date(Date.UTC(Ie,
|
|
1517
|
+
return pe ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d + 60 * pe.offset * 1e3)) : C ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d)) : (xe = new Date(Ie, ze, Oe, et, qe, f, d), de && (xe = L(xe).week(de).toDate()), xe);
|
|
1518
1518
|
} catch {
|
|
1519
1519
|
return /* @__PURE__ */ new Date("");
|
|
1520
1520
|
}
|
|
1521
|
-
}(
|
|
1522
|
-
} else if (F instanceof Array) for (var
|
|
1521
|
+
}(p, F, N, j), this.init(), x && x !== !0 && (this.$L = this.locale(x).$L), ne && p != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
|
|
1522
|
+
} else if (F instanceof Array) for (var R = F.length, D = 1; D <= R; D += 1) {
|
|
1523
1523
|
y[1] = F[D - 1];
|
|
1524
1524
|
var B = j.apply(this, y);
|
|
1525
1525
|
if (B.isValid()) {
|
|
1526
1526
|
this.$d = B.$d, this.$L = B.$L, this.init();
|
|
1527
1527
|
break;
|
|
1528
1528
|
}
|
|
1529
|
-
D ===
|
|
1529
|
+
D === R && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1530
1530
|
}
|
|
1531
|
-
else
|
|
1531
|
+
else h.call(this, T);
|
|
1532
1532
|
};
|
|
1533
1533
|
};
|
|
1534
1534
|
});
|
|
1535
1535
|
})(sn);
|
|
1536
|
-
var
|
|
1537
|
-
const
|
|
1536
|
+
var Jo = sn.exports;
|
|
1537
|
+
const Wo = /* @__PURE__ */ st(Jo);
|
|
1538
1538
|
var ln = { exports: {} };
|
|
1539
1539
|
(function(e, t) {
|
|
1540
1540
|
(function(n, o) {
|
|
@@ -1542,51 +1542,51 @@ var ln = { exports: {} };
|
|
|
1542
1542
|
})(at, function() {
|
|
1543
1543
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
|
|
1544
1544
|
return function(r, i, s) {
|
|
1545
|
-
var l, a = function($,
|
|
1545
|
+
var l, a = function($, b, A) {
|
|
1546
1546
|
A === void 0 && (A = {});
|
|
1547
|
-
var g = new Date($), w = function(
|
|
1547
|
+
var g = new Date($), w = function(S, j) {
|
|
1548
1548
|
j === void 0 && (j = {});
|
|
1549
|
-
var I = j.timeZoneName || "short",
|
|
1550
|
-
return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
1551
|
-
}(
|
|
1549
|
+
var I = j.timeZoneName || "short", h = S + "|" + I, T = o[h];
|
|
1550
|
+
return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: S, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: I }), o[h] = T), T;
|
|
1551
|
+
}(b, A);
|
|
1552
1552
|
return w.formatToParts(g);
|
|
1553
|
-
}, c = function($,
|
|
1554
|
-
for (var A = a($,
|
|
1555
|
-
var
|
|
1556
|
-
|
|
1553
|
+
}, c = function($, b) {
|
|
1554
|
+
for (var A = a($, b), g = [], w = 0; w < A.length; w += 1) {
|
|
1555
|
+
var S = A[w], j = S.type, I = S.value, h = n[j];
|
|
1556
|
+
h >= 0 && (g[h] = parseInt(I, 10));
|
|
1557
1557
|
}
|
|
1558
|
-
var T = g[3],
|
|
1558
|
+
var T = g[3], p = T === 24 ? 0 : T, N = g[0] + "-" + g[1] + "-" + g[2] + " " + p + ":" + g[4] + ":" + g[5] + ":000", y = +$;
|
|
1559
1559
|
return (s.utc(N).valueOf() - (y -= y % 1e3)) / 6e4;
|
|
1560
|
-
},
|
|
1561
|
-
|
|
1560
|
+
}, m = i.prototype;
|
|
1561
|
+
m.tz = function($, b) {
|
|
1562
1562
|
$ === void 0 && ($ = l);
|
|
1563
|
-
var A, g = this.utcOffset(), w = this.toDate(),
|
|
1564
|
-
if (!Number(I)) A = this.utcOffset(0,
|
|
1565
|
-
else if (A = s(
|
|
1566
|
-
var
|
|
1567
|
-
A = A.add(g -
|
|
1563
|
+
var A, g = this.utcOffset(), w = this.toDate(), S = w.toLocaleString("en-US", { timeZone: $ }), j = Math.round((w - new Date(S)) / 1e3 / 60), I = 15 * -Math.round(w.getTimezoneOffset() / 15) - j;
|
|
1564
|
+
if (!Number(I)) A = this.utcOffset(0, b);
|
|
1565
|
+
else if (A = s(S, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(I, !0), b) {
|
|
1566
|
+
var h = A.utcOffset();
|
|
1567
|
+
A = A.add(g - h, "minute");
|
|
1568
1568
|
}
|
|
1569
1569
|
return A.$x.$timezone = $, A;
|
|
1570
|
-
},
|
|
1571
|
-
var
|
|
1570
|
+
}, m.offsetName = function($) {
|
|
1571
|
+
var b = this.$x.$timezone || s.tz.guess(), A = a(this.valueOf(), b, { timeZoneName: $ }).find(function(g) {
|
|
1572
1572
|
return g.type.toLowerCase() === "timezonename";
|
|
1573
1573
|
});
|
|
1574
1574
|
return A && A.value;
|
|
1575
1575
|
};
|
|
1576
|
-
var _ =
|
|
1577
|
-
|
|
1578
|
-
if (!this.$x || !this.$x.$timezone) return _.call(this, $,
|
|
1576
|
+
var _ = m.startOf;
|
|
1577
|
+
m.startOf = function($, b) {
|
|
1578
|
+
if (!this.$x || !this.$x.$timezone) return _.call(this, $, b);
|
|
1579
1579
|
var A = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1580
|
-
return _.call(A, $,
|
|
1581
|
-
}, s.tz = function($,
|
|
1582
|
-
var g = A &&
|
|
1580
|
+
return _.call(A, $, b).tz(this.$x.$timezone, !0);
|
|
1581
|
+
}, s.tz = function($, b, A) {
|
|
1582
|
+
var g = A && b, w = A || b || l, S = c(+s(), w);
|
|
1583
1583
|
if (typeof $ != "string") return s($).tz(w);
|
|
1584
|
-
var j = function(
|
|
1585
|
-
var F =
|
|
1584
|
+
var j = function(p, N, y) {
|
|
1585
|
+
var F = p - 60 * N * 1e3, O = c(F, y);
|
|
1586
1586
|
if (N === O) return [F, N];
|
|
1587
|
-
var
|
|
1588
|
-
return O ===
|
|
1589
|
-
}(s.utc($, g).valueOf(),
|
|
1587
|
+
var z = c(F -= 60 * (O - N) * 1e3, y);
|
|
1588
|
+
return O === z ? [F, O] : [p - 60 * Math.min(O, z) * 1e3, Math.max(O, z)];
|
|
1589
|
+
}(s.utc($, g).valueOf(), S, w), I = j[0], h = j[1], T = s(I).utcOffset(h);
|
|
1590
1590
|
return T.$x.$timezone = w, T;
|
|
1591
1591
|
}, s.tz.guess = function() {
|
|
1592
1592
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -1596,8 +1596,8 @@ var ln = { exports: {} };
|
|
|
1596
1596
|
};
|
|
1597
1597
|
});
|
|
1598
1598
|
})(ln);
|
|
1599
|
-
var
|
|
1600
|
-
const
|
|
1599
|
+
var Zo = ln.exports;
|
|
1600
|
+
const Qo = /* @__PURE__ */ st(Zo);
|
|
1601
1601
|
var cn = { exports: {} };
|
|
1602
1602
|
(function(e, t) {
|
|
1603
1603
|
(function(n, o) {
|
|
@@ -1619,30 +1619,30 @@ var cn = { exports: {} };
|
|
|
1619
1619
|
a.parse = function(g) {
|
|
1620
1620
|
g.utc && (this.$u = !0), this.$utils().u(g.$offset) || (this.$offset = g.$offset), c.call(this, g);
|
|
1621
1621
|
};
|
|
1622
|
-
var
|
|
1622
|
+
var m = a.init;
|
|
1623
1623
|
a.init = function() {
|
|
1624
1624
|
if (this.$u) {
|
|
1625
1625
|
var g = this.$d;
|
|
1626
1626
|
this.$y = g.getUTCFullYear(), this.$M = g.getUTCMonth(), this.$D = g.getUTCDate(), this.$W = g.getUTCDay(), this.$H = g.getUTCHours(), this.$m = g.getUTCMinutes(), this.$s = g.getUTCSeconds(), this.$ms = g.getUTCMilliseconds();
|
|
1627
|
-
} else
|
|
1627
|
+
} else m.call(this);
|
|
1628
1628
|
};
|
|
1629
1629
|
var _ = a.utcOffset;
|
|
1630
1630
|
a.utcOffset = function(g, w) {
|
|
1631
|
-
var
|
|
1632
|
-
if (
|
|
1631
|
+
var S = this.$utils().u;
|
|
1632
|
+
if (S(g)) return this.$u ? 0 : S(this.$offset) ? _.call(this) : this.$offset;
|
|
1633
1633
|
if (typeof g == "string" && (g = function(T) {
|
|
1634
1634
|
T === void 0 && (T = "");
|
|
1635
|
-
var
|
|
1636
|
-
if (!
|
|
1637
|
-
var N = ("" +
|
|
1635
|
+
var p = T.match(o);
|
|
1636
|
+
if (!p) return null;
|
|
1637
|
+
var N = ("" + p[0]).match(r) || ["-", 0, 0], y = N[0], F = 60 * +N[1] + +N[2];
|
|
1638
1638
|
return F === 0 ? 0 : y === "+" ? F : -F;
|
|
1639
1639
|
}(g), g === null)) return this;
|
|
1640
1640
|
var j = Math.abs(g) <= 16 ? 60 * g : g;
|
|
1641
1641
|
if (j === 0) return this.utc(w);
|
|
1642
1642
|
var I = this.clone();
|
|
1643
1643
|
if (w) return I.$offset = j, I.$u = !1, I;
|
|
1644
|
-
var
|
|
1645
|
-
return (I = this.local().add(j +
|
|
1644
|
+
var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1645
|
+
return (I = this.local().add(j + h, n)).$offset = j, I.$x.$localOffset = h, I;
|
|
1646
1646
|
};
|
|
1647
1647
|
var $ = a.format;
|
|
1648
1648
|
a.format = function(g) {
|
|
@@ -1658,35 +1658,35 @@ var cn = { exports: {} };
|
|
|
1658
1658
|
}, a.toString = function() {
|
|
1659
1659
|
return this.toDate().toUTCString();
|
|
1660
1660
|
};
|
|
1661
|
-
var
|
|
1661
|
+
var b = a.toDate;
|
|
1662
1662
|
a.toDate = function(g) {
|
|
1663
|
-
return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
1663
|
+
return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : b.call(this);
|
|
1664
1664
|
};
|
|
1665
1665
|
var A = a.diff;
|
|
1666
|
-
a.diff = function(g, w,
|
|
1667
|
-
if (g && this.$u === g.$u) return A.call(this, g, w,
|
|
1666
|
+
a.diff = function(g, w, S) {
|
|
1667
|
+
if (g && this.$u === g.$u) return A.call(this, g, w, S);
|
|
1668
1668
|
var j = this.local(), I = l(g).local();
|
|
1669
|
-
return A.call(j, I, w,
|
|
1669
|
+
return A.call(j, I, w, S);
|
|
1670
1670
|
};
|
|
1671
1671
|
};
|
|
1672
1672
|
});
|
|
1673
1673
|
})(cn);
|
|
1674
|
-
var
|
|
1675
|
-
const
|
|
1676
|
-
_t.extend(
|
|
1677
|
-
_t.extend(
|
|
1678
|
-
_t.extend(
|
|
1674
|
+
var Xo = cn.exports;
|
|
1675
|
+
const er = /* @__PURE__ */ st(Xo);
|
|
1676
|
+
_t.extend(er);
|
|
1677
|
+
_t.extend(Qo);
|
|
1678
|
+
_t.extend(Wo);
|
|
1679
1679
|
const ht = /\$\{([^}]+)\}/g;
|
|
1680
|
-
function
|
|
1680
|
+
function Re(e) {
|
|
1681
1681
|
if (!e)
|
|
1682
1682
|
return [];
|
|
1683
1683
|
const t = /* @__PURE__ */ new Set();
|
|
1684
1684
|
return (e.cascadeDependFields ?? []).forEach((n) => {
|
|
1685
1685
|
const o = String(n ?? "").trim();
|
|
1686
1686
|
o && t.add(o);
|
|
1687
|
-
}),
|
|
1687
|
+
}), tr(e.interface).forEach((n) => t.add(n)), [...t];
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function tr(e) {
|
|
1690
1690
|
if (!e || typeof e != "object")
|
|
1691
1691
|
return [];
|
|
1692
1692
|
const t = e.params;
|
|
@@ -1712,7 +1712,7 @@ function yt(e, t) {
|
|
|
1712
1712
|
!e || typeof e != "object" || Object.values(e).forEach((n) => yt(n, t));
|
|
1713
1713
|
}
|
|
1714
1714
|
function Qe(e) {
|
|
1715
|
-
return
|
|
1715
|
+
return Lt(e.type || e.fieldType || e.frontInputType) || Lt(e.renderType) || "text";
|
|
1716
1716
|
}
|
|
1717
1717
|
function $t(e) {
|
|
1718
1718
|
return Vt(e.type || e.fieldType || e.frontInputType) || Vt(e.renderType) || "text";
|
|
@@ -1737,15 +1737,15 @@ function un(e) {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
function dn(e, t, n = "-") {
|
|
1739
1739
|
const o = $t(e);
|
|
1740
|
-
return o === "empty" || Ce(t) ? n : un(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ?
|
|
1740
|
+
return o === "empty" || Ce(t) ? n : un(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? ur(e, t, n) : o === "switch" ? fn(t) ? "是" : "否" : o === "file" ? dr(t, n) : o === "multi-row" ? fr(t, n) : String(t);
|
|
1741
1741
|
}
|
|
1742
1742
|
function it(e, t) {
|
|
1743
1743
|
return Array.isArray(t) ? t : ct(e) ? typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean) : Ce(t) ? [] : [t] : [t];
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function nr(e, t) {
|
|
1746
1746
|
return ct(e) ? it(e, t) : t;
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function or(e, t) {
|
|
1749
1749
|
return !ct(e) || !Array.isArray(t) ? Ce(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
|
|
1750
1750
|
}
|
|
1751
1751
|
function fn(e) {
|
|
@@ -1755,16 +1755,16 @@ function fn(e) {
|
|
|
1755
1755
|
return ["true", "1", "y", "yes", "t", "是"].includes(t);
|
|
1756
1756
|
}
|
|
1757
1757
|
function lt(e, t, n, o = {}) {
|
|
1758
|
-
const r =
|
|
1759
|
-
return e.filter((i) => i.visible ? !
|
|
1758
|
+
const r = ir(o);
|
|
1759
|
+
return e.filter((i) => i.visible ? !lr(i, t, n, r, o.rows) : !1);
|
|
1760
1760
|
}
|
|
1761
1761
|
function Bt(e) {
|
|
1762
1762
|
return mn(e).some((n) => ["序号", "index", "idx", "seq", "seqno", "serial", "order", "rownum", "row_no"].includes(n));
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Et(e) {
|
|
1765
1765
|
return mn(e).includes("seqno");
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function rr(e) {
|
|
1768
1768
|
return [
|
|
1769
1769
|
e.type,
|
|
1770
1770
|
e.fieldType,
|
|
@@ -1775,9 +1775,9 @@ function or(e) {
|
|
|
1775
1775
|
].some((t) => vn(t) === "attach");
|
|
1776
1776
|
}
|
|
1777
1777
|
function pn(e, t, n = "-") {
|
|
1778
|
-
return !
|
|
1778
|
+
return !rr(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, i) => ar(r, i, n)).filter((r) => !!r);
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function ar(e, t, n) {
|
|
1781
1781
|
if (Ce(e)) return null;
|
|
1782
1782
|
if (typeof e == "string") {
|
|
1783
1783
|
const o = e.trim();
|
|
@@ -1796,10 +1796,10 @@ function rr(e, t, n) {
|
|
|
1796
1796
|
text: e.name || n
|
|
1797
1797
|
};
|
|
1798
1798
|
if (e && typeof e == "object") {
|
|
1799
|
-
const o = e, r =
|
|
1799
|
+
const o = e, r = sr(o, n), i = De(o.url);
|
|
1800
1800
|
if (i) {
|
|
1801
|
-
const l = { url: i }, a = De(o.name), c = De(o.mimeType),
|
|
1802
|
-
return a && (l.name = a), c && (l.mimeType = c),
|
|
1801
|
+
const l = { url: i }, a = De(o.name), c = De(o.mimeType), m = De(o.extension);
|
|
1802
|
+
return a && (l.name = a), c && (l.mimeType = c), m && (l.extension = m), {
|
|
1803
1803
|
key: String(t),
|
|
1804
1804
|
text: r,
|
|
1805
1805
|
action: {
|
|
@@ -1828,13 +1828,13 @@ function rr(e, t, n) {
|
|
|
1828
1828
|
text: String(e).trim() || n
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function sr(e, t) {
|
|
1832
1832
|
return De(e.name) || De(e.fileName) || De(e.filename) || De(e.url) || De(e.fileId) || t;
|
|
1833
1833
|
}
|
|
1834
1834
|
function De(e) {
|
|
1835
1835
|
return String(e ?? "").trim();
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function Lt(e) {
|
|
1838
1838
|
const t = String(e ?? "").toLowerCase();
|
|
1839
1839
|
return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" ? "select" : t === "text" || t === "textarea" || t === "select" || t === "select_remote" || t === "date" || t === "number" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : "";
|
|
1840
1840
|
}
|
|
@@ -1842,10 +1842,10 @@ function Vt(e) {
|
|
|
1842
1842
|
const t = String(e ?? "").toLowerCase();
|
|
1843
1843
|
return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" || t === "select_remote" ? "select" : t === "select" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : t === "textarea" || t === "date" || t === "number" || t === "text" ? "text" : "";
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function ir(e) {
|
|
1846
1846
|
return e.rows?.length ? e.rows : [e.values ?? {}];
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function lr(e, t, n, o, r) {
|
|
1849
1849
|
const i = n?.hiddenRule;
|
|
1850
1850
|
return i ? o.some((s) => {
|
|
1851
1851
|
try {
|
|
@@ -1865,7 +1865,7 @@ function ir(e, t, n, o, r) {
|
|
|
1865
1865
|
}) : !1;
|
|
1866
1866
|
}
|
|
1867
1867
|
function mn(e) {
|
|
1868
|
-
return
|
|
1868
|
+
return cr([
|
|
1869
1869
|
e.id,
|
|
1870
1870
|
e.key,
|
|
1871
1871
|
e.code,
|
|
@@ -1874,13 +1874,13 @@ function mn(e) {
|
|
|
1874
1874
|
e.prop
|
|
1875
1875
|
]);
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function cr(e) {
|
|
1878
1878
|
return Array.from(new Set(e.map((t) => vn(t)).filter(Boolean)));
|
|
1879
1879
|
}
|
|
1880
1880
|
function vn(e) {
|
|
1881
1881
|
return String(e ?? "").trim().toLowerCase();
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function ur(e, t, n) {
|
|
1884
1884
|
const o = ct(e);
|
|
1885
1885
|
if (Array.isArray(t) || o) {
|
|
1886
1886
|
const r = it(e, t).map((s) => Pt(e, s) || String(s ?? "").trim()).filter(Boolean), i = o ? "," : "、";
|
|
@@ -1894,7 +1894,7 @@ function ct(e) {
|
|
|
1894
1894
|
function Pt(e, t) {
|
|
1895
1895
|
return e.options?.find((o) => o.value === t || String(o.value) === String(t))?.label ?? "";
|
|
1896
1896
|
}
|
|
1897
|
-
function
|
|
1897
|
+
function dr(e, t) {
|
|
1898
1898
|
if (Array.isArray(e)) {
|
|
1899
1899
|
const n = e.map((o) => At(o)).filter(Boolean);
|
|
1900
1900
|
return n.length > 0 ? n.join("、") : t;
|
|
@@ -1909,11 +1909,11 @@ function At(e) {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
return String(e ?? "").trim();
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function fr(e, t) {
|
|
1913
1913
|
return Array.isArray(e) ? e.map((o) => un(o) ? (console.error("[globalInfo] multi-row field item render failed", o), "") : Ce(o) ? "" : o && typeof o == "object" ? JSON.stringify(o) : String(o).trim()).filter(Boolean).join(`
|
|
1914
1914
|
`) || t : String(e).trim() || t;
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function pr(e = null) {
|
|
1917
1917
|
return {
|
|
1918
1918
|
scheme: null,
|
|
1919
1919
|
node: null,
|
|
@@ -1927,9 +1927,9 @@ function fr(e = null) {
|
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
1929
1929
|
function jt(e) {
|
|
1930
|
-
const t = In(e), n = wn(t), o =
|
|
1930
|
+
const t = In(e), n = wn(t), o = $r(t).flatMap((r) => Sn(r, n));
|
|
1931
1931
|
return {
|
|
1932
|
-
...
|
|
1932
|
+
...pr(e),
|
|
1933
1933
|
scheme: n,
|
|
1934
1934
|
topNodes: o,
|
|
1935
1935
|
treeNodes: o
|
|
@@ -1941,8 +1941,8 @@ function hn(e, t, n) {
|
|
|
1941
1941
|
children: hn(o.children, t, n)
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1945
|
-
const o = In(e), r = wn(o, t), i =
|
|
1944
|
+
function mr(e, t = {}, n = null) {
|
|
1945
|
+
const o = In(e), r = wn(o, t), i = gr(o, t, n), s = Object.fromEntries(i.map((l) => [l.key, l]));
|
|
1946
1946
|
return {
|
|
1947
1947
|
scheme: r,
|
|
1948
1948
|
node: n,
|
|
@@ -1955,15 +1955,15 @@ function pr(e, t = {}, n = null) {
|
|
|
1955
1955
|
raw: e
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function vr(e) {
|
|
1959
1959
|
return e.multRow || e.htmlDisplay === "T" ? "table" : "form";
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
const n = e.renderType === "table" ? e.rows.map((a) => bt(St(a))) : [bt(St(e.model))], o =
|
|
1961
|
+
function hr(e, t = {}) {
|
|
1962
|
+
const n = e.renderType === "table" ? e.rows.map((a) => bt(St(a))) : [bt(St(e.model))], o = le(e.operationInfo), r = le(o.editInfoSet), i = le(r.params), s = le(o.queryInfoSet), l = le(s.params);
|
|
1963
1963
|
return {
|
|
1964
1964
|
...t,
|
|
1965
|
-
infSchmId: t.infSchmId ??
|
|
1966
|
-
emplid: t.emplid ??
|
|
1965
|
+
infSchmId: t.infSchmId ?? ie(e.raw.infSchmId),
|
|
1966
|
+
emplid: t.emplid ?? ie(e.raw.emplid),
|
|
1967
1967
|
// 保存优先使用接口出参里的信息集挂载 tagId,其次才回退到请求节点 tagId。
|
|
1968
1968
|
tagId: Q(
|
|
1969
1969
|
e.tagId || i.tagId || l.tagId || t.tagId || e.requestTagId
|
|
@@ -1983,58 +1983,58 @@ function bt(e) {
|
|
|
1983
1983
|
function gn(e) {
|
|
1984
1984
|
return e === "" ? null : Array.isArray(e) ? e.map(gn) : e && typeof e == "object" ? bt(e) : e;
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function qa(e) {
|
|
1987
1987
|
const t = e;
|
|
1988
1988
|
return !!(t && typeof t == "object" && typeof t.key == "string" && typeof t.tagId == "string");
|
|
1989
1989
|
}
|
|
1990
1990
|
function yn(e) {
|
|
1991
1991
|
const t = _n(e);
|
|
1992
|
-
return (Array.isArray(t) ? t : Je(
|
|
1993
|
-
const r =
|
|
1992
|
+
return (Array.isArray(t) ? t : Je(le(t), ["options", "list", "records", "data"])).map((o) => {
|
|
1993
|
+
const r = le(o), i = r.fieldvalue ?? r.fieldValue;
|
|
1994
1994
|
return {
|
|
1995
1995
|
id: r.id,
|
|
1996
1996
|
code: r.code ?? i ?? r.value ?? r.id,
|
|
1997
1997
|
label: Q(r.label ?? r.name ?? r.descr ?? r.descrshort ?? r.text ?? i ?? r.value ?? r.code),
|
|
1998
|
-
name:
|
|
1998
|
+
name: ie(r.name),
|
|
1999
1999
|
value: r.value ?? i ?? r.code ?? r.id ?? r.label ?? r.name,
|
|
2000
2000
|
raw: o
|
|
2001
2001
|
};
|
|
2002
2002
|
});
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2004
|
+
function gr(e, t, n) {
|
|
2005
2005
|
const o = Je(e, ["sections", "sets", "list"]);
|
|
2006
2006
|
return o.length > 0 ? o.map((r) => Nt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [Nt(e, t, n, !0)] : [];
|
|
2007
2007
|
}
|
|
2008
2008
|
function Nt(e, t, n, o) {
|
|
2009
|
-
const r =
|
|
2010
|
-
r.tagId ?? r.infTagId ??
|
|
2011
|
-
),
|
|
2012
|
-
key:
|
|
2013
|
-
id:
|
|
2014
|
-
setId:
|
|
2015
|
-
code:
|
|
2016
|
-
tagId:
|
|
2017
|
-
requestTagId:
|
|
2018
|
-
ownerNodeKey:
|
|
2019
|
-
infSetId:
|
|
2020
|
-
title: i.name || Q(r.name ?? n?.tagName ??
|
|
2021
|
-
renderType:
|
|
2009
|
+
const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = vr(i), a = wr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : bn(s), m = le(r.tag), _ = Q(
|
|
2010
|
+
r.tagId ?? r.infTagId ?? m.tagId ?? m.infTagId ?? i.raw.tagId ?? i.raw.infTagId
|
|
2011
|
+
), $ = Q(t.tagId ?? n?.tagId), b = Q(n?.key), A = o ? t.infSetId ?? n?.infSetId : void 0, g = o ? t.setId : void 0, w = o ? n?.code : void 0, S = i.setId || Q(r.setId), j = Q(r.infSetId) || S || Q(A), I = S || Q(g ?? j), h = i.code || Q(r.code ?? w ?? I), T = I || h || j || _, p = {
|
|
2012
|
+
key: T,
|
|
2013
|
+
id: T,
|
|
2014
|
+
setId: I,
|
|
2015
|
+
code: h,
|
|
2016
|
+
tagId: _,
|
|
2017
|
+
requestTagId: $ || void 0,
|
|
2018
|
+
ownerNodeKey: b || void 0,
|
|
2019
|
+
infSetId: j,
|
|
2020
|
+
title: i.name || Q(r.name ?? n?.tagName ?? T),
|
|
2021
|
+
renderType: l,
|
|
2022
2022
|
mark: i,
|
|
2023
2023
|
fields: s,
|
|
2024
|
-
model:
|
|
2025
|
-
rows:
|
|
2024
|
+
model: c,
|
|
2025
|
+
rows: a,
|
|
2026
2026
|
operationInfo: ut(t.operationInfo ?? r.operationInfo),
|
|
2027
2027
|
raw: r
|
|
2028
2028
|
};
|
|
2029
|
-
return
|
|
2029
|
+
return p.renderType === "form" && a.length === 0 && (p.rows = [{ ...c, __rowKey: `${T}-0` }]), p;
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2032
|
-
const t =
|
|
2031
|
+
function yr(e) {
|
|
2032
|
+
const t = le(e), n = Q(t.htmlDisplay || "F");
|
|
2033
2033
|
return {
|
|
2034
2034
|
name: Q(t.name ?? t.title),
|
|
2035
|
-
parentName:
|
|
2036
|
-
value:
|
|
2037
|
-
type:
|
|
2035
|
+
parentName: ie(t.parentName),
|
|
2036
|
+
value: ie(t.value),
|
|
2037
|
+
type: ie(t.type),
|
|
2038
2038
|
code: Q(t.code),
|
|
2039
2039
|
setId: Q(t.setId ?? t.id ?? t.key),
|
|
2040
2040
|
htmlDisplay: n,
|
|
@@ -2043,21 +2043,21 @@ function gr(e) {
|
|
|
2043
2043
|
raw: t
|
|
2044
2044
|
};
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2047
|
-
return (Array.isArray(e) ? e : []).map((n, o) =>
|
|
2046
|
+
function br(e) {
|
|
2047
|
+
return (Array.isArray(e) ? e : []).map((n, o) => Sr(n, o));
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2050
|
-
const n =
|
|
2049
|
+
function Sr(e, t) {
|
|
2050
|
+
const n = le(e), o = Q(n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`), r = Q(n.label ?? n.name ?? n.tagName ?? o), i = $n(n.interface ?? n.interfaceField), s = Rt(n.cascadeDependFields);
|
|
2051
2051
|
return {
|
|
2052
2052
|
id: Q(n.id ?? n.key ?? n.prop ?? o),
|
|
2053
2053
|
key: Q(n.key ?? n.prop ?? o),
|
|
2054
2054
|
code: o,
|
|
2055
2055
|
label: r,
|
|
2056
2056
|
value: n.value ?? n.defaultValue ?? "",
|
|
2057
|
-
type:
|
|
2058
|
-
fieldType:
|
|
2059
|
-
frontInputType:
|
|
2060
|
-
renderType:
|
|
2057
|
+
type: Mr(n),
|
|
2058
|
+
fieldType: ie(n.fieldType),
|
|
2059
|
+
frontInputType: ie(n.frontInputType),
|
|
2060
|
+
renderType: kr(n),
|
|
2061
2061
|
required: $e(n.required ?? n.isRequired),
|
|
2062
2062
|
readonly: $e(n.readonly ?? n.disabled),
|
|
2063
2063
|
visible: n.visible === void 0 ? $e(n.visibled ?? !0) : $e(n.visible),
|
|
@@ -2066,38 +2066,38 @@ function br(e, t) {
|
|
|
2066
2066
|
isRequired: $e(n.isRequired),
|
|
2067
2067
|
disabled: n.disabled === void 0 ? void 0 : $e(n.disabled),
|
|
2068
2068
|
span: Mn(n.span ?? n.colSpan),
|
|
2069
|
-
width:
|
|
2070
|
-
minWidth:
|
|
2071
|
-
placeholder:
|
|
2069
|
+
width: zt(n.width),
|
|
2070
|
+
minWidth: zt(n.minWidth),
|
|
2071
|
+
placeholder: ie(n.placeholder),
|
|
2072
2072
|
options: yn(n.options),
|
|
2073
2073
|
interface: i,
|
|
2074
|
-
cascadeClearFields:
|
|
2075
|
-
cascadeDependFields:
|
|
2074
|
+
cascadeClearFields: Rt(n.cascadeClearFields),
|
|
2075
|
+
cascadeDependFields: Re({
|
|
2076
2076
|
cascadeDependFields: s,
|
|
2077
2077
|
interface: i
|
|
2078
2078
|
}),
|
|
2079
|
-
props:
|
|
2079
|
+
props: Tr(n),
|
|
2080
2080
|
formItemProps: Cn(n.formItemProps),
|
|
2081
2081
|
raw: n
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
if (Array.isArray(e) && e.some((
|
|
2086
|
-
const
|
|
2087
|
-
return t.some((
|
|
2084
|
+
function wr(e, t, n) {
|
|
2085
|
+
if (Array.isArray(e) && e.some((i) => {
|
|
2086
|
+
const s = le(i);
|
|
2087
|
+
return t.some((l) => s[l.code] !== void 0 || s[l.key] !== void 0);
|
|
2088
2088
|
}))
|
|
2089
|
-
return e.map((
|
|
2090
|
-
const
|
|
2091
|
-
return Object.keys(
|
|
2089
|
+
return e.map((i, s) => ({ ...le(i), __rowKey: Q(le(i).__rowKey ?? le(i).key ?? s) }));
|
|
2090
|
+
const o = bn(t);
|
|
2091
|
+
return n === "form" && Object.keys(o).length ? [{ ...o, __rowKey: "0" }] : [];
|
|
2092
2092
|
}
|
|
2093
2093
|
function bn(e) {
|
|
2094
2094
|
return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
|
|
2095
2095
|
}
|
|
2096
2096
|
function Sn(e, t, n = "") {
|
|
2097
|
-
const o =
|
|
2098
|
-
return r.length === 0 && i.length > 0 ? i.map((s, l) =>
|
|
2097
|
+
const o = le(e), r = Je(o, ["children", "list", "tags"]).flatMap((s) => Sn(s, t, Q(o.tagId ?? o.id ?? o.key))), i = Cr(o.infSetList);
|
|
2098
|
+
return r.length === 0 && i.length > 0 ? i.map((s, l) => _r(o, s, t, n, l)) : [Ir(o, t, n, r)];
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function Ir(e, t, n, o) {
|
|
2101
2101
|
const r = Q(e.tagId ?? e.id ?? e.key), i = Q(e.tagName ?? e.name ?? e.label ?? r);
|
|
2102
2102
|
return {
|
|
2103
2103
|
key: Q(e.key ?? r),
|
|
@@ -2105,15 +2105,15 @@ function wr(e, t, n, o) {
|
|
|
2105
2105
|
tagId: r,
|
|
2106
2106
|
tagName: i,
|
|
2107
2107
|
label: i,
|
|
2108
|
-
tagLevel:
|
|
2108
|
+
tagLevel: ie(e.tagLevel ?? e.level) ?? null,
|
|
2109
2109
|
level: kn(e.tagLevel ?? e.level),
|
|
2110
|
-
parentTagId:
|
|
2111
|
-
parentId:
|
|
2112
|
-
infSchmId:
|
|
2110
|
+
parentTagId: ie(e.parentTagId ?? e.parentId ?? n),
|
|
2111
|
+
parentId: ie(e.parentTagId ?? e.parentId ?? n) ?? null,
|
|
2112
|
+
infSchmId: ie(e.infSchmId ?? t?.infSchmId),
|
|
2113
2113
|
schemeId: Q(e.infSchmId ?? t?.infSchmId),
|
|
2114
|
-
infSetId:
|
|
2115
|
-
setId:
|
|
2116
|
-
code:
|
|
2114
|
+
infSetId: ie(e.infSetId ?? e.setId),
|
|
2115
|
+
setId: ie(e.setId),
|
|
2116
|
+
code: ie(e.code),
|
|
2117
2117
|
children: o,
|
|
2118
2118
|
infSetList: [],
|
|
2119
2119
|
operationInfo: ut(e.operationInfo),
|
|
@@ -2121,23 +2121,23 @@ function wr(e, t, n, o) {
|
|
|
2121
2121
|
raw: e
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2125
|
-
const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`,
|
|
2124
|
+
function _r(e, t, n, o, r) {
|
|
2125
|
+
const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`, m = t.code || ie(e.code ?? l);
|
|
2126
2126
|
return {
|
|
2127
2127
|
key: c,
|
|
2128
2128
|
id: c,
|
|
2129
2129
|
tagId: i,
|
|
2130
2130
|
tagName: s,
|
|
2131
2131
|
label: s,
|
|
2132
|
-
tagLevel:
|
|
2132
|
+
tagLevel: ie(e.tagLevel ?? e.level) ?? null,
|
|
2133
2133
|
level: kn(e.tagLevel ?? e.level),
|
|
2134
|
-
parentTagId:
|
|
2135
|
-
parentId:
|
|
2136
|
-
infSchmId:
|
|
2134
|
+
parentTagId: ie(e.parentTagId ?? e.parentId ?? o),
|
|
2135
|
+
parentId: ie(e.parentTagId ?? e.parentId ?? o) ?? null,
|
|
2136
|
+
infSchmId: ie(e.infSchmId ?? n?.infSchmId),
|
|
2137
2137
|
schemeId: Q(e.infSchmId ?? n?.infSchmId),
|
|
2138
2138
|
infSetId: l,
|
|
2139
2139
|
setId: a,
|
|
2140
|
-
code:
|
|
2140
|
+
code: m,
|
|
2141
2141
|
children: [],
|
|
2142
2142
|
infSetList: [t],
|
|
2143
2143
|
operationInfo: ut(e.operationInfo),
|
|
@@ -2151,7 +2151,7 @@ function Ir(e, t, n, o, r) {
|
|
|
2151
2151
|
};
|
|
2152
2152
|
}
|
|
2153
2153
|
function wn(e, t = {}) {
|
|
2154
|
-
const n =
|
|
2154
|
+
const n = le(e.globalInfoSchmMark ?? e.scheme ?? e), o = Q(n.infSchmId ?? t.infSchmId), r = Q(n.emplid ?? t.emplid);
|
|
2155
2155
|
return !o && !r && Object.keys(n).length === 0 ? null : {
|
|
2156
2156
|
infSchmId: o,
|
|
2157
2157
|
emplid: r,
|
|
@@ -2161,30 +2161,30 @@ function wn(e, t = {}) {
|
|
|
2161
2161
|
raw: n
|
|
2162
2162
|
};
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function $r(e) {
|
|
2165
2165
|
if (Array.isArray(e.globalInfoSchmConfig))
|
|
2166
2166
|
return e.globalInfoSchmConfig;
|
|
2167
|
-
const t =
|
|
2167
|
+
const t = le(e.globalInfoSchmConfig), n = Je(t, ["children", "tree", "list", "tags"]);
|
|
2168
2168
|
return n.length ? n : Je(e, ["children", "tree", "list", "tags", "records"]);
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function Cr(e) {
|
|
2171
2171
|
return Array.isArray(e) ? e.map((t) => {
|
|
2172
|
-
const n =
|
|
2172
|
+
const n = le(t);
|
|
2173
2173
|
return {
|
|
2174
2174
|
infSetId: Q(n.infSetId ?? n.setId ?? n.id),
|
|
2175
|
-
setId:
|
|
2175
|
+
setId: ie(n.setId),
|
|
2176
2176
|
// 信息集列表里的 code 是页面 section 插槽接管点,必须从树接口阶段保留下来。
|
|
2177
|
-
code:
|
|
2177
|
+
code: ie(n.code),
|
|
2178
2178
|
operationInfo: ut(n.operationInfo),
|
|
2179
2179
|
raw: n
|
|
2180
2180
|
};
|
|
2181
2181
|
}) : [];
|
|
2182
2182
|
}
|
|
2183
2183
|
function In(e) {
|
|
2184
|
-
return
|
|
2184
|
+
return le(_n(e));
|
|
2185
2185
|
}
|
|
2186
2186
|
function _n(e) {
|
|
2187
|
-
const t =
|
|
2187
|
+
const t = le(e);
|
|
2188
2188
|
return t.data ?? t.result ?? e;
|
|
2189
2189
|
}
|
|
2190
2190
|
function Je(e, t) {
|
|
@@ -2200,58 +2200,58 @@ function St(e) {
|
|
|
2200
2200
|
return delete t.__rowKey, delete t.fields, t;
|
|
2201
2201
|
}
|
|
2202
2202
|
function $n(e) {
|
|
2203
|
-
const t =
|
|
2203
|
+
const t = le(e);
|
|
2204
2204
|
if (!(!t.method && !t.url && !t.params))
|
|
2205
2205
|
return {
|
|
2206
2206
|
...t,
|
|
2207
|
-
method:
|
|
2208
|
-
url:
|
|
2207
|
+
method: ie(t.method),
|
|
2208
|
+
url: ie(t.url),
|
|
2209
2209
|
params: Cn(t.params)
|
|
2210
2210
|
};
|
|
2211
2211
|
}
|
|
2212
2212
|
function ut(e) {
|
|
2213
|
-
const t =
|
|
2213
|
+
const t = le(e);
|
|
2214
2214
|
if (Object.keys(t).length !== 0)
|
|
2215
2215
|
return Object.fromEntries(
|
|
2216
2216
|
Object.entries(t).map(([n, o]) => [n, $n(o) ?? o])
|
|
2217
2217
|
);
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function Rt(e) {
|
|
2220
2220
|
if (!Array.isArray(e))
|
|
2221
2221
|
return;
|
|
2222
2222
|
const t = e.map((n) => Q(n)).filter(Boolean);
|
|
2223
2223
|
return t.length ? t : void 0;
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function kr(e) {
|
|
2226
2226
|
if ($e(e.htmlDisplay)) return "html";
|
|
2227
2227
|
if ($e(e.multRow)) return "multi-row";
|
|
2228
2228
|
const t = Q(e.renderType).toLowerCase();
|
|
2229
2229
|
return t === "code" || t === "empty" ? t : "text";
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function Mr(e) {
|
|
2232
2232
|
const t = Q(e.fieldType ?? e.type ?? e.frontInputType ?? e.renderType).toLowerCase();
|
|
2233
2233
|
return t === "dtpicker" || t.includes("date") ? "date" : t === "select_remote" ? "select_remote" : t.includes("select") || t.includes("enum") || t.includes("radio") || t.includes("checkbox") ? "select" : t.includes("number") || t.includes("int") ? "number" : t.includes("bool") || t.includes("switch") ? "switch" : t.includes("file") || t.includes("upload") || t.includes("attachment") || t === "attach" ? "file" : t.includes("textarea") || t.includes("text_area") ? "textarea" : "text";
|
|
2234
2234
|
}
|
|
2235
2235
|
function Cn(e) {
|
|
2236
|
-
const t =
|
|
2236
|
+
const t = le(e);
|
|
2237
2237
|
return Object.keys(t).length ? t : void 0;
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function Tr(e) {
|
|
2240
2240
|
const t = {
|
|
2241
|
-
...
|
|
2241
|
+
...le(e.props)
|
|
2242
2242
|
};
|
|
2243
2243
|
return e.multiple !== void 0 && (t.multiple = $e(e.multiple)), Object.keys(t).length ? t : void 0;
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function zt(e) {
|
|
2246
2246
|
return typeof e == "string" || typeof e == "number" ? e : void 0;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function le(e) {
|
|
2249
2249
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
2250
2250
|
}
|
|
2251
2251
|
function Q(e) {
|
|
2252
2252
|
return e == null ? "" : String(e).trim();
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function ie(e) {
|
|
2255
2255
|
return Q(e) || void 0;
|
|
2256
2256
|
}
|
|
2257
2257
|
function kn(e) {
|
|
@@ -2266,7 +2266,7 @@ function Mn(e) {
|
|
|
2266
2266
|
function $e(e) {
|
|
2267
2267
|
return typeof e == "string" ? ["true", "1", "y", "yes", "t", "是"].includes(e.toLowerCase()) : !!e;
|
|
2268
2268
|
}
|
|
2269
|
-
const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId,
|
|
2269
|
+
const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Or = (e) => String(e ?? "").trim(), Xe = (e) => Array.from(new Set(e.map(Or).filter(Boolean))), Ke = (e) => !!(e && typeof e == "object" && "children" in e), We = (e) => Xe([
|
|
2270
2270
|
e?.key,
|
|
2271
2271
|
e?.id,
|
|
2272
2272
|
e?.setId,
|
|
@@ -2275,7 +2275,7 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Tr = (e) => Str
|
|
|
2275
2275
|
e?.code,
|
|
2276
2276
|
...(e?.infSetList ?? []).map((t) => t.infSetId),
|
|
2277
2277
|
...(e?.infSetList ?? []).map((t) => t.setId)
|
|
2278
|
-
]),
|
|
2278
|
+
]), Dr = (e) => Xe([
|
|
2279
2279
|
e.key,
|
|
2280
2280
|
e.id,
|
|
2281
2281
|
e.setId,
|
|
@@ -2284,14 +2284,14 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Tr = (e) => Str
|
|
|
2284
2284
|
e.code
|
|
2285
2285
|
]);
|
|
2286
2286
|
function Tn(e, t, n) {
|
|
2287
|
-
const o =
|
|
2287
|
+
const o = Dr(e), r = Xe([n, ...We(t)]);
|
|
2288
2288
|
return r.length === 0 ? !1 : r.some((i) => o.includes(i));
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function Fr(e, t, n) {
|
|
2291
2291
|
return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) => Tn(r, t, n));
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2294
|
-
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), i = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, l =
|
|
2293
|
+
function Br(e, t, n = {}) {
|
|
2294
|
+
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), i = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, l = Re(i).some((a) => {
|
|
2295
2295
|
if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !Lr(e, a))
|
|
2296
2296
|
return !1;
|
|
2297
2297
|
const c = o[a];
|
|
@@ -2305,31 +2305,31 @@ function Fr(e, t, n = {}) {
|
|
|
2305
2305
|
missingDependField: l
|
|
2306
2306
|
};
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2309
|
-
return !!(e && e.type !== "select_remote" &&
|
|
2308
|
+
function Er(e) {
|
|
2309
|
+
return !!(e && e.type !== "select_remote" && Re(e).length === 0 && (e.options ?? []).length > 0);
|
|
2310
2310
|
}
|
|
2311
2311
|
function Lr(e, t) {
|
|
2312
2312
|
return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Ve(n) === t);
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function Vr(e) {
|
|
2315
2315
|
return yn(e);
|
|
2316
2316
|
}
|
|
2317
2317
|
const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, nt = (e) => {
|
|
2318
2318
|
const t = Te(e);
|
|
2319
2319
|
return !!(t.url || t.method || t.params);
|
|
2320
2320
|
};
|
|
2321
|
-
function
|
|
2321
|
+
function Pr(e) {
|
|
2322
2322
|
const t = Te(e.operationInfo).openTag;
|
|
2323
2323
|
return nt(t) ? t : void 0;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Ar(e, t, n) {
|
|
2326
2326
|
const o = Te(e?.operationInfo).queryInfoSet;
|
|
2327
2327
|
if (nt(o))
|
|
2328
2328
|
return o;
|
|
2329
2329
|
const r = t?.infSetList.find((s) => s.infSetId === n), i = Te(r?.operationInfo).queryInfoSet;
|
|
2330
2330
|
return nt(i) ? i : void 0;
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function jr(e) {
|
|
2333
2333
|
const t = Te(e.operationInfo).editInfoSet;
|
|
2334
2334
|
return nt(t) ? t : void 0;
|
|
2335
2335
|
}
|
|
@@ -2357,7 +2357,7 @@ async function On(e) {
|
|
|
2357
2357
|
params: t
|
|
2358
2358
|
});
|
|
2359
2359
|
}
|
|
2360
|
-
async function
|
|
2360
|
+
async function Nr(e) {
|
|
2361
2361
|
if (!e.service.requestOperation)
|
|
2362
2362
|
throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");
|
|
2363
2363
|
const t = e.operation.params === void 0 ? void 0 : Te(e.operation.params), n = e.context?.params === void 0 ? t : Te(e.context.params), o = await On({
|
|
@@ -2383,7 +2383,7 @@ async function jr(e) {
|
|
|
2383
2383
|
e.context ? { ...e.context, params: o } : e.context
|
|
2384
2384
|
);
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function Ue(e = {}) {
|
|
2387
2387
|
return {
|
|
2388
2388
|
// loading:当前 section 是否正在拉详情。
|
|
2389
2389
|
loading: !1,
|
|
@@ -2399,18 +2399,18 @@ function He(e = {}) {
|
|
|
2399
2399
|
...e
|
|
2400
2400
|
};
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2403
|
-
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i =
|
|
2402
|
+
function Rr(e) {
|
|
2403
|
+
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = Fr(e.nextViewModel.sections, e.node, e.targetKey), s = Xe([e.targetKey, ...We(e.node)]).length > 0, l = i.find((a) => Tn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? i[0] ?? e.activeSection ?? null);
|
|
2404
2404
|
return i.forEach((a) => {
|
|
2405
2405
|
const c = ke(a);
|
|
2406
|
-
t[c] = a, o.includes(c) || o.push(c), r[c] =
|
|
2406
|
+
t[c] = a, o.includes(c) || o.push(c), r[c] = Ue({
|
|
2407
2407
|
...r[c],
|
|
2408
2408
|
loaded: !0,
|
|
2409
2409
|
loading: !1,
|
|
2410
2410
|
error: null,
|
|
2411
2411
|
editing: e.editingSectionKeys.includes(c)
|
|
2412
2412
|
});
|
|
2413
|
-
}), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] =
|
|
2413
|
+
}), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = Ue({
|
|
2414
2414
|
...r[e.targetKey],
|
|
2415
2415
|
loaded: !0,
|
|
2416
2416
|
loading: !1,
|
|
@@ -2425,7 +2425,17 @@ function Nr(e) {
|
|
|
2425
2425
|
targetSections: i
|
|
2426
2426
|
};
|
|
2427
2427
|
}
|
|
2428
|
-
const
|
|
2428
|
+
const Dn = "信息集不能为空,最后一条数据不可删除";
|
|
2429
|
+
function zr(e, t = [], n = {}) {
|
|
2430
|
+
return !e.mark.isRequired || t.length > 0 ? null : xr(
|
|
2431
|
+
n.emptyMessage,
|
|
2432
|
+
{ section: e, infSetValues: t }
|
|
2433
|
+
) || Dn;
|
|
2434
|
+
}
|
|
2435
|
+
function xr(e, t) {
|
|
2436
|
+
return typeof e == "function" ? e(t) : typeof e == "string" ? e : Dn;
|
|
2437
|
+
}
|
|
2438
|
+
const Ne = (e) => new Error(`[GlobalInfo] ${e}`), qr = (e) => [
|
|
2429
2439
|
String(e.method ?? "").toLowerCase(),
|
|
2430
2440
|
String(e.url ?? ""),
|
|
2431
2441
|
wt(Te(e.params))
|
|
@@ -2433,8 +2443,8 @@ const Ne = (e) => new Error(`[GlobalInfo] ${e}`), zr = (e) => [
|
|
|
2433
2443
|
function wt(e) {
|
|
2434
2444
|
return Array.isArray(e) ? `[${e.map((t) => wt(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${wt(o)}`).join(",")}}` : JSON.stringify(e);
|
|
2435
2445
|
}
|
|
2436
|
-
const
|
|
2437
|
-
const t =
|
|
2446
|
+
const Gr = (e) => {
|
|
2447
|
+
const t = he(!1), n = he(!1), o = he(!1), r = Pe(null), i = Pe([]), s = Pe(null), l = Pe(null), a = Pe(null), c = Pe({}), m = Pe({}), _ = he([]), $ = Pe({}), b = he([]), A = V(
|
|
2438
2448
|
() => {
|
|
2439
2449
|
const f = _.value.map((M) => c.value[M]).filter((M) => !!M), d = Object.entries(c.value).filter(([M]) => !_.value.includes(M)).map(([, M]) => M);
|
|
2440
2450
|
return [...f, ...d];
|
|
@@ -2447,7 +2457,7 @@ const Rr = (e) => {
|
|
|
2447
2457
|
// 当前是否正在保存。
|
|
2448
2458
|
saving: o.value,
|
|
2449
2459
|
// 当前所有编辑中的 section key。
|
|
2450
|
-
editingSectionKeys:
|
|
2460
|
+
editingSectionKeys: b.value,
|
|
2451
2461
|
// 已加载 section 映射。
|
|
2452
2462
|
sectionMap: c.value,
|
|
2453
2463
|
// section 状态映射;这里把 alias 后的编辑态也同步进去。
|
|
@@ -2458,8 +2468,8 @@ const Rr = (e) => {
|
|
|
2458
2468
|
// 保留原状态字段。
|
|
2459
2469
|
...d,
|
|
2460
2470
|
// 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
|
|
2461
|
-
editing:
|
|
2462
|
-
|
|
2471
|
+
editing: b.value.includes(
|
|
2472
|
+
m.value[f] ?? f
|
|
2463
2473
|
)
|
|
2464
2474
|
}
|
|
2465
2475
|
])
|
|
@@ -2471,7 +2481,7 @@ const Rr = (e) => {
|
|
|
2471
2481
|
adaptScene: e.adaptScene,
|
|
2472
2482
|
// emplid 是当前人员标识,树和详情接口都需要它。
|
|
2473
2483
|
emplid: e.emplid
|
|
2474
|
-
}),
|
|
2484
|
+
}), S = (f) => ({
|
|
2475
2485
|
// 复用基础参数,保证人员和场景一致。
|
|
2476
2486
|
...w(),
|
|
2477
2487
|
// infSchmId 指定当前模板方案。
|
|
@@ -2493,7 +2503,7 @@ const Rr = (e) => {
|
|
|
2493
2503
|
infSetId: d?.infSetId ?? f?.infSetId,
|
|
2494
2504
|
// setId 同样优先取 section,避免保存时拿错节点 setId。
|
|
2495
2505
|
setId: d?.setId ?? f?.setId
|
|
2496
|
-
}), I = async (f, d) =>
|
|
2506
|
+
}), I = async (f, d) => Nr({
|
|
2497
2507
|
service: e.service,
|
|
2498
2508
|
formatter: e.formatOperationParams,
|
|
2499
2509
|
operation: f,
|
|
@@ -2502,13 +2512,13 @@ const Rr = (e) => {
|
|
|
2502
2512
|
sections: A.value,
|
|
2503
2513
|
activeNode: l.value,
|
|
2504
2514
|
activeSection: a.value
|
|
2505
|
-
}),
|
|
2515
|
+
}), h = Uo(
|
|
2506
2516
|
async (f, d) => {
|
|
2507
2517
|
if (!e.service.requestOperation)
|
|
2508
2518
|
throw Ne("service.requestOperation is required");
|
|
2509
2519
|
return e.service.requestOperation(f, d);
|
|
2510
2520
|
},
|
|
2511
|
-
(f) =>
|
|
2521
|
+
(f) => qr(f)
|
|
2512
2522
|
), T = async (f, d) => {
|
|
2513
2523
|
const M = await On({
|
|
2514
2524
|
formatter: e.formatOperationParams,
|
|
@@ -2527,74 +2537,74 @@ const Rr = (e) => {
|
|
|
2527
2537
|
activeNode: l.value,
|
|
2528
2538
|
activeSection: a.value,
|
|
2529
2539
|
searchText: d?.searchText
|
|
2530
|
-
}),
|
|
2531
|
-
return
|
|
2532
|
-
},
|
|
2540
|
+
}), K = { ...f, params: M }, W = d && { ...d, params: M };
|
|
2541
|
+
return h(K, W);
|
|
2542
|
+
}, p = (f, d) => {
|
|
2533
2543
|
if (!d)
|
|
2534
2544
|
return f[0] ?? null;
|
|
2535
2545
|
for (const M of f) {
|
|
2536
2546
|
if (We(M).includes(d))
|
|
2537
2547
|
return M;
|
|
2538
|
-
const
|
|
2539
|
-
if (
|
|
2540
|
-
return
|
|
2548
|
+
const K = p(M.children, d);
|
|
2549
|
+
if (K)
|
|
2550
|
+
return K;
|
|
2541
2551
|
}
|
|
2542
2552
|
return null;
|
|
2543
2553
|
}, N = (f = a.value) => {
|
|
2544
2554
|
if (f)
|
|
2545
|
-
return typeof f == "string" ? f :
|
|
2555
|
+
return typeof f == "string" ? f : Ke(f) ? O(f) : ke(f);
|
|
2546
2556
|
}, y = (f = a.value) => {
|
|
2547
2557
|
const d = N(f);
|
|
2548
2558
|
if (!d)
|
|
2549
2559
|
return null;
|
|
2550
|
-
const M =
|
|
2560
|
+
const M = m.value[d] ?? d;
|
|
2551
2561
|
return c.value[M] ?? null;
|
|
2552
2562
|
}, F = (f = a.value) => {
|
|
2553
2563
|
const d = N(f);
|
|
2554
2564
|
if (d)
|
|
2555
|
-
return
|
|
2565
|
+
return m.value[d] ?? d;
|
|
2556
2566
|
}, O = (f = a.value) => {
|
|
2557
2567
|
if (f)
|
|
2558
|
-
return typeof f == "string" ? f :
|
|
2559
|
-
},
|
|
2560
|
-
if (
|
|
2568
|
+
return typeof f == "string" ? f : Ke(f) ? f.setId ?? f.infSetId ?? f.key : ke(f);
|
|
2569
|
+
}, z = (f = a.value) => {
|
|
2570
|
+
if (Ke(f))
|
|
2561
2571
|
return f;
|
|
2562
2572
|
if (typeof f == "string") {
|
|
2563
|
-
const d =
|
|
2573
|
+
const d = p(i.value, f);
|
|
2564
2574
|
if (d)
|
|
2565
2575
|
return d;
|
|
2566
2576
|
const M = y(f);
|
|
2567
|
-
return M?.ownerNodeKey ?
|
|
2577
|
+
return M?.ownerNodeKey ? p(i.value, M.ownerNodeKey) ?? l.value : M || l.value && We(l.value).includes(f) ? l.value : null;
|
|
2568
2578
|
}
|
|
2569
|
-
return f?.ownerNodeKey ?
|
|
2570
|
-
}, ne = (f = a.value) => !f ||
|
|
2579
|
+
return f?.ownerNodeKey ? p(i.value, f.ownerNodeKey) ?? l.value : l.value;
|
|
2580
|
+
}, ne = (f = a.value) => !f || Ke(f) ? null : y(f), x = (f = a.value) => {
|
|
2571
2581
|
const d = O(f);
|
|
2572
2582
|
if (!d)
|
|
2573
|
-
return
|
|
2574
|
-
const M =
|
|
2575
|
-
return
|
|
2583
|
+
return Ue();
|
|
2584
|
+
const M = m.value[d] ?? d;
|
|
2585
|
+
return Ue({
|
|
2576
2586
|
...$.value[d],
|
|
2577
2587
|
...$.value[M],
|
|
2578
2588
|
// 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
|
|
2579
|
-
editing:
|
|
2589
|
+
editing: b.value.includes(
|
|
2580
2590
|
M
|
|
2581
2591
|
)
|
|
2582
2592
|
});
|
|
2583
|
-
},
|
|
2593
|
+
}, R = (f, d) => {
|
|
2584
2594
|
const M = O(f);
|
|
2585
2595
|
M && ($.value = {
|
|
2586
2596
|
...$.value,
|
|
2587
|
-
[M]:
|
|
2597
|
+
[M]: Ue({
|
|
2588
2598
|
// 保留已有状态。
|
|
2589
2599
|
...$.value[M],
|
|
2590
2600
|
// 合并本次状态补丁。
|
|
2591
2601
|
...d,
|
|
2592
2602
|
// 编辑态仍以 editingSectionKeys 为准。
|
|
2593
|
-
editing:
|
|
2603
|
+
editing: b.value.includes(M)
|
|
2594
2604
|
})
|
|
2595
2605
|
});
|
|
2596
2606
|
}, D = (f = s.value?.raw ?? null, d = l.value) => {
|
|
2597
|
-
const M = A.value,
|
|
2607
|
+
const M = A.value, K = a.value && M.find(
|
|
2598
2608
|
(W) => ke(W) === ke(a.value)
|
|
2599
2609
|
) ? a.value : null;
|
|
2600
2610
|
s.value = {
|
|
@@ -2608,65 +2618,65 @@ const Rr = (e) => {
|
|
|
2608
2618
|
// 当前激活节点。
|
|
2609
2619
|
activeNode: d,
|
|
2610
2620
|
// 当前激活 section。
|
|
2611
|
-
activeSection:
|
|
2621
|
+
activeSection: K,
|
|
2612
2622
|
// 当前所有已加载 section。
|
|
2613
2623
|
sections: M,
|
|
2614
2624
|
// 当前 section 缓存。
|
|
2615
2625
|
sectionMap: c.value,
|
|
2616
2626
|
// 保留原始接口数据。
|
|
2617
2627
|
raw: f
|
|
2618
|
-
}, a.value =
|
|
2628
|
+
}, a.value = K;
|
|
2619
2629
|
}, B = (f, d = l.value, M) => {
|
|
2620
|
-
const
|
|
2630
|
+
const K = Rr({
|
|
2621
2631
|
currentMap: c.value,
|
|
2622
|
-
currentAliasMap:
|
|
2632
|
+
currentAliasMap: m.value,
|
|
2623
2633
|
currentOrder: _.value,
|
|
2624
2634
|
currentStatusMap: $.value,
|
|
2625
|
-
editingSectionKeys:
|
|
2635
|
+
editingSectionKeys: b.value,
|
|
2626
2636
|
nextViewModel: f,
|
|
2627
2637
|
node: d,
|
|
2628
2638
|
targetKey: M,
|
|
2629
2639
|
activeSection: a.value
|
|
2630
2640
|
});
|
|
2631
|
-
return c.value =
|
|
2641
|
+
return c.value = K.sectionMap, m.value = K.sectionAliasMap, _.value = K.sectionOrder, $.value = K.sectionStatusMap, s.value = {
|
|
2632
2642
|
...f,
|
|
2633
2643
|
scheme: f.scheme ?? s.value?.scheme ?? null,
|
|
2634
2644
|
topNodes: i.value,
|
|
2635
2645
|
treeNodes: i.value,
|
|
2636
2646
|
activeNode: d,
|
|
2637
|
-
activeSection:
|
|
2638
|
-
sections:
|
|
2647
|
+
activeSection: K.matchedSection,
|
|
2648
|
+
sections: K.targetSections,
|
|
2639
2649
|
sectionMap: c.value
|
|
2640
|
-
}, a.value =
|
|
2650
|
+
}, a.value = K.matchedSection, K.matchedSection;
|
|
2641
2651
|
}, u = (f, d) => {
|
|
2642
|
-
const M = F(f),
|
|
2643
|
-
if (!M || !
|
|
2652
|
+
const M = F(f), K = M ? c.value[M] : null;
|
|
2653
|
+
if (!M || !K)
|
|
2644
2654
|
return;
|
|
2645
|
-
const W = d(
|
|
2655
|
+
const W = d(K);
|
|
2646
2656
|
c.value = {
|
|
2647
2657
|
...c.value,
|
|
2648
2658
|
[M]: W
|
|
2649
2659
|
}, a.value = ke(a.value ?? W) === M ? W : a.value, D();
|
|
2650
|
-
},
|
|
2651
|
-
const d = ne(f), M =
|
|
2660
|
+
}, v = async (f = a.value ?? l.value) => {
|
|
2661
|
+
const d = ne(f), M = z(f) ?? l.value, K = O(f);
|
|
2652
2662
|
if (!M)
|
|
2653
2663
|
return null;
|
|
2654
2664
|
if (!e.service.requestOperation)
|
|
2655
2665
|
throw Ne("service.requestOperation is required");
|
|
2656
|
-
n.value = !0, r.value = null,
|
|
2666
|
+
n.value = !0, r.value = null, R(K ?? M, { loading: !0, error: null });
|
|
2657
2667
|
try {
|
|
2658
2668
|
const W = d ? [{ infSetId: d.infSetId, setId: d.setId, operationInfo: d.operationInfo, raw: d.raw }] : M.infSetList;
|
|
2659
2669
|
if (W.length === 0)
|
|
2660
2670
|
throw Ne("node.infSetList is required");
|
|
2661
|
-
const _e = await Promise.all(W.map(async (
|
|
2662
|
-
const
|
|
2671
|
+
const _e = await Promise.all(W.map(async (se) => {
|
|
2672
|
+
const ve = Ar(d, M, se.infSetId), Ae = {
|
|
2663
2673
|
...j(M, d),
|
|
2664
|
-
infSetId:
|
|
2665
|
-
setId:
|
|
2666
|
-
operationInfo:
|
|
2674
|
+
infSetId: se.infSetId,
|
|
2675
|
+
setId: se.setId,
|
|
2676
|
+
operationInfo: se.operationInfo
|
|
2667
2677
|
};
|
|
2668
|
-
if (
|
|
2669
|
-
const dt = await I(
|
|
2678
|
+
if (ve) {
|
|
2679
|
+
const dt = await I(ve, {
|
|
2670
2680
|
type: "queryInfoSet",
|
|
2671
2681
|
requestSource: "inner",
|
|
2672
2682
|
tagId: d?.requestTagId ?? d?.tagId ?? M.tagId,
|
|
@@ -2674,68 +2684,68 @@ const Rr = (e) => {
|
|
|
2674
2684
|
section: d,
|
|
2675
2685
|
params: Ae
|
|
2676
2686
|
});
|
|
2677
|
-
return
|
|
2687
|
+
return mr(dt, Ae, M);
|
|
2678
2688
|
}
|
|
2679
2689
|
throw Ne("infoSet.operationInfo.queryInfoSet is required");
|
|
2680
|
-
})),
|
|
2690
|
+
})), me = {
|
|
2681
2691
|
..._e[0],
|
|
2682
|
-
sections: _e.flatMap((
|
|
2683
|
-
sectionMap: Object.fromEntries(_e.flatMap((
|
|
2692
|
+
sections: _e.flatMap((se) => se.sections),
|
|
2693
|
+
sectionMap: Object.fromEntries(_e.flatMap((se) => se.sections).map((se) => [se.key, se]))
|
|
2684
2694
|
};
|
|
2685
|
-
return B(
|
|
2695
|
+
return B(me, M, K);
|
|
2686
2696
|
} catch (W) {
|
|
2687
|
-
throw r.value = W,
|
|
2697
|
+
throw r.value = W, R(K ?? M, { loading: !1, error: W }), W;
|
|
2688
2698
|
} finally {
|
|
2689
|
-
n.value = !1,
|
|
2699
|
+
n.value = !1, R(K ?? M, { loading: !1 });
|
|
2690
2700
|
}
|
|
2691
|
-
}, C = (f = a.value) =>
|
|
2701
|
+
}, C = (f = a.value) => v(f), L = (f = a.value) => {
|
|
2692
2702
|
if (!f)
|
|
2693
2703
|
return null;
|
|
2694
|
-
if (!
|
|
2704
|
+
if (!Ke(f) && typeof f != "string")
|
|
2695
2705
|
return y(f);
|
|
2696
2706
|
const d = O(f);
|
|
2697
|
-
return d ? c.value[
|
|
2698
|
-
},
|
|
2699
|
-
const d =
|
|
2707
|
+
return d ? c.value[m.value[d] ?? d] ?? null : null;
|
|
2708
|
+
}, E = async (f = l.value) => f ? (await v(f), s.value) : (s.value = null, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, null), q = async (f) => {
|
|
2709
|
+
const d = Pr(f);
|
|
2700
2710
|
if (!d)
|
|
2701
2711
|
return f.children;
|
|
2702
|
-
const M =
|
|
2712
|
+
const M = S(f), K = await I(d, {
|
|
2703
2713
|
type: "openTag",
|
|
2704
2714
|
requestSource: "sidebar",
|
|
2705
2715
|
tagId: f.tagId,
|
|
2706
2716
|
node: f,
|
|
2707
2717
|
params: M
|
|
2708
2718
|
});
|
|
2709
|
-
return jt(
|
|
2710
|
-
},
|
|
2719
|
+
return jt(K).treeNodes;
|
|
2720
|
+
}, U = async (f) => {
|
|
2711
2721
|
if (f.loaded)
|
|
2712
2722
|
return f.children;
|
|
2713
2723
|
const d = await q(f);
|
|
2714
2724
|
return d.length > 0 && (i.value = hn(i.value, f.key, d)), d;
|
|
2715
|
-
},
|
|
2716
|
-
const d = typeof f == "string" ?
|
|
2717
|
-
return d ? (l.value = d, a.value = null,
|
|
2725
|
+
}, G = async (f) => {
|
|
2726
|
+
const d = typeof f == "string" ? p(i.value, f) : f;
|
|
2727
|
+
return d ? (l.value = d, a.value = null, b.value = [], await U(d), D(s.value?.raw, d), d) : null;
|
|
2718
2728
|
}, X = async () => {
|
|
2719
2729
|
const f = e.service.templateTree;
|
|
2720
2730
|
if (!f)
|
|
2721
2731
|
throw Ne("service.templateTree is required");
|
|
2722
2732
|
t.value = !0, r.value = null;
|
|
2723
2733
|
try {
|
|
2724
|
-
const d = await f(w()), M = jt(d),
|
|
2734
|
+
const d = await f(w()), M = jt(d), K = await Promise.all(
|
|
2725
2735
|
M.treeNodes.map(async (_e) => {
|
|
2726
|
-
const
|
|
2736
|
+
const me = await q(_e);
|
|
2727
2737
|
return {
|
|
2728
2738
|
..._e,
|
|
2729
|
-
children:
|
|
2730
|
-
loaded:
|
|
2739
|
+
children: me,
|
|
2740
|
+
loaded: me.length > 0 || _e.loaded
|
|
2731
2741
|
};
|
|
2732
2742
|
})
|
|
2733
2743
|
);
|
|
2734
|
-
i.value =
|
|
2735
|
-
const W =
|
|
2744
|
+
i.value = K, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, b.value = [];
|
|
2745
|
+
const W = p(K, e.initialActiveNodeKey) ?? p(K);
|
|
2736
2746
|
return l.value = W, s.value = {
|
|
2737
2747
|
...M,
|
|
2738
|
-
treeNodes:
|
|
2748
|
+
treeNodes: K,
|
|
2739
2749
|
activeNode: W,
|
|
2740
2750
|
sectionMap: c.value,
|
|
2741
2751
|
sections: A.value
|
|
@@ -2754,61 +2764,61 @@ const Rr = (e) => {
|
|
|
2754
2764
|
return d && (a.value = d), D(), s.value;
|
|
2755
2765
|
}, Z = (f = a.value) => {
|
|
2756
2766
|
const d = F(f);
|
|
2757
|
-
return !!(d &&
|
|
2767
|
+
return !!(d && b.value.includes(d));
|
|
2758
2768
|
}, ae = (f = a.value) => {
|
|
2759
2769
|
const d = F(f);
|
|
2760
|
-
!d || Z(d) || (
|
|
2770
|
+
!d || Z(d) || (b.value = [...b.value, d], R(d, { editing: !0 }));
|
|
2761
2771
|
}, pe = (f = a.value) => {
|
|
2762
2772
|
const d = F(f);
|
|
2763
|
-
d && (
|
|
2773
|
+
d && (b.value = b.value.filter(
|
|
2764
2774
|
(M) => M !== d
|
|
2765
|
-
),
|
|
2775
|
+
), R(d, { editing: !1 }));
|
|
2766
2776
|
}, de = (f, d, M) => {
|
|
2767
|
-
const
|
|
2777
|
+
const K = typeof d == "string" ? d : Ve(d);
|
|
2768
2778
|
u(f, (W) => {
|
|
2769
|
-
const
|
|
2779
|
+
const me = (typeof d == "string" ? W.fields.find((ve) => Ve(ve) === K || ve.code === K) : d)?.cascadeClearFields ?? [], se = {
|
|
2770
2780
|
...W.model,
|
|
2771
|
-
[
|
|
2781
|
+
[K]: M
|
|
2772
2782
|
};
|
|
2773
|
-
return
|
|
2774
|
-
|
|
2783
|
+
return me.forEach((ve) => {
|
|
2784
|
+
se[ve] = "";
|
|
2775
2785
|
}), {
|
|
2776
2786
|
// 保留 section 其它元数据。
|
|
2777
2787
|
...W,
|
|
2778
2788
|
// 更新表单 model。
|
|
2779
|
-
model:
|
|
2789
|
+
model: se,
|
|
2780
2790
|
// 表单类型同步更新第一行 rows,方便保存时统一从 rows 构造 payload。
|
|
2781
|
-
rows: W.renderType === "form" ? [{ ...W.rows[0], ...
|
|
2791
|
+
rows: W.renderType === "form" ? [{ ...W.rows[0], ...se }] : W.rows,
|
|
2782
2792
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
2783
|
-
fields: W.fields.map((
|
|
2784
|
-
const Ae = Ve(
|
|
2785
|
-
return Ae ===
|
|
2793
|
+
fields: W.fields.map((ve) => {
|
|
2794
|
+
const Ae = Ve(ve);
|
|
2795
|
+
return Ae === K || ve.code === K ? { ...ve, value: M } : me.includes(Ae) || me.includes(ve.code) ? { ...ve, value: "" } : ve;
|
|
2786
2796
|
})
|
|
2787
2797
|
};
|
|
2788
2798
|
});
|
|
2789
|
-
}, Se = async (f, d, M = {},
|
|
2799
|
+
}, Se = async (f, d, M = {}, K = {}) => {
|
|
2790
2800
|
const W = y(f);
|
|
2791
2801
|
if (!W)
|
|
2792
2802
|
return [];
|
|
2793
2803
|
const _e = {
|
|
2794
2804
|
...M,
|
|
2795
|
-
...
|
|
2805
|
+
...K.searchText !== void 0 ? { searchText: K.searchText } : {}
|
|
2796
2806
|
}, {
|
|
2797
|
-
fieldKey:
|
|
2798
|
-
currentField:
|
|
2799
|
-
sourceModel:
|
|
2807
|
+
fieldKey: me,
|
|
2808
|
+
currentField: se,
|
|
2809
|
+
sourceModel: ve,
|
|
2800
2810
|
sourceRow: Ae,
|
|
2801
2811
|
missingDependField: dt
|
|
2802
|
-
} =
|
|
2803
|
-
if (!
|
|
2804
|
-
return
|
|
2805
|
-
if (
|
|
2806
|
-
return
|
|
2812
|
+
} = Br(W, d, _e), ft = se?.interface;
|
|
2813
|
+
if (!se || !ft)
|
|
2814
|
+
return se?.options ?? [];
|
|
2815
|
+
if (Er(se))
|
|
2816
|
+
return se.options ?? [];
|
|
2807
2817
|
if (dt)
|
|
2808
|
-
return u(W, (
|
|
2809
|
-
...
|
|
2810
|
-
fields:
|
|
2811
|
-
(
|
|
2818
|
+
return u(W, (Ge) => ({
|
|
2819
|
+
...Ge,
|
|
2820
|
+
fields: Ge.fields.map(
|
|
2821
|
+
(Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: [] } : Le
|
|
2812
2822
|
)
|
|
2813
2823
|
})), [];
|
|
2814
2824
|
const zn = await T(
|
|
@@ -2819,20 +2829,20 @@ const Rr = (e) => {
|
|
|
2819
2829
|
type: "fieldOptions",
|
|
2820
2830
|
requestSource: "inner",
|
|
2821
2831
|
tagId: W.requestTagId ?? W.tagId,
|
|
2822
|
-
node:
|
|
2832
|
+
node: z(W),
|
|
2823
2833
|
section: W,
|
|
2824
|
-
field:
|
|
2834
|
+
field: se,
|
|
2825
2835
|
params: Te(ft.params),
|
|
2826
2836
|
// searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
|
|
2827
|
-
model:
|
|
2837
|
+
model: ve,
|
|
2828
2838
|
row: Ae,
|
|
2829
|
-
searchText:
|
|
2839
|
+
searchText: K.searchText
|
|
2830
2840
|
}
|
|
2831
|
-
), kt =
|
|
2832
|
-
return u(W, (
|
|
2833
|
-
...
|
|
2834
|
-
fields:
|
|
2835
|
-
(
|
|
2841
|
+
), kt = Vr(zn);
|
|
2842
|
+
return u(W, (Ge) => ({
|
|
2843
|
+
...Ge,
|
|
2844
|
+
fields: Ge.fields.map(
|
|
2845
|
+
(Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: kt } : Le
|
|
2836
2846
|
)
|
|
2837
2847
|
})), kt;
|
|
2838
2848
|
}, Oe = (f, d) => {
|
|
@@ -2847,9 +2857,9 @@ const Rr = (e) => {
|
|
|
2847
2857
|
// 表单类型同步合并到第一行 rows。
|
|
2848
2858
|
rows: M.renderType === "form" ? [{ ...M.rows[0], ...d }] : M.rows,
|
|
2849
2859
|
// fields.value 也同步成 model 中的值。
|
|
2850
|
-
fields: M.fields.map((
|
|
2851
|
-
...
|
|
2852
|
-
value: d[Ve(
|
|
2860
|
+
fields: M.fields.map((K) => ({
|
|
2861
|
+
...K,
|
|
2862
|
+
value: d[Ve(K)]
|
|
2853
2863
|
}))
|
|
2854
2864
|
}));
|
|
2855
2865
|
}, Ie = (f, d) => {
|
|
@@ -2862,17 +2872,17 @@ const Rr = (e) => {
|
|
|
2862
2872
|
// 加载模板树。
|
|
2863
2873
|
loadTree: X,
|
|
2864
2874
|
// 选中树节点。
|
|
2865
|
-
selectNode:
|
|
2875
|
+
selectNode: G,
|
|
2866
2876
|
// 加载当前节点详情。
|
|
2867
|
-
loadDetail:
|
|
2877
|
+
loadDetail: E,
|
|
2868
2878
|
// 刷新当前详情。
|
|
2869
2879
|
reloadActiveSection: P,
|
|
2870
2880
|
// 加载指定节点或 section。
|
|
2871
|
-
loadSection:
|
|
2881
|
+
loadSection: v,
|
|
2872
2882
|
// 重新加载指定节点或 section。
|
|
2873
2883
|
reloadSection: C,
|
|
2874
2884
|
// 获取指定节点或 section 的缓存数据。
|
|
2875
|
-
getSection:
|
|
2885
|
+
getSection: L,
|
|
2876
2886
|
// 获取指定节点或 section 的状态。
|
|
2877
2887
|
getSectionStatus: x,
|
|
2878
2888
|
// 开启编辑。
|
|
@@ -2894,8 +2904,8 @@ const Rr = (e) => {
|
|
|
2894
2904
|
},
|
|
2895
2905
|
// 删除单行本地缓存。
|
|
2896
2906
|
deleteRow: (f, d) => {
|
|
2897
|
-
const M = y(f),
|
|
2898
|
-
(_e,
|
|
2907
|
+
const M = y(f), K = typeof d == "string" ? Number(d) : d, W = (M?.rows ?? []).filter(
|
|
2908
|
+
(_e, me) => me !== K
|
|
2899
2909
|
);
|
|
2900
2910
|
Ie(f, W);
|
|
2901
2911
|
},
|
|
@@ -2904,32 +2914,41 @@ const Rr = (e) => {
|
|
|
2904
2914
|
const d = N(f), M = y(f);
|
|
2905
2915
|
if (!M)
|
|
2906
2916
|
return null;
|
|
2907
|
-
const
|
|
2908
|
-
if (!
|
|
2917
|
+
const K = jr(M);
|
|
2918
|
+
if (!K)
|
|
2909
2919
|
throw Ne("section.operationInfo.editInfoSet is required");
|
|
2910
|
-
o.value = !0, r.value = null, d && d !== ke(M) &&
|
|
2920
|
+
o.value = !0, r.value = null, d && d !== ke(M) && R(d, { saving: !0, error: null }), R(M, { saving: !0, error: null });
|
|
2911
2921
|
try {
|
|
2912
2922
|
const {
|
|
2913
2923
|
tagId: W,
|
|
2914
2924
|
..._e
|
|
2915
|
-
} = j(l.value, M),
|
|
2925
|
+
} = j(l.value, M), me = hr(M, _e), se = zr(
|
|
2926
|
+
M,
|
|
2927
|
+
me.infSetValues ?? [],
|
|
2928
|
+
{
|
|
2929
|
+
emptyMessage: e.renderConfig?.requiredInfoSetEmptyMessage
|
|
2930
|
+
}
|
|
2931
|
+
);
|
|
2932
|
+
if (se)
|
|
2933
|
+
throw new Error(se);
|
|
2934
|
+
const ve = await I(
|
|
2916
2935
|
// 保存时保留后端给的 method/url,但不再把 editOperation.params 混入实际提交数据。
|
|
2917
|
-
|
|
2936
|
+
K,
|
|
2918
2937
|
{
|
|
2919
2938
|
type: "editInfoSet",
|
|
2920
2939
|
requestSource: "inner",
|
|
2921
2940
|
tagId: M.requestTagId ?? M.tagId,
|
|
2922
2941
|
node: l.value,
|
|
2923
2942
|
section: M,
|
|
2924
|
-
params:
|
|
2943
|
+
params: me,
|
|
2925
2944
|
model: M.model
|
|
2926
2945
|
}
|
|
2927
2946
|
);
|
|
2928
|
-
return pe(M), await C(M),
|
|
2947
|
+
return pe(M), await C(M), ve;
|
|
2929
2948
|
} catch (W) {
|
|
2930
|
-
throw r.value = W, d && d !== ke(M) &&
|
|
2949
|
+
throw r.value = W, d && d !== ke(M) && R(d, { saving: !1, error: W }), R(M, { saving: !1, error: W }), W;
|
|
2931
2950
|
} finally {
|
|
2932
|
-
o.value = !1, d && d !== ke(M) &&
|
|
2951
|
+
o.value = !1, d && d !== ke(M) && R(d, { saving: !1 }), R(M, { saving: !1 });
|
|
2933
2952
|
}
|
|
2934
2953
|
},
|
|
2935
2954
|
// 判断编辑态。
|
|
@@ -2941,7 +2960,7 @@ const Rr = (e) => {
|
|
|
2941
2960
|
() => {
|
|
2942
2961
|
(e.autoLoad ?? !0) && X();
|
|
2943
2962
|
}
|
|
2944
|
-
),
|
|
2963
|
+
), Kt(() => {
|
|
2945
2964
|
(e.autoLoad ?? !0) && X();
|
|
2946
2965
|
}), {
|
|
2947
2966
|
// 当前 viewModel。
|
|
@@ -2963,7 +2982,7 @@ const Rr = (e) => {
|
|
|
2963
2982
|
// 给页面消费的操作集合。
|
|
2964
2983
|
actions: qe
|
|
2965
2984
|
};
|
|
2966
|
-
},
|
|
2985
|
+
}, Ga = /* @__PURE__ */ ce({
|
|
2967
2986
|
name: "GlobalInfoProvider",
|
|
2968
2987
|
__name: "GlobalInfoProvider",
|
|
2969
2988
|
props: {
|
|
@@ -2976,8 +2995,8 @@ const Rr = (e) => {
|
|
|
2976
2995
|
formatOperationParams: {}
|
|
2977
2996
|
},
|
|
2978
2997
|
setup(e) {
|
|
2979
|
-
const t = e, n =
|
|
2980
|
-
return (
|
|
2998
|
+
const t = e, n = Gr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
|
|
2999
|
+
return (m, _) => ee(m.$slots, "default", Me(Fe({
|
|
2981
3000
|
viewModel: re(o),
|
|
2982
3001
|
nodes: re(r),
|
|
2983
3002
|
sections: re(i),
|
|
@@ -2989,7 +3008,7 @@ const Rr = (e) => {
|
|
|
2989
3008
|
})));
|
|
2990
3009
|
}
|
|
2991
3010
|
});
|
|
2992
|
-
function
|
|
3011
|
+
function Fn(e) {
|
|
2993
3012
|
if (e.action) {
|
|
2994
3013
|
if (e.action.type === "direct") {
|
|
2995
3014
|
Tt(e.action.options);
|
|
@@ -2998,22 +3017,22 @@ function Dn(e) {
|
|
|
2998
3017
|
Tt.openByParams(e.action.params);
|
|
2999
3018
|
}
|
|
3000
3019
|
}
|
|
3001
|
-
const
|
|
3020
|
+
const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
3002
3021
|
key: 0,
|
|
3003
3022
|
class: "global-info-field-control__file-preview-list"
|
|
3004
|
-
},
|
|
3023
|
+
}, Ur = ["onClick"], Hr = {
|
|
3005
3024
|
key: 1,
|
|
3006
3025
|
class: "global-info-field-control__file-text"
|
|
3007
|
-
},
|
|
3026
|
+
}, Jr = {
|
|
3008
3027
|
key: 2,
|
|
3009
3028
|
class: "global-info-field-control__file-separator"
|
|
3010
|
-
},
|
|
3029
|
+
}, Wr = {
|
|
3011
3030
|
key: 1,
|
|
3012
3031
|
class: "global-info-field-control__file-text"
|
|
3013
|
-
},
|
|
3032
|
+
}, Zr = {
|
|
3014
3033
|
key: 2,
|
|
3015
3034
|
class: "global-info-field-control__file-upload"
|
|
3016
|
-
},
|
|
3035
|
+
}, Qr = /* @__PURE__ */ ce({
|
|
3017
3036
|
name: "GlobalInfoFieldControl",
|
|
3018
3037
|
__name: "GlobalInfoFieldControl",
|
|
3019
3038
|
props: {
|
|
@@ -3023,52 +3042,52 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3023
3042
|
},
|
|
3024
3043
|
emits: ["update:modelValue", "change", "loadOptions"],
|
|
3025
3044
|
setup(e, { emit: t }) {
|
|
3026
|
-
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i =
|
|
3045
|
+
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = V(() => Qe(n.field)), l = V(() => s.value === "select_remote"), a = V(() => n.disabled || n.field.disabled || n.field.readonly), c = V(() => !!n.field.props?.multiple), m = V(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), _ = V(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), $ = V(() => {
|
|
3027
3046
|
if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
|
|
3028
3047
|
const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
3029
3048
|
return Number.isFinite(x) ? x : void 0;
|
|
3030
|
-
}),
|
|
3031
|
-
const x = n.field.props?.activeValue ?? n.field.props?.["active-value"],
|
|
3032
|
-
return x !== void 0 ||
|
|
3033
|
-
}), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)),
|
|
3034
|
-
let
|
|
3049
|
+
}), b = V(() => nr(n.field, n.modelValue)), A = V(() => {
|
|
3050
|
+
const x = n.field.props?.activeValue ?? n.field.props?.["active-value"], R = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
3051
|
+
return x !== void 0 || R !== void 0 ? n.modelValue ?? R ?? !1 : fn(n.modelValue);
|
|
3052
|
+
}), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)), S = V(() => dn(n.field, n.modelValue, "请选择文件")), j = V(() => pn(n.field, n.modelValue, "请选择文件")), I = V(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
|
|
3053
|
+
let h;
|
|
3035
3054
|
function T(x) {
|
|
3036
3055
|
o("update:modelValue", N(x));
|
|
3037
3056
|
}
|
|
3038
|
-
function
|
|
3057
|
+
function p(x) {
|
|
3039
3058
|
o("change", N(x));
|
|
3040
3059
|
}
|
|
3041
3060
|
function N(x) {
|
|
3042
|
-
return s.value === "select" || s.value === "select_remote" ?
|
|
3061
|
+
return s.value === "select" || s.value === "select_remote" ? or(n.field, x) : x;
|
|
3043
3062
|
}
|
|
3044
3063
|
function y(x) {
|
|
3045
3064
|
x && o("loadOptions", l.value ? { searchText: "" } : void 0);
|
|
3046
3065
|
}
|
|
3047
3066
|
function F(x) {
|
|
3048
|
-
l.value && (
|
|
3067
|
+
l.value && (h && clearTimeout(h), h = setTimeout(() => {
|
|
3049
3068
|
o("loadOptions", { searchText: x });
|
|
3050
3069
|
}, 300));
|
|
3051
3070
|
}
|
|
3052
3071
|
function O() {
|
|
3053
3072
|
a.value || i.value?.click();
|
|
3054
3073
|
}
|
|
3055
|
-
function
|
|
3056
|
-
|
|
3074
|
+
function z(x) {
|
|
3075
|
+
Fn(x);
|
|
3057
3076
|
}
|
|
3058
|
-
|
|
3059
|
-
|
|
3077
|
+
Un(() => {
|
|
3078
|
+
h && clearTimeout(h);
|
|
3060
3079
|
});
|
|
3061
3080
|
function ne(x) {
|
|
3062
|
-
const
|
|
3063
|
-
T(B),
|
|
3081
|
+
const R = x.target, D = Array.from(R.files ?? []), B = n.field.props?.multiple ? D : D[0] ?? null;
|
|
3082
|
+
T(B), p(B);
|
|
3064
3083
|
}
|
|
3065
|
-
return (x,
|
|
3066
|
-
const D = Wt, B = Jt, u =
|
|
3067
|
-
return s.value === "select" || s.value === "select_remote" ? (k(),
|
|
3084
|
+
return (x, R) => {
|
|
3085
|
+
const D = Wt, B = Jt, u = Ut, v = Xn, C = eo, L = Ht;
|
|
3086
|
+
return s.value === "select" || s.value === "select_remote" ? (k(), H(B, oe({
|
|
3068
3087
|
key: 0,
|
|
3069
3088
|
class: "global-info-field-control"
|
|
3070
3089
|
}, x.field.props, {
|
|
3071
|
-
"model-value":
|
|
3090
|
+
"model-value": b.value,
|
|
3072
3091
|
placeholder: I.value,
|
|
3073
3092
|
disabled: a.value,
|
|
3074
3093
|
"collapse-tags": c.value,
|
|
@@ -3080,17 +3099,17 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3080
3099
|
clearable: "",
|
|
3081
3100
|
onVisibleChange: y,
|
|
3082
3101
|
"onUpdate:modelValue": T,
|
|
3083
|
-
onChange:
|
|
3102
|
+
onChange: p
|
|
3084
3103
|
}), {
|
|
3085
3104
|
default: J(() => [
|
|
3086
|
-
(k(!0), Y(be, null,
|
|
3087
|
-
key: String(
|
|
3088
|
-
label:
|
|
3089
|
-
value:
|
|
3105
|
+
(k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(), H(D, {
|
|
3106
|
+
key: String(E.value),
|
|
3107
|
+
label: E.label,
|
|
3108
|
+
value: E.value
|
|
3090
3109
|
}, null, 8, ["label", "value"]))), 128))
|
|
3091
3110
|
]),
|
|
3092
3111
|
_: 1
|
|
3093
|
-
}, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(),
|
|
3112
|
+
}, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(), H(u, oe({
|
|
3094
3113
|
key: 1,
|
|
3095
3114
|
class: "global-info-field-control"
|
|
3096
3115
|
}, x.field.props, {
|
|
@@ -3100,8 +3119,8 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3100
3119
|
type: "date",
|
|
3101
3120
|
"value-format": "YYYY-MM-DD",
|
|
3102
3121
|
"onUpdate:modelValue": T,
|
|
3103
|
-
onChange:
|
|
3104
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(),
|
|
3122
|
+
onChange: p
|
|
3123
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), H(v, oe({
|
|
3105
3124
|
key: 2,
|
|
3106
3125
|
class: "global-info-field-control"
|
|
3107
3126
|
}, x.field.props, {
|
|
@@ -3110,18 +3129,18 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3110
3129
|
disabled: a.value,
|
|
3111
3130
|
"controls-position": "right",
|
|
3112
3131
|
"onUpdate:modelValue": T,
|
|
3113
|
-
onChange:
|
|
3114
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(),
|
|
3132
|
+
onChange: p
|
|
3133
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(), H(C, oe({
|
|
3115
3134
|
key: 3,
|
|
3116
3135
|
class: "global-info-field-control global-info-field-control--switch"
|
|
3117
3136
|
}, x.field.props, {
|
|
3118
3137
|
"model-value": A.value,
|
|
3119
3138
|
disabled: a.value,
|
|
3120
3139
|
"onUpdate:modelValue": T,
|
|
3121
|
-
onChange:
|
|
3140
|
+
onChange: p
|
|
3122
3141
|
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (k(), Y("div", {
|
|
3123
3142
|
key: 4,
|
|
3124
|
-
class:
|
|
3143
|
+
class: He(["global-info-field-control global-info-field-control--file", {
|
|
3125
3144
|
"is-disabled": a.value,
|
|
3126
3145
|
"is-empty": !w.value,
|
|
3127
3146
|
"is-filled": w.value
|
|
@@ -3137,51 +3156,51 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3137
3156
|
accept: String(x.field.props?.accept ?? ""),
|
|
3138
3157
|
multiple: !!x.field.props?.multiple,
|
|
3139
3158
|
onChange: ne
|
|
3140
|
-
}, null, 40,
|
|
3141
|
-
j.value.length ? (k(), Y("span",
|
|
3142
|
-
(k(!0), Y(be, null,
|
|
3143
|
-
key:
|
|
3159
|
+
}, null, 40, Kr),
|
|
3160
|
+
j.value.length ? (k(), Y("span", Yr, [
|
|
3161
|
+
(k(!0), Y(be, null, ge(j.value, (E, q) => (k(), Y(be, {
|
|
3162
|
+
key: E.key
|
|
3144
3163
|
}, [
|
|
3145
|
-
|
|
3164
|
+
E.action ? (k(), Y("button", {
|
|
3146
3165
|
key: 0,
|
|
3147
3166
|
class: "global-info-field-control__file-preview",
|
|
3148
3167
|
type: "button",
|
|
3149
|
-
onClick:
|
|
3150
|
-
}, fe(
|
|
3151
|
-
q < j.value.length - 1 ? (k(), Y("span",
|
|
3168
|
+
onClick: Gt((U) => z(E), ["stop", "prevent"])
|
|
3169
|
+
}, fe(E.text), 9, Ur)) : (k(), Y("span", Hr, fe(E.text), 1)),
|
|
3170
|
+
q < j.value.length - 1 ? (k(), Y("span", Jr, "、")) : ue("", !0)
|
|
3152
3171
|
], 64))), 128))
|
|
3153
|
-
])) : w.value ? (k(), Y("span",
|
|
3154
|
-
], 2)) : s.value === "empty" ? (k(),
|
|
3172
|
+
])) : w.value ? (k(), Y("span", Wr, fe(S.value), 1)) : (k(), Y("span", Zr, "上 传"))
|
|
3173
|
+
], 2)) : s.value === "empty" ? (k(), H(L, {
|
|
3155
3174
|
key: 5,
|
|
3156
3175
|
class: "global-info-field-control",
|
|
3157
3176
|
"model-value": "",
|
|
3158
3177
|
disabled: "",
|
|
3159
3178
|
placeholder: "-"
|
|
3160
|
-
})) : (k(),
|
|
3179
|
+
})) : (k(), H(L, oe({
|
|
3161
3180
|
key: 6,
|
|
3162
3181
|
class: ["global-info-field-control", {
|
|
3163
3182
|
"global-info-field-control--textarea": r.includes(s.value),
|
|
3164
3183
|
"global-info-field-control--code": s.value === "code"
|
|
3165
3184
|
}]
|
|
3166
3185
|
}, x.field.props, {
|
|
3167
|
-
"model-value":
|
|
3186
|
+
"model-value": m.value,
|
|
3168
3187
|
placeholder: I.value,
|
|
3169
3188
|
disabled: a.value,
|
|
3170
3189
|
type: r.includes(s.value) ? "textarea" : "text",
|
|
3171
3190
|
rows: r.includes(s.value) ? g.value : void 0,
|
|
3172
3191
|
resize: _.value,
|
|
3173
3192
|
"onUpdate:modelValue": T,
|
|
3174
|
-
onChange:
|
|
3193
|
+
onChange: p
|
|
3175
3194
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3176
3195
|
};
|
|
3177
3196
|
}
|
|
3178
|
-
}),
|
|
3197
|
+
}), Bn = /* @__PURE__ */ ye(Qr, [["__scopeId", "data-v-e5614372"]]), Xr = ["innerHTML"], ea = {
|
|
3179
3198
|
key: 1,
|
|
3180
3199
|
class: "global-info-field-value global-info-field-value--code"
|
|
3181
|
-
},
|
|
3200
|
+
}, ta = {
|
|
3182
3201
|
key: 2,
|
|
3183
3202
|
class: "global-info-field-value global-info-field-value--file"
|
|
3184
|
-
},
|
|
3203
|
+
}, na = ["onClick"], oa = { key: 1 }, ra = { key: 2 }, aa = /* @__PURE__ */ ce({
|
|
3185
3204
|
name: "GlobalInfoFieldValue",
|
|
3186
3205
|
__name: "GlobalInfoFieldValue",
|
|
3187
3206
|
props: {
|
|
@@ -3192,14 +3211,14 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3192
3211
|
setup(e) {
|
|
3193
3212
|
const t = e, n = V(() => $t(t.field)), o = V(() => n.value === "empty" || Ce(t.value)), r = V(() => dn(t.field, t.value, t.emptyText)), i = V(() => pn(t.field, t.value, t.emptyText));
|
|
3194
3213
|
function s(l) {
|
|
3195
|
-
|
|
3214
|
+
Fn(l);
|
|
3196
3215
|
}
|
|
3197
3216
|
return (l, a) => n.value === "html" && !o.value ? (k(), Y("span", {
|
|
3198
3217
|
key: 0,
|
|
3199
3218
|
class: "global-info-field-value global-info-field-value--html",
|
|
3200
3219
|
innerHTML: r.value
|
|
3201
|
-
}, null, 8,
|
|
3202
|
-
(k(!0), Y(be, null,
|
|
3220
|
+
}, null, 8, Xr)) : n.value === "code" && !o.value ? (k(), Y("pre", ea, fe(r.value), 1)) : i.value.length ? (k(), Y("span", ta, [
|
|
3221
|
+
(k(!0), Y(be, null, ge(i.value, (c, m) => (k(), Y(be, {
|
|
3203
3222
|
key: c.key
|
|
3204
3223
|
}, [
|
|
3205
3224
|
c.action ? (k(), Y("button", {
|
|
@@ -3207,51 +3226,51 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3207
3226
|
class: "global-info-field-value__attachment-preview",
|
|
3208
3227
|
type: "button",
|
|
3209
3228
|
onClick: (_) => s(c)
|
|
3210
|
-
}, fe(c.text), 9,
|
|
3211
|
-
|
|
3229
|
+
}, fe(c.text), 9, na)) : (k(), Y("span", oa, fe(c.text), 1)),
|
|
3230
|
+
m < i.value.length - 1 ? (k(), Y("span", ra, "、")) : ue("", !0)
|
|
3212
3231
|
], 64))), 128))
|
|
3213
3232
|
])) : (k(), Y("span", {
|
|
3214
3233
|
key: 3,
|
|
3215
|
-
class:
|
|
3234
|
+
class: He(["global-info-field-value", {
|
|
3216
3235
|
"global-info-field-value--multi-row": n.value === "multi-row",
|
|
3217
3236
|
"global-info-field-value--file": n.value === "file" && !o.value
|
|
3218
3237
|
}])
|
|
3219
3238
|
}, fe(r.value), 3));
|
|
3220
3239
|
}
|
|
3221
|
-
}),
|
|
3222
|
-
function
|
|
3240
|
+
}), En = /* @__PURE__ */ ye(aa, [["__scopeId", "data-v-79688203"]]);
|
|
3241
|
+
function sa(e) {
|
|
3223
3242
|
const t = Qe(e);
|
|
3224
3243
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
3225
3244
|
}
|
|
3226
3245
|
function ot(e, t, n = {}, o = "") {
|
|
3227
|
-
const r = t.key || t.id || t.code, s =
|
|
3246
|
+
const r = t.key || t.id || t.code, s = Re(t).map((l) => `${l}:${String(n[l] ?? "")}`).join("|");
|
|
3228
3247
|
return [e, o, r, s].join("::");
|
|
3229
3248
|
}
|
|
3230
3249
|
function rt(e, t, n) {
|
|
3231
|
-
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t &&
|
|
3250
|
+
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Re(e).length === 0 : !1;
|
|
3232
3251
|
}
|
|
3233
3252
|
function Ln(e = {}) {
|
|
3234
3253
|
return Object.prototype.hasOwnProperty.call(e, "searchText");
|
|
3235
3254
|
}
|
|
3236
|
-
function
|
|
3255
|
+
function Vn(e, t) {
|
|
3237
3256
|
const n = new Set(
|
|
3238
3257
|
[t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
|
|
3239
3258
|
);
|
|
3240
|
-
return n.size === 0 ? !1 :
|
|
3259
|
+
return n.size === 0 ? !1 : Re(e).some((o) => n.has(o));
|
|
3241
3260
|
}
|
|
3242
|
-
function
|
|
3261
|
+
function Pn(e, t, n) {
|
|
3243
3262
|
const o = Qe(e);
|
|
3244
|
-
return
|
|
3263
|
+
return sa(e) ? n ? !0 : !Ce(t) : !1;
|
|
3245
3264
|
}
|
|
3246
|
-
function
|
|
3265
|
+
function An(e, t) {
|
|
3247
3266
|
return Qe(e) !== "select_remote" ? {} : {
|
|
3248
3267
|
searchText: t == null ? "" : String(t)
|
|
3249
3268
|
};
|
|
3250
3269
|
}
|
|
3251
|
-
const
|
|
3270
|
+
const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
3252
3271
|
key: 0,
|
|
3253
3272
|
class: "global-info-form-renderer__required"
|
|
3254
|
-
},
|
|
3273
|
+
}, ca = /* @__PURE__ */ ce({
|
|
3255
3274
|
name: "GlobalInfoFormRenderer",
|
|
3256
3275
|
__name: "GlobalInfoFormRenderer",
|
|
3257
3276
|
props: {
|
|
@@ -3265,35 +3284,35 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3265
3284
|
renderConfig: {}
|
|
3266
3285
|
},
|
|
3267
3286
|
setup(e) {
|
|
3268
|
-
const t = e, n =
|
|
3287
|
+
const t = e, n = Ee(), o = V(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = V(() => lt(
|
|
3269
3288
|
t.section.fields,
|
|
3270
3289
|
t.section,
|
|
3271
3290
|
t.renderConfig,
|
|
3272
3291
|
{ values: o.value }
|
|
3273
3292
|
)), s = rn(
|
|
3274
|
-
async (
|
|
3275
|
-
(
|
|
3293
|
+
async (h, T, p) => t.actions.loadFieldOptions(t.section, h, T, p),
|
|
3294
|
+
(h) => `${t.section.key}:${S(h)}`
|
|
3276
3295
|
);
|
|
3277
|
-
function l(
|
|
3278
|
-
const
|
|
3279
|
-
(
|
|
3280
|
-
|
|
3281
|
-
}), t.onUpdateModel?.(
|
|
3296
|
+
function l(h, T) {
|
|
3297
|
+
const p = { ...o.value, [h.code]: T };
|
|
3298
|
+
(h.cascadeClearFields ?? []).forEach((N) => {
|
|
3299
|
+
p[N] = "";
|
|
3300
|
+
}), t.onUpdateModel?.(p), t.onUpdateModel || t.actions.updateField(t.section, h, T), a(h, T, p), b(p, h);
|
|
3282
3301
|
}
|
|
3283
|
-
function a(
|
|
3302
|
+
function a(h, T, p) {
|
|
3284
3303
|
const N = t.renderConfig?.onFieldBusinessChange;
|
|
3285
3304
|
if (N)
|
|
3286
3305
|
try {
|
|
3287
|
-
const y = c(
|
|
3288
|
-
field:
|
|
3306
|
+
const y = c(h, T), F = {
|
|
3307
|
+
field: h,
|
|
3289
3308
|
value: T,
|
|
3290
3309
|
section: t.section,
|
|
3291
|
-
model:
|
|
3292
|
-
values:
|
|
3310
|
+
model: p,
|
|
3311
|
+
values: p,
|
|
3293
3312
|
node: t.node,
|
|
3294
3313
|
activeNode: t.node,
|
|
3295
|
-
sections:
|
|
3296
|
-
sectionValues: _(t.section,
|
|
3314
|
+
sections: m(),
|
|
3315
|
+
sectionValues: _(t.section, p),
|
|
3297
3316
|
actions: t.actions,
|
|
3298
3317
|
selectedOption: y[0],
|
|
3299
3318
|
selectedOptions: y
|
|
@@ -3305,47 +3324,47 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3305
3324
|
console.error("[GlobalInfoFormRenderer] field business change failed", y);
|
|
3306
3325
|
}
|
|
3307
3326
|
}
|
|
3308
|
-
function c(
|
|
3309
|
-
const
|
|
3310
|
-
return (
|
|
3327
|
+
function c(h, T) {
|
|
3328
|
+
const p = it(h, T);
|
|
3329
|
+
return (h.options ?? []).filter((N) => p.some((y) => N.value === y || String(N.value) === String(y)));
|
|
3311
3330
|
}
|
|
3312
|
-
function
|
|
3331
|
+
function m() {
|
|
3313
3332
|
return Object.values(t.state.sectionMap);
|
|
3314
3333
|
}
|
|
3315
|
-
function _(
|
|
3316
|
-
const N =
|
|
3317
|
-
const F = y.key ===
|
|
3334
|
+
function _(h, T) {
|
|
3335
|
+
const N = m().flatMap((y) => {
|
|
3336
|
+
const F = y.key === h.key ? T : y.renderType === "table" ? y.rows : y.model;
|
|
3318
3337
|
return [y.key, y.id, y.setId, y.infSetId, y.code].filter(Boolean).map((O) => [String(O), F]);
|
|
3319
3338
|
});
|
|
3320
3339
|
return Object.fromEntries(N);
|
|
3321
3340
|
}
|
|
3322
|
-
async function $(
|
|
3323
|
-
const N =
|
|
3324
|
-
if (!Ln(T) && rt(
|
|
3341
|
+
async function $(h, T = {}, p = o.value) {
|
|
3342
|
+
const N = p, y = S(h), F = ot(t.section.key, h, N), O = r.get(y);
|
|
3343
|
+
if (!Ln(T) && rt(h, O, F)) {
|
|
3325
3344
|
r.set(y, F);
|
|
3326
3345
|
return;
|
|
3327
3346
|
}
|
|
3328
3347
|
try {
|
|
3329
3348
|
if (T.searchText !== void 0) {
|
|
3330
|
-
await s(
|
|
3349
|
+
await s(h, N, T);
|
|
3331
3350
|
return;
|
|
3332
3351
|
}
|
|
3333
|
-
await t.actions.loadFieldOptions(t.section,
|
|
3352
|
+
await t.actions.loadFieldOptions(t.section, h, N, T), r.set(y, F);
|
|
3334
3353
|
} catch (ne) {
|
|
3335
3354
|
console.error("[GlobalInfoFormRenderer] load field options failed", ne);
|
|
3336
3355
|
}
|
|
3337
3356
|
}
|
|
3338
|
-
async function
|
|
3339
|
-
for (const
|
|
3340
|
-
if (T && !
|
|
3341
|
-
const N =
|
|
3342
|
-
if (!j(
|
|
3343
|
-
const y = ot(t.section.key,
|
|
3344
|
-
if (rt(
|
|
3357
|
+
async function b(h = o.value, T) {
|
|
3358
|
+
for (const p of i.value) {
|
|
3359
|
+
if (T && !Vn(p, T)) continue;
|
|
3360
|
+
const N = h[p.code];
|
|
3361
|
+
if (!j(p, N)) continue;
|
|
3362
|
+
const y = ot(t.section.key, p, h), F = S(p), O = r.get(F);
|
|
3363
|
+
if (rt(p, O, y)) {
|
|
3345
3364
|
r.set(F, y);
|
|
3346
3365
|
continue;
|
|
3347
3366
|
}
|
|
3348
|
-
O !== y && await $(
|
|
3367
|
+
O !== y && await $(p, An(p, N), h);
|
|
3349
3368
|
}
|
|
3350
3369
|
}
|
|
3351
3370
|
Be(
|
|
@@ -3356,14 +3375,14 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3356
3375
|
), Be(
|
|
3357
3376
|
() => t.editing,
|
|
3358
3377
|
() => {
|
|
3359
|
-
|
|
3378
|
+
b();
|
|
3360
3379
|
},
|
|
3361
3380
|
{ immediate: !0 }
|
|
3362
3381
|
);
|
|
3363
|
-
function A(
|
|
3364
|
-
const T = o.value[
|
|
3382
|
+
function A(h) {
|
|
3383
|
+
const T = o.value[h.code];
|
|
3365
3384
|
return {
|
|
3366
|
-
field:
|
|
3385
|
+
field: h,
|
|
3367
3386
|
section: t.section,
|
|
3368
3387
|
sectionView: t.section,
|
|
3369
3388
|
node: t.node,
|
|
@@ -3372,30 +3391,30 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3372
3391
|
value: T,
|
|
3373
3392
|
state: t.state,
|
|
3374
3393
|
actions: t.actions,
|
|
3375
|
-
updateModelValue: (
|
|
3394
|
+
updateModelValue: (p) => l(h, p)
|
|
3376
3395
|
};
|
|
3377
3396
|
}
|
|
3378
|
-
function g(
|
|
3379
|
-
const T = String(
|
|
3380
|
-
if (
|
|
3381
|
-
const N =
|
|
3382
|
-
return N !==
|
|
3397
|
+
function g(h) {
|
|
3398
|
+
const T = String(h.code || "").trim(), p = T ? `field-${T}` : "";
|
|
3399
|
+
if (p && n[p]) return p;
|
|
3400
|
+
const N = p.toLowerCase();
|
|
3401
|
+
return N !== p && n[N] ? N : "";
|
|
3383
3402
|
}
|
|
3384
|
-
function w(
|
|
3385
|
-
return
|
|
3403
|
+
function w(h) {
|
|
3404
|
+
return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
|
|
3386
3405
|
}
|
|
3387
|
-
function
|
|
3388
|
-
return
|
|
3406
|
+
function S(h) {
|
|
3407
|
+
return h.key || h.id || h.code;
|
|
3389
3408
|
}
|
|
3390
|
-
function j(
|
|
3391
|
-
return
|
|
3409
|
+
function j(h, T) {
|
|
3410
|
+
return Pn(h, T, t.editing);
|
|
3392
3411
|
}
|
|
3393
|
-
function I(
|
|
3394
|
-
return
|
|
3412
|
+
function I(h) {
|
|
3413
|
+
return h.required || h.isRequired;
|
|
3395
3414
|
}
|
|
3396
|
-
return (
|
|
3397
|
-
const
|
|
3398
|
-
return k(),
|
|
3415
|
+
return (h, T) => {
|
|
3416
|
+
const p = Zt, N = no, y = to, F = Qt;
|
|
3417
|
+
return k(), H(F, {
|
|
3399
3418
|
class: "global-info-form-renderer",
|
|
3400
3419
|
model: o.value,
|
|
3401
3420
|
"label-position": "top"
|
|
@@ -3403,37 +3422,37 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3403
3422
|
default: J(() => [
|
|
3404
3423
|
we(y, { gutter: 24 }, {
|
|
3405
3424
|
default: J(() => [
|
|
3406
|
-
(k(!0), Y(be, null,
|
|
3407
|
-
key:
|
|
3425
|
+
(k(!0), Y(be, null, ge(i.value, (O) => (k(), H(N, {
|
|
3426
|
+
key: S(O),
|
|
3408
3427
|
span: w(O)
|
|
3409
3428
|
}, {
|
|
3410
3429
|
default: J(() => [
|
|
3411
|
-
we(
|
|
3430
|
+
we(p, oe({
|
|
3412
3431
|
prop: O.code,
|
|
3413
3432
|
ref_for: !0
|
|
3414
3433
|
}, O.formItemProps), {
|
|
3415
3434
|
label: J(() => [
|
|
3416
|
-
te("span",
|
|
3417
|
-
I(O) ? (k(), Y("span",
|
|
3435
|
+
te("span", ia, [
|
|
3436
|
+
I(O) ? (k(), Y("span", la, "*")) : ue("", !0),
|
|
3418
3437
|
Ye(" " + fe(O.label), 1)
|
|
3419
3438
|
])
|
|
3420
3439
|
]),
|
|
3421
3440
|
default: J(() => [
|
|
3422
|
-
g(O) ? ee(
|
|
3441
|
+
g(O) ? ee(h.$slots, g(O), oe({
|
|
3423
3442
|
key: 0,
|
|
3424
3443
|
ref_for: !0
|
|
3425
|
-
}, A(O)), void 0, !0) :
|
|
3444
|
+
}, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(), H(Bn, {
|
|
3426
3445
|
key: 1,
|
|
3427
3446
|
field: O,
|
|
3428
3447
|
"model-value": o.value[O.code],
|
|
3429
|
-
section:
|
|
3430
|
-
onLoadOptions: (
|
|
3431
|
-
"onUpdate:modelValue": (
|
|
3432
|
-
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(),
|
|
3448
|
+
section: h.section,
|
|
3449
|
+
onLoadOptions: (z) => $(O, z),
|
|
3450
|
+
"onUpdate:modelValue": (z) => l(O, z)
|
|
3451
|
+
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
|
|
3433
3452
|
key: 2,
|
|
3434
3453
|
field: O,
|
|
3435
3454
|
value: o.value[O.code],
|
|
3436
|
-
section:
|
|
3455
|
+
section: h.section
|
|
3437
3456
|
}, null, 8, ["field", "value", "section"]))
|
|
3438
3457
|
]),
|
|
3439
3458
|
_: 2
|
|
@@ -3449,7 +3468,7 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3449
3468
|
}, 8, ["model"]);
|
|
3450
3469
|
};
|
|
3451
3470
|
}
|
|
3452
|
-
}),
|
|
3471
|
+
}), ua = /* @__PURE__ */ ye(ca, [["__scopeId", "data-v-952fa220"]]), da = /* @__PURE__ */ ce({
|
|
3453
3472
|
name: "GlobalInfoDeleteConfirm",
|
|
3454
3473
|
__name: "GlobalInfoDeleteConfirm",
|
|
3455
3474
|
props: {
|
|
@@ -3460,8 +3479,8 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3460
3479
|
emits: ["confirm", "cancel"],
|
|
3461
3480
|
setup(e) {
|
|
3462
3481
|
return (t, n) => {
|
|
3463
|
-
const o =
|
|
3464
|
-
return k(),
|
|
3482
|
+
const o = oo;
|
|
3483
|
+
return k(), H(o, {
|
|
3465
3484
|
title: t.title,
|
|
3466
3485
|
"confirm-button-text": t.confirmText,
|
|
3467
3486
|
"cancel-button-text": t.cancelText,
|
|
@@ -3477,10 +3496,10 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3477
3496
|
}, 8, ["title", "confirm-button-text", "cancel-button-text"]);
|
|
3478
3497
|
};
|
|
3479
3498
|
}
|
|
3480
|
-
}),
|
|
3499
|
+
}), fa = { class: "global-info-table-renderer__table-scroll" }, pa = { class: "global-info-table-renderer__header" }, ma = {
|
|
3481
3500
|
key: 0,
|
|
3482
3501
|
class: "global-info-table-renderer__required"
|
|
3483
|
-
},
|
|
3502
|
+
}, va = /* @__PURE__ */ ce({
|
|
3484
3503
|
name: "GlobalInfoTableRenderer",
|
|
3485
3504
|
__name: "GlobalInfoTableRenderer",
|
|
3486
3505
|
props: {
|
|
@@ -3494,7 +3513,7 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3494
3513
|
renderConfig: {}
|
|
3495
3514
|
},
|
|
3496
3515
|
setup(e) {
|
|
3497
|
-
const t = e, n =
|
|
3516
|
+
const t = e, n = Ee(), o = V(() => t.section.fields.some((u) => Et(u))), r = V(() => o.value), i = V(() => t.renderConfig?.sequenceLabel ?? "序号"), s = V(() => t.renderConfig?.sequenceWidth ?? 56), l = V(() => {
|
|
3498
3517
|
const u = t.renderConfig?.sequenceStart;
|
|
3499
3518
|
return typeof u == "number" && Number.isFinite(u) ? u : 1;
|
|
3500
3519
|
}), a = V(() => {
|
|
@@ -3504,140 +3523,140 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3504
3523
|
t.renderConfig,
|
|
3505
3524
|
{ rows: t.section.rows, values: t.section.model }
|
|
3506
3525
|
);
|
|
3507
|
-
return r.value ? u.filter((
|
|
3508
|
-
}), c = /* @__PURE__ */ new Map(),
|
|
3509
|
-
async (u,
|
|
3510
|
-
(u,
|
|
3526
|
+
return r.value ? u.filter((v) => !ne(v)) : u;
|
|
3527
|
+
}), c = /* @__PURE__ */ new Map(), m = rn(
|
|
3528
|
+
async (u, v, C) => t.actions.loadFieldOptions(t.section, u, v, C),
|
|
3529
|
+
(u, v) => `${t.section.key}:${D(v)}:${O(u)}`
|
|
3511
3530
|
);
|
|
3512
3531
|
function _(u) {
|
|
3513
3532
|
t.actions.deleteRow(t.section, u);
|
|
3514
3533
|
}
|
|
3515
|
-
function $(u,
|
|
3534
|
+
function $(u, v) {
|
|
3516
3535
|
const C = t.renderConfig?.rowDeleteVisibleRule;
|
|
3517
3536
|
return t.showDelete && (typeof C == "function" ? C({
|
|
3518
3537
|
section: t.section,
|
|
3519
3538
|
row: u,
|
|
3520
|
-
rowIndex:
|
|
3539
|
+
rowIndex: v,
|
|
3521
3540
|
node: t.node,
|
|
3522
3541
|
state: t.state,
|
|
3523
3542
|
actions: t.actions
|
|
3524
3543
|
}) : u.allowDelete !== !1);
|
|
3525
3544
|
}
|
|
3526
|
-
function
|
|
3527
|
-
const
|
|
3545
|
+
function b(u, v, C, L) {
|
|
3546
|
+
const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [], U = {
|
|
3528
3547
|
...u,
|
|
3529
3548
|
__rowKey: D(u),
|
|
3530
|
-
[C.code]:
|
|
3549
|
+
[C.code]: L
|
|
3531
3550
|
};
|
|
3532
|
-
q.forEach((
|
|
3533
|
-
|
|
3534
|
-
}),
|
|
3535
|
-
...
|
|
3536
|
-
}, t.actions.updateTableRows(t.section,
|
|
3551
|
+
q.forEach((G) => {
|
|
3552
|
+
U[G] = "";
|
|
3553
|
+
}), E[v] = {
|
|
3554
|
+
...U
|
|
3555
|
+
}, t.actions.updateTableRows(t.section, E), A(C, L, U, v, E), I(C, U);
|
|
3537
3556
|
}
|
|
3538
|
-
function A(u,
|
|
3557
|
+
function A(u, v, C, L, E) {
|
|
3539
3558
|
const q = t.renderConfig?.onFieldBusinessChange;
|
|
3540
3559
|
if (q)
|
|
3541
3560
|
try {
|
|
3542
|
-
const
|
|
3561
|
+
const U = g(u, v), G = { ...t.section.model, ...C }, X = {
|
|
3543
3562
|
field: u,
|
|
3544
|
-
value:
|
|
3563
|
+
value: v,
|
|
3545
3564
|
section: t.section,
|
|
3546
|
-
model:
|
|
3547
|
-
values:
|
|
3565
|
+
model: G,
|
|
3566
|
+
values: G,
|
|
3548
3567
|
row: C,
|
|
3549
|
-
rowIndex:
|
|
3550
|
-
rows:
|
|
3568
|
+
rowIndex: L,
|
|
3569
|
+
rows: E,
|
|
3551
3570
|
node: t.node,
|
|
3552
3571
|
activeNode: t.node,
|
|
3553
3572
|
sections: w(),
|
|
3554
|
-
sectionValues:
|
|
3573
|
+
sectionValues: S(t.section, E),
|
|
3555
3574
|
actions: t.actions,
|
|
3556
|
-
selectedOption:
|
|
3557
|
-
selectedOptions:
|
|
3575
|
+
selectedOption: U[0],
|
|
3576
|
+
selectedOptions: U
|
|
3558
3577
|
};
|
|
3559
3578
|
Promise.resolve(q(X)).catch((P) => {
|
|
3560
3579
|
console.error("[GlobalInfoTableRenderer] field business change failed", P);
|
|
3561
3580
|
});
|
|
3562
|
-
} catch (
|
|
3563
|
-
console.error("[GlobalInfoTableRenderer] field business change failed",
|
|
3581
|
+
} catch (U) {
|
|
3582
|
+
console.error("[GlobalInfoTableRenderer] field business change failed", U);
|
|
3564
3583
|
}
|
|
3565
3584
|
}
|
|
3566
|
-
function g(u,
|
|
3567
|
-
const C = it(u,
|
|
3568
|
-
return (u.options ?? []).filter((
|
|
3585
|
+
function g(u, v) {
|
|
3586
|
+
const C = it(u, v);
|
|
3587
|
+
return (u.options ?? []).filter((L) => C.some((E) => L.value === E || String(L.value) === String(E)));
|
|
3569
3588
|
}
|
|
3570
3589
|
function w() {
|
|
3571
3590
|
return Object.values(t.state.sectionMap);
|
|
3572
3591
|
}
|
|
3573
|
-
function
|
|
3574
|
-
const
|
|
3575
|
-
const q =
|
|
3576
|
-
return [
|
|
3592
|
+
function S(u, v) {
|
|
3593
|
+
const L = w().flatMap((E) => {
|
|
3594
|
+
const q = E.key === u.key ? v : E.renderType === "table" ? E.rows : E.model;
|
|
3595
|
+
return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((U) => [String(U), q]);
|
|
3577
3596
|
});
|
|
3578
|
-
return Object.fromEntries(
|
|
3597
|
+
return Object.fromEntries(L);
|
|
3579
3598
|
}
|
|
3580
|
-
async function j(u,
|
|
3581
|
-
const
|
|
3582
|
-
if (!Ln(C) && rt(u,
|
|
3583
|
-
c.set(q,
|
|
3599
|
+
async function j(u, v, C = {}, L = v) {
|
|
3600
|
+
const E = D(L), q = `${E}:${O(u)}`, U = ot(t.section.key, u, L, E), G = c.get(q);
|
|
3601
|
+
if (!Ln(C) && rt(u, G, U)) {
|
|
3602
|
+
c.set(q, U);
|
|
3584
3603
|
return;
|
|
3585
3604
|
}
|
|
3586
3605
|
try {
|
|
3587
3606
|
if (C.searchText !== void 0) {
|
|
3588
|
-
await
|
|
3607
|
+
await m(u, L, C);
|
|
3589
3608
|
return;
|
|
3590
3609
|
}
|
|
3591
|
-
await t.actions.loadFieldOptions(t.section, u,
|
|
3610
|
+
await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q, U);
|
|
3592
3611
|
} catch (P) {
|
|
3593
3612
|
console.error("[GlobalInfoTableRenderer] load field options failed", P);
|
|
3594
3613
|
}
|
|
3595
3614
|
}
|
|
3596
|
-
async function I(u,
|
|
3597
|
-
const C =
|
|
3598
|
-
for (const
|
|
3599
|
-
const
|
|
3615
|
+
async function I(u, v) {
|
|
3616
|
+
const C = v ? [v] : t.section.rows;
|
|
3617
|
+
for (const L of C) {
|
|
3618
|
+
const E = D(L);
|
|
3600
3619
|
for (const q of a.value) {
|
|
3601
|
-
if (u && !
|
|
3602
|
-
const
|
|
3603
|
-
if (!N(q,
|
|
3604
|
-
const
|
|
3605
|
-
if (rt(q, P,
|
|
3606
|
-
c.set(X,
|
|
3620
|
+
if (u && !Vn(q, u)) continue;
|
|
3621
|
+
const U = L[q.code];
|
|
3622
|
+
if (!N(q, U)) continue;
|
|
3623
|
+
const G = ot(t.section.key, q, L, E), X = `${E}:${O(q)}`, P = c.get(X);
|
|
3624
|
+
if (rt(q, P, G)) {
|
|
3625
|
+
c.set(X, G);
|
|
3607
3626
|
continue;
|
|
3608
3627
|
}
|
|
3609
|
-
P !==
|
|
3628
|
+
P !== G && await j(q, L, An(q, U));
|
|
3610
3629
|
}
|
|
3611
3630
|
}
|
|
3612
3631
|
}
|
|
3613
|
-
function
|
|
3614
|
-
const
|
|
3632
|
+
function h(u, v, C) {
|
|
3633
|
+
const L = v[u.code];
|
|
3615
3634
|
return {
|
|
3616
3635
|
field: u,
|
|
3617
3636
|
section: t.section,
|
|
3618
3637
|
sectionView: t.section,
|
|
3619
3638
|
node: t.node,
|
|
3620
|
-
row:
|
|
3639
|
+
row: v,
|
|
3621
3640
|
rowIndex: C,
|
|
3622
3641
|
editing: t.editing,
|
|
3623
|
-
modelValue:
|
|
3624
|
-
value:
|
|
3642
|
+
modelValue: L,
|
|
3643
|
+
value: L,
|
|
3625
3644
|
state: t.state,
|
|
3626
3645
|
actions: t.actions,
|
|
3627
|
-
updateModelValue: (
|
|
3646
|
+
updateModelValue: (E) => b(v, C, u, E)
|
|
3628
3647
|
};
|
|
3629
3648
|
}
|
|
3630
3649
|
function T(u) {
|
|
3631
|
-
const
|
|
3650
|
+
const v = String(u.code || "").trim(), C = v ? `field-${v}` : "";
|
|
3632
3651
|
if (C && n[C]) return C;
|
|
3633
|
-
const
|
|
3634
|
-
return
|
|
3652
|
+
const L = C.toLowerCase();
|
|
3653
|
+
return L !== C && n[L] ? L : "";
|
|
3635
3654
|
}
|
|
3636
|
-
function
|
|
3655
|
+
function p(u) {
|
|
3637
3656
|
return !u.readonly && !u.disabled;
|
|
3638
3657
|
}
|
|
3639
|
-
function N(u,
|
|
3640
|
-
return
|
|
3658
|
+
function N(u, v) {
|
|
3659
|
+
return Pn(u, v, t.editing);
|
|
3641
3660
|
}
|
|
3642
3661
|
function y(u) {
|
|
3643
3662
|
return u.width ?? (Bt(u) ? 56 : void 0);
|
|
@@ -3649,22 +3668,22 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3649
3668
|
function O(u) {
|
|
3650
3669
|
return u.key || u.id || u.code;
|
|
3651
3670
|
}
|
|
3652
|
-
function
|
|
3671
|
+
function z(u) {
|
|
3653
3672
|
return l.value + u;
|
|
3654
3673
|
}
|
|
3655
3674
|
function ne(u) {
|
|
3656
|
-
return
|
|
3675
|
+
return Et(u);
|
|
3657
3676
|
}
|
|
3658
3677
|
let x = 0;
|
|
3659
|
-
const
|
|
3678
|
+
const R = /* @__PURE__ */ new WeakMap();
|
|
3660
3679
|
function D(u) {
|
|
3661
|
-
const
|
|
3662
|
-
if (
|
|
3663
|
-
const C = u,
|
|
3664
|
-
if (
|
|
3680
|
+
const v = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
|
|
3681
|
+
if (v != null && v !== "") return String(v);
|
|
3682
|
+
const C = u, L = R.get(C);
|
|
3683
|
+
if (L) return L;
|
|
3665
3684
|
x += 1;
|
|
3666
|
-
const
|
|
3667
|
-
return
|
|
3685
|
+
const E = `local-${x}`;
|
|
3686
|
+
return R.set(C, E), E;
|
|
3668
3687
|
}
|
|
3669
3688
|
function B(u) {
|
|
3670
3689
|
return u.required || u.isRequired;
|
|
@@ -3680,13 +3699,13 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3680
3699
|
I();
|
|
3681
3700
|
},
|
|
3682
3701
|
{ immediate: !0 }
|
|
3683
|
-
), (u,
|
|
3684
|
-
const C = en,
|
|
3702
|
+
), (u, v) => {
|
|
3703
|
+
const C = en, L = Hn("Delete"), E = Yt, q = It, U = Xt;
|
|
3685
3704
|
return k(), Y("div", {
|
|
3686
|
-
class:
|
|
3705
|
+
class: He(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
|
|
3687
3706
|
}, [
|
|
3688
|
-
te("div",
|
|
3689
|
-
we(
|
|
3707
|
+
te("div", fa, [
|
|
3708
|
+
we(U, {
|
|
3690
3709
|
class: "global-info-table-renderer__table",
|
|
3691
3710
|
data: u.section.rows,
|
|
3692
3711
|
fit: !0,
|
|
@@ -3694,43 +3713,43 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3694
3713
|
"row-key": D
|
|
3695
3714
|
}, {
|
|
3696
3715
|
default: J(() => [
|
|
3697
|
-
r.value ? (k(),
|
|
3716
|
+
r.value ? (k(), H(C, {
|
|
3698
3717
|
key: 0,
|
|
3699
3718
|
type: "index",
|
|
3700
3719
|
label: i.value,
|
|
3701
3720
|
width: s.value,
|
|
3702
|
-
index:
|
|
3721
|
+
index: z
|
|
3703
3722
|
}, null, 8, ["label", "width"])) : ue("", !0),
|
|
3704
|
-
(k(!0), Y(be, null,
|
|
3705
|
-
key: O(
|
|
3706
|
-
prop:
|
|
3707
|
-
label:
|
|
3708
|
-
width: y(
|
|
3709
|
-
"min-width": F(
|
|
3723
|
+
(k(!0), Y(be, null, ge(a.value, (G) => (k(), H(C, {
|
|
3724
|
+
key: O(G),
|
|
3725
|
+
prop: G.code,
|
|
3726
|
+
label: G.label,
|
|
3727
|
+
width: y(G),
|
|
3728
|
+
"min-width": F(G)
|
|
3710
3729
|
}, {
|
|
3711
3730
|
header: J(() => [
|
|
3712
|
-
te("span",
|
|
3713
|
-
B(
|
|
3714
|
-
te("span", null, fe(
|
|
3731
|
+
te("span", pa, [
|
|
3732
|
+
B(G) ? (k(), Y("span", ma, "*")) : ue("", !0),
|
|
3733
|
+
te("span", null, fe(G.label), 1)
|
|
3715
3734
|
])
|
|
3716
3735
|
]),
|
|
3717
3736
|
default: J(({ row: X, $index: P }) => [
|
|
3718
|
-
T(
|
|
3737
|
+
T(G) ? ee(u.$slots, T(G), oe({
|
|
3719
3738
|
key: 0,
|
|
3720
3739
|
ref_for: !0
|
|
3721
|
-
},
|
|
3740
|
+
}, h(G, X, P)), void 0, !0) : u.editing && p(G) ? (k(), H(Bn, {
|
|
3722
3741
|
key: 1,
|
|
3723
|
-
field:
|
|
3724
|
-
"model-value": X[
|
|
3742
|
+
field: G,
|
|
3743
|
+
"model-value": X[G.code],
|
|
3725
3744
|
section: u.section,
|
|
3726
3745
|
row: X,
|
|
3727
3746
|
"row-index": P,
|
|
3728
|
-
onLoadOptions: (Z) => j(
|
|
3729
|
-
"onUpdate:modelValue": (Z) =>
|
|
3730
|
-
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(),
|
|
3747
|
+
onLoadOptions: (Z) => j(G, X, Z),
|
|
3748
|
+
"onUpdate:modelValue": (Z) => b(X, P, G, Z)
|
|
3749
|
+
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
|
|
3731
3750
|
key: 2,
|
|
3732
|
-
field:
|
|
3733
|
-
value: X[
|
|
3751
|
+
field: G,
|
|
3752
|
+
value: X[G.code],
|
|
3734
3753
|
section: u.section,
|
|
3735
3754
|
row: X,
|
|
3736
3755
|
"row-index": P
|
|
@@ -3738,14 +3757,14 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3738
3757
|
]),
|
|
3739
3758
|
_: 2
|
|
3740
3759
|
}, 1032, ["prop", "label", "width", "min-width"]))), 128)),
|
|
3741
|
-
u.editing ? (k(),
|
|
3760
|
+
u.editing ? (k(), H(C, {
|
|
3742
3761
|
key: 1,
|
|
3743
3762
|
label: "操作",
|
|
3744
3763
|
width: "104",
|
|
3745
3764
|
fixed: "right"
|
|
3746
3765
|
}, {
|
|
3747
|
-
default: J(({ row:
|
|
3748
|
-
$(
|
|
3766
|
+
default: J(({ row: G, $index: X }) => [
|
|
3767
|
+
$(G, X) ? (k(), H(da, {
|
|
3749
3768
|
key: 0,
|
|
3750
3769
|
onConfirm: (P) => _(X)
|
|
3751
3770
|
}, {
|
|
@@ -3756,13 +3775,13 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3756
3775
|
type: "danger"
|
|
3757
3776
|
}, {
|
|
3758
3777
|
default: J(() => [
|
|
3759
|
-
we(
|
|
3778
|
+
we(E, { class: "global-info-table-renderer__delete-icon" }, {
|
|
3760
3779
|
default: J(() => [
|
|
3761
|
-
we(
|
|
3780
|
+
we(L)
|
|
3762
3781
|
]),
|
|
3763
3782
|
_: 1
|
|
3764
3783
|
}),
|
|
3765
|
-
|
|
3784
|
+
v[0] || (v[0] = Ye(" 删除 "))
|
|
3766
3785
|
]),
|
|
3767
3786
|
_: 1
|
|
3768
3787
|
})
|
|
@@ -3779,7 +3798,7 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3779
3798
|
], 2);
|
|
3780
3799
|
};
|
|
3781
3800
|
}
|
|
3782
|
-
}),
|
|
3801
|
+
}), ha = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-366b90b7"]]), ga = /* @__PURE__ */ ce({
|
|
3783
3802
|
name: "GlobalInfoAutoRenderer",
|
|
3784
3803
|
__name: "GlobalInfoAutoRenderer",
|
|
3785
3804
|
props: {
|
|
@@ -3791,7 +3810,7 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3791
3810
|
renderConfig: {}
|
|
3792
3811
|
},
|
|
3793
3812
|
setup(e) {
|
|
3794
|
-
return (t, n) => t.section.renderType === "table" ? (k(),
|
|
3813
|
+
return (t, n) => t.section.renderType === "table" ? (k(), H(ha, {
|
|
3795
3814
|
key: 0,
|
|
3796
3815
|
section: t.section,
|
|
3797
3816
|
node: t.node,
|
|
@@ -3799,7 +3818,7 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3799
3818
|
state: t.state,
|
|
3800
3819
|
actions: t.actions,
|
|
3801
3820
|
"render-config": t.renderConfig
|
|
3802
|
-
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(),
|
|
3821
|
+
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), H(ua, {
|
|
3803
3822
|
key: 1,
|
|
3804
3823
|
section: t.section,
|
|
3805
3824
|
node: t.node,
|
|
@@ -3810,11 +3829,11 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3810
3829
|
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
3811
3830
|
}
|
|
3812
3831
|
});
|
|
3813
|
-
function
|
|
3814
|
-
return
|
|
3832
|
+
function jn(e) {
|
|
3833
|
+
return Rn(e.code);
|
|
3815
3834
|
}
|
|
3816
|
-
function
|
|
3817
|
-
return
|
|
3835
|
+
function Nn(e, t) {
|
|
3836
|
+
return jn(e) || Rn(t?.code);
|
|
3818
3837
|
}
|
|
3819
3838
|
function Ct(e, t, n) {
|
|
3820
3839
|
if (!n) return "";
|
|
@@ -3823,10 +3842,10 @@ function Ct(e, t, n) {
|
|
|
3823
3842
|
const r = o.toLowerCase();
|
|
3824
3843
|
return r !== o && e[r] ? r : "";
|
|
3825
3844
|
}
|
|
3826
|
-
function
|
|
3845
|
+
function Rn(e) {
|
|
3827
3846
|
return typeof e == "string" ? e.trim() : "";
|
|
3828
3847
|
}
|
|
3829
|
-
const
|
|
3848
|
+
const ya = /* @__PURE__ */ ce({
|
|
3830
3849
|
name: "GlobalInfoSectionOutlet",
|
|
3831
3850
|
__name: "GlobalInfoSectionOutlet",
|
|
3832
3851
|
props: {
|
|
@@ -3838,7 +3857,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
3838
3857
|
renderConfig: {}
|
|
3839
3858
|
},
|
|
3840
3859
|
setup(e) {
|
|
3841
|
-
const t = e, n =
|
|
3860
|
+
const t = e, n = Ee(), o = V(() => lt(
|
|
3842
3861
|
t.section.fields,
|
|
3843
3862
|
t.section,
|
|
3844
3863
|
t.renderConfig,
|
|
@@ -3850,13 +3869,13 @@ const va = /* @__PURE__ */ ce({
|
|
|
3850
3869
|
const a = Ct(
|
|
3851
3870
|
n,
|
|
3852
3871
|
"section",
|
|
3853
|
-
|
|
3872
|
+
Nn(t.node ?? {}, t.section)
|
|
3854
3873
|
), c = l(t.section.renderType);
|
|
3855
3874
|
return [
|
|
3856
3875
|
a,
|
|
3857
3876
|
c,
|
|
3858
3877
|
"default"
|
|
3859
|
-
].find((
|
|
3878
|
+
].find((m) => !!(m && n[m])) ?? "";
|
|
3860
3879
|
});
|
|
3861
3880
|
function l(a) {
|
|
3862
3881
|
return a === "form" || a === "table" ? a : "";
|
|
@@ -3873,7 +3892,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
3873
3892
|
renderConfig: a.renderConfig,
|
|
3874
3893
|
state: a.state,
|
|
3875
3894
|
actions: a.actions
|
|
3876
|
-
}) : (k(),
|
|
3895
|
+
}) : (k(), H(ga, {
|
|
3877
3896
|
key: 1,
|
|
3878
3897
|
section: a.section,
|
|
3879
3898
|
node: a.node,
|
|
@@ -3883,7 +3902,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
3883
3902
|
"render-config": a.renderConfig
|
|
3884
3903
|
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
3885
3904
|
}
|
|
3886
|
-
}),
|
|
3905
|
+
}), ba = ce({
|
|
3887
3906
|
name: "GlobalInfoSlotErrorBoundary",
|
|
3888
3907
|
props: {
|
|
3889
3908
|
boundaryKey: {
|
|
@@ -3899,13 +3918,13 @@ const va = /* @__PURE__ */ ce({
|
|
|
3899
3918
|
error: (e) => !0
|
|
3900
3919
|
},
|
|
3901
3920
|
setup(e, { emit: t, slots: n }) {
|
|
3902
|
-
const o =
|
|
3921
|
+
const o = he(!1);
|
|
3903
3922
|
Be(
|
|
3904
3923
|
() => e.boundaryKey,
|
|
3905
3924
|
() => {
|
|
3906
3925
|
o.value = !1;
|
|
3907
3926
|
}
|
|
3908
|
-
),
|
|
3927
|
+
), Jn((i) => (r(i), !1));
|
|
3909
3928
|
function r(i) {
|
|
3910
3929
|
o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, i), t("error", i);
|
|
3911
3930
|
}
|
|
@@ -3919,13 +3938,13 @@ const va = /* @__PURE__ */ ce({
|
|
|
3919
3938
|
}
|
|
3920
3939
|
};
|
|
3921
3940
|
}
|
|
3922
|
-
}),
|
|
3941
|
+
}), Sa = { class: "global-info-section-block" }, wa = {
|
|
3923
3942
|
key: 0,
|
|
3924
3943
|
class: "global-info-section-block__header"
|
|
3925
|
-
},
|
|
3944
|
+
}, Ia = { class: "global-info-section-block__title-wrap" }, _a = { class: "global-info-section-block__title" }, $a = {
|
|
3926
3945
|
key: 0,
|
|
3927
3946
|
class: "global-info-section-block__actions"
|
|
3928
|
-
},
|
|
3947
|
+
}, Ca = { class: "global-info-section-block__body" }, ka = /* @__PURE__ */ ce({
|
|
3929
3948
|
name: "GlobalInfoSectionBlock",
|
|
3930
3949
|
__name: "GlobalInfoSectionBlock",
|
|
3931
3950
|
props: {
|
|
@@ -3939,13 +3958,13 @@ const va = /* @__PURE__ */ ce({
|
|
|
3939
3958
|
onSave: { type: Function }
|
|
3940
3959
|
},
|
|
3941
3960
|
setup(e) {
|
|
3942
|
-
const t = e, n =
|
|
3961
|
+
const t = e, n = Ee(), o = he(!1), r = he(null), i = he(null), s = V(() => !!t.hideHeader), l = V(() => t.actions.getSectionStatus(t.node)), a = V(() => t.actions.getSection(t.node) ?? i.value), c = V(() => {
|
|
3943
3962
|
const y = a.value;
|
|
3944
3963
|
return y ? lt(y.fields, y, t.renderConfig, {
|
|
3945
3964
|
values: y.model,
|
|
3946
3965
|
rows: y.renderType === "table" ? y.rows : void 0
|
|
3947
3966
|
}) : [];
|
|
3948
|
-
}),
|
|
3967
|
+
}), m = V(() => a.value?.title || t.node.tagName || t.node.label || "-"), _ = V(() => !!(a.value && t.actions.isEditing(a.value))), $ = V(() => a.value?.renderType === "table"), b = V(() => o.value || l.value.loading), A = V(() => S(r.value || l.value.error)), g = V(() => {
|
|
3949
3968
|
const y = a.value;
|
|
3950
3969
|
return y ? y.renderType === "table" && y.rows.length === 0 || c.value.length === 0 : !0;
|
|
3951
3970
|
}), w = V(() => ({
|
|
@@ -3954,9 +3973,9 @@ const va = /* @__PURE__ */ ce({
|
|
|
3954
3973
|
sectionView: a.value,
|
|
3955
3974
|
fields: c.value,
|
|
3956
3975
|
renderConfig: t.renderConfig,
|
|
3957
|
-
title:
|
|
3976
|
+
title: m.value,
|
|
3958
3977
|
editing: _.value,
|
|
3959
|
-
loading:
|
|
3978
|
+
loading: b.value,
|
|
3960
3979
|
error: r.value || l.value.error,
|
|
3961
3980
|
errorMessage: A.value,
|
|
3962
3981
|
isEmpty: g.value,
|
|
@@ -3967,10 +3986,10 @@ const va = /* @__PURE__ */ ce({
|
|
|
3967
3986
|
reload: N,
|
|
3968
3987
|
handleEdit: j,
|
|
3969
3988
|
handleCancel: I,
|
|
3970
|
-
handleAddTableRow:
|
|
3989
|
+
handleAddTableRow: h,
|
|
3971
3990
|
handleSave: T
|
|
3972
3991
|
}));
|
|
3973
|
-
function
|
|
3992
|
+
function S(y) {
|
|
3974
3993
|
return y ? y instanceof Error ? y.message : String(y) : "";
|
|
3975
3994
|
}
|
|
3976
3995
|
async function j() {
|
|
@@ -3981,10 +4000,10 @@ const va = /* @__PURE__ */ ce({
|
|
|
3981
4000
|
const y = a.value;
|
|
3982
4001
|
y && (await t.onCancel?.(y, t.node), t.onCancel || t.actions.cancelEdit(y));
|
|
3983
4002
|
}
|
|
3984
|
-
function
|
|
4003
|
+
function h() {
|
|
3985
4004
|
const y = a.value;
|
|
3986
4005
|
if (!y) return;
|
|
3987
|
-
const F = y.fields.reduce((O,
|
|
4006
|
+
const F = y.fields.reduce((O, z) => (O[z.code] = z.value ?? "", O), { __rowKey: `new-${Date.now()}` });
|
|
3988
4007
|
t.actions.saveRow(y, F, -1);
|
|
3989
4008
|
}
|
|
3990
4009
|
async function T() {
|
|
@@ -4000,7 +4019,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4000
4019
|
r.value = F, console.error("[GlobalInfoSectionBlock] save section failed", F);
|
|
4001
4020
|
}
|
|
4002
4021
|
}
|
|
4003
|
-
function
|
|
4022
|
+
function p(y) {
|
|
4004
4023
|
r.value = y;
|
|
4005
4024
|
}
|
|
4006
4025
|
async function N() {
|
|
@@ -4013,7 +4032,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4013
4032
|
o.value = !1;
|
|
4014
4033
|
}
|
|
4015
4034
|
}
|
|
4016
|
-
return
|
|
4035
|
+
return Kt(() => {
|
|
4017
4036
|
N();
|
|
4018
4037
|
}), Be(
|
|
4019
4038
|
() => t.node.key,
|
|
@@ -4022,15 +4041,15 @@ const va = /* @__PURE__ */ ce({
|
|
|
4022
4041
|
}
|
|
4023
4042
|
), (y, F) => {
|
|
4024
4043
|
const O = It;
|
|
4025
|
-
return k(), Y("section",
|
|
4026
|
-
s.value ? ue("", !0) : (k(), Y("header",
|
|
4044
|
+
return k(), Y("section", Sa, [
|
|
4045
|
+
s.value ? ue("", !0) : (k(), Y("header", wa, [
|
|
4027
4046
|
ee(y.$slots, "header", Me(Fe(w.value)), () => [
|
|
4028
|
-
te("div",
|
|
4047
|
+
te("div", Ia, [
|
|
4029
4048
|
F[0] || (F[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
4030
|
-
te("h3",
|
|
4049
|
+
te("h3", _a, fe(m.value), 1)
|
|
4031
4050
|
]),
|
|
4032
4051
|
ee(y.$slots, "actions", Me(Fe(w.value)), () => [
|
|
4033
|
-
a.value ? (k(), Y("div",
|
|
4052
|
+
a.value ? (k(), Y("div", $a, [
|
|
4034
4053
|
_.value ? (k(), Y(be, { key: 1 }, [
|
|
4035
4054
|
we(O, {
|
|
4036
4055
|
class: "global-info-section-block__cancel",
|
|
@@ -4042,11 +4061,11 @@ const va = /* @__PURE__ */ ce({
|
|
|
4042
4061
|
])),
|
|
4043
4062
|
_: 1
|
|
4044
4063
|
}, 8, ["disabled"]),
|
|
4045
|
-
$.value ? (k(),
|
|
4064
|
+
$.value ? (k(), H(O, {
|
|
4046
4065
|
key: 0,
|
|
4047
4066
|
class: "global-info-section-block__add",
|
|
4048
4067
|
disabled: l.value.saving,
|
|
4049
|
-
onClick:
|
|
4068
|
+
onClick: h
|
|
4050
4069
|
}, {
|
|
4051
4070
|
default: J(() => F[3] || (F[3] = [
|
|
4052
4071
|
Ye(" 新增 ")
|
|
@@ -4063,10 +4082,10 @@ const va = /* @__PURE__ */ ce({
|
|
|
4063
4082
|
]),
|
|
4064
4083
|
_: 1
|
|
4065
4084
|
}, 8, ["loading"])
|
|
4066
|
-
], 64)) : (k(),
|
|
4085
|
+
], 64)) : (k(), H(O, {
|
|
4067
4086
|
key: 0,
|
|
4068
4087
|
class: "global-info-section-block__edit",
|
|
4069
|
-
disabled: l.value.saving ||
|
|
4088
|
+
disabled: l.value.saving || b.value,
|
|
4070
4089
|
onClick: j
|
|
4071
4090
|
}, {
|
|
4072
4091
|
default: J(() => F[1] || (F[1] = [
|
|
@@ -4089,16 +4108,16 @@ const va = /* @__PURE__ */ ce({
|
|
|
4089
4108
|
], !0)
|
|
4090
4109
|
], !0)
|
|
4091
4110
|
])),
|
|
4092
|
-
te("div",
|
|
4093
|
-
|
|
4111
|
+
te("div", Ca, [
|
|
4112
|
+
b.value ? ee(y.$slots, "loading", Me(oe({ key: 0 }, w.value)), () => [
|
|
4094
4113
|
F[4] || (F[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
|
|
4095
4114
|
], !0) : !a.value || g.value ? ee(y.$slots, "empty", Me(oe({ key: 1 }, w.value)), () => [
|
|
4096
4115
|
F[5] || (F[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
|
|
4097
|
-
], !0) : (k(),
|
|
4116
|
+
], !0) : (k(), H(ba, {
|
|
4098
4117
|
key: 2,
|
|
4099
4118
|
"boundary-key": y.node.key,
|
|
4100
|
-
label:
|
|
4101
|
-
onError:
|
|
4119
|
+
label: m.value,
|
|
4120
|
+
onError: p
|
|
4102
4121
|
}, {
|
|
4103
4122
|
fallback: J(() => [
|
|
4104
4123
|
ee(y.$slots, "empty", Me(Fe(w.value)), () => [
|
|
@@ -4106,7 +4125,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4106
4125
|
], !0)
|
|
4107
4126
|
]),
|
|
4108
4127
|
default: J(() => [
|
|
4109
|
-
we(
|
|
4128
|
+
we(ya, {
|
|
4110
4129
|
section: a.value,
|
|
4111
4130
|
node: y.node,
|
|
4112
4131
|
editing: _.value,
|
|
@@ -4114,7 +4133,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4114
4133
|
actions: y.actions,
|
|
4115
4134
|
"render-config": y.renderConfig
|
|
4116
4135
|
}, je({ _: 2 }, [
|
|
4117
|
-
|
|
4136
|
+
ge(re(n), (z, ne) => ({
|
|
4118
4137
|
name: ne,
|
|
4119
4138
|
fn: J((x) => [
|
|
4120
4139
|
ee(y.$slots, ne, Me(Fe({ ...w.value, ...x })), void 0, !0)
|
|
@@ -4128,7 +4147,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4128
4147
|
]);
|
|
4129
4148
|
};
|
|
4130
4149
|
}
|
|
4131
|
-
}),
|
|
4150
|
+
}), Ma = /* @__PURE__ */ ye(ka, [["__scopeId", "data-v-77980d16"]]), Ta = { class: "global-info-group" }, Oa = { class: "global-info-group__header" }, Da = { class: "global-info-group__title" }, Fa = { class: "global-info-group__body" }, Ba = ["id"], Ea = /* @__PURE__ */ ce({
|
|
4132
4151
|
name: "GlobalInfoGroup",
|
|
4133
4152
|
__name: "GlobalInfoGroup",
|
|
4134
4153
|
props: {
|
|
@@ -4140,8 +4159,8 @@ const va = /* @__PURE__ */ ce({
|
|
|
4140
4159
|
renderConfig: {}
|
|
4141
4160
|
},
|
|
4142
4161
|
setup(e) {
|
|
4143
|
-
const t = e, n =
|
|
4144
|
-
function i(c,
|
|
4162
|
+
const t = e, n = Ee(), o = V(() => t.group.tagName || t.group.label || "-"), r = V(() => t.children.length <= 1);
|
|
4163
|
+
function i(c, m) {
|
|
4145
4164
|
const _ = t.actions.getSection(c);
|
|
4146
4165
|
return {
|
|
4147
4166
|
node: c,
|
|
@@ -4152,7 +4171,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4152
4171
|
state: t.state,
|
|
4153
4172
|
actions: t.actions,
|
|
4154
4173
|
renderConfig: t.renderConfig,
|
|
4155
|
-
index:
|
|
4174
|
+
index: m,
|
|
4156
4175
|
editing: !!(_ && t.actions.isEditing(_)),
|
|
4157
4176
|
sectionStatus: t.actions.getSectionStatus(c),
|
|
4158
4177
|
isSelfSection: l(c, 0) === l(t.group, 0),
|
|
@@ -4162,16 +4181,16 @@ const va = /* @__PURE__ */ ce({
|
|
|
4162
4181
|
};
|
|
4163
4182
|
}
|
|
4164
4183
|
function s(c) {
|
|
4165
|
-
const
|
|
4166
|
-
return Ct(n, "section",
|
|
4184
|
+
const m = t.actions.getSection(c);
|
|
4185
|
+
return Ct(n, "section", Nn(c, m));
|
|
4167
4186
|
}
|
|
4168
|
-
function l(c,
|
|
4169
|
-
return c.key || c.id || c.infSetId || c.tagId || `${
|
|
4187
|
+
function l(c, m) {
|
|
4188
|
+
return c.key || c.id || c.infSetId || c.tagId || `${m}`;
|
|
4170
4189
|
}
|
|
4171
4190
|
function a(c) {
|
|
4172
4191
|
return `global-info-section-${l(c, 0)}`;
|
|
4173
4192
|
}
|
|
4174
|
-
return (c,
|
|
4193
|
+
return (c, m) => (k(), Y("section", Ta, [
|
|
4175
4194
|
ee(c.$slots, "header", {
|
|
4176
4195
|
group: c.group,
|
|
4177
4196
|
children: c.children,
|
|
@@ -4182,12 +4201,12 @@ const va = /* @__PURE__ */ ce({
|
|
|
4182
4201
|
index: c.index,
|
|
4183
4202
|
isEmpty: c.children.length === 0
|
|
4184
4203
|
}, () => [
|
|
4185
|
-
te("header",
|
|
4186
|
-
|
|
4187
|
-
te("h2",
|
|
4204
|
+
te("header", Oa, [
|
|
4205
|
+
m[0] || (m[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
|
|
4206
|
+
te("h2", Da, fe(o.value), 1)
|
|
4188
4207
|
])
|
|
4189
4208
|
], !0),
|
|
4190
|
-
te("div",
|
|
4209
|
+
te("div", Fa, [
|
|
4191
4210
|
re(n).default ? ee(c.$slots, "default", {
|
|
4192
4211
|
key: 0,
|
|
4193
4212
|
group: c.group,
|
|
@@ -4198,7 +4217,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4198
4217
|
index: c.index,
|
|
4199
4218
|
isEmpty: c.children.length === 0
|
|
4200
4219
|
}, void 0, !0) : (k(), Y(be, { key: 1 }, [
|
|
4201
|
-
(k(!0), Y(be, null,
|
|
4220
|
+
(k(!0), Y(be, null, ge(c.children, (_, $) => (k(), Y("div", {
|
|
4202
4221
|
id: a(_),
|
|
4203
4222
|
key: l(_, $),
|
|
4204
4223
|
class: "global-info-group__section"
|
|
@@ -4209,7 +4228,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4209
4228
|
}, i(_, $)), void 0, !0) : re(n).section ? ee(c.$slots, "section", oe({
|
|
4210
4229
|
key: 1,
|
|
4211
4230
|
ref_for: !0
|
|
4212
|
-
}, i(_, $)), void 0, !0) : (k(),
|
|
4231
|
+
}, i(_, $)), void 0, !0) : (k(), H(Ma, {
|
|
4213
4232
|
key: 2,
|
|
4214
4233
|
node: _,
|
|
4215
4234
|
state: c.state,
|
|
@@ -4217,14 +4236,14 @@ const va = /* @__PURE__ */ ce({
|
|
|
4217
4236
|
"hide-header": r.value,
|
|
4218
4237
|
"render-config": c.renderConfig
|
|
4219
4238
|
}, je({ _: 2 }, [
|
|
4220
|
-
|
|
4239
|
+
ge(re(n), (b, A) => ({
|
|
4221
4240
|
name: A,
|
|
4222
4241
|
fn: J((g) => [
|
|
4223
4242
|
ee(c.$slots, A, oe({ ref_for: !0 }, g), void 0, !0)
|
|
4224
4243
|
])
|
|
4225
4244
|
}))
|
|
4226
4245
|
]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
|
|
4227
|
-
], 8,
|
|
4246
|
+
], 8, Ba))), 128)),
|
|
4228
4247
|
c.children.length === 0 ? ee(c.$slots, "empty", {
|
|
4229
4248
|
key: 0,
|
|
4230
4249
|
node: null,
|
|
@@ -4235,13 +4254,13 @@ const va = /* @__PURE__ */ ce({
|
|
|
4235
4254
|
index: -1,
|
|
4236
4255
|
renderConfig: c.renderConfig
|
|
4237
4256
|
}, () => [
|
|
4238
|
-
|
|
4257
|
+
m[1] || (m[1] = te("div", { class: "global-info-group__empty" }, "暂无数据", -1))
|
|
4239
4258
|
], !0) : ue("", !0)
|
|
4240
4259
|
], 64))
|
|
4241
4260
|
])
|
|
4242
4261
|
]));
|
|
4243
4262
|
}
|
|
4244
|
-
}),
|
|
4263
|
+
}), La = /* @__PURE__ */ ye(Ea, [["__scopeId", "data-v-352d3733"]]), Va = { class: "global-info-sections" }, Pa = /* @__PURE__ */ ce({
|
|
4245
4264
|
name: "GlobalInfoSections",
|
|
4246
4265
|
__name: "GlobalInfoSections",
|
|
4247
4266
|
props: {
|
|
@@ -4251,121 +4270,123 @@ const va = /* @__PURE__ */ ce({
|
|
|
4251
4270
|
renderConfig: {}
|
|
4252
4271
|
},
|
|
4253
4272
|
setup(e) {
|
|
4254
|
-
const t = e, n =
|
|
4255
|
-
const
|
|
4273
|
+
const t = e, n = Ee(), o = V(() => {
|
|
4274
|
+
const m = t.nodes.filter((S) => r(S).length > 0), _ = t.nodes.filter((S) => r(S).length === 0), $ = _.filter((S) => i(S)), b = _.filter((S) => !i(S)), A = m.map((S) => ({ group: S, children: r(S) })), g = $.map((S) => ({ group: S, children: [S] }));
|
|
4256
4275
|
if (A.length === 0)
|
|
4257
|
-
return $.length > 0 ? g : c(
|
|
4258
|
-
const w = c(
|
|
4276
|
+
return $.length > 0 ? g : c(b);
|
|
4277
|
+
const w = c(b);
|
|
4259
4278
|
return [...A, ...g, ...w];
|
|
4260
4279
|
});
|
|
4261
|
-
function r(
|
|
4262
|
-
return
|
|
4280
|
+
function r(m) {
|
|
4281
|
+
return m.children ?? [];
|
|
4263
4282
|
}
|
|
4264
|
-
function i(
|
|
4265
|
-
return !String(
|
|
4283
|
+
function i(m) {
|
|
4284
|
+
return !String(m.parentId || m.parentTagId || "").trim();
|
|
4266
4285
|
}
|
|
4267
|
-
function s(
|
|
4268
|
-
return Ct(n, "group",
|
|
4286
|
+
function s(m) {
|
|
4287
|
+
return Ct(n, "group", jn(m));
|
|
4269
4288
|
}
|
|
4270
|
-
function l(
|
|
4271
|
-
return
|
|
4289
|
+
function l(m, _) {
|
|
4290
|
+
return m.key || m.id || m.tagId || `${_}`;
|
|
4272
4291
|
}
|
|
4273
|
-
function a(
|
|
4274
|
-
const _ =
|
|
4292
|
+
function a(m) {
|
|
4293
|
+
const _ = m[0], $ = _?.raw ?? {}, b = String($.parentTagName || $.parentName || $.parentLabel || _?.parentId || "信息");
|
|
4275
4294
|
return {
|
|
4276
4295
|
..._,
|
|
4277
4296
|
key: `${_?.parentId || _?.parentTagId || _?.key || "global-info"}-group`,
|
|
4278
4297
|
id: String(_?.parentId || _?.parentTagId || _?.id || "global-info-group"),
|
|
4279
4298
|
tagId: String(_?.parentTagId || _?.parentId || _?.tagId || "global-info-group"),
|
|
4280
|
-
tagName:
|
|
4281
|
-
label:
|
|
4282
|
-
children:
|
|
4299
|
+
tagName: b,
|
|
4300
|
+
label: b,
|
|
4301
|
+
children: m
|
|
4283
4302
|
};
|
|
4284
4303
|
}
|
|
4285
|
-
function c(
|
|
4304
|
+
function c(m) {
|
|
4286
4305
|
const _ = /* @__PURE__ */ new Map();
|
|
4287
|
-
return
|
|
4288
|
-
const
|
|
4289
|
-
A.push($), _.set(
|
|
4306
|
+
return m.forEach(($) => {
|
|
4307
|
+
const b = String($.parentId || $.parentTagId || "global-info-flat"), A = _.get(b) ?? [];
|
|
4308
|
+
A.push($), _.set(b, A);
|
|
4290
4309
|
}), Array.from(_.values()).map(($) => ({
|
|
4291
4310
|
group: a($),
|
|
4292
4311
|
children: $
|
|
4293
4312
|
}));
|
|
4294
4313
|
}
|
|
4295
|
-
return (
|
|
4296
|
-
(k(!0), Y(be, null,
|
|
4297
|
-
key: l($.group,
|
|
4314
|
+
return (m, _) => (k(), Y("div", Va, [
|
|
4315
|
+
(k(!0), Y(be, null, ge(o.value, ($, b) => (k(), Y(be, {
|
|
4316
|
+
key: l($.group, b)
|
|
4298
4317
|
}, [
|
|
4299
|
-
s($.group) ? ee(
|
|
4318
|
+
s($.group) ? ee(m.$slots, s($.group), {
|
|
4300
4319
|
key: 0,
|
|
4301
4320
|
group: $.group,
|
|
4302
4321
|
children: $.children,
|
|
4303
|
-
state:
|
|
4304
|
-
actions:
|
|
4305
|
-
renderConfig:
|
|
4306
|
-
index:
|
|
4322
|
+
state: m.state,
|
|
4323
|
+
actions: m.actions,
|
|
4324
|
+
renderConfig: m.renderConfig,
|
|
4325
|
+
index: b,
|
|
4307
4326
|
isEmpty: $.children.length === 0
|
|
4308
|
-
}, void 0, !0) : re(n).group ? ee(
|
|
4327
|
+
}, void 0, !0) : re(n).group ? ee(m.$slots, "group", {
|
|
4309
4328
|
key: 1,
|
|
4310
4329
|
group: $.group,
|
|
4311
4330
|
children: $.children,
|
|
4312
|
-
state:
|
|
4313
|
-
actions:
|
|
4314
|
-
renderConfig:
|
|
4315
|
-
index:
|
|
4331
|
+
state: m.state,
|
|
4332
|
+
actions: m.actions,
|
|
4333
|
+
renderConfig: m.renderConfig,
|
|
4334
|
+
index: b,
|
|
4316
4335
|
isEmpty: $.children.length === 0
|
|
4317
|
-
}, void 0, !0) : (k(),
|
|
4336
|
+
}, void 0, !0) : (k(), H(La, {
|
|
4318
4337
|
key: 2,
|
|
4319
4338
|
group: $.group,
|
|
4320
4339
|
children: $.children,
|
|
4321
|
-
state:
|
|
4322
|
-
actions:
|
|
4323
|
-
"render-config":
|
|
4324
|
-
index:
|
|
4340
|
+
state: m.state,
|
|
4341
|
+
actions: m.actions,
|
|
4342
|
+
"render-config": m.renderConfig,
|
|
4343
|
+
index: b
|
|
4325
4344
|
}, je({ _: 2 }, [
|
|
4326
|
-
|
|
4345
|
+
ge(re(n), (A, g) => ({
|
|
4327
4346
|
name: g,
|
|
4328
4347
|
fn: J((w) => [
|
|
4329
|
-
ee(
|
|
4348
|
+
ee(m.$slots, g, oe({ ref_for: !0 }, w), void 0, !0)
|
|
4330
4349
|
])
|
|
4331
4350
|
}))
|
|
4332
4351
|
]), 1032, ["group", "children", "state", "actions", "render-config", "index"]))
|
|
4333
4352
|
], 64))), 128))
|
|
4334
4353
|
]));
|
|
4335
4354
|
}
|
|
4336
|
-
}),
|
|
4355
|
+
}), Ka = /* @__PURE__ */ ye(Pa, [["__scopeId", "data-v-2be3bbc5"]]);
|
|
4337
4356
|
export {
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
Bn as
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4357
|
+
Dn as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
|
|
4358
|
+
ga as GlobalInfoAutoRenderer,
|
|
4359
|
+
da as GlobalInfoDeleteConfirm,
|
|
4360
|
+
Bn as GlobalInfoFieldControl,
|
|
4361
|
+
En as GlobalInfoFieldValue,
|
|
4362
|
+
ua as GlobalInfoFormRenderer,
|
|
4363
|
+
La as GlobalInfoGroup,
|
|
4364
|
+
Ga as GlobalInfoProvider,
|
|
4365
|
+
Ma as GlobalInfoSectionBlock,
|
|
4366
|
+
ya as GlobalInfoSectionOutlet,
|
|
4367
|
+
Ka as GlobalInfoSections,
|
|
4368
|
+
ha as GlobalInfoTableRenderer,
|
|
4349
4369
|
Tt as JtAttachmentPreview,
|
|
4350
|
-
|
|
4370
|
+
Ha as JtAttachmentPreviewByParams,
|
|
4351
4371
|
tt as JtButton,
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4372
|
+
fo as JtCascader,
|
|
4373
|
+
za as JtCrudTable,
|
|
4374
|
+
mo as JtDatePicker,
|
|
4375
|
+
Do as JtFilterBar,
|
|
4376
|
+
So as JtFormItems,
|
|
4357
4377
|
mt as JtInput,
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4378
|
+
xa as JtPageHeader,
|
|
4379
|
+
No as JtPagination,
|
|
4380
|
+
go as JtSelect,
|
|
4381
|
+
Vo as JtTable,
|
|
4382
|
+
hr as buildGlobalInfoUpdatePayload,
|
|
4383
|
+
pr as createEmptyGlobalInfoViewModel,
|
|
4384
|
+
qa as isGlobalInfoNode,
|
|
4365
4385
|
hn as mergeGlobalInfoChildren,
|
|
4366
|
-
|
|
4386
|
+
mr as normalizeGlobalInfoDetail,
|
|
4367
4387
|
jt as normalizeGlobalInfoTree,
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4388
|
+
vr as resolveGlobalInfoRenderType,
|
|
4389
|
+
Ja as setupJtAttachmentPreview,
|
|
4390
|
+
Gr as useGlobalInfoController,
|
|
4391
|
+
zr as validateGlobalInfoRequiredInfoSet
|
|
4371
4392
|
};
|