@vancone/console-component 0.1.1-beta.2 → 0.1.1-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var uo = Object.defineProperty, po = Object.defineProperties;
|
|
2
2
|
var fo = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var vt = Object.getOwnPropertySymbols;
|
|
4
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,
|
|
5
|
+
var yt = (e, t, o) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Ye = (e, t) => {
|
|
6
6
|
for (var o in t || (t = {}))
|
|
7
7
|
mo.call(t, o) && yt(e, o, t[o]);
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
8
|
+
if (vt)
|
|
9
|
+
for (var o of vt(t))
|
|
10
10
|
ho.call(t, o) && yt(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
12
|
}, wt = (e, t) => po(e, fo(t));
|
|
13
|
-
var
|
|
13
|
+
var Ce = (e, t, o) => new Promise((n, s) => {
|
|
14
14
|
var r = (i) => {
|
|
15
15
|
try {
|
|
16
16
|
a(o.next(i));
|
|
@@ -26,33 +26,33 @@ var ye = (e, t, o) => new Promise((n, s) => {
|
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
27
|
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as
|
|
30
|
-
import { useRoute as
|
|
29
|
+
import { openBlock as p, createElementBlock as M, createElementVNode as v, defineComponent as we, reactive as pe, resolveComponent as O, createVNode as _, withCtx as m, unref as k, Fragment as se, renderList as he, toDisplayString as D, normalizeStyle as Re, ref as A, onMounted as At, createCommentVNode as J, createTextVNode as Z, createBlock as V, nextTick as ze, resolveDynamicComponent as tt, effectScope as Nt, markRaw as Ve, toRaw as qe, hasInjectionContext as _o, inject as go, getCurrentInstance as bo, watch as Ee, isRef as Be, isReactive as ft, toRef as at, computed as Ne, getCurrentScope as vo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as Mt, resolveDirective as Ut, withDirectives as Tt } from "vue";
|
|
30
|
+
import { useRoute as Je, useRouter as rt } from "vue-router";
|
|
31
31
|
import So from "axios";
|
|
32
|
-
import { ElMessage as
|
|
33
|
-
import { Search as
|
|
34
|
-
import { createI18n as Po, useI18n as
|
|
35
|
-
import { cloneDeep as
|
|
36
|
-
const
|
|
32
|
+
import { ElMessage as lt, ElMessageBox as Co } from "element-plus";
|
|
33
|
+
import { Search as Dt, ArrowRight as ko, Check as Oo, Refresh as Ft, QuestionFilled as Eo, Download as $o, ArrowDown as xo } from "@element-plus/icons-vue";
|
|
34
|
+
import { createI18n as Po, useI18n as We } from "vue-i18n";
|
|
35
|
+
import { cloneDeep as Fe } from "lodash";
|
|
36
|
+
const ve = (e, t) => {
|
|
37
37
|
const o = e.__vccOpts || e;
|
|
38
38
|
for (const [n, s] of t)
|
|
39
39
|
o[n] = s;
|
|
40
40
|
return o;
|
|
41
41
|
}, Io = {}, Vo = { class: "building" };
|
|
42
|
-
function
|
|
43
|
-
return p(),
|
|
42
|
+
function Ao(e, t) {
|
|
43
|
+
return p(), M("div", Vo);
|
|
44
44
|
}
|
|
45
|
-
const No = /* @__PURE__ */
|
|
45
|
+
const No = /* @__PURE__ */ ve(Io, [["render", Ao], ["__scopeId", "data-v-07bd45d2"]]), be = So.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
be.interceptors.request.use((e) => e);
|
|
50
|
+
be.interceptors.response.use((e) => {
|
|
51
51
|
const { headers: t, method: o } = e.config, { code: n, message: s } = e.data, { "No-Success-Message": r } = t, l = o !== "get";
|
|
52
|
-
return n === 0 ? (l && !r &&
|
|
52
|
+
return n === 0 ? (l && !r && lt({
|
|
53
53
|
message: s,
|
|
54
54
|
type: "success"
|
|
55
|
-
}), Promise.resolve(e)) : (
|
|
55
|
+
}), Promise.resolve(e)) : (lt({
|
|
56
56
|
type: "error",
|
|
57
57
|
message: s
|
|
58
58
|
}), Promise.reject(new Error(`${n}`)));
|
|
@@ -67,7 +67,7 @@ de.interceptors.response.use((e) => {
|
|
|
67
67
|
window.location.href = `${i}/?from=${a}`;
|
|
68
68
|
}
|
|
69
69
|
const { message: r, error: l } = o.data;
|
|
70
|
-
|
|
70
|
+
lt({
|
|
71
71
|
type: "error",
|
|
72
72
|
message: r || l
|
|
73
73
|
});
|
|
@@ -77,32 +77,32 @@ de.interceptors.response.use((e) => {
|
|
|
77
77
|
const Rt = () => {
|
|
78
78
|
const { origin: e } = window.location;
|
|
79
79
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
80
|
-
},
|
|
81
|
-
function
|
|
82
|
-
return
|
|
80
|
+
}, Gt = Rt();
|
|
81
|
+
function Mo() {
|
|
82
|
+
return be.get(`//${Gt}/api/passport/service/v1/account`);
|
|
83
83
|
}
|
|
84
84
|
function Uo() {
|
|
85
|
-
return
|
|
85
|
+
return be.delete(`//${Gt}/api/passport/service/v1/login`);
|
|
86
86
|
}
|
|
87
87
|
function To() {
|
|
88
|
-
return
|
|
88
|
+
return be.get("https://console.vancone.com/api/console/app-group?pageSize=1000");
|
|
89
89
|
}
|
|
90
90
|
function Do() {
|
|
91
|
-
return
|
|
91
|
+
return be.get("https://console.vancone.com/api/console/app?pageSize=1000");
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Fo = {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
width: "32",
|
|
96
96
|
height: "32",
|
|
97
97
|
class: "icon",
|
|
98
98
|
viewBox: "0 0 1024 1024"
|
|
99
99
|
};
|
|
100
|
-
function
|
|
101
|
-
return p(),
|
|
102
|
-
|
|
100
|
+
function Ro(e, t) {
|
|
101
|
+
return p(), M("svg", Fo, t[0] || (t[0] = [
|
|
102
|
+
v("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
|
|
103
103
|
]));
|
|
104
104
|
}
|
|
105
|
-
const Go = { render:
|
|
105
|
+
const Go = { render: Ro }, Lo = {
|
|
106
106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
107
107
|
width: "32",
|
|
108
108
|
height: "32",
|
|
@@ -110,8 +110,8 @@ const Go = { render: Fo }, Lo = {
|
|
|
110
110
|
viewBox: "0 0 1024 1024"
|
|
111
111
|
};
|
|
112
112
|
function jo(e, t) {
|
|
113
|
-
return p(),
|
|
114
|
-
|
|
113
|
+
return p(), M("svg", Lo, t[0] || (t[0] = [
|
|
114
|
+
v("path", { d: "M487.01 113.079a56.076 56.076 0 0 1 73.216 21.918l1.901 3.536 100.401 203.215L886.93 374.32a56.076 56.076 0 0 1 33.939 92.647l-2.877 3.024-162.329 158.061L793.99 851.31a56.076 56.076 0 0 1-77.726 60.855l-3.609-1.707-200.801-105.472-200.802 105.448a56.076 56.076 0 0 1-81.871-55.345l.512-3.78 38.351-223.256-162.328-158.061a56.076 56.076 0 0 1 27.282-94.989l3.78-.682 224.377-32.573L461.58 138.533a56.08 56.08 0 0 1 25.43-25.454M409.722 408.6l-228.206 33.134 165.132 160.744-39.01 227.133 204.216-107.252 204.19 107.252-39.01-227.133 165.133-160.744L613.96 408.6 511.854 201.9 409.698 408.6z" }, null, -1)
|
|
115
115
|
]));
|
|
116
116
|
}
|
|
117
117
|
const zo = { render: jo }, qo = {
|
|
@@ -122,20 +122,20 @@ const zo = { render: jo }, qo = {
|
|
|
122
122
|
viewBox: "0 0 1024 1024"
|
|
123
123
|
};
|
|
124
124
|
function Bo(e, t) {
|
|
125
|
-
return p(),
|
|
126
|
-
|
|
125
|
+
return p(), M("svg", qo, t[0] || (t[0] = [
|
|
126
|
+
v("path", { d: "M512 109.714c222.184 0 402.286 180.102 402.286 402.286S734.184 914.286 512 914.286l-2.901-.122c-104.546-8.314-189.416-43.52-253.075-105.13l-.024 80.87h-73.143V658.287h207.238v73.143H283.99c52.858 65.048 128.561 101.4 229.45 109.714l7.63-.122C698.662 836.218 841.144 690.737 841.144 512c0-181.784-147.359-329.143-329.143-329.143S182.857 330.216 182.857 512h-73.143c0-222.184 180.102-402.286 402.286-402.286m-48.762 182.857h73.143V475.43h182.857v73.142h-256z" }, null, -1)
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
129
129
|
const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class: "catalog-wrapper" }, Yo = { class: "service-list" }, Qo = { class: "app-icon-container" }, Ko = ["href"], Xo = ["innerHTML"], Zo = {
|
|
130
130
|
key: 1,
|
|
131
131
|
class: "app-icon"
|
|
132
|
-
}, en = /* @__PURE__ */
|
|
132
|
+
}, en = /* @__PURE__ */ we({
|
|
133
133
|
__name: "AppCatalog",
|
|
134
134
|
props: {
|
|
135
135
|
visible: { type: Boolean }
|
|
136
136
|
},
|
|
137
137
|
setup(e) {
|
|
138
|
-
const t =
|
|
138
|
+
const t = pe([]);
|
|
139
139
|
function o() {
|
|
140
140
|
To().then(({ data: n }) => {
|
|
141
141
|
t.splice(0, t.length, ...n.data.list), Do().then(({ data: s }) => {
|
|
@@ -147,45 +147,45 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
return o(), (n, s) => {
|
|
150
|
-
const r =
|
|
151
|
-
return p(),
|
|
152
|
-
|
|
150
|
+
const r = O("el-input"), l = O("el-scrollbar"), a = O("el-tab-pane"), i = O("el-tabs");
|
|
151
|
+
return p(), M("div", Jo, [
|
|
152
|
+
_(i, { "tab-position": "left" }, {
|
|
153
153
|
default: m(() => [
|
|
154
|
-
|
|
154
|
+
_(a, null, {
|
|
155
155
|
label: m(() => [
|
|
156
|
-
|
|
156
|
+
_(k(Go), { class: "left-icon" })
|
|
157
157
|
]),
|
|
158
158
|
default: m(() => [
|
|
159
|
-
s[0] || (s[0] =
|
|
160
|
-
|
|
159
|
+
s[0] || (s[0] = v("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
160
|
+
_(r, {
|
|
161
161
|
class: "search-box",
|
|
162
|
-
"prefix-icon": k(
|
|
162
|
+
"prefix-icon": k(Dt),
|
|
163
163
|
placeholder: "Search apps"
|
|
164
164
|
}, null, 8, ["prefix-icon"]),
|
|
165
|
-
|
|
165
|
+
_(l, {
|
|
166
166
|
class: "right-area",
|
|
167
167
|
style: { width: "100%", height: "400px" }
|
|
168
168
|
}, {
|
|
169
169
|
default: m(() => [
|
|
170
|
-
|
|
171
|
-
(p(!0),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
(p(!0),
|
|
175
|
-
var
|
|
176
|
-
return p(),
|
|
177
|
-
style:
|
|
170
|
+
v("div", Wo, [
|
|
171
|
+
(p(!0), M(se, null, he(t, (d) => (p(), M("div", Yo, [
|
|
172
|
+
v("h1", null, D(d.name), 1),
|
|
173
|
+
v("div", Qo, [
|
|
174
|
+
(p(!0), M(se, null, he(d.apps, (S) => {
|
|
175
|
+
var w, N;
|
|
176
|
+
return p(), M("a", {
|
|
177
|
+
style: Re([{ "text-decoration": "none" }, { pointerEvents: ((w = S.homepageUrl) == null ? void 0 : w.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
|
-
href:
|
|
179
|
+
href: S.homepageUrl
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
S.iconSvg !== void 0 ? (p(), M("div", {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "app-icon",
|
|
184
|
-
innerHTML:
|
|
185
|
-
}, null, 8, Xo)) : (p(),
|
|
186
|
-
|
|
187
|
-
style:
|
|
188
|
-
}, D(
|
|
184
|
+
innerHTML: S.iconSvg
|
|
185
|
+
}, null, 8, Xo)) : (p(), M("div", Zo, " ")),
|
|
186
|
+
v("h2", {
|
|
187
|
+
style: Re({ color: ((N = S.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, D(S.name), 5)
|
|
189
189
|
], 12, Ko);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
@@ -197,21 +197,21 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}),
|
|
200
|
-
|
|
200
|
+
_(a, null, {
|
|
201
201
|
label: m(() => [
|
|
202
|
-
|
|
202
|
+
_(k(zo), { class: "left-icon" })
|
|
203
203
|
]),
|
|
204
204
|
default: m(() => [
|
|
205
|
-
s[1] || (s[1] =
|
|
205
|
+
s[1] || (s[1] = v("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
208
|
}),
|
|
209
|
-
|
|
209
|
+
_(a, null, {
|
|
210
210
|
label: m(() => [
|
|
211
|
-
|
|
211
|
+
_(k(Ho), { class: "left-icon" })
|
|
212
212
|
]),
|
|
213
213
|
default: m(() => [
|
|
214
|
-
s[2] || (s[2] =
|
|
214
|
+
s[2] || (s[2] = v("h1", { class: "catalog-title" }, "Recently", -1))
|
|
215
215
|
]),
|
|
216
216
|
_: 1
|
|
217
217
|
})
|
|
@@ -221,7 +221,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
221
221
|
]);
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
}), tn = /* @__PURE__ */
|
|
224
|
+
}), tn = /* @__PURE__ */ ve(en, [["__scopeId", "data-v-ef746334"]]), on = {
|
|
225
225
|
common: {
|
|
226
226
|
header: {
|
|
227
227
|
product: "Products",
|
|
@@ -299,7 +299,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
299
299
|
yes: "是"
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
},
|
|
302
|
+
}, ot = Po({
|
|
303
303
|
legacy: !1,
|
|
304
304
|
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
305
305
|
messages: {
|
|
@@ -312,8 +312,8 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
312
312
|
viewBox: "0 0 32 32"
|
|
313
313
|
};
|
|
314
314
|
function rn(e, t) {
|
|
315
|
-
return p(),
|
|
316
|
-
|
|
315
|
+
return p(), M("svg", sn, t[0] || (t[0] = [
|
|
316
|
+
v("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)
|
|
317
317
|
]));
|
|
318
318
|
}
|
|
319
319
|
const an = { render: rn }, ln = {
|
|
@@ -324,8 +324,8 @@ const an = { render: rn }, ln = {
|
|
|
324
324
|
viewBox: "0 0 1024 1024"
|
|
325
325
|
};
|
|
326
326
|
function cn(e, t) {
|
|
327
|
-
return p(),
|
|
328
|
-
|
|
327
|
+
return p(), M("svg", ln, t[0] || (t[0] = [
|
|
328
|
+
v("path", { d: "M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906" }, null, -1)
|
|
329
329
|
]));
|
|
330
330
|
}
|
|
331
331
|
const un = { render: cn }, dn = {
|
|
@@ -336,8 +336,8 @@ const un = { render: cn }, dn = {
|
|
|
336
336
|
viewBox: "0 0 1024 1024"
|
|
337
337
|
};
|
|
338
338
|
function pn(e, t) {
|
|
339
|
-
return p(),
|
|
340
|
-
|
|
339
|
+
return p(), M("svg", dn, t[0] || (t[0] = [
|
|
340
|
+
v("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
341
|
]));
|
|
342
342
|
}
|
|
343
343
|
const fn = { render: pn }, mn = {
|
|
@@ -346,23 +346,23 @@ const fn = { render: pn }, mn = {
|
|
|
346
346
|
viewBox: "0 0 32 32"
|
|
347
347
|
};
|
|
348
348
|
function hn(e, t) {
|
|
349
|
-
return p(),
|
|
350
|
-
|
|
349
|
+
return p(), M("svg", mn, t[0] || (t[0] = [
|
|
350
|
+
v("path", {
|
|
351
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
352
|
style: { fill: "none", "stroke-width": "3", "stroke-miterlimit": "10" }
|
|
353
353
|
}, null, -1)
|
|
354
354
|
]));
|
|
355
355
|
}
|
|
356
|
-
const _n = { render: hn }, gn = { class: "header" },
|
|
356
|
+
const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn = { 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"], En = /* @__PURE__ */ we({
|
|
357
357
|
__name: "Header",
|
|
358
358
|
props: {
|
|
359
359
|
title: {},
|
|
360
360
|
helpDocUrl: {}
|
|
361
361
|
},
|
|
362
362
|
setup(e) {
|
|
363
|
-
const { t } =
|
|
364
|
-
|
|
365
|
-
const i =
|
|
363
|
+
const { t } = We(), o = A(), n = A(), s = A(), r = A(), l = A(!1), a = e;
|
|
364
|
+
A(!1);
|
|
365
|
+
const i = A(""), d = A(ot.global.locale), S = pe([
|
|
366
366
|
{
|
|
367
367
|
id: "en",
|
|
368
368
|
name: "English"
|
|
@@ -372,51 +372,51 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
372
372
|
name: "简体中文"
|
|
373
373
|
}
|
|
374
374
|
]);
|
|
375
|
-
|
|
376
|
-
i.value = decodeURIComponent(
|
|
375
|
+
At(() => {
|
|
376
|
+
i.value = decodeURIComponent(w("passport_username").replace(/\+/g, " ")), i.value === "" && Mo().then(({ data: j }) => {
|
|
377
377
|
var I;
|
|
378
|
-
|
|
378
|
+
j.code == 0 && (i.value = (I = j.data.name) != null ? I : j.data.displayId);
|
|
379
379
|
});
|
|
380
380
|
});
|
|
381
|
-
function
|
|
382
|
-
for (var I =
|
|
383
|
-
for (var
|
|
384
|
-
if (
|
|
385
|
-
return
|
|
381
|
+
function w(j) {
|
|
382
|
+
for (var I = j + "=", K = document.cookie.split(";"), W = 0; W < K.length; W++) {
|
|
383
|
+
for (var Y = K[W]; Y.charAt(0) == " "; ) Y = Y.substring(1);
|
|
384
|
+
if (Y.indexOf(I) != -1)
|
|
385
|
+
return Y.substring(I.length, Y.length);
|
|
386
386
|
}
|
|
387
387
|
return "";
|
|
388
388
|
}
|
|
389
389
|
function N() {
|
|
390
390
|
Uo().then(() => {
|
|
391
|
-
const
|
|
392
|
-
window.location.href = `//${Rt()}/?from=${
|
|
391
|
+
const j = escape(window.location.href);
|
|
392
|
+
window.location.href = `//${Rt()}/?from=${j}#login`;
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
395
|
+
function U(j) {
|
|
396
|
+
ot.global.locale.value = j, d.value = j, localStorage.setItem("locale", j);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function B() {
|
|
399
399
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function F() {
|
|
402
402
|
window.open(a.helpDocUrl, "_blank");
|
|
403
403
|
}
|
|
404
|
-
return (
|
|
405
|
-
const
|
|
406
|
-
return p(),
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
404
|
+
return (j, I) => {
|
|
405
|
+
const K = O("el-popover"), W = O("el-tooltip"), Y = O("el-avatar"), re = O("el-menu-item"), C = O("el-icon"), g = O("el-menu"), b = O("el-drawer");
|
|
406
|
+
return p(), M(se, null, [
|
|
407
|
+
v("div", gn, [
|
|
408
|
+
v("div", bn, [
|
|
409
|
+
v("div", {
|
|
410
410
|
ref_key: "appCatalogButtonRef",
|
|
411
411
|
ref: r,
|
|
412
412
|
class: "icon-wrapper",
|
|
413
413
|
style: { "margin-left": "8px" }
|
|
414
414
|
}, [
|
|
415
|
-
|
|
415
|
+
_(k(an))
|
|
416
416
|
], 512),
|
|
417
|
-
|
|
417
|
+
v("h1", null, D(j.title), 1)
|
|
418
418
|
]),
|
|
419
|
-
|
|
419
|
+
_(K, {
|
|
420
420
|
class: "app-popover",
|
|
421
421
|
"virtual-ref": r.value,
|
|
422
422
|
trigger: "click",
|
|
@@ -424,67 +424,67 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
424
424
|
"popper-style": "width: 500px; height: 500px; padding: 0; inset: 49px auto auto 0px"
|
|
425
425
|
}, {
|
|
426
426
|
default: m(() => [
|
|
427
|
-
|
|
427
|
+
_(tn, { visible: !0 })
|
|
428
428
|
]),
|
|
429
429
|
_: 1
|
|
430
430
|
}, 8, ["virtual-ref"]),
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
v("div", vn, [
|
|
432
|
+
_(W, {
|
|
433
433
|
effect: "dark",
|
|
434
434
|
content: k(t)("common.header.workbench"),
|
|
435
435
|
placement: "bottom"
|
|
436
436
|
}, {
|
|
437
437
|
default: m(() => [
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
v("div", yn, [
|
|
439
|
+
_(k(_n))
|
|
440
440
|
])
|
|
441
441
|
]),
|
|
442
442
|
_: 1
|
|
443
443
|
}, 8, ["content"]),
|
|
444
|
-
|
|
444
|
+
_(W, {
|
|
445
445
|
effect: "dark",
|
|
446
446
|
content: k(t)("common.header.help"),
|
|
447
447
|
placement: "bottom"
|
|
448
448
|
}, {
|
|
449
449
|
default: m(() => [
|
|
450
|
-
a.helpDocUrl !== void 0 ? (p(),
|
|
450
|
+
a.helpDocUrl !== void 0 ? (p(), M("div", {
|
|
451
451
|
key: 0,
|
|
452
452
|
class: "icon-wrapper",
|
|
453
|
-
onClick:
|
|
453
|
+
onClick: F
|
|
454
454
|
}, [
|
|
455
|
-
|
|
456
|
-
])) :
|
|
455
|
+
_(k(un))
|
|
456
|
+
])) : J("", !0)
|
|
457
457
|
]),
|
|
458
458
|
_: 1
|
|
459
459
|
}, 8, ["content"]),
|
|
460
|
-
|
|
460
|
+
_(W, {
|
|
461
461
|
effect: "dark",
|
|
462
462
|
content: k(t)("common.header.notification"),
|
|
463
463
|
placement: "bottom"
|
|
464
464
|
}, {
|
|
465
465
|
default: m(() => [
|
|
466
|
-
|
|
466
|
+
v("div", {
|
|
467
467
|
class: "icon-wrapper",
|
|
468
|
-
onClick: I[0] || (I[0] = (
|
|
468
|
+
onClick: I[0] || (I[0] = (x) => l.value = !0)
|
|
469
469
|
}, [
|
|
470
|
-
|
|
470
|
+
_(k(fn))
|
|
471
471
|
])
|
|
472
472
|
]),
|
|
473
473
|
_: 1
|
|
474
474
|
}, 8, ["content"]),
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
v("div", wn, [
|
|
476
|
+
_(Y, {
|
|
477
477
|
size: 30,
|
|
478
478
|
src: "",
|
|
479
479
|
ref_key: "avatarRef",
|
|
480
480
|
ref: o
|
|
481
481
|
}, {
|
|
482
482
|
default: m(() => [
|
|
483
|
-
|
|
483
|
+
v("span", Sn, D(i.value.substring(0, 2)), 1)
|
|
484
484
|
]),
|
|
485
485
|
_: 1
|
|
486
486
|
}, 512),
|
|
487
|
-
|
|
487
|
+
_(K, {
|
|
488
488
|
teleported: !1,
|
|
489
489
|
width: "280",
|
|
490
490
|
effect: "dark",
|
|
@@ -495,43 +495,43 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
495
495
|
"virtual-triggering": ""
|
|
496
496
|
}, {
|
|
497
497
|
default: m(() => [
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
v("div", Cn, [
|
|
499
|
+
_(Y, {
|
|
500
500
|
size: 48,
|
|
501
501
|
src: ""
|
|
502
502
|
}, {
|
|
503
503
|
default: m(() => [
|
|
504
|
-
|
|
504
|
+
v("span", kn, D(i.value.substring(0, 2)), 1)
|
|
505
505
|
]),
|
|
506
506
|
_: 1
|
|
507
507
|
}),
|
|
508
|
-
|
|
508
|
+
v("span", null, D(i.value), 1)
|
|
509
509
|
]),
|
|
510
|
-
|
|
510
|
+
_(g, { class: "user-menu" }, {
|
|
511
511
|
default: m(() => [
|
|
512
|
-
|
|
512
|
+
_(re, { onClick: B }, {
|
|
513
513
|
default: m(() => [
|
|
514
|
-
|
|
514
|
+
Z(D(k(t)("common.header.userCenter")), 1)
|
|
515
515
|
]),
|
|
516
516
|
_: 1
|
|
517
517
|
}),
|
|
518
|
-
|
|
518
|
+
_(re, {
|
|
519
519
|
ref_key: "switchLanguageRef",
|
|
520
520
|
ref: s,
|
|
521
521
|
style: { display: "flext", "justify-content": "space-between" }
|
|
522
522
|
}, {
|
|
523
523
|
default: m(() => [
|
|
524
|
-
|
|
525
|
-
|
|
524
|
+
v("span", null, D(k(t)("common.header.switchLanguage")), 1),
|
|
525
|
+
_(C, { style: { left: "15px" } }, {
|
|
526
526
|
default: m(() => [
|
|
527
|
-
|
|
527
|
+
_(k(ko))
|
|
528
528
|
]),
|
|
529
529
|
_: 1
|
|
530
530
|
})
|
|
531
531
|
]),
|
|
532
532
|
_: 1
|
|
533
533
|
}, 512),
|
|
534
|
-
|
|
534
|
+
_(K, {
|
|
535
535
|
teleported: !1,
|
|
536
536
|
width: "150",
|
|
537
537
|
effect: "dark",
|
|
@@ -543,27 +543,27 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
543
543
|
"popper-style": "height: 80px; left: -165px"
|
|
544
544
|
}, {
|
|
545
545
|
default: m(() => [
|
|
546
|
-
(p(!0),
|
|
546
|
+
(p(!0), M(se, null, he(S, (x) => (p(), M("div", {
|
|
547
547
|
class: "select-list",
|
|
548
|
-
onClick: (u) =>
|
|
548
|
+
onClick: (u) => U(x.id)
|
|
549
549
|
}, [
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
v("span", null, D(x.name), 1),
|
|
551
|
+
x.id === d.value ? (p(), V(C, {
|
|
552
552
|
key: 0,
|
|
553
553
|
style: { color: "#8ba74f" }
|
|
554
554
|
}, {
|
|
555
555
|
default: m(() => [
|
|
556
|
-
|
|
556
|
+
_(k(Oo))
|
|
557
557
|
]),
|
|
558
558
|
_: 1
|
|
559
|
-
})) :
|
|
559
|
+
})) : J("", !0)
|
|
560
560
|
], 8, On))), 256))
|
|
561
561
|
]),
|
|
562
562
|
_: 1
|
|
563
563
|
}, 8, ["virtual-ref"]),
|
|
564
|
-
|
|
564
|
+
_(re, { onClick: N }, {
|
|
565
565
|
default: m(() => [
|
|
566
|
-
|
|
566
|
+
Z(D(k(t)("common.header.signOut")), 1)
|
|
567
567
|
]),
|
|
568
568
|
_: 1
|
|
569
569
|
})
|
|
@@ -576,27 +576,27 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
576
576
|
])
|
|
577
577
|
])
|
|
578
578
|
]),
|
|
579
|
-
|
|
579
|
+
_(b, {
|
|
580
580
|
modelValue: l.value,
|
|
581
|
-
"onUpdate:modelValue": I[1] || (I[1] = (
|
|
581
|
+
"onUpdate:modelValue": I[1] || (I[1] = (x) => l.value = x),
|
|
582
582
|
direction: "rtl",
|
|
583
583
|
title: "Message Center"
|
|
584
584
|
}, null, 8, ["modelValue"])
|
|
585
585
|
], 64);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
}),
|
|
588
|
+
}), Lt = /* @__PURE__ */ ve(En, [["__scopeId", "data-v-6fc40dbc"]]), $n = {
|
|
589
589
|
class: "menu-icon-wrapper",
|
|
590
590
|
style: { "margin-left": "3px" }
|
|
591
|
-
},
|
|
591
|
+
}, xn = { class: "menu-icon-wrapper" }, Pn = /* @__PURE__ */ we({
|
|
592
592
|
__name: "SideMenuItem",
|
|
593
593
|
props: {
|
|
594
594
|
menu: {}
|
|
595
595
|
},
|
|
596
596
|
setup(e) {
|
|
597
597
|
const t = e;
|
|
598
|
-
return
|
|
599
|
-
const s =
|
|
598
|
+
return ze(() => console.log("menu", t.menu)), (o, n) => {
|
|
599
|
+
const s = O("SideMenuItem", !0), r = O("el-sub-menu"), l = O("el-menu-item");
|
|
600
600
|
return o.menu.children && o.menu.children.length > 0 ? (p(), V(r, {
|
|
601
601
|
key: 0,
|
|
602
602
|
index: o.menu.path
|
|
@@ -604,14 +604,14 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
604
604
|
title: m(() => {
|
|
605
605
|
var a, i, d;
|
|
606
606
|
return [
|
|
607
|
-
|
|
608
|
-
(p(), V(
|
|
607
|
+
v("div", $n, [
|
|
608
|
+
(p(), V(tt((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
609
609
|
]),
|
|
610
|
-
|
|
610
|
+
v("span", null, D(o.$t((d = (i = o.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
|
|
611
611
|
];
|
|
612
612
|
}),
|
|
613
613
|
default: m(() => [
|
|
614
|
-
(p(!0),
|
|
614
|
+
(p(!0), M(se, null, he(o.menu.children, (a) => (p(), V(s, {
|
|
615
615
|
key: a.path,
|
|
616
616
|
route: a,
|
|
617
617
|
menu: a
|
|
@@ -626,14 +626,14 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
626
626
|
title: m(() => {
|
|
627
627
|
var a, i;
|
|
628
628
|
return [
|
|
629
|
-
|
|
629
|
+
v("span", null, D(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
|
|
630
630
|
];
|
|
631
631
|
}),
|
|
632
632
|
default: m(() => {
|
|
633
633
|
var a;
|
|
634
634
|
return [
|
|
635
|
-
|
|
636
|
-
(p(), V(
|
|
635
|
+
v("div", xn, [
|
|
636
|
+
(p(), V(tt((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
637
637
|
])
|
|
638
638
|
];
|
|
639
639
|
}),
|
|
@@ -641,34 +641,34 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
641
641
|
}, 8, ["index"]));
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
}), In = /* @__PURE__ */
|
|
645
|
-
var
|
|
646
|
-
function
|
|
644
|
+
}), In = /* @__PURE__ */ ve(Pn, [["__scopeId", "data-v-99da7c39"]]), ge = A({}), Vn = {}, Ct = A([]);
|
|
645
|
+
var jt = !1;
|
|
646
|
+
function Qe(e, t, o) {
|
|
647
647
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function it(e, t) {
|
|
650
650
|
if (Array.isArray(e)) {
|
|
651
651
|
e.splice(t, 1);
|
|
652
652
|
return;
|
|
653
653
|
}
|
|
654
654
|
delete e[t];
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
656
|
+
function An() {
|
|
657
|
+
return zt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function zt() {
|
|
660
660
|
return typeof navigator != "undefined" && typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : {};
|
|
661
661
|
}
|
|
662
|
-
const Nn = typeof Proxy == "function",
|
|
663
|
-
let
|
|
662
|
+
const Nn = typeof Proxy == "function", Mn = "devtools-plugin:setup", Un = "plugin:settings:set";
|
|
663
|
+
let Ue, ut;
|
|
664
664
|
function Tn() {
|
|
665
665
|
var e;
|
|
666
|
-
return
|
|
666
|
+
return Ue !== void 0 || (typeof window != "undefined" && window.performance ? (Ue = !0, ut = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ue = !0, ut = globalThis.perf_hooks.performance) : Ue = !1), Ue;
|
|
667
667
|
}
|
|
668
668
|
function Dn() {
|
|
669
|
-
return Tn() ?
|
|
669
|
+
return Tn() ? ut.now() : Date.now();
|
|
670
670
|
}
|
|
671
|
-
class
|
|
671
|
+
class Fn {
|
|
672
672
|
constructor(t, o) {
|
|
673
673
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = o;
|
|
674
674
|
const n = {};
|
|
@@ -723,7 +723,7 @@ class Rn {
|
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
setRealTarget(t) {
|
|
726
|
-
return
|
|
726
|
+
return Ce(this, null, function* () {
|
|
727
727
|
this.target = t;
|
|
728
728
|
for (const o of this.onQueue)
|
|
729
729
|
this.target.on[o.method](...o.args);
|
|
@@ -732,12 +732,12 @@ class Rn {
|
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
const o = e, n =
|
|
735
|
+
function qt(e, t) {
|
|
736
|
+
const o = e, n = zt(), s = An(), r = Nn && o.enableEarlyProxy;
|
|
737
737
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
738
|
-
s.emit(
|
|
738
|
+
s.emit(Mn, e, t);
|
|
739
739
|
else {
|
|
740
|
-
const l = r ? new
|
|
740
|
+
const l = r ? new Fn(o, s) : null;
|
|
741
741
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
742
742
|
pluginDescriptor: o,
|
|
743
743
|
setupFn: t,
|
|
@@ -750,31 +750,31 @@ function zt(e, t) {
|
|
|
750
750
|
* (c) 2024 Eduardo San Martin Morote
|
|
751
751
|
* @license MIT
|
|
752
752
|
*/
|
|
753
|
-
let
|
|
754
|
-
const
|
|
753
|
+
let je;
|
|
754
|
+
const He = (e) => je = e, Bt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
755
755
|
/* istanbul ignore next */
|
|
756
756
|
Symbol()
|
|
757
757
|
);
|
|
758
|
-
function
|
|
758
|
+
function Me(e) {
|
|
759
759
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
760
760
|
}
|
|
761
|
-
var
|
|
761
|
+
var Se;
|
|
762
762
|
(function(e) {
|
|
763
763
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
764
|
-
})(
|
|
765
|
-
const
|
|
766
|
-
function
|
|
764
|
+
})(Se || (Se = {}));
|
|
765
|
+
const Ae = 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 Rn(e, { autoBom: t = !1 } = {}) {
|
|
767
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
768
|
}
|
|
769
769
|
function mt(e, t, o) {
|
|
770
770
|
const n = new XMLHttpRequest();
|
|
771
771
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
772
|
-
|
|
772
|
+
Wt(n.response, t, o);
|
|
773
773
|
}, n.onerror = function() {
|
|
774
774
|
console.error("could not download file");
|
|
775
775
|
}, n.send();
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function Ht(e) {
|
|
778
778
|
const t = new XMLHttpRequest();
|
|
779
779
|
t.open("HEAD", e, !1);
|
|
780
780
|
try {
|
|
@@ -783,7 +783,7 @@ function Bt(e) {
|
|
|
783
783
|
}
|
|
784
784
|
return t.status >= 200 && t.status <= 299;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function Ke(e) {
|
|
787
787
|
try {
|
|
788
788
|
e.dispatchEvent(new MouseEvent("click"));
|
|
789
789
|
} catch (t) {
|
|
@@ -791,11 +791,11 @@ function Qe(e) {
|
|
|
791
791
|
o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(o);
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
|
-
const
|
|
794
|
+
const Xe = typeof navigator == "object" ? navigator : { userAgent: "" }, Jt = /Macintosh/.test(Xe.userAgent) && /AppleWebKit/.test(Xe.userAgent) && !/Safari/.test(Xe.userAgent), Wt = Ae ? (
|
|
795
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 && !
|
|
796
|
+
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Jt ? Gn : (
|
|
797
797
|
// Use msSaveOrOpenBlob as a second approach
|
|
798
|
-
"msSaveOrOpenBlob" in
|
|
798
|
+
"msSaveOrOpenBlob" in Xe ? Ln : (
|
|
799
799
|
// Fallback to using FileReader and a popup
|
|
800
800
|
jn
|
|
801
801
|
)
|
|
@@ -804,30 +804,30 @@ const Ke = typeof navigator == "object" ? navigator : { userAgent: "" }, Ht = /M
|
|
|
804
804
|
};
|
|
805
805
|
function Gn(e, t = "download", o) {
|
|
806
806
|
const n = document.createElement("a");
|
|
807
|
-
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ?
|
|
807
|
+
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Ht(n.href) ? mt(e, t, o) : (n.target = "_blank", Ke(n)) : Ke(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
808
808
|
URL.revokeObjectURL(n.href);
|
|
809
809
|
}, 4e4), setTimeout(function() {
|
|
810
|
-
|
|
810
|
+
Ke(n);
|
|
811
811
|
}, 0));
|
|
812
812
|
}
|
|
813
813
|
function Ln(e, t = "download", o) {
|
|
814
814
|
if (typeof e == "string")
|
|
815
|
-
if (
|
|
815
|
+
if (Ht(e))
|
|
816
816
|
mt(e, t, o);
|
|
817
817
|
else {
|
|
818
818
|
const n = document.createElement("a");
|
|
819
819
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
820
|
-
|
|
820
|
+
Ke(n);
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
else
|
|
824
|
-
navigator.msSaveOrOpenBlob(
|
|
824
|
+
navigator.msSaveOrOpenBlob(Rn(e, o), t);
|
|
825
825
|
}
|
|
826
826
|
function jn(e, t, o, n) {
|
|
827
827
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
828
828
|
return mt(e, t, o);
|
|
829
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 ||
|
|
830
|
+
if ((l || s && r || Jt) && typeof FileReader != "undefined") {
|
|
831
831
|
const a = new FileReader();
|
|
832
832
|
a.onloadend = function() {
|
|
833
833
|
let i = a.result;
|
|
@@ -842,102 +842,102 @@ function jn(e, t, o, n) {
|
|
|
842
842
|
}, 4e4);
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function oe(e, t) {
|
|
846
846
|
const o = "🍍 " + e;
|
|
847
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
848
|
}
|
|
849
849
|
function ht(e) {
|
|
850
850
|
return "_a" in e && "install" in e;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Yt() {
|
|
853
853
|
if (!("clipboard" in navigator))
|
|
854
|
-
return
|
|
854
|
+
return oe("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
856
|
+
function Qt(e) {
|
|
857
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (oe('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
858
858
|
}
|
|
859
859
|
function zn(e) {
|
|
860
|
-
return
|
|
861
|
-
if (!
|
|
860
|
+
return Ce(this, null, function* () {
|
|
861
|
+
if (!Yt())
|
|
862
862
|
try {
|
|
863
|
-
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
863
|
+
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), oe("Global state copied to clipboard.");
|
|
864
864
|
} catch (t) {
|
|
865
|
-
if (
|
|
865
|
+
if (Qt(t))
|
|
866
866
|
return;
|
|
867
|
-
|
|
867
|
+
oe("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
868
868
|
}
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
function qn(e) {
|
|
872
|
-
return
|
|
873
|
-
if (!
|
|
872
|
+
return Ce(this, null, function* () {
|
|
873
|
+
if (!Yt())
|
|
874
874
|
try {
|
|
875
|
-
|
|
875
|
+
Kt(e, JSON.parse(yield navigator.clipboard.readText())), oe("Global state pasted from clipboard.");
|
|
876
876
|
} catch (t) {
|
|
877
|
-
if (
|
|
877
|
+
if (Qt(t))
|
|
878
878
|
return;
|
|
879
|
-
|
|
879
|
+
oe("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
883
|
function Bn(e) {
|
|
884
|
-
return
|
|
884
|
+
return Ce(this, null, function* () {
|
|
885
885
|
try {
|
|
886
|
-
|
|
886
|
+
Wt(new Blob([JSON.stringify(e.state.value)], {
|
|
887
887
|
type: "text/plain;charset=utf-8"
|
|
888
888
|
}), "pinia-state.json");
|
|
889
889
|
} catch (t) {
|
|
890
|
-
|
|
890
|
+
oe("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
|
-
let
|
|
894
|
+
let ke;
|
|
895
895
|
function Hn() {
|
|
896
|
-
|
|
896
|
+
ke || (ke = document.createElement("input"), ke.type = "file", ke.accept = ".json");
|
|
897
897
|
function e() {
|
|
898
898
|
return new Promise((t, o) => {
|
|
899
|
-
|
|
900
|
-
const n =
|
|
899
|
+
ke.onchange = () => Ce(this, null, function* () {
|
|
900
|
+
const n = ke.files;
|
|
901
901
|
if (!n)
|
|
902
902
|
return t(null);
|
|
903
903
|
const s = n.item(0);
|
|
904
904
|
return t(s ? { text: yield s.text(), file: s } : null);
|
|
905
|
-
}),
|
|
905
|
+
}), ke.oncancel = () => t(null), ke.onerror = o, ke.click();
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
return e;
|
|
909
909
|
}
|
|
910
910
|
function Jn(e) {
|
|
911
|
-
return
|
|
911
|
+
return Ce(this, null, function* () {
|
|
912
912
|
try {
|
|
913
913
|
const o = yield Hn()();
|
|
914
914
|
if (!o)
|
|
915
915
|
return;
|
|
916
916
|
const { text: n, file: s } = o;
|
|
917
|
-
|
|
917
|
+
Kt(e, JSON.parse(n)), oe(`Global state imported from "${s.name}".`);
|
|
918
918
|
} catch (t) {
|
|
919
|
-
|
|
919
|
+
oe("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Kt(e, t) {
|
|
924
924
|
for (const o in t) {
|
|
925
925
|
const n = e.state.value[o];
|
|
926
926
|
n ? Object.assign(n, t[o]) : e.state.value[o] = t[o];
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function ye(e) {
|
|
930
930
|
return {
|
|
931
931
|
_custom: {
|
|
932
932
|
display: e
|
|
933
933
|
}
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
const
|
|
936
|
+
const Xt = "🍍 Pinia (root)", Ze = "_root";
|
|
937
937
|
function Wn(e) {
|
|
938
938
|
return ht(e) ? {
|
|
939
|
-
id:
|
|
940
|
-
label:
|
|
939
|
+
id: Ze,
|
|
940
|
+
label: Xt
|
|
941
941
|
} : {
|
|
942
942
|
id: e.$id,
|
|
943
943
|
label: e.$id
|
|
@@ -986,42 +986,42 @@ function Qn(e) {
|
|
|
986
986
|
operations: [],
|
|
987
987
|
newValue: {}
|
|
988
988
|
}) : {
|
|
989
|
-
operation:
|
|
990
|
-
key:
|
|
989
|
+
operation: ye(e.type),
|
|
990
|
+
key: ye(e.key),
|
|
991
991
|
oldValue: e.oldValue,
|
|
992
992
|
newValue: e.newValue
|
|
993
993
|
} : {};
|
|
994
994
|
}
|
|
995
995
|
function Kn(e) {
|
|
996
996
|
switch (e) {
|
|
997
|
-
case
|
|
997
|
+
case Se.direct:
|
|
998
998
|
return "mutation";
|
|
999
|
-
case
|
|
999
|
+
case Se.patchFunction:
|
|
1000
1000
|
return "$patch";
|
|
1001
|
-
case
|
|
1001
|
+
case Se.patchObject:
|
|
1002
1002
|
return "$patch";
|
|
1003
1003
|
default:
|
|
1004
1004
|
return "unknown";
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
|
-
let
|
|
1008
|
-
const
|
|
1007
|
+
let De = !0;
|
|
1008
|
+
const et = [], Ie = "pinia:mutations", ie = "pinia", { assign: Xn } = Object, nt = (e) => "🍍 " + e;
|
|
1009
1009
|
function Zn(e, t) {
|
|
1010
|
-
|
|
1010
|
+
qt({
|
|
1011
1011
|
id: "dev.esm.pinia",
|
|
1012
1012
|
label: "Pinia 🍍",
|
|
1013
1013
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1014
1014
|
packageName: "pinia",
|
|
1015
1015
|
homepage: "https://pinia.vuejs.org",
|
|
1016
|
-
componentStateTypes:
|
|
1016
|
+
componentStateTypes: et,
|
|
1017
1017
|
app: e
|
|
1018
1018
|
}, (o) => {
|
|
1019
|
-
typeof o.now != "function" &&
|
|
1020
|
-
id:
|
|
1019
|
+
typeof o.now != "function" && oe("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: Ie,
|
|
1021
1021
|
label: "Pinia 🍍",
|
|
1022
1022
|
color: 15064968
|
|
1023
1023
|
}), o.addInspector({
|
|
1024
|
-
id:
|
|
1024
|
+
id: ie,
|
|
1025
1025
|
label: "Pinia 🍍",
|
|
1026
1026
|
icon: "storage",
|
|
1027
1027
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -1035,8 +1035,8 @@ function Zn(e, t) {
|
|
|
1035
1035
|
},
|
|
1036
1036
|
{
|
|
1037
1037
|
icon: "content_paste",
|
|
1038
|
-
action: () =>
|
|
1039
|
-
yield qn(t), o.sendInspectorTree(
|
|
1038
|
+
action: () => Ce(this, null, function* () {
|
|
1039
|
+
yield qn(t), o.sendInspectorTree(ie), o.sendInspectorState(ie);
|
|
1040
1040
|
}),
|
|
1041
1041
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1042
1042
|
},
|
|
@@ -1049,8 +1049,8 @@ function Zn(e, t) {
|
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
1051
1051
|
icon: "folder_open",
|
|
1052
|
-
action: () =>
|
|
1053
|
-
yield Jn(t), o.sendInspectorTree(
|
|
1052
|
+
action: () => Ce(this, null, function* () {
|
|
1053
|
+
yield Jn(t), o.sendInspectorTree(ie), o.sendInspectorState(ie);
|
|
1054
1054
|
}),
|
|
1055
1055
|
tooltip: "Import the state from a JSON file"
|
|
1056
1056
|
}
|
|
@@ -1061,7 +1061,7 @@ function Zn(e, t) {
|
|
|
1061
1061
|
tooltip: 'Reset the state (with "$reset")',
|
|
1062
1062
|
action: (n) => {
|
|
1063
1063
|
const s = t._s.get(n);
|
|
1064
|
-
s ? typeof s.$reset != "function" ?
|
|
1064
|
+
s ? typeof s.$reset != "function" ? oe(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), oe(`Store "${n}" reset.`)) : oe(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
]
|
|
@@ -1071,12 +1071,12 @@ function Zn(e, t) {
|
|
|
1071
1071
|
const l = n.componentInstance.proxy._pStores;
|
|
1072
1072
|
Object.values(l).forEach((a) => {
|
|
1073
1073
|
n.instanceData.state.push({
|
|
1074
|
-
type:
|
|
1074
|
+
type: nt(a.$id),
|
|
1075
1075
|
key: "state",
|
|
1076
1076
|
editable: !0,
|
|
1077
1077
|
value: a._isOptionsAPI ? {
|
|
1078
1078
|
_custom: {
|
|
1079
|
-
value:
|
|
1079
|
+
value: qe(a.$state),
|
|
1080
1080
|
actions: [
|
|
1081
1081
|
{
|
|
1082
1082
|
icon: "restore",
|
|
@@ -1090,14 +1090,14 @@ function Zn(e, t) {
|
|
|
1090
1090
|
Object.keys(a.$state).reduce((i, d) => (i[d] = a.$state[d], i), {})
|
|
1091
1091
|
)
|
|
1092
1092
|
}), a._getters && a._getters.length && n.instanceData.state.push({
|
|
1093
|
-
type:
|
|
1093
|
+
type: nt(a.$id),
|
|
1094
1094
|
key: "getters",
|
|
1095
1095
|
editable: !1,
|
|
1096
1096
|
value: a._getters.reduce((i, d) => {
|
|
1097
1097
|
try {
|
|
1098
1098
|
i[d] = a[d];
|
|
1099
|
-
} catch (
|
|
1100
|
-
i[d] =
|
|
1099
|
+
} catch (S) {
|
|
1100
|
+
i[d] = S;
|
|
1101
1101
|
}
|
|
1102
1102
|
return i;
|
|
1103
1103
|
}, {})
|
|
@@ -1105,48 +1105,48 @@ function Zn(e, t) {
|
|
|
1105
1105
|
});
|
|
1106
1106
|
}
|
|
1107
1107
|
}), o.on.getInspectorTree((n) => {
|
|
1108
|
-
if (n.app === e && n.inspectorId ===
|
|
1108
|
+
if (n.app === e && n.inspectorId === ie) {
|
|
1109
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()) :
|
|
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()) : Xt.toLowerCase().includes(n.filter.toLowerCase())) : s).map(Wn);
|
|
1111
1111
|
}
|
|
1112
1112
|
}), globalThis.$pinia = t, o.on.getInspectorState((n) => {
|
|
1113
|
-
if (n.app === e && n.inspectorId ===
|
|
1114
|
-
const s = n.nodeId ===
|
|
1113
|
+
if (n.app === e && n.inspectorId === ie) {
|
|
1114
|
+
const s = n.nodeId === Ze ? t : t._s.get(n.nodeId);
|
|
1115
1115
|
if (!s)
|
|
1116
1116
|
return;
|
|
1117
|
-
s && (n.nodeId !==
|
|
1117
|
+
s && (n.nodeId !== Ze && (globalThis.$store = qe(s)), n.state = Yn(s));
|
|
1118
1118
|
}
|
|
1119
1119
|
}), o.on.editInspectorState((n, s) => {
|
|
1120
|
-
if (n.app === e && n.inspectorId ===
|
|
1121
|
-
const r = n.nodeId ===
|
|
1120
|
+
if (n.app === e && n.inspectorId === ie) {
|
|
1121
|
+
const r = n.nodeId === Ze ? t : t._s.get(n.nodeId);
|
|
1122
1122
|
if (!r)
|
|
1123
|
-
return
|
|
1123
|
+
return oe(`store "${n.nodeId}" not found`, "error");
|
|
1124
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"),
|
|
1125
|
+
ht(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), De = !1, n.set(r, l, n.state.value), De = !0;
|
|
1126
1126
|
}
|
|
1127
1127
|
}), o.on.editComponentState((n) => {
|
|
1128
1128
|
if (n.type.startsWith("🍍")) {
|
|
1129
1129
|
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1130
1130
|
if (!r)
|
|
1131
|
-
return
|
|
1131
|
+
return oe(`store "${s}" not found`, "error");
|
|
1132
1132
|
const { path: l } = n;
|
|
1133
1133
|
if (l[0] !== "state")
|
|
1134
|
-
return
|
|
1134
|
+
return oe(`Invalid path for store "${s}":
|
|
1135
1135
|
${l}
|
|
1136
1136
|
Only state can be modified.`);
|
|
1137
|
-
l[0] = "$state",
|
|
1137
|
+
l[0] = "$state", De = !1, n.set(r, l, n.state.value), De = !0;
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
1142
|
function es(e, t) {
|
|
1143
|
-
|
|
1143
|
+
et.includes(nt(t.$id)) || et.push(nt(t.$id)), qt({
|
|
1144
1144
|
id: "dev.esm.pinia",
|
|
1145
1145
|
label: "Pinia 🍍",
|
|
1146
1146
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1147
1147
|
packageName: "pinia",
|
|
1148
1148
|
homepage: "https://pinia.vuejs.org",
|
|
1149
|
-
componentStateTypes:
|
|
1149
|
+
componentStateTypes: et,
|
|
1150
1150
|
app: e,
|
|
1151
1151
|
settings: {
|
|
1152
1152
|
logStoreChanges: {
|
|
@@ -1163,58 +1163,58 @@ function es(e, t) {
|
|
|
1163
1163
|
}, (o) => {
|
|
1164
1164
|
const n = typeof o.now == "function" ? o.now.bind(o) : Date.now;
|
|
1165
1165
|
t.$onAction(({ after: l, onError: a, name: i, args: d }) => {
|
|
1166
|
-
const
|
|
1166
|
+
const S = Zt++;
|
|
1167
1167
|
o.addTimelineEvent({
|
|
1168
|
-
layerId:
|
|
1168
|
+
layerId: Ie,
|
|
1169
1169
|
event: {
|
|
1170
1170
|
time: n(),
|
|
1171
1171
|
title: "🛫 " + i,
|
|
1172
1172
|
subtitle: "start",
|
|
1173
1173
|
data: {
|
|
1174
|
-
store:
|
|
1175
|
-
action:
|
|
1174
|
+
store: ye(t.$id),
|
|
1175
|
+
action: ye(i),
|
|
1176
1176
|
args: d
|
|
1177
1177
|
},
|
|
1178
|
-
groupId:
|
|
1178
|
+
groupId: S
|
|
1179
1179
|
}
|
|
1180
|
-
}), l((
|
|
1181
|
-
|
|
1182
|
-
layerId:
|
|
1180
|
+
}), l((w) => {
|
|
1181
|
+
$e = void 0, o.addTimelineEvent({
|
|
1182
|
+
layerId: Ie,
|
|
1183
1183
|
event: {
|
|
1184
1184
|
time: n(),
|
|
1185
1185
|
title: "🛬 " + i,
|
|
1186
1186
|
subtitle: "end",
|
|
1187
1187
|
data: {
|
|
1188
|
-
store:
|
|
1189
|
-
action:
|
|
1188
|
+
store: ye(t.$id),
|
|
1189
|
+
action: ye(i),
|
|
1190
1190
|
args: d,
|
|
1191
|
-
result:
|
|
1191
|
+
result: w
|
|
1192
1192
|
},
|
|
1193
|
-
groupId:
|
|
1193
|
+
groupId: S
|
|
1194
1194
|
}
|
|
1195
1195
|
});
|
|
1196
|
-
}), a((
|
|
1197
|
-
|
|
1198
|
-
layerId:
|
|
1196
|
+
}), a((w) => {
|
|
1197
|
+
$e = void 0, o.addTimelineEvent({
|
|
1198
|
+
layerId: Ie,
|
|
1199
1199
|
event: {
|
|
1200
1200
|
time: n(),
|
|
1201
1201
|
logType: "error",
|
|
1202
1202
|
title: "💥 " + i,
|
|
1203
1203
|
subtitle: "end",
|
|
1204
1204
|
data: {
|
|
1205
|
-
store:
|
|
1206
|
-
action:
|
|
1205
|
+
store: ye(t.$id),
|
|
1206
|
+
action: ye(i),
|
|
1207
1207
|
args: d,
|
|
1208
|
-
error:
|
|
1208
|
+
error: w
|
|
1209
1209
|
},
|
|
1210
|
-
groupId:
|
|
1210
|
+
groupId: S
|
|
1211
1211
|
}
|
|
1212
1212
|
});
|
|
1213
1213
|
});
|
|
1214
1214
|
}, !0), t._customProperties.forEach((l) => {
|
|
1215
|
-
|
|
1216
|
-
o.notifyComponentUpdate(), o.sendInspectorState(
|
|
1217
|
-
layerId:
|
|
1215
|
+
Ee(() => k(t[l]), (a, i) => {
|
|
1216
|
+
o.notifyComponentUpdate(), o.sendInspectorState(ie), De && o.addTimelineEvent({
|
|
1217
|
+
layerId: Ie,
|
|
1218
1218
|
event: {
|
|
1219
1219
|
time: n(),
|
|
1220
1220
|
title: "Change",
|
|
@@ -1223,20 +1223,20 @@ function es(e, t) {
|
|
|
1223
1223
|
newValue: a,
|
|
1224
1224
|
oldValue: i
|
|
1225
1225
|
},
|
|
1226
|
-
groupId:
|
|
1226
|
+
groupId: $e
|
|
1227
1227
|
}
|
|
1228
1228
|
});
|
|
1229
1229
|
}, { deep: !0 });
|
|
1230
1230
|
}), t.$subscribe(({ events: l, type: a }, i) => {
|
|
1231
|
-
if (o.notifyComponentUpdate(), o.sendInspectorState(
|
|
1231
|
+
if (o.notifyComponentUpdate(), o.sendInspectorState(ie), !De)
|
|
1232
1232
|
return;
|
|
1233
1233
|
const d = {
|
|
1234
1234
|
time: n(),
|
|
1235
1235
|
title: Kn(a),
|
|
1236
|
-
data: Xn({ store:
|
|
1237
|
-
groupId:
|
|
1236
|
+
data: Xn({ store: ye(t.$id) }, Qn(l)),
|
|
1237
|
+
groupId: $e
|
|
1238
1238
|
};
|
|
1239
|
-
a ===
|
|
1239
|
+
a === Se.patchFunction ? d.subtitle = "⤵️" : a === Se.patchObject ? d.subtitle = "🧩" : l && !Array.isArray(l) && (d.subtitle = l.type), l && (d.data["rawEvent(s)"] = {
|
|
1240
1240
|
_custom: {
|
|
1241
1241
|
display: "DebuggerEvent",
|
|
1242
1242
|
type: "object",
|
|
@@ -1244,47 +1244,47 @@ function es(e, t) {
|
|
|
1244
1244
|
value: l
|
|
1245
1245
|
}
|
|
1246
1246
|
}), o.addTimelineEvent({
|
|
1247
|
-
layerId:
|
|
1247
|
+
layerId: Ie,
|
|
1248
1248
|
event: d
|
|
1249
1249
|
});
|
|
1250
1250
|
}, { detached: !0, flush: "sync" });
|
|
1251
1251
|
const s = t._hotUpdate;
|
|
1252
|
-
t._hotUpdate =
|
|
1252
|
+
t._hotUpdate = Ve((l) => {
|
|
1253
1253
|
s(l), o.addTimelineEvent({
|
|
1254
|
-
layerId:
|
|
1254
|
+
layerId: Ie,
|
|
1255
1255
|
event: {
|
|
1256
1256
|
time: n(),
|
|
1257
1257
|
title: "🔥 " + t.$id,
|
|
1258
1258
|
subtitle: "HMR update",
|
|
1259
1259
|
data: {
|
|
1260
|
-
store:
|
|
1261
|
-
info:
|
|
1260
|
+
store: ye(t.$id),
|
|
1261
|
+
info: ye("HMR update")
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
}), o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1264
|
+
}), o.notifyComponentUpdate(), o.sendInspectorTree(ie), o.sendInspectorState(ie);
|
|
1265
1265
|
});
|
|
1266
1266
|
const { $dispose: r } = t;
|
|
1267
1267
|
t.$dispose = () => {
|
|
1268
|
-
r(), o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1269
|
-
}, o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1268
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ie), o.sendInspectorState(ie), o.getSettings().logStoreChanges && oe(`Disposed "${t.$id}" store 🗑`);
|
|
1269
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(ie), o.sendInspectorState(ie), o.getSettings().logStoreChanges && oe(`"${t.$id}" store installed 🆕`);
|
|
1270
1270
|
});
|
|
1271
1271
|
}
|
|
1272
|
-
let
|
|
1272
|
+
let Zt = 0, $e;
|
|
1273
1273
|
function Ot(e, t, o) {
|
|
1274
|
-
const n = t.reduce((s, r) => (s[r] =
|
|
1274
|
+
const n = t.reduce((s, r) => (s[r] = qe(e)[r], s), {});
|
|
1275
1275
|
for (const s in n)
|
|
1276
1276
|
e[s] = function() {
|
|
1277
|
-
const r =
|
|
1277
|
+
const r = Zt, l = o ? new Proxy(e, {
|
|
1278
1278
|
get(...i) {
|
|
1279
|
-
return
|
|
1279
|
+
return $e = r, Reflect.get(...i);
|
|
1280
1280
|
},
|
|
1281
1281
|
set(...i) {
|
|
1282
|
-
return
|
|
1282
|
+
return $e = r, Reflect.set(...i);
|
|
1283
1283
|
}
|
|
1284
1284
|
}) : e;
|
|
1285
|
-
|
|
1285
|
+
$e = r;
|
|
1286
1286
|
const a = n[s].apply(l, arguments);
|
|
1287
|
-
return
|
|
1287
|
+
return $e = void 0, a;
|
|
1288
1288
|
};
|
|
1289
1289
|
}
|
|
1290
1290
|
function ts({ app: e, store: t, options: o }) {
|
|
@@ -1292,7 +1292,7 @@ function ts({ app: e, store: t, options: o }) {
|
|
|
1292
1292
|
if (t._isOptionsAPI = !!o.state, !t._p._testing) {
|
|
1293
1293
|
Ot(t, Object.keys(o.actions), t._isOptionsAPI);
|
|
1294
1294
|
const n = t._hotUpdate;
|
|
1295
|
-
|
|
1295
|
+
qe(t)._hotUpdate = function(s) {
|
|
1296
1296
|
n.apply(this, arguments), Ot(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
@@ -1304,14 +1304,14 @@ function ts({ app: e, store: t, options: o }) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
function os() {
|
|
1307
|
-
const e =
|
|
1307
|
+
const e = Nt(!0), t = e.run(() => A({}));
|
|
1308
1308
|
let o = [], n = [];
|
|
1309
|
-
const s =
|
|
1309
|
+
const s = Ve({
|
|
1310
1310
|
install(r) {
|
|
1311
|
-
|
|
1311
|
+
He(s), s._a = r, r.provide(Bt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae && Zn(r, s), n.forEach((l) => o.push(l)), n = [];
|
|
1312
1312
|
},
|
|
1313
1313
|
use(r) {
|
|
1314
|
-
return !this._a && !
|
|
1314
|
+
return !this._a && !jt ? n.push(r) : o.push(r), this;
|
|
1315
1315
|
},
|
|
1316
1316
|
_p: o,
|
|
1317
1317
|
// it's actually undefined here
|
|
@@ -1323,39 +1323,39 @@ function os() {
|
|
|
1323
1323
|
});
|
|
1324
1324
|
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(ts), s;
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function eo(e, t) {
|
|
1327
1327
|
for (const o in t) {
|
|
1328
1328
|
const n = t[o];
|
|
1329
1329
|
if (!(o in e))
|
|
1330
1330
|
continue;
|
|
1331
1331
|
const s = e[o];
|
|
1332
|
-
|
|
1332
|
+
Me(s) && Me(n) && !Be(n) && !ft(n) ? e[o] = eo(s, n) : e[o] = n;
|
|
1333
1333
|
}
|
|
1334
1334
|
return e;
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1336
|
+
const to = () => {
|
|
1337
1337
|
};
|
|
1338
|
-
function
|
|
1338
|
+
function Et(e, t, o, n = to) {
|
|
1339
1339
|
e.push(t);
|
|
1340
1340
|
const s = () => {
|
|
1341
1341
|
const r = e.indexOf(t);
|
|
1342
1342
|
r > -1 && (e.splice(r, 1), n());
|
|
1343
1343
|
};
|
|
1344
|
-
return !o &&
|
|
1344
|
+
return !o && vo() && yo(s), s;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Te(e, ...t) {
|
|
1347
1347
|
e.slice().forEach((o) => {
|
|
1348
1348
|
o(...t);
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
|
-
const ns = (e) => e(),
|
|
1352
|
-
function
|
|
1351
|
+
const ns = (e) => e(), $t = Symbol(), ct = Symbol();
|
|
1352
|
+
function dt(e, t) {
|
|
1353
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
1354
|
for (const o in t) {
|
|
1355
1355
|
if (!t.hasOwnProperty(o))
|
|
1356
1356
|
continue;
|
|
1357
1357
|
const n = t[o], s = e[o];
|
|
1358
|
-
|
|
1358
|
+
Me(s) && Me(n) && e.hasOwnProperty(o) && !Be(n) && !ft(n) ? e[o] = dt(s, n) : e[o] = n;
|
|
1359
1359
|
}
|
|
1360
1360
|
return e;
|
|
1361
1361
|
}
|
|
@@ -1364,188 +1364,188 @@ const ss = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
1364
1364
|
Symbol()
|
|
1365
1365
|
);
|
|
1366
1366
|
function rs(e) {
|
|
1367
|
-
return !
|
|
1367
|
+
return !Me(e) || !e.hasOwnProperty(ss);
|
|
1368
1368
|
}
|
|
1369
|
-
const { assign:
|
|
1370
|
-
function
|
|
1371
|
-
return !!(
|
|
1369
|
+
const { assign: _e } = Object;
|
|
1370
|
+
function xt(e) {
|
|
1371
|
+
return !!(Be(e) && e.effect);
|
|
1372
1372
|
}
|
|
1373
1373
|
function Pt(e, t, o, n) {
|
|
1374
1374
|
const { state: s, actions: r, getters: l } = t, a = o.state.value[e];
|
|
1375
1375
|
let i;
|
|
1376
1376
|
function d() {
|
|
1377
1377
|
!a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
|
|
1378
|
-
const
|
|
1378
|
+
const S = process.env.NODE_ENV !== "production" && n ? (
|
|
1379
1379
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1380
|
-
St(
|
|
1380
|
+
St(A(s ? s() : {}).value)
|
|
1381
1381
|
) : St(o.state.value[e]);
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1384
|
-
const
|
|
1385
|
-
return l[N].call(
|
|
1386
|
-
})),
|
|
1382
|
+
return _e(S, r, Object.keys(l || {}).reduce((w, N) => (process.env.NODE_ENV !== "production" && N in S && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), w[N] = Ve(Ne(() => {
|
|
1383
|
+
He(o);
|
|
1384
|
+
const U = o._s.get(e);
|
|
1385
|
+
return l[N].call(U, U);
|
|
1386
|
+
})), w), {}));
|
|
1387
1387
|
}
|
|
1388
|
-
return i =
|
|
1388
|
+
return i = pt(e, d, t, o, n, !0), i;
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function pt(e, t, o = {}, n, s, r) {
|
|
1391
1391
|
let l;
|
|
1392
|
-
const a =
|
|
1392
|
+
const a = _e({ actions: {} }, o);
|
|
1393
1393
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
1394
1394
|
throw new Error("Pinia destroyed");
|
|
1395
1395
|
const i = { deep: !0 };
|
|
1396
|
-
process.env.NODE_ENV !== "production" && !
|
|
1397
|
-
d ?
|
|
1396
|
+
process.env.NODE_ENV !== "production" && !jt && (i.onTrigger = (u) => {
|
|
1397
|
+
d ? U = u : d == !1 && !g._hotUpdating && (Array.isArray(U) ? U.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1398
1398
|
});
|
|
1399
|
-
let d,
|
|
1400
|
-
const
|
|
1401
|
-
!r && !
|
|
1402
|
-
const
|
|
1403
|
-
let
|
|
1399
|
+
let d, S, w = [], N = [], U;
|
|
1400
|
+
const B = n.state.value[e];
|
|
1401
|
+
!r && !B && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1402
|
+
const F = A({});
|
|
1403
|
+
let j;
|
|
1404
1404
|
function I(u) {
|
|
1405
1405
|
let c;
|
|
1406
|
-
d =
|
|
1407
|
-
type:
|
|
1406
|
+
d = S = !1, process.env.NODE_ENV !== "production" && (U = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1407
|
+
type: Se.patchFunction,
|
|
1408
1408
|
storeId: e,
|
|
1409
|
-
events:
|
|
1410
|
-
}) : (
|
|
1411
|
-
type:
|
|
1409
|
+
events: U
|
|
1410
|
+
}) : (dt(n.state.value[e], u), c = {
|
|
1411
|
+
type: Se.patchObject,
|
|
1412
1412
|
payload: u,
|
|
1413
1413
|
storeId: e,
|
|
1414
|
-
events:
|
|
1414
|
+
events: U
|
|
1415
1415
|
});
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}),
|
|
1416
|
+
const y = j = Symbol();
|
|
1417
|
+
ze().then(() => {
|
|
1418
|
+
j === y && (d = !0);
|
|
1419
|
+
}), S = !0, Te(w, c, n.state.value[e]);
|
|
1420
1420
|
}
|
|
1421
|
-
const
|
|
1422
|
-
const { state: c } = o,
|
|
1421
|
+
const K = r ? function() {
|
|
1422
|
+
const { state: c } = o, y = c ? c() : {};
|
|
1423
1423
|
this.$patch(($) => {
|
|
1424
|
-
|
|
1424
|
+
_e($, y);
|
|
1425
1425
|
});
|
|
1426
1426
|
} : (
|
|
1427
1427
|
/* istanbul ignore next */
|
|
1428
1428
|
process.env.NODE_ENV !== "production" ? () => {
|
|
1429
1429
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1430
|
-
} :
|
|
1430
|
+
} : to
|
|
1431
1431
|
);
|
|
1432
|
-
function
|
|
1433
|
-
l.stop(),
|
|
1432
|
+
function W() {
|
|
1433
|
+
l.stop(), w = [], N = [], n._s.delete(e);
|
|
1434
1434
|
}
|
|
1435
|
-
const
|
|
1436
|
-
if (
|
|
1437
|
-
return u[
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1440
|
-
const $ = Array.from(arguments),
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1435
|
+
const Y = (u, c = "") => {
|
|
1436
|
+
if ($t in u)
|
|
1437
|
+
return u[ct] = c, u;
|
|
1438
|
+
const y = function() {
|
|
1439
|
+
He(n);
|
|
1440
|
+
const $ = Array.from(arguments), R = [], Q = [];
|
|
1441
|
+
function G(f) {
|
|
1442
|
+
R.push(f);
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1445
|
-
|
|
1444
|
+
function h(f) {
|
|
1445
|
+
Q.push(f);
|
|
1446
1446
|
}
|
|
1447
|
-
|
|
1447
|
+
Te(N, {
|
|
1448
1448
|
args: $,
|
|
1449
|
-
name:
|
|
1450
|
-
store:
|
|
1451
|
-
after:
|
|
1452
|
-
onError:
|
|
1449
|
+
name: y[ct],
|
|
1450
|
+
store: g,
|
|
1451
|
+
after: G,
|
|
1452
|
+
onError: h
|
|
1453
1453
|
});
|
|
1454
|
-
let
|
|
1454
|
+
let z;
|
|
1455
1455
|
try {
|
|
1456
|
-
|
|
1456
|
+
z = u.apply(this && this.$id === e ? this : g, $);
|
|
1457
1457
|
} catch (f) {
|
|
1458
|
-
throw
|
|
1458
|
+
throw Te(Q, f), f;
|
|
1459
1459
|
}
|
|
1460
|
-
return
|
|
1460
|
+
return z instanceof Promise ? z.then((f) => (Te(R, f), f)).catch((f) => (Te(Q, f), Promise.reject(f))) : (Te(R, z), z);
|
|
1461
1461
|
};
|
|
1462
|
-
return
|
|
1463
|
-
},
|
|
1462
|
+
return y[$t] = !0, y[ct] = c, y;
|
|
1463
|
+
}, re = /* @__PURE__ */ Ve({
|
|
1464
1464
|
actions: {},
|
|
1465
1465
|
getters: {},
|
|
1466
1466
|
state: [],
|
|
1467
|
-
hotState:
|
|
1467
|
+
hotState: F
|
|
1468
1468
|
}), C = {
|
|
1469
1469
|
_p: n,
|
|
1470
1470
|
// _s: scope,
|
|
1471
1471
|
$id: e,
|
|
1472
|
-
$onAction:
|
|
1472
|
+
$onAction: Et.bind(null, N),
|
|
1473
1473
|
$patch: I,
|
|
1474
|
-
$reset:
|
|
1474
|
+
$reset: K,
|
|
1475
1475
|
$subscribe(u, c = {}) {
|
|
1476
|
-
const
|
|
1477
|
-
(c.flush === "sync" ?
|
|
1476
|
+
const y = Et(w, u, c.detached, () => $()), $ = l.run(() => Ee(() => n.state.value[e], (R) => {
|
|
1477
|
+
(c.flush === "sync" ? S : d) && u({
|
|
1478
1478
|
storeId: e,
|
|
1479
|
-
type:
|
|
1480
|
-
events:
|
|
1481
|
-
},
|
|
1482
|
-
},
|
|
1483
|
-
return
|
|
1479
|
+
type: Se.direct,
|
|
1480
|
+
events: U
|
|
1481
|
+
}, R);
|
|
1482
|
+
}, _e({}, i, c)));
|
|
1483
|
+
return y;
|
|
1484
1484
|
},
|
|
1485
|
-
$dispose:
|
|
1486
|
-
},
|
|
1485
|
+
$dispose: W
|
|
1486
|
+
}, g = pe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae ? _e(
|
|
1487
1487
|
{
|
|
1488
|
-
_hmrPayload:
|
|
1489
|
-
_customProperties:
|
|
1488
|
+
_hmrPayload: re,
|
|
1489
|
+
_customProperties: Ve(/* @__PURE__ */ new Set())
|
|
1490
1490
|
// devtools custom properties
|
|
1491
1491
|
},
|
|
1492
1492
|
C
|
|
1493
1493
|
// must be added later
|
|
1494
1494
|
// setupStore
|
|
1495
1495
|
) : C);
|
|
1496
|
-
n._s.set(e,
|
|
1497
|
-
const
|
|
1498
|
-
for (const u in
|
|
1499
|
-
const c =
|
|
1500
|
-
if (
|
|
1501
|
-
process.env.NODE_ENV !== "production" && s ?
|
|
1496
|
+
n._s.set(e, g);
|
|
1497
|
+
const x = (n._a && n._a.runWithContext || ns)(() => n._e.run(() => (l = Nt()).run(() => t({ action: Y }))));
|
|
1498
|
+
for (const u in x) {
|
|
1499
|
+
const c = x[u];
|
|
1500
|
+
if (Be(c) && !xt(c) || ft(c))
|
|
1501
|
+
process.env.NODE_ENV !== "production" && s ? Qe(F.value, u, at(x, u)) : r || (B && rs(c) && (Be(c) ? c.value = B[u] : dt(c, B[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && re.state.push(u);
|
|
1502
1502
|
else if (typeof c == "function") {
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1505
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
1503
|
+
const y = process.env.NODE_ENV !== "production" && s ? c : Y(c, u);
|
|
1504
|
+
x[u] = y, process.env.NODE_ENV !== "production" && (re.actions[u] = c), a.actions[u] = c;
|
|
1505
|
+
} else process.env.NODE_ENV !== "production" && xt(c) && (re.getters[u] = r ? (
|
|
1506
1506
|
// @ts-expect-error
|
|
1507
1507
|
o.getters[u]
|
|
1508
|
-
) : c,
|
|
1509
|
-
(
|
|
1508
|
+
) : c, Ae && (x._getters || // @ts-expect-error: same
|
|
1509
|
+
(x._getters = Ve([]))).push(u));
|
|
1510
1510
|
}
|
|
1511
|
-
if (
|
|
1512
|
-
get: () => process.env.NODE_ENV !== "production" && s ?
|
|
1511
|
+
if (_e(g, x), _e(qe(g), x), Object.defineProperty(g, "$state", {
|
|
1512
|
+
get: () => process.env.NODE_ENV !== "production" && s ? F.value : n.state.value[e],
|
|
1513
1513
|
set: (u) => {
|
|
1514
1514
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1515
1515
|
throw new Error("cannot set hotState");
|
|
1516
1516
|
I((c) => {
|
|
1517
|
-
|
|
1517
|
+
_e(c, u);
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
1520
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1521
|
-
|
|
1522
|
-
if (c in
|
|
1523
|
-
const
|
|
1524
|
-
typeof
|
|
1520
|
+
}), process.env.NODE_ENV !== "production" && (g._hotUpdate = Ve((u) => {
|
|
1521
|
+
g._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1522
|
+
if (c in g.$state) {
|
|
1523
|
+
const y = u.$state[c], $ = g.$state[c];
|
|
1524
|
+
typeof y == "object" && Me(y) && Me($) ? eo(y, $) : u.$state[c] = $;
|
|
1525
1525
|
}
|
|
1526
|
-
|
|
1527
|
-
}), Object.keys(
|
|
1528
|
-
c in u.$state ||
|
|
1529
|
-
}), d = !1,
|
|
1526
|
+
Qe(g, c, at(u.$state, c));
|
|
1527
|
+
}), Object.keys(g.$state).forEach((c) => {
|
|
1528
|
+
c in u.$state || it(g, c);
|
|
1529
|
+
}), d = !1, S = !1, n.state.value[e] = at(u._hmrPayload, "hotState"), S = !0, ze().then(() => {
|
|
1530
1530
|
d = !0;
|
|
1531
1531
|
});
|
|
1532
1532
|
for (const c in u._hmrPayload.actions) {
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1533
|
+
const y = u[c];
|
|
1534
|
+
Qe(g, c, Y(y, c));
|
|
1535
1535
|
}
|
|
1536
1536
|
for (const c in u._hmrPayload.getters) {
|
|
1537
|
-
const
|
|
1537
|
+
const y = u._hmrPayload.getters[c], $ = r ? (
|
|
1538
1538
|
// special handling of options api
|
|
1539
|
-
|
|
1540
|
-
) :
|
|
1541
|
-
|
|
1539
|
+
Ne(() => (He(n), y.call(g, g)))
|
|
1540
|
+
) : y;
|
|
1541
|
+
Qe(g, c, $);
|
|
1542
1542
|
}
|
|
1543
|
-
Object.keys(
|
|
1544
|
-
c in u._hmrPayload.getters ||
|
|
1545
|
-
}), Object.keys(
|
|
1546
|
-
c in u._hmrPayload.actions ||
|
|
1547
|
-
}),
|
|
1548
|
-
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1543
|
+
Object.keys(g._hmrPayload.getters).forEach((c) => {
|
|
1544
|
+
c in u._hmrPayload.getters || it(g, c);
|
|
1545
|
+
}), Object.keys(g._hmrPayload.actions).forEach((c) => {
|
|
1546
|
+
c in u._hmrPayload.actions || it(g, c);
|
|
1547
|
+
}), g._hmrPayload = u._hmrPayload, g._getters = u._getters, g._hotUpdating = !1;
|
|
1548
|
+
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae) {
|
|
1549
1549
|
const u = {
|
|
1550
1550
|
writable: !0,
|
|
1551
1551
|
configurable: !0,
|
|
@@ -1553,28 +1553,28 @@ function dt(e, t, o = {}, n, s, r) {
|
|
|
1553
1553
|
enumerable: !1
|
|
1554
1554
|
};
|
|
1555
1555
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((c) => {
|
|
1556
|
-
Object.defineProperty(
|
|
1556
|
+
Object.defineProperty(g, c, _e({ value: g[c] }, u));
|
|
1557
1557
|
});
|
|
1558
1558
|
}
|
|
1559
1559
|
return n._p.forEach((u) => {
|
|
1560
|
-
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1560
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae) {
|
|
1561
1561
|
const c = l.run(() => u({
|
|
1562
|
-
store:
|
|
1562
|
+
store: g,
|
|
1563
1563
|
app: n._a,
|
|
1564
1564
|
pinia: n,
|
|
1565
1565
|
options: a
|
|
1566
1566
|
}));
|
|
1567
|
-
Object.keys(c || {}).forEach((
|
|
1567
|
+
Object.keys(c || {}).forEach((y) => g._customProperties.add(y)), _e(g, c);
|
|
1568
1568
|
} else
|
|
1569
|
-
|
|
1570
|
-
store:
|
|
1569
|
+
_e(g, l.run(() => u({
|
|
1570
|
+
store: g,
|
|
1571
1571
|
app: n._a,
|
|
1572
1572
|
pinia: n,
|
|
1573
1573
|
options: a
|
|
1574
1574
|
})));
|
|
1575
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1575
|
+
}), process.env.NODE_ENV !== "production" && g.$state && typeof g.$state == "object" && typeof g.$state.constructor == "function" && !g.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1576
1576
|
state: () => new MyClass()
|
|
1577
|
-
Found in store "${
|
|
1577
|
+
Found in store "${g.$id}".`), B && r && o.hydrate && o.hydrate(g.$state, B), d = !0, S = !0, g;
|
|
1578
1578
|
}
|
|
1579
1579
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1580
1580
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1586,25 +1586,25 @@ function as(e, t, o) {
|
|
|
1586
1586
|
const d = _o();
|
|
1587
1587
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1588
1588
|
// pinia instance with getActivePinia()
|
|
1589
|
-
(process.env.NODE_ENV === "test" &&
|
|
1589
|
+
(process.env.NODE_ENV === "test" && je && je._testing ? null : a) || (d ? go(Bt, null) : null), a && He(a), process.env.NODE_ENV !== "production" && !je)
|
|
1590
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
1591
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1592
1592
|
This will fail in production.`);
|
|
1593
|
-
a =
|
|
1594
|
-
const
|
|
1593
|
+
a = je, a._s.has(n) || (r ? pt(n, t, s, a) : Pt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1594
|
+
const S = a._s.get(n);
|
|
1595
1595
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1596
|
-
const
|
|
1597
|
-
i._hotUpdate(N), delete a.state.value[
|
|
1596
|
+
const w = "__hot:" + n, N = r ? pt(w, t, s, a, !0) : Pt(w, _e({}, s), a, !0);
|
|
1597
|
+
i._hotUpdate(N), delete a.state.value[w], a._s.delete(w);
|
|
1598
1598
|
}
|
|
1599
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1600
|
-
const
|
|
1601
|
-
if (
|
|
1599
|
+
if (process.env.NODE_ENV !== "production" && Ae) {
|
|
1600
|
+
const w = bo();
|
|
1601
|
+
if (w && w.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1602
1602
|
!i) {
|
|
1603
|
-
const N =
|
|
1604
|
-
|
|
1603
|
+
const N = w.proxy, U = "_pStores" in N ? N._pStores : N._pStores = {};
|
|
1604
|
+
U[n] = S;
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
|
-
return
|
|
1607
|
+
return S;
|
|
1608
1608
|
}
|
|
1609
1609
|
return l.$id = n, l;
|
|
1610
1610
|
}
|
|
@@ -1684,7 +1684,7 @@ function _t(e, t, o) {
|
|
|
1684
1684
|
Array.prototype.slice.call(o, 1)
|
|
1685
1685
|
)), Number.isInteger(Number(n)) && Array.isArray(e) ? e.slice()[n] : Object.assign({}, e, { [n]: t });
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function oo(e, t) {
|
|
1688
1688
|
if (e == null || t.length === 0)
|
|
1689
1689
|
return e;
|
|
1690
1690
|
if (t.length === 1) {
|
|
@@ -1707,18 +1707,18 @@ function to(e, t) {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
return _t(
|
|
1709
1709
|
e,
|
|
1710
|
-
|
|
1710
|
+
oo(
|
|
1711
1711
|
e[t[0]],
|
|
1712
1712
|
Array.prototype.slice.call(t, 1)
|
|
1713
1713
|
),
|
|
1714
1714
|
[t[0]]
|
|
1715
1715
|
);
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function no(e, t) {
|
|
1718
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
1719
|
}
|
|
1720
|
-
function
|
|
1721
|
-
return t.map((o) => o.split(".")).reduce((o, n) =>
|
|
1720
|
+
function so(e, t) {
|
|
1721
|
+
return t.map((o) => o.split(".")).reduce((o, n) => oo(o, n), e);
|
|
1722
1722
|
}
|
|
1723
1723
|
function It(e, {
|
|
1724
1724
|
storage: t,
|
|
@@ -1729,17 +1729,17 @@ function It(e, {
|
|
|
1729
1729
|
omit: l,
|
|
1730
1730
|
beforeHydrate: a,
|
|
1731
1731
|
afterHydrate: i
|
|
1732
|
-
}, d,
|
|
1732
|
+
}, d, S = !0) {
|
|
1733
1733
|
try {
|
|
1734
|
-
|
|
1735
|
-
const
|
|
1736
|
-
if (
|
|
1737
|
-
const N = o.deserialize(
|
|
1738
|
-
e.$patch(
|
|
1734
|
+
S && (a == null || a(d));
|
|
1735
|
+
const w = t.getItem(n);
|
|
1736
|
+
if (w) {
|
|
1737
|
+
const N = o.deserialize(w), U = r ? no(N, r) : N, B = l ? so(U, l) : U;
|
|
1738
|
+
e.$patch(B);
|
|
1739
1739
|
}
|
|
1740
|
-
|
|
1741
|
-
} catch (
|
|
1742
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1740
|
+
S && (i == null || i(d));
|
|
1741
|
+
} catch (w) {
|
|
1742
|
+
s && console.error("[pinia-plugin-persistedstate]", w);
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
1745
|
function Vt(e, {
|
|
@@ -1751,7 +1751,7 @@ function Vt(e, {
|
|
|
1751
1751
|
omit: l
|
|
1752
1752
|
}) {
|
|
1753
1753
|
try {
|
|
1754
|
-
const a = r ?
|
|
1754
|
+
const a = r ? no(e, r) : e, i = l ? so(a, l) : a, d = o.serialize(i);
|
|
1755
1755
|
t.setItem(n, d);
|
|
1756
1756
|
} catch (a) {
|
|
1757
1757
|
s && console.error("[pinia-plugin-persistedstate]", a);
|
|
@@ -1777,7 +1777,7 @@ function ms(e, t, o) {
|
|
|
1777
1777
|
});
|
|
1778
1778
|
}, a.forEach((i) => {
|
|
1779
1779
|
It(s, i, e), s.$subscribe(
|
|
1780
|
-
(d,
|
|
1780
|
+
(d, S) => Vt(S, i),
|
|
1781
1781
|
{ detached: !0 }
|
|
1782
1782
|
);
|
|
1783
1783
|
});
|
|
@@ -1788,15 +1788,15 @@ function hs(e = {}) {
|
|
|
1788
1788
|
ms(
|
|
1789
1789
|
t,
|
|
1790
1790
|
(n) => {
|
|
1791
|
-
var s, r, l, a, i, d,
|
|
1791
|
+
var s, r, l, a, i, d, S;
|
|
1792
1792
|
return {
|
|
1793
|
-
key: (e.key ? e.key : (
|
|
1793
|
+
key: (e.key ? e.key : (w) => w)((s = n.key) != null ? s : t.store.$id),
|
|
1794
1794
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1795
1795
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1796
|
-
serialize: (
|
|
1797
|
-
deserialize: (
|
|
1796
|
+
serialize: (w) => JSON.stringify(w),
|
|
1797
|
+
deserialize: (w) => ps(w)
|
|
1798
1798
|
},
|
|
1799
|
-
storage: (
|
|
1799
|
+
storage: (S = (d = n.storage) != null ? d : e.storage) != null ? S : window.localStorage,
|
|
1800
1800
|
beforeHydrate: n.beforeHydrate,
|
|
1801
1801
|
afterHydrate: n.afterHydrate,
|
|
1802
1802
|
pick: n.pick,
|
|
@@ -1810,7 +1810,7 @@ function hs(e = {}) {
|
|
|
1810
1810
|
var _s = hs();
|
|
1811
1811
|
const gt = os();
|
|
1812
1812
|
gt.use(_s);
|
|
1813
|
-
const
|
|
1813
|
+
const ro = /* @__PURE__ */ as("console", {
|
|
1814
1814
|
state: () => ({
|
|
1815
1815
|
menu: {
|
|
1816
1816
|
collapsed: !0
|
|
@@ -1820,15 +1820,15 @@ const so = /* @__PURE__ */ as("console", {
|
|
|
1820
1820
|
}), gs = {
|
|
1821
1821
|
key: 0,
|
|
1822
1822
|
class: "menu-wrapper"
|
|
1823
|
-
},
|
|
1823
|
+
}, bs = /* @__PURE__ */ we({
|
|
1824
1824
|
__name: "SideMenu",
|
|
1825
1825
|
props: {
|
|
1826
1826
|
menuCollapsed: { type: Boolean }
|
|
1827
1827
|
},
|
|
1828
1828
|
emits: ["update:menuCollapsed"],
|
|
1829
1829
|
setup(e, { emit: t }) {
|
|
1830
|
-
|
|
1831
|
-
const o =
|
|
1830
|
+
ro(gt);
|
|
1831
|
+
const o = Je(), n = Ne(() => {
|
|
1832
1832
|
var r;
|
|
1833
1833
|
const s = o.meta.activeMenu;
|
|
1834
1834
|
if (s === "{model}") {
|
|
@@ -1838,54 +1838,54 @@ const so = /* @__PURE__ */ as("console", {
|
|
|
1838
1838
|
return s;
|
|
1839
1839
|
});
|
|
1840
1840
|
return (s, r) => {
|
|
1841
|
-
const l =
|
|
1842
|
-
return k(Ct).length > 0 ? (p(),
|
|
1843
|
-
|
|
1841
|
+
const l = O("el-menu");
|
|
1842
|
+
return k(Ct).length > 0 ? (p(), M("div", gs, [
|
|
1843
|
+
_(l, {
|
|
1844
1844
|
class: "menu",
|
|
1845
1845
|
"default-active": n.value,
|
|
1846
1846
|
router: ""
|
|
1847
1847
|
}, {
|
|
1848
1848
|
default: m(() => [
|
|
1849
|
-
(p(!0),
|
|
1849
|
+
(p(!0), M(se, null, he(k(Ct), (a) => (p(), V(In, {
|
|
1850
1850
|
key: a.path,
|
|
1851
1851
|
menu: a
|
|
1852
1852
|
}, null, 8, ["menu"]))), 128))
|
|
1853
1853
|
]),
|
|
1854
1854
|
_: 1
|
|
1855
1855
|
}, 8, ["default-active"])
|
|
1856
|
-
])) :
|
|
1856
|
+
])) : J("", !0);
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
|
-
}),
|
|
1859
|
+
}), ao = /* @__PURE__ */ ve(bs, [["__scopeId", "data-v-c70ca2ba"]]), vs = { class: "container" }, ys = /* @__PURE__ */ we({
|
|
1860
1860
|
__name: "ConsoleApp",
|
|
1861
1861
|
props: {
|
|
1862
1862
|
title: {},
|
|
1863
1863
|
helpDocUrl: {}
|
|
1864
1864
|
},
|
|
1865
1865
|
setup(e) {
|
|
1866
|
-
const t =
|
|
1866
|
+
const t = ro(gt), o = Je(), n = A(t.menu.collapsed), s = A(), r = e;
|
|
1867
1867
|
return (l, a) => {
|
|
1868
|
-
const i =
|
|
1869
|
-
return p(),
|
|
1870
|
-
k(o).query.embedded !== "true" ? (p(), V(
|
|
1868
|
+
const i = O("router-view"), d = O("el-scrollbar");
|
|
1869
|
+
return p(), M(se, null, [
|
|
1870
|
+
k(o).query.embedded !== "true" ? (p(), V(Lt, {
|
|
1871
1871
|
key: 0,
|
|
1872
1872
|
title: r.title,
|
|
1873
1873
|
helpDocUrl: r.helpDocUrl
|
|
1874
|
-
}, null, 8, ["title", "helpDocUrl"])) :
|
|
1875
|
-
|
|
1876
|
-
k(o).query.embedded !== "true" ? (p(), V(
|
|
1874
|
+
}, null, 8, ["title", "helpDocUrl"])) : J("", !0),
|
|
1875
|
+
v("div", vs, [
|
|
1876
|
+
k(o).query.embedded !== "true" ? (p(), V(ao, {
|
|
1877
1877
|
key: 0,
|
|
1878
1878
|
menuCollapsed: n.value,
|
|
1879
|
-
"onUpdate:menuCollapsed": a[0] || (a[0] = (
|
|
1880
|
-
}, null, 8, ["menuCollapsed"])) :
|
|
1881
|
-
|
|
1879
|
+
"onUpdate:menuCollapsed": a[0] || (a[0] = (S) => n.value = S)
|
|
1880
|
+
}, null, 8, ["menuCollapsed"])) : J("", !0),
|
|
1881
|
+
_(d, { class: "main-scrollbar" }, {
|
|
1882
1882
|
default: m(() => [
|
|
1883
|
-
|
|
1883
|
+
v("main", {
|
|
1884
1884
|
ref_key: "mainWrapperRef",
|
|
1885
1885
|
ref: s,
|
|
1886
1886
|
class: "main-wrapper"
|
|
1887
1887
|
}, [
|
|
1888
|
-
|
|
1888
|
+
_(i)
|
|
1889
1889
|
], 512)
|
|
1890
1890
|
]),
|
|
1891
1891
|
_: 1
|
|
@@ -1900,54 +1900,54 @@ const so = /* @__PURE__ */ as("console", {
|
|
|
1900
1900
|
height: "800"
|
|
1901
1901
|
};
|
|
1902
1902
|
function Ss(e, t) {
|
|
1903
|
-
return p(),
|
|
1903
|
+
return p(), M("svg", ws, t[0] || (t[0] = [
|
|
1904
1904
|
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)
|
|
1905
1905
|
]));
|
|
1906
1906
|
}
|
|
1907
|
-
const Cs = { render: Ss }, ks = {}, Os = { class: "wrapper" },
|
|
1908
|
-
function
|
|
1909
|
-
const o =
|
|
1910
|
-
return p(),
|
|
1911
|
-
t[4] || (t[4] =
|
|
1912
|
-
|
|
1913
|
-
t[3] || (t[3] =
|
|
1914
|
-
|
|
1907
|
+
const Cs = { render: Ss }, ks = {}, Os = { class: "wrapper" }, Es = { class: "content" };
|
|
1908
|
+
function $s(e, t) {
|
|
1909
|
+
const o = O("el-button");
|
|
1910
|
+
return p(), M("div", Os, [
|
|
1911
|
+
t[4] || (t[4] = v("img", { src: Cs }, null, -1)),
|
|
1912
|
+
v("div", Es, [
|
|
1913
|
+
t[3] || (t[3] = v("h1", null, "You have no permission to access the page.", -1)),
|
|
1914
|
+
_(o, { type: "primary" }, {
|
|
1915
1915
|
default: m(() => t[1] || (t[1] = [
|
|
1916
|
-
|
|
1916
|
+
Z("Apply")
|
|
1917
1917
|
])),
|
|
1918
1918
|
_: 1
|
|
1919
1919
|
}),
|
|
1920
|
-
|
|
1920
|
+
_(o, {
|
|
1921
1921
|
onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
|
|
1922
1922
|
}, {
|
|
1923
1923
|
default: m(() => t[2] || (t[2] = [
|
|
1924
|
-
|
|
1924
|
+
Z("Go Back")
|
|
1925
1925
|
])),
|
|
1926
1926
|
_: 1
|
|
1927
1927
|
})
|
|
1928
1928
|
])
|
|
1929
1929
|
]);
|
|
1930
1930
|
}
|
|
1931
|
-
const
|
|
1931
|
+
const xs = /* @__PURE__ */ ve(ks, [["render", $s], ["__scopeId", "data-v-0155b361"]]), Ps = {};
|
|
1932
1932
|
function Is(e, t) {
|
|
1933
|
-
const o =
|
|
1933
|
+
const o = O("router-view");
|
|
1934
1934
|
return p(), V(o);
|
|
1935
1935
|
}
|
|
1936
|
-
const Vs = /* @__PURE__ */
|
|
1936
|
+
const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper" }, Ns = ["onClick"], Ms = { class: "card-inner-wrapper" }, Us = { class: "card-title" }, Ts = { class: "icon" }, Ds = /* @__PURE__ */ we({
|
|
1937
1937
|
__name: "TabCard",
|
|
1938
1938
|
props: {
|
|
1939
1939
|
cards: {},
|
|
1940
1940
|
tableRef: {}
|
|
1941
1941
|
},
|
|
1942
1942
|
setup(e) {
|
|
1943
|
-
const { t } =
|
|
1943
|
+
const { t } = We(), o = Je(), n = rt(), s = e, r = A(s.cards[0].key);
|
|
1944
1944
|
function l(a) {
|
|
1945
1945
|
a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
|
|
1946
1946
|
path: o.path,
|
|
1947
|
-
query: wt(
|
|
1947
|
+
query: wt(Ye({}, o.query), { tab: a.key })
|
|
1948
1948
|
}));
|
|
1949
1949
|
}
|
|
1950
|
-
return
|
|
1950
|
+
return At(() => {
|
|
1951
1951
|
let a;
|
|
1952
1952
|
if (o.query.tab !== void 0) {
|
|
1953
1953
|
for (let i of s.cards)
|
|
@@ -1956,10 +1956,10 @@ const Vs = /* @__PURE__ */ pe(Ps, [["render", Is]]), Ms = { class: "card-wrapper
|
|
|
1956
1956
|
break;
|
|
1957
1957
|
}
|
|
1958
1958
|
}
|
|
1959
|
-
|
|
1959
|
+
ze(() => {
|
|
1960
1960
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
1961
1961
|
});
|
|
1962
|
-
}),
|
|
1962
|
+
}), Ee(
|
|
1963
1963
|
() => s.cards,
|
|
1964
1964
|
(a) => {
|
|
1965
1965
|
if (o.query.tab !== void 0) {
|
|
@@ -1974,51 +1974,51 @@ const Vs = /* @__PURE__ */ pe(Ps, [["render", Is]]), Ms = { class: "card-wrapper
|
|
|
1974
1974
|
{
|
|
1975
1975
|
deep: !0
|
|
1976
1976
|
}
|
|
1977
|
-
), (a, i) => (p(),
|
|
1978
|
-
(p(!0),
|
|
1979
|
-
class:
|
|
1980
|
-
onClick: (
|
|
1977
|
+
), (a, i) => (p(), M("div", As, [
|
|
1978
|
+
(p(!0), M(se, null, he(s.cards, (d) => (p(), M("div", {
|
|
1979
|
+
class: Mt(["card", { "card-selected": r.value === d.key }]),
|
|
1980
|
+
onClick: (S) => l(d)
|
|
1981
1981
|
}, [
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
d.icon ? (p(), V(
|
|
1982
|
+
v("div", Ms, [
|
|
1983
|
+
v("div", Us, [
|
|
1984
|
+
v("div", Ts, [
|
|
1985
|
+
d.icon ? (p(), V(tt(d.icon), {
|
|
1986
1986
|
key: 0,
|
|
1987
1987
|
class: "svg-icon"
|
|
1988
|
-
})) :
|
|
1988
|
+
})) : J("", !0)
|
|
1989
1989
|
]),
|
|
1990
|
-
|
|
1991
|
-
style:
|
|
1990
|
+
v("span", {
|
|
1991
|
+
style: Re({ color: d.disabled ? "#aaa" : "black" })
|
|
1992
1992
|
}, D(k(t)(d.label)), 5)
|
|
1993
1993
|
]),
|
|
1994
|
-
|
|
1994
|
+
v("span", null, D(d.count), 1)
|
|
1995
1995
|
])
|
|
1996
1996
|
], 10, Ns))), 256))
|
|
1997
1997
|
]));
|
|
1998
1998
|
}
|
|
1999
|
-
}),
|
|
1999
|
+
}), lo = /* @__PURE__ */ ve(Ds, [["__scopeId", "data-v-047a86e6"]]);
|
|
2000
2000
|
function Oe(e, t, o) {
|
|
2001
2001
|
switch (t) {
|
|
2002
2002
|
case "POST":
|
|
2003
|
-
return
|
|
2003
|
+
return be.post(e, o);
|
|
2004
2004
|
case "PUT":
|
|
2005
|
-
return
|
|
2005
|
+
return be.put(e, o);
|
|
2006
2006
|
case "DELETE":
|
|
2007
|
-
return
|
|
2007
|
+
return be.delete(e + "/" + o);
|
|
2008
2008
|
default:
|
|
2009
|
-
return
|
|
2009
|
+
return be.get(e, { params: o });
|
|
2010
2010
|
}
|
|
2011
2011
|
}
|
|
2012
|
-
const
|
|
2012
|
+
const Ge = (e) => {
|
|
2013
2013
|
const t = Object.keys(e);
|
|
2014
2014
|
let o = {};
|
|
2015
2015
|
t.forEach((n) => {
|
|
2016
2016
|
o[n] = void 0;
|
|
2017
2017
|
}), Object.assign(e, o);
|
|
2018
|
-
},
|
|
2018
|
+
}, Fs = {
|
|
2019
2019
|
key: 1,
|
|
2020
2020
|
class: "view-span"
|
|
2021
|
-
},
|
|
2021
|
+
}, Rs = /* @__PURE__ */ we({
|
|
2022
2022
|
__name: "FormView",
|
|
2023
2023
|
props: {
|
|
2024
2024
|
id: {},
|
|
@@ -2031,120 +2031,148 @@ const Be = (e) => {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
emits: ["update:id"],
|
|
2033
2033
|
setup(e, { expose: t, emit: o }) {
|
|
2034
|
-
const { t: n } =
|
|
2034
|
+
const { t: n } = ot.global, s = e, r = pe({}), l = A(!1), a = A(), i = pe({}), d = A(!0), S = (C) => s.mode === "view" && (Y(C, void 0) || Y(C, "input") || Y(C, "select") || Y(C, "password") || Y(C, "input-number")), w = Ne(() => s.model.fields ? s.model.fields.filter(
|
|
2035
2035
|
(C) => {
|
|
2036
|
-
var
|
|
2037
|
-
let
|
|
2036
|
+
var x, u, c, y;
|
|
2037
|
+
let g = C.visible !== !1 && ((x = C.formItemAttributes) == null ? void 0 : x.visible) !== !1;
|
|
2038
2038
|
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")
|
|
2039
2039
|
return !1;
|
|
2040
|
-
let
|
|
2041
|
-
|
|
2040
|
+
let b = (y = C.formItemAttributes) == null ? void 0 : y.showCondition;
|
|
2041
|
+
if (b && b.field && b.value !== void 0) {
|
|
2042
|
+
if (b.operator === void 0 || b.operator === "==")
|
|
2043
|
+
return r[b.field] === b.value;
|
|
2044
|
+
if (b.operator === "!=")
|
|
2045
|
+
return r[b.field] !== b.value;
|
|
2046
|
+
if (b.operator === ">")
|
|
2047
|
+
return r[b.field] > b.value;
|
|
2048
|
+
if (b.operator === "<")
|
|
2049
|
+
return r[b.field] < b.value;
|
|
2050
|
+
}
|
|
2051
|
+
return g;
|
|
2042
2052
|
}
|
|
2043
2053
|
) : []);
|
|
2044
|
-
|
|
2045
|
-
|
|
2054
|
+
Ee([() => s.id, () => s.sessionId], () => {
|
|
2055
|
+
console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), U();
|
|
2056
|
+
}, {
|
|
2057
|
+
immediate: !0
|
|
2046
2058
|
});
|
|
2047
2059
|
function N() {
|
|
2060
|
+
console.log("FormView.initFormFields: begin");
|
|
2048
2061
|
const C = s.model.fields;
|
|
2049
|
-
let
|
|
2050
|
-
C == null || C.forEach((
|
|
2051
|
-
var
|
|
2052
|
-
if (r[
|
|
2053
|
-
if (((u =
|
|
2054
|
-
let
|
|
2055
|
-
|
|
2062
|
+
let g = {};
|
|
2063
|
+
C == null || C.forEach((b) => {
|
|
2064
|
+
var x, u, c, y, $, R, Q, G, h, z, f, E, T;
|
|
2065
|
+
if (r[b.prop] = null, b.visible !== !1 && ((x = b.formItemAttributes) == null ? void 0 : x.visible) !== !1) {
|
|
2066
|
+
if (((u = b.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[b.prop] = (c = b.formItemAttributes) == null ? void 0 : c.defaultValue : r[b.prop] = void 0, s.mode !== "view") {
|
|
2067
|
+
let H = (y = b.formItemAttributes) == null ? void 0 : y.validationRule;
|
|
2068
|
+
H !== void 0 && (g[b.prop] = H), Ge(i), Object.assign(i, g);
|
|
2056
2069
|
}
|
|
2057
|
-
const
|
|
2058
|
-
if (
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2070
|
+
const P = b.formItemAttributes, X = P == null ? void 0 : P.type, ce = ($ = P == null ? void 0 : P.selectAttributes) == null ? void 0 : $.useDatableDict, ue = (R = P == null ? void 0 : P.selectAttributes) == null ? void 0 : R.dictId, fe = (Q = P == null ? void 0 : P.selectAttributes) == null ? void 0 : Q.api, ae = (G = P == null ? void 0 : P.selectAttributes) == null ? void 0 : G.valueMappingField, ee = (h = P == null ? void 0 : P.selectAttributes) == null ? void 0 : h.labelMappingField;
|
|
2071
|
+
if (X === "select") {
|
|
2072
|
+
if (ce) {
|
|
2073
|
+
let te = `${Ne(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${ue}`;
|
|
2074
|
+
const ne = (z = P == null ? void 0 : P.selectAttributes) == null ? void 0 : z.queryParamName, le = (f = P == null ? void 0 : P.selectAttributes) == null ? void 0 : f.queryParamValueField;
|
|
2075
|
+
ne && (te = `${te}?${ne}=${s.id}`), le || Oe(te, "GET", {}).then(({ data: me }) => {
|
|
2076
|
+
var q;
|
|
2077
|
+
if ((q = b.formItemAttributes) != null && q.selectAttributes) {
|
|
2078
|
+
let L = [];
|
|
2079
|
+
Array.isArray(me.data) ? L = me.data : me.data.list && Array.isArray(me.data.list) && (L = me.data.list), b.formItemAttributes.selectAttributes.options = L.map((de) => ({
|
|
2080
|
+
value: de.dbOrdinal,
|
|
2081
|
+
label: de.value
|
|
2082
|
+
}));
|
|
2083
|
+
}
|
|
2084
|
+
});
|
|
2085
|
+
} else if (fe) {
|
|
2086
|
+
let H = fe;
|
|
2087
|
+
const te = (E = P == null ? void 0 : P.selectAttributes) == null ? void 0 : E.queryParamName, ne = (T = P == null ? void 0 : P.selectAttributes) == null ? void 0 : T.queryParamValueField;
|
|
2088
|
+
te && (H = `${H}?${te}=${s.id}`), ne || Oe(H, "GET", {}).then(({ data: le }) => {
|
|
2089
|
+
var me;
|
|
2090
|
+
if ((me = b.formItemAttributes) != null && me.selectAttributes) {
|
|
2091
|
+
let q = [];
|
|
2092
|
+
Array.isArray(le.data) ? q = le.data : le.data.list && Array.isArray(le.data.list) && (q = le.data.list), b.formItemAttributes.selectAttributes.options = q.map((L) => ({
|
|
2093
|
+
value: ae ? L[ae] : L.value,
|
|
2094
|
+
label: ee ? L[ee] : L.label
|
|
2095
|
+
}));
|
|
2096
|
+
}
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2071
2099
|
}
|
|
2072
2100
|
}
|
|
2073
2101
|
});
|
|
2074
2102
|
}
|
|
2075
|
-
function
|
|
2103
|
+
function U() {
|
|
2076
2104
|
var C;
|
|
2077
|
-
console.log(
|
|
2078
|
-
|
|
2105
|
+
console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), F(), d.value = (C = s.model.useI18n) != null ? C : !0, N(), (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: g }) => {
|
|
2106
|
+
Ge(r), Object.assign(r, g.data), l.value = !1;
|
|
2079
2107
|
}));
|
|
2080
2108
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return new Promise((C,
|
|
2083
|
-
var
|
|
2084
|
-
((u = (
|
|
2085
|
-
let
|
|
2086
|
-
s.model.api && Oe(s.model.api,
|
|
2087
|
-
var
|
|
2088
|
-
$.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((
|
|
2109
|
+
function B() {
|
|
2110
|
+
return new Promise((C, g) => {
|
|
2111
|
+
var x, u, c, y;
|
|
2112
|
+
((u = (x = s.model.formConfig) == null ? void 0 : x.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (y = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : y.beforeSubmit(r));
|
|
2113
|
+
let b = s.mode === "create" ? "POST" : "PUT";
|
|
2114
|
+
s.model.api && Oe(s.model.api, b, r).then(({ data: $ }) => {
|
|
2115
|
+
var R, Q, G, h;
|
|
2116
|
+
$.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((Q = (R = s.model.formConfig) == null ? void 0 : R.functions) == null ? void 0 : Q.afterSubmit) !== void 0 && ((h = (G = s.model.formConfig) == null ? void 0 : G.functions) == null || h.afterSubmit($.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
|
|
2089
2117
|
});
|
|
2090
2118
|
});
|
|
2091
2119
|
}
|
|
2092
|
-
function
|
|
2120
|
+
function F() {
|
|
2093
2121
|
var C;
|
|
2094
|
-
(C = a.value) == null || C.resetFields();
|
|
2122
|
+
console.log("FormView.reset: begin"), (C = a.value) == null || C.resetFields();
|
|
2095
2123
|
}
|
|
2096
|
-
function
|
|
2124
|
+
function j(C) {
|
|
2097
2125
|
return C.label ? d ? n(C.label) : C.label : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase();
|
|
2098
2126
|
}
|
|
2099
2127
|
function I(C) {
|
|
2100
|
-
var
|
|
2128
|
+
var g, b, x, u;
|
|
2101
2129
|
if (C) {
|
|
2102
|
-
if (
|
|
2103
|
-
const c = (
|
|
2130
|
+
if (Y(C, "select")) {
|
|
2131
|
+
const c = (b = (g = C.tableColumnAttributes) == null ? void 0 : g.functions) == null ? void 0 : b.transformValue;
|
|
2104
2132
|
if (c)
|
|
2105
2133
|
return c(r[C.prop]);
|
|
2106
|
-
const
|
|
2107
|
-
if (
|
|
2108
|
-
return r[
|
|
2134
|
+
const y = (u = (x = C.formItemAttributes) == null ? void 0 : x.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2135
|
+
if (y)
|
|
2136
|
+
return r[y];
|
|
2109
2137
|
}
|
|
2110
2138
|
return r[C.prop];
|
|
2111
2139
|
}
|
|
2112
2140
|
}
|
|
2113
|
-
function
|
|
2114
|
-
var
|
|
2115
|
-
return ((
|
|
2141
|
+
function K(C) {
|
|
2142
|
+
var g;
|
|
2143
|
+
return ((g = C.formItemAttributes) == null ? void 0 : g.updatable) === !1 && s.mode === "update";
|
|
2116
2144
|
}
|
|
2117
|
-
function
|
|
2118
|
-
var
|
|
2119
|
-
const
|
|
2145
|
+
function W(C, g) {
|
|
2146
|
+
var x, u;
|
|
2147
|
+
const b = (u = (x = g.formItemAttributes) == null ? void 0 : x.type) != null ? u : "input";
|
|
2120
2148
|
switch (C) {
|
|
2121
2149
|
case "input":
|
|
2122
|
-
return s.mode === "view" ? !1 :
|
|
2150
|
+
return s.mode === "view" ? !1 : b === "input" || b === "password";
|
|
2123
2151
|
case "select":
|
|
2124
2152
|
return !0;
|
|
2125
2153
|
default:
|
|
2126
2154
|
return console.log("Error: unrecognized form component type: ", C), !0;
|
|
2127
2155
|
}
|
|
2128
2156
|
}
|
|
2129
|
-
function
|
|
2130
|
-
var
|
|
2131
|
-
return ((
|
|
2157
|
+
function Y(C, g) {
|
|
2158
|
+
var b;
|
|
2159
|
+
return ((b = C.formItemAttributes) == null ? void 0 : b.type) === g;
|
|
2132
2160
|
}
|
|
2133
|
-
function
|
|
2134
|
-
var
|
|
2135
|
-
for (let
|
|
2136
|
-
const
|
|
2137
|
-
if (!(!
|
|
2138
|
-
const u =
|
|
2161
|
+
function re(C) {
|
|
2162
|
+
var g;
|
|
2163
|
+
for (let b of s.model.fields) {
|
|
2164
|
+
const x = (g = b.formItemAttributes) == null ? void 0 : g.selectAttributes;
|
|
2165
|
+
if (!(!b.formItemAttributes || b.formItemAttributes.type !== "select" || !x || !x.queryParamValueField) && x.queryParamValueField === C.prop) {
|
|
2166
|
+
const u = x.api;
|
|
2139
2167
|
if (u) {
|
|
2140
2168
|
let c = u;
|
|
2141
|
-
const
|
|
2142
|
-
|
|
2143
|
-
if (
|
|
2144
|
-
let
|
|
2145
|
-
Array.isArray($.data) ?
|
|
2146
|
-
value:
|
|
2147
|
-
label:
|
|
2169
|
+
const y = x.queryParamName;
|
|
2170
|
+
y && (c = `${c}?${y}=${r[x.queryParamValueField]}`), Oe(c, "GET", {}).then(({ data: $ }) => {
|
|
2171
|
+
if (x) {
|
|
2172
|
+
let R = [];
|
|
2173
|
+
Array.isArray($.data) ? R = $.data : $.data.list && Array.isArray($.data.list) && (R = $.data.list), x.options = R.map((Q) => ({
|
|
2174
|
+
value: x.valueMappingField ? Q[x.valueMappingField] : Q.value,
|
|
2175
|
+
label: x.labelMappingField ? Q[x.labelMappingField] : Q.label
|
|
2148
2176
|
}));
|
|
2149
2177
|
}
|
|
2150
2178
|
});
|
|
@@ -2152,73 +2180,85 @@ const Be = (e) => {
|
|
|
2152
2180
|
}
|
|
2153
2181
|
}
|
|
2154
2182
|
}
|
|
2155
|
-
return
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
reset: R,
|
|
2160
|
-
submit: j,
|
|
2183
|
+
return t({
|
|
2184
|
+
refresh: U,
|
|
2185
|
+
reset: F,
|
|
2186
|
+
submit: B,
|
|
2161
2187
|
formData: r
|
|
2162
|
-
}), (C,
|
|
2163
|
-
const
|
|
2164
|
-
return
|
|
2188
|
+
}), (C, g) => {
|
|
2189
|
+
const b = O("el-input"), x = O("el-switch"), u = O("el-date-picker"), c = O("el-option"), y = O("el-select"), $ = O("el-input-number"), R = O("el-form-item"), Q = O("el-form"), G = Ut("loading");
|
|
2190
|
+
return Tt((p(), V(Q, {
|
|
2165
2191
|
ref_key: "formRef",
|
|
2166
2192
|
ref: a,
|
|
2167
2193
|
model: r,
|
|
2168
2194
|
rules: i,
|
|
2195
|
+
"validate-on-rule-change": !1,
|
|
2169
2196
|
"label-width": "auto",
|
|
2170
2197
|
"label-position": "left",
|
|
2171
2198
|
"require-asterisk-position": "right",
|
|
2172
2199
|
inline: !s.disableInline
|
|
2173
2200
|
}, {
|
|
2174
2201
|
default: m(() => [
|
|
2175
|
-
(p(!0),
|
|
2202
|
+
(p(!0), M(se, null, he(w.value, (h) => (p(), V(R, {
|
|
2176
2203
|
class: "form-item",
|
|
2177
|
-
style:
|
|
2178
|
-
prop:
|
|
2179
|
-
label:
|
|
2204
|
+
style: Re({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2205
|
+
prop: h.prop,
|
|
2206
|
+
label: j(h)
|
|
2180
2207
|
}, {
|
|
2181
2208
|
default: m(() => {
|
|
2182
|
-
var
|
|
2209
|
+
var z, f, E, T, P, X, ce, ue, fe, ae, ee, H, te, ne, le, me;
|
|
2183
2210
|
return [
|
|
2184
|
-
|
|
2211
|
+
W("input", h) ? (p(), V(b, {
|
|
2185
2212
|
key: 0,
|
|
2186
|
-
type:
|
|
2187
|
-
modelValue: r[
|
|
2188
|
-
"onUpdate:modelValue": (
|
|
2189
|
-
placeholder: (
|
|
2190
|
-
disabled:
|
|
2191
|
-
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
2192
|
-
|
|
2193
|
-
|
|
2213
|
+
type: Y(h, "password") ? "password" : "text",
|
|
2214
|
+
modelValue: r[h.prop],
|
|
2215
|
+
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2216
|
+
placeholder: (z = h.formItemAttributes) == null ? void 0 : z.placeholder,
|
|
2217
|
+
disabled: K(h)
|
|
2218
|
+
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
|
|
2219
|
+
S(h) ? (p(), M("span", Fs, D(I(h)), 1)) : J("", !0),
|
|
2220
|
+
Y(h, "switch") ? (p(), V(x, {
|
|
2194
2221
|
key: 2,
|
|
2195
|
-
modelValue: r[
|
|
2196
|
-
"onUpdate:modelValue": (
|
|
2197
|
-
|
|
2198
|
-
|
|
2222
|
+
modelValue: r[h.prop],
|
|
2223
|
+
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2224
|
+
disabled: C.mode === "view"
|
|
2225
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : J("", !0),
|
|
2226
|
+
Y(h, "datepicker") ? (p(), V(u, {
|
|
2199
2227
|
key: 3,
|
|
2200
2228
|
type: "date",
|
|
2201
|
-
modelValue: r[
|
|
2202
|
-
"onUpdate:modelValue": (
|
|
2203
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) :
|
|
2204
|
-
|
|
2229
|
+
modelValue: r[h.prop],
|
|
2230
|
+
"onUpdate:modelValue": (q) => r[h.prop] = q
|
|
2231
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : J("", !0),
|
|
2232
|
+
Y(h, "select") && C.mode !== "view" ? (p(), V(y, {
|
|
2205
2233
|
key: 4,
|
|
2206
|
-
|
|
2207
|
-
"
|
|
2208
|
-
|
|
2209
|
-
|
|
2234
|
+
filterable: (E = (f = h.formItemAttributes) == null ? void 0 : f.selectAttributes) == null ? void 0 : E.allowCreate,
|
|
2235
|
+
"allow-create": (P = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes) == null ? void 0 : P.allowCreate,
|
|
2236
|
+
"default-first-option": (ce = (X = h.formItemAttributes) == null ? void 0 : X.selectAttributes) == null ? void 0 : ce.allowCreate,
|
|
2237
|
+
modelValue: r[h.prop],
|
|
2238
|
+
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2239
|
+
disabled: K(h),
|
|
2240
|
+
onChange: (q) => re(h)
|
|
2210
2241
|
}, {
|
|
2211
2242
|
default: m(() => {
|
|
2212
|
-
var
|
|
2243
|
+
var q, L;
|
|
2213
2244
|
return [
|
|
2214
|
-
(p(!0),
|
|
2215
|
-
value:
|
|
2216
|
-
label:
|
|
2245
|
+
(p(!0), M(se, null, he((L = (q = h.formItemAttributes) == null ? void 0 : q.selectAttributes) == null ? void 0 : L.options, (de) => (p(), V(c, {
|
|
2246
|
+
value: de.value,
|
|
2247
|
+
label: de.label
|
|
2217
2248
|
}, null, 8, ["value", "label"]))), 256))
|
|
2218
2249
|
];
|
|
2219
2250
|
}),
|
|
2220
2251
|
_: 2
|
|
2221
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])) :
|
|
2252
|
+
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : J("", !0),
|
|
2253
|
+
Y(h, "input-number") && C.mode !== "view" ? (p(), V($, {
|
|
2254
|
+
key: 5,
|
|
2255
|
+
modelValue: r[h.prop],
|
|
2256
|
+
"onUpdate:modelValue": (q) => r[h.prop] = q,
|
|
2257
|
+
min: (ae = (fe = (ue = h.formItemAttributes) == null ? void 0 : ue.inputNumber) == null ? void 0 : fe.min) != null ? ae : Number.NEGATIVE_INFINITY,
|
|
2258
|
+
max: (te = (H = (ee = h.formItemAttributes) == null ? void 0 : ee.inputNumber) == null ? void 0 : H.max) != null ? te : Number.POSITIVE_INFINITY,
|
|
2259
|
+
step: (me = (le = (ne = h.formItemAttributes) == null ? void 0 : ne.inputNumber) == null ? void 0 : le.step) != null ? me : 1,
|
|
2260
|
+
"value-on-clear": -10
|
|
2261
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : J("", !0)
|
|
2222
2262
|
];
|
|
2223
2263
|
}),
|
|
2224
2264
|
_: 2
|
|
@@ -2226,14 +2266,14 @@ const Be = (e) => {
|
|
|
2226
2266
|
]),
|
|
2227
2267
|
_: 1
|
|
2228
2268
|
}, 8, ["model", "rules", "inline"])), [
|
|
2229
|
-
[
|
|
2269
|
+
[G, l.value]
|
|
2230
2270
|
]);
|
|
2231
2271
|
};
|
|
2232
2272
|
}
|
|
2233
|
-
}),
|
|
2273
|
+
}), io = /* @__PURE__ */ ve(Rs, [["__scopeId", "data-v-b8d3dfb5"]]), Gs = { class: "console-dialog__body" }, Ls = {
|
|
2234
2274
|
key: 0,
|
|
2235
2275
|
class: "process-view"
|
|
2236
|
-
}, js = { class: "operation-button-wrapper" },
|
|
2276
|
+
}, js = { class: "operation-button-wrapper" }, co = /* @__PURE__ */ we({
|
|
2237
2277
|
__name: "FormDialog",
|
|
2238
2278
|
props: {
|
|
2239
2279
|
id: {},
|
|
@@ -2245,8 +2285,8 @@ const Be = (e) => {
|
|
|
2245
2285
|
},
|
|
2246
2286
|
emits: ["update:visible", "update:id"],
|
|
2247
2287
|
setup(e, { expose: t, emit: o }) {
|
|
2248
|
-
const { t: n } =
|
|
2249
|
-
|
|
2288
|
+
const { t: n } = We(), s = e, r = A(0), l = o, a = A();
|
|
2289
|
+
Ee(() => s.visible, () => {
|
|
2250
2290
|
s.visible && r.value++;
|
|
2251
2291
|
});
|
|
2252
2292
|
function i() {
|
|
@@ -2255,15 +2295,15 @@ const Be = (e) => {
|
|
|
2255
2295
|
function d() {
|
|
2256
2296
|
l("update:visible", !1), a.value.reset();
|
|
2257
2297
|
}
|
|
2258
|
-
function
|
|
2298
|
+
function S() {
|
|
2259
2299
|
a.value.submit();
|
|
2260
2300
|
}
|
|
2261
2301
|
return t({
|
|
2262
2302
|
close: d,
|
|
2263
2303
|
refresh: i
|
|
2264
|
-
}), (
|
|
2265
|
-
const
|
|
2266
|
-
return p(), V(
|
|
2304
|
+
}), (w, N) => {
|
|
2305
|
+
const U = O("el-step"), B = O("el-steps"), F = O("el-button"), j = O("el-dialog");
|
|
2306
|
+
return p(), V(j, {
|
|
2267
2307
|
class: "console-dialog",
|
|
2268
2308
|
title: "Edit",
|
|
2269
2309
|
"align-center": "",
|
|
@@ -2274,33 +2314,33 @@ const Be = (e) => {
|
|
|
2274
2314
|
footer: m(() => {
|
|
2275
2315
|
var I;
|
|
2276
2316
|
return [
|
|
2277
|
-
|
|
2317
|
+
v("div", {
|
|
2278
2318
|
class: "dialog-footer",
|
|
2279
|
-
style:
|
|
2319
|
+
style: Re({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2280
2320
|
}, [
|
|
2281
|
-
|
|
2282
|
-
(p(!0),
|
|
2283
|
-
onClick: (
|
|
2321
|
+
v("div", js, [
|
|
2322
|
+
(p(!0), M(se, null, he((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (K) => (p(), V(F, {
|
|
2323
|
+
onClick: (W) => K.function(a.value.formData)
|
|
2284
2324
|
}, {
|
|
2285
2325
|
default: m(() => [
|
|
2286
|
-
|
|
2326
|
+
Z(D(k(n)(K.label)), 1)
|
|
2287
2327
|
]),
|
|
2288
2328
|
_: 2
|
|
2289
2329
|
}, 1032, ["onClick"]))), 256))
|
|
2290
2330
|
]),
|
|
2291
|
-
|
|
2292
|
-
|
|
2331
|
+
v("div", null, [
|
|
2332
|
+
_(F, { onClick: d }, {
|
|
2293
2333
|
default: m(() => [
|
|
2294
|
-
|
|
2334
|
+
Z(D(k(n)("common.basic.cancel")), 1)
|
|
2295
2335
|
]),
|
|
2296
2336
|
_: 1
|
|
2297
2337
|
}),
|
|
2298
|
-
|
|
2338
|
+
_(F, {
|
|
2299
2339
|
type: "primary",
|
|
2300
|
-
onClick:
|
|
2340
|
+
onClick: S
|
|
2301
2341
|
}, {
|
|
2302
2342
|
default: m(() => [
|
|
2303
|
-
|
|
2343
|
+
Z(D(k(n)("common.basic.save")), 1)
|
|
2304
2344
|
]),
|
|
2305
2345
|
_: 1
|
|
2306
2346
|
})
|
|
@@ -2309,10 +2349,10 @@ const Be = (e) => {
|
|
|
2309
2349
|
];
|
|
2310
2350
|
}),
|
|
2311
2351
|
default: m(() => [
|
|
2312
|
-
|
|
2313
|
-
|
|
2352
|
+
v("div", Gs, [
|
|
2353
|
+
_(io, {
|
|
2314
2354
|
class: "form-view",
|
|
2315
|
-
style:
|
|
2355
|
+
style: Re({ width: w.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2316
2356
|
ref_key: "formViewRef",
|
|
2317
2357
|
ref: a,
|
|
2318
2358
|
id: s.id,
|
|
@@ -2323,97 +2363,97 @@ const Be = (e) => {
|
|
|
2323
2363
|
closeDialogFunc: d,
|
|
2324
2364
|
disableInline: s.showProcess
|
|
2325
2365
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2326
|
-
|
|
2327
|
-
N[0] || (N[0] =
|
|
2328
|
-
|
|
2366
|
+
w.showProcess ? (p(), M("div", Ls, [
|
|
2367
|
+
N[0] || (N[0] = v("h1", null, "流程动态", -1)),
|
|
2368
|
+
_(B, {
|
|
2329
2369
|
style: { height: "90%" },
|
|
2330
2370
|
direction: "vertical",
|
|
2331
2371
|
active: 1
|
|
2332
2372
|
}, {
|
|
2333
2373
|
default: m(() => [
|
|
2334
|
-
|
|
2335
|
-
|
|
2374
|
+
_(U, { title: "Step 1" }),
|
|
2375
|
+
_(U, { title: "Step 2" })
|
|
2336
2376
|
]),
|
|
2337
2377
|
_: 1
|
|
2338
2378
|
})
|
|
2339
|
-
])) :
|
|
2379
|
+
])) : J("", !0)
|
|
2340
2380
|
])
|
|
2341
2381
|
]),
|
|
2342
2382
|
_: 1
|
|
2343
2383
|
}, 8, ["model-value"]);
|
|
2344
2384
|
};
|
|
2345
2385
|
}
|
|
2346
|
-
}), zs = { class: "toolbar" }, qs = { class: "tool-buttons" }, Bs = { class: "tool-buttons" }, Hs = { key: 2 }, Js = /* @__PURE__ */
|
|
2386
|
+
}), zs = { class: "toolbar" }, qs = { class: "tool-buttons" }, Bs = { class: "tool-buttons" }, Hs = { key: 2 }, Js = /* @__PURE__ */ we({
|
|
2347
2387
|
__name: "TableView",
|
|
2348
2388
|
props: {
|
|
2349
2389
|
model: {}
|
|
2350
2390
|
},
|
|
2351
2391
|
setup(e, { expose: t }) {
|
|
2352
|
-
const { t: o } =
|
|
2392
|
+
const { t: o } = ot.global, n = e, s = pe([]), r = pe({
|
|
2353
2393
|
showPane: !0
|
|
2354
|
-
}), l =
|
|
2394
|
+
}), l = A(""), a = A(!0), i = A(!1), d = rt(), S = A(""), w = pe([]), N = pe([]), U = A(), B = A([]), F = A("create"), j = A(!0), I = A(!1), K = A(""), W = pe({
|
|
2355
2395
|
pageSize: 10,
|
|
2356
2396
|
pageNo: 1,
|
|
2357
2397
|
totalElements: 0
|
|
2358
|
-
}),
|
|
2398
|
+
}), Y = Ne(() => s.filter(
|
|
2359
2399
|
(f) => {
|
|
2360
|
-
var
|
|
2361
|
-
return ((
|
|
2400
|
+
var E, T;
|
|
2401
|
+
return ((E = f.formItemAttributes) == null ? void 0 : E.type) !== "password" && f.visible !== !1 && ((T = f.tableColumnAttributes) == null ? void 0 : T.visible) !== !1;
|
|
2362
2402
|
}
|
|
2363
2403
|
));
|
|
2364
|
-
function
|
|
2365
|
-
var
|
|
2366
|
-
let
|
|
2367
|
-
const
|
|
2368
|
-
if (
|
|
2369
|
-
|
|
2370
|
-
else if (
|
|
2371
|
-
for (let
|
|
2372
|
-
if (
|
|
2373
|
-
|
|
2404
|
+
function re(f, E) {
|
|
2405
|
+
var ce, ue, fe, ae;
|
|
2406
|
+
let T = E.row[f.prop];
|
|
2407
|
+
const P = (ue = (ce = f.tableColumnAttributes) == null ? void 0 : ce.functions) == null ? void 0 : ue.transformValue, X = (fe = f.tableColumnAttributes) == null ? void 0 : fe.transformValueMappings;
|
|
2408
|
+
if (P)
|
|
2409
|
+
T = P(T);
|
|
2410
|
+
else if (X && X.length > 0) {
|
|
2411
|
+
for (let ee of X)
|
|
2412
|
+
if (T === ee.value) {
|
|
2413
|
+
T = o(ee.label);
|
|
2374
2414
|
break;
|
|
2375
2415
|
}
|
|
2376
|
-
} else if (((
|
|
2377
|
-
const
|
|
2378
|
-
if (
|
|
2379
|
-
if (
|
|
2380
|
-
|
|
2381
|
-
else if (
|
|
2382
|
-
for (let
|
|
2383
|
-
if (
|
|
2384
|
-
|
|
2416
|
+
} else if (((ae = f.formItemAttributes) == null ? void 0 : ae.type) === "select") {
|
|
2417
|
+
const ee = f.formItemAttributes.selectAttributes;
|
|
2418
|
+
if (ee) {
|
|
2419
|
+
if (ee.viewModeLabelField)
|
|
2420
|
+
T = E.row[ee.viewModeLabelField];
|
|
2421
|
+
else if (ee.options && ee.options.length > 0) {
|
|
2422
|
+
for (let H of ee.options)
|
|
2423
|
+
if (H.value === E.row[f.prop]) {
|
|
2424
|
+
T = H.label;
|
|
2385
2425
|
break;
|
|
2386
2426
|
}
|
|
2387
2427
|
}
|
|
2388
2428
|
}
|
|
2389
2429
|
}
|
|
2390
|
-
return
|
|
2430
|
+
return T;
|
|
2391
2431
|
}
|
|
2392
|
-
function C(f,
|
|
2393
|
-
var
|
|
2394
|
-
return f.label ? o(f.label) : (
|
|
2432
|
+
function C(f, E) {
|
|
2433
|
+
var T, P;
|
|
2434
|
+
return f.label ? o(f.label) : (P = (T = f.functions) == null ? void 0 : T.transformLabel) == null ? void 0 : P.call(T, E.$index, E.row);
|
|
2395
2435
|
}
|
|
2396
|
-
function
|
|
2397
|
-
|
|
2436
|
+
function g(f) {
|
|
2437
|
+
Ge(n.model), Object.assign(n.model, f);
|
|
2398
2438
|
}
|
|
2399
|
-
function
|
|
2400
|
-
var
|
|
2401
|
-
if (
|
|
2439
|
+
function b() {
|
|
2440
|
+
var E, T, P;
|
|
2441
|
+
if (j.value = !0, !n.model || !n.model.api)
|
|
2402
2442
|
return;
|
|
2403
|
-
|
|
2404
|
-
let f =
|
|
2405
|
-
f.pageSize =
|
|
2406
|
-
const { list:
|
|
2407
|
-
|
|
2443
|
+
Ge(r), r.showPane = !0, Object.assign(r, (E = n.model.tableConfig) != null ? E : {}), s.splice(0, s.length, ...n.model.fields), l.value = (T = n.model.route) != null ? T : "", a.value = (P = n.model.useI18n) != null ? P : !0;
|
|
2444
|
+
let f = Ye({}, r.queryParams);
|
|
2445
|
+
f.pageSize = W.pageSize, f.pageNo = W.pageNo, f.search = S.value, Oe(n.model.api, "GET", f).then(({ data: X }) => {
|
|
2446
|
+
const { list: ce, totalCount: ue } = X.data;
|
|
2447
|
+
w.splice(0, w.length, ...ce), W.totalElements = ue, j.value = !1;
|
|
2408
2448
|
});
|
|
2409
2449
|
}
|
|
2410
|
-
function
|
|
2411
|
-
var f,
|
|
2412
|
-
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (
|
|
2450
|
+
function x() {
|
|
2451
|
+
var f, E;
|
|
2452
|
+
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (E = r.functions) == null || E.create() : (F.value = "create", K.value = "", i.value = !0);
|
|
2413
2453
|
}
|
|
2414
|
-
function u(f,
|
|
2415
|
-
n.model.api && Oe(n.model.api, "DELETE",
|
|
2416
|
-
|
|
2454
|
+
function u(f, E) {
|
|
2455
|
+
n.model.api && Oe(n.model.api, "DELETE", E.id).then(({ data: T }) => {
|
|
2456
|
+
T.code === 0 && (i.value = !1, b());
|
|
2417
2457
|
});
|
|
2418
2458
|
}
|
|
2419
2459
|
function c() {
|
|
@@ -2426,417 +2466,417 @@ const Be = (e) => {
|
|
|
2426
2466
|
type: "warning"
|
|
2427
2467
|
}
|
|
2428
2468
|
).then(() => {
|
|
2429
|
-
var f,
|
|
2469
|
+
var f, E;
|
|
2430
2470
|
if (((f = r.functions) == null ? void 0 : f.batchDelete) !== void 0)
|
|
2431
|
-
(
|
|
2471
|
+
(E = r.functions) == null || E.batchDelete(B.value);
|
|
2432
2472
|
else {
|
|
2433
|
-
const
|
|
2434
|
-
|
|
2435
|
-
|
|
2473
|
+
const T = B.value.map((P) => P.id);
|
|
2474
|
+
be.delete(`${n.model.api}/${T.join(",")}`).then(({ data: P }) => {
|
|
2475
|
+
P.code === 0 && (i.value = !1, b());
|
|
2436
2476
|
});
|
|
2437
2477
|
}
|
|
2438
|
-
|
|
2478
|
+
U.value.clearSelection();
|
|
2439
2479
|
}).catch(() => {
|
|
2440
|
-
|
|
2480
|
+
U.value.clearSelection();
|
|
2441
2481
|
});
|
|
2442
2482
|
}
|
|
2443
|
-
function
|
|
2444
|
-
|
|
2483
|
+
function y(f) {
|
|
2484
|
+
W.pageSize = f, b();
|
|
2445
2485
|
}
|
|
2446
2486
|
function $(f) {
|
|
2447
|
-
|
|
2487
|
+
W.pageNo = f, b();
|
|
2448
2488
|
}
|
|
2449
|
-
function
|
|
2489
|
+
function R(f, E) {
|
|
2450
2490
|
r.editPageRoutePath !== void 0 ? d.push({
|
|
2451
2491
|
path: r.editPageRoutePath,
|
|
2452
2492
|
query: {
|
|
2453
|
-
id:
|
|
2493
|
+
id: E.id
|
|
2454
2494
|
}
|
|
2455
|
-
}) : (
|
|
2495
|
+
}) : (K.value = E.id, F.value = "update", i.value = !0);
|
|
2456
2496
|
}
|
|
2457
|
-
function
|
|
2497
|
+
function Q() {
|
|
2458
2498
|
let f = window.location.origin + n.model.api + "/export";
|
|
2459
|
-
const
|
|
2460
|
-
|
|
2461
|
-
f += `${
|
|
2499
|
+
const E = r.queryParams;
|
|
2500
|
+
E !== void 0 && Object.keys(E).length > 0 && (f += "?", Object.entries(r.queryParams).map((T) => {
|
|
2501
|
+
f += `${T[0]}=${T[1]}&`;
|
|
2462
2502
|
})), window.open(f);
|
|
2463
2503
|
}
|
|
2464
|
-
function
|
|
2465
|
-
|
|
2504
|
+
function G(f) {
|
|
2505
|
+
B.value = f;
|
|
2466
2506
|
}
|
|
2467
|
-
function
|
|
2507
|
+
function h(f) {
|
|
2468
2508
|
return f.label ? a.value ? o(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
|
|
2469
2509
|
}
|
|
2470
|
-
function
|
|
2471
|
-
f ? (I.value = !0, N.splice(0, N.length, ...
|
|
2510
|
+
function z(f) {
|
|
2511
|
+
f ? (I.value = !0, N.splice(0, N.length, ...w), w.splice(0, w.length, ...B.value)) : (I.value = !1, w.splice(0, w.length, ...N));
|
|
2472
2512
|
}
|
|
2473
|
-
return
|
|
2474
|
-
|
|
2513
|
+
return Ee(() => n.model, () => {
|
|
2514
|
+
b();
|
|
2475
2515
|
}, {
|
|
2476
2516
|
deep: !0,
|
|
2477
2517
|
immediate: !0
|
|
2478
2518
|
}), t({
|
|
2479
|
-
multipleSelection:
|
|
2480
|
-
refresh:
|
|
2481
|
-
updateConfigAndRefresh:
|
|
2482
|
-
}), (f,
|
|
2483
|
-
const
|
|
2484
|
-
return p(),
|
|
2485
|
-
class:
|
|
2519
|
+
multipleSelection: B,
|
|
2520
|
+
refresh: b,
|
|
2521
|
+
updateConfigAndRefresh: g
|
|
2522
|
+
}), (f, E) => {
|
|
2523
|
+
const T = O("el-checkbox"), P = O("el-badge"), X = O("el-button"), ce = O("el-icon"), ue = O("el-tooltip"), fe = O("el-input"), ae = O("el-table-column"), ee = O("router-link"), H = O("el-tag"), te = O("el-popconfirm"), ne = O("el-table"), le = O("el-pagination"), me = Ut("loading");
|
|
2524
|
+
return p(), M("div", {
|
|
2525
|
+
class: Mt({ "table-view-wrapper": r.showPane })
|
|
2486
2526
|
}, [
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
r.selectMode ? (p(), V(
|
|
2527
|
+
v("div", zs, [
|
|
2528
|
+
v("div", qs, [
|
|
2529
|
+
r.selectMode ? (p(), V(P, {
|
|
2490
2530
|
key: 0,
|
|
2491
|
-
value:
|
|
2531
|
+
value: B.value.length,
|
|
2492
2532
|
type: "primary",
|
|
2493
2533
|
class: "selected-badge"
|
|
2494
2534
|
}, {
|
|
2495
2535
|
default: m(() => [
|
|
2496
|
-
|
|
2536
|
+
_(T, {
|
|
2497
2537
|
class: "selected-checkbox",
|
|
2498
2538
|
border: !0,
|
|
2499
2539
|
label: k(o)("common.table.viewSelected"),
|
|
2500
|
-
onChange:
|
|
2540
|
+
onChange: z
|
|
2501
2541
|
}, null, 8, ["label"])
|
|
2502
2542
|
]),
|
|
2503
2543
|
_: 1
|
|
2504
|
-
}, 8, ["value"])) :
|
|
2505
|
-
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), V(
|
|
2544
|
+
}, 8, ["value"])) : J("", !0),
|
|
2545
|
+
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), V(X, {
|
|
2506
2546
|
key: 1,
|
|
2507
2547
|
type: "primary",
|
|
2508
|
-
onClick:
|
|
2548
|
+
onClick: x
|
|
2509
2549
|
}, {
|
|
2510
2550
|
default: m(() => {
|
|
2511
|
-
var
|
|
2551
|
+
var q, L;
|
|
2512
2552
|
return [
|
|
2513
|
-
|
|
2553
|
+
Z(D(((q = r.labels) == null ? void 0 : q.create) != null ? k(o)((L = r.labels) == null ? void 0 : L.create) : k(o)("common.table.create")), 1)
|
|
2514
2554
|
];
|
|
2515
2555
|
}),
|
|
2516
2556
|
_: 1
|
|
2517
|
-
})) :
|
|
2518
|
-
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), V(
|
|
2557
|
+
})) : J("", !0),
|
|
2558
|
+
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), V(X, {
|
|
2519
2559
|
key: 2,
|
|
2520
|
-
disabled:
|
|
2560
|
+
disabled: B.value.length == 0,
|
|
2521
2561
|
type: "danger",
|
|
2522
2562
|
plain: "",
|
|
2523
2563
|
onClick: c
|
|
2524
2564
|
}, {
|
|
2525
2565
|
default: m(() => {
|
|
2526
|
-
var
|
|
2566
|
+
var q, L;
|
|
2527
2567
|
return [
|
|
2528
|
-
|
|
2568
|
+
Z(D(((q = r.labels) == null ? void 0 : q.delete) != null ? k(o)((L = r.labels) == null ? void 0 : L.delete) : k(o)("common.table.delete")), 1)
|
|
2529
2569
|
];
|
|
2530
2570
|
}),
|
|
2531
2571
|
_: 1
|
|
2532
|
-
}, 8, ["disabled"])) :
|
|
2533
|
-
|
|
2534
|
-
icon: k(
|
|
2535
|
-
onClick:
|
|
2572
|
+
}, 8, ["disabled"])) : J("", !0),
|
|
2573
|
+
_(X, {
|
|
2574
|
+
icon: k(Ft),
|
|
2575
|
+
onClick: b
|
|
2536
2576
|
}, null, 8, ["icon"]),
|
|
2537
|
-
r.tooltip ? (p(), V(
|
|
2577
|
+
r.tooltip ? (p(), V(ue, {
|
|
2538
2578
|
key: 3,
|
|
2539
2579
|
effect: "dark",
|
|
2540
2580
|
content: k(o)(r.tooltip),
|
|
2541
2581
|
placement: "right"
|
|
2542
2582
|
}, {
|
|
2543
2583
|
default: m(() => [
|
|
2544
|
-
|
|
2584
|
+
_(ce, { style: { color: "#8ba74f" } }, {
|
|
2545
2585
|
default: m(() => [
|
|
2546
|
-
|
|
2586
|
+
_(k(Eo))
|
|
2547
2587
|
]),
|
|
2548
2588
|
_: 1
|
|
2549
2589
|
})
|
|
2550
2590
|
]),
|
|
2551
2591
|
_: 1
|
|
2552
|
-
}, 8, ["content"])) :
|
|
2592
|
+
}, 8, ["content"])) : J("", !0)
|
|
2553
2593
|
]),
|
|
2554
|
-
|
|
2555
|
-
r.export ? (p(), V(
|
|
2594
|
+
v("div", Bs, [
|
|
2595
|
+
r.export ? (p(), V(X, {
|
|
2556
2596
|
key: 0,
|
|
2557
2597
|
class: "button-export",
|
|
2558
|
-
onClick:
|
|
2598
|
+
onClick: Q
|
|
2559
2599
|
}, {
|
|
2560
2600
|
default: m(() => [
|
|
2561
|
-
|
|
2601
|
+
_(ce, null, {
|
|
2562
2602
|
default: m(() => [
|
|
2563
|
-
|
|
2603
|
+
_(k($o))
|
|
2564
2604
|
]),
|
|
2565
2605
|
_: 1
|
|
2566
2606
|
})
|
|
2567
2607
|
]),
|
|
2568
2608
|
_: 1
|
|
2569
|
-
})) :
|
|
2570
|
-
|
|
2609
|
+
})) : J("", !0),
|
|
2610
|
+
_(fe, {
|
|
2571
2611
|
placeholder: `${k(o)("common.table.search")}...`,
|
|
2572
|
-
modelValue:
|
|
2573
|
-
"onUpdate:modelValue":
|
|
2612
|
+
modelValue: S.value,
|
|
2613
|
+
"onUpdate:modelValue": E[0] || (E[0] = (q) => S.value = q)
|
|
2574
2614
|
}, {
|
|
2575
2615
|
append: m(() => [
|
|
2576
|
-
|
|
2616
|
+
_(X, {
|
|
2577
2617
|
style: { "margin-left": "-20px" },
|
|
2578
|
-
icon: k(
|
|
2579
|
-
onClick:
|
|
2618
|
+
icon: k(Dt),
|
|
2619
|
+
onClick: b
|
|
2580
2620
|
}, null, 8, ["icon"])
|
|
2581
2621
|
]),
|
|
2582
2622
|
_: 1
|
|
2583
2623
|
}, 8, ["placeholder", "modelValue"])
|
|
2584
2624
|
])
|
|
2585
2625
|
]),
|
|
2586
|
-
|
|
2626
|
+
Tt((p(), V(ne, {
|
|
2587
2627
|
border: !0,
|
|
2588
2628
|
ref_key: "tableRef",
|
|
2589
|
-
ref:
|
|
2590
|
-
data:
|
|
2591
|
-
onSelectionChange:
|
|
2629
|
+
ref: U,
|
|
2630
|
+
data: w,
|
|
2631
|
+
onSelectionChange: G,
|
|
2592
2632
|
class: "table"
|
|
2593
2633
|
}, {
|
|
2594
2634
|
default: m(() => {
|
|
2595
|
-
var
|
|
2635
|
+
var q;
|
|
2596
2636
|
return [
|
|
2597
|
-
r.readOnly ?
|
|
2637
|
+
r.readOnly ? J("", !0) : (p(), V(ae, {
|
|
2598
2638
|
key: 0,
|
|
2599
2639
|
type: "selection",
|
|
2600
2640
|
width: "50"
|
|
2601
2641
|
})),
|
|
2602
|
-
(p(!0),
|
|
2603
|
-
var
|
|
2604
|
-
return p(), V(
|
|
2605
|
-
prop:
|
|
2606
|
-
label:
|
|
2607
|
-
width: (
|
|
2642
|
+
(p(!0), M(se, null, he(Y.value, (L) => {
|
|
2643
|
+
var de;
|
|
2644
|
+
return p(), V(ae, {
|
|
2645
|
+
prop: L.prop,
|
|
2646
|
+
label: h(L),
|
|
2647
|
+
width: (de = L.tableColumnAttributes) == null ? void 0 : de.width,
|
|
2608
2648
|
"show-overflow-tooltip": ""
|
|
2609
2649
|
}, {
|
|
2610
2650
|
default: m((xe) => {
|
|
2611
|
-
var
|
|
2651
|
+
var Pe, Le, bt;
|
|
2612
2652
|
return [
|
|
2613
|
-
(
|
|
2653
|
+
(Pe = L.tableColumnAttributes) != null && Pe.link ? (p(), V(ee, {
|
|
2614
2654
|
key: 0,
|
|
2615
2655
|
class: "router-link",
|
|
2616
2656
|
to: `/${l.value}/detail?id=${xe.row.id}`
|
|
2617
2657
|
}, {
|
|
2618
2658
|
default: m(() => [
|
|
2619
|
-
|
|
2659
|
+
v("span", null, D(re(L, xe)), 1)
|
|
2620
2660
|
]),
|
|
2621
2661
|
_: 2
|
|
2622
|
-
}, 1032, ["to"])) : (
|
|
2662
|
+
}, 1032, ["to"])) : (Le = L.tableColumnAttributes) != null && Le.routerLink ? (p(), V(ee, {
|
|
2623
2663
|
key: 1,
|
|
2624
2664
|
class: "router-link",
|
|
2625
|
-
to:
|
|
2665
|
+
to: L.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
|
|
2626
2666
|
}, {
|
|
2627
2667
|
default: m(() => [
|
|
2628
|
-
|
|
2668
|
+
v("span", null, D(re(L, xe)), 1)
|
|
2629
2669
|
]),
|
|
2630
2670
|
_: 2
|
|
2631
|
-
}, 1032, ["to"])) : (p(),
|
|
2632
|
-
((
|
|
2671
|
+
}, 1032, ["to"])) : (p(), M("span", Hs, D(re(L, xe)), 1)),
|
|
2672
|
+
((bt = L.tableColumnAttributes) == null ? void 0 : bt.type) === "tag" ? (p(), V(H, { key: 3 }, {
|
|
2633
2673
|
default: m(() => [
|
|
2634
|
-
|
|
2674
|
+
Z(D(xe.row[L.prop]), 1)
|
|
2635
2675
|
]),
|
|
2636
2676
|
_: 2
|
|
2637
|
-
}, 1024)) :
|
|
2677
|
+
}, 1024)) : J("", !0)
|
|
2638
2678
|
];
|
|
2639
2679
|
}),
|
|
2640
2680
|
_: 2
|
|
2641
2681
|
}, 1032, ["prop", "label", "width"]);
|
|
2642
2682
|
}), 256)),
|
|
2643
|
-
r.operations === void 0 && !((
|
|
2683
|
+
r.operations === void 0 && !((q = r.selectMode) != null && q) && !r.readOnly ? (p(), V(ae, {
|
|
2644
2684
|
key: 1,
|
|
2645
2685
|
label: k(o)("common.table.operation"),
|
|
2646
2686
|
width: "120"
|
|
2647
2687
|
}, {
|
|
2648
|
-
default: m((
|
|
2649
|
-
r.updatable !== !1 ? (p(), V(
|
|
2688
|
+
default: m((L) => [
|
|
2689
|
+
r.updatable !== !1 ? (p(), V(X, {
|
|
2650
2690
|
key: 0,
|
|
2651
2691
|
link: "",
|
|
2652
2692
|
type: "primary",
|
|
2653
2693
|
class: "operation-button",
|
|
2654
|
-
onClick: (
|
|
2694
|
+
onClick: (de) => R(L.$index, L.row)
|
|
2655
2695
|
}, {
|
|
2656
2696
|
default: m(() => [
|
|
2657
|
-
|
|
2697
|
+
Z(D(k(o)("common.table.edit")), 1)
|
|
2658
2698
|
]),
|
|
2659
2699
|
_: 2
|
|
2660
|
-
}, 1032, ["onClick"])) :
|
|
2661
|
-
|
|
2700
|
+
}, 1032, ["onClick"])) : J("", !0),
|
|
2701
|
+
_(te, {
|
|
2662
2702
|
title: "Are you sure to delete this?",
|
|
2663
|
-
onConfirm: (
|
|
2703
|
+
onConfirm: (de) => u(L.$index, L.row)
|
|
2664
2704
|
}, {
|
|
2665
2705
|
reference: m(() => [
|
|
2666
|
-
r.deletable !== !1 ? (p(), V(
|
|
2706
|
+
r.deletable !== !1 ? (p(), V(X, {
|
|
2667
2707
|
key: 0,
|
|
2668
2708
|
link: "",
|
|
2669
2709
|
type: "primary",
|
|
2670
2710
|
class: "operation-button"
|
|
2671
2711
|
}, {
|
|
2672
2712
|
default: m(() => [
|
|
2673
|
-
|
|
2713
|
+
Z(D(k(o)("common.table.delete")), 1)
|
|
2674
2714
|
]),
|
|
2675
2715
|
_: 1
|
|
2676
|
-
})) :
|
|
2716
|
+
})) : J("", !0)
|
|
2677
2717
|
]),
|
|
2678
2718
|
_: 2
|
|
2679
2719
|
}, 1032, ["onConfirm"])
|
|
2680
2720
|
]),
|
|
2681
2721
|
_: 1
|
|
2682
|
-
}, 8, ["label"])) :
|
|
2683
|
-
r.operations !== void 0 && !r.readOnly ? (p(), V(
|
|
2722
|
+
}, 8, ["label"])) : J("", !0),
|
|
2723
|
+
r.operations !== void 0 && !r.readOnly ? (p(), V(ae, {
|
|
2684
2724
|
key: 2,
|
|
2685
2725
|
label: k(o)("common.table.operation"),
|
|
2686
2726
|
width: "120"
|
|
2687
2727
|
}, {
|
|
2688
|
-
default: m((
|
|
2689
|
-
(p(!0),
|
|
2728
|
+
default: m((L) => [
|
|
2729
|
+
(p(!0), M(se, null, he(r.operations, (de) => (p(), V(X, {
|
|
2690
2730
|
class: "operation-button",
|
|
2691
2731
|
link: "",
|
|
2692
2732
|
type: "primary",
|
|
2693
|
-
key:
|
|
2733
|
+
key: de.label,
|
|
2694
2734
|
onClick: (xe) => {
|
|
2695
|
-
var
|
|
2696
|
-
return ((
|
|
2735
|
+
var Pe, Le;
|
|
2736
|
+
return ((Le = (Pe = de.functions) == null ? void 0 : Pe.click) == null ? void 0 : Le.call(Pe, L.$index, L.row)) && b();
|
|
2697
2737
|
}
|
|
2698
2738
|
}, {
|
|
2699
2739
|
default: m(() => [
|
|
2700
|
-
|
|
2740
|
+
Z(D(C(de, L)), 1)
|
|
2701
2741
|
]),
|
|
2702
2742
|
_: 2
|
|
2703
2743
|
}, 1032, ["onClick"]))), 128))
|
|
2704
2744
|
]),
|
|
2705
2745
|
_: 1
|
|
2706
|
-
}, 8, ["label"])) :
|
|
2746
|
+
}, 8, ["label"])) : J("", !0)
|
|
2707
2747
|
];
|
|
2708
2748
|
}),
|
|
2709
2749
|
_: 1
|
|
2710
2750
|
}, 8, ["data"])), [
|
|
2711
|
-
[
|
|
2751
|
+
[me, j.value]
|
|
2712
2752
|
]),
|
|
2713
|
-
I.value ?
|
|
2753
|
+
I.value ? J("", !0) : (p(), V(le, {
|
|
2714
2754
|
key: 0,
|
|
2715
2755
|
size: "small",
|
|
2716
2756
|
background: "",
|
|
2717
|
-
onSizeChange:
|
|
2757
|
+
onSizeChange: y,
|
|
2718
2758
|
onCurrentChange: $,
|
|
2719
|
-
currentPage:
|
|
2720
|
-
"onUpdate:currentPage":
|
|
2759
|
+
currentPage: W.pageNo,
|
|
2760
|
+
"onUpdate:currentPage": E[1] || (E[1] = (q) => W.pageNo = q),
|
|
2721
2761
|
"page-sizes": [10, 20, 50, 100],
|
|
2722
|
-
"page-size":
|
|
2762
|
+
"page-size": W.pageSize,
|
|
2723
2763
|
layout: "total, sizes, prev, pager, next",
|
|
2724
|
-
total:
|
|
2764
|
+
total: W.totalElements
|
|
2725
2765
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
2726
|
-
|
|
2766
|
+
_(co, {
|
|
2727
2767
|
model: f.model,
|
|
2728
|
-
mode:
|
|
2729
|
-
id:
|
|
2730
|
-
afterSubmitFunc:
|
|
2768
|
+
mode: F.value,
|
|
2769
|
+
id: K.value,
|
|
2770
|
+
afterSubmitFunc: b,
|
|
2731
2771
|
visible: i.value,
|
|
2732
|
-
"onUpdate:visible":
|
|
2772
|
+
"onUpdate:visible": E[2] || (E[2] = (q) => i.value = q)
|
|
2733
2773
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
2734
2774
|
], 2);
|
|
2735
2775
|
};
|
|
2736
2776
|
}
|
|
2737
|
-
}),
|
|
2777
|
+
}), st = /* @__PURE__ */ ve(Js, [["__scopeId", "data-v-e945f432"]]), Ws = { class: "nav-bar" }, Ys = {
|
|
2738
2778
|
key: 0,
|
|
2739
2779
|
class: "info-card-wrapper"
|
|
2740
|
-
}, Qs = { class: "icon-wrapper" }, Ks = { class: "info-wrapper" }, Xs = { class: "title-wrapper" }, Zs = { class: "tabs-wrapper" }, er = { class: "dialog-footer" }, tr = /* @__PURE__ */
|
|
2780
|
+
}, Qs = { class: "icon-wrapper" }, Ks = { class: "info-wrapper" }, Xs = { class: "title-wrapper" }, Zs = { class: "tabs-wrapper" }, er = { class: "dialog-footer" }, tr = /* @__PURE__ */ we({
|
|
2741
2781
|
__name: "DetailPage",
|
|
2742
2782
|
setup(e) {
|
|
2743
|
-
const { t } =
|
|
2783
|
+
const { t } = We(), o = Je(), n = rt(), s = Ne(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), d = A(-1), S = A(), w = A(), N = A("summary"), U = A(""), B = A(""), F = A(""), j = A(0), I = pe({
|
|
2744
2784
|
api: "",
|
|
2745
2785
|
fields: []
|
|
2746
|
-
}),
|
|
2747
|
-
let
|
|
2748
|
-
|
|
2786
|
+
}), K = pe([]);
|
|
2787
|
+
let W = [];
|
|
2788
|
+
Ee([
|
|
2749
2789
|
() => n.currentRoute.value,
|
|
2750
|
-
|
|
2790
|
+
ge
|
|
2751
2791
|
], () => {
|
|
2752
|
-
|
|
2792
|
+
g();
|
|
2753
2793
|
}, {
|
|
2754
2794
|
immediate: !0,
|
|
2755
2795
|
deep: !0
|
|
2756
2796
|
});
|
|
2757
|
-
function
|
|
2797
|
+
function Y(u) {
|
|
2758
2798
|
d.value = parseInt(u.index) - 1;
|
|
2759
2799
|
}
|
|
2760
|
-
function
|
|
2800
|
+
function re() {
|
|
2761
2801
|
var $;
|
|
2762
|
-
let u = ($ =
|
|
2802
|
+
let u = ($ = W[d.value].api) == null ? void 0 : $.replace("/select", "");
|
|
2763
2803
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
2764
|
-
const c = I.api + "/" + s.value + u,
|
|
2765
|
-
Oe(c, "POST",
|
|
2766
|
-
|
|
2804
|
+
const c = I.api + "/" + s.value + u, y = w.value.multipleSelection.map((R) => R.id);
|
|
2805
|
+
Oe(c, "POST", y).then(() => {
|
|
2806
|
+
S.value.refresh(), l.value = !1;
|
|
2767
2807
|
});
|
|
2768
2808
|
}
|
|
2769
|
-
function C(u, c,
|
|
2770
|
-
var
|
|
2771
|
-
|
|
2772
|
-
l.value = !0,
|
|
2809
|
+
function C(u, c, y) {
|
|
2810
|
+
var Q;
|
|
2811
|
+
y.functions || (y.functions = {}), y.functions.create = () => {
|
|
2812
|
+
l.value = !0, w.value && w.value.refresh();
|
|
2773
2813
|
};
|
|
2774
|
-
let $ =
|
|
2814
|
+
let $ = Fe(c);
|
|
2775
2815
|
$.tableConfig || ($.tableConfig = {}), $.tableConfig.selectMode = !0, $.tableConfig.queryParams = {}, u.queryParamName && ($.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
2776
|
-
for (var
|
|
2777
|
-
$.fields[
|
|
2778
|
-
|
|
2816
|
+
for (var R in $.fields)
|
|
2817
|
+
$.fields[R].tableColumnAttributes && (Q = $.fields[R].tableColumnAttributes) != null && Q.link && ($.fields[R].tableColumnAttributes.link = !1);
|
|
2818
|
+
W.push($), y.labels = {
|
|
2779
2819
|
create: "common.table.add",
|
|
2780
2820
|
delete: "common.table.remove"
|
|
2781
|
-
},
|
|
2782
|
-
var
|
|
2783
|
-
let
|
|
2784
|
-
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2787
|
-
|
|
2821
|
+
}, y.functions.batchDelete = (G) => {
|
|
2822
|
+
var E;
|
|
2823
|
+
let h = (E = W[d.value].api) == null ? void 0 : E.replace("/select", "");
|
|
2824
|
+
h = h == null ? void 0 : h.substring(h.lastIndexOf("/"));
|
|
2825
|
+
const z = I.api + "/" + s.value + h, f = G.map((T) => T.id);
|
|
2826
|
+
be.delete(`${z}/${f.join(",")}`).then(({ data: T }) => {
|
|
2827
|
+
T.code === 0 && S.value.refresh();
|
|
2788
2828
|
});
|
|
2789
|
-
},
|
|
2829
|
+
}, y.operations = [
|
|
2790
2830
|
{
|
|
2791
2831
|
label: "common.table.remove",
|
|
2792
2832
|
functions: {
|
|
2793
|
-
click: (
|
|
2794
|
-
var
|
|
2795
|
-
let
|
|
2796
|
-
|
|
2797
|
-
const f = I.api + "/" + s.value +
|
|
2798
|
-
Oe(f, "DELETE",
|
|
2799
|
-
|
|
2833
|
+
click: (G, h) => {
|
|
2834
|
+
var E;
|
|
2835
|
+
let z = (E = W[d.value].api) == null ? void 0 : E.replace("/select", "");
|
|
2836
|
+
z = z == null ? void 0 : z.substring(z.lastIndexOf("/"));
|
|
2837
|
+
const f = I.api + "/" + s.value + z;
|
|
2838
|
+
Oe(f, "DELETE", h.id).then(() => {
|
|
2839
|
+
S.value.refresh();
|
|
2800
2840
|
});
|
|
2801
2841
|
}
|
|
2802
2842
|
}
|
|
2803
2843
|
}
|
|
2804
2844
|
], $.api += "/select";
|
|
2805
2845
|
}
|
|
2806
|
-
function
|
|
2807
|
-
var $,
|
|
2808
|
-
|
|
2846
|
+
function g() {
|
|
2847
|
+
var $, R, Q;
|
|
2848
|
+
K.splice(0);
|
|
2809
2849
|
const u = o.params.model;
|
|
2810
|
-
if (
|
|
2850
|
+
if (ge.value[u] === void 0) {
|
|
2811
2851
|
console.warn("Detail page model not exist:", u);
|
|
2812
2852
|
return;
|
|
2813
2853
|
} else
|
|
2814
|
-
console.debug("Detail page model found:", u,
|
|
2815
|
-
|
|
2816
|
-
const c =
|
|
2817
|
-
Object.assign(I, c),
|
|
2818
|
-
const
|
|
2819
|
-
if (
|
|
2820
|
-
for (let
|
|
2821
|
-
const
|
|
2822
|
-
if (
|
|
2823
|
-
|
|
2824
|
-
let
|
|
2825
|
-
|
|
2854
|
+
console.debug("Detail page model found:", u, ge.value[u]);
|
|
2855
|
+
Ge(I);
|
|
2856
|
+
const c = Fe(ge.value[u]);
|
|
2857
|
+
Object.assign(I, c), j.value++, d.value = -1, N.value = "summary";
|
|
2858
|
+
const y = (R = ($ = I.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : R.tabs;
|
|
2859
|
+
if (y)
|
|
2860
|
+
for (let G of y) {
|
|
2861
|
+
const h = Fe(ge.value[G.modelKey]);
|
|
2862
|
+
if (K.push(h), G.type === "table") {
|
|
2863
|
+
h.tableConfig || (h.tableConfig = {});
|
|
2864
|
+
let z = h.tableConfig;
|
|
2865
|
+
z.showPane = !1, G.modelRelationType === "associated" ? C(G, h, z) : G.modelRelationType === "child" && (W.push({
|
|
2826
2866
|
fields: []
|
|
2827
|
-
}),
|
|
2828
|
-
f[
|
|
2829
|
-
})),
|
|
2830
|
-
var
|
|
2831
|
-
return (
|
|
2832
|
-
})),
|
|
2833
|
-
var
|
|
2834
|
-
return !((
|
|
2835
|
-
})),
|
|
2867
|
+
}), h.formConfig === void 0 && (h.formConfig = {}), h.formConfig.functions === void 0 && (h.formConfig.functions = {}), G.queryParamName && (h.formConfig.functions.beforeSubmit = (f) => {
|
|
2868
|
+
f[G.queryParamName] = s.value;
|
|
2869
|
+
})), z.queryParams || (z.queryParams = {}), G.queryParamName && (z.queryParams[G.queryParamName] = s.value), G.queryParams && Object.assign(z.queryParams, G.queryParams), z.readOnly = (Q = G.readOnly) != null ? Q : !1, G.includeFields && (h.fields = h.fields.filter((f) => {
|
|
2870
|
+
var E;
|
|
2871
|
+
return (E = G.includeFields) == null ? void 0 : E.includes(f.prop);
|
|
2872
|
+
})), G.excludeFields && (h.fields = h.fields.filter((f) => {
|
|
2873
|
+
var E;
|
|
2874
|
+
return !((E = G.excludeFields) != null && E.includes(f.prop));
|
|
2875
|
+
})), G.tooltip && (z.tooltip = G.tooltip);
|
|
2836
2876
|
}
|
|
2837
2877
|
}
|
|
2838
2878
|
}
|
|
2839
|
-
|
|
2879
|
+
Ee(
|
|
2840
2880
|
[
|
|
2841
2881
|
() => {
|
|
2842
2882
|
var u, c;
|
|
@@ -2848,14 +2888,14 @@ const Be = (e) => {
|
|
|
2848
2888
|
}
|
|
2849
2889
|
],
|
|
2850
2890
|
(u) => {
|
|
2851
|
-
|
|
2852
|
-
var
|
|
2853
|
-
const c = ($ = (
|
|
2854
|
-
c && (
|
|
2855
|
-
var
|
|
2856
|
-
if (
|
|
2857
|
-
const
|
|
2858
|
-
|
|
2891
|
+
ze(() => {
|
|
2892
|
+
var y, $, R;
|
|
2893
|
+
const c = ($ = (y = I.pageConfig) == null ? void 0 : y.detailPage) == null ? void 0 : $.infoCard;
|
|
2894
|
+
c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", B.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", F.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (R = I.fields) == null || R.forEach((Q) => {
|
|
2895
|
+
var G, h;
|
|
2896
|
+
if (Q.prop === c.tagFieldProp) {
|
|
2897
|
+
const z = (h = (G = Q.tableColumnAttributes) == null ? void 0 : G.functions) == null ? void 0 : h.transformValue;
|
|
2898
|
+
z && (F.value = z(F.value));
|
|
2859
2899
|
}
|
|
2860
2900
|
}));
|
|
2861
2901
|
});
|
|
@@ -2865,35 +2905,35 @@ const Be = (e) => {
|
|
|
2865
2905
|
deep: !0
|
|
2866
2906
|
}
|
|
2867
2907
|
);
|
|
2868
|
-
function
|
|
2908
|
+
function b() {
|
|
2869
2909
|
r.value = !0;
|
|
2870
2910
|
}
|
|
2871
|
-
function
|
|
2911
|
+
function x() {
|
|
2872
2912
|
i.value.refresh();
|
|
2873
2913
|
}
|
|
2874
2914
|
return (u, c) => {
|
|
2875
|
-
var
|
|
2876
|
-
const
|
|
2877
|
-
return p(),
|
|
2878
|
-
|
|
2879
|
-
|
|
2915
|
+
var X, ce, ue, fe, ae, ee;
|
|
2916
|
+
const y = O("el-breadcrumb-item"), $ = O("el-breadcrumb"), R = O("el-button"), Q = O("el-icon"), G = O("el-dropdown-item"), h = O("el-dropdown-menu"), z = O("el-dropdown"), f = O("el-tag"), E = O("el-tab-pane"), T = O("el-tabs"), P = O("el-dialog");
|
|
2917
|
+
return p(), M(se, null, [
|
|
2918
|
+
v("div", Ws, [
|
|
2919
|
+
_($, null, {
|
|
2880
2920
|
default: m(() => {
|
|
2881
|
-
var
|
|
2921
|
+
var H, te;
|
|
2882
2922
|
return [
|
|
2883
|
-
|
|
2884
|
-
to: { path: `/${(
|
|
2923
|
+
_(y, {
|
|
2924
|
+
to: { path: `/${(te = (H = I == null ? void 0 : I.breadcrumbRoute) != null ? H : I == null ? void 0 : I.route) != null ? te : ""}` }
|
|
2885
2925
|
}, {
|
|
2886
2926
|
default: m(() => {
|
|
2887
|
-
var
|
|
2927
|
+
var ne;
|
|
2888
2928
|
return [
|
|
2889
|
-
|
|
2929
|
+
Z(D(k(t)((ne = I == null ? void 0 : I.name) != null ? ne : "")), 1)
|
|
2890
2930
|
];
|
|
2891
2931
|
}),
|
|
2892
2932
|
_: 1
|
|
2893
2933
|
}, 8, ["to"]),
|
|
2894
|
-
|
|
2934
|
+
_(y, null, {
|
|
2895
2935
|
default: m(() => [
|
|
2896
|
-
|
|
2936
|
+
Z(D(k(t)("common.basic.detail")), 1)
|
|
2897
2937
|
]),
|
|
2898
2938
|
_: 1
|
|
2899
2939
|
})
|
|
@@ -2901,37 +2941,37 @@ const Be = (e) => {
|
|
|
2901
2941
|
}),
|
|
2902
2942
|
_: 1
|
|
2903
2943
|
}),
|
|
2904
|
-
|
|
2905
|
-
|
|
2944
|
+
v("div", null, [
|
|
2945
|
+
_(R, {
|
|
2906
2946
|
type: "primary",
|
|
2907
|
-
onClick:
|
|
2947
|
+
onClick: b
|
|
2908
2948
|
}, {
|
|
2909
2949
|
default: m(() => [
|
|
2910
|
-
|
|
2950
|
+
Z(D(k(t)("common.table.edit")), 1)
|
|
2911
2951
|
]),
|
|
2912
2952
|
_: 1
|
|
2913
2953
|
}),
|
|
2914
|
-
|
|
2954
|
+
_(R, {
|
|
2915
2955
|
type: "danger",
|
|
2916
2956
|
plain: "",
|
|
2917
2957
|
disabled: ""
|
|
2918
2958
|
}, {
|
|
2919
2959
|
default: m(() => [
|
|
2920
|
-
|
|
2960
|
+
Z(D(k(t)("common.table.delete")), 1)
|
|
2921
2961
|
]),
|
|
2922
2962
|
_: 1
|
|
2923
2963
|
}),
|
|
2924
|
-
((
|
|
2964
|
+
((ce = (X = I.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : ce.operationButtons) !== void 0 ? (p(), V(z, { key: 0 }, {
|
|
2925
2965
|
dropdown: m(() => [
|
|
2926
|
-
h
|
|
2966
|
+
_(h, null, {
|
|
2927
2967
|
default: m(() => {
|
|
2928
|
-
var
|
|
2968
|
+
var H, te;
|
|
2929
2969
|
return [
|
|
2930
|
-
(p(!0),
|
|
2931
|
-
onClick: (
|
|
2970
|
+
(p(!0), M(se, null, he((te = (H = I.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : te.operationButtons, (ne) => (p(), V(G, {
|
|
2971
|
+
onClick: (le) => ne.function(i.value.formData)
|
|
2932
2972
|
}, {
|
|
2933
2973
|
default: m(() => [
|
|
2934
|
-
|
|
2974
|
+
Z(D(k(t)(ne.label)), 1)
|
|
2935
2975
|
]),
|
|
2936
2976
|
_: 2
|
|
2937
2977
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2941,12 +2981,12 @@ const Be = (e) => {
|
|
|
2941
2981
|
})
|
|
2942
2982
|
]),
|
|
2943
2983
|
default: m(() => [
|
|
2944
|
-
|
|
2984
|
+
_(R, { style: { margin: "0 10px" } }, {
|
|
2945
2985
|
default: m(() => [
|
|
2946
|
-
|
|
2947
|
-
|
|
2986
|
+
Z(D(k(t)("common.basic.more")), 1),
|
|
2987
|
+
_(Q, { class: "el-icon--right" }, {
|
|
2948
2988
|
default: m(() => [
|
|
2949
|
-
|
|
2989
|
+
_(k(xo))
|
|
2950
2990
|
]),
|
|
2951
2991
|
_: 1
|
|
2952
2992
|
})
|
|
@@ -2955,183 +2995,183 @@ const Be = (e) => {
|
|
|
2955
2995
|
})
|
|
2956
2996
|
]),
|
|
2957
2997
|
_: 1
|
|
2958
|
-
})) :
|
|
2959
|
-
|
|
2960
|
-
icon: k(
|
|
2961
|
-
onClick:
|
|
2998
|
+
})) : J("", !0),
|
|
2999
|
+
_(R, {
|
|
3000
|
+
icon: k(Ft),
|
|
3001
|
+
onClick: x
|
|
2962
3002
|
}, null, 8, ["icon"])
|
|
2963
3003
|
])
|
|
2964
3004
|
]),
|
|
2965
|
-
(
|
|
2966
|
-
|
|
2967
|
-
(p(), V(
|
|
3005
|
+
(fe = (ue = I.pageConfig) == null ? void 0 : ue.detailPage) != null && fe.infoCard ? (p(), M("div", Ys, [
|
|
3006
|
+
v("div", Qs, [
|
|
3007
|
+
(p(), V(tt((ae = I.pageConfig.detailPage.infoCard.icon) != null ? ae : ""), { class: "icon" }))
|
|
2968
3008
|
]),
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
((
|
|
3009
|
+
v("div", Ks, [
|
|
3010
|
+
v("div", Xs, [
|
|
3011
|
+
v("h1", null, D(U.value), 1),
|
|
3012
|
+
((ee = F.value) == null ? void 0 : ee.length) > 0 ? (p(), V(f, {
|
|
2973
3013
|
key: 0,
|
|
2974
3014
|
size: "small"
|
|
2975
3015
|
}, {
|
|
2976
3016
|
default: m(() => [
|
|
2977
|
-
|
|
3017
|
+
Z(D(F.value), 1)
|
|
2978
3018
|
]),
|
|
2979
3019
|
_: 1
|
|
2980
|
-
})) :
|
|
3020
|
+
})) : J("", !0)
|
|
2981
3021
|
]),
|
|
2982
|
-
|
|
3022
|
+
v("span", null, D(B.value), 1)
|
|
2983
3023
|
])
|
|
2984
|
-
])) :
|
|
2985
|
-
|
|
2986
|
-
|
|
3024
|
+
])) : J("", !0),
|
|
3025
|
+
v("div", Zs, [
|
|
3026
|
+
_(T, {
|
|
2987
3027
|
modelValue: N.value,
|
|
2988
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2989
|
-
onTabClick:
|
|
3028
|
+
"onUpdate:modelValue": c[0] || (c[0] = (H) => N.value = H),
|
|
3029
|
+
onTabClick: Y
|
|
2990
3030
|
}, {
|
|
2991
3031
|
default: m(() => {
|
|
2992
|
-
var
|
|
3032
|
+
var H, te;
|
|
2993
3033
|
return [
|
|
2994
|
-
|
|
3034
|
+
_(E, {
|
|
2995
3035
|
label: k(t)("common.basic.summary"),
|
|
2996
3036
|
name: "summary"
|
|
2997
3037
|
}, {
|
|
2998
3038
|
default: m(() => [
|
|
2999
|
-
|
|
3039
|
+
_(io, {
|
|
3000
3040
|
ref_key: "formViewRef",
|
|
3001
3041
|
ref: i,
|
|
3002
3042
|
id: s.value,
|
|
3003
|
-
sessionId:
|
|
3043
|
+
sessionId: j.value,
|
|
3004
3044
|
mode: a.value,
|
|
3005
3045
|
model: I
|
|
3006
3046
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
3007
3047
|
]),
|
|
3008
3048
|
_: 1
|
|
3009
3049
|
}, 8, ["label"]),
|
|
3010
|
-
(p(!0),
|
|
3011
|
-
var
|
|
3012
|
-
return p(), V(
|
|
3013
|
-
label: k(t)((
|
|
3050
|
+
(p(!0), M(se, null, he((te = (H = I.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : te.tabs, (ne) => {
|
|
3051
|
+
var le;
|
|
3052
|
+
return p(), V(E, {
|
|
3053
|
+
label: k(t)((le = ne.name) != null ? le : "")
|
|
3014
3054
|
}, null, 8, ["label"]);
|
|
3015
3055
|
}), 256))
|
|
3016
3056
|
];
|
|
3017
3057
|
}),
|
|
3018
3058
|
_: 1
|
|
3019
3059
|
}, 8, ["modelValue"]),
|
|
3020
|
-
d.value >= 0 ? (p(), V(
|
|
3060
|
+
d.value >= 0 ? (p(), V(st, {
|
|
3021
3061
|
key: 0,
|
|
3022
3062
|
ref_key: "tabPaneTableRef",
|
|
3023
|
-
ref:
|
|
3024
|
-
model:
|
|
3025
|
-
}, null, 8, ["model"])) :
|
|
3026
|
-
|
|
3063
|
+
ref: S,
|
|
3064
|
+
model: K[d.value]
|
|
3065
|
+
}, null, 8, ["model"])) : J("", !0),
|
|
3066
|
+
_(P, {
|
|
3027
3067
|
modelValue: l.value,
|
|
3028
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
3068
|
+
"onUpdate:modelValue": c[2] || (c[2] = (H) => l.value = H),
|
|
3029
3069
|
title: k(t)("common.table.select"),
|
|
3030
3070
|
width: "800px"
|
|
3031
3071
|
}, {
|
|
3032
3072
|
footer: m(() => [
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
onClick: c[1] || (c[1] = (
|
|
3073
|
+
v("span", er, [
|
|
3074
|
+
_(R, {
|
|
3075
|
+
onClick: c[1] || (c[1] = (H) => l.value = !1)
|
|
3036
3076
|
}, {
|
|
3037
3077
|
default: m(() => [
|
|
3038
|
-
|
|
3078
|
+
Z(D(k(t)("common.basic.cancel")), 1)
|
|
3039
3079
|
]),
|
|
3040
3080
|
_: 1
|
|
3041
3081
|
}),
|
|
3042
|
-
|
|
3082
|
+
_(R, {
|
|
3043
3083
|
type: "primary",
|
|
3044
|
-
onClick:
|
|
3084
|
+
onClick: re
|
|
3045
3085
|
}, {
|
|
3046
3086
|
default: m(() => [
|
|
3047
|
-
|
|
3087
|
+
Z(D(k(t)("common.basic.save")), 1)
|
|
3048
3088
|
]),
|
|
3049
3089
|
_: 1
|
|
3050
3090
|
})
|
|
3051
3091
|
])
|
|
3052
3092
|
]),
|
|
3053
3093
|
default: m(() => [
|
|
3054
|
-
d.value >= 0 ? (p(), V(
|
|
3094
|
+
d.value >= 0 ? (p(), V(st, {
|
|
3055
3095
|
key: 0,
|
|
3056
3096
|
ref_key: "selectTableRef",
|
|
3057
|
-
ref:
|
|
3058
|
-
model: k(
|
|
3059
|
-
}, null, 8, ["model"])) :
|
|
3097
|
+
ref: w,
|
|
3098
|
+
model: k(W)[d.value]
|
|
3099
|
+
}, null, 8, ["model"])) : J("", !0)
|
|
3060
3100
|
]),
|
|
3061
3101
|
_: 1
|
|
3062
3102
|
}, 8, ["modelValue", "title"])
|
|
3063
3103
|
]),
|
|
3064
|
-
|
|
3104
|
+
_(co, {
|
|
3065
3105
|
id: s.value,
|
|
3066
3106
|
mode: "update",
|
|
3067
3107
|
visible: r.value,
|
|
3068
|
-
"onUpdate:visible": c[3] || (c[3] = (
|
|
3108
|
+
"onUpdate:visible": c[3] || (c[3] = (H) => r.value = H),
|
|
3069
3109
|
model: I,
|
|
3070
|
-
afterSubmitFunc:
|
|
3110
|
+
afterSubmitFunc: x
|
|
3071
3111
|
}, null, 8, ["id", "visible", "model"])
|
|
3072
3112
|
], 64);
|
|
3073
3113
|
};
|
|
3074
3114
|
}
|
|
3075
|
-
}), or = /* @__PURE__ */
|
|
3115
|
+
}), or = /* @__PURE__ */ ve(tr, [["__scopeId", "data-v-f9250724"]]), nr = { class: "page-title" }, sr = /* @__PURE__ */ we({
|
|
3076
3116
|
__name: "TablePage",
|
|
3077
3117
|
setup(e) {
|
|
3078
|
-
const { t } =
|
|
3118
|
+
const { t } = We(), o = Je(), n = rt(), s = A(), r = A([]), l = pe({
|
|
3079
3119
|
api: "",
|
|
3080
3120
|
fields: []
|
|
3081
|
-
}), a =
|
|
3121
|
+
}), a = pe(Ye({}, l));
|
|
3082
3122
|
function i() {
|
|
3083
|
-
var
|
|
3084
|
-
r.value = [], l.pageConfig && ((
|
|
3085
|
-
let
|
|
3086
|
-
return
|
|
3087
|
-
key:
|
|
3088
|
-
label:
|
|
3089
|
-
icon:
|
|
3090
|
-
disabled:
|
|
3091
|
-
model:
|
|
3123
|
+
var S, w, N, U, B;
|
|
3124
|
+
r.value = [], l.pageConfig && ((w = (S = l.pageConfig) == null ? void 0 : S.tablePage) != null && w.tabViewAttributes) && (r.value = (B = (U = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : U.tabViewAttributes) == null ? void 0 : B.map((F) => {
|
|
3125
|
+
let j;
|
|
3126
|
+
return F.modelKey && ge.value[F.modelKey] ? j = Fe(ge.value[F.modelKey]) : j = Fe(l), F.queryParams && (j.tableConfig || (j.tableConfig = {}), j.tableConfig.queryParams = F.queryParams), F.fields && (j.fields = F.fields), F.modelKey && (j.breadcrumbRoute = l.route), {
|
|
3127
|
+
key: F.key,
|
|
3128
|
+
label: F.label,
|
|
3129
|
+
icon: F.icon,
|
|
3130
|
+
disabled: F.disabled,
|
|
3131
|
+
model: j
|
|
3092
3132
|
};
|
|
3093
3133
|
}));
|
|
3094
3134
|
}
|
|
3095
3135
|
function d() {
|
|
3096
|
-
var N,
|
|
3097
|
-
console.log("
|
|
3098
|
-
const
|
|
3099
|
-
if (
|
|
3100
|
-
console.warn("
|
|
3136
|
+
var N, U;
|
|
3137
|
+
console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ge.value);
|
|
3138
|
+
const S = o.params.model;
|
|
3139
|
+
if (ge.value[S] === void 0) {
|
|
3140
|
+
console.warn("TablePage.init: model not found", S, ge.value);
|
|
3101
3141
|
return;
|
|
3102
3142
|
}
|
|
3103
|
-
|
|
3104
|
-
const
|
|
3105
|
-
Object.assign(l,
|
|
3143
|
+
Ge(l);
|
|
3144
|
+
const w = Fe(ge.value[S]);
|
|
3145
|
+
Object.assign(l, w), (U = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
|
|
3106
3146
|
}
|
|
3107
|
-
return
|
|
3147
|
+
return Ee([
|
|
3108
3148
|
() => n.currentRoute.value,
|
|
3109
|
-
|
|
3149
|
+
ge
|
|
3110
3150
|
], () => {
|
|
3111
3151
|
d();
|
|
3112
3152
|
}, {
|
|
3113
3153
|
immediate: !0,
|
|
3114
3154
|
deep: !0
|
|
3115
|
-
}), (
|
|
3116
|
-
var
|
|
3117
|
-
const N =
|
|
3118
|
-
return p(),
|
|
3119
|
-
|
|
3120
|
-
|
|
3155
|
+
}), (S, w) => {
|
|
3156
|
+
var U;
|
|
3157
|
+
const N = O("el-scrollbar");
|
|
3158
|
+
return p(), M(se, null, [
|
|
3159
|
+
v("h1", nr, D(k(t)((U = l.name) != null ? U : "")), 1),
|
|
3160
|
+
_(N, null, {
|
|
3121
3161
|
default: m(() => {
|
|
3122
|
-
var
|
|
3162
|
+
var B, F;
|
|
3123
3163
|
return [
|
|
3124
|
-
(
|
|
3164
|
+
(F = (B = l.pageConfig) == null ? void 0 : B.tablePage) != null && F.tabViewAttributes ? (p(), V(lo, {
|
|
3125
3165
|
key: 0,
|
|
3126
3166
|
class: "tabs-wrapper",
|
|
3127
3167
|
cards: r.value,
|
|
3128
3168
|
tableRef: s.value
|
|
3129
|
-
}, null, 8, ["cards", "tableRef"])) :
|
|
3169
|
+
}, null, 8, ["cards", "tableRef"])) : J("", !0)
|
|
3130
3170
|
];
|
|
3131
3171
|
}),
|
|
3132
3172
|
_: 1
|
|
3133
3173
|
}),
|
|
3134
|
-
|
|
3174
|
+
_(st, {
|
|
3135
3175
|
class: "table-wrapper",
|
|
3136
3176
|
ref_key: "tableRef",
|
|
3137
3177
|
ref: s,
|
|
@@ -3140,15 +3180,15 @@ const Be = (e) => {
|
|
|
3140
3180
|
], 64);
|
|
3141
3181
|
};
|
|
3142
3182
|
}
|
|
3143
|
-
}), rr = /* @__PURE__ */
|
|
3183
|
+
}), rr = /* @__PURE__ */ ve(sr, [["__scopeId", "data-v-1a472785"]]), ar = [
|
|
3144
3184
|
No,
|
|
3145
3185
|
ys,
|
|
3146
|
-
|
|
3147
|
-
|
|
3186
|
+
Lt,
|
|
3187
|
+
xs,
|
|
3148
3188
|
Vs,
|
|
3149
|
-
ro,
|
|
3150
3189
|
ao,
|
|
3151
|
-
|
|
3190
|
+
lo,
|
|
3191
|
+
st,
|
|
3152
3192
|
or,
|
|
3153
3193
|
rr
|
|
3154
3194
|
], hr = (e) => {
|
|
@@ -3160,19 +3200,19 @@ export {
|
|
|
3160
3200
|
No as Building,
|
|
3161
3201
|
ys as ConsoleApp,
|
|
3162
3202
|
or as DetailPage,
|
|
3163
|
-
|
|
3164
|
-
|
|
3203
|
+
Lt as Header,
|
|
3204
|
+
xs as NoPermission,
|
|
3165
3205
|
Vs as Secondary,
|
|
3166
|
-
|
|
3167
|
-
|
|
3206
|
+
ao as SideMenu,
|
|
3207
|
+
lo as TabCard,
|
|
3168
3208
|
rr as TablePage,
|
|
3169
|
-
|
|
3209
|
+
st as TableView,
|
|
3170
3210
|
Vn as activeMenuMapping,
|
|
3171
3211
|
hr as default,
|
|
3172
3212
|
on as en,
|
|
3173
|
-
|
|
3213
|
+
ot as i18n,
|
|
3174
3214
|
Ct as menuList,
|
|
3175
|
-
|
|
3215
|
+
ge as modelList,
|
|
3176
3216
|
gt as pinia,
|
|
3177
3217
|
nn as zh
|
|
3178
3218
|
};
|