@jt-home/mfe-components 1.0.22 → 1.0.24
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 +360 -337
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1397 -1406
- package/dist/style.css +1 -1
- package/dist/types/components/form/item/JtCascader/cascaderProps.d.ts +0 -1
- package/dist/types/components/form/item/JtSelect/types.d.ts +0 -2
- package/dist/types/components/form/types.d.ts +0 -2
- package/dist/types/components/table/types.d.ts +2 -2
- package/package.json +93 -92
- package/readme.md +20 -39
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { defineComponent as ce, useAttrs as
|
|
2
|
+
import { defineComponent as ce, useAttrs as xn, computed as V, openBlock as k, createBlock as H, mergeProps as oe, toHandlers as Ze, withCtx as J, renderSlot as ee, resolveDynamicComponent as xt, createCommentVNode as ue, ref as he, watch as Be, mergeDefaults as qn, withKeys as Gn, createElementBlock as Y, Fragment as be, renderList as ge, normalizeStyle as qt, nextTick as Kn, useSlots as Ee, normalizeClass as He, createVNode as we, withModifiers as Gt, unref as re, createSlots as je, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Yn, mergeModels as Mt, shallowRef as Pe, onMounted as Kt, onBeforeUnmount as Un, createTextVNode as Ye, resolveComponent as Hn, onErrorCaptured as Jn } from "vue";
|
|
3
3
|
import { ElButton as It, ElIcon as Yt, ElCascader as Wn, ElDatePicker as Ut, ElInput as Ht, ElSelect as Jt, ElOption as Wt, ElFormItem as Zt, ElForm as Qt, ElTable as Xt, ElTableColumn as en, ElPagination as Zn, ElLoadingDirective as Qn, ElInputNumber as Xn, ElSwitch as eo, ElRow as to, ElCol as no, ElPopconfirm as oo } from "element-plus/es";
|
|
4
4
|
import { JtAttachmentPreview as Tt } from "./JtAttachmentPreview/index.mjs";
|
|
5
5
|
import { JtAttachmentPreviewByParams as Ha, setupJtAttachmentPreview as Ja } from "./JtAttachmentPreview/index.mjs";
|
|
@@ -55,18 +55,18 @@ const lo = /* @__PURE__ */ ce({
|
|
|
55
55
|
tag: {}
|
|
56
56
|
},
|
|
57
57
|
setup(e) {
|
|
58
|
-
const t = e, n =
|
|
58
|
+
const t = e, n = xn(), o = V(() => {
|
|
59
59
|
const { icon: i, ...s } = t;
|
|
60
60
|
return {
|
|
61
61
|
...on(n),
|
|
62
62
|
...s
|
|
63
63
|
};
|
|
64
|
-
}), r =
|
|
64
|
+
}), r = V(() => nn(n));
|
|
65
65
|
return (i, s) => {
|
|
66
66
|
const l = Yt, a = It;
|
|
67
|
-
return
|
|
67
|
+
return k(), H(a, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
|
|
68
68
|
default: J(() => [
|
|
69
|
-
i.$slots.icon ? (
|
|
69
|
+
i.$slots.icon ? (k(), H(l, {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "jt-button__icon"
|
|
72
72
|
}, {
|
|
@@ -74,12 +74,12 @@ const lo = /* @__PURE__ */ ce({
|
|
|
74
74
|
ee(i.$slots, "icon", {}, void 0, !0)
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
77
|
-
})) : t.icon ? (
|
|
77
|
+
})) : t.icon ? (k(), H(l, {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "jt-button__icon"
|
|
80
80
|
}, {
|
|
81
81
|
default: J(() => [
|
|
82
|
-
(
|
|
82
|
+
(k(), H(xt(t.icon)))
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
85
|
})) : ue("", !0),
|
|
@@ -94,7 +94,7 @@ const lo = /* @__PURE__ */ ce({
|
|
|
94
94
|
for (const [o, r] of t)
|
|
95
95
|
n[o] = r;
|
|
96
96
|
return n;
|
|
97
|
-
}, tt = /* @__PURE__ */ ye(lo, [["__scopeId", "data-v-
|
|
97
|
+
}, tt = /* @__PURE__ */ ye(lo, [["__scopeId", "data-v-fbcdce34"]]), co = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
placeholder: "请选择",
|
|
@@ -107,10 +107,10 @@ function Ft(e) {
|
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
function uo(e) {
|
|
110
|
-
const
|
|
111
|
-
return
|
|
112
|
-
|
|
113
|
-
)),
|
|
110
|
+
const t = Ft(e);
|
|
111
|
+
return t.props && (t.props = Ft(
|
|
112
|
+
t.props
|
|
113
|
+
)), t;
|
|
114
114
|
}
|
|
115
115
|
const fo = /* @__PURE__ */ ce({
|
|
116
116
|
name: "JtCascader",
|
|
@@ -152,62 +152,59 @@ const fo = /* @__PURE__ */ ce({
|
|
|
152
152
|
height: {},
|
|
153
153
|
emptyValues: {},
|
|
154
154
|
valueOnClear: { type: [String, Number, Boolean, Function, null] },
|
|
155
|
-
options: {}
|
|
156
|
-
hideDropdownIcon: { type: Boolean }
|
|
155
|
+
options: {}
|
|
157
156
|
}, co),
|
|
158
157
|
emits: ro,
|
|
159
158
|
setup(e, { emit: t }) {
|
|
160
|
-
const n = e, o =
|
|
159
|
+
const n = e, o = V(() => uo(n)), r = he(n.modelValue);
|
|
161
160
|
Be(
|
|
162
161
|
() => n.modelValue,
|
|
163
|
-
(
|
|
164
|
-
r.value =
|
|
162
|
+
(g) => {
|
|
163
|
+
r.value = g;
|
|
165
164
|
},
|
|
166
165
|
{ deep: !0 }
|
|
167
166
|
);
|
|
168
167
|
const i = t;
|
|
169
|
-
function s(
|
|
170
|
-
i(
|
|
168
|
+
function s(g, ...w) {
|
|
169
|
+
i(g, ...w);
|
|
171
170
|
}
|
|
172
|
-
function l(
|
|
173
|
-
r.value =
|
|
171
|
+
function l(g) {
|
|
172
|
+
r.value = g, s("update:modelValue", g);
|
|
174
173
|
}
|
|
175
|
-
function a(
|
|
176
|
-
s("change",
|
|
174
|
+
function a(g) {
|
|
175
|
+
s("change", g);
|
|
177
176
|
}
|
|
178
|
-
function c(
|
|
179
|
-
s("focus",
|
|
177
|
+
function c(g) {
|
|
178
|
+
s("focus", g);
|
|
180
179
|
}
|
|
181
|
-
function g
|
|
182
|
-
s("blur",
|
|
180
|
+
function m(g) {
|
|
181
|
+
s("blur", g);
|
|
183
182
|
}
|
|
184
|
-
function
|
|
183
|
+
function _() {
|
|
185
184
|
s("clear");
|
|
186
185
|
}
|
|
187
|
-
function
|
|
188
|
-
s("visibleChange",
|
|
186
|
+
function $(g) {
|
|
187
|
+
s("visibleChange", g);
|
|
189
188
|
}
|
|
190
|
-
function
|
|
191
|
-
s("expandChange",
|
|
189
|
+
function b(g) {
|
|
190
|
+
s("expandChange", g);
|
|
192
191
|
}
|
|
193
|
-
function A(
|
|
194
|
-
s("removeTag",
|
|
192
|
+
function A(g) {
|
|
193
|
+
s("removeTag", g);
|
|
195
194
|
}
|
|
196
|
-
return (
|
|
197
|
-
const
|
|
198
|
-
return
|
|
199
|
-
class: ["jt-cascader", { "jt-cascader--hide-dropdown-icon": n.hideDropdownIcon }]
|
|
200
|
-
}, o.value, {
|
|
195
|
+
return (g, w) => {
|
|
196
|
+
const S = Wn;
|
|
197
|
+
return k(), H(S, oe({ class: "jt-cascader" }, o.value, {
|
|
201
198
|
"model-value": r.value,
|
|
202
199
|
"onUpdate:modelValue": l,
|
|
203
200
|
onChange: a,
|
|
204
201
|
onFocus: c,
|
|
205
|
-
onBlur:
|
|
206
|
-
onClear:
|
|
207
|
-
onVisibleChange:
|
|
208
|
-
onExpandChange:
|
|
202
|
+
onBlur: m,
|
|
203
|
+
onClear: _,
|
|
204
|
+
onVisibleChange: $,
|
|
205
|
+
onExpandChange: b,
|
|
209
206
|
onRemoveTag: A
|
|
210
|
-
}), null, 16, ["
|
|
207
|
+
}), null, 16, ["model-value"]);
|
|
211
208
|
};
|
|
212
209
|
}
|
|
213
210
|
}), po = /* @__PURE__ */ ce({
|
|
@@ -263,7 +260,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
263
260
|
isRange: { type: Boolean }
|
|
264
261
|
},
|
|
265
262
|
setup(e) {
|
|
266
|
-
const t = e, n =
|
|
263
|
+
const t = e, n = V(() => ({
|
|
267
264
|
...t,
|
|
268
265
|
startPlaceholder: t.startPlaceholder ?? (o(t.type) ? "开始日期" : void 0),
|
|
269
266
|
endPlaceholder: t.endPlaceholder ?? (o(t.type) ? "结束日期" : void 0)
|
|
@@ -273,12 +270,12 @@ const fo = /* @__PURE__ */ ce({
|
|
|
273
270
|
}
|
|
274
271
|
return (r, i) => {
|
|
275
272
|
const s = Ut;
|
|
276
|
-
return
|
|
273
|
+
return k(), H(s, oe({ class: "jt-date-picker" }, n.value, {
|
|
277
274
|
"onUpdate:modelValue": i[0] || (i[0] = (l) => r.$emit("update:modelValue", l))
|
|
278
275
|
}), null, 16);
|
|
279
276
|
};
|
|
280
277
|
}
|
|
281
|
-
}), mo = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-
|
|
278
|
+
}), mo = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-2aaf2264"]]), vo = /* @__PURE__ */ ce({
|
|
282
279
|
name: "JtInput",
|
|
283
280
|
__name: "index",
|
|
284
281
|
props: {
|
|
@@ -321,7 +318,7 @@ const fo = /* @__PURE__ */ ce({
|
|
|
321
318
|
enter: () => !0
|
|
322
319
|
},
|
|
323
320
|
setup(e, { emit: t }) {
|
|
324
|
-
const n = e, o = t, r =
|
|
321
|
+
const n = e, o = t, r = V(() => Object.fromEntries(
|
|
325
322
|
Object.keys(Ot).map((i) => [
|
|
326
323
|
i,
|
|
327
324
|
(...s) => o(i, ...s)
|
|
@@ -329,17 +326,16 @@ const fo = /* @__PURE__ */ ce({
|
|
|
329
326
|
));
|
|
330
327
|
return (i, s) => {
|
|
331
328
|
const l = Ht;
|
|
332
|
-
return
|
|
329
|
+
return k(), H(l, oe({ class: "jt-input" }, n, Ze(r.value), {
|
|
333
330
|
onKeyup: s[0] || (s[0] = Gn((a) => o("enter"), ["enter"]))
|
|
334
331
|
}), null, 16);
|
|
335
332
|
};
|
|
336
333
|
}
|
|
337
|
-
}), mt = /* @__PURE__ */ ye(
|
|
334
|
+
}), mt = /* @__PURE__ */ ye(vo, [["__scopeId", "data-v-c4e9cb3f"]]), ho = /* @__PURE__ */ ce({
|
|
338
335
|
name: "JtSelect",
|
|
339
336
|
__name: "index",
|
|
340
337
|
props: {
|
|
341
338
|
options: {},
|
|
342
|
-
hideDropdownIcon: { type: Boolean },
|
|
343
339
|
ariaLabel: {},
|
|
344
340
|
emptyValues: {},
|
|
345
341
|
valueOnClear: {},
|
|
@@ -394,10 +390,10 @@ const fo = /* @__PURE__ */ ce({
|
|
|
394
390
|
},
|
|
395
391
|
emits: Dt,
|
|
396
392
|
setup(e, { emit: t }) {
|
|
397
|
-
const n = e, o =
|
|
398
|
-
const { options: s,
|
|
399
|
-
return
|
|
400
|
-
}), r = t, i =
|
|
393
|
+
const n = e, o = V(() => {
|
|
394
|
+
const { options: s, ...l } = n;
|
|
395
|
+
return l;
|
|
396
|
+
}), r = t, i = V(() => Object.fromEntries(
|
|
401
397
|
Object.keys(Dt).map((s) => [
|
|
402
398
|
s,
|
|
403
399
|
(...l) => r(s, ...l)
|
|
@@ -405,20 +401,18 @@ const fo = /* @__PURE__ */ ce({
|
|
|
405
401
|
));
|
|
406
402
|
return (s, l) => {
|
|
407
403
|
const a = Wt, c = Jt;
|
|
408
|
-
return
|
|
409
|
-
class: ["jt-select", { "jt-select--hide-dropdown-icon": n.hideDropdownIcon }]
|
|
410
|
-
}, o.value, Ze(i.value)), {
|
|
404
|
+
return k(), H(c, oe({ class: "jt-select" }, o.value, Ze(i.value)), {
|
|
411
405
|
default: J(() => [
|
|
412
|
-
(
|
|
413
|
-
key:
|
|
406
|
+
(k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(), H(a, oe({
|
|
407
|
+
key: m.value,
|
|
414
408
|
ref_for: !0
|
|
415
|
-
},
|
|
409
|
+
}, m), null, 16))), 128))
|
|
416
410
|
]),
|
|
417
411
|
_: 1
|
|
418
|
-
}, 16
|
|
412
|
+
}, 16);
|
|
419
413
|
};
|
|
420
414
|
}
|
|
421
|
-
}), go = /* @__PURE__ */ ye(
|
|
415
|
+
}), go = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-abce8e44"]]), yo = { class: "jt-form-items" }, vt = 4, bo = /* @__PURE__ */ ce({
|
|
422
416
|
name: "JTFormItems",
|
|
423
417
|
__name: "JtFormItems",
|
|
424
418
|
props: {
|
|
@@ -438,101 +432,101 @@ const fo = /* @__PURE__ */ ce({
|
|
|
438
432
|
daterange: "date-picker",
|
|
439
433
|
"date-range": "date-picker",
|
|
440
434
|
dateRange: "date-picker"
|
|
441
|
-
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l =
|
|
442
|
-
const { itemType:
|
|
443
|
-
if (!
|
|
444
|
-
if (typeof
|
|
445
|
-
const
|
|
446
|
-
return i.includes(
|
|
447
|
-
`[JtFormItems] 不支持的 itemType: "${
|
|
435
|
+
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = V(() => t.configs.filter((I) => I.show !== !1)), a = (I) => {
|
|
436
|
+
const { itemType: h } = I;
|
|
437
|
+
if (!h) return mt;
|
|
438
|
+
if (typeof h != "string") return h;
|
|
439
|
+
const T = o[h] ?? h;
|
|
440
|
+
return i.includes(T) ? n[T] : (console.error(
|
|
441
|
+
`[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${i.join(", ")}`
|
|
448
442
|
), mt);
|
|
449
|
-
}, c = (
|
|
450
|
-
const
|
|
451
|
-
return
|
|
452
|
-
...
|
|
453
|
-
options:
|
|
454
|
-
} :
|
|
455
|
-
...
|
|
443
|
+
}, c = (I) => {
|
|
444
|
+
const h = on(I, r);
|
|
445
|
+
return I.itemType === "select" || I.itemType === "remote-select" || I.itemType === "cascader" ? {
|
|
446
|
+
...h,
|
|
447
|
+
options: I.options
|
|
448
|
+
} : j(I.itemType) ? {
|
|
449
|
+
...h,
|
|
456
450
|
type: "daterange"
|
|
457
|
-
} :
|
|
458
|
-
},
|
|
459
|
-
rules:
|
|
460
|
-
...
|
|
461
|
-
}),
|
|
462
|
-
t.formData[
|
|
451
|
+
} : h;
|
|
452
|
+
}, m = (I) => nn(I, r), _ = (I) => ({
|
|
453
|
+
rules: I.rules,
|
|
454
|
+
...I.formItemProps
|
|
455
|
+
}), $ = (I, h) => {
|
|
456
|
+
t.formData[I] = h;
|
|
463
457
|
};
|
|
464
|
-
function
|
|
465
|
-
return (
|
|
466
|
-
if (
|
|
467
|
-
s.set(
|
|
458
|
+
function b(I) {
|
|
459
|
+
return (h) => {
|
|
460
|
+
if (h) {
|
|
461
|
+
s.set(I, h);
|
|
468
462
|
return;
|
|
469
463
|
}
|
|
470
|
-
s.delete(
|
|
464
|
+
s.delete(I);
|
|
471
465
|
};
|
|
472
466
|
}
|
|
473
|
-
function A(
|
|
467
|
+
function A(I, h) {
|
|
474
468
|
Kn(() => {
|
|
475
|
-
s.get(
|
|
469
|
+
s.get(I)?.validate(h).catch(() => {
|
|
476
470
|
});
|
|
477
471
|
});
|
|
478
472
|
}
|
|
479
|
-
const
|
|
480
|
-
const
|
|
481
|
-
(
|
|
473
|
+
const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w = V(() => {
|
|
474
|
+
const h = l.value.reduce(
|
|
475
|
+
(T, p) => T + g(t.span || p.span),
|
|
482
476
|
0
|
|
483
|
-
) %
|
|
484
|
-
return
|
|
485
|
-
gridColumn: `1 / span ${
|
|
477
|
+
) % vt;
|
|
478
|
+
return h === 0 ? {
|
|
479
|
+
gridColumn: `1 / span ${vt}`
|
|
486
480
|
} : {
|
|
487
|
-
gridColumn: `${
|
|
481
|
+
gridColumn: `${h + 1} / span ${vt - h}`
|
|
488
482
|
};
|
|
489
|
-
}),
|
|
490
|
-
gridColumn: `span ${
|
|
483
|
+
}), S = (I) => ({
|
|
484
|
+
gridColumn: `span ${g(t.span || I.span)}`
|
|
491
485
|
});
|
|
492
|
-
function
|
|
493
|
-
return
|
|
486
|
+
function j(I) {
|
|
487
|
+
return I === "daterange" || I === "date-range" || I === "dateRange";
|
|
494
488
|
}
|
|
495
|
-
return (
|
|
496
|
-
const
|
|
497
|
-
return
|
|
498
|
-
(
|
|
499
|
-
key:
|
|
489
|
+
return (I, h) => {
|
|
490
|
+
const T = Zt;
|
|
491
|
+
return k(), Y("div", yo, [
|
|
492
|
+
(k(!0), Y(be, null, ge(l.value, (p) => (k(), H(T, oe({
|
|
493
|
+
key: p.prop,
|
|
500
494
|
ref_for: !0,
|
|
501
|
-
ref:
|
|
495
|
+
ref: b(p.prop),
|
|
502
496
|
class: "jt-form-items__item",
|
|
503
|
-
style:
|
|
504
|
-
label:
|
|
505
|
-
prop:
|
|
506
|
-
},
|
|
497
|
+
style: S(p),
|
|
498
|
+
label: p.label,
|
|
499
|
+
prop: p.prop
|
|
500
|
+
}, _(p)), {
|
|
507
501
|
default: J(() => [
|
|
508
|
-
|
|
502
|
+
p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(), H(xt(a(p)), oe({
|
|
509
503
|
key: 1,
|
|
510
|
-
"model-value":
|
|
504
|
+
"model-value": I.formData[p.prop],
|
|
511
505
|
ref_for: !0
|
|
512
|
-
}, c(
|
|
513
|
-
"onUpdate:modelValue": (
|
|
514
|
-
onChange: () => A(
|
|
515
|
-
onBlur: () => A(
|
|
506
|
+
}, c(p), Ze(m(p)), {
|
|
507
|
+
"onUpdate:modelValue": (N) => $(p.prop, N),
|
|
508
|
+
onChange: () => A(p.prop, "change"),
|
|
509
|
+
onBlur: () => A(p.prop, "blur")
|
|
516
510
|
}), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
|
|
517
511
|
]),
|
|
518
512
|
_: 2
|
|
519
513
|
}, 1040, ["style", "label", "prop"]))), 128)),
|
|
520
|
-
|
|
514
|
+
I.$slots.actions ? (k(), H(T, {
|
|
521
515
|
key: 0,
|
|
522
516
|
class: "jt-form-items__actions",
|
|
523
|
-
style: qt(
|
|
517
|
+
style: qt(w.value)
|
|
524
518
|
}, {
|
|
525
519
|
default: J(() => [
|
|
526
|
-
ee(
|
|
520
|
+
ee(I.$slots, "actions", {}, void 0, !0)
|
|
527
521
|
]),
|
|
528
522
|
_: 3
|
|
529
523
|
}, 8, ["style"])) : ue("", !0)
|
|
530
524
|
]);
|
|
531
525
|
};
|
|
532
526
|
}
|
|
533
|
-
}), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-
|
|
527
|
+
}), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-136dd5e5"]]);
|
|
534
528
|
function wo() {
|
|
535
|
-
const e =
|
|
529
|
+
const e = he(!1);
|
|
536
530
|
function t() {
|
|
537
531
|
e.value = !0;
|
|
538
532
|
}
|
|
@@ -555,36 +549,36 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
555
549
|
},
|
|
556
550
|
emits: ["update:modelValue", "search", "reset"],
|
|
557
551
|
setup(e, { expose: t, emit: n }) {
|
|
558
|
-
const o = e, r = n, i =
|
|
552
|
+
const o = e, r = n, i = he(), s = Ee(), l = he({}), {
|
|
559
553
|
searchDisabled: a,
|
|
560
554
|
searchLoading: c,
|
|
561
|
-
searchDone:
|
|
562
|
-
} = wo(),
|
|
563
|
-
() => Math.max(1,
|
|
564
|
-
),
|
|
565
|
-
() => Math.max(1,
|
|
566
|
-
),
|
|
567
|
-
if (!
|
|
555
|
+
searchDone: m
|
|
556
|
+
} = wo(), _ = V(() => o.option), $ = he(_.value.searchCollapsed ?? !0), b = V(() => o.columns.filter((P) => P.search === !0)), A = V(
|
|
557
|
+
() => Math.max(1, _.value.searchSpan ?? 4)
|
|
558
|
+
), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value), S = V(
|
|
559
|
+
() => Math.max(1, w.value * g.value)
|
|
560
|
+
), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"), h = V(() => U(_.value.searchLabelWidth ?? 84)), T = V(() => _.value.searchLabelPosition ?? "top"), p = V(() => G(_.value.searchGutter, 14)), N = V(() => G(_.value.searchRowGap, 14)), y = V(() => X(_.value.searchPadding ?? "18px 4px 0")), F = V(() => _.value.searchCollapse === !1 ? !1 : q(b.value) > S.value), O = V(() => {
|
|
561
|
+
if (!F.value || !$.value) return b.value;
|
|
568
562
|
let P = 0;
|
|
569
|
-
return
|
|
570
|
-
const ae =
|
|
571
|
-
return P + ae >
|
|
563
|
+
return b.value.filter((Z) => {
|
|
564
|
+
const ae = E(Z);
|
|
565
|
+
return P + ae > S.value ? !1 : (P += ae, !0);
|
|
572
566
|
});
|
|
573
|
-
}),
|
|
574
|
-
() =>
|
|
575
|
-
), ne =
|
|
576
|
-
const [P] =
|
|
577
|
-
return !!P &&
|
|
578
|
-
}),
|
|
579
|
-
const [P] =
|
|
580
|
-
return `${Math.min(A.value, P ?
|
|
581
|
-
}),
|
|
582
|
-
() =>
|
|
567
|
+
}), z = V(
|
|
568
|
+
() => O.value.filter((P) => !!s[`${P.prop}-search`])
|
|
569
|
+
), ne = V(() => {
|
|
570
|
+
const [P] = O.value;
|
|
571
|
+
return !!P && O.value.length === 1 && E(P) < A.value;
|
|
572
|
+
}), x = V(() => {
|
|
573
|
+
const [P] = O.value;
|
|
574
|
+
return `${Math.min(A.value, P ? E(P) + 1 : 1)}`;
|
|
575
|
+
}), R = V(
|
|
576
|
+
() => O.value.map((P) => B(P))
|
|
583
577
|
);
|
|
584
578
|
Be(
|
|
585
|
-
() =>
|
|
579
|
+
() => _.value.searchCollapsed,
|
|
586
580
|
(P) => {
|
|
587
|
-
typeof P == "boolean" && (
|
|
581
|
+
typeof P == "boolean" && ($.value = P);
|
|
588
582
|
}
|
|
589
583
|
), Be(
|
|
590
584
|
() => o.modelValue,
|
|
@@ -593,18 +587,18 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
593
587
|
},
|
|
594
588
|
{ deep: !0, immediate: !0 }
|
|
595
589
|
);
|
|
596
|
-
function
|
|
590
|
+
function D(P, Z) {
|
|
597
591
|
if (a.value) return;
|
|
598
592
|
const ae = { ...l.value, [P]: Z };
|
|
599
593
|
l.value = ae, r("update:modelValue", ae);
|
|
600
594
|
}
|
|
601
|
-
function
|
|
595
|
+
function B(P) {
|
|
602
596
|
const Z = P.searchProps ?? {};
|
|
603
597
|
return {
|
|
604
598
|
...Z,
|
|
605
599
|
prop: P.prop,
|
|
606
600
|
label: P.searchLabel ?? P.label,
|
|
607
|
-
span:
|
|
601
|
+
span: E(P),
|
|
608
602
|
itemType: P.searchType ?? "input",
|
|
609
603
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
610
604
|
showSlot: !!s[`${P.prop}-search`],
|
|
@@ -618,11 +612,11 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
618
612
|
},
|
|
619
613
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
620
614
|
onEnter: (...ae) => {
|
|
621
|
-
u(Z.onEnter, ...ae),
|
|
615
|
+
u(Z.onEnter, ...ae), v();
|
|
622
616
|
},
|
|
623
617
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
624
618
|
"onUpdate:modelValue": (ae) => {
|
|
625
|
-
u(Z["onUpdate:modelValue"], ae),
|
|
619
|
+
u(Z["onUpdate:modelValue"], ae), D(P.prop, ae);
|
|
626
620
|
}
|
|
627
621
|
};
|
|
628
622
|
}
|
|
@@ -633,7 +627,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
633
627
|
}
|
|
634
628
|
typeof P == "function" && P(...Z);
|
|
635
629
|
}
|
|
636
|
-
async function
|
|
630
|
+
async function v() {
|
|
637
631
|
if (!a.value) {
|
|
638
632
|
if (i.value)
|
|
639
633
|
try {
|
|
@@ -644,17 +638,17 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
644
638
|
r("search");
|
|
645
639
|
}
|
|
646
640
|
}
|
|
647
|
-
function
|
|
641
|
+
function C() {
|
|
648
642
|
a.value || r("reset");
|
|
649
643
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
644
|
+
function L() {
|
|
645
|
+
$.value = !$.value;
|
|
652
646
|
}
|
|
653
|
-
function
|
|
647
|
+
function E(P) {
|
|
654
648
|
return Math.min(A.value, Math.max(1, P.searchSpan ?? 1));
|
|
655
649
|
}
|
|
656
650
|
function q(P) {
|
|
657
|
-
return P.reduce((Z, ae) => Z +
|
|
651
|
+
return P.reduce((Z, ae) => Z + E(ae), 0);
|
|
658
652
|
}
|
|
659
653
|
function U(P) {
|
|
660
654
|
return typeof P == "number" ? `${P}px` : P;
|
|
@@ -673,20 +667,20 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
673
667
|
/** 开启筛选表单禁用。 */
|
|
674
668
|
searchLoading: c,
|
|
675
669
|
/** 关闭筛选表单禁用。 */
|
|
676
|
-
searchDone:
|
|
670
|
+
searchDone: m
|
|
677
671
|
}), (P, Z) => {
|
|
678
672
|
const ae = Qt;
|
|
679
|
-
return
|
|
680
|
-
class: He(["jt-filter-bar", [`is-label-${
|
|
673
|
+
return k(), Y("div", {
|
|
674
|
+
class: He(["jt-filter-bar", [`is-label-${T.value}`, { "is-single-filter": ne.value }]]),
|
|
681
675
|
style: qt({
|
|
682
676
|
"--jt-filter-columns": A.value,
|
|
683
|
-
"--jt-filter-field-columns":
|
|
684
|
-
"--jt-filter-btns-width":
|
|
685
|
-
"--jt-filter-actions-start":
|
|
686
|
-
"--jt-filter-label-width":
|
|
687
|
-
"--jt-filter-column-gap": `${
|
|
688
|
-
"--jt-filter-row-gap": `${
|
|
689
|
-
"--jt-filter-padding":
|
|
677
|
+
"--jt-filter-field-columns": j.value,
|
|
678
|
+
"--jt-filter-btns-width": I.value,
|
|
679
|
+
"--jt-filter-actions-start": x.value,
|
|
680
|
+
"--jt-filter-label-width": h.value,
|
|
681
|
+
"--jt-filter-column-gap": `${p.value}px`,
|
|
682
|
+
"--jt-filter-row-gap": `${N.value}px`,
|
|
683
|
+
"--jt-filter-padding": y.value
|
|
690
684
|
})
|
|
691
685
|
}, [
|
|
692
686
|
we(ae, {
|
|
@@ -694,47 +688,47 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
694
688
|
ref: i,
|
|
695
689
|
class: "jt-filter-bar__form",
|
|
696
690
|
model: l.value,
|
|
697
|
-
"label-position":
|
|
698
|
-
"label-width":
|
|
691
|
+
"label-position": T.value,
|
|
692
|
+
"label-width": h.value,
|
|
699
693
|
disabled: re(a),
|
|
700
694
|
onSubmit: Z[0] || (Z[0] = Gt(() => {
|
|
701
695
|
}, ["prevent"]))
|
|
702
696
|
}, {
|
|
703
697
|
default: J(() => [
|
|
704
698
|
we(re(So), {
|
|
705
|
-
configs:
|
|
699
|
+
configs: R.value,
|
|
706
700
|
"form-data": l.value
|
|
707
701
|
}, je({
|
|
708
702
|
actions: J(() => [
|
|
709
703
|
te("div", Co, [
|
|
710
704
|
ee(P.$slots, "search-menu", {
|
|
711
|
-
search:
|
|
712
|
-
reset:
|
|
705
|
+
search: v,
|
|
706
|
+
reset: C,
|
|
713
707
|
disabled: re(a),
|
|
714
|
-
collapsed:
|
|
715
|
-
toggleCollapse:
|
|
708
|
+
collapsed: $.value,
|
|
709
|
+
toggleCollapse: L
|
|
716
710
|
}, () => [
|
|
717
|
-
|
|
711
|
+
F.value ? (k(), H(re(tt), {
|
|
718
712
|
key: 0,
|
|
719
713
|
class: "jt-filter-bar__btn-collapse",
|
|
720
|
-
onClick:
|
|
714
|
+
onClick: L
|
|
721
715
|
}, {
|
|
722
716
|
icon: J(() => [
|
|
723
717
|
te("img", {
|
|
724
|
-
class: He(["jt-filter-bar__icon-arrow", { "is-collapsed":
|
|
718
|
+
class: He(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
|
|
725
719
|
src: re(Io),
|
|
726
720
|
alt: ""
|
|
727
721
|
}, null, 10, ko)
|
|
728
722
|
]),
|
|
729
723
|
default: J(() => [
|
|
730
|
-
te("span", null, fe(
|
|
724
|
+
te("span", null, fe($.value ? "展 开" : "收 起"), 1)
|
|
731
725
|
]),
|
|
732
726
|
_: 1
|
|
733
727
|
})) : ue("", !0),
|
|
734
728
|
we(re(tt), {
|
|
735
729
|
class: "jt-filter-bar__btn-reset",
|
|
736
730
|
disabled: re(a),
|
|
737
|
-
onClick:
|
|
731
|
+
onClick: C
|
|
738
732
|
}, {
|
|
739
733
|
icon: J(() => [
|
|
740
734
|
te("img", {
|
|
@@ -743,7 +737,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
743
737
|
}, null, 8, Mo)
|
|
744
738
|
]),
|
|
745
739
|
default: J(() => [
|
|
746
|
-
te("span", null, fe(
|
|
740
|
+
te("span", null, fe(_.value.resetBtnText ?? "重 置"), 1)
|
|
747
741
|
]),
|
|
748
742
|
_: 1
|
|
749
743
|
}, 8, ["disabled"]),
|
|
@@ -751,7 +745,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
751
745
|
class: "jt-filter-bar__btn-query",
|
|
752
746
|
type: "primary",
|
|
753
747
|
disabled: re(a),
|
|
754
|
-
onClick:
|
|
748
|
+
onClick: v
|
|
755
749
|
}, {
|
|
756
750
|
icon: J(() => [
|
|
757
751
|
te("img", {
|
|
@@ -760,7 +754,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
760
754
|
}, null, 8, To)
|
|
761
755
|
]),
|
|
762
756
|
default: J(() => [
|
|
763
|
-
te("span", null, fe(
|
|
757
|
+
te("span", null, fe(_.value.searchBtnText ?? "查 询"), 1)
|
|
764
758
|
]),
|
|
765
759
|
_: 1
|
|
766
760
|
}, 8, ["disabled"])
|
|
@@ -769,15 +763,15 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
769
763
|
]),
|
|
770
764
|
_: 2
|
|
771
765
|
}, [
|
|
772
|
-
ge(
|
|
766
|
+
ge(z.value, (pe) => ({
|
|
773
767
|
name: pe.prop,
|
|
774
768
|
fn: J(() => [
|
|
775
769
|
ee(P.$slots, `${pe.prop}-search`, {
|
|
776
770
|
value: l.value[pe.prop],
|
|
777
771
|
column: pe,
|
|
778
|
-
setValue: (de) =>
|
|
779
|
-
search:
|
|
780
|
-
reset:
|
|
772
|
+
setValue: (de) => D(pe.prop, de),
|
|
773
|
+
search: v,
|
|
774
|
+
reset: C,
|
|
781
775
|
disabled: re(a)
|
|
782
776
|
}, void 0, !0)
|
|
783
777
|
])
|
|
@@ -799,97 +793,94 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
799
793
|
tableEvents: {}
|
|
800
794
|
},
|
|
801
795
|
setup(e, { expose: t }) {
|
|
802
|
-
const n = e, o = Ee(), r =
|
|
803
|
-
function
|
|
804
|
-
return !!o[`${
|
|
796
|
+
const n = e, o = Ee(), r = he(), i = V(() => n.option ?? {}), s = V(() => n.columns.filter((b) => !b.hide));
|
|
797
|
+
function l(b) {
|
|
798
|
+
return !!o[`${b}-header`];
|
|
805
799
|
}
|
|
806
|
-
function
|
|
807
|
-
return !!o[`${
|
|
800
|
+
function a(b) {
|
|
801
|
+
return !!o[`${b}-data`];
|
|
808
802
|
}
|
|
809
|
-
function
|
|
803
|
+
function c(b) {
|
|
810
804
|
return {
|
|
811
|
-
width:
|
|
812
|
-
minWidth:
|
|
813
|
-
align:
|
|
814
|
-
fixed:
|
|
815
|
-
sortable:
|
|
816
|
-
showOverflowTooltip:
|
|
817
|
-
...
|
|
805
|
+
width: b.width,
|
|
806
|
+
minWidth: b.minWidth,
|
|
807
|
+
align: b.align,
|
|
808
|
+
fixed: b.fixed,
|
|
809
|
+
sortable: b.sortable,
|
|
810
|
+
showOverflowTooltip: b.showOverflowTooltip,
|
|
811
|
+
...b.columnOptions
|
|
818
812
|
};
|
|
819
813
|
}
|
|
820
|
-
function
|
|
821
|
-
return !
|
|
822
|
-
}
|
|
823
|
-
function I(d) {
|
|
824
|
-
return !V(d.columnOptions?.type);
|
|
814
|
+
function m(b) {
|
|
815
|
+
return !_(b.columnOptions?.type);
|
|
825
816
|
}
|
|
826
|
-
function
|
|
827
|
-
return
|
|
817
|
+
function _(b) {
|
|
818
|
+
return b === "selection" || b === "index" || b === "expand";
|
|
828
819
|
}
|
|
829
|
-
function
|
|
830
|
-
return
|
|
820
|
+
function $(b, A) {
|
|
821
|
+
return b.find((g) => g.value === A)?.label ?? String(A ?? "");
|
|
831
822
|
}
|
|
832
|
-
return t({ tableRef: r }), (
|
|
833
|
-
const
|
|
834
|
-
return
|
|
823
|
+
return t({ tableRef: r }), (b, A) => {
|
|
824
|
+
const g = en, w = Xt;
|
|
825
|
+
return k(), H(w, oe({
|
|
835
826
|
ref_key: "tableRef",
|
|
836
827
|
ref: r,
|
|
837
|
-
data:
|
|
828
|
+
data: b.data,
|
|
838
829
|
"row-key": i.value.rowKey ?? "id",
|
|
839
830
|
height: i.value.height,
|
|
840
831
|
"max-height": i.value.maxHeight,
|
|
841
832
|
"empty-text": i.value.emptyText,
|
|
842
833
|
class: "jt-table"
|
|
843
|
-
}, i.value.tableProps, Ze(
|
|
834
|
+
}, i.value.tableProps, Ze(b.tableEvents)), {
|
|
844
835
|
default: J(() => [
|
|
845
|
-
i.value.selection ? (
|
|
836
|
+
i.value.selection ? (k(), H(g, {
|
|
846
837
|
key: 0,
|
|
847
838
|
type: "selection",
|
|
848
839
|
width: "55",
|
|
849
840
|
align: "center"
|
|
850
841
|
})) : ue("", !0),
|
|
851
|
-
i.value.index ? (
|
|
842
|
+
i.value.index ? (k(), H(g, {
|
|
852
843
|
key: 1,
|
|
853
844
|
type: "index",
|
|
854
845
|
label: i.value.indexLabel ?? "序号",
|
|
855
846
|
width: "60",
|
|
856
847
|
align: "center"
|
|
857
848
|
}, null, 8, ["label"])) : ue("", !0),
|
|
858
|
-
(
|
|
859
|
-
key:
|
|
860
|
-
prop:
|
|
861
|
-
label:
|
|
862
|
-
formatter: !
|
|
849
|
+
(k(!0), Y(be, null, ge(s.value, (S) => (k(), H(g, oe({
|
|
850
|
+
key: S.prop,
|
|
851
|
+
prop: S.prop,
|
|
852
|
+
label: S.label,
|
|
853
|
+
formatter: !a(S.prop) && !S.dicData ? S.formatter : void 0,
|
|
863
854
|
ref_for: !0
|
|
864
|
-
},
|
|
865
|
-
|
|
855
|
+
}, c(S)), je({ _: 2 }, [
|
|
856
|
+
l(S.prop) ? {
|
|
866
857
|
name: "header",
|
|
867
|
-
fn: J((
|
|
868
|
-
ee(
|
|
858
|
+
fn: J((j) => [
|
|
859
|
+
ee(b.$slots, `${S.prop}-header`, oe({ ref_for: !0 }, j), void 0, !0)
|
|
869
860
|
]),
|
|
870
861
|
key: "0"
|
|
871
862
|
} : void 0,
|
|
872
|
-
|
|
863
|
+
m(S) ? {
|
|
873
864
|
name: "default",
|
|
874
|
-
fn: J((
|
|
875
|
-
|
|
865
|
+
fn: J((j) => [
|
|
866
|
+
a(S.prop) ? ee(b.$slots, `${S.prop}-data`, oe({
|
|
876
867
|
key: 0,
|
|
877
868
|
ref_for: !0
|
|
878
|
-
},
|
|
869
|
+
}, j), void 0, !0) : S.dicData ? (k(), Y("span", Fo, fe($(S.dicData, j.row[S.prop])), 1)) : S.formatter ? (k(), Y("span", Bo, fe(S.formatter(j.row, j.column, j.row[S.prop], j.$index)), 1)) : (k(), Y("span", Eo, fe(j.row[S.prop]), 1))
|
|
879
870
|
]),
|
|
880
871
|
key: "1"
|
|
881
872
|
} : void 0
|
|
882
873
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
883
|
-
i.value.menu ? (
|
|
874
|
+
i.value.menu ? (k(), H(g, {
|
|
884
875
|
key: 2,
|
|
885
876
|
label: i.value.menuLabel ?? "操作",
|
|
886
877
|
width: i.value.menuWidth,
|
|
887
878
|
"min-width": i.value.menuMinWidth,
|
|
888
879
|
align: i.value.menuAlign ?? "center",
|
|
889
|
-
fixed:
|
|
880
|
+
fixed: i.value.menuFixed
|
|
890
881
|
}, {
|
|
891
|
-
default: J((
|
|
892
|
-
ee(
|
|
882
|
+
default: J((S) => [
|
|
883
|
+
ee(b.$slots, "menu", Me(Fe(S)), void 0, !0)
|
|
893
884
|
]),
|
|
894
885
|
_: 3
|
|
895
886
|
}, 8, ["label", "width", "min-width", "align", "fixed"])) : ue("", !0)
|
|
@@ -898,7 +889,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
898
889
|
}, 16, ["data", "row-key", "height", "max-height", "empty-text"]);
|
|
899
890
|
};
|
|
900
891
|
}
|
|
901
|
-
}), Vo = /* @__PURE__ */ ye(Lo, [["__scopeId", "data-v-
|
|
892
|
+
}), Vo = /* @__PURE__ */ ye(Lo, [["__scopeId", "data-v-2f881a67"]]), Po = { class: "jt-pagination" }, Ao = { class: "jt-pagination__count" }, jo = /* @__PURE__ */ ce({
|
|
902
893
|
name: "JtPagination",
|
|
903
894
|
__name: "JtPagination",
|
|
904
895
|
props: {
|
|
@@ -909,13 +900,13 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
909
900
|
},
|
|
910
901
|
emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
|
|
911
902
|
setup(e, { emit: t }) {
|
|
912
|
-
const n = e, o =
|
|
903
|
+
const n = e, o = V(() => n.option ?? {}), r = t;
|
|
913
904
|
function i(s) {
|
|
914
905
|
r("current-change", s), r("page-change", s);
|
|
915
906
|
}
|
|
916
907
|
return (s, l) => {
|
|
917
908
|
const a = Zn;
|
|
918
|
-
return
|
|
909
|
+
return k(), Y("div", Po, [
|
|
919
910
|
we(a, {
|
|
920
911
|
"current-page": s.currentPage,
|
|
921
912
|
"page-size": s.pageSize,
|
|
@@ -931,10 +922,10 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
931
922
|
]);
|
|
932
923
|
};
|
|
933
924
|
}
|
|
934
|
-
}), No = /* @__PURE__ */ ye(jo, [["__scopeId", "data-v-
|
|
925
|
+
}), No = /* @__PURE__ */ ye(jo, [["__scopeId", "data-v-c6757399"]]), Ro = { class: "jt-crud-table" }, zo = {
|
|
935
926
|
key: 1,
|
|
936
927
|
class: "jt-crud-table__toolbar"
|
|
937
|
-
},
|
|
928
|
+
}, xo = /* @__PURE__ */ ce({
|
|
938
929
|
name: "JtCrudTable",
|
|
939
930
|
__name: "JtCrudTable",
|
|
940
931
|
props: /* @__PURE__ */ Mt({
|
|
@@ -953,110 +944,110 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
953
944
|
}),
|
|
954
945
|
emits: /* @__PURE__ */ Mt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
955
946
|
setup(e, { expose: t, emit: n }) {
|
|
956
|
-
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c =
|
|
957
|
-
() => o.columns.filter((
|
|
958
|
-
),
|
|
959
|
-
() => o.columns.filter((
|
|
960
|
-
),
|
|
961
|
-
() => o.columns.filter((
|
|
947
|
+
const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), m = he(), _ = V(() => o.option), $ = V(() => _.value.searchShow !== !1), b = V(() => _.value.paginationShow !== !1), A = V(
|
|
948
|
+
() => o.columns.filter((p) => p.search && !!a[`${p.prop}-search`])
|
|
949
|
+
), g = V(
|
|
950
|
+
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-header`])
|
|
951
|
+
), w = V(
|
|
952
|
+
() => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-data`])
|
|
962
953
|
);
|
|
963
|
-
function
|
|
964
|
-
const
|
|
965
|
-
return o.columns.forEach((
|
|
966
|
-
|
|
967
|
-
}),
|
|
954
|
+
function S() {
|
|
955
|
+
const p = {};
|
|
956
|
+
return o.columns.forEach((N) => {
|
|
957
|
+
N.search && (p[N.prop] = void 0);
|
|
958
|
+
}), p;
|
|
968
959
|
}
|
|
969
|
-
function
|
|
960
|
+
function j() {
|
|
970
961
|
r("search", { ...l.value });
|
|
971
962
|
}
|
|
972
|
-
function
|
|
973
|
-
l.value =
|
|
963
|
+
function I() {
|
|
964
|
+
l.value = S(), r("reset");
|
|
974
965
|
}
|
|
975
|
-
function
|
|
976
|
-
|
|
966
|
+
function h() {
|
|
967
|
+
m.value?.searchLoading();
|
|
977
968
|
}
|
|
978
|
-
function
|
|
979
|
-
|
|
969
|
+
function T() {
|
|
970
|
+
m.value?.searchDone();
|
|
980
971
|
}
|
|
981
972
|
return t({
|
|
982
973
|
/** 获取内部 el-table 实例 */
|
|
983
|
-
tableRef:
|
|
974
|
+
tableRef: V(() => c.value?.tableRef),
|
|
984
975
|
/** 获取内部筛选条实例 */
|
|
985
|
-
filterBarRef:
|
|
976
|
+
filterBarRef: m,
|
|
986
977
|
/** 开启筛选表单禁用。 */
|
|
987
|
-
searchLoading:
|
|
978
|
+
searchLoading: h,
|
|
988
979
|
/** 关闭筛选表单禁用。 */
|
|
989
|
-
searchDone:
|
|
990
|
-
}), (
|
|
991
|
-
const
|
|
992
|
-
return
|
|
993
|
-
ee(
|
|
994
|
-
|
|
980
|
+
searchDone: T
|
|
981
|
+
}), (p, N) => {
|
|
982
|
+
const y = Qn;
|
|
983
|
+
return k(), Y("div", Ro, [
|
|
984
|
+
ee(p.$slots, "header", {}, void 0, !0),
|
|
985
|
+
$.value ? (k(), H(Do, {
|
|
995
986
|
key: 0,
|
|
996
987
|
ref_key: "filterBarRef",
|
|
997
|
-
ref:
|
|
988
|
+
ref: m,
|
|
998
989
|
modelValue: l.value,
|
|
999
|
-
"onUpdate:modelValue":
|
|
1000
|
-
columns:
|
|
1001
|
-
option:
|
|
1002
|
-
onSearch:
|
|
1003
|
-
onReset:
|
|
990
|
+
"onUpdate:modelValue": N[0] || (N[0] = (F) => l.value = F),
|
|
991
|
+
columns: p.columns,
|
|
992
|
+
option: _.value,
|
|
993
|
+
onSearch: j,
|
|
994
|
+
onReset: I
|
|
1004
995
|
}, je({ _: 2 }, [
|
|
1005
|
-
ge(A.value, (
|
|
1006
|
-
name: `${
|
|
1007
|
-
fn: J((
|
|
1008
|
-
ee(
|
|
996
|
+
ge(A.value, (F) => ({
|
|
997
|
+
name: `${F.prop}-search`,
|
|
998
|
+
fn: J((O) => [
|
|
999
|
+
ee(p.$slots, `${F.prop}-search`, Me(Fe(O)), void 0, !0)
|
|
1009
1000
|
])
|
|
1010
1001
|
}))
|
|
1011
1002
|
]), 1032, ["modelValue", "columns", "option"])) : ue("", !0),
|
|
1012
|
-
re(a).toolbar ? (
|
|
1013
|
-
ee(
|
|
1003
|
+
re(a).toolbar ? (k(), Y("div", zo, [
|
|
1004
|
+
ee(p.$slots, "toolbar", {}, void 0, !0)
|
|
1014
1005
|
])) : ue("", !0),
|
|
1015
|
-
Yn((
|
|
1006
|
+
Yn((k(), H(Vo, {
|
|
1016
1007
|
ref_key: "jtTableRef",
|
|
1017
1008
|
ref: c,
|
|
1018
|
-
data:
|
|
1019
|
-
columns:
|
|
1020
|
-
option:
|
|
1021
|
-
"table-events":
|
|
1009
|
+
data: p.data,
|
|
1010
|
+
columns: p.columns,
|
|
1011
|
+
option: _.value,
|
|
1012
|
+
"table-events": p.tableEvents
|
|
1022
1013
|
}, je({ _: 2 }, [
|
|
1023
|
-
ge(
|
|
1024
|
-
name: `${
|
|
1025
|
-
fn: J((
|
|
1026
|
-
ee(
|
|
1014
|
+
ge(g.value, (F) => ({
|
|
1015
|
+
name: `${F.prop}-header`,
|
|
1016
|
+
fn: J((O) => [
|
|
1017
|
+
ee(p.$slots, `${F.prop}-header`, Me(Fe(O)), void 0, !0)
|
|
1027
1018
|
])
|
|
1028
1019
|
})),
|
|
1029
|
-
ge(
|
|
1030
|
-
name: `${
|
|
1031
|
-
fn: J((
|
|
1032
|
-
ee(
|
|
1020
|
+
ge(w.value, (F) => ({
|
|
1021
|
+
name: `${F.prop}-data`,
|
|
1022
|
+
fn: J((O) => [
|
|
1023
|
+
ee(p.$slots, `${F.prop}-data`, Me(Fe(O)), void 0, !0)
|
|
1033
1024
|
])
|
|
1034
1025
|
})),
|
|
1035
|
-
|
|
1026
|
+
_.value.menu ? {
|
|
1036
1027
|
name: "menu",
|
|
1037
|
-
fn: J((
|
|
1038
|
-
ee(
|
|
1028
|
+
fn: J((F) => [
|
|
1029
|
+
ee(p.$slots, "menu", Me(Fe(F)), void 0, !0)
|
|
1039
1030
|
]),
|
|
1040
1031
|
key: "0"
|
|
1041
1032
|
} : void 0
|
|
1042
1033
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1043
|
-
[
|
|
1034
|
+
[y, _.value.loading]
|
|
1044
1035
|
]),
|
|
1045
|
-
|
|
1036
|
+
b.value ? (k(), H(No, {
|
|
1046
1037
|
key: 2,
|
|
1047
1038
|
"current-page": i.value,
|
|
1048
|
-
"onUpdate:currentPage":
|
|
1039
|
+
"onUpdate:currentPage": N[1] || (N[1] = (F) => i.value = F),
|
|
1049
1040
|
"page-size": s.value,
|
|
1050
|
-
"onUpdate:pageSize":
|
|
1051
|
-
total:
|
|
1052
|
-
option:
|
|
1053
|
-
onPageChange:
|
|
1054
|
-
onSizeChange:
|
|
1041
|
+
"onUpdate:pageSize": N[2] || (N[2] = (F) => s.value = F),
|
|
1042
|
+
total: p.total,
|
|
1043
|
+
option: _.value,
|
|
1044
|
+
onPageChange: N[3] || (N[3] = (F) => p.$emit("page-change", F)),
|
|
1045
|
+
onSizeChange: N[4] || (N[4] = (F) => p.$emit("size-change", F))
|
|
1055
1046
|
}, null, 8, ["current-page", "page-size", "total", "option"])) : ue("", !0)
|
|
1056
1047
|
]);
|
|
1057
1048
|
};
|
|
1058
1049
|
}
|
|
1059
|
-
}),
|
|
1050
|
+
}), za = /* @__PURE__ */ ye(xo, [["__scopeId", "data-v-6df082c6"]]), qo = { class: "jt-page-header__title" }, Go = { key: 0 }, Ko = {
|
|
1060
1051
|
key: 0,
|
|
1061
1052
|
class: "jt-page-header__operates"
|
|
1062
1053
|
}, Yo = /* @__PURE__ */ ce({
|
|
@@ -1069,21 +1060,21 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1069
1060
|
},
|
|
1070
1061
|
emits: ["operate-click"],
|
|
1071
1062
|
setup(e, { emit: t }) {
|
|
1072
|
-
const n = e, o = t, r = Ee(), i =
|
|
1063
|
+
const n = e, o = t, r = Ee(), i = V(() => n.operates.length > 0 || !!r.operates);
|
|
1073
1064
|
function s(l, a) {
|
|
1074
1065
|
l.onClick?.(l, a), o("operate-click", l, a);
|
|
1075
1066
|
}
|
|
1076
|
-
return (l, a) => (
|
|
1067
|
+
return (l, a) => (k(), Y("div", oe({
|
|
1077
1068
|
class: ["jt-page-header", `jt-page-header--${l.type}`]
|
|
1078
1069
|
}, l.$attrs), [
|
|
1079
1070
|
te("div", qo, [
|
|
1080
1071
|
ee(l.$slots, "title", {}, () => [
|
|
1081
|
-
l.title ? (
|
|
1072
|
+
l.title ? (k(), Y("span", Go, fe(l.title), 1)) : ue("", !0)
|
|
1082
1073
|
], !0)
|
|
1083
1074
|
]),
|
|
1084
|
-
i.value ? (
|
|
1075
|
+
i.value ? (k(), Y("div", Ko, [
|
|
1085
1076
|
ee(l.$slots, "operates", { operates: l.operates }, () => [
|
|
1086
|
-
(
|
|
1077
|
+
(k(!0), Y(be, null, ge(l.operates, (c) => (k(), H(re(tt), oe({
|
|
1087
1078
|
key: c.key ?? c.label,
|
|
1088
1079
|
ref_for: !0
|
|
1089
1080
|
}, c.buttonProps, {
|
|
@@ -1094,7 +1085,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1094
1085
|
text: c.text,
|
|
1095
1086
|
link: c.link,
|
|
1096
1087
|
icon: c.icon,
|
|
1097
|
-
onClick: (
|
|
1088
|
+
onClick: (m) => s(c, m)
|
|
1098
1089
|
}), {
|
|
1099
1090
|
default: J(() => [
|
|
1100
1091
|
te("span", null, fe(c.label), 1)
|
|
@@ -1105,7 +1096,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1105
1096
|
])) : ue("", !0)
|
|
1106
1097
|
], 16));
|
|
1107
1098
|
}
|
|
1108
|
-
}),
|
|
1099
|
+
}), xa = /* @__PURE__ */ ye(Yo, [["__scopeId", "data-v-9fe9e823"]]);
|
|
1109
1100
|
function Uo(e, t) {
|
|
1110
1101
|
t = t || (() => "default-use-once-sync");
|
|
1111
1102
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -1148,105 +1139,105 @@ var an = { exports: {} };
|
|
|
1148
1139
|
(function(n, o) {
|
|
1149
1140
|
e.exports = o();
|
|
1150
1141
|
})(at, function() {
|
|
1151
|
-
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day",
|
|
1152
|
-
var
|
|
1153
|
-
return "[" +
|
|
1154
|
-
} },
|
|
1155
|
-
var u = String(
|
|
1156
|
-
return !u || u.length >=
|
|
1157
|
-
},
|
|
1158
|
-
var
|
|
1159
|
-
return (
|
|
1160
|
-
}, m: function
|
|
1161
|
-
if (
|
|
1162
|
-
var u = 12 * (
|
|
1163
|
-
return +(-(u + (
|
|
1164
|
-
}, a: function(
|
|
1165
|
-
return
|
|
1166
|
-
}, p: function(
|
|
1167
|
-
return { M:
|
|
1168
|
-
}, u: function(
|
|
1169
|
-
return
|
|
1170
|
-
} },
|
|
1171
|
-
|
|
1172
|
-
var
|
|
1173
|
-
return
|
|
1174
|
-
},
|
|
1175
|
-
var
|
|
1176
|
-
if (!
|
|
1177
|
-
if (typeof
|
|
1178
|
-
var
|
|
1179
|
-
|
|
1180
|
-
var
|
|
1181
|
-
if (!
|
|
1142
|
+
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", m = "week", _ = "month", $ = "quarter", b = "year", A = "date", g = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
1143
|
+
var D = ["th", "st", "nd", "rd"], B = R % 100;
|
|
1144
|
+
return "[" + R + (D[(B - 20) % 10] || D[B] || D[0]) + "]";
|
|
1145
|
+
} }, I = function(R, D, B) {
|
|
1146
|
+
var u = String(R);
|
|
1147
|
+
return !u || u.length >= D ? R : "" + Array(D + 1 - u.length).join(B) + R;
|
|
1148
|
+
}, h = { s: I, z: function(R) {
|
|
1149
|
+
var D = -R.utcOffset(), B = Math.abs(D), u = Math.floor(B / 60), v = B % 60;
|
|
1150
|
+
return (D <= 0 ? "+" : "-") + I(u, 2, "0") + ":" + I(v, 2, "0");
|
|
1151
|
+
}, m: function R(D, B) {
|
|
1152
|
+
if (D.date() < B.date()) return -R(B, D);
|
|
1153
|
+
var u = 12 * (B.year() - D.year()) + (B.month() - D.month()), v = D.clone().add(u, _), C = B - v < 0, L = D.clone().add(u + (C ? -1 : 1), _);
|
|
1154
|
+
return +(-(u + (B - v) / (C ? v - L : L - v)) || 0);
|
|
1155
|
+
}, a: function(R) {
|
|
1156
|
+
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
1157
|
+
}, p: function(R) {
|
|
1158
|
+
return { M: _, y: b, w: m, d: c, D: A, h: a, m: l, s, ms: i, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
1159
|
+
}, u: function(R) {
|
|
1160
|
+
return R === void 0;
|
|
1161
|
+
} }, T = "en", p = {};
|
|
1162
|
+
p[T] = j;
|
|
1163
|
+
var N = "$isDayjsObject", y = function(R) {
|
|
1164
|
+
return R instanceof ne || !(!R || !R[N]);
|
|
1165
|
+
}, F = function R(D, B, u) {
|
|
1166
|
+
var v;
|
|
1167
|
+
if (!D) return T;
|
|
1168
|
+
if (typeof D == "string") {
|
|
1169
|
+
var C = D.toLowerCase();
|
|
1170
|
+
p[C] && (v = C), B && (p[C] = B, v = C);
|
|
1171
|
+
var L = D.split("-");
|
|
1172
|
+
if (!v && L.length > 1) return R(L[0]);
|
|
1182
1173
|
} else {
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1174
|
+
var E = D.name;
|
|
1175
|
+
p[E] = D, v = E;
|
|
1185
1176
|
}
|
|
1186
|
-
return !u &&
|
|
1187
|
-
},
|
|
1188
|
-
if (
|
|
1189
|
-
var
|
|
1190
|
-
return
|
|
1191
|
-
},
|
|
1192
|
-
|
|
1193
|
-
return
|
|
1177
|
+
return !u && v && (T = v), v || !u && T;
|
|
1178
|
+
}, O = function(R, D) {
|
|
1179
|
+
if (y(R)) return R.clone();
|
|
1180
|
+
var B = typeof D == "object" ? D : {};
|
|
1181
|
+
return B.date = R, B.args = arguments, new ne(B);
|
|
1182
|
+
}, z = h;
|
|
1183
|
+
z.l = F, z.i = y, z.w = function(R, D) {
|
|
1184
|
+
return O(R, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
1194
1185
|
};
|
|
1195
1186
|
var ne = function() {
|
|
1196
|
-
function
|
|
1197
|
-
this.$L =
|
|
1187
|
+
function R(B) {
|
|
1188
|
+
this.$L = F(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[N] = !0;
|
|
1198
1189
|
}
|
|
1199
|
-
var
|
|
1200
|
-
return
|
|
1190
|
+
var D = R.prototype;
|
|
1191
|
+
return D.parse = function(B) {
|
|
1201
1192
|
this.$d = function(u) {
|
|
1202
|
-
var
|
|
1203
|
-
if (
|
|
1204
|
-
if (
|
|
1205
|
-
if (
|
|
1206
|
-
if (typeof
|
|
1207
|
-
var
|
|
1208
|
-
if (
|
|
1209
|
-
var
|
|
1210
|
-
return
|
|
1193
|
+
var v = u.date, C = u.utc;
|
|
1194
|
+
if (v === null) return /* @__PURE__ */ new Date(NaN);
|
|
1195
|
+
if (z.u(v)) return /* @__PURE__ */ new Date();
|
|
1196
|
+
if (v instanceof Date) return new Date(v);
|
|
1197
|
+
if (typeof v == "string" && !/Z$/i.test(v)) {
|
|
1198
|
+
var L = v.match(w);
|
|
1199
|
+
if (L) {
|
|
1200
|
+
var E = L[2] - 1 || 0, q = (L[7] || "0").substring(0, 3);
|
|
1201
|
+
return C ? new Date(Date.UTC(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q)) : new Date(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q);
|
|
1211
1202
|
}
|
|
1212
1203
|
}
|
|
1213
|
-
return new Date(
|
|
1214
|
-
}(
|
|
1215
|
-
},
|
|
1216
|
-
var
|
|
1217
|
-
this.$y =
|
|
1218
|
-
},
|
|
1219
|
-
return
|
|
1220
|
-
},
|
|
1221
|
-
return this.$d.toString() !==
|
|
1222
|
-
},
|
|
1223
|
-
var
|
|
1224
|
-
return this.startOf(u) <=
|
|
1225
|
-
},
|
|
1226
|
-
return
|
|
1227
|
-
},
|
|
1228
|
-
return this.endOf(u) <
|
|
1229
|
-
},
|
|
1230
|
-
return
|
|
1231
|
-
},
|
|
1204
|
+
return new Date(v);
|
|
1205
|
+
}(B), this.init();
|
|
1206
|
+
}, D.init = function() {
|
|
1207
|
+
var B = this.$d;
|
|
1208
|
+
this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
|
|
1209
|
+
}, D.$utils = function() {
|
|
1210
|
+
return z;
|
|
1211
|
+
}, D.isValid = function() {
|
|
1212
|
+
return this.$d.toString() !== g;
|
|
1213
|
+
}, D.isSame = function(B, u) {
|
|
1214
|
+
var v = O(B);
|
|
1215
|
+
return this.startOf(u) <= v && v <= this.endOf(u);
|
|
1216
|
+
}, D.isAfter = function(B, u) {
|
|
1217
|
+
return O(B) < this.startOf(u);
|
|
1218
|
+
}, D.isBefore = function(B, u) {
|
|
1219
|
+
return this.endOf(u) < O(B);
|
|
1220
|
+
}, D.$g = function(B, u, v) {
|
|
1221
|
+
return z.u(B) ? this[u] : this.set(v, B);
|
|
1222
|
+
}, D.unix = function() {
|
|
1232
1223
|
return Math.floor(this.valueOf() / 1e3);
|
|
1233
|
-
},
|
|
1224
|
+
}, D.valueOf = function() {
|
|
1234
1225
|
return this.$d.getTime();
|
|
1235
|
-
},
|
|
1236
|
-
var
|
|
1237
|
-
var Se =
|
|
1238
|
-
return
|
|
1226
|
+
}, D.startOf = function(B, u) {
|
|
1227
|
+
var v = this, C = !!z.u(u) || u, L = z.p(B), E = function(pe, de) {
|
|
1228
|
+
var Se = z.w(v.$u ? Date.UTC(v.$y, de, pe) : new Date(v.$y, de, pe), v);
|
|
1229
|
+
return C ? Se : Se.endOf(c);
|
|
1239
1230
|
}, q = function(pe, de) {
|
|
1240
|
-
return
|
|
1231
|
+
return z.w(v.toDate()[pe].apply(v.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), v);
|
|
1241
1232
|
}, U = this.$W, G = this.$M, X = this.$D, P = "set" + (this.$u ? "UTC" : "");
|
|
1242
|
-
switch (
|
|
1243
|
-
case
|
|
1244
|
-
return
|
|
1245
|
-
case
|
|
1246
|
-
return
|
|
1247
|
-
case
|
|
1233
|
+
switch (L) {
|
|
1234
|
+
case b:
|
|
1235
|
+
return C ? E(1, 0) : E(31, 11);
|
|
1236
|
+
case _:
|
|
1237
|
+
return C ? E(1, G) : E(0, G + 1);
|
|
1238
|
+
case m:
|
|
1248
1239
|
var Z = this.$locale().weekStart || 0, ae = (U < Z ? U + 7 : U) - Z;
|
|
1249
|
-
return
|
|
1240
|
+
return E(C ? X - ae : X + (6 - ae), G);
|
|
1250
1241
|
case c:
|
|
1251
1242
|
case A:
|
|
1252
1243
|
return q(P + "Hours", 0);
|
|
@@ -1259,164 +1250,164 @@ var an = { exports: {} };
|
|
|
1259
1250
|
default:
|
|
1260
1251
|
return this.clone();
|
|
1261
1252
|
}
|
|
1262
|
-
},
|
|
1263
|
-
return this.startOf(
|
|
1264
|
-
},
|
|
1265
|
-
var
|
|
1266
|
-
if (
|
|
1253
|
+
}, D.endOf = function(B) {
|
|
1254
|
+
return this.startOf(B, !1);
|
|
1255
|
+
}, D.$set = function(B, u) {
|
|
1256
|
+
var v, C = z.p(B), L = "set" + (this.$u ? "UTC" : ""), E = (v = {}, v[c] = L + "Date", v[A] = L + "Date", v[_] = L + "Month", v[b] = L + "FullYear", v[a] = L + "Hours", v[l] = L + "Minutes", v[s] = L + "Seconds", v[i] = L + "Milliseconds", v)[C], q = C === c ? this.$D + (u - this.$W) : u;
|
|
1257
|
+
if (C === _ || C === b) {
|
|
1267
1258
|
var U = this.clone().set(A, 1);
|
|
1268
|
-
U.$d[
|
|
1269
|
-
} else
|
|
1259
|
+
U.$d[E](q), U.init(), this.$d = U.set(A, Math.min(this.$D, U.daysInMonth())).$d;
|
|
1260
|
+
} else E && this.$d[E](q);
|
|
1270
1261
|
return this.init(), this;
|
|
1271
|
-
},
|
|
1272
|
-
return this.clone().$set(
|
|
1273
|
-
},
|
|
1274
|
-
return this[
|
|
1275
|
-
},
|
|
1276
|
-
var
|
|
1277
|
-
|
|
1278
|
-
var
|
|
1279
|
-
var X =
|
|
1280
|
-
return
|
|
1262
|
+
}, D.set = function(B, u) {
|
|
1263
|
+
return this.clone().$set(B, u);
|
|
1264
|
+
}, D.get = function(B) {
|
|
1265
|
+
return this[z.p(B)]();
|
|
1266
|
+
}, D.add = function(B, u) {
|
|
1267
|
+
var v, C = this;
|
|
1268
|
+
B = Number(B);
|
|
1269
|
+
var L = z.p(u), E = function(G) {
|
|
1270
|
+
var X = O(C);
|
|
1271
|
+
return z.w(X.date(X.date() + Math.round(G * B)), C);
|
|
1281
1272
|
};
|
|
1282
|
-
if (
|
|
1283
|
-
if (
|
|
1284
|
-
if (
|
|
1285
|
-
if (
|
|
1286
|
-
var q = (
|
|
1287
|
-
return
|
|
1288
|
-
},
|
|
1289
|
-
return this.add(-1 *
|
|
1290
|
-
},
|
|
1291
|
-
var u = this,
|
|
1292
|
-
if (!this.isValid()) return
|
|
1293
|
-
var
|
|
1294
|
-
return de && (de[Se] || de(u,
|
|
1273
|
+
if (L === _) return this.set(_, this.$M + B);
|
|
1274
|
+
if (L === b) return this.set(b, this.$y + B);
|
|
1275
|
+
if (L === c) return E(1);
|
|
1276
|
+
if (L === m) return E(7);
|
|
1277
|
+
var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1, U = this.$d.getTime() + B * q;
|
|
1278
|
+
return z.w(U, this);
|
|
1279
|
+
}, D.subtract = function(B, u) {
|
|
1280
|
+
return this.add(-1 * B, u);
|
|
1281
|
+
}, D.format = function(B) {
|
|
1282
|
+
var u = this, v = this.$locale();
|
|
1283
|
+
if (!this.isValid()) return v.invalidDate || g;
|
|
1284
|
+
var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, U = this.$M, G = v.weekdays, X = v.months, P = v.meridiem, Z = function(de, Se, Oe, Ie) {
|
|
1285
|
+
return de && (de[Se] || de(u, C)) || Oe[Se].slice(0, Ie);
|
|
1295
1286
|
}, ae = function(de) {
|
|
1296
|
-
return
|
|
1287
|
+
return z.s(E % 12 || 12, de, "0");
|
|
1297
1288
|
}, pe = P || function(de, Se, Oe) {
|
|
1298
1289
|
var Ie = de < 12 ? "AM" : "PM";
|
|
1299
1290
|
return Oe ? Ie.toLowerCase() : Ie;
|
|
1300
1291
|
};
|
|
1301
|
-
return
|
|
1292
|
+
return C.replace(S, function(de, Se) {
|
|
1302
1293
|
return Se || function(Oe) {
|
|
1303
1294
|
switch (Oe) {
|
|
1304
1295
|
case "YY":
|
|
1305
1296
|
return String(u.$y).slice(-2);
|
|
1306
1297
|
case "YYYY":
|
|
1307
|
-
return
|
|
1298
|
+
return z.s(u.$y, 4, "0");
|
|
1308
1299
|
case "M":
|
|
1309
1300
|
return U + 1;
|
|
1310
1301
|
case "MM":
|
|
1311
|
-
return
|
|
1302
|
+
return z.s(U + 1, 2, "0");
|
|
1312
1303
|
case "MMM":
|
|
1313
|
-
return Z(
|
|
1304
|
+
return Z(v.monthsShort, U, X, 3);
|
|
1314
1305
|
case "MMMM":
|
|
1315
1306
|
return Z(X, U);
|
|
1316
1307
|
case "D":
|
|
1317
1308
|
return u.$D;
|
|
1318
1309
|
case "DD":
|
|
1319
|
-
return
|
|
1310
|
+
return z.s(u.$D, 2, "0");
|
|
1320
1311
|
case "d":
|
|
1321
1312
|
return String(u.$W);
|
|
1322
1313
|
case "dd":
|
|
1323
|
-
return Z(
|
|
1314
|
+
return Z(v.weekdaysMin, u.$W, G, 2);
|
|
1324
1315
|
case "ddd":
|
|
1325
|
-
return Z(
|
|
1316
|
+
return Z(v.weekdaysShort, u.$W, G, 3);
|
|
1326
1317
|
case "dddd":
|
|
1327
1318
|
return G[u.$W];
|
|
1328
1319
|
case "H":
|
|
1329
|
-
return String(
|
|
1320
|
+
return String(E);
|
|
1330
1321
|
case "HH":
|
|
1331
|
-
return
|
|
1322
|
+
return z.s(E, 2, "0");
|
|
1332
1323
|
case "h":
|
|
1333
1324
|
return ae(1);
|
|
1334
1325
|
case "hh":
|
|
1335
1326
|
return ae(2);
|
|
1336
1327
|
case "a":
|
|
1337
|
-
return pe(
|
|
1328
|
+
return pe(E, q, !0);
|
|
1338
1329
|
case "A":
|
|
1339
|
-
return pe(
|
|
1330
|
+
return pe(E, q, !1);
|
|
1340
1331
|
case "m":
|
|
1341
1332
|
return String(q);
|
|
1342
1333
|
case "mm":
|
|
1343
|
-
return
|
|
1334
|
+
return z.s(q, 2, "0");
|
|
1344
1335
|
case "s":
|
|
1345
1336
|
return String(u.$s);
|
|
1346
1337
|
case "ss":
|
|
1347
|
-
return
|
|
1338
|
+
return z.s(u.$s, 2, "0");
|
|
1348
1339
|
case "SSS":
|
|
1349
|
-
return
|
|
1340
|
+
return z.s(u.$ms, 3, "0");
|
|
1350
1341
|
case "Z":
|
|
1351
|
-
return
|
|
1342
|
+
return L;
|
|
1352
1343
|
}
|
|
1353
1344
|
return null;
|
|
1354
|
-
}(de) ||
|
|
1345
|
+
}(de) || L.replace(":", "");
|
|
1355
1346
|
});
|
|
1356
|
-
},
|
|
1347
|
+
}, D.utcOffset = function() {
|
|
1357
1348
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1358
|
-
},
|
|
1359
|
-
var
|
|
1360
|
-
return
|
|
1349
|
+
}, D.diff = function(B, u, v) {
|
|
1350
|
+
var C, L = this, E = z.p(u), q = O(B), U = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
|
|
1351
|
+
return z.m(L, q);
|
|
1361
1352
|
};
|
|
1362
|
-
switch (
|
|
1363
|
-
case
|
|
1364
|
-
|
|
1353
|
+
switch (E) {
|
|
1354
|
+
case b:
|
|
1355
|
+
C = X() / 12;
|
|
1365
1356
|
break;
|
|
1366
|
-
case
|
|
1367
|
-
|
|
1357
|
+
case _:
|
|
1358
|
+
C = X();
|
|
1368
1359
|
break;
|
|
1369
|
-
case
|
|
1370
|
-
|
|
1360
|
+
case $:
|
|
1361
|
+
C = X() / 3;
|
|
1371
1362
|
break;
|
|
1372
|
-
case
|
|
1373
|
-
|
|
1363
|
+
case m:
|
|
1364
|
+
C = (G - U) / 6048e5;
|
|
1374
1365
|
break;
|
|
1375
1366
|
case c:
|
|
1376
|
-
|
|
1367
|
+
C = (G - U) / 864e5;
|
|
1377
1368
|
break;
|
|
1378
1369
|
case a:
|
|
1379
|
-
|
|
1370
|
+
C = G / r;
|
|
1380
1371
|
break;
|
|
1381
1372
|
case l:
|
|
1382
|
-
|
|
1373
|
+
C = G / o;
|
|
1383
1374
|
break;
|
|
1384
1375
|
case s:
|
|
1385
|
-
|
|
1376
|
+
C = G / n;
|
|
1386
1377
|
break;
|
|
1387
1378
|
default:
|
|
1388
|
-
|
|
1379
|
+
C = G;
|
|
1389
1380
|
}
|
|
1390
|
-
return
|
|
1391
|
-
},
|
|
1392
|
-
return this.endOf(
|
|
1393
|
-
},
|
|
1394
|
-
return
|
|
1395
|
-
},
|
|
1396
|
-
if (!
|
|
1397
|
-
var
|
|
1398
|
-
return
|
|
1399
|
-
},
|
|
1400
|
-
return
|
|
1401
|
-
},
|
|
1381
|
+
return v ? C : z.a(C);
|
|
1382
|
+
}, D.daysInMonth = function() {
|
|
1383
|
+
return this.endOf(_).$D;
|
|
1384
|
+
}, D.$locale = function() {
|
|
1385
|
+
return p[this.$L];
|
|
1386
|
+
}, D.locale = function(B, u) {
|
|
1387
|
+
if (!B) return this.$L;
|
|
1388
|
+
var v = this.clone(), C = F(B, u, !0);
|
|
1389
|
+
return C && (v.$L = C), v;
|
|
1390
|
+
}, D.clone = function() {
|
|
1391
|
+
return z.w(this.$d, this);
|
|
1392
|
+
}, D.toDate = function() {
|
|
1402
1393
|
return new Date(this.valueOf());
|
|
1403
|
-
},
|
|
1394
|
+
}, D.toJSON = function() {
|
|
1404
1395
|
return this.isValid() ? this.toISOString() : null;
|
|
1405
|
-
},
|
|
1396
|
+
}, D.toISOString = function() {
|
|
1406
1397
|
return this.$d.toISOString();
|
|
1407
|
-
},
|
|
1398
|
+
}, D.toString = function() {
|
|
1408
1399
|
return this.$d.toUTCString();
|
|
1409
|
-
},
|
|
1410
|
-
}(),
|
|
1411
|
-
return
|
|
1412
|
-
|
|
1413
|
-
return this.$g(
|
|
1400
|
+
}, R;
|
|
1401
|
+
}(), x = ne.prototype;
|
|
1402
|
+
return O.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", _], ["$y", b], ["$D", A]].forEach(function(R) {
|
|
1403
|
+
x[R[1]] = function(D) {
|
|
1404
|
+
return this.$g(D, R[0], R[1]);
|
|
1414
1405
|
};
|
|
1415
|
-
}),
|
|
1416
|
-
return
|
|
1417
|
-
},
|
|
1418
|
-
return
|
|
1419
|
-
},
|
|
1406
|
+
}), O.extend = function(R, D) {
|
|
1407
|
+
return R.$i || (R(D, ne, O), R.$i = !0), O;
|
|
1408
|
+
}, O.locale = F, O.isDayjs = y, O.unix = function(R) {
|
|
1409
|
+
return O(1e3 * R);
|
|
1410
|
+
}, O.en = p[T], O.Ls = p, O.p = {}, O;
|
|
1420
1411
|
});
|
|
1421
1412
|
})(an);
|
|
1422
1413
|
var Ho = an.exports;
|
|
@@ -1426,118 +1417,118 @@ var sn = { exports: {} };
|
|
|
1426
1417
|
(function(n, o) {
|
|
1427
1418
|
e.exports = o();
|
|
1428
1419
|
})(at, function() {
|
|
1429
|
-
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, a = {}, c = function(
|
|
1430
|
-
return (
|
|
1431
|
-
},
|
|
1432
|
-
return function(
|
|
1433
|
-
this[
|
|
1420
|
+
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, a = {}, c = function(w) {
|
|
1421
|
+
return (w = +w) + (w > 68 ? 1900 : 2e3);
|
|
1422
|
+
}, m = function(w) {
|
|
1423
|
+
return function(S) {
|
|
1424
|
+
this[w] = +S;
|
|
1434
1425
|
};
|
|
1435
|
-
},
|
|
1436
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
1437
|
-
if (!
|
|
1438
|
-
var
|
|
1439
|
-
return
|
|
1440
|
-
}(
|
|
1441
|
-
}],
|
|
1442
|
-
var
|
|
1443
|
-
return
|
|
1444
|
-
},
|
|
1445
|
-
var
|
|
1446
|
-
if (
|
|
1447
|
-
for (var
|
|
1448
|
-
|
|
1426
|
+
}, _ = [/[+-]\d\d:?(\d\d)?|Z/, function(w) {
|
|
1427
|
+
(this.zone || (this.zone = {})).offset = function(S) {
|
|
1428
|
+
if (!S || S === "Z") return 0;
|
|
1429
|
+
var j = S.match(/([+-]|\d\d)/g), I = 60 * j[1] + (+j[2] || 0);
|
|
1430
|
+
return I === 0 ? 0 : j[0] === "+" ? -I : I;
|
|
1431
|
+
}(w);
|
|
1432
|
+
}], $ = function(w) {
|
|
1433
|
+
var S = a[w];
|
|
1434
|
+
return S && (S.indexOf ? S : S.s.concat(S.f));
|
|
1435
|
+
}, b = function(w, S) {
|
|
1436
|
+
var j, I = a.meridiem;
|
|
1437
|
+
if (I) {
|
|
1438
|
+
for (var h = 1; h <= 24; h += 1) if (w.indexOf(I(h, 0, S)) > -1) {
|
|
1439
|
+
j = h > 12;
|
|
1449
1440
|
break;
|
|
1450
1441
|
}
|
|
1451
|
-
} else
|
|
1452
|
-
return
|
|
1453
|
-
}, A = { A: [l, function(
|
|
1454
|
-
this.afternoon =
|
|
1455
|
-
}], a: [l, function(
|
|
1456
|
-
this.afternoon =
|
|
1457
|
-
}], Q: [r, function(
|
|
1458
|
-
this.month = 3 * (
|
|
1459
|
-
}], S: [r, function(
|
|
1460
|
-
this.milliseconds = 100 * +
|
|
1461
|
-
}], SS: [i, function(
|
|
1462
|
-
this.milliseconds = 10 * +
|
|
1463
|
-
}], SSS: [/\d{3}/, function(
|
|
1464
|
-
this.milliseconds = +
|
|
1465
|
-
}], s: [s,
|
|
1466
|
-
var
|
|
1467
|
-
if (this.day =
|
|
1468
|
-
}], w: [s,
|
|
1469
|
-
var
|
|
1470
|
-
return
|
|
1471
|
-
})).indexOf(
|
|
1472
|
-
if (
|
|
1473
|
-
this.month =
|
|
1474
|
-
}], MMMM: [l, function(
|
|
1475
|
-
var
|
|
1476
|
-
if (
|
|
1477
|
-
this.month =
|
|
1478
|
-
}], Y: [/[+-]?\d+/,
|
|
1479
|
-
this.year = c(
|
|
1480
|
-
}], YYYY: [/\d{4}/,
|
|
1481
|
-
function
|
|
1482
|
-
var
|
|
1483
|
-
|
|
1484
|
-
for (var
|
|
1485
|
-
var
|
|
1486
|
-
return
|
|
1487
|
-
return
|
|
1442
|
+
} else j = w === (S ? "pm" : "PM");
|
|
1443
|
+
return j;
|
|
1444
|
+
}, A = { A: [l, function(w) {
|
|
1445
|
+
this.afternoon = b(w, !1);
|
|
1446
|
+
}], a: [l, function(w) {
|
|
1447
|
+
this.afternoon = b(w, !0);
|
|
1448
|
+
}], Q: [r, function(w) {
|
|
1449
|
+
this.month = 3 * (w - 1) + 1;
|
|
1450
|
+
}], S: [r, function(w) {
|
|
1451
|
+
this.milliseconds = 100 * +w;
|
|
1452
|
+
}], SS: [i, function(w) {
|
|
1453
|
+
this.milliseconds = 10 * +w;
|
|
1454
|
+
}], SSS: [/\d{3}/, function(w) {
|
|
1455
|
+
this.milliseconds = +w;
|
|
1456
|
+
}], s: [s, m("seconds")], ss: [s, m("seconds")], m: [s, m("minutes")], mm: [s, m("minutes")], H: [s, m("hours")], h: [s, m("hours")], HH: [s, m("hours")], hh: [s, m("hours")], D: [s, m("day")], DD: [i, m("day")], Do: [l, function(w) {
|
|
1457
|
+
var S = a.ordinal, j = w.match(/\d+/);
|
|
1458
|
+
if (this.day = j[0], S) for (var I = 1; I <= 31; I += 1) S(I).replace(/\[|\]/g, "") === w && (this.day = I);
|
|
1459
|
+
}], w: [s, m("week")], ww: [i, m("week")], M: [s, m("month")], MM: [i, m("month")], MMM: [l, function(w) {
|
|
1460
|
+
var S = $("months"), j = ($("monthsShort") || S.map(function(I) {
|
|
1461
|
+
return I.slice(0, 3);
|
|
1462
|
+
})).indexOf(w) + 1;
|
|
1463
|
+
if (j < 1) throw new Error();
|
|
1464
|
+
this.month = j % 12 || j;
|
|
1465
|
+
}], MMMM: [l, function(w) {
|
|
1466
|
+
var S = $("months").indexOf(w) + 1;
|
|
1467
|
+
if (S < 1) throw new Error();
|
|
1468
|
+
this.month = S % 12 || S;
|
|
1469
|
+
}], Y: [/[+-]?\d+/, m("year")], YY: [i, function(w) {
|
|
1470
|
+
this.year = c(w);
|
|
1471
|
+
}], YYYY: [/\d{4}/, m("year")], Z: _, ZZ: _ };
|
|
1472
|
+
function g(w) {
|
|
1473
|
+
var S, j;
|
|
1474
|
+
S = w, j = a && a.formats;
|
|
1475
|
+
for (var I = (w = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, z, ne) {
|
|
1476
|
+
var x = ne && ne.toUpperCase();
|
|
1477
|
+
return z || j[ne] || n[ne] || j[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, D, B) {
|
|
1478
|
+
return D || B.slice(1);
|
|
1488
1479
|
});
|
|
1489
|
-
})).match(o),
|
|
1490
|
-
var
|
|
1491
|
-
|
|
1480
|
+
})).match(o), h = I.length, T = 0; T < h; T += 1) {
|
|
1481
|
+
var p = I[T], N = A[p], y = N && N[0], F = N && N[1];
|
|
1482
|
+
I[T] = F ? { regex: y, parser: F } : p.replace(/^\[|\]$/g, "");
|
|
1492
1483
|
}
|
|
1493
|
-
return function(
|
|
1494
|
-
for (var
|
|
1495
|
-
var
|
|
1496
|
-
if (typeof
|
|
1484
|
+
return function(O) {
|
|
1485
|
+
for (var z = {}, ne = 0, x = 0; ne < h; ne += 1) {
|
|
1486
|
+
var R = I[ne];
|
|
1487
|
+
if (typeof R == "string") x += R.length;
|
|
1497
1488
|
else {
|
|
1498
|
-
var
|
|
1499
|
-
|
|
1489
|
+
var D = R.regex, B = R.parser, u = O.slice(x), v = D.exec(u)[0];
|
|
1490
|
+
B.call(z, v), O = O.replace(v, "");
|
|
1500
1491
|
}
|
|
1501
1492
|
}
|
|
1502
|
-
return function(
|
|
1503
|
-
var
|
|
1504
|
-
if (
|
|
1505
|
-
var
|
|
1506
|
-
|
|
1493
|
+
return function(C) {
|
|
1494
|
+
var L = C.afternoon;
|
|
1495
|
+
if (L !== void 0) {
|
|
1496
|
+
var E = C.hours;
|
|
1497
|
+
L ? E < 12 && (C.hours += 12) : E === 12 && (C.hours = 0), delete C.afternoon;
|
|
1507
1498
|
}
|
|
1508
|
-
}(
|
|
1499
|
+
}(z), z;
|
|
1509
1500
|
};
|
|
1510
1501
|
}
|
|
1511
|
-
return function(
|
|
1512
|
-
|
|
1513
|
-
var
|
|
1514
|
-
|
|
1515
|
-
var
|
|
1516
|
-
this.$u =
|
|
1517
|
-
var
|
|
1518
|
-
if (typeof
|
|
1519
|
-
var
|
|
1520
|
-
|
|
1502
|
+
return function(w, S, j) {
|
|
1503
|
+
j.p.customParseFormat = !0, w && w.parseTwoDigitYear && (c = w.parseTwoDigitYear);
|
|
1504
|
+
var I = S.prototype, h = I.parse;
|
|
1505
|
+
I.parse = function(T) {
|
|
1506
|
+
var p = T.date, N = T.utc, y = T.args;
|
|
1507
|
+
this.$u = N;
|
|
1508
|
+
var F = y[1];
|
|
1509
|
+
if (typeof F == "string") {
|
|
1510
|
+
var O = y[2] === !0, z = y[3] === !0, ne = O || z, x = y[2];
|
|
1511
|
+
z && (x = y[2]), a = this.$locale(), !O && x && (a = j.Ls[x]), this.$d = function(u, v, C, L) {
|
|
1521
1512
|
try {
|
|
1522
|
-
if (["x", "X"].indexOf(
|
|
1523
|
-
var
|
|
1524
|
-
q && !U || (
|
|
1525
|
-
var
|
|
1526
|
-
return pe ? new Date(Date.UTC(Ie,
|
|
1513
|
+
if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * u);
|
|
1514
|
+
var E = g(v)(u), q = E.year, U = E.month, G = E.day, X = E.hours, P = E.minutes, Z = E.seconds, ae = E.milliseconds, pe = E.zone, de = E.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || U ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), ze = 0;
|
|
1515
|
+
q && !U || (ze = U > 0 ? U - 1 : Se.getMonth());
|
|
1516
|
+
var xe, et = X || 0, qe = P || 0, f = Z || 0, d = ae || 0;
|
|
1517
|
+
return pe ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d + 60 * pe.offset * 1e3)) : C ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d)) : (xe = new Date(Ie, ze, Oe, et, qe, f, d), de && (xe = L(xe).week(de).toDate()), xe);
|
|
1527
1518
|
} catch {
|
|
1528
1519
|
return /* @__PURE__ */ new Date("");
|
|
1529
1520
|
}
|
|
1530
|
-
}(
|
|
1531
|
-
} else if (
|
|
1532
|
-
|
|
1533
|
-
var
|
|
1534
|
-
if (
|
|
1535
|
-
this.$d =
|
|
1521
|
+
}(p, F, N, j), this.init(), x && x !== !0 && (this.$L = this.locale(x).$L), ne && p != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
|
|
1522
|
+
} else if (F instanceof Array) for (var R = F.length, D = 1; D <= R; D += 1) {
|
|
1523
|
+
y[1] = F[D - 1];
|
|
1524
|
+
var B = j.apply(this, y);
|
|
1525
|
+
if (B.isValid()) {
|
|
1526
|
+
this.$d = B.$d, this.$L = B.$L, this.init();
|
|
1536
1527
|
break;
|
|
1537
1528
|
}
|
|
1538
|
-
|
|
1529
|
+
D === R && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1539
1530
|
}
|
|
1540
|
-
else
|
|
1531
|
+
else h.call(this, T);
|
|
1541
1532
|
};
|
|
1542
1533
|
};
|
|
1543
1534
|
});
|
|
@@ -1551,56 +1542,56 @@ var ln = { exports: {} };
|
|
|
1551
1542
|
})(at, function() {
|
|
1552
1543
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
|
|
1553
1544
|
return function(r, i, s) {
|
|
1554
|
-
var l, a = function(
|
|
1545
|
+
var l, a = function($, b, A) {
|
|
1555
1546
|
A === void 0 && (A = {});
|
|
1556
|
-
var
|
|
1557
|
-
|
|
1558
|
-
var
|
|
1559
|
-
return
|
|
1560
|
-
}(
|
|
1561
|
-
return
|
|
1562
|
-
}, c = function(
|
|
1563
|
-
for (var A = a(
|
|
1564
|
-
var
|
|
1565
|
-
|
|
1547
|
+
var g = new Date($), w = function(S, j) {
|
|
1548
|
+
j === void 0 && (j = {});
|
|
1549
|
+
var I = j.timeZoneName || "short", h = S + "|" + I, T = o[h];
|
|
1550
|
+
return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: S, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: I }), o[h] = T), T;
|
|
1551
|
+
}(b, A);
|
|
1552
|
+
return w.formatToParts(g);
|
|
1553
|
+
}, c = function($, b) {
|
|
1554
|
+
for (var A = a($, b), g = [], w = 0; w < A.length; w += 1) {
|
|
1555
|
+
var S = A[w], j = S.type, I = S.value, h = n[j];
|
|
1556
|
+
h >= 0 && (g[h] = parseInt(I, 10));
|
|
1566
1557
|
}
|
|
1567
|
-
var
|
|
1568
|
-
return (s.utc(
|
|
1569
|
-
},
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
var A,
|
|
1573
|
-
if (!Number(
|
|
1574
|
-
else if (A = s(
|
|
1575
|
-
var
|
|
1576
|
-
A = A.add(
|
|
1558
|
+
var T = g[3], p = T === 24 ? 0 : T, N = g[0] + "-" + g[1] + "-" + g[2] + " " + p + ":" + g[4] + ":" + g[5] + ":000", y = +$;
|
|
1559
|
+
return (s.utc(N).valueOf() - (y -= y % 1e3)) / 6e4;
|
|
1560
|
+
}, m = i.prototype;
|
|
1561
|
+
m.tz = function($, b) {
|
|
1562
|
+
$ === void 0 && ($ = l);
|
|
1563
|
+
var A, g = this.utcOffset(), w = this.toDate(), S = w.toLocaleString("en-US", { timeZone: $ }), j = Math.round((w - new Date(S)) / 1e3 / 60), I = 15 * -Math.round(w.getTimezoneOffset() / 15) - j;
|
|
1564
|
+
if (!Number(I)) A = this.utcOffset(0, b);
|
|
1565
|
+
else if (A = s(S, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(I, !0), b) {
|
|
1566
|
+
var h = A.utcOffset();
|
|
1567
|
+
A = A.add(g - h, "minute");
|
|
1577
1568
|
}
|
|
1578
|
-
return A.$x.$timezone =
|
|
1579
|
-
},
|
|
1580
|
-
var
|
|
1581
|
-
return
|
|
1569
|
+
return A.$x.$timezone = $, A;
|
|
1570
|
+
}, m.offsetName = function($) {
|
|
1571
|
+
var b = this.$x.$timezone || s.tz.guess(), A = a(this.valueOf(), b, { timeZoneName: $ }).find(function(g) {
|
|
1572
|
+
return g.type.toLowerCase() === "timezonename";
|
|
1582
1573
|
});
|
|
1583
1574
|
return A && A.value;
|
|
1584
1575
|
};
|
|
1585
|
-
var
|
|
1586
|
-
|
|
1587
|
-
if (!this.$x || !this.$x.$timezone) return
|
|
1576
|
+
var _ = m.startOf;
|
|
1577
|
+
m.startOf = function($, b) {
|
|
1578
|
+
if (!this.$x || !this.$x.$timezone) return _.call(this, $, b);
|
|
1588
1579
|
var A = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1589
|
-
return
|
|
1590
|
-
}, s.tz = function(
|
|
1591
|
-
var
|
|
1592
|
-
if (typeof
|
|
1593
|
-
var
|
|
1594
|
-
var
|
|
1595
|
-
if (
|
|
1596
|
-
var
|
|
1597
|
-
return
|
|
1598
|
-
}(s.utc(
|
|
1599
|
-
return
|
|
1580
|
+
return _.call(A, $, b).tz(this.$x.$timezone, !0);
|
|
1581
|
+
}, s.tz = function($, b, A) {
|
|
1582
|
+
var g = A && b, w = A || b || l, S = c(+s(), w);
|
|
1583
|
+
if (typeof $ != "string") return s($).tz(w);
|
|
1584
|
+
var j = function(p, N, y) {
|
|
1585
|
+
var F = p - 60 * N * 1e3, O = c(F, y);
|
|
1586
|
+
if (N === O) return [F, N];
|
|
1587
|
+
var z = c(F -= 60 * (O - N) * 1e3, y);
|
|
1588
|
+
return O === z ? [F, O] : [p - 60 * Math.min(O, z) * 1e3, Math.max(O, z)];
|
|
1589
|
+
}(s.utc($, g).valueOf(), S, w), I = j[0], h = j[1], T = s(I).utcOffset(h);
|
|
1590
|
+
return T.$x.$timezone = w, T;
|
|
1600
1591
|
}, s.tz.guess = function() {
|
|
1601
1592
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1602
|
-
}, s.tz.setDefault = function(
|
|
1603
|
-
l =
|
|
1593
|
+
}, s.tz.setDefault = function($) {
|
|
1594
|
+
l = $;
|
|
1604
1595
|
};
|
|
1605
1596
|
};
|
|
1606
1597
|
});
|
|
@@ -1615,51 +1606,51 @@ var cn = { exports: {} };
|
|
|
1615
1606
|
var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
1616
1607
|
return function(i, s, l) {
|
|
1617
1608
|
var a = s.prototype;
|
|
1618
|
-
l.utc = function(
|
|
1619
|
-
var
|
|
1620
|
-
return new s(
|
|
1621
|
-
}, a.utc = function(
|
|
1622
|
-
var
|
|
1623
|
-
return
|
|
1609
|
+
l.utc = function(g) {
|
|
1610
|
+
var w = { date: g, utc: !0, args: arguments };
|
|
1611
|
+
return new s(w);
|
|
1612
|
+
}, a.utc = function(g) {
|
|
1613
|
+
var w = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1614
|
+
return g ? w.add(this.utcOffset(), n) : w;
|
|
1624
1615
|
}, a.local = function() {
|
|
1625
1616
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1626
1617
|
};
|
|
1627
1618
|
var c = a.parse;
|
|
1628
|
-
a.parse = function(
|
|
1629
|
-
|
|
1619
|
+
a.parse = function(g) {
|
|
1620
|
+
g.utc && (this.$u = !0), this.$utils().u(g.$offset) || (this.$offset = g.$offset), c.call(this, g);
|
|
1630
1621
|
};
|
|
1631
|
-
var
|
|
1622
|
+
var m = a.init;
|
|
1632
1623
|
a.init = function() {
|
|
1633
1624
|
if (this.$u) {
|
|
1634
|
-
var
|
|
1635
|
-
this.$y =
|
|
1636
|
-
} else
|
|
1625
|
+
var g = this.$d;
|
|
1626
|
+
this.$y = g.getUTCFullYear(), this.$M = g.getUTCMonth(), this.$D = g.getUTCDate(), this.$W = g.getUTCDay(), this.$H = g.getUTCHours(), this.$m = g.getUTCMinutes(), this.$s = g.getUTCSeconds(), this.$ms = g.getUTCMilliseconds();
|
|
1627
|
+
} else m.call(this);
|
|
1637
1628
|
};
|
|
1638
|
-
var
|
|
1639
|
-
a.utcOffset = function(
|
|
1640
|
-
var
|
|
1641
|
-
if (
|
|
1642
|
-
if (typeof
|
|
1643
|
-
|
|
1644
|
-
var
|
|
1645
|
-
if (!
|
|
1646
|
-
var
|
|
1647
|
-
return
|
|
1648
|
-
}(
|
|
1649
|
-
var
|
|
1650
|
-
if (
|
|
1651
|
-
var
|
|
1652
|
-
if (
|
|
1653
|
-
var
|
|
1654
|
-
return (
|
|
1629
|
+
var _ = a.utcOffset;
|
|
1630
|
+
a.utcOffset = function(g, w) {
|
|
1631
|
+
var S = this.$utils().u;
|
|
1632
|
+
if (S(g)) return this.$u ? 0 : S(this.$offset) ? _.call(this) : this.$offset;
|
|
1633
|
+
if (typeof g == "string" && (g = function(T) {
|
|
1634
|
+
T === void 0 && (T = "");
|
|
1635
|
+
var p = T.match(o);
|
|
1636
|
+
if (!p) return null;
|
|
1637
|
+
var N = ("" + p[0]).match(r) || ["-", 0, 0], y = N[0], F = 60 * +N[1] + +N[2];
|
|
1638
|
+
return F === 0 ? 0 : y === "+" ? F : -F;
|
|
1639
|
+
}(g), g === null)) return this;
|
|
1640
|
+
var j = Math.abs(g) <= 16 ? 60 * g : g;
|
|
1641
|
+
if (j === 0) return this.utc(w);
|
|
1642
|
+
var I = this.clone();
|
|
1643
|
+
if (w) return I.$offset = j, I.$u = !1, I;
|
|
1644
|
+
var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1645
|
+
return (I = this.local().add(j + h, n)).$offset = j, I.$x.$localOffset = h, I;
|
|
1655
1646
|
};
|
|
1656
|
-
var
|
|
1657
|
-
a.format = function(
|
|
1658
|
-
var
|
|
1659
|
-
return
|
|
1647
|
+
var $ = a.format;
|
|
1648
|
+
a.format = function(g) {
|
|
1649
|
+
var w = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
1650
|
+
return $.call(this, w);
|
|
1660
1651
|
}, a.valueOf = function() {
|
|
1661
|
-
var
|
|
1662
|
-
return this.$d.valueOf() - 6e4 *
|
|
1652
|
+
var g = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
1653
|
+
return this.$d.valueOf() - 6e4 * g;
|
|
1663
1654
|
}, a.isUTC = function() {
|
|
1664
1655
|
return !!this.$u;
|
|
1665
1656
|
}, a.toISOString = function() {
|
|
@@ -1667,15 +1658,15 @@ var cn = { exports: {} };
|
|
|
1667
1658
|
}, a.toString = function() {
|
|
1668
1659
|
return this.toDate().toUTCString();
|
|
1669
1660
|
};
|
|
1670
|
-
var
|
|
1671
|
-
a.toDate = function(
|
|
1672
|
-
return
|
|
1661
|
+
var b = a.toDate;
|
|
1662
|
+
a.toDate = function(g) {
|
|
1663
|
+
return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : b.call(this);
|
|
1673
1664
|
};
|
|
1674
1665
|
var A = a.diff;
|
|
1675
|
-
a.diff = function(
|
|
1676
|
-
if (
|
|
1677
|
-
var
|
|
1678
|
-
return A.call(
|
|
1666
|
+
a.diff = function(g, w, S) {
|
|
1667
|
+
if (g && this.$u === g.$u) return A.call(this, g, w, S);
|
|
1668
|
+
var j = this.local(), I = l(g).local();
|
|
1669
|
+
return A.call(j, I, w, S);
|
|
1679
1670
|
};
|
|
1680
1671
|
};
|
|
1681
1672
|
});
|
|
@@ -1685,7 +1676,7 @@ const er = /* @__PURE__ */ st(Xo);
|
|
|
1685
1676
|
_t.extend(er);
|
|
1686
1677
|
_t.extend(Qo);
|
|
1687
1678
|
_t.extend(Wo);
|
|
1688
|
-
const
|
|
1679
|
+
const ht = /\$\{([^}]+)\}/g;
|
|
1689
1680
|
function Re(e) {
|
|
1690
1681
|
if (!e)
|
|
1691
1682
|
return [];
|
|
@@ -1706,11 +1697,11 @@ function tr(e) {
|
|
|
1706
1697
|
}
|
|
1707
1698
|
function yt(e, t) {
|
|
1708
1699
|
if (typeof e == "string") {
|
|
1709
|
-
|
|
1710
|
-
let n =
|
|
1700
|
+
ht.lastIndex = 0;
|
|
1701
|
+
let n = ht.exec(e);
|
|
1711
1702
|
for (; n !== null; ) {
|
|
1712
1703
|
const o = String(n[1] ?? "").trim();
|
|
1713
|
-
o && t.add(o), n =
|
|
1704
|
+
o && t.add(o), n = ht.exec(e);
|
|
1714
1705
|
}
|
|
1715
1706
|
return;
|
|
1716
1707
|
}
|
|
@@ -1781,7 +1772,7 @@ function rr(e) {
|
|
|
1781
1772
|
e.raw?.type,
|
|
1782
1773
|
e.raw?.fieldType,
|
|
1783
1774
|
e.raw?.frontInputType
|
|
1784
|
-
].some((t) =>
|
|
1775
|
+
].some((t) => vn(t) === "attach");
|
|
1785
1776
|
}
|
|
1786
1777
|
function pn(e, t, n = "-") {
|
|
1787
1778
|
return !rr(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, i) => ar(r, i, n)).filter((r) => !!r);
|
|
@@ -1807,8 +1798,8 @@ function ar(e, t, n) {
|
|
|
1807
1798
|
if (e && typeof e == "object") {
|
|
1808
1799
|
const o = e, r = sr(o, n), i = De(o.url);
|
|
1809
1800
|
if (i) {
|
|
1810
|
-
const l = { url: i }, a = De(o.name), c = De(o.mimeType),
|
|
1811
|
-
return a && (l.name = a), c && (l.mimeType = c),
|
|
1801
|
+
const l = { url: i }, a = De(o.name), c = De(o.mimeType), m = De(o.extension);
|
|
1802
|
+
return a && (l.name = a), c && (l.mimeType = c), m && (l.extension = m), {
|
|
1812
1803
|
key: String(t),
|
|
1813
1804
|
text: r,
|
|
1814
1805
|
action: {
|
|
@@ -1884,9 +1875,9 @@ function mn(e) {
|
|
|
1884
1875
|
]);
|
|
1885
1876
|
}
|
|
1886
1877
|
function cr(e) {
|
|
1887
|
-
return Array.from(new Set(e.map((t) =>
|
|
1878
|
+
return Array.from(new Set(e.map((t) => vn(t)).filter(Boolean)));
|
|
1888
1879
|
}
|
|
1889
|
-
function
|
|
1880
|
+
function vn(e) {
|
|
1890
1881
|
return String(e ?? "").trim().toLowerCase();
|
|
1891
1882
|
}
|
|
1892
1883
|
function ur(e, t, n) {
|
|
@@ -1944,10 +1935,10 @@ function jt(e) {
|
|
|
1944
1935
|
treeNodes: o
|
|
1945
1936
|
};
|
|
1946
1937
|
}
|
|
1947
|
-
function
|
|
1938
|
+
function hn(e, t, n) {
|
|
1948
1939
|
return e.map((o) => o.key === t || o.tagId === t || o.id === t ? { ...o, children: n, loaded: !0 } : {
|
|
1949
1940
|
...o,
|
|
1950
|
-
children:
|
|
1941
|
+
children: hn(o.children, t, n)
|
|
1951
1942
|
});
|
|
1952
1943
|
}
|
|
1953
1944
|
function mr(e, t = {}, n = null) {
|
|
@@ -1964,10 +1955,10 @@ function mr(e, t = {}, n = null) {
|
|
|
1964
1955
|
raw: e
|
|
1965
1956
|
};
|
|
1966
1957
|
}
|
|
1967
|
-
function
|
|
1958
|
+
function vr(e) {
|
|
1968
1959
|
return e.multRow || e.htmlDisplay === "T" ? "table" : "form";
|
|
1969
1960
|
}
|
|
1970
|
-
function
|
|
1961
|
+
function hr(e, t = {}) {
|
|
1971
1962
|
const n = e.renderType === "table" ? e.rows.map((a) => bt(St(a))) : [bt(St(e.model))], o = le(e.operationInfo), r = le(o.editInfoSet), i = le(r.params), s = le(o.queryInfoSet), l = le(s.params);
|
|
1972
1963
|
return {
|
|
1973
1964
|
...t,
|
|
@@ -2015,18 +2006,18 @@ function gr(e, t, n) {
|
|
|
2015
2006
|
return o.length > 0 ? o.map((r) => Nt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [Nt(e, t, n, !0)] : [];
|
|
2016
2007
|
}
|
|
2017
2008
|
function Nt(e, t, n, o) {
|
|
2018
|
-
const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l =
|
|
2019
|
-
r.tagId ?? r.infTagId ??
|
|
2020
|
-
),
|
|
2021
|
-
key:
|
|
2022
|
-
id:
|
|
2023
|
-
setId:
|
|
2024
|
-
code:
|
|
2025
|
-
tagId:
|
|
2026
|
-
requestTagId:
|
|
2027
|
-
ownerNodeKey:
|
|
2028
|
-
infSetId:
|
|
2029
|
-
title: i.name || Q(r.name ?? n?.tagName ??
|
|
2009
|
+
const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = vr(i), a = wr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : bn(s), m = le(r.tag), _ = Q(
|
|
2010
|
+
r.tagId ?? r.infTagId ?? m.tagId ?? m.infTagId ?? i.raw.tagId ?? i.raw.infTagId
|
|
2011
|
+
), $ = Q(t.tagId ?? n?.tagId), b = Q(n?.key), A = o ? t.infSetId ?? n?.infSetId : void 0, g = o ? t.setId : void 0, w = o ? n?.code : void 0, S = i.setId || Q(r.setId), j = Q(r.infSetId) || S || Q(A), I = S || Q(g ?? j), h = i.code || Q(r.code ?? w ?? I), T = I || h || j || _, p = {
|
|
2012
|
+
key: T,
|
|
2013
|
+
id: T,
|
|
2014
|
+
setId: I,
|
|
2015
|
+
code: h,
|
|
2016
|
+
tagId: _,
|
|
2017
|
+
requestTagId: $ || void 0,
|
|
2018
|
+
ownerNodeKey: b || void 0,
|
|
2019
|
+
infSetId: j,
|
|
2020
|
+
title: i.name || Q(r.name ?? n?.tagName ?? T),
|
|
2030
2021
|
renderType: l,
|
|
2031
2022
|
mark: i,
|
|
2032
2023
|
fields: s,
|
|
@@ -2035,7 +2026,7 @@ function Nt(e, t, n, o) {
|
|
|
2035
2026
|
operationInfo: ut(t.operationInfo ?? r.operationInfo),
|
|
2036
2027
|
raw: r
|
|
2037
2028
|
};
|
|
2038
|
-
return
|
|
2029
|
+
return p.renderType === "form" && a.length === 0 && (p.rows = [{ ...c, __rowKey: `${T}-0` }]), p;
|
|
2039
2030
|
}
|
|
2040
2031
|
function yr(e) {
|
|
2041
2032
|
const t = le(e), n = Q(t.htmlDisplay || "F");
|
|
@@ -2075,8 +2066,8 @@ function Sr(e, t) {
|
|
|
2075
2066
|
isRequired: $e(n.isRequired),
|
|
2076
2067
|
disabled: n.disabled === void 0 ? void 0 : $e(n.disabled),
|
|
2077
2068
|
span: Mn(n.span ?? n.colSpan),
|
|
2078
|
-
width:
|
|
2079
|
-
minWidth:
|
|
2069
|
+
width: zt(n.width),
|
|
2070
|
+
minWidth: zt(n.minWidth),
|
|
2080
2071
|
placeholder: ie(n.placeholder),
|
|
2081
2072
|
options: yn(n.options),
|
|
2082
2073
|
interface: i,
|
|
@@ -2131,7 +2122,7 @@ function Ir(e, t, n, o) {
|
|
|
2131
2122
|
};
|
|
2132
2123
|
}
|
|
2133
2124
|
function _r(e, t, n, o, r) {
|
|
2134
|
-
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}`,
|
|
2125
|
+
const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`, m = t.code || ie(e.code ?? l);
|
|
2135
2126
|
return {
|
|
2136
2127
|
key: c,
|
|
2137
2128
|
id: c,
|
|
@@ -2146,7 +2137,7 @@ function _r(e, t, n, o, r) {
|
|
|
2146
2137
|
schemeId: Q(e.infSchmId ?? n?.infSchmId),
|
|
2147
2138
|
infSetId: l,
|
|
2148
2139
|
setId: a,
|
|
2149
|
-
code:
|
|
2140
|
+
code: m,
|
|
2150
2141
|
children: [],
|
|
2151
2142
|
infSetList: [t],
|
|
2152
2143
|
operationInfo: ut(e.operationInfo),
|
|
@@ -2251,7 +2242,7 @@ function Tr(e) {
|
|
|
2251
2242
|
};
|
|
2252
2243
|
return e.multiple !== void 0 && (t.multiple = $e(e.multiple)), Object.keys(t).length ? t : void 0;
|
|
2253
2244
|
}
|
|
2254
|
-
function
|
|
2245
|
+
function zt(e) {
|
|
2255
2246
|
return typeof e == "string" || typeof e == "number" ? e : void 0;
|
|
2256
2247
|
}
|
|
2257
2248
|
function le(e) {
|
|
@@ -2435,13 +2426,13 @@ function Rr(e) {
|
|
|
2435
2426
|
};
|
|
2436
2427
|
}
|
|
2437
2428
|
const Dn = "信息集不能为空,最后一条数据不可删除";
|
|
2438
|
-
function
|
|
2439
|
-
return !e.mark.isRequired || t.length > 0 ? null :
|
|
2429
|
+
function zr(e, t = [], n = {}) {
|
|
2430
|
+
return !e.mark.isRequired || t.length > 0 ? null : xr(
|
|
2440
2431
|
n.emptyMessage,
|
|
2441
2432
|
{ section: e, infSetValues: t }
|
|
2442
2433
|
) || Dn;
|
|
2443
2434
|
}
|
|
2444
|
-
function
|
|
2435
|
+
function xr(e, t) {
|
|
2445
2436
|
return typeof e == "function" ? e(t) : typeof e == "string" ? e : Dn;
|
|
2446
2437
|
}
|
|
2447
2438
|
const Ne = (e) => new Error(`[GlobalInfo] ${e}`), qr = (e) => [
|
|
@@ -2453,12 +2444,12 @@ function wt(e) {
|
|
|
2453
2444
|
return Array.isArray(e) ? `[${e.map((t) => wt(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${wt(o)}`).join(",")}}` : JSON.stringify(e);
|
|
2454
2445
|
}
|
|
2455
2446
|
const Gr = (e) => {
|
|
2456
|
-
const t =
|
|
2447
|
+
const t = he(!1), n = he(!1), o = he(!1), r = Pe(null), i = Pe([]), s = Pe(null), l = Pe(null), a = Pe(null), c = Pe({}), m = Pe({}), _ = he([]), $ = Pe({}), b = he([]), A = V(
|
|
2457
2448
|
() => {
|
|
2458
|
-
const
|
|
2459
|
-
return [...
|
|
2449
|
+
const f = _.value.map((M) => c.value[M]).filter((M) => !!M), d = Object.entries(c.value).filter(([M]) => !_.value.includes(M)).map(([, M]) => M);
|
|
2450
|
+
return [...f, ...d];
|
|
2460
2451
|
}
|
|
2461
|
-
),
|
|
2452
|
+
), g = V(() => ({
|
|
2462
2453
|
// 整棵树是否正在加载。
|
|
2463
2454
|
loading: t.value,
|
|
2464
2455
|
// 当前详情是否正在加载。
|
|
@@ -2466,234 +2457,234 @@ const Gr = (e) => {
|
|
|
2466
2457
|
// 当前是否正在保存。
|
|
2467
2458
|
saving: o.value,
|
|
2468
2459
|
// 当前所有编辑中的 section key。
|
|
2469
|
-
editingSectionKeys:
|
|
2460
|
+
editingSectionKeys: b.value,
|
|
2470
2461
|
// 已加载 section 映射。
|
|
2471
2462
|
sectionMap: c.value,
|
|
2472
2463
|
// section 状态映射;这里把 alias 后的编辑态也同步进去。
|
|
2473
2464
|
sectionStatusMap: Object.fromEntries(
|
|
2474
|
-
Object.entries(
|
|
2475
|
-
|
|
2465
|
+
Object.entries($.value).map(([f, d]) => [
|
|
2466
|
+
f,
|
|
2476
2467
|
{
|
|
2477
2468
|
// 保留原状态字段。
|
|
2478
|
-
...
|
|
2469
|
+
...d,
|
|
2479
2470
|
// 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
|
|
2480
|
-
editing:
|
|
2481
|
-
|
|
2471
|
+
editing: b.value.includes(
|
|
2472
|
+
m.value[f] ?? f
|
|
2482
2473
|
)
|
|
2483
2474
|
}
|
|
2484
2475
|
])
|
|
2485
2476
|
),
|
|
2486
2477
|
// 最近一次全局错误。
|
|
2487
2478
|
error: r.value
|
|
2488
|
-
})),
|
|
2479
|
+
})), w = () => ({
|
|
2489
2480
|
// adaptScene 透传给新接口形态。
|
|
2490
2481
|
adaptScene: e.adaptScene,
|
|
2491
2482
|
// emplid 是当前人员标识,树和详情接口都需要它。
|
|
2492
2483
|
emplid: e.emplid
|
|
2493
|
-
}),
|
|
2484
|
+
}), S = (f) => ({
|
|
2494
2485
|
// 复用基础参数,保证人员和场景一致。
|
|
2495
|
-
...
|
|
2486
|
+
...w(),
|
|
2496
2487
|
// infSchmId 指定当前模板方案。
|
|
2497
|
-
infSchmId:
|
|
2488
|
+
infSchmId: f.infSchmId,
|
|
2498
2489
|
// tagId 指定要展开的树节点。
|
|
2499
|
-
tagId:
|
|
2490
|
+
tagId: f.tagId,
|
|
2500
2491
|
// tagLevel 告诉后端当前节点层级。
|
|
2501
|
-
tagLevel:
|
|
2492
|
+
tagLevel: f.tagLevel,
|
|
2502
2493
|
// parentTagId 保留父子关系上下文。
|
|
2503
|
-
parentTagId:
|
|
2504
|
-
}),
|
|
2494
|
+
parentTagId: f.parentTagId
|
|
2495
|
+
}), j = (f = l.value, d = a.value) => ({
|
|
2505
2496
|
// 详情接口同样需要基础人员和场景参数。
|
|
2506
|
-
...
|
|
2497
|
+
...w(),
|
|
2507
2498
|
// 当前节点所属模板方案。
|
|
2508
|
-
infSchmId:
|
|
2499
|
+
infSchmId: f?.infSchmId,
|
|
2509
2500
|
// 当前点击或加载的树节点 id。
|
|
2510
|
-
tagId:
|
|
2501
|
+
tagId: f?.tagId,
|
|
2511
2502
|
// 保存或刷新指定 section 时优先使用 section 自己的信息集 id。
|
|
2512
|
-
infSetId:
|
|
2503
|
+
infSetId: d?.infSetId ?? f?.infSetId,
|
|
2513
2504
|
// setId 同样优先取 section,避免保存时拿错节点 setId。
|
|
2514
|
-
setId:
|
|
2515
|
-
}),
|
|
2505
|
+
setId: d?.setId ?? f?.setId
|
|
2506
|
+
}), I = async (f, d) => Nr({
|
|
2516
2507
|
service: e.service,
|
|
2517
2508
|
formatter: e.formatOperationParams,
|
|
2518
|
-
operation:
|
|
2519
|
-
context:
|
|
2509
|
+
operation: f,
|
|
2510
|
+
context: d,
|
|
2520
2511
|
viewModel: s.value,
|
|
2521
2512
|
sections: A.value,
|
|
2522
2513
|
activeNode: l.value,
|
|
2523
2514
|
activeSection: a.value
|
|
2524
|
-
}),
|
|
2525
|
-
async (
|
|
2515
|
+
}), h = Uo(
|
|
2516
|
+
async (f, d) => {
|
|
2526
2517
|
if (!e.service.requestOperation)
|
|
2527
2518
|
throw Ne("service.requestOperation is required");
|
|
2528
|
-
return e.service.requestOperation(
|
|
2519
|
+
return e.service.requestOperation(f, d);
|
|
2529
2520
|
},
|
|
2530
|
-
(
|
|
2531
|
-
),
|
|
2532
|
-
const
|
|
2521
|
+
(f) => qr(f)
|
|
2522
|
+
), T = async (f, d) => {
|
|
2523
|
+
const M = await On({
|
|
2533
2524
|
formatter: e.formatOperationParams,
|
|
2534
|
-
params:
|
|
2535
|
-
operation:
|
|
2536
|
-
type:
|
|
2537
|
-
requestSource:
|
|
2538
|
-
tagId:
|
|
2539
|
-
section:
|
|
2540
|
-
field:
|
|
2541
|
-
model:
|
|
2542
|
-
row:
|
|
2543
|
-
node:
|
|
2525
|
+
params: d?.params,
|
|
2526
|
+
operation: f,
|
|
2527
|
+
type: d?.type,
|
|
2528
|
+
requestSource: d?.requestSource,
|
|
2529
|
+
tagId: d?.tagId,
|
|
2530
|
+
section: d?.section,
|
|
2531
|
+
field: d?.field,
|
|
2532
|
+
model: d?.model,
|
|
2533
|
+
row: d?.row,
|
|
2534
|
+
node: d?.node,
|
|
2544
2535
|
viewModel: s.value,
|
|
2545
2536
|
sections: A.value,
|
|
2546
2537
|
activeNode: l.value,
|
|
2547
2538
|
activeSection: a.value,
|
|
2548
|
-
searchText:
|
|
2549
|
-
}), K = { ...
|
|
2550
|
-
return
|
|
2551
|
-
},
|
|
2552
|
-
if (!
|
|
2553
|
-
return
|
|
2554
|
-
for (const
|
|
2555
|
-
if (We(
|
|
2556
|
-
return
|
|
2557
|
-
const K =
|
|
2539
|
+
searchText: d?.searchText
|
|
2540
|
+
}), K = { ...f, params: M }, W = d && { ...d, params: M };
|
|
2541
|
+
return h(K, W);
|
|
2542
|
+
}, p = (f, d) => {
|
|
2543
|
+
if (!d)
|
|
2544
|
+
return f[0] ?? null;
|
|
2545
|
+
for (const M of f) {
|
|
2546
|
+
if (We(M).includes(d))
|
|
2547
|
+
return M;
|
|
2548
|
+
const K = p(M.children, d);
|
|
2558
2549
|
if (K)
|
|
2559
2550
|
return K;
|
|
2560
2551
|
}
|
|
2561
2552
|
return null;
|
|
2562
|
-
},
|
|
2563
|
-
if (
|
|
2564
|
-
return typeof
|
|
2565
|
-
},
|
|
2566
|
-
const
|
|
2567
|
-
if (!
|
|
2553
|
+
}, N = (f = a.value) => {
|
|
2554
|
+
if (f)
|
|
2555
|
+
return typeof f == "string" ? f : Ke(f) ? O(f) : ke(f);
|
|
2556
|
+
}, y = (f = a.value) => {
|
|
2557
|
+
const d = N(f);
|
|
2558
|
+
if (!d)
|
|
2568
2559
|
return null;
|
|
2569
|
-
const
|
|
2570
|
-
return c.value[
|
|
2571
|
-
},
|
|
2572
|
-
const
|
|
2560
|
+
const M = m.value[d] ?? d;
|
|
2561
|
+
return c.value[M] ?? null;
|
|
2562
|
+
}, F = (f = a.value) => {
|
|
2563
|
+
const d = N(f);
|
|
2564
|
+
if (d)
|
|
2565
|
+
return m.value[d] ?? d;
|
|
2566
|
+
}, O = (f = a.value) => {
|
|
2573
2567
|
if (f)
|
|
2574
|
-
return
|
|
2575
|
-
},
|
|
2576
|
-
if (
|
|
2577
|
-
return
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
const
|
|
2583
|
-
|
|
2584
|
-
return f;
|
|
2585
|
-
const C = b(p);
|
|
2586
|
-
return C?.ownerNodeKey ? v(i.value, C.ownerNodeKey) ?? l.value : C || l.value && We(l.value).includes(p) ? l.value : null;
|
|
2568
|
+
return typeof f == "string" ? f : Ke(f) ? f.setId ?? f.infSetId ?? f.key : ke(f);
|
|
2569
|
+
}, z = (f = a.value) => {
|
|
2570
|
+
if (Ke(f))
|
|
2571
|
+
return f;
|
|
2572
|
+
if (typeof f == "string") {
|
|
2573
|
+
const d = p(i.value, f);
|
|
2574
|
+
if (d)
|
|
2575
|
+
return d;
|
|
2576
|
+
const M = y(f);
|
|
2577
|
+
return M?.ownerNodeKey ? p(i.value, M.ownerNodeKey) ?? l.value : M || l.value && We(l.value).includes(f) ? l.value : null;
|
|
2587
2578
|
}
|
|
2588
|
-
return
|
|
2589
|
-
}, ne = (
|
|
2590
|
-
const
|
|
2591
|
-
if (!
|
|
2579
|
+
return f?.ownerNodeKey ? p(i.value, f.ownerNodeKey) ?? l.value : l.value;
|
|
2580
|
+
}, ne = (f = a.value) => !f || Ke(f) ? null : y(f), x = (f = a.value) => {
|
|
2581
|
+
const d = O(f);
|
|
2582
|
+
if (!d)
|
|
2592
2583
|
return Ue();
|
|
2593
|
-
const
|
|
2584
|
+
const M = m.value[d] ?? d;
|
|
2594
2585
|
return Ue({
|
|
2595
|
-
|
|
2596
|
-
|
|
2586
|
+
...$.value[d],
|
|
2587
|
+
...$.value[M],
|
|
2597
2588
|
// 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
|
|
2598
|
-
editing:
|
|
2599
|
-
|
|
2589
|
+
editing: b.value.includes(
|
|
2590
|
+
M
|
|
2600
2591
|
)
|
|
2601
2592
|
});
|
|
2602
|
-
},
|
|
2603
|
-
const
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
[
|
|
2593
|
+
}, R = (f, d) => {
|
|
2594
|
+
const M = O(f);
|
|
2595
|
+
M && ($.value = {
|
|
2596
|
+
...$.value,
|
|
2597
|
+
[M]: Ue({
|
|
2607
2598
|
// 保留已有状态。
|
|
2608
|
-
|
|
2599
|
+
...$.value[M],
|
|
2609
2600
|
// 合并本次状态补丁。
|
|
2610
|
-
...
|
|
2601
|
+
...d,
|
|
2611
2602
|
// 编辑态仍以 editingSectionKeys 为准。
|
|
2612
|
-
editing:
|
|
2603
|
+
editing: b.value.includes(M)
|
|
2613
2604
|
})
|
|
2614
2605
|
});
|
|
2615
|
-
},
|
|
2616
|
-
const
|
|
2606
|
+
}, D = (f = s.value?.raw ?? null, d = l.value) => {
|
|
2607
|
+
const M = A.value, K = a.value && M.find(
|
|
2617
2608
|
(W) => ke(W) === ke(a.value)
|
|
2618
2609
|
) ? a.value : null;
|
|
2619
2610
|
s.value = {
|
|
2620
2611
|
// 保留原 scheme。
|
|
2621
2612
|
scheme: s.value?.scheme ?? null,
|
|
2622
2613
|
// 当前节点。
|
|
2623
|
-
node:
|
|
2614
|
+
node: d,
|
|
2624
2615
|
// 顶层节点和树节点都来自 nodes。
|
|
2625
2616
|
topNodes: i.value,
|
|
2626
2617
|
treeNodes: i.value,
|
|
2627
2618
|
// 当前激活节点。
|
|
2628
|
-
activeNode:
|
|
2619
|
+
activeNode: d,
|
|
2629
2620
|
// 当前激活 section。
|
|
2630
2621
|
activeSection: K,
|
|
2631
2622
|
// 当前所有已加载 section。
|
|
2632
|
-
sections:
|
|
2623
|
+
sections: M,
|
|
2633
2624
|
// 当前 section 缓存。
|
|
2634
2625
|
sectionMap: c.value,
|
|
2635
2626
|
// 保留原始接口数据。
|
|
2636
|
-
raw:
|
|
2627
|
+
raw: f
|
|
2637
2628
|
}, a.value = K;
|
|
2638
|
-
},
|
|
2629
|
+
}, B = (f, d = l.value, M) => {
|
|
2639
2630
|
const K = Rr({
|
|
2640
2631
|
currentMap: c.value,
|
|
2641
|
-
currentAliasMap:
|
|
2642
|
-
currentOrder:
|
|
2643
|
-
currentStatusMap:
|
|
2644
|
-
editingSectionKeys:
|
|
2645
|
-
nextViewModel:
|
|
2646
|
-
node:
|
|
2647
|
-
targetKey:
|
|
2632
|
+
currentAliasMap: m.value,
|
|
2633
|
+
currentOrder: _.value,
|
|
2634
|
+
currentStatusMap: $.value,
|
|
2635
|
+
editingSectionKeys: b.value,
|
|
2636
|
+
nextViewModel: f,
|
|
2637
|
+
node: d,
|
|
2638
|
+
targetKey: M,
|
|
2648
2639
|
activeSection: a.value
|
|
2649
2640
|
});
|
|
2650
|
-
return c.value = K.sectionMap,
|
|
2651
|
-
...
|
|
2652
|
-
scheme:
|
|
2641
|
+
return c.value = K.sectionMap, m.value = K.sectionAliasMap, _.value = K.sectionOrder, $.value = K.sectionStatusMap, s.value = {
|
|
2642
|
+
...f,
|
|
2643
|
+
scheme: f.scheme ?? s.value?.scheme ?? null,
|
|
2653
2644
|
topNodes: i.value,
|
|
2654
2645
|
treeNodes: i.value,
|
|
2655
|
-
activeNode:
|
|
2646
|
+
activeNode: d,
|
|
2656
2647
|
activeSection: K.matchedSection,
|
|
2657
2648
|
sections: K.targetSections,
|
|
2658
2649
|
sectionMap: c.value
|
|
2659
2650
|
}, a.value = K.matchedSection, K.matchedSection;
|
|
2660
|
-
}, u = (
|
|
2661
|
-
const
|
|
2662
|
-
if (!
|
|
2651
|
+
}, u = (f, d) => {
|
|
2652
|
+
const M = F(f), K = M ? c.value[M] : null;
|
|
2653
|
+
if (!M || !K)
|
|
2663
2654
|
return;
|
|
2664
|
-
const W =
|
|
2655
|
+
const W = d(K);
|
|
2665
2656
|
c.value = {
|
|
2666
2657
|
...c.value,
|
|
2667
|
-
[
|
|
2668
|
-
}, a.value = ke(a.value ?? W) ===
|
|
2669
|
-
},
|
|
2670
|
-
const
|
|
2671
|
-
if (!
|
|
2658
|
+
[M]: W
|
|
2659
|
+
}, a.value = ke(a.value ?? W) === M ? W : a.value, D();
|
|
2660
|
+
}, v = async (f = a.value ?? l.value) => {
|
|
2661
|
+
const d = ne(f), M = z(f) ?? l.value, K = O(f);
|
|
2662
|
+
if (!M)
|
|
2672
2663
|
return null;
|
|
2673
2664
|
if (!e.service.requestOperation)
|
|
2674
2665
|
throw Ne("service.requestOperation is required");
|
|
2675
|
-
n.value = !0, r.value = null,
|
|
2666
|
+
n.value = !0, r.value = null, R(K ?? M, { loading: !0, error: null });
|
|
2676
2667
|
try {
|
|
2677
|
-
const W =
|
|
2668
|
+
const W = d ? [{ infSetId: d.infSetId, setId: d.setId, operationInfo: d.operationInfo, raw: d.raw }] : M.infSetList;
|
|
2678
2669
|
if (W.length === 0)
|
|
2679
2670
|
throw Ne("node.infSetList is required");
|
|
2680
2671
|
const _e = await Promise.all(W.map(async (se) => {
|
|
2681
|
-
const
|
|
2682
|
-
...
|
|
2672
|
+
const ve = Ar(d, M, se.infSetId), Ae = {
|
|
2673
|
+
...j(M, d),
|
|
2683
2674
|
infSetId: se.infSetId,
|
|
2684
2675
|
setId: se.setId,
|
|
2685
2676
|
operationInfo: se.operationInfo
|
|
2686
2677
|
};
|
|
2687
|
-
if (
|
|
2688
|
-
const dt = await
|
|
2678
|
+
if (ve) {
|
|
2679
|
+
const dt = await I(ve, {
|
|
2689
2680
|
type: "queryInfoSet",
|
|
2690
2681
|
requestSource: "inner",
|
|
2691
|
-
tagId:
|
|
2692
|
-
node:
|
|
2693
|
-
section:
|
|
2682
|
+
tagId: d?.requestTagId ?? d?.tagId ?? M.tagId,
|
|
2683
|
+
node: M,
|
|
2684
|
+
section: d,
|
|
2694
2685
|
params: Ae
|
|
2695
2686
|
});
|
|
2696
|
-
return mr(dt, Ae,
|
|
2687
|
+
return mr(dt, Ae, M);
|
|
2697
2688
|
}
|
|
2698
2689
|
throw Ne("infoSet.operationInfo.queryInfoSet is required");
|
|
2699
2690
|
})), me = {
|
|
@@ -2701,47 +2692,47 @@ const Gr = (e) => {
|
|
|
2701
2692
|
sections: _e.flatMap((se) => se.sections),
|
|
2702
2693
|
sectionMap: Object.fromEntries(_e.flatMap((se) => se.sections).map((se) => [se.key, se]))
|
|
2703
2694
|
};
|
|
2704
|
-
return
|
|
2695
|
+
return B(me, M, K);
|
|
2705
2696
|
} catch (W) {
|
|
2706
|
-
throw r.value = W,
|
|
2697
|
+
throw r.value = W, R(K ?? M, { loading: !1, error: W }), W;
|
|
2707
2698
|
} finally {
|
|
2708
|
-
n.value = !1,
|
|
2699
|
+
n.value = !1, R(K ?? M, { loading: !1 });
|
|
2709
2700
|
}
|
|
2710
|
-
},
|
|
2711
|
-
if (!p)
|
|
2712
|
-
return null;
|
|
2713
|
-
if (!Ke(p) && typeof p != "string")
|
|
2714
|
-
return b(p);
|
|
2715
|
-
const f = T(p);
|
|
2716
|
-
return f ? c.value[g.value[f] ?? f] ?? null : null;
|
|
2717
|
-
}, B = async (p = l.value) => p ? (await y(p), s.value) : (s.value = null, a.value = null, c.value = {}, g.value = {}, w.value = [], I.value = {}, null), q = async (p) => {
|
|
2718
|
-
const f = Pr(p);
|
|
2701
|
+
}, C = (f = a.value) => v(f), L = (f = a.value) => {
|
|
2719
2702
|
if (!f)
|
|
2720
|
-
return
|
|
2721
|
-
|
|
2703
|
+
return null;
|
|
2704
|
+
if (!Ke(f) && typeof f != "string")
|
|
2705
|
+
return y(f);
|
|
2706
|
+
const d = O(f);
|
|
2707
|
+
return d ? c.value[m.value[d] ?? d] ?? null : null;
|
|
2708
|
+
}, E = async (f = l.value) => f ? (await v(f), s.value) : (s.value = null, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, null), q = async (f) => {
|
|
2709
|
+
const d = Pr(f);
|
|
2710
|
+
if (!d)
|
|
2711
|
+
return f.children;
|
|
2712
|
+
const M = S(f), K = await I(d, {
|
|
2722
2713
|
type: "openTag",
|
|
2723
2714
|
requestSource: "sidebar",
|
|
2724
|
-
tagId:
|
|
2725
|
-
node:
|
|
2726
|
-
params:
|
|
2715
|
+
tagId: f.tagId,
|
|
2716
|
+
node: f,
|
|
2717
|
+
params: M
|
|
2727
2718
|
});
|
|
2728
2719
|
return jt(K).treeNodes;
|
|
2729
|
-
}, U = async (
|
|
2730
|
-
if (
|
|
2731
|
-
return
|
|
2732
|
-
const
|
|
2733
|
-
return
|
|
2734
|
-
}, G = async (
|
|
2735
|
-
const
|
|
2736
|
-
return
|
|
2720
|
+
}, U = async (f) => {
|
|
2721
|
+
if (f.loaded)
|
|
2722
|
+
return f.children;
|
|
2723
|
+
const d = await q(f);
|
|
2724
|
+
return d.length > 0 && (i.value = hn(i.value, f.key, d)), d;
|
|
2725
|
+
}, G = async (f) => {
|
|
2726
|
+
const d = typeof f == "string" ? p(i.value, f) : f;
|
|
2727
|
+
return d ? (l.value = d, a.value = null, b.value = [], await U(d), D(s.value?.raw, d), d) : null;
|
|
2737
2728
|
}, X = async () => {
|
|
2738
|
-
const
|
|
2739
|
-
if (!
|
|
2729
|
+
const f = e.service.templateTree;
|
|
2730
|
+
if (!f)
|
|
2740
2731
|
throw Ne("service.templateTree is required");
|
|
2741
2732
|
t.value = !0, r.value = null;
|
|
2742
2733
|
try {
|
|
2743
|
-
const
|
|
2744
|
-
|
|
2734
|
+
const d = await f(w()), M = jt(d), K = await Promise.all(
|
|
2735
|
+
M.treeNodes.map(async (_e) => {
|
|
2745
2736
|
const me = await q(_e);
|
|
2746
2737
|
return {
|
|
2747
2738
|
..._e,
|
|
@@ -2750,47 +2741,47 @@ const Gr = (e) => {
|
|
|
2750
2741
|
};
|
|
2751
2742
|
})
|
|
2752
2743
|
);
|
|
2753
|
-
i.value = K, a.value = null, c.value = {},
|
|
2754
|
-
const W =
|
|
2744
|
+
i.value = K, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, b.value = [];
|
|
2745
|
+
const W = p(K, e.initialActiveNodeKey) ?? p(K);
|
|
2755
2746
|
return l.value = W, s.value = {
|
|
2756
|
-
...
|
|
2747
|
+
...M,
|
|
2757
2748
|
treeNodes: K,
|
|
2758
2749
|
activeNode: W,
|
|
2759
2750
|
sectionMap: c.value,
|
|
2760
2751
|
sections: A.value
|
|
2761
2752
|
}, i.value;
|
|
2762
|
-
} catch (
|
|
2763
|
-
throw r.value =
|
|
2753
|
+
} catch (d) {
|
|
2754
|
+
throw r.value = d, d;
|
|
2764
2755
|
} finally {
|
|
2765
2756
|
t.value = !1;
|
|
2766
2757
|
}
|
|
2767
2758
|
}, P = async () => {
|
|
2768
|
-
const
|
|
2769
|
-
await
|
|
2770
|
-
const
|
|
2771
|
-
(
|
|
2759
|
+
const f = N();
|
|
2760
|
+
await C(a.value ?? l.value);
|
|
2761
|
+
const d = A.value.find(
|
|
2762
|
+
(M) => ke(M) === f
|
|
2772
2763
|
);
|
|
2773
|
-
return
|
|
2774
|
-
}, Z = (
|
|
2775
|
-
const
|
|
2776
|
-
return !!(
|
|
2777
|
-
}, ae = (
|
|
2778
|
-
const
|
|
2779
|
-
!
|
|
2780
|
-
}, pe = (
|
|
2781
|
-
const
|
|
2782
|
-
|
|
2783
|
-
(
|
|
2784
|
-
),
|
|
2785
|
-
}, de = (
|
|
2786
|
-
const K = typeof
|
|
2787
|
-
u(
|
|
2788
|
-
const me = (typeof
|
|
2764
|
+
return d && (a.value = d), D(), s.value;
|
|
2765
|
+
}, Z = (f = a.value) => {
|
|
2766
|
+
const d = F(f);
|
|
2767
|
+
return !!(d && b.value.includes(d));
|
|
2768
|
+
}, ae = (f = a.value) => {
|
|
2769
|
+
const d = F(f);
|
|
2770
|
+
!d || Z(d) || (b.value = [...b.value, d], R(d, { editing: !0 }));
|
|
2771
|
+
}, pe = (f = a.value) => {
|
|
2772
|
+
const d = F(f);
|
|
2773
|
+
d && (b.value = b.value.filter(
|
|
2774
|
+
(M) => M !== d
|
|
2775
|
+
), R(d, { editing: !1 }));
|
|
2776
|
+
}, de = (f, d, M) => {
|
|
2777
|
+
const K = typeof d == "string" ? d : Ve(d);
|
|
2778
|
+
u(f, (W) => {
|
|
2779
|
+
const me = (typeof d == "string" ? W.fields.find((ve) => Ve(ve) === K || ve.code === K) : d)?.cascadeClearFields ?? [], se = {
|
|
2789
2780
|
...W.model,
|
|
2790
|
-
[K]:
|
|
2781
|
+
[K]: M
|
|
2791
2782
|
};
|
|
2792
|
-
return me.forEach((
|
|
2793
|
-
se[
|
|
2783
|
+
return me.forEach((ve) => {
|
|
2784
|
+
se[ve] = "";
|
|
2794
2785
|
}), {
|
|
2795
2786
|
// 保留 section 其它元数据。
|
|
2796
2787
|
...W,
|
|
@@ -2799,26 +2790,26 @@ const Gr = (e) => {
|
|
|
2799
2790
|
// 表单类型同步更新第一行 rows,方便保存时统一从 rows 构造 payload。
|
|
2800
2791
|
rows: W.renderType === "form" ? [{ ...W.rows[0], ...se }] : W.rows,
|
|
2801
2792
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
2802
|
-
fields: W.fields.map((
|
|
2803
|
-
const Ae = Ve(
|
|
2804
|
-
return Ae === K ||
|
|
2793
|
+
fields: W.fields.map((ve) => {
|
|
2794
|
+
const Ae = Ve(ve);
|
|
2795
|
+
return Ae === K || ve.code === K ? { ...ve, value: M } : me.includes(Ae) || me.includes(ve.code) ? { ...ve, value: "" } : ve;
|
|
2805
2796
|
})
|
|
2806
2797
|
};
|
|
2807
2798
|
});
|
|
2808
|
-
}, Se = async (
|
|
2809
|
-
const W =
|
|
2799
|
+
}, Se = async (f, d, M = {}, K = {}) => {
|
|
2800
|
+
const W = y(f);
|
|
2810
2801
|
if (!W)
|
|
2811
2802
|
return [];
|
|
2812
2803
|
const _e = {
|
|
2813
|
-
...
|
|
2804
|
+
...M,
|
|
2814
2805
|
...K.searchText !== void 0 ? { searchText: K.searchText } : {}
|
|
2815
2806
|
}, {
|
|
2816
2807
|
fieldKey: me,
|
|
2817
2808
|
currentField: se,
|
|
2818
|
-
sourceModel:
|
|
2809
|
+
sourceModel: ve,
|
|
2819
2810
|
sourceRow: Ae,
|
|
2820
2811
|
missingDependField: dt
|
|
2821
|
-
} = Br(W,
|
|
2812
|
+
} = Br(W, d, _e), ft = se?.interface;
|
|
2822
2813
|
if (!se || !ft)
|
|
2823
2814
|
return se?.options ?? [];
|
|
2824
2815
|
if (Er(se))
|
|
@@ -2830,7 +2821,7 @@ const Gr = (e) => {
|
|
|
2830
2821
|
(Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: [] } : Le
|
|
2831
2822
|
)
|
|
2832
2823
|
})), [];
|
|
2833
|
-
const
|
|
2824
|
+
const zn = await T(
|
|
2834
2825
|
{
|
|
2835
2826
|
...ft
|
|
2836
2827
|
},
|
|
@@ -2838,44 +2829,44 @@ const Gr = (e) => {
|
|
|
2838
2829
|
type: "fieldOptions",
|
|
2839
2830
|
requestSource: "inner",
|
|
2840
2831
|
tagId: W.requestTagId ?? W.tagId,
|
|
2841
|
-
node:
|
|
2832
|
+
node: z(W),
|
|
2842
2833
|
section: W,
|
|
2843
2834
|
field: se,
|
|
2844
2835
|
params: Te(ft.params),
|
|
2845
2836
|
// searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
|
|
2846
|
-
model:
|
|
2837
|
+
model: ve,
|
|
2847
2838
|
row: Ae,
|
|
2848
2839
|
searchText: K.searchText
|
|
2849
2840
|
}
|
|
2850
|
-
), kt = Vr(
|
|
2841
|
+
), kt = Vr(zn);
|
|
2851
2842
|
return u(W, (Ge) => ({
|
|
2852
2843
|
...Ge,
|
|
2853
2844
|
fields: Ge.fields.map(
|
|
2854
2845
|
(Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: kt } : Le
|
|
2855
2846
|
)
|
|
2856
2847
|
})), kt;
|
|
2857
|
-
}, Oe = (
|
|
2858
|
-
if (Array.isArray(
|
|
2859
|
-
Ie(
|
|
2848
|
+
}, Oe = (f, d) => {
|
|
2849
|
+
if (Array.isArray(d)) {
|
|
2850
|
+
Ie(f, d);
|
|
2860
2851
|
return;
|
|
2861
2852
|
}
|
|
2862
|
-
u(
|
|
2863
|
-
...
|
|
2853
|
+
u(f, (M) => ({
|
|
2854
|
+
...M,
|
|
2864
2855
|
// 替换当前 model。
|
|
2865
|
-
model:
|
|
2856
|
+
model: d,
|
|
2866
2857
|
// 表单类型同步合并到第一行 rows。
|
|
2867
|
-
rows:
|
|
2858
|
+
rows: M.renderType === "form" ? [{ ...M.rows[0], ...d }] : M.rows,
|
|
2868
2859
|
// fields.value 也同步成 model 中的值。
|
|
2869
|
-
fields:
|
|
2860
|
+
fields: M.fields.map((K) => ({
|
|
2870
2861
|
...K,
|
|
2871
|
-
value:
|
|
2862
|
+
value: d[Ve(K)]
|
|
2872
2863
|
}))
|
|
2873
2864
|
}));
|
|
2874
|
-
}, Ie = (
|
|
2875
|
-
u(
|
|
2876
|
-
...
|
|
2877
|
-
rows:
|
|
2878
|
-
data:
|
|
2865
|
+
}, Ie = (f, d) => {
|
|
2866
|
+
u(f, (M) => ({
|
|
2867
|
+
...M,
|
|
2868
|
+
rows: d,
|
|
2869
|
+
data: d
|
|
2879
2870
|
}));
|
|
2880
2871
|
}, qe = {
|
|
2881
2872
|
// 加载模板树。
|
|
@@ -2883,17 +2874,17 @@ const Gr = (e) => {
|
|
|
2883
2874
|
// 选中树节点。
|
|
2884
2875
|
selectNode: G,
|
|
2885
2876
|
// 加载当前节点详情。
|
|
2886
|
-
loadDetail:
|
|
2877
|
+
loadDetail: E,
|
|
2887
2878
|
// 刷新当前详情。
|
|
2888
2879
|
reloadActiveSection: P,
|
|
2889
2880
|
// 加载指定节点或 section。
|
|
2890
|
-
loadSection:
|
|
2881
|
+
loadSection: v,
|
|
2891
2882
|
// 重新加载指定节点或 section。
|
|
2892
|
-
reloadSection:
|
|
2883
|
+
reloadSection: C,
|
|
2893
2884
|
// 获取指定节点或 section 的缓存数据。
|
|
2894
|
-
getSection:
|
|
2885
|
+
getSection: L,
|
|
2895
2886
|
// 获取指定节点或 section 的状态。
|
|
2896
|
-
getSectionStatus:
|
|
2887
|
+
getSectionStatus: x,
|
|
2897
2888
|
// 开启编辑。
|
|
2898
2889
|
startEdit: ae,
|
|
2899
2890
|
// 取消编辑。
|
|
@@ -2907,32 +2898,32 @@ const Gr = (e) => {
|
|
|
2907
2898
|
// 更新表格行。
|
|
2908
2899
|
updateTableRows: Ie,
|
|
2909
2900
|
// 保存单行到本地缓存。
|
|
2910
|
-
saveRow: (
|
|
2911
|
-
const W = [...
|
|
2912
|
-
W.splice(
|
|
2901
|
+
saveRow: (f, d = {}, M = -1) => {
|
|
2902
|
+
const W = [...y(f)?.rows ?? []];
|
|
2903
|
+
W.splice(M >= 0 ? M : W.length, M >= 0 ? 1 : 0, d), Ie(f, W);
|
|
2913
2904
|
},
|
|
2914
2905
|
// 删除单行本地缓存。
|
|
2915
|
-
deleteRow: (
|
|
2916
|
-
const
|
|
2906
|
+
deleteRow: (f, d) => {
|
|
2907
|
+
const M = y(f), K = typeof d == "string" ? Number(d) : d, W = (M?.rows ?? []).filter(
|
|
2917
2908
|
(_e, me) => me !== K
|
|
2918
2909
|
);
|
|
2919
|
-
Ie(
|
|
2910
|
+
Ie(f, W);
|
|
2920
2911
|
},
|
|
2921
2912
|
// 调用接口保存 section。
|
|
2922
|
-
saveSection: async (
|
|
2923
|
-
const
|
|
2924
|
-
if (!
|
|
2913
|
+
saveSection: async (f = a.value) => {
|
|
2914
|
+
const d = N(f), M = y(f);
|
|
2915
|
+
if (!M)
|
|
2925
2916
|
return null;
|
|
2926
|
-
const K = jr(
|
|
2917
|
+
const K = jr(M);
|
|
2927
2918
|
if (!K)
|
|
2928
2919
|
throw Ne("section.operationInfo.editInfoSet is required");
|
|
2929
|
-
o.value = !0, r.value = null,
|
|
2920
|
+
o.value = !0, r.value = null, d && d !== ke(M) && R(d, { saving: !0, error: null }), R(M, { saving: !0, error: null });
|
|
2930
2921
|
try {
|
|
2931
2922
|
const {
|
|
2932
2923
|
tagId: W,
|
|
2933
2924
|
..._e
|
|
2934
|
-
} =
|
|
2935
|
-
|
|
2925
|
+
} = j(l.value, M), me = hr(M, _e), se = zr(
|
|
2926
|
+
M,
|
|
2936
2927
|
me.infSetValues ?? [],
|
|
2937
2928
|
{
|
|
2938
2929
|
emptyMessage: e.renderConfig?.requiredInfoSetEmptyMessage
|
|
@@ -2940,24 +2931,24 @@ const Gr = (e) => {
|
|
|
2940
2931
|
);
|
|
2941
2932
|
if (se)
|
|
2942
2933
|
throw new Error(se);
|
|
2943
|
-
const
|
|
2934
|
+
const ve = await I(
|
|
2944
2935
|
// 保存时保留后端给的 method/url,但不再把 editOperation.params 混入实际提交数据。
|
|
2945
2936
|
K,
|
|
2946
2937
|
{
|
|
2947
2938
|
type: "editInfoSet",
|
|
2948
2939
|
requestSource: "inner",
|
|
2949
|
-
tagId:
|
|
2940
|
+
tagId: M.requestTagId ?? M.tagId,
|
|
2950
2941
|
node: l.value,
|
|
2951
|
-
section:
|
|
2942
|
+
section: M,
|
|
2952
2943
|
params: me,
|
|
2953
|
-
model:
|
|
2944
|
+
model: M.model
|
|
2954
2945
|
}
|
|
2955
2946
|
);
|
|
2956
|
-
return pe(
|
|
2947
|
+
return pe(M), await C(M), ve;
|
|
2957
2948
|
} catch (W) {
|
|
2958
|
-
throw r.value = W,
|
|
2949
|
+
throw r.value = W, d && d !== ke(M) && R(d, { saving: !1, error: W }), R(M, { saving: !1, error: W }), W;
|
|
2959
2950
|
} finally {
|
|
2960
|
-
o.value = !1,
|
|
2951
|
+
o.value = !1, d && d !== ke(M) && R(d, { saving: !1 }), R(M, { saving: !1 });
|
|
2961
2952
|
}
|
|
2962
2953
|
},
|
|
2963
2954
|
// 判断编辑态。
|
|
@@ -2981,13 +2972,13 @@ const Gr = (e) => {
|
|
|
2981
2972
|
// 当前 section 缓存。
|
|
2982
2973
|
sectionMap: c,
|
|
2983
2974
|
// 当前 section 状态缓存。
|
|
2984
|
-
sectionStatusMap:
|
|
2975
|
+
sectionStatusMap: $,
|
|
2985
2976
|
// 当前激活节点。
|
|
2986
2977
|
activeNode: l,
|
|
2987
2978
|
// 当前激活 section。
|
|
2988
2979
|
activeSection: a,
|
|
2989
2980
|
// 给页面消费的状态快照。
|
|
2990
|
-
state:
|
|
2981
|
+
state: g,
|
|
2991
2982
|
// 给页面消费的操作集合。
|
|
2992
2983
|
actions: qe
|
|
2993
2984
|
};
|
|
@@ -3005,7 +2996,7 @@ const Gr = (e) => {
|
|
|
3005
2996
|
},
|
|
3006
2997
|
setup(e) {
|
|
3007
2998
|
const t = e, n = Gr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
|
|
3008
|
-
return (
|
|
2999
|
+
return (m, _) => ee(m.$slots, "default", Me(Fe({
|
|
3009
3000
|
viewModel: re(o),
|
|
3010
3001
|
nodes: re(r),
|
|
3011
3002
|
sections: re(i),
|
|
@@ -3051,110 +3042,110 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3051
3042
|
},
|
|
3052
3043
|
emits: ["update:modelValue", "change", "loadOptions"],
|
|
3053
3044
|
setup(e, { emit: t }) {
|
|
3054
|
-
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i =
|
|
3045
|
+
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = V(() => Qe(n.field)), l = V(() => s.value === "select_remote"), a = V(() => n.disabled || n.field.disabled || n.field.readonly), c = V(() => !!n.field.props?.multiple), m = V(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), _ = V(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), $ = V(() => {
|
|
3055
3046
|
if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
|
|
3056
|
-
const
|
|
3057
|
-
return Number.isFinite(
|
|
3058
|
-
}),
|
|
3059
|
-
const
|
|
3060
|
-
return
|
|
3061
|
-
}),
|
|
3062
|
-
let
|
|
3063
|
-
function
|
|
3064
|
-
o("update:modelValue",
|
|
3047
|
+
const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
3048
|
+
return Number.isFinite(x) ? x : void 0;
|
|
3049
|
+
}), b = V(() => nr(n.field, n.modelValue)), A = V(() => {
|
|
3050
|
+
const x = n.field.props?.activeValue ?? n.field.props?.["active-value"], R = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
3051
|
+
return x !== void 0 || R !== void 0 ? n.modelValue ?? R ?? !1 : fn(n.modelValue);
|
|
3052
|
+
}), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)), S = V(() => dn(n.field, n.modelValue, "请选择文件")), j = V(() => pn(n.field, n.modelValue, "请选择文件")), I = V(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
|
|
3053
|
+
let h;
|
|
3054
|
+
function T(x) {
|
|
3055
|
+
o("update:modelValue", N(x));
|
|
3065
3056
|
}
|
|
3066
|
-
function
|
|
3067
|
-
o("change",
|
|
3057
|
+
function p(x) {
|
|
3058
|
+
o("change", N(x));
|
|
3068
3059
|
}
|
|
3069
|
-
function
|
|
3070
|
-
return s.value === "select" || s.value === "select_remote" ? or(n.field,
|
|
3060
|
+
function N(x) {
|
|
3061
|
+
return s.value === "select" || s.value === "select_remote" ? or(n.field, x) : x;
|
|
3071
3062
|
}
|
|
3072
|
-
function
|
|
3073
|
-
|
|
3063
|
+
function y(x) {
|
|
3064
|
+
x && o("loadOptions", l.value ? { searchText: "" } : void 0);
|
|
3074
3065
|
}
|
|
3075
|
-
function
|
|
3076
|
-
l.value && (
|
|
3077
|
-
o("loadOptions", { searchText:
|
|
3066
|
+
function F(x) {
|
|
3067
|
+
l.value && (h && clearTimeout(h), h = setTimeout(() => {
|
|
3068
|
+
o("loadOptions", { searchText: x });
|
|
3078
3069
|
}, 300));
|
|
3079
3070
|
}
|
|
3080
|
-
function
|
|
3071
|
+
function O() {
|
|
3081
3072
|
a.value || i.value?.click();
|
|
3082
3073
|
}
|
|
3083
|
-
function x
|
|
3084
|
-
Fn(
|
|
3074
|
+
function z(x) {
|
|
3075
|
+
Fn(x);
|
|
3085
3076
|
}
|
|
3086
3077
|
Un(() => {
|
|
3087
|
-
|
|
3078
|
+
h && clearTimeout(h);
|
|
3088
3079
|
});
|
|
3089
|
-
function ne(
|
|
3090
|
-
const
|
|
3091
|
-
|
|
3080
|
+
function ne(x) {
|
|
3081
|
+
const R = x.target, D = Array.from(R.files ?? []), B = n.field.props?.multiple ? D : D[0] ?? null;
|
|
3082
|
+
T(B), p(B);
|
|
3092
3083
|
}
|
|
3093
|
-
return (
|
|
3094
|
-
const
|
|
3095
|
-
return s.value === "select" || s.value === "select_remote" ? (
|
|
3084
|
+
return (x, R) => {
|
|
3085
|
+
const D = Wt, B = Jt, u = Ut, v = Xn, C = eo, L = Ht;
|
|
3086
|
+
return s.value === "select" || s.value === "select_remote" ? (k(), H(B, oe({
|
|
3096
3087
|
key: 0,
|
|
3097
3088
|
class: "global-info-field-control"
|
|
3098
|
-
},
|
|
3099
|
-
"model-value":
|
|
3100
|
-
placeholder:
|
|
3089
|
+
}, x.field.props, {
|
|
3090
|
+
"model-value": b.value,
|
|
3091
|
+
placeholder: I.value,
|
|
3101
3092
|
disabled: a.value,
|
|
3102
3093
|
"collapse-tags": c.value,
|
|
3103
3094
|
"collapse-tags-tooltip": c.value,
|
|
3104
3095
|
"max-collapse-tags": 1,
|
|
3105
|
-
filterable: l.value || !!
|
|
3106
|
-
remote: l.value || !!
|
|
3107
|
-
"remote-method": l.value ?
|
|
3096
|
+
filterable: l.value || !!x.field.props?.filterable,
|
|
3097
|
+
remote: l.value || !!x.field.props?.remote,
|
|
3098
|
+
"remote-method": l.value ? F : x.field.props?.remoteMethod,
|
|
3108
3099
|
clearable: "",
|
|
3109
|
-
onVisibleChange:
|
|
3110
|
-
"onUpdate:modelValue":
|
|
3111
|
-
onChange:
|
|
3100
|
+
onVisibleChange: y,
|
|
3101
|
+
"onUpdate:modelValue": T,
|
|
3102
|
+
onChange: p
|
|
3112
3103
|
}), {
|
|
3113
3104
|
default: J(() => [
|
|
3114
|
-
(
|
|
3115
|
-
key: String(
|
|
3116
|
-
label:
|
|
3117
|
-
value:
|
|
3105
|
+
(k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(), H(D, {
|
|
3106
|
+
key: String(E.value),
|
|
3107
|
+
label: E.label,
|
|
3108
|
+
value: E.value
|
|
3118
3109
|
}, null, 8, ["label", "value"]))), 128))
|
|
3119
3110
|
]),
|
|
3120
3111
|
_: 1
|
|
3121
|
-
}, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (
|
|
3112
|
+
}, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(), H(u, oe({
|
|
3122
3113
|
key: 1,
|
|
3123
3114
|
class: "global-info-field-control"
|
|
3124
|
-
},
|
|
3125
|
-
"model-value":
|
|
3126
|
-
placeholder:
|
|
3115
|
+
}, x.field.props, {
|
|
3116
|
+
"model-value": x.modelValue,
|
|
3117
|
+
placeholder: I.value,
|
|
3127
3118
|
disabled: a.value,
|
|
3128
3119
|
type: "date",
|
|
3129
3120
|
"value-format": "YYYY-MM-DD",
|
|
3130
|
-
"onUpdate:modelValue":
|
|
3131
|
-
onChange:
|
|
3132
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (
|
|
3121
|
+
"onUpdate:modelValue": T,
|
|
3122
|
+
onChange: p
|
|
3123
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), H(v, oe({
|
|
3133
3124
|
key: 2,
|
|
3134
3125
|
class: "global-info-field-control"
|
|
3135
|
-
},
|
|
3136
|
-
"model-value":
|
|
3137
|
-
placeholder:
|
|
3126
|
+
}, x.field.props, {
|
|
3127
|
+
"model-value": $.value,
|
|
3128
|
+
placeholder: I.value,
|
|
3138
3129
|
disabled: a.value,
|
|
3139
3130
|
"controls-position": "right",
|
|
3140
|
-
"onUpdate:modelValue":
|
|
3141
|
-
onChange:
|
|
3142
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (
|
|
3131
|
+
"onUpdate:modelValue": T,
|
|
3132
|
+
onChange: p
|
|
3133
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(), H(C, oe({
|
|
3143
3134
|
key: 3,
|
|
3144
3135
|
class: "global-info-field-control global-info-field-control--switch"
|
|
3145
|
-
},
|
|
3136
|
+
}, x.field.props, {
|
|
3146
3137
|
"model-value": A.value,
|
|
3147
3138
|
disabled: a.value,
|
|
3148
|
-
"onUpdate:modelValue":
|
|
3149
|
-
onChange:
|
|
3150
|
-
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (
|
|
3139
|
+
"onUpdate:modelValue": T,
|
|
3140
|
+
onChange: p
|
|
3141
|
+
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (k(), Y("div", {
|
|
3151
3142
|
key: 4,
|
|
3152
3143
|
class: He(["global-info-field-control global-info-field-control--file", {
|
|
3153
3144
|
"is-disabled": a.value,
|
|
3154
|
-
"is-empty": !
|
|
3155
|
-
"is-filled":
|
|
3145
|
+
"is-empty": !w.value,
|
|
3146
|
+
"is-filled": w.value
|
|
3156
3147
|
}]),
|
|
3157
|
-
onClick:
|
|
3148
|
+
onClick: O
|
|
3158
3149
|
}, [
|
|
3159
3150
|
te("input", {
|
|
3160
3151
|
ref_key: "fileInputRef",
|
|
@@ -3162,44 +3153,44 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3162
3153
|
class: "global-info-field-control__file-input",
|
|
3163
3154
|
type: "file",
|
|
3164
3155
|
disabled: a.value,
|
|
3165
|
-
accept: String(
|
|
3166
|
-
multiple: !!
|
|
3156
|
+
accept: String(x.field.props?.accept ?? ""),
|
|
3157
|
+
multiple: !!x.field.props?.multiple,
|
|
3167
3158
|
onChange: ne
|
|
3168
3159
|
}, null, 40, Kr),
|
|
3169
|
-
|
|
3170
|
-
(
|
|
3171
|
-
key:
|
|
3160
|
+
j.value.length ? (k(), Y("span", Yr, [
|
|
3161
|
+
(k(!0), Y(be, null, ge(j.value, (E, q) => (k(), Y(be, {
|
|
3162
|
+
key: E.key
|
|
3172
3163
|
}, [
|
|
3173
|
-
|
|
3164
|
+
E.action ? (k(), Y("button", {
|
|
3174
3165
|
key: 0,
|
|
3175
3166
|
class: "global-info-field-control__file-preview",
|
|
3176
3167
|
type: "button",
|
|
3177
|
-
onClick: Gt((U) =>
|
|
3178
|
-
}, fe(
|
|
3179
|
-
q <
|
|
3168
|
+
onClick: Gt((U) => z(E), ["stop", "prevent"])
|
|
3169
|
+
}, fe(E.text), 9, Ur)) : (k(), Y("span", Hr, fe(E.text), 1)),
|
|
3170
|
+
q < j.value.length - 1 ? (k(), Y("span", Jr, "、")) : ue("", !0)
|
|
3180
3171
|
], 64))), 128))
|
|
3181
|
-
])) :
|
|
3182
|
-
], 2)) : s.value === "empty" ? (
|
|
3172
|
+
])) : w.value ? (k(), Y("span", Wr, fe(S.value), 1)) : (k(), Y("span", Zr, "上 传"))
|
|
3173
|
+
], 2)) : s.value === "empty" ? (k(), H(L, {
|
|
3183
3174
|
key: 5,
|
|
3184
3175
|
class: "global-info-field-control",
|
|
3185
3176
|
"model-value": "",
|
|
3186
3177
|
disabled: "",
|
|
3187
3178
|
placeholder: "-"
|
|
3188
|
-
})) : (
|
|
3179
|
+
})) : (k(), H(L, oe({
|
|
3189
3180
|
key: 6,
|
|
3190
3181
|
class: ["global-info-field-control", {
|
|
3191
3182
|
"global-info-field-control--textarea": r.includes(s.value),
|
|
3192
3183
|
"global-info-field-control--code": s.value === "code"
|
|
3193
3184
|
}]
|
|
3194
|
-
},
|
|
3195
|
-
"model-value":
|
|
3196
|
-
placeholder:
|
|
3185
|
+
}, x.field.props, {
|
|
3186
|
+
"model-value": m.value,
|
|
3187
|
+
placeholder: I.value,
|
|
3197
3188
|
disabled: a.value,
|
|
3198
3189
|
type: r.includes(s.value) ? "textarea" : "text",
|
|
3199
|
-
rows: r.includes(s.value) ?
|
|
3200
|
-
resize:
|
|
3201
|
-
"onUpdate:modelValue":
|
|
3202
|
-
onChange:
|
|
3190
|
+
rows: r.includes(s.value) ? g.value : void 0,
|
|
3191
|
+
resize: _.value,
|
|
3192
|
+
"onUpdate:modelValue": T,
|
|
3193
|
+
onChange: p
|
|
3203
3194
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3204
3195
|
};
|
|
3205
3196
|
}
|
|
@@ -3218,27 +3209,27 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
|
|
|
3218
3209
|
emptyText: { default: "-" }
|
|
3219
3210
|
},
|
|
3220
3211
|
setup(e) {
|
|
3221
|
-
const t = e, n =
|
|
3212
|
+
const t = e, n = V(() => $t(t.field)), o = V(() => n.value === "empty" || Ce(t.value)), r = V(() => dn(t.field, t.value, t.emptyText)), i = V(() => pn(t.field, t.value, t.emptyText));
|
|
3222
3213
|
function s(l) {
|
|
3223
3214
|
Fn(l);
|
|
3224
3215
|
}
|
|
3225
|
-
return (l, a) => n.value === "html" && !o.value ? (
|
|
3216
|
+
return (l, a) => n.value === "html" && !o.value ? (k(), Y("span", {
|
|
3226
3217
|
key: 0,
|
|
3227
3218
|
class: "global-info-field-value global-info-field-value--html",
|
|
3228
3219
|
innerHTML: r.value
|
|
3229
|
-
}, null, 8, Xr)) : n.value === "code" && !o.value ? (
|
|
3230
|
-
(
|
|
3220
|
+
}, null, 8, Xr)) : n.value === "code" && !o.value ? (k(), Y("pre", ea, fe(r.value), 1)) : i.value.length ? (k(), Y("span", ta, [
|
|
3221
|
+
(k(!0), Y(be, null, ge(i.value, (c, m) => (k(), Y(be, {
|
|
3231
3222
|
key: c.key
|
|
3232
3223
|
}, [
|
|
3233
|
-
c.action ? (
|
|
3224
|
+
c.action ? (k(), Y("button", {
|
|
3234
3225
|
key: 0,
|
|
3235
3226
|
class: "global-info-field-value__attachment-preview",
|
|
3236
3227
|
type: "button",
|
|
3237
|
-
onClick: (
|
|
3238
|
-
}, fe(c.text), 9, na)) : (
|
|
3239
|
-
|
|
3228
|
+
onClick: (_) => s(c)
|
|
3229
|
+
}, fe(c.text), 9, na)) : (k(), Y("span", oa, fe(c.text), 1)),
|
|
3230
|
+
m < i.value.length - 1 ? (k(), Y("span", ra, "、")) : ue("", !0)
|
|
3240
3231
|
], 64))), 128))
|
|
3241
|
-
])) : (
|
|
3232
|
+
])) : (k(), Y("span", {
|
|
3242
3233
|
key: 3,
|
|
3243
3234
|
class: He(["global-info-field-value", {
|
|
3244
3235
|
"global-info-field-value--multi-row": n.value === "multi-row",
|
|
@@ -3293,87 +3284,87 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3293
3284
|
renderConfig: {}
|
|
3294
3285
|
},
|
|
3295
3286
|
setup(e) {
|
|
3296
|
-
const t = e, n = Ee(), o =
|
|
3287
|
+
const t = e, n = Ee(), o = V(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = V(() => lt(
|
|
3297
3288
|
t.section.fields,
|
|
3298
3289
|
t.section,
|
|
3299
3290
|
t.renderConfig,
|
|
3300
3291
|
{ values: o.value }
|
|
3301
3292
|
)), s = rn(
|
|
3302
|
-
async (
|
|
3303
|
-
(
|
|
3293
|
+
async (h, T, p) => t.actions.loadFieldOptions(t.section, h, T, p),
|
|
3294
|
+
(h) => `${t.section.key}:${S(h)}`
|
|
3304
3295
|
);
|
|
3305
|
-
function l(
|
|
3306
|
-
const
|
|
3307
|
-
(
|
|
3308
|
-
|
|
3309
|
-
}), t.onUpdateModel?.(
|
|
3296
|
+
function l(h, T) {
|
|
3297
|
+
const p = { ...o.value, [h.code]: T };
|
|
3298
|
+
(h.cascadeClearFields ?? []).forEach((N) => {
|
|
3299
|
+
p[N] = "";
|
|
3300
|
+
}), t.onUpdateModel?.(p), t.onUpdateModel || t.actions.updateField(t.section, h, T), a(h, T, p), b(p, h);
|
|
3310
3301
|
}
|
|
3311
|
-
function a(
|
|
3312
|
-
const
|
|
3313
|
-
if (
|
|
3302
|
+
function a(h, T, p) {
|
|
3303
|
+
const N = t.renderConfig?.onFieldBusinessChange;
|
|
3304
|
+
if (N)
|
|
3314
3305
|
try {
|
|
3315
|
-
const
|
|
3316
|
-
field:
|
|
3317
|
-
value:
|
|
3306
|
+
const y = c(h, T), F = {
|
|
3307
|
+
field: h,
|
|
3308
|
+
value: T,
|
|
3318
3309
|
section: t.section,
|
|
3319
|
-
model:
|
|
3320
|
-
values:
|
|
3310
|
+
model: p,
|
|
3311
|
+
values: p,
|
|
3321
3312
|
node: t.node,
|
|
3322
3313
|
activeNode: t.node,
|
|
3323
|
-
sections:
|
|
3324
|
-
sectionValues:
|
|
3314
|
+
sections: m(),
|
|
3315
|
+
sectionValues: _(t.section, p),
|
|
3325
3316
|
actions: t.actions,
|
|
3326
|
-
selectedOption:
|
|
3327
|
-
selectedOptions:
|
|
3317
|
+
selectedOption: y[0],
|
|
3318
|
+
selectedOptions: y
|
|
3328
3319
|
};
|
|
3329
|
-
Promise.resolve(
|
|
3330
|
-
console.error("[GlobalInfoFormRenderer] field business change failed",
|
|
3320
|
+
Promise.resolve(N(F)).catch((O) => {
|
|
3321
|
+
console.error("[GlobalInfoFormRenderer] field business change failed", O);
|
|
3331
3322
|
});
|
|
3332
|
-
} catch (
|
|
3333
|
-
console.error("[GlobalInfoFormRenderer] field business change failed",
|
|
3323
|
+
} catch (y) {
|
|
3324
|
+
console.error("[GlobalInfoFormRenderer] field business change failed", y);
|
|
3334
3325
|
}
|
|
3335
3326
|
}
|
|
3336
|
-
function c(
|
|
3337
|
-
const
|
|
3338
|
-
return (
|
|
3327
|
+
function c(h, T) {
|
|
3328
|
+
const p = it(h, T);
|
|
3329
|
+
return (h.options ?? []).filter((N) => p.some((y) => N.value === y || String(N.value) === String(y)));
|
|
3339
3330
|
}
|
|
3340
|
-
function
|
|
3331
|
+
function m() {
|
|
3341
3332
|
return Object.values(t.state.sectionMap);
|
|
3342
3333
|
}
|
|
3343
|
-
function
|
|
3344
|
-
const
|
|
3345
|
-
const
|
|
3346
|
-
return [
|
|
3334
|
+
function _(h, T) {
|
|
3335
|
+
const N = m().flatMap((y) => {
|
|
3336
|
+
const F = y.key === h.key ? T : y.renderType === "table" ? y.rows : y.model;
|
|
3337
|
+
return [y.key, y.id, y.setId, y.infSetId, y.code].filter(Boolean).map((O) => [String(O), F]);
|
|
3347
3338
|
});
|
|
3348
|
-
return Object.fromEntries(
|
|
3339
|
+
return Object.fromEntries(N);
|
|
3349
3340
|
}
|
|
3350
|
-
async function
|
|
3351
|
-
const
|
|
3352
|
-
if (!Ln(
|
|
3353
|
-
r.set(
|
|
3341
|
+
async function $(h, T = {}, p = o.value) {
|
|
3342
|
+
const N = p, y = S(h), F = ot(t.section.key, h, N), O = r.get(y);
|
|
3343
|
+
if (!Ln(T) && rt(h, O, F)) {
|
|
3344
|
+
r.set(y, F);
|
|
3354
3345
|
return;
|
|
3355
3346
|
}
|
|
3356
3347
|
try {
|
|
3357
|
-
if (
|
|
3358
|
-
await s(
|
|
3348
|
+
if (T.searchText !== void 0) {
|
|
3349
|
+
await s(h, N, T);
|
|
3359
3350
|
return;
|
|
3360
3351
|
}
|
|
3361
|
-
await t.actions.loadFieldOptions(t.section,
|
|
3352
|
+
await t.actions.loadFieldOptions(t.section, h, N, T), r.set(y, F);
|
|
3362
3353
|
} catch (ne) {
|
|
3363
3354
|
console.error("[GlobalInfoFormRenderer] load field options failed", ne);
|
|
3364
3355
|
}
|
|
3365
3356
|
}
|
|
3366
|
-
async function
|
|
3367
|
-
for (const
|
|
3368
|
-
if (
|
|
3369
|
-
const
|
|
3370
|
-
if (!
|
|
3371
|
-
const
|
|
3372
|
-
if (rt(
|
|
3373
|
-
r.set(
|
|
3357
|
+
async function b(h = o.value, T) {
|
|
3358
|
+
for (const p of i.value) {
|
|
3359
|
+
if (T && !Vn(p, T)) continue;
|
|
3360
|
+
const N = h[p.code];
|
|
3361
|
+
if (!j(p, N)) continue;
|
|
3362
|
+
const y = ot(t.section.key, p, h), F = S(p), O = r.get(F);
|
|
3363
|
+
if (rt(p, O, y)) {
|
|
3364
|
+
r.set(F, y);
|
|
3374
3365
|
continue;
|
|
3375
3366
|
}
|
|
3376
|
-
|
|
3367
|
+
O !== y && await $(p, An(p, N), h);
|
|
3377
3368
|
}
|
|
3378
3369
|
}
|
|
3379
3370
|
Be(
|
|
@@ -3384,84 +3375,84 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3384
3375
|
), Be(
|
|
3385
3376
|
() => t.editing,
|
|
3386
3377
|
() => {
|
|
3387
|
-
|
|
3378
|
+
b();
|
|
3388
3379
|
},
|
|
3389
3380
|
{ immediate: !0 }
|
|
3390
3381
|
);
|
|
3391
|
-
function A(
|
|
3392
|
-
const
|
|
3382
|
+
function A(h) {
|
|
3383
|
+
const T = o.value[h.code];
|
|
3393
3384
|
return {
|
|
3394
|
-
field:
|
|
3385
|
+
field: h,
|
|
3395
3386
|
section: t.section,
|
|
3396
3387
|
sectionView: t.section,
|
|
3397
3388
|
node: t.node,
|
|
3398
3389
|
editing: t.editing,
|
|
3399
|
-
modelValue:
|
|
3400
|
-
value:
|
|
3390
|
+
modelValue: T,
|
|
3391
|
+
value: T,
|
|
3401
3392
|
state: t.state,
|
|
3402
3393
|
actions: t.actions,
|
|
3403
|
-
updateModelValue: (
|
|
3394
|
+
updateModelValue: (p) => l(h, p)
|
|
3404
3395
|
};
|
|
3405
3396
|
}
|
|
3406
|
-
function
|
|
3407
|
-
const
|
|
3408
|
-
if (
|
|
3409
|
-
const
|
|
3410
|
-
return
|
|
3397
|
+
function g(h) {
|
|
3398
|
+
const T = String(h.code || "").trim(), p = T ? `field-${T}` : "";
|
|
3399
|
+
if (p && n[p]) return p;
|
|
3400
|
+
const N = p.toLowerCase();
|
|
3401
|
+
return N !== p && n[N] ? N : "";
|
|
3411
3402
|
}
|
|
3412
|
-
function
|
|
3413
|
-
return
|
|
3403
|
+
function w(h) {
|
|
3404
|
+
return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
|
|
3414
3405
|
}
|
|
3415
|
-
function
|
|
3416
|
-
return
|
|
3406
|
+
function S(h) {
|
|
3407
|
+
return h.key || h.id || h.code;
|
|
3417
3408
|
}
|
|
3418
|
-
function
|
|
3419
|
-
return Pn(
|
|
3409
|
+
function j(h, T) {
|
|
3410
|
+
return Pn(h, T, t.editing);
|
|
3420
3411
|
}
|
|
3421
|
-
function h
|
|
3422
|
-
return
|
|
3412
|
+
function I(h) {
|
|
3413
|
+
return h.required || h.isRequired;
|
|
3423
3414
|
}
|
|
3424
|
-
return (
|
|
3425
|
-
const
|
|
3426
|
-
return
|
|
3415
|
+
return (h, T) => {
|
|
3416
|
+
const p = Zt, N = no, y = to, F = Qt;
|
|
3417
|
+
return k(), H(F, {
|
|
3427
3418
|
class: "global-info-form-renderer",
|
|
3428
3419
|
model: o.value,
|
|
3429
3420
|
"label-position": "top"
|
|
3430
3421
|
}, {
|
|
3431
3422
|
default: J(() => [
|
|
3432
|
-
we(
|
|
3423
|
+
we(y, { gutter: 24 }, {
|
|
3433
3424
|
default: J(() => [
|
|
3434
|
-
(
|
|
3435
|
-
key:
|
|
3436
|
-
span:
|
|
3425
|
+
(k(!0), Y(be, null, ge(i.value, (O) => (k(), H(N, {
|
|
3426
|
+
key: S(O),
|
|
3427
|
+
span: w(O)
|
|
3437
3428
|
}, {
|
|
3438
3429
|
default: J(() => [
|
|
3439
|
-
we(
|
|
3440
|
-
prop:
|
|
3430
|
+
we(p, oe({
|
|
3431
|
+
prop: O.code,
|
|
3441
3432
|
ref_for: !0
|
|
3442
|
-
},
|
|
3433
|
+
}, O.formItemProps), {
|
|
3443
3434
|
label: J(() => [
|
|
3444
3435
|
te("span", ia, [
|
|
3445
|
-
|
|
3446
|
-
Ye(" " + fe(
|
|
3436
|
+
I(O) ? (k(), Y("span", la, "*")) : ue("", !0),
|
|
3437
|
+
Ye(" " + fe(O.label), 1)
|
|
3447
3438
|
])
|
|
3448
3439
|
]),
|
|
3449
3440
|
default: J(() => [
|
|
3450
|
-
|
|
3441
|
+
g(O) ? ee(h.$slots, g(O), oe({
|
|
3451
3442
|
key: 0,
|
|
3452
3443
|
ref_for: !0
|
|
3453
|
-
}, A(
|
|
3444
|
+
}, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(), H(Bn, {
|
|
3454
3445
|
key: 1,
|
|
3455
|
-
field:
|
|
3456
|
-
"model-value": o.value[
|
|
3457
|
-
section:
|
|
3458
|
-
onLoadOptions: (
|
|
3459
|
-
"onUpdate:modelValue": (
|
|
3460
|
-
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (
|
|
3446
|
+
field: O,
|
|
3447
|
+
"model-value": o.value[O.code],
|
|
3448
|
+
section: h.section,
|
|
3449
|
+
onLoadOptions: (z) => $(O, z),
|
|
3450
|
+
"onUpdate:modelValue": (z) => l(O, z)
|
|
3451
|
+
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
|
|
3461
3452
|
key: 2,
|
|
3462
|
-
field:
|
|
3463
|
-
value: o.value[
|
|
3464
|
-
section:
|
|
3453
|
+
field: O,
|
|
3454
|
+
value: o.value[O.code],
|
|
3455
|
+
section: h.section
|
|
3465
3456
|
}, null, 8, ["field", "value", "section"]))
|
|
3466
3457
|
]),
|
|
3467
3458
|
_: 2
|
|
@@ -3489,7 +3480,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3489
3480
|
setup(e) {
|
|
3490
3481
|
return (t, n) => {
|
|
3491
3482
|
const o = oo;
|
|
3492
|
-
return
|
|
3483
|
+
return k(), H(o, {
|
|
3493
3484
|
title: t.title,
|
|
3494
3485
|
"confirm-button-text": t.confirmText,
|
|
3495
3486
|
"cancel-button-text": t.cancelText,
|
|
@@ -3508,7 +3499,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3508
3499
|
}), fa = { class: "global-info-table-renderer__table-scroll" }, pa = { class: "global-info-table-renderer__header" }, ma = {
|
|
3509
3500
|
key: 0,
|
|
3510
3501
|
class: "global-info-table-renderer__required"
|
|
3511
|
-
},
|
|
3502
|
+
}, va = /* @__PURE__ */ ce({
|
|
3512
3503
|
name: "GlobalInfoTableRenderer",
|
|
3513
3504
|
__name: "GlobalInfoTableRenderer",
|
|
3514
3505
|
props: {
|
|
@@ -3522,64 +3513,64 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3522
3513
|
renderConfig: {}
|
|
3523
3514
|
},
|
|
3524
3515
|
setup(e) {
|
|
3525
|
-
const t = e, n = Ee(), o =
|
|
3516
|
+
const t = e, n = Ee(), o = V(() => t.section.fields.some((u) => Et(u))), r = V(() => o.value), i = V(() => t.renderConfig?.sequenceLabel ?? "序号"), s = V(() => t.renderConfig?.sequenceWidth ?? 56), l = V(() => {
|
|
3526
3517
|
const u = t.renderConfig?.sequenceStart;
|
|
3527
3518
|
return typeof u == "number" && Number.isFinite(u) ? u : 1;
|
|
3528
|
-
}), a =
|
|
3519
|
+
}), a = V(() => {
|
|
3529
3520
|
const u = lt(
|
|
3530
3521
|
t.section.fields,
|
|
3531
3522
|
t.section,
|
|
3532
3523
|
t.renderConfig,
|
|
3533
3524
|
{ rows: t.section.rows, values: t.section.model }
|
|
3534
3525
|
);
|
|
3535
|
-
return r.value ? u.filter((
|
|
3536
|
-
}), c = /* @__PURE__ */ new Map(),
|
|
3537
|
-
async (u,
|
|
3538
|
-
(u,
|
|
3526
|
+
return r.value ? u.filter((v) => !ne(v)) : u;
|
|
3527
|
+
}), c = /* @__PURE__ */ new Map(), m = rn(
|
|
3528
|
+
async (u, v, C) => t.actions.loadFieldOptions(t.section, u, v, C),
|
|
3529
|
+
(u, v) => `${t.section.key}:${D(v)}:${O(u)}`
|
|
3539
3530
|
);
|
|
3540
|
-
function
|
|
3531
|
+
function _(u) {
|
|
3541
3532
|
t.actions.deleteRow(t.section, u);
|
|
3542
3533
|
}
|
|
3543
|
-
function
|
|
3544
|
-
const
|
|
3545
|
-
return t.showDelete && (typeof
|
|
3534
|
+
function $(u, v) {
|
|
3535
|
+
const C = t.renderConfig?.rowDeleteVisibleRule;
|
|
3536
|
+
return t.showDelete && (typeof C == "function" ? C({
|
|
3546
3537
|
section: t.section,
|
|
3547
3538
|
row: u,
|
|
3548
|
-
rowIndex:
|
|
3539
|
+
rowIndex: v,
|
|
3549
3540
|
node: t.node,
|
|
3550
3541
|
state: t.state,
|
|
3551
3542
|
actions: t.actions
|
|
3552
3543
|
}) : u.allowDelete !== !1);
|
|
3553
3544
|
}
|
|
3554
|
-
function
|
|
3555
|
-
const
|
|
3545
|
+
function b(u, v, C, L) {
|
|
3546
|
+
const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [], U = {
|
|
3556
3547
|
...u,
|
|
3557
|
-
__rowKey:
|
|
3558
|
-
[
|
|
3548
|
+
__rowKey: D(u),
|
|
3549
|
+
[C.code]: L
|
|
3559
3550
|
};
|
|
3560
3551
|
q.forEach((G) => {
|
|
3561
3552
|
U[G] = "";
|
|
3562
|
-
}),
|
|
3553
|
+
}), E[v] = {
|
|
3563
3554
|
...U
|
|
3564
|
-
}, t.actions.updateTableRows(t.section,
|
|
3555
|
+
}, t.actions.updateTableRows(t.section, E), A(C, L, U, v, E), I(C, U);
|
|
3565
3556
|
}
|
|
3566
|
-
function A(u,
|
|
3557
|
+
function A(u, v, C, L, E) {
|
|
3567
3558
|
const q = t.renderConfig?.onFieldBusinessChange;
|
|
3568
3559
|
if (q)
|
|
3569
3560
|
try {
|
|
3570
|
-
const U =
|
|
3561
|
+
const U = g(u, v), G = { ...t.section.model, ...C }, X = {
|
|
3571
3562
|
field: u,
|
|
3572
|
-
value:
|
|
3563
|
+
value: v,
|
|
3573
3564
|
section: t.section,
|
|
3574
3565
|
model: G,
|
|
3575
3566
|
values: G,
|
|
3576
|
-
row:
|
|
3577
|
-
rowIndex:
|
|
3578
|
-
rows:
|
|
3567
|
+
row: C,
|
|
3568
|
+
rowIndex: L,
|
|
3569
|
+
rows: E,
|
|
3579
3570
|
node: t.node,
|
|
3580
3571
|
activeNode: t.node,
|
|
3581
|
-
sections:
|
|
3582
|
-
sectionValues:
|
|
3572
|
+
sections: w(),
|
|
3573
|
+
sectionValues: S(t.section, E),
|
|
3583
3574
|
actions: t.actions,
|
|
3584
3575
|
selectedOption: U[0],
|
|
3585
3576
|
selectedOptions: U
|
|
@@ -3591,110 +3582,110 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3591
3582
|
console.error("[GlobalInfoTableRenderer] field business change failed", U);
|
|
3592
3583
|
}
|
|
3593
3584
|
}
|
|
3594
|
-
function
|
|
3595
|
-
const
|
|
3596
|
-
return (u.options ?? []).filter((
|
|
3585
|
+
function g(u, v) {
|
|
3586
|
+
const C = it(u, v);
|
|
3587
|
+
return (u.options ?? []).filter((L) => C.some((E) => L.value === E || String(L.value) === String(E)));
|
|
3597
3588
|
}
|
|
3598
|
-
function
|
|
3589
|
+
function w() {
|
|
3599
3590
|
return Object.values(t.state.sectionMap);
|
|
3600
3591
|
}
|
|
3601
|
-
function
|
|
3602
|
-
const
|
|
3603
|
-
const q =
|
|
3604
|
-
return [
|
|
3592
|
+
function S(u, v) {
|
|
3593
|
+
const L = w().flatMap((E) => {
|
|
3594
|
+
const q = E.key === u.key ? v : E.renderType === "table" ? E.rows : E.model;
|
|
3595
|
+
return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((U) => [String(U), q]);
|
|
3605
3596
|
});
|
|
3606
|
-
return Object.fromEntries(
|
|
3597
|
+
return Object.fromEntries(L);
|
|
3607
3598
|
}
|
|
3608
|
-
async function
|
|
3609
|
-
const
|
|
3610
|
-
if (!Ln(
|
|
3599
|
+
async function j(u, v, C = {}, L = v) {
|
|
3600
|
+
const E = D(L), q = `${E}:${O(u)}`, U = ot(t.section.key, u, L, E), G = c.get(q);
|
|
3601
|
+
if (!Ln(C) && rt(u, G, U)) {
|
|
3611
3602
|
c.set(q, U);
|
|
3612
3603
|
return;
|
|
3613
3604
|
}
|
|
3614
3605
|
try {
|
|
3615
|
-
if (
|
|
3616
|
-
await
|
|
3606
|
+
if (C.searchText !== void 0) {
|
|
3607
|
+
await m(u, L, C);
|
|
3617
3608
|
return;
|
|
3618
3609
|
}
|
|
3619
|
-
await t.actions.loadFieldOptions(t.section, u,
|
|
3610
|
+
await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q, U);
|
|
3620
3611
|
} catch (P) {
|
|
3621
3612
|
console.error("[GlobalInfoTableRenderer] load field options failed", P);
|
|
3622
3613
|
}
|
|
3623
3614
|
}
|
|
3624
|
-
async function
|
|
3625
|
-
const
|
|
3626
|
-
for (const
|
|
3627
|
-
const
|
|
3615
|
+
async function I(u, v) {
|
|
3616
|
+
const C = v ? [v] : t.section.rows;
|
|
3617
|
+
for (const L of C) {
|
|
3618
|
+
const E = D(L);
|
|
3628
3619
|
for (const q of a.value) {
|
|
3629
3620
|
if (u && !Vn(q, u)) continue;
|
|
3630
|
-
const U =
|
|
3631
|
-
if (!
|
|
3632
|
-
const G = ot(t.section.key, q,
|
|
3621
|
+
const U = L[q.code];
|
|
3622
|
+
if (!N(q, U)) continue;
|
|
3623
|
+
const G = ot(t.section.key, q, L, E), X = `${E}:${O(q)}`, P = c.get(X);
|
|
3633
3624
|
if (rt(q, P, G)) {
|
|
3634
3625
|
c.set(X, G);
|
|
3635
3626
|
continue;
|
|
3636
3627
|
}
|
|
3637
|
-
P !== G && await
|
|
3628
|
+
P !== G && await j(q, L, An(q, U));
|
|
3638
3629
|
}
|
|
3639
3630
|
}
|
|
3640
3631
|
}
|
|
3641
|
-
function
|
|
3642
|
-
const
|
|
3632
|
+
function h(u, v, C) {
|
|
3633
|
+
const L = v[u.code];
|
|
3643
3634
|
return {
|
|
3644
3635
|
field: u,
|
|
3645
3636
|
section: t.section,
|
|
3646
3637
|
sectionView: t.section,
|
|
3647
3638
|
node: t.node,
|
|
3648
|
-
row:
|
|
3649
|
-
rowIndex:
|
|
3639
|
+
row: v,
|
|
3640
|
+
rowIndex: C,
|
|
3650
3641
|
editing: t.editing,
|
|
3651
|
-
modelValue:
|
|
3652
|
-
value:
|
|
3642
|
+
modelValue: L,
|
|
3643
|
+
value: L,
|
|
3653
3644
|
state: t.state,
|
|
3654
3645
|
actions: t.actions,
|
|
3655
|
-
updateModelValue: (
|
|
3646
|
+
updateModelValue: (E) => b(v, C, u, E)
|
|
3656
3647
|
};
|
|
3657
3648
|
}
|
|
3658
|
-
function
|
|
3659
|
-
const
|
|
3660
|
-
if (
|
|
3661
|
-
const
|
|
3662
|
-
return
|
|
3649
|
+
function T(u) {
|
|
3650
|
+
const v = String(u.code || "").trim(), C = v ? `field-${v}` : "";
|
|
3651
|
+
if (C && n[C]) return C;
|
|
3652
|
+
const L = C.toLowerCase();
|
|
3653
|
+
return L !== C && n[L] ? L : "";
|
|
3663
3654
|
}
|
|
3664
|
-
function
|
|
3655
|
+
function p(u) {
|
|
3665
3656
|
return !u.readonly && !u.disabled;
|
|
3666
3657
|
}
|
|
3667
|
-
function
|
|
3668
|
-
return Pn(u,
|
|
3658
|
+
function N(u, v) {
|
|
3659
|
+
return Pn(u, v, t.editing);
|
|
3669
3660
|
}
|
|
3670
|
-
function
|
|
3661
|
+
function y(u) {
|
|
3671
3662
|
return u.width ?? (Bt(u) ? 56 : void 0);
|
|
3672
3663
|
}
|
|
3673
|
-
function
|
|
3664
|
+
function F(u) {
|
|
3674
3665
|
if (!u.width)
|
|
3675
3666
|
return u.minWidth ?? (Bt(u) ? 56 : void 0);
|
|
3676
3667
|
}
|
|
3677
|
-
function
|
|
3668
|
+
function O(u) {
|
|
3678
3669
|
return u.key || u.id || u.code;
|
|
3679
3670
|
}
|
|
3680
|
-
function
|
|
3671
|
+
function z(u) {
|
|
3681
3672
|
return l.value + u;
|
|
3682
3673
|
}
|
|
3683
3674
|
function ne(u) {
|
|
3684
3675
|
return Et(u);
|
|
3685
3676
|
}
|
|
3686
|
-
let
|
|
3687
|
-
const
|
|
3688
|
-
function
|
|
3689
|
-
const
|
|
3690
|
-
if (
|
|
3691
|
-
const
|
|
3692
|
-
if (
|
|
3693
|
-
|
|
3694
|
-
const
|
|
3695
|
-
return
|
|
3677
|
+
let x = 0;
|
|
3678
|
+
const R = /* @__PURE__ */ new WeakMap();
|
|
3679
|
+
function D(u) {
|
|
3680
|
+
const v = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
|
|
3681
|
+
if (v != null && v !== "") return String(v);
|
|
3682
|
+
const C = u, L = R.get(C);
|
|
3683
|
+
if (L) return L;
|
|
3684
|
+
x += 1;
|
|
3685
|
+
const E = `local-${x}`;
|
|
3686
|
+
return R.set(C, E), E;
|
|
3696
3687
|
}
|
|
3697
|
-
function
|
|
3688
|
+
function B(u) {
|
|
3698
3689
|
return u.required || u.isRequired;
|
|
3699
3690
|
}
|
|
3700
3691
|
return Be(
|
|
@@ -3705,12 +3696,12 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3705
3696
|
), Be(
|
|
3706
3697
|
() => t.editing,
|
|
3707
3698
|
() => {
|
|
3708
|
-
|
|
3699
|
+
I();
|
|
3709
3700
|
},
|
|
3710
3701
|
{ immediate: !0 }
|
|
3711
|
-
), (u,
|
|
3712
|
-
const
|
|
3713
|
-
return
|
|
3702
|
+
), (u, v) => {
|
|
3703
|
+
const C = en, L = Hn("Delete"), E = Yt, q = It, U = Xt;
|
|
3704
|
+
return k(), Y("div", {
|
|
3714
3705
|
class: He(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
|
|
3715
3706
|
}, [
|
|
3716
3707
|
te("div", fa, [
|
|
@@ -3719,43 +3710,43 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3719
3710
|
data: u.section.rows,
|
|
3720
3711
|
fit: !0,
|
|
3721
3712
|
"table-layout": "auto",
|
|
3722
|
-
"row-key":
|
|
3713
|
+
"row-key": D
|
|
3723
3714
|
}, {
|
|
3724
3715
|
default: J(() => [
|
|
3725
|
-
r.value ? (
|
|
3716
|
+
r.value ? (k(), H(C, {
|
|
3726
3717
|
key: 0,
|
|
3727
3718
|
type: "index",
|
|
3728
3719
|
label: i.value,
|
|
3729
3720
|
width: s.value,
|
|
3730
|
-
index:
|
|
3721
|
+
index: z
|
|
3731
3722
|
}, null, 8, ["label", "width"])) : ue("", !0),
|
|
3732
|
-
(
|
|
3733
|
-
key:
|
|
3723
|
+
(k(!0), Y(be, null, ge(a.value, (G) => (k(), H(C, {
|
|
3724
|
+
key: O(G),
|
|
3734
3725
|
prop: G.code,
|
|
3735
3726
|
label: G.label,
|
|
3736
|
-
width:
|
|
3737
|
-
"min-width":
|
|
3727
|
+
width: y(G),
|
|
3728
|
+
"min-width": F(G)
|
|
3738
3729
|
}, {
|
|
3739
3730
|
header: J(() => [
|
|
3740
3731
|
te("span", pa, [
|
|
3741
|
-
|
|
3732
|
+
B(G) ? (k(), Y("span", ma, "*")) : ue("", !0),
|
|
3742
3733
|
te("span", null, fe(G.label), 1)
|
|
3743
3734
|
])
|
|
3744
3735
|
]),
|
|
3745
3736
|
default: J(({ row: X, $index: P }) => [
|
|
3746
|
-
|
|
3737
|
+
T(G) ? ee(u.$slots, T(G), oe({
|
|
3747
3738
|
key: 0,
|
|
3748
3739
|
ref_for: !0
|
|
3749
|
-
},
|
|
3740
|
+
}, h(G, X, P)), void 0, !0) : u.editing && p(G) ? (k(), H(Bn, {
|
|
3750
3741
|
key: 1,
|
|
3751
3742
|
field: G,
|
|
3752
3743
|
"model-value": X[G.code],
|
|
3753
3744
|
section: u.section,
|
|
3754
3745
|
row: X,
|
|
3755
3746
|
"row-index": P,
|
|
3756
|
-
onLoadOptions: (Z) =>
|
|
3757
|
-
"onUpdate:modelValue": (Z) =>
|
|
3758
|
-
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (
|
|
3747
|
+
onLoadOptions: (Z) => j(G, X, Z),
|
|
3748
|
+
"onUpdate:modelValue": (Z) => b(X, P, G, Z)
|
|
3749
|
+
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
|
|
3759
3750
|
key: 2,
|
|
3760
3751
|
field: G,
|
|
3761
3752
|
value: X[G.code],
|
|
@@ -3766,16 +3757,16 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3766
3757
|
]),
|
|
3767
3758
|
_: 2
|
|
3768
3759
|
}, 1032, ["prop", "label", "width", "min-width"]))), 128)),
|
|
3769
|
-
u.editing ? (
|
|
3760
|
+
u.editing ? (k(), H(C, {
|
|
3770
3761
|
key: 1,
|
|
3771
3762
|
label: "操作",
|
|
3772
3763
|
width: "104",
|
|
3773
3764
|
fixed: "right"
|
|
3774
3765
|
}, {
|
|
3775
3766
|
default: J(({ row: G, $index: X }) => [
|
|
3776
|
-
|
|
3767
|
+
$(G, X) ? (k(), H(da, {
|
|
3777
3768
|
key: 0,
|
|
3778
|
-
onConfirm: (P) =>
|
|
3769
|
+
onConfirm: (P) => _(X)
|
|
3779
3770
|
}, {
|
|
3780
3771
|
default: J(() => [
|
|
3781
3772
|
we(q, {
|
|
@@ -3784,13 +3775,13 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3784
3775
|
type: "danger"
|
|
3785
3776
|
}, {
|
|
3786
3777
|
default: J(() => [
|
|
3787
|
-
we(
|
|
3778
|
+
we(E, { class: "global-info-table-renderer__delete-icon" }, {
|
|
3788
3779
|
default: J(() => [
|
|
3789
|
-
we(
|
|
3780
|
+
we(L)
|
|
3790
3781
|
]),
|
|
3791
3782
|
_: 1
|
|
3792
3783
|
}),
|
|
3793
|
-
|
|
3784
|
+
v[0] || (v[0] = Ye(" 删除 "))
|
|
3794
3785
|
]),
|
|
3795
3786
|
_: 1
|
|
3796
3787
|
})
|
|
@@ -3807,7 +3798,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3807
3798
|
], 2);
|
|
3808
3799
|
};
|
|
3809
3800
|
}
|
|
3810
|
-
}),
|
|
3801
|
+
}), ha = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-bfc7b8fe"]]), ga = /* @__PURE__ */ ce({
|
|
3811
3802
|
name: "GlobalInfoAutoRenderer",
|
|
3812
3803
|
__name: "GlobalInfoAutoRenderer",
|
|
3813
3804
|
props: {
|
|
@@ -3819,7 +3810,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3819
3810
|
renderConfig: {}
|
|
3820
3811
|
},
|
|
3821
3812
|
setup(e) {
|
|
3822
|
-
return (t, n) => t.section.renderType === "table" ? (
|
|
3813
|
+
return (t, n) => t.section.renderType === "table" ? (k(), H(ha, {
|
|
3823
3814
|
key: 0,
|
|
3824
3815
|
section: t.section,
|
|
3825
3816
|
node: t.node,
|
|
@@ -3827,7 +3818,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
|
|
|
3827
3818
|
state: t.state,
|
|
3828
3819
|
actions: t.actions,
|
|
3829
3820
|
"render-config": t.renderConfig
|
|
3830
|
-
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (
|
|
3821
|
+
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), H(ua, {
|
|
3831
3822
|
key: 1,
|
|
3832
3823
|
section: t.section,
|
|
3833
3824
|
node: t.node,
|
|
@@ -3866,7 +3857,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3866
3857
|
renderConfig: {}
|
|
3867
3858
|
},
|
|
3868
3859
|
setup(e) {
|
|
3869
|
-
const t = e, n = Ee(), o =
|
|
3860
|
+
const t = e, n = Ee(), o = V(() => lt(
|
|
3870
3861
|
t.section.fields,
|
|
3871
3862
|
t.section,
|
|
3872
3863
|
t.renderConfig,
|
|
@@ -3874,7 +3865,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3874
3865
|
values: t.section.model,
|
|
3875
3866
|
rows: t.section.renderType === "table" ? t.section.rows : void 0
|
|
3876
3867
|
}
|
|
3877
|
-
)), r =
|
|
3868
|
+
)), r = V(() => t.editing ?? t.actions.isEditing(t.section)), i = V(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), s = V(() => {
|
|
3878
3869
|
const a = Ct(
|
|
3879
3870
|
n,
|
|
3880
3871
|
"section",
|
|
@@ -3884,7 +3875,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3884
3875
|
a,
|
|
3885
3876
|
c,
|
|
3886
3877
|
"default"
|
|
3887
|
-
].find((
|
|
3878
|
+
].find((m) => !!(m && n[m])) ?? "";
|
|
3888
3879
|
});
|
|
3889
3880
|
function l(a) {
|
|
3890
3881
|
return a === "form" || a === "table" ? a : "";
|
|
@@ -3901,7 +3892,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3901
3892
|
renderConfig: a.renderConfig,
|
|
3902
3893
|
state: a.state,
|
|
3903
3894
|
actions: a.actions
|
|
3904
|
-
}) : (
|
|
3895
|
+
}) : (k(), H(ga, {
|
|
3905
3896
|
key: 1,
|
|
3906
3897
|
section: a.section,
|
|
3907
3898
|
node: a.node,
|
|
@@ -3927,7 +3918,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3927
3918
|
error: (e) => !0
|
|
3928
3919
|
},
|
|
3929
3920
|
setup(e, { emit: t, slots: n }) {
|
|
3930
|
-
const o =
|
|
3921
|
+
const o = he(!1);
|
|
3931
3922
|
Be(
|
|
3932
3923
|
() => e.boundaryKey,
|
|
3933
3924
|
() => {
|
|
@@ -3967,137 +3958,137 @@ const ya = /* @__PURE__ */ ce({
|
|
|
3967
3958
|
onSave: { type: Function }
|
|
3968
3959
|
},
|
|
3969
3960
|
setup(e) {
|
|
3970
|
-
const t = e, n = Ee(), o =
|
|
3971
|
-
const
|
|
3972
|
-
return
|
|
3973
|
-
values:
|
|
3974
|
-
rows:
|
|
3961
|
+
const t = e, n = Ee(), o = he(!1), r = he(null), i = he(null), s = V(() => !!t.hideHeader), l = V(() => t.actions.getSectionStatus(t.node)), a = V(() => t.actions.getSection(t.node) ?? i.value), c = V(() => {
|
|
3962
|
+
const y = a.value;
|
|
3963
|
+
return y ? lt(y.fields, y, t.renderConfig, {
|
|
3964
|
+
values: y.model,
|
|
3965
|
+
rows: y.renderType === "table" ? y.rows : void 0
|
|
3975
3966
|
}) : [];
|
|
3976
|
-
}),
|
|
3977
|
-
const
|
|
3978
|
-
return
|
|
3979
|
-
}),
|
|
3967
|
+
}), m = V(() => a.value?.title || t.node.tagName || t.node.label || "-"), _ = V(() => !!(a.value && t.actions.isEditing(a.value))), $ = V(() => a.value?.renderType === "table"), b = V(() => o.value || l.value.loading), A = V(() => S(r.value || l.value.error)), g = V(() => {
|
|
3968
|
+
const y = a.value;
|
|
3969
|
+
return y ? y.renderType === "table" && y.rows.length === 0 || c.value.length === 0 : !0;
|
|
3970
|
+
}), w = V(() => ({
|
|
3980
3971
|
node: t.node,
|
|
3981
3972
|
section: a.value,
|
|
3982
3973
|
sectionView: a.value,
|
|
3983
3974
|
fields: c.value,
|
|
3984
3975
|
renderConfig: t.renderConfig,
|
|
3985
|
-
title:
|
|
3986
|
-
editing:
|
|
3987
|
-
loading:
|
|
3976
|
+
title: m.value,
|
|
3977
|
+
editing: _.value,
|
|
3978
|
+
loading: b.value,
|
|
3988
3979
|
error: r.value || l.value.error,
|
|
3989
3980
|
errorMessage: A.value,
|
|
3990
|
-
isEmpty:
|
|
3991
|
-
empty:
|
|
3981
|
+
isEmpty: g.value,
|
|
3982
|
+
empty: g.value,
|
|
3992
3983
|
sectionStatus: l.value,
|
|
3993
3984
|
state: t.state,
|
|
3994
3985
|
actions: t.actions,
|
|
3995
|
-
reload:
|
|
3996
|
-
handleEdit:
|
|
3997
|
-
handleCancel:
|
|
3998
|
-
handleAddTableRow:
|
|
3999
|
-
handleSave:
|
|
3986
|
+
reload: N,
|
|
3987
|
+
handleEdit: j,
|
|
3988
|
+
handleCancel: I,
|
|
3989
|
+
handleAddTableRow: h,
|
|
3990
|
+
handleSave: T
|
|
4000
3991
|
}));
|
|
4001
|
-
function
|
|
4002
|
-
return
|
|
3992
|
+
function S(y) {
|
|
3993
|
+
return y ? y instanceof Error ? y.message : String(y) : "";
|
|
4003
3994
|
}
|
|
4004
|
-
async function
|
|
4005
|
-
const
|
|
4006
|
-
|
|
3995
|
+
async function j() {
|
|
3996
|
+
const y = a.value;
|
|
3997
|
+
y && (await t.onEdit?.(y, t.node), t.onEdit || t.actions.startEdit(y));
|
|
4007
3998
|
}
|
|
4008
|
-
async function
|
|
4009
|
-
const
|
|
4010
|
-
|
|
3999
|
+
async function I() {
|
|
4000
|
+
const y = a.value;
|
|
4001
|
+
y && (await t.onCancel?.(y, t.node), t.onCancel || t.actions.cancelEdit(y));
|
|
4011
4002
|
}
|
|
4012
|
-
function
|
|
4013
|
-
const
|
|
4014
|
-
if (!
|
|
4015
|
-
const
|
|
4016
|
-
t.actions.saveRow(
|
|
4003
|
+
function h() {
|
|
4004
|
+
const y = a.value;
|
|
4005
|
+
if (!y) return;
|
|
4006
|
+
const F = y.fields.reduce((O, z) => (O[z.code] = z.value ?? "", O), { __rowKey: `new-${Date.now()}` });
|
|
4007
|
+
t.actions.saveRow(y, F, -1);
|
|
4017
4008
|
}
|
|
4018
|
-
async function
|
|
4019
|
-
const
|
|
4020
|
-
if (
|
|
4009
|
+
async function T() {
|
|
4010
|
+
const y = a.value;
|
|
4011
|
+
if (y)
|
|
4021
4012
|
try {
|
|
4022
4013
|
if (t.onSave) {
|
|
4023
|
-
await t.onSave(
|
|
4014
|
+
await t.onSave(y, t.node);
|
|
4024
4015
|
return;
|
|
4025
4016
|
}
|
|
4026
|
-
await t.actions.saveSection(
|
|
4027
|
-
} catch (
|
|
4028
|
-
r.value =
|
|
4017
|
+
await t.actions.saveSection(y);
|
|
4018
|
+
} catch (F) {
|
|
4019
|
+
r.value = F, console.error("[GlobalInfoSectionBlock] save section failed", F);
|
|
4029
4020
|
}
|
|
4030
4021
|
}
|
|
4031
|
-
function
|
|
4032
|
-
r.value =
|
|
4022
|
+
function p(y) {
|
|
4023
|
+
r.value = y;
|
|
4033
4024
|
}
|
|
4034
|
-
async function
|
|
4025
|
+
async function N() {
|
|
4035
4026
|
o.value = !0, r.value = null, i.value = null;
|
|
4036
4027
|
try {
|
|
4037
4028
|
i.value = await t.actions.loadSection(t.node);
|
|
4038
|
-
} catch (
|
|
4039
|
-
r.value =
|
|
4029
|
+
} catch (y) {
|
|
4030
|
+
r.value = y, console.error("[GlobalInfoSectionBlock] load section failed", y);
|
|
4040
4031
|
} finally {
|
|
4041
4032
|
o.value = !1;
|
|
4042
4033
|
}
|
|
4043
4034
|
}
|
|
4044
4035
|
return Kt(() => {
|
|
4045
|
-
|
|
4036
|
+
N();
|
|
4046
4037
|
}), Be(
|
|
4047
4038
|
() => t.node.key,
|
|
4048
4039
|
() => {
|
|
4049
|
-
|
|
4040
|
+
N();
|
|
4050
4041
|
}
|
|
4051
|
-
), (
|
|
4052
|
-
const
|
|
4053
|
-
return
|
|
4054
|
-
s.value ? ue("", !0) : (
|
|
4055
|
-
ee(
|
|
4042
|
+
), (y, F) => {
|
|
4043
|
+
const O = It;
|
|
4044
|
+
return k(), Y("section", Sa, [
|
|
4045
|
+
s.value ? ue("", !0) : (k(), Y("header", wa, [
|
|
4046
|
+
ee(y.$slots, "header", Me(Fe(w.value)), () => [
|
|
4056
4047
|
te("div", Ia, [
|
|
4057
|
-
|
|
4058
|
-
te("h3", _a, fe(
|
|
4048
|
+
F[0] || (F[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
4049
|
+
te("h3", _a, fe(m.value), 1)
|
|
4059
4050
|
]),
|
|
4060
|
-
ee(
|
|
4061
|
-
a.value ? (
|
|
4062
|
-
|
|
4063
|
-
we(
|
|
4051
|
+
ee(y.$slots, "actions", Me(Fe(w.value)), () => [
|
|
4052
|
+
a.value ? (k(), Y("div", $a, [
|
|
4053
|
+
_.value ? (k(), Y(be, { key: 1 }, [
|
|
4054
|
+
we(O, {
|
|
4064
4055
|
class: "global-info-section-block__cancel",
|
|
4065
4056
|
disabled: l.value.saving,
|
|
4066
|
-
onClick:
|
|
4057
|
+
onClick: I
|
|
4067
4058
|
}, {
|
|
4068
|
-
default: J(() =>
|
|
4059
|
+
default: J(() => F[2] || (F[2] = [
|
|
4069
4060
|
Ye(" 取消 ")
|
|
4070
4061
|
])),
|
|
4071
4062
|
_: 1
|
|
4072
4063
|
}, 8, ["disabled"]),
|
|
4073
|
-
|
|
4064
|
+
$.value ? (k(), H(O, {
|
|
4074
4065
|
key: 0,
|
|
4075
4066
|
class: "global-info-section-block__add",
|
|
4076
4067
|
disabled: l.value.saving,
|
|
4077
|
-
onClick:
|
|
4068
|
+
onClick: h
|
|
4078
4069
|
}, {
|
|
4079
|
-
default: J(() =>
|
|
4070
|
+
default: J(() => F[3] || (F[3] = [
|
|
4080
4071
|
Ye(" 新增 ")
|
|
4081
4072
|
])),
|
|
4082
4073
|
_: 1
|
|
4083
4074
|
}, 8, ["disabled"])) : ue("", !0),
|
|
4084
|
-
we(
|
|
4075
|
+
we(O, {
|
|
4085
4076
|
class: "global-info-section-block__confirm",
|
|
4086
4077
|
loading: l.value.saving,
|
|
4087
|
-
onClick:
|
|
4078
|
+
onClick: T
|
|
4088
4079
|
}, {
|
|
4089
4080
|
default: J(() => [
|
|
4090
|
-
Ye(fe(
|
|
4081
|
+
Ye(fe($.value ? "确认" : "保存"), 1)
|
|
4091
4082
|
]),
|
|
4092
4083
|
_: 1
|
|
4093
4084
|
}, 8, ["loading"])
|
|
4094
|
-
], 64)) : (
|
|
4085
|
+
], 64)) : (k(), H(O, {
|
|
4095
4086
|
key: 0,
|
|
4096
4087
|
class: "global-info-section-block__edit",
|
|
4097
|
-
disabled: l.value.saving ||
|
|
4098
|
-
onClick:
|
|
4088
|
+
disabled: l.value.saving || b.value,
|
|
4089
|
+
onClick: j
|
|
4099
4090
|
}, {
|
|
4100
|
-
default: J(() =>
|
|
4091
|
+
default: J(() => F[1] || (F[1] = [
|
|
4101
4092
|
te("svg", {
|
|
4102
4093
|
class: "global-info-section-block__edit-icon",
|
|
4103
4094
|
viewBox: "0 0 12 12",
|
|
@@ -4118,34 +4109,34 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4118
4109
|
], !0)
|
|
4119
4110
|
])),
|
|
4120
4111
|
te("div", Ca, [
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
], !0) : !a.value ||
|
|
4124
|
-
|
|
4125
|
-
], !0) : (
|
|
4112
|
+
b.value ? ee(y.$slots, "loading", Me(oe({ key: 0 }, w.value)), () => [
|
|
4113
|
+
F[4] || (F[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
|
|
4114
|
+
], !0) : !a.value || g.value ? ee(y.$slots, "empty", Me(oe({ key: 1 }, w.value)), () => [
|
|
4115
|
+
F[5] || (F[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
|
|
4116
|
+
], !0) : (k(), H(ba, {
|
|
4126
4117
|
key: 2,
|
|
4127
|
-
"boundary-key":
|
|
4128
|
-
label:
|
|
4129
|
-
onError:
|
|
4118
|
+
"boundary-key": y.node.key,
|
|
4119
|
+
label: m.value,
|
|
4120
|
+
onError: p
|
|
4130
4121
|
}, {
|
|
4131
4122
|
fallback: J(() => [
|
|
4132
|
-
ee(
|
|
4133
|
-
|
|
4123
|
+
ee(y.$slots, "empty", Me(Fe(w.value)), () => [
|
|
4124
|
+
F[6] || (F[6] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
|
|
4134
4125
|
], !0)
|
|
4135
4126
|
]),
|
|
4136
4127
|
default: J(() => [
|
|
4137
4128
|
we(ya, {
|
|
4138
4129
|
section: a.value,
|
|
4139
|
-
node:
|
|
4140
|
-
editing:
|
|
4141
|
-
state:
|
|
4142
|
-
actions:
|
|
4143
|
-
"render-config":
|
|
4130
|
+
node: y.node,
|
|
4131
|
+
editing: _.value,
|
|
4132
|
+
state: y.state,
|
|
4133
|
+
actions: y.actions,
|
|
4134
|
+
"render-config": y.renderConfig
|
|
4144
4135
|
}, je({ _: 2 }, [
|
|
4145
|
-
ge(re(n), (
|
|
4136
|
+
ge(re(n), (z, ne) => ({
|
|
4146
4137
|
name: ne,
|
|
4147
|
-
fn: J((
|
|
4148
|
-
ee(
|
|
4138
|
+
fn: J((x) => [
|
|
4139
|
+
ee(y.$slots, ne, Me(Fe({ ...w.value, ...x })), void 0, !0)
|
|
4149
4140
|
])
|
|
4150
4141
|
}))
|
|
4151
4142
|
]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])
|
|
@@ -4168,20 +4159,20 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4168
4159
|
renderConfig: {}
|
|
4169
4160
|
},
|
|
4170
4161
|
setup(e) {
|
|
4171
|
-
const t = e, n = Ee(), o =
|
|
4172
|
-
function i(c,
|
|
4173
|
-
const
|
|
4162
|
+
const t = e, n = Ee(), o = V(() => t.group.tagName || t.group.label || "-"), r = V(() => t.children.length <= 1);
|
|
4163
|
+
function i(c, m) {
|
|
4164
|
+
const _ = t.actions.getSection(c);
|
|
4174
4165
|
return {
|
|
4175
4166
|
node: c,
|
|
4176
4167
|
group: t.group,
|
|
4177
4168
|
sectionNode: c,
|
|
4178
|
-
section:
|
|
4179
|
-
sectionView:
|
|
4169
|
+
section: _,
|
|
4170
|
+
sectionView: _,
|
|
4180
4171
|
state: t.state,
|
|
4181
4172
|
actions: t.actions,
|
|
4182
4173
|
renderConfig: t.renderConfig,
|
|
4183
|
-
index:
|
|
4184
|
-
editing: !!(
|
|
4174
|
+
index: m,
|
|
4175
|
+
editing: !!(_ && t.actions.isEditing(_)),
|
|
4185
4176
|
sectionStatus: t.actions.getSectionStatus(c),
|
|
4186
4177
|
isSelfSection: l(c, 0) === l(t.group, 0),
|
|
4187
4178
|
handleEdit: () => t.actions.startEdit(c),
|
|
@@ -4190,16 +4181,16 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4190
4181
|
};
|
|
4191
4182
|
}
|
|
4192
4183
|
function s(c) {
|
|
4193
|
-
const
|
|
4194
|
-
return Ct(n, "section", Nn(c,
|
|
4184
|
+
const m = t.actions.getSection(c);
|
|
4185
|
+
return Ct(n, "section", Nn(c, m));
|
|
4195
4186
|
}
|
|
4196
|
-
function l(c,
|
|
4197
|
-
return c.key || c.id || c.infSetId || c.tagId || `${
|
|
4187
|
+
function l(c, m) {
|
|
4188
|
+
return c.key || c.id || c.infSetId || c.tagId || `${m}`;
|
|
4198
4189
|
}
|
|
4199
4190
|
function a(c) {
|
|
4200
4191
|
return `global-info-section-${l(c, 0)}`;
|
|
4201
4192
|
}
|
|
4202
|
-
return (c,
|
|
4193
|
+
return (c, m) => (k(), Y("section", Ta, [
|
|
4203
4194
|
ee(c.$slots, "header", {
|
|
4204
4195
|
group: c.group,
|
|
4205
4196
|
children: c.children,
|
|
@@ -4211,7 +4202,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4211
4202
|
isEmpty: c.children.length === 0
|
|
4212
4203
|
}, () => [
|
|
4213
4204
|
te("header", Oa, [
|
|
4214
|
-
|
|
4205
|
+
m[0] || (m[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
|
|
4215
4206
|
te("h2", Da, fe(o.value), 1)
|
|
4216
4207
|
])
|
|
4217
4208
|
], !0),
|
|
@@ -4225,30 +4216,30 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4225
4216
|
renderConfig: c.renderConfig,
|
|
4226
4217
|
index: c.index,
|
|
4227
4218
|
isEmpty: c.children.length === 0
|
|
4228
|
-
}, void 0, !0) : (
|
|
4229
|
-
(
|
|
4230
|
-
id: a(
|
|
4231
|
-
key: l(
|
|
4219
|
+
}, void 0, !0) : (k(), Y(be, { key: 1 }, [
|
|
4220
|
+
(k(!0), Y(be, null, ge(c.children, (_, $) => (k(), Y("div", {
|
|
4221
|
+
id: a(_),
|
|
4222
|
+
key: l(_, $),
|
|
4232
4223
|
class: "global-info-group__section"
|
|
4233
4224
|
}, [
|
|
4234
|
-
s(
|
|
4225
|
+
s(_) ? ee(c.$slots, s(_), oe({
|
|
4235
4226
|
key: 0,
|
|
4236
4227
|
ref_for: !0
|
|
4237
|
-
}, i(
|
|
4228
|
+
}, i(_, $)), void 0, !0) : re(n).section ? ee(c.$slots, "section", oe({
|
|
4238
4229
|
key: 1,
|
|
4239
4230
|
ref_for: !0
|
|
4240
|
-
}, i(
|
|
4231
|
+
}, i(_, $)), void 0, !0) : (k(), H(Ma, {
|
|
4241
4232
|
key: 2,
|
|
4242
|
-
node:
|
|
4233
|
+
node: _,
|
|
4243
4234
|
state: c.state,
|
|
4244
4235
|
actions: c.actions,
|
|
4245
4236
|
"hide-header": r.value,
|
|
4246
4237
|
"render-config": c.renderConfig
|
|
4247
4238
|
}, je({ _: 2 }, [
|
|
4248
|
-
ge(re(n), (
|
|
4239
|
+
ge(re(n), (b, A) => ({
|
|
4249
4240
|
name: A,
|
|
4250
|
-
fn: J((
|
|
4251
|
-
ee(c.$slots, A, oe({ ref_for: !0 },
|
|
4241
|
+
fn: J((g) => [
|
|
4242
|
+
ee(c.$slots, A, oe({ ref_for: !0 }, g), void 0, !0)
|
|
4252
4243
|
])
|
|
4253
4244
|
}))
|
|
4254
4245
|
]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
|
|
@@ -4263,7 +4254,7 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4263
4254
|
index: -1,
|
|
4264
4255
|
renderConfig: c.renderConfig
|
|
4265
4256
|
}, () => [
|
|
4266
|
-
|
|
4257
|
+
m[1] || (m[1] = te("div", { class: "global-info-group__empty" }, "暂无数据", -1))
|
|
4267
4258
|
], !0) : ue("", !0)
|
|
4268
4259
|
], 64))
|
|
4269
4260
|
])
|
|
@@ -4279,82 +4270,82 @@ const ya = /* @__PURE__ */ ce({
|
|
|
4279
4270
|
renderConfig: {}
|
|
4280
4271
|
},
|
|
4281
4272
|
setup(e) {
|
|
4282
|
-
const t = e, n = Ee(), o =
|
|
4283
|
-
const
|
|
4273
|
+
const t = e, n = Ee(), o = V(() => {
|
|
4274
|
+
const m = t.nodes.filter((S) => r(S).length > 0), _ = t.nodes.filter((S) => r(S).length === 0), $ = _.filter((S) => i(S)), b = _.filter((S) => !i(S)), A = m.map((S) => ({ group: S, children: r(S) })), g = $.map((S) => ({ group: S, children: [S] }));
|
|
4284
4275
|
if (A.length === 0)
|
|
4285
|
-
return
|
|
4286
|
-
const
|
|
4287
|
-
return [...A, ...
|
|
4276
|
+
return $.length > 0 ? g : c(b);
|
|
4277
|
+
const w = c(b);
|
|
4278
|
+
return [...A, ...g, ...w];
|
|
4288
4279
|
});
|
|
4289
|
-
function r(
|
|
4290
|
-
return
|
|
4280
|
+
function r(m) {
|
|
4281
|
+
return m.children ?? [];
|
|
4291
4282
|
}
|
|
4292
|
-
function i(
|
|
4293
|
-
return !String(
|
|
4283
|
+
function i(m) {
|
|
4284
|
+
return !String(m.parentId || m.parentTagId || "").trim();
|
|
4294
4285
|
}
|
|
4295
|
-
function s(
|
|
4296
|
-
return Ct(n, "group", jn(
|
|
4286
|
+
function s(m) {
|
|
4287
|
+
return Ct(n, "group", jn(m));
|
|
4297
4288
|
}
|
|
4298
|
-
function l(
|
|
4299
|
-
return
|
|
4289
|
+
function l(m, _) {
|
|
4290
|
+
return m.key || m.id || m.tagId || `${_}`;
|
|
4300
4291
|
}
|
|
4301
|
-
function a(
|
|
4302
|
-
const
|
|
4292
|
+
function a(m) {
|
|
4293
|
+
const _ = m[0], $ = _?.raw ?? {}, b = String($.parentTagName || $.parentName || $.parentLabel || _?.parentId || "信息");
|
|
4303
4294
|
return {
|
|
4304
|
-
...
|
|
4305
|
-
key: `${
|
|
4306
|
-
id: String(
|
|
4307
|
-
tagId: String(
|
|
4308
|
-
tagName:
|
|
4309
|
-
label:
|
|
4310
|
-
children:
|
|
4295
|
+
..._,
|
|
4296
|
+
key: `${_?.parentId || _?.parentTagId || _?.key || "global-info"}-group`,
|
|
4297
|
+
id: String(_?.parentId || _?.parentTagId || _?.id || "global-info-group"),
|
|
4298
|
+
tagId: String(_?.parentTagId || _?.parentId || _?.tagId || "global-info-group"),
|
|
4299
|
+
tagName: b,
|
|
4300
|
+
label: b,
|
|
4301
|
+
children: m
|
|
4311
4302
|
};
|
|
4312
4303
|
}
|
|
4313
|
-
function c(
|
|
4314
|
-
const
|
|
4315
|
-
return
|
|
4316
|
-
const
|
|
4317
|
-
A.push(
|
|
4318
|
-
}), Array.from(
|
|
4319
|
-
group: a(
|
|
4320
|
-
children:
|
|
4304
|
+
function c(m) {
|
|
4305
|
+
const _ = /* @__PURE__ */ new Map();
|
|
4306
|
+
return m.forEach(($) => {
|
|
4307
|
+
const b = String($.parentId || $.parentTagId || "global-info-flat"), A = _.get(b) ?? [];
|
|
4308
|
+
A.push($), _.set(b, A);
|
|
4309
|
+
}), Array.from(_.values()).map(($) => ({
|
|
4310
|
+
group: a($),
|
|
4311
|
+
children: $
|
|
4321
4312
|
}));
|
|
4322
4313
|
}
|
|
4323
|
-
return (
|
|
4324
|
-
(
|
|
4325
|
-
key: l(
|
|
4314
|
+
return (m, _) => (k(), Y("div", Va, [
|
|
4315
|
+
(k(!0), Y(be, null, ge(o.value, ($, b) => (k(), Y(be, {
|
|
4316
|
+
key: l($.group, b)
|
|
4326
4317
|
}, [
|
|
4327
|
-
s(
|
|
4318
|
+
s($.group) ? ee(m.$slots, s($.group), {
|
|
4328
4319
|
key: 0,
|
|
4329
|
-
group:
|
|
4330
|
-
children:
|
|
4331
|
-
state:
|
|
4332
|
-
actions:
|
|
4333
|
-
renderConfig:
|
|
4334
|
-
index:
|
|
4335
|
-
isEmpty:
|
|
4336
|
-
}, void 0, !0) : re(n).group ? ee(
|
|
4320
|
+
group: $.group,
|
|
4321
|
+
children: $.children,
|
|
4322
|
+
state: m.state,
|
|
4323
|
+
actions: m.actions,
|
|
4324
|
+
renderConfig: m.renderConfig,
|
|
4325
|
+
index: b,
|
|
4326
|
+
isEmpty: $.children.length === 0
|
|
4327
|
+
}, void 0, !0) : re(n).group ? ee(m.$slots, "group", {
|
|
4337
4328
|
key: 1,
|
|
4338
|
-
group:
|
|
4339
|
-
children:
|
|
4340
|
-
state:
|
|
4341
|
-
actions:
|
|
4342
|
-
renderConfig:
|
|
4343
|
-
index:
|
|
4344
|
-
isEmpty:
|
|
4345
|
-
}, void 0, !0) : (
|
|
4329
|
+
group: $.group,
|
|
4330
|
+
children: $.children,
|
|
4331
|
+
state: m.state,
|
|
4332
|
+
actions: m.actions,
|
|
4333
|
+
renderConfig: m.renderConfig,
|
|
4334
|
+
index: b,
|
|
4335
|
+
isEmpty: $.children.length === 0
|
|
4336
|
+
}, void 0, !0) : (k(), H(La, {
|
|
4346
4337
|
key: 2,
|
|
4347
|
-
group:
|
|
4348
|
-
children:
|
|
4349
|
-
state:
|
|
4350
|
-
actions:
|
|
4351
|
-
"render-config":
|
|
4352
|
-
index:
|
|
4338
|
+
group: $.group,
|
|
4339
|
+
children: $.children,
|
|
4340
|
+
state: m.state,
|
|
4341
|
+
actions: m.actions,
|
|
4342
|
+
"render-config": m.renderConfig,
|
|
4343
|
+
index: b
|
|
4353
4344
|
}, je({ _: 2 }, [
|
|
4354
|
-
ge(re(n), (A,
|
|
4355
|
-
name:
|
|
4356
|
-
fn: J((
|
|
4357
|
-
ee(
|
|
4345
|
+
ge(re(n), (A, g) => ({
|
|
4346
|
+
name: g,
|
|
4347
|
+
fn: J((w) => [
|
|
4348
|
+
ee(m.$slots, g, oe({ ref_for: !0 }, w), void 0, !0)
|
|
4358
4349
|
])
|
|
4359
4350
|
}))
|
|
4360
4351
|
]), 1032, ["group", "children", "state", "actions", "render-config", "index"]))
|
|
@@ -4374,28 +4365,28 @@ export {
|
|
|
4374
4365
|
Ma as GlobalInfoSectionBlock,
|
|
4375
4366
|
ya as GlobalInfoSectionOutlet,
|
|
4376
4367
|
Ka as GlobalInfoSections,
|
|
4377
|
-
|
|
4368
|
+
ha as GlobalInfoTableRenderer,
|
|
4378
4369
|
Tt as JtAttachmentPreview,
|
|
4379
4370
|
Ha as JtAttachmentPreviewByParams,
|
|
4380
4371
|
tt as JtButton,
|
|
4381
4372
|
fo as JtCascader,
|
|
4382
|
-
|
|
4373
|
+
za as JtCrudTable,
|
|
4383
4374
|
mo as JtDatePicker,
|
|
4384
4375
|
Do as JtFilterBar,
|
|
4385
4376
|
So as JtFormItems,
|
|
4386
4377
|
mt as JtInput,
|
|
4387
|
-
|
|
4378
|
+
xa as JtPageHeader,
|
|
4388
4379
|
No as JtPagination,
|
|
4389
4380
|
go as JtSelect,
|
|
4390
4381
|
Vo as JtTable,
|
|
4391
|
-
|
|
4382
|
+
hr as buildGlobalInfoUpdatePayload,
|
|
4392
4383
|
pr as createEmptyGlobalInfoViewModel,
|
|
4393
4384
|
qa as isGlobalInfoNode,
|
|
4394
|
-
|
|
4385
|
+
hn as mergeGlobalInfoChildren,
|
|
4395
4386
|
mr as normalizeGlobalInfoDetail,
|
|
4396
4387
|
jt as normalizeGlobalInfoTree,
|
|
4397
|
-
|
|
4388
|
+
vr as resolveGlobalInfoRenderType,
|
|
4398
4389
|
Ja as setupJtAttachmentPreview,
|
|
4399
4390
|
Gr as useGlobalInfoController,
|
|
4400
|
-
|
|
4391
|
+
zr as validateGlobalInfoRequiredInfoSet
|
|
4401
4392
|
};
|