@jt-home/mfe-components 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +814 -793
- package/dist/style.css +1 -1
- package/package.json +99 -99
- package/readme.md +694 -694
package/dist/index.mjs
CHANGED
|
@@ -56,25 +56,25 @@ const vo = /* @__PURE__ */ pe({
|
|
|
56
56
|
},
|
|
57
57
|
setup(e) {
|
|
58
58
|
const t = e, n = Hn(), o = O(() => {
|
|
59
|
-
const { icon:
|
|
59
|
+
const { icon: c, ...a } = t;
|
|
60
60
|
return {
|
|
61
61
|
...sn(n),
|
|
62
62
|
...a
|
|
63
63
|
};
|
|
64
64
|
}), r = O(() => an(n));
|
|
65
|
-
return (
|
|
66
|
-
const
|
|
65
|
+
return (c, a) => {
|
|
66
|
+
const l = Jt, s = $t;
|
|
67
67
|
return I(), H(s, ae({ class: "jt-button" }, o.value, et(r.value)), {
|
|
68
68
|
default: U(() => [
|
|
69
|
-
|
|
69
|
+
c.$slots.icon ? (I(), H(l, {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "jt-button__icon"
|
|
72
72
|
}, {
|
|
73
73
|
default: U(() => [
|
|
74
|
-
te(
|
|
74
|
+
te(c.$slots, "icon", {}, void 0, !0)
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
77
|
-
})) : t.icon ? (I(), H(
|
|
77
|
+
})) : t.icon ? (I(), H(l, {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "jt-button__icon"
|
|
80
80
|
}, {
|
|
@@ -83,7 +83,7 @@ const vo = /* @__PURE__ */ pe({
|
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
85
|
})) : fe("", !0),
|
|
86
|
-
te(
|
|
86
|
+
te(c.$slots, "default", {}, void 0, !0)
|
|
87
87
|
]),
|
|
88
88
|
_: 3
|
|
89
89
|
}, 16);
|
|
@@ -94,7 +94,7 @@ const vo = /* @__PURE__ */ pe({
|
|
|
94
94
|
for (const [o, r] of t)
|
|
95
95
|
n[o] = r;
|
|
96
96
|
return n;
|
|
97
|
-
}, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-
|
|
97
|
+
}, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-28dbb12d"]]), ho = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
placeholder: Z("common.请选择"),
|
|
@@ -156,7 +156,12 @@ const yo = /* @__PURE__ */ pe({
|
|
|
156
156
|
}, ho),
|
|
157
157
|
emits: uo,
|
|
158
158
|
setup(e, { emit: t }) {
|
|
159
|
-
const n = e, o = O(() =>
|
|
159
|
+
const n = e, o = O(() => {
|
|
160
|
+
const f = go(n);
|
|
161
|
+
if (!f.disabled) return f;
|
|
162
|
+
const { placeholder: S, ...T } = f;
|
|
163
|
+
return T;
|
|
164
|
+
}), r = ge(n.modelValue);
|
|
160
165
|
Ee(
|
|
161
166
|
() => n.modelValue,
|
|
162
167
|
(f) => {
|
|
@@ -164,17 +169,17 @@ const yo = /* @__PURE__ */ pe({
|
|
|
164
169
|
},
|
|
165
170
|
{ deep: !0 }
|
|
166
171
|
);
|
|
167
|
-
const
|
|
172
|
+
const c = t;
|
|
168
173
|
function a(f, ...S) {
|
|
169
|
-
|
|
174
|
+
c(f, ...S);
|
|
170
175
|
}
|
|
171
|
-
function
|
|
176
|
+
function l(f) {
|
|
172
177
|
r.value = f, a("update:modelValue", f);
|
|
173
178
|
}
|
|
174
179
|
function s(f) {
|
|
175
180
|
a("change", f);
|
|
176
181
|
}
|
|
177
|
-
function
|
|
182
|
+
function i(f) {
|
|
178
183
|
a("focus", f);
|
|
179
184
|
}
|
|
180
185
|
function g(f) {
|
|
@@ -189,21 +194,21 @@ const yo = /* @__PURE__ */ pe({
|
|
|
189
194
|
function L(f) {
|
|
190
195
|
a("expandChange", f);
|
|
191
196
|
}
|
|
192
|
-
function
|
|
197
|
+
function V(f) {
|
|
193
198
|
a("removeTag", f);
|
|
194
199
|
}
|
|
195
200
|
return (f, S) => {
|
|
196
|
-
const
|
|
197
|
-
return I(), H(
|
|
201
|
+
const T = no;
|
|
202
|
+
return I(), H(T, ae({ class: "jt-cascader" }, o.value, {
|
|
198
203
|
"model-value": r.value,
|
|
199
|
-
"onUpdate:modelValue":
|
|
204
|
+
"onUpdate:modelValue": l,
|
|
200
205
|
onChange: s,
|
|
201
|
-
onFocus:
|
|
206
|
+
onFocus: i,
|
|
202
207
|
onBlur: g,
|
|
203
208
|
onClear: w,
|
|
204
209
|
onVisibleChange: $,
|
|
205
210
|
onExpandChange: L,
|
|
206
|
-
onRemoveTag:
|
|
211
|
+
onRemoveTag: V
|
|
207
212
|
}), null, 16, ["model-value"]);
|
|
208
213
|
};
|
|
209
214
|
}
|
|
@@ -260,24 +265,33 @@ const yo = /* @__PURE__ */ pe({
|
|
|
260
265
|
isRange: { type: Boolean }
|
|
261
266
|
},
|
|
262
267
|
setup(e) {
|
|
263
|
-
const t = e, n = O(
|
|
264
|
-
()
|
|
268
|
+
const t = e, n = O(() => {
|
|
269
|
+
if (t.disabled) {
|
|
270
|
+
const {
|
|
271
|
+
placeholder: r,
|
|
272
|
+
startPlaceholder: c,
|
|
273
|
+
endPlaceholder: a,
|
|
274
|
+
...l
|
|
275
|
+
} = t;
|
|
276
|
+
return l;
|
|
277
|
+
}
|
|
278
|
+
return {
|
|
265
279
|
...t,
|
|
266
280
|
startPlaceholder: t.startPlaceholder ?? (o(t.type) ? Z("common.开始日期") : void 0),
|
|
267
281
|
endPlaceholder: t.endPlaceholder ?? (o(t.type) ? Z("common.结束日期") : void 0)
|
|
268
|
-
}
|
|
269
|
-
);
|
|
282
|
+
};
|
|
283
|
+
});
|
|
270
284
|
function o(r) {
|
|
271
285
|
return r?.includes("range") ?? !1;
|
|
272
286
|
}
|
|
273
|
-
return (r,
|
|
287
|
+
return (r, c) => {
|
|
274
288
|
const a = Wt;
|
|
275
289
|
return I(), H(a, ae({ class: "jt-date-picker" }, n.value, {
|
|
276
|
-
"onUpdate:modelValue":
|
|
290
|
+
"onUpdate:modelValue": c[0] || (c[0] = (l) => r.$emit("update:modelValue", l))
|
|
277
291
|
}), null, 16);
|
|
278
292
|
};
|
|
279
293
|
}
|
|
280
|
-
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-
|
|
294
|
+
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-0e4cc9dc"]]), _o = /* @__PURE__ */ pe({
|
|
281
295
|
name: "JtInput",
|
|
282
296
|
__name: "index",
|
|
283
297
|
props: {
|
|
@@ -320,20 +334,24 @@ const yo = /* @__PURE__ */ pe({
|
|
|
320
334
|
enter: () => !0
|
|
321
335
|
},
|
|
322
336
|
setup(e, { emit: t }) {
|
|
323
|
-
const n = e, o =
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
337
|
+
const n = e, o = O(() => {
|
|
338
|
+
if (!n.disabled) return n;
|
|
339
|
+
const { placeholder: a, ...l } = n;
|
|
340
|
+
return l;
|
|
341
|
+
}), r = t, c = O(() => Object.fromEntries(
|
|
342
|
+
Object.keys(Bt).map((a) => [
|
|
343
|
+
a,
|
|
344
|
+
(...l) => r(a, ...l)
|
|
327
345
|
])
|
|
328
346
|
));
|
|
329
|
-
return (
|
|
330
|
-
const
|
|
331
|
-
return I(), H(
|
|
332
|
-
onKeyup:
|
|
347
|
+
return (a, l) => {
|
|
348
|
+
const s = Zt;
|
|
349
|
+
return I(), H(s, ae({ class: "jt-input" }, o.value, et(c.value), {
|
|
350
|
+
onKeyup: l[0] || (l[0] = Wn((i) => r("enter"), ["enter"]))
|
|
333
351
|
}), null, 16);
|
|
334
352
|
};
|
|
335
353
|
}
|
|
336
|
-
}), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-
|
|
354
|
+
}), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-75dbae24"]]), wo = /* @__PURE__ */ pe({
|
|
337
355
|
name: "JtSelect",
|
|
338
356
|
__name: "index",
|
|
339
357
|
props: {
|
|
@@ -393,17 +411,20 @@ const yo = /* @__PURE__ */ pe({
|
|
|
393
411
|
emits: Et,
|
|
394
412
|
setup(e, { emit: t }) {
|
|
395
413
|
const n = e, o = O(() => {
|
|
396
|
-
const { options: a, ...
|
|
397
|
-
return
|
|
398
|
-
|
|
414
|
+
const { options: a, placeholder: l, ...s } = n;
|
|
415
|
+
return n.disabled ? s : {
|
|
416
|
+
...s,
|
|
417
|
+
placeholder: l
|
|
418
|
+
};
|
|
419
|
+
}), r = t, c = O(() => Object.fromEntries(
|
|
399
420
|
Object.keys(Et).map((a) => [
|
|
400
421
|
a,
|
|
401
|
-
(...
|
|
422
|
+
(...l) => r(a, ...l)
|
|
402
423
|
])
|
|
403
424
|
));
|
|
404
|
-
return (a,
|
|
405
|
-
const s = Xt,
|
|
406
|
-
return I(), H(
|
|
425
|
+
return (a, l) => {
|
|
426
|
+
const s = Xt, i = Qt;
|
|
427
|
+
return I(), H(i, ae({ class: "jt-select" }, o.value, et(c.value)), {
|
|
407
428
|
default: U(() => [
|
|
408
429
|
(I(!0), G(Se, null, ye(a.options ?? [], (g) => (I(), H(s, ae({
|
|
409
430
|
key: g.value,
|
|
@@ -414,7 +435,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
414
435
|
}, 16);
|
|
415
436
|
};
|
|
416
437
|
}
|
|
417
|
-
}), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-
|
|
438
|
+
}), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-32596b59"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
|
|
418
439
|
name: "JTFormItems",
|
|
419
440
|
__name: "JtFormItems",
|
|
420
441
|
props: {
|
|
@@ -434,20 +455,20 @@ const yo = /* @__PURE__ */ pe({
|
|
|
434
455
|
daterange: "date-picker",
|
|
435
456
|
"date-range": "date-picker",
|
|
436
457
|
dateRange: "date-picker"
|
|
437
|
-
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]),
|
|
458
|
+
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), c = Object.keys(n), a = /* @__PURE__ */ new Map(), l = O(() => t.configs.filter((h) => h.show !== !1)), s = (h) => {
|
|
438
459
|
const { itemType: v } = h;
|
|
439
460
|
if (!v) return ht;
|
|
440
461
|
if (typeof v != "string") return v;
|
|
441
462
|
const F = o[v] ?? v;
|
|
442
|
-
return
|
|
443
|
-
`[JtFormItems] 不支持的 itemType: "${v}",支持的类型: ${
|
|
463
|
+
return c.includes(F) ? n[F] : (console.error(
|
|
464
|
+
`[JtFormItems] 不支持的 itemType: "${v}",支持的类型: ${c.join(", ")}`
|
|
444
465
|
), ht);
|
|
445
|
-
},
|
|
466
|
+
}, i = (h) => {
|
|
446
467
|
const v = sn(h, r);
|
|
447
468
|
return h.itemType === "select" || h.itemType === "remote-select" || h.itemType === "cascader" ? {
|
|
448
469
|
...v,
|
|
449
470
|
options: h.options
|
|
450
|
-
} :
|
|
471
|
+
} : z(h.itemType) ? {
|
|
451
472
|
...v,
|
|
452
473
|
type: "daterange"
|
|
453
474
|
} : v;
|
|
@@ -466,14 +487,14 @@ const yo = /* @__PURE__ */ pe({
|
|
|
466
487
|
a.delete(h);
|
|
467
488
|
};
|
|
468
489
|
}
|
|
469
|
-
function
|
|
490
|
+
function V(h, v) {
|
|
470
491
|
Zn(() => {
|
|
471
492
|
a.get(h)?.validate(v).catch(() => {
|
|
472
493
|
});
|
|
473
494
|
});
|
|
474
495
|
}
|
|
475
496
|
const f = (h) => Math.min(Math.max(Math.trunc(h || 1), 1), 4), S = O(() => {
|
|
476
|
-
const v =
|
|
497
|
+
const v = l.value.reduce(
|
|
477
498
|
(F, y) => F + f(t.span || y.span),
|
|
478
499
|
0
|
|
479
500
|
) % gt;
|
|
@@ -482,21 +503,21 @@ const yo = /* @__PURE__ */ pe({
|
|
|
482
503
|
} : {
|
|
483
504
|
gridColumn: `${v + 1} / span ${gt - v}`
|
|
484
505
|
};
|
|
485
|
-
}),
|
|
506
|
+
}), T = (h) => ({
|
|
486
507
|
gridColumn: `span ${f(t.span || h.span)}`
|
|
487
508
|
});
|
|
488
|
-
function
|
|
509
|
+
function z(h) {
|
|
489
510
|
return h === "daterange" || h === "date-range" || h === "dateRange";
|
|
490
511
|
}
|
|
491
512
|
return (h, v) => {
|
|
492
513
|
const F = en;
|
|
493
514
|
return I(), G("div", $o, [
|
|
494
|
-
(I(!0), G(Se, null, ye(
|
|
515
|
+
(I(!0), G(Se, null, ye(l.value, (y) => (I(), H(F, ae({
|
|
495
516
|
key: y.prop,
|
|
496
517
|
ref_for: !0,
|
|
497
518
|
ref: L(y.prop),
|
|
498
519
|
class: "jt-form-items__item",
|
|
499
|
-
style:
|
|
520
|
+
style: T(y),
|
|
500
521
|
label: y.label,
|
|
501
522
|
prop: y.prop
|
|
502
523
|
}, w(y)), {
|
|
@@ -505,10 +526,10 @@ const yo = /* @__PURE__ */ pe({
|
|
|
505
526
|
key: 1,
|
|
506
527
|
"model-value": h.formData[y.prop],
|
|
507
528
|
ref_for: !0
|
|
508
|
-
},
|
|
529
|
+
}, i(y), et(g(y)), {
|
|
509
530
|
"onUpdate:modelValue": (A) => $(y.prop, A),
|
|
510
|
-
onChange: () =>
|
|
511
|
-
onBlur: () =>
|
|
531
|
+
onChange: () => V(y.prop, "change"),
|
|
532
|
+
onBlur: () => V(y.prop, "blur")
|
|
512
533
|
}), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
|
|
513
534
|
]),
|
|
514
535
|
_: 2
|
|
@@ -526,7 +547,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
526
547
|
]);
|
|
527
548
|
};
|
|
528
549
|
}
|
|
529
|
-
}), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-
|
|
550
|
+
}), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-d4308345"]]);
|
|
530
551
|
function To() {
|
|
531
552
|
const e = ge(!1);
|
|
532
553
|
function t() {
|
|
@@ -541,7 +562,7 @@ function To() {
|
|
|
541
562
|
searchDone: n
|
|
542
563
|
};
|
|
543
564
|
}
|
|
544
|
-
const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", Oo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Do = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Fo = { class: "jt-filter-bar__btns" }, Bo = ["src"], Eo = ["src"], Lo = ["src"],
|
|
565
|
+
const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", Oo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Do = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Fo = { class: "jt-filter-bar__btns" }, Bo = ["src"], Eo = ["src"], Lo = ["src"], Po = /* @__PURE__ */ pe({
|
|
545
566
|
name: "JtFilterBar",
|
|
546
567
|
__name: "JtFilterBar",
|
|
547
568
|
props: {
|
|
@@ -551,15 +572,15 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
551
572
|
},
|
|
552
573
|
emits: ["update:modelValue", "search", "reset"],
|
|
553
574
|
setup(e, { expose: t, emit: n }) {
|
|
554
|
-
const o = e, r = n,
|
|
555
|
-
() => o.columns.filter((
|
|
556
|
-
),
|
|
575
|
+
const o = e, r = n, c = ge(), a = Le(), l = ge({}), { searchDisabled: s, searchLoading: i, searchDone: g } = To(), w = O(() => o.option), $ = ge(w.value.searchCollapsed ?? !0), L = O(
|
|
576
|
+
() => o.columns.filter((M) => M.search === !0)
|
|
577
|
+
), V = O(
|
|
557
578
|
() => Math.max(1, w.value.searchSpan ?? 4)
|
|
558
579
|
), f = O(
|
|
559
580
|
() => Math.max(1, w.value.searchCollapsedRows ?? 1)
|
|
560
|
-
), S = O(() =>
|
|
581
|
+
), S = O(() => V.value), T = O(
|
|
561
582
|
() => Math.max(1, S.value * f.value)
|
|
562
|
-
),
|
|
583
|
+
), z = O(() => V.value), h = O(
|
|
563
584
|
() => j.value ? "264px" : "174px"
|
|
564
585
|
), v = O(
|
|
565
586
|
() => K(w.value.searchLabelWidth ?? 84)
|
|
@@ -571,58 +592,58 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
571
592
|
() => q(w.value.searchRowGap, 10)
|
|
572
593
|
), b = O(
|
|
573
594
|
() => Q(w.value.searchPadding ?? "18px 4px 0")
|
|
574
|
-
), j = O(() => w.value.searchCollapse === !1 ? !1 : x(L.value) >
|
|
595
|
+
), j = O(() => w.value.searchCollapse === !1 ? !1 : x(L.value) > T.value), C = O(() => {
|
|
575
596
|
if (!j.value || !$.value) return L.value;
|
|
576
|
-
let
|
|
597
|
+
let M = 0;
|
|
577
598
|
return L.value.filter((X) => {
|
|
578
|
-
const ue =
|
|
579
|
-
return
|
|
599
|
+
const ue = P(X);
|
|
600
|
+
return M + ue > T.value ? !1 : (M += ue, !0);
|
|
580
601
|
});
|
|
581
|
-
}),
|
|
582
|
-
() => C.value.filter((
|
|
602
|
+
}), N = O(
|
|
603
|
+
() => C.value.filter((M) => !!a[`${M.prop}-search`])
|
|
583
604
|
), re = O(() => {
|
|
584
|
-
const
|
|
585
|
-
return C.value.length > 0 && C.value.length <= 2 &&
|
|
605
|
+
const M = x(C.value);
|
|
606
|
+
return C.value.length > 0 && C.value.length <= 2 && M < V.value;
|
|
586
607
|
}), le = O(() => {
|
|
587
|
-
const
|
|
588
|
-
return `${Math.min(
|
|
608
|
+
const M = x(C.value);
|
|
609
|
+
return `${Math.min(V.value, M + 1)}`;
|
|
589
610
|
}), R = O(
|
|
590
|
-
() => C.value.map((
|
|
611
|
+
() => C.value.map((M) => E(M))
|
|
591
612
|
);
|
|
592
613
|
Ee(
|
|
593
614
|
() => w.value.searchCollapsed,
|
|
594
|
-
(
|
|
595
|
-
typeof
|
|
615
|
+
(M) => {
|
|
616
|
+
typeof M == "boolean" && ($.value = M);
|
|
596
617
|
}
|
|
597
618
|
), Ee(
|
|
598
619
|
() => o.modelValue,
|
|
599
|
-
(
|
|
600
|
-
|
|
620
|
+
(M) => {
|
|
621
|
+
l.value = { ...M };
|
|
601
622
|
},
|
|
602
623
|
{ deep: !0, immediate: !0 }
|
|
603
624
|
);
|
|
604
|
-
function B(
|
|
625
|
+
function B(M, X) {
|
|
605
626
|
if (s.value) return;
|
|
606
|
-
const ue = { ...
|
|
607
|
-
|
|
627
|
+
const ue = { ...l.value, [M]: X };
|
|
628
|
+
l.value = ue, r("update:modelValue", ue);
|
|
608
629
|
}
|
|
609
|
-
function E(
|
|
610
|
-
const X =
|
|
630
|
+
function E(M) {
|
|
631
|
+
const X = M.searchProps ?? {}, ue = M.searchType ?? "input";
|
|
611
632
|
return {
|
|
612
633
|
...X,
|
|
613
|
-
prop:
|
|
614
|
-
label:
|
|
615
|
-
span:
|
|
634
|
+
prop: M.prop,
|
|
635
|
+
label: M.searchLabel ?? M.label,
|
|
636
|
+
span: P(M),
|
|
616
637
|
itemType: ue,
|
|
617
638
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
618
|
-
showSlot: !!a[`${
|
|
619
|
-
options: X.options ??
|
|
620
|
-
placeholder: X.placeholder ??
|
|
621
|
-
valueFormat: X.valueFormat ??
|
|
639
|
+
showSlot: !!a[`${M.prop}-search`],
|
|
640
|
+
options: X.options ?? M.searchOptions ?? M.dicData,
|
|
641
|
+
placeholder: X.placeholder ?? M.searchPlaceholder,
|
|
642
|
+
valueFormat: X.valueFormat ?? M.searchValueFormat,
|
|
622
643
|
disabled: s.value || X.disabled === !0,
|
|
623
644
|
formItemProps: {
|
|
624
|
-
required:
|
|
625
|
-
class: ["jt-filter-bar__item", { "is-required":
|
|
645
|
+
required: M.searchRequired,
|
|
646
|
+
class: ["jt-filter-bar__item", { "is-required": M.searchRequired }]
|
|
626
647
|
},
|
|
627
648
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
628
649
|
onEnter: (...de) => {
|
|
@@ -630,22 +651,22 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
630
651
|
},
|
|
631
652
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
632
653
|
"onUpdate:modelValue": (de) => {
|
|
633
|
-
d(X["onUpdate:modelValue"], de), B(
|
|
654
|
+
d(X["onUpdate:modelValue"], de), B(M.prop, de);
|
|
634
655
|
}
|
|
635
656
|
};
|
|
636
657
|
}
|
|
637
|
-
function d(
|
|
638
|
-
if (Array.isArray(
|
|
639
|
-
|
|
658
|
+
function d(M, ...X) {
|
|
659
|
+
if (Array.isArray(M)) {
|
|
660
|
+
M.forEach((ue) => d(ue, ...X));
|
|
640
661
|
return;
|
|
641
662
|
}
|
|
642
|
-
typeof
|
|
663
|
+
typeof M == "function" && M(...X);
|
|
643
664
|
}
|
|
644
665
|
async function u() {
|
|
645
666
|
if (!s.value) {
|
|
646
|
-
if (
|
|
667
|
+
if (c.value)
|
|
647
668
|
try {
|
|
648
|
-
await
|
|
669
|
+
await c.value.validate();
|
|
649
670
|
} catch {
|
|
650
671
|
return;
|
|
651
672
|
}
|
|
@@ -658,31 +679,31 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
658
679
|
function D() {
|
|
659
680
|
$.value = !$.value;
|
|
660
681
|
}
|
|
661
|
-
function
|
|
662
|
-
return Math.min(
|
|
682
|
+
function P(M) {
|
|
683
|
+
return Math.min(V.value, Math.max(1, M.searchSpan ?? 1));
|
|
663
684
|
}
|
|
664
|
-
function x(
|
|
665
|
-
return
|
|
685
|
+
function x(M) {
|
|
686
|
+
return M.reduce((X, ue) => X + P(ue), 0);
|
|
666
687
|
}
|
|
667
|
-
function K(
|
|
668
|
-
return typeof
|
|
688
|
+
function K(M) {
|
|
689
|
+
return typeof M == "number" ? `${M}px` : M;
|
|
669
690
|
}
|
|
670
|
-
function q(
|
|
671
|
-
return typeof
|
|
691
|
+
function q(M, X) {
|
|
692
|
+
return typeof M == "number" ? M : X;
|
|
672
693
|
}
|
|
673
|
-
function Q(
|
|
674
|
-
return typeof
|
|
694
|
+
function Q(M) {
|
|
695
|
+
return typeof M == "number" ? `${M}px` : M;
|
|
675
696
|
}
|
|
676
697
|
return t({
|
|
677
698
|
/** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
|
|
678
|
-
formRef:
|
|
699
|
+
formRef: c,
|
|
679
700
|
/** 当前筛选表单禁用态。 */
|
|
680
701
|
searchDisabled: s,
|
|
681
702
|
/** 开启筛选表单禁用。 */
|
|
682
|
-
searchLoading:
|
|
703
|
+
searchLoading: i,
|
|
683
704
|
/** 关闭筛选表单禁用。 */
|
|
684
705
|
searchDone: g
|
|
685
|
-
}), (
|
|
706
|
+
}), (M, X) => {
|
|
686
707
|
const ue = tn;
|
|
687
708
|
return I(), G("div", {
|
|
688
709
|
class: We(["jt-filter-bar", [
|
|
@@ -690,8 +711,8 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
690
711
|
{ "is-single-filter": re.value }
|
|
691
712
|
]]),
|
|
692
713
|
style: Yt({
|
|
693
|
-
"--jt-filter-columns":
|
|
694
|
-
"--jt-filter-field-columns":
|
|
714
|
+
"--jt-filter-columns": V.value,
|
|
715
|
+
"--jt-filter-field-columns": z.value,
|
|
695
716
|
"--jt-filter-btns-width": h.value,
|
|
696
717
|
"--jt-filter-actions-start": le.value,
|
|
697
718
|
"--jt-filter-label-width": v.value,
|
|
@@ -702,9 +723,9 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
702
723
|
}, [
|
|
703
724
|
Ie(ue, {
|
|
704
725
|
ref_key: "formRef",
|
|
705
|
-
ref:
|
|
726
|
+
ref: c,
|
|
706
727
|
class: "jt-filter-bar__form",
|
|
707
|
-
model:
|
|
728
|
+
model: l.value,
|
|
708
729
|
"label-position": F.value,
|
|
709
730
|
"label-width": v.value,
|
|
710
731
|
disabled: J(s),
|
|
@@ -714,12 +735,12 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
714
735
|
default: U(() => [
|
|
715
736
|
Ie(J(ko), {
|
|
716
737
|
configs: R.value,
|
|
717
|
-
"form-data":
|
|
738
|
+
"form-data": l.value,
|
|
718
739
|
style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
|
|
719
740
|
}, Re({
|
|
720
741
|
actions: U(() => [
|
|
721
742
|
ne("div", Fo, [
|
|
722
|
-
te(
|
|
743
|
+
te(M.$slots, "search-menu", {
|
|
723
744
|
search: u,
|
|
724
745
|
reset: _,
|
|
725
746
|
disabled: J(s),
|
|
@@ -784,11 +805,11 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
784
805
|
]),
|
|
785
806
|
_: 2
|
|
786
807
|
}, [
|
|
787
|
-
ye(
|
|
808
|
+
ye(N.value, (de) => ({
|
|
788
809
|
name: de.prop,
|
|
789
810
|
fn: U(() => [
|
|
790
|
-
te(
|
|
791
|
-
value:
|
|
811
|
+
te(M.$slots, `${de.prop}-search`, {
|
|
812
|
+
value: l.value[de.prop],
|
|
792
813
|
column: de,
|
|
793
814
|
setValue: (me) => B(de.prop, me),
|
|
794
815
|
search: u,
|
|
@@ -804,7 +825,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
804
825
|
], 6);
|
|
805
826
|
};
|
|
806
827
|
}
|
|
807
|
-
}),
|
|
828
|
+
}), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-fba58b18"]]), jo = { key: 1 }, Ao = { key: 2 }, Ro = { key: 3 }, zo = /* @__PURE__ */ pe({
|
|
808
829
|
name: "JtTable",
|
|
809
830
|
__name: "JtTable",
|
|
810
831
|
props: {
|
|
@@ -814,11 +835,11 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
814
835
|
tableEvents: {}
|
|
815
836
|
},
|
|
816
837
|
setup(e, { expose: t }) {
|
|
817
|
-
const n = e, o = Le(), r = ge(),
|
|
838
|
+
const n = e, o = Le(), r = ge(), c = O(() => n.option ?? {}), a = O(() => n.columns.filter((f) => !f.hide)), l = O(() => c.value.menuFixed ?? "right");
|
|
818
839
|
function s(f) {
|
|
819
840
|
return !!o[`${f}-header`];
|
|
820
841
|
}
|
|
821
|
-
function
|
|
842
|
+
function i(f) {
|
|
822
843
|
return !!o[`${f}-data`];
|
|
823
844
|
}
|
|
824
845
|
function g(f) {
|
|
@@ -833,7 +854,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
833
854
|
};
|
|
834
855
|
}
|
|
835
856
|
function w(f) {
|
|
836
|
-
return !
|
|
857
|
+
return !i(f.prop) && !L(f.columnOptions?.type);
|
|
837
858
|
}
|
|
838
859
|
function $(f) {
|
|
839
860
|
return !L(f.columnOptions?.type);
|
|
@@ -841,38 +862,38 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
841
862
|
function L(f) {
|
|
842
863
|
return f === "selection" || f === "index" || f === "expand";
|
|
843
864
|
}
|
|
844
|
-
function
|
|
845
|
-
return f.find((
|
|
865
|
+
function V(f, S) {
|
|
866
|
+
return f.find((T) => T.value === S)?.label ?? String(S ?? "");
|
|
846
867
|
}
|
|
847
868
|
return t({ tableRef: r }), (f, S) => {
|
|
848
|
-
const
|
|
849
|
-
return I(), H(
|
|
869
|
+
const T = on, z = nn;
|
|
870
|
+
return I(), H(z, ae({
|
|
850
871
|
ref_key: "tableRef",
|
|
851
872
|
ref: r,
|
|
852
873
|
data: f.data,
|
|
853
|
-
"row-key":
|
|
854
|
-
"empty-text":
|
|
874
|
+
"row-key": c.value.rowKey ?? "id",
|
|
875
|
+
"empty-text": c.value.emptyText,
|
|
855
876
|
class: "jt-table"
|
|
856
|
-
},
|
|
877
|
+
}, c.value.tableProps, et(f.tableEvents)), {
|
|
857
878
|
default: U(() => [
|
|
858
|
-
|
|
879
|
+
c.value.selection ? (I(), H(T, {
|
|
859
880
|
key: 0,
|
|
860
881
|
type: "selection",
|
|
861
882
|
width: "55",
|
|
862
883
|
align: "center"
|
|
863
884
|
})) : fe("", !0),
|
|
864
|
-
|
|
885
|
+
c.value.index ? (I(), H(T, {
|
|
865
886
|
key: 1,
|
|
866
887
|
type: "index",
|
|
867
|
-
label:
|
|
888
|
+
label: c.value.indexLabel ?? J(Z)("common.序号"),
|
|
868
889
|
width: "60",
|
|
869
890
|
align: "center"
|
|
870
891
|
}, null, 8, ["label"])) : fe("", !0),
|
|
871
|
-
(I(!0), G(Se, null, ye(a.value, (h) => (I(), H(
|
|
892
|
+
(I(!0), G(Se, null, ye(a.value, (h) => (I(), H(T, ae({
|
|
872
893
|
key: h.prop,
|
|
873
894
|
prop: h.prop,
|
|
874
895
|
label: h.label,
|
|
875
|
-
formatter: !
|
|
896
|
+
formatter: !i(h.prop) && !h.dicData ? h.formatter : void 0,
|
|
876
897
|
ref_for: !0
|
|
877
898
|
}, g(h)), Re({ _: 2 }, [
|
|
878
899
|
s(h.prop) ? {
|
|
@@ -885,10 +906,10 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
885
906
|
$(h) ? {
|
|
886
907
|
name: "default",
|
|
887
908
|
fn: U((v) => [
|
|
888
|
-
|
|
909
|
+
i(h.prop) ? te(f.$slots, `${h.prop}-data`, ae({
|
|
889
910
|
key: 0,
|
|
890
911
|
ref_for: !0
|
|
891
|
-
}, v), void 0, !0) : h.dicData ? (I(), G("span", jo, oe(
|
|
912
|
+
}, v), void 0, !0) : h.dicData ? (I(), G("span", jo, oe(V(h.dicData, v.row[h.prop])), 1)) : h.formatter ? (I(), G("span", Ao, oe(h.formatter(
|
|
892
913
|
v.row,
|
|
893
914
|
v.column,
|
|
894
915
|
v.row[h.prop],
|
|
@@ -898,13 +919,13 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
898
919
|
key: "1"
|
|
899
920
|
} : void 0
|
|
900
921
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
901
|
-
|
|
922
|
+
c.value.menu ? (I(), H(T, {
|
|
902
923
|
key: 2,
|
|
903
|
-
label:
|
|
904
|
-
width:
|
|
905
|
-
"min-width":
|
|
906
|
-
align:
|
|
907
|
-
fixed:
|
|
924
|
+
label: c.value.menuLabel ?? J(Z)("common.操作"),
|
|
925
|
+
width: c.value.menuWidth,
|
|
926
|
+
"min-width": c.value.menuMinWidth,
|
|
927
|
+
align: c.value.menuAlign ?? "center",
|
|
928
|
+
fixed: l.value
|
|
908
929
|
}, {
|
|
909
930
|
default: U((h) => [
|
|
910
931
|
te(f.$slots, "menu", Oe(Be(h)), void 0, !0)
|
|
@@ -916,7 +937,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
916
937
|
}, 16, ["data", "row-key", "empty-text"]);
|
|
917
938
|
};
|
|
918
939
|
}
|
|
919
|
-
}),
|
|
940
|
+
}), No = /* @__PURE__ */ be(zo, [["__scopeId", "data-v-6976b4e3"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
|
|
920
941
|
name: "JtPagination",
|
|
921
942
|
__name: "JtPagination",
|
|
922
943
|
props: {
|
|
@@ -928,10 +949,10 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
928
949
|
emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
|
|
929
950
|
setup(e, { emit: t }) {
|
|
930
951
|
const n = e, o = O(() => n.option ?? {}), r = t;
|
|
931
|
-
function
|
|
952
|
+
function c(a) {
|
|
932
953
|
r("current-change", a), r("page-change", a);
|
|
933
954
|
}
|
|
934
|
-
return (a,
|
|
955
|
+
return (a, l) => {
|
|
935
956
|
const s = oo;
|
|
936
957
|
return I(), G("div", xo, [
|
|
937
958
|
Ie(s, {
|
|
@@ -940,16 +961,16 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
940
961
|
"page-sizes": o.value.pageSizes ?? [10, 20, 50, 100],
|
|
941
962
|
total: a.total,
|
|
942
963
|
layout: o.value.paginationLayout ?? "sizes, prev, pager, next, jumper",
|
|
943
|
-
"onUpdate:currentPage":
|
|
944
|
-
"onUpdate:pageSize":
|
|
945
|
-
onCurrentChange:
|
|
946
|
-
onSizeChange:
|
|
964
|
+
"onUpdate:currentPage": l[0] || (l[0] = (i) => a.$emit("update:currentPage", i)),
|
|
965
|
+
"onUpdate:pageSize": l[1] || (l[1] = (i) => a.$emit("update:pageSize", i)),
|
|
966
|
+
onCurrentChange: c,
|
|
967
|
+
onSizeChange: l[2] || (l[2] = (i) => a.$emit("size-change", i))
|
|
947
968
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
948
969
|
ne("span", qo, oe(J(Z)("common.共")) + oe(a.total) + oe(J(Z)("common.条记录")), 1)
|
|
949
970
|
]);
|
|
950
971
|
};
|
|
951
972
|
}
|
|
952
|
-
}), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-
|
|
973
|
+
}), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-8f04a5d2"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
|
|
953
974
|
key: 0,
|
|
954
975
|
class: "jt-crud-table__toolbar"
|
|
955
976
|
}, Zo = /* @__PURE__ */ pe({
|
|
@@ -973,26 +994,26 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
973
994
|
}),
|
|
974
995
|
emits: /* @__PURE__ */ Ft(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
975
996
|
setup(e, { expose: t, emit: n }) {
|
|
976
|
-
const o = e, r = n,
|
|
997
|
+
const o = e, r = n, c = vt(e, "currentPage"), a = vt(e, "pageSize"), l = vt(e, "searchModel"), s = Le(), i = ge(), g = ge(), w = O(() => o.option), $ = O(() => w.value.searchShow !== !1), L = O(
|
|
977
998
|
() => w.value.paginationShow !== !1
|
|
978
|
-
),
|
|
999
|
+
), V = O(
|
|
979
1000
|
() => o.columns.filter((y) => y.search && !!s[`${y.prop}-search`])
|
|
980
1001
|
), f = O(
|
|
981
1002
|
() => o.columns.filter((y) => !y.hide && !!s[`${y.prop}-header`])
|
|
982
1003
|
), S = O(
|
|
983
1004
|
() => o.columns.filter((y) => !y.hide && !!s[`${y.prop}-data`])
|
|
984
1005
|
);
|
|
985
|
-
function
|
|
1006
|
+
function T() {
|
|
986
1007
|
const y = {};
|
|
987
1008
|
return o.columns.forEach((A) => {
|
|
988
1009
|
A.search && (y[A.prop] = void 0);
|
|
989
1010
|
}), y;
|
|
990
1011
|
}
|
|
991
|
-
function
|
|
992
|
-
r("search", { ...
|
|
1012
|
+
function z() {
|
|
1013
|
+
r("search", { ...l.value });
|
|
993
1014
|
}
|
|
994
1015
|
function h() {
|
|
995
|
-
|
|
1016
|
+
l.value = T(), r("reset");
|
|
996
1017
|
}
|
|
997
1018
|
function v() {
|
|
998
1019
|
g.value?.searchLoading();
|
|
@@ -1002,7 +1023,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1002
1023
|
}
|
|
1003
1024
|
return t({
|
|
1004
1025
|
/** 获取内部 el-table 实例 */
|
|
1005
|
-
tableRef: O(() =>
|
|
1026
|
+
tableRef: O(() => i.value?.tableRef),
|
|
1006
1027
|
/** 获取内部筛选条实例 */
|
|
1007
1028
|
filterBarRef: g,
|
|
1008
1029
|
/** 开启筛选表单禁用。 */
|
|
@@ -1014,18 +1035,18 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1014
1035
|
return I(), G("div", Yo, [
|
|
1015
1036
|
te(y.$slots, "header", {}, void 0, !0),
|
|
1016
1037
|
ne("div", Uo, [
|
|
1017
|
-
$.value ? (I(), H(
|
|
1038
|
+
$.value ? (I(), H(Vo, {
|
|
1018
1039
|
key: 0,
|
|
1019
1040
|
ref_key: "filterBarRef",
|
|
1020
1041
|
ref: g,
|
|
1021
|
-
modelValue:
|
|
1022
|
-
"onUpdate:modelValue": A[0] || (A[0] = (j) =>
|
|
1042
|
+
modelValue: l.value,
|
|
1043
|
+
"onUpdate:modelValue": A[0] || (A[0] = (j) => l.value = j),
|
|
1023
1044
|
columns: y.columns,
|
|
1024
1045
|
option: w.value,
|
|
1025
|
-
onSearch:
|
|
1046
|
+
onSearch: z,
|
|
1026
1047
|
onReset: h
|
|
1027
1048
|
}, Re({ _: 2 }, [
|
|
1028
|
-
ye(
|
|
1049
|
+
ye(V.value, (j) => ({
|
|
1029
1050
|
name: `${j.prop}-search`,
|
|
1030
1051
|
fn: U((C) => [
|
|
1031
1052
|
te(y.$slots, `${j.prop}-search`, Oe(Be(C)), void 0, !0)
|
|
@@ -1038,9 +1059,9 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1038
1059
|
J(s).toolbar ? (I(), G("div", Wo, [
|
|
1039
1060
|
te(y.$slots, "toolbar", {}, void 0, !0)
|
|
1040
1061
|
])) : fe("", !0),
|
|
1041
|
-
Qn((I(), H(
|
|
1062
|
+
Qn((I(), H(No, {
|
|
1042
1063
|
ref_key: "jtTableRef",
|
|
1043
|
-
ref:
|
|
1064
|
+
ref: i,
|
|
1044
1065
|
data: y.data,
|
|
1045
1066
|
columns: y.columns,
|
|
1046
1067
|
option: w.value,
|
|
@@ -1071,8 +1092,8 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1071
1092
|
]),
|
|
1072
1093
|
L.value ? (I(), H(Ko, {
|
|
1073
1094
|
key: 0,
|
|
1074
|
-
"current-page":
|
|
1075
|
-
"onUpdate:currentPage": A[1] || (A[1] = (j) =>
|
|
1095
|
+
"current-page": c.value,
|
|
1096
|
+
"onUpdate:currentPage": A[1] || (A[1] = (j) => c.value = j),
|
|
1076
1097
|
"page-size": a.value,
|
|
1077
1098
|
"onUpdate:pageSize": A[2] || (A[2] = (j) => a.value = j),
|
|
1078
1099
|
total: y.total,
|
|
@@ -1084,7 +1105,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1084
1105
|
]);
|
|
1085
1106
|
};
|
|
1086
1107
|
}
|
|
1087
|
-
}), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-
|
|
1108
|
+
}), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-3454628a"]]), Qo = { class: "jt-page-header__title" }, Xo = { key: 0 }, er = {
|
|
1088
1109
|
key: 0,
|
|
1089
1110
|
class: "jt-page-header__operates"
|
|
1090
1111
|
}, tr = /* @__PURE__ */ pe({
|
|
@@ -1097,35 +1118,35 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1097
1118
|
},
|
|
1098
1119
|
emits: ["operate-click"],
|
|
1099
1120
|
setup(e, { emit: t }) {
|
|
1100
|
-
const n = e, o = t, r = Le(),
|
|
1101
|
-
function a(
|
|
1102
|
-
|
|
1121
|
+
const n = e, o = t, r = Le(), c = O(() => n.operates.length > 0 || !!r.operates);
|
|
1122
|
+
function a(l, s) {
|
|
1123
|
+
l.onClick?.(l, s), o("operate-click", l, s);
|
|
1103
1124
|
}
|
|
1104
|
-
return (
|
|
1105
|
-
class: ["jt-page-header", `jt-page-header--${
|
|
1106
|
-
},
|
|
1125
|
+
return (l, s) => (I(), G("div", ae({
|
|
1126
|
+
class: ["jt-page-header", `jt-page-header--${l.type}`]
|
|
1127
|
+
}, l.$attrs), [
|
|
1107
1128
|
ne("div", Qo, [
|
|
1108
|
-
te(
|
|
1109
|
-
|
|
1129
|
+
te(l.$slots, "title", {}, () => [
|
|
1130
|
+
l.title ? (I(), G("span", Xo, oe(l.title), 1)) : fe("", !0)
|
|
1110
1131
|
], !0)
|
|
1111
1132
|
]),
|
|
1112
|
-
|
|
1113
|
-
te(
|
|
1114
|
-
(I(!0), G(Se, null, ye(
|
|
1115
|
-
key:
|
|
1133
|
+
c.value ? (I(), G("div", er, [
|
|
1134
|
+
te(l.$slots, "operates", { operates: l.operates }, () => [
|
|
1135
|
+
(I(!0), G(Se, null, ye(l.operates, (i) => (I(), H(J(rt), ae({
|
|
1136
|
+
key: i.key ?? i.label,
|
|
1116
1137
|
ref_for: !0
|
|
1117
|
-
},
|
|
1118
|
-
type:
|
|
1119
|
-
disabled:
|
|
1120
|
-
loading:
|
|
1121
|
-
plain:
|
|
1122
|
-
text:
|
|
1123
|
-
link:
|
|
1124
|
-
icon:
|
|
1125
|
-
onClick: (g) => a(
|
|
1138
|
+
}, i.buttonProps, {
|
|
1139
|
+
type: i.type,
|
|
1140
|
+
disabled: i.disabled,
|
|
1141
|
+
loading: i.loading,
|
|
1142
|
+
plain: i.plain,
|
|
1143
|
+
text: i.text,
|
|
1144
|
+
link: i.link,
|
|
1145
|
+
icon: i.icon,
|
|
1146
|
+
onClick: (g) => a(i, g)
|
|
1126
1147
|
}), {
|
|
1127
1148
|
default: U(() => [
|
|
1128
|
-
ne("span", null, oe(
|
|
1149
|
+
ne("span", null, oe(i.label), 1)
|
|
1129
1150
|
]),
|
|
1130
1151
|
_: 2
|
|
1131
1152
|
}, 1040, ["type", "disabled", "loading", "plain", "text", "link", "icon", "onClick"]))), 128))
|
|
@@ -1133,21 +1154,21 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1133
1154
|
])) : fe("", !0)
|
|
1134
1155
|
], 16));
|
|
1135
1156
|
}
|
|
1136
|
-
}), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-
|
|
1157
|
+
}), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-bbbd4ec6"]]);
|
|
1137
1158
|
function nr(e, t) {
|
|
1138
1159
|
t = t || (() => "default-use-once-sync");
|
|
1139
1160
|
const n = /* @__PURE__ */ new Map();
|
|
1140
1161
|
async function o(...r) {
|
|
1141
|
-
const
|
|
1142
|
-
if (n.get(
|
|
1143
|
-
return n.get(
|
|
1162
|
+
const c = t(...r);
|
|
1163
|
+
if (n.get(c))
|
|
1164
|
+
return n.get(c);
|
|
1144
1165
|
try {
|
|
1145
|
-
const a = e(...r).then((
|
|
1146
|
-
throw
|
|
1166
|
+
const a = e(...r).then((l) => l).catch((l) => {
|
|
1167
|
+
throw l;
|
|
1147
1168
|
});
|
|
1148
|
-
return n.set(
|
|
1169
|
+
return n.set(c, a), a;
|
|
1149
1170
|
} catch (a) {
|
|
1150
|
-
throw n.set(
|
|
1171
|
+
throw n.set(c, null), a;
|
|
1151
1172
|
}
|
|
1152
1173
|
}
|
|
1153
1174
|
return o.bind(e);
|
|
@@ -1156,12 +1177,12 @@ function ln(e, t) {
|
|
|
1156
1177
|
t = t || (() => "default-use-queue-sync");
|
|
1157
1178
|
const n = /* @__PURE__ */ new Map();
|
|
1158
1179
|
async function o(...r) {
|
|
1159
|
-
const
|
|
1160
|
-
return n.set(
|
|
1161
|
-
e(...r).then((
|
|
1162
|
-
n.get(
|
|
1163
|
-
}).catch((
|
|
1164
|
-
n.get(
|
|
1180
|
+
const c = t(...r), a = Symbol("single");
|
|
1181
|
+
return n.set(c, a), new Promise((l, s) => {
|
|
1182
|
+
e(...r).then((i) => {
|
|
1183
|
+
n.get(c) === a && l(i);
|
|
1184
|
+
}).catch((i) => {
|
|
1185
|
+
n.get(c) === a && s(i);
|
|
1165
1186
|
});
|
|
1166
1187
|
});
|
|
1167
1188
|
}
|
|
@@ -1176,7 +1197,7 @@ var cn = { exports: {} };
|
|
|
1176
1197
|
(function(n, o) {
|
|
1177
1198
|
e.exports = o();
|
|
1178
1199
|
})(it, function() {
|
|
1179
|
-
var n = 1e3, o = 6e4, r = 36e5,
|
|
1200
|
+
var n = 1e3, o = 6e4, r = 36e5, c = "millisecond", a = "second", l = "minute", s = "hour", i = "day", g = "week", w = "month", $ = "quarter", L = "year", V = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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, z = { 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) {
|
|
1180
1201
|
var B = ["th", "st", "nd", "rd"], E = R % 100;
|
|
1181
1202
|
return "[" + R + (B[(E - 20) % 10] || B[E] || B[0]) + "]";
|
|
1182
1203
|
} }, h = function(R, B, E) {
|
|
@@ -1192,11 +1213,11 @@ var cn = { exports: {} };
|
|
|
1192
1213
|
}, a: function(R) {
|
|
1193
1214
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
1194
1215
|
}, p: function(R) {
|
|
1195
|
-
return { M: w, y: L, w: g, d:
|
|
1216
|
+
return { M: w, y: L, w: g, d: i, D: V, h: s, m: l, s: a, ms: c, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
1196
1217
|
}, u: function(R) {
|
|
1197
1218
|
return R === void 0;
|
|
1198
1219
|
} }, F = "en", y = {};
|
|
1199
|
-
y[F] =
|
|
1220
|
+
y[F] = z;
|
|
1200
1221
|
var A = "$isDayjsObject", b = function(R) {
|
|
1201
1222
|
return R instanceof re || !(!R || !R[A]);
|
|
1202
1223
|
}, j = function R(B, E, d) {
|
|
@@ -1208,16 +1229,16 @@ var cn = { exports: {} };
|
|
|
1208
1229
|
var D = B.split("-");
|
|
1209
1230
|
if (!u && D.length > 1) return R(D[0]);
|
|
1210
1231
|
} else {
|
|
1211
|
-
var
|
|
1212
|
-
y[
|
|
1232
|
+
var P = B.name;
|
|
1233
|
+
y[P] = B, u = P;
|
|
1213
1234
|
}
|
|
1214
1235
|
return !d && u && (F = u), u || !d && F;
|
|
1215
1236
|
}, C = function(R, B) {
|
|
1216
1237
|
if (b(R)) return R.clone();
|
|
1217
1238
|
var E = typeof B == "object" ? B : {};
|
|
1218
1239
|
return E.date = R, E.args = arguments, new re(E);
|
|
1219
|
-
},
|
|
1220
|
-
|
|
1240
|
+
}, N = v;
|
|
1241
|
+
N.l = j, N.i = b, N.w = function(R, B) {
|
|
1221
1242
|
return C(R, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
|
|
1222
1243
|
};
|
|
1223
1244
|
var re = function() {
|
|
@@ -1229,13 +1250,13 @@ var cn = { exports: {} };
|
|
|
1229
1250
|
this.$d = function(d) {
|
|
1230
1251
|
var u = d.date, _ = d.utc;
|
|
1231
1252
|
if (u === null) return /* @__PURE__ */ new Date(NaN);
|
|
1232
|
-
if (
|
|
1253
|
+
if (N.u(u)) return /* @__PURE__ */ new Date();
|
|
1233
1254
|
if (u instanceof Date) return new Date(u);
|
|
1234
1255
|
if (typeof u == "string" && !/Z$/i.test(u)) {
|
|
1235
1256
|
var D = u.match(S);
|
|
1236
1257
|
if (D) {
|
|
1237
|
-
var
|
|
1238
|
-
return _ ? new Date(Date.UTC(D[1],
|
|
1258
|
+
var P = D[2] - 1 || 0, x = (D[7] || "0").substring(0, 3);
|
|
1259
|
+
return _ ? new Date(Date.UTC(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, x)) : new Date(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, x);
|
|
1239
1260
|
}
|
|
1240
1261
|
}
|
|
1241
1262
|
return new Date(u);
|
|
@@ -1244,7 +1265,7 @@ var cn = { exports: {} };
|
|
|
1244
1265
|
var E = this.$d;
|
|
1245
1266
|
this.$y = E.getFullYear(), this.$M = E.getMonth(), this.$D = E.getDate(), this.$W = E.getDay(), this.$H = E.getHours(), this.$m = E.getMinutes(), this.$s = E.getSeconds(), this.$ms = E.getMilliseconds();
|
|
1246
1267
|
}, B.$utils = function() {
|
|
1247
|
-
return
|
|
1268
|
+
return N;
|
|
1248
1269
|
}, B.isValid = function() {
|
|
1249
1270
|
return this.$d.toString() !== f;
|
|
1250
1271
|
}, B.isSame = function(E, d) {
|
|
@@ -1255,88 +1276,88 @@ var cn = { exports: {} };
|
|
|
1255
1276
|
}, B.isBefore = function(E, d) {
|
|
1256
1277
|
return this.endOf(d) < C(E);
|
|
1257
1278
|
}, B.$g = function(E, d, u) {
|
|
1258
|
-
return
|
|
1279
|
+
return N.u(E) ? this[d] : this.set(u, E);
|
|
1259
1280
|
}, B.unix = function() {
|
|
1260
1281
|
return Math.floor(this.valueOf() / 1e3);
|
|
1261
1282
|
}, B.valueOf = function() {
|
|
1262
1283
|
return this.$d.getTime();
|
|
1263
1284
|
}, B.startOf = function(E, d) {
|
|
1264
|
-
var u = this, _ = !!
|
|
1265
|
-
var we =
|
|
1266
|
-
return _ ? we : we.endOf(
|
|
1285
|
+
var u = this, _ = !!N.u(d) || d, D = N.p(E), P = function(de, me) {
|
|
1286
|
+
var we = N.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
|
|
1287
|
+
return _ ? we : we.endOf(i);
|
|
1267
1288
|
}, x = function(de, me) {
|
|
1268
|
-
return
|
|
1269
|
-
}, K = this.$W, q = this.$M, Q = this.$D,
|
|
1289
|
+
return N.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
|
|
1290
|
+
}, K = this.$W, q = this.$M, Q = this.$D, M = "set" + (this.$u ? "UTC" : "");
|
|
1270
1291
|
switch (D) {
|
|
1271
1292
|
case L:
|
|
1272
|
-
return _ ?
|
|
1293
|
+
return _ ? P(1, 0) : P(31, 11);
|
|
1273
1294
|
case w:
|
|
1274
|
-
return _ ?
|
|
1295
|
+
return _ ? P(1, q) : P(0, q + 1);
|
|
1275
1296
|
case g:
|
|
1276
1297
|
var X = this.$locale().weekStart || 0, ue = (K < X ? K + 7 : K) - X;
|
|
1277
|
-
return
|
|
1278
|
-
case
|
|
1279
|
-
case
|
|
1280
|
-
return x(
|
|
1298
|
+
return P(_ ? Q - ue : Q + (6 - ue), q);
|
|
1299
|
+
case i:
|
|
1300
|
+
case V:
|
|
1301
|
+
return x(M + "Hours", 0);
|
|
1281
1302
|
case s:
|
|
1282
|
-
return x(
|
|
1283
|
-
case
|
|
1284
|
-
return x(
|
|
1303
|
+
return x(M + "Minutes", 1);
|
|
1304
|
+
case l:
|
|
1305
|
+
return x(M + "Seconds", 2);
|
|
1285
1306
|
case a:
|
|
1286
|
-
return x(
|
|
1307
|
+
return x(M + "Milliseconds", 3);
|
|
1287
1308
|
default:
|
|
1288
1309
|
return this.clone();
|
|
1289
1310
|
}
|
|
1290
1311
|
}, B.endOf = function(E) {
|
|
1291
1312
|
return this.startOf(E, !1);
|
|
1292
1313
|
}, B.$set = function(E, d) {
|
|
1293
|
-
var u, _ =
|
|
1314
|
+
var u, _ = N.p(E), D = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[i] = D + "Date", u[V] = D + "Date", u[w] = D + "Month", u[L] = D + "FullYear", u[s] = D + "Hours", u[l] = D + "Minutes", u[a] = D + "Seconds", u[c] = D + "Milliseconds", u)[_], x = _ === i ? this.$D + (d - this.$W) : d;
|
|
1294
1315
|
if (_ === w || _ === L) {
|
|
1295
|
-
var K = this.clone().set(
|
|
1296
|
-
K.$d[
|
|
1297
|
-
} else
|
|
1316
|
+
var K = this.clone().set(V, 1);
|
|
1317
|
+
K.$d[P](x), K.init(), this.$d = K.set(V, Math.min(this.$D, K.daysInMonth())).$d;
|
|
1318
|
+
} else P && this.$d[P](x);
|
|
1298
1319
|
return this.init(), this;
|
|
1299
1320
|
}, B.set = function(E, d) {
|
|
1300
1321
|
return this.clone().$set(E, d);
|
|
1301
1322
|
}, B.get = function(E) {
|
|
1302
|
-
return this[
|
|
1323
|
+
return this[N.p(E)]();
|
|
1303
1324
|
}, B.add = function(E, d) {
|
|
1304
1325
|
var u, _ = this;
|
|
1305
1326
|
E = Number(E);
|
|
1306
|
-
var D =
|
|
1327
|
+
var D = N.p(d), P = function(q) {
|
|
1307
1328
|
var Q = C(_);
|
|
1308
|
-
return
|
|
1329
|
+
return N.w(Q.date(Q.date() + Math.round(q * E)), _);
|
|
1309
1330
|
};
|
|
1310
1331
|
if (D === w) return this.set(w, this.$M + E);
|
|
1311
1332
|
if (D === L) return this.set(L, this.$y + E);
|
|
1312
|
-
if (D ===
|
|
1313
|
-
if (D === g) return
|
|
1314
|
-
var x = (u = {}, u[
|
|
1315
|
-
return
|
|
1333
|
+
if (D === i) return P(1);
|
|
1334
|
+
if (D === g) return P(7);
|
|
1335
|
+
var x = (u = {}, u[l] = o, u[s] = r, u[a] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
|
|
1336
|
+
return N.w(K, this);
|
|
1316
1337
|
}, B.subtract = function(E, d) {
|
|
1317
1338
|
return this.add(-1 * E, d);
|
|
1318
1339
|
}, B.format = function(E) {
|
|
1319
1340
|
var d = this, u = this.$locale();
|
|
1320
1341
|
if (!this.isValid()) return u.invalidDate || f;
|
|
1321
|
-
var _ = E || "YYYY-MM-DDTHH:mm:ssZ", D =
|
|
1342
|
+
var _ = E || "YYYY-MM-DDTHH:mm:ssZ", D = N.z(this), P = this.$H, x = this.$m, K = this.$M, q = u.weekdays, Q = u.months, M = u.meridiem, X = function(me, we, De, $e) {
|
|
1322
1343
|
return me && (me[we] || me(d, _)) || De[we].slice(0, $e);
|
|
1323
1344
|
}, ue = function(me) {
|
|
1324
|
-
return
|
|
1325
|
-
}, de =
|
|
1345
|
+
return N.s(P % 12 || 12, me, "0");
|
|
1346
|
+
}, de = M || function(me, we, De) {
|
|
1326
1347
|
var $e = me < 12 ? "AM" : "PM";
|
|
1327
1348
|
return De ? $e.toLowerCase() : $e;
|
|
1328
1349
|
};
|
|
1329
|
-
return _.replace(
|
|
1350
|
+
return _.replace(T, function(me, we) {
|
|
1330
1351
|
return we || function(De) {
|
|
1331
1352
|
switch (De) {
|
|
1332
1353
|
case "YY":
|
|
1333
1354
|
return String(d.$y).slice(-2);
|
|
1334
1355
|
case "YYYY":
|
|
1335
|
-
return
|
|
1356
|
+
return N.s(d.$y, 4, "0");
|
|
1336
1357
|
case "M":
|
|
1337
1358
|
return K + 1;
|
|
1338
1359
|
case "MM":
|
|
1339
|
-
return
|
|
1360
|
+
return N.s(K + 1, 2, "0");
|
|
1340
1361
|
case "MMM":
|
|
1341
1362
|
return X(u.monthsShort, K, Q, 3);
|
|
1342
1363
|
case "MMMM":
|
|
@@ -1344,7 +1365,7 @@ var cn = { exports: {} };
|
|
|
1344
1365
|
case "D":
|
|
1345
1366
|
return d.$D;
|
|
1346
1367
|
case "DD":
|
|
1347
|
-
return
|
|
1368
|
+
return N.s(d.$D, 2, "0");
|
|
1348
1369
|
case "d":
|
|
1349
1370
|
return String(d.$W);
|
|
1350
1371
|
case "dd":
|
|
@@ -1354,27 +1375,27 @@ var cn = { exports: {} };
|
|
|
1354
1375
|
case "dddd":
|
|
1355
1376
|
return q[d.$W];
|
|
1356
1377
|
case "H":
|
|
1357
|
-
return String(
|
|
1378
|
+
return String(P);
|
|
1358
1379
|
case "HH":
|
|
1359
|
-
return
|
|
1380
|
+
return N.s(P, 2, "0");
|
|
1360
1381
|
case "h":
|
|
1361
1382
|
return ue(1);
|
|
1362
1383
|
case "hh":
|
|
1363
1384
|
return ue(2);
|
|
1364
1385
|
case "a":
|
|
1365
|
-
return de(
|
|
1386
|
+
return de(P, x, !0);
|
|
1366
1387
|
case "A":
|
|
1367
|
-
return de(
|
|
1388
|
+
return de(P, x, !1);
|
|
1368
1389
|
case "m":
|
|
1369
1390
|
return String(x);
|
|
1370
1391
|
case "mm":
|
|
1371
|
-
return
|
|
1392
|
+
return N.s(x, 2, "0");
|
|
1372
1393
|
case "s":
|
|
1373
1394
|
return String(d.$s);
|
|
1374
1395
|
case "ss":
|
|
1375
|
-
return
|
|
1396
|
+
return N.s(d.$s, 2, "0");
|
|
1376
1397
|
case "SSS":
|
|
1377
|
-
return
|
|
1398
|
+
return N.s(d.$ms, 3, "0");
|
|
1378
1399
|
case "Z":
|
|
1379
1400
|
return D;
|
|
1380
1401
|
}
|
|
@@ -1384,10 +1405,10 @@ var cn = { exports: {} };
|
|
|
1384
1405
|
}, B.utcOffset = function() {
|
|
1385
1406
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1386
1407
|
}, B.diff = function(E, d, u) {
|
|
1387
|
-
var _, D = this,
|
|
1388
|
-
return
|
|
1408
|
+
var _, D = this, P = N.p(d), x = C(E), K = (x.utcOffset() - this.utcOffset()) * o, q = this - x, Q = function() {
|
|
1409
|
+
return N.m(D, x);
|
|
1389
1410
|
};
|
|
1390
|
-
switch (
|
|
1411
|
+
switch (P) {
|
|
1391
1412
|
case L:
|
|
1392
1413
|
_ = Q() / 12;
|
|
1393
1414
|
break;
|
|
@@ -1400,13 +1421,13 @@ var cn = { exports: {} };
|
|
|
1400
1421
|
case g:
|
|
1401
1422
|
_ = (q - K) / 6048e5;
|
|
1402
1423
|
break;
|
|
1403
|
-
case
|
|
1424
|
+
case i:
|
|
1404
1425
|
_ = (q - K) / 864e5;
|
|
1405
1426
|
break;
|
|
1406
1427
|
case s:
|
|
1407
1428
|
_ = q / r;
|
|
1408
1429
|
break;
|
|
1409
|
-
case
|
|
1430
|
+
case l:
|
|
1410
1431
|
_ = q / o;
|
|
1411
1432
|
break;
|
|
1412
1433
|
case a:
|
|
@@ -1415,7 +1436,7 @@ var cn = { exports: {} };
|
|
|
1415
1436
|
default:
|
|
1416
1437
|
_ = q;
|
|
1417
1438
|
}
|
|
1418
|
-
return u ? _ :
|
|
1439
|
+
return u ? _ : N.a(_);
|
|
1419
1440
|
}, B.daysInMonth = function() {
|
|
1420
1441
|
return this.endOf(w).$D;
|
|
1421
1442
|
}, B.$locale = function() {
|
|
@@ -1425,7 +1446,7 @@ var cn = { exports: {} };
|
|
|
1425
1446
|
var u = this.clone(), _ = j(E, d, !0);
|
|
1426
1447
|
return _ && (u.$L = _), u;
|
|
1427
1448
|
}, B.clone = function() {
|
|
1428
|
-
return
|
|
1449
|
+
return N.w(this.$d, this);
|
|
1429
1450
|
}, B.toDate = function() {
|
|
1430
1451
|
return new Date(this.valueOf());
|
|
1431
1452
|
}, B.toJSON = function() {
|
|
@@ -1436,7 +1457,7 @@ var cn = { exports: {} };
|
|
|
1436
1457
|
return this.$d.toUTCString();
|
|
1437
1458
|
}, R;
|
|
1438
1459
|
}(), le = re.prototype;
|
|
1439
|
-
return C.prototype = le, [["$ms",
|
|
1460
|
+
return C.prototype = le, [["$ms", c], ["$s", a], ["$m", l], ["$H", s], ["$W", i], ["$M", w], ["$y", L], ["$D", V]].forEach(function(R) {
|
|
1440
1461
|
le[R[1]] = function(B) {
|
|
1441
1462
|
return this.$g(B, R[0], R[1]);
|
|
1442
1463
|
};
|
|
@@ -1454,111 +1475,111 @@ var un = { exports: {} };
|
|
|
1454
1475
|
(function(n, o) {
|
|
1455
1476
|
e.exports = o();
|
|
1456
1477
|
})(it, function() {
|
|
1457
|
-
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/,
|
|
1478
|
+
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/, c = /\d\d/, a = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, s = {}, i = function(S) {
|
|
1458
1479
|
return (S = +S) + (S > 68 ? 1900 : 2e3);
|
|
1459
1480
|
}, g = function(S) {
|
|
1460
|
-
return function(
|
|
1461
|
-
this[S] = +
|
|
1481
|
+
return function(T) {
|
|
1482
|
+
this[S] = +T;
|
|
1462
1483
|
};
|
|
1463
1484
|
}, w = [/[+-]\d\d:?(\d\d)?|Z/, function(S) {
|
|
1464
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
1465
|
-
if (!
|
|
1466
|
-
var
|
|
1467
|
-
return h === 0 ? 0 :
|
|
1485
|
+
(this.zone || (this.zone = {})).offset = function(T) {
|
|
1486
|
+
if (!T || T === "Z") return 0;
|
|
1487
|
+
var z = T.match(/([+-]|\d\d)/g), h = 60 * z[1] + (+z[2] || 0);
|
|
1488
|
+
return h === 0 ? 0 : z[0] === "+" ? -h : h;
|
|
1468
1489
|
}(S);
|
|
1469
1490
|
}], $ = function(S) {
|
|
1470
|
-
var
|
|
1471
|
-
return
|
|
1472
|
-
}, L = function(S,
|
|
1473
|
-
var
|
|
1491
|
+
var T = s[S];
|
|
1492
|
+
return T && (T.indexOf ? T : T.s.concat(T.f));
|
|
1493
|
+
}, L = function(S, T) {
|
|
1494
|
+
var z, h = s.meridiem;
|
|
1474
1495
|
if (h) {
|
|
1475
|
-
for (var v = 1; v <= 24; v += 1) if (S.indexOf(h(v, 0,
|
|
1476
|
-
|
|
1496
|
+
for (var v = 1; v <= 24; v += 1) if (S.indexOf(h(v, 0, T)) > -1) {
|
|
1497
|
+
z = v > 12;
|
|
1477
1498
|
break;
|
|
1478
1499
|
}
|
|
1479
|
-
} else
|
|
1480
|
-
return
|
|
1481
|
-
},
|
|
1500
|
+
} else z = S === (T ? "pm" : "PM");
|
|
1501
|
+
return z;
|
|
1502
|
+
}, V = { A: [l, function(S) {
|
|
1482
1503
|
this.afternoon = L(S, !1);
|
|
1483
|
-
}], a: [
|
|
1504
|
+
}], a: [l, function(S) {
|
|
1484
1505
|
this.afternoon = L(S, !0);
|
|
1485
1506
|
}], Q: [r, function(S) {
|
|
1486
1507
|
this.month = 3 * (S - 1) + 1;
|
|
1487
1508
|
}], S: [r, function(S) {
|
|
1488
1509
|
this.milliseconds = 100 * +S;
|
|
1489
|
-
}], SS: [
|
|
1510
|
+
}], SS: [c, function(S) {
|
|
1490
1511
|
this.milliseconds = 10 * +S;
|
|
1491
1512
|
}], SSS: [/\d{3}/, function(S) {
|
|
1492
1513
|
this.milliseconds = +S;
|
|
1493
|
-
}], s: [a, g("seconds")], ss: [a, g("seconds")], m: [a, g("minutes")], mm: [a, g("minutes")], H: [a, g("hours")], h: [a, g("hours")], HH: [a, g("hours")], hh: [a, g("hours")], D: [a, g("day")], DD: [
|
|
1494
|
-
var
|
|
1495
|
-
if (this.day =
|
|
1496
|
-
}], w: [a, g("week")], ww: [
|
|
1497
|
-
var
|
|
1514
|
+
}], s: [a, g("seconds")], ss: [a, g("seconds")], m: [a, g("minutes")], mm: [a, g("minutes")], H: [a, g("hours")], h: [a, g("hours")], HH: [a, g("hours")], hh: [a, g("hours")], D: [a, g("day")], DD: [c, g("day")], Do: [l, function(S) {
|
|
1515
|
+
var T = s.ordinal, z = S.match(/\d+/);
|
|
1516
|
+
if (this.day = z[0], T) for (var h = 1; h <= 31; h += 1) T(h).replace(/\[|\]/g, "") === S && (this.day = h);
|
|
1517
|
+
}], w: [a, g("week")], ww: [c, g("week")], M: [a, g("month")], MM: [c, g("month")], MMM: [l, function(S) {
|
|
1518
|
+
var T = $("months"), z = ($("monthsShort") || T.map(function(h) {
|
|
1498
1519
|
return h.slice(0, 3);
|
|
1499
1520
|
})).indexOf(S) + 1;
|
|
1500
|
-
if (
|
|
1501
|
-
this.month =
|
|
1502
|
-
}], MMMM: [
|
|
1503
|
-
var
|
|
1504
|
-
if (
|
|
1505
|
-
this.month =
|
|
1506
|
-
}], Y: [/[+-]?\d+/, g("year")], YY: [
|
|
1507
|
-
this.year =
|
|
1521
|
+
if (z < 1) throw new Error();
|
|
1522
|
+
this.month = z % 12 || z;
|
|
1523
|
+
}], MMMM: [l, function(S) {
|
|
1524
|
+
var T = $("months").indexOf(S) + 1;
|
|
1525
|
+
if (T < 1) throw new Error();
|
|
1526
|
+
this.month = T % 12 || T;
|
|
1527
|
+
}], Y: [/[+-]?\d+/, g("year")], YY: [c, function(S) {
|
|
1528
|
+
this.year = i(S);
|
|
1508
1529
|
}], YYYY: [/\d{4}/, g("year")], Z: w, ZZ: w };
|
|
1509
1530
|
function f(S) {
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1512
|
-
for (var h = (S =
|
|
1531
|
+
var T, z;
|
|
1532
|
+
T = S, z = s && s.formats;
|
|
1533
|
+
for (var h = (S = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, N, re) {
|
|
1513
1534
|
var le = re && re.toUpperCase();
|
|
1514
|
-
return
|
|
1535
|
+
return N || z[re] || n[re] || z[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, B, E) {
|
|
1515
1536
|
return B || E.slice(1);
|
|
1516
1537
|
});
|
|
1517
1538
|
})).match(o), v = h.length, F = 0; F < v; F += 1) {
|
|
1518
|
-
var y = h[F], A =
|
|
1539
|
+
var y = h[F], A = V[y], b = A && A[0], j = A && A[1];
|
|
1519
1540
|
h[F] = j ? { regex: b, parser: j } : y.replace(/^\[|\]$/g, "");
|
|
1520
1541
|
}
|
|
1521
1542
|
return function(C) {
|
|
1522
|
-
for (var
|
|
1543
|
+
for (var N = {}, re = 0, le = 0; re < v; re += 1) {
|
|
1523
1544
|
var R = h[re];
|
|
1524
1545
|
if (typeof R == "string") le += R.length;
|
|
1525
1546
|
else {
|
|
1526
1547
|
var B = R.regex, E = R.parser, d = C.slice(le), u = B.exec(d)[0];
|
|
1527
|
-
E.call(
|
|
1548
|
+
E.call(N, u), C = C.replace(u, "");
|
|
1528
1549
|
}
|
|
1529
1550
|
}
|
|
1530
1551
|
return function(_) {
|
|
1531
1552
|
var D = _.afternoon;
|
|
1532
1553
|
if (D !== void 0) {
|
|
1533
|
-
var
|
|
1534
|
-
D ?
|
|
1554
|
+
var P = _.hours;
|
|
1555
|
+
D ? P < 12 && (_.hours += 12) : P === 12 && (_.hours = 0), delete _.afternoon;
|
|
1535
1556
|
}
|
|
1536
|
-
}(
|
|
1557
|
+
}(N), N;
|
|
1537
1558
|
};
|
|
1538
1559
|
}
|
|
1539
|
-
return function(S,
|
|
1540
|
-
|
|
1541
|
-
var h =
|
|
1560
|
+
return function(S, T, z) {
|
|
1561
|
+
z.p.customParseFormat = !0, S && S.parseTwoDigitYear && (i = S.parseTwoDigitYear);
|
|
1562
|
+
var h = T.prototype, v = h.parse;
|
|
1542
1563
|
h.parse = function(F) {
|
|
1543
1564
|
var y = F.date, A = F.utc, b = F.args;
|
|
1544
1565
|
this.$u = A;
|
|
1545
1566
|
var j = b[1];
|
|
1546
1567
|
if (typeof j == "string") {
|
|
1547
|
-
var C = b[2] === !0,
|
|
1548
|
-
|
|
1568
|
+
var C = b[2] === !0, N = b[3] === !0, re = C || N, le = b[2];
|
|
1569
|
+
N && (le = b[2]), s = this.$locale(), !C && le && (s = z.Ls[le]), this.$d = function(d, u, _, D) {
|
|
1549
1570
|
try {
|
|
1550
1571
|
if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * d);
|
|
1551
|
-
var
|
|
1572
|
+
var P = f(u)(d), x = P.year, K = P.month, q = P.day, Q = P.hours, M = P.minutes, X = P.seconds, ue = P.milliseconds, de = P.zone, me = P.week, we = /* @__PURE__ */ new Date(), De = q || (x || K ? 1 : we.getDate()), $e = x || we.getFullYear(), xe = 0;
|
|
1552
1573
|
x && !K || (xe = K > 0 ? K - 1 : we.getMonth());
|
|
1553
|
-
var qe, nt = Q || 0, Ge =
|
|
1574
|
+
var qe, nt = Q || 0, Ge = M || 0, m = X || 0, p = ue || 0;
|
|
1554
1575
|
return de ? new Date(Date.UTC($e, xe, De, nt, Ge, m, p + 60 * de.offset * 1e3)) : _ ? new Date(Date.UTC($e, xe, De, nt, Ge, m, p)) : (qe = new Date($e, xe, De, nt, Ge, m, p), me && (qe = D(qe).week(me).toDate()), qe);
|
|
1555
1576
|
} catch {
|
|
1556
1577
|
return /* @__PURE__ */ new Date("");
|
|
1557
1578
|
}
|
|
1558
|
-
}(y, j, A,
|
|
1579
|
+
}(y, j, A, z), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), re && y != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
1559
1580
|
} else if (j instanceof Array) for (var R = j.length, B = 1; B <= R; B += 1) {
|
|
1560
1581
|
b[1] = j[B - 1];
|
|
1561
|
-
var E =
|
|
1582
|
+
var E = z.apply(this, b);
|
|
1562
1583
|
if (E.isValid()) {
|
|
1563
1584
|
this.$d = E.$d, this.$L = E.$L, this.init();
|
|
1564
1585
|
break;
|
|
@@ -1578,57 +1599,57 @@ var dn = { exports: {} };
|
|
|
1578
1599
|
e.exports = o();
|
|
1579
1600
|
})(it, function() {
|
|
1580
1601
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
|
|
1581
|
-
return function(r,
|
|
1582
|
-
var
|
|
1583
|
-
|
|
1584
|
-
var f = new Date($), S = function(
|
|
1585
|
-
|
|
1586
|
-
var h =
|
|
1587
|
-
return F || (F = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
1588
|
-
}(L,
|
|
1602
|
+
return function(r, c, a) {
|
|
1603
|
+
var l, s = function($, L, V) {
|
|
1604
|
+
V === void 0 && (V = {});
|
|
1605
|
+
var f = new Date($), S = function(T, z) {
|
|
1606
|
+
z === void 0 && (z = {});
|
|
1607
|
+
var h = z.timeZoneName || "short", v = T + "|" + h, F = o[v];
|
|
1608
|
+
return F || (F = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: T, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: h }), o[v] = F), F;
|
|
1609
|
+
}(L, V);
|
|
1589
1610
|
return S.formatToParts(f);
|
|
1590
|
-
},
|
|
1591
|
-
for (var
|
|
1592
|
-
var
|
|
1611
|
+
}, i = function($, L) {
|
|
1612
|
+
for (var V = s($, L), f = [], S = 0; S < V.length; S += 1) {
|
|
1613
|
+
var T = V[S], z = T.type, h = T.value, v = n[z];
|
|
1593
1614
|
v >= 0 && (f[v] = parseInt(h, 10));
|
|
1594
1615
|
}
|
|
1595
1616
|
var F = f[3], y = F === 24 ? 0 : F, A = f[0] + "-" + f[1] + "-" + f[2] + " " + y + ":" + f[4] + ":" + f[5] + ":000", b = +$;
|
|
1596
1617
|
return (a.utc(A).valueOf() - (b -= b % 1e3)) / 6e4;
|
|
1597
|
-
}, g =
|
|
1618
|
+
}, g = c.prototype;
|
|
1598
1619
|
g.tz = function($, L) {
|
|
1599
|
-
$ === void 0 && ($ =
|
|
1600
|
-
var
|
|
1601
|
-
if (!Number(h))
|
|
1602
|
-
else if (
|
|
1603
|
-
var v =
|
|
1604
|
-
|
|
1620
|
+
$ === void 0 && ($ = l);
|
|
1621
|
+
var V, f = this.utcOffset(), S = this.toDate(), T = S.toLocaleString("en-US", { timeZone: $ }), z = Math.round((S - new Date(T)) / 1e3 / 60), h = 15 * -Math.round(S.getTimezoneOffset() / 15) - z;
|
|
1622
|
+
if (!Number(h)) V = this.utcOffset(0, L);
|
|
1623
|
+
else if (V = a(T, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(h, !0), L) {
|
|
1624
|
+
var v = V.utcOffset();
|
|
1625
|
+
V = V.add(f - v, "minute");
|
|
1605
1626
|
}
|
|
1606
|
-
return
|
|
1627
|
+
return V.$x.$timezone = $, V;
|
|
1607
1628
|
}, g.offsetName = function($) {
|
|
1608
|
-
var L = this.$x.$timezone || a.tz.guess(),
|
|
1629
|
+
var L = this.$x.$timezone || a.tz.guess(), V = s(this.valueOf(), L, { timeZoneName: $ }).find(function(f) {
|
|
1609
1630
|
return f.type.toLowerCase() === "timezonename";
|
|
1610
1631
|
});
|
|
1611
|
-
return
|
|
1632
|
+
return V && V.value;
|
|
1612
1633
|
};
|
|
1613
1634
|
var w = g.startOf;
|
|
1614
1635
|
g.startOf = function($, L) {
|
|
1615
1636
|
if (!this.$x || !this.$x.$timezone) return w.call(this, $, L);
|
|
1616
|
-
var
|
|
1617
|
-
return w.call(
|
|
1618
|
-
}, a.tz = function($, L,
|
|
1619
|
-
var f =
|
|
1637
|
+
var V = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1638
|
+
return w.call(V, $, L).tz(this.$x.$timezone, !0);
|
|
1639
|
+
}, a.tz = function($, L, V) {
|
|
1640
|
+
var f = V && L, S = V || L || l, T = i(+a(), S);
|
|
1620
1641
|
if (typeof $ != "string") return a($).tz(S);
|
|
1621
|
-
var
|
|
1622
|
-
var j = y - 60 * A * 1e3, C =
|
|
1642
|
+
var z = function(y, A, b) {
|
|
1643
|
+
var j = y - 60 * A * 1e3, C = i(j, b);
|
|
1623
1644
|
if (A === C) return [j, A];
|
|
1624
|
-
var
|
|
1625
|
-
return C ===
|
|
1626
|
-
}(a.utc($, f).valueOf(),
|
|
1645
|
+
var N = i(j -= 60 * (C - A) * 1e3, b);
|
|
1646
|
+
return C === N ? [j, C] : [y - 60 * Math.min(C, N) * 1e3, Math.max(C, N)];
|
|
1647
|
+
}(a.utc($, f).valueOf(), T, S), h = z[0], v = z[1], F = a(h).utcOffset(v);
|
|
1627
1648
|
return F.$x.$timezone = S, F;
|
|
1628
1649
|
}, a.tz.guess = function() {
|
|
1629
1650
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1630
1651
|
}, a.tz.setDefault = function($) {
|
|
1631
|
-
|
|
1652
|
+
l = $;
|
|
1632
1653
|
};
|
|
1633
1654
|
};
|
|
1634
1655
|
});
|
|
@@ -1641,20 +1662,20 @@ var fn = { exports: {} };
|
|
|
1641
1662
|
e.exports = o();
|
|
1642
1663
|
})(it, function() {
|
|
1643
1664
|
var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
1644
|
-
return function(
|
|
1665
|
+
return function(c, a, l) {
|
|
1645
1666
|
var s = a.prototype;
|
|
1646
|
-
|
|
1667
|
+
l.utc = function(f) {
|
|
1647
1668
|
var S = { date: f, utc: !0, args: arguments };
|
|
1648
1669
|
return new a(S);
|
|
1649
1670
|
}, s.utc = function(f) {
|
|
1650
|
-
var S =
|
|
1671
|
+
var S = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1651
1672
|
return f ? S.add(this.utcOffset(), n) : S;
|
|
1652
1673
|
}, s.local = function() {
|
|
1653
|
-
return
|
|
1674
|
+
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1654
1675
|
};
|
|
1655
|
-
var
|
|
1676
|
+
var i = s.parse;
|
|
1656
1677
|
s.parse = function(f) {
|
|
1657
|
-
f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset),
|
|
1678
|
+
f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), i.call(this, f);
|
|
1658
1679
|
};
|
|
1659
1680
|
var g = s.init;
|
|
1660
1681
|
s.init = function() {
|
|
@@ -1665,8 +1686,8 @@ var fn = { exports: {} };
|
|
|
1665
1686
|
};
|
|
1666
1687
|
var w = s.utcOffset;
|
|
1667
1688
|
s.utcOffset = function(f, S) {
|
|
1668
|
-
var
|
|
1669
|
-
if (
|
|
1689
|
+
var T = this.$utils().u;
|
|
1690
|
+
if (T(f)) return this.$u ? 0 : T(this.$offset) ? w.call(this) : this.$offset;
|
|
1670
1691
|
if (typeof f == "string" && (f = function(F) {
|
|
1671
1692
|
F === void 0 && (F = "");
|
|
1672
1693
|
var y = F.match(o);
|
|
@@ -1674,12 +1695,12 @@ var fn = { exports: {} };
|
|
|
1674
1695
|
var A = ("" + y[0]).match(r) || ["-", 0, 0], b = A[0], j = 60 * +A[1] + +A[2];
|
|
1675
1696
|
return j === 0 ? 0 : b === "+" ? j : -j;
|
|
1676
1697
|
}(f), f === null)) return this;
|
|
1677
|
-
var
|
|
1678
|
-
if (
|
|
1698
|
+
var z = Math.abs(f) <= 16 ? 60 * f : f;
|
|
1699
|
+
if (z === 0) return this.utc(S);
|
|
1679
1700
|
var h = this.clone();
|
|
1680
|
-
if (S) return h.$offset =
|
|
1701
|
+
if (S) return h.$offset = z, h.$u = !1, h;
|
|
1681
1702
|
var v = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1682
|
-
return (h = this.local().add(
|
|
1703
|
+
return (h = this.local().add(z + v, n)).$offset = z, h.$x.$localOffset = v, h;
|
|
1683
1704
|
};
|
|
1684
1705
|
var $ = s.format;
|
|
1685
1706
|
s.format = function(f) {
|
|
@@ -1697,13 +1718,13 @@ var fn = { exports: {} };
|
|
|
1697
1718
|
};
|
|
1698
1719
|
var L = s.toDate;
|
|
1699
1720
|
s.toDate = function(f) {
|
|
1700
|
-
return f === "s" && this.$offset ?
|
|
1721
|
+
return f === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
|
|
1701
1722
|
};
|
|
1702
|
-
var
|
|
1703
|
-
s.diff = function(f, S,
|
|
1704
|
-
if (f && this.$u === f.$u) return
|
|
1705
|
-
var
|
|
1706
|
-
return
|
|
1723
|
+
var V = s.diff;
|
|
1724
|
+
s.diff = function(f, S, T) {
|
|
1725
|
+
if (f && this.$u === f.$u) return V.call(this, f, S, T);
|
|
1726
|
+
var z = this.local(), h = l(f).local();
|
|
1727
|
+
return V.call(z, h, S, T);
|
|
1707
1728
|
};
|
|
1708
1729
|
};
|
|
1709
1730
|
});
|
|
@@ -1714,7 +1735,7 @@ Ct.extend(cr);
|
|
|
1714
1735
|
Ct.extend(lr);
|
|
1715
1736
|
Ct.extend(ar);
|
|
1716
1737
|
const yt = /\$\{([^}]+)\}/g;
|
|
1717
|
-
function
|
|
1738
|
+
function Ne(e) {
|
|
1718
1739
|
if (!e)
|
|
1719
1740
|
return [];
|
|
1720
1741
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -1829,15 +1850,15 @@ function Ze(e, t) {
|
|
|
1829
1850
|
}
|
|
1830
1851
|
function ft(e, t, n, o = {}) {
|
|
1831
1852
|
const r = gr(o);
|
|
1832
|
-
return e.filter((
|
|
1833
|
-
|
|
1853
|
+
return e.filter((c) => c.visible ? !yr(
|
|
1854
|
+
c,
|
|
1834
1855
|
t,
|
|
1835
1856
|
n,
|
|
1836
1857
|
r,
|
|
1837
1858
|
o.rows
|
|
1838
1859
|
) : !1);
|
|
1839
1860
|
}
|
|
1840
|
-
function
|
|
1861
|
+
function Pt(e) {
|
|
1841
1862
|
return gn(e).some(
|
|
1842
1863
|
(n) => [
|
|
1843
1864
|
Z("common.序号"),
|
|
@@ -1852,7 +1873,7 @@ function Vt(e) {
|
|
|
1852
1873
|
].includes(n)
|
|
1853
1874
|
);
|
|
1854
1875
|
}
|
|
1855
|
-
function
|
|
1876
|
+
function Vt(e) {
|
|
1856
1877
|
return gn(e).includes("seqno");
|
|
1857
1878
|
}
|
|
1858
1879
|
function mr(e) {
|
|
@@ -1867,7 +1888,7 @@ function mr(e) {
|
|
|
1867
1888
|
}
|
|
1868
1889
|
function hn(e, t, n = "-") {
|
|
1869
1890
|
return !mr(e) || _e(t) ? [] : (Array.isArray(t) ? t : [t]).map(
|
|
1870
|
-
(r,
|
|
1891
|
+
(r, c) => vr(r, c, n)
|
|
1871
1892
|
).filter((r) => !!r);
|
|
1872
1893
|
}
|
|
1873
1894
|
function vr(e, t, n) {
|
|
@@ -1889,15 +1910,15 @@ function vr(e, t, n) {
|
|
|
1889
1910
|
text: e.name || n
|
|
1890
1911
|
};
|
|
1891
1912
|
if (e && typeof e == "object") {
|
|
1892
|
-
const o = e, r = hr(o, n),
|
|
1893
|
-
if (
|
|
1894
|
-
const
|
|
1895
|
-
return s && (
|
|
1913
|
+
const o = e, r = hr(o, n), c = Fe(o.url);
|
|
1914
|
+
if (c) {
|
|
1915
|
+
const l = { url: c }, s = Fe(o.name), i = Fe(o.mimeType), g = Fe(o.extension);
|
|
1916
|
+
return s && (l.name = s), i && (l.mimeType = i), g && (l.extension = g), {
|
|
1896
1917
|
key: String(t),
|
|
1897
1918
|
text: r,
|
|
1898
1919
|
action: {
|
|
1899
1920
|
type: "direct",
|
|
1900
|
-
options:
|
|
1921
|
+
options: l
|
|
1901
1922
|
}
|
|
1902
1923
|
};
|
|
1903
1924
|
}
|
|
@@ -1939,21 +1960,21 @@ function gr(e) {
|
|
|
1939
1960
|
return e.rows?.length ? e.rows : [e.values ?? {}];
|
|
1940
1961
|
}
|
|
1941
1962
|
function yr(e, t, n, o, r) {
|
|
1942
|
-
const
|
|
1943
|
-
return
|
|
1963
|
+
const c = n?.hiddenRule;
|
|
1964
|
+
return c ? o.some((a) => {
|
|
1944
1965
|
try {
|
|
1945
|
-
const
|
|
1946
|
-
return
|
|
1966
|
+
const l = a[e.code];
|
|
1967
|
+
return c({
|
|
1947
1968
|
field: e,
|
|
1948
1969
|
section: t,
|
|
1949
1970
|
values: a,
|
|
1950
1971
|
allValues: a,
|
|
1951
|
-
value:
|
|
1952
|
-
currentValue:
|
|
1972
|
+
value: l,
|
|
1973
|
+
currentValue: l,
|
|
1953
1974
|
rows: r
|
|
1954
1975
|
});
|
|
1955
|
-
} catch (
|
|
1956
|
-
return console.error("[globalInfo] hidden rule failed",
|
|
1976
|
+
} catch (l) {
|
|
1977
|
+
return console.error("[globalInfo] hidden rule failed", l), !1;
|
|
1957
1978
|
}
|
|
1958
1979
|
}) : !1;
|
|
1959
1980
|
}
|
|
@@ -1978,8 +1999,8 @@ function yn(e) {
|
|
|
1978
1999
|
function Sr(e, t, n) {
|
|
1979
2000
|
const o = pt(e);
|
|
1980
2001
|
if (Array.isArray(t) || o) {
|
|
1981
|
-
const r = dt(e, t).map((a) => Rt(e, a) || String(a ?? "").trim()).filter(Boolean),
|
|
1982
|
-
return r.length > 0 ? r.join(
|
|
2002
|
+
const r = dt(e, t).map((a) => Rt(e, a) || String(a ?? "").trim()).filter(Boolean), c = o ? "," : "、";
|
|
2003
|
+
return r.length > 0 ? r.join(c) : n;
|
|
1983
2004
|
}
|
|
1984
2005
|
return Rt(e, t) || String(t).trim() || n;
|
|
1985
2006
|
}
|
|
@@ -2006,12 +2027,12 @@ function bn(e) {
|
|
|
2006
2027
|
}
|
|
2007
2028
|
function _r(e, t) {
|
|
2008
2029
|
if (Array.isArray(e)) {
|
|
2009
|
-
const n = e.map((o) =>
|
|
2030
|
+
const n = e.map((o) => zt(o)).filter(Boolean);
|
|
2010
2031
|
return n.length > 0 ? n.join("、") : t;
|
|
2011
2032
|
}
|
|
2012
|
-
return
|
|
2033
|
+
return zt(e) || t;
|
|
2013
2034
|
}
|
|
2014
|
-
function
|
|
2035
|
+
function zt(e) {
|
|
2015
2036
|
if (typeof File < "u" && e instanceof File) return e.name;
|
|
2016
2037
|
if (e && typeof e == "object") {
|
|
2017
2038
|
const t = e;
|
|
@@ -2038,7 +2059,7 @@ function Ir(e = null) {
|
|
|
2038
2059
|
raw: e
|
|
2039
2060
|
};
|
|
2040
2061
|
}
|
|
2041
|
-
function
|
|
2062
|
+
function Nt(e) {
|
|
2042
2063
|
const t = kn(e), n = Cn(t), o = Lr(t).flatMap(
|
|
2043
2064
|
(r) => $n(r, n)
|
|
2044
2065
|
);
|
|
@@ -2056,8 +2077,8 @@ function Sn(e, t, n) {
|
|
|
2056
2077
|
});
|
|
2057
2078
|
}
|
|
2058
2079
|
function $r(e, t = {}, n = null) {
|
|
2059
|
-
const o = kn(e), r = Cn(o, t),
|
|
2060
|
-
|
|
2080
|
+
const o = kn(e), r = Cn(o, t), c = Tr(o, t, n), a = Object.fromEntries(
|
|
2081
|
+
c.map((l) => [l.key, l])
|
|
2061
2082
|
);
|
|
2062
2083
|
return {
|
|
2063
2084
|
scheme: r,
|
|
@@ -2065,8 +2086,8 @@ function $r(e, t = {}, n = null) {
|
|
|
2065
2086
|
topNodes: [],
|
|
2066
2087
|
treeNodes: [],
|
|
2067
2088
|
activeNode: n,
|
|
2068
|
-
activeSection:
|
|
2069
|
-
sections:
|
|
2089
|
+
activeSection: c[0] ?? null,
|
|
2090
|
+
sections: c,
|
|
2070
2091
|
sectionMap: a,
|
|
2071
2092
|
raw: e
|
|
2072
2093
|
};
|
|
@@ -2077,14 +2098,14 @@ function Cr(e) {
|
|
|
2077
2098
|
function kr(e, t = {}) {
|
|
2078
2099
|
const n = e.renderType === "table" ? e.rows.map(
|
|
2079
2100
|
(s) => _t(wt(s))
|
|
2080
|
-
) : [_t(wt(e.model))], o = ce(e.operationInfo), r = ce(o.editInfoSet),
|
|
2101
|
+
) : [_t(wt(e.model))], o = ce(e.operationInfo), r = ce(o.editInfoSet), c = ce(r.params), a = ce(o.queryInfoSet), l = ce(a.params);
|
|
2081
2102
|
return {
|
|
2082
2103
|
...t,
|
|
2083
2104
|
infSchmId: t.infSchmId ?? se(e.raw.infSchmId),
|
|
2084
2105
|
emplid: t.emplid ?? se(e.raw.emplid),
|
|
2085
2106
|
// 保存优先使用接口出参里的信息集挂载 tagId,其次才回退到请求节点 tagId。
|
|
2086
2107
|
tagId: ee(
|
|
2087
|
-
e.tagId ||
|
|
2108
|
+
e.tagId || c.tagId || l.tagId || t.tagId || e.requestTagId
|
|
2088
2109
|
),
|
|
2089
2110
|
infSetId: t.infSetId ?? e.infSetId,
|
|
2090
2111
|
setId: t.setId ?? e.setId,
|
|
@@ -2111,10 +2132,10 @@ function is(e) {
|
|
|
2111
2132
|
function wn(e) {
|
|
2112
2133
|
const t = Tn(e);
|
|
2113
2134
|
return (Array.isArray(t) ? t : Qe(ce(t), ["options", "list", "records", "data"])).map((o) => {
|
|
2114
|
-
const r = ce(o),
|
|
2135
|
+
const r = ce(o), c = r.fieldvalue, a = c ?? r.value ?? r.code ?? r.emplid;
|
|
2115
2136
|
return {
|
|
2116
2137
|
id: r.id,
|
|
2117
|
-
code:
|
|
2138
|
+
code: c ?? r.value ?? r.code ?? r.emplid,
|
|
2118
2139
|
// fieldname 在 md-options 中是字段标识,不是用户可读文案;展示文案只接受明确的 label/descr/name。
|
|
2119
2140
|
label: ee(
|
|
2120
2141
|
r.label ?? r.descr ?? r.name
|
|
@@ -2133,13 +2154,13 @@ function Tr(e, t, n) {
|
|
|
2133
2154
|
) : e.infSetMark || e.infSetFields || e.fields ? [xt(e, t, n, !0)] : [];
|
|
2134
2155
|
}
|
|
2135
2156
|
function xt(e, t, n, o) {
|
|
2136
|
-
const r = ce(e),
|
|
2157
|
+
const r = ce(e), c = Mr(r.infSetMark ?? r), a = Or(r.infSetFields ?? r.fields ?? []), l = Cr(c), s = Fr(
|
|
2137
2158
|
r.infSetValues ?? r.rows ?? r.data,
|
|
2138
2159
|
a,
|
|
2139
|
-
|
|
2140
|
-
),
|
|
2141
|
-
r.tagId ?? r.infTagId ?? g.tagId ?? g.infTagId ??
|
|
2142
|
-
), $ = ee(t.tagId ?? n?.tagId), L = ee(n?.key),
|
|
2160
|
+
l
|
|
2161
|
+
), i = s[0] ? wt(s[0]) : In(a), g = ce(r.tag), w = ee(
|
|
2162
|
+
r.tagId ?? r.infTagId ?? g.tagId ?? g.infTagId ?? c.raw.tagId ?? c.raw.infTagId
|
|
2163
|
+
), $ = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, S = o ? n?.code : void 0, T = c.setId || ee(r.setId), z = ee(r.infSetId) || T || ee(V), h = T || ee(f ?? z), v = c.code || ee(r.code ?? S ?? h), F = h || v || z || w, y = {
|
|
2143
2164
|
key: F,
|
|
2144
2165
|
id: F,
|
|
2145
2166
|
setId: h,
|
|
@@ -2147,19 +2168,19 @@ function xt(e, t, n, o) {
|
|
|
2147
2168
|
tagId: w,
|
|
2148
2169
|
requestTagId: $ || void 0,
|
|
2149
2170
|
ownerNodeKey: L || void 0,
|
|
2150
|
-
infSetId:
|
|
2151
|
-
title:
|
|
2152
|
-
renderType:
|
|
2153
|
-
mark:
|
|
2171
|
+
infSetId: z,
|
|
2172
|
+
title: c.name || ee(r.name ?? n?.tagName ?? F),
|
|
2173
|
+
renderType: l,
|
|
2174
|
+
mark: c,
|
|
2154
2175
|
fields: a,
|
|
2155
|
-
model:
|
|
2176
|
+
model: i,
|
|
2156
2177
|
rows: s,
|
|
2157
2178
|
operationInfo: mt(
|
|
2158
2179
|
t.operationInfo ?? r.operationInfo
|
|
2159
2180
|
),
|
|
2160
2181
|
raw: r
|
|
2161
2182
|
};
|
|
2162
|
-
return y.renderType === "form" && s.length === 0 && (y.rows = [{ ...
|
|
2183
|
+
return y.renderType === "form" && s.length === 0 && (y.rows = [{ ...i, __rowKey: `${F}-0` }]), y;
|
|
2163
2184
|
}
|
|
2164
2185
|
function Mr(e) {
|
|
2165
2186
|
const t = ce(e), n = ee(t.htmlDisplay || "F");
|
|
@@ -2182,7 +2203,7 @@ function Or(e) {
|
|
|
2182
2203
|
function Dr(e, t) {
|
|
2183
2204
|
const n = ce(e), o = ee(
|
|
2184
2205
|
n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`
|
|
2185
|
-
), r = ee(n.label ?? n.name ?? n.tagName ?? o),
|
|
2206
|
+
), r = ee(n.label ?? n.name ?? n.tagName ?? o), c = Mn(
|
|
2186
2207
|
n.interface ?? n.interfaceField
|
|
2187
2208
|
), a = qt(n.cascadeDependFields);
|
|
2188
2209
|
return {
|
|
@@ -2194,7 +2215,7 @@ function Dr(e, t) {
|
|
|
2194
2215
|
type: jr(n),
|
|
2195
2216
|
fieldType: se(n.fieldType),
|
|
2196
2217
|
frontInputType: se(n.frontInputType),
|
|
2197
|
-
renderType:
|
|
2218
|
+
renderType: Vr(n),
|
|
2198
2219
|
required: ke(n.required ?? n.isRequired),
|
|
2199
2220
|
readonly: ke(n.readonly ?? n.disabled),
|
|
2200
2221
|
visible: n.visible === void 0 ? ke(n.visibled ?? !0) : ke(n.visible),
|
|
@@ -2207,11 +2228,11 @@ function Dr(e, t) {
|
|
|
2207
2228
|
minWidth: Gt(n.minWidth),
|
|
2208
2229
|
placeholder: se(n.placeholder),
|
|
2209
2230
|
options: wn(n.options),
|
|
2210
|
-
interface:
|
|
2231
|
+
interface: c,
|
|
2211
2232
|
cascadeClearFields: qt(n.cascadeClearFields),
|
|
2212
|
-
cascadeDependFields:
|
|
2233
|
+
cascadeDependFields: Ne({
|
|
2213
2234
|
cascadeDependFields: a,
|
|
2214
|
-
interface:
|
|
2235
|
+
interface: c
|
|
2215
2236
|
}),
|
|
2216
2237
|
props: Ar(n),
|
|
2217
2238
|
formItemProps: On(n.formItemProps),
|
|
@@ -2219,16 +2240,16 @@ function Dr(e, t) {
|
|
|
2219
2240
|
};
|
|
2220
2241
|
}
|
|
2221
2242
|
function Fr(e, t, n) {
|
|
2222
|
-
if (Array.isArray(e) && e.some((
|
|
2223
|
-
const a = ce(
|
|
2243
|
+
if (Array.isArray(e) && e.some((c) => {
|
|
2244
|
+
const a = ce(c);
|
|
2224
2245
|
return t.some(
|
|
2225
|
-
(
|
|
2246
|
+
(l) => a[l.code] !== void 0 || a[l.key] !== void 0
|
|
2226
2247
|
);
|
|
2227
2248
|
}))
|
|
2228
|
-
return e.map((
|
|
2229
|
-
...ce(
|
|
2249
|
+
return e.map((c, a) => ({
|
|
2250
|
+
...ce(c),
|
|
2230
2251
|
__rowKey: ee(
|
|
2231
|
-
ce(
|
|
2252
|
+
ce(c).__rowKey ?? ce(c).key ?? a
|
|
2232
2253
|
)
|
|
2233
2254
|
}));
|
|
2234
2255
|
const o = In(t);
|
|
@@ -2244,19 +2265,19 @@ function $n(e, t, n = "") {
|
|
|
2244
2265
|
t,
|
|
2245
2266
|
ee(o.tagId ?? o.id ?? o.key)
|
|
2246
2267
|
)
|
|
2247
|
-
),
|
|
2248
|
-
return r.length === 0 &&
|
|
2249
|
-
(a,
|
|
2268
|
+
), c = Pr(o.infSetList);
|
|
2269
|
+
return r.length === 0 && c.length > 0 ? c.map(
|
|
2270
|
+
(a, l) => Er(o, a, t, n, l)
|
|
2250
2271
|
) : [Br(o, t, n, r)];
|
|
2251
2272
|
}
|
|
2252
2273
|
function Br(e, t, n, o) {
|
|
2253
|
-
const r = ee(e.tagId ?? e.id ?? e.key),
|
|
2274
|
+
const r = ee(e.tagId ?? e.id ?? e.key), c = ee(e.tagName ?? e.name ?? e.label ?? r);
|
|
2254
2275
|
return {
|
|
2255
2276
|
key: ee(e.key ?? r),
|
|
2256
2277
|
id: r,
|
|
2257
2278
|
tagId: r,
|
|
2258
|
-
tagName:
|
|
2259
|
-
label:
|
|
2279
|
+
tagName: c,
|
|
2280
|
+
label: c,
|
|
2260
2281
|
tagLevel: se(e.tagLevel ?? e.level) ?? null,
|
|
2261
2282
|
level: Dn(e.tagLevel ?? e.level),
|
|
2262
2283
|
parentTagId: se(
|
|
@@ -2276,11 +2297,11 @@ function Br(e, t, n, o) {
|
|
|
2276
2297
|
};
|
|
2277
2298
|
}
|
|
2278
2299
|
function Er(e, t, n, o, r) {
|
|
2279
|
-
const
|
|
2300
|
+
const c = ee(e.tagId ?? e.id ?? e.key), a = ee(e.tagName ?? e.name ?? e.label ?? c), l = t.infSetId || ee(t.setId), s = t.setId || l, i = l || `${c}-${r}`, g = t.code || se(e.code ?? l);
|
|
2280
2301
|
return {
|
|
2281
|
-
key:
|
|
2282
|
-
id:
|
|
2283
|
-
tagId:
|
|
2302
|
+
key: i,
|
|
2303
|
+
id: i,
|
|
2304
|
+
tagId: c,
|
|
2284
2305
|
tagName: a,
|
|
2285
2306
|
label: a,
|
|
2286
2307
|
tagLevel: se(e.tagLevel ?? e.level) ?? null,
|
|
@@ -2291,7 +2312,7 @@ function Er(e, t, n, o, r) {
|
|
|
2291
2312
|
parentId: se(e.parentTagId ?? e.parentId ?? o) ?? null,
|
|
2292
2313
|
infSchmId: se(e.infSchmId ?? n?.infSchmId),
|
|
2293
2314
|
schemeId: ee(e.infSchmId ?? n?.infSchmId),
|
|
2294
|
-
infSetId:
|
|
2315
|
+
infSetId: l,
|
|
2295
2316
|
setId: s,
|
|
2296
2317
|
code: g,
|
|
2297
2318
|
children: [],
|
|
@@ -2300,7 +2321,7 @@ function Er(e, t, n, o, r) {
|
|
|
2300
2321
|
loaded: !0,
|
|
2301
2322
|
raw: {
|
|
2302
2323
|
...e,
|
|
2303
|
-
infSetId:
|
|
2324
|
+
infSetId: l,
|
|
2304
2325
|
setId: s,
|
|
2305
2326
|
infSetList: [t.raw]
|
|
2306
2327
|
}
|
|
@@ -2325,7 +2346,7 @@ function Lr(e) {
|
|
|
2325
2346
|
const t = ce(e.globalInfoSchmConfig), n = Qe(t, ["children", "tree", "list", "tags"]);
|
|
2326
2347
|
return n.length ? n : Qe(e, ["children", "tree", "list", "tags", "records"]);
|
|
2327
2348
|
}
|
|
2328
|
-
function
|
|
2349
|
+
function Pr(e) {
|
|
2329
2350
|
return Array.isArray(e) ? e.map((t) => {
|
|
2330
2351
|
const n = ce(t);
|
|
2331
2352
|
return {
|
|
@@ -2385,7 +2406,7 @@ function qt(e) {
|
|
|
2385
2406
|
const t = e.map((n) => ee(n)).filter(Boolean);
|
|
2386
2407
|
return t.length ? t : void 0;
|
|
2387
2408
|
}
|
|
2388
|
-
function
|
|
2409
|
+
function Vr(e) {
|
|
2389
2410
|
if (ke(e.htmlDisplay)) return "html";
|
|
2390
2411
|
if (ke(e.multRow)) return "multi-row";
|
|
2391
2412
|
const t = ee(e.renderType).toLowerCase();
|
|
@@ -2433,7 +2454,7 @@ function ke(e) {
|
|
|
2433
2454
|
e.toLowerCase()
|
|
2434
2455
|
) : !!e;
|
|
2435
2456
|
}
|
|
2436
|
-
const
|
|
2457
|
+
const Ve = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => String(e ?? "").trim(), tt = (e) => Array.from(new Set(e.map(Rr).filter(Boolean))), Ue = (e) => !!(e && typeof e == "object" && "children" in e), Xe = (e) => tt([
|
|
2437
2458
|
e?.key,
|
|
2438
2459
|
e?.id,
|
|
2439
2460
|
e?.setId,
|
|
@@ -2442,7 +2463,7 @@ const Pe = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => Str
|
|
|
2442
2463
|
e?.code,
|
|
2443
2464
|
...(e?.infSetList ?? []).map((t) => t.infSetId),
|
|
2444
2465
|
...(e?.infSetList ?? []).map((t) => t.setId)
|
|
2445
|
-
]),
|
|
2466
|
+
]), zr = (e) => tt([
|
|
2446
2467
|
e.key,
|
|
2447
2468
|
e.id,
|
|
2448
2469
|
e.setId,
|
|
@@ -2451,32 +2472,32 @@ const Pe = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => Str
|
|
|
2451
2472
|
e.code
|
|
2452
2473
|
]);
|
|
2453
2474
|
function Bn(e, t, n) {
|
|
2454
|
-
const o =
|
|
2455
|
-
return r.length === 0 ? !1 : r.some((
|
|
2475
|
+
const o = zr(e), r = tt([n, ...Xe(t)]);
|
|
2476
|
+
return r.length === 0 ? !1 : r.some((c) => o.includes(c));
|
|
2456
2477
|
}
|
|
2457
|
-
function
|
|
2478
|
+
function Nr(e, t, n) {
|
|
2458
2479
|
return tt([n, ...Xe(t)]).length === 0 ? e : e.filter((r) => Bn(r, t, n));
|
|
2459
2480
|
}
|
|
2460
2481
|
function xr(e, t, n = {}) {
|
|
2461
|
-
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t :
|
|
2482
|
+
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((s) => Ve(s) === r || s.code === r) : t, l = Ne(c).some((s) => {
|
|
2462
2483
|
if (s === "searchText" && Object.prototype.hasOwnProperty.call(o, s) || s !== "searchText" && !Gr(e, s))
|
|
2463
2484
|
return !1;
|
|
2464
|
-
const
|
|
2465
|
-
return
|
|
2485
|
+
const i = o[s];
|
|
2486
|
+
return i == null || i === "";
|
|
2466
2487
|
});
|
|
2467
2488
|
return {
|
|
2468
2489
|
fieldKey: r,
|
|
2469
|
-
currentField:
|
|
2490
|
+
currentField: c,
|
|
2470
2491
|
sourceModel: o,
|
|
2471
2492
|
sourceRow: e.renderType === "table" ? o : void 0,
|
|
2472
|
-
missingDependField:
|
|
2493
|
+
missingDependField: l
|
|
2473
2494
|
};
|
|
2474
2495
|
}
|
|
2475
2496
|
function qr(e) {
|
|
2476
|
-
return !!(e && !ut(e) &&
|
|
2497
|
+
return !!(e && !ut(e) && Ne(e).length === 0 && (e.options ?? []).length > 0);
|
|
2477
2498
|
}
|
|
2478
2499
|
function Gr(e, t) {
|
|
2479
|
-
return e.fields.some((n) => n.code === t || n.key === t || n.id === t ||
|
|
2500
|
+
return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Ve(n) === t);
|
|
2480
2501
|
}
|
|
2481
2502
|
function Kr(e) {
|
|
2482
2503
|
return wn(e);
|
|
@@ -2493,8 +2514,8 @@ function Ur(e, t, n) {
|
|
|
2493
2514
|
const o = Te(e?.operationInfo).queryInfoSet;
|
|
2494
2515
|
if (at(o))
|
|
2495
2516
|
return o;
|
|
2496
|
-
const r = t?.infSetList.find((a) => a.infSetId === n),
|
|
2497
|
-
return at(
|
|
2517
|
+
const r = t?.infSetList.find((a) => a.infSetId === n), c = Te(r?.operationInfo).queryInfoSet;
|
|
2518
|
+
return at(c) ? c : void 0;
|
|
2498
2519
|
}
|
|
2499
2520
|
function Hr(e) {
|
|
2500
2521
|
const t = Te(e.operationInfo).editInfoSet;
|
|
@@ -2579,29 +2600,29 @@ function Je(e = {}) {
|
|
|
2579
2600
|
};
|
|
2580
2601
|
}
|
|
2581
2602
|
function Qr(e) {
|
|
2582
|
-
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap },
|
|
2583
|
-
return
|
|
2584
|
-
const
|
|
2585
|
-
t[
|
|
2586
|
-
...r[
|
|
2603
|
+
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, c = Nr(e.nextViewModel.sections, e.node, e.targetKey), a = tt([e.targetKey, ...Xe(e.node)]).length > 0, l = c.find((s) => Bn(s, e.node, e.targetKey)) ?? (a ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
|
|
2604
|
+
return c.forEach((s) => {
|
|
2605
|
+
const i = Me(s);
|
|
2606
|
+
t[i] = s, o.includes(i) || o.push(i), r[i] = Je({
|
|
2607
|
+
...r[i],
|
|
2587
2608
|
loaded: !0,
|
|
2588
2609
|
loading: !1,
|
|
2589
2610
|
error: null,
|
|
2590
|
-
editing: e.editingSectionKeys.includes(
|
|
2611
|
+
editing: e.editingSectionKeys.includes(i)
|
|
2591
2612
|
});
|
|
2592
|
-
}), e.targetKey &&
|
|
2613
|
+
}), e.targetKey && l ? n[e.targetKey] = Me(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = Je({
|
|
2593
2614
|
...r[e.targetKey],
|
|
2594
2615
|
loaded: !0,
|
|
2595
2616
|
loading: !1,
|
|
2596
2617
|
error: null,
|
|
2597
|
-
editing: !!(
|
|
2618
|
+
editing: !!(l && e.editingSectionKeys.includes(Me(l)))
|
|
2598
2619
|
})), {
|
|
2599
2620
|
sectionMap: t,
|
|
2600
2621
|
sectionAliasMap: n,
|
|
2601
2622
|
sectionOrder: o,
|
|
2602
2623
|
sectionStatusMap: r,
|
|
2603
|
-
matchedSection:
|
|
2604
|
-
targetSections:
|
|
2624
|
+
matchedSection: l,
|
|
2625
|
+
targetSections: c
|
|
2605
2626
|
};
|
|
2606
2627
|
}
|
|
2607
2628
|
const Ln = Z(
|
|
@@ -2616,7 +2637,7 @@ function Xr(e, t = [], n = {}) {
|
|
|
2616
2637
|
function ea(e, t) {
|
|
2617
2638
|
return typeof e == "function" ? e(t) : typeof e == "string" ? e : Ln;
|
|
2618
2639
|
}
|
|
2619
|
-
const
|
|
2640
|
+
const ze = (e) => new Error(`[GlobalInfo] ${e}`), ta = (e) => [
|
|
2620
2641
|
String(e.method ?? "").toLowerCase(),
|
|
2621
2642
|
String(e.url ?? ""),
|
|
2622
2643
|
It(Te(e.params))
|
|
@@ -2625,9 +2646,9 @@ function It(e) {
|
|
|
2625
2646
|
return Array.isArray(e) ? `[${e.map((t) => It(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${It(o)}`).join(",")}}` : JSON.stringify(e);
|
|
2626
2647
|
}
|
|
2627
2648
|
const na = (e) => {
|
|
2628
|
-
const t = ge(!1), n = ge(!1), o = ge(!1), r = je(null),
|
|
2649
|
+
const t = ge(!1), n = ge(!1), o = ge(!1), r = je(null), c = je([]), a = je(null), l = je(null), s = je(null), i = je({}), g = je({}), w = ge([]), $ = je({}), L = ge([]), V = O(
|
|
2629
2650
|
() => {
|
|
2630
|
-
const m = w.value.map((k) =>
|
|
2651
|
+
const m = w.value.map((k) => i.value[k]).filter((k) => !!k), p = Object.entries(i.value).filter(([k]) => !w.value.includes(k)).map(([, k]) => k);
|
|
2631
2652
|
return [...m, ...p];
|
|
2632
2653
|
}
|
|
2633
2654
|
), f = O(() => ({
|
|
@@ -2640,7 +2661,7 @@ const na = (e) => {
|
|
|
2640
2661
|
// 当前所有编辑中的 section key。
|
|
2641
2662
|
editingSectionKeys: L.value,
|
|
2642
2663
|
// 已加载 section 映射。
|
|
2643
|
-
sectionMap:
|
|
2664
|
+
sectionMap: i.value,
|
|
2644
2665
|
// section 状态映射;这里把 alias 后的编辑态也同步进去。
|
|
2645
2666
|
sectionStatusMap: Object.fromEntries(
|
|
2646
2667
|
Object.entries($.value).map(([m, p]) => [
|
|
@@ -2662,7 +2683,7 @@ const na = (e) => {
|
|
|
2662
2683
|
adaptScene: e.adaptScene,
|
|
2663
2684
|
// emplid 是当前人员标识,树和详情接口都需要它。
|
|
2664
2685
|
emplid: e.emplid
|
|
2665
|
-
}),
|
|
2686
|
+
}), T = (m) => ({
|
|
2666
2687
|
// 复用基础参数,保证人员和场景一致。
|
|
2667
2688
|
...S(),
|
|
2668
2689
|
// infSchmId 指定当前模板方案。
|
|
@@ -2673,7 +2694,7 @@ const na = (e) => {
|
|
|
2673
2694
|
tagLevel: m.tagLevel,
|
|
2674
2695
|
// parentTagId 保留父子关系上下文。
|
|
2675
2696
|
parentTagId: m.parentTagId
|
|
2676
|
-
}),
|
|
2697
|
+
}), z = (m = l.value, p = s.value) => ({
|
|
2677
2698
|
// 详情接口同样需要基础人员和场景参数。
|
|
2678
2699
|
...S(),
|
|
2679
2700
|
// 当前节点所属模板方案。
|
|
@@ -2690,13 +2711,13 @@ const na = (e) => {
|
|
|
2690
2711
|
operation: m,
|
|
2691
2712
|
context: p,
|
|
2692
2713
|
viewModel: a.value,
|
|
2693
|
-
sections:
|
|
2694
|
-
activeNode:
|
|
2714
|
+
sections: V.value,
|
|
2715
|
+
activeNode: l.value,
|
|
2695
2716
|
activeSection: s.value
|
|
2696
2717
|
}), v = nr(
|
|
2697
2718
|
async (m, p) => {
|
|
2698
2719
|
if (!e.service.requestOperation)
|
|
2699
|
-
throw
|
|
2720
|
+
throw ze("service.requestOperation is required");
|
|
2700
2721
|
return e.service.requestOperation(m, p);
|
|
2701
2722
|
},
|
|
2702
2723
|
(m) => ta(m)
|
|
@@ -2714,8 +2735,8 @@ const na = (e) => {
|
|
|
2714
2735
|
row: p?.row,
|
|
2715
2736
|
node: p?.node,
|
|
2716
2737
|
viewModel: a.value,
|
|
2717
|
-
sections:
|
|
2718
|
-
activeNode:
|
|
2738
|
+
sections: V.value,
|
|
2739
|
+
activeNode: l.value,
|
|
2719
2740
|
activeSection: s.value,
|
|
2720
2741
|
searchText: p?.searchText
|
|
2721
2742
|
}), Y = { ...m, params: k }, W = p && { ...p, params: k };
|
|
@@ -2739,7 +2760,7 @@ const na = (e) => {
|
|
|
2739
2760
|
if (!p)
|
|
2740
2761
|
return null;
|
|
2741
2762
|
const k = g.value[p] ?? p;
|
|
2742
|
-
return
|
|
2763
|
+
return i.value[k] ?? null;
|
|
2743
2764
|
}, j = (m = s.value) => {
|
|
2744
2765
|
const p = A(m);
|
|
2745
2766
|
if (p)
|
|
@@ -2747,17 +2768,17 @@ const na = (e) => {
|
|
|
2747
2768
|
}, C = (m = s.value) => {
|
|
2748
2769
|
if (m)
|
|
2749
2770
|
return typeof m == "string" ? m : Ue(m) ? m.setId ?? m.infSetId ?? m.key : Me(m);
|
|
2750
|
-
},
|
|
2771
|
+
}, N = (m = s.value) => {
|
|
2751
2772
|
if (Ue(m))
|
|
2752
2773
|
return m;
|
|
2753
2774
|
if (typeof m == "string") {
|
|
2754
|
-
const p = y(
|
|
2775
|
+
const p = y(c.value, m);
|
|
2755
2776
|
if (p)
|
|
2756
2777
|
return p;
|
|
2757
2778
|
const k = b(m);
|
|
2758
|
-
return k?.ownerNodeKey ? y(
|
|
2779
|
+
return k?.ownerNodeKey ? y(c.value, k.ownerNodeKey) ?? l.value : k || l.value && Xe(l.value).includes(m) ? l.value : null;
|
|
2759
2780
|
}
|
|
2760
|
-
return m?.ownerNodeKey ? y(
|
|
2781
|
+
return m?.ownerNodeKey ? y(c.value, m.ownerNodeKey) ?? l.value : l.value;
|
|
2761
2782
|
}, re = (m = s.value) => !m || Ue(m) ? null : b(m), le = (m = s.value) => {
|
|
2762
2783
|
const p = C(m);
|
|
2763
2784
|
if (!p)
|
|
@@ -2784,8 +2805,8 @@ const na = (e) => {
|
|
|
2784
2805
|
editing: L.value.includes(k)
|
|
2785
2806
|
})
|
|
2786
2807
|
});
|
|
2787
|
-
}, B = (m = a.value?.raw ?? null, p =
|
|
2788
|
-
const k =
|
|
2808
|
+
}, B = (m = a.value?.raw ?? null, p = l.value) => {
|
|
2809
|
+
const k = V.value, Y = s.value && k.find(
|
|
2789
2810
|
(W) => Me(W) === Me(s.value)
|
|
2790
2811
|
) ? s.value : null;
|
|
2791
2812
|
a.value = {
|
|
@@ -2794,8 +2815,8 @@ const na = (e) => {
|
|
|
2794
2815
|
// 当前节点。
|
|
2795
2816
|
node: p,
|
|
2796
2817
|
// 顶层节点和树节点都来自 nodes。
|
|
2797
|
-
topNodes:
|
|
2798
|
-
treeNodes:
|
|
2818
|
+
topNodes: c.value,
|
|
2819
|
+
treeNodes: c.value,
|
|
2799
2820
|
// 当前激活节点。
|
|
2800
2821
|
activeNode: p,
|
|
2801
2822
|
// 当前激活 section。
|
|
@@ -2803,13 +2824,13 @@ const na = (e) => {
|
|
|
2803
2824
|
// 当前所有已加载 section。
|
|
2804
2825
|
sections: k,
|
|
2805
2826
|
// 当前 section 缓存。
|
|
2806
|
-
sectionMap:
|
|
2827
|
+
sectionMap: i.value,
|
|
2807
2828
|
// 保留原始接口数据。
|
|
2808
2829
|
raw: m
|
|
2809
2830
|
}, s.value = Y;
|
|
2810
|
-
}, E = (m, p =
|
|
2831
|
+
}, E = (m, p = l.value, k) => {
|
|
2811
2832
|
const Y = Qr({
|
|
2812
|
-
currentMap:
|
|
2833
|
+
currentMap: i.value,
|
|
2813
2834
|
currentAliasMap: g.value,
|
|
2814
2835
|
currentOrder: w.value,
|
|
2815
2836
|
currentStatusMap: $.value,
|
|
@@ -2819,39 +2840,39 @@ const na = (e) => {
|
|
|
2819
2840
|
targetKey: k,
|
|
2820
2841
|
activeSection: s.value
|
|
2821
2842
|
});
|
|
2822
|
-
return
|
|
2843
|
+
return i.value = Y.sectionMap, g.value = Y.sectionAliasMap, w.value = Y.sectionOrder, $.value = Y.sectionStatusMap, a.value = {
|
|
2823
2844
|
...m,
|
|
2824
2845
|
scheme: m.scheme ?? a.value?.scheme ?? null,
|
|
2825
|
-
topNodes:
|
|
2826
|
-
treeNodes:
|
|
2846
|
+
topNodes: c.value,
|
|
2847
|
+
treeNodes: c.value,
|
|
2827
2848
|
activeNode: p,
|
|
2828
2849
|
activeSection: Y.matchedSection,
|
|
2829
2850
|
sections: Y.targetSections,
|
|
2830
|
-
sectionMap:
|
|
2851
|
+
sectionMap: i.value
|
|
2831
2852
|
}, s.value = Y.matchedSection, Y.matchedSection;
|
|
2832
2853
|
}, d = (m, p) => {
|
|
2833
|
-
const k = j(m), Y = k ?
|
|
2854
|
+
const k = j(m), Y = k ? i.value[k] : null;
|
|
2834
2855
|
if (!k || !Y)
|
|
2835
2856
|
return;
|
|
2836
2857
|
const W = p(Y);
|
|
2837
|
-
|
|
2838
|
-
...
|
|
2858
|
+
i.value = {
|
|
2859
|
+
...i.value,
|
|
2839
2860
|
[k]: W
|
|
2840
2861
|
}, s.value = Me(s.value ?? W) === k ? W : s.value, B();
|
|
2841
|
-
}, u = async (m = s.value ??
|
|
2842
|
-
const p = re(m), k =
|
|
2862
|
+
}, u = async (m = s.value ?? l.value) => {
|
|
2863
|
+
const p = re(m), k = N(m) ?? l.value, Y = C(m);
|
|
2843
2864
|
if (!k)
|
|
2844
2865
|
return null;
|
|
2845
2866
|
if (!e.service.requestOperation)
|
|
2846
|
-
throw
|
|
2867
|
+
throw ze("service.requestOperation is required");
|
|
2847
2868
|
n.value = !0, r.value = null, R(Y ?? k, { loading: !0, error: null });
|
|
2848
2869
|
try {
|
|
2849
2870
|
const W = p ? [{ infSetId: p.infSetId, setId: p.setId, operationInfo: p.operationInfo, raw: p.raw }] : k.infSetList;
|
|
2850
2871
|
if (W.length === 0)
|
|
2851
|
-
throw
|
|
2872
|
+
throw ze("node.infSetList is required");
|
|
2852
2873
|
const Ce = await Promise.all(W.map(async (ie) => {
|
|
2853
2874
|
const he = Ur(p, k, ie.infSetId), Ae = p?.requestTagId ?? p?.tagId ?? k.tagId, ot = {
|
|
2854
|
-
...
|
|
2875
|
+
...z(k, p),
|
|
2855
2876
|
tagId: Ae,
|
|
2856
2877
|
infSetId: ie.infSetId,
|
|
2857
2878
|
setId: ie.setId,
|
|
@@ -2868,7 +2889,7 @@ const na = (e) => {
|
|
|
2868
2889
|
});
|
|
2869
2890
|
return $r(Ke, ot, k);
|
|
2870
2891
|
}
|
|
2871
|
-
throw
|
|
2892
|
+
throw ze("infoSet.operationInfo.queryInfoSet is required");
|
|
2872
2893
|
})), ve = {
|
|
2873
2894
|
...Ce[0],
|
|
2874
2895
|
sections: Ce.flatMap((ie) => ie.sections),
|
|
@@ -2886,34 +2907,34 @@ const na = (e) => {
|
|
|
2886
2907
|
if (!Ue(m) && typeof m != "string")
|
|
2887
2908
|
return b(m);
|
|
2888
2909
|
const p = C(m);
|
|
2889
|
-
return p ?
|
|
2890
|
-
},
|
|
2910
|
+
return p ? i.value[g.value[p] ?? p] ?? null : null;
|
|
2911
|
+
}, P = async (m = l.value) => m ? (await u(m), a.value) : (a.value = null, s.value = null, i.value = {}, g.value = {}, w.value = [], $.value = {}, null), x = async (m) => {
|
|
2891
2912
|
const p = Yr(m);
|
|
2892
2913
|
if (!p)
|
|
2893
2914
|
return m.children;
|
|
2894
|
-
const k =
|
|
2915
|
+
const k = T(m), Y = await h(p, {
|
|
2895
2916
|
type: "openTag",
|
|
2896
2917
|
requestSource: "sidebar",
|
|
2897
2918
|
tagId: m.tagId,
|
|
2898
2919
|
node: m,
|
|
2899
2920
|
params: k
|
|
2900
2921
|
});
|
|
2901
|
-
return
|
|
2922
|
+
return Nt(Y).treeNodes;
|
|
2902
2923
|
}, K = async (m) => {
|
|
2903
2924
|
if (m.loaded)
|
|
2904
2925
|
return m.children;
|
|
2905
2926
|
const p = await x(m);
|
|
2906
|
-
return p.length > 0 && (
|
|
2927
|
+
return p.length > 0 && (c.value = Sn(c.value, m.key, p)), p;
|
|
2907
2928
|
}, q = async (m) => {
|
|
2908
|
-
const p = typeof m == "string" ? y(
|
|
2909
|
-
return p ? (
|
|
2929
|
+
const p = typeof m == "string" ? y(c.value, m) : m;
|
|
2930
|
+
return p ? (l.value = p, s.value = null, L.value = [], await K(p), B(a.value?.raw, p), p) : null;
|
|
2910
2931
|
}, Q = async () => {
|
|
2911
2932
|
const m = e.service.templateTree;
|
|
2912
2933
|
if (!m)
|
|
2913
|
-
throw
|
|
2934
|
+
throw ze("service.templateTree is required");
|
|
2914
2935
|
t.value = !0, r.value = null;
|
|
2915
2936
|
try {
|
|
2916
|
-
const p = await m(S()), k =
|
|
2937
|
+
const p = await m(S()), k = Nt(p), Y = await Promise.all(
|
|
2917
2938
|
k.treeNodes.map(async (Ce) => {
|
|
2918
2939
|
const ve = await x(Ce);
|
|
2919
2940
|
return {
|
|
@@ -2923,24 +2944,24 @@ const na = (e) => {
|
|
|
2923
2944
|
};
|
|
2924
2945
|
})
|
|
2925
2946
|
);
|
|
2926
|
-
|
|
2947
|
+
c.value = Y, s.value = null, i.value = {}, g.value = {}, w.value = [], $.value = {}, L.value = [];
|
|
2927
2948
|
const W = y(Y, e.initialActiveNodeKey) ?? y(Y);
|
|
2928
|
-
return
|
|
2949
|
+
return l.value = W, a.value = {
|
|
2929
2950
|
...k,
|
|
2930
2951
|
treeNodes: Y,
|
|
2931
2952
|
activeNode: W,
|
|
2932
|
-
sectionMap:
|
|
2933
|
-
sections:
|
|
2934
|
-
},
|
|
2953
|
+
sectionMap: i.value,
|
|
2954
|
+
sections: V.value
|
|
2955
|
+
}, c.value;
|
|
2935
2956
|
} catch (p) {
|
|
2936
2957
|
throw r.value = p, p;
|
|
2937
2958
|
} finally {
|
|
2938
2959
|
t.value = !1;
|
|
2939
2960
|
}
|
|
2940
|
-
},
|
|
2961
|
+
}, M = async () => {
|
|
2941
2962
|
const m = A();
|
|
2942
|
-
await _(s.value ??
|
|
2943
|
-
const p =
|
|
2963
|
+
await _(s.value ?? l.value);
|
|
2964
|
+
const p = V.value.find(
|
|
2944
2965
|
(k) => Me(k) === m
|
|
2945
2966
|
);
|
|
2946
2967
|
return p && (s.value = p), B(), a.value;
|
|
@@ -2956,9 +2977,9 @@ const na = (e) => {
|
|
|
2956
2977
|
(k) => k !== p
|
|
2957
2978
|
), R(p, { editing: !1 }));
|
|
2958
2979
|
}, me = (m, p, k) => {
|
|
2959
|
-
const Y = typeof p == "string" ? p :
|
|
2980
|
+
const Y = typeof p == "string" ? p : Ve(p);
|
|
2960
2981
|
d(m, (W) => {
|
|
2961
|
-
const ve = (typeof p == "string" ? W.fields.find((he) =>
|
|
2982
|
+
const ve = (typeof p == "string" ? W.fields.find((he) => Ve(he) === Y || he.code === Y) : p)?.cascadeClearFields ?? [], ie = {
|
|
2962
2983
|
...W.model,
|
|
2963
2984
|
[Y]: k
|
|
2964
2985
|
};
|
|
@@ -2973,7 +2994,7 @@ const na = (e) => {
|
|
|
2973
2994
|
rows: W.renderType === "form" ? [{ ...W.rows[0], ...ie }] : W.rows,
|
|
2974
2995
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
2975
2996
|
fields: W.fields.map((he) => {
|
|
2976
|
-
const Ae =
|
|
2997
|
+
const Ae = Ve(he);
|
|
2977
2998
|
return Ae === Y || he.code === Y ? { ...he, value: k } : ve.includes(Ae) || ve.includes(he.code) ? { ...he, value: "" } : he;
|
|
2978
2999
|
})
|
|
2979
3000
|
};
|
|
@@ -3000,7 +3021,7 @@ const na = (e) => {
|
|
|
3000
3021
|
return d(W, (Ye) => ({
|
|
3001
3022
|
...Ye,
|
|
3002
3023
|
fields: Ye.fields.map(
|
|
3003
|
-
(
|
|
3024
|
+
(Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: [] } : Pe
|
|
3004
3025
|
)
|
|
3005
3026
|
})), [];
|
|
3006
3027
|
const Yn = await F(
|
|
@@ -3011,7 +3032,7 @@ const na = (e) => {
|
|
|
3011
3032
|
type: "fieldOptions",
|
|
3012
3033
|
requestSource: "inner",
|
|
3013
3034
|
tagId: W.requestTagId ?? W.tagId,
|
|
3014
|
-
node:
|
|
3035
|
+
node: N(W),
|
|
3015
3036
|
section: W,
|
|
3016
3037
|
field: ie,
|
|
3017
3038
|
params: Te(Ke.params),
|
|
@@ -3024,7 +3045,7 @@ const na = (e) => {
|
|
|
3024
3045
|
return d(W, (Ye) => ({
|
|
3025
3046
|
...Ye,
|
|
3026
3047
|
fields: Ye.fields.map(
|
|
3027
|
-
(
|
|
3048
|
+
(Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: Ot } : Pe
|
|
3028
3049
|
)
|
|
3029
3050
|
})), Ot;
|
|
3030
3051
|
}, De = (m, p) => {
|
|
@@ -3041,7 +3062,7 @@ const na = (e) => {
|
|
|
3041
3062
|
// fields.value 也同步成 model 中的值。
|
|
3042
3063
|
fields: k.fields.map((Y) => ({
|
|
3043
3064
|
...Y,
|
|
3044
|
-
value: p[
|
|
3065
|
+
value: p[Ve(Y)]
|
|
3045
3066
|
}))
|
|
3046
3067
|
}));
|
|
3047
3068
|
}, $e = (m, p) => {
|
|
@@ -3056,9 +3077,9 @@ const na = (e) => {
|
|
|
3056
3077
|
// 选中树节点。
|
|
3057
3078
|
selectNode: q,
|
|
3058
3079
|
// 加载当前节点详情。
|
|
3059
|
-
loadDetail:
|
|
3080
|
+
loadDetail: P,
|
|
3060
3081
|
// 刷新当前详情。
|
|
3061
|
-
reloadActiveSection:
|
|
3082
|
+
reloadActiveSection: M,
|
|
3062
3083
|
// 加载指定节点或 section。
|
|
3063
3084
|
loadSection: u,
|
|
3064
3085
|
// 重新加载指定节点或 section。
|
|
@@ -3098,13 +3119,13 @@ const na = (e) => {
|
|
|
3098
3119
|
return null;
|
|
3099
3120
|
const Y = Hr(k);
|
|
3100
3121
|
if (!Y)
|
|
3101
|
-
throw
|
|
3122
|
+
throw ze("section.operationInfo.editInfoSet is required");
|
|
3102
3123
|
o.value = !0, r.value = null, p && p !== Me(k) && R(p, { saving: !0, error: null }), R(k, { saving: !0, error: null });
|
|
3103
3124
|
try {
|
|
3104
3125
|
const {
|
|
3105
3126
|
tagId: W,
|
|
3106
3127
|
...Ce
|
|
3107
|
-
} =
|
|
3128
|
+
} = z(l.value, k), ve = kr(k, Ce), ie = Xr(
|
|
3108
3129
|
k,
|
|
3109
3130
|
ve.infSetValues ?? [],
|
|
3110
3131
|
{
|
|
@@ -3120,7 +3141,7 @@ const na = (e) => {
|
|
|
3120
3141
|
type: "editInfoSet",
|
|
3121
3142
|
requestSource: "inner",
|
|
3122
3143
|
tagId: k.requestTagId ?? k.tagId,
|
|
3123
|
-
node:
|
|
3144
|
+
node: l.value,
|
|
3124
3145
|
section: k,
|
|
3125
3146
|
params: ve,
|
|
3126
3147
|
model: k.model
|
|
@@ -3148,15 +3169,15 @@ const na = (e) => {
|
|
|
3148
3169
|
// 当前 viewModel。
|
|
3149
3170
|
viewModel: a,
|
|
3150
3171
|
// 当前模板树节点。
|
|
3151
|
-
nodes:
|
|
3172
|
+
nodes: c,
|
|
3152
3173
|
// 当前已加载 section 列表。
|
|
3153
|
-
sections:
|
|
3174
|
+
sections: V,
|
|
3154
3175
|
// 当前 section 缓存。
|
|
3155
|
-
sectionMap:
|
|
3176
|
+
sectionMap: i,
|
|
3156
3177
|
// 当前 section 状态缓存。
|
|
3157
3178
|
sectionStatusMap: $,
|
|
3158
3179
|
// 当前激活节点。
|
|
3159
|
-
activeNode:
|
|
3180
|
+
activeNode: l,
|
|
3160
3181
|
// 当前激活 section。
|
|
3161
3182
|
activeSection: s,
|
|
3162
3183
|
// 给页面消费的状态快照。
|
|
@@ -3177,20 +3198,20 @@ const na = (e) => {
|
|
|
3177
3198
|
formatOperationParams: {}
|
|
3178
3199
|
},
|
|
3179
3200
|
setup(e) {
|
|
3180
|
-
const t = e, n = na(t), { viewModel: o, nodes: r, sections:
|
|
3201
|
+
const t = e, n = na(t), { viewModel: o, nodes: r, sections: c, activeNode: a, activeSection: l, state: s, actions: i } = n;
|
|
3181
3202
|
return (g, w) => te(g.$slots, "default", Oe(Be({
|
|
3182
3203
|
viewModel: J(o),
|
|
3183
3204
|
nodes: J(r),
|
|
3184
|
-
sections: J(
|
|
3205
|
+
sections: J(c),
|
|
3185
3206
|
activeNode: J(a),
|
|
3186
|
-
activeSection: J(
|
|
3207
|
+
activeSection: J(l),
|
|
3187
3208
|
state: J(s),
|
|
3188
|
-
actions: J(
|
|
3209
|
+
actions: J(i),
|
|
3189
3210
|
renderConfig: t.renderConfig
|
|
3190
3211
|
})));
|
|
3191
3212
|
}
|
|
3192
3213
|
});
|
|
3193
|
-
function
|
|
3214
|
+
function Pn(e) {
|
|
3194
3215
|
if (e.action) {
|
|
3195
3216
|
if (e.action.type === "direct") {
|
|
3196
3217
|
Dt(e.action.options);
|
|
@@ -3235,13 +3256,13 @@ const oa = {
|
|
|
3235
3256
|
"html",
|
|
3236
3257
|
"code",
|
|
3237
3258
|
"multi-row"
|
|
3238
|
-
],
|
|
3259
|
+
], c = ge(null), a = O(
|
|
3239
3260
|
() => kt(n.field)
|
|
3240
|
-
),
|
|
3261
|
+
), l = O(
|
|
3241
3262
|
() => ut(n.field)
|
|
3242
3263
|
), s = O(
|
|
3243
3264
|
() => dr(n.field)
|
|
3244
|
-
),
|
|
3265
|
+
), i = O(
|
|
3245
3266
|
() => n.disabled || n.field.disabled || n.field.readonly
|
|
3246
3267
|
), g = O(() => !!n.field.props?.multiple), w = O(
|
|
3247
3268
|
() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)
|
|
@@ -3252,7 +3273,7 @@ const oa = {
|
|
|
3252
3273
|
return;
|
|
3253
3274
|
const u = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
3254
3275
|
return Number.isFinite(u) ? u : void 0;
|
|
3255
|
-
}),
|
|
3276
|
+
}), V = O(
|
|
3256
3277
|
() => fr(n.field, n.modelValue)
|
|
3257
3278
|
), f = O(
|
|
3258
3279
|
() => (n.field.options ?? []).map((u) => ({
|
|
@@ -3262,12 +3283,12 @@ const oa = {
|
|
|
3262
3283
|
), S = O(() => {
|
|
3263
3284
|
const u = n.field.props?.popperClass ?? n.field.props?.["popper-class"];
|
|
3264
3285
|
return s.value ? [u, "global-info-field-control__descr-popper"].filter(Boolean).join(" ") : u;
|
|
3265
|
-
}),
|
|
3286
|
+
}), T = O(
|
|
3266
3287
|
() => (
|
|
3267
3288
|
// select_remote_descr 的浮层样式受业务沙箱前缀约束,默认留在当前应用容器内,避免 teleport 到 body 后样式失效。
|
|
3268
3289
|
s.value ? !1 : n.field.props?.teleported
|
|
3269
3290
|
)
|
|
3270
|
-
),
|
|
3291
|
+
), z = O(() => {
|
|
3271
3292
|
const u = n.field.props?.activeValue ?? n.field.props?.["active-value"], _ = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
3272
3293
|
return u !== void 0 || _ !== void 0 ? n.modelValue ?? _ ?? !1 : vn(n.modelValue);
|
|
3273
3294
|
}), h = O(() => a.value === "code" ? 5 : 1), v = O(
|
|
@@ -3284,79 +3305,79 @@ const oa = {
|
|
|
3284
3305
|
n.modelValue,
|
|
3285
3306
|
Z("common.请选择文件")
|
|
3286
3307
|
)
|
|
3287
|
-
), A = O(() => n.field.placeholder ? n.field.placeholder :
|
|
3308
|
+
), A = O(() => n.field.placeholder ? n.field.placeholder : l.value ? Z("common.请输入关键词") : a.value === "select" ? Z("common.请选择") : a.value === "date" ? Z("common.请选择日期") : a.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
|
|
3288
3309
|
let b;
|
|
3289
3310
|
function j(u) {
|
|
3290
|
-
if (Array.isArray(
|
|
3291
|
-
const _ =
|
|
3311
|
+
if (Array.isArray(V.value)) {
|
|
3312
|
+
const _ = V.value.find(
|
|
3292
3313
|
(D) => Ze(u, D)
|
|
3293
3314
|
);
|
|
3294
3315
|
if (_ !== void 0) return _;
|
|
3295
3316
|
}
|
|
3296
|
-
return Ze(u,
|
|
3317
|
+
return Ze(u, V.value) ? V.value : u.value;
|
|
3297
3318
|
}
|
|
3298
3319
|
function C(u) {
|
|
3299
3320
|
o("update:modelValue", re(u));
|
|
3300
3321
|
}
|
|
3301
|
-
function
|
|
3322
|
+
function N(u) {
|
|
3302
3323
|
o("change", re(u));
|
|
3303
3324
|
}
|
|
3304
3325
|
function re(u) {
|
|
3305
3326
|
return a.value === "select" || a.value === "select_remote" ? pr(n.field, u) : u;
|
|
3306
3327
|
}
|
|
3307
3328
|
function le(u) {
|
|
3308
|
-
u && o("loadOptions",
|
|
3329
|
+
u && o("loadOptions", l.value ? { searchText: "" } : void 0);
|
|
3309
3330
|
}
|
|
3310
3331
|
function R(u) {
|
|
3311
|
-
|
|
3332
|
+
l.value && (b && clearTimeout(b), b = setTimeout(() => {
|
|
3312
3333
|
o("loadOptions", { searchText: u });
|
|
3313
3334
|
}, 300));
|
|
3314
3335
|
}
|
|
3315
3336
|
function B() {
|
|
3316
|
-
|
|
3337
|
+
i.value || c.value?.click();
|
|
3317
3338
|
}
|
|
3318
3339
|
function E(u) {
|
|
3319
|
-
|
|
3340
|
+
Pn(u);
|
|
3320
3341
|
}
|
|
3321
3342
|
Xn(() => {
|
|
3322
3343
|
b && clearTimeout(b);
|
|
3323
3344
|
});
|
|
3324
3345
|
function d(u) {
|
|
3325
|
-
const _ = u.target, D = Array.from(_.files ?? []),
|
|
3326
|
-
C(
|
|
3346
|
+
const _ = u.target, D = Array.from(_.files ?? []), P = n.field.props?.multiple ? D : D[0] ?? null;
|
|
3347
|
+
C(P), N(P);
|
|
3327
3348
|
}
|
|
3328
3349
|
return (u, _) => {
|
|
3329
|
-
const D = Xt,
|
|
3330
|
-
return a.value === "select" || a.value === "select_remote" ? (I(), H(
|
|
3350
|
+
const D = Xt, P = Qt, x = Wt, K = ao, q = so, Q = Zt;
|
|
3351
|
+
return a.value === "select" || a.value === "select_remote" ? (I(), H(P, ae({
|
|
3331
3352
|
key: 0,
|
|
3332
3353
|
class: "global-info-field-control"
|
|
3333
3354
|
}, u.field.props, {
|
|
3334
3355
|
"popper-class": S.value,
|
|
3335
|
-
teleported:
|
|
3336
|
-
"model-value":
|
|
3356
|
+
teleported: T.value,
|
|
3357
|
+
"model-value": V.value,
|
|
3337
3358
|
placeholder: A.value,
|
|
3338
|
-
disabled:
|
|
3359
|
+
disabled: i.value,
|
|
3339
3360
|
"collapse-tags": g.value,
|
|
3340
3361
|
"collapse-tags-tooltip": g.value,
|
|
3341
3362
|
"max-collapse-tags": 1,
|
|
3342
|
-
filterable:
|
|
3343
|
-
remote:
|
|
3344
|
-
"remote-method":
|
|
3363
|
+
filterable: l.value || !!u.field.props?.filterable,
|
|
3364
|
+
remote: l.value || !!u.field.props?.remote,
|
|
3365
|
+
"remote-method": l.value ? R : u.field.props?.remoteMethod,
|
|
3345
3366
|
clearable: "",
|
|
3346
3367
|
onVisibleChange: le,
|
|
3347
3368
|
"onUpdate:modelValue": C,
|
|
3348
|
-
onChange:
|
|
3369
|
+
onChange: N
|
|
3349
3370
|
}), {
|
|
3350
3371
|
default: U(() => [
|
|
3351
|
-
(I(!0), G(Se, null, ye(f.value, (
|
|
3352
|
-
key: String(
|
|
3353
|
-
label:
|
|
3354
|
-
value:
|
|
3372
|
+
(I(!0), G(Se, null, ye(f.value, (M) => (I(), H(D, {
|
|
3373
|
+
key: String(M.value),
|
|
3374
|
+
label: M.label,
|
|
3375
|
+
value: M.value
|
|
3355
3376
|
}, {
|
|
3356
3377
|
default: U(() => [
|
|
3357
3378
|
s.value ? (I(), G("div", oa, [
|
|
3358
|
-
ne("div", ra, oe(
|
|
3359
|
-
|
|
3379
|
+
ne("div", ra, oe(M.label), 1),
|
|
3380
|
+
M.labelDescr ? (I(), G("div", aa, oe(M.labelDescr), 1)) : fe("", !0)
|
|
3360
3381
|
])) : fe("", !0)
|
|
3361
3382
|
]),
|
|
3362
3383
|
_: 2
|
|
@@ -3369,33 +3390,33 @@ const oa = {
|
|
|
3369
3390
|
}, u.field.props, {
|
|
3370
3391
|
"model-value": u.modelValue,
|
|
3371
3392
|
placeholder: A.value,
|
|
3372
|
-
disabled:
|
|
3393
|
+
disabled: i.value,
|
|
3373
3394
|
type: "date",
|
|
3374
3395
|
"value-format": "YYYY-MM-DD",
|
|
3375
3396
|
"onUpdate:modelValue": C,
|
|
3376
|
-
onChange:
|
|
3397
|
+
onChange: N
|
|
3377
3398
|
}), null, 16, ["model-value", "placeholder", "disabled"])) : a.value === "number" ? (I(), H(K, ae({
|
|
3378
3399
|
key: 2,
|
|
3379
3400
|
class: "global-info-field-control"
|
|
3380
3401
|
}, u.field.props, {
|
|
3381
3402
|
"model-value": L.value,
|
|
3382
3403
|
placeholder: A.value,
|
|
3383
|
-
disabled:
|
|
3404
|
+
disabled: i.value,
|
|
3384
3405
|
"controls-position": "right",
|
|
3385
3406
|
"onUpdate:modelValue": C,
|
|
3386
|
-
onChange:
|
|
3407
|
+
onChange: N
|
|
3387
3408
|
}), null, 16, ["model-value", "placeholder", "disabled"])) : a.value === "switch" ? (I(), H(q, ae({
|
|
3388
3409
|
key: 3,
|
|
3389
3410
|
class: "global-info-field-control global-info-field-control--switch"
|
|
3390
3411
|
}, u.field.props, {
|
|
3391
|
-
"model-value":
|
|
3392
|
-
disabled:
|
|
3412
|
+
"model-value": z.value,
|
|
3413
|
+
disabled: i.value,
|
|
3393
3414
|
"onUpdate:modelValue": C,
|
|
3394
|
-
onChange:
|
|
3415
|
+
onChange: N
|
|
3395
3416
|
}), null, 16, ["model-value", "disabled"])) : a.value === "file" ? (I(), G("div", {
|
|
3396
3417
|
key: 4,
|
|
3397
3418
|
class: We(["global-info-field-control global-info-field-control--file", {
|
|
3398
|
-
"is-disabled":
|
|
3419
|
+
"is-disabled": i.value,
|
|
3399
3420
|
"is-empty": !v.value,
|
|
3400
3421
|
"is-filled": v.value
|
|
3401
3422
|
}]),
|
|
@@ -3403,24 +3424,24 @@ const oa = {
|
|
|
3403
3424
|
}, [
|
|
3404
3425
|
ne("input", {
|
|
3405
3426
|
ref_key: "fileInputRef",
|
|
3406
|
-
ref:
|
|
3427
|
+
ref: c,
|
|
3407
3428
|
class: "global-info-field-control__file-input",
|
|
3408
3429
|
type: "file",
|
|
3409
|
-
disabled:
|
|
3430
|
+
disabled: i.value,
|
|
3410
3431
|
accept: String(u.field.props?.accept ?? ""),
|
|
3411
3432
|
multiple: !!u.field.props?.multiple,
|
|
3412
3433
|
onChange: d
|
|
3413
3434
|
}, null, 40, sa),
|
|
3414
3435
|
y.value.length ? (I(), G("span", la, [
|
|
3415
|
-
(I(!0), G(Se, null, ye(y.value, (
|
|
3416
|
-
key:
|
|
3436
|
+
(I(!0), G(Se, null, ye(y.value, (M, X) => (I(), G(Se, {
|
|
3437
|
+
key: M.key
|
|
3417
3438
|
}, [
|
|
3418
|
-
|
|
3439
|
+
M.action ? (I(), G("button", {
|
|
3419
3440
|
key: 0,
|
|
3420
3441
|
class: "global-info-field-control__file-preview",
|
|
3421
3442
|
type: "button",
|
|
3422
|
-
onClick: Ut((ue) => E(
|
|
3423
|
-
}, oe(
|
|
3443
|
+
onClick: Ut((ue) => E(M), ["stop", "prevent"])
|
|
3444
|
+
}, oe(M.text), 9, ia)) : (I(), G("span", ca, oe(M.text), 1)),
|
|
3424
3445
|
X < y.value.length - 1 ? (I(), G("span", ua, "、")) : fe("", !0)
|
|
3425
3446
|
], 64))), 128))
|
|
3426
3447
|
])) : v.value ? (I(), G("span", da, oe(F.value), 1)) : (I(), G("span", fa, oe(J(Z)("common.上传")), 1))
|
|
@@ -3439,16 +3460,16 @@ const oa = {
|
|
|
3439
3460
|
}, u.field.props, {
|
|
3440
3461
|
"model-value": w.value,
|
|
3441
3462
|
placeholder: A.value,
|
|
3442
|
-
disabled:
|
|
3463
|
+
disabled: i.value,
|
|
3443
3464
|
type: r.includes(a.value) ? "textarea" : "text",
|
|
3444
3465
|
rows: r.includes(a.value) ? h.value : void 0,
|
|
3445
3466
|
resize: $.value,
|
|
3446
3467
|
"onUpdate:modelValue": C,
|
|
3447
|
-
onChange:
|
|
3468
|
+
onChange: N
|
|
3448
3469
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3449
3470
|
};
|
|
3450
3471
|
}
|
|
3451
|
-
}),
|
|
3472
|
+
}), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-94cd43bd"]]), ma = ["innerHTML"], va = {
|
|
3452
3473
|
key: 1,
|
|
3453
3474
|
class: "global-info-field-value global-info-field-value--code"
|
|
3454
3475
|
}, ha = {
|
|
@@ -3463,25 +3484,25 @@ const oa = {
|
|
|
3463
3484
|
emptyText: { default: "-" }
|
|
3464
3485
|
},
|
|
3465
3486
|
setup(e) {
|
|
3466
|
-
const t = e, n = O(() => Tt(t.field)), o = O(() => n.value === "empty" || _e(t.value)), r = O(() => mn(t.field, t.value, t.emptyText)),
|
|
3467
|
-
function a(
|
|
3468
|
-
|
|
3487
|
+
const t = e, n = O(() => Tt(t.field)), o = O(() => n.value === "empty" || _e(t.value)), r = O(() => mn(t.field, t.value, t.emptyText)), c = O(() => hn(t.field, t.value, t.emptyText));
|
|
3488
|
+
function a(l) {
|
|
3489
|
+
Pn(l);
|
|
3469
3490
|
}
|
|
3470
|
-
return (
|
|
3491
|
+
return (l, s) => n.value === "html" && !o.value ? (I(), G("span", {
|
|
3471
3492
|
key: 0,
|
|
3472
3493
|
class: "global-info-field-value global-info-field-value--html",
|
|
3473
3494
|
innerHTML: r.value
|
|
3474
|
-
}, null, 8, ma)) : n.value === "code" && !o.value ? (I(), G("pre", va, oe(r.value), 1)) :
|
|
3475
|
-
(I(!0), G(Se, null, ye(
|
|
3476
|
-
key:
|
|
3495
|
+
}, null, 8, ma)) : n.value === "code" && !o.value ? (I(), G("pre", va, oe(r.value), 1)) : c.value.length ? (I(), G("span", ha, [
|
|
3496
|
+
(I(!0), G(Se, null, ye(c.value, (i, g) => (I(), G(Se, {
|
|
3497
|
+
key: i.key
|
|
3477
3498
|
}, [
|
|
3478
|
-
|
|
3499
|
+
i.action ? (I(), G("button", {
|
|
3479
3500
|
key: 0,
|
|
3480
3501
|
class: "global-info-field-value__attachment-preview",
|
|
3481
3502
|
type: "button",
|
|
3482
|
-
onClick: (w) => a(
|
|
3483
|
-
}, oe(
|
|
3484
|
-
g <
|
|
3503
|
+
onClick: (w) => a(i)
|
|
3504
|
+
}, oe(i.text), 9, ga)) : (I(), G("span", ya, oe(i.text), 1)),
|
|
3505
|
+
g < c.value.length - 1 ? (I(), G("span", ba, "、")) : fe("", !0)
|
|
3485
3506
|
], 64))), 128))
|
|
3486
3507
|
])) : (I(), G("span", {
|
|
3487
3508
|
key: 3,
|
|
@@ -3491,17 +3512,17 @@ const oa = {
|
|
|
3491
3512
|
}])
|
|
3492
3513
|
}, oe(r.value), 3));
|
|
3493
3514
|
}
|
|
3494
|
-
}), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-
|
|
3515
|
+
}), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-efe9888d"]]);
|
|
3495
3516
|
function _a(e) {
|
|
3496
3517
|
const t = kt(e);
|
|
3497
3518
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
3498
3519
|
}
|
|
3499
3520
|
function st(e, t, n = {}, o = "") {
|
|
3500
|
-
const r = t.key || t.id || t.code, a =
|
|
3521
|
+
const r = t.key || t.id || t.code, a = Ne(t).map((l) => `${l}:${String(n[l] ?? "")}`).join("|");
|
|
3501
3522
|
return [e, o, r, a].join("::");
|
|
3502
3523
|
}
|
|
3503
3524
|
function lt(e, t, n) {
|
|
3504
|
-
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t &&
|
|
3525
|
+
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Ne(e).length === 0 : !1;
|
|
3505
3526
|
}
|
|
3506
3527
|
function An(e = {}) {
|
|
3507
3528
|
return Object.prototype.hasOwnProperty.call(e, "searchText");
|
|
@@ -3510,12 +3531,12 @@ function Rn(e, t) {
|
|
|
3510
3531
|
const n = new Set(
|
|
3511
3532
|
[t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
|
|
3512
3533
|
);
|
|
3513
|
-
return n.size === 0 ? !1 :
|
|
3534
|
+
return n.size === 0 ? !1 : Ne(e).some((o) => n.has(o));
|
|
3514
3535
|
}
|
|
3515
|
-
function
|
|
3536
|
+
function zn(e, t, n) {
|
|
3516
3537
|
return _a(e) ? n ? !0 : (ut(e), !_e(t)) : !1;
|
|
3517
3538
|
}
|
|
3518
|
-
function
|
|
3539
|
+
function Nn(e, t) {
|
|
3519
3540
|
return [e.code, e.key, e.id].map((o) => t[o]).filter((o) => !_e(o))[0] ?? e.value;
|
|
3520
3541
|
}
|
|
3521
3542
|
function xn(e, t) {
|
|
@@ -3540,16 +3561,16 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3540
3561
|
renderConfig: {}
|
|
3541
3562
|
},
|
|
3542
3563
|
setup(e) {
|
|
3543
|
-
const t = e, n = Le(), o = O(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(),
|
|
3564
|
+
const t = e, n = Le(), o = O(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), c = O(() => ft(
|
|
3544
3565
|
t.section.fields,
|
|
3545
3566
|
t.section,
|
|
3546
3567
|
t.renderConfig,
|
|
3547
3568
|
{ values: o.value }
|
|
3548
3569
|
)), a = ln(
|
|
3549
3570
|
async (v, F, y) => t.actions.loadFieldOptions(t.section, v, F, y),
|
|
3550
|
-
(v) => `${t.section.key}:${
|
|
3571
|
+
(v) => `${t.section.key}:${T(v)}`
|
|
3551
3572
|
);
|
|
3552
|
-
function
|
|
3573
|
+
function l(v, F) {
|
|
3553
3574
|
const y = { ...o.value, [v.code]: F };
|
|
3554
3575
|
(v.cascadeClearFields ?? []).forEach((A) => {
|
|
3555
3576
|
y[A] = "";
|
|
@@ -3559,7 +3580,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3559
3580
|
const A = t.renderConfig?.onFieldBusinessChange;
|
|
3560
3581
|
if (A)
|
|
3561
3582
|
try {
|
|
3562
|
-
const b =
|
|
3583
|
+
const b = i(v, F), j = {
|
|
3563
3584
|
field: v,
|
|
3564
3585
|
value: F,
|
|
3565
3586
|
section: t.section,
|
|
@@ -3580,7 +3601,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3580
3601
|
console.error("[GlobalInfoFormRenderer] field business change failed", b);
|
|
3581
3602
|
}
|
|
3582
3603
|
}
|
|
3583
|
-
function
|
|
3604
|
+
function i(v, F) {
|
|
3584
3605
|
const y = dt(v, F);
|
|
3585
3606
|
return (v.options ?? []).filter((A) => y.some((b) => Ze(A, b)));
|
|
3586
3607
|
}
|
|
@@ -3595,7 +3616,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3595
3616
|
return Object.fromEntries(A);
|
|
3596
3617
|
}
|
|
3597
3618
|
async function $(v, F = {}, y = o.value) {
|
|
3598
|
-
const A = y, b =
|
|
3619
|
+
const A = y, b = T(v), j = st(t.section.key, v, A), C = r.get(b);
|
|
3599
3620
|
if (!An(F) && lt(v, C, j)) {
|
|
3600
3621
|
r.set(b, j);
|
|
3601
3622
|
return;
|
|
@@ -3611,11 +3632,11 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3611
3632
|
}
|
|
3612
3633
|
}
|
|
3613
3634
|
async function L(v = o.value, F) {
|
|
3614
|
-
for (const y of
|
|
3635
|
+
for (const y of c.value) {
|
|
3615
3636
|
if (F && !Rn(y, F)) continue;
|
|
3616
|
-
const A =
|
|
3617
|
-
if (!
|
|
3618
|
-
const b = st(t.section.key, y, v), j =
|
|
3637
|
+
const A = Nn(y, v);
|
|
3638
|
+
if (!z(y, A)) continue;
|
|
3639
|
+
const b = st(t.section.key, y, v), j = T(y), C = r.get(j);
|
|
3619
3640
|
if (lt(y, C, b)) {
|
|
3620
3641
|
r.set(j, b);
|
|
3621
3642
|
continue;
|
|
@@ -3635,7 +3656,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3635
3656
|
},
|
|
3636
3657
|
{ immediate: !0 }
|
|
3637
3658
|
);
|
|
3638
|
-
function
|
|
3659
|
+
function V(v) {
|
|
3639
3660
|
const F = o.value[v.code];
|
|
3640
3661
|
return {
|
|
3641
3662
|
field: v,
|
|
@@ -3647,7 +3668,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3647
3668
|
value: F,
|
|
3648
3669
|
state: t.state,
|
|
3649
3670
|
actions: t.actions,
|
|
3650
|
-
updateModelValue: (y) =>
|
|
3671
|
+
updateModelValue: (y) => l(v, y)
|
|
3651
3672
|
};
|
|
3652
3673
|
}
|
|
3653
3674
|
function f(v) {
|
|
@@ -3659,11 +3680,11 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3659
3680
|
function S(v) {
|
|
3660
3681
|
return v.span ? Math.min(Math.max(v.span, 1), 24) : 6;
|
|
3661
3682
|
}
|
|
3662
|
-
function
|
|
3683
|
+
function T(v) {
|
|
3663
3684
|
return v.key || v.id || v.code;
|
|
3664
3685
|
}
|
|
3665
|
-
function
|
|
3666
|
-
return
|
|
3686
|
+
function z(v, F) {
|
|
3687
|
+
return zn(v, F, t.editing);
|
|
3667
3688
|
}
|
|
3668
3689
|
function h(v) {
|
|
3669
3690
|
return v.required || v.isRequired;
|
|
@@ -3678,8 +3699,8 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3678
3699
|
default: U(() => [
|
|
3679
3700
|
Ie(b, { gutter: 24 }, {
|
|
3680
3701
|
default: U(() => [
|
|
3681
|
-
(I(!0), G(Se, null, ye(
|
|
3682
|
-
key:
|
|
3702
|
+
(I(!0), G(Se, null, ye(c.value, (C) => (I(), H(A, {
|
|
3703
|
+
key: T(C),
|
|
3683
3704
|
span: S(C)
|
|
3684
3705
|
}, {
|
|
3685
3706
|
default: U(() => [
|
|
@@ -3697,13 +3718,13 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3697
3718
|
f(C) ? te(v.$slots, f(C), ae({
|
|
3698
3719
|
key: 0,
|
|
3699
3720
|
ref_for: !0
|
|
3700
|
-
},
|
|
3721
|
+
}, V(C)), void 0, !0) : v.editing && !C.readonly ? (I(), H(Vn, {
|
|
3701
3722
|
key: 1,
|
|
3702
3723
|
field: C,
|
|
3703
3724
|
"model-value": o.value[C.code],
|
|
3704
3725
|
section: v.section,
|
|
3705
|
-
onLoadOptions: (
|
|
3706
|
-
"onUpdate:modelValue": (
|
|
3726
|
+
onLoadOptions: (N) => $(C, N),
|
|
3727
|
+
"onUpdate:modelValue": (N) => l(C, N)
|
|
3707
3728
|
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
|
|
3708
3729
|
key: 2,
|
|
3709
3730
|
field: C,
|
|
@@ -3724,7 +3745,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3724
3745
|
}, 8, ["model"]);
|
|
3725
3746
|
};
|
|
3726
3747
|
}
|
|
3727
|
-
}), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-
|
|
3748
|
+
}), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-a2728a86"]]), ka = /* @__PURE__ */ pe({
|
|
3728
3749
|
name: "GlobalInfoDeleteConfirm",
|
|
3729
3750
|
__name: "GlobalInfoDeleteConfirm",
|
|
3730
3751
|
props: {
|
|
@@ -3770,12 +3791,12 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3770
3791
|
},
|
|
3771
3792
|
setup(e) {
|
|
3772
3793
|
const t = e, n = Le(), o = O(
|
|
3773
|
-
() => t.section.fields.some((d) =>
|
|
3774
|
-
), r = O(() => o.value),
|
|
3794
|
+
() => t.section.fields.some((d) => Vt(d))
|
|
3795
|
+
), r = O(() => o.value), c = O(
|
|
3775
3796
|
() => t.renderConfig?.sequenceLabel ?? Z("common.序号")
|
|
3776
3797
|
), a = O(
|
|
3777
3798
|
() => t.renderConfig?.sequenceWidth ?? 56
|
|
3778
|
-
),
|
|
3799
|
+
), l = O(() => {
|
|
3779
3800
|
const d = t.renderConfig?.sequenceStart;
|
|
3780
3801
|
return typeof d == "number" && Number.isFinite(d) ? d : 1;
|
|
3781
3802
|
}), s = O(() => {
|
|
@@ -3786,7 +3807,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3786
3807
|
{ rows: t.section.rows, values: t.section.model }
|
|
3787
3808
|
);
|
|
3788
3809
|
return r.value ? d.filter((u) => !re(u)) : d;
|
|
3789
|
-
}),
|
|
3810
|
+
}), i = /* @__PURE__ */ new Map(), g = ln(
|
|
3790
3811
|
async (d, u, _) => t.actions.loadFieldOptions(t.section, d, u, _),
|
|
3791
3812
|
(d, u) => `${t.section.key}:${B(u)}:${C(d)}`
|
|
3792
3813
|
);
|
|
@@ -3805,18 +3826,18 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3805
3826
|
}) : d.allowDelete !== !1);
|
|
3806
3827
|
}
|
|
3807
3828
|
function L(d, u, _, D) {
|
|
3808
|
-
const
|
|
3829
|
+
const P = t.section.rows.slice(), x = _.cascadeClearFields ?? [], K = {
|
|
3809
3830
|
...d,
|
|
3810
3831
|
__rowKey: B(d),
|
|
3811
3832
|
[_.code]: D
|
|
3812
3833
|
};
|
|
3813
3834
|
x.forEach((q) => {
|
|
3814
3835
|
K[q] = "";
|
|
3815
|
-
}),
|
|
3836
|
+
}), P[u] = {
|
|
3816
3837
|
...K
|
|
3817
|
-
}, t.actions.updateTableRows(t.section,
|
|
3838
|
+
}, t.actions.updateTableRows(t.section, P), V(_, D, K, u, P), h(_, K);
|
|
3818
3839
|
}
|
|
3819
|
-
function
|
|
3840
|
+
function V(d, u, _, D, P) {
|
|
3820
3841
|
const x = t.renderConfig?.onFieldBusinessChange;
|
|
3821
3842
|
if (x)
|
|
3822
3843
|
try {
|
|
@@ -3828,19 +3849,19 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3828
3849
|
values: q,
|
|
3829
3850
|
row: _,
|
|
3830
3851
|
rowIndex: D,
|
|
3831
|
-
rows:
|
|
3852
|
+
rows: P,
|
|
3832
3853
|
node: t.node,
|
|
3833
3854
|
activeNode: t.node,
|
|
3834
3855
|
sections: S(),
|
|
3835
|
-
sectionValues:
|
|
3856
|
+
sectionValues: T(t.section, P),
|
|
3836
3857
|
actions: t.actions,
|
|
3837
3858
|
selectedOption: K[0],
|
|
3838
3859
|
selectedOptions: K
|
|
3839
3860
|
};
|
|
3840
|
-
Promise.resolve(x(Q)).catch((
|
|
3861
|
+
Promise.resolve(x(Q)).catch((M) => {
|
|
3841
3862
|
console.error(
|
|
3842
3863
|
"[GlobalInfoTableRenderer] field business change failed",
|
|
3843
|
-
|
|
3864
|
+
M
|
|
3844
3865
|
);
|
|
3845
3866
|
});
|
|
3846
3867
|
} catch (K) {
|
|
@@ -3853,34 +3874,34 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3853
3874
|
function f(d, u) {
|
|
3854
3875
|
const _ = dt(d, u);
|
|
3855
3876
|
return (d.options ?? []).filter(
|
|
3856
|
-
(D) => _.some((
|
|
3877
|
+
(D) => _.some((P) => Ze(D, P))
|
|
3857
3878
|
);
|
|
3858
3879
|
}
|
|
3859
3880
|
function S() {
|
|
3860
3881
|
return Object.values(t.state.sectionMap);
|
|
3861
3882
|
}
|
|
3862
|
-
function
|
|
3863
|
-
const D = S().flatMap((
|
|
3864
|
-
const x =
|
|
3883
|
+
function T(d, u) {
|
|
3884
|
+
const D = S().flatMap((P) => {
|
|
3885
|
+
const x = P.key === d.key ? u : P.renderType === "table" ? P.rows : P.model;
|
|
3865
3886
|
return [
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3887
|
+
P.key,
|
|
3888
|
+
P.id,
|
|
3889
|
+
P.setId,
|
|
3890
|
+
P.infSetId,
|
|
3891
|
+
P.code
|
|
3871
3892
|
].filter(Boolean).map((K) => [String(K), x]);
|
|
3872
3893
|
});
|
|
3873
3894
|
return Object.fromEntries(D);
|
|
3874
3895
|
}
|
|
3875
|
-
async function
|
|
3876
|
-
const
|
|
3896
|
+
async function z(d, u, _ = {}, D = u) {
|
|
3897
|
+
const P = B(D), x = `${P}:${C(d)}`, K = st(
|
|
3877
3898
|
t.section.key,
|
|
3878
3899
|
d,
|
|
3879
3900
|
D,
|
|
3880
|
-
|
|
3881
|
-
), q =
|
|
3901
|
+
P
|
|
3902
|
+
), q = i.get(x);
|
|
3882
3903
|
if (!An(_) && lt(d, q, K)) {
|
|
3883
|
-
|
|
3904
|
+
i.set(x, K);
|
|
3884
3905
|
return;
|
|
3885
3906
|
}
|
|
3886
3907
|
try {
|
|
@@ -3893,31 +3914,31 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3893
3914
|
d,
|
|
3894
3915
|
D,
|
|
3895
3916
|
_
|
|
3896
|
-
),
|
|
3897
|
-
} catch (
|
|
3898
|
-
console.error("[GlobalInfoTableRenderer] load field options failed",
|
|
3917
|
+
), i.set(x, K);
|
|
3918
|
+
} catch (M) {
|
|
3919
|
+
console.error("[GlobalInfoTableRenderer] load field options failed", M);
|
|
3899
3920
|
}
|
|
3900
3921
|
}
|
|
3901
3922
|
async function h(d, u) {
|
|
3902
3923
|
const _ = u ? [u] : t.section.rows;
|
|
3903
3924
|
for (const D of _) {
|
|
3904
|
-
const
|
|
3925
|
+
const P = B(D);
|
|
3905
3926
|
for (const x of s.value) {
|
|
3906
3927
|
if (d && !Rn(x, d))
|
|
3907
3928
|
continue;
|
|
3908
|
-
const K =
|
|
3929
|
+
const K = Nn(x, D);
|
|
3909
3930
|
if (!A(x, K)) continue;
|
|
3910
3931
|
const q = st(
|
|
3911
3932
|
t.section.key,
|
|
3912
3933
|
x,
|
|
3913
3934
|
D,
|
|
3914
|
-
|
|
3915
|
-
), Q = `${
|
|
3916
|
-
if (lt(x,
|
|
3917
|
-
|
|
3935
|
+
P
|
|
3936
|
+
), Q = `${P}:${C(x)}`, M = i.get(Q);
|
|
3937
|
+
if (lt(x, M, q)) {
|
|
3938
|
+
i.set(Q, q);
|
|
3918
3939
|
continue;
|
|
3919
3940
|
}
|
|
3920
|
-
|
|
3941
|
+
M !== q && await z(
|
|
3921
3942
|
x,
|
|
3922
3943
|
D,
|
|
3923
3944
|
xn(x, K)
|
|
@@ -3939,7 +3960,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3939
3960
|
value: D,
|
|
3940
3961
|
state: t.state,
|
|
3941
3962
|
actions: t.actions,
|
|
3942
|
-
updateModelValue: (
|
|
3963
|
+
updateModelValue: (P) => L(u, _, d, P)
|
|
3943
3964
|
};
|
|
3944
3965
|
}
|
|
3945
3966
|
function F(d) {
|
|
@@ -3952,23 +3973,23 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3952
3973
|
return !d.readonly && !d.disabled;
|
|
3953
3974
|
}
|
|
3954
3975
|
function A(d, u) {
|
|
3955
|
-
return
|
|
3976
|
+
return zn(d, u, t.editing);
|
|
3956
3977
|
}
|
|
3957
3978
|
function b(d) {
|
|
3958
|
-
return d.width ?? (
|
|
3979
|
+
return d.width ?? (Pt(d) ? 56 : void 0);
|
|
3959
3980
|
}
|
|
3960
3981
|
function j(d) {
|
|
3961
3982
|
if (!d.width)
|
|
3962
|
-
return d.minWidth ?? (
|
|
3983
|
+
return d.minWidth ?? (Pt(d) ? 56 : void 0);
|
|
3963
3984
|
}
|
|
3964
3985
|
function C(d) {
|
|
3965
3986
|
return d.key || d.id || d.code;
|
|
3966
3987
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return
|
|
3988
|
+
function N(d) {
|
|
3989
|
+
return l.value + d;
|
|
3969
3990
|
}
|
|
3970
3991
|
function re(d) {
|
|
3971
|
-
return
|
|
3992
|
+
return Vt(d);
|
|
3972
3993
|
}
|
|
3973
3994
|
let le = 0;
|
|
3974
3995
|
const R = /* @__PURE__ */ new WeakMap();
|
|
@@ -3979,8 +4000,8 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3979
4000
|
const _ = d, D = R.get(_);
|
|
3980
4001
|
if (D) return D;
|
|
3981
4002
|
le += 1;
|
|
3982
|
-
const
|
|
3983
|
-
return R.set(_,
|
|
4003
|
+
const P = `local-${le}`;
|
|
4004
|
+
return R.set(_, P), P;
|
|
3984
4005
|
}
|
|
3985
4006
|
function E(d) {
|
|
3986
4007
|
return d.required || d.isRequired;
|
|
@@ -3988,7 +4009,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3988
4009
|
return Ee(
|
|
3989
4010
|
() => t.section.key,
|
|
3990
4011
|
() => {
|
|
3991
|
-
|
|
4012
|
+
i.clear();
|
|
3992
4013
|
}
|
|
3993
4014
|
), Ee(
|
|
3994
4015
|
() => t.editing,
|
|
@@ -3997,7 +4018,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3997
4018
|
},
|
|
3998
4019
|
{ immediate: !0 }
|
|
3999
4020
|
), (d, u) => {
|
|
4000
|
-
const _ = on, D = eo("Delete"),
|
|
4021
|
+
const _ = on, D = eo("Delete"), P = Jt, x = $t, K = nn;
|
|
4001
4022
|
return I(), G("div", {
|
|
4002
4023
|
class: We(["global-info-table-renderer", { "global-info-table-renderer--editing": d.editing }])
|
|
4003
4024
|
}, [
|
|
@@ -4013,9 +4034,9 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4013
4034
|
r.value ? (I(), H(_, {
|
|
4014
4035
|
key: 0,
|
|
4015
4036
|
type: "index",
|
|
4016
|
-
label:
|
|
4037
|
+
label: c.value,
|
|
4017
4038
|
width: a.value,
|
|
4018
|
-
index:
|
|
4039
|
+
index: N
|
|
4019
4040
|
}, null, 8, ["label", "width"])) : fe("", !0),
|
|
4020
4041
|
(I(!0), G(Se, null, ye(s.value, (q) => (I(), H(_, {
|
|
4021
4042
|
key: C(q),
|
|
@@ -4030,26 +4051,26 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4030
4051
|
ne("span", null, oe(q.label), 1)
|
|
4031
4052
|
])
|
|
4032
4053
|
]),
|
|
4033
|
-
default: U(({ row: Q, $index:
|
|
4054
|
+
default: U(({ row: Q, $index: M }) => [
|
|
4034
4055
|
F(q) ? te(d.$slots, F(q), ae({
|
|
4035
4056
|
key: 0,
|
|
4036
4057
|
ref_for: !0
|
|
4037
|
-
}, v(q, Q,
|
|
4058
|
+
}, v(q, Q, M)), void 0, !0) : d.editing && y(q) ? (I(), H(Vn, {
|
|
4038
4059
|
key: 1,
|
|
4039
4060
|
field: q,
|
|
4040
4061
|
"model-value": Q[q.code],
|
|
4041
4062
|
section: d.section,
|
|
4042
4063
|
row: Q,
|
|
4043
|
-
"row-index":
|
|
4044
|
-
onLoadOptions: (X) =>
|
|
4045
|
-
"onUpdate:modelValue": (X) => L(Q,
|
|
4064
|
+
"row-index": M,
|
|
4065
|
+
onLoadOptions: (X) => z(q, Q, X),
|
|
4066
|
+
"onUpdate:modelValue": (X) => L(Q, M, q, X)
|
|
4046
4067
|
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
|
|
4047
4068
|
key: 2,
|
|
4048
4069
|
field: q,
|
|
4049
4070
|
value: Q[q.code],
|
|
4050
4071
|
section: d.section,
|
|
4051
4072
|
row: Q,
|
|
4052
|
-
"row-index":
|
|
4073
|
+
"row-index": M
|
|
4053
4074
|
}, null, 8, ["field", "value", "section", "row", "row-index"]))
|
|
4054
4075
|
]),
|
|
4055
4076
|
_: 2
|
|
@@ -4063,7 +4084,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4063
4084
|
default: U(({ row: q, $index: Q }) => [
|
|
4064
4085
|
$(q, Q) ? (I(), H(ka, {
|
|
4065
4086
|
key: 0,
|
|
4066
|
-
onConfirm: (
|
|
4087
|
+
onConfirm: (M) => w(Q)
|
|
4067
4088
|
}, {
|
|
4068
4089
|
default: U(() => [
|
|
4069
4090
|
Ie(x, {
|
|
@@ -4072,7 +4093,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4072
4093
|
type: "danger"
|
|
4073
4094
|
}, {
|
|
4074
4095
|
default: U(() => [
|
|
4075
|
-
Ie(
|
|
4096
|
+
Ie(P, { class: "global-info-table-renderer__delete-icon" }, {
|
|
4076
4097
|
default: U(() => [
|
|
4077
4098
|
Ie(D)
|
|
4078
4099
|
]),
|
|
@@ -4095,7 +4116,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4095
4116
|
], 2);
|
|
4096
4117
|
};
|
|
4097
4118
|
}
|
|
4098
|
-
}), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-
|
|
4119
|
+
}), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-ef398e69"]]), Ba = /* @__PURE__ */ pe({
|
|
4099
4120
|
name: "GlobalInfoAutoRenderer",
|
|
4100
4121
|
__name: "GlobalInfoAutoRenderer",
|
|
4101
4122
|
props: {
|
|
@@ -4162,29 +4183,29 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4162
4183
|
values: t.section.model,
|
|
4163
4184
|
rows: t.section.renderType === "table" ? t.section.rows : void 0
|
|
4164
4185
|
}
|
|
4165
|
-
)), r = O(() => t.editing ?? t.actions.isEditing(t.section)),
|
|
4186
|
+
)), r = O(() => t.editing ?? t.actions.isEditing(t.section)), c = O(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), a = O(() => {
|
|
4166
4187
|
const s = Mt(
|
|
4167
4188
|
n,
|
|
4168
4189
|
"section",
|
|
4169
4190
|
Gn(t.node ?? {}, t.section)
|
|
4170
|
-
),
|
|
4191
|
+
), i = l(t.section.renderType);
|
|
4171
4192
|
return [
|
|
4172
4193
|
s,
|
|
4173
|
-
|
|
4194
|
+
i,
|
|
4174
4195
|
"default"
|
|
4175
4196
|
].find((g) => !!(g && n[g])) ?? "";
|
|
4176
4197
|
});
|
|
4177
|
-
function
|
|
4198
|
+
function l(s) {
|
|
4178
4199
|
return s === "form" || s === "table" ? s : "";
|
|
4179
4200
|
}
|
|
4180
|
-
return (s,
|
|
4201
|
+
return (s, i) => a.value ? te(s.$slots, a.value, {
|
|
4181
4202
|
key: 0,
|
|
4182
4203
|
section: s.section,
|
|
4183
4204
|
sectionView: s.section,
|
|
4184
4205
|
node: s.node,
|
|
4185
4206
|
editing: r.value,
|
|
4186
|
-
isEmpty:
|
|
4187
|
-
empty:
|
|
4207
|
+
isEmpty: c.value,
|
|
4208
|
+
empty: c.value,
|
|
4188
4209
|
fields: o.value,
|
|
4189
4210
|
renderConfig: s.renderConfig,
|
|
4190
4211
|
state: s.state,
|
|
@@ -4221,27 +4242,27 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4221
4242
|
() => {
|
|
4222
4243
|
o.value = !1;
|
|
4223
4244
|
}
|
|
4224
|
-
), to((
|
|
4225
|
-
function r(
|
|
4226
|
-
o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`,
|
|
4245
|
+
), to((c) => (r(c), !1));
|
|
4246
|
+
function r(c) {
|
|
4247
|
+
o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, c), t("error", c);
|
|
4227
4248
|
}
|
|
4228
4249
|
return () => {
|
|
4229
4250
|
if (o.value)
|
|
4230
4251
|
return n.fallback?.() ?? null;
|
|
4231
4252
|
try {
|
|
4232
4253
|
return n.default?.() ?? null;
|
|
4233
|
-
} catch (
|
|
4234
|
-
return r(
|
|
4254
|
+
} catch (c) {
|
|
4255
|
+
return r(c), n.fallback?.() ?? null;
|
|
4235
4256
|
}
|
|
4236
4257
|
};
|
|
4237
4258
|
}
|
|
4238
|
-
}),
|
|
4259
|
+
}), Pa = { class: "global-info-section-block" }, Va = {
|
|
4239
4260
|
key: 0,
|
|
4240
4261
|
class: "global-info-section-block__header"
|
|
4241
4262
|
}, ja = { class: "global-info-section-block__title-wrap" }, Aa = { class: "global-info-section-block__title" }, Ra = {
|
|
4242
4263
|
key: 0,
|
|
4243
4264
|
class: "global-info-section-block__actions"
|
|
4244
|
-
},
|
|
4265
|
+
}, za = { class: "global-info-section-block__body" }, Na = { class: "global-info-section-block__status" }, xa = { class: "global-info-section-block__status" }, qa = { class: "global-info-section-block__status" }, Ga = /* @__PURE__ */ pe({
|
|
4245
4266
|
name: "GlobalInfoSectionBlock",
|
|
4246
4267
|
__name: "GlobalInfoSectionBlock",
|
|
4247
4268
|
props: {
|
|
@@ -4255,9 +4276,9 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4255
4276
|
onSave: { type: Function }
|
|
4256
4277
|
},
|
|
4257
4278
|
setup(e) {
|
|
4258
|
-
const t = e, n = Le(), o = ge(!1), r = ge(null),
|
|
4259
|
-
() => t.actions.getSection(t.node) ??
|
|
4260
|
-
),
|
|
4279
|
+
const t = e, n = Le(), o = ge(!1), r = ge(null), c = ge(null), a = O(() => !!t.hideHeader), l = O(() => t.actions.getSectionStatus(t.node)), s = O(
|
|
4280
|
+
() => t.actions.getSection(t.node) ?? c.value
|
|
4281
|
+
), i = O(() => {
|
|
4261
4282
|
const b = s.value;
|
|
4262
4283
|
return b ? ft(
|
|
4263
4284
|
b.fields,
|
|
@@ -4274,37 +4295,37 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4274
4295
|
() => !!(s.value && t.actions.isEditing(s.value))
|
|
4275
4296
|
), $ = O(
|
|
4276
4297
|
() => s.value?.renderType === "table"
|
|
4277
|
-
), L = O(() => o.value ||
|
|
4278
|
-
() =>
|
|
4298
|
+
), L = O(() => o.value || l.value.loading), V = O(
|
|
4299
|
+
() => T(r.value || l.value.error)
|
|
4279
4300
|
), f = O(() => {
|
|
4280
4301
|
const b = s.value;
|
|
4281
|
-
return b ? b.renderType === "table" && b.rows.length === 0 ||
|
|
4302
|
+
return b ? b.renderType === "table" && b.rows.length === 0 || i.value.length === 0 : !0;
|
|
4282
4303
|
}), S = O(() => ({
|
|
4283
4304
|
node: t.node,
|
|
4284
4305
|
section: s.value,
|
|
4285
4306
|
sectionView: s.value,
|
|
4286
|
-
fields:
|
|
4307
|
+
fields: i.value,
|
|
4287
4308
|
renderConfig: t.renderConfig,
|
|
4288
4309
|
title: g.value,
|
|
4289
4310
|
editing: w.value,
|
|
4290
4311
|
loading: L.value,
|
|
4291
|
-
error: r.value ||
|
|
4292
|
-
errorMessage:
|
|
4312
|
+
error: r.value || l.value.error,
|
|
4313
|
+
errorMessage: V.value,
|
|
4293
4314
|
isEmpty: f.value,
|
|
4294
4315
|
empty: f.value,
|
|
4295
|
-
sectionStatus:
|
|
4316
|
+
sectionStatus: l.value,
|
|
4296
4317
|
state: t.state,
|
|
4297
4318
|
actions: t.actions,
|
|
4298
4319
|
reload: A,
|
|
4299
|
-
handleEdit:
|
|
4320
|
+
handleEdit: z,
|
|
4300
4321
|
handleCancel: h,
|
|
4301
4322
|
handleAddTableRow: v,
|
|
4302
4323
|
handleSave: F
|
|
4303
4324
|
}));
|
|
4304
|
-
function
|
|
4325
|
+
function T(b) {
|
|
4305
4326
|
return b ? b instanceof Error ? b.message : String(b) : "";
|
|
4306
4327
|
}
|
|
4307
|
-
async function
|
|
4328
|
+
async function z() {
|
|
4308
4329
|
const b = s.value;
|
|
4309
4330
|
b && (await t.onEdit?.(b, t.node), t.onEdit || t.actions.startEdit(b));
|
|
4310
4331
|
}
|
|
@@ -4316,7 +4337,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4316
4337
|
const b = s.value;
|
|
4317
4338
|
if (!b) return;
|
|
4318
4339
|
const j = b.fields.reduce(
|
|
4319
|
-
(C,
|
|
4340
|
+
(C, N) => (C[N.code] = N.value ?? "", C),
|
|
4320
4341
|
{ __rowKey: `new-${Date.now()}` }
|
|
4321
4342
|
);
|
|
4322
4343
|
t.actions.saveRow(b, j, -1);
|
|
@@ -4338,9 +4359,9 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4338
4359
|
r.value = b;
|
|
4339
4360
|
}
|
|
4340
4361
|
async function A() {
|
|
4341
|
-
o.value = !0, r.value = null,
|
|
4362
|
+
o.value = !0, r.value = null, c.value = null;
|
|
4342
4363
|
try {
|
|
4343
|
-
|
|
4364
|
+
c.value = await t.actions.loadSection(t.node);
|
|
4344
4365
|
} catch (b) {
|
|
4345
4366
|
r.value = b, console.error("[GlobalInfoSectionBlock] load section failed", b);
|
|
4346
4367
|
} finally {
|
|
@@ -4356,8 +4377,8 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4356
4377
|
}
|
|
4357
4378
|
), (b, j) => {
|
|
4358
4379
|
const C = $t;
|
|
4359
|
-
return I(), G("section",
|
|
4360
|
-
a.value ? fe("", !0) : (I(), G("header",
|
|
4380
|
+
return I(), G("section", Pa, [
|
|
4381
|
+
a.value ? fe("", !0) : (I(), G("header", Va, [
|
|
4361
4382
|
te(b.$slots, "header", Oe(Be(S.value)), () => [
|
|
4362
4383
|
ne("div", ja, [
|
|
4363
4384
|
j[0] || (j[0] = ne("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
@@ -4368,7 +4389,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4368
4389
|
w.value ? (I(), G(Se, { key: 1 }, [
|
|
4369
4390
|
Ie(C, {
|
|
4370
4391
|
class: "global-info-section-block__cancel",
|
|
4371
|
-
disabled:
|
|
4392
|
+
disabled: l.value.saving,
|
|
4372
4393
|
onClick: h
|
|
4373
4394
|
}, {
|
|
4374
4395
|
default: U(() => [
|
|
@@ -4379,7 +4400,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4379
4400
|
$.value ? (I(), H(C, {
|
|
4380
4401
|
key: 0,
|
|
4381
4402
|
class: "global-info-section-block__add",
|
|
4382
|
-
disabled:
|
|
4403
|
+
disabled: l.value.saving,
|
|
4383
4404
|
onClick: v
|
|
4384
4405
|
}, {
|
|
4385
4406
|
default: U(() => [
|
|
@@ -4389,7 +4410,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4389
4410
|
}, 8, ["disabled"])) : fe("", !0),
|
|
4390
4411
|
Ie(C, {
|
|
4391
4412
|
class: "global-info-section-block__confirm",
|
|
4392
|
-
loading:
|
|
4413
|
+
loading: l.value.saving,
|
|
4393
4414
|
onClick: F
|
|
4394
4415
|
}, {
|
|
4395
4416
|
default: U(() => [
|
|
@@ -4400,8 +4421,8 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4400
4421
|
], 64)) : (I(), H(C, {
|
|
4401
4422
|
key: 0,
|
|
4402
4423
|
class: "global-info-section-block__edit",
|
|
4403
|
-
disabled:
|
|
4404
|
-
onClick:
|
|
4424
|
+
disabled: l.value.saving || L.value,
|
|
4425
|
+
onClick: z
|
|
4405
4426
|
}, {
|
|
4406
4427
|
default: U(() => [
|
|
4407
4428
|
j[1] || (j[1] = ne("svg", {
|
|
@@ -4423,9 +4444,9 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4423
4444
|
], !0)
|
|
4424
4445
|
], !0)
|
|
4425
4446
|
])),
|
|
4426
|
-
ne("div",
|
|
4447
|
+
ne("div", za, [
|
|
4427
4448
|
L.value ? te(b.$slots, "loading", Oe(ae({ key: 0 }, S.value)), () => [
|
|
4428
|
-
ne("div",
|
|
4449
|
+
ne("div", Na, oe(J(Z)("common.加载中___")), 1)
|
|
4429
4450
|
], !0) : !s.value || f.value ? te(b.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
|
|
4430
4451
|
ne("div", xa, oe(J(Z)("common.暂无数据")), 1)
|
|
4431
4452
|
], !0) : (I(), H(La, {
|
|
@@ -4448,7 +4469,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4448
4469
|
actions: b.actions,
|
|
4449
4470
|
"render-config": b.renderConfig
|
|
4450
4471
|
}, Re({ _: 2 }, [
|
|
4451
|
-
ye(J(n), (
|
|
4472
|
+
ye(J(n), (N, re) => ({
|
|
4452
4473
|
name: re,
|
|
4453
4474
|
fn: U((le) => [
|
|
4454
4475
|
te(b.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
|
|
@@ -4462,7 +4483,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4462
4483
|
]);
|
|
4463
4484
|
};
|
|
4464
4485
|
}
|
|
4465
|
-
}), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-
|
|
4486
|
+
}), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-55cf6792"]]), Ya = { class: "global-info-group" }, Ua = { class: "global-info-group__header" }, Ha = { class: "global-info-group__title" }, Ja = { class: "global-info-group__body" }, Wa = ["id"], Za = { class: "global-info-group__empty" }, Qa = /* @__PURE__ */ pe({
|
|
4466
4487
|
name: "GlobalInfoGroup",
|
|
4467
4488
|
__name: "GlobalInfoGroup",
|
|
4468
4489
|
props: {
|
|
@@ -4477,12 +4498,12 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4477
4498
|
const t = e, n = Le(), o = O(
|
|
4478
4499
|
() => t.group.tagName || t.group.label || "-"
|
|
4479
4500
|
), r = O(() => t.children.length <= 1);
|
|
4480
|
-
function i
|
|
4481
|
-
const w = t.actions.getSection(
|
|
4501
|
+
function c(i, g) {
|
|
4502
|
+
const w = t.actions.getSection(i);
|
|
4482
4503
|
return {
|
|
4483
|
-
node:
|
|
4504
|
+
node: i,
|
|
4484
4505
|
group: t.group,
|
|
4485
|
-
sectionNode:
|
|
4506
|
+
sectionNode: i,
|
|
4486
4507
|
section: w,
|
|
4487
4508
|
sectionView: w,
|
|
4488
4509
|
state: t.state,
|
|
@@ -4490,37 +4511,37 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4490
4511
|
renderConfig: t.renderConfig,
|
|
4491
4512
|
index: g,
|
|
4492
4513
|
editing: !!(w && t.actions.isEditing(w)),
|
|
4493
|
-
sectionStatus: t.actions.getSectionStatus(
|
|
4494
|
-
isSelfSection:
|
|
4495
|
-
handleEdit: () => t.actions.startEdit(
|
|
4496
|
-
handleCancel: () => t.actions.cancelEdit(
|
|
4497
|
-
handleSave: () => t.actions.saveSection(
|
|
4514
|
+
sectionStatus: t.actions.getSectionStatus(i),
|
|
4515
|
+
isSelfSection: l(i, 0) === l(t.group, 0),
|
|
4516
|
+
handleEdit: () => t.actions.startEdit(i),
|
|
4517
|
+
handleCancel: () => t.actions.cancelEdit(i),
|
|
4518
|
+
handleSave: () => t.actions.saveSection(i.key)
|
|
4498
4519
|
};
|
|
4499
4520
|
}
|
|
4500
|
-
function a(
|
|
4501
|
-
const g = t.actions.getSection(
|
|
4521
|
+
function a(i) {
|
|
4522
|
+
const g = t.actions.getSection(i);
|
|
4502
4523
|
return Mt(
|
|
4503
4524
|
n,
|
|
4504
4525
|
"section",
|
|
4505
|
-
Gn(
|
|
4526
|
+
Gn(i, g)
|
|
4506
4527
|
);
|
|
4507
4528
|
}
|
|
4508
|
-
function
|
|
4509
|
-
return
|
|
4529
|
+
function l(i, g) {
|
|
4530
|
+
return i.key || i.id || i.infSetId || i.tagId || `${g}`;
|
|
4510
4531
|
}
|
|
4511
|
-
function s(
|
|
4512
|
-
return `global-info-section-${
|
|
4532
|
+
function s(i) {
|
|
4533
|
+
return `global-info-section-${l(i, 0)}`;
|
|
4513
4534
|
}
|
|
4514
|
-
return (
|
|
4515
|
-
te(
|
|
4516
|
-
group:
|
|
4517
|
-
children:
|
|
4518
|
-
state:
|
|
4519
|
-
actions:
|
|
4520
|
-
renderConfig:
|
|
4535
|
+
return (i, g) => (I(), G("section", Ya, [
|
|
4536
|
+
te(i.$slots, "header", {
|
|
4537
|
+
group: i.group,
|
|
4538
|
+
children: i.children,
|
|
4539
|
+
state: i.state,
|
|
4540
|
+
actions: i.actions,
|
|
4541
|
+
renderConfig: i.renderConfig,
|
|
4521
4542
|
title: o.value,
|
|
4522
|
-
index:
|
|
4523
|
-
isEmpty:
|
|
4543
|
+
index: i.index,
|
|
4544
|
+
isEmpty: i.children.length === 0
|
|
4524
4545
|
}, () => [
|
|
4525
4546
|
ne("header", Ua, [
|
|
4526
4547
|
g[0] || (g[0] = ne("span", { class: "global-info-group__marker" }, null, -1)),
|
|
@@ -4528,52 +4549,52 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4528
4549
|
])
|
|
4529
4550
|
], !0),
|
|
4530
4551
|
ne("div", Ja, [
|
|
4531
|
-
J(n).default ? te(
|
|
4552
|
+
J(n).default ? te(i.$slots, "default", {
|
|
4532
4553
|
key: 0,
|
|
4533
|
-
group:
|
|
4534
|
-
children:
|
|
4535
|
-
state:
|
|
4536
|
-
actions:
|
|
4537
|
-
renderConfig:
|
|
4538
|
-
index:
|
|
4539
|
-
isEmpty:
|
|
4554
|
+
group: i.group,
|
|
4555
|
+
children: i.children,
|
|
4556
|
+
state: i.state,
|
|
4557
|
+
actions: i.actions,
|
|
4558
|
+
renderConfig: i.renderConfig,
|
|
4559
|
+
index: i.index,
|
|
4560
|
+
isEmpty: i.children.length === 0
|
|
4540
4561
|
}, void 0, !0) : (I(), G(Se, { key: 1 }, [
|
|
4541
|
-
(I(!0), G(Se, null, ye(
|
|
4562
|
+
(I(!0), G(Se, null, ye(i.children, (w, $) => (I(), G("div", {
|
|
4542
4563
|
id: s(w),
|
|
4543
|
-
key:
|
|
4564
|
+
key: l(w, $),
|
|
4544
4565
|
class: "global-info-group__section"
|
|
4545
4566
|
}, [
|
|
4546
|
-
a(w) ? te(
|
|
4567
|
+
a(w) ? te(i.$slots, a(w), ae({
|
|
4547
4568
|
key: 0,
|
|
4548
4569
|
ref_for: !0
|
|
4549
|
-
},
|
|
4570
|
+
}, c(w, $)), void 0, !0) : J(n).section ? te(i.$slots, "section", ae({
|
|
4550
4571
|
key: 1,
|
|
4551
4572
|
ref_for: !0
|
|
4552
|
-
},
|
|
4573
|
+
}, c(w, $)), void 0, !0) : (I(), H(Ka, {
|
|
4553
4574
|
key: 2,
|
|
4554
4575
|
node: w,
|
|
4555
|
-
state:
|
|
4556
|
-
actions:
|
|
4576
|
+
state: i.state,
|
|
4577
|
+
actions: i.actions,
|
|
4557
4578
|
"hide-header": r.value,
|
|
4558
|
-
"render-config":
|
|
4579
|
+
"render-config": i.renderConfig
|
|
4559
4580
|
}, Re({ _: 2 }, [
|
|
4560
|
-
ye(J(n), (L,
|
|
4561
|
-
name:
|
|
4581
|
+
ye(J(n), (L, V) => ({
|
|
4582
|
+
name: V,
|
|
4562
4583
|
fn: U((f) => [
|
|
4563
|
-
te(
|
|
4584
|
+
te(i.$slots, V, ae({ ref_for: !0 }, f), void 0, !0)
|
|
4564
4585
|
])
|
|
4565
4586
|
}))
|
|
4566
4587
|
]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
|
|
4567
4588
|
], 8, Wa))), 128)),
|
|
4568
|
-
|
|
4589
|
+
i.children.length === 0 ? te(i.$slots, "empty", {
|
|
4569
4590
|
key: 0,
|
|
4570
4591
|
node: null,
|
|
4571
|
-
group:
|
|
4592
|
+
group: i.group,
|
|
4572
4593
|
sectionNode: null,
|
|
4573
|
-
state:
|
|
4574
|
-
actions:
|
|
4594
|
+
state: i.state,
|
|
4595
|
+
actions: i.actions,
|
|
4575
4596
|
index: -1,
|
|
4576
|
-
renderConfig:
|
|
4597
|
+
renderConfig: i.renderConfig
|
|
4577
4598
|
}, () => [
|
|
4578
4599
|
ne("div", Za, oe(J(Z)("common.暂无数据")), 1)
|
|
4579
4600
|
], !0) : fe("", !0)
|
|
@@ -4581,7 +4602,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4581
4602
|
])
|
|
4582
4603
|
]));
|
|
4583
4604
|
}
|
|
4584
|
-
}), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-
|
|
4605
|
+
}), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-e86a3d32"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
|
|
4585
4606
|
name: "GlobalInfoSections",
|
|
4586
4607
|
__name: "GlobalInfoSections",
|
|
4587
4608
|
props: {
|
|
@@ -4593,29 +4614,29 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4593
4614
|
setup(e) {
|
|
4594
4615
|
const t = e, n = Le(), o = O(() => {
|
|
4595
4616
|
const g = t.nodes.filter(
|
|
4596
|
-
(
|
|
4597
|
-
), w = t.nodes.filter((
|
|
4598
|
-
group:
|
|
4599
|
-
children: r(
|
|
4600
|
-
})), f = $.map((
|
|
4601
|
-
group:
|
|
4602
|
-
children: [
|
|
4617
|
+
(T) => r(T).length > 0
|
|
4618
|
+
), w = t.nodes.filter((T) => r(T).length === 0), $ = w.filter((T) => c(T)), L = w.filter((T) => !c(T)), V = g.map((T) => ({
|
|
4619
|
+
group: T,
|
|
4620
|
+
children: r(T)
|
|
4621
|
+
})), f = $.map((T) => ({
|
|
4622
|
+
group: T,
|
|
4623
|
+
children: [T]
|
|
4603
4624
|
}));
|
|
4604
|
-
if (
|
|
4605
|
-
return $.length > 0 ? f :
|
|
4606
|
-
const S =
|
|
4607
|
-
return [...
|
|
4625
|
+
if (V.length === 0)
|
|
4626
|
+
return $.length > 0 ? f : i(L);
|
|
4627
|
+
const S = i(L);
|
|
4628
|
+
return [...V, ...f, ...S];
|
|
4608
4629
|
});
|
|
4609
4630
|
function r(g) {
|
|
4610
4631
|
return g.children ?? [];
|
|
4611
4632
|
}
|
|
4612
|
-
function
|
|
4633
|
+
function c(g) {
|
|
4613
4634
|
return !String(g.parentId || g.parentTagId || "").trim();
|
|
4614
4635
|
}
|
|
4615
4636
|
function a(g) {
|
|
4616
4637
|
return Mt(n, "group", qn(g));
|
|
4617
4638
|
}
|
|
4618
|
-
function
|
|
4639
|
+
function l(g, w) {
|
|
4619
4640
|
return g.key || g.id || g.tagId || `${w}`;
|
|
4620
4641
|
}
|
|
4621
4642
|
function s(g) {
|
|
@@ -4636,13 +4657,13 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4636
4657
|
children: g
|
|
4637
4658
|
};
|
|
4638
4659
|
}
|
|
4639
|
-
function
|
|
4660
|
+
function i(g) {
|
|
4640
4661
|
const w = /* @__PURE__ */ new Map();
|
|
4641
4662
|
return g.forEach(($) => {
|
|
4642
4663
|
const L = String(
|
|
4643
4664
|
$.parentId || $.parentTagId || "global-info-flat"
|
|
4644
|
-
),
|
|
4645
|
-
|
|
4665
|
+
), V = w.get(L) ?? [];
|
|
4666
|
+
V.push($), w.set(L, V);
|
|
4646
4667
|
}), Array.from(w.values()).map(($) => ({
|
|
4647
4668
|
group: s($),
|
|
4648
4669
|
children: $
|
|
@@ -4650,7 +4671,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4650
4671
|
}
|
|
4651
4672
|
return (g, w) => (I(), G("div", es, [
|
|
4652
4673
|
(I(!0), G(Se, null, ye(o.value, ($, L) => (I(), G(Se, {
|
|
4653
|
-
key:
|
|
4674
|
+
key: l($.group, L)
|
|
4654
4675
|
}, [
|
|
4655
4676
|
a($.group) ? te(g.$slots, a($.group), {
|
|
4656
4677
|
key: 0,
|
|
@@ -4679,7 +4700,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4679
4700
|
"render-config": g.renderConfig,
|
|
4680
4701
|
index: L
|
|
4681
4702
|
}, Re({ _: 2 }, [
|
|
4682
|
-
ye(J(n), (
|
|
4703
|
+
ye(J(n), (V, f) => ({
|
|
4683
4704
|
name: f,
|
|
4684
4705
|
fn: U((S) => [
|
|
4685
4706
|
te(g.$slots, f, ae({ ref_for: !0 }, S), void 0, !0)
|
|
@@ -4689,7 +4710,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4689
4710
|
], 64))), 128))
|
|
4690
4711
|
]));
|
|
4691
4712
|
}
|
|
4692
|
-
}), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-
|
|
4713
|
+
}), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-d4ed3f80"]]);
|
|
4693
4714
|
function ds(e, t = {}) {
|
|
4694
4715
|
Un(e, t);
|
|
4695
4716
|
}
|
|
@@ -4697,7 +4718,7 @@ export {
|
|
|
4697
4718
|
Ln as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
|
|
4698
4719
|
Ba as GlobalInfoAutoRenderer,
|
|
4699
4720
|
ka as GlobalInfoDeleteConfirm,
|
|
4700
|
-
|
|
4721
|
+
Vn as GlobalInfoFieldControl,
|
|
4701
4722
|
jn as GlobalInfoFieldValue,
|
|
4702
4723
|
Ca as GlobalInfoFormRenderer,
|
|
4703
4724
|
Xa as GlobalInfoGroup,
|
|
@@ -4712,13 +4733,13 @@ export {
|
|
|
4712
4733
|
yo as JtCascader,
|
|
4713
4734
|
ss as JtCrudTable,
|
|
4714
4735
|
So as JtDatePicker,
|
|
4715
|
-
|
|
4736
|
+
Vo as JtFilterBar,
|
|
4716
4737
|
ko as JtFormItems,
|
|
4717
4738
|
ht as JtInput,
|
|
4718
4739
|
ls as JtPageHeader,
|
|
4719
4740
|
Ko as JtPagination,
|
|
4720
4741
|
Io as JtSelect,
|
|
4721
|
-
|
|
4742
|
+
No as JtTable,
|
|
4722
4743
|
kr as buildGlobalInfoUpdatePayload,
|
|
4723
4744
|
Ir as createEmptyGlobalInfoViewModel,
|
|
4724
4745
|
vs as getJtLocale,
|
|
@@ -4727,7 +4748,7 @@ export {
|
|
|
4727
4748
|
is as isGlobalInfoNode,
|
|
4728
4749
|
Sn as mergeGlobalInfoChildren,
|
|
4729
4750
|
$r as normalizeGlobalInfoDetail,
|
|
4730
|
-
|
|
4751
|
+
Nt as normalizeGlobalInfoTree,
|
|
4731
4752
|
hs as normalizeLocale,
|
|
4732
4753
|
gs as resetJtLocale,
|
|
4733
4754
|
Cr as resolveGlobalInfoRenderType,
|