@vancone/console-component 0.1.1-beta.36 → 0.1.1-beta.37
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,7 +26,7 @@ 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 V, createElementVNode as S, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as
|
|
29
|
+
import { openBlock as p, createElementBlock as V, createElementVNode as S, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as $, Fragment as le, renderList as fe, toDisplayString as D, normalizeStyle as je, ref as A, onMounted as Dt, createBlock as I, createTextVNode as Y, createCommentVNode as z, nextTick as Be, 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 _t, toRef as ct, computed as Te, getCurrentScope as $o, onScopeDispose as Eo, toRefs as xt, createStaticVNode as Oo, normalizeClass as Rt, resolveDirective as Lt, withDirectives as Gt } from "vue";
|
|
30
30
|
import { useRoute as Ke, useRouter as it } from "vue-router";
|
|
31
31
|
import Po from "axios";
|
|
32
32
|
import { ElMessage as ut, ElMessageBox as $t } from "element-plus";
|
|
@@ -153,13 +153,13 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
153
153
|
default: d(() => [
|
|
154
154
|
m(a, null, {
|
|
155
155
|
label: d(() => [
|
|
156
|
-
m(
|
|
156
|
+
m($(Yo), { class: "left-icon" })
|
|
157
157
|
]),
|
|
158
158
|
default: d(() => [
|
|
159
159
|
s[0] || (s[0] = S("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
160
160
|
m(r, {
|
|
161
161
|
class: "search-box",
|
|
162
|
-
"prefix-icon":
|
|
162
|
+
"prefix-icon": $(jt),
|
|
163
163
|
placeholder: "Search apps"
|
|
164
164
|
}, null, 8, ["prefix-icon"]),
|
|
165
165
|
m(l, {
|
|
@@ -172,9 +172,9 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
172
172
|
S("h1", null, D(f.name), 1),
|
|
173
173
|
S("div", rn, [
|
|
174
174
|
(p(!0), V(le, null, fe(f.apps, (y) => {
|
|
175
|
-
var
|
|
175
|
+
var C, N;
|
|
176
176
|
return p(), V("a", {
|
|
177
|
-
style: je([{ "text-decoration": "none" }, { pointerEvents: ((
|
|
177
|
+
style: je([{ "text-decoration": "none" }, { pointerEvents: ((C = y.homepageUrl) == null ? void 0 : C.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
179
|
href: y.homepageUrl
|
|
180
180
|
}, [
|
|
@@ -199,7 +199,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
199
199
|
}),
|
|
200
200
|
m(a, null, {
|
|
201
201
|
label: d(() => [
|
|
202
|
-
m(
|
|
202
|
+
m($(Xo), { class: "left-icon" })
|
|
203
203
|
]),
|
|
204
204
|
default: d(() => [
|
|
205
205
|
s[1] || (s[1] = S("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
@@ -208,7 +208,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
208
208
|
}),
|
|
209
209
|
m(a, null, {
|
|
210
210
|
label: d(() => [
|
|
211
|
-
m(
|
|
211
|
+
m($(tn), { class: "left-icon" })
|
|
212
212
|
]),
|
|
213
213
|
default: d(() => [
|
|
214
214
|
s[2] || (s[2] = S("h1", { class: "catalog-title" }, "Recently", -1))
|
|
@@ -379,7 +379,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
379
379
|
id: "",
|
|
380
380
|
name: ""
|
|
381
381
|
}
|
|
382
|
-
), y = A(""),
|
|
382
|
+
), y = A(""), C = A(rt.global.locale), N = de([
|
|
383
383
|
{
|
|
384
384
|
id: "en",
|
|
385
385
|
name: "English"
|
|
@@ -406,19 +406,19 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
406
406
|
}
|
|
407
407
|
return "";
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function H() {
|
|
410
410
|
qo().then(() => {
|
|
411
411
|
const R = escape(window.location.href);
|
|
412
412
|
window.location.href = `//${Ht()}/?from=${R}#login`;
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
function F(R) {
|
|
416
|
-
rt.global.locale.value = R,
|
|
416
|
+
rt.global.locale.value = R, C.value = R, localStorage.setItem("locale", R);
|
|
417
417
|
}
|
|
418
418
|
function Z() {
|
|
419
419
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function B() {
|
|
422
422
|
window.open(a.helpDocUrl, "_blank");
|
|
423
423
|
}
|
|
424
424
|
function ie(R) {
|
|
@@ -432,7 +432,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return (R, L) => {
|
|
435
|
-
const ee = E("el-icon"), g = E("el-dropdown-item"), h = E("el-dropdown-menu"), v = E("el-dropdown"), P = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"),
|
|
435
|
+
const ee = E("el-icon"), g = E("el-dropdown-item"), h = E("el-dropdown-menu"), v = E("el-dropdown"), P = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"), k = E("el-menu-item"), O = E("el-menu"), G = E("el-drawer");
|
|
436
436
|
return p(), V(le, null, [
|
|
437
437
|
S("div", $n, [
|
|
438
438
|
S("div", En, [
|
|
@@ -442,7 +442,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
442
442
|
class: "icon-wrapper",
|
|
443
443
|
style: { "margin-left": "8px" }
|
|
444
444
|
}, [
|
|
445
|
-
m(
|
|
445
|
+
m($(_n))
|
|
446
446
|
], 512),
|
|
447
447
|
S("h1", null, D(R.title), 1),
|
|
448
448
|
a.headerProjectConfig ? (p(), I(v, {
|
|
@@ -479,14 +479,14 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
479
479
|
Y(D(f.name) + " ", 1),
|
|
480
480
|
m(ee, { class: "el-icon--right" }, {
|
|
481
481
|
default: d(() => [
|
|
482
|
-
m(
|
|
482
|
+
m($(zt))
|
|
483
483
|
]),
|
|
484
484
|
_: 1
|
|
485
485
|
})
|
|
486
486
|
])
|
|
487
487
|
]),
|
|
488
488
|
_: 1
|
|
489
|
-
})) :
|
|
489
|
+
})) : z("", !0)
|
|
490
490
|
]),
|
|
491
491
|
m(P, {
|
|
492
492
|
class: "app-popover",
|
|
@@ -503,35 +503,35 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
503
503
|
S("div", On, [
|
|
504
504
|
m(u, {
|
|
505
505
|
effect: "dark",
|
|
506
|
-
content:
|
|
506
|
+
content: $(t)("common.header.workbench"),
|
|
507
507
|
placement: "bottom"
|
|
508
508
|
}, {
|
|
509
509
|
default: d(() => [
|
|
510
510
|
S("div", Pn, [
|
|
511
|
-
m(
|
|
511
|
+
m($(xn))
|
|
512
512
|
])
|
|
513
513
|
]),
|
|
514
514
|
_: 1
|
|
515
515
|
}, 8, ["content"]),
|
|
516
516
|
m(u, {
|
|
517
517
|
effect: "dark",
|
|
518
|
-
content:
|
|
518
|
+
content: $(t)("common.header.help"),
|
|
519
519
|
placement: "bottom"
|
|
520
520
|
}, {
|
|
521
521
|
default: d(() => [
|
|
522
522
|
a.helpDocUrl !== void 0 ? (p(), V("div", {
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "icon-wrapper",
|
|
525
|
-
onClick:
|
|
525
|
+
onClick: B
|
|
526
526
|
}, [
|
|
527
|
-
m(
|
|
528
|
-
])) :
|
|
527
|
+
m($(vn))
|
|
528
|
+
])) : z("", !0)
|
|
529
529
|
]),
|
|
530
530
|
_: 1
|
|
531
531
|
}, 8, ["content"]),
|
|
532
532
|
m(u, {
|
|
533
533
|
effect: "dark",
|
|
534
|
-
content:
|
|
534
|
+
content: $(t)("common.header.notification"),
|
|
535
535
|
placement: "bottom"
|
|
536
536
|
}, {
|
|
537
537
|
default: d(() => [
|
|
@@ -539,7 +539,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
539
539
|
class: "icon-wrapper",
|
|
540
540
|
onClick: L[0] || (L[0] = (U) => l.value = !0)
|
|
541
541
|
}, [
|
|
542
|
-
m(
|
|
542
|
+
m($(Sn))
|
|
543
543
|
])
|
|
544
544
|
]),
|
|
545
545
|
_: 1
|
|
@@ -581,22 +581,22 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
581
581
|
]),
|
|
582
582
|
m(O, { class: "user-menu" }, {
|
|
583
583
|
default: d(() => [
|
|
584
|
-
m(
|
|
584
|
+
m(k, { onClick: Z }, {
|
|
585
585
|
default: d(() => [
|
|
586
|
-
Y(D(
|
|
586
|
+
Y(D($(t)("common.header.userCenter")), 1)
|
|
587
587
|
]),
|
|
588
588
|
_: 1
|
|
589
589
|
}),
|
|
590
|
-
m(
|
|
590
|
+
m(k, {
|
|
591
591
|
ref_key: "switchLanguageRef",
|
|
592
592
|
ref: s,
|
|
593
593
|
style: { display: "flext", "justify-content": "space-between" }
|
|
594
594
|
}, {
|
|
595
595
|
default: d(() => [
|
|
596
|
-
S("span", null, D(
|
|
596
|
+
S("span", null, D($(t)("common.header.switchLanguage")), 1),
|
|
597
597
|
m(ee, { style: { left: "15px" } }, {
|
|
598
598
|
default: d(() => [
|
|
599
|
-
m(
|
|
599
|
+
m($(Io))
|
|
600
600
|
]),
|
|
601
601
|
_: 1
|
|
602
602
|
})
|
|
@@ -620,22 +620,22 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
620
620
|
onClick: (T) => F(U.id)
|
|
621
621
|
}, [
|
|
622
622
|
S("span", null, D(U.name), 1),
|
|
623
|
-
U.id ===
|
|
623
|
+
U.id === C.value ? (p(), I(ee, {
|
|
624
624
|
key: 0,
|
|
625
625
|
style: { color: "#8ba74f" }
|
|
626
626
|
}, {
|
|
627
627
|
default: d(() => [
|
|
628
|
-
m(
|
|
628
|
+
m($(Vo))
|
|
629
629
|
]),
|
|
630
630
|
_: 1
|
|
631
|
-
})) :
|
|
631
|
+
})) : z("", !0)
|
|
632
632
|
], 8, Mn))), 256))
|
|
633
633
|
]),
|
|
634
634
|
_: 1
|
|
635
635
|
}, 8, ["virtual-ref"]),
|
|
636
|
-
m(
|
|
636
|
+
m(k, { onClick: H }, {
|
|
637
637
|
default: d(() => [
|
|
638
|
-
Y(D(
|
|
638
|
+
Y(D($(t)("common.header.signOut")), 1)
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
})
|
|
@@ -674,17 +674,20 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
674
674
|
index: o.menu.path
|
|
675
675
|
}, {
|
|
676
676
|
title: d(() => {
|
|
677
|
-
var a, i, f, y;
|
|
677
|
+
var a, i, f, y, C;
|
|
678
678
|
return [
|
|
679
679
|
S("div", Tn, [
|
|
680
|
-
(p(), I(st((
|
|
681
|
-
((i = t.menu.meta) == null ? void 0 : i.svgXml) !== void 0 ? (p(), V("div", {
|
|
680
|
+
(a = t.menu.meta) != null && a.icon ? (p(), I(st((i = o.menu.meta) == null ? void 0 : i.icon), {
|
|
682
681
|
key: 0,
|
|
682
|
+
class: "menu-icon"
|
|
683
|
+
})) : z("", !0),
|
|
684
|
+
(f = t.menu.meta) != null && f.svgXml ? (p(), V("div", {
|
|
685
|
+
key: 1,
|
|
683
686
|
class: "menu-icon",
|
|
684
687
|
innerHTML: t.menu.meta.svgXml
|
|
685
|
-
}, null, 8, Dn)) :
|
|
688
|
+
}, null, 8, Dn)) : z("", !0)
|
|
686
689
|
]),
|
|
687
|
-
S("span", null, D(o.$t((
|
|
690
|
+
S("span", null, D(o.$t((C = (y = o.menu.meta) == null ? void 0 : y.title) != null ? C : "")), 1)
|
|
688
691
|
];
|
|
689
692
|
}),
|
|
690
693
|
default: d(() => [
|
|
@@ -707,15 +710,18 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
707
710
|
];
|
|
708
711
|
}),
|
|
709
712
|
default: d(() => {
|
|
710
|
-
var a, i;
|
|
713
|
+
var a, i, f;
|
|
711
714
|
return [
|
|
712
715
|
S("div", Fn, [
|
|
713
|
-
(p(), I(st((
|
|
714
|
-
((i = t.menu.meta) == null ? void 0 : i.svgXml) !== void 0 ? (p(), V("div", {
|
|
716
|
+
(a = t.menu.meta) != null && a.icon ? (p(), I(st((i = o.$props.menu.meta) == null ? void 0 : i.icon), {
|
|
715
717
|
key: 0,
|
|
718
|
+
class: "menu-icon"
|
|
719
|
+
})) : z("", !0),
|
|
720
|
+
((f = t.menu.meta) == null ? void 0 : f.svgXml) !== void 0 ? (p(), V("div", {
|
|
721
|
+
key: 1,
|
|
716
722
|
class: "menu-icon",
|
|
717
723
|
innerHTML: t.menu.meta.svgXml
|
|
718
|
-
}, null, 8, Rn)) :
|
|
724
|
+
}, null, 8, Rn)) : z("", !0)
|
|
719
725
|
])
|
|
720
726
|
];
|
|
721
727
|
}),
|
|
@@ -723,7 +729,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
723
729
|
}, 8, ["index"]));
|
|
724
730
|
};
|
|
725
731
|
}
|
|
726
|
-
}), Gn = /* @__PURE__ */ ye(Ln, [["__scopeId", "data-v-
|
|
732
|
+
}), Gn = /* @__PURE__ */ ye(Ln, [["__scopeId", "data-v-3a5a76d9"]]), be = A({}), jn = {}, Ot = A([]);
|
|
727
733
|
var Jt = !1;
|
|
728
734
|
function Ze(e, t, o) {
|
|
729
735
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
@@ -1259,7 +1265,7 @@ function ds(e, t) {
|
|
|
1259
1265
|
},
|
|
1260
1266
|
groupId: y
|
|
1261
1267
|
}
|
|
1262
|
-
}), l((
|
|
1268
|
+
}), l((C) => {
|
|
1263
1269
|
Pe = void 0, o.addTimelineEvent({
|
|
1264
1270
|
layerId: Ne,
|
|
1265
1271
|
event: {
|
|
@@ -1270,12 +1276,12 @@ function ds(e, t) {
|
|
|
1270
1276
|
store: we(t.$id),
|
|
1271
1277
|
action: we(i),
|
|
1272
1278
|
args: f,
|
|
1273
|
-
result:
|
|
1279
|
+
result: C
|
|
1274
1280
|
},
|
|
1275
1281
|
groupId: y
|
|
1276
1282
|
}
|
|
1277
1283
|
});
|
|
1278
|
-
}), a((
|
|
1284
|
+
}), a((C) => {
|
|
1279
1285
|
Pe = void 0, o.addTimelineEvent({
|
|
1280
1286
|
layerId: Ne,
|
|
1281
1287
|
event: {
|
|
@@ -1287,14 +1293,14 @@ function ds(e, t) {
|
|
|
1287
1293
|
store: we(t.$id),
|
|
1288
1294
|
action: we(i),
|
|
1289
1295
|
args: f,
|
|
1290
|
-
error:
|
|
1296
|
+
error: C
|
|
1291
1297
|
},
|
|
1292
1298
|
groupId: y
|
|
1293
1299
|
}
|
|
1294
1300
|
});
|
|
1295
1301
|
});
|
|
1296
1302
|
}, !0), t._customProperties.forEach((l) => {
|
|
1297
|
-
Ee(() =>
|
|
1303
|
+
Ee(() => $(t[l]), (a, i) => {
|
|
1298
1304
|
o.notifyComponentUpdate(), o.sendInspectorState(ue), Le && o.addTimelineEvent({
|
|
1299
1305
|
layerId: Ne,
|
|
1300
1306
|
event: {
|
|
@@ -1461,11 +1467,11 @@ function Mt(e, t, o, n) {
|
|
|
1461
1467
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1462
1468
|
xt(A(s ? s() : {}).value)
|
|
1463
1469
|
) : xt(o.state.value[e]);
|
|
1464
|
-
return ge(y, r, Object.keys(l || {}).reduce((
|
|
1470
|
+
return ge(y, r, Object.keys(l || {}).reduce((C, N) => (process.env.NODE_ENV !== "production" && N in y && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), C[N] = Me(Te(() => {
|
|
1465
1471
|
Ye(o);
|
|
1466
1472
|
const M = o._s.get(e);
|
|
1467
1473
|
return l[N].call(M, M);
|
|
1468
|
-
})),
|
|
1474
|
+
})), C), {}));
|
|
1469
1475
|
}
|
|
1470
1476
|
return i = ht(e, f, t, o, n, !0), i;
|
|
1471
1477
|
}
|
|
@@ -1478,12 +1484,12 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1478
1484
|
process.env.NODE_ENV !== "production" && !Jt && (i.onTrigger = (u) => {
|
|
1479
1485
|
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."));
|
|
1480
1486
|
});
|
|
1481
|
-
let f, y,
|
|
1482
|
-
const
|
|
1483
|
-
!r && !
|
|
1487
|
+
let f, y, C = [], N = [], M;
|
|
1488
|
+
const H = n.state.value[e];
|
|
1489
|
+
!r && !H && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1484
1490
|
const F = A({});
|
|
1485
1491
|
let Z;
|
|
1486
|
-
function
|
|
1492
|
+
function B(u) {
|
|
1487
1493
|
let c;
|
|
1488
1494
|
f = y = !1, process.env.NODE_ENV !== "production" && (M = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1489
1495
|
type: ke.patchFunction,
|
|
@@ -1495,15 +1501,15 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1495
1501
|
storeId: e,
|
|
1496
1502
|
events: M
|
|
1497
1503
|
});
|
|
1498
|
-
const
|
|
1504
|
+
const k = Z = Symbol();
|
|
1499
1505
|
Be().then(() => {
|
|
1500
|
-
Z ===
|
|
1501
|
-
}), y = !0, Re(
|
|
1506
|
+
Z === k && (f = !0);
|
|
1507
|
+
}), y = !0, Re(C, c, n.state.value[e]);
|
|
1502
1508
|
}
|
|
1503
1509
|
const ie = r ? function() {
|
|
1504
|
-
const { state: c } = o,
|
|
1510
|
+
const { state: c } = o, k = c ? c() : {};
|
|
1505
1511
|
this.$patch((O) => {
|
|
1506
|
-
ge(O,
|
|
1512
|
+
ge(O, k);
|
|
1507
1513
|
});
|
|
1508
1514
|
} : (
|
|
1509
1515
|
/* istanbul ignore next */
|
|
@@ -1512,23 +1518,23 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1512
1518
|
} : lo
|
|
1513
1519
|
);
|
|
1514
1520
|
function R() {
|
|
1515
|
-
l.stop(),
|
|
1521
|
+
l.stop(), C = [], N = [], n._s.delete(e);
|
|
1516
1522
|
}
|
|
1517
1523
|
const L = (u, c = "") => {
|
|
1518
1524
|
if (At in u)
|
|
1519
1525
|
return u[pt] = c, u;
|
|
1520
|
-
const
|
|
1526
|
+
const k = function() {
|
|
1521
1527
|
Ye(n);
|
|
1522
1528
|
const O = Array.from(arguments), G = [], U = [];
|
|
1523
|
-
function T(
|
|
1524
|
-
G.push(
|
|
1529
|
+
function T(W) {
|
|
1530
|
+
G.push(W);
|
|
1525
1531
|
}
|
|
1526
|
-
function b(
|
|
1527
|
-
U.push(
|
|
1532
|
+
function b(W) {
|
|
1533
|
+
U.push(W);
|
|
1528
1534
|
}
|
|
1529
1535
|
Re(N, {
|
|
1530
1536
|
args: O,
|
|
1531
|
-
name:
|
|
1537
|
+
name: k[pt],
|
|
1532
1538
|
store: h,
|
|
1533
1539
|
after: T,
|
|
1534
1540
|
onError: b
|
|
@@ -1536,12 +1542,12 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1536
1542
|
let j;
|
|
1537
1543
|
try {
|
|
1538
1544
|
j = u.apply(this && this.$id === e ? this : h, O);
|
|
1539
|
-
} catch (
|
|
1540
|
-
throw Re(U,
|
|
1545
|
+
} catch (W) {
|
|
1546
|
+
throw Re(U, W), W;
|
|
1541
1547
|
}
|
|
1542
|
-
return j instanceof Promise ? j.then((
|
|
1548
|
+
return j instanceof Promise ? j.then((W) => (Re(G, W), W)).catch((W) => (Re(U, W), Promise.reject(W))) : (Re(G, j), j);
|
|
1543
1549
|
};
|
|
1544
|
-
return
|
|
1550
|
+
return k[At] = !0, k[pt] = c, k;
|
|
1545
1551
|
}, ee = /* @__PURE__ */ Me({
|
|
1546
1552
|
actions: {},
|
|
1547
1553
|
getters: {},
|
|
@@ -1552,17 +1558,17 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1552
1558
|
// _s: scope,
|
|
1553
1559
|
$id: e,
|
|
1554
1560
|
$onAction: Vt.bind(null, N),
|
|
1555
|
-
$patch:
|
|
1561
|
+
$patch: B,
|
|
1556
1562
|
$reset: ie,
|
|
1557
1563
|
$subscribe(u, c = {}) {
|
|
1558
|
-
const
|
|
1564
|
+
const k = Vt(C, u, c.detached, () => O()), O = l.run(() => Ee(() => n.state.value[e], (G) => {
|
|
1559
1565
|
(c.flush === "sync" ? y : f) && u({
|
|
1560
1566
|
storeId: e,
|
|
1561
1567
|
type: ke.direct,
|
|
1562
1568
|
events: M
|
|
1563
1569
|
}, G);
|
|
1564
1570
|
}, ge({}, i, c)));
|
|
1565
|
-
return
|
|
1571
|
+
return k;
|
|
1566
1572
|
},
|
|
1567
1573
|
$dispose: R
|
|
1568
1574
|
}, h = de(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue ? ge(
|
|
@@ -1580,10 +1586,10 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1580
1586
|
for (const u in P) {
|
|
1581
1587
|
const c = P[u];
|
|
1582
1588
|
if (Je(c) && !Nt(c) || _t(c))
|
|
1583
|
-
process.env.NODE_ENV !== "production" && s ? Ze(F.value, u, ct(P, u)) : r || (
|
|
1589
|
+
process.env.NODE_ENV !== "production" && s ? Ze(F.value, u, ct(P, u)) : r || (H && _s(c) && (Je(c) ? c.value = H[u] : mt(c, H[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ee.state.push(u);
|
|
1584
1590
|
else if (typeof c == "function") {
|
|
1585
|
-
const
|
|
1586
|
-
P[u] =
|
|
1591
|
+
const k = process.env.NODE_ENV !== "production" && s ? c : L(c, u);
|
|
1592
|
+
P[u] = k, process.env.NODE_ENV !== "production" && (ee.actions[u] = c), a.actions[u] = c;
|
|
1587
1593
|
} else process.env.NODE_ENV !== "production" && Nt(c) && (ee.getters[u] = r ? (
|
|
1588
1594
|
// @ts-expect-error
|
|
1589
1595
|
o.getters[u]
|
|
@@ -1595,15 +1601,15 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1595
1601
|
set: (u) => {
|
|
1596
1602
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1597
1603
|
throw new Error("cannot set hotState");
|
|
1598
|
-
|
|
1604
|
+
B((c) => {
|
|
1599
1605
|
ge(c, u);
|
|
1600
1606
|
});
|
|
1601
1607
|
}
|
|
1602
1608
|
}), process.env.NODE_ENV !== "production" && (h._hotUpdate = Me((u) => {
|
|
1603
1609
|
h._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1604
1610
|
if (c in h.$state) {
|
|
1605
|
-
const
|
|
1606
|
-
typeof
|
|
1611
|
+
const k = u.$state[c], O = h.$state[c];
|
|
1612
|
+
typeof k == "object" && De(k) && De(O) ? ao(k, O) : u.$state[c] = O;
|
|
1607
1613
|
}
|
|
1608
1614
|
Ze(h, c, ct(u.$state, c));
|
|
1609
1615
|
}), Object.keys(h.$state).forEach((c) => {
|
|
@@ -1612,14 +1618,14 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1612
1618
|
f = !0;
|
|
1613
1619
|
});
|
|
1614
1620
|
for (const c in u._hmrPayload.actions) {
|
|
1615
|
-
const
|
|
1616
|
-
Ze(h, c, L(
|
|
1621
|
+
const k = u[c];
|
|
1622
|
+
Ze(h, c, L(k, c));
|
|
1617
1623
|
}
|
|
1618
1624
|
for (const c in u._hmrPayload.getters) {
|
|
1619
|
-
const
|
|
1625
|
+
const k = u._hmrPayload.getters[c], O = r ? (
|
|
1620
1626
|
// special handling of options api
|
|
1621
|
-
Te(() => (Ye(n),
|
|
1622
|
-
) :
|
|
1627
|
+
Te(() => (Ye(n), k.call(h, h)))
|
|
1628
|
+
) : k;
|
|
1623
1629
|
Ze(h, c, O);
|
|
1624
1630
|
}
|
|
1625
1631
|
Object.keys(h._hmrPayload.getters).forEach((c) => {
|
|
@@ -1646,7 +1652,7 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1646
1652
|
pinia: n,
|
|
1647
1653
|
options: a
|
|
1648
1654
|
}));
|
|
1649
|
-
Object.keys(c || {}).forEach((
|
|
1655
|
+
Object.keys(c || {}).forEach((k) => h._customProperties.add(k)), ge(h, c);
|
|
1650
1656
|
} else
|
|
1651
1657
|
ge(h, l.run(() => u({
|
|
1652
1658
|
store: h,
|
|
@@ -1656,7 +1662,7 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1656
1662
|
})));
|
|
1657
1663
|
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1658
1664
|
state: () => new MyClass()
|
|
1659
|
-
Found in store "${h.$id}".`),
|
|
1665
|
+
Found in store "${h.$id}".`), H && r && o.hydrate && o.hydrate(h.$state, H), f = !0, y = !0, h;
|
|
1660
1666
|
}
|
|
1661
1667
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1662
1668
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1675,14 +1681,14 @@ This will fail in production.`);
|
|
|
1675
1681
|
a = He, a._s.has(n) || (r ? ht(n, t, s, a) : Mt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1676
1682
|
const y = a._s.get(n);
|
|
1677
1683
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1678
|
-
const
|
|
1679
|
-
i._hotUpdate(N), delete a.state.value[
|
|
1684
|
+
const C = "__hot:" + n, N = r ? ht(C, t, s, a, !0) : Mt(C, ge({}, s), a, !0);
|
|
1685
|
+
i._hotUpdate(N), delete a.state.value[C], a._s.delete(C);
|
|
1680
1686
|
}
|
|
1681
1687
|
if (process.env.NODE_ENV !== "production" && Ue) {
|
|
1682
|
-
const
|
|
1683
|
-
if (
|
|
1688
|
+
const C = xo();
|
|
1689
|
+
if (C && C.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1684
1690
|
!i) {
|
|
1685
|
-
const N =
|
|
1691
|
+
const N = C.proxy, M = "_pStores" in N ? N._pStores : N._pStores = {};
|
|
1686
1692
|
M[n] = y;
|
|
1687
1693
|
}
|
|
1688
1694
|
}
|
|
@@ -1814,14 +1820,14 @@ function Ut(e, {
|
|
|
1814
1820
|
}, f, y = !0) {
|
|
1815
1821
|
try {
|
|
1816
1822
|
y && (a == null || a(f));
|
|
1817
|
-
const
|
|
1818
|
-
if (
|
|
1819
|
-
const N = o.deserialize(
|
|
1820
|
-
e.$patch(
|
|
1823
|
+
const C = t.getItem(n);
|
|
1824
|
+
if (C) {
|
|
1825
|
+
const N = o.deserialize(C), M = r ? co(N, r) : N, H = l ? uo(M, l) : M;
|
|
1826
|
+
e.$patch(H);
|
|
1821
1827
|
}
|
|
1822
1828
|
y && (i == null || i(f));
|
|
1823
|
-
} catch (
|
|
1824
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1829
|
+
} catch (C) {
|
|
1830
|
+
s && console.error("[pinia-plugin-persistedstate]", C);
|
|
1825
1831
|
}
|
|
1826
1832
|
}
|
|
1827
1833
|
function Tt(e, {
|
|
@@ -1872,11 +1878,11 @@ function $s(e = {}) {
|
|
|
1872
1878
|
(n) => {
|
|
1873
1879
|
var s, r, l, a, i, f, y;
|
|
1874
1880
|
return {
|
|
1875
|
-
key: (e.key ? e.key : (
|
|
1881
|
+
key: (e.key ? e.key : (C) => C)((s = n.key) != null ? s : t.store.$id),
|
|
1876
1882
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1877
1883
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1878
|
-
serialize: (
|
|
1879
|
-
deserialize: (
|
|
1884
|
+
serialize: (C) => JSON.stringify(C),
|
|
1885
|
+
deserialize: (C) => Cs(C)
|
|
1880
1886
|
},
|
|
1881
1887
|
storage: (y = (f = n.storage) != null ? f : e.storage) != null ? y : window.localStorage,
|
|
1882
1888
|
beforeHydrate: n.beforeHydrate,
|
|
@@ -1921,21 +1927,21 @@ const po = /* @__PURE__ */ gs("console", {
|
|
|
1921
1927
|
});
|
|
1922
1928
|
return (s, r) => {
|
|
1923
1929
|
const l = E("el-menu");
|
|
1924
|
-
return
|
|
1930
|
+
return $(Ot).length > 0 ? (p(), V("div", Os, [
|
|
1925
1931
|
m(l, {
|
|
1926
1932
|
class: "menu",
|
|
1927
1933
|
"default-active": n.value,
|
|
1928
1934
|
router: ""
|
|
1929
1935
|
}, {
|
|
1930
1936
|
default: d(() => [
|
|
1931
|
-
(p(!0), V(le, null, fe(
|
|
1937
|
+
(p(!0), V(le, null, fe($(Ot), (a) => (p(), I(Gn, {
|
|
1932
1938
|
key: a.path,
|
|
1933
1939
|
menu: a
|
|
1934
1940
|
}, null, 8, ["menu"]))), 128))
|
|
1935
1941
|
]),
|
|
1936
1942
|
_: 1
|
|
1937
1943
|
}, 8, ["default-active"])
|
|
1938
|
-
])) :
|
|
1944
|
+
])) : z("", !0);
|
|
1939
1945
|
};
|
|
1940
1946
|
}
|
|
1941
1947
|
}), fo = /* @__PURE__ */ ye(Ps, [["__scopeId", "data-v-c70ca2ba"]]), Is = { class: "container" }, Vs = /* @__PURE__ */ Se({
|
|
@@ -1950,18 +1956,18 @@ const po = /* @__PURE__ */ gs("console", {
|
|
|
1950
1956
|
return (l, a) => {
|
|
1951
1957
|
const i = E("router-view"), f = E("el-scrollbar");
|
|
1952
1958
|
return p(), V(le, null, [
|
|
1953
|
-
|
|
1959
|
+
$(o).query.embedded !== "true" ? (p(), I(Wt, {
|
|
1954
1960
|
key: 0,
|
|
1955
1961
|
title: r.title,
|
|
1956
1962
|
helpDocUrl: r.helpDocUrl,
|
|
1957
1963
|
headerProjectConfig: r.headerProjectConfig
|
|
1958
|
-
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) :
|
|
1964
|
+
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : z("", !0),
|
|
1959
1965
|
S("div", Is, [
|
|
1960
|
-
|
|
1966
|
+
$(o).query.embedded !== "true" ? (p(), I(fo, {
|
|
1961
1967
|
key: 0,
|
|
1962
1968
|
menuCollapsed: n.value,
|
|
1963
1969
|
"onUpdate:menuCollapsed": a[0] || (a[0] = (y) => n.value = y)
|
|
1964
|
-
}, null, 8, ["menuCollapsed"])) :
|
|
1970
|
+
}, null, 8, ["menuCollapsed"])) : z("", !0),
|
|
1965
1971
|
m(f, { class: "main-scrollbar" }, {
|
|
1966
1972
|
default: d(() => [
|
|
1967
1973
|
S("main", {
|
|
@@ -2069,11 +2075,11 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2069
2075
|
f.icon ? (p(), I(st(f.icon), {
|
|
2070
2076
|
key: 0,
|
|
2071
2077
|
class: "svg-icon"
|
|
2072
|
-
})) :
|
|
2078
|
+
})) : z("", !0)
|
|
2073
2079
|
]),
|
|
2074
2080
|
S("span", {
|
|
2075
2081
|
style: je({ color: f.disabled ? "#aaa" : "black" })
|
|
2076
|
-
}, D(
|
|
2082
|
+
}, D($(t)(f.label)), 5)
|
|
2077
2083
|
]),
|
|
2078
2084
|
S("span", null, D(f.count), 1)
|
|
2079
2085
|
])
|
|
@@ -2102,13 +2108,13 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2102
2108
|
},
|
|
2103
2109
|
emits: ["update:id"],
|
|
2104
2110
|
setup(e, { expose: t, emit: o }) {
|
|
2105
|
-
const { t: n } = rt.global, s = e, r = de({}), l = A(!1), a = A(), i = de({}), f = A(!0), y = (g) => s.mode === "view" && (L(g, void 0) || L(g, "input") || L(g, "select") || L(g, "password") || L(g, "input-number")),
|
|
2111
|
+
const { t: n } = rt.global, s = e, r = de({}), l = A(!1), a = A(), i = de({}), f = A(!0), y = (g) => s.mode === "view" && (L(g, void 0) || L(g, "input") || L(g, "select") || L(g, "password") || L(g, "input-number")), C = Te(() => s.model.fields ? s.model.fields.filter(
|
|
2106
2112
|
(g) => {
|
|
2107
|
-
var P, u, c,
|
|
2113
|
+
var P, u, c, k;
|
|
2108
2114
|
let h = g.visible !== !1 && ((P = g.formItemAttributes) == null ? void 0 : P.visible) !== !1;
|
|
2109
2115
|
if (s.mode !== "view" && ((u = g.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = g.formItemAttributes) == null ? void 0 : c.type) === "password")
|
|
2110
2116
|
return !1;
|
|
2111
|
-
let v = (
|
|
2117
|
+
let v = (k = g.formItemAttributes) == null ? void 0 : k.showCondition;
|
|
2112
2118
|
if (v && v.field && v.value !== void 0) {
|
|
2113
2119
|
if (v.operator === void 0 || v.operator === "==")
|
|
2114
2120
|
return r[v.field] === v.value;
|
|
@@ -2132,17 +2138,17 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2132
2138
|
const g = s.model.fields;
|
|
2133
2139
|
let h = {};
|
|
2134
2140
|
g == null || g.forEach((v) => {
|
|
2135
|
-
var P, u, c,
|
|
2141
|
+
var P, u, c, k, O, G, U, T, b, j, W, _, x;
|
|
2136
2142
|
if (r[v.prop] = null, v.visible !== !1 && ((P = v.formItemAttributes) == null ? void 0 : P.visible) !== !1) {
|
|
2137
2143
|
if (((u = v.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[v.prop] = (c = v.formItemAttributes) == null ? void 0 : c.defaultValue : r[v.prop] = void 0, s.mode !== "view") {
|
|
2138
|
-
let K = (
|
|
2144
|
+
let K = (k = v.formItemAttributes) == null ? void 0 : k.validationRule;
|
|
2139
2145
|
K !== void 0 && (h[v.prop] = K), ze(i), Object.assign(i, h);
|
|
2140
2146
|
}
|
|
2141
|
-
const w = v.formItemAttributes, J = w == null ? void 0 : w.type,
|
|
2147
|
+
const w = v.formItemAttributes, J = w == null ? void 0 : w.type, q = (O = w == null ? void 0 : w.selectAttributes) == null ? void 0 : O.useDatableDict, te = (G = w == null ? void 0 : w.selectAttributes) == null ? void 0 : G.dictId, ne = (U = w == null ? void 0 : w.selectAttributes) == null ? void 0 : U.api, se = (T = w == null ? void 0 : w.selectAttributes) == null ? void 0 : T.valueMappingField, Q = (b = w == null ? void 0 : w.selectAttributes) == null ? void 0 : b.labelMappingField;
|
|
2142
2148
|
if (J === "select") {
|
|
2143
|
-
if (
|
|
2149
|
+
if (q) {
|
|
2144
2150
|
let re = `${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}`;
|
|
2145
|
-
const ce = (j = w == null ? void 0 : w.selectAttributes) == null ? void 0 : j.queryParamName, me = (
|
|
2151
|
+
const ce = (j = w == null ? void 0 : w.selectAttributes) == null ? void 0 : j.queryParamName, me = (W = w == null ? void 0 : w.selectAttributes) == null ? void 0 : W.queryParamValueField;
|
|
2146
2152
|
ce && (re = `${re}?${ce}=${s.id}`), me || Ce(re, "GET", {}).then(({ data: he }) => {
|
|
2147
2153
|
var oe;
|
|
2148
2154
|
if ((oe = v.formItemAttributes) != null && oe.selectAttributes) {
|
|
@@ -2155,7 +2161,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2155
2161
|
});
|
|
2156
2162
|
} else if (ne) {
|
|
2157
2163
|
let K = ne;
|
|
2158
|
-
const re = (_ = w == null ? void 0 : w.selectAttributes) == null ? void 0 : _.queryParamName, ce = (
|
|
2164
|
+
const re = (_ = w == null ? void 0 : w.selectAttributes) == null ? void 0 : _.queryParamName, ce = (x = w == null ? void 0 : w.selectAttributes) == null ? void 0 : x.queryParamValueField;
|
|
2159
2165
|
re && (K = `${K}?${re}=${s.id}`), ce || Ce(K, "GET", {}).then(({ data: me }) => {
|
|
2160
2166
|
var he;
|
|
2161
2167
|
if ((he = v.formItemAttributes) != null && he.selectAttributes) {
|
|
@@ -2179,10 +2185,10 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2179
2185
|
}), l.value = !1;
|
|
2180
2186
|
}));
|
|
2181
2187
|
}
|
|
2182
|
-
function
|
|
2188
|
+
function H() {
|
|
2183
2189
|
return new Promise((g, h) => {
|
|
2184
|
-
var P, u, c,
|
|
2185
|
-
((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (
|
|
2190
|
+
var P, u, c, k;
|
|
2191
|
+
((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (k = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : k.beforeSubmit(r));
|
|
2186
2192
|
let v = s.mode === "create" ? "POST" : "PUT";
|
|
2187
2193
|
s.model.api && Ce(s.model.api, v, r).then(({ data: O }) => {
|
|
2188
2194
|
var G, U, T, b;
|
|
@@ -2197,16 +2203,16 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2197
2203
|
function Z(g) {
|
|
2198
2204
|
return g.label ? f ? n(g.label) : g.label : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase();
|
|
2199
2205
|
}
|
|
2200
|
-
function
|
|
2206
|
+
function B(g) {
|
|
2201
2207
|
var h, v, P, u;
|
|
2202
2208
|
if (g) {
|
|
2203
2209
|
if (L(g, "select")) {
|
|
2204
2210
|
const c = (v = (h = g.tableColumnAttributes) == null ? void 0 : h.functions) == null ? void 0 : v.transformValue;
|
|
2205
2211
|
if (c)
|
|
2206
2212
|
return c(r[g.prop]);
|
|
2207
|
-
const
|
|
2208
|
-
if (
|
|
2209
|
-
return r[
|
|
2213
|
+
const k = (u = (P = g.formItemAttributes) == null ? void 0 : P.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2214
|
+
if (k)
|
|
2215
|
+
return r[k];
|
|
2210
2216
|
}
|
|
2211
2217
|
return r[g.prop];
|
|
2212
2218
|
}
|
|
@@ -2239,8 +2245,8 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2239
2245
|
const u = P.api;
|
|
2240
2246
|
if (u) {
|
|
2241
2247
|
let c = u;
|
|
2242
|
-
const
|
|
2243
|
-
|
|
2248
|
+
const k = P.queryParamName;
|
|
2249
|
+
k && (c = `${c}?${k}=${r[P.queryParamValueField]}`), Ce(c, "GET", {}).then(({ data: O }) => {
|
|
2244
2250
|
if (P) {
|
|
2245
2251
|
let G = [];
|
|
2246
2252
|
Array.isArray(O.data) ? G = O.data : O.data.list && Array.isArray(O.data.list) && (G = O.data.list), P.options = G.map((U) => ({
|
|
@@ -2256,10 +2262,10 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2256
2262
|
return t({
|
|
2257
2263
|
refresh: M,
|
|
2258
2264
|
reset: F,
|
|
2259
|
-
submit:
|
|
2265
|
+
submit: H,
|
|
2260
2266
|
formData: r
|
|
2261
2267
|
}), (g, h) => {
|
|
2262
|
-
const v = E("el-input"), P = E("el-switch"), u = E("el-date-picker"), c = E("el-option"),
|
|
2268
|
+
const v = E("el-input"), P = E("el-switch"), u = E("el-date-picker"), c = E("el-option"), k = E("el-select"), O = E("el-input-number"), G = E("el-form-item"), U = E("el-form"), T = Lt("loading");
|
|
2263
2269
|
return Gt((p(), I(U, {
|
|
2264
2270
|
ref_key: "formRef",
|
|
2265
2271
|
ref: a,
|
|
@@ -2272,14 +2278,14 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2272
2278
|
inline: !s.disableInline
|
|
2273
2279
|
}, {
|
|
2274
2280
|
default: d(() => [
|
|
2275
|
-
(p(!0), V(le, null, fe(
|
|
2281
|
+
(p(!0), V(le, null, fe(C.value, (b) => (p(), I(G, {
|
|
2276
2282
|
class: "form-item",
|
|
2277
2283
|
style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2278
2284
|
prop: b.prop,
|
|
2279
2285
|
label: Z(b)
|
|
2280
2286
|
}, {
|
|
2281
2287
|
default: d(() => {
|
|
2282
|
-
var j,
|
|
2288
|
+
var j, W, _, x, w, J, q, te, ne, se, Q, K, re, ce, me, he;
|
|
2283
2289
|
return [
|
|
2284
2290
|
R("input", b) ? (p(), I(v, {
|
|
2285
2291
|
key: 0,
|
|
@@ -2288,14 +2294,14 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2288
2294
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2289
2295
|
placeholder: (j = b.formItemAttributes) == null ? void 0 : j.placeholder,
|
|
2290
2296
|
disabled: ie(b)
|
|
2291
|
-
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
2292
|
-
y(b) ? (p(), V("span", Ys, D(
|
|
2297
|
+
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : z("", !0),
|
|
2298
|
+
y(b) ? (p(), V("span", Ys, D(B(b)), 1)) : z("", !0),
|
|
2293
2299
|
L(b, "switch") ? (p(), I(P, {
|
|
2294
2300
|
key: 2,
|
|
2295
2301
|
modelValue: r[b.prop],
|
|
2296
2302
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2297
2303
|
disabled: g.mode === "view"
|
|
2298
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2304
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : z("", !0),
|
|
2299
2305
|
L(b, "datepicker") ? (p(), I(u, {
|
|
2300
2306
|
key: 3,
|
|
2301
2307
|
style: { width: "100%" },
|
|
@@ -2304,12 +2310,12 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2304
2310
|
modelValue: r[b.prop],
|
|
2305
2311
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2306
2312
|
disabled: g.mode === "view"
|
|
2307
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2308
|
-
L(b, "select") && g.mode !== "view" ? (p(), I(
|
|
2313
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : z("", !0),
|
|
2314
|
+
L(b, "select") && g.mode !== "view" ? (p(), I(k, {
|
|
2309
2315
|
key: 4,
|
|
2310
|
-
filterable: (_ = (
|
|
2311
|
-
"allow-create": (w = (
|
|
2312
|
-
"default-first-option": (
|
|
2316
|
+
filterable: (_ = (W = b.formItemAttributes) == null ? void 0 : W.selectAttributes) == null ? void 0 : _.allowCreate,
|
|
2317
|
+
"allow-create": (w = (x = b.formItemAttributes) == null ? void 0 : x.selectAttributes) == null ? void 0 : w.allowCreate,
|
|
2318
|
+
"default-first-option": (q = (J = b.formItemAttributes) == null ? void 0 : J.selectAttributes) == null ? void 0 : q.allowCreate,
|
|
2313
2319
|
modelValue: r[b.prop],
|
|
2314
2320
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2315
2321
|
disabled: ie(b),
|
|
@@ -2325,7 +2331,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2325
2331
|
];
|
|
2326
2332
|
}),
|
|
2327
2333
|
_: 2
|
|
2328
|
-
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) :
|
|
2334
|
+
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : z("", !0),
|
|
2329
2335
|
L(b, "input-number") && g.mode !== "view" ? (p(), I(O, {
|
|
2330
2336
|
key: 5,
|
|
2331
2337
|
modelValue: r[b.prop],
|
|
@@ -2334,7 +2340,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2334
2340
|
max: (re = (K = (Q = b.formItemAttributes) == null ? void 0 : Q.inputNumber) == null ? void 0 : K.max) != null ? re : Number.POSITIVE_INFINITY,
|
|
2335
2341
|
step: (he = (me = (ce = b.formItemAttributes) == null ? void 0 : ce.inputNumber) == null ? void 0 : me.step) != null ? he : 1,
|
|
2336
2342
|
"value-on-clear": -10
|
|
2337
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) :
|
|
2343
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : z("", !0)
|
|
2338
2344
|
];
|
|
2339
2345
|
}),
|
|
2340
2346
|
_: 2
|
|
@@ -2377,8 +2383,8 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2377
2383
|
return t({
|
|
2378
2384
|
close: f,
|
|
2379
2385
|
refresh: i
|
|
2380
|
-
}), (
|
|
2381
|
-
const M = E("el-step"),
|
|
2386
|
+
}), (C, N) => {
|
|
2387
|
+
const M = E("el-step"), H = E("el-steps"), F = E("el-button"), Z = E("el-dialog");
|
|
2382
2388
|
return p(), I(Z, {
|
|
2383
2389
|
class: "console-dialog",
|
|
2384
2390
|
title: "Edit",
|
|
@@ -2388,18 +2394,18 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2388
2394
|
onClose: f
|
|
2389
2395
|
}, {
|
|
2390
2396
|
footer: d(() => {
|
|
2391
|
-
var
|
|
2397
|
+
var B;
|
|
2392
2398
|
return [
|
|
2393
2399
|
S("div", {
|
|
2394
2400
|
class: "dialog-footer",
|
|
2395
2401
|
style: je({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2396
2402
|
}, [
|
|
2397
2403
|
S("div", Zs, [
|
|
2398
|
-
(p(!0), V(le, null, fe((
|
|
2404
|
+
(p(!0), V(le, null, fe((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ie) => (p(), I(F, {
|
|
2399
2405
|
onClick: (R) => ie.function(a.value.formData)
|
|
2400
2406
|
}, {
|
|
2401
2407
|
default: d(() => [
|
|
2402
|
-
Y(D(
|
|
2408
|
+
Y(D($(n)(ie.label)), 1)
|
|
2403
2409
|
]),
|
|
2404
2410
|
_: 2
|
|
2405
2411
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2407,7 +2413,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2407
2413
|
S("div", null, [
|
|
2408
2414
|
m(F, { onClick: f }, {
|
|
2409
2415
|
default: d(() => [
|
|
2410
|
-
Y(D(
|
|
2416
|
+
Y(D($(n)("common.basic.cancel")), 1)
|
|
2411
2417
|
]),
|
|
2412
2418
|
_: 1
|
|
2413
2419
|
}),
|
|
@@ -2416,7 +2422,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2416
2422
|
onClick: y
|
|
2417
2423
|
}, {
|
|
2418
2424
|
default: d(() => [
|
|
2419
|
-
Y(D(
|
|
2425
|
+
Y(D($(n)("common.basic.save")), 1)
|
|
2420
2426
|
]),
|
|
2421
2427
|
_: 1
|
|
2422
2428
|
})
|
|
@@ -2428,7 +2434,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2428
2434
|
S("div", Qs, [
|
|
2429
2435
|
m(ho, {
|
|
2430
2436
|
class: "form-view",
|
|
2431
|
-
style: je({ width:
|
|
2437
|
+
style: je({ width: C.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2432
2438
|
ref_key: "formViewRef",
|
|
2433
2439
|
ref: a,
|
|
2434
2440
|
id: s.id,
|
|
@@ -2439,9 +2445,9 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2439
2445
|
closeDialogFunc: f,
|
|
2440
2446
|
disableInline: s.showProcess
|
|
2441
2447
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2442
|
-
|
|
2448
|
+
C.showProcess ? (p(), V("div", Xs, [
|
|
2443
2449
|
N[0] || (N[0] = S("h1", null, "流程动态", -1)),
|
|
2444
|
-
m(
|
|
2450
|
+
m(H, {
|
|
2445
2451
|
style: { height: "90%" },
|
|
2446
2452
|
direction: "vertical",
|
|
2447
2453
|
active: 1
|
|
@@ -2452,7 +2458,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2452
2458
|
]),
|
|
2453
2459
|
_: 1
|
|
2454
2460
|
})
|
|
2455
|
-
])) :
|
|
2461
|
+
])) : z("", !0)
|
|
2456
2462
|
])
|
|
2457
2463
|
]),
|
|
2458
2464
|
_: 1
|
|
@@ -2482,24 +2488,24 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2482
2488
|
setup(e, { expose: t }) {
|
|
2483
2489
|
const { t: o } = rt.global, n = e, s = de([]), r = de({
|
|
2484
2490
|
showPane: !0
|
|
2485
|
-
}), l = A(""), a = A(!0), i = A(!1), f = it(), y = A(""),
|
|
2491
|
+
}), l = A(""), a = A(!0), i = A(!1), f = it(), y = A(""), C = de([]), N = de([]), M = A(), H = A([]), F = A("create"), Z = A(!0), B = A(!1), ie = A(""), R = de({
|
|
2486
2492
|
pageSize: 10,
|
|
2487
2493
|
pageNo: 1,
|
|
2488
2494
|
totalElements: 0
|
|
2489
2495
|
}), L = Te(() => s.filter(
|
|
2490
2496
|
(_) => {
|
|
2491
|
-
var
|
|
2492
|
-
return ((
|
|
2497
|
+
var x, w;
|
|
2498
|
+
return ((x = _.formItemAttributes) == null ? void 0 : x.type) !== "password" && _.visible !== !1 && ((w = _.tableColumnAttributes) == null ? void 0 : w.visible) !== !1;
|
|
2493
2499
|
}
|
|
2494
2500
|
));
|
|
2495
|
-
function ee(_,
|
|
2501
|
+
function ee(_, x) {
|
|
2496
2502
|
var te, ne, se, Q;
|
|
2497
|
-
let w =
|
|
2498
|
-
const J = (ne = (te = _.tableColumnAttributes) == null ? void 0 : te.functions) == null ? void 0 : ne.transformValue,
|
|
2503
|
+
let w = x.row[_.prop];
|
|
2504
|
+
const J = (ne = (te = _.tableColumnAttributes) == null ? void 0 : te.functions) == null ? void 0 : ne.transformValue, q = (se = _.tableColumnAttributes) == null ? void 0 : se.transformValueMappings;
|
|
2499
2505
|
if (J)
|
|
2500
2506
|
w = J(w);
|
|
2501
|
-
else if (
|
|
2502
|
-
for (let K of
|
|
2507
|
+
else if (q && q.length > 0) {
|
|
2508
|
+
for (let K of q)
|
|
2503
2509
|
if (w === K.value) {
|
|
2504
2510
|
w = o(K.label);
|
|
2505
2511
|
break;
|
|
@@ -2508,10 +2514,10 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2508
2514
|
const K = _.formItemAttributes.selectAttributes;
|
|
2509
2515
|
if (K) {
|
|
2510
2516
|
if (K.viewModeLabelField)
|
|
2511
|
-
w =
|
|
2517
|
+
w = x.row[K.viewModeLabelField];
|
|
2512
2518
|
else if (K.options && K.options.length > 0) {
|
|
2513
2519
|
for (let re of K.options)
|
|
2514
|
-
if (re.value ===
|
|
2520
|
+
if (re.value === x.row[_.prop]) {
|
|
2515
2521
|
w = re.label;
|
|
2516
2522
|
break;
|
|
2517
2523
|
}
|
|
@@ -2520,30 +2526,30 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2520
2526
|
}
|
|
2521
2527
|
return w;
|
|
2522
2528
|
}
|
|
2523
|
-
function g(_,
|
|
2529
|
+
function g(_, x) {
|
|
2524
2530
|
var w, J;
|
|
2525
|
-
return _.label ? o(_.label) : (J = (w = _.functions) == null ? void 0 : w.transformLabel) == null ? void 0 : J.call(w,
|
|
2531
|
+
return _.label ? o(_.label) : (J = (w = _.functions) == null ? void 0 : w.transformLabel) == null ? void 0 : J.call(w, x.$index, x.row);
|
|
2526
2532
|
}
|
|
2527
2533
|
function h(_) {
|
|
2528
2534
|
ze(n.model), Object.assign(n.model, _);
|
|
2529
2535
|
}
|
|
2530
2536
|
function v() {
|
|
2531
|
-
var
|
|
2537
|
+
var x, w, J;
|
|
2532
2538
|
if (Z.value = !0, !n.model || !n.model.api)
|
|
2533
2539
|
return;
|
|
2534
|
-
ze(r), r.showPane = !0, Object.assign(r, (
|
|
2540
|
+
ze(r), r.showPane = !0, Object.assign(r, (x = n.model.tableConfig) != null ? x : {}), s.splice(0, s.length, ...n.model.fields), l.value = (w = n.model.route) != null ? w : "", a.value = (J = n.model.useI18n) != null ? J : !0;
|
|
2535
2541
|
let _ = Xe({}, r.queryParams);
|
|
2536
|
-
_.pageSize = R.pageSize, _.pageNo = R.pageNo, _.search = y.value, Ce(n.model.api, "GET", _).then(({ data:
|
|
2537
|
-
const { list: te, totalCount: ne } =
|
|
2538
|
-
|
|
2542
|
+
_.pageSize = R.pageSize, _.pageNo = R.pageNo, _.search = y.value, Ce(n.model.api, "GET", _).then(({ data: q }) => {
|
|
2543
|
+
const { list: te, totalCount: ne } = q.data;
|
|
2544
|
+
C.splice(0, C.length, ...te), R.totalElements = ne, Z.value = !1;
|
|
2539
2545
|
});
|
|
2540
2546
|
}
|
|
2541
2547
|
function P() {
|
|
2542
|
-
var _,
|
|
2543
|
-
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((_ = r.functions) == null ? void 0 : _.create) !== void 0 ? (
|
|
2548
|
+
var _, x;
|
|
2549
|
+
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((_ = r.functions) == null ? void 0 : _.create) !== void 0 ? (x = r.functions) == null || x.create() : (F.value = "create", ie.value = "", i.value = !0);
|
|
2544
2550
|
}
|
|
2545
|
-
function u(_,
|
|
2546
|
-
n.model.api && Ce(n.model.api, "DELETE",
|
|
2551
|
+
function u(_, x) {
|
|
2552
|
+
n.model.api && Ce(n.model.api, "DELETE", x.id).then(({ data: w }) => {
|
|
2547
2553
|
w.code === 0 && (i.value = !1, v());
|
|
2548
2554
|
});
|
|
2549
2555
|
}
|
|
@@ -2557,11 +2563,11 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2557
2563
|
type: "warning"
|
|
2558
2564
|
}
|
|
2559
2565
|
).then(() => {
|
|
2560
|
-
var _,
|
|
2566
|
+
var _, x;
|
|
2561
2567
|
if (((_ = r.functions) == null ? void 0 : _.batchDelete) !== void 0)
|
|
2562
|
-
(
|
|
2568
|
+
(x = r.functions) == null || x.batchDelete(H.value);
|
|
2563
2569
|
else {
|
|
2564
|
-
const w =
|
|
2570
|
+
const w = H.value.map((J) => J.id);
|
|
2565
2571
|
ve.delete(`${n.model.api}/${w.join(",")}`).then(({ data: J }) => {
|
|
2566
2572
|
J.code === 0 && (i.value = !1, v());
|
|
2567
2573
|
});
|
|
@@ -2571,40 +2577,40 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2571
2577
|
M.value.clearSelection();
|
|
2572
2578
|
});
|
|
2573
2579
|
}
|
|
2574
|
-
function
|
|
2580
|
+
function k(_) {
|
|
2575
2581
|
R.pageSize = _, v();
|
|
2576
2582
|
}
|
|
2577
2583
|
function O(_) {
|
|
2578
2584
|
R.pageNo = _, v();
|
|
2579
2585
|
}
|
|
2580
|
-
function G(_,
|
|
2586
|
+
function G(_, x) {
|
|
2581
2587
|
r.editPageRoutePath !== void 0 ? f.push({
|
|
2582
2588
|
path: r.editPageRoutePath,
|
|
2583
2589
|
query: {
|
|
2584
|
-
id:
|
|
2590
|
+
id: x.id
|
|
2585
2591
|
}
|
|
2586
|
-
}) : (ie.value =
|
|
2592
|
+
}) : (ie.value = x.id, F.value = "update", i.value = !0);
|
|
2587
2593
|
}
|
|
2588
2594
|
function U() {
|
|
2589
2595
|
var w;
|
|
2590
2596
|
let _ = ((w = n.model.api) != null && w.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
|
|
2591
|
-
const
|
|
2592
|
-
|
|
2597
|
+
const x = r.queryParams;
|
|
2598
|
+
x !== void 0 && Object.keys(x).length > 0 && (_ += "?", Object.entries(r.queryParams).map((J) => {
|
|
2593
2599
|
_ += `${J[0]}=${J[1]}&`;
|
|
2594
2600
|
})), window.open(_);
|
|
2595
2601
|
}
|
|
2596
2602
|
function T(_) {
|
|
2597
|
-
|
|
2603
|
+
H.value = _;
|
|
2598
2604
|
}
|
|
2599
2605
|
function b(_) {
|
|
2600
2606
|
return _.label ? a.value ? o(_.label) : _.label : _.prop.slice(0, 1).toUpperCase() + _.prop.slice(1).toLowerCase();
|
|
2601
2607
|
}
|
|
2602
2608
|
function j(_) {
|
|
2603
|
-
_ ? (
|
|
2609
|
+
_ ? (B.value = !0, N.splice(0, N.length, ...C), C.splice(0, C.length, ...H.value)) : (B.value = !1, C.splice(0, C.length, ...N));
|
|
2604
2610
|
}
|
|
2605
|
-
function
|
|
2611
|
+
function W() {
|
|
2606
2612
|
var te;
|
|
2607
|
-
if (
|
|
2613
|
+
if (H.value.length === 0) {
|
|
2608
2614
|
$t.alert("Select rows before printing", "Print", {
|
|
2609
2615
|
confirmButtonText: "OK"
|
|
2610
2616
|
});
|
|
@@ -2615,17 +2621,17 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2615
2621
|
var se;
|
|
2616
2622
|
_ += `<th>${o((se = ne.label) != null ? se : "")}</th>`;
|
|
2617
2623
|
});
|
|
2618
|
-
let
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
}),
|
|
2624
|
+
let x = "";
|
|
2625
|
+
H.value.forEach((ne) => {
|
|
2626
|
+
x += "<tr>", L.value.forEach((se) => {
|
|
2627
|
+
x += `<td>${ne[se.prop]}</td>`;
|
|
2628
|
+
}), x += "</tr>";
|
|
2623
2629
|
});
|
|
2624
|
-
let w = `<table><tr>${_}</tr>${
|
|
2630
|
+
let w = `<table><tr>${_}</tr>${x}</table>`;
|
|
2625
2631
|
const J = document.createElement("iframe");
|
|
2626
2632
|
J.style.display = "none", document.body.appendChild(J);
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2633
|
+
const q = J.contentDocument || ((te = J.contentWindow) == null ? void 0 : te.document);
|
|
2634
|
+
q == null || q.open(), q == null || q.write(`
|
|
2629
2635
|
<!DOCTYPE html>
|
|
2630
2636
|
<html>
|
|
2631
2637
|
<head>
|
|
@@ -2674,7 +2680,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2674
2680
|
<\/script>
|
|
2675
2681
|
</body>
|
|
2676
2682
|
</html>
|
|
2677
|
-
`),
|
|
2683
|
+
`), q == null || q.close();
|
|
2678
2684
|
}
|
|
2679
2685
|
return Ee(() => n.model, () => {
|
|
2680
2686
|
v();
|
|
@@ -2682,11 +2688,11 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2682
2688
|
deep: !0,
|
|
2683
2689
|
immediate: !0
|
|
2684
2690
|
}), t({
|
|
2685
|
-
multipleSelection:
|
|
2691
|
+
multipleSelection: H,
|
|
2686
2692
|
refresh: v,
|
|
2687
2693
|
updateConfigAndRefresh: h
|
|
2688
|
-
}), (_,
|
|
2689
|
-
const w = E("el-checkbox"), J = E("el-badge"),
|
|
2694
|
+
}), (_, x) => {
|
|
2695
|
+
const w = E("el-checkbox"), J = E("el-badge"), q = E("el-button"), te = E("el-dropdown-item"), ne = E("el-dropdown-menu"), se = E("el-dropdown"), Q = E("el-icon"), K = E("el-tooltip"), re = E("el-input"), ce = E("el-table-column"), me = E("router-link"), he = E("el-tag"), oe = E("el-popconfirm"), _e = E("el-table"), Ie = E("el-pagination"), go = Lt("loading");
|
|
2690
2696
|
return p(), V("div", {
|
|
2691
2697
|
class: Rt({ "table-view-wrapper": r.showPane })
|
|
2692
2698
|
}, [
|
|
@@ -2694,7 +2700,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2694
2700
|
S("div", sr, [
|
|
2695
2701
|
r.selectMode ? (p(), I(J, {
|
|
2696
2702
|
key: 0,
|
|
2697
|
-
value:
|
|
2703
|
+
value: H.value.length,
|
|
2698
2704
|
type: "primary",
|
|
2699
2705
|
class: "selected-badge"
|
|
2700
2706
|
}, {
|
|
@@ -2702,13 +2708,13 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2702
2708
|
m(w, {
|
|
2703
2709
|
class: "selected-checkbox",
|
|
2704
2710
|
border: !0,
|
|
2705
|
-
label:
|
|
2711
|
+
label: $(o)("common.table.viewSelected"),
|
|
2706
2712
|
onChange: j
|
|
2707
2713
|
}, null, 8, ["label"])
|
|
2708
2714
|
]),
|
|
2709
2715
|
_: 1
|
|
2710
|
-
}, 8, ["value"])) :
|
|
2711
|
-
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), I(
|
|
2716
|
+
}, 8, ["value"])) : z("", !0),
|
|
2717
|
+
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), I(q, {
|
|
2712
2718
|
key: 1,
|
|
2713
2719
|
type: "primary",
|
|
2714
2720
|
onClick: P
|
|
@@ -2716,14 +2722,14 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2716
2722
|
default: d(() => {
|
|
2717
2723
|
var pe, X;
|
|
2718
2724
|
return [
|
|
2719
|
-
Y(D(((pe = r.labels) == null ? void 0 : pe.create) != null ?
|
|
2725
|
+
Y(D(((pe = r.labels) == null ? void 0 : pe.create) != null ? $(o)((X = r.labels) == null ? void 0 : X.create) : $(o)("common.table.create")), 1)
|
|
2720
2726
|
];
|
|
2721
2727
|
}),
|
|
2722
2728
|
_: 1
|
|
2723
|
-
})) :
|
|
2724
|
-
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), I(
|
|
2729
|
+
})) : z("", !0),
|
|
2730
|
+
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), I(q, {
|
|
2725
2731
|
key: 2,
|
|
2726
|
-
disabled:
|
|
2732
|
+
disabled: H.value.length == 0,
|
|
2727
2733
|
type: "danger",
|
|
2728
2734
|
plain: "",
|
|
2729
2735
|
onClick: c
|
|
@@ -2731,13 +2737,13 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2731
2737
|
default: d(() => {
|
|
2732
2738
|
var pe, X;
|
|
2733
2739
|
return [
|
|
2734
|
-
Y(D(((pe = r.labels) == null ? void 0 : pe.delete) != null ?
|
|
2740
|
+
Y(D(((pe = r.labels) == null ? void 0 : pe.delete) != null ? $(o)((X = r.labels) == null ? void 0 : X.delete) : $(o)("common.table.delete")), 1)
|
|
2735
2741
|
];
|
|
2736
2742
|
}),
|
|
2737
2743
|
_: 1
|
|
2738
|
-
}, 8, ["disabled"])) :
|
|
2739
|
-
m(
|
|
2740
|
-
icon:
|
|
2744
|
+
}, 8, ["disabled"])) : z("", !0),
|
|
2745
|
+
m(q, {
|
|
2746
|
+
icon: $(qt),
|
|
2741
2747
|
style: { width: "28px" },
|
|
2742
2748
|
onClick: v
|
|
2743
2749
|
}, null, 8, ["icon"]),
|
|
@@ -2749,39 +2755,39 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2749
2755
|
m(ne, null, {
|
|
2750
2756
|
default: d(() => [
|
|
2751
2757
|
m(te, {
|
|
2752
|
-
icon:
|
|
2758
|
+
icon: $(Ao),
|
|
2753
2759
|
disabled: !0
|
|
2754
2760
|
}, {
|
|
2755
|
-
default: d(() =>
|
|
2761
|
+
default: d(() => x[3] || (x[3] = [
|
|
2756
2762
|
Y("导入")
|
|
2757
2763
|
])),
|
|
2758
2764
|
_: 1
|
|
2759
2765
|
}, 8, ["icon"]),
|
|
2760
2766
|
m(te, {
|
|
2761
|
-
icon:
|
|
2767
|
+
icon: $(Et),
|
|
2762
2768
|
divided: "",
|
|
2763
2769
|
disabled: !0
|
|
2764
2770
|
}, {
|
|
2765
|
-
default: d(() =>
|
|
2771
|
+
default: d(() => x[4] || (x[4] = [
|
|
2766
2772
|
Y("导出选中内容")
|
|
2767
2773
|
])),
|
|
2768
2774
|
_: 1
|
|
2769
2775
|
}, 8, ["icon"]),
|
|
2770
2776
|
m(te, {
|
|
2771
|
-
icon:
|
|
2777
|
+
icon: $(Et),
|
|
2772
2778
|
onClick: U
|
|
2773
2779
|
}, {
|
|
2774
|
-
default: d(() =>
|
|
2780
|
+
default: d(() => x[5] || (x[5] = [
|
|
2775
2781
|
Y("导出查询结果")
|
|
2776
2782
|
])),
|
|
2777
2783
|
_: 1
|
|
2778
2784
|
}, 8, ["icon"]),
|
|
2779
2785
|
m(te, {
|
|
2780
|
-
icon:
|
|
2786
|
+
icon: $(No),
|
|
2781
2787
|
divided: "",
|
|
2782
2788
|
disabled: !0
|
|
2783
2789
|
}, {
|
|
2784
|
-
default: d(() =>
|
|
2790
|
+
default: d(() => x[6] || (x[6] = [
|
|
2785
2791
|
Y("任务中心")
|
|
2786
2792
|
])),
|
|
2787
2793
|
_: 1
|
|
@@ -2791,9 +2797,9 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2791
2797
|
})
|
|
2792
2798
|
]),
|
|
2793
2799
|
default: d(() => [
|
|
2794
|
-
m(
|
|
2800
|
+
m(q, { style: { width: "28px" } }, {
|
|
2795
2801
|
icon: d(() => [
|
|
2796
|
-
m(
|
|
2802
|
+
m($(or))
|
|
2797
2803
|
]),
|
|
2798
2804
|
_: 1
|
|
2799
2805
|
})
|
|
@@ -2808,19 +2814,19 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2808
2814
|
m(ne, null, {
|
|
2809
2815
|
default: d(() => [
|
|
2810
2816
|
m(te, {
|
|
2811
|
-
icon:
|
|
2812
|
-
onClick:
|
|
2817
|
+
icon: $(Mo),
|
|
2818
|
+
onClick: W
|
|
2813
2819
|
}, {
|
|
2814
|
-
default: d(() =>
|
|
2820
|
+
default: d(() => x[7] || (x[7] = [
|
|
2815
2821
|
Y("打印")
|
|
2816
2822
|
])),
|
|
2817
2823
|
_: 1
|
|
2818
2824
|
}, 8, ["icon"]),
|
|
2819
2825
|
m(te, {
|
|
2820
|
-
icon:
|
|
2826
|
+
icon: $(Uo),
|
|
2821
2827
|
disabled: !0
|
|
2822
2828
|
}, {
|
|
2823
|
-
default: d(() =>
|
|
2829
|
+
default: d(() => x[8] || (x[8] = [
|
|
2824
2830
|
Y("表格设置")
|
|
2825
2831
|
])),
|
|
2826
2832
|
_: 1
|
|
@@ -2830,8 +2836,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2830
2836
|
})
|
|
2831
2837
|
]),
|
|
2832
2838
|
default: d(() => [
|
|
2833
|
-
m(
|
|
2834
|
-
icon:
|
|
2839
|
+
m(q, {
|
|
2840
|
+
icon: $(To),
|
|
2835
2841
|
style: { width: "28px" }
|
|
2836
2842
|
}, null, 8, ["icon"])
|
|
2837
2843
|
]),
|
|
@@ -2840,37 +2846,37 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2840
2846
|
r.tooltip ? (p(), I(K, {
|
|
2841
2847
|
key: 3,
|
|
2842
2848
|
effect: "dark",
|
|
2843
|
-
content:
|
|
2849
|
+
content: $(o)(r.tooltip),
|
|
2844
2850
|
placement: "right"
|
|
2845
2851
|
}, {
|
|
2846
2852
|
default: d(() => [
|
|
2847
2853
|
m(Q, { style: { color: "#8ba74f" } }, {
|
|
2848
2854
|
default: d(() => [
|
|
2849
|
-
m(
|
|
2855
|
+
m($(Do))
|
|
2850
2856
|
]),
|
|
2851
2857
|
_: 1
|
|
2852
2858
|
})
|
|
2853
2859
|
]),
|
|
2854
2860
|
_: 1
|
|
2855
|
-
}, 8, ["content"])) :
|
|
2861
|
+
}, 8, ["content"])) : z("", !0)
|
|
2856
2862
|
]),
|
|
2857
2863
|
S("div", rr, [
|
|
2858
2864
|
m(re, {
|
|
2859
|
-
placeholder: `${
|
|
2865
|
+
placeholder: `${$(o)("common.table.search")}...`,
|
|
2860
2866
|
modelValue: y.value,
|
|
2861
|
-
"onUpdate:modelValue":
|
|
2867
|
+
"onUpdate:modelValue": x[0] || (x[0] = (pe) => y.value = pe)
|
|
2862
2868
|
}, {
|
|
2863
2869
|
append: d(() => [
|
|
2864
|
-
m(
|
|
2870
|
+
m(q, {
|
|
2865
2871
|
style: { "margin-left": "-20px" },
|
|
2866
|
-
icon:
|
|
2872
|
+
icon: $(jt),
|
|
2867
2873
|
onClick: v
|
|
2868
2874
|
}, null, 8, ["icon"])
|
|
2869
2875
|
]),
|
|
2870
2876
|
_: 1
|
|
2871
2877
|
}, 8, ["placeholder", "modelValue"]),
|
|
2872
|
-
m(
|
|
2873
|
-
default: d(() =>
|
|
2878
|
+
m(q, { type: "text" }, {
|
|
2879
|
+
default: d(() => x[9] || (x[9] = [
|
|
2874
2880
|
Y("高级搜索")
|
|
2875
2881
|
])),
|
|
2876
2882
|
_: 1
|
|
@@ -2881,14 +2887,14 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2881
2887
|
border: !0,
|
|
2882
2888
|
ref_key: "tableRef",
|
|
2883
2889
|
ref: M,
|
|
2884
|
-
data:
|
|
2890
|
+
data: C,
|
|
2885
2891
|
onSelectionChange: T,
|
|
2886
2892
|
class: "table"
|
|
2887
2893
|
}, {
|
|
2888
2894
|
default: d(() => {
|
|
2889
2895
|
var pe;
|
|
2890
2896
|
return [
|
|
2891
|
-
r.readOnly ?
|
|
2897
|
+
r.readOnly ? z("", !0) : (p(), I(ce, {
|
|
2892
2898
|
key: 0,
|
|
2893
2899
|
type: "selection",
|
|
2894
2900
|
width: "50"
|
|
@@ -2928,7 +2934,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2928
2934
|
Y(D(Ve.row[X.prop]), 1)
|
|
2929
2935
|
]),
|
|
2930
2936
|
_: 2
|
|
2931
|
-
}, 1024)) :
|
|
2937
|
+
}, 1024)) : z("", !0)
|
|
2932
2938
|
];
|
|
2933
2939
|
}),
|
|
2934
2940
|
_: 2
|
|
@@ -2936,11 +2942,11 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2936
2942
|
}), 256)),
|
|
2937
2943
|
r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), I(ce, {
|
|
2938
2944
|
key: 1,
|
|
2939
|
-
label:
|
|
2945
|
+
label: $(o)("common.table.operation"),
|
|
2940
2946
|
width: "120"
|
|
2941
2947
|
}, {
|
|
2942
2948
|
default: d((X) => [
|
|
2943
|
-
r.updatable !== !1 ? (p(), I(
|
|
2949
|
+
r.updatable !== !1 ? (p(), I(q, {
|
|
2944
2950
|
key: 0,
|
|
2945
2951
|
link: "",
|
|
2946
2952
|
type: "primary",
|
|
@@ -2948,39 +2954,39 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2948
2954
|
onClick: (Oe) => G(X.$index, X.row)
|
|
2949
2955
|
}, {
|
|
2950
2956
|
default: d(() => [
|
|
2951
|
-
Y(D(
|
|
2957
|
+
Y(D($(o)("common.table.edit")), 1)
|
|
2952
2958
|
]),
|
|
2953
2959
|
_: 2
|
|
2954
|
-
}, 1032, ["onClick"])) :
|
|
2960
|
+
}, 1032, ["onClick"])) : z("", !0),
|
|
2955
2961
|
m(oe, {
|
|
2956
2962
|
title: "Are you sure to delete this?",
|
|
2957
2963
|
onConfirm: (Oe) => u(X.$index, X.row)
|
|
2958
2964
|
}, {
|
|
2959
2965
|
reference: d(() => [
|
|
2960
|
-
r.deletable !== !1 ? (p(), I(
|
|
2966
|
+
r.deletable !== !1 ? (p(), I(q, {
|
|
2961
2967
|
key: 0,
|
|
2962
2968
|
link: "",
|
|
2963
2969
|
type: "primary",
|
|
2964
2970
|
class: "operation-button"
|
|
2965
2971
|
}, {
|
|
2966
2972
|
default: d(() => [
|
|
2967
|
-
Y(D(
|
|
2973
|
+
Y(D($(o)("common.table.delete")), 1)
|
|
2968
2974
|
]),
|
|
2969
2975
|
_: 1
|
|
2970
|
-
})) :
|
|
2976
|
+
})) : z("", !0)
|
|
2971
2977
|
]),
|
|
2972
2978
|
_: 2
|
|
2973
2979
|
}, 1032, ["onConfirm"])
|
|
2974
2980
|
]),
|
|
2975
2981
|
_: 1
|
|
2976
|
-
}, 8, ["label"])) :
|
|
2982
|
+
}, 8, ["label"])) : z("", !0),
|
|
2977
2983
|
r.operations !== void 0 && !r.readOnly ? (p(), I(ce, {
|
|
2978
2984
|
key: 2,
|
|
2979
|
-
label:
|
|
2985
|
+
label: $(o)("common.table.operation"),
|
|
2980
2986
|
width: "120"
|
|
2981
2987
|
}, {
|
|
2982
2988
|
default: d((X) => [
|
|
2983
|
-
(p(!0), V(le, null, fe(r.operations, (Oe) => (p(), I(
|
|
2989
|
+
(p(!0), V(le, null, fe(r.operations, (Oe) => (p(), I(q, {
|
|
2984
2990
|
class: "operation-button",
|
|
2985
2991
|
link: "",
|
|
2986
2992
|
type: "primary",
|
|
@@ -2997,21 +3003,21 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2997
3003
|
}, 1032, ["onClick"]))), 128))
|
|
2998
3004
|
]),
|
|
2999
3005
|
_: 1
|
|
3000
|
-
}, 8, ["label"])) :
|
|
3006
|
+
}, 8, ["label"])) : z("", !0)
|
|
3001
3007
|
];
|
|
3002
3008
|
}),
|
|
3003
3009
|
_: 1
|
|
3004
3010
|
}, 8, ["data"])), [
|
|
3005
3011
|
[go, Z.value]
|
|
3006
3012
|
]),
|
|
3007
|
-
|
|
3013
|
+
B.value ? z("", !0) : (p(), I(Ie, {
|
|
3008
3014
|
key: 0,
|
|
3009
3015
|
size: "small",
|
|
3010
3016
|
background: "",
|
|
3011
|
-
onSizeChange:
|
|
3017
|
+
onSizeChange: k,
|
|
3012
3018
|
onCurrentChange: O,
|
|
3013
3019
|
currentPage: R.pageNo,
|
|
3014
|
-
"onUpdate:currentPage":
|
|
3020
|
+
"onUpdate:currentPage": x[1] || (x[1] = (pe) => R.pageNo = pe),
|
|
3015
3021
|
"page-sizes": [10, 20, 50, 100],
|
|
3016
3022
|
"page-size": R.pageSize,
|
|
3017
3023
|
layout: "total, sizes, prev, pager, next",
|
|
@@ -3023,7 +3029,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3023
3029
|
id: ie.value,
|
|
3024
3030
|
afterSubmitFunc: v,
|
|
3025
3031
|
visible: i.value,
|
|
3026
|
-
"onUpdate:visible":
|
|
3032
|
+
"onUpdate:visible": x[2] || (x[2] = (pe) => i.value = pe)
|
|
3027
3033
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
3028
3034
|
], 2);
|
|
3029
3035
|
};
|
|
@@ -3034,7 +3040,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3034
3040
|
}, dr = { class: "icon-wrapper" }, pr = { class: "info-wrapper" }, fr = { class: "title-wrapper" }, mr = { class: "tabs-wrapper" }, hr = { class: "dialog-footer" }, _r = /* @__PURE__ */ Se({
|
|
3035
3041
|
__name: "DetailPage",
|
|
3036
3042
|
setup(e) {
|
|
3037
|
-
const { t } = Qe(), o = Ke(), n = it(), s = Te(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), f = A(-1), y = A(),
|
|
3043
|
+
const { t } = Qe(), o = Ke(), n = it(), s = Te(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), f = A(-1), y = A(), C = A(), N = A("summary"), M = A(""), H = A(""), F = A(""), Z = A(0), B = de({
|
|
3038
3044
|
api: "",
|
|
3039
3045
|
fields: []
|
|
3040
3046
|
}), ie = de([]);
|
|
@@ -3055,32 +3061,32 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3055
3061
|
var O;
|
|
3056
3062
|
let u = (O = R[f.value].api) == null ? void 0 : O.replace("/select", "");
|
|
3057
3063
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
3058
|
-
const c =
|
|
3059
|
-
Ce(c, "POST",
|
|
3064
|
+
const c = B.api + "/" + s.value + u, k = C.value.multipleSelection.map((G) => G.id);
|
|
3065
|
+
Ce(c, "POST", k).then(() => {
|
|
3060
3066
|
y.value.refresh(), l.value = !1;
|
|
3061
3067
|
});
|
|
3062
3068
|
}
|
|
3063
|
-
function g(u, c,
|
|
3069
|
+
function g(u, c, k) {
|
|
3064
3070
|
var U;
|
|
3065
|
-
|
|
3066
|
-
l.value = !0,
|
|
3071
|
+
k.functions || (k.functions = {}), k.functions.create = () => {
|
|
3072
|
+
l.value = !0, C.value && C.value.refresh();
|
|
3067
3073
|
};
|
|
3068
3074
|
let O = Ge(c);
|
|
3069
3075
|
O.tableConfig || (O.tableConfig = {}), O.tableConfig.selectMode = !0, O.tableConfig.queryParams = {}, u.queryParamName && (O.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
3070
3076
|
for (var G in O.fields)
|
|
3071
3077
|
O.fields[G].tableColumnAttributes && (U = O.fields[G].tableColumnAttributes) != null && U.link && (O.fields[G].tableColumnAttributes.link = !1);
|
|
3072
|
-
R.push(O),
|
|
3078
|
+
R.push(O), k.labels = {
|
|
3073
3079
|
create: "common.table.add",
|
|
3074
3080
|
delete: "common.table.remove"
|
|
3075
|
-
},
|
|
3081
|
+
}, k.functions.batchDelete = (T) => {
|
|
3076
3082
|
var _;
|
|
3077
3083
|
let b = (_ = R[f.value].api) == null ? void 0 : _.replace("/select", "");
|
|
3078
3084
|
b = b == null ? void 0 : b.substring(b.lastIndexOf("/"));
|
|
3079
|
-
const j =
|
|
3080
|
-
ve.delete(`${j}/${
|
|
3081
|
-
|
|
3085
|
+
const j = B.api + "/" + s.value + b, W = T.map((x) => x.id);
|
|
3086
|
+
ve.delete(`${j}/${W.join(",")}`).then(({ data: x }) => {
|
|
3087
|
+
x.code === 0 && y.value.refresh();
|
|
3082
3088
|
});
|
|
3083
|
-
},
|
|
3089
|
+
}, k.operations = [
|
|
3084
3090
|
{
|
|
3085
3091
|
label: "common.table.remove",
|
|
3086
3092
|
functions: {
|
|
@@ -3088,8 +3094,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3088
3094
|
var _;
|
|
3089
3095
|
let j = (_ = R[f.value].api) == null ? void 0 : _.replace("/select", "");
|
|
3090
3096
|
j = j == null ? void 0 : j.substring(j.lastIndexOf("/"));
|
|
3091
|
-
const
|
|
3092
|
-
Ce(
|
|
3097
|
+
const W = B.api + "/" + s.value + j;
|
|
3098
|
+
Ce(W, "DELETE", b.id).then(() => {
|
|
3093
3099
|
y.value.refresh();
|
|
3094
3100
|
});
|
|
3095
3101
|
}
|
|
@@ -3106,26 +3112,26 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3106
3112
|
return;
|
|
3107
3113
|
} else
|
|
3108
3114
|
console.debug("Detail page model found:", u, be.value[u]);
|
|
3109
|
-
ze(
|
|
3115
|
+
ze(B);
|
|
3110
3116
|
const c = Ge(be.value[u]);
|
|
3111
|
-
Object.assign(
|
|
3112
|
-
const
|
|
3113
|
-
if (
|
|
3114
|
-
for (let T of
|
|
3117
|
+
Object.assign(B, c), Z.value++, f.value = -1, N.value = "summary";
|
|
3118
|
+
const k = (G = (O = B.pageConfig) == null ? void 0 : O.detailPage) == null ? void 0 : G.tabs;
|
|
3119
|
+
if (k)
|
|
3120
|
+
for (let T of k) {
|
|
3115
3121
|
const b = Ge(be.value[T.modelKey]);
|
|
3116
3122
|
if (ie.push(b), T.type === "table") {
|
|
3117
3123
|
b.tableConfig || (b.tableConfig = {});
|
|
3118
3124
|
let j = b.tableConfig;
|
|
3119
3125
|
j.showPane = !1, T.modelRelationType === "associated" ? g(T, b, j) : T.modelRelationType === "child" && (R.push({
|
|
3120
3126
|
fields: []
|
|
3121
|
-
}), b.formConfig === void 0 && (b.formConfig = {}), b.formConfig.functions === void 0 && (b.formConfig.functions = {}), T.queryParamName && (b.formConfig.functions.beforeSubmit = (
|
|
3122
|
-
|
|
3123
|
-
})), 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((
|
|
3127
|
+
}), b.formConfig === void 0 && (b.formConfig = {}), b.formConfig.functions === void 0 && (b.formConfig.functions = {}), T.queryParamName && (b.formConfig.functions.beforeSubmit = (W) => {
|
|
3128
|
+
W[T.queryParamName] = s.value;
|
|
3129
|
+
})), 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((W) => {
|
|
3124
3130
|
var _;
|
|
3125
|
-
return (_ = T.includeFields) == null ? void 0 : _.includes(
|
|
3126
|
-
})), T.excludeFields && (b.fields = b.fields.filter((
|
|
3131
|
+
return (_ = T.includeFields) == null ? void 0 : _.includes(W.prop);
|
|
3132
|
+
})), T.excludeFields && (b.fields = b.fields.filter((W) => {
|
|
3127
3133
|
var _;
|
|
3128
|
-
return !((_ = T.excludeFields) != null && _.includes(
|
|
3134
|
+
return !((_ = T.excludeFields) != null && _.includes(W.prop));
|
|
3129
3135
|
})), T.tooltip && (j.tooltip = T.tooltip);
|
|
3130
3136
|
}
|
|
3131
3137
|
}
|
|
@@ -3134,7 +3140,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3134
3140
|
[
|
|
3135
3141
|
() => {
|
|
3136
3142
|
var u, c;
|
|
3137
|
-
return (c = (u =
|
|
3143
|
+
return (c = (u = B.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
|
|
3138
3144
|
},
|
|
3139
3145
|
() => {
|
|
3140
3146
|
var u;
|
|
@@ -3143,9 +3149,9 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3143
3149
|
],
|
|
3144
3150
|
(u) => {
|
|
3145
3151
|
Be(() => {
|
|
3146
|
-
var
|
|
3147
|
-
const c = (O = (
|
|
3148
|
-
c && (M.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "",
|
|
3152
|
+
var k, O, G;
|
|
3153
|
+
const c = (O = (k = B.pageConfig) == null ? void 0 : k.detailPage) == null ? void 0 : O.infoCard;
|
|
3154
|
+
c && (M.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", H.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", F.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (G = B.fields) == null || G.forEach((U) => {
|
|
3149
3155
|
var T, b;
|
|
3150
3156
|
if (U.prop === c.tagFieldProp) {
|
|
3151
3157
|
const j = (b = (T = U.tableColumnAttributes) == null ? void 0 : T.functions) == null ? void 0 : b.transformValue;
|
|
@@ -3166,12 +3172,12 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3166
3172
|
i.value.refresh();
|
|
3167
3173
|
}
|
|
3168
3174
|
return (u, c) => {
|
|
3169
|
-
var w, J,
|
|
3170
|
-
const
|
|
3175
|
+
var w, J, q, te, ne, se;
|
|
3176
|
+
const k = E("el-page-header"), O = E("el-button"), G = E("el-icon"), U = E("el-dropdown-item"), T = E("el-dropdown-menu"), b = E("el-dropdown"), j = E("el-tag"), W = E("el-tab-pane"), _ = E("el-tabs"), x = E("el-dialog");
|
|
3171
3177
|
return p(), V(le, null, [
|
|
3172
3178
|
S("div", ir, [
|
|
3173
|
-
m(
|
|
3174
|
-
onClick: c[0] || (c[0] = (Q) =>
|
|
3179
|
+
m(k, {
|
|
3180
|
+
onClick: c[0] || (c[0] = (Q) => $(n).back())
|
|
3175
3181
|
}, {
|
|
3176
3182
|
title: d(() => c[5] || (c[5] = [
|
|
3177
3183
|
S("span", null, null, -1)
|
|
@@ -3179,7 +3185,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3179
3185
|
content: d(() => {
|
|
3180
3186
|
var Q;
|
|
3181
3187
|
return [
|
|
3182
|
-
S("span", cr, D(
|
|
3188
|
+
S("span", cr, D($(t)((Q = B == null ? void 0 : B.name) != null ? Q : "")), 1)
|
|
3183
3189
|
];
|
|
3184
3190
|
}),
|
|
3185
3191
|
_: 1
|
|
@@ -3190,21 +3196,21 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3190
3196
|
onClick: v
|
|
3191
3197
|
}, {
|
|
3192
3198
|
default: d(() => [
|
|
3193
|
-
Y(D(
|
|
3199
|
+
Y(D($(t)("common.table.edit")), 1)
|
|
3194
3200
|
]),
|
|
3195
3201
|
_: 1
|
|
3196
3202
|
}),
|
|
3197
|
-
((J = (w =
|
|
3203
|
+
((J = (w = B.pageConfig) == null ? void 0 : w.detailPage) == null ? void 0 : J.operationButtons) !== void 0 ? (p(), I(b, { key: 0 }, {
|
|
3198
3204
|
dropdown: d(() => [
|
|
3199
3205
|
m(T, null, {
|
|
3200
3206
|
default: d(() => {
|
|
3201
3207
|
var Q, K;
|
|
3202
3208
|
return [
|
|
3203
|
-
(p(!0), V(le, null, fe((K = (Q =
|
|
3209
|
+
(p(!0), V(le, null, fe((K = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : K.operationButtons, (re) => (p(), I(U, {
|
|
3204
3210
|
onClick: (ce) => re.function(i.value.formData)
|
|
3205
3211
|
}, {
|
|
3206
3212
|
default: d(() => [
|
|
3207
|
-
Y(D(
|
|
3213
|
+
Y(D($(t)(re.label)), 1)
|
|
3208
3214
|
]),
|
|
3209
3215
|
_: 2
|
|
3210
3216
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -3216,10 +3222,10 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3216
3222
|
default: d(() => [
|
|
3217
3223
|
m(O, { style: { margin: "0 10px" } }, {
|
|
3218
3224
|
default: d(() => [
|
|
3219
|
-
Y(D(
|
|
3225
|
+
Y(D($(t)("common.basic.more")), 1),
|
|
3220
3226
|
m(G, { class: "el-icon--right" }, {
|
|
3221
3227
|
default: d(() => [
|
|
3222
|
-
m(
|
|
3228
|
+
m($(zt))
|
|
3223
3229
|
]),
|
|
3224
3230
|
_: 1
|
|
3225
3231
|
})
|
|
@@ -3228,7 +3234,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3228
3234
|
})
|
|
3229
3235
|
]),
|
|
3230
3236
|
_: 1
|
|
3231
|
-
})) :
|
|
3237
|
+
})) : z("", !0),
|
|
3232
3238
|
m(O, {
|
|
3233
3239
|
onClick: P,
|
|
3234
3240
|
style: { "border-color": "#bbb", width: "30px" }
|
|
@@ -3236,7 +3242,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3236
3242
|
default: d(() => [
|
|
3237
3243
|
m(G, null, {
|
|
3238
3244
|
default: d(() => [
|
|
3239
|
-
m(
|
|
3245
|
+
m($(qt))
|
|
3240
3246
|
]),
|
|
3241
3247
|
_: 1
|
|
3242
3248
|
})
|
|
@@ -3245,9 +3251,9 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3245
3251
|
})
|
|
3246
3252
|
])
|
|
3247
3253
|
]),
|
|
3248
|
-
(te = (
|
|
3254
|
+
(te = (q = B.pageConfig) == null ? void 0 : q.detailPage) != null && te.infoCard ? (p(), V("div", ur, [
|
|
3249
3255
|
S("div", dr, [
|
|
3250
|
-
(p(), I(st((ne =
|
|
3256
|
+
(p(), I(st((ne = B.pageConfig.detailPage.infoCard.icon) != null ? ne : ""), { class: "icon" }))
|
|
3251
3257
|
]),
|
|
3252
3258
|
S("div", pr, [
|
|
3253
3259
|
S("div", fr, [
|
|
@@ -3260,11 +3266,11 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3260
3266
|
Y(D(F.value), 1)
|
|
3261
3267
|
]),
|
|
3262
3268
|
_: 1
|
|
3263
|
-
})) :
|
|
3269
|
+
})) : z("", !0)
|
|
3264
3270
|
]),
|
|
3265
|
-
S("span", null, D(
|
|
3271
|
+
S("span", null, D(H.value), 1)
|
|
3266
3272
|
])
|
|
3267
|
-
])) :
|
|
3273
|
+
])) : z("", !0),
|
|
3268
3274
|
S("div", mr, [
|
|
3269
3275
|
m(_, {
|
|
3270
3276
|
modelValue: N.value,
|
|
@@ -3274,8 +3280,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3274
3280
|
default: d(() => {
|
|
3275
3281
|
var Q, K;
|
|
3276
3282
|
return [
|
|
3277
|
-
m(
|
|
3278
|
-
label:
|
|
3283
|
+
m(W, {
|
|
3284
|
+
label: $(t)("common.basic.summary"),
|
|
3279
3285
|
name: "summary"
|
|
3280
3286
|
}, {
|
|
3281
3287
|
default: d(() => [
|
|
@@ -3285,15 +3291,15 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3285
3291
|
id: s.value,
|
|
3286
3292
|
sessionId: Z.value,
|
|
3287
3293
|
mode: a.value,
|
|
3288
|
-
model:
|
|
3294
|
+
model: B
|
|
3289
3295
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
3290
3296
|
]),
|
|
3291
3297
|
_: 1
|
|
3292
3298
|
}, 8, ["label"]),
|
|
3293
|
-
(p(!0), V(le, null, fe((K = (Q =
|
|
3299
|
+
(p(!0), V(le, null, fe((K = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : K.tabs, (re) => {
|
|
3294
3300
|
var ce;
|
|
3295
|
-
return p(), I(
|
|
3296
|
-
label:
|
|
3301
|
+
return p(), I(W, {
|
|
3302
|
+
label: $(t)((ce = re.name) != null ? ce : "")
|
|
3297
3303
|
}, null, 8, ["label"]);
|
|
3298
3304
|
}), 256))
|
|
3299
3305
|
];
|
|
@@ -3305,11 +3311,11 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3305
3311
|
ref_key: "tabPaneTableRef",
|
|
3306
3312
|
ref: y,
|
|
3307
3313
|
model: ie[f.value]
|
|
3308
|
-
}, null, 8, ["model"])) :
|
|
3309
|
-
m(
|
|
3314
|
+
}, null, 8, ["model"])) : z("", !0),
|
|
3315
|
+
m(x, {
|
|
3310
3316
|
modelValue: l.value,
|
|
3311
3317
|
"onUpdate:modelValue": c[3] || (c[3] = (Q) => l.value = Q),
|
|
3312
|
-
title:
|
|
3318
|
+
title: $(t)("common.table.select"),
|
|
3313
3319
|
width: "800px"
|
|
3314
3320
|
}, {
|
|
3315
3321
|
footer: d(() => [
|
|
@@ -3318,7 +3324,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3318
3324
|
onClick: c[2] || (c[2] = (Q) => l.value = !1)
|
|
3319
3325
|
}, {
|
|
3320
3326
|
default: d(() => [
|
|
3321
|
-
Y(D(
|
|
3327
|
+
Y(D($(t)("common.basic.cancel")), 1)
|
|
3322
3328
|
]),
|
|
3323
3329
|
_: 1
|
|
3324
3330
|
}),
|
|
@@ -3327,7 +3333,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3327
3333
|
onClick: ee
|
|
3328
3334
|
}, {
|
|
3329
3335
|
default: d(() => [
|
|
3330
|
-
Y(D(
|
|
3336
|
+
Y(D($(t)("common.basic.save")), 1)
|
|
3331
3337
|
]),
|
|
3332
3338
|
_: 1
|
|
3333
3339
|
})
|
|
@@ -3337,9 +3343,9 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3337
3343
|
f.value >= 0 ? (p(), I(lt, {
|
|
3338
3344
|
key: 0,
|
|
3339
3345
|
ref_key: "selectTableRef",
|
|
3340
|
-
ref:
|
|
3341
|
-
model:
|
|
3342
|
-
}, null, 8, ["model"])) :
|
|
3346
|
+
ref: C,
|
|
3347
|
+
model: $(R)[f.value]
|
|
3348
|
+
}, null, 8, ["model"])) : z("", !0)
|
|
3343
3349
|
]),
|
|
3344
3350
|
_: 1
|
|
3345
3351
|
}, 8, ["modelValue", "title"])
|
|
@@ -3349,7 +3355,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3349
3355
|
mode: "update",
|
|
3350
3356
|
visible: r.value,
|
|
3351
3357
|
"onUpdate:visible": c[4] || (c[4] = (Q) => r.value = Q),
|
|
3352
|
-
model:
|
|
3358
|
+
model: B,
|
|
3353
3359
|
afterSubmitFunc: P
|
|
3354
3360
|
}, null, 8, ["id", "visible", "model"])
|
|
3355
3361
|
], 64);
|
|
@@ -3363,8 +3369,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3363
3369
|
fields: []
|
|
3364
3370
|
}), a = de(Xe({}, l));
|
|
3365
3371
|
function i() {
|
|
3366
|
-
var y,
|
|
3367
|
-
r.value = [], l.pageConfig && ((
|
|
3372
|
+
var y, C, N, M, H;
|
|
3373
|
+
r.value = [], l.pageConfig && ((C = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && C.tabViewAttributes) && (r.value = (H = (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : M.tabViewAttributes) == null ? void 0 : H.map((F) => {
|
|
3368
3374
|
let Z;
|
|
3369
3375
|
return F.modelKey && be.value[F.modelKey] ? Z = Ge(be.value[F.modelKey]) : Z = Ge(l), F.queryParams && (Z.tableConfig || (Z.tableConfig = {}), Z.tableConfig.queryParams = F.queryParams), F.fields && (Z.fields = F.fields), F.modelKey && (Z.breadcrumbRoute = l.route), {
|
|
3370
3376
|
key: F.key,
|
|
@@ -3384,8 +3390,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3384
3390
|
return;
|
|
3385
3391
|
}
|
|
3386
3392
|
ze(l);
|
|
3387
|
-
const
|
|
3388
|
-
Object.assign(l,
|
|
3393
|
+
const C = Ge(be.value[y]);
|
|
3394
|
+
Object.assign(l, C), (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && M.tabViewAttributes || Object.assign(a, l), i();
|
|
3389
3395
|
}
|
|
3390
3396
|
return Ee([
|
|
3391
3397
|
() => n.currentRoute.value,
|
|
@@ -3395,21 +3401,21 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3395
3401
|
}, {
|
|
3396
3402
|
immediate: !0,
|
|
3397
3403
|
deep: !0
|
|
3398
|
-
}), (y,
|
|
3404
|
+
}), (y, C) => {
|
|
3399
3405
|
var M;
|
|
3400
3406
|
const N = E("el-scrollbar");
|
|
3401
3407
|
return p(), V(le, null, [
|
|
3402
|
-
S("h1", br, D(
|
|
3408
|
+
S("h1", br, D($(t)((M = l.name) != null ? M : "")), 1),
|
|
3403
3409
|
m(N, null, {
|
|
3404
3410
|
default: d(() => {
|
|
3405
|
-
var
|
|
3411
|
+
var H, F;
|
|
3406
3412
|
return [
|
|
3407
|
-
(F = (
|
|
3413
|
+
(F = (H = l.pageConfig) == null ? void 0 : H.tablePage) != null && F.tabViewAttributes ? (p(), I(mo, {
|
|
3408
3414
|
key: 0,
|
|
3409
3415
|
class: "tabs-wrapper",
|
|
3410
3416
|
cards: r.value,
|
|
3411
3417
|
tableRef: s.value
|
|
3412
|
-
}, null, 8, ["cards", "tableRef"])) :
|
|
3418
|
+
}, null, 8, ["cards", "tableRef"])) : z("", !0)
|
|
3413
3419
|
];
|
|
3414
3420
|
}),
|
|
3415
3421
|
_: 1
|