@vancone/console-component 0.1.1-beta.45 → 0.1.1-beta.46
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var bo = Object.defineProperty, vo = Object.defineProperties;
|
|
2
2
|
var yo = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ct = Object.getOwnPropertySymbols;
|
|
4
4
|
var wo = Object.prototype.hasOwnProperty, So = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var kt = (e, t, o) => t in e ?
|
|
5
|
+
var kt = (e, t, o) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Ze = (e, t) => {
|
|
6
6
|
for (var o in t || (t = {}))
|
|
7
7
|
wo.call(t, o) && kt(e, o, t[o]);
|
|
8
8
|
if (Ct)
|
|
9
9
|
for (var o of Ct(t))
|
|
10
10
|
So.call(t, o) && kt(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
}, $t = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, $t = (e, t) => vo(e, yo(t));
|
|
13
|
+
var Ee = (e, t, o) => new Promise((n, s) => {
|
|
14
14
|
var r = (i) => {
|
|
15
15
|
try {
|
|
16
16
|
a(o.next(i));
|
|
@@ -26,14 +26,14 @@ var $e = (e, t, o) => new Promise((n, s) => {
|
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
27
|
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as V, createElementVNode as S, defineComponent as
|
|
29
|
+
import { openBlock as p, createElementBlock as V, createElementVNode as S, defineComponent as Ce, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as x, Fragment as ae, renderList as pe, toDisplayString as G, normalizeStyle as je, ref as A, onMounted as Ft, createBlock as P, createTextVNode as K, createCommentVNode as q, nextTick as Be, resolveDynamicComponent as rt, effectScope as Rt, markRaw as Me, toRaw as Ye, hasInjectionContext as Co, inject as ko, getCurrentInstance as $o, watch as Pe, isRef as We, isReactive as _t, toRef as ut, computed as Te, getCurrentScope as xo, onScopeDispose as Eo, toRefs as xt, createStaticVNode as Oo, normalizeClass as Lt, resolveDirective as Gt, withDirectives as jt } from "vue";
|
|
30
30
|
import { useRoute as Ke, useRouter as ct } from "vue-router";
|
|
31
31
|
import Po from "axios";
|
|
32
32
|
import { ElMessage as dt, ElMessageBox as Et } from "element-plus";
|
|
33
33
|
import { Search as zt, ArrowDown as qt, ArrowRight as Io, Check as Vo, Refresh as Ht, Upload as Ao, Download as Ot, Document as No, Printer as Mo, Setting as Uo, MoreFilled as To, QuestionFilled as Do } from "@element-plus/icons-vue";
|
|
34
34
|
import { createI18n as Fo, useI18n as Qe } from "vue-i18n";
|
|
35
35
|
import { cloneDeep as Ge } from "lodash";
|
|
36
|
-
const
|
|
36
|
+
const ve = (e, t) => {
|
|
37
37
|
const o = e.__vccOpts || e;
|
|
38
38
|
for (const [n, s] of t)
|
|
39
39
|
o[n] = s;
|
|
@@ -42,12 +42,12 @@ const be = (e, t) => {
|
|
|
42
42
|
function Go(e, t) {
|
|
43
43
|
return p(), V("div", Lo);
|
|
44
44
|
}
|
|
45
|
-
const jo = /* @__PURE__ */
|
|
45
|
+
const jo = /* @__PURE__ */ ve(Ro, [["render", Go], ["__scopeId", "data-v-07bd45d2"]]), be = Po.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
be.interceptors.request.use((e) => e);
|
|
50
|
+
be.interceptors.response.use((e) => {
|
|
51
51
|
const { headers: t, method: o } = e.config, { code: n, message: s } = e.data, { "No-Success-Message": r } = t, l = o !== "get";
|
|
52
52
|
return n === 0 ? (l && !r && dt({
|
|
53
53
|
message: s,
|
|
@@ -79,16 +79,16 @@ const Bt = () => {
|
|
|
79
79
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
80
80
|
}, Yt = Bt();
|
|
81
81
|
function zo() {
|
|
82
|
-
return
|
|
82
|
+
return be.get(`//${Yt}/api/passport/service/v1/account`);
|
|
83
83
|
}
|
|
84
84
|
function qo() {
|
|
85
|
-
return
|
|
85
|
+
return be.delete(`//${Yt}/api/passport/service/v1/login`);
|
|
86
86
|
}
|
|
87
87
|
function Ho() {
|
|
88
|
-
return
|
|
88
|
+
return be.get("//app-center.vancone.com/api/app-center/v1/app-group?pageSize=1000");
|
|
89
89
|
}
|
|
90
90
|
function Bo() {
|
|
91
|
-
return
|
|
91
|
+
return be.get("//app-center.vancone.com/api/app-center/v1/store/app?pageSize=1000");
|
|
92
92
|
}
|
|
93
93
|
const Yo = {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -129,7 +129,7 @@ function en(e, t) {
|
|
|
129
129
|
const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class: "catalog-wrapper" }, sn = { class: "service-list" }, rn = { class: "app-icon-container" }, an = ["href"], ln = ["innerHTML"], cn = {
|
|
130
130
|
key: 1,
|
|
131
131
|
class: "app-icon"
|
|
132
|
-
}, un = /* @__PURE__ */
|
|
132
|
+
}, un = /* @__PURE__ */ Ce({
|
|
133
133
|
__name: "AppCatalog",
|
|
134
134
|
props: {
|
|
135
135
|
visible: { type: Boolean }
|
|
@@ -168,11 +168,11 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
168
168
|
}, {
|
|
169
169
|
default: d(() => [
|
|
170
170
|
S("div", nn, [
|
|
171
|
-
(p(!0), V(
|
|
172
|
-
S("h1", null,
|
|
171
|
+
(p(!0), V(ae, null, pe(t, (f) => (p(), V("div", sn, [
|
|
172
|
+
S("h1", null, G(f.name), 1),
|
|
173
173
|
S("div", rn, [
|
|
174
|
-
(p(!0), V(
|
|
175
|
-
var C,
|
|
174
|
+
(p(!0), V(ae, null, pe(f.apps, (y) => {
|
|
175
|
+
var C, M;
|
|
176
176
|
return p(), V("a", {
|
|
177
177
|
style: je([{ "text-decoration": "none" }, { pointerEvents: ((C = y.homepageUrl) == null ? void 0 : C.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
@@ -184,8 +184,8 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
184
184
|
innerHTML: y.iconSvg
|
|
185
185
|
}, null, 8, ln)) : (p(), V("div", cn, " ")),
|
|
186
186
|
S("h2", {
|
|
187
|
-
style: je({ color: ((
|
|
188
|
-
},
|
|
187
|
+
style: je({ color: ((M = y.homepageUrl) == null ? void 0 : M.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, G(y.name), 5)
|
|
189
189
|
], 12, an);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
@@ -221,7 +221,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
221
221
|
]);
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
}), dn = /* @__PURE__ */
|
|
224
|
+
}), dn = /* @__PURE__ */ ve(un, [["__scopeId", "data-v-fcfb021b"]]), pn = {
|
|
225
225
|
common: {
|
|
226
226
|
header: {
|
|
227
227
|
product: "Products",
|
|
@@ -323,12 +323,12 @@ const gn = { render: hn }, _n = {
|
|
|
323
323
|
class: "icon",
|
|
324
324
|
viewBox: "0 0 1024 1024"
|
|
325
325
|
};
|
|
326
|
-
function
|
|
326
|
+
function bn(e, t) {
|
|
327
327
|
return p(), V("svg", _n, t[0] || (t[0] = [
|
|
328
328
|
S("path", { d: "M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906" }, null, -1)
|
|
329
329
|
]));
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const vn = { render: bn }, yn = {
|
|
332
332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
333
333
|
width: "200",
|
|
334
334
|
height: "200",
|
|
@@ -354,19 +354,19 @@ function kn(e, t) {
|
|
|
354
354
|
]));
|
|
355
355
|
}
|
|
356
356
|
const $n = { render: kn };
|
|
357
|
-
function
|
|
357
|
+
function $e(e, t, o) {
|
|
358
358
|
switch (t) {
|
|
359
359
|
case "POST":
|
|
360
|
-
return
|
|
360
|
+
return be.post(e, o);
|
|
361
361
|
case "PUT":
|
|
362
|
-
return
|
|
362
|
+
return be.put(e, o);
|
|
363
363
|
case "DELETE":
|
|
364
|
-
return
|
|
364
|
+
return be.delete(e + "/" + o);
|
|
365
365
|
default:
|
|
366
|
-
return
|
|
366
|
+
return be.get(e, { params: o });
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }, Pn = { class: "icon-wrapper" }, In = { class: "user-wrapper" }, Vn = { style: { "font-size": "11px", "font-weight": "bold" } }, An = { class: "user-popover-header" }, Nn = { style: { "font-size": "15px", "font-weight": "bold" } }, Mn = ["onClick"], Un = /* @__PURE__ */
|
|
369
|
+
const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }, Pn = { class: "icon-wrapper" }, In = { class: "user-wrapper" }, Vn = { style: { "font-size": "11px", "font-weight": "bold" } }, An = { class: "user-popover-header" }, Nn = { style: { "font-size": "15px", "font-weight": "bold" } }, Mn = ["onClick"], Un = /* @__PURE__ */ Ce({
|
|
370
370
|
__name: "Header",
|
|
371
371
|
props: {
|
|
372
372
|
title: {},
|
|
@@ -379,7 +379,7 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
379
379
|
id: "",
|
|
380
380
|
name: ""
|
|
381
381
|
}
|
|
382
|
-
), y = A(""), C = A(at.global.locale),
|
|
382
|
+
), y = A(""), C = A(at.global.locale), M = de([
|
|
383
383
|
{
|
|
384
384
|
id: "en",
|
|
385
385
|
name: "English"
|
|
@@ -390,50 +390,50 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
390
390
|
}
|
|
391
391
|
]);
|
|
392
392
|
Ft(() => {
|
|
393
|
-
var
|
|
394
|
-
y.value = decodeURIComponent(
|
|
393
|
+
var z, U, ee;
|
|
394
|
+
y.value = decodeURIComponent(R("passport_username").replace(/\+/g, " ")), y.value === "" && zo().then(({ data: h }) => {
|
|
395
395
|
var g;
|
|
396
396
|
h.code == 0 && (y.value = (g = h.data.name) != null ? g : h.data.displayId);
|
|
397
|
-
}), (
|
|
397
|
+
}), (z = a.headerProjectConfig) != null && z.api ? $e((U = a.headerProjectConfig) == null ? void 0 : U.api, "GET", {}).then(({ data: h }) => {
|
|
398
398
|
i.value = h.data;
|
|
399
|
-
}) : (
|
|
399
|
+
}) : (ee = a.headerProjectConfig) != null && ee.items && (i.value = a.headerProjectConfig.items);
|
|
400
400
|
});
|
|
401
|
-
function
|
|
402
|
-
for (var
|
|
403
|
-
for (var g =
|
|
404
|
-
if (g.indexOf(
|
|
405
|
-
return g.substring(
|
|
401
|
+
function R(z) {
|
|
402
|
+
for (var U = z + "=", ee = document.cookie.split(";"), h = 0; h < ee.length; h++) {
|
|
403
|
+
for (var g = ee[h]; g.charAt(0) == " "; ) g = g.substring(1);
|
|
404
|
+
if (g.indexOf(U) != -1)
|
|
405
|
+
return g.substring(U.length, g.length);
|
|
406
406
|
}
|
|
407
407
|
return "";
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function B() {
|
|
410
410
|
qo().then(() => {
|
|
411
|
-
const
|
|
412
|
-
window.location.href = `//${Bt()}/?from=${
|
|
411
|
+
const z = escape(window.location.href);
|
|
412
|
+
window.location.href = `//${Bt()}/?from=${z}#login`;
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
at.global.locale.value =
|
|
415
|
+
function j(z) {
|
|
416
|
+
at.global.locale.value = z, C.value = z, localStorage.setItem("locale", z);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Z() {
|
|
419
419
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Y() {
|
|
422
422
|
window.open(a.helpDocUrl, "_blank");
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
if (
|
|
424
|
+
function le(z) {
|
|
425
|
+
if (z === "allProjects")
|
|
426
426
|
alert("show all projects");
|
|
427
427
|
else
|
|
428
|
-
for (let
|
|
429
|
-
if (console.log("project.id",
|
|
430
|
-
Object.assign(f,
|
|
428
|
+
for (let U of i.value)
|
|
429
|
+
if (console.log("project.id", U.id, "command", z), U.id === z) {
|
|
430
|
+
Object.assign(f, U);
|
|
431
431
|
break;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
return (
|
|
435
|
-
const
|
|
436
|
-
return p(), V(
|
|
434
|
+
return (z, U) => {
|
|
435
|
+
const ee = E("el-icon"), h = E("el-dropdown-item"), g = E("el-dropdown-menu"), v = E("el-dropdown"), I = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"), k = E("el-menu-item"), O = E("el-menu"), L = E("el-drawer");
|
|
436
|
+
return p(), V(ae, null, [
|
|
437
437
|
S("div", xn, [
|
|
438
438
|
S("div", En, [
|
|
439
439
|
S("div", {
|
|
@@ -444,20 +444,20 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
444
444
|
}, [
|
|
445
445
|
m(x(gn))
|
|
446
446
|
], 512),
|
|
447
|
-
S("h1", null,
|
|
448
|
-
a.headerProjectConfig ? (p(), P(
|
|
447
|
+
S("h1", null, G(z.title), 1),
|
|
448
|
+
a.headerProjectConfig ? (p(), P(v, {
|
|
449
449
|
key: 0,
|
|
450
450
|
placement: "bottom-start",
|
|
451
|
-
onCommand:
|
|
451
|
+
onCommand: le
|
|
452
452
|
}, {
|
|
453
453
|
dropdown: d(() => [
|
|
454
454
|
m(g, { style: { width: "300px" } }, {
|
|
455
455
|
default: d(() => [
|
|
456
|
-
(p(!0), V(
|
|
457
|
-
command:
|
|
456
|
+
(p(!0), V(ae, null, pe(i.value, (T) => (p(), P(h, {
|
|
457
|
+
command: T.id
|
|
458
458
|
}, {
|
|
459
459
|
default: d(() => [
|
|
460
|
-
|
|
460
|
+
K(G(T.name), 1)
|
|
461
461
|
]),
|
|
462
462
|
_: 2
|
|
463
463
|
}, 1032, ["command"]))), 256)),
|
|
@@ -465,8 +465,8 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
465
465
|
divided: "",
|
|
466
466
|
command: "allProjects"
|
|
467
467
|
}, {
|
|
468
|
-
default: d(() =>
|
|
469
|
-
|
|
468
|
+
default: d(() => U[2] || (U[2] = [
|
|
469
|
+
K("全部项目")
|
|
470
470
|
])),
|
|
471
471
|
_: 1
|
|
472
472
|
})
|
|
@@ -476,8 +476,8 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
476
476
|
]),
|
|
477
477
|
default: d(() => [
|
|
478
478
|
S("span", null, [
|
|
479
|
-
|
|
480
|
-
m(
|
|
479
|
+
K(G(f.name) + " ", 1),
|
|
480
|
+
m(ee, { class: "el-icon--right" }, {
|
|
481
481
|
default: d(() => [
|
|
482
482
|
m(x(qt))
|
|
483
483
|
]),
|
|
@@ -486,7 +486,7 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
486
486
|
])
|
|
487
487
|
]),
|
|
488
488
|
_: 1
|
|
489
|
-
})) :
|
|
489
|
+
})) : q("", !0)
|
|
490
490
|
]),
|
|
491
491
|
m(I, {
|
|
492
492
|
class: "app-popover",
|
|
@@ -522,10 +522,10 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
522
522
|
a.helpDocUrl !== void 0 ? (p(), V("div", {
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "icon-wrapper",
|
|
525
|
-
onClick:
|
|
525
|
+
onClick: Y
|
|
526
526
|
}, [
|
|
527
|
-
m(x(
|
|
528
|
-
])) :
|
|
527
|
+
m(x(vn))
|
|
528
|
+
])) : q("", !0)
|
|
529
529
|
]),
|
|
530
530
|
_: 1
|
|
531
531
|
}, 8, ["content"]),
|
|
@@ -537,7 +537,7 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
537
537
|
default: d(() => [
|
|
538
538
|
S("div", {
|
|
539
539
|
class: "icon-wrapper",
|
|
540
|
-
onClick:
|
|
540
|
+
onClick: U[0] || (U[0] = (T) => l.value = !0)
|
|
541
541
|
}, [
|
|
542
542
|
m(x(Sn))
|
|
543
543
|
])
|
|
@@ -552,7 +552,7 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
552
552
|
ref: o
|
|
553
553
|
}, {
|
|
554
554
|
default: d(() => [
|
|
555
|
-
S("span", Vn,
|
|
555
|
+
S("span", Vn, G(y.value.substring(0, 2)), 1)
|
|
556
556
|
]),
|
|
557
557
|
_: 1
|
|
558
558
|
}, 512),
|
|
@@ -573,17 +573,17 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
573
573
|
src: ""
|
|
574
574
|
}, {
|
|
575
575
|
default: d(() => [
|
|
576
|
-
S("span", Nn,
|
|
576
|
+
S("span", Nn, G(y.value.substring(0, 2)), 1)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
}),
|
|
580
|
-
S("span", null,
|
|
580
|
+
S("span", null, G(y.value), 1)
|
|
581
581
|
]),
|
|
582
582
|
m(O, { class: "user-menu" }, {
|
|
583
583
|
default: d(() => [
|
|
584
|
-
m(k, { onClick:
|
|
584
|
+
m(k, { onClick: Z }, {
|
|
585
585
|
default: d(() => [
|
|
586
|
-
|
|
586
|
+
K(G(x(t)("common.header.userCenter")), 1)
|
|
587
587
|
]),
|
|
588
588
|
_: 1
|
|
589
589
|
}),
|
|
@@ -593,8 +593,8 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
593
593
|
style: { display: "flext", "justify-content": "space-between" }
|
|
594
594
|
}, {
|
|
595
595
|
default: d(() => [
|
|
596
|
-
S("span", null,
|
|
597
|
-
m(
|
|
596
|
+
S("span", null, G(x(t)("common.header.switchLanguage")), 1),
|
|
597
|
+
m(ee, { style: { left: "15px" } }, {
|
|
598
598
|
default: d(() => [
|
|
599
599
|
m(x(Io))
|
|
600
600
|
]),
|
|
@@ -615,12 +615,12 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
615
615
|
"popper-style": "height: 80px; left: -165px"
|
|
616
616
|
}, {
|
|
617
617
|
default: d(() => [
|
|
618
|
-
(p(!0), V(
|
|
618
|
+
(p(!0), V(ae, null, pe(M, (T) => (p(), V("div", {
|
|
619
619
|
class: "select-list",
|
|
620
|
-
onClick: (
|
|
620
|
+
onClick: (D) => j(T.id)
|
|
621
621
|
}, [
|
|
622
|
-
S("span", null,
|
|
623
|
-
|
|
622
|
+
S("span", null, G(T.name), 1),
|
|
623
|
+
T.id === C.value ? (p(), P(ee, {
|
|
624
624
|
key: 0,
|
|
625
625
|
style: { color: "#8ba74f" }
|
|
626
626
|
}, {
|
|
@@ -628,14 +628,14 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
628
628
|
m(x(Vo))
|
|
629
629
|
]),
|
|
630
630
|
_: 1
|
|
631
|
-
})) :
|
|
631
|
+
})) : q("", !0)
|
|
632
632
|
], 8, Mn))), 256))
|
|
633
633
|
]),
|
|
634
634
|
_: 1
|
|
635
635
|
}, 8, ["virtual-ref"]),
|
|
636
|
-
m(k, { onClick:
|
|
636
|
+
m(k, { onClick: B }, {
|
|
637
637
|
default: d(() => [
|
|
638
|
-
|
|
638
|
+
K(G(x(t)("common.header.signOut")), 1)
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
})
|
|
@@ -648,19 +648,19 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
648
648
|
])
|
|
649
649
|
])
|
|
650
650
|
]),
|
|
651
|
-
m(
|
|
651
|
+
m(L, {
|
|
652
652
|
modelValue: l.value,
|
|
653
|
-
"onUpdate:modelValue":
|
|
653
|
+
"onUpdate:modelValue": U[1] || (U[1] = (T) => l.value = T),
|
|
654
654
|
direction: "rtl",
|
|
655
655
|
title: "Message Center"
|
|
656
656
|
}, null, 8, ["modelValue"])
|
|
657
657
|
], 64);
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
}), Wt = /* @__PURE__ */
|
|
660
|
+
}), Wt = /* @__PURE__ */ ve(Un, [["__scopeId", "data-v-b04b3245"]]), Tn = {
|
|
661
661
|
class: "menu-icon-wrapper",
|
|
662
662
|
style: { "margin-left": "3px" }
|
|
663
|
-
}, Dn = ["innerHTML"], Fn = { class: "menu-icon-wrapper" }, Rn = ["innerHTML"], Ln = /* @__PURE__ */
|
|
663
|
+
}, Dn = ["innerHTML"], Fn = { class: "menu-icon-wrapper" }, Rn = ["innerHTML"], Ln = /* @__PURE__ */ Ce({
|
|
664
664
|
__name: "SideMenuItem",
|
|
665
665
|
props: {
|
|
666
666
|
menu: {}
|
|
@@ -680,18 +680,18 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
680
680
|
(a = t.menu.meta) != null && a.icon ? (p(), P(rt((i = o.menu.meta) == null ? void 0 : i.icon), {
|
|
681
681
|
key: 0,
|
|
682
682
|
class: "menu-icon"
|
|
683
|
-
})) :
|
|
683
|
+
})) : q("", !0),
|
|
684
684
|
(f = t.menu.meta) != null && f.svgXml ? (p(), V("div", {
|
|
685
685
|
key: 1,
|
|
686
686
|
class: "svg-xml-icon",
|
|
687
687
|
innerHTML: t.menu.meta.svgXml
|
|
688
|
-
}, null, 8, Dn)) :
|
|
688
|
+
}, null, 8, Dn)) : q("", !0)
|
|
689
689
|
]),
|
|
690
|
-
S("span", null,
|
|
690
|
+
S("span", null, G(o.$t((C = (y = o.menu.meta) == null ? void 0 : y.title) != null ? C : "")), 1)
|
|
691
691
|
];
|
|
692
692
|
}),
|
|
693
693
|
default: d(() => [
|
|
694
|
-
(p(!0), V(
|
|
694
|
+
(p(!0), V(ae, null, pe(o.menu.children, (a) => (p(), P(s, {
|
|
695
695
|
key: a.path,
|
|
696
696
|
route: a,
|
|
697
697
|
menu: a
|
|
@@ -706,7 +706,7 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
706
706
|
title: d(() => {
|
|
707
707
|
var a, i;
|
|
708
708
|
return [
|
|
709
|
-
S("span", null,
|
|
709
|
+
S("span", null, G(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
|
|
710
710
|
];
|
|
711
711
|
}),
|
|
712
712
|
default: d(() => {
|
|
@@ -716,12 +716,12 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
716
716
|
(a = t.menu.meta) != null && a.icon ? (p(), P(rt((i = o.$props.menu.meta) == null ? void 0 : i.icon), {
|
|
717
717
|
key: 0,
|
|
718
718
|
class: "menu-icon"
|
|
719
|
-
})) :
|
|
719
|
+
})) : q("", !0),
|
|
720
720
|
((f = t.menu.meta) == null ? void 0 : f.svgXml) !== void 0 ? (p(), V("div", {
|
|
721
721
|
key: 1,
|
|
722
722
|
class: "svg-xml-icon",
|
|
723
723
|
innerHTML: t.menu.meta.svgXml
|
|
724
|
-
}, null, 8, Rn)) :
|
|
724
|
+
}, null, 8, Rn)) : q("", !0)
|
|
725
725
|
])
|
|
726
726
|
];
|
|
727
727
|
}),
|
|
@@ -729,7 +729,7 @@ const xn = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
729
729
|
}, 8, ["index"]));
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
|
-
}), Gn = /* @__PURE__ */
|
|
732
|
+
}), Gn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-032308f8"]]), _e = A({}), jn = {}, Pt = A([]);
|
|
733
733
|
var Jt = !1;
|
|
734
734
|
function et(e, t, o) {
|
|
735
735
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
@@ -811,7 +811,7 @@ class Jn {
|
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
813
|
setRealTarget(t) {
|
|
814
|
-
return
|
|
814
|
+
return Ee(this, null, function* () {
|
|
815
815
|
this.target = t;
|
|
816
816
|
for (const o of this.onQueue)
|
|
817
817
|
this.target.on[o.method](...o.args);
|
|
@@ -846,15 +846,15 @@ const Je = (e) => He = e, Xt = process.env.NODE_ENV !== "production" ? Symbol("p
|
|
|
846
846
|
function De(e) {
|
|
847
847
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
848
848
|
}
|
|
849
|
-
var
|
|
849
|
+
var xe;
|
|
850
850
|
(function(e) {
|
|
851
851
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
852
|
-
})(
|
|
852
|
+
})(xe || (xe = {}));
|
|
853
853
|
const Ue = typeof window != "undefined", It = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
854
854
|
function Kn(e, { autoBom: t = !1 } = {}) {
|
|
855
855
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function bt(e, t, o) {
|
|
858
858
|
const n = new XMLHttpRequest();
|
|
859
859
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
860
860
|
to(n.response, t, o);
|
|
@@ -892,7 +892,7 @@ const ot = typeof navigator == "object" ? navigator : { userAgent: "" }, eo = /M
|
|
|
892
892
|
};
|
|
893
893
|
function Qn(e, t = "download", o) {
|
|
894
894
|
const n = document.createElement("a");
|
|
895
|
-
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Zt(n.href) ?
|
|
895
|
+
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Zt(n.href) ? bt(e, t, o) : (n.target = "_blank", tt(n)) : tt(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
896
896
|
URL.revokeObjectURL(n.href);
|
|
897
897
|
}, 4e4), setTimeout(function() {
|
|
898
898
|
tt(n);
|
|
@@ -901,7 +901,7 @@ function Qn(e, t = "download", o) {
|
|
|
901
901
|
function Xn(e, t = "download", o) {
|
|
902
902
|
if (typeof e == "string")
|
|
903
903
|
if (Zt(e))
|
|
904
|
-
|
|
904
|
+
bt(e, t, o);
|
|
905
905
|
else {
|
|
906
906
|
const n = document.createElement("a");
|
|
907
907
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
@@ -913,7 +913,7 @@ function Xn(e, t = "download", o) {
|
|
|
913
913
|
}
|
|
914
914
|
function Zn(e, t, o, n) {
|
|
915
915
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
916
|
-
return
|
|
916
|
+
return bt(e, t, o);
|
|
917
917
|
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(It.HTMLElement)) || "safari" in It, l = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
918
918
|
if ((l || s && r || eo) && typeof FileReader != "undefined") {
|
|
919
919
|
const a = new FileReader();
|
|
@@ -930,81 +930,81 @@ function Zn(e, t, o, n) {
|
|
|
930
930
|
}, 4e4);
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function re(e, t) {
|
|
934
934
|
const o = "🍍 " + e;
|
|
935
935
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function vt(e) {
|
|
938
938
|
return "_a" in e && "install" in e;
|
|
939
939
|
}
|
|
940
940
|
function oo() {
|
|
941
941
|
if (!("clipboard" in navigator))
|
|
942
|
-
return
|
|
942
|
+
return re("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
943
943
|
}
|
|
944
944
|
function no(e) {
|
|
945
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
945
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (re('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
946
946
|
}
|
|
947
947
|
function es(e) {
|
|
948
|
-
return
|
|
948
|
+
return Ee(this, null, function* () {
|
|
949
949
|
if (!oo())
|
|
950
950
|
try {
|
|
951
|
-
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
951
|
+
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), re("Global state copied to clipboard.");
|
|
952
952
|
} catch (t) {
|
|
953
953
|
if (no(t))
|
|
954
954
|
return;
|
|
955
|
-
|
|
955
|
+
re("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
956
956
|
}
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
959
|
function ts(e) {
|
|
960
|
-
return
|
|
960
|
+
return Ee(this, null, function* () {
|
|
961
961
|
if (!oo())
|
|
962
962
|
try {
|
|
963
|
-
so(e, JSON.parse(yield navigator.clipboard.readText())),
|
|
963
|
+
so(e, JSON.parse(yield navigator.clipboard.readText())), re("Global state pasted from clipboard.");
|
|
964
964
|
} catch (t) {
|
|
965
965
|
if (no(t))
|
|
966
966
|
return;
|
|
967
|
-
|
|
967
|
+
re("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
968
968
|
}
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
971
|
function os(e) {
|
|
972
|
-
return
|
|
972
|
+
return Ee(this, null, function* () {
|
|
973
973
|
try {
|
|
974
974
|
to(new Blob([JSON.stringify(e.state.value)], {
|
|
975
975
|
type: "text/plain;charset=utf-8"
|
|
976
976
|
}), "pinia-state.json");
|
|
977
977
|
} catch (t) {
|
|
978
|
-
|
|
978
|
+
re("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
979
979
|
}
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
|
-
let
|
|
982
|
+
let Oe;
|
|
983
983
|
function ns() {
|
|
984
|
-
|
|
984
|
+
Oe || (Oe = document.createElement("input"), Oe.type = "file", Oe.accept = ".json");
|
|
985
985
|
function e() {
|
|
986
986
|
return new Promise((t, o) => {
|
|
987
|
-
|
|
988
|
-
const n =
|
|
987
|
+
Oe.onchange = () => Ee(this, null, function* () {
|
|
988
|
+
const n = Oe.files;
|
|
989
989
|
if (!n)
|
|
990
990
|
return t(null);
|
|
991
991
|
const s = n.item(0);
|
|
992
992
|
return t(s ? { text: yield s.text(), file: s } : null);
|
|
993
|
-
}),
|
|
993
|
+
}), Oe.oncancel = () => t(null), Oe.onerror = o, Oe.click();
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
return e;
|
|
997
997
|
}
|
|
998
998
|
function ss(e) {
|
|
999
|
-
return
|
|
999
|
+
return Ee(this, null, function* () {
|
|
1000
1000
|
try {
|
|
1001
1001
|
const o = yield ns()();
|
|
1002
1002
|
if (!o)
|
|
1003
1003
|
return;
|
|
1004
1004
|
const { text: n, file: s } = o;
|
|
1005
|
-
so(e, JSON.parse(n)),
|
|
1005
|
+
so(e, JSON.parse(n)), re(`Global state imported from "${s.name}".`);
|
|
1006
1006
|
} catch (t) {
|
|
1007
|
-
|
|
1007
|
+
re("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
@@ -1014,7 +1014,7 @@ function so(e, t) {
|
|
|
1014
1014
|
n ? Object.assign(n, t[o]) : e.state.value[o] = t[o];
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Se(e) {
|
|
1018
1018
|
return {
|
|
1019
1019
|
_custom: {
|
|
1020
1020
|
display: e
|
|
@@ -1023,7 +1023,7 @@ function we(e) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
const ro = "🍍 Pinia (root)", nt = "_root";
|
|
1025
1025
|
function rs(e) {
|
|
1026
|
-
return
|
|
1026
|
+
return vt(e) ? {
|
|
1027
1027
|
id: nt,
|
|
1028
1028
|
label: ro
|
|
1029
1029
|
} : {
|
|
@@ -1032,7 +1032,7 @@ function rs(e) {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
1034
|
function as(e) {
|
|
1035
|
-
if (
|
|
1035
|
+
if (vt(e)) {
|
|
1036
1036
|
const o = Array.from(e._s.keys()), n = e._s;
|
|
1037
1037
|
return {
|
|
1038
1038
|
state: o.map((r) => ({
|
|
@@ -1074,19 +1074,19 @@ function ls(e) {
|
|
|
1074
1074
|
operations: [],
|
|
1075
1075
|
newValue: {}
|
|
1076
1076
|
}) : {
|
|
1077
|
-
operation:
|
|
1078
|
-
key:
|
|
1077
|
+
operation: Se(e.type),
|
|
1078
|
+
key: Se(e.key),
|
|
1079
1079
|
oldValue: e.oldValue,
|
|
1080
1080
|
newValue: e.newValue
|
|
1081
1081
|
} : {};
|
|
1082
1082
|
}
|
|
1083
1083
|
function is(e) {
|
|
1084
1084
|
switch (e) {
|
|
1085
|
-
case
|
|
1085
|
+
case xe.direct:
|
|
1086
1086
|
return "mutation";
|
|
1087
|
-
case
|
|
1087
|
+
case xe.patchFunction:
|
|
1088
1088
|
return "$patch";
|
|
1089
|
-
case
|
|
1089
|
+
case xe.patchObject:
|
|
1090
1090
|
return "$patch";
|
|
1091
1091
|
default:
|
|
1092
1092
|
return "unknown";
|
|
@@ -1104,7 +1104,7 @@ function us(e, t) {
|
|
|
1104
1104
|
componentStateTypes: st,
|
|
1105
1105
|
app: e
|
|
1106
1106
|
}, (o) => {
|
|
1107
|
-
typeof o.now != "function" &&
|
|
1107
|
+
typeof o.now != "function" && re("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.addTimelineLayer({
|
|
1108
1108
|
id: Ne,
|
|
1109
1109
|
label: "Pinia 🍍",
|
|
1110
1110
|
color: 15064968
|
|
@@ -1123,7 +1123,7 @@ function us(e, t) {
|
|
|
1123
1123
|
},
|
|
1124
1124
|
{
|
|
1125
1125
|
icon: "content_paste",
|
|
1126
|
-
action: () =>
|
|
1126
|
+
action: () => Ee(this, null, function* () {
|
|
1127
1127
|
yield ts(t), o.sendInspectorTree(ue), o.sendInspectorState(ue);
|
|
1128
1128
|
}),
|
|
1129
1129
|
tooltip: "Replace the state with the content of your clipboard"
|
|
@@ -1137,7 +1137,7 @@ function us(e, t) {
|
|
|
1137
1137
|
},
|
|
1138
1138
|
{
|
|
1139
1139
|
icon: "folder_open",
|
|
1140
|
-
action: () =>
|
|
1140
|
+
action: () => Ee(this, null, function* () {
|
|
1141
1141
|
yield ss(t), o.sendInspectorTree(ue), o.sendInspectorState(ue);
|
|
1142
1142
|
}),
|
|
1143
1143
|
tooltip: "Import the state from a JSON file"
|
|
@@ -1149,7 +1149,7 @@ function us(e, t) {
|
|
|
1149
1149
|
tooltip: 'Reset the state (with "$reset")',
|
|
1150
1150
|
action: (n) => {
|
|
1151
1151
|
const s = t._s.get(n);
|
|
1152
|
-
s ? typeof s.$reset != "function" ?
|
|
1152
|
+
s ? typeof s.$reset != "function" ? re(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), re(`Store "${n}" reset.`)) : re(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
]
|
|
@@ -1208,18 +1208,18 @@ function us(e, t) {
|
|
|
1208
1208
|
if (n.app === e && n.inspectorId === ue) {
|
|
1209
1209
|
const r = n.nodeId === nt ? t : t._s.get(n.nodeId);
|
|
1210
1210
|
if (!r)
|
|
1211
|
-
return
|
|
1211
|
+
return re(`store "${n.nodeId}" not found`, "error");
|
|
1212
1212
|
const { path: l } = n;
|
|
1213
|
-
|
|
1213
|
+
vt(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Le = !1, n.set(r, l, n.state.value), Le = !0;
|
|
1214
1214
|
}
|
|
1215
1215
|
}), o.on.editComponentState((n) => {
|
|
1216
1216
|
if (n.type.startsWith("🍍")) {
|
|
1217
1217
|
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1218
1218
|
if (!r)
|
|
1219
|
-
return
|
|
1219
|
+
return re(`store "${s}" not found`, "error");
|
|
1220
1220
|
const { path: l } = n;
|
|
1221
1221
|
if (l[0] !== "state")
|
|
1222
|
-
return
|
|
1222
|
+
return re(`Invalid path for store "${s}":
|
|
1223
1223
|
${l}
|
|
1224
1224
|
Only state can be modified.`);
|
|
1225
1225
|
l[0] = "$state", Le = !1, n.set(r, l, n.state.value), Le = !0;
|
|
@@ -1259,22 +1259,22 @@ function ds(e, t) {
|
|
|
1259
1259
|
title: "🛫 " + i,
|
|
1260
1260
|
subtitle: "start",
|
|
1261
1261
|
data: {
|
|
1262
|
-
store:
|
|
1263
|
-
action:
|
|
1262
|
+
store: Se(t.$id),
|
|
1263
|
+
action: Se(i),
|
|
1264
1264
|
args: f
|
|
1265
1265
|
},
|
|
1266
1266
|
groupId: y
|
|
1267
1267
|
}
|
|
1268
1268
|
}), l((C) => {
|
|
1269
|
-
|
|
1269
|
+
Ie = void 0, o.addTimelineEvent({
|
|
1270
1270
|
layerId: Ne,
|
|
1271
1271
|
event: {
|
|
1272
1272
|
time: n(),
|
|
1273
1273
|
title: "🛬 " + i,
|
|
1274
1274
|
subtitle: "end",
|
|
1275
1275
|
data: {
|
|
1276
|
-
store:
|
|
1277
|
-
action:
|
|
1276
|
+
store: Se(t.$id),
|
|
1277
|
+
action: Se(i),
|
|
1278
1278
|
args: f,
|
|
1279
1279
|
result: C
|
|
1280
1280
|
},
|
|
@@ -1282,7 +1282,7 @@ function ds(e, t) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
});
|
|
1284
1284
|
}), a((C) => {
|
|
1285
|
-
|
|
1285
|
+
Ie = void 0, o.addTimelineEvent({
|
|
1286
1286
|
layerId: Ne,
|
|
1287
1287
|
event: {
|
|
1288
1288
|
time: n(),
|
|
@@ -1290,8 +1290,8 @@ function ds(e, t) {
|
|
|
1290
1290
|
title: "💥 " + i,
|
|
1291
1291
|
subtitle: "end",
|
|
1292
1292
|
data: {
|
|
1293
|
-
store:
|
|
1294
|
-
action:
|
|
1293
|
+
store: Se(t.$id),
|
|
1294
|
+
action: Se(i),
|
|
1295
1295
|
args: f,
|
|
1296
1296
|
error: C
|
|
1297
1297
|
},
|
|
@@ -1300,7 +1300,7 @@ function ds(e, t) {
|
|
|
1300
1300
|
});
|
|
1301
1301
|
});
|
|
1302
1302
|
}, !0), t._customProperties.forEach((l) => {
|
|
1303
|
-
|
|
1303
|
+
Pe(() => x(t[l]), (a, i) => {
|
|
1304
1304
|
o.notifyComponentUpdate(), o.sendInspectorState(ue), Le && o.addTimelineEvent({
|
|
1305
1305
|
layerId: Ne,
|
|
1306
1306
|
event: {
|
|
@@ -1311,7 +1311,7 @@ function ds(e, t) {
|
|
|
1311
1311
|
newValue: a,
|
|
1312
1312
|
oldValue: i
|
|
1313
1313
|
},
|
|
1314
|
-
groupId:
|
|
1314
|
+
groupId: Ie
|
|
1315
1315
|
}
|
|
1316
1316
|
});
|
|
1317
1317
|
}, { deep: !0 });
|
|
@@ -1321,10 +1321,10 @@ function ds(e, t) {
|
|
|
1321
1321
|
const f = {
|
|
1322
1322
|
time: n(),
|
|
1323
1323
|
title: is(a),
|
|
1324
|
-
data: cs({ store:
|
|
1325
|
-
groupId:
|
|
1324
|
+
data: cs({ store: Se(t.$id) }, ls(l)),
|
|
1325
|
+
groupId: Ie
|
|
1326
1326
|
};
|
|
1327
|
-
a ===
|
|
1327
|
+
a === xe.patchFunction ? f.subtitle = "⤵️" : a === xe.patchObject ? f.subtitle = "🧩" : l && !Array.isArray(l) && (f.subtitle = l.type), l && (f.data["rawEvent(s)"] = {
|
|
1328
1328
|
_custom: {
|
|
1329
1329
|
display: "DebuggerEvent",
|
|
1330
1330
|
type: "object",
|
|
@@ -1345,34 +1345,34 @@ function ds(e, t) {
|
|
|
1345
1345
|
title: "🔥 " + t.$id,
|
|
1346
1346
|
subtitle: "HMR update",
|
|
1347
1347
|
data: {
|
|
1348
|
-
store:
|
|
1349
|
-
info:
|
|
1348
|
+
store: Se(t.$id),
|
|
1349
|
+
info: Se("HMR update")
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
}), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue);
|
|
1353
1353
|
});
|
|
1354
1354
|
const { $dispose: r } = t;
|
|
1355
1355
|
t.$dispose = () => {
|
|
1356
|
-
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges &&
|
|
1357
|
-
}, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges &&
|
|
1356
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && re(`Disposed "${t.$id}" store 🗑`);
|
|
1357
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && re(`"${t.$id}" store installed 🆕`);
|
|
1358
1358
|
});
|
|
1359
1359
|
}
|
|
1360
|
-
let ao = 0,
|
|
1360
|
+
let ao = 0, Ie;
|
|
1361
1361
|
function Vt(e, t, o) {
|
|
1362
1362
|
const n = t.reduce((s, r) => (s[r] = Ye(e)[r], s), {});
|
|
1363
1363
|
for (const s in n)
|
|
1364
1364
|
e[s] = function() {
|
|
1365
1365
|
const r = ao, l = o ? new Proxy(e, {
|
|
1366
1366
|
get(...i) {
|
|
1367
|
-
return
|
|
1367
|
+
return Ie = r, Reflect.get(...i);
|
|
1368
1368
|
},
|
|
1369
1369
|
set(...i) {
|
|
1370
|
-
return
|
|
1370
|
+
return Ie = r, Reflect.set(...i);
|
|
1371
1371
|
}
|
|
1372
1372
|
}) : e;
|
|
1373
|
-
|
|
1373
|
+
Ie = r;
|
|
1374
1374
|
const a = n[s].apply(l, arguments);
|
|
1375
|
-
return
|
|
1375
|
+
return Ie = void 0, a;
|
|
1376
1376
|
};
|
|
1377
1377
|
}
|
|
1378
1378
|
function ps({ app: e, store: t, options: o }) {
|
|
@@ -1467,10 +1467,10 @@ function Ut(e, t, o, n) {
|
|
|
1467
1467
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1468
1468
|
xt(A(s ? s() : {}).value)
|
|
1469
1469
|
) : xt(o.state.value[e]);
|
|
1470
|
-
return ge(y, r, Object.keys(l || {}).reduce((C,
|
|
1470
|
+
return ge(y, r, Object.keys(l || {}).reduce((C, M) => (process.env.NODE_ENV !== "production" && M in y && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${M}" in store "${e}".`), C[M] = Me(Te(() => {
|
|
1471
1471
|
Je(o);
|
|
1472
|
-
const
|
|
1473
|
-
return l[
|
|
1472
|
+
const R = o._s.get(e);
|
|
1473
|
+
return l[M].call(R, R);
|
|
1474
1474
|
})), C), {}));
|
|
1475
1475
|
}
|
|
1476
1476
|
return i = gt(e, f, t, o, n, !0), i;
|
|
@@ -1482,31 +1482,31 @@ function gt(e, t, o = {}, n, s, r) {
|
|
|
1482
1482
|
throw new Error("Pinia destroyed");
|
|
1483
1483
|
const i = { deep: !0 };
|
|
1484
1484
|
process.env.NODE_ENV !== "production" && !Jt && (i.onTrigger = (u) => {
|
|
1485
|
-
f ?
|
|
1485
|
+
f ? R = u : f == !1 && !g._hotUpdating && (Array.isArray(R) ? R.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1486
1486
|
});
|
|
1487
|
-
let f, y, C = [],
|
|
1488
|
-
const
|
|
1489
|
-
!r && !
|
|
1490
|
-
const
|
|
1491
|
-
let
|
|
1492
|
-
function
|
|
1487
|
+
let f, y, C = [], M = [], R;
|
|
1488
|
+
const B = n.state.value[e];
|
|
1489
|
+
!r && !B && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1490
|
+
const j = A({});
|
|
1491
|
+
let Z;
|
|
1492
|
+
function Y(u) {
|
|
1493
1493
|
let c;
|
|
1494
|
-
f = y = !1, process.env.NODE_ENV !== "production" && (
|
|
1495
|
-
type:
|
|
1494
|
+
f = y = !1, process.env.NODE_ENV !== "production" && (R = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1495
|
+
type: xe.patchFunction,
|
|
1496
1496
|
storeId: e,
|
|
1497
|
-
events:
|
|
1497
|
+
events: R
|
|
1498
1498
|
}) : (ht(n.state.value[e], u), c = {
|
|
1499
|
-
type:
|
|
1499
|
+
type: xe.patchObject,
|
|
1500
1500
|
payload: u,
|
|
1501
1501
|
storeId: e,
|
|
1502
|
-
events:
|
|
1502
|
+
events: R
|
|
1503
1503
|
});
|
|
1504
|
-
const k =
|
|
1504
|
+
const k = Z = Symbol();
|
|
1505
1505
|
Be().then(() => {
|
|
1506
|
-
|
|
1506
|
+
Z === k && (f = !0);
|
|
1507
1507
|
}), y = !0, Re(C, c, n.state.value[e]);
|
|
1508
1508
|
}
|
|
1509
|
-
const
|
|
1509
|
+
const le = r ? function() {
|
|
1510
1510
|
const { state: c } = o, k = c ? c() : {};
|
|
1511
1511
|
this.$patch((O) => {
|
|
1512
1512
|
ge(O, k);
|
|
@@ -1517,63 +1517,63 @@ function gt(e, t, o = {}, n, s, r) {
|
|
|
1517
1517
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1518
1518
|
} : io
|
|
1519
1519
|
);
|
|
1520
|
-
function
|
|
1521
|
-
l.stop(), C = [],
|
|
1520
|
+
function z() {
|
|
1521
|
+
l.stop(), C = [], M = [], n._s.delete(e);
|
|
1522
1522
|
}
|
|
1523
|
-
const
|
|
1523
|
+
const U = (u, c = "") => {
|
|
1524
1524
|
if (Nt in u)
|
|
1525
1525
|
return u[ft] = c, u;
|
|
1526
1526
|
const k = function() {
|
|
1527
1527
|
Je(n);
|
|
1528
|
-
const O = Array.from(arguments),
|
|
1529
|
-
function
|
|
1530
|
-
|
|
1528
|
+
const O = Array.from(arguments), L = [], T = [];
|
|
1529
|
+
function D(W) {
|
|
1530
|
+
L.push(W);
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
|
|
1532
|
+
function F(W) {
|
|
1533
|
+
T.push(W);
|
|
1534
1534
|
}
|
|
1535
|
-
Re(
|
|
1535
|
+
Re(M, {
|
|
1536
1536
|
args: O,
|
|
1537
1537
|
name: k[ft],
|
|
1538
1538
|
store: g,
|
|
1539
|
-
after:
|
|
1540
|
-
onError:
|
|
1539
|
+
after: D,
|
|
1540
|
+
onError: F
|
|
1541
1541
|
});
|
|
1542
|
-
let
|
|
1542
|
+
let _;
|
|
1543
1543
|
try {
|
|
1544
|
-
|
|
1545
|
-
} catch (
|
|
1546
|
-
throw Re(
|
|
1544
|
+
_ = u.apply(this && this.$id === e ? this : g, O);
|
|
1545
|
+
} catch (W) {
|
|
1546
|
+
throw Re(T, W), W;
|
|
1547
1547
|
}
|
|
1548
|
-
return
|
|
1548
|
+
return _ instanceof Promise ? _.then((W) => (Re(L, W), W)).catch((W) => (Re(T, W), Promise.reject(W))) : (Re(L, _), _);
|
|
1549
1549
|
};
|
|
1550
1550
|
return k[Nt] = !0, k[ft] = c, k;
|
|
1551
|
-
},
|
|
1551
|
+
}, ee = /* @__PURE__ */ Me({
|
|
1552
1552
|
actions: {},
|
|
1553
1553
|
getters: {},
|
|
1554
1554
|
state: [],
|
|
1555
|
-
hotState:
|
|
1555
|
+
hotState: j
|
|
1556
1556
|
}), h = {
|
|
1557
1557
|
_p: n,
|
|
1558
1558
|
// _s: scope,
|
|
1559
1559
|
$id: e,
|
|
1560
|
-
$onAction: At.bind(null,
|
|
1561
|
-
$patch:
|
|
1562
|
-
$reset:
|
|
1560
|
+
$onAction: At.bind(null, M),
|
|
1561
|
+
$patch: Y,
|
|
1562
|
+
$reset: le,
|
|
1563
1563
|
$subscribe(u, c = {}) {
|
|
1564
|
-
const k = At(C, u, c.detached, () => O()), O = l.run(() =>
|
|
1564
|
+
const k = At(C, u, c.detached, () => O()), O = l.run(() => Pe(() => n.state.value[e], (L) => {
|
|
1565
1565
|
(c.flush === "sync" ? y : f) && u({
|
|
1566
1566
|
storeId: e,
|
|
1567
|
-
type:
|
|
1568
|
-
events:
|
|
1569
|
-
},
|
|
1567
|
+
type: xe.direct,
|
|
1568
|
+
events: R
|
|
1569
|
+
}, L);
|
|
1570
1570
|
}, ge({}, i, c)));
|
|
1571
1571
|
return k;
|
|
1572
1572
|
},
|
|
1573
|
-
$dispose:
|
|
1573
|
+
$dispose: z
|
|
1574
1574
|
}, g = de(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue ? ge(
|
|
1575
1575
|
{
|
|
1576
|
-
_hmrPayload:
|
|
1576
|
+
_hmrPayload: ee,
|
|
1577
1577
|
_customProperties: Me(/* @__PURE__ */ new Set())
|
|
1578
1578
|
// devtools custom properties
|
|
1579
1579
|
},
|
|
@@ -1582,26 +1582,26 @@ function gt(e, t, o = {}, n, s, r) {
|
|
|
1582
1582
|
// setupStore
|
|
1583
1583
|
) : h);
|
|
1584
1584
|
n._s.set(e, g);
|
|
1585
|
-
const I = (n._a && n._a.runWithContext || ms)(() => n._e.run(() => (l = Rt()).run(() => t({ action:
|
|
1585
|
+
const I = (n._a && n._a.runWithContext || ms)(() => n._e.run(() => (l = Rt()).run(() => t({ action: U }))));
|
|
1586
1586
|
for (const u in I) {
|
|
1587
1587
|
const c = I[u];
|
|
1588
1588
|
if (We(c) && !Mt(c) || _t(c))
|
|
1589
|
-
process.env.NODE_ENV !== "production" && s ? et(
|
|
1589
|
+
process.env.NODE_ENV !== "production" && s ? et(j.value, u, ut(I, u)) : r || (B && gs(c) && (We(c) ? c.value = B[u] : ht(c, B[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ee.state.push(u);
|
|
1590
1590
|
else if (typeof c == "function") {
|
|
1591
|
-
const k = process.env.NODE_ENV !== "production" && s ? c :
|
|
1592
|
-
I[u] = k, process.env.NODE_ENV !== "production" && (
|
|
1593
|
-
} else process.env.NODE_ENV !== "production" && Mt(c) && (
|
|
1591
|
+
const k = process.env.NODE_ENV !== "production" && s ? c : U(c, u);
|
|
1592
|
+
I[u] = k, process.env.NODE_ENV !== "production" && (ee.actions[u] = c), a.actions[u] = c;
|
|
1593
|
+
} else process.env.NODE_ENV !== "production" && Mt(c) && (ee.getters[u] = r ? (
|
|
1594
1594
|
// @ts-expect-error
|
|
1595
1595
|
o.getters[u]
|
|
1596
1596
|
) : c, Ue && (I._getters || // @ts-expect-error: same
|
|
1597
1597
|
(I._getters = Me([]))).push(u));
|
|
1598
1598
|
}
|
|
1599
1599
|
if (ge(g, I), ge(Ye(g), I), Object.defineProperty(g, "$state", {
|
|
1600
|
-
get: () => process.env.NODE_ENV !== "production" && s ?
|
|
1600
|
+
get: () => process.env.NODE_ENV !== "production" && s ? j.value : n.state.value[e],
|
|
1601
1601
|
set: (u) => {
|
|
1602
1602
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1603
1603
|
throw new Error("cannot set hotState");
|
|
1604
|
-
|
|
1604
|
+
Y((c) => {
|
|
1605
1605
|
ge(c, u);
|
|
1606
1606
|
});
|
|
1607
1607
|
}
|
|
@@ -1619,7 +1619,7 @@ function gt(e, t, o = {}, n, s, r) {
|
|
|
1619
1619
|
});
|
|
1620
1620
|
for (const c in u._hmrPayload.actions) {
|
|
1621
1621
|
const k = u[c];
|
|
1622
|
-
et(g, c,
|
|
1622
|
+
et(g, c, U(k, c));
|
|
1623
1623
|
}
|
|
1624
1624
|
for (const c in u._hmrPayload.getters) {
|
|
1625
1625
|
const k = u._hmrPayload.getters[c], O = r ? (
|
|
@@ -1662,7 +1662,7 @@ function gt(e, t, o = {}, n, s, r) {
|
|
|
1662
1662
|
})));
|
|
1663
1663
|
}), process.env.NODE_ENV !== "production" && g.$state && typeof g.$state == "object" && typeof g.$state.constructor == "function" && !g.$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 "${g.$id}".`),
|
|
1665
|
+
Found in store "${g.$id}".`), B && r && o.hydrate && o.hydrate(g.$state, B), f = !0, y = !0, g;
|
|
1666
1666
|
}
|
|
1667
1667
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1668
1668
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1681,22 +1681,22 @@ This will fail in production.`);
|
|
|
1681
1681
|
a = He, a._s.has(n) || (r ? gt(n, t, s, a) : Ut(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1682
1682
|
const y = a._s.get(n);
|
|
1683
1683
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1684
|
-
const C = "__hot:" + n,
|
|
1685
|
-
i._hotUpdate(
|
|
1684
|
+
const C = "__hot:" + n, M = r ? gt(C, t, s, a, !0) : Ut(C, ge({}, s), a, !0);
|
|
1685
|
+
i._hotUpdate(M), delete a.state.value[C], a._s.delete(C);
|
|
1686
1686
|
}
|
|
1687
1687
|
if (process.env.NODE_ENV !== "production" && Ue) {
|
|
1688
1688
|
const C = $o();
|
|
1689
1689
|
if (C && C.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1690
1690
|
!i) {
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1691
|
+
const M = C.proxy, R = "_pStores" in M ? M._pStores : M._pStores = {};
|
|
1692
|
+
R[n] = y;
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
1695
|
return y;
|
|
1696
1696
|
}
|
|
1697
1697
|
return l.$id = n, l;
|
|
1698
1698
|
}
|
|
1699
|
-
const
|
|
1699
|
+
const bs = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, vs = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, ys = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
1700
1700
|
function ws(e, t) {
|
|
1701
1701
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
1702
1702
|
Ss(e);
|
|
@@ -1739,7 +1739,7 @@ function Cs(e, t = {}) {
|
|
|
1739
1739
|
return e;
|
|
1740
1740
|
}
|
|
1741
1741
|
try {
|
|
1742
|
-
if (
|
|
1742
|
+
if (bs.test(e) || vs.test(e)) {
|
|
1743
1743
|
if (t.strict)
|
|
1744
1744
|
throw new Error("[destr] Possible prototype pollution");
|
|
1745
1745
|
return JSON.parse(e, ws);
|
|
@@ -1822,8 +1822,8 @@ function Tt(e, {
|
|
|
1822
1822
|
y && (a == null || a(f));
|
|
1823
1823
|
const C = t.getItem(n);
|
|
1824
1824
|
if (C) {
|
|
1825
|
-
const
|
|
1826
|
-
e.$patch(
|
|
1825
|
+
const M = o.deserialize(C), R = r ? uo(M, r) : M, B = l ? po(R, l) : R;
|
|
1826
|
+
e.$patch(B);
|
|
1827
1827
|
}
|
|
1828
1828
|
y && (i == null || i(f));
|
|
1829
1829
|
} catch (C) {
|
|
@@ -1912,7 +1912,7 @@ const fo = /* @__PURE__ */ _s("console", {
|
|
|
1912
1912
|
}), Os = {
|
|
1913
1913
|
key: 0,
|
|
1914
1914
|
class: "menu-wrapper"
|
|
1915
|
-
}, Ps = /* @__PURE__ */
|
|
1915
|
+
}, Ps = /* @__PURE__ */ Ce({
|
|
1916
1916
|
__name: "SideMenu",
|
|
1917
1917
|
props: {
|
|
1918
1918
|
menuCollapsed: { type: Boolean }
|
|
@@ -1938,17 +1938,17 @@ const fo = /* @__PURE__ */ _s("console", {
|
|
|
1938
1938
|
router: ""
|
|
1939
1939
|
}, {
|
|
1940
1940
|
default: d(() => [
|
|
1941
|
-
(p(!0), V(
|
|
1941
|
+
(p(!0), V(ae, null, pe(x(Pt), (a) => (p(), P(Gn, {
|
|
1942
1942
|
key: a.path,
|
|
1943
1943
|
menu: a
|
|
1944
1944
|
}, null, 8, ["menu"]))), 128))
|
|
1945
1945
|
]),
|
|
1946
1946
|
_: 1
|
|
1947
1947
|
}, 8, ["default-active"])
|
|
1948
|
-
])) :
|
|
1948
|
+
])) : q("", !0);
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
|
-
}), mo = /* @__PURE__ */
|
|
1951
|
+
}), mo = /* @__PURE__ */ ve(Ps, [["__scopeId", "data-v-c70ca2ba"]]), Is = { class: "container" }, Vs = /* @__PURE__ */ Ce({
|
|
1952
1952
|
__name: "ConsoleApp",
|
|
1953
1953
|
props: {
|
|
1954
1954
|
title: {},
|
|
@@ -1959,19 +1959,19 @@ const fo = /* @__PURE__ */ _s("console", {
|
|
|
1959
1959
|
const t = fo(wt), o = Ke(), n = A(t.menu.collapsed), s = A(), r = e;
|
|
1960
1960
|
return (l, a) => {
|
|
1961
1961
|
const i = E("router-view"), f = E("el-scrollbar");
|
|
1962
|
-
return p(), V(
|
|
1962
|
+
return p(), V(ae, null, [
|
|
1963
1963
|
x(o).query.embedded !== "true" ? (p(), P(Wt, {
|
|
1964
1964
|
key: 0,
|
|
1965
1965
|
title: r.title,
|
|
1966
1966
|
helpDocUrl: r.helpDocUrl,
|
|
1967
1967
|
headerProjectConfig: r.headerProjectConfig
|
|
1968
|
-
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) :
|
|
1968
|
+
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : q("", !0),
|
|
1969
1969
|
S("div", Is, [
|
|
1970
1970
|
x(o).query.embedded !== "true" ? (p(), P(mo, {
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
menuCollapsed: n.value,
|
|
1973
1973
|
"onUpdate:menuCollapsed": a[0] || (a[0] = (y) => n.value = y)
|
|
1974
|
-
}, null, 8, ["menuCollapsed"])) :
|
|
1974
|
+
}, null, 8, ["menuCollapsed"])) : q("", !0),
|
|
1975
1975
|
m(f, { class: "main-scrollbar" }, {
|
|
1976
1976
|
default: d(() => [
|
|
1977
1977
|
S("main", {
|
|
@@ -2007,7 +2007,7 @@ function Fs(e, t) {
|
|
|
2007
2007
|
t[3] || (t[3] = S("h1", null, "You have no permission to access the page.", -1)),
|
|
2008
2008
|
m(o, { type: "primary" }, {
|
|
2009
2009
|
default: d(() => t[1] || (t[1] = [
|
|
2010
|
-
|
|
2010
|
+
K("Apply")
|
|
2011
2011
|
])),
|
|
2012
2012
|
_: 1
|
|
2013
2013
|
}),
|
|
@@ -2015,19 +2015,19 @@ function Fs(e, t) {
|
|
|
2015
2015
|
onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
|
|
2016
2016
|
}, {
|
|
2017
2017
|
default: d(() => t[2] || (t[2] = [
|
|
2018
|
-
|
|
2018
|
+
K("Go Back")
|
|
2019
2019
|
])),
|
|
2020
2020
|
_: 1
|
|
2021
2021
|
})
|
|
2022
2022
|
])
|
|
2023
2023
|
]);
|
|
2024
2024
|
}
|
|
2025
|
-
const Rs = /* @__PURE__ */
|
|
2025
|
+
const Rs = /* @__PURE__ */ ve(Us, [["render", Fs], ["__scopeId", "data-v-0155b361"]]), Ls = {};
|
|
2026
2026
|
function Gs(e, t) {
|
|
2027
2027
|
const o = E("router-view");
|
|
2028
2028
|
return p(), P(o);
|
|
2029
2029
|
}
|
|
2030
|
-
const js = /* @__PURE__ */
|
|
2030
|
+
const js = /* @__PURE__ */ ve(Ls, [["render", Gs]]), zs = { class: "card-wrapper" }, qs = ["onClick"], Hs = { class: "card-inner-wrapper" }, Bs = { class: "card-title" }, Ys = { class: "icon" }, Ws = /* @__PURE__ */ Ce({
|
|
2031
2031
|
__name: "TabCard",
|
|
2032
2032
|
props: {
|
|
2033
2033
|
cards: {},
|
|
@@ -2053,7 +2053,7 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2053
2053
|
Be(() => {
|
|
2054
2054
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
2055
2055
|
});
|
|
2056
|
-
}),
|
|
2056
|
+
}), Pe(
|
|
2057
2057
|
() => s.cards,
|
|
2058
2058
|
(a) => {
|
|
2059
2059
|
if (o.query.tab !== void 0) {
|
|
@@ -2069,7 +2069,7 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2069
2069
|
deep: !0
|
|
2070
2070
|
}
|
|
2071
2071
|
), (a, i) => (p(), V("div", zs, [
|
|
2072
|
-
(p(!0), V(
|
|
2072
|
+
(p(!0), V(ae, null, pe(s.cards, (f) => (p(), V("div", {
|
|
2073
2073
|
class: Lt(["card", { "card-selected": r.value === f.key }]),
|
|
2074
2074
|
onClick: (y) => l(f)
|
|
2075
2075
|
}, [
|
|
@@ -2079,18 +2079,18 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2079
2079
|
f.icon ? (p(), P(rt(f.icon), {
|
|
2080
2080
|
key: 0,
|
|
2081
2081
|
class: "svg-icon"
|
|
2082
|
-
})) :
|
|
2082
|
+
})) : q("", !0)
|
|
2083
2083
|
]),
|
|
2084
2084
|
S("span", {
|
|
2085
2085
|
style: je({ color: f.disabled ? "#aaa" : "black" })
|
|
2086
|
-
},
|
|
2086
|
+
}, G(x(t)(f.label)), 5)
|
|
2087
2087
|
]),
|
|
2088
|
-
S("span", null,
|
|
2088
|
+
S("span", null, G(f.count), 1)
|
|
2089
2089
|
])
|
|
2090
2090
|
], 10, qs))), 256))
|
|
2091
2091
|
]));
|
|
2092
2092
|
}
|
|
2093
|
-
}), ho = /* @__PURE__ */
|
|
2093
|
+
}), ho = /* @__PURE__ */ ve(Ws, [["__scopeId", "data-v-047a86e6"]]), ze = (e) => {
|
|
2094
2094
|
const t = Object.keys(e);
|
|
2095
2095
|
let o = {};
|
|
2096
2096
|
t.forEach((n) => {
|
|
@@ -2099,7 +2099,7 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2099
2099
|
}, Js = {
|
|
2100
2100
|
key: 1,
|
|
2101
2101
|
class: "view-span"
|
|
2102
|
-
}, Ks = /* @__PURE__ */
|
|
2102
|
+
}, Ks = /* @__PURE__ */ Ce({
|
|
2103
2103
|
__name: "FormView",
|
|
2104
2104
|
props: {
|
|
2105
2105
|
id: {},
|
|
@@ -2112,67 +2112,67 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2112
2112
|
},
|
|
2113
2113
|
emits: ["update:id"],
|
|
2114
2114
|
setup(e, { expose: t, emit: o }) {
|
|
2115
|
-
const { t: n } = at.global, s = e, r = de({}), l = A(!1), a = A(), i = de({}), f = A(!0), y = (h) => s.mode === "view" && (
|
|
2115
|
+
const { t: n } = at.global, s = e, r = de({}), l = A(!1), a = A(), i = de({}), f = A(!0), y = (h) => s.mode === "view" && (U(h, void 0) || U(h, "input") || U(h, "select") || U(h, "password") || U(h, "input-number") || U(h, "date") || U(h, "time") || U(h, "datetime")), C = Te(() => s.model.fields ? s.model.fields.filter(
|
|
2116
2116
|
(h) => {
|
|
2117
2117
|
var I, u, c, k;
|
|
2118
2118
|
let g = h.visible !== !1 && ((I = h.formItemAttributes) == null ? void 0 : I.visible) !== !1;
|
|
2119
2119
|
if (s.mode !== "view" && ((u = h.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = h.formItemAttributes) == null ? void 0 : c.type) === "password")
|
|
2120
2120
|
return !1;
|
|
2121
|
-
let
|
|
2122
|
-
if (
|
|
2123
|
-
if (
|
|
2124
|
-
return r[
|
|
2125
|
-
if (
|
|
2126
|
-
return r[
|
|
2127
|
-
if (
|
|
2128
|
-
return r[
|
|
2129
|
-
if (
|
|
2130
|
-
return r[
|
|
2121
|
+
let v = (k = h.formItemAttributes) == null ? void 0 : k.showCondition;
|
|
2122
|
+
if (v && v.field && v.value !== void 0) {
|
|
2123
|
+
if (v.operator === void 0 || v.operator === "==")
|
|
2124
|
+
return r[v.field] === v.value;
|
|
2125
|
+
if (v.operator === "!=")
|
|
2126
|
+
return r[v.field] !== v.value;
|
|
2127
|
+
if (v.operator === ">")
|
|
2128
|
+
return r[v.field] > v.value;
|
|
2129
|
+
if (v.operator === "<")
|
|
2130
|
+
return r[v.field] < v.value;
|
|
2131
2131
|
}
|
|
2132
2132
|
return g;
|
|
2133
2133
|
}
|
|
2134
2134
|
) : []);
|
|
2135
|
-
|
|
2136
|
-
console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`),
|
|
2135
|
+
Pe([() => s.id, () => s.sessionId], () => {
|
|
2136
|
+
console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), R();
|
|
2137
2137
|
}, {
|
|
2138
2138
|
immediate: !0
|
|
2139
2139
|
});
|
|
2140
|
-
function
|
|
2140
|
+
function M() {
|
|
2141
2141
|
console.log("FormView.initFormFields: begin");
|
|
2142
2142
|
const h = s.model.fields;
|
|
2143
2143
|
let g = {};
|
|
2144
|
-
h == null || h.forEach((
|
|
2145
|
-
var I, u, c, k, O,
|
|
2146
|
-
if (r[
|
|
2147
|
-
if (((u =
|
|
2148
|
-
let
|
|
2149
|
-
|
|
2144
|
+
h == null || h.forEach((v) => {
|
|
2145
|
+
var I, u, c, k, O, L, T, D, F, _, W, b, $;
|
|
2146
|
+
if (r[v.prop] = null, v.visible !== !1 && ((I = v.formItemAttributes) == null ? void 0 : I.visible) !== !1) {
|
|
2147
|
+
if (((u = v.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[v.prop] = (c = v.formItemAttributes) == null ? void 0 : c.defaultValue : r[v.prop] = void 0, s.mode !== "view") {
|
|
2148
|
+
let Q = (k = v.formItemAttributes) == null ? void 0 : k.validationRule;
|
|
2149
|
+
Q !== void 0 && (g[v.prop] = Q), ze(i), Object.assign(i, g);
|
|
2150
2150
|
}
|
|
2151
|
-
const w =
|
|
2152
|
-
if (
|
|
2153
|
-
if (
|
|
2154
|
-
let
|
|
2155
|
-
const ce = (
|
|
2156
|
-
ce && (
|
|
2151
|
+
const w = v.formItemAttributes, J = w == null ? void 0 : w.type, H = (O = w == null ? void 0 : w.selectAttributes) == null ? void 0 : O.useDatableDict, te = (L = w == null ? void 0 : w.selectAttributes) == null ? void 0 : L.dictId, oe = (T = w == null ? void 0 : w.selectAttributes) == null ? void 0 : T.api, ne = (D = w == null ? void 0 : w.selectAttributes) == null ? void 0 : D.valueMappingField, X = (F = w == null ? void 0 : w.selectAttributes) == null ? void 0 : F.labelMappingField;
|
|
2152
|
+
if (J === "select") {
|
|
2153
|
+
if (H) {
|
|
2154
|
+
let se = `${Te(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${te}`;
|
|
2155
|
+
const ce = (_ = w == null ? void 0 : w.selectAttributes) == null ? void 0 : _.queryParamName, fe = (W = w == null ? void 0 : w.selectAttributes) == null ? void 0 : W.queryParamValueField;
|
|
2156
|
+
ce && (se = `${se}?${ce}=${s.id}`), fe || $e(se, "GET", {}).then(({ data: me }) => {
|
|
2157
2157
|
var ye;
|
|
2158
|
-
if ((ye =
|
|
2159
|
-
let
|
|
2160
|
-
Array.isArray(
|
|
2161
|
-
value:
|
|
2162
|
-
label:
|
|
2158
|
+
if ((ye = v.formItemAttributes) != null && ye.selectAttributes) {
|
|
2159
|
+
let he = [];
|
|
2160
|
+
Array.isArray(me.data) ? he = me.data : me.data.list && Array.isArray(me.data.list) && (he = me.data.list), v.formItemAttributes.selectAttributes.options = he.map((Ve) => ({
|
|
2161
|
+
value: Ve.dbOrdinal,
|
|
2162
|
+
label: Ve.value
|
|
2163
2163
|
}));
|
|
2164
2164
|
}
|
|
2165
2165
|
});
|
|
2166
|
-
} else if (
|
|
2167
|
-
let
|
|
2168
|
-
const
|
|
2169
|
-
|
|
2170
|
-
var
|
|
2171
|
-
if ((
|
|
2166
|
+
} else if (oe) {
|
|
2167
|
+
let Q = oe;
|
|
2168
|
+
const se = (b = w == null ? void 0 : w.selectAttributes) == null ? void 0 : b.queryParamName, ce = ($ = w == null ? void 0 : w.selectAttributes) == null ? void 0 : $.queryParamValueField;
|
|
2169
|
+
se && (Q = `${Q}?${se}=${s.id}`), ce || $e(Q, "GET", {}).then(({ data: fe }) => {
|
|
2170
|
+
var me;
|
|
2171
|
+
if ((me = v.formItemAttributes) != null && me.selectAttributes) {
|
|
2172
2172
|
let ye = [];
|
|
2173
|
-
Array.isArray(
|
|
2174
|
-
value:
|
|
2175
|
-
label: X ?
|
|
2173
|
+
Array.isArray(fe.data) ? ye = fe.data : fe.data.list && Array.isArray(fe.data.list) && (ye = fe.data.list), v.formItemAttributes.selectAttributes.options = ye.map((he) => ({
|
|
2174
|
+
value: ne ? he[ne] : he.value,
|
|
2175
|
+
label: X ? he[X] : he.label
|
|
2176
2176
|
}));
|
|
2177
2177
|
}
|
|
2178
2178
|
});
|
|
@@ -2181,81 +2181,87 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2181
2181
|
}
|
|
2182
2182
|
});
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function R() {
|
|
2185
2185
|
var h;
|
|
2186
|
-
console.log(`Refresh form view data: id = ${s.id}, model = `, s.model),
|
|
2187
|
-
ze(r), Object.assign(r, g.data), s.model.fields.forEach((
|
|
2188
|
-
|
|
2186
|
+
console.log(`Refresh form view data: id = ${s.id}, model = `, s.model), j(), f.value = (h = s.model.useI18n) != null ? h : !0, M(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, $e(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: g }) => {
|
|
2187
|
+
ze(r), Object.assign(r, g.data), s.model.fields.forEach((v) => {
|
|
2188
|
+
v.formItemAttributes && v.formItemAttributes.type === "select" && r[v.prop] !== void 0 && ee(v);
|
|
2189
2189
|
}), l.value = !1;
|
|
2190
2190
|
}));
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function B() {
|
|
2193
2193
|
return new Promise((h, g) => {
|
|
2194
2194
|
var I, u, c, k;
|
|
2195
2195
|
((u = (I = s.model.formConfig) == null ? void 0 : I.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (k = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : k.beforeSubmit(r));
|
|
2196
|
-
let
|
|
2197
|
-
s.model.api &&
|
|
2198
|
-
var
|
|
2199
|
-
O.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((
|
|
2196
|
+
let v = s.mode === "create" ? "POST" : "PUT";
|
|
2197
|
+
s.model.api && $e(s.model.api, v, r).then(({ data: O }) => {
|
|
2198
|
+
var L, T, D, F;
|
|
2199
|
+
O.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((T = (L = s.model.formConfig) == null ? void 0 : L.functions) == null ? void 0 : T.afterSubmit) !== void 0 && ((F = (D = s.model.formConfig) == null ? void 0 : D.functions) == null || F.afterSubmit(O.data)), s.afterSubmitFunc && s.afterSubmitFunc(), h());
|
|
2200
2200
|
});
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function j() {
|
|
2204
2204
|
var h;
|
|
2205
2205
|
console.log("FormView.reset: begin"), (h = a.value) == null || h.resetFields();
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function Z(h) {
|
|
2208
2208
|
return h.label ? f ? n(h.label) : h.label : h.prop.slice(0, 1).toUpperCase() + h.prop.slice(1).toLowerCase();
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2211
|
-
var g,
|
|
2210
|
+
function Y(h) {
|
|
2211
|
+
var g, v, I, u, c, k;
|
|
2212
2212
|
if (h) {
|
|
2213
|
-
if (
|
|
2214
|
-
const
|
|
2215
|
-
if (
|
|
2216
|
-
return
|
|
2217
|
-
const
|
|
2218
|
-
if (
|
|
2219
|
-
return r[
|
|
2213
|
+
if (U(h, "select")) {
|
|
2214
|
+
const O = (v = (g = h.tableColumnAttributes) == null ? void 0 : g.functions) == null ? void 0 : v.transformValue;
|
|
2215
|
+
if (O)
|
|
2216
|
+
return O(r[h.prop]);
|
|
2217
|
+
const L = (u = (I = h.formItemAttributes) == null ? void 0 : I.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2218
|
+
if (L)
|
|
2219
|
+
return r[L];
|
|
2220
|
+
const T = (k = (c = h.formItemAttributes) == null ? void 0 : c.selectAttributes) == null ? void 0 : k.options;
|
|
2221
|
+
if (T) {
|
|
2222
|
+
for (let D of T)
|
|
2223
|
+
if (D.value === r[h.prop])
|
|
2224
|
+
return D.label;
|
|
2225
|
+
}
|
|
2220
2226
|
}
|
|
2221
2227
|
return r[h.prop];
|
|
2222
2228
|
}
|
|
2223
2229
|
}
|
|
2224
|
-
function
|
|
2230
|
+
function le(h) {
|
|
2225
2231
|
var g;
|
|
2226
2232
|
return ((g = h.formItemAttributes) == null ? void 0 : g.updatable) === !1 && s.mode === "update";
|
|
2227
2233
|
}
|
|
2228
|
-
function
|
|
2234
|
+
function z(h, g) {
|
|
2229
2235
|
var I, u;
|
|
2230
|
-
const
|
|
2236
|
+
const v = (u = (I = g.formItemAttributes) == null ? void 0 : I.type) != null ? u : "input";
|
|
2231
2237
|
switch (h) {
|
|
2232
2238
|
case "input":
|
|
2233
|
-
return s.mode === "view" ? !1 :
|
|
2239
|
+
return s.mode === "view" ? !1 : v === "input" || v === "password";
|
|
2234
2240
|
case "select":
|
|
2235
2241
|
return !0;
|
|
2236
2242
|
default:
|
|
2237
2243
|
return console.log("Error: unrecognized form component type: ", h), !0;
|
|
2238
2244
|
}
|
|
2239
2245
|
}
|
|
2240
|
-
function
|
|
2241
|
-
var
|
|
2242
|
-
return ((
|
|
2246
|
+
function U(h, g) {
|
|
2247
|
+
var v;
|
|
2248
|
+
return ((v = h.formItemAttributes) == null ? void 0 : v.type) === g;
|
|
2243
2249
|
}
|
|
2244
|
-
function
|
|
2250
|
+
function ee(h) {
|
|
2245
2251
|
var g;
|
|
2246
|
-
for (let
|
|
2247
|
-
const I = (g =
|
|
2248
|
-
if (!(!
|
|
2252
|
+
for (let v of s.model.fields) {
|
|
2253
|
+
const I = (g = v.formItemAttributes) == null ? void 0 : g.selectAttributes;
|
|
2254
|
+
if (!(!v.formItemAttributes || v.formItemAttributes.type !== "select" || !I || !I.queryParamValueField) && I.queryParamValueField === h.prop) {
|
|
2249
2255
|
const u = I.api;
|
|
2250
2256
|
if (u) {
|
|
2251
2257
|
let c = u;
|
|
2252
2258
|
const k = I.queryParamName;
|
|
2253
|
-
k && (c = `${c}?${k}=${r[I.queryParamValueField]}`),
|
|
2259
|
+
k && (c = `${c}?${k}=${r[I.queryParamValueField]}`), $e(c, "GET", {}).then(({ data: O }) => {
|
|
2254
2260
|
if (I) {
|
|
2255
|
-
let
|
|
2256
|
-
Array.isArray(O.data) ?
|
|
2257
|
-
value: I.valueMappingField ?
|
|
2258
|
-
label: I.labelMappingField ?
|
|
2261
|
+
let L = [];
|
|
2262
|
+
Array.isArray(O.data) ? L = O.data : O.data.list && Array.isArray(O.data.list) && (L = O.data.list), I.options = L.map((T) => ({
|
|
2263
|
+
value: I.valueMappingField ? T[I.valueMappingField] : T.value,
|
|
2264
|
+
label: I.labelMappingField ? T[I.labelMappingField] : T.label
|
|
2259
2265
|
}));
|
|
2260
2266
|
}
|
|
2261
2267
|
});
|
|
@@ -2264,13 +2270,13 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2264
2270
|
}
|
|
2265
2271
|
}
|
|
2266
2272
|
return t({
|
|
2267
|
-
refresh:
|
|
2268
|
-
reset:
|
|
2269
|
-
submit:
|
|
2273
|
+
refresh: R,
|
|
2274
|
+
reset: j,
|
|
2275
|
+
submit: B,
|
|
2270
2276
|
formData: r
|
|
2271
2277
|
}), (h, g) => {
|
|
2272
|
-
const
|
|
2273
|
-
return jt((p(), P(
|
|
2278
|
+
const v = E("el-input"), I = E("el-switch"), u = E("el-date-picker"), c = E("el-time-picker"), k = E("el-option"), O = E("el-select"), L = E("el-input-number"), T = E("el-form-item"), D = E("el-form"), F = Gt("loading");
|
|
2279
|
+
return jt((p(), P(D, {
|
|
2274
2280
|
ref_key: "formRef",
|
|
2275
2281
|
ref: a,
|
|
2276
2282
|
model: r,
|
|
@@ -2282,86 +2288,88 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2282
2288
|
inline: !s.disableInline
|
|
2283
2289
|
}, {
|
|
2284
2290
|
default: d(() => [
|
|
2285
|
-
(p(!0), V(
|
|
2291
|
+
(p(!0), V(ae, null, pe(C.value, (_) => (p(), P(T, {
|
|
2286
2292
|
class: "form-item",
|
|
2287
2293
|
style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2288
|
-
prop:
|
|
2289
|
-
label:
|
|
2294
|
+
prop: _.prop,
|
|
2295
|
+
label: Z(_)
|
|
2290
2296
|
}, {
|
|
2291
2297
|
default: d(() => {
|
|
2292
|
-
var
|
|
2298
|
+
var W, b, $, w, J, H, te, oe, ne, X, Q, se, ce, fe, me, ye, he, Ve, Xe, ie;
|
|
2293
2299
|
return [
|
|
2294
|
-
|
|
2300
|
+
z("input", _) ? (p(), P(v, {
|
|
2295
2301
|
key: 0,
|
|
2296
|
-
type:
|
|
2297
|
-
modelValue: r[
|
|
2298
|
-
"onUpdate:modelValue": (
|
|
2299
|
-
placeholder: (
|
|
2300
|
-
disabled:
|
|
2301
|
-
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
2302
|
-
y(
|
|
2303
|
-
|
|
2302
|
+
type: U(_, "password") ? "password" : "text",
|
|
2303
|
+
modelValue: r[_.prop],
|
|
2304
|
+
"onUpdate:modelValue": (N) => r[_.prop] = N,
|
|
2305
|
+
placeholder: (W = _.formItemAttributes) == null ? void 0 : W.placeholder,
|
|
2306
|
+
disabled: le(_)
|
|
2307
|
+
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : q("", !0),
|
|
2308
|
+
y(_) ? (p(), V("span", Js, G(Y(_)), 1)) : q("", !0),
|
|
2309
|
+
U(_, "switch") ? (p(), P(I, {
|
|
2304
2310
|
key: 2,
|
|
2305
|
-
modelValue: r[
|
|
2306
|
-
"onUpdate:modelValue": (
|
|
2311
|
+
modelValue: r[_.prop],
|
|
2312
|
+
"onUpdate:modelValue": (N) => r[_.prop] = N,
|
|
2307
2313
|
disabled: h.mode === "view"
|
|
2308
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2309
|
-
|
|
2314
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
|
|
2315
|
+
U(_, "date") && h.mode !== "view" ? (p(), P(u, {
|
|
2310
2316
|
key: 3,
|
|
2311
2317
|
style: { width: "100%" },
|
|
2312
2318
|
type: "date",
|
|
2313
2319
|
"value-format": "YYYY-MM-DD",
|
|
2314
|
-
modelValue: r[
|
|
2315
|
-
"onUpdate:modelValue": (
|
|
2320
|
+
modelValue: r[_.prop],
|
|
2321
|
+
"onUpdate:modelValue": (N) => r[_.prop] = N,
|
|
2316
2322
|
disabled: h.mode === "view"
|
|
2317
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2318
|
-
|
|
2323
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
|
|
2324
|
+
U(_, "time") && h.mode !== "view" ? (p(), P(c, {
|
|
2319
2325
|
key: 4,
|
|
2320
2326
|
style: { width: "100%" },
|
|
2321
|
-
modelValue: r[
|
|
2322
|
-
"onUpdate:modelValue": (
|
|
2327
|
+
modelValue: r[_.prop],
|
|
2328
|
+
"onUpdate:modelValue": (N) => r[_.prop] = N,
|
|
2323
2329
|
disabled: h.mode === "view"
|
|
2324
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2325
|
-
|
|
2330
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
|
|
2331
|
+
U(_, "datetime") && h.mode !== "view" ? (p(), P(u, {
|
|
2326
2332
|
key: 5,
|
|
2327
2333
|
style: { width: "100%" },
|
|
2328
2334
|
type: "datetime",
|
|
2329
2335
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
2330
|
-
modelValue: r[
|
|
2331
|
-
"onUpdate:modelValue": (
|
|
2336
|
+
modelValue: r[_.prop],
|
|
2337
|
+
"onUpdate:modelValue": (N) => r[_.prop] = N,
|
|
2332
2338
|
disabled: h.mode === "view"
|
|
2333
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
2334
|
-
|
|
2339
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
|
|
2340
|
+
U(_, "select") && h.mode !== "view" ? (p(), P(O, {
|
|
2335
2341
|
key: 6,
|
|
2336
|
-
|
|
2337
|
-
"
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
"
|
|
2341
|
-
|
|
2342
|
-
|
|
2342
|
+
multiple: ($ = (b = _.formItemAttributes) == null ? void 0 : b.selectAttributes) == null ? void 0 : $.multiple,
|
|
2343
|
+
"collapse-tags": (J = (w = _.formItemAttributes) == null ? void 0 : w.selectAttributes) == null ? void 0 : J.multiple,
|
|
2344
|
+
filterable: (te = (H = _.formItemAttributes) == null ? void 0 : H.selectAttributes) == null ? void 0 : te.allowCreate,
|
|
2345
|
+
"allow-create": (ne = (oe = _.formItemAttributes) == null ? void 0 : oe.selectAttributes) == null ? void 0 : ne.allowCreate,
|
|
2346
|
+
"default-first-option": (Q = (X = _.formItemAttributes) == null ? void 0 : X.selectAttributes) == null ? void 0 : Q.allowCreate,
|
|
2347
|
+
modelValue: r[_.prop],
|
|
2348
|
+
"onUpdate:modelValue": (N) => r[_.prop] = N,
|
|
2349
|
+
disabled: le(_),
|
|
2350
|
+
onChange: (N) => ee(_)
|
|
2343
2351
|
}, {
|
|
2344
2352
|
default: d(() => {
|
|
2345
|
-
var
|
|
2353
|
+
var N, we;
|
|
2346
2354
|
return [
|
|
2347
|
-
(p(!0), V(
|
|
2348
|
-
value:
|
|
2349
|
-
label:
|
|
2355
|
+
(p(!0), V(ae, null, pe((we = (N = _.formItemAttributes) == null ? void 0 : N.selectAttributes) == null ? void 0 : we.options, (ke) => (p(), P(k, {
|
|
2356
|
+
value: ke.value,
|
|
2357
|
+
label: ke.label
|
|
2350
2358
|
}, null, 8, ["value", "label"]))), 256))
|
|
2351
2359
|
];
|
|
2352
2360
|
}),
|
|
2353
2361
|
_: 2
|
|
2354
|
-
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) :
|
|
2355
|
-
|
|
2362
|
+
}, 1032, ["multiple", "collapse-tags", "filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : q("", !0),
|
|
2363
|
+
U(_, "input-number") && h.mode !== "view" ? (p(), P(L, {
|
|
2356
2364
|
key: 7,
|
|
2357
2365
|
style: { width: "100%" },
|
|
2358
|
-
modelValue: r[
|
|
2359
|
-
"onUpdate:modelValue": (
|
|
2360
|
-
min: (
|
|
2361
|
-
max: (
|
|
2362
|
-
step: (
|
|
2366
|
+
modelValue: r[_.prop],
|
|
2367
|
+
"onUpdate:modelValue": (N) => r[_.prop] = N,
|
|
2368
|
+
min: (fe = (ce = (se = _.formItemAttributes) == null ? void 0 : se.inputNumber) == null ? void 0 : ce.min) != null ? fe : Number.NEGATIVE_INFINITY,
|
|
2369
|
+
max: (he = (ye = (me = _.formItemAttributes) == null ? void 0 : me.inputNumber) == null ? void 0 : ye.max) != null ? he : Number.POSITIVE_INFINITY,
|
|
2370
|
+
step: (ie = (Xe = (Ve = _.formItemAttributes) == null ? void 0 : Ve.inputNumber) == null ? void 0 : Xe.step) != null ? ie : 1,
|
|
2363
2371
|
"value-on-clear": -10
|
|
2364
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) :
|
|
2372
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : q("", !0)
|
|
2365
2373
|
];
|
|
2366
2374
|
}),
|
|
2367
2375
|
_: 2
|
|
@@ -2369,14 +2377,14 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2369
2377
|
]),
|
|
2370
2378
|
_: 1
|
|
2371
2379
|
}, 8, ["model", "rules", "inline"])), [
|
|
2372
|
-
[
|
|
2380
|
+
[F, l.value]
|
|
2373
2381
|
]);
|
|
2374
2382
|
};
|
|
2375
2383
|
}
|
|
2376
|
-
}), go = /* @__PURE__ */
|
|
2384
|
+
}), go = /* @__PURE__ */ ve(Ks, [["__scopeId", "data-v-8fb7ed43"]]), Qs = { class: "console-dialog__body" }, Xs = {
|
|
2377
2385
|
key: 0,
|
|
2378
2386
|
class: "process-view"
|
|
2379
|
-
}, Zs = { class: "operation-button-wrapper" }, _o = /* @__PURE__ */
|
|
2387
|
+
}, Zs = { class: "operation-button-wrapper" }, _o = /* @__PURE__ */ Ce({
|
|
2380
2388
|
__name: "FormDialog",
|
|
2381
2389
|
props: {
|
|
2382
2390
|
id: {},
|
|
@@ -2389,7 +2397,7 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2389
2397
|
emits: ["update:visible", "update:id"],
|
|
2390
2398
|
setup(e, { expose: t, emit: o }) {
|
|
2391
2399
|
const { t: n } = Qe(), s = e, r = A(0), l = o, a = A();
|
|
2392
|
-
|
|
2400
|
+
Pe(() => s.visible, () => {
|
|
2393
2401
|
s.visible && r.value++;
|
|
2394
2402
|
});
|
|
2395
2403
|
function i() {
|
|
@@ -2404,9 +2412,9 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2404
2412
|
return t({
|
|
2405
2413
|
close: f,
|
|
2406
2414
|
refresh: i
|
|
2407
|
-
}), (C,
|
|
2408
|
-
const
|
|
2409
|
-
return p(), P(
|
|
2415
|
+
}), (C, M) => {
|
|
2416
|
+
const R = E("el-step"), B = E("el-steps"), j = E("el-button"), Z = E("el-dialog");
|
|
2417
|
+
return p(), P(Z, {
|
|
2410
2418
|
class: "console-dialog",
|
|
2411
2419
|
title: "Edit",
|
|
2412
2420
|
"align-center": "",
|
|
@@ -2415,35 +2423,35 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2415
2423
|
onClose: f
|
|
2416
2424
|
}, {
|
|
2417
2425
|
footer: d(() => {
|
|
2418
|
-
var
|
|
2426
|
+
var Y;
|
|
2419
2427
|
return [
|
|
2420
2428
|
S("div", {
|
|
2421
2429
|
class: "dialog-footer",
|
|
2422
2430
|
style: je({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2423
2431
|
}, [
|
|
2424
2432
|
S("div", Zs, [
|
|
2425
|
-
(p(!0), V(
|
|
2426
|
-
onClick: (
|
|
2433
|
+
(p(!0), V(ae, null, pe((Y = s.model.formConfig) == null ? void 0 : Y.dialogButtons, (le) => (p(), P(j, {
|
|
2434
|
+
onClick: (z) => le.function(a.value.formData)
|
|
2427
2435
|
}, {
|
|
2428
2436
|
default: d(() => [
|
|
2429
|
-
|
|
2437
|
+
K(G(x(n)(le.label)), 1)
|
|
2430
2438
|
]),
|
|
2431
2439
|
_: 2
|
|
2432
2440
|
}, 1032, ["onClick"]))), 256))
|
|
2433
2441
|
]),
|
|
2434
2442
|
S("div", null, [
|
|
2435
|
-
m(
|
|
2443
|
+
m(j, { onClick: f }, {
|
|
2436
2444
|
default: d(() => [
|
|
2437
|
-
|
|
2445
|
+
K(G(x(n)("common.basic.cancel")), 1)
|
|
2438
2446
|
]),
|
|
2439
2447
|
_: 1
|
|
2440
2448
|
}),
|
|
2441
|
-
m(
|
|
2449
|
+
m(j, {
|
|
2442
2450
|
type: "primary",
|
|
2443
2451
|
onClick: y
|
|
2444
2452
|
}, {
|
|
2445
2453
|
default: d(() => [
|
|
2446
|
-
|
|
2454
|
+
K(G(x(n)("common.basic.save")), 1)
|
|
2447
2455
|
]),
|
|
2448
2456
|
_: 1
|
|
2449
2457
|
})
|
|
@@ -2467,19 +2475,19 @@ const js = /* @__PURE__ */ be(Ls, [["render", Gs]]), zs = { class: "card-wrapper
|
|
|
2467
2475
|
disableInline: s.showProcess
|
|
2468
2476
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2469
2477
|
C.showProcess ? (p(), V("div", Xs, [
|
|
2470
|
-
|
|
2471
|
-
m(
|
|
2478
|
+
M[0] || (M[0] = S("h1", null, "流程动态", -1)),
|
|
2479
|
+
m(B, {
|
|
2472
2480
|
style: { height: "90%" },
|
|
2473
2481
|
direction: "vertical",
|
|
2474
2482
|
active: 1
|
|
2475
2483
|
}, {
|
|
2476
2484
|
default: d(() => [
|
|
2477
|
-
m(
|
|
2478
|
-
m(
|
|
2485
|
+
m(R, { title: "Step 1" }),
|
|
2486
|
+
m(R, { title: "Step 2" })
|
|
2479
2487
|
]),
|
|
2480
2488
|
_: 1
|
|
2481
2489
|
})
|
|
2482
|
-
])) :
|
|
2490
|
+
])) : q("", !0)
|
|
2483
2491
|
])
|
|
2484
2492
|
]),
|
|
2485
2493
|
_: 1
|
|
@@ -2501,7 +2509,7 @@ function tr(e, t) {
|
|
|
2501
2509
|
}, null, -1)
|
|
2502
2510
|
]));
|
|
2503
2511
|
}
|
|
2504
|
-
const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-buttons" }, rr = { class: "tool-buttons" }, ar = { key: 2 }, lr = /* @__PURE__ */
|
|
2512
|
+
const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-buttons" }, rr = { class: "tool-buttons" }, ar = { key: 2 }, lr = /* @__PURE__ */ Ce({
|
|
2505
2513
|
__name: "TableView",
|
|
2506
2514
|
props: {
|
|
2507
2515
|
model: {}
|
|
@@ -2509,37 +2517,37 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2509
2517
|
setup(e, { expose: t }) {
|
|
2510
2518
|
const { t: o } = at.global, n = e, s = de([]), r = de({
|
|
2511
2519
|
showPane: !0
|
|
2512
|
-
}), l = A(""), a = A(!0), i = A(!1), f = ct(), y = A(""), C = de([]),
|
|
2520
|
+
}), l = A(""), a = A(!0), i = A(!1), f = ct(), y = A(""), C = de([]), M = de([]), R = A(), B = A([]), j = A("create"), Z = A(!0), Y = A(!1), le = A(""), z = de({
|
|
2513
2521
|
pageSize: 10,
|
|
2514
2522
|
pageNo: 1,
|
|
2515
2523
|
totalElements: 0
|
|
2516
|
-
}),
|
|
2517
|
-
(
|
|
2524
|
+
}), U = Te(() => s.filter(
|
|
2525
|
+
(b) => {
|
|
2518
2526
|
var $, w;
|
|
2519
|
-
return (($ =
|
|
2527
|
+
return (($ = b.formItemAttributes) == null ? void 0 : $.type) !== "password" && b.visible !== !1 && ((w = b.tableColumnAttributes) == null ? void 0 : w.visible) !== !1;
|
|
2520
2528
|
}
|
|
2521
2529
|
));
|
|
2522
|
-
function
|
|
2523
|
-
var oe, ne,
|
|
2524
|
-
let w = $.row[
|
|
2525
|
-
const
|
|
2526
|
-
if (
|
|
2527
|
-
w =
|
|
2528
|
-
else if (
|
|
2529
|
-
for (let
|
|
2530
|
-
if (w ===
|
|
2531
|
-
w = o(
|
|
2530
|
+
function ee(b, $) {
|
|
2531
|
+
var te, oe, ne, X;
|
|
2532
|
+
let w = $.row[b.prop];
|
|
2533
|
+
const J = (oe = (te = b.tableColumnAttributes) == null ? void 0 : te.functions) == null ? void 0 : oe.transformValue, H = (ne = b.tableColumnAttributes) == null ? void 0 : ne.transformValueMappings;
|
|
2534
|
+
if (J)
|
|
2535
|
+
w = J(w);
|
|
2536
|
+
else if (H && H.length > 0) {
|
|
2537
|
+
for (let Q of H)
|
|
2538
|
+
if (w === Q.value) {
|
|
2539
|
+
w = o(Q.label);
|
|
2532
2540
|
break;
|
|
2533
2541
|
}
|
|
2534
|
-
} else if (((X =
|
|
2535
|
-
const
|
|
2536
|
-
if (
|
|
2537
|
-
if (
|
|
2538
|
-
w = $.row[
|
|
2539
|
-
else if (
|
|
2540
|
-
for (let
|
|
2541
|
-
if (
|
|
2542
|
-
w =
|
|
2542
|
+
} else if (((X = b.formItemAttributes) == null ? void 0 : X.type) === "select") {
|
|
2543
|
+
const Q = b.formItemAttributes.selectAttributes;
|
|
2544
|
+
if (Q) {
|
|
2545
|
+
if (Q.viewModeLabelField)
|
|
2546
|
+
w = $.row[Q.viewModeLabelField];
|
|
2547
|
+
else if (Q.options && Q.options.length > 0) {
|
|
2548
|
+
for (let se of Q.options)
|
|
2549
|
+
if (se.value === $.row[b.prop]) {
|
|
2550
|
+
w = se.label;
|
|
2543
2551
|
break;
|
|
2544
2552
|
}
|
|
2545
2553
|
}
|
|
@@ -2547,31 +2555,31 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2547
2555
|
}
|
|
2548
2556
|
return w;
|
|
2549
2557
|
}
|
|
2550
|
-
function h(
|
|
2551
|
-
var w,
|
|
2552
|
-
return
|
|
2558
|
+
function h(b, $) {
|
|
2559
|
+
var w, J;
|
|
2560
|
+
return b.label ? o(b.label) : (J = (w = b.functions) == null ? void 0 : w.transformLabel) == null ? void 0 : J.call(w, $.$index, $.row);
|
|
2553
2561
|
}
|
|
2554
|
-
function g(
|
|
2555
|
-
ze(n.model), Object.assign(n.model,
|
|
2562
|
+
function g(b) {
|
|
2563
|
+
ze(n.model), Object.assign(n.model, b);
|
|
2556
2564
|
}
|
|
2557
|
-
function
|
|
2558
|
-
var $, w,
|
|
2559
|
-
if (
|
|
2565
|
+
function v() {
|
|
2566
|
+
var $, w, J;
|
|
2567
|
+
if (Z.value = !0, !n.model || !n.model.api)
|
|
2560
2568
|
return;
|
|
2561
|
-
ze(r), r.showPane = !0, Object.assign(r, ($ = n.model.tableConfig) != null ? $ : {}), s.splice(0, s.length, ...n.model.fields), l.value = (w = n.model.route) != null ? w : "", a.value = (
|
|
2562
|
-
let
|
|
2563
|
-
|
|
2564
|
-
const { list:
|
|
2565
|
-
C.splice(0, C.length, ...
|
|
2569
|
+
ze(r), r.showPane = !0, Object.assign(r, ($ = n.model.tableConfig) != null ? $ : {}), s.splice(0, s.length, ...n.model.fields), l.value = (w = n.model.route) != null ? w : "", a.value = (J = n.model.useI18n) != null ? J : !0;
|
|
2570
|
+
let b = Ze({}, r.queryParams);
|
|
2571
|
+
b.pageSize = z.pageSize, b.pageNo = z.pageNo, b.search = y.value, $e(n.model.api, "GET", b).then(({ data: H }) => {
|
|
2572
|
+
const { list: te, totalCount: oe } = H.data;
|
|
2573
|
+
C.splice(0, C.length, ...te), z.totalElements = oe, Z.value = !1;
|
|
2566
2574
|
});
|
|
2567
2575
|
}
|
|
2568
2576
|
function I() {
|
|
2569
|
-
var
|
|
2570
|
-
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((
|
|
2577
|
+
var b, $;
|
|
2578
|
+
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((b = r.functions) == null ? void 0 : b.create) !== void 0 ? ($ = r.functions) == null || $.create() : (j.value = "create", le.value = "", i.value = !0);
|
|
2571
2579
|
}
|
|
2572
|
-
function u(
|
|
2573
|
-
n.model.api &&
|
|
2574
|
-
w.code === 0 && (i.value = !1,
|
|
2580
|
+
function u(b, $) {
|
|
2581
|
+
n.model.api && $e(n.model.api, "DELETE", $.id).then(({ data: w }) => {
|
|
2582
|
+
w.code === 0 && (i.value = !1, v());
|
|
2575
2583
|
});
|
|
2576
2584
|
}
|
|
2577
2585
|
function c() {
|
|
@@ -2584,75 +2592,75 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2584
2592
|
type: "warning"
|
|
2585
2593
|
}
|
|
2586
2594
|
).then(() => {
|
|
2587
|
-
var
|
|
2588
|
-
if (((
|
|
2589
|
-
($ = r.functions) == null || $.batchDelete(
|
|
2595
|
+
var b, $;
|
|
2596
|
+
if (((b = r.functions) == null ? void 0 : b.batchDelete) !== void 0)
|
|
2597
|
+
($ = r.functions) == null || $.batchDelete(B.value);
|
|
2590
2598
|
else {
|
|
2591
|
-
const w =
|
|
2592
|
-
|
|
2593
|
-
|
|
2599
|
+
const w = B.value.map((J) => J.id);
|
|
2600
|
+
be.delete(`${n.model.api}/${w.join(",")}`).then(({ data: J }) => {
|
|
2601
|
+
J.code === 0 && (i.value = !1, v());
|
|
2594
2602
|
});
|
|
2595
2603
|
}
|
|
2596
|
-
|
|
2604
|
+
R.value.clearSelection();
|
|
2597
2605
|
}).catch(() => {
|
|
2598
|
-
|
|
2606
|
+
R.value.clearSelection();
|
|
2599
2607
|
});
|
|
2600
2608
|
}
|
|
2601
|
-
function k(
|
|
2602
|
-
|
|
2609
|
+
function k(b) {
|
|
2610
|
+
z.pageSize = b, v();
|
|
2603
2611
|
}
|
|
2604
|
-
function O(
|
|
2605
|
-
|
|
2612
|
+
function O(b) {
|
|
2613
|
+
z.pageNo = b, v();
|
|
2606
2614
|
}
|
|
2607
|
-
function
|
|
2615
|
+
function L(b, $) {
|
|
2608
2616
|
r.editPageRoutePath !== void 0 ? f.push({
|
|
2609
2617
|
path: r.editPageRoutePath,
|
|
2610
2618
|
query: {
|
|
2611
2619
|
id: $.id
|
|
2612
2620
|
}
|
|
2613
|
-
}) : (
|
|
2621
|
+
}) : (le.value = $.id, j.value = "update", i.value = !0);
|
|
2614
2622
|
}
|
|
2615
|
-
function
|
|
2623
|
+
function T() {
|
|
2616
2624
|
var w;
|
|
2617
|
-
let
|
|
2625
|
+
let b = ((w = n.model.api) != null && w.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
|
|
2618
2626
|
const $ = r.queryParams;
|
|
2619
|
-
$ !== void 0 && Object.keys($).length > 0 && (
|
|
2620
|
-
|
|
2621
|
-
})), window.open(
|
|
2627
|
+
$ !== void 0 && Object.keys($).length > 0 && (b += "?", Object.entries(r.queryParams).map((J) => {
|
|
2628
|
+
b += `${J[0]}=${J[1]}&`;
|
|
2629
|
+
})), window.open(b);
|
|
2622
2630
|
}
|
|
2623
|
-
function
|
|
2624
|
-
|
|
2631
|
+
function D(b) {
|
|
2632
|
+
B.value = b;
|
|
2625
2633
|
}
|
|
2626
|
-
function
|
|
2627
|
-
return
|
|
2634
|
+
function F(b) {
|
|
2635
|
+
return b.label ? a.value ? o(b.label) : b.label : b.prop.slice(0, 1).toUpperCase() + b.prop.slice(1).toLowerCase();
|
|
2628
2636
|
}
|
|
2629
|
-
function
|
|
2630
|
-
|
|
2637
|
+
function _(b) {
|
|
2638
|
+
b ? (Y.value = !0, M.splice(0, M.length, ...C), C.splice(0, C.length, ...B.value)) : (Y.value = !1, C.splice(0, C.length, ...M));
|
|
2631
2639
|
}
|
|
2632
|
-
function
|
|
2633
|
-
var
|
|
2634
|
-
if (
|
|
2640
|
+
function W() {
|
|
2641
|
+
var te;
|
|
2642
|
+
if (B.value.length === 0) {
|
|
2635
2643
|
Et.alert("Select rows before printing", "Print", {
|
|
2636
2644
|
confirmButtonText: "OK"
|
|
2637
2645
|
});
|
|
2638
2646
|
return;
|
|
2639
2647
|
}
|
|
2640
|
-
let
|
|
2641
|
-
|
|
2642
|
-
var
|
|
2643
|
-
|
|
2648
|
+
let b = "";
|
|
2649
|
+
U.value.forEach((oe) => {
|
|
2650
|
+
var ne;
|
|
2651
|
+
b += `<th>${o((ne = oe.label) != null ? ne : "")}</th>`;
|
|
2644
2652
|
});
|
|
2645
2653
|
let $ = "";
|
|
2646
|
-
|
|
2647
|
-
$ += "<tr>",
|
|
2648
|
-
$ += `<td>${ne
|
|
2654
|
+
B.value.forEach((oe) => {
|
|
2655
|
+
$ += "<tr>", U.value.forEach((ne) => {
|
|
2656
|
+
$ += `<td>${oe[ne.prop]}</td>`;
|
|
2649
2657
|
}), $ += "</tr>";
|
|
2650
2658
|
});
|
|
2651
|
-
let w = `<table><tr>${
|
|
2652
|
-
const
|
|
2653
|
-
|
|
2654
|
-
const
|
|
2655
|
-
|
|
2659
|
+
let w = `<table><tr>${b}</tr>${$}</table>`;
|
|
2660
|
+
const J = document.createElement("iframe");
|
|
2661
|
+
J.style.display = "none", document.body.appendChild(J);
|
|
2662
|
+
const H = J.contentDocument || ((te = J.contentWindow) == null ? void 0 : te.document);
|
|
2663
|
+
H == null || H.open(), H == null || H.write(`
|
|
2656
2664
|
<!DOCTYPE html>
|
|
2657
2665
|
<html>
|
|
2658
2666
|
<head>
|
|
@@ -2701,27 +2709,27 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2701
2709
|
<\/script>
|
|
2702
2710
|
</body>
|
|
2703
2711
|
</html>
|
|
2704
|
-
`),
|
|
2712
|
+
`), H == null || H.close();
|
|
2705
2713
|
}
|
|
2706
|
-
return
|
|
2707
|
-
|
|
2714
|
+
return Pe(() => n.model, () => {
|
|
2715
|
+
v();
|
|
2708
2716
|
}, {
|
|
2709
2717
|
deep: !0,
|
|
2710
2718
|
immediate: !0
|
|
2711
2719
|
}), t({
|
|
2712
|
-
multipleSelection:
|
|
2713
|
-
refresh:
|
|
2720
|
+
multipleSelection: B,
|
|
2721
|
+
refresh: v,
|
|
2714
2722
|
updateConfigAndRefresh: g
|
|
2715
|
-
}), (
|
|
2716
|
-
const w = E("el-checkbox"),
|
|
2723
|
+
}), (b, $) => {
|
|
2724
|
+
const w = E("el-checkbox"), J = E("el-badge"), H = E("el-button"), te = E("el-dropdown-item"), oe = E("el-dropdown-menu"), ne = E("el-dropdown"), X = E("el-icon"), Q = E("el-tooltip"), se = E("el-input"), ce = E("el-table-column"), fe = E("router-link"), me = E("el-tag"), ye = E("el-popconfirm"), he = E("el-table"), Ve = E("el-pagination"), Xe = Gt("loading");
|
|
2717
2725
|
return p(), V("div", {
|
|
2718
2726
|
class: Lt({ "table-view-wrapper": r.showPane })
|
|
2719
2727
|
}, [
|
|
2720
2728
|
S("div", nr, [
|
|
2721
2729
|
S("div", sr, [
|
|
2722
|
-
r.selectMode ? (p(), P(
|
|
2730
|
+
r.selectMode ? (p(), P(J, {
|
|
2723
2731
|
key: 0,
|
|
2724
|
-
value:
|
|
2732
|
+
value: B.value.length,
|
|
2725
2733
|
type: "primary",
|
|
2726
2734
|
class: "selected-badge"
|
|
2727
2735
|
}, {
|
|
@@ -2730,86 +2738,86 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2730
2738
|
class: "selected-checkbox",
|
|
2731
2739
|
border: !0,
|
|
2732
2740
|
label: x(o)("common.table.viewSelected"),
|
|
2733
|
-
onChange:
|
|
2741
|
+
onChange: _
|
|
2734
2742
|
}, null, 8, ["label"])
|
|
2735
2743
|
]),
|
|
2736
2744
|
_: 1
|
|
2737
|
-
}, 8, ["value"])) :
|
|
2738
|
-
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), P(
|
|
2745
|
+
}, 8, ["value"])) : q("", !0),
|
|
2746
|
+
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), P(H, {
|
|
2739
2747
|
key: 1,
|
|
2740
2748
|
type: "primary",
|
|
2741
2749
|
onClick: I
|
|
2742
2750
|
}, {
|
|
2743
2751
|
default: d(() => {
|
|
2744
|
-
var
|
|
2752
|
+
var ie, N;
|
|
2745
2753
|
return [
|
|
2746
|
-
|
|
2754
|
+
K(G(((ie = r.labels) == null ? void 0 : ie.create) != null ? x(o)((N = r.labels) == null ? void 0 : N.create) : x(o)("common.table.create")), 1)
|
|
2747
2755
|
];
|
|
2748
2756
|
}),
|
|
2749
2757
|
_: 1
|
|
2750
|
-
})) :
|
|
2751
|
-
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), P(
|
|
2758
|
+
})) : q("", !0),
|
|
2759
|
+
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), P(H, {
|
|
2752
2760
|
key: 2,
|
|
2753
|
-
disabled:
|
|
2761
|
+
disabled: B.value.length == 0,
|
|
2754
2762
|
type: "danger",
|
|
2755
2763
|
plain: "",
|
|
2756
2764
|
onClick: c
|
|
2757
2765
|
}, {
|
|
2758
2766
|
default: d(() => {
|
|
2759
|
-
var
|
|
2767
|
+
var ie, N;
|
|
2760
2768
|
return [
|
|
2761
|
-
|
|
2769
|
+
K(G(((ie = r.labels) == null ? void 0 : ie.delete) != null ? x(o)((N = r.labels) == null ? void 0 : N.delete) : x(o)("common.table.delete")), 1)
|
|
2762
2770
|
];
|
|
2763
2771
|
}),
|
|
2764
2772
|
_: 1
|
|
2765
|
-
}, 8, ["disabled"])) :
|
|
2766
|
-
m(
|
|
2773
|
+
}, 8, ["disabled"])) : q("", !0),
|
|
2774
|
+
m(H, {
|
|
2767
2775
|
icon: x(Ht),
|
|
2768
2776
|
style: { width: "28px" },
|
|
2769
|
-
onClick:
|
|
2777
|
+
onClick: v
|
|
2770
2778
|
}, null, 8, ["icon"]),
|
|
2771
|
-
m(
|
|
2779
|
+
m(ne, {
|
|
2772
2780
|
placement: "bottom-start",
|
|
2773
2781
|
trigger: "click"
|
|
2774
2782
|
}, {
|
|
2775
2783
|
dropdown: d(() => [
|
|
2776
|
-
m(
|
|
2784
|
+
m(oe, null, {
|
|
2777
2785
|
default: d(() => [
|
|
2778
|
-
m(
|
|
2786
|
+
m(te, {
|
|
2779
2787
|
icon: x(Ao),
|
|
2780
2788
|
disabled: !0
|
|
2781
2789
|
}, {
|
|
2782
2790
|
default: d(() => $[3] || ($[3] = [
|
|
2783
|
-
|
|
2791
|
+
K("导入")
|
|
2784
2792
|
])),
|
|
2785
2793
|
_: 1
|
|
2786
2794
|
}, 8, ["icon"]),
|
|
2787
|
-
m(
|
|
2795
|
+
m(te, {
|
|
2788
2796
|
icon: x(Ot),
|
|
2789
2797
|
divided: "",
|
|
2790
2798
|
disabled: !0
|
|
2791
2799
|
}, {
|
|
2792
2800
|
default: d(() => $[4] || ($[4] = [
|
|
2793
|
-
|
|
2801
|
+
K("导出选中内容")
|
|
2794
2802
|
])),
|
|
2795
2803
|
_: 1
|
|
2796
2804
|
}, 8, ["icon"]),
|
|
2797
|
-
m(
|
|
2805
|
+
m(te, {
|
|
2798
2806
|
icon: x(Ot),
|
|
2799
|
-
onClick:
|
|
2807
|
+
onClick: T
|
|
2800
2808
|
}, {
|
|
2801
2809
|
default: d(() => $[5] || ($[5] = [
|
|
2802
|
-
|
|
2810
|
+
K("导出查询结果")
|
|
2803
2811
|
])),
|
|
2804
2812
|
_: 1
|
|
2805
2813
|
}, 8, ["icon"]),
|
|
2806
|
-
m(
|
|
2814
|
+
m(te, {
|
|
2807
2815
|
icon: x(No),
|
|
2808
2816
|
divided: "",
|
|
2809
2817
|
disabled: !0
|
|
2810
2818
|
}, {
|
|
2811
2819
|
default: d(() => $[6] || ($[6] = [
|
|
2812
|
-
|
|
2820
|
+
K("任务中心")
|
|
2813
2821
|
])),
|
|
2814
2822
|
_: 1
|
|
2815
2823
|
}, 8, ["icon"])
|
|
@@ -2818,7 +2826,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2818
2826
|
})
|
|
2819
2827
|
]),
|
|
2820
2828
|
default: d(() => [
|
|
2821
|
-
m(
|
|
2829
|
+
m(H, { style: { width: "28px" } }, {
|
|
2822
2830
|
icon: d(() => [
|
|
2823
2831
|
m(x(or))
|
|
2824
2832
|
]),
|
|
@@ -2827,28 +2835,28 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2827
2835
|
]),
|
|
2828
2836
|
_: 1
|
|
2829
2837
|
}),
|
|
2830
|
-
m(
|
|
2838
|
+
m(ne, {
|
|
2831
2839
|
placement: "bottom-start",
|
|
2832
2840
|
trigger: "click"
|
|
2833
2841
|
}, {
|
|
2834
2842
|
dropdown: d(() => [
|
|
2835
|
-
m(
|
|
2843
|
+
m(oe, null, {
|
|
2836
2844
|
default: d(() => [
|
|
2837
|
-
m(
|
|
2845
|
+
m(te, {
|
|
2838
2846
|
icon: x(Mo),
|
|
2839
|
-
onClick:
|
|
2847
|
+
onClick: W
|
|
2840
2848
|
}, {
|
|
2841
2849
|
default: d(() => $[7] || ($[7] = [
|
|
2842
|
-
|
|
2850
|
+
K("打印")
|
|
2843
2851
|
])),
|
|
2844
2852
|
_: 1
|
|
2845
2853
|
}, 8, ["icon"]),
|
|
2846
|
-
m(
|
|
2854
|
+
m(te, {
|
|
2847
2855
|
icon: x(Uo),
|
|
2848
2856
|
disabled: !0
|
|
2849
2857
|
}, {
|
|
2850
2858
|
default: d(() => $[8] || ($[8] = [
|
|
2851
|
-
|
|
2859
|
+
K("表格设置")
|
|
2852
2860
|
])),
|
|
2853
2861
|
_: 1
|
|
2854
2862
|
}, 8, ["icon"])
|
|
@@ -2857,14 +2865,14 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2857
2865
|
})
|
|
2858
2866
|
]),
|
|
2859
2867
|
default: d(() => [
|
|
2860
|
-
m(
|
|
2868
|
+
m(H, {
|
|
2861
2869
|
icon: x(To),
|
|
2862
2870
|
style: { width: "28px" }
|
|
2863
2871
|
}, null, 8, ["icon"])
|
|
2864
2872
|
]),
|
|
2865
2873
|
_: 1
|
|
2866
2874
|
}),
|
|
2867
|
-
r.tooltip ? (p(), P(
|
|
2875
|
+
r.tooltip ? (p(), P(Q, {
|
|
2868
2876
|
key: 3,
|
|
2869
2877
|
effect: "dark",
|
|
2870
2878
|
content: x(o)(r.tooltip),
|
|
@@ -2879,194 +2887,194 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
2879
2887
|
})
|
|
2880
2888
|
]),
|
|
2881
2889
|
_: 1
|
|
2882
|
-
}, 8, ["content"])) :
|
|
2890
|
+
}, 8, ["content"])) : q("", !0)
|
|
2883
2891
|
]),
|
|
2884
2892
|
S("div", rr, [
|
|
2885
|
-
m(
|
|
2893
|
+
m(se, {
|
|
2886
2894
|
placeholder: `${x(o)("common.table.search")}...`,
|
|
2887
2895
|
modelValue: y.value,
|
|
2888
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
2896
|
+
"onUpdate:modelValue": $[0] || ($[0] = (ie) => y.value = ie)
|
|
2889
2897
|
}, {
|
|
2890
2898
|
append: d(() => [
|
|
2891
|
-
m(
|
|
2899
|
+
m(H, {
|
|
2892
2900
|
style: { "margin-left": "-20px" },
|
|
2893
2901
|
icon: x(zt),
|
|
2894
|
-
onClick:
|
|
2902
|
+
onClick: v
|
|
2895
2903
|
}, null, 8, ["icon"])
|
|
2896
2904
|
]),
|
|
2897
2905
|
_: 1
|
|
2898
2906
|
}, 8, ["placeholder", "modelValue"]),
|
|
2899
|
-
m(
|
|
2907
|
+
m(H, { type: "text" }, {
|
|
2900
2908
|
default: d(() => $[9] || ($[9] = [
|
|
2901
|
-
|
|
2909
|
+
K("高级搜索")
|
|
2902
2910
|
])),
|
|
2903
2911
|
_: 1
|
|
2904
2912
|
})
|
|
2905
2913
|
])
|
|
2906
2914
|
]),
|
|
2907
|
-
jt((p(), P(
|
|
2915
|
+
jt((p(), P(he, {
|
|
2908
2916
|
border: !0,
|
|
2909
2917
|
ref_key: "tableRef",
|
|
2910
|
-
ref:
|
|
2918
|
+
ref: R,
|
|
2911
2919
|
data: C,
|
|
2912
|
-
onSelectionChange:
|
|
2920
|
+
onSelectionChange: D,
|
|
2913
2921
|
class: "table"
|
|
2914
2922
|
}, {
|
|
2915
2923
|
default: d(() => {
|
|
2916
|
-
var
|
|
2924
|
+
var ie;
|
|
2917
2925
|
return [
|
|
2918
|
-
r.readOnly ?
|
|
2926
|
+
r.readOnly ? q("", !0) : (p(), P(ce, {
|
|
2919
2927
|
key: 0,
|
|
2920
2928
|
type: "selection",
|
|
2921
2929
|
width: "50"
|
|
2922
2930
|
})),
|
|
2923
|
-
(p(!0), V(
|
|
2924
|
-
var
|
|
2931
|
+
(p(!0), V(ae, null, pe(U.value, (N) => {
|
|
2932
|
+
var we;
|
|
2925
2933
|
return p(), P(ce, {
|
|
2926
|
-
prop:
|
|
2927
|
-
label:
|
|
2928
|
-
width: (
|
|
2934
|
+
prop: N.prop,
|
|
2935
|
+
label: F(N),
|
|
2936
|
+
width: (we = N.tableColumnAttributes) == null ? void 0 : we.width,
|
|
2929
2937
|
"show-overflow-tooltip": ""
|
|
2930
2938
|
}, {
|
|
2931
|
-
default: d((
|
|
2939
|
+
default: d((ke) => {
|
|
2932
2940
|
var Ae, qe, St;
|
|
2933
2941
|
return [
|
|
2934
|
-
(Ae =
|
|
2942
|
+
(Ae = N.tableColumnAttributes) != null && Ae.link ? (p(), P(fe, {
|
|
2935
2943
|
key: 0,
|
|
2936
2944
|
class: "router-link",
|
|
2937
|
-
to: `/${l.value}/detail?id=${
|
|
2945
|
+
to: `/${l.value}/detail?id=${ke.row.id}`
|
|
2938
2946
|
}, {
|
|
2939
2947
|
default: d(() => [
|
|
2940
|
-
S("span", null,
|
|
2948
|
+
S("span", null, G(ee(N, ke)), 1)
|
|
2941
2949
|
]),
|
|
2942
2950
|
_: 2
|
|
2943
|
-
}, 1032, ["to"])) : (qe =
|
|
2951
|
+
}, 1032, ["to"])) : (qe = N.tableColumnAttributes) != null && qe.routerLink ? (p(), P(fe, {
|
|
2944
2952
|
key: 1,
|
|
2945
2953
|
class: "router-link",
|
|
2946
|
-
to:
|
|
2954
|
+
to: N.tableColumnAttributes.routerLink.replace("{id}", ke.row.id)
|
|
2947
2955
|
}, {
|
|
2948
2956
|
default: d(() => [
|
|
2949
|
-
S("span", null,
|
|
2957
|
+
S("span", null, G(ee(N, ke)), 1)
|
|
2950
2958
|
]),
|
|
2951
2959
|
_: 2
|
|
2952
|
-
}, 1032, ["to"])) : (p(), V("span", ar,
|
|
2953
|
-
((St =
|
|
2960
|
+
}, 1032, ["to"])) : (p(), V("span", ar, G(ee(N, ke)), 1)),
|
|
2961
|
+
((St = N.tableColumnAttributes) == null ? void 0 : St.type) === "tag" ? (p(), P(me, { key: 3 }, {
|
|
2954
2962
|
default: d(() => [
|
|
2955
|
-
|
|
2963
|
+
K(G(ke.row[N.prop]), 1)
|
|
2956
2964
|
]),
|
|
2957
2965
|
_: 2
|
|
2958
|
-
}, 1024)) :
|
|
2966
|
+
}, 1024)) : q("", !0)
|
|
2959
2967
|
];
|
|
2960
2968
|
}),
|
|
2961
2969
|
_: 2
|
|
2962
2970
|
}, 1032, ["prop", "label", "width"]);
|
|
2963
2971
|
}), 256)),
|
|
2964
|
-
r.operations === void 0 && !((
|
|
2972
|
+
r.operations === void 0 && !((ie = r.selectMode) != null && ie) && !r.readOnly ? (p(), P(ce, {
|
|
2965
2973
|
key: 1,
|
|
2966
2974
|
label: x(o)("common.table.operation"),
|
|
2967
2975
|
width: "120"
|
|
2968
2976
|
}, {
|
|
2969
|
-
default: d((
|
|
2970
|
-
r.updatable !== !1 ? (p(), P(
|
|
2977
|
+
default: d((N) => [
|
|
2978
|
+
r.updatable !== !1 ? (p(), P(H, {
|
|
2971
2979
|
key: 0,
|
|
2972
2980
|
link: "",
|
|
2973
2981
|
type: "primary",
|
|
2974
2982
|
class: "operation-button",
|
|
2975
|
-
onClick: (
|
|
2983
|
+
onClick: (we) => L(N.$index, N.row)
|
|
2976
2984
|
}, {
|
|
2977
2985
|
default: d(() => [
|
|
2978
|
-
|
|
2986
|
+
K(G(x(o)("common.table.edit")), 1)
|
|
2979
2987
|
]),
|
|
2980
2988
|
_: 2
|
|
2981
|
-
}, 1032, ["onClick"])) :
|
|
2989
|
+
}, 1032, ["onClick"])) : q("", !0),
|
|
2982
2990
|
m(ye, {
|
|
2983
2991
|
title: "Are you sure to delete this?",
|
|
2984
|
-
onConfirm: (
|
|
2992
|
+
onConfirm: (we) => u(N.$index, N.row)
|
|
2985
2993
|
}, {
|
|
2986
2994
|
reference: d(() => [
|
|
2987
|
-
r.deletable !== !1 ? (p(), P(
|
|
2995
|
+
r.deletable !== !1 ? (p(), P(H, {
|
|
2988
2996
|
key: 0,
|
|
2989
2997
|
link: "",
|
|
2990
2998
|
type: "primary",
|
|
2991
2999
|
class: "operation-button"
|
|
2992
3000
|
}, {
|
|
2993
3001
|
default: d(() => [
|
|
2994
|
-
|
|
3002
|
+
K(G(x(o)("common.table.delete")), 1)
|
|
2995
3003
|
]),
|
|
2996
3004
|
_: 1
|
|
2997
|
-
})) :
|
|
3005
|
+
})) : q("", !0)
|
|
2998
3006
|
]),
|
|
2999
3007
|
_: 2
|
|
3000
3008
|
}, 1032, ["onConfirm"])
|
|
3001
3009
|
]),
|
|
3002
3010
|
_: 1
|
|
3003
|
-
}, 8, ["label"])) :
|
|
3011
|
+
}, 8, ["label"])) : q("", !0),
|
|
3004
3012
|
r.operations !== void 0 && !r.readOnly ? (p(), P(ce, {
|
|
3005
3013
|
key: 2,
|
|
3006
3014
|
label: x(o)("common.table.operation"),
|
|
3007
3015
|
width: "120"
|
|
3008
3016
|
}, {
|
|
3009
|
-
default: d((
|
|
3010
|
-
(p(!0), V(
|
|
3017
|
+
default: d((N) => [
|
|
3018
|
+
(p(!0), V(ae, null, pe(r.operations, (we) => (p(), P(H, {
|
|
3011
3019
|
class: "operation-button",
|
|
3012
3020
|
link: "",
|
|
3013
3021
|
type: "primary",
|
|
3014
|
-
key:
|
|
3015
|
-
onClick: (
|
|
3022
|
+
key: we.label,
|
|
3023
|
+
onClick: (ke) => {
|
|
3016
3024
|
var Ae, qe;
|
|
3017
|
-
return ((qe = (Ae =
|
|
3025
|
+
return ((qe = (Ae = we.functions) == null ? void 0 : Ae.click) == null ? void 0 : qe.call(Ae, N.$index, N.row)) && v();
|
|
3018
3026
|
}
|
|
3019
3027
|
}, {
|
|
3020
3028
|
default: d(() => [
|
|
3021
|
-
|
|
3029
|
+
K(G(h(we, N)), 1)
|
|
3022
3030
|
]),
|
|
3023
3031
|
_: 2
|
|
3024
3032
|
}, 1032, ["onClick"]))), 128))
|
|
3025
3033
|
]),
|
|
3026
3034
|
_: 1
|
|
3027
|
-
}, 8, ["label"])) :
|
|
3035
|
+
}, 8, ["label"])) : q("", !0)
|
|
3028
3036
|
];
|
|
3029
3037
|
}),
|
|
3030
3038
|
_: 1
|
|
3031
3039
|
}, 8, ["data"])), [
|
|
3032
|
-
[Xe,
|
|
3040
|
+
[Xe, Z.value]
|
|
3033
3041
|
]),
|
|
3034
|
-
|
|
3042
|
+
Y.value ? q("", !0) : (p(), P(Ve, {
|
|
3035
3043
|
key: 0,
|
|
3036
3044
|
size: "small",
|
|
3037
3045
|
background: "",
|
|
3038
3046
|
onSizeChange: k,
|
|
3039
3047
|
onCurrentChange: O,
|
|
3040
|
-
currentPage:
|
|
3041
|
-
"onUpdate:currentPage": $[1] || ($[1] = (
|
|
3048
|
+
currentPage: z.pageNo,
|
|
3049
|
+
"onUpdate:currentPage": $[1] || ($[1] = (ie) => z.pageNo = ie),
|
|
3042
3050
|
"page-sizes": [10, 20, 50, 100],
|
|
3043
|
-
"page-size":
|
|
3051
|
+
"page-size": z.pageSize,
|
|
3044
3052
|
layout: "total, sizes, prev, pager, next",
|
|
3045
|
-
total:
|
|
3053
|
+
total: z.totalElements
|
|
3046
3054
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
3047
3055
|
m(_o, {
|
|
3048
|
-
model:
|
|
3049
|
-
mode:
|
|
3050
|
-
id:
|
|
3051
|
-
afterSubmitFunc:
|
|
3056
|
+
model: b.model,
|
|
3057
|
+
mode: j.value,
|
|
3058
|
+
id: le.value,
|
|
3059
|
+
afterSubmitFunc: v,
|
|
3052
3060
|
visible: i.value,
|
|
3053
|
-
"onUpdate:visible": $[2] || ($[2] = (
|
|
3061
|
+
"onUpdate:visible": $[2] || ($[2] = (ie) => i.value = ie)
|
|
3054
3062
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
3055
3063
|
], 2);
|
|
3056
3064
|
};
|
|
3057
3065
|
}
|
|
3058
|
-
}), it = /* @__PURE__ */
|
|
3066
|
+
}), it = /* @__PURE__ */ ve(lr, [["__scopeId", "data-v-5307a4aa"]]), ir = { class: "nav-bar" }, cr = { style: { "font-size": "16px" } }, ur = {
|
|
3059
3067
|
key: 0,
|
|
3060
3068
|
class: "info-card-wrapper"
|
|
3061
|
-
}, dr = { class: "icon-wrapper" }, pr = { class: "info-wrapper" }, fr = { class: "title-wrapper" }, mr = { class: "tabs-wrapper" }, hr = { class: "dialog-footer" }, gr = /* @__PURE__ */
|
|
3069
|
+
}, dr = { class: "icon-wrapper" }, pr = { class: "info-wrapper" }, fr = { class: "title-wrapper" }, mr = { class: "tabs-wrapper" }, hr = { class: "dialog-footer" }, gr = /* @__PURE__ */ Ce({
|
|
3062
3070
|
__name: "DetailPage",
|
|
3063
3071
|
setup(e) {
|
|
3064
|
-
const { t } = Qe(), o = Ke(), n = ct(), s = Te(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), f = A(-1), y = A(), C = A(),
|
|
3072
|
+
const { t } = Qe(), o = Ke(), n = ct(), s = Te(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), f = A(-1), y = A(), C = A(), M = A("summary"), R = A(""), B = A(""), j = A(""), Z = A(0), Y = de({
|
|
3065
3073
|
api: "",
|
|
3066
3074
|
fields: []
|
|
3067
|
-
}),
|
|
3068
|
-
let
|
|
3069
|
-
|
|
3075
|
+
}), le = de([]);
|
|
3076
|
+
let z = [];
|
|
3077
|
+
Pe([
|
|
3070
3078
|
() => n.currentRoute.value,
|
|
3071
3079
|
_e
|
|
3072
3080
|
], () => {
|
|
@@ -3075,48 +3083,48 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3075
3083
|
immediate: !0,
|
|
3076
3084
|
deep: !0
|
|
3077
3085
|
});
|
|
3078
|
-
function
|
|
3086
|
+
function U(u) {
|
|
3079
3087
|
f.value = parseInt(u.index) - 1;
|
|
3080
3088
|
}
|
|
3081
|
-
function
|
|
3089
|
+
function ee() {
|
|
3082
3090
|
var O;
|
|
3083
|
-
let u = (O =
|
|
3091
|
+
let u = (O = z[f.value].api) == null ? void 0 : O.replace("/select", "");
|
|
3084
3092
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
3085
|
-
const c =
|
|
3086
|
-
|
|
3093
|
+
const c = Y.api + "/" + s.value + u, k = C.value.multipleSelection.map((L) => L.id);
|
|
3094
|
+
$e(c, "POST", k).then(() => {
|
|
3087
3095
|
y.value.refresh(), l.value = !1;
|
|
3088
3096
|
});
|
|
3089
3097
|
}
|
|
3090
3098
|
function h(u, c, k) {
|
|
3091
|
-
var
|
|
3099
|
+
var T;
|
|
3092
3100
|
k.functions || (k.functions = {}), k.functions.create = () => {
|
|
3093
3101
|
l.value = !0, C.value && C.value.refresh();
|
|
3094
3102
|
};
|
|
3095
3103
|
let O = Ge(c);
|
|
3096
3104
|
O.tableConfig || (O.tableConfig = {}), O.tableConfig.selectMode = !0, O.tableConfig.queryParams = {}, u.queryParamName && (O.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
3097
|
-
for (var
|
|
3098
|
-
O.fields[
|
|
3099
|
-
|
|
3105
|
+
for (var L in O.fields)
|
|
3106
|
+
O.fields[L].tableColumnAttributes && (T = O.fields[L].tableColumnAttributes) != null && T.link && (O.fields[L].tableColumnAttributes.link = !1);
|
|
3107
|
+
z.push(O), k.labels = {
|
|
3100
3108
|
create: "common.table.add",
|
|
3101
3109
|
delete: "common.table.remove"
|
|
3102
|
-
}, k.functions.batchDelete = (
|
|
3103
|
-
var
|
|
3104
|
-
let
|
|
3105
|
-
|
|
3106
|
-
const
|
|
3107
|
-
|
|
3110
|
+
}, k.functions.batchDelete = (D) => {
|
|
3111
|
+
var b;
|
|
3112
|
+
let F = (b = z[f.value].api) == null ? void 0 : b.replace("/select", "");
|
|
3113
|
+
F = F == null ? void 0 : F.substring(F.lastIndexOf("/"));
|
|
3114
|
+
const _ = Y.api + "/" + s.value + F, W = D.map(($) => $.id);
|
|
3115
|
+
be.delete(`${_}/${W.join(",")}`).then(({ data: $ }) => {
|
|
3108
3116
|
$.code === 0 && y.value.refresh();
|
|
3109
3117
|
});
|
|
3110
3118
|
}, k.operations = [
|
|
3111
3119
|
{
|
|
3112
3120
|
label: "common.table.remove",
|
|
3113
3121
|
functions: {
|
|
3114
|
-
click: (
|
|
3115
|
-
var
|
|
3116
|
-
let
|
|
3117
|
-
|
|
3118
|
-
const
|
|
3119
|
-
|
|
3122
|
+
click: (D, F) => {
|
|
3123
|
+
var b;
|
|
3124
|
+
let _ = (b = z[f.value].api) == null ? void 0 : b.replace("/select", "");
|
|
3125
|
+
_ = _ == null ? void 0 : _.substring(_.lastIndexOf("/"));
|
|
3126
|
+
const W = Y.api + "/" + s.value + _;
|
|
3127
|
+
$e(W, "DELETE", F.id).then(() => {
|
|
3120
3128
|
y.value.refresh();
|
|
3121
3129
|
});
|
|
3122
3130
|
}
|
|
@@ -3125,43 +3133,43 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3125
3133
|
], O.api += "/select";
|
|
3126
3134
|
}
|
|
3127
3135
|
function g() {
|
|
3128
|
-
var O,
|
|
3129
|
-
|
|
3136
|
+
var O, L, T;
|
|
3137
|
+
le.splice(0);
|
|
3130
3138
|
const u = o.params.model;
|
|
3131
3139
|
if (_e.value[u] === void 0) {
|
|
3132
3140
|
console.warn("Detail page model not exist:", u);
|
|
3133
3141
|
return;
|
|
3134
3142
|
} else
|
|
3135
3143
|
console.debug("Detail page model found:", u, _e.value[u]);
|
|
3136
|
-
ze(
|
|
3144
|
+
ze(Y);
|
|
3137
3145
|
const c = Ge(_e.value[u]);
|
|
3138
|
-
Object.assign(
|
|
3139
|
-
const k = (
|
|
3146
|
+
Object.assign(Y, c), Z.value++, f.value = -1, M.value = "summary";
|
|
3147
|
+
const k = (L = (O = Y.pageConfig) == null ? void 0 : O.detailPage) == null ? void 0 : L.tabs;
|
|
3140
3148
|
if (k)
|
|
3141
|
-
for (let
|
|
3142
|
-
const
|
|
3143
|
-
if (
|
|
3144
|
-
|
|
3145
|
-
let
|
|
3146
|
-
|
|
3149
|
+
for (let D of k) {
|
|
3150
|
+
const F = Ge(_e.value[D.modelKey]);
|
|
3151
|
+
if (le.push(F), D.type === "table") {
|
|
3152
|
+
F.tableConfig || (F.tableConfig = {});
|
|
3153
|
+
let _ = F.tableConfig;
|
|
3154
|
+
_.showPane = !1, D.modelRelationType === "associated" ? h(D, F, _) : D.modelRelationType === "child" && (z.push({
|
|
3147
3155
|
fields: []
|
|
3148
|
-
}),
|
|
3149
|
-
|
|
3150
|
-
})),
|
|
3151
|
-
var
|
|
3152
|
-
return (
|
|
3153
|
-
})),
|
|
3154
|
-
var
|
|
3155
|
-
return !((
|
|
3156
|
-
})),
|
|
3156
|
+
}), F.formConfig === void 0 && (F.formConfig = {}), F.formConfig.functions === void 0 && (F.formConfig.functions = {}), D.queryParamName && (F.formConfig.functions.beforeSubmit = (W) => {
|
|
3157
|
+
W[D.queryParamName] = s.value;
|
|
3158
|
+
})), _.queryParams || (_.queryParams = {}), D.queryParamName && (_.queryParams[D.queryParamName] = s.value), D.queryParams && Object.assign(_.queryParams, D.queryParams), _.readOnly = (T = D.readOnly) != null ? T : !1, D.includeFields && (F.fields = F.fields.filter((W) => {
|
|
3159
|
+
var b;
|
|
3160
|
+
return (b = D.includeFields) == null ? void 0 : b.includes(W.prop);
|
|
3161
|
+
})), D.excludeFields && (F.fields = F.fields.filter((W) => {
|
|
3162
|
+
var b;
|
|
3163
|
+
return !((b = D.excludeFields) != null && b.includes(W.prop));
|
|
3164
|
+
})), D.tooltip && (_.tooltip = D.tooltip);
|
|
3157
3165
|
}
|
|
3158
3166
|
}
|
|
3159
3167
|
}
|
|
3160
|
-
|
|
3168
|
+
Pe(
|
|
3161
3169
|
[
|
|
3162
3170
|
() => {
|
|
3163
3171
|
var u, c;
|
|
3164
|
-
return (c = (u =
|
|
3172
|
+
return (c = (u = Y.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
|
|
3165
3173
|
},
|
|
3166
3174
|
() => {
|
|
3167
3175
|
var u;
|
|
@@ -3170,13 +3178,13 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3170
3178
|
],
|
|
3171
3179
|
(u) => {
|
|
3172
3180
|
Be(() => {
|
|
3173
|
-
var k, O,
|
|
3174
|
-
const c = (O = (k =
|
|
3175
|
-
c && (
|
|
3176
|
-
var
|
|
3177
|
-
if (
|
|
3178
|
-
const
|
|
3179
|
-
|
|
3181
|
+
var k, O, L;
|
|
3182
|
+
const c = (O = (k = Y.pageConfig) == null ? void 0 : k.detailPage) == null ? void 0 : O.infoCard;
|
|
3183
|
+
c && (R.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", B.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", j.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (L = Y.fields) == null || L.forEach((T) => {
|
|
3184
|
+
var D, F;
|
|
3185
|
+
if (T.prop === c.tagFieldProp) {
|
|
3186
|
+
const _ = (F = (D = T.tableColumnAttributes) == null ? void 0 : D.functions) == null ? void 0 : F.transformValue;
|
|
3187
|
+
_ && (j.value = _(j.value));
|
|
3180
3188
|
}
|
|
3181
3189
|
}));
|
|
3182
3190
|
});
|
|
@@ -3186,16 +3194,16 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3186
3194
|
deep: !0
|
|
3187
3195
|
}
|
|
3188
3196
|
);
|
|
3189
|
-
function
|
|
3197
|
+
function v() {
|
|
3190
3198
|
r.value = !0;
|
|
3191
3199
|
}
|
|
3192
3200
|
function I() {
|
|
3193
3201
|
i.value.refresh();
|
|
3194
3202
|
}
|
|
3195
3203
|
return (u, c) => {
|
|
3196
|
-
var w,
|
|
3197
|
-
const k = E("el-page-header"), O = E("el-button"),
|
|
3198
|
-
return p(), V(
|
|
3204
|
+
var w, J, H, te, oe, ne;
|
|
3205
|
+
const k = E("el-page-header"), O = E("el-button"), L = E("el-icon"), T = E("el-dropdown-item"), D = E("el-dropdown-menu"), F = E("el-dropdown"), _ = E("el-tag"), W = E("el-tab-pane"), b = E("el-tabs"), $ = E("el-dialog");
|
|
3206
|
+
return p(), V(ae, null, [
|
|
3199
3207
|
S("div", ir, [
|
|
3200
3208
|
m(k, {
|
|
3201
3209
|
onClick: c[0] || (c[0] = (X) => x(n).back())
|
|
@@ -3206,7 +3214,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3206
3214
|
content: d(() => {
|
|
3207
3215
|
var X;
|
|
3208
3216
|
return [
|
|
3209
|
-
S("span", cr,
|
|
3217
|
+
S("span", cr, G(x(t)((X = Y == null ? void 0 : Y.name) != null ? X : "")), 1)
|
|
3210
3218
|
];
|
|
3211
3219
|
}),
|
|
3212
3220
|
_: 1
|
|
@@ -3214,24 +3222,24 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3214
3222
|
S("div", null, [
|
|
3215
3223
|
m(O, {
|
|
3216
3224
|
type: "primary",
|
|
3217
|
-
onClick:
|
|
3225
|
+
onClick: v
|
|
3218
3226
|
}, {
|
|
3219
3227
|
default: d(() => [
|
|
3220
|
-
|
|
3228
|
+
K(G(x(t)("common.table.edit")), 1)
|
|
3221
3229
|
]),
|
|
3222
3230
|
_: 1
|
|
3223
3231
|
}),
|
|
3224
|
-
((
|
|
3232
|
+
((J = (w = Y.pageConfig) == null ? void 0 : w.detailPage) == null ? void 0 : J.operationButtons) !== void 0 ? (p(), P(F, { key: 0 }, {
|
|
3225
3233
|
dropdown: d(() => [
|
|
3226
|
-
m(
|
|
3234
|
+
m(D, null, {
|
|
3227
3235
|
default: d(() => {
|
|
3228
|
-
var X,
|
|
3236
|
+
var X, Q;
|
|
3229
3237
|
return [
|
|
3230
|
-
(p(!0), V(
|
|
3231
|
-
onClick: (ce) =>
|
|
3238
|
+
(p(!0), V(ae, null, pe((Q = (X = Y.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : Q.operationButtons, (se) => (p(), P(T, {
|
|
3239
|
+
onClick: (ce) => se.function(i.value.formData)
|
|
3232
3240
|
}, {
|
|
3233
3241
|
default: d(() => [
|
|
3234
|
-
|
|
3242
|
+
K(G(x(t)(se.label)), 1)
|
|
3235
3243
|
]),
|
|
3236
3244
|
_: 2
|
|
3237
3245
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -3243,8 +3251,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3243
3251
|
default: d(() => [
|
|
3244
3252
|
m(O, { style: { margin: "0 10px" } }, {
|
|
3245
3253
|
default: d(() => [
|
|
3246
|
-
|
|
3247
|
-
m(
|
|
3254
|
+
K(G(x(t)("common.basic.more")), 1),
|
|
3255
|
+
m(L, { class: "el-icon--right" }, {
|
|
3248
3256
|
default: d(() => [
|
|
3249
3257
|
m(x(qt))
|
|
3250
3258
|
]),
|
|
@@ -3255,13 +3263,13 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3255
3263
|
})
|
|
3256
3264
|
]),
|
|
3257
3265
|
_: 1
|
|
3258
|
-
})) :
|
|
3266
|
+
})) : q("", !0),
|
|
3259
3267
|
m(O, {
|
|
3260
3268
|
onClick: I,
|
|
3261
3269
|
style: { "border-color": "#bbb", width: "30px" }
|
|
3262
3270
|
}, {
|
|
3263
3271
|
default: d(() => [
|
|
3264
|
-
m(
|
|
3272
|
+
m(L, null, {
|
|
3265
3273
|
default: d(() => [
|
|
3266
3274
|
m(x(Ht))
|
|
3267
3275
|
]),
|
|
@@ -3272,36 +3280,36 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3272
3280
|
})
|
|
3273
3281
|
])
|
|
3274
3282
|
]),
|
|
3275
|
-
(
|
|
3283
|
+
(te = (H = Y.pageConfig) == null ? void 0 : H.detailPage) != null && te.infoCard ? (p(), V("div", ur, [
|
|
3276
3284
|
S("div", dr, [
|
|
3277
|
-
(p(), P(rt((
|
|
3285
|
+
(p(), P(rt((oe = Y.pageConfig.detailPage.infoCard.icon) != null ? oe : ""), { class: "icon" }))
|
|
3278
3286
|
]),
|
|
3279
3287
|
S("div", pr, [
|
|
3280
3288
|
S("div", fr, [
|
|
3281
|
-
S("h1", null, R
|
|
3282
|
-
((
|
|
3289
|
+
S("h1", null, G(R.value), 1),
|
|
3290
|
+
((ne = j.value) == null ? void 0 : ne.length) > 0 ? (p(), P(_, {
|
|
3283
3291
|
key: 0,
|
|
3284
3292
|
size: "small"
|
|
3285
3293
|
}, {
|
|
3286
3294
|
default: d(() => [
|
|
3287
|
-
|
|
3295
|
+
K(G(j.value), 1)
|
|
3288
3296
|
]),
|
|
3289
3297
|
_: 1
|
|
3290
|
-
})) :
|
|
3298
|
+
})) : q("", !0)
|
|
3291
3299
|
]),
|
|
3292
|
-
S("span", null,
|
|
3300
|
+
S("span", null, G(B.value), 1)
|
|
3293
3301
|
])
|
|
3294
|
-
])) :
|
|
3302
|
+
])) : q("", !0),
|
|
3295
3303
|
S("div", mr, [
|
|
3296
|
-
m(
|
|
3297
|
-
modelValue:
|
|
3298
|
-
"onUpdate:modelValue": c[1] || (c[1] = (X) =>
|
|
3299
|
-
onTabClick:
|
|
3304
|
+
m(b, {
|
|
3305
|
+
modelValue: M.value,
|
|
3306
|
+
"onUpdate:modelValue": c[1] || (c[1] = (X) => M.value = X),
|
|
3307
|
+
onTabClick: U
|
|
3300
3308
|
}, {
|
|
3301
3309
|
default: d(() => {
|
|
3302
|
-
var X,
|
|
3310
|
+
var X, Q;
|
|
3303
3311
|
return [
|
|
3304
|
-
m(
|
|
3312
|
+
m(W, {
|
|
3305
3313
|
label: x(t)("common.basic.summary"),
|
|
3306
3314
|
name: "summary"
|
|
3307
3315
|
}, {
|
|
@@ -3310,17 +3318,17 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3310
3318
|
ref_key: "formViewRef",
|
|
3311
3319
|
ref: i,
|
|
3312
3320
|
id: s.value,
|
|
3313
|
-
sessionId:
|
|
3321
|
+
sessionId: Z.value,
|
|
3314
3322
|
mode: a.value,
|
|
3315
|
-
model:
|
|
3323
|
+
model: Y
|
|
3316
3324
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
3317
3325
|
]),
|
|
3318
3326
|
_: 1
|
|
3319
3327
|
}, 8, ["label"]),
|
|
3320
|
-
(p(!0), V(
|
|
3328
|
+
(p(!0), V(ae, null, pe((Q = (X = Y.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : Q.tabs, (se) => {
|
|
3321
3329
|
var ce;
|
|
3322
|
-
return p(), P(
|
|
3323
|
-
label: x(t)((ce =
|
|
3330
|
+
return p(), P(W, {
|
|
3331
|
+
label: x(t)((ce = se.name) != null ? ce : "")
|
|
3324
3332
|
}, null, 8, ["label"]);
|
|
3325
3333
|
}), 256))
|
|
3326
3334
|
];
|
|
@@ -3331,8 +3339,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3331
3339
|
key: 0,
|
|
3332
3340
|
ref_key: "tabPaneTableRef",
|
|
3333
3341
|
ref: y,
|
|
3334
|
-
model:
|
|
3335
|
-
}, null, 8, ["model"])) :
|
|
3342
|
+
model: le[f.value]
|
|
3343
|
+
}, null, 8, ["model"])) : q("", !0),
|
|
3336
3344
|
m($, {
|
|
3337
3345
|
modelValue: l.value,
|
|
3338
3346
|
"onUpdate:modelValue": c[3] || (c[3] = (X) => l.value = X),
|
|
@@ -3345,16 +3353,16 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3345
3353
|
onClick: c[2] || (c[2] = (X) => l.value = !1)
|
|
3346
3354
|
}, {
|
|
3347
3355
|
default: d(() => [
|
|
3348
|
-
|
|
3356
|
+
K(G(x(t)("common.basic.cancel")), 1)
|
|
3349
3357
|
]),
|
|
3350
3358
|
_: 1
|
|
3351
3359
|
}),
|
|
3352
3360
|
m(O, {
|
|
3353
3361
|
type: "primary",
|
|
3354
|
-
onClick:
|
|
3362
|
+
onClick: ee
|
|
3355
3363
|
}, {
|
|
3356
3364
|
default: d(() => [
|
|
3357
|
-
|
|
3365
|
+
K(G(x(t)("common.basic.save")), 1)
|
|
3358
3366
|
]),
|
|
3359
3367
|
_: 1
|
|
3360
3368
|
})
|
|
@@ -3365,8 +3373,8 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3365
3373
|
key: 0,
|
|
3366
3374
|
ref_key: "selectTableRef",
|
|
3367
3375
|
ref: C,
|
|
3368
|
-
model: x(
|
|
3369
|
-
}, null, 8, ["model"])) :
|
|
3376
|
+
model: x(z)[f.value]
|
|
3377
|
+
}, null, 8, ["model"])) : q("", !0)
|
|
3370
3378
|
]),
|
|
3371
3379
|
_: 1
|
|
3372
3380
|
}, 8, ["modelValue", "title"])
|
|
@@ -3376,13 +3384,13 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3376
3384
|
mode: "update",
|
|
3377
3385
|
visible: r.value,
|
|
3378
3386
|
"onUpdate:visible": c[4] || (c[4] = (X) => r.value = X),
|
|
3379
|
-
model:
|
|
3387
|
+
model: Y,
|
|
3380
3388
|
afterSubmitFunc: I
|
|
3381
3389
|
}, null, 8, ["id", "visible", "model"])
|
|
3382
3390
|
], 64);
|
|
3383
3391
|
};
|
|
3384
3392
|
}
|
|
3385
|
-
}), _r = /* @__PURE__ */
|
|
3393
|
+
}), _r = /* @__PURE__ */ ve(gr, [["__scopeId", "data-v-cc1c9498"]]), br = { class: "page-title" }, vr = /* @__PURE__ */ Ce({
|
|
3386
3394
|
__name: "TablePage",
|
|
3387
3395
|
setup(e) {
|
|
3388
3396
|
const { t } = Qe(), o = Ke(), n = ct(), s = A(), r = A([]), l = de({
|
|
@@ -3390,20 +3398,20 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3390
3398
|
fields: []
|
|
3391
3399
|
}), a = de(Ze({}, l));
|
|
3392
3400
|
function i() {
|
|
3393
|
-
var y, C,
|
|
3394
|
-
r.value = [], l.pageConfig && ((C = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && C.tabViewAttributes) && (r.value = (
|
|
3395
|
-
let
|
|
3396
|
-
return
|
|
3397
|
-
key:
|
|
3398
|
-
label:
|
|
3399
|
-
icon:
|
|
3400
|
-
disabled:
|
|
3401
|
-
model:
|
|
3401
|
+
var y, C, M, R, B;
|
|
3402
|
+
r.value = [], l.pageConfig && ((C = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && C.tabViewAttributes) && (r.value = (B = (R = (M = l.pageConfig) == null ? void 0 : M.tablePage) == null ? void 0 : R.tabViewAttributes) == null ? void 0 : B.map((j) => {
|
|
3403
|
+
let Z;
|
|
3404
|
+
return j.modelKey && _e.value[j.modelKey] ? Z = Ge(_e.value[j.modelKey]) : Z = Ge(l), j.queryParams && (Z.tableConfig || (Z.tableConfig = {}), Z.tableConfig.queryParams = j.queryParams), j.fields && (Z.fields = j.fields), j.modelKey && (Z.breadcrumbRoute = l.route), {
|
|
3405
|
+
key: j.key,
|
|
3406
|
+
label: j.label,
|
|
3407
|
+
icon: j.icon,
|
|
3408
|
+
disabled: j.disabled,
|
|
3409
|
+
model: Z
|
|
3402
3410
|
};
|
|
3403
3411
|
}));
|
|
3404
3412
|
}
|
|
3405
3413
|
function f() {
|
|
3406
|
-
var
|
|
3414
|
+
var M, R;
|
|
3407
3415
|
console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", _e.value);
|
|
3408
3416
|
const y = o.params.model;
|
|
3409
3417
|
if (_e.value[y] === void 0) {
|
|
@@ -3412,9 +3420,9 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3412
3420
|
}
|
|
3413
3421
|
ze(l);
|
|
3414
3422
|
const C = Ge(_e.value[y]);
|
|
3415
|
-
Object.assign(l, C), (
|
|
3423
|
+
Object.assign(l, C), (R = (M = l.pageConfig) == null ? void 0 : M.tablePage) != null && R.tabViewAttributes || Object.assign(a, l), i();
|
|
3416
3424
|
}
|
|
3417
|
-
return
|
|
3425
|
+
return Pe([
|
|
3418
3426
|
() => n.currentRoute.value,
|
|
3419
3427
|
_e
|
|
3420
3428
|
], () => {
|
|
@@ -3423,20 +3431,20 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3423
3431
|
immediate: !0,
|
|
3424
3432
|
deep: !0
|
|
3425
3433
|
}), (y, C) => {
|
|
3426
|
-
var
|
|
3427
|
-
const
|
|
3428
|
-
return p(), V(
|
|
3429
|
-
S("h1",
|
|
3430
|
-
m(
|
|
3434
|
+
var R;
|
|
3435
|
+
const M = E("el-scrollbar");
|
|
3436
|
+
return p(), V(ae, null, [
|
|
3437
|
+
S("h1", br, G(x(t)((R = l.name) != null ? R : "")), 1),
|
|
3438
|
+
m(M, null, {
|
|
3431
3439
|
default: d(() => {
|
|
3432
|
-
var
|
|
3440
|
+
var B, j;
|
|
3433
3441
|
return [
|
|
3434
|
-
(
|
|
3442
|
+
(j = (B = l.pageConfig) == null ? void 0 : B.tablePage) != null && j.tabViewAttributes ? (p(), P(ho, {
|
|
3435
3443
|
key: 0,
|
|
3436
3444
|
class: "tabs-wrapper",
|
|
3437
3445
|
cards: r.value,
|
|
3438
3446
|
tableRef: s.value
|
|
3439
|
-
}, null, 8, ["cards", "tableRef"])) :
|
|
3447
|
+
}, null, 8, ["cards", "tableRef"])) : q("", !0)
|
|
3440
3448
|
];
|
|
3441
3449
|
}),
|
|
3442
3450
|
_: 1
|
|
@@ -3450,7 +3458,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
|
|
|
3450
3458
|
], 64);
|
|
3451
3459
|
};
|
|
3452
3460
|
}
|
|
3453
|
-
}), yr = /* @__PURE__ */
|
|
3461
|
+
}), yr = /* @__PURE__ */ ve(vr, [["__scopeId", "data-v-1a472785"]]), wr = [
|
|
3454
3462
|
jo,
|
|
3455
3463
|
Vs,
|
|
3456
3464
|
Wt,
|