@vancone/console-component 0.1.0-beta.33 → 0.1.0-beta.34
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,53 +2,53 @@ 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,
|
|
6
|
-
for (var
|
|
7
|
-
mo.call(
|
|
5
|
+
var yt = (e, t, o) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, We = (e, t) => {
|
|
6
|
+
for (var o in t || (t = {}))
|
|
7
|
+
mo.call(t, o) && yt(e, o, t[o]);
|
|
8
8
|
if (bt)
|
|
9
|
-
for (var
|
|
10
|
-
ho.call(
|
|
9
|
+
for (var o of bt(t))
|
|
10
|
+
ho.call(t, o) && yt(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
}, wt = (e,
|
|
13
|
-
var ye = (e,
|
|
12
|
+
}, wt = (e, t) => po(e, fo(t));
|
|
13
|
+
var ye = (e, t, o) => new Promise((n, s) => {
|
|
14
14
|
var r = (i) => {
|
|
15
15
|
try {
|
|
16
|
-
a(
|
|
16
|
+
a(o.next(i));
|
|
17
17
|
} catch (d) {
|
|
18
18
|
s(d);
|
|
19
19
|
}
|
|
20
20
|
}, l = (i) => {
|
|
21
21
|
try {
|
|
22
|
-
a(
|
|
22
|
+
a(o.throw(i));
|
|
23
23
|
} catch (d) {
|
|
24
24
|
s(d);
|
|
25
25
|
}
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
|
-
a((
|
|
27
|
+
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as
|
|
30
|
-
import { useRoute as
|
|
29
|
+
import { openBlock as p, createElementBlock as U, createElementVNode as b, defineComponent as _e, reactive as re, resolveComponent as x, createVNode as h, 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, nextTick as Le, resolveDynamicComponent as et, effectScope as Mt, markRaw as Pe, toRaw as je, hasInjectionContext as _o, inject as go, getCurrentInstance as vo, watch as Se, isRef as ze, isReactive as ft, toRef as rt, computed as De, getCurrentScope as bo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as At, resolveDirective as Vt, withDirectives as Ut } from "vue";
|
|
30
|
+
import { useRoute as He, useRouter as st } from "vue-router";
|
|
31
31
|
import So from "axios";
|
|
32
32
|
import { ElMessage as at, ElMessageBox as Co } from "element-plus";
|
|
33
|
-
import { Search as Tt, ArrowRight as
|
|
34
|
-
import { createI18n as Po, useI18n as
|
|
33
|
+
import { Search as Tt, ArrowRight as ko, Check as Oo, Refresh as Dt, QuestionFilled as xo, Download as Eo, ArrowDown as $o } from "@element-plus/icons-vue";
|
|
34
|
+
import { createI18n as Po, useI18n as Je } from "vue-i18n";
|
|
35
35
|
import { cloneDeep as Ue } from "lodash";
|
|
36
|
-
const pe = (e,
|
|
37
|
-
const
|
|
38
|
-
for (const [n, s] of
|
|
39
|
-
|
|
40
|
-
return
|
|
36
|
+
const pe = (e, t) => {
|
|
37
|
+
const o = e.__vccOpts || e;
|
|
38
|
+
for (const [n, s] of t)
|
|
39
|
+
o[n] = s;
|
|
40
|
+
return o;
|
|
41
41
|
}, Io = {}, No = { class: "building" };
|
|
42
|
-
function
|
|
43
|
-
return p(),
|
|
42
|
+
function Mo(e, t) {
|
|
43
|
+
return p(), U("div", No);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Ao = /* @__PURE__ */ pe(Io, [["render", Mo], ["__scopeId", "data-v-07bd45d2"]]), de = So.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
49
|
de.interceptors.request.use((e) => e);
|
|
50
50
|
de.interceptors.response.use((e) => {
|
|
51
|
-
const { headers:
|
|
51
|
+
const { headers: t, method: o } = e.config, { code: n, message: s } = e.data, { "No-Success-Message": r } = t, l = o !== "get";
|
|
52
52
|
return n === 0 ? (l && !r && at({
|
|
53
53
|
message: s,
|
|
54
54
|
type: "success"
|
|
@@ -58,15 +58,15 @@ de.interceptors.response.use((e) => {
|
|
|
58
58
|
}), Promise.reject(new Error(`${n}`)));
|
|
59
59
|
}, (e) => {
|
|
60
60
|
var n;
|
|
61
|
-
const { config:
|
|
62
|
-
if (
|
|
63
|
-
const { status: s } =
|
|
61
|
+
const { config: t, response: o } = e;
|
|
62
|
+
if (o) {
|
|
63
|
+
const { status: s } = o;
|
|
64
64
|
if (s === 401) {
|
|
65
65
|
const a = window.escape(window.location.href);
|
|
66
|
-
let i = (n =
|
|
66
|
+
let i = (n = o.data.data) != null ? n : "https://passport.vancone.com";
|
|
67
67
|
window.location.href = `${i}/?from=${a}`;
|
|
68
68
|
}
|
|
69
|
-
const { message: r, error: l } =
|
|
69
|
+
const { message: r, error: l } = o.data;
|
|
70
70
|
at({
|
|
71
71
|
type: "error",
|
|
72
72
|
message: r || l
|
|
@@ -97,9 +97,9 @@ const Ro = {
|
|
|
97
97
|
class: "icon",
|
|
98
98
|
viewBox: "0 0 1024 1024"
|
|
99
99
|
};
|
|
100
|
-
function Fo(e,
|
|
101
|
-
return p(),
|
|
102
|
-
|
|
100
|
+
function Fo(e, t) {
|
|
101
|
+
return p(), U("svg", Ro, t[0] || (t[0] = [
|
|
102
|
+
b("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
|
|
103
103
|
]));
|
|
104
104
|
}
|
|
105
105
|
const Go = { render: Fo }, Lo = {
|
|
@@ -109,9 +109,9 @@ const Go = { render: Fo }, Lo = {
|
|
|
109
109
|
class: "icon",
|
|
110
110
|
viewBox: "0 0 1024 1024"
|
|
111
111
|
};
|
|
112
|
-
function jo(e,
|
|
113
|
-
return p(),
|
|
114
|
-
|
|
112
|
+
function jo(e, t) {
|
|
113
|
+
return p(), U("svg", Lo, t[0] || (t[0] = [
|
|
114
|
+
b("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
|
}
|
|
117
117
|
const zo = { render: jo }, qo = {
|
|
@@ -121,9 +121,9 @@ const zo = { render: jo }, qo = {
|
|
|
121
121
|
class: "icon",
|
|
122
122
|
viewBox: "0 0 1024 1024"
|
|
123
123
|
};
|
|
124
|
-
function Bo(e,
|
|
125
|
-
return p(),
|
|
126
|
-
|
|
124
|
+
function Bo(e, t) {
|
|
125
|
+
return p(), U("svg", qo, t[0] || (t[0] = [
|
|
126
|
+
b("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
|
}
|
|
129
129
|
const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class: "catalog-wrapper" }, Yo = { class: "service-list" }, Qo = { class: "app-icon-container" }, Ko = ["href"], Xo = ["innerHTML"], Zo = {
|
|
@@ -135,57 +135,57 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
135
135
|
visible: { type: Boolean }
|
|
136
136
|
},
|
|
137
137
|
setup(e) {
|
|
138
|
-
const
|
|
139
|
-
function
|
|
138
|
+
const t = re([]);
|
|
139
|
+
function o() {
|
|
140
140
|
To().then(({ data: n }) => {
|
|
141
|
-
|
|
141
|
+
t.splice(0, t.length, ...n.data.list), Do().then(({ data: s }) => {
|
|
142
142
|
const r = s.data.list;
|
|
143
|
-
|
|
143
|
+
t.forEach((l) => {
|
|
144
144
|
l.apps = r.filter((a) => a.appGroupId === l.id);
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
return
|
|
150
|
-
const r =
|
|
151
|
-
return p(),
|
|
152
|
-
|
|
149
|
+
return o(), (n, s) => {
|
|
150
|
+
const r = x("el-input"), l = x("el-scrollbar"), a = x("el-tab-pane"), i = x("el-tabs");
|
|
151
|
+
return p(), U("div", Jo, [
|
|
152
|
+
h(i, { "tab-position": "left" }, {
|
|
153
153
|
default: m(() => [
|
|
154
|
-
|
|
154
|
+
h(a, null, {
|
|
155
155
|
label: m(() => [
|
|
156
|
-
|
|
156
|
+
h(k(Go), { class: "left-icon" })
|
|
157
157
|
]),
|
|
158
158
|
default: m(() => [
|
|
159
|
-
s[0] || (s[0] =
|
|
160
|
-
|
|
159
|
+
s[0] || (s[0] = b("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
160
|
+
h(r, {
|
|
161
161
|
class: "search-box",
|
|
162
162
|
"prefix-icon": k(Tt),
|
|
163
163
|
placeholder: "Search apps"
|
|
164
164
|
}, null, 8, ["prefix-icon"]),
|
|
165
|
-
|
|
165
|
+
h(l, {
|
|
166
166
|
class: "right-area",
|
|
167
167
|
style: { width: "100%", height: "400px" }
|
|
168
168
|
}, {
|
|
169
169
|
default: m(() => [
|
|
170
|
-
|
|
171
|
-
(p(!0),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
(p(!0),
|
|
175
|
-
var
|
|
176
|
-
return p(),
|
|
177
|
-
style: Te([{ "text-decoration": "none" }, { pointerEvents: ((
|
|
170
|
+
b("div", Wo, [
|
|
171
|
+
(p(!0), U(oe, null, ce(t, (d) => (p(), U("div", Yo, [
|
|
172
|
+
b("h1", null, R(d.name), 1),
|
|
173
|
+
b("div", Qo, [
|
|
174
|
+
(p(!0), U(oe, null, ce(d.apps, (w) => {
|
|
175
|
+
var y, M;
|
|
176
|
+
return p(), U("a", {
|
|
177
|
+
style: Te([{ "text-decoration": "none" }, { pointerEvents: ((y = w.homepageUrl) == null ? void 0 : y.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
|
-
href:
|
|
179
|
+
href: w.homepageUrl
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
w.iconSvg !== void 0 ? (p(), U("div", {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "app-icon",
|
|
184
|
-
innerHTML:
|
|
185
|
-
}, null, 8, Xo)) : (p(),
|
|
186
|
-
|
|
187
|
-
style: Te({ color: ((
|
|
188
|
-
}, R(
|
|
184
|
+
innerHTML: w.iconSvg
|
|
185
|
+
}, null, 8, Xo)) : (p(), U("div", Zo, " ")),
|
|
186
|
+
b("h2", {
|
|
187
|
+
style: Te({ color: ((M = w.homepageUrl) == null ? void 0 : M.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, R(w.name), 5)
|
|
189
189
|
], 12, Ko);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
@@ -197,21 +197,21 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}),
|
|
200
|
-
|
|
200
|
+
h(a, null, {
|
|
201
201
|
label: m(() => [
|
|
202
|
-
|
|
202
|
+
h(k(zo), { class: "left-icon" })
|
|
203
203
|
]),
|
|
204
204
|
default: m(() => [
|
|
205
|
-
s[1] || (s[1] =
|
|
205
|
+
s[1] || (s[1] = b("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
208
|
}),
|
|
209
|
-
|
|
209
|
+
h(a, null, {
|
|
210
210
|
label: m(() => [
|
|
211
|
-
|
|
211
|
+
h(k(Ho), { class: "left-icon" })
|
|
212
212
|
]),
|
|
213
213
|
default: m(() => [
|
|
214
|
-
s[2] || (s[2] =
|
|
214
|
+
s[2] || (s[2] = b("h1", { class: "catalog-title" }, "Recently", -1))
|
|
215
215
|
]),
|
|
216
216
|
_: 1
|
|
217
217
|
})
|
|
@@ -226,7 +226,8 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
226
226
|
header: {
|
|
227
227
|
product: "Products",
|
|
228
228
|
help: "Help",
|
|
229
|
-
|
|
229
|
+
notification: "Notification",
|
|
230
|
+
workbench: "Workbench",
|
|
230
231
|
userCenter: "User Center",
|
|
231
232
|
switchLanguage: "Languages",
|
|
232
233
|
signOut: "Sign out"
|
|
@@ -264,7 +265,8 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
264
265
|
header: {
|
|
265
266
|
product: "产品",
|
|
266
267
|
help: "帮助",
|
|
267
|
-
|
|
268
|
+
notification: "通知",
|
|
269
|
+
workbench: "工作台",
|
|
268
270
|
userCenter: "用户中心",
|
|
269
271
|
switchLanguage: "语言",
|
|
270
272
|
signOut: "退出登录"
|
|
@@ -309,9 +311,9 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
309
311
|
"xml:space": "preserve",
|
|
310
312
|
viewBox: "0 0 32 32"
|
|
311
313
|
};
|
|
312
|
-
function rn(e,
|
|
313
|
-
return p(),
|
|
314
|
-
|
|
314
|
+
function rn(e, t) {
|
|
315
|
+
return p(), U("svg", sn, t[0] || (t[0] = [
|
|
316
|
+
b("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
317
|
]));
|
|
316
318
|
}
|
|
317
319
|
const an = { render: rn }, ln = {
|
|
@@ -321,9 +323,9 @@ const an = { render: rn }, ln = {
|
|
|
321
323
|
class: "icon",
|
|
322
324
|
viewBox: "0 0 1024 1024"
|
|
323
325
|
};
|
|
324
|
-
function cn(e,
|
|
325
|
-
return p(),
|
|
326
|
-
|
|
326
|
+
function cn(e, t) {
|
|
327
|
+
return p(), U("svg", ln, t[0] || (t[0] = [
|
|
328
|
+
b("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
329
|
]));
|
|
328
330
|
}
|
|
329
331
|
const un = { render: cn }, dn = {
|
|
@@ -333,19 +335,32 @@ const un = { render: cn }, dn = {
|
|
|
333
335
|
class: "icon",
|
|
334
336
|
viewBox: "0 0 1024 1024"
|
|
335
337
|
};
|
|
336
|
-
function pn(e,
|
|
337
|
-
return p(),
|
|
338
|
-
|
|
338
|
+
function pn(e, t) {
|
|
339
|
+
return p(), U("svg", dn, t[0] || (t[0] = [
|
|
340
|
+
b("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
341
|
]));
|
|
340
342
|
}
|
|
341
|
-
const fn = { render: pn }, mn = {
|
|
343
|
+
const fn = { render: pn }, mn = {
|
|
344
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
345
|
+
"xml:space": "preserve",
|
|
346
|
+
viewBox: "0 0 32 32"
|
|
347
|
+
};
|
|
348
|
+
function hn(e, t) {
|
|
349
|
+
return p(), U("svg", mn, t[0] || (t[0] = [
|
|
350
|
+
b("path", {
|
|
351
|
+
d: "M23.8 22.1H8.2c-2.5 0-4.5-2.1-4.5-4.5V7.9c0-2.5 2.1-4.5 4.5-4.5h15.6c2.5 0 4.5 2.1 4.5 4.5v9.7c0 2.4-2.1 4.5-4.5 4.5M16 23.2v5M8.3 28.9h15.4",
|
|
352
|
+
style: { fill: "none", "stroke-width": "3", "stroke-miterlimit": "10" }
|
|
353
|
+
}, null, -1)
|
|
354
|
+
]));
|
|
355
|
+
}
|
|
356
|
+
const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn = { class: "right" }, yn = { class: "icon-wrapper" }, wn = { class: "icon-wrapper" }, Sn = { class: "user-wrapper" }, Cn = { style: { "font-size": "11px", "font-weight": "bold" } }, kn = { class: "user-popover-header" }, On = { style: { "font-size": "15px", "font-weight": "bold" } }, xn = ["onClick"], En = /* @__PURE__ */ _e({
|
|
342
357
|
__name: "Header",
|
|
343
358
|
props: {
|
|
344
359
|
title: {},
|
|
345
360
|
helpDocUrl: {}
|
|
346
361
|
},
|
|
347
362
|
setup(e) {
|
|
348
|
-
const { t
|
|
363
|
+
const { t } = Je(), o = N(), n = N(), s = N(), r = N(), l = e;
|
|
349
364
|
N(!1);
|
|
350
365
|
const a = N(""), i = N(tt.global.locale), d = re([
|
|
351
366
|
{
|
|
@@ -358,12 +373,12 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
358
373
|
}
|
|
359
374
|
]);
|
|
360
375
|
pt(() => {
|
|
361
|
-
a.value = decodeURIComponent(
|
|
376
|
+
a.value = decodeURIComponent(w("passport_username").replace(/\+/g, " ")), a.value === "" && Vo().then(({ data: $ }) => {
|
|
362
377
|
var z;
|
|
363
378
|
$.code == 0 && (a.value = (z = $.data.name) != null ? z : $.data.displayId);
|
|
364
379
|
});
|
|
365
380
|
});
|
|
366
|
-
function
|
|
381
|
+
function w($) {
|
|
367
382
|
for (var z = $ + "=", I = document.cookie.split(";"), Y = 0; Y < I.length; Y++) {
|
|
368
383
|
for (var j = I[Y]; j.charAt(0) == " "; ) j = j.substring(1);
|
|
369
384
|
if (j.indexOf(z) != -1)
|
|
@@ -371,13 +386,13 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
371
386
|
}
|
|
372
387
|
return "";
|
|
373
388
|
}
|
|
374
|
-
function
|
|
389
|
+
function y() {
|
|
375
390
|
Uo().then(() => {
|
|
376
391
|
const $ = escape(window.location.href);
|
|
377
392
|
window.location.href = `//${Rt()}/?from=${$}#login`;
|
|
378
393
|
});
|
|
379
394
|
}
|
|
380
|
-
function
|
|
395
|
+
function M($) {
|
|
381
396
|
tt.global.locale.value = $, i.value = $, localStorage.setItem("locale", $);
|
|
382
397
|
}
|
|
383
398
|
function D() {
|
|
@@ -387,20 +402,20 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
387
402
|
window.open(l.helpDocUrl, "_blank");
|
|
388
403
|
}
|
|
389
404
|
return ($, z) => {
|
|
390
|
-
const I =
|
|
391
|
-
return p(),
|
|
392
|
-
|
|
393
|
-
|
|
405
|
+
const I = x("el-popover"), Y = x("el-tooltip"), j = x("el-avatar"), K = x("el-menu-item"), ne = x("el-icon"), C = x("el-menu");
|
|
406
|
+
return p(), U("div", gn, [
|
|
407
|
+
b("div", vn, [
|
|
408
|
+
b("div", {
|
|
394
409
|
ref_key: "appCatalogButtonRef",
|
|
395
410
|
ref: r,
|
|
396
411
|
class: "icon-wrapper",
|
|
397
412
|
style: { "margin-left": "8px" }
|
|
398
413
|
}, [
|
|
399
|
-
|
|
414
|
+
h(k(an))
|
|
400
415
|
], 512),
|
|
401
|
-
|
|
416
|
+
b("h1", null, R($.title), 1)
|
|
402
417
|
]),
|
|
403
|
-
|
|
418
|
+
h(I, {
|
|
404
419
|
class: "app-popover",
|
|
405
420
|
"virtual-ref": r.value,
|
|
406
421
|
trigger: "click",
|
|
@@ -408,99 +423,111 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
408
423
|
"popper-style": "width: 500px; height: 500px; padding: 0; inset: 49px auto auto 0px"
|
|
409
424
|
}, {
|
|
410
425
|
default: m(() => [
|
|
411
|
-
|
|
426
|
+
h(tn, { visible: !0 })
|
|
412
427
|
]),
|
|
413
428
|
_: 1
|
|
414
429
|
}, 8, ["virtual-ref"]),
|
|
415
|
-
|
|
416
|
-
|
|
430
|
+
b("div", bn, [
|
|
431
|
+
h(Y, {
|
|
432
|
+
effect: "dark",
|
|
433
|
+
content: k(t)("common.header.workbench"),
|
|
434
|
+
placement: "bottom"
|
|
435
|
+
}, {
|
|
436
|
+
default: m(() => [
|
|
437
|
+
b("div", yn, [
|
|
438
|
+
h(k(_n))
|
|
439
|
+
])
|
|
440
|
+
]),
|
|
441
|
+
_: 1
|
|
442
|
+
}, 8, ["content"]),
|
|
443
|
+
h(Y, {
|
|
417
444
|
effect: "dark",
|
|
418
|
-
content: k(
|
|
445
|
+
content: k(t)("common.header.help"),
|
|
419
446
|
placement: "bottom"
|
|
420
447
|
}, {
|
|
421
448
|
default: m(() => [
|
|
422
|
-
l.helpDocUrl !== void 0 ? (p(),
|
|
449
|
+
l.helpDocUrl !== void 0 ? (p(), U("div", {
|
|
423
450
|
key: 0,
|
|
424
451
|
class: "icon-wrapper",
|
|
425
452
|
onClick: L
|
|
426
453
|
}, [
|
|
427
|
-
|
|
454
|
+
h(k(un))
|
|
428
455
|
])) : B("", !0)
|
|
429
456
|
]),
|
|
430
457
|
_: 1
|
|
431
458
|
}, 8, ["content"]),
|
|
432
|
-
|
|
459
|
+
h(Y, {
|
|
433
460
|
effect: "dark",
|
|
434
|
-
content: k(
|
|
461
|
+
content: k(t)("common.header.notification"),
|
|
435
462
|
placement: "bottom"
|
|
436
463
|
}, {
|
|
437
464
|
default: m(() => [
|
|
438
|
-
|
|
439
|
-
|
|
465
|
+
b("div", wn, [
|
|
466
|
+
h(k(fn))
|
|
440
467
|
])
|
|
441
468
|
]),
|
|
442
469
|
_: 1
|
|
443
470
|
}, 8, ["content"]),
|
|
444
|
-
|
|
445
|
-
|
|
471
|
+
b("div", Sn, [
|
|
472
|
+
h(j, {
|
|
446
473
|
size: 30,
|
|
447
474
|
src: "",
|
|
448
475
|
ref_key: "avatarRef",
|
|
449
|
-
ref:
|
|
476
|
+
ref: o
|
|
450
477
|
}, {
|
|
451
478
|
default: m(() => [
|
|
452
|
-
|
|
479
|
+
b("span", Cn, R(a.value.substring(0, 2)), 1)
|
|
453
480
|
]),
|
|
454
481
|
_: 1
|
|
455
482
|
}, 512),
|
|
456
|
-
|
|
483
|
+
h(I, {
|
|
457
484
|
teleported: !1,
|
|
458
485
|
width: "280",
|
|
459
486
|
effect: "dark",
|
|
460
487
|
ref_key: "popoverRef",
|
|
461
488
|
ref: n,
|
|
462
|
-
"virtual-ref":
|
|
489
|
+
"virtual-ref": o.value,
|
|
463
490
|
trigger: "hover",
|
|
464
491
|
"virtual-triggering": ""
|
|
465
492
|
}, {
|
|
466
493
|
default: m(() => [
|
|
467
|
-
|
|
468
|
-
|
|
494
|
+
b("div", kn, [
|
|
495
|
+
h(j, {
|
|
469
496
|
size: 48,
|
|
470
497
|
src: ""
|
|
471
498
|
}, {
|
|
472
499
|
default: m(() => [
|
|
473
|
-
|
|
500
|
+
b("span", On, R(a.value.substring(0, 2)), 1)
|
|
474
501
|
]),
|
|
475
502
|
_: 1
|
|
476
503
|
}),
|
|
477
|
-
|
|
504
|
+
b("span", null, R(a.value), 1)
|
|
478
505
|
]),
|
|
479
|
-
|
|
506
|
+
h(C, { class: "user-menu" }, {
|
|
480
507
|
default: m(() => [
|
|
481
|
-
|
|
508
|
+
h(K, { onClick: D }, {
|
|
482
509
|
default: m(() => [
|
|
483
|
-
Q(R(k(
|
|
510
|
+
Q(R(k(t)("common.header.userCenter")), 1)
|
|
484
511
|
]),
|
|
485
512
|
_: 1
|
|
486
513
|
}),
|
|
487
|
-
|
|
514
|
+
h(K, {
|
|
488
515
|
ref_key: "switchLanguageRef",
|
|
489
516
|
ref: s,
|
|
490
517
|
style: { display: "flext", "justify-content": "space-between" }
|
|
491
518
|
}, {
|
|
492
519
|
default: m(() => [
|
|
493
|
-
|
|
494
|
-
|
|
520
|
+
b("span", null, R(k(t)("common.header.switchLanguage")), 1),
|
|
521
|
+
h(ne, { style: { left: "15px" } }, {
|
|
495
522
|
default: m(() => [
|
|
496
|
-
|
|
523
|
+
h(k(ko))
|
|
497
524
|
]),
|
|
498
525
|
_: 1
|
|
499
526
|
})
|
|
500
527
|
]),
|
|
501
528
|
_: 1
|
|
502
529
|
}, 512),
|
|
503
|
-
|
|
530
|
+
h(I, {
|
|
504
531
|
teleported: !1,
|
|
505
532
|
width: "150",
|
|
506
533
|
effect: "dark",
|
|
@@ -512,27 +539,27 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
512
539
|
"popper-style": "height: 80px; left: -165px"
|
|
513
540
|
}, {
|
|
514
541
|
default: m(() => [
|
|
515
|
-
(p(!0),
|
|
542
|
+
(p(!0), U(oe, null, ce(d, (_) => (p(), U("div", {
|
|
516
543
|
class: "select-list",
|
|
517
|
-
onClick: (P) =>
|
|
544
|
+
onClick: (P) => M(_.id)
|
|
518
545
|
}, [
|
|
519
|
-
|
|
520
|
-
|
|
546
|
+
b("span", null, R(_.name), 1),
|
|
547
|
+
_.id === i.value ? (p(), V(ne, {
|
|
521
548
|
key: 0,
|
|
522
549
|
style: { color: "#8ba74f" }
|
|
523
550
|
}, {
|
|
524
551
|
default: m(() => [
|
|
525
|
-
|
|
552
|
+
h(k(Oo))
|
|
526
553
|
]),
|
|
527
554
|
_: 1
|
|
528
555
|
})) : B("", !0)
|
|
529
|
-
], 8,
|
|
556
|
+
], 8, xn))), 256))
|
|
530
557
|
]),
|
|
531
558
|
_: 1
|
|
532
559
|
}, 8, ["virtual-ref"]),
|
|
533
|
-
|
|
560
|
+
h(K, { onClick: y }, {
|
|
534
561
|
default: m(() => [
|
|
535
|
-
Q(R(k(
|
|
562
|
+
Q(R(k(t)("common.header.signOut")), 1)
|
|
536
563
|
]),
|
|
537
564
|
_: 1
|
|
538
565
|
})
|
|
@@ -547,92 +574,96 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
547
574
|
]);
|
|
548
575
|
};
|
|
549
576
|
}
|
|
550
|
-
}), Gt = /* @__PURE__ */ pe(
|
|
577
|
+
}), Gt = /* @__PURE__ */ pe(En, [["__scopeId", "data-v-fa99ec40"]]), $n = { class: "menu-icon-wrapper" }, Pn = { class: "menu-icon-wrapper" }, In = /* @__PURE__ */ _e({
|
|
551
578
|
__name: "SideMenuItem",
|
|
552
579
|
props: {
|
|
553
580
|
menu: {}
|
|
554
581
|
},
|
|
555
582
|
setup(e) {
|
|
556
|
-
const
|
|
557
|
-
return (t, n) => {
|
|
558
|
-
const s =
|
|
559
|
-
return
|
|
583
|
+
const t = e;
|
|
584
|
+
return Le(() => console.log("menu", t.menu)), (o, n) => {
|
|
585
|
+
const s = x("SideMenuItem", !0), r = x("el-sub-menu"), l = x("el-menu-item");
|
|
586
|
+
return o.menu.children && o.menu.children.length > 0 ? (p(), V(r, {
|
|
560
587
|
key: 0,
|
|
561
|
-
index:
|
|
588
|
+
index: o.menu.path
|
|
562
589
|
}, {
|
|
563
590
|
title: m(() => {
|
|
564
591
|
var a, i, d;
|
|
565
592
|
return [
|
|
566
|
-
|
|
567
|
-
(p(), V(
|
|
593
|
+
b("div", $n, [
|
|
594
|
+
(p(), V(et((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
568
595
|
]),
|
|
569
|
-
|
|
596
|
+
b("span", null, R(o.$t((d = (i = o.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
|
|
570
597
|
];
|
|
571
598
|
}),
|
|
572
599
|
default: m(() => [
|
|
573
|
-
(p(!0),
|
|
600
|
+
(p(!0), U(oe, null, ce(o.menu.children, (a) => (p(), V(s, {
|
|
574
601
|
key: a.path,
|
|
575
|
-
route: a
|
|
576
|
-
|
|
602
|
+
route: a,
|
|
603
|
+
menu: a
|
|
604
|
+
}, null, 8, ["route", "menu"]))), 128))
|
|
577
605
|
]),
|
|
578
606
|
_: 1
|
|
579
607
|
}, 8, ["index"])) : (p(), V(l, {
|
|
580
608
|
key: 1,
|
|
581
|
-
index:
|
|
609
|
+
index: t.menu.path,
|
|
582
610
|
style: { height: "40px" }
|
|
583
611
|
}, {
|
|
584
612
|
title: m(() => {
|
|
613
|
+
var a, i;
|
|
614
|
+
return [
|
|
615
|
+
b("span", null, R(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
|
|
616
|
+
];
|
|
617
|
+
}),
|
|
618
|
+
default: m(() => {
|
|
585
619
|
var a;
|
|
586
620
|
return [
|
|
587
|
-
|
|
621
|
+
b("div", Pn, [
|
|
622
|
+
(p(), V(et((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
623
|
+
])
|
|
588
624
|
];
|
|
589
625
|
}),
|
|
590
|
-
default: m(() => [
|
|
591
|
-
S("div", kn, [
|
|
592
|
-
(p(), V(Ze(t.$props.menu.icon), { class: "menu-icon" }))
|
|
593
|
-
])
|
|
594
|
-
]),
|
|
595
626
|
_: 1
|
|
596
627
|
}, 8, ["index"]));
|
|
597
628
|
};
|
|
598
629
|
}
|
|
599
|
-
}),
|
|
630
|
+
}), Nn = /* @__PURE__ */ pe(In, [["__scopeId", "data-v-ac729b44"]]), he = N({}), Mn = {}, Ct = N([]);
|
|
600
631
|
var Lt = !1;
|
|
601
|
-
function
|
|
602
|
-
return Array.isArray(e) ? (e.length = Math.max(e.length,
|
|
632
|
+
function Ye(e, t, o) {
|
|
633
|
+
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
603
634
|
}
|
|
604
|
-
function lt(e,
|
|
635
|
+
function lt(e, t) {
|
|
605
636
|
if (Array.isArray(e)) {
|
|
606
|
-
e.splice(
|
|
637
|
+
e.splice(t, 1);
|
|
607
638
|
return;
|
|
608
639
|
}
|
|
609
|
-
delete e[
|
|
640
|
+
delete e[t];
|
|
610
641
|
}
|
|
611
|
-
function
|
|
642
|
+
function An() {
|
|
612
643
|
return jt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
613
644
|
}
|
|
614
645
|
function jt() {
|
|
615
646
|
return typeof navigator != "undefined" && typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : {};
|
|
616
647
|
}
|
|
617
|
-
const
|
|
618
|
-
let
|
|
619
|
-
function
|
|
648
|
+
const Vn = typeof Proxy == "function", Un = "devtools-plugin:setup", Tn = "plugin:settings:set";
|
|
649
|
+
let Me, ct;
|
|
650
|
+
function Dn() {
|
|
620
651
|
var e;
|
|
621
|
-
return
|
|
652
|
+
return Me !== void 0 || (typeof window != "undefined" && window.performance ? (Me = !0, ct = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Me = !0, ct = globalThis.perf_hooks.performance) : Me = !1), Me;
|
|
622
653
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
654
|
+
function Rn() {
|
|
655
|
+
return Dn() ? ct.now() : Date.now();
|
|
625
656
|
}
|
|
626
|
-
class
|
|
627
|
-
constructor(
|
|
628
|
-
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin =
|
|
657
|
+
class Fn {
|
|
658
|
+
constructor(t, o) {
|
|
659
|
+
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = o;
|
|
629
660
|
const n = {};
|
|
630
|
-
if (
|
|
631
|
-
for (const l in
|
|
632
|
-
const a =
|
|
661
|
+
if (t.settings)
|
|
662
|
+
for (const l in t.settings) {
|
|
663
|
+
const a = t.settings[l];
|
|
633
664
|
n[l] = a.defaultValue;
|
|
634
665
|
}
|
|
635
|
-
const s = `__vue-devtools-plugin-settings__${
|
|
666
|
+
const s = `__vue-devtools-plugin-settings__${t.id}`;
|
|
636
667
|
let r = Object.assign({}, n);
|
|
637
668
|
try {
|
|
638
669
|
const l = localStorage.getItem(s), a = JSON.parse(l);
|
|
@@ -651,9 +682,9 @@ class Un {
|
|
|
651
682
|
r = l;
|
|
652
683
|
},
|
|
653
684
|
now() {
|
|
654
|
-
return
|
|
685
|
+
return Rn();
|
|
655
686
|
}
|
|
656
|
-
},
|
|
687
|
+
}, o && o.on(Tn, (l, a) => {
|
|
657
688
|
l === this.plugin.id && this.fallbacks.setSettings(a);
|
|
658
689
|
}), this.proxiedOn = new Proxy({}, {
|
|
659
690
|
get: (l, a) => this.target ? this.target.on[a] : (...i) => {
|
|
@@ -677,27 +708,27 @@ class Un {
|
|
|
677
708
|
})
|
|
678
709
|
});
|
|
679
710
|
}
|
|
680
|
-
setRealTarget(
|
|
711
|
+
setRealTarget(t) {
|
|
681
712
|
return ye(this, null, function* () {
|
|
682
|
-
this.target =
|
|
683
|
-
for (const
|
|
684
|
-
this.target.on[
|
|
685
|
-
for (const
|
|
686
|
-
|
|
713
|
+
this.target = t;
|
|
714
|
+
for (const o of this.onQueue)
|
|
715
|
+
this.target.on[o.method](...o.args);
|
|
716
|
+
for (const o of this.targetQueue)
|
|
717
|
+
o.resolve(yield this.target[o.method](...o.args));
|
|
687
718
|
});
|
|
688
719
|
}
|
|
689
720
|
}
|
|
690
|
-
function zt(e,
|
|
691
|
-
const
|
|
721
|
+
function zt(e, t) {
|
|
722
|
+
const o = e, n = jt(), s = An(), r = Vn && o.enableEarlyProxy;
|
|
692
723
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
693
|
-
s.emit(
|
|
724
|
+
s.emit(Un, e, t);
|
|
694
725
|
else {
|
|
695
|
-
const l = r ? new
|
|
726
|
+
const l = r ? new Fn(o, s) : null;
|
|
696
727
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
697
|
-
pluginDescriptor:
|
|
698
|
-
setupFn:
|
|
728
|
+
pluginDescriptor: o,
|
|
729
|
+
setupFn: t,
|
|
699
730
|
proxy: l
|
|
700
|
-
}), l &&
|
|
731
|
+
}), l && t(l.proxiedTarget);
|
|
701
732
|
}
|
|
702
733
|
}
|
|
703
734
|
/*!
|
|
@@ -706,7 +737,7 @@ function zt(e, o) {
|
|
|
706
737
|
* @license MIT
|
|
707
738
|
*/
|
|
708
739
|
let Ge;
|
|
709
|
-
const
|
|
740
|
+
const qe = (e) => Ge = e, qt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
710
741
|
/* istanbul ignore next */
|
|
711
742
|
Symbol()
|
|
712
743
|
);
|
|
@@ -717,71 +748,71 @@ var ve;
|
|
|
717
748
|
(function(e) {
|
|
718
749
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
719
750
|
})(ve || (ve = {}));
|
|
720
|
-
const Ie = typeof window != "undefined",
|
|
721
|
-
function
|
|
722
|
-
return
|
|
751
|
+
const Ie = typeof window != "undefined", kt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
752
|
+
function Gn(e, { autoBom: t = !1 } = {}) {
|
|
753
|
+
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
723
754
|
}
|
|
724
|
-
function mt(e,
|
|
755
|
+
function mt(e, t, o) {
|
|
725
756
|
const n = new XMLHttpRequest();
|
|
726
757
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
727
|
-
Jt(n.response,
|
|
758
|
+
Jt(n.response, t, o);
|
|
728
759
|
}, n.onerror = function() {
|
|
729
760
|
console.error("could not download file");
|
|
730
761
|
}, n.send();
|
|
731
762
|
}
|
|
732
763
|
function Bt(e) {
|
|
733
|
-
const
|
|
734
|
-
|
|
764
|
+
const t = new XMLHttpRequest();
|
|
765
|
+
t.open("HEAD", e, !1);
|
|
735
766
|
try {
|
|
736
|
-
|
|
737
|
-
} catch (
|
|
767
|
+
t.send();
|
|
768
|
+
} catch (o) {
|
|
738
769
|
}
|
|
739
|
-
return
|
|
770
|
+
return t.status >= 200 && t.status <= 299;
|
|
740
771
|
}
|
|
741
|
-
function
|
|
772
|
+
function Qe(e) {
|
|
742
773
|
try {
|
|
743
774
|
e.dispatchEvent(new MouseEvent("click"));
|
|
744
|
-
} catch (
|
|
745
|
-
const
|
|
746
|
-
|
|
775
|
+
} catch (t) {
|
|
776
|
+
const o = document.createEvent("MouseEvents");
|
|
777
|
+
o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(o);
|
|
747
778
|
}
|
|
748
779
|
}
|
|
749
|
-
const
|
|
780
|
+
const Ke = typeof navigator == "object" ? navigator : { userAgent: "" }, Ht = /Macintosh/.test(Ke.userAgent) && /AppleWebKit/.test(Ke.userAgent) && !/Safari/.test(Ke.userAgent), Jt = Ie ? (
|
|
750
781
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
751
|
-
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Ht ?
|
|
782
|
+
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Ht ? Ln : (
|
|
752
783
|
// Use msSaveOrOpenBlob as a second approach
|
|
753
|
-
"msSaveOrOpenBlob" in
|
|
784
|
+
"msSaveOrOpenBlob" in Ke ? jn : (
|
|
754
785
|
// Fallback to using FileReader and a popup
|
|
755
|
-
|
|
786
|
+
zn
|
|
756
787
|
)
|
|
757
788
|
)
|
|
758
789
|
) : () => {
|
|
759
790
|
};
|
|
760
|
-
function
|
|
791
|
+
function Ln(e, t = "download", o) {
|
|
761
792
|
const n = document.createElement("a");
|
|
762
|
-
n.download =
|
|
793
|
+
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Bt(n.href) ? mt(e, t, o) : (n.target = "_blank", Qe(n)) : Qe(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
763
794
|
URL.revokeObjectURL(n.href);
|
|
764
795
|
}, 4e4), setTimeout(function() {
|
|
765
|
-
|
|
796
|
+
Qe(n);
|
|
766
797
|
}, 0));
|
|
767
798
|
}
|
|
768
|
-
function
|
|
799
|
+
function jn(e, t = "download", o) {
|
|
769
800
|
if (typeof e == "string")
|
|
770
801
|
if (Bt(e))
|
|
771
|
-
mt(e,
|
|
802
|
+
mt(e, t, o);
|
|
772
803
|
else {
|
|
773
804
|
const n = document.createElement("a");
|
|
774
805
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
775
|
-
|
|
806
|
+
Qe(n);
|
|
776
807
|
});
|
|
777
808
|
}
|
|
778
809
|
else
|
|
779
|
-
navigator.msSaveOrOpenBlob(
|
|
810
|
+
navigator.msSaveOrOpenBlob(Gn(e, o), t);
|
|
780
811
|
}
|
|
781
|
-
function
|
|
812
|
+
function zn(e, t, o, n) {
|
|
782
813
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
783
|
-
return mt(e,
|
|
784
|
-
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(
|
|
814
|
+
return mt(e, t, o);
|
|
815
|
+
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(kt.HTMLElement)) || "safari" in kt, l = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
785
816
|
if ((l || s && r || Ht) && typeof FileReader != "undefined") {
|
|
786
817
|
const a = new FileReader();
|
|
787
818
|
a.onloadend = function() {
|
|
@@ -797,9 +828,9 @@ function Fn(e, o, t, n) {
|
|
|
797
828
|
}, 4e4);
|
|
798
829
|
}
|
|
799
830
|
}
|
|
800
|
-
function ee(e,
|
|
801
|
-
const
|
|
802
|
-
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(
|
|
831
|
+
function ee(e, t) {
|
|
832
|
+
const o = "🍍 " + e;
|
|
833
|
+
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
|
|
803
834
|
}
|
|
804
835
|
function ht(e) {
|
|
805
836
|
return "_a" in e && "install" in e;
|
|
@@ -811,74 +842,74 @@ function Wt() {
|
|
|
811
842
|
function Yt(e) {
|
|
812
843
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (ee('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
813
844
|
}
|
|
814
|
-
function
|
|
845
|
+
function qn(e) {
|
|
815
846
|
return ye(this, null, function* () {
|
|
816
847
|
if (!Wt())
|
|
817
848
|
try {
|
|
818
849
|
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), ee("Global state copied to clipboard.");
|
|
819
|
-
} catch (
|
|
820
|
-
if (Yt(
|
|
850
|
+
} catch (t) {
|
|
851
|
+
if (Yt(t))
|
|
821
852
|
return;
|
|
822
|
-
ee("Failed to serialize the state. Check the console for more details.", "error"), console.error(
|
|
853
|
+
ee("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
823
854
|
}
|
|
824
855
|
});
|
|
825
856
|
}
|
|
826
|
-
function
|
|
857
|
+
function Bn(e) {
|
|
827
858
|
return ye(this, null, function* () {
|
|
828
859
|
if (!Wt())
|
|
829
860
|
try {
|
|
830
861
|
Qt(e, JSON.parse(yield navigator.clipboard.readText())), ee("Global state pasted from clipboard.");
|
|
831
|
-
} catch (
|
|
832
|
-
if (Yt(
|
|
862
|
+
} catch (t) {
|
|
863
|
+
if (Yt(t))
|
|
833
864
|
return;
|
|
834
|
-
ee("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(
|
|
865
|
+
ee("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
835
866
|
}
|
|
836
867
|
});
|
|
837
868
|
}
|
|
838
|
-
function
|
|
869
|
+
function Hn(e) {
|
|
839
870
|
return ye(this, null, function* () {
|
|
840
871
|
try {
|
|
841
872
|
Jt(new Blob([JSON.stringify(e.state.value)], {
|
|
842
873
|
type: "text/plain;charset=utf-8"
|
|
843
874
|
}), "pinia-state.json");
|
|
844
|
-
} catch (
|
|
845
|
-
ee("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(
|
|
875
|
+
} catch (t) {
|
|
876
|
+
ee("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
846
877
|
}
|
|
847
878
|
});
|
|
848
879
|
}
|
|
849
880
|
let we;
|
|
850
|
-
function
|
|
881
|
+
function Jn() {
|
|
851
882
|
we || (we = document.createElement("input"), we.type = "file", we.accept = ".json");
|
|
852
883
|
function e() {
|
|
853
|
-
return new Promise((
|
|
884
|
+
return new Promise((t, o) => {
|
|
854
885
|
we.onchange = () => ye(this, null, function* () {
|
|
855
886
|
const n = we.files;
|
|
856
887
|
if (!n)
|
|
857
|
-
return
|
|
888
|
+
return t(null);
|
|
858
889
|
const s = n.item(0);
|
|
859
|
-
return
|
|
860
|
-
}), we.oncancel = () =>
|
|
890
|
+
return t(s ? { text: yield s.text(), file: s } : null);
|
|
891
|
+
}), we.oncancel = () => t(null), we.onerror = o, we.click();
|
|
861
892
|
});
|
|
862
893
|
}
|
|
863
894
|
return e;
|
|
864
895
|
}
|
|
865
|
-
function
|
|
896
|
+
function Wn(e) {
|
|
866
897
|
return ye(this, null, function* () {
|
|
867
898
|
try {
|
|
868
|
-
const
|
|
869
|
-
if (!
|
|
899
|
+
const o = yield Jn()();
|
|
900
|
+
if (!o)
|
|
870
901
|
return;
|
|
871
|
-
const { text: n, file: s } =
|
|
902
|
+
const { text: n, file: s } = o;
|
|
872
903
|
Qt(e, JSON.parse(n)), ee(`Global state imported from "${s.name}".`);
|
|
873
|
-
} catch (
|
|
874
|
-
ee("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(
|
|
904
|
+
} catch (t) {
|
|
905
|
+
ee("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
875
906
|
}
|
|
876
907
|
});
|
|
877
908
|
}
|
|
878
|
-
function Qt(e,
|
|
879
|
-
for (const
|
|
880
|
-
const n = e.state.value[
|
|
881
|
-
n ? Object.assign(n, o
|
|
909
|
+
function Qt(e, t) {
|
|
910
|
+
for (const o in t) {
|
|
911
|
+
const n = e.state.value[o];
|
|
912
|
+
n ? Object.assign(n, t[o]) : e.state.value[o] = t[o];
|
|
882
913
|
}
|
|
883
914
|
}
|
|
884
915
|
function me(e) {
|
|
@@ -888,26 +919,26 @@ function me(e) {
|
|
|
888
919
|
}
|
|
889
920
|
};
|
|
890
921
|
}
|
|
891
|
-
const Kt = "🍍 Pinia (root)",
|
|
892
|
-
function
|
|
922
|
+
const Kt = "🍍 Pinia (root)", Xe = "_root";
|
|
923
|
+
function Yn(e) {
|
|
893
924
|
return ht(e) ? {
|
|
894
|
-
id:
|
|
925
|
+
id: Xe,
|
|
895
926
|
label: Kt
|
|
896
927
|
} : {
|
|
897
928
|
id: e.$id,
|
|
898
929
|
label: e.$id
|
|
899
930
|
};
|
|
900
931
|
}
|
|
901
|
-
function
|
|
932
|
+
function Qn(e) {
|
|
902
933
|
if (ht(e)) {
|
|
903
|
-
const
|
|
934
|
+
const o = Array.from(e._s.keys()), n = e._s;
|
|
904
935
|
return {
|
|
905
|
-
state:
|
|
936
|
+
state: o.map((r) => ({
|
|
906
937
|
editable: !0,
|
|
907
938
|
key: r,
|
|
908
939
|
value: e.state.value[r]
|
|
909
940
|
})),
|
|
910
|
-
getters:
|
|
941
|
+
getters: o.filter((r) => n.get(r)._getters).map((r) => {
|
|
911
942
|
const l = n.get(r);
|
|
912
943
|
return {
|
|
913
944
|
editable: !1,
|
|
@@ -917,25 +948,25 @@ function Hn(e) {
|
|
|
917
948
|
})
|
|
918
949
|
};
|
|
919
950
|
}
|
|
920
|
-
const
|
|
921
|
-
state: Object.keys(e.$state).map((
|
|
951
|
+
const t = {
|
|
952
|
+
state: Object.keys(e.$state).map((o) => ({
|
|
922
953
|
editable: !0,
|
|
923
|
-
key:
|
|
924
|
-
value: e.$state[
|
|
954
|
+
key: o,
|
|
955
|
+
value: e.$state[o]
|
|
925
956
|
}))
|
|
926
957
|
};
|
|
927
|
-
return e._getters && e._getters.length && (
|
|
958
|
+
return e._getters && e._getters.length && (t.getters = e._getters.map((o) => ({
|
|
928
959
|
editable: !1,
|
|
929
|
-
key:
|
|
930
|
-
value: e[
|
|
931
|
-
}))), e._customProperties.size && (
|
|
960
|
+
key: o,
|
|
961
|
+
value: e[o]
|
|
962
|
+
}))), e._customProperties.size && (t.customProperties = Array.from(e._customProperties).map((o) => ({
|
|
932
963
|
editable: !0,
|
|
933
|
-
key:
|
|
934
|
-
value: e[
|
|
935
|
-
}))),
|
|
964
|
+
key: o,
|
|
965
|
+
value: e[o]
|
|
966
|
+
}))), t;
|
|
936
967
|
}
|
|
937
|
-
function
|
|
938
|
-
return e ? Array.isArray(e) ? e.reduce((
|
|
968
|
+
function Kn(e) {
|
|
969
|
+
return e ? Array.isArray(e) ? e.reduce((t, o) => (t.keys.push(o.key), t.operations.push(o.type), t.oldValue[o.key] = o.oldValue, t.newValue[o.key] = o.newValue, t), {
|
|
939
970
|
oldValue: {},
|
|
940
971
|
keys: [],
|
|
941
972
|
operations: [],
|
|
@@ -947,7 +978,7 @@ function Jn(e) {
|
|
|
947
978
|
newValue: e.newValue
|
|
948
979
|
} : {};
|
|
949
980
|
}
|
|
950
|
-
function
|
|
981
|
+
function Xn(e) {
|
|
951
982
|
switch (e) {
|
|
952
983
|
case ve.direct:
|
|
953
984
|
return "mutation";
|
|
@@ -960,22 +991,22 @@ function Wn(e) {
|
|
|
960
991
|
}
|
|
961
992
|
}
|
|
962
993
|
let Ve = !0;
|
|
963
|
-
const
|
|
964
|
-
function
|
|
994
|
+
const Ze = [], $e = "pinia:mutations", te = "pinia", { assign: Zn } = Object, ot = (e) => "🍍 " + e;
|
|
995
|
+
function es(e, t) {
|
|
965
996
|
zt({
|
|
966
997
|
id: "dev.esm.pinia",
|
|
967
998
|
label: "Pinia 🍍",
|
|
968
999
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
969
1000
|
packageName: "pinia",
|
|
970
1001
|
homepage: "https://pinia.vuejs.org",
|
|
971
|
-
componentStateTypes:
|
|
1002
|
+
componentStateTypes: Ze,
|
|
972
1003
|
app: e
|
|
973
|
-
}, (
|
|
974
|
-
typeof
|
|
1004
|
+
}, (o) => {
|
|
1005
|
+
typeof o.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."), o.addTimelineLayer({
|
|
975
1006
|
id: $e,
|
|
976
1007
|
label: "Pinia 🍍",
|
|
977
1008
|
color: 15064968
|
|
978
|
-
}),
|
|
1009
|
+
}), o.addInspector({
|
|
979
1010
|
id: te,
|
|
980
1011
|
label: "Pinia 🍍",
|
|
981
1012
|
icon: "storage",
|
|
@@ -984,28 +1015,28 @@ function Qn(e, o) {
|
|
|
984
1015
|
{
|
|
985
1016
|
icon: "content_copy",
|
|
986
1017
|
action: () => {
|
|
987
|
-
|
|
1018
|
+
qn(t);
|
|
988
1019
|
},
|
|
989
1020
|
tooltip: "Serialize and copy the state"
|
|
990
1021
|
},
|
|
991
1022
|
{
|
|
992
1023
|
icon: "content_paste",
|
|
993
1024
|
action: () => ye(this, null, function* () {
|
|
994
|
-
yield
|
|
1025
|
+
yield Bn(t), o.sendInspectorTree(te), o.sendInspectorState(te);
|
|
995
1026
|
}),
|
|
996
1027
|
tooltip: "Replace the state with the content of your clipboard"
|
|
997
1028
|
},
|
|
998
1029
|
{
|
|
999
1030
|
icon: "save",
|
|
1000
1031
|
action: () => {
|
|
1001
|
-
|
|
1032
|
+
Hn(t);
|
|
1002
1033
|
},
|
|
1003
1034
|
tooltip: "Save the state as a JSON file"
|
|
1004
1035
|
},
|
|
1005
1036
|
{
|
|
1006
1037
|
icon: "folder_open",
|
|
1007
1038
|
action: () => ye(this, null, function* () {
|
|
1008
|
-
yield
|
|
1039
|
+
yield Wn(t), o.sendInspectorTree(te), o.sendInspectorState(te);
|
|
1009
1040
|
}),
|
|
1010
1041
|
tooltip: "Import the state from a JSON file"
|
|
1011
1042
|
}
|
|
@@ -1015,12 +1046,12 @@ function Qn(e, o) {
|
|
|
1015
1046
|
icon: "restore",
|
|
1016
1047
|
tooltip: 'Reset the state (with "$reset")',
|
|
1017
1048
|
action: (n) => {
|
|
1018
|
-
const s =
|
|
1049
|
+
const s = t._s.get(n);
|
|
1019
1050
|
s ? typeof s.$reset != "function" ? ee(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), ee(`Store "${n}" reset.`)) : ee(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1020
1051
|
}
|
|
1021
1052
|
}
|
|
1022
1053
|
]
|
|
1023
|
-
}),
|
|
1054
|
+
}), o.on.inspectComponent((n, s) => {
|
|
1024
1055
|
const r = n.componentInstance && n.componentInstance.proxy;
|
|
1025
1056
|
if (r && r._pStores) {
|
|
1026
1057
|
const l = n.componentInstance.proxy._pStores;
|
|
@@ -1031,7 +1062,7 @@ function Qn(e, o) {
|
|
|
1031
1062
|
editable: !0,
|
|
1032
1063
|
value: a._isOptionsAPI ? {
|
|
1033
1064
|
_custom: {
|
|
1034
|
-
value:
|
|
1065
|
+
value: je(a.$state),
|
|
1035
1066
|
actions: [
|
|
1036
1067
|
{
|
|
1037
1068
|
icon: "restore",
|
|
@@ -1051,37 +1082,37 @@ function Qn(e, o) {
|
|
|
1051
1082
|
value: a._getters.reduce((i, d) => {
|
|
1052
1083
|
try {
|
|
1053
1084
|
i[d] = a[d];
|
|
1054
|
-
} catch (
|
|
1055
|
-
i[d] =
|
|
1085
|
+
} catch (w) {
|
|
1086
|
+
i[d] = w;
|
|
1056
1087
|
}
|
|
1057
1088
|
return i;
|
|
1058
1089
|
}, {})
|
|
1059
1090
|
});
|
|
1060
1091
|
});
|
|
1061
1092
|
}
|
|
1062
|
-
}),
|
|
1093
|
+
}), o.on.getInspectorTree((n) => {
|
|
1063
1094
|
if (n.app === e && n.inspectorId === te) {
|
|
1064
|
-
let s = [
|
|
1065
|
-
s = s.concat(Array.from(
|
|
1095
|
+
let s = [t];
|
|
1096
|
+
s = s.concat(Array.from(t._s.values())), n.rootNodes = (n.filter ? s.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : Kt.toLowerCase().includes(n.filter.toLowerCase())) : s).map(Yn);
|
|
1066
1097
|
}
|
|
1067
|
-
}), globalThis.$pinia =
|
|
1098
|
+
}), globalThis.$pinia = t, o.on.getInspectorState((n) => {
|
|
1068
1099
|
if (n.app === e && n.inspectorId === te) {
|
|
1069
|
-
const s = n.nodeId ===
|
|
1100
|
+
const s = n.nodeId === Xe ? t : t._s.get(n.nodeId);
|
|
1070
1101
|
if (!s)
|
|
1071
1102
|
return;
|
|
1072
|
-
s && (n.nodeId !==
|
|
1103
|
+
s && (n.nodeId !== Xe && (globalThis.$store = je(s)), n.state = Qn(s));
|
|
1073
1104
|
}
|
|
1074
|
-
}),
|
|
1105
|
+
}), o.on.editInspectorState((n, s) => {
|
|
1075
1106
|
if (n.app === e && n.inspectorId === te) {
|
|
1076
|
-
const r = n.nodeId ===
|
|
1107
|
+
const r = n.nodeId === Xe ? t : t._s.get(n.nodeId);
|
|
1077
1108
|
if (!r)
|
|
1078
1109
|
return ee(`store "${n.nodeId}" not found`, "error");
|
|
1079
1110
|
const { path: l } = n;
|
|
1080
1111
|
ht(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Ve = !1, n.set(r, l, n.state.value), Ve = !0;
|
|
1081
1112
|
}
|
|
1082
|
-
}),
|
|
1113
|
+
}), o.on.editComponentState((n) => {
|
|
1083
1114
|
if (n.type.startsWith("🍍")) {
|
|
1084
|
-
const s = n.type.replace(/^🍍\s*/, ""), r =
|
|
1115
|
+
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1085
1116
|
if (!r)
|
|
1086
1117
|
return ee(`store "${s}" not found`, "error");
|
|
1087
1118
|
const { path: l } = n;
|
|
@@ -1094,14 +1125,14 @@ Only state can be modified.`);
|
|
|
1094
1125
|
});
|
|
1095
1126
|
});
|
|
1096
1127
|
}
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1128
|
+
function ts(e, t) {
|
|
1129
|
+
Ze.includes(ot(t.$id)) || Ze.push(ot(t.$id)), zt({
|
|
1099
1130
|
id: "dev.esm.pinia",
|
|
1100
1131
|
label: "Pinia 🍍",
|
|
1101
1132
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1102
1133
|
packageName: "pinia",
|
|
1103
1134
|
homepage: "https://pinia.vuejs.org",
|
|
1104
|
-
componentStateTypes:
|
|
1135
|
+
componentStateTypes: Ze,
|
|
1105
1136
|
app: e,
|
|
1106
1137
|
settings: {
|
|
1107
1138
|
logStoreChanges: {
|
|
@@ -1115,41 +1146,41 @@ function Kn(e, o) {
|
|
|
1115
1146
|
// defaultValue: true,
|
|
1116
1147
|
// },
|
|
1117
1148
|
}
|
|
1118
|
-
}, (
|
|
1119
|
-
const n = typeof
|
|
1120
|
-
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1149
|
+
}, (o) => {
|
|
1150
|
+
const n = typeof o.now == "function" ? o.now.bind(o) : Date.now;
|
|
1151
|
+
t.$onAction(({ after: l, onError: a, name: i, args: d }) => {
|
|
1152
|
+
const w = Xt++;
|
|
1153
|
+
o.addTimelineEvent({
|
|
1123
1154
|
layerId: $e,
|
|
1124
1155
|
event: {
|
|
1125
1156
|
time: n(),
|
|
1126
1157
|
title: "🛫 " + i,
|
|
1127
1158
|
subtitle: "start",
|
|
1128
1159
|
data: {
|
|
1129
|
-
store: me(
|
|
1160
|
+
store: me(t.$id),
|
|
1130
1161
|
action: me(i),
|
|
1131
1162
|
args: d
|
|
1132
1163
|
},
|
|
1133
|
-
groupId:
|
|
1164
|
+
groupId: w
|
|
1134
1165
|
}
|
|
1135
|
-
}), l((
|
|
1136
|
-
|
|
1166
|
+
}), l((y) => {
|
|
1167
|
+
ke = void 0, o.addTimelineEvent({
|
|
1137
1168
|
layerId: $e,
|
|
1138
1169
|
event: {
|
|
1139
1170
|
time: n(),
|
|
1140
1171
|
title: "🛬 " + i,
|
|
1141
1172
|
subtitle: "end",
|
|
1142
1173
|
data: {
|
|
1143
|
-
store: me(
|
|
1174
|
+
store: me(t.$id),
|
|
1144
1175
|
action: me(i),
|
|
1145
1176
|
args: d,
|
|
1146
|
-
result:
|
|
1177
|
+
result: y
|
|
1147
1178
|
},
|
|
1148
|
-
groupId:
|
|
1179
|
+
groupId: w
|
|
1149
1180
|
}
|
|
1150
1181
|
});
|
|
1151
|
-
}), a((
|
|
1152
|
-
|
|
1182
|
+
}), a((y) => {
|
|
1183
|
+
ke = void 0, o.addTimelineEvent({
|
|
1153
1184
|
layerId: $e,
|
|
1154
1185
|
event: {
|
|
1155
1186
|
time: n(),
|
|
@@ -1157,18 +1188,18 @@ function Kn(e, o) {
|
|
|
1157
1188
|
title: "💥 " + i,
|
|
1158
1189
|
subtitle: "end",
|
|
1159
1190
|
data: {
|
|
1160
|
-
store: me(
|
|
1191
|
+
store: me(t.$id),
|
|
1161
1192
|
action: me(i),
|
|
1162
1193
|
args: d,
|
|
1163
|
-
error:
|
|
1194
|
+
error: y
|
|
1164
1195
|
},
|
|
1165
|
-
groupId:
|
|
1196
|
+
groupId: w
|
|
1166
1197
|
}
|
|
1167
1198
|
});
|
|
1168
1199
|
});
|
|
1169
|
-
}, !0),
|
|
1170
|
-
Se(() => k(
|
|
1171
|
-
|
|
1200
|
+
}, !0), t._customProperties.forEach((l) => {
|
|
1201
|
+
Se(() => k(t[l]), (a, i) => {
|
|
1202
|
+
o.notifyComponentUpdate(), o.sendInspectorState(te), Ve && o.addTimelineEvent({
|
|
1172
1203
|
layerId: $e,
|
|
1173
1204
|
event: {
|
|
1174
1205
|
time: n(),
|
|
@@ -1178,18 +1209,18 @@ function Kn(e, o) {
|
|
|
1178
1209
|
newValue: a,
|
|
1179
1210
|
oldValue: i
|
|
1180
1211
|
},
|
|
1181
|
-
groupId:
|
|
1212
|
+
groupId: ke
|
|
1182
1213
|
}
|
|
1183
1214
|
});
|
|
1184
1215
|
}, { deep: !0 });
|
|
1185
|
-
}),
|
|
1186
|
-
if (
|
|
1216
|
+
}), t.$subscribe(({ events: l, type: a }, i) => {
|
|
1217
|
+
if (o.notifyComponentUpdate(), o.sendInspectorState(te), !Ve)
|
|
1187
1218
|
return;
|
|
1188
1219
|
const d = {
|
|
1189
1220
|
time: n(),
|
|
1190
|
-
title:
|
|
1191
|
-
data:
|
|
1192
|
-
groupId:
|
|
1221
|
+
title: Xn(a),
|
|
1222
|
+
data: Zn({ store: me(t.$id) }, Kn(l)),
|
|
1223
|
+
groupId: ke
|
|
1193
1224
|
};
|
|
1194
1225
|
a === ve.patchFunction ? d.subtitle = "⤵️" : a === ve.patchObject ? d.subtitle = "🧩" : l && !Array.isArray(l) && (d.subtitle = l.type), l && (d.data["rawEvent(s)"] = {
|
|
1195
1226
|
_custom: {
|
|
@@ -1198,167 +1229,167 @@ function Kn(e, o) {
|
|
|
1198
1229
|
tooltip: "raw DebuggerEvent[]",
|
|
1199
1230
|
value: l
|
|
1200
1231
|
}
|
|
1201
|
-
}),
|
|
1232
|
+
}), o.addTimelineEvent({
|
|
1202
1233
|
layerId: $e,
|
|
1203
1234
|
event: d
|
|
1204
1235
|
});
|
|
1205
1236
|
}, { detached: !0, flush: "sync" });
|
|
1206
|
-
const s =
|
|
1207
|
-
|
|
1208
|
-
s(l),
|
|
1237
|
+
const s = t._hotUpdate;
|
|
1238
|
+
t._hotUpdate = Pe((l) => {
|
|
1239
|
+
s(l), o.addTimelineEvent({
|
|
1209
1240
|
layerId: $e,
|
|
1210
1241
|
event: {
|
|
1211
1242
|
time: n(),
|
|
1212
|
-
title: "🔥 " +
|
|
1243
|
+
title: "🔥 " + t.$id,
|
|
1213
1244
|
subtitle: "HMR update",
|
|
1214
1245
|
data: {
|
|
1215
|
-
store: me(
|
|
1246
|
+
store: me(t.$id),
|
|
1216
1247
|
info: me("HMR update")
|
|
1217
1248
|
}
|
|
1218
1249
|
}
|
|
1219
|
-
}),
|
|
1250
|
+
}), o.notifyComponentUpdate(), o.sendInspectorTree(te), o.sendInspectorState(te);
|
|
1220
1251
|
});
|
|
1221
|
-
const { $dispose: r } =
|
|
1222
|
-
|
|
1223
|
-
r(),
|
|
1224
|
-
},
|
|
1252
|
+
const { $dispose: r } = t;
|
|
1253
|
+
t.$dispose = () => {
|
|
1254
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(te), o.sendInspectorState(te), o.getSettings().logStoreChanges && ee(`Disposed "${t.$id}" store 🗑`);
|
|
1255
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(te), o.sendInspectorState(te), o.getSettings().logStoreChanges && ee(`"${t.$id}" store installed 🆕`);
|
|
1225
1256
|
});
|
|
1226
1257
|
}
|
|
1227
|
-
let Xt = 0,
|
|
1228
|
-
function
|
|
1229
|
-
const n =
|
|
1258
|
+
let Xt = 0, ke;
|
|
1259
|
+
function Ot(e, t, o) {
|
|
1260
|
+
const n = t.reduce((s, r) => (s[r] = je(e)[r], s), {});
|
|
1230
1261
|
for (const s in n)
|
|
1231
1262
|
e[s] = function() {
|
|
1232
|
-
const r = Xt, l =
|
|
1263
|
+
const r = Xt, l = o ? new Proxy(e, {
|
|
1233
1264
|
get(...i) {
|
|
1234
|
-
return
|
|
1265
|
+
return ke = r, Reflect.get(...i);
|
|
1235
1266
|
},
|
|
1236
1267
|
set(...i) {
|
|
1237
|
-
return
|
|
1268
|
+
return ke = r, Reflect.set(...i);
|
|
1238
1269
|
}
|
|
1239
1270
|
}) : e;
|
|
1240
|
-
|
|
1271
|
+
ke = r;
|
|
1241
1272
|
const a = n[s].apply(l, arguments);
|
|
1242
|
-
return
|
|
1273
|
+
return ke = void 0, a;
|
|
1243
1274
|
};
|
|
1244
1275
|
}
|
|
1245
|
-
function
|
|
1246
|
-
if (!
|
|
1247
|
-
if (
|
|
1248
|
-
|
|
1249
|
-
const n =
|
|
1250
|
-
|
|
1251
|
-
n.apply(this, arguments),
|
|
1276
|
+
function os({ app: e, store: t, options: o }) {
|
|
1277
|
+
if (!t.$id.startsWith("__hot:")) {
|
|
1278
|
+
if (t._isOptionsAPI = !!o.state, !t._p._testing) {
|
|
1279
|
+
Ot(t, Object.keys(o.actions), t._isOptionsAPI);
|
|
1280
|
+
const n = t._hotUpdate;
|
|
1281
|
+
je(t)._hotUpdate = function(s) {
|
|
1282
|
+
n.apply(this, arguments), Ot(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
|
|
1252
1283
|
};
|
|
1253
1284
|
}
|
|
1254
|
-
|
|
1285
|
+
ts(
|
|
1255
1286
|
e,
|
|
1256
1287
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
1257
|
-
|
|
1288
|
+
t
|
|
1258
1289
|
);
|
|
1259
1290
|
}
|
|
1260
1291
|
}
|
|
1261
|
-
function
|
|
1262
|
-
const e =
|
|
1263
|
-
let
|
|
1292
|
+
function ns() {
|
|
1293
|
+
const e = Mt(!0), t = e.run(() => N({}));
|
|
1294
|
+
let o = [], n = [];
|
|
1264
1295
|
const s = Pe({
|
|
1265
1296
|
install(r) {
|
|
1266
|
-
|
|
1297
|
+
qe(s), s._a = r, r.provide(qt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie && es(r, s), n.forEach((l) => o.push(l)), n = [];
|
|
1267
1298
|
},
|
|
1268
1299
|
use(r) {
|
|
1269
|
-
return !this._a && !Lt ? n.push(r) :
|
|
1300
|
+
return !this._a && !Lt ? n.push(r) : o.push(r), this;
|
|
1270
1301
|
},
|
|
1271
|
-
_p:
|
|
1302
|
+
_p: o,
|
|
1272
1303
|
// it's actually undefined here
|
|
1273
1304
|
// @ts-expect-error
|
|
1274
1305
|
_a: null,
|
|
1275
1306
|
_e: e,
|
|
1276
1307
|
_s: /* @__PURE__ */ new Map(),
|
|
1277
|
-
state:
|
|
1308
|
+
state: t
|
|
1278
1309
|
});
|
|
1279
|
-
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(
|
|
1310
|
+
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(os), s;
|
|
1280
1311
|
}
|
|
1281
|
-
function Zt(e,
|
|
1282
|
-
for (const
|
|
1283
|
-
const n = o
|
|
1284
|
-
if (!(
|
|
1312
|
+
function Zt(e, t) {
|
|
1313
|
+
for (const o in t) {
|
|
1314
|
+
const n = t[o];
|
|
1315
|
+
if (!(o in e))
|
|
1285
1316
|
continue;
|
|
1286
|
-
const s = e[
|
|
1287
|
-
Ne(s) && Ne(n) && !
|
|
1317
|
+
const s = e[o];
|
|
1318
|
+
Ne(s) && Ne(n) && !ze(n) && !ft(n) ? e[o] = Zt(s, n) : e[o] = n;
|
|
1288
1319
|
}
|
|
1289
1320
|
return e;
|
|
1290
1321
|
}
|
|
1291
1322
|
const eo = () => {
|
|
1292
1323
|
};
|
|
1293
|
-
function
|
|
1294
|
-
e.push(
|
|
1324
|
+
function xt(e, t, o, n = eo) {
|
|
1325
|
+
e.push(t);
|
|
1295
1326
|
const s = () => {
|
|
1296
|
-
const r = e.indexOf(
|
|
1327
|
+
const r = e.indexOf(t);
|
|
1297
1328
|
r > -1 && (e.splice(r, 1), n());
|
|
1298
1329
|
};
|
|
1299
|
-
return !
|
|
1330
|
+
return !o && bo() && yo(s), s;
|
|
1300
1331
|
}
|
|
1301
|
-
function
|
|
1302
|
-
e.slice().forEach((
|
|
1303
|
-
|
|
1332
|
+
function Ae(e, ...t) {
|
|
1333
|
+
e.slice().forEach((o) => {
|
|
1334
|
+
o(...t);
|
|
1304
1335
|
});
|
|
1305
1336
|
}
|
|
1306
|
-
const
|
|
1307
|
-
function ut(e,
|
|
1308
|
-
e instanceof Map &&
|
|
1309
|
-
for (const
|
|
1310
|
-
if (!
|
|
1337
|
+
const ss = (e) => e(), Et = Symbol(), it = Symbol();
|
|
1338
|
+
function ut(e, t) {
|
|
1339
|
+
e instanceof Map && t instanceof Map ? t.forEach((o, n) => e.set(n, o)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
1340
|
+
for (const o in t) {
|
|
1341
|
+
if (!t.hasOwnProperty(o))
|
|
1311
1342
|
continue;
|
|
1312
|
-
const n = o
|
|
1313
|
-
Ne(s) && Ne(n) && e.hasOwnProperty(
|
|
1343
|
+
const n = t[o], s = e[o];
|
|
1344
|
+
Ne(s) && Ne(n) && e.hasOwnProperty(o) && !ze(n) && !ft(n) ? e[o] = ut(s, n) : e[o] = n;
|
|
1314
1345
|
}
|
|
1315
1346
|
return e;
|
|
1316
1347
|
}
|
|
1317
|
-
const
|
|
1348
|
+
const rs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
1318
1349
|
/* istanbul ignore next */
|
|
1319
1350
|
Symbol()
|
|
1320
1351
|
);
|
|
1321
|
-
function
|
|
1322
|
-
return !Ne(e) || !e.hasOwnProperty(
|
|
1352
|
+
function as(e) {
|
|
1353
|
+
return !Ne(e) || !e.hasOwnProperty(rs);
|
|
1323
1354
|
}
|
|
1324
1355
|
const { assign: ue } = Object;
|
|
1325
1356
|
function $t(e) {
|
|
1326
|
-
return !!(
|
|
1357
|
+
return !!(ze(e) && e.effect);
|
|
1327
1358
|
}
|
|
1328
|
-
function Pt(e,
|
|
1329
|
-
const { state: s, actions: r, getters: l } =
|
|
1359
|
+
function Pt(e, t, o, n) {
|
|
1360
|
+
const { state: s, actions: r, getters: l } = t, a = o.state.value[e];
|
|
1330
1361
|
let i;
|
|
1331
1362
|
function d() {
|
|
1332
|
-
!a && (process.env.NODE_ENV === "production" || !n) && (
|
|
1333
|
-
const
|
|
1363
|
+
!a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
|
|
1364
|
+
const w = process.env.NODE_ENV !== "production" && n ? (
|
|
1334
1365
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1335
1366
|
St(N(s ? s() : {}).value)
|
|
1336
|
-
) : St(
|
|
1337
|
-
return ue(
|
|
1338
|
-
|
|
1339
|
-
const D =
|
|
1340
|
-
return l[
|
|
1341
|
-
})),
|
|
1367
|
+
) : St(o.state.value[e]);
|
|
1368
|
+
return ue(w, r, Object.keys(l || {}).reduce((y, M) => (process.env.NODE_ENV !== "production" && M in w && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${M}" in store "${e}".`), y[M] = Pe(De(() => {
|
|
1369
|
+
qe(o);
|
|
1370
|
+
const D = o._s.get(e);
|
|
1371
|
+
return l[M].call(D, D);
|
|
1372
|
+
})), y), {}));
|
|
1342
1373
|
}
|
|
1343
|
-
return i = dt(e, d,
|
|
1374
|
+
return i = dt(e, d, t, o, n, !0), i;
|
|
1344
1375
|
}
|
|
1345
|
-
function dt(e,
|
|
1376
|
+
function dt(e, t, o = {}, n, s, r) {
|
|
1346
1377
|
let l;
|
|
1347
|
-
const a = ue({ actions: {} },
|
|
1378
|
+
const a = ue({ actions: {} }, o);
|
|
1348
1379
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
1349
1380
|
throw new Error("Pinia destroyed");
|
|
1350
1381
|
const i = { deep: !0 };
|
|
1351
1382
|
process.env.NODE_ENV !== "production" && !Lt && (i.onTrigger = (u) => {
|
|
1352
|
-
d ? D = u : d == !1 && !
|
|
1383
|
+
d ? D = u : d == !1 && !_._hotUpdating && (Array.isArray(D) ? D.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1353
1384
|
});
|
|
1354
|
-
let d,
|
|
1385
|
+
let d, w, y = [], M = [], D;
|
|
1355
1386
|
const L = n.state.value[e];
|
|
1356
1387
|
!r && !L && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1357
1388
|
const $ = N({});
|
|
1358
1389
|
let z;
|
|
1359
1390
|
function I(u) {
|
|
1360
1391
|
let c;
|
|
1361
|
-
d =
|
|
1392
|
+
d = w = !1, process.env.NODE_ENV !== "production" && (D = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1362
1393
|
type: ve.patchFunction,
|
|
1363
1394
|
storeId: e,
|
|
1364
1395
|
events: D
|
|
@@ -1369,14 +1400,14 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1369
1400
|
events: D
|
|
1370
1401
|
});
|
|
1371
1402
|
const g = z = Symbol();
|
|
1372
|
-
|
|
1403
|
+
Le().then(() => {
|
|
1373
1404
|
z === g && (d = !0);
|
|
1374
|
-
}),
|
|
1405
|
+
}), w = !0, Ae(y, c, n.state.value[e]);
|
|
1375
1406
|
}
|
|
1376
1407
|
const Y = r ? function() {
|
|
1377
|
-
const { state: c } =
|
|
1378
|
-
this.$patch((
|
|
1379
|
-
ue(
|
|
1408
|
+
const { state: c } = o, g = c ? c() : {};
|
|
1409
|
+
this.$patch((E) => {
|
|
1410
|
+
ue(E, g);
|
|
1380
1411
|
});
|
|
1381
1412
|
} : (
|
|
1382
1413
|
/* istanbul ignore next */
|
|
@@ -1385,36 +1416,36 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1385
1416
|
} : eo
|
|
1386
1417
|
);
|
|
1387
1418
|
function j() {
|
|
1388
|
-
l.stop(),
|
|
1419
|
+
l.stop(), y = [], M = [], n._s.delete(e);
|
|
1389
1420
|
}
|
|
1390
1421
|
const K = (u, c = "") => {
|
|
1391
|
-
if (
|
|
1422
|
+
if (Et in u)
|
|
1392
1423
|
return u[it] = c, u;
|
|
1393
1424
|
const g = function() {
|
|
1394
|
-
|
|
1395
|
-
const
|
|
1396
|
-
function
|
|
1425
|
+
qe(n);
|
|
1426
|
+
const E = Array.from(arguments), F = [], q = [];
|
|
1427
|
+
function S(f) {
|
|
1397
1428
|
F.push(f);
|
|
1398
1429
|
}
|
|
1399
|
-
function
|
|
1430
|
+
function T(f) {
|
|
1400
1431
|
q.push(f);
|
|
1401
1432
|
}
|
|
1402
|
-
|
|
1403
|
-
args:
|
|
1433
|
+
Ae(M, {
|
|
1434
|
+
args: E,
|
|
1404
1435
|
name: g[it],
|
|
1405
|
-
store:
|
|
1406
|
-
after:
|
|
1407
|
-
onError:
|
|
1436
|
+
store: _,
|
|
1437
|
+
after: S,
|
|
1438
|
+
onError: T
|
|
1408
1439
|
});
|
|
1409
1440
|
let v;
|
|
1410
1441
|
try {
|
|
1411
|
-
v = u.apply(this && this.$id === e ? this :
|
|
1442
|
+
v = u.apply(this && this.$id === e ? this : _, E);
|
|
1412
1443
|
} catch (f) {
|
|
1413
|
-
throw
|
|
1444
|
+
throw Ae(q, f), f;
|
|
1414
1445
|
}
|
|
1415
|
-
return v instanceof Promise ? v.then((f) => (
|
|
1446
|
+
return v instanceof Promise ? v.then((f) => (Ae(F, f), f)).catch((f) => (Ae(q, f), Promise.reject(f))) : (Ae(F, v), v);
|
|
1416
1447
|
};
|
|
1417
|
-
return g[
|
|
1448
|
+
return g[Et] = !0, g[it] = c, g;
|
|
1418
1449
|
}, ne = /* @__PURE__ */ Pe({
|
|
1419
1450
|
actions: {},
|
|
1420
1451
|
getters: {},
|
|
@@ -1424,12 +1455,12 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1424
1455
|
_p: n,
|
|
1425
1456
|
// _s: scope,
|
|
1426
1457
|
$id: e,
|
|
1427
|
-
$onAction:
|
|
1458
|
+
$onAction: xt.bind(null, M),
|
|
1428
1459
|
$patch: I,
|
|
1429
1460
|
$reset: Y,
|
|
1430
1461
|
$subscribe(u, c = {}) {
|
|
1431
|
-
const g =
|
|
1432
|
-
(c.flush === "sync" ?
|
|
1462
|
+
const g = xt(y, u, c.detached, () => E()), E = l.run(() => Se(() => n.state.value[e], (F) => {
|
|
1463
|
+
(c.flush === "sync" ? w : d) && u({
|
|
1433
1464
|
storeId: e,
|
|
1434
1465
|
type: ve.direct,
|
|
1435
1466
|
events: D
|
|
@@ -1438,7 +1469,7 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1438
1469
|
return g;
|
|
1439
1470
|
},
|
|
1440
1471
|
$dispose: j
|
|
1441
|
-
},
|
|
1472
|
+
}, _ = re(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie ? ue(
|
|
1442
1473
|
{
|
|
1443
1474
|
_hmrPayload: ne,
|
|
1444
1475
|
_customProperties: Pe(/* @__PURE__ */ new Set())
|
|
@@ -1448,22 +1479,22 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1448
1479
|
// must be added later
|
|
1449
1480
|
// setupStore
|
|
1450
1481
|
) : C);
|
|
1451
|
-
n._s.set(e,
|
|
1452
|
-
const
|
|
1453
|
-
for (const u in
|
|
1454
|
-
const c =
|
|
1455
|
-
if (
|
|
1456
|
-
process.env.NODE_ENV !== "production" && s ?
|
|
1482
|
+
n._s.set(e, _);
|
|
1483
|
+
const A = (n._a && n._a.runWithContext || ss)(() => n._e.run(() => (l = Mt()).run(() => t({ action: K }))));
|
|
1484
|
+
for (const u in A) {
|
|
1485
|
+
const c = A[u];
|
|
1486
|
+
if (ze(c) && !$t(c) || ft(c))
|
|
1487
|
+
process.env.NODE_ENV !== "production" && s ? Ye($.value, u, rt(A, u)) : r || (L && as(c) && (ze(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
1488
|
else if (typeof c == "function") {
|
|
1458
1489
|
const g = process.env.NODE_ENV !== "production" && s ? c : K(c, u);
|
|
1459
|
-
|
|
1490
|
+
A[u] = g, process.env.NODE_ENV !== "production" && (ne.actions[u] = c), a.actions[u] = c;
|
|
1460
1491
|
} else process.env.NODE_ENV !== "production" && $t(c) && (ne.getters[u] = r ? (
|
|
1461
1492
|
// @ts-expect-error
|
|
1462
|
-
|
|
1463
|
-
) : c, Ie && (
|
|
1464
|
-
(
|
|
1493
|
+
o.getters[u]
|
|
1494
|
+
) : c, Ie && (A._getters || // @ts-expect-error: same
|
|
1495
|
+
(A._getters = Pe([]))).push(u));
|
|
1465
1496
|
}
|
|
1466
|
-
if (ue(
|
|
1497
|
+
if (ue(_, A), ue(je(_), A), Object.defineProperty(_, "$state", {
|
|
1467
1498
|
get: () => process.env.NODE_ENV !== "production" && s ? $.value : n.state.value[e],
|
|
1468
1499
|
set: (u) => {
|
|
1469
1500
|
if (process.env.NODE_ENV !== "production" && s)
|
|
@@ -1472,34 +1503,34 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1472
1503
|
ue(c, u);
|
|
1473
1504
|
});
|
|
1474
1505
|
}
|
|
1475
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1476
|
-
|
|
1477
|
-
if (c in
|
|
1478
|
-
const g = u.$state[c],
|
|
1479
|
-
typeof g == "object" && Ne(g) && Ne(
|
|
1506
|
+
}), process.env.NODE_ENV !== "production" && (_._hotUpdate = Pe((u) => {
|
|
1507
|
+
_._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1508
|
+
if (c in _.$state) {
|
|
1509
|
+
const g = u.$state[c], E = _.$state[c];
|
|
1510
|
+
typeof g == "object" && Ne(g) && Ne(E) ? Zt(g, E) : u.$state[c] = E;
|
|
1480
1511
|
}
|
|
1481
|
-
|
|
1482
|
-
}), Object.keys(
|
|
1483
|
-
c in u.$state || lt(
|
|
1484
|
-
}), d = !1,
|
|
1512
|
+
Ye(_, c, rt(u.$state, c));
|
|
1513
|
+
}), Object.keys(_.$state).forEach((c) => {
|
|
1514
|
+
c in u.$state || lt(_, c);
|
|
1515
|
+
}), d = !1, w = !1, n.state.value[e] = rt(u._hmrPayload, "hotState"), w = !0, Le().then(() => {
|
|
1485
1516
|
d = !0;
|
|
1486
1517
|
});
|
|
1487
1518
|
for (const c in u._hmrPayload.actions) {
|
|
1488
1519
|
const g = u[c];
|
|
1489
|
-
|
|
1520
|
+
Ye(_, c, K(g, c));
|
|
1490
1521
|
}
|
|
1491
1522
|
for (const c in u._hmrPayload.getters) {
|
|
1492
|
-
const g = u._hmrPayload.getters[c],
|
|
1523
|
+
const g = u._hmrPayload.getters[c], E = r ? (
|
|
1493
1524
|
// special handling of options api
|
|
1494
|
-
De(() => (
|
|
1525
|
+
De(() => (qe(n), g.call(_, _)))
|
|
1495
1526
|
) : g;
|
|
1496
|
-
|
|
1527
|
+
Ye(_, c, E);
|
|
1497
1528
|
}
|
|
1498
|
-
Object.keys(
|
|
1499
|
-
c in u._hmrPayload.getters || lt(
|
|
1500
|
-
}), Object.keys(
|
|
1501
|
-
c in u._hmrPayload.actions || lt(
|
|
1502
|
-
}),
|
|
1529
|
+
Object.keys(_._hmrPayload.getters).forEach((c) => {
|
|
1530
|
+
c in u._hmrPayload.getters || lt(_, c);
|
|
1531
|
+
}), Object.keys(_._hmrPayload.actions).forEach((c) => {
|
|
1532
|
+
c in u._hmrPayload.actions || lt(_, c);
|
|
1533
|
+
}), _._hmrPayload = u._hmrPayload, _._getters = u._getters, _._hotUpdating = !1;
|
|
1503
1534
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie) {
|
|
1504
1535
|
const u = {
|
|
1505
1536
|
writable: !0,
|
|
@@ -1508,83 +1539,83 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1508
1539
|
enumerable: !1
|
|
1509
1540
|
};
|
|
1510
1541
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((c) => {
|
|
1511
|
-
Object.defineProperty(
|
|
1542
|
+
Object.defineProperty(_, c, ue({ value: _[c] }, u));
|
|
1512
1543
|
});
|
|
1513
1544
|
}
|
|
1514
1545
|
return n._p.forEach((u) => {
|
|
1515
1546
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie) {
|
|
1516
1547
|
const c = l.run(() => u({
|
|
1517
|
-
store:
|
|
1548
|
+
store: _,
|
|
1518
1549
|
app: n._a,
|
|
1519
1550
|
pinia: n,
|
|
1520
1551
|
options: a
|
|
1521
1552
|
}));
|
|
1522
|
-
Object.keys(c || {}).forEach((g) =>
|
|
1553
|
+
Object.keys(c || {}).forEach((g) => _._customProperties.add(g)), ue(_, c);
|
|
1523
1554
|
} else
|
|
1524
|
-
ue(
|
|
1525
|
-
store:
|
|
1555
|
+
ue(_, l.run(() => u({
|
|
1556
|
+
store: _,
|
|
1526
1557
|
app: n._a,
|
|
1527
1558
|
pinia: n,
|
|
1528
1559
|
options: a
|
|
1529
1560
|
})));
|
|
1530
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1561
|
+
}), process.env.NODE_ENV !== "production" && _.$state && typeof _.$state == "object" && typeof _.$state.constructor == "function" && !_.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1531
1562
|
state: () => new MyClass()
|
|
1532
|
-
Found in store "${
|
|
1563
|
+
Found in store "${_.$id}".`), L && r && o.hydrate && o.hydrate(_.$state, L), d = !0, w = !0, _;
|
|
1533
1564
|
}
|
|
1534
1565
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1535
1566
|
// @__NO_SIDE_EFFECTS__
|
|
1536
|
-
function
|
|
1567
|
+
function ls(e, t, o) {
|
|
1537
1568
|
let n, s;
|
|
1538
|
-
const r = typeof
|
|
1539
|
-
n = e, s = r ?
|
|
1569
|
+
const r = typeof t == "function";
|
|
1570
|
+
n = e, s = r ? o : t;
|
|
1540
1571
|
function l(a, i) {
|
|
1541
1572
|
const d = _o();
|
|
1542
1573
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1543
1574
|
// pinia instance with getActivePinia()
|
|
1544
|
-
(process.env.NODE_ENV === "test" && Ge && Ge._testing ? null : a) || (d ? go(qt, null) : null), a &&
|
|
1575
|
+
(process.env.NODE_ENV === "test" && Ge && Ge._testing ? null : a) || (d ? go(qt, null) : null), a && qe(a), process.env.NODE_ENV !== "production" && !Ge)
|
|
1545
1576
|
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
1577
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1547
1578
|
This will fail in production.`);
|
|
1548
|
-
a = Ge, a._s.has(n) || (r ? dt(n,
|
|
1549
|
-
const
|
|
1579
|
+
a = Ge, a._s.has(n) || (r ? dt(n, t, s, a) : Pt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1580
|
+
const w = a._s.get(n);
|
|
1550
1581
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1551
|
-
const
|
|
1552
|
-
i._hotUpdate(
|
|
1582
|
+
const y = "__hot:" + n, M = r ? dt(y, t, s, a, !0) : Pt(y, ue({}, s), a, !0);
|
|
1583
|
+
i._hotUpdate(M), delete a.state.value[y], a._s.delete(y);
|
|
1553
1584
|
}
|
|
1554
1585
|
if (process.env.NODE_ENV !== "production" && Ie) {
|
|
1555
|
-
const
|
|
1556
|
-
if (
|
|
1586
|
+
const y = vo();
|
|
1587
|
+
if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1557
1588
|
!i) {
|
|
1558
|
-
const
|
|
1559
|
-
D[n] =
|
|
1589
|
+
const M = y.proxy, D = "_pStores" in M ? M._pStores : M._pStores = {};
|
|
1590
|
+
D[n] = w;
|
|
1560
1591
|
}
|
|
1561
1592
|
}
|
|
1562
|
-
return
|
|
1593
|
+
return w;
|
|
1563
1594
|
}
|
|
1564
1595
|
return l.$id = n, l;
|
|
1565
1596
|
}
|
|
1566
|
-
const
|
|
1567
|
-
function
|
|
1568
|
-
if (e === "__proto__" || e === "constructor" &&
|
|
1569
|
-
|
|
1597
|
+
const is = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, cs = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, us = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
1598
|
+
function ds(e, t) {
|
|
1599
|
+
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
1600
|
+
ps(e);
|
|
1570
1601
|
return;
|
|
1571
1602
|
}
|
|
1572
|
-
return
|
|
1603
|
+
return t;
|
|
1573
1604
|
}
|
|
1574
|
-
function
|
|
1605
|
+
function ps(e) {
|
|
1575
1606
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
1576
1607
|
}
|
|
1577
|
-
function
|
|
1608
|
+
function fs(e, t = {}) {
|
|
1578
1609
|
if (typeof e != "string")
|
|
1579
1610
|
return e;
|
|
1580
|
-
const
|
|
1611
|
+
const o = e.trim();
|
|
1581
1612
|
if (
|
|
1582
1613
|
// eslint-disable-next-line unicorn/prefer-at
|
|
1583
1614
|
e[0] === '"' && e.endsWith('"') && !e.includes("\\")
|
|
1584
1615
|
)
|
|
1585
|
-
return
|
|
1586
|
-
if (
|
|
1587
|
-
const n =
|
|
1616
|
+
return o.slice(1, -1);
|
|
1617
|
+
if (o.length <= 9) {
|
|
1618
|
+
const n = o.toLowerCase();
|
|
1588
1619
|
if (n === "true")
|
|
1589
1620
|
return !0;
|
|
1590
1621
|
if (n === "false")
|
|
@@ -1600,120 +1631,120 @@ function cs(e, o = {}) {
|
|
|
1600
1631
|
if (n === "-infinity")
|
|
1601
1632
|
return Number.NEGATIVE_INFINITY;
|
|
1602
1633
|
}
|
|
1603
|
-
if (!
|
|
1604
|
-
if (
|
|
1634
|
+
if (!us.test(e)) {
|
|
1635
|
+
if (t.strict)
|
|
1605
1636
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
1606
1637
|
return e;
|
|
1607
1638
|
}
|
|
1608
1639
|
try {
|
|
1609
|
-
if (
|
|
1610
|
-
if (
|
|
1640
|
+
if (is.test(e) || cs.test(e)) {
|
|
1641
|
+
if (t.strict)
|
|
1611
1642
|
throw new Error("[destr] Possible prototype pollution");
|
|
1612
|
-
return JSON.parse(e,
|
|
1643
|
+
return JSON.parse(e, ds);
|
|
1613
1644
|
}
|
|
1614
1645
|
return JSON.parse(e);
|
|
1615
1646
|
} catch (n) {
|
|
1616
|
-
if (
|
|
1647
|
+
if (t.strict)
|
|
1617
1648
|
throw n;
|
|
1618
1649
|
return e;
|
|
1619
1650
|
}
|
|
1620
1651
|
}
|
|
1621
|
-
function
|
|
1652
|
+
function ms(e, t) {
|
|
1622
1653
|
if (e == null)
|
|
1623
1654
|
return;
|
|
1624
|
-
let
|
|
1625
|
-
for (let n = 0; n <
|
|
1626
|
-
if (
|
|
1655
|
+
let o = e;
|
|
1656
|
+
for (let n = 0; n < t.length; n++) {
|
|
1657
|
+
if (o == null || o[t[n]] == null)
|
|
1627
1658
|
return;
|
|
1628
|
-
|
|
1659
|
+
o = o[t[n]];
|
|
1629
1660
|
}
|
|
1630
|
-
return
|
|
1661
|
+
return o;
|
|
1631
1662
|
}
|
|
1632
|
-
function _t(e,
|
|
1633
|
-
if (
|
|
1634
|
-
return
|
|
1635
|
-
const n =
|
|
1636
|
-
return
|
|
1637
|
-
typeof e != "object" || e === null || !Object.prototype.hasOwnProperty.call(e, n) ? Number.isInteger(Number(
|
|
1638
|
-
|
|
1639
|
-
Array.prototype.slice.call(
|
|
1640
|
-
)), Number.isInteger(Number(n)) && Array.isArray(e) ? e.slice()[n] : Object.assign({}, e, { [n]:
|
|
1641
|
-
}
|
|
1642
|
-
function to(e,
|
|
1643
|
-
if (e == null ||
|
|
1663
|
+
function _t(e, t, o) {
|
|
1664
|
+
if (o.length === 0)
|
|
1665
|
+
return t;
|
|
1666
|
+
const n = o[0];
|
|
1667
|
+
return o.length > 1 && (t = _t(
|
|
1668
|
+
typeof e != "object" || e === null || !Object.prototype.hasOwnProperty.call(e, n) ? Number.isInteger(Number(o[1])) ? [] : {} : e[n],
|
|
1669
|
+
t,
|
|
1670
|
+
Array.prototype.slice.call(o, 1)
|
|
1671
|
+
)), Number.isInteger(Number(n)) && Array.isArray(e) ? e.slice()[n] : Object.assign({}, e, { [n]: t });
|
|
1672
|
+
}
|
|
1673
|
+
function to(e, t) {
|
|
1674
|
+
if (e == null || t.length === 0)
|
|
1644
1675
|
return e;
|
|
1645
|
-
if (
|
|
1676
|
+
if (t.length === 1) {
|
|
1646
1677
|
if (e == null)
|
|
1647
1678
|
return e;
|
|
1648
|
-
if (Number.isInteger(
|
|
1649
|
-
return Array.prototype.slice.call(e, 0).splice(
|
|
1650
|
-
const
|
|
1679
|
+
if (Number.isInteger(t[0]) && Array.isArray(e))
|
|
1680
|
+
return Array.prototype.slice.call(e, 0).splice(t[0], 1);
|
|
1681
|
+
const o = {};
|
|
1651
1682
|
for (const n in e)
|
|
1652
|
-
|
|
1653
|
-
return delete t[
|
|
1683
|
+
o[n] = e[n];
|
|
1684
|
+
return delete o[t[0]], o;
|
|
1654
1685
|
}
|
|
1655
|
-
if (e[
|
|
1656
|
-
if (Number.isInteger(
|
|
1686
|
+
if (e[t[0]] == null) {
|
|
1687
|
+
if (Number.isInteger(t[0]) && Array.isArray(e))
|
|
1657
1688
|
return Array.prototype.concat.call([], e);
|
|
1658
|
-
const
|
|
1689
|
+
const o = {};
|
|
1659
1690
|
for (const n in e)
|
|
1660
|
-
|
|
1661
|
-
return
|
|
1691
|
+
o[n] = e[n];
|
|
1692
|
+
return o;
|
|
1662
1693
|
}
|
|
1663
1694
|
return _t(
|
|
1664
1695
|
e,
|
|
1665
1696
|
to(
|
|
1666
|
-
e[
|
|
1667
|
-
Array.prototype.slice.call(
|
|
1697
|
+
e[t[0]],
|
|
1698
|
+
Array.prototype.slice.call(t, 1)
|
|
1668
1699
|
),
|
|
1669
|
-
[
|
|
1700
|
+
[t[0]]
|
|
1670
1701
|
);
|
|
1671
1702
|
}
|
|
1672
|
-
function oo(e,
|
|
1673
|
-
return
|
|
1703
|
+
function oo(e, t) {
|
|
1704
|
+
return t.map((o) => o.split(".")).map((o) => [o, ms(e, o)]).filter((o) => o[1] !== void 0).reduce((o, n) => _t(o, n[1], n[0]), {});
|
|
1674
1705
|
}
|
|
1675
|
-
function no(e,
|
|
1676
|
-
return
|
|
1706
|
+
function no(e, t) {
|
|
1707
|
+
return t.map((o) => o.split(".")).reduce((o, n) => to(o, n), e);
|
|
1677
1708
|
}
|
|
1678
1709
|
function It(e, {
|
|
1679
|
-
storage:
|
|
1680
|
-
serializer:
|
|
1710
|
+
storage: t,
|
|
1711
|
+
serializer: o,
|
|
1681
1712
|
key: n,
|
|
1682
1713
|
debug: s,
|
|
1683
1714
|
pick: r,
|
|
1684
1715
|
omit: l,
|
|
1685
1716
|
beforeHydrate: a,
|
|
1686
1717
|
afterHydrate: i
|
|
1687
|
-
}, d,
|
|
1718
|
+
}, d, w = !0) {
|
|
1688
1719
|
try {
|
|
1689
|
-
|
|
1690
|
-
const
|
|
1691
|
-
if (
|
|
1692
|
-
const
|
|
1720
|
+
w && (a == null || a(d));
|
|
1721
|
+
const y = t.getItem(n);
|
|
1722
|
+
if (y) {
|
|
1723
|
+
const M = o.deserialize(y), D = r ? oo(M, r) : M, L = l ? no(D, l) : D;
|
|
1693
1724
|
e.$patch(L);
|
|
1694
1725
|
}
|
|
1695
|
-
|
|
1696
|
-
} catch (
|
|
1697
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1726
|
+
w && (i == null || i(d));
|
|
1727
|
+
} catch (y) {
|
|
1728
|
+
s && console.error("[pinia-plugin-persistedstate]", y);
|
|
1698
1729
|
}
|
|
1699
1730
|
}
|
|
1700
1731
|
function Nt(e, {
|
|
1701
|
-
storage:
|
|
1702
|
-
serializer:
|
|
1732
|
+
storage: t,
|
|
1733
|
+
serializer: o,
|
|
1703
1734
|
key: n,
|
|
1704
1735
|
debug: s,
|
|
1705
1736
|
pick: r,
|
|
1706
1737
|
omit: l
|
|
1707
1738
|
}) {
|
|
1708
1739
|
try {
|
|
1709
|
-
const a = r ? oo(e, r) : e, i = l ? no(a, l) : a, d =
|
|
1710
|
-
|
|
1740
|
+
const a = r ? oo(e, r) : e, i = l ? no(a, l) : a, d = o.serialize(i);
|
|
1741
|
+
t.setItem(n, d);
|
|
1711
1742
|
} catch (a) {
|
|
1712
1743
|
s && console.error("[pinia-plugin-persistedstate]", a);
|
|
1713
1744
|
}
|
|
1714
1745
|
}
|
|
1715
|
-
function
|
|
1716
|
-
const { pinia: n, store: s, options: { persist: r =
|
|
1746
|
+
function hs(e, t, o) {
|
|
1747
|
+
const { pinia: n, store: s, options: { persist: r = o } } = e;
|
|
1717
1748
|
if (!r)
|
|
1718
1749
|
return;
|
|
1719
1750
|
if (!(s.$id in n.state.value)) {
|
|
@@ -1721,7 +1752,7 @@ function ds(e, o, t) {
|
|
|
1721
1752
|
i && Promise.resolve().then(() => i.$persist());
|
|
1722
1753
|
return;
|
|
1723
1754
|
}
|
|
1724
|
-
const a = (Array.isArray(r) ? r : r === !0 ? [{}] : [r]).map(
|
|
1755
|
+
const a = (Array.isArray(r) ? r : r === !0 ? [{}] : [r]).map(t);
|
|
1725
1756
|
s.$hydrate = ({ runHooks: i = !0 } = {}) => {
|
|
1726
1757
|
a.forEach((d) => {
|
|
1727
1758
|
It(s, d, e, i);
|
|
@@ -1732,77 +1763,77 @@ function ds(e, o, t) {
|
|
|
1732
1763
|
});
|
|
1733
1764
|
}, a.forEach((i) => {
|
|
1734
1765
|
It(s, i, e), s.$subscribe(
|
|
1735
|
-
(d,
|
|
1766
|
+
(d, w) => Nt(w, i),
|
|
1736
1767
|
{ detached: !0 }
|
|
1737
1768
|
);
|
|
1738
1769
|
});
|
|
1739
1770
|
}
|
|
1740
|
-
function
|
|
1741
|
-
return function(
|
|
1742
|
-
var
|
|
1743
|
-
|
|
1744
|
-
|
|
1771
|
+
function _s(e = {}) {
|
|
1772
|
+
return function(t) {
|
|
1773
|
+
var o;
|
|
1774
|
+
hs(
|
|
1775
|
+
t,
|
|
1745
1776
|
(n) => {
|
|
1746
|
-
var s, r, l, a, i, d,
|
|
1777
|
+
var s, r, l, a, i, d, w;
|
|
1747
1778
|
return {
|
|
1748
|
-
key: (e.key ? e.key : (
|
|
1779
|
+
key: (e.key ? e.key : (y) => y)((s = n.key) != null ? s : t.store.$id),
|
|
1749
1780
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1750
1781
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1751
|
-
serialize: (
|
|
1752
|
-
deserialize: (
|
|
1782
|
+
serialize: (y) => JSON.stringify(y),
|
|
1783
|
+
deserialize: (y) => fs(y)
|
|
1753
1784
|
},
|
|
1754
|
-
storage: (
|
|
1785
|
+
storage: (w = (d = n.storage) != null ? d : e.storage) != null ? w : window.localStorage,
|
|
1755
1786
|
beforeHydrate: n.beforeHydrate,
|
|
1756
1787
|
afterHydrate: n.afterHydrate,
|
|
1757
1788
|
pick: n.pick,
|
|
1758
1789
|
omit: n.omit
|
|
1759
1790
|
};
|
|
1760
1791
|
},
|
|
1761
|
-
(
|
|
1792
|
+
(o = e.auto) != null ? o : !1
|
|
1762
1793
|
);
|
|
1763
1794
|
};
|
|
1764
1795
|
}
|
|
1765
|
-
var
|
|
1766
|
-
const gt =
|
|
1767
|
-
gt.use(
|
|
1768
|
-
const so = /* @__PURE__ */
|
|
1796
|
+
var gs = _s();
|
|
1797
|
+
const gt = ns();
|
|
1798
|
+
gt.use(gs);
|
|
1799
|
+
const so = /* @__PURE__ */ ls("console", {
|
|
1769
1800
|
state: () => ({
|
|
1770
1801
|
menu: {
|
|
1771
1802
|
collapsed: !0
|
|
1772
1803
|
}
|
|
1773
1804
|
}),
|
|
1774
1805
|
persist: !0
|
|
1775
|
-
}),
|
|
1806
|
+
}), vs = {
|
|
1776
1807
|
key: 0,
|
|
1777
1808
|
class: "menu-wrapper"
|
|
1778
|
-
},
|
|
1809
|
+
}, bs = /* @__PURE__ */ _e({
|
|
1779
1810
|
__name: "SideMenu",
|
|
1780
1811
|
props: {
|
|
1781
1812
|
menuCollapsed: { type: Boolean }
|
|
1782
1813
|
},
|
|
1783
1814
|
emits: ["update:menuCollapsed"],
|
|
1784
|
-
setup(e, { emit:
|
|
1815
|
+
setup(e, { emit: t }) {
|
|
1785
1816
|
so(gt);
|
|
1786
|
-
const
|
|
1817
|
+
const o = He(), n = De(() => {
|
|
1787
1818
|
var r;
|
|
1788
|
-
const s =
|
|
1819
|
+
const s = o.meta.activeMenu;
|
|
1789
1820
|
if (s === "{model}") {
|
|
1790
|
-
let l =
|
|
1791
|
-
return "/" + ((r =
|
|
1821
|
+
let l = o.params.app ? `${o.params.app}/${o.params.model}` : o.params.model;
|
|
1822
|
+
return "/" + ((r = Mn[o.params.model]) != null ? r : l);
|
|
1792
1823
|
} else
|
|
1793
1824
|
return s;
|
|
1794
1825
|
});
|
|
1795
1826
|
return (s, r) => {
|
|
1796
|
-
const l =
|
|
1797
|
-
return k(Ct).length > 0 ? (p(),
|
|
1798
|
-
|
|
1827
|
+
const l = x("el-menu");
|
|
1828
|
+
return k(Ct).length > 0 ? (p(), U("div", vs, [
|
|
1829
|
+
h(l, {
|
|
1799
1830
|
class: "menu",
|
|
1800
1831
|
"default-active": n.value,
|
|
1801
1832
|
"default-openeds": ["table"],
|
|
1802
1833
|
router: ""
|
|
1803
1834
|
}, {
|
|
1804
1835
|
default: m(() => [
|
|
1805
|
-
(p(!0),
|
|
1836
|
+
(p(!0), U(oe, null, ce(k(Ct), (a) => (p(), V(Nn, {
|
|
1806
1837
|
key: a.path,
|
|
1807
1838
|
menu: a
|
|
1808
1839
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -1812,36 +1843,36 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1812
1843
|
])) : B("", !0);
|
|
1813
1844
|
};
|
|
1814
1845
|
}
|
|
1815
|
-
}), ro = /* @__PURE__ */ pe(
|
|
1846
|
+
}), ro = /* @__PURE__ */ pe(bs, [["__scopeId", "data-v-ea5f1473"]]), ys = { class: "container" }, ws = /* @__PURE__ */ _e({
|
|
1816
1847
|
__name: "ConsoleApp",
|
|
1817
1848
|
props: {
|
|
1818
1849
|
title: {},
|
|
1819
1850
|
helpDocUrl: {}
|
|
1820
1851
|
},
|
|
1821
1852
|
setup(e) {
|
|
1822
|
-
const
|
|
1853
|
+
const t = so(gt), o = He(), n = N(t.menu.collapsed), s = N(), r = e;
|
|
1823
1854
|
return (l, a) => {
|
|
1824
|
-
const i =
|
|
1825
|
-
return p(),
|
|
1826
|
-
k(
|
|
1855
|
+
const i = x("router-view"), d = x("el-scrollbar");
|
|
1856
|
+
return p(), U(oe, null, [
|
|
1857
|
+
k(o).query.embedded !== "true" ? (p(), V(Gt, {
|
|
1827
1858
|
key: 0,
|
|
1828
1859
|
title: r.title,
|
|
1829
1860
|
helpDocUrl: r.helpDocUrl
|
|
1830
1861
|
}, null, 8, ["title", "helpDocUrl"])) : B("", !0),
|
|
1831
|
-
|
|
1832
|
-
k(
|
|
1862
|
+
b("div", ys, [
|
|
1863
|
+
k(o).query.embedded !== "true" ? (p(), V(ro, {
|
|
1833
1864
|
key: 0,
|
|
1834
1865
|
menuCollapsed: n.value,
|
|
1835
|
-
"onUpdate:menuCollapsed": a[0] || (a[0] = (
|
|
1866
|
+
"onUpdate:menuCollapsed": a[0] || (a[0] = (w) => n.value = w)
|
|
1836
1867
|
}, null, 8, ["menuCollapsed"])) : B("", !0),
|
|
1837
|
-
|
|
1868
|
+
h(d, { class: "main-scrollbar" }, {
|
|
1838
1869
|
default: m(() => [
|
|
1839
|
-
|
|
1870
|
+
b("main", {
|
|
1840
1871
|
ref_key: "mainWrapperRef",
|
|
1841
1872
|
ref: s,
|
|
1842
1873
|
class: "main-wrapper"
|
|
1843
1874
|
}, [
|
|
1844
|
-
|
|
1875
|
+
h(i)
|
|
1845
1876
|
], 512)
|
|
1846
1877
|
]),
|
|
1847
1878
|
_: 1
|
|
@@ -1850,33 +1881,33 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1850
1881
|
], 64);
|
|
1851
1882
|
};
|
|
1852
1883
|
}
|
|
1853
|
-
}),
|
|
1884
|
+
}), Ss = {
|
|
1854
1885
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1855
1886
|
width: "800",
|
|
1856
1887
|
height: "800"
|
|
1857
1888
|
};
|
|
1858
|
-
function
|
|
1859
|
-
return p(),
|
|
1889
|
+
function Cs(e, t) {
|
|
1890
|
+
return p(), U("svg", Ss, t[0] || (t[0] = [
|
|
1860
1891
|
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
1892
|
]));
|
|
1862
1893
|
}
|
|
1863
|
-
const
|
|
1864
|
-
function
|
|
1865
|
-
const
|
|
1866
|
-
return p(),
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
default: m(() =>
|
|
1894
|
+
const ks = { render: Cs }, Os = {}, xs = { class: "wrapper" }, Es = { class: "content" };
|
|
1895
|
+
function $s(e, t) {
|
|
1896
|
+
const o = x("el-button");
|
|
1897
|
+
return p(), U("div", xs, [
|
|
1898
|
+
t[4] || (t[4] = b("img", { src: ks }, null, -1)),
|
|
1899
|
+
b("div", Es, [
|
|
1900
|
+
t[3] || (t[3] = b("h1", null, "You have no permission to access the page.", -1)),
|
|
1901
|
+
h(o, { type: "primary" }, {
|
|
1902
|
+
default: m(() => t[1] || (t[1] = [
|
|
1872
1903
|
Q("Apply")
|
|
1873
1904
|
])),
|
|
1874
1905
|
_: 1
|
|
1875
1906
|
}),
|
|
1876
|
-
|
|
1877
|
-
onClick:
|
|
1907
|
+
h(o, {
|
|
1908
|
+
onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
|
|
1878
1909
|
}, {
|
|
1879
|
-
default: m(() =>
|
|
1910
|
+
default: m(() => t[2] || (t[2] = [
|
|
1880
1911
|
Q("Go Back")
|
|
1881
1912
|
])),
|
|
1882
1913
|
_: 1
|
|
@@ -1884,43 +1915,43 @@ function Os(e, o) {
|
|
|
1884
1915
|
])
|
|
1885
1916
|
]);
|
|
1886
1917
|
}
|
|
1887
|
-
const
|
|
1888
|
-
function
|
|
1889
|
-
const
|
|
1890
|
-
return p(), V(
|
|
1918
|
+
const Ps = /* @__PURE__ */ pe(Os, [["render", $s], ["__scopeId", "data-v-0155b361"]]), Is = {};
|
|
1919
|
+
function Ns(e, t) {
|
|
1920
|
+
const o = x("router-view");
|
|
1921
|
+
return p(), V(o);
|
|
1891
1922
|
}
|
|
1892
|
-
const
|
|
1923
|
+
const Ms = /* @__PURE__ */ pe(Is, [["render", Ns]]), As = { class: "card-wrapper" }, Vs = ["onClick"], Us = { class: "card-inner-wrapper" }, Ts = { class: "card-title" }, Ds = { class: "icon" }, Rs = /* @__PURE__ */ _e({
|
|
1893
1924
|
__name: "TabCard",
|
|
1894
1925
|
props: {
|
|
1895
1926
|
cards: {},
|
|
1896
1927
|
tableRef: {}
|
|
1897
1928
|
},
|
|
1898
1929
|
setup(e) {
|
|
1899
|
-
const { t
|
|
1930
|
+
const { t } = Je(), o = He(), n = st(), s = e, r = N(s.cards[0].key);
|
|
1900
1931
|
function l(a) {
|
|
1901
1932
|
a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
|
|
1902
|
-
path:
|
|
1903
|
-
query: wt(
|
|
1933
|
+
path: o.path,
|
|
1934
|
+
query: wt(We({}, o.query), { tab: a.key })
|
|
1904
1935
|
}));
|
|
1905
1936
|
}
|
|
1906
1937
|
return pt(() => {
|
|
1907
1938
|
let a;
|
|
1908
|
-
if (
|
|
1939
|
+
if (o.query.tab !== void 0) {
|
|
1909
1940
|
for (let i of s.cards)
|
|
1910
|
-
if (i.key ===
|
|
1941
|
+
if (i.key === o.query.tab) {
|
|
1911
1942
|
r.value = i.key, a = i;
|
|
1912
1943
|
break;
|
|
1913
1944
|
}
|
|
1914
1945
|
}
|
|
1915
|
-
|
|
1946
|
+
Le(() => {
|
|
1916
1947
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
1917
1948
|
});
|
|
1918
1949
|
}), Se(
|
|
1919
1950
|
() => s.cards,
|
|
1920
1951
|
(a) => {
|
|
1921
|
-
if (
|
|
1952
|
+
if (o.query.tab !== void 0) {
|
|
1922
1953
|
for (let i of s.cards)
|
|
1923
|
-
if (i.key ===
|
|
1954
|
+
if (i.key === o.query.tab) {
|
|
1924
1955
|
r.value = i.key;
|
|
1925
1956
|
break;
|
|
1926
1957
|
}
|
|
@@ -1930,51 +1961,51 @@ const $s = /* @__PURE__ */ pe(Es, [["render", xs]]), Ps = { class: "card-wrapper
|
|
|
1930
1961
|
{
|
|
1931
1962
|
deep: !0
|
|
1932
1963
|
}
|
|
1933
|
-
), (a, i) => (p(),
|
|
1934
|
-
(p(!0),
|
|
1935
|
-
class:
|
|
1936
|
-
onClick: (
|
|
1964
|
+
), (a, i) => (p(), U("div", As, [
|
|
1965
|
+
(p(!0), U(oe, null, ce(s.cards, (d) => (p(), U("div", {
|
|
1966
|
+
class: At(["card", { "card-selected": r.value === d.key }]),
|
|
1967
|
+
onClick: (w) => l(d)
|
|
1937
1968
|
}, [
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
d.icon ? (p(), V(
|
|
1969
|
+
b("div", Us, [
|
|
1970
|
+
b("div", Ts, [
|
|
1971
|
+
b("div", Ds, [
|
|
1972
|
+
d.icon ? (p(), V(et(d.icon), {
|
|
1942
1973
|
key: 0,
|
|
1943
1974
|
class: "svg-icon"
|
|
1944
1975
|
})) : B("", !0)
|
|
1945
1976
|
]),
|
|
1946
|
-
|
|
1977
|
+
b("span", {
|
|
1947
1978
|
style: Te({ color: d.disabled ? "#aaa" : "black" })
|
|
1948
|
-
}, R(k(
|
|
1979
|
+
}, R(k(t)(d.label)), 5)
|
|
1949
1980
|
]),
|
|
1950
|
-
|
|
1981
|
+
b("span", null, R(d.count), 1)
|
|
1951
1982
|
])
|
|
1952
|
-
], 10,
|
|
1983
|
+
], 10, Vs))), 256))
|
|
1953
1984
|
]));
|
|
1954
1985
|
}
|
|
1955
|
-
}), ao = /* @__PURE__ */ pe(
|
|
1956
|
-
function
|
|
1957
|
-
switch (
|
|
1986
|
+
}), ao = /* @__PURE__ */ pe(Rs, [["__scopeId", "data-v-047a86e6"]]);
|
|
1987
|
+
function Oe(e, t, o) {
|
|
1988
|
+
switch (t) {
|
|
1958
1989
|
case "POST":
|
|
1959
|
-
return de.post(e,
|
|
1990
|
+
return de.post(e, o);
|
|
1960
1991
|
case "PUT":
|
|
1961
|
-
return de.put(e,
|
|
1992
|
+
return de.put(e, o);
|
|
1962
1993
|
case "DELETE":
|
|
1963
|
-
return de.delete(e + "/" +
|
|
1994
|
+
return de.delete(e + "/" + o);
|
|
1964
1995
|
default:
|
|
1965
|
-
return de.get(e, { params:
|
|
1996
|
+
return de.get(e, { params: o });
|
|
1966
1997
|
}
|
|
1967
1998
|
}
|
|
1968
|
-
const
|
|
1969
|
-
const
|
|
1970
|
-
let
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
}), Object.assign(e,
|
|
1974
|
-
},
|
|
1999
|
+
const Be = (e) => {
|
|
2000
|
+
const t = Object.keys(e);
|
|
2001
|
+
let o = {};
|
|
2002
|
+
t.forEach((n) => {
|
|
2003
|
+
o[n] = void 0;
|
|
2004
|
+
}), Object.assign(e, o);
|
|
2005
|
+
}, Fs = {
|
|
1975
2006
|
key: 1,
|
|
1976
2007
|
class: "view-span"
|
|
1977
|
-
},
|
|
2008
|
+
}, Gs = /* @__PURE__ */ _e({
|
|
1978
2009
|
__name: "FormView",
|
|
1979
2010
|
props: {
|
|
1980
2011
|
id: {},
|
|
@@ -1986,35 +2017,35 @@ const qe = (e) => {
|
|
|
1986
2017
|
afterSubmitFunc: { type: Function }
|
|
1987
2018
|
},
|
|
1988
2019
|
emits: ["update:id"],
|
|
1989
|
-
setup(e, { expose:
|
|
1990
|
-
const { t: n } = tt.global, s = e, r = re({}), l = N(!1), a = N(), i = re({}), d = N(!0),
|
|
2020
|
+
setup(e, { expose: t, emit: o }) {
|
|
2021
|
+
const { t: n } = tt.global, s = e, r = re({}), l = N(!1), a = N(), i = re({}), d = N(!0), w = (C) => s.mode === "view" && (K(C, void 0) || K(C, "input") || K(C, "select") || K(C, "password")), y = De(() => s.model.fields ? s.model.fields.filter(
|
|
1991
2022
|
(C) => {
|
|
1992
|
-
var
|
|
1993
|
-
let
|
|
2023
|
+
var A, u, c, g;
|
|
2024
|
+
let _ = C.visible !== !1 && ((A = C.formItemAttributes) == null ? void 0 : A.visible) !== !1;
|
|
1994
2025
|
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")
|
|
1995
2026
|
return !1;
|
|
1996
2027
|
let P = (g = C.formItemAttributes) == null ? void 0 : g.showCondition;
|
|
1997
|
-
return P && P.field && P.value ? r[P.field] === P.value :
|
|
2028
|
+
return P && P.field && P.value ? r[P.field] === P.value : _;
|
|
1998
2029
|
}
|
|
1999
2030
|
) : []);
|
|
2000
2031
|
Se([() => s.id, () => s.sessionId], () => {
|
|
2001
2032
|
D();
|
|
2002
2033
|
});
|
|
2003
|
-
function
|
|
2034
|
+
function M() {
|
|
2004
2035
|
const C = s.model.fields;
|
|
2005
|
-
let
|
|
2036
|
+
let _ = {};
|
|
2006
2037
|
C == null || C.forEach((P) => {
|
|
2007
|
-
var
|
|
2008
|
-
if (r[P.prop] = null, P.visible !== !1 && ((
|
|
2038
|
+
var A, u, c, g, E, F, q, S, T;
|
|
2039
|
+
if (r[P.prop] = null, P.visible !== !1 && ((A = P.formItemAttributes) == null ? void 0 : A.visible) !== !1) {
|
|
2009
2040
|
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
2041
|
let W = (g = P.formItemAttributes) == null ? void 0 : g.validationRule;
|
|
2011
|
-
W !== void 0 && (
|
|
2042
|
+
W !== void 0 && (_[P.prop] = W), Object.assign(i, _);
|
|
2012
2043
|
}
|
|
2013
|
-
const v = P.formItemAttributes, f = v == null ? void 0 : v.type, O = (
|
|
2044
|
+
const v = P.formItemAttributes, f = v == null ? void 0 : v.type, O = (E = v == null ? void 0 : v.selectAttributes) == null ? void 0 : E.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;
|
|
2014
2045
|
if (f === "select" && O) {
|
|
2015
2046
|
let W = O;
|
|
2016
|
-
const ae = (
|
|
2017
|
-
ae && (W = `${W}?${ae}=${s.id}`), fe ||
|
|
2047
|
+
const ae = (S = v == null ? void 0 : v.selectAttributes) == null ? void 0 : S.queryParamName, fe = (T = v == null ? void 0 : v.selectAttributes) == null ? void 0 : T.queryParamValueField;
|
|
2048
|
+
ae && (W = `${W}?${ae}=${s.id}`), fe || Oe(W, "GET", {}).then(({ data: le }) => {
|
|
2018
2049
|
var ie;
|
|
2019
2050
|
if ((ie = P.formItemAttributes) != null && ie.selectAttributes) {
|
|
2020
2051
|
let Z = [];
|
|
@@ -2030,18 +2061,18 @@ const qe = (e) => {
|
|
|
2030
2061
|
}
|
|
2031
2062
|
function D() {
|
|
2032
2063
|
var C;
|
|
2033
|
-
console.log("init form", s.id, s.model), $(), d.value = (C = s.model.useI18n) != null ? C : !0,
|
|
2034
|
-
|
|
2064
|
+
console.log("init form", s.id, s.model), $(), d.value = (C = s.model.useI18n) != null ? C : !0, M(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Oe(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: _ }) => {
|
|
2065
|
+
Be(r), Object.assign(r, _.data), l.value = !1;
|
|
2035
2066
|
}));
|
|
2036
2067
|
}
|
|
2037
2068
|
function L() {
|
|
2038
|
-
return new Promise((C,
|
|
2039
|
-
var
|
|
2040
|
-
((u = (
|
|
2069
|
+
return new Promise((C, _) => {
|
|
2070
|
+
var A, u, c, g;
|
|
2071
|
+
((u = (A = s.model.formConfig) == null ? void 0 : A.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
2072
|
let P = s.mode === "create" ? "POST" : "PUT";
|
|
2042
|
-
s.model.api &&
|
|
2043
|
-
var F, q,
|
|
2044
|
-
|
|
2073
|
+
s.model.api && Oe(s.model.api, P, r).then(({ data: E }) => {
|
|
2074
|
+
var F, q, S, T;
|
|
2075
|
+
E.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((q = (F = s.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : q.afterSubmit) !== void 0 && ((T = (S = s.model.formConfig) == null ? void 0 : S.functions) == null || T.afterSubmit(E.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
|
|
2045
2076
|
});
|
|
2046
2077
|
});
|
|
2047
2078
|
}
|
|
@@ -2053,13 +2084,13 @@ const qe = (e) => {
|
|
|
2053
2084
|
return C.label ? d ? n(C.label) : C.label : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase();
|
|
2054
2085
|
}
|
|
2055
2086
|
function I(C) {
|
|
2056
|
-
var
|
|
2087
|
+
var _, P, A, u;
|
|
2057
2088
|
if (C) {
|
|
2058
2089
|
if (K(C, "select")) {
|
|
2059
|
-
const c = (P = (
|
|
2090
|
+
const c = (P = (_ = C.tableColumnAttributes) == null ? void 0 : _.functions) == null ? void 0 : P.transformValue;
|
|
2060
2091
|
if (c)
|
|
2061
2092
|
return c(r[C.prop]);
|
|
2062
|
-
const g = (u = (
|
|
2093
|
+
const g = (u = (A = C.formItemAttributes) == null ? void 0 : A.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2063
2094
|
if (g)
|
|
2064
2095
|
return r[g];
|
|
2065
2096
|
}
|
|
@@ -2067,12 +2098,12 @@ const qe = (e) => {
|
|
|
2067
2098
|
}
|
|
2068
2099
|
}
|
|
2069
2100
|
function Y(C) {
|
|
2070
|
-
var
|
|
2071
|
-
return ((
|
|
2101
|
+
var _;
|
|
2102
|
+
return ((_ = C.formItemAttributes) == null ? void 0 : _.updatable) === !1 && s.mode === "update";
|
|
2072
2103
|
}
|
|
2073
|
-
function j(C,
|
|
2074
|
-
var
|
|
2075
|
-
const P = (u = (
|
|
2104
|
+
function j(C, _) {
|
|
2105
|
+
var A, u;
|
|
2106
|
+
const P = (u = (A = _.formItemAttributes) == null ? void 0 : A.type) != null ? u : "input";
|
|
2076
2107
|
switch (C) {
|
|
2077
2108
|
case "input":
|
|
2078
2109
|
return s.mode === "view" ? !1 : P === "input" || P === "password";
|
|
@@ -2082,25 +2113,25 @@ const qe = (e) => {
|
|
|
2082
2113
|
return console.log("Error: unrecognized form component type: ", C), !0;
|
|
2083
2114
|
}
|
|
2084
2115
|
}
|
|
2085
|
-
function K(C,
|
|
2116
|
+
function K(C, _) {
|
|
2086
2117
|
var P;
|
|
2087
|
-
return ((P = C.formItemAttributes) == null ? void 0 : P.type) ===
|
|
2118
|
+
return ((P = C.formItemAttributes) == null ? void 0 : P.type) === _;
|
|
2088
2119
|
}
|
|
2089
2120
|
function ne(C) {
|
|
2090
|
-
var
|
|
2121
|
+
var _;
|
|
2091
2122
|
for (let P of s.model.fields) {
|
|
2092
|
-
const
|
|
2093
|
-
if (!(!P.formItemAttributes || P.formItemAttributes.type !== "select" || !
|
|
2094
|
-
const u =
|
|
2123
|
+
const A = (_ = P.formItemAttributes) == null ? void 0 : _.selectAttributes;
|
|
2124
|
+
if (!(!P.formItemAttributes || P.formItemAttributes.type !== "select" || !A || !A.queryParamValueField) && A.queryParamValueField === C.prop) {
|
|
2125
|
+
const u = A.api;
|
|
2095
2126
|
if (u) {
|
|
2096
2127
|
let c = u;
|
|
2097
|
-
const g =
|
|
2098
|
-
g && (c = `${c}?${g}=${r[
|
|
2099
|
-
if (
|
|
2128
|
+
const g = A.queryParamName;
|
|
2129
|
+
g && (c = `${c}?${g}=${r[A.queryParamValueField]}`), Oe(c, "GET", {}).then(({ data: E }) => {
|
|
2130
|
+
if (A) {
|
|
2100
2131
|
let F = [];
|
|
2101
|
-
Array.isArray(
|
|
2102
|
-
value:
|
|
2103
|
-
label:
|
|
2132
|
+
Array.isArray(E.data) ? F = E.data : E.data.list && Array.isArray(E.data.list) && (F = E.data.list), A.options = F.map((q) => ({
|
|
2133
|
+
value: A.valueMappingField ? q[A.valueMappingField] : q.value,
|
|
2134
|
+
label: A.labelMappingField ? q[A.labelMappingField] : q.label
|
|
2104
2135
|
}));
|
|
2105
2136
|
}
|
|
2106
2137
|
});
|
|
@@ -2110,13 +2141,13 @@ const qe = (e) => {
|
|
|
2110
2141
|
}
|
|
2111
2142
|
return pt(() => {
|
|
2112
2143
|
D();
|
|
2113
|
-
}),
|
|
2144
|
+
}), t({
|
|
2114
2145
|
refresh: D,
|
|
2115
2146
|
reset: $,
|
|
2116
2147
|
submit: L,
|
|
2117
2148
|
formData: r
|
|
2118
|
-
}), (C,
|
|
2119
|
-
const P =
|
|
2149
|
+
}), (C, _) => {
|
|
2150
|
+
const P = x("el-input"), A = x("el-switch"), u = x("el-date-picker"), c = x("el-option"), g = x("el-select"), E = x("el-form-item"), F = x("el-form"), q = Vt("loading");
|
|
2120
2151
|
return Ut((p(), V(F, {
|
|
2121
2152
|
ref_key: "formRef",
|
|
2122
2153
|
ref: a,
|
|
@@ -2128,46 +2159,46 @@ const qe = (e) => {
|
|
|
2128
2159
|
inline: !s.disableInline
|
|
2129
2160
|
}, {
|
|
2130
2161
|
default: m(() => [
|
|
2131
|
-
(p(!0),
|
|
2162
|
+
(p(!0), U(oe, null, ce(y.value, (S) => (p(), V(E, {
|
|
2132
2163
|
class: "form-item",
|
|
2133
2164
|
style: Te({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2134
|
-
prop:
|
|
2135
|
-
label: z(
|
|
2165
|
+
prop: S.prop,
|
|
2166
|
+
label: z(S)
|
|
2136
2167
|
}, {
|
|
2137
2168
|
default: m(() => {
|
|
2138
|
-
var
|
|
2169
|
+
var T;
|
|
2139
2170
|
return [
|
|
2140
|
-
j("input",
|
|
2171
|
+
j("input", S) ? (p(), V(P, {
|
|
2141
2172
|
key: 0,
|
|
2142
|
-
type: K(
|
|
2143
|
-
modelValue: r[
|
|
2144
|
-
"onUpdate:modelValue": (v) => r[
|
|
2145
|
-
placeholder: (
|
|
2146
|
-
disabled: Y(
|
|
2173
|
+
type: K(S, "password") ? "password" : "text",
|
|
2174
|
+
modelValue: r[S.prop],
|
|
2175
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v,
|
|
2176
|
+
placeholder: (T = S.formItemAttributes) == null ? void 0 : T.placeholder,
|
|
2177
|
+
disabled: Y(S)
|
|
2147
2178
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : B("", !0),
|
|
2148
|
-
|
|
2149
|
-
K(
|
|
2179
|
+
w(S) ? (p(), U("span", Fs, R(I(S)), 1)) : B("", !0),
|
|
2180
|
+
K(S, "switch") ? (p(), V(A, {
|
|
2150
2181
|
key: 2,
|
|
2151
|
-
modelValue: r[
|
|
2152
|
-
"onUpdate:modelValue": (v) => r[
|
|
2182
|
+
modelValue: r[S.prop],
|
|
2183
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v
|
|
2153
2184
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
|
|
2154
|
-
K(
|
|
2185
|
+
K(S, "datepicker") ? (p(), V(u, {
|
|
2155
2186
|
key: 3,
|
|
2156
2187
|
type: "date",
|
|
2157
|
-
modelValue: r[
|
|
2158
|
-
"onUpdate:modelValue": (v) => r[
|
|
2188
|
+
modelValue: r[S.prop],
|
|
2189
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v
|
|
2159
2190
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
|
|
2160
|
-
K(
|
|
2191
|
+
K(S, "select") && C.mode !== "view" ? (p(), V(g, {
|
|
2161
2192
|
key: 4,
|
|
2162
|
-
modelValue: r[
|
|
2163
|
-
"onUpdate:modelValue": (v) => r[
|
|
2164
|
-
disabled: Y(
|
|
2165
|
-
onChange: (v) => ne(
|
|
2193
|
+
modelValue: r[S.prop],
|
|
2194
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v,
|
|
2195
|
+
disabled: Y(S),
|
|
2196
|
+
onChange: (v) => ne(S)
|
|
2166
2197
|
}, {
|
|
2167
2198
|
default: m(() => {
|
|
2168
2199
|
var v, f;
|
|
2169
2200
|
return [
|
|
2170
|
-
(p(!0),
|
|
2201
|
+
(p(!0), U(oe, null, ce((f = (v = S.formItemAttributes) == null ? void 0 : v.selectAttributes) == null ? void 0 : f.options, (O) => (p(), V(c, {
|
|
2171
2202
|
value: O.value,
|
|
2172
2203
|
label: O.label
|
|
2173
2204
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -2186,10 +2217,10 @@ const qe = (e) => {
|
|
|
2186
2217
|
]);
|
|
2187
2218
|
};
|
|
2188
2219
|
}
|
|
2189
|
-
}), lo = /* @__PURE__ */ pe(
|
|
2220
|
+
}), lo = /* @__PURE__ */ pe(Gs, [["__scopeId", "data-v-e5e9f7e1"]]), Ls = { class: "console-dialog__body" }, js = {
|
|
2190
2221
|
key: 0,
|
|
2191
2222
|
class: "process-view"
|
|
2192
|
-
},
|
|
2223
|
+
}, zs = { class: "operation-button-wrapper" }, io = /* @__PURE__ */ _e({
|
|
2193
2224
|
__name: "FormDialog",
|
|
2194
2225
|
props: {
|
|
2195
2226
|
id: {},
|
|
@@ -2200,8 +2231,8 @@ const qe = (e) => {
|
|
|
2200
2231
|
afterSubmitFunc: { type: Function }
|
|
2201
2232
|
},
|
|
2202
2233
|
emits: ["update:visible", "update:id"],
|
|
2203
|
-
setup(e, { expose:
|
|
2204
|
-
const { t: n } =
|
|
2234
|
+
setup(e, { expose: t, emit: o }) {
|
|
2235
|
+
const { t: n } = Je(), s = e, r = N(0), l = o, a = N();
|
|
2205
2236
|
Se(() => s.visible, () => {
|
|
2206
2237
|
s.visible && r.value++;
|
|
2207
2238
|
});
|
|
@@ -2211,14 +2242,14 @@ const qe = (e) => {
|
|
|
2211
2242
|
function d() {
|
|
2212
2243
|
l("update:visible", !1), a.value.reset();
|
|
2213
2244
|
}
|
|
2214
|
-
function
|
|
2245
|
+
function w() {
|
|
2215
2246
|
a.value.submit();
|
|
2216
2247
|
}
|
|
2217
|
-
return
|
|
2248
|
+
return t({
|
|
2218
2249
|
close: d,
|
|
2219
2250
|
refresh: i
|
|
2220
|
-
}), (
|
|
2221
|
-
const D =
|
|
2251
|
+
}), (y, M) => {
|
|
2252
|
+
const D = x("el-step"), L = x("el-steps"), $ = x("el-button"), z = x("el-dialog");
|
|
2222
2253
|
return p(), V(z, {
|
|
2223
2254
|
class: "console-dialog",
|
|
2224
2255
|
title: "Edit",
|
|
@@ -2230,12 +2261,12 @@ const qe = (e) => {
|
|
|
2230
2261
|
footer: m(() => {
|
|
2231
2262
|
var I;
|
|
2232
2263
|
return [
|
|
2233
|
-
|
|
2264
|
+
b("div", {
|
|
2234
2265
|
class: "dialog-footer",
|
|
2235
2266
|
style: Te({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2236
2267
|
}, [
|
|
2237
|
-
|
|
2238
|
-
(p(!0),
|
|
2268
|
+
b("div", zs, [
|
|
2269
|
+
(p(!0), U(oe, null, ce((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (Y) => (p(), V($, {
|
|
2239
2270
|
onClick: (j) => Y.function(a.value.formData)
|
|
2240
2271
|
}, {
|
|
2241
2272
|
default: m(() => [
|
|
@@ -2244,16 +2275,16 @@ const qe = (e) => {
|
|
|
2244
2275
|
_: 2
|
|
2245
2276
|
}, 1032, ["onClick"]))), 256))
|
|
2246
2277
|
]),
|
|
2247
|
-
|
|
2248
|
-
|
|
2278
|
+
b("div", null, [
|
|
2279
|
+
h($, { onClick: d }, {
|
|
2249
2280
|
default: m(() => [
|
|
2250
2281
|
Q(R(k(n)("common.basic.cancel")), 1)
|
|
2251
2282
|
]),
|
|
2252
2283
|
_: 1
|
|
2253
2284
|
}),
|
|
2254
|
-
|
|
2285
|
+
h($, {
|
|
2255
2286
|
type: "primary",
|
|
2256
|
-
onClick:
|
|
2287
|
+
onClick: w
|
|
2257
2288
|
}, {
|
|
2258
2289
|
default: m(() => [
|
|
2259
2290
|
Q(R(k(n)("common.basic.save")), 1)
|
|
@@ -2265,10 +2296,10 @@ const qe = (e) => {
|
|
|
2265
2296
|
];
|
|
2266
2297
|
}),
|
|
2267
2298
|
default: m(() => [
|
|
2268
|
-
|
|
2269
|
-
|
|
2299
|
+
b("div", Ls, [
|
|
2300
|
+
h(lo, {
|
|
2270
2301
|
class: "form-view",
|
|
2271
|
-
style: Te({ width:
|
|
2302
|
+
style: Te({ width: y.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2272
2303
|
ref_key: "formViewRef",
|
|
2273
2304
|
ref: a,
|
|
2274
2305
|
id: s.id,
|
|
@@ -2279,16 +2310,16 @@ const qe = (e) => {
|
|
|
2279
2310
|
closeDialogFunc: d,
|
|
2280
2311
|
disableInline: s.showProcess
|
|
2281
2312
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2313
|
+
y.showProcess ? (p(), U("div", js, [
|
|
2314
|
+
M[0] || (M[0] = b("h1", null, "流程动态", -1)),
|
|
2315
|
+
h(L, {
|
|
2285
2316
|
style: { height: "90%" },
|
|
2286
2317
|
direction: "vertical",
|
|
2287
2318
|
active: 1
|
|
2288
2319
|
}, {
|
|
2289
2320
|
default: m(() => [
|
|
2290
|
-
|
|
2291
|
-
|
|
2321
|
+
h(D, { title: "Step 1" }),
|
|
2322
|
+
h(D, { title: "Step 2" })
|
|
2292
2323
|
]),
|
|
2293
2324
|
_: 1
|
|
2294
2325
|
})
|
|
@@ -2299,15 +2330,15 @@ const qe = (e) => {
|
|
|
2299
2330
|
}, 8, ["model-value"]);
|
|
2300
2331
|
};
|
|
2301
2332
|
}
|
|
2302
|
-
}),
|
|
2333
|
+
}), qs = { class: "toolbar" }, Bs = { class: "tool-buttons" }, Hs = { class: "tool-buttons" }, Js = { key: 2 }, Ws = /* @__PURE__ */ _e({
|
|
2303
2334
|
__name: "TableView",
|
|
2304
2335
|
props: {
|
|
2305
2336
|
model: {}
|
|
2306
2337
|
},
|
|
2307
|
-
setup(e, { expose:
|
|
2308
|
-
const { t } = tt.global, n = e, s = re([]), r = re({
|
|
2338
|
+
setup(e, { expose: t }) {
|
|
2339
|
+
const { t: o } = tt.global, n = e, s = re([]), r = re({
|
|
2309
2340
|
showPane: !0
|
|
2310
|
-
}), l = N(""), a = N(!0), i = N(!1), d = st(),
|
|
2341
|
+
}), l = N(""), a = N(!0), i = N(!1), d = st(), w = N(""), y = re([]), M = re([]), D = N(), L = N([]), $ = N("create"), z = N(!0), I = N(!1), Y = N(""), j = re({
|
|
2311
2342
|
pageSize: 10,
|
|
2312
2343
|
pageNo: 1,
|
|
2313
2344
|
totalElements: 0
|
|
@@ -2326,7 +2357,7 @@ const qe = (e) => {
|
|
|
2326
2357
|
else if (W && W.length > 0) {
|
|
2327
2358
|
for (let Z of W)
|
|
2328
2359
|
if (G === Z.value) {
|
|
2329
|
-
G =
|
|
2360
|
+
G = o(Z.label);
|
|
2330
2361
|
break;
|
|
2331
2362
|
}
|
|
2332
2363
|
} else if (((ie = f.formItemAttributes) == null ? void 0 : ie.type) === "select") {
|
|
@@ -2347,38 +2378,38 @@ const qe = (e) => {
|
|
|
2347
2378
|
}
|
|
2348
2379
|
function C(f, O) {
|
|
2349
2380
|
var G, X;
|
|
2350
|
-
return f.label ?
|
|
2381
|
+
return f.label ? o(f.label) : (X = (G = f.functions) == null ? void 0 : G.transformLabel) == null ? void 0 : X.call(G, O.$index, O.row);
|
|
2351
2382
|
}
|
|
2352
|
-
function
|
|
2353
|
-
|
|
2383
|
+
function _(f) {
|
|
2384
|
+
Be(n.model), Object.assign(n.model, f);
|
|
2354
2385
|
}
|
|
2355
2386
|
function P() {
|
|
2356
2387
|
var O, G, X;
|
|
2357
2388
|
if (z.value = !0, !n.model || !n.model.api)
|
|
2358
2389
|
return;
|
|
2359
|
-
|
|
2360
|
-
let f =
|
|
2361
|
-
f.pageSize = j.pageSize, f.pageNo = j.pageNo, f.search =
|
|
2390
|
+
Be(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;
|
|
2391
|
+
let f = We({}, r.queryParams);
|
|
2392
|
+
f.pageSize = j.pageSize, f.pageNo = j.pageNo, f.search = w.value, Oe(n.model.api, "GET", f).then(({ data: W }) => {
|
|
2362
2393
|
const { list: ae, totalCount: fe } = W.data;
|
|
2363
|
-
|
|
2394
|
+
y.splice(0, y.length, ...ae), j.totalElements = fe, z.value = !1;
|
|
2364
2395
|
});
|
|
2365
2396
|
}
|
|
2366
|
-
function
|
|
2397
|
+
function A() {
|
|
2367
2398
|
var f, O;
|
|
2368
2399
|
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);
|
|
2369
2400
|
}
|
|
2370
2401
|
function u(f, O) {
|
|
2371
|
-
n.model.api &&
|
|
2402
|
+
n.model.api && Oe(n.model.api, "DELETE", O.id).then(({ data: G }) => {
|
|
2372
2403
|
G.code === 0 && (i.value = !1, P());
|
|
2373
2404
|
});
|
|
2374
2405
|
}
|
|
2375
2406
|
function c() {
|
|
2376
2407
|
Co.confirm(
|
|
2377
2408
|
"The selected items will be deleted. Continue?",
|
|
2378
|
-
|
|
2409
|
+
o("common.table.warning"),
|
|
2379
2410
|
{
|
|
2380
|
-
confirmButtonText:
|
|
2381
|
-
cancelButtonText:
|
|
2411
|
+
confirmButtonText: o("common.basic.confirm"),
|
|
2412
|
+
cancelButtonText: o("common.basic.cancel"),
|
|
2382
2413
|
type: "warning"
|
|
2383
2414
|
}
|
|
2384
2415
|
).then(() => {
|
|
@@ -2399,7 +2430,7 @@ const qe = (e) => {
|
|
|
2399
2430
|
function g(f) {
|
|
2400
2431
|
j.pageSize = f, P();
|
|
2401
2432
|
}
|
|
2402
|
-
function
|
|
2433
|
+
function E(f) {
|
|
2403
2434
|
j.pageNo = f, P();
|
|
2404
2435
|
}
|
|
2405
2436
|
function F(f, O) {
|
|
@@ -2417,31 +2448,31 @@ const qe = (e) => {
|
|
|
2417
2448
|
f += `${G[0]}=${G[1]}&`;
|
|
2418
2449
|
})), window.open(f);
|
|
2419
2450
|
}
|
|
2420
|
-
function
|
|
2451
|
+
function S(f) {
|
|
2421
2452
|
L.value = f;
|
|
2422
2453
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return f.label ? a.value ?
|
|
2454
|
+
function T(f) {
|
|
2455
|
+
return f.label ? a.value ? o(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
|
|
2425
2456
|
}
|
|
2426
2457
|
function v(f) {
|
|
2427
|
-
f ? (I.value = !0,
|
|
2458
|
+
f ? (I.value = !0, M.splice(0, M.length, ...y), y.splice(0, y.length, ...L.value)) : (I.value = !1, y.splice(0, y.length, ...M));
|
|
2428
2459
|
}
|
|
2429
2460
|
return Se(() => n.model, () => {
|
|
2430
2461
|
P();
|
|
2431
2462
|
}, {
|
|
2432
2463
|
deep: !0,
|
|
2433
2464
|
immediate: !0
|
|
2434
|
-
}),
|
|
2465
|
+
}), t({
|
|
2435
2466
|
multipleSelection: L,
|
|
2436
2467
|
refresh: P,
|
|
2437
|
-
updateConfigAndRefresh:
|
|
2468
|
+
updateConfigAndRefresh: _
|
|
2438
2469
|
}), (f, O) => {
|
|
2439
|
-
const G =
|
|
2440
|
-
return p(),
|
|
2441
|
-
class:
|
|
2470
|
+
const G = x("el-checkbox"), X = x("el-badge"), W = x("el-button"), ae = x("el-icon"), fe = x("el-tooltip"), le = x("el-input"), ie = x("el-table-column"), Z = x("router-link"), J = x("el-tag"), ge = x("el-popconfirm"), be = x("el-table"), Re = x("el-pagination"), co = Vt("loading");
|
|
2471
|
+
return p(), U("div", {
|
|
2472
|
+
class: At({ "table-view-wrapper": r.showPane })
|
|
2442
2473
|
}, [
|
|
2443
|
-
|
|
2444
|
-
|
|
2474
|
+
b("div", qs, [
|
|
2475
|
+
b("div", Bs, [
|
|
2445
2476
|
r.selectMode ? (p(), V(X, {
|
|
2446
2477
|
key: 0,
|
|
2447
2478
|
value: L.value.length,
|
|
@@ -2449,10 +2480,10 @@ const qe = (e) => {
|
|
|
2449
2480
|
class: "selected-badge"
|
|
2450
2481
|
}, {
|
|
2451
2482
|
default: m(() => [
|
|
2452
|
-
|
|
2483
|
+
h(G, {
|
|
2453
2484
|
class: "selected-checkbox",
|
|
2454
2485
|
border: !0,
|
|
2455
|
-
label: k(
|
|
2486
|
+
label: k(o)("common.table.viewSelected"),
|
|
2456
2487
|
onChange: v
|
|
2457
2488
|
}, null, 8, ["label"])
|
|
2458
2489
|
]),
|
|
@@ -2461,12 +2492,12 @@ const qe = (e) => {
|
|
|
2461
2492
|
!r.selectMode && !r.readOnly ? (p(), V(W, {
|
|
2462
2493
|
key: 1,
|
|
2463
2494
|
type: "primary",
|
|
2464
|
-
onClick:
|
|
2495
|
+
onClick: A
|
|
2465
2496
|
}, {
|
|
2466
2497
|
default: m(() => {
|
|
2467
2498
|
var se, H;
|
|
2468
2499
|
return [
|
|
2469
|
-
Q(R(((se = r.labels) == null ? void 0 : se.create) != null ? k(
|
|
2500
|
+
Q(R(((se = r.labels) == null ? void 0 : se.create) != null ? k(o)((H = r.labels) == null ? void 0 : H.create) : k(o)("common.table.create")), 1)
|
|
2470
2501
|
];
|
|
2471
2502
|
}),
|
|
2472
2503
|
_: 1
|
|
@@ -2481,25 +2512,25 @@ const qe = (e) => {
|
|
|
2481
2512
|
default: m(() => {
|
|
2482
2513
|
var se, H;
|
|
2483
2514
|
return [
|
|
2484
|
-
Q(R(((se = r.labels) == null ? void 0 : se.delete) != null ? k(
|
|
2515
|
+
Q(R(((se = r.labels) == null ? void 0 : se.delete) != null ? k(o)((H = r.labels) == null ? void 0 : H.delete) : k(o)("common.table.delete")), 1)
|
|
2485
2516
|
];
|
|
2486
2517
|
}),
|
|
2487
2518
|
_: 1
|
|
2488
2519
|
}, 8, ["disabled"])) : B("", !0),
|
|
2489
|
-
|
|
2520
|
+
h(W, {
|
|
2490
2521
|
icon: k(Dt),
|
|
2491
2522
|
onClick: P
|
|
2492
2523
|
}, null, 8, ["icon"]),
|
|
2493
2524
|
r.tooltip ? (p(), V(fe, {
|
|
2494
2525
|
key: 3,
|
|
2495
2526
|
effect: "dark",
|
|
2496
|
-
content: k(
|
|
2527
|
+
content: k(o)(r.tooltip),
|
|
2497
2528
|
placement: "right"
|
|
2498
2529
|
}, {
|
|
2499
2530
|
default: m(() => [
|
|
2500
|
-
|
|
2531
|
+
h(ae, { style: { color: "#8ba74f" } }, {
|
|
2501
2532
|
default: m(() => [
|
|
2502
|
-
|
|
2533
|
+
h(k(xo))
|
|
2503
2534
|
]),
|
|
2504
2535
|
_: 1
|
|
2505
2536
|
})
|
|
@@ -2507,29 +2538,29 @@ const qe = (e) => {
|
|
|
2507
2538
|
_: 1
|
|
2508
2539
|
}, 8, ["content"])) : B("", !0)
|
|
2509
2540
|
]),
|
|
2510
|
-
|
|
2541
|
+
b("div", Hs, [
|
|
2511
2542
|
r.export ? (p(), V(W, {
|
|
2512
2543
|
key: 0,
|
|
2513
2544
|
class: "button-export",
|
|
2514
2545
|
onClick: q
|
|
2515
2546
|
}, {
|
|
2516
2547
|
default: m(() => [
|
|
2517
|
-
|
|
2548
|
+
h(ae, null, {
|
|
2518
2549
|
default: m(() => [
|
|
2519
|
-
|
|
2550
|
+
h(k(Eo))
|
|
2520
2551
|
]),
|
|
2521
2552
|
_: 1
|
|
2522
2553
|
})
|
|
2523
2554
|
]),
|
|
2524
2555
|
_: 1
|
|
2525
2556
|
})) : B("", !0),
|
|
2526
|
-
|
|
2527
|
-
placeholder: `${k(
|
|
2528
|
-
modelValue:
|
|
2529
|
-
"onUpdate:modelValue": O[0] || (O[0] = (se) =>
|
|
2557
|
+
h(le, {
|
|
2558
|
+
placeholder: `${k(o)("common.table.search")}...`,
|
|
2559
|
+
modelValue: w.value,
|
|
2560
|
+
"onUpdate:modelValue": O[0] || (O[0] = (se) => w.value = se)
|
|
2530
2561
|
}, {
|
|
2531
2562
|
append: m(() => [
|
|
2532
|
-
|
|
2563
|
+
h(W, {
|
|
2533
2564
|
style: { "margin-left": "-20px" },
|
|
2534
2565
|
icon: k(Tt),
|
|
2535
2566
|
onClick: P
|
|
@@ -2543,8 +2574,8 @@ const qe = (e) => {
|
|
|
2543
2574
|
border: !0,
|
|
2544
2575
|
ref_key: "tableRef",
|
|
2545
2576
|
ref: D,
|
|
2546
|
-
data:
|
|
2547
|
-
onSelectionChange:
|
|
2577
|
+
data: y,
|
|
2578
|
+
onSelectionChange: S,
|
|
2548
2579
|
class: "table"
|
|
2549
2580
|
}, {
|
|
2550
2581
|
default: m(() => {
|
|
@@ -2555,39 +2586,39 @@ const qe = (e) => {
|
|
|
2555
2586
|
type: "selection",
|
|
2556
2587
|
width: "50"
|
|
2557
2588
|
})),
|
|
2558
|
-
(p(!0),
|
|
2589
|
+
(p(!0), U(oe, null, ce(K.value, (H) => {
|
|
2559
2590
|
var Ce;
|
|
2560
2591
|
return p(), V(ie, {
|
|
2561
2592
|
prop: H.prop,
|
|
2562
|
-
label:
|
|
2593
|
+
label: T(H),
|
|
2563
2594
|
width: (Ce = H.tableColumnAttributes) == null ? void 0 : Ce.width,
|
|
2564
2595
|
"show-overflow-tooltip": ""
|
|
2565
2596
|
}, {
|
|
2566
|
-
default: m((
|
|
2567
|
-
var
|
|
2597
|
+
default: m((xe) => {
|
|
2598
|
+
var Ee, Fe, vt;
|
|
2568
2599
|
return [
|
|
2569
|
-
(
|
|
2600
|
+
(Ee = H.tableColumnAttributes) != null && Ee.link ? (p(), V(Z, {
|
|
2570
2601
|
key: 0,
|
|
2571
2602
|
class: "router-link",
|
|
2572
|
-
to: `/${l.value}/detail?id=${
|
|
2603
|
+
to: `/${l.value}/detail?id=${xe.row.id}`
|
|
2573
2604
|
}, {
|
|
2574
2605
|
default: m(() => [
|
|
2575
|
-
|
|
2606
|
+
b("span", null, R(ne(H, xe)), 1)
|
|
2576
2607
|
]),
|
|
2577
2608
|
_: 2
|
|
2578
2609
|
}, 1032, ["to"])) : (Fe = H.tableColumnAttributes) != null && Fe.routerLink ? (p(), V(Z, {
|
|
2579
2610
|
key: 1,
|
|
2580
2611
|
class: "router-link",
|
|
2581
|
-
to: H.tableColumnAttributes.routerLink.replace("{id}",
|
|
2612
|
+
to: H.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
|
|
2582
2613
|
}, {
|
|
2583
2614
|
default: m(() => [
|
|
2584
|
-
|
|
2615
|
+
b("span", null, R(ne(H, xe)), 1)
|
|
2585
2616
|
]),
|
|
2586
2617
|
_: 2
|
|
2587
|
-
}, 1032, ["to"])) : (p(),
|
|
2618
|
+
}, 1032, ["to"])) : (p(), U("span", Js, R(ne(H, xe)), 1)),
|
|
2588
2619
|
((vt = H.tableColumnAttributes) == null ? void 0 : vt.type) === "tag" ? (p(), V(J, { key: 3 }, {
|
|
2589
2620
|
default: m(() => [
|
|
2590
|
-
Q(R(
|
|
2621
|
+
Q(R(xe.row[H.prop]), 1)
|
|
2591
2622
|
]),
|
|
2592
2623
|
_: 2
|
|
2593
2624
|
}, 1024)) : B("", !0)
|
|
@@ -2598,33 +2629,33 @@ const qe = (e) => {
|
|
|
2598
2629
|
}), 256)),
|
|
2599
2630
|
r.operations === void 0 && !((se = r.selectMode) != null && se) && !r.readOnly ? (p(), V(ie, {
|
|
2600
2631
|
key: 1,
|
|
2601
|
-
label: k(
|
|
2632
|
+
label: k(o)("common.table.operation"),
|
|
2602
2633
|
width: "120"
|
|
2603
2634
|
}, {
|
|
2604
2635
|
default: m((H) => [
|
|
2605
|
-
|
|
2636
|
+
h(W, {
|
|
2606
2637
|
link: "",
|
|
2607
2638
|
type: "primary",
|
|
2608
2639
|
class: "operation-button",
|
|
2609
2640
|
onClick: (Ce) => F(H.$index, H.row)
|
|
2610
2641
|
}, {
|
|
2611
2642
|
default: m(() => [
|
|
2612
|
-
Q(R(k(
|
|
2643
|
+
Q(R(k(o)("common.table.edit")), 1)
|
|
2613
2644
|
]),
|
|
2614
2645
|
_: 2
|
|
2615
2646
|
}, 1032, ["onClick"]),
|
|
2616
|
-
|
|
2647
|
+
h(ge, {
|
|
2617
2648
|
title: "Are you sure to delete this?",
|
|
2618
2649
|
onConfirm: (Ce) => u(H.$index, H.row)
|
|
2619
2650
|
}, {
|
|
2620
2651
|
reference: m(() => [
|
|
2621
|
-
|
|
2652
|
+
h(W, {
|
|
2622
2653
|
link: "",
|
|
2623
2654
|
type: "primary",
|
|
2624
2655
|
class: "operation-button"
|
|
2625
2656
|
}, {
|
|
2626
2657
|
default: m(() => [
|
|
2627
|
-
Q(R(k(
|
|
2658
|
+
Q(R(k(o)("common.table.delete")), 1)
|
|
2628
2659
|
]),
|
|
2629
2660
|
_: 1
|
|
2630
2661
|
})
|
|
@@ -2636,18 +2667,18 @@ const qe = (e) => {
|
|
|
2636
2667
|
}, 8, ["label"])) : B("", !0),
|
|
2637
2668
|
r.operations !== void 0 && !r.readOnly ? (p(), V(ie, {
|
|
2638
2669
|
key: 2,
|
|
2639
|
-
label: k(
|
|
2670
|
+
label: k(o)("common.table.operation"),
|
|
2640
2671
|
width: "120"
|
|
2641
2672
|
}, {
|
|
2642
2673
|
default: m((H) => [
|
|
2643
|
-
(p(!0),
|
|
2674
|
+
(p(!0), U(oe, null, ce(r.operations, (Ce) => (p(), V(W, {
|
|
2644
2675
|
class: "operation-button",
|
|
2645
2676
|
link: "",
|
|
2646
2677
|
type: "primary",
|
|
2647
2678
|
key: Ce.label,
|
|
2648
|
-
onClick: (
|
|
2649
|
-
var
|
|
2650
|
-
return ((Fe = (
|
|
2679
|
+
onClick: (xe) => {
|
|
2680
|
+
var Ee, Fe;
|
|
2681
|
+
return ((Fe = (Ee = Ce.functions) == null ? void 0 : Ee.click) == null ? void 0 : Fe.call(Ee, H.$index, H.row)) && P();
|
|
2651
2682
|
}
|
|
2652
2683
|
}, {
|
|
2653
2684
|
default: m(() => [
|
|
@@ -2669,7 +2700,7 @@ const qe = (e) => {
|
|
|
2669
2700
|
size: "small",
|
|
2670
2701
|
background: "",
|
|
2671
2702
|
onSizeChange: g,
|
|
2672
|
-
onCurrentChange:
|
|
2703
|
+
onCurrentChange: E,
|
|
2673
2704
|
currentPage: j.pageNo,
|
|
2674
2705
|
"onUpdate:currentPage": O[1] || (O[1] = (se) => j.pageNo = se),
|
|
2675
2706
|
"page-sizes": [10, 20, 50, 100],
|
|
@@ -2677,7 +2708,7 @@ const qe = (e) => {
|
|
|
2677
2708
|
layout: "total, sizes, prev, pager, next",
|
|
2678
2709
|
total: j.totalElements
|
|
2679
2710
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
2680
|
-
|
|
2711
|
+
h(io, {
|
|
2681
2712
|
model: f.model,
|
|
2682
2713
|
mode: $.value,
|
|
2683
2714
|
id: Y.value,
|
|
@@ -2688,13 +2719,13 @@ const qe = (e) => {
|
|
|
2688
2719
|
], 2);
|
|
2689
2720
|
};
|
|
2690
2721
|
}
|
|
2691
|
-
}), nt = /* @__PURE__ */ pe(
|
|
2722
|
+
}), nt = /* @__PURE__ */ pe(Ws, [["__scopeId", "data-v-c534121e"]]), Ys = { class: "nav-bar" }, Qs = {
|
|
2692
2723
|
key: 0,
|
|
2693
2724
|
class: "info-card-wrapper"
|
|
2694
|
-
},
|
|
2725
|
+
}, Ks = { class: "icon-wrapper" }, Xs = { class: "info-wrapper" }, Zs = { class: "title-wrapper" }, er = { class: "tabs-wrapper" }, tr = { class: "dialog-footer" }, or = /* @__PURE__ */ _e({
|
|
2695
2726
|
__name: "DetailPage",
|
|
2696
2727
|
setup(e) {
|
|
2697
|
-
const { t
|
|
2728
|
+
const { t } = Je(), o = He(), n = st(), s = De(() => o.query.id), r = N(!1), l = N(!1), a = N("view"), i = N(), d = N(-1), w = N(), y = N(), M = N("summary"), D = N(""), L = N(""), $ = N(""), z = N(0), I = re({
|
|
2698
2729
|
api: "",
|
|
2699
2730
|
fields: []
|
|
2700
2731
|
}), Y = re([]);
|
|
@@ -2703,7 +2734,7 @@ const qe = (e) => {
|
|
|
2703
2734
|
() => n.currentRoute.value,
|
|
2704
2735
|
he
|
|
2705
2736
|
], () => {
|
|
2706
|
-
|
|
2737
|
+
_();
|
|
2707
2738
|
}, {
|
|
2708
2739
|
immediate: !0,
|
|
2709
2740
|
deep: !0
|
|
@@ -2712,81 +2743,81 @@ const qe = (e) => {
|
|
|
2712
2743
|
d.value = parseInt(u.index) - 1;
|
|
2713
2744
|
}
|
|
2714
2745
|
function ne() {
|
|
2715
|
-
var
|
|
2716
|
-
let u = (
|
|
2746
|
+
var E;
|
|
2747
|
+
let u = (E = j[d.value].api) == null ? void 0 : E.replace("/select", "");
|
|
2717
2748
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
2718
|
-
const c = I.api + "/" + s.value + u, g =
|
|
2719
|
-
|
|
2720
|
-
|
|
2749
|
+
const c = I.api + "/" + s.value + u, g = y.value.multipleSelection.map((F) => F.id);
|
|
2750
|
+
Oe(c, "POST", g).then(() => {
|
|
2751
|
+
w.value.refresh(), l.value = !1;
|
|
2721
2752
|
});
|
|
2722
2753
|
}
|
|
2723
2754
|
function C(u, c, g) {
|
|
2724
2755
|
var q;
|
|
2725
2756
|
g.functions || (g.functions = {}), g.functions.create = () => {
|
|
2726
|
-
l.value = !0,
|
|
2757
|
+
l.value = !0, y.value && y.value.refresh();
|
|
2727
2758
|
};
|
|
2728
|
-
let
|
|
2729
|
-
|
|
2730
|
-
for (var F in
|
|
2731
|
-
|
|
2732
|
-
j.push(
|
|
2759
|
+
let E = Ue(c);
|
|
2760
|
+
E.tableConfig || (E.tableConfig = {}), E.tableConfig.selectMode = !0, E.tableConfig.queryParams = {}, u.queryParamName && (E.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
2761
|
+
for (var F in E.fields)
|
|
2762
|
+
E.fields[F].tableColumnAttributes && (q = E.fields[F].tableColumnAttributes) != null && q.link && (E.fields[F].tableColumnAttributes.link = !1);
|
|
2763
|
+
j.push(E), g.labels = {
|
|
2733
2764
|
create: "common.table.add",
|
|
2734
2765
|
delete: "common.table.remove"
|
|
2735
|
-
}, g.functions.batchDelete = (
|
|
2766
|
+
}, g.functions.batchDelete = (S) => {
|
|
2736
2767
|
var O;
|
|
2737
|
-
let
|
|
2738
|
-
|
|
2739
|
-
const v = I.api + "/" + s.value +
|
|
2768
|
+
let T = (O = j[d.value].api) == null ? void 0 : O.replace("/select", "");
|
|
2769
|
+
T = T == null ? void 0 : T.substring(T.lastIndexOf("/"));
|
|
2770
|
+
const v = I.api + "/" + s.value + T, f = S.map((G) => G.id);
|
|
2740
2771
|
de.delete(`${v}/${f.join(",")}`).then(({ data: G }) => {
|
|
2741
|
-
G.code === 0 &&
|
|
2772
|
+
G.code === 0 && w.value.refresh();
|
|
2742
2773
|
});
|
|
2743
2774
|
}, g.operations = [
|
|
2744
2775
|
{
|
|
2745
2776
|
label: "common.table.remove",
|
|
2746
2777
|
functions: {
|
|
2747
|
-
click: (
|
|
2778
|
+
click: (S, T) => {
|
|
2748
2779
|
var O;
|
|
2749
2780
|
let v = (O = j[d.value].api) == null ? void 0 : O.replace("/select", "");
|
|
2750
2781
|
v = v == null ? void 0 : v.substring(v.lastIndexOf("/"));
|
|
2751
2782
|
const f = I.api + "/" + s.value + v;
|
|
2752
|
-
|
|
2753
|
-
|
|
2783
|
+
Oe(f, "DELETE", T.id).then(() => {
|
|
2784
|
+
w.value.refresh();
|
|
2754
2785
|
});
|
|
2755
2786
|
}
|
|
2756
2787
|
}
|
|
2757
2788
|
}
|
|
2758
|
-
],
|
|
2789
|
+
], E.api += "/select";
|
|
2759
2790
|
}
|
|
2760
|
-
function
|
|
2761
|
-
var
|
|
2791
|
+
function _() {
|
|
2792
|
+
var E, F, q;
|
|
2762
2793
|
Y.splice(0);
|
|
2763
|
-
const u =
|
|
2794
|
+
const u = o.params.model;
|
|
2764
2795
|
if (he.value[u] === void 0) {
|
|
2765
2796
|
console.warn("Detail page model not exist:", u);
|
|
2766
2797
|
return;
|
|
2767
2798
|
} else
|
|
2768
2799
|
console.debug("Detail page model found:", u, he.value[u]);
|
|
2769
|
-
|
|
2800
|
+
Be(I);
|
|
2770
2801
|
const c = Ue(he.value[u]);
|
|
2771
|
-
Object.assign(I, c), z.value++, d.value = -1,
|
|
2772
|
-
const g = (F = (
|
|
2802
|
+
Object.assign(I, c), z.value++, d.value = -1, M.value = "summary";
|
|
2803
|
+
const g = (F = (E = I.pageConfig) == null ? void 0 : E.detailPage) == null ? void 0 : F.tabs;
|
|
2773
2804
|
if (g)
|
|
2774
|
-
for (let
|
|
2775
|
-
const
|
|
2776
|
-
if (Y.push(
|
|
2777
|
-
|
|
2778
|
-
let v =
|
|
2779
|
-
v.showPane = !1,
|
|
2805
|
+
for (let S of g) {
|
|
2806
|
+
const T = Ue(he.value[S.modelKey]);
|
|
2807
|
+
if (Y.push(T), S.type === "table") {
|
|
2808
|
+
T.tableConfig || (T.tableConfig = {});
|
|
2809
|
+
let v = T.tableConfig;
|
|
2810
|
+
v.showPane = !1, S.modelRelationType === "associated" ? C(S, T, v) : S.modelRelationType === "child" && (j.push({
|
|
2780
2811
|
fields: []
|
|
2781
|
-
}),
|
|
2782
|
-
f[
|
|
2783
|
-
})), v.queryParams || (v.queryParams = {}),
|
|
2812
|
+
}), T.formConfig === void 0 && (T.formConfig = {}), T.formConfig.functions === void 0 && (T.formConfig.functions = {}), S.queryParamName && (T.formConfig.functions.beforeSubmit = (f) => {
|
|
2813
|
+
f[S.queryParamName] = s.value;
|
|
2814
|
+
})), v.queryParams || (v.queryParams = {}), S.queryParamName && (v.queryParams[S.queryParamName] = s.value), S.queryParams && Object.assign(v.queryParams, S.queryParams), v.readOnly = (q = S.readOnly) != null ? q : !1, S.includeFields && (T.fields = T.fields.filter((f) => {
|
|
2784
2815
|
var O;
|
|
2785
|
-
return (O =
|
|
2786
|
-
})),
|
|
2816
|
+
return (O = S.includeFields) == null ? void 0 : O.includes(f.prop);
|
|
2817
|
+
})), S.excludeFields && (T.fields = T.fields.filter((f) => {
|
|
2787
2818
|
var O;
|
|
2788
|
-
return !((O =
|
|
2789
|
-
})),
|
|
2819
|
+
return !((O = S.excludeFields) != null && O.includes(f.prop));
|
|
2820
|
+
})), S.tooltip && (v.tooltip = S.tooltip);
|
|
2790
2821
|
}
|
|
2791
2822
|
}
|
|
2792
2823
|
}
|
|
@@ -2802,13 +2833,13 @@ const qe = (e) => {
|
|
|
2802
2833
|
}
|
|
2803
2834
|
],
|
|
2804
2835
|
(u) => {
|
|
2805
|
-
|
|
2806
|
-
var g,
|
|
2807
|
-
const c = (
|
|
2836
|
+
Le(() => {
|
|
2837
|
+
var g, E, F;
|
|
2838
|
+
const c = (E = (g = I.pageConfig) == null ? void 0 : g.detailPage) == null ? void 0 : E.infoCard;
|
|
2808
2839
|
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
|
|
2840
|
+
var S, T;
|
|
2810
2841
|
if (q.prop === c.tagFieldProp) {
|
|
2811
|
-
const v = (
|
|
2842
|
+
const v = (T = (S = q.tableColumnAttributes) == null ? void 0 : S.functions) == null ? void 0 : T.transformValue;
|
|
2812
2843
|
v && ($.value = v($.value));
|
|
2813
2844
|
}
|
|
2814
2845
|
}));
|
|
@@ -2822,32 +2853,32 @@ const qe = (e) => {
|
|
|
2822
2853
|
function P() {
|
|
2823
2854
|
r.value = !0;
|
|
2824
2855
|
}
|
|
2825
|
-
function
|
|
2856
|
+
function A() {
|
|
2826
2857
|
i.value.refresh();
|
|
2827
2858
|
}
|
|
2828
2859
|
return (u, c) => {
|
|
2829
2860
|
var W, ae, fe, le, ie, Z;
|
|
2830
|
-
const g =
|
|
2831
|
-
return p(),
|
|
2832
|
-
|
|
2833
|
-
|
|
2861
|
+
const g = x("el-breadcrumb-item"), E = x("el-breadcrumb"), F = x("el-button"), q = x("el-icon"), S = x("el-dropdown-item"), T = x("el-dropdown-menu"), v = x("el-dropdown"), f = x("el-tag"), O = x("el-tab-pane"), G = x("el-tabs"), X = x("el-dialog");
|
|
2862
|
+
return p(), U(oe, null, [
|
|
2863
|
+
b("div", Ys, [
|
|
2864
|
+
h(E, null, {
|
|
2834
2865
|
default: m(() => {
|
|
2835
2866
|
var J, ge;
|
|
2836
2867
|
return [
|
|
2837
|
-
|
|
2868
|
+
h(g, {
|
|
2838
2869
|
to: { path: `/${(ge = (J = I == null ? void 0 : I.breadcrumbRoute) != null ? J : I == null ? void 0 : I.route) != null ? ge : ""}` }
|
|
2839
2870
|
}, {
|
|
2840
2871
|
default: m(() => {
|
|
2841
2872
|
var be;
|
|
2842
2873
|
return [
|
|
2843
|
-
Q(R(k(
|
|
2874
|
+
Q(R(k(t)((be = I == null ? void 0 : I.name) != null ? be : "")), 1)
|
|
2844
2875
|
];
|
|
2845
2876
|
}),
|
|
2846
2877
|
_: 1
|
|
2847
2878
|
}, 8, ["to"]),
|
|
2848
|
-
|
|
2879
|
+
h(g, null, {
|
|
2849
2880
|
default: m(() => [
|
|
2850
|
-
Q(R(k(
|
|
2881
|
+
Q(R(k(t)("common.basic.detail")), 1)
|
|
2851
2882
|
]),
|
|
2852
2883
|
_: 1
|
|
2853
2884
|
})
|
|
@@ -2855,37 +2886,37 @@ const qe = (e) => {
|
|
|
2855
2886
|
}),
|
|
2856
2887
|
_: 1
|
|
2857
2888
|
}),
|
|
2858
|
-
|
|
2859
|
-
|
|
2889
|
+
b("div", null, [
|
|
2890
|
+
h(F, {
|
|
2860
2891
|
type: "primary",
|
|
2861
2892
|
onClick: P
|
|
2862
2893
|
}, {
|
|
2863
2894
|
default: m(() => [
|
|
2864
|
-
Q(R(k(
|
|
2895
|
+
Q(R(k(t)("common.table.edit")), 1)
|
|
2865
2896
|
]),
|
|
2866
2897
|
_: 1
|
|
2867
2898
|
}),
|
|
2868
|
-
|
|
2899
|
+
h(F, {
|
|
2869
2900
|
type: "danger",
|
|
2870
2901
|
plain: "",
|
|
2871
2902
|
disabled: ""
|
|
2872
2903
|
}, {
|
|
2873
2904
|
default: m(() => [
|
|
2874
|
-
Q(R(k(
|
|
2905
|
+
Q(R(k(t)("common.table.delete")), 1)
|
|
2875
2906
|
]),
|
|
2876
2907
|
_: 1
|
|
2877
2908
|
}),
|
|
2878
2909
|
((ae = (W = I.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ae.operationButtons) !== void 0 ? (p(), V(v, { key: 0 }, {
|
|
2879
2910
|
dropdown: m(() => [
|
|
2880
|
-
|
|
2911
|
+
h(T, null, {
|
|
2881
2912
|
default: m(() => {
|
|
2882
2913
|
var J, ge;
|
|
2883
2914
|
return [
|
|
2884
|
-
(p(!0),
|
|
2915
|
+
(p(!0), U(oe, null, ce((ge = (J = I.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : ge.operationButtons, (be) => (p(), V(S, {
|
|
2885
2916
|
onClick: (Re) => be.function(i.value.formData)
|
|
2886
2917
|
}, {
|
|
2887
2918
|
default: m(() => [
|
|
2888
|
-
Q(R(k(
|
|
2919
|
+
Q(R(k(t)(be.label)), 1)
|
|
2889
2920
|
]),
|
|
2890
2921
|
_: 2
|
|
2891
2922
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2895,12 +2926,12 @@ const qe = (e) => {
|
|
|
2895
2926
|
})
|
|
2896
2927
|
]),
|
|
2897
2928
|
default: m(() => [
|
|
2898
|
-
|
|
2929
|
+
h(F, { style: { margin: "0 10px" } }, {
|
|
2899
2930
|
default: m(() => [
|
|
2900
|
-
Q(R(k(
|
|
2901
|
-
|
|
2931
|
+
Q(R(k(t)("common.basic.more")), 1),
|
|
2932
|
+
h(q, { class: "el-icon--right" }, {
|
|
2902
2933
|
default: m(() => [
|
|
2903
|
-
|
|
2934
|
+
h(k($o))
|
|
2904
2935
|
]),
|
|
2905
2936
|
_: 1
|
|
2906
2937
|
})
|
|
@@ -2910,19 +2941,19 @@ const qe = (e) => {
|
|
|
2910
2941
|
]),
|
|
2911
2942
|
_: 1
|
|
2912
2943
|
})) : B("", !0),
|
|
2913
|
-
|
|
2944
|
+
h(F, {
|
|
2914
2945
|
icon: k(Dt),
|
|
2915
|
-
onClick:
|
|
2946
|
+
onClick: A
|
|
2916
2947
|
}, null, 8, ["icon"])
|
|
2917
2948
|
])
|
|
2918
2949
|
]),
|
|
2919
|
-
(le = (fe = I.pageConfig) == null ? void 0 : fe.detailPage) != null && le.infoCard ? (p(),
|
|
2920
|
-
|
|
2921
|
-
(p(), V(
|
|
2950
|
+
(le = (fe = I.pageConfig) == null ? void 0 : fe.detailPage) != null && le.infoCard ? (p(), U("div", Qs, [
|
|
2951
|
+
b("div", Ks, [
|
|
2952
|
+
(p(), V(et((ie = I.pageConfig.detailPage.infoCard.icon) != null ? ie : ""), { class: "icon" }))
|
|
2922
2953
|
]),
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2954
|
+
b("div", Xs, [
|
|
2955
|
+
b("div", Zs, [
|
|
2956
|
+
b("h1", null, R(D.value), 1),
|
|
2926
2957
|
((Z = $.value) == null ? void 0 : Z.length) > 0 ? (p(), V(f, {
|
|
2927
2958
|
key: 0,
|
|
2928
2959
|
size: "small"
|
|
@@ -2933,24 +2964,24 @@ const qe = (e) => {
|
|
|
2933
2964
|
_: 1
|
|
2934
2965
|
})) : B("", !0)
|
|
2935
2966
|
]),
|
|
2936
|
-
|
|
2967
|
+
b("span", null, R(L.value), 1)
|
|
2937
2968
|
])
|
|
2938
2969
|
])) : B("", !0),
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
modelValue:
|
|
2942
|
-
"onUpdate:modelValue": c[0] || (c[0] = (J) =>
|
|
2970
|
+
b("div", er, [
|
|
2971
|
+
h(G, {
|
|
2972
|
+
modelValue: M.value,
|
|
2973
|
+
"onUpdate:modelValue": c[0] || (c[0] = (J) => M.value = J),
|
|
2943
2974
|
onTabClick: K
|
|
2944
2975
|
}, {
|
|
2945
2976
|
default: m(() => {
|
|
2946
2977
|
var J, ge;
|
|
2947
2978
|
return [
|
|
2948
|
-
|
|
2949
|
-
label: k(
|
|
2979
|
+
h(O, {
|
|
2980
|
+
label: k(t)("common.basic.summary"),
|
|
2950
2981
|
name: "summary"
|
|
2951
2982
|
}, {
|
|
2952
2983
|
default: m(() => [
|
|
2953
|
-
|
|
2984
|
+
h(lo, {
|
|
2954
2985
|
ref_key: "formViewRef",
|
|
2955
2986
|
ref: i,
|
|
2956
2987
|
id: s.value,
|
|
@@ -2961,10 +2992,10 @@ const qe = (e) => {
|
|
|
2961
2992
|
]),
|
|
2962
2993
|
_: 1
|
|
2963
2994
|
}, 8, ["label"]),
|
|
2964
|
-
(p(!0),
|
|
2995
|
+
(p(!0), U(oe, null, ce((ge = (J = I.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : ge.tabs, (be) => {
|
|
2965
2996
|
var Re;
|
|
2966
2997
|
return p(), V(O, {
|
|
2967
|
-
label: k(
|
|
2998
|
+
label: k(t)((Re = be.name) != null ? Re : "")
|
|
2968
2999
|
}, null, 8, ["label"]);
|
|
2969
3000
|
}), 256))
|
|
2970
3001
|
];
|
|
@@ -2974,31 +3005,31 @@ const qe = (e) => {
|
|
|
2974
3005
|
d.value >= 0 ? (p(), V(nt, {
|
|
2975
3006
|
key: 0,
|
|
2976
3007
|
ref_key: "tabPaneTableRef",
|
|
2977
|
-
ref:
|
|
3008
|
+
ref: w,
|
|
2978
3009
|
model: Y[d.value]
|
|
2979
3010
|
}, null, 8, ["model"])) : B("", !0),
|
|
2980
|
-
|
|
3011
|
+
h(X, {
|
|
2981
3012
|
modelValue: l.value,
|
|
2982
3013
|
"onUpdate:modelValue": c[2] || (c[2] = (J) => l.value = J),
|
|
2983
|
-
title: k(
|
|
3014
|
+
title: k(t)("common.table.select"),
|
|
2984
3015
|
width: "800px"
|
|
2985
3016
|
}, {
|
|
2986
3017
|
footer: m(() => [
|
|
2987
|
-
|
|
2988
|
-
|
|
3018
|
+
b("span", tr, [
|
|
3019
|
+
h(F, {
|
|
2989
3020
|
onClick: c[1] || (c[1] = (J) => l.value = !1)
|
|
2990
3021
|
}, {
|
|
2991
3022
|
default: m(() => [
|
|
2992
|
-
Q(R(k(
|
|
3023
|
+
Q(R(k(t)("common.basic.cancel")), 1)
|
|
2993
3024
|
]),
|
|
2994
3025
|
_: 1
|
|
2995
3026
|
}),
|
|
2996
|
-
|
|
3027
|
+
h(F, {
|
|
2997
3028
|
type: "primary",
|
|
2998
3029
|
onClick: ne
|
|
2999
3030
|
}, {
|
|
3000
3031
|
default: m(() => [
|
|
3001
|
-
Q(R(k(
|
|
3032
|
+
Q(R(k(t)("common.basic.save")), 1)
|
|
3002
3033
|
]),
|
|
3003
3034
|
_: 1
|
|
3004
3035
|
})
|
|
@@ -3008,34 +3039,34 @@ const qe = (e) => {
|
|
|
3008
3039
|
d.value >= 0 ? (p(), V(nt, {
|
|
3009
3040
|
key: 0,
|
|
3010
3041
|
ref_key: "selectTableRef",
|
|
3011
|
-
ref:
|
|
3042
|
+
ref: y,
|
|
3012
3043
|
model: k(j)[d.value]
|
|
3013
3044
|
}, null, 8, ["model"])) : B("", !0)
|
|
3014
3045
|
]),
|
|
3015
3046
|
_: 1
|
|
3016
3047
|
}, 8, ["modelValue", "title"])
|
|
3017
3048
|
]),
|
|
3018
|
-
|
|
3049
|
+
h(io, {
|
|
3019
3050
|
id: s.value,
|
|
3020
3051
|
mode: "update",
|
|
3021
3052
|
visible: r.value,
|
|
3022
3053
|
"onUpdate:visible": c[3] || (c[3] = (J) => r.value = J),
|
|
3023
3054
|
model: I,
|
|
3024
|
-
afterSubmitFunc:
|
|
3055
|
+
afterSubmitFunc: A
|
|
3025
3056
|
}, null, 8, ["id", "visible", "model"])
|
|
3026
3057
|
], 64);
|
|
3027
3058
|
};
|
|
3028
3059
|
}
|
|
3029
|
-
}),
|
|
3060
|
+
}), nr = /* @__PURE__ */ pe(or, [["__scopeId", "data-v-f9250724"]]), sr = { class: "page-title" }, rr = /* @__PURE__ */ _e({
|
|
3030
3061
|
__name: "TablePage",
|
|
3031
3062
|
setup(e) {
|
|
3032
|
-
const { t
|
|
3063
|
+
const { t } = Je(), o = He(), n = st(), s = N(), r = N([]), l = re({
|
|
3033
3064
|
api: "",
|
|
3034
3065
|
fields: []
|
|
3035
|
-
}), a = re(
|
|
3066
|
+
}), a = re(We({}, l));
|
|
3036
3067
|
function i() {
|
|
3037
|
-
var
|
|
3038
|
-
r.value = [], l.pageConfig && ((
|
|
3068
|
+
var w, y, M, D, L;
|
|
3069
|
+
r.value = [], l.pageConfig && ((y = (w = l.pageConfig) == null ? void 0 : w.tablePage) != null && y.tabViewAttributes) && (r.value = (L = (D = (M = l.pageConfig) == null ? void 0 : M.tablePage) == null ? void 0 : D.tabViewAttributes) == null ? void 0 : L.map(($) => {
|
|
3039
3070
|
let z;
|
|
3040
3071
|
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
3072
|
key: $.key,
|
|
@@ -3047,16 +3078,16 @@ const qe = (e) => {
|
|
|
3047
3078
|
}));
|
|
3048
3079
|
}
|
|
3049
3080
|
function d() {
|
|
3050
|
-
var
|
|
3051
|
-
console.log("Init table page, loading model:",
|
|
3052
|
-
const
|
|
3053
|
-
if (he.value[
|
|
3054
|
-
console.warn("Model not found",
|
|
3081
|
+
var M, D;
|
|
3082
|
+
console.log("Init table page, loading model:", o.params.model), console.log("Current model list", he.value);
|
|
3083
|
+
const w = o.params.model;
|
|
3084
|
+
if (he.value[w] === void 0) {
|
|
3085
|
+
console.warn("Model not found", w);
|
|
3055
3086
|
return;
|
|
3056
3087
|
}
|
|
3057
|
-
|
|
3058
|
-
const
|
|
3059
|
-
Object.assign(l,
|
|
3088
|
+
Be(l);
|
|
3089
|
+
const y = Ue(he.value[w]);
|
|
3090
|
+
Object.assign(l, y), (D = (M = l.pageConfig) == null ? void 0 : M.tablePage) != null && D.tabViewAttributes || Object.assign(a, l), i();
|
|
3060
3091
|
}
|
|
3061
3092
|
return Se([
|
|
3062
3093
|
() => n.currentRoute.value,
|
|
@@ -3066,12 +3097,12 @@ const qe = (e) => {
|
|
|
3066
3097
|
}, {
|
|
3067
3098
|
immediate: !0,
|
|
3068
3099
|
deep: !0
|
|
3069
|
-
}), (
|
|
3100
|
+
}), (w, y) => {
|
|
3070
3101
|
var D;
|
|
3071
|
-
const
|
|
3072
|
-
return p(),
|
|
3073
|
-
|
|
3074
|
-
|
|
3102
|
+
const M = x("el-scrollbar");
|
|
3103
|
+
return p(), U(oe, null, [
|
|
3104
|
+
b("h1", sr, R(k(t)((D = l.name) != null ? D : "")), 1),
|
|
3105
|
+
h(M, null, {
|
|
3075
3106
|
default: m(() => {
|
|
3076
3107
|
var L, $;
|
|
3077
3108
|
return [
|
|
@@ -3085,7 +3116,7 @@ const qe = (e) => {
|
|
|
3085
3116
|
}),
|
|
3086
3117
|
_: 1
|
|
3087
3118
|
}),
|
|
3088
|
-
|
|
3119
|
+
h(nt, {
|
|
3089
3120
|
class: "table-wrapper",
|
|
3090
3121
|
ref_key: "tableRef",
|
|
3091
3122
|
ref: s,
|
|
@@ -3094,35 +3125,35 @@ const qe = (e) => {
|
|
|
3094
3125
|
], 64);
|
|
3095
3126
|
};
|
|
3096
3127
|
}
|
|
3097
|
-
}),
|
|
3098
|
-
|
|
3099
|
-
|
|
3128
|
+
}), ar = /* @__PURE__ */ pe(rr, [["__scopeId", "data-v-d24124ee"]]), lr = [
|
|
3129
|
+
Ao,
|
|
3130
|
+
ws,
|
|
3100
3131
|
Gt,
|
|
3101
|
-
|
|
3102
|
-
|
|
3132
|
+
Ps,
|
|
3133
|
+
Ms,
|
|
3103
3134
|
ro,
|
|
3104
3135
|
ao,
|
|
3105
3136
|
nt,
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
],
|
|
3109
|
-
e && e.component &&
|
|
3110
|
-
console.log("component",
|
|
3137
|
+
nr,
|
|
3138
|
+
ar
|
|
3139
|
+
], _r = (e) => {
|
|
3140
|
+
e && e.component && lr.forEach((t) => {
|
|
3141
|
+
console.log("component", t.__name, t), e.component(t.__name, t);
|
|
3111
3142
|
});
|
|
3112
3143
|
};
|
|
3113
3144
|
export {
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3145
|
+
Ao as Building,
|
|
3146
|
+
ws as ConsoleApp,
|
|
3147
|
+
nr as DetailPage,
|
|
3117
3148
|
Gt as Header,
|
|
3118
|
-
|
|
3119
|
-
|
|
3149
|
+
Ps as NoPermission,
|
|
3150
|
+
Ms as Secondary,
|
|
3120
3151
|
ro as SideMenu,
|
|
3121
3152
|
ao as TabCard,
|
|
3122
|
-
|
|
3153
|
+
ar as TablePage,
|
|
3123
3154
|
nt as TableView,
|
|
3124
|
-
|
|
3125
|
-
|
|
3155
|
+
Mn as activeMenuMapping,
|
|
3156
|
+
_r as default,
|
|
3126
3157
|
on as en,
|
|
3127
3158
|
tt as i18n,
|
|
3128
3159
|
Ct as menuList,
|