@vancone/console-component 0.1.1-beta.67 → 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.
package/package.json
CHANGED
|
@@ -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";
|
|
@@ -175,7 +175,7 @@ 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
|
}
|
|
@@ -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" }]),
|
|
@@ -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"
|
|
@@ -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(() => [
|
|
@@ -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;
|
|
@@ -1741,7 +1741,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
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())
|
|
@@ -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 _e = (g = C == null ? void 0 : C.select) == null ? void 0 : g.queryParamName,
|
|
2360
|
-
_e && (re = `${re}?${_e}=${t.id}`),
|
|
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
2363
|
let ge = [];
|
|
2364
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
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:
|
|
2373
|
+
re && (ae = `${ae}?${re}=${t.id}`), _e || $e(ae, "GET", {}).then(({ data: pe }) => {
|
|
2374
2374
|
var ve;
|
|
2375
2375
|
if ((ve = d.formItem) != null && ve.select) {
|
|
2376
2376
|
let ke = [];
|
|
2377
|
-
Array.isArray(
|
|
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
2378
|
value: J ? ge[J] : ge.value,
|
|
2379
|
-
label:
|
|
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,15 +2419,15 @@ 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
|
|
2430
|
+
return de(s[w.prop]);
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
2433
|
function oe(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:
|
|
2474
|
+
label: de(l.labelMappingField ? O[l.labelMappingField] : O.label)
|
|
2475
2475
|
}));
|
|
2476
2476
|
}
|
|
2477
2477
|
});
|
|
@@ -2504,14 +2504,14 @@ 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, _e,
|
|
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,
|
|
@@ -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,7 +2581,7 @@ 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 = (ve = (
|
|
2584
|
+
min: (ke = (ve = (pe = m.formItem) == null ? void 0 : pe.inputNumber) == null ? void 0 : ve.min) != null ? ke : Number.NEGATIVE_INFINITY,
|
|
2585
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
|
|
@@ -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,7 +2785,7 @@ 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
|
|
@@ -2826,9 +2826,9 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2826
2826
|
$e(ae, "GET", {}).then(({ data: re }) => {
|
|
2827
2827
|
let _e = [];
|
|
2828
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
|
|
2830
|
-
if (
|
|
2831
|
-
m =
|
|
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;
|
|
@@ -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, ...$));
|
|
@@ -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"), _e = x("el-tag"),
|
|
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
|
}, [
|
|
@@ -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,
|
|
@@ -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",
|
|
@@ -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,
|
|
@@ -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(() => [
|
|
@@ -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;
|