@jt-home/mfe-components 1.0.18 → 1.0.20
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 +736 -715
- package/dist/style.css +1 -1
- 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 +10 -1
- 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) => {
|
|
@@ -193,8 +193,8 @@ const uo = /* @__PURE__ */ ce({
|
|
|
193
193
|
s("removeTag", g);
|
|
194
194
|
}
|
|
195
195
|
return (g, w) => {
|
|
196
|
-
const b =
|
|
197
|
-
return k(),
|
|
196
|
+
const b = Wn;
|
|
197
|
+
return k(), H(b, oe({ class: "jt-cascader" }, o.value, {
|
|
198
198
|
"model-value": r.value,
|
|
199
199
|
"onUpdate:modelValue": l,
|
|
200
200
|
onChange: a,
|
|
@@ -207,7 +207,7 @@ const uo = /* @__PURE__ */ ce({
|
|
|
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,9 +401,9 @@ 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,
|
|
406
|
+
(k(!0), Y(be, null, ge(s.options ?? [], (p) => (k(), H(a, oe({
|
|
407
407
|
key: p.value,
|
|
408
408
|
ref_for: !0
|
|
409
409
|
}, p), null, 16))), 128))
|
|
@@ -412,7 +412,7 @@ const uo = /* @__PURE__ */ ce({
|
|
|
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",
|
|
@@ -488,8 +488,8 @@ const uo = /* @__PURE__ */ ce({
|
|
|
488
488
|
}
|
|
489
489
|
return (I, v) => {
|
|
490
490
|
const T = Zt;
|
|
491
|
-
return k(), Y("div",
|
|
492
|
-
(k(!0), Y(be, null,
|
|
491
|
+
return k(), Y("div", yo, [
|
|
492
|
+
(k(!0), Y(be, null, ge(l.value, (h) => (k(), H(T, oe({
|
|
493
493
|
key: h.prop,
|
|
494
494
|
ref_for: !0,
|
|
495
495
|
ref: S(h.prop),
|
|
@@ -499,7 +499,7 @@ const uo = /* @__PURE__ */ ce({
|
|
|
499
499
|
prop: h.prop
|
|
500
500
|
}, _(h)), {
|
|
501
501
|
default: J(() => [
|
|
502
|
-
h.showSlot ? ee(I.$slots, h.prop, { key: 0 }, void 0, !0) : (k(),
|
|
502
|
+
h.showSlot ? ee(I.$slots, h.prop, { key: 0 }, void 0, !0) : (k(), H(xt(a(h)), oe({
|
|
503
503
|
key: 1,
|
|
504
504
|
"model-value": I.formData[h.prop],
|
|
505
505
|
ref_for: !0
|
|
@@ -511,7 +511,7 @@ const uo = /* @__PURE__ */ ce({
|
|
|
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
555
|
searchDone: p
|
|
556
|
-
} =
|
|
556
|
+
} = wo(), _ = V(() => o.option), $ = he(_.value.searchCollapsed ?? !0), S = V(() => o.columns.filter((P) => P.search === !0)), A = V(
|
|
557
557
|
() => Math.max(1, _.value.searchSpan ?? 4)
|
|
558
558
|
), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value), b = V(
|
|
559
559
|
() => Math.max(1, w.value * g.value)
|
|
560
|
-
), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"), v = V(() =>
|
|
560
|
+
), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"), v = V(() => U(_.value.searchLabelWidth ?? 84)), T = V(() => _.value.searchLabelPosition ?? "top"), h = 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(S.value) > b.value), O = V(() => {
|
|
561
561
|
if (!F.value || !$.value) return S.value;
|
|
562
562
|
let P = 0;
|
|
563
563
|
return S.value.filter((Z) => {
|
|
564
|
-
const ae =
|
|
564
|
+
const ae = E(Z);
|
|
565
565
|
return P + ae > b.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`],
|
|
@@ -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) {
|
|
@@ -671,7 +671,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
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,
|
|
@@ -691,34 +691,34 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
691
691
|
"label-position": T.value,
|
|
692
692
|
"label-width": v.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
705
|
search: m,
|
|
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)
|
|
@@ -749,9 +749,9 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
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,7 +763,7 @@ 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`, {
|
|
@@ -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,7 +793,7 @@ 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 =
|
|
796
|
+
const n = e, o = Ee(), r = he(), i = V(() => n.option ?? {}), s = V(() => n.columns.filter((S) => !S.hide));
|
|
797
797
|
function l(S) {
|
|
798
798
|
return !!o[`${S}-header`];
|
|
799
799
|
}
|
|
@@ -822,7 +822,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
822
822
|
}
|
|
823
823
|
return t({ tableRef: r }), (S, 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
828
|
data: S.data,
|
|
@@ -833,20 +833,20 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
833
833
|
class: "jt-table"
|
|
834
834
|
}, i.value.tableProps, Ze(S.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,
|
|
849
|
+
(k(!0), Y(be, null, ge(s.value, (b) => (k(), H(g, oe({
|
|
850
850
|
key: b.prop,
|
|
851
851
|
prop: b.prop,
|
|
852
852
|
label: b.label,
|
|
@@ -866,12 +866,12 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
866
866
|
a(b.prop) ? ee(S.$slots, `${b.prop}-data`, oe({
|
|
867
867
|
key: 0,
|
|
868
868
|
ref_for: !0
|
|
869
|
-
}, j), void 0, !0) : b.dicData ? (k(), Y("span",
|
|
869
|
+
}, j), void 0, !0) : b.dicData ? (k(), Y("span", Fo, fe($(b.dicData, j.row[b.prop])), 1)) : b.formatter ? (k(), Y("span", Bo, fe(b.formatter(j.row, j.column, j.row[b.prop], j.$index)), 1)) : (k(), Y("span", Eo, fe(j.row[b.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,
|
|
@@ -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,7 +944,7 @@ 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 =
|
|
947
|
+
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), p = he(), _ = V(() => o.option), $ = V(() => _.value.searchShow !== !1), S = V(() => _.value.paginationShow !== !1), A = V(
|
|
948
948
|
() => o.columns.filter((h) => h.search && !!a[`${h.prop}-search`])
|
|
949
949
|
), g = V(
|
|
950
950
|
() => o.columns.filter((h) => !h.hide && !!a[`${h.prop}-header`])
|
|
@@ -979,10 +979,10 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
979
979
|
/** 关闭筛选表单禁用。 */
|
|
980
980
|
searchDone: T
|
|
981
981
|
}), (h, N) => {
|
|
982
|
-
const y =
|
|
983
|
-
return k(), Y("div",
|
|
982
|
+
const y = Qn;
|
|
983
|
+
return k(), Y("div", Ro, [
|
|
984
984
|
ee(h.$slots, "header", {}, void 0, !0),
|
|
985
|
-
$.value ? (k(),
|
|
985
|
+
$.value ? (k(), H(Do, {
|
|
986
986
|
key: 0,
|
|
987
987
|
ref_key: "filterBarRef",
|
|
988
988
|
ref: p,
|
|
@@ -993,7 +993,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
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
999
|
ee(h.$slots, `${F.prop}-search`, Me(Fe(O)), void 0, !0)
|
|
@@ -1003,7 +1003,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1003
1003
|
re(a).toolbar ? (k(), Y("div", zo, [
|
|
1004
1004
|
ee(h.$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
1009
|
data: h.data,
|
|
@@ -1011,13 +1011,13 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1011
1011
|
option: _.value,
|
|
1012
1012
|
"table-events": h.tableEvents
|
|
1013
1013
|
}, je({ _: 2 }, [
|
|
1014
|
-
|
|
1014
|
+
ge(g.value, (F) => ({
|
|
1015
1015
|
name: `${F.prop}-header`,
|
|
1016
1016
|
fn: J((O) => [
|
|
1017
1017
|
ee(h.$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
1023
|
ee(h.$slots, `${F.prop}-data`, Me(Fe(O)), void 0, !0)
|
|
@@ -1033,7 +1033,7 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1033
1033
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1034
1034
|
[y, _.value.loading]
|
|
1035
1035
|
]),
|
|
1036
|
-
S.value ? (k(),
|
|
1036
|
+
S.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),
|
|
@@ -1047,10 +1047,10 @@ const wo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
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, {
|
|
@@ -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,66 +1139,66 @@ 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", p = "week", _ = "month", $ = "quarter", S = "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+)?$/, b = /\[([^\]]+)]|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(
|
|
1143
|
-
var D = ["th", "st", "nd", "rd"], B =
|
|
1144
|
-
return "[" +
|
|
1145
|
-
} }, I = function(
|
|
1146
|
-
var u = String(
|
|
1147
|
-
return !u || u.length >= D ?
|
|
1148
|
-
}, v = { s: I, z: function(
|
|
1149
|
-
var D = -
|
|
1142
|
+
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", p = "week", _ = "month", $ = "quarter", S = "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+)?$/, b = /\[([^\]]+)]|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
|
+
}, v = { s: I, z: function(R) {
|
|
1149
|
+
var D = -R.utcOffset(), B = Math.abs(D), u = Math.floor(B / 60), m = B % 60;
|
|
1150
1150
|
return (D <= 0 ? "+" : "-") + I(u, 2, "0") + ":" + I(m, 2, "0");
|
|
1151
|
-
}, m: function
|
|
1152
|
-
if (D.date() < B.date()) return -
|
|
1153
|
-
var u = 12 * (B.year() - D.year()) + (B.month() - D.month()), m = D.clone().add(u, _), C = B - m < 0,
|
|
1154
|
-
return +(-(u + (B - m) / (C ? m -
|
|
1155
|
-
}, a: function(
|
|
1156
|
-
return
|
|
1157
|
-
}, p: function(
|
|
1158
|
-
return { M: _, y: S, w: p, d: c, D: A, h: a, m: l, s, ms: i, Q: $ }[
|
|
1159
|
-
}, u: function(
|
|
1160
|
-
return
|
|
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()), m = D.clone().add(u, _), C = B - m < 0, L = D.clone().add(u + (C ? -1 : 1), _);
|
|
1154
|
+
return +(-(u + (B - m) / (C ? m - L : L - m)) || 0);
|
|
1155
|
+
}, a: function(R) {
|
|
1156
|
+
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
1157
|
+
}, p: function(R) {
|
|
1158
|
+
return { M: _, y: S, w: p, 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
1161
|
} }, T = "en", h = {};
|
|
1162
1162
|
h[T] = j;
|
|
1163
|
-
var N = "$isDayjsObject", y = function(
|
|
1164
|
-
return
|
|
1165
|
-
}, F = function
|
|
1163
|
+
var N = "$isDayjsObject", y = function(R) {
|
|
1164
|
+
return R instanceof ne || !(!R || !R[N]);
|
|
1165
|
+
}, F = function R(D, B, u) {
|
|
1166
1166
|
var m;
|
|
1167
1167
|
if (!D) return T;
|
|
1168
1168
|
if (typeof D == "string") {
|
|
1169
1169
|
var C = D.toLowerCase();
|
|
1170
1170
|
h[C] && (m = C), B && (h[C] = B, m = C);
|
|
1171
|
-
var
|
|
1172
|
-
if (!m &&
|
|
1171
|
+
var L = D.split("-");
|
|
1172
|
+
if (!m && L.length > 1) return R(L[0]);
|
|
1173
1173
|
} else {
|
|
1174
|
-
var
|
|
1175
|
-
h[
|
|
1174
|
+
var E = D.name;
|
|
1175
|
+
h[E] = D, m = E;
|
|
1176
1176
|
}
|
|
1177
1177
|
return !u && m && (T = m), m || !u && T;
|
|
1178
|
-
}, O = function(
|
|
1179
|
-
if (y(
|
|
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 = v;
|
|
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
1193
|
var m = u.date, C = u.utc;
|
|
1194
1194
|
if (m === null) return /* @__PURE__ */ new Date(NaN);
|
|
1195
|
-
if (
|
|
1195
|
+
if (z.u(m)) return /* @__PURE__ */ new Date();
|
|
1196
1196
|
if (m instanceof Date) return new Date(m);
|
|
1197
1197
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
1198
|
-
var
|
|
1199
|
-
if (
|
|
1200
|
-
var
|
|
1201
|
-
return C ? new Date(Date.UTC(
|
|
1198
|
+
var L = m.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
1204
|
return new Date(m);
|
|
@@ -1207,7 +1207,7 @@ var an = { exports: {} };
|
|
|
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) {
|
|
@@ -1218,26 +1218,26 @@ var an = { exports: {} };
|
|
|
1218
1218
|
}, D.isBefore = function(B, u) {
|
|
1219
1219
|
return this.endOf(u) < O(B);
|
|
1220
1220
|
}, D.$g = function(B, u, m) {
|
|
1221
|
-
return
|
|
1221
|
+
return z.u(B) ? this[u] : this.set(m, 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 m = this, C = !!
|
|
1228
|
-
var Se =
|
|
1227
|
+
var m = this, C = !!z.u(u) || u, L = z.p(B), E = function(pe, de) {
|
|
1228
|
+
var Se = z.w(m.$u ? Date.UTC(m.$y, de, pe) : new Date(m.$y, de, pe), m);
|
|
1229
1229
|
return C ? Se : Se.endOf(c);
|
|
1230
1230
|
}, q = function(pe, de) {
|
|
1231
|
-
return
|
|
1232
|
-
},
|
|
1233
|
-
switch (
|
|
1231
|
+
return z.w(m.toDate()[pe].apply(m.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), m);
|
|
1232
|
+
}, U = this.$W, G = this.$M, X = this.$D, P = "set" + (this.$u ? "UTC" : "");
|
|
1233
|
+
switch (L) {
|
|
1234
1234
|
case S:
|
|
1235
|
-
return C ?
|
|
1235
|
+
return C ? E(1, 0) : E(31, 11);
|
|
1236
1236
|
case _:
|
|
1237
|
-
return C ?
|
|
1237
|
+
return C ? E(1, G) : E(0, G + 1);
|
|
1238
1238
|
case p:
|
|
1239
|
-
var Z = this.$locale().weekStart || 0, ae = (
|
|
1240
|
-
return
|
|
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,38 +1253,38 @@ 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 m, C =
|
|
1256
|
+
var m, C = z.p(B), L = "set" + (this.$u ? "UTC" : ""), E = (m = {}, m[c] = L + "Date", m[A] = L + "Date", m[_] = L + "Month", m[S] = L + "FullYear", m[a] = L + "Hours", m[l] = L + "Minutes", m[s] = L + "Seconds", m[i] = L + "Milliseconds", m)[C], q = C === c ? this.$D + (u - this.$W) : u;
|
|
1257
1257
|
if (C === _ || C === S) {
|
|
1258
|
-
var
|
|
1259
|
-
|
|
1260
|
-
} else
|
|
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
1267
|
var m, 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 = (m = {}, m[l] = o, m[a] = r, m[s] = n, m)[
|
|
1278
|
-
return
|
|
1273
|
+
if (L === _) return this.set(_, this.$M + B);
|
|
1274
|
+
if (L === S) return this.set(S, this.$y + B);
|
|
1275
|
+
if (L === c) return E(1);
|
|
1276
|
+
if (L === p) return E(7);
|
|
1277
|
+
var q = (m = {}, m[l] = o, m[a] = r, m[s] = n, m)[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
1282
|
var u = this, m = this.$locale();
|
|
1283
1283
|
if (!this.isValid()) return m.invalidDate || g;
|
|
1284
|
-
var C = B || "YYYY-MM-DDTHH:mm:ssZ",
|
|
1284
|
+
var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, U = this.$M, G = m.weekdays, X = m.months, P = m.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;
|
|
@@ -1295,62 +1295,62 @@ var an = { exports: {} };
|
|
|
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(m.monthsShort,
|
|
1304
|
+
return Z(m.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(m.weekdaysMin, u.$W,
|
|
1314
|
+
return Z(m.weekdaysMin, u.$W, G, 2);
|
|
1315
1315
|
case "ddd":
|
|
1316
|
-
return Z(m.weekdaysShort, u.$W,
|
|
1316
|
+
return Z(m.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
1349
|
}, D.diff = function(B, u, m) {
|
|
1350
|
-
var C,
|
|
1351
|
-
return
|
|
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 (
|
|
1353
|
+
switch (E) {
|
|
1354
1354
|
case S:
|
|
1355
1355
|
C = X() / 12;
|
|
1356
1356
|
break;
|
|
@@ -1361,24 +1361,24 @@ var an = { exports: {} };
|
|
|
1361
1361
|
C = X() / 3;
|
|
1362
1362
|
break;
|
|
1363
1363
|
case p:
|
|
1364
|
-
C = (
|
|
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 m ? C :
|
|
1381
|
+
return m ? C : z.a(C);
|
|
1382
1382
|
}, D.daysInMonth = function() {
|
|
1383
1383
|
return this.endOf(_).$D;
|
|
1384
1384
|
}, D.$locale = function() {
|
|
@@ -1388,7 +1388,7 @@ var an = { exports: {} };
|
|
|
1388
1388
|
var m = this.clone(), C = F(B, u, !0);
|
|
1389
1389
|
return C && (m.$L = C), m;
|
|
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,16 +1397,16 @@ 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", S], ["$D", A]].forEach(function(
|
|
1403
|
-
x[
|
|
1404
|
-
return this.$g(D,
|
|
1402
|
+
return O.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", _], ["$y", S], ["$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 *
|
|
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
1410
|
}, O.en = h[T], O.Ls = h, O.p = {}, O;
|
|
1411
1411
|
});
|
|
1412
1412
|
})(an);
|
|
@@ -1472,9 +1472,9 @@ var sn = { exports: {} };
|
|
|
1472
1472
|
function g(w) {
|
|
1473
1473
|
var b, j;
|
|
1474
1474
|
b = w, j = a && a.formats;
|
|
1475
|
-
for (var I = (w = b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O,
|
|
1475
|
+
for (var I = (w = b.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
1480
|
})).match(o), v = I.length, T = 0; T < v; T += 1) {
|
|
@@ -1482,21 +1482,21 @@ var sn = { exports: {} };
|
|
|
1482
1482
|
I[T] = F ? { regex: y, parser: F } : h.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 < v; 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), m = D.exec(u)[0];
|
|
1490
|
+
B.call(z, m), O = O.replace(m, "");
|
|
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
1502
|
return function(w, b, j) {
|
|
@@ -1507,34 +1507,34 @@ var sn = { exports: {} };
|
|
|
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, m, C, L) {
|
|
1512
1512
|
try {
|
|
1513
1513
|
if (["x", "X"].indexOf(m) > -1) return new Date((m === "X" ? 1e3 : 1) * u);
|
|
1514
|
-
var
|
|
1515
|
-
q && !
|
|
1514
|
+
var E = g(m)(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
1521
|
}(h, F, N, j), this.init(), x && x !== !0 && (this.$L = this.locale(x).$L), ne && h != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
|
|
1522
|
-
} else if (F instanceof Array) for (var
|
|
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
1531
|
else v.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) {
|
|
@@ -1584,8 +1584,8 @@ var ln = { exports: {} };
|
|
|
1584
1584
|
var j = function(h, N, y) {
|
|
1585
1585
|
var F = h - 60 * N * 1e3, O = c(F, y);
|
|
1586
1586
|
if (N === O) return [F, N];
|
|
1587
|
-
var
|
|
1588
|
-
return O ===
|
|
1587
|
+
var z = c(F -= 60 * (O - N) * 1e3, y);
|
|
1588
|
+
return O === z ? [F, O] : [h - 60 * Math.min(O, z) * 1e3, Math.max(O, z)];
|
|
1589
1589
|
}(s.utc($, g).valueOf(), b, w), I = j[0], v = j[1], T = s(I).utcOffset(v);
|
|
1590
1590
|
return T.$x.$timezone = w, T;
|
|
1591
1591
|
}, s.tz.guess = function() {
|
|
@@ -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) {
|
|
@@ -1671,22 +1671,22 @@ var cn = { exports: {} };
|
|
|
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,7 +1796,7 @@ 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
1801
|
const l = { url: i }, a = De(o.name), c = De(o.mimeType), p = De(o.extension);
|
|
1802
1802
|
return a && (l.name = a), c && (l.mimeType = c), p && (l.extension = p), {
|
|
@@ -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,30 +1983,30 @@ 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 =
|
|
2009
|
+
const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = wr(r.infSetValues ?? r.rows ?? r.data, s), a = l[0] ? St(l[0]) : bn(s), c = le(r.tag), p = Q(
|
|
2010
2010
|
r.tagId ?? r.infTagId ?? c.tagId ?? c.infTagId ?? i.raw.tagId ?? i.raw.infTagId
|
|
2011
2011
|
), _ = Q(t.tagId ?? n?.tagId), $ = Q(n?.key), S = o ? t.infSetId ?? n?.infSetId : void 0, A = o ? t.setId : void 0, g = o ? n?.code : void 0, w = i.setId || Q(r.setId), b = Q(r.infSetId) || w || Q(S), j = w || Q(A ?? b), I = i.code || Q(r.code ?? g ?? j), v = j || I || b || p, T = {
|
|
2012
2012
|
key: v,
|
|
@@ -2018,7 +2018,7 @@ function Nt(e, t, n, o) {
|
|
|
2018
2018
|
ownerNodeKey: $ || void 0,
|
|
2019
2019
|
infSetId: b,
|
|
2020
2020
|
title: i.name || Q(r.name ?? n?.tagName ?? v),
|
|
2021
|
-
renderType:
|
|
2021
|
+
renderType: vr(i),
|
|
2022
2022
|
mark: i,
|
|
2023
2023
|
fields: s,
|
|
2024
2024
|
model: a,
|
|
@@ -2028,13 +2028,13 @@ function Nt(e, t, n, o) {
|
|
|
2028
2028
|
};
|
|
2029
2029
|
return T.renderType === "form" && l.length === 0 && (T.rows = [{ ...a, __rowKey: `${v}-0` }]), T;
|
|
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,27 +2066,27 @@ 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
|
|
2084
|
+
function wr(e, t) {
|
|
2085
2085
|
if (Array.isArray(e) && e.some((r) => {
|
|
2086
|
-
const i =
|
|
2086
|
+
const i = le(r);
|
|
2087
2087
|
return t.some((s) => i[s.code] !== void 0 || i[s.key] !== void 0);
|
|
2088
2088
|
}))
|
|
2089
|
-
return e.map((r, i) => ({ ...
|
|
2089
|
+
return e.map((r, i) => ({ ...le(r), __rowKey: Q(le(r).__rowKey ?? le(r).key ?? i) }));
|
|
2090
2090
|
const n = bn(t);
|
|
2091
2091
|
return Object.keys(n).length ? [{ ...n, __rowKey: "0" }] : [];
|
|
2092
2092
|
}
|
|
@@ -2094,10 +2094,10 @@ 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,19 +2121,19 @@ 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}`, p = t.code ||
|
|
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}`, p = 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,
|
|
@@ -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({}), p = Pe({}), _ = he([]), $ = Pe({}), S = 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];
|
|
@@ -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
|
-
}), v =
|
|
2515
|
+
}), v = 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,22 +2537,22 @@ const Rr = (e) => {
|
|
|
2527
2537
|
activeNode: l.value,
|
|
2528
2538
|
activeSection: a.value,
|
|
2529
2539
|
searchText: d?.searchText
|
|
2530
|
-
}),
|
|
2531
|
-
return v(
|
|
2540
|
+
}), K = { ...f, params: M }, W = d && { ...d, params: M };
|
|
2541
|
+
return v(K, W);
|
|
2532
2542
|
}, h = (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 = h(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)
|
|
@@ -2555,9 +2565,9 @@ const Rr = (e) => {
|
|
|
2555
2565
|
return p.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
2573
|
const d = h(i.value, f);
|
|
@@ -2567,12 +2577,12 @@ const Rr = (e) => {
|
|
|
2567
2577
|
return M?.ownerNodeKey ? h(i.value, M.ownerNodeKey) ?? l.value : M || l.value && We(l.value).includes(f) ? l.value : null;
|
|
2568
2578
|
}
|
|
2569
2579
|
return f?.ownerNodeKey ? h(i.value, f.ownerNodeKey) ?? l.value : l.value;
|
|
2570
|
-
}, ne = (f = a.value) => !f ||
|
|
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
|
|
2583
|
+
return Ue();
|
|
2574
2584
|
const M = p.value[d] ?? d;
|
|
2575
|
-
return
|
|
2585
|
+
return Ue({
|
|
2576
2586
|
...$.value[d],
|
|
2577
2587
|
...$.value[M],
|
|
2578
2588
|
// 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
|
|
@@ -2580,11 +2590,11 @@ const Rr = (e) => {
|
|
|
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
|
// 合并本次状态补丁。
|
|
@@ -2594,7 +2604,7 @@ const Rr = (e) => {
|
|
|
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,16 +2618,16 @@ 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
2632
|
currentAliasMap: p.value,
|
|
2623
2633
|
currentOrder: _.value,
|
|
@@ -2628,45 +2638,45 @@ const Rr = (e) => {
|
|
|
2628
2638
|
targetKey: M,
|
|
2629
2639
|
activeSection: a.value
|
|
2630
2640
|
});
|
|
2631
|
-
return c.value =
|
|
2641
|
+
return c.value = K.sectionMap, p.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
2660
|
}, m = async (f = a.value ?? l.value) => {
|
|
2651
|
-
const d = ne(f), M =
|
|
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) => m(f),
|
|
2701
|
+
}, C = (f = a.value) => m(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
2707
|
return d ? c.value[p.value[d] ?? d] ?? null : null;
|
|
2698
|
-
},
|
|
2699
|
-
const d =
|
|
2708
|
+
}, E = async (f = l.value) => f ? (await m(f), s.value) : (s.value = null, a.value = null, c.value = {}, p.value = {}, _.value = [], $.value = {}, null), q = async (f) => {
|
|
2709
|
+
const d = Pr(f);
|
|
2700
2710
|
if (!d)
|
|
2701
2711
|
return f.children;
|
|
2702
|
-
const M = b(f),
|
|
2712
|
+
const M = b(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
|
-
},
|
|
2725
|
+
}, G = async (f) => {
|
|
2716
2726
|
const d = typeof f == "string" ? h(i.value, f) : f;
|
|
2717
|
-
return d ? (l.value = d, a.value = null, S.value = [], await
|
|
2727
|
+
return d ? (l.value = d, a.value = null, S.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 = h(
|
|
2744
|
+
i.value = K, a.value = null, c.value = {}, p.value = {}, _.value = [], $.value = {}, S.value = [];
|
|
2745
|
+
const W = h(K, e.initialActiveNodeKey) ?? h(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
|
|
@@ -2757,58 +2767,58 @@ const Rr = (e) => {
|
|
|
2757
2767
|
return !!(d && S.value.includes(d));
|
|
2758
2768
|
}, ae = (f = a.value) => {
|
|
2759
2769
|
const d = F(f);
|
|
2760
|
-
!d || Z(d) || (S.value = [...S.value, d],
|
|
2770
|
+
!d || Z(d) || (S.value = [...S.value, d], R(d, { editing: !0 }));
|
|
2761
2771
|
}, pe = (f = a.value) => {
|
|
2762
2772
|
const d = F(f);
|
|
2763
2773
|
d && (S.value = S.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,9 +2872,9 @@ 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。
|
|
@@ -2872,7 +2882,7 @@ const Rr = (e) => {
|
|
|
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,7 +2995,7 @@ const Rr = (e) => {
|
|
|
2976
2995
|
formatOperationParams: {}
|
|
2977
2996
|
},
|
|
2978
2997
|
setup(e) {
|
|
2979
|
-
const t = e, n =
|
|
2998
|
+
const t = e, n = Gr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
|
|
2980
2999
|
return (p, _) => ee(p.$slots, "default", Me(Fe({
|
|
2981
3000
|
viewModel: re(o),
|
|
2982
3001
|
nodes: re(r),
|
|
@@ -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,13 +3042,13 @@ 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), p = 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
|
-
}), S = V(() =>
|
|
3031
|
-
const x = n.field.props?.activeValue ?? n.field.props?.["active-value"],
|
|
3032
|
-
return x !== void 0 ||
|
|
3049
|
+
}), S = 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);
|
|
3033
3052
|
}), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)), b = 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" ? "请选择文件" : "请输入");
|
|
3034
3053
|
let v;
|
|
3035
3054
|
function T(x) {
|
|
@@ -3039,7 +3058,7 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
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);
|
|
@@ -3052,19 +3071,19 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
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
|
-
|
|
3077
|
+
Un(() => {
|
|
3059
3078
|
v && clearTimeout(v);
|
|
3060
3079
|
});
|
|
3061
3080
|
function ne(x) {
|
|
3062
|
-
const
|
|
3081
|
+
const R = x.target, D = Array.from(R.files ?? []), B = n.field.props?.multiple ? D : D[0] ?? null;
|
|
3063
3082
|
T(B), h(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, m = 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, {
|
|
@@ -3083,14 +3102,14 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3083
3102
|
onChange: h
|
|
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, {
|
|
@@ -3101,7 +3120,7 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3101
3120
|
"value-format": "YYYY-MM-DD",
|
|
3102
3121
|
"onUpdate:modelValue": T,
|
|
3103
3122
|
onChange: h
|
|
3104
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(),
|
|
3123
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), H(m, oe({
|
|
3105
3124
|
key: 2,
|
|
3106
3125
|
class: "global-info-field-control"
|
|
3107
3126
|
}, x.field.props, {
|
|
@@ -3111,7 +3130,7 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3111
3130
|
"controls-position": "right",
|
|
3112
3131
|
"onUpdate:modelValue": T,
|
|
3113
3132
|
onChange: h
|
|
3114
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(),
|
|
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, {
|
|
@@ -3121,7 +3140,7 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
3121
3140
|
onChange: h
|
|
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,27 +3156,27 @@ 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(b.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),
|
|
@@ -3175,13 +3194,13 @@ const xr = ["disabled", "accept", "multiple"], qr = {
|
|
|
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, p) => (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
|
-
p < i.value.length - 1 ? (k(), Y("span",
|
|
3229
|
+
}, fe(c.text), 9, na)) : (k(), Y("span", oa, fe(c.text), 1)),
|
|
3230
|
+
p < 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,7 +3284,7 @@ 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,
|
|
@@ -3337,7 +3356,7 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3337
3356
|
}
|
|
3338
3357
|
async function S(v = o.value, T) {
|
|
3339
3358
|
for (const h of i.value) {
|
|
3340
|
-
if (T && !
|
|
3359
|
+
if (T && !Vn(h, T)) continue;
|
|
3341
3360
|
const N = v[h.code];
|
|
3342
3361
|
if (!j(h, N)) continue;
|
|
3343
3362
|
const y = ot(t.section.key, h, v), F = b(h), O = r.get(F);
|
|
@@ -3345,7 +3364,7 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3345
3364
|
r.set(F, y);
|
|
3346
3365
|
continue;
|
|
3347
3366
|
}
|
|
3348
|
-
O !== y && await $(h,
|
|
3367
|
+
O !== y && await $(h, An(h, N), v);
|
|
3349
3368
|
}
|
|
3350
3369
|
}
|
|
3351
3370
|
Be(
|
|
@@ -3388,14 +3407,14 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3388
3407
|
return v.key || v.id || v.code;
|
|
3389
3408
|
}
|
|
3390
3409
|
function j(v, T) {
|
|
3391
|
-
return
|
|
3410
|
+
return Pn(v, T, t.editing);
|
|
3392
3411
|
}
|
|
3393
3412
|
function I(v) {
|
|
3394
3413
|
return v.required || v.isRequired;
|
|
3395
3414
|
}
|
|
3396
3415
|
return (v, T) => {
|
|
3397
|
-
const h = Zt, N =
|
|
3398
|
-
return k(),
|
|
3416
|
+
const h = 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,7 +3422,7 @@ 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,
|
|
3425
|
+
(k(!0), Y(be, null, ge(i.value, (O) => (k(), H(N, {
|
|
3407
3426
|
key: b(O),
|
|
3408
3427
|
span: w(O)
|
|
3409
3428
|
}, {
|
|
@@ -3413,8 +3432,8 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
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
|
]),
|
|
@@ -3422,14 +3441,14 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3422
3441
|
g(O) ? ee(v.$slots, g(O), oe({
|
|
3423
3442
|
key: 0,
|
|
3424
3443
|
ref_for: !0
|
|
3425
|
-
}, A(O)), void 0, !0) : v.editing && !O.readonly ? (k(),
|
|
3444
|
+
}, A(O)), void 0, !0) : v.editing && !O.readonly ? (k(), H(Bn, {
|
|
3426
3445
|
key: 1,
|
|
3427
3446
|
field: O,
|
|
3428
3447
|
"model-value": o.value[O.code],
|
|
3429
3448
|
section: v.section,
|
|
3430
|
-
onLoadOptions: (
|
|
3431
|
-
"onUpdate:modelValue": (
|
|
3432
|
-
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(),
|
|
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],
|
|
@@ -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(() => {
|
|
@@ -3521,97 +3540,97 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3521
3540
|
node: t.node,
|
|
3522
3541
|
state: t.state,
|
|
3523
3542
|
actions: t.actions
|
|
3524
|
-
}) : u.
|
|
3543
|
+
}) : u.allowDelete !== !1);
|
|
3525
3544
|
}
|
|
3526
|
-
function S(u, m, C,
|
|
3527
|
-
const
|
|
3545
|
+
function S(u, m, 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[m] = {
|
|
3554
|
+
...U
|
|
3555
|
+
}, t.actions.updateTableRows(t.section, E), A(C, L, U, m, E), I(C, U);
|
|
3537
3556
|
}
|
|
3538
|
-
function A(u, m, C,
|
|
3557
|
+
function A(u, m, C, L, E) {
|
|
3539
3558
|
const q = t.renderConfig?.onFieldBusinessChange;
|
|
3540
3559
|
if (q)
|
|
3541
3560
|
try {
|
|
3542
|
-
const
|
|
3561
|
+
const U = g(u, m), G = { ...t.section.model, ...C }, X = {
|
|
3543
3562
|
field: u,
|
|
3544
3563
|
value: m,
|
|
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: b(t.section,
|
|
3573
|
+
sectionValues: b(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
3585
|
function g(u, m) {
|
|
3567
3586
|
const C = it(u, m);
|
|
3568
|
-
return (u.options ?? []).filter((
|
|
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
3592
|
function b(u, m) {
|
|
3574
|
-
const
|
|
3575
|
-
const q =
|
|
3576
|
-
return [
|
|
3593
|
+
const L = w().flatMap((E) => {
|
|
3594
|
+
const q = E.key === u.key ? m : 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, m, C = {},
|
|
3581
|
-
const
|
|
3582
|
-
if (!Ln(C) && rt(u,
|
|
3583
|
-
c.set(q,
|
|
3599
|
+
async function j(u, m, C = {}, L = m) {
|
|
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 p(u,
|
|
3607
|
+
await p(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
3615
|
async function I(u, m) {
|
|
3597
3616
|
const C = m ? [m] : t.section.rows;
|
|
3598
|
-
for (const
|
|
3599
|
-
const
|
|
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
3632
|
function v(u, m, C) {
|
|
3614
|
-
const
|
|
3633
|
+
const L = m[u.code];
|
|
3615
3634
|
return {
|
|
3616
3635
|
field: u,
|
|
3617
3636
|
section: t.section,
|
|
@@ -3620,24 +3639,24 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3620
3639
|
row: m,
|
|
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) => S(m, C, u, E)
|
|
3628
3647
|
};
|
|
3629
3648
|
}
|
|
3630
3649
|
function T(u) {
|
|
3631
3650
|
const m = String(u.code || "").trim(), C = m ? `field-${m}` : "";
|
|
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
3655
|
function h(u) {
|
|
3637
3656
|
return !u.readonly && !u.disabled;
|
|
3638
3657
|
}
|
|
3639
3658
|
function N(u, m) {
|
|
3640
|
-
return
|
|
3659
|
+
return Pn(u, m, 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
3680
|
const m = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
|
|
3662
3681
|
if (m != null && m !== "") return String(m);
|
|
3663
|
-
const C = u,
|
|
3664
|
-
if (
|
|
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;
|
|
@@ -3681,12 +3700,12 @@ const ra = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3681
3700
|
},
|
|
3682
3701
|
{ immediate: !0 }
|
|
3683
3702
|
), (u, m) => {
|
|
3684
|
-
const C = en,
|
|
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
|
-
}, v(
|
|
3740
|
+
}, v(G, X, P)), void 0, !0) : u.editing && h(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) => S(X, P,
|
|
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) => S(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,9 +3775,9 @@ 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
|
}),
|
|
@@ -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,7 +3869,7 @@ 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,
|
|
@@ -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,7 +3958,7 @@ 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,
|
|
@@ -3984,7 +4003,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
3984
4003
|
function v() {
|
|
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() {
|
|
@@ -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(p.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,7 +4061,7 @@ 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,
|
|
@@ -4063,7 +4082,7 @@ 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
4088
|
disabled: l.value.saving || S.value,
|
|
@@ -4089,12 +4108,12 @@ const va = /* @__PURE__ */ ce({
|
|
|
4089
4108
|
], !0)
|
|
4090
4109
|
], !0)
|
|
4091
4110
|
])),
|
|
4092
|
-
te("div",
|
|
4111
|
+
te("div", Ca, [
|
|
4093
4112
|
S.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
4119
|
label: p.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,7 +4159,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4140
4159
|
renderConfig: {}
|
|
4141
4160
|
},
|
|
4142
4161
|
setup(e) {
|
|
4143
|
-
const t = e, n =
|
|
4162
|
+
const t = e, n = Ee(), o = V(() => t.group.tagName || t.group.label || "-"), r = V(() => t.children.length <= 1);
|
|
4144
4163
|
function i(c, p) {
|
|
4145
4164
|
const _ = t.actions.getSection(c);
|
|
4146
4165
|
return {
|
|
@@ -4163,7 +4182,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4163
4182
|
}
|
|
4164
4183
|
function s(c) {
|
|
4165
4184
|
const p = t.actions.getSection(c);
|
|
4166
|
-
return Ct(n, "section",
|
|
4185
|
+
return Ct(n, "section", Nn(c, p));
|
|
4167
4186
|
}
|
|
4168
4187
|
function l(c, p) {
|
|
4169
4188
|
return c.key || c.id || c.infSetId || c.tagId || `${p}`;
|
|
@@ -4171,7 +4190,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4171
4190
|
function a(c) {
|
|
4172
4191
|
return `global-info-section-${l(c, 0)}`;
|
|
4173
4192
|
}
|
|
4174
|
-
return (c, p) => (k(), Y("section",
|
|
4193
|
+
return (c, p) => (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",
|
|
4204
|
+
te("header", Oa, [
|
|
4186
4205
|
p[0] || (p[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
|
|
4187
|
-
te("h2",
|
|
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), (S, 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,
|
|
@@ -4241,7 +4260,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
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,7 +4270,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4251
4270
|
renderConfig: {}
|
|
4252
4271
|
},
|
|
4253
4272
|
setup(e) {
|
|
4254
|
-
const t = e, n =
|
|
4273
|
+
const t = e, n = Ee(), o = V(() => {
|
|
4255
4274
|
const p = t.nodes.filter((b) => r(b).length > 0), _ = t.nodes.filter((b) => r(b).length === 0), $ = _.filter((b) => i(b)), S = _.filter((b) => !i(b)), A = p.map((b) => ({ group: b, children: r(b) })), g = $.map((b) => ({ group: b, children: [b] }));
|
|
4256
4275
|
if (A.length === 0)
|
|
4257
4276
|
return $.length > 0 ? g : c(S);
|
|
@@ -4265,7 +4284,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4265
4284
|
return !String(p.parentId || p.parentTagId || "").trim();
|
|
4266
4285
|
}
|
|
4267
4286
|
function s(p) {
|
|
4268
|
-
return Ct(n, "group",
|
|
4287
|
+
return Ct(n, "group", jn(p));
|
|
4269
4288
|
}
|
|
4270
4289
|
function l(p, _) {
|
|
4271
4290
|
return p.key || p.id || p.tagId || `${_}`;
|
|
@@ -4292,8 +4311,8 @@ const va = /* @__PURE__ */ ce({
|
|
|
4292
4311
|
children: $
|
|
4293
4312
|
}));
|
|
4294
4313
|
}
|
|
4295
|
-
return (p, _) => (k(), Y("div",
|
|
4296
|
-
(k(!0), Y(be, null,
|
|
4314
|
+
return (p, _) => (k(), Y("div", Va, [
|
|
4315
|
+
(k(!0), Y(be, null, ge(o.value, ($, S) => (k(), Y(be, {
|
|
4297
4316
|
key: l($.group, S)
|
|
4298
4317
|
}, [
|
|
4299
4318
|
s($.group) ? ee(p.$slots, s($.group), {
|
|
@@ -4314,7 +4333,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4314
4333
|
renderConfig: p.renderConfig,
|
|
4315
4334
|
index: S,
|
|
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,
|
|
@@ -4323,7 +4342,7 @@ const va = /* @__PURE__ */ ce({
|
|
|
4323
4342
|
"render-config": p.renderConfig,
|
|
4324
4343
|
index: S
|
|
4325
4344
|
}, je({ _: 2 }, [
|
|
4326
|
-
|
|
4345
|
+
ge(re(n), (A, g) => ({
|
|
4327
4346
|
name: g,
|
|
4328
4347
|
fn: J((w) => [
|
|
4329
4348
|
ee(p.$slots, g, oe({ ref_for: !0 }, w), void 0, !0)
|
|
@@ -4333,39 +4352,41 @@ const va = /* @__PURE__ */ ce({
|
|
|
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
|
};
|