@vancone/console-component 0.1.1-beta.30 → 0.1.1-beta.32
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 xe = (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 A, createElementVNode as y, defineComponent as Se, reactive as de, resolveComponent as
|
|
29
|
+
import { openBlock as p, createElementBlock as A, createElementVNode as y, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as x, Fragment as ie, renderList as fe, toDisplayString as D, normalizeStyle as je, ref as V, onMounted as Dt, createBlock as I, createTextVNode as K, createCommentVNode as J, nextTick as He, resolveDynamicComponent as st, effectScope as Ft, markRaw as Me, toRaw as We, hasInjectionContext as Co, inject as ko, getCurrentInstance as xo, watch as Ee, isRef as Je, isReactive as gt, toRef as ct, computed as Te, getCurrentScope as $o, onScopeDispose as Eo, toRefs as xt, createStaticVNode as Oo, normalizeClass as Rt, resolveDirective as Gt, withDirectives as Lt } from "vue";
|
|
30
30
|
import { useRoute as Ke, useRouter as it } from "vue-router";
|
|
31
31
|
import Po from "axios";
|
|
32
|
-
import { ElMessage as ut, ElMessageBox as
|
|
33
|
-
import { Search as jt, ArrowDown as zt, ArrowRight as Io, Check as Vo, Refresh as qt, Upload as Ao, Download as
|
|
32
|
+
import { ElMessage as ut, ElMessageBox as $t } from "element-plus";
|
|
33
|
+
import { Search as jt, ArrowDown as zt, ArrowRight as Io, Check as Vo, Refresh as qt, Upload as Ao, Download as Et, Document as No, Printer as Mo, Setting as Uo, MoreFilled as To, QuestionFilled as Do } from "@element-plus/icons-vue";
|
|
34
34
|
import { createI18n as Fo, useI18n as Qe } from "vue-i18n";
|
|
35
35
|
import { cloneDeep as Le } from "lodash";
|
|
36
36
|
const ye = (e, t) => {
|
|
@@ -147,7 +147,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
return o(), (n, s) => {
|
|
150
|
-
const r =
|
|
150
|
+
const r = E("el-input"), l = E("el-scrollbar"), a = E("el-tab-pane"), i = E("el-tabs");
|
|
151
151
|
return p(), A("div", on, [
|
|
152
152
|
m(i, { "tab-position": "left" }, {
|
|
153
153
|
default: d(() => [
|
|
@@ -168,13 +168,13 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
168
168
|
}, {
|
|
169
169
|
default: d(() => [
|
|
170
170
|
y("div", nn, [
|
|
171
|
-
(p(!0), A(
|
|
171
|
+
(p(!0), A(ie, null, fe(t, (f) => (p(), A("div", sn, [
|
|
172
172
|
y("h1", null, D(f.name), 1),
|
|
173
173
|
y("div", rn, [
|
|
174
|
-
(p(!0), A(
|
|
175
|
-
var
|
|
174
|
+
(p(!0), A(ie, null, fe(f.apps, (w) => {
|
|
175
|
+
var $, N;
|
|
176
176
|
return p(), A("a", {
|
|
177
|
-
style: je([{ "text-decoration": "none" }, { pointerEvents: ((
|
|
177
|
+
style: je([{ "text-decoration": "none" }, { pointerEvents: (($ = w.homepageUrl) == null ? void 0 : $.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
179
|
href: w.homepageUrl
|
|
180
180
|
}, [
|
|
@@ -316,7 +316,7 @@ function hn(e, t) {
|
|
|
316
316
|
y("path", { d: "M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z" }, null, -1)
|
|
317
317
|
]));
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const gn = { render: hn }, _n = {
|
|
320
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
321
321
|
width: "200",
|
|
322
322
|
height: "200",
|
|
@@ -324,7 +324,7 @@ const _n = { render: hn }, gn = {
|
|
|
324
324
|
viewBox: "0 0 1024 1024"
|
|
325
325
|
};
|
|
326
326
|
function bn(e, t) {
|
|
327
|
-
return p(), A("svg",
|
|
327
|
+
return p(), A("svg", _n, t[0] || (t[0] = [
|
|
328
328
|
y("path", { d: "M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906" }, null, -1)
|
|
329
329
|
]));
|
|
330
330
|
}
|
|
@@ -366,7 +366,7 @@ function Ce(e, t, o) {
|
|
|
366
366
|
return ve.get(e, { params: o });
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
const
|
|
369
|
+
const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }, Pn = { class: "icon-wrapper" }, In = { class: "user-wrapper" }, Vn = { style: { "font-size": "11px", "font-weight": "bold" } }, An = { class: "user-popover-header" }, Nn = { style: { "font-size": "15px", "font-weight": "bold" } }, Mn = ["onClick"], Un = /* @__PURE__ */ Se({
|
|
370
370
|
__name: "Header",
|
|
371
371
|
props: {
|
|
372
372
|
title: {},
|
|
@@ -379,7 +379,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
379
379
|
id: "",
|
|
380
380
|
name: ""
|
|
381
381
|
}
|
|
382
|
-
), w = V(""),
|
|
382
|
+
), w = V(""), $ = V(rt.global.locale), N = de([
|
|
383
383
|
{
|
|
384
384
|
id: "en",
|
|
385
385
|
name: "English"
|
|
@@ -391,16 +391,16 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
391
391
|
]);
|
|
392
392
|
Dt(() => {
|
|
393
393
|
var R, G, ee;
|
|
394
|
-
w.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), w.value === "" && zo().then(({ data:
|
|
394
|
+
w.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), w.value === "" && zo().then(({ data: _ }) => {
|
|
395
395
|
var h;
|
|
396
|
-
|
|
397
|
-
}), (R = a.headerProjectConfig) != null && R.api ? Ce((G = a.headerProjectConfig) == null ? void 0 : G.api, "GET", {}).then(({ data:
|
|
398
|
-
i.value =
|
|
396
|
+
_.code == 0 && (w.value = (h = _.data.name) != null ? h : _.data.displayId);
|
|
397
|
+
}), (R = a.headerProjectConfig) != null && R.api ? Ce((G = a.headerProjectConfig) == null ? void 0 : G.api, "GET", {}).then(({ data: _ }) => {
|
|
398
|
+
i.value = _.data;
|
|
399
399
|
}) : (ee = a.headerProjectConfig) != null && ee.items && (i.value = a.headerProjectConfig.items);
|
|
400
400
|
});
|
|
401
401
|
function M(R) {
|
|
402
|
-
for (var G = R + "=", ee = document.cookie.split(";"),
|
|
403
|
-
for (var h = ee[
|
|
402
|
+
for (var G = R + "=", ee = document.cookie.split(";"), _ = 0; _ < ee.length; _++) {
|
|
403
|
+
for (var h = ee[_]; h.charAt(0) == " "; ) h = h.substring(1);
|
|
404
404
|
if (h.indexOf(G) != -1)
|
|
405
405
|
return h.substring(G.length, h.length);
|
|
406
406
|
}
|
|
@@ -413,7 +413,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
function F(R) {
|
|
416
|
-
rt.global.locale.value = R,
|
|
416
|
+
rt.global.locale.value = R, $.value = R, localStorage.setItem("locale", R);
|
|
417
417
|
}
|
|
418
418
|
function Z() {
|
|
419
419
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
@@ -421,7 +421,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
421
421
|
function B() {
|
|
422
422
|
window.open(a.helpDocUrl, "_blank");
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function ce(R) {
|
|
425
425
|
if (R === "allProjects")
|
|
426
426
|
alert("show all projects");
|
|
427
427
|
else
|
|
@@ -432,41 +432,41 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return (R, G) => {
|
|
435
|
-
const ee =
|
|
436
|
-
return p(), A(
|
|
437
|
-
y("div",
|
|
438
|
-
y("div",
|
|
435
|
+
const ee = E("el-icon"), _ = E("el-dropdown-item"), h = E("el-dropdown-menu"), S = E("el-dropdown"), P = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"), C = E("el-menu-item"), O = E("el-menu"), L = E("el-drawer");
|
|
436
|
+
return p(), A(ie, null, [
|
|
437
|
+
y("div", $n, [
|
|
438
|
+
y("div", En, [
|
|
439
439
|
y("div", {
|
|
440
440
|
ref_key: "appCatalogButtonRef",
|
|
441
441
|
ref: r,
|
|
442
442
|
class: "icon-wrapper",
|
|
443
443
|
style: { "margin-left": "8px" }
|
|
444
444
|
}, [
|
|
445
|
-
m(x(
|
|
445
|
+
m(x(gn))
|
|
446
446
|
], 512),
|
|
447
447
|
y("h1", null, D(R.title), 1),
|
|
448
448
|
a.headerProjectConfig ? (p(), I(S, {
|
|
449
449
|
key: 0,
|
|
450
450
|
placement: "bottom-start",
|
|
451
|
-
onCommand:
|
|
451
|
+
onCommand: ce
|
|
452
452
|
}, {
|
|
453
453
|
dropdown: d(() => [
|
|
454
454
|
m(h, { style: { width: "300px" } }, {
|
|
455
455
|
default: d(() => [
|
|
456
|
-
(p(!0), A(
|
|
456
|
+
(p(!0), A(ie, null, fe(i.value, (U) => (p(), I(_, {
|
|
457
457
|
command: U.id
|
|
458
458
|
}, {
|
|
459
459
|
default: d(() => [
|
|
460
|
-
|
|
460
|
+
K(D(U.name), 1)
|
|
461
461
|
]),
|
|
462
462
|
_: 2
|
|
463
463
|
}, 1032, ["command"]))), 256)),
|
|
464
|
-
m(
|
|
464
|
+
m(_, {
|
|
465
465
|
divided: "",
|
|
466
466
|
command: "allProjects"
|
|
467
467
|
}, {
|
|
468
468
|
default: d(() => G[2] || (G[2] = [
|
|
469
|
-
|
|
469
|
+
K("全部项目")
|
|
470
470
|
])),
|
|
471
471
|
_: 1
|
|
472
472
|
})
|
|
@@ -476,7 +476,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
476
476
|
]),
|
|
477
477
|
default: d(() => [
|
|
478
478
|
y("span", null, [
|
|
479
|
-
|
|
479
|
+
K(D(f.name) + " ", 1),
|
|
480
480
|
m(ee, { class: "el-icon--right" }, {
|
|
481
481
|
default: d(() => [
|
|
482
482
|
m(x(zt))
|
|
@@ -486,7 +486,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
486
486
|
])
|
|
487
487
|
]),
|
|
488
488
|
_: 1
|
|
489
|
-
})) :
|
|
489
|
+
})) : J("", !0)
|
|
490
490
|
]),
|
|
491
491
|
m(P, {
|
|
492
492
|
class: "app-popover",
|
|
@@ -500,7 +500,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
500
500
|
]),
|
|
501
501
|
_: 1
|
|
502
502
|
}, 8, ["virtual-ref"]),
|
|
503
|
-
y("div",
|
|
503
|
+
y("div", On, [
|
|
504
504
|
m(u, {
|
|
505
505
|
effect: "dark",
|
|
506
506
|
content: x(t)("common.header.workbench"),
|
|
@@ -525,7 +525,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
525
525
|
onClick: B
|
|
526
526
|
}, [
|
|
527
527
|
m(x(vn))
|
|
528
|
-
])) :
|
|
528
|
+
])) : J("", !0)
|
|
529
529
|
]),
|
|
530
530
|
_: 1
|
|
531
531
|
}, 8, ["content"]),
|
|
@@ -579,11 +579,11 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
579
579
|
}),
|
|
580
580
|
y("span", null, D(w.value), 1)
|
|
581
581
|
]),
|
|
582
|
-
m(
|
|
582
|
+
m(O, { class: "user-menu" }, {
|
|
583
583
|
default: d(() => [
|
|
584
584
|
m(C, { onClick: Z }, {
|
|
585
585
|
default: d(() => [
|
|
586
|
-
|
|
586
|
+
K(D(x(t)("common.header.userCenter")), 1)
|
|
587
587
|
]),
|
|
588
588
|
_: 1
|
|
589
589
|
}),
|
|
@@ -615,12 +615,12 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
615
615
|
"popper-style": "height: 80px; left: -165px"
|
|
616
616
|
}, {
|
|
617
617
|
default: d(() => [
|
|
618
|
-
(p(!0), A(
|
|
618
|
+
(p(!0), A(ie, null, fe(N, (U) => (p(), A("div", {
|
|
619
619
|
class: "select-list",
|
|
620
620
|
onClick: (T) => F(U.id)
|
|
621
621
|
}, [
|
|
622
622
|
y("span", null, D(U.name), 1),
|
|
623
|
-
U.id ===
|
|
623
|
+
U.id === $.value ? (p(), I(ee, {
|
|
624
624
|
key: 0,
|
|
625
625
|
style: { color: "#8ba74f" }
|
|
626
626
|
}, {
|
|
@@ -628,14 +628,14 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
628
628
|
m(x(Vo))
|
|
629
629
|
]),
|
|
630
630
|
_: 1
|
|
631
|
-
})) :
|
|
631
|
+
})) : J("", !0)
|
|
632
632
|
], 8, Mn))), 256))
|
|
633
633
|
]),
|
|
634
634
|
_: 1
|
|
635
635
|
}, 8, ["virtual-ref"]),
|
|
636
636
|
m(C, { onClick: q }, {
|
|
637
637
|
default: d(() => [
|
|
638
|
-
|
|
638
|
+
K(D(x(t)("common.header.signOut")), 1)
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
})
|
|
@@ -668,7 +668,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
668
668
|
setup(e) {
|
|
669
669
|
const t = e;
|
|
670
670
|
return He(() => console.log("menu", t.menu)), (o, n) => {
|
|
671
|
-
const s =
|
|
671
|
+
const s = E("SideMenuItem", !0), r = E("el-sub-menu"), l = E("el-menu-item");
|
|
672
672
|
return o.menu.children && o.menu.children.length > 0 ? (p(), I(r, {
|
|
673
673
|
key: 0,
|
|
674
674
|
index: o.menu.path
|
|
@@ -683,7 +683,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
683
683
|
];
|
|
684
684
|
}),
|
|
685
685
|
default: d(() => [
|
|
686
|
-
(p(!0), A(
|
|
686
|
+
(p(!0), A(ie, null, fe(o.menu.children, (a) => (p(), I(s, {
|
|
687
687
|
key: a.path,
|
|
688
688
|
route: a,
|
|
689
689
|
menu: a
|
|
@@ -713,7 +713,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
|
|
|
713
713
|
}, 8, ["index"]));
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
|
-
}), Rn = /* @__PURE__ */ ye(Fn, [["__scopeId", "data-v-99da7c39"]]), be = V({}), Gn = {},
|
|
716
|
+
}), Rn = /* @__PURE__ */ ye(Fn, [["__scopeId", "data-v-99da7c39"]]), be = V({}), Gn = {}, Ot = V([]);
|
|
717
717
|
var Jt = !1;
|
|
718
718
|
function Ze(e, t, o) {
|
|
719
719
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
@@ -838,7 +838,7 @@ const Ue = typeof window != "undefined", Pt = typeof window == "object" && windo
|
|
|
838
838
|
function Jn(e, { autoBom: t = !1 } = {}) {
|
|
839
839
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function _t(e, t, o) {
|
|
842
842
|
const n = new XMLHttpRequest();
|
|
843
843
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
844
844
|
eo(n.response, t, o);
|
|
@@ -876,7 +876,7 @@ const tt = typeof navigator == "object" ? navigator : { userAgent: "" }, Zt = /M
|
|
|
876
876
|
};
|
|
877
877
|
function Yn(e, t = "download", o) {
|
|
878
878
|
const n = document.createElement("a");
|
|
879
|
-
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Xt(n.href) ?
|
|
879
|
+
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Xt(n.href) ? _t(e, t, o) : (n.target = "_blank", et(n)) : et(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
880
880
|
URL.revokeObjectURL(n.href);
|
|
881
881
|
}, 4e4), setTimeout(function() {
|
|
882
882
|
et(n);
|
|
@@ -885,7 +885,7 @@ function Yn(e, t = "download", o) {
|
|
|
885
885
|
function Kn(e, t = "download", o) {
|
|
886
886
|
if (typeof e == "string")
|
|
887
887
|
if (Xt(e))
|
|
888
|
-
|
|
888
|
+
_t(e, t, o);
|
|
889
889
|
else {
|
|
890
890
|
const n = document.createElement("a");
|
|
891
891
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
@@ -897,7 +897,7 @@ function Kn(e, t = "download", o) {
|
|
|
897
897
|
}
|
|
898
898
|
function Qn(e, t, o, n) {
|
|
899
899
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
900
|
-
return
|
|
900
|
+
return _t(e, t, o);
|
|
901
901
|
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(Pt.HTMLElement)) || "safari" in Pt, l = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
902
902
|
if ((l || s && r || Zt) && typeof FileReader != "undefined") {
|
|
903
903
|
const a = new FileReader();
|
|
@@ -914,7 +914,7 @@ function Qn(e, t, o, n) {
|
|
|
914
914
|
}, 4e4);
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function le(e, t) {
|
|
918
918
|
const o = "🍍 " + e;
|
|
919
919
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
|
|
920
920
|
}
|
|
@@ -923,20 +923,20 @@ function bt(e) {
|
|
|
923
923
|
}
|
|
924
924
|
function to() {
|
|
925
925
|
if (!("clipboard" in navigator))
|
|
926
|
-
return
|
|
926
|
+
return le("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
927
927
|
}
|
|
928
928
|
function oo(e) {
|
|
929
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
929
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (le('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
930
930
|
}
|
|
931
931
|
function Xn(e) {
|
|
932
932
|
return xe(this, null, function* () {
|
|
933
933
|
if (!to())
|
|
934
934
|
try {
|
|
935
|
-
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
935
|
+
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), le("Global state copied to clipboard.");
|
|
936
936
|
} catch (t) {
|
|
937
937
|
if (oo(t))
|
|
938
938
|
return;
|
|
939
|
-
|
|
939
|
+
le("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
}
|
|
@@ -944,11 +944,11 @@ function Zn(e) {
|
|
|
944
944
|
return xe(this, null, function* () {
|
|
945
945
|
if (!to())
|
|
946
946
|
try {
|
|
947
|
-
no(e, JSON.parse(yield navigator.clipboard.readText())),
|
|
947
|
+
no(e, JSON.parse(yield navigator.clipboard.readText())), le("Global state pasted from clipboard.");
|
|
948
948
|
} catch (t) {
|
|
949
949
|
if (oo(t))
|
|
950
950
|
return;
|
|
951
|
-
|
|
951
|
+
le("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
952
952
|
}
|
|
953
953
|
});
|
|
954
954
|
}
|
|
@@ -959,22 +959,22 @@ function es(e) {
|
|
|
959
959
|
type: "text/plain;charset=utf-8"
|
|
960
960
|
}), "pinia-state.json");
|
|
961
961
|
} catch (t) {
|
|
962
|
-
|
|
962
|
+
le("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
963
963
|
}
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
|
-
let
|
|
966
|
+
let $e;
|
|
967
967
|
function ts() {
|
|
968
|
-
|
|
968
|
+
$e || ($e = document.createElement("input"), $e.type = "file", $e.accept = ".json");
|
|
969
969
|
function e() {
|
|
970
970
|
return new Promise((t, o) => {
|
|
971
|
-
|
|
972
|
-
const n =
|
|
971
|
+
$e.onchange = () => xe(this, null, function* () {
|
|
972
|
+
const n = $e.files;
|
|
973
973
|
if (!n)
|
|
974
974
|
return t(null);
|
|
975
975
|
const s = n.item(0);
|
|
976
976
|
return t(s ? { text: yield s.text(), file: s } : null);
|
|
977
|
-
}),
|
|
977
|
+
}), $e.oncancel = () => t(null), $e.onerror = o, $e.click();
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
return e;
|
|
@@ -986,9 +986,9 @@ function os(e) {
|
|
|
986
986
|
if (!o)
|
|
987
987
|
return;
|
|
988
988
|
const { text: n, file: s } = o;
|
|
989
|
-
no(e, JSON.parse(n)),
|
|
989
|
+
no(e, JSON.parse(n)), le(`Global state imported from "${s.name}".`);
|
|
990
990
|
} catch (t) {
|
|
991
|
-
|
|
991
|
+
le("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
994
|
}
|
|
@@ -1088,7 +1088,7 @@ function is(e, t) {
|
|
|
1088
1088
|
componentStateTypes: nt,
|
|
1089
1089
|
app: e
|
|
1090
1090
|
}, (o) => {
|
|
1091
|
-
typeof o.now != "function" &&
|
|
1091
|
+
typeof o.now != "function" && le("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({
|
|
1092
1092
|
id: Ne,
|
|
1093
1093
|
label: "Pinia 🍍",
|
|
1094
1094
|
color: 15064968
|
|
@@ -1133,7 +1133,7 @@ function is(e, t) {
|
|
|
1133
1133
|
tooltip: 'Reset the state (with "$reset")',
|
|
1134
1134
|
action: (n) => {
|
|
1135
1135
|
const s = t._s.get(n);
|
|
1136
|
-
s ? typeof s.$reset != "function" ?
|
|
1136
|
+
s ? typeof s.$reset != "function" ? le(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), le(`Store "${n}" reset.`)) : le(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
]
|
|
@@ -1192,7 +1192,7 @@ function is(e, t) {
|
|
|
1192
1192
|
if (n.app === e && n.inspectorId === ue) {
|
|
1193
1193
|
const r = n.nodeId === ot ? t : t._s.get(n.nodeId);
|
|
1194
1194
|
if (!r)
|
|
1195
|
-
return
|
|
1195
|
+
return le(`store "${n.nodeId}" not found`, "error");
|
|
1196
1196
|
const { path: l } = n;
|
|
1197
1197
|
bt(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Ge = !1, n.set(r, l, n.state.value), Ge = !0;
|
|
1198
1198
|
}
|
|
@@ -1200,10 +1200,10 @@ function is(e, t) {
|
|
|
1200
1200
|
if (n.type.startsWith("🍍")) {
|
|
1201
1201
|
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1202
1202
|
if (!r)
|
|
1203
|
-
return
|
|
1203
|
+
return le(`store "${s}" not found`, "error");
|
|
1204
1204
|
const { path: l } = n;
|
|
1205
1205
|
if (l[0] !== "state")
|
|
1206
|
-
return
|
|
1206
|
+
return le(`Invalid path for store "${s}":
|
|
1207
1207
|
${l}
|
|
1208
1208
|
Only state can be modified.`);
|
|
1209
1209
|
l[0] = "$state", Ge = !1, n.set(r, l, n.state.value), Ge = !0;
|
|
@@ -1249,7 +1249,7 @@ function cs(e, t) {
|
|
|
1249
1249
|
},
|
|
1250
1250
|
groupId: w
|
|
1251
1251
|
}
|
|
1252
|
-
}), l((
|
|
1252
|
+
}), l(($) => {
|
|
1253
1253
|
Pe = void 0, o.addTimelineEvent({
|
|
1254
1254
|
layerId: Ne,
|
|
1255
1255
|
event: {
|
|
@@ -1260,12 +1260,12 @@ function cs(e, t) {
|
|
|
1260
1260
|
store: we(t.$id),
|
|
1261
1261
|
action: we(i),
|
|
1262
1262
|
args: f,
|
|
1263
|
-
result:
|
|
1263
|
+
result: $
|
|
1264
1264
|
},
|
|
1265
1265
|
groupId: w
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
|
-
}), a((
|
|
1268
|
+
}), a(($) => {
|
|
1269
1269
|
Pe = void 0, o.addTimelineEvent({
|
|
1270
1270
|
layerId: Ne,
|
|
1271
1271
|
event: {
|
|
@@ -1277,14 +1277,14 @@ function cs(e, t) {
|
|
|
1277
1277
|
store: we(t.$id),
|
|
1278
1278
|
action: we(i),
|
|
1279
1279
|
args: f,
|
|
1280
|
-
error:
|
|
1280
|
+
error: $
|
|
1281
1281
|
},
|
|
1282
1282
|
groupId: w
|
|
1283
1283
|
}
|
|
1284
1284
|
});
|
|
1285
1285
|
});
|
|
1286
1286
|
}, !0), t._customProperties.forEach((l) => {
|
|
1287
|
-
|
|
1287
|
+
Ee(() => x(t[l]), (a, i) => {
|
|
1288
1288
|
o.notifyComponentUpdate(), o.sendInspectorState(ue), Ge && o.addTimelineEvent({
|
|
1289
1289
|
layerId: Ne,
|
|
1290
1290
|
event: {
|
|
@@ -1337,8 +1337,8 @@ function cs(e, t) {
|
|
|
1337
1337
|
});
|
|
1338
1338
|
const { $dispose: r } = t;
|
|
1339
1339
|
t.$dispose = () => {
|
|
1340
|
-
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges &&
|
|
1341
|
-
}, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges &&
|
|
1340
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && le(`Disposed "${t.$id}" store 🗑`);
|
|
1341
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && le(`"${t.$id}" store installed 🆕`);
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
1344
|
let ro = 0, Pe;
|
|
@@ -1401,7 +1401,7 @@ function ao(e, t) {
|
|
|
1401
1401
|
if (!(o in e))
|
|
1402
1402
|
continue;
|
|
1403
1403
|
const s = e[o];
|
|
1404
|
-
De(s) && De(n) && !Je(n) && !
|
|
1404
|
+
De(s) && De(n) && !Je(n) && !gt(n) ? e[o] = ao(s, n) : e[o] = n;
|
|
1405
1405
|
}
|
|
1406
1406
|
return e;
|
|
1407
1407
|
}
|
|
@@ -1413,7 +1413,7 @@ function Vt(e, t, o, n = lo) {
|
|
|
1413
1413
|
const r = e.indexOf(t);
|
|
1414
1414
|
r > -1 && (e.splice(r, 1), n());
|
|
1415
1415
|
};
|
|
1416
|
-
return !o &&
|
|
1416
|
+
return !o && $o() && Eo(s), s;
|
|
1417
1417
|
}
|
|
1418
1418
|
function Re(e, ...t) {
|
|
1419
1419
|
e.slice().forEach((o) => {
|
|
@@ -1427,7 +1427,7 @@ function mt(e, t) {
|
|
|
1427
1427
|
if (!t.hasOwnProperty(o))
|
|
1428
1428
|
continue;
|
|
1429
1429
|
const n = t[o], s = e[o];
|
|
1430
|
-
De(s) && De(n) && e.hasOwnProperty(o) && !Je(n) && !
|
|
1430
|
+
De(s) && De(n) && e.hasOwnProperty(o) && !Je(n) && !gt(n) ? e[o] = mt(s, n) : e[o] = n;
|
|
1431
1431
|
}
|
|
1432
1432
|
return e;
|
|
1433
1433
|
}
|
|
@@ -1438,7 +1438,7 @@ const fs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
1438
1438
|
function ms(e) {
|
|
1439
1439
|
return !De(e) || !e.hasOwnProperty(fs);
|
|
1440
1440
|
}
|
|
1441
|
-
const { assign:
|
|
1441
|
+
const { assign: _e } = Object;
|
|
1442
1442
|
function Nt(e) {
|
|
1443
1443
|
return !!(Je(e) && e.effect);
|
|
1444
1444
|
}
|
|
@@ -1451,24 +1451,24 @@ function Mt(e, t, o, n) {
|
|
|
1451
1451
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1452
1452
|
xt(V(s ? s() : {}).value)
|
|
1453
1453
|
) : xt(o.state.value[e]);
|
|
1454
|
-
return
|
|
1454
|
+
return _e(w, r, Object.keys(l || {}).reduce(($, N) => (process.env.NODE_ENV !== "production" && N in w && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), $[N] = Me(Te(() => {
|
|
1455
1455
|
Ye(o);
|
|
1456
1456
|
const M = o._s.get(e);
|
|
1457
1457
|
return l[N].call(M, M);
|
|
1458
|
-
})),
|
|
1458
|
+
})), $), {}));
|
|
1459
1459
|
}
|
|
1460
1460
|
return i = ht(e, f, t, o, n, !0), i;
|
|
1461
1461
|
}
|
|
1462
1462
|
function ht(e, t, o = {}, n, s, r) {
|
|
1463
1463
|
let l;
|
|
1464
|
-
const a =
|
|
1464
|
+
const a = _e({ actions: {} }, o);
|
|
1465
1465
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
1466
1466
|
throw new Error("Pinia destroyed");
|
|
1467
1467
|
const i = { deep: !0 };
|
|
1468
1468
|
process.env.NODE_ENV !== "production" && !Jt && (i.onTrigger = (u) => {
|
|
1469
1469
|
f ? M = u : f == !1 && !h._hotUpdating && (Array.isArray(M) ? M.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1470
1470
|
});
|
|
1471
|
-
let f, w,
|
|
1471
|
+
let f, w, $ = [], N = [], M;
|
|
1472
1472
|
const q = n.state.value[e];
|
|
1473
1473
|
!r && !q && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1474
1474
|
const F = V({});
|
|
@@ -1488,12 +1488,12 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1488
1488
|
const C = Z = Symbol();
|
|
1489
1489
|
He().then(() => {
|
|
1490
1490
|
Z === C && (f = !0);
|
|
1491
|
-
}), w = !0, Re(
|
|
1491
|
+
}), w = !0, Re($, c, n.state.value[e]);
|
|
1492
1492
|
}
|
|
1493
|
-
const
|
|
1493
|
+
const ce = r ? function() {
|
|
1494
1494
|
const { state: c } = o, C = c ? c() : {};
|
|
1495
|
-
this.$patch((
|
|
1496
|
-
|
|
1495
|
+
this.$patch((O) => {
|
|
1496
|
+
_e(O, C);
|
|
1497
1497
|
});
|
|
1498
1498
|
} : (
|
|
1499
1499
|
/* istanbul ignore next */
|
|
@@ -1502,14 +1502,14 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1502
1502
|
} : lo
|
|
1503
1503
|
);
|
|
1504
1504
|
function R() {
|
|
1505
|
-
l.stop(),
|
|
1505
|
+
l.stop(), $ = [], N = [], n._s.delete(e);
|
|
1506
1506
|
}
|
|
1507
1507
|
const G = (u, c = "") => {
|
|
1508
1508
|
if (At in u)
|
|
1509
1509
|
return u[pt] = c, u;
|
|
1510
1510
|
const C = function() {
|
|
1511
1511
|
Ye(n);
|
|
1512
|
-
const
|
|
1512
|
+
const O = Array.from(arguments), L = [], U = [];
|
|
1513
1513
|
function T(H) {
|
|
1514
1514
|
L.push(H);
|
|
1515
1515
|
}
|
|
@@ -1517,7 +1517,7 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1517
1517
|
U.push(H);
|
|
1518
1518
|
}
|
|
1519
1519
|
Re(N, {
|
|
1520
|
-
args:
|
|
1520
|
+
args: O,
|
|
1521
1521
|
name: C[pt],
|
|
1522
1522
|
store: h,
|
|
1523
1523
|
after: T,
|
|
@@ -1525,7 +1525,7 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1525
1525
|
});
|
|
1526
1526
|
let j;
|
|
1527
1527
|
try {
|
|
1528
|
-
j = u.apply(this && this.$id === e ? this : h,
|
|
1528
|
+
j = u.apply(this && this.$id === e ? this : h, O);
|
|
1529
1529
|
} catch (H) {
|
|
1530
1530
|
throw Re(U, H), H;
|
|
1531
1531
|
}
|
|
@@ -1537,39 +1537,39 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1537
1537
|
getters: {},
|
|
1538
1538
|
state: [],
|
|
1539
1539
|
hotState: F
|
|
1540
|
-
}),
|
|
1540
|
+
}), _ = {
|
|
1541
1541
|
_p: n,
|
|
1542
1542
|
// _s: scope,
|
|
1543
1543
|
$id: e,
|
|
1544
1544
|
$onAction: Vt.bind(null, N),
|
|
1545
1545
|
$patch: B,
|
|
1546
|
-
$reset:
|
|
1546
|
+
$reset: ce,
|
|
1547
1547
|
$subscribe(u, c = {}) {
|
|
1548
|
-
const C = Vt(
|
|
1548
|
+
const C = Vt($, u, c.detached, () => O()), O = l.run(() => Ee(() => n.state.value[e], (L) => {
|
|
1549
1549
|
(c.flush === "sync" ? w : f) && u({
|
|
1550
1550
|
storeId: e,
|
|
1551
1551
|
type: ke.direct,
|
|
1552
1552
|
events: M
|
|
1553
1553
|
}, L);
|
|
1554
|
-
},
|
|
1554
|
+
}, _e({}, i, c)));
|
|
1555
1555
|
return C;
|
|
1556
1556
|
},
|
|
1557
1557
|
$dispose: R
|
|
1558
|
-
}, h = de(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue ?
|
|
1558
|
+
}, h = de(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue ? _e(
|
|
1559
1559
|
{
|
|
1560
1560
|
_hmrPayload: ee,
|
|
1561
1561
|
_customProperties: Me(/* @__PURE__ */ new Set())
|
|
1562
1562
|
// devtools custom properties
|
|
1563
1563
|
},
|
|
1564
|
-
|
|
1564
|
+
_
|
|
1565
1565
|
// must be added later
|
|
1566
1566
|
// setupStore
|
|
1567
|
-
) :
|
|
1567
|
+
) : _);
|
|
1568
1568
|
n._s.set(e, h);
|
|
1569
1569
|
const P = (n._a && n._a.runWithContext || ps)(() => n._e.run(() => (l = Ft()).run(() => t({ action: G }))));
|
|
1570
1570
|
for (const u in P) {
|
|
1571
1571
|
const c = P[u];
|
|
1572
|
-
if (Je(c) && !Nt(c) ||
|
|
1572
|
+
if (Je(c) && !Nt(c) || gt(c))
|
|
1573
1573
|
process.env.NODE_ENV !== "production" && s ? Ze(F.value, u, ct(P, u)) : r || (q && ms(c) && (Je(c) ? c.value = q[u] : mt(c, q[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ee.state.push(u);
|
|
1574
1574
|
else if (typeof c == "function") {
|
|
1575
1575
|
const C = process.env.NODE_ENV !== "production" && s ? c : G(c, u);
|
|
@@ -1580,20 +1580,20 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1580
1580
|
) : c, Ue && (P._getters || // @ts-expect-error: same
|
|
1581
1581
|
(P._getters = Me([]))).push(u));
|
|
1582
1582
|
}
|
|
1583
|
-
if (
|
|
1583
|
+
if (_e(h, P), _e(We(h), P), Object.defineProperty(h, "$state", {
|
|
1584
1584
|
get: () => process.env.NODE_ENV !== "production" && s ? F.value : n.state.value[e],
|
|
1585
1585
|
set: (u) => {
|
|
1586
1586
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1587
1587
|
throw new Error("cannot set hotState");
|
|
1588
1588
|
B((c) => {
|
|
1589
|
-
|
|
1589
|
+
_e(c, u);
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
1592
|
}), process.env.NODE_ENV !== "production" && (h._hotUpdate = Me((u) => {
|
|
1593
1593
|
h._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1594
1594
|
if (c in h.$state) {
|
|
1595
|
-
const C = u.$state[c],
|
|
1596
|
-
typeof C == "object" && De(C) && De(
|
|
1595
|
+
const C = u.$state[c], O = h.$state[c];
|
|
1596
|
+
typeof C == "object" && De(C) && De(O) ? ao(C, O) : u.$state[c] = O;
|
|
1597
1597
|
}
|
|
1598
1598
|
Ze(h, c, ct(u.$state, c));
|
|
1599
1599
|
}), Object.keys(h.$state).forEach((c) => {
|
|
@@ -1606,11 +1606,11 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1606
1606
|
Ze(h, c, G(C, c));
|
|
1607
1607
|
}
|
|
1608
1608
|
for (const c in u._hmrPayload.getters) {
|
|
1609
|
-
const C = u._hmrPayload.getters[c],
|
|
1609
|
+
const C = u._hmrPayload.getters[c], O = r ? (
|
|
1610
1610
|
// special handling of options api
|
|
1611
1611
|
Te(() => (Ye(n), C.call(h, h)))
|
|
1612
1612
|
) : C;
|
|
1613
|
-
Ze(h, c,
|
|
1613
|
+
Ze(h, c, O);
|
|
1614
1614
|
}
|
|
1615
1615
|
Object.keys(h._hmrPayload.getters).forEach((c) => {
|
|
1616
1616
|
c in u._hmrPayload.getters || dt(h, c);
|
|
@@ -1625,7 +1625,7 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1625
1625
|
enumerable: !1
|
|
1626
1626
|
};
|
|
1627
1627
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((c) => {
|
|
1628
|
-
Object.defineProperty(h, c,
|
|
1628
|
+
Object.defineProperty(h, c, _e({ value: h[c] }, u));
|
|
1629
1629
|
});
|
|
1630
1630
|
}
|
|
1631
1631
|
return n._p.forEach((u) => {
|
|
@@ -1636,9 +1636,9 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1636
1636
|
pinia: n,
|
|
1637
1637
|
options: a
|
|
1638
1638
|
}));
|
|
1639
|
-
Object.keys(c || {}).forEach((C) => h._customProperties.add(C)),
|
|
1639
|
+
Object.keys(c || {}).forEach((C) => h._customProperties.add(C)), _e(h, c);
|
|
1640
1640
|
} else
|
|
1641
|
-
|
|
1641
|
+
_e(h, l.run(() => u({
|
|
1642
1642
|
store: h,
|
|
1643
1643
|
app: n._a,
|
|
1644
1644
|
pinia: n,
|
|
@@ -1665,14 +1665,14 @@ This will fail in production.`);
|
|
|
1665
1665
|
a = Be, a._s.has(n) || (r ? ht(n, t, s, a) : Mt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1666
1666
|
const w = a._s.get(n);
|
|
1667
1667
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1668
|
-
const
|
|
1669
|
-
i._hotUpdate(N), delete a.state.value[
|
|
1668
|
+
const $ = "__hot:" + n, N = r ? ht($, t, s, a, !0) : Mt($, _e({}, s), a, !0);
|
|
1669
|
+
i._hotUpdate(N), delete a.state.value[$], a._s.delete($);
|
|
1670
1670
|
}
|
|
1671
1671
|
if (process.env.NODE_ENV !== "production" && Ue) {
|
|
1672
|
-
const
|
|
1673
|
-
if (
|
|
1672
|
+
const $ = xo();
|
|
1673
|
+
if ($ && $.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1674
1674
|
!i) {
|
|
1675
|
-
const N =
|
|
1675
|
+
const N = $.proxy, M = "_pStores" in N ? N._pStores : N._pStores = {};
|
|
1676
1676
|
M[n] = w;
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
@@ -1680,7 +1680,7 @@ This will fail in production.`);
|
|
|
1680
1680
|
}
|
|
1681
1681
|
return l.$id = n, l;
|
|
1682
1682
|
}
|
|
1683
|
-
const
|
|
1683
|
+
const gs = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, _s = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, bs = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
1684
1684
|
function vs(e, t) {
|
|
1685
1685
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
1686
1686
|
ys(e);
|
|
@@ -1723,7 +1723,7 @@ function ws(e, t = {}) {
|
|
|
1723
1723
|
return e;
|
|
1724
1724
|
}
|
|
1725
1725
|
try {
|
|
1726
|
-
if (
|
|
1726
|
+
if (gs.test(e) || _s.test(e)) {
|
|
1727
1727
|
if (t.strict)
|
|
1728
1728
|
throw new Error("[destr] Possible prototype pollution");
|
|
1729
1729
|
return JSON.parse(e, vs);
|
|
@@ -1804,14 +1804,14 @@ function Ut(e, {
|
|
|
1804
1804
|
}, f, w = !0) {
|
|
1805
1805
|
try {
|
|
1806
1806
|
w && (a == null || a(f));
|
|
1807
|
-
const
|
|
1808
|
-
if (
|
|
1809
|
-
const N = o.deserialize(
|
|
1807
|
+
const $ = t.getItem(n);
|
|
1808
|
+
if ($) {
|
|
1809
|
+
const N = o.deserialize($), M = r ? co(N, r) : N, q = l ? uo(M, l) : M;
|
|
1810
1810
|
e.$patch(q);
|
|
1811
1811
|
}
|
|
1812
1812
|
w && (i == null || i(f));
|
|
1813
|
-
} catch (
|
|
1814
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1813
|
+
} catch ($) {
|
|
1814
|
+
s && console.error("[pinia-plugin-persistedstate]", $);
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
function Tt(e, {
|
|
@@ -1862,11 +1862,11 @@ function ks(e = {}) {
|
|
|
1862
1862
|
(n) => {
|
|
1863
1863
|
var s, r, l, a, i, f, w;
|
|
1864
1864
|
return {
|
|
1865
|
-
key: (e.key ? e.key : (
|
|
1865
|
+
key: (e.key ? e.key : ($) => $)((s = n.key) != null ? s : t.store.$id),
|
|
1866
1866
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1867
1867
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1868
|
-
serialize: (
|
|
1869
|
-
deserialize: (
|
|
1868
|
+
serialize: ($) => JSON.stringify($),
|
|
1869
|
+
deserialize: ($) => ws($)
|
|
1870
1870
|
},
|
|
1871
1871
|
storage: (w = (f = n.storage) != null ? f : e.storage) != null ? w : window.localStorage,
|
|
1872
1872
|
beforeHydrate: n.beforeHydrate,
|
|
@@ -1889,10 +1889,10 @@ const po = /* @__PURE__ */ hs("console", {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
}),
|
|
1891
1891
|
persist: !0
|
|
1892
|
-
}),
|
|
1892
|
+
}), $s = {
|
|
1893
1893
|
key: 0,
|
|
1894
1894
|
class: "menu-wrapper"
|
|
1895
|
-
},
|
|
1895
|
+
}, Es = /* @__PURE__ */ Se({
|
|
1896
1896
|
__name: "SideMenu",
|
|
1897
1897
|
props: {
|
|
1898
1898
|
menuCollapsed: { type: Boolean }
|
|
@@ -1910,25 +1910,25 @@ const po = /* @__PURE__ */ hs("console", {
|
|
|
1910
1910
|
return s;
|
|
1911
1911
|
});
|
|
1912
1912
|
return (s, r) => {
|
|
1913
|
-
const l =
|
|
1914
|
-
return x(
|
|
1913
|
+
const l = E("el-menu");
|
|
1914
|
+
return x(Ot).length > 0 ? (p(), A("div", $s, [
|
|
1915
1915
|
m(l, {
|
|
1916
1916
|
class: "menu",
|
|
1917
1917
|
"default-active": n.value,
|
|
1918
1918
|
router: ""
|
|
1919
1919
|
}, {
|
|
1920
1920
|
default: d(() => [
|
|
1921
|
-
(p(!0), A(
|
|
1921
|
+
(p(!0), A(ie, null, fe(x(Ot), (a) => (p(), I(Rn, {
|
|
1922
1922
|
key: a.path,
|
|
1923
1923
|
menu: a
|
|
1924
1924
|
}, null, 8, ["menu"]))), 128))
|
|
1925
1925
|
]),
|
|
1926
1926
|
_: 1
|
|
1927
1927
|
}, 8, ["default-active"])
|
|
1928
|
-
])) :
|
|
1928
|
+
])) : J("", !0);
|
|
1929
1929
|
};
|
|
1930
1930
|
}
|
|
1931
|
-
}), fo = /* @__PURE__ */ ye(
|
|
1931
|
+
}), fo = /* @__PURE__ */ ye(Es, [["__scopeId", "data-v-c70ca2ba"]]), Os = { class: "container" }, Ps = /* @__PURE__ */ Se({
|
|
1932
1932
|
__name: "ConsoleApp",
|
|
1933
1933
|
props: {
|
|
1934
1934
|
title: {},
|
|
@@ -1938,20 +1938,20 @@ const po = /* @__PURE__ */ hs("console", {
|
|
|
1938
1938
|
setup(e) {
|
|
1939
1939
|
const t = po(yt), o = Ke(), n = V(t.menu.collapsed), s = V(), r = e;
|
|
1940
1940
|
return (l, a) => {
|
|
1941
|
-
const i =
|
|
1942
|
-
return p(), A(
|
|
1941
|
+
const i = E("router-view"), f = E("el-scrollbar");
|
|
1942
|
+
return p(), A(ie, null, [
|
|
1943
1943
|
x(o).query.embedded !== "true" ? (p(), I(Wt, {
|
|
1944
1944
|
key: 0,
|
|
1945
1945
|
title: r.title,
|
|
1946
1946
|
helpDocUrl: r.helpDocUrl,
|
|
1947
1947
|
headerProjectConfig: r.headerProjectConfig
|
|
1948
|
-
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) :
|
|
1949
|
-
y("div",
|
|
1948
|
+
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : J("", !0),
|
|
1949
|
+
y("div", Os, [
|
|
1950
1950
|
x(o).query.embedded !== "true" ? (p(), I(fo, {
|
|
1951
1951
|
key: 0,
|
|
1952
1952
|
menuCollapsed: n.value,
|
|
1953
1953
|
"onUpdate:menuCollapsed": a[0] || (a[0] = (w) => n.value = w)
|
|
1954
|
-
}, null, 8, ["menuCollapsed"])) :
|
|
1954
|
+
}, null, 8, ["menuCollapsed"])) : J("", !0),
|
|
1955
1955
|
m(f, { class: "main-scrollbar" }, {
|
|
1956
1956
|
default: d(() => [
|
|
1957
1957
|
y("main", {
|
|
@@ -1975,19 +1975,19 @@ const po = /* @__PURE__ */ hs("console", {
|
|
|
1975
1975
|
};
|
|
1976
1976
|
function Vs(e, t) {
|
|
1977
1977
|
return p(), A("svg", Is, t[0] || (t[0] = [
|
|
1978
|
-
$o('<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)
|
|
1978
|
+
Oo('<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)
|
|
1979
1979
|
]));
|
|
1980
1980
|
}
|
|
1981
1981
|
const As = { render: Vs }, Ns = {}, Ms = { class: "wrapper" }, Us = { class: "content" };
|
|
1982
1982
|
function Ts(e, t) {
|
|
1983
|
-
const o =
|
|
1983
|
+
const o = E("el-button");
|
|
1984
1984
|
return p(), A("div", Ms, [
|
|
1985
1985
|
t[4] || (t[4] = y("img", { src: As }, null, -1)),
|
|
1986
1986
|
y("div", Us, [
|
|
1987
1987
|
t[3] || (t[3] = y("h1", null, "You have no permission to access the page.", -1)),
|
|
1988
1988
|
m(o, { type: "primary" }, {
|
|
1989
1989
|
default: d(() => t[1] || (t[1] = [
|
|
1990
|
-
|
|
1990
|
+
K("Apply")
|
|
1991
1991
|
])),
|
|
1992
1992
|
_: 1
|
|
1993
1993
|
}),
|
|
@@ -1995,7 +1995,7 @@ function Ts(e, t) {
|
|
|
1995
1995
|
onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
|
|
1996
1996
|
}, {
|
|
1997
1997
|
default: d(() => t[2] || (t[2] = [
|
|
1998
|
-
|
|
1998
|
+
K("Go Back")
|
|
1999
1999
|
])),
|
|
2000
2000
|
_: 1
|
|
2001
2001
|
})
|
|
@@ -2004,7 +2004,7 @@ function Ts(e, t) {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
const Ds = /* @__PURE__ */ ye(Ns, [["render", Ts], ["__scopeId", "data-v-0155b361"]]), Fs = {};
|
|
2006
2006
|
function Rs(e, t) {
|
|
2007
|
-
const o =
|
|
2007
|
+
const o = E("router-view");
|
|
2008
2008
|
return p(), I(o);
|
|
2009
2009
|
}
|
|
2010
2010
|
const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper" }, js = ["onClick"], zs = { class: "card-inner-wrapper" }, qs = { class: "card-title" }, Bs = { class: "icon" }, Hs = /* @__PURE__ */ Se({
|
|
@@ -2033,7 +2033,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2033
2033
|
He(() => {
|
|
2034
2034
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
2035
2035
|
});
|
|
2036
|
-
}),
|
|
2036
|
+
}), Ee(
|
|
2037
2037
|
() => s.cards,
|
|
2038
2038
|
(a) => {
|
|
2039
2039
|
if (o.query.tab !== void 0) {
|
|
@@ -2049,7 +2049,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2049
2049
|
deep: !0
|
|
2050
2050
|
}
|
|
2051
2051
|
), (a, i) => (p(), A("div", Ls, [
|
|
2052
|
-
(p(!0), A(
|
|
2052
|
+
(p(!0), A(ie, null, fe(s.cards, (f) => (p(), A("div", {
|
|
2053
2053
|
class: Rt(["card", { "card-selected": r.value === f.key }]),
|
|
2054
2054
|
onClick: (w) => l(f)
|
|
2055
2055
|
}, [
|
|
@@ -2059,7 +2059,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2059
2059
|
f.icon ? (p(), I(st(f.icon), {
|
|
2060
2060
|
key: 0,
|
|
2061
2061
|
class: "svg-icon"
|
|
2062
|
-
})) :
|
|
2062
|
+
})) : J("", !0)
|
|
2063
2063
|
]),
|
|
2064
2064
|
y("span", {
|
|
2065
2065
|
style: je({ color: f.disabled ? "#aaa" : "black" })
|
|
@@ -2092,13 +2092,13 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2092
2092
|
},
|
|
2093
2093
|
emits: ["update:id"],
|
|
2094
2094
|
setup(e, { expose: t, emit: o }) {
|
|
2095
|
-
const { t: n } = rt.global, s = e, r = de({}), l = V(!1), a = V(), i = de({}), f = V(!0), w = (
|
|
2096
|
-
(
|
|
2095
|
+
const { t: n } = rt.global, s = e, r = de({}), l = V(!1), a = V(), i = de({}), f = V(!0), w = (_) => s.mode === "view" && (G(_, void 0) || G(_, "input") || G(_, "select") || G(_, "password") || G(_, "input-number")), $ = Te(() => s.model.fields ? s.model.fields.filter(
|
|
2096
|
+
(_) => {
|
|
2097
2097
|
var P, u, c, C;
|
|
2098
|
-
let h =
|
|
2099
|
-
if (s.mode !== "view" && ((u =
|
|
2098
|
+
let h = _.visible !== !1 && ((P = _.formItemAttributes) == null ? void 0 : P.visible) !== !1;
|
|
2099
|
+
if (s.mode !== "view" && ((u = _.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = _.formItemAttributes) == null ? void 0 : c.type) === "password")
|
|
2100
2100
|
return !1;
|
|
2101
|
-
let S = (C =
|
|
2101
|
+
let S = (C = _.formItemAttributes) == null ? void 0 : C.showCondition;
|
|
2102
2102
|
if (S && S.field && S.value !== void 0) {
|
|
2103
2103
|
if (S.operator === void 0 || S.operator === "==")
|
|
2104
2104
|
return r[S.field] === S.value;
|
|
@@ -2112,47 +2112,47 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2112
2112
|
return h;
|
|
2113
2113
|
}
|
|
2114
2114
|
) : []);
|
|
2115
|
-
|
|
2115
|
+
Ee([() => s.id, () => s.sessionId], () => {
|
|
2116
2116
|
console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), M();
|
|
2117
2117
|
}, {
|
|
2118
2118
|
immediate: !0
|
|
2119
2119
|
});
|
|
2120
2120
|
function N() {
|
|
2121
2121
|
console.log("FormView.initFormFields: begin");
|
|
2122
|
-
const
|
|
2122
|
+
const _ = s.model.fields;
|
|
2123
2123
|
let h = {};
|
|
2124
|
-
|
|
2125
|
-
var P, u, c, C,
|
|
2124
|
+
_ == null || _.forEach((S) => {
|
|
2125
|
+
var P, u, c, C, O, L, U, T, b, j, H, g, k;
|
|
2126
2126
|
if (r[S.prop] = null, S.visible !== !1 && ((P = S.formItemAttributes) == null ? void 0 : P.visible) !== !1) {
|
|
2127
2127
|
if (((u = S.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[S.prop] = (c = S.formItemAttributes) == null ? void 0 : c.defaultValue : r[S.prop] = void 0, s.mode !== "view") {
|
|
2128
|
-
let
|
|
2129
|
-
|
|
2128
|
+
let W = (C = S.formItemAttributes) == null ? void 0 : C.validationRule;
|
|
2129
|
+
W !== void 0 && (h[S.prop] = W), ze(i), Object.assign(i, h);
|
|
2130
2130
|
}
|
|
2131
|
-
const v = S.formItemAttributes,
|
|
2132
|
-
if (
|
|
2131
|
+
const v = S.formItemAttributes, Y = v == null ? void 0 : v.type, z = (O = v == null ? void 0 : v.selectAttributes) == null ? void 0 : O.useDatableDict, te = (L = v == null ? void 0 : v.selectAttributes) == null ? void 0 : L.dictId, ne = (U = v == null ? void 0 : v.selectAttributes) == null ? void 0 : U.api, re = (T = v == null ? void 0 : v.selectAttributes) == null ? void 0 : T.valueMappingField, Q = (b = v == null ? void 0 : v.selectAttributes) == null ? void 0 : b.labelMappingField;
|
|
2132
|
+
if (Y === "select") {
|
|
2133
2133
|
if (z) {
|
|
2134
|
-
let
|
|
2135
|
-
const
|
|
2136
|
-
|
|
2134
|
+
let se = `${Te(() => 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=${te}`;
|
|
2135
|
+
const ae = (j = v == null ? void 0 : v.selectAttributes) == null ? void 0 : j.queryParamName, me = (H = v == null ? void 0 : v.selectAttributes) == null ? void 0 : H.queryParamValueField;
|
|
2136
|
+
ae && (se = `${se}?${ae}=${s.id}`), me || Ce(se, "GET", {}).then(({ data: he }) => {
|
|
2137
2137
|
var oe;
|
|
2138
2138
|
if ((oe = S.formItemAttributes) != null && oe.selectAttributes) {
|
|
2139
|
-
let
|
|
2140
|
-
Array.isArray(he.data) ?
|
|
2139
|
+
let ge = [];
|
|
2140
|
+
Array.isArray(he.data) ? ge = he.data : he.data.list && Array.isArray(he.data.list) && (ge = he.data.list), S.formItemAttributes.selectAttributes.options = ge.map((Ie) => ({
|
|
2141
2141
|
value: Ie.dbOrdinal,
|
|
2142
2142
|
label: Ie.value
|
|
2143
2143
|
}));
|
|
2144
2144
|
}
|
|
2145
2145
|
});
|
|
2146
2146
|
} else if (ne) {
|
|
2147
|
-
let
|
|
2148
|
-
const
|
|
2149
|
-
|
|
2147
|
+
let W = ne;
|
|
2148
|
+
const se = (g = v == null ? void 0 : v.selectAttributes) == null ? void 0 : g.queryParamName, ae = (k = v == null ? void 0 : v.selectAttributes) == null ? void 0 : k.queryParamValueField;
|
|
2149
|
+
se && (ae ? W = `${W}?${se}=${r[ae]}` : W = `${W}?${se}=${s.id}`, console.log("Use select option API, url = %s, queryParamValueField = %s, formData = %o", W, ae, r)), Ce(W, "GET", {}).then(({ data: me }) => {
|
|
2150
2150
|
var he;
|
|
2151
2151
|
if ((he = S.formItemAttributes) != null && he.selectAttributes) {
|
|
2152
2152
|
let oe = [];
|
|
2153
|
-
Array.isArray(me.data) ? oe = me.data : me.data.list && Array.isArray(me.data.list) && (oe = me.data.list), S.formItemAttributes.selectAttributes.options = oe.map((
|
|
2154
|
-
value:
|
|
2155
|
-
label: Q ?
|
|
2153
|
+
Array.isArray(me.data) ? oe = me.data : me.data.list && Array.isArray(me.data.list) && (oe = me.data.list), S.formItemAttributes.selectAttributes.options = oe.map((ge) => ({
|
|
2154
|
+
value: re ? ge[re] : ge.value,
|
|
2155
|
+
label: Q ? ge[Q] : ge.label
|
|
2156
2156
|
}));
|
|
2157
2157
|
}
|
|
2158
2158
|
});
|
|
@@ -2162,76 +2162,76 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2162
2162
|
});
|
|
2163
2163
|
}
|
|
2164
2164
|
function M() {
|
|
2165
|
-
var
|
|
2166
|
-
console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), F(), f.value = (
|
|
2165
|
+
var _;
|
|
2166
|
+
console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), F(), f.value = (_ = s.model.useI18n) != null ? _ : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ce(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: h }) => {
|
|
2167
2167
|
ze(r), Object.assign(r, h.data), l.value = !1;
|
|
2168
2168
|
}));
|
|
2169
2169
|
}
|
|
2170
2170
|
function q() {
|
|
2171
|
-
return new Promise((
|
|
2171
|
+
return new Promise((_, h) => {
|
|
2172
2172
|
var P, u, c, C;
|
|
2173
2173
|
((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (C = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : C.beforeSubmit(r));
|
|
2174
2174
|
let S = s.mode === "create" ? "POST" : "PUT";
|
|
2175
|
-
s.model.api && Ce(s.model.api, S, r).then(({ data:
|
|
2175
|
+
s.model.api && Ce(s.model.api, S, r).then(({ data: O }) => {
|
|
2176
2176
|
var L, U, T, b;
|
|
2177
|
-
|
|
2177
|
+
O.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((U = (L = s.model.formConfig) == null ? void 0 : L.functions) == null ? void 0 : U.afterSubmit) !== void 0 && ((b = (T = s.model.formConfig) == null ? void 0 : T.functions) == null || b.afterSubmit(O.data)), s.afterSubmitFunc && s.afterSubmitFunc(), _());
|
|
2178
2178
|
});
|
|
2179
2179
|
});
|
|
2180
2180
|
}
|
|
2181
2181
|
function F() {
|
|
2182
|
-
var
|
|
2183
|
-
console.log("FormView.reset: begin"), (
|
|
2182
|
+
var _;
|
|
2183
|
+
console.log("FormView.reset: begin"), (_ = a.value) == null || _.resetFields();
|
|
2184
2184
|
}
|
|
2185
|
-
function Z(
|
|
2186
|
-
return
|
|
2185
|
+
function Z(_) {
|
|
2186
|
+
return _.label ? f ? n(_.label) : _.label : _.prop.slice(0, 1).toUpperCase() + _.prop.slice(1).toLowerCase();
|
|
2187
2187
|
}
|
|
2188
|
-
function B(
|
|
2188
|
+
function B(_) {
|
|
2189
2189
|
var h, S, P, u;
|
|
2190
|
-
if (
|
|
2191
|
-
if (G(
|
|
2192
|
-
const c = (S = (h =
|
|
2190
|
+
if (_) {
|
|
2191
|
+
if (G(_, "select")) {
|
|
2192
|
+
const c = (S = (h = _.tableColumnAttributes) == null ? void 0 : h.functions) == null ? void 0 : S.transformValue;
|
|
2193
2193
|
if (c)
|
|
2194
|
-
return c(r[
|
|
2195
|
-
const C = (u = (P =
|
|
2194
|
+
return c(r[_.prop]);
|
|
2195
|
+
const C = (u = (P = _.formItemAttributes) == null ? void 0 : P.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2196
2196
|
if (C)
|
|
2197
2197
|
return r[C];
|
|
2198
2198
|
}
|
|
2199
|
-
return r[
|
|
2199
|
+
return r[_.prop];
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function ce(_) {
|
|
2203
2203
|
var h;
|
|
2204
|
-
return ((h =
|
|
2204
|
+
return ((h = _.formItemAttributes) == null ? void 0 : h.updatable) === !1 && s.mode === "update";
|
|
2205
2205
|
}
|
|
2206
|
-
function R(
|
|
2206
|
+
function R(_, h) {
|
|
2207
2207
|
var P, u;
|
|
2208
2208
|
const S = (u = (P = h.formItemAttributes) == null ? void 0 : P.type) != null ? u : "input";
|
|
2209
|
-
switch (
|
|
2209
|
+
switch (_) {
|
|
2210
2210
|
case "input":
|
|
2211
2211
|
return s.mode === "view" ? !1 : S === "input" || S === "password";
|
|
2212
2212
|
case "select":
|
|
2213
2213
|
return !0;
|
|
2214
2214
|
default:
|
|
2215
|
-
return console.log("Error: unrecognized form component type: ",
|
|
2215
|
+
return console.log("Error: unrecognized form component type: ", _), !0;
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
|
-
function G(
|
|
2218
|
+
function G(_, h) {
|
|
2219
2219
|
var S;
|
|
2220
|
-
return ((S =
|
|
2220
|
+
return ((S = _.formItemAttributes) == null ? void 0 : S.type) === h;
|
|
2221
2221
|
}
|
|
2222
|
-
function ee(
|
|
2222
|
+
function ee(_) {
|
|
2223
2223
|
var h;
|
|
2224
2224
|
for (let S of s.model.fields) {
|
|
2225
2225
|
const P = (h = S.formItemAttributes) == null ? void 0 : h.selectAttributes;
|
|
2226
|
-
if (!(!S.formItemAttributes || S.formItemAttributes.type !== "select" || !P || !P.queryParamValueField) && P.queryParamValueField ===
|
|
2226
|
+
if (!(!S.formItemAttributes || S.formItemAttributes.type !== "select" || !P || !P.queryParamValueField) && P.queryParamValueField === _.prop) {
|
|
2227
2227
|
const u = P.api;
|
|
2228
2228
|
if (u) {
|
|
2229
2229
|
let c = u;
|
|
2230
2230
|
const C = P.queryParamName;
|
|
2231
|
-
C && (c = `${c}?${C}=${r[P.queryParamValueField]}`), Ce(c, "GET", {}).then(({ data:
|
|
2231
|
+
C && (c = `${c}?${C}=${r[P.queryParamValueField]}`), Ce(c, "GET", {}).then(({ data: O }) => {
|
|
2232
2232
|
if (P) {
|
|
2233
2233
|
let L = [];
|
|
2234
|
-
Array.isArray(
|
|
2234
|
+
Array.isArray(O.data) ? L = O.data : O.data.list && Array.isArray(O.data.list) && (L = O.data.list), P.options = L.map((U) => ({
|
|
2235
2235
|
value: P.valueMappingField ? U[P.valueMappingField] : U.value,
|
|
2236
2236
|
label: P.labelMappingField ? U[P.labelMappingField] : U.label
|
|
2237
2237
|
}));
|
|
@@ -2246,8 +2246,8 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2246
2246
|
reset: F,
|
|
2247
2247
|
submit: q,
|
|
2248
2248
|
formData: r
|
|
2249
|
-
}), (
|
|
2250
|
-
const S =
|
|
2249
|
+
}), (_, h) => {
|
|
2250
|
+
const S = E("el-input"), P = E("el-switch"), u = E("el-date-picker"), c = E("el-option"), C = E("el-select"), O = E("el-input-number"), L = E("el-form-item"), U = E("el-form"), T = Gt("loading");
|
|
2251
2251
|
return Lt((p(), I(U, {
|
|
2252
2252
|
ref_key: "formRef",
|
|
2253
2253
|
ref: a,
|
|
@@ -2260,14 +2260,14 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2260
2260
|
inline: !s.disableInline
|
|
2261
2261
|
}, {
|
|
2262
2262
|
default: d(() => [
|
|
2263
|
-
(p(!0), A(
|
|
2263
|
+
(p(!0), A(ie, null, fe($.value, (b) => (p(), I(L, {
|
|
2264
2264
|
class: "form-item",
|
|
2265
2265
|
style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2266
2266
|
prop: b.prop,
|
|
2267
2267
|
label: Z(b)
|
|
2268
2268
|
}, {
|
|
2269
2269
|
default: d(() => {
|
|
2270
|
-
var j, H,
|
|
2270
|
+
var j, H, g, k, v, Y, z, te, ne, re, Q, W, se, ae, me, he;
|
|
2271
2271
|
return [
|
|
2272
2272
|
R("input", b) ? (p(), I(S, {
|
|
2273
2273
|
key: 0,
|
|
@@ -2275,15 +2275,15 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2275
2275
|
modelValue: r[b.prop],
|
|
2276
2276
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2277
2277
|
placeholder: (j = b.formItemAttributes) == null ? void 0 : j.placeholder,
|
|
2278
|
-
disabled:
|
|
2279
|
-
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
2280
|
-
w(b) ? (p(), A("span", Ws, D(B(b)), 1)) :
|
|
2278
|
+
disabled: ce(b)
|
|
2279
|
+
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
|
|
2280
|
+
w(b) ? (p(), A("span", Ws, D(B(b)), 1)) : J("", !0),
|
|
2281
2281
|
G(b, "switch") ? (p(), I(P, {
|
|
2282
2282
|
key: 2,
|
|
2283
2283
|
modelValue: r[b.prop],
|
|
2284
2284
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2285
|
-
disabled:
|
|
2286
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2285
|
+
disabled: _.mode === "view"
|
|
2286
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : J("", !0),
|
|
2287
2287
|
G(b, "datepicker") ? (p(), I(u, {
|
|
2288
2288
|
key: 3,
|
|
2289
2289
|
style: { width: "100%" },
|
|
@@ -2291,38 +2291,38 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2291
2291
|
"value-format": "YYYY-MM-DD",
|
|
2292
2292
|
modelValue: r[b.prop],
|
|
2293
2293
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2294
|
-
disabled:
|
|
2295
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2296
|
-
G(b, "select") &&
|
|
2294
|
+
disabled: _.mode === "view"
|
|
2295
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : J("", !0),
|
|
2296
|
+
G(b, "select") && _.mode !== "view" ? (p(), I(C, {
|
|
2297
2297
|
key: 4,
|
|
2298
|
-
filterable: (
|
|
2298
|
+
filterable: (g = (H = b.formItemAttributes) == null ? void 0 : H.selectAttributes) == null ? void 0 : g.allowCreate,
|
|
2299
2299
|
"allow-create": (v = (k = b.formItemAttributes) == null ? void 0 : k.selectAttributes) == null ? void 0 : v.allowCreate,
|
|
2300
|
-
"default-first-option": (z = (
|
|
2300
|
+
"default-first-option": (z = (Y = b.formItemAttributes) == null ? void 0 : Y.selectAttributes) == null ? void 0 : z.allowCreate,
|
|
2301
2301
|
modelValue: r[b.prop],
|
|
2302
2302
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2303
|
-
disabled:
|
|
2303
|
+
disabled: ce(b),
|
|
2304
2304
|
onChange: (oe) => ee(b)
|
|
2305
2305
|
}, {
|
|
2306
2306
|
default: d(() => {
|
|
2307
|
-
var oe,
|
|
2307
|
+
var oe, ge;
|
|
2308
2308
|
return [
|
|
2309
|
-
(p(!0), A(
|
|
2309
|
+
(p(!0), A(ie, null, fe((ge = (oe = b.formItemAttributes) == null ? void 0 : oe.selectAttributes) == null ? void 0 : ge.options, (Ie) => (p(), I(c, {
|
|
2310
2310
|
value: Ie.value,
|
|
2311
2311
|
label: Ie.label
|
|
2312
2312
|
}, null, 8, ["value", "label"]))), 256))
|
|
2313
2313
|
];
|
|
2314
2314
|
}),
|
|
2315
2315
|
_: 2
|
|
2316
|
-
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) :
|
|
2317
|
-
G(b, "input-number") &&
|
|
2316
|
+
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : J("", !0),
|
|
2317
|
+
G(b, "input-number") && _.mode !== "view" ? (p(), I(O, {
|
|
2318
2318
|
key: 5,
|
|
2319
2319
|
modelValue: r[b.prop],
|
|
2320
2320
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2321
|
-
min: (
|
|
2322
|
-
max: (
|
|
2323
|
-
step: (he = (me = (
|
|
2321
|
+
min: (re = (ne = (te = b.formItemAttributes) == null ? void 0 : te.inputNumber) == null ? void 0 : ne.min) != null ? re : Number.NEGATIVE_INFINITY,
|
|
2322
|
+
max: (se = (W = (Q = b.formItemAttributes) == null ? void 0 : Q.inputNumber) == null ? void 0 : W.max) != null ? se : Number.POSITIVE_INFINITY,
|
|
2323
|
+
step: (he = (me = (ae = b.formItemAttributes) == null ? void 0 : ae.inputNumber) == null ? void 0 : me.step) != null ? he : 1,
|
|
2324
2324
|
"value-on-clear": -10
|
|
2325
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) :
|
|
2325
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : J("", !0)
|
|
2326
2326
|
];
|
|
2327
2327
|
}),
|
|
2328
2328
|
_: 2
|
|
@@ -2334,10 +2334,10 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2334
2334
|
]);
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
|
-
}), ho = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-
|
|
2337
|
+
}), ho = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-32d25b13"]]), Ys = { class: "console-dialog__body" }, Ks = {
|
|
2338
2338
|
key: 0,
|
|
2339
2339
|
class: "process-view"
|
|
2340
|
-
}, Qs = { class: "operation-button-wrapper" },
|
|
2340
|
+
}, Qs = { class: "operation-button-wrapper" }, go = /* @__PURE__ */ Se({
|
|
2341
2341
|
__name: "FormDialog",
|
|
2342
2342
|
props: {
|
|
2343
2343
|
id: {},
|
|
@@ -2350,7 +2350,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2350
2350
|
emits: ["update:visible", "update:id"],
|
|
2351
2351
|
setup(e, { expose: t, emit: o }) {
|
|
2352
2352
|
const { t: n } = Qe(), s = e, r = V(0), l = o, a = V();
|
|
2353
|
-
|
|
2353
|
+
Ee(() => s.visible, () => {
|
|
2354
2354
|
s.visible && r.value++;
|
|
2355
2355
|
});
|
|
2356
2356
|
function i() {
|
|
@@ -2365,8 +2365,8 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2365
2365
|
return t({
|
|
2366
2366
|
close: f,
|
|
2367
2367
|
refresh: i
|
|
2368
|
-
}), (
|
|
2369
|
-
const M =
|
|
2368
|
+
}), ($, N) => {
|
|
2369
|
+
const M = E("el-step"), q = E("el-steps"), F = E("el-button"), Z = E("el-dialog");
|
|
2370
2370
|
return p(), I(Z, {
|
|
2371
2371
|
class: "console-dialog",
|
|
2372
2372
|
title: "Edit",
|
|
@@ -2383,11 +2383,11 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2383
2383
|
style: je({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2384
2384
|
}, [
|
|
2385
2385
|
y("div", Qs, [
|
|
2386
|
-
(p(!0), A(
|
|
2387
|
-
onClick: (R) =>
|
|
2386
|
+
(p(!0), A(ie, null, fe((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ce) => (p(), I(F, {
|
|
2387
|
+
onClick: (R) => ce.function(a.value.formData)
|
|
2388
2388
|
}, {
|
|
2389
2389
|
default: d(() => [
|
|
2390
|
-
|
|
2390
|
+
K(D(x(n)(ce.label)), 1)
|
|
2391
2391
|
]),
|
|
2392
2392
|
_: 2
|
|
2393
2393
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2395,7 +2395,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2395
2395
|
y("div", null, [
|
|
2396
2396
|
m(F, { onClick: f }, {
|
|
2397
2397
|
default: d(() => [
|
|
2398
|
-
|
|
2398
|
+
K(D(x(n)("common.basic.cancel")), 1)
|
|
2399
2399
|
]),
|
|
2400
2400
|
_: 1
|
|
2401
2401
|
}),
|
|
@@ -2404,7 +2404,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2404
2404
|
onClick: w
|
|
2405
2405
|
}, {
|
|
2406
2406
|
default: d(() => [
|
|
2407
|
-
|
|
2407
|
+
K(D(x(n)("common.basic.save")), 1)
|
|
2408
2408
|
]),
|
|
2409
2409
|
_: 1
|
|
2410
2410
|
})
|
|
@@ -2416,7 +2416,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2416
2416
|
y("div", Ys, [
|
|
2417
2417
|
m(ho, {
|
|
2418
2418
|
class: "form-view",
|
|
2419
|
-
style: je({ width:
|
|
2419
|
+
style: je({ width: $.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2420
2420
|
ref_key: "formViewRef",
|
|
2421
2421
|
ref: a,
|
|
2422
2422
|
id: s.id,
|
|
@@ -2427,7 +2427,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2427
2427
|
closeDialogFunc: f,
|
|
2428
2428
|
disableInline: s.showProcess
|
|
2429
2429
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2430
|
-
|
|
2430
|
+
$.showProcess ? (p(), A("div", Ks, [
|
|
2431
2431
|
N[0] || (N[0] = y("h1", null, "流程动态", -1)),
|
|
2432
2432
|
m(q, {
|
|
2433
2433
|
style: { height: "90%" },
|
|
@@ -2440,7 +2440,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2440
2440
|
]),
|
|
2441
2441
|
_: 1
|
|
2442
2442
|
})
|
|
2443
|
-
])) :
|
|
2443
|
+
])) : J("", !0)
|
|
2444
2444
|
])
|
|
2445
2445
|
]),
|
|
2446
2446
|
_: 1
|
|
@@ -2470,37 +2470,37 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2470
2470
|
setup(e, { expose: t }) {
|
|
2471
2471
|
const { t: o } = rt.global, n = e, s = de([]), r = de({
|
|
2472
2472
|
showPane: !0
|
|
2473
|
-
}), l = V(""), a = V(!0), i = V(!1), f = it(), w = V(""),
|
|
2473
|
+
}), l = V(""), a = V(!0), i = V(!1), f = it(), w = V(""), $ = de([]), N = de([]), M = V(), q = V([]), F = V("create"), Z = V(!0), B = V(!1), ce = V(""), R = de({
|
|
2474
2474
|
pageSize: 10,
|
|
2475
2475
|
pageNo: 1,
|
|
2476
2476
|
totalElements: 0
|
|
2477
2477
|
}), G = Te(() => s.filter(
|
|
2478
|
-
(
|
|
2478
|
+
(g) => {
|
|
2479
2479
|
var k, v;
|
|
2480
|
-
return ((k =
|
|
2480
|
+
return ((k = g.formItemAttributes) == null ? void 0 : k.type) !== "password" && g.visible !== !1 && ((v = g.tableColumnAttributes) == null ? void 0 : v.visible) !== !1;
|
|
2481
2481
|
}
|
|
2482
2482
|
));
|
|
2483
|
-
function ee(
|
|
2484
|
-
var te, ne,
|
|
2485
|
-
let v = k.row[
|
|
2486
|
-
const
|
|
2487
|
-
if (
|
|
2488
|
-
v =
|
|
2483
|
+
function ee(g, k) {
|
|
2484
|
+
var te, ne, re, Q;
|
|
2485
|
+
let v = k.row[g.prop];
|
|
2486
|
+
const Y = (ne = (te = g.tableColumnAttributes) == null ? void 0 : te.functions) == null ? void 0 : ne.transformValue, z = (re = g.tableColumnAttributes) == null ? void 0 : re.transformValueMappings;
|
|
2487
|
+
if (Y)
|
|
2488
|
+
v = Y(v);
|
|
2489
2489
|
else if (z && z.length > 0) {
|
|
2490
|
-
for (let
|
|
2491
|
-
if (v ===
|
|
2492
|
-
v = o(
|
|
2490
|
+
for (let W of z)
|
|
2491
|
+
if (v === W.value) {
|
|
2492
|
+
v = o(W.label);
|
|
2493
2493
|
break;
|
|
2494
2494
|
}
|
|
2495
|
-
} else if (((Q =
|
|
2496
|
-
const
|
|
2497
|
-
if (
|
|
2498
|
-
if (
|
|
2499
|
-
v = k.row[
|
|
2500
|
-
else if (
|
|
2501
|
-
for (let
|
|
2502
|
-
if (
|
|
2503
|
-
v =
|
|
2495
|
+
} else if (((Q = g.formItemAttributes) == null ? void 0 : Q.type) === "select") {
|
|
2496
|
+
const W = g.formItemAttributes.selectAttributes;
|
|
2497
|
+
if (W) {
|
|
2498
|
+
if (W.viewModeLabelField)
|
|
2499
|
+
v = k.row[W.viewModeLabelField];
|
|
2500
|
+
else if (W.options && W.options.length > 0) {
|
|
2501
|
+
for (let se of W.options)
|
|
2502
|
+
if (se.value === k.row[g.prop]) {
|
|
2503
|
+
v = se.label;
|
|
2504
2504
|
break;
|
|
2505
2505
|
}
|
|
2506
2506
|
}
|
|
@@ -2508,35 +2508,35 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2508
2508
|
}
|
|
2509
2509
|
return v;
|
|
2510
2510
|
}
|
|
2511
|
-
function g
|
|
2512
|
-
var v,
|
|
2513
|
-
return
|
|
2511
|
+
function _(g, k) {
|
|
2512
|
+
var v, Y;
|
|
2513
|
+
return g.label ? o(g.label) : (Y = (v = g.functions) == null ? void 0 : v.transformLabel) == null ? void 0 : Y.call(v, k.$index, k.row);
|
|
2514
2514
|
}
|
|
2515
|
-
function h(
|
|
2516
|
-
ze(n.model), Object.assign(n.model,
|
|
2515
|
+
function h(g) {
|
|
2516
|
+
ze(n.model), Object.assign(n.model, g);
|
|
2517
2517
|
}
|
|
2518
2518
|
function S() {
|
|
2519
|
-
var k, v,
|
|
2519
|
+
var k, v, Y;
|
|
2520
2520
|
if (Z.value = !0, !n.model || !n.model.api)
|
|
2521
2521
|
return;
|
|
2522
|
-
ze(r), r.showPane = !0, Object.assign(r, (k = n.model.tableConfig) != null ? k : {}), s.splice(0, s.length, ...n.model.fields), l.value = (v = n.model.route) != null ? v : "", a.value = (
|
|
2523
|
-
let
|
|
2524
|
-
|
|
2522
|
+
ze(r), r.showPane = !0, Object.assign(r, (k = n.model.tableConfig) != null ? k : {}), s.splice(0, s.length, ...n.model.fields), l.value = (v = n.model.route) != null ? v : "", a.value = (Y = n.model.useI18n) != null ? Y : !0;
|
|
2523
|
+
let g = Xe({}, r.queryParams);
|
|
2524
|
+
g.pageSize = R.pageSize, g.pageNo = R.pageNo, g.search = w.value, Ce(n.model.api, "GET", g).then(({ data: z }) => {
|
|
2525
2525
|
const { list: te, totalCount: ne } = z.data;
|
|
2526
|
-
|
|
2526
|
+
$.splice(0, $.length, ...te), R.totalElements = ne, Z.value = !1;
|
|
2527
2527
|
});
|
|
2528
2528
|
}
|
|
2529
2529
|
function P() {
|
|
2530
|
-
var
|
|
2531
|
-
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((
|
|
2530
|
+
var g, k;
|
|
2531
|
+
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((g = r.functions) == null ? void 0 : g.create) !== void 0 ? (k = r.functions) == null || k.create() : (F.value = "create", ce.value = "", i.value = !0);
|
|
2532
2532
|
}
|
|
2533
|
-
function u(
|
|
2533
|
+
function u(g, k) {
|
|
2534
2534
|
n.model.api && Ce(n.model.api, "DELETE", k.id).then(({ data: v }) => {
|
|
2535
2535
|
v.code === 0 && (i.value = !1, S());
|
|
2536
2536
|
});
|
|
2537
2537
|
}
|
|
2538
2538
|
function c() {
|
|
2539
|
-
|
|
2539
|
+
$t.confirm(
|
|
2540
2540
|
"The selected items will be deleted. Continue?",
|
|
2541
2541
|
o("common.table.warning"),
|
|
2542
2542
|
{
|
|
@@ -2545,13 +2545,13 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2545
2545
|
type: "warning"
|
|
2546
2546
|
}
|
|
2547
2547
|
).then(() => {
|
|
2548
|
-
var
|
|
2549
|
-
if (((
|
|
2548
|
+
var g, k;
|
|
2549
|
+
if (((g = r.functions) == null ? void 0 : g.batchDelete) !== void 0)
|
|
2550
2550
|
(k = r.functions) == null || k.batchDelete(q.value);
|
|
2551
2551
|
else {
|
|
2552
|
-
const v = q.value.map((
|
|
2553
|
-
ve.delete(`${n.model.api}/${v.join(",")}`).then(({ data:
|
|
2554
|
-
|
|
2552
|
+
const v = q.value.map((Y) => Y.id);
|
|
2553
|
+
ve.delete(`${n.model.api}/${v.join(",")}`).then(({ data: Y }) => {
|
|
2554
|
+
Y.code === 0 && (i.value = !1, S());
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
2557
2557
|
M.value.clearSelection();
|
|
@@ -2559,60 +2559,60 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2559
2559
|
M.value.clearSelection();
|
|
2560
2560
|
});
|
|
2561
2561
|
}
|
|
2562
|
-
function C(
|
|
2563
|
-
R.pageSize =
|
|
2562
|
+
function C(g) {
|
|
2563
|
+
R.pageSize = g, S();
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2566
|
-
R.pageNo =
|
|
2565
|
+
function O(g) {
|
|
2566
|
+
R.pageNo = g, S();
|
|
2567
2567
|
}
|
|
2568
|
-
function L(
|
|
2568
|
+
function L(g, k) {
|
|
2569
2569
|
r.editPageRoutePath !== void 0 ? f.push({
|
|
2570
2570
|
path: r.editPageRoutePath,
|
|
2571
2571
|
query: {
|
|
2572
2572
|
id: k.id
|
|
2573
2573
|
}
|
|
2574
|
-
}) : (
|
|
2574
|
+
}) : (ce.value = k.id, F.value = "update", i.value = !0);
|
|
2575
2575
|
}
|
|
2576
2576
|
function U() {
|
|
2577
2577
|
var v;
|
|
2578
|
-
let
|
|
2578
|
+
let g = ((v = n.model.api) != null && v.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
|
|
2579
2579
|
const k = r.queryParams;
|
|
2580
|
-
k !== void 0 && Object.keys(k).length > 0 && (
|
|
2581
|
-
|
|
2582
|
-
})), window.open(
|
|
2580
|
+
k !== void 0 && Object.keys(k).length > 0 && (g += "?", Object.entries(r.queryParams).map((Y) => {
|
|
2581
|
+
g += `${Y[0]}=${Y[1]}&`;
|
|
2582
|
+
})), window.open(g);
|
|
2583
2583
|
}
|
|
2584
|
-
function T(
|
|
2585
|
-
q.value =
|
|
2584
|
+
function T(g) {
|
|
2585
|
+
q.value = g;
|
|
2586
2586
|
}
|
|
2587
|
-
function b(
|
|
2588
|
-
return
|
|
2587
|
+
function b(g) {
|
|
2588
|
+
return g.label ? a.value ? o(g.label) : g.label : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase();
|
|
2589
2589
|
}
|
|
2590
|
-
function j(
|
|
2591
|
-
|
|
2590
|
+
function j(g) {
|
|
2591
|
+
g ? (B.value = !0, N.splice(0, N.length, ...$), $.splice(0, $.length, ...q.value)) : (B.value = !1, $.splice(0, $.length, ...N));
|
|
2592
2592
|
}
|
|
2593
2593
|
function H() {
|
|
2594
2594
|
var te;
|
|
2595
2595
|
if (q.value.length === 0) {
|
|
2596
|
-
|
|
2596
|
+
$t.alert("Select rows before printing", "Print", {
|
|
2597
2597
|
confirmButtonText: "OK"
|
|
2598
2598
|
});
|
|
2599
2599
|
return;
|
|
2600
2600
|
}
|
|
2601
|
-
let
|
|
2601
|
+
let g = "";
|
|
2602
2602
|
G.value.forEach((ne) => {
|
|
2603
|
-
var
|
|
2604
|
-
|
|
2603
|
+
var re;
|
|
2604
|
+
g += `<th>${o((re = ne.label) != null ? re : "")}</th>`;
|
|
2605
2605
|
});
|
|
2606
2606
|
let k = "";
|
|
2607
2607
|
q.value.forEach((ne) => {
|
|
2608
|
-
k += "<tr>", G.value.forEach((
|
|
2609
|
-
k += `<td>${ne[
|
|
2608
|
+
k += "<tr>", G.value.forEach((re) => {
|
|
2609
|
+
k += `<td>${ne[re.prop]}</td>`;
|
|
2610
2610
|
}), k += "</tr>";
|
|
2611
2611
|
});
|
|
2612
|
-
let v = `<table><tr>${
|
|
2613
|
-
const
|
|
2614
|
-
|
|
2615
|
-
const z =
|
|
2612
|
+
let v = `<table><tr>${g}</tr>${k}</table>`;
|
|
2613
|
+
const Y = document.createElement("iframe");
|
|
2614
|
+
Y.style.display = "none", document.body.appendChild(Y);
|
|
2615
|
+
const z = Y.contentDocument || ((te = Y.contentWindow) == null ? void 0 : te.document);
|
|
2616
2616
|
z == null || z.open(), z == null || z.write(`
|
|
2617
2617
|
<!DOCTYPE html>
|
|
2618
2618
|
<html>
|
|
@@ -2664,7 +2664,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2664
2664
|
</html>
|
|
2665
2665
|
`), z == null || z.close();
|
|
2666
2666
|
}
|
|
2667
|
-
return
|
|
2667
|
+
return Ee(() => n.model, () => {
|
|
2668
2668
|
S();
|
|
2669
2669
|
}, {
|
|
2670
2670
|
deep: !0,
|
|
@@ -2673,14 +2673,14 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2673
2673
|
multipleSelection: q,
|
|
2674
2674
|
refresh: S,
|
|
2675
2675
|
updateConfigAndRefresh: h
|
|
2676
|
-
}), (
|
|
2677
|
-
const v =
|
|
2676
|
+
}), (g, k) => {
|
|
2677
|
+
const v = E("el-checkbox"), Y = E("el-badge"), z = E("el-button"), te = E("el-dropdown-item"), ne = E("el-dropdown-menu"), re = E("el-dropdown"), Q = E("el-icon"), W = E("el-tooltip"), se = E("el-input"), ae = E("el-table-column"), me = E("router-link"), he = E("el-tag"), oe = E("el-popconfirm"), ge = E("el-table"), Ie = E("el-pagination"), _o = Gt("loading");
|
|
2678
2678
|
return p(), A("div", {
|
|
2679
2679
|
class: Rt({ "table-view-wrapper": r.showPane })
|
|
2680
2680
|
}, [
|
|
2681
2681
|
y("div", tr, [
|
|
2682
2682
|
y("div", or, [
|
|
2683
|
-
r.selectMode ? (p(), I(
|
|
2683
|
+
r.selectMode ? (p(), I(Y, {
|
|
2684
2684
|
key: 0,
|
|
2685
2685
|
value: q.value.length,
|
|
2686
2686
|
type: "primary",
|
|
@@ -2695,7 +2695,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2695
2695
|
}, null, 8, ["label"])
|
|
2696
2696
|
]),
|
|
2697
2697
|
_: 1
|
|
2698
|
-
}, 8, ["value"])) :
|
|
2698
|
+
}, 8, ["value"])) : J("", !0),
|
|
2699
2699
|
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), I(z, {
|
|
2700
2700
|
key: 1,
|
|
2701
2701
|
type: "primary",
|
|
@@ -2704,11 +2704,11 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2704
2704
|
default: d(() => {
|
|
2705
2705
|
var pe, X;
|
|
2706
2706
|
return [
|
|
2707
|
-
|
|
2707
|
+
K(D(((pe = r.labels) == null ? void 0 : pe.create) != null ? x(o)((X = r.labels) == null ? void 0 : X.create) : x(o)("common.table.create")), 1)
|
|
2708
2708
|
];
|
|
2709
2709
|
}),
|
|
2710
2710
|
_: 1
|
|
2711
|
-
})) :
|
|
2711
|
+
})) : J("", !0),
|
|
2712
2712
|
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), I(z, {
|
|
2713
2713
|
key: 2,
|
|
2714
2714
|
disabled: q.value.length == 0,
|
|
@@ -2719,17 +2719,17 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2719
2719
|
default: d(() => {
|
|
2720
2720
|
var pe, X;
|
|
2721
2721
|
return [
|
|
2722
|
-
|
|
2722
|
+
K(D(((pe = r.labels) == null ? void 0 : pe.delete) != null ? x(o)((X = r.labels) == null ? void 0 : X.delete) : x(o)("common.table.delete")), 1)
|
|
2723
2723
|
];
|
|
2724
2724
|
}),
|
|
2725
2725
|
_: 1
|
|
2726
|
-
}, 8, ["disabled"])) :
|
|
2726
|
+
}, 8, ["disabled"])) : J("", !0),
|
|
2727
2727
|
m(z, {
|
|
2728
2728
|
icon: x(qt),
|
|
2729
2729
|
style: { width: "28px" },
|
|
2730
2730
|
onClick: S
|
|
2731
2731
|
}, null, 8, ["icon"]),
|
|
2732
|
-
m(
|
|
2732
|
+
m(re, {
|
|
2733
2733
|
placement: "bottom-start",
|
|
2734
2734
|
trigger: "click"
|
|
2735
2735
|
}, {
|
|
@@ -2741,26 +2741,26 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2741
2741
|
disabled: !0
|
|
2742
2742
|
}, {
|
|
2743
2743
|
default: d(() => k[3] || (k[3] = [
|
|
2744
|
-
|
|
2744
|
+
K("导入")
|
|
2745
2745
|
])),
|
|
2746
2746
|
_: 1
|
|
2747
2747
|
}, 8, ["icon"]),
|
|
2748
2748
|
m(te, {
|
|
2749
|
-
icon: x(
|
|
2749
|
+
icon: x(Et),
|
|
2750
2750
|
divided: "",
|
|
2751
2751
|
disabled: !0
|
|
2752
2752
|
}, {
|
|
2753
2753
|
default: d(() => k[4] || (k[4] = [
|
|
2754
|
-
|
|
2754
|
+
K("导出选中内容")
|
|
2755
2755
|
])),
|
|
2756
2756
|
_: 1
|
|
2757
2757
|
}, 8, ["icon"]),
|
|
2758
2758
|
m(te, {
|
|
2759
|
-
icon: x(
|
|
2759
|
+
icon: x(Et),
|
|
2760
2760
|
onClick: U
|
|
2761
2761
|
}, {
|
|
2762
2762
|
default: d(() => k[5] || (k[5] = [
|
|
2763
|
-
|
|
2763
|
+
K("导出查询结果")
|
|
2764
2764
|
])),
|
|
2765
2765
|
_: 1
|
|
2766
2766
|
}, 8, ["icon"]),
|
|
@@ -2770,7 +2770,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2770
2770
|
disabled: !0
|
|
2771
2771
|
}, {
|
|
2772
2772
|
default: d(() => k[6] || (k[6] = [
|
|
2773
|
-
|
|
2773
|
+
K("任务中心")
|
|
2774
2774
|
])),
|
|
2775
2775
|
_: 1
|
|
2776
2776
|
}, 8, ["icon"])
|
|
@@ -2788,7 +2788,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2788
2788
|
]),
|
|
2789
2789
|
_: 1
|
|
2790
2790
|
}),
|
|
2791
|
-
m(
|
|
2791
|
+
m(re, {
|
|
2792
2792
|
placement: "bottom-start",
|
|
2793
2793
|
trigger: "click"
|
|
2794
2794
|
}, {
|
|
@@ -2800,7 +2800,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2800
2800
|
onClick: H
|
|
2801
2801
|
}, {
|
|
2802
2802
|
default: d(() => k[7] || (k[7] = [
|
|
2803
|
-
|
|
2803
|
+
K("打印")
|
|
2804
2804
|
])),
|
|
2805
2805
|
_: 1
|
|
2806
2806
|
}, 8, ["icon"]),
|
|
@@ -2809,7 +2809,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2809
2809
|
disabled: !0
|
|
2810
2810
|
}, {
|
|
2811
2811
|
default: d(() => k[8] || (k[8] = [
|
|
2812
|
-
|
|
2812
|
+
K("表格设置")
|
|
2813
2813
|
])),
|
|
2814
2814
|
_: 1
|
|
2815
2815
|
}, 8, ["icon"])
|
|
@@ -2825,7 +2825,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2825
2825
|
]),
|
|
2826
2826
|
_: 1
|
|
2827
2827
|
}),
|
|
2828
|
-
r.tooltip ? (p(), I(
|
|
2828
|
+
r.tooltip ? (p(), I(W, {
|
|
2829
2829
|
key: 3,
|
|
2830
2830
|
effect: "dark",
|
|
2831
2831
|
content: x(o)(r.tooltip),
|
|
@@ -2840,10 +2840,10 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2840
2840
|
})
|
|
2841
2841
|
]),
|
|
2842
2842
|
_: 1
|
|
2843
|
-
}, 8, ["content"])) :
|
|
2843
|
+
}, 8, ["content"])) : J("", !0)
|
|
2844
2844
|
]),
|
|
2845
2845
|
y("div", nr, [
|
|
2846
|
-
m(
|
|
2846
|
+
m(se, {
|
|
2847
2847
|
placeholder: `${x(o)("common.table.search")}...`,
|
|
2848
2848
|
modelValue: w.value,
|
|
2849
2849
|
"onUpdate:modelValue": k[0] || (k[0] = (pe) => w.value = pe)
|
|
@@ -2859,34 +2859,34 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2859
2859
|
}, 8, ["placeholder", "modelValue"]),
|
|
2860
2860
|
m(z, { type: "text" }, {
|
|
2861
2861
|
default: d(() => k[9] || (k[9] = [
|
|
2862
|
-
|
|
2862
|
+
K("高级搜索")
|
|
2863
2863
|
])),
|
|
2864
2864
|
_: 1
|
|
2865
2865
|
})
|
|
2866
2866
|
])
|
|
2867
2867
|
]),
|
|
2868
|
-
Lt((p(), I(
|
|
2868
|
+
Lt((p(), I(ge, {
|
|
2869
2869
|
border: !0,
|
|
2870
2870
|
ref_key: "tableRef",
|
|
2871
2871
|
ref: M,
|
|
2872
|
-
data:
|
|
2872
|
+
data: $,
|
|
2873
2873
|
onSelectionChange: T,
|
|
2874
2874
|
class: "table"
|
|
2875
2875
|
}, {
|
|
2876
2876
|
default: d(() => {
|
|
2877
2877
|
var pe;
|
|
2878
2878
|
return [
|
|
2879
|
-
r.readOnly ?
|
|
2879
|
+
r.readOnly ? J("", !0) : (p(), I(ae, {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
type: "selection",
|
|
2882
2882
|
width: "50"
|
|
2883
2883
|
})),
|
|
2884
|
-
(p(!0), A(
|
|
2885
|
-
var
|
|
2886
|
-
return p(), I(
|
|
2884
|
+
(p(!0), A(ie, null, fe(G.value, (X) => {
|
|
2885
|
+
var Oe;
|
|
2886
|
+
return p(), I(ae, {
|
|
2887
2887
|
prop: X.prop,
|
|
2888
2888
|
label: b(X),
|
|
2889
|
-
width: (
|
|
2889
|
+
width: (Oe = X.tableColumnAttributes) == null ? void 0 : Oe.width,
|
|
2890
2890
|
"show-overflow-tooltip": ""
|
|
2891
2891
|
}, {
|
|
2892
2892
|
default: d((Ve) => {
|
|
@@ -2913,16 +2913,16 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2913
2913
|
}, 1032, ["to"])) : (p(), A("span", sr, D(ee(X, Ve)), 1)),
|
|
2914
2914
|
((wt = X.tableColumnAttributes) == null ? void 0 : wt.type) === "tag" ? (p(), I(he, { key: 3 }, {
|
|
2915
2915
|
default: d(() => [
|
|
2916
|
-
|
|
2916
|
+
K(D(Ve.row[X.prop]), 1)
|
|
2917
2917
|
]),
|
|
2918
2918
|
_: 2
|
|
2919
|
-
}, 1024)) :
|
|
2919
|
+
}, 1024)) : J("", !0)
|
|
2920
2920
|
];
|
|
2921
2921
|
}),
|
|
2922
2922
|
_: 2
|
|
2923
2923
|
}, 1032, ["prop", "label", "width"]);
|
|
2924
2924
|
}), 256)),
|
|
2925
|
-
r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), I(
|
|
2925
|
+
r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), I(ae, {
|
|
2926
2926
|
key: 1,
|
|
2927
2927
|
label: x(o)("common.table.operation"),
|
|
2928
2928
|
width: "120"
|
|
@@ -2933,16 +2933,16 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2933
2933
|
link: "",
|
|
2934
2934
|
type: "primary",
|
|
2935
2935
|
class: "operation-button",
|
|
2936
|
-
onClick: (
|
|
2936
|
+
onClick: (Oe) => L(X.$index, X.row)
|
|
2937
2937
|
}, {
|
|
2938
2938
|
default: d(() => [
|
|
2939
|
-
|
|
2939
|
+
K(D(x(o)("common.table.edit")), 1)
|
|
2940
2940
|
]),
|
|
2941
2941
|
_: 2
|
|
2942
|
-
}, 1032, ["onClick"])) :
|
|
2942
|
+
}, 1032, ["onClick"])) : J("", !0),
|
|
2943
2943
|
m(oe, {
|
|
2944
2944
|
title: "Are you sure to delete this?",
|
|
2945
|
-
onConfirm: (
|
|
2945
|
+
onConfirm: (Oe) => u(X.$index, X.row)
|
|
2946
2946
|
}, {
|
|
2947
2947
|
reference: d(() => [
|
|
2948
2948
|
r.deletable !== !1 ? (p(), I(z, {
|
|
@@ -2952,52 +2952,52 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2952
2952
|
class: "operation-button"
|
|
2953
2953
|
}, {
|
|
2954
2954
|
default: d(() => [
|
|
2955
|
-
|
|
2955
|
+
K(D(x(o)("common.table.delete")), 1)
|
|
2956
2956
|
]),
|
|
2957
2957
|
_: 1
|
|
2958
|
-
})) :
|
|
2958
|
+
})) : J("", !0)
|
|
2959
2959
|
]),
|
|
2960
2960
|
_: 2
|
|
2961
2961
|
}, 1032, ["onConfirm"])
|
|
2962
2962
|
]),
|
|
2963
2963
|
_: 1
|
|
2964
|
-
}, 8, ["label"])) :
|
|
2965
|
-
r.operations !== void 0 && !r.readOnly ? (p(), I(
|
|
2964
|
+
}, 8, ["label"])) : J("", !0),
|
|
2965
|
+
r.operations !== void 0 && !r.readOnly ? (p(), I(ae, {
|
|
2966
2966
|
key: 2,
|
|
2967
2967
|
label: x(o)("common.table.operation"),
|
|
2968
2968
|
width: "120"
|
|
2969
2969
|
}, {
|
|
2970
2970
|
default: d((X) => [
|
|
2971
|
-
(p(!0), A(
|
|
2971
|
+
(p(!0), A(ie, null, fe(r.operations, (Oe) => (p(), I(z, {
|
|
2972
2972
|
class: "operation-button",
|
|
2973
2973
|
link: "",
|
|
2974
2974
|
type: "primary",
|
|
2975
|
-
key:
|
|
2975
|
+
key: Oe.label,
|
|
2976
2976
|
onClick: (Ve) => {
|
|
2977
2977
|
var Ae, qe;
|
|
2978
|
-
return ((qe = (Ae =
|
|
2978
|
+
return ((qe = (Ae = Oe.functions) == null ? void 0 : Ae.click) == null ? void 0 : qe.call(Ae, X.$index, X.row)) && S();
|
|
2979
2979
|
}
|
|
2980
2980
|
}, {
|
|
2981
2981
|
default: d(() => [
|
|
2982
|
-
|
|
2982
|
+
K(D(_(Oe, X)), 1)
|
|
2983
2983
|
]),
|
|
2984
2984
|
_: 2
|
|
2985
2985
|
}, 1032, ["onClick"]))), 128))
|
|
2986
2986
|
]),
|
|
2987
2987
|
_: 1
|
|
2988
|
-
}, 8, ["label"])) :
|
|
2988
|
+
}, 8, ["label"])) : J("", !0)
|
|
2989
2989
|
];
|
|
2990
2990
|
}),
|
|
2991
2991
|
_: 1
|
|
2992
2992
|
}, 8, ["data"])), [
|
|
2993
|
-
[
|
|
2993
|
+
[_o, Z.value]
|
|
2994
2994
|
]),
|
|
2995
|
-
B.value ?
|
|
2995
|
+
B.value ? J("", !0) : (p(), I(Ie, {
|
|
2996
2996
|
key: 0,
|
|
2997
2997
|
size: "small",
|
|
2998
2998
|
background: "",
|
|
2999
2999
|
onSizeChange: C,
|
|
3000
|
-
onCurrentChange:
|
|
3000
|
+
onCurrentChange: O,
|
|
3001
3001
|
currentPage: R.pageNo,
|
|
3002
3002
|
"onUpdate:currentPage": k[1] || (k[1] = (pe) => R.pageNo = pe),
|
|
3003
3003
|
"page-sizes": [10, 20, 50, 100],
|
|
@@ -3005,10 +3005,10 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3005
3005
|
layout: "total, sizes, prev, pager, next",
|
|
3006
3006
|
total: R.totalElements
|
|
3007
3007
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
3008
|
-
m(
|
|
3009
|
-
model:
|
|
3008
|
+
m(go, {
|
|
3009
|
+
model: g.model,
|
|
3010
3010
|
mode: F.value,
|
|
3011
|
-
id:
|
|
3011
|
+
id: ce.value,
|
|
3012
3012
|
afterSubmitFunc: S,
|
|
3013
3013
|
visible: i.value,
|
|
3014
3014
|
"onUpdate:visible": k[2] || (k[2] = (pe) => i.value = pe)
|
|
@@ -3022,12 +3022,12 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3022
3022
|
}, cr = { class: "icon-wrapper" }, ur = { class: "info-wrapper" }, dr = { class: "title-wrapper" }, pr = { class: "tabs-wrapper" }, fr = { class: "dialog-footer" }, mr = /* @__PURE__ */ Se({
|
|
3023
3023
|
__name: "DetailPage",
|
|
3024
3024
|
setup(e) {
|
|
3025
|
-
const { t } = Qe(), o = Ke(), n = it(), s = Te(() => o.query.id), r = V(!1), l = V(!1), a = V("view"), i = V(), f = V(-1), w = V(),
|
|
3025
|
+
const { t } = Qe(), o = Ke(), n = it(), s = Te(() => o.query.id), r = V(!1), l = V(!1), a = V("view"), i = V(), f = V(-1), w = V(), $ = V(), N = V("summary"), M = V(""), q = V(""), F = V(""), Z = V(0), B = de({
|
|
3026
3026
|
api: "",
|
|
3027
3027
|
fields: []
|
|
3028
|
-
}),
|
|
3028
|
+
}), ce = de([]);
|
|
3029
3029
|
let R = [];
|
|
3030
|
-
|
|
3030
|
+
Ee([
|
|
3031
3031
|
() => n.currentRoute.value,
|
|
3032
3032
|
be
|
|
3033
3033
|
], () => {
|
|
@@ -3040,29 +3040,29 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3040
3040
|
f.value = parseInt(u.index) - 1;
|
|
3041
3041
|
}
|
|
3042
3042
|
function ee() {
|
|
3043
|
-
var
|
|
3044
|
-
let u = (
|
|
3043
|
+
var O;
|
|
3044
|
+
let u = (O = R[f.value].api) == null ? void 0 : O.replace("/select", "");
|
|
3045
3045
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
3046
|
-
const c = B.api + "/" + s.value + u, C =
|
|
3046
|
+
const c = B.api + "/" + s.value + u, C = $.value.multipleSelection.map((L) => L.id);
|
|
3047
3047
|
Ce(c, "POST", C).then(() => {
|
|
3048
3048
|
w.value.refresh(), l.value = !1;
|
|
3049
3049
|
});
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function _(u, c, C) {
|
|
3052
3052
|
var U;
|
|
3053
3053
|
C.functions || (C.functions = {}), C.functions.create = () => {
|
|
3054
|
-
l.value = !0,
|
|
3054
|
+
l.value = !0, $.value && $.value.refresh();
|
|
3055
3055
|
};
|
|
3056
|
-
let
|
|
3057
|
-
|
|
3058
|
-
for (var L in
|
|
3059
|
-
|
|
3060
|
-
R.push(
|
|
3056
|
+
let O = Le(c);
|
|
3057
|
+
O.tableConfig || (O.tableConfig = {}), O.tableConfig.selectMode = !0, O.tableConfig.queryParams = {}, u.queryParamName && (O.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
3058
|
+
for (var L in O.fields)
|
|
3059
|
+
O.fields[L].tableColumnAttributes && (U = O.fields[L].tableColumnAttributes) != null && U.link && (O.fields[L].tableColumnAttributes.link = !1);
|
|
3060
|
+
R.push(O), C.labels = {
|
|
3061
3061
|
create: "common.table.add",
|
|
3062
3062
|
delete: "common.table.remove"
|
|
3063
3063
|
}, C.functions.batchDelete = (T) => {
|
|
3064
|
-
var
|
|
3065
|
-
let b = (
|
|
3064
|
+
var g;
|
|
3065
|
+
let b = (g = R[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
3066
3066
|
b = b == null ? void 0 : b.substring(b.lastIndexOf("/"));
|
|
3067
3067
|
const j = B.api + "/" + s.value + b, H = T.map((k) => k.id);
|
|
3068
3068
|
ve.delete(`${j}/${H.join(",")}`).then(({ data: k }) => {
|
|
@@ -3073,8 +3073,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3073
3073
|
label: "common.table.remove",
|
|
3074
3074
|
functions: {
|
|
3075
3075
|
click: (T, b) => {
|
|
3076
|
-
var
|
|
3077
|
-
let j = (
|
|
3076
|
+
var g;
|
|
3077
|
+
let j = (g = R[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
3078
3078
|
j = j == null ? void 0 : j.substring(j.lastIndexOf("/"));
|
|
3079
3079
|
const H = B.api + "/" + s.value + j;
|
|
3080
3080
|
Ce(H, "DELETE", b.id).then(() => {
|
|
@@ -3083,11 +3083,11 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
|
-
],
|
|
3086
|
+
], O.api += "/select";
|
|
3087
3087
|
}
|
|
3088
3088
|
function h() {
|
|
3089
|
-
var
|
|
3090
|
-
|
|
3089
|
+
var O, L, U;
|
|
3090
|
+
ce.splice(0);
|
|
3091
3091
|
const u = o.params.model;
|
|
3092
3092
|
if (be.value[u] === void 0) {
|
|
3093
3093
|
console.warn("Detail page model not exist:", u);
|
|
@@ -3097,28 +3097,28 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3097
3097
|
ze(B);
|
|
3098
3098
|
const c = Le(be.value[u]);
|
|
3099
3099
|
Object.assign(B, c), Z.value++, f.value = -1, N.value = "summary";
|
|
3100
|
-
const C = (L = (
|
|
3100
|
+
const C = (L = (O = B.pageConfig) == null ? void 0 : O.detailPage) == null ? void 0 : L.tabs;
|
|
3101
3101
|
if (C)
|
|
3102
3102
|
for (let T of C) {
|
|
3103
3103
|
const b = Le(be.value[T.modelKey]);
|
|
3104
|
-
if (
|
|
3104
|
+
if (ce.push(b), T.type === "table") {
|
|
3105
3105
|
b.tableConfig || (b.tableConfig = {});
|
|
3106
3106
|
let j = b.tableConfig;
|
|
3107
|
-
j.showPane = !1, T.modelRelationType === "associated" ?
|
|
3107
|
+
j.showPane = !1, T.modelRelationType === "associated" ? _(T, b, j) : T.modelRelationType === "child" && (R.push({
|
|
3108
3108
|
fields: []
|
|
3109
3109
|
}), b.formConfig === void 0 && (b.formConfig = {}), b.formConfig.functions === void 0 && (b.formConfig.functions = {}), T.queryParamName && (b.formConfig.functions.beforeSubmit = (H) => {
|
|
3110
3110
|
H[T.queryParamName] = s.value;
|
|
3111
3111
|
})), j.queryParams || (j.queryParams = {}), T.queryParamName && (j.queryParams[T.queryParamName] = s.value), T.queryParams && Object.assign(j.queryParams, T.queryParams), j.readOnly = (U = T.readOnly) != null ? U : !1, T.includeFields && (b.fields = b.fields.filter((H) => {
|
|
3112
|
-
var
|
|
3113
|
-
return (
|
|
3112
|
+
var g;
|
|
3113
|
+
return (g = T.includeFields) == null ? void 0 : g.includes(H.prop);
|
|
3114
3114
|
})), T.excludeFields && (b.fields = b.fields.filter((H) => {
|
|
3115
|
-
var
|
|
3116
|
-
return !((
|
|
3115
|
+
var g;
|
|
3116
|
+
return !((g = T.excludeFields) != null && g.includes(H.prop));
|
|
3117
3117
|
})), T.tooltip && (j.tooltip = T.tooltip);
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
3120
|
}
|
|
3121
|
-
|
|
3121
|
+
Ee(
|
|
3122
3122
|
[
|
|
3123
3123
|
() => {
|
|
3124
3124
|
var u, c;
|
|
@@ -3131,8 +3131,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3131
3131
|
],
|
|
3132
3132
|
(u) => {
|
|
3133
3133
|
He(() => {
|
|
3134
|
-
var C,
|
|
3135
|
-
const c = (
|
|
3134
|
+
var C, O, L;
|
|
3135
|
+
const c = (O = (C = B.pageConfig) == null ? void 0 : C.detailPage) == null ? void 0 : O.infoCard;
|
|
3136
3136
|
c && (M.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", q.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", F.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (L = B.fields) == null || L.forEach((U) => {
|
|
3137
3137
|
var T, b;
|
|
3138
3138
|
if (U.prop === c.tagFieldProp) {
|
|
@@ -3154,9 +3154,9 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3154
3154
|
i.value.refresh();
|
|
3155
3155
|
}
|
|
3156
3156
|
return (u, c) => {
|
|
3157
|
-
var v,
|
|
3158
|
-
const C =
|
|
3159
|
-
return p(), A(
|
|
3157
|
+
var v, Y, z, te, ne, re;
|
|
3158
|
+
const C = E("el-page-header"), O = E("el-button"), L = E("el-icon"), U = E("el-dropdown-item"), T = E("el-dropdown-menu"), b = E("el-dropdown"), j = E("el-tag"), H = E("el-tab-pane"), g = E("el-tabs"), k = E("el-dialog");
|
|
3159
|
+
return p(), A(ie, null, [
|
|
3160
3160
|
y("div", ar, [
|
|
3161
3161
|
m(C, {
|
|
3162
3162
|
onClick: c[0] || (c[0] = (Q) => x(n).back())
|
|
@@ -3173,26 +3173,26 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3173
3173
|
_: 1
|
|
3174
3174
|
}),
|
|
3175
3175
|
y("div", null, [
|
|
3176
|
-
m(
|
|
3176
|
+
m(O, {
|
|
3177
3177
|
type: "primary",
|
|
3178
3178
|
onClick: S
|
|
3179
3179
|
}, {
|
|
3180
3180
|
default: d(() => [
|
|
3181
|
-
|
|
3181
|
+
K(D(x(t)("common.table.edit")), 1)
|
|
3182
3182
|
]),
|
|
3183
3183
|
_: 1
|
|
3184
3184
|
}),
|
|
3185
|
-
((
|
|
3185
|
+
((Y = (v = B.pageConfig) == null ? void 0 : v.detailPage) == null ? void 0 : Y.operationButtons) !== void 0 ? (p(), I(b, { key: 0 }, {
|
|
3186
3186
|
dropdown: d(() => [
|
|
3187
3187
|
m(T, null, {
|
|
3188
3188
|
default: d(() => {
|
|
3189
|
-
var Q,
|
|
3189
|
+
var Q, W;
|
|
3190
3190
|
return [
|
|
3191
|
-
(p(!0), A(
|
|
3192
|
-
onClick: (
|
|
3191
|
+
(p(!0), A(ie, null, fe((W = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : W.operationButtons, (se) => (p(), I(U, {
|
|
3192
|
+
onClick: (ae) => se.function(i.value.formData)
|
|
3193
3193
|
}, {
|
|
3194
3194
|
default: d(() => [
|
|
3195
|
-
|
|
3195
|
+
K(D(x(t)(se.label)), 1)
|
|
3196
3196
|
]),
|
|
3197
3197
|
_: 2
|
|
3198
3198
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -3202,9 +3202,9 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3202
3202
|
})
|
|
3203
3203
|
]),
|
|
3204
3204
|
default: d(() => [
|
|
3205
|
-
m(
|
|
3205
|
+
m(O, { style: { margin: "0 10px" } }, {
|
|
3206
3206
|
default: d(() => [
|
|
3207
|
-
|
|
3207
|
+
K(D(x(t)("common.basic.more")), 1),
|
|
3208
3208
|
m(L, { class: "el-icon--right" }, {
|
|
3209
3209
|
default: d(() => [
|
|
3210
3210
|
m(x(zt))
|
|
@@ -3216,8 +3216,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3216
3216
|
})
|
|
3217
3217
|
]),
|
|
3218
3218
|
_: 1
|
|
3219
|
-
})) :
|
|
3220
|
-
m(
|
|
3219
|
+
})) : J("", !0),
|
|
3220
|
+
m(O, {
|
|
3221
3221
|
onClick: P,
|
|
3222
3222
|
style: { "border-color": "#bbb", width: "30px" }
|
|
3223
3223
|
}, {
|
|
@@ -3240,27 +3240,27 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3240
3240
|
y("div", ur, [
|
|
3241
3241
|
y("div", dr, [
|
|
3242
3242
|
y("h1", null, D(M.value), 1),
|
|
3243
|
-
((
|
|
3243
|
+
((re = F.value) == null ? void 0 : re.length) > 0 ? (p(), I(j, {
|
|
3244
3244
|
key: 0,
|
|
3245
3245
|
size: "small"
|
|
3246
3246
|
}, {
|
|
3247
3247
|
default: d(() => [
|
|
3248
|
-
|
|
3248
|
+
K(D(F.value), 1)
|
|
3249
3249
|
]),
|
|
3250
3250
|
_: 1
|
|
3251
|
-
})) :
|
|
3251
|
+
})) : J("", !0)
|
|
3252
3252
|
]),
|
|
3253
3253
|
y("span", null, D(q.value), 1)
|
|
3254
3254
|
])
|
|
3255
|
-
])) :
|
|
3255
|
+
])) : J("", !0),
|
|
3256
3256
|
y("div", pr, [
|
|
3257
|
-
m(
|
|
3257
|
+
m(g, {
|
|
3258
3258
|
modelValue: N.value,
|
|
3259
3259
|
"onUpdate:modelValue": c[1] || (c[1] = (Q) => N.value = Q),
|
|
3260
3260
|
onTabClick: G
|
|
3261
3261
|
}, {
|
|
3262
3262
|
default: d(() => {
|
|
3263
|
-
var Q,
|
|
3263
|
+
var Q, W;
|
|
3264
3264
|
return [
|
|
3265
3265
|
m(H, {
|
|
3266
3266
|
label: x(t)("common.basic.summary"),
|
|
@@ -3278,10 +3278,10 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3278
3278
|
]),
|
|
3279
3279
|
_: 1
|
|
3280
3280
|
}, 8, ["label"]),
|
|
3281
|
-
(p(!0), A(
|
|
3282
|
-
var
|
|
3281
|
+
(p(!0), A(ie, null, fe((W = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : W.tabs, (se) => {
|
|
3282
|
+
var ae;
|
|
3283
3283
|
return p(), I(H, {
|
|
3284
|
-
label: x(t)((
|
|
3284
|
+
label: x(t)((ae = se.name) != null ? ae : "")
|
|
3285
3285
|
}, null, 8, ["label"]);
|
|
3286
3286
|
}), 256))
|
|
3287
3287
|
];
|
|
@@ -3292,8 +3292,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3292
3292
|
key: 0,
|
|
3293
3293
|
ref_key: "tabPaneTableRef",
|
|
3294
3294
|
ref: w,
|
|
3295
|
-
model:
|
|
3296
|
-
}, null, 8, ["model"])) :
|
|
3295
|
+
model: ce[f.value]
|
|
3296
|
+
}, null, 8, ["model"])) : J("", !0),
|
|
3297
3297
|
m(k, {
|
|
3298
3298
|
modelValue: l.value,
|
|
3299
3299
|
"onUpdate:modelValue": c[3] || (c[3] = (Q) => l.value = Q),
|
|
@@ -3302,20 +3302,20 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3302
3302
|
}, {
|
|
3303
3303
|
footer: d(() => [
|
|
3304
3304
|
y("span", fr, [
|
|
3305
|
-
m(
|
|
3305
|
+
m(O, {
|
|
3306
3306
|
onClick: c[2] || (c[2] = (Q) => l.value = !1)
|
|
3307
3307
|
}, {
|
|
3308
3308
|
default: d(() => [
|
|
3309
|
-
|
|
3309
|
+
K(D(x(t)("common.basic.cancel")), 1)
|
|
3310
3310
|
]),
|
|
3311
3311
|
_: 1
|
|
3312
3312
|
}),
|
|
3313
|
-
m(
|
|
3313
|
+
m(O, {
|
|
3314
3314
|
type: "primary",
|
|
3315
3315
|
onClick: ee
|
|
3316
3316
|
}, {
|
|
3317
3317
|
default: d(() => [
|
|
3318
|
-
|
|
3318
|
+
K(D(x(t)("common.basic.save")), 1)
|
|
3319
3319
|
]),
|
|
3320
3320
|
_: 1
|
|
3321
3321
|
})
|
|
@@ -3325,14 +3325,14 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3325
3325
|
f.value >= 0 ? (p(), I(lt, {
|
|
3326
3326
|
key: 0,
|
|
3327
3327
|
ref_key: "selectTableRef",
|
|
3328
|
-
ref:
|
|
3328
|
+
ref: $,
|
|
3329
3329
|
model: x(R)[f.value]
|
|
3330
|
-
}, null, 8, ["model"])) :
|
|
3330
|
+
}, null, 8, ["model"])) : J("", !0)
|
|
3331
3331
|
]),
|
|
3332
3332
|
_: 1
|
|
3333
3333
|
}, 8, ["modelValue", "title"])
|
|
3334
3334
|
]),
|
|
3335
|
-
m(
|
|
3335
|
+
m(go, {
|
|
3336
3336
|
id: s.value,
|
|
3337
3337
|
mode: "update",
|
|
3338
3338
|
visible: r.value,
|
|
@@ -3343,7 +3343,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3343
3343
|
], 64);
|
|
3344
3344
|
};
|
|
3345
3345
|
}
|
|
3346
|
-
}), hr = /* @__PURE__ */ ye(mr, [["__scopeId", "data-v-cc1c9498"]]),
|
|
3346
|
+
}), hr = /* @__PURE__ */ ye(mr, [["__scopeId", "data-v-cc1c9498"]]), gr = { class: "page-title" }, _r = /* @__PURE__ */ Se({
|
|
3347
3347
|
__name: "TablePage",
|
|
3348
3348
|
setup(e) {
|
|
3349
3349
|
const { t } = Qe(), o = Ke(), n = it(), s = V(), r = V([]), l = de({
|
|
@@ -3351,8 +3351,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3351
3351
|
fields: []
|
|
3352
3352
|
}), a = de(Xe({}, l));
|
|
3353
3353
|
function i() {
|
|
3354
|
-
var w,
|
|
3355
|
-
r.value = [], l.pageConfig && ((
|
|
3354
|
+
var w, $, N, M, q;
|
|
3355
|
+
r.value = [], l.pageConfig && (($ = (w = l.pageConfig) == null ? void 0 : w.tablePage) != null && $.tabViewAttributes) && (r.value = (q = (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : M.tabViewAttributes) == null ? void 0 : q.map((F) => {
|
|
3356
3356
|
let Z;
|
|
3357
3357
|
return F.modelKey && be.value[F.modelKey] ? Z = Le(be.value[F.modelKey]) : Z = Le(l), F.queryParams && (Z.tableConfig || (Z.tableConfig = {}), Z.tableConfig.queryParams = F.queryParams), F.fields && (Z.fields = F.fields), F.modelKey && (Z.breadcrumbRoute = l.route), {
|
|
3358
3358
|
key: F.key,
|
|
@@ -3372,10 +3372,10 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3372
3372
|
return;
|
|
3373
3373
|
}
|
|
3374
3374
|
ze(l);
|
|
3375
|
-
const
|
|
3376
|
-
Object.assign(l,
|
|
3375
|
+
const $ = Le(be.value[w]);
|
|
3376
|
+
Object.assign(l, $), (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && M.tabViewAttributes || Object.assign(a, l), i();
|
|
3377
3377
|
}
|
|
3378
|
-
return
|
|
3378
|
+
return Ee([
|
|
3379
3379
|
() => n.currentRoute.value,
|
|
3380
3380
|
be
|
|
3381
3381
|
], () => {
|
|
@@ -3383,11 +3383,11 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3383
3383
|
}, {
|
|
3384
3384
|
immediate: !0,
|
|
3385
3385
|
deep: !0
|
|
3386
|
-
}), (w,
|
|
3386
|
+
}), (w, $) => {
|
|
3387
3387
|
var M;
|
|
3388
|
-
const N =
|
|
3389
|
-
return p(), A(
|
|
3390
|
-
y("h1",
|
|
3388
|
+
const N = E("el-scrollbar");
|
|
3389
|
+
return p(), A(ie, null, [
|
|
3390
|
+
y("h1", gr, D(x(t)((M = l.name) != null ? M : "")), 1),
|
|
3391
3391
|
m(N, null, {
|
|
3392
3392
|
default: d(() => {
|
|
3393
3393
|
var q, F;
|
|
@@ -3397,7 +3397,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3397
3397
|
class: "tabs-wrapper",
|
|
3398
3398
|
cards: r.value,
|
|
3399
3399
|
tableRef: s.value
|
|
3400
|
-
}, null, 8, ["cards", "tableRef"])) :
|
|
3400
|
+
}, null, 8, ["cards", "tableRef"])) : J("", !0)
|
|
3401
3401
|
];
|
|
3402
3402
|
}),
|
|
3403
3403
|
_: 1
|
|
@@ -3411,7 +3411,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3411
3411
|
], 64);
|
|
3412
3412
|
};
|
|
3413
3413
|
}
|
|
3414
|
-
}), br = /* @__PURE__ */ ye(
|
|
3414
|
+
}), br = /* @__PURE__ */ ye(_r, [["__scopeId", "data-v-1a472785"]]), vr = [
|
|
3415
3415
|
jo,
|
|
3416
3416
|
Ps,
|
|
3417
3417
|
Wt,
|
|
@@ -3422,7 +3422,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3422
3422
|
lt,
|
|
3423
3423
|
hr,
|
|
3424
3424
|
br
|
|
3425
|
-
],
|
|
3425
|
+
], Or = (e) => {
|
|
3426
3426
|
e && e.component && vr.forEach((t) => {
|
|
3427
3427
|
console.log("component", t.__name, t), e.component(t.__name, t);
|
|
3428
3428
|
});
|
|
@@ -3439,10 +3439,10 @@ export {
|
|
|
3439
3439
|
br as TablePage,
|
|
3440
3440
|
lt as TableView,
|
|
3441
3441
|
Gn as activeMenuMapping,
|
|
3442
|
-
|
|
3442
|
+
Or as default,
|
|
3443
3443
|
pn as en,
|
|
3444
3444
|
rt as i18n,
|
|
3445
|
-
|
|
3445
|
+
Ot as menuList,
|
|
3446
3446
|
be as modelList,
|
|
3447
3447
|
yt as pinia,
|
|
3448
3448
|
fn as zh
|