@vancone/console-component 0.1.1-beta.24 → 0.1.1-beta.25
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.
|
@@ -26,11 +26,11 @@ var Ce = (e, t, o) => new Promise((n, s) => {
|
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
27
|
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as M, createElementVNode as v, defineComponent as we, reactive as
|
|
29
|
+
import { openBlock as p, createElementBlock as M, createElementVNode as v, defineComponent as we, reactive as ue, resolveComponent as $, createVNode as _, withCtx as m, unref as O, Fragment as oe, renderList as me, toDisplayString as G, normalizeStyle as Re, ref as V, onMounted as At, createCommentVNode as J, createTextVNode as ee, createBlock as I, nextTick as ze, resolveDynamicComponent as tt, effectScope as Nt, markRaw as Ve, toRaw as qe, hasInjectionContext as _o, inject as go, getCurrentInstance as bo, watch as $e, isRef as Be, isReactive as ft, toRef as at, computed as Ne, getCurrentScope as vo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as Mt, resolveDirective as Ut, withDirectives as Tt } from "vue";
|
|
30
30
|
import { useRoute as Je, useRouter as rt } from "vue-router";
|
|
31
31
|
import So from "axios";
|
|
32
32
|
import { ElMessage as lt, ElMessageBox as Co } from "element-plus";
|
|
33
|
-
import { Search as Dt, ArrowRight as ko, Check as Oo, Refresh as Ft, QuestionFilled as
|
|
33
|
+
import { Search as Dt, ArrowRight as ko, Check as Oo, Refresh as Ft, QuestionFilled as $o, Download as xo, ArrowDown as Eo } from "@element-plus/icons-vue";
|
|
34
34
|
import { createI18n as Po, useI18n as We } from "vue-i18n";
|
|
35
35
|
import { cloneDeep as Fe } from "lodash";
|
|
36
36
|
const ve = (e, t) => {
|
|
@@ -135,7 +135,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
135
135
|
visible: { type: Boolean }
|
|
136
136
|
},
|
|
137
137
|
setup(e) {
|
|
138
|
-
const t =
|
|
138
|
+
const t = ue([]);
|
|
139
139
|
function o() {
|
|
140
140
|
To().then(({ data: n }) => {
|
|
141
141
|
t.splice(0, t.length, ...n.data.list), Do().then(({ data: s }) => {
|
|
@@ -147,19 +147,19 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
return o(), (n, s) => {
|
|
150
|
-
const r =
|
|
150
|
+
const r = $("el-input"), l = $("el-scrollbar"), a = $("el-tab-pane"), i = $("el-tabs");
|
|
151
151
|
return p(), M("div", Jo, [
|
|
152
152
|
_(i, { "tab-position": "left" }, {
|
|
153
153
|
default: m(() => [
|
|
154
154
|
_(a, null, {
|
|
155
155
|
label: m(() => [
|
|
156
|
-
_(
|
|
156
|
+
_(O(Go), { class: "left-icon" })
|
|
157
157
|
]),
|
|
158
158
|
default: m(() => [
|
|
159
159
|
s[0] || (s[0] = v("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
160
160
|
_(r, {
|
|
161
161
|
class: "search-box",
|
|
162
|
-
"prefix-icon":
|
|
162
|
+
"prefix-icon": O(Dt),
|
|
163
163
|
placeholder: "Search apps"
|
|
164
164
|
}, null, 8, ["prefix-icon"]),
|
|
165
165
|
_(l, {
|
|
@@ -168,13 +168,13 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
168
168
|
}, {
|
|
169
169
|
default: m(() => [
|
|
170
170
|
v("div", Wo, [
|
|
171
|
-
(p(!0), M(
|
|
172
|
-
v("h1", null,
|
|
171
|
+
(p(!0), M(oe, null, me(t, (d) => (p(), M("div", Yo, [
|
|
172
|
+
v("h1", null, G(d.name), 1),
|
|
173
173
|
v("div", Qo, [
|
|
174
|
-
(p(!0), M(
|
|
175
|
-
var
|
|
174
|
+
(p(!0), M(oe, null, me(d.apps, (S) => {
|
|
175
|
+
var y, A;
|
|
176
176
|
return p(), M("a", {
|
|
177
|
-
style: Re([{ "text-decoration": "none" }, { pointerEvents: ((
|
|
177
|
+
style: Re([{ "text-decoration": "none" }, { pointerEvents: ((y = S.homepageUrl) == null ? void 0 : y.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
179
|
href: S.homepageUrl
|
|
180
180
|
}, [
|
|
@@ -184,8 +184,8 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
184
184
|
innerHTML: S.iconSvg
|
|
185
185
|
}, null, 8, Xo)) : (p(), M("div", Zo, " ")),
|
|
186
186
|
v("h2", {
|
|
187
|
-
style: Re({ color: ((
|
|
188
|
-
},
|
|
187
|
+
style: Re({ color: ((A = S.homepageUrl) == null ? void 0 : A.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, G(S.name), 5)
|
|
189
189
|
], 12, Ko);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
@@ -199,7 +199,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
199
199
|
}),
|
|
200
200
|
_(a, null, {
|
|
201
201
|
label: m(() => [
|
|
202
|
-
_(
|
|
202
|
+
_(O(zo), { class: "left-icon" })
|
|
203
203
|
]),
|
|
204
204
|
default: m(() => [
|
|
205
205
|
s[1] || (s[1] = v("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
@@ -208,7 +208,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
208
208
|
}),
|
|
209
209
|
_(a, null, {
|
|
210
210
|
label: m(() => [
|
|
211
|
-
_(
|
|
211
|
+
_(O(Ho), { class: "left-icon" })
|
|
212
212
|
]),
|
|
213
213
|
default: m(() => [
|
|
214
214
|
s[2] || (s[2] = v("h1", { class: "catalog-title" }, "Recently", -1))
|
|
@@ -353,16 +353,16 @@ function hn(e, t) {
|
|
|
353
353
|
}, null, -1)
|
|
354
354
|
]));
|
|
355
355
|
}
|
|
356
|
-
const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn = { class: "right" }, yn = { class: "icon-wrapper" }, wn = { class: "user-wrapper" }, Sn = { style: { "font-size": "11px", "font-weight": "bold" } }, Cn = { class: "user-popover-header" }, kn = { style: { "font-size": "15px", "font-weight": "bold" } }, On = ["onClick"],
|
|
356
|
+
const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn = { class: "right" }, yn = { class: "icon-wrapper" }, wn = { class: "user-wrapper" }, Sn = { style: { "font-size": "11px", "font-weight": "bold" } }, Cn = { class: "user-popover-header" }, kn = { style: { "font-size": "15px", "font-weight": "bold" } }, On = ["onClick"], $n = /* @__PURE__ */ we({
|
|
357
357
|
__name: "Header",
|
|
358
358
|
props: {
|
|
359
359
|
title: {},
|
|
360
360
|
helpDocUrl: {}
|
|
361
361
|
},
|
|
362
362
|
setup(e) {
|
|
363
|
-
const { t } = We(), o =
|
|
364
|
-
|
|
365
|
-
const i =
|
|
363
|
+
const { t } = We(), o = V(), n = V(), s = V(), r = V(), l = V(!1), a = e;
|
|
364
|
+
V(!1);
|
|
365
|
+
const i = V(""), d = V(ot.global.locale), S = ue([
|
|
366
366
|
{
|
|
367
367
|
id: "en",
|
|
368
368
|
name: "English"
|
|
@@ -373,37 +373,37 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
373
373
|
}
|
|
374
374
|
]);
|
|
375
375
|
At(() => {
|
|
376
|
-
i.value = decodeURIComponent(
|
|
377
|
-
var
|
|
378
|
-
|
|
376
|
+
i.value = decodeURIComponent(y("passport_username").replace(/\+/g, " ")), i.value === "" && Mo().then(({ data: L }) => {
|
|
377
|
+
var N;
|
|
378
|
+
L.code == 0 && (i.value = (N = L.data.name) != null ? N : L.data.displayId);
|
|
379
379
|
});
|
|
380
380
|
});
|
|
381
|
-
function
|
|
382
|
-
for (var
|
|
381
|
+
function y(L) {
|
|
382
|
+
for (var N = L + "=", K = document.cookie.split(";"), W = 0; W < K.length; W++) {
|
|
383
383
|
for (var Y = K[W]; Y.charAt(0) == " "; ) Y = Y.substring(1);
|
|
384
|
-
if (Y.indexOf(
|
|
385
|
-
return Y.substring(
|
|
384
|
+
if (Y.indexOf(N) != -1)
|
|
385
|
+
return Y.substring(N.length, Y.length);
|
|
386
386
|
}
|
|
387
387
|
return "";
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function A() {
|
|
390
390
|
Uo().then(() => {
|
|
391
|
-
const
|
|
392
|
-
window.location.href = `//${Rt()}/?from=${
|
|
391
|
+
const L = escape(window.location.href);
|
|
392
|
+
window.location.href = `//${Rt()}/?from=${L}#login`;
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
function U(
|
|
396
|
-
ot.global.locale.value =
|
|
395
|
+
function U(L) {
|
|
396
|
+
ot.global.locale.value = L, d.value = L, localStorage.setItem("locale", L);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function H() {
|
|
399
399
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function D() {
|
|
402
402
|
window.open(a.helpDocUrl, "_blank");
|
|
403
403
|
}
|
|
404
|
-
return (
|
|
405
|
-
const K =
|
|
406
|
-
return p(), M(
|
|
404
|
+
return (L, N) => {
|
|
405
|
+
const K = $("el-popover"), W = $("el-tooltip"), Y = $("el-avatar"), ne = $("el-menu-item"), C = $("el-icon"), g = $("el-menu"), b = $("el-drawer");
|
|
406
|
+
return p(), M(oe, null, [
|
|
407
407
|
v("div", gn, [
|
|
408
408
|
v("div", bn, [
|
|
409
409
|
v("div", {
|
|
@@ -412,9 +412,9 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
412
412
|
class: "icon-wrapper",
|
|
413
413
|
style: { "margin-left": "8px" }
|
|
414
414
|
}, [
|
|
415
|
-
_(
|
|
415
|
+
_(O(an))
|
|
416
416
|
], 512),
|
|
417
|
-
v("h1", null,
|
|
417
|
+
v("h1", null, G(L.title), 1)
|
|
418
418
|
]),
|
|
419
419
|
_(K, {
|
|
420
420
|
class: "app-popover",
|
|
@@ -431,43 +431,43 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
431
431
|
v("div", vn, [
|
|
432
432
|
_(W, {
|
|
433
433
|
effect: "dark",
|
|
434
|
-
content:
|
|
434
|
+
content: O(t)("common.header.workbench"),
|
|
435
435
|
placement: "bottom"
|
|
436
436
|
}, {
|
|
437
437
|
default: m(() => [
|
|
438
438
|
v("div", yn, [
|
|
439
|
-
_(
|
|
439
|
+
_(O(_n))
|
|
440
440
|
])
|
|
441
441
|
]),
|
|
442
442
|
_: 1
|
|
443
443
|
}, 8, ["content"]),
|
|
444
444
|
_(W, {
|
|
445
445
|
effect: "dark",
|
|
446
|
-
content:
|
|
446
|
+
content: O(t)("common.header.help"),
|
|
447
447
|
placement: "bottom"
|
|
448
448
|
}, {
|
|
449
449
|
default: m(() => [
|
|
450
450
|
a.helpDocUrl !== void 0 ? (p(), M("div", {
|
|
451
451
|
key: 0,
|
|
452
452
|
class: "icon-wrapper",
|
|
453
|
-
onClick:
|
|
453
|
+
onClick: D
|
|
454
454
|
}, [
|
|
455
|
-
_(
|
|
455
|
+
_(O(un))
|
|
456
456
|
])) : J("", !0)
|
|
457
457
|
]),
|
|
458
458
|
_: 1
|
|
459
459
|
}, 8, ["content"]),
|
|
460
460
|
_(W, {
|
|
461
461
|
effect: "dark",
|
|
462
|
-
content:
|
|
462
|
+
content: O(t)("common.header.notification"),
|
|
463
463
|
placement: "bottom"
|
|
464
464
|
}, {
|
|
465
465
|
default: m(() => [
|
|
466
466
|
v("div", {
|
|
467
467
|
class: "icon-wrapper",
|
|
468
|
-
onClick:
|
|
468
|
+
onClick: N[0] || (N[0] = (P) => l.value = !0)
|
|
469
469
|
}, [
|
|
470
|
-
_(
|
|
470
|
+
_(O(fn))
|
|
471
471
|
])
|
|
472
472
|
]),
|
|
473
473
|
_: 1
|
|
@@ -480,7 +480,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
480
480
|
ref: o
|
|
481
481
|
}, {
|
|
482
482
|
default: m(() => [
|
|
483
|
-
v("span", Sn,
|
|
483
|
+
v("span", Sn, G(i.value.substring(0, 2)), 1)
|
|
484
484
|
]),
|
|
485
485
|
_: 1
|
|
486
486
|
}, 512),
|
|
@@ -501,30 +501,30 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
501
501
|
src: ""
|
|
502
502
|
}, {
|
|
503
503
|
default: m(() => [
|
|
504
|
-
v("span", kn,
|
|
504
|
+
v("span", kn, G(i.value.substring(0, 2)), 1)
|
|
505
505
|
]),
|
|
506
506
|
_: 1
|
|
507
507
|
}),
|
|
508
|
-
v("span", null,
|
|
508
|
+
v("span", null, G(i.value), 1)
|
|
509
509
|
]),
|
|
510
510
|
_(g, { class: "user-menu" }, {
|
|
511
511
|
default: m(() => [
|
|
512
|
-
_(
|
|
512
|
+
_(ne, { onClick: H }, {
|
|
513
513
|
default: m(() => [
|
|
514
|
-
|
|
514
|
+
ee(G(O(t)("common.header.userCenter")), 1)
|
|
515
515
|
]),
|
|
516
516
|
_: 1
|
|
517
517
|
}),
|
|
518
|
-
_(
|
|
518
|
+
_(ne, {
|
|
519
519
|
ref_key: "switchLanguageRef",
|
|
520
520
|
ref: s,
|
|
521
521
|
style: { display: "flext", "justify-content": "space-between" }
|
|
522
522
|
}, {
|
|
523
523
|
default: m(() => [
|
|
524
|
-
v("span", null,
|
|
524
|
+
v("span", null, G(O(t)("common.header.switchLanguage")), 1),
|
|
525
525
|
_(C, { style: { left: "15px" } }, {
|
|
526
526
|
default: m(() => [
|
|
527
|
-
_(
|
|
527
|
+
_(O(ko))
|
|
528
528
|
]),
|
|
529
529
|
_: 1
|
|
530
530
|
})
|
|
@@ -543,17 +543,17 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
543
543
|
"popper-style": "height: 80px; left: -165px"
|
|
544
544
|
}, {
|
|
545
545
|
default: m(() => [
|
|
546
|
-
(p(!0), M(
|
|
546
|
+
(p(!0), M(oe, null, me(S, (P) => (p(), M("div", {
|
|
547
547
|
class: "select-list",
|
|
548
|
-
onClick: (u) => U(
|
|
548
|
+
onClick: (u) => U(P.id)
|
|
549
549
|
}, [
|
|
550
|
-
v("span", null,
|
|
551
|
-
|
|
550
|
+
v("span", null, G(P.name), 1),
|
|
551
|
+
P.id === d.value ? (p(), I(C, {
|
|
552
552
|
key: 0,
|
|
553
553
|
style: { color: "#8ba74f" }
|
|
554
554
|
}, {
|
|
555
555
|
default: m(() => [
|
|
556
|
-
_(
|
|
556
|
+
_(O(Oo))
|
|
557
557
|
]),
|
|
558
558
|
_: 1
|
|
559
559
|
})) : J("", !0)
|
|
@@ -561,9 +561,9 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
561
561
|
]),
|
|
562
562
|
_: 1
|
|
563
563
|
}, 8, ["virtual-ref"]),
|
|
564
|
-
_(
|
|
564
|
+
_(ne, { onClick: A }, {
|
|
565
565
|
default: m(() => [
|
|
566
|
-
|
|
566
|
+
ee(G(O(t)("common.header.signOut")), 1)
|
|
567
567
|
]),
|
|
568
568
|
_: 1
|
|
569
569
|
})
|
|
@@ -578,17 +578,17 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
578
578
|
]),
|
|
579
579
|
_(b, {
|
|
580
580
|
modelValue: l.value,
|
|
581
|
-
"onUpdate:modelValue":
|
|
581
|
+
"onUpdate:modelValue": N[1] || (N[1] = (P) => l.value = P),
|
|
582
582
|
direction: "rtl",
|
|
583
583
|
title: "Message Center"
|
|
584
584
|
}, null, 8, ["modelValue"])
|
|
585
585
|
], 64);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
}), Lt = /* @__PURE__ */ ve(
|
|
588
|
+
}), Lt = /* @__PURE__ */ ve($n, [["__scopeId", "data-v-6fc40dbc"]]), xn = {
|
|
589
589
|
class: "menu-icon-wrapper",
|
|
590
590
|
style: { "margin-left": "3px" }
|
|
591
|
-
},
|
|
591
|
+
}, En = { class: "menu-icon-wrapper" }, Pn = /* @__PURE__ */ we({
|
|
592
592
|
__name: "SideMenuItem",
|
|
593
593
|
props: {
|
|
594
594
|
menu: {}
|
|
@@ -596,29 +596,29 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
596
596
|
setup(e) {
|
|
597
597
|
const t = e;
|
|
598
598
|
return ze(() => console.log("menu", t.menu)), (o, n) => {
|
|
599
|
-
const s =
|
|
600
|
-
return o.menu.children && o.menu.children.length > 0 ? (p(),
|
|
599
|
+
const s = $("SideMenuItem", !0), r = $("el-sub-menu"), l = $("el-menu-item");
|
|
600
|
+
return o.menu.children && o.menu.children.length > 0 ? (p(), I(r, {
|
|
601
601
|
key: 0,
|
|
602
602
|
index: o.menu.path
|
|
603
603
|
}, {
|
|
604
604
|
title: m(() => {
|
|
605
605
|
var a, i, d;
|
|
606
606
|
return [
|
|
607
|
-
v("div",
|
|
608
|
-
(p(),
|
|
607
|
+
v("div", xn, [
|
|
608
|
+
(p(), I(tt((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
609
609
|
]),
|
|
610
|
-
v("span", null,
|
|
610
|
+
v("span", null, G(o.$t((d = (i = o.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
|
|
611
611
|
];
|
|
612
612
|
}),
|
|
613
613
|
default: m(() => [
|
|
614
|
-
(p(!0), M(
|
|
614
|
+
(p(!0), M(oe, null, me(o.menu.children, (a) => (p(), I(s, {
|
|
615
615
|
key: a.path,
|
|
616
616
|
route: a,
|
|
617
617
|
menu: a
|
|
618
618
|
}, null, 8, ["route", "menu"]))), 128))
|
|
619
619
|
]),
|
|
620
620
|
_: 1
|
|
621
|
-
}, 8, ["index"])) : (p(),
|
|
621
|
+
}, 8, ["index"])) : (p(), I(l, {
|
|
622
622
|
key: 1,
|
|
623
623
|
index: t.menu.path,
|
|
624
624
|
style: { height: "40px" }
|
|
@@ -626,14 +626,14 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
626
626
|
title: m(() => {
|
|
627
627
|
var a, i;
|
|
628
628
|
return [
|
|
629
|
-
v("span", null,
|
|
629
|
+
v("span", null, G(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
|
|
630
630
|
];
|
|
631
631
|
}),
|
|
632
632
|
default: m(() => {
|
|
633
633
|
var a;
|
|
634
634
|
return [
|
|
635
|
-
v("div",
|
|
636
|
-
(p(),
|
|
635
|
+
v("div", En, [
|
|
636
|
+
(p(), I(tt((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
637
637
|
])
|
|
638
638
|
];
|
|
639
639
|
}),
|
|
@@ -641,7 +641,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
641
641
|
}, 8, ["index"]));
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
}), In = /* @__PURE__ */ ve(Pn, [["__scopeId", "data-v-99da7c39"]]), ge =
|
|
644
|
+
}), In = /* @__PURE__ */ ve(Pn, [["__scopeId", "data-v-99da7c39"]]), ge = V({}), Vn = {}, Ct = V([]);
|
|
645
645
|
var jt = !1;
|
|
646
646
|
function Qe(e, t, o) {
|
|
647
647
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
@@ -842,7 +842,7 @@ function jn(e, t, o, n) {
|
|
|
842
842
|
}, 4e4);
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function te(e, t) {
|
|
846
846
|
const o = "🍍 " + e;
|
|
847
847
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
|
|
848
848
|
}
|
|
@@ -851,20 +851,20 @@ function ht(e) {
|
|
|
851
851
|
}
|
|
852
852
|
function Yt() {
|
|
853
853
|
if (!("clipboard" in navigator))
|
|
854
|
-
return
|
|
854
|
+
return te("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
855
855
|
}
|
|
856
856
|
function Qt(e) {
|
|
857
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
857
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (te('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
858
858
|
}
|
|
859
859
|
function zn(e) {
|
|
860
860
|
return Ce(this, null, function* () {
|
|
861
861
|
if (!Yt())
|
|
862
862
|
try {
|
|
863
|
-
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
863
|
+
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), te("Global state copied to clipboard.");
|
|
864
864
|
} catch (t) {
|
|
865
865
|
if (Qt(t))
|
|
866
866
|
return;
|
|
867
|
-
|
|
867
|
+
te("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
868
868
|
}
|
|
869
869
|
});
|
|
870
870
|
}
|
|
@@ -872,11 +872,11 @@ function qn(e) {
|
|
|
872
872
|
return Ce(this, null, function* () {
|
|
873
873
|
if (!Yt())
|
|
874
874
|
try {
|
|
875
|
-
Kt(e, JSON.parse(yield navigator.clipboard.readText())),
|
|
875
|
+
Kt(e, JSON.parse(yield navigator.clipboard.readText())), te("Global state pasted from clipboard.");
|
|
876
876
|
} catch (t) {
|
|
877
877
|
if (Qt(t))
|
|
878
878
|
return;
|
|
879
|
-
|
|
879
|
+
te("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
882
|
}
|
|
@@ -887,7 +887,7 @@ function Bn(e) {
|
|
|
887
887
|
type: "text/plain;charset=utf-8"
|
|
888
888
|
}), "pinia-state.json");
|
|
889
889
|
} catch (t) {
|
|
890
|
-
|
|
890
|
+
te("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
}
|
|
@@ -914,9 +914,9 @@ function Jn(e) {
|
|
|
914
914
|
if (!o)
|
|
915
915
|
return;
|
|
916
916
|
const { text: n, file: s } = o;
|
|
917
|
-
Kt(e, JSON.parse(n)),
|
|
917
|
+
Kt(e, JSON.parse(n)), te(`Global state imported from "${s.name}".`);
|
|
918
918
|
} catch (t) {
|
|
919
|
-
|
|
919
|
+
te("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
}
|
|
@@ -1005,7 +1005,7 @@ function Kn(e) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
let De = !0;
|
|
1008
|
-
const et = [], Ie = "pinia:mutations",
|
|
1008
|
+
const et = [], Ie = "pinia:mutations", ae = "pinia", { assign: Xn } = Object, nt = (e) => "🍍 " + e;
|
|
1009
1009
|
function Zn(e, t) {
|
|
1010
1010
|
qt({
|
|
1011
1011
|
id: "dev.esm.pinia",
|
|
@@ -1016,12 +1016,12 @@ function Zn(e, t) {
|
|
|
1016
1016
|
componentStateTypes: et,
|
|
1017
1017
|
app: e
|
|
1018
1018
|
}, (o) => {
|
|
1019
|
-
typeof o.now != "function" &&
|
|
1019
|
+
typeof o.now != "function" && te("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.addTimelineLayer({
|
|
1020
1020
|
id: Ie,
|
|
1021
1021
|
label: "Pinia 🍍",
|
|
1022
1022
|
color: 15064968
|
|
1023
1023
|
}), o.addInspector({
|
|
1024
|
-
id:
|
|
1024
|
+
id: ae,
|
|
1025
1025
|
label: "Pinia 🍍",
|
|
1026
1026
|
icon: "storage",
|
|
1027
1027
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -1036,7 +1036,7 @@ function Zn(e, t) {
|
|
|
1036
1036
|
{
|
|
1037
1037
|
icon: "content_paste",
|
|
1038
1038
|
action: () => Ce(this, null, function* () {
|
|
1039
|
-
yield qn(t), o.sendInspectorTree(
|
|
1039
|
+
yield qn(t), o.sendInspectorTree(ae), o.sendInspectorState(ae);
|
|
1040
1040
|
}),
|
|
1041
1041
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1042
1042
|
},
|
|
@@ -1050,7 +1050,7 @@ function Zn(e, t) {
|
|
|
1050
1050
|
{
|
|
1051
1051
|
icon: "folder_open",
|
|
1052
1052
|
action: () => Ce(this, null, function* () {
|
|
1053
|
-
yield Jn(t), o.sendInspectorTree(
|
|
1053
|
+
yield Jn(t), o.sendInspectorTree(ae), o.sendInspectorState(ae);
|
|
1054
1054
|
}),
|
|
1055
1055
|
tooltip: "Import the state from a JSON file"
|
|
1056
1056
|
}
|
|
@@ -1061,7 +1061,7 @@ function Zn(e, t) {
|
|
|
1061
1061
|
tooltip: 'Reset the state (with "$reset")',
|
|
1062
1062
|
action: (n) => {
|
|
1063
1063
|
const s = t._s.get(n);
|
|
1064
|
-
s ? typeof s.$reset != "function" ?
|
|
1064
|
+
s ? typeof s.$reset != "function" ? te(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), te(`Store "${n}" reset.`)) : te(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
]
|
|
@@ -1105,22 +1105,22 @@ function Zn(e, t) {
|
|
|
1105
1105
|
});
|
|
1106
1106
|
}
|
|
1107
1107
|
}), o.on.getInspectorTree((n) => {
|
|
1108
|
-
if (n.app === e && n.inspectorId ===
|
|
1108
|
+
if (n.app === e && n.inspectorId === ae) {
|
|
1109
1109
|
let s = [t];
|
|
1110
1110
|
s = s.concat(Array.from(t._s.values())), n.rootNodes = (n.filter ? s.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : Xt.toLowerCase().includes(n.filter.toLowerCase())) : s).map(Wn);
|
|
1111
1111
|
}
|
|
1112
1112
|
}), globalThis.$pinia = t, o.on.getInspectorState((n) => {
|
|
1113
|
-
if (n.app === e && n.inspectorId ===
|
|
1113
|
+
if (n.app === e && n.inspectorId === ae) {
|
|
1114
1114
|
const s = n.nodeId === Ze ? t : t._s.get(n.nodeId);
|
|
1115
1115
|
if (!s)
|
|
1116
1116
|
return;
|
|
1117
1117
|
s && (n.nodeId !== Ze && (globalThis.$store = qe(s)), n.state = Yn(s));
|
|
1118
1118
|
}
|
|
1119
1119
|
}), o.on.editInspectorState((n, s) => {
|
|
1120
|
-
if (n.app === e && n.inspectorId ===
|
|
1120
|
+
if (n.app === e && n.inspectorId === ae) {
|
|
1121
1121
|
const r = n.nodeId === Ze ? t : t._s.get(n.nodeId);
|
|
1122
1122
|
if (!r)
|
|
1123
|
-
return
|
|
1123
|
+
return te(`store "${n.nodeId}" not found`, "error");
|
|
1124
1124
|
const { path: l } = n;
|
|
1125
1125
|
ht(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), De = !1, n.set(r, l, n.state.value), De = !0;
|
|
1126
1126
|
}
|
|
@@ -1128,10 +1128,10 @@ function Zn(e, t) {
|
|
|
1128
1128
|
if (n.type.startsWith("🍍")) {
|
|
1129
1129
|
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1130
1130
|
if (!r)
|
|
1131
|
-
return
|
|
1131
|
+
return te(`store "${s}" not found`, "error");
|
|
1132
1132
|
const { path: l } = n;
|
|
1133
1133
|
if (l[0] !== "state")
|
|
1134
|
-
return
|
|
1134
|
+
return te(`Invalid path for store "${s}":
|
|
1135
1135
|
${l}
|
|
1136
1136
|
Only state can be modified.`);
|
|
1137
1137
|
l[0] = "$state", De = !1, n.set(r, l, n.state.value), De = !0;
|
|
@@ -1177,8 +1177,8 @@ function es(e, t) {
|
|
|
1177
1177
|
},
|
|
1178
1178
|
groupId: S
|
|
1179
1179
|
}
|
|
1180
|
-
}), l((
|
|
1181
|
-
|
|
1180
|
+
}), l((y) => {
|
|
1181
|
+
xe = void 0, o.addTimelineEvent({
|
|
1182
1182
|
layerId: Ie,
|
|
1183
1183
|
event: {
|
|
1184
1184
|
time: n(),
|
|
@@ -1188,13 +1188,13 @@ function es(e, t) {
|
|
|
1188
1188
|
store: ye(t.$id),
|
|
1189
1189
|
action: ye(i),
|
|
1190
1190
|
args: d,
|
|
1191
|
-
result:
|
|
1191
|
+
result: y
|
|
1192
1192
|
},
|
|
1193
1193
|
groupId: S
|
|
1194
1194
|
}
|
|
1195
1195
|
});
|
|
1196
|
-
}), a((
|
|
1197
|
-
|
|
1196
|
+
}), a((y) => {
|
|
1197
|
+
xe = void 0, o.addTimelineEvent({
|
|
1198
1198
|
layerId: Ie,
|
|
1199
1199
|
event: {
|
|
1200
1200
|
time: n(),
|
|
@@ -1205,15 +1205,15 @@ function es(e, t) {
|
|
|
1205
1205
|
store: ye(t.$id),
|
|
1206
1206
|
action: ye(i),
|
|
1207
1207
|
args: d,
|
|
1208
|
-
error:
|
|
1208
|
+
error: y
|
|
1209
1209
|
},
|
|
1210
1210
|
groupId: S
|
|
1211
1211
|
}
|
|
1212
1212
|
});
|
|
1213
1213
|
});
|
|
1214
1214
|
}, !0), t._customProperties.forEach((l) => {
|
|
1215
|
-
|
|
1216
|
-
o.notifyComponentUpdate(), o.sendInspectorState(
|
|
1215
|
+
$e(() => O(t[l]), (a, i) => {
|
|
1216
|
+
o.notifyComponentUpdate(), o.sendInspectorState(ae), De && o.addTimelineEvent({
|
|
1217
1217
|
layerId: Ie,
|
|
1218
1218
|
event: {
|
|
1219
1219
|
time: n(),
|
|
@@ -1223,18 +1223,18 @@ function es(e, t) {
|
|
|
1223
1223
|
newValue: a,
|
|
1224
1224
|
oldValue: i
|
|
1225
1225
|
},
|
|
1226
|
-
groupId:
|
|
1226
|
+
groupId: xe
|
|
1227
1227
|
}
|
|
1228
1228
|
});
|
|
1229
1229
|
}, { deep: !0 });
|
|
1230
1230
|
}), t.$subscribe(({ events: l, type: a }, i) => {
|
|
1231
|
-
if (o.notifyComponentUpdate(), o.sendInspectorState(
|
|
1231
|
+
if (o.notifyComponentUpdate(), o.sendInspectorState(ae), !De)
|
|
1232
1232
|
return;
|
|
1233
1233
|
const d = {
|
|
1234
1234
|
time: n(),
|
|
1235
1235
|
title: Kn(a),
|
|
1236
1236
|
data: Xn({ store: ye(t.$id) }, Qn(l)),
|
|
1237
|
-
groupId:
|
|
1237
|
+
groupId: xe
|
|
1238
1238
|
};
|
|
1239
1239
|
a === Se.patchFunction ? d.subtitle = "⤵️" : a === Se.patchObject ? d.subtitle = "🧩" : l && !Array.isArray(l) && (d.subtitle = l.type), l && (d.data["rawEvent(s)"] = {
|
|
1240
1240
|
_custom: {
|
|
@@ -1261,30 +1261,30 @@ function es(e, t) {
|
|
|
1261
1261
|
info: ye("HMR update")
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
}), o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1264
|
+
}), o.notifyComponentUpdate(), o.sendInspectorTree(ae), o.sendInspectorState(ae);
|
|
1265
1265
|
});
|
|
1266
1266
|
const { $dispose: r } = t;
|
|
1267
1267
|
t.$dispose = () => {
|
|
1268
|
-
r(), o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1269
|
-
}, o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1268
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ae), o.sendInspectorState(ae), o.getSettings().logStoreChanges && te(`Disposed "${t.$id}" store 🗑`);
|
|
1269
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(ae), o.sendInspectorState(ae), o.getSettings().logStoreChanges && te(`"${t.$id}" store installed 🆕`);
|
|
1270
1270
|
});
|
|
1271
1271
|
}
|
|
1272
|
-
let Zt = 0,
|
|
1272
|
+
let Zt = 0, xe;
|
|
1273
1273
|
function Ot(e, t, o) {
|
|
1274
1274
|
const n = t.reduce((s, r) => (s[r] = qe(e)[r], s), {});
|
|
1275
1275
|
for (const s in n)
|
|
1276
1276
|
e[s] = function() {
|
|
1277
1277
|
const r = Zt, l = o ? new Proxy(e, {
|
|
1278
1278
|
get(...i) {
|
|
1279
|
-
return
|
|
1279
|
+
return xe = r, Reflect.get(...i);
|
|
1280
1280
|
},
|
|
1281
1281
|
set(...i) {
|
|
1282
|
-
return
|
|
1282
|
+
return xe = r, Reflect.set(...i);
|
|
1283
1283
|
}
|
|
1284
1284
|
}) : e;
|
|
1285
|
-
|
|
1285
|
+
xe = r;
|
|
1286
1286
|
const a = n[s].apply(l, arguments);
|
|
1287
|
-
return
|
|
1287
|
+
return xe = void 0, a;
|
|
1288
1288
|
};
|
|
1289
1289
|
}
|
|
1290
1290
|
function ts({ app: e, store: t, options: o }) {
|
|
@@ -1304,7 +1304,7 @@ function ts({ app: e, store: t, options: o }) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
function os() {
|
|
1307
|
-
const e = Nt(!0), t = e.run(() =>
|
|
1307
|
+
const e = Nt(!0), t = e.run(() => V({}));
|
|
1308
1308
|
let o = [], n = [];
|
|
1309
1309
|
const s = Ve({
|
|
1310
1310
|
install(r) {
|
|
@@ -1335,7 +1335,7 @@ function eo(e, t) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
const to = () => {
|
|
1337
1337
|
};
|
|
1338
|
-
function
|
|
1338
|
+
function $t(e, t, o, n = to) {
|
|
1339
1339
|
e.push(t);
|
|
1340
1340
|
const s = () => {
|
|
1341
1341
|
const r = e.indexOf(t);
|
|
@@ -1348,7 +1348,7 @@ function Te(e, ...t) {
|
|
|
1348
1348
|
o(...t);
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
|
-
const ns = (e) => e(),
|
|
1351
|
+
const ns = (e) => e(), xt = Symbol(), ct = Symbol();
|
|
1352
1352
|
function dt(e, t) {
|
|
1353
1353
|
e instanceof Map && t instanceof Map ? t.forEach((o, n) => e.set(n, o)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
1354
1354
|
for (const o in t) {
|
|
@@ -1367,7 +1367,7 @@ function rs(e) {
|
|
|
1367
1367
|
return !Me(e) || !e.hasOwnProperty(ss);
|
|
1368
1368
|
}
|
|
1369
1369
|
const { assign: _e } = Object;
|
|
1370
|
-
function
|
|
1370
|
+
function Et(e) {
|
|
1371
1371
|
return !!(Be(e) && e.effect);
|
|
1372
1372
|
}
|
|
1373
1373
|
function Pt(e, t, o, n) {
|
|
@@ -1377,13 +1377,13 @@ function Pt(e, t, o, n) {
|
|
|
1377
1377
|
!a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
|
|
1378
1378
|
const S = process.env.NODE_ENV !== "production" && n ? (
|
|
1379
1379
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1380
|
-
St(
|
|
1380
|
+
St(V(s ? s() : {}).value)
|
|
1381
1381
|
) : St(o.state.value[e]);
|
|
1382
|
-
return _e(S, r, Object.keys(l || {}).reduce((
|
|
1382
|
+
return _e(S, r, Object.keys(l || {}).reduce((y, A) => (process.env.NODE_ENV !== "production" && A in S && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${A}" in store "${e}".`), y[A] = Ve(Ne(() => {
|
|
1383
1383
|
He(o);
|
|
1384
1384
|
const U = o._s.get(e);
|
|
1385
|
-
return l[
|
|
1386
|
-
})),
|
|
1385
|
+
return l[A].call(U, U);
|
|
1386
|
+
})), y), {}));
|
|
1387
1387
|
}
|
|
1388
1388
|
return i = pt(e, d, t, o, n, !0), i;
|
|
1389
1389
|
}
|
|
@@ -1396,12 +1396,12 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1396
1396
|
process.env.NODE_ENV !== "production" && !jt && (i.onTrigger = (u) => {
|
|
1397
1397
|
d ? U = u : d == !1 && !g._hotUpdating && (Array.isArray(U) ? U.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1398
1398
|
});
|
|
1399
|
-
let d, S,
|
|
1400
|
-
const
|
|
1401
|
-
!r && !
|
|
1402
|
-
const
|
|
1403
|
-
let
|
|
1404
|
-
function
|
|
1399
|
+
let d, S, y = [], A = [], U;
|
|
1400
|
+
const H = n.state.value[e];
|
|
1401
|
+
!r && !H && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1402
|
+
const D = V({});
|
|
1403
|
+
let L;
|
|
1404
|
+
function N(u) {
|
|
1405
1405
|
let c;
|
|
1406
1406
|
d = S = !1, process.env.NODE_ENV !== "production" && (U = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1407
1407
|
type: Se.patchFunction,
|
|
@@ -1413,15 +1413,15 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1413
1413
|
storeId: e,
|
|
1414
1414
|
events: U
|
|
1415
1415
|
});
|
|
1416
|
-
const
|
|
1416
|
+
const w = L = Symbol();
|
|
1417
1417
|
ze().then(() => {
|
|
1418
|
-
|
|
1419
|
-
}), S = !0, Te(
|
|
1418
|
+
L === w && (d = !0);
|
|
1419
|
+
}), S = !0, Te(y, c, n.state.value[e]);
|
|
1420
1420
|
}
|
|
1421
1421
|
const K = r ? function() {
|
|
1422
|
-
const { state: c } = o,
|
|
1423
|
-
this.$patch((
|
|
1424
|
-
_e(
|
|
1422
|
+
const { state: c } = o, w = c ? c() : {};
|
|
1423
|
+
this.$patch((k) => {
|
|
1424
|
+
_e(k, w);
|
|
1425
1425
|
});
|
|
1426
1426
|
} : (
|
|
1427
1427
|
/* istanbul ignore next */
|
|
@@ -1430,62 +1430,62 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1430
1430
|
} : to
|
|
1431
1431
|
);
|
|
1432
1432
|
function W() {
|
|
1433
|
-
l.stop(),
|
|
1433
|
+
l.stop(), y = [], A = [], n._s.delete(e);
|
|
1434
1434
|
}
|
|
1435
1435
|
const Y = (u, c = "") => {
|
|
1436
|
-
if (
|
|
1436
|
+
if (xt in u)
|
|
1437
1437
|
return u[ct] = c, u;
|
|
1438
|
-
const
|
|
1438
|
+
const w = function() {
|
|
1439
1439
|
He(n);
|
|
1440
|
-
const
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1440
|
+
const k = Array.from(arguments), B = [], Q = [];
|
|
1441
|
+
function F(f) {
|
|
1442
|
+
B.push(f);
|
|
1443
1443
|
}
|
|
1444
1444
|
function h(f) {
|
|
1445
1445
|
Q.push(f);
|
|
1446
1446
|
}
|
|
1447
|
-
Te(
|
|
1448
|
-
args:
|
|
1449
|
-
name:
|
|
1447
|
+
Te(A, {
|
|
1448
|
+
args: k,
|
|
1449
|
+
name: w[ct],
|
|
1450
1450
|
store: g,
|
|
1451
|
-
after:
|
|
1451
|
+
after: F,
|
|
1452
1452
|
onError: h
|
|
1453
1453
|
});
|
|
1454
|
-
let
|
|
1454
|
+
let j;
|
|
1455
1455
|
try {
|
|
1456
|
-
|
|
1456
|
+
j = u.apply(this && this.$id === e ? this : g, k);
|
|
1457
1457
|
} catch (f) {
|
|
1458
1458
|
throw Te(Q, f), f;
|
|
1459
1459
|
}
|
|
1460
|
-
return
|
|
1460
|
+
return j instanceof Promise ? j.then((f) => (Te(B, f), f)).catch((f) => (Te(Q, f), Promise.reject(f))) : (Te(B, j), j);
|
|
1461
1461
|
};
|
|
1462
|
-
return
|
|
1463
|
-
},
|
|
1462
|
+
return w[xt] = !0, w[ct] = c, w;
|
|
1463
|
+
}, ne = /* @__PURE__ */ Ve({
|
|
1464
1464
|
actions: {},
|
|
1465
1465
|
getters: {},
|
|
1466
1466
|
state: [],
|
|
1467
|
-
hotState:
|
|
1467
|
+
hotState: D
|
|
1468
1468
|
}), C = {
|
|
1469
1469
|
_p: n,
|
|
1470
1470
|
// _s: scope,
|
|
1471
1471
|
$id: e,
|
|
1472
|
-
$onAction:
|
|
1473
|
-
$patch:
|
|
1472
|
+
$onAction: $t.bind(null, A),
|
|
1473
|
+
$patch: N,
|
|
1474
1474
|
$reset: K,
|
|
1475
1475
|
$subscribe(u, c = {}) {
|
|
1476
|
-
const
|
|
1476
|
+
const w = $t(y, u, c.detached, () => k()), k = l.run(() => $e(() => n.state.value[e], (B) => {
|
|
1477
1477
|
(c.flush === "sync" ? S : d) && u({
|
|
1478
1478
|
storeId: e,
|
|
1479
1479
|
type: Se.direct,
|
|
1480
1480
|
events: U
|
|
1481
|
-
},
|
|
1481
|
+
}, B);
|
|
1482
1482
|
}, _e({}, i, c)));
|
|
1483
|
-
return
|
|
1483
|
+
return w;
|
|
1484
1484
|
},
|
|
1485
1485
|
$dispose: W
|
|
1486
|
-
}, g =
|
|
1486
|
+
}, g = ue(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae ? _e(
|
|
1487
1487
|
{
|
|
1488
|
-
_hmrPayload:
|
|
1488
|
+
_hmrPayload: ne,
|
|
1489
1489
|
_customProperties: Ve(/* @__PURE__ */ new Set())
|
|
1490
1490
|
// devtools custom properties
|
|
1491
1491
|
},
|
|
@@ -1494,34 +1494,34 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1494
1494
|
// setupStore
|
|
1495
1495
|
) : C);
|
|
1496
1496
|
n._s.set(e, g);
|
|
1497
|
-
const
|
|
1498
|
-
for (const u in
|
|
1499
|
-
const c =
|
|
1500
|
-
if (Be(c) && !
|
|
1501
|
-
process.env.NODE_ENV !== "production" && s ? Qe(
|
|
1497
|
+
const P = (n._a && n._a.runWithContext || ns)(() => n._e.run(() => (l = Nt()).run(() => t({ action: Y }))));
|
|
1498
|
+
for (const u in P) {
|
|
1499
|
+
const c = P[u];
|
|
1500
|
+
if (Be(c) && !Et(c) || ft(c))
|
|
1501
|
+
process.env.NODE_ENV !== "production" && s ? Qe(D.value, u, at(P, u)) : r || (H && rs(c) && (Be(c) ? c.value = H[u] : dt(c, H[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ne.state.push(u);
|
|
1502
1502
|
else if (typeof c == "function") {
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1505
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
1503
|
+
const w = process.env.NODE_ENV !== "production" && s ? c : Y(c, u);
|
|
1504
|
+
P[u] = w, process.env.NODE_ENV !== "production" && (ne.actions[u] = c), a.actions[u] = c;
|
|
1505
|
+
} else process.env.NODE_ENV !== "production" && Et(c) && (ne.getters[u] = r ? (
|
|
1506
1506
|
// @ts-expect-error
|
|
1507
1507
|
o.getters[u]
|
|
1508
|
-
) : c, Ae && (
|
|
1509
|
-
(
|
|
1508
|
+
) : c, Ae && (P._getters || // @ts-expect-error: same
|
|
1509
|
+
(P._getters = Ve([]))).push(u));
|
|
1510
1510
|
}
|
|
1511
|
-
if (_e(g,
|
|
1512
|
-
get: () => process.env.NODE_ENV !== "production" && s ?
|
|
1511
|
+
if (_e(g, P), _e(qe(g), P), Object.defineProperty(g, "$state", {
|
|
1512
|
+
get: () => process.env.NODE_ENV !== "production" && s ? D.value : n.state.value[e],
|
|
1513
1513
|
set: (u) => {
|
|
1514
1514
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1515
1515
|
throw new Error("cannot set hotState");
|
|
1516
|
-
|
|
1516
|
+
N((c) => {
|
|
1517
1517
|
_e(c, u);
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
1520
1520
|
}), process.env.NODE_ENV !== "production" && (g._hotUpdate = Ve((u) => {
|
|
1521
1521
|
g._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1522
1522
|
if (c in g.$state) {
|
|
1523
|
-
const
|
|
1524
|
-
typeof
|
|
1523
|
+
const w = u.$state[c], k = g.$state[c];
|
|
1524
|
+
typeof w == "object" && Me(w) && Me(k) ? eo(w, k) : u.$state[c] = k;
|
|
1525
1525
|
}
|
|
1526
1526
|
Qe(g, c, at(u.$state, c));
|
|
1527
1527
|
}), Object.keys(g.$state).forEach((c) => {
|
|
@@ -1530,15 +1530,15 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1530
1530
|
d = !0;
|
|
1531
1531
|
});
|
|
1532
1532
|
for (const c in u._hmrPayload.actions) {
|
|
1533
|
-
const
|
|
1534
|
-
Qe(g, c, Y(
|
|
1533
|
+
const w = u[c];
|
|
1534
|
+
Qe(g, c, Y(w, c));
|
|
1535
1535
|
}
|
|
1536
1536
|
for (const c in u._hmrPayload.getters) {
|
|
1537
|
-
const
|
|
1537
|
+
const w = u._hmrPayload.getters[c], k = r ? (
|
|
1538
1538
|
// special handling of options api
|
|
1539
|
-
Ne(() => (He(n),
|
|
1540
|
-
) :
|
|
1541
|
-
Qe(g, c,
|
|
1539
|
+
Ne(() => (He(n), w.call(g, g)))
|
|
1540
|
+
) : w;
|
|
1541
|
+
Qe(g, c, k);
|
|
1542
1542
|
}
|
|
1543
1543
|
Object.keys(g._hmrPayload.getters).forEach((c) => {
|
|
1544
1544
|
c in u._hmrPayload.getters || it(g, c);
|
|
@@ -1564,7 +1564,7 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1564
1564
|
pinia: n,
|
|
1565
1565
|
options: a
|
|
1566
1566
|
}));
|
|
1567
|
-
Object.keys(c || {}).forEach((
|
|
1567
|
+
Object.keys(c || {}).forEach((w) => g._customProperties.add(w)), _e(g, c);
|
|
1568
1568
|
} else
|
|
1569
1569
|
_e(g, l.run(() => u({
|
|
1570
1570
|
store: g,
|
|
@@ -1574,7 +1574,7 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1574
1574
|
})));
|
|
1575
1575
|
}), process.env.NODE_ENV !== "production" && g.$state && typeof g.$state == "object" && typeof g.$state.constructor == "function" && !g.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1576
1576
|
state: () => new MyClass()
|
|
1577
|
-
Found in store "${g.$id}".`),
|
|
1577
|
+
Found in store "${g.$id}".`), H && r && o.hydrate && o.hydrate(g.$state, H), d = !0, S = !0, g;
|
|
1578
1578
|
}
|
|
1579
1579
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1580
1580
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1593,14 +1593,14 @@ This will fail in production.`);
|
|
|
1593
1593
|
a = je, a._s.has(n) || (r ? pt(n, t, s, a) : Pt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1594
1594
|
const S = a._s.get(n);
|
|
1595
1595
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1596
|
-
const
|
|
1597
|
-
i._hotUpdate(
|
|
1596
|
+
const y = "__hot:" + n, A = r ? pt(y, t, s, a, !0) : Pt(y, _e({}, s), a, !0);
|
|
1597
|
+
i._hotUpdate(A), delete a.state.value[y], a._s.delete(y);
|
|
1598
1598
|
}
|
|
1599
1599
|
if (process.env.NODE_ENV !== "production" && Ae) {
|
|
1600
|
-
const
|
|
1601
|
-
if (
|
|
1600
|
+
const y = bo();
|
|
1601
|
+
if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1602
1602
|
!i) {
|
|
1603
|
-
const
|
|
1603
|
+
const A = y.proxy, U = "_pStores" in A ? A._pStores : A._pStores = {};
|
|
1604
1604
|
U[n] = S;
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
@@ -1732,14 +1732,14 @@ function It(e, {
|
|
|
1732
1732
|
}, d, S = !0) {
|
|
1733
1733
|
try {
|
|
1734
1734
|
S && (a == null || a(d));
|
|
1735
|
-
const
|
|
1736
|
-
if (
|
|
1737
|
-
const
|
|
1738
|
-
e.$patch(
|
|
1735
|
+
const y = t.getItem(n);
|
|
1736
|
+
if (y) {
|
|
1737
|
+
const A = o.deserialize(y), U = r ? no(A, r) : A, H = l ? so(U, l) : U;
|
|
1738
|
+
e.$patch(H);
|
|
1739
1739
|
}
|
|
1740
1740
|
S && (i == null || i(d));
|
|
1741
|
-
} catch (
|
|
1742
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1741
|
+
} catch (y) {
|
|
1742
|
+
s && console.error("[pinia-plugin-persistedstate]", y);
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
1745
|
function Vt(e, {
|
|
@@ -1790,11 +1790,11 @@ function hs(e = {}) {
|
|
|
1790
1790
|
(n) => {
|
|
1791
1791
|
var s, r, l, a, i, d, S;
|
|
1792
1792
|
return {
|
|
1793
|
-
key: (e.key ? e.key : (
|
|
1793
|
+
key: (e.key ? e.key : (y) => y)((s = n.key) != null ? s : t.store.$id),
|
|
1794
1794
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1795
1795
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1796
|
-
serialize: (
|
|
1797
|
-
deserialize: (
|
|
1796
|
+
serialize: (y) => JSON.stringify(y),
|
|
1797
|
+
deserialize: (y) => ps(y)
|
|
1798
1798
|
},
|
|
1799
1799
|
storage: (S = (d = n.storage) != null ? d : e.storage) != null ? S : window.localStorage,
|
|
1800
1800
|
beforeHydrate: n.beforeHydrate,
|
|
@@ -1838,15 +1838,15 @@ const ro = /* @__PURE__ */ as("console", {
|
|
|
1838
1838
|
return s;
|
|
1839
1839
|
});
|
|
1840
1840
|
return (s, r) => {
|
|
1841
|
-
const l =
|
|
1842
|
-
return
|
|
1841
|
+
const l = $("el-menu");
|
|
1842
|
+
return O(Ct).length > 0 ? (p(), M("div", gs, [
|
|
1843
1843
|
_(l, {
|
|
1844
1844
|
class: "menu",
|
|
1845
1845
|
"default-active": n.value,
|
|
1846
1846
|
router: ""
|
|
1847
1847
|
}, {
|
|
1848
1848
|
default: m(() => [
|
|
1849
|
-
(p(!0), M(
|
|
1849
|
+
(p(!0), M(oe, null, me(O(Ct), (a) => (p(), I(In, {
|
|
1850
1850
|
key: a.path,
|
|
1851
1851
|
menu: a
|
|
1852
1852
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -1863,17 +1863,17 @@ const ro = /* @__PURE__ */ as("console", {
|
|
|
1863
1863
|
helpDocUrl: {}
|
|
1864
1864
|
},
|
|
1865
1865
|
setup(e) {
|
|
1866
|
-
const t = ro(gt), o = Je(), n =
|
|
1866
|
+
const t = ro(gt), o = Je(), n = V(t.menu.collapsed), s = V(), r = e;
|
|
1867
1867
|
return (l, a) => {
|
|
1868
|
-
const i =
|
|
1869
|
-
return p(), M(
|
|
1870
|
-
|
|
1868
|
+
const i = $("router-view"), d = $("el-scrollbar");
|
|
1869
|
+
return p(), M(oe, null, [
|
|
1870
|
+
O(o).query.embedded !== "true" ? (p(), I(Lt, {
|
|
1871
1871
|
key: 0,
|
|
1872
1872
|
title: r.title,
|
|
1873
1873
|
helpDocUrl: r.helpDocUrl
|
|
1874
1874
|
}, null, 8, ["title", "helpDocUrl"])) : J("", !0),
|
|
1875
1875
|
v("div", vs, [
|
|
1876
|
-
|
|
1876
|
+
O(o).query.embedded !== "true" ? (p(), I(ao, {
|
|
1877
1877
|
key: 0,
|
|
1878
1878
|
menuCollapsed: n.value,
|
|
1879
1879
|
"onUpdate:menuCollapsed": a[0] || (a[0] = (S) => n.value = S)
|
|
@@ -1904,16 +1904,16 @@ function Ss(e, t) {
|
|
|
1904
1904
|
wo('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>', 33)
|
|
1905
1905
|
]));
|
|
1906
1906
|
}
|
|
1907
|
-
const Cs = { render: Ss }, ks = {}, Os = { class: "wrapper" },
|
|
1908
|
-
function
|
|
1909
|
-
const o =
|
|
1907
|
+
const Cs = { render: Ss }, ks = {}, Os = { class: "wrapper" }, $s = { class: "content" };
|
|
1908
|
+
function xs(e, t) {
|
|
1909
|
+
const o = $("el-button");
|
|
1910
1910
|
return p(), M("div", Os, [
|
|
1911
1911
|
t[4] || (t[4] = v("img", { src: Cs }, null, -1)),
|
|
1912
|
-
v("div",
|
|
1912
|
+
v("div", $s, [
|
|
1913
1913
|
t[3] || (t[3] = v("h1", null, "You have no permission to access the page.", -1)),
|
|
1914
1914
|
_(o, { type: "primary" }, {
|
|
1915
1915
|
default: m(() => t[1] || (t[1] = [
|
|
1916
|
-
|
|
1916
|
+
ee("Apply")
|
|
1917
1917
|
])),
|
|
1918
1918
|
_: 1
|
|
1919
1919
|
}),
|
|
@@ -1921,17 +1921,17 @@ function $s(e, t) {
|
|
|
1921
1921
|
onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
|
|
1922
1922
|
}, {
|
|
1923
1923
|
default: m(() => t[2] || (t[2] = [
|
|
1924
|
-
|
|
1924
|
+
ee("Go Back")
|
|
1925
1925
|
])),
|
|
1926
1926
|
_: 1
|
|
1927
1927
|
})
|
|
1928
1928
|
])
|
|
1929
1929
|
]);
|
|
1930
1930
|
}
|
|
1931
|
-
const
|
|
1931
|
+
const Es = /* @__PURE__ */ ve(ks, [["render", xs], ["__scopeId", "data-v-0155b361"]]), Ps = {};
|
|
1932
1932
|
function Is(e, t) {
|
|
1933
|
-
const o =
|
|
1934
|
-
return p(),
|
|
1933
|
+
const o = $("router-view");
|
|
1934
|
+
return p(), I(o);
|
|
1935
1935
|
}
|
|
1936
1936
|
const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper" }, Ns = ["onClick"], Ms = { class: "card-inner-wrapper" }, Us = { class: "card-title" }, Ts = { class: "icon" }, Ds = /* @__PURE__ */ we({
|
|
1937
1937
|
__name: "TabCard",
|
|
@@ -1940,7 +1940,7 @@ const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper
|
|
|
1940
1940
|
tableRef: {}
|
|
1941
1941
|
},
|
|
1942
1942
|
setup(e) {
|
|
1943
|
-
const { t } = We(), o = Je(), n = rt(), s = e, r =
|
|
1943
|
+
const { t } = We(), o = Je(), n = rt(), s = e, r = V(s.cards[0].key);
|
|
1944
1944
|
function l(a) {
|
|
1945
1945
|
a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
|
|
1946
1946
|
path: o.path,
|
|
@@ -1959,7 +1959,7 @@ const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper
|
|
|
1959
1959
|
ze(() => {
|
|
1960
1960
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
1961
1961
|
});
|
|
1962
|
-
}),
|
|
1962
|
+
}), $e(
|
|
1963
1963
|
() => s.cards,
|
|
1964
1964
|
(a) => {
|
|
1965
1965
|
if (o.query.tab !== void 0) {
|
|
@@ -1975,23 +1975,23 @@ const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper
|
|
|
1975
1975
|
deep: !0
|
|
1976
1976
|
}
|
|
1977
1977
|
), (a, i) => (p(), M("div", As, [
|
|
1978
|
-
(p(!0), M(
|
|
1978
|
+
(p(!0), M(oe, null, me(s.cards, (d) => (p(), M("div", {
|
|
1979
1979
|
class: Mt(["card", { "card-selected": r.value === d.key }]),
|
|
1980
1980
|
onClick: (S) => l(d)
|
|
1981
1981
|
}, [
|
|
1982
1982
|
v("div", Ms, [
|
|
1983
1983
|
v("div", Us, [
|
|
1984
1984
|
v("div", Ts, [
|
|
1985
|
-
d.icon ? (p(),
|
|
1985
|
+
d.icon ? (p(), I(tt(d.icon), {
|
|
1986
1986
|
key: 0,
|
|
1987
1987
|
class: "svg-icon"
|
|
1988
1988
|
})) : J("", !0)
|
|
1989
1989
|
]),
|
|
1990
1990
|
v("span", {
|
|
1991
1991
|
style: Re({ color: d.disabled ? "#aaa" : "black" })
|
|
1992
|
-
},
|
|
1992
|
+
}, G(O(t)(d.label)), 5)
|
|
1993
1993
|
]),
|
|
1994
|
-
v("span", null,
|
|
1994
|
+
v("span", null, G(d.count), 1)
|
|
1995
1995
|
])
|
|
1996
1996
|
], 10, Ns))), 256))
|
|
1997
1997
|
]));
|
|
@@ -2031,13 +2031,13 @@ const Ge = (e) => {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
emits: ["update:id"],
|
|
2033
2033
|
setup(e, { expose: t, emit: o }) {
|
|
2034
|
-
const { t: n } = ot.global, s = e, r =
|
|
2034
|
+
const { t: n } = ot.global, s = e, r = ue({}), l = V(!1), a = V(), i = ue({}), d = V(!0), S = (C) => s.mode === "view" && (Y(C, void 0) || Y(C, "input") || Y(C, "select") || Y(C, "password") || Y(C, "input-number")), y = Ne(() => s.model.fields ? s.model.fields.filter(
|
|
2035
2035
|
(C) => {
|
|
2036
|
-
var
|
|
2037
|
-
let g = C.visible !== !1 && ((
|
|
2036
|
+
var P, u, c, w;
|
|
2037
|
+
let g = C.visible !== !1 && ((P = C.formItemAttributes) == null ? void 0 : P.visible) !== !1;
|
|
2038
2038
|
if (s.mode !== "view" && ((u = C.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = C.formItemAttributes) == null ? void 0 : c.type) === "password")
|
|
2039
2039
|
return !1;
|
|
2040
|
-
let b = (
|
|
2040
|
+
let b = (w = C.formItemAttributes) == null ? void 0 : w.showCondition;
|
|
2041
2041
|
if (b && b.field && b.value !== void 0) {
|
|
2042
2042
|
if (b.operator === void 0 || b.operator === "==")
|
|
2043
2043
|
return r[b.field] === b.value;
|
|
@@ -2051,47 +2051,47 @@ const Ge = (e) => {
|
|
|
2051
2051
|
return g;
|
|
2052
2052
|
}
|
|
2053
2053
|
) : []);
|
|
2054
|
-
|
|
2054
|
+
$e([() => s.id, () => s.sessionId], () => {
|
|
2055
2055
|
console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), U();
|
|
2056
2056
|
}, {
|
|
2057
2057
|
immediate: !0
|
|
2058
2058
|
});
|
|
2059
|
-
function
|
|
2059
|
+
function A() {
|
|
2060
2060
|
console.log("FormView.initFormFields: begin");
|
|
2061
2061
|
const C = s.model.fields;
|
|
2062
2062
|
let g = {};
|
|
2063
2063
|
C == null || C.forEach((b) => {
|
|
2064
|
-
var
|
|
2065
|
-
if (r[b.prop] = null, b.visible !== !1 && ((
|
|
2064
|
+
var P, u, c, w, k, B, Q, F, h, j, f, x, T;
|
|
2065
|
+
if (r[b.prop] = null, b.visible !== !1 && ((P = b.formItemAttributes) == null ? void 0 : P.visible) !== !1) {
|
|
2066
2066
|
if (((u = b.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[b.prop] = (c = b.formItemAttributes) == null ? void 0 : c.defaultValue : r[b.prop] = void 0, s.mode !== "view") {
|
|
2067
|
-
let
|
|
2068
|
-
|
|
2067
|
+
let Z = (w = b.formItemAttributes) == null ? void 0 : w.validationRule;
|
|
2068
|
+
Z !== void 0 && (g[b.prop] = Z), Ge(i), Object.assign(i, g);
|
|
2069
2069
|
}
|
|
2070
|
-
const
|
|
2070
|
+
const E = b.formItemAttributes, X = E == null ? void 0 : E.type, le = (k = E == null ? void 0 : E.selectAttributes) == null ? void 0 : k.useDatableDict, ie = (B = E == null ? void 0 : E.selectAttributes) == null ? void 0 : B.dictId, de = (Q = E == null ? void 0 : E.selectAttributes) == null ? void 0 : Q.api, se = (F = E == null ? void 0 : E.selectAttributes) == null ? void 0 : F.valueMappingField, z = (h = E == null ? void 0 : E.selectAttributes) == null ? void 0 : h.labelMappingField;
|
|
2071
2071
|
if (X === "select") {
|
|
2072
|
-
if (
|
|
2073
|
-
let
|
|
2074
|
-
const
|
|
2075
|
-
|
|
2072
|
+
if (le) {
|
|
2073
|
+
let re = `${Ne(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${ie}`;
|
|
2074
|
+
const pe = (j = E == null ? void 0 : E.selectAttributes) == null ? void 0 : j.queryParamName, he = (f = E == null ? void 0 : E.selectAttributes) == null ? void 0 : f.queryParamValueField;
|
|
2075
|
+
pe && (re = `${re}?${pe}=${s.id}`), he || Oe(re, "GET", {}).then(({ data: fe }) => {
|
|
2076
2076
|
var q;
|
|
2077
2077
|
if ((q = b.formItemAttributes) != null && q.selectAttributes) {
|
|
2078
|
-
let
|
|
2079
|
-
Array.isArray(
|
|
2080
|
-
value:
|
|
2081
|
-
label:
|
|
2078
|
+
let R = [];
|
|
2079
|
+
Array.isArray(fe.data) ? R = fe.data : fe.data.list && Array.isArray(fe.data.list) && (R = fe.data.list), b.formItemAttributes.selectAttributes.options = R.map((ce) => ({
|
|
2080
|
+
value: ce.dbOrdinal,
|
|
2081
|
+
label: ce.value
|
|
2082
2082
|
}));
|
|
2083
2083
|
}
|
|
2084
2084
|
});
|
|
2085
|
-
} else if (
|
|
2086
|
-
let
|
|
2087
|
-
const
|
|
2088
|
-
|
|
2089
|
-
var
|
|
2090
|
-
if ((
|
|
2085
|
+
} else if (de) {
|
|
2086
|
+
let Z = de;
|
|
2087
|
+
const re = (x = E == null ? void 0 : E.selectAttributes) == null ? void 0 : x.queryParamName, pe = (T = E == null ? void 0 : E.selectAttributes) == null ? void 0 : T.queryParamValueField;
|
|
2088
|
+
re && (Z = `${Z}?${re}=${s.id}`), pe || Oe(Z, "GET", {}).then(({ data: he }) => {
|
|
2089
|
+
var fe;
|
|
2090
|
+
if ((fe = b.formItemAttributes) != null && fe.selectAttributes) {
|
|
2091
2091
|
let q = [];
|
|
2092
|
-
Array.isArray(
|
|
2093
|
-
value:
|
|
2094
|
-
label:
|
|
2092
|
+
Array.isArray(he.data) ? q = he.data : he.data.list && Array.isArray(he.data.list) && (q = he.data.list), b.formItemAttributes.selectAttributes.options = q.map((R) => ({
|
|
2093
|
+
value: se ? R[se] : R.value,
|
|
2094
|
+
label: z ? R[z] : R.label
|
|
2095
2095
|
}));
|
|
2096
2096
|
}
|
|
2097
2097
|
});
|
|
@@ -2102,38 +2102,38 @@ const Ge = (e) => {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
function U() {
|
|
2104
2104
|
var C;
|
|
2105
|
-
console.log(`FormView.refresh: id = ${s.id}, model = `, s.model),
|
|
2105
|
+
console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), D(), d.value = (C = s.model.useI18n) != null ? C : !0, A(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Oe(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: g }) => {
|
|
2106
2106
|
Ge(r), Object.assign(r, g.data), l.value = !1;
|
|
2107
2107
|
}));
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function H() {
|
|
2110
2110
|
return new Promise((C, g) => {
|
|
2111
|
-
var
|
|
2112
|
-
((u = (
|
|
2111
|
+
var P, u, c, w;
|
|
2112
|
+
((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (w = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : w.beforeSubmit(r));
|
|
2113
2113
|
let b = s.mode === "create" ? "POST" : "PUT";
|
|
2114
|
-
s.model.api && Oe(s.model.api, b, r).then(({ data:
|
|
2115
|
-
var
|
|
2116
|
-
|
|
2114
|
+
s.model.api && Oe(s.model.api, b, r).then(({ data: k }) => {
|
|
2115
|
+
var B, Q, F, h;
|
|
2116
|
+
k.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((Q = (B = s.model.formConfig) == null ? void 0 : B.functions) == null ? void 0 : Q.afterSubmit) !== void 0 && ((h = (F = s.model.formConfig) == null ? void 0 : F.functions) == null || h.afterSubmit(k.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
|
|
2117
2117
|
});
|
|
2118
2118
|
});
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function D() {
|
|
2121
2121
|
var C;
|
|
2122
2122
|
console.log("FormView.reset: begin"), (C = a.value) == null || C.resetFields();
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2124
|
+
function L(C) {
|
|
2125
2125
|
return C.label ? d ? n(C.label) : C.label : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase();
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2128
|
-
var g, b,
|
|
2127
|
+
function N(C) {
|
|
2128
|
+
var g, b, P, u;
|
|
2129
2129
|
if (C) {
|
|
2130
2130
|
if (Y(C, "select")) {
|
|
2131
2131
|
const c = (b = (g = C.tableColumnAttributes) == null ? void 0 : g.functions) == null ? void 0 : b.transformValue;
|
|
2132
2132
|
if (c)
|
|
2133
2133
|
return c(r[C.prop]);
|
|
2134
|
-
const
|
|
2135
|
-
if (
|
|
2136
|
-
return r[
|
|
2134
|
+
const w = (u = (P = C.formItemAttributes) == null ? void 0 : P.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2135
|
+
if (w)
|
|
2136
|
+
return r[w];
|
|
2137
2137
|
}
|
|
2138
2138
|
return r[C.prop];
|
|
2139
2139
|
}
|
|
@@ -2143,8 +2143,8 @@ const Ge = (e) => {
|
|
|
2143
2143
|
return ((g = C.formItemAttributes) == null ? void 0 : g.updatable) === !1 && s.mode === "update";
|
|
2144
2144
|
}
|
|
2145
2145
|
function W(C, g) {
|
|
2146
|
-
var
|
|
2147
|
-
const b = (u = (
|
|
2146
|
+
var P, u;
|
|
2147
|
+
const b = (u = (P = g.formItemAttributes) == null ? void 0 : P.type) != null ? u : "input";
|
|
2148
2148
|
switch (C) {
|
|
2149
2149
|
case "input":
|
|
2150
2150
|
return s.mode === "view" ? !1 : b === "input" || b === "password";
|
|
@@ -2158,21 +2158,21 @@ const Ge = (e) => {
|
|
|
2158
2158
|
var b;
|
|
2159
2159
|
return ((b = C.formItemAttributes) == null ? void 0 : b.type) === g;
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function ne(C) {
|
|
2162
2162
|
var g;
|
|
2163
2163
|
for (let b of s.model.fields) {
|
|
2164
|
-
const
|
|
2165
|
-
if (!(!b.formItemAttributes || b.formItemAttributes.type !== "select" || !
|
|
2166
|
-
const u =
|
|
2164
|
+
const P = (g = b.formItemAttributes) == null ? void 0 : g.selectAttributes;
|
|
2165
|
+
if (!(!b.formItemAttributes || b.formItemAttributes.type !== "select" || !P || !P.queryParamValueField) && P.queryParamValueField === C.prop) {
|
|
2166
|
+
const u = P.api;
|
|
2167
2167
|
if (u) {
|
|
2168
2168
|
let c = u;
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2171
|
-
if (
|
|
2172
|
-
let
|
|
2173
|
-
Array.isArray(
|
|
2174
|
-
value:
|
|
2175
|
-
label:
|
|
2169
|
+
const w = P.queryParamName;
|
|
2170
|
+
w && (c = `${c}?${w}=${r[P.queryParamValueField]}`), Oe(c, "GET", {}).then(({ data: k }) => {
|
|
2171
|
+
if (P) {
|
|
2172
|
+
let B = [];
|
|
2173
|
+
Array.isArray(k.data) ? B = k.data : k.data.list && Array.isArray(k.data.list) && (B = k.data.list), P.options = B.map((Q) => ({
|
|
2174
|
+
value: P.valueMappingField ? Q[P.valueMappingField] : Q.value,
|
|
2175
|
+
label: P.labelMappingField ? Q[P.labelMappingField] : Q.label
|
|
2176
2176
|
}));
|
|
2177
2177
|
}
|
|
2178
2178
|
});
|
|
@@ -2182,12 +2182,12 @@ const Ge = (e) => {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
return t({
|
|
2184
2184
|
refresh: U,
|
|
2185
|
-
reset:
|
|
2186
|
-
submit:
|
|
2185
|
+
reset: D,
|
|
2186
|
+
submit: H,
|
|
2187
2187
|
formData: r
|
|
2188
2188
|
}), (C, g) => {
|
|
2189
|
-
const b =
|
|
2190
|
-
return Tt((p(),
|
|
2189
|
+
const b = $("el-input"), P = $("el-switch"), u = $("el-date-picker"), c = $("el-option"), w = $("el-select"), k = $("el-input-number"), B = $("el-form-item"), Q = $("el-form"), F = Ut("loading");
|
|
2190
|
+
return Tt((p(), I(Q, {
|
|
2191
2191
|
ref_key: "formRef",
|
|
2192
2192
|
ref: a,
|
|
2193
2193
|
model: r,
|
|
@@ -2199,65 +2199,65 @@ const Ge = (e) => {
|
|
|
2199
2199
|
inline: !s.disableInline
|
|
2200
2200
|
}, {
|
|
2201
2201
|
default: m(() => [
|
|
2202
|
-
(p(!0), M(
|
|
2202
|
+
(p(!0), M(oe, null, me(y.value, (h) => (p(), I(B, {
|
|
2203
2203
|
class: "form-item",
|
|
2204
2204
|
style: Re({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2205
2205
|
prop: h.prop,
|
|
2206
|
-
label:
|
|
2206
|
+
label: L(h)
|
|
2207
2207
|
}, {
|
|
2208
2208
|
default: m(() => {
|
|
2209
|
-
var
|
|
2209
|
+
var j, f, x, T, E, X, le, ie, de, se, z, Z, re, pe, he, fe;
|
|
2210
2210
|
return [
|
|
2211
|
-
W("input", h) ? (p(),
|
|
2211
|
+
W("input", h) ? (p(), I(b, {
|
|
2212
2212
|
key: 0,
|
|
2213
2213
|
type: Y(h, "password") ? "password" : "text",
|
|
2214
2214
|
modelValue: r[h.prop],
|
|
2215
2215
|
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2216
|
-
placeholder: (
|
|
2216
|
+
placeholder: (j = h.formItemAttributes) == null ? void 0 : j.placeholder,
|
|
2217
2217
|
disabled: K(h)
|
|
2218
2218
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
|
|
2219
|
-
S(h) ? (p(), M("span", Fs,
|
|
2220
|
-
Y(h, "switch") ? (p(),
|
|
2219
|
+
S(h) ? (p(), M("span", Fs, G(N(h)), 1)) : J("", !0),
|
|
2220
|
+
Y(h, "switch") ? (p(), I(P, {
|
|
2221
2221
|
key: 2,
|
|
2222
2222
|
modelValue: r[h.prop],
|
|
2223
2223
|
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2224
2224
|
disabled: C.mode === "view"
|
|
2225
2225
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : J("", !0),
|
|
2226
|
-
Y(h, "datepicker") ? (p(),
|
|
2226
|
+
Y(h, "datepicker") ? (p(), I(u, {
|
|
2227
2227
|
key: 3,
|
|
2228
2228
|
type: "date",
|
|
2229
2229
|
"value-format": "YYYY-MM-DD",
|
|
2230
2230
|
modelValue: r[h.prop],
|
|
2231
2231
|
"onUpdate:modelValue": (q) => r[h.prop] = q
|
|
2232
2232
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : J("", !0),
|
|
2233
|
-
Y(h, "select") && C.mode !== "view" ? (p(),
|
|
2233
|
+
Y(h, "select") && C.mode !== "view" ? (p(), I(w, {
|
|
2234
2234
|
key: 4,
|
|
2235
|
-
filterable: (
|
|
2236
|
-
"allow-create": (
|
|
2237
|
-
"default-first-option": (
|
|
2235
|
+
filterable: (x = (f = h.formItemAttributes) == null ? void 0 : f.selectAttributes) == null ? void 0 : x.allowCreate,
|
|
2236
|
+
"allow-create": (E = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes) == null ? void 0 : E.allowCreate,
|
|
2237
|
+
"default-first-option": (le = (X = h.formItemAttributes) == null ? void 0 : X.selectAttributes) == null ? void 0 : le.allowCreate,
|
|
2238
2238
|
modelValue: r[h.prop],
|
|
2239
2239
|
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2240
2240
|
disabled: K(h),
|
|
2241
|
-
onChange: (q) =>
|
|
2241
|
+
onChange: (q) => ne(h)
|
|
2242
2242
|
}, {
|
|
2243
2243
|
default: m(() => {
|
|
2244
|
-
var q,
|
|
2244
|
+
var q, R;
|
|
2245
2245
|
return [
|
|
2246
|
-
(p(!0), M(
|
|
2247
|
-
value:
|
|
2248
|
-
label:
|
|
2246
|
+
(p(!0), M(oe, null, me((R = (q = h.formItemAttributes) == null ? void 0 : q.selectAttributes) == null ? void 0 : R.options, (ce) => (p(), I(c, {
|
|
2247
|
+
value: ce.value,
|
|
2248
|
+
label: ce.label
|
|
2249
2249
|
}, null, 8, ["value", "label"]))), 256))
|
|
2250
2250
|
];
|
|
2251
2251
|
}),
|
|
2252
2252
|
_: 2
|
|
2253
2253
|
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : J("", !0),
|
|
2254
|
-
Y(h, "input-number") && C.mode !== "view" ? (p(),
|
|
2254
|
+
Y(h, "input-number") && C.mode !== "view" ? (p(), I(k, {
|
|
2255
2255
|
key: 5,
|
|
2256
2256
|
modelValue: r[h.prop],
|
|
2257
2257
|
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2258
|
-
min: (
|
|
2259
|
-
max: (
|
|
2260
|
-
step: (
|
|
2258
|
+
min: (se = (de = (ie = h.formItemAttributes) == null ? void 0 : ie.inputNumber) == null ? void 0 : de.min) != null ? se : Number.NEGATIVE_INFINITY,
|
|
2259
|
+
max: (re = (Z = (z = h.formItemAttributes) == null ? void 0 : z.inputNumber) == null ? void 0 : Z.max) != null ? re : Number.POSITIVE_INFINITY,
|
|
2260
|
+
step: (fe = (he = (pe = h.formItemAttributes) == null ? void 0 : pe.inputNumber) == null ? void 0 : he.step) != null ? fe : 1,
|
|
2261
2261
|
"value-on-clear": -10
|
|
2262
2262
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : J("", !0)
|
|
2263
2263
|
];
|
|
@@ -2267,7 +2267,7 @@ const Ge = (e) => {
|
|
|
2267
2267
|
]),
|
|
2268
2268
|
_: 1
|
|
2269
2269
|
}, 8, ["model", "rules", "inline"])), [
|
|
2270
|
-
[
|
|
2270
|
+
[F, l.value]
|
|
2271
2271
|
]);
|
|
2272
2272
|
};
|
|
2273
2273
|
}
|
|
@@ -2286,8 +2286,8 @@ const Ge = (e) => {
|
|
|
2286
2286
|
},
|
|
2287
2287
|
emits: ["update:visible", "update:id"],
|
|
2288
2288
|
setup(e, { expose: t, emit: o }) {
|
|
2289
|
-
const { t: n } = We(), s = e, r =
|
|
2290
|
-
|
|
2289
|
+
const { t: n } = We(), s = e, r = V(0), l = o, a = V();
|
|
2290
|
+
$e(() => s.visible, () => {
|
|
2291
2291
|
s.visible && r.value++;
|
|
2292
2292
|
});
|
|
2293
2293
|
function i() {
|
|
@@ -2302,9 +2302,9 @@ const Ge = (e) => {
|
|
|
2302
2302
|
return t({
|
|
2303
2303
|
close: d,
|
|
2304
2304
|
refresh: i
|
|
2305
|
-
}), (
|
|
2306
|
-
const U =
|
|
2307
|
-
return p(),
|
|
2305
|
+
}), (y, A) => {
|
|
2306
|
+
const U = $("el-step"), H = $("el-steps"), D = $("el-button"), L = $("el-dialog");
|
|
2307
|
+
return p(), I(L, {
|
|
2308
2308
|
class: "console-dialog",
|
|
2309
2309
|
title: "Edit",
|
|
2310
2310
|
"align-center": "",
|
|
@@ -2313,35 +2313,35 @@ const Ge = (e) => {
|
|
|
2313
2313
|
onClose: d
|
|
2314
2314
|
}, {
|
|
2315
2315
|
footer: m(() => {
|
|
2316
|
-
var
|
|
2316
|
+
var N;
|
|
2317
2317
|
return [
|
|
2318
2318
|
v("div", {
|
|
2319
2319
|
class: "dialog-footer",
|
|
2320
2320
|
style: Re({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2321
2321
|
}, [
|
|
2322
2322
|
v("div", js, [
|
|
2323
|
-
(p(!0), M(
|
|
2323
|
+
(p(!0), M(oe, null, me((N = s.model.formConfig) == null ? void 0 : N.dialogButtons, (K) => (p(), I(D, {
|
|
2324
2324
|
onClick: (W) => K.function(a.value.formData)
|
|
2325
2325
|
}, {
|
|
2326
2326
|
default: m(() => [
|
|
2327
|
-
|
|
2327
|
+
ee(G(O(n)(K.label)), 1)
|
|
2328
2328
|
]),
|
|
2329
2329
|
_: 2
|
|
2330
2330
|
}, 1032, ["onClick"]))), 256))
|
|
2331
2331
|
]),
|
|
2332
2332
|
v("div", null, [
|
|
2333
|
-
_(
|
|
2333
|
+
_(D, { onClick: d }, {
|
|
2334
2334
|
default: m(() => [
|
|
2335
|
-
|
|
2335
|
+
ee(G(O(n)("common.basic.cancel")), 1)
|
|
2336
2336
|
]),
|
|
2337
2337
|
_: 1
|
|
2338
2338
|
}),
|
|
2339
|
-
_(
|
|
2339
|
+
_(D, {
|
|
2340
2340
|
type: "primary",
|
|
2341
2341
|
onClick: S
|
|
2342
2342
|
}, {
|
|
2343
2343
|
default: m(() => [
|
|
2344
|
-
|
|
2344
|
+
ee(G(O(n)("common.basic.save")), 1)
|
|
2345
2345
|
]),
|
|
2346
2346
|
_: 1
|
|
2347
2347
|
})
|
|
@@ -2353,7 +2353,7 @@ const Ge = (e) => {
|
|
|
2353
2353
|
v("div", Gs, [
|
|
2354
2354
|
_(io, {
|
|
2355
2355
|
class: "form-view",
|
|
2356
|
-
style: Re({ width:
|
|
2356
|
+
style: Re({ width: y.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2357
2357
|
ref_key: "formViewRef",
|
|
2358
2358
|
ref: a,
|
|
2359
2359
|
id: s.id,
|
|
@@ -2364,9 +2364,9 @@ const Ge = (e) => {
|
|
|
2364
2364
|
closeDialogFunc: d,
|
|
2365
2365
|
disableInline: s.showProcess
|
|
2366
2366
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
_(
|
|
2367
|
+
y.showProcess ? (p(), M("div", Ls, [
|
|
2368
|
+
A[0] || (A[0] = v("h1", null, "流程动态", -1)),
|
|
2369
|
+
_(H, {
|
|
2370
2370
|
style: { height: "90%" },
|
|
2371
2371
|
direction: "vertical",
|
|
2372
2372
|
active: 1
|
|
@@ -2390,39 +2390,39 @@ const Ge = (e) => {
|
|
|
2390
2390
|
model: {}
|
|
2391
2391
|
},
|
|
2392
2392
|
setup(e, { expose: t }) {
|
|
2393
|
-
const { t: o } = ot.global, n = e, s =
|
|
2393
|
+
const { t: o } = ot.global, n = e, s = ue([]), r = ue({
|
|
2394
2394
|
showPane: !0
|
|
2395
|
-
}), l =
|
|
2395
|
+
}), l = V(""), a = V(!0), i = V(!1), d = rt(), S = V(""), y = ue([]), A = ue([]), U = V(), H = V([]), D = V("create"), L = V(!0), N = V(!1), K = V(""), W = ue({
|
|
2396
2396
|
pageSize: 10,
|
|
2397
2397
|
pageNo: 1,
|
|
2398
2398
|
totalElements: 0
|
|
2399
2399
|
}), Y = Ne(() => s.filter(
|
|
2400
2400
|
(f) => {
|
|
2401
|
-
var
|
|
2402
|
-
return ((
|
|
2401
|
+
var x, T;
|
|
2402
|
+
return ((x = f.formItemAttributes) == null ? void 0 : x.type) !== "password" && f.visible !== !1 && ((T = f.tableColumnAttributes) == null ? void 0 : T.visible) !== !1;
|
|
2403
2403
|
}
|
|
2404
2404
|
));
|
|
2405
|
-
function
|
|
2406
|
-
var
|
|
2407
|
-
let T =
|
|
2408
|
-
const
|
|
2409
|
-
if (
|
|
2410
|
-
T =
|
|
2405
|
+
function ne(f, x) {
|
|
2406
|
+
var le, ie, de, se;
|
|
2407
|
+
let T = x.row[f.prop];
|
|
2408
|
+
const E = (ie = (le = f.tableColumnAttributes) == null ? void 0 : le.functions) == null ? void 0 : ie.transformValue, X = (de = f.tableColumnAttributes) == null ? void 0 : de.transformValueMappings;
|
|
2409
|
+
if (E)
|
|
2410
|
+
T = E(T);
|
|
2411
2411
|
else if (X && X.length > 0) {
|
|
2412
|
-
for (let
|
|
2413
|
-
if (T ===
|
|
2414
|
-
T = o(
|
|
2412
|
+
for (let z of X)
|
|
2413
|
+
if (T === z.value) {
|
|
2414
|
+
T = o(z.label);
|
|
2415
2415
|
break;
|
|
2416
2416
|
}
|
|
2417
|
-
} else if (((
|
|
2418
|
-
const
|
|
2419
|
-
if (
|
|
2420
|
-
if (
|
|
2421
|
-
T =
|
|
2422
|
-
else if (
|
|
2423
|
-
for (let
|
|
2424
|
-
if (
|
|
2425
|
-
T =
|
|
2417
|
+
} else if (((se = f.formItemAttributes) == null ? void 0 : se.type) === "select") {
|
|
2418
|
+
const z = f.formItemAttributes.selectAttributes;
|
|
2419
|
+
if (z) {
|
|
2420
|
+
if (z.viewModeLabelField)
|
|
2421
|
+
T = x.row[z.viewModeLabelField];
|
|
2422
|
+
else if (z.options && z.options.length > 0) {
|
|
2423
|
+
for (let Z of z.options)
|
|
2424
|
+
if (Z.value === x.row[f.prop]) {
|
|
2425
|
+
T = Z.label;
|
|
2426
2426
|
break;
|
|
2427
2427
|
}
|
|
2428
2428
|
}
|
|
@@ -2430,30 +2430,30 @@ const Ge = (e) => {
|
|
|
2430
2430
|
}
|
|
2431
2431
|
return T;
|
|
2432
2432
|
}
|
|
2433
|
-
function C(f,
|
|
2434
|
-
var T,
|
|
2435
|
-
return f.label ? o(f.label) : (
|
|
2433
|
+
function C(f, x) {
|
|
2434
|
+
var T, E;
|
|
2435
|
+
return f.label ? o(f.label) : (E = (T = f.functions) == null ? void 0 : T.transformLabel) == null ? void 0 : E.call(T, x.$index, x.row);
|
|
2436
2436
|
}
|
|
2437
2437
|
function g(f) {
|
|
2438
2438
|
Ge(n.model), Object.assign(n.model, f);
|
|
2439
2439
|
}
|
|
2440
2440
|
function b() {
|
|
2441
|
-
var
|
|
2442
|
-
if (
|
|
2441
|
+
var x, T, E;
|
|
2442
|
+
if (L.value = !0, !n.model || !n.model.api)
|
|
2443
2443
|
return;
|
|
2444
|
-
Ge(r), r.showPane = !0, Object.assign(r, (
|
|
2444
|
+
Ge(r), r.showPane = !0, Object.assign(r, (x = n.model.tableConfig) != null ? x : {}), s.splice(0, s.length, ...n.model.fields), l.value = (T = n.model.route) != null ? T : "", a.value = (E = n.model.useI18n) != null ? E : !0;
|
|
2445
2445
|
let f = Ye({}, r.queryParams);
|
|
2446
2446
|
f.pageSize = W.pageSize, f.pageNo = W.pageNo, f.search = S.value, Oe(n.model.api, "GET", f).then(({ data: X }) => {
|
|
2447
|
-
const { list:
|
|
2448
|
-
|
|
2447
|
+
const { list: le, totalCount: ie } = X.data;
|
|
2448
|
+
y.splice(0, y.length, ...le), W.totalElements = ie, L.value = !1;
|
|
2449
2449
|
});
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2452
|
-
var f,
|
|
2453
|
-
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (
|
|
2451
|
+
function P() {
|
|
2452
|
+
var f, x;
|
|
2453
|
+
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (x = r.functions) == null || x.create() : (D.value = "create", K.value = "", i.value = !0);
|
|
2454
2454
|
}
|
|
2455
|
-
function u(f,
|
|
2456
|
-
n.model.api && Oe(n.model.api, "DELETE",
|
|
2455
|
+
function u(f, x) {
|
|
2456
|
+
n.model.api && Oe(n.model.api, "DELETE", x.id).then(({ data: T }) => {
|
|
2457
2457
|
T.code === 0 && (i.value = !1, b());
|
|
2458
2458
|
});
|
|
2459
2459
|
}
|
|
@@ -2467,13 +2467,13 @@ const Ge = (e) => {
|
|
|
2467
2467
|
type: "warning"
|
|
2468
2468
|
}
|
|
2469
2469
|
).then(() => {
|
|
2470
|
-
var f,
|
|
2470
|
+
var f, x;
|
|
2471
2471
|
if (((f = r.functions) == null ? void 0 : f.batchDelete) !== void 0)
|
|
2472
|
-
(
|
|
2472
|
+
(x = r.functions) == null || x.batchDelete(H.value);
|
|
2473
2473
|
else {
|
|
2474
|
-
const T =
|
|
2475
|
-
be.delete(`${n.model.api}/${T.join(",")}`).then(({ data:
|
|
2476
|
-
|
|
2474
|
+
const T = H.value.map((E) => E.id);
|
|
2475
|
+
be.delete(`${n.model.api}/${T.join(",")}`).then(({ data: E }) => {
|
|
2476
|
+
E.code === 0 && (i.value = !1, b());
|
|
2477
2477
|
});
|
|
2478
2478
|
}
|
|
2479
2479
|
U.value.clearSelection();
|
|
@@ -2481,55 +2481,55 @@ const Ge = (e) => {
|
|
|
2481
2481
|
U.value.clearSelection();
|
|
2482
2482
|
});
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2484
|
+
function w(f) {
|
|
2485
2485
|
W.pageSize = f, b();
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function k(f) {
|
|
2488
2488
|
W.pageNo = f, b();
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function B(f, x) {
|
|
2491
2491
|
r.editPageRoutePath !== void 0 ? d.push({
|
|
2492
2492
|
path: r.editPageRoutePath,
|
|
2493
2493
|
query: {
|
|
2494
|
-
id:
|
|
2494
|
+
id: x.id
|
|
2495
2495
|
}
|
|
2496
|
-
}) : (K.value =
|
|
2496
|
+
}) : (K.value = x.id, D.value = "update", i.value = !0);
|
|
2497
2497
|
}
|
|
2498
2498
|
function Q() {
|
|
2499
2499
|
let f = window.location.origin + n.model.api + "/export";
|
|
2500
|
-
const
|
|
2501
|
-
|
|
2500
|
+
const x = r.queryParams;
|
|
2501
|
+
x !== void 0 && Object.keys(x).length > 0 && (f += "?", Object.entries(r.queryParams).map((T) => {
|
|
2502
2502
|
f += `${T[0]}=${T[1]}&`;
|
|
2503
2503
|
})), window.open(f);
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2506
|
-
|
|
2505
|
+
function F(f) {
|
|
2506
|
+
H.value = f;
|
|
2507
2507
|
}
|
|
2508
2508
|
function h(f) {
|
|
2509
2509
|
return f.label ? a.value ? o(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2512
|
-
f ? (
|
|
2511
|
+
function j(f) {
|
|
2512
|
+
f ? (N.value = !0, A.splice(0, A.length, ...y), y.splice(0, y.length, ...H.value)) : (N.value = !1, y.splice(0, y.length, ...A));
|
|
2513
2513
|
}
|
|
2514
|
-
return
|
|
2514
|
+
return $e(() => n.model, () => {
|
|
2515
2515
|
b();
|
|
2516
2516
|
}, {
|
|
2517
2517
|
deep: !0,
|
|
2518
2518
|
immediate: !0
|
|
2519
2519
|
}), t({
|
|
2520
|
-
multipleSelection:
|
|
2520
|
+
multipleSelection: H,
|
|
2521
2521
|
refresh: b,
|
|
2522
2522
|
updateConfigAndRefresh: g
|
|
2523
|
-
}), (f,
|
|
2524
|
-
const T =
|
|
2523
|
+
}), (f, x) => {
|
|
2524
|
+
const T = $("el-checkbox"), E = $("el-badge"), X = $("el-button"), le = $("el-icon"), ie = $("el-tooltip"), de = $("el-input"), se = $("el-table-column"), z = $("router-link"), Z = $("el-tag"), re = $("el-popconfirm"), pe = $("el-table"), he = $("el-pagination"), fe = Ut("loading");
|
|
2525
2525
|
return p(), M("div", {
|
|
2526
2526
|
class: Mt({ "table-view-wrapper": r.showPane })
|
|
2527
2527
|
}, [
|
|
2528
2528
|
v("div", zs, [
|
|
2529
2529
|
v("div", qs, [
|
|
2530
|
-
r.selectMode ? (p(),
|
|
2530
|
+
r.selectMode ? (p(), I(E, {
|
|
2531
2531
|
key: 0,
|
|
2532
|
-
value:
|
|
2532
|
+
value: H.value.length,
|
|
2533
2533
|
type: "primary",
|
|
2534
2534
|
class: "selected-badge"
|
|
2535
2535
|
}, {
|
|
@@ -2537,54 +2537,54 @@ const Ge = (e) => {
|
|
|
2537
2537
|
_(T, {
|
|
2538
2538
|
class: "selected-checkbox",
|
|
2539
2539
|
border: !0,
|
|
2540
|
-
label:
|
|
2541
|
-
onChange:
|
|
2540
|
+
label: O(o)("common.table.viewSelected"),
|
|
2541
|
+
onChange: j
|
|
2542
2542
|
}, null, 8, ["label"])
|
|
2543
2543
|
]),
|
|
2544
2544
|
_: 1
|
|
2545
2545
|
}, 8, ["value"])) : J("", !0),
|
|
2546
|
-
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(),
|
|
2546
|
+
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), I(X, {
|
|
2547
2547
|
key: 1,
|
|
2548
2548
|
type: "primary",
|
|
2549
|
-
onClick:
|
|
2549
|
+
onClick: P
|
|
2550
2550
|
}, {
|
|
2551
2551
|
default: m(() => {
|
|
2552
|
-
var q,
|
|
2552
|
+
var q, R;
|
|
2553
2553
|
return [
|
|
2554
|
-
|
|
2554
|
+
ee(G(((q = r.labels) == null ? void 0 : q.create) != null ? O(o)((R = r.labels) == null ? void 0 : R.create) : O(o)("common.table.create")), 1)
|
|
2555
2555
|
];
|
|
2556
2556
|
}),
|
|
2557
2557
|
_: 1
|
|
2558
2558
|
})) : J("", !0),
|
|
2559
|
-
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(),
|
|
2559
|
+
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), I(X, {
|
|
2560
2560
|
key: 2,
|
|
2561
|
-
disabled:
|
|
2561
|
+
disabled: H.value.length == 0,
|
|
2562
2562
|
type: "danger",
|
|
2563
2563
|
plain: "",
|
|
2564
2564
|
onClick: c
|
|
2565
2565
|
}, {
|
|
2566
2566
|
default: m(() => {
|
|
2567
|
-
var q,
|
|
2567
|
+
var q, R;
|
|
2568
2568
|
return [
|
|
2569
|
-
|
|
2569
|
+
ee(G(((q = r.labels) == null ? void 0 : q.delete) != null ? O(o)((R = r.labels) == null ? void 0 : R.delete) : O(o)("common.table.delete")), 1)
|
|
2570
2570
|
];
|
|
2571
2571
|
}),
|
|
2572
2572
|
_: 1
|
|
2573
2573
|
}, 8, ["disabled"])) : J("", !0),
|
|
2574
2574
|
_(X, {
|
|
2575
|
-
icon:
|
|
2575
|
+
icon: O(Ft),
|
|
2576
2576
|
onClick: b
|
|
2577
2577
|
}, null, 8, ["icon"]),
|
|
2578
|
-
r.tooltip ? (p(),
|
|
2578
|
+
r.tooltip ? (p(), I(ie, {
|
|
2579
2579
|
key: 3,
|
|
2580
2580
|
effect: "dark",
|
|
2581
|
-
content:
|
|
2581
|
+
content: O(o)(r.tooltip),
|
|
2582
2582
|
placement: "right"
|
|
2583
2583
|
}, {
|
|
2584
2584
|
default: m(() => [
|
|
2585
|
-
_(
|
|
2585
|
+
_(le, { style: { color: "#8ba74f" } }, {
|
|
2586
2586
|
default: m(() => [
|
|
2587
|
-
_(
|
|
2587
|
+
_(O($o))
|
|
2588
2588
|
]),
|
|
2589
2589
|
_: 1
|
|
2590
2590
|
})
|
|
@@ -2593,30 +2593,30 @@ const Ge = (e) => {
|
|
|
2593
2593
|
}, 8, ["content"])) : J("", !0)
|
|
2594
2594
|
]),
|
|
2595
2595
|
v("div", Bs, [
|
|
2596
|
-
r.export ? (p(),
|
|
2596
|
+
r.export ? (p(), I(X, {
|
|
2597
2597
|
key: 0,
|
|
2598
2598
|
class: "button-export",
|
|
2599
2599
|
onClick: Q
|
|
2600
2600
|
}, {
|
|
2601
2601
|
default: m(() => [
|
|
2602
|
-
_(
|
|
2602
|
+
_(le, null, {
|
|
2603
2603
|
default: m(() => [
|
|
2604
|
-
_(
|
|
2604
|
+
_(O(xo))
|
|
2605
2605
|
]),
|
|
2606
2606
|
_: 1
|
|
2607
2607
|
})
|
|
2608
2608
|
]),
|
|
2609
2609
|
_: 1
|
|
2610
2610
|
})) : J("", !0),
|
|
2611
|
-
_(
|
|
2612
|
-
placeholder: `${
|
|
2611
|
+
_(de, {
|
|
2612
|
+
placeholder: `${O(o)("common.table.search")}...`,
|
|
2613
2613
|
modelValue: S.value,
|
|
2614
|
-
"onUpdate:modelValue":
|
|
2614
|
+
"onUpdate:modelValue": x[0] || (x[0] = (q) => S.value = q)
|
|
2615
2615
|
}, {
|
|
2616
2616
|
append: m(() => [
|
|
2617
2617
|
_(X, {
|
|
2618
2618
|
style: { "margin-left": "-20px" },
|
|
2619
|
-
icon:
|
|
2619
|
+
icon: O(Dt),
|
|
2620
2620
|
onClick: b
|
|
2621
2621
|
}, null, 8, ["icon"])
|
|
2622
2622
|
]),
|
|
@@ -2624,55 +2624,55 @@ const Ge = (e) => {
|
|
|
2624
2624
|
}, 8, ["placeholder", "modelValue"])
|
|
2625
2625
|
])
|
|
2626
2626
|
]),
|
|
2627
|
-
Tt((p(),
|
|
2627
|
+
Tt((p(), I(pe, {
|
|
2628
2628
|
border: !0,
|
|
2629
2629
|
ref_key: "tableRef",
|
|
2630
2630
|
ref: U,
|
|
2631
|
-
data:
|
|
2632
|
-
onSelectionChange:
|
|
2631
|
+
data: y,
|
|
2632
|
+
onSelectionChange: F,
|
|
2633
2633
|
class: "table"
|
|
2634
2634
|
}, {
|
|
2635
2635
|
default: m(() => {
|
|
2636
2636
|
var q;
|
|
2637
2637
|
return [
|
|
2638
|
-
r.readOnly ? J("", !0) : (p(),
|
|
2638
|
+
r.readOnly ? J("", !0) : (p(), I(se, {
|
|
2639
2639
|
key: 0,
|
|
2640
2640
|
type: "selection",
|
|
2641
2641
|
width: "50"
|
|
2642
2642
|
})),
|
|
2643
|
-
(p(!0), M(
|
|
2644
|
-
var
|
|
2645
|
-
return p(),
|
|
2646
|
-
prop:
|
|
2647
|
-
label: h(
|
|
2648
|
-
width: (
|
|
2643
|
+
(p(!0), M(oe, null, me(Y.value, (R) => {
|
|
2644
|
+
var ce;
|
|
2645
|
+
return p(), I(se, {
|
|
2646
|
+
prop: R.prop,
|
|
2647
|
+
label: h(R),
|
|
2648
|
+
width: (ce = R.tableColumnAttributes) == null ? void 0 : ce.width,
|
|
2649
2649
|
"show-overflow-tooltip": ""
|
|
2650
2650
|
}, {
|
|
2651
|
-
default: m((
|
|
2651
|
+
default: m((Ee) => {
|
|
2652
2652
|
var Pe, Le, bt;
|
|
2653
2653
|
return [
|
|
2654
|
-
(Pe =
|
|
2654
|
+
(Pe = R.tableColumnAttributes) != null && Pe.link ? (p(), I(z, {
|
|
2655
2655
|
key: 0,
|
|
2656
2656
|
class: "router-link",
|
|
2657
|
-
to: `/${l.value}/detail?id=${
|
|
2657
|
+
to: `/${l.value}/detail?id=${Ee.row.id}`
|
|
2658
2658
|
}, {
|
|
2659
2659
|
default: m(() => [
|
|
2660
|
-
v("span", null,
|
|
2660
|
+
v("span", null, G(ne(R, Ee)), 1)
|
|
2661
2661
|
]),
|
|
2662
2662
|
_: 2
|
|
2663
|
-
}, 1032, ["to"])) : (Le =
|
|
2663
|
+
}, 1032, ["to"])) : (Le = R.tableColumnAttributes) != null && Le.routerLink ? (p(), I(z, {
|
|
2664
2664
|
key: 1,
|
|
2665
2665
|
class: "router-link",
|
|
2666
|
-
to:
|
|
2666
|
+
to: R.tableColumnAttributes.routerLink.replace("{id}", Ee.row.id)
|
|
2667
2667
|
}, {
|
|
2668
2668
|
default: m(() => [
|
|
2669
|
-
v("span", null,
|
|
2669
|
+
v("span", null, G(ne(R, Ee)), 1)
|
|
2670
2670
|
]),
|
|
2671
2671
|
_: 2
|
|
2672
|
-
}, 1032, ["to"])) : (p(), M("span", Hs,
|
|
2673
|
-
((bt =
|
|
2672
|
+
}, 1032, ["to"])) : (p(), M("span", Hs, G(ne(R, Ee)), 1)),
|
|
2673
|
+
((bt = R.tableColumnAttributes) == null ? void 0 : bt.type) === "tag" ? (p(), I(Z, { key: 3 }, {
|
|
2674
2674
|
default: m(() => [
|
|
2675
|
-
|
|
2675
|
+
ee(G(Ee.row[R.prop]), 1)
|
|
2676
2676
|
]),
|
|
2677
2677
|
_: 2
|
|
2678
2678
|
}, 1024)) : J("", !0)
|
|
@@ -2681,37 +2681,37 @@ const Ge = (e) => {
|
|
|
2681
2681
|
_: 2
|
|
2682
2682
|
}, 1032, ["prop", "label", "width"]);
|
|
2683
2683
|
}), 256)),
|
|
2684
|
-
r.operations === void 0 && !((q = r.selectMode) != null && q) && !r.readOnly ? (p(),
|
|
2684
|
+
r.operations === void 0 && !((q = r.selectMode) != null && q) && !r.readOnly ? (p(), I(se, {
|
|
2685
2685
|
key: 1,
|
|
2686
|
-
label:
|
|
2686
|
+
label: O(o)("common.table.operation"),
|
|
2687
2687
|
width: "120"
|
|
2688
2688
|
}, {
|
|
2689
|
-
default: m((
|
|
2690
|
-
r.updatable !== !1 ? (p(),
|
|
2689
|
+
default: m((R) => [
|
|
2690
|
+
r.updatable !== !1 ? (p(), I(X, {
|
|
2691
2691
|
key: 0,
|
|
2692
2692
|
link: "",
|
|
2693
2693
|
type: "primary",
|
|
2694
2694
|
class: "operation-button",
|
|
2695
|
-
onClick: (
|
|
2695
|
+
onClick: (ce) => B(R.$index, R.row)
|
|
2696
2696
|
}, {
|
|
2697
2697
|
default: m(() => [
|
|
2698
|
-
|
|
2698
|
+
ee(G(O(o)("common.table.edit")), 1)
|
|
2699
2699
|
]),
|
|
2700
2700
|
_: 2
|
|
2701
2701
|
}, 1032, ["onClick"])) : J("", !0),
|
|
2702
|
-
_(
|
|
2702
|
+
_(re, {
|
|
2703
2703
|
title: "Are you sure to delete this?",
|
|
2704
|
-
onConfirm: (
|
|
2704
|
+
onConfirm: (ce) => u(R.$index, R.row)
|
|
2705
2705
|
}, {
|
|
2706
2706
|
reference: m(() => [
|
|
2707
|
-
r.deletable !== !1 ? (p(),
|
|
2707
|
+
r.deletable !== !1 ? (p(), I(X, {
|
|
2708
2708
|
key: 0,
|
|
2709
2709
|
link: "",
|
|
2710
2710
|
type: "primary",
|
|
2711
2711
|
class: "operation-button"
|
|
2712
2712
|
}, {
|
|
2713
2713
|
default: m(() => [
|
|
2714
|
-
|
|
2714
|
+
ee(G(O(o)("common.table.delete")), 1)
|
|
2715
2715
|
]),
|
|
2716
2716
|
_: 1
|
|
2717
2717
|
})) : J("", !0)
|
|
@@ -2721,24 +2721,24 @@ const Ge = (e) => {
|
|
|
2721
2721
|
]),
|
|
2722
2722
|
_: 1
|
|
2723
2723
|
}, 8, ["label"])) : J("", !0),
|
|
2724
|
-
r.operations !== void 0 && !r.readOnly ? (p(),
|
|
2724
|
+
r.operations !== void 0 && !r.readOnly ? (p(), I(se, {
|
|
2725
2725
|
key: 2,
|
|
2726
|
-
label:
|
|
2726
|
+
label: O(o)("common.table.operation"),
|
|
2727
2727
|
width: "120"
|
|
2728
2728
|
}, {
|
|
2729
|
-
default: m((
|
|
2730
|
-
(p(!0), M(
|
|
2729
|
+
default: m((R) => [
|
|
2730
|
+
(p(!0), M(oe, null, me(r.operations, (ce) => (p(), I(X, {
|
|
2731
2731
|
class: "operation-button",
|
|
2732
2732
|
link: "",
|
|
2733
2733
|
type: "primary",
|
|
2734
|
-
key:
|
|
2735
|
-
onClick: (
|
|
2734
|
+
key: ce.label,
|
|
2735
|
+
onClick: (Ee) => {
|
|
2736
2736
|
var Pe, Le;
|
|
2737
|
-
return ((Le = (Pe =
|
|
2737
|
+
return ((Le = (Pe = ce.functions) == null ? void 0 : Pe.click) == null ? void 0 : Le.call(Pe, R.$index, R.row)) && b();
|
|
2738
2738
|
}
|
|
2739
2739
|
}, {
|
|
2740
2740
|
default: m(() => [
|
|
2741
|
-
|
|
2741
|
+
ee(G(C(ce, R)), 1)
|
|
2742
2742
|
]),
|
|
2743
2743
|
_: 2
|
|
2744
2744
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -2749,16 +2749,16 @@ const Ge = (e) => {
|
|
|
2749
2749
|
}),
|
|
2750
2750
|
_: 1
|
|
2751
2751
|
}, 8, ["data"])), [
|
|
2752
|
-
[
|
|
2752
|
+
[fe, L.value]
|
|
2753
2753
|
]),
|
|
2754
|
-
|
|
2754
|
+
N.value ? J("", !0) : (p(), I(he, {
|
|
2755
2755
|
key: 0,
|
|
2756
2756
|
size: "small",
|
|
2757
2757
|
background: "",
|
|
2758
|
-
onSizeChange:
|
|
2759
|
-
onCurrentChange:
|
|
2758
|
+
onSizeChange: w,
|
|
2759
|
+
onCurrentChange: k,
|
|
2760
2760
|
currentPage: W.pageNo,
|
|
2761
|
-
"onUpdate:currentPage":
|
|
2761
|
+
"onUpdate:currentPage": x[1] || (x[1] = (q) => W.pageNo = q),
|
|
2762
2762
|
"page-sizes": [10, 20, 50, 100],
|
|
2763
2763
|
"page-size": W.pageSize,
|
|
2764
2764
|
layout: "total, sizes, prev, pager, next",
|
|
@@ -2766,27 +2766,27 @@ const Ge = (e) => {
|
|
|
2766
2766
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
2767
2767
|
_(co, {
|
|
2768
2768
|
model: f.model,
|
|
2769
|
-
mode:
|
|
2769
|
+
mode: D.value,
|
|
2770
2770
|
id: K.value,
|
|
2771
2771
|
afterSubmitFunc: b,
|
|
2772
2772
|
visible: i.value,
|
|
2773
|
-
"onUpdate:visible":
|
|
2773
|
+
"onUpdate:visible": x[2] || (x[2] = (q) => i.value = q)
|
|
2774
2774
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
2775
2775
|
], 2);
|
|
2776
2776
|
};
|
|
2777
2777
|
}
|
|
2778
|
-
}), st = /* @__PURE__ */ ve(Js, [["__scopeId", "data-v-7706e5a0"]]), Ws = { class: "nav-bar" }, Ys = {
|
|
2778
|
+
}), st = /* @__PURE__ */ ve(Js, [["__scopeId", "data-v-7706e5a0"]]), Ws = { class: "nav-bar" }, Ys = { style: { "font-size": "16px" } }, Qs = {
|
|
2779
2779
|
key: 0,
|
|
2780
2780
|
class: "info-card-wrapper"
|
|
2781
|
-
},
|
|
2781
|
+
}, Ks = { class: "icon-wrapper" }, Xs = { class: "info-wrapper" }, Zs = { class: "title-wrapper" }, er = { class: "tabs-wrapper" }, tr = { class: "dialog-footer" }, or = /* @__PURE__ */ we({
|
|
2782
2782
|
__name: "DetailPage",
|
|
2783
2783
|
setup(e) {
|
|
2784
|
-
const { t } = We(), o = Je(), n = rt(), s = Ne(() => o.query.id), r =
|
|
2784
|
+
const { t } = We(), o = Je(), n = rt(), s = Ne(() => o.query.id), r = V(!1), l = V(!1), a = V("view"), i = V(), d = V(-1), S = V(), y = V(), A = V("summary"), U = V(""), H = V(""), D = V(""), L = V(0), N = ue({
|
|
2785
2785
|
api: "",
|
|
2786
2786
|
fields: []
|
|
2787
|
-
}), K =
|
|
2787
|
+
}), K = ue([]);
|
|
2788
2788
|
let W = [];
|
|
2789
|
-
|
|
2789
|
+
$e([
|
|
2790
2790
|
() => n.currentRoute.value,
|
|
2791
2791
|
ge
|
|
2792
2792
|
], () => {
|
|
@@ -2798,54 +2798,54 @@ const Ge = (e) => {
|
|
|
2798
2798
|
function Y(u) {
|
|
2799
2799
|
d.value = parseInt(u.index) - 1;
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2802
|
-
var
|
|
2803
|
-
let u = (
|
|
2801
|
+
function ne() {
|
|
2802
|
+
var k;
|
|
2803
|
+
let u = (k = W[d.value].api) == null ? void 0 : k.replace("/select", "");
|
|
2804
2804
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
2805
|
-
const c =
|
|
2806
|
-
Oe(c, "POST",
|
|
2805
|
+
const c = N.api + "/" + s.value + u, w = y.value.multipleSelection.map((B) => B.id);
|
|
2806
|
+
Oe(c, "POST", w).then(() => {
|
|
2807
2807
|
S.value.refresh(), l.value = !1;
|
|
2808
2808
|
});
|
|
2809
2809
|
}
|
|
2810
|
-
function C(u, c,
|
|
2810
|
+
function C(u, c, w) {
|
|
2811
2811
|
var Q;
|
|
2812
|
-
|
|
2813
|
-
l.value = !0,
|
|
2812
|
+
w.functions || (w.functions = {}), w.functions.create = () => {
|
|
2813
|
+
l.value = !0, y.value && y.value.refresh();
|
|
2814
2814
|
};
|
|
2815
|
-
let
|
|
2816
|
-
|
|
2817
|
-
for (var
|
|
2818
|
-
|
|
2819
|
-
W.push(
|
|
2815
|
+
let k = Fe(c);
|
|
2816
|
+
k.tableConfig || (k.tableConfig = {}), k.tableConfig.selectMode = !0, k.tableConfig.queryParams = {}, u.queryParamName && (k.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
2817
|
+
for (var B in k.fields)
|
|
2818
|
+
k.fields[B].tableColumnAttributes && (Q = k.fields[B].tableColumnAttributes) != null && Q.link && (k.fields[B].tableColumnAttributes.link = !1);
|
|
2819
|
+
W.push(k), w.labels = {
|
|
2820
2820
|
create: "common.table.add",
|
|
2821
2821
|
delete: "common.table.remove"
|
|
2822
|
-
},
|
|
2823
|
-
var
|
|
2824
|
-
let h = (
|
|
2822
|
+
}, w.functions.batchDelete = (F) => {
|
|
2823
|
+
var x;
|
|
2824
|
+
let h = (x = W[d.value].api) == null ? void 0 : x.replace("/select", "");
|
|
2825
2825
|
h = h == null ? void 0 : h.substring(h.lastIndexOf("/"));
|
|
2826
|
-
const
|
|
2827
|
-
be.delete(`${
|
|
2826
|
+
const j = N.api + "/" + s.value + h, f = F.map((T) => T.id);
|
|
2827
|
+
be.delete(`${j}/${f.join(",")}`).then(({ data: T }) => {
|
|
2828
2828
|
T.code === 0 && S.value.refresh();
|
|
2829
2829
|
});
|
|
2830
|
-
},
|
|
2830
|
+
}, w.operations = [
|
|
2831
2831
|
{
|
|
2832
2832
|
label: "common.table.remove",
|
|
2833
2833
|
functions: {
|
|
2834
|
-
click: (
|
|
2835
|
-
var
|
|
2836
|
-
let
|
|
2837
|
-
|
|
2838
|
-
const f =
|
|
2834
|
+
click: (F, h) => {
|
|
2835
|
+
var x;
|
|
2836
|
+
let j = (x = W[d.value].api) == null ? void 0 : x.replace("/select", "");
|
|
2837
|
+
j = j == null ? void 0 : j.substring(j.lastIndexOf("/"));
|
|
2838
|
+
const f = N.api + "/" + s.value + j;
|
|
2839
2839
|
Oe(f, "DELETE", h.id).then(() => {
|
|
2840
2840
|
S.value.refresh();
|
|
2841
2841
|
});
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
|
-
],
|
|
2845
|
+
], k.api += "/select";
|
|
2846
2846
|
}
|
|
2847
2847
|
function g() {
|
|
2848
|
-
var
|
|
2848
|
+
var k, B, Q;
|
|
2849
2849
|
K.splice(0);
|
|
2850
2850
|
const u = o.params.model;
|
|
2851
2851
|
if (ge.value[u] === void 0) {
|
|
@@ -2853,35 +2853,35 @@ const Ge = (e) => {
|
|
|
2853
2853
|
return;
|
|
2854
2854
|
} else
|
|
2855
2855
|
console.debug("Detail page model found:", u, ge.value[u]);
|
|
2856
|
-
Ge(
|
|
2856
|
+
Ge(N);
|
|
2857
2857
|
const c = Fe(ge.value[u]);
|
|
2858
|
-
Object.assign(
|
|
2859
|
-
const
|
|
2860
|
-
if (
|
|
2861
|
-
for (let
|
|
2862
|
-
const h = Fe(ge.value[
|
|
2863
|
-
if (K.push(h),
|
|
2858
|
+
Object.assign(N, c), L.value++, d.value = -1, A.value = "summary";
|
|
2859
|
+
const w = (B = (k = N.pageConfig) == null ? void 0 : k.detailPage) == null ? void 0 : B.tabs;
|
|
2860
|
+
if (w)
|
|
2861
|
+
for (let F of w) {
|
|
2862
|
+
const h = Fe(ge.value[F.modelKey]);
|
|
2863
|
+
if (K.push(h), F.type === "table") {
|
|
2864
2864
|
h.tableConfig || (h.tableConfig = {});
|
|
2865
|
-
let
|
|
2866
|
-
|
|
2865
|
+
let j = h.tableConfig;
|
|
2866
|
+
j.showPane = !1, F.modelRelationType === "associated" ? C(F, h, j) : F.modelRelationType === "child" && (W.push({
|
|
2867
2867
|
fields: []
|
|
2868
|
-
}), h.formConfig === void 0 && (h.formConfig = {}), h.formConfig.functions === void 0 && (h.formConfig.functions = {}),
|
|
2869
|
-
f[
|
|
2870
|
-
})),
|
|
2871
|
-
var
|
|
2872
|
-
return (
|
|
2873
|
-
})),
|
|
2874
|
-
var
|
|
2875
|
-
return !((
|
|
2876
|
-
})),
|
|
2868
|
+
}), h.formConfig === void 0 && (h.formConfig = {}), h.formConfig.functions === void 0 && (h.formConfig.functions = {}), F.queryParamName && (h.formConfig.functions.beforeSubmit = (f) => {
|
|
2869
|
+
f[F.queryParamName] = s.value;
|
|
2870
|
+
})), j.queryParams || (j.queryParams = {}), F.queryParamName && (j.queryParams[F.queryParamName] = s.value), F.queryParams && Object.assign(j.queryParams, F.queryParams), j.readOnly = (Q = F.readOnly) != null ? Q : !1, F.includeFields && (h.fields = h.fields.filter((f) => {
|
|
2871
|
+
var x;
|
|
2872
|
+
return (x = F.includeFields) == null ? void 0 : x.includes(f.prop);
|
|
2873
|
+
})), F.excludeFields && (h.fields = h.fields.filter((f) => {
|
|
2874
|
+
var x;
|
|
2875
|
+
return !((x = F.excludeFields) != null && x.includes(f.prop));
|
|
2876
|
+
})), F.tooltip && (j.tooltip = F.tooltip);
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
2879
|
}
|
|
2880
|
-
|
|
2880
|
+
$e(
|
|
2881
2881
|
[
|
|
2882
2882
|
() => {
|
|
2883
2883
|
var u, c;
|
|
2884
|
-
return (c = (u =
|
|
2884
|
+
return (c = (u = N.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
|
|
2885
2885
|
},
|
|
2886
2886
|
() => {
|
|
2887
2887
|
var u;
|
|
@@ -2890,13 +2890,13 @@ const Ge = (e) => {
|
|
|
2890
2890
|
],
|
|
2891
2891
|
(u) => {
|
|
2892
2892
|
ze(() => {
|
|
2893
|
-
var
|
|
2894
|
-
const c = (
|
|
2895
|
-
c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "",
|
|
2896
|
-
var
|
|
2893
|
+
var w, k, B;
|
|
2894
|
+
const c = (k = (w = N.pageConfig) == null ? void 0 : w.detailPage) == null ? void 0 : k.infoCard;
|
|
2895
|
+
c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", H.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", D.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (B = N.fields) == null || B.forEach((Q) => {
|
|
2896
|
+
var F, h;
|
|
2897
2897
|
if (Q.prop === c.tagFieldProp) {
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2898
|
+
const j = (h = (F = Q.tableColumnAttributes) == null ? void 0 : F.functions) == null ? void 0 : h.transformValue;
|
|
2899
|
+
j && (D.value = j(D.value));
|
|
2900
2900
|
}
|
|
2901
2901
|
}));
|
|
2902
2902
|
});
|
|
@@ -2909,70 +2909,59 @@ const Ge = (e) => {
|
|
|
2909
2909
|
function b() {
|
|
2910
2910
|
r.value = !0;
|
|
2911
2911
|
}
|
|
2912
|
-
function
|
|
2912
|
+
function P() {
|
|
2913
2913
|
i.value.refresh();
|
|
2914
2914
|
}
|
|
2915
2915
|
return (u, c) => {
|
|
2916
|
-
var
|
|
2917
|
-
const
|
|
2918
|
-
return p(), M(
|
|
2916
|
+
var E, X, le, ie, de, se;
|
|
2917
|
+
const w = $("el-page-header"), k = $("el-button"), B = $("el-icon"), Q = $("el-dropdown-item"), F = $("el-dropdown-menu"), h = $("el-dropdown"), j = $("el-tag"), f = $("el-tab-pane"), x = $("el-tabs"), T = $("el-dialog");
|
|
2918
|
+
return p(), M(oe, null, [
|
|
2919
2919
|
v("div", Ws, [
|
|
2920
|
-
_(
|
|
2921
|
-
|
|
2922
|
-
|
|
2920
|
+
_(w, {
|
|
2921
|
+
onClick: c[0] || (c[0] = (z) => O(n).back())
|
|
2922
|
+
}, {
|
|
2923
|
+
title: m(() => c[5] || (c[5] = [
|
|
2924
|
+
v("span", null, null, -1)
|
|
2925
|
+
])),
|
|
2926
|
+
content: m(() => {
|
|
2927
|
+
var z;
|
|
2923
2928
|
return [
|
|
2924
|
-
|
|
2925
|
-
to: { path: `/${(te = (H = I == null ? void 0 : I.breadcrumbRoute) != null ? H : I == null ? void 0 : I.route) != null ? te : ""}` }
|
|
2926
|
-
}, {
|
|
2927
|
-
default: m(() => {
|
|
2928
|
-
var ne;
|
|
2929
|
-
return [
|
|
2930
|
-
Z(D(k(t)((ne = I == null ? void 0 : I.name) != null ? ne : "")), 1)
|
|
2931
|
-
];
|
|
2932
|
-
}),
|
|
2933
|
-
_: 1
|
|
2934
|
-
}, 8, ["to"]),
|
|
2935
|
-
_(y, null, {
|
|
2936
|
-
default: m(() => [
|
|
2937
|
-
Z(D(k(t)("common.basic.detail")), 1)
|
|
2938
|
-
]),
|
|
2939
|
-
_: 1
|
|
2940
|
-
})
|
|
2929
|
+
v("span", Ys, G(O(t)((z = N == null ? void 0 : N.name) != null ? z : "")), 1)
|
|
2941
2930
|
];
|
|
2942
2931
|
}),
|
|
2943
2932
|
_: 1
|
|
2944
2933
|
}),
|
|
2945
2934
|
v("div", null, [
|
|
2946
|
-
_(
|
|
2935
|
+
_(k, {
|
|
2947
2936
|
type: "primary",
|
|
2948
2937
|
onClick: b
|
|
2949
2938
|
}, {
|
|
2950
2939
|
default: m(() => [
|
|
2951
|
-
|
|
2940
|
+
ee(G(O(t)("common.table.edit")), 1)
|
|
2952
2941
|
]),
|
|
2953
2942
|
_: 1
|
|
2954
2943
|
}),
|
|
2955
|
-
_(
|
|
2944
|
+
_(k, {
|
|
2956
2945
|
type: "danger",
|
|
2957
2946
|
plain: "",
|
|
2958
2947
|
disabled: ""
|
|
2959
2948
|
}, {
|
|
2960
2949
|
default: m(() => [
|
|
2961
|
-
|
|
2950
|
+
ee(G(O(t)("common.table.delete")), 1)
|
|
2962
2951
|
]),
|
|
2963
2952
|
_: 1
|
|
2964
2953
|
}),
|
|
2965
|
-
((
|
|
2954
|
+
((X = (E = N.pageConfig) == null ? void 0 : E.detailPage) == null ? void 0 : X.operationButtons) !== void 0 ? (p(), I(h, { key: 0 }, {
|
|
2966
2955
|
dropdown: m(() => [
|
|
2967
|
-
_(
|
|
2956
|
+
_(F, null, {
|
|
2968
2957
|
default: m(() => {
|
|
2969
|
-
var
|
|
2958
|
+
var z, Z;
|
|
2970
2959
|
return [
|
|
2971
|
-
(p(!0), M(
|
|
2972
|
-
onClick: (
|
|
2960
|
+
(p(!0), M(oe, null, me((Z = (z = N.pageConfig) == null ? void 0 : z.detailPage) == null ? void 0 : Z.operationButtons, (re) => (p(), I(Q, {
|
|
2961
|
+
onClick: (pe) => re.function(i.value.formData)
|
|
2973
2962
|
}, {
|
|
2974
2963
|
default: m(() => [
|
|
2975
|
-
|
|
2964
|
+
ee(G(O(t)(re.label)), 1)
|
|
2976
2965
|
]),
|
|
2977
2966
|
_: 2
|
|
2978
2967
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2982,12 +2971,12 @@ const Ge = (e) => {
|
|
|
2982
2971
|
})
|
|
2983
2972
|
]),
|
|
2984
2973
|
default: m(() => [
|
|
2985
|
-
_(
|
|
2974
|
+
_(k, { style: { margin: "0 10px" } }, {
|
|
2986
2975
|
default: m(() => [
|
|
2987
|
-
|
|
2988
|
-
_(
|
|
2976
|
+
ee(G(O(t)("common.basic.more")), 1),
|
|
2977
|
+
_(B, { class: "el-icon--right" }, {
|
|
2989
2978
|
default: m(() => [
|
|
2990
|
-
_(
|
|
2979
|
+
_(O(Eo))
|
|
2991
2980
|
]),
|
|
2992
2981
|
_: 1
|
|
2993
2982
|
})
|
|
@@ -2997,43 +2986,43 @@ const Ge = (e) => {
|
|
|
2997
2986
|
]),
|
|
2998
2987
|
_: 1
|
|
2999
2988
|
})) : J("", !0),
|
|
3000
|
-
_(
|
|
3001
|
-
icon:
|
|
3002
|
-
onClick:
|
|
2989
|
+
_(k, {
|
|
2990
|
+
icon: O(Ft),
|
|
2991
|
+
onClick: P
|
|
3003
2992
|
}, null, 8, ["icon"])
|
|
3004
2993
|
])
|
|
3005
2994
|
]),
|
|
3006
|
-
(
|
|
3007
|
-
v("div", Qs, [
|
|
3008
|
-
(p(), V(tt((ae = I.pageConfig.detailPage.infoCard.icon) != null ? ae : ""), { class: "icon" }))
|
|
3009
|
-
]),
|
|
2995
|
+
(ie = (le = N.pageConfig) == null ? void 0 : le.detailPage) != null && ie.infoCard ? (p(), M("div", Qs, [
|
|
3010
2996
|
v("div", Ks, [
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
2997
|
+
(p(), I(tt((de = N.pageConfig.detailPage.infoCard.icon) != null ? de : ""), { class: "icon" }))
|
|
2998
|
+
]),
|
|
2999
|
+
v("div", Xs, [
|
|
3000
|
+
v("div", Zs, [
|
|
3001
|
+
v("h1", null, G(U.value), 1),
|
|
3002
|
+
((se = D.value) == null ? void 0 : se.length) > 0 ? (p(), I(j, {
|
|
3014
3003
|
key: 0,
|
|
3015
3004
|
size: "small"
|
|
3016
3005
|
}, {
|
|
3017
3006
|
default: m(() => [
|
|
3018
|
-
|
|
3007
|
+
ee(G(D.value), 1)
|
|
3019
3008
|
]),
|
|
3020
3009
|
_: 1
|
|
3021
3010
|
})) : J("", !0)
|
|
3022
3011
|
]),
|
|
3023
|
-
v("span", null,
|
|
3012
|
+
v("span", null, G(H.value), 1)
|
|
3024
3013
|
])
|
|
3025
3014
|
])) : J("", !0),
|
|
3026
|
-
v("div",
|
|
3027
|
-
_(
|
|
3028
|
-
modelValue:
|
|
3029
|
-
"onUpdate:modelValue": c[
|
|
3015
|
+
v("div", er, [
|
|
3016
|
+
_(x, {
|
|
3017
|
+
modelValue: A.value,
|
|
3018
|
+
"onUpdate:modelValue": c[1] || (c[1] = (z) => A.value = z),
|
|
3030
3019
|
onTabClick: Y
|
|
3031
3020
|
}, {
|
|
3032
3021
|
default: m(() => {
|
|
3033
|
-
var
|
|
3022
|
+
var z, Z;
|
|
3034
3023
|
return [
|
|
3035
|
-
_(
|
|
3036
|
-
label:
|
|
3024
|
+
_(f, {
|
|
3025
|
+
label: O(t)("common.basic.summary"),
|
|
3037
3026
|
name: "summary"
|
|
3038
3027
|
}, {
|
|
3039
3028
|
default: m(() => [
|
|
@@ -3041,62 +3030,62 @@ const Ge = (e) => {
|
|
|
3041
3030
|
ref_key: "formViewRef",
|
|
3042
3031
|
ref: i,
|
|
3043
3032
|
id: s.value,
|
|
3044
|
-
sessionId:
|
|
3033
|
+
sessionId: L.value,
|
|
3045
3034
|
mode: a.value,
|
|
3046
|
-
model:
|
|
3035
|
+
model: N
|
|
3047
3036
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
3048
3037
|
]),
|
|
3049
3038
|
_: 1
|
|
3050
3039
|
}, 8, ["label"]),
|
|
3051
|
-
(p(!0), M(
|
|
3052
|
-
var
|
|
3053
|
-
return p(),
|
|
3054
|
-
label:
|
|
3040
|
+
(p(!0), M(oe, null, me((Z = (z = N.pageConfig) == null ? void 0 : z.detailPage) == null ? void 0 : Z.tabs, (re) => {
|
|
3041
|
+
var pe;
|
|
3042
|
+
return p(), I(f, {
|
|
3043
|
+
label: O(t)((pe = re.name) != null ? pe : "")
|
|
3055
3044
|
}, null, 8, ["label"]);
|
|
3056
3045
|
}), 256))
|
|
3057
3046
|
];
|
|
3058
3047
|
}),
|
|
3059
3048
|
_: 1
|
|
3060
3049
|
}, 8, ["modelValue"]),
|
|
3061
|
-
d.value >= 0 ? (p(),
|
|
3050
|
+
d.value >= 0 ? (p(), I(st, {
|
|
3062
3051
|
key: 0,
|
|
3063
3052
|
ref_key: "tabPaneTableRef",
|
|
3064
3053
|
ref: S,
|
|
3065
3054
|
model: K[d.value]
|
|
3066
3055
|
}, null, 8, ["model"])) : J("", !0),
|
|
3067
|
-
_(
|
|
3056
|
+
_(T, {
|
|
3068
3057
|
modelValue: l.value,
|
|
3069
|
-
"onUpdate:modelValue": c[
|
|
3070
|
-
title:
|
|
3058
|
+
"onUpdate:modelValue": c[3] || (c[3] = (z) => l.value = z),
|
|
3059
|
+
title: O(t)("common.table.select"),
|
|
3071
3060
|
width: "800px"
|
|
3072
3061
|
}, {
|
|
3073
3062
|
footer: m(() => [
|
|
3074
|
-
v("span",
|
|
3075
|
-
_(
|
|
3076
|
-
onClick: c[
|
|
3063
|
+
v("span", tr, [
|
|
3064
|
+
_(k, {
|
|
3065
|
+
onClick: c[2] || (c[2] = (z) => l.value = !1)
|
|
3077
3066
|
}, {
|
|
3078
3067
|
default: m(() => [
|
|
3079
|
-
|
|
3068
|
+
ee(G(O(t)("common.basic.cancel")), 1)
|
|
3080
3069
|
]),
|
|
3081
3070
|
_: 1
|
|
3082
3071
|
}),
|
|
3083
|
-
_(
|
|
3072
|
+
_(k, {
|
|
3084
3073
|
type: "primary",
|
|
3085
|
-
onClick:
|
|
3074
|
+
onClick: ne
|
|
3086
3075
|
}, {
|
|
3087
3076
|
default: m(() => [
|
|
3088
|
-
|
|
3077
|
+
ee(G(O(t)("common.basic.save")), 1)
|
|
3089
3078
|
]),
|
|
3090
3079
|
_: 1
|
|
3091
3080
|
})
|
|
3092
3081
|
])
|
|
3093
3082
|
]),
|
|
3094
3083
|
default: m(() => [
|
|
3095
|
-
d.value >= 0 ? (p(),
|
|
3084
|
+
d.value >= 0 ? (p(), I(st, {
|
|
3096
3085
|
key: 0,
|
|
3097
3086
|
ref_key: "selectTableRef",
|
|
3098
|
-
ref:
|
|
3099
|
-
model:
|
|
3087
|
+
ref: y,
|
|
3088
|
+
model: O(W)[d.value]
|
|
3100
3089
|
}, null, 8, ["model"])) : J("", !0)
|
|
3101
3090
|
]),
|
|
3102
3091
|
_: 1
|
|
@@ -3106,35 +3095,35 @@ const Ge = (e) => {
|
|
|
3106
3095
|
id: s.value,
|
|
3107
3096
|
mode: "update",
|
|
3108
3097
|
visible: r.value,
|
|
3109
|
-
"onUpdate:visible": c[
|
|
3110
|
-
model:
|
|
3111
|
-
afterSubmitFunc:
|
|
3098
|
+
"onUpdate:visible": c[4] || (c[4] = (z) => r.value = z),
|
|
3099
|
+
model: N,
|
|
3100
|
+
afterSubmitFunc: P
|
|
3112
3101
|
}, null, 8, ["id", "visible", "model"])
|
|
3113
3102
|
], 64);
|
|
3114
3103
|
};
|
|
3115
3104
|
}
|
|
3116
|
-
}),
|
|
3105
|
+
}), nr = /* @__PURE__ */ ve(or, [["__scopeId", "data-v-0ed3cfe7"]]), sr = { class: "page-title" }, rr = /* @__PURE__ */ we({
|
|
3117
3106
|
__name: "TablePage",
|
|
3118
3107
|
setup(e) {
|
|
3119
|
-
const { t } = We(), o = Je(), n = rt(), s =
|
|
3108
|
+
const { t } = We(), o = Je(), n = rt(), s = V(), r = V([]), l = ue({
|
|
3120
3109
|
api: "",
|
|
3121
3110
|
fields: []
|
|
3122
|
-
}), a =
|
|
3111
|
+
}), a = ue(Ye({}, l));
|
|
3123
3112
|
function i() {
|
|
3124
|
-
var S,
|
|
3125
|
-
r.value = [], l.pageConfig && ((
|
|
3126
|
-
let
|
|
3127
|
-
return
|
|
3128
|
-
key:
|
|
3129
|
-
label:
|
|
3130
|
-
icon:
|
|
3131
|
-
disabled:
|
|
3132
|
-
model:
|
|
3113
|
+
var S, y, A, U, H;
|
|
3114
|
+
r.value = [], l.pageConfig && ((y = (S = l.pageConfig) == null ? void 0 : S.tablePage) != null && y.tabViewAttributes) && (r.value = (H = (U = (A = l.pageConfig) == null ? void 0 : A.tablePage) == null ? void 0 : U.tabViewAttributes) == null ? void 0 : H.map((D) => {
|
|
3115
|
+
let L;
|
|
3116
|
+
return D.modelKey && ge.value[D.modelKey] ? L = Fe(ge.value[D.modelKey]) : L = Fe(l), D.queryParams && (L.tableConfig || (L.tableConfig = {}), L.tableConfig.queryParams = D.queryParams), D.fields && (L.fields = D.fields), D.modelKey && (L.breadcrumbRoute = l.route), {
|
|
3117
|
+
key: D.key,
|
|
3118
|
+
label: D.label,
|
|
3119
|
+
icon: D.icon,
|
|
3120
|
+
disabled: D.disabled,
|
|
3121
|
+
model: L
|
|
3133
3122
|
};
|
|
3134
3123
|
}));
|
|
3135
3124
|
}
|
|
3136
3125
|
function d() {
|
|
3137
|
-
var
|
|
3126
|
+
var A, U;
|
|
3138
3127
|
console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ge.value);
|
|
3139
3128
|
const S = o.params.model;
|
|
3140
3129
|
if (ge.value[S] === void 0) {
|
|
@@ -3142,10 +3131,10 @@ const Ge = (e) => {
|
|
|
3142
3131
|
return;
|
|
3143
3132
|
}
|
|
3144
3133
|
Ge(l);
|
|
3145
|
-
const
|
|
3146
|
-
Object.assign(l,
|
|
3134
|
+
const y = Fe(ge.value[S]);
|
|
3135
|
+
Object.assign(l, y), (U = (A = l.pageConfig) == null ? void 0 : A.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
|
|
3147
3136
|
}
|
|
3148
|
-
return
|
|
3137
|
+
return $e([
|
|
3149
3138
|
() => n.currentRoute.value,
|
|
3150
3139
|
ge
|
|
3151
3140
|
], () => {
|
|
@@ -3153,16 +3142,16 @@ const Ge = (e) => {
|
|
|
3153
3142
|
}, {
|
|
3154
3143
|
immediate: !0,
|
|
3155
3144
|
deep: !0
|
|
3156
|
-
}), (S,
|
|
3145
|
+
}), (S, y) => {
|
|
3157
3146
|
var U;
|
|
3158
|
-
const
|
|
3159
|
-
return p(), M(
|
|
3160
|
-
v("h1",
|
|
3161
|
-
_(
|
|
3147
|
+
const A = $("el-scrollbar");
|
|
3148
|
+
return p(), M(oe, null, [
|
|
3149
|
+
v("h1", sr, G(O(t)((U = l.name) != null ? U : "")), 1),
|
|
3150
|
+
_(A, null, {
|
|
3162
3151
|
default: m(() => {
|
|
3163
|
-
var
|
|
3152
|
+
var H, D;
|
|
3164
3153
|
return [
|
|
3165
|
-
(
|
|
3154
|
+
(D = (H = l.pageConfig) == null ? void 0 : H.tablePage) != null && D.tabViewAttributes ? (p(), I(lo, {
|
|
3166
3155
|
key: 0,
|
|
3167
3156
|
class: "tabs-wrapper",
|
|
3168
3157
|
cards: r.value,
|
|
@@ -3181,35 +3170,35 @@ const Ge = (e) => {
|
|
|
3181
3170
|
], 64);
|
|
3182
3171
|
};
|
|
3183
3172
|
}
|
|
3184
|
-
}),
|
|
3173
|
+
}), ar = /* @__PURE__ */ ve(rr, [["__scopeId", "data-v-1a472785"]]), lr = [
|
|
3185
3174
|
No,
|
|
3186
3175
|
ys,
|
|
3187
3176
|
Lt,
|
|
3188
|
-
|
|
3177
|
+
Es,
|
|
3189
3178
|
Vs,
|
|
3190
3179
|
ao,
|
|
3191
3180
|
lo,
|
|
3192
3181
|
st,
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
],
|
|
3196
|
-
e && e.component &&
|
|
3182
|
+
nr,
|
|
3183
|
+
ar
|
|
3184
|
+
], _r = (e) => {
|
|
3185
|
+
e && e.component && lr.forEach((t) => {
|
|
3197
3186
|
console.log("component", t.__name, t), e.component(t.__name, t);
|
|
3198
3187
|
});
|
|
3199
3188
|
};
|
|
3200
3189
|
export {
|
|
3201
3190
|
No as Building,
|
|
3202
3191
|
ys as ConsoleApp,
|
|
3203
|
-
|
|
3192
|
+
nr as DetailPage,
|
|
3204
3193
|
Lt as Header,
|
|
3205
|
-
|
|
3194
|
+
Es as NoPermission,
|
|
3206
3195
|
Vs as Secondary,
|
|
3207
3196
|
ao as SideMenu,
|
|
3208
3197
|
lo as TabCard,
|
|
3209
|
-
|
|
3198
|
+
ar as TablePage,
|
|
3210
3199
|
st as TableView,
|
|
3211
3200
|
Vn as activeMenuMapping,
|
|
3212
|
-
|
|
3201
|
+
_r as default,
|
|
3213
3202
|
on as en,
|
|
3214
3203
|
ot as i18n,
|
|
3215
3204
|
Ct as menuList,
|