@vancone/console-component 0.1.0-beta.8 → 0.1.0-beta.9
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.
|
@@ -2,15 +2,15 @@ var Ze = Object.defineProperty, We = Object.defineProperties;
|
|
|
2
2
|
var $e = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Fe = Object.getOwnPropertySymbols;
|
|
4
4
|
var et = Object.prototype.hasOwnProperty, tt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Re = (s, a,
|
|
6
|
-
for (var
|
|
7
|
-
et.call(a,
|
|
5
|
+
var Re = (s, a, t) => a in s ? Ze(s, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[a] = t, Ee = (s, a) => {
|
|
6
|
+
for (var t in a || (a = {}))
|
|
7
|
+
et.call(a, t) && Re(s, t, a[t]);
|
|
8
8
|
if (Fe)
|
|
9
|
-
for (var
|
|
10
|
-
tt.call(a,
|
|
9
|
+
for (var t of Fe(a))
|
|
10
|
+
tt.call(a, t) && Re(s, t, a[t]);
|
|
11
11
|
return s;
|
|
12
12
|
}, Ve = (s, a) => We(s, $e(a));
|
|
13
|
-
import { openBlock as n, createElementBlock as U, defineComponent as de, reactive as le, resolveComponent as y, createVNode as d, withCtx as r, createElementVNode as i, Fragment as ee, renderList as se, toDisplayString as Q, normalizeStyle as Ge, ref as E, onMounted as Oe, unref as v, createCommentVNode as K, createTextVNode as N, createBlock as I, resolveDynamicComponent as Se, computed as xe, watch as
|
|
13
|
+
import { openBlock as n, createElementBlock as U, defineComponent as de, reactive as le, resolveComponent as y, createVNode as d, withCtx as r, createElementVNode as i, Fragment as ee, renderList as se, toDisplayString as Q, normalizeStyle as Ge, ref as E, onMounted as Oe, unref as v, createCommentVNode as K, createTextVNode as N, createBlock as I, resolveDynamicComponent as Se, computed as xe, watch as he, createStaticVNode as ot, nextTick as De, normalizeClass as Te, resolveDirective as Ke, withDirectives as Pe } from "vue";
|
|
14
14
|
import { useRoute as _e, useRouter as Be } from "vue-router";
|
|
15
15
|
import at from "axios";
|
|
16
16
|
import { ElMessage as Ue, ElMessageBox as nt } from "element-plus";
|
|
@@ -18,10 +18,10 @@ import { createI18n as lt, useI18n as Ie } from "vue-i18n";
|
|
|
18
18
|
import { ArrowRight as st, Check as rt, Refresh as Le, QuestionFilled as it, Download as ct, Search as dt, ArrowDown as pt } from "@element-plus/icons-vue";
|
|
19
19
|
import { cloneDeep as Ce } from "lodash";
|
|
20
20
|
const re = (s, a) => {
|
|
21
|
-
const
|
|
22
|
-
for (const [g,
|
|
23
|
-
|
|
24
|
-
return
|
|
21
|
+
const t = s.__vccOpts || s;
|
|
22
|
+
for (const [g, o] of a)
|
|
23
|
+
t[g] = o;
|
|
24
|
+
return t;
|
|
25
25
|
}, ut = {}, ft = { class: "building" };
|
|
26
26
|
function mt(s, a) {
|
|
27
27
|
return n(), U("div", ft);
|
|
@@ -32,25 +32,25 @@ const ht = /* @__PURE__ */ re(ut, [["render", mt], ["__scopeId", "data-v-07bd45d
|
|
|
32
32
|
});
|
|
33
33
|
ie.interceptors.request.use((s) => s);
|
|
34
34
|
ie.interceptors.response.use((s) => {
|
|
35
|
-
const { headers: a, method:
|
|
35
|
+
const { headers: a, method: t } = s.config, { code: g, message: o } = s.data, { "No-Success-Message": e } = a, b = t !== "get";
|
|
36
36
|
return g === 0 ? (b && !e && Ue({
|
|
37
|
-
message:
|
|
37
|
+
message: o,
|
|
38
38
|
type: "success"
|
|
39
39
|
}), Promise.resolve(s)) : (Ue({
|
|
40
40
|
type: "error",
|
|
41
|
-
message:
|
|
41
|
+
message: o
|
|
42
42
|
}), Promise.reject(new Error(`${g}`)));
|
|
43
43
|
}, (s) => {
|
|
44
44
|
var g;
|
|
45
|
-
const { config: a, response:
|
|
46
|
-
if (
|
|
47
|
-
const { status:
|
|
48
|
-
if (
|
|
45
|
+
const { config: a, response: t } = s;
|
|
46
|
+
if (t) {
|
|
47
|
+
const { status: o } = t;
|
|
48
|
+
if (o === 401) {
|
|
49
49
|
const c = window.escape(window.location.href);
|
|
50
|
-
let C = (g =
|
|
50
|
+
let C = (g = t.data.data) != null ? g : "https://passport.vancone.com";
|
|
51
51
|
window.location.href = `${C}/?from=${c}`;
|
|
52
52
|
}
|
|
53
|
-
const { message: e, error: b } =
|
|
53
|
+
const { message: e, error: b } = t.data;
|
|
54
54
|
Ue({
|
|
55
55
|
type: "error",
|
|
56
56
|
message: e || b
|
|
@@ -80,18 +80,18 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
80
80
|
visible: { type: Boolean }
|
|
81
81
|
},
|
|
82
82
|
setup(s) {
|
|
83
|
-
const a = s,
|
|
83
|
+
const a = s, t = le([]);
|
|
84
84
|
function g() {
|
|
85
|
-
Ct().then(({ data:
|
|
86
|
-
|
|
85
|
+
Ct().then(({ data: o }) => {
|
|
86
|
+
t.splice(0, t.length, ...o.data.list), yt().then(({ data: e }) => {
|
|
87
87
|
const b = e.data.list;
|
|
88
|
-
|
|
88
|
+
t.forEach((c) => {
|
|
89
89
|
c.apps = b.filter((C) => C.appGroupId === c.id);
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
return g(), (
|
|
94
|
+
return g(), (o, e) => {
|
|
95
95
|
const b = y("el-input"), c = y("el-drawer");
|
|
96
96
|
return n(), U("div", wt, [
|
|
97
97
|
d(c, {
|
|
@@ -117,7 +117,7 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
117
117
|
i("span", { class: "service-name" }, "Datable")
|
|
118
118
|
], -1)),
|
|
119
119
|
i("div", kt, [
|
|
120
|
-
(n(!0), U(ee, null, se(
|
|
120
|
+
(n(!0), U(ee, null, se(t, (C) => (n(), U("div", _t, [
|
|
121
121
|
i("h1", null, Q(C.name), 1),
|
|
122
122
|
(n(!0), U(ee, null, se(C.apps, (k) => {
|
|
123
123
|
var V, R;
|
|
@@ -257,14 +257,14 @@ function Vt(s, a) {
|
|
|
257
257
|
i("path", { d: "M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z" }, null, -1)
|
|
258
258
|
]));
|
|
259
259
|
}
|
|
260
|
-
const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt = { class: "icon-wrapper" }, Lt = { class: "user-wrapper" }, jt = { style: { "font-size": "11px", "font-weight": "bold" } }, Xt = { class: "user-popover-header" }, Yt = { style: { "font-size": "15px", "font-weight": "bold" } }, qt = ["onClick"],
|
|
260
|
+
const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt = { class: "icon-wrapper" }, Lt = { class: "user-wrapper" }, jt = { style: { "font-size": "11px", "font-weight": "bold" } }, Xt = { class: "user-popover-header" }, Yt = { style: { "font-size": "15px", "font-weight": "bold" } }, qt = ["onClick"], Jt = /* @__PURE__ */ de({
|
|
261
261
|
__name: "Header",
|
|
262
262
|
props: {
|
|
263
263
|
title: {},
|
|
264
264
|
helpDocUrl: {}
|
|
265
265
|
},
|
|
266
266
|
setup(s) {
|
|
267
|
-
const { t: a } = Ie(),
|
|
267
|
+
const { t: a } = Ie(), t = E(), g = E(), o = E(), e = s, b = E(!1), c = E(""), C = E(Me.global.locale), k = le([
|
|
268
268
|
{
|
|
269
269
|
id: "en",
|
|
270
270
|
name: "English"
|
|
@@ -307,7 +307,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
307
307
|
window.open(e.helpDocUrl, "_blank");
|
|
308
308
|
}
|
|
309
309
|
return (O, w) => {
|
|
310
|
-
const W = y("el-tooltip"), Y = y("el-avatar"), q = y("el-menu-item"),
|
|
310
|
+
const W = y("el-tooltip"), Y = y("el-avatar"), q = y("el-menu-item"), ue = y("el-icon"), m = y("el-popover"), T = y("el-menu");
|
|
311
311
|
return n(), U("div", Tt, [
|
|
312
312
|
i("div", {
|
|
313
313
|
class: "title",
|
|
@@ -370,7 +370,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
370
370
|
size: 30,
|
|
371
371
|
src: "",
|
|
372
372
|
ref_key: "avatarRef",
|
|
373
|
-
ref:
|
|
373
|
+
ref: t
|
|
374
374
|
}, {
|
|
375
375
|
default: r(() => [
|
|
376
376
|
i("span", jt, Q(c.value.substring(0, 2)), 1)
|
|
@@ -383,7 +383,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
383
383
|
effect: "dark",
|
|
384
384
|
ref_key: "popoverRef",
|
|
385
385
|
ref: g,
|
|
386
|
-
"virtual-ref":
|
|
386
|
+
"virtual-ref": t.value,
|
|
387
387
|
trigger: "hover",
|
|
388
388
|
"virtual-triggering": ""
|
|
389
389
|
}, {
|
|
@@ -410,12 +410,12 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
410
410
|
}),
|
|
411
411
|
d(q, {
|
|
412
412
|
ref_key: "switchLanguageRef",
|
|
413
|
-
ref:
|
|
413
|
+
ref: o,
|
|
414
414
|
style: { display: "flext", "justify-content": "space-between" }
|
|
415
415
|
}, {
|
|
416
416
|
default: r(() => [
|
|
417
417
|
i("span", null, Q(v(a)("common.header.switchLanguage")), 1),
|
|
418
|
-
d(
|
|
418
|
+
d(ue, { style: { left: "15px" } }, {
|
|
419
419
|
default: r(() => [
|
|
420
420
|
d(v(st))
|
|
421
421
|
]),
|
|
@@ -430,7 +430,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
430
430
|
effect: "dark",
|
|
431
431
|
ref: "popover2Ref",
|
|
432
432
|
placement: "left-start",
|
|
433
|
-
"virtual-ref":
|
|
433
|
+
"virtual-ref": o.value,
|
|
434
434
|
trigger: "hover",
|
|
435
435
|
"virtual-triggering": "",
|
|
436
436
|
"popper-style": "height: 80px; left: -165px"
|
|
@@ -441,7 +441,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
441
441
|
onClick: (G) => X(h.id)
|
|
442
442
|
}, [
|
|
443
443
|
i("span", null, Q(h.name), 1),
|
|
444
|
-
h.id === C.value ? (n(), I(
|
|
444
|
+
h.id === C.value ? (n(), I(ue, {
|
|
445
445
|
key: 0,
|
|
446
446
|
style: { color: "#8ba74f" }
|
|
447
447
|
}, {
|
|
@@ -471,30 +471,30 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
471
471
|
]);
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
}), Ye = /* @__PURE__ */ re(
|
|
474
|
+
}), Ye = /* @__PURE__ */ re(Jt, [["__scopeId", "data-v-a9821cf9"]]), Ht = { class: "menu-icon-wrapper" }, zt = { class: "menu-icon-wrapper" }, Nt = /* @__PURE__ */ de({
|
|
475
475
|
__name: "SideMenuItem",
|
|
476
476
|
props: {
|
|
477
477
|
menu: {}
|
|
478
478
|
},
|
|
479
479
|
setup(s) {
|
|
480
480
|
const a = s;
|
|
481
|
-
return (
|
|
482
|
-
const
|
|
483
|
-
return
|
|
481
|
+
return (t, g) => {
|
|
482
|
+
const o = y("SideMenuItem", !0), e = y("el-sub-menu"), b = y("el-menu-item");
|
|
483
|
+
return t.menu.children && t.menu.children.length > 0 ? (n(), I(e, {
|
|
484
484
|
key: 0,
|
|
485
|
-
index:
|
|
485
|
+
index: t.menu.path
|
|
486
486
|
}, {
|
|
487
487
|
title: r(() => {
|
|
488
488
|
var c, C, k;
|
|
489
489
|
return [
|
|
490
|
-
i("div",
|
|
491
|
-
(n(), I(Se((c =
|
|
490
|
+
i("div", Ht, [
|
|
491
|
+
(n(), I(Se((c = t.menu.meta) == null ? void 0 : c.icon), { class: "menu-icon" }))
|
|
492
492
|
]),
|
|
493
|
-
i("span", null, Q(
|
|
493
|
+
i("span", null, Q(t.$t((k = (C = t.menu.meta) == null ? void 0 : C.title) != null ? k : "")), 1)
|
|
494
494
|
];
|
|
495
495
|
}),
|
|
496
496
|
default: r(() => [
|
|
497
|
-
(n(!0), U(ee, null, se(
|
|
497
|
+
(n(!0), U(ee, null, se(t.menu.children, (c) => (n(), I(o, {
|
|
498
498
|
key: c.path,
|
|
499
499
|
route: c
|
|
500
500
|
}, null, 8, ["route"]))), 128))
|
|
@@ -508,19 +508,19 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
|
|
|
508
508
|
title: r(() => {
|
|
509
509
|
var c;
|
|
510
510
|
return [
|
|
511
|
-
i("span", null, Q(
|
|
511
|
+
i("span", null, Q(t.$t((c = t.menu.title) != null ? c : "")), 1)
|
|
512
512
|
];
|
|
513
513
|
}),
|
|
514
514
|
default: r(() => [
|
|
515
515
|
i("div", zt, [
|
|
516
|
-
(n(), I(Se(
|
|
516
|
+
(n(), I(Se(t.$props.menu.icon), { class: "menu-icon" }))
|
|
517
517
|
])
|
|
518
518
|
]),
|
|
519
519
|
_: 1
|
|
520
520
|
}, 8, ["index"]));
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
}), Zt = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-e3b5500a"]]),
|
|
523
|
+
}), Zt = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-e3b5500a"]]), me = E({}), Wt = {}, $t = E([]), eo = {
|
|
524
524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
525
525
|
width: "32",
|
|
526
526
|
height: "32",
|
|
@@ -542,19 +542,19 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
542
542
|
},
|
|
543
543
|
emits: ["update:menuCollapsed"],
|
|
544
544
|
setup(s, { emit: a }) {
|
|
545
|
-
const
|
|
545
|
+
const t = s, g = a, o = _e(), e = E(), b = xe(() => {
|
|
546
546
|
var V;
|
|
547
|
-
const k =
|
|
547
|
+
const k = o.meta.activeMenu;
|
|
548
548
|
if (k === "{model}") {
|
|
549
|
-
let R =
|
|
550
|
-
return "/" + ((V = Wt[
|
|
549
|
+
let R = o.params.app ? `${o.params.app}/${o.params.model}` : o.params.model;
|
|
550
|
+
return "/" + ((V = Wt[o.params.model]) != null ? V : R);
|
|
551
551
|
} else
|
|
552
552
|
return k;
|
|
553
553
|
}), c = E(!1);
|
|
554
554
|
function C() {
|
|
555
|
-
console.log("change"), g("update:menuCollapsed", !
|
|
555
|
+
console.log("change"), g("update:menuCollapsed", !t.menuCollapsed);
|
|
556
556
|
}
|
|
557
|
-
return
|
|
557
|
+
return he(c, () => {
|
|
558
558
|
c.value && e.value.style.width && (e.value.style.width += "200");
|
|
559
559
|
}), (k, V) => {
|
|
560
560
|
const R = y("el-menu");
|
|
@@ -570,7 +570,7 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
570
570
|
"default-active": b.value,
|
|
571
571
|
"default-openeds": ["table"],
|
|
572
572
|
router: "",
|
|
573
|
-
collapse:
|
|
573
|
+
collapse: t.menuCollapsed
|
|
574
574
|
}, {
|
|
575
575
|
default: r(() => [
|
|
576
576
|
(n(!0), U(ee, null, se(v($t), (X) => (n(), I(Zt, {
|
|
@@ -590,22 +590,22 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
590
590
|
helpDocUrl: {}
|
|
591
591
|
},
|
|
592
592
|
setup(s) {
|
|
593
|
-
const a = _e(),
|
|
594
|
-
return
|
|
595
|
-
|
|
593
|
+
const a = _e(), t = E(!1), g = E(), o = s;
|
|
594
|
+
return he(t, () => {
|
|
595
|
+
t.value ? g.value.style.width = "100%" : (g.value.style.transition = "width 0.5s ease", g.value.style.width = "calc(100% - 250px)");
|
|
596
596
|
}), (e, b) => {
|
|
597
597
|
const c = y("router-view");
|
|
598
598
|
return n(), U(ee, null, [
|
|
599
599
|
v(a).query.embedded !== "true" ? (n(), I(Ye, {
|
|
600
600
|
key: 0,
|
|
601
|
-
title:
|
|
602
|
-
helpDocUrl:
|
|
601
|
+
title: o.title,
|
|
602
|
+
helpDocUrl: o.helpDocUrl
|
|
603
603
|
}, null, 8, ["title", "helpDocUrl"])) : K("", !0),
|
|
604
604
|
i("div", so, [
|
|
605
605
|
v(a).query.embedded !== "true" ? (n(), I(qe, {
|
|
606
606
|
key: 0,
|
|
607
|
-
menuCollapsed:
|
|
608
|
-
"onUpdate:menuCollapsed": b[0] || (b[0] = (C) =>
|
|
607
|
+
menuCollapsed: t.value,
|
|
608
|
+
"onUpdate:menuCollapsed": b[0] || (b[0] = (C) => t.value = C)
|
|
609
609
|
}, null, 8, ["menuCollapsed"])) : K("", !0),
|
|
610
610
|
i("main", {
|
|
611
611
|
ref_key: "mainWrapperRef",
|
|
@@ -630,18 +630,18 @@ function co(s, a) {
|
|
|
630
630
|
}
|
|
631
631
|
const po = { render: co }, uo = {}, fo = { class: "wrapper" }, mo = { class: "content" };
|
|
632
632
|
function ho(s, a) {
|
|
633
|
-
const
|
|
633
|
+
const t = y("el-button");
|
|
634
634
|
return n(), U("div", fo, [
|
|
635
635
|
a[4] || (a[4] = i("img", { src: po }, null, -1)),
|
|
636
636
|
i("div", mo, [
|
|
637
637
|
a[3] || (a[3] = i("h1", null, "You have no permission to access the page.", -1)),
|
|
638
|
-
d(
|
|
638
|
+
d(t, { type: "primary" }, {
|
|
639
639
|
default: r(() => a[1] || (a[1] = [
|
|
640
640
|
N("Apply")
|
|
641
641
|
])),
|
|
642
642
|
_: 1
|
|
643
643
|
}),
|
|
644
|
-
d(
|
|
644
|
+
d(t, {
|
|
645
645
|
onClick: a[0] || (a[0] = (g) => s.$router.go(-1))
|
|
646
646
|
}, {
|
|
647
647
|
default: r(() => a[2] || (a[2] = [
|
|
@@ -654,8 +654,8 @@ function ho(s, a) {
|
|
|
654
654
|
}
|
|
655
655
|
const go = /* @__PURE__ */ re(uo, [["render", ho], ["__scopeId", "data-v-0155b361"]]), vo = {};
|
|
656
656
|
function bo(s, a) {
|
|
657
|
-
const
|
|
658
|
-
return n(), I(
|
|
657
|
+
const t = y("router-view");
|
|
658
|
+
return n(), I(t);
|
|
659
659
|
}
|
|
660
660
|
const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper" }, wo = ["onClick"], Ao = { class: "card-inner-wrapper" }, ko = { class: "card-title" }, _o = { class: "icon" }, Io = /* @__PURE__ */ de({
|
|
661
661
|
__name: "TabCard",
|
|
@@ -664,31 +664,31 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
664
664
|
tableRef: {}
|
|
665
665
|
},
|
|
666
666
|
setup(s) {
|
|
667
|
-
const { t: a } = Ie(),
|
|
667
|
+
const { t: a } = Ie(), t = _e(), g = Be(), o = s, e = E(o.cards[0].key);
|
|
668
668
|
function b(c) {
|
|
669
|
-
c.disabled || (e.value = c.key,
|
|
670
|
-
path:
|
|
671
|
-
query: Ve(Ee({},
|
|
669
|
+
c.disabled || (e.value = c.key, o.tableRef.updateConfigAndRefresh(c.model), g.push({
|
|
670
|
+
path: t.path,
|
|
671
|
+
query: Ve(Ee({}, t.query), { tab: c.key })
|
|
672
672
|
}));
|
|
673
673
|
}
|
|
674
674
|
return Oe(() => {
|
|
675
675
|
let c;
|
|
676
|
-
if (
|
|
677
|
-
for (let C of
|
|
678
|
-
if (C.key ===
|
|
676
|
+
if (t.query.tab !== void 0) {
|
|
677
|
+
for (let C of o.cards)
|
|
678
|
+
if (C.key === t.query.tab) {
|
|
679
679
|
e.value = C.key, c = C;
|
|
680
680
|
break;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
De(() => {
|
|
684
|
-
|
|
684
|
+
o.tableRef && o.cards && o.cards.length > 0 && o.tableRef.updateConfigAndRefresh((c != null ? c : o.cards[0]).model);
|
|
685
685
|
});
|
|
686
|
-
}),
|
|
687
|
-
() =>
|
|
686
|
+
}), he(
|
|
687
|
+
() => o.cards,
|
|
688
688
|
(c) => {
|
|
689
|
-
if (
|
|
690
|
-
for (let C of
|
|
691
|
-
if (C.key ===
|
|
689
|
+
if (t.query.tab !== void 0) {
|
|
690
|
+
for (let C of o.cards)
|
|
691
|
+
if (C.key === t.query.tab) {
|
|
692
692
|
e.value = C.key;
|
|
693
693
|
break;
|
|
694
694
|
}
|
|
@@ -699,7 +699,7 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
699
699
|
deep: !0
|
|
700
700
|
}
|
|
701
701
|
), (c, C) => (n(), U("div", yo, [
|
|
702
|
-
(n(!0), U(ee, null, se(
|
|
702
|
+
(n(!0), U(ee, null, se(o.cards, (k) => (n(), U("div", {
|
|
703
703
|
class: Te(["card", { "card-selected": e.value === k.key }]),
|
|
704
704
|
onClick: (V) => b(k)
|
|
705
705
|
}, [
|
|
@@ -720,25 +720,25 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
720
720
|
], 10, wo))), 256))
|
|
721
721
|
]));
|
|
722
722
|
}
|
|
723
|
-
}),
|
|
724
|
-
function ve(s, a,
|
|
723
|
+
}), Je = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-3d98d97f"]]);
|
|
724
|
+
function ve(s, a, t) {
|
|
725
725
|
switch (a) {
|
|
726
726
|
case "POST":
|
|
727
|
-
return ie.post(s,
|
|
727
|
+
return ie.post(s, t);
|
|
728
728
|
case "PUT":
|
|
729
|
-
return ie.put(s,
|
|
729
|
+
return ie.put(s, t);
|
|
730
730
|
case "DELETE":
|
|
731
|
-
return ie.delete(s + "/" +
|
|
731
|
+
return ie.delete(s + "/" + t);
|
|
732
732
|
default:
|
|
733
|
-
return ie.get(s, { params:
|
|
733
|
+
return ie.get(s, { params: t });
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
const ke = (s) => {
|
|
737
737
|
const a = Object.keys(s);
|
|
738
|
-
let
|
|
738
|
+
let t = {};
|
|
739
739
|
a.forEach((g) => {
|
|
740
|
-
|
|
741
|
-
}), Object.assign(s,
|
|
740
|
+
t[g] = void 0;
|
|
741
|
+
}), Object.assign(s, t);
|
|
742
742
|
}, Eo = {
|
|
743
743
|
key: 1,
|
|
744
744
|
class: "view-span"
|
|
@@ -753,35 +753,35 @@ const ke = (s) => {
|
|
|
753
753
|
afterSubmitFunc: { type: Function }
|
|
754
754
|
},
|
|
755
755
|
emits: ["update:id"],
|
|
756
|
-
setup(s, { expose: a, emit:
|
|
757
|
-
const { t: g } = Me.global,
|
|
756
|
+
setup(s, { expose: a, emit: t }) {
|
|
757
|
+
const { t: g } = Me.global, o = s, e = le({}), b = E(!1), c = E(), C = le({}), k = E(!0), V = (m) => o.mode === "view" && (q(m, void 0) || q(m, "input") || q(m, "select") || q(m, "password")), R = xe(() => o.model.fields ? o.model.fields.filter(
|
|
758
758
|
(m) => {
|
|
759
759
|
var G, _, A, x;
|
|
760
760
|
let T = m.visible !== !1 && ((G = m.formItemAttributes) == null ? void 0 : G.visible) !== !1;
|
|
761
|
-
if (
|
|
761
|
+
if (o.mode !== "view" && ((_ = m.formItemAttributes) == null ? void 0 : _.editable) === !1 || o.mode === "view" && ((A = m.formItemAttributes) == null ? void 0 : A.type) === "password")
|
|
762
762
|
return !1;
|
|
763
763
|
let h = (x = m.formItemAttributes) == null ? void 0 : x.showCondition;
|
|
764
764
|
return h && h.field && h.value ? e[h.field] === h.value : T;
|
|
765
765
|
}
|
|
766
766
|
) : []);
|
|
767
|
-
|
|
767
|
+
he([() => o.id, () => o.sessionId], () => {
|
|
768
768
|
P();
|
|
769
769
|
});
|
|
770
770
|
function X() {
|
|
771
|
-
const m =
|
|
771
|
+
const m = o.model.fields;
|
|
772
772
|
let T = {};
|
|
773
773
|
m == null || m.forEach((h) => {
|
|
774
774
|
var G, _, A, x, M, F, L, p, S;
|
|
775
775
|
if (e[h.prop] = null, h.visible !== !1 && ((G = h.formItemAttributes) == null ? void 0 : G.visible) !== !1) {
|
|
776
|
-
if (((_ = h.formItemAttributes) == null ? void 0 : _.defaultValue) !== void 0 ? e[h.prop] = (A = h.formItemAttributes) == null ? void 0 : A.defaultValue : e[h.prop] = void 0,
|
|
777
|
-
let
|
|
778
|
-
|
|
776
|
+
if (((_ = h.formItemAttributes) == null ? void 0 : _.defaultValue) !== void 0 ? e[h.prop] = (A = h.formItemAttributes) == null ? void 0 : A.defaultValue : e[h.prop] = void 0, o.mode !== "view") {
|
|
777
|
+
let J = (x = h.formItemAttributes) == null ? void 0 : x.validationRule;
|
|
778
|
+
J !== void 0 && (T[h.prop] = J), Object.assign(C, T);
|
|
779
779
|
}
|
|
780
780
|
const u = h.formItemAttributes, l = u == null ? void 0 : u.type, f = (M = u == null ? void 0 : u.selectAttributes) == null ? void 0 : M.api, B = (F = u == null ? void 0 : u.selectAttributes) == null ? void 0 : F.valueMappingField, Z = (L = u == null ? void 0 : u.selectAttributes) == null ? void 0 : L.labelMappingField;
|
|
781
781
|
if (l === "select" && f) {
|
|
782
|
-
let
|
|
782
|
+
let J = f;
|
|
783
783
|
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;
|
|
784
|
-
oe && (
|
|
784
|
+
oe && (J = `${J}?${oe}=${o.id}`), ce || ve(J, "GET", {}).then(({ data: ae }) => {
|
|
785
785
|
var ne;
|
|
786
786
|
if ((ne = h.formItemAttributes) != null && ne.selectAttributes) {
|
|
787
787
|
let $ = [];
|
|
@@ -797,18 +797,18 @@ const ke = (s) => {
|
|
|
797
797
|
}
|
|
798
798
|
function P() {
|
|
799
799
|
var m;
|
|
800
|
-
console.log("init form",
|
|
800
|
+
console.log("init form", o.id, o.model), D(), k.value = (m = o.model.useI18n) != null ? m : !0, X(), (o.mode === "update" || o.mode === "view") && o.id !== void 0 && o.id !== "" && (b.value = !0, ve(`${o.model.api}/${o.id}`, "GET", {}).then(({ data: T }) => {
|
|
801
801
|
ke(e), Object.assign(e, T.data), b.value = !1;
|
|
802
802
|
}));
|
|
803
803
|
}
|
|
804
804
|
function z() {
|
|
805
805
|
return new Promise((m, T) => {
|
|
806
806
|
var G, _, A, x;
|
|
807
|
-
((_ = (G =
|
|
808
|
-
let h =
|
|
809
|
-
|
|
807
|
+
((_ = (G = o.model.formConfig) == null ? void 0 : G.functions) == null ? void 0 : _.beforeSubmit) !== void 0 && Object.assign(e, (x = (A = o.model.formConfig) == null ? void 0 : A.functions) == null ? void 0 : x.beforeSubmit(e));
|
|
808
|
+
let h = o.mode === "create" ? "POST" : "PUT";
|
|
809
|
+
o.model.api && ve(o.model.api, h, e).then(({ data: M }) => {
|
|
810
810
|
var F, L, p, S;
|
|
811
|
-
M.code === 0 && (
|
|
811
|
+
M.code === 0 && (o.closeDialogFunc && o.closeDialogFunc(), ((L = (F = o.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : L.afterSubmit) !== void 0 && ((S = (p = o.model.formConfig) == null ? void 0 : p.functions) == null || S.afterSubmit(M.data)), o.afterSubmitFunc && o.afterSubmitFunc(), m());
|
|
812
812
|
});
|
|
813
813
|
});
|
|
814
814
|
}
|
|
@@ -835,14 +835,14 @@ const ke = (s) => {
|
|
|
835
835
|
}
|
|
836
836
|
function W(m) {
|
|
837
837
|
var T;
|
|
838
|
-
return ((T = m.formItemAttributes) == null ? void 0 : T.updatable) === !1 &&
|
|
838
|
+
return ((T = m.formItemAttributes) == null ? void 0 : T.updatable) === !1 && o.mode === "update";
|
|
839
839
|
}
|
|
840
840
|
function Y(m, T) {
|
|
841
841
|
var G, _;
|
|
842
842
|
const h = (_ = (G = T.formItemAttributes) == null ? void 0 : G.type) != null ? _ : "input";
|
|
843
843
|
switch (m) {
|
|
844
844
|
case "input":
|
|
845
|
-
return
|
|
845
|
+
return o.mode === "view" ? !1 : h === "input" || h === "password";
|
|
846
846
|
case "select":
|
|
847
847
|
return !0;
|
|
848
848
|
default:
|
|
@@ -853,9 +853,9 @@ const ke = (s) => {
|
|
|
853
853
|
var h;
|
|
854
854
|
return ((h = m.formItemAttributes) == null ? void 0 : h.type) === T;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function ue(m) {
|
|
857
857
|
var T;
|
|
858
|
-
for (let h of
|
|
858
|
+
for (let h of o.model.fields) {
|
|
859
859
|
const G = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes;
|
|
860
860
|
if (!(!h.formItemAttributes || h.formItemAttributes.type !== "select" || !G || !G.queryParamValueField) && G.queryParamValueField === m.prop) {
|
|
861
861
|
const _ = G.api;
|
|
@@ -928,7 +928,7 @@ const ke = (s) => {
|
|
|
928
928
|
modelValue: e[p.prop],
|
|
929
929
|
"onUpdate:modelValue": (u) => e[p.prop] = u,
|
|
930
930
|
disabled: W(p),
|
|
931
|
-
onChange: (u) =>
|
|
931
|
+
onChange: (u) => ue(p)
|
|
932
932
|
}, {
|
|
933
933
|
default: r(() => {
|
|
934
934
|
var u, l;
|
|
@@ -952,7 +952,7 @@ const ke = (s) => {
|
|
|
952
952
|
]);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
}),
|
|
955
|
+
}), He = /* @__PURE__ */ re(So, [["__scopeId", "data-v-2aa73ecc"]]), Mo = { class: "dialog-footer" }, Qo = { class: "operation-button-wrapper" }, xo = /* @__PURE__ */ de({
|
|
956
956
|
__name: "FormDialog",
|
|
957
957
|
props: {
|
|
958
958
|
id: {},
|
|
@@ -962,10 +962,10 @@ const ke = (s) => {
|
|
|
962
962
|
afterSubmitFunc: { type: Function }
|
|
963
963
|
},
|
|
964
964
|
emits: ["update:visible", "update:id"],
|
|
965
|
-
setup(s, { expose: a, emit:
|
|
966
|
-
const { t: g } = Ie(),
|
|
967
|
-
|
|
968
|
-
|
|
965
|
+
setup(s, { expose: a, emit: t }) {
|
|
966
|
+
const { t: g } = Ie(), o = s, e = E(0), b = t, c = E();
|
|
967
|
+
he(() => o.visible, () => {
|
|
968
|
+
o.visible && e.value++;
|
|
969
969
|
});
|
|
970
970
|
function C() {
|
|
971
971
|
c.value && c.value.refresh();
|
|
@@ -983,7 +983,7 @@ const ke = (s) => {
|
|
|
983
983
|
const P = y("el-button"), z = y("el-dialog");
|
|
984
984
|
return n(), I(z, {
|
|
985
985
|
title: "Edit",
|
|
986
|
-
"model-value":
|
|
986
|
+
"model-value": o.visible,
|
|
987
987
|
width: "800px",
|
|
988
988
|
onClose: k
|
|
989
989
|
}, {
|
|
@@ -992,7 +992,7 @@ const ke = (s) => {
|
|
|
992
992
|
return [
|
|
993
993
|
i("div", Mo, [
|
|
994
994
|
i("div", Qo, [
|
|
995
|
-
(n(!0), U(ee, null, se((D =
|
|
995
|
+
(n(!0), U(ee, null, se((D = o.model.formConfig) == null ? void 0 : D.dialogButtons, (O) => (n(), I(P, {
|
|
996
996
|
onClick: (w) => O.function(c.value.formData)
|
|
997
997
|
}, {
|
|
998
998
|
default: r(() => [
|
|
@@ -1022,14 +1022,14 @@ const ke = (s) => {
|
|
|
1022
1022
|
];
|
|
1023
1023
|
}),
|
|
1024
1024
|
default: r(() => [
|
|
1025
|
-
d(
|
|
1025
|
+
d(He, {
|
|
1026
1026
|
ref_key: "formViewRef",
|
|
1027
1027
|
ref: c,
|
|
1028
|
-
id:
|
|
1028
|
+
id: o.id,
|
|
1029
1029
|
sessionId: e.value,
|
|
1030
|
-
mode:
|
|
1031
|
-
model:
|
|
1032
|
-
afterSubmitFunc:
|
|
1030
|
+
mode: o.mode,
|
|
1031
|
+
model: o.model,
|
|
1032
|
+
afterSubmitFunc: o.afterSubmitFunc,
|
|
1033
1033
|
closeDialogFunc: k
|
|
1034
1034
|
}, null, 8, ["id", "sessionId", "mode", "model", "afterSubmitFunc"])
|
|
1035
1035
|
]),
|
|
@@ -1043,28 +1043,28 @@ const ke = (s) => {
|
|
|
1043
1043
|
model: {}
|
|
1044
1044
|
},
|
|
1045
1045
|
setup(s, { expose: a }) {
|
|
1046
|
-
const { t
|
|
1046
|
+
const { t } = Me.global, g = s, o = le([]), e = le({
|
|
1047
1047
|
showPane: !0
|
|
1048
1048
|
}), b = E(""), c = E(!0), C = E(!1), k = Be(), V = E(""), R = le([]), X = le([]), P = E(), z = E([]), D = E("create"), O = E(!0), w = E(!1), W = E(""), Y = le({
|
|
1049
1049
|
pageSize: 10,
|
|
1050
1050
|
pageNo: 1,
|
|
1051
1051
|
totalElements: 0
|
|
1052
|
-
}), q = xe(() =>
|
|
1052
|
+
}), q = xe(() => o.filter(
|
|
1053
1053
|
(l) => {
|
|
1054
1054
|
var f, B;
|
|
1055
1055
|
return ((f = l.formItemAttributes) == null ? void 0 : f.type) !== "password" && l.visible !== !1 && ((B = l.tableColumnAttributes) == null ? void 0 : B.visible) !== !1;
|
|
1056
1056
|
}
|
|
1057
1057
|
));
|
|
1058
|
-
function
|
|
1058
|
+
function ue(l, f) {
|
|
1059
1059
|
var oe, ce, ae, ne;
|
|
1060
1060
|
let B = f.row[l.prop];
|
|
1061
|
-
const Z = (ce = (oe = l.tableColumnAttributes) == null ? void 0 : oe.functions) == null ? void 0 : ce.transformValue,
|
|
1061
|
+
const Z = (ce = (oe = l.tableColumnAttributes) == null ? void 0 : oe.functions) == null ? void 0 : ce.transformValue, J = (ae = l.tableColumnAttributes) == null ? void 0 : ae.transformValueMappings;
|
|
1062
1062
|
if (Z)
|
|
1063
1063
|
B = Z(B);
|
|
1064
|
-
else if (
|
|
1065
|
-
for (let $ of
|
|
1064
|
+
else if (J && J.length > 0) {
|
|
1065
|
+
for (let $ of J)
|
|
1066
1066
|
if (B === $.value) {
|
|
1067
|
-
B =
|
|
1067
|
+
B = t($.label);
|
|
1068
1068
|
break;
|
|
1069
1069
|
}
|
|
1070
1070
|
} else if (((ne = l.formItemAttributes) == null ? void 0 : ne.type) === "select") {
|
|
@@ -1085,7 +1085,7 @@ const ke = (s) => {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
function m(l, f) {
|
|
1087
1087
|
var B, Z;
|
|
1088
|
-
return l.label ?
|
|
1088
|
+
return l.label ? t(l.label) : (Z = (B = l.functions) == null ? void 0 : B.transformLabel) == null ? void 0 : Z.call(B, f.$index, f.row);
|
|
1089
1089
|
}
|
|
1090
1090
|
function T(l) {
|
|
1091
1091
|
ke(g.model), Object.assign(g.model, l);
|
|
@@ -1094,10 +1094,10 @@ const ke = (s) => {
|
|
|
1094
1094
|
var f, B, Z;
|
|
1095
1095
|
if (O.value = !0, !g.model || !g.model.api)
|
|
1096
1096
|
return;
|
|
1097
|
-
ke(e), e.showPane = !0, Object.assign(e, (f = g.model.tableConfig) != null ? f : {}),
|
|
1097
|
+
ke(e), e.showPane = !0, Object.assign(e, (f = g.model.tableConfig) != null ? f : {}), o.splice(0, o.length, ...g.model.fields), b.value = (B = g.model.route) != null ? B : "", c.value = (Z = g.model.useI18n) != null ? Z : !0;
|
|
1098
1098
|
let l = Ee({}, e.queryParams);
|
|
1099
|
-
l.pageSize = Y.pageSize, l.pageNo = Y.pageNo, l.search = V.value, ve(g.model.api, "GET", l).then(({ data:
|
|
1100
|
-
const { list: oe, totalCount: ce } =
|
|
1099
|
+
l.pageSize = Y.pageSize, l.pageNo = Y.pageNo, l.search = V.value, ve(g.model.api, "GET", l).then(({ data: J }) => {
|
|
1100
|
+
const { list: oe, totalCount: ce } = J.data;
|
|
1101
1101
|
R.splice(0, R.length, ...oe), Y.totalElements = ce, O.value = !1;
|
|
1102
1102
|
});
|
|
1103
1103
|
}
|
|
@@ -1113,10 +1113,10 @@ const ke = (s) => {
|
|
|
1113
1113
|
function A() {
|
|
1114
1114
|
nt.confirm(
|
|
1115
1115
|
"The selected items will be deleted. Continue?",
|
|
1116
|
-
|
|
1116
|
+
t("common.table.warning"),
|
|
1117
1117
|
{
|
|
1118
|
-
confirmButtonText:
|
|
1119
|
-
cancelButtonText:
|
|
1118
|
+
confirmButtonText: t("common.basic.confirm"),
|
|
1119
|
+
cancelButtonText: t("common.basic.cancel"),
|
|
1120
1120
|
type: "warning"
|
|
1121
1121
|
}
|
|
1122
1122
|
).then(() => {
|
|
@@ -1159,12 +1159,12 @@ const ke = (s) => {
|
|
|
1159
1159
|
z.value = l;
|
|
1160
1160
|
}
|
|
1161
1161
|
function S(l) {
|
|
1162
|
-
return l.label ? c.value ?
|
|
1162
|
+
return l.label ? c.value ? t(l.label) : l.label : l.prop.slice(0, 1).toUpperCase() + l.prop.slice(1).toLowerCase();
|
|
1163
1163
|
}
|
|
1164
1164
|
function u(l) {
|
|
1165
1165
|
l ? (w.value = !0, X.splice(0, X.length, ...R), R.splice(0, R.length, ...z.value)) : (w.value = !1, R.splice(0, R.length, ...X));
|
|
1166
1166
|
}
|
|
1167
|
-
return
|
|
1167
|
+
return he(() => g.model, () => {
|
|
1168
1168
|
h();
|
|
1169
1169
|
}, {
|
|
1170
1170
|
deep: !0,
|
|
@@ -1174,7 +1174,7 @@ const ke = (s) => {
|
|
|
1174
1174
|
refresh: h,
|
|
1175
1175
|
updateConfigAndRefresh: T
|
|
1176
1176
|
}), (l, f) => {
|
|
1177
|
-
const B = y("el-checkbox"), Z = y("el-badge"),
|
|
1177
|
+
const B = y("el-checkbox"), Z = y("el-badge"), J = y("el-button"), oe = y("el-icon"), ce = y("el-tooltip"), ae = y("el-input"), ne = y("el-table-column"), $ = y("router-link"), j = y("el-tag"), pe = y("el-popconfirm"), fe = y("el-table"), ye = y("el-pagination"), Ne = Ke("loading");
|
|
1178
1178
|
return n(), U("div", {
|
|
1179
1179
|
class: Te({ "table-view-wrapper": e.showPane })
|
|
1180
1180
|
}, [
|
|
@@ -1190,26 +1190,26 @@ const ke = (s) => {
|
|
|
1190
1190
|
d(B, {
|
|
1191
1191
|
class: "selected-checkbox",
|
|
1192
1192
|
border: !0,
|
|
1193
|
-
label: v(
|
|
1193
|
+
label: v(t)("common.table.viewSelected"),
|
|
1194
1194
|
onChange: u
|
|
1195
1195
|
}, null, 8, ["label"])
|
|
1196
1196
|
]),
|
|
1197
1197
|
_: 1
|
|
1198
1198
|
}, 8, ["value"])) : K("", !0),
|
|
1199
|
-
!e.selectMode && !e.readOnly ? (n(), I(
|
|
1199
|
+
!e.selectMode && !e.readOnly ? (n(), I(J, {
|
|
1200
1200
|
key: 1,
|
|
1201
1201
|
type: "primary",
|
|
1202
1202
|
onClick: G
|
|
1203
1203
|
}, {
|
|
1204
1204
|
default: r(() => {
|
|
1205
|
-
var te,
|
|
1205
|
+
var te, H;
|
|
1206
1206
|
return [
|
|
1207
|
-
N(Q(((te = e.labels) == null ? void 0 : te.create) != null ? v(
|
|
1207
|
+
N(Q(((te = e.labels) == null ? void 0 : te.create) != null ? v(t)((H = e.labels) == null ? void 0 : H.create) : v(t)("common.table.create")), 1)
|
|
1208
1208
|
];
|
|
1209
1209
|
}),
|
|
1210
1210
|
_: 1
|
|
1211
1211
|
})) : K("", !0),
|
|
1212
|
-
!e.selectMode && !e.readOnly ? (n(), I(
|
|
1212
|
+
!e.selectMode && !e.readOnly ? (n(), I(J, {
|
|
1213
1213
|
key: 2,
|
|
1214
1214
|
disabled: z.value.length == 0,
|
|
1215
1215
|
type: "danger",
|
|
@@ -1217,21 +1217,21 @@ const ke = (s) => {
|
|
|
1217
1217
|
onClick: A
|
|
1218
1218
|
}, {
|
|
1219
1219
|
default: r(() => {
|
|
1220
|
-
var te,
|
|
1220
|
+
var te, H;
|
|
1221
1221
|
return [
|
|
1222
|
-
N(Q(((te = e.labels) == null ? void 0 : te.delete) != null ? v(
|
|
1222
|
+
N(Q(((te = e.labels) == null ? void 0 : te.delete) != null ? v(t)((H = e.labels) == null ? void 0 : H.delete) : v(t)("common.table.delete")), 1)
|
|
1223
1223
|
];
|
|
1224
1224
|
}),
|
|
1225
1225
|
_: 1
|
|
1226
1226
|
}, 8, ["disabled"])) : K("", !0),
|
|
1227
|
-
d(
|
|
1227
|
+
d(J, {
|
|
1228
1228
|
icon: v(Le),
|
|
1229
1229
|
onClick: h
|
|
1230
1230
|
}, null, 8, ["icon"]),
|
|
1231
1231
|
e.tooltip ? (n(), I(ce, {
|
|
1232
1232
|
key: 3,
|
|
1233
1233
|
effect: "dark",
|
|
1234
|
-
content: v(
|
|
1234
|
+
content: v(t)(e.tooltip),
|
|
1235
1235
|
placement: "right"
|
|
1236
1236
|
}, {
|
|
1237
1237
|
default: r(() => [
|
|
@@ -1246,7 +1246,7 @@ const ke = (s) => {
|
|
|
1246
1246
|
}, 8, ["content"])) : K("", !0)
|
|
1247
1247
|
]),
|
|
1248
1248
|
i("div", Go, [
|
|
1249
|
-
e.export ? (n(), I(
|
|
1249
|
+
e.export ? (n(), I(J, {
|
|
1250
1250
|
key: 0,
|
|
1251
1251
|
class: "button-export",
|
|
1252
1252
|
onClick: L
|
|
@@ -1262,12 +1262,12 @@ const ke = (s) => {
|
|
|
1262
1262
|
_: 1
|
|
1263
1263
|
})) : K("", !0),
|
|
1264
1264
|
d(ae, {
|
|
1265
|
-
placeholder: `${v(
|
|
1265
|
+
placeholder: `${v(t)("common.table.search")}...`,
|
|
1266
1266
|
modelValue: V.value,
|
|
1267
1267
|
"onUpdate:modelValue": f[0] || (f[0] = (te) => V.value = te)
|
|
1268
1268
|
}, {
|
|
1269
1269
|
append: r(() => [
|
|
1270
|
-
d(
|
|
1270
|
+
d(J, {
|
|
1271
1271
|
style: { "margin-left": "-20px" },
|
|
1272
1272
|
icon: v(dt),
|
|
1273
1273
|
onClick: h
|
|
@@ -1277,7 +1277,7 @@ const ke = (s) => {
|
|
|
1277
1277
|
}, 8, ["placeholder", "modelValue"])
|
|
1278
1278
|
])
|
|
1279
1279
|
]),
|
|
1280
|
-
Pe((n(), I(
|
|
1280
|
+
Pe((n(), I(fe, {
|
|
1281
1281
|
border: !0,
|
|
1282
1282
|
ref_key: "tableRef",
|
|
1283
1283
|
ref: P,
|
|
@@ -1293,30 +1293,30 @@ const ke = (s) => {
|
|
|
1293
1293
|
type: "selection",
|
|
1294
1294
|
width: "50"
|
|
1295
1295
|
})),
|
|
1296
|
-
(n(!0), U(ee, null, se(q.value, (
|
|
1296
|
+
(n(!0), U(ee, null, se(q.value, (H) => {
|
|
1297
1297
|
var ge;
|
|
1298
1298
|
return n(), I(ne, {
|
|
1299
|
-
prop:
|
|
1300
|
-
label: S(
|
|
1301
|
-
width: (ge =
|
|
1299
|
+
prop: H.prop,
|
|
1300
|
+
label: S(H),
|
|
1301
|
+
width: (ge = H.tableColumnAttributes) == null ? void 0 : ge.width,
|
|
1302
1302
|
"show-overflow-tooltip": ""
|
|
1303
1303
|
}, {
|
|
1304
1304
|
default: r((we) => {
|
|
1305
1305
|
var be, Ae;
|
|
1306
1306
|
return [
|
|
1307
|
-
(be =
|
|
1307
|
+
(be = H.tableColumnAttributes) != null && be.link ? (n(), I($, {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
class: "router-link",
|
|
1310
1310
|
to: `/${b.value}/detail?id=${we.row.id}`
|
|
1311
1311
|
}, {
|
|
1312
1312
|
default: r(() => [
|
|
1313
|
-
i("span", null, Q(
|
|
1313
|
+
i("span", null, Q(ue(H, we)), 1)
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 2
|
|
1316
|
-
}, 1032, ["to"])) : (n(), U("span", Oo, Q(
|
|
1317
|
-
((Ae =
|
|
1316
|
+
}, 1032, ["to"])) : (n(), U("span", Oo, Q(ue(H, we)), 1)),
|
|
1317
|
+
((Ae = H.tableColumnAttributes) == null ? void 0 : Ae.type) === "tag" ? (n(), I(j, { key: 2 }, {
|
|
1318
1318
|
default: r(() => [
|
|
1319
|
-
N(Q(we.row[
|
|
1319
|
+
N(Q(we.row[H.prop]), 1)
|
|
1320
1320
|
]),
|
|
1321
1321
|
_: 2
|
|
1322
1322
|
}, 1024)) : K("", !0)
|
|
@@ -1327,33 +1327,33 @@ const ke = (s) => {
|
|
|
1327
1327
|
}), 256)),
|
|
1328
1328
|
e.operations === void 0 && !((te = e.selectMode) != null && te) && !e.readOnly ? (n(), I(ne, {
|
|
1329
1329
|
key: 1,
|
|
1330
|
-
label: v(
|
|
1330
|
+
label: v(t)("common.table.operation"),
|
|
1331
1331
|
width: "120"
|
|
1332
1332
|
}, {
|
|
1333
|
-
default: r((
|
|
1334
|
-
d(
|
|
1333
|
+
default: r((H) => [
|
|
1334
|
+
d(J, {
|
|
1335
1335
|
link: "",
|
|
1336
1336
|
type: "primary",
|
|
1337
1337
|
class: "operation-button",
|
|
1338
|
-
onClick: (ge) => F(
|
|
1338
|
+
onClick: (ge) => F(H.$index, H.row)
|
|
1339
1339
|
}, {
|
|
1340
1340
|
default: r(() => [
|
|
1341
|
-
N(Q(v(
|
|
1341
|
+
N(Q(v(t)("common.table.edit")), 1)
|
|
1342
1342
|
]),
|
|
1343
1343
|
_: 2
|
|
1344
1344
|
}, 1032, ["onClick"]),
|
|
1345
1345
|
d(pe, {
|
|
1346
1346
|
title: "Are you sure to delete this?",
|
|
1347
|
-
onConfirm: (ge) => _(
|
|
1347
|
+
onConfirm: (ge) => _(H.$index, H.row)
|
|
1348
1348
|
}, {
|
|
1349
1349
|
reference: r(() => [
|
|
1350
|
-
d(
|
|
1350
|
+
d(J, {
|
|
1351
1351
|
link: "",
|
|
1352
1352
|
type: "primary",
|
|
1353
1353
|
class: "operation-button"
|
|
1354
1354
|
}, {
|
|
1355
1355
|
default: r(() => [
|
|
1356
|
-
N(Q(v(
|
|
1356
|
+
N(Q(v(t)("common.table.delete")), 1)
|
|
1357
1357
|
]),
|
|
1358
1358
|
_: 1
|
|
1359
1359
|
})
|
|
@@ -1365,22 +1365,22 @@ const ke = (s) => {
|
|
|
1365
1365
|
}, 8, ["label"])) : K("", !0),
|
|
1366
1366
|
e.operations !== void 0 && !e.readOnly ? (n(), I(ne, {
|
|
1367
1367
|
key: 2,
|
|
1368
|
-
label: v(
|
|
1368
|
+
label: v(t)("common.table.operation"),
|
|
1369
1369
|
width: "120"
|
|
1370
1370
|
}, {
|
|
1371
|
-
default: r((
|
|
1372
|
-
(n(!0), U(ee, null, se(e.operations, (ge) => (n(), I(
|
|
1371
|
+
default: r((H) => [
|
|
1372
|
+
(n(!0), U(ee, null, se(e.operations, (ge) => (n(), I(J, {
|
|
1373
1373
|
class: "operation-button",
|
|
1374
1374
|
link: "",
|
|
1375
1375
|
type: "primary",
|
|
1376
1376
|
key: ge.label,
|
|
1377
1377
|
onClick: (we) => {
|
|
1378
1378
|
var be, Ae;
|
|
1379
|
-
return ((Ae = (be = ge.functions) == null ? void 0 : be.click) == null ? void 0 : Ae.call(be,
|
|
1379
|
+
return ((Ae = (be = ge.functions) == null ? void 0 : be.click) == null ? void 0 : Ae.call(be, H.$index, H.row)) && h();
|
|
1380
1380
|
}
|
|
1381
1381
|
}, {
|
|
1382
1382
|
default: r(() => [
|
|
1383
|
-
N(Q(m(ge,
|
|
1383
|
+
N(Q(m(ge, H)), 1)
|
|
1384
1384
|
]),
|
|
1385
1385
|
_: 2
|
|
1386
1386
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -1423,26 +1423,26 @@ const ke = (s) => {
|
|
|
1423
1423
|
}, Do = { class: "icon-wrapper" }, To = { class: "info-wrapper" }, Ko = { class: "title-wrapper" }, Po = { class: "tabs-wrapper" }, Lo = { class: "dialog-footer" }, jo = /* @__PURE__ */ de({
|
|
1424
1424
|
__name: "DetailPage",
|
|
1425
1425
|
setup(s) {
|
|
1426
|
-
const { t: a } = Ie(),
|
|
1426
|
+
const { t: a } = Ie(), t = _e(), g = Be(), o = xe(() => t.query.id), e = E(!1), b = E(!1), c = E("view"), C = E(), k = E(-1), V = E(), R = E(), X = E("summary"), P = E(""), z = E(""), D = E(""), O = E(0), w = le({
|
|
1427
1427
|
api: "",
|
|
1428
1428
|
fields: []
|
|
1429
1429
|
}), W = le([]);
|
|
1430
1430
|
let Y = [];
|
|
1431
|
-
|
|
1431
|
+
he(() => g.currentRoute.value, () => {
|
|
1432
1432
|
T();
|
|
1433
1433
|
}, {
|
|
1434
1434
|
immediate: !0
|
|
1435
|
-
}),
|
|
1436
|
-
O.value++;
|
|
1437
|
-
});
|
|
1435
|
+
}), setInterval(() => {
|
|
1436
|
+
console.log("model", JSON.stringify(w)), console.log("route.params.model", t.params.model), T(), O.value++;
|
|
1437
|
+
}, 5e3);
|
|
1438
1438
|
function q(_) {
|
|
1439
1439
|
k.value = parseInt(_.index) - 1, console.log(W[k.value]);
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function ue() {
|
|
1442
1442
|
var M;
|
|
1443
1443
|
let _ = (M = Y[k.value].api) == null ? void 0 : M.replace("/select", "");
|
|
1444
1444
|
_ = _ == null ? void 0 : _.substring(_.lastIndexOf("/"));
|
|
1445
|
-
const A = w.api + "/" +
|
|
1445
|
+
const A = w.api + "/" + o.value + _, x = R.value.multipleSelection.map((F) => F.id);
|
|
1446
1446
|
ve(A, "POST", x).then(() => {
|
|
1447
1447
|
V.value.refresh(), b.value = !1;
|
|
1448
1448
|
});
|
|
@@ -1453,7 +1453,7 @@ const ke = (s) => {
|
|
|
1453
1453
|
b.value = !0, R.value && R.value.refresh();
|
|
1454
1454
|
};
|
|
1455
1455
|
let M = Ce(A);
|
|
1456
|
-
M.tableConfig || (M.tableConfig = {}), M.tableConfig.selectMode = !0, M.tableConfig.queryParams = {}, _.queryParamName && (M.tableConfig.queryParams[_.queryParamName] =
|
|
1456
|
+
M.tableConfig || (M.tableConfig = {}), M.tableConfig.selectMode = !0, M.tableConfig.queryParams = {}, _.queryParamName && (M.tableConfig.queryParams[_.queryParamName] = o.value);
|
|
1457
1457
|
for (var F in M.fields)
|
|
1458
1458
|
M.fields[F].tableColumnAttributes && (L = M.fields[F].tableColumnAttributes) != null && L.link && (M.fields[F].tableColumnAttributes.link = !1);
|
|
1459
1459
|
Y.push(M), x.labels = {
|
|
@@ -1463,7 +1463,7 @@ const ke = (s) => {
|
|
|
1463
1463
|
var f;
|
|
1464
1464
|
let S = (f = Y[k.value].api) == null ? void 0 : f.replace("/select", "");
|
|
1465
1465
|
S = S == null ? void 0 : S.substring(S.lastIndexOf("/"));
|
|
1466
|
-
const u = w.api + "/" +
|
|
1466
|
+
const u = w.api + "/" + o.value + S, l = p.map((B) => B.id);
|
|
1467
1467
|
ie.delete(`${u}/${l.join(",")}`).then(({ data: B }) => {
|
|
1468
1468
|
B.code === 0 && V.value.refresh();
|
|
1469
1469
|
});
|
|
@@ -1475,7 +1475,7 @@ const ke = (s) => {
|
|
|
1475
1475
|
var f;
|
|
1476
1476
|
let u = (f = Y[k.value].api) == null ? void 0 : f.replace("/select", "");
|
|
1477
1477
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
1478
|
-
const l = w.api + "/" +
|
|
1478
|
+
const l = w.api + "/" + o.value + u;
|
|
1479
1479
|
ve(l, "DELETE", S.id).then(() => {
|
|
1480
1480
|
V.value.refresh();
|
|
1481
1481
|
});
|
|
@@ -1487,22 +1487,22 @@ const ke = (s) => {
|
|
|
1487
1487
|
function T() {
|
|
1488
1488
|
var M, F, L;
|
|
1489
1489
|
W.splice(0);
|
|
1490
|
-
const _ =
|
|
1491
|
-
if (
|
|
1490
|
+
const _ = t.params.model;
|
|
1491
|
+
if (me.value[_] === void 0)
|
|
1492
1492
|
return;
|
|
1493
1493
|
ke(w);
|
|
1494
|
-
const A = Ce(
|
|
1494
|
+
const A = Ce(me.value[_]);
|
|
1495
1495
|
Object.assign(w, A), k.value = -1, X.value = "summary";
|
|
1496
1496
|
const x = (F = (M = w.pageConfig) == null ? void 0 : M.detailPage) == null ? void 0 : F.tabs;
|
|
1497
1497
|
if (x)
|
|
1498
1498
|
for (let p of x) {
|
|
1499
|
-
const S = Ce(
|
|
1499
|
+
const S = Ce(me.value[p.modelKey]);
|
|
1500
1500
|
if (W.push(S), p.type === "table") {
|
|
1501
1501
|
S.tableConfig || (S.tableConfig = {});
|
|
1502
1502
|
let u = S.tableConfig;
|
|
1503
1503
|
u.showPane = !1, p.modelRelationType === "associated" ? m(p, S, u) : p.modelRelationType === "child" && (S.formConfig === void 0 && (S.formConfig = {}), S.formConfig.functions === void 0 && (S.formConfig.functions = {}), p.queryParamName && (S.formConfig.functions.beforeSubmit = (l) => {
|
|
1504
|
-
l[p.queryParamName] =
|
|
1505
|
-
})), u.queryParams || (u.queryParams = {}), p.queryParamName && (u.queryParams[p.queryParamName] =
|
|
1504
|
+
l[p.queryParamName] = o.value;
|
|
1505
|
+
})), u.queryParams || (u.queryParams = {}), p.queryParamName && (u.queryParams[p.queryParamName] = o.value), p.queryParams && Object.assign(u.queryParams, p.queryParams), u.readOnly = (L = p.readOnly) != null ? L : !1, p.includeFields && (S.fields = S.fields.filter((l) => {
|
|
1506
1506
|
var f;
|
|
1507
1507
|
return (f = p.includeFields) == null ? void 0 : f.includes(l.prop);
|
|
1508
1508
|
})), p.excludeFields && (S.fields = S.fields.filter((l) => {
|
|
@@ -1512,7 +1512,7 @@ const ke = (s) => {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
|
-
|
|
1515
|
+
he(
|
|
1516
1516
|
[
|
|
1517
1517
|
() => {
|
|
1518
1518
|
var _, A;
|
|
@@ -1548,7 +1548,7 @@ const ke = (s) => {
|
|
|
1548
1548
|
C.value.refresh();
|
|
1549
1549
|
}
|
|
1550
1550
|
return (_, A) => {
|
|
1551
|
-
var
|
|
1551
|
+
var J, oe, ce, ae, ne, $;
|
|
1552
1552
|
const x = y("el-breadcrumb-item"), M = y("el-breadcrumb"), F = y("el-button"), L = y("el-icon"), p = y("el-dropdown-item"), S = y("el-dropdown-menu"), u = y("el-dropdown"), l = y("el-tag"), f = y("el-tab-pane"), B = y("el-tabs"), Z = y("el-dialog");
|
|
1553
1553
|
return n(), U(ee, null, [
|
|
1554
1554
|
i("div", Ro, [
|
|
@@ -1560,9 +1560,9 @@ const ke = (s) => {
|
|
|
1560
1560
|
to: { path: `/${(pe = (j = w == null ? void 0 : w.breadcrumbRoute) != null ? j : w == null ? void 0 : w.route) != null ? pe : ""}` }
|
|
1561
1561
|
}, {
|
|
1562
1562
|
default: r(() => {
|
|
1563
|
-
var
|
|
1563
|
+
var fe;
|
|
1564
1564
|
return [
|
|
1565
|
-
N(Q(v(a)((
|
|
1565
|
+
N(Q(v(a)((fe = w == null ? void 0 : w.name) != null ? fe : "")), 1)
|
|
1566
1566
|
];
|
|
1567
1567
|
}),
|
|
1568
1568
|
_: 1
|
|
@@ -1597,17 +1597,17 @@ const ke = (s) => {
|
|
|
1597
1597
|
]),
|
|
1598
1598
|
_: 1
|
|
1599
1599
|
}),
|
|
1600
|
-
((oe = (
|
|
1600
|
+
((oe = (J = w.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : oe.operationButtons) !== void 0 ? (n(), I(u, { key: 0 }, {
|
|
1601
1601
|
dropdown: r(() => [
|
|
1602
1602
|
d(S, null, {
|
|
1603
1603
|
default: r(() => {
|
|
1604
1604
|
var j, pe;
|
|
1605
1605
|
return [
|
|
1606
|
-
(n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.operationButtons, (
|
|
1607
|
-
onClick: (ye) =>
|
|
1606
|
+
(n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.operationButtons, (fe) => (n(), I(p, {
|
|
1607
|
+
onClick: (ye) => fe.function(C.value.formData)
|
|
1608
1608
|
}, {
|
|
1609
1609
|
default: r(() => [
|
|
1610
|
-
N(Q(v(a)(
|
|
1610
|
+
N(Q(v(a)(fe.label)), 1)
|
|
1611
1611
|
]),
|
|
1612
1612
|
_: 2
|
|
1613
1613
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -1672,10 +1672,10 @@ const ke = (s) => {
|
|
|
1672
1672
|
name: "summary"
|
|
1673
1673
|
}, {
|
|
1674
1674
|
default: r(() => [
|
|
1675
|
-
d(
|
|
1675
|
+
d(He, {
|
|
1676
1676
|
ref_key: "formViewRef",
|
|
1677
1677
|
ref: C,
|
|
1678
|
-
id:
|
|
1678
|
+
id: o.value,
|
|
1679
1679
|
sessionId: O.value,
|
|
1680
1680
|
mode: c.value,
|
|
1681
1681
|
model: w
|
|
@@ -1683,10 +1683,10 @@ const ke = (s) => {
|
|
|
1683
1683
|
]),
|
|
1684
1684
|
_: 1
|
|
1685
1685
|
}, 8, ["label"]),
|
|
1686
|
-
(n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.tabs, (
|
|
1686
|
+
(n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.tabs, (fe) => {
|
|
1687
1687
|
var ye;
|
|
1688
1688
|
return n(), I(f, {
|
|
1689
|
-
label: v(a)((ye =
|
|
1689
|
+
label: v(a)((ye = fe.name) != null ? ye : "")
|
|
1690
1690
|
}, null, 8, ["label"]);
|
|
1691
1691
|
}), 256))
|
|
1692
1692
|
];
|
|
@@ -1717,7 +1717,7 @@ const ke = (s) => {
|
|
|
1717
1717
|
}),
|
|
1718
1718
|
d(F, {
|
|
1719
1719
|
type: "primary",
|
|
1720
|
-
onClick:
|
|
1720
|
+
onClick: ue
|
|
1721
1721
|
}, {
|
|
1722
1722
|
default: r(() => [
|
|
1723
1723
|
N(Q(v(a)("common.basic.save")), 1)
|
|
@@ -1738,7 +1738,7 @@ const ke = (s) => {
|
|
|
1738
1738
|
}, 8, ["modelValue", "title"])
|
|
1739
1739
|
]),
|
|
1740
1740
|
d(ze, {
|
|
1741
|
-
id:
|
|
1741
|
+
id: o.value,
|
|
1742
1742
|
mode: "update",
|
|
1743
1743
|
visible: e.value,
|
|
1744
1744
|
"onUpdate:visible": A[3] || (A[3] = (j) => e.value = j),
|
|
@@ -1748,10 +1748,10 @@ const ke = (s) => {
|
|
|
1748
1748
|
], 64);
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
|
-
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-
|
|
1751
|
+
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-3e3fb5d8"]]), Yo = { class: "page-title" }, qo = /* @__PURE__ */ de({
|
|
1752
1752
|
__name: "TablePage",
|
|
1753
1753
|
setup(s) {
|
|
1754
|
-
const { t: a } = Ie(),
|
|
1754
|
+
const { t: a } = Ie(), t = _e(), g = Be(), o = E(), e = E([]), b = le({
|
|
1755
1755
|
api: "",
|
|
1756
1756
|
fields: []
|
|
1757
1757
|
}), c = le(Ee({}, b));
|
|
@@ -1759,7 +1759,7 @@ const ke = (s) => {
|
|
|
1759
1759
|
var V, R, X, P, z;
|
|
1760
1760
|
e.value = [], b.pageConfig && ((R = (V = b.pageConfig) == null ? void 0 : V.tablePage) != null && R.tabViewAttributes) && (e.value = (z = (P = (X = b.pageConfig) == null ? void 0 : X.tablePage) == null ? void 0 : P.tabViewAttributes) == null ? void 0 : z.map((D) => {
|
|
1761
1761
|
let O;
|
|
1762
|
-
return D.modelKey &&
|
|
1762
|
+
return D.modelKey && me.value[D.modelKey] ? O = Ce(me.value[D.modelKey]) : O = Ce(b), D.queryParams && (O.tableConfig || (O.tableConfig = {}), O.tableConfig.queryParams = D.queryParams), D.fields && (O.fields = D.fields), D.modelKey && (O.breadcrumbRoute = b.route), {
|
|
1763
1763
|
key: D.key,
|
|
1764
1764
|
label: D.label,
|
|
1765
1765
|
icon: D.icon,
|
|
@@ -1770,19 +1770,19 @@ const ke = (s) => {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
function k() {
|
|
1772
1772
|
var X, P;
|
|
1773
|
-
console.log("Init table page, loading model:",
|
|
1774
|
-
const V =
|
|
1775
|
-
if (
|
|
1773
|
+
console.log("Init table page, loading model:", t.params.model), console.log("Current model list", me.value);
|
|
1774
|
+
const V = t.params.model;
|
|
1775
|
+
if (me.value[V] === void 0) {
|
|
1776
1776
|
console.warn("Model not found", V);
|
|
1777
1777
|
return;
|
|
1778
1778
|
}
|
|
1779
1779
|
ke(b);
|
|
1780
|
-
const R = Ce(
|
|
1780
|
+
const R = Ce(me.value[V]);
|
|
1781
1781
|
Object.assign(b, R), (P = (X = b.pageConfig) == null ? void 0 : X.tablePage) != null && P.tabViewAttributes || Object.assign(c, b), C();
|
|
1782
1782
|
}
|
|
1783
|
-
return
|
|
1783
|
+
return he([
|
|
1784
1784
|
() => g.currentRoute.value,
|
|
1785
|
-
|
|
1785
|
+
me
|
|
1786
1786
|
], () => {
|
|
1787
1787
|
k();
|
|
1788
1788
|
}, {
|
|
@@ -1792,32 +1792,32 @@ const ke = (s) => {
|
|
|
1792
1792
|
var X, P, z;
|
|
1793
1793
|
return n(), U(ee, null, [
|
|
1794
1794
|
i("h1", Yo, Q(v(a)((X = b.name) != null ? X : "")), 1),
|
|
1795
|
-
(z = (P = b.pageConfig) == null ? void 0 : P.tablePage) != null && z.tabViewAttributes ? (n(), I(
|
|
1795
|
+
(z = (P = b.pageConfig) == null ? void 0 : P.tablePage) != null && z.tabViewAttributes ? (n(), I(Je, {
|
|
1796
1796
|
key: 0,
|
|
1797
1797
|
cards: e.value,
|
|
1798
|
-
tableRef:
|
|
1798
|
+
tableRef: o.value
|
|
1799
1799
|
}, null, 8, ["cards", "tableRef"])) : K("", !0),
|
|
1800
1800
|
d(Qe, {
|
|
1801
1801
|
ref_key: "tableRef",
|
|
1802
|
-
ref:
|
|
1802
|
+
ref: o,
|
|
1803
1803
|
model: c
|
|
1804
1804
|
}, null, 8, ["model"])
|
|
1805
1805
|
], 64);
|
|
1806
1806
|
};
|
|
1807
1807
|
}
|
|
1808
|
-
}),
|
|
1808
|
+
}), Jo = /* @__PURE__ */ re(qo, [["__scopeId", "data-v-0381c6cb"]]), Ho = [
|
|
1809
1809
|
ht,
|
|
1810
1810
|
ro,
|
|
1811
1811
|
Ye,
|
|
1812
1812
|
go,
|
|
1813
1813
|
Co,
|
|
1814
1814
|
qe,
|
|
1815
|
-
|
|
1815
|
+
Je,
|
|
1816
1816
|
Qe,
|
|
1817
1817
|
Xo,
|
|
1818
|
-
|
|
1818
|
+
Jo
|
|
1819
1819
|
], aa = (s) => {
|
|
1820
|
-
s && s.component &&
|
|
1820
|
+
s && s.component && Ho.forEach((a) => {
|
|
1821
1821
|
console.log("component", a.__name, a), s.component(a.__name, a);
|
|
1822
1822
|
});
|
|
1823
1823
|
};
|
|
@@ -1829,14 +1829,14 @@ export {
|
|
|
1829
1829
|
go as NoPermission,
|
|
1830
1830
|
Co as Secondary,
|
|
1831
1831
|
qe as SideMenu,
|
|
1832
|
-
|
|
1833
|
-
|
|
1832
|
+
Je as TabCard,
|
|
1833
|
+
Jo as TablePage,
|
|
1834
1834
|
Qe as TableView,
|
|
1835
1835
|
Wt as activeMenuMapping,
|
|
1836
1836
|
aa as default,
|
|
1837
1837
|
Mt as en,
|
|
1838
1838
|
Me as i18n,
|
|
1839
1839
|
$t as menuList,
|
|
1840
|
-
|
|
1840
|
+
me as modelList,
|
|
1841
1841
|
Qt as zh
|
|
1842
1842
|
};
|