@vancone/console-component 0.1.0-beta.20 → 0.1.0-beta.21
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.
|
@@ -119,16 +119,16 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
119
119
|
i("div", _t, [
|
|
120
120
|
(l(!0), U(ee, null, se(o, (y) => (l(), U("div", kt, [
|
|
121
121
|
i("h1", null, Q(y.name), 1),
|
|
122
|
-
(l(!0), U(ee, null, se(y.apps, (
|
|
122
|
+
(l(!0), U(ee, null, se(y.apps, (w) => {
|
|
123
123
|
var D, V;
|
|
124
124
|
return l(), U("a", {
|
|
125
|
-
style: Ge([{ "text-decoration": "none" }, { pointerEvents: ((D =
|
|
125
|
+
style: Ge([{ "text-decoration": "none" }, { pointerEvents: ((D = w.homepageUrl) == null ? void 0 : D.length) > 0 ? "auto" : "none" }]),
|
|
126
126
|
target: "_blank",
|
|
127
|
-
href:
|
|
127
|
+
href: w.homepageUrl
|
|
128
128
|
}, [
|
|
129
129
|
i("h2", {
|
|
130
|
-
style: Ge({ color: ((V =
|
|
131
|
-
}, Q(
|
|
130
|
+
style: Ge({ color: ((V = w.homepageUrl) == null ? void 0 : V.length) > 0 ? "#555" : "#bbb" })
|
|
131
|
+
}, Q(w.name), 5)
|
|
132
132
|
], 12, It);
|
|
133
133
|
}), 256))
|
|
134
134
|
]))), 256))
|
|
@@ -264,7 +264,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
264
264
|
helpDocUrl: {}
|
|
265
265
|
},
|
|
266
266
|
setup(r) {
|
|
267
|
-
const { t: a } = Ie(), o = E(), g = E(), e = E(), t = r, C = E(!1), c = E(""), y = E(Me.global.locale),
|
|
267
|
+
const { t: a } = Ie(), o = E(), g = E(), e = E(), t = r, C = E(!1), c = E(""), y = E(Me.global.locale), w = ne([
|
|
268
268
|
{
|
|
269
269
|
id: "en",
|
|
270
270
|
name: "English"
|
|
@@ -281,8 +281,8 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
function D(O) {
|
|
284
|
-
for (var k = O + "=",
|
|
285
|
-
for (var Y =
|
|
284
|
+
for (var k = O + "=", W = document.cookie.split(";"), L = 0; L < W.length; L++) {
|
|
285
|
+
for (var Y = W[L]; Y.charAt(0) == " "; ) Y = Y.substring(1);
|
|
286
286
|
if (Y.indexOf(k) != -1)
|
|
287
287
|
return Y.substring(k.length, Y.length);
|
|
288
288
|
}
|
|
@@ -307,7 +307,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
307
307
|
window.open(t.helpDocUrl, "_blank");
|
|
308
308
|
}
|
|
309
309
|
return (O, k) => {
|
|
310
|
-
const
|
|
310
|
+
const W = b("el-tooltip"), L = b("el-avatar"), Y = b("el-menu-item"), fe = b("el-icon"), m = b("el-popover"), T = b("el-menu");
|
|
311
311
|
return l(), U("div", Tt, [
|
|
312
312
|
i("div", {
|
|
313
313
|
class: "title",
|
|
@@ -322,7 +322,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
322
322
|
]),
|
|
323
323
|
d(St, { visible: C.value }, null, 8, ["visible"]),
|
|
324
324
|
i("div", Kt, [
|
|
325
|
-
d(
|
|
325
|
+
d(W, {
|
|
326
326
|
effect: "dark",
|
|
327
327
|
content: v(a)("common.header.product"),
|
|
328
328
|
placement: "bottom"
|
|
@@ -337,7 +337,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
337
337
|
]),
|
|
338
338
|
_: 1
|
|
339
339
|
}, 8, ["content"]),
|
|
340
|
-
d(
|
|
340
|
+
d(W, {
|
|
341
341
|
effect: "dark",
|
|
342
342
|
content: v(a)("common.header.help"),
|
|
343
343
|
placement: "bottom"
|
|
@@ -353,7 +353,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}, 8, ["content"]),
|
|
356
|
-
d(
|
|
356
|
+
d(W, {
|
|
357
357
|
effect: "dark",
|
|
358
358
|
content: v(a)("common.header.message"),
|
|
359
359
|
placement: "bottom"
|
|
@@ -366,7 +366,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
366
366
|
_: 1
|
|
367
367
|
}, 8, ["content"]),
|
|
368
368
|
i("div", Lt, [
|
|
369
|
-
d(
|
|
369
|
+
d(L, {
|
|
370
370
|
size: 30,
|
|
371
371
|
src: "",
|
|
372
372
|
ref_key: "avatarRef",
|
|
@@ -389,7 +389,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
389
389
|
}, {
|
|
390
390
|
default: n(() => [
|
|
391
391
|
i("div", Xt, [
|
|
392
|
-
d(
|
|
392
|
+
d(L, {
|
|
393
393
|
size: 48,
|
|
394
394
|
src: ""
|
|
395
395
|
}, {
|
|
@@ -436,7 +436,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
436
436
|
"popper-style": "height: 80px; left: -165px"
|
|
437
437
|
}, {
|
|
438
438
|
default: n(() => [
|
|
439
|
-
(l(!0), U(ee, null, se(
|
|
439
|
+
(l(!0), U(ee, null, se(w, (h) => (l(), U("div", {
|
|
440
440
|
class: "select-list",
|
|
441
441
|
onClick: (G) => H(h.id)
|
|
442
442
|
}, [
|
|
@@ -485,12 +485,12 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
485
485
|
index: o.menu.path
|
|
486
486
|
}, {
|
|
487
487
|
title: n(() => {
|
|
488
|
-
var c, y,
|
|
488
|
+
var c, y, w;
|
|
489
489
|
return [
|
|
490
490
|
i("div", Jt, [
|
|
491
491
|
(l(), I(Se((c = o.menu.meta) == null ? void 0 : c.icon), { class: "menu-icon" }))
|
|
492
492
|
]),
|
|
493
|
-
i("span", null, Q(o.$t((
|
|
493
|
+
i("span", null, Q(o.$t((w = (y = o.menu.meta) == null ? void 0 : y.title) != null ? w : "")), 1)
|
|
494
494
|
];
|
|
495
495
|
}),
|
|
496
496
|
default: n(() => [
|
|
@@ -544,19 +544,19 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, lo = { class: "menu-b
|
|
|
544
544
|
setup(r, { emit: a }) {
|
|
545
545
|
const o = r, g = a, e = ke(), t = E(), C = xe(() => {
|
|
546
546
|
var D;
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
547
|
+
const w = e.meta.activeMenu;
|
|
548
|
+
if (w === "{model}") {
|
|
549
549
|
let V = e.params.app ? `${e.params.app}/${e.params.model}` : e.params.model;
|
|
550
550
|
return "/" + ((D = Wt[e.params.model]) != null ? D : V);
|
|
551
551
|
} else
|
|
552
|
-
return
|
|
552
|
+
return w;
|
|
553
553
|
}), c = E(!1);
|
|
554
554
|
function y() {
|
|
555
555
|
g("update:menuCollapsed", !o.menuCollapsed);
|
|
556
556
|
}
|
|
557
557
|
return he(c, () => {
|
|
558
558
|
c.value && t.value.style.width && (t.value.style.width += "200");
|
|
559
|
-
}), (
|
|
559
|
+
}), (w, D) => {
|
|
560
560
|
const V = b("el-menu");
|
|
561
561
|
return l(), U("div", ao, [
|
|
562
562
|
i("div", lo, [
|
|
@@ -605,7 +605,7 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, lo = { class: "menu-b
|
|
|
605
605
|
v(a).query.embedded !== "true" ? (l(), I(qe, {
|
|
606
606
|
key: 0,
|
|
607
607
|
menuCollapsed: o.value,
|
|
608
|
-
"onUpdate:menuCollapsed": C[0] || (C[0] = (
|
|
608
|
+
"onUpdate:menuCollapsed": C[0] || (C[0] = (w) => o.value = w)
|
|
609
609
|
}, null, 8, ["menuCollapsed"])) : K("", !0),
|
|
610
610
|
d(y, { class: "scrollbar" }, {
|
|
611
611
|
default: n(() => [
|
|
@@ -704,28 +704,28 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
704
704
|
deep: !0
|
|
705
705
|
}
|
|
706
706
|
), (c, y) => (l(), U("div", yo, [
|
|
707
|
-
(l(!0), U(ee, null, se(e.cards, (
|
|
708
|
-
class: Te(["card", { "card-selected": t.value ===
|
|
709
|
-
onClick: (D) => C(
|
|
707
|
+
(l(!0), U(ee, null, se(e.cards, (w) => (l(), U("div", {
|
|
708
|
+
class: Te(["card", { "card-selected": t.value === w.key }]),
|
|
709
|
+
onClick: (D) => C(w)
|
|
710
710
|
}, [
|
|
711
711
|
i("div", Ao, [
|
|
712
712
|
i("div", _o, [
|
|
713
713
|
i("div", ko, [
|
|
714
|
-
|
|
714
|
+
w.icon ? (l(), I(Se(w.icon), {
|
|
715
715
|
key: 0,
|
|
716
716
|
class: "svg-icon"
|
|
717
717
|
})) : K("", !0)
|
|
718
718
|
]),
|
|
719
719
|
i("span", {
|
|
720
|
-
style: Ge({ color:
|
|
721
|
-
}, Q(v(a)(
|
|
720
|
+
style: Ge({ color: w.disabled ? "#aaa" : "black" })
|
|
721
|
+
}, Q(v(a)(w.label)), 5)
|
|
722
722
|
]),
|
|
723
|
-
i("span", null, Q(
|
|
723
|
+
i("span", null, Q(w.count), 1)
|
|
724
724
|
])
|
|
725
725
|
], 10, wo))), 256))
|
|
726
726
|
]));
|
|
727
727
|
}
|
|
728
|
-
}), He = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-
|
|
728
|
+
}), He = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-047a86e6"]]);
|
|
729
729
|
function ve(r, a, o) {
|
|
730
730
|
switch (a) {
|
|
731
731
|
case "POST":
|
|
@@ -759,11 +759,11 @@ const _e = (r) => {
|
|
|
759
759
|
},
|
|
760
760
|
emits: ["update:id"],
|
|
761
761
|
setup(r, { expose: a, emit: o }) {
|
|
762
|
-
const { t: g } = Me.global, e = r, t = ne({}), C = E(!1), c = E(), y = ne({}),
|
|
762
|
+
const { t: g } = Me.global, e = r, t = ne({}), C = E(!1), c = E(), y = ne({}), w = E(!0), D = (m) => e.mode === "view" && (Y(m, void 0) || Y(m, "input") || Y(m, "select") || Y(m, "password")), V = xe(() => e.model.fields ? e.model.fields.filter(
|
|
763
763
|
(m) => {
|
|
764
|
-
var G,
|
|
764
|
+
var G, A, _, x;
|
|
765
765
|
let T = m.visible !== !1 && ((G = m.formItemAttributes) == null ? void 0 : G.visible) !== !1;
|
|
766
|
-
if (e.mode !== "view" && ((
|
|
766
|
+
if (e.mode !== "view" && ((A = m.formItemAttributes) == null ? void 0 : A.editable) === !1 || e.mode === "view" && ((_ = m.formItemAttributes) == null ? void 0 : _.type) === "password")
|
|
767
767
|
return !1;
|
|
768
768
|
let h = (x = m.formItemAttributes) == null ? void 0 : x.showCondition;
|
|
769
769
|
return h && h.field && h.value ? t[h.field] === h.value : T;
|
|
@@ -776,23 +776,23 @@ const _e = (r) => {
|
|
|
776
776
|
const m = e.model.fields;
|
|
777
777
|
let T = {};
|
|
778
778
|
m == null || m.forEach((h) => {
|
|
779
|
-
var G,
|
|
779
|
+
var G, A, _, x, M, R, j, p, S;
|
|
780
780
|
if (t[h.prop] = null, h.visible !== !1 && ((G = h.formItemAttributes) == null ? void 0 : G.visible) !== !1) {
|
|
781
|
-
if (((
|
|
781
|
+
if (((A = h.formItemAttributes) == null ? void 0 : A.defaultValue) !== void 0 ? t[h.prop] = (_ = h.formItemAttributes) == null ? void 0 : _.defaultValue : t[h.prop] = void 0, e.mode !== "view") {
|
|
782
782
|
let q = (x = h.formItemAttributes) == null ? void 0 : x.validationRule;
|
|
783
783
|
q !== void 0 && (T[h.prop] = q), Object.assign(y, T);
|
|
784
784
|
}
|
|
785
|
-
const u = h.formItemAttributes, s = u == null ? void 0 : u.type, f = (M = u == null ? void 0 : u.selectAttributes) == null ? void 0 : M.api, B = (R = u == null ? void 0 : u.selectAttributes) == null ? void 0 : R.valueMappingField, Z = (
|
|
785
|
+
const u = h.formItemAttributes, s = u == null ? void 0 : u.type, f = (M = u == null ? void 0 : u.selectAttributes) == null ? void 0 : M.api, B = (R = u == null ? void 0 : u.selectAttributes) == null ? void 0 : R.valueMappingField, Z = (j = u == null ? void 0 : u.selectAttributes) == null ? void 0 : j.labelMappingField;
|
|
786
786
|
if (s === "select" && f) {
|
|
787
787
|
let q = f;
|
|
788
788
|
const oe = (p = u == null ? void 0 : u.selectAttributes) == null ? void 0 : p.queryParamName, ce = (S = u == null ? void 0 : u.selectAttributes) == null ? void 0 : S.queryParamValueField;
|
|
789
789
|
oe && (q = `${q}?${oe}=${e.id}`), ce || ve(q, "GET", {}).then(({ data: ae }) => {
|
|
790
790
|
var le;
|
|
791
791
|
if ((le = h.formItemAttributes) != null && le.selectAttributes) {
|
|
792
|
-
let
|
|
793
|
-
Array.isArray(ae.data) ?
|
|
794
|
-
value: B ?
|
|
795
|
-
label: Z ?
|
|
792
|
+
let $ = [];
|
|
793
|
+
Array.isArray(ae.data) ? $ = ae.data : ae.data.list && Array.isArray(ae.data.list) && ($ = ae.data.list), h.formItemAttributes.selectAttributes.options = $.map((X) => ({
|
|
794
|
+
value: B ? X[B] : X.value,
|
|
795
|
+
label: Z ? X[Z] : X.label
|
|
796
796
|
}));
|
|
797
797
|
}
|
|
798
798
|
});
|
|
@@ -802,18 +802,18 @@ const _e = (r) => {
|
|
|
802
802
|
}
|
|
803
803
|
function P() {
|
|
804
804
|
var m;
|
|
805
|
-
console.log("init form", e.id, e.model), F(),
|
|
805
|
+
console.log("init form", e.id, e.model), F(), w.value = (m = e.model.useI18n) != null ? m : !0, H(), (e.mode === "update" || e.mode === "view") && e.id !== void 0 && e.id !== "" && e.model.api !== "" && (C.value = !0, ve(`${e.model.api}/${e.id}`, "GET", {}).then(({ data: T }) => {
|
|
806
806
|
_e(t), Object.assign(t, T.data), C.value = !1;
|
|
807
807
|
}));
|
|
808
808
|
}
|
|
809
809
|
function z() {
|
|
810
810
|
return new Promise((m, T) => {
|
|
811
|
-
var G,
|
|
812
|
-
((
|
|
811
|
+
var G, A, _, x;
|
|
812
|
+
((A = (G = e.model.formConfig) == null ? void 0 : G.functions) == null ? void 0 : A.beforeSubmit) !== void 0 && Object.assign(t, (x = (_ = e.model.formConfig) == null ? void 0 : _.functions) == null ? void 0 : x.beforeSubmit(t));
|
|
813
813
|
let h = e.mode === "create" ? "POST" : "PUT";
|
|
814
814
|
e.model.api && ve(e.model.api, h, t).then(({ data: M }) => {
|
|
815
|
-
var R,
|
|
816
|
-
M.code === 0 && (e.closeDialogFunc && e.closeDialogFunc(), ((
|
|
815
|
+
var R, j, p, S;
|
|
816
|
+
M.code === 0 && (e.closeDialogFunc && e.closeDialogFunc(), ((j = (R = e.model.formConfig) == null ? void 0 : R.functions) == null ? void 0 : j.afterSubmit) !== void 0 && ((S = (p = e.model.formConfig) == null ? void 0 : p.functions) == null || S.afterSubmit(M.data)), e.afterSubmitFunc && e.afterSubmitFunc(), m());
|
|
817
817
|
});
|
|
818
818
|
});
|
|
819
819
|
}
|
|
@@ -822,29 +822,29 @@ const _e = (r) => {
|
|
|
822
822
|
(m = c.value) == null || m.resetFields();
|
|
823
823
|
}
|
|
824
824
|
function O(m) {
|
|
825
|
-
return m.label ?
|
|
825
|
+
return m.label ? w ? g(m.label) : m.label : m.prop.slice(0, 1).toUpperCase() + m.prop.slice(1).toLowerCase();
|
|
826
826
|
}
|
|
827
827
|
function k(m) {
|
|
828
|
-
var T, h, G,
|
|
828
|
+
var T, h, G, A;
|
|
829
829
|
if (m) {
|
|
830
830
|
if (Y(m, "select")) {
|
|
831
831
|
const _ = (h = (T = m.tableColumnAttributes) == null ? void 0 : T.functions) == null ? void 0 : h.transformValue;
|
|
832
832
|
if (_)
|
|
833
833
|
return _(t[m.prop]);
|
|
834
|
-
const x = (
|
|
834
|
+
const x = (A = (G = m.formItemAttributes) == null ? void 0 : G.selectAttributes) == null ? void 0 : A.viewModeLabelField;
|
|
835
835
|
if (x)
|
|
836
836
|
return t[x];
|
|
837
837
|
}
|
|
838
838
|
return t[m.prop];
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function W(m) {
|
|
842
842
|
var T;
|
|
843
843
|
return ((T = m.formItemAttributes) == null ? void 0 : T.updatable) === !1 && e.mode === "update";
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
var G,
|
|
847
|
-
const h = (
|
|
845
|
+
function L(m, T) {
|
|
846
|
+
var G, A;
|
|
847
|
+
const h = (A = (G = T.formItemAttributes) == null ? void 0 : G.type) != null ? A : "input";
|
|
848
848
|
switch (m) {
|
|
849
849
|
case "input":
|
|
850
850
|
return e.mode === "view" ? !1 : h === "input" || h === "password";
|
|
@@ -863,16 +863,16 @@ const _e = (r) => {
|
|
|
863
863
|
for (let h of e.model.fields) {
|
|
864
864
|
const G = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes;
|
|
865
865
|
if (!(!h.formItemAttributes || h.formItemAttributes.type !== "select" || !G || !G.queryParamValueField) && G.queryParamValueField === m.prop) {
|
|
866
|
-
const
|
|
867
|
-
if (
|
|
868
|
-
let _ =
|
|
866
|
+
const A = G.api;
|
|
867
|
+
if (A) {
|
|
868
|
+
let _ = A;
|
|
869
869
|
const x = G.queryParamName;
|
|
870
870
|
x && (_ = `${_}?${x}=${t[G.queryParamValueField]}`), ve(_, "GET", {}).then(({ data: M }) => {
|
|
871
871
|
if (G) {
|
|
872
872
|
let R = [];
|
|
873
|
-
Array.isArray(M.data) ? R = M.data : M.data.list && Array.isArray(M.data.list) && (R = M.data.list), G.options = R.map((
|
|
874
|
-
value: G.valueMappingField ?
|
|
875
|
-
label: G.labelMappingField ?
|
|
873
|
+
Array.isArray(M.data) ? R = M.data : M.data.list && Array.isArray(M.data.list) && (R = M.data.list), G.options = R.map((j) => ({
|
|
874
|
+
value: G.valueMappingField ? j[G.valueMappingField] : j.value,
|
|
875
|
+
label: G.labelMappingField ? j[G.labelMappingField] : j.label
|
|
876
876
|
}));
|
|
877
877
|
}
|
|
878
878
|
});
|
|
@@ -888,7 +888,7 @@ const _e = (r) => {
|
|
|
888
888
|
submit: z,
|
|
889
889
|
formData: t
|
|
890
890
|
}), (m, T) => {
|
|
891
|
-
const h = b("el-input"), G = b("el-switch"),
|
|
891
|
+
const h = b("el-input"), G = b("el-switch"), A = b("el-date-picker"), _ = b("el-option"), x = b("el-select"), M = b("el-form-item"), R = b("el-form"), j = Ke("loading");
|
|
892
892
|
return Pe((l(), I(R, {
|
|
893
893
|
ref_key: "formRef",
|
|
894
894
|
ref: c,
|
|
@@ -908,13 +908,13 @@ const _e = (r) => {
|
|
|
908
908
|
default: n(() => {
|
|
909
909
|
var S;
|
|
910
910
|
return [
|
|
911
|
-
|
|
911
|
+
L("input", p) ? (l(), I(h, {
|
|
912
912
|
key: 0,
|
|
913
913
|
type: Y(p, "password") ? "password" : "text",
|
|
914
914
|
modelValue: t[p.prop],
|
|
915
915
|
"onUpdate:modelValue": (u) => t[p.prop] = u,
|
|
916
916
|
placeholder: (S = p.formItemAttributes) == null ? void 0 : S.placeholder,
|
|
917
|
-
disabled:
|
|
917
|
+
disabled: W(p)
|
|
918
918
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : K("", !0),
|
|
919
919
|
D(p) ? (l(), U("span", Eo, Q(k(p)), 1)) : K("", !0),
|
|
920
920
|
Y(p, "switch") ? (l(), I(G, {
|
|
@@ -922,7 +922,7 @@ const _e = (r) => {
|
|
|
922
922
|
modelValue: t[p.prop],
|
|
923
923
|
"onUpdate:modelValue": (u) => t[p.prop] = u
|
|
924
924
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : K("", !0),
|
|
925
|
-
Y(p, "datepicker") ? (l(), I(
|
|
925
|
+
Y(p, "datepicker") ? (l(), I(A, {
|
|
926
926
|
key: 3,
|
|
927
927
|
type: "date",
|
|
928
928
|
modelValue: t[p.prop],
|
|
@@ -932,7 +932,7 @@ const _e = (r) => {
|
|
|
932
932
|
key: 4,
|
|
933
933
|
modelValue: t[p.prop],
|
|
934
934
|
"onUpdate:modelValue": (u) => t[p.prop] = u,
|
|
935
|
-
disabled:
|
|
935
|
+
disabled: W(p),
|
|
936
936
|
onChange: (u) => fe(p)
|
|
937
937
|
}, {
|
|
938
938
|
default: n(() => {
|
|
@@ -953,7 +953,7 @@ const _e = (r) => {
|
|
|
953
953
|
]),
|
|
954
954
|
_: 1
|
|
955
955
|
}, 8, ["model", "rules"])), [
|
|
956
|
-
[
|
|
956
|
+
[j, C.value]
|
|
957
957
|
]);
|
|
958
958
|
};
|
|
959
959
|
}
|
|
@@ -975,14 +975,14 @@ const _e = (r) => {
|
|
|
975
975
|
function y() {
|
|
976
976
|
c.value && c.value.refresh();
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function w() {
|
|
979
979
|
C("update:visible", !1), c.value.reset();
|
|
980
980
|
}
|
|
981
981
|
function D() {
|
|
982
982
|
c.value.submit();
|
|
983
983
|
}
|
|
984
984
|
return a({
|
|
985
|
-
close:
|
|
985
|
+
close: w,
|
|
986
986
|
refresh: y
|
|
987
987
|
}), (V, H) => {
|
|
988
988
|
const P = b("el-button"), z = b("el-dialog");
|
|
@@ -990,7 +990,7 @@ const _e = (r) => {
|
|
|
990
990
|
title: "Edit",
|
|
991
991
|
"model-value": e.visible,
|
|
992
992
|
width: "800px",
|
|
993
|
-
onClose:
|
|
993
|
+
onClose: w
|
|
994
994
|
}, {
|
|
995
995
|
footer: n(() => {
|
|
996
996
|
var F;
|
|
@@ -1007,7 +1007,7 @@ const _e = (r) => {
|
|
|
1007
1007
|
}, 1032, ["onClick"]))), 256))
|
|
1008
1008
|
]),
|
|
1009
1009
|
i("div", null, [
|
|
1010
|
-
d(P, { onClick:
|
|
1010
|
+
d(P, { onClick: w }, {
|
|
1011
1011
|
default: n(() => [
|
|
1012
1012
|
N(Q(v(g)("common.basic.cancel")), 1)
|
|
1013
1013
|
]),
|
|
@@ -1035,7 +1035,7 @@ const _e = (r) => {
|
|
|
1035
1035
|
mode: e.mode,
|
|
1036
1036
|
model: e.model,
|
|
1037
1037
|
afterSubmitFunc: e.afterSubmitFunc,
|
|
1038
|
-
closeDialogFunc:
|
|
1038
|
+
closeDialogFunc: w
|
|
1039
1039
|
}, null, 8, ["id", "sessionId", "mode", "model", "afterSubmitFunc"])
|
|
1040
1040
|
]),
|
|
1041
1041
|
_: 1
|
|
@@ -1050,7 +1050,7 @@ const _e = (r) => {
|
|
|
1050
1050
|
setup(r, { expose: a }) {
|
|
1051
1051
|
const { t: o } = Me.global, g = r, e = ne([]), t = ne({
|
|
1052
1052
|
showPane: !0
|
|
1053
|
-
}), C = E(""), c = E(!0), y = E(!1),
|
|
1053
|
+
}), C = E(""), c = E(!0), y = E(!1), w = Be(), D = E(""), V = ne([]), H = ne([]), P = E(), z = E([]), F = E("create"), O = E(!0), k = E(!1), W = E(""), L = ne({
|
|
1054
1054
|
pageSize: 10,
|
|
1055
1055
|
pageNo: 1,
|
|
1056
1056
|
totalElements: 0
|
|
@@ -1067,20 +1067,20 @@ const _e = (r) => {
|
|
|
1067
1067
|
if (Z)
|
|
1068
1068
|
B = Z(B);
|
|
1069
1069
|
else if (q && q.length > 0) {
|
|
1070
|
-
for (let
|
|
1071
|
-
if (B ===
|
|
1072
|
-
B = o(
|
|
1070
|
+
for (let $ of q)
|
|
1071
|
+
if (B === $.value) {
|
|
1072
|
+
B = o($.label);
|
|
1073
1073
|
break;
|
|
1074
1074
|
}
|
|
1075
1075
|
} else if (((le = s.formItemAttributes) == null ? void 0 : le.type) === "select") {
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1078
|
-
if (
|
|
1079
|
-
B = f.row[
|
|
1080
|
-
else if (
|
|
1081
|
-
for (let
|
|
1082
|
-
if (
|
|
1083
|
-
B =
|
|
1076
|
+
const $ = s.formItemAttributes.selectAttributes;
|
|
1077
|
+
if ($) {
|
|
1078
|
+
if ($.viewModeLabelField)
|
|
1079
|
+
B = f.row[$.viewModeLabelField];
|
|
1080
|
+
else if ($.options && $.options.length > 0) {
|
|
1081
|
+
for (let X of $.options)
|
|
1082
|
+
if (X.value === f.row[s.prop]) {
|
|
1083
|
+
B = X.label;
|
|
1084
1084
|
break;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
@@ -1101,16 +1101,16 @@ const _e = (r) => {
|
|
|
1101
1101
|
return;
|
|
1102
1102
|
_e(t), t.showPane = !0, Object.assign(t, (f = g.model.tableConfig) != null ? f : {}), e.splice(0, e.length, ...g.model.fields), C.value = (B = g.model.route) != null ? B : "", c.value = (Z = g.model.useI18n) != null ? Z : !0;
|
|
1103
1103
|
let s = Ee({}, t.queryParams);
|
|
1104
|
-
s.pageSize =
|
|
1104
|
+
s.pageSize = L.pageSize, s.pageNo = L.pageNo, s.search = D.value, ve(g.model.api, "GET", s).then(({ data: q }) => {
|
|
1105
1105
|
const { list: oe, totalCount: ce } = q.data;
|
|
1106
|
-
V.splice(0, V.length, ...oe),
|
|
1106
|
+
V.splice(0, V.length, ...oe), L.totalElements = ce, O.value = !1;
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
function G() {
|
|
1110
1110
|
var s, f;
|
|
1111
|
-
t.createPageRoutePath !== void 0 ?
|
|
1111
|
+
t.createPageRoutePath !== void 0 ? w.push(t.createPageRoutePath) : ((s = t.functions) == null ? void 0 : s.create) !== void 0 ? (f = t.functions) == null || f.create() : (F.value = "create", W.value = "", y.value = !0);
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function A(s, f) {
|
|
1114
1114
|
g.model.api && ve(g.model.api, "DELETE", f.id).then(({ data: B }) => {
|
|
1115
1115
|
B.code === 0 && (y.value = !1, h());
|
|
1116
1116
|
});
|
|
@@ -1140,20 +1140,20 @@ const _e = (r) => {
|
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
1142
|
function x(s) {
|
|
1143
|
-
|
|
1143
|
+
L.pageSize = s, h();
|
|
1144
1144
|
}
|
|
1145
1145
|
function M(s) {
|
|
1146
|
-
|
|
1146
|
+
L.pageNo = s, h();
|
|
1147
1147
|
}
|
|
1148
1148
|
function R(s, f) {
|
|
1149
|
-
t.editPageRoutePath !== void 0 ?
|
|
1149
|
+
t.editPageRoutePath !== void 0 ? w.push({
|
|
1150
1150
|
path: t.editPageRoutePath,
|
|
1151
1151
|
query: {
|
|
1152
1152
|
id: f.id
|
|
1153
1153
|
}
|
|
1154
|
-
}) : (
|
|
1154
|
+
}) : (W.value = f.id, F.value = "update", y.value = !0);
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function j() {
|
|
1157
1157
|
let s = window.location.origin + g.model.api + "/export";
|
|
1158
1158
|
const f = t.queryParams;
|
|
1159
1159
|
f !== void 0 && Object.keys(f).length > 0 && (s += "?", Object.entries(t.queryParams).map((B) => {
|
|
@@ -1179,7 +1179,7 @@ const _e = (r) => {
|
|
|
1179
1179
|
refresh: h,
|
|
1180
1180
|
updateConfigAndRefresh: T
|
|
1181
1181
|
}), (s, f) => {
|
|
1182
|
-
const B = b("el-checkbox"), Z = b("el-badge"), q = b("el-button"), oe = b("el-icon"), ce = b("el-tooltip"), ae = b("el-input"), le = b("el-table-column"),
|
|
1182
|
+
const B = b("el-checkbox"), Z = b("el-badge"), q = b("el-button"), oe = b("el-icon"), ce = b("el-tooltip"), ae = b("el-input"), le = b("el-table-column"), $ = b("router-link"), X = b("el-tag"), ue = b("el-popconfirm"), me = b("el-table"), ye = b("el-pagination"), Ne = Ke("loading");
|
|
1183
1183
|
return l(), U("div", {
|
|
1184
1184
|
class: Te({ "table-view-wrapper": t.showPane })
|
|
1185
1185
|
}, [
|
|
@@ -1254,7 +1254,7 @@ const _e = (r) => {
|
|
|
1254
1254
|
t.export ? (l(), I(q, {
|
|
1255
1255
|
key: 0,
|
|
1256
1256
|
class: "button-export",
|
|
1257
|
-
onClick:
|
|
1257
|
+
onClick: j
|
|
1258
1258
|
}, {
|
|
1259
1259
|
default: n(() => [
|
|
1260
1260
|
d(oe, null, {
|
|
@@ -1309,7 +1309,7 @@ const _e = (r) => {
|
|
|
1309
1309
|
default: n((we) => {
|
|
1310
1310
|
var be, Ae;
|
|
1311
1311
|
return [
|
|
1312
|
-
(be = J.tableColumnAttributes) != null && be.link ? (l(), I(
|
|
1312
|
+
(be = J.tableColumnAttributes) != null && be.link ? (l(), I($, {
|
|
1313
1313
|
key: 0,
|
|
1314
1314
|
class: "router-link",
|
|
1315
1315
|
to: `/${C.value}/detail?id=${we.row.id}`
|
|
@@ -1319,7 +1319,7 @@ const _e = (r) => {
|
|
|
1319
1319
|
]),
|
|
1320
1320
|
_: 2
|
|
1321
1321
|
}, 1032, ["to"])) : (l(), U("span", Oo, Q(fe(J, we)), 1)),
|
|
1322
|
-
((Ae = J.tableColumnAttributes) == null ? void 0 : Ae.type) === "tag" ? (l(), I(
|
|
1322
|
+
((Ae = J.tableColumnAttributes) == null ? void 0 : Ae.type) === "tag" ? (l(), I(X, { key: 2 }, {
|
|
1323
1323
|
default: n(() => [
|
|
1324
1324
|
N(Q(we.row[J.prop]), 1)
|
|
1325
1325
|
]),
|
|
@@ -1349,7 +1349,7 @@ const _e = (r) => {
|
|
|
1349
1349
|
}, 1032, ["onClick"]),
|
|
1350
1350
|
d(ue, {
|
|
1351
1351
|
title: "Are you sure to delete this?",
|
|
1352
|
-
onConfirm: (ge) =>
|
|
1352
|
+
onConfirm: (ge) => A(J.$index, J.row)
|
|
1353
1353
|
}, {
|
|
1354
1354
|
reference: n(() => [
|
|
1355
1355
|
d(q, {
|
|
@@ -1404,17 +1404,17 @@ const _e = (r) => {
|
|
|
1404
1404
|
background: "",
|
|
1405
1405
|
onSizeChange: x,
|
|
1406
1406
|
onCurrentChange: M,
|
|
1407
|
-
currentPage:
|
|
1408
|
-
"onUpdate:currentPage": f[1] || (f[1] = (te) =>
|
|
1407
|
+
currentPage: L.pageNo,
|
|
1408
|
+
"onUpdate:currentPage": f[1] || (f[1] = (te) => L.pageNo = te),
|
|
1409
1409
|
"page-sizes": [10, 20, 50, 100],
|
|
1410
|
-
"page-size":
|
|
1410
|
+
"page-size": L.pageSize,
|
|
1411
1411
|
layout: "total, sizes, prev, pager, next",
|
|
1412
|
-
total:
|
|
1412
|
+
total: L.totalElements
|
|
1413
1413
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
1414
1414
|
d(ze, {
|
|
1415
1415
|
model: s.model,
|
|
1416
1416
|
mode: F.value,
|
|
1417
|
-
id:
|
|
1417
|
+
id: W.value,
|
|
1418
1418
|
afterSubmitFunc: h,
|
|
1419
1419
|
visible: y.value,
|
|
1420
1420
|
"onUpdate:visible": f[2] || (f[2] = (te) => y.value = te)
|
|
@@ -1422,17 +1422,17 @@ const _e = (r) => {
|
|
|
1422
1422
|
], 2);
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
}), Qe = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-
|
|
1425
|
+
}), Qe = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-9c7312a1"]]), Ro = { class: "nav-bar" }, Vo = {
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
class: "info-card-wrapper"
|
|
1428
1428
|
}, Do = { class: "icon-wrapper" }, To = { class: "info-wrapper" }, Ko = { class: "title-wrapper" }, Po = { class: "tabs-wrapper" }, Lo = { class: "dialog-footer" }, jo = /* @__PURE__ */ pe({
|
|
1429
1429
|
__name: "DetailPage",
|
|
1430
1430
|
setup(r) {
|
|
1431
|
-
const { t: a } = Ie(), o = ke(), g = Be(), e = xe(() => o.query.id), t = E(!1), C = E(!1), c = E("view"), y = E(),
|
|
1431
|
+
const { t: a } = Ie(), o = ke(), g = Be(), e = xe(() => o.query.id), t = E(!1), C = E(!1), c = E("view"), y = E(), w = E(-1), D = E(), V = E(), H = E("summary"), P = E(""), z = E(""), F = E(""), O = E(0), k = ne({
|
|
1432
1432
|
api: "",
|
|
1433
1433
|
fields: []
|
|
1434
|
-
}),
|
|
1435
|
-
let
|
|
1434
|
+
}), W = ne([]);
|
|
1435
|
+
let L = [];
|
|
1436
1436
|
he([
|
|
1437
1437
|
() => g.currentRoute.value,
|
|
1438
1438
|
de
|
|
@@ -1442,33 +1442,33 @@ const _e = (r) => {
|
|
|
1442
1442
|
immediate: !0,
|
|
1443
1443
|
deep: !0
|
|
1444
1444
|
});
|
|
1445
|
-
function Y(
|
|
1446
|
-
|
|
1445
|
+
function Y(A) {
|
|
1446
|
+
w.value = parseInt(A.index) - 1, console.log(w.value, W[w.value]);
|
|
1447
1447
|
}
|
|
1448
1448
|
function fe() {
|
|
1449
1449
|
var M;
|
|
1450
|
-
let
|
|
1451
|
-
|
|
1452
|
-
const _ = k.api + "/" + e.value +
|
|
1450
|
+
let A = (M = L[w.value].api) == null ? void 0 : M.replace("/select", "");
|
|
1451
|
+
A = A == null ? void 0 : A.substring(A.lastIndexOf("/"));
|
|
1452
|
+
const _ = k.api + "/" + e.value + A, x = V.value.multipleSelection.map((R) => R.id);
|
|
1453
1453
|
ve(_, "POST", x).then(() => {
|
|
1454
1454
|
D.value.refresh(), C.value = !1;
|
|
1455
1455
|
});
|
|
1456
1456
|
}
|
|
1457
|
-
function m(
|
|
1458
|
-
var
|
|
1457
|
+
function m(A, _, x) {
|
|
1458
|
+
var j;
|
|
1459
1459
|
x.functions || (x.functions = {}), x.functions.create = () => {
|
|
1460
1460
|
C.value = !0, V.value && V.value.refresh();
|
|
1461
1461
|
};
|
|
1462
1462
|
let M = Ce(_);
|
|
1463
|
-
M.tableConfig || (M.tableConfig = {}), M.tableConfig.selectMode = !0, M.tableConfig.queryParams = {},
|
|
1463
|
+
M.tableConfig || (M.tableConfig = {}), M.tableConfig.selectMode = !0, M.tableConfig.queryParams = {}, A.queryParamName && (M.tableConfig.queryParams[A.queryParamName] = e.value);
|
|
1464
1464
|
for (var R in M.fields)
|
|
1465
|
-
M.fields[R].tableColumnAttributes && (
|
|
1466
|
-
|
|
1465
|
+
M.fields[R].tableColumnAttributes && (j = M.fields[R].tableColumnAttributes) != null && j.link && (M.fields[R].tableColumnAttributes.link = !1);
|
|
1466
|
+
L.push(M), x.labels = {
|
|
1467
1467
|
create: "common.table.add",
|
|
1468
1468
|
delete: "common.table.remove"
|
|
1469
1469
|
}, x.functions.batchDelete = (p) => {
|
|
1470
1470
|
var f;
|
|
1471
|
-
let S = (f =
|
|
1471
|
+
let S = (f = L[w.value].api) == null ? void 0 : f.replace("/select", "");
|
|
1472
1472
|
S = S == null ? void 0 : S.substring(S.lastIndexOf("/"));
|
|
1473
1473
|
const u = k.api + "/" + e.value + S, s = p.map((B) => B.id);
|
|
1474
1474
|
ie.delete(`${u}/${s.join(",")}`).then(({ data: B }) => {
|
|
@@ -1480,7 +1480,7 @@ const _e = (r) => {
|
|
|
1480
1480
|
functions: {
|
|
1481
1481
|
click: (p, S) => {
|
|
1482
1482
|
var f;
|
|
1483
|
-
let u = (f =
|
|
1483
|
+
let u = (f = L[w.value].api) == null ? void 0 : f.replace("/select", "");
|
|
1484
1484
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
1485
1485
|
const s = k.api + "/" + e.value + u;
|
|
1486
1486
|
ve(s, "DELETE", S.id).then(() => {
|
|
@@ -1492,27 +1492,29 @@ const _e = (r) => {
|
|
|
1492
1492
|
], M.api += "/select";
|
|
1493
1493
|
}
|
|
1494
1494
|
function T() {
|
|
1495
|
-
var M, R,
|
|
1496
|
-
|
|
1497
|
-
const
|
|
1498
|
-
if (de.value[
|
|
1499
|
-
console.warn("Detail page model not exist:",
|
|
1495
|
+
var M, R, j;
|
|
1496
|
+
W.splice(0);
|
|
1497
|
+
const A = o.params.model;
|
|
1498
|
+
if (de.value[A] === void 0) {
|
|
1499
|
+
console.warn("Detail page model not exist:", A);
|
|
1500
1500
|
return;
|
|
1501
1501
|
} else
|
|
1502
|
-
console.debug("Detail page model found:",
|
|
1502
|
+
console.debug("Detail page model found:", A, de.value[A]);
|
|
1503
1503
|
_e(k);
|
|
1504
|
-
const _ = Ce(de.value[
|
|
1505
|
-
Object.assign(k, _), O.value++,
|
|
1504
|
+
const _ = Ce(de.value[A]);
|
|
1505
|
+
Object.assign(k, _), O.value++, w.value = -1, H.value = "summary";
|
|
1506
1506
|
const x = (R = (M = k.pageConfig) == null ? void 0 : M.detailPage) == null ? void 0 : R.tabs;
|
|
1507
1507
|
if (x)
|
|
1508
1508
|
for (let p of x) {
|
|
1509
1509
|
const S = Ce(de.value[p.modelKey]);
|
|
1510
|
-
if (
|
|
1510
|
+
if (W.push(S), p.type === "table") {
|
|
1511
1511
|
S.tableConfig || (S.tableConfig = {});
|
|
1512
1512
|
let u = S.tableConfig;
|
|
1513
|
-
u.showPane = !1, p.modelRelationType === "associated" ? m(p, S, u) : p.modelRelationType === "child" && (
|
|
1513
|
+
u.showPane = !1, p.modelRelationType === "associated" ? m(p, S, u) : p.modelRelationType === "child" && (L.push({
|
|
1514
|
+
fields: []
|
|
1515
|
+
}), S.formConfig === void 0 && (S.formConfig = {}), S.formConfig.functions === void 0 && (S.formConfig.functions = {}), p.queryParamName && (S.formConfig.functions.beforeSubmit = (s) => {
|
|
1514
1516
|
s[p.queryParamName] = e.value;
|
|
1515
|
-
})), u.queryParams || (u.queryParams = {}), p.queryParamName && (u.queryParams[p.queryParamName] = e.value), p.queryParams && Object.assign(u.queryParams, p.queryParams), u.readOnly = (
|
|
1517
|
+
})), u.queryParams || (u.queryParams = {}), p.queryParamName && (u.queryParams[p.queryParamName] = e.value), p.queryParams && Object.assign(u.queryParams, p.queryParams), u.readOnly = (j = p.readOnly) != null ? j : !1, p.includeFields && (S.fields = S.fields.filter((s) => {
|
|
1516
1518
|
var f;
|
|
1517
1519
|
return (f = p.includeFields) == null ? void 0 : f.includes(s.prop);
|
|
1518
1520
|
})), p.excludeFields && (S.fields = S.fields.filter((s) => {
|
|
@@ -1525,22 +1527,22 @@ const _e = (r) => {
|
|
|
1525
1527
|
he(
|
|
1526
1528
|
[
|
|
1527
1529
|
() => {
|
|
1528
|
-
var
|
|
1529
|
-
return (_ = (
|
|
1530
|
+
var A, _;
|
|
1531
|
+
return (_ = (A = k.pageConfig) == null ? void 0 : A.detailPage) == null ? void 0 : _.infoCard;
|
|
1530
1532
|
},
|
|
1531
1533
|
() => {
|
|
1532
|
-
var
|
|
1533
|
-
return (
|
|
1534
|
+
var A;
|
|
1535
|
+
return (A = y.value) == null ? void 0 : A.formData;
|
|
1534
1536
|
}
|
|
1535
1537
|
],
|
|
1536
|
-
(
|
|
1538
|
+
(A) => {
|
|
1537
1539
|
De(() => {
|
|
1538
1540
|
var x, M, R;
|
|
1539
1541
|
const _ = (M = (x = k.pageConfig) == null ? void 0 : x.detailPage) == null ? void 0 : M.infoCard;
|
|
1540
|
-
_ && (P.value = _.titleFieldProp ? y.value.formData[_.titleFieldProp] : "", z.value = _.subtitleFieldProp ? y.value.formData[_.subtitleFieldProp] : "", F.value = _.tagFieldProp ? y.value.formData[_.tagFieldProp] : "", (R = k.fields) == null || R.forEach((
|
|
1542
|
+
_ && (P.value = _.titleFieldProp ? y.value.formData[_.titleFieldProp] : "", z.value = _.subtitleFieldProp ? y.value.formData[_.subtitleFieldProp] : "", F.value = _.tagFieldProp ? y.value.formData[_.tagFieldProp] : "", (R = k.fields) == null || R.forEach((j) => {
|
|
1541
1543
|
var p, S;
|
|
1542
|
-
if (
|
|
1543
|
-
const u = (S = (p =
|
|
1544
|
+
if (j.prop === _.tagFieldProp) {
|
|
1545
|
+
const u = (S = (p = j.tableColumnAttributes) == null ? void 0 : p.functions) == null ? void 0 : S.transformValue;
|
|
1544
1546
|
u && (F.value = u(F.value));
|
|
1545
1547
|
}
|
|
1546
1548
|
}));
|
|
@@ -1557,17 +1559,17 @@ const _e = (r) => {
|
|
|
1557
1559
|
function G() {
|
|
1558
1560
|
y.value.refresh();
|
|
1559
1561
|
}
|
|
1560
|
-
return (
|
|
1561
|
-
var q, oe, ce, ae, le,
|
|
1562
|
-
const x = b("el-breadcrumb-item"), M = b("el-breadcrumb"), R = b("el-button"),
|
|
1562
|
+
return (A, _) => {
|
|
1563
|
+
var q, oe, ce, ae, le, $;
|
|
1564
|
+
const x = b("el-breadcrumb-item"), M = b("el-breadcrumb"), R = b("el-button"), j = b("el-icon"), p = b("el-dropdown-item"), S = b("el-dropdown-menu"), u = b("el-dropdown"), s = b("el-tag"), f = b("el-tab-pane"), B = b("el-tabs"), Z = b("el-dialog");
|
|
1563
1565
|
return l(), U(ee, null, [
|
|
1564
1566
|
i("div", Ro, [
|
|
1565
1567
|
d(M, null, {
|
|
1566
1568
|
default: n(() => {
|
|
1567
|
-
var
|
|
1569
|
+
var X, ue;
|
|
1568
1570
|
return [
|
|
1569
1571
|
d(x, {
|
|
1570
|
-
to: { path: `/${(ue = (
|
|
1572
|
+
to: { path: `/${(ue = (X = k == null ? void 0 : k.breadcrumbRoute) != null ? X : k == null ? void 0 : k.route) != null ? ue : ""}` }
|
|
1571
1573
|
}, {
|
|
1572
1574
|
default: n(() => {
|
|
1573
1575
|
var me;
|
|
@@ -1611,9 +1613,9 @@ const _e = (r) => {
|
|
|
1611
1613
|
dropdown: n(() => [
|
|
1612
1614
|
d(S, null, {
|
|
1613
1615
|
default: n(() => {
|
|
1614
|
-
var
|
|
1616
|
+
var X, ue;
|
|
1615
1617
|
return [
|
|
1616
|
-
(l(!0), U(ee, null, se((ue = (
|
|
1618
|
+
(l(!0), U(ee, null, se((ue = (X = k.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : ue.operationButtons, (me) => (l(), I(p, {
|
|
1617
1619
|
onClick: (ye) => me.function(y.value.formData)
|
|
1618
1620
|
}, {
|
|
1619
1621
|
default: n(() => [
|
|
@@ -1630,7 +1632,7 @@ const _e = (r) => {
|
|
|
1630
1632
|
d(R, { style: { margin: "0 10px" } }, {
|
|
1631
1633
|
default: n(() => [
|
|
1632
1634
|
N(Q(v(a)("common.basic.more")), 1),
|
|
1633
|
-
d(
|
|
1635
|
+
d(j, { class: "el-icon--right" }, {
|
|
1634
1636
|
default: n(() => [
|
|
1635
1637
|
d(v(pt))
|
|
1636
1638
|
]),
|
|
@@ -1655,7 +1657,7 @@ const _e = (r) => {
|
|
|
1655
1657
|
i("div", To, [
|
|
1656
1658
|
i("div", Ko, [
|
|
1657
1659
|
i("h1", null, Q(P.value), 1),
|
|
1658
|
-
((
|
|
1660
|
+
(($ = F.value) == null ? void 0 : $.length) > 0 ? (l(), I(s, {
|
|
1659
1661
|
key: 0,
|
|
1660
1662
|
size: "small"
|
|
1661
1663
|
}, {
|
|
@@ -1671,11 +1673,11 @@ const _e = (r) => {
|
|
|
1671
1673
|
i("div", Po, [
|
|
1672
1674
|
d(B, {
|
|
1673
1675
|
modelValue: H.value,
|
|
1674
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
1676
|
+
"onUpdate:modelValue": _[0] || (_[0] = (X) => H.value = X),
|
|
1675
1677
|
onTabClick: Y
|
|
1676
1678
|
}, {
|
|
1677
1679
|
default: n(() => {
|
|
1678
|
-
var
|
|
1680
|
+
var X, ue;
|
|
1679
1681
|
return [
|
|
1680
1682
|
d(f, {
|
|
1681
1683
|
label: v(a)("common.basic.summary"),
|
|
@@ -1693,7 +1695,7 @@ const _e = (r) => {
|
|
|
1693
1695
|
]),
|
|
1694
1696
|
_: 1
|
|
1695
1697
|
}, 8, ["label"]),
|
|
1696
|
-
(l(!0), U(ee, null, se((ue = (
|
|
1698
|
+
(l(!0), U(ee, null, se((ue = (X = k.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : ue.tabs, (me) => {
|
|
1697
1699
|
var ye;
|
|
1698
1700
|
return l(), I(f, {
|
|
1699
1701
|
label: v(a)((ye = me.name) != null ? ye : "")
|
|
@@ -1703,22 +1705,22 @@ const _e = (r) => {
|
|
|
1703
1705
|
}),
|
|
1704
1706
|
_: 1
|
|
1705
1707
|
}, 8, ["modelValue"]),
|
|
1706
|
-
|
|
1708
|
+
w.value >= 0 ? (l(), I(Qe, {
|
|
1707
1709
|
key: 0,
|
|
1708
1710
|
ref_key: "tabPaneTableRef",
|
|
1709
1711
|
ref: D,
|
|
1710
|
-
model:
|
|
1712
|
+
model: W[w.value]
|
|
1711
1713
|
}, null, 8, ["model"])) : K("", !0),
|
|
1712
1714
|
d(Z, {
|
|
1713
1715
|
modelValue: C.value,
|
|
1714
|
-
"onUpdate:modelValue": _[2] || (_[2] = (
|
|
1716
|
+
"onUpdate:modelValue": _[2] || (_[2] = (X) => C.value = X),
|
|
1715
1717
|
title: v(a)("common.table.select"),
|
|
1716
1718
|
width: "800px"
|
|
1717
1719
|
}, {
|
|
1718
1720
|
footer: n(() => [
|
|
1719
1721
|
i("span", Lo, [
|
|
1720
1722
|
d(R, {
|
|
1721
|
-
onClick: _[1] || (_[1] = (
|
|
1723
|
+
onClick: _[1] || (_[1] = (X) => C.value = !1)
|
|
1722
1724
|
}, {
|
|
1723
1725
|
default: n(() => [
|
|
1724
1726
|
N(Q(v(a)("common.basic.cancel")), 1)
|
|
@@ -1737,11 +1739,11 @@ const _e = (r) => {
|
|
|
1737
1739
|
])
|
|
1738
1740
|
]),
|
|
1739
1741
|
default: n(() => [
|
|
1740
|
-
|
|
1742
|
+
w.value >= 0 ? (l(), I(Qe, {
|
|
1741
1743
|
key: 0,
|
|
1742
1744
|
ref_key: "selectTableRef",
|
|
1743
1745
|
ref: V,
|
|
1744
|
-
model: v(
|
|
1746
|
+
model: v(L)[w.value]
|
|
1745
1747
|
}, null, 8, ["model"])) : K("", !0)
|
|
1746
1748
|
]),
|
|
1747
1749
|
_: 1
|
|
@@ -1751,14 +1753,14 @@ const _e = (r) => {
|
|
|
1751
1753
|
id: e.value,
|
|
1752
1754
|
mode: "update",
|
|
1753
1755
|
visible: t.value,
|
|
1754
|
-
"onUpdate:visible": _[3] || (_[3] = (
|
|
1756
|
+
"onUpdate:visible": _[3] || (_[3] = (X) => t.value = X),
|
|
1755
1757
|
model: k,
|
|
1756
1758
|
afterSubmitFunc: G
|
|
1757
1759
|
}, null, 8, ["id", "visible", "model"])
|
|
1758
1760
|
], 64);
|
|
1759
1761
|
};
|
|
1760
1762
|
}
|
|
1761
|
-
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-
|
|
1763
|
+
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-25243c4f"]]), Yo = { class: "page-title" }, qo = /* @__PURE__ */ pe({
|
|
1762
1764
|
__name: "TablePage",
|
|
1763
1765
|
setup(r) {
|
|
1764
1766
|
const { t: a } = Ie(), o = ke(), g = Be(), e = E(), t = E([]), C = ne({
|
|
@@ -1778,7 +1780,7 @@ const _e = (r) => {
|
|
|
1778
1780
|
};
|
|
1779
1781
|
}));
|
|
1780
1782
|
}
|
|
1781
|
-
function
|
|
1783
|
+
function w() {
|
|
1782
1784
|
var H, P;
|
|
1783
1785
|
console.log("Init table page, loading model:", o.params.model), console.log("Current model list", de.value);
|
|
1784
1786
|
const D = o.params.model;
|
|
@@ -1794,7 +1796,7 @@ const _e = (r) => {
|
|
|
1794
1796
|
() => g.currentRoute.value,
|
|
1795
1797
|
de
|
|
1796
1798
|
], () => {
|
|
1797
|
-
|
|
1799
|
+
w();
|
|
1798
1800
|
}, {
|
|
1799
1801
|
immediate: !0,
|
|
1800
1802
|
deep: !0
|