@jt-home/mfe-components 1.0.11 → 1.0.12
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 +289 -283
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { defineComponent as ee, useAttrs as rn, computed as I, openBlock as b, createBlock as V, mergeProps as
|
|
3
|
-
import { ElButton as lt, ElIcon as Tt, ElCascader as mn, ElDatePicker as Bt, ElInput as Ft, ElSelect as
|
|
2
|
+
import { defineComponent as ee, useAttrs as rn, computed as I, openBlock as b, createBlock as V, mergeProps as J, toHandlers as qe, withCtx as L, renderSlot as K, resolveDynamicComponent as Ct, createCommentVNode as te, ref as le, watch as be, mergeDefaults as ln, withKeys as sn, createElementBlock as G, Fragment as Se, renderList as de, normalizeStyle as kt, nextTick as cn, useSlots as Ce, normalizeClass as Ge, createVNode as pe, withModifiers as un, unref as U, createSlots as Ee, createElementVNode as D, toDisplayString as se, normalizeProps as he, guardReactiveProps as _e, useModel as tt, withDirectives as dn, mergeModels as ut, shallowRef as Be, onMounted as $t, createTextVNode as Re, resolveComponent as fn, onErrorCaptured as pn } from "vue";
|
|
3
|
+
import { ElButton as lt, ElIcon as Tt, ElCascader as mn, ElDatePicker as Bt, ElInput as Ft, ElSelect as Mt, ElOption as Et, ElFormItem as Vt, ElForm as Pt, ElTable as Lt, ElTableColumn as Nt, ElPagination as vn, ElLoadingDirective as gn, ElInputNumber as yn, ElSwitch as hn, ElRow as bn, ElCol as Sn, ElPopconfirm as In } from "element-plus/es";
|
|
4
4
|
import { cascaderEmits as wn, inputEmits as dt, selectEmits as ft } from "element-plus";
|
|
5
|
-
import { JtAttachmentPreview as
|
|
5
|
+
import { JtAttachmentPreview as xa, JtAttachmentPreviewByParams as Ja, setupJtAttachmentPreview as Ha } from "./JtAttachmentPreview/index.mjs";
|
|
6
6
|
const at = 2, _n = 3;
|
|
7
7
|
function Cn(t) {
|
|
8
8
|
return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -63,7 +63,7 @@ const $n = /* @__PURE__ */ ee({
|
|
|
63
63
|
}), a = I(() => Rt(n));
|
|
64
64
|
return (r, s) => {
|
|
65
65
|
const l = Tt, d = lt;
|
|
66
|
-
return b(), V(d,
|
|
66
|
+
return b(), V(d, J({ class: "jt-button" }, o.value, qe(a.value)), {
|
|
67
67
|
default: L(() => [
|
|
68
68
|
r.$slots.icon ? (b(), V(l, {
|
|
69
69
|
key: 0,
|
|
@@ -176,7 +176,7 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
176
176
|
function m(C) {
|
|
177
177
|
s("focus", C);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function E(C) {
|
|
180
180
|
s("blur", C);
|
|
181
181
|
}
|
|
182
182
|
function f() {
|
|
@@ -193,12 +193,12 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
193
193
|
}
|
|
194
194
|
return (C, P) => {
|
|
195
195
|
const F = mn;
|
|
196
|
-
return b(), V(F,
|
|
196
|
+
return b(), V(F, J({ class: "jt-cascader" }, o.value, {
|
|
197
197
|
"model-value": a.value,
|
|
198
198
|
"onUpdate:modelValue": l,
|
|
199
199
|
onChange: d,
|
|
200
200
|
onFocus: m,
|
|
201
|
-
onBlur:
|
|
201
|
+
onBlur: E,
|
|
202
202
|
onClear: f,
|
|
203
203
|
onVisibleChange: y,
|
|
204
204
|
onExpandChange: p,
|
|
@@ -206,7 +206,7 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
206
206
|
}), null, 16, ["model-value"]);
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
}),
|
|
209
|
+
}), Mn = /* @__PURE__ */ ee({
|
|
210
210
|
name: "JtDatePicker",
|
|
211
211
|
__name: "index",
|
|
212
212
|
props: {
|
|
@@ -269,12 +269,12 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
269
269
|
}
|
|
270
270
|
return (a, r) => {
|
|
271
271
|
const s = Bt;
|
|
272
|
-
return b(), V(s,
|
|
272
|
+
return b(), V(s, J({ class: "jt-date-picker" }, n.value, {
|
|
273
273
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => a.$emit("update:modelValue", l))
|
|
274
274
|
}), null, 16);
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
}),
|
|
277
|
+
}), En = /* @__PURE__ */ ie(Mn, [["__scopeId", "data-v-7aa4706e"]]), Vn = /* @__PURE__ */ ee({
|
|
278
278
|
name: "JtInput",
|
|
279
279
|
__name: "index",
|
|
280
280
|
props: {
|
|
@@ -325,7 +325,7 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
325
325
|
));
|
|
326
326
|
return (r, s) => {
|
|
327
327
|
const l = Ft;
|
|
328
|
-
return b(), V(l,
|
|
328
|
+
return b(), V(l, J({ class: "jt-input" }, n, qe(a.value), {
|
|
329
329
|
onKeyup: s[0] || (s[0] = sn((d) => o("enter"), ["enter"]))
|
|
330
330
|
}), null, 16);
|
|
331
331
|
};
|
|
@@ -399,13 +399,13 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
399
399
|
])
|
|
400
400
|
));
|
|
401
401
|
return (s, l) => {
|
|
402
|
-
const d =
|
|
403
|
-
return b(), V(m,
|
|
402
|
+
const d = Et, m = Mt;
|
|
403
|
+
return b(), V(m, J({ class: "jt-select" }, o.value, qe(r.value)), {
|
|
404
404
|
default: L(() => [
|
|
405
|
-
(b(!0), G(Se, null, de(s.options ?? [], (
|
|
406
|
-
key:
|
|
405
|
+
(b(!0), G(Se, null, de(s.options ?? [], (E) => (b(), V(d, J({
|
|
406
|
+
key: E.value,
|
|
407
407
|
ref_for: !0
|
|
408
|
-
},
|
|
408
|
+
}, E), null, 16))), 128))
|
|
409
409
|
]),
|
|
410
410
|
_: 1
|
|
411
411
|
}, 16);
|
|
@@ -424,7 +424,7 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
424
424
|
input: nt,
|
|
425
425
|
select: Ln,
|
|
426
426
|
cascader: Fn,
|
|
427
|
-
"date-picker":
|
|
427
|
+
"date-picker": En
|
|
428
428
|
}, o = {
|
|
429
429
|
"remote-select": "select",
|
|
430
430
|
date: "date-picker",
|
|
@@ -448,7 +448,7 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
448
448
|
...v,
|
|
449
449
|
type: "daterange"
|
|
450
450
|
} : v;
|
|
451
|
-
},
|
|
451
|
+
}, E = (c) => Rt(c, a), f = (c) => ({
|
|
452
452
|
rules: c.rules,
|
|
453
453
|
...c.formItemProps
|
|
454
454
|
}), y = (c, v) => {
|
|
@@ -488,7 +488,7 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
488
488
|
return (c, v) => {
|
|
489
489
|
const T = Vt;
|
|
490
490
|
return b(), G("div", Nn, [
|
|
491
|
-
(b(!0), G(Se, null, de(l.value, (S) => (b(), V(T,
|
|
491
|
+
(b(!0), G(Se, null, de(l.value, (S) => (b(), V(T, J({
|
|
492
492
|
key: S.prop,
|
|
493
493
|
ref_for: !0,
|
|
494
494
|
ref: p(S.prop),
|
|
@@ -498,11 +498,11 @@ const Fn = /* @__PURE__ */ ee({
|
|
|
498
498
|
prop: S.prop
|
|
499
499
|
}, f(S)), {
|
|
500
500
|
default: L(() => [
|
|
501
|
-
S.showSlot ? K(c.$slots, S.prop, { key: 0 }, void 0, !0) : (b(), V(Ct(d(S)),
|
|
501
|
+
S.showSlot ? K(c.$slots, S.prop, { key: 0 }, void 0, !0) : (b(), V(Ct(d(S)), J({
|
|
502
502
|
key: 1,
|
|
503
503
|
"model-value": c.formData[S.prop],
|
|
504
504
|
ref_for: !0
|
|
505
|
-
}, m(S), qe(
|
|
505
|
+
}, m(S), qe(E(S)), {
|
|
506
506
|
"onUpdate:modelValue": (B) => y(S.prop, B),
|
|
507
507
|
onChange: () => w(S.prop, "change"),
|
|
508
508
|
onBlur: () => w(S.prop, "blur")
|
|
@@ -551,12 +551,12 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
551
551
|
const o = t, a = n, r = le(), s = Ce(), l = le({}), {
|
|
552
552
|
searchDisabled: d,
|
|
553
553
|
searchLoading: m,
|
|
554
|
-
searchDone:
|
|
554
|
+
searchDone: E
|
|
555
555
|
} = jn(), f = I(() => o.option), y = le(f.value.searchCollapsed ?? !1), p = I(() => o.columns.filter(($) => $.search === !0)), w = I(
|
|
556
556
|
() => Math.max(1, f.value.searchSpan ?? 4)
|
|
557
557
|
), C = I(() => Math.max(1, f.value.searchCollapsedRows ?? 1)), P = I(() => w.value), F = I(
|
|
558
558
|
() => Math.max(1, P.value * C.value)
|
|
559
|
-
), q = I(() => w.value), c = I(() => _.value ? "264px" : "174px"), v = I(() => ce(f.value.searchLabelWidth ?? 84)), T = I(() => f.value.searchLabelPosition ?? "top"), S = I(() => Ie(f.value.searchGutter, 14)), B = I(() => Ie(f.value.searchRowGap, 14)), k = I(() => Ve(f.value.searchPadding ?? "18px 4px 0")), _ = I(() => f.value.searchCollapse === !1 ? !1 : x(p.value) > F.value),
|
|
559
|
+
), q = I(() => w.value), c = I(() => _.value ? "264px" : "174px"), v = I(() => ce(f.value.searchLabelWidth ?? 84)), T = I(() => f.value.searchLabelPosition ?? "top"), S = I(() => Ie(f.value.searchGutter, 14)), B = I(() => Ie(f.value.searchRowGap, 14)), k = I(() => Ve(f.value.searchPadding ?? "18px 4px 0")), _ = I(() => f.value.searchCollapse === !1 ? !1 : x(p.value) > F.value), H = I(() => {
|
|
560
560
|
if (!_.value || !y.value) return p.value;
|
|
561
561
|
let $ = 0;
|
|
562
562
|
return p.value.filter((Z) => {
|
|
@@ -564,15 +564,15 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
564
564
|
return $ + ae > F.value ? !1 : ($ += ae, !0);
|
|
565
565
|
});
|
|
566
566
|
}), me = I(
|
|
567
|
-
() =>
|
|
567
|
+
() => H.value.filter(($) => !!s[`${$.prop}-search`])
|
|
568
568
|
), Q = I(() => {
|
|
569
|
-
const [$] =
|
|
570
|
-
return !!$ &&
|
|
569
|
+
const [$] = H.value;
|
|
570
|
+
return !!$ && H.value.length === 1 && X($) < w.value;
|
|
571
571
|
}), ge = I(() => {
|
|
572
|
-
const [$] =
|
|
572
|
+
const [$] = H.value;
|
|
573
573
|
return `${Math.min(w.value, $ ? X($) + 1 : 1)}`;
|
|
574
574
|
}), Pe = I(
|
|
575
|
-
() =>
|
|
575
|
+
() => H.value.map(($) => N($))
|
|
576
576
|
);
|
|
577
577
|
be(
|
|
578
578
|
() => f.value.searchCollapsed,
|
|
@@ -666,7 +666,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
666
666
|
/** 开启筛选表单禁用。 */
|
|
667
667
|
searchLoading: m,
|
|
668
668
|
/** 关闭筛选表单禁用。 */
|
|
669
|
-
searchDone:
|
|
669
|
+
searchDone: E
|
|
670
670
|
}), ($, Z) => {
|
|
671
671
|
const ae = Pt;
|
|
672
672
|
return b(), G("div", {
|
|
@@ -689,25 +689,25 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
689
689
|
model: l.value,
|
|
690
690
|
"label-position": T.value,
|
|
691
691
|
"label-width": v.value,
|
|
692
|
-
disabled:
|
|
692
|
+
disabled: U(d),
|
|
693
693
|
onSubmit: Z[0] || (Z[0] = un(() => {
|
|
694
694
|
}, ["prevent"]))
|
|
695
695
|
}, {
|
|
696
696
|
default: L(() => [
|
|
697
|
-
pe(
|
|
697
|
+
pe(U(Rn), {
|
|
698
698
|
configs: Pe.value,
|
|
699
699
|
"form-data": l.value
|
|
700
|
-
},
|
|
700
|
+
}, Ee({
|
|
701
701
|
actions: L(() => [
|
|
702
702
|
D("div", qn, [
|
|
703
703
|
K($.$slots, "search-menu", {
|
|
704
704
|
search: z,
|
|
705
705
|
reset: A,
|
|
706
|
-
disabled:
|
|
706
|
+
disabled: U(d),
|
|
707
707
|
collapsed: y.value,
|
|
708
708
|
toggleCollapse: oe
|
|
709
709
|
}, () => [
|
|
710
|
-
_.value ? (b(), V(
|
|
710
|
+
_.value ? (b(), V(U(xe), {
|
|
711
711
|
key: 0,
|
|
712
712
|
class: "jt-filter-bar__btn-collapse",
|
|
713
713
|
onClick: oe
|
|
@@ -715,7 +715,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
715
715
|
icon: L(() => [
|
|
716
716
|
D("img", {
|
|
717
717
|
class: Ge(["jt-filter-bar__icon-arrow", { "is-collapsed": y.value }]),
|
|
718
|
-
src:
|
|
718
|
+
src: U(Gn),
|
|
719
719
|
alt: ""
|
|
720
720
|
}, null, 10, zn)
|
|
721
721
|
]),
|
|
@@ -724,14 +724,14 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
724
724
|
]),
|
|
725
725
|
_: 1
|
|
726
726
|
})) : te("", !0),
|
|
727
|
-
pe(
|
|
727
|
+
pe(U(xe), {
|
|
728
728
|
class: "jt-filter-bar__btn-reset",
|
|
729
|
-
disabled:
|
|
729
|
+
disabled: U(d),
|
|
730
730
|
onClick: A
|
|
731
731
|
}, {
|
|
732
732
|
icon: L(() => [
|
|
733
733
|
D("img", {
|
|
734
|
-
src:
|
|
734
|
+
src: U(An),
|
|
735
735
|
alt: ""
|
|
736
736
|
}, null, 8, Dn)
|
|
737
737
|
]),
|
|
@@ -740,15 +740,15 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
740
740
|
]),
|
|
741
741
|
_: 1
|
|
742
742
|
}, 8, ["disabled"]),
|
|
743
|
-
pe(
|
|
743
|
+
pe(U(xe), {
|
|
744
744
|
class: "jt-filter-bar__btn-query",
|
|
745
745
|
type: "primary",
|
|
746
|
-
disabled:
|
|
746
|
+
disabled: U(d),
|
|
747
747
|
onClick: z
|
|
748
748
|
}, {
|
|
749
749
|
icon: L(() => [
|
|
750
750
|
D("img", {
|
|
751
|
-
src:
|
|
751
|
+
src: U(Kn),
|
|
752
752
|
alt: ""
|
|
753
753
|
}, null, 8, xn)
|
|
754
754
|
]),
|
|
@@ -762,16 +762,16 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
762
762
|
]),
|
|
763
763
|
_: 2
|
|
764
764
|
}, [
|
|
765
|
-
de(me.value, (
|
|
766
|
-
name:
|
|
765
|
+
de(me.value, (Me) => ({
|
|
766
|
+
name: Me.prop,
|
|
767
767
|
fn: L(() => [
|
|
768
|
-
K($.$slots, `${
|
|
769
|
-
value: l.value[
|
|
770
|
-
column:
|
|
771
|
-
setValue: (Xe) => h(
|
|
768
|
+
K($.$slots, `${Me.prop}-search`, {
|
|
769
|
+
value: l.value[Me.prop],
|
|
770
|
+
column: Me,
|
|
771
|
+
setValue: (Xe) => h(Me.prop, Xe),
|
|
772
772
|
search: z,
|
|
773
773
|
reset: A,
|
|
774
|
-
disabled:
|
|
774
|
+
disabled: U(d)
|
|
775
775
|
}, void 0, !0)
|
|
776
776
|
])
|
|
777
777
|
}))
|
|
@@ -810,7 +810,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
810
810
|
...p.columnOptions
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function E(p) {
|
|
814
814
|
return !f(p.columnOptions?.type);
|
|
815
815
|
}
|
|
816
816
|
function f(p) {
|
|
@@ -821,7 +821,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
821
821
|
}
|
|
822
822
|
return e({ tableRef: a }), (p, w) => {
|
|
823
823
|
const C = Nt, P = Lt;
|
|
824
|
-
return b(), V(P,
|
|
824
|
+
return b(), V(P, J({
|
|
825
825
|
ref_key: "tableRef",
|
|
826
826
|
ref: a,
|
|
827
827
|
data: p.data,
|
|
@@ -845,24 +845,24 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
845
845
|
width: "60",
|
|
846
846
|
align: "center"
|
|
847
847
|
}, null, 8, ["label"])) : te("", !0),
|
|
848
|
-
(b(!0), G(Se, null, de(s.value, (F) => (b(), V(C,
|
|
848
|
+
(b(!0), G(Se, null, de(s.value, (F) => (b(), V(C, J({
|
|
849
849
|
key: F.prop,
|
|
850
850
|
prop: F.prop,
|
|
851
851
|
label: F.label,
|
|
852
852
|
formatter: !d(F.prop) && !F.dicData ? F.formatter : void 0,
|
|
853
853
|
ref_for: !0
|
|
854
|
-
}, m(F)),
|
|
854
|
+
}, m(F)), Ee({ _: 2 }, [
|
|
855
855
|
l(F.prop) ? {
|
|
856
856
|
name: "header",
|
|
857
857
|
fn: L((q) => [
|
|
858
|
-
K(p.$slots, `${F.prop}-header`,
|
|
858
|
+
K(p.$slots, `${F.prop}-header`, J({ ref_for: !0 }, q), void 0, !0)
|
|
859
859
|
]),
|
|
860
860
|
key: "0"
|
|
861
861
|
} : void 0,
|
|
862
|
-
|
|
862
|
+
E(F) ? {
|
|
863
863
|
name: "default",
|
|
864
864
|
fn: L((q) => [
|
|
865
|
-
d(F.prop) ? K(p.$slots, `${F.prop}-data`,
|
|
865
|
+
d(F.prop) ? K(p.$slots, `${F.prop}-data`, J({
|
|
866
866
|
key: 0,
|
|
867
867
|
ref_for: !0
|
|
868
868
|
}, q), void 0, !0) : F.dicData ? (b(), G("span", Un, se(y(F.dicData, q.row[F.prop])), 1)) : F.formatter ? (b(), G("span", Wn, se(F.formatter(q.row, q.column, q.row[F.prop], q.$index)), 1)) : (b(), G("span", Zn, se(q.row[F.prop]), 1))
|
|
@@ -943,7 +943,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
943
943
|
}),
|
|
944
944
|
emits: /* @__PURE__ */ ut(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
945
945
|
setup(t, { expose: e, emit: n }) {
|
|
946
|
-
const o = t, a = n, r = tt(t, "currentPage"), s = tt(t, "pageSize"), l = tt(t, "searchModel"), d = Ce(), m = le(),
|
|
946
|
+
const o = t, a = n, r = tt(t, "currentPage"), s = tt(t, "pageSize"), l = tt(t, "searchModel"), d = Ce(), m = le(), E = le(), f = I(() => o.option), y = I(() => f.value.searchShow !== !1), p = I(() => f.value.paginationShow !== !1), w = I(
|
|
947
947
|
() => o.columns.filter((S) => S.search && !!d[`${S.prop}-search`])
|
|
948
948
|
), C = I(
|
|
949
949
|
() => o.columns.filter((S) => !S.hide && !!d[`${S.prop}-header`])
|
|
@@ -963,16 +963,16 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
963
963
|
l.value = F(), a("reset");
|
|
964
964
|
}
|
|
965
965
|
function v() {
|
|
966
|
-
|
|
966
|
+
E.value?.searchLoading();
|
|
967
967
|
}
|
|
968
968
|
function T() {
|
|
969
|
-
|
|
969
|
+
E.value?.searchDone();
|
|
970
970
|
}
|
|
971
971
|
return e({
|
|
972
972
|
/** 获取内部 el-table 实例 */
|
|
973
973
|
tableRef: I(() => m.value?.tableRef),
|
|
974
974
|
/** 获取内部筛选条实例 */
|
|
975
|
-
filterBarRef:
|
|
975
|
+
filterBarRef: E,
|
|
976
976
|
/** 开启筛选表单禁用。 */
|
|
977
977
|
searchLoading: v,
|
|
978
978
|
/** 关闭筛选表单禁用。 */
|
|
@@ -984,22 +984,22 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
984
984
|
y.value ? (b(), V(Hn, {
|
|
985
985
|
key: 0,
|
|
986
986
|
ref_key: "filterBarRef",
|
|
987
|
-
ref:
|
|
987
|
+
ref: E,
|
|
988
988
|
modelValue: l.value,
|
|
989
989
|
"onUpdate:modelValue": B[0] || (B[0] = (_) => l.value = _),
|
|
990
990
|
columns: S.columns,
|
|
991
991
|
option: f.value,
|
|
992
992
|
onSearch: q,
|
|
993
993
|
onReset: c
|
|
994
|
-
},
|
|
994
|
+
}, Ee({ _: 2 }, [
|
|
995
995
|
de(w.value, (_) => ({
|
|
996
996
|
name: `${_.prop}-search`,
|
|
997
|
-
fn: L((
|
|
998
|
-
K(S.$slots, `${_.prop}-search`, he(_e(
|
|
997
|
+
fn: L((H) => [
|
|
998
|
+
K(S.$slots, `${_.prop}-search`, he(_e(H)), void 0, !0)
|
|
999
999
|
])
|
|
1000
1000
|
}))
|
|
1001
1001
|
]), 1032, ["modelValue", "columns", "option"])) : te("", !0),
|
|
1002
|
-
|
|
1002
|
+
U(d).toolbar ? (b(), G("div", ao, [
|
|
1003
1003
|
K(S.$slots, "toolbar", {}, void 0, !0)
|
|
1004
1004
|
])) : te("", !0),
|
|
1005
1005
|
dn((b(), V(Qn, {
|
|
@@ -1009,17 +1009,17 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1009
1009
|
columns: S.columns,
|
|
1010
1010
|
option: f.value,
|
|
1011
1011
|
"table-events": S.tableEvents
|
|
1012
|
-
},
|
|
1012
|
+
}, Ee({ _: 2 }, [
|
|
1013
1013
|
de(C.value, (_) => ({
|
|
1014
1014
|
name: `${_.prop}-header`,
|
|
1015
|
-
fn: L((
|
|
1016
|
-
K(S.$slots, `${_.prop}-header`, he(_e(
|
|
1015
|
+
fn: L((H) => [
|
|
1016
|
+
K(S.$slots, `${_.prop}-header`, he(_e(H)), void 0, !0)
|
|
1017
1017
|
])
|
|
1018
1018
|
})),
|
|
1019
1019
|
de(P.value, (_) => ({
|
|
1020
1020
|
name: `${_.prop}-data`,
|
|
1021
|
-
fn: L((
|
|
1022
|
-
K(S.$slots, `${_.prop}-data`, he(_e(
|
|
1021
|
+
fn: L((H) => [
|
|
1022
|
+
K(S.$slots, `${_.prop}-data`, he(_e(H)), void 0, !0)
|
|
1023
1023
|
])
|
|
1024
1024
|
})),
|
|
1025
1025
|
f.value.menu ? {
|
|
@@ -1046,7 +1046,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1046
1046
|
]);
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
1049
|
-
}),
|
|
1049
|
+
}), ja = /* @__PURE__ */ ie(ro, [["__scopeId", "data-v-ad466273"]]), lo = { class: "jt-page-header__title" }, so = { key: 0 }, io = {
|
|
1050
1050
|
key: 0,
|
|
1051
1051
|
class: "jt-page-header__operates"
|
|
1052
1052
|
}, co = /* @__PURE__ */ ee({
|
|
@@ -1063,7 +1063,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1063
1063
|
function s(l, d) {
|
|
1064
1064
|
l.onClick?.(l, d), o("operate-click", l, d);
|
|
1065
1065
|
}
|
|
1066
|
-
return (l, d) => (b(), G("div",
|
|
1066
|
+
return (l, d) => (b(), G("div", J({
|
|
1067
1067
|
class: ["jt-page-header", `jt-page-header--${l.type}`]
|
|
1068
1068
|
}, l.$attrs), [
|
|
1069
1069
|
D("div", lo, [
|
|
@@ -1073,7 +1073,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1073
1073
|
]),
|
|
1074
1074
|
r.value ? (b(), G("div", io, [
|
|
1075
1075
|
K(l.$slots, "operates", { operates: l.operates }, () => [
|
|
1076
|
-
(b(!0), G(Se, null, de(l.operates, (m) => (b(), V(
|
|
1076
|
+
(b(!0), G(Se, null, de(l.operates, (m) => (b(), V(U(xe), J({
|
|
1077
1077
|
key: m.key ?? m.label,
|
|
1078
1078
|
ref_for: !0
|
|
1079
1079
|
}, m.buttonProps, {
|
|
@@ -1084,7 +1084,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1084
1084
|
text: m.text,
|
|
1085
1085
|
link: m.link,
|
|
1086
1086
|
icon: m.icon,
|
|
1087
|
-
onClick: (
|
|
1087
|
+
onClick: (E) => s(m, E)
|
|
1088
1088
|
}), {
|
|
1089
1089
|
default: L(() => [
|
|
1090
1090
|
D("span", null, se(m.label), 1)
|
|
@@ -1095,7 +1095,7 @@ const Gn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1095
1095
|
])) : te("", !0)
|
|
1096
1096
|
], 16));
|
|
1097
1097
|
}
|
|
1098
|
-
}),
|
|
1098
|
+
}), Ga = /* @__PURE__ */ ie(co, [["__scopeId", "data-v-9e6bb356"]]);
|
|
1099
1099
|
function uo(t = null) {
|
|
1100
1100
|
return {
|
|
1101
1101
|
scheme: null,
|
|
@@ -1158,7 +1158,7 @@ function mo(t, e = {}) {
|
|
|
1158
1158
|
section: t
|
|
1159
1159
|
};
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Aa(t) {
|
|
1162
1162
|
const e = t;
|
|
1163
1163
|
return !!(e && typeof e == "object" && typeof e.key == "string" && typeof e.tagId == "string");
|
|
1164
1164
|
}
|
|
@@ -1181,14 +1181,14 @@ function vo(t, e, n) {
|
|
|
1181
1181
|
return o.length > 0 ? o.map((a) => vt(a, e, n, o.length === 1)) : t.infSetMark || t.infSetFields || t.fields ? [vt(t, e, n, !0)] : [];
|
|
1182
1182
|
}
|
|
1183
1183
|
function vt(t, e, n, o) {
|
|
1184
|
-
const a = W(t), r = go(a.infSetMark ?? a), s = yo(a.infSetFields ?? a.fields ?? []), l = bo(a.infSetValues ?? a.rows ?? a.data, s), d = l[0] ? rt(l[0]) : Kt(s), m = W(a.tag),
|
|
1184
|
+
const a = W(t), r = go(a.infSetMark ?? a), s = yo(a.infSetFields ?? a.fields ?? []), l = bo(a.infSetValues ?? a.rows ?? a.data, s), d = l[0] ? rt(l[0]) : Kt(s), m = W(a.tag), E = j(
|
|
1185
1185
|
a.tagId ?? a.infTagId ?? m.tagId ?? m.infTagId ?? r.raw.tagId ?? r.raw.infTagId
|
|
1186
|
-
), f = j(e.tagId ?? n?.tagId), y = j(n?.key), p = o ? e.infSetId ?? n?.infSetId : void 0, w = o ? e.setId : void 0, C = o ? n?.code : void 0, P = r.setId || j(a.setId), F = j(a.infSetId) || P || j(p), q = P || j(w ?? F), c = r.code || j(a.code ?? C ?? q), v = q || c || F ||
|
|
1186
|
+
), f = j(e.tagId ?? n?.tagId), y = j(n?.key), p = o ? e.infSetId ?? n?.infSetId : void 0, w = o ? e.setId : void 0, C = o ? n?.code : void 0, P = r.setId || j(a.setId), F = j(a.infSetId) || P || j(p), q = P || j(w ?? F), c = r.code || j(a.code ?? C ?? q), v = q || c || F || E, T = {
|
|
1187
1187
|
key: v,
|
|
1188
1188
|
id: v,
|
|
1189
1189
|
setId: q,
|
|
1190
1190
|
code: c,
|
|
1191
|
-
tagId:
|
|
1191
|
+
tagId: E,
|
|
1192
1192
|
requestTagId: f || void 0,
|
|
1193
1193
|
ownerNodeKey: y || void 0,
|
|
1194
1194
|
infSetId: F,
|
|
@@ -1460,7 +1460,7 @@ function Zt(t, e, n) {
|
|
|
1460
1460
|
function Fo(t, e, n) {
|
|
1461
1461
|
return ze([n, ...Ke(e)]).length === 0 ? t : t.filter((a) => Zt(a, e, n));
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function Mo(t, e, n = {}) {
|
|
1464
1464
|
const o = Object.keys(n).length > 0 ? n : t.model, a = typeof e == "string" ? e : Fe(e), r = typeof e == "string" ? t.fields.find((l) => Fe(l) === a || l.code === a) : e, s = (r?.cascadeDependFields ?? []).some((l) => {
|
|
1465
1465
|
const d = o[l];
|
|
1466
1466
|
return d == null || d === "";
|
|
@@ -1473,7 +1473,7 @@ function Eo(t, e, n = {}) {
|
|
|
1473
1473
|
missingDependField: s
|
|
1474
1474
|
};
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Eo(t) {
|
|
1477
1477
|
return !!(t && (t.cascadeDependFields ?? []).length === 0 && (t.options ?? []).length > 0);
|
|
1478
1478
|
}
|
|
1479
1479
|
function Vo(t) {
|
|
@@ -1589,7 +1589,7 @@ function jo(t) {
|
|
|
1589
1589
|
};
|
|
1590
1590
|
}
|
|
1591
1591
|
const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
1592
|
-
const e = le(!1), n = le(!1), o = le(!1), a = Be(null), r = Be([]), s = Be(null), l = Be(null), d = Be(null), m = Be({}),
|
|
1592
|
+
const e = le(!1), n = le(!1), o = le(!1), a = Be(null), r = Be([]), s = Be(null), l = Be(null), d = Be(null), m = Be({}), E = Be({}), f = le([]), y = Be({}), p = le([]), w = I(
|
|
1593
1593
|
() => {
|
|
1594
1594
|
const i = f.value.map((g) => m.value[g]).filter((g) => !!g), u = Object.entries(m.value).filter(([g]) => !f.value.includes(g)).map(([, g]) => g);
|
|
1595
1595
|
return [...i, ...u];
|
|
@@ -1614,7 +1614,7 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1614
1614
|
...u,
|
|
1615
1615
|
// 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
|
|
1616
1616
|
editing: p.value.includes(
|
|
1617
|
-
|
|
1617
|
+
E.value[i] ?? i
|
|
1618
1618
|
)
|
|
1619
1619
|
}
|
|
1620
1620
|
])
|
|
@@ -1663,9 +1663,9 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1663
1663
|
for (const g of i) {
|
|
1664
1664
|
if (Ke(g).includes(u))
|
|
1665
1665
|
return g;
|
|
1666
|
-
const
|
|
1667
|
-
if (
|
|
1668
|
-
return
|
|
1666
|
+
const M = v(g.children, u);
|
|
1667
|
+
if (M)
|
|
1668
|
+
return M;
|
|
1669
1669
|
}
|
|
1670
1670
|
return null;
|
|
1671
1671
|
}, T = (i = d.value) => {
|
|
@@ -1675,12 +1675,12 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1675
1675
|
const u = T(i);
|
|
1676
1676
|
if (!u)
|
|
1677
1677
|
return null;
|
|
1678
|
-
const g =
|
|
1678
|
+
const g = E.value[u] ?? u;
|
|
1679
1679
|
return m.value[g] ?? null;
|
|
1680
1680
|
}, B = (i = d.value) => {
|
|
1681
1681
|
const u = T(i);
|
|
1682
1682
|
if (u)
|
|
1683
|
-
return
|
|
1683
|
+
return E.value[u] ?? u;
|
|
1684
1684
|
}, k = (i = d.value) => {
|
|
1685
1685
|
if (i)
|
|
1686
1686
|
return typeof i == "string" ? i : Ne(i) ? i.setId ?? i.infSetId ?? i.key : ye(i);
|
|
@@ -1695,11 +1695,11 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1695
1695
|
return g?.ownerNodeKey ? v(r.value, g.ownerNodeKey) ?? l.value : g || l.value && Ke(l.value).includes(i) ? l.value : null;
|
|
1696
1696
|
}
|
|
1697
1697
|
return i?.ownerNodeKey ? v(r.value, i.ownerNodeKey) ?? l.value : l.value;
|
|
1698
|
-
},
|
|
1698
|
+
}, H = (i = d.value) => !i || Ne(i) ? null : S(i), me = (i = d.value) => {
|
|
1699
1699
|
const u = k(i);
|
|
1700
1700
|
if (!u)
|
|
1701
1701
|
return je();
|
|
1702
|
-
const g =
|
|
1702
|
+
const g = E.value[u] ?? u;
|
|
1703
1703
|
return je({
|
|
1704
1704
|
...y.value[u],
|
|
1705
1705
|
...y.value[g],
|
|
@@ -1722,7 +1722,7 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1722
1722
|
})
|
|
1723
1723
|
});
|
|
1724
1724
|
}, ge = (i = s.value?.raw ?? null, u = l.value) => {
|
|
1725
|
-
const g = w.value,
|
|
1725
|
+
const g = w.value, M = d.value && g.find(
|
|
1726
1726
|
(R) => ye(R) === ye(d.value)
|
|
1727
1727
|
) ? d.value : null;
|
|
1728
1728
|
s.value = {
|
|
@@ -1736,18 +1736,18 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1736
1736
|
// 当前激活节点。
|
|
1737
1737
|
activeNode: u,
|
|
1738
1738
|
// 当前激活 section。
|
|
1739
|
-
activeSection:
|
|
1739
|
+
activeSection: M,
|
|
1740
1740
|
// 当前所有已加载 section。
|
|
1741
1741
|
sections: g,
|
|
1742
1742
|
// 当前 section 缓存。
|
|
1743
1743
|
sectionMap: m.value,
|
|
1744
1744
|
// 保留原始接口数据。
|
|
1745
1745
|
raw: i
|
|
1746
|
-
}, d.value =
|
|
1746
|
+
}, d.value = M;
|
|
1747
1747
|
}, Pe = (i, u = l.value, g) => {
|
|
1748
|
-
const
|
|
1748
|
+
const M = jo({
|
|
1749
1749
|
currentMap: m.value,
|
|
1750
|
-
currentAliasMap:
|
|
1750
|
+
currentAliasMap: E.value,
|
|
1751
1751
|
currentOrder: f.value,
|
|
1752
1752
|
currentStatusMap: y.value,
|
|
1753
1753
|
editingSectionKeys: p.value,
|
|
@@ -1756,32 +1756,32 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1756
1756
|
targetKey: g,
|
|
1757
1757
|
activeSection: d.value
|
|
1758
1758
|
});
|
|
1759
|
-
return m.value =
|
|
1759
|
+
return m.value = M.sectionMap, E.value = M.sectionAliasMap, f.value = M.sectionOrder, y.value = M.sectionStatusMap, s.value = {
|
|
1760
1760
|
...i,
|
|
1761
1761
|
scheme: i.scheme ?? s.value?.scheme ?? null,
|
|
1762
1762
|
topNodes: r.value,
|
|
1763
1763
|
treeNodes: r.value,
|
|
1764
1764
|
activeNode: u,
|
|
1765
|
-
activeSection:
|
|
1766
|
-
sections:
|
|
1765
|
+
activeSection: M.matchedSection,
|
|
1766
|
+
sections: M.targetSections,
|
|
1767
1767
|
sectionMap: m.value
|
|
1768
|
-
}, d.value =
|
|
1768
|
+
}, d.value = M.matchedSection, M.matchedSection;
|
|
1769
1769
|
}, h = (i, u) => {
|
|
1770
|
-
const g = B(i),
|
|
1771
|
-
if (!g || !
|
|
1770
|
+
const g = B(i), M = g ? m.value[g] : null;
|
|
1771
|
+
if (!g || !M)
|
|
1772
1772
|
return;
|
|
1773
|
-
const R = u(
|
|
1773
|
+
const R = u(M);
|
|
1774
1774
|
m.value = {
|
|
1775
1775
|
...m.value,
|
|
1776
1776
|
[g]: R
|
|
1777
1777
|
}, d.value = ye(d.value ?? R) === g ? R : d.value, ge();
|
|
1778
1778
|
}, N = async (i = d.value ?? l.value) => {
|
|
1779
|
-
const u =
|
|
1779
|
+
const u = H(i), g = _(i) ?? l.value, M = k(i);
|
|
1780
1780
|
if (!g)
|
|
1781
1781
|
return null;
|
|
1782
1782
|
if (!t.service.requestOperation)
|
|
1783
1783
|
throw Oe("service.requestOperation is required");
|
|
1784
|
-
n.value = !0, a.value = null, Q(
|
|
1784
|
+
n.value = !0, a.value = null, Q(M ?? g, { loading: !0, error: null });
|
|
1785
1785
|
try {
|
|
1786
1786
|
const R = u ? [{ infSetId: u.infSetId, setId: u.setId, operationInfo: u.operationInfo, raw: u.raw }] : g.infSetList;
|
|
1787
1787
|
if (R.length === 0)
|
|
@@ -1810,11 +1810,11 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1810
1810
|
sections: re.flatMap((ne) => ne.sections),
|
|
1811
1811
|
sectionMap: Object.fromEntries(re.flatMap((ne) => ne.sections).map((ne) => [ne.key, ne]))
|
|
1812
1812
|
};
|
|
1813
|
-
return Pe(fe, g,
|
|
1813
|
+
return Pe(fe, g, M);
|
|
1814
1814
|
} catch (R) {
|
|
1815
|
-
throw a.value = R, Q(
|
|
1815
|
+
throw a.value = R, Q(M ?? g, { loading: !1, error: R }), R;
|
|
1816
1816
|
} finally {
|
|
1817
|
-
n.value = !1, Q(
|
|
1817
|
+
n.value = !1, Q(M ?? g, { loading: !1 });
|
|
1818
1818
|
}
|
|
1819
1819
|
}, O = (i = d.value) => N(i), z = (i = d.value) => {
|
|
1820
1820
|
if (!i)
|
|
@@ -1822,19 +1822,19 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1822
1822
|
if (!Ne(i) && typeof i != "string")
|
|
1823
1823
|
return S(i);
|
|
1824
1824
|
const u = k(i);
|
|
1825
|
-
return u ? m.value[
|
|
1826
|
-
}, A = async (i = l.value) => i ? (await N(i), s.value) : (s.value = null, d.value = null, m.value = {},
|
|
1825
|
+
return u ? m.value[E.value[u] ?? u] ?? null : null;
|
|
1826
|
+
}, A = async (i = l.value) => i ? (await N(i), s.value) : (s.value = null, d.value = null, m.value = {}, E.value = {}, f.value = [], y.value = {}, null), oe = async (i) => {
|
|
1827
1827
|
const u = Po(i);
|
|
1828
1828
|
if (!u)
|
|
1829
1829
|
return i.children;
|
|
1830
|
-
const g = F(i),
|
|
1830
|
+
const g = F(i), M = await c(u, {
|
|
1831
1831
|
type: "openTag",
|
|
1832
1832
|
requestSource: "sidebar",
|
|
1833
1833
|
tagId: i.tagId,
|
|
1834
1834
|
node: i,
|
|
1835
1835
|
params: g
|
|
1836
1836
|
});
|
|
1837
|
-
return mt(
|
|
1837
|
+
return mt(M).treeNodes;
|
|
1838
1838
|
}, X = async (i) => {
|
|
1839
1839
|
if (i.loaded)
|
|
1840
1840
|
return i.children;
|
|
@@ -1849,7 +1849,7 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1849
1849
|
throw Oe("service.templateTree is required");
|
|
1850
1850
|
e.value = !0, a.value = null;
|
|
1851
1851
|
try {
|
|
1852
|
-
const u = await i(P()), g = mt(u),
|
|
1852
|
+
const u = await i(P()), g = mt(u), M = await Promise.all(
|
|
1853
1853
|
g.treeNodes.map(async (re) => {
|
|
1854
1854
|
const fe = await oe(re);
|
|
1855
1855
|
return {
|
|
@@ -1859,11 +1859,11 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1859
1859
|
};
|
|
1860
1860
|
})
|
|
1861
1861
|
);
|
|
1862
|
-
r.value =
|
|
1863
|
-
const R = v(
|
|
1862
|
+
r.value = M, d.value = null, m.value = {}, E.value = {}, f.value = [], y.value = {}, p.value = [];
|
|
1863
|
+
const R = v(M, t.initialActiveNodeKey) ?? v(M);
|
|
1864
1864
|
return l.value = R, s.value = {
|
|
1865
1865
|
...g,
|
|
1866
|
-
treeNodes:
|
|
1866
|
+
treeNodes: M,
|
|
1867
1867
|
activeNode: R,
|
|
1868
1868
|
sectionMap: m.value,
|
|
1869
1869
|
sections: w.value
|
|
@@ -1892,11 +1892,11 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1892
1892
|
(g) => g !== u
|
|
1893
1893
|
), Q(u, { editing: !1 }));
|
|
1894
1894
|
}, ae = (i, u, g) => {
|
|
1895
|
-
const
|
|
1895
|
+
const M = typeof u == "string" ? u : Fe(u);
|
|
1896
1896
|
h(i, (R) => {
|
|
1897
|
-
const fe = (typeof u == "string" ? R.fields.find((ue) => Fe(ue) ===
|
|
1897
|
+
const fe = (typeof u == "string" ? R.fields.find((ue) => Fe(ue) === M || ue.code === M) : u)?.cascadeClearFields ?? [], ne = {
|
|
1898
1898
|
...R.model,
|
|
1899
|
-
[
|
|
1899
|
+
[M]: g
|
|
1900
1900
|
};
|
|
1901
1901
|
return fe.forEach((ue) => {
|
|
1902
1902
|
ne[ue] = "";
|
|
@@ -1910,13 +1910,13 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1910
1910
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
1911
1911
|
fields: R.fields.map((ue) => {
|
|
1912
1912
|
const ke = Fe(ue);
|
|
1913
|
-
return ke ===
|
|
1913
|
+
return ke === M || ue.code === M ? { ...ue, value: g } : fe.includes(ke) || fe.includes(ue.code) ? { ...ue, value: "" } : ue;
|
|
1914
1914
|
})
|
|
1915
1915
|
};
|
|
1916
1916
|
});
|
|
1917
|
-
},
|
|
1918
|
-
const
|
|
1919
|
-
if (!
|
|
1917
|
+
}, Me = async (i, u, g = {}) => {
|
|
1918
|
+
const M = S(i);
|
|
1919
|
+
if (!M)
|
|
1920
1920
|
return [];
|
|
1921
1921
|
const {
|
|
1922
1922
|
fieldKey: R,
|
|
@@ -1924,13 +1924,13 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1924
1924
|
sourceModel: fe,
|
|
1925
1925
|
sourceRow: ne,
|
|
1926
1926
|
missingDependField: ue
|
|
1927
|
-
} =
|
|
1927
|
+
} = Mo(M, u, g), ke = re?.interface;
|
|
1928
1928
|
if (!re || !ke)
|
|
1929
1929
|
return re?.options ?? [];
|
|
1930
|
-
if (
|
|
1930
|
+
if (Eo(re))
|
|
1931
1931
|
return re.options ?? [];
|
|
1932
1932
|
if (ue)
|
|
1933
|
-
return h(
|
|
1933
|
+
return h(M, (Le) => ({
|
|
1934
1934
|
...Le,
|
|
1935
1935
|
fields: Le.fields.map(
|
|
1936
1936
|
($e) => Fe($e) === R || $e.code === R ? { ...$e, options: [] } : $e
|
|
@@ -1943,16 +1943,16 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1943
1943
|
{
|
|
1944
1944
|
type: "fieldOptions",
|
|
1945
1945
|
requestSource: "inner",
|
|
1946
|
-
tagId:
|
|
1947
|
-
node: _(
|
|
1948
|
-
section:
|
|
1946
|
+
tagId: M.requestTagId ?? M.tagId,
|
|
1947
|
+
node: _(M),
|
|
1948
|
+
section: M,
|
|
1949
1949
|
field: re,
|
|
1950
1950
|
params: we(ke.params),
|
|
1951
1951
|
model: fe,
|
|
1952
1952
|
row: ne
|
|
1953
1953
|
}
|
|
1954
1954
|
), ct = Vo(et);
|
|
1955
|
-
return h(
|
|
1955
|
+
return h(M, (Le) => ({
|
|
1956
1956
|
...Le,
|
|
1957
1957
|
fields: Le.fields.map(
|
|
1958
1958
|
($e) => Fe($e) === R || $e.code === R ? { ...$e, options: ct } : $e
|
|
@@ -1970,9 +1970,9 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
1970
1970
|
// 表单类型同步合并到第一行 rows。
|
|
1971
1971
|
rows: g.renderType === "form" ? [{ ...g.rows[0], ...u }] : g.rows,
|
|
1972
1972
|
// fields.value 也同步成 model 中的值。
|
|
1973
|
-
fields: g.fields.map((
|
|
1974
|
-
...
|
|
1975
|
-
value: u[Fe(
|
|
1973
|
+
fields: g.fields.map((M) => ({
|
|
1974
|
+
...M,
|
|
1975
|
+
value: u[Fe(M)]
|
|
1976
1976
|
}))
|
|
1977
1977
|
}));
|
|
1978
1978
|
}, De = (i, u) => {
|
|
@@ -2005,7 +2005,7 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
2005
2005
|
// 更新单字段。
|
|
2006
2006
|
updateField: ae,
|
|
2007
2007
|
// 加载字段动态选项。
|
|
2008
|
-
loadFieldOptions:
|
|
2008
|
+
loadFieldOptions: Me,
|
|
2009
2009
|
// 批量更新 model。
|
|
2010
2010
|
updateModel: Xe,
|
|
2011
2011
|
// 更新表格行。
|
|
@@ -2017,8 +2017,8 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
2017
2017
|
},
|
|
2018
2018
|
// 删除单行本地缓存。
|
|
2019
2019
|
deleteRow: (i, u) => {
|
|
2020
|
-
const g = S(i),
|
|
2021
|
-
(re, fe) => fe !==
|
|
2020
|
+
const g = S(i), M = typeof u == "string" ? Number(u) : u, R = (g?.rows ?? []).filter(
|
|
2021
|
+
(re, fe) => fe !== M
|
|
2022
2022
|
);
|
|
2023
2023
|
De(i, R);
|
|
2024
2024
|
},
|
|
@@ -2027,8 +2027,8 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
2027
2027
|
const u = T(i), g = S(i);
|
|
2028
2028
|
if (!g)
|
|
2029
2029
|
return null;
|
|
2030
|
-
const
|
|
2031
|
-
if (!
|
|
2030
|
+
const M = No(g);
|
|
2031
|
+
if (!M)
|
|
2032
2032
|
throw Oe("section.operationInfo.editInfoSet is required");
|
|
2033
2033
|
o.value = !0, a.value = null, u && u !== ye(g) && Q(u, { saving: !0, error: null }), Q(g, { saving: !0, error: null });
|
|
2034
2034
|
try {
|
|
@@ -2037,7 +2037,7 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
2037
2037
|
...re
|
|
2038
2038
|
} = q(l.value, g), fe = mo(g, re), ne = await c(
|
|
2039
2039
|
// 保存时保留后端给的 method/url,但不再把 editOperation.params 混入实际提交数据。
|
|
2040
|
-
|
|
2040
|
+
M,
|
|
2041
2041
|
{
|
|
2042
2042
|
type: "editInfoSet",
|
|
2043
2043
|
requestSource: "inner",
|
|
@@ -2086,7 +2086,7 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
2086
2086
|
// 给页面消费的操作集合。
|
|
2087
2087
|
actions: an
|
|
2088
2088
|
};
|
|
2089
|
-
},
|
|
2089
|
+
}, Ka = /* @__PURE__ */ ee({
|
|
2090
2090
|
name: "GlobalInfoProvider",
|
|
2091
2091
|
__name: "GlobalInfoProvider",
|
|
2092
2092
|
props: {
|
|
@@ -2100,18 +2100,18 @@ const Oe = (t) => new Error(`[GlobalInfo] ${t}`), Go = (t) => {
|
|
|
2100
2100
|
},
|
|
2101
2101
|
setup(t) {
|
|
2102
2102
|
const e = t, n = Go(e), { viewModel: o, nodes: a, sections: r, activeNode: s, activeSection: l, state: d, actions: m } = n;
|
|
2103
|
-
return (
|
|
2104
|
-
viewModel:
|
|
2105
|
-
nodes:
|
|
2106
|
-
sections:
|
|
2107
|
-
activeNode:
|
|
2108
|
-
activeSection:
|
|
2109
|
-
state:
|
|
2110
|
-
actions:
|
|
2103
|
+
return (E, f) => K(E.$slots, "default", he(_e({
|
|
2104
|
+
viewModel: U(o),
|
|
2105
|
+
nodes: U(a),
|
|
2106
|
+
sections: U(r),
|
|
2107
|
+
activeNode: U(s),
|
|
2108
|
+
activeSection: U(l),
|
|
2109
|
+
state: U(d),
|
|
2110
|
+
actions: U(m),
|
|
2111
2111
|
renderConfig: e.renderConfig
|
|
2112
2112
|
})));
|
|
2113
2113
|
}
|
|
2114
|
-
})
|
|
2114
|
+
});
|
|
2115
2115
|
function st(t) {
|
|
2116
2116
|
return St(t.type || t.fieldType || t.frontInputType) || St(t.renderType) || "text";
|
|
2117
2117
|
}
|
|
@@ -2138,15 +2138,15 @@ function Yt(t) {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
function Qt(t, e, n = "-") {
|
|
2140
2140
|
const o = it(t);
|
|
2141
|
-
return o === "empty" || Te(e) ? n : Yt(e) ? (console.error("[globalInfo] field value render failed", e), n) : o === "select" ?
|
|
2141
|
+
return o === "empty" || Te(e) ? n : Yt(e) ? (console.error("[globalInfo] field value render failed", e), n) : o === "select" ? Jo(t, e, n) : o === "switch" ? Xt(e) ? "是" : "否" : o === "file" ? Ho(e, n) : o === "multi-row" ? Uo(e, n) : String(e);
|
|
2142
2142
|
}
|
|
2143
2143
|
function Ze(t, e) {
|
|
2144
2144
|
return Array.isArray(e) ? e : Qe(t) ? typeof e == "string" ? e.split(",").map((n) => n.trim()).filter(Boolean) : Te(e) ? [] : [e] : [e];
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Ao(t, e) {
|
|
2147
2147
|
return Qe(t) ? Ze(t, e) : e;
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function Ko(t, e) {
|
|
2150
2150
|
return Qe(t) ? Array.isArray(e) ? e.map((n) => String(n ?? "").trim()).filter(Boolean).join(",") : e ?? "" : e;
|
|
2151
2151
|
}
|
|
2152
2152
|
function Xt(t) {
|
|
@@ -2156,8 +2156,8 @@ function Xt(t) {
|
|
|
2156
2156
|
return ["true", "1", "y", "yes", "t", "是"].includes(e);
|
|
2157
2157
|
}
|
|
2158
2158
|
function Ye(t, e, n, o = {}) {
|
|
2159
|
-
const a =
|
|
2160
|
-
return t.filter((r) => r.visible ? !
|
|
2159
|
+
const a = qo(o);
|
|
2160
|
+
return t.filter((r) => r.visible ? !zo(r, e, n, a, o.rows) : !1);
|
|
2161
2161
|
}
|
|
2162
2162
|
function ht(t) {
|
|
2163
2163
|
return en(t).some((n) => ["序号", "index", "idx", "seq", "seqno", "serial", "order", "rownum", "row_no"].includes(n));
|
|
@@ -2173,10 +2173,10 @@ function It(t) {
|
|
|
2173
2173
|
const e = String(t ?? "").toLowerCase();
|
|
2174
2174
|
return e === "upload" || e === "attachment" ? "file" : e === "radio" || e === "checkbox" ? "select" : e === "select" || e === "switch" || e === "file" || e === "html" || e === "code" || e === "multi-row" || e === "empty" ? e : e === "textarea" || e === "date" || e === "number" || e === "text" ? "text" : "";
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function qo(t) {
|
|
2177
2177
|
return t.rows?.length ? t.rows : [t.values ?? {}];
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function zo(t, e, n, o, a) {
|
|
2180
2180
|
const r = n?.hiddenRule;
|
|
2181
2181
|
return r ? o.some((s) => {
|
|
2182
2182
|
try {
|
|
@@ -2196,7 +2196,7 @@ function Do(t, e, n, o, a) {
|
|
|
2196
2196
|
}) : !1;
|
|
2197
2197
|
}
|
|
2198
2198
|
function en(t) {
|
|
2199
|
-
return
|
|
2199
|
+
return Do([
|
|
2200
2200
|
t.id,
|
|
2201
2201
|
t.key,
|
|
2202
2202
|
t.code,
|
|
@@ -2205,13 +2205,13 @@ function en(t) {
|
|
|
2205
2205
|
t.prop
|
|
2206
2206
|
]);
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return Array.from(new Set(t.map((e) =>
|
|
2208
|
+
function Do(t) {
|
|
2209
|
+
return Array.from(new Set(t.map((e) => xo(e)).filter(Boolean)));
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function xo(t) {
|
|
2212
2212
|
return String(t ?? "").trim().toLowerCase();
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function Jo(t, e, n) {
|
|
2215
2215
|
const o = Qe(t);
|
|
2216
2216
|
if (Array.isArray(e) || o) {
|
|
2217
2217
|
const a = Ze(t, e).map((s) => wt(t, s) || String(s ?? "").trim()).filter(Boolean), r = o ? "," : "、";
|
|
@@ -2225,7 +2225,7 @@ function Qe(t) {
|
|
|
2225
2225
|
function wt(t, e) {
|
|
2226
2226
|
return t.options?.find((o) => o.value === e || String(o.value) === String(e))?.label ?? "";
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function Ho(t, e) {
|
|
2229
2229
|
if (Array.isArray(t)) {
|
|
2230
2230
|
const n = t.map((o) => _t(o)).filter(Boolean);
|
|
2231
2231
|
return n.length > 0 ? n.join("、") : e;
|
|
@@ -2240,17 +2240,17 @@ function _t(t) {
|
|
|
2240
2240
|
}
|
|
2241
2241
|
return String(t ?? "").trim();
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function Uo(t, e) {
|
|
2244
2244
|
return Array.isArray(t) ? t.map((o) => Yt(o) ? (console.error("[globalInfo] multi-row field item render failed", o), "") : Te(o) ? "" : o && typeof o == "object" ? JSON.stringify(o) : String(o).trim()).filter(Boolean).join(`
|
|
2245
2245
|
`) || e : String(t).trim() || e;
|
|
2246
2246
|
}
|
|
2247
|
-
const
|
|
2247
|
+
const Wo = ["disabled", "accept", "multiple"], Zo = {
|
|
2248
2248
|
key: 0,
|
|
2249
2249
|
class: "global-info-field-control__file-text"
|
|
2250
|
-
},
|
|
2250
|
+
}, Yo = {
|
|
2251
2251
|
key: 1,
|
|
2252
2252
|
class: "global-info-field-control__file-upload"
|
|
2253
|
-
},
|
|
2253
|
+
}, Qo = /* @__PURE__ */ ee({
|
|
2254
2254
|
name: "GlobalInfoFieldControl",
|
|
2255
2255
|
__name: "GlobalInfoFieldControl",
|
|
2256
2256
|
props: {
|
|
@@ -2264,7 +2264,7 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2264
2264
|
if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
|
|
2265
2265
|
const v = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
2266
2266
|
return Number.isFinite(v) ? v : void 0;
|
|
2267
|
-
}), m = I(() =>
|
|
2267
|
+
}), m = I(() => Ao(n.field, n.modelValue)), E = I(() => {
|
|
2268
2268
|
const v = n.field.props?.activeValue ?? n.field.props?.["active-value"], T = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
2269
2269
|
return v !== void 0 || T !== void 0 ? n.modelValue ?? T ?? !1 : Xt(n.modelValue);
|
|
2270
2270
|
}), f = I(() => r.value === "code" ? 5 : 3), y = I(() => r.value === "file" && !Te(n.modelValue)), p = I(() => Qt(n.field, n.modelValue, "请选择文件")), w = I(() => n.field.placeholder ? n.field.placeholder : r.value === "select" ? "请选择" : r.value === "date" ? "请选择日期" : r.value === "file" ? "请选择文件" : "请输入");
|
|
@@ -2275,7 +2275,7 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2275
2275
|
o("change", F(v));
|
|
2276
2276
|
}
|
|
2277
2277
|
function F(v) {
|
|
2278
|
-
return r.value === "select" ?
|
|
2278
|
+
return r.value === "select" ? Ko(n.field, v) : v;
|
|
2279
2279
|
}
|
|
2280
2280
|
function q(v) {
|
|
2281
2281
|
v && o("loadOptions");
|
|
@@ -2285,8 +2285,8 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2285
2285
|
C(B), P(B);
|
|
2286
2286
|
}
|
|
2287
2287
|
return (v, T) => {
|
|
2288
|
-
const S =
|
|
2289
|
-
return r.value === "select" ? (b(), V(B,
|
|
2288
|
+
const S = Et, B = Mt, k = Bt, _ = yn, H = hn, me = Ft;
|
|
2289
|
+
return r.value === "select" ? (b(), V(B, J({
|
|
2290
2290
|
key: 0,
|
|
2291
2291
|
class: "global-info-field-control"
|
|
2292
2292
|
}, v.field.props, {
|
|
@@ -2306,7 +2306,7 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2306
2306
|
}, null, 8, ["label", "value"]))), 128))
|
|
2307
2307
|
]),
|
|
2308
2308
|
_: 1
|
|
2309
|
-
}, 16, ["model-value", "placeholder", "disabled"])) : r.value === "date" ? (b(), V(k,
|
|
2309
|
+
}, 16, ["model-value", "placeholder", "disabled"])) : r.value === "date" ? (b(), V(k, J({
|
|
2310
2310
|
key: 1,
|
|
2311
2311
|
class: "global-info-field-control"
|
|
2312
2312
|
}, v.field.props, {
|
|
@@ -2317,7 +2317,7 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2317
2317
|
"value-format": "YYYY-MM-DD",
|
|
2318
2318
|
"onUpdate:modelValue": C,
|
|
2319
2319
|
onChange: P
|
|
2320
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "number" ? (b(), V(_,
|
|
2320
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "number" ? (b(), V(_, J({
|
|
2321
2321
|
key: 2,
|
|
2322
2322
|
class: "global-info-field-control"
|
|
2323
2323
|
}, v.field.props, {
|
|
@@ -2327,11 +2327,11 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2327
2327
|
"controls-position": "right",
|
|
2328
2328
|
"onUpdate:modelValue": C,
|
|
2329
2329
|
onChange: P
|
|
2330
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "switch" ? (b(), V(
|
|
2330
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "switch" ? (b(), V(H, J({
|
|
2331
2331
|
key: 3,
|
|
2332
2332
|
class: "global-info-field-control global-info-field-control--switch"
|
|
2333
2333
|
}, v.field.props, {
|
|
2334
|
-
"model-value":
|
|
2334
|
+
"model-value": E.value,
|
|
2335
2335
|
disabled: s.value,
|
|
2336
2336
|
"onUpdate:modelValue": C,
|
|
2337
2337
|
onChange: P
|
|
@@ -2350,15 +2350,15 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2350
2350
|
accept: String(v.field.props?.accept ?? ""),
|
|
2351
2351
|
multiple: !!v.field.props?.multiple,
|
|
2352
2352
|
onChange: c
|
|
2353
|
-
}, null, 40,
|
|
2354
|
-
y.value ? (b(), G("span",
|
|
2353
|
+
}, null, 40, Wo),
|
|
2354
|
+
y.value ? (b(), G("span", Zo, se(p.value), 1)) : (b(), G("span", Yo, "上 传"))
|
|
2355
2355
|
], 2)) : r.value === "empty" ? (b(), V(me, {
|
|
2356
2356
|
key: 5,
|
|
2357
2357
|
class: "global-info-field-control",
|
|
2358
2358
|
"model-value": "",
|
|
2359
2359
|
disabled: "",
|
|
2360
2360
|
placeholder: "-"
|
|
2361
|
-
})) : (b(), V(me,
|
|
2361
|
+
})) : (b(), V(me, J({
|
|
2362
2362
|
key: 6,
|
|
2363
2363
|
class: ["global-info-field-control", { "global-info-field-control--code": r.value === "code" }]
|
|
2364
2364
|
}, v.field.props, {
|
|
@@ -2372,10 +2372,10 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2372
2372
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows"]));
|
|
2373
2373
|
};
|
|
2374
2374
|
}
|
|
2375
|
-
}), tn = /* @__PURE__ */ ie(
|
|
2375
|
+
}), tn = /* @__PURE__ */ ie(Qo, [["__scopeId", "data-v-cc5c8aa9"]]), Xo = ["innerHTML"], ea = {
|
|
2376
2376
|
key: 1,
|
|
2377
2377
|
class: "global-info-field-value global-info-field-value--code"
|
|
2378
|
-
},
|
|
2378
|
+
}, ta = /* @__PURE__ */ ee({
|
|
2379
2379
|
name: "GlobalInfoFieldValue",
|
|
2380
2380
|
__name: "GlobalInfoFieldValue",
|
|
2381
2381
|
props: {
|
|
@@ -2389,7 +2389,7 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2389
2389
|
key: 0,
|
|
2390
2390
|
class: "global-info-field-value global-info-field-value--html",
|
|
2391
2391
|
innerHTML: a.value
|
|
2392
|
-
}, null, 8,
|
|
2392
|
+
}, null, 8, Xo)) : n.value === "code" && !o.value ? (b(), G("pre", ea, se(a.value), 1)) : (b(), G("span", {
|
|
2393
2393
|
key: 2,
|
|
2394
2394
|
class: Ge(["global-info-field-value", {
|
|
2395
2395
|
"global-info-field-value--multi-row": n.value === "multi-row",
|
|
@@ -2397,7 +2397,7 @@ const Zo = ["disabled", "accept", "multiple"], Yo = {
|
|
|
2397
2397
|
}])
|
|
2398
2398
|
}, se(a.value), 3));
|
|
2399
2399
|
}
|
|
2400
|
-
}), nn = /* @__PURE__ */ ie(
|
|
2400
|
+
}), nn = /* @__PURE__ */ ie(ta, [["__scopeId", "data-v-08b37e58"]]);
|
|
2401
2401
|
function He(t) {
|
|
2402
2402
|
return st(t) === "select" && !!t.interface;
|
|
2403
2403
|
}
|
|
@@ -2408,10 +2408,10 @@ function Ue(t, e, n = {}, o = "") {
|
|
|
2408
2408
|
function on(t, e, n) {
|
|
2409
2409
|
return Array.isArray(t.options) && t.options.length > 0 ? e === n ? !0 : !e && (t.cascadeDependFields ?? []).length === 0 : !1;
|
|
2410
2410
|
}
|
|
2411
|
-
const
|
|
2411
|
+
const na = { class: "global-info-form-renderer__label" }, oa = {
|
|
2412
2412
|
key: 0,
|
|
2413
2413
|
class: "global-info-form-renderer__required"
|
|
2414
|
-
},
|
|
2414
|
+
}, aa = /* @__PURE__ */ ee({
|
|
2415
2415
|
name: "GlobalInfoFormRenderer",
|
|
2416
2416
|
__name: "GlobalInfoFormRenderer",
|
|
2417
2417
|
props: {
|
|
@@ -2450,7 +2450,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2450
2450
|
node: e.node,
|
|
2451
2451
|
activeNode: e.node,
|
|
2452
2452
|
sections: m(),
|
|
2453
|
-
sectionValues:
|
|
2453
|
+
sectionValues: E(e.section, T),
|
|
2454
2454
|
actions: e.actions,
|
|
2455
2455
|
selectedOption: B[0],
|
|
2456
2456
|
selectedOptions: B
|
|
@@ -2469,7 +2469,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2469
2469
|
function m() {
|
|
2470
2470
|
return Object.values(e.state.sectionMap);
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function E(c, v) {
|
|
2473
2473
|
const S = m().flatMap((B) => {
|
|
2474
2474
|
const k = B.key === c.key ? v : B.renderType === "table" ? B.rows : B.model;
|
|
2475
2475
|
return [B.key, B.id, B.setId, B.infSetId, B.code].filter(Boolean).map((_) => [String(_), k]);
|
|
@@ -2560,18 +2560,18 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2560
2560
|
span: C(_)
|
|
2561
2561
|
}, {
|
|
2562
2562
|
default: L(() => [
|
|
2563
|
-
pe(T,
|
|
2563
|
+
pe(T, J({
|
|
2564
2564
|
prop: _.code,
|
|
2565
2565
|
ref_for: !0
|
|
2566
2566
|
}, _.formItemProps), {
|
|
2567
2567
|
label: L(() => [
|
|
2568
|
-
D("span",
|
|
2569
|
-
q(_) ? (b(), G("span",
|
|
2568
|
+
D("span", na, [
|
|
2569
|
+
q(_) ? (b(), G("span", oa, "*")) : te("", !0),
|
|
2570
2570
|
Re(" " + se(_.label), 1)
|
|
2571
2571
|
])
|
|
2572
2572
|
]),
|
|
2573
2573
|
default: L(() => [
|
|
2574
|
-
w(_) ? K(c.$slots, w(_),
|
|
2574
|
+
w(_) ? K(c.$slots, w(_), J({
|
|
2575
2575
|
key: 0,
|
|
2576
2576
|
ref_for: !0
|
|
2577
2577
|
}, p(_)), void 0, !0) : c.editing && !_.readonly ? (b(), V(tn, {
|
|
@@ -2580,7 +2580,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2580
2580
|
"model-value": o.value[_.code],
|
|
2581
2581
|
section: c.section,
|
|
2582
2582
|
onLoadOptions: () => f(_),
|
|
2583
|
-
"onUpdate:modelValue": (
|
|
2583
|
+
"onUpdate:modelValue": (H) => s(_, H)
|
|
2584
2584
|
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (b(), V(nn, {
|
|
2585
2585
|
key: 2,
|
|
2586
2586
|
field: _,
|
|
@@ -2601,7 +2601,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2601
2601
|
}, 8, ["model"]);
|
|
2602
2602
|
};
|
|
2603
2603
|
}
|
|
2604
|
-
}),
|
|
2604
|
+
}), ra = /* @__PURE__ */ ie(aa, [["__scopeId", "data-v-b049423d"]]), la = /* @__PURE__ */ ee({
|
|
2605
2605
|
name: "GlobalInfoDeleteConfirm",
|
|
2606
2606
|
__name: "GlobalInfoDeleteConfirm",
|
|
2607
2607
|
props: {
|
|
@@ -2629,10 +2629,10 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2629
2629
|
}, 8, ["title", "confirm-button-text", "cancel-button-text"]);
|
|
2630
2630
|
};
|
|
2631
2631
|
}
|
|
2632
|
-
}),
|
|
2632
|
+
}), sa = { class: "global-info-table-renderer__table-scroll" }, ia = { class: "global-info-table-renderer__header" }, ca = {
|
|
2633
2633
|
key: 0,
|
|
2634
2634
|
class: "global-info-table-renderer__required"
|
|
2635
|
-
},
|
|
2635
|
+
}, ua = /* @__PURE__ */ ee({
|
|
2636
2636
|
name: "GlobalInfoTableRenderer",
|
|
2637
2637
|
__name: "GlobalInfoTableRenderer",
|
|
2638
2638
|
props: {
|
|
@@ -2656,9 +2656,9 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2656
2656
|
e.renderConfig,
|
|
2657
2657
|
{ rows: e.section.rows, values: e.section.model }
|
|
2658
2658
|
);
|
|
2659
|
-
return a.value ? h.filter((N) => !
|
|
2659
|
+
return a.value ? h.filter((N) => !H(N)) : h;
|
|
2660
2660
|
}), m = /* @__PURE__ */ new Map();
|
|
2661
|
-
function
|
|
2661
|
+
function E(h) {
|
|
2662
2662
|
e.actions.deleteRow(e.section, h);
|
|
2663
2663
|
}
|
|
2664
2664
|
function f(h, N, O, z) {
|
|
@@ -2779,7 +2779,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2779
2779
|
function _(h) {
|
|
2780
2780
|
return l.value + h;
|
|
2781
2781
|
}
|
|
2782
|
-
function
|
|
2782
|
+
function H(h) {
|
|
2783
2783
|
return bt(h);
|
|
2784
2784
|
}
|
|
2785
2785
|
let me = 0;
|
|
@@ -2817,7 +2817,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2817
2817
|
return b(), G("div", {
|
|
2818
2818
|
class: Ge(["global-info-table-renderer", { "global-info-table-renderer--editing": h.editing }])
|
|
2819
2819
|
}, [
|
|
2820
|
-
D("div",
|
|
2820
|
+
D("div", sa, [
|
|
2821
2821
|
pe(X, {
|
|
2822
2822
|
class: "global-info-table-renderer__table",
|
|
2823
2823
|
data: h.section.rows,
|
|
@@ -2841,13 +2841,13 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2841
2841
|
"min-width": B(x)
|
|
2842
2842
|
}, {
|
|
2843
2843
|
header: L(() => [
|
|
2844
|
-
D("span",
|
|
2845
|
-
Pe(x) ? (b(), G("span",
|
|
2844
|
+
D("span", ia, [
|
|
2845
|
+
Pe(x) ? (b(), G("span", ca, "*")) : te("", !0),
|
|
2846
2846
|
D("span", null, se(x.label), 1)
|
|
2847
2847
|
])
|
|
2848
2848
|
]),
|
|
2849
2849
|
default: L(({ row: ce, $index: Ie }) => [
|
|
2850
|
-
c(x) ? K(h.$slots, c(x),
|
|
2850
|
+
c(x) ? K(h.$slots, c(x), J({
|
|
2851
2851
|
key: 0,
|
|
2852
2852
|
ref_for: !0
|
|
2853
2853
|
}, q(x, ce, Ie)), void 0, !0) : h.editing && v(x) ? (b(), V(tn, {
|
|
@@ -2877,9 +2877,9 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2877
2877
|
fixed: "right"
|
|
2878
2878
|
}, {
|
|
2879
2879
|
default: L(({ $index: x }) => [
|
|
2880
|
-
h.showDelete ? (b(), V(
|
|
2880
|
+
h.showDelete ? (b(), V(la, {
|
|
2881
2881
|
key: 0,
|
|
2882
|
-
onConfirm: (ce) =>
|
|
2882
|
+
onConfirm: (ce) => E(x)
|
|
2883
2883
|
}, {
|
|
2884
2884
|
default: L(() => [
|
|
2885
2885
|
pe(oe, {
|
|
@@ -2911,7 +2911,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2911
2911
|
], 2);
|
|
2912
2912
|
};
|
|
2913
2913
|
}
|
|
2914
|
-
}),
|
|
2914
|
+
}), da = /* @__PURE__ */ ie(ua, [["__scopeId", "data-v-5a2ec852"]]), fa = /* @__PURE__ */ ee({
|
|
2915
2915
|
name: "GlobalInfoAutoRenderer",
|
|
2916
2916
|
__name: "GlobalInfoAutoRenderer",
|
|
2917
2917
|
props: {
|
|
@@ -2923,7 +2923,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2923
2923
|
renderConfig: {}
|
|
2924
2924
|
},
|
|
2925
2925
|
setup(t) {
|
|
2926
|
-
return (e, n) => e.section.renderType === "table" ? (b(), V(
|
|
2926
|
+
return (e, n) => e.section.renderType === "table" ? (b(), V(da, {
|
|
2927
2927
|
key: 0,
|
|
2928
2928
|
section: e.section,
|
|
2929
2929
|
node: e.node,
|
|
@@ -2931,7 +2931,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2931
2931
|
state: e.state,
|
|
2932
2932
|
actions: e.actions,
|
|
2933
2933
|
"render-config": e.renderConfig
|
|
2934
|
-
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (b(), V(
|
|
2934
|
+
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (b(), V(ra, {
|
|
2935
2935
|
key: 1,
|
|
2936
2936
|
section: e.section,
|
|
2937
2937
|
node: e.node,
|
|
@@ -2941,7 +2941,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2941
2941
|
"render-config": e.renderConfig
|
|
2942
2942
|
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
2943
2943
|
}
|
|
2944
|
-
}),
|
|
2944
|
+
}), pa = /* @__PURE__ */ ee({
|
|
2945
2945
|
name: "GlobalInfoSectionOutlet",
|
|
2946
2946
|
__name: "GlobalInfoSectionOutlet",
|
|
2947
2947
|
props: {
|
|
@@ -2962,21 +2962,21 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2962
2962
|
rows: e.section.renderType === "table" ? e.section.rows : void 0
|
|
2963
2963
|
}
|
|
2964
2964
|
)), a = I(() => e.editing ?? e.actions.isEditing(e.section)), r = I(() => e.section.renderType === "table" && e.section.rows.length === 0 || o.value.length === 0), s = I(() => {
|
|
2965
|
-
const m = l(e.section.id || e.section.key),
|
|
2965
|
+
const m = l(e.section.id || e.section.key), E = d(e.section.renderType);
|
|
2966
2966
|
return [
|
|
2967
2967
|
m,
|
|
2968
|
-
|
|
2968
|
+
E,
|
|
2969
2969
|
"default"
|
|
2970
2970
|
].find((f) => !!(f && n[f])) ?? "";
|
|
2971
2971
|
});
|
|
2972
2972
|
function l(m) {
|
|
2973
|
-
const
|
|
2974
|
-
return
|
|
2973
|
+
const E = String(m ?? "").trim();
|
|
2974
|
+
return E ? `section-${E}` : "";
|
|
2975
2975
|
}
|
|
2976
2976
|
function d(m) {
|
|
2977
2977
|
return m === "form" || m === "table" ? m : "";
|
|
2978
2978
|
}
|
|
2979
|
-
return (m,
|
|
2979
|
+
return (m, E) => s.value ? K(m.$slots, s.value, {
|
|
2980
2980
|
key: 0,
|
|
2981
2981
|
section: m.section,
|
|
2982
2982
|
sectionView: m.section,
|
|
@@ -2988,7 +2988,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2988
2988
|
renderConfig: m.renderConfig,
|
|
2989
2989
|
state: m.state,
|
|
2990
2990
|
actions: m.actions
|
|
2991
|
-
}) : (b(), V(
|
|
2991
|
+
}) : (b(), V(fa, {
|
|
2992
2992
|
key: 1,
|
|
2993
2993
|
section: m.section,
|
|
2994
2994
|
node: m.node,
|
|
@@ -2998,7 +2998,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
2998
2998
|
"render-config": m.renderConfig
|
|
2999
2999
|
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
3000
3000
|
}
|
|
3001
|
-
}),
|
|
3001
|
+
}), ma = ee({
|
|
3002
3002
|
name: "GlobalInfoSlotErrorBoundary",
|
|
3003
3003
|
props: {
|
|
3004
3004
|
boundaryKey: {
|
|
@@ -3034,13 +3034,13 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
};
|
|
3036
3036
|
}
|
|
3037
|
-
}),
|
|
3037
|
+
}), va = { class: "global-info-section-block" }, ga = {
|
|
3038
3038
|
key: 0,
|
|
3039
3039
|
class: "global-info-section-block__header"
|
|
3040
|
-
},
|
|
3040
|
+
}, ya = { class: "global-info-section-block__title-wrap" }, ha = { class: "global-info-section-block__title" }, ba = {
|
|
3041
3041
|
key: 0,
|
|
3042
3042
|
class: "global-info-section-block__actions"
|
|
3043
|
-
},
|
|
3043
|
+
}, Sa = { class: "global-info-section-block__body" }, Ia = /* @__PURE__ */ ee({
|
|
3044
3044
|
name: "GlobalInfoSectionBlock",
|
|
3045
3045
|
__name: "GlobalInfoSectionBlock",
|
|
3046
3046
|
props: {
|
|
@@ -3060,7 +3060,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3060
3060
|
values: k.model,
|
|
3061
3061
|
rows: k.renderType === "table" ? k.rows : void 0
|
|
3062
3062
|
}) : [];
|
|
3063
|
-
}),
|
|
3063
|
+
}), E = I(() => d.value?.title || e.node.tagName || e.node.label || "-"), f = I(() => !!(d.value && e.actions.isEditing(d.value))), y = I(() => d.value?.renderType === "table"), p = I(() => o.value || l.value.loading), w = I(() => F(a.value || l.value.error)), C = I(() => {
|
|
3064
3064
|
const k = d.value;
|
|
3065
3065
|
return k ? k.renderType === "table" && k.rows.length === 0 || m.value.length === 0 : !0;
|
|
3066
3066
|
}), P = I(() => ({
|
|
@@ -3069,7 +3069,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3069
3069
|
sectionView: d.value,
|
|
3070
3070
|
fields: m.value,
|
|
3071
3071
|
renderConfig: e.renderConfig,
|
|
3072
|
-
title:
|
|
3072
|
+
title: E.value,
|
|
3073
3073
|
editing: f.value,
|
|
3074
3074
|
loading: p.value,
|
|
3075
3075
|
error: a.value || l.value.error,
|
|
@@ -3099,7 +3099,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3099
3099
|
function v() {
|
|
3100
3100
|
const k = d.value;
|
|
3101
3101
|
if (!k) return;
|
|
3102
|
-
const _ = k.fields.reduce((
|
|
3102
|
+
const _ = k.fields.reduce((H, me) => (H[me.code] = me.value ?? "", H), { __rowKey: `new-${Date.now()}` });
|
|
3103
3103
|
e.actions.saveRow(k, _, -1);
|
|
3104
3104
|
}
|
|
3105
3105
|
async function T() {
|
|
@@ -3136,18 +3136,18 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3136
3136
|
B();
|
|
3137
3137
|
}
|
|
3138
3138
|
), (k, _) => {
|
|
3139
|
-
const
|
|
3140
|
-
return b(), G("section",
|
|
3141
|
-
s.value ? te("", !0) : (b(), G("header",
|
|
3139
|
+
const H = lt;
|
|
3140
|
+
return b(), G("section", va, [
|
|
3141
|
+
s.value ? te("", !0) : (b(), G("header", ga, [
|
|
3142
3142
|
K(k.$slots, "header", he(_e(P.value)), () => [
|
|
3143
|
-
D("div",
|
|
3143
|
+
D("div", ya, [
|
|
3144
3144
|
_[0] || (_[0] = D("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
3145
|
-
D("h3",
|
|
3145
|
+
D("h3", ha, se(E.value), 1)
|
|
3146
3146
|
]),
|
|
3147
3147
|
K(k.$slots, "actions", he(_e(P.value)), () => [
|
|
3148
|
-
d.value ? (b(), G("div",
|
|
3148
|
+
d.value ? (b(), G("div", ba, [
|
|
3149
3149
|
f.value ? (b(), G(Se, { key: 1 }, [
|
|
3150
|
-
pe(
|
|
3150
|
+
pe(H, {
|
|
3151
3151
|
class: "global-info-section-block__cancel",
|
|
3152
3152
|
disabled: l.value.saving,
|
|
3153
3153
|
onClick: c
|
|
@@ -3157,7 +3157,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3157
3157
|
])),
|
|
3158
3158
|
_: 1
|
|
3159
3159
|
}, 8, ["disabled"]),
|
|
3160
|
-
y.value ? (b(), V(
|
|
3160
|
+
y.value ? (b(), V(H, {
|
|
3161
3161
|
key: 0,
|
|
3162
3162
|
class: "global-info-section-block__add",
|
|
3163
3163
|
disabled: l.value.saving,
|
|
@@ -3168,7 +3168,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3168
3168
|
])),
|
|
3169
3169
|
_: 1
|
|
3170
3170
|
}, 8, ["disabled"])) : te("", !0),
|
|
3171
|
-
pe(
|
|
3171
|
+
pe(H, {
|
|
3172
3172
|
class: "global-info-section-block__confirm",
|
|
3173
3173
|
loading: l.value.saving,
|
|
3174
3174
|
onClick: T
|
|
@@ -3178,35 +3178,41 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3178
3178
|
]),
|
|
3179
3179
|
_: 1
|
|
3180
3180
|
}, 8, ["loading"])
|
|
3181
|
-
], 64)) : (b(), V(
|
|
3181
|
+
], 64)) : (b(), V(H, {
|
|
3182
3182
|
key: 0,
|
|
3183
3183
|
class: "global-info-section-block__edit",
|
|
3184
3184
|
disabled: l.value.saving || p.value,
|
|
3185
3185
|
onClick: q
|
|
3186
3186
|
}, {
|
|
3187
|
-
default: L(() => [
|
|
3188
|
-
D("
|
|
3187
|
+
default: L(() => _[1] || (_[1] = [
|
|
3188
|
+
D("svg", {
|
|
3189
3189
|
class: "global-info-section-block__edit-icon",
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3190
|
+
viewBox: "0 0 12 12",
|
|
3191
|
+
"aria-hidden": "true",
|
|
3192
|
+
focusable: "false"
|
|
3193
|
+
}, [
|
|
3194
|
+
D("path", {
|
|
3195
|
+
d: "M0.437665 12C0.316763 11.9845 0.205604 11.9251 0.125029 11.8329C0.0444551 11.7407 0 11.622 0 11.499C0 11.3761 0.0444551 11.2574 0.125029 11.1652C0.205604 11.0729 0.316763 11.0135 0.437665 10.998H11.5623C11.6832 11.0135 11.7944 11.0729 11.875 11.1652C11.9555 11.2574 12 11.3761 12 11.499C12 11.622 11.9555 11.7407 11.875 11.8329C11.7944 11.9251 11.6832 11.9845 11.5623 12H0.437665ZM9.59963 0.233088L10.72 1.36329C10.868 1.51347 10.9511 1.71663 10.9511 1.92839C10.9511 2.14015 10.868 2.34331 10.72 2.49349L3.61614 9.6354C3.54189 9.70969 3.45384 9.76846 3.35702 9.80835C3.26021 9.84824 3.15654 9.86846 3.05196 9.86785H1.57397C1.4686 9.86785 1.36754 9.82562 1.29303 9.75046C1.21852 9.6753 1.17666 9.57336 1.17666 9.46707V7.93609C1.17606 7.8306 1.1961 7.72602 1.23564 7.62836C1.27519 7.5307 1.33345 7.44188 1.4071 7.36698L8.47921 0.233088C8.62809 0.0837965 8.82949 0 9.03942 0C9.24935 0 9.45074 0.0837965 9.59963 0.233088ZM2.16993 8.01624V8.8659H3.01223L9.88569 1.9324L9.04339 1.07473L2.16993 8.01624Z",
|
|
3196
|
+
fill: "currentColor"
|
|
3197
|
+
})
|
|
3198
|
+
], -1),
|
|
3199
|
+
D("span", null, "编辑", -1)
|
|
3200
|
+
])),
|
|
3195
3201
|
_: 1
|
|
3196
3202
|
}, 8, ["disabled"]))
|
|
3197
3203
|
])) : te("", !0)
|
|
3198
3204
|
], !0)
|
|
3199
3205
|
], !0)
|
|
3200
3206
|
])),
|
|
3201
|
-
D("div",
|
|
3202
|
-
p.value ? K(k.$slots, "loading", he(
|
|
3207
|
+
D("div", Sa, [
|
|
3208
|
+
p.value ? K(k.$slots, "loading", he(J({ key: 0 }, P.value)), () => [
|
|
3203
3209
|
_[4] || (_[4] = D("div", { class: "global-info-section-block__status" }, "加载中...", -1))
|
|
3204
|
-
], !0) : !d.value || C.value ? K(k.$slots, "empty", he(
|
|
3210
|
+
], !0) : !d.value || C.value ? K(k.$slots, "empty", he(J({ key: 1 }, P.value)), () => [
|
|
3205
3211
|
_[5] || (_[5] = D("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
|
|
3206
|
-
], !0) : (b(), V(
|
|
3212
|
+
], !0) : (b(), V(ma, {
|
|
3207
3213
|
key: 2,
|
|
3208
3214
|
"boundary-key": k.node.key,
|
|
3209
|
-
label:
|
|
3215
|
+
label: E.value,
|
|
3210
3216
|
onError: S
|
|
3211
3217
|
}, {
|
|
3212
3218
|
fallback: L(() => [
|
|
@@ -3215,15 +3221,15 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3215
3221
|
], !0)
|
|
3216
3222
|
]),
|
|
3217
3223
|
default: L(() => [
|
|
3218
|
-
pe(
|
|
3224
|
+
pe(pa, {
|
|
3219
3225
|
section: d.value,
|
|
3220
3226
|
node: k.node,
|
|
3221
3227
|
editing: f.value,
|
|
3222
3228
|
state: k.state,
|
|
3223
3229
|
actions: k.actions,
|
|
3224
3230
|
"render-config": k.renderConfig
|
|
3225
|
-
},
|
|
3226
|
-
de(
|
|
3231
|
+
}, Ee({ _: 2 }, [
|
|
3232
|
+
de(U(n), (me, Q) => ({
|
|
3227
3233
|
name: Q,
|
|
3228
3234
|
fn: L((ge) => [
|
|
3229
3235
|
K(k.$slots, Q, he(_e({ ...P.value, ...ge })), void 0, !0)
|
|
@@ -3237,7 +3243,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3237
3243
|
]);
|
|
3238
3244
|
};
|
|
3239
3245
|
}
|
|
3240
|
-
}),
|
|
3246
|
+
}), wa = /* @__PURE__ */ ie(Ia, [["__scopeId", "data-v-77980d16"]]), _a = { class: "global-info-group" }, Ca = { class: "global-info-group__header" }, ka = { class: "global-info-group__title" }, $a = { class: "global-info-group__body" }, Ta = ["id"], Ba = /* @__PURE__ */ ee({
|
|
3241
3247
|
name: "GlobalInfoGroup",
|
|
3242
3248
|
__name: "GlobalInfoGroup",
|
|
3243
3249
|
props: {
|
|
@@ -3286,10 +3292,10 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3286
3292
|
function m(f, y) {
|
|
3287
3293
|
return f.key || f.id || f.infSetId || f.tagId || `${y}`;
|
|
3288
3294
|
}
|
|
3289
|
-
function
|
|
3295
|
+
function E(f) {
|
|
3290
3296
|
return `global-info-section-${m(f, 0)}`;
|
|
3291
3297
|
}
|
|
3292
|
-
return (f, y) => (b(), G("section",
|
|
3298
|
+
return (f, y) => (b(), G("section", _a, [
|
|
3293
3299
|
K(f.$slots, "header", {
|
|
3294
3300
|
group: f.group,
|
|
3295
3301
|
children: f.children,
|
|
@@ -3300,13 +3306,13 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3300
3306
|
index: f.index,
|
|
3301
3307
|
isEmpty: f.children.length === 0
|
|
3302
3308
|
}, () => [
|
|
3303
|
-
D("header",
|
|
3309
|
+
D("header", Ca, [
|
|
3304
3310
|
y[0] || (y[0] = D("span", { class: "global-info-group__marker" }, null, -1)),
|
|
3305
|
-
D("h2",
|
|
3311
|
+
D("h2", ka, se(o.value), 1)
|
|
3306
3312
|
])
|
|
3307
3313
|
], !0),
|
|
3308
|
-
D("div",
|
|
3309
|
-
|
|
3314
|
+
D("div", $a, [
|
|
3315
|
+
U(n).default ? K(f.$slots, "default", {
|
|
3310
3316
|
key: 0,
|
|
3311
3317
|
group: f.group,
|
|
3312
3318
|
children: f.children,
|
|
@@ -3317,32 +3323,32 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3317
3323
|
isEmpty: f.children.length === 0
|
|
3318
3324
|
}, void 0, !0) : (b(), G(Se, { key: 1 }, [
|
|
3319
3325
|
(b(!0), G(Se, null, de(f.children, (p, w) => (b(), G("div", {
|
|
3320
|
-
id:
|
|
3326
|
+
id: E(p),
|
|
3321
3327
|
key: m(p, w),
|
|
3322
3328
|
class: "global-info-group__section"
|
|
3323
3329
|
}, [
|
|
3324
|
-
s(p) ? K(f.$slots, s(p),
|
|
3330
|
+
s(p) ? K(f.$slots, s(p), J({
|
|
3325
3331
|
key: 0,
|
|
3326
3332
|
ref_for: !0
|
|
3327
|
-
}, r(p, w)), void 0, !0) :
|
|
3333
|
+
}, r(p, w)), void 0, !0) : U(n).section ? K(f.$slots, "section", J({
|
|
3328
3334
|
key: 1,
|
|
3329
3335
|
ref_for: !0
|
|
3330
|
-
}, r(p, w)), void 0, !0) : (b(), V(
|
|
3336
|
+
}, r(p, w)), void 0, !0) : (b(), V(wa, {
|
|
3331
3337
|
key: 2,
|
|
3332
3338
|
node: p,
|
|
3333
3339
|
state: f.state,
|
|
3334
3340
|
actions: f.actions,
|
|
3335
3341
|
"hide-header": a.value,
|
|
3336
3342
|
"render-config": f.renderConfig
|
|
3337
|
-
},
|
|
3338
|
-
de(
|
|
3343
|
+
}, Ee({ _: 2 }, [
|
|
3344
|
+
de(U(n), (C, P) => ({
|
|
3339
3345
|
name: P,
|
|
3340
3346
|
fn: L((F) => [
|
|
3341
|
-
K(f.$slots, P,
|
|
3347
|
+
K(f.$slots, P, J({ ref_for: !0 }, F), void 0, !0)
|
|
3342
3348
|
])
|
|
3343
3349
|
}))
|
|
3344
3350
|
]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
|
|
3345
|
-
], 8,
|
|
3351
|
+
], 8, Ta))), 128)),
|
|
3346
3352
|
f.children.length === 0 ? K(f.$slots, "empty", {
|
|
3347
3353
|
key: 0,
|
|
3348
3354
|
node: null,
|
|
@@ -3359,7 +3365,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3359
3365
|
])
|
|
3360
3366
|
]));
|
|
3361
3367
|
}
|
|
3362
|
-
}),
|
|
3368
|
+
}), Fa = /* @__PURE__ */ ie(Ba, [["__scopeId", "data-v-c90b8de0"]]), Ma = { class: "global-info-sections" }, Ea = /* @__PURE__ */ ee({
|
|
3363
3369
|
name: "GlobalInfoSections",
|
|
3364
3370
|
__name: "GlobalInfoSections",
|
|
3365
3371
|
props: {
|
|
@@ -3398,7 +3404,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3398
3404
|
function m(y, p) {
|
|
3399
3405
|
return y.key || y.id || y.tagId || `${p}`;
|
|
3400
3406
|
}
|
|
3401
|
-
function
|
|
3407
|
+
function E(y) {
|
|
3402
3408
|
const p = y[0], w = p?.raw ?? {}, C = String(w.parentTagName || w.parentName || w.parentLabel || p?.parentId || "信息");
|
|
3403
3409
|
return {
|
|
3404
3410
|
...p,
|
|
@@ -3416,11 +3422,11 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3416
3422
|
const C = String(w.parentId || w.parentTagId || "global-info-flat"), P = p.get(C) ?? [];
|
|
3417
3423
|
P.push(w), p.set(C, P);
|
|
3418
3424
|
}), Array.from(p.values()).map((w) => ({
|
|
3419
|
-
group:
|
|
3425
|
+
group: E(w),
|
|
3420
3426
|
children: w
|
|
3421
3427
|
}));
|
|
3422
3428
|
}
|
|
3423
|
-
return (y, p) => (b(), G("div",
|
|
3429
|
+
return (y, p) => (b(), G("div", Ma, [
|
|
3424
3430
|
(b(!0), G(Se, null, de(o.value, (w, C) => (b(), G(Se, {
|
|
3425
3431
|
key: m(w.group, C)
|
|
3426
3432
|
}, [
|
|
@@ -3433,7 +3439,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3433
3439
|
renderConfig: y.renderConfig,
|
|
3434
3440
|
index: C,
|
|
3435
3441
|
isEmpty: w.children.length === 0
|
|
3436
|
-
}, void 0, !0) :
|
|
3442
|
+
}, void 0, !0) : U(n).group ? K(y.$slots, "group", {
|
|
3437
3443
|
key: 1,
|
|
3438
3444
|
group: w.group,
|
|
3439
3445
|
children: w.children,
|
|
@@ -3442,7 +3448,7 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3442
3448
|
renderConfig: y.renderConfig,
|
|
3443
3449
|
index: C,
|
|
3444
3450
|
isEmpty: w.children.length === 0
|
|
3445
|
-
}, void 0, !0) : (b(), V(
|
|
3451
|
+
}, void 0, !0) : (b(), V(Fa, {
|
|
3446
3452
|
key: 2,
|
|
3447
3453
|
group: w.group,
|
|
3448
3454
|
children: w.children,
|
|
@@ -3450,50 +3456,50 @@ const oa = { class: "global-info-form-renderer__label" }, aa = {
|
|
|
3450
3456
|
actions: y.actions,
|
|
3451
3457
|
"render-config": y.renderConfig,
|
|
3452
3458
|
index: C
|
|
3453
|
-
},
|
|
3454
|
-
de(
|
|
3459
|
+
}, Ee({ _: 2 }, [
|
|
3460
|
+
de(U(n), (P, F) => ({
|
|
3455
3461
|
name: F,
|
|
3456
3462
|
fn: L((q) => [
|
|
3457
|
-
K(y.$slots, F,
|
|
3463
|
+
K(y.$slots, F, J({ ref_for: !0 }, q), void 0, !0)
|
|
3458
3464
|
])
|
|
3459
3465
|
}))
|
|
3460
3466
|
]), 1032, ["group", "children", "state", "actions", "render-config", "index"]))
|
|
3461
3467
|
], 64))), 128))
|
|
3462
3468
|
]));
|
|
3463
3469
|
}
|
|
3464
|
-
}),
|
|
3470
|
+
}), qa = /* @__PURE__ */ ie(Ea, [["__scopeId", "data-v-c0d12f5e"]]);
|
|
3465
3471
|
export {
|
|
3466
|
-
|
|
3467
|
-
|
|
3472
|
+
fa as GlobalInfoAutoRenderer,
|
|
3473
|
+
la as GlobalInfoDeleteConfirm,
|
|
3468
3474
|
tn as GlobalInfoFieldControl,
|
|
3469
3475
|
nn as GlobalInfoFieldValue,
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3476
|
+
ra as GlobalInfoFormRenderer,
|
|
3477
|
+
Fa as GlobalInfoGroup,
|
|
3478
|
+
Ka as GlobalInfoProvider,
|
|
3479
|
+
wa as GlobalInfoSectionBlock,
|
|
3480
|
+
pa as GlobalInfoSectionOutlet,
|
|
3481
|
+
qa as GlobalInfoSections,
|
|
3482
|
+
da as GlobalInfoTableRenderer,
|
|
3483
|
+
xa as JtAttachmentPreview,
|
|
3484
|
+
Ja as JtAttachmentPreviewByParams,
|
|
3479
3485
|
xe as JtButton,
|
|
3480
3486
|
Fn as JtCascader,
|
|
3481
|
-
|
|
3482
|
-
|
|
3487
|
+
ja as JtCrudTable,
|
|
3488
|
+
En as JtDatePicker,
|
|
3483
3489
|
Hn as JtFilterBar,
|
|
3484
3490
|
Rn as JtFormItems,
|
|
3485
3491
|
nt as JtInput,
|
|
3486
|
-
|
|
3492
|
+
Ga as JtPageHeader,
|
|
3487
3493
|
no as JtPagination,
|
|
3488
3494
|
Ln as JtSelect,
|
|
3489
3495
|
Qn as JtTable,
|
|
3490
3496
|
mo as buildGlobalInfoUpdatePayload,
|
|
3491
3497
|
uo as createEmptyGlobalInfoViewModel,
|
|
3492
|
-
|
|
3498
|
+
Aa as isGlobalInfoNode,
|
|
3493
3499
|
Gt as mergeGlobalInfoChildren,
|
|
3494
3500
|
fo as normalizeGlobalInfoDetail,
|
|
3495
3501
|
mt as normalizeGlobalInfoTree,
|
|
3496
3502
|
po as resolveGlobalInfoRenderType,
|
|
3497
|
-
|
|
3503
|
+
Ha as setupJtAttachmentPreview,
|
|
3498
3504
|
Go as useGlobalInfoController
|
|
3499
3505
|
};
|