@vancone/console-component 0.1.1-beta.66 → 0.1.1-beta.68
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 Me = (e, o, n) => new Promise((t, s) => {
|
|
|
26
26
|
}, r = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(a, c);
|
|
27
27
|
r((n = n.apply(e, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as u, createElementBlock as E, createElementVNode as v, defineComponent as Ee, reactive as
|
|
29
|
+
import { openBlock as u, createElementBlock as E, createElementVNode as v, defineComponent as Ee, reactive as fe, resolveComponent as x, createVNode as h, withCtx as p, unref as y, Fragment as te, renderList as me, toDisplayString as A, normalizeStyle as He, ref as N, onMounted as yt, createBlock as I, createTextVNode as H, createCommentVNode as G, normalizeClass as wt, withModifiers as Oo, resolveDynamicComponent as lt, effectScope as Bt, markRaw as Re, toRaw as Qe, hasInjectionContext as Po, inject as Io, getCurrentInstance as Vo, watch as Ve, isRef as Xe, isReactive as Ct, toRef as ft, nextTick as it, computed as Ae, getCurrentScope as Mo, onScopeDispose as No, toRefs as Nt, onUnmounted as Uo, createStaticVNode as To, resolveDirective as Wt, withDirectives as Yt } from "vue";
|
|
30
30
|
import { useRoute as et, useRouter as pt } from "vue-router";
|
|
31
31
|
import Ao from "axios";
|
|
32
32
|
import { ElMessage as mt, ElMessageBox as Ut } from "element-plus";
|
|
@@ -42,12 +42,12 @@ const we = (e, o) => {
|
|
|
42
42
|
function Yo(e, o) {
|
|
43
43
|
return u(), E("div", Wo);
|
|
44
44
|
}
|
|
45
|
-
const Jo = /* @__PURE__ */ we(Bo, [["render", Yo], ["__scopeId", "data-v-07bd45d2"]]),
|
|
45
|
+
const Jo = /* @__PURE__ */ we(Bo, [["render", Yo], ["__scopeId", "data-v-07bd45d2"]]), ye = Ao.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
ye.interceptors.request.use((e) => e);
|
|
50
|
+
ye.interceptors.response.use((e) => {
|
|
51
51
|
const { headers: o, method: n } = e.config, { code: t, message: s } = e.data, { "No-Success-Message": a } = o, c = n !== "get";
|
|
52
52
|
return t === 0 ? (c && !a && mt({
|
|
53
53
|
message: s,
|
|
@@ -175,22 +175,22 @@ const Ko = {
|
|
|
175
175
|
const { origin: e } = window.location;
|
|
176
176
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
177
177
|
};
|
|
178
|
-
function
|
|
178
|
+
function de(e) {
|
|
179
179
|
const o = "i18n(", n = ")";
|
|
180
180
|
return e && e.startsWith(o) && e.endsWith(n) ? Xo(e.slice(o.length, -n.length)) : e != null ? e : "";
|
|
181
181
|
}
|
|
182
182
|
const Xt = Qt();
|
|
183
183
|
function Zo() {
|
|
184
|
-
return
|
|
184
|
+
return ye.get(`//${Xt}/api/passport/service/v1/account`);
|
|
185
185
|
}
|
|
186
186
|
function en() {
|
|
187
|
-
return
|
|
187
|
+
return ye.delete(`//${Xt}/api/passport/service/v1/login`);
|
|
188
188
|
}
|
|
189
189
|
function tn() {
|
|
190
|
-
return
|
|
190
|
+
return ye.get("//app-center.vancone.com/api/app-center/v1/app-group?pageSize=1000");
|
|
191
191
|
}
|
|
192
192
|
function on() {
|
|
193
|
-
return
|
|
193
|
+
return ye.get("//app-center.vancone.com/api/app-center/v1/store/app?pageSize=1000");
|
|
194
194
|
}
|
|
195
195
|
const nn = {
|
|
196
196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -237,7 +237,7 @@ const pn = { render: un }, fn = { class: "app-catalog-wrapper" }, mn = { class:
|
|
|
237
237
|
visible: { type: Boolean }
|
|
238
238
|
},
|
|
239
239
|
setup(e) {
|
|
240
|
-
const o =
|
|
240
|
+
const o = fe([]);
|
|
241
241
|
function n() {
|
|
242
242
|
tn().then(({ data: t }) => {
|
|
243
243
|
o.splice(0, o.length, ...t.data.list), on().then(({ data: s }) => {
|
|
@@ -270,10 +270,10 @@ const pn = { render: un }, fn = { class: "app-catalog-wrapper" }, mn = { class:
|
|
|
270
270
|
}, {
|
|
271
271
|
default: p(() => [
|
|
272
272
|
v("div", mn, [
|
|
273
|
-
(u(!0), E(te, null,
|
|
273
|
+
(u(!0), E(te, null, me(o, (f) => (u(), E("div", hn, [
|
|
274
274
|
v("h1", null, A(f.name), 1),
|
|
275
275
|
v("div", _n, [
|
|
276
|
-
(u(!0), E(te, null,
|
|
276
|
+
(u(!0), E(te, null, me(f.apps, (b) => {
|
|
277
277
|
var $, V;
|
|
278
278
|
return u(), E("a", {
|
|
279
279
|
style: He([{ "text-decoration": "none" }, { pointerEvents: (($ = b.homepageUrl) == null ? void 0 : $.length) > 0 ? "auto" : "none" }]),
|
|
@@ -374,13 +374,13 @@ const Nn = { render: Mn };
|
|
|
374
374
|
function $e(e, o, n) {
|
|
375
375
|
switch (o) {
|
|
376
376
|
case "POST":
|
|
377
|
-
return
|
|
377
|
+
return ye.post(e, n);
|
|
378
378
|
case "PUT":
|
|
379
|
-
return
|
|
379
|
+
return ye.put(e, n);
|
|
380
380
|
case "DELETE":
|
|
381
|
-
return
|
|
381
|
+
return ye.delete(e + "/" + n);
|
|
382
382
|
default:
|
|
383
|
-
return
|
|
383
|
+
return ye.get(e, { params: n });
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }, Dn = { class: "icon-wrapper" }, Rn = { class: "user-wrapper" }, Fn = { style: { "font-size": "11px", "font-weight": "bold" } }, Ln = { class: "user-popover-header" }, Gn = { style: { "font-size": "15px", "font-weight": "bold" } }, jn = ["onClick"], zn = { class: "message-center-header" }, qn = { class: "message-center-content" }, Hn = {
|
|
@@ -436,12 +436,12 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
436
436
|
sendTime: "2025-12-25 14:00:00",
|
|
437
437
|
isRead: !0
|
|
438
438
|
}
|
|
439
|
-
]), i = N([]), f = N(!1), b = e, $ = N(), V =
|
|
439
|
+
]), i = N([]), f = N(!1), b = e, $ = N(), V = fe(
|
|
440
440
|
{
|
|
441
441
|
id: "",
|
|
442
442
|
name: ""
|
|
443
443
|
}
|
|
444
|
-
), M = N(""), z = N(ct.global.locale), Y =
|
|
444
|
+
), M = N(""), z = N(ct.global.locale), Y = fe([
|
|
445
445
|
{
|
|
446
446
|
id: "en",
|
|
447
447
|
name: "English"
|
|
@@ -480,7 +480,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
480
480
|
function oe() {
|
|
481
481
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function he() {
|
|
484
484
|
window.open(b.helpDocUrl, "_blank");
|
|
485
485
|
}
|
|
486
486
|
function W(l) {
|
|
@@ -531,7 +531,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
531
531
|
dropdown: p(() => [
|
|
532
532
|
h(F, { style: { width: "300px" } }, {
|
|
533
533
|
default: p(() => [
|
|
534
|
-
(u(!0), E(te, null,
|
|
534
|
+
(u(!0), E(te, null, me($.value, (R) => (u(), I(P, {
|
|
535
535
|
command: R.id
|
|
536
536
|
}, {
|
|
537
537
|
default: p(() => [
|
|
@@ -600,7 +600,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
600
600
|
b.helpDocUrl !== void 0 ? (u(), E("div", {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "icon-wrapper",
|
|
603
|
-
onClick:
|
|
603
|
+
onClick: he
|
|
604
604
|
}, [
|
|
605
605
|
h(y(En))
|
|
606
606
|
])) : G("", !0)
|
|
@@ -693,7 +693,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
693
693
|
"popper-style": "height: 80px; left: -165px"
|
|
694
694
|
}, {
|
|
695
695
|
default: p(() => [
|
|
696
|
-
(u(!0), E(te, null,
|
|
696
|
+
(u(!0), E(te, null, me(Y, (R) => (u(), E("div", {
|
|
697
697
|
class: "select-list",
|
|
698
698
|
onClick: (ne) => ee(R.id)
|
|
699
699
|
}, [
|
|
@@ -792,7 +792,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
792
792
|
_: 1
|
|
793
793
|
}, 8, ["indeterminate", "modelValue"])
|
|
794
794
|
])),
|
|
795
|
-
(u(!0), E(te, null,
|
|
795
|
+
(u(!0), E(te, null, me(r.value, (R) => (u(), E("div", {
|
|
796
796
|
key: R.id,
|
|
797
797
|
class: wt(["message-item", { unread: !R.isRead, selected: i.value.includes(R.id) }]),
|
|
798
798
|
onClick: (ne) => i.value = i.value.includes(R.id) ? i.value.filter((Q) => Q !== R.id) : [...i.value, R.id]
|
|
@@ -857,11 +857,11 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
857
857
|
innerHTML: o.menu.meta.svgXml
|
|
858
858
|
}, null, 8, ls)) : G("", !0)
|
|
859
859
|
]),
|
|
860
|
-
v("span", null, A(y(
|
|
860
|
+
v("span", null, A(y(de)((b = n.menu.meta) == null ? void 0 : b.title)), 1)
|
|
861
861
|
];
|
|
862
862
|
}),
|
|
863
863
|
default: p(() => [
|
|
864
|
-
(u(!0), E(te, null,
|
|
864
|
+
(u(!0), E(te, null, me(n.menu.children, (r) => (u(), I(s, {
|
|
865
865
|
key: r.path,
|
|
866
866
|
route: r,
|
|
867
867
|
menu: r
|
|
@@ -876,7 +876,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
876
876
|
title: p(() => {
|
|
877
877
|
var r;
|
|
878
878
|
return [
|
|
879
|
-
v("span", null, A(y(
|
|
879
|
+
v("span", null, A(y(de)((r = n.menu.meta) == null ? void 0 : r.title)), 1)
|
|
880
880
|
];
|
|
881
881
|
}),
|
|
882
882
|
default: p(() => {
|
|
@@ -1263,7 +1263,7 @@ function Ms(e) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
1265
|
let ze = !0;
|
|
1266
|
-
const rt = [], De = "pinia:mutations",
|
|
1266
|
+
const rt = [], De = "pinia:mutations", ue = "pinia", { assign: Ns } = Object, dt = (e) => "🍍 " + e;
|
|
1267
1267
|
function Us(e, o) {
|
|
1268
1268
|
oo({
|
|
1269
1269
|
id: "dev.esm.pinia",
|
|
@@ -1279,7 +1279,7 @@ function Us(e, o) {
|
|
|
1279
1279
|
label: "Pinia 🍍",
|
|
1280
1280
|
color: 15064968
|
|
1281
1281
|
}), n.addInspector({
|
|
1282
|
-
id:
|
|
1282
|
+
id: ue,
|
|
1283
1283
|
label: "Pinia 🍍",
|
|
1284
1284
|
icon: "storage",
|
|
1285
1285
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -1294,7 +1294,7 @@ function Us(e, o) {
|
|
|
1294
1294
|
{
|
|
1295
1295
|
icon: "content_paste",
|
|
1296
1296
|
action: () => Me(this, null, function* () {
|
|
1297
|
-
yield xs(o), n.sendInspectorTree(
|
|
1297
|
+
yield xs(o), n.sendInspectorTree(ue), n.sendInspectorState(ue);
|
|
1298
1298
|
}),
|
|
1299
1299
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1300
1300
|
},
|
|
@@ -1308,7 +1308,7 @@ function Us(e, o) {
|
|
|
1308
1308
|
{
|
|
1309
1309
|
icon: "folder_open",
|
|
1310
1310
|
action: () => Me(this, null, function* () {
|
|
1311
|
-
yield Os(o), n.sendInspectorTree(
|
|
1311
|
+
yield Os(o), n.sendInspectorTree(ue), n.sendInspectorState(ue);
|
|
1312
1312
|
}),
|
|
1313
1313
|
tooltip: "Import the state from a JSON file"
|
|
1314
1314
|
}
|
|
@@ -1363,19 +1363,19 @@ function Us(e, o) {
|
|
|
1363
1363
|
});
|
|
1364
1364
|
}
|
|
1365
1365
|
}), n.on.getInspectorTree((t) => {
|
|
1366
|
-
if (t.app === e && t.inspectorId ===
|
|
1366
|
+
if (t.app === e && t.inspectorId === ue) {
|
|
1367
1367
|
let s = [o];
|
|
1368
1368
|
s = s.concat(Array.from(o._s.values())), t.rootNodes = (t.filter ? s.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(t.filter.toLowerCase()) : uo.toLowerCase().includes(t.filter.toLowerCase())) : s).map(Ps);
|
|
1369
1369
|
}
|
|
1370
1370
|
}), globalThis.$pinia = o, n.on.getInspectorState((t) => {
|
|
1371
|
-
if (t.app === e && t.inspectorId ===
|
|
1371
|
+
if (t.app === e && t.inspectorId === ue) {
|
|
1372
1372
|
const s = t.nodeId === at ? o : o._s.get(t.nodeId);
|
|
1373
1373
|
if (!s)
|
|
1374
1374
|
return;
|
|
1375
1375
|
s && (t.nodeId !== at && (globalThis.$store = Qe(s)), t.state = Is(s));
|
|
1376
1376
|
}
|
|
1377
1377
|
}), n.on.editInspectorState((t, s) => {
|
|
1378
|
-
if (t.app === e && t.inspectorId ===
|
|
1378
|
+
if (t.app === e && t.inspectorId === ue) {
|
|
1379
1379
|
const a = t.nodeId === at ? o : o._s.get(t.nodeId);
|
|
1380
1380
|
if (!a)
|
|
1381
1381
|
return le(`store "${t.nodeId}" not found`, "error");
|
|
@@ -1471,7 +1471,7 @@ function Ts(e, o) {
|
|
|
1471
1471
|
});
|
|
1472
1472
|
}, !0), o._customProperties.forEach((c) => {
|
|
1473
1473
|
Ve(() => y(o[c]), (r, i) => {
|
|
1474
|
-
n.notifyComponentUpdate(), n.sendInspectorState(
|
|
1474
|
+
n.notifyComponentUpdate(), n.sendInspectorState(ue), ze && n.addTimelineEvent({
|
|
1475
1475
|
layerId: De,
|
|
1476
1476
|
event: {
|
|
1477
1477
|
time: t(),
|
|
@@ -1486,7 +1486,7 @@ function Ts(e, o) {
|
|
|
1486
1486
|
});
|
|
1487
1487
|
}, { deep: !0 });
|
|
1488
1488
|
}), o.$subscribe(({ events: c, type: r }, i) => {
|
|
1489
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(
|
|
1489
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(ue), !ze)
|
|
1490
1490
|
return;
|
|
1491
1491
|
const f = {
|
|
1492
1492
|
time: t(),
|
|
@@ -1519,12 +1519,12 @@ function Ts(e, o) {
|
|
|
1519
1519
|
info: Se("HMR update")
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
}), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1522
|
+
}), n.notifyComponentUpdate(), n.sendInspectorTree(ue), n.sendInspectorState(ue);
|
|
1523
1523
|
});
|
|
1524
1524
|
const { $dispose: a } = o;
|
|
1525
1525
|
o.$dispose = () => {
|
|
1526
|
-
a(), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1527
|
-
}, n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1526
|
+
a(), n.notifyComponentUpdate(), n.sendInspectorTree(ue), n.sendInspectorState(ue), n.getSettings().logStoreChanges && le(`Disposed "${o.$id}" store 🗑`);
|
|
1527
|
+
}, n.notifyComponentUpdate(), n.sendInspectorTree(ue), n.sendInspectorState(ue), n.getSettings().logStoreChanges && le(`"${o.$id}" store installed 🆕`);
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
1530
|
let po = 0, Te;
|
|
@@ -1624,7 +1624,7 @@ const Fs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
1624
1624
|
function Ls(e) {
|
|
1625
1625
|
return !Le(e) || !e.hasOwnProperty(Fs);
|
|
1626
1626
|
}
|
|
1627
|
-
const { assign:
|
|
1627
|
+
const { assign: be } = Object;
|
|
1628
1628
|
function jt(e) {
|
|
1629
1629
|
return !!(Xe(e) && e.effect);
|
|
1630
1630
|
}
|
|
@@ -1637,7 +1637,7 @@ function zt(e, o, n, t) {
|
|
|
1637
1637
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1638
1638
|
Nt(N(s ? s() : {}).value)
|
|
1639
1639
|
) : Nt(n.state.value[e]);
|
|
1640
|
-
return
|
|
1640
|
+
return be(b, a, Object.keys(c || {}).reduce(($, V) => (process.env.NODE_ENV !== "production" && V in b && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${V}" in store "${e}".`), $[V] = Re(Ae(() => {
|
|
1641
1641
|
Ze(n);
|
|
1642
1642
|
const M = n._s.get(e);
|
|
1643
1643
|
return c[V].call(M, M);
|
|
@@ -1647,7 +1647,7 @@ function zt(e, o, n, t) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
function bt(e, o, n = {}, t, s, a) {
|
|
1649
1649
|
let c;
|
|
1650
|
-
const r =
|
|
1650
|
+
const r = be({ actions: {} }, n);
|
|
1651
1651
|
if (process.env.NODE_ENV !== "production" && !t._e.active)
|
|
1652
1652
|
throw new Error("Pinia destroyed");
|
|
1653
1653
|
const i = { deep: !0 };
|
|
@@ -1679,7 +1679,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1679
1679
|
const ee = a ? function() {
|
|
1680
1680
|
const { state: l } = n, _ = l ? l() : {};
|
|
1681
1681
|
this.$patch((k) => {
|
|
1682
|
-
|
|
1682
|
+
be(k, _);
|
|
1683
1683
|
});
|
|
1684
1684
|
} : (
|
|
1685
1685
|
/* istanbul ignore next */
|
|
@@ -1690,7 +1690,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1690
1690
|
function oe() {
|
|
1691
1691
|
c.stop(), $ = [], V = [], t._s.delete(e);
|
|
1692
1692
|
}
|
|
1693
|
-
const
|
|
1693
|
+
const he = (d, l = "") => {
|
|
1694
1694
|
if (Gt in d)
|
|
1695
1695
|
return d[_t] = l, d;
|
|
1696
1696
|
const _ = function() {
|
|
@@ -1737,11 +1737,11 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1737
1737
|
type: Ie.direct,
|
|
1738
1738
|
events: M
|
|
1739
1739
|
}, P);
|
|
1740
|
-
},
|
|
1740
|
+
}, be({}, i, l)));
|
|
1741
1741
|
return _;
|
|
1742
1742
|
},
|
|
1743
1743
|
$dispose: oe
|
|
1744
|
-
}, U =
|
|
1744
|
+
}, U = fe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Fe ? be(
|
|
1745
1745
|
{
|
|
1746
1746
|
_hmrPayload: W,
|
|
1747
1747
|
_customProperties: Re(/* @__PURE__ */ new Set())
|
|
@@ -1752,13 +1752,13 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1752
1752
|
// setupStore
|
|
1753
1753
|
) : Ce);
|
|
1754
1754
|
t._s.set(e, U);
|
|
1755
|
-
const T = (t._a && t._a.runWithContext || Rs)(() => t._e.run(() => (c = Bt()).run(() => o({ action:
|
|
1755
|
+
const T = (t._a && t._a.runWithContext || Rs)(() => t._e.run(() => (c = Bt()).run(() => o({ action: he }))));
|
|
1756
1756
|
for (const d in T) {
|
|
1757
1757
|
const l = T[d];
|
|
1758
1758
|
if (Xe(l) && !jt(l) || Ct(l))
|
|
1759
1759
|
process.env.NODE_ENV !== "production" && s ? ot(Y.value, d, ft(T, d)) : a || (z && Ls(l) && (Xe(l) ? l.value = z[d] : gt(l, z[d])), t.state.value[e][d] = l), process.env.NODE_ENV !== "production" && W.state.push(d);
|
|
1760
1760
|
else if (typeof l == "function") {
|
|
1761
|
-
const _ = process.env.NODE_ENV !== "production" && s ? l :
|
|
1761
|
+
const _ = process.env.NODE_ENV !== "production" && s ? l : he(l, d);
|
|
1762
1762
|
T[d] = _, process.env.NODE_ENV !== "production" && (W.actions[d] = l), r.actions[d] = l;
|
|
1763
1763
|
} else process.env.NODE_ENV !== "production" && jt(l) && (W.getters[d] = a ? (
|
|
1764
1764
|
// @ts-expect-error
|
|
@@ -1766,13 +1766,13 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1766
1766
|
) : l, Fe && (T._getters || // @ts-expect-error: same
|
|
1767
1767
|
(T._getters = Re([]))).push(d));
|
|
1768
1768
|
}
|
|
1769
|
-
if (
|
|
1769
|
+
if (be(U, T), be(Qe(U), T), Object.defineProperty(U, "$state", {
|
|
1770
1770
|
get: () => process.env.NODE_ENV !== "production" && s ? Y.value : t.state.value[e],
|
|
1771
1771
|
set: (d) => {
|
|
1772
1772
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1773
1773
|
throw new Error("cannot set hotState");
|
|
1774
1774
|
B((l) => {
|
|
1775
|
-
|
|
1775
|
+
be(l, d);
|
|
1776
1776
|
});
|
|
1777
1777
|
}
|
|
1778
1778
|
}), process.env.NODE_ENV !== "production" && (U._hotUpdate = Re((d) => {
|
|
@@ -1789,7 +1789,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1789
1789
|
});
|
|
1790
1790
|
for (const l in d._hmrPayload.actions) {
|
|
1791
1791
|
const _ = d[l];
|
|
1792
|
-
ot(U, l,
|
|
1792
|
+
ot(U, l, he(_, l));
|
|
1793
1793
|
}
|
|
1794
1794
|
for (const l in d._hmrPayload.getters) {
|
|
1795
1795
|
const _ = d._hmrPayload.getters[l], k = a ? (
|
|
@@ -1811,7 +1811,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1811
1811
|
enumerable: !1
|
|
1812
1812
|
};
|
|
1813
1813
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((l) => {
|
|
1814
|
-
Object.defineProperty(U, l,
|
|
1814
|
+
Object.defineProperty(U, l, be({ value: U[l] }, d));
|
|
1815
1815
|
});
|
|
1816
1816
|
}
|
|
1817
1817
|
return t._p.forEach((d) => {
|
|
@@ -1822,9 +1822,9 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1822
1822
|
pinia: t,
|
|
1823
1823
|
options: r
|
|
1824
1824
|
}));
|
|
1825
|
-
Object.keys(l || {}).forEach((_) => U._customProperties.add(_)),
|
|
1825
|
+
Object.keys(l || {}).forEach((_) => U._customProperties.add(_)), be(U, l);
|
|
1826
1826
|
} else
|
|
1827
|
-
|
|
1827
|
+
be(U, c.run(() => d({
|
|
1828
1828
|
store: U,
|
|
1829
1829
|
app: t._a,
|
|
1830
1830
|
pinia: t,
|
|
@@ -1851,7 +1851,7 @@ This will fail in production.`);
|
|
|
1851
1851
|
r = Ke, r._s.has(t) || (a ? bt(t, o, s, r) : zt(t, s, r), process.env.NODE_ENV !== "production" && (c._pinia = r));
|
|
1852
1852
|
const b = r._s.get(t);
|
|
1853
1853
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1854
|
-
const $ = "__hot:" + t, V = a ? bt($, o, s, r, !0) : zt($,
|
|
1854
|
+
const $ = "__hot:" + t, V = a ? bt($, o, s, r, !0) : zt($, be({}, s), r, !0);
|
|
1855
1855
|
i._hotUpdate(V), delete r.state.value[$], r._s.delete($);
|
|
1856
1856
|
}
|
|
1857
1857
|
if (process.env.NODE_ENV !== "production" && Fe) {
|
|
@@ -2133,7 +2133,7 @@ const go = /* @__PURE__ */ Gs("console", {
|
|
|
2133
2133
|
router: ""
|
|
2134
2134
|
}, {
|
|
2135
2135
|
default: p(() => [
|
|
2136
|
-
(u(!0), E(te, null,
|
|
2136
|
+
(u(!0), E(te, null, me(y(Dt), (M) => (u(), I(us, {
|
|
2137
2137
|
key: M.path,
|
|
2138
2138
|
menu: M
|
|
2139
2139
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -2268,7 +2268,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2268
2268
|
deep: !0
|
|
2269
2269
|
}
|
|
2270
2270
|
), (c, r) => (u(), E("div", va, [
|
|
2271
|
-
(u(!0), E(te, null,
|
|
2271
|
+
(u(!0), E(te, null, me(t.cards, (i) => (u(), E("div", {
|
|
2272
2272
|
class: wt(["card", { "card-selected": s.value === i.key }]),
|
|
2273
2273
|
onClick: (f) => a(i)
|
|
2274
2274
|
}, [
|
|
@@ -2282,7 +2282,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2282
2282
|
]),
|
|
2283
2283
|
v("span", {
|
|
2284
2284
|
style: He({ color: i.disabled ? "#aaa" : "black" })
|
|
2285
|
-
}, A(y(
|
|
2285
|
+
}, A(y(de)(i.label)), 5)
|
|
2286
2286
|
]),
|
|
2287
2287
|
v("span", null, A(i.count), 1)
|
|
2288
2288
|
])
|
|
@@ -2317,7 +2317,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2317
2317
|
},
|
|
2318
2318
|
emits: ["update:id"],
|
|
2319
2319
|
setup(e, { expose: o, emit: n }) {
|
|
2320
|
-
const t = e, s =
|
|
2320
|
+
const t = e, s = fe({}), a = N(!1), c = N(), r = fe({}), i = N(!1), f = N(""), b = N(null), $ = (w) => t.mode === "view" && (W(w, void 0) || W(w, "input") || W(w, "select") || W(w, "password") || W(w, "input-number") || W(w, "date") || W(w, "time") || W(w, "datetime")), V = Ae(() => t.model.fields ? t.model.fields.filter(
|
|
2321
2321
|
(w) => {
|
|
2322
2322
|
var l, _, k, P;
|
|
2323
2323
|
let T = w.visible !== !1 && ((l = w.formItem) == null ? void 0 : l.visible) !== !1;
|
|
@@ -2356,27 +2356,27 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2356
2356
|
if (Z === "select") {
|
|
2357
2357
|
if (R) {
|
|
2358
2358
|
let re = `${Ae(() => 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=${ne}`;
|
|
2359
|
-
const
|
|
2360
|
-
|
|
2359
|
+
const _e = (g = C == null ? void 0 : C.select) == null ? void 0 : g.queryParamName, pe = (S = C == null ? void 0 : C.select) == null ? void 0 : S.queryParamValueField;
|
|
2360
|
+
_e && (re = `${re}?${_e}=${t.id}`), pe || $e(re, "GET", {}).then(({ data: ve }) => {
|
|
2361
2361
|
var ke;
|
|
2362
2362
|
if ((ke = d.formItem) != null && ke.select) {
|
|
2363
|
-
let
|
|
2364
|
-
Array.isArray(
|
|
2363
|
+
let ge = [];
|
|
2364
|
+
Array.isArray(ve.data) ? ge = ve.data : ve.data.list && Array.isArray(ve.data.list) && (ge = ve.data.list), d.formItem.select.options = ge.map((Ue) => ({
|
|
2365
2365
|
value: Ue.dbOrdinal,
|
|
2366
|
-
label:
|
|
2366
|
+
label: de(Ue.value)
|
|
2367
2367
|
}));
|
|
2368
2368
|
}
|
|
2369
2369
|
});
|
|
2370
2370
|
} else if (Q) {
|
|
2371
2371
|
let ae = Q;
|
|
2372
|
-
const re = (m = C == null ? void 0 : C.select) == null ? void 0 : m.queryParamName,
|
|
2373
|
-
re && (ae = `${ae}?${re}=${t.id}`),
|
|
2374
|
-
var
|
|
2375
|
-
if ((
|
|
2372
|
+
const re = (m = C == null ? void 0 : C.select) == null ? void 0 : m.queryParamName, _e = (q = C == null ? void 0 : C.select) == null ? void 0 : q.queryParamValueField;
|
|
2373
|
+
re && (ae = `${ae}?${re}=${t.id}`), _e || $e(ae, "GET", {}).then(({ data: pe }) => {
|
|
2374
|
+
var ve;
|
|
2375
|
+
if ((ve = d.formItem) != null && ve.select) {
|
|
2376
2376
|
let ke = [];
|
|
2377
|
-
Array.isArray(
|
|
2378
|
-
value: J ?
|
|
2379
|
-
label:
|
|
2377
|
+
Array.isArray(pe.data) ? ke = pe.data : pe.data.list && Array.isArray(pe.data.list) && (ke = pe.data.list), d.formItem.select.options = ke.map((ge) => ({
|
|
2378
|
+
value: J ? ge[J] : ge.value,
|
|
2379
|
+
label: de(se ? ge[se] : ge.label)
|
|
2380
2380
|
}));
|
|
2381
2381
|
}
|
|
2382
2382
|
});
|
|
@@ -2408,7 +2408,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2408
2408
|
(w = c.value) == null || w.resetFields();
|
|
2409
2409
|
}
|
|
2410
2410
|
function B(w) {
|
|
2411
|
-
return w != null && w.prop ? w.label ?
|
|
2411
|
+
return w != null && w.prop ? w.label ? de(w.label) : w.prop.slice(0, 1).toUpperCase() + w.prop.slice(1).toLowerCase() : "";
|
|
2412
2412
|
}
|
|
2413
2413
|
function ee(w) {
|
|
2414
2414
|
var T, d, l, _, k, P;
|
|
@@ -2419,22 +2419,22 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2419
2419
|
return F(s[w.prop]);
|
|
2420
2420
|
const D = (_ = (l = w.formItem) == null ? void 0 : l.select) == null ? void 0 : _.viewModeLabelField;
|
|
2421
2421
|
if (D)
|
|
2422
|
-
return s[D];
|
|
2422
|
+
return de(s[D]);
|
|
2423
2423
|
const O = (P = (k = w.formItem) == null ? void 0 : k.select) == null ? void 0 : P.options;
|
|
2424
2424
|
if (O) {
|
|
2425
2425
|
for (let L of O)
|
|
2426
2426
|
if (L.value === s[w.prop])
|
|
2427
|
-
return
|
|
2427
|
+
return de(L.label);
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
return s[w.prop];
|
|
2430
|
+
return de(s[w.prop]);
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
2433
|
function oe(w) {
|
|
2434
2434
|
var T;
|
|
2435
2435
|
return ((T = w.formItem) == null ? void 0 : T.updatable) === !1 && t.mode === "update";
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function he(w, T) {
|
|
2438
2438
|
var l, _;
|
|
2439
2439
|
const d = (_ = (l = T.formItem) == null ? void 0 : l.type) != null ? _ : "input";
|
|
2440
2440
|
switch (w) {
|
|
@@ -2471,7 +2471,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2471
2471
|
let D = [];
|
|
2472
2472
|
Array.isArray(F.data) ? D = F.data : F.data.list && Array.isArray(F.data.list) && (D = F.data.list), l.options = D.map((O) => ({
|
|
2473
2473
|
value: l.valueMappingField ? O[l.valueMappingField] : O.value,
|
|
2474
|
-
label: l.labelMappingField ? O[l.labelMappingField] : O.label
|
|
2474
|
+
label: de(l.labelMappingField ? O[l.labelMappingField] : O.label)
|
|
2475
2475
|
}));
|
|
2476
2476
|
}
|
|
2477
2477
|
});
|
|
@@ -2504,16 +2504,16 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2504
2504
|
inline: !t.disableInline
|
|
2505
2505
|
}, {
|
|
2506
2506
|
default: p(() => [
|
|
2507
|
-
(u(!0), E(te, null,
|
|
2507
|
+
(u(!0), E(te, null, me(V.value, (m) => (u(), I(L, {
|
|
2508
2508
|
class: "form-item",
|
|
2509
2509
|
style: He({ width: t.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2510
2510
|
prop: m.prop,
|
|
2511
2511
|
label: B(m)
|
|
2512
2512
|
}, {
|
|
2513
2513
|
default: p(() => {
|
|
2514
|
-
var q, C, Z, R, ne, Q, J, se, ae, re,
|
|
2514
|
+
var q, C, Z, R, ne, Q, J, se, ae, re, _e, pe, ve, ke, ge, Ue, We, Ye, ie, K;
|
|
2515
2515
|
return [
|
|
2516
|
-
|
|
2516
|
+
he("input", m) ? (u(), I(d, {
|
|
2517
2517
|
key: 0,
|
|
2518
2518
|
type: W(m, "password") ? "password" : "text",
|
|
2519
2519
|
modelValue: s[m.prop],
|
|
@@ -2559,7 +2559,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2559
2559
|
"collapse-tags": (ne = (R = m.formItem) == null ? void 0 : R.select) == null ? void 0 : ne.multiple,
|
|
2560
2560
|
filterable: (J = (Q = m.formItem) == null ? void 0 : Q.select) == null ? void 0 : J.allowCreate,
|
|
2561
2561
|
"allow-create": (ae = (se = m.formItem) == null ? void 0 : se.select) == null ? void 0 : ae.allowCreate,
|
|
2562
|
-
"default-first-option": (
|
|
2562
|
+
"default-first-option": (_e = (re = m.formItem) == null ? void 0 : re.select) == null ? void 0 : _e.allowCreate,
|
|
2563
2563
|
modelValue: s[m.prop],
|
|
2564
2564
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2565
2565
|
disabled: oe(m),
|
|
@@ -2568,9 +2568,9 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2568
2568
|
default: p(() => {
|
|
2569
2569
|
var X, Oe;
|
|
2570
2570
|
return [
|
|
2571
|
-
(u(!0), E(te, null,
|
|
2571
|
+
(u(!0), E(te, null, me((Oe = (X = m.formItem) == null ? void 0 : X.select) == null ? void 0 : Oe.options, (Pe) => (u(), I(P, {
|
|
2572
2572
|
value: Pe.value,
|
|
2573
|
-
label: Pe.label
|
|
2573
|
+
label: y(de)(Pe.label)
|
|
2574
2574
|
}, null, 8, ["value", "label"]))), 256))
|
|
2575
2575
|
];
|
|
2576
2576
|
}),
|
|
@@ -2581,8 +2581,8 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2581
2581
|
style: { width: "100%" },
|
|
2582
2582
|
modelValue: s[m.prop],
|
|
2583
2583
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2584
|
-
min: (ke = (
|
|
2585
|
-
max: (We = (Ue = (
|
|
2584
|
+
min: (ke = (ve = (pe = m.formItem) == null ? void 0 : pe.inputNumber) == null ? void 0 : ve.min) != null ? ke : Number.NEGATIVE_INFINITY,
|
|
2585
|
+
max: (We = (Ue = (ge = m.formItem) == null ? void 0 : ge.inputNumber) == null ? void 0 : Ue.max) != null ? We : Number.POSITIVE_INFINITY,
|
|
2586
2586
|
step: (K = (ie = (Ye = m.formItem) == null ? void 0 : Ye.inputNumber) == null ? void 0 : ie.step) != null ? K : 1,
|
|
2587
2587
|
"value-on-clear": -10
|
|
2588
2588
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : G("", !0),
|
|
@@ -2651,7 +2651,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2651
2651
|
], 64);
|
|
2652
2652
|
};
|
|
2653
2653
|
}
|
|
2654
|
-
}), wo = /* @__PURE__ */ we(Oa, [["__scopeId", "data-v-
|
|
2654
|
+
}), wo = /* @__PURE__ */ we(Oa, [["__scopeId", "data-v-05b484b8"]]), Pa = { class: "console-dialog__body" }, Ia = {
|
|
2655
2655
|
key: 0,
|
|
2656
2656
|
class: "process-view"
|
|
2657
2657
|
}, Va = { class: "operation-button-wrapper" }, Co = /* @__PURE__ */ Ee({
|
|
@@ -2700,7 +2700,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2700
2700
|
style: He({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2701
2701
|
}, [
|
|
2702
2702
|
v("div", Va, [
|
|
2703
|
-
(u(!0), E(te, null,
|
|
2703
|
+
(u(!0), E(te, null, me((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ee) => (u(), I(Y, {
|
|
2704
2704
|
onClick: (oe) => ee.function(r.value.formData)
|
|
2705
2705
|
}, {
|
|
2706
2706
|
default: p(() => [
|
|
@@ -2785,13 +2785,13 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2785
2785
|
model: {}
|
|
2786
2786
|
},
|
|
2787
2787
|
setup(e, { expose: o }) {
|
|
2788
|
-
const { t: n } = ct.global, t = e, s =
|
|
2788
|
+
const { t: n } = ct.global, t = e, s = fe([]), a = fe({}), c = N(""), r = N(!1), i = pt(), f = N(""), b = fe([]), $ = fe([]), V = N(), M = N([]), z = N("create"), Y = N(!0), ce = N(!1), B = N(""), ee = fe({
|
|
2789
2789
|
pageSize: 10,
|
|
2790
2790
|
pageNo: 1,
|
|
2791
2791
|
totalElements: 0
|
|
2792
2792
|
});
|
|
2793
2793
|
let oe = {};
|
|
2794
|
-
const
|
|
2794
|
+
const he = Ae(() => s.filter(
|
|
2795
2795
|
(g) => {
|
|
2796
2796
|
var S, m;
|
|
2797
2797
|
return ((S = g.formItem) == null ? void 0 : S.type) !== "password" && g.visible !== !1 && ((m = g.tableColumn) == null ? void 0 : m.visible) !== !1;
|
|
@@ -2824,11 +2824,11 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2824
2824
|
if (oe[J.dictId] === void 0) {
|
|
2825
2825
|
let ae = `${Ae(() => 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=${J.dictId}`;
|
|
2826
2826
|
$e(ae, "GET", {}).then(({ data: re }) => {
|
|
2827
|
-
let
|
|
2828
|
-
Array.isArray(re.data) ?
|
|
2829
|
-
for (let
|
|
2830
|
-
if (
|
|
2831
|
-
m =
|
|
2827
|
+
let _e = [];
|
|
2828
|
+
Array.isArray(re.data) ? _e = re.data : re.data.list && Array.isArray(re.data.list) && (_e = re.data.list), oe[J.dictId] = _e;
|
|
2829
|
+
for (let pe of oe[J.dictId])
|
|
2830
|
+
if (pe.dbOrdinal == m) {
|
|
2831
|
+
m = pe.value;
|
|
2832
2832
|
break;
|
|
2833
2833
|
}
|
|
2834
2834
|
});
|
|
@@ -2841,7 +2841,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
|
-
return
|
|
2844
|
+
return de(m);
|
|
2845
2845
|
}
|
|
2846
2846
|
function Ce(g, S) {
|
|
2847
2847
|
var m, q;
|
|
@@ -2892,7 +2892,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2892
2892
|
(S = a.functions) == null || S.batchDelete(M.value);
|
|
2893
2893
|
else {
|
|
2894
2894
|
const m = M.value.map((q) => q.id);
|
|
2895
|
-
|
|
2895
|
+
ye.delete(`${t.model.api}/${m.join(",")}`).then(({ data: q }) => {
|
|
2896
2896
|
q.code === 0 && (r.value = !1, w());
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
@@ -2927,7 +2927,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2927
2927
|
M.value = g;
|
|
2928
2928
|
}
|
|
2929
2929
|
function O(g) {
|
|
2930
|
-
return g != null && g.prop ? g.label ?
|
|
2930
|
+
return g != null && g.prop ? g.label ? de(g.label) : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase() : "";
|
|
2931
2931
|
}
|
|
2932
2932
|
function L(g) {
|
|
2933
2933
|
g ? (ce.value = !0, $.splice(0, $.length, ...b), b.splice(0, b.length, ...M.value)) : (ce.value = !1, b.splice(0, b.length, ...$));
|
|
@@ -2941,12 +2941,12 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2941
2941
|
return;
|
|
2942
2942
|
}
|
|
2943
2943
|
let g = "";
|
|
2944
|
-
|
|
2944
|
+
he.value.forEach((R) => {
|
|
2945
2945
|
g += `<th>${O(R)}</th>`;
|
|
2946
2946
|
});
|
|
2947
2947
|
let S = "";
|
|
2948
2948
|
M.value.forEach((R) => {
|
|
2949
|
-
S += "<tr>",
|
|
2949
|
+
S += "<tr>", he.value.forEach((ne) => {
|
|
2950
2950
|
S += `<td>${R[ne.prop]}</td>`;
|
|
2951
2951
|
}), S += "</tr>";
|
|
2952
2952
|
});
|
|
@@ -3016,7 +3016,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3016
3016
|
updateConfigAndRefresh: U
|
|
3017
3017
|
}), (g, S) => {
|
|
3018
3018
|
var Ue, We, Ye;
|
|
3019
|
-
const m = x("el-checkbox"), q = x("el-badge"), C = x("el-button"), Z = x("el-dropdown-item"), R = x("el-dropdown-menu"), ne = x("el-dropdown"), Q = x("el-icon"), J = x("el-tooltip"), se = x("el-input"), ae = x("el-table-column"), re = x("router-link"),
|
|
3019
|
+
const m = x("el-checkbox"), q = x("el-badge"), C = x("el-button"), Z = x("el-dropdown-item"), R = x("el-dropdown-menu"), ne = x("el-dropdown"), Q = x("el-icon"), J = x("el-tooltip"), se = x("el-input"), ae = x("el-table-column"), re = x("router-link"), _e = x("el-tag"), pe = x("el-popconfirm"), ve = x("el-table"), ke = x("el-pagination"), ge = Wt("loading");
|
|
3020
3020
|
return u(), E("div", {
|
|
3021
3021
|
class: wt({ "table-view-wrapper": (Ue = a.display) == null ? void 0 : Ue.pane })
|
|
3022
3022
|
}, [
|
|
@@ -3211,7 +3211,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3211
3211
|
})) : G("", !0)
|
|
3212
3212
|
])
|
|
3213
3213
|
]),
|
|
3214
|
-
Yt((u(), I(
|
|
3214
|
+
Yt((u(), I(ve, {
|
|
3215
3215
|
border: !0,
|
|
3216
3216
|
ref_key: "tableRef",
|
|
3217
3217
|
ref: V,
|
|
@@ -3227,7 +3227,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3227
3227
|
type: "selection",
|
|
3228
3228
|
width: "50"
|
|
3229
3229
|
})),
|
|
3230
|
-
(u(!0), E(te, null,
|
|
3230
|
+
(u(!0), E(te, null, me(he.value, (K) => {
|
|
3231
3231
|
var X;
|
|
3232
3232
|
return u(), I(ae, {
|
|
3233
3233
|
prop: K.prop,
|
|
@@ -3257,7 +3257,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3257
3257
|
]),
|
|
3258
3258
|
_: 2
|
|
3259
3259
|
}, 1032, ["to"])) : (u(), E("span", Ra, A(W(K, Oe)), 1)),
|
|
3260
|
-
((Pt = K.tableColumn) == null ? void 0 : Pt.type) === "tag" ? (u(), I(
|
|
3260
|
+
((Pt = K.tableColumn) == null ? void 0 : Pt.type) === "tag" ? (u(), I(_e, { key: 3 }, {
|
|
3261
3261
|
default: p(() => [
|
|
3262
3262
|
H(A(Oe.row[K.prop]), 1)
|
|
3263
3263
|
]),
|
|
@@ -3286,7 +3286,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3286
3286
|
]),
|
|
3287
3287
|
_: 2
|
|
3288
3288
|
}, 1032, ["onClick"])) : G("", !0),
|
|
3289
|
-
h(
|
|
3289
|
+
h(pe, {
|
|
3290
3290
|
title: "Are you sure to delete this?",
|
|
3291
3291
|
onConfirm: (X) => d(K.$index, K.row)
|
|
3292
3292
|
}, {
|
|
@@ -3314,7 +3314,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3314
3314
|
width: "120"
|
|
3315
3315
|
}, {
|
|
3316
3316
|
default: p((K) => [
|
|
3317
|
-
(u(!0), E(te, null,
|
|
3317
|
+
(u(!0), E(te, null, me(a.operations, (X) => (u(), I(C, {
|
|
3318
3318
|
class: "operation-button",
|
|
3319
3319
|
link: "",
|
|
3320
3320
|
type: "primary",
|
|
@@ -3336,7 +3336,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3336
3336
|
}),
|
|
3337
3337
|
_: 1
|
|
3338
3338
|
}, 8, ["data"])), [
|
|
3339
|
-
[
|
|
3339
|
+
[ge, Y.value]
|
|
3340
3340
|
]),
|
|
3341
3341
|
ce.value ? G("", !0) : (u(), I(ke, {
|
|
3342
3342
|
key: 0,
|
|
@@ -3368,10 +3368,10 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3368
3368
|
}, za = { class: "icon-wrapper" }, qa = { class: "info-wrapper" }, Ha = { class: "title-wrapper" }, Ba = { class: "tabs-wrapper" }, Wa = { class: "dialog-footer" }, Ya = /* @__PURE__ */ Ee({
|
|
3369
3369
|
__name: "DetailPage",
|
|
3370
3370
|
setup(e) {
|
|
3371
|
-
const { t: o } = kt(), n = et(), t = pt(), s = Ae(() => n.query.id), a = N(!1), c = N(!1), r = N("view"), i = N(), f = N(-1), b = N(), $ = N(), V = N("summary"), M = N(""), z = N(""), Y = N(""), ce = N(0), B =
|
|
3371
|
+
const { t: o } = kt(), n = et(), t = pt(), s = Ae(() => n.query.id), a = N(!1), c = N(!1), r = N("view"), i = N(), f = N(-1), b = N(), $ = N(), V = N("summary"), M = N(""), z = N(""), Y = N(""), ce = N(0), B = fe({
|
|
3372
3372
|
api: "",
|
|
3373
3373
|
fields: []
|
|
3374
|
-
}), ee =
|
|
3374
|
+
}), ee = fe([]);
|
|
3375
3375
|
let oe = [];
|
|
3376
3376
|
Ve([
|
|
3377
3377
|
() => t.currentRoute.value,
|
|
@@ -3382,7 +3382,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3382
3382
|
immediate: !0,
|
|
3383
3383
|
deep: !0
|
|
3384
3384
|
});
|
|
3385
|
-
function
|
|
3385
|
+
function he(d) {
|
|
3386
3386
|
f.value = parseInt(d.index) - 1;
|
|
3387
3387
|
}
|
|
3388
3388
|
function W() {
|
|
@@ -3411,7 +3411,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3411
3411
|
let O = (g = oe[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
3412
3412
|
O = O == null ? void 0 : O.substring(O.lastIndexOf("/"));
|
|
3413
3413
|
const L = B.api + "/" + s.value + O, j = D.map((S) => S.id);
|
|
3414
|
-
|
|
3414
|
+
ye.delete(`${L}/${j.join(",")}`).then(({ data: S }) => {
|
|
3415
3415
|
S.code === 0 && b.value.refresh();
|
|
3416
3416
|
});
|
|
3417
3417
|
}, _.operations = [
|
|
@@ -3520,7 +3520,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3520
3520
|
v("span", null, null, -1)
|
|
3521
3521
|
])),
|
|
3522
3522
|
content: p(() => [
|
|
3523
|
-
v("span", Ga, A(y(
|
|
3523
|
+
v("span", Ga, A(y(de)(B == null ? void 0 : B.name)), 1)
|
|
3524
3524
|
]),
|
|
3525
3525
|
_: 1
|
|
3526
3526
|
}),
|
|
@@ -3540,7 +3540,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3540
3540
|
default: p(() => {
|
|
3541
3541
|
var Q, J;
|
|
3542
3542
|
return [
|
|
3543
|
-
(u(!0), E(te, null,
|
|
3543
|
+
(u(!0), E(te, null, me((J = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.operationButtons, (se) => (u(), I(F, {
|
|
3544
3544
|
onClick: (ae) => se.function(i.value.formData)
|
|
3545
3545
|
}, {
|
|
3546
3546
|
default: p(() => [
|
|
@@ -3609,7 +3609,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3609
3609
|
h(g, {
|
|
3610
3610
|
modelValue: V.value,
|
|
3611
3611
|
"onUpdate:modelValue": l[1] || (l[1] = (Q) => V.value = Q),
|
|
3612
|
-
onTabClick:
|
|
3612
|
+
onTabClick: he
|
|
3613
3613
|
}, {
|
|
3614
3614
|
default: p(() => {
|
|
3615
3615
|
var Q, J;
|
|
@@ -3630,8 +3630,8 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3630
3630
|
]),
|
|
3631
3631
|
_: 1
|
|
3632
3632
|
}, 8, ["label"]),
|
|
3633
|
-
(u(!0), E(te, null,
|
|
3634
|
-
label: y(
|
|
3633
|
+
(u(!0), E(te, null, me((J = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.tabs, (se) => (u(), I(j, {
|
|
3634
|
+
label: y(de)(se.name)
|
|
3635
3635
|
}, null, 8, ["label"]))), 256))
|
|
3636
3636
|
];
|
|
3637
3637
|
}),
|
|
@@ -3695,10 +3695,10 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3695
3695
|
}), Ja = /* @__PURE__ */ we(Ya, [["__scopeId", "data-v-0fa73126"]]), Ka = { class: "page-title" }, Qa = /* @__PURE__ */ Ee({
|
|
3696
3696
|
__name: "TablePage",
|
|
3697
3697
|
setup(e) {
|
|
3698
|
-
const o = et(), n = pt(), t = N(), s = N([]), a =
|
|
3698
|
+
const o = et(), n = pt(), t = N(), s = N([]), a = fe({
|
|
3699
3699
|
api: "",
|
|
3700
3700
|
fields: []
|
|
3701
|
-
}), c =
|
|
3701
|
+
}), c = fe(tt({}, a));
|
|
3702
3702
|
function r() {
|
|
3703
3703
|
var f, b, $, V, M;
|
|
3704
3704
|
s.value = [], a.pageConfig && ((b = (f = a.pageConfig) == null ? void 0 : f.tablePage) != null && b.tabViewAttributes) && (s.value = (M = (V = ($ = a.pageConfig) == null ? void 0 : $.tablePage) == null ? void 0 : V.tabViewAttributes) == null ? void 0 : M.map((z) => {
|
|
@@ -3734,7 +3734,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3734
3734
|
}), (f, b) => {
|
|
3735
3735
|
const $ = x("el-scrollbar");
|
|
3736
3736
|
return u(), E(te, null, [
|
|
3737
|
-
v("h1", Ka, A(y(
|
|
3737
|
+
v("h1", Ka, A(y(de)(a == null ? void 0 : a.name)), 1),
|
|
3738
3738
|
h($, null, {
|
|
3739
3739
|
default: p(() => {
|
|
3740
3740
|
var V, M;
|