@jt-home/mfe-components 1.0.24 → 1.0.26
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/JtAttachmentPreview/index.cjs +1 -1
- package/dist/JtAttachmentPreview/index.mjs +38 -774
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +633 -586
- package/dist/service-DArBf0bT.cjs +1 -0
- package/dist/service-bNdH26sx.js +760 -0
- package/dist/style.css +1 -1
- package/dist/types/components/JtAttachmentPreview/index.d.ts +1 -9
- package/dist/types/components/JtAttachmentPreview/lazy.d.ts +9 -0
- package/dist/types/components/JtAttachmentPreview/rootLazy.d.ts +9 -0
- package/dist/types/components/JtAttachmentPreview/service.d.ts +9 -0
- package/dist/types/components/form/item/JtCascader/cascaderProps.d.ts +1 -0
- package/dist/types/components/form/item/JtCascader/index.vue.d.ts +1 -0
- package/dist/types/components/form/item/JtDatePicker/index.vue.d.ts +4 -1
- package/dist/types/components/index.d.ts +2 -2
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { defineComponent as ce, useAttrs as
|
|
3
|
-
import { ElButton as It, ElIcon as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const gt = 2, ao = 3;
|
|
8
|
-
function so(e) {
|
|
2
|
+
import { defineComponent as ce, useAttrs as Kn, computed as P, openBlock as k, createBlock as U, mergeProps as oe, toHandlers as Ze, withCtx as J, renderSlot as ee, resolveDynamicComponent as Gt, createCommentVNode as ue, ref as he, watch as Be, mergeDefaults as Yn, withKeys as Hn, createElementBlock as Y, Fragment as be, renderList as ge, normalizeStyle as Kt, nextTick as Un, useSlots as Ee, normalizeClass as Ue, createVNode as we, withModifiers as Yt, unref as re, createSlots as je, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Jn, mergeModels as Tt, shallowRef as Ve, onMounted as Ht, onBeforeUnmount as Wn, createTextVNode as Ye, resolveComponent as Zn, onErrorCaptured as Qn } from "vue";
|
|
3
|
+
import { ElButton as It, ElIcon as Ut, ElCascader as Xn, ElDatePicker as Jt, ElInput as Wt, ElSelect as Zt, ElOption as Qt, ElFormItem as Xt, ElForm as en, ElTable as tn, ElTableColumn as nn, ElPagination as eo, ElLoadingDirective as to, ElInputNumber as no, ElSwitch as oo, ElRow as ro, ElCol as ao, ElPopconfirm as so } from "element-plus/es";
|
|
4
|
+
import { cascaderEmits as io, inputEmits as Ot, selectEmits as Dt } from "element-plus";
|
|
5
|
+
const gt = 2, lo = 3;
|
|
6
|
+
function co(e) {
|
|
9
7
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
10
8
|
}
|
|
11
|
-
function
|
|
9
|
+
function on(e) {
|
|
12
10
|
if (!e.startsWith("on") || e.length <= gt)
|
|
13
11
|
return !1;
|
|
14
12
|
const t = e.charCodeAt(gt);
|
|
15
13
|
return t < 97 || t > 122;
|
|
16
14
|
}
|
|
17
|
-
function
|
|
15
|
+
function uo(e) {
|
|
18
16
|
if (e.startsWith("on-"))
|
|
19
|
-
return e.slice(
|
|
20
|
-
const [t, n] = e.slice(gt).split(":"), o =
|
|
17
|
+
return e.slice(lo);
|
|
18
|
+
const [t, n] = e.slice(gt).split(":"), o = co(t);
|
|
21
19
|
return n ? `${o}:${n}` : o;
|
|
22
20
|
}
|
|
23
|
-
function
|
|
21
|
+
function rn(e, t = /* @__PURE__ */ new Set()) {
|
|
24
22
|
return Object.fromEntries(
|
|
25
|
-
Object.entries(e).filter(([n, o]) => !t.has(n) &&
|
|
23
|
+
Object.entries(e).filter(([n, o]) => !t.has(n) && on(n) && typeof o == "function").map(([n, o]) => [uo(n), o])
|
|
26
24
|
);
|
|
27
25
|
}
|
|
28
|
-
function
|
|
26
|
+
function an(e, t = /* @__PURE__ */ new Set()) {
|
|
29
27
|
return Object.fromEntries(
|
|
30
|
-
Object.entries(e).filter(([n]) => !t.has(n) && !
|
|
28
|
+
Object.entries(e).filter(([n]) => !t.has(n) && !on(n))
|
|
31
29
|
);
|
|
32
30
|
}
|
|
33
|
-
const
|
|
31
|
+
const fo = /* @__PURE__ */ ce({
|
|
34
32
|
name: "JtButton",
|
|
35
33
|
__name: "index",
|
|
36
34
|
props: {
|
|
@@ -55,18 +53,18 @@ const lo = /* @__PURE__ */ ce({
|
|
|
55
53
|
tag: {}
|
|
56
54
|
},
|
|
57
55
|
setup(e) {
|
|
58
|
-
const t = e, n =
|
|
56
|
+
const t = e, n = Kn(), o = P(() => {
|
|
59
57
|
const { icon: i, ...s } = t;
|
|
60
58
|
return {
|
|
61
|
-
...
|
|
59
|
+
...an(n),
|
|
62
60
|
...s
|
|
63
61
|
};
|
|
64
|
-
}), r =
|
|
62
|
+
}), r = P(() => rn(n));
|
|
65
63
|
return (i, s) => {
|
|
66
|
-
const l =
|
|
67
|
-
return k(),
|
|
64
|
+
const l = Ut, a = It;
|
|
65
|
+
return k(), U(a, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
|
|
68
66
|
default: J(() => [
|
|
69
|
-
i.$slots.icon ? (k(),
|
|
67
|
+
i.$slots.icon ? (k(), U(l, {
|
|
70
68
|
key: 0,
|
|
71
69
|
class: "jt-button__icon"
|
|
72
70
|
}, {
|
|
@@ -74,12 +72,12 @@ const lo = /* @__PURE__ */ ce({
|
|
|
74
72
|
ee(i.$slots, "icon", {}, void 0, !0)
|
|
75
73
|
]),
|
|
76
74
|
_: 3
|
|
77
|
-
})) : t.icon ? (k(),
|
|
75
|
+
})) : t.icon ? (k(), U(l, {
|
|
78
76
|
key: 1,
|
|
79
77
|
class: "jt-button__icon"
|
|
80
78
|
}, {
|
|
81
79
|
default: J(() => [
|
|
82
|
-
(k(),
|
|
80
|
+
(k(), U(Gt(t.icon)))
|
|
83
81
|
]),
|
|
84
82
|
_: 1
|
|
85
83
|
})) : ue("", !0),
|
|
@@ -94,28 +92,29 @@ const lo = /* @__PURE__ */ ce({
|
|
|
94
92
|
for (const [o, r] of t)
|
|
95
93
|
n[o] = r;
|
|
96
94
|
return n;
|
|
97
|
-
}, tt = /* @__PURE__ */ ye(
|
|
95
|
+
}, tt = /* @__PURE__ */ ye(fo, [["__scopeId", "data-v-fbcdce34"]]), po = {
|
|
98
96
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
97
|
options: () => [],
|
|
100
98
|
placeholder: "请选择",
|
|
101
99
|
clearable: !0,
|
|
102
|
-
persistent: !0
|
|
100
|
+
persistent: !0,
|
|
101
|
+
teleported: !1
|
|
103
102
|
};
|
|
104
103
|
function Ft(e) {
|
|
105
104
|
return Object.fromEntries(
|
|
106
105
|
Object.entries(e).filter(([, t]) => t !== void 0)
|
|
107
106
|
);
|
|
108
107
|
}
|
|
109
|
-
function
|
|
108
|
+
function mo(e) {
|
|
110
109
|
const t = Ft(e);
|
|
111
110
|
return t.props && (t.props = Ft(
|
|
112
111
|
t.props
|
|
113
112
|
)), t;
|
|
114
113
|
}
|
|
115
|
-
const
|
|
114
|
+
const vo = /* @__PURE__ */ ce({
|
|
116
115
|
name: "JtCascader",
|
|
117
116
|
__name: "index",
|
|
118
|
-
props: /* @__PURE__ */
|
|
117
|
+
props: /* @__PURE__ */ Yn({
|
|
119
118
|
size: {},
|
|
120
119
|
placeholder: {},
|
|
121
120
|
disabled: { type: Boolean },
|
|
@@ -153,10 +152,10 @@ const fo = /* @__PURE__ */ ce({
|
|
|
153
152
|
emptyValues: {},
|
|
154
153
|
valueOnClear: { type: [String, Number, Boolean, Function, null] },
|
|
155
154
|
options: {}
|
|
156
|
-
},
|
|
157
|
-
emits:
|
|
155
|
+
}, po),
|
|
156
|
+
emits: io,
|
|
158
157
|
setup(e, { emit: t }) {
|
|
159
|
-
const n = e, o =
|
|
158
|
+
const n = e, o = P(() => mo(n)), r = he(n.modelValue);
|
|
160
159
|
Be(
|
|
161
160
|
() => n.modelValue,
|
|
162
161
|
(g) => {
|
|
@@ -193,8 +192,8 @@ const fo = /* @__PURE__ */ ce({
|
|
|
193
192
|
s("removeTag", g);
|
|
194
193
|
}
|
|
195
194
|
return (g, w) => {
|
|
196
|
-
const S =
|
|
197
|
-
return k(),
|
|
195
|
+
const S = Xn;
|
|
196
|
+
return k(), U(S, oe({ class: "jt-cascader" }, o.value, {
|
|
198
197
|
"model-value": r.value,
|
|
199
198
|
"onUpdate:modelValue": l,
|
|
200
199
|
onChange: a,
|
|
@@ -207,7 +206,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
207
206
|
}), null, 16, ["model-value"]);
|
|
208
207
|
};
|
|
209
208
|
}
|
|
210
|
-
}),
|
|
209
|
+
}), ho = /* @__PURE__ */ ce({
|
|
211
210
|
name: "JtDatePicker",
|
|
212
211
|
__name: "index",
|
|
213
212
|
props: {
|
|
@@ -257,11 +256,13 @@ const fo = /* @__PURE__ */ ce({
|
|
|
257
256
|
endPlaceholder: {},
|
|
258
257
|
defaultValue: {},
|
|
259
258
|
defaultTime: {},
|
|
260
|
-
isRange: { type: Boolean }
|
|
259
|
+
isRange: { type: Boolean },
|
|
260
|
+
teleported: { type: Boolean }
|
|
261
261
|
},
|
|
262
262
|
setup(e) {
|
|
263
|
-
const t = e, n =
|
|
263
|
+
const t = e, n = P(() => ({
|
|
264
264
|
...t,
|
|
265
|
+
teleported: t.teleported ?? !1,
|
|
265
266
|
startPlaceholder: t.startPlaceholder ?? (o(t.type) ? "开始日期" : void 0),
|
|
266
267
|
endPlaceholder: t.endPlaceholder ?? (o(t.type) ? "结束日期" : void 0)
|
|
267
268
|
}));
|
|
@@ -269,13 +270,13 @@ const fo = /* @__PURE__ */ ce({
|
|
|
269
270
|
return r?.includes("range") ?? !1;
|
|
270
271
|
}
|
|
271
272
|
return (r, i) => {
|
|
272
|
-
const s =
|
|
273
|
-
return k(),
|
|
273
|
+
const s = Jt;
|
|
274
|
+
return k(), U(s, oe({ class: "jt-date-picker" }, n.value, {
|
|
274
275
|
"onUpdate:modelValue": i[0] || (i[0] = (l) => r.$emit("update:modelValue", l))
|
|
275
276
|
}), null, 16);
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
|
-
}),
|
|
279
|
+
}), go = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-4ac673ef"]]), yo = /* @__PURE__ */ ce({
|
|
279
280
|
name: "JtInput",
|
|
280
281
|
__name: "index",
|
|
281
282
|
props: {
|
|
@@ -318,20 +319,20 @@ const fo = /* @__PURE__ */ ce({
|
|
|
318
319
|
enter: () => !0
|
|
319
320
|
},
|
|
320
321
|
setup(e, { emit: t }) {
|
|
321
|
-
const n = e, o = t, r =
|
|
322
|
+
const n = e, o = t, r = P(() => Object.fromEntries(
|
|
322
323
|
Object.keys(Ot).map((i) => [
|
|
323
324
|
i,
|
|
324
325
|
(...s) => o(i, ...s)
|
|
325
326
|
])
|
|
326
327
|
));
|
|
327
328
|
return (i, s) => {
|
|
328
|
-
const l =
|
|
329
|
-
return k(),
|
|
330
|
-
onKeyup: s[0] || (s[0] =
|
|
329
|
+
const l = Wt;
|
|
330
|
+
return k(), U(l, oe({ class: "jt-input" }, n, Ze(r.value), {
|
|
331
|
+
onKeyup: s[0] || (s[0] = Hn((a) => o("enter"), ["enter"]))
|
|
331
332
|
}), null, 16);
|
|
332
333
|
};
|
|
333
334
|
}
|
|
334
|
-
}), mt = /* @__PURE__ */ ye(
|
|
335
|
+
}), mt = /* @__PURE__ */ ye(yo, [["__scopeId", "data-v-c4e9cb3f"]]), bo = /* @__PURE__ */ ce({
|
|
335
336
|
name: "JtSelect",
|
|
336
337
|
__name: "index",
|
|
337
338
|
props: {
|
|
@@ -390,20 +391,23 @@ const fo = /* @__PURE__ */ ce({
|
|
|
390
391
|
},
|
|
391
392
|
emits: Dt,
|
|
392
393
|
setup(e, { emit: t }) {
|
|
393
|
-
const n = e, o =
|
|
394
|
+
const n = e, o = P(() => {
|
|
394
395
|
const { options: s, ...l } = n;
|
|
395
|
-
return
|
|
396
|
-
|
|
396
|
+
return {
|
|
397
|
+
...l,
|
|
398
|
+
teleported: n.teleported ?? !1
|
|
399
|
+
};
|
|
400
|
+
}), r = t, i = P(() => Object.fromEntries(
|
|
397
401
|
Object.keys(Dt).map((s) => [
|
|
398
402
|
s,
|
|
399
403
|
(...l) => r(s, ...l)
|
|
400
404
|
])
|
|
401
405
|
));
|
|
402
406
|
return (s, l) => {
|
|
403
|
-
const a =
|
|
404
|
-
return k(),
|
|
407
|
+
const a = Qt, c = Zt;
|
|
408
|
+
return k(), U(c, oe({ class: "jt-select" }, o.value, Ze(i.value)), {
|
|
405
409
|
default: J(() => [
|
|
406
|
-
(k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(),
|
|
410
|
+
(k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(), U(a, oe({
|
|
407
411
|
key: m.value,
|
|
408
412
|
ref_for: !0
|
|
409
413
|
}, m), null, 16))), 128))
|
|
@@ -412,7 +416,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
412
416
|
}, 16);
|
|
413
417
|
};
|
|
414
418
|
}
|
|
415
|
-
}),
|
|
419
|
+
}), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-b5f022d9"]]), wo = { class: "jt-form-items" }, vt = 4, Io = /* @__PURE__ */ ce({
|
|
416
420
|
name: "JTFormItems",
|
|
417
421
|
__name: "JtFormItems",
|
|
418
422
|
props: {
|
|
@@ -423,16 +427,16 @@ const fo = /* @__PURE__ */ ce({
|
|
|
423
427
|
setup(e) {
|
|
424
428
|
const t = e, n = {
|
|
425
429
|
input: mt,
|
|
426
|
-
select:
|
|
427
|
-
cascader:
|
|
428
|
-
"date-picker":
|
|
430
|
+
select: So,
|
|
431
|
+
cascader: vo,
|
|
432
|
+
"date-picker": go
|
|
429
433
|
}, o = {
|
|
430
434
|
"remote-select": "select",
|
|
431
435
|
date: "date-picker",
|
|
432
436
|
daterange: "date-picker",
|
|
433
437
|
"date-range": "date-picker",
|
|
434
438
|
dateRange: "date-picker"
|
|
435
|
-
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l =
|
|
439
|
+
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = P(() => t.configs.filter((I) => I.show !== !1)), a = (I) => {
|
|
436
440
|
const { itemType: h } = I;
|
|
437
441
|
if (!h) return mt;
|
|
438
442
|
if (typeof h != "string") return h;
|
|
@@ -441,7 +445,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
441
445
|
`[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${i.join(", ")}`
|
|
442
446
|
), mt);
|
|
443
447
|
}, c = (I) => {
|
|
444
|
-
const h =
|
|
448
|
+
const h = an(I, r);
|
|
445
449
|
return I.itemType === "select" || I.itemType === "remote-select" || I.itemType === "cascader" ? {
|
|
446
450
|
...h,
|
|
447
451
|
options: I.options
|
|
@@ -449,7 +453,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
449
453
|
...h,
|
|
450
454
|
type: "daterange"
|
|
451
455
|
} : h;
|
|
452
|
-
}, m = (I) =>
|
|
456
|
+
}, m = (I) => rn(I, r), _ = (I) => ({
|
|
453
457
|
rules: I.rules,
|
|
454
458
|
...I.formItemProps
|
|
455
459
|
}), $ = (I, h) => {
|
|
@@ -465,12 +469,12 @@ const fo = /* @__PURE__ */ ce({
|
|
|
465
469
|
};
|
|
466
470
|
}
|
|
467
471
|
function A(I, h) {
|
|
468
|
-
|
|
472
|
+
Un(() => {
|
|
469
473
|
s.get(I)?.validate(h).catch(() => {
|
|
470
474
|
});
|
|
471
475
|
});
|
|
472
476
|
}
|
|
473
|
-
const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w =
|
|
477
|
+
const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w = P(() => {
|
|
474
478
|
const h = l.value.reduce(
|
|
475
479
|
(T, p) => T + g(t.span || p.span),
|
|
476
480
|
0
|
|
@@ -487,9 +491,9 @@ const fo = /* @__PURE__ */ ce({
|
|
|
487
491
|
return I === "daterange" || I === "date-range" || I === "dateRange";
|
|
488
492
|
}
|
|
489
493
|
return (I, h) => {
|
|
490
|
-
const T =
|
|
491
|
-
return k(), Y("div",
|
|
492
|
-
(k(!0), Y(be, null, ge(l.value, (p) => (k(),
|
|
494
|
+
const T = Xt;
|
|
495
|
+
return k(), Y("div", wo, [
|
|
496
|
+
(k(!0), Y(be, null, ge(l.value, (p) => (k(), U(T, oe({
|
|
493
497
|
key: p.prop,
|
|
494
498
|
ref_for: !0,
|
|
495
499
|
ref: b(p.prop),
|
|
@@ -499,7 +503,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
499
503
|
prop: p.prop
|
|
500
504
|
}, _(p)), {
|
|
501
505
|
default: J(() => [
|
|
502
|
-
p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(),
|
|
506
|
+
p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(), U(Gt(a(p)), oe({
|
|
503
507
|
key: 1,
|
|
504
508
|
"model-value": I.formData[p.prop],
|
|
505
509
|
ref_for: !0
|
|
@@ -511,10 +515,10 @@ const fo = /* @__PURE__ */ ce({
|
|
|
511
515
|
]),
|
|
512
516
|
_: 2
|
|
513
517
|
}, 1040, ["style", "label", "prop"]))), 128)),
|
|
514
|
-
I.$slots.actions ? (k(),
|
|
518
|
+
I.$slots.actions ? (k(), U(T, {
|
|
515
519
|
key: 0,
|
|
516
520
|
class: "jt-form-items__actions",
|
|
517
|
-
style:
|
|
521
|
+
style: Kt(w.value)
|
|
518
522
|
}, {
|
|
519
523
|
default: J(() => [
|
|
520
524
|
ee(I.$slots, "actions", {}, void 0, !0)
|
|
@@ -524,8 +528,8 @@ const fo = /* @__PURE__ */ ce({
|
|
|
524
528
|
]);
|
|
525
529
|
};
|
|
526
530
|
}
|
|
527
|
-
}),
|
|
528
|
-
function
|
|
531
|
+
}), _o = /* @__PURE__ */ ye(Io, [["__scopeId", "data-v-136dd5e5"]]);
|
|
532
|
+
function $o() {
|
|
529
533
|
const e = he(!1);
|
|
530
534
|
function t() {
|
|
531
535
|
e.value = !0;
|
|
@@ -539,7 +543,7 @@ function wo() {
|
|
|
539
543
|
searchDone: n
|
|
540
544
|
};
|
|
541
545
|
}
|
|
542
|
-
const
|
|
546
|
+
const Co = "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", ko = "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", Mo = "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", To = { class: "jt-filter-bar__btns" }, Oo = ["src"], Do = ["src"], Fo = ["src"], Bo = /* @__PURE__ */ ce({
|
|
543
547
|
name: "JtFilterBar",
|
|
544
548
|
__name: "JtFilterBar",
|
|
545
549
|
props: {
|
|
@@ -553,62 +557,62 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
553
557
|
searchDisabled: a,
|
|
554
558
|
searchLoading: c,
|
|
555
559
|
searchDone: m
|
|
556
|
-
} =
|
|
560
|
+
} = $o(), _ = P(() => o.option), $ = he(_.value.searchCollapsed ?? !0), b = P(() => o.columns.filter((V) => V.search === !0)), A = P(
|
|
557
561
|
() => Math.max(1, _.value.searchSpan ?? 4)
|
|
558
|
-
), g =
|
|
562
|
+
), g = P(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = P(() => A.value), S = P(
|
|
559
563
|
() => Math.max(1, w.value * g.value)
|
|
560
|
-
), j =
|
|
564
|
+
), j = P(() => A.value), I = P(() => F.value ? "264px" : "174px"), h = P(() => H(_.value.searchLabelWidth ?? 84)), T = P(() => _.value.searchLabelPosition ?? "top"), p = P(() => G(_.value.searchGutter, 14)), N = P(() => G(_.value.searchRowGap, 14)), y = P(() => X(_.value.searchPadding ?? "18px 4px 0")), F = P(() => _.value.searchCollapse === !1 ? !1 : q(b.value) > S.value), O = P(() => {
|
|
561
565
|
if (!F.value || !$.value) return b.value;
|
|
562
|
-
let
|
|
566
|
+
let V = 0;
|
|
563
567
|
return b.value.filter((Z) => {
|
|
564
568
|
const ae = E(Z);
|
|
565
|
-
return
|
|
569
|
+
return V + ae > S.value ? !1 : (V += ae, !0);
|
|
566
570
|
});
|
|
567
|
-
}), z =
|
|
568
|
-
() => O.value.filter((
|
|
569
|
-
), ne =
|
|
570
|
-
const [
|
|
571
|
-
return !!
|
|
572
|
-
}), x =
|
|
573
|
-
const [
|
|
574
|
-
return `${Math.min(A.value,
|
|
575
|
-
}), R =
|
|
576
|
-
() => O.value.map((
|
|
571
|
+
}), z = P(
|
|
572
|
+
() => O.value.filter((V) => !!s[`${V.prop}-search`])
|
|
573
|
+
), ne = P(() => {
|
|
574
|
+
const [V] = O.value;
|
|
575
|
+
return !!V && O.value.length === 1 && E(V) < A.value;
|
|
576
|
+
}), x = P(() => {
|
|
577
|
+
const [V] = O.value;
|
|
578
|
+
return `${Math.min(A.value, V ? E(V) + 1 : 1)}`;
|
|
579
|
+
}), R = P(
|
|
580
|
+
() => O.value.map((V) => B(V))
|
|
577
581
|
);
|
|
578
582
|
Be(
|
|
579
583
|
() => _.value.searchCollapsed,
|
|
580
|
-
(
|
|
581
|
-
typeof
|
|
584
|
+
(V) => {
|
|
585
|
+
typeof V == "boolean" && ($.value = V);
|
|
582
586
|
}
|
|
583
587
|
), Be(
|
|
584
588
|
() => o.modelValue,
|
|
585
|
-
(
|
|
586
|
-
l.value = { ...
|
|
589
|
+
(V) => {
|
|
590
|
+
l.value = { ...V };
|
|
587
591
|
},
|
|
588
592
|
{ deep: !0, immediate: !0 }
|
|
589
593
|
);
|
|
590
|
-
function D(
|
|
594
|
+
function D(V, Z) {
|
|
591
595
|
if (a.value) return;
|
|
592
|
-
const ae = { ...l.value, [
|
|
596
|
+
const ae = { ...l.value, [V]: Z };
|
|
593
597
|
l.value = ae, r("update:modelValue", ae);
|
|
594
598
|
}
|
|
595
|
-
function B(
|
|
596
|
-
const Z =
|
|
599
|
+
function B(V) {
|
|
600
|
+
const Z = V.searchProps ?? {};
|
|
597
601
|
return {
|
|
598
602
|
...Z,
|
|
599
|
-
prop:
|
|
600
|
-
label:
|
|
601
|
-
span: E(
|
|
602
|
-
itemType:
|
|
603
|
+
prop: V.prop,
|
|
604
|
+
label: V.searchLabel ?? V.label,
|
|
605
|
+
span: E(V),
|
|
606
|
+
itemType: V.searchType ?? "input",
|
|
603
607
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
604
|
-
showSlot: !!s[`${
|
|
605
|
-
options: Z.options ??
|
|
606
|
-
placeholder: Z.placeholder ??
|
|
607
|
-
valueFormat: Z.valueFormat ??
|
|
608
|
+
showSlot: !!s[`${V.prop}-search`],
|
|
609
|
+
options: Z.options ?? V.searchOptions ?? V.dicData,
|
|
610
|
+
placeholder: Z.placeholder ?? V.searchPlaceholder,
|
|
611
|
+
valueFormat: Z.valueFormat ?? V.searchValueFormat,
|
|
608
612
|
disabled: a.value || Z.disabled === !0,
|
|
609
613
|
formItemProps: {
|
|
610
|
-
required:
|
|
611
|
-
class: ["jt-filter-bar__item", { "is-required":
|
|
614
|
+
required: V.searchRequired,
|
|
615
|
+
class: ["jt-filter-bar__item", { "is-required": V.searchRequired }]
|
|
612
616
|
},
|
|
613
617
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
614
618
|
onEnter: (...ae) => {
|
|
@@ -616,16 +620,16 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
616
620
|
},
|
|
617
621
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
618
622
|
"onUpdate:modelValue": (ae) => {
|
|
619
|
-
u(Z["onUpdate:modelValue"], ae), D(
|
|
623
|
+
u(Z["onUpdate:modelValue"], ae), D(V.prop, ae);
|
|
620
624
|
}
|
|
621
625
|
};
|
|
622
626
|
}
|
|
623
|
-
function u(
|
|
624
|
-
if (Array.isArray(
|
|
625
|
-
|
|
627
|
+
function u(V, ...Z) {
|
|
628
|
+
if (Array.isArray(V)) {
|
|
629
|
+
V.forEach((ae) => u(ae, ...Z));
|
|
626
630
|
return;
|
|
627
631
|
}
|
|
628
|
-
typeof
|
|
632
|
+
typeof V == "function" && V(...Z);
|
|
629
633
|
}
|
|
630
634
|
async function v() {
|
|
631
635
|
if (!a.value) {
|
|
@@ -644,20 +648,20 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
644
648
|
function L() {
|
|
645
649
|
$.value = !$.value;
|
|
646
650
|
}
|
|
647
|
-
function E(
|
|
648
|
-
return Math.min(A.value, Math.max(1,
|
|
651
|
+
function E(V) {
|
|
652
|
+
return Math.min(A.value, Math.max(1, V.searchSpan ?? 1));
|
|
649
653
|
}
|
|
650
|
-
function q(
|
|
651
|
-
return
|
|
654
|
+
function q(V) {
|
|
655
|
+
return V.reduce((Z, ae) => Z + E(ae), 0);
|
|
652
656
|
}
|
|
653
|
-
function
|
|
654
|
-
return typeof
|
|
657
|
+
function H(V) {
|
|
658
|
+
return typeof V == "number" ? `${V}px` : V;
|
|
655
659
|
}
|
|
656
|
-
function G(
|
|
657
|
-
return typeof
|
|
660
|
+
function G(V, Z) {
|
|
661
|
+
return typeof V == "number" ? V : Z;
|
|
658
662
|
}
|
|
659
|
-
function X(
|
|
660
|
-
return typeof
|
|
663
|
+
function X(V) {
|
|
664
|
+
return typeof V == "number" ? `${V}px` : V;
|
|
661
665
|
}
|
|
662
666
|
return t({
|
|
663
667
|
/** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
|
|
@@ -668,11 +672,11 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
668
672
|
searchLoading: c,
|
|
669
673
|
/** 关闭筛选表单禁用。 */
|
|
670
674
|
searchDone: m
|
|
671
|
-
}), (
|
|
672
|
-
const ae =
|
|
675
|
+
}), (V, Z) => {
|
|
676
|
+
const ae = en;
|
|
673
677
|
return k(), Y("div", {
|
|
674
|
-
class:
|
|
675
|
-
style:
|
|
678
|
+
class: Ue(["jt-filter-bar", [`is-label-${T.value}`, { "is-single-filter": ne.value }]]),
|
|
679
|
+
style: Kt({
|
|
676
680
|
"--jt-filter-columns": A.value,
|
|
677
681
|
"--jt-filter-field-columns": j.value,
|
|
678
682
|
"--jt-filter-btns-width": I.value,
|
|
@@ -691,34 +695,34 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
691
695
|
"label-position": T.value,
|
|
692
696
|
"label-width": h.value,
|
|
693
697
|
disabled: re(a),
|
|
694
|
-
onSubmit: Z[0] || (Z[0] =
|
|
698
|
+
onSubmit: Z[0] || (Z[0] = Yt(() => {
|
|
695
699
|
}, ["prevent"]))
|
|
696
700
|
}, {
|
|
697
701
|
default: J(() => [
|
|
698
|
-
we(re(
|
|
702
|
+
we(re(_o), {
|
|
699
703
|
configs: R.value,
|
|
700
704
|
"form-data": l.value
|
|
701
705
|
}, je({
|
|
702
706
|
actions: J(() => [
|
|
703
|
-
te("div",
|
|
704
|
-
ee(
|
|
707
|
+
te("div", To, [
|
|
708
|
+
ee(V.$slots, "search-menu", {
|
|
705
709
|
search: v,
|
|
706
710
|
reset: C,
|
|
707
711
|
disabled: re(a),
|
|
708
712
|
collapsed: $.value,
|
|
709
713
|
toggleCollapse: L
|
|
710
714
|
}, () => [
|
|
711
|
-
F.value ? (k(),
|
|
715
|
+
F.value ? (k(), U(re(tt), {
|
|
712
716
|
key: 0,
|
|
713
717
|
class: "jt-filter-bar__btn-collapse",
|
|
714
718
|
onClick: L
|
|
715
719
|
}, {
|
|
716
720
|
icon: J(() => [
|
|
717
721
|
te("img", {
|
|
718
|
-
class:
|
|
719
|
-
src: re(
|
|
722
|
+
class: Ue(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
|
|
723
|
+
src: re(Co),
|
|
720
724
|
alt: ""
|
|
721
|
-
}, null, 10,
|
|
725
|
+
}, null, 10, Oo)
|
|
722
726
|
]),
|
|
723
727
|
default: J(() => [
|
|
724
728
|
te("span", null, fe($.value ? "展 开" : "收 起"), 1)
|
|
@@ -732,9 +736,9 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
732
736
|
}, {
|
|
733
737
|
icon: J(() => [
|
|
734
738
|
te("img", {
|
|
735
|
-
src: re(
|
|
739
|
+
src: re(ko),
|
|
736
740
|
alt: ""
|
|
737
|
-
}, null, 8,
|
|
741
|
+
}, null, 8, Do)
|
|
738
742
|
]),
|
|
739
743
|
default: J(() => [
|
|
740
744
|
te("span", null, fe(_.value.resetBtnText ?? "重 置"), 1)
|
|
@@ -749,9 +753,9 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
749
753
|
}, {
|
|
750
754
|
icon: J(() => [
|
|
751
755
|
te("img", {
|
|
752
|
-
src: re(
|
|
756
|
+
src: re(Mo),
|
|
753
757
|
alt: ""
|
|
754
|
-
}, null, 8,
|
|
758
|
+
}, null, 8, Fo)
|
|
755
759
|
]),
|
|
756
760
|
default: J(() => [
|
|
757
761
|
te("span", null, fe(_.value.searchBtnText ?? "查 询"), 1)
|
|
@@ -766,7 +770,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
766
770
|
ge(z.value, (pe) => ({
|
|
767
771
|
name: pe.prop,
|
|
768
772
|
fn: J(() => [
|
|
769
|
-
ee(
|
|
773
|
+
ee(V.$slots, `${pe.prop}-search`, {
|
|
770
774
|
value: l.value[pe.prop],
|
|
771
775
|
column: pe,
|
|
772
776
|
setValue: (de) => D(pe.prop, de),
|
|
@@ -783,7 +787,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
783
787
|
], 6);
|
|
784
788
|
};
|
|
785
789
|
}
|
|
786
|
-
}),
|
|
790
|
+
}), Eo = /* @__PURE__ */ ye(Bo, [["__scopeId", "data-v-860e6c98"]]), Lo = { key: 1 }, Po = { key: 2 }, Vo = { key: 3 }, Ao = /* @__PURE__ */ ce({
|
|
787
791
|
name: "JtTable",
|
|
788
792
|
__name: "JtTable",
|
|
789
793
|
props: {
|
|
@@ -793,7 +797,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
793
797
|
tableEvents: {}
|
|
794
798
|
},
|
|
795
799
|
setup(e, { expose: t }) {
|
|
796
|
-
const n = e, o = Ee(), r = he(), i =
|
|
800
|
+
const n = e, o = Ee(), r = he(), i = P(() => n.option ?? {}), s = P(() => n.columns.filter((b) => !b.hide));
|
|
797
801
|
function l(b) {
|
|
798
802
|
return !!o[`${b}-header`];
|
|
799
803
|
}
|
|
@@ -821,8 +825,8 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
821
825
|
return b.find((g) => g.value === A)?.label ?? String(A ?? "");
|
|
822
826
|
}
|
|
823
827
|
return t({ tableRef: r }), (b, A) => {
|
|
824
|
-
const g =
|
|
825
|
-
return k(),
|
|
828
|
+
const g = nn, w = tn;
|
|
829
|
+
return k(), U(w, oe({
|
|
826
830
|
ref_key: "tableRef",
|
|
827
831
|
ref: r,
|
|
828
832
|
data: b.data,
|
|
@@ -833,20 +837,20 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
833
837
|
class: "jt-table"
|
|
834
838
|
}, i.value.tableProps, Ze(b.tableEvents)), {
|
|
835
839
|
default: J(() => [
|
|
836
|
-
i.value.selection ? (k(),
|
|
840
|
+
i.value.selection ? (k(), U(g, {
|
|
837
841
|
key: 0,
|
|
838
842
|
type: "selection",
|
|
839
843
|
width: "55",
|
|
840
844
|
align: "center"
|
|
841
845
|
})) : ue("", !0),
|
|
842
|
-
i.value.index ? (k(),
|
|
846
|
+
i.value.index ? (k(), U(g, {
|
|
843
847
|
key: 1,
|
|
844
848
|
type: "index",
|
|
845
849
|
label: i.value.indexLabel ?? "序号",
|
|
846
850
|
width: "60",
|
|
847
851
|
align: "center"
|
|
848
852
|
}, null, 8, ["label"])) : ue("", !0),
|
|
849
|
-
(k(!0), Y(be, null, ge(s.value, (S) => (k(),
|
|
853
|
+
(k(!0), Y(be, null, ge(s.value, (S) => (k(), U(g, oe({
|
|
850
854
|
key: S.prop,
|
|
851
855
|
prop: S.prop,
|
|
852
856
|
label: S.label,
|
|
@@ -866,12 +870,12 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
866
870
|
a(S.prop) ? ee(b.$slots, `${S.prop}-data`, oe({
|
|
867
871
|
key: 0,
|
|
868
872
|
ref_for: !0
|
|
869
|
-
}, j), void 0, !0) : S.dicData ? (k(), Y("span",
|
|
873
|
+
}, j), void 0, !0) : S.dicData ? (k(), Y("span", Lo, fe($(S.dicData, j.row[S.prop])), 1)) : S.formatter ? (k(), Y("span", Po, fe(S.formatter(j.row, j.column, j.row[S.prop], j.$index)), 1)) : (k(), Y("span", Vo, fe(j.row[S.prop]), 1))
|
|
870
874
|
]),
|
|
871
875
|
key: "1"
|
|
872
876
|
} : void 0
|
|
873
877
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
874
|
-
i.value.menu ? (k(),
|
|
878
|
+
i.value.menu ? (k(), U(g, {
|
|
875
879
|
key: 2,
|
|
876
880
|
label: i.value.menuLabel ?? "操作",
|
|
877
881
|
width: i.value.menuWidth,
|
|
@@ -889,7 +893,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
889
893
|
}, 16, ["data", "row-key", "height", "max-height", "empty-text"]);
|
|
890
894
|
};
|
|
891
895
|
}
|
|
892
|
-
}),
|
|
896
|
+
}), jo = /* @__PURE__ */ ye(Ao, [["__scopeId", "data-v-2f881a67"]]), No = { class: "jt-pagination" }, Ro = { class: "jt-pagination__count" }, zo = /* @__PURE__ */ ce({
|
|
893
897
|
name: "JtPagination",
|
|
894
898
|
__name: "JtPagination",
|
|
895
899
|
props: {
|
|
@@ -900,13 +904,13 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
900
904
|
},
|
|
901
905
|
emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
|
|
902
906
|
setup(e, { emit: t }) {
|
|
903
|
-
const n = e, o =
|
|
907
|
+
const n = e, o = P(() => n.option ?? {}), r = t;
|
|
904
908
|
function i(s) {
|
|
905
909
|
r("current-change", s), r("page-change", s);
|
|
906
910
|
}
|
|
907
911
|
return (s, l) => {
|
|
908
|
-
const a =
|
|
909
|
-
return k(), Y("div",
|
|
912
|
+
const a = eo;
|
|
913
|
+
return k(), Y("div", No, [
|
|
910
914
|
we(a, {
|
|
911
915
|
"current-page": s.currentPage,
|
|
912
916
|
"page-size": s.pageSize,
|
|
@@ -918,17 +922,17 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
918
922
|
onCurrentChange: i,
|
|
919
923
|
onSizeChange: l[2] || (l[2] = (c) => s.$emit("size-change", c))
|
|
920
924
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
921
|
-
te("span",
|
|
925
|
+
te("span", Ro, "共" + fe(s.total) + "条记录", 1)
|
|
922
926
|
]);
|
|
923
927
|
};
|
|
924
928
|
}
|
|
925
|
-
}),
|
|
929
|
+
}), xo = /* @__PURE__ */ ye(zo, [["__scopeId", "data-v-c6757399"]]), qo = { class: "jt-crud-table" }, Go = {
|
|
926
930
|
key: 1,
|
|
927
931
|
class: "jt-crud-table__toolbar"
|
|
928
|
-
},
|
|
932
|
+
}, Ko = /* @__PURE__ */ ce({
|
|
929
933
|
name: "JtCrudTable",
|
|
930
934
|
__name: "JtCrudTable",
|
|
931
|
-
props: /* @__PURE__ */
|
|
935
|
+
props: /* @__PURE__ */ Tt({
|
|
932
936
|
columns: {},
|
|
933
937
|
option: { default: () => ({}) },
|
|
934
938
|
data: {},
|
|
@@ -942,13 +946,13 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
942
946
|
searchModel: { default: () => ({}) },
|
|
943
947
|
searchModelModifiers: {}
|
|
944
948
|
}),
|
|
945
|
-
emits: /* @__PURE__ */
|
|
949
|
+
emits: /* @__PURE__ */ Tt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
946
950
|
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 = Ee(), c = he(), m = he(), _ =
|
|
951
|
+
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), m = he(), _ = P(() => o.option), $ = P(() => _.value.searchShow !== !1), b = P(() => _.value.paginationShow !== !1), A = P(
|
|
948
952
|
() => o.columns.filter((p) => p.search && !!a[`${p.prop}-search`])
|
|
949
|
-
), g =
|
|
953
|
+
), g = P(
|
|
950
954
|
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-header`])
|
|
951
|
-
), w =
|
|
955
|
+
), w = P(
|
|
952
956
|
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-data`])
|
|
953
957
|
);
|
|
954
958
|
function S() {
|
|
@@ -971,7 +975,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
971
975
|
}
|
|
972
976
|
return t({
|
|
973
977
|
/** 获取内部 el-table 实例 */
|
|
974
|
-
tableRef:
|
|
978
|
+
tableRef: P(() => c.value?.tableRef),
|
|
975
979
|
/** 获取内部筛选条实例 */
|
|
976
980
|
filterBarRef: m,
|
|
977
981
|
/** 开启筛选表单禁用。 */
|
|
@@ -979,10 +983,10 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
979
983
|
/** 关闭筛选表单禁用。 */
|
|
980
984
|
searchDone: T
|
|
981
985
|
}), (p, N) => {
|
|
982
|
-
const y =
|
|
983
|
-
return k(), Y("div",
|
|
986
|
+
const y = to;
|
|
987
|
+
return k(), Y("div", qo, [
|
|
984
988
|
ee(p.$slots, "header", {}, void 0, !0),
|
|
985
|
-
$.value ? (k(),
|
|
989
|
+
$.value ? (k(), U(Eo, {
|
|
986
990
|
key: 0,
|
|
987
991
|
ref_key: "filterBarRef",
|
|
988
992
|
ref: m,
|
|
@@ -1000,10 +1004,10 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1000
1004
|
])
|
|
1001
1005
|
}))
|
|
1002
1006
|
]), 1032, ["modelValue", "columns", "option"])) : ue("", !0),
|
|
1003
|
-
re(a).toolbar ? (k(), Y("div",
|
|
1007
|
+
re(a).toolbar ? (k(), Y("div", Go, [
|
|
1004
1008
|
ee(p.$slots, "toolbar", {}, void 0, !0)
|
|
1005
1009
|
])) : ue("", !0),
|
|
1006
|
-
|
|
1010
|
+
Jn((k(), U(jo, {
|
|
1007
1011
|
ref_key: "jtTableRef",
|
|
1008
1012
|
ref: c,
|
|
1009
1013
|
data: p.data,
|
|
@@ -1033,7 +1037,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1033
1037
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1034
1038
|
[y, _.value.loading]
|
|
1035
1039
|
]),
|
|
1036
|
-
b.value ? (k(),
|
|
1040
|
+
b.value ? (k(), U(xo, {
|
|
1037
1041
|
key: 2,
|
|
1038
1042
|
"current-page": i.value,
|
|
1039
1043
|
"onUpdate:currentPage": N[1] || (N[1] = (F) => i.value = F),
|
|
@@ -1047,10 +1051,52 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1047
1051
|
]);
|
|
1048
1052
|
};
|
|
1049
1053
|
}
|
|
1050
|
-
}),
|
|
1054
|
+
}), Ya = /* @__PURE__ */ ye(Ko, [["__scopeId", "data-v-6df082c6"]]);
|
|
1055
|
+
let Bt = null;
|
|
1056
|
+
function _t() {
|
|
1057
|
+
return Bt ??= import("./service-bNdH26sx.js"), Bt;
|
|
1058
|
+
}
|
|
1059
|
+
function sn() {
|
|
1060
|
+
let e = !1, t = null;
|
|
1061
|
+
return {
|
|
1062
|
+
handler: {
|
|
1063
|
+
close: () => {
|
|
1064
|
+
e = !0, t?.close();
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
setInnerHandler: (n) => {
|
|
1068
|
+
if (e) {
|
|
1069
|
+
n.close();
|
|
1070
|
+
return;
|
|
1071
|
+
}
|
|
1072
|
+
t = n;
|
|
1073
|
+
}
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
function Yo(e) {
|
|
1077
|
+
const t = sn();
|
|
1078
|
+
return _t().then((n) => {
|
|
1079
|
+
t.setInnerHandler(n.JtAttachmentPreview(e));
|
|
1080
|
+
}), t.handler;
|
|
1081
|
+
}
|
|
1082
|
+
function Ho(e) {
|
|
1083
|
+
_t().then((t) => {
|
|
1084
|
+
t.setupJtAttachmentPreview(e);
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
function Uo(e) {
|
|
1088
|
+
const t = sn();
|
|
1089
|
+
return _t().then((n) => {
|
|
1090
|
+
t.setInnerHandler(n.JtAttachmentPreviewByParams(e));
|
|
1091
|
+
}), t.handler;
|
|
1092
|
+
}
|
|
1093
|
+
const Et = Object.assign(Yo, {
|
|
1094
|
+
openByParams: Uo,
|
|
1095
|
+
setup: Ho
|
|
1096
|
+
}), Jo = { class: "jt-page-header__title" }, Wo = { key: 0 }, Zo = {
|
|
1051
1097
|
key: 0,
|
|
1052
1098
|
class: "jt-page-header__operates"
|
|
1053
|
-
},
|
|
1099
|
+
}, Qo = /* @__PURE__ */ ce({
|
|
1054
1100
|
name: "JtPageHeader",
|
|
1055
1101
|
__name: "index",
|
|
1056
1102
|
props: {
|
|
@@ -1060,21 +1106,21 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1060
1106
|
},
|
|
1061
1107
|
emits: ["operate-click"],
|
|
1062
1108
|
setup(e, { emit: t }) {
|
|
1063
|
-
const n = e, o = t, r = Ee(), i =
|
|
1109
|
+
const n = e, o = t, r = Ee(), i = P(() => n.operates.length > 0 || !!r.operates);
|
|
1064
1110
|
function s(l, a) {
|
|
1065
1111
|
l.onClick?.(l, a), o("operate-click", l, a);
|
|
1066
1112
|
}
|
|
1067
1113
|
return (l, a) => (k(), Y("div", oe({
|
|
1068
1114
|
class: ["jt-page-header", `jt-page-header--${l.type}`]
|
|
1069
1115
|
}, l.$attrs), [
|
|
1070
|
-
te("div",
|
|
1116
|
+
te("div", Jo, [
|
|
1071
1117
|
ee(l.$slots, "title", {}, () => [
|
|
1072
|
-
l.title ? (k(), Y("span",
|
|
1118
|
+
l.title ? (k(), Y("span", Wo, fe(l.title), 1)) : ue("", !0)
|
|
1073
1119
|
], !0)
|
|
1074
1120
|
]),
|
|
1075
|
-
i.value ? (k(), Y("div",
|
|
1121
|
+
i.value ? (k(), Y("div", Zo, [
|
|
1076
1122
|
ee(l.$slots, "operates", { operates: l.operates }, () => [
|
|
1077
|
-
(k(!0), Y(be, null, ge(l.operates, (c) => (k(),
|
|
1123
|
+
(k(!0), Y(be, null, ge(l.operates, (c) => (k(), U(re(tt), oe({
|
|
1078
1124
|
key: c.key ?? c.label,
|
|
1079
1125
|
ref_for: !0
|
|
1080
1126
|
}, c.buttonProps, {
|
|
@@ -1096,8 +1142,8 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1096
1142
|
])) : ue("", !0)
|
|
1097
1143
|
], 16));
|
|
1098
1144
|
}
|
|
1099
|
-
}),
|
|
1100
|
-
function
|
|
1145
|
+
}), Ha = /* @__PURE__ */ ye(Qo, [["__scopeId", "data-v-9fe9e823"]]);
|
|
1146
|
+
function Xo(e, t) {
|
|
1101
1147
|
t = t || (() => "default-use-once-sync");
|
|
1102
1148
|
const n = /* @__PURE__ */ new Map();
|
|
1103
1149
|
async function o(...r) {
|
|
@@ -1115,7 +1161,7 @@ function Uo(e, t) {
|
|
|
1115
1161
|
}
|
|
1116
1162
|
return o.bind(e);
|
|
1117
1163
|
}
|
|
1118
|
-
function
|
|
1164
|
+
function ln(e, t) {
|
|
1119
1165
|
t = t || (() => "default-use-queue-sync");
|
|
1120
1166
|
const n = /* @__PURE__ */ new Map();
|
|
1121
1167
|
async function o(...r) {
|
|
@@ -1134,7 +1180,7 @@ var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1134
1180
|
function st(e) {
|
|
1135
1181
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1136
1182
|
}
|
|
1137
|
-
var
|
|
1183
|
+
var cn = { exports: {} };
|
|
1138
1184
|
(function(e, t) {
|
|
1139
1185
|
(function(n, o) {
|
|
1140
1186
|
e.exports = o();
|
|
@@ -1229,24 +1275,24 @@ var an = { exports: {} };
|
|
|
1229
1275
|
return C ? Se : Se.endOf(c);
|
|
1230
1276
|
}, q = function(pe, de) {
|
|
1231
1277
|
return z.w(v.toDate()[pe].apply(v.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), v);
|
|
1232
|
-
},
|
|
1278
|
+
}, H = this.$W, G = this.$M, X = this.$D, V = "set" + (this.$u ? "UTC" : "");
|
|
1233
1279
|
switch (L) {
|
|
1234
1280
|
case b:
|
|
1235
1281
|
return C ? E(1, 0) : E(31, 11);
|
|
1236
1282
|
case _:
|
|
1237
1283
|
return C ? E(1, G) : E(0, G + 1);
|
|
1238
1284
|
case m:
|
|
1239
|
-
var Z = this.$locale().weekStart || 0, ae = (
|
|
1285
|
+
var Z = this.$locale().weekStart || 0, ae = (H < Z ? H + 7 : H) - Z;
|
|
1240
1286
|
return E(C ? X - ae : X + (6 - ae), G);
|
|
1241
1287
|
case c:
|
|
1242
1288
|
case A:
|
|
1243
|
-
return q(
|
|
1289
|
+
return q(V + "Hours", 0);
|
|
1244
1290
|
case a:
|
|
1245
|
-
return q(
|
|
1291
|
+
return q(V + "Minutes", 1);
|
|
1246
1292
|
case l:
|
|
1247
|
-
return q(
|
|
1293
|
+
return q(V + "Seconds", 2);
|
|
1248
1294
|
case s:
|
|
1249
|
-
return q(
|
|
1295
|
+
return q(V + "Milliseconds", 3);
|
|
1250
1296
|
default:
|
|
1251
1297
|
return this.clone();
|
|
1252
1298
|
}
|
|
@@ -1255,8 +1301,8 @@ var an = { exports: {} };
|
|
|
1255
1301
|
}, D.$set = function(B, u) {
|
|
1256
1302
|
var v, C = z.p(B), L = "set" + (this.$u ? "UTC" : ""), E = (v = {}, v[c] = L + "Date", v[A] = L + "Date", v[_] = L + "Month", v[b] = L + "FullYear", v[a] = L + "Hours", v[l] = L + "Minutes", v[s] = L + "Seconds", v[i] = L + "Milliseconds", v)[C], q = C === c ? this.$D + (u - this.$W) : u;
|
|
1257
1303
|
if (C === _ || C === b) {
|
|
1258
|
-
var
|
|
1259
|
-
|
|
1304
|
+
var H = this.clone().set(A, 1);
|
|
1305
|
+
H.$d[E](q), H.init(), this.$d = H.set(A, Math.min(this.$D, H.daysInMonth())).$d;
|
|
1260
1306
|
} else E && this.$d[E](q);
|
|
1261
1307
|
return this.init(), this;
|
|
1262
1308
|
}, D.set = function(B, u) {
|
|
@@ -1274,18 +1320,18 @@ var an = { exports: {} };
|
|
|
1274
1320
|
if (L === b) return this.set(b, this.$y + B);
|
|
1275
1321
|
if (L === c) return E(1);
|
|
1276
1322
|
if (L === m) return E(7);
|
|
1277
|
-
var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1,
|
|
1278
|
-
return z.w(
|
|
1323
|
+
var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1, H = this.$d.getTime() + B * q;
|
|
1324
|
+
return z.w(H, this);
|
|
1279
1325
|
}, D.subtract = function(B, u) {
|
|
1280
1326
|
return this.add(-1 * B, u);
|
|
1281
1327
|
}, D.format = function(B) {
|
|
1282
1328
|
var u = this, v = this.$locale();
|
|
1283
1329
|
if (!this.isValid()) return v.invalidDate || g;
|
|
1284
|
-
var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m,
|
|
1330
|
+
var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, H = this.$M, G = v.weekdays, X = v.months, V = v.meridiem, Z = function(de, Se, Oe, Ie) {
|
|
1285
1331
|
return de && (de[Se] || de(u, C)) || Oe[Se].slice(0, Ie);
|
|
1286
1332
|
}, ae = function(de) {
|
|
1287
1333
|
return z.s(E % 12 || 12, de, "0");
|
|
1288
|
-
}, pe =
|
|
1334
|
+
}, pe = V || function(de, Se, Oe) {
|
|
1289
1335
|
var Ie = de < 12 ? "AM" : "PM";
|
|
1290
1336
|
return Oe ? Ie.toLowerCase() : Ie;
|
|
1291
1337
|
};
|
|
@@ -1297,13 +1343,13 @@ var an = { exports: {} };
|
|
|
1297
1343
|
case "YYYY":
|
|
1298
1344
|
return z.s(u.$y, 4, "0");
|
|
1299
1345
|
case "M":
|
|
1300
|
-
return
|
|
1346
|
+
return H + 1;
|
|
1301
1347
|
case "MM":
|
|
1302
|
-
return z.s(
|
|
1348
|
+
return z.s(H + 1, 2, "0");
|
|
1303
1349
|
case "MMM":
|
|
1304
|
-
return Z(v.monthsShort,
|
|
1350
|
+
return Z(v.monthsShort, H, X, 3);
|
|
1305
1351
|
case "MMMM":
|
|
1306
|
-
return Z(X,
|
|
1352
|
+
return Z(X, H);
|
|
1307
1353
|
case "D":
|
|
1308
1354
|
return u.$D;
|
|
1309
1355
|
case "DD":
|
|
@@ -1347,7 +1393,7 @@ var an = { exports: {} };
|
|
|
1347
1393
|
}, D.utcOffset = function() {
|
|
1348
1394
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1349
1395
|
}, D.diff = function(B, u, v) {
|
|
1350
|
-
var C, L = this, E = z.p(u), q = O(B),
|
|
1396
|
+
var C, L = this, E = z.p(u), q = O(B), H = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
|
|
1351
1397
|
return z.m(L, q);
|
|
1352
1398
|
};
|
|
1353
1399
|
switch (E) {
|
|
@@ -1361,10 +1407,10 @@ var an = { exports: {} };
|
|
|
1361
1407
|
C = X() / 3;
|
|
1362
1408
|
break;
|
|
1363
1409
|
case m:
|
|
1364
|
-
C = (G -
|
|
1410
|
+
C = (G - H) / 6048e5;
|
|
1365
1411
|
break;
|
|
1366
1412
|
case c:
|
|
1367
|
-
C = (G -
|
|
1413
|
+
C = (G - H) / 864e5;
|
|
1368
1414
|
break;
|
|
1369
1415
|
case a:
|
|
1370
1416
|
C = G / r;
|
|
@@ -1409,10 +1455,10 @@ var an = { exports: {} };
|
|
|
1409
1455
|
return O(1e3 * R);
|
|
1410
1456
|
}, O.en = p[T], O.Ls = p, O.p = {}, O;
|
|
1411
1457
|
});
|
|
1412
|
-
})(
|
|
1413
|
-
var
|
|
1414
|
-
const
|
|
1415
|
-
var
|
|
1458
|
+
})(cn);
|
|
1459
|
+
var er = cn.exports;
|
|
1460
|
+
const $t = /* @__PURE__ */ st(er);
|
|
1461
|
+
var un = { exports: {} };
|
|
1416
1462
|
(function(e, t) {
|
|
1417
1463
|
(function(n, o) {
|
|
1418
1464
|
e.exports = o();
|
|
@@ -1511,9 +1557,9 @@ var sn = { exports: {} };
|
|
|
1511
1557
|
z && (x = y[2]), a = this.$locale(), !O && x && (a = j.Ls[x]), this.$d = function(u, v, C, L) {
|
|
1512
1558
|
try {
|
|
1513
1559
|
if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * u);
|
|
1514
|
-
var E = g(v)(u), q = E.year,
|
|
1515
|
-
q && !
|
|
1516
|
-
var xe, et = X || 0, qe =
|
|
1560
|
+
var E = g(v)(u), q = E.year, H = E.month, G = E.day, X = E.hours, V = E.minutes, Z = E.seconds, ae = E.milliseconds, pe = E.zone, de = E.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || H ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), ze = 0;
|
|
1561
|
+
q && !H || (ze = H > 0 ? H - 1 : Se.getMonth());
|
|
1562
|
+
var xe, et = X || 0, qe = V || 0, f = Z || 0, d = ae || 0;
|
|
1517
1563
|
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
1564
|
} catch {
|
|
1519
1565
|
return /* @__PURE__ */ new Date("");
|
|
@@ -1532,10 +1578,10 @@ var sn = { exports: {} };
|
|
|
1532
1578
|
};
|
|
1533
1579
|
};
|
|
1534
1580
|
});
|
|
1535
|
-
})(
|
|
1536
|
-
var
|
|
1537
|
-
const
|
|
1538
|
-
var
|
|
1581
|
+
})(un);
|
|
1582
|
+
var tr = un.exports;
|
|
1583
|
+
const nr = /* @__PURE__ */ st(tr);
|
|
1584
|
+
var dn = { exports: {} };
|
|
1539
1585
|
(function(e, t) {
|
|
1540
1586
|
(function(n, o) {
|
|
1541
1587
|
e.exports = o();
|
|
@@ -1595,10 +1641,10 @@ var ln = { exports: {} };
|
|
|
1595
1641
|
};
|
|
1596
1642
|
};
|
|
1597
1643
|
});
|
|
1598
|
-
})(
|
|
1599
|
-
var
|
|
1600
|
-
const
|
|
1601
|
-
var
|
|
1644
|
+
})(dn);
|
|
1645
|
+
var or = dn.exports;
|
|
1646
|
+
const rr = /* @__PURE__ */ st(or);
|
|
1647
|
+
var fn = { exports: {} };
|
|
1602
1648
|
(function(e, t) {
|
|
1603
1649
|
(function(n, o) {
|
|
1604
1650
|
e.exports = o();
|
|
@@ -1670,12 +1716,12 @@ var cn = { exports: {} };
|
|
|
1670
1716
|
};
|
|
1671
1717
|
};
|
|
1672
1718
|
});
|
|
1673
|
-
})(
|
|
1674
|
-
var
|
|
1675
|
-
const
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1719
|
+
})(fn);
|
|
1720
|
+
var ar = fn.exports;
|
|
1721
|
+
const sr = /* @__PURE__ */ st(ar);
|
|
1722
|
+
$t.extend(sr);
|
|
1723
|
+
$t.extend(rr);
|
|
1724
|
+
$t.extend(nr);
|
|
1679
1725
|
const ht = /\$\{([^}]+)\}/g;
|
|
1680
1726
|
function Re(e) {
|
|
1681
1727
|
if (!e)
|
|
@@ -1684,9 +1730,9 @@ function Re(e) {
|
|
|
1684
1730
|
return (e.cascadeDependFields ?? []).forEach((n) => {
|
|
1685
1731
|
const o = String(n ?? "").trim();
|
|
1686
1732
|
o && t.add(o);
|
|
1687
|
-
}),
|
|
1733
|
+
}), ir(e.interface).forEach((n) => t.add(n)), [...t];
|
|
1688
1734
|
}
|
|
1689
|
-
function
|
|
1735
|
+
function ir(e) {
|
|
1690
1736
|
if (!e || typeof e != "object")
|
|
1691
1737
|
return [];
|
|
1692
1738
|
const t = e.params;
|
|
@@ -1712,11 +1758,11 @@ function yt(e, t) {
|
|
|
1712
1758
|
!e || typeof e != "object" || Object.values(e).forEach((n) => yt(n, t));
|
|
1713
1759
|
}
|
|
1714
1760
|
function Qe(e) {
|
|
1715
|
-
return Lt(e.type || e.fieldType || e.frontInputType) || Lt(e.renderType) || "text";
|
|
1716
|
-
}
|
|
1717
|
-
function $t(e) {
|
|
1718
1761
|
return Vt(e.type || e.fieldType || e.frontInputType) || Vt(e.renderType) || "text";
|
|
1719
1762
|
}
|
|
1763
|
+
function Ct(e) {
|
|
1764
|
+
return At(e.type || e.fieldType || e.frontInputType) || At(e.renderType) || "text";
|
|
1765
|
+
}
|
|
1720
1766
|
function Ce(e) {
|
|
1721
1767
|
if (e == null) return !0;
|
|
1722
1768
|
if (typeof e == "string") return e.trim() === "";
|
|
@@ -1729,42 +1775,42 @@ function Ce(e) {
|
|
|
1729
1775
|
}
|
|
1730
1776
|
return !1;
|
|
1731
1777
|
}
|
|
1732
|
-
function
|
|
1778
|
+
function pn(e) {
|
|
1733
1779
|
if (e instanceof Error) return !0;
|
|
1734
1780
|
if (!e || typeof e != "object") return !1;
|
|
1735
1781
|
const t = e;
|
|
1736
1782
|
return typeof t.message == "string" && (typeof t.stack == "string" || t.name === "Error");
|
|
1737
1783
|
}
|
|
1738
|
-
function
|
|
1739
|
-
const o =
|
|
1740
|
-
return o === "empty" || Ce(t) ? n :
|
|
1784
|
+
function mn(e, t, n = "-") {
|
|
1785
|
+
const o = Ct(e);
|
|
1786
|
+
return o === "empty" || Ce(t) ? n : pn(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? hr(e, t, n) : o === "switch" ? vn(t) ? "是" : "否" : o === "file" ? gr(t, n) : o === "multi-row" ? yr(t, n) : String(t);
|
|
1741
1787
|
}
|
|
1742
1788
|
function it(e, t) {
|
|
1743
1789
|
return Array.isArray(t) ? t : ct(e) ? typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean) : Ce(t) ? [] : [t] : [t];
|
|
1744
1790
|
}
|
|
1745
|
-
function
|
|
1791
|
+
function lr(e, t) {
|
|
1746
1792
|
return ct(e) ? it(e, t) : t;
|
|
1747
1793
|
}
|
|
1748
|
-
function
|
|
1794
|
+
function cr(e, t) {
|
|
1749
1795
|
return !ct(e) || !Array.isArray(t) ? Ce(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
|
|
1750
1796
|
}
|
|
1751
|
-
function
|
|
1797
|
+
function vn(e) {
|
|
1752
1798
|
if (typeof e == "boolean") return e;
|
|
1753
1799
|
if (typeof e == "number") return e !== 0;
|
|
1754
1800
|
const t = String(e ?? "").trim().toLowerCase();
|
|
1755
1801
|
return ["true", "1", "y", "yes", "t", "是"].includes(t);
|
|
1756
1802
|
}
|
|
1757
1803
|
function lt(e, t, n, o = {}) {
|
|
1758
|
-
const r =
|
|
1759
|
-
return e.filter((i) => i.visible ? !
|
|
1804
|
+
const r = pr(o);
|
|
1805
|
+
return e.filter((i) => i.visible ? !mr(i, t, n, r, o.rows) : !1);
|
|
1760
1806
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1807
|
+
function Lt(e) {
|
|
1808
|
+
return gn(e).some((n) => ["序号", "index", "idx", "seq", "seqno", "serial", "order", "rownum", "row_no"].includes(n));
|
|
1763
1809
|
}
|
|
1764
|
-
function
|
|
1765
|
-
return
|
|
1810
|
+
function Pt(e) {
|
|
1811
|
+
return gn(e).includes("seqno");
|
|
1766
1812
|
}
|
|
1767
|
-
function
|
|
1813
|
+
function ur(e) {
|
|
1768
1814
|
return [
|
|
1769
1815
|
e.type,
|
|
1770
1816
|
e.fieldType,
|
|
@@ -1772,12 +1818,12 @@ function rr(e) {
|
|
|
1772
1818
|
e.raw?.type,
|
|
1773
1819
|
e.raw?.fieldType,
|
|
1774
1820
|
e.raw?.frontInputType
|
|
1775
|
-
].some((t) =>
|
|
1821
|
+
].some((t) => yn(t) === "attach");
|
|
1776
1822
|
}
|
|
1777
|
-
function
|
|
1778
|
-
return !
|
|
1823
|
+
function hn(e, t, n = "-") {
|
|
1824
|
+
return !ur(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, i) => dr(r, i, n)).filter((r) => !!r);
|
|
1779
1825
|
}
|
|
1780
|
-
function
|
|
1826
|
+
function dr(e, t, n) {
|
|
1781
1827
|
if (Ce(e)) return null;
|
|
1782
1828
|
if (typeof e == "string") {
|
|
1783
1829
|
const o = e.trim();
|
|
@@ -1796,7 +1842,7 @@ function ar(e, t, n) {
|
|
|
1796
1842
|
text: e.name || n
|
|
1797
1843
|
};
|
|
1798
1844
|
if (e && typeof e == "object") {
|
|
1799
|
-
const o = e, r =
|
|
1845
|
+
const o = e, r = fr(o, n), i = De(o.url);
|
|
1800
1846
|
if (i) {
|
|
1801
1847
|
const l = { url: i }, a = De(o.name), c = De(o.mimeType), m = De(o.extension);
|
|
1802
1848
|
return a && (l.name = a), c && (l.mimeType = c), m && (l.extension = m), {
|
|
@@ -1828,24 +1874,24 @@ function ar(e, t, n) {
|
|
|
1828
1874
|
text: String(e).trim() || n
|
|
1829
1875
|
};
|
|
1830
1876
|
}
|
|
1831
|
-
function
|
|
1877
|
+
function fr(e, t) {
|
|
1832
1878
|
return De(e.name) || De(e.fileName) || De(e.filename) || De(e.url) || De(e.fileId) || t;
|
|
1833
1879
|
}
|
|
1834
1880
|
function De(e) {
|
|
1835
1881
|
return String(e ?? "").trim();
|
|
1836
1882
|
}
|
|
1837
|
-
function
|
|
1883
|
+
function Vt(e) {
|
|
1838
1884
|
const t = String(e ?? "").toLowerCase();
|
|
1839
1885
|
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
1886
|
}
|
|
1841
|
-
function
|
|
1887
|
+
function At(e) {
|
|
1842
1888
|
const t = String(e ?? "").toLowerCase();
|
|
1843
1889
|
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
1890
|
}
|
|
1845
|
-
function
|
|
1891
|
+
function pr(e) {
|
|
1846
1892
|
return e.rows?.length ? e.rows : [e.values ?? {}];
|
|
1847
1893
|
}
|
|
1848
|
-
function
|
|
1894
|
+
function mr(e, t, n, o, r) {
|
|
1849
1895
|
const i = n?.hiddenRule;
|
|
1850
1896
|
return i ? o.some((s) => {
|
|
1851
1897
|
try {
|
|
@@ -1864,8 +1910,8 @@ function lr(e, t, n, o, r) {
|
|
|
1864
1910
|
}
|
|
1865
1911
|
}) : !1;
|
|
1866
1912
|
}
|
|
1867
|
-
function
|
|
1868
|
-
return
|
|
1913
|
+
function gn(e) {
|
|
1914
|
+
return vr([
|
|
1869
1915
|
e.id,
|
|
1870
1916
|
e.key,
|
|
1871
1917
|
e.code,
|
|
@@ -1874,34 +1920,34 @@ function mn(e) {
|
|
|
1874
1920
|
e.prop
|
|
1875
1921
|
]);
|
|
1876
1922
|
}
|
|
1877
|
-
function
|
|
1878
|
-
return Array.from(new Set(e.map((t) =>
|
|
1923
|
+
function vr(e) {
|
|
1924
|
+
return Array.from(new Set(e.map((t) => yn(t)).filter(Boolean)));
|
|
1879
1925
|
}
|
|
1880
|
-
function
|
|
1926
|
+
function yn(e) {
|
|
1881
1927
|
return String(e ?? "").trim().toLowerCase();
|
|
1882
1928
|
}
|
|
1883
|
-
function
|
|
1929
|
+
function hr(e, t, n) {
|
|
1884
1930
|
const o = ct(e);
|
|
1885
1931
|
if (Array.isArray(t) || o) {
|
|
1886
|
-
const r = it(e, t).map((s) =>
|
|
1932
|
+
const r = it(e, t).map((s) => jt(e, s) || String(s ?? "").trim()).filter(Boolean), i = o ? "," : "、";
|
|
1887
1933
|
return r.length > 0 ? r.join(i) : n;
|
|
1888
1934
|
}
|
|
1889
|
-
return
|
|
1935
|
+
return jt(e, t) || String(t).trim() || n;
|
|
1890
1936
|
}
|
|
1891
1937
|
function ct(e) {
|
|
1892
|
-
return !!e.props?.multiple && (Qe(e) === "select" ||
|
|
1938
|
+
return !!e.props?.multiple && (Qe(e) === "select" || Ct(e) === "select");
|
|
1893
1939
|
}
|
|
1894
|
-
function
|
|
1940
|
+
function jt(e, t) {
|
|
1895
1941
|
return e.options?.find((o) => o.value === t || String(o.value) === String(t))?.label ?? "";
|
|
1896
1942
|
}
|
|
1897
|
-
function
|
|
1943
|
+
function gr(e, t) {
|
|
1898
1944
|
if (Array.isArray(e)) {
|
|
1899
|
-
const n = e.map((o) =>
|
|
1945
|
+
const n = e.map((o) => Nt(o)).filter(Boolean);
|
|
1900
1946
|
return n.length > 0 ? n.join("、") : t;
|
|
1901
1947
|
}
|
|
1902
|
-
return
|
|
1948
|
+
return Nt(e) || t;
|
|
1903
1949
|
}
|
|
1904
|
-
function
|
|
1950
|
+
function Nt(e) {
|
|
1905
1951
|
if (typeof File < "u" && e instanceof File) return e.name;
|
|
1906
1952
|
if (e && typeof e == "object") {
|
|
1907
1953
|
const t = e;
|
|
@@ -1909,11 +1955,11 @@ function At(e) {
|
|
|
1909
1955
|
}
|
|
1910
1956
|
return String(e ?? "").trim();
|
|
1911
1957
|
}
|
|
1912
|
-
function
|
|
1913
|
-
return Array.isArray(e) ? e.map((o) =>
|
|
1958
|
+
function yr(e, t) {
|
|
1959
|
+
return Array.isArray(e) ? e.map((o) => pn(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
1960
|
`) || t : String(e).trim() || t;
|
|
1915
1961
|
}
|
|
1916
|
-
function
|
|
1962
|
+
function br(e = null) {
|
|
1917
1963
|
return {
|
|
1918
1964
|
scheme: null,
|
|
1919
1965
|
node: null,
|
|
@@ -1926,23 +1972,23 @@ function pr(e = null) {
|
|
|
1926
1972
|
raw: e
|
|
1927
1973
|
};
|
|
1928
1974
|
}
|
|
1929
|
-
function
|
|
1930
|
-
const t =
|
|
1975
|
+
function Rt(e) {
|
|
1976
|
+
const t = Cn(e), n = $n(t), o = Dr(t).flatMap((r) => _n(r, n));
|
|
1931
1977
|
return {
|
|
1932
|
-
...
|
|
1978
|
+
...br(e),
|
|
1933
1979
|
scheme: n,
|
|
1934
1980
|
topNodes: o,
|
|
1935
1981
|
treeNodes: o
|
|
1936
1982
|
};
|
|
1937
1983
|
}
|
|
1938
|
-
function
|
|
1984
|
+
function bn(e, t, n) {
|
|
1939
1985
|
return e.map((o) => o.key === t || o.tagId === t || o.id === t ? { ...o, children: n, loaded: !0 } : {
|
|
1940
1986
|
...o,
|
|
1941
|
-
children:
|
|
1987
|
+
children: bn(o.children, t, n)
|
|
1942
1988
|
});
|
|
1943
1989
|
}
|
|
1944
|
-
function
|
|
1945
|
-
const o =
|
|
1990
|
+
function Sr(e, t = {}, n = null) {
|
|
1991
|
+
const o = Cn(e), r = $n(o, t), i = _r(o, t, n), s = Object.fromEntries(i.map((l) => [l.key, l]));
|
|
1946
1992
|
return {
|
|
1947
1993
|
scheme: r,
|
|
1948
1994
|
node: n,
|
|
@@ -1955,10 +2001,10 @@ function mr(e, t = {}, n = null) {
|
|
|
1955
2001
|
raw: e
|
|
1956
2002
|
};
|
|
1957
2003
|
}
|
|
1958
|
-
function
|
|
2004
|
+
function wr(e) {
|
|
1959
2005
|
return e.multRow || e.htmlDisplay === "T" ? "table" : "form";
|
|
1960
2006
|
}
|
|
1961
|
-
function
|
|
2007
|
+
function Ir(e, t = {}) {
|
|
1962
2008
|
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
2009
|
return {
|
|
1964
2010
|
...t,
|
|
@@ -1977,18 +2023,18 @@ function hr(e, t = {}) {
|
|
|
1977
2023
|
}
|
|
1978
2024
|
function bt(e) {
|
|
1979
2025
|
return Object.fromEntries(
|
|
1980
|
-
Object.entries(e).map(([t, n]) => [t,
|
|
2026
|
+
Object.entries(e).map(([t, n]) => [t, Sn(n)])
|
|
1981
2027
|
);
|
|
1982
2028
|
}
|
|
1983
|
-
function
|
|
1984
|
-
return e === "" ? null : Array.isArray(e) ? e.map(
|
|
2029
|
+
function Sn(e) {
|
|
2030
|
+
return e === "" ? null : Array.isArray(e) ? e.map(Sn) : e && typeof e == "object" ? bt(e) : e;
|
|
1985
2031
|
}
|
|
1986
|
-
function
|
|
2032
|
+
function Ua(e) {
|
|
1987
2033
|
const t = e;
|
|
1988
2034
|
return !!(t && typeof t == "object" && typeof t.key == "string" && typeof t.tagId == "string");
|
|
1989
2035
|
}
|
|
1990
|
-
function
|
|
1991
|
-
const t =
|
|
2036
|
+
function wn(e) {
|
|
2037
|
+
const t = kn(e);
|
|
1992
2038
|
return (Array.isArray(t) ? t : Je(le(t), ["options", "list", "records", "data"])).map((o) => {
|
|
1993
2039
|
const r = le(o), i = r.fieldvalue ?? r.fieldValue;
|
|
1994
2040
|
return {
|
|
@@ -2001,12 +2047,12 @@ function yn(e) {
|
|
|
2001
2047
|
};
|
|
2002
2048
|
});
|
|
2003
2049
|
}
|
|
2004
|
-
function
|
|
2050
|
+
function _r(e, t, n) {
|
|
2005
2051
|
const o = Je(e, ["sections", "sets", "list"]);
|
|
2006
|
-
return o.length > 0 ? o.map((r) =>
|
|
2052
|
+
return o.length > 0 ? o.map((r) => zt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [zt(e, t, n, !0)] : [];
|
|
2007
2053
|
}
|
|
2008
|
-
function
|
|
2009
|
-
const r = le(e), i =
|
|
2054
|
+
function zt(e, t, n, o) {
|
|
2055
|
+
const r = le(e), i = $r(r.infSetMark ?? r), s = Cr(r.infSetFields ?? r.fields ?? []), l = wr(i), a = Mr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : In(s), m = le(r.tag), _ = Q(
|
|
2010
2056
|
r.tagId ?? r.infTagId ?? m.tagId ?? m.infTagId ?? i.raw.tagId ?? i.raw.infTagId
|
|
2011
2057
|
), $ = Q(t.tagId ?? n?.tagId), b = Q(n?.key), A = o ? t.infSetId ?? n?.infSetId : void 0, g = o ? t.setId : void 0, w = o ? n?.code : void 0, S = i.setId || Q(r.setId), j = Q(r.infSetId) || S || Q(A), I = S || Q(g ?? j), h = i.code || Q(r.code ?? w ?? I), T = I || h || j || _, p = {
|
|
2012
2058
|
key: T,
|
|
@@ -2028,7 +2074,7 @@ function Nt(e, t, n, o) {
|
|
|
2028
2074
|
};
|
|
2029
2075
|
return p.renderType === "form" && a.length === 0 && (p.rows = [{ ...c, __rowKey: `${T}-0` }]), p;
|
|
2030
2076
|
}
|
|
2031
|
-
function
|
|
2077
|
+
function $r(e) {
|
|
2032
2078
|
const t = le(e), n = Q(t.htmlDisplay || "F");
|
|
2033
2079
|
return {
|
|
2034
2080
|
name: Q(t.name ?? t.title),
|
|
@@ -2043,21 +2089,21 @@ function yr(e) {
|
|
|
2043
2089
|
raw: t
|
|
2044
2090
|
};
|
|
2045
2091
|
}
|
|
2046
|
-
function
|
|
2047
|
-
return (Array.isArray(e) ? e : []).map((n, o) =>
|
|
2092
|
+
function Cr(e) {
|
|
2093
|
+
return (Array.isArray(e) ? e : []).map((n, o) => kr(n, o));
|
|
2048
2094
|
}
|
|
2049
|
-
function
|
|
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 =
|
|
2095
|
+
function kr(e, t) {
|
|
2096
|
+
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 = Mn(n.interface ?? n.interfaceField), s = xt(n.cascadeDependFields);
|
|
2051
2097
|
return {
|
|
2052
2098
|
id: Q(n.id ?? n.key ?? n.prop ?? o),
|
|
2053
2099
|
key: Q(n.key ?? n.prop ?? o),
|
|
2054
2100
|
code: o,
|
|
2055
2101
|
label: r,
|
|
2056
2102
|
value: n.value ?? n.defaultValue ?? "",
|
|
2057
|
-
type:
|
|
2103
|
+
type: Er(n),
|
|
2058
2104
|
fieldType: ie(n.fieldType),
|
|
2059
2105
|
frontInputType: ie(n.frontInputType),
|
|
2060
|
-
renderType:
|
|
2106
|
+
renderType: Br(n),
|
|
2061
2107
|
required: $e(n.required ?? n.isRequired),
|
|
2062
2108
|
readonly: $e(n.readonly ?? n.disabled),
|
|
2063
2109
|
visible: n.visible === void 0 ? $e(n.visibled ?? !0) : $e(n.visible),
|
|
@@ -2065,39 +2111,39 @@ function Sr(e, t) {
|
|
|
2065
2111
|
multRow: $e(n.multRow),
|
|
2066
2112
|
isRequired: $e(n.isRequired),
|
|
2067
2113
|
disabled: n.disabled === void 0 ? void 0 : $e(n.disabled),
|
|
2068
|
-
span:
|
|
2069
|
-
width:
|
|
2070
|
-
minWidth:
|
|
2114
|
+
span: Dn(n.span ?? n.colSpan),
|
|
2115
|
+
width: qt(n.width),
|
|
2116
|
+
minWidth: qt(n.minWidth),
|
|
2071
2117
|
placeholder: ie(n.placeholder),
|
|
2072
|
-
options:
|
|
2118
|
+
options: wn(n.options),
|
|
2073
2119
|
interface: i,
|
|
2074
|
-
cascadeClearFields:
|
|
2120
|
+
cascadeClearFields: xt(n.cascadeClearFields),
|
|
2075
2121
|
cascadeDependFields: Re({
|
|
2076
2122
|
cascadeDependFields: s,
|
|
2077
2123
|
interface: i
|
|
2078
2124
|
}),
|
|
2079
|
-
props:
|
|
2080
|
-
formItemProps:
|
|
2125
|
+
props: Lr(n),
|
|
2126
|
+
formItemProps: Tn(n.formItemProps),
|
|
2081
2127
|
raw: n
|
|
2082
2128
|
};
|
|
2083
2129
|
}
|
|
2084
|
-
function
|
|
2130
|
+
function Mr(e, t, n) {
|
|
2085
2131
|
if (Array.isArray(e) && e.some((i) => {
|
|
2086
2132
|
const s = le(i);
|
|
2087
2133
|
return t.some((l) => s[l.code] !== void 0 || s[l.key] !== void 0);
|
|
2088
2134
|
}))
|
|
2089
2135
|
return e.map((i, s) => ({ ...le(i), __rowKey: Q(le(i).__rowKey ?? le(i).key ?? s) }));
|
|
2090
|
-
const o =
|
|
2136
|
+
const o = In(t);
|
|
2091
2137
|
return n === "form" && Object.keys(o).length ? [{ ...o, __rowKey: "0" }] : [];
|
|
2092
2138
|
}
|
|
2093
|
-
function
|
|
2139
|
+
function In(e) {
|
|
2094
2140
|
return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
|
|
2095
2141
|
}
|
|
2096
|
-
function
|
|
2097
|
-
const o = le(e), r = Je(o, ["children", "list", "tags"]).flatMap((s) =>
|
|
2098
|
-
return r.length === 0 && i.length > 0 ? i.map((s, l) =>
|
|
2142
|
+
function _n(e, t, n = "") {
|
|
2143
|
+
const o = le(e), r = Je(o, ["children", "list", "tags"]).flatMap((s) => _n(s, t, Q(o.tagId ?? o.id ?? o.key))), i = Fr(o.infSetList);
|
|
2144
|
+
return r.length === 0 && i.length > 0 ? i.map((s, l) => Or(o, s, t, n, l)) : [Tr(o, t, n, r)];
|
|
2099
2145
|
}
|
|
2100
|
-
function
|
|
2146
|
+
function Tr(e, t, n, o) {
|
|
2101
2147
|
const r = Q(e.tagId ?? e.id ?? e.key), i = Q(e.tagName ?? e.name ?? e.label ?? r);
|
|
2102
2148
|
return {
|
|
2103
2149
|
key: Q(e.key ?? r),
|
|
@@ -2106,7 +2152,7 @@ function Ir(e, t, n, o) {
|
|
|
2106
2152
|
tagName: i,
|
|
2107
2153
|
label: i,
|
|
2108
2154
|
tagLevel: ie(e.tagLevel ?? e.level) ?? null,
|
|
2109
|
-
level:
|
|
2155
|
+
level: On(e.tagLevel ?? e.level),
|
|
2110
2156
|
parentTagId: ie(e.parentTagId ?? e.parentId ?? n),
|
|
2111
2157
|
parentId: ie(e.parentTagId ?? e.parentId ?? n) ?? null,
|
|
2112
2158
|
infSchmId: ie(e.infSchmId ?? t?.infSchmId),
|
|
@@ -2121,7 +2167,7 @@ function Ir(e, t, n, o) {
|
|
|
2121
2167
|
raw: e
|
|
2122
2168
|
};
|
|
2123
2169
|
}
|
|
2124
|
-
function
|
|
2170
|
+
function Or(e, t, n, o, r) {
|
|
2125
2171
|
const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`, m = t.code || ie(e.code ?? l);
|
|
2126
2172
|
return {
|
|
2127
2173
|
key: c,
|
|
@@ -2130,7 +2176,7 @@ function _r(e, t, n, o, r) {
|
|
|
2130
2176
|
tagName: s,
|
|
2131
2177
|
label: s,
|
|
2132
2178
|
tagLevel: ie(e.tagLevel ?? e.level) ?? null,
|
|
2133
|
-
level:
|
|
2179
|
+
level: On(e.tagLevel ?? e.level),
|
|
2134
2180
|
parentTagId: ie(e.parentTagId ?? e.parentId ?? o),
|
|
2135
2181
|
parentId: ie(e.parentTagId ?? e.parentId ?? o) ?? null,
|
|
2136
2182
|
infSchmId: ie(e.infSchmId ?? n?.infSchmId),
|
|
@@ -2150,7 +2196,7 @@ function _r(e, t, n, o, r) {
|
|
|
2150
2196
|
}
|
|
2151
2197
|
};
|
|
2152
2198
|
}
|
|
2153
|
-
function
|
|
2199
|
+
function $n(e, t = {}) {
|
|
2154
2200
|
const n = le(e.globalInfoSchmMark ?? e.scheme ?? e), o = Q(n.infSchmId ?? t.infSchmId), r = Q(n.emplid ?? t.emplid);
|
|
2155
2201
|
return !o && !r && Object.keys(n).length === 0 ? null : {
|
|
2156
2202
|
infSchmId: o,
|
|
@@ -2161,13 +2207,13 @@ function wn(e, t = {}) {
|
|
|
2161
2207
|
raw: n
|
|
2162
2208
|
};
|
|
2163
2209
|
}
|
|
2164
|
-
function
|
|
2210
|
+
function Dr(e) {
|
|
2165
2211
|
if (Array.isArray(e.globalInfoSchmConfig))
|
|
2166
2212
|
return e.globalInfoSchmConfig;
|
|
2167
2213
|
const t = le(e.globalInfoSchmConfig), n = Je(t, ["children", "tree", "list", "tags"]);
|
|
2168
2214
|
return n.length ? n : Je(e, ["children", "tree", "list", "tags", "records"]);
|
|
2169
2215
|
}
|
|
2170
|
-
function
|
|
2216
|
+
function Fr(e) {
|
|
2171
2217
|
return Array.isArray(e) ? e.map((t) => {
|
|
2172
2218
|
const n = le(t);
|
|
2173
2219
|
return {
|
|
@@ -2180,10 +2226,10 @@ function Cr(e) {
|
|
|
2180
2226
|
};
|
|
2181
2227
|
}) : [];
|
|
2182
2228
|
}
|
|
2183
|
-
function
|
|
2184
|
-
return le(
|
|
2229
|
+
function Cn(e) {
|
|
2230
|
+
return le(kn(e));
|
|
2185
2231
|
}
|
|
2186
|
-
function
|
|
2232
|
+
function kn(e) {
|
|
2187
2233
|
const t = le(e);
|
|
2188
2234
|
return t.data ?? t.result ?? e;
|
|
2189
2235
|
}
|
|
@@ -2199,50 +2245,50 @@ function St(e) {
|
|
|
2199
2245
|
const t = { ...e };
|
|
2200
2246
|
return delete t.__rowKey, delete t.fields, t;
|
|
2201
2247
|
}
|
|
2202
|
-
function
|
|
2248
|
+
function Mn(e) {
|
|
2203
2249
|
const t = le(e);
|
|
2204
2250
|
if (!(!t.method && !t.url && !t.params))
|
|
2205
2251
|
return {
|
|
2206
2252
|
...t,
|
|
2207
2253
|
method: ie(t.method),
|
|
2208
2254
|
url: ie(t.url),
|
|
2209
|
-
params:
|
|
2255
|
+
params: Tn(t.params)
|
|
2210
2256
|
};
|
|
2211
2257
|
}
|
|
2212
2258
|
function ut(e) {
|
|
2213
2259
|
const t = le(e);
|
|
2214
2260
|
if (Object.keys(t).length !== 0)
|
|
2215
2261
|
return Object.fromEntries(
|
|
2216
|
-
Object.entries(t).map(([n, o]) => [n,
|
|
2262
|
+
Object.entries(t).map(([n, o]) => [n, Mn(o) ?? o])
|
|
2217
2263
|
);
|
|
2218
2264
|
}
|
|
2219
|
-
function
|
|
2265
|
+
function xt(e) {
|
|
2220
2266
|
if (!Array.isArray(e))
|
|
2221
2267
|
return;
|
|
2222
2268
|
const t = e.map((n) => Q(n)).filter(Boolean);
|
|
2223
2269
|
return t.length ? t : void 0;
|
|
2224
2270
|
}
|
|
2225
|
-
function
|
|
2271
|
+
function Br(e) {
|
|
2226
2272
|
if ($e(e.htmlDisplay)) return "html";
|
|
2227
2273
|
if ($e(e.multRow)) return "multi-row";
|
|
2228
2274
|
const t = Q(e.renderType).toLowerCase();
|
|
2229
2275
|
return t === "code" || t === "empty" ? t : "text";
|
|
2230
2276
|
}
|
|
2231
|
-
function
|
|
2277
|
+
function Er(e) {
|
|
2232
2278
|
const t = Q(e.fieldType ?? e.type ?? e.frontInputType ?? e.renderType).toLowerCase();
|
|
2233
2279
|
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
2280
|
}
|
|
2235
|
-
function
|
|
2281
|
+
function Tn(e) {
|
|
2236
2282
|
const t = le(e);
|
|
2237
2283
|
return Object.keys(t).length ? t : void 0;
|
|
2238
2284
|
}
|
|
2239
|
-
function
|
|
2285
|
+
function Lr(e) {
|
|
2240
2286
|
const t = {
|
|
2241
2287
|
...le(e.props)
|
|
2242
2288
|
};
|
|
2243
2289
|
return e.multiple !== void 0 && (t.multiple = $e(e.multiple)), Object.keys(t).length ? t : void 0;
|
|
2244
2290
|
}
|
|
2245
|
-
function
|
|
2291
|
+
function qt(e) {
|
|
2246
2292
|
return typeof e == "string" || typeof e == "number" ? e : void 0;
|
|
2247
2293
|
}
|
|
2248
2294
|
function le(e) {
|
|
@@ -2254,11 +2300,11 @@ function Q(e) {
|
|
|
2254
2300
|
function ie(e) {
|
|
2255
2301
|
return Q(e) || void 0;
|
|
2256
2302
|
}
|
|
2257
|
-
function
|
|
2258
|
-
const t =
|
|
2303
|
+
function On(e) {
|
|
2304
|
+
const t = Dn(e);
|
|
2259
2305
|
return t === void 0 ? null : t;
|
|
2260
2306
|
}
|
|
2261
|
-
function
|
|
2307
|
+
function Dn(e) {
|
|
2262
2308
|
if (e == null || e === "") return;
|
|
2263
2309
|
const t = Number(e);
|
|
2264
2310
|
return Number.isFinite(t) ? t : void 0;
|
|
@@ -2266,7 +2312,7 @@ function Mn(e) {
|
|
|
2266
2312
|
function $e(e) {
|
|
2267
2313
|
return typeof e == "string" ? ["true", "1", "y", "yes", "t", "是"].includes(e.toLowerCase()) : !!e;
|
|
2268
2314
|
}
|
|
2269
|
-
const
|
|
2315
|
+
const Pe = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Pr = (e) => String(e ?? "").trim(), Xe = (e) => Array.from(new Set(e.map(Pr).filter(Boolean))), Ke = (e) => !!(e && typeof e == "object" && "children" in e), We = (e) => Xe([
|
|
2270
2316
|
e?.key,
|
|
2271
2317
|
e?.id,
|
|
2272
2318
|
e?.setId,
|
|
@@ -2275,7 +2321,7 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Or = (e) => Str
|
|
|
2275
2321
|
e?.code,
|
|
2276
2322
|
...(e?.infSetList ?? []).map((t) => t.infSetId),
|
|
2277
2323
|
...(e?.infSetList ?? []).map((t) => t.setId)
|
|
2278
|
-
]),
|
|
2324
|
+
]), Vr = (e) => Xe([
|
|
2279
2325
|
e.key,
|
|
2280
2326
|
e.id,
|
|
2281
2327
|
e.setId,
|
|
@@ -2283,16 +2329,16 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Or = (e) => Str
|
|
|
2283
2329
|
e.tagId,
|
|
2284
2330
|
e.code
|
|
2285
2331
|
]);
|
|
2286
|
-
function
|
|
2287
|
-
const o =
|
|
2332
|
+
function Fn(e, t, n) {
|
|
2333
|
+
const o = Vr(e), r = Xe([n, ...We(t)]);
|
|
2288
2334
|
return r.length === 0 ? !1 : r.some((i) => o.includes(i));
|
|
2289
2335
|
}
|
|
2290
|
-
function
|
|
2291
|
-
return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) =>
|
|
2336
|
+
function Ar(e, t, n) {
|
|
2337
|
+
return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) => Fn(r, t, n));
|
|
2292
2338
|
}
|
|
2293
|
-
function
|
|
2294
|
-
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t :
|
|
2295
|
-
if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !
|
|
2339
|
+
function jr(e, t, n = {}) {
|
|
2340
|
+
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Pe(t), i = typeof t == "string" ? e.fields.find((a) => Pe(a) === r || a.code === r) : t, l = Re(i).some((a) => {
|
|
2341
|
+
if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !Rr(e, a))
|
|
2296
2342
|
return !1;
|
|
2297
2343
|
const c = o[a];
|
|
2298
2344
|
return c == null || c === "";
|
|
@@ -2305,35 +2351,35 @@ function Br(e, t, n = {}) {
|
|
|
2305
2351
|
missingDependField: l
|
|
2306
2352
|
};
|
|
2307
2353
|
}
|
|
2308
|
-
function
|
|
2354
|
+
function Nr(e) {
|
|
2309
2355
|
return !!(e && e.type !== "select_remote" && Re(e).length === 0 && (e.options ?? []).length > 0);
|
|
2310
2356
|
}
|
|
2311
|
-
function
|
|
2312
|
-
return e.fields.some((n) => n.code === t || n.key === t || n.id === t ||
|
|
2357
|
+
function Rr(e, t) {
|
|
2358
|
+
return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Pe(n) === t);
|
|
2313
2359
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return
|
|
2360
|
+
function zr(e) {
|
|
2361
|
+
return wn(e);
|
|
2316
2362
|
}
|
|
2317
2363
|
const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, nt = (e) => {
|
|
2318
2364
|
const t = Te(e);
|
|
2319
2365
|
return !!(t.url || t.method || t.params);
|
|
2320
2366
|
};
|
|
2321
|
-
function
|
|
2367
|
+
function xr(e) {
|
|
2322
2368
|
const t = Te(e.operationInfo).openTag;
|
|
2323
2369
|
return nt(t) ? t : void 0;
|
|
2324
2370
|
}
|
|
2325
|
-
function
|
|
2371
|
+
function qr(e, t, n) {
|
|
2326
2372
|
const o = Te(e?.operationInfo).queryInfoSet;
|
|
2327
2373
|
if (nt(o))
|
|
2328
2374
|
return o;
|
|
2329
2375
|
const r = t?.infSetList.find((s) => s.infSetId === n), i = Te(r?.operationInfo).queryInfoSet;
|
|
2330
2376
|
return nt(i) ? i : void 0;
|
|
2331
2377
|
}
|
|
2332
|
-
function
|
|
2378
|
+
function Gr(e) {
|
|
2333
2379
|
const t = Te(e.operationInfo).editInfoSet;
|
|
2334
2380
|
return nt(t) ? t : void 0;
|
|
2335
2381
|
}
|
|
2336
|
-
async function
|
|
2382
|
+
async function Bn(e) {
|
|
2337
2383
|
const t = e.params === void 0 ? void 0 : Te(e.params);
|
|
2338
2384
|
return !e.formatter || e.requestSource !== "inner" ? t : e.formatter({
|
|
2339
2385
|
operation: e.operation,
|
|
@@ -2357,10 +2403,10 @@ async function On(e) {
|
|
|
2357
2403
|
params: t
|
|
2358
2404
|
});
|
|
2359
2405
|
}
|
|
2360
|
-
async function
|
|
2406
|
+
async function Kr(e) {
|
|
2361
2407
|
if (!e.service.requestOperation)
|
|
2362
2408
|
throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");
|
|
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
|
|
2409
|
+
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 Bn({
|
|
2364
2410
|
formatter: e.formatter,
|
|
2365
2411
|
params: n,
|
|
2366
2412
|
operation: e.operation,
|
|
@@ -2383,7 +2429,7 @@ async function Nr(e) {
|
|
|
2383
2429
|
e.context ? { ...e.context, params: o } : e.context
|
|
2384
2430
|
);
|
|
2385
2431
|
}
|
|
2386
|
-
function
|
|
2432
|
+
function He(e = {}) {
|
|
2387
2433
|
return {
|
|
2388
2434
|
// loading:当前 section 是否正在拉详情。
|
|
2389
2435
|
loading: !1,
|
|
@@ -2399,18 +2445,18 @@ function Ue(e = {}) {
|
|
|
2399
2445
|
...e
|
|
2400
2446
|
};
|
|
2401
2447
|
}
|
|
2402
|
-
function
|
|
2403
|
-
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i =
|
|
2448
|
+
function Yr(e) {
|
|
2449
|
+
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = Ar(e.nextViewModel.sections, e.node, e.targetKey), s = Xe([e.targetKey, ...We(e.node)]).length > 0, l = i.find((a) => Fn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? i[0] ?? e.activeSection ?? null);
|
|
2404
2450
|
return i.forEach((a) => {
|
|
2405
2451
|
const c = ke(a);
|
|
2406
|
-
t[c] = a, o.includes(c) || o.push(c), r[c] =
|
|
2452
|
+
t[c] = a, o.includes(c) || o.push(c), r[c] = He({
|
|
2407
2453
|
...r[c],
|
|
2408
2454
|
loaded: !0,
|
|
2409
2455
|
loading: !1,
|
|
2410
2456
|
error: null,
|
|
2411
2457
|
editing: e.editingSectionKeys.includes(c)
|
|
2412
2458
|
});
|
|
2413
|
-
}), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] =
|
|
2459
|
+
}), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = He({
|
|
2414
2460
|
...r[e.targetKey],
|
|
2415
2461
|
loaded: !0,
|
|
2416
2462
|
loading: !1,
|
|
@@ -2425,17 +2471,17 @@ function Rr(e) {
|
|
|
2425
2471
|
targetSections: i
|
|
2426
2472
|
};
|
|
2427
2473
|
}
|
|
2428
|
-
const
|
|
2429
|
-
function
|
|
2430
|
-
return !e.mark.isRequired || t.length > 0 ? null :
|
|
2474
|
+
const En = "信息集不能为空,最后一条数据不可删除";
|
|
2475
|
+
function Hr(e, t = [], n = {}) {
|
|
2476
|
+
return !e.mark.isRequired || t.length > 0 ? null : Ur(
|
|
2431
2477
|
n.emptyMessage,
|
|
2432
2478
|
{ section: e, infSetValues: t }
|
|
2433
|
-
) ||
|
|
2479
|
+
) || En;
|
|
2434
2480
|
}
|
|
2435
|
-
function
|
|
2436
|
-
return typeof e == "function" ? e(t) : typeof e == "string" ? e :
|
|
2481
|
+
function Ur(e, t) {
|
|
2482
|
+
return typeof e == "function" ? e(t) : typeof e == "string" ? e : En;
|
|
2437
2483
|
}
|
|
2438
|
-
const Ne = (e) => new Error(`[GlobalInfo] ${e}`),
|
|
2484
|
+
const Ne = (e) => new Error(`[GlobalInfo] ${e}`), Jr = (e) => [
|
|
2439
2485
|
String(e.method ?? "").toLowerCase(),
|
|
2440
2486
|
String(e.url ?? ""),
|
|
2441
2487
|
wt(Te(e.params))
|
|
@@ -2443,13 +2489,13 @@ const Ne = (e) => new Error(`[GlobalInfo] ${e}`), qr = (e) => [
|
|
|
2443
2489
|
function wt(e) {
|
|
2444
2490
|
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);
|
|
2445
2491
|
}
|
|
2446
|
-
const
|
|
2447
|
-
const t = he(!1), n = he(!1), o = he(!1), r =
|
|
2492
|
+
const Wr = (e) => {
|
|
2493
|
+
const t = he(!1), n = he(!1), o = he(!1), r = Ve(null), i = Ve([]), s = Ve(null), l = Ve(null), a = Ve(null), c = Ve({}), m = Ve({}), _ = he([]), $ = Ve({}), b = he([]), A = P(
|
|
2448
2494
|
() => {
|
|
2449
2495
|
const f = _.value.map((M) => c.value[M]).filter((M) => !!M), d = Object.entries(c.value).filter(([M]) => !_.value.includes(M)).map(([, M]) => M);
|
|
2450
2496
|
return [...f, ...d];
|
|
2451
2497
|
}
|
|
2452
|
-
), g =
|
|
2498
|
+
), g = P(() => ({
|
|
2453
2499
|
// 整棵树是否正在加载。
|
|
2454
2500
|
loading: t.value,
|
|
2455
2501
|
// 当前详情是否正在加载。
|
|
@@ -2503,7 +2549,7 @@ const Gr = (e) => {
|
|
|
2503
2549
|
infSetId: d?.infSetId ?? f?.infSetId,
|
|
2504
2550
|
// setId 同样优先取 section,避免保存时拿错节点 setId。
|
|
2505
2551
|
setId: d?.setId ?? f?.setId
|
|
2506
|
-
}), I = async (f, d) =>
|
|
2552
|
+
}), I = async (f, d) => Kr({
|
|
2507
2553
|
service: e.service,
|
|
2508
2554
|
formatter: e.formatOperationParams,
|
|
2509
2555
|
operation: f,
|
|
@@ -2512,15 +2558,15 @@ const Gr = (e) => {
|
|
|
2512
2558
|
sections: A.value,
|
|
2513
2559
|
activeNode: l.value,
|
|
2514
2560
|
activeSection: a.value
|
|
2515
|
-
}), h =
|
|
2561
|
+
}), h = Xo(
|
|
2516
2562
|
async (f, d) => {
|
|
2517
2563
|
if (!e.service.requestOperation)
|
|
2518
2564
|
throw Ne("service.requestOperation is required");
|
|
2519
2565
|
return e.service.requestOperation(f, d);
|
|
2520
2566
|
},
|
|
2521
|
-
(f) =>
|
|
2567
|
+
(f) => Jr(f)
|
|
2522
2568
|
), T = async (f, d) => {
|
|
2523
|
-
const M = await
|
|
2569
|
+
const M = await Bn({
|
|
2524
2570
|
formatter: e.formatOperationParams,
|
|
2525
2571
|
params: d?.params,
|
|
2526
2572
|
operation: f,
|
|
@@ -2580,9 +2626,9 @@ const Gr = (e) => {
|
|
|
2580
2626
|
}, ne = (f = a.value) => !f || Ke(f) ? null : y(f), x = (f = a.value) => {
|
|
2581
2627
|
const d = O(f);
|
|
2582
2628
|
if (!d)
|
|
2583
|
-
return
|
|
2629
|
+
return He();
|
|
2584
2630
|
const M = m.value[d] ?? d;
|
|
2585
|
-
return
|
|
2631
|
+
return He({
|
|
2586
2632
|
...$.value[d],
|
|
2587
2633
|
...$.value[M],
|
|
2588
2634
|
// 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
|
|
@@ -2594,7 +2640,7 @@ const Gr = (e) => {
|
|
|
2594
2640
|
const M = O(f);
|
|
2595
2641
|
M && ($.value = {
|
|
2596
2642
|
...$.value,
|
|
2597
|
-
[M]:
|
|
2643
|
+
[M]: He({
|
|
2598
2644
|
// 保留已有状态。
|
|
2599
2645
|
...$.value[M],
|
|
2600
2646
|
// 合并本次状态补丁。
|
|
@@ -2627,7 +2673,7 @@ const Gr = (e) => {
|
|
|
2627
2673
|
raw: f
|
|
2628
2674
|
}, a.value = K;
|
|
2629
2675
|
}, B = (f, d = l.value, M) => {
|
|
2630
|
-
const K =
|
|
2676
|
+
const K = Yr({
|
|
2631
2677
|
currentMap: c.value,
|
|
2632
2678
|
currentAliasMap: m.value,
|
|
2633
2679
|
currentOrder: _.value,
|
|
@@ -2669,7 +2715,7 @@ const Gr = (e) => {
|
|
|
2669
2715
|
if (W.length === 0)
|
|
2670
2716
|
throw Ne("node.infSetList is required");
|
|
2671
2717
|
const _e = await Promise.all(W.map(async (se) => {
|
|
2672
|
-
const ve =
|
|
2718
|
+
const ve = qr(d, M, se.infSetId), Ae = {
|
|
2673
2719
|
...j(M, d),
|
|
2674
2720
|
infSetId: se.infSetId,
|
|
2675
2721
|
setId: se.setId,
|
|
@@ -2684,7 +2730,7 @@ const Gr = (e) => {
|
|
|
2684
2730
|
section: d,
|
|
2685
2731
|
params: Ae
|
|
2686
2732
|
});
|
|
2687
|
-
return
|
|
2733
|
+
return Sr(dt, Ae, M);
|
|
2688
2734
|
}
|
|
2689
2735
|
throw Ne("infoSet.operationInfo.queryInfoSet is required");
|
|
2690
2736
|
})), me = {
|
|
@@ -2706,7 +2752,7 @@ const Gr = (e) => {
|
|
|
2706
2752
|
const d = O(f);
|
|
2707
2753
|
return d ? c.value[m.value[d] ?? d] ?? null : null;
|
|
2708
2754
|
}, E = async (f = l.value) => f ? (await v(f), s.value) : (s.value = null, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, null), q = async (f) => {
|
|
2709
|
-
const d =
|
|
2755
|
+
const d = xr(f);
|
|
2710
2756
|
if (!d)
|
|
2711
2757
|
return f.children;
|
|
2712
2758
|
const M = S(f), K = await I(d, {
|
|
@@ -2716,22 +2762,22 @@ const Gr = (e) => {
|
|
|
2716
2762
|
node: f,
|
|
2717
2763
|
params: M
|
|
2718
2764
|
});
|
|
2719
|
-
return
|
|
2720
|
-
},
|
|
2765
|
+
return Rt(K).treeNodes;
|
|
2766
|
+
}, H = async (f) => {
|
|
2721
2767
|
if (f.loaded)
|
|
2722
2768
|
return f.children;
|
|
2723
2769
|
const d = await q(f);
|
|
2724
|
-
return d.length > 0 && (i.value =
|
|
2770
|
+
return d.length > 0 && (i.value = bn(i.value, f.key, d)), d;
|
|
2725
2771
|
}, G = async (f) => {
|
|
2726
2772
|
const d = typeof f == "string" ? p(i.value, f) : f;
|
|
2727
|
-
return d ? (l.value = d, a.value = null, b.value = [], await
|
|
2773
|
+
return d ? (l.value = d, a.value = null, b.value = [], await H(d), D(s.value?.raw, d), d) : null;
|
|
2728
2774
|
}, X = async () => {
|
|
2729
2775
|
const f = e.service.templateTree;
|
|
2730
2776
|
if (!f)
|
|
2731
2777
|
throw Ne("service.templateTree is required");
|
|
2732
2778
|
t.value = !0, r.value = null;
|
|
2733
2779
|
try {
|
|
2734
|
-
const d = await f(w()), M =
|
|
2780
|
+
const d = await f(w()), M = Rt(d), K = await Promise.all(
|
|
2735
2781
|
M.treeNodes.map(async (_e) => {
|
|
2736
2782
|
const me = await q(_e);
|
|
2737
2783
|
return {
|
|
@@ -2755,7 +2801,7 @@ const Gr = (e) => {
|
|
|
2755
2801
|
} finally {
|
|
2756
2802
|
t.value = !1;
|
|
2757
2803
|
}
|
|
2758
|
-
},
|
|
2804
|
+
}, V = async () => {
|
|
2759
2805
|
const f = N();
|
|
2760
2806
|
await C(a.value ?? l.value);
|
|
2761
2807
|
const d = A.value.find(
|
|
@@ -2774,9 +2820,9 @@ const Gr = (e) => {
|
|
|
2774
2820
|
(M) => M !== d
|
|
2775
2821
|
), R(d, { editing: !1 }));
|
|
2776
2822
|
}, de = (f, d, M) => {
|
|
2777
|
-
const K = typeof d == "string" ? d :
|
|
2823
|
+
const K = typeof d == "string" ? d : Pe(d);
|
|
2778
2824
|
u(f, (W) => {
|
|
2779
|
-
const me = (typeof d == "string" ? W.fields.find((ve) =>
|
|
2825
|
+
const me = (typeof d == "string" ? W.fields.find((ve) => Pe(ve) === K || ve.code === K) : d)?.cascadeClearFields ?? [], se = {
|
|
2780
2826
|
...W.model,
|
|
2781
2827
|
[K]: M
|
|
2782
2828
|
};
|
|
@@ -2791,7 +2837,7 @@ const Gr = (e) => {
|
|
|
2791
2837
|
rows: W.renderType === "form" ? [{ ...W.rows[0], ...se }] : W.rows,
|
|
2792
2838
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
2793
2839
|
fields: W.fields.map((ve) => {
|
|
2794
|
-
const Ae =
|
|
2840
|
+
const Ae = Pe(ve);
|
|
2795
2841
|
return Ae === K || ve.code === K ? { ...ve, value: M } : me.includes(Ae) || me.includes(ve.code) ? { ...ve, value: "" } : ve;
|
|
2796
2842
|
})
|
|
2797
2843
|
};
|
|
@@ -2809,19 +2855,19 @@ const Gr = (e) => {
|
|
|
2809
2855
|
sourceModel: ve,
|
|
2810
2856
|
sourceRow: Ae,
|
|
2811
2857
|
missingDependField: dt
|
|
2812
|
-
} =
|
|
2858
|
+
} = jr(W, d, _e), ft = se?.interface;
|
|
2813
2859
|
if (!se || !ft)
|
|
2814
2860
|
return se?.options ?? [];
|
|
2815
|
-
if (
|
|
2861
|
+
if (Nr(se))
|
|
2816
2862
|
return se.options ?? [];
|
|
2817
2863
|
if (dt)
|
|
2818
2864
|
return u(W, (Ge) => ({
|
|
2819
2865
|
...Ge,
|
|
2820
2866
|
fields: Ge.fields.map(
|
|
2821
|
-
(Le) =>
|
|
2867
|
+
(Le) => Pe(Le) === me || Le.code === me ? { ...Le, options: [] } : Le
|
|
2822
2868
|
)
|
|
2823
2869
|
})), [];
|
|
2824
|
-
const
|
|
2870
|
+
const Gn = await T(
|
|
2825
2871
|
{
|
|
2826
2872
|
...ft
|
|
2827
2873
|
},
|
|
@@ -2838,13 +2884,13 @@ const Gr = (e) => {
|
|
|
2838
2884
|
row: Ae,
|
|
2839
2885
|
searchText: K.searchText
|
|
2840
2886
|
}
|
|
2841
|
-
),
|
|
2887
|
+
), Mt = zr(Gn);
|
|
2842
2888
|
return u(W, (Ge) => ({
|
|
2843
2889
|
...Ge,
|
|
2844
2890
|
fields: Ge.fields.map(
|
|
2845
|
-
(Le) =>
|
|
2891
|
+
(Le) => Pe(Le) === me || Le.code === me ? { ...Le, options: Mt } : Le
|
|
2846
2892
|
)
|
|
2847
|
-
})),
|
|
2893
|
+
})), Mt;
|
|
2848
2894
|
}, Oe = (f, d) => {
|
|
2849
2895
|
if (Array.isArray(d)) {
|
|
2850
2896
|
Ie(f, d);
|
|
@@ -2859,7 +2905,7 @@ const Gr = (e) => {
|
|
|
2859
2905
|
// fields.value 也同步成 model 中的值。
|
|
2860
2906
|
fields: M.fields.map((K) => ({
|
|
2861
2907
|
...K,
|
|
2862
|
-
value: d[
|
|
2908
|
+
value: d[Pe(K)]
|
|
2863
2909
|
}))
|
|
2864
2910
|
}));
|
|
2865
2911
|
}, Ie = (f, d) => {
|
|
@@ -2876,7 +2922,7 @@ const Gr = (e) => {
|
|
|
2876
2922
|
// 加载当前节点详情。
|
|
2877
2923
|
loadDetail: E,
|
|
2878
2924
|
// 刷新当前详情。
|
|
2879
|
-
reloadActiveSection:
|
|
2925
|
+
reloadActiveSection: V,
|
|
2880
2926
|
// 加载指定节点或 section。
|
|
2881
2927
|
loadSection: v,
|
|
2882
2928
|
// 重新加载指定节点或 section。
|
|
@@ -2914,7 +2960,7 @@ const Gr = (e) => {
|
|
|
2914
2960
|
const d = N(f), M = y(f);
|
|
2915
2961
|
if (!M)
|
|
2916
2962
|
return null;
|
|
2917
|
-
const K =
|
|
2963
|
+
const K = Gr(M);
|
|
2918
2964
|
if (!K)
|
|
2919
2965
|
throw Ne("section.operationInfo.editInfoSet is required");
|
|
2920
2966
|
o.value = !0, r.value = null, d && d !== ke(M) && R(d, { saving: !0, error: null }), R(M, { saving: !0, error: null });
|
|
@@ -2922,7 +2968,7 @@ const Gr = (e) => {
|
|
|
2922
2968
|
const {
|
|
2923
2969
|
tagId: W,
|
|
2924
2970
|
..._e
|
|
2925
|
-
} = j(l.value, M), me =
|
|
2971
|
+
} = j(l.value, M), me = Ir(M, _e), se = Hr(
|
|
2926
2972
|
M,
|
|
2927
2973
|
me.infSetValues ?? [],
|
|
2928
2974
|
{
|
|
@@ -2960,7 +3006,7 @@ const Gr = (e) => {
|
|
|
2960
3006
|
() => {
|
|
2961
3007
|
(e.autoLoad ?? !0) && X();
|
|
2962
3008
|
}
|
|
2963
|
-
),
|
|
3009
|
+
), Ht(() => {
|
|
2964
3010
|
(e.autoLoad ?? !0) && X();
|
|
2965
3011
|
}), {
|
|
2966
3012
|
// 当前 viewModel。
|
|
@@ -2982,7 +3028,7 @@ const Gr = (e) => {
|
|
|
2982
3028
|
// 给页面消费的操作集合。
|
|
2983
3029
|
actions: qe
|
|
2984
3030
|
};
|
|
2985
|
-
},
|
|
3031
|
+
}, Ja = /* @__PURE__ */ ce({
|
|
2986
3032
|
name: "GlobalInfoProvider",
|
|
2987
3033
|
__name: "GlobalInfoProvider",
|
|
2988
3034
|
props: {
|
|
@@ -2995,7 +3041,7 @@ const Gr = (e) => {
|
|
|
2995
3041
|
formatOperationParams: {}
|
|
2996
3042
|
},
|
|
2997
3043
|
setup(e) {
|
|
2998
|
-
const t = e, n =
|
|
3044
|
+
const t = e, n = Wr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
|
|
2999
3045
|
return (m, _) => ee(m.$slots, "default", Me(Fe({
|
|
3000
3046
|
viewModel: re(o),
|
|
3001
3047
|
nodes: re(r),
|
|
@@ -3008,31 +3054,31 @@ const Gr = (e) => {
|
|
|
3008
3054
|
})));
|
|
3009
3055
|
}
|
|
3010
3056
|
});
|
|
3011
|
-
function
|
|
3057
|
+
function Ln(e) {
|
|
3012
3058
|
if (e.action) {
|
|
3013
3059
|
if (e.action.type === "direct") {
|
|
3014
|
-
|
|
3060
|
+
Et(e.action.options);
|
|
3015
3061
|
return;
|
|
3016
3062
|
}
|
|
3017
|
-
|
|
3063
|
+
Et.openByParams(e.action.params);
|
|
3018
3064
|
}
|
|
3019
3065
|
}
|
|
3020
|
-
const
|
|
3066
|
+
const Zr = ["disabled", "accept", "multiple"], Qr = {
|
|
3021
3067
|
key: 0,
|
|
3022
3068
|
class: "global-info-field-control__file-preview-list"
|
|
3023
|
-
},
|
|
3069
|
+
}, Xr = ["onClick"], ea = {
|
|
3024
3070
|
key: 1,
|
|
3025
3071
|
class: "global-info-field-control__file-text"
|
|
3026
|
-
},
|
|
3072
|
+
}, ta = {
|
|
3027
3073
|
key: 2,
|
|
3028
3074
|
class: "global-info-field-control__file-separator"
|
|
3029
|
-
},
|
|
3075
|
+
}, na = {
|
|
3030
3076
|
key: 1,
|
|
3031
3077
|
class: "global-info-field-control__file-text"
|
|
3032
|
-
},
|
|
3078
|
+
}, oa = {
|
|
3033
3079
|
key: 2,
|
|
3034
3080
|
class: "global-info-field-control__file-upload"
|
|
3035
|
-
},
|
|
3081
|
+
}, ra = /* @__PURE__ */ ce({
|
|
3036
3082
|
name: "GlobalInfoFieldControl",
|
|
3037
3083
|
__name: "GlobalInfoFieldControl",
|
|
3038
3084
|
props: {
|
|
@@ -3042,14 +3088,14 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3042
3088
|
},
|
|
3043
3089
|
emits: ["update:modelValue", "change", "loadOptions"],
|
|
3044
3090
|
setup(e, { emit: t }) {
|
|
3045
|
-
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s =
|
|
3091
|
+
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = P(() => Qe(n.field)), l = P(() => s.value === "select_remote"), a = P(() => n.disabled || n.field.disabled || n.field.readonly), c = P(() => !!n.field.props?.multiple), m = P(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), _ = P(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), $ = P(() => {
|
|
3046
3092
|
if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
|
|
3047
3093
|
const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
3048
3094
|
return Number.isFinite(x) ? x : void 0;
|
|
3049
|
-
}), b =
|
|
3095
|
+
}), b = P(() => lr(n.field, n.modelValue)), A = P(() => {
|
|
3050
3096
|
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 :
|
|
3052
|
-
}), g =
|
|
3097
|
+
return x !== void 0 || R !== void 0 ? n.modelValue ?? R ?? !1 : vn(n.modelValue);
|
|
3098
|
+
}), g = P(() => s.value === "code" ? 5 : 1), w = P(() => s.value === "file" && !Ce(n.modelValue)), S = P(() => mn(n.field, n.modelValue, "请选择文件")), j = P(() => hn(n.field, n.modelValue, "请选择文件")), I = P(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
|
|
3053
3099
|
let h;
|
|
3054
3100
|
function T(x) {
|
|
3055
3101
|
o("update:modelValue", N(x));
|
|
@@ -3058,7 +3104,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3058
3104
|
o("change", N(x));
|
|
3059
3105
|
}
|
|
3060
3106
|
function N(x) {
|
|
3061
|
-
return s.value === "select" || s.value === "select_remote" ?
|
|
3107
|
+
return s.value === "select" || s.value === "select_remote" ? cr(n.field, x) : x;
|
|
3062
3108
|
}
|
|
3063
3109
|
function y(x) {
|
|
3064
3110
|
x && o("loadOptions", l.value ? { searchText: "" } : void 0);
|
|
@@ -3072,9 +3118,9 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3072
3118
|
a.value || i.value?.click();
|
|
3073
3119
|
}
|
|
3074
3120
|
function z(x) {
|
|
3075
|
-
|
|
3121
|
+
Ln(x);
|
|
3076
3122
|
}
|
|
3077
|
-
|
|
3123
|
+
Wn(() => {
|
|
3078
3124
|
h && clearTimeout(h);
|
|
3079
3125
|
});
|
|
3080
3126
|
function ne(x) {
|
|
@@ -3082,8 +3128,8 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3082
3128
|
T(B), p(B);
|
|
3083
3129
|
}
|
|
3084
3130
|
return (x, R) => {
|
|
3085
|
-
const D =
|
|
3086
|
-
return s.value === "select" || s.value === "select_remote" ? (k(),
|
|
3131
|
+
const D = Qt, B = Zt, u = Jt, v = no, C = oo, L = Wt;
|
|
3132
|
+
return s.value === "select" || s.value === "select_remote" ? (k(), U(B, oe({
|
|
3087
3133
|
key: 0,
|
|
3088
3134
|
class: "global-info-field-control"
|
|
3089
3135
|
}, x.field.props, {
|
|
@@ -3102,14 +3148,14 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3102
3148
|
onChange: p
|
|
3103
3149
|
}), {
|
|
3104
3150
|
default: J(() => [
|
|
3105
|
-
(k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(),
|
|
3151
|
+
(k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(), U(D, {
|
|
3106
3152
|
key: String(E.value),
|
|
3107
3153
|
label: E.label,
|
|
3108
3154
|
value: E.value
|
|
3109
3155
|
}, null, 8, ["label", "value"]))), 128))
|
|
3110
3156
|
]),
|
|
3111
3157
|
_: 1
|
|
3112
|
-
}, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(),
|
|
3158
|
+
}, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(), U(u, oe({
|
|
3113
3159
|
key: 1,
|
|
3114
3160
|
class: "global-info-field-control"
|
|
3115
3161
|
}, x.field.props, {
|
|
@@ -3120,7 +3166,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3120
3166
|
"value-format": "YYYY-MM-DD",
|
|
3121
3167
|
"onUpdate:modelValue": T,
|
|
3122
3168
|
onChange: p
|
|
3123
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(),
|
|
3169
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), U(v, oe({
|
|
3124
3170
|
key: 2,
|
|
3125
3171
|
class: "global-info-field-control"
|
|
3126
3172
|
}, x.field.props, {
|
|
@@ -3130,7 +3176,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3130
3176
|
"controls-position": "right",
|
|
3131
3177
|
"onUpdate:modelValue": T,
|
|
3132
3178
|
onChange: p
|
|
3133
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(),
|
|
3179
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(), U(C, oe({
|
|
3134
3180
|
key: 3,
|
|
3135
3181
|
class: "global-info-field-control global-info-field-control--switch"
|
|
3136
3182
|
}, x.field.props, {
|
|
@@ -3140,7 +3186,7 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3140
3186
|
onChange: p
|
|
3141
3187
|
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (k(), Y("div", {
|
|
3142
3188
|
key: 4,
|
|
3143
|
-
class:
|
|
3189
|
+
class: Ue(["global-info-field-control global-info-field-control--file", {
|
|
3144
3190
|
"is-disabled": a.value,
|
|
3145
3191
|
"is-empty": !w.value,
|
|
3146
3192
|
"is-filled": w.value
|
|
@@ -3156,8 +3202,8 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3156
3202
|
accept: String(x.field.props?.accept ?? ""),
|
|
3157
3203
|
multiple: !!x.field.props?.multiple,
|
|
3158
3204
|
onChange: ne
|
|
3159
|
-
}, null, 40,
|
|
3160
|
-
j.value.length ? (k(), Y("span",
|
|
3205
|
+
}, null, 40, Zr),
|
|
3206
|
+
j.value.length ? (k(), Y("span", Qr, [
|
|
3161
3207
|
(k(!0), Y(be, null, ge(j.value, (E, q) => (k(), Y(be, {
|
|
3162
3208
|
key: E.key
|
|
3163
3209
|
}, [
|
|
@@ -3165,18 +3211,18 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3165
3211
|
key: 0,
|
|
3166
3212
|
class: "global-info-field-control__file-preview",
|
|
3167
3213
|
type: "button",
|
|
3168
|
-
onClick:
|
|
3169
|
-
}, fe(E.text), 9,
|
|
3170
|
-
q < j.value.length - 1 ? (k(), Y("span",
|
|
3214
|
+
onClick: Yt((H) => z(E), ["stop", "prevent"])
|
|
3215
|
+
}, fe(E.text), 9, Xr)) : (k(), Y("span", ea, fe(E.text), 1)),
|
|
3216
|
+
q < j.value.length - 1 ? (k(), Y("span", ta, "、")) : ue("", !0)
|
|
3171
3217
|
], 64))), 128))
|
|
3172
|
-
])) : w.value ? (k(), Y("span",
|
|
3173
|
-
], 2)) : s.value === "empty" ? (k(),
|
|
3218
|
+
])) : w.value ? (k(), Y("span", na, fe(S.value), 1)) : (k(), Y("span", oa, "上 传"))
|
|
3219
|
+
], 2)) : s.value === "empty" ? (k(), U(L, {
|
|
3174
3220
|
key: 5,
|
|
3175
3221
|
class: "global-info-field-control",
|
|
3176
3222
|
"model-value": "",
|
|
3177
3223
|
disabled: "",
|
|
3178
3224
|
placeholder: "-"
|
|
3179
|
-
})) : (k(),
|
|
3225
|
+
})) : (k(), U(L, oe({
|
|
3180
3226
|
key: 6,
|
|
3181
3227
|
class: ["global-info-field-control", {
|
|
3182
3228
|
"global-info-field-control--textarea": r.includes(s.value),
|
|
@@ -3194,13 +3240,13 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3194
3240
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3195
3241
|
};
|
|
3196
3242
|
}
|
|
3197
|
-
}),
|
|
3243
|
+
}), Pn = /* @__PURE__ */ ye(ra, [["__scopeId", "data-v-ba6b38f5"]]), aa = ["innerHTML"], sa = {
|
|
3198
3244
|
key: 1,
|
|
3199
3245
|
class: "global-info-field-value global-info-field-value--code"
|
|
3200
|
-
},
|
|
3246
|
+
}, ia = {
|
|
3201
3247
|
key: 2,
|
|
3202
3248
|
class: "global-info-field-value global-info-field-value--file"
|
|
3203
|
-
},
|
|
3249
|
+
}, la = ["onClick"], ca = { key: 1 }, ua = { key: 2 }, da = /* @__PURE__ */ ce({
|
|
3204
3250
|
name: "GlobalInfoFieldValue",
|
|
3205
3251
|
__name: "GlobalInfoFieldValue",
|
|
3206
3252
|
props: {
|
|
@@ -3209,15 +3255,15 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3209
3255
|
emptyText: { default: "-" }
|
|
3210
3256
|
},
|
|
3211
3257
|
setup(e) {
|
|
3212
|
-
const t = e, n =
|
|
3258
|
+
const t = e, n = P(() => Ct(t.field)), o = P(() => n.value === "empty" || Ce(t.value)), r = P(() => mn(t.field, t.value, t.emptyText)), i = P(() => hn(t.field, t.value, t.emptyText));
|
|
3213
3259
|
function s(l) {
|
|
3214
|
-
|
|
3260
|
+
Ln(l);
|
|
3215
3261
|
}
|
|
3216
3262
|
return (l, a) => n.value === "html" && !o.value ? (k(), Y("span", {
|
|
3217
3263
|
key: 0,
|
|
3218
3264
|
class: "global-info-field-value global-info-field-value--html",
|
|
3219
3265
|
innerHTML: r.value
|
|
3220
|
-
}, null, 8,
|
|
3266
|
+
}, null, 8, aa)) : n.value === "code" && !o.value ? (k(), Y("pre", sa, fe(r.value), 1)) : i.value.length ? (k(), Y("span", ia, [
|
|
3221
3267
|
(k(!0), Y(be, null, ge(i.value, (c, m) => (k(), Y(be, {
|
|
3222
3268
|
key: c.key
|
|
3223
3269
|
}, [
|
|
@@ -3226,19 +3272,19 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3226
3272
|
class: "global-info-field-value__attachment-preview",
|
|
3227
3273
|
type: "button",
|
|
3228
3274
|
onClick: (_) => s(c)
|
|
3229
|
-
}, fe(c.text), 9,
|
|
3230
|
-
m < i.value.length - 1 ? (k(), Y("span",
|
|
3275
|
+
}, fe(c.text), 9, la)) : (k(), Y("span", ca, fe(c.text), 1)),
|
|
3276
|
+
m < i.value.length - 1 ? (k(), Y("span", ua, "、")) : ue("", !0)
|
|
3231
3277
|
], 64))), 128))
|
|
3232
3278
|
])) : (k(), Y("span", {
|
|
3233
3279
|
key: 3,
|
|
3234
|
-
class:
|
|
3280
|
+
class: Ue(["global-info-field-value", {
|
|
3235
3281
|
"global-info-field-value--multi-row": n.value === "multi-row",
|
|
3236
3282
|
"global-info-field-value--file": n.value === "file" && !o.value
|
|
3237
3283
|
}])
|
|
3238
3284
|
}, fe(r.value), 3));
|
|
3239
3285
|
}
|
|
3240
|
-
}),
|
|
3241
|
-
function
|
|
3286
|
+
}), Vn = /* @__PURE__ */ ye(da, [["__scopeId", "data-v-efe9888d"]]);
|
|
3287
|
+
function fa(e) {
|
|
3242
3288
|
const t = Qe(e);
|
|
3243
3289
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
3244
3290
|
}
|
|
@@ -3249,28 +3295,28 @@ function ot(e, t, n = {}, o = "") {
|
|
|
3249
3295
|
function rt(e, t, n) {
|
|
3250
3296
|
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Re(e).length === 0 : !1;
|
|
3251
3297
|
}
|
|
3252
|
-
function
|
|
3298
|
+
function An(e = {}) {
|
|
3253
3299
|
return Object.prototype.hasOwnProperty.call(e, "searchText");
|
|
3254
3300
|
}
|
|
3255
|
-
function
|
|
3301
|
+
function jn(e, t) {
|
|
3256
3302
|
const n = new Set(
|
|
3257
3303
|
[t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
|
|
3258
3304
|
);
|
|
3259
3305
|
return n.size === 0 ? !1 : Re(e).some((o) => n.has(o));
|
|
3260
3306
|
}
|
|
3261
|
-
function
|
|
3307
|
+
function Nn(e, t, n) {
|
|
3262
3308
|
const o = Qe(e);
|
|
3263
|
-
return
|
|
3309
|
+
return fa(e) ? n ? !0 : !Ce(t) : !1;
|
|
3264
3310
|
}
|
|
3265
|
-
function
|
|
3311
|
+
function Rn(e, t) {
|
|
3266
3312
|
return Qe(e) !== "select_remote" ? {} : {
|
|
3267
3313
|
searchText: t == null ? "" : String(t)
|
|
3268
3314
|
};
|
|
3269
3315
|
}
|
|
3270
|
-
const
|
|
3316
|
+
const pa = { class: "global-info-form-renderer__label" }, ma = {
|
|
3271
3317
|
key: 0,
|
|
3272
3318
|
class: "global-info-form-renderer__required"
|
|
3273
|
-
},
|
|
3319
|
+
}, va = /* @__PURE__ */ ce({
|
|
3274
3320
|
name: "GlobalInfoFormRenderer",
|
|
3275
3321
|
__name: "GlobalInfoFormRenderer",
|
|
3276
3322
|
props: {
|
|
@@ -3284,12 +3330,12 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3284
3330
|
renderConfig: {}
|
|
3285
3331
|
},
|
|
3286
3332
|
setup(e) {
|
|
3287
|
-
const t = e, n = Ee(), o =
|
|
3333
|
+
const t = e, n = Ee(), o = P(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = P(() => lt(
|
|
3288
3334
|
t.section.fields,
|
|
3289
3335
|
t.section,
|
|
3290
3336
|
t.renderConfig,
|
|
3291
3337
|
{ values: o.value }
|
|
3292
|
-
)), s =
|
|
3338
|
+
)), s = ln(
|
|
3293
3339
|
async (h, T, p) => t.actions.loadFieldOptions(t.section, h, T, p),
|
|
3294
3340
|
(h) => `${t.section.key}:${S(h)}`
|
|
3295
3341
|
);
|
|
@@ -3340,7 +3386,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3340
3386
|
}
|
|
3341
3387
|
async function $(h, T = {}, p = o.value) {
|
|
3342
3388
|
const N = p, y = S(h), F = ot(t.section.key, h, N), O = r.get(y);
|
|
3343
|
-
if (!
|
|
3389
|
+
if (!An(T) && rt(h, O, F)) {
|
|
3344
3390
|
r.set(y, F);
|
|
3345
3391
|
return;
|
|
3346
3392
|
}
|
|
@@ -3356,7 +3402,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3356
3402
|
}
|
|
3357
3403
|
async function b(h = o.value, T) {
|
|
3358
3404
|
for (const p of i.value) {
|
|
3359
|
-
if (T && !
|
|
3405
|
+
if (T && !jn(p, T)) continue;
|
|
3360
3406
|
const N = h[p.code];
|
|
3361
3407
|
if (!j(p, N)) continue;
|
|
3362
3408
|
const y = ot(t.section.key, p, h), F = S(p), O = r.get(F);
|
|
@@ -3364,7 +3410,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3364
3410
|
r.set(F, y);
|
|
3365
3411
|
continue;
|
|
3366
3412
|
}
|
|
3367
|
-
O !== y && await $(p,
|
|
3413
|
+
O !== y && await $(p, Rn(p, N), h);
|
|
3368
3414
|
}
|
|
3369
3415
|
}
|
|
3370
3416
|
Be(
|
|
@@ -3407,14 +3453,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3407
3453
|
return h.key || h.id || h.code;
|
|
3408
3454
|
}
|
|
3409
3455
|
function j(h, T) {
|
|
3410
|
-
return
|
|
3456
|
+
return Nn(h, T, t.editing);
|
|
3411
3457
|
}
|
|
3412
3458
|
function I(h) {
|
|
3413
3459
|
return h.required || h.isRequired;
|
|
3414
3460
|
}
|
|
3415
3461
|
return (h, T) => {
|
|
3416
|
-
const p =
|
|
3417
|
-
return k(),
|
|
3462
|
+
const p = Xt, N = ao, y = ro, F = en;
|
|
3463
|
+
return k(), U(F, {
|
|
3418
3464
|
class: "global-info-form-renderer",
|
|
3419
3465
|
model: o.value,
|
|
3420
3466
|
"label-position": "top"
|
|
@@ -3422,7 +3468,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3422
3468
|
default: J(() => [
|
|
3423
3469
|
we(y, { gutter: 24 }, {
|
|
3424
3470
|
default: J(() => [
|
|
3425
|
-
(k(!0), Y(be, null, ge(i.value, (O) => (k(),
|
|
3471
|
+
(k(!0), Y(be, null, ge(i.value, (O) => (k(), U(N, {
|
|
3426
3472
|
key: S(O),
|
|
3427
3473
|
span: w(O)
|
|
3428
3474
|
}, {
|
|
@@ -3432,8 +3478,8 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3432
3478
|
ref_for: !0
|
|
3433
3479
|
}, O.formItemProps), {
|
|
3434
3480
|
label: J(() => [
|
|
3435
|
-
te("span",
|
|
3436
|
-
I(O) ? (k(), Y("span",
|
|
3481
|
+
te("span", pa, [
|
|
3482
|
+
I(O) ? (k(), Y("span", ma, "*")) : ue("", !0),
|
|
3437
3483
|
Ye(" " + fe(O.label), 1)
|
|
3438
3484
|
])
|
|
3439
3485
|
]),
|
|
@@ -3441,14 +3487,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3441
3487
|
g(O) ? ee(h.$slots, g(O), oe({
|
|
3442
3488
|
key: 0,
|
|
3443
3489
|
ref_for: !0
|
|
3444
|
-
}, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(),
|
|
3490
|
+
}, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(), U(Pn, {
|
|
3445
3491
|
key: 1,
|
|
3446
3492
|
field: O,
|
|
3447
3493
|
"model-value": o.value[O.code],
|
|
3448
3494
|
section: h.section,
|
|
3449
3495
|
onLoadOptions: (z) => $(O, z),
|
|
3450
3496
|
"onUpdate:modelValue": (z) => l(O, z)
|
|
3451
|
-
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(),
|
|
3497
|
+
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), U(Vn, {
|
|
3452
3498
|
key: 2,
|
|
3453
3499
|
field: O,
|
|
3454
3500
|
value: o.value[O.code],
|
|
@@ -3468,7 +3514,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3468
3514
|
}, 8, ["model"]);
|
|
3469
3515
|
};
|
|
3470
3516
|
}
|
|
3471
|
-
}),
|
|
3517
|
+
}), ha = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-c4e2b568"]]), ga = /* @__PURE__ */ ce({
|
|
3472
3518
|
name: "GlobalInfoDeleteConfirm",
|
|
3473
3519
|
__name: "GlobalInfoDeleteConfirm",
|
|
3474
3520
|
props: {
|
|
@@ -3479,13 +3525,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3479
3525
|
emits: ["confirm", "cancel"],
|
|
3480
3526
|
setup(e) {
|
|
3481
3527
|
return (t, n) => {
|
|
3482
|
-
const o =
|
|
3483
|
-
return k(),
|
|
3528
|
+
const o = so;
|
|
3529
|
+
return k(), U(o, {
|
|
3484
3530
|
title: t.title,
|
|
3485
3531
|
"confirm-button-text": t.confirmText,
|
|
3486
3532
|
"cancel-button-text": t.cancelText,
|
|
3487
3533
|
width: "240",
|
|
3488
3534
|
"popper-class": "global-info-delete-confirm",
|
|
3535
|
+
teleported: !1,
|
|
3489
3536
|
onConfirm: n[0] || (n[0] = (r) => t.$emit("confirm")),
|
|
3490
3537
|
onCancel: n[1] || (n[1] = (r) => t.$emit("cancel"))
|
|
3491
3538
|
}, {
|
|
@@ -3496,10 +3543,10 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3496
3543
|
}, 8, ["title", "confirm-button-text", "cancel-button-text"]);
|
|
3497
3544
|
};
|
|
3498
3545
|
}
|
|
3499
|
-
}),
|
|
3546
|
+
}), ya = { class: "global-info-table-renderer__table-scroll" }, ba = { class: "global-info-table-renderer__header" }, Sa = {
|
|
3500
3547
|
key: 0,
|
|
3501
3548
|
class: "global-info-table-renderer__required"
|
|
3502
|
-
},
|
|
3549
|
+
}, wa = /* @__PURE__ */ ce({
|
|
3503
3550
|
name: "GlobalInfoTableRenderer",
|
|
3504
3551
|
__name: "GlobalInfoTableRenderer",
|
|
3505
3552
|
props: {
|
|
@@ -3513,10 +3560,10 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3513
3560
|
renderConfig: {}
|
|
3514
3561
|
},
|
|
3515
3562
|
setup(e) {
|
|
3516
|
-
const t = e, n = Ee(), o =
|
|
3563
|
+
const t = e, n = Ee(), o = P(() => t.section.fields.some((u) => Pt(u))), r = P(() => o.value), i = P(() => t.renderConfig?.sequenceLabel ?? "序号"), s = P(() => t.renderConfig?.sequenceWidth ?? 56), l = P(() => {
|
|
3517
3564
|
const u = t.renderConfig?.sequenceStart;
|
|
3518
3565
|
return typeof u == "number" && Number.isFinite(u) ? u : 1;
|
|
3519
|
-
}), a =
|
|
3566
|
+
}), a = P(() => {
|
|
3520
3567
|
const u = lt(
|
|
3521
3568
|
t.section.fields,
|
|
3522
3569
|
t.section,
|
|
@@ -3524,7 +3571,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3524
3571
|
{ rows: t.section.rows, values: t.section.model }
|
|
3525
3572
|
);
|
|
3526
3573
|
return r.value ? u.filter((v) => !ne(v)) : u;
|
|
3527
|
-
}), c = /* @__PURE__ */ new Map(), m =
|
|
3574
|
+
}), c = /* @__PURE__ */ new Map(), m = ln(
|
|
3528
3575
|
async (u, v, C) => t.actions.loadFieldOptions(t.section, u, v, C),
|
|
3529
3576
|
(u, v) => `${t.section.key}:${D(v)}:${O(u)}`
|
|
3530
3577
|
);
|
|
@@ -3543,22 +3590,22 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3543
3590
|
}) : u.allowDelete !== !1);
|
|
3544
3591
|
}
|
|
3545
3592
|
function b(u, v, C, L) {
|
|
3546
|
-
const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [],
|
|
3593
|
+
const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [], H = {
|
|
3547
3594
|
...u,
|
|
3548
3595
|
__rowKey: D(u),
|
|
3549
3596
|
[C.code]: L
|
|
3550
3597
|
};
|
|
3551
3598
|
q.forEach((G) => {
|
|
3552
|
-
|
|
3599
|
+
H[G] = "";
|
|
3553
3600
|
}), E[v] = {
|
|
3554
|
-
...
|
|
3555
|
-
}, t.actions.updateTableRows(t.section, E), A(C, L,
|
|
3601
|
+
...H
|
|
3602
|
+
}, t.actions.updateTableRows(t.section, E), A(C, L, H, v, E), I(C, H);
|
|
3556
3603
|
}
|
|
3557
3604
|
function A(u, v, C, L, E) {
|
|
3558
3605
|
const q = t.renderConfig?.onFieldBusinessChange;
|
|
3559
3606
|
if (q)
|
|
3560
3607
|
try {
|
|
3561
|
-
const
|
|
3608
|
+
const H = g(u, v), G = { ...t.section.model, ...C }, X = {
|
|
3562
3609
|
field: u,
|
|
3563
3610
|
value: v,
|
|
3564
3611
|
section: t.section,
|
|
@@ -3572,14 +3619,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3572
3619
|
sections: w(),
|
|
3573
3620
|
sectionValues: S(t.section, E),
|
|
3574
3621
|
actions: t.actions,
|
|
3575
|
-
selectedOption:
|
|
3576
|
-
selectedOptions:
|
|
3622
|
+
selectedOption: H[0],
|
|
3623
|
+
selectedOptions: H
|
|
3577
3624
|
};
|
|
3578
|
-
Promise.resolve(q(X)).catch((
|
|
3579
|
-
console.error("[GlobalInfoTableRenderer] field business change failed",
|
|
3625
|
+
Promise.resolve(q(X)).catch((V) => {
|
|
3626
|
+
console.error("[GlobalInfoTableRenderer] field business change failed", V);
|
|
3580
3627
|
});
|
|
3581
|
-
} catch (
|
|
3582
|
-
console.error("[GlobalInfoTableRenderer] field business change failed",
|
|
3628
|
+
} catch (H) {
|
|
3629
|
+
console.error("[GlobalInfoTableRenderer] field business change failed", H);
|
|
3583
3630
|
}
|
|
3584
3631
|
}
|
|
3585
3632
|
function g(u, v) {
|
|
@@ -3592,14 +3639,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3592
3639
|
function S(u, v) {
|
|
3593
3640
|
const L = w().flatMap((E) => {
|
|
3594
3641
|
const q = E.key === u.key ? v : E.renderType === "table" ? E.rows : E.model;
|
|
3595
|
-
return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((
|
|
3642
|
+
return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((H) => [String(H), q]);
|
|
3596
3643
|
});
|
|
3597
3644
|
return Object.fromEntries(L);
|
|
3598
3645
|
}
|
|
3599
3646
|
async function j(u, v, C = {}, L = v) {
|
|
3600
|
-
const E = D(L), q = `${E}:${O(u)}`,
|
|
3601
|
-
if (!
|
|
3602
|
-
c.set(q,
|
|
3647
|
+
const E = D(L), q = `${E}:${O(u)}`, H = ot(t.section.key, u, L, E), G = c.get(q);
|
|
3648
|
+
if (!An(C) && rt(u, G, H)) {
|
|
3649
|
+
c.set(q, H);
|
|
3603
3650
|
return;
|
|
3604
3651
|
}
|
|
3605
3652
|
try {
|
|
@@ -3607,9 +3654,9 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3607
3654
|
await m(u, L, C);
|
|
3608
3655
|
return;
|
|
3609
3656
|
}
|
|
3610
|
-
await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q,
|
|
3611
|
-
} catch (
|
|
3612
|
-
console.error("[GlobalInfoTableRenderer] load field options failed",
|
|
3657
|
+
await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q, H);
|
|
3658
|
+
} catch (V) {
|
|
3659
|
+
console.error("[GlobalInfoTableRenderer] load field options failed", V);
|
|
3613
3660
|
}
|
|
3614
3661
|
}
|
|
3615
3662
|
async function I(u, v) {
|
|
@@ -3617,15 +3664,15 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3617
3664
|
for (const L of C) {
|
|
3618
3665
|
const E = D(L);
|
|
3619
3666
|
for (const q of a.value) {
|
|
3620
|
-
if (u && !
|
|
3621
|
-
const
|
|
3622
|
-
if (!N(q,
|
|
3623
|
-
const G = ot(t.section.key, q, L, E), X = `${E}:${O(q)}`,
|
|
3624
|
-
if (rt(q,
|
|
3667
|
+
if (u && !jn(q, u)) continue;
|
|
3668
|
+
const H = L[q.code];
|
|
3669
|
+
if (!N(q, H)) continue;
|
|
3670
|
+
const G = ot(t.section.key, q, L, E), X = `${E}:${O(q)}`, V = c.get(X);
|
|
3671
|
+
if (rt(q, V, G)) {
|
|
3625
3672
|
c.set(X, G);
|
|
3626
3673
|
continue;
|
|
3627
3674
|
}
|
|
3628
|
-
|
|
3675
|
+
V !== G && await j(q, L, Rn(q, H));
|
|
3629
3676
|
}
|
|
3630
3677
|
}
|
|
3631
3678
|
}
|
|
@@ -3656,14 +3703,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3656
3703
|
return !u.readonly && !u.disabled;
|
|
3657
3704
|
}
|
|
3658
3705
|
function N(u, v) {
|
|
3659
|
-
return
|
|
3706
|
+
return Nn(u, v, t.editing);
|
|
3660
3707
|
}
|
|
3661
3708
|
function y(u) {
|
|
3662
|
-
return u.width ?? (
|
|
3709
|
+
return u.width ?? (Lt(u) ? 56 : void 0);
|
|
3663
3710
|
}
|
|
3664
3711
|
function F(u) {
|
|
3665
3712
|
if (!u.width)
|
|
3666
|
-
return u.minWidth ?? (
|
|
3713
|
+
return u.minWidth ?? (Lt(u) ? 56 : void 0);
|
|
3667
3714
|
}
|
|
3668
3715
|
function O(u) {
|
|
3669
3716
|
return u.key || u.id || u.code;
|
|
@@ -3672,7 +3719,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3672
3719
|
return l.value + u;
|
|
3673
3720
|
}
|
|
3674
3721
|
function ne(u) {
|
|
3675
|
-
return
|
|
3722
|
+
return Pt(u);
|
|
3676
3723
|
}
|
|
3677
3724
|
let x = 0;
|
|
3678
3725
|
const R = /* @__PURE__ */ new WeakMap();
|
|
@@ -3700,12 +3747,12 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3700
3747
|
},
|
|
3701
3748
|
{ immediate: !0 }
|
|
3702
3749
|
), (u, v) => {
|
|
3703
|
-
const C =
|
|
3750
|
+
const C = nn, L = Zn("Delete"), E = Ut, q = It, H = tn;
|
|
3704
3751
|
return k(), Y("div", {
|
|
3705
|
-
class:
|
|
3752
|
+
class: Ue(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
|
|
3706
3753
|
}, [
|
|
3707
|
-
te("div",
|
|
3708
|
-
we(
|
|
3754
|
+
te("div", ya, [
|
|
3755
|
+
we(H, {
|
|
3709
3756
|
class: "global-info-table-renderer__table",
|
|
3710
3757
|
data: u.section.rows,
|
|
3711
3758
|
fit: !0,
|
|
@@ -3713,14 +3760,14 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3713
3760
|
"row-key": D
|
|
3714
3761
|
}, {
|
|
3715
3762
|
default: J(() => [
|
|
3716
|
-
r.value ? (k(),
|
|
3763
|
+
r.value ? (k(), U(C, {
|
|
3717
3764
|
key: 0,
|
|
3718
3765
|
type: "index",
|
|
3719
3766
|
label: i.value,
|
|
3720
3767
|
width: s.value,
|
|
3721
3768
|
index: z
|
|
3722
3769
|
}, null, 8, ["label", "width"])) : ue("", !0),
|
|
3723
|
-
(k(!0), Y(be, null, ge(a.value, (G) => (k(),
|
|
3770
|
+
(k(!0), Y(be, null, ge(a.value, (G) => (k(), U(C, {
|
|
3724
3771
|
key: O(G),
|
|
3725
3772
|
prop: G.code,
|
|
3726
3773
|
label: G.label,
|
|
@@ -3728,45 +3775,45 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3728
3775
|
"min-width": F(G)
|
|
3729
3776
|
}, {
|
|
3730
3777
|
header: J(() => [
|
|
3731
|
-
te("span",
|
|
3732
|
-
B(G) ? (k(), Y("span",
|
|
3778
|
+
te("span", ba, [
|
|
3779
|
+
B(G) ? (k(), Y("span", Sa, "*")) : ue("", !0),
|
|
3733
3780
|
te("span", null, fe(G.label), 1)
|
|
3734
3781
|
])
|
|
3735
3782
|
]),
|
|
3736
|
-
default: J(({ row: X, $index:
|
|
3783
|
+
default: J(({ row: X, $index: V }) => [
|
|
3737
3784
|
T(G) ? ee(u.$slots, T(G), oe({
|
|
3738
3785
|
key: 0,
|
|
3739
3786
|
ref_for: !0
|
|
3740
|
-
}, h(G, X,
|
|
3787
|
+
}, h(G, X, V)), void 0, !0) : u.editing && p(G) ? (k(), U(Pn, {
|
|
3741
3788
|
key: 1,
|
|
3742
3789
|
field: G,
|
|
3743
3790
|
"model-value": X[G.code],
|
|
3744
3791
|
section: u.section,
|
|
3745
3792
|
row: X,
|
|
3746
|
-
"row-index":
|
|
3793
|
+
"row-index": V,
|
|
3747
3794
|
onLoadOptions: (Z) => j(G, X, Z),
|
|
3748
|
-
"onUpdate:modelValue": (Z) => b(X,
|
|
3749
|
-
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(),
|
|
3795
|
+
"onUpdate:modelValue": (Z) => b(X, V, G, Z)
|
|
3796
|
+
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), U(Vn, {
|
|
3750
3797
|
key: 2,
|
|
3751
3798
|
field: G,
|
|
3752
3799
|
value: X[G.code],
|
|
3753
3800
|
section: u.section,
|
|
3754
3801
|
row: X,
|
|
3755
|
-
"row-index":
|
|
3802
|
+
"row-index": V
|
|
3756
3803
|
}, null, 8, ["field", "value", "section", "row", "row-index"]))
|
|
3757
3804
|
]),
|
|
3758
3805
|
_: 2
|
|
3759
3806
|
}, 1032, ["prop", "label", "width", "min-width"]))), 128)),
|
|
3760
|
-
u.editing ? (k(),
|
|
3807
|
+
u.editing ? (k(), U(C, {
|
|
3761
3808
|
key: 1,
|
|
3762
3809
|
label: "操作",
|
|
3763
3810
|
width: "104",
|
|
3764
3811
|
fixed: "right"
|
|
3765
3812
|
}, {
|
|
3766
3813
|
default: J(({ row: G, $index: X }) => [
|
|
3767
|
-
$(G, X) ? (k(),
|
|
3814
|
+
$(G, X) ? (k(), U(ga, {
|
|
3768
3815
|
key: 0,
|
|
3769
|
-
onConfirm: (
|
|
3816
|
+
onConfirm: (V) => _(X)
|
|
3770
3817
|
}, {
|
|
3771
3818
|
default: J(() => [
|
|
3772
3819
|
we(q, {
|
|
@@ -3798,7 +3845,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3798
3845
|
], 2);
|
|
3799
3846
|
};
|
|
3800
3847
|
}
|
|
3801
|
-
}),
|
|
3848
|
+
}), Ia = /* @__PURE__ */ ye(wa, [["__scopeId", "data-v-bfc7b8fe"]]), _a = /* @__PURE__ */ ce({
|
|
3802
3849
|
name: "GlobalInfoAutoRenderer",
|
|
3803
3850
|
__name: "GlobalInfoAutoRenderer",
|
|
3804
3851
|
props: {
|
|
@@ -3810,7 +3857,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3810
3857
|
renderConfig: {}
|
|
3811
3858
|
},
|
|
3812
3859
|
setup(e) {
|
|
3813
|
-
return (t, n) => t.section.renderType === "table" ? (k(),
|
|
3860
|
+
return (t, n) => t.section.renderType === "table" ? (k(), U(Ia, {
|
|
3814
3861
|
key: 0,
|
|
3815
3862
|
section: t.section,
|
|
3816
3863
|
node: t.node,
|
|
@@ -3818,7 +3865,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3818
3865
|
state: t.state,
|
|
3819
3866
|
actions: t.actions,
|
|
3820
3867
|
"render-config": t.renderConfig
|
|
3821
|
-
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(),
|
|
3868
|
+
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), U(ha, {
|
|
3822
3869
|
key: 1,
|
|
3823
3870
|
section: t.section,
|
|
3824
3871
|
node: t.node,
|
|
@@ -3829,23 +3876,23 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3829
3876
|
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
3830
3877
|
}
|
|
3831
3878
|
});
|
|
3832
|
-
function
|
|
3833
|
-
return
|
|
3879
|
+
function zn(e) {
|
|
3880
|
+
return qn(e.code);
|
|
3834
3881
|
}
|
|
3835
|
-
function
|
|
3836
|
-
return
|
|
3882
|
+
function xn(e, t) {
|
|
3883
|
+
return zn(e) || qn(t?.code);
|
|
3837
3884
|
}
|
|
3838
|
-
function
|
|
3885
|
+
function kt(e, t, n) {
|
|
3839
3886
|
if (!n) return "";
|
|
3840
3887
|
const o = `${t}-${n}`;
|
|
3841
3888
|
if (e[o]) return o;
|
|
3842
3889
|
const r = o.toLowerCase();
|
|
3843
3890
|
return r !== o && e[r] ? r : "";
|
|
3844
3891
|
}
|
|
3845
|
-
function
|
|
3892
|
+
function qn(e) {
|
|
3846
3893
|
return typeof e == "string" ? e.trim() : "";
|
|
3847
3894
|
}
|
|
3848
|
-
const
|
|
3895
|
+
const $a = /* @__PURE__ */ ce({
|
|
3849
3896
|
name: "GlobalInfoSectionOutlet",
|
|
3850
3897
|
__name: "GlobalInfoSectionOutlet",
|
|
3851
3898
|
props: {
|
|
@@ -3857,7 +3904,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3857
3904
|
renderConfig: {}
|
|
3858
3905
|
},
|
|
3859
3906
|
setup(e) {
|
|
3860
|
-
const t = e, n = Ee(), o =
|
|
3907
|
+
const t = e, n = Ee(), o = P(() => lt(
|
|
3861
3908
|
t.section.fields,
|
|
3862
3909
|
t.section,
|
|
3863
3910
|
t.renderConfig,
|
|
@@ -3865,11 +3912,11 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3865
3912
|
values: t.section.model,
|
|
3866
3913
|
rows: t.section.renderType === "table" ? t.section.rows : void 0
|
|
3867
3914
|
}
|
|
3868
|
-
)), r =
|
|
3869
|
-
const a =
|
|
3915
|
+
)), r = P(() => t.editing ?? t.actions.isEditing(t.section)), i = P(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), s = P(() => {
|
|
3916
|
+
const a = kt(
|
|
3870
3917
|
n,
|
|
3871
3918
|
"section",
|
|
3872
|
-
|
|
3919
|
+
xn(t.node ?? {}, t.section)
|
|
3873
3920
|
), c = l(t.section.renderType);
|
|
3874
3921
|
return [
|
|
3875
3922
|
a,
|
|
@@ -3892,7 +3939,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3892
3939
|
renderConfig: a.renderConfig,
|
|
3893
3940
|
state: a.state,
|
|
3894
3941
|
actions: a.actions
|
|
3895
|
-
}) : (k(),
|
|
3942
|
+
}) : (k(), U(_a, {
|
|
3896
3943
|
key: 1,
|
|
3897
3944
|
section: a.section,
|
|
3898
3945
|
node: a.node,
|
|
@@ -3902,7 +3949,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3902
3949
|
"render-config": a.renderConfig
|
|
3903
3950
|
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
3904
3951
|
}
|
|
3905
|
-
}),
|
|
3952
|
+
}), Ca = ce({
|
|
3906
3953
|
name: "GlobalInfoSlotErrorBoundary",
|
|
3907
3954
|
props: {
|
|
3908
3955
|
boundaryKey: {
|
|
@@ -3924,7 +3971,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3924
3971
|
() => {
|
|
3925
3972
|
o.value = !1;
|
|
3926
3973
|
}
|
|
3927
|
-
),
|
|
3974
|
+
), Qn((i) => (r(i), !1));
|
|
3928
3975
|
function r(i) {
|
|
3929
3976
|
o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, i), t("error", i);
|
|
3930
3977
|
}
|
|
@@ -3938,13 +3985,13 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3938
3985
|
}
|
|
3939
3986
|
};
|
|
3940
3987
|
}
|
|
3941
|
-
}),
|
|
3988
|
+
}), ka = { class: "global-info-section-block" }, Ma = {
|
|
3942
3989
|
key: 0,
|
|
3943
3990
|
class: "global-info-section-block__header"
|
|
3944
|
-
},
|
|
3991
|
+
}, Ta = { class: "global-info-section-block__title-wrap" }, Oa = { class: "global-info-section-block__title" }, Da = {
|
|
3945
3992
|
key: 0,
|
|
3946
3993
|
class: "global-info-section-block__actions"
|
|
3947
|
-
},
|
|
3994
|
+
}, Fa = { class: "global-info-section-block__body" }, Ba = /* @__PURE__ */ ce({
|
|
3948
3995
|
name: "GlobalInfoSectionBlock",
|
|
3949
3996
|
__name: "GlobalInfoSectionBlock",
|
|
3950
3997
|
props: {
|
|
@@ -3958,16 +4005,16 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3958
4005
|
onSave: { type: Function }
|
|
3959
4006
|
},
|
|
3960
4007
|
setup(e) {
|
|
3961
|
-
const t = e, n = Ee(), o = he(!1), r = he(null), i = he(null), s =
|
|
4008
|
+
const t = e, n = Ee(), o = he(!1), r = he(null), i = he(null), s = P(() => !!t.hideHeader), l = P(() => t.actions.getSectionStatus(t.node)), a = P(() => t.actions.getSection(t.node) ?? i.value), c = P(() => {
|
|
3962
4009
|
const y = a.value;
|
|
3963
4010
|
return y ? lt(y.fields, y, t.renderConfig, {
|
|
3964
4011
|
values: y.model,
|
|
3965
4012
|
rows: y.renderType === "table" ? y.rows : void 0
|
|
3966
4013
|
}) : [];
|
|
3967
|
-
}), m =
|
|
4014
|
+
}), m = P(() => a.value?.title || t.node.tagName || t.node.label || "-"), _ = P(() => !!(a.value && t.actions.isEditing(a.value))), $ = P(() => a.value?.renderType === "table"), b = P(() => o.value || l.value.loading), A = P(() => S(r.value || l.value.error)), g = P(() => {
|
|
3968
4015
|
const y = a.value;
|
|
3969
4016
|
return y ? y.renderType === "table" && y.rows.length === 0 || c.value.length === 0 : !0;
|
|
3970
|
-
}), w =
|
|
4017
|
+
}), w = P(() => ({
|
|
3971
4018
|
node: t.node,
|
|
3972
4019
|
section: a.value,
|
|
3973
4020
|
sectionView: a.value,
|
|
@@ -4032,7 +4079,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4032
4079
|
o.value = !1;
|
|
4033
4080
|
}
|
|
4034
4081
|
}
|
|
4035
|
-
return
|
|
4082
|
+
return Ht(() => {
|
|
4036
4083
|
N();
|
|
4037
4084
|
}), Be(
|
|
4038
4085
|
() => t.node.key,
|
|
@@ -4041,15 +4088,15 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4041
4088
|
}
|
|
4042
4089
|
), (y, F) => {
|
|
4043
4090
|
const O = It;
|
|
4044
|
-
return k(), Y("section",
|
|
4045
|
-
s.value ? ue("", !0) : (k(), Y("header",
|
|
4091
|
+
return k(), Y("section", ka, [
|
|
4092
|
+
s.value ? ue("", !0) : (k(), Y("header", Ma, [
|
|
4046
4093
|
ee(y.$slots, "header", Me(Fe(w.value)), () => [
|
|
4047
|
-
te("div",
|
|
4094
|
+
te("div", Ta, [
|
|
4048
4095
|
F[0] || (F[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
4049
|
-
te("h3",
|
|
4096
|
+
te("h3", Oa, fe(m.value), 1)
|
|
4050
4097
|
]),
|
|
4051
4098
|
ee(y.$slots, "actions", Me(Fe(w.value)), () => [
|
|
4052
|
-
a.value ? (k(), Y("div",
|
|
4099
|
+
a.value ? (k(), Y("div", Da, [
|
|
4053
4100
|
_.value ? (k(), Y(be, { key: 1 }, [
|
|
4054
4101
|
we(O, {
|
|
4055
4102
|
class: "global-info-section-block__cancel",
|
|
@@ -4061,7 +4108,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4061
4108
|
])),
|
|
4062
4109
|
_: 1
|
|
4063
4110
|
}, 8, ["disabled"]),
|
|
4064
|
-
$.value ? (k(),
|
|
4111
|
+
$.value ? (k(), U(O, {
|
|
4065
4112
|
key: 0,
|
|
4066
4113
|
class: "global-info-section-block__add",
|
|
4067
4114
|
disabled: l.value.saving,
|
|
@@ -4082,7 +4129,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4082
4129
|
]),
|
|
4083
4130
|
_: 1
|
|
4084
4131
|
}, 8, ["loading"])
|
|
4085
|
-
], 64)) : (k(),
|
|
4132
|
+
], 64)) : (k(), U(O, {
|
|
4086
4133
|
key: 0,
|
|
4087
4134
|
class: "global-info-section-block__edit",
|
|
4088
4135
|
disabled: l.value.saving || b.value,
|
|
@@ -4108,12 +4155,12 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4108
4155
|
], !0)
|
|
4109
4156
|
], !0)
|
|
4110
4157
|
])),
|
|
4111
|
-
te("div",
|
|
4158
|
+
te("div", Fa, [
|
|
4112
4159
|
b.value ? ee(y.$slots, "loading", Me(oe({ key: 0 }, w.value)), () => [
|
|
4113
4160
|
F[4] || (F[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
|
|
4114
4161
|
], !0) : !a.value || g.value ? ee(y.$slots, "empty", Me(oe({ key: 1 }, w.value)), () => [
|
|
4115
4162
|
F[5] || (F[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
|
|
4116
|
-
], !0) : (k(),
|
|
4163
|
+
], !0) : (k(), U(Ca, {
|
|
4117
4164
|
key: 2,
|
|
4118
4165
|
"boundary-key": y.node.key,
|
|
4119
4166
|
label: m.value,
|
|
@@ -4125,7 +4172,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4125
4172
|
], !0)
|
|
4126
4173
|
]),
|
|
4127
4174
|
default: J(() => [
|
|
4128
|
-
we(
|
|
4175
|
+
we($a, {
|
|
4129
4176
|
section: a.value,
|
|
4130
4177
|
node: y.node,
|
|
4131
4178
|
editing: _.value,
|
|
@@ -4147,7 +4194,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4147
4194
|
]);
|
|
4148
4195
|
};
|
|
4149
4196
|
}
|
|
4150
|
-
}),
|
|
4197
|
+
}), Ea = /* @__PURE__ */ ye(Ba, [["__scopeId", "data-v-8a4b5280"]]), La = { class: "global-info-group" }, Pa = { class: "global-info-group__header" }, Va = { class: "global-info-group__title" }, Aa = { class: "global-info-group__body" }, ja = ["id"], Na = /* @__PURE__ */ ce({
|
|
4151
4198
|
name: "GlobalInfoGroup",
|
|
4152
4199
|
__name: "GlobalInfoGroup",
|
|
4153
4200
|
props: {
|
|
@@ -4159,7 +4206,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4159
4206
|
renderConfig: {}
|
|
4160
4207
|
},
|
|
4161
4208
|
setup(e) {
|
|
4162
|
-
const t = e, n = Ee(), o =
|
|
4209
|
+
const t = e, n = Ee(), o = P(() => t.group.tagName || t.group.label || "-"), r = P(() => t.children.length <= 1);
|
|
4163
4210
|
function i(c, m) {
|
|
4164
4211
|
const _ = t.actions.getSection(c);
|
|
4165
4212
|
return {
|
|
@@ -4182,7 +4229,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4182
4229
|
}
|
|
4183
4230
|
function s(c) {
|
|
4184
4231
|
const m = t.actions.getSection(c);
|
|
4185
|
-
return
|
|
4232
|
+
return kt(n, "section", xn(c, m));
|
|
4186
4233
|
}
|
|
4187
4234
|
function l(c, m) {
|
|
4188
4235
|
return c.key || c.id || c.infSetId || c.tagId || `${m}`;
|
|
@@ -4190,7 +4237,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4190
4237
|
function a(c) {
|
|
4191
4238
|
return `global-info-section-${l(c, 0)}`;
|
|
4192
4239
|
}
|
|
4193
|
-
return (c, m) => (k(), Y("section",
|
|
4240
|
+
return (c, m) => (k(), Y("section", La, [
|
|
4194
4241
|
ee(c.$slots, "header", {
|
|
4195
4242
|
group: c.group,
|
|
4196
4243
|
children: c.children,
|
|
@@ -4201,12 +4248,12 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4201
4248
|
index: c.index,
|
|
4202
4249
|
isEmpty: c.children.length === 0
|
|
4203
4250
|
}, () => [
|
|
4204
|
-
te("header",
|
|
4251
|
+
te("header", Pa, [
|
|
4205
4252
|
m[0] || (m[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
|
|
4206
|
-
te("h2",
|
|
4253
|
+
te("h2", Va, fe(o.value), 1)
|
|
4207
4254
|
])
|
|
4208
4255
|
], !0),
|
|
4209
|
-
te("div",
|
|
4256
|
+
te("div", Aa, [
|
|
4210
4257
|
re(n).default ? ee(c.$slots, "default", {
|
|
4211
4258
|
key: 0,
|
|
4212
4259
|
group: c.group,
|
|
@@ -4228,7 +4275,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4228
4275
|
}, i(_, $)), void 0, !0) : re(n).section ? ee(c.$slots, "section", oe({
|
|
4229
4276
|
key: 1,
|
|
4230
4277
|
ref_for: !0
|
|
4231
|
-
}, i(_, $)), void 0, !0) : (k(),
|
|
4278
|
+
}, i(_, $)), void 0, !0) : (k(), U(Ea, {
|
|
4232
4279
|
key: 2,
|
|
4233
4280
|
node: _,
|
|
4234
4281
|
state: c.state,
|
|
@@ -4243,7 +4290,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4243
4290
|
])
|
|
4244
4291
|
}))
|
|
4245
4292
|
]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
|
|
4246
|
-
], 8,
|
|
4293
|
+
], 8, ja))), 128)),
|
|
4247
4294
|
c.children.length === 0 ? ee(c.$slots, "empty", {
|
|
4248
4295
|
key: 0,
|
|
4249
4296
|
node: null,
|
|
@@ -4260,7 +4307,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4260
4307
|
])
|
|
4261
4308
|
]));
|
|
4262
4309
|
}
|
|
4263
|
-
}),
|
|
4310
|
+
}), Ra = /* @__PURE__ */ ye(Na, [["__scopeId", "data-v-e86fcaf6"]]), za = { class: "global-info-sections" }, xa = /* @__PURE__ */ ce({
|
|
4264
4311
|
name: "GlobalInfoSections",
|
|
4265
4312
|
__name: "GlobalInfoSections",
|
|
4266
4313
|
props: {
|
|
@@ -4270,7 +4317,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4270
4317
|
renderConfig: {}
|
|
4271
4318
|
},
|
|
4272
4319
|
setup(e) {
|
|
4273
|
-
const t = e, n = Ee(), o =
|
|
4320
|
+
const t = e, n = Ee(), o = P(() => {
|
|
4274
4321
|
const m = t.nodes.filter((S) => r(S).length > 0), _ = t.nodes.filter((S) => r(S).length === 0), $ = _.filter((S) => i(S)), b = _.filter((S) => !i(S)), A = m.map((S) => ({ group: S, children: r(S) })), g = $.map((S) => ({ group: S, children: [S] }));
|
|
4275
4322
|
if (A.length === 0)
|
|
4276
4323
|
return $.length > 0 ? g : c(b);
|
|
@@ -4284,7 +4331,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4284
4331
|
return !String(m.parentId || m.parentTagId || "").trim();
|
|
4285
4332
|
}
|
|
4286
4333
|
function s(m) {
|
|
4287
|
-
return
|
|
4334
|
+
return kt(n, "group", zn(m));
|
|
4288
4335
|
}
|
|
4289
4336
|
function l(m, _) {
|
|
4290
4337
|
return m.key || m.id || m.tagId || `${_}`;
|
|
@@ -4311,7 +4358,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4311
4358
|
children: $
|
|
4312
4359
|
}));
|
|
4313
4360
|
}
|
|
4314
|
-
return (m, _) => (k(), Y("div",
|
|
4361
|
+
return (m, _) => (k(), Y("div", za, [
|
|
4315
4362
|
(k(!0), Y(be, null, ge(o.value, ($, b) => (k(), Y(be, {
|
|
4316
4363
|
key: l($.group, b)
|
|
4317
4364
|
}, [
|
|
@@ -4333,7 +4380,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4333
4380
|
renderConfig: m.renderConfig,
|
|
4334
4381
|
index: b,
|
|
4335
4382
|
isEmpty: $.children.length === 0
|
|
4336
|
-
}, void 0, !0) : (k(),
|
|
4383
|
+
}, void 0, !0) : (k(), U(Ra, {
|
|
4337
4384
|
key: 2,
|
|
4338
4385
|
group: $.group,
|
|
4339
4386
|
children: $.children,
|
|
@@ -4352,41 +4399,41 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4352
4399
|
], 64))), 128))
|
|
4353
4400
|
]));
|
|
4354
4401
|
}
|
|
4355
|
-
}),
|
|
4402
|
+
}), Wa = /* @__PURE__ */ ye(xa, [["__scopeId", "data-v-6f22a098"]]);
|
|
4356
4403
|
export {
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4404
|
+
En as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
|
|
4405
|
+
_a as GlobalInfoAutoRenderer,
|
|
4406
|
+
ga as GlobalInfoDeleteConfirm,
|
|
4407
|
+
Pn as GlobalInfoFieldControl,
|
|
4408
|
+
Vn as GlobalInfoFieldValue,
|
|
4409
|
+
ha as GlobalInfoFormRenderer,
|
|
4410
|
+
Ra as GlobalInfoGroup,
|
|
4411
|
+
Ja as GlobalInfoProvider,
|
|
4412
|
+
Ea as GlobalInfoSectionBlock,
|
|
4413
|
+
$a as GlobalInfoSectionOutlet,
|
|
4414
|
+
Wa as GlobalInfoSections,
|
|
4415
|
+
Ia as GlobalInfoTableRenderer,
|
|
4416
|
+
Et as JtAttachmentPreview,
|
|
4417
|
+
Uo as JtAttachmentPreviewByParams,
|
|
4371
4418
|
tt as JtButton,
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4419
|
+
vo as JtCascader,
|
|
4420
|
+
Ya as JtCrudTable,
|
|
4421
|
+
go as JtDatePicker,
|
|
4422
|
+
Eo as JtFilterBar,
|
|
4423
|
+
_o as JtFormItems,
|
|
4377
4424
|
mt as JtInput,
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4425
|
+
Ha as JtPageHeader,
|
|
4426
|
+
xo as JtPagination,
|
|
4427
|
+
So as JtSelect,
|
|
4428
|
+
jo as JtTable,
|
|
4429
|
+
Ir as buildGlobalInfoUpdatePayload,
|
|
4430
|
+
br as createEmptyGlobalInfoViewModel,
|
|
4431
|
+
Ua as isGlobalInfoNode,
|
|
4432
|
+
bn as mergeGlobalInfoChildren,
|
|
4433
|
+
Sr as normalizeGlobalInfoDetail,
|
|
4434
|
+
Rt as normalizeGlobalInfoTree,
|
|
4435
|
+
wr as resolveGlobalInfoRenderType,
|
|
4436
|
+
Ho as setupJtAttachmentPreview,
|
|
4437
|
+
Wr as useGlobalInfoController,
|
|
4438
|
+
Hr as validateGlobalInfoRequiredInfoSet
|
|
4392
4439
|
};
|