@jt-home/mfe-components 1.0.56 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/JtAttachmentPreview/index.cjs +1 -1
- package/dist/JtAttachmentPreview/index.mjs +1 -1
- package/dist/{index-CTj7lrC9.js → index-D67nILVt.js} +679 -609
- package/dist/index-DEbU13vV.cjs +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +379 -379
- package/dist/style.css +1 -1
- package/package.json +23 -24
- package/readme.md +694 -694
- package/dist/index-CgZdzYF1.cjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { t as Z, J as Ft, i as
|
|
3
|
-
import { a as ps, g as ms, n as vs, r as hs, s as gs, b as ys } from "./index-
|
|
4
|
-
import { defineComponent as pe, useAttrs as
|
|
2
|
+
import { t as Z, J as Ft, i as Hn } from "./index-D67nILVt.js";
|
|
3
|
+
import { a as ps, g as ms, n as vs, r as hs, s as gs, b as ys } from "./index-D67nILVt.js";
|
|
4
|
+
import { defineComponent as pe, useAttrs as Un, computed as M, openBlock as I, createBlock as H, mergeProps as ae, toHandlers as et, withCtx as W, renderSlot as te, resolveDynamicComponent as Yt, createCommentVNode as fe, ref as ge, watch as Le, mergeDefaults as Jn, withKeys as Wn, createElementBlock as K, Fragment as Se, renderList as ye, normalizeStyle as $t, nextTick as Zn, useSlots as Ee, normalizeClass as We, createVNode as ke, withModifiers as Ht, unref as J, createSlots as Ne, createElementVNode as ne, toDisplayString as oe, normalizeProps as Oe, guardReactiveProps as Be, useModel as vt, withDirectives as Qn, mergeModels as Bt, shallowRef as je, onMounted as Ut, onBeforeUnmount as Xn, createTextVNode as Ue, resolveComponent as eo, onErrorCaptured as to } from "vue";
|
|
5
5
|
import { ElButton as Ct, ElIcon as Jt, ElCascader as no, ElDatePicker as Wt, ElInput as Zt, ElSelect as Qt, ElOption as Xt, ElFormItem as en, ElForm as tn, ElTable as nn, ElTableColumn as on, ElPagination as oo, ElLoadingDirective as ro, ElInputNumber as ao, ElSwitch as so, ElPopconfirm as lo } from "element-plus/es";
|
|
6
|
-
import { cascaderEmits as io, inputEmits as Lt, selectEmits as
|
|
6
|
+
import { cascaderEmits as io, inputEmits as Lt, selectEmits as Et } from "element-plus";
|
|
7
7
|
const bt = 2, co = 3;
|
|
8
8
|
function uo(e) {
|
|
9
9
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -55,7 +55,7 @@ const po = /* @__PURE__ */ pe({
|
|
|
55
55
|
tag: {}
|
|
56
56
|
},
|
|
57
57
|
setup(e) {
|
|
58
|
-
const t = e, n =
|
|
58
|
+
const t = e, n = Un(), o = M(() => {
|
|
59
59
|
const { icon: c, ...s } = t;
|
|
60
60
|
return {
|
|
61
61
|
...sn(n),
|
|
@@ -64,9 +64,9 @@ const po = /* @__PURE__ */ pe({
|
|
|
64
64
|
}), r = M(() => an(n));
|
|
65
65
|
return (c, s) => {
|
|
66
66
|
const i = Jt, a = Ct;
|
|
67
|
-
return I(),
|
|
67
|
+
return I(), H(a, ae({ class: "jt-button" }, o.value, et(r.value)), {
|
|
68
68
|
default: W(() => [
|
|
69
|
-
c.$slots.icon ? (I(),
|
|
69
|
+
c.$slots.icon ? (I(), H(i, {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "jt-button__icon"
|
|
72
72
|
}, {
|
|
@@ -74,12 +74,12 @@ const po = /* @__PURE__ */ pe({
|
|
|
74
74
|
te(c.$slots, "icon", {}, void 0, !0)
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
77
|
-
})) : t.icon ? (I(),
|
|
77
|
+
})) : t.icon ? (I(), H(i, {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "jt-button__icon"
|
|
80
80
|
}, {
|
|
81
81
|
default: W(() => [
|
|
82
|
-
(I(),
|
|
82
|
+
(I(), H(Yt(t.icon)))
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
85
|
})) : fe("", !0),
|
|
@@ -94,20 +94,20 @@ const po = /* @__PURE__ */ pe({
|
|
|
94
94
|
for (const [o, r] of t)
|
|
95
95
|
n[o] = r;
|
|
96
96
|
return n;
|
|
97
|
-
}, rt = /* @__PURE__ */ be(po, [["__scopeId", "data-v-
|
|
97
|
+
}, rt = /* @__PURE__ */ be(po, [["__scopeId", "data-v-407e719d"]]), mo = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
clearable: !0,
|
|
101
101
|
persistent: !0
|
|
102
102
|
};
|
|
103
|
-
function
|
|
103
|
+
function Pt(e) {
|
|
104
104
|
return Object.fromEntries(
|
|
105
105
|
Object.entries(e).filter(([, t]) => t !== void 0)
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
function vo(e) {
|
|
109
|
-
const t =
|
|
110
|
-
return t.props && (t.props =
|
|
109
|
+
const t = Pt(e);
|
|
110
|
+
return t.props && (t.props = Pt(
|
|
111
111
|
t.props
|
|
112
112
|
)), t;
|
|
113
113
|
}
|
|
@@ -198,7 +198,7 @@ const ho = /* @__PURE__ */ pe({
|
|
|
198
198
|
}
|
|
199
199
|
return (f, S) => {
|
|
200
200
|
const k = no;
|
|
201
|
-
return I(),
|
|
201
|
+
return I(), H(k, ae({ class: "jt-cascader" }, o.value, {
|
|
202
202
|
"model-value": r.value,
|
|
203
203
|
"onUpdate:modelValue": i,
|
|
204
204
|
onChange: a,
|
|
@@ -282,12 +282,12 @@ const ho = /* @__PURE__ */ pe({
|
|
|
282
282
|
}
|
|
283
283
|
return (r, c) => {
|
|
284
284
|
const s = Wt;
|
|
285
|
-
return I(),
|
|
285
|
+
return I(), H(s, ae({ class: "jt-date-picker" }, n.value, {
|
|
286
286
|
"onUpdate:modelValue": c[0] || (c[0] = (i) => r.$emit("update:modelValue", i))
|
|
287
287
|
}), null, 16);
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
}), yo = /* @__PURE__ */ be(go, [["__scopeId", "data-v-
|
|
290
|
+
}), yo = /* @__PURE__ */ be(go, [["__scopeId", "data-v-34482973"]]), bo = /* @__PURE__ */ pe({
|
|
291
291
|
name: "JtInput",
|
|
292
292
|
__name: "index",
|
|
293
293
|
props: {
|
|
@@ -348,12 +348,12 @@ const ho = /* @__PURE__ */ pe({
|
|
|
348
348
|
));
|
|
349
349
|
return (s, i) => {
|
|
350
350
|
const a = Zt;
|
|
351
|
-
return I(),
|
|
351
|
+
return I(), H(a, ae({ class: "jt-input" }, o.value, et(c.value), {
|
|
352
352
|
onKeyup: i[0] || (i[0] = Wn((l) => r("enter"), ["enter"]))
|
|
353
353
|
}), null, 16);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
}), ht = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-
|
|
356
|
+
}), ht = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-b323beeb"]]), So = /* @__PURE__ */ pe({
|
|
357
357
|
name: "JtSelect",
|
|
358
358
|
__name: "index",
|
|
359
359
|
props: {
|
|
@@ -411,7 +411,7 @@ const ho = /* @__PURE__ */ pe({
|
|
|
411
411
|
appendTo: {},
|
|
412
412
|
props: {}
|
|
413
413
|
},
|
|
414
|
-
emits:
|
|
414
|
+
emits: Et,
|
|
415
415
|
setup(e, { emit: t }) {
|
|
416
416
|
const n = e, o = M(() => {
|
|
417
417
|
const { options: s, placeholder: i, preservePlaceholderWhenDisabled: a, ...l } = n;
|
|
@@ -421,16 +421,16 @@ const ho = /* @__PURE__ */ pe({
|
|
|
421
421
|
placeholder: i ?? Z("common.请选择")
|
|
422
422
|
};
|
|
423
423
|
}), r = t, c = M(() => Object.fromEntries(
|
|
424
|
-
Object.keys(
|
|
424
|
+
Object.keys(Et).map((s) => [
|
|
425
425
|
s,
|
|
426
426
|
(...i) => r(s, ...i)
|
|
427
427
|
])
|
|
428
428
|
));
|
|
429
429
|
return (s, i) => {
|
|
430
430
|
const a = Xt, l = Qt;
|
|
431
|
-
return I(),
|
|
431
|
+
return I(), H(l, ae({ class: "jt-select" }, o.value, et(c.value)), {
|
|
432
432
|
default: W(() => [
|
|
433
|
-
(I(!0), K(Se, null, ye(s.options ?? [], (g) => (I(),
|
|
433
|
+
(I(!0), K(Se, null, ye(s.options ?? [], (g) => (I(), H(a, ae({
|
|
434
434
|
key: g.value,
|
|
435
435
|
ref_for: !0
|
|
436
436
|
}, g), null, 16))), 128))
|
|
@@ -439,7 +439,7 @@ const ho = /* @__PURE__ */ pe({
|
|
|
439
439
|
}, 16);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}), _o = /* @__PURE__ */ be(So, [["__scopeId", "data-v-
|
|
442
|
+
}), _o = /* @__PURE__ */ be(So, [["__scopeId", "data-v-bbfe7769"]]), wo = { class: "jt-form-items" }, gt = 4, Io = /* @__PURE__ */ pe({
|
|
443
443
|
name: "JTFormItems",
|
|
444
444
|
__name: "JtFormItems",
|
|
445
445
|
props: {
|
|
@@ -516,7 +516,7 @@ const ho = /* @__PURE__ */ pe({
|
|
|
516
516
|
return (y, h) => {
|
|
517
517
|
const D = en;
|
|
518
518
|
return I(), K("div", wo, [
|
|
519
|
-
(I(!0), K(Se, null, ye(i.value, (b) => (I(),
|
|
519
|
+
(I(!0), K(Se, null, ye(i.value, (b) => (I(), H(D, ae({
|
|
520
520
|
key: b.prop,
|
|
521
521
|
ref_for: !0,
|
|
522
522
|
ref: V(b.prop),
|
|
@@ -526,7 +526,7 @@ const ho = /* @__PURE__ */ pe({
|
|
|
526
526
|
prop: b.prop
|
|
527
527
|
}, w(b)), {
|
|
528
528
|
default: W(() => [
|
|
529
|
-
b.showSlot ? te(y.$slots, b.prop, { key: 0 }, void 0, !0) : (I(),
|
|
529
|
+
b.showSlot ? te(y.$slots, b.prop, { key: 0 }, void 0, !0) : (I(), H(Yt(a(b)), ae({
|
|
530
530
|
key: 1,
|
|
531
531
|
"model-value": y.formData[b.prop],
|
|
532
532
|
ref_for: !0
|
|
@@ -538,7 +538,7 @@ const ho = /* @__PURE__ */ pe({
|
|
|
538
538
|
]),
|
|
539
539
|
_: 2
|
|
540
540
|
}, 1040, ["style", "label", "prop"]))), 128)),
|
|
541
|
-
y.$slots.actions ? (I(),
|
|
541
|
+
y.$slots.actions ? (I(), H(D, {
|
|
542
542
|
key: 0,
|
|
543
543
|
class: "jt-form-items__actions",
|
|
544
544
|
style: $t(S.value)
|
|
@@ -551,7 +551,7 @@ const ho = /* @__PURE__ */ pe({
|
|
|
551
551
|
]);
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
}), $o = /* @__PURE__ */ be(Io, [["__scopeId", "data-v-
|
|
554
|
+
}), $o = /* @__PURE__ */ be(Io, [["__scopeId", "data-v-2b3030a2"]]);
|
|
555
555
|
function Co() {
|
|
556
556
|
const e = ge(!1);
|
|
557
557
|
function t() {
|
|
@@ -576,7 +576,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
576
576
|
},
|
|
577
577
|
emits: ["update:modelValue", "search", "reset"],
|
|
578
578
|
setup(e, { expose: t, emit: n }) {
|
|
579
|
-
const o = e, r = n, c = ge(), s =
|
|
579
|
+
const o = e, r = n, c = ge(), s = Ee(), i = ge({}), { searchDisabled: a, searchLoading: l, searchDone: g } = Co(), w = M(() => o.option), $ = ge(w.value.searchCollapsed ?? !0), V = M(
|
|
580
580
|
() => o.columns.filter((T) => T.search === !0)
|
|
581
581
|
), j = M(
|
|
582
582
|
() => Math.max(1, w.value.searchSpan ?? 4)
|
|
@@ -591,28 +591,28 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
591
591
|
), D = M(
|
|
592
592
|
() => w.value.searchLabelPosition ?? "top"
|
|
593
593
|
), b = M(
|
|
594
|
-
() =>
|
|
594
|
+
() => x(w.value.searchGutter, 16)
|
|
595
595
|
), A = M(
|
|
596
|
-
() =>
|
|
596
|
+
() => x(w.value.searchRowGap, 10)
|
|
597
597
|
), m = M(
|
|
598
598
|
() => Q(w.value.searchPadding ?? "18px 4px 0")
|
|
599
|
-
), F = M(() => w.value.searchCollapse === !1 ? !1 : z(V.value) > k.value),
|
|
599
|
+
), F = M(() => w.value.searchCollapse === !1 ? !1 : z(V.value) > k.value), E = M(() => {
|
|
600
600
|
if (!F.value || !$.value) return V.value;
|
|
601
601
|
let T = 0;
|
|
602
602
|
return V.value.filter((X) => {
|
|
603
|
-
const ue =
|
|
603
|
+
const ue = P(X);
|
|
604
604
|
return T + ue > k.value ? !1 : (T += ue, !0);
|
|
605
605
|
});
|
|
606
|
-
}),
|
|
607
|
-
() =>
|
|
606
|
+
}), q = M(
|
|
607
|
+
() => E.value.filter((T) => !!s[`${T.prop}-search`])
|
|
608
608
|
), re = M(() => {
|
|
609
|
-
const T = z(
|
|
610
|
-
return
|
|
609
|
+
const T = z(E.value);
|
|
610
|
+
return E.value.length > 0 && E.value.length <= 2 && T < j.value;
|
|
611
611
|
}), le = M(() => {
|
|
612
|
-
const T = z(
|
|
612
|
+
const T = z(E.value);
|
|
613
613
|
return `${Math.min(j.value, T + 1)}`;
|
|
614
614
|
}), N = M(
|
|
615
|
-
() =>
|
|
615
|
+
() => E.value.map((T) => L(T))
|
|
616
616
|
);
|
|
617
617
|
Le(
|
|
618
618
|
() => w.value.searchCollapsed,
|
|
@@ -637,7 +637,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
637
637
|
...X,
|
|
638
638
|
prop: T.prop,
|
|
639
639
|
label: T.searchLabel ?? T.label,
|
|
640
|
-
span:
|
|
640
|
+
span: P(T),
|
|
641
641
|
itemType: ue,
|
|
642
642
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
643
643
|
showSlot: !!s[`${T.prop}-search`],
|
|
@@ -684,16 +684,16 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
684
684
|
function O() {
|
|
685
685
|
$.value = !$.value;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function P(T) {
|
|
688
688
|
return Math.min(j.value, Math.max(1, T.searchSpan ?? 1));
|
|
689
689
|
}
|
|
690
690
|
function z(T) {
|
|
691
|
-
return T.reduce((X, ue) => X +
|
|
691
|
+
return T.reduce((X, ue) => X + P(ue), 0);
|
|
692
692
|
}
|
|
693
693
|
function G(T) {
|
|
694
694
|
return typeof T == "number" ? `${T}px` : T;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function x(T, X) {
|
|
697
697
|
return typeof T == "number" ? T : X;
|
|
698
698
|
}
|
|
699
699
|
function Q(T) {
|
|
@@ -734,7 +734,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
734
734
|
"label-position": D.value,
|
|
735
735
|
"label-width": h.value,
|
|
736
736
|
disabled: J(a),
|
|
737
|
-
onSubmit: X[0] || (X[0] =
|
|
737
|
+
onSubmit: X[0] || (X[0] = Ht(() => {
|
|
738
738
|
}, ["prevent"]))
|
|
739
739
|
}, {
|
|
740
740
|
default: W(() => [
|
|
@@ -752,7 +752,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
752
752
|
collapsed: $.value,
|
|
753
753
|
toggleCollapse: O
|
|
754
754
|
}, () => [
|
|
755
|
-
F.value ? (I(),
|
|
755
|
+
F.value ? (I(), H(J(rt), {
|
|
756
756
|
key: 0,
|
|
757
757
|
class: "jt-filter-bar__btn-collapse",
|
|
758
758
|
onClick: O
|
|
@@ -807,7 +807,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
807
807
|
]),
|
|
808
808
|
_: 2
|
|
809
809
|
}, [
|
|
810
|
-
ye(
|
|
810
|
+
ye(q.value, (de) => ({
|
|
811
811
|
name: de.prop,
|
|
812
812
|
fn: W(() => [
|
|
813
813
|
te(T.$slots, `${de.prop}-search`, {
|
|
@@ -827,7 +827,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
827
827
|
], 6);
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
}),
|
|
830
|
+
}), Eo = /* @__PURE__ */ be(Lo, [["__scopeId", "data-v-5e920e01"]]), Po = { key: 1 }, Vo = { key: 2 }, jo = { key: 3 }, Ao = /* @__PURE__ */ pe({
|
|
831
831
|
name: "JtTable",
|
|
832
832
|
__name: "JtTable",
|
|
833
833
|
props: {
|
|
@@ -837,7 +837,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
837
837
|
tableEvents: {}
|
|
838
838
|
},
|
|
839
839
|
setup(e, { expose: t }) {
|
|
840
|
-
const n = e, o =
|
|
840
|
+
const n = e, o = Ee(), r = ge(), c = M(() => n.option ?? {}), s = M(() => n.columns.filter((f) => !f.hide)), i = M(() => c.value.menuFixed ?? "right");
|
|
841
841
|
function a(f) {
|
|
842
842
|
return !!o[`${f}-header`];
|
|
843
843
|
}
|
|
@@ -869,7 +869,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
869
869
|
}
|
|
870
870
|
return t({ tableRef: r }), (f, S) => {
|
|
871
871
|
const k = on, R = nn;
|
|
872
|
-
return I(),
|
|
872
|
+
return I(), H(R, ae({
|
|
873
873
|
ref_key: "tableRef",
|
|
874
874
|
ref: r,
|
|
875
875
|
data: f.data,
|
|
@@ -878,20 +878,20 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
878
878
|
class: "jt-table"
|
|
879
879
|
}, c.value.tableProps, et(f.tableEvents)), {
|
|
880
880
|
default: W(() => [
|
|
881
|
-
c.value.selection ? (I(),
|
|
881
|
+
c.value.selection ? (I(), H(k, {
|
|
882
882
|
key: 0,
|
|
883
883
|
type: "selection",
|
|
884
884
|
width: "55",
|
|
885
885
|
align: "center"
|
|
886
886
|
})) : fe("", !0),
|
|
887
|
-
c.value.index ? (I(),
|
|
887
|
+
c.value.index ? (I(), H(k, {
|
|
888
888
|
key: 1,
|
|
889
889
|
type: "index",
|
|
890
890
|
label: c.value.indexLabel ?? J(Z)("common.序号"),
|
|
891
891
|
width: "60",
|
|
892
892
|
align: "center"
|
|
893
893
|
}, null, 8, ["label"])) : fe("", !0),
|
|
894
|
-
(I(!0), K(Se, null, ye(s.value, (y) => (I(),
|
|
894
|
+
(I(!0), K(Se, null, ye(s.value, (y) => (I(), H(k, ae({
|
|
895
895
|
key: y.prop,
|
|
896
896
|
prop: y.prop,
|
|
897
897
|
label: y.label,
|
|
@@ -911,7 +911,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
911
911
|
l(y.prop) ? te(f.$slots, `${y.prop}-data`, ae({
|
|
912
912
|
key: 0,
|
|
913
913
|
ref_for: !0
|
|
914
|
-
}, h), void 0, !0) : y.dicData ? (I(), K("span",
|
|
914
|
+
}, h), void 0, !0) : y.dicData ? (I(), K("span", Po, oe(j(y.dicData, h.row[y.prop])), 1)) : y.formatter ? (I(), K("span", Vo, oe(y.formatter(
|
|
915
915
|
h.row,
|
|
916
916
|
h.column,
|
|
917
917
|
h.row[y.prop],
|
|
@@ -921,7 +921,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
921
921
|
key: "1"
|
|
922
922
|
} : void 0
|
|
923
923
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
924
|
-
c.value.menu ? (I(),
|
|
924
|
+
c.value.menu ? (I(), H(k, {
|
|
925
925
|
key: 2,
|
|
926
926
|
label: c.value.menuLabel ?? J(Z)("common.操作"),
|
|
927
927
|
width: c.value.menuWidth,
|
|
@@ -939,7 +939,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
939
939
|
}, 16, ["data", "row-key", "empty-text"]);
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
|
-
}), No = /* @__PURE__ */ be(Ao, [["__scopeId", "data-v-
|
|
942
|
+
}), No = /* @__PURE__ */ be(Ao, [["__scopeId", "data-v-5d076ddd"]]), Ro = { class: "jt-pagination" }, zo = { class: "jt-pagination__count" }, qo = /* @__PURE__ */ pe({
|
|
943
943
|
name: "JtPagination",
|
|
944
944
|
__name: "JtPagination",
|
|
945
945
|
props: {
|
|
@@ -972,7 +972,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
972
972
|
]);
|
|
973
973
|
};
|
|
974
974
|
}
|
|
975
|
-
}),
|
|
975
|
+
}), xo = /* @__PURE__ */ be(qo, [["__scopeId", "data-v-03d564ec"]]), Go = { class: "jt-crud-table" }, Ko = { class: "filter-bar-box" }, Yo = { class: "jt-crud-table__result" }, Ho = { class: "jt-crud-table__table-group" }, Uo = {
|
|
976
976
|
key: 0,
|
|
977
977
|
class: "jt-crud-table__toolbar"
|
|
978
978
|
}, Jo = /* @__PURE__ */ pe({
|
|
@@ -996,7 +996,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
996
996
|
}),
|
|
997
997
|
emits: /* @__PURE__ */ Bt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
998
998
|
setup(e, { expose: t, emit: n }) {
|
|
999
|
-
const o = e, r = n, c = vt(e, "currentPage"), s = vt(e, "pageSize"), i = vt(e, "searchModel"), a =
|
|
999
|
+
const o = e, r = n, c = vt(e, "currentPage"), s = vt(e, "pageSize"), i = vt(e, "searchModel"), a = Ee(), l = ge(), g = ge(), w = M(() => o.option), $ = M(() => w.value.searchShow !== !1), V = M(
|
|
1000
1000
|
() => w.value.paginationShow !== !1
|
|
1001
1001
|
), j = M(
|
|
1002
1002
|
() => o.columns.filter((b) => b.search && !!a[`${b.prop}-search`])
|
|
@@ -1037,7 +1037,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1037
1037
|
return I(), K("div", Go, [
|
|
1038
1038
|
te(b.$slots, "header", {}, void 0, !0),
|
|
1039
1039
|
ne("div", Ko, [
|
|
1040
|
-
$.value ? (I(),
|
|
1040
|
+
$.value ? (I(), H(Eo, {
|
|
1041
1041
|
key: 0,
|
|
1042
1042
|
ref_key: "filterBarRef",
|
|
1043
1043
|
ref: g,
|
|
@@ -1050,18 +1050,18 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1050
1050
|
}, Ne({ _: 2 }, [
|
|
1051
1051
|
ye(j.value, (F) => ({
|
|
1052
1052
|
name: `${F.prop}-search`,
|
|
1053
|
-
fn: W((
|
|
1054
|
-
te(b.$slots, `${F.prop}-search`, Oe(Be(
|
|
1053
|
+
fn: W((E) => [
|
|
1054
|
+
te(b.$slots, `${F.prop}-search`, Oe(Be(E)), void 0, !0)
|
|
1055
1055
|
])
|
|
1056
1056
|
}))
|
|
1057
1057
|
]), 1032, ["modelValue", "columns", "option"])) : fe("", !0)
|
|
1058
1058
|
]),
|
|
1059
1059
|
ne("div", Yo, [
|
|
1060
|
-
ne("div",
|
|
1061
|
-
J(a).toolbar ? (I(), K("div",
|
|
1060
|
+
ne("div", Ho, [
|
|
1061
|
+
J(a).toolbar ? (I(), K("div", Uo, [
|
|
1062
1062
|
te(b.$slots, "toolbar", {}, void 0, !0)
|
|
1063
1063
|
])) : fe("", !0),
|
|
1064
|
-
Qn((I(),
|
|
1064
|
+
Qn((I(), H(No, {
|
|
1065
1065
|
ref_key: "jtTableRef",
|
|
1066
1066
|
ref: l,
|
|
1067
1067
|
data: b.data,
|
|
@@ -1071,14 +1071,14 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1071
1071
|
}, Ne({ _: 2 }, [
|
|
1072
1072
|
ye(f.value, (F) => ({
|
|
1073
1073
|
name: `${F.prop}-header`,
|
|
1074
|
-
fn: W((
|
|
1075
|
-
te(b.$slots, `${F.prop}-header`, Oe(Be(
|
|
1074
|
+
fn: W((E) => [
|
|
1075
|
+
te(b.$slots, `${F.prop}-header`, Oe(Be(E)), void 0, !0)
|
|
1076
1076
|
])
|
|
1077
1077
|
})),
|
|
1078
1078
|
ye(S.value, (F) => ({
|
|
1079
1079
|
name: `${F.prop}-data`,
|
|
1080
|
-
fn: W((
|
|
1081
|
-
te(b.$slots, `${F.prop}-data`, Oe(Be(
|
|
1080
|
+
fn: W((E) => [
|
|
1081
|
+
te(b.$slots, `${F.prop}-data`, Oe(Be(E)), void 0, !0)
|
|
1082
1082
|
])
|
|
1083
1083
|
})),
|
|
1084
1084
|
w.value.menu ? {
|
|
@@ -1092,7 +1092,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1092
1092
|
[m, w.value.loading]
|
|
1093
1093
|
])
|
|
1094
1094
|
]),
|
|
1095
|
-
V.value ? (I(),
|
|
1095
|
+
V.value ? (I(), H(xo, {
|
|
1096
1096
|
key: 0,
|
|
1097
1097
|
"current-page": c.value,
|
|
1098
1098
|
"onUpdate:currentPage": A[1] || (A[1] = (F) => c.value = F),
|
|
@@ -1107,7 +1107,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1107
1107
|
]);
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
|
-
}), as = /* @__PURE__ */ be(Jo, [["__scopeId", "data-v-
|
|
1110
|
+
}), as = /* @__PURE__ */ be(Jo, [["__scopeId", "data-v-335c2682"]]), Wo = { class: "jt-page-header__title" }, Zo = { key: 0 }, Qo = {
|
|
1111
1111
|
key: 0,
|
|
1112
1112
|
class: "jt-page-header__operates"
|
|
1113
1113
|
}, Xo = /* @__PURE__ */ pe({
|
|
@@ -1120,7 +1120,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1120
1120
|
},
|
|
1121
1121
|
emits: ["operate-click"],
|
|
1122
1122
|
setup(e, { emit: t }) {
|
|
1123
|
-
const n = e, o = t, r =
|
|
1123
|
+
const n = e, o = t, r = Ee(), c = M(() => n.operates.length > 0 || !!r.operates);
|
|
1124
1124
|
function s(i, a) {
|
|
1125
1125
|
i.onClick?.(i, a), o("operate-click", i, a);
|
|
1126
1126
|
}
|
|
@@ -1134,7 +1134,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1134
1134
|
]),
|
|
1135
1135
|
c.value ? (I(), K("div", Qo, [
|
|
1136
1136
|
te(i.$slots, "operates", { operates: i.operates }, () => [
|
|
1137
|
-
(I(!0), K(Se, null, ye(i.operates, (l) => (I(),
|
|
1137
|
+
(I(!0), K(Se, null, ye(i.operates, (l) => (I(), H(J(rt), ae({
|
|
1138
1138
|
key: l.key ?? l.label,
|
|
1139
1139
|
ref_for: !0
|
|
1140
1140
|
}, l.buttonProps, {
|
|
@@ -1156,7 +1156,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1156
1156
|
])) : fe("", !0)
|
|
1157
1157
|
], 16));
|
|
1158
1158
|
}
|
|
1159
|
-
}), ss = /* @__PURE__ */ be(Xo, [["__scopeId", "data-v-
|
|
1159
|
+
}), ss = /* @__PURE__ */ be(Xo, [["__scopeId", "data-v-b6738d5d"]]);
|
|
1160
1160
|
function er(e, t) {
|
|
1161
1161
|
t = t || (() => "default-use-once-sync");
|
|
1162
1162
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -1231,17 +1231,17 @@ var cn = { exports: {} };
|
|
|
1231
1231
|
var O = B.split("-");
|
|
1232
1232
|
if (!u && O.length > 1) return N(O[0]);
|
|
1233
1233
|
} else {
|
|
1234
|
-
var
|
|
1235
|
-
b[
|
|
1234
|
+
var P = B.name;
|
|
1235
|
+
b[P] = B, u = P;
|
|
1236
1236
|
}
|
|
1237
1237
|
return !d && u && (D = u), u || !d && D;
|
|
1238
|
-
},
|
|
1238
|
+
}, E = function(N, B) {
|
|
1239
1239
|
if (m(N)) return N.clone();
|
|
1240
1240
|
var L = typeof B == "object" ? B : {};
|
|
1241
1241
|
return L.date = N, L.args = arguments, new re(L);
|
|
1242
|
-
},
|
|
1243
|
-
|
|
1244
|
-
return
|
|
1242
|
+
}, q = h;
|
|
1243
|
+
q.l = F, q.i = m, q.w = function(N, B) {
|
|
1244
|
+
return E(N, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
|
|
1245
1245
|
};
|
|
1246
1246
|
var re = function() {
|
|
1247
1247
|
function N(L) {
|
|
@@ -1252,13 +1252,13 @@ var cn = { exports: {} };
|
|
|
1252
1252
|
this.$d = function(d) {
|
|
1253
1253
|
var u = d.date, _ = d.utc;
|
|
1254
1254
|
if (u === null) return /* @__PURE__ */ new Date(NaN);
|
|
1255
|
-
if (
|
|
1255
|
+
if (q.u(u)) return /* @__PURE__ */ new Date();
|
|
1256
1256
|
if (u instanceof Date) return new Date(u);
|
|
1257
1257
|
if (typeof u == "string" && !/Z$/i.test(u)) {
|
|
1258
1258
|
var O = u.match(S);
|
|
1259
1259
|
if (O) {
|
|
1260
|
-
var
|
|
1261
|
-
return _ ? new Date(Date.UTC(O[1],
|
|
1260
|
+
var P = O[2] - 1 || 0, z = (O[7] || "0").substring(0, 3);
|
|
1261
|
+
return _ ? new Date(Date.UTC(O[1], P, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z)) : new Date(O[1], P, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z);
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
return new Date(u);
|
|
@@ -1267,37 +1267,37 @@ var cn = { exports: {} };
|
|
|
1267
1267
|
var L = this.$d;
|
|
1268
1268
|
this.$y = L.getFullYear(), this.$M = L.getMonth(), this.$D = L.getDate(), this.$W = L.getDay(), this.$H = L.getHours(), this.$m = L.getMinutes(), this.$s = L.getSeconds(), this.$ms = L.getMilliseconds();
|
|
1269
1269
|
}, B.$utils = function() {
|
|
1270
|
-
return
|
|
1270
|
+
return q;
|
|
1271
1271
|
}, B.isValid = function() {
|
|
1272
1272
|
return this.$d.toString() !== f;
|
|
1273
1273
|
}, B.isSame = function(L, d) {
|
|
1274
|
-
var u =
|
|
1274
|
+
var u = E(L);
|
|
1275
1275
|
return this.startOf(d) <= u && u <= this.endOf(d);
|
|
1276
1276
|
}, B.isAfter = function(L, d) {
|
|
1277
|
-
return
|
|
1277
|
+
return E(L) < this.startOf(d);
|
|
1278
1278
|
}, B.isBefore = function(L, d) {
|
|
1279
|
-
return this.endOf(d) <
|
|
1279
|
+
return this.endOf(d) < E(L);
|
|
1280
1280
|
}, B.$g = function(L, d, u) {
|
|
1281
|
-
return
|
|
1281
|
+
return q.u(L) ? this[d] : this.set(u, L);
|
|
1282
1282
|
}, B.unix = function() {
|
|
1283
1283
|
return Math.floor(this.valueOf() / 1e3);
|
|
1284
1284
|
}, B.valueOf = function() {
|
|
1285
1285
|
return this.$d.getTime();
|
|
1286
1286
|
}, B.startOf = function(L, d) {
|
|
1287
|
-
var u = this, _ = !!
|
|
1288
|
-
var we =
|
|
1287
|
+
var u = this, _ = !!q.u(d) || d, O = q.p(L), P = function(de, me) {
|
|
1288
|
+
var we = q.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
|
|
1289
1289
|
return _ ? we : we.endOf(l);
|
|
1290
1290
|
}, z = function(de, me) {
|
|
1291
|
-
return
|
|
1292
|
-
}, G = this.$W,
|
|
1291
|
+
return q.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
|
|
1292
|
+
}, G = this.$W, x = this.$M, Q = this.$D, T = "set" + (this.$u ? "UTC" : "");
|
|
1293
1293
|
switch (O) {
|
|
1294
1294
|
case V:
|
|
1295
|
-
return _ ?
|
|
1295
|
+
return _ ? P(1, 0) : P(31, 11);
|
|
1296
1296
|
case w:
|
|
1297
|
-
return _ ?
|
|
1297
|
+
return _ ? P(1, x) : P(0, x + 1);
|
|
1298
1298
|
case g:
|
|
1299
1299
|
var X = this.$locale().weekStart || 0, ue = (G < X ? G + 7 : G) - X;
|
|
1300
|
-
return
|
|
1300
|
+
return P(_ ? Q - ue : Q + (6 - ue), x);
|
|
1301
1301
|
case l:
|
|
1302
1302
|
case j:
|
|
1303
1303
|
return z(T + "Hours", 0);
|
|
@@ -1313,38 +1313,38 @@ var cn = { exports: {} };
|
|
|
1313
1313
|
}, B.endOf = function(L) {
|
|
1314
1314
|
return this.startOf(L, !1);
|
|
1315
1315
|
}, B.$set = function(L, d) {
|
|
1316
|
-
var u, _ =
|
|
1316
|
+
var u, _ = q.p(L), O = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[l] = O + "Date", u[j] = O + "Date", u[w] = O + "Month", u[V] = O + "FullYear", u[a] = O + "Hours", u[i] = O + "Minutes", u[s] = O + "Seconds", u[c] = O + "Milliseconds", u)[_], z = _ === l ? this.$D + (d - this.$W) : d;
|
|
1317
1317
|
if (_ === w || _ === V) {
|
|
1318
1318
|
var G = this.clone().set(j, 1);
|
|
1319
|
-
G.$d[
|
|
1320
|
-
} else
|
|
1319
|
+
G.$d[P](z), G.init(), this.$d = G.set(j, Math.min(this.$D, G.daysInMonth())).$d;
|
|
1320
|
+
} else P && this.$d[P](z);
|
|
1321
1321
|
return this.init(), this;
|
|
1322
1322
|
}, B.set = function(L, d) {
|
|
1323
1323
|
return this.clone().$set(L, d);
|
|
1324
1324
|
}, B.get = function(L) {
|
|
1325
|
-
return this[
|
|
1325
|
+
return this[q.p(L)]();
|
|
1326
1326
|
}, B.add = function(L, d) {
|
|
1327
1327
|
var u, _ = this;
|
|
1328
1328
|
L = Number(L);
|
|
1329
|
-
var O =
|
|
1330
|
-
var Q =
|
|
1331
|
-
return
|
|
1329
|
+
var O = q.p(d), P = function(x) {
|
|
1330
|
+
var Q = E(_);
|
|
1331
|
+
return q.w(Q.date(Q.date() + Math.round(x * L)), _);
|
|
1332
1332
|
};
|
|
1333
1333
|
if (O === w) return this.set(w, this.$M + L);
|
|
1334
1334
|
if (O === V) return this.set(V, this.$y + L);
|
|
1335
|
-
if (O === l) return
|
|
1336
|
-
if (O === g) return
|
|
1335
|
+
if (O === l) return P(1);
|
|
1336
|
+
if (O === g) return P(7);
|
|
1337
1337
|
var z = (u = {}, u[i] = o, u[a] = r, u[s] = n, u)[O] || 1, G = this.$d.getTime() + L * z;
|
|
1338
|
-
return
|
|
1338
|
+
return q.w(G, this);
|
|
1339
1339
|
}, B.subtract = function(L, d) {
|
|
1340
1340
|
return this.add(-1 * L, d);
|
|
1341
1341
|
}, B.format = function(L) {
|
|
1342
1342
|
var d = this, u = this.$locale();
|
|
1343
1343
|
if (!this.isValid()) return u.invalidDate || f;
|
|
1344
|
-
var _ = L || "YYYY-MM-DDTHH:mm:ssZ", O =
|
|
1344
|
+
var _ = L || "YYYY-MM-DDTHH:mm:ssZ", O = q.z(this), P = this.$H, z = this.$m, G = this.$M, x = u.weekdays, Q = u.months, T = u.meridiem, X = function(me, we, De, Ie) {
|
|
1345
1345
|
return me && (me[we] || me(d, _)) || De[we].slice(0, Ie);
|
|
1346
1346
|
}, ue = function(me) {
|
|
1347
|
-
return
|
|
1347
|
+
return q.s(P % 12 || 12, me, "0");
|
|
1348
1348
|
}, de = T || function(me, we, De) {
|
|
1349
1349
|
var Ie = me < 12 ? "AM" : "PM";
|
|
1350
1350
|
return De ? Ie.toLowerCase() : Ie;
|
|
@@ -1355,11 +1355,11 @@ var cn = { exports: {} };
|
|
|
1355
1355
|
case "YY":
|
|
1356
1356
|
return String(d.$y).slice(-2);
|
|
1357
1357
|
case "YYYY":
|
|
1358
|
-
return
|
|
1358
|
+
return q.s(d.$y, 4, "0");
|
|
1359
1359
|
case "M":
|
|
1360
1360
|
return G + 1;
|
|
1361
1361
|
case "MM":
|
|
1362
|
-
return
|
|
1362
|
+
return q.s(G + 1, 2, "0");
|
|
1363
1363
|
case "MMM":
|
|
1364
1364
|
return X(u.monthsShort, G, Q, 3);
|
|
1365
1365
|
case "MMMM":
|
|
@@ -1367,37 +1367,37 @@ var cn = { exports: {} };
|
|
|
1367
1367
|
case "D":
|
|
1368
1368
|
return d.$D;
|
|
1369
1369
|
case "DD":
|
|
1370
|
-
return
|
|
1370
|
+
return q.s(d.$D, 2, "0");
|
|
1371
1371
|
case "d":
|
|
1372
1372
|
return String(d.$W);
|
|
1373
1373
|
case "dd":
|
|
1374
|
-
return X(u.weekdaysMin, d.$W,
|
|
1374
|
+
return X(u.weekdaysMin, d.$W, x, 2);
|
|
1375
1375
|
case "ddd":
|
|
1376
|
-
return X(u.weekdaysShort, d.$W,
|
|
1376
|
+
return X(u.weekdaysShort, d.$W, x, 3);
|
|
1377
1377
|
case "dddd":
|
|
1378
|
-
return
|
|
1378
|
+
return x[d.$W];
|
|
1379
1379
|
case "H":
|
|
1380
|
-
return String(
|
|
1380
|
+
return String(P);
|
|
1381
1381
|
case "HH":
|
|
1382
|
-
return
|
|
1382
|
+
return q.s(P, 2, "0");
|
|
1383
1383
|
case "h":
|
|
1384
1384
|
return ue(1);
|
|
1385
1385
|
case "hh":
|
|
1386
1386
|
return ue(2);
|
|
1387
1387
|
case "a":
|
|
1388
|
-
return de(
|
|
1388
|
+
return de(P, z, !0);
|
|
1389
1389
|
case "A":
|
|
1390
|
-
return de(
|
|
1390
|
+
return de(P, z, !1);
|
|
1391
1391
|
case "m":
|
|
1392
1392
|
return String(z);
|
|
1393
1393
|
case "mm":
|
|
1394
|
-
return
|
|
1394
|
+
return q.s(z, 2, "0");
|
|
1395
1395
|
case "s":
|
|
1396
1396
|
return String(d.$s);
|
|
1397
1397
|
case "ss":
|
|
1398
|
-
return
|
|
1398
|
+
return q.s(d.$s, 2, "0");
|
|
1399
1399
|
case "SSS":
|
|
1400
|
-
return
|
|
1400
|
+
return q.s(d.$ms, 3, "0");
|
|
1401
1401
|
case "Z":
|
|
1402
1402
|
return O;
|
|
1403
1403
|
}
|
|
@@ -1407,10 +1407,10 @@ var cn = { exports: {} };
|
|
|
1407
1407
|
}, B.utcOffset = function() {
|
|
1408
1408
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1409
1409
|
}, B.diff = function(L, d, u) {
|
|
1410
|
-
var _, O = this,
|
|
1411
|
-
return
|
|
1410
|
+
var _, O = this, P = q.p(d), z = E(L), G = (z.utcOffset() - this.utcOffset()) * o, x = this - z, Q = function() {
|
|
1411
|
+
return q.m(O, z);
|
|
1412
1412
|
};
|
|
1413
|
-
switch (
|
|
1413
|
+
switch (P) {
|
|
1414
1414
|
case V:
|
|
1415
1415
|
_ = Q() / 12;
|
|
1416
1416
|
break;
|
|
@@ -1421,24 +1421,24 @@ var cn = { exports: {} };
|
|
|
1421
1421
|
_ = Q() / 3;
|
|
1422
1422
|
break;
|
|
1423
1423
|
case g:
|
|
1424
|
-
_ = (
|
|
1424
|
+
_ = (x - G) / 6048e5;
|
|
1425
1425
|
break;
|
|
1426
1426
|
case l:
|
|
1427
|
-
_ = (
|
|
1427
|
+
_ = (x - G) / 864e5;
|
|
1428
1428
|
break;
|
|
1429
1429
|
case a:
|
|
1430
|
-
_ =
|
|
1430
|
+
_ = x / r;
|
|
1431
1431
|
break;
|
|
1432
1432
|
case i:
|
|
1433
|
-
_ =
|
|
1433
|
+
_ = x / o;
|
|
1434
1434
|
break;
|
|
1435
1435
|
case s:
|
|
1436
|
-
_ =
|
|
1436
|
+
_ = x / n;
|
|
1437
1437
|
break;
|
|
1438
1438
|
default:
|
|
1439
|
-
_ =
|
|
1439
|
+
_ = x;
|
|
1440
1440
|
}
|
|
1441
|
-
return u ? _ :
|
|
1441
|
+
return u ? _ : q.a(_);
|
|
1442
1442
|
}, B.daysInMonth = function() {
|
|
1443
1443
|
return this.endOf(w).$D;
|
|
1444
1444
|
}, B.$locale = function() {
|
|
@@ -1448,7 +1448,7 @@ var cn = { exports: {} };
|
|
|
1448
1448
|
var u = this.clone(), _ = F(L, d, !0);
|
|
1449
1449
|
return _ && (u.$L = _), u;
|
|
1450
1450
|
}, B.clone = function() {
|
|
1451
|
-
return
|
|
1451
|
+
return q.w(this.$d, this);
|
|
1452
1452
|
}, B.toDate = function() {
|
|
1453
1453
|
return new Date(this.valueOf());
|
|
1454
1454
|
}, B.toJSON = function() {
|
|
@@ -1459,15 +1459,15 @@ var cn = { exports: {} };
|
|
|
1459
1459
|
return this.$d.toUTCString();
|
|
1460
1460
|
}, N;
|
|
1461
1461
|
}(), le = re.prototype;
|
|
1462
|
-
return
|
|
1462
|
+
return E.prototype = le, [["$ms", c], ["$s", s], ["$m", i], ["$H", a], ["$W", l], ["$M", w], ["$y", V], ["$D", j]].forEach(function(N) {
|
|
1463
1463
|
le[N[1]] = function(B) {
|
|
1464
1464
|
return this.$g(B, N[0], N[1]);
|
|
1465
1465
|
};
|
|
1466
|
-
}),
|
|
1467
|
-
return N.$i || (N(B, re,
|
|
1468
|
-
},
|
|
1469
|
-
return
|
|
1470
|
-
},
|
|
1466
|
+
}), E.extend = function(N, B) {
|
|
1467
|
+
return N.$i || (N(B, re, E), N.$i = !0), E;
|
|
1468
|
+
}, E.locale = F, E.isDayjs = m, E.unix = function(N) {
|
|
1469
|
+
return E(1e3 * N);
|
|
1470
|
+
}, E.en = b[D], E.Ls = b, E.p = {}, E;
|
|
1471
1471
|
});
|
|
1472
1472
|
})(cn);
|
|
1473
1473
|
var tr = cn.exports;
|
|
@@ -1532,31 +1532,31 @@ var un = { exports: {} };
|
|
|
1532
1532
|
function f(S) {
|
|
1533
1533
|
var k, R;
|
|
1534
1534
|
k = S, R = a && a.formats;
|
|
1535
|
-
for (var y = (S = k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(
|
|
1535
|
+
for (var y = (S = k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(E, q, re) {
|
|
1536
1536
|
var le = re && re.toUpperCase();
|
|
1537
|
-
return
|
|
1537
|
+
return q || R[re] || n[re] || R[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(N, B, L) {
|
|
1538
1538
|
return B || L.slice(1);
|
|
1539
1539
|
});
|
|
1540
1540
|
})).match(o), h = y.length, D = 0; D < h; D += 1) {
|
|
1541
1541
|
var b = y[D], A = j[b], m = A && A[0], F = A && A[1];
|
|
1542
1542
|
y[D] = F ? { regex: m, parser: F } : b.replace(/^\[|\]$/g, "");
|
|
1543
1543
|
}
|
|
1544
|
-
return function(
|
|
1545
|
-
for (var
|
|
1544
|
+
return function(E) {
|
|
1545
|
+
for (var q = {}, re = 0, le = 0; re < h; re += 1) {
|
|
1546
1546
|
var N = y[re];
|
|
1547
1547
|
if (typeof N == "string") le += N.length;
|
|
1548
1548
|
else {
|
|
1549
|
-
var B = N.regex, L = N.parser, d =
|
|
1550
|
-
L.call(
|
|
1549
|
+
var B = N.regex, L = N.parser, d = E.slice(le), u = B.exec(d)[0];
|
|
1550
|
+
L.call(q, u), E = E.replace(u, "");
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
return function(_) {
|
|
1554
1554
|
var O = _.afternoon;
|
|
1555
1555
|
if (O !== void 0) {
|
|
1556
|
-
var
|
|
1557
|
-
O ?
|
|
1556
|
+
var P = _.hours;
|
|
1557
|
+
O ? P < 12 && (_.hours += 12) : P === 12 && (_.hours = 0), delete _.afternoon;
|
|
1558
1558
|
}
|
|
1559
|
-
}(
|
|
1559
|
+
}(q), q;
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
1562
|
return function(S, k, R) {
|
|
@@ -1567,14 +1567,14 @@ var un = { exports: {} };
|
|
|
1567
1567
|
this.$u = A;
|
|
1568
1568
|
var F = m[1];
|
|
1569
1569
|
if (typeof F == "string") {
|
|
1570
|
-
var
|
|
1571
|
-
|
|
1570
|
+
var E = m[2] === !0, q = m[3] === !0, re = E || q, le = m[2];
|
|
1571
|
+
q && (le = m[2]), a = this.$locale(), !E && le && (a = R.Ls[le]), this.$d = function(d, u, _, O) {
|
|
1572
1572
|
try {
|
|
1573
1573
|
if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * d);
|
|
1574
|
-
var
|
|
1575
|
-
z && !G || (
|
|
1576
|
-
var
|
|
1577
|
-
return de ? new Date(Date.UTC(Ie,
|
|
1574
|
+
var P = f(u)(d), z = P.year, G = P.month, x = P.day, Q = P.hours, T = P.minutes, X = P.seconds, ue = P.milliseconds, de = P.zone, me = P.week, we = /* @__PURE__ */ new Date(), De = x || (z || G ? 1 : we.getDate()), Ie = z || we.getFullYear(), qe = 0;
|
|
1575
|
+
z && !G || (qe = G > 0 ? G - 1 : we.getMonth());
|
|
1576
|
+
var xe, nt = Q || 0, Ge = T || 0, v = X || 0, p = ue || 0;
|
|
1577
|
+
return de ? new Date(Date.UTC(Ie, qe, De, nt, Ge, v, p + 60 * de.offset * 1e3)) : _ ? new Date(Date.UTC(Ie, qe, De, nt, Ge, v, p)) : (xe = new Date(Ie, qe, De, nt, Ge, v, p), me && (xe = O(xe).week(me).toDate()), xe);
|
|
1578
1578
|
} catch {
|
|
1579
1579
|
return /* @__PURE__ */ new Date("");
|
|
1580
1580
|
}
|
|
@@ -1642,10 +1642,10 @@ var dn = { exports: {} };
|
|
|
1642
1642
|
var f = j && V, S = j || V || i, k = l(+s(), S);
|
|
1643
1643
|
if (typeof $ != "string") return s($).tz(S);
|
|
1644
1644
|
var R = function(b, A, m) {
|
|
1645
|
-
var F = b - 60 * A * 1e3,
|
|
1646
|
-
if (A ===
|
|
1647
|
-
var
|
|
1648
|
-
return
|
|
1645
|
+
var F = b - 60 * A * 1e3, E = l(F, m);
|
|
1646
|
+
if (A === E) return [F, A];
|
|
1647
|
+
var q = l(F -= 60 * (E - A) * 1e3, m);
|
|
1648
|
+
return E === q ? [F, E] : [b - 60 * Math.min(E, q) * 1e3, Math.max(E, q)];
|
|
1649
1649
|
}(s.utc($, f).valueOf(), k, S), y = R[0], h = R[1], D = s(y).utcOffset(h);
|
|
1650
1650
|
return D.$x.$timezone = S, D;
|
|
1651
1651
|
}, s.tz.guess = function() {
|
|
@@ -2061,7 +2061,7 @@ function _r(e = null) {
|
|
|
2061
2061
|
raw: e
|
|
2062
2062
|
};
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function qt(e) {
|
|
2065
2065
|
const t = kn(e), n = Cn(t), o = Br(t).flatMap(
|
|
2066
2066
|
(r) => $n(r, n)
|
|
2067
2067
|
);
|
|
@@ -2152,10 +2152,10 @@ function wn(e) {
|
|
|
2152
2152
|
function Cr(e, t, n) {
|
|
2153
2153
|
const o = Qe(e, ["sections", "sets", "list"]);
|
|
2154
2154
|
return o.length > 0 ? o.map(
|
|
2155
|
-
(r) =>
|
|
2156
|
-
) : e.infSetMark || e.infSetFields || e.fields ? [
|
|
2155
|
+
(r) => xt(r, t, n, o.length === 1)
|
|
2156
|
+
) : e.infSetMark || e.infSetFields || e.fields ? [xt(e, t, n, !0)] : [];
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function xt(e, t, n, o) {
|
|
2159
2159
|
const r = ce(e), c = kr(r.infSetMark ?? r), s = Tr(r.infSetFields ?? r.fields ?? []), i = Ir(c), a = Or(
|
|
2160
2160
|
r.infSetValues ?? r.rows ?? r.data,
|
|
2161
2161
|
s,
|
|
@@ -2214,10 +2214,10 @@ function Mr(e, t) {
|
|
|
2214
2214
|
code: o,
|
|
2215
2215
|
label: r,
|
|
2216
2216
|
value: n.value ?? n.defaultValue ?? "",
|
|
2217
|
-
type:
|
|
2217
|
+
type: Pr(n),
|
|
2218
2218
|
fieldType: se(n.fieldType),
|
|
2219
2219
|
frontInputType: se(n.frontInputType),
|
|
2220
|
-
renderType:
|
|
2220
|
+
renderType: Er(n),
|
|
2221
2221
|
required: Ce(n.required ?? n.isRequired),
|
|
2222
2222
|
readonly: Ce(n.readonly ?? n.disabled),
|
|
2223
2223
|
visible: n.visible === void 0 ? Ce(n.visibled ?? !0) : Ce(n.visible),
|
|
@@ -2408,13 +2408,13 @@ function Gt(e) {
|
|
|
2408
2408
|
const t = e.map((n) => ee(n)).filter(Boolean);
|
|
2409
2409
|
return t.length ? t : void 0;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function Er(e) {
|
|
2412
2412
|
if (Ce(e.htmlDisplay)) return "html";
|
|
2413
2413
|
if (Ce(e.multRow)) return "multi-row";
|
|
2414
2414
|
const t = ee(e.renderType).toLowerCase();
|
|
2415
2415
|
return t === "code" || t === "empty" ? t : "text";
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function Pr(e) {
|
|
2418
2418
|
const t = ee(
|
|
2419
2419
|
e.fieldType ?? e.type ?? e.frontInputType ?? e.renderType
|
|
2420
2420
|
).toLowerCase();
|
|
@@ -2456,7 +2456,7 @@ function Ce(e) {
|
|
|
2456
2456
|
e.toLowerCase()
|
|
2457
2457
|
) : !!e;
|
|
2458
2458
|
}
|
|
2459
|
-
const Ve = (e) => e.key || e.code, Me = (e) => e.key || e.setId, jr = (e) => String(e ?? "").trim(), tt = (e) => Array.from(new Set(e.map(jr).filter(Boolean))),
|
|
2459
|
+
const Ve = (e) => e.key || e.code, Me = (e) => e.key || e.setId, jr = (e) => String(e ?? "").trim(), tt = (e) => Array.from(new Set(e.map(jr).filter(Boolean))), He = (e) => !!(e && typeof e == "object" && "children" in e), Xe = (e) => tt([
|
|
2460
2460
|
e?.key,
|
|
2461
2461
|
e?.id,
|
|
2462
2462
|
e?.setId,
|
|
@@ -2482,7 +2482,7 @@ function Nr(e, t, n) {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
function Rr(e, t, n = {}) {
|
|
2484
2484
|
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, i = ze(c).some((a) => {
|
|
2485
|
-
if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !
|
|
2485
|
+
if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !qr(e, a))
|
|
2486
2486
|
return !1;
|
|
2487
2487
|
const l = o[a];
|
|
2488
2488
|
return l == null || l === "";
|
|
@@ -2498,10 +2498,10 @@ function Rr(e, t, n = {}) {
|
|
|
2498
2498
|
function zr(e) {
|
|
2499
2499
|
return !!(e && !ut(e) && ze(e).length === 0 && (e.options ?? []).length > 0);
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2501
|
+
function qr(e, t) {
|
|
2502
2502
|
return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Ve(n) === t);
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2504
|
+
function xr(e) {
|
|
2505
2505
|
return wn(e);
|
|
2506
2506
|
}
|
|
2507
2507
|
const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, at = (e) => {
|
|
@@ -2525,7 +2525,7 @@ function Yr(e) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
async function Ln(e) {
|
|
2527
2527
|
const t = e.params === void 0 ? void 0 : Te(e.params);
|
|
2528
|
-
return !e.formatter || !
|
|
2528
|
+
return !e.formatter || !Hr(e) ? t : e.formatter({
|
|
2529
2529
|
operation: e.operation,
|
|
2530
2530
|
interfaceOperation: e.field?.interface,
|
|
2531
2531
|
type: e.type,
|
|
@@ -2547,10 +2547,10 @@ async function Ln(e) {
|
|
|
2547
2547
|
params: t
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2550
|
+
function Hr(e) {
|
|
2551
2551
|
return e.requestSource === "inner" || e.requestSource === "sidebar" && e.type === "openTag";
|
|
2552
2552
|
}
|
|
2553
|
-
async function
|
|
2553
|
+
async function Ur(e) {
|
|
2554
2554
|
if (!e.service.requestOperation)
|
|
2555
2555
|
throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");
|
|
2556
2556
|
const t = e.operation.params === void 0 ? void 0 : Te(e.operation.params), n = Jr(t, e.context), o = await Ln({
|
|
@@ -2627,17 +2627,17 @@ function Wr(e) {
|
|
|
2627
2627
|
targetSections: c
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
const
|
|
2630
|
+
const En = Z(
|
|
2631
2631
|
"common.信息集不能为空,最后一条数据不可删除"
|
|
2632
2632
|
);
|
|
2633
2633
|
function Zr(e, t = [], n = {}) {
|
|
2634
2634
|
return !e.mark.isRequired || t.length > 0 ? null : Qr(n.emptyMessage, {
|
|
2635
2635
|
section: e,
|
|
2636
2636
|
infSetValues: t
|
|
2637
|
-
}) ||
|
|
2637
|
+
}) || En;
|
|
2638
2638
|
}
|
|
2639
2639
|
function Qr(e, t) {
|
|
2640
|
-
return typeof e == "function" ? e(t) : typeof e == "string" ? e :
|
|
2640
|
+
return typeof e == "function" ? e(t) : typeof e == "string" ? e : En;
|
|
2641
2641
|
}
|
|
2642
2642
|
const Re = (e) => new Error(`[GlobalInfo] ${e}`), Xr = (e) => [
|
|
2643
2643
|
String(e.method ?? "").toLowerCase(),
|
|
@@ -2707,7 +2707,7 @@ const ea = (e) => {
|
|
|
2707
2707
|
infSetId: p?.infSetId ?? v?.infSetId,
|
|
2708
2708
|
// setId 同样优先取 section,避免保存时拿错节点 setId。
|
|
2709
2709
|
setId: p?.setId ?? v?.setId
|
|
2710
|
-
}), y = async (v, p) =>
|
|
2710
|
+
}), y = async (v, p) => Ur({
|
|
2711
2711
|
service: e.service,
|
|
2712
2712
|
formatter: e.formatOperationParams,
|
|
2713
2713
|
operation: v,
|
|
@@ -2741,8 +2741,8 @@ const ea = (e) => {
|
|
|
2741
2741
|
activeNode: i.value,
|
|
2742
2742
|
activeSection: a.value,
|
|
2743
2743
|
searchText: p?.searchText
|
|
2744
|
-
}), Y = { ...v, params: C },
|
|
2745
|
-
return h(Y,
|
|
2744
|
+
}), Y = { ...v, params: C }, U = p && { ...p, params: C };
|
|
2745
|
+
return h(Y, U);
|
|
2746
2746
|
}, b = (v, p) => {
|
|
2747
2747
|
if (!p)
|
|
2748
2748
|
return v[0] ?? null;
|
|
@@ -2756,7 +2756,7 @@ const ea = (e) => {
|
|
|
2756
2756
|
return null;
|
|
2757
2757
|
}, A = (v = a.value) => {
|
|
2758
2758
|
if (v)
|
|
2759
|
-
return typeof v == "string" ? v :
|
|
2759
|
+
return typeof v == "string" ? v : He(v) ? E(v) : Me(v);
|
|
2760
2760
|
}, m = (v = a.value) => {
|
|
2761
2761
|
const p = A(v);
|
|
2762
2762
|
if (!p)
|
|
@@ -2767,11 +2767,11 @@ const ea = (e) => {
|
|
|
2767
2767
|
const p = A(v);
|
|
2768
2768
|
if (p)
|
|
2769
2769
|
return g.value[p] ?? p;
|
|
2770
|
-
},
|
|
2770
|
+
}, E = (v = a.value) => {
|
|
2771
2771
|
if (v)
|
|
2772
|
-
return typeof v == "string" ? v :
|
|
2773
|
-
},
|
|
2774
|
-
if (
|
|
2772
|
+
return typeof v == "string" ? v : He(v) ? v.setId ?? v.infSetId ?? v.key : Me(v);
|
|
2773
|
+
}, q = (v = a.value) => {
|
|
2774
|
+
if (He(v))
|
|
2775
2775
|
return v;
|
|
2776
2776
|
if (typeof v == "string") {
|
|
2777
2777
|
const p = b(c.value, v);
|
|
@@ -2781,8 +2781,8 @@ const ea = (e) => {
|
|
|
2781
2781
|
return C?.ownerNodeKey ? b(c.value, C.ownerNodeKey) ?? i.value : C || i.value && Xe(i.value).includes(v) ? i.value : null;
|
|
2782
2782
|
}
|
|
2783
2783
|
return v?.ownerNodeKey ? b(c.value, v.ownerNodeKey) ?? i.value : i.value;
|
|
2784
|
-
}, re = (v = a.value) => !v ||
|
|
2785
|
-
const p =
|
|
2784
|
+
}, re = (v = a.value) => !v || He(v) ? null : m(v), le = (v = a.value) => {
|
|
2785
|
+
const p = E(v);
|
|
2786
2786
|
if (!p)
|
|
2787
2787
|
return Je();
|
|
2788
2788
|
const C = g.value[p] ?? p;
|
|
@@ -2795,7 +2795,7 @@ const ea = (e) => {
|
|
|
2795
2795
|
)
|
|
2796
2796
|
});
|
|
2797
2797
|
}, N = (v, p) => {
|
|
2798
|
-
const C =
|
|
2798
|
+
const C = E(v);
|
|
2799
2799
|
C && ($.value = {
|
|
2800
2800
|
...$.value,
|
|
2801
2801
|
[C]: Je({
|
|
@@ -2809,7 +2809,7 @@ const ea = (e) => {
|
|
|
2809
2809
|
});
|
|
2810
2810
|
}, B = (v = s.value?.raw ?? null, p = i.value) => {
|
|
2811
2811
|
const C = j.value, Y = a.value && C.find(
|
|
2812
|
-
(
|
|
2812
|
+
(U) => Me(U) === Me(a.value)
|
|
2813
2813
|
) ? a.value : null;
|
|
2814
2814
|
s.value = {
|
|
2815
2815
|
// 保留原 scheme。
|
|
@@ -2856,23 +2856,23 @@ const ea = (e) => {
|
|
|
2856
2856
|
const C = F(v), Y = C ? l.value[C] : null;
|
|
2857
2857
|
if (!C || !Y)
|
|
2858
2858
|
return;
|
|
2859
|
-
const
|
|
2859
|
+
const U = p(Y);
|
|
2860
2860
|
l.value = {
|
|
2861
2861
|
...l.value,
|
|
2862
|
-
[C]:
|
|
2863
|
-
}, a.value = Me(a.value ??
|
|
2862
|
+
[C]: U
|
|
2863
|
+
}, a.value = Me(a.value ?? U) === C ? U : a.value, B();
|
|
2864
2864
|
}, u = async (v = a.value ?? i.value) => {
|
|
2865
|
-
const p = re(v), C =
|
|
2865
|
+
const p = re(v), C = q(v) ?? i.value, Y = E(v);
|
|
2866
2866
|
if (!C)
|
|
2867
2867
|
return null;
|
|
2868
2868
|
if (!e.service.requestOperation)
|
|
2869
2869
|
throw Re("service.requestOperation is required");
|
|
2870
2870
|
n.value = !0, r.value = null, N(Y ?? C, { loading: !0, error: null });
|
|
2871
2871
|
try {
|
|
2872
|
-
const
|
|
2873
|
-
if (
|
|
2872
|
+
const U = p ? [{ infSetId: p.infSetId, setId: p.setId, operationInfo: p.operationInfo, raw: p.raw }] : C.infSetList;
|
|
2873
|
+
if (U.length === 0)
|
|
2874
2874
|
throw Re("node.infSetList is required");
|
|
2875
|
-
const $e = await Promise.all(
|
|
2875
|
+
const $e = await Promise.all(U.map(async (ie) => {
|
|
2876
2876
|
const he = Kr(p, C, ie.infSetId), Ae = p?.requestTagId ?? p?.tagId ?? C.tagId, ot = {
|
|
2877
2877
|
...R(C, p),
|
|
2878
2878
|
tagId: Ae,
|
|
@@ -2898,19 +2898,19 @@ const ea = (e) => {
|
|
|
2898
2898
|
sectionMap: Object.fromEntries($e.flatMap((ie) => ie.sections).map((ie) => [ie.key, ie]))
|
|
2899
2899
|
};
|
|
2900
2900
|
return L(ve, C, Y);
|
|
2901
|
-
} catch (
|
|
2902
|
-
throw r.value =
|
|
2901
|
+
} catch (U) {
|
|
2902
|
+
throw r.value = U, N(Y ?? C, { loading: !1, error: U }), U;
|
|
2903
2903
|
} finally {
|
|
2904
2904
|
n.value = !1, N(Y ?? C, { loading: !1 });
|
|
2905
2905
|
}
|
|
2906
2906
|
}, _ = (v = a.value) => u(v), O = (v = a.value) => {
|
|
2907
2907
|
if (!v)
|
|
2908
2908
|
return null;
|
|
2909
|
-
if (!
|
|
2909
|
+
if (!He(v) && typeof v != "string")
|
|
2910
2910
|
return m(v);
|
|
2911
|
-
const p =
|
|
2911
|
+
const p = E(v);
|
|
2912
2912
|
return p ? l.value[g.value[p] ?? p] ?? null : null;
|
|
2913
|
-
},
|
|
2913
|
+
}, P = async (v = i.value) => v ? (await u(v), s.value) : (s.value = null, a.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, null), z = async (v) => {
|
|
2914
2914
|
const p = Gr(v);
|
|
2915
2915
|
if (!p)
|
|
2916
2916
|
return v.children;
|
|
@@ -2921,13 +2921,13 @@ const ea = (e) => {
|
|
|
2921
2921
|
node: v,
|
|
2922
2922
|
params: C
|
|
2923
2923
|
});
|
|
2924
|
-
return
|
|
2924
|
+
return qt(Y).treeNodes;
|
|
2925
2925
|
}, G = async (v) => {
|
|
2926
2926
|
if (v.loaded)
|
|
2927
2927
|
return v.children;
|
|
2928
2928
|
const p = await z(v);
|
|
2929
2929
|
return p.length > 0 && (c.value = Sn(c.value, v.key, p)), p;
|
|
2930
|
-
},
|
|
2930
|
+
}, x = async (v) => {
|
|
2931
2931
|
const p = typeof v == "string" ? b(c.value, v) : v;
|
|
2932
2932
|
return p ? (i.value = p, a.value = null, V.value = [], await G(p), B(s.value?.raw, p), p) : null;
|
|
2933
2933
|
}, Q = async () => {
|
|
@@ -2936,7 +2936,7 @@ const ea = (e) => {
|
|
|
2936
2936
|
throw Re("service.templateTree is required");
|
|
2937
2937
|
t.value = !0, r.value = null;
|
|
2938
2938
|
try {
|
|
2939
|
-
const p = await v(S()), C =
|
|
2939
|
+
const p = await v(S()), C = qt(p), Y = await Promise.all(
|
|
2940
2940
|
C.treeNodes.map(async ($e) => {
|
|
2941
2941
|
const ve = await z($e);
|
|
2942
2942
|
return {
|
|
@@ -2947,11 +2947,11 @@ const ea = (e) => {
|
|
|
2947
2947
|
})
|
|
2948
2948
|
);
|
|
2949
2949
|
c.value = Y, a.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, V.value = [];
|
|
2950
|
-
const
|
|
2951
|
-
return i.value =
|
|
2950
|
+
const U = b(Y, e.initialActiveNodeKey) ?? b(Y);
|
|
2951
|
+
return i.value = U, s.value = {
|
|
2952
2952
|
...C,
|
|
2953
2953
|
treeNodes: Y,
|
|
2954
|
-
activeNode:
|
|
2954
|
+
activeNode: U,
|
|
2955
2955
|
sectionMap: l.value,
|
|
2956
2956
|
sections: j.value
|
|
2957
2957
|
}, c.value;
|
|
@@ -2980,30 +2980,30 @@ const ea = (e) => {
|
|
|
2980
2980
|
), N(p, { editing: !1 }));
|
|
2981
2981
|
}, me = (v, p, C) => {
|
|
2982
2982
|
const Y = typeof p == "string" ? p : Ve(p);
|
|
2983
|
-
d(v, (
|
|
2984
|
-
const ve = (typeof p == "string" ?
|
|
2985
|
-
...
|
|
2983
|
+
d(v, (U) => {
|
|
2984
|
+
const ve = (typeof p == "string" ? U.fields.find((he) => Ve(he) === Y || he.code === Y) : p)?.cascadeClearFields ?? [], ie = {
|
|
2985
|
+
...U.model,
|
|
2986
2986
|
[Y]: C
|
|
2987
2987
|
};
|
|
2988
2988
|
return ve.forEach((he) => {
|
|
2989
2989
|
ie[he] = "";
|
|
2990
2990
|
}), {
|
|
2991
2991
|
// 保留 section 其它元数据。
|
|
2992
|
-
...
|
|
2992
|
+
...U,
|
|
2993
2993
|
// 更新表单 model。
|
|
2994
2994
|
model: ie,
|
|
2995
2995
|
// 表单类型同步更新第一行 rows,方便保存时统一从 rows 构造 payload。
|
|
2996
|
-
rows:
|
|
2996
|
+
rows: U.renderType === "form" ? [{ ...U.rows[0], ...ie }] : U.rows,
|
|
2997
2997
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
2998
|
-
fields:
|
|
2998
|
+
fields: U.fields.map((he) => {
|
|
2999
2999
|
const Ae = Ve(he);
|
|
3000
3000
|
return Ae === Y || he.code === Y ? { ...he, value: C } : ve.includes(Ae) || ve.includes(he.code) ? { ...he, value: "" } : he;
|
|
3001
3001
|
})
|
|
3002
3002
|
};
|
|
3003
3003
|
});
|
|
3004
3004
|
}, we = async (v, p, C = {}, Y = {}) => {
|
|
3005
|
-
const
|
|
3006
|
-
if (!
|
|
3005
|
+
const U = m(v);
|
|
3006
|
+
if (!U)
|
|
3007
3007
|
return [];
|
|
3008
3008
|
const $e = {
|
|
3009
3009
|
...C,
|
|
@@ -3014,16 +3014,16 @@ const ea = (e) => {
|
|
|
3014
3014
|
sourceModel: he,
|
|
3015
3015
|
sourceRow: Ae,
|
|
3016
3016
|
missingDependField: ot
|
|
3017
|
-
} = Rr(
|
|
3017
|
+
} = Rr(U, p, $e), Ke = ie?.interface;
|
|
3018
3018
|
if (!ie || !Ke)
|
|
3019
3019
|
return ie?.options ?? [];
|
|
3020
3020
|
if (zr(ie))
|
|
3021
3021
|
return ie.options ?? [];
|
|
3022
3022
|
if (ot)
|
|
3023
|
-
return d(
|
|
3023
|
+
return d(U, (Ye) => ({
|
|
3024
3024
|
...Ye,
|
|
3025
3025
|
fields: Ye.fields.map(
|
|
3026
|
-
(
|
|
3026
|
+
(Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: [] } : Pe
|
|
3027
3027
|
)
|
|
3028
3028
|
})), [];
|
|
3029
3029
|
const Yn = await D(
|
|
@@ -3033,9 +3033,9 @@ const ea = (e) => {
|
|
|
3033
3033
|
{
|
|
3034
3034
|
type: "fieldOptions",
|
|
3035
3035
|
requestSource: "inner",
|
|
3036
|
-
tagId:
|
|
3037
|
-
node:
|
|
3038
|
-
section:
|
|
3036
|
+
tagId: U.requestTagId ?? U.tagId,
|
|
3037
|
+
node: q(U),
|
|
3038
|
+
section: U,
|
|
3039
3039
|
field: ie,
|
|
3040
3040
|
params: Te(Ke.params),
|
|
3041
3041
|
// searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
|
|
@@ -3043,11 +3043,11 @@ const ea = (e) => {
|
|
|
3043
3043
|
row: Ae,
|
|
3044
3044
|
searchText: Y.searchText
|
|
3045
3045
|
}
|
|
3046
|
-
), Dt =
|
|
3047
|
-
return d(
|
|
3046
|
+
), Dt = xr(Yn);
|
|
3047
|
+
return d(U, (Ye) => ({
|
|
3048
3048
|
...Ye,
|
|
3049
3049
|
fields: Ye.fields.map(
|
|
3050
|
-
(
|
|
3050
|
+
(Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: Dt } : Pe
|
|
3051
3051
|
)
|
|
3052
3052
|
})), Dt;
|
|
3053
3053
|
}, De = (v, p) => {
|
|
@@ -3077,9 +3077,9 @@ const ea = (e) => {
|
|
|
3077
3077
|
// 加载模板树。
|
|
3078
3078
|
loadTree: Q,
|
|
3079
3079
|
// 选中树节点。
|
|
3080
|
-
selectNode:
|
|
3080
|
+
selectNode: x,
|
|
3081
3081
|
// 加载当前节点详情。
|
|
3082
|
-
loadDetail:
|
|
3082
|
+
loadDetail: P,
|
|
3083
3083
|
// 刷新当前详情。
|
|
3084
3084
|
reloadActiveSection: T,
|
|
3085
3085
|
// 加载指定节点或 section。
|
|
@@ -3104,15 +3104,15 @@ const ea = (e) => {
|
|
|
3104
3104
|
updateTableRows: Ie,
|
|
3105
3105
|
// 保存单行到本地缓存。
|
|
3106
3106
|
saveRow: (v, p = {}, C = -1) => {
|
|
3107
|
-
const
|
|
3108
|
-
|
|
3107
|
+
const U = [...m(v)?.rows ?? []];
|
|
3108
|
+
U.splice(C >= 0 ? C : U.length, C >= 0 ? 1 : 0, p), Ie(v, U);
|
|
3109
3109
|
},
|
|
3110
3110
|
// 删除单行本地缓存。
|
|
3111
3111
|
deleteRow: (v, p) => {
|
|
3112
|
-
const C = m(v), Y = typeof p == "string" ? Number(p) : p,
|
|
3112
|
+
const C = m(v), Y = typeof p == "string" ? Number(p) : p, U = (C?.rows ?? []).filter(
|
|
3113
3113
|
($e, ve) => ve !== Y
|
|
3114
3114
|
);
|
|
3115
|
-
Ie(v,
|
|
3115
|
+
Ie(v, U);
|
|
3116
3116
|
},
|
|
3117
3117
|
// 调用接口保存 section。
|
|
3118
3118
|
saveSection: async (v = a.value) => {
|
|
@@ -3125,7 +3125,7 @@ const ea = (e) => {
|
|
|
3125
3125
|
o.value = !0, r.value = null, p && p !== Me(C) && N(p, { saving: !0, error: null }), N(C, { saving: !0, error: null });
|
|
3126
3126
|
try {
|
|
3127
3127
|
const {
|
|
3128
|
-
tagId:
|
|
3128
|
+
tagId: U,
|
|
3129
3129
|
...$e
|
|
3130
3130
|
} = R(i.value, C), ve = $r(C, $e), ie = Zr(
|
|
3131
3131
|
C,
|
|
@@ -3150,8 +3150,8 @@ const ea = (e) => {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
);
|
|
3152
3152
|
return de(C), await _(C), he;
|
|
3153
|
-
} catch (
|
|
3154
|
-
throw r.value =
|
|
3153
|
+
} catch (U) {
|
|
3154
|
+
throw r.value = U, p && p !== Me(C) && N(p, { saving: !1, error: U }), N(C, { saving: !1, error: U }), U;
|
|
3155
3155
|
} finally {
|
|
3156
3156
|
o.value = !1, p && p !== Me(C) && N(p, { saving: !1 }), N(C, { saving: !1 });
|
|
3157
3157
|
}
|
|
@@ -3165,7 +3165,7 @@ const ea = (e) => {
|
|
|
3165
3165
|
() => {
|
|
3166
3166
|
(e.autoLoad ?? !0) && Q();
|
|
3167
3167
|
}
|
|
3168
|
-
),
|
|
3168
|
+
), Ut(() => {
|
|
3169
3169
|
(e.autoLoad ?? !0) && Q();
|
|
3170
3170
|
}), {
|
|
3171
3171
|
// 当前 viewModel。
|
|
@@ -3213,7 +3213,7 @@ const ea = (e) => {
|
|
|
3213
3213
|
})));
|
|
3214
3214
|
}
|
|
3215
3215
|
});
|
|
3216
|
-
function
|
|
3216
|
+
function Pn(e) {
|
|
3217
3217
|
if (e.action) {
|
|
3218
3218
|
if (e.action.type === "direct") {
|
|
3219
3219
|
Ft(e.action.options);
|
|
@@ -3318,10 +3318,10 @@ const ta = {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
return Ze(u, j.value) ? j.value : u.value;
|
|
3320
3320
|
}
|
|
3321
|
-
function
|
|
3321
|
+
function E(u) {
|
|
3322
3322
|
o("update:modelValue", re(u));
|
|
3323
3323
|
}
|
|
3324
|
-
function
|
|
3324
|
+
function q(u) {
|
|
3325
3325
|
o("change", re(u));
|
|
3326
3326
|
}
|
|
3327
3327
|
function re(u) {
|
|
@@ -3339,18 +3339,18 @@ const ta = {
|
|
|
3339
3339
|
l.value || c.value?.click();
|
|
3340
3340
|
}
|
|
3341
3341
|
function L(u) {
|
|
3342
|
-
|
|
3342
|
+
Pn(u);
|
|
3343
3343
|
}
|
|
3344
3344
|
Xn(() => {
|
|
3345
3345
|
m && clearTimeout(m);
|
|
3346
3346
|
});
|
|
3347
3347
|
function d(u) {
|
|
3348
|
-
const _ = u.target, O = Array.from(_.files ?? []),
|
|
3349
|
-
P
|
|
3348
|
+
const _ = u.target, O = Array.from(_.files ?? []), P = n.field.props?.multiple ? O : O[0] ?? null;
|
|
3349
|
+
E(P), q(P);
|
|
3350
3350
|
}
|
|
3351
3351
|
return (u, _) => {
|
|
3352
|
-
const O = Xt,
|
|
3353
|
-
return s.value === "select" || s.value === "select_remote" ? (I(),
|
|
3352
|
+
const O = Xt, P = Qt, z = Wt, G = ao, x = so, Q = Zt;
|
|
3353
|
+
return s.value === "select" || s.value === "select_remote" ? (I(), H(P, ae({
|
|
3354
3354
|
key: 0,
|
|
3355
3355
|
class: "global-info-field-control"
|
|
3356
3356
|
}, u.field.props, {
|
|
@@ -3367,11 +3367,11 @@ const ta = {
|
|
|
3367
3367
|
"remote-method": i.value ? N : u.field.props?.remoteMethod,
|
|
3368
3368
|
clearable: "",
|
|
3369
3369
|
onVisibleChange: le,
|
|
3370
|
-
"onUpdate:modelValue":
|
|
3371
|
-
onChange:
|
|
3370
|
+
"onUpdate:modelValue": E,
|
|
3371
|
+
onChange: q
|
|
3372
3372
|
}), {
|
|
3373
3373
|
default: W(() => [
|
|
3374
|
-
(I(!0), K(Se, null, ye(f.value, (T) => (I(),
|
|
3374
|
+
(I(!0), K(Se, null, ye(f.value, (T) => (I(), H(O, {
|
|
3375
3375
|
key: String(T.value),
|
|
3376
3376
|
label: T.label,
|
|
3377
3377
|
value: T.value
|
|
@@ -3386,7 +3386,7 @@ const ta = {
|
|
|
3386
3386
|
}, 1032, ["label", "value"]))), 128))
|
|
3387
3387
|
]),
|
|
3388
3388
|
_: 1
|
|
3389
|
-
}, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (I(),
|
|
3389
|
+
}, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (I(), H(z, ae({
|
|
3390
3390
|
key: 1,
|
|
3391
3391
|
class: "global-info-field-control"
|
|
3392
3392
|
}, u.field.props, {
|
|
@@ -3395,9 +3395,9 @@ const ta = {
|
|
|
3395
3395
|
disabled: l.value,
|
|
3396
3396
|
type: "date",
|
|
3397
3397
|
"value-format": "YYYY-MM-DD",
|
|
3398
|
-
"onUpdate:modelValue":
|
|
3399
|
-
onChange:
|
|
3400
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (I(),
|
|
3398
|
+
"onUpdate:modelValue": E,
|
|
3399
|
+
onChange: q
|
|
3400
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (I(), H(G, ae({
|
|
3401
3401
|
key: 2,
|
|
3402
3402
|
class: "global-info-field-control"
|
|
3403
3403
|
}, u.field.props, {
|
|
@@ -3405,16 +3405,16 @@ const ta = {
|
|
|
3405
3405
|
placeholder: A.value,
|
|
3406
3406
|
disabled: l.value,
|
|
3407
3407
|
"controls-position": "right",
|
|
3408
|
-
"onUpdate:modelValue":
|
|
3409
|
-
onChange:
|
|
3410
|
-
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (I(),
|
|
3408
|
+
"onUpdate:modelValue": E,
|
|
3409
|
+
onChange: q
|
|
3410
|
+
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (I(), H(x, ae({
|
|
3411
3411
|
key: 3,
|
|
3412
3412
|
class: "global-info-field-control global-info-field-control--switch"
|
|
3413
3413
|
}, u.field.props, {
|
|
3414
3414
|
"model-value": R.value,
|
|
3415
3415
|
disabled: l.value,
|
|
3416
|
-
"onUpdate:modelValue":
|
|
3417
|
-
onChange:
|
|
3416
|
+
"onUpdate:modelValue": E,
|
|
3417
|
+
onChange: q
|
|
3418
3418
|
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (I(), K("div", {
|
|
3419
3419
|
key: 4,
|
|
3420
3420
|
class: We(["global-info-field-control global-info-field-control--file", {
|
|
@@ -3442,18 +3442,18 @@ const ta = {
|
|
|
3442
3442
|
key: 0,
|
|
3443
3443
|
class: "global-info-field-control__file-preview",
|
|
3444
3444
|
type: "button",
|
|
3445
|
-
onClick:
|
|
3445
|
+
onClick: Ht((ue) => L(T), ["stop", "prevent"])
|
|
3446
3446
|
}, oe(T.text), 9, sa)) : (I(), K("span", la, oe(T.text), 1)),
|
|
3447
3447
|
X < b.value.length - 1 ? (I(), K("span", ia, "、")) : fe("", !0)
|
|
3448
3448
|
], 64))), 128))
|
|
3449
3449
|
])) : h.value ? (I(), K("span", ca, oe(D.value), 1)) : (I(), K("span", ua, oe(J(Z)("common.上传")), 1))
|
|
3450
|
-
], 2)) : s.value === "empty" ? (I(),
|
|
3450
|
+
], 2)) : s.value === "empty" ? (I(), H(Q, {
|
|
3451
3451
|
key: 5,
|
|
3452
3452
|
class: "global-info-field-control",
|
|
3453
3453
|
"model-value": "",
|
|
3454
3454
|
disabled: "",
|
|
3455
3455
|
placeholder: "-"
|
|
3456
|
-
})) : (I(),
|
|
3456
|
+
})) : (I(), H(Q, ae({
|
|
3457
3457
|
key: 6,
|
|
3458
3458
|
class: ["global-info-field-control", {
|
|
3459
3459
|
"global-info-field-control--textarea": r.includes(s.value),
|
|
@@ -3466,12 +3466,12 @@ const ta = {
|
|
|
3466
3466
|
type: r.includes(s.value) ? "textarea" : "text",
|
|
3467
3467
|
rows: r.includes(s.value) ? y.value : void 0,
|
|
3468
3468
|
resize: $.value,
|
|
3469
|
-
"onUpdate:modelValue":
|
|
3470
|
-
onChange:
|
|
3469
|
+
"onUpdate:modelValue": E,
|
|
3470
|
+
onChange: q
|
|
3471
3471
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3472
3472
|
};
|
|
3473
3473
|
}
|
|
3474
|
-
}), Vn = /* @__PURE__ */ be(da, [["__scopeId", "data-v-
|
|
3474
|
+
}), Vn = /* @__PURE__ */ be(da, [["__scopeId", "data-v-7e96b4e7"]]), fa = ["innerHTML"], pa = {
|
|
3475
3475
|
key: 1,
|
|
3476
3476
|
class: "global-info-field-value global-info-field-value--code"
|
|
3477
3477
|
}, ma = {
|
|
@@ -3488,7 +3488,7 @@ const ta = {
|
|
|
3488
3488
|
setup(e) {
|
|
3489
3489
|
const t = e, n = M(() => Mt(t.field)), o = M(() => n.value === "empty" || _e(t.value)), r = M(() => mn(t.field, t.value, t.emptyText)), c = M(() => hn(t.field, t.value, t.emptyText));
|
|
3490
3490
|
function s(i) {
|
|
3491
|
-
|
|
3491
|
+
Pn(i);
|
|
3492
3492
|
}
|
|
3493
3493
|
return (i, a) => n.value === "html" && !o.value ? (I(), K("span", {
|
|
3494
3494
|
key: 0,
|
|
@@ -3514,7 +3514,7 @@ const ta = {
|
|
|
3514
3514
|
}])
|
|
3515
3515
|
}, oe(r.value), 3));
|
|
3516
3516
|
}
|
|
3517
|
-
}), jn = /* @__PURE__ */ be(ya, [["__scopeId", "data-v-
|
|
3517
|
+
}), jn = /* @__PURE__ */ be(ya, [["__scopeId", "data-v-6134bbbd"]]);
|
|
3518
3518
|
function ba(e) {
|
|
3519
3519
|
const t = Tt(e);
|
|
3520
3520
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
@@ -3541,7 +3541,7 @@ function Rn(e, t, n) {
|
|
|
3541
3541
|
function zn(e, t) {
|
|
3542
3542
|
return [e.code, e.key, e.id].map((o) => t[o]).filter((o) => !_e(o))[0] ?? e.value;
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function qn(e, t) {
|
|
3545
3545
|
return ut(e) ? {
|
|
3546
3546
|
searchText: t == null ? "" : String(t)
|
|
3547
3547
|
} : {};
|
|
@@ -3563,7 +3563,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3563
3563
|
renderConfig: {}
|
|
3564
3564
|
},
|
|
3565
3565
|
setup(e) {
|
|
3566
|
-
const t = e, n =
|
|
3566
|
+
const t = e, n = Ee(), o = M(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), c = M(() => ft(
|
|
3567
3567
|
t.section.fields,
|
|
3568
3568
|
t.section,
|
|
3569
3569
|
t.renderConfig,
|
|
@@ -3596,8 +3596,8 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3596
3596
|
selectedOption: m[0],
|
|
3597
3597
|
selectedOptions: m
|
|
3598
3598
|
};
|
|
3599
|
-
Promise.resolve(A(F)).catch((
|
|
3600
|
-
console.error("[GlobalInfoFormRenderer] field business change failed",
|
|
3599
|
+
Promise.resolve(A(F)).catch((E) => {
|
|
3600
|
+
console.error("[GlobalInfoFormRenderer] field business change failed", E);
|
|
3601
3601
|
});
|
|
3602
3602
|
} catch (m) {
|
|
3603
3603
|
console.error("[GlobalInfoFormRenderer] field business change failed", m);
|
|
@@ -3613,13 +3613,13 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3613
3613
|
function w(h, D) {
|
|
3614
3614
|
const A = g().flatMap((m) => {
|
|
3615
3615
|
const F = m.key === h.key ? D : m.renderType === "table" ? m.rows : m.model;
|
|
3616
|
-
return [m.key, m.id, m.setId, m.infSetId, m.code].filter(Boolean).map((
|
|
3616
|
+
return [m.key, m.id, m.setId, m.infSetId, m.code].filter(Boolean).map((E) => [String(E), F]);
|
|
3617
3617
|
});
|
|
3618
3618
|
return Object.fromEntries(A);
|
|
3619
3619
|
}
|
|
3620
3620
|
async function $(h, D = {}, b = o.value) {
|
|
3621
|
-
const A = b, m = k(h), F = st(t.section.key, h, A),
|
|
3622
|
-
if (!An(D) && lt(h,
|
|
3621
|
+
const A = b, m = k(h), F = st(t.section.key, h, A), E = r.get(m);
|
|
3622
|
+
if (!An(D) && lt(h, E, F)) {
|
|
3623
3623
|
r.set(m, F);
|
|
3624
3624
|
return;
|
|
3625
3625
|
}
|
|
@@ -3638,12 +3638,12 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3638
3638
|
if (D && !Nn(b, D)) continue;
|
|
3639
3639
|
const A = zn(b, h);
|
|
3640
3640
|
if (!R(b, A)) continue;
|
|
3641
|
-
const m = st(t.section.key, b, h), F = k(b),
|
|
3642
|
-
if (lt(b,
|
|
3641
|
+
const m = st(t.section.key, b, h), F = k(b), E = r.get(F);
|
|
3642
|
+
if (lt(b, E, m)) {
|
|
3643
3643
|
r.set(F, m);
|
|
3644
3644
|
continue;
|
|
3645
3645
|
}
|
|
3646
|
-
|
|
3646
|
+
E !== m && await $(b, qn(b, A), h);
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
3649
|
Le(
|
|
@@ -3680,8 +3680,8 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3680
3680
|
if (A !== b && n[A]) return A;
|
|
3681
3681
|
const m = String(h.raw?.type || h.fieldType || h.type || "").trim(), F = m ? `field-type-${m}` : "";
|
|
3682
3682
|
if (F && n[F]) return F;
|
|
3683
|
-
const
|
|
3684
|
-
return
|
|
3683
|
+
const E = F.toLowerCase();
|
|
3684
|
+
return E !== F && n[E] ? E : "";
|
|
3685
3685
|
}
|
|
3686
3686
|
function S(h) {
|
|
3687
3687
|
return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
|
|
@@ -3697,7 +3697,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3697
3697
|
}
|
|
3698
3698
|
return (h, D) => {
|
|
3699
3699
|
const b = en, A = tn;
|
|
3700
|
-
return I(),
|
|
3700
|
+
return I(), H(A, {
|
|
3701
3701
|
class: "global-info-form-renderer",
|
|
3702
3702
|
model: o.value,
|
|
3703
3703
|
"label-position": "top"
|
|
@@ -3716,21 +3716,21 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3716
3716
|
label: W(() => [
|
|
3717
3717
|
ne("span", _a, [
|
|
3718
3718
|
y(m) ? (I(), K("span", wa, "*")) : fe("", !0),
|
|
3719
|
-
|
|
3719
|
+
Ue(" " + oe(m.label), 1)
|
|
3720
3720
|
])
|
|
3721
3721
|
]),
|
|
3722
3722
|
default: W(() => [
|
|
3723
3723
|
f(m) ? te(h.$slots, f(m), ae({
|
|
3724
3724
|
key: 0,
|
|
3725
3725
|
ref_for: !0
|
|
3726
|
-
}, j(m)), void 0, !0) : h.editing && !m.readonly ? (I(),
|
|
3726
|
+
}, j(m)), void 0, !0) : h.editing && !m.readonly ? (I(), H(Vn, {
|
|
3727
3727
|
key: 1,
|
|
3728
3728
|
field: m,
|
|
3729
3729
|
"model-value": o.value[m.code],
|
|
3730
3730
|
section: h.section,
|
|
3731
3731
|
onLoadOptions: (F) => $(m, F),
|
|
3732
3732
|
"onUpdate:modelValue": (F) => i(m, F)
|
|
3733
|
-
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (I(),
|
|
3733
|
+
}, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
|
|
3734
3734
|
key: 2,
|
|
3735
3735
|
field: m,
|
|
3736
3736
|
value: o.value[m.code],
|
|
@@ -3746,7 +3746,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3746
3746
|
}, 8, ["model"]);
|
|
3747
3747
|
};
|
|
3748
3748
|
}
|
|
3749
|
-
}), $a = /* @__PURE__ */ be(Ia, [["__scopeId", "data-v-
|
|
3749
|
+
}), $a = /* @__PURE__ */ be(Ia, [["__scopeId", "data-v-22bc995f"]]), Ca = /* @__PURE__ */ pe({
|
|
3750
3750
|
name: "GlobalInfoDeleteConfirm",
|
|
3751
3751
|
__name: "GlobalInfoDeleteConfirm",
|
|
3752
3752
|
props: {
|
|
@@ -3758,7 +3758,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3758
3758
|
setup(e) {
|
|
3759
3759
|
return (t, n) => {
|
|
3760
3760
|
const o = lo;
|
|
3761
|
-
return I(),
|
|
3761
|
+
return I(), H(o, {
|
|
3762
3762
|
title: t.title,
|
|
3763
3763
|
"confirm-button-text": t.confirmText,
|
|
3764
3764
|
"cancel-button-text": t.cancelText,
|
|
@@ -3791,7 +3791,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3791
3791
|
renderConfig: {}
|
|
3792
3792
|
},
|
|
3793
3793
|
setup(e) {
|
|
3794
|
-
const t = e, n =
|
|
3794
|
+
const t = e, n = Ee(), o = M(
|
|
3795
3795
|
() => t.section.fields.some((d) => jt(d))
|
|
3796
3796
|
), r = M(() => o.value), c = M(
|
|
3797
3797
|
() => t.renderConfig?.sequenceLabel ?? Z("common.序号")
|
|
@@ -3810,7 +3810,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3810
3810
|
return r.value ? d.filter((u) => !re(u)) : d;
|
|
3811
3811
|
}), l = /* @__PURE__ */ new Map(), g = ln(
|
|
3812
3812
|
async (d, u, _) => t.actions.loadFieldOptions(t.section, d, u, _),
|
|
3813
|
-
(d, u) => `${t.section.key}:${B(u)}:${
|
|
3813
|
+
(d, u) => `${t.section.key}:${B(u)}:${E(d)}`
|
|
3814
3814
|
);
|
|
3815
3815
|
function w(d) {
|
|
3816
3816
|
t.actions.deleteRow(t.section, d);
|
|
@@ -3827,34 +3827,34 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3827
3827
|
}) : d.allowDelete !== !1);
|
|
3828
3828
|
}
|
|
3829
3829
|
function V(d, u, _, O) {
|
|
3830
|
-
const
|
|
3830
|
+
const P = t.section.rows.slice(), z = _.cascadeClearFields ?? [], G = {
|
|
3831
3831
|
...d,
|
|
3832
3832
|
__rowKey: B(d),
|
|
3833
3833
|
[_.code]: O
|
|
3834
3834
|
};
|
|
3835
|
-
z.forEach((
|
|
3836
|
-
G[
|
|
3837
|
-
}),
|
|
3835
|
+
z.forEach((x) => {
|
|
3836
|
+
G[x] = "";
|
|
3837
|
+
}), P[u] = {
|
|
3838
3838
|
...G
|
|
3839
|
-
}, t.actions.updateTableRows(t.section,
|
|
3839
|
+
}, t.actions.updateTableRows(t.section, P), j(_, O, G, u, P), y(_, G);
|
|
3840
3840
|
}
|
|
3841
|
-
function j(d, u, _, O,
|
|
3841
|
+
function j(d, u, _, O, P) {
|
|
3842
3842
|
const z = t.renderConfig?.onFieldBusinessChange;
|
|
3843
3843
|
if (z)
|
|
3844
3844
|
try {
|
|
3845
|
-
const G = f(d, u),
|
|
3845
|
+
const G = f(d, u), x = { ...t.section.model, ..._ }, Q = {
|
|
3846
3846
|
field: d,
|
|
3847
3847
|
value: u,
|
|
3848
3848
|
section: t.section,
|
|
3849
|
-
model:
|
|
3850
|
-
values:
|
|
3849
|
+
model: x,
|
|
3850
|
+
values: x,
|
|
3851
3851
|
row: _,
|
|
3852
3852
|
rowIndex: O,
|
|
3853
|
-
rows:
|
|
3853
|
+
rows: P,
|
|
3854
3854
|
node: t.node,
|
|
3855
3855
|
activeNode: t.node,
|
|
3856
3856
|
sections: S(),
|
|
3857
|
-
sectionValues: k(t.section,
|
|
3857
|
+
sectionValues: k(t.section, P),
|
|
3858
3858
|
actions: t.actions,
|
|
3859
3859
|
selectedOption: G[0],
|
|
3860
3860
|
selectedOptions: G
|
|
@@ -3875,33 +3875,33 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3875
3875
|
function f(d, u) {
|
|
3876
3876
|
const _ = dt(d, u);
|
|
3877
3877
|
return (d.options ?? []).filter(
|
|
3878
|
-
(O) => _.some((
|
|
3878
|
+
(O) => _.some((P) => Ze(O, P))
|
|
3879
3879
|
);
|
|
3880
3880
|
}
|
|
3881
3881
|
function S() {
|
|
3882
3882
|
return Object.values(t.state.sectionMap);
|
|
3883
3883
|
}
|
|
3884
3884
|
function k(d, u) {
|
|
3885
|
-
const O = S().flatMap((
|
|
3886
|
-
const z =
|
|
3885
|
+
const O = S().flatMap((P) => {
|
|
3886
|
+
const z = P.key === d.key ? u : P.renderType === "table" ? P.rows : P.model;
|
|
3887
3887
|
return [
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3888
|
+
P.key,
|
|
3889
|
+
P.id,
|
|
3890
|
+
P.setId,
|
|
3891
|
+
P.infSetId,
|
|
3892
|
+
P.code
|
|
3893
3893
|
].filter(Boolean).map((G) => [String(G), z]);
|
|
3894
3894
|
});
|
|
3895
3895
|
return Object.fromEntries(O);
|
|
3896
3896
|
}
|
|
3897
3897
|
async function R(d, u, _ = {}, O = u) {
|
|
3898
|
-
const
|
|
3898
|
+
const P = B(O), z = `${P}:${E(d)}`, G = st(
|
|
3899
3899
|
t.section.key,
|
|
3900
3900
|
d,
|
|
3901
3901
|
O,
|
|
3902
|
-
|
|
3903
|
-
),
|
|
3904
|
-
if (!An(_) && lt(d,
|
|
3902
|
+
P
|
|
3903
|
+
), x = l.get(z);
|
|
3904
|
+
if (!An(_) && lt(d, x, G)) {
|
|
3905
3905
|
l.set(z, G);
|
|
3906
3906
|
return;
|
|
3907
3907
|
}
|
|
@@ -3923,26 +3923,26 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3923
3923
|
async function y(d, u) {
|
|
3924
3924
|
const _ = u ? [u] : t.section.rows;
|
|
3925
3925
|
for (const O of _) {
|
|
3926
|
-
const
|
|
3926
|
+
const P = B(O);
|
|
3927
3927
|
for (const z of a.value) {
|
|
3928
3928
|
if (d && !Nn(z, d))
|
|
3929
3929
|
continue;
|
|
3930
3930
|
const G = zn(z, O);
|
|
3931
3931
|
if (!A(z, G)) continue;
|
|
3932
|
-
const
|
|
3932
|
+
const x = st(
|
|
3933
3933
|
t.section.key,
|
|
3934
3934
|
z,
|
|
3935
3935
|
O,
|
|
3936
|
-
|
|
3937
|
-
), Q = `${
|
|
3938
|
-
if (lt(z, T,
|
|
3939
|
-
l.set(Q,
|
|
3936
|
+
P
|
|
3937
|
+
), Q = `${P}:${E(z)}`, T = l.get(Q);
|
|
3938
|
+
if (lt(z, T, x)) {
|
|
3939
|
+
l.set(Q, x);
|
|
3940
3940
|
continue;
|
|
3941
3941
|
}
|
|
3942
|
-
T !==
|
|
3942
|
+
T !== x && await R(
|
|
3943
3943
|
z,
|
|
3944
3944
|
O,
|
|
3945
|
-
|
|
3945
|
+
qn(z, G)
|
|
3946
3946
|
);
|
|
3947
3947
|
}
|
|
3948
3948
|
}
|
|
@@ -3961,7 +3961,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3961
3961
|
value: O,
|
|
3962
3962
|
state: t.state,
|
|
3963
3963
|
actions: t.actions,
|
|
3964
|
-
updateModelValue: (
|
|
3964
|
+
updateModelValue: (P) => V(u, _, d, P)
|
|
3965
3965
|
};
|
|
3966
3966
|
}
|
|
3967
3967
|
function D(d) {
|
|
@@ -3969,7 +3969,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3969
3969
|
if (_ && n[_]) return _;
|
|
3970
3970
|
const O = _.toLowerCase();
|
|
3971
3971
|
if (O !== _ && n[O]) return O;
|
|
3972
|
-
const
|
|
3972
|
+
const P = String(d.raw?.type || d.fieldType || d.type || "").trim(), z = P ? `field-type-${P}` : "";
|
|
3973
3973
|
if (z && n[z]) return z;
|
|
3974
3974
|
const G = z.toLowerCase();
|
|
3975
3975
|
return G !== z && n[G] ? G : "";
|
|
@@ -3987,10 +3987,10 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
3987
3987
|
if (!d.width)
|
|
3988
3988
|
return d.minWidth ?? (Vt(d) ? 56 : void 0);
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3990
|
+
function E(d) {
|
|
3991
3991
|
return d.key || d.id || d.code;
|
|
3992
3992
|
}
|
|
3993
|
-
function
|
|
3993
|
+
function q(d) {
|
|
3994
3994
|
return i.value + d;
|
|
3995
3995
|
}
|
|
3996
3996
|
function re(d) {
|
|
@@ -4005,8 +4005,8 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4005
4005
|
const _ = d, O = N.get(_);
|
|
4006
4006
|
if (O) return O;
|
|
4007
4007
|
le += 1;
|
|
4008
|
-
const
|
|
4009
|
-
return N.set(_,
|
|
4008
|
+
const P = `local-${le}`;
|
|
4009
|
+
return N.set(_, P), P;
|
|
4010
4010
|
}
|
|
4011
4011
|
function L(d) {
|
|
4012
4012
|
return d.required || d.isRequired;
|
|
@@ -4023,7 +4023,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4023
4023
|
},
|
|
4024
4024
|
{ immediate: !0 }
|
|
4025
4025
|
), (d, u) => {
|
|
4026
|
-
const _ = on, O = eo("Delete"),
|
|
4026
|
+
const _ = on, O = eo("Delete"), P = Jt, z = Ct, G = nn;
|
|
4027
4027
|
return I(), K("div", {
|
|
4028
4028
|
class: We(["global-info-table-renderer", { "global-info-table-renderer--editing": d.editing }])
|
|
4029
4029
|
}, [
|
|
@@ -4036,43 +4036,43 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4036
4036
|
"row-key": B
|
|
4037
4037
|
}, {
|
|
4038
4038
|
default: W(() => [
|
|
4039
|
-
r.value ? (I(),
|
|
4039
|
+
r.value ? (I(), H(_, {
|
|
4040
4040
|
key: 0,
|
|
4041
4041
|
type: "index",
|
|
4042
4042
|
label: c.value,
|
|
4043
4043
|
width: s.value,
|
|
4044
|
-
index:
|
|
4044
|
+
index: q
|
|
4045
4045
|
}, null, 8, ["label", "width"])) : fe("", !0),
|
|
4046
|
-
(I(!0), K(Se, null, ye(a.value, (
|
|
4047
|
-
key:
|
|
4048
|
-
prop:
|
|
4049
|
-
label:
|
|
4050
|
-
width: m(
|
|
4051
|
-
"min-width": F(
|
|
4046
|
+
(I(!0), K(Se, null, ye(a.value, (x) => (I(), H(_, {
|
|
4047
|
+
key: E(x),
|
|
4048
|
+
prop: x.code,
|
|
4049
|
+
label: x.label,
|
|
4050
|
+
width: m(x),
|
|
4051
|
+
"min-width": F(x)
|
|
4052
4052
|
}, {
|
|
4053
4053
|
header: W(() => [
|
|
4054
4054
|
ne("span", Ta, [
|
|
4055
|
-
L(
|
|
4056
|
-
ne("span", null, oe(
|
|
4055
|
+
L(x) ? (I(), K("span", Ma, "*")) : fe("", !0),
|
|
4056
|
+
ne("span", null, oe(x.label), 1)
|
|
4057
4057
|
])
|
|
4058
4058
|
]),
|
|
4059
4059
|
default: W(({ row: Q, $index: T }) => [
|
|
4060
|
-
D(
|
|
4060
|
+
D(x) ? te(d.$slots, D(x), ae({
|
|
4061
4061
|
key: 0,
|
|
4062
4062
|
ref_for: !0
|
|
4063
|
-
}, h(
|
|
4063
|
+
}, h(x, Q, T)), void 0, !0) : d.editing && b(x) ? (I(), H(Vn, {
|
|
4064
4064
|
key: 1,
|
|
4065
|
-
field:
|
|
4066
|
-
"model-value": Q[
|
|
4065
|
+
field: x,
|
|
4066
|
+
"model-value": Q[x.code],
|
|
4067
4067
|
section: d.section,
|
|
4068
4068
|
row: Q,
|
|
4069
4069
|
"row-index": T,
|
|
4070
|
-
onLoadOptions: (X) => R(
|
|
4071
|
-
"onUpdate:modelValue": (X) => V(Q, T,
|
|
4072
|
-
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (I(),
|
|
4070
|
+
onLoadOptions: (X) => R(x, Q, X),
|
|
4071
|
+
"onUpdate:modelValue": (X) => V(Q, T, x, X)
|
|
4072
|
+
}, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
|
|
4073
4073
|
key: 2,
|
|
4074
|
-
field:
|
|
4075
|
-
value: Q[
|
|
4074
|
+
field: x,
|
|
4075
|
+
value: Q[x.code],
|
|
4076
4076
|
section: d.section,
|
|
4077
4077
|
row: Q,
|
|
4078
4078
|
"row-index": T
|
|
@@ -4080,14 +4080,14 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4080
4080
|
]),
|
|
4081
4081
|
_: 2
|
|
4082
4082
|
}, 1032, ["prop", "label", "width", "min-width"]))), 128)),
|
|
4083
|
-
d.editing ? (I(),
|
|
4083
|
+
d.editing ? (I(), H(_, {
|
|
4084
4084
|
key: 1,
|
|
4085
4085
|
label: J(Z)("common.操作"),
|
|
4086
4086
|
width: "104",
|
|
4087
4087
|
fixed: "right"
|
|
4088
4088
|
}, {
|
|
4089
|
-
default: W(({ row:
|
|
4090
|
-
$(
|
|
4089
|
+
default: W(({ row: x, $index: Q }) => [
|
|
4090
|
+
$(x, Q) ? (I(), H(Ca, {
|
|
4091
4091
|
key: 0,
|
|
4092
4092
|
onConfirm: (T) => w(Q)
|
|
4093
4093
|
}, {
|
|
@@ -4098,13 +4098,13 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4098
4098
|
type: "danger"
|
|
4099
4099
|
}, {
|
|
4100
4100
|
default: W(() => [
|
|
4101
|
-
ke(
|
|
4101
|
+
ke(P, { class: "global-info-table-renderer__delete-icon" }, {
|
|
4102
4102
|
default: W(() => [
|
|
4103
4103
|
ke(O)
|
|
4104
4104
|
]),
|
|
4105
4105
|
_: 1
|
|
4106
4106
|
}),
|
|
4107
|
-
|
|
4107
|
+
Ue(oe(J(Z)("common.删除")), 1)
|
|
4108
4108
|
]),
|
|
4109
4109
|
_: 1
|
|
4110
4110
|
})
|
|
@@ -4121,7 +4121,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4121
4121
|
], 2);
|
|
4122
4122
|
};
|
|
4123
4123
|
}
|
|
4124
|
-
}), Da = /* @__PURE__ */ be(Oa, [["__scopeId", "data-v-
|
|
4124
|
+
}), Da = /* @__PURE__ */ be(Oa, [["__scopeId", "data-v-ae50ebb5"]]), Fa = /* @__PURE__ */ pe({
|
|
4125
4125
|
name: "GlobalInfoAutoRenderer",
|
|
4126
4126
|
__name: "GlobalInfoAutoRenderer",
|
|
4127
4127
|
props: {
|
|
@@ -4133,7 +4133,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4133
4133
|
renderConfig: {}
|
|
4134
4134
|
},
|
|
4135
4135
|
setup(e) {
|
|
4136
|
-
return (t, n) => t.section.renderType === "table" ? (I(),
|
|
4136
|
+
return (t, n) => t.section.renderType === "table" ? (I(), H(Da, {
|
|
4137
4137
|
key: 0,
|
|
4138
4138
|
section: t.section,
|
|
4139
4139
|
node: t.node,
|
|
@@ -4141,7 +4141,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4141
4141
|
state: t.state,
|
|
4142
4142
|
actions: t.actions,
|
|
4143
4143
|
"render-config": t.renderConfig
|
|
4144
|
-
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (I(),
|
|
4144
|
+
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (I(), H($a, {
|
|
4145
4145
|
key: 1,
|
|
4146
4146
|
section: t.section,
|
|
4147
4147
|
node: t.node,
|
|
@@ -4152,11 +4152,11 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
|
|
|
4152
4152
|
}, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
|
|
4153
4153
|
}
|
|
4154
4154
|
});
|
|
4155
|
-
function
|
|
4155
|
+
function xn(e) {
|
|
4156
4156
|
return Kn(e.code);
|
|
4157
4157
|
}
|
|
4158
4158
|
function Gn(e, t) {
|
|
4159
|
-
return
|
|
4159
|
+
return xn(e) || Kn(t?.code);
|
|
4160
4160
|
}
|
|
4161
4161
|
function Ot(e, t, n) {
|
|
4162
4162
|
if (!n) return "";
|
|
@@ -4180,7 +4180,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4180
4180
|
renderConfig: {}
|
|
4181
4181
|
},
|
|
4182
4182
|
setup(e) {
|
|
4183
|
-
const t = e, n =
|
|
4183
|
+
const t = e, n = Ee(), o = M(() => ft(
|
|
4184
4184
|
t.section.fields,
|
|
4185
4185
|
t.section,
|
|
4186
4186
|
t.renderConfig,
|
|
@@ -4215,7 +4215,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4215
4215
|
renderConfig: a.renderConfig,
|
|
4216
4216
|
state: a.state,
|
|
4217
4217
|
actions: a.actions
|
|
4218
|
-
}) : (I(),
|
|
4218
|
+
}) : (I(), H(Fa, {
|
|
4219
4219
|
key: 1,
|
|
4220
4220
|
section: a.section,
|
|
4221
4221
|
node: a.node,
|
|
@@ -4261,13 +4261,13 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4261
4261
|
}
|
|
4262
4262
|
};
|
|
4263
4263
|
}
|
|
4264
|
-
}),
|
|
4264
|
+
}), Ea = { class: "global-info-section-block" }, Pa = {
|
|
4265
4265
|
key: 0,
|
|
4266
4266
|
class: "global-info-section-block__header"
|
|
4267
4267
|
}, Va = { class: "global-info-section-block__title-wrap" }, ja = { class: "global-info-section-block__title" }, Aa = {
|
|
4268
4268
|
key: 0,
|
|
4269
4269
|
class: "global-info-section-block__actions"
|
|
4270
|
-
}, Na = { class: "global-info-section-block__body" }, Ra = { class: "global-info-section-block__status" }, za = { class: "global-info-section-block__status" },
|
|
4270
|
+
}, Na = { class: "global-info-section-block__body" }, Ra = { class: "global-info-section-block__status" }, za = { class: "global-info-section-block__status" }, qa = { class: "global-info-section-block__status" }, xa = /* @__PURE__ */ pe({
|
|
4271
4271
|
name: "GlobalInfoSectionBlock",
|
|
4272
4272
|
__name: "GlobalInfoSectionBlock",
|
|
4273
4273
|
props: {
|
|
@@ -4281,7 +4281,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4281
4281
|
onSave: { type: Function }
|
|
4282
4282
|
},
|
|
4283
4283
|
setup(e) {
|
|
4284
|
-
const t = e, n =
|
|
4284
|
+
const t = e, n = Ee(), o = ge(!1), r = ge(null), c = ge(null), s = M(() => !!t.hideHeader), i = M(() => t.actions.getSectionStatus(t.node)), a = M(
|
|
4285
4285
|
() => t.actions.getSection(t.node) ?? c.value
|
|
4286
4286
|
), l = M(() => {
|
|
4287
4287
|
const m = a.value;
|
|
@@ -4342,7 +4342,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4342
4342
|
const m = a.value;
|
|
4343
4343
|
if (!m) return;
|
|
4344
4344
|
const F = m.fields.reduce(
|
|
4345
|
-
(
|
|
4345
|
+
(E, q) => (E[q.code] = q.value ?? "", E),
|
|
4346
4346
|
{ __rowKey: `new-${Date.now()}` }
|
|
4347
4347
|
);
|
|
4348
4348
|
t.actions.saveRow(m, F, -1);
|
|
@@ -4373,7 +4373,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4373
4373
|
o.value = !1;
|
|
4374
4374
|
}
|
|
4375
4375
|
}
|
|
4376
|
-
return
|
|
4376
|
+
return Ut(() => {
|
|
4377
4377
|
A();
|
|
4378
4378
|
}), Le(
|
|
4379
4379
|
() => t.node.key,
|
|
@@ -4381,9 +4381,9 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4381
4381
|
A();
|
|
4382
4382
|
}
|
|
4383
4383
|
), (m, F) => {
|
|
4384
|
-
const
|
|
4385
|
-
return I(), K("section",
|
|
4386
|
-
s.value ? fe("", !0) : (I(), K("header",
|
|
4384
|
+
const E = Ct;
|
|
4385
|
+
return I(), K("section", Ea, [
|
|
4386
|
+
s.value ? fe("", !0) : (I(), K("header", Pa, [
|
|
4387
4387
|
te(m.$slots, "header", Oe(Be(S.value)), () => [
|
|
4388
4388
|
ne("div", Va, [
|
|
4389
4389
|
F[0] || (F[0] = ne("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
@@ -4392,38 +4392,38 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4392
4392
|
te(m.$slots, "actions", Oe(Be(S.value)), () => [
|
|
4393
4393
|
a.value ? (I(), K("div", Aa, [
|
|
4394
4394
|
w.value ? (I(), K(Se, { key: 1 }, [
|
|
4395
|
-
ke(
|
|
4395
|
+
ke(E, {
|
|
4396
4396
|
class: "global-info-section-block__cancel",
|
|
4397
4397
|
disabled: i.value.saving,
|
|
4398
4398
|
onClick: y
|
|
4399
4399
|
}, {
|
|
4400
4400
|
default: W(() => [
|
|
4401
|
-
|
|
4401
|
+
Ue(oe(J(Z)("common.取消")), 1)
|
|
4402
4402
|
]),
|
|
4403
4403
|
_: 1
|
|
4404
4404
|
}, 8, ["disabled"]),
|
|
4405
|
-
$.value ? (I(),
|
|
4405
|
+
$.value ? (I(), H(E, {
|
|
4406
4406
|
key: 0,
|
|
4407
4407
|
class: "global-info-section-block__add",
|
|
4408
4408
|
disabled: i.value.saving,
|
|
4409
4409
|
onClick: h
|
|
4410
4410
|
}, {
|
|
4411
4411
|
default: W(() => [
|
|
4412
|
-
|
|
4412
|
+
Ue(oe(J(Z)("common.新增")), 1)
|
|
4413
4413
|
]),
|
|
4414
4414
|
_: 1
|
|
4415
4415
|
}, 8, ["disabled"])) : fe("", !0),
|
|
4416
|
-
ke(
|
|
4416
|
+
ke(E, {
|
|
4417
4417
|
class: "global-info-section-block__confirm",
|
|
4418
4418
|
loading: i.value.saving,
|
|
4419
4419
|
onClick: D
|
|
4420
4420
|
}, {
|
|
4421
4421
|
default: W(() => [
|
|
4422
|
-
|
|
4422
|
+
Ue(oe($.value ? J(Z)("common.确认") : J(Z)("common.保存")), 1)
|
|
4423
4423
|
]),
|
|
4424
4424
|
_: 1
|
|
4425
4425
|
}, 8, ["loading"])
|
|
4426
|
-
], 64)) : (I(),
|
|
4426
|
+
], 64)) : (I(), H(E, {
|
|
4427
4427
|
key: 0,
|
|
4428
4428
|
class: "global-info-section-block__edit",
|
|
4429
4429
|
disabled: i.value.saving || V.value,
|
|
@@ -4454,7 +4454,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4454
4454
|
ne("div", Ra, oe(J(Z)("common.加载中___")), 1)
|
|
4455
4455
|
], !0) : !a.value || f.value ? te(m.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
|
|
4456
4456
|
ne("div", za, oe(J(Z)("common.暂无数据")), 1)
|
|
4457
|
-
], !0) : (I(),
|
|
4457
|
+
], !0) : (I(), H(La, {
|
|
4458
4458
|
key: 2,
|
|
4459
4459
|
"boundary-key": m.node.key,
|
|
4460
4460
|
label: g.value,
|
|
@@ -4462,7 +4462,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4462
4462
|
}, {
|
|
4463
4463
|
fallback: W(() => [
|
|
4464
4464
|
te(m.$slots, "empty", Oe(Be(S.value)), () => [
|
|
4465
|
-
ne("div",
|
|
4465
|
+
ne("div", qa, oe(J(Z)("common.暂无数据")), 1)
|
|
4466
4466
|
], !0)
|
|
4467
4467
|
]),
|
|
4468
4468
|
default: W(() => [
|
|
@@ -4474,7 +4474,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4474
4474
|
actions: m.actions,
|
|
4475
4475
|
"render-config": m.renderConfig
|
|
4476
4476
|
}, Ne({ _: 2 }, [
|
|
4477
|
-
ye(J(n), (
|
|
4477
|
+
ye(J(n), (q, re) => ({
|
|
4478
4478
|
name: re,
|
|
4479
4479
|
fn: W((le) => [
|
|
4480
4480
|
te(m.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
|
|
@@ -4488,7 +4488,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4488
4488
|
]);
|
|
4489
4489
|
};
|
|
4490
4490
|
}
|
|
4491
|
-
}), Ga = /* @__PURE__ */ be(
|
|
4491
|
+
}), Ga = /* @__PURE__ */ be(xa, [["__scopeId", "data-v-cf874e03"]]), Ka = { class: "global-info-group" }, Ya = { class: "global-info-group__header" }, Ha = { class: "global-info-group__title" }, Ua = { class: "global-info-group__body" }, Ja = ["id"], Wa = { class: "global-info-group__empty" }, Za = /* @__PURE__ */ pe({
|
|
4492
4492
|
name: "GlobalInfoGroup",
|
|
4493
4493
|
__name: "GlobalInfoGroup",
|
|
4494
4494
|
props: {
|
|
@@ -4500,7 +4500,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4500
4500
|
renderConfig: {}
|
|
4501
4501
|
},
|
|
4502
4502
|
setup(e) {
|
|
4503
|
-
const t = e, n =
|
|
4503
|
+
const t = e, n = Ee(), o = M(
|
|
4504
4504
|
() => t.group.tagName || t.group.label || "-"
|
|
4505
4505
|
), r = M(() => t.children.length <= 1);
|
|
4506
4506
|
function c(l, g) {
|
|
@@ -4550,10 +4550,10 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4550
4550
|
}, () => [
|
|
4551
4551
|
ne("header", Ya, [
|
|
4552
4552
|
g[0] || (g[0] = ne("span", { class: "global-info-group__marker" }, null, -1)),
|
|
4553
|
-
ne("h2",
|
|
4553
|
+
ne("h2", Ha, oe(o.value), 1)
|
|
4554
4554
|
])
|
|
4555
4555
|
], !0),
|
|
4556
|
-
ne("div",
|
|
4556
|
+
ne("div", Ua, [
|
|
4557
4557
|
J(n).default ? te(l.$slots, "default", {
|
|
4558
4558
|
key: 0,
|
|
4559
4559
|
group: l.group,
|
|
@@ -4575,7 +4575,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4575
4575
|
}, c(w, $)), void 0, !0) : J(n).section ? te(l.$slots, "section", ae({
|
|
4576
4576
|
key: 1,
|
|
4577
4577
|
ref_for: !0
|
|
4578
|
-
}, c(w, $)), void 0, !0) : (I(),
|
|
4578
|
+
}, c(w, $)), void 0, !0) : (I(), H(Ga, {
|
|
4579
4579
|
key: 2,
|
|
4580
4580
|
node: w,
|
|
4581
4581
|
state: l.state,
|
|
@@ -4607,7 +4607,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4607
4607
|
])
|
|
4608
4608
|
]));
|
|
4609
4609
|
}
|
|
4610
|
-
}), Qa = /* @__PURE__ */ be(Za, [["__scopeId", "data-v-
|
|
4610
|
+
}), Qa = /* @__PURE__ */ be(Za, [["__scopeId", "data-v-3e40a5b6"]]), Xa = { class: "global-info-sections" }, es = /* @__PURE__ */ pe({
|
|
4611
4611
|
name: "GlobalInfoSections",
|
|
4612
4612
|
__name: "GlobalInfoSections",
|
|
4613
4613
|
props: {
|
|
@@ -4617,7 +4617,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4617
4617
|
renderConfig: {}
|
|
4618
4618
|
},
|
|
4619
4619
|
setup(e) {
|
|
4620
|
-
const t = e, n =
|
|
4620
|
+
const t = e, n = Ee(), o = M(() => {
|
|
4621
4621
|
const g = t.nodes.filter(
|
|
4622
4622
|
(k) => r(k).length > 0
|
|
4623
4623
|
), w = t.nodes.filter((k) => r(k).length === 0), $ = w.filter((k) => c(k)), V = w.filter((k) => !c(k)), j = g.map((k) => ({
|
|
@@ -4639,7 +4639,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4639
4639
|
return !String(g.parentId || g.parentTagId || "").trim();
|
|
4640
4640
|
}
|
|
4641
4641
|
function s(g) {
|
|
4642
|
-
return Ot(n, "group",
|
|
4642
|
+
return Ot(n, "group", xn(g));
|
|
4643
4643
|
}
|
|
4644
4644
|
function i(g, w) {
|
|
4645
4645
|
return g.key || g.id || g.tagId || `${w}`;
|
|
@@ -4696,7 +4696,7 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4696
4696
|
renderConfig: g.renderConfig,
|
|
4697
4697
|
index: V,
|
|
4698
4698
|
isEmpty: $.children.length === 0
|
|
4699
|
-
}, void 0, !0) : (I(),
|
|
4699
|
+
}, void 0, !0) : (I(), H(Qa, {
|
|
4700
4700
|
key: 2,
|
|
4701
4701
|
group: $.group,
|
|
4702
4702
|
children: $.children,
|
|
@@ -4715,12 +4715,12 @@ const Ba = /* @__PURE__ */ pe({
|
|
|
4715
4715
|
], 64))), 128))
|
|
4716
4716
|
]));
|
|
4717
4717
|
}
|
|
4718
|
-
}), cs = /* @__PURE__ */ be(es, [["__scopeId", "data-v-
|
|
4718
|
+
}), cs = /* @__PURE__ */ be(es, [["__scopeId", "data-v-86c94f9f"]]);
|
|
4719
4719
|
function us(e, t = {}) {
|
|
4720
|
-
|
|
4720
|
+
Hn(e, t);
|
|
4721
4721
|
}
|
|
4722
4722
|
export {
|
|
4723
|
-
|
|
4723
|
+
En as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
|
|
4724
4724
|
Fa as GlobalInfoAutoRenderer,
|
|
4725
4725
|
Ca as GlobalInfoDeleteConfirm,
|
|
4726
4726
|
Vn as GlobalInfoFieldControl,
|
|
@@ -4738,22 +4738,22 @@ export {
|
|
|
4738
4738
|
ho as JtCascader,
|
|
4739
4739
|
as as JtCrudTable,
|
|
4740
4740
|
yo as JtDatePicker,
|
|
4741
|
-
|
|
4741
|
+
Eo as JtFilterBar,
|
|
4742
4742
|
$o as JtFormItems,
|
|
4743
4743
|
ht as JtInput,
|
|
4744
4744
|
ss as JtPageHeader,
|
|
4745
|
-
|
|
4745
|
+
xo as JtPagination,
|
|
4746
4746
|
_o as JtSelect,
|
|
4747
4747
|
No as JtTable,
|
|
4748
4748
|
$r as buildGlobalInfoUpdatePayload,
|
|
4749
4749
|
_r as createEmptyGlobalInfoViewModel,
|
|
4750
4750
|
ms as getJtLocale,
|
|
4751
4751
|
us as install,
|
|
4752
|
-
|
|
4752
|
+
Hn as installLocale,
|
|
4753
4753
|
ls as isGlobalInfoNode,
|
|
4754
4754
|
Sn as mergeGlobalInfoChildren,
|
|
4755
4755
|
wr as normalizeGlobalInfoDetail,
|
|
4756
|
-
|
|
4756
|
+
qt as normalizeGlobalInfoTree,
|
|
4757
4757
|
vs as normalizeLocale,
|
|
4758
4758
|
hs as resetJtLocale,
|
|
4759
4759
|
Ir as resolveGlobalInfoRenderType,
|