@okiss/oms 0.0.94 → 0.0.96
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.
- package/dist/index.es.js +671 -668
- package/dist/index.es.js.map +1 -1
- package/dist/oms.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as T, watch as ue, computed as g, defineComponent as G, onBeforeMount as We, provide as
|
|
2
|
-
import { normalizeTheme as he, applyDocumentTheme as
|
|
3
|
-
import { defineStore as Oe, createPinia as
|
|
4
|
-
import
|
|
1
|
+
import { ref as T, watch as ue, computed as g, defineComponent as G, onBeforeMount as We, provide as xo, resolveComponent as M, createBlock as h, openBlock as r, createVNode as c, createTextVNode as I, withCtx as i, TransitionGroup as Eo, createElementBlock as v, Fragment as R, renderList as U, toDisplayString as A, normalizeClass as te, renderSlot as fe, createCommentVNode as $, mergeProps as X, toRefs as Io, unref as f, isRef as Qe, onMounted as Te, normalizeStyle as Co, createElementVNode as y, withKeys as bt, withModifiers as He, resolveDynamicComponent as Xe, Transition as Bt, normalizeProps as Z, guardReactiveProps as de, onUnmounted as To, resolveDirective as Oo, withDirectives as $o, getCurrentInstance as Bo, h as Ao, toRaw as Ro, createApp as Po } from "vue";
|
|
2
|
+
import { normalizeTheme as he, applyDocumentTheme as Lo, dispatchThemeChange as Mo, addNewStyle as Do, addNewStyleTag as jo, queryParams as No, logGroup as Vo, compactObject as At, showEleByClassName as Rt, waterMarker as Uo, Cache as we, isExternal as yt, getQueryParam as Pt, createIFrame as qo, strVarReplace as re, obj2Param as Ho, isObject as ce, isString as Ze, effectDataTrans as Fo, isArray as Lt } from "@okiss/utils";
|
|
3
|
+
import { defineStore as Oe, createPinia as Go } from "pinia";
|
|
4
|
+
import oe from "js-cookie";
|
|
5
5
|
import Mt from "element-plus/es/locale/lang/zh-cn";
|
|
6
|
-
import
|
|
6
|
+
import Ko, { cloneDeep as E, merge as q, get as be, unset as Dt, isObject as zo } from "lodash";
|
|
7
7
|
import Me from "mockjs";
|
|
8
8
|
import Ye from "axios";
|
|
9
|
-
import
|
|
9
|
+
import Jo, { ElMessageBox as jt, ElMessage as Nt, ElCol as Wo, ElRow as Qo, ElCard as Xo } from "element-plus";
|
|
10
10
|
import "element-plus/theme-chalk/src/index.scss";
|
|
11
11
|
import "element-plus/theme-chalk/src/dark/css-vars.scss";
|
|
12
12
|
import "dayjs/locale/zh-cn";
|
|
13
|
-
import { useRoute as Q, useRouter as $e, onBeforeRouteLeave as
|
|
14
|
-
import { ElBreadcrumb as
|
|
13
|
+
import { useRoute as Q, useRouter as $e, onBeforeRouteLeave as Zo, createRouter as Yo, createWebHashHistory as en, onBeforeRouteUpdate as tn } from "vue-router";
|
|
14
|
+
import { ElBreadcrumb as on, ElBreadcrumbItem as nn, ElContainer as ln, ElRow as ve, ElMain as sn, ElAside as an, ElForm as et, ElFormItem as tt, ElSelect as ot, ElOption as nt, ElDivider as Vt, ElButton as ye, ElCol as Be, ElDrawer as Ut, ElTooltip as qt, ElIcon as Ht, ElDropdown as rn, ElDropdownMenu as cn, ElDropdownItem as un, ElAvatar as dn, ElImage as pn, ElMenuItem as mn, ElSubMenu as fn, ElOptionGroup as hn, ElScrollbar as bn, ElMenu as yn, ElBacktop as _n, ElCard as Ae, ElInput as vn, ElAlert as lt, ElTree as gn } from "element-plus/es";
|
|
15
15
|
import "element-plus/es/components/base/style/css";
|
|
16
16
|
import "element-plus/es/components/row/style/css";
|
|
17
17
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -24,7 +24,7 @@ import "element-plus/es/components/icon/style/css";
|
|
|
24
24
|
import "element-plus/es/components/col/style/css";
|
|
25
25
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
26
26
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
27
|
-
import * as
|
|
27
|
+
import * as kn from "path-to-regexp";
|
|
28
28
|
import "element-plus/es/components/form/style/css";
|
|
29
29
|
import "element-plus/es/components/form-item/style/css";
|
|
30
30
|
import "element-plus/es/components/select/style/css";
|
|
@@ -34,11 +34,11 @@ import "element-plus/es/components/divider/style/css";
|
|
|
34
34
|
import "element-plus/es/components/container/style/css";
|
|
35
35
|
import "element-plus/es/components/aside/style/css";
|
|
36
36
|
import "element-plus/es/components/main/style/css";
|
|
37
|
-
import { JsonView as st, VBtn as at, VForm as
|
|
37
|
+
import { JsonView as st, VBtn as at, VForm as ne, VTable as _e, VChart as wn, setUploadHeaderHandle as Sn, VIcon as xn } from "@okiss/vbtf";
|
|
38
38
|
import "normalize.css/normalize.css";
|
|
39
39
|
import "@okiss/vbtf/style.css";
|
|
40
|
-
import
|
|
41
|
-
import { Moon as
|
|
40
|
+
import En from "mitt";
|
|
41
|
+
import { Moon as In, Sunny as Cn, Brush as Tn, InfoFilled as On } from "@element-plus/icons-vue";
|
|
42
42
|
import "element-plus/es/components/scrollbar/style/css";
|
|
43
43
|
import "element-plus/es/components/menu/style/css";
|
|
44
44
|
import "element-plus/es/components/image/style/css";
|
|
@@ -46,40 +46,40 @@ import "element-plus/es/components/sub-menu/style/css";
|
|
|
46
46
|
import "element-plus/es/components/menu-item/style/css";
|
|
47
47
|
import "element-plus/es/components/option-group/style/css";
|
|
48
48
|
import "element-plus/es/components/backtop/style/css";
|
|
49
|
-
import { useEventListener as $
|
|
49
|
+
import { useEventListener as $n } from "@vueuse/core";
|
|
50
50
|
import "element-plus/es/components/alert/style/css";
|
|
51
51
|
import "element-plus/es/components/card/style/css";
|
|
52
52
|
import "element-plus/es/components/tree/style/css";
|
|
53
|
-
import
|
|
53
|
+
import Bn from "vue3-markdown-it";
|
|
54
54
|
import "element-plus/es/components/input/style/css";
|
|
55
|
-
import
|
|
55
|
+
import An from "crypto-js";
|
|
56
56
|
import Fe from "nprogress";
|
|
57
57
|
import "nprogress/nprogress.css";
|
|
58
58
|
String.prototype.format || (String.prototype.format = function() {
|
|
59
59
|
const e = arguments;
|
|
60
|
-
return this.replace(/{(\d+)}/g, function(t,
|
|
61
|
-
return typeof e[
|
|
60
|
+
return this.replace(/{(\d+)}/g, function(t, o) {
|
|
61
|
+
return typeof e[o] < "u" ? e[o] : t;
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
const it = "oms:token";
|
|
65
65
|
function ge() {
|
|
66
|
-
return
|
|
66
|
+
return oe.get(it) || "";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const t = V(D),
|
|
70
|
-
return
|
|
68
|
+
function Rn(e) {
|
|
69
|
+
const t = V(D), o = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
|
|
70
|
+
return oe.set(it, e, { expires: o });
|
|
71
71
|
}
|
|
72
72
|
function Ft() {
|
|
73
|
-
return
|
|
73
|
+
return oe.remove(it);
|
|
74
74
|
}
|
|
75
75
|
let Gt = null;
|
|
76
|
-
function
|
|
76
|
+
function Pn(e) {
|
|
77
77
|
Gt = e;
|
|
78
78
|
}
|
|
79
79
|
function De() {
|
|
80
80
|
return Gt;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const Ln = {
|
|
83
83
|
baseURL: "/api",
|
|
84
84
|
withCredentials: !0,
|
|
85
85
|
cacheEnable: !0
|
|
@@ -113,12 +113,12 @@ const Lo = {
|
|
|
113
113
|
themeMode: "light",
|
|
114
114
|
aestheticMode: "default"
|
|
115
115
|
}, Re = {
|
|
116
|
-
axios:
|
|
116
|
+
axios: Ln,
|
|
117
117
|
settings: Kt,
|
|
118
118
|
plugins: [],
|
|
119
119
|
mock: !1
|
|
120
|
-
},
|
|
121
|
-
state: () => ({ ...
|
|
120
|
+
}, Mn = E(Kt), V = Oe("settings", {
|
|
121
|
+
state: () => ({ ...Mn }),
|
|
122
122
|
actions: {
|
|
123
123
|
updateSettings(e) {
|
|
124
124
|
q(this, e);
|
|
@@ -142,7 +142,7 @@ const Lo = {
|
|
|
142
142
|
state: () => ({ ..._t }),
|
|
143
143
|
actions: {
|
|
144
144
|
updateToken(e) {
|
|
145
|
-
this.token = e,
|
|
145
|
+
this.token = e, Rn(e);
|
|
146
146
|
},
|
|
147
147
|
removeToken() {
|
|
148
148
|
this.token = "", Ft();
|
|
@@ -151,8 +151,8 @@ const Lo = {
|
|
|
151
151
|
this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
|
|
152
152
|
},
|
|
153
153
|
setCustomRoutes(e) {
|
|
154
|
-
const t = new Set(this.customRouter.map((
|
|
155
|
-
|
|
154
|
+
const t = new Set(this.customRouter.map((n) => vt(n))), o = e.filter((n) => !t.has(vt(n)));
|
|
155
|
+
o.length && (this.customRouter = this.customRouter.concat(o));
|
|
156
156
|
},
|
|
157
157
|
updateState({ key: e, value: t }) {
|
|
158
158
|
this[e] = t;
|
|
@@ -166,19 +166,19 @@ const Lo = {
|
|
|
166
166
|
},
|
|
167
167
|
// async actions
|
|
168
168
|
login(e) {
|
|
169
|
-
return new Promise((t,
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
172
|
-
|
|
169
|
+
return new Promise((t, o) => {
|
|
170
|
+
const n = De();
|
|
171
|
+
if (!n) {
|
|
172
|
+
o("http client not init");
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
n.request({
|
|
176
176
|
url: "/user/login",
|
|
177
177
|
method: "POST",
|
|
178
178
|
data: e
|
|
179
179
|
}).then((l) => {
|
|
180
180
|
this.updateToken(l.data?.token || ""), t(!0);
|
|
181
|
-
}).catch((l) =>
|
|
181
|
+
}).catch((l) => o(l));
|
|
182
182
|
});
|
|
183
183
|
},
|
|
184
184
|
logout() {
|
|
@@ -186,20 +186,20 @@ const Lo = {
|
|
|
186
186
|
},
|
|
187
187
|
info() {
|
|
188
188
|
return new Promise((e, t) => {
|
|
189
|
-
const
|
|
190
|
-
if (!
|
|
189
|
+
const o = De();
|
|
190
|
+
if (!o) {
|
|
191
191
|
t("http client not init");
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
o.request({
|
|
195
195
|
url: "/user/info",
|
|
196
196
|
method: "GET"
|
|
197
|
-
}).then((
|
|
198
|
-
const l =
|
|
199
|
-
this.updateState({ key: "name", value:
|
|
200
|
-
const s =
|
|
201
|
-
V().updateSettings(s), !
|
|
202
|
-
}).catch((
|
|
197
|
+
}).then((n) => {
|
|
198
|
+
const l = n.data?.role_ids || [];
|
|
199
|
+
this.updateState({ key: "name", value: n.data?.name }), this.updateState({ key: "nickname", value: n.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: n.data?.env });
|
|
200
|
+
const s = n.data?.website || {};
|
|
201
|
+
V().updateSettings(s), !oe.get("username") && oe.set("username", n.data?.name), e(!0);
|
|
202
|
+
}).catch((n) => t(n));
|
|
203
203
|
});
|
|
204
204
|
},
|
|
205
205
|
loadRemoteRoutes() {
|
|
@@ -207,14 +207,14 @@ const Lo = {
|
|
|
207
207
|
De()?.request({
|
|
208
208
|
url: "/user/routes",
|
|
209
209
|
method: "get"
|
|
210
|
-
}).then((
|
|
211
|
-
if (
|
|
212
|
-
const l =
|
|
210
|
+
}).then((n) => {
|
|
211
|
+
if (n.code === 0) {
|
|
212
|
+
const l = n.data || [];
|
|
213
213
|
e(l);
|
|
214
214
|
} else
|
|
215
215
|
t("error");
|
|
216
|
-
}).catch((
|
|
217
|
-
t(
|
|
216
|
+
}).catch((n) => {
|
|
217
|
+
t(n);
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
220
|
},
|
|
@@ -223,22 +223,22 @@ const Lo = {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
}), Ce = "sidebarStatus";
|
|
226
|
-
function
|
|
226
|
+
function Dn() {
|
|
227
227
|
if (typeof window > "u")
|
|
228
228
|
return;
|
|
229
229
|
const e = window.localStorage.getItem(Ce);
|
|
230
230
|
if (e !== null)
|
|
231
231
|
return e === "1";
|
|
232
|
-
const t =
|
|
232
|
+
const t = oe.get(Ce);
|
|
233
233
|
if (t !== void 0)
|
|
234
234
|
return !!t;
|
|
235
235
|
}
|
|
236
236
|
function gt(e) {
|
|
237
|
-
typeof window < "u" && window.localStorage.setItem(Ce, e ? "1" : "0"),
|
|
237
|
+
typeof window < "u" && window.localStorage.setItem(Ce, e ? "1" : "0"), oe.set(Ce, e ? "1" : "0");
|
|
238
238
|
}
|
|
239
|
-
const
|
|
239
|
+
const jn = {
|
|
240
240
|
sidebar: {
|
|
241
|
-
opened:
|
|
241
|
+
opened: Dn() ?? !0,
|
|
242
242
|
withoutAnimation: !1
|
|
243
243
|
},
|
|
244
244
|
device: "desktop",
|
|
@@ -247,7 +247,7 @@ const jo = {
|
|
|
247
247
|
builderSchema: {},
|
|
248
248
|
baseURL: ""
|
|
249
249
|
}, Y = Oe("app", {
|
|
250
|
-
state: () => ({ ...
|
|
250
|
+
state: () => ({ ...jn }),
|
|
251
251
|
actions: {
|
|
252
252
|
TOGGLE_SIDEBAR() {
|
|
253
253
|
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, gt(this.sidebar.opened);
|
|
@@ -293,11 +293,11 @@ const jo = {
|
|
|
293
293
|
this.SET_BASE_API(e);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
}),
|
|
296
|
+
}), Nn = {
|
|
297
297
|
currentCellItem: {}
|
|
298
298
|
// form/sub-form 当前单元格编辑数据
|
|
299
299
|
}, xr = Oe("builderSchema", {
|
|
300
|
-
state: () => ({ ...
|
|
300
|
+
state: () => ({ ...Nn }),
|
|
301
301
|
actions: {
|
|
302
302
|
SET_CURRENT_CELLITEM(e) {
|
|
303
303
|
this.currentCellItem = e;
|
|
@@ -306,37 +306,37 @@ const jo = {
|
|
|
306
306
|
this.SET_CURRENT_CELLITEM(e);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
}), D =
|
|
310
|
-
function
|
|
309
|
+
}), D = Go();
|
|
310
|
+
function Vn(e) {
|
|
311
311
|
e.use(D);
|
|
312
312
|
}
|
|
313
313
|
const zt = "oms-theme", Jt = T("light");
|
|
314
314
|
let kt = !1, Se = null;
|
|
315
|
-
function
|
|
315
|
+
function Un(e) {
|
|
316
316
|
const t = he(e ?? void 0);
|
|
317
317
|
if (typeof window > "u")
|
|
318
318
|
return t;
|
|
319
|
-
const
|
|
320
|
-
return
|
|
319
|
+
const o = window.localStorage?.getItem(zt);
|
|
320
|
+
return o === "dark" || o === "light" ? o : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function qn(e) {
|
|
323
323
|
typeof window < "u" && window.localStorage?.setItem(zt, e);
|
|
324
324
|
}
|
|
325
325
|
function je(e) {
|
|
326
326
|
const t = he(e);
|
|
327
|
-
Jt.value = t,
|
|
327
|
+
Jt.value = t, Lo(t), Mo(t), qn(t);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Hn(e) {
|
|
330
330
|
if (typeof window > "u" || typeof window.matchMedia != "function") {
|
|
331
331
|
Se = null;
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
const t = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
335
|
-
const l =
|
|
334
|
+
const t = window.matchMedia("(prefers-color-scheme: dark)"), o = (n) => {
|
|
335
|
+
const l = n.matches ?? t.matches;
|
|
336
336
|
e(l ? "dark" : "light");
|
|
337
337
|
};
|
|
338
|
-
typeof t.addEventListener == "function" ? t.addEventListener("change",
|
|
339
|
-
typeof t.removeEventListener == "function" ? t.removeEventListener("change",
|
|
338
|
+
typeof t.addEventListener == "function" ? t.addEventListener("change", o) : t.addListener(o), Se = () => {
|
|
339
|
+
typeof t.removeEventListener == "function" ? t.removeEventListener("change", o) : t.removeListener(o), Se = null;
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
function Wt() {
|
|
@@ -346,46 +346,46 @@ function Wt() {
|
|
|
346
346
|
};
|
|
347
347
|
if (!kt) {
|
|
348
348
|
kt = !0;
|
|
349
|
-
const s =
|
|
349
|
+
const s = Un(e.themeMode);
|
|
350
350
|
he(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : je(s), ue(
|
|
351
351
|
() => e.themeMode,
|
|
352
352
|
(a) => {
|
|
353
353
|
je(he(a));
|
|
354
354
|
},
|
|
355
355
|
{ immediate: !0 }
|
|
356
|
-
), Se?.(),
|
|
356
|
+
), Se?.(), Hn((a) => {
|
|
357
357
|
t(a);
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const o = g(() => Jt.value), n = g(() => o.value === "dark");
|
|
361
361
|
return {
|
|
362
|
-
themeMode:
|
|
363
|
-
isDark:
|
|
362
|
+
themeMode: o,
|
|
363
|
+
isDark: n,
|
|
364
364
|
setTheme: t,
|
|
365
365
|
toggleTheme: () => {
|
|
366
|
-
t(
|
|
366
|
+
t(n.value ? "light" : "dark");
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const Fn = /* @__PURE__ */ G({
|
|
371
371
|
__name: "App",
|
|
372
372
|
setup(e) {
|
|
373
373
|
return Wt(), We(() => {
|
|
374
374
|
const t = document.getElementById("preloader");
|
|
375
|
-
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(),
|
|
375
|
+
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), Do("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), jo(`.iconfont {
|
|
376
376
|
font-size: 19px;
|
|
377
377
|
font-style: normal;
|
|
378
378
|
-webkit-font-smoothing: antialiased;
|
|
379
379
|
font-family: iconfont !important;
|
|
380
380
|
}`));
|
|
381
|
-
}), window?.OmsOptions?.form?.vsPath &&
|
|
382
|
-
const
|
|
383
|
-
return r(), h(
|
|
381
|
+
}), window?.OmsOptions?.form?.vsPath && xo("vsPath", window?.OmsOptions?.form?.vsPath), (t, o) => {
|
|
382
|
+
const n = M("router-view");
|
|
383
|
+
return r(), h(n);
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
387
|
var pe = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(pe || {});
|
|
388
|
-
const
|
|
388
|
+
const Gn = [
|
|
389
389
|
{
|
|
390
390
|
type: "jump",
|
|
391
391
|
text: "跳转",
|
|
@@ -442,9 +442,9 @@ const Go = [
|
|
|
442
442
|
}
|
|
443
443
|
];
|
|
444
444
|
[
|
|
445
|
-
...
|
|
445
|
+
...Ko.cloneDeep(Gn)
|
|
446
446
|
];
|
|
447
|
-
const
|
|
447
|
+
const Kn = {
|
|
448
448
|
code: 0,
|
|
449
449
|
data: {
|
|
450
450
|
"list|0-100": [
|
|
@@ -465,7 +465,7 @@ const Ko = {
|
|
|
465
465
|
"page|1-5": 2
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
},
|
|
468
|
+
}, zn = { listMock: Kn }, Jn = [
|
|
469
469
|
{
|
|
470
470
|
method: pe.POST,
|
|
471
471
|
url: "/login",
|
|
@@ -509,70 +509,70 @@ const Ko = {
|
|
|
509
509
|
{
|
|
510
510
|
url: "/user/list",
|
|
511
511
|
method: pe.GET,
|
|
512
|
-
response: (e) =>
|
|
512
|
+
response: (e) => zn.listMock
|
|
513
513
|
}
|
|
514
|
-
],
|
|
515
|
-
...
|
|
514
|
+
], Wn = [
|
|
515
|
+
...Jn
|
|
516
516
|
], Ge = {};
|
|
517
517
|
function Qt(e) {
|
|
518
518
|
e.forEach((t) => {
|
|
519
|
-
const
|
|
520
|
-
Ge[`${t.method}::${
|
|
519
|
+
const o = Xt(t);
|
|
520
|
+
Ge[`${t.method}::${o}`] = t;
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
|
-
Qt(
|
|
523
|
+
Qt(Wn);
|
|
524
524
|
function Xt(e) {
|
|
525
|
-
let t = e.url,
|
|
526
|
-
return
|
|
525
|
+
let t = e.url, o = e.baseURL || Re.axios?.baseURL;
|
|
526
|
+
return o || (o = ""), typeof t == "string" ? (t = ("/" + o + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Qn() {
|
|
529
529
|
Object.keys(Ge).forEach((e) => {
|
|
530
|
-
const t = Ge[e],
|
|
531
|
-
Me.mock(
|
|
532
|
-
const { url: l, type: s, body: a } =
|
|
533
|
-
return
|
|
530
|
+
const t = Ge[e], o = Xt(t);
|
|
531
|
+
Me.mock(o, t.method, function(n) {
|
|
532
|
+
const { url: l, type: s, body: a } = n, u = No(l), d = a ? JSON.parse(a) : {}, m = t.response({ query: u, data: d }), p = Me.mock(m);
|
|
533
|
+
return Vo(l, { type: s, query: u, data: d, response: p }), Me.mock(p);
|
|
534
534
|
});
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const Xn = Nt, wt = jt, Zn = Ye.CancelToken, xe = {
|
|
538
538
|
taskList: {},
|
|
539
539
|
cacheList: /* @__PURE__ */ new Map(),
|
|
540
540
|
uniqueId(e) {
|
|
541
541
|
return `${location.href}|${e.method}|${e.url}|`;
|
|
542
542
|
},
|
|
543
543
|
addTask(e, t) {
|
|
544
|
-
const
|
|
545
|
-
this.taskList[
|
|
544
|
+
const o = this.uniqueId(e);
|
|
545
|
+
this.taskList[o] = t;
|
|
546
546
|
},
|
|
547
547
|
delTask(e) {
|
|
548
|
-
const t = this.uniqueId(e),
|
|
549
|
-
|
|
548
|
+
const t = this.uniqueId(e), o = this.taskList[t];
|
|
549
|
+
o && o(e);
|
|
550
550
|
},
|
|
551
551
|
pending(e) {
|
|
552
552
|
const t = this.uniqueId(e);
|
|
553
553
|
return !!this.taskList[t];
|
|
554
554
|
},
|
|
555
555
|
cache(e) {
|
|
556
|
-
const t = this.uniqueId(e),
|
|
557
|
-
if (
|
|
558
|
-
if (
|
|
556
|
+
const t = this.uniqueId(e), o = this.cacheList.get(t);
|
|
557
|
+
if (o) {
|
|
558
|
+
if (o.expirationTime < (/* @__PURE__ */ new Date()).getTime()) {
|
|
559
559
|
this.delCache(e);
|
|
560
560
|
return;
|
|
561
561
|
}
|
|
562
|
-
return
|
|
562
|
+
return o.response, o.response;
|
|
563
563
|
}
|
|
564
564
|
},
|
|
565
565
|
addCache(e, t) {
|
|
566
|
-
const
|
|
567
|
-
|
|
566
|
+
const o = this.uniqueId(e), n = e.cacheTime || 0;
|
|
567
|
+
n && this.cacheList.set(o, { response: t, expirationTime: (/* @__PURE__ */ new Date()).getTime() + n });
|
|
568
568
|
},
|
|
569
569
|
delCache(e) {
|
|
570
570
|
const t = this.uniqueId(e);
|
|
571
571
|
return this.cacheList.delete(t);
|
|
572
572
|
}
|
|
573
|
-
},
|
|
573
|
+
}, Yn = {
|
|
574
574
|
onFulfilled: function(e) {
|
|
575
|
-
return e.cacheEnable === !1 || (xe.pending(e) && xe.delTask(e), e.cancelToken = new
|
|
575
|
+
return e.cacheEnable === !1 || (xe.pending(e) && xe.delTask(e), e.cancelToken = new Zn((t) => {
|
|
576
576
|
xe.addTask(e, t);
|
|
577
577
|
})), e;
|
|
578
578
|
},
|
|
@@ -593,7 +593,7 @@ function Er(e, t) {
|
|
|
593
593
|
function tl(e) {
|
|
594
594
|
return Zt[e];
|
|
595
595
|
}
|
|
596
|
-
const
|
|
596
|
+
const ol = /* @__PURE__ */ G({
|
|
597
597
|
name: "Dashboard",
|
|
598
598
|
setup() {
|
|
599
599
|
const e = tl("dashboard");
|
|
@@ -607,11 +607,11 @@ const nl = /* @__PURE__ */ G({
|
|
|
607
607
|
}, [I("Hi "), t.value, I(" 😄")])]);
|
|
608
608
|
}
|
|
609
609
|
}), L = (e, t) => {
|
|
610
|
-
const
|
|
611
|
-
for (const [
|
|
612
|
-
n
|
|
613
|
-
return
|
|
614
|
-
},
|
|
610
|
+
const o = e.__vccOpts || e;
|
|
611
|
+
for (const [n, l] of t)
|
|
612
|
+
o[n] = l;
|
|
613
|
+
return o;
|
|
614
|
+
}, nl = /* @__PURE__ */ L(ol, [["__scopeId", "data-v-85165680"]]), ll = {
|
|
615
615
|
data() {
|
|
616
616
|
return {
|
|
617
617
|
levelList: null
|
|
@@ -628,13 +628,13 @@ const nl = /* @__PURE__ */ G({
|
|
|
628
628
|
methods: {
|
|
629
629
|
getBreadcrumb() {
|
|
630
630
|
let e = this.$route.matched.filter(
|
|
631
|
-
(
|
|
631
|
+
(o) => o.meta && o.meta.title
|
|
632
632
|
);
|
|
633
633
|
const t = e[0];
|
|
634
634
|
this.isDashboard(t) || (e = [{ path: "/dashboard", meta: { title: "Dashboard" } }].concat(
|
|
635
635
|
e
|
|
636
636
|
)), this.levelList = e.filter(
|
|
637
|
-
(
|
|
637
|
+
(o) => o.meta && o.meta.title && o.meta.breadcrumb !== !1
|
|
638
638
|
);
|
|
639
639
|
},
|
|
640
640
|
isDashboard(e) {
|
|
@@ -643,35 +643,35 @@ const nl = /* @__PURE__ */ G({
|
|
|
643
643
|
},
|
|
644
644
|
pathCompile(e) {
|
|
645
645
|
const { params: t } = this.$route;
|
|
646
|
-
return
|
|
646
|
+
return kn.compile(e)(t);
|
|
647
647
|
},
|
|
648
648
|
handleLink(e) {
|
|
649
|
-
const { redirect: t, path:
|
|
649
|
+
const { redirect: t, path: o } = e;
|
|
650
650
|
if (t) {
|
|
651
651
|
this.$router.push(t);
|
|
652
652
|
return;
|
|
653
653
|
}
|
|
654
|
-
this.$router.push(this.pathCompile(
|
|
654
|
+
this.$router.push(this.pathCompile(o));
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
}, sl = {
|
|
658
658
|
key: 0,
|
|
659
659
|
class: "no-redirect"
|
|
660
660
|
}, al = ["onClick"];
|
|
661
|
-
function il(e, t,
|
|
662
|
-
const a =
|
|
661
|
+
function il(e, t, o, n, l, s) {
|
|
662
|
+
const a = nn, u = on;
|
|
663
663
|
return r(), h(u, {
|
|
664
664
|
class: "app-breadcrumb",
|
|
665
665
|
separator: "/"
|
|
666
666
|
}, {
|
|
667
667
|
default: i(() => [
|
|
668
|
-
c(
|
|
668
|
+
c(Eo, { name: "breadcrumb" }, {
|
|
669
669
|
default: i(() => [
|
|
670
|
-
(r(!0), v(R, null, U(l.levelList, (d,
|
|
670
|
+
(r(!0), v(R, null, U(l.levelList, (d, m) => (r(), h(a, {
|
|
671
671
|
key: d.path
|
|
672
672
|
}, {
|
|
673
673
|
default: i(() => [
|
|
674
|
-
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 ||
|
|
674
|
+
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || m === l.levelList.length - 1 ? (r(), v("span", sl, A(d.meta.title), 1)) : (r(), v("a", {
|
|
675
675
|
key: 1,
|
|
676
676
|
onClick: (p) => s.handleLink(d)
|
|
677
677
|
}, A(d.meta.title), 9, al))
|
|
@@ -700,35 +700,35 @@ const rl = /* @__PURE__ */ L(ll, [["render", il], ["__scopeId", "data-v-fa74804e
|
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
};
|
|
703
|
-
function ul(e, t,
|
|
703
|
+
function ul(e, t, o, n, l, s) {
|
|
704
704
|
const a = M("v-icon");
|
|
705
705
|
return r(), v("div", {
|
|
706
706
|
style: { padding: "0 15px" },
|
|
707
707
|
onClick: t[0] || (t[0] = (...u) => s.toggleClick && s.toggleClick(...u))
|
|
708
708
|
}, [
|
|
709
709
|
c(a, {
|
|
710
|
-
class: te({ "is-active":
|
|
710
|
+
class: te({ "is-active": o.isActive }),
|
|
711
711
|
name: "ra-leftalignment"
|
|
712
712
|
}, null, 8, ["class"])
|
|
713
713
|
]);
|
|
714
714
|
}
|
|
715
715
|
const dl = /* @__PURE__ */ L(cl, [["render", ul]]), pl = {};
|
|
716
|
-
function
|
|
717
|
-
const
|
|
716
|
+
function ml(e, t) {
|
|
717
|
+
const o = ve, n = sn, l = an, s = ln;
|
|
718
718
|
return r(), h(s, { style: { width: "100%", height: "100%" } }, {
|
|
719
719
|
default: i(() => [
|
|
720
|
-
c(
|
|
720
|
+
c(o, { class: "aside" }, {
|
|
721
721
|
default: i(() => [
|
|
722
|
-
|
|
722
|
+
fe(e.$slots, "left-aside", {}, void 0, !0)
|
|
723
723
|
]),
|
|
724
724
|
_: 3
|
|
725
725
|
}),
|
|
726
|
-
c(
|
|
726
|
+
c(n, {
|
|
727
727
|
class: "main",
|
|
728
728
|
style: { margin: "0 10px" }
|
|
729
729
|
}, {
|
|
730
730
|
default: i(() => [
|
|
731
|
-
|
|
731
|
+
fe(e.$slots, "main", {}, void 0, !0)
|
|
732
732
|
]),
|
|
733
733
|
_: 3
|
|
734
734
|
}),
|
|
@@ -738,7 +738,7 @@ function fl(e, t) {
|
|
|
738
738
|
style: { padding: "20px" }
|
|
739
739
|
}, {
|
|
740
740
|
default: i(() => [
|
|
741
|
-
|
|
741
|
+
fe(e.$slots, "right-aside", {}, void 0, !0)
|
|
742
742
|
]),
|
|
743
743
|
_: 3
|
|
744
744
|
})
|
|
@@ -746,7 +746,7 @@ function fl(e, t) {
|
|
|
746
746
|
_: 3
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
|
-
const Yt = /* @__PURE__ */ L(pl, [["render",
|
|
749
|
+
const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b"]]), fl = {
|
|
750
750
|
type: "input",
|
|
751
751
|
name: "文本框",
|
|
752
752
|
default: {
|
|
@@ -1319,11 +1319,11 @@ const Yt = /* @__PURE__ */ L(pl, [["render", fl], ["__scopeId", "data-v-7c3d697b
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
]
|
|
1322
|
-
},
|
|
1322
|
+
}, eo = {};
|
|
1323
1323
|
function H(e) {
|
|
1324
|
-
|
|
1324
|
+
eo[e.type] = e;
|
|
1325
1325
|
}
|
|
1326
|
-
H(
|
|
1326
|
+
H(fl);
|
|
1327
1327
|
H(yl);
|
|
1328
1328
|
H(hl);
|
|
1329
1329
|
H(bl);
|
|
@@ -1336,7 +1336,7 @@ H(kl);
|
|
|
1336
1336
|
H(wl);
|
|
1337
1337
|
H(xl);
|
|
1338
1338
|
H(Sl);
|
|
1339
|
-
const Ke =
|
|
1339
|
+
const Ke = eo, Cl = {
|
|
1340
1340
|
options: {
|
|
1341
1341
|
labelPosition: "top",
|
|
1342
1342
|
submitButton: !1,
|
|
@@ -1475,7 +1475,7 @@ const Tl = {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
]
|
|
1477
1477
|
}, Ol = {
|
|
1478
|
-
components: { DevLayout: Yt, VForm:
|
|
1478
|
+
components: { DevLayout: Yt, VForm: ne, VButton: at, JsonView: st },
|
|
1479
1479
|
props: {
|
|
1480
1480
|
schema: {
|
|
1481
1481
|
type: Object,
|
|
@@ -1538,9 +1538,9 @@ const Tl = {
|
|
|
1538
1538
|
const t = be(this.builderSchema, this.activeIndex);
|
|
1539
1539
|
if (!t)
|
|
1540
1540
|
return;
|
|
1541
|
-
const
|
|
1541
|
+
const o = t ? t.type : "", n = this.ctrlMap[o], l = n.trans ? n.trans(e) : e;
|
|
1542
1542
|
if (l && Object.keys(l).length > 0) {
|
|
1543
|
-
if (l.type =
|
|
1543
|
+
if (l.type = o, this.activeIndex.indexOf("[") > -1) {
|
|
1544
1544
|
const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
1545
1545
|
this.builderSchema[a][u] = { ...l };
|
|
1546
1546
|
} else
|
|
@@ -1556,8 +1556,8 @@ const Tl = {
|
|
|
1556
1556
|
options: E(Ne),
|
|
1557
1557
|
formItems: E(t.builder)
|
|
1558
1558
|
});
|
|
1559
|
-
const
|
|
1560
|
-
this.ctrlOptions = E(
|
|
1559
|
+
const o = be(this.builderSchema, this.activeIndex);
|
|
1560
|
+
this.ctrlOptions = E(o), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
1563
|
},
|
|
@@ -1576,10 +1576,10 @@ const Tl = {
|
|
|
1576
1576
|
push(e) {
|
|
1577
1577
|
const t = "formItems";
|
|
1578
1578
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
1579
|
-
const
|
|
1580
|
-
this.activeCtrl =
|
|
1579
|
+
const o = this.ctrlMap[e];
|
|
1580
|
+
this.activeCtrl = o, this.builderSchema[t].push(E(o.default)), this.ctrlSchema = E({
|
|
1581
1581
|
options: E(Ne),
|
|
1582
|
-
formItems: E(
|
|
1582
|
+
formItems: E(o.builder)
|
|
1583
1583
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
1584
1584
|
},
|
|
1585
1585
|
removeOne() {
|
|
@@ -1588,12 +1588,12 @@ const Tl = {
|
|
|
1588
1588
|
clicklabel() {
|
|
1589
1589
|
const e = this.activeIndex;
|
|
1590
1590
|
if (e.match(this.activeIndexReg)) {
|
|
1591
|
-
const
|
|
1591
|
+
const o = E(be(this.builderSchema, e)), n = o.type, l = this.ctrlMap[n];
|
|
1592
1592
|
if (!l) {
|
|
1593
1593
|
this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
|
|
1594
1594
|
return;
|
|
1595
1595
|
}
|
|
1596
|
-
this.currentCtrlType =
|
|
1596
|
+
this.currentCtrlType = n, this.ctrlOptions = o, this.ctrlSchema = E({
|
|
1597
1597
|
options: E(Ne),
|
|
1598
1598
|
formItems: E(l.builder)
|
|
1599
1599
|
}), this.ctrlKey++;
|
|
@@ -1610,8 +1610,8 @@ const Tl = {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
1612
|
};
|
|
1613
|
-
function $l(e, t,
|
|
1614
|
-
const a = M("v-form"), u = Vt, d = ye,
|
|
1613
|
+
function $l(e, t, o, n, l, s) {
|
|
1614
|
+
const a = M("v-form"), u = Vt, d = ye, m = M("JsonView"), p = M("VButton"), b = nt, w = ot, C = tt, O = et, x = M("dev-layout");
|
|
1615
1615
|
return r(), h(x, null, {
|
|
1616
1616
|
main: i(() => [
|
|
1617
1617
|
l.builderSchema.formItems ? (r(), h(a, X({
|
|
@@ -1635,7 +1635,7 @@ function $l(e, t, n, o, l, s) {
|
|
|
1635
1635
|
type: "modal"
|
|
1636
1636
|
}, {
|
|
1637
1637
|
default: i(() => [
|
|
1638
|
-
c(
|
|
1638
|
+
c(m, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
1639
1639
|
]),
|
|
1640
1640
|
_: 1
|
|
1641
1641
|
})
|
|
@@ -2373,7 +2373,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2373
2373
|
form: zl,
|
|
2374
2374
|
table: Jl
|
|
2375
2375
|
}, Ql = {
|
|
2376
|
-
components: { JsonView: st, DevLayout: Yt, VTable: _e, VForm:
|
|
2376
|
+
components: { JsonView: st, DevLayout: Yt, VTable: _e, VForm: ne, VButton: at },
|
|
2377
2377
|
props: {
|
|
2378
2378
|
schema: {
|
|
2379
2379
|
type: Object,
|
|
@@ -2382,7 +2382,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2382
2382
|
}
|
|
2383
2383
|
},
|
|
2384
2384
|
data() {
|
|
2385
|
-
const e =
|
|
2385
|
+
const e = Io(this.$props.schema);
|
|
2386
2386
|
return delete e.listApi, e.list = [{}], {
|
|
2387
2387
|
baseSchema: St,
|
|
2388
2388
|
activeTab: "base",
|
|
@@ -2412,8 +2412,8 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2412
2412
|
computed: {
|
|
2413
2413
|
types() {
|
|
2414
2414
|
const e = [], t = this.ctrlMap[this.activeBrick];
|
|
2415
|
-
return Object.keys(t).forEach((
|
|
2416
|
-
e.push({ value:
|
|
2415
|
+
return Object.keys(t).forEach((o) => {
|
|
2416
|
+
e.push({ value: o, label: t[o].name });
|
|
2417
2417
|
}), e;
|
|
2418
2418
|
},
|
|
2419
2419
|
getSaveSchema() {
|
|
@@ -2444,14 +2444,14 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2444
2444
|
const t = this.activeIndex.match(this.activeIndexReg);
|
|
2445
2445
|
if (!t)
|
|
2446
2446
|
return;
|
|
2447
|
-
let
|
|
2448
|
-
t[1] === "headers" &&
|
|
2449
|
-
const
|
|
2450
|
-
if (!
|
|
2447
|
+
let o = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
2448
|
+
t[1] === "headers" && o === void 0 && (o = "span");
|
|
2449
|
+
const n = this.ctrlMap[this.activeBrick][o];
|
|
2450
|
+
if (!n)
|
|
2451
2451
|
return;
|
|
2452
|
-
const l =
|
|
2452
|
+
const l = n.trans ? n.trans(e) : e;
|
|
2453
2453
|
if (l && Object.keys(l).length > 0) {
|
|
2454
|
-
if (l.type =
|
|
2454
|
+
if (l.type = o, this.activeIndex.indexOf("[") > -1) {
|
|
2455
2455
|
const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2456
2456
|
this.builderSchema[a][u] = { ...l };
|
|
2457
2457
|
} else
|
|
@@ -2468,10 +2468,10 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2468
2468
|
options: E(Ve),
|
|
2469
2469
|
formItems: E(t.builder)
|
|
2470
2470
|
});
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2473
|
-
const
|
|
2474
|
-
this.ctrlOptions =
|
|
2471
|
+
const o = be(this.builderSchema, this.activeIndex);
|
|
2472
|
+
o.type = e;
|
|
2473
|
+
const n = E(o);
|
|
2474
|
+
this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
2477
|
},
|
|
@@ -2506,13 +2506,13 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2506
2506
|
pushRowButton(e) {
|
|
2507
2507
|
this.push(e, "rowButton", "buttons", "buttons");
|
|
2508
2508
|
},
|
|
2509
|
-
push(e, t,
|
|
2510
|
-
const l = this.ctrlMap[
|
|
2509
|
+
push(e, t, o, n) {
|
|
2510
|
+
const l = this.ctrlMap[o];
|
|
2511
2511
|
if (!l[e]) {
|
|
2512
2512
|
this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
|
|
2513
2513
|
return;
|
|
2514
2514
|
}
|
|
2515
|
-
this.activeCtrl = l[e], this.activeBrick =
|
|
2515
|
+
this.activeCtrl = l[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(E(l[e].default)), this.ctrlSchema = E({
|
|
2516
2516
|
options: E(Ve),
|
|
2517
2517
|
formItems: E(l[e].builder)
|
|
2518
2518
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
@@ -2523,31 +2523,31 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2523
2523
|
clicklabel() {
|
|
2524
2524
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
2525
2525
|
if (t) {
|
|
2526
|
-
const
|
|
2526
|
+
const o = E(be(this.builderSchema, e));
|
|
2527
2527
|
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
|
|
2528
|
-
let
|
|
2529
|
-
t[1] === "headers" &&
|
|
2530
|
-
const l = this.ctrlMap[this.activeBrick][
|
|
2528
|
+
let n = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
2529
|
+
t[1] === "headers" && n === void 0 && (n = "span");
|
|
2530
|
+
const l = this.ctrlMap[this.activeBrick][n];
|
|
2531
2531
|
if (!l) {
|
|
2532
2532
|
this.activeBrick, this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
|
|
2533
2533
|
return;
|
|
2534
2534
|
}
|
|
2535
|
-
this.ctrlOptions =
|
|
2535
|
+
this.ctrlOptions = o, this.currentCtrlType = n, this.ctrlSchema = E({
|
|
2536
2536
|
options: E(Ve),
|
|
2537
2537
|
formItems: E(l.builder)
|
|
2538
2538
|
}), this.ctrlKey++;
|
|
2539
2539
|
}
|
|
2540
2540
|
},
|
|
2541
2541
|
saveSchema() {
|
|
2542
|
-
const { filter: e, headers: t, rowButton:
|
|
2542
|
+
const { filter: e, headers: t, rowButton: o, normalButton: n, batchButton: l } = this.currentBuilderSchema;
|
|
2543
2543
|
this.$http.request({
|
|
2544
2544
|
method: "POST",
|
|
2545
2545
|
url: "/devtool/page_schema",
|
|
2546
2546
|
data: {
|
|
2547
2547
|
filter: e,
|
|
2548
2548
|
headers: t,
|
|
2549
|
-
rowButton:
|
|
2550
|
-
normalButton:
|
|
2549
|
+
rowButton: o,
|
|
2550
|
+
normalButton: n,
|
|
2551
2551
|
batchButton: l
|
|
2552
2552
|
}
|
|
2553
2553
|
}).then(({ data: s }) => {
|
|
@@ -2556,8 +2556,8 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
2558
|
};
|
|
2559
|
-
function Xl(e, t,
|
|
2560
|
-
const a = Be, u = ye, d = ve,
|
|
2559
|
+
function Xl(e, t, o, n, l, s) {
|
|
2560
|
+
const a = Be, u = ye, d = ve, m = M("v-table"), p = Vt, b = ye, w = M("JsonView"), C = M("VButton"), O = nt, x = ot, _ = tt, S = et, K = M("v-form"), z = M("dev-layout");
|
|
2561
2561
|
return r(), h(z, null, {
|
|
2562
2562
|
"left-aside": i(() => [
|
|
2563
2563
|
c(d, { style: { width: "200px" } }, {
|
|
@@ -2757,7 +2757,7 @@ function Xl(e, t, n, o, l, s) {
|
|
|
2757
2757
|
})
|
|
2758
2758
|
]),
|
|
2759
2759
|
main: i(() => [
|
|
2760
|
-
(r(), h(
|
|
2760
|
+
(r(), h(m, X({
|
|
2761
2761
|
ref: "table",
|
|
2762
2762
|
key: l.key,
|
|
2763
2763
|
dev: !0
|
|
@@ -2821,17 +2821,17 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2821
2821
|
setup(e) {
|
|
2822
2822
|
const t = T(!1);
|
|
2823
2823
|
T(1);
|
|
2824
|
-
const
|
|
2824
|
+
const o = Q(), n = Y(), l = g(() => n.pages[o.path]);
|
|
2825
2825
|
return (s, a) => {
|
|
2826
2826
|
const u = M("VIcon"), d = Ut;
|
|
2827
2827
|
return r(), v(R, null, [
|
|
2828
2828
|
c(u, {
|
|
2829
2829
|
name: "ra-set",
|
|
2830
|
-
onClick: a[0] || (a[0] = (
|
|
2830
|
+
onClick: a[0] || (a[0] = (m) => t.value = !f(t))
|
|
2831
2831
|
}),
|
|
2832
2832
|
c(d, {
|
|
2833
|
-
modelValue:
|
|
2834
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2833
|
+
modelValue: f(t),
|
|
2834
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => Qe(t) ? t.value = m : null),
|
|
2835
2835
|
title: "页面设计",
|
|
2836
2836
|
class: "my-drawer",
|
|
2837
2837
|
direction: Yl,
|
|
@@ -2840,13 +2840,13 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2840
2840
|
"append-to-body": ""
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: i(() => [
|
|
2843
|
-
|
|
2843
|
+
f(l).formItems !== void 0 ? (r(), h(Bl, {
|
|
2844
2844
|
key: 0,
|
|
2845
|
-
schema:
|
|
2845
|
+
schema: f(l)
|
|
2846
2846
|
}, null, 8, ["schema"])) : $("", !0),
|
|
2847
|
-
|
|
2847
|
+
f(l).headers !== void 0 ? (r(), h(Zl, {
|
|
2848
2848
|
key: 1,
|
|
2849
|
-
schema:
|
|
2849
|
+
schema: f(l)
|
|
2850
2850
|
}, null, 8, ["schema"])) : $("", !0)
|
|
2851
2851
|
]),
|
|
2852
2852
|
_: 1
|
|
@@ -2854,37 +2854,37 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2854
2854
|
], 64);
|
|
2855
2855
|
};
|
|
2856
2856
|
}
|
|
2857
|
-
},
|
|
2857
|
+
}, to = "oms-aesthetic-mode", Ee = T("theme1");
|
|
2858
2858
|
let xt = !1;
|
|
2859
2859
|
function ts(e) {
|
|
2860
2860
|
if (e === "default" || e === "theme1" || e === "theme2" || e === "theme3")
|
|
2861
2861
|
return e;
|
|
2862
2862
|
if (typeof window > "u")
|
|
2863
2863
|
return "theme1";
|
|
2864
|
-
const t = window.localStorage?.getItem(
|
|
2864
|
+
const t = window.localStorage?.getItem(to);
|
|
2865
2865
|
return t === "default" || t === "theme1" || t === "theme2" || t === "theme3" ? t : "theme1";
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2868
|
-
typeof window < "u" && window.localStorage?.setItem(
|
|
2867
|
+
function os(e) {
|
|
2868
|
+
typeof window < "u" && window.localStorage?.setItem(to, e);
|
|
2869
2869
|
}
|
|
2870
2870
|
function Ue(e) {
|
|
2871
2871
|
if (Ee.value = e, typeof document < "u") {
|
|
2872
2872
|
const t = document.documentElement;
|
|
2873
|
-
t.classList.remove("aesthetic-default", "aesthetic-theme2", "aesthetic-theme3"), e === "default" ? t.classList.add("aesthetic-default") : e === "theme2" ? t.classList.add("aesthetic-theme2") : e === "theme3" && t.classList.add("aesthetic-theme3");
|
|
2873
|
+
t.classList.remove("aesthetic-default", "aesthetic-theme2", "aesthetic-theme3"), e === "default" ? t.classList.add("aesthetic-default") : e === "theme2" ? t.classList.add("aesthetic-theme2") : e === "theme3" && t.classList.add("aesthetic-theme3"), `${e}`, t.className;
|
|
2874
2874
|
}
|
|
2875
|
-
|
|
2875
|
+
os(e);
|
|
2876
2876
|
}
|
|
2877
|
-
function
|
|
2878
|
-
const e = V(), t = (
|
|
2879
|
-
e.aestheticMode !==
|
|
2877
|
+
function ns() {
|
|
2878
|
+
const e = V(), t = (o) => {
|
|
2879
|
+
e.aestheticMode !== o ? e.updateSettings({ aestheticMode: o }) : Ue(o);
|
|
2880
2880
|
};
|
|
2881
2881
|
if (!xt) {
|
|
2882
2882
|
xt = !0;
|
|
2883
|
-
const
|
|
2884
|
-
Ue(
|
|
2883
|
+
const o = ts(e.aestheticMode);
|
|
2884
|
+
Ue(o), ue(
|
|
2885
2885
|
() => e.aestheticMode,
|
|
2886
|
-
(
|
|
2887
|
-
(
|
|
2886
|
+
(n) => {
|
|
2887
|
+
(n === "default" || n === "theme1" || n === "theme2" || n === "theme3") && Ue(n);
|
|
2888
2888
|
},
|
|
2889
2889
|
{ immediate: !0 }
|
|
2890
2890
|
);
|
|
@@ -2894,8 +2894,8 @@ function os() {
|
|
|
2894
2894
|
isTheme1: g(() => Ee.value === "theme1"),
|
|
2895
2895
|
setAestheticMode: t,
|
|
2896
2896
|
toggleAestheticMode: () => {
|
|
2897
|
-
const
|
|
2898
|
-
t(
|
|
2897
|
+
const o = ["default", "theme1", "theme2", "theme3"], l = (o.indexOf(Ee.value) + 1) % o.length;
|
|
2898
|
+
t(o[l]);
|
|
2899
2899
|
}
|
|
2900
2900
|
};
|
|
2901
2901
|
}
|
|
@@ -2912,36 +2912,39 @@ const ls = { class: "right-content" }, ss = {
|
|
|
2912
2912
|
}, rs = { class: "user-info" }, cs = { class: "user-name" }, us = /* @__PURE__ */ G({
|
|
2913
2913
|
__name: "Navbar",
|
|
2914
2914
|
setup(e) {
|
|
2915
|
-
const t = Y(),
|
|
2915
|
+
const t = Y(), o = V(), n = N();
|
|
2916
2916
|
T(!1);
|
|
2917
2917
|
const l = T(!1);
|
|
2918
2918
|
T(""), T(0);
|
|
2919
|
-
const s = g(() =>
|
|
2919
|
+
const s = g(() => o.defaultAvatar), a = g(() => t.sidebar), u = g(() => t.device), d = g(() => n.avatar), m = g(() => n.name), p = g(() => n.nickname), b = g(() => o.nav), w = g(() => o), C = g(() => n), O = g(() => o.showPageJsonSchema || !1), { isDark: x, toggleTheme: _ } = Wt(), { aestheticMode: S, setAestheticMode: K } = ns(), z = g(() => {
|
|
2920
2920
|
const j = w.value.envColor?.[C.value.env];
|
|
2921
2921
|
return x.value ? {
|
|
2922
|
-
background: "linear-gradient(135deg, rgba(0, 176, 116, 0.15) 0%, rgba(2, 6, 23, 0.95) 100%)",
|
|
2922
|
+
background: "linear-gradient(135deg, rgba(var(--el-color-primary-rgb, 0, 176, 116), 0.15) 0%, rgba(2, 6, 23, 0.95) 100%)",
|
|
2923
2923
|
borderBottom: "1px solid var(--border-color)",
|
|
2924
|
-
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.3)"
|
|
2924
|
+
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.3)",
|
|
2925
|
+
color: "var(--sidebar-text-color)"
|
|
2925
2926
|
} : j ? {
|
|
2926
2927
|
background: `linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 248, 0.9) 60%, ${j} 100%)`,
|
|
2927
2928
|
borderBottom: "1px solid var(--border-color)",
|
|
2928
|
-
boxShadow: "0 1px 4px rgba(0, 0, 0, 0.05)"
|
|
2929
|
+
boxShadow: "0 1px 4px rgba(0, 0, 0, 0.05)",
|
|
2930
|
+
color: "var(--sidebar-text-color)"
|
|
2929
2931
|
} : {
|
|
2930
2932
|
background: "linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 244, 248, 0.95) 70%, #ffffff 100%)",
|
|
2931
2933
|
borderBottom: "1px solid var(--border-color)",
|
|
2932
|
-
boxShadow: "0 1px 10px rgba(0, 0, 0, 0.03)"
|
|
2934
|
+
boxShadow: "0 1px 10px rgba(0, 0, 0, 0.03)",
|
|
2935
|
+
color: "var(--sidebar-text-color)"
|
|
2933
2936
|
};
|
|
2934
2937
|
});
|
|
2935
2938
|
Te(() => {
|
|
2936
2939
|
Rt("el-submenu is-active");
|
|
2937
2940
|
const j = Le("navBarNotice") || "";
|
|
2938
|
-
j.length > 0 && !Le("closeNavNotice") &&
|
|
2941
|
+
j.length > 0 && !Le("closeNavNotice") && yo(j) && window?.App?.config?.globalProperties?.$notify({
|
|
2939
2942
|
title: "提示",
|
|
2940
2943
|
message: j,
|
|
2941
2944
|
dangerouslyUseHTMLString: !0,
|
|
2942
2945
|
duration: 0,
|
|
2943
|
-
onClose:
|
|
2944
|
-
}), w.value.envColor?.[C.value.env] &&
|
|
2946
|
+
onClose: bo
|
|
2947
|
+
}), w.value.envColor?.[C.value.env] && Uo({
|
|
2945
2948
|
elRef: k.value.$el,
|
|
2946
2949
|
waterMark: C.value.env,
|
|
2947
2950
|
color: "skyblue",
|
|
@@ -2953,40 +2956,40 @@ const ls = { class: "right-content" }, ss = {
|
|
|
2953
2956
|
W.value = !1, P.value = d.value || s.value || "";
|
|
2954
2957
|
}, { immediate: !0 });
|
|
2955
2958
|
const Pe = g(() => {
|
|
2956
|
-
const j = p.value ||
|
|
2959
|
+
const j = p.value || m.value || o.title || "用户";
|
|
2957
2960
|
return j ? j.toString().trim().charAt(0).toUpperCase() : "用";
|
|
2958
2961
|
});
|
|
2959
2962
|
function ee() {
|
|
2960
2963
|
t.toggleSideBar();
|
|
2961
2964
|
}
|
|
2962
|
-
async function
|
|
2963
|
-
await
|
|
2965
|
+
async function ho() {
|
|
2966
|
+
await n.logout();
|
|
2964
2967
|
const j = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
|
|
2965
2968
|
location.reload(`${location.origin}/#/login?redirect=${j?.fullPath || "/"}`);
|
|
2966
2969
|
}
|
|
2967
2970
|
function Le(j) {
|
|
2968
|
-
return
|
|
2971
|
+
return o[j];
|
|
2969
2972
|
}
|
|
2970
|
-
async function
|
|
2971
|
-
|
|
2973
|
+
async function bo() {
|
|
2974
|
+
o.updateSettings({ closeNavNotice: !0 }), _o(Le("navBarNotice"));
|
|
2972
2975
|
}
|
|
2973
|
-
function
|
|
2976
|
+
function yo(j) {
|
|
2974
2977
|
const B = "dismiss:navbar_notice";
|
|
2975
2978
|
return we.exist(B) ? we.get(B) !== j : !0;
|
|
2976
2979
|
}
|
|
2977
|
-
function
|
|
2980
|
+
function _o(j) {
|
|
2978
2981
|
we.set("dismiss:navbar_notice", j);
|
|
2979
2982
|
}
|
|
2980
|
-
function
|
|
2983
|
+
function vo() {
|
|
2981
2984
|
W.value || (W.value = !0, P.value = "");
|
|
2982
2985
|
}
|
|
2983
2986
|
return (j, B) => {
|
|
2984
|
-
const pt = Be,
|
|
2985
|
-
return r(), h(
|
|
2987
|
+
const pt = Be, mt = Ht, go = qt, ae = un, ft = cn, ht = rn, ko = dn, wo = Ut, So = ve;
|
|
2988
|
+
return r(), h(So, {
|
|
2986
2989
|
ref_key: "header",
|
|
2987
2990
|
ref: k,
|
|
2988
2991
|
class: "navbar",
|
|
2989
|
-
style:
|
|
2992
|
+
style: Co(z.value)
|
|
2990
2993
|
}, {
|
|
2991
2994
|
default: i(() => [
|
|
2992
2995
|
c(pt, { span: 16 }, {
|
|
@@ -3010,11 +3013,11 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3010
3013
|
c(es)
|
|
3011
3014
|
])) : $("", !0),
|
|
3012
3015
|
y("div", as, [
|
|
3013
|
-
c(
|
|
3016
|
+
c(f(at), { buttons: b.value }, null, 8, ["buttons"])
|
|
3014
3017
|
]),
|
|
3015
|
-
c(
|
|
3018
|
+
c(go, {
|
|
3016
3019
|
placement: "bottom",
|
|
3017
|
-
content:
|
|
3020
|
+
content: f(x) ? "切换为明亮模式" : "切换为暗黑模式"
|
|
3018
3021
|
}, {
|
|
3019
3022
|
default: i(() => [
|
|
3020
3023
|
y("div", {
|
|
@@ -3022,23 +3025,23 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3022
3025
|
role: "button",
|
|
3023
3026
|
tabindex: "0",
|
|
3024
3027
|
onClick: B[0] || (B[0] = //@ts-ignore
|
|
3025
|
-
(...ie) =>
|
|
3028
|
+
(...ie) => f(_) && f(_)(...ie)),
|
|
3026
3029
|
onKeydown: [
|
|
3027
3030
|
B[1] || (B[1] = bt(He(
|
|
3028
3031
|
//@ts-ignore
|
|
3029
|
-
(...ie) =>
|
|
3032
|
+
(...ie) => f(_) && f(_)(...ie),
|
|
3030
3033
|
["prevent"]
|
|
3031
3034
|
), ["enter"])),
|
|
3032
3035
|
B[2] || (B[2] = bt(He(
|
|
3033
3036
|
//@ts-ignore
|
|
3034
|
-
(...ie) =>
|
|
3037
|
+
(...ie) => f(_) && f(_)(...ie),
|
|
3035
3038
|
["prevent"]
|
|
3036
3039
|
), ["space"]))
|
|
3037
3040
|
]
|
|
3038
3041
|
}, [
|
|
3039
|
-
c(
|
|
3042
|
+
c(mt, null, {
|
|
3040
3043
|
default: i(() => [
|
|
3041
|
-
(r(), h(Xe(
|
|
3044
|
+
(r(), h(Xe(f(x) ? f(In) : f(Cn))))
|
|
3042
3045
|
]),
|
|
3043
3046
|
_: 1
|
|
3044
3047
|
})
|
|
@@ -3049,14 +3052,14 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3049
3052
|
c(ht, {
|
|
3050
3053
|
class: "right-item",
|
|
3051
3054
|
trigger: "click",
|
|
3052
|
-
onCommand:
|
|
3055
|
+
onCommand: f(K)
|
|
3053
3056
|
}, {
|
|
3054
3057
|
dropdown: i(() => [
|
|
3055
|
-
c(
|
|
3058
|
+
c(ft, null, {
|
|
3056
3059
|
default: i(() => [
|
|
3057
3060
|
c(ae, {
|
|
3058
3061
|
command: "theme1",
|
|
3059
|
-
disabled:
|
|
3062
|
+
disabled: f(S) === "theme1"
|
|
3060
3063
|
}, {
|
|
3061
3064
|
default: i(() => [...B[4] || (B[4] = [
|
|
3062
3065
|
I("薄荷绿 (Mint)", -1)
|
|
@@ -3065,7 +3068,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3065
3068
|
}, 8, ["disabled"]),
|
|
3066
3069
|
c(ae, {
|
|
3067
3070
|
command: "theme2",
|
|
3068
|
-
disabled:
|
|
3071
|
+
disabled: f(S) === "theme2"
|
|
3069
3072
|
}, {
|
|
3070
3073
|
default: i(() => [...B[5] || (B[5] = [
|
|
3071
3074
|
I("皇家紫 (Purple)", -1)
|
|
@@ -3074,7 +3077,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3074
3077
|
}, 8, ["disabled"]),
|
|
3075
3078
|
c(ae, {
|
|
3076
3079
|
command: "theme3",
|
|
3077
|
-
disabled:
|
|
3080
|
+
disabled: f(S) === "theme3"
|
|
3078
3081
|
}, {
|
|
3079
3082
|
default: i(() => [...B[6] || (B[6] = [
|
|
3080
3083
|
I("海洋蓝 (Blue)", -1)
|
|
@@ -3083,7 +3086,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3083
3086
|
}, 8, ["disabled"]),
|
|
3084
3087
|
c(ae, {
|
|
3085
3088
|
command: "default",
|
|
3086
|
-
disabled:
|
|
3089
|
+
disabled: f(S) === "default",
|
|
3087
3090
|
divided: ""
|
|
3088
3091
|
}, {
|
|
3089
3092
|
default: i(() => [...B[7] || (B[7] = [
|
|
@@ -3097,9 +3100,9 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3097
3100
|
]),
|
|
3098
3101
|
default: i(() => [
|
|
3099
3102
|
y("div", is, [
|
|
3100
|
-
c(
|
|
3103
|
+
c(mt, null, {
|
|
3101
3104
|
default: i(() => [
|
|
3102
|
-
c(
|
|
3105
|
+
c(f(Tn))
|
|
3103
3106
|
]),
|
|
3104
3107
|
_: 1
|
|
3105
3108
|
})
|
|
@@ -3112,7 +3115,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3112
3115
|
trigger: "click"
|
|
3113
3116
|
}, {
|
|
3114
3117
|
dropdown: i(() => [
|
|
3115
|
-
c(
|
|
3118
|
+
c(ft, { class: "user-dropdown" }, {
|
|
3116
3119
|
default: i(() => [
|
|
3117
3120
|
c(ae, {
|
|
3118
3121
|
icon: "oms-icon-index",
|
|
@@ -3126,7 +3129,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3126
3129
|
c(ae, {
|
|
3127
3130
|
divided: "",
|
|
3128
3131
|
icon: "el-icon-switch-button",
|
|
3129
|
-
onClick:
|
|
3132
|
+
onClick: ho
|
|
3130
3133
|
}, {
|
|
3131
3134
|
default: i(() => [...B[9] || (B[9] = [
|
|
3132
3135
|
I("退出登录", -1)
|
|
@@ -3139,18 +3142,18 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3139
3142
|
]),
|
|
3140
3143
|
default: i(() => [
|
|
3141
3144
|
y("div", rs, [
|
|
3142
|
-
c(
|
|
3145
|
+
c(ko, {
|
|
3143
3146
|
class: "user-avatar",
|
|
3144
3147
|
size: 32,
|
|
3145
3148
|
src: P.value || void 0,
|
|
3146
|
-
onError:
|
|
3149
|
+
onError: vo
|
|
3147
3150
|
}, {
|
|
3148
3151
|
default: i(() => [
|
|
3149
3152
|
I(A(Pe.value), 1)
|
|
3150
3153
|
]),
|
|
3151
3154
|
_: 1
|
|
3152
3155
|
}, 8, ["src"]),
|
|
3153
|
-
y("span", cs, A(p.value ||
|
|
3156
|
+
y("span", cs, A(p.value || m.value), 1)
|
|
3154
3157
|
])
|
|
3155
3158
|
]),
|
|
3156
3159
|
_: 1
|
|
@@ -3159,7 +3162,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3159
3162
|
]),
|
|
3160
3163
|
_: 1
|
|
3161
3164
|
}),
|
|
3162
|
-
l.value ? (r(), h(
|
|
3165
|
+
l.value ? (r(), h(wo, {
|
|
3163
3166
|
key: 0,
|
|
3164
3167
|
"with-header": !1,
|
|
3165
3168
|
size: "50%"
|
|
@@ -3169,10 +3172,10 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3169
3172
|
}, 8, ["style"]);
|
|
3170
3173
|
};
|
|
3171
3174
|
}
|
|
3172
|
-
}), ds = /* @__PURE__ */ L(us, [["__scopeId", "data-v-
|
|
3175
|
+
}), ds = /* @__PURE__ */ L(us, [["__scopeId", "data-v-b5895dca"]]), ps = { class: "sidebar-logo-fallback" }, ms = {
|
|
3173
3176
|
key: 1,
|
|
3174
3177
|
class: "sidebar-logo-fallback"
|
|
3175
|
-
},
|
|
3178
|
+
}, fs = { class: "sidebar-logo-fallback" }, hs = {
|
|
3176
3179
|
key: 1,
|
|
3177
3180
|
class: "sidebar-logo-fallback"
|
|
3178
3181
|
}, bs = { class: "sidebar-title" }, ys = /* @__PURE__ */ G({
|
|
@@ -3181,18 +3184,18 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3181
3184
|
collapse: { type: Boolean }
|
|
3182
3185
|
},
|
|
3183
3186
|
setup(e) {
|
|
3184
|
-
const t = V(),
|
|
3185
|
-
const d =
|
|
3187
|
+
const t = V(), o = g(() => t.title), n = g(() => t.logo), l = T(!1), s = g(() => !!n.value && !l.value), a = g(() => {
|
|
3188
|
+
const d = o.value || "OMS";
|
|
3186
3189
|
return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
|
|
3187
3190
|
});
|
|
3188
|
-
ue(
|
|
3191
|
+
ue(n, () => {
|
|
3189
3192
|
l.value = !1;
|
|
3190
3193
|
}, { immediate: !0 });
|
|
3191
3194
|
function u() {
|
|
3192
3195
|
l.value = !0;
|
|
3193
3196
|
}
|
|
3194
|
-
return (d,
|
|
3195
|
-
const p =
|
|
3197
|
+
return (d, m) => {
|
|
3198
|
+
const p = pn, b = M("router-link");
|
|
3196
3199
|
return r(), v("div", {
|
|
3197
3200
|
class: te(["sidebar-logo-container", { collapse: e.collapse }])
|
|
3198
3201
|
}, [
|
|
@@ -3206,7 +3209,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3206
3209
|
default: i(() => [
|
|
3207
3210
|
s.value ? (r(), h(p, {
|
|
3208
3211
|
key: 0,
|
|
3209
|
-
src:
|
|
3212
|
+
src: n.value || "",
|
|
3210
3213
|
fit: "contain",
|
|
3211
3214
|
class: "sidebar-logo",
|
|
3212
3215
|
onError: u
|
|
@@ -3215,8 +3218,8 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3215
3218
|
y("div", ps, A(a.value), 1)
|
|
3216
3219
|
]),
|
|
3217
3220
|
_: 1
|
|
3218
|
-
}, 8, ["src"])) : (r(), v("div",
|
|
3219
|
-
|
|
3221
|
+
}, 8, ["src"])) : (r(), v("div", ms, A(a.value), 1)),
|
|
3222
|
+
m[0] || (m[0] = y("div", { class: "sidebar-subtitle" }, "系统", -1))
|
|
3220
3223
|
]),
|
|
3221
3224
|
_: 1
|
|
3222
3225
|
})) : (r(), h(b, {
|
|
@@ -3227,17 +3230,17 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3227
3230
|
default: i(() => [
|
|
3228
3231
|
s.value ? (r(), h(p, {
|
|
3229
3232
|
key: 0,
|
|
3230
|
-
src:
|
|
3233
|
+
src: n.value || "",
|
|
3231
3234
|
fit: "contain",
|
|
3232
3235
|
class: "sidebar-logo",
|
|
3233
3236
|
onError: u
|
|
3234
3237
|
}, {
|
|
3235
3238
|
error: i(() => [
|
|
3236
|
-
y("div",
|
|
3239
|
+
y("div", fs, A(a.value), 1)
|
|
3237
3240
|
]),
|
|
3238
3241
|
_: 1
|
|
3239
3242
|
}, 8, ["src"])) : (r(), v("div", hs, A(a.value), 1)),
|
|
3240
|
-
y("h1", bs, A(
|
|
3243
|
+
y("h1", bs, A(o.value), 1)
|
|
3241
3244
|
]),
|
|
3242
3245
|
_: 1
|
|
3243
3246
|
}))
|
|
@@ -3247,7 +3250,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3247
3250
|
], 2);
|
|
3248
3251
|
};
|
|
3249
3252
|
}
|
|
3250
|
-
}), _s = /* @__PURE__ */ L(ys, [["__scopeId", "data-v-
|
|
3253
|
+
}), _s = /* @__PURE__ */ L(ys, [["__scopeId", "data-v-737655f0"]]), vs = {
|
|
3251
3254
|
props: {
|
|
3252
3255
|
to: {
|
|
3253
3256
|
type: String,
|
|
@@ -3280,10 +3283,10 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3280
3283
|
}
|
|
3281
3284
|
}
|
|
3282
3285
|
};
|
|
3283
|
-
function gs(e, t,
|
|
3284
|
-
return r(), h(Xe(s.compType(
|
|
3286
|
+
function gs(e, t, o, n, l, s) {
|
|
3287
|
+
return r(), h(Xe(s.compType(o.to)), Z(de(s.linkProps(o.to))), {
|
|
3285
3288
|
default: i(() => [
|
|
3286
|
-
|
|
3289
|
+
fe(e.$slots, "default")
|
|
3287
3290
|
]),
|
|
3288
3291
|
_: 3
|
|
3289
3292
|
}, 16);
|
|
@@ -3303,8 +3306,8 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3303
3306
|
const e = this.$refs.subMenu;
|
|
3304
3307
|
if (e) {
|
|
3305
3308
|
const t = e.handleMouseleave;
|
|
3306
|
-
e.handleMouseleave = (
|
|
3307
|
-
this.device !== "mobile" && t(
|
|
3309
|
+
e.handleMouseleave = (o) => {
|
|
3310
|
+
this.device !== "mobile" && t(o);
|
|
3308
3311
|
};
|
|
3309
3312
|
}
|
|
3310
3313
|
}
|
|
@@ -3321,10 +3324,10 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3321
3324
|
}
|
|
3322
3325
|
},
|
|
3323
3326
|
setup(e) {
|
|
3324
|
-
return (t,
|
|
3325
|
-
const
|
|
3327
|
+
return (t, o) => {
|
|
3328
|
+
const n = M("VIcon");
|
|
3326
3329
|
return r(), v(R, null, [
|
|
3327
|
-
c(
|
|
3330
|
+
c(n, {
|
|
3328
3331
|
name: e.meta.icon || "ra-all"
|
|
3329
3332
|
}, null, 8, ["name"]),
|
|
3330
3333
|
y("span", Ss, A(e.meta.title), 1)
|
|
@@ -3373,31 +3376,31 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3373
3376
|
key: 0,
|
|
3374
3377
|
class: "menu-wrapper"
|
|
3375
3378
|
};
|
|
3376
|
-
function Cs(e, t,
|
|
3377
|
-
const a = M("menu-content"), u =
|
|
3378
|
-
return
|
|
3379
|
-
|
|
3379
|
+
function Cs(e, t, o, n, l, s) {
|
|
3380
|
+
const a = M("menu-content"), u = mn, d = M("app-link"), m = qt, p = M("sidebar-item", !0), b = fn;
|
|
3381
|
+
return o.item.hidden !== !1 ? (r(), v("div", Is, [
|
|
3382
|
+
o.item.meta && o.item.meta.menuType === 2 ? (r(), h(m, {
|
|
3380
3383
|
key: 0,
|
|
3381
|
-
disabled: !
|
|
3384
|
+
disabled: !o.isCollapse,
|
|
3382
3385
|
effect: "dark",
|
|
3383
3386
|
placement: "right",
|
|
3384
|
-
content:
|
|
3387
|
+
content: o.item.meta?.title
|
|
3385
3388
|
}, {
|
|
3386
3389
|
default: i(() => [
|
|
3387
|
-
|
|
3390
|
+
o.item.meta ? (r(), h(d, {
|
|
3388
3391
|
key: 0,
|
|
3389
|
-
to:
|
|
3390
|
-
"new-tab":
|
|
3392
|
+
to: o.to,
|
|
3393
|
+
"new-tab": o.item.meta.newTab
|
|
3391
3394
|
}, {
|
|
3392
3395
|
default: i(() => [
|
|
3393
3396
|
c(u, {
|
|
3394
|
-
index:
|
|
3395
|
-
class: te({ "submenu-title-noDropdown": !
|
|
3397
|
+
index: o.to,
|
|
3398
|
+
class: te({ "submenu-title-noDropdown": !o.isNest }),
|
|
3396
3399
|
onClick: s.itemClick
|
|
3397
3400
|
}, {
|
|
3398
3401
|
default: i(() => [
|
|
3399
3402
|
c(a, {
|
|
3400
|
-
meta:
|
|
3403
|
+
meta: o.item.meta
|
|
3401
3404
|
}, null, 8, ["meta"])
|
|
3402
3405
|
]),
|
|
3403
3406
|
_: 1
|
|
@@ -3407,37 +3410,37 @@ function Cs(e, t, n, o, l, s) {
|
|
|
3407
3410
|
}, 8, ["to", "new-tab"])) : $("", !0)
|
|
3408
3411
|
]),
|
|
3409
3412
|
_: 1
|
|
3410
|
-
}, 8, ["disabled", "content"])) :
|
|
3413
|
+
}, 8, ["disabled", "content"])) : o.item.meta && o.item.meta.menuType === 1 ? (r(), h(m, {
|
|
3411
3414
|
key: 1,
|
|
3412
|
-
disabled: !
|
|
3415
|
+
disabled: !o.isCollapse,
|
|
3413
3416
|
effect: "dark",
|
|
3414
3417
|
placement: "right",
|
|
3415
|
-
content:
|
|
3418
|
+
content: o.item.meta?.title
|
|
3416
3419
|
}, {
|
|
3417
3420
|
default: i(() => [
|
|
3418
3421
|
c(b, {
|
|
3419
3422
|
ref: "subMenu",
|
|
3420
|
-
index:
|
|
3421
|
-
class: te({ "submenu-title-noDropdown": !
|
|
3423
|
+
index: o.to,
|
|
3424
|
+
class: te({ "submenu-title-noDropdown": !o.isNest })
|
|
3422
3425
|
}, {
|
|
3423
3426
|
title: i(() => [
|
|
3424
|
-
|
|
3427
|
+
o.item.redirect && o.item.redirect !== "#" ? (r(), h(d, {
|
|
3425
3428
|
key: 0,
|
|
3426
|
-
to:
|
|
3429
|
+
to: o.to
|
|
3427
3430
|
}, {
|
|
3428
3431
|
default: i(() => [
|
|
3429
3432
|
c(a, {
|
|
3430
|
-
meta:
|
|
3433
|
+
meta: o.item.meta
|
|
3431
3434
|
}, null, 8, ["meta"])
|
|
3432
3435
|
]),
|
|
3433
3436
|
_: 1
|
|
3434
3437
|
}, 8, ["to"])) : (r(), h(a, {
|
|
3435
3438
|
key: 1,
|
|
3436
|
-
meta:
|
|
3439
|
+
meta: o.item.meta
|
|
3437
3440
|
}, null, 8, ["meta"]))
|
|
3438
3441
|
]),
|
|
3439
3442
|
default: i(() => [
|
|
3440
|
-
(r(!0), v(R, null, U(
|
|
3443
|
+
(r(!0), v(R, null, U(o.item.children, (w) => (r(), h(p, {
|
|
3441
3444
|
key: w.path,
|
|
3442
3445
|
"is-nest": !0,
|
|
3443
3446
|
item: w,
|
|
@@ -3456,41 +3459,41 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
|
|
|
3456
3459
|
__name: "SearchMenu",
|
|
3457
3460
|
setup(e) {
|
|
3458
3461
|
const t = N();
|
|
3459
|
-
function
|
|
3460
|
-
return
|
|
3462
|
+
function o(m) {
|
|
3463
|
+
return m.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = o(p.children), p.children.length === 0 && delete p.children), !0));
|
|
3461
3464
|
}
|
|
3462
|
-
const
|
|
3463
|
-
let
|
|
3465
|
+
const n = T(""), l = g(() => t.remoteRouter), s = $e(), a = g(() => {
|
|
3466
|
+
let m = [];
|
|
3464
3467
|
return l.value.forEach((p) => {
|
|
3465
|
-
|
|
3466
|
-
}),
|
|
3468
|
+
m = m.concat(E(p.routes));
|
|
3469
|
+
}), o(m);
|
|
3467
3470
|
});
|
|
3468
|
-
function u(
|
|
3469
|
-
let p =
|
|
3470
|
-
if (
|
|
3471
|
-
for (let b = 0; b <
|
|
3472
|
-
if (
|
|
3473
|
-
p =
|
|
3471
|
+
function u(m) {
|
|
3472
|
+
let p = m;
|
|
3473
|
+
if (m.meta.menuType === 1 && m.children && m.children.length > 0) {
|
|
3474
|
+
for (let b = 0; b < m.children.length; b++)
|
|
3475
|
+
if (m.children[b].path.indexOf("/:") === -1) {
|
|
3476
|
+
p = m.children[b];
|
|
3474
3477
|
break;
|
|
3475
3478
|
}
|
|
3476
3479
|
}
|
|
3477
3480
|
return s.resolve(p.redirect ? p.redirect : p).fullPath;
|
|
3478
3481
|
}
|
|
3479
|
-
function d(
|
|
3480
|
-
s.push(
|
|
3482
|
+
function d(m) {
|
|
3483
|
+
s.push(m), n.value = "";
|
|
3481
3484
|
}
|
|
3482
|
-
return (
|
|
3483
|
-
const b =
|
|
3485
|
+
return (m, p) => {
|
|
3486
|
+
const b = nt, w = hn, C = ot;
|
|
3484
3487
|
return r(), h(C, {
|
|
3485
|
-
modelValue:
|
|
3486
|
-
"onUpdate:modelValue": p[0] || (p[0] = (O) => Qe(
|
|
3488
|
+
modelValue: f(n),
|
|
3489
|
+
"onUpdate:modelValue": p[0] || (p[0] = (O) => Qe(n) ? n.value = O : null),
|
|
3487
3490
|
filterable: "",
|
|
3488
3491
|
placeholder: "搜索菜单...",
|
|
3489
3492
|
class: "search-menu",
|
|
3490
3493
|
onChange: d
|
|
3491
3494
|
}, {
|
|
3492
3495
|
default: i(() => [
|
|
3493
|
-
(r(!0), v(R, null, U(
|
|
3496
|
+
(r(!0), v(R, null, U(f(a), (O) => (r(), v(R, {
|
|
3494
3497
|
key: O.path
|
|
3495
3498
|
}, [
|
|
3496
3499
|
O.children !== void 0 ? (r(), v(R, { key: 0 }, [
|
|
@@ -3522,12 +3525,12 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
|
|
|
3522
3525
|
}, 8, ["modelValue"]);
|
|
3523
3526
|
};
|
|
3524
3527
|
}
|
|
3525
|
-
}), $s = /* @__PURE__ */ L(Os, [["__scopeId", "data-v-
|
|
3528
|
+
}), $s = /* @__PURE__ */ L(Os, [["__scopeId", "data-v-02f2e7b9"]]);
|
|
3526
3529
|
var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), F = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(F || {});
|
|
3527
3530
|
const Bs = /* @__PURE__ */ G({
|
|
3528
3531
|
__name: "index",
|
|
3529
3532
|
setup(e) {
|
|
3530
|
-
const t = Y(),
|
|
3533
|
+
const t = Y(), o = N(), n = V(), l = g(() => t.sidebar), s = g(() => o.remoteRouter), a = g(() => o.customRouter), u = $e(), d = Q(), m = g(() => {
|
|
3531
3534
|
let x = [];
|
|
3532
3535
|
return u.options.routes.concat(a.value || []).forEach((_) => {
|
|
3533
3536
|
_.path === "/" ? x = x.concat(_.children || []) : x.push(_);
|
|
@@ -3543,7 +3546,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3543
3546
|
return C(), u.resolve(S.redirect ? S.redirect : S).fullPath;
|
|
3544
3547
|
}
|
|
3545
3548
|
return "";
|
|
3546
|
-
}), b = g(() =>
|
|
3549
|
+
}), b = g(() => n.sidebarLogo), w = g(() => !l.value.opened);
|
|
3547
3550
|
Te(() => C());
|
|
3548
3551
|
function C() {
|
|
3549
3552
|
Rt("is-active", 200);
|
|
@@ -3552,33 +3555,33 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3552
3555
|
return x.filter((_) => [F.dir, F.menu].indexOf(_.meta.menuType) !== -1).map((_) => (_ = Object.assign({}, _), _.children && (_.children = O(_.children)), _));
|
|
3553
3556
|
}
|
|
3554
3557
|
return (x, _) => {
|
|
3555
|
-
const S =
|
|
3558
|
+
const S = yn, K = bn;
|
|
3556
3559
|
return r(), v("div", {
|
|
3557
|
-
class: te({ "has-logo":
|
|
3560
|
+
class: te({ "has-logo": f(b) })
|
|
3558
3561
|
}, [
|
|
3559
|
-
|
|
3562
|
+
f(b) ? (r(), h(_s, {
|
|
3560
3563
|
key: 0,
|
|
3561
|
-
collapse:
|
|
3564
|
+
collapse: f(w)
|
|
3562
3565
|
}, null, 8, ["collapse"])) : $("", !0),
|
|
3563
3566
|
c(K, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3564
3567
|
default: i(() => [
|
|
3565
|
-
|
|
3568
|
+
f(w) ? $("", !0) : (r(), h($s, { key: 0 })),
|
|
3566
3569
|
c(S, {
|
|
3567
|
-
"default-active":
|
|
3568
|
-
collapse:
|
|
3570
|
+
"default-active": f(p),
|
|
3571
|
+
collapse: f(w),
|
|
3569
3572
|
"unique-opened": !1,
|
|
3570
3573
|
"collapse-transition": !1,
|
|
3571
3574
|
mode: "vertical"
|
|
3572
3575
|
}, {
|
|
3573
3576
|
default: i(() => [
|
|
3574
|
-
(r(!0), v(R, null, U(m
|
|
3577
|
+
(r(!0), v(R, null, U(f(m), (z, k) => (r(), v(R, {
|
|
3575
3578
|
key: k + "-module"
|
|
3576
3579
|
}, [
|
|
3577
3580
|
(r(!0), v(R, null, U(O(z.routes), (P) => (r(), h(Ts, {
|
|
3578
3581
|
key: P.path,
|
|
3579
3582
|
item: P,
|
|
3580
3583
|
to: x.$router.resolve(P.redirect ? P.redirect : P).fullPath,
|
|
3581
|
-
"is-collapse":
|
|
3584
|
+
"is-collapse": f(w)
|
|
3582
3585
|
}, null, 8, ["item", "to", "is-collapse"]))), 128))
|
|
3583
3586
|
], 64))), 128))
|
|
3584
3587
|
]),
|
|
@@ -3593,14 +3596,14 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3593
3596
|
}), As = /* @__PURE__ */ L(Bs, [["__scopeId", "data-v-ed591c64"]]), Rs = { class: "app-main" }, Ps = {
|
|
3594
3597
|
__name: "AppMain",
|
|
3595
3598
|
setup(e) {
|
|
3596
|
-
const t = Q(),
|
|
3597
|
-
return
|
|
3598
|
-
t.meta?.keepAlive &&
|
|
3599
|
+
const t = Q(), o = [], n = T(0);
|
|
3600
|
+
return Zo(() => {
|
|
3601
|
+
t.meta?.keepAlive && o.indexOf(t.name) && o.push(t.name), n.value++;
|
|
3599
3602
|
}), (l, s) => {
|
|
3600
|
-
const a = M("router-view"), u =
|
|
3603
|
+
const a = M("router-view"), u = _n;
|
|
3601
3604
|
return r(), v("section", Rs, [
|
|
3602
3605
|
(r(), h(a, {
|
|
3603
|
-
key: l.$route.fullPath +
|
|
3606
|
+
key: l.$route.fullPath + f(n)
|
|
3604
3607
|
})),
|
|
3605
3608
|
c(u, { bottom: 50 })
|
|
3606
3609
|
]);
|
|
@@ -3609,41 +3612,41 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3609
3612
|
}, Ls = /* @__PURE__ */ L(Ps, [["__scopeId", "data-v-ca0f0d98"]]), Ms = { class: "main-container" }, Ds = 992, js = {
|
|
3610
3613
|
__name: "index",
|
|
3611
3614
|
setup(e) {
|
|
3612
|
-
const { body: t } = document,
|
|
3615
|
+
const { body: t } = document, o = Y(), n = V(), l = Q(), s = g(() => o.sidebar), a = g(() => o.device), u = g(() => n.fixedHeader), d = g(() => ({
|
|
3613
3616
|
hideSidebar: !s.value.opened,
|
|
3614
3617
|
openSidebar: s.value.opened,
|
|
3615
3618
|
withoutAnimation: s.value.withoutAnimation,
|
|
3616
3619
|
mobile: a.value === "mobile"
|
|
3617
|
-
})),
|
|
3620
|
+
})), m = () => t.getBoundingClientRect().width - 1 < Ds, p = () => {
|
|
3618
3621
|
if (!document.hidden) {
|
|
3619
|
-
const w =
|
|
3620
|
-
|
|
3622
|
+
const w = m();
|
|
3623
|
+
o.toggleDevice(w ? "mobile" : "desktop"), w && o.closeSideBar({ withoutAnimation: !0 });
|
|
3621
3624
|
}
|
|
3622
3625
|
};
|
|
3623
|
-
p(), $
|
|
3624
|
-
a.value === "mobile" && s.value.opened &&
|
|
3626
|
+
p(), $n(window, "resize", () => p()), ue(l, () => {
|
|
3627
|
+
a.value === "mobile" && s.value.opened && o.closeSideBar({ withoutAnimation: !1 });
|
|
3625
3628
|
});
|
|
3626
|
-
const b = () =>
|
|
3629
|
+
const b = () => o.closeSideBar({ withoutAnimation: !1 });
|
|
3627
3630
|
return (w, C) => (r(), v("div", {
|
|
3628
|
-
class: te([
|
|
3631
|
+
class: te([f(d), "app-wrapper"])
|
|
3629
3632
|
}, [
|
|
3630
|
-
|
|
3633
|
+
f(a) === "mobile" && f(s).opened ? (r(), v("div", {
|
|
3631
3634
|
key: 0,
|
|
3632
3635
|
class: "drawer-bg",
|
|
3633
3636
|
onClick: b
|
|
3634
3637
|
})) : $("", !0),
|
|
3635
|
-
c(
|
|
3638
|
+
c(f(As), { class: "sidebar-container" }),
|
|
3636
3639
|
y("div", Ms, [
|
|
3637
3640
|
y("div", {
|
|
3638
|
-
class: te({ "fixed-header":
|
|
3641
|
+
class: te({ "fixed-header": f(u) })
|
|
3639
3642
|
}, [
|
|
3640
|
-
c(
|
|
3643
|
+
c(f(ds))
|
|
3641
3644
|
], 2),
|
|
3642
|
-
c(
|
|
3645
|
+
c(f(Ls))
|
|
3643
3646
|
])
|
|
3644
3647
|
], 2));
|
|
3645
3648
|
}
|
|
3646
|
-
},
|
|
3649
|
+
}, oo = /* @__PURE__ */ L(js, [["__scopeId", "data-v-9a7540c6"]]), Ns = { class: "login-container" }, Vs = { class: "login-card-wrapper" }, Us = { class: "login-header" }, qs = { class: "logo-wrapper" }, Hs = ["src"], Fs = {
|
|
3647
3650
|
key: 1,
|
|
3648
3651
|
class: "logo-fallback"
|
|
3649
3652
|
}, Gs = { class: "login-title" }, Ks = { class: "captcha-wrapper" }, zs = ["src"], Js = {
|
|
@@ -3655,33 +3658,33 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3655
3658
|
}, Qs = { class: "login-footer" }, Xs = /* @__PURE__ */ G({
|
|
3656
3659
|
__name: "login",
|
|
3657
3660
|
setup(e) {
|
|
3658
|
-
const t = $e(),
|
|
3661
|
+
const t = $e(), o = Q(), n = V(), l = Y(), s = N(), a = g(() => n.loginTips), u = g(() => n.captcha), d = g(() => l.baseURL), m = T(0), p = T(!1), b = T({
|
|
3659
3662
|
username: "",
|
|
3660
3663
|
password: "",
|
|
3661
3664
|
captcha: "",
|
|
3662
3665
|
sing: ""
|
|
3663
3666
|
}), w = g(() => {
|
|
3664
|
-
const _ =
|
|
3667
|
+
const _ = n.title || "OMS";
|
|
3665
3668
|
return _ ? _.toString().trim().charAt(0).toUpperCase() : "O";
|
|
3666
3669
|
}), C = () => {
|
|
3667
|
-
|
|
3670
|
+
m.value++;
|
|
3668
3671
|
}, O = g(() => b.value.username.length > 0 && b.value.password.length >= 4 && (u.value ? b.value.captcha.length === 4 : !0)), x = () => {
|
|
3669
3672
|
if (!p.value) {
|
|
3670
3673
|
if (!O.value) {
|
|
3671
3674
|
Nt.error("请填写完整的登录信息");
|
|
3672
3675
|
return;
|
|
3673
3676
|
}
|
|
3674
|
-
u.value && (b.value.sing =
|
|
3675
|
-
t.push({ path:
|
|
3677
|
+
u.value && (b.value.sing = An.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), p.value = !0, s.login(b.value).then((_) => {
|
|
3678
|
+
t.push({ path: o.query?.redirect || "/" });
|
|
3676
3679
|
}).catch((_) => {
|
|
3677
|
-
|
|
3680
|
+
m.value++;
|
|
3678
3681
|
}).finally(() => {
|
|
3679
3682
|
p.value = !1;
|
|
3680
3683
|
});
|
|
3681
3684
|
}
|
|
3682
3685
|
};
|
|
3683
3686
|
return (_, S) => {
|
|
3684
|
-
const K =
|
|
3687
|
+
const K = vn, z = tt, k = Ht, P = ye, W = et, Pe = Ae;
|
|
3685
3688
|
return r(), v("div", Ns, [
|
|
3686
3689
|
S[7] || (S[7] = y("div", { class: "login-background" }, [
|
|
3687
3690
|
y("div", { class: "shape shape-1" }),
|
|
@@ -3701,14 +3704,14 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3701
3704
|
default: i(() => [
|
|
3702
3705
|
y("div", Us, [
|
|
3703
3706
|
y("div", qs, [
|
|
3704
|
-
|
|
3707
|
+
f(n).logo ? (r(), v("img", {
|
|
3705
3708
|
key: 0,
|
|
3706
|
-
src:
|
|
3709
|
+
src: f(n).logo,
|
|
3707
3710
|
alt: "Logo",
|
|
3708
3711
|
class: "logo-img"
|
|
3709
3712
|
}, null, 8, Hs)) : (r(), v("div", Fs, A(w.value), 1))
|
|
3710
3713
|
]),
|
|
3711
|
-
y("h1", Gs, A(
|
|
3714
|
+
y("h1", Gs, A(f(n).title || "OMS"), 1),
|
|
3712
3715
|
S[3] || (S[3] = y("p", { class: "login-subtitle" }, "欢迎回来,请登录您的账户", -1))
|
|
3713
3716
|
]),
|
|
3714
3717
|
c(W, {
|
|
@@ -3763,7 +3766,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3763
3766
|
onClick: C
|
|
3764
3767
|
}, [
|
|
3765
3768
|
y("img", {
|
|
3766
|
-
src: d.value + "/user/captcha?ts=" +
|
|
3769
|
+
src: d.value + "/user/captcha?ts=" + m.value,
|
|
3767
3770
|
title: "点击刷新",
|
|
3768
3771
|
class: "captcha-img"
|
|
3769
3772
|
}, null, 8, zs)
|
|
@@ -3775,7 +3778,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3775
3778
|
a.value ? (r(), v("div", Js, [
|
|
3776
3779
|
c(k, null, {
|
|
3777
3780
|
default: i(() => [
|
|
3778
|
-
c(
|
|
3781
|
+
c(f(On))
|
|
3779
3782
|
]),
|
|
3780
3783
|
_: 1
|
|
3781
3784
|
}),
|
|
@@ -3794,7 +3797,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3794
3797
|
])]),
|
|
3795
3798
|
_: 1
|
|
3796
3799
|
}, 8, ["loading", "disabled"]),
|
|
3797
|
-
Object.keys(
|
|
3800
|
+
Object.keys(f(n).sso || {}).length > 0 ? (r(), v("div", Ws, [...S[5] || (S[5] = [
|
|
3798
3801
|
y("span", null, "其他登录方式", -1)
|
|
3799
3802
|
])])) : $("", !0),
|
|
3800
3803
|
S[6] || (S[6] = y("div", { class: "sso-container" }, [
|
|
@@ -3806,7 +3809,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3806
3809
|
]),
|
|
3807
3810
|
_: 1
|
|
3808
3811
|
}),
|
|
3809
|
-
y("div", Qs, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " " + A(
|
|
3812
|
+
y("div", Qs, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " " + A(f(n).title || "OMS") + ". All rights reserved. ", 1)
|
|
3810
3813
|
])
|
|
3811
3814
|
]),
|
|
3812
3815
|
_: 1
|
|
@@ -3817,7 +3820,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3817
3820
|
}), Zs = {
|
|
3818
3821
|
name: "NotFoundPage"
|
|
3819
3822
|
}, Ys = { class: "not-found" };
|
|
3820
|
-
function ea(e, t,
|
|
3823
|
+
function ea(e, t, o, n, l, s) {
|
|
3821
3824
|
return r(), v("div", Ys, [...t[0] || (t[0] = [
|
|
3822
3825
|
y("svg", {
|
|
3823
3826
|
width: "380px",
|
|
@@ -3887,10 +3890,10 @@ function ea(e, t, n, o, l, s) {
|
|
|
3887
3890
|
], -1)
|
|
3888
3891
|
])]);
|
|
3889
3892
|
}
|
|
3890
|
-
const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803"]]),
|
|
3893
|
+
const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803"]]), oa = [
|
|
3891
3894
|
{
|
|
3892
3895
|
path: "/",
|
|
3893
|
-
component:
|
|
3896
|
+
component: oo,
|
|
3894
3897
|
redirect: "/dashboard",
|
|
3895
3898
|
name: "Root",
|
|
3896
3899
|
meta: {
|
|
@@ -3900,7 +3903,7 @@ const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803
|
|
|
3900
3903
|
{
|
|
3901
3904
|
path: "dashboard",
|
|
3902
3905
|
name: "Dashboard",
|
|
3903
|
-
component:
|
|
3906
|
+
component: nl,
|
|
3904
3907
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
3905
3908
|
}
|
|
3906
3909
|
]
|
|
@@ -3917,17 +3920,17 @@ const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803
|
|
|
3917
3920
|
meta: { menuType: 0 },
|
|
3918
3921
|
hidden: !0
|
|
3919
3922
|
}
|
|
3920
|
-
], le =
|
|
3921
|
-
history:
|
|
3922
|
-
routes:
|
|
3923
|
+
], le = Yo({
|
|
3924
|
+
history: en(),
|
|
3925
|
+
routes: oa
|
|
3923
3926
|
});
|
|
3924
3927
|
Fe.configure({ showSpinner: !1 });
|
|
3925
|
-
function
|
|
3926
|
-
e.beforeEach((t,
|
|
3927
|
-
Fe.start(), t.preHash = location.hash.replace("#", ""),
|
|
3928
|
+
function na(e) {
|
|
3929
|
+
e.beforeEach((t, o, n) => {
|
|
3930
|
+
Fe.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
3928
3931
|
}), e.afterEach((t) => {
|
|
3929
|
-
const
|
|
3930
|
-
t.matched.length > 0 &&
|
|
3932
|
+
const o = N(D);
|
|
3933
|
+
t.matched.length > 0 && o.updateState({
|
|
3931
3934
|
key: "path",
|
|
3932
3935
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
3933
3936
|
}), Fe.done();
|
|
@@ -3936,23 +3939,23 @@ function oa(e) {
|
|
|
3936
3939
|
function la() {
|
|
3937
3940
|
return N(D).isLodeRemoteRoutes;
|
|
3938
3941
|
}
|
|
3939
|
-
function
|
|
3942
|
+
function no() {
|
|
3940
3943
|
return V(D).whiteRoutes || [];
|
|
3941
3944
|
}
|
|
3942
3945
|
function sa() {
|
|
3943
3946
|
return N(D).token;
|
|
3944
3947
|
}
|
|
3945
|
-
class
|
|
3948
|
+
class lo {
|
|
3946
3949
|
type = "qrcode";
|
|
3947
3950
|
flag() {
|
|
3948
3951
|
}
|
|
3949
|
-
jumpToLoginPage(t,
|
|
3950
|
-
t(
|
|
3952
|
+
jumpToLoginPage(t, o) {
|
|
3953
|
+
t(o);
|
|
3951
3954
|
}
|
|
3952
3955
|
showQrCode() {
|
|
3953
3956
|
}
|
|
3954
3957
|
}
|
|
3955
|
-
class Ir extends
|
|
3958
|
+
class Ir extends lo {
|
|
3956
3959
|
type = "jump";
|
|
3957
3960
|
client_id = "";
|
|
3958
3961
|
constructor(t) {
|
|
@@ -3966,12 +3969,12 @@ class Ir extends ln {
|
|
|
3966
3969
|
key: "github"
|
|
3967
3970
|
};
|
|
3968
3971
|
}
|
|
3969
|
-
jumpToLoginPage(t,
|
|
3970
|
-
const
|
|
3971
|
-
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${
|
|
3972
|
+
jumpToLoginPage(t, o) {
|
|
3973
|
+
const n = encodeURIComponent(location.href);
|
|
3974
|
+
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${n}`);
|
|
3972
3975
|
}
|
|
3973
3976
|
}
|
|
3974
|
-
class Cr extends
|
|
3977
|
+
class Cr extends lo {
|
|
3975
3978
|
type = "qrcode";
|
|
3976
3979
|
qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
3977
3980
|
reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
@@ -3997,20 +4000,20 @@ class Cr extends ln {
|
|
|
3997
4000
|
appid: this.appid,
|
|
3998
4001
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
3999
4002
|
};
|
|
4000
|
-
return re(this.reloadUrl, s) + "&" +
|
|
4001
|
-
},
|
|
4003
|
+
return re(this.reloadUrl, s) + "&" + Ho(l || {});
|
|
4004
|
+
}, o = () => {
|
|
4002
4005
|
const l = {
|
|
4003
4006
|
goto: encodeURIComponent(t()),
|
|
4004
4007
|
style: encodeURIComponent(this.style)
|
|
4005
4008
|
};
|
|
4006
4009
|
return re(this.qrCodeUrl, l);
|
|
4007
|
-
},
|
|
4010
|
+
}, n = (l) => {
|
|
4008
4011
|
const { origin: s, data: a } = l;
|
|
4009
4012
|
s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
|
|
4010
4013
|
};
|
|
4011
|
-
this.iframe.src =
|
|
4014
|
+
this.iframe.src = o(), qo({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4012
4015
|
"message",
|
|
4013
|
-
(l) =>
|
|
4016
|
+
(l) => n(l),
|
|
4014
4017
|
!1
|
|
4015
4018
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
|
|
4016
4019
|
}
|
|
@@ -4020,31 +4023,31 @@ function ia() {
|
|
|
4020
4023
|
return q(V(D).sso || {}, aa);
|
|
4021
4024
|
}
|
|
4022
4025
|
function ra() {
|
|
4023
|
-
const e = ia(), t = V(D).activeSsoKey || "",
|
|
4024
|
-
if (
|
|
4025
|
-
return
|
|
4026
|
+
const e = ia(), t = V(D).activeSsoKey || "", o = e[t];
|
|
4027
|
+
if (o !== void 0)
|
|
4028
|
+
return o();
|
|
4026
4029
|
}
|
|
4027
4030
|
function ca(e) {
|
|
4028
|
-
e.beforeEach(async (t,
|
|
4029
|
-
if (
|
|
4030
|
-
|
|
4031
|
+
e.beforeEach(async (t, o, n) => {
|
|
4032
|
+
if (no().indexOf(t.path) !== -1) {
|
|
4033
|
+
n();
|
|
4031
4034
|
return;
|
|
4032
4035
|
}
|
|
4033
4036
|
if (sa()) {
|
|
4034
|
-
t.query?.redirect ?
|
|
4037
|
+
t.query?.redirect ? n(t.query?.redirect) : n();
|
|
4035
4038
|
return;
|
|
4036
4039
|
}
|
|
4037
4040
|
const s = t.query.redirect || t.path, a = ra();
|
|
4038
4041
|
if (!a) {
|
|
4039
|
-
|
|
4042
|
+
n(`/login?redirect=${s}`);
|
|
4040
4043
|
return;
|
|
4041
4044
|
}
|
|
4042
4045
|
const u = a.flag(), d = N(D);
|
|
4043
|
-
if (u && await d.login(
|
|
4044
|
-
|
|
4046
|
+
if (u && await d.login(zo(u) ? u : { ticket: u })) {
|
|
4047
|
+
n();
|
|
4045
4048
|
return;
|
|
4046
4049
|
}
|
|
4047
|
-
a.jumpToLoginPage(
|
|
4050
|
+
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4048
4051
|
});
|
|
4049
4052
|
}
|
|
4050
4053
|
const ua = {}, da = { class: "loading preloader" };
|
|
@@ -4053,7 +4056,7 @@ function pa(e, t) {
|
|
|
4053
4056
|
y("div", { class: "preloader-inner" }, null, -1)
|
|
4054
4057
|
])]);
|
|
4055
4058
|
}
|
|
4056
|
-
const
|
|
4059
|
+
const ma = /* @__PURE__ */ L(ua, [["render", pa]]), fa = {
|
|
4057
4060
|
name: "VNotice",
|
|
4058
4061
|
props: {
|
|
4059
4062
|
dataApi: {
|
|
@@ -4082,70 +4085,70 @@ const fa = /* @__PURE__ */ L(ua, [["render", pa]]), ma = {
|
|
|
4082
4085
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
4083
4086
|
}
|
|
4084
4087
|
};
|
|
4085
|
-
function ha(e, t,
|
|
4088
|
+
function ha(e, t, o, n, l, s) {
|
|
4086
4089
|
const a = lt;
|
|
4087
4090
|
return r(), v("div", null, [
|
|
4088
4091
|
l.hasNotice ? (r(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
|
|
4089
4092
|
]);
|
|
4090
4093
|
}
|
|
4091
|
-
const ba = /* @__PURE__ */ L(
|
|
4094
|
+
const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /* @__PURE__ */ G({
|
|
4092
4095
|
__name: "PageLoad",
|
|
4093
4096
|
props: {
|
|
4094
4097
|
schemaHandler: { type: Function, default: (e) => e },
|
|
4095
4098
|
schemaApi: { default: "" }
|
|
4096
4099
|
},
|
|
4097
4100
|
setup(e) {
|
|
4098
|
-
const t = e,
|
|
4101
|
+
const t = e, o = Y(), n = V(), l = N(), s = Q(), a = T(!0), u = T(!1), d = T({}), m = T(""), p = T({}), b = T([]), w = T(!1), C = g(() => l.env), O = g(() => n);
|
|
4099
4102
|
return We(() => {
|
|
4100
4103
|
const x = s.path.split("/").filter((k) => k), _ = x.length > 1 ? x.slice(0, x.length - 1).join("/") : x[0], S = "/schema" + s.meta.path, K = { params: s.params };
|
|
4101
4104
|
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || S, K).then(({ data: k }) => {
|
|
4102
|
-
a.value = !1, ce(k) && (k.notice !== void 0 && (u.value = !0, Ze(k.notice) ? d.value = { title: k.notice } : ce(k.notice) && (d.value = k.notice,
|
|
4105
|
+
a.value = !1, ce(k) && (k.notice !== void 0 && (u.value = !0, Ze(k.notice) ? d.value = { title: k.notice } : ce(k.notice) && (d.value = k.notice, m.value = k.notice.noticeApi), delete k.notice), b.value = k.ownerNames || [], w.value = k.serviceOffLine || !1), p.value = t.schemaHandler(k, _), o.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
|
|
4103
4106
|
});
|
|
4104
4107
|
}), (x, _) => {
|
|
4105
4108
|
const S = lt;
|
|
4106
4109
|
return r(), v(R, null, [
|
|
4107
|
-
|
|
4110
|
+
f(b).length > 0 ? (r(), h(S, {
|
|
4108
4111
|
key: 0,
|
|
4109
|
-
title: `该页面功能对应开发: [ ${
|
|
4112
|
+
title: `该页面功能对应开发: [ ${f(b).join(", ")} ] 有问题可直接企微反馈`,
|
|
4110
4113
|
type: "info",
|
|
4111
4114
|
style: { margin: "0 0 20px 0" },
|
|
4112
4115
|
closable: !1
|
|
4113
4116
|
}, null, 8, ["title"])) : $("", !0),
|
|
4114
|
-
|
|
4117
|
+
f(C) === "prod" && f(w) ? (r(), v("div", {
|
|
4115
4118
|
key: 1,
|
|
4116
4119
|
class: "offline-notice",
|
|
4117
|
-
innerHTML:
|
|
4120
|
+
innerHTML: f(w) === !0 ? f(O).serviceOffLineNotice : f(w)
|
|
4118
4121
|
}, null, 8, ya)) : (r(), v(R, { key: 2 }, [
|
|
4119
|
-
|
|
4122
|
+
f(u) ? (r(), h(ba, {
|
|
4120
4123
|
key: 0,
|
|
4121
|
-
notice:
|
|
4124
|
+
notice: f(d),
|
|
4122
4125
|
style: { margin: "0 0 20px 0" },
|
|
4123
|
-
"data-api": m
|
|
4126
|
+
"data-api": f(m)
|
|
4124
4127
|
}, null, 8, ["notice", "data-api"])) : $("", !0),
|
|
4125
|
-
|
|
4128
|
+
f(a) ? (r(), h(ma, { key: 1 })) : fe(x.$slots, "default", Z(X({ key: 2 }, f(p))), void 0, !0)
|
|
4126
4129
|
], 64))
|
|
4127
4130
|
], 64);
|
|
4128
4131
|
};
|
|
4129
4132
|
}
|
|
4130
|
-
}), ke = /* @__PURE__ */ L(_a, [["__scopeId", "data-v-e330fdc7"]]),
|
|
4133
|
+
}), ke = /* @__PURE__ */ L(_a, [["__scopeId", "data-v-e330fdc7"]]), so = {
|
|
4131
4134
|
__name: "table",
|
|
4132
4135
|
setup(e) {
|
|
4133
|
-
const t = (
|
|
4134
|
-
if (
|
|
4136
|
+
const t = (o, n) => {
|
|
4137
|
+
if (o.orderBy) {
|
|
4135
4138
|
const s = {
|
|
4136
|
-
prop:
|
|
4137
|
-
order:
|
|
4139
|
+
prop: o.orderBy.field,
|
|
4140
|
+
order: o.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4138
4141
|
};
|
|
4139
|
-
|
|
4142
|
+
o.tableProps = q(o.tableProps, { defaultSort: s });
|
|
4140
4143
|
}
|
|
4141
4144
|
const l = Object.keys(_e.props);
|
|
4142
|
-
return Object.keys(
|
|
4143
|
-
l.indexOf(s) === -1 && delete
|
|
4144
|
-
}),
|
|
4145
|
+
return Object.keys(o).forEach((s) => {
|
|
4146
|
+
l.indexOf(s) === -1 && delete o[s];
|
|
4147
|
+
}), o.listApi === void 0 && (o.listApi = `/${n}/list`), o;
|
|
4145
4148
|
};
|
|
4146
|
-
return (
|
|
4149
|
+
return (o, n) => (r(), h(ke, { "schema-handler": t }, {
|
|
4147
4150
|
default: i((l) => [
|
|
4148
|
-
c(
|
|
4151
|
+
c(f(_e), Z(de(l)), null, 16)
|
|
4149
4152
|
]),
|
|
4150
4153
|
_: 1
|
|
4151
4154
|
}));
|
|
@@ -4153,10 +4156,10 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4153
4156
|
}, ze = {
|
|
4154
4157
|
__name: "form",
|
|
4155
4158
|
setup(e) {
|
|
4156
|
-
const t = Q(),
|
|
4157
|
-
const
|
|
4159
|
+
const t = Q(), o = $e(), n = (u, d) => {
|
|
4160
|
+
const m = Object.keys(ne.props);
|
|
4158
4161
|
return Object.keys(u).forEach((p) => {
|
|
4159
|
-
if (
|
|
4162
|
+
if (m.indexOf(p) === -1) {
|
|
4160
4163
|
delete u[p];
|
|
4161
4164
|
return;
|
|
4162
4165
|
}
|
|
@@ -4168,7 +4171,7 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4168
4171
|
mod: t.params.id ? "edit" : "create"
|
|
4169
4172
|
}, u), u;
|
|
4170
4173
|
}, l = T(0), s = () => {
|
|
4171
|
-
|
|
4174
|
+
po.request({
|
|
4172
4175
|
url: "/form_mutex",
|
|
4173
4176
|
method: "get",
|
|
4174
4177
|
params: {
|
|
@@ -4189,15 +4192,15 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4189
4192
|
Te(() => {
|
|
4190
4193
|
const u = V();
|
|
4191
4194
|
t.params.id !== void 0 && u.formMutex && (s(), l.value = setInterval(s, 2e3));
|
|
4192
|
-
}),
|
|
4195
|
+
}), To(() => {
|
|
4193
4196
|
clearInterval(l.value);
|
|
4194
4197
|
});
|
|
4195
4198
|
function a() {
|
|
4196
|
-
t.query?.goback ?
|
|
4199
|
+
t.query?.goback ? o.push(t.query?.goback) : history.state.back && history.back();
|
|
4197
4200
|
}
|
|
4198
|
-
return (u, d) => (r(), h(ke, { "schema-handler":
|
|
4199
|
-
default: i((
|
|
4200
|
-
c(
|
|
4201
|
+
return (u, d) => (r(), h(ke, { "schema-handler": n }, {
|
|
4202
|
+
default: i((m) => [
|
|
4203
|
+
c(f(ne), Z(de(m)), null, 16)
|
|
4201
4204
|
]),
|
|
4202
4205
|
_: 1
|
|
4203
4206
|
}));
|
|
@@ -4205,7 +4208,7 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4205
4208
|
}, va = G({
|
|
4206
4209
|
name: "VTree",
|
|
4207
4210
|
components: {
|
|
4208
|
-
VForm:
|
|
4211
|
+
VForm: ne
|
|
4209
4212
|
},
|
|
4210
4213
|
props: {
|
|
4211
4214
|
treeApi: {
|
|
@@ -4301,8 +4304,8 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4301
4304
|
},
|
|
4302
4305
|
append(e, t) {
|
|
4303
4306
|
this.type = 1;
|
|
4304
|
-
const
|
|
4305
|
-
e.children || (e.children = []), this.formData =
|
|
4307
|
+
const o = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Fo(this.$props.props?.effectData, e) };
|
|
4308
|
+
e.children || (e.children = []), this.formData = o, this.formkey++, e.children.push(o), this.treeData = [...this.treeData];
|
|
4306
4309
|
},
|
|
4307
4310
|
canAppend(e, t) {
|
|
4308
4311
|
return e[this.localTreeProps.props.label] ? t.level < this.$props.maxDepth : !1;
|
|
@@ -4328,10 +4331,10 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4328
4331
|
allowDrap(e) {
|
|
4329
4332
|
return !0;
|
|
4330
4333
|
},
|
|
4331
|
-
allowDrop(e, t,
|
|
4332
|
-
return
|
|
4334
|
+
allowDrop(e, t, o) {
|
|
4335
|
+
return o === "inner";
|
|
4333
4336
|
},
|
|
4334
|
-
handleDragEnd(e, t,
|
|
4337
|
+
handleDragEnd(e, t, o, n) {
|
|
4335
4338
|
const l = e.data;
|
|
4336
4339
|
l.pid = t.data.id, this.$http.request({
|
|
4337
4340
|
method: "POST",
|
|
@@ -4346,14 +4349,14 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4346
4349
|
key: 1,
|
|
4347
4350
|
style: { color: "#E6A23C" }
|
|
4348
4351
|
}, xa = { class: "card-header" };
|
|
4349
|
-
function Ea(e, t,
|
|
4350
|
-
const a = ye, u =
|
|
4352
|
+
function Ea(e, t, o, n, l, s) {
|
|
4353
|
+
const a = ye, u = gn, d = Ae, m = Be, p = M("v-form"), b = ve;
|
|
4351
4354
|
return r(), h(b, {
|
|
4352
4355
|
class: "tree-box",
|
|
4353
4356
|
gutter: 20
|
|
4354
4357
|
}, {
|
|
4355
4358
|
default: i(() => [
|
|
4356
|
-
c(
|
|
4359
|
+
c(m, {
|
|
4357
4360
|
span: 8,
|
|
4358
4361
|
class: "tree-tree"
|
|
4359
4362
|
}, {
|
|
@@ -4433,7 +4436,7 @@ function Ea(e, t, n, o, l, s) {
|
|
|
4433
4436
|
]),
|
|
4434
4437
|
_: 1
|
|
4435
4438
|
}),
|
|
4436
|
-
c(
|
|
4439
|
+
c(m, {
|
|
4437
4440
|
span: 16,
|
|
4438
4441
|
class: "tree-form"
|
|
4439
4442
|
}, {
|
|
@@ -4466,13 +4469,13 @@ function Ea(e, t, n, o, l, s) {
|
|
|
4466
4469
|
const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
|
|
4467
4470
|
__name: "tree",
|
|
4468
4471
|
setup(e) {
|
|
4469
|
-
const t = (
|
|
4472
|
+
const t = (o, n) => {
|
|
4470
4473
|
const l = Object.keys(Et.props);
|
|
4471
|
-
return Object.keys(
|
|
4472
|
-
l.indexOf(s) === -1 && delete
|
|
4473
|
-
}),
|
|
4474
|
+
return Object.keys(o).forEach((s) => {
|
|
4475
|
+
l.indexOf(s) === -1 && delete o[s];
|
|
4476
|
+
}), o;
|
|
4474
4477
|
};
|
|
4475
|
-
return (
|
|
4478
|
+
return (o, n) => (r(), h(ke, { "schema-handler": t }, {
|
|
4476
4479
|
default: i((l) => [
|
|
4477
4480
|
c(Et, Z(de(l)), null, 16)
|
|
4478
4481
|
]),
|
|
@@ -4483,9 +4486,9 @@ const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
|
|
|
4483
4486
|
__name: "container",
|
|
4484
4487
|
setup(e) {
|
|
4485
4488
|
const t = T(0);
|
|
4486
|
-
return
|
|
4489
|
+
return tn(() => {
|
|
4487
4490
|
t.value++;
|
|
4488
|
-
}), (
|
|
4491
|
+
}), (o, n) => {
|
|
4489
4492
|
const l = M("router-view");
|
|
4490
4493
|
return r(), h(l);
|
|
4491
4494
|
};
|
|
@@ -4519,32 +4522,32 @@ const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
|
|
|
4519
4522
|
},
|
|
4520
4523
|
series: []
|
|
4521
4524
|
};
|
|
4522
|
-
function Ta(e, t,
|
|
4523
|
-
if (
|
|
4525
|
+
function Ta(e, t, o) {
|
|
4526
|
+
if (o.length === 0)
|
|
4524
4527
|
return {};
|
|
4525
|
-
let
|
|
4526
|
-
if (
|
|
4527
|
-
const l = [], s = Object.keys(
|
|
4528
|
-
let a = s[0], u = s.filter((
|
|
4528
|
+
let n = q({}, Ca);
|
|
4529
|
+
if (n.title.text = e, Ze(t)) {
|
|
4530
|
+
const l = [], s = Object.keys(o[0]);
|
|
4531
|
+
let a = s[0], u = s.filter((m, p) => p > 0), d = t;
|
|
4529
4532
|
if (t.indexOf(":") > -1) {
|
|
4530
|
-
const
|
|
4531
|
-
d =
|
|
4533
|
+
const m = t.split(":"), p = m[1].split(",");
|
|
4534
|
+
d = m[0], a = p[0], u = p.filter((b, w) => w > 0);
|
|
4532
4535
|
}
|
|
4533
|
-
u.forEach((
|
|
4536
|
+
u.forEach((m) => {
|
|
4534
4537
|
const p = [];
|
|
4535
|
-
|
|
4536
|
-
p.push(b[
|
|
4537
|
-
}),
|
|
4538
|
-
name:
|
|
4538
|
+
o.forEach((b) => {
|
|
4539
|
+
p.push(b[m]);
|
|
4540
|
+
}), n.series.push({
|
|
4541
|
+
name: m,
|
|
4539
4542
|
type: d,
|
|
4540
4543
|
smooth: !0,
|
|
4541
4544
|
data: p
|
|
4542
|
-
}),
|
|
4543
|
-
}),
|
|
4544
|
-
l.push(
|
|
4545
|
-
}),
|
|
4545
|
+
}), n.legend.data.push(m);
|
|
4546
|
+
}), o.forEach((m) => {
|
|
4547
|
+
l.push(m[a]);
|
|
4548
|
+
}), n.xAxis.data = l;
|
|
4546
4549
|
}
|
|
4547
|
-
return ce(t) && (
|
|
4550
|
+
return ce(t) && (n = q(n, t)), n;
|
|
4548
4551
|
}
|
|
4549
4552
|
const Oa = G({
|
|
4550
4553
|
name: "NumberPanel",
|
|
@@ -4558,11 +4561,11 @@ const Oa = G({
|
|
|
4558
4561
|
return {};
|
|
4559
4562
|
}
|
|
4560
4563
|
}), $a = { class: "number-panel-title" }, Ba = { class: "number" }, Aa = { class: "name" };
|
|
4561
|
-
function Ra(e, t,
|
|
4564
|
+
function Ra(e, t, o, n, l, s) {
|
|
4562
4565
|
return r(!0), v(R, null, U(e.dataList, (a, u) => (r(), v("span", { key: u }, [
|
|
4563
4566
|
y("div", $a, [
|
|
4564
|
-
(r(!0), v(R, null, U(Object.keys(a), (d,
|
|
4565
|
-
key:
|
|
4567
|
+
(r(!0), v(R, null, U(Object.keys(a), (d, m) => (r(), v("div", {
|
|
4568
|
+
key: m,
|
|
4566
4569
|
class: "title-inner"
|
|
4567
4570
|
}, [
|
|
4568
4571
|
y("p", Ba, A(a[d]), 1),
|
|
@@ -4573,8 +4576,8 @@ function Ra(e, t, n, o, l, s) {
|
|
|
4573
4576
|
}
|
|
4574
4577
|
const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293"]]), La = {
|
|
4575
4578
|
components: {
|
|
4576
|
-
Chart:
|
|
4577
|
-
Md:
|
|
4579
|
+
Chart: wn,
|
|
4580
|
+
Md: Bn,
|
|
4578
4581
|
Json: st,
|
|
4579
4582
|
Table: _e,
|
|
4580
4583
|
Number: Pa,
|
|
@@ -4590,29 +4593,29 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
|
|
|
4590
4593
|
setup(e) {
|
|
4591
4594
|
const t = () => e.option.chart === "num" ? "number" : e.option.type;
|
|
4592
4595
|
return {
|
|
4593
|
-
compprops: (
|
|
4596
|
+
compprops: (n) => {
|
|
4594
4597
|
const l = t();
|
|
4595
4598
|
if (l === "number")
|
|
4596
4599
|
return {
|
|
4597
|
-
dataList:
|
|
4600
|
+
dataList: n.data
|
|
4598
4601
|
};
|
|
4599
4602
|
if (l === "chart")
|
|
4600
4603
|
return {
|
|
4601
|
-
options: Ta(
|
|
4604
|
+
options: Ta(n.id, n.chart, n.data)
|
|
4602
4605
|
};
|
|
4603
4606
|
if (l === "md")
|
|
4604
4607
|
return {
|
|
4605
|
-
source:
|
|
4608
|
+
source: n.data
|
|
4606
4609
|
};
|
|
4607
4610
|
if (l === "table") {
|
|
4608
|
-
if (!Lt(
|
|
4611
|
+
if (!Lt(n.data))
|
|
4609
4612
|
return { showPagination: !1 };
|
|
4610
4613
|
const s = [];
|
|
4611
|
-
return
|
|
4614
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((a, u) => {
|
|
4612
4615
|
s.push({ field: a, label: a });
|
|
4613
4616
|
}), {
|
|
4614
4617
|
headers: s,
|
|
4615
|
-
list:
|
|
4618
|
+
list: n.data,
|
|
4616
4619
|
showPagination: !1
|
|
4617
4620
|
};
|
|
4618
4621
|
}
|
|
@@ -4622,14 +4625,14 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
|
|
|
4622
4625
|
};
|
|
4623
4626
|
}
|
|
4624
4627
|
};
|
|
4625
|
-
function Ma(e, t,
|
|
4626
|
-
const a = Ae, u =
|
|
4627
|
-
return $
|
|
4628
|
+
function Ma(e, t, o, n, l, s) {
|
|
4629
|
+
const a = Ae, u = Oo("resize");
|
|
4630
|
+
return $o((r(), h(a, {
|
|
4628
4631
|
shadow: "never",
|
|
4629
4632
|
class: "part"
|
|
4630
4633
|
}, {
|
|
4631
4634
|
default: i(() => [
|
|
4632
|
-
(r(), h(Xe(
|
|
4635
|
+
(r(), h(Xe(n.comptype()), Z(de(n.compprops(o.option))), null, 16))
|
|
4633
4636
|
]),
|
|
4634
4637
|
_: 1
|
|
4635
4638
|
})), [
|
|
@@ -4652,10 +4655,10 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4652
4655
|
const t = Q();
|
|
4653
4656
|
Te(() => {
|
|
4654
4657
|
});
|
|
4655
|
-
const
|
|
4658
|
+
const o = e, n = T({});
|
|
4656
4659
|
We(() => {
|
|
4657
|
-
|
|
4658
|
-
p.default !== null && (
|
|
4660
|
+
o.filter?.forEach((p) => {
|
|
4661
|
+
p.default !== null && (n.value[p.field] = p.default);
|
|
4659
4662
|
});
|
|
4660
4663
|
});
|
|
4661
4664
|
const l = {
|
|
@@ -4668,15 +4671,15 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4668
4671
|
cancelButton: {
|
|
4669
4672
|
text: "重置"
|
|
4670
4673
|
}
|
|
4671
|
-
}, s = T(1), a = T(
|
|
4674
|
+
}, s = T(1), a = T(o.filter), u = T(o.dataPart), d = g(() => {
|
|
4672
4675
|
let p = t.params.id;
|
|
4673
4676
|
if (!p) {
|
|
4674
4677
|
const b = t.path.split("/");
|
|
4675
4678
|
p = b[b.length - 1];
|
|
4676
4679
|
}
|
|
4677
4680
|
return "/focusbi_report/view/" + p;
|
|
4678
|
-
}),
|
|
4679
|
-
|
|
4681
|
+
}), m = (p) => {
|
|
4682
|
+
po.get(d.value, { params: p }).then(({ data: b }) => {
|
|
4680
4683
|
a.value = b.filter, u.value = b.dataPart, s.value++;
|
|
4681
4684
|
});
|
|
4682
4685
|
};
|
|
@@ -4684,7 +4687,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4684
4687
|
const w = Ae, C = Be, O = lt, x = ve;
|
|
4685
4688
|
return r(), h(x, null, {
|
|
4686
4689
|
default: i(() => [
|
|
4687
|
-
|
|
4690
|
+
f(a).length > 0 ? (r(), h(C, {
|
|
4688
4691
|
key: 0,
|
|
4689
4692
|
span: 24
|
|
4690
4693
|
}, {
|
|
@@ -4694,12 +4697,12 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4694
4697
|
class: "part-filter"
|
|
4695
4698
|
}, {
|
|
4696
4699
|
default: i(() => [
|
|
4697
|
-
c(
|
|
4698
|
-
modelValue:
|
|
4699
|
-
"onUpdate:modelValue": b[0] || (b[0] = (_) => Qe(
|
|
4700
|
-
"form-items":
|
|
4700
|
+
c(f(ne), {
|
|
4701
|
+
modelValue: f(n),
|
|
4702
|
+
"onUpdate:modelValue": b[0] || (b[0] = (_) => Qe(n) ? n.value = _ : null),
|
|
4703
|
+
"form-items": f(a),
|
|
4701
4704
|
options: l,
|
|
4702
|
-
onSubmit:
|
|
4705
|
+
onSubmit: m
|
|
4703
4706
|
}, null, 8, ["modelValue", "form-items"])
|
|
4704
4707
|
]),
|
|
4705
4708
|
_: 1
|
|
@@ -4711,7 +4714,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4711
4714
|
default: i(() => [
|
|
4712
4715
|
c(x, { gutter: 20 }, {
|
|
4713
4716
|
default: i(() => [
|
|
4714
|
-
(r(!0), v(R, null, U(
|
|
4717
|
+
(r(!0), v(R, null, U(f(u), (_, S) => (r(), h(C, {
|
|
4715
4718
|
key: S,
|
|
4716
4719
|
span: _.col || 24
|
|
4717
4720
|
}, {
|
|
@@ -4726,7 +4729,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4726
4729
|
]),
|
|
4727
4730
|
_: 2
|
|
4728
4731
|
}, 1032, ["title"])) : (r(), h(Da, {
|
|
4729
|
-
key:
|
|
4732
|
+
key: f(s),
|
|
4730
4733
|
option: _
|
|
4731
4734
|
}, null, 8, ["option"]))
|
|
4732
4735
|
]),
|
|
@@ -4746,15 +4749,15 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4746
4749
|
}), Na = {
|
|
4747
4750
|
__name: "report",
|
|
4748
4751
|
setup(e) {
|
|
4749
|
-
const t = Q(),
|
|
4750
|
-
let
|
|
4751
|
-
if (!
|
|
4752
|
+
const t = Q(), o = g(() => {
|
|
4753
|
+
let n = t.params.id;
|
|
4754
|
+
if (!n) {
|
|
4752
4755
|
const l = t.path.split("/");
|
|
4753
|
-
|
|
4756
|
+
n = l[l.length - 1];
|
|
4754
4757
|
}
|
|
4755
|
-
return "/focusbi_report/view/" +
|
|
4758
|
+
return "/focusbi_report/view/" + n;
|
|
4756
4759
|
});
|
|
4757
|
-
return (
|
|
4760
|
+
return (n, l) => (r(), h(ke, { "schema-api": f(o) }, {
|
|
4758
4761
|
default: i((s) => [
|
|
4759
4762
|
c(ja, Z(de(s)), null, 16)
|
|
4760
4763
|
]),
|
|
@@ -4762,12 +4765,12 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4762
4765
|
}, 8, ["schema-api"]));
|
|
4763
4766
|
}
|
|
4764
4767
|
}, Va = (e) => c("div", null, [e.test]), Ua = {
|
|
4765
|
-
card:
|
|
4766
|
-
form:
|
|
4768
|
+
card: Xo,
|
|
4769
|
+
form: ne,
|
|
4767
4770
|
table: _e,
|
|
4768
4771
|
test: Va,
|
|
4769
|
-
row:
|
|
4770
|
-
col:
|
|
4772
|
+
row: Qo,
|
|
4773
|
+
col: Wo
|
|
4771
4774
|
}, qa = {
|
|
4772
4775
|
card: {
|
|
4773
4776
|
type: "card",
|
|
@@ -4790,18 +4793,18 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4790
4793
|
}
|
|
4791
4794
|
};
|
|
4792
4795
|
function Ha(e) {
|
|
4793
|
-
const t = Object.assign({}, e),
|
|
4796
|
+
const t = Object.assign({}, e), o = t.type.split(".").reverse(), n = t.span || 24;
|
|
4794
4797
|
delete t.span;
|
|
4795
4798
|
let l = {
|
|
4796
4799
|
...t,
|
|
4797
|
-
type:
|
|
4800
|
+
type: o[0]
|
|
4798
4801
|
};
|
|
4799
|
-
for (let s = 1; s <
|
|
4802
|
+
for (let s = 1; s < o.length; s++)
|
|
4800
4803
|
l = {
|
|
4801
|
-
type:
|
|
4804
|
+
type: o[s],
|
|
4802
4805
|
children: [l]
|
|
4803
4806
|
};
|
|
4804
|
-
return l.span =
|
|
4807
|
+
return l.span = n, ct([l]);
|
|
4805
4808
|
}
|
|
4806
4809
|
function ct(e) {
|
|
4807
4810
|
const t = {
|
|
@@ -4812,72 +4815,72 @@ function ct(e) {
|
|
|
4812
4815
|
},
|
|
4813
4816
|
children: []
|
|
4814
4817
|
};
|
|
4815
|
-
return e.forEach((
|
|
4816
|
-
let
|
|
4817
|
-
if (ce(
|
|
4818
|
+
return e.forEach((o) => {
|
|
4819
|
+
let n = Object.assign({}, o);
|
|
4820
|
+
if (ce(n.props?.style)) {
|
|
4818
4821
|
let a = "";
|
|
4819
|
-
Object.keys(
|
|
4820
|
-
a += u + ":" +
|
|
4821
|
-
}),
|
|
4822
|
+
Object.keys(n.props?.style).forEach((u) => {
|
|
4823
|
+
a += u + ":" + n.props?.style[u] + ";";
|
|
4824
|
+
}), n.props.style = a;
|
|
4822
4825
|
}
|
|
4823
4826
|
const l = {
|
|
4824
|
-
span:
|
|
4827
|
+
span: n.span ?? 24,
|
|
4825
4828
|
class: "render-col"
|
|
4826
4829
|
};
|
|
4827
|
-
if (delete
|
|
4830
|
+
if (delete n.span, n.type.indexOf(".") > 0) {
|
|
4828
4831
|
t.children.push({
|
|
4829
4832
|
type: "col",
|
|
4830
4833
|
props: l,
|
|
4831
|
-
children: Ha(
|
|
4834
|
+
children: Ha(n)
|
|
4832
4835
|
});
|
|
4833
4836
|
return;
|
|
4834
4837
|
}
|
|
4835
|
-
|
|
4838
|
+
n = q({
|
|
4836
4839
|
props: {}
|
|
4837
|
-
}, qa[
|
|
4838
|
-
const s =
|
|
4839
|
-
s.length && (
|
|
4840
|
+
}, qa[n.type] || {}, n);
|
|
4841
|
+
const s = ao(n.children);
|
|
4842
|
+
s.length && (n.children = ct(s)), t.children.push({
|
|
4840
4843
|
type: "col",
|
|
4841
4844
|
props: l,
|
|
4842
|
-
children: [
|
|
4845
|
+
children: [n]
|
|
4843
4846
|
});
|
|
4844
4847
|
}), [t];
|
|
4845
4848
|
}
|
|
4846
|
-
function
|
|
4849
|
+
function ao(e) {
|
|
4847
4850
|
return Lt(e) ? e : ce(e) ? [e] : [];
|
|
4848
4851
|
}
|
|
4849
4852
|
let Je = {};
|
|
4850
|
-
const
|
|
4853
|
+
const io = (e) => {
|
|
4851
4854
|
const t = Ua[e.type] || Je[e.type] || e.type;
|
|
4852
|
-
return
|
|
4853
|
-
default: () =>
|
|
4855
|
+
return Ao(t, e.props, {
|
|
4856
|
+
default: () => ao(e.children).map((o) => io(o))
|
|
4854
4857
|
});
|
|
4855
|
-
}, Fa = (e) => (Object.keys(Je).length === 0 && (Je =
|
|
4858
|
+
}, Fa = (e) => (Object.keys(Je).length === 0 && (Je = Bo().appContext.components), ct(Object.values(e.schema)).map((o) => io(o))), Ga = {
|
|
4856
4859
|
__name: "custom",
|
|
4857
4860
|
setup(e) {
|
|
4858
|
-
const t = T([]),
|
|
4859
|
-
return (
|
|
4861
|
+
const t = T([]), o = (n, l) => (t.value = Ro(n), n);
|
|
4862
|
+
return (n, l) => (r(), h(ke, { "schema-handler": o }, {
|
|
4860
4863
|
default: i(() => [
|
|
4861
|
-
c(
|
|
4864
|
+
c(f(Fa), { schema: f(t) }, null, 8, ["schema"])
|
|
4862
4865
|
]),
|
|
4863
4866
|
_: 1
|
|
4864
4867
|
}));
|
|
4865
4868
|
}
|
|
4866
4869
|
};
|
|
4867
|
-
let
|
|
4870
|
+
let me = {};
|
|
4868
4871
|
function Tr(e) {
|
|
4869
|
-
|
|
4872
|
+
me = e;
|
|
4870
4873
|
}
|
|
4871
4874
|
const Ka = (e) => {
|
|
4872
|
-
const t = (
|
|
4873
|
-
const
|
|
4874
|
-
return
|
|
4875
|
+
const t = (o) => {
|
|
4876
|
+
const n = "./views/" + o + ".vue";
|
|
4877
|
+
return me && me[n] && me[n].default ? me[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), qe);
|
|
4875
4878
|
};
|
|
4876
4879
|
if (e.path === "#")
|
|
4877
4880
|
return qe;
|
|
4878
4881
|
switch (e.page_type) {
|
|
4879
4882
|
case J.list:
|
|
4880
|
-
return
|
|
4883
|
+
return so;
|
|
4881
4884
|
case J.form:
|
|
4882
4885
|
return ze;
|
|
4883
4886
|
case J.custom:
|
|
@@ -4899,8 +4902,8 @@ function za(e) {
|
|
|
4899
4902
|
function Ja(e) {
|
|
4900
4903
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4901
4904
|
}
|
|
4902
|
-
const
|
|
4903
|
-
const t = e.type !== F.page,
|
|
4905
|
+
const ro = (e) => {
|
|
4906
|
+
const t = e.type !== F.page, o = {
|
|
4904
4907
|
path: za(e),
|
|
4905
4908
|
name: e.id + "_" + Ja(e) + "_" + e.path.replaceAll("/", "_"),
|
|
4906
4909
|
component: Ka(e),
|
|
@@ -4915,13 +4918,13 @@ const cn = (e) => {
|
|
|
4915
4918
|
keepAlive: !1,
|
|
4916
4919
|
role: e.role
|
|
4917
4920
|
},
|
|
4918
|
-
children: e.children ? e.children.map((
|
|
4921
|
+
children: e.children ? e.children.map((n) => ro(n)) : []
|
|
4919
4922
|
};
|
|
4920
4923
|
if (e.page_type === J.entity) {
|
|
4921
|
-
const
|
|
4922
|
-
path:
|
|
4924
|
+
const n = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
|
|
4925
|
+
path: n,
|
|
4923
4926
|
name: e.name + "列表" + e.id,
|
|
4924
|
-
component:
|
|
4927
|
+
component: so,
|
|
4925
4928
|
meta: {
|
|
4926
4929
|
id: e.id + 99999,
|
|
4927
4930
|
title: "列表",
|
|
@@ -4958,69 +4961,69 @@ const cn = (e) => {
|
|
|
4958
4961
|
path: e.path
|
|
4959
4962
|
}
|
|
4960
4963
|
}];
|
|
4961
|
-
|
|
4964
|
+
o.children = [...a, ...o.children];
|
|
4962
4965
|
}
|
|
4963
|
-
if (
|
|
4964
|
-
let
|
|
4965
|
-
if (
|
|
4966
|
-
l.meta && !l.meta.hidden && (
|
|
4967
|
-
}),
|
|
4968
|
-
|
|
4966
|
+
if (o.children && o.children.length > 0) {
|
|
4967
|
+
let n = !0;
|
|
4968
|
+
if (o.children.forEach((l) => {
|
|
4969
|
+
l.meta && !l.meta.hidden && (n = !1);
|
|
4970
|
+
}), o.meta && (o.meta.menuType = t ? F.dir : F.hidden), n) {
|
|
4971
|
+
o.meta && (o.meta.menuType = F.menu);
|
|
4969
4972
|
let l = "/";
|
|
4970
|
-
for (let s = 0; s <
|
|
4971
|
-
if (
|
|
4972
|
-
l =
|
|
4973
|
+
for (let s = 0; s < o.children.length; s++)
|
|
4974
|
+
if (o.children[s].path.indexOf("/:") === -1) {
|
|
4975
|
+
l = o.children[s].path;
|
|
4973
4976
|
break;
|
|
4974
4977
|
}
|
|
4975
|
-
|
|
4978
|
+
o.redirect = l, o.path = "/" + e.id + "_DIR" + o.redirect.replaceAll("/", "_").toUpperCase();
|
|
4976
4979
|
}
|
|
4977
4980
|
}
|
|
4978
|
-
return
|
|
4981
|
+
return o;
|
|
4979
4982
|
}, Wa = (e) => {
|
|
4980
4983
|
const t = [];
|
|
4981
|
-
return e.forEach((
|
|
4982
|
-
const
|
|
4983
|
-
id:
|
|
4984
|
-
label:
|
|
4984
|
+
return e.forEach((o) => {
|
|
4985
|
+
const n = {
|
|
4986
|
+
id: o.id,
|
|
4987
|
+
label: o.label,
|
|
4985
4988
|
routes: []
|
|
4986
4989
|
};
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
}), t.push(
|
|
4990
|
+
o.routes.forEach((l) => {
|
|
4991
|
+
n.routes.push(ro(l));
|
|
4992
|
+
}), t.push(n);
|
|
4990
4993
|
}), t;
|
|
4991
4994
|
}, Qa = "root", It = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Xa = (e) => {
|
|
4992
|
-
const t = typeof e.role == "string" ? e.role : "",
|
|
4993
|
-
return !
|
|
4994
|
-
},
|
|
4995
|
+
const t = typeof e.role == "string" ? e.role : "", o = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", n = [...It(t), ...It(o)];
|
|
4996
|
+
return !n.length && e.children && e.children.length ? [] : Array.from(new Set(n));
|
|
4997
|
+
}, co = (e) => {
|
|
4995
4998
|
const t = { ...e };
|
|
4996
|
-
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((
|
|
4997
|
-
}, Za = (e, t) => e.length ? t.length ? e.some((
|
|
4998
|
-
const l = Xa(
|
|
4999
|
+
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((o) => co(o))), t;
|
|
5000
|
+
}, Za = (e, t) => e.length ? t.length ? e.some((o) => t.includes(o)) : !1 : !0, ut = (e = [], t) => t.includes(Qa) ? e.map((o) => co(o)) : e.reduce((o, n) => {
|
|
5001
|
+
const l = Xa(n);
|
|
4999
5002
|
if (!Za(l, t))
|
|
5000
|
-
return
|
|
5001
|
-
const s = { ...
|
|
5002
|
-
if (
|
|
5003
|
-
const a = ut(
|
|
5003
|
+
return o;
|
|
5004
|
+
const s = { ...n };
|
|
5005
|
+
if (n.meta && (s.meta = { ...n.meta }), n.children && n.children.length) {
|
|
5006
|
+
const a = ut(n.children, t);
|
|
5004
5007
|
if (!a.length)
|
|
5005
|
-
return
|
|
5008
|
+
return o;
|
|
5006
5009
|
s.children = a;
|
|
5007
5010
|
}
|
|
5008
|
-
return
|
|
5011
|
+
return o.push(s), o;
|
|
5009
5012
|
}, []), Ya = (e) => {
|
|
5010
5013
|
const t = globalThis.atob(e);
|
|
5011
|
-
let
|
|
5012
|
-
for (let
|
|
5013
|
-
const l = t.charCodeAt(
|
|
5014
|
-
|
|
5014
|
+
let o = "";
|
|
5015
|
+
for (let n = 0; n < t.length; n++) {
|
|
5016
|
+
const l = t.charCodeAt(n).toString(16).padStart(2, "0");
|
|
5017
|
+
o += "%" + l;
|
|
5015
5018
|
}
|
|
5016
5019
|
try {
|
|
5017
|
-
return decodeURIComponent(
|
|
5020
|
+
return decodeURIComponent(o);
|
|
5018
5021
|
} catch {
|
|
5019
5022
|
return decodeURIComponent(encodeURIComponent(t));
|
|
5020
5023
|
}
|
|
5021
5024
|
}, ei = (e) => {
|
|
5022
|
-
const t = e.replace(/-/g, "+").replace(/_/g, "/"),
|
|
5023
|
-
return typeof globalThis.atob == "function" ? Ya(
|
|
5025
|
+
const t = e.replace(/-/g, "+").replace(/_/g, "/"), o = 4 - t.length % 4, n = t + (o < 4 ? "=".repeat(o) : "");
|
|
5026
|
+
return typeof globalThis.atob == "function" ? Ya(n) : typeof Buffer < "u" ? Buffer.from(n, "base64").toString("utf-8") : "";
|
|
5024
5027
|
}, ti = (e) => {
|
|
5025
5028
|
if (!e)
|
|
5026
5029
|
return null;
|
|
@@ -5028,60 +5031,60 @@ const cn = (e) => {
|
|
|
5028
5031
|
if (t.length < 2)
|
|
5029
5032
|
return null;
|
|
5030
5033
|
try {
|
|
5031
|
-
const
|
|
5032
|
-
return
|
|
5034
|
+
const o = ei(t[1]);
|
|
5035
|
+
return o ? JSON.parse(o) : null;
|
|
5033
5036
|
} catch {
|
|
5034
5037
|
return null;
|
|
5035
5038
|
}
|
|
5036
|
-
},
|
|
5039
|
+
}, uo = (e) => {
|
|
5037
5040
|
const t = ti(e);
|
|
5038
|
-
return (t && typeof t.role == "string" ? t.role : "").split(",").map((
|
|
5041
|
+
return (t && typeof t.role == "string" ? t.role : "").split(",").map((n) => n.trim()).filter((n) => !!n);
|
|
5039
5042
|
};
|
|
5040
|
-
function
|
|
5041
|
-
e.beforeEach(async (t,
|
|
5042
|
-
if (
|
|
5043
|
-
|
|
5043
|
+
function oi(e) {
|
|
5044
|
+
e.beforeEach(async (t, o, n) => {
|
|
5045
|
+
if (no().indexOf(t.path) !== -1) {
|
|
5046
|
+
n();
|
|
5044
5047
|
return;
|
|
5045
5048
|
}
|
|
5046
5049
|
if (la()) {
|
|
5047
|
-
|
|
5050
|
+
n();
|
|
5048
5051
|
return;
|
|
5049
5052
|
}
|
|
5050
5053
|
const l = N(D);
|
|
5051
5054
|
await l.info();
|
|
5052
|
-
const s = await l.loadRemoteRoutes(), a = Wa(s), u =
|
|
5053
|
-
const p = ut(
|
|
5055
|
+
const s = await l.loadRemoteRoutes(), a = Wa(s), u = uo(ge()), d = a.map((m) => {
|
|
5056
|
+
const p = ut(m.routes, u);
|
|
5054
5057
|
return {
|
|
5055
|
-
...
|
|
5058
|
+
...m,
|
|
5056
5059
|
routes: p
|
|
5057
5060
|
};
|
|
5058
|
-
}).filter((
|
|
5059
|
-
d.forEach((
|
|
5060
|
-
|
|
5061
|
+
}).filter((m) => m.routes.length > 0);
|
|
5062
|
+
d.forEach((m) => {
|
|
5063
|
+
m.routes.forEach((p) => {
|
|
5061
5064
|
e.addRoute({
|
|
5062
5065
|
path: "/",
|
|
5063
|
-
component:
|
|
5066
|
+
component: oo,
|
|
5064
5067
|
children: [p]
|
|
5065
5068
|
});
|
|
5066
5069
|
});
|
|
5067
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t),
|
|
5070
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), n();
|
|
5068
5071
|
});
|
|
5069
5072
|
}
|
|
5070
|
-
function
|
|
5071
|
-
e.beforeEach(async (t,
|
|
5073
|
+
function ni(e) {
|
|
5074
|
+
e.beforeEach(async (t, o, n) => {
|
|
5072
5075
|
const s = [V(D).title || ""], a = t.matched.length;
|
|
5073
5076
|
for (let u = a; u > a - 3; u--) {
|
|
5074
5077
|
const d = t.matched[u - 1];
|
|
5075
5078
|
d?.meta?.title && s.push(d.meta.title + "");
|
|
5076
5079
|
}
|
|
5077
|
-
s.length > 1 && (document.title = s.reverse().join("-")),
|
|
5078
|
-
}), e.afterEach(async (t,
|
|
5080
|
+
s.length > 1 && (document.title = s.reverse().join("-")), n();
|
|
5081
|
+
}), e.afterEach(async (t, o, n) => {
|
|
5079
5082
|
const l = Y(D);
|
|
5080
5083
|
Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
|
|
5081
5084
|
});
|
|
5082
5085
|
}
|
|
5083
5086
|
function li(e) {
|
|
5084
|
-
ca(e),
|
|
5087
|
+
ca(e), na(e), oi(e), ni(e);
|
|
5085
5088
|
}
|
|
5086
5089
|
li(le);
|
|
5087
5090
|
function si() {
|
|
@@ -5091,7 +5094,7 @@ function ai() {
|
|
|
5091
5094
|
return N(D).expired;
|
|
5092
5095
|
}
|
|
5093
5096
|
function Ct(e) {
|
|
5094
|
-
|
|
5097
|
+
Xn({
|
|
5095
5098
|
message: e,
|
|
5096
5099
|
type: "error",
|
|
5097
5100
|
duration: 5 * 1e3,
|
|
@@ -5107,7 +5110,7 @@ const ii = {
|
|
|
5107
5110
|
}, ri = {
|
|
5108
5111
|
onFulfilled(e) {
|
|
5109
5112
|
if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
|
|
5110
|
-
const
|
|
5113
|
+
const n = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
|
|
5111
5114
|
if (e.data.code === 401) {
|
|
5112
5115
|
if (ai())
|
|
5113
5116
|
return;
|
|
@@ -5122,17 +5125,17 @@ const ii = {
|
|
|
5122
5125
|
});
|
|
5123
5126
|
return;
|
|
5124
5127
|
} else
|
|
5125
|
-
Ct(
|
|
5126
|
-
return Promise.reject(
|
|
5128
|
+
Ct(n);
|
|
5129
|
+
return Promise.reject(n);
|
|
5127
5130
|
}
|
|
5128
|
-
let
|
|
5129
|
-
return
|
|
5131
|
+
let o = e.data?.data?._message_box;
|
|
5132
|
+
return o !== void 0 && (Ze(o) && (o = {
|
|
5130
5133
|
message: e.data?.data?._message_box
|
|
5131
5134
|
}), wt({
|
|
5132
5135
|
title: "提示",
|
|
5133
5136
|
type: "success",
|
|
5134
5137
|
grouping: !0,
|
|
5135
|
-
...
|
|
5138
|
+
...o
|
|
5136
5139
|
})), e.data;
|
|
5137
5140
|
},
|
|
5138
5141
|
onRejected(e) {
|
|
@@ -5140,7 +5143,7 @@ const ii = {
|
|
|
5140
5143
|
}
|
|
5141
5144
|
}, ci = [
|
|
5142
5145
|
{
|
|
5143
|
-
request:
|
|
5146
|
+
request: Yn,
|
|
5144
5147
|
response: el
|
|
5145
5148
|
},
|
|
5146
5149
|
{
|
|
@@ -5149,27 +5152,27 @@ const ii = {
|
|
|
5149
5152
|
}
|
|
5150
5153
|
];
|
|
5151
5154
|
function dt(e = {}) {
|
|
5152
|
-
const t = Re.axios || {},
|
|
5153
|
-
...
|
|
5155
|
+
const t = Re.axios || {}, o = q(t, e || {}), n = Ye.create({
|
|
5156
|
+
...o
|
|
5154
5157
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5155
5158
|
});
|
|
5156
5159
|
return ci.forEach((l) => {
|
|
5157
|
-
|
|
5158
|
-
}),
|
|
5160
|
+
n.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), n.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
|
|
5161
|
+
}), n;
|
|
5159
5162
|
}
|
|
5160
|
-
const
|
|
5163
|
+
const po = dt(), ui = {
|
|
5161
5164
|
beforeMount(e, t) {
|
|
5162
|
-
e.clickOutsideEvent = function(
|
|
5163
|
-
e ===
|
|
5165
|
+
e.clickOutsideEvent = function(o) {
|
|
5166
|
+
e === o.target || e.contains(o.target) || t.value(o, e);
|
|
5164
5167
|
}, document.body.addEventListener("click", e.clickOutsideEvent);
|
|
5165
5168
|
},
|
|
5166
5169
|
unmounted(e) {
|
|
5167
5170
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5168
5171
|
}
|
|
5169
|
-
}, se =
|
|
5172
|
+
}, se = En(), di = {
|
|
5170
5173
|
mounted: (e, t) => {
|
|
5171
|
-
e !== null && (t.value, e.oncontextmenu = (
|
|
5172
|
-
|
|
5174
|
+
e !== null && (t.value, e.oncontextmenu = (o) => {
|
|
5175
|
+
o.preventDefault(), o.stopPropagation(), o.cancelBubble = !0, t.value && se.emit("right-click", { event: o, data: t.value });
|
|
5173
5176
|
});
|
|
5174
5177
|
}
|
|
5175
5178
|
}, pi = {
|
|
@@ -5177,96 +5180,96 @@ const pn = dt(), ui = {
|
|
|
5177
5180
|
}
|
|
5178
5181
|
};
|
|
5179
5182
|
function Tt(e, t) {
|
|
5180
|
-
let
|
|
5181
|
-
for (;
|
|
5182
|
-
|
|
5183
|
-
return
|
|
5183
|
+
let o = e[`offset${t}`], n = e.offsetParent;
|
|
5184
|
+
for (; n; )
|
|
5185
|
+
o += n[`offset${t}`], n = n.offsetParent;
|
|
5186
|
+
return o;
|
|
5184
5187
|
}
|
|
5185
|
-
const
|
|
5188
|
+
const mi = {
|
|
5186
5189
|
mounted: (e, t) => {
|
|
5187
5190
|
if (e === null || !t.value.dev)
|
|
5188
5191
|
return;
|
|
5189
|
-
let
|
|
5192
|
+
let o = e;
|
|
5190
5193
|
if (t.value.parent)
|
|
5191
5194
|
for (let d = 0; d < t.value.parent; d++)
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
const
|
|
5195
|
-
|
|
5196
|
-
|
|
5195
|
+
o.parentElement && (o = o.parentElement);
|
|
5196
|
+
o.classList.add("devtool-hover");
|
|
5197
|
+
const n = document.createElement("i");
|
|
5198
|
+
n.className = "devtool-item-wrapper", o.onmouseover = () => {
|
|
5199
|
+
n.style.height = o.offsetHeight + 30 + "px", n.style.width = o.offsetWidth + 30 + "px", n.style.top = Tt(o, "Top") - 15 + "px", n.style.left = Tt(o, "Left") - 15 + "px";
|
|
5197
5200
|
};
|
|
5198
5201
|
const l = document.createElement("span");
|
|
5199
5202
|
l.className = "dev-action-edit", l.title = "编辑";
|
|
5200
5203
|
const s = document.createElement("i");
|
|
5201
5204
|
s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (d) => {
|
|
5202
5205
|
se.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
|
|
5203
|
-
},
|
|
5206
|
+
}, n.appendChild(l);
|
|
5204
5207
|
const a = document.createElement("span");
|
|
5205
5208
|
a.className = "dev-action-del", a.title = "删除";
|
|
5206
5209
|
const u = document.createElement("i");
|
|
5207
5210
|
u.className = "iconfont ra-cut", a.appendChild(u), a.onclick = (d) => {
|
|
5208
5211
|
se.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5209
|
-
},
|
|
5212
|
+
}, n.appendChild(a), o.insertBefore(n, o.firstChild);
|
|
5210
5213
|
}
|
|
5211
|
-
},
|
|
5214
|
+
}, fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5212
5215
|
__proto__: null,
|
|
5213
|
-
devtool:
|
|
5216
|
+
devtool: mi,
|
|
5214
5217
|
outClick: ui,
|
|
5215
5218
|
resize: pi,
|
|
5216
5219
|
rightClick: di
|
|
5217
5220
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5218
5221
|
let Ie;
|
|
5219
|
-
const
|
|
5222
|
+
const mo = [], Ot = /* @__PURE__ */ new Set(), $t = (e) => typeof e.name == "string" ? e.name : e.path;
|
|
5220
5223
|
function Or(e) {
|
|
5221
5224
|
return e ? dt(q(Re.axios, e)) : Ie;
|
|
5222
5225
|
}
|
|
5223
5226
|
function $r(e) {
|
|
5224
|
-
const t = q(Re, e),
|
|
5225
|
-
l.unshift(
|
|
5226
|
-
gi(
|
|
5227
|
-
}), t?.mock &&
|
|
5227
|
+
const t = q(Re, e), o = Po(Fn), n = ki(t), l = t.plugins || [];
|
|
5228
|
+
l.unshift(n), l.forEach((d) => {
|
|
5229
|
+
gi(o, d);
|
|
5230
|
+
}), t?.mock && Qn(), Ie = dt(t.axios), Vn(o);
|
|
5228
5231
|
const s = Y(D), a = V(D), u = N(D);
|
|
5229
|
-
|
|
5232
|
+
Pn(Ie), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), o.config.globalProperties.$http = Ie, o.config.globalProperties.$router = le, window.App = o, window.OmsOptions = t, Sn(() => ({
|
|
5230
5233
|
"X-Token": ge()
|
|
5231
5234
|
})), ue(() => u.token, () => {
|
|
5232
|
-
|
|
5233
|
-
}, { immediate: !0 }), le.isReady().then(() =>
|
|
5235
|
+
fo();
|
|
5236
|
+
}, { immediate: !0 }), le.isReady().then(() => o.mount("#app"));
|
|
5234
5237
|
}
|
|
5235
5238
|
function hi(e, t = {}) {
|
|
5236
|
-
Object.keys(t).forEach((
|
|
5237
|
-
e.component(
|
|
5239
|
+
Object.keys(t).forEach((o) => {
|
|
5240
|
+
e.component(o, t[o]);
|
|
5238
5241
|
});
|
|
5239
5242
|
}
|
|
5240
|
-
function
|
|
5241
|
-
const e =
|
|
5243
|
+
function fo() {
|
|
5244
|
+
const e = uo(ge()), t = ut(mo, e), o = N(D), n = new Set(o.customRouter.map((s) => $t(s))), l = t.filter((s) => {
|
|
5242
5245
|
const a = $t(s);
|
|
5243
|
-
return Ot.has(a) ||
|
|
5246
|
+
return Ot.has(a) || n.has(a) ? !1 : (Ot.add(a), !0);
|
|
5244
5247
|
});
|
|
5245
5248
|
l.forEach((s) => {
|
|
5246
5249
|
le.addRoute(s);
|
|
5247
|
-
}), l.length &&
|
|
5250
|
+
}), l.length && o.setCustomRoutes(l);
|
|
5248
5251
|
}
|
|
5249
5252
|
function bi(e = []) {
|
|
5250
|
-
|
|
5253
|
+
mo.push(...e), fo();
|
|
5251
5254
|
}
|
|
5252
5255
|
function yi(e, t) {
|
|
5253
|
-
t.forEach((
|
|
5254
|
-
ce(
|
|
5256
|
+
t.forEach((o) => {
|
|
5257
|
+
ce(o) && (o = [o]), e.use(...o);
|
|
5255
5258
|
});
|
|
5256
5259
|
}
|
|
5257
5260
|
function _i(e, t = {}) {
|
|
5258
|
-
Object.keys(t).forEach((
|
|
5259
|
-
e.directive(
|
|
5261
|
+
Object.keys(t).forEach((o) => {
|
|
5262
|
+
e.directive(o, t[o]);
|
|
5260
5263
|
});
|
|
5261
5264
|
}
|
|
5262
5265
|
function vi(e = {}) {
|
|
5263
5266
|
const t = ["app", "settings", "user"];
|
|
5264
|
-
Object.keys(e).forEach((
|
|
5265
|
-
if (t.indexOf(
|
|
5266
|
-
console.warn(`storeModule name [${
|
|
5267
|
+
Object.keys(e).forEach((o) => {
|
|
5268
|
+
if (t.indexOf(o) !== -1) {
|
|
5269
|
+
console.warn(`storeModule name [${o}] is use by base, please change it!`);
|
|
5267
5270
|
return;
|
|
5268
5271
|
}
|
|
5269
|
-
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:",
|
|
5272
|
+
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", o);
|
|
5270
5273
|
});
|
|
5271
5274
|
}
|
|
5272
5275
|
function gi(e, t) {
|
|
@@ -5274,27 +5277,27 @@ function gi(e, t) {
|
|
|
5274
5277
|
}
|
|
5275
5278
|
function ki(e) {
|
|
5276
5279
|
return {
|
|
5277
|
-
components: { VIcon:
|
|
5278
|
-
directives:
|
|
5280
|
+
components: { VIcon: xn },
|
|
5281
|
+
directives: fi,
|
|
5279
5282
|
use: [
|
|
5280
5283
|
le,
|
|
5281
|
-
[
|
|
5284
|
+
[Jo, { locale: Mt, ...e.settings?.ElementPlus }]
|
|
5282
5285
|
]
|
|
5283
5286
|
};
|
|
5284
5287
|
}
|
|
5285
5288
|
export {
|
|
5286
|
-
|
|
5289
|
+
lo as BaseSso,
|
|
5287
5290
|
qe as Container,
|
|
5288
5291
|
Cr as DingTalk,
|
|
5289
5292
|
Ir as Github,
|
|
5290
|
-
|
|
5293
|
+
oo as Layout,
|
|
5291
5294
|
F as MenuType,
|
|
5292
|
-
|
|
5295
|
+
Xn as Message,
|
|
5293
5296
|
wt as MessageBox,
|
|
5294
5297
|
J as PageType,
|
|
5295
5298
|
ia as allSso,
|
|
5296
|
-
|
|
5297
|
-
|
|
5299
|
+
jn as appState,
|
|
5300
|
+
Nn as builderSchemaState,
|
|
5298
5301
|
$r as createAdmin,
|
|
5299
5302
|
se as eventBus,
|
|
5300
5303
|
tl as getCmp,
|
|
@@ -5304,11 +5307,11 @@ export {
|
|
|
5304
5307
|
D as pinia,
|
|
5305
5308
|
Tr as regViews,
|
|
5306
5309
|
Er as setCmp,
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
+
Pn as setHttp,
|
|
5311
|
+
Mn as settings,
|
|
5312
|
+
Vn as setupStore,
|
|
5310
5313
|
Wa as transRemoteModules,
|
|
5311
|
-
|
|
5314
|
+
ns as useAestheticMode,
|
|
5312
5315
|
Y as useAppStore,
|
|
5313
5316
|
xr as useBuilderSchemaStore,
|
|
5314
5317
|
Or as useHttp,
|