@vancone/console-component 0.1.0-beta.32 → 0.1.0-beta.33
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.
|
@@ -2,7 +2,7 @@ var uo = Object.defineProperty, po = Object.defineProperties;
|
|
|
2
2
|
var fo = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var bt = Object.getOwnPropertySymbols;
|
|
4
4
|
var mo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var yt = (e, o, t) => o in e ? uo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t,
|
|
5
|
+
var yt = (e, o, t) => o in e ? uo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, Je = (e, o) => {
|
|
6
6
|
for (var t in o || (o = {}))
|
|
7
7
|
mo.call(o, t) && yt(e, t, o[t]);
|
|
8
8
|
if (bt)
|
|
@@ -26,33 +26,33 @@ var ye = (e, o, t) => new Promise((n, s) => {
|
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
27
|
a((t = t.apply(e, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as
|
|
30
|
-
import { useRoute as
|
|
29
|
+
import { openBlock as p, createElementBlock as T, createElementVNode as S, defineComponent as _e, reactive as re, resolveComponent as E, createVNode as _, withCtx as m, unref as k, Fragment as oe, renderList as ce, toDisplayString as R, normalizeStyle as Te, ref as N, onMounted as pt, createCommentVNode as B, createTextVNode as Q, createBlock as V, resolveDynamicComponent as Ze, effectScope as At, markRaw as Pe, toRaw as Le, hasInjectionContext as _o, inject as go, getCurrentInstance as vo, watch as Se, isRef as je, isReactive as ft, toRef as rt, nextTick as et, computed as De, getCurrentScope as bo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as Mt, resolveDirective as Vt, withDirectives as Ut } from "vue";
|
|
30
|
+
import { useRoute as Be, useRouter as st } from "vue-router";
|
|
31
31
|
import So from "axios";
|
|
32
|
-
import { ElMessage as
|
|
32
|
+
import { ElMessage as at, ElMessageBox as Co } from "element-plus";
|
|
33
33
|
import { Search as Tt, ArrowRight as Oo, Check as ko, Refresh as Dt, QuestionFilled as Eo, Download as xo, ArrowDown as $o } from "@element-plus/icons-vue";
|
|
34
|
-
import { createI18n as Po, useI18n as
|
|
34
|
+
import { createI18n as Po, useI18n as He } from "vue-i18n";
|
|
35
35
|
import { cloneDeep as Ue } from "lodash";
|
|
36
|
-
const
|
|
36
|
+
const pe = (e, o) => {
|
|
37
37
|
const t = e.__vccOpts || e;
|
|
38
38
|
for (const [n, s] of o)
|
|
39
39
|
t[n] = s;
|
|
40
40
|
return t;
|
|
41
41
|
}, Io = {}, No = { class: "building" };
|
|
42
42
|
function Ao(e, o) {
|
|
43
|
-
return p(),
|
|
43
|
+
return p(), T("div", No);
|
|
44
44
|
}
|
|
45
|
-
const Mo = /* @__PURE__ */
|
|
45
|
+
const Mo = /* @__PURE__ */ pe(Io, [["render", Ao], ["__scopeId", "data-v-07bd45d2"]]), de = So.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
de.interceptors.request.use((e) => e);
|
|
50
|
+
de.interceptors.response.use((e) => {
|
|
51
51
|
const { headers: o, method: t } = e.config, { code: n, message: s } = e.data, { "No-Success-Message": r } = o, l = t !== "get";
|
|
52
|
-
return n === 0 ? (l && !r &&
|
|
52
|
+
return n === 0 ? (l && !r && at({
|
|
53
53
|
message: s,
|
|
54
54
|
type: "success"
|
|
55
|
-
}), Promise.resolve(e)) : (
|
|
55
|
+
}), Promise.resolve(e)) : (at({
|
|
56
56
|
type: "error",
|
|
57
57
|
message: s
|
|
58
58
|
}), Promise.reject(new Error(`${n}`)));
|
|
@@ -67,7 +67,7 @@ pe.interceptors.response.use((e) => {
|
|
|
67
67
|
window.location.href = `${i}/?from=${a}`;
|
|
68
68
|
}
|
|
69
69
|
const { message: r, error: l } = t.data;
|
|
70
|
-
|
|
70
|
+
at({
|
|
71
71
|
type: "error",
|
|
72
72
|
message: r || l
|
|
73
73
|
});
|
|
@@ -79,16 +79,16 @@ const Rt = () => {
|
|
|
79
79
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
80
80
|
}, Ft = Rt();
|
|
81
81
|
function Vo() {
|
|
82
|
-
return
|
|
82
|
+
return de.get(`//${Ft}/api/passport/service/v1/account`);
|
|
83
83
|
}
|
|
84
84
|
function Uo() {
|
|
85
|
-
return
|
|
85
|
+
return de.delete(`//${Ft}/api/passport/service/v1/login`);
|
|
86
86
|
}
|
|
87
87
|
function To() {
|
|
88
|
-
return
|
|
88
|
+
return de.get("https://console.vancone.com/api/console/app-group?pageSize=1000");
|
|
89
89
|
}
|
|
90
90
|
function Do() {
|
|
91
|
-
return
|
|
91
|
+
return de.get("https://console.vancone.com/api/console/app?pageSize=1000");
|
|
92
92
|
}
|
|
93
93
|
const Ro = {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -98,7 +98,7 @@ const Ro = {
|
|
|
98
98
|
viewBox: "0 0 1024 1024"
|
|
99
99
|
};
|
|
100
100
|
function Fo(e, o) {
|
|
101
|
-
return p(),
|
|
101
|
+
return p(), T("svg", Ro, o[0] || (o[0] = [
|
|
102
102
|
S("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
|
|
103
103
|
]));
|
|
104
104
|
}
|
|
@@ -110,7 +110,7 @@ const Go = { render: Fo }, Lo = {
|
|
|
110
110
|
viewBox: "0 0 1024 1024"
|
|
111
111
|
};
|
|
112
112
|
function jo(e, o) {
|
|
113
|
-
return p(),
|
|
113
|
+
return p(), T("svg", Lo, o[0] || (o[0] = [
|
|
114
114
|
S("path", { d: "M487.01 113.079a56.076 56.076 0 0 1 73.216 21.918l1.901 3.536 100.401 203.215L886.93 374.32a56.076 56.076 0 0 1 33.939 92.647l-2.877 3.024-162.329 158.061L793.99 851.31a56.076 56.076 0 0 1-77.726 60.855l-3.609-1.707-200.801-105.472-200.802 105.448a56.076 56.076 0 0 1-81.871-55.345l.512-3.78 38.351-223.256-162.328-158.061a56.076 56.076 0 0 1 27.282-94.989l3.78-.682 224.377-32.573L461.58 138.533a56.08 56.08 0 0 1 25.43-25.454M409.722 408.6l-228.206 33.134 165.132 160.744-39.01 227.133 204.216-107.252 204.19 107.252-39.01-227.133 165.133-160.744L613.96 408.6 511.854 201.9 409.698 408.6z" }, null, -1)
|
|
115
115
|
]));
|
|
116
116
|
}
|
|
@@ -122,7 +122,7 @@ const zo = { render: jo }, qo = {
|
|
|
122
122
|
viewBox: "0 0 1024 1024"
|
|
123
123
|
};
|
|
124
124
|
function Bo(e, o) {
|
|
125
|
-
return p(),
|
|
125
|
+
return p(), T("svg", qo, o[0] || (o[0] = [
|
|
126
126
|
S("path", { d: "M512 109.714c222.184 0 402.286 180.102 402.286 402.286S734.184 914.286 512 914.286l-2.901-.122c-104.546-8.314-189.416-43.52-253.075-105.13l-.024 80.87h-73.143V658.287h207.238v73.143H283.99c52.858 65.048 128.561 101.4 229.45 109.714l7.63-.122C698.662 836.218 841.144 690.737 841.144 512c0-181.784-147.359-329.143-329.143-329.143S182.857 330.216 182.857 512h-73.143c0-222.184 180.102-402.286 402.286-402.286m-48.762 182.857h73.143V475.43h182.857v73.142h-256z" }, null, -1)
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
@@ -147,8 +147,8 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
return t(), (n, s) => {
|
|
150
|
-
const r =
|
|
151
|
-
return p(),
|
|
150
|
+
const r = E("el-input"), l = E("el-scrollbar"), a = E("el-tab-pane"), i = E("el-tabs");
|
|
151
|
+
return p(), T("div", Jo, [
|
|
152
152
|
_(i, { "tab-position": "left" }, {
|
|
153
153
|
default: m(() => [
|
|
154
154
|
_(a, null, {
|
|
@@ -168,24 +168,24 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
168
168
|
}, {
|
|
169
169
|
default: m(() => [
|
|
170
170
|
S("div", Wo, [
|
|
171
|
-
(p(!0),
|
|
171
|
+
(p(!0), T(oe, null, ce(o, (d) => (p(), T("div", Yo, [
|
|
172
172
|
S("h1", null, R(d.name), 1),
|
|
173
173
|
S("div", Qo, [
|
|
174
|
-
(p(!0),
|
|
175
|
-
var
|
|
176
|
-
return p(),
|
|
177
|
-
style:
|
|
174
|
+
(p(!0), T(oe, null, ce(d.apps, (y) => {
|
|
175
|
+
var b, A;
|
|
176
|
+
return p(), T("a", {
|
|
177
|
+
style: Te([{ "text-decoration": "none" }, { pointerEvents: ((b = y.homepageUrl) == null ? void 0 : b.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
|
-
href:
|
|
179
|
+
href: y.homepageUrl
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
y.iconSvg !== void 0 ? (p(), T("div", {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "app-icon",
|
|
184
|
-
innerHTML:
|
|
185
|
-
}, null, 8, Xo)) : (p(),
|
|
184
|
+
innerHTML: y.iconSvg
|
|
185
|
+
}, null, 8, Xo)) : (p(), T("div", Zo, " ")),
|
|
186
186
|
S("h2", {
|
|
187
|
-
style:
|
|
188
|
-
}, R(
|
|
187
|
+
style: Te({ color: ((A = y.homepageUrl) == null ? void 0 : A.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, R(y.name), 5)
|
|
189
189
|
], 12, Ko);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
@@ -221,7 +221,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
221
221
|
]);
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
}), tn = /* @__PURE__ */
|
|
224
|
+
}), tn = /* @__PURE__ */ pe(en, [["__scopeId", "data-v-a4f6252e"]]), on = {
|
|
225
225
|
common: {
|
|
226
226
|
header: {
|
|
227
227
|
product: "Products",
|
|
@@ -297,7 +297,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
297
297
|
yes: "是"
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
},
|
|
300
|
+
}, tt = Po({
|
|
301
301
|
legacy: !1,
|
|
302
302
|
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
303
303
|
messages: {
|
|
@@ -310,7 +310,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
310
310
|
viewBox: "0 0 32 32"
|
|
311
311
|
};
|
|
312
312
|
function rn(e, o) {
|
|
313
|
-
return p(),
|
|
313
|
+
return p(), T("svg", sn, o[0] || (o[0] = [
|
|
314
314
|
S("path", { d: "M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z" }, null, -1)
|
|
315
315
|
]));
|
|
316
316
|
}
|
|
@@ -322,7 +322,7 @@ const an = { render: rn }, ln = {
|
|
|
322
322
|
viewBox: "0 0 1024 1024"
|
|
323
323
|
};
|
|
324
324
|
function cn(e, o) {
|
|
325
|
-
return p(),
|
|
325
|
+
return p(), T("svg", ln, o[0] || (o[0] = [
|
|
326
326
|
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)
|
|
327
327
|
]));
|
|
328
328
|
}
|
|
@@ -334,7 +334,7 @@ const un = { render: cn }, dn = {
|
|
|
334
334
|
viewBox: "0 0 1024 1024"
|
|
335
335
|
};
|
|
336
336
|
function pn(e, o) {
|
|
337
|
-
return p(),
|
|
337
|
+
return p(), T("svg", dn, o[0] || (o[0] = [
|
|
338
338
|
S("path", { d: "M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z" }, null, -1)
|
|
339
339
|
]));
|
|
340
340
|
}
|
|
@@ -345,9 +345,9 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
345
345
|
helpDocUrl: {}
|
|
346
346
|
},
|
|
347
347
|
setup(e) {
|
|
348
|
-
const { t: o } =
|
|
349
|
-
|
|
350
|
-
const a =
|
|
348
|
+
const { t: o } = He(), t = N(), n = N(), s = N(), r = N(), l = e;
|
|
349
|
+
N(!1);
|
|
350
|
+
const a = N(""), i = N(tt.global.locale), d = re([
|
|
351
351
|
{
|
|
352
352
|
id: "en",
|
|
353
353
|
name: "English"
|
|
@@ -358,37 +358,37 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
358
358
|
}
|
|
359
359
|
]);
|
|
360
360
|
pt(() => {
|
|
361
|
-
a.value = decodeURIComponent(
|
|
362
|
-
var
|
|
363
|
-
|
|
361
|
+
a.value = decodeURIComponent(y("passport_username").replace(/\+/g, " ")), a.value === "" && Vo().then(({ data: $ }) => {
|
|
362
|
+
var z;
|
|
363
|
+
$.code == 0 && (a.value = (z = $.data.name) != null ? z : $.data.displayId);
|
|
364
364
|
});
|
|
365
365
|
});
|
|
366
|
-
function
|
|
367
|
-
for (var
|
|
368
|
-
for (var
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
366
|
+
function y($) {
|
|
367
|
+
for (var z = $ + "=", I = document.cookie.split(";"), Y = 0; Y < I.length; Y++) {
|
|
368
|
+
for (var j = I[Y]; j.charAt(0) == " "; ) j = j.substring(1);
|
|
369
|
+
if (j.indexOf(z) != -1)
|
|
370
|
+
return j.substring(z.length, j.length);
|
|
371
371
|
}
|
|
372
372
|
return "";
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function b() {
|
|
375
375
|
Uo().then(() => {
|
|
376
|
-
const
|
|
377
|
-
window.location.href = `//${Rt()}/?from=${
|
|
376
|
+
const $ = escape(window.location.href);
|
|
377
|
+
window.location.href = `//${Rt()}/?from=${$}#login`;
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
|
|
380
|
+
function A($) {
|
|
381
|
+
tt.global.locale.value = $, i.value = $, localStorage.setItem("locale", $);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function D() {
|
|
384
384
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
385
385
|
}
|
|
386
386
|
function L() {
|
|
387
387
|
window.open(l.helpDocUrl, "_blank");
|
|
388
388
|
}
|
|
389
|
-
return (
|
|
390
|
-
const
|
|
391
|
-
return p(),
|
|
389
|
+
return ($, z) => {
|
|
390
|
+
const I = E("el-popover"), Y = E("el-tooltip"), j = E("el-avatar"), K = E("el-menu-item"), ne = E("el-icon"), C = E("el-menu");
|
|
391
|
+
return p(), T("div", mn, [
|
|
392
392
|
S("div", hn, [
|
|
393
393
|
S("div", {
|
|
394
394
|
ref_key: "appCatalogButtonRef",
|
|
@@ -398,9 +398,9 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
398
398
|
}, [
|
|
399
399
|
_(k(an))
|
|
400
400
|
], 512),
|
|
401
|
-
S("h1", null, R(
|
|
401
|
+
S("h1", null, R($.title), 1)
|
|
402
402
|
]),
|
|
403
|
-
_(
|
|
403
|
+
_(I, {
|
|
404
404
|
class: "app-popover",
|
|
405
405
|
"virtual-ref": r.value,
|
|
406
406
|
trigger: "click",
|
|
@@ -413,13 +413,13 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
413
413
|
_: 1
|
|
414
414
|
}, 8, ["virtual-ref"]),
|
|
415
415
|
S("div", _n, [
|
|
416
|
-
_(
|
|
416
|
+
_(Y, {
|
|
417
417
|
effect: "dark",
|
|
418
418
|
content: k(o)("common.header.help"),
|
|
419
419
|
placement: "bottom"
|
|
420
420
|
}, {
|
|
421
421
|
default: m(() => [
|
|
422
|
-
l.helpDocUrl !== void 0 ? (p(),
|
|
422
|
+
l.helpDocUrl !== void 0 ? (p(), T("div", {
|
|
423
423
|
key: 0,
|
|
424
424
|
class: "icon-wrapper",
|
|
425
425
|
onClick: L
|
|
@@ -429,7 +429,7 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
429
429
|
]),
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["content"]),
|
|
432
|
-
_(
|
|
432
|
+
_(Y, {
|
|
433
433
|
effect: "dark",
|
|
434
434
|
content: k(o)("common.header.message"),
|
|
435
435
|
placement: "bottom"
|
|
@@ -442,7 +442,7 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
442
442
|
_: 1
|
|
443
443
|
}, 8, ["content"]),
|
|
444
444
|
S("div", vn, [
|
|
445
|
-
_(
|
|
445
|
+
_(j, {
|
|
446
446
|
size: 30,
|
|
447
447
|
src: "",
|
|
448
448
|
ref_key: "avatarRef",
|
|
@@ -453,7 +453,7 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
453
453
|
]),
|
|
454
454
|
_: 1
|
|
455
455
|
}, 512),
|
|
456
|
-
_(
|
|
456
|
+
_(I, {
|
|
457
457
|
teleported: !1,
|
|
458
458
|
width: "280",
|
|
459
459
|
effect: "dark",
|
|
@@ -465,7 +465,7 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
465
465
|
}, {
|
|
466
466
|
default: m(() => [
|
|
467
467
|
S("div", yn, [
|
|
468
|
-
_(
|
|
468
|
+
_(j, {
|
|
469
469
|
size: 48,
|
|
470
470
|
src: ""
|
|
471
471
|
}, {
|
|
@@ -478,13 +478,13 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
478
478
|
]),
|
|
479
479
|
_(C, { class: "user-menu" }, {
|
|
480
480
|
default: m(() => [
|
|
481
|
-
_(
|
|
481
|
+
_(K, { onClick: D }, {
|
|
482
482
|
default: m(() => [
|
|
483
|
-
|
|
483
|
+
Q(R(k(o)("common.header.userCenter")), 1)
|
|
484
484
|
]),
|
|
485
485
|
_: 1
|
|
486
486
|
}),
|
|
487
|
-
_(
|
|
487
|
+
_(K, {
|
|
488
488
|
ref_key: "switchLanguageRef",
|
|
489
489
|
ref: s,
|
|
490
490
|
style: { display: "flext", "justify-content": "space-between" }
|
|
@@ -500,7 +500,7 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
500
500
|
]),
|
|
501
501
|
_: 1
|
|
502
502
|
}, 512),
|
|
503
|
-
_(
|
|
503
|
+
_(I, {
|
|
504
504
|
teleported: !1,
|
|
505
505
|
width: "150",
|
|
506
506
|
effect: "dark",
|
|
@@ -512,12 +512,12 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
512
512
|
"popper-style": "height: 80px; left: -165px"
|
|
513
513
|
}, {
|
|
514
514
|
default: m(() => [
|
|
515
|
-
(p(!0),
|
|
515
|
+
(p(!0), T(oe, null, ce(d, (h) => (p(), T("div", {
|
|
516
516
|
class: "select-list",
|
|
517
|
-
onClick: (
|
|
517
|
+
onClick: (P) => A(h.id)
|
|
518
518
|
}, [
|
|
519
519
|
S("span", null, R(h.name), 1),
|
|
520
|
-
h.id === i.value ? (p(),
|
|
520
|
+
h.id === i.value ? (p(), V(ne, {
|
|
521
521
|
key: 0,
|
|
522
522
|
style: { color: "#8ba74f" }
|
|
523
523
|
}, {
|
|
@@ -530,9 +530,9 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
530
530
|
]),
|
|
531
531
|
_: 1
|
|
532
532
|
}, 8, ["virtual-ref"]),
|
|
533
|
-
_(
|
|
533
|
+
_(K, { onClick: b }, {
|
|
534
534
|
default: m(() => [
|
|
535
|
-
|
|
535
|
+
Q(R(k(o)("common.header.signOut")), 1)
|
|
536
536
|
]),
|
|
537
537
|
_: 1
|
|
538
538
|
})
|
|
@@ -547,7 +547,7 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
547
547
|
]);
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
|
-
}), Gt = /* @__PURE__ */
|
|
550
|
+
}), Gt = /* @__PURE__ */ pe(Cn, [["__scopeId", "data-v-0c795273"]]), On = { class: "menu-icon-wrapper" }, kn = { class: "menu-icon-wrapper" }, En = /* @__PURE__ */ _e({
|
|
551
551
|
__name: "SideMenuItem",
|
|
552
552
|
props: {
|
|
553
553
|
menu: {}
|
|
@@ -555,8 +555,8 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
555
555
|
setup(e) {
|
|
556
556
|
const o = e;
|
|
557
557
|
return (t, n) => {
|
|
558
|
-
const s =
|
|
559
|
-
return t.menu.children && t.menu.children.length > 0 ? (p(),
|
|
558
|
+
const s = E("SideMenuItem", !0), r = E("el-sub-menu"), l = E("el-menu-item");
|
|
559
|
+
return t.menu.children && t.menu.children.length > 0 ? (p(), V(r, {
|
|
560
560
|
key: 0,
|
|
561
561
|
index: t.menu.path
|
|
562
562
|
}, {
|
|
@@ -564,19 +564,19 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
564
564
|
var a, i, d;
|
|
565
565
|
return [
|
|
566
566
|
S("div", On, [
|
|
567
|
-
(p(),
|
|
567
|
+
(p(), V(Ze((a = t.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
568
568
|
]),
|
|
569
569
|
S("span", null, R(t.$t((d = (i = t.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
|
|
570
570
|
];
|
|
571
571
|
}),
|
|
572
572
|
default: m(() => [
|
|
573
|
-
(p(!0),
|
|
573
|
+
(p(!0), T(oe, null, ce(t.menu.children, (a) => (p(), V(s, {
|
|
574
574
|
key: a.path,
|
|
575
575
|
route: a
|
|
576
576
|
}, null, 8, ["route"]))), 128))
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
|
-
}, 8, ["index"])) : (p(),
|
|
579
|
+
}, 8, ["index"])) : (p(), V(l, {
|
|
580
580
|
key: 1,
|
|
581
581
|
index: o.menu.path,
|
|
582
582
|
style: { height: "40px" }
|
|
@@ -589,19 +589,19 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
589
589
|
}),
|
|
590
590
|
default: m(() => [
|
|
591
591
|
S("div", kn, [
|
|
592
|
-
(p(),
|
|
592
|
+
(p(), V(Ze(t.$props.menu.icon), { class: "menu-icon" }))
|
|
593
593
|
])
|
|
594
594
|
]),
|
|
595
595
|
_: 1
|
|
596
596
|
}, 8, ["index"]));
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
}), xn = /* @__PURE__ */
|
|
599
|
+
}), xn = /* @__PURE__ */ pe(En, [["__scopeId", "data-v-e3b5500a"]]), he = N({}), $n = {}, Ct = N([]);
|
|
600
600
|
var Lt = !1;
|
|
601
|
-
function
|
|
601
|
+
function We(e, o, t) {
|
|
602
602
|
return Array.isArray(e) ? (e.length = Math.max(e.length, o), e.splice(o, 1, t), t) : (e[o] = t, t);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function lt(e, o) {
|
|
605
605
|
if (Array.isArray(e)) {
|
|
606
606
|
e.splice(o, 1);
|
|
607
607
|
return;
|
|
@@ -705,8 +705,8 @@ function zt(e, o) {
|
|
|
705
705
|
* (c) 2024 Eduardo San Martin Morote
|
|
706
706
|
* @license MIT
|
|
707
707
|
*/
|
|
708
|
-
let
|
|
709
|
-
const
|
|
708
|
+
let Ge;
|
|
709
|
+
const ze = (e) => Ge = e, qt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
710
710
|
/* istanbul ignore next */
|
|
711
711
|
Symbol()
|
|
712
712
|
);
|
|
@@ -738,7 +738,7 @@ function Bt(e) {
|
|
|
738
738
|
}
|
|
739
739
|
return o.status >= 200 && o.status <= 299;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Ye(e) {
|
|
742
742
|
try {
|
|
743
743
|
e.dispatchEvent(new MouseEvent("click"));
|
|
744
744
|
} catch (o) {
|
|
@@ -746,11 +746,11 @@ function We(e) {
|
|
|
746
746
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
const
|
|
749
|
+
const Qe = typeof navigator == "object" ? navigator : { userAgent: "" }, Ht = /Macintosh/.test(Qe.userAgent) && /AppleWebKit/.test(Qe.userAgent) && !/Safari/.test(Qe.userAgent), Jt = Ie ? (
|
|
750
750
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
751
751
|
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Ht ? Dn : (
|
|
752
752
|
// Use msSaveOrOpenBlob as a second approach
|
|
753
|
-
"msSaveOrOpenBlob" in
|
|
753
|
+
"msSaveOrOpenBlob" in Qe ? Rn : (
|
|
754
754
|
// Fallback to using FileReader and a popup
|
|
755
755
|
Fn
|
|
756
756
|
)
|
|
@@ -759,10 +759,10 @@ const Ye = typeof navigator == "object" ? navigator : { userAgent: "" }, Ht = /M
|
|
|
759
759
|
};
|
|
760
760
|
function Dn(e, o = "download", t) {
|
|
761
761
|
const n = document.createElement("a");
|
|
762
|
-
n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Bt(n.href) ? mt(e, o, t) : (n.target = "_blank",
|
|
762
|
+
n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Bt(n.href) ? mt(e, o, t) : (n.target = "_blank", Ye(n)) : Ye(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
763
763
|
URL.revokeObjectURL(n.href);
|
|
764
764
|
}, 4e4), setTimeout(function() {
|
|
765
|
-
|
|
765
|
+
Ye(n);
|
|
766
766
|
}, 0));
|
|
767
767
|
}
|
|
768
768
|
function Rn(e, o = "download", t) {
|
|
@@ -772,7 +772,7 @@ function Rn(e, o = "download", t) {
|
|
|
772
772
|
else {
|
|
773
773
|
const n = document.createElement("a");
|
|
774
774
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
775
|
-
|
|
775
|
+
Ye(n);
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
else
|
|
@@ -888,10 +888,10 @@ function me(e) {
|
|
|
888
888
|
}
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
const Kt = "🍍 Pinia (root)",
|
|
891
|
+
const Kt = "🍍 Pinia (root)", Ke = "_root";
|
|
892
892
|
function Bn(e) {
|
|
893
893
|
return ht(e) ? {
|
|
894
|
-
id:
|
|
894
|
+
id: Ke,
|
|
895
895
|
label: Kt
|
|
896
896
|
} : {
|
|
897
897
|
id: e.$id,
|
|
@@ -960,7 +960,7 @@ function Wn(e) {
|
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
let Ve = !0;
|
|
963
|
-
const
|
|
963
|
+
const Xe = [], $e = "pinia:mutations", te = "pinia", { assign: Yn } = Object, ot = (e) => "🍍 " + e;
|
|
964
964
|
function Qn(e, o) {
|
|
965
965
|
zt({
|
|
966
966
|
id: "dev.esm.pinia",
|
|
@@ -968,7 +968,7 @@ function Qn(e, o) {
|
|
|
968
968
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
969
969
|
packageName: "pinia",
|
|
970
970
|
homepage: "https://pinia.vuejs.org",
|
|
971
|
-
componentStateTypes:
|
|
971
|
+
componentStateTypes: Xe,
|
|
972
972
|
app: e
|
|
973
973
|
}, (t) => {
|
|
974
974
|
typeof t.now != "function" && ee("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."), t.addTimelineLayer({
|
|
@@ -1026,12 +1026,12 @@ function Qn(e, o) {
|
|
|
1026
1026
|
const l = n.componentInstance.proxy._pStores;
|
|
1027
1027
|
Object.values(l).forEach((a) => {
|
|
1028
1028
|
n.instanceData.state.push({
|
|
1029
|
-
type:
|
|
1029
|
+
type: ot(a.$id),
|
|
1030
1030
|
key: "state",
|
|
1031
1031
|
editable: !0,
|
|
1032
1032
|
value: a._isOptionsAPI ? {
|
|
1033
1033
|
_custom: {
|
|
1034
|
-
value:
|
|
1034
|
+
value: Le(a.$state),
|
|
1035
1035
|
actions: [
|
|
1036
1036
|
{
|
|
1037
1037
|
icon: "restore",
|
|
@@ -1045,14 +1045,14 @@ function Qn(e, o) {
|
|
|
1045
1045
|
Object.keys(a.$state).reduce((i, d) => (i[d] = a.$state[d], i), {})
|
|
1046
1046
|
)
|
|
1047
1047
|
}), a._getters && a._getters.length && n.instanceData.state.push({
|
|
1048
|
-
type:
|
|
1048
|
+
type: ot(a.$id),
|
|
1049
1049
|
key: "getters",
|
|
1050
1050
|
editable: !1,
|
|
1051
1051
|
value: a._getters.reduce((i, d) => {
|
|
1052
1052
|
try {
|
|
1053
1053
|
i[d] = a[d];
|
|
1054
|
-
} catch (
|
|
1055
|
-
i[d] =
|
|
1054
|
+
} catch (y) {
|
|
1055
|
+
i[d] = y;
|
|
1056
1056
|
}
|
|
1057
1057
|
return i;
|
|
1058
1058
|
}, {})
|
|
@@ -1066,14 +1066,14 @@ function Qn(e, o) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
}), globalThis.$pinia = o, t.on.getInspectorState((n) => {
|
|
1068
1068
|
if (n.app === e && n.inspectorId === te) {
|
|
1069
|
-
const s = n.nodeId ===
|
|
1069
|
+
const s = n.nodeId === Ke ? o : o._s.get(n.nodeId);
|
|
1070
1070
|
if (!s)
|
|
1071
1071
|
return;
|
|
1072
|
-
s && (n.nodeId !==
|
|
1072
|
+
s && (n.nodeId !== Ke && (globalThis.$store = Le(s)), n.state = Hn(s));
|
|
1073
1073
|
}
|
|
1074
1074
|
}), t.on.editInspectorState((n, s) => {
|
|
1075
1075
|
if (n.app === e && n.inspectorId === te) {
|
|
1076
|
-
const r = n.nodeId ===
|
|
1076
|
+
const r = n.nodeId === Ke ? o : o._s.get(n.nodeId);
|
|
1077
1077
|
if (!r)
|
|
1078
1078
|
return ee(`store "${n.nodeId}" not found`, "error");
|
|
1079
1079
|
const { path: l } = n;
|
|
@@ -1095,13 +1095,13 @@ Only state can be modified.`);
|
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
1097
|
function Kn(e, o) {
|
|
1098
|
-
|
|
1098
|
+
Xe.includes(ot(o.$id)) || Xe.push(ot(o.$id)), zt({
|
|
1099
1099
|
id: "dev.esm.pinia",
|
|
1100
1100
|
label: "Pinia 🍍",
|
|
1101
1101
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1102
1102
|
packageName: "pinia",
|
|
1103
1103
|
homepage: "https://pinia.vuejs.org",
|
|
1104
|
-
componentStateTypes:
|
|
1104
|
+
componentStateTypes: Xe,
|
|
1105
1105
|
app: e,
|
|
1106
1106
|
settings: {
|
|
1107
1107
|
logStoreChanges: {
|
|
@@ -1118,7 +1118,7 @@ function Kn(e, o) {
|
|
|
1118
1118
|
}, (t) => {
|
|
1119
1119
|
const n = typeof t.now == "function" ? t.now.bind(t) : Date.now;
|
|
1120
1120
|
o.$onAction(({ after: l, onError: a, name: i, args: d }) => {
|
|
1121
|
-
const
|
|
1121
|
+
const y = Xt++;
|
|
1122
1122
|
t.addTimelineEvent({
|
|
1123
1123
|
layerId: $e,
|
|
1124
1124
|
event: {
|
|
@@ -1130,9 +1130,9 @@ function Kn(e, o) {
|
|
|
1130
1130
|
action: me(i),
|
|
1131
1131
|
args: d
|
|
1132
1132
|
},
|
|
1133
|
-
groupId:
|
|
1133
|
+
groupId: y
|
|
1134
1134
|
}
|
|
1135
|
-
}), l((
|
|
1135
|
+
}), l((b) => {
|
|
1136
1136
|
Oe = void 0, t.addTimelineEvent({
|
|
1137
1137
|
layerId: $e,
|
|
1138
1138
|
event: {
|
|
@@ -1143,12 +1143,12 @@ function Kn(e, o) {
|
|
|
1143
1143
|
store: me(o.$id),
|
|
1144
1144
|
action: me(i),
|
|
1145
1145
|
args: d,
|
|
1146
|
-
result:
|
|
1146
|
+
result: b
|
|
1147
1147
|
},
|
|
1148
|
-
groupId:
|
|
1148
|
+
groupId: y
|
|
1149
1149
|
}
|
|
1150
1150
|
});
|
|
1151
|
-
}), a((
|
|
1151
|
+
}), a((b) => {
|
|
1152
1152
|
Oe = void 0, t.addTimelineEvent({
|
|
1153
1153
|
layerId: $e,
|
|
1154
1154
|
event: {
|
|
@@ -1160,9 +1160,9 @@ function Kn(e, o) {
|
|
|
1160
1160
|
store: me(o.$id),
|
|
1161
1161
|
action: me(i),
|
|
1162
1162
|
args: d,
|
|
1163
|
-
error:
|
|
1163
|
+
error: b
|
|
1164
1164
|
},
|
|
1165
|
-
groupId:
|
|
1165
|
+
groupId: y
|
|
1166
1166
|
}
|
|
1167
1167
|
});
|
|
1168
1168
|
});
|
|
@@ -1226,7 +1226,7 @@ function Kn(e, o) {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
let Xt = 0, Oe;
|
|
1228
1228
|
function kt(e, o, t) {
|
|
1229
|
-
const n = o.reduce((s, r) => (s[r] =
|
|
1229
|
+
const n = o.reduce((s, r) => (s[r] = Le(e)[r], s), {});
|
|
1230
1230
|
for (const s in n)
|
|
1231
1231
|
e[s] = function() {
|
|
1232
1232
|
const r = Xt, l = t ? new Proxy(e, {
|
|
@@ -1247,7 +1247,7 @@ function Xn({ app: e, store: o, options: t }) {
|
|
|
1247
1247
|
if (o._isOptionsAPI = !!t.state, !o._p._testing) {
|
|
1248
1248
|
kt(o, Object.keys(t.actions), o._isOptionsAPI);
|
|
1249
1249
|
const n = o._hotUpdate;
|
|
1250
|
-
|
|
1250
|
+
Le(o)._hotUpdate = function(s) {
|
|
1251
1251
|
n.apply(this, arguments), kt(o, Object.keys(s._hmrPayload.actions), !!o._isOptionsAPI);
|
|
1252
1252
|
};
|
|
1253
1253
|
}
|
|
@@ -1259,11 +1259,11 @@ function Xn({ app: e, store: o, options: t }) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
1261
|
function Zn() {
|
|
1262
|
-
const e = At(!0), o = e.run(() =>
|
|
1262
|
+
const e = At(!0), o = e.run(() => N({}));
|
|
1263
1263
|
let t = [], n = [];
|
|
1264
1264
|
const s = Pe({
|
|
1265
1265
|
install(r) {
|
|
1266
|
-
|
|
1266
|
+
ze(s), s._a = r, r.provide(qt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie && Qn(r, s), n.forEach((l) => t.push(l)), n = [];
|
|
1267
1267
|
},
|
|
1268
1268
|
use(r) {
|
|
1269
1269
|
return !this._a && !Lt ? n.push(r) : t.push(r), this;
|
|
@@ -1284,7 +1284,7 @@ function Zt(e, o) {
|
|
|
1284
1284
|
if (!(t in e))
|
|
1285
1285
|
continue;
|
|
1286
1286
|
const s = e[t];
|
|
1287
|
-
Ne(s) && Ne(n) && !
|
|
1287
|
+
Ne(s) && Ne(n) && !je(n) && !ft(n) ? e[t] = Zt(s, n) : e[t] = n;
|
|
1288
1288
|
}
|
|
1289
1289
|
return e;
|
|
1290
1290
|
}
|
|
@@ -1303,14 +1303,14 @@ function Me(e, ...o) {
|
|
|
1303
1303
|
t(...o);
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
|
-
const es = (e) => e(), xt = Symbol(),
|
|
1306
|
+
const es = (e) => e(), xt = Symbol(), it = Symbol();
|
|
1307
1307
|
function ut(e, o) {
|
|
1308
1308
|
e instanceof Map && o instanceof Map ? o.forEach((t, n) => e.set(n, t)) : e instanceof Set && o instanceof Set && o.forEach(e.add, e);
|
|
1309
1309
|
for (const t in o) {
|
|
1310
1310
|
if (!o.hasOwnProperty(t))
|
|
1311
1311
|
continue;
|
|
1312
1312
|
const n = o[t], s = e[t];
|
|
1313
|
-
Ne(s) && Ne(n) && e.hasOwnProperty(t) && !
|
|
1313
|
+
Ne(s) && Ne(n) && e.hasOwnProperty(t) && !je(n) && !ft(n) ? e[t] = ut(s, n) : e[t] = n;
|
|
1314
1314
|
}
|
|
1315
1315
|
return e;
|
|
1316
1316
|
}
|
|
@@ -1321,62 +1321,62 @@ const ts = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
1321
1321
|
function os(e) {
|
|
1322
1322
|
return !Ne(e) || !e.hasOwnProperty(ts);
|
|
1323
1323
|
}
|
|
1324
|
-
const { assign:
|
|
1324
|
+
const { assign: ue } = Object;
|
|
1325
1325
|
function $t(e) {
|
|
1326
|
-
return !!(
|
|
1326
|
+
return !!(je(e) && e.effect);
|
|
1327
1327
|
}
|
|
1328
1328
|
function Pt(e, o, t, n) {
|
|
1329
1329
|
const { state: s, actions: r, getters: l } = o, a = t.state.value[e];
|
|
1330
1330
|
let i;
|
|
1331
1331
|
function d() {
|
|
1332
1332
|
!a && (process.env.NODE_ENV === "production" || !n) && (t.state.value[e] = s ? s() : {});
|
|
1333
|
-
const
|
|
1333
|
+
const y = process.env.NODE_ENV !== "production" && n ? (
|
|
1334
1334
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1335
|
-
St(
|
|
1335
|
+
St(N(s ? s() : {}).value)
|
|
1336
1336
|
) : St(t.state.value[e]);
|
|
1337
|
-
return
|
|
1338
|
-
|
|
1339
|
-
const
|
|
1340
|
-
return l[
|
|
1341
|
-
})),
|
|
1337
|
+
return ue(y, r, Object.keys(l || {}).reduce((b, A) => (process.env.NODE_ENV !== "production" && A in y && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${A}" in store "${e}".`), b[A] = Pe(De(() => {
|
|
1338
|
+
ze(t);
|
|
1339
|
+
const D = t._s.get(e);
|
|
1340
|
+
return l[A].call(D, D);
|
|
1341
|
+
})), b), {}));
|
|
1342
1342
|
}
|
|
1343
1343
|
return i = dt(e, d, o, t, n, !0), i;
|
|
1344
1344
|
}
|
|
1345
1345
|
function dt(e, o, t = {}, n, s, r) {
|
|
1346
1346
|
let l;
|
|
1347
|
-
const a =
|
|
1347
|
+
const a = ue({ actions: {} }, t);
|
|
1348
1348
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
1349
1349
|
throw new Error("Pinia destroyed");
|
|
1350
1350
|
const i = { deep: !0 };
|
|
1351
1351
|
process.env.NODE_ENV !== "production" && !Lt && (i.onTrigger = (u) => {
|
|
1352
|
-
d ?
|
|
1352
|
+
d ? D = u : d == !1 && !h._hotUpdating && (Array.isArray(D) ? D.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1353
1353
|
});
|
|
1354
|
-
let d,
|
|
1354
|
+
let d, y, b = [], A = [], D;
|
|
1355
1355
|
const L = n.state.value[e];
|
|
1356
1356
|
!r && !L && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1357
|
-
const
|
|
1358
|
-
let
|
|
1359
|
-
function
|
|
1357
|
+
const $ = N({});
|
|
1358
|
+
let z;
|
|
1359
|
+
function I(u) {
|
|
1360
1360
|
let c;
|
|
1361
|
-
d =
|
|
1361
|
+
d = y = !1, process.env.NODE_ENV !== "production" && (D = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1362
1362
|
type: ve.patchFunction,
|
|
1363
1363
|
storeId: e,
|
|
1364
|
-
events:
|
|
1364
|
+
events: D
|
|
1365
1365
|
}) : (ut(n.state.value[e], u), c = {
|
|
1366
1366
|
type: ve.patchObject,
|
|
1367
1367
|
payload: u,
|
|
1368
1368
|
storeId: e,
|
|
1369
|
-
events:
|
|
1369
|
+
events: D
|
|
1370
1370
|
});
|
|
1371
|
-
const g =
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}),
|
|
1371
|
+
const g = z = Symbol();
|
|
1372
|
+
et().then(() => {
|
|
1373
|
+
z === g && (d = !0);
|
|
1374
|
+
}), y = !0, Me(b, c, n.state.value[e]);
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1376
|
+
const Y = r ? function() {
|
|
1377
1377
|
const { state: c } = t, g = c ? c() : {};
|
|
1378
|
-
this.$patch((
|
|
1379
|
-
|
|
1378
|
+
this.$patch((x) => {
|
|
1379
|
+
ue(x, g);
|
|
1380
1380
|
});
|
|
1381
1381
|
} : (
|
|
1382
1382
|
/* istanbul ignore next */
|
|
@@ -1384,61 +1384,61 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1384
1384
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1385
1385
|
} : eo
|
|
1386
1386
|
);
|
|
1387
|
-
function
|
|
1388
|
-
l.stop(),
|
|
1387
|
+
function j() {
|
|
1388
|
+
l.stop(), b = [], A = [], n._s.delete(e);
|
|
1389
1389
|
}
|
|
1390
|
-
const
|
|
1390
|
+
const K = (u, c = "") => {
|
|
1391
1391
|
if (xt in u)
|
|
1392
|
-
return u[
|
|
1392
|
+
return u[it] = c, u;
|
|
1393
1393
|
const g = function() {
|
|
1394
|
-
|
|
1395
|
-
const
|
|
1396
|
-
function
|
|
1394
|
+
ze(n);
|
|
1395
|
+
const x = Array.from(arguments), F = [], q = [];
|
|
1396
|
+
function w(f) {
|
|
1397
1397
|
F.push(f);
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function U(f) {
|
|
1400
1400
|
q.push(f);
|
|
1401
1401
|
}
|
|
1402
|
-
Me(
|
|
1403
|
-
args:
|
|
1404
|
-
name: g[
|
|
1402
|
+
Me(A, {
|
|
1403
|
+
args: x,
|
|
1404
|
+
name: g[it],
|
|
1405
1405
|
store: h,
|
|
1406
|
-
after:
|
|
1407
|
-
onError:
|
|
1406
|
+
after: w,
|
|
1407
|
+
onError: U
|
|
1408
1408
|
});
|
|
1409
1409
|
let v;
|
|
1410
1410
|
try {
|
|
1411
|
-
v = u.apply(this && this.$id === e ? this : h,
|
|
1411
|
+
v = u.apply(this && this.$id === e ? this : h, x);
|
|
1412
1412
|
} catch (f) {
|
|
1413
1413
|
throw Me(q, f), f;
|
|
1414
1414
|
}
|
|
1415
1415
|
return v instanceof Promise ? v.then((f) => (Me(F, f), f)).catch((f) => (Me(q, f), Promise.reject(f))) : (Me(F, v), v);
|
|
1416
1416
|
};
|
|
1417
|
-
return g[xt] = !0, g[
|
|
1417
|
+
return g[xt] = !0, g[it] = c, g;
|
|
1418
1418
|
}, ne = /* @__PURE__ */ Pe({
|
|
1419
1419
|
actions: {},
|
|
1420
1420
|
getters: {},
|
|
1421
1421
|
state: [],
|
|
1422
|
-
hotState:
|
|
1422
|
+
hotState: $
|
|
1423
1423
|
}), C = {
|
|
1424
1424
|
_p: n,
|
|
1425
1425
|
// _s: scope,
|
|
1426
1426
|
$id: e,
|
|
1427
|
-
$onAction: Et.bind(null,
|
|
1428
|
-
$patch:
|
|
1429
|
-
$reset:
|
|
1427
|
+
$onAction: Et.bind(null, A),
|
|
1428
|
+
$patch: I,
|
|
1429
|
+
$reset: Y,
|
|
1430
1430
|
$subscribe(u, c = {}) {
|
|
1431
|
-
const g = Et(
|
|
1432
|
-
(c.flush === "sync" ?
|
|
1431
|
+
const g = Et(b, u, c.detached, () => x()), x = l.run(() => Se(() => n.state.value[e], (F) => {
|
|
1432
|
+
(c.flush === "sync" ? y : d) && u({
|
|
1433
1433
|
storeId: e,
|
|
1434
1434
|
type: ve.direct,
|
|
1435
|
-
events:
|
|
1435
|
+
events: D
|
|
1436
1436
|
}, F);
|
|
1437
|
-
},
|
|
1437
|
+
}, ue({}, i, c)));
|
|
1438
1438
|
return g;
|
|
1439
1439
|
},
|
|
1440
|
-
$dispose:
|
|
1441
|
-
}, h = re(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie ?
|
|
1440
|
+
$dispose: j
|
|
1441
|
+
}, h = re(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie ? ue(
|
|
1442
1442
|
{
|
|
1443
1443
|
_hmrPayload: ne,
|
|
1444
1444
|
_customProperties: Pe(/* @__PURE__ */ new Set())
|
|
@@ -1449,56 +1449,56 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1449
1449
|
// setupStore
|
|
1450
1450
|
) : C);
|
|
1451
1451
|
n._s.set(e, h);
|
|
1452
|
-
const
|
|
1453
|
-
for (const u in
|
|
1454
|
-
const c =
|
|
1455
|
-
if (
|
|
1456
|
-
process.env.NODE_ENV !== "production" && s ?
|
|
1452
|
+
const M = (n._a && n._a.runWithContext || es)(() => n._e.run(() => (l = At()).run(() => o({ action: K }))));
|
|
1453
|
+
for (const u in M) {
|
|
1454
|
+
const c = M[u];
|
|
1455
|
+
if (je(c) && !$t(c) || ft(c))
|
|
1456
|
+
process.env.NODE_ENV !== "production" && s ? We($.value, u, rt(M, u)) : r || (L && os(c) && (je(c) ? c.value = L[u] : ut(c, L[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ne.state.push(u);
|
|
1457
1457
|
else if (typeof c == "function") {
|
|
1458
|
-
const g = process.env.NODE_ENV !== "production" && s ? c :
|
|
1459
|
-
|
|
1458
|
+
const g = process.env.NODE_ENV !== "production" && s ? c : K(c, u);
|
|
1459
|
+
M[u] = g, process.env.NODE_ENV !== "production" && (ne.actions[u] = c), a.actions[u] = c;
|
|
1460
1460
|
} else process.env.NODE_ENV !== "production" && $t(c) && (ne.getters[u] = r ? (
|
|
1461
1461
|
// @ts-expect-error
|
|
1462
1462
|
t.getters[u]
|
|
1463
|
-
) : c, Ie && (
|
|
1464
|
-
(
|
|
1463
|
+
) : c, Ie && (M._getters || // @ts-expect-error: same
|
|
1464
|
+
(M._getters = Pe([]))).push(u));
|
|
1465
1465
|
}
|
|
1466
|
-
if (
|
|
1467
|
-
get: () => process.env.NODE_ENV !== "production" && s ?
|
|
1466
|
+
if (ue(h, M), ue(Le(h), M), Object.defineProperty(h, "$state", {
|
|
1467
|
+
get: () => process.env.NODE_ENV !== "production" && s ? $.value : n.state.value[e],
|
|
1468
1468
|
set: (u) => {
|
|
1469
1469
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1470
1470
|
throw new Error("cannot set hotState");
|
|
1471
|
-
|
|
1472
|
-
|
|
1471
|
+
I((c) => {
|
|
1472
|
+
ue(c, u);
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
1475
|
}), process.env.NODE_ENV !== "production" && (h._hotUpdate = Pe((u) => {
|
|
1476
1476
|
h._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1477
1477
|
if (c in h.$state) {
|
|
1478
|
-
const g = u.$state[c],
|
|
1479
|
-
typeof g == "object" && Ne(g) && Ne(
|
|
1478
|
+
const g = u.$state[c], x = h.$state[c];
|
|
1479
|
+
typeof g == "object" && Ne(g) && Ne(x) ? Zt(g, x) : u.$state[c] = x;
|
|
1480
1480
|
}
|
|
1481
|
-
|
|
1481
|
+
We(h, c, rt(u.$state, c));
|
|
1482
1482
|
}), Object.keys(h.$state).forEach((c) => {
|
|
1483
|
-
c in u.$state ||
|
|
1484
|
-
}), d = !1,
|
|
1483
|
+
c in u.$state || lt(h, c);
|
|
1484
|
+
}), d = !1, y = !1, n.state.value[e] = rt(u._hmrPayload, "hotState"), y = !0, et().then(() => {
|
|
1485
1485
|
d = !0;
|
|
1486
1486
|
});
|
|
1487
1487
|
for (const c in u._hmrPayload.actions) {
|
|
1488
1488
|
const g = u[c];
|
|
1489
|
-
|
|
1489
|
+
We(h, c, K(g, c));
|
|
1490
1490
|
}
|
|
1491
1491
|
for (const c in u._hmrPayload.getters) {
|
|
1492
|
-
const g = u._hmrPayload.getters[c],
|
|
1492
|
+
const g = u._hmrPayload.getters[c], x = r ? (
|
|
1493
1493
|
// special handling of options api
|
|
1494
|
-
|
|
1494
|
+
De(() => (ze(n), g.call(h, h)))
|
|
1495
1495
|
) : g;
|
|
1496
|
-
|
|
1496
|
+
We(h, c, x);
|
|
1497
1497
|
}
|
|
1498
1498
|
Object.keys(h._hmrPayload.getters).forEach((c) => {
|
|
1499
|
-
c in u._hmrPayload.getters ||
|
|
1499
|
+
c in u._hmrPayload.getters || lt(h, c);
|
|
1500
1500
|
}), Object.keys(h._hmrPayload.actions).forEach((c) => {
|
|
1501
|
-
c in u._hmrPayload.actions ||
|
|
1501
|
+
c in u._hmrPayload.actions || lt(h, c);
|
|
1502
1502
|
}), h._hmrPayload = u._hmrPayload, h._getters = u._getters, h._hotUpdating = !1;
|
|
1503
1503
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie) {
|
|
1504
1504
|
const u = {
|
|
@@ -1508,7 +1508,7 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1508
1508
|
enumerable: !1
|
|
1509
1509
|
};
|
|
1510
1510
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((c) => {
|
|
1511
|
-
Object.defineProperty(h, c,
|
|
1511
|
+
Object.defineProperty(h, c, ue({ value: h[c] }, u));
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
1514
|
return n._p.forEach((u) => {
|
|
@@ -1519,9 +1519,9 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1519
1519
|
pinia: n,
|
|
1520
1520
|
options: a
|
|
1521
1521
|
}));
|
|
1522
|
-
Object.keys(c || {}).forEach((g) => h._customProperties.add(g)),
|
|
1522
|
+
Object.keys(c || {}).forEach((g) => h._customProperties.add(g)), ue(h, c);
|
|
1523
1523
|
} else
|
|
1524
|
-
|
|
1524
|
+
ue(h, l.run(() => u({
|
|
1525
1525
|
store: h,
|
|
1526
1526
|
app: n._a,
|
|
1527
1527
|
pinia: n,
|
|
@@ -1529,7 +1529,7 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1529
1529
|
})));
|
|
1530
1530
|
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1531
1531
|
state: () => new MyClass()
|
|
1532
|
-
Found in store "${h.$id}".`), L && r && t.hydrate && t.hydrate(h.$state, L), d = !0,
|
|
1532
|
+
Found in store "${h.$id}".`), L && r && t.hydrate && t.hydrate(h.$state, L), d = !0, y = !0, h;
|
|
1533
1533
|
}
|
|
1534
1534
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1535
1535
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1541,25 +1541,25 @@ function ns(e, o, t) {
|
|
|
1541
1541
|
const d = _o();
|
|
1542
1542
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1543
1543
|
// pinia instance with getActivePinia()
|
|
1544
|
-
(process.env.NODE_ENV === "test" &&
|
|
1544
|
+
(process.env.NODE_ENV === "test" && Ge && Ge._testing ? null : a) || (d ? go(qt, null) : null), a && ze(a), process.env.NODE_ENV !== "production" && !Ge)
|
|
1545
1545
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1546
1546
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1547
1547
|
This will fail in production.`);
|
|
1548
|
-
a =
|
|
1549
|
-
const
|
|
1548
|
+
a = Ge, a._s.has(n) || (r ? dt(n, o, s, a) : Pt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1549
|
+
const y = a._s.get(n);
|
|
1550
1550
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1551
|
-
const
|
|
1552
|
-
i._hotUpdate(
|
|
1551
|
+
const b = "__hot:" + n, A = r ? dt(b, o, s, a, !0) : Pt(b, ue({}, s), a, !0);
|
|
1552
|
+
i._hotUpdate(A), delete a.state.value[b], a._s.delete(b);
|
|
1553
1553
|
}
|
|
1554
1554
|
if (process.env.NODE_ENV !== "production" && Ie) {
|
|
1555
|
-
const
|
|
1556
|
-
if (
|
|
1555
|
+
const b = vo();
|
|
1556
|
+
if (b && b.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1557
1557
|
!i) {
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1558
|
+
const A = b.proxy, D = "_pStores" in A ? A._pStores : A._pStores = {};
|
|
1559
|
+
D[n] = y;
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
|
-
return
|
|
1562
|
+
return y;
|
|
1563
1563
|
}
|
|
1564
1564
|
return l.$id = n, l;
|
|
1565
1565
|
}
|
|
@@ -1684,17 +1684,17 @@ function It(e, {
|
|
|
1684
1684
|
omit: l,
|
|
1685
1685
|
beforeHydrate: a,
|
|
1686
1686
|
afterHydrate: i
|
|
1687
|
-
}, d,
|
|
1687
|
+
}, d, y = !0) {
|
|
1688
1688
|
try {
|
|
1689
|
-
|
|
1690
|
-
const
|
|
1691
|
-
if (
|
|
1692
|
-
const
|
|
1689
|
+
y && (a == null || a(d));
|
|
1690
|
+
const b = o.getItem(n);
|
|
1691
|
+
if (b) {
|
|
1692
|
+
const A = t.deserialize(b), D = r ? oo(A, r) : A, L = l ? no(D, l) : D;
|
|
1693
1693
|
e.$patch(L);
|
|
1694
1694
|
}
|
|
1695
|
-
|
|
1696
|
-
} catch (
|
|
1697
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1695
|
+
y && (i == null || i(d));
|
|
1696
|
+
} catch (b) {
|
|
1697
|
+
s && console.error("[pinia-plugin-persistedstate]", b);
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
1700
|
function Nt(e, {
|
|
@@ -1732,7 +1732,7 @@ function ds(e, o, t) {
|
|
|
1732
1732
|
});
|
|
1733
1733
|
}, a.forEach((i) => {
|
|
1734
1734
|
It(s, i, e), s.$subscribe(
|
|
1735
|
-
(d,
|
|
1735
|
+
(d, y) => Nt(y, i),
|
|
1736
1736
|
{ detached: !0 }
|
|
1737
1737
|
);
|
|
1738
1738
|
});
|
|
@@ -1743,15 +1743,15 @@ function ps(e = {}) {
|
|
|
1743
1743
|
ds(
|
|
1744
1744
|
o,
|
|
1745
1745
|
(n) => {
|
|
1746
|
-
var s, r, l, a, i, d,
|
|
1746
|
+
var s, r, l, a, i, d, y;
|
|
1747
1747
|
return {
|
|
1748
|
-
key: (e.key ? e.key : (
|
|
1748
|
+
key: (e.key ? e.key : (b) => b)((s = n.key) != null ? s : o.store.$id),
|
|
1749
1749
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1750
1750
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1751
|
-
serialize: (
|
|
1752
|
-
deserialize: (
|
|
1751
|
+
serialize: (b) => JSON.stringify(b),
|
|
1752
|
+
deserialize: (b) => cs(b)
|
|
1753
1753
|
},
|
|
1754
|
-
storage: (
|
|
1754
|
+
storage: (y = (d = n.storage) != null ? d : e.storage) != null ? y : window.localStorage,
|
|
1755
1755
|
beforeHydrate: n.beforeHydrate,
|
|
1756
1756
|
afterHydrate: n.afterHydrate,
|
|
1757
1757
|
pick: n.pick,
|
|
@@ -1783,7 +1783,7 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1783
1783
|
emits: ["update:menuCollapsed"],
|
|
1784
1784
|
setup(e, { emit: o }) {
|
|
1785
1785
|
so(gt);
|
|
1786
|
-
const t =
|
|
1786
|
+
const t = Be(), n = De(() => {
|
|
1787
1787
|
var r;
|
|
1788
1788
|
const s = t.meta.activeMenu;
|
|
1789
1789
|
if (s === "{model}") {
|
|
@@ -1793,8 +1793,8 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1793
1793
|
return s;
|
|
1794
1794
|
});
|
|
1795
1795
|
return (s, r) => {
|
|
1796
|
-
const l =
|
|
1797
|
-
return k(Ct).length > 0 ? (p(),
|
|
1796
|
+
const l = E("el-menu");
|
|
1797
|
+
return k(Ct).length > 0 ? (p(), T("div", ms, [
|
|
1798
1798
|
_(l, {
|
|
1799
1799
|
class: "menu",
|
|
1800
1800
|
"default-active": n.value,
|
|
@@ -1802,7 +1802,7 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1802
1802
|
router: ""
|
|
1803
1803
|
}, {
|
|
1804
1804
|
default: m(() => [
|
|
1805
|
-
(p(!0),
|
|
1805
|
+
(p(!0), T(oe, null, ce(k(Ct), (a) => (p(), V(xn, {
|
|
1806
1806
|
key: a.path,
|
|
1807
1807
|
menu: a
|
|
1808
1808
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -1812,27 +1812,27 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1812
1812
|
])) : B("", !0);
|
|
1813
1813
|
};
|
|
1814
1814
|
}
|
|
1815
|
-
}), ro = /* @__PURE__ */
|
|
1815
|
+
}), ro = /* @__PURE__ */ pe(hs, [["__scopeId", "data-v-ea5f1473"]]), _s = { class: "container" }, gs = /* @__PURE__ */ _e({
|
|
1816
1816
|
__name: "ConsoleApp",
|
|
1817
1817
|
props: {
|
|
1818
1818
|
title: {},
|
|
1819
1819
|
helpDocUrl: {}
|
|
1820
1820
|
},
|
|
1821
1821
|
setup(e) {
|
|
1822
|
-
const o = so(gt), t =
|
|
1822
|
+
const o = so(gt), t = Be(), n = N(o.menu.collapsed), s = N(), r = e;
|
|
1823
1823
|
return (l, a) => {
|
|
1824
|
-
const i =
|
|
1825
|
-
return p(),
|
|
1826
|
-
k(t).query.embedded !== "true" ? (p(),
|
|
1824
|
+
const i = E("router-view"), d = E("el-scrollbar");
|
|
1825
|
+
return p(), T(oe, null, [
|
|
1826
|
+
k(t).query.embedded !== "true" ? (p(), V(Gt, {
|
|
1827
1827
|
key: 0,
|
|
1828
1828
|
title: r.title,
|
|
1829
1829
|
helpDocUrl: r.helpDocUrl
|
|
1830
1830
|
}, null, 8, ["title", "helpDocUrl"])) : B("", !0),
|
|
1831
1831
|
S("div", _s, [
|
|
1832
|
-
k(t).query.embedded !== "true" ? (p(),
|
|
1832
|
+
k(t).query.embedded !== "true" ? (p(), V(ro, {
|
|
1833
1833
|
key: 0,
|
|
1834
1834
|
menuCollapsed: n.value,
|
|
1835
|
-
"onUpdate:menuCollapsed": a[0] || (a[0] = (
|
|
1835
|
+
"onUpdate:menuCollapsed": a[0] || (a[0] = (y) => n.value = y)
|
|
1836
1836
|
}, null, 8, ["menuCollapsed"])) : B("", !0),
|
|
1837
1837
|
_(d, { class: "main-scrollbar" }, {
|
|
1838
1838
|
default: m(() => [
|
|
@@ -1856,20 +1856,20 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1856
1856
|
height: "800"
|
|
1857
1857
|
};
|
|
1858
1858
|
function bs(e, o) {
|
|
1859
|
-
return p(),
|
|
1859
|
+
return p(), T("svg", vs, o[0] || (o[0] = [
|
|
1860
1860
|
wo('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>', 33)
|
|
1861
1861
|
]));
|
|
1862
1862
|
}
|
|
1863
1863
|
const ys = { render: bs }, ws = {}, Ss = { class: "wrapper" }, Cs = { class: "content" };
|
|
1864
1864
|
function Os(e, o) {
|
|
1865
|
-
const t =
|
|
1866
|
-
return p(),
|
|
1865
|
+
const t = E("el-button");
|
|
1866
|
+
return p(), T("div", Ss, [
|
|
1867
1867
|
o[4] || (o[4] = S("img", { src: ys }, null, -1)),
|
|
1868
1868
|
S("div", Cs, [
|
|
1869
1869
|
o[3] || (o[3] = S("h1", null, "You have no permission to access the page.", -1)),
|
|
1870
1870
|
_(t, { type: "primary" }, {
|
|
1871
1871
|
default: m(() => o[1] || (o[1] = [
|
|
1872
|
-
|
|
1872
|
+
Q("Apply")
|
|
1873
1873
|
])),
|
|
1874
1874
|
_: 1
|
|
1875
1875
|
}),
|
|
@@ -1877,30 +1877,30 @@ function Os(e, o) {
|
|
|
1877
1877
|
onClick: o[0] || (o[0] = (n) => e.$router.go(-1))
|
|
1878
1878
|
}, {
|
|
1879
1879
|
default: m(() => o[2] || (o[2] = [
|
|
1880
|
-
|
|
1880
|
+
Q("Go Back")
|
|
1881
1881
|
])),
|
|
1882
1882
|
_: 1
|
|
1883
1883
|
})
|
|
1884
1884
|
])
|
|
1885
1885
|
]);
|
|
1886
1886
|
}
|
|
1887
|
-
const ks = /* @__PURE__ */
|
|
1887
|
+
const ks = /* @__PURE__ */ pe(ws, [["render", Os], ["__scopeId", "data-v-0155b361"]]), Es = {};
|
|
1888
1888
|
function xs(e, o) {
|
|
1889
|
-
const t =
|
|
1890
|
-
return p(),
|
|
1889
|
+
const t = E("router-view");
|
|
1890
|
+
return p(), V(t);
|
|
1891
1891
|
}
|
|
1892
|
-
const $s = /* @__PURE__ */
|
|
1892
|
+
const $s = /* @__PURE__ */ pe(Es, [["render", xs]]), Ps = { class: "card-wrapper" }, Is = ["onClick"], Ns = { class: "card-inner-wrapper" }, As = { class: "card-title" }, Ms = { class: "icon" }, Vs = /* @__PURE__ */ _e({
|
|
1893
1893
|
__name: "TabCard",
|
|
1894
1894
|
props: {
|
|
1895
1895
|
cards: {},
|
|
1896
1896
|
tableRef: {}
|
|
1897
1897
|
},
|
|
1898
1898
|
setup(e) {
|
|
1899
|
-
const { t: o } =
|
|
1899
|
+
const { t: o } = He(), t = Be(), n = st(), s = e, r = N(s.cards[0].key);
|
|
1900
1900
|
function l(a) {
|
|
1901
1901
|
a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
|
|
1902
1902
|
path: t.path,
|
|
1903
|
-
query: wt(
|
|
1903
|
+
query: wt(Je({}, t.query), { tab: a.key })
|
|
1904
1904
|
}));
|
|
1905
1905
|
}
|
|
1906
1906
|
return pt(() => {
|
|
@@ -1912,7 +1912,7 @@ const $s = /* @__PURE__ */ ue(Es, [["render", xs]]), Ps = { class: "card-wrapper
|
|
|
1912
1912
|
break;
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
|
-
|
|
1915
|
+
et(() => {
|
|
1916
1916
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
1917
1917
|
});
|
|
1918
1918
|
}), Se(
|
|
@@ -1930,21 +1930,21 @@ const $s = /* @__PURE__ */ ue(Es, [["render", xs]]), Ps = { class: "card-wrapper
|
|
|
1930
1930
|
{
|
|
1931
1931
|
deep: !0
|
|
1932
1932
|
}
|
|
1933
|
-
), (a, i) => (p(),
|
|
1934
|
-
(p(!0),
|
|
1933
|
+
), (a, i) => (p(), T("div", Ps, [
|
|
1934
|
+
(p(!0), T(oe, null, ce(s.cards, (d) => (p(), T("div", {
|
|
1935
1935
|
class: Mt(["card", { "card-selected": r.value === d.key }]),
|
|
1936
|
-
onClick: (
|
|
1936
|
+
onClick: (y) => l(d)
|
|
1937
1937
|
}, [
|
|
1938
1938
|
S("div", Ns, [
|
|
1939
1939
|
S("div", As, [
|
|
1940
1940
|
S("div", Ms, [
|
|
1941
|
-
d.icon ? (p(),
|
|
1941
|
+
d.icon ? (p(), V(Ze(d.icon), {
|
|
1942
1942
|
key: 0,
|
|
1943
1943
|
class: "svg-icon"
|
|
1944
1944
|
})) : B("", !0)
|
|
1945
1945
|
]),
|
|
1946
1946
|
S("span", {
|
|
1947
|
-
style:
|
|
1947
|
+
style: Te({ color: d.disabled ? "#aaa" : "black" })
|
|
1948
1948
|
}, R(k(o)(d.label)), 5)
|
|
1949
1949
|
]),
|
|
1950
1950
|
S("span", null, R(d.count), 1)
|
|
@@ -1952,20 +1952,20 @@ const $s = /* @__PURE__ */ ue(Es, [["render", xs]]), Ps = { class: "card-wrapper
|
|
|
1952
1952
|
], 10, Is))), 256))
|
|
1953
1953
|
]));
|
|
1954
1954
|
}
|
|
1955
|
-
}), ao = /* @__PURE__ */
|
|
1955
|
+
}), ao = /* @__PURE__ */ pe(Vs, [["__scopeId", "data-v-047a86e6"]]);
|
|
1956
1956
|
function ke(e, o, t) {
|
|
1957
1957
|
switch (o) {
|
|
1958
1958
|
case "POST":
|
|
1959
|
-
return
|
|
1959
|
+
return de.post(e, t);
|
|
1960
1960
|
case "PUT":
|
|
1961
|
-
return
|
|
1961
|
+
return de.put(e, t);
|
|
1962
1962
|
case "DELETE":
|
|
1963
|
-
return
|
|
1963
|
+
return de.delete(e + "/" + t);
|
|
1964
1964
|
default:
|
|
1965
|
-
return
|
|
1965
|
+
return de.get(e, { params: t });
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
|
-
const
|
|
1968
|
+
const qe = (e) => {
|
|
1969
1969
|
const o = Object.keys(e);
|
|
1970
1970
|
let t = {};
|
|
1971
1971
|
o.forEach((n) => {
|
|
@@ -1981,43 +1981,44 @@ const ze = (e) => {
|
|
|
1981
1981
|
sessionId: {},
|
|
1982
1982
|
mode: {},
|
|
1983
1983
|
model: {},
|
|
1984
|
+
disableInline: { type: Boolean },
|
|
1984
1985
|
closeDialogFunc: { type: Function },
|
|
1985
1986
|
afterSubmitFunc: { type: Function }
|
|
1986
1987
|
},
|
|
1987
1988
|
emits: ["update:id"],
|
|
1988
1989
|
setup(e, { expose: o, emit: t }) {
|
|
1989
|
-
const { t: n } =
|
|
1990
|
+
const { t: n } = tt.global, s = e, r = re({}), l = N(!1), a = N(), i = re({}), d = N(!0), y = (C) => s.mode === "view" && (K(C, void 0) || K(C, "input") || K(C, "select") || K(C, "password")), b = De(() => s.model.fields ? s.model.fields.filter(
|
|
1990
1991
|
(C) => {
|
|
1991
|
-
var
|
|
1992
|
-
let h = C.visible !== !1 && ((
|
|
1992
|
+
var M, u, c, g;
|
|
1993
|
+
let h = C.visible !== !1 && ((M = C.formItemAttributes) == null ? void 0 : M.visible) !== !1;
|
|
1993
1994
|
if (s.mode !== "view" && ((u = C.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = C.formItemAttributes) == null ? void 0 : c.type) === "password")
|
|
1994
1995
|
return !1;
|
|
1995
|
-
let
|
|
1996
|
-
return
|
|
1996
|
+
let P = (g = C.formItemAttributes) == null ? void 0 : g.showCondition;
|
|
1997
|
+
return P && P.field && P.value ? r[P.field] === P.value : h;
|
|
1997
1998
|
}
|
|
1998
1999
|
) : []);
|
|
1999
2000
|
Se([() => s.id, () => s.sessionId], () => {
|
|
2000
|
-
|
|
2001
|
+
D();
|
|
2001
2002
|
});
|
|
2002
|
-
function
|
|
2003
|
+
function A() {
|
|
2003
2004
|
const C = s.model.fields;
|
|
2004
2005
|
let h = {};
|
|
2005
|
-
C == null || C.forEach((
|
|
2006
|
-
var
|
|
2007
|
-
if (r[
|
|
2008
|
-
if (((u =
|
|
2009
|
-
let W = (g =
|
|
2010
|
-
W !== void 0 && (h[
|
|
2006
|
+
C == null || C.forEach((P) => {
|
|
2007
|
+
var M, u, c, g, x, F, q, w, U;
|
|
2008
|
+
if (r[P.prop] = null, P.visible !== !1 && ((M = P.formItemAttributes) == null ? void 0 : M.visible) !== !1) {
|
|
2009
|
+
if (((u = P.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[P.prop] = (c = P.formItemAttributes) == null ? void 0 : c.defaultValue : r[P.prop] = void 0, s.mode !== "view") {
|
|
2010
|
+
let W = (g = P.formItemAttributes) == null ? void 0 : g.validationRule;
|
|
2011
|
+
W !== void 0 && (h[P.prop] = W), Object.assign(i, h);
|
|
2011
2012
|
}
|
|
2012
|
-
const v =
|
|
2013
|
+
const v = P.formItemAttributes, f = v == null ? void 0 : v.type, O = (x = v == null ? void 0 : v.selectAttributes) == null ? void 0 : x.api, G = (F = v == null ? void 0 : v.selectAttributes) == null ? void 0 : F.valueMappingField, X = (q = v == null ? void 0 : v.selectAttributes) == null ? void 0 : q.labelMappingField;
|
|
2013
2014
|
if (f === "select" && O) {
|
|
2014
2015
|
let W = O;
|
|
2015
|
-
const ae = (
|
|
2016
|
+
const ae = (w = v == null ? void 0 : v.selectAttributes) == null ? void 0 : w.queryParamName, fe = (U = v == null ? void 0 : v.selectAttributes) == null ? void 0 : U.queryParamValueField;
|
|
2016
2017
|
ae && (W = `${W}?${ae}=${s.id}`), fe || ke(W, "GET", {}).then(({ data: le }) => {
|
|
2017
2018
|
var ie;
|
|
2018
|
-
if ((ie =
|
|
2019
|
+
if ((ie = P.formItemAttributes) != null && ie.selectAttributes) {
|
|
2019
2020
|
let Z = [];
|
|
2020
|
-
Array.isArray(le.data) ? Z = le.data : le.data.list && Array.isArray(le.data.list) && (Z = le.data.list),
|
|
2021
|
+
Array.isArray(le.data) ? Z = le.data : le.data.list && Array.isArray(le.data.list) && (Z = le.data.list), P.formItemAttributes.selectAttributes.options = Z.map((J) => ({
|
|
2021
2022
|
value: G ? J[G] : J.value,
|
|
2022
2023
|
label: X ? J[X] : J.label
|
|
2023
2024
|
}));
|
|
@@ -2027,79 +2028,79 @@ const ze = (e) => {
|
|
|
2027
2028
|
}
|
|
2028
2029
|
});
|
|
2029
2030
|
}
|
|
2030
|
-
function
|
|
2031
|
+
function D() {
|
|
2031
2032
|
var C;
|
|
2032
|
-
console.log("init form", s.id, s.model),
|
|
2033
|
-
|
|
2033
|
+
console.log("init form", s.id, s.model), $(), d.value = (C = s.model.useI18n) != null ? C : !0, A(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, ke(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: h }) => {
|
|
2034
|
+
qe(r), Object.assign(r, h.data), l.value = !1;
|
|
2034
2035
|
}));
|
|
2035
2036
|
}
|
|
2036
2037
|
function L() {
|
|
2037
2038
|
return new Promise((C, h) => {
|
|
2038
|
-
var
|
|
2039
|
-
((u = (
|
|
2040
|
-
let
|
|
2041
|
-
s.model.api && ke(s.model.api,
|
|
2042
|
-
var F, q,
|
|
2043
|
-
|
|
2039
|
+
var M, u, c, g;
|
|
2040
|
+
((u = (M = s.model.formConfig) == null ? void 0 : M.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (g = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : g.beforeSubmit(r));
|
|
2041
|
+
let P = s.mode === "create" ? "POST" : "PUT";
|
|
2042
|
+
s.model.api && ke(s.model.api, P, r).then(({ data: x }) => {
|
|
2043
|
+
var F, q, w, U;
|
|
2044
|
+
x.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((q = (F = s.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : q.afterSubmit) !== void 0 && ((U = (w = s.model.formConfig) == null ? void 0 : w.functions) == null || U.afterSubmit(x.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
|
|
2044
2045
|
});
|
|
2045
2046
|
});
|
|
2046
2047
|
}
|
|
2047
|
-
function
|
|
2048
|
+
function $() {
|
|
2048
2049
|
var C;
|
|
2049
2050
|
(C = a.value) == null || C.resetFields();
|
|
2050
2051
|
}
|
|
2051
|
-
function
|
|
2052
|
+
function z(C) {
|
|
2052
2053
|
return C.label ? d ? n(C.label) : C.label : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase();
|
|
2053
2054
|
}
|
|
2054
|
-
function
|
|
2055
|
-
var h,
|
|
2055
|
+
function I(C) {
|
|
2056
|
+
var h, P, M, u;
|
|
2056
2057
|
if (C) {
|
|
2057
|
-
if (
|
|
2058
|
-
const c = (
|
|
2058
|
+
if (K(C, "select")) {
|
|
2059
|
+
const c = (P = (h = C.tableColumnAttributes) == null ? void 0 : h.functions) == null ? void 0 : P.transformValue;
|
|
2059
2060
|
if (c)
|
|
2060
2061
|
return c(r[C.prop]);
|
|
2061
|
-
const g = (u = (
|
|
2062
|
+
const g = (u = (M = C.formItemAttributes) == null ? void 0 : M.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2062
2063
|
if (g)
|
|
2063
2064
|
return r[g];
|
|
2064
2065
|
}
|
|
2065
2066
|
return r[C.prop];
|
|
2066
2067
|
}
|
|
2067
2068
|
}
|
|
2068
|
-
function
|
|
2069
|
+
function Y(C) {
|
|
2069
2070
|
var h;
|
|
2070
2071
|
return ((h = C.formItemAttributes) == null ? void 0 : h.updatable) === !1 && s.mode === "update";
|
|
2071
2072
|
}
|
|
2072
|
-
function
|
|
2073
|
-
var
|
|
2074
|
-
const
|
|
2073
|
+
function j(C, h) {
|
|
2074
|
+
var M, u;
|
|
2075
|
+
const P = (u = (M = h.formItemAttributes) == null ? void 0 : M.type) != null ? u : "input";
|
|
2075
2076
|
switch (C) {
|
|
2076
2077
|
case "input":
|
|
2077
|
-
return s.mode === "view" ? !1 :
|
|
2078
|
+
return s.mode === "view" ? !1 : P === "input" || P === "password";
|
|
2078
2079
|
case "select":
|
|
2079
2080
|
return !0;
|
|
2080
2081
|
default:
|
|
2081
2082
|
return console.log("Error: unrecognized form component type: ", C), !0;
|
|
2082
2083
|
}
|
|
2083
2084
|
}
|
|
2084
|
-
function
|
|
2085
|
-
var
|
|
2086
|
-
return ((
|
|
2085
|
+
function K(C, h) {
|
|
2086
|
+
var P;
|
|
2087
|
+
return ((P = C.formItemAttributes) == null ? void 0 : P.type) === h;
|
|
2087
2088
|
}
|
|
2088
2089
|
function ne(C) {
|
|
2089
2090
|
var h;
|
|
2090
|
-
for (let
|
|
2091
|
-
const
|
|
2092
|
-
if (!(
|
|
2093
|
-
const u =
|
|
2091
|
+
for (let P of s.model.fields) {
|
|
2092
|
+
const M = (h = P.formItemAttributes) == null ? void 0 : h.selectAttributes;
|
|
2093
|
+
if (!(!P.formItemAttributes || P.formItemAttributes.type !== "select" || !M || !M.queryParamValueField) && M.queryParamValueField === C.prop) {
|
|
2094
|
+
const u = M.api;
|
|
2094
2095
|
if (u) {
|
|
2095
2096
|
let c = u;
|
|
2096
|
-
const g =
|
|
2097
|
-
g && (c = `${c}?${g}=${r[
|
|
2098
|
-
if (
|
|
2097
|
+
const g = M.queryParamName;
|
|
2098
|
+
g && (c = `${c}?${g}=${r[M.queryParamValueField]}`), ke(c, "GET", {}).then(({ data: x }) => {
|
|
2099
|
+
if (M) {
|
|
2099
2100
|
let F = [];
|
|
2100
|
-
Array.isArray(
|
|
2101
|
-
value:
|
|
2102
|
-
label:
|
|
2101
|
+
Array.isArray(x.data) ? F = x.data : x.data.list && Array.isArray(x.data.list) && (F = x.data.list), M.options = F.map((q) => ({
|
|
2102
|
+
value: M.valueMappingField ? q[M.valueMappingField] : q.value,
|
|
2103
|
+
label: M.labelMappingField ? q[M.labelMappingField] : q.label
|
|
2103
2104
|
}));
|
|
2104
2105
|
}
|
|
2105
2106
|
});
|
|
@@ -2108,15 +2109,15 @@ const ze = (e) => {
|
|
|
2108
2109
|
}
|
|
2109
2110
|
}
|
|
2110
2111
|
return pt(() => {
|
|
2111
|
-
|
|
2112
|
+
D();
|
|
2112
2113
|
}), o({
|
|
2113
|
-
refresh:
|
|
2114
|
-
reset:
|
|
2114
|
+
refresh: D,
|
|
2115
|
+
reset: $,
|
|
2115
2116
|
submit: L,
|
|
2116
2117
|
formData: r
|
|
2117
2118
|
}), (C, h) => {
|
|
2118
|
-
const
|
|
2119
|
-
return Ut((p(),
|
|
2119
|
+
const P = E("el-input"), M = E("el-switch"), u = E("el-date-picker"), c = E("el-option"), g = E("el-select"), x = E("el-form-item"), F = E("el-form"), q = Vt("loading");
|
|
2120
|
+
return Ut((p(), V(F, {
|
|
2120
2121
|
ref_key: "formRef",
|
|
2121
2122
|
ref: a,
|
|
2122
2123
|
model: r,
|
|
@@ -2124,48 +2125,49 @@ const ze = (e) => {
|
|
|
2124
2125
|
"label-width": "auto",
|
|
2125
2126
|
"label-position": "left",
|
|
2126
2127
|
"require-asterisk-position": "right",
|
|
2127
|
-
inline: !
|
|
2128
|
+
inline: !s.disableInline
|
|
2128
2129
|
}, {
|
|
2129
2130
|
default: m(() => [
|
|
2130
|
-
(p(!0),
|
|
2131
|
+
(p(!0), T(oe, null, ce(b.value, (w) => (p(), V(x, {
|
|
2131
2132
|
class: "form-item",
|
|
2132
|
-
|
|
2133
|
-
|
|
2133
|
+
style: Te({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2134
|
+
prop: w.prop,
|
|
2135
|
+
label: z(w)
|
|
2134
2136
|
}, {
|
|
2135
2137
|
default: m(() => {
|
|
2136
|
-
var
|
|
2138
|
+
var U;
|
|
2137
2139
|
return [
|
|
2138
|
-
|
|
2140
|
+
j("input", w) ? (p(), V(P, {
|
|
2139
2141
|
key: 0,
|
|
2140
|
-
type:
|
|
2141
|
-
modelValue: r[
|
|
2142
|
-
"onUpdate:modelValue": (v) => r[
|
|
2143
|
-
placeholder: (
|
|
2144
|
-
disabled:
|
|
2142
|
+
type: K(w, "password") ? "password" : "text",
|
|
2143
|
+
modelValue: r[w.prop],
|
|
2144
|
+
"onUpdate:modelValue": (v) => r[w.prop] = v,
|
|
2145
|
+
placeholder: (U = w.formItemAttributes) == null ? void 0 : U.placeholder,
|
|
2146
|
+
disabled: Y(w)
|
|
2145
2147
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : B("", !0),
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
+
y(w) ? (p(), T("span", Us, R(I(w)), 1)) : B("", !0),
|
|
2149
|
+
K(w, "switch") ? (p(), V(M, {
|
|
2148
2150
|
key: 2,
|
|
2149
|
-
modelValue: r[
|
|
2150
|
-
"onUpdate:modelValue": (v) => r[
|
|
2151
|
+
modelValue: r[w.prop],
|
|
2152
|
+
"onUpdate:modelValue": (v) => r[w.prop] = v
|
|
2151
2153
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
|
|
2152
|
-
|
|
2154
|
+
K(w, "datepicker") ? (p(), V(u, {
|
|
2153
2155
|
key: 3,
|
|
2154
2156
|
type: "date",
|
|
2155
|
-
modelValue: r[
|
|
2156
|
-
"onUpdate:modelValue": (v) => r[
|
|
2157
|
+
modelValue: r[w.prop],
|
|
2158
|
+
"onUpdate:modelValue": (v) => r[w.prop] = v
|
|
2157
2159
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
|
|
2158
|
-
|
|
2160
|
+
K(w, "select") && C.mode !== "view" ? (p(), V(g, {
|
|
2159
2161
|
key: 4,
|
|
2160
|
-
modelValue: r[
|
|
2161
|
-
"onUpdate:modelValue": (v) => r[
|
|
2162
|
-
disabled:
|
|
2163
|
-
onChange: (v) => ne(
|
|
2162
|
+
modelValue: r[w.prop],
|
|
2163
|
+
"onUpdate:modelValue": (v) => r[w.prop] = v,
|
|
2164
|
+
disabled: Y(w),
|
|
2165
|
+
onChange: (v) => ne(w)
|
|
2164
2166
|
}, {
|
|
2165
2167
|
default: m(() => {
|
|
2166
2168
|
var v, f;
|
|
2167
2169
|
return [
|
|
2168
|
-
(p(!0),
|
|
2170
|
+
(p(!0), T(oe, null, ce((f = (v = w.formItemAttributes) == null ? void 0 : v.selectAttributes) == null ? void 0 : f.options, (O) => (p(), V(c, {
|
|
2169
2171
|
value: O.value,
|
|
2170
2172
|
label: O.label
|
|
2171
2173
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -2176,26 +2178,30 @@ const ze = (e) => {
|
|
|
2176
2178
|
];
|
|
2177
2179
|
}),
|
|
2178
2180
|
_: 2
|
|
2179
|
-
}, 1032, ["prop", "label"]))), 256))
|
|
2181
|
+
}, 1032, ["style", "prop", "label"]))), 256))
|
|
2180
2182
|
]),
|
|
2181
2183
|
_: 1
|
|
2182
|
-
}, 8, ["model", "rules"])), [
|
|
2184
|
+
}, 8, ["model", "rules", "inline"])), [
|
|
2183
2185
|
[q, l.value]
|
|
2184
2186
|
]);
|
|
2185
2187
|
};
|
|
2186
2188
|
}
|
|
2187
|
-
}), lo = /* @__PURE__ */
|
|
2189
|
+
}), lo = /* @__PURE__ */ pe(Ts, [["__scopeId", "data-v-e5e9f7e1"]]), Ds = { class: "console-dialog__body" }, Rs = {
|
|
2190
|
+
key: 0,
|
|
2191
|
+
class: "process-view"
|
|
2192
|
+
}, Fs = { class: "operation-button-wrapper" }, io = /* @__PURE__ */ _e({
|
|
2188
2193
|
__name: "FormDialog",
|
|
2189
2194
|
props: {
|
|
2190
2195
|
id: {},
|
|
2191
2196
|
mode: {},
|
|
2192
2197
|
model: {},
|
|
2193
2198
|
visible: { type: Boolean },
|
|
2199
|
+
showProcess: { type: Boolean },
|
|
2194
2200
|
afterSubmitFunc: { type: Function }
|
|
2195
2201
|
},
|
|
2196
2202
|
emits: ["update:visible", "update:id"],
|
|
2197
2203
|
setup(e, { expose: o, emit: t }) {
|
|
2198
|
-
const { t: n } =
|
|
2204
|
+
const { t: n } = He(), s = e, r = N(0), l = t, a = N();
|
|
2199
2205
|
Se(() => s.visible, () => {
|
|
2200
2206
|
s.visible && r.value++;
|
|
2201
2207
|
});
|
|
@@ -2205,83 +2211,107 @@ const ze = (e) => {
|
|
|
2205
2211
|
function d() {
|
|
2206
2212
|
l("update:visible", !1), a.value.reset();
|
|
2207
2213
|
}
|
|
2208
|
-
function
|
|
2214
|
+
function y() {
|
|
2209
2215
|
a.value.submit();
|
|
2210
2216
|
}
|
|
2211
2217
|
return o({
|
|
2212
2218
|
close: d,
|
|
2213
2219
|
refresh: i
|
|
2214
|
-
}), (
|
|
2215
|
-
const
|
|
2216
|
-
return p(),
|
|
2220
|
+
}), (b, A) => {
|
|
2221
|
+
const D = E("el-step"), L = E("el-steps"), $ = E("el-button"), z = E("el-dialog");
|
|
2222
|
+
return p(), V(z, {
|
|
2223
|
+
class: "console-dialog",
|
|
2217
2224
|
title: "Edit",
|
|
2225
|
+
"align-center": "",
|
|
2218
2226
|
"model-value": s.visible,
|
|
2219
2227
|
width: "800px",
|
|
2220
2228
|
onClose: d
|
|
2221
2229
|
}, {
|
|
2222
2230
|
footer: m(() => {
|
|
2223
|
-
var
|
|
2231
|
+
var I;
|
|
2224
2232
|
return [
|
|
2225
|
-
S("div",
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2233
|
+
S("div", {
|
|
2234
|
+
class: "dialog-footer",
|
|
2235
|
+
style: Te({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2236
|
+
}, [
|
|
2237
|
+
S("div", Fs, [
|
|
2238
|
+
(p(!0), T(oe, null, ce((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (Y) => (p(), V($, {
|
|
2239
|
+
onClick: (j) => Y.function(a.value.formData)
|
|
2229
2240
|
}, {
|
|
2230
2241
|
default: m(() => [
|
|
2231
|
-
|
|
2242
|
+
Q(R(k(n)(Y.label)), 1)
|
|
2232
2243
|
]),
|
|
2233
2244
|
_: 2
|
|
2234
2245
|
}, 1032, ["onClick"]))), 256))
|
|
2235
2246
|
]),
|
|
2236
2247
|
S("div", null, [
|
|
2237
|
-
_(
|
|
2248
|
+
_($, { onClick: d }, {
|
|
2238
2249
|
default: m(() => [
|
|
2239
|
-
|
|
2250
|
+
Q(R(k(n)("common.basic.cancel")), 1)
|
|
2240
2251
|
]),
|
|
2241
2252
|
_: 1
|
|
2242
2253
|
}),
|
|
2243
|
-
_(
|
|
2254
|
+
_($, {
|
|
2244
2255
|
type: "primary",
|
|
2245
|
-
onClick:
|
|
2256
|
+
onClick: y
|
|
2246
2257
|
}, {
|
|
2247
2258
|
default: m(() => [
|
|
2248
|
-
|
|
2259
|
+
Q(R(k(n)("common.basic.save")), 1)
|
|
2249
2260
|
]),
|
|
2250
2261
|
_: 1
|
|
2251
2262
|
})
|
|
2252
2263
|
])
|
|
2253
|
-
])
|
|
2264
|
+
], 4)
|
|
2254
2265
|
];
|
|
2255
2266
|
}),
|
|
2256
2267
|
default: m(() => [
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2268
|
+
S("div", Ds, [
|
|
2269
|
+
_(lo, {
|
|
2270
|
+
class: "form-view",
|
|
2271
|
+
style: Te({ width: b.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2272
|
+
ref_key: "formViewRef",
|
|
2273
|
+
ref: a,
|
|
2274
|
+
id: s.id,
|
|
2275
|
+
sessionId: r.value,
|
|
2276
|
+
mode: s.mode,
|
|
2277
|
+
model: s.model,
|
|
2278
|
+
afterSubmitFunc: s.afterSubmitFunc,
|
|
2279
|
+
closeDialogFunc: d,
|
|
2280
|
+
disableInline: s.showProcess
|
|
2281
|
+
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2282
|
+
b.showProcess ? (p(), T("div", Rs, [
|
|
2283
|
+
A[0] || (A[0] = S("h1", null, "流程动态", -1)),
|
|
2284
|
+
_(L, {
|
|
2285
|
+
style: { height: "90%" },
|
|
2286
|
+
direction: "vertical",
|
|
2287
|
+
active: 1
|
|
2288
|
+
}, {
|
|
2289
|
+
default: m(() => [
|
|
2290
|
+
_(D, { title: "Step 1" }),
|
|
2291
|
+
_(D, { title: "Step 2" })
|
|
2292
|
+
]),
|
|
2293
|
+
_: 1
|
|
2294
|
+
})
|
|
2295
|
+
])) : B("", !0)
|
|
2296
|
+
])
|
|
2267
2297
|
]),
|
|
2268
2298
|
_: 1
|
|
2269
2299
|
}, 8, ["model-value"]);
|
|
2270
2300
|
};
|
|
2271
2301
|
}
|
|
2272
|
-
}),
|
|
2302
|
+
}), Gs = { class: "toolbar" }, Ls = { class: "tool-buttons" }, js = { class: "tool-buttons" }, zs = { key: 2 }, qs = /* @__PURE__ */ _e({
|
|
2273
2303
|
__name: "TableView",
|
|
2274
2304
|
props: {
|
|
2275
2305
|
model: {}
|
|
2276
2306
|
},
|
|
2277
2307
|
setup(e, { expose: o }) {
|
|
2278
|
-
const { t } =
|
|
2308
|
+
const { t } = tt.global, n = e, s = re([]), r = re({
|
|
2279
2309
|
showPane: !0
|
|
2280
|
-
}), l =
|
|
2310
|
+
}), l = N(""), a = N(!0), i = N(!1), d = st(), y = N(""), b = re([]), A = re([]), D = N(), L = N([]), $ = N("create"), z = N(!0), I = N(!1), Y = N(""), j = re({
|
|
2281
2311
|
pageSize: 10,
|
|
2282
2312
|
pageNo: 1,
|
|
2283
2313
|
totalElements: 0
|
|
2284
|
-
}),
|
|
2314
|
+
}), K = De(() => s.filter(
|
|
2285
2315
|
(f) => {
|
|
2286
2316
|
var O, G;
|
|
2287
2317
|
return ((O = f.formItemAttributes) == null ? void 0 : O.type) !== "password" && f.visible !== !1 && ((G = f.tableColumnAttributes) == null ? void 0 : G.visible) !== !1;
|
|
@@ -2320,26 +2350,26 @@ const ze = (e) => {
|
|
|
2320
2350
|
return f.label ? t(f.label) : (X = (G = f.functions) == null ? void 0 : G.transformLabel) == null ? void 0 : X.call(G, O.$index, O.row);
|
|
2321
2351
|
}
|
|
2322
2352
|
function h(f) {
|
|
2323
|
-
|
|
2353
|
+
qe(n.model), Object.assign(n.model, f);
|
|
2324
2354
|
}
|
|
2325
|
-
function
|
|
2355
|
+
function P() {
|
|
2326
2356
|
var O, G, X;
|
|
2327
|
-
if (
|
|
2357
|
+
if (z.value = !0, !n.model || !n.model.api)
|
|
2328
2358
|
return;
|
|
2329
|
-
|
|
2330
|
-
let f =
|
|
2331
|
-
f.pageSize =
|
|
2359
|
+
qe(r), r.showPane = !0, Object.assign(r, (O = n.model.tableConfig) != null ? O : {}), s.splice(0, s.length, ...n.model.fields), l.value = (G = n.model.route) != null ? G : "", a.value = (X = n.model.useI18n) != null ? X : !0;
|
|
2360
|
+
let f = Je({}, r.queryParams);
|
|
2361
|
+
f.pageSize = j.pageSize, f.pageNo = j.pageNo, f.search = y.value, ke(n.model.api, "GET", f).then(({ data: W }) => {
|
|
2332
2362
|
const { list: ae, totalCount: fe } = W.data;
|
|
2333
|
-
|
|
2363
|
+
b.splice(0, b.length, ...ae), j.totalElements = fe, z.value = !1;
|
|
2334
2364
|
});
|
|
2335
2365
|
}
|
|
2336
|
-
function
|
|
2366
|
+
function M() {
|
|
2337
2367
|
var f, O;
|
|
2338
|
-
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (O = r.functions) == null || O.create() : (
|
|
2368
|
+
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (O = r.functions) == null || O.create() : ($.value = "create", Y.value = "", i.value = !0);
|
|
2339
2369
|
}
|
|
2340
2370
|
function u(f, O) {
|
|
2341
2371
|
n.model.api && ke(n.model.api, "DELETE", O.id).then(({ data: G }) => {
|
|
2342
|
-
G.code === 0 && (i.value = !1,
|
|
2372
|
+
G.code === 0 && (i.value = !1, P());
|
|
2343
2373
|
});
|
|
2344
2374
|
}
|
|
2345
2375
|
function c() {
|
|
@@ -2357,20 +2387,20 @@ const ze = (e) => {
|
|
|
2357
2387
|
(O = r.functions) == null || O.batchDelete(L.value);
|
|
2358
2388
|
else {
|
|
2359
2389
|
const G = L.value.map((X) => X.id);
|
|
2360
|
-
|
|
2361
|
-
X.code === 0 && (i.value = !1,
|
|
2390
|
+
de.delete(`${n.model.api}/${G.join(",")}`).then(({ data: X }) => {
|
|
2391
|
+
X.code === 0 && (i.value = !1, P());
|
|
2362
2392
|
});
|
|
2363
2393
|
}
|
|
2364
|
-
|
|
2394
|
+
D.value.clearSelection();
|
|
2365
2395
|
}).catch(() => {
|
|
2366
|
-
|
|
2396
|
+
D.value.clearSelection();
|
|
2367
2397
|
});
|
|
2368
2398
|
}
|
|
2369
2399
|
function g(f) {
|
|
2370
|
-
|
|
2400
|
+
j.pageSize = f, P();
|
|
2371
2401
|
}
|
|
2372
|
-
function
|
|
2373
|
-
|
|
2402
|
+
function x(f) {
|
|
2403
|
+
j.pageNo = f, P();
|
|
2374
2404
|
}
|
|
2375
2405
|
function F(f, O) {
|
|
2376
2406
|
r.editPageRoutePath !== void 0 ? d.push({
|
|
@@ -2378,7 +2408,7 @@ const ze = (e) => {
|
|
|
2378
2408
|
query: {
|
|
2379
2409
|
id: O.id
|
|
2380
2410
|
}
|
|
2381
|
-
}) : (
|
|
2411
|
+
}) : (Y.value = O.id, $.value = "update", i.value = !0);
|
|
2382
2412
|
}
|
|
2383
2413
|
function q() {
|
|
2384
2414
|
let f = window.location.origin + n.model.api + "/export";
|
|
@@ -2387,32 +2417,32 @@ const ze = (e) => {
|
|
|
2387
2417
|
f += `${G[0]}=${G[1]}&`;
|
|
2388
2418
|
})), window.open(f);
|
|
2389
2419
|
}
|
|
2390
|
-
function
|
|
2420
|
+
function w(f) {
|
|
2391
2421
|
L.value = f;
|
|
2392
2422
|
}
|
|
2393
|
-
function
|
|
2423
|
+
function U(f) {
|
|
2394
2424
|
return f.label ? a.value ? t(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
|
|
2395
2425
|
}
|
|
2396
2426
|
function v(f) {
|
|
2397
|
-
f ? (
|
|
2427
|
+
f ? (I.value = !0, A.splice(0, A.length, ...b), b.splice(0, b.length, ...L.value)) : (I.value = !1, b.splice(0, b.length, ...A));
|
|
2398
2428
|
}
|
|
2399
2429
|
return Se(() => n.model, () => {
|
|
2400
|
-
|
|
2430
|
+
P();
|
|
2401
2431
|
}, {
|
|
2402
2432
|
deep: !0,
|
|
2403
2433
|
immediate: !0
|
|
2404
2434
|
}), o({
|
|
2405
2435
|
multipleSelection: L,
|
|
2406
|
-
refresh:
|
|
2436
|
+
refresh: P,
|
|
2407
2437
|
updateConfigAndRefresh: h
|
|
2408
2438
|
}), (f, O) => {
|
|
2409
|
-
const G =
|
|
2410
|
-
return p(),
|
|
2439
|
+
const G = E("el-checkbox"), X = E("el-badge"), W = E("el-button"), ae = E("el-icon"), fe = E("el-tooltip"), le = E("el-input"), ie = E("el-table-column"), Z = E("router-link"), J = E("el-tag"), ge = E("el-popconfirm"), be = E("el-table"), Re = E("el-pagination"), co = Vt("loading");
|
|
2440
|
+
return p(), T("div", {
|
|
2411
2441
|
class: Mt({ "table-view-wrapper": r.showPane })
|
|
2412
2442
|
}, [
|
|
2413
2443
|
S("div", Gs, [
|
|
2414
2444
|
S("div", Ls, [
|
|
2415
|
-
r.selectMode ? (p(),
|
|
2445
|
+
r.selectMode ? (p(), V(X, {
|
|
2416
2446
|
key: 0,
|
|
2417
2447
|
value: L.value.length,
|
|
2418
2448
|
type: "primary",
|
|
@@ -2428,20 +2458,20 @@ const ze = (e) => {
|
|
|
2428
2458
|
]),
|
|
2429
2459
|
_: 1
|
|
2430
2460
|
}, 8, ["value"])) : B("", !0),
|
|
2431
|
-
!r.selectMode && !r.readOnly ? (p(),
|
|
2461
|
+
!r.selectMode && !r.readOnly ? (p(), V(W, {
|
|
2432
2462
|
key: 1,
|
|
2433
2463
|
type: "primary",
|
|
2434
|
-
onClick:
|
|
2464
|
+
onClick: M
|
|
2435
2465
|
}, {
|
|
2436
2466
|
default: m(() => {
|
|
2437
2467
|
var se, H;
|
|
2438
2468
|
return [
|
|
2439
|
-
|
|
2469
|
+
Q(R(((se = r.labels) == null ? void 0 : se.create) != null ? k(t)((H = r.labels) == null ? void 0 : H.create) : k(t)("common.table.create")), 1)
|
|
2440
2470
|
];
|
|
2441
2471
|
}),
|
|
2442
2472
|
_: 1
|
|
2443
2473
|
})) : B("", !0),
|
|
2444
|
-
!r.selectMode && !r.readOnly ? (p(),
|
|
2474
|
+
!r.selectMode && !r.readOnly ? (p(), V(W, {
|
|
2445
2475
|
key: 2,
|
|
2446
2476
|
disabled: L.value.length == 0,
|
|
2447
2477
|
type: "danger",
|
|
@@ -2451,16 +2481,16 @@ const ze = (e) => {
|
|
|
2451
2481
|
default: m(() => {
|
|
2452
2482
|
var se, H;
|
|
2453
2483
|
return [
|
|
2454
|
-
|
|
2484
|
+
Q(R(((se = r.labels) == null ? void 0 : se.delete) != null ? k(t)((H = r.labels) == null ? void 0 : H.delete) : k(t)("common.table.delete")), 1)
|
|
2455
2485
|
];
|
|
2456
2486
|
}),
|
|
2457
2487
|
_: 1
|
|
2458
2488
|
}, 8, ["disabled"])) : B("", !0),
|
|
2459
2489
|
_(W, {
|
|
2460
2490
|
icon: k(Dt),
|
|
2461
|
-
onClick:
|
|
2491
|
+
onClick: P
|
|
2462
2492
|
}, null, 8, ["icon"]),
|
|
2463
|
-
r.tooltip ? (p(),
|
|
2493
|
+
r.tooltip ? (p(), V(fe, {
|
|
2464
2494
|
key: 3,
|
|
2465
2495
|
effect: "dark",
|
|
2466
2496
|
content: k(t)(r.tooltip),
|
|
@@ -2478,7 +2508,7 @@ const ze = (e) => {
|
|
|
2478
2508
|
}, 8, ["content"])) : B("", !0)
|
|
2479
2509
|
]),
|
|
2480
2510
|
S("div", js, [
|
|
2481
|
-
r.export ? (p(),
|
|
2511
|
+
r.export ? (p(), V(W, {
|
|
2482
2512
|
key: 0,
|
|
2483
2513
|
class: "button-export",
|
|
2484
2514
|
onClick: q
|
|
@@ -2495,48 +2525,48 @@ const ze = (e) => {
|
|
|
2495
2525
|
})) : B("", !0),
|
|
2496
2526
|
_(le, {
|
|
2497
2527
|
placeholder: `${k(t)("common.table.search")}...`,
|
|
2498
|
-
modelValue:
|
|
2499
|
-
"onUpdate:modelValue": O[0] || (O[0] = (se) =>
|
|
2528
|
+
modelValue: y.value,
|
|
2529
|
+
"onUpdate:modelValue": O[0] || (O[0] = (se) => y.value = se)
|
|
2500
2530
|
}, {
|
|
2501
2531
|
append: m(() => [
|
|
2502
2532
|
_(W, {
|
|
2503
2533
|
style: { "margin-left": "-20px" },
|
|
2504
2534
|
icon: k(Tt),
|
|
2505
|
-
onClick:
|
|
2535
|
+
onClick: P
|
|
2506
2536
|
}, null, 8, ["icon"])
|
|
2507
2537
|
]),
|
|
2508
2538
|
_: 1
|
|
2509
2539
|
}, 8, ["placeholder", "modelValue"])
|
|
2510
2540
|
])
|
|
2511
2541
|
]),
|
|
2512
|
-
Ut((p(),
|
|
2542
|
+
Ut((p(), V(be, {
|
|
2513
2543
|
border: !0,
|
|
2514
2544
|
ref_key: "tableRef",
|
|
2515
|
-
ref:
|
|
2516
|
-
data:
|
|
2517
|
-
onSelectionChange:
|
|
2545
|
+
ref: D,
|
|
2546
|
+
data: b,
|
|
2547
|
+
onSelectionChange: w,
|
|
2518
2548
|
class: "table"
|
|
2519
2549
|
}, {
|
|
2520
2550
|
default: m(() => {
|
|
2521
2551
|
var se;
|
|
2522
2552
|
return [
|
|
2523
|
-
r.readOnly ? B("", !0) : (p(),
|
|
2553
|
+
r.readOnly ? B("", !0) : (p(), V(ie, {
|
|
2524
2554
|
key: 0,
|
|
2525
2555
|
type: "selection",
|
|
2526
2556
|
width: "50"
|
|
2527
2557
|
})),
|
|
2528
|
-
(p(!0),
|
|
2558
|
+
(p(!0), T(oe, null, ce(K.value, (H) => {
|
|
2529
2559
|
var Ce;
|
|
2530
|
-
return p(),
|
|
2560
|
+
return p(), V(ie, {
|
|
2531
2561
|
prop: H.prop,
|
|
2532
|
-
label:
|
|
2562
|
+
label: U(H),
|
|
2533
2563
|
width: (Ce = H.tableColumnAttributes) == null ? void 0 : Ce.width,
|
|
2534
2564
|
"show-overflow-tooltip": ""
|
|
2535
2565
|
}, {
|
|
2536
2566
|
default: m((Ee) => {
|
|
2537
|
-
var xe,
|
|
2567
|
+
var xe, Fe, vt;
|
|
2538
2568
|
return [
|
|
2539
|
-
(xe = H.tableColumnAttributes) != null && xe.link ? (p(),
|
|
2569
|
+
(xe = H.tableColumnAttributes) != null && xe.link ? (p(), V(Z, {
|
|
2540
2570
|
key: 0,
|
|
2541
2571
|
class: "router-link",
|
|
2542
2572
|
to: `/${l.value}/detail?id=${Ee.row.id}`
|
|
@@ -2545,7 +2575,7 @@ const ze = (e) => {
|
|
|
2545
2575
|
S("span", null, R(ne(H, Ee)), 1)
|
|
2546
2576
|
]),
|
|
2547
2577
|
_: 2
|
|
2548
|
-
}, 1032, ["to"])) : (
|
|
2578
|
+
}, 1032, ["to"])) : (Fe = H.tableColumnAttributes) != null && Fe.routerLink ? (p(), V(Z, {
|
|
2549
2579
|
key: 1,
|
|
2550
2580
|
class: "router-link",
|
|
2551
2581
|
to: H.tableColumnAttributes.routerLink.replace("{id}", Ee.row.id)
|
|
@@ -2554,10 +2584,10 @@ const ze = (e) => {
|
|
|
2554
2584
|
S("span", null, R(ne(H, Ee)), 1)
|
|
2555
2585
|
]),
|
|
2556
2586
|
_: 2
|
|
2557
|
-
}, 1032, ["to"])) : (p(),
|
|
2558
|
-
((vt = H.tableColumnAttributes) == null ? void 0 : vt.type) === "tag" ? (p(),
|
|
2587
|
+
}, 1032, ["to"])) : (p(), T("span", zs, R(ne(H, Ee)), 1)),
|
|
2588
|
+
((vt = H.tableColumnAttributes) == null ? void 0 : vt.type) === "tag" ? (p(), V(J, { key: 3 }, {
|
|
2559
2589
|
default: m(() => [
|
|
2560
|
-
|
|
2590
|
+
Q(R(Ee.row[H.prop]), 1)
|
|
2561
2591
|
]),
|
|
2562
2592
|
_: 2
|
|
2563
2593
|
}, 1024)) : B("", !0)
|
|
@@ -2566,7 +2596,7 @@ const ze = (e) => {
|
|
|
2566
2596
|
_: 2
|
|
2567
2597
|
}, 1032, ["prop", "label", "width"]);
|
|
2568
2598
|
}), 256)),
|
|
2569
|
-
r.operations === void 0 && !((se = r.selectMode) != null && se) && !r.readOnly ? (p(),
|
|
2599
|
+
r.operations === void 0 && !((se = r.selectMode) != null && se) && !r.readOnly ? (p(), V(ie, {
|
|
2570
2600
|
key: 1,
|
|
2571
2601
|
label: k(t)("common.table.operation"),
|
|
2572
2602
|
width: "120"
|
|
@@ -2579,7 +2609,7 @@ const ze = (e) => {
|
|
|
2579
2609
|
onClick: (Ce) => F(H.$index, H.row)
|
|
2580
2610
|
}, {
|
|
2581
2611
|
default: m(() => [
|
|
2582
|
-
|
|
2612
|
+
Q(R(k(t)("common.table.edit")), 1)
|
|
2583
2613
|
]),
|
|
2584
2614
|
_: 2
|
|
2585
2615
|
}, 1032, ["onClick"]),
|
|
@@ -2594,7 +2624,7 @@ const ze = (e) => {
|
|
|
2594
2624
|
class: "operation-button"
|
|
2595
2625
|
}, {
|
|
2596
2626
|
default: m(() => [
|
|
2597
|
-
|
|
2627
|
+
Q(R(k(t)("common.table.delete")), 1)
|
|
2598
2628
|
]),
|
|
2599
2629
|
_: 1
|
|
2600
2630
|
})
|
|
@@ -2604,24 +2634,24 @@ const ze = (e) => {
|
|
|
2604
2634
|
]),
|
|
2605
2635
|
_: 1
|
|
2606
2636
|
}, 8, ["label"])) : B("", !0),
|
|
2607
|
-
r.operations !== void 0 && !r.readOnly ? (p(),
|
|
2637
|
+
r.operations !== void 0 && !r.readOnly ? (p(), V(ie, {
|
|
2608
2638
|
key: 2,
|
|
2609
2639
|
label: k(t)("common.table.operation"),
|
|
2610
2640
|
width: "120"
|
|
2611
2641
|
}, {
|
|
2612
2642
|
default: m((H) => [
|
|
2613
|
-
(p(!0),
|
|
2643
|
+
(p(!0), T(oe, null, ce(r.operations, (Ce) => (p(), V(W, {
|
|
2614
2644
|
class: "operation-button",
|
|
2615
2645
|
link: "",
|
|
2616
2646
|
type: "primary",
|
|
2617
2647
|
key: Ce.label,
|
|
2618
2648
|
onClick: (Ee) => {
|
|
2619
|
-
var xe,
|
|
2620
|
-
return ((
|
|
2649
|
+
var xe, Fe;
|
|
2650
|
+
return ((Fe = (xe = Ce.functions) == null ? void 0 : xe.click) == null ? void 0 : Fe.call(xe, H.$index, H.row)) && P();
|
|
2621
2651
|
}
|
|
2622
2652
|
}, {
|
|
2623
2653
|
default: m(() => [
|
|
2624
|
-
|
|
2654
|
+
Q(R(C(Ce, H)), 1)
|
|
2625
2655
|
]),
|
|
2626
2656
|
_: 2
|
|
2627
2657
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -2632,43 +2662,43 @@ const ze = (e) => {
|
|
|
2632
2662
|
}),
|
|
2633
2663
|
_: 1
|
|
2634
2664
|
}, 8, ["data"])), [
|
|
2635
|
-
[co,
|
|
2665
|
+
[co, z.value]
|
|
2636
2666
|
]),
|
|
2637
|
-
|
|
2667
|
+
I.value ? B("", !0) : (p(), V(Re, {
|
|
2638
2668
|
key: 0,
|
|
2639
2669
|
size: "small",
|
|
2640
2670
|
background: "",
|
|
2641
2671
|
onSizeChange: g,
|
|
2642
|
-
onCurrentChange:
|
|
2643
|
-
currentPage:
|
|
2644
|
-
"onUpdate:currentPage": O[1] || (O[1] = (se) =>
|
|
2672
|
+
onCurrentChange: x,
|
|
2673
|
+
currentPage: j.pageNo,
|
|
2674
|
+
"onUpdate:currentPage": O[1] || (O[1] = (se) => j.pageNo = se),
|
|
2645
2675
|
"page-sizes": [10, 20, 50, 100],
|
|
2646
|
-
"page-size":
|
|
2676
|
+
"page-size": j.pageSize,
|
|
2647
2677
|
layout: "total, sizes, prev, pager, next",
|
|
2648
|
-
total:
|
|
2678
|
+
total: j.totalElements
|
|
2649
2679
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
2650
2680
|
_(io, {
|
|
2651
2681
|
model: f.model,
|
|
2652
|
-
mode:
|
|
2653
|
-
id:
|
|
2654
|
-
afterSubmitFunc:
|
|
2682
|
+
mode: $.value,
|
|
2683
|
+
id: Y.value,
|
|
2684
|
+
afterSubmitFunc: P,
|
|
2655
2685
|
visible: i.value,
|
|
2656
2686
|
"onUpdate:visible": O[2] || (O[2] = (se) => i.value = se)
|
|
2657
2687
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
2658
2688
|
], 2);
|
|
2659
2689
|
};
|
|
2660
2690
|
}
|
|
2661
|
-
}),
|
|
2691
|
+
}), nt = /* @__PURE__ */ pe(qs, [["__scopeId", "data-v-c534121e"]]), Bs = { class: "nav-bar" }, Hs = {
|
|
2662
2692
|
key: 0,
|
|
2663
2693
|
class: "info-card-wrapper"
|
|
2664
2694
|
}, Js = { class: "icon-wrapper" }, Ws = { class: "info-wrapper" }, Ys = { class: "title-wrapper" }, Qs = { class: "tabs-wrapper" }, Ks = { class: "dialog-footer" }, Xs = /* @__PURE__ */ _e({
|
|
2665
2695
|
__name: "DetailPage",
|
|
2666
2696
|
setup(e) {
|
|
2667
|
-
const { t: o } =
|
|
2697
|
+
const { t: o } = He(), t = Be(), n = st(), s = De(() => t.query.id), r = N(!1), l = N(!1), a = N("view"), i = N(), d = N(-1), y = N(), b = N(), A = N("summary"), D = N(""), L = N(""), $ = N(""), z = N(0), I = re({
|
|
2668
2698
|
api: "",
|
|
2669
2699
|
fields: []
|
|
2670
|
-
}),
|
|
2671
|
-
let
|
|
2700
|
+
}), Y = re([]);
|
|
2701
|
+
let j = [];
|
|
2672
2702
|
Se([
|
|
2673
2703
|
() => n.currentRoute.value,
|
|
2674
2704
|
he
|
|
@@ -2678,85 +2708,85 @@ const ze = (e) => {
|
|
|
2678
2708
|
immediate: !0,
|
|
2679
2709
|
deep: !0
|
|
2680
2710
|
});
|
|
2681
|
-
function
|
|
2711
|
+
function K(u) {
|
|
2682
2712
|
d.value = parseInt(u.index) - 1;
|
|
2683
2713
|
}
|
|
2684
2714
|
function ne() {
|
|
2685
|
-
var
|
|
2686
|
-
let u = (
|
|
2715
|
+
var x;
|
|
2716
|
+
let u = (x = j[d.value].api) == null ? void 0 : x.replace("/select", "");
|
|
2687
2717
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
2688
|
-
const c =
|
|
2718
|
+
const c = I.api + "/" + s.value + u, g = b.value.multipleSelection.map((F) => F.id);
|
|
2689
2719
|
ke(c, "POST", g).then(() => {
|
|
2690
|
-
|
|
2720
|
+
y.value.refresh(), l.value = !1;
|
|
2691
2721
|
});
|
|
2692
2722
|
}
|
|
2693
2723
|
function C(u, c, g) {
|
|
2694
2724
|
var q;
|
|
2695
2725
|
g.functions || (g.functions = {}), g.functions.create = () => {
|
|
2696
|
-
l.value = !0,
|
|
2726
|
+
l.value = !0, b.value && b.value.refresh();
|
|
2697
2727
|
};
|
|
2698
|
-
let
|
|
2699
|
-
|
|
2700
|
-
for (var F in
|
|
2701
|
-
|
|
2702
|
-
|
|
2728
|
+
let x = Ue(c);
|
|
2729
|
+
x.tableConfig || (x.tableConfig = {}), x.tableConfig.selectMode = !0, x.tableConfig.queryParams = {}, u.queryParamName && (x.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
2730
|
+
for (var F in x.fields)
|
|
2731
|
+
x.fields[F].tableColumnAttributes && (q = x.fields[F].tableColumnAttributes) != null && q.link && (x.fields[F].tableColumnAttributes.link = !1);
|
|
2732
|
+
j.push(x), g.labels = {
|
|
2703
2733
|
create: "common.table.add",
|
|
2704
2734
|
delete: "common.table.remove"
|
|
2705
|
-
}, g.functions.batchDelete = (
|
|
2735
|
+
}, g.functions.batchDelete = (w) => {
|
|
2706
2736
|
var O;
|
|
2707
|
-
let
|
|
2708
|
-
|
|
2709
|
-
const v =
|
|
2710
|
-
|
|
2711
|
-
G.code === 0 &&
|
|
2737
|
+
let U = (O = j[d.value].api) == null ? void 0 : O.replace("/select", "");
|
|
2738
|
+
U = U == null ? void 0 : U.substring(U.lastIndexOf("/"));
|
|
2739
|
+
const v = I.api + "/" + s.value + U, f = w.map((G) => G.id);
|
|
2740
|
+
de.delete(`${v}/${f.join(",")}`).then(({ data: G }) => {
|
|
2741
|
+
G.code === 0 && y.value.refresh();
|
|
2712
2742
|
});
|
|
2713
2743
|
}, g.operations = [
|
|
2714
2744
|
{
|
|
2715
2745
|
label: "common.table.remove",
|
|
2716
2746
|
functions: {
|
|
2717
|
-
click: (
|
|
2747
|
+
click: (w, U) => {
|
|
2718
2748
|
var O;
|
|
2719
|
-
let v = (O =
|
|
2749
|
+
let v = (O = j[d.value].api) == null ? void 0 : O.replace("/select", "");
|
|
2720
2750
|
v = v == null ? void 0 : v.substring(v.lastIndexOf("/"));
|
|
2721
|
-
const f =
|
|
2722
|
-
ke(f, "DELETE",
|
|
2723
|
-
|
|
2751
|
+
const f = I.api + "/" + s.value + v;
|
|
2752
|
+
ke(f, "DELETE", U.id).then(() => {
|
|
2753
|
+
y.value.refresh();
|
|
2724
2754
|
});
|
|
2725
2755
|
}
|
|
2726
2756
|
}
|
|
2727
2757
|
}
|
|
2728
|
-
],
|
|
2758
|
+
], x.api += "/select";
|
|
2729
2759
|
}
|
|
2730
2760
|
function h() {
|
|
2731
|
-
var
|
|
2732
|
-
|
|
2761
|
+
var x, F, q;
|
|
2762
|
+
Y.splice(0);
|
|
2733
2763
|
const u = t.params.model;
|
|
2734
2764
|
if (he.value[u] === void 0) {
|
|
2735
2765
|
console.warn("Detail page model not exist:", u);
|
|
2736
2766
|
return;
|
|
2737
2767
|
} else
|
|
2738
2768
|
console.debug("Detail page model found:", u, he.value[u]);
|
|
2739
|
-
|
|
2769
|
+
qe(I);
|
|
2740
2770
|
const c = Ue(he.value[u]);
|
|
2741
|
-
Object.assign(
|
|
2742
|
-
const g = (F = (
|
|
2771
|
+
Object.assign(I, c), z.value++, d.value = -1, A.value = "summary";
|
|
2772
|
+
const g = (F = (x = I.pageConfig) == null ? void 0 : x.detailPage) == null ? void 0 : F.tabs;
|
|
2743
2773
|
if (g)
|
|
2744
|
-
for (let
|
|
2745
|
-
const
|
|
2746
|
-
if (
|
|
2747
|
-
|
|
2748
|
-
let v =
|
|
2749
|
-
v.showPane = !1,
|
|
2774
|
+
for (let w of g) {
|
|
2775
|
+
const U = Ue(he.value[w.modelKey]);
|
|
2776
|
+
if (Y.push(U), w.type === "table") {
|
|
2777
|
+
U.tableConfig || (U.tableConfig = {});
|
|
2778
|
+
let v = U.tableConfig;
|
|
2779
|
+
v.showPane = !1, w.modelRelationType === "associated" ? C(w, U, v) : w.modelRelationType === "child" && (j.push({
|
|
2750
2780
|
fields: []
|
|
2751
|
-
}),
|
|
2752
|
-
f[
|
|
2753
|
-
})), v.queryParams || (v.queryParams = {}),
|
|
2781
|
+
}), U.formConfig === void 0 && (U.formConfig = {}), U.formConfig.functions === void 0 && (U.formConfig.functions = {}), w.queryParamName && (U.formConfig.functions.beforeSubmit = (f) => {
|
|
2782
|
+
f[w.queryParamName] = s.value;
|
|
2783
|
+
})), v.queryParams || (v.queryParams = {}), w.queryParamName && (v.queryParams[w.queryParamName] = s.value), w.queryParams && Object.assign(v.queryParams, w.queryParams), v.readOnly = (q = w.readOnly) != null ? q : !1, w.includeFields && (U.fields = U.fields.filter((f) => {
|
|
2754
2784
|
var O;
|
|
2755
|
-
return (O =
|
|
2756
|
-
})),
|
|
2785
|
+
return (O = w.includeFields) == null ? void 0 : O.includes(f.prop);
|
|
2786
|
+
})), w.excludeFields && (U.fields = U.fields.filter((f) => {
|
|
2757
2787
|
var O;
|
|
2758
|
-
return !((O =
|
|
2759
|
-
})),
|
|
2788
|
+
return !((O = w.excludeFields) != null && O.includes(f.prop));
|
|
2789
|
+
})), w.tooltip && (v.tooltip = w.tooltip);
|
|
2760
2790
|
}
|
|
2761
2791
|
}
|
|
2762
2792
|
}
|
|
@@ -2764,7 +2794,7 @@ const ze = (e) => {
|
|
|
2764
2794
|
[
|
|
2765
2795
|
() => {
|
|
2766
2796
|
var u, c;
|
|
2767
|
-
return (c = (u =
|
|
2797
|
+
return (c = (u = I.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
|
|
2768
2798
|
},
|
|
2769
2799
|
() => {
|
|
2770
2800
|
var u;
|
|
@@ -2772,14 +2802,14 @@ const ze = (e) => {
|
|
|
2772
2802
|
}
|
|
2773
2803
|
],
|
|
2774
2804
|
(u) => {
|
|
2775
|
-
|
|
2776
|
-
var g,
|
|
2777
|
-
const c = (
|
|
2778
|
-
c && (
|
|
2779
|
-
var
|
|
2805
|
+
et(() => {
|
|
2806
|
+
var g, x, F;
|
|
2807
|
+
const c = (x = (g = I.pageConfig) == null ? void 0 : g.detailPage) == null ? void 0 : x.infoCard;
|
|
2808
|
+
c && (D.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", L.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", $.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (F = I.fields) == null || F.forEach((q) => {
|
|
2809
|
+
var w, U;
|
|
2780
2810
|
if (q.prop === c.tagFieldProp) {
|
|
2781
|
-
const v = (
|
|
2782
|
-
v && (
|
|
2811
|
+
const v = (U = (w = q.tableColumnAttributes) == null ? void 0 : w.functions) == null ? void 0 : U.transformValue;
|
|
2812
|
+
v && ($.value = v($.value));
|
|
2783
2813
|
}
|
|
2784
2814
|
}));
|
|
2785
2815
|
});
|
|
@@ -2789,35 +2819,35 @@ const ze = (e) => {
|
|
|
2789
2819
|
deep: !0
|
|
2790
2820
|
}
|
|
2791
2821
|
);
|
|
2792
|
-
function
|
|
2822
|
+
function P() {
|
|
2793
2823
|
r.value = !0;
|
|
2794
2824
|
}
|
|
2795
|
-
function
|
|
2825
|
+
function M() {
|
|
2796
2826
|
i.value.refresh();
|
|
2797
2827
|
}
|
|
2798
2828
|
return (u, c) => {
|
|
2799
2829
|
var W, ae, fe, le, ie, Z;
|
|
2800
|
-
const g =
|
|
2801
|
-
return p(),
|
|
2830
|
+
const g = E("el-breadcrumb-item"), x = E("el-breadcrumb"), F = E("el-button"), q = E("el-icon"), w = E("el-dropdown-item"), U = E("el-dropdown-menu"), v = E("el-dropdown"), f = E("el-tag"), O = E("el-tab-pane"), G = E("el-tabs"), X = E("el-dialog");
|
|
2831
|
+
return p(), T(oe, null, [
|
|
2802
2832
|
S("div", Bs, [
|
|
2803
|
-
_(
|
|
2833
|
+
_(x, null, {
|
|
2804
2834
|
default: m(() => {
|
|
2805
2835
|
var J, ge;
|
|
2806
2836
|
return [
|
|
2807
2837
|
_(g, {
|
|
2808
|
-
to: { path: `/${(ge = (J =
|
|
2838
|
+
to: { path: `/${(ge = (J = I == null ? void 0 : I.breadcrumbRoute) != null ? J : I == null ? void 0 : I.route) != null ? ge : ""}` }
|
|
2809
2839
|
}, {
|
|
2810
2840
|
default: m(() => {
|
|
2811
2841
|
var be;
|
|
2812
2842
|
return [
|
|
2813
|
-
|
|
2843
|
+
Q(R(k(o)((be = I == null ? void 0 : I.name) != null ? be : "")), 1)
|
|
2814
2844
|
];
|
|
2815
2845
|
}),
|
|
2816
2846
|
_: 1
|
|
2817
2847
|
}, 8, ["to"]),
|
|
2818
2848
|
_(g, null, {
|
|
2819
2849
|
default: m(() => [
|
|
2820
|
-
|
|
2850
|
+
Q(R(k(o)("common.basic.detail")), 1)
|
|
2821
2851
|
]),
|
|
2822
2852
|
_: 1
|
|
2823
2853
|
})
|
|
@@ -2828,10 +2858,10 @@ const ze = (e) => {
|
|
|
2828
2858
|
S("div", null, [
|
|
2829
2859
|
_(F, {
|
|
2830
2860
|
type: "primary",
|
|
2831
|
-
onClick:
|
|
2861
|
+
onClick: P
|
|
2832
2862
|
}, {
|
|
2833
2863
|
default: m(() => [
|
|
2834
|
-
|
|
2864
|
+
Q(R(k(o)("common.table.edit")), 1)
|
|
2835
2865
|
]),
|
|
2836
2866
|
_: 1
|
|
2837
2867
|
}),
|
|
@@ -2841,21 +2871,21 @@ const ze = (e) => {
|
|
|
2841
2871
|
disabled: ""
|
|
2842
2872
|
}, {
|
|
2843
2873
|
default: m(() => [
|
|
2844
|
-
|
|
2874
|
+
Q(R(k(o)("common.table.delete")), 1)
|
|
2845
2875
|
]),
|
|
2846
2876
|
_: 1
|
|
2847
2877
|
}),
|
|
2848
|
-
((ae = (W =
|
|
2878
|
+
((ae = (W = I.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ae.operationButtons) !== void 0 ? (p(), V(v, { key: 0 }, {
|
|
2849
2879
|
dropdown: m(() => [
|
|
2850
|
-
_(
|
|
2880
|
+
_(U, null, {
|
|
2851
2881
|
default: m(() => {
|
|
2852
2882
|
var J, ge;
|
|
2853
2883
|
return [
|
|
2854
|
-
(p(!0),
|
|
2855
|
-
onClick: (
|
|
2884
|
+
(p(!0), T(oe, null, ce((ge = (J = I.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : ge.operationButtons, (be) => (p(), V(w, {
|
|
2885
|
+
onClick: (Re) => be.function(i.value.formData)
|
|
2856
2886
|
}, {
|
|
2857
2887
|
default: m(() => [
|
|
2858
|
-
|
|
2888
|
+
Q(R(k(o)(be.label)), 1)
|
|
2859
2889
|
]),
|
|
2860
2890
|
_: 2
|
|
2861
2891
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2867,7 +2897,7 @@ const ze = (e) => {
|
|
|
2867
2897
|
default: m(() => [
|
|
2868
2898
|
_(F, { style: { margin: "0 10px" } }, {
|
|
2869
2899
|
default: m(() => [
|
|
2870
|
-
|
|
2900
|
+
Q(R(k(o)("common.basic.more")), 1),
|
|
2871
2901
|
_(q, { class: "el-icon--right" }, {
|
|
2872
2902
|
default: m(() => [
|
|
2873
2903
|
_(k($o))
|
|
@@ -2882,23 +2912,23 @@ const ze = (e) => {
|
|
|
2882
2912
|
})) : B("", !0),
|
|
2883
2913
|
_(F, {
|
|
2884
2914
|
icon: k(Dt),
|
|
2885
|
-
onClick:
|
|
2915
|
+
onClick: M
|
|
2886
2916
|
}, null, 8, ["icon"])
|
|
2887
2917
|
])
|
|
2888
2918
|
]),
|
|
2889
|
-
(le = (fe =
|
|
2919
|
+
(le = (fe = I.pageConfig) == null ? void 0 : fe.detailPage) != null && le.infoCard ? (p(), T("div", Hs, [
|
|
2890
2920
|
S("div", Js, [
|
|
2891
|
-
(p(),
|
|
2921
|
+
(p(), V(Ze((ie = I.pageConfig.detailPage.infoCard.icon) != null ? ie : ""), { class: "icon" }))
|
|
2892
2922
|
]),
|
|
2893
2923
|
S("div", Ws, [
|
|
2894
2924
|
S("div", Ys, [
|
|
2895
|
-
S("h1", null, R(
|
|
2896
|
-
((Z =
|
|
2925
|
+
S("h1", null, R(D.value), 1),
|
|
2926
|
+
((Z = $.value) == null ? void 0 : Z.length) > 0 ? (p(), V(f, {
|
|
2897
2927
|
key: 0,
|
|
2898
2928
|
size: "small"
|
|
2899
2929
|
}, {
|
|
2900
2930
|
default: m(() => [
|
|
2901
|
-
|
|
2931
|
+
Q(R($.value), 1)
|
|
2902
2932
|
]),
|
|
2903
2933
|
_: 1
|
|
2904
2934
|
})) : B("", !0)
|
|
@@ -2908,9 +2938,9 @@ const ze = (e) => {
|
|
|
2908
2938
|
])) : B("", !0),
|
|
2909
2939
|
S("div", Qs, [
|
|
2910
2940
|
_(G, {
|
|
2911
|
-
modelValue:
|
|
2912
|
-
"onUpdate:modelValue": c[0] || (c[0] = (J) =>
|
|
2913
|
-
onTabClick:
|
|
2941
|
+
modelValue: A.value,
|
|
2942
|
+
"onUpdate:modelValue": c[0] || (c[0] = (J) => A.value = J),
|
|
2943
|
+
onTabClick: K
|
|
2914
2944
|
}, {
|
|
2915
2945
|
default: m(() => {
|
|
2916
2946
|
var J, ge;
|
|
@@ -2924,28 +2954,28 @@ const ze = (e) => {
|
|
|
2924
2954
|
ref_key: "formViewRef",
|
|
2925
2955
|
ref: i,
|
|
2926
2956
|
id: s.value,
|
|
2927
|
-
sessionId:
|
|
2957
|
+
sessionId: z.value,
|
|
2928
2958
|
mode: a.value,
|
|
2929
|
-
model:
|
|
2959
|
+
model: I
|
|
2930
2960
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
2931
2961
|
]),
|
|
2932
2962
|
_: 1
|
|
2933
2963
|
}, 8, ["label"]),
|
|
2934
|
-
(p(!0),
|
|
2935
|
-
var
|
|
2936
|
-
return p(),
|
|
2937
|
-
label: k(o)((
|
|
2964
|
+
(p(!0), T(oe, null, ce((ge = (J = I.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : ge.tabs, (be) => {
|
|
2965
|
+
var Re;
|
|
2966
|
+
return p(), V(O, {
|
|
2967
|
+
label: k(o)((Re = be.name) != null ? Re : "")
|
|
2938
2968
|
}, null, 8, ["label"]);
|
|
2939
2969
|
}), 256))
|
|
2940
2970
|
];
|
|
2941
2971
|
}),
|
|
2942
2972
|
_: 1
|
|
2943
2973
|
}, 8, ["modelValue"]),
|
|
2944
|
-
d.value >= 0 ? (p(),
|
|
2974
|
+
d.value >= 0 ? (p(), V(nt, {
|
|
2945
2975
|
key: 0,
|
|
2946
2976
|
ref_key: "tabPaneTableRef",
|
|
2947
|
-
ref:
|
|
2948
|
-
model:
|
|
2977
|
+
ref: y,
|
|
2978
|
+
model: Y[d.value]
|
|
2949
2979
|
}, null, 8, ["model"])) : B("", !0),
|
|
2950
2980
|
_(X, {
|
|
2951
2981
|
modelValue: l.value,
|
|
@@ -2959,7 +2989,7 @@ const ze = (e) => {
|
|
|
2959
2989
|
onClick: c[1] || (c[1] = (J) => l.value = !1)
|
|
2960
2990
|
}, {
|
|
2961
2991
|
default: m(() => [
|
|
2962
|
-
|
|
2992
|
+
Q(R(k(o)("common.basic.cancel")), 1)
|
|
2963
2993
|
]),
|
|
2964
2994
|
_: 1
|
|
2965
2995
|
}),
|
|
@@ -2968,18 +2998,18 @@ const ze = (e) => {
|
|
|
2968
2998
|
onClick: ne
|
|
2969
2999
|
}, {
|
|
2970
3000
|
default: m(() => [
|
|
2971
|
-
|
|
3001
|
+
Q(R(k(o)("common.basic.save")), 1)
|
|
2972
3002
|
]),
|
|
2973
3003
|
_: 1
|
|
2974
3004
|
})
|
|
2975
3005
|
])
|
|
2976
3006
|
]),
|
|
2977
3007
|
default: m(() => [
|
|
2978
|
-
d.value >= 0 ? (p(),
|
|
3008
|
+
d.value >= 0 ? (p(), V(nt, {
|
|
2979
3009
|
key: 0,
|
|
2980
3010
|
ref_key: "selectTableRef",
|
|
2981
|
-
ref:
|
|
2982
|
-
model: k(
|
|
3011
|
+
ref: b,
|
|
3012
|
+
model: k(j)[d.value]
|
|
2983
3013
|
}, null, 8, ["model"])) : B("", !0)
|
|
2984
3014
|
]),
|
|
2985
3015
|
_: 1
|
|
@@ -2990,43 +3020,43 @@ const ze = (e) => {
|
|
|
2990
3020
|
mode: "update",
|
|
2991
3021
|
visible: r.value,
|
|
2992
3022
|
"onUpdate:visible": c[3] || (c[3] = (J) => r.value = J),
|
|
2993
|
-
model:
|
|
2994
|
-
afterSubmitFunc:
|
|
3023
|
+
model: I,
|
|
3024
|
+
afterSubmitFunc: M
|
|
2995
3025
|
}, null, 8, ["id", "visible", "model"])
|
|
2996
3026
|
], 64);
|
|
2997
3027
|
};
|
|
2998
3028
|
}
|
|
2999
|
-
}), Zs = /* @__PURE__ */
|
|
3029
|
+
}), Zs = /* @__PURE__ */ pe(Xs, [["__scopeId", "data-v-f9250724"]]), er = { class: "page-title" }, tr = /* @__PURE__ */ _e({
|
|
3000
3030
|
__name: "TablePage",
|
|
3001
3031
|
setup(e) {
|
|
3002
|
-
const { t: o } =
|
|
3032
|
+
const { t: o } = He(), t = Be(), n = st(), s = N(), r = N([]), l = re({
|
|
3003
3033
|
api: "",
|
|
3004
3034
|
fields: []
|
|
3005
|
-
}), a = re(
|
|
3035
|
+
}), a = re(Je({}, l));
|
|
3006
3036
|
function i() {
|
|
3007
|
-
var
|
|
3008
|
-
r.value = [], l.pageConfig && ((
|
|
3009
|
-
let
|
|
3010
|
-
return
|
|
3011
|
-
key:
|
|
3012
|
-
label:
|
|
3013
|
-
icon:
|
|
3014
|
-
disabled:
|
|
3015
|
-
model:
|
|
3037
|
+
var y, b, A, D, L;
|
|
3038
|
+
r.value = [], l.pageConfig && ((b = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && b.tabViewAttributes) && (r.value = (L = (D = (A = l.pageConfig) == null ? void 0 : A.tablePage) == null ? void 0 : D.tabViewAttributes) == null ? void 0 : L.map(($) => {
|
|
3039
|
+
let z;
|
|
3040
|
+
return $.modelKey && he.value[$.modelKey] ? z = Ue(he.value[$.modelKey]) : z = Ue(l), $.queryParams && (z.tableConfig || (z.tableConfig = {}), z.tableConfig.queryParams = $.queryParams), $.fields && (z.fields = $.fields), $.modelKey && (z.breadcrumbRoute = l.route), {
|
|
3041
|
+
key: $.key,
|
|
3042
|
+
label: $.label,
|
|
3043
|
+
icon: $.icon,
|
|
3044
|
+
disabled: $.disabled,
|
|
3045
|
+
model: z
|
|
3016
3046
|
};
|
|
3017
3047
|
}));
|
|
3018
3048
|
}
|
|
3019
3049
|
function d() {
|
|
3020
|
-
var
|
|
3050
|
+
var A, D;
|
|
3021
3051
|
console.log("Init table page, loading model:", t.params.model), console.log("Current model list", he.value);
|
|
3022
|
-
const
|
|
3023
|
-
if (he.value[
|
|
3024
|
-
console.warn("Model not found",
|
|
3052
|
+
const y = t.params.model;
|
|
3053
|
+
if (he.value[y] === void 0) {
|
|
3054
|
+
console.warn("Model not found", y);
|
|
3025
3055
|
return;
|
|
3026
3056
|
}
|
|
3027
|
-
|
|
3028
|
-
const
|
|
3029
|
-
Object.assign(l,
|
|
3057
|
+
qe(l);
|
|
3058
|
+
const b = Ue(he.value[y]);
|
|
3059
|
+
Object.assign(l, b), (D = (A = l.pageConfig) == null ? void 0 : A.tablePage) != null && D.tabViewAttributes || Object.assign(a, l), i();
|
|
3030
3060
|
}
|
|
3031
3061
|
return Se([
|
|
3032
3062
|
() => n.currentRoute.value,
|
|
@@ -3036,16 +3066,16 @@ const ze = (e) => {
|
|
|
3036
3066
|
}, {
|
|
3037
3067
|
immediate: !0,
|
|
3038
3068
|
deep: !0
|
|
3039
|
-
}), (
|
|
3040
|
-
var
|
|
3041
|
-
const
|
|
3042
|
-
return p(),
|
|
3043
|
-
S("h1", er, R(k(o)((
|
|
3044
|
-
_(
|
|
3069
|
+
}), (y, b) => {
|
|
3070
|
+
var D;
|
|
3071
|
+
const A = E("el-scrollbar");
|
|
3072
|
+
return p(), T(oe, null, [
|
|
3073
|
+
S("h1", er, R(k(o)((D = l.name) != null ? D : "")), 1),
|
|
3074
|
+
_(A, null, {
|
|
3045
3075
|
default: m(() => {
|
|
3046
|
-
var L,
|
|
3076
|
+
var L, $;
|
|
3047
3077
|
return [
|
|
3048
|
-
(
|
|
3078
|
+
($ = (L = l.pageConfig) == null ? void 0 : L.tablePage) != null && $.tabViewAttributes ? (p(), V(ao, {
|
|
3049
3079
|
key: 0,
|
|
3050
3080
|
class: "tabs-wrapper",
|
|
3051
3081
|
cards: r.value,
|
|
@@ -3055,7 +3085,7 @@ const ze = (e) => {
|
|
|
3055
3085
|
}),
|
|
3056
3086
|
_: 1
|
|
3057
3087
|
}),
|
|
3058
|
-
_(
|
|
3088
|
+
_(nt, {
|
|
3059
3089
|
class: "table-wrapper",
|
|
3060
3090
|
ref_key: "tableRef",
|
|
3061
3091
|
ref: s,
|
|
@@ -3064,7 +3094,7 @@ const ze = (e) => {
|
|
|
3064
3094
|
], 64);
|
|
3065
3095
|
};
|
|
3066
3096
|
}
|
|
3067
|
-
}), or = /* @__PURE__ */
|
|
3097
|
+
}), or = /* @__PURE__ */ pe(tr, [["__scopeId", "data-v-d24124ee"]]), nr = [
|
|
3068
3098
|
Mo,
|
|
3069
3099
|
gs,
|
|
3070
3100
|
Gt,
|
|
@@ -3072,7 +3102,7 @@ const ze = (e) => {
|
|
|
3072
3102
|
$s,
|
|
3073
3103
|
ro,
|
|
3074
3104
|
ao,
|
|
3075
|
-
|
|
3105
|
+
nt,
|
|
3076
3106
|
Zs,
|
|
3077
3107
|
or
|
|
3078
3108
|
], pr = (e) => {
|
|
@@ -3090,11 +3120,11 @@ export {
|
|
|
3090
3120
|
ro as SideMenu,
|
|
3091
3121
|
ao as TabCard,
|
|
3092
3122
|
or as TablePage,
|
|
3093
|
-
|
|
3123
|
+
nt as TableView,
|
|
3094
3124
|
$n as activeMenuMapping,
|
|
3095
3125
|
pr as default,
|
|
3096
3126
|
on as en,
|
|
3097
|
-
|
|
3127
|
+
tt as i18n,
|
|
3098
3128
|
Ct as menuList,
|
|
3099
3129
|
he as modelList,
|
|
3100
3130
|
gt as pinia,
|