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