@vancone/console-component 0.1.1-beta.51 → 0.1.1-beta.52
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.
|
@@ -171,21 +171,21 @@ const sn = { render: nn }, rn = { class: "app-catalog-wrapper" }, an = { class:
|
|
|
171
171
|
(p(!0), V(ce, null, ge(t, (h) => (p(), V("div", ln, [
|
|
172
172
|
w("h1", null, R(h.name), 1),
|
|
173
173
|
w("div", cn, [
|
|
174
|
-
(p(!0), V(ce, null, ge(h.apps, (
|
|
174
|
+
(p(!0), V(ce, null, ge(h.apps, (b) => {
|
|
175
175
|
var x, N;
|
|
176
176
|
return p(), V("a", {
|
|
177
|
-
style: je([{ "text-decoration": "none" }, { pointerEvents: ((x =
|
|
177
|
+
style: je([{ "text-decoration": "none" }, { pointerEvents: ((x = b.homepageUrl) == null ? void 0 : x.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
|
-
href:
|
|
179
|
+
href: b.homepageUrl
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
b.iconSvg !== void 0 ? (p(), V("div", {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "app-icon",
|
|
184
|
-
innerHTML:
|
|
184
|
+
innerHTML: b.iconSvg
|
|
185
185
|
}, null, 8, dn)) : (p(), V("div", pn, " ")),
|
|
186
186
|
w("h2", {
|
|
187
|
-
style: je({ color: ((N =
|
|
188
|
-
}, R(
|
|
187
|
+
style: je({ color: ((N = b.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, R(b.name), 5)
|
|
189
189
|
], 12, un);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
@@ -379,7 +379,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
|
|
|
379
379
|
id: "",
|
|
380
380
|
name: ""
|
|
381
381
|
}
|
|
382
|
-
),
|
|
382
|
+
), b = T(""), x = T(ct.global.locale), N = me([
|
|
383
383
|
{
|
|
384
384
|
id: "en",
|
|
385
385
|
name: "English"
|
|
@@ -391,9 +391,9 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
|
|
|
391
391
|
]);
|
|
392
392
|
Gt(() => {
|
|
393
393
|
var P, K, _;
|
|
394
|
-
|
|
394
|
+
b.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), b.value === "" && Ho().then(({ data: I }) => {
|
|
395
395
|
var u;
|
|
396
|
-
I.code == 0 && (
|
|
396
|
+
I.code == 0 && (b.value = (u = I.data.name) != null ? u : I.data.displayId);
|
|
397
397
|
}), (P = a.headerProjectConfig) != null && P.api ? Se((K = a.headerProjectConfig) == null ? void 0 : K.api, "GET", {}).then(({ data: I }) => {
|
|
398
398
|
i.value = I.data;
|
|
399
399
|
}) : (_ = a.headerProjectConfig) != null && _.items && (i.value = a.headerProjectConfig.items);
|
|
@@ -552,7 +552,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
|
|
|
552
552
|
ref: o
|
|
553
553
|
}, {
|
|
554
554
|
default: m(() => [
|
|
555
|
-
w("span", Un, R(
|
|
555
|
+
w("span", Un, R(b.value.substring(0, 2)), 1)
|
|
556
556
|
]),
|
|
557
557
|
_: 1
|
|
558
558
|
}, 512),
|
|
@@ -573,11 +573,11 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
|
|
|
573
573
|
src: ""
|
|
574
574
|
}, {
|
|
575
575
|
default: m(() => [
|
|
576
|
-
w("span", Dn, R(
|
|
576
|
+
w("span", Dn, R(b.value.substring(0, 2)), 1)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
}),
|
|
580
|
-
w("span", null, R(
|
|
580
|
+
w("span", null, R(b.value), 1)
|
|
581
581
|
]),
|
|
582
582
|
g($, { class: "user-menu" }, {
|
|
583
583
|
default: m(() => [
|
|
@@ -674,7 +674,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
|
|
|
674
674
|
index: o.menu.path
|
|
675
675
|
}, {
|
|
676
676
|
title: m(() => {
|
|
677
|
-
var a, i, h,
|
|
677
|
+
var a, i, h, b, x;
|
|
678
678
|
return [
|
|
679
679
|
w("div", Rn, [
|
|
680
680
|
(a = t.menu.meta) != null && a.icon ? (p(), E(it((i = o.menu.meta) == null ? void 0 : i.icon), {
|
|
@@ -687,7 +687,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
|
|
|
687
687
|
innerHTML: t.menu.meta.svgXml
|
|
688
688
|
}, null, 8, Ln)) : F("", !0)
|
|
689
689
|
]),
|
|
690
|
-
w("span", null, R(o.$t((x = (
|
|
690
|
+
w("span", null, R(o.$t((x = (b = o.menu.meta) == null ? void 0 : b.title) != null ? x : "")), 1)
|
|
691
691
|
];
|
|
692
692
|
}),
|
|
693
693
|
default: m(() => [
|
|
@@ -1184,8 +1184,8 @@ function fs(e, t) {
|
|
|
1184
1184
|
value: a._getters.reduce((i, h) => {
|
|
1185
1185
|
try {
|
|
1186
1186
|
i[h] = a[h];
|
|
1187
|
-
} catch (
|
|
1188
|
-
i[h] =
|
|
1187
|
+
} catch (b) {
|
|
1188
|
+
i[h] = b;
|
|
1189
1189
|
}
|
|
1190
1190
|
return i;
|
|
1191
1191
|
}, {})
|
|
@@ -1251,7 +1251,7 @@ function ms(e, t) {
|
|
|
1251
1251
|
}, (o) => {
|
|
1252
1252
|
const n = typeof o.now == "function" ? o.now.bind(o) : Date.now;
|
|
1253
1253
|
t.$onAction(({ after: l, onError: a, name: i, args: h }) => {
|
|
1254
|
-
const
|
|
1254
|
+
const b = co++;
|
|
1255
1255
|
o.addTimelineEvent({
|
|
1256
1256
|
layerId: Ue,
|
|
1257
1257
|
event: {
|
|
@@ -1263,7 +1263,7 @@ function ms(e, t) {
|
|
|
1263
1263
|
action: we(i),
|
|
1264
1264
|
args: h
|
|
1265
1265
|
},
|
|
1266
|
-
groupId:
|
|
1266
|
+
groupId: b
|
|
1267
1267
|
}
|
|
1268
1268
|
}), l((x) => {
|
|
1269
1269
|
Pe = void 0, o.addTimelineEvent({
|
|
@@ -1278,7 +1278,7 @@ function ms(e, t) {
|
|
|
1278
1278
|
args: h,
|
|
1279
1279
|
result: x
|
|
1280
1280
|
},
|
|
1281
|
-
groupId:
|
|
1281
|
+
groupId: b
|
|
1282
1282
|
}
|
|
1283
1283
|
});
|
|
1284
1284
|
}), a((x) => {
|
|
@@ -1295,7 +1295,7 @@ function ms(e, t) {
|
|
|
1295
1295
|
args: h,
|
|
1296
1296
|
error: x
|
|
1297
1297
|
},
|
|
1298
|
-
groupId:
|
|
1298
|
+
groupId: b
|
|
1299
1299
|
}
|
|
1300
1300
|
});
|
|
1301
1301
|
});
|
|
@@ -1463,11 +1463,11 @@ function Ft(e, t, o, n) {
|
|
|
1463
1463
|
let i;
|
|
1464
1464
|
function h() {
|
|
1465
1465
|
!a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
|
|
1466
|
-
const
|
|
1466
|
+
const b = process.env.NODE_ENV !== "production" && n ? (
|
|
1467
1467
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1468
1468
|
Pt(T(s ? s() : {}).value)
|
|
1469
1469
|
) : Pt(o.state.value[e]);
|
|
1470
|
-
return _e(
|
|
1470
|
+
return _e(b, r, Object.keys(l || {}).reduce((x, N) => (process.env.NODE_ENV !== "production" && N in b && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), x[N] = Te(Ie(() => {
|
|
1471
1471
|
Qe(o);
|
|
1472
1472
|
const M = o._s.get(e);
|
|
1473
1473
|
return l[N].call(M, M);
|
|
@@ -1484,14 +1484,14 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1484
1484
|
process.env.NODE_ENV !== "production" && !Xt && (i.onTrigger = (d) => {
|
|
1485
1485
|
h ? M = d : h == !1 && !u._hotUpdating && (Array.isArray(M) ? M.push(d) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1486
1486
|
});
|
|
1487
|
-
let h,
|
|
1487
|
+
let h, b, x = [], N = [], M;
|
|
1488
1488
|
const X = n.state.value[e];
|
|
1489
1489
|
!r && !X && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1490
1490
|
const G = T({});
|
|
1491
1491
|
let ee;
|
|
1492
1492
|
function B(d) {
|
|
1493
1493
|
let c;
|
|
1494
|
-
h =
|
|
1494
|
+
h = b = !1, process.env.NODE_ENV !== "production" && (M = []), typeof d == "function" ? (d(n.state.value[e]), c = {
|
|
1495
1495
|
type: ke.patchFunction,
|
|
1496
1496
|
storeId: e,
|
|
1497
1497
|
events: M
|
|
@@ -1504,7 +1504,7 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1504
1504
|
const S = ee = Symbol();
|
|
1505
1505
|
Ye().then(() => {
|
|
1506
1506
|
ee === S && (h = !0);
|
|
1507
|
-
}),
|
|
1507
|
+
}), b = !0, Re(x, c, n.state.value[e]);
|
|
1508
1508
|
}
|
|
1509
1509
|
const oe = r ? function() {
|
|
1510
1510
|
const { state: c } = o, S = c ? c() : {};
|
|
@@ -1526,11 +1526,11 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1526
1526
|
const S = function() {
|
|
1527
1527
|
Qe(n);
|
|
1528
1528
|
const $ = Array.from(arguments), D = [], j = [];
|
|
1529
|
-
function A(
|
|
1530
|
-
D.push(
|
|
1529
|
+
function A(H) {
|
|
1530
|
+
D.push(H);
|
|
1531
1531
|
}
|
|
1532
|
-
function v(
|
|
1533
|
-
j.push(
|
|
1532
|
+
function v(H) {
|
|
1533
|
+
j.push(H);
|
|
1534
1534
|
}
|
|
1535
1535
|
Re(N, {
|
|
1536
1536
|
args: $,
|
|
@@ -1542,10 +1542,10 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1542
1542
|
let z;
|
|
1543
1543
|
try {
|
|
1544
1544
|
z = d.apply(this && this.$id === e ? this : u, $);
|
|
1545
|
-
} catch (
|
|
1546
|
-
throw Re(j,
|
|
1545
|
+
} catch (H) {
|
|
1546
|
+
throw Re(j, H), H;
|
|
1547
1547
|
}
|
|
1548
|
-
return z instanceof Promise ? z.then((
|
|
1548
|
+
return z instanceof Promise ? z.then((H) => (Re(D, H), H)).catch((H) => (Re(j, H), Promise.reject(H))) : (Re(D, z), z);
|
|
1549
1549
|
};
|
|
1550
1550
|
return S[Dt] = !0, S[gt] = c, S;
|
|
1551
1551
|
}, _ = /* @__PURE__ */ Te({
|
|
@@ -1562,7 +1562,7 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1562
1562
|
$reset: oe,
|
|
1563
1563
|
$subscribe(d, c = {}) {
|
|
1564
1564
|
const S = Tt(x, d, c.detached, () => $()), $ = l.run(() => Oe(() => n.state.value[e], (D) => {
|
|
1565
|
-
(c.flush === "sync" ?
|
|
1565
|
+
(c.flush === "sync" ? b : h) && d({
|
|
1566
1566
|
storeId: e,
|
|
1567
1567
|
type: ke.direct,
|
|
1568
1568
|
events: M
|
|
@@ -1614,7 +1614,7 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1614
1614
|
nt(u, c, ft(d.$state, c));
|
|
1615
1615
|
}), Object.keys(u.$state).forEach((c) => {
|
|
1616
1616
|
c in d.$state || ht(u, c);
|
|
1617
|
-
}), h = !1,
|
|
1617
|
+
}), h = !1, b = !1, n.state.value[e] = ft(d._hmrPayload, "hotState"), b = !0, Ye().then(() => {
|
|
1618
1618
|
h = !0;
|
|
1619
1619
|
});
|
|
1620
1620
|
for (const c in d._hmrPayload.actions) {
|
|
@@ -1662,7 +1662,7 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1662
1662
|
})));
|
|
1663
1663
|
}), process.env.NODE_ENV !== "production" && u.$state && typeof u.$state == "object" && typeof u.$state.constructor == "function" && !u.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1664
1664
|
state: () => new MyClass()
|
|
1665
|
-
Found in store "${u.$id}".`), X && r && o.hydrate && o.hydrate(u.$state, X), h = !0,
|
|
1665
|
+
Found in store "${u.$id}".`), X && r && o.hydrate && o.hydrate(u.$state, X), h = !0, b = !0, u;
|
|
1666
1666
|
}
|
|
1667
1667
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1668
1668
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1679,7 +1679,7 @@ function ys(e, t, o) {
|
|
|
1679
1679
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1680
1680
|
This will fail in production.`);
|
|
1681
1681
|
a = We, a._s.has(n) || (r ? bt(n, t, s, a) : Ft(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1682
|
-
const
|
|
1682
|
+
const b = a._s.get(n);
|
|
1683
1683
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1684
1684
|
const x = "__hot:" + n, N = r ? bt(x, t, s, a, !0) : Ft(x, _e({}, s), a, !0);
|
|
1685
1685
|
i._hotUpdate(N), delete a.state.value[x], a._s.delete(x);
|
|
@@ -1689,10 +1689,10 @@ This will fail in production.`);
|
|
|
1689
1689
|
if (x && x.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1690
1690
|
!i) {
|
|
1691
1691
|
const N = x.proxy, M = "_pStores" in N ? N._pStores : N._pStores = {};
|
|
1692
|
-
M[n] =
|
|
1692
|
+
M[n] = b;
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
|
-
return
|
|
1695
|
+
return b;
|
|
1696
1696
|
}
|
|
1697
1697
|
return l.$id = n, l;
|
|
1698
1698
|
}
|
|
@@ -1817,15 +1817,15 @@ function Rt(e, {
|
|
|
1817
1817
|
omit: l,
|
|
1818
1818
|
beforeHydrate: a,
|
|
1819
1819
|
afterHydrate: i
|
|
1820
|
-
}, h,
|
|
1820
|
+
}, h, b = !0) {
|
|
1821
1821
|
try {
|
|
1822
|
-
|
|
1822
|
+
b && (a == null || a(h));
|
|
1823
1823
|
const x = t.getItem(n);
|
|
1824
1824
|
if (x) {
|
|
1825
1825
|
const N = o.deserialize(x), M = r ? mo(N, r) : N, X = l ? ho(M, l) : M;
|
|
1826
1826
|
e.$patch(X);
|
|
1827
1827
|
}
|
|
1828
|
-
|
|
1828
|
+
b && (i == null || i(h));
|
|
1829
1829
|
} catch (x) {
|
|
1830
1830
|
s && console.error("[pinia-plugin-persistedstate]", x);
|
|
1831
1831
|
}
|
|
@@ -1865,7 +1865,7 @@ function Es(e, t, o) {
|
|
|
1865
1865
|
});
|
|
1866
1866
|
}, a.forEach((i) => {
|
|
1867
1867
|
Rt(s, i, e), s.$subscribe(
|
|
1868
|
-
(h,
|
|
1868
|
+
(h, b) => Lt(b, i),
|
|
1869
1869
|
{ detached: !0 }
|
|
1870
1870
|
);
|
|
1871
1871
|
});
|
|
@@ -1876,7 +1876,7 @@ function Ps(e = {}) {
|
|
|
1876
1876
|
Es(
|
|
1877
1877
|
t,
|
|
1878
1878
|
(n) => {
|
|
1879
|
-
var s, r, l, a, i, h,
|
|
1879
|
+
var s, r, l, a, i, h, b;
|
|
1880
1880
|
return {
|
|
1881
1881
|
key: (e.key ? e.key : (x) => x)((s = n.key) != null ? s : t.store.$id),
|
|
1882
1882
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
@@ -1884,7 +1884,7 @@ function Ps(e = {}) {
|
|
|
1884
1884
|
serialize: (x) => JSON.stringify(x),
|
|
1885
1885
|
deserialize: (x) => $s(x)
|
|
1886
1886
|
},
|
|
1887
|
-
storage: (
|
|
1887
|
+
storage: (b = (h = n.storage) != null ? h : e.storage) != null ? b : window.localStorage,
|
|
1888
1888
|
beforeHydrate: n.beforeHydrate,
|
|
1889
1889
|
afterHydrate: n.afterHydrate,
|
|
1890
1890
|
pick: n.pick,
|
|
@@ -1970,7 +1970,7 @@ const go = /* @__PURE__ */ ys("console", {
|
|
|
1970
1970
|
C(o).query.embedded !== "true" ? (p(), E(_o, {
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
menuCollapsed: n.value,
|
|
1973
|
-
"onUpdate:menuCollapsed": a[0] || (a[0] = (
|
|
1973
|
+
"onUpdate:menuCollapsed": a[0] || (a[0] = (b) => n.value = b)
|
|
1974
1974
|
}, null, 8, ["menuCollapsed"])) : F("", !0),
|
|
1975
1975
|
g(h, { class: "main-scrollbar" }, {
|
|
1976
1976
|
default: m(() => [
|
|
@@ -2071,7 +2071,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2071
2071
|
), (a, i) => (p(), V("div", Hs, [
|
|
2072
2072
|
(p(!0), V(ce, null, ge(s.cards, (h) => (p(), V("div", {
|
|
2073
2073
|
class: zt(["card", { "card-selected": r.value === h.key }]),
|
|
2074
|
-
onClick: (
|
|
2074
|
+
onClick: (b) => l(h)
|
|
2075
2075
|
}, [
|
|
2076
2076
|
w("div", Ys, [
|
|
2077
2077
|
w("div", Js, [
|
|
@@ -2114,7 +2114,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2114
2114
|
setup(e, { expose: t, emit: o }) {
|
|
2115
2115
|
const { t: n } = ct.global, s = e, r = me({}), l = T(!1), a = T(), i = me({});
|
|
2116
2116
|
T(!0);
|
|
2117
|
-
const h = (_) => s.mode === "view" && (P(_, void 0) || P(_, "input") || P(_, "select") || P(_, "password") || P(_, "input-number") || P(_, "date") || P(_, "time") || P(_, "datetime")),
|
|
2117
|
+
const h = (_) => s.mode === "view" && (P(_, void 0) || P(_, "input") || P(_, "select") || P(_, "password") || P(_, "input-number") || P(_, "date") || P(_, "time") || P(_, "datetime")), b = Ie(() => s.model.fields ? s.model.fields.filter(
|
|
2118
2118
|
(_) => {
|
|
2119
2119
|
var O, L, d, c;
|
|
2120
2120
|
let I = _.visible !== !1 && ((O = _.formItem) == null ? void 0 : O.visible) !== !1;
|
|
@@ -2144,18 +2144,18 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2144
2144
|
const _ = s.model.fields;
|
|
2145
2145
|
let I = {};
|
|
2146
2146
|
_ == null || _.forEach((u) => {
|
|
2147
|
-
var O, L, d, c, S, $, D, j, A, v, z,
|
|
2147
|
+
var O, L, d, c, S, $, D, j, A, v, z, H, y;
|
|
2148
2148
|
if (r[u.prop] = null, u.visible !== !1 && ((O = u.formItem) == null ? void 0 : O.visible) !== !1) {
|
|
2149
2149
|
if (((L = u.formItem) == null ? void 0 : L.defaultValue) !== void 0 ? r[u.prop] = (d = u.formItem) == null ? void 0 : d.defaultValue : r[u.prop] = void 0, s.mode !== "view") {
|
|
2150
2150
|
let J = (c = u.formItem) == null ? void 0 : c.validationRule;
|
|
2151
2151
|
J !== void 0 && (I[u.prop] = J), ze(i), Object.assign(i, I);
|
|
2152
2152
|
}
|
|
2153
|
-
const f = u.formItem, U = f == null ? void 0 : f.type, q = (S = f == null ? void 0 : f.select) == null ? void 0 : S.useDatableDict,
|
|
2153
|
+
const f = u.formItem, U = f == null ? void 0 : f.type, q = (S = f == null ? void 0 : f.select) == null ? void 0 : S.useDatableDict, W = ($ = f == null ? void 0 : f.select) == null ? void 0 : $.dictId, te = (D = f == null ? void 0 : f.select) == null ? void 0 : D.api, re = (j = f == null ? void 0 : f.select) == null ? void 0 : j.valueMappingField, ue = (A = f == null ? void 0 : f.select) == null ? void 0 : A.labelMappingField;
|
|
2154
2154
|
if (U === "select") {
|
|
2155
2155
|
if (q) {
|
|
2156
|
-
let
|
|
2156
|
+
let Y = `${Ie(() => 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=${W}`;
|
|
2157
2157
|
const ne = (v = f == null ? void 0 : f.select) == null ? void 0 : v.queryParamName, se = (z = f == null ? void 0 : f.select) == null ? void 0 : z.queryParamValueField;
|
|
2158
|
-
ne && (
|
|
2158
|
+
ne && (Y = `${Y}?${ne}=${s.id}`), se || Se(Y, "GET", {}).then(({ data: ae }) => {
|
|
2159
2159
|
var fe;
|
|
2160
2160
|
if ((fe = u.formItem) != null && fe.select) {
|
|
2161
2161
|
let de = [];
|
|
@@ -2167,8 +2167,8 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2167
2167
|
});
|
|
2168
2168
|
} else if (te) {
|
|
2169
2169
|
let J = te;
|
|
2170
|
-
const
|
|
2171
|
-
|
|
2170
|
+
const Y = (H = f == null ? void 0 : f.select) == null ? void 0 : H.queryParamName, ne = (y = f == null ? void 0 : f.select) == null ? void 0 : y.queryParamValueField;
|
|
2171
|
+
Y && (J = `${J}?${Y}=${s.id}`), ne || Se(J, "GET", {}).then(({ data: se }) => {
|
|
2172
2172
|
var ae;
|
|
2173
2173
|
if ((ae = u.formItem) != null && ae.select) {
|
|
2174
2174
|
let fe = [];
|
|
@@ -2290,14 +2290,14 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2290
2290
|
inline: !s.disableInline
|
|
2291
2291
|
}, {
|
|
2292
2292
|
default: m(() => [
|
|
2293
|
-
(p(!0), V(ce, null, ge(
|
|
2293
|
+
(p(!0), V(ce, null, ge(b.value, (v) => (p(), E(D, {
|
|
2294
2294
|
class: "form-item",
|
|
2295
2295
|
style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2296
2296
|
prop: v.prop,
|
|
2297
2297
|
label: G(v)
|
|
2298
2298
|
}, {
|
|
2299
2299
|
default: m(() => {
|
|
2300
|
-
var z,
|
|
2300
|
+
var z, H, y, f, U, q, W, te, re, ue, J, Y, ne, se, ae, fe, de, Ve, et, tt;
|
|
2301
2301
|
return [
|
|
2302
2302
|
oe("input", v) ? (p(), E(u, {
|
|
2303
2303
|
key: 0,
|
|
@@ -2341,9 +2341,9 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2341
2341
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : F("", !0),
|
|
2342
2342
|
P(v, "select") && _.mode !== "view" ? (p(), E(S, {
|
|
2343
2343
|
key: 6,
|
|
2344
|
-
multiple: (
|
|
2344
|
+
multiple: (y = (H = v.formItem) == null ? void 0 : H.select) == null ? void 0 : y.multiple,
|
|
2345
2345
|
"collapse-tags": (U = (f = v.formItem) == null ? void 0 : f.select) == null ? void 0 : U.multiple,
|
|
2346
|
-
filterable: (
|
|
2346
|
+
filterable: (W = (q = v.formItem) == null ? void 0 : q.select) == null ? void 0 : W.allowCreate,
|
|
2347
2347
|
"allow-create": (re = (te = v.formItem) == null ? void 0 : te.select) == null ? void 0 : re.allowCreate,
|
|
2348
2348
|
"default-first-option": (J = (ue = v.formItem) == null ? void 0 : ue.select) == null ? void 0 : J.allowCreate,
|
|
2349
2349
|
modelValue: r[v.prop],
|
|
@@ -2367,7 +2367,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2367
2367
|
style: { width: "100%" },
|
|
2368
2368
|
modelValue: r[v.prop],
|
|
2369
2369
|
"onUpdate:modelValue": (le) => r[v.prop] = le,
|
|
2370
|
-
min: (se = (ne = (
|
|
2370
|
+
min: (se = (ne = (Y = v.formItem) == null ? void 0 : Y.inputNumber) == null ? void 0 : ne.min) != null ? se : Number.NEGATIVE_INFINITY,
|
|
2371
2371
|
max: (de = (fe = (ae = v.formItem) == null ? void 0 : ae.inputNumber) == null ? void 0 : fe.max) != null ? de : Number.POSITIVE_INFINITY,
|
|
2372
2372
|
step: (tt = (et = (Ve = v.formItem) == null ? void 0 : Ve.inputNumber) == null ? void 0 : et.step) != null ? tt : 1,
|
|
2373
2373
|
"value-on-clear": -10
|
|
@@ -2408,7 +2408,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2408
2408
|
function h() {
|
|
2409
2409
|
l("update:visible", !1), a.value.reset();
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function b() {
|
|
2412
2412
|
a.value.submit();
|
|
2413
2413
|
}
|
|
2414
2414
|
return t({
|
|
@@ -2450,7 +2450,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2450
2450
|
}),
|
|
2451
2451
|
g(G, {
|
|
2452
2452
|
type: "primary",
|
|
2453
|
-
onClick:
|
|
2453
|
+
onClick: b
|
|
2454
2454
|
}, {
|
|
2455
2455
|
default: m(() => [
|
|
2456
2456
|
Q(R(C(n)("common.basic.save")), 1)
|
|
@@ -2517,55 +2517,55 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2517
2517
|
model: {}
|
|
2518
2518
|
},
|
|
2519
2519
|
setup(e, { expose: t }) {
|
|
2520
|
-
const { t: o } = ct.global, n = e, s = me([]), r = me({}), l = T(""), a = T(!1), i = pt(), h = T(""),
|
|
2520
|
+
const { t: o } = ct.global, n = e, s = me([]), r = me({}), l = T(""), a = T(!1), i = pt(), h = T(""), b = me([]), x = me([]), N = T(), M = T([]), X = T("create"), G = T(!0), ee = T(!1), B = T(""), oe = me({
|
|
2521
2521
|
pageSize: 10,
|
|
2522
2522
|
pageNo: 1,
|
|
2523
2523
|
totalElements: 0
|
|
2524
2524
|
});
|
|
2525
2525
|
let P = {};
|
|
2526
2526
|
const K = Ie(() => s.filter(
|
|
2527
|
-
(
|
|
2527
|
+
(y) => {
|
|
2528
2528
|
var f, U;
|
|
2529
|
-
return ((f =
|
|
2529
|
+
return ((f = y.formItem) == null ? void 0 : f.type) !== "password" && y.visible !== !1 && ((U = y.tableColumn) == null ? void 0 : U.visible) !== !1;
|
|
2530
2530
|
}
|
|
2531
2531
|
));
|
|
2532
|
-
function _(
|
|
2532
|
+
function _(y, f) {
|
|
2533
2533
|
var te, re, ue, J;
|
|
2534
|
-
let U = f.row[
|
|
2535
|
-
const q = (re = (te =
|
|
2534
|
+
let U = f.row[y.prop];
|
|
2535
|
+
const q = (re = (te = y.tableColumn) == null ? void 0 : te.functions) == null ? void 0 : re.transformValue, W = (ue = y.tableColumn) == null ? void 0 : ue.transformValueMappings;
|
|
2536
2536
|
if (q)
|
|
2537
2537
|
U = q(U);
|
|
2538
|
-
else if (
|
|
2539
|
-
for (let
|
|
2540
|
-
if (U ===
|
|
2541
|
-
U = o(
|
|
2538
|
+
else if (W && W.length > 0) {
|
|
2539
|
+
for (let Y of W)
|
|
2540
|
+
if (U === Y.value) {
|
|
2541
|
+
U = o(Y.label);
|
|
2542
2542
|
break;
|
|
2543
2543
|
}
|
|
2544
|
-
} else if (((J =
|
|
2545
|
-
const
|
|
2546
|
-
if (
|
|
2547
|
-
if (
|
|
2548
|
-
U = f.row[
|
|
2549
|
-
else if (
|
|
2550
|
-
for (let ne of
|
|
2551
|
-
if (ne.value === f.row[
|
|
2544
|
+
} else if (((J = y.formItem) == null ? void 0 : J.type) === "select") {
|
|
2545
|
+
const Y = y.formItem.select;
|
|
2546
|
+
if (Y) {
|
|
2547
|
+
if (Y.viewModeLabelField)
|
|
2548
|
+
U = f.row[Y.viewModeLabelField];
|
|
2549
|
+
else if (Y.options && Y.options.length > 0) {
|
|
2550
|
+
for (let ne of Y.options)
|
|
2551
|
+
if (ne.value === f.row[y.prop]) {
|
|
2552
2552
|
U = ne.label;
|
|
2553
2553
|
break;
|
|
2554
2554
|
}
|
|
2555
|
-
} else if (
|
|
2556
|
-
if (P[
|
|
2557
|
-
let se = `${Ie(() => 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=${
|
|
2555
|
+
} else if (Y.useDatableDict && Y.dictId) {
|
|
2556
|
+
if (P[Y.dictId] === void 0) {
|
|
2557
|
+
let se = `${Ie(() => 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=${Y.dictId}`;
|
|
2558
2558
|
Se(se, "GET", {}).then(({ data: ae }) => {
|
|
2559
2559
|
let fe = [];
|
|
2560
|
-
Array.isArray(ae.data) ? fe = ae.data : ae.data.list && Array.isArray(ae.data.list) && (fe = ae.data.list), P[
|
|
2561
|
-
for (let de of P[
|
|
2560
|
+
Array.isArray(ae.data) ? fe = ae.data : ae.data.list && Array.isArray(ae.data.list) && (fe = ae.data.list), P[Y.dictId] = fe;
|
|
2561
|
+
for (let de of P[Y.dictId])
|
|
2562
2562
|
if (de.dbOrdinal == U) {
|
|
2563
2563
|
U = de.value;
|
|
2564
2564
|
break;
|
|
2565
2565
|
}
|
|
2566
2566
|
});
|
|
2567
2567
|
} else
|
|
2568
|
-
for (let ne of P[
|
|
2568
|
+
for (let ne of P[Y.dictId])
|
|
2569
2569
|
if (ne.dbOrdinal == U) {
|
|
2570
2570
|
U = ne.value;
|
|
2571
2571
|
break;
|
|
@@ -2575,29 +2575,29 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2575
2575
|
}
|
|
2576
2576
|
return U;
|
|
2577
2577
|
}
|
|
2578
|
-
function I(
|
|
2578
|
+
function I(y, f) {
|
|
2579
2579
|
var U, q;
|
|
2580
|
-
return
|
|
2580
|
+
return y.label ? o(y.label) : (q = (U = y.functions) == null ? void 0 : U.transformLabel) == null ? void 0 : q.call(U, f.$index, f.row);
|
|
2581
2581
|
}
|
|
2582
|
-
function u(
|
|
2583
|
-
ze(n.model), Object.assign(n.model,
|
|
2582
|
+
function u(y) {
|
|
2583
|
+
ze(n.model), Object.assign(n.model, y);
|
|
2584
2584
|
}
|
|
2585
2585
|
function O() {
|
|
2586
2586
|
var f, U, q;
|
|
2587
2587
|
if (G.value = !0, !n.model || !n.model.api)
|
|
2588
2588
|
return;
|
|
2589
2589
|
ze(r), Object.assign(r, (f = n.model.tableConfig) != null ? f : {}), r.display = (U = r.display) != null ? U : {}, r.display.advancedSearch !== !0 && (r.display.advancedSearch = !1), r.display.fileTaskButton !== !0 && (r.display.fileTaskButton = !1), r.display.pagination !== !1 && (r.display.pagination = !0), r.display.pane !== !1 && (r.display.pane = !0), r.display.searchBox !== !1 && (r.display.searchBox = !0), s.splice(0, s.length, ...n.model.fields), l.value = (q = n.model.route) != null ? q : "";
|
|
2590
|
-
let
|
|
2591
|
-
|
|
2592
|
-
const { list: te, totalCount: re } =
|
|
2593
|
-
|
|
2590
|
+
let y = ot({}, r.queryParams);
|
|
2591
|
+
y.pageSize = oe.pageSize, y.pageNo = oe.pageNo, y.search = h.value, Se(n.model.api, "GET", y).then(({ data: W }) => {
|
|
2592
|
+
const { list: te, totalCount: re } = W.data;
|
|
2593
|
+
b.splice(0, b.length, ...te), oe.totalElements = re, G.value = !1;
|
|
2594
2594
|
});
|
|
2595
2595
|
}
|
|
2596
2596
|
function L() {
|
|
2597
|
-
var
|
|
2598
|
-
r.createPageRoutePath !== void 0 ? i.push(r.createPageRoutePath) : ((
|
|
2597
|
+
var y, f;
|
|
2598
|
+
r.createPageRoutePath !== void 0 ? i.push(r.createPageRoutePath) : ((y = r.functions) == null ? void 0 : y.create) !== void 0 ? (f = r.functions) == null || f.create() : (X.value = "create", B.value = "", a.value = !0);
|
|
2599
2599
|
}
|
|
2600
|
-
function d(
|
|
2600
|
+
function d(y, f) {
|
|
2601
2601
|
n.model.api && Se(n.model.api, "DELETE", f.id).then(({ data: U }) => {
|
|
2602
2602
|
U.code === 0 && (a.value = !1, O());
|
|
2603
2603
|
});
|
|
@@ -2612,8 +2612,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2612
2612
|
type: "warning"
|
|
2613
2613
|
}
|
|
2614
2614
|
).then(() => {
|
|
2615
|
-
var
|
|
2616
|
-
if (((
|
|
2615
|
+
var y, f;
|
|
2616
|
+
if (((y = r.functions) == null ? void 0 : y.batchDelete) !== void 0)
|
|
2617
2617
|
(f = r.functions) == null || f.batchDelete(M.value);
|
|
2618
2618
|
else {
|
|
2619
2619
|
const U = M.value.map((q) => q.id);
|
|
@@ -2626,13 +2626,13 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2626
2626
|
N.value.clearSelection();
|
|
2627
2627
|
});
|
|
2628
2628
|
}
|
|
2629
|
-
function S(
|
|
2630
|
-
oe.pageSize =
|
|
2629
|
+
function S(y) {
|
|
2630
|
+
oe.pageSize = y, O();
|
|
2631
2631
|
}
|
|
2632
|
-
function $(
|
|
2633
|
-
oe.pageNo =
|
|
2632
|
+
function $(y) {
|
|
2633
|
+
oe.pageNo = y, O();
|
|
2634
2634
|
}
|
|
2635
|
-
function D(
|
|
2635
|
+
function D(y, f) {
|
|
2636
2636
|
r.editPageRoutePath !== void 0 ? i.push({
|
|
2637
2637
|
path: r.editPageRoutePath,
|
|
2638
2638
|
query: {
|
|
@@ -2642,23 +2642,23 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2642
2642
|
}
|
|
2643
2643
|
function j() {
|
|
2644
2644
|
var U;
|
|
2645
|
-
let
|
|
2645
|
+
let y = ((U = n.model.api) != null && U.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
|
|
2646
2646
|
const f = r.queryParams;
|
|
2647
|
-
f !== void 0 && Object.keys(f).length > 0 && (
|
|
2648
|
-
|
|
2649
|
-
})), window.open(
|
|
2647
|
+
f !== void 0 && Object.keys(f).length > 0 && (y += "?", Object.entries(r.queryParams).map((q) => {
|
|
2648
|
+
y += `${q[0]}=${q[1]}&`;
|
|
2649
|
+
})), window.open(y);
|
|
2650
2650
|
}
|
|
2651
|
-
function A(
|
|
2652
|
-
M.value =
|
|
2651
|
+
function A(y) {
|
|
2652
|
+
M.value = y;
|
|
2653
2653
|
}
|
|
2654
|
-
function v(
|
|
2655
|
-
const f = "i18n(", U = ")", q =
|
|
2656
|
-
return q ? q.startsWith(f) && q.endsWith(U) ? o(q.slice(f.length, -U.length)) : q :
|
|
2654
|
+
function v(y) {
|
|
2655
|
+
const f = "i18n(", U = ")", q = y.label;
|
|
2656
|
+
return q ? q.startsWith(f) && q.endsWith(U) ? o(q.slice(f.length, -U.length)) : q : y.prop.slice(0, 1).toUpperCase() + y.prop.slice(1).toLowerCase();
|
|
2657
2657
|
}
|
|
2658
|
-
function z(
|
|
2659
|
-
|
|
2658
|
+
function z(y) {
|
|
2659
|
+
y ? (ee.value = !0, x.splice(0, x.length, ...b), b.splice(0, b.length, ...M.value)) : (ee.value = !1, b.splice(0, b.length, ...x));
|
|
2660
2660
|
}
|
|
2661
|
-
function
|
|
2661
|
+
function H() {
|
|
2662
2662
|
var te;
|
|
2663
2663
|
if (M.value.length === 0) {
|
|
2664
2664
|
It.alert("Select rows before printing", "Print", {
|
|
@@ -2666,9 +2666,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2666
2666
|
});
|
|
2667
2667
|
return;
|
|
2668
2668
|
}
|
|
2669
|
-
let
|
|
2669
|
+
let y = "";
|
|
2670
2670
|
K.value.forEach((re) => {
|
|
2671
|
-
|
|
2671
|
+
y += `<th>${v(re)}</th>`;
|
|
2672
2672
|
});
|
|
2673
2673
|
let f = "";
|
|
2674
2674
|
M.value.forEach((re) => {
|
|
@@ -2676,11 +2676,11 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2676
2676
|
f += `<td>${re[ue.prop]}</td>`;
|
|
2677
2677
|
}), f += "</tr>";
|
|
2678
2678
|
});
|
|
2679
|
-
let U = `<table><tr>${
|
|
2679
|
+
let U = `<table><tr>${y}</tr>${f}</table>`;
|
|
2680
2680
|
const q = document.createElement("iframe");
|
|
2681
2681
|
q.style.display = "none", document.body.appendChild(q);
|
|
2682
|
-
const
|
|
2683
|
-
|
|
2682
|
+
const W = q.contentDocument || ((te = q.contentWindow) == null ? void 0 : te.document);
|
|
2683
|
+
W == null || W.open(), W == null || W.write(`
|
|
2684
2684
|
<!DOCTYPE html>
|
|
2685
2685
|
<html>
|
|
2686
2686
|
<head>
|
|
@@ -2729,7 +2729,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2729
2729
|
<\/script>
|
|
2730
2730
|
</body>
|
|
2731
2731
|
</html>
|
|
2732
|
-
`),
|
|
2732
|
+
`), W == null || W.close();
|
|
2733
2733
|
}
|
|
2734
2734
|
return Oe(() => n.model, () => {
|
|
2735
2735
|
O();
|
|
@@ -2740,9 +2740,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2740
2740
|
multipleSelection: M,
|
|
2741
2741
|
refresh: O,
|
|
2742
2742
|
updateConfigAndRefresh: u
|
|
2743
|
-
}), (
|
|
2743
|
+
}), (y, f) => {
|
|
2744
2744
|
var le, qe, Be;
|
|
2745
|
-
const U = k("el-checkbox"), q = k("el-badge"),
|
|
2745
|
+
const U = k("el-checkbox"), q = k("el-badge"), W = k("el-button"), te = k("el-dropdown-item"), re = k("el-dropdown-menu"), ue = k("el-dropdown"), J = k("el-icon"), Y = k("el-tooltip"), ne = k("el-input"), se = k("el-table-column"), ae = k("router-link"), fe = k("el-tag"), de = k("el-popconfirm"), Ve = k("el-table"), et = k("el-pagination"), tt = qt("loading");
|
|
2746
2746
|
return p(), V("div", {
|
|
2747
2747
|
class: zt({ "table-view-wrapper": (le = r.display) == null ? void 0 : le.pane })
|
|
2748
2748
|
}, [
|
|
@@ -2764,7 +2764,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2764
2764
|
]),
|
|
2765
2765
|
_: 1
|
|
2766
2766
|
}, 8, ["value"])) : F("", !0),
|
|
2767
|
-
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), E(
|
|
2767
|
+
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), E(W, {
|
|
2768
2768
|
key: 1,
|
|
2769
2769
|
type: "primary",
|
|
2770
2770
|
onClick: L
|
|
@@ -2777,7 +2777,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2777
2777
|
}),
|
|
2778
2778
|
_: 1
|
|
2779
2779
|
})) : F("", !0),
|
|
2780
|
-
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), E(
|
|
2780
|
+
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), E(W, {
|
|
2781
2781
|
key: 2,
|
|
2782
2782
|
disabled: M.value.length == 0,
|
|
2783
2783
|
type: "danger",
|
|
@@ -2792,7 +2792,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2792
2792
|
}),
|
|
2793
2793
|
_: 1
|
|
2794
2794
|
}, 8, ["disabled"])) : F("", !0),
|
|
2795
|
-
g(
|
|
2795
|
+
g(W, {
|
|
2796
2796
|
icon: C(Yt),
|
|
2797
2797
|
style: { width: "28px" },
|
|
2798
2798
|
onClick: O
|
|
@@ -2848,7 +2848,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2848
2848
|
})
|
|
2849
2849
|
]),
|
|
2850
2850
|
default: m(() => [
|
|
2851
|
-
g(
|
|
2851
|
+
g(W, { style: { width: "28px" } }, {
|
|
2852
2852
|
icon: m(() => [
|
|
2853
2853
|
g(C(rr))
|
|
2854
2854
|
]),
|
|
@@ -2866,7 +2866,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2866
2866
|
default: m(() => [
|
|
2867
2867
|
g(te, {
|
|
2868
2868
|
icon: C(Ao),
|
|
2869
|
-
onClick:
|
|
2869
|
+
onClick: H
|
|
2870
2870
|
}, {
|
|
2871
2871
|
default: m(() => f[7] || (f[7] = [
|
|
2872
2872
|
Q("打印")
|
|
@@ -2887,14 +2887,14 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2887
2887
|
})
|
|
2888
2888
|
]),
|
|
2889
2889
|
default: m(() => [
|
|
2890
|
-
g(
|
|
2890
|
+
g(W, {
|
|
2891
2891
|
icon: C(Ro),
|
|
2892
2892
|
style: { width: "28px" }
|
|
2893
2893
|
}, null, 8, ["icon"])
|
|
2894
2894
|
]),
|
|
2895
2895
|
_: 1
|
|
2896
2896
|
}),
|
|
2897
|
-
r.tooltip ? (p(), E(
|
|
2897
|
+
r.tooltip ? (p(), E(Y, {
|
|
2898
2898
|
key: 4,
|
|
2899
2899
|
effect: "dark",
|
|
2900
2900
|
content: C(o)(r.tooltip),
|
|
@@ -2918,7 +2918,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2918
2918
|
"onUpdate:modelValue": f[0] || (f[0] = (he) => h.value = he)
|
|
2919
2919
|
}, {
|
|
2920
2920
|
append: m(() => [
|
|
2921
|
-
g(
|
|
2921
|
+
g(W, {
|
|
2922
2922
|
style: { "margin-left": "-20px" },
|
|
2923
2923
|
icon: C(Ht),
|
|
2924
2924
|
onClick: O
|
|
@@ -2926,7 +2926,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2926
2926
|
]),
|
|
2927
2927
|
_: 1
|
|
2928
2928
|
}, 8, ["placeholder", "modelValue"]),
|
|
2929
|
-
(Be = r.display) != null && Be.advancedSearch ? (p(), E(
|
|
2929
|
+
(Be = r.display) != null && Be.advancedSearch ? (p(), E(W, {
|
|
2930
2930
|
key: 0,
|
|
2931
2931
|
type: "text"
|
|
2932
2932
|
}, {
|
|
@@ -2941,7 +2941,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2941
2941
|
border: !0,
|
|
2942
2942
|
ref_key: "tableRef",
|
|
2943
2943
|
ref: N,
|
|
2944
|
-
data:
|
|
2944
|
+
data: b,
|
|
2945
2945
|
onSelectionChange: A,
|
|
2946
2946
|
class: "table"
|
|
2947
2947
|
}, {
|
|
@@ -3000,7 +3000,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3000
3000
|
width: "120"
|
|
3001
3001
|
}, {
|
|
3002
3002
|
default: m((Z) => [
|
|
3003
|
-
r.updatable !== !1 ? (p(), E(
|
|
3003
|
+
r.updatable !== !1 ? (p(), E(W, {
|
|
3004
3004
|
key: 0,
|
|
3005
3005
|
link: "",
|
|
3006
3006
|
type: "primary",
|
|
@@ -3017,7 +3017,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3017
3017
|
onConfirm: (Ee) => d(Z.$index, Z.row)
|
|
3018
3018
|
}, {
|
|
3019
3019
|
reference: m(() => [
|
|
3020
|
-
r.deletable !== !1 ? (p(), E(
|
|
3020
|
+
r.deletable !== !1 ? (p(), E(W, {
|
|
3021
3021
|
key: 0,
|
|
3022
3022
|
link: "",
|
|
3023
3023
|
type: "primary",
|
|
@@ -3040,7 +3040,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3040
3040
|
width: "120"
|
|
3041
3041
|
}, {
|
|
3042
3042
|
default: m((Z) => [
|
|
3043
|
-
(p(!0), V(ce, null, ge(r.operations, (Ee) => (p(), E(
|
|
3043
|
+
(p(!0), V(ce, null, ge(r.operations, (Ee) => (p(), E(W, {
|
|
3044
3044
|
class: "operation-button",
|
|
3045
3045
|
link: "",
|
|
3046
3046
|
type: "primary",
|
|
@@ -3078,7 +3078,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3078
3078
|
total: oe.totalElements
|
|
3079
3079
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
3080
3080
|
g(yo, {
|
|
3081
|
-
model:
|
|
3081
|
+
model: y.model,
|
|
3082
3082
|
mode: X.value,
|
|
3083
3083
|
id: B.value,
|
|
3084
3084
|
afterSubmitFunc: O,
|
|
@@ -3094,7 +3094,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3094
3094
|
}, mr = { class: "icon-wrapper" }, hr = { class: "info-wrapper" }, gr = { class: "title-wrapper" }, _r = { class: "tabs-wrapper" }, vr = { class: "dialog-footer" }, br = /* @__PURE__ */ Ce({
|
|
3095
3095
|
__name: "DetailPage",
|
|
3096
3096
|
setup(e) {
|
|
3097
|
-
const { t } = Ze(), o = Xe(), n = pt(), s = Ie(() => o.query.id), r = T(!1), l = T(!1), a = T("view"), i = T(), h = T(-1),
|
|
3097
|
+
const { t } = Ze(), o = Xe(), n = pt(), s = Ie(() => o.query.id), r = T(!1), l = T(!1), a = T("view"), i = T(), h = T(-1), b = T(), x = T(), N = T("summary"), M = T(""), X = T(""), G = T(""), ee = T(0), B = me({
|
|
3098
3098
|
api: "",
|
|
3099
3099
|
fields: []
|
|
3100
3100
|
}), oe = me([]);
|
|
@@ -3117,7 +3117,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3117
3117
|
d = d == null ? void 0 : d.substring(d.lastIndexOf("/"));
|
|
3118
3118
|
const c = B.api + "/" + s.value + d, S = x.value.multipleSelection.map((D) => D.id);
|
|
3119
3119
|
Se(c, "POST", S).then(() => {
|
|
3120
|
-
|
|
3120
|
+
b.value.refresh(), l.value = !1;
|
|
3121
3121
|
});
|
|
3122
3122
|
}
|
|
3123
3123
|
function I(d, c, S) {
|
|
@@ -3133,24 +3133,24 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3133
3133
|
create: "common.table.add",
|
|
3134
3134
|
delete: "common.table.remove"
|
|
3135
3135
|
}, S.functions.batchDelete = (A) => {
|
|
3136
|
-
var
|
|
3137
|
-
let v = (
|
|
3136
|
+
var y;
|
|
3137
|
+
let v = (y = P[h.value].api) == null ? void 0 : y.replace("/select", "");
|
|
3138
3138
|
v = v == null ? void 0 : v.substring(v.lastIndexOf("/"));
|
|
3139
|
-
const z = B.api + "/" + s.value + v,
|
|
3140
|
-
be.delete(`${z}/${
|
|
3141
|
-
f.code === 0 &&
|
|
3139
|
+
const z = B.api + "/" + s.value + v, H = A.map((f) => f.id);
|
|
3140
|
+
be.delete(`${z}/${H.join(",")}`).then(({ data: f }) => {
|
|
3141
|
+
f.code === 0 && b.value.refresh();
|
|
3142
3142
|
});
|
|
3143
3143
|
}, S.operations = [
|
|
3144
3144
|
{
|
|
3145
3145
|
label: "common.table.remove",
|
|
3146
3146
|
functions: {
|
|
3147
3147
|
click: (A, v) => {
|
|
3148
|
-
var
|
|
3149
|
-
let z = (
|
|
3148
|
+
var y;
|
|
3149
|
+
let z = (y = P[h.value].api) == null ? void 0 : y.replace("/select", "");
|
|
3150
3150
|
z = z == null ? void 0 : z.substring(z.lastIndexOf("/"));
|
|
3151
|
-
const
|
|
3152
|
-
Se(
|
|
3153
|
-
|
|
3151
|
+
const H = B.api + "/" + s.value + z;
|
|
3152
|
+
Se(H, "DELETE", v.id).then(() => {
|
|
3153
|
+
b.value.refresh();
|
|
3154
3154
|
});
|
|
3155
3155
|
}
|
|
3156
3156
|
}
|
|
@@ -3176,20 +3176,25 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3176
3176
|
if (oe.push(v), A.type === "table") {
|
|
3177
3177
|
v.tableConfig || (v.tableConfig = {});
|
|
3178
3178
|
let z = v.tableConfig;
|
|
3179
|
-
z.display = {
|
|
3179
|
+
if (z.display = {
|
|
3180
3180
|
pane: !1
|
|
3181
|
-
}, A.modelRelationType === "associated"
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3181
|
+
}, A.modelRelationType === "associated")
|
|
3182
|
+
I(A, v, z);
|
|
3183
|
+
else if (A.modelRelationType === "child") {
|
|
3184
|
+
P.push({
|
|
3185
|
+
fields: []
|
|
3186
|
+
}), v.formConfig === void 0 && (v.formConfig = {}), v.formConfig.functions === void 0 && (v.formConfig.functions = {});
|
|
3187
|
+
const H = v.formConfig.functions.beforeSubmit;
|
|
3188
|
+
A.queryParamName && (v.formConfig.functions.beforeSubmit = (y) => {
|
|
3189
|
+
y[A.queryParamName] = s.value, H !== void 0 && H();
|
|
3190
|
+
});
|
|
3191
|
+
}
|
|
3192
|
+
z.queryParams || (z.queryParams = {}), A.queryParamName && (z.queryParams[A.queryParamName] = s.value), A.queryParams && Object.assign(z.queryParams, A.queryParams), z.readOnly = (j = A.readOnly) != null ? j : !1, A.includeFields && (v.fields = v.fields.filter((H) => {
|
|
3193
|
+
var y;
|
|
3194
|
+
return (y = A.includeFields) == null ? void 0 : y.includes(H.prop);
|
|
3195
|
+
})), A.excludeFields && (v.fields = v.fields.filter((H) => {
|
|
3196
|
+
var y;
|
|
3197
|
+
return !((y = A.excludeFields) != null && y.includes(H.prop));
|
|
3193
3198
|
})), A.tooltip && (z.tooltip = A.tooltip);
|
|
3194
3199
|
}
|
|
3195
3200
|
}
|
|
@@ -3230,8 +3235,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3230
3235
|
i.value.refresh();
|
|
3231
3236
|
}
|
|
3232
3237
|
return (d, c) => {
|
|
3233
|
-
var U, q,
|
|
3234
|
-
const S = k("el-page-header"), $ = k("el-button"), D = k("el-icon"), j = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), z = k("el-tag"),
|
|
3238
|
+
var U, q, W, te, re, ue;
|
|
3239
|
+
const S = k("el-page-header"), $ = k("el-button"), D = k("el-icon"), j = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), z = k("el-tag"), H = k("el-tab-pane"), y = k("el-tabs"), f = k("el-dialog");
|
|
3235
3240
|
return p(), V(ce, null, [
|
|
3236
3241
|
w("div", dr, [
|
|
3237
3242
|
g(S, {
|
|
@@ -3262,9 +3267,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3262
3267
|
dropdown: m(() => [
|
|
3263
3268
|
g(A, null, {
|
|
3264
3269
|
default: m(() => {
|
|
3265
|
-
var J,
|
|
3270
|
+
var J, Y;
|
|
3266
3271
|
return [
|
|
3267
|
-
(p(!0), V(ce, null, ge((
|
|
3272
|
+
(p(!0), V(ce, null, ge((Y = (J = B.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : Y.operationButtons, (ne) => (p(), E(j, {
|
|
3268
3273
|
onClick: (se) => ne.function(i.value.formData)
|
|
3269
3274
|
}, {
|
|
3270
3275
|
default: m(() => [
|
|
@@ -3309,7 +3314,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3309
3314
|
})
|
|
3310
3315
|
])
|
|
3311
3316
|
]),
|
|
3312
|
-
(te = (
|
|
3317
|
+
(te = (W = B.pageConfig) == null ? void 0 : W.detailPage) != null && te.infoCard ? (p(), V("div", fr, [
|
|
3313
3318
|
w("div", mr, [
|
|
3314
3319
|
(p(), E(it((re = B.pageConfig.detailPage.infoCard.icon) != null ? re : ""), { class: "icon" }))
|
|
3315
3320
|
]),
|
|
@@ -3330,15 +3335,15 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3330
3335
|
])
|
|
3331
3336
|
])) : F("", !0),
|
|
3332
3337
|
w("div", _r, [
|
|
3333
|
-
g(
|
|
3338
|
+
g(y, {
|
|
3334
3339
|
modelValue: N.value,
|
|
3335
3340
|
"onUpdate:modelValue": c[1] || (c[1] = (J) => N.value = J),
|
|
3336
3341
|
onTabClick: K
|
|
3337
3342
|
}, {
|
|
3338
3343
|
default: m(() => {
|
|
3339
|
-
var J,
|
|
3344
|
+
var J, Y;
|
|
3340
3345
|
return [
|
|
3341
|
-
g(
|
|
3346
|
+
g(H, {
|
|
3342
3347
|
label: C(t)("common.basic.summary"),
|
|
3343
3348
|
name: "summary"
|
|
3344
3349
|
}, {
|
|
@@ -3354,9 +3359,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3354
3359
|
]),
|
|
3355
3360
|
_: 1
|
|
3356
3361
|
}, 8, ["label"]),
|
|
3357
|
-
(p(!0), V(ce, null, ge((
|
|
3362
|
+
(p(!0), V(ce, null, ge((Y = (J = B.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : Y.tabs, (ne) => {
|
|
3358
3363
|
var se;
|
|
3359
|
-
return p(), E(
|
|
3364
|
+
return p(), E(H, {
|
|
3360
3365
|
label: C(t)((se = ne.name) != null ? se : "")
|
|
3361
3366
|
}, null, 8, ["label"]);
|
|
3362
3367
|
}), 256))
|
|
@@ -3367,7 +3372,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3367
3372
|
h.value >= 0 ? (p(), E(dt, {
|
|
3368
3373
|
key: 0,
|
|
3369
3374
|
ref_key: "tabPaneTableRef",
|
|
3370
|
-
ref:
|
|
3375
|
+
ref: b,
|
|
3371
3376
|
model: oe[h.value]
|
|
3372
3377
|
}, null, 8, ["model"])) : F("", !0),
|
|
3373
3378
|
g(f, {
|
|
@@ -3419,7 +3424,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3419
3424
|
], 64);
|
|
3420
3425
|
};
|
|
3421
3426
|
}
|
|
3422
|
-
}), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-
|
|
3427
|
+
}), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-d48c0eb5"]]), wr = { class: "page-title" }, Sr = /* @__PURE__ */ Ce({
|
|
3423
3428
|
__name: "TablePage",
|
|
3424
3429
|
setup(e) {
|
|
3425
3430
|
const { t } = Ze(), o = Xe(), n = pt(), s = T(), r = T([]), l = me({
|
|
@@ -3427,8 +3432,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3427
3432
|
fields: []
|
|
3428
3433
|
}), a = me(ot({}, l));
|
|
3429
3434
|
function i() {
|
|
3430
|
-
var
|
|
3431
|
-
r.value = [], l.pageConfig && ((x = (
|
|
3435
|
+
var b, x, N, M, X;
|
|
3436
|
+
r.value = [], l.pageConfig && ((x = (b = l.pageConfig) == null ? void 0 : b.tablePage) != null && x.tabViewAttributes) && (r.value = (X = (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : M.tabViewAttributes) == null ? void 0 : X.map((G) => {
|
|
3432
3437
|
let ee;
|
|
3433
3438
|
return G.modelKey && ve.value[G.modelKey] ? ee = Ge(ve.value[G.modelKey]) : ee = Ge(l), G.queryParams && (ee.tableConfig || (ee.tableConfig = {}), ee.tableConfig.queryParams = G.queryParams), G.fields && (ee.fields = G.fields), G.modelKey && (ee.breadcrumbRoute = l.route), {
|
|
3434
3439
|
key: G.key,
|
|
@@ -3442,13 +3447,13 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3442
3447
|
function h() {
|
|
3443
3448
|
var N, M;
|
|
3444
3449
|
console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ve.value);
|
|
3445
|
-
const
|
|
3446
|
-
if (ve.value[
|
|
3447
|
-
console.warn("TablePage.init: model not found",
|
|
3450
|
+
const b = o.params.model;
|
|
3451
|
+
if (ve.value[b] === void 0) {
|
|
3452
|
+
console.warn("TablePage.init: model not found", b, ve.value);
|
|
3448
3453
|
return;
|
|
3449
3454
|
}
|
|
3450
3455
|
ze(l);
|
|
3451
|
-
const x = Ge(ve.value[
|
|
3456
|
+
const x = Ge(ve.value[b]);
|
|
3452
3457
|
Object.assign(l, x), (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && M.tabViewAttributes || Object.assign(a, l), i();
|
|
3453
3458
|
}
|
|
3454
3459
|
return Oe([
|
|
@@ -3459,7 +3464,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3459
3464
|
}, {
|
|
3460
3465
|
immediate: !0,
|
|
3461
3466
|
deep: !0
|
|
3462
|
-
}), (
|
|
3467
|
+
}), (b, x) => {
|
|
3463
3468
|
var M;
|
|
3464
3469
|
const N = k("el-scrollbar");
|
|
3465
3470
|
return p(), V(ce, null, [
|