@okiss/oms 0.0.78 → 0.0.79
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 +828 -774
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as $, watch as
|
|
2
|
-
import { normalizeTheme as de, applyDocumentTheme as
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { ref as $, watch as tn, computed as w, defineComponent as z, onBeforeMount as Ue, provide as nn, resolveComponent as A, createBlock as h, openBlock as i, createVNode as u, createTextVNode as T, withCtx as c, TransitionGroup as on, createElementBlock as b, Fragment as O, renderList as j, toDisplayString as M, normalizeClass as Q, renderSlot as pe, createCommentVNode as B, mergeProps as X, toRefs as ln, unref as m, isRef as qe, onMounted as xe, normalizeStyle as sn, createElementVNode as v, withKeys as st, withModifiers as at, resolveDynamicComponent as He, Transition as an, normalizeProps as Z, guardReactiveProps as re, withDirectives as _e, vModelText as $e, onUnmounted as rn, resolveDirective as cn, getCurrentInstance as un, h as pn, toRaw as dn, createApp as fn } from "vue";
|
|
2
|
+
import { normalizeTheme as de, applyDocumentTheme as mn, dispatchThemeChange as hn, addNewStyle as bn, addNewStyleTag as yn, queryParams as _n, logGroup as vn, compactObject as bt, showEleByClassName as yt, waterMarker as gn, Cache as ve, isExternal as it, getQueryParam as _t, createIFrame as kn, strVarReplace as ae, obj2Param as Sn, isObject as ie, isString as Fe, effectDataTrans as wn, isArray as vt } from "@okiss/utils";
|
|
3
|
+
import { defineStore as Ee, createPinia as xn } from "pinia";
|
|
4
4
|
import W from "js-cookie";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
5
|
+
import gt from "element-plus/es/locale/lang/zh-cn";
|
|
6
|
+
import En, { cloneDeep as x, merge as q, get as fe, unset as kt, isObject as In } from "lodash";
|
|
7
|
+
import Be from "mockjs";
|
|
8
|
+
import Ge from "axios";
|
|
9
|
+
import Cn, { ElMessageBox as St, ElMessage as Tn, ElCol as $n, ElRow as Bn, ElCard as On } from "element-plus";
|
|
10
10
|
import "element-plus/dist/index.css";
|
|
11
11
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
12
12
|
import "dayjs/locale/zh-cn";
|
|
13
|
-
import { useRoute as Y, useRouter as
|
|
14
|
-
import { ElBreadcrumb as
|
|
13
|
+
import { useRoute as Y, useRouter as Ie, onBeforeRouteLeave as Pn, createRouter as An, createWebHashHistory as Rn, onBeforeRouteUpdate as Ln } from "vue-router";
|
|
14
|
+
import { ElBreadcrumb as Mn, ElBreadcrumbItem as Dn, ElContainer as jn, ElRow as he, ElMain as Nn, ElAside as Vn, ElForm as wt, ElFormItem as xt, ElSelect as ze, ElOption as Je, ElDivider as Et, ElButton as we, ElCol as Ce, ElDrawer as It, ElTooltip as Un, ElIcon as qn, ElDropdown as Hn, ElDropdownMenu as Fn, ElDropdownItem as Gn, ElMenuItem as zn, ElSubMenu as Jn, ElOptionGroup as Kn, ElScrollbar as Wn, ElMenu as Qn, ElBacktop as Xn, ElMessage as Zn, ElAlert as Ke, ElCard as We, ElTree as Yn } 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";
|
|
@@ -23,7 +23,7 @@ import "element-plus/es/components/icon/style/css";
|
|
|
23
23
|
import "element-plus/es/components/col/style/css";
|
|
24
24
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
25
25
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
26
|
-
import * as
|
|
26
|
+
import * as eo from "path-to-regexp";
|
|
27
27
|
import "element-plus/es/components/form/style/css";
|
|
28
28
|
import "element-plus/es/components/form-item/style/css";
|
|
29
29
|
import "element-plus/es/components/select/style/css";
|
|
@@ -33,25 +33,25 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
33
|
import "element-plus/es/components/container/style/css";
|
|
34
34
|
import "element-plus/es/components/aside/style/css";
|
|
35
35
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import { JsonView as
|
|
36
|
+
import { JsonView as Qe, VBtn as Xe, VForm as te, VTable as me, VChart as to, setUploadHeaderHandle as no, VIcon as oo } from "@okiss/vbtf";
|
|
37
37
|
import "normalize.css/normalize.css";
|
|
38
38
|
import "@okiss/vbtf/style.css";
|
|
39
|
-
import
|
|
40
|
-
import { Moon as
|
|
39
|
+
import lo from "mitt";
|
|
40
|
+
import { Moon as so, Sunny as ao } from "@element-plus/icons-vue";
|
|
41
41
|
import "element-plus/es/components/scrollbar/style/css";
|
|
42
42
|
import "element-plus/es/components/menu/style/css";
|
|
43
43
|
import "element-plus/es/components/sub-menu/style/css";
|
|
44
44
|
import "element-plus/es/components/menu-item/style/css";
|
|
45
45
|
import "element-plus/es/components/option-group/style/css";
|
|
46
46
|
import "element-plus/es/components/backtop/style/css";
|
|
47
|
-
import { useEventListener as
|
|
47
|
+
import { useEventListener as io } from "@vueuse/core";
|
|
48
48
|
import "element-plus/es/components/alert/style/css";
|
|
49
49
|
import "element-plus/es/components/card/style/css";
|
|
50
50
|
import "element-plus/es/components/tree/style/css";
|
|
51
|
-
import
|
|
52
|
-
import
|
|
51
|
+
import ro from "vue3-markdown-it";
|
|
52
|
+
import co from "crypto-js";
|
|
53
53
|
import "element-plus/es/components/message/style/css";
|
|
54
|
-
import
|
|
54
|
+
import Me from "nprogress";
|
|
55
55
|
import "nprogress/nprogress.css";
|
|
56
56
|
String.prototype.format || (String.prototype.format = function() {
|
|
57
57
|
const e = arguments;
|
|
@@ -59,29 +59,29 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
59
59
|
return typeof e[n] < "u" ? e[n] : t;
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
|
-
const
|
|
63
|
-
function
|
|
64
|
-
return W.get(
|
|
62
|
+
const Ze = "oms:token";
|
|
63
|
+
function be() {
|
|
64
|
+
return W.get(Ze) || "";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const t = V(
|
|
68
|
-
return W.set(
|
|
66
|
+
function uo(e) {
|
|
67
|
+
const t = V(R), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
|
|
68
|
+
return W.set(Ze, e, { expires: n });
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return W.remove(
|
|
70
|
+
function Ct() {
|
|
71
|
+
return W.remove(Ze);
|
|
72
72
|
}
|
|
73
|
-
let
|
|
74
|
-
function
|
|
75
|
-
|
|
73
|
+
let Tt = null;
|
|
74
|
+
function po(e) {
|
|
75
|
+
Tt = e;
|
|
76
76
|
}
|
|
77
77
|
function Oe() {
|
|
78
|
-
return
|
|
78
|
+
return Tt;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const fo = {
|
|
81
81
|
baseURL: "/api",
|
|
82
82
|
withCredentials: !0,
|
|
83
83
|
cacheEnable: !0
|
|
84
|
-
},
|
|
84
|
+
}, $t = {
|
|
85
85
|
title: "oms",
|
|
86
86
|
fixedHeader: !1,
|
|
87
87
|
sidebarLogo: !0,
|
|
@@ -95,7 +95,7 @@ const ro = {
|
|
|
95
95
|
ElementPlus: {
|
|
96
96
|
size: "default",
|
|
97
97
|
zIndex: 3e3,
|
|
98
|
-
locale:
|
|
98
|
+
locale: gt
|
|
99
99
|
},
|
|
100
100
|
nav: [],
|
|
101
101
|
whiteRoutes: ["/login"],
|
|
@@ -109,23 +109,23 @@ const ro = {
|
|
|
109
109
|
formMutex: !0,
|
|
110
110
|
captcha: !0,
|
|
111
111
|
themeMode: "light"
|
|
112
|
-
},
|
|
113
|
-
axios:
|
|
114
|
-
settings:
|
|
112
|
+
}, Te = {
|
|
113
|
+
axios: fo,
|
|
114
|
+
settings: $t,
|
|
115
115
|
plugins: [],
|
|
116
116
|
mock: !1
|
|
117
|
-
},
|
|
118
|
-
state: () => ({ ...
|
|
117
|
+
}, mo = x($t), V = Ee("settings", {
|
|
118
|
+
state: () => ({ ...mo }),
|
|
119
119
|
actions: {
|
|
120
120
|
updateSettings(e) {
|
|
121
|
-
|
|
121
|
+
q(this, e);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
124
|
+
}), rt = {
|
|
125
125
|
name: "",
|
|
126
126
|
nickname: "",
|
|
127
127
|
avatar: "",
|
|
128
|
-
token:
|
|
128
|
+
token: be(),
|
|
129
129
|
customRouter: [],
|
|
130
130
|
remoteRouter: [],
|
|
131
131
|
menuRoutes: [],
|
|
@@ -135,14 +135,14 @@ const ro = {
|
|
|
135
135
|
path: "",
|
|
136
136
|
env: "",
|
|
137
137
|
expired: !1
|
|
138
|
-
}, N =
|
|
139
|
-
state: () => ({ ...
|
|
138
|
+
}, N = Ee("user", {
|
|
139
|
+
state: () => ({ ...rt }),
|
|
140
140
|
actions: {
|
|
141
141
|
updateToken(e) {
|
|
142
|
-
this.token = e,
|
|
142
|
+
this.token = e, uo(e);
|
|
143
143
|
},
|
|
144
144
|
removeToken() {
|
|
145
|
-
this.token = "",
|
|
145
|
+
this.token = "", Ct();
|
|
146
146
|
},
|
|
147
147
|
updateRemoteRouter(e) {
|
|
148
148
|
this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
|
|
@@ -154,7 +154,7 @@ const ro = {
|
|
|
154
154
|
this[e] = t;
|
|
155
155
|
},
|
|
156
156
|
resetUser() {
|
|
157
|
-
const e = { ...
|
|
157
|
+
const e = { ...rt, token: be() };
|
|
158
158
|
Object.assign(this, e);
|
|
159
159
|
},
|
|
160
160
|
SET_EXPIRED() {
|
|
@@ -218,7 +218,7 @@ const ro = {
|
|
|
218
218
|
this.SET_EXPIRED();
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
}),
|
|
221
|
+
}), ho = {
|
|
222
222
|
sidebar: {
|
|
223
223
|
opened: W.get("sidebarStatus") ? !!W.get("sidebarStatus") : !0,
|
|
224
224
|
withoutAnimation: !1
|
|
@@ -228,8 +228,8 @@ const ro = {
|
|
|
228
228
|
currentRouteMeta: {},
|
|
229
229
|
builderSchema: {},
|
|
230
230
|
baseURL: ""
|
|
231
|
-
}, ee =
|
|
232
|
-
state: () => ({ ...
|
|
231
|
+
}, ee = Ee("app", {
|
|
232
|
+
state: () => ({ ...ho }),
|
|
233
233
|
actions: {
|
|
234
234
|
TOGGLE_SIDEBAR() {
|
|
235
235
|
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, W.set("sidebarStatus", this.sidebar.opened ? "1" : "0");
|
|
@@ -275,11 +275,11 @@ const ro = {
|
|
|
275
275
|
this.SET_BASE_API(e);
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), bo = {
|
|
279
279
|
currentCellItem: {}
|
|
280
280
|
// form/sub-form 当前单元格编辑数据
|
|
281
|
-
},
|
|
282
|
-
state: () => ({ ...
|
|
281
|
+
}, Hi = Ee("builderSchema", {
|
|
282
|
+
state: () => ({ ...bo }),
|
|
283
283
|
actions: {
|
|
284
284
|
SET_CURRENT_CELLITEM(e) {
|
|
285
285
|
this.currentCellItem = e;
|
|
@@ -288,58 +288,58 @@ const ro = {
|
|
|
288
288
|
this.SET_CURRENT_CELLITEM(e);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
}),
|
|
292
|
-
function
|
|
293
|
-
e.use(
|
|
291
|
+
}), R = xn();
|
|
292
|
+
function yo(e) {
|
|
293
|
+
e.use(R);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
295
|
+
const Bt = "oms-theme", Ot = $("light");
|
|
296
|
+
let ct = !1, ge = null;
|
|
297
|
+
function _o(e) {
|
|
298
298
|
const t = de(e ?? void 0);
|
|
299
299
|
if (typeof window > "u")
|
|
300
300
|
return t;
|
|
301
|
-
const n = window.localStorage?.getItem(
|
|
301
|
+
const n = window.localStorage?.getItem(Bt);
|
|
302
302
|
return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
typeof window < "u" && window.localStorage?.setItem(
|
|
304
|
+
function vo(e) {
|
|
305
|
+
typeof window < "u" && window.localStorage?.setItem(Bt, e);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Pe(e) {
|
|
308
308
|
const t = de(e);
|
|
309
|
-
|
|
309
|
+
Ot.value = t, mn(t), hn(t), vo(t);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function go(e) {
|
|
312
312
|
if (typeof window > "u" || typeof window.matchMedia != "function") {
|
|
313
|
-
|
|
313
|
+
ge = null;
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
|
|
317
317
|
const l = o.matches ?? t.matches;
|
|
318
318
|
e(l ? "dark" : "light");
|
|
319
319
|
};
|
|
320
|
-
typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n),
|
|
321
|
-
typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n),
|
|
320
|
+
typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), ge = () => {
|
|
321
|
+
typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), ge = null;
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Pt() {
|
|
325
325
|
const e = V(), t = (s) => {
|
|
326
326
|
const a = de(s);
|
|
327
|
-
e.themeMode !== a ? e.updateSettings({ themeMode: a }) :
|
|
327
|
+
e.themeMode !== a ? e.updateSettings({ themeMode: a }) : Pe(a);
|
|
328
328
|
};
|
|
329
|
-
if (!
|
|
330
|
-
|
|
331
|
-
const s =
|
|
332
|
-
de(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) :
|
|
329
|
+
if (!ct) {
|
|
330
|
+
ct = !0;
|
|
331
|
+
const s = _o(e.themeMode);
|
|
332
|
+
de(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Pe(s), tn(
|
|
333
333
|
() => e.themeMode,
|
|
334
334
|
(a) => {
|
|
335
|
-
|
|
335
|
+
Pe(de(a));
|
|
336
336
|
},
|
|
337
337
|
{ immediate: !0 }
|
|
338
|
-
),
|
|
338
|
+
), ge?.(), go((a) => {
|
|
339
339
|
t(a);
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
-
const n =
|
|
342
|
+
const n = w(() => Ot.value), o = w(() => n.value === "dark");
|
|
343
343
|
return {
|
|
344
344
|
themeMode: n,
|
|
345
345
|
isDark: o,
|
|
@@ -349,25 +349,25 @@ function Ot() {
|
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
const
|
|
352
|
+
const ko = /* @__PURE__ */ z({
|
|
353
353
|
__name: "App",
|
|
354
354
|
setup(e) {
|
|
355
|
-
return
|
|
355
|
+
return Pt(), Ue(() => {
|
|
356
356
|
const t = document.getElementById("preloader");
|
|
357
|
-
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(),
|
|
357
|
+
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), bn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), yn(`.iconfont {
|
|
358
358
|
font-size: 19px;
|
|
359
359
|
font-style: normal;
|
|
360
360
|
-webkit-font-smoothing: antialiased;
|
|
361
361
|
font-family: iconfont !important;
|
|
362
362
|
}`));
|
|
363
|
-
}), window?.OmsOptions?.form?.vsPath &&
|
|
363
|
+
}), window?.OmsOptions?.form?.vsPath && nn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
|
|
364
364
|
const o = A("router-view");
|
|
365
365
|
return i(), h(o);
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
369
|
var ce = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ce || {});
|
|
370
|
-
const
|
|
370
|
+
const So = [
|
|
371
371
|
{
|
|
372
372
|
type: "jump",
|
|
373
373
|
text: "跳转",
|
|
@@ -424,9 +424,9 @@ const _o = [
|
|
|
424
424
|
}
|
|
425
425
|
];
|
|
426
426
|
[
|
|
427
|
-
...
|
|
427
|
+
...En.cloneDeep(So)
|
|
428
428
|
];
|
|
429
|
-
const
|
|
429
|
+
const wo = {
|
|
430
430
|
code: 0,
|
|
431
431
|
data: {
|
|
432
432
|
"list|0-100": [
|
|
@@ -447,7 +447,7 @@ const vo = {
|
|
|
447
447
|
"page|1-5": 2
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
},
|
|
450
|
+
}, xo = { listMock: wo }, Eo = [
|
|
451
451
|
{
|
|
452
452
|
method: ce.POST,
|
|
453
453
|
url: "/login",
|
|
@@ -491,32 +491,32 @@ const vo = {
|
|
|
491
491
|
{
|
|
492
492
|
url: "/user/list",
|
|
493
493
|
method: ce.GET,
|
|
494
|
-
response: (e) =>
|
|
494
|
+
response: (e) => xo.listMock
|
|
495
495
|
}
|
|
496
|
-
],
|
|
497
|
-
...
|
|
498
|
-
],
|
|
499
|
-
function
|
|
496
|
+
], Io = [
|
|
497
|
+
...Eo
|
|
498
|
+
], De = {};
|
|
499
|
+
function At(e) {
|
|
500
500
|
e.forEach((t) => {
|
|
501
|
-
const n =
|
|
502
|
-
|
|
501
|
+
const n = Rt(t);
|
|
502
|
+
De[`${t.method}::${n}`] = t;
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
|
-
|
|
506
|
-
function
|
|
507
|
-
let t = e.url, n = e.baseURL ||
|
|
505
|
+
At(Io);
|
|
506
|
+
function Rt(e) {
|
|
507
|
+
let t = e.url, n = e.baseURL || Te.axios?.baseURL;
|
|
508
508
|
return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
Object.keys(
|
|
512
|
-
const t =
|
|
513
|
-
|
|
514
|
-
const { url: l, type: s, body: a } = o, r =
|
|
515
|
-
return
|
|
510
|
+
function Co() {
|
|
511
|
+
Object.keys(De).forEach((e) => {
|
|
512
|
+
const t = De[e], n = Rt(t);
|
|
513
|
+
Be.mock(n, t.method, function(o) {
|
|
514
|
+
const { url: l, type: s, body: a } = o, r = _n(l), p = a ? JSON.parse(a) : {}, d = t.response({ query: r, data: p }), f = Be.mock(d);
|
|
515
|
+
return vn(l, { type: s, query: r, data: p, response: f }), Be.mock(f);
|
|
516
516
|
});
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
-
const
|
|
519
|
+
const To = Tn, ut = St, $o = Ge.CancelToken, ke = {
|
|
520
520
|
taskList: {},
|
|
521
521
|
cacheList: /* @__PURE__ */ new Map(),
|
|
522
522
|
uniqueId(e) {
|
|
@@ -552,36 +552,36 @@ const xo = xn, ct = gt, Eo = Fe.CancelToken, ge = {
|
|
|
552
552
|
const t = this.uniqueId(e);
|
|
553
553
|
return this.cacheList.delete(t);
|
|
554
554
|
}
|
|
555
|
-
},
|
|
555
|
+
}, Bo = {
|
|
556
556
|
onFulfilled: function(e) {
|
|
557
|
-
return e.cacheEnable === !1 || (
|
|
558
|
-
|
|
557
|
+
return e.cacheEnable === !1 || (ke.pending(e) && ke.delTask(e), e.cancelToken = new $o((t) => {
|
|
558
|
+
ke.addTask(e, t);
|
|
559
559
|
})), e;
|
|
560
560
|
},
|
|
561
561
|
onRejected(e) {
|
|
562
562
|
return Promise.reject(e);
|
|
563
563
|
}
|
|
564
|
-
},
|
|
564
|
+
}, Oo = {
|
|
565
565
|
onFulfilled: function(e) {
|
|
566
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
566
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ke.addCache(e.config, e.data), e;
|
|
567
567
|
},
|
|
568
568
|
onRejected(e) {
|
|
569
569
|
return Promise.reject(e);
|
|
570
570
|
}
|
|
571
|
-
},
|
|
572
|
-
function
|
|
573
|
-
|
|
571
|
+
}, Lt = {};
|
|
572
|
+
function Fi(e, t) {
|
|
573
|
+
Lt[e] = t;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
575
|
+
function Po(e) {
|
|
576
|
+
return Lt[e];
|
|
577
577
|
}
|
|
578
|
-
const
|
|
578
|
+
const Ao = /* @__PURE__ */ z({
|
|
579
579
|
name: "Dashboard",
|
|
580
580
|
setup() {
|
|
581
|
-
const e =
|
|
581
|
+
const e = Po("dashboard");
|
|
582
582
|
if (e)
|
|
583
583
|
return () => u("span", null, [u(e, null, null)]);
|
|
584
|
-
const t =
|
|
584
|
+
const t = w(() => N().name);
|
|
585
585
|
return () => u("div", {
|
|
586
586
|
class: "dashboard-container"
|
|
587
587
|
}, [u("div", {
|
|
@@ -593,7 +593,7 @@ const $o = /* @__PURE__ */ z({
|
|
|
593
593
|
for (const [o, l] of t)
|
|
594
594
|
n[o] = l;
|
|
595
595
|
return n;
|
|
596
|
-
},
|
|
596
|
+
}, Ro = /* @__PURE__ */ P(Ao, [["__scopeId", "data-v-85165680"]]), Lo = {
|
|
597
597
|
data() {
|
|
598
598
|
return {
|
|
599
599
|
levelList: null
|
|
@@ -625,7 +625,7 @@ const $o = /* @__PURE__ */ z({
|
|
|
625
625
|
},
|
|
626
626
|
pathCompile(e) {
|
|
627
627
|
const { params: t } = this.$route;
|
|
628
|
-
return
|
|
628
|
+
return eo.compile(e)(t);
|
|
629
629
|
},
|
|
630
630
|
handleLink(e) {
|
|
631
631
|
const { redirect: t, path: n } = e;
|
|
@@ -636,27 +636,27 @@ const $o = /* @__PURE__ */ z({
|
|
|
636
636
|
this.$router.push(this.pathCompile(n));
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
},
|
|
639
|
+
}, Mo = {
|
|
640
640
|
key: 0,
|
|
641
641
|
class: "no-redirect"
|
|
642
|
-
},
|
|
643
|
-
function
|
|
644
|
-
const a =
|
|
642
|
+
}, Do = ["onClick"];
|
|
643
|
+
function jo(e, t, n, o, l, s) {
|
|
644
|
+
const a = Dn, r = Mn;
|
|
645
645
|
return i(), h(r, {
|
|
646
646
|
class: "app-breadcrumb",
|
|
647
647
|
separator: "/"
|
|
648
648
|
}, {
|
|
649
649
|
default: c(() => [
|
|
650
|
-
u(
|
|
650
|
+
u(on, { name: "breadcrumb" }, {
|
|
651
651
|
default: c(() => [
|
|
652
|
-
(i(!0), b(
|
|
652
|
+
(i(!0), b(O, null, j(l.levelList, (p, d) => (i(), h(a, {
|
|
653
653
|
key: p.path
|
|
654
654
|
}, {
|
|
655
655
|
default: c(() => [
|
|
656
|
-
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 ||
|
|
656
|
+
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === l.levelList.length - 1 ? (i(), b("span", Mo, M(p.meta.title), 1)) : (i(), b("a", {
|
|
657
657
|
key: 1,
|
|
658
|
-
onClick: (
|
|
659
|
-
}, M(p.meta.title), 9,
|
|
658
|
+
onClick: (f) => s.handleLink(p)
|
|
659
|
+
}, M(p.meta.title), 9, Do))
|
|
660
660
|
]),
|
|
661
661
|
_: 2
|
|
662
662
|
}, 1024))), 128))
|
|
@@ -667,7 +667,7 @@ function Lo(e, t, n, o, l, s) {
|
|
|
667
667
|
_: 1
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
|
-
const
|
|
670
|
+
const No = /* @__PURE__ */ P(Lo, [["render", jo], ["__scopeId", "data-v-fa74804e"]]), Vo = {
|
|
671
671
|
name: "Hamburger",
|
|
672
672
|
props: {
|
|
673
673
|
isActive: {
|
|
@@ -682,7 +682,7 @@ const Ro = /* @__PURE__ */ P(Bo, [["render", Lo], ["__scopeId", "data-v-fa74804e
|
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
|
-
function
|
|
685
|
+
function Uo(e, t, n, o, l, s) {
|
|
686
686
|
const a = A("v-icon");
|
|
687
687
|
return i(), b("div", {
|
|
688
688
|
style: { padding: "0 15px" },
|
|
@@ -694,9 +694,9 @@ function Do(e, t, n, o, l, s) {
|
|
|
694
694
|
}, null, 8, ["class"])
|
|
695
695
|
]);
|
|
696
696
|
}
|
|
697
|
-
const
|
|
698
|
-
function
|
|
699
|
-
const n = he, o =
|
|
697
|
+
const qo = /* @__PURE__ */ P(Vo, [["render", Uo]]), Ho = {};
|
|
698
|
+
function Fo(e, t) {
|
|
699
|
+
const n = he, o = Nn, l = Vn, s = jn;
|
|
700
700
|
return i(), h(s, { style: { width: "100%", height: "100%" } }, {
|
|
701
701
|
default: c(() => [
|
|
702
702
|
u(n, { class: "aside" }, {
|
|
@@ -728,7 +728,7 @@ function Vo(e, t) {
|
|
|
728
728
|
_: 3
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
|
-
const
|
|
731
|
+
const Mt = /* @__PURE__ */ P(Ho, [["render", Fo], ["__scopeId", "data-v-7c3d697b"]]), Go = {
|
|
732
732
|
type: "input",
|
|
733
733
|
name: "文本框",
|
|
734
734
|
default: {
|
|
@@ -796,7 +796,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
]
|
|
799
|
-
},
|
|
799
|
+
}, zo = {
|
|
800
800
|
type: "number",
|
|
801
801
|
name: "数字",
|
|
802
802
|
default: {
|
|
@@ -838,7 +838,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
]
|
|
841
|
-
},
|
|
841
|
+
}, Jo = {
|
|
842
842
|
type: "number-range",
|
|
843
843
|
name: "数字区间",
|
|
844
844
|
default: {
|
|
@@ -879,7 +879,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
]
|
|
882
|
-
},
|
|
882
|
+
}, Ko = {
|
|
883
883
|
type: "select",
|
|
884
884
|
name: "下拉框",
|
|
885
885
|
default: {
|
|
@@ -985,7 +985,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
985
985
|
const t = x(e);
|
|
986
986
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
987
987
|
}
|
|
988
|
-
},
|
|
988
|
+
}, Wo = {
|
|
989
989
|
type: "radio",
|
|
990
990
|
name: "单选框",
|
|
991
991
|
default: {
|
|
@@ -1031,7 +1031,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1031
1031
|
label: "默认值"
|
|
1032
1032
|
}
|
|
1033
1033
|
]
|
|
1034
|
-
},
|
|
1034
|
+
}, Qo = {
|
|
1035
1035
|
type: "switch",
|
|
1036
1036
|
name: "开关",
|
|
1037
1037
|
default: {
|
|
@@ -1087,7 +1087,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
]
|
|
1090
|
-
},
|
|
1090
|
+
}, Xo = {
|
|
1091
1091
|
type: "code",
|
|
1092
1092
|
name: "Code",
|
|
1093
1093
|
default: {
|
|
@@ -1107,7 +1107,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1107
1107
|
label: "字段key"
|
|
1108
1108
|
}
|
|
1109
1109
|
]
|
|
1110
|
-
},
|
|
1110
|
+
}, Zo = {
|
|
1111
1111
|
type: "json",
|
|
1112
1112
|
name: "json",
|
|
1113
1113
|
default: {
|
|
@@ -1127,7 +1127,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1127
1127
|
label: "字段key"
|
|
1128
1128
|
}
|
|
1129
1129
|
]
|
|
1130
|
-
},
|
|
1130
|
+
}, Yo = {
|
|
1131
1131
|
type: "upload",
|
|
1132
1132
|
name: "上传",
|
|
1133
1133
|
default: {
|
|
@@ -1147,7 +1147,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1147
1147
|
label: "字段key"
|
|
1148
1148
|
}
|
|
1149
1149
|
]
|
|
1150
|
-
},
|
|
1150
|
+
}, el = {
|
|
1151
1151
|
type: "template",
|
|
1152
1152
|
name: "自定义组件",
|
|
1153
1153
|
default: {
|
|
@@ -1167,7 +1167,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1167
1167
|
label: "字段key"
|
|
1168
1168
|
}
|
|
1169
1169
|
]
|
|
1170
|
-
},
|
|
1170
|
+
}, tl = {
|
|
1171
1171
|
type: "icon-select",
|
|
1172
1172
|
name: "图标选择器",
|
|
1173
1173
|
default: {
|
|
@@ -1187,7 +1187,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1187
1187
|
label: "字段key"
|
|
1188
1188
|
}
|
|
1189
1189
|
]
|
|
1190
|
-
},
|
|
1190
|
+
}, nl = {
|
|
1191
1191
|
type: "sub-form",
|
|
1192
1192
|
name: "子表单",
|
|
1193
1193
|
default: {
|
|
@@ -1255,7 +1255,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
]
|
|
1258
|
-
},
|
|
1258
|
+
}, ol = {
|
|
1259
1259
|
type: "checkbox",
|
|
1260
1260
|
name: "复选框",
|
|
1261
1261
|
default: {
|
|
@@ -1301,24 +1301,24 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
|
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
]
|
|
1304
|
-
},
|
|
1304
|
+
}, Dt = {};
|
|
1305
1305
|
function H(e) {
|
|
1306
|
-
|
|
1306
|
+
Dt[e.type] = e;
|
|
1307
1307
|
}
|
|
1308
|
-
H(qo);
|
|
1309
|
-
H(Fo);
|
|
1310
|
-
H(Uo);
|
|
1311
|
-
H(Ho);
|
|
1312
|
-
H(zo);
|
|
1313
|
-
H(Zo);
|
|
1314
1308
|
H(Go);
|
|
1315
|
-
H(Yo);
|
|
1316
1309
|
H(Ko);
|
|
1310
|
+
H(zo);
|
|
1317
1311
|
H(Jo);
|
|
1312
|
+
H(Qo);
|
|
1313
|
+
H(nl);
|
|
1318
1314
|
H(Wo);
|
|
1315
|
+
H(ol);
|
|
1319
1316
|
H(Xo);
|
|
1320
|
-
H(
|
|
1321
|
-
|
|
1317
|
+
H(Zo);
|
|
1318
|
+
H(Yo);
|
|
1319
|
+
H(tl);
|
|
1320
|
+
H(el);
|
|
1321
|
+
const je = Dt, ll = {
|
|
1322
1322
|
options: {
|
|
1323
1323
|
labelPosition: "top",
|
|
1324
1324
|
submitButton: !1,
|
|
@@ -1416,15 +1416,15 @@ const De = Rt, el = {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
]
|
|
1419
|
-
},
|
|
1419
|
+
}, Ae = {
|
|
1420
1420
|
labelPosition: "top",
|
|
1421
1421
|
submitButton: !1,
|
|
1422
1422
|
cancelButton: !1
|
|
1423
1423
|
}, Ye = [];
|
|
1424
|
-
Object.keys(
|
|
1425
|
-
Ye.push({ value: e, label:
|
|
1424
|
+
Object.keys(je).forEach((e) => {
|
|
1425
|
+
Ye.push({ value: e, label: je[e].name });
|
|
1426
1426
|
});
|
|
1427
|
-
const
|
|
1427
|
+
const sl = {
|
|
1428
1428
|
options: {
|
|
1429
1429
|
submitButton: !1,
|
|
1430
1430
|
cancelButton: !1
|
|
@@ -1456,8 +1456,8 @@ const tl = {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
]
|
|
1459
|
-
},
|
|
1460
|
-
components: { DevLayout:
|
|
1459
|
+
}, al = {
|
|
1460
|
+
components: { DevLayout: Mt, VForm: te, VButton: Xe, JsonView: Qe },
|
|
1461
1461
|
props: {
|
|
1462
1462
|
schema: {
|
|
1463
1463
|
type: Object,
|
|
@@ -1468,8 +1468,8 @@ const tl = {
|
|
|
1468
1468
|
data() {
|
|
1469
1469
|
return {
|
|
1470
1470
|
sqlOptions: {},
|
|
1471
|
-
sqlSchema:
|
|
1472
|
-
baseSchema:
|
|
1471
|
+
sqlSchema: sl,
|
|
1472
|
+
baseSchema: ll,
|
|
1473
1473
|
activeTab: "base",
|
|
1474
1474
|
builderSchema: Object.assign(
|
|
1475
1475
|
{},
|
|
@@ -1489,7 +1489,7 @@ const tl = {
|
|
|
1489
1489
|
ctrlSchema: {},
|
|
1490
1490
|
ctrlName: "",
|
|
1491
1491
|
activeIndex: void 0,
|
|
1492
|
-
ctrlMap:
|
|
1492
|
+
ctrlMap: je,
|
|
1493
1493
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
1494
1494
|
tableStruct: "",
|
|
1495
1495
|
activeName: "1",
|
|
@@ -1510,14 +1510,14 @@ const tl = {
|
|
|
1510
1510
|
immediate: !0,
|
|
1511
1511
|
handler(e) {
|
|
1512
1512
|
const t = x(e);
|
|
1513
|
-
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema =
|
|
1513
|
+
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = q(this.builderSchema, { options: t }), this.key++);
|
|
1514
1514
|
}
|
|
1515
1515
|
},
|
|
1516
1516
|
ctrlOptions: {
|
|
1517
1517
|
deep: !0,
|
|
1518
1518
|
// immediate: true,
|
|
1519
1519
|
handler(e) {
|
|
1520
|
-
const t =
|
|
1520
|
+
const t = fe(this.builderSchema, this.activeIndex);
|
|
1521
1521
|
if (!t)
|
|
1522
1522
|
return;
|
|
1523
1523
|
const n = t ? t.type : "", o = this.ctrlMap[n], l = o.trans ? o.trans(e) : e;
|
|
@@ -1535,10 +1535,10 @@ const tl = {
|
|
|
1535
1535
|
handler(e) {
|
|
1536
1536
|
const t = this.ctrlMap[e];
|
|
1537
1537
|
this.ctrlSchema = x({
|
|
1538
|
-
options: x(
|
|
1538
|
+
options: x(Ae),
|
|
1539
1539
|
formItems: x(t.builder)
|
|
1540
1540
|
});
|
|
1541
|
-
const n =
|
|
1541
|
+
const n = fe(this.builderSchema, this.activeIndex);
|
|
1542
1542
|
this.ctrlOptions = x(n), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
@@ -1560,23 +1560,23 @@ const tl = {
|
|
|
1560
1560
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
1561
1561
|
const n = this.ctrlMap[e];
|
|
1562
1562
|
this.activeCtrl = n, this.builderSchema[t].push(x(n.default)), this.ctrlSchema = x({
|
|
1563
|
-
options: x(
|
|
1563
|
+
options: x(Ae),
|
|
1564
1564
|
formItems: x(n.builder)
|
|
1565
1565
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
1566
1566
|
},
|
|
1567
1567
|
removeOne() {
|
|
1568
|
-
|
|
1568
|
+
kt(this.builderSchema, this.activeIndex), this.builderSchema = x(bt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
1569
1569
|
},
|
|
1570
1570
|
clicklabel() {
|
|
1571
1571
|
const e = this.activeIndex;
|
|
1572
1572
|
if (e.match(this.activeIndexReg)) {
|
|
1573
|
-
const n = x(
|
|
1573
|
+
const n = x(fe(this.builderSchema, e)), o = n.type, l = this.ctrlMap[o];
|
|
1574
1574
|
if (!l) {
|
|
1575
1575
|
this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
|
|
1576
1576
|
return;
|
|
1577
1577
|
}
|
|
1578
1578
|
this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = x({
|
|
1579
|
-
options: x(
|
|
1579
|
+
options: x(Ae),
|
|
1580
1580
|
formItems: x(l.builder)
|
|
1581
1581
|
}), this.ctrlKey++;
|
|
1582
1582
|
}
|
|
@@ -1592,15 +1592,15 @@ const tl = {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
};
|
|
1595
|
-
function
|
|
1596
|
-
const a = A("v-form"), r =
|
|
1597
|
-
return i(), h(
|
|
1595
|
+
function il(e, t, n, o, l, s) {
|
|
1596
|
+
const a = A("v-form"), r = Et, p = we, d = A("JsonView"), f = A("VButton"), y = Je, _ = ze, C = xt, E = wt, S = A("dev-layout");
|
|
1597
|
+
return i(), h(S, null, {
|
|
1598
1598
|
main: c(() => [
|
|
1599
1599
|
l.builderSchema.formItems ? (i(), h(a, X({
|
|
1600
1600
|
ref: "form",
|
|
1601
1601
|
key: l.key,
|
|
1602
1602
|
dev: !0
|
|
1603
|
-
}, l.builderSchema), null, 16)) :
|
|
1603
|
+
}, l.builderSchema), null, 16)) : B("", !0),
|
|
1604
1604
|
u(r),
|
|
1605
1605
|
u(p, {
|
|
1606
1606
|
type: "primary",
|
|
@@ -1612,12 +1612,12 @@ function ol(e, t, n, o, l, s) {
|
|
|
1612
1612
|
_: 1
|
|
1613
1613
|
}, 8, ["onClick"]),
|
|
1614
1614
|
t[3] || (t[3] = T(" ", -1)),
|
|
1615
|
-
u(
|
|
1615
|
+
u(f, {
|
|
1616
1616
|
text: "PageSchema",
|
|
1617
1617
|
type: "modal"
|
|
1618
1618
|
}, {
|
|
1619
1619
|
default: c(() => [
|
|
1620
|
-
u(
|
|
1620
|
+
u(d, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
1621
1621
|
]),
|
|
1622
1622
|
_: 1
|
|
1623
1623
|
})
|
|
@@ -1632,7 +1632,7 @@ function ol(e, t, n, o, l, s) {
|
|
|
1632
1632
|
"onUpdate:modelValue": t[0] || (t[0] = (g) => l.currentCtrlType = g)
|
|
1633
1633
|
}, {
|
|
1634
1634
|
default: c(() => [
|
|
1635
|
-
(i(!0), b(
|
|
1635
|
+
(i(!0), b(O, null, j(l.types, (g, I) => (i(), h(y, {
|
|
1636
1636
|
key: I,
|
|
1637
1637
|
label: g.label,
|
|
1638
1638
|
value: g.value
|
|
@@ -1645,7 +1645,7 @@ function ol(e, t, n, o, l, s) {
|
|
|
1645
1645
|
})
|
|
1646
1646
|
]),
|
|
1647
1647
|
_: 1
|
|
1648
|
-
})) :
|
|
1648
|
+
})) : B("", !0),
|
|
1649
1649
|
(i(), h(a, X({
|
|
1650
1650
|
key: l.ctrlKey,
|
|
1651
1651
|
modelValue: l.ctrlOptions,
|
|
@@ -1655,7 +1655,7 @@ function ol(e, t, n, o, l, s) {
|
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
|
-
const
|
|
1658
|
+
const rl = /* @__PURE__ */ P(al, [["render", il], ["__scopeId", "data-v-875f0171"]]), cl = {
|
|
1659
1659
|
type: "input",
|
|
1660
1660
|
name: "文本框",
|
|
1661
1661
|
default: {
|
|
@@ -1703,7 +1703,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
1705
|
]
|
|
1706
|
-
},
|
|
1706
|
+
}, ul = {
|
|
1707
1707
|
type: "select",
|
|
1708
1708
|
name: "下拉框",
|
|
1709
1709
|
default: {
|
|
@@ -1804,7 +1804,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1804
1804
|
const t = x(e);
|
|
1805
1805
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
1806
1806
|
}
|
|
1807
|
-
},
|
|
1807
|
+
}, pl = {
|
|
1808
1808
|
type: "date",
|
|
1809
1809
|
name: "日期",
|
|
1810
1810
|
default: {
|
|
@@ -1824,7 +1824,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1824
1824
|
label: "字段key"
|
|
1825
1825
|
}
|
|
1826
1826
|
]
|
|
1827
|
-
},
|
|
1827
|
+
}, pt = {
|
|
1828
1828
|
options: {
|
|
1829
1829
|
labelPosition: "top",
|
|
1830
1830
|
submitButton: !1,
|
|
@@ -1849,11 +1849,11 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1849
1849
|
label: "导出按钮"
|
|
1850
1850
|
}
|
|
1851
1851
|
]
|
|
1852
|
-
},
|
|
1852
|
+
}, Re = {
|
|
1853
1853
|
labelPosition: "top",
|
|
1854
1854
|
submitButton: !1,
|
|
1855
1855
|
cancelButton: !1
|
|
1856
|
-
},
|
|
1856
|
+
}, dl = {
|
|
1857
1857
|
type: "span",
|
|
1858
1858
|
name: "文本",
|
|
1859
1859
|
default: {
|
|
@@ -1883,7 +1883,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1883
1883
|
label: "排序"
|
|
1884
1884
|
}
|
|
1885
1885
|
]
|
|
1886
|
-
},
|
|
1886
|
+
}, fl = {
|
|
1887
1887
|
type: "enum",
|
|
1888
1888
|
name: "标签",
|
|
1889
1889
|
default: {
|
|
@@ -1934,7 +1934,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1934
1934
|
trans(e) {
|
|
1935
1935
|
return e.options = e.options || [], e.label || (e.label = "表头"), e;
|
|
1936
1936
|
}
|
|
1937
|
-
},
|
|
1937
|
+
}, ml = {
|
|
1938
1938
|
type: "html",
|
|
1939
1939
|
name: "HTML",
|
|
1940
1940
|
default: {
|
|
@@ -1959,7 +1959,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1959
1959
|
label: "提示"
|
|
1960
1960
|
}
|
|
1961
1961
|
]
|
|
1962
|
-
},
|
|
1962
|
+
}, hl = {
|
|
1963
1963
|
type: "icon",
|
|
1964
1964
|
name: "图标",
|
|
1965
1965
|
default: {
|
|
@@ -1984,7 +1984,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
1984
1984
|
label: "提示"
|
|
1985
1985
|
}
|
|
1986
1986
|
]
|
|
1987
|
-
},
|
|
1987
|
+
}, bl = {
|
|
1988
1988
|
type: "image",
|
|
1989
1989
|
name: "图片",
|
|
1990
1990
|
default: {
|
|
@@ -2009,7 +2009,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2009
2009
|
label: "提示"
|
|
2010
2010
|
}
|
|
2011
2011
|
]
|
|
2012
|
-
},
|
|
2012
|
+
}, yl = {
|
|
2013
2013
|
type: "json",
|
|
2014
2014
|
name: "JSON",
|
|
2015
2015
|
default: {
|
|
@@ -2034,7 +2034,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2034
2034
|
label: "提示"
|
|
2035
2035
|
}
|
|
2036
2036
|
]
|
|
2037
|
-
},
|
|
2037
|
+
}, _l = {
|
|
2038
2038
|
type: "link",
|
|
2039
2039
|
name: "链接",
|
|
2040
2040
|
default: {
|
|
@@ -2059,7 +2059,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2059
2059
|
label: "提示"
|
|
2060
2060
|
}
|
|
2061
2061
|
]
|
|
2062
|
-
},
|
|
2062
|
+
}, vl = {
|
|
2063
2063
|
type: "rich",
|
|
2064
2064
|
name: "富文本",
|
|
2065
2065
|
default: {
|
|
@@ -2084,7 +2084,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2084
2084
|
label: "提示"
|
|
2085
2085
|
}
|
|
2086
2086
|
]
|
|
2087
|
-
},
|
|
2087
|
+
}, gl = {
|
|
2088
2088
|
type: "tpl",
|
|
2089
2089
|
name: "模板",
|
|
2090
2090
|
default: {
|
|
@@ -2115,17 +2115,17 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2115
2115
|
info: "例如 <code>姓名: {name} 年龄:{age}</code>"
|
|
2116
2116
|
}
|
|
2117
2117
|
]
|
|
2118
|
-
},
|
|
2119
|
-
span:
|
|
2120
|
-
enum:
|
|
2121
|
-
html:
|
|
2122
|
-
icon:
|
|
2123
|
-
image:
|
|
2124
|
-
json:
|
|
2125
|
-
link:
|
|
2126
|
-
rich:
|
|
2127
|
-
tpl:
|
|
2128
|
-
},
|
|
2118
|
+
}, kl = {
|
|
2119
|
+
span: dl,
|
|
2120
|
+
enum: fl,
|
|
2121
|
+
html: ml,
|
|
2122
|
+
icon: hl,
|
|
2123
|
+
image: bl,
|
|
2124
|
+
json: yl,
|
|
2125
|
+
link: _l,
|
|
2126
|
+
rich: vl,
|
|
2127
|
+
tpl: gl
|
|
2128
|
+
}, Sl = {
|
|
2129
2129
|
type: "jump",
|
|
2130
2130
|
name: "跳转",
|
|
2131
2131
|
default: {
|
|
@@ -2172,7 +2172,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
]
|
|
2175
|
-
},
|
|
2175
|
+
}, wl = {
|
|
2176
2176
|
type: "api",
|
|
2177
2177
|
name: "接口请求",
|
|
2178
2178
|
default: {
|
|
@@ -2241,7 +2241,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
2243
|
]
|
|
2244
|
-
},
|
|
2244
|
+
}, xl = {
|
|
2245
2245
|
type: "form",
|
|
2246
2246
|
name: "弹框表单",
|
|
2247
2247
|
default: {
|
|
@@ -2295,7 +2295,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2295
2295
|
label: "保存接口"
|
|
2296
2296
|
}
|
|
2297
2297
|
]
|
|
2298
|
-
},
|
|
2298
|
+
}, El = {
|
|
2299
2299
|
type: "table",
|
|
2300
2300
|
name: "弹框列表",
|
|
2301
2301
|
default: {
|
|
@@ -2349,13 +2349,13 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2349
2349
|
label: "保存接口"
|
|
2350
2350
|
}
|
|
2351
2351
|
]
|
|
2352
|
-
},
|
|
2353
|
-
jump:
|
|
2354
|
-
api:
|
|
2355
|
-
form:
|
|
2356
|
-
table:
|
|
2357
|
-
},
|
|
2358
|
-
components: { JsonView:
|
|
2352
|
+
}, Il = {
|
|
2353
|
+
jump: Sl,
|
|
2354
|
+
api: wl,
|
|
2355
|
+
form: xl,
|
|
2356
|
+
table: El
|
|
2357
|
+
}, Cl = {
|
|
2358
|
+
components: { JsonView: Qe, DevLayout: Mt, VTable: me, VForm: te, VButton: Xe },
|
|
2359
2359
|
props: {
|
|
2360
2360
|
schema: {
|
|
2361
2361
|
type: Object,
|
|
@@ -2364,13 +2364,13 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2364
2364
|
}
|
|
2365
2365
|
},
|
|
2366
2366
|
data() {
|
|
2367
|
-
const e =
|
|
2367
|
+
const e = ln(this.$props.schema);
|
|
2368
2368
|
return delete e.listApi, e.list = [{}], {
|
|
2369
|
-
baseSchema:
|
|
2369
|
+
baseSchema: pt,
|
|
2370
2370
|
activeTab: "base",
|
|
2371
2371
|
builderSchema: Object.assign(
|
|
2372
2372
|
{},
|
|
2373
|
-
|
|
2373
|
+
pt,
|
|
2374
2374
|
e
|
|
2375
2375
|
),
|
|
2376
2376
|
baseOptions: {},
|
|
@@ -2383,9 +2383,9 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2383
2383
|
ctrlName: "",
|
|
2384
2384
|
activeIndex: void 0,
|
|
2385
2385
|
ctrlMap: {
|
|
2386
|
-
filter: { input:
|
|
2387
|
-
headers:
|
|
2388
|
-
buttons:
|
|
2386
|
+
filter: { input: cl, select: ul, date: pl },
|
|
2387
|
+
headers: kl,
|
|
2388
|
+
buttons: Il
|
|
2389
2389
|
},
|
|
2390
2390
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2391
2391
|
currentCtrlType: "input"
|
|
@@ -2416,7 +2416,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2416
2416
|
deep: !0,
|
|
2417
2417
|
immediate: !0,
|
|
2418
2418
|
handler(e) {
|
|
2419
|
-
this.builderSchema =
|
|
2419
|
+
this.builderSchema = q(this.builderSchema, e), this.key++, this.updateBuilderSchema();
|
|
2420
2420
|
}
|
|
2421
2421
|
},
|
|
2422
2422
|
ctrlOptions: {
|
|
@@ -2447,10 +2447,10 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2447
2447
|
handler(e) {
|
|
2448
2448
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
2449
2449
|
this.ctrlSchema = x({
|
|
2450
|
-
options: x(
|
|
2450
|
+
options: x(Re),
|
|
2451
2451
|
formItems: x(t.builder)
|
|
2452
2452
|
});
|
|
2453
|
-
const n =
|
|
2453
|
+
const n = fe(this.builderSchema, this.activeIndex);
|
|
2454
2454
|
n.type = e;
|
|
2455
2455
|
const o = x(n);
|
|
2456
2456
|
this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
@@ -2495,17 +2495,17 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2495
2495
|
return;
|
|
2496
2496
|
}
|
|
2497
2497
|
this.activeCtrl = l[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(x(l[e].default)), this.ctrlSchema = x({
|
|
2498
|
-
options: x(
|
|
2498
|
+
options: x(Re),
|
|
2499
2499
|
formItems: x(l[e].builder)
|
|
2500
2500
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2501
2501
|
},
|
|
2502
2502
|
removeOne() {
|
|
2503
|
-
|
|
2503
|
+
kt(this.builderSchema, this.activeIndex), this.builderSchema = x(bt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2504
2504
|
},
|
|
2505
2505
|
clicklabel() {
|
|
2506
2506
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
2507
2507
|
if (t) {
|
|
2508
|
-
const n = x(
|
|
2508
|
+
const n = x(fe(this.builderSchema, e));
|
|
2509
2509
|
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
|
|
2510
2510
|
let o = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
2511
2511
|
t[1] === "headers" && o === void 0 && (o = "span");
|
|
@@ -2515,7 +2515,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2515
2515
|
return;
|
|
2516
2516
|
}
|
|
2517
2517
|
this.ctrlOptions = n, this.currentCtrlType = o, this.ctrlSchema = x({
|
|
2518
|
-
options: x(
|
|
2518
|
+
options: x(Re),
|
|
2519
2519
|
formItems: x(l.builder)
|
|
2520
2520
|
}), this.ctrlKey++;
|
|
2521
2521
|
}
|
|
@@ -2538,8 +2538,8 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
|
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
};
|
|
2541
|
-
function
|
|
2542
|
-
const a =
|
|
2541
|
+
function Tl(e, t, n, o, l, s) {
|
|
2542
|
+
const a = Ce, r = we, p = he, d = A("v-table"), f = Et, y = we, _ = A("JsonView"), C = A("VButton"), E = Je, S = ze, g = xt, I = wt, F = A("v-form"), le = A("dev-layout");
|
|
2543
2543
|
return i(), h(le, null, {
|
|
2544
2544
|
"left-aside": c(() => [
|
|
2545
2545
|
u(p, { style: { width: "200px" } }, {
|
|
@@ -2608,14 +2608,14 @@ function xl(e, t, n, o, l, s) {
|
|
|
2608
2608
|
])]),
|
|
2609
2609
|
_: 1
|
|
2610
2610
|
}),
|
|
2611
|
-
(i(!0), b(
|
|
2612
|
-
key: `column-${
|
|
2611
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.headers), (k, U) => (i(), h(a, {
|
|
2612
|
+
key: `column-${U}`,
|
|
2613
2613
|
class: "ctrl"
|
|
2614
2614
|
}, {
|
|
2615
2615
|
default: c(() => [
|
|
2616
2616
|
u(r, {
|
|
2617
2617
|
class: "ctrl-btn",
|
|
2618
|
-
onClick: (
|
|
2618
|
+
onClick: (J) => s.pushHeaders(l.ctrlMap.headers[k].type)
|
|
2619
2619
|
}, {
|
|
2620
2620
|
default: c(() => [
|
|
2621
2621
|
T(M(l.ctrlMap.headers[k].name), 1)
|
|
@@ -2636,14 +2636,14 @@ function xl(e, t, n, o, l, s) {
|
|
|
2636
2636
|
])]),
|
|
2637
2637
|
_: 1
|
|
2638
2638
|
}),
|
|
2639
|
-
(i(!0), b(
|
|
2640
|
-
key: `column-${
|
|
2639
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
|
|
2640
|
+
key: `column-${U}`,
|
|
2641
2641
|
class: "ctrl"
|
|
2642
2642
|
}, {
|
|
2643
2643
|
default: c(() => [
|
|
2644
2644
|
u(r, {
|
|
2645
2645
|
class: "ctrl-btn",
|
|
2646
|
-
onClick: (
|
|
2646
|
+
onClick: (J) => s.pushRowButton(l.ctrlMap.buttons[k].type)
|
|
2647
2647
|
}, {
|
|
2648
2648
|
default: c(() => [
|
|
2649
2649
|
T(M(l.ctrlMap.buttons[k].name), 1)
|
|
@@ -2664,14 +2664,14 @@ function xl(e, t, n, o, l, s) {
|
|
|
2664
2664
|
])]),
|
|
2665
2665
|
_: 1
|
|
2666
2666
|
}),
|
|
2667
|
-
(i(!0), b(
|
|
2668
|
-
key: `column-${
|
|
2667
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
|
|
2668
|
+
key: `column-${U}`,
|
|
2669
2669
|
class: "ctrl"
|
|
2670
2670
|
}, {
|
|
2671
2671
|
default: c(() => [
|
|
2672
2672
|
u(r, {
|
|
2673
2673
|
class: "ctrl-btn",
|
|
2674
|
-
onClick: (
|
|
2674
|
+
onClick: (J) => s.pushNormalButton(l.ctrlMap.buttons[k].type)
|
|
2675
2675
|
}, {
|
|
2676
2676
|
default: c(() => [
|
|
2677
2677
|
T(M(l.ctrlMap.buttons[k].name), 1)
|
|
@@ -2703,14 +2703,14 @@ function xl(e, t, n, o, l, s) {
|
|
|
2703
2703
|
])]),
|
|
2704
2704
|
_: 1
|
|
2705
2705
|
}),
|
|
2706
|
-
(i(!0), b(
|
|
2707
|
-
key: `column-${
|
|
2706
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
|
|
2707
|
+
key: `column-${U}`,
|
|
2708
2708
|
class: "ctrl"
|
|
2709
2709
|
}, {
|
|
2710
2710
|
default: c(() => [
|
|
2711
2711
|
u(r, {
|
|
2712
2712
|
class: "ctrl-btn",
|
|
2713
|
-
onClick: (
|
|
2713
|
+
onClick: (J) => s.pushBatchButton(l.ctrlMap.buttons[k].type)
|
|
2714
2714
|
}, {
|
|
2715
2715
|
default: c(() => [
|
|
2716
2716
|
T(M(l.ctrlMap.buttons[k].name), 1)
|
|
@@ -2739,12 +2739,12 @@ function xl(e, t, n, o, l, s) {
|
|
|
2739
2739
|
})
|
|
2740
2740
|
]),
|
|
2741
2741
|
main: c(() => [
|
|
2742
|
-
(i(), h(
|
|
2742
|
+
(i(), h(d, X({
|
|
2743
2743
|
ref: "table",
|
|
2744
2744
|
key: l.key,
|
|
2745
2745
|
dev: !0
|
|
2746
2746
|
}, l.builderSchema), null, 16)),
|
|
2747
|
-
u(
|
|
2747
|
+
u(f),
|
|
2748
2748
|
u(y, {
|
|
2749
2749
|
type: "primary",
|
|
2750
2750
|
onClick: s.saveSchema
|
|
@@ -2770,13 +2770,13 @@ function xl(e, t, n, o, l, s) {
|
|
|
2770
2770
|
default: c(() => [
|
|
2771
2771
|
u(g, { label: "控件类型" }, {
|
|
2772
2772
|
default: c(() => [
|
|
2773
|
-
u(
|
|
2773
|
+
u(S, {
|
|
2774
2774
|
modelValue: l.currentCtrlType,
|
|
2775
2775
|
"onUpdate:modelValue": t[3] || (t[3] = (k) => l.currentCtrlType = k)
|
|
2776
2776
|
}, {
|
|
2777
2777
|
default: c(() => [
|
|
2778
|
-
(i(!0), b(
|
|
2779
|
-
key:
|
|
2778
|
+
(i(!0), b(O, null, j(s.types, (k, U) => (i(), h(E, {
|
|
2779
|
+
key: U,
|
|
2780
2780
|
label: k.label,
|
|
2781
2781
|
value: k.value
|
|
2782
2782
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -2788,7 +2788,7 @@ function xl(e, t, n, o, l, s) {
|
|
|
2788
2788
|
})
|
|
2789
2789
|
]),
|
|
2790
2790
|
_: 1
|
|
2791
|
-
})) :
|
|
2791
|
+
})) : B("", !0),
|
|
2792
2792
|
(i(), h(F, X({
|
|
2793
2793
|
key: l.ctrlKey,
|
|
2794
2794
|
modelValue: l.ctrlOptions,
|
|
@@ -2798,58 +2798,58 @@ function xl(e, t, n, o, l, s) {
|
|
|
2798
2798
|
_: 1
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
|
-
const
|
|
2801
|
+
const $l = /* @__PURE__ */ P(Cl, [["render", Tl], ["__scopeId", "data-v-cd18f87f"]]), Bl = "rtl", Ol = {
|
|
2802
2802
|
__name: "PageEditor",
|
|
2803
2803
|
setup(e) {
|
|
2804
2804
|
const t = $(!1);
|
|
2805
2805
|
$(1);
|
|
2806
|
-
const n = Y(), o = ee(), l =
|
|
2806
|
+
const n = Y(), o = ee(), l = w(() => o.pages[n.path]);
|
|
2807
2807
|
return (s, a) => {
|
|
2808
|
-
const r = A("VIcon"), p =
|
|
2809
|
-
return i(), b(
|
|
2808
|
+
const r = A("VIcon"), p = It;
|
|
2809
|
+
return i(), b(O, null, [
|
|
2810
2810
|
u(r, {
|
|
2811
2811
|
name: "ra-set",
|
|
2812
|
-
onClick: a[0] || (a[0] = (
|
|
2812
|
+
onClick: a[0] || (a[0] = (d) => t.value = !m(t))
|
|
2813
2813
|
}),
|
|
2814
2814
|
u(p, {
|
|
2815
|
-
modelValue:
|
|
2816
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2815
|
+
modelValue: m(t),
|
|
2816
|
+
"onUpdate:modelValue": a[1] || (a[1] = (d) => qe(t) ? t.value = d : null),
|
|
2817
2817
|
title: "页面设计",
|
|
2818
2818
|
class: "my-drawer",
|
|
2819
|
-
direction:
|
|
2819
|
+
direction: Bl,
|
|
2820
2820
|
size: "90%",
|
|
2821
2821
|
"destroy-on-close": "",
|
|
2822
2822
|
"append-to-body": ""
|
|
2823
2823
|
}, {
|
|
2824
2824
|
default: c(() => [
|
|
2825
|
-
|
|
2825
|
+
m(l).formItems !== void 0 ? (i(), h(rl, {
|
|
2826
2826
|
key: 0,
|
|
2827
|
-
schema:
|
|
2828
|
-
}, null, 8, ["schema"])) :
|
|
2829
|
-
|
|
2827
|
+
schema: m(l)
|
|
2828
|
+
}, null, 8, ["schema"])) : B("", !0),
|
|
2829
|
+
m(l).headers !== void 0 ? (i(), h($l, {
|
|
2830
2830
|
key: 1,
|
|
2831
|
-
schema:
|
|
2832
|
-
}, null, 8, ["schema"])) :
|
|
2831
|
+
schema: m(l)
|
|
2832
|
+
}, null, 8, ["schema"])) : B("", !0)
|
|
2833
2833
|
]),
|
|
2834
2834
|
_: 1
|
|
2835
2835
|
}, 8, ["modelValue"])
|
|
2836
2836
|
], 64);
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
|
-
},
|
|
2839
|
+
}, Pl = { class: "right-content" }, Al = {
|
|
2840
2840
|
key: 0,
|
|
2841
2841
|
class: "right-item"
|
|
2842
|
-
},
|
|
2842
|
+
}, Rl = {
|
|
2843
2843
|
class: "right-item-button",
|
|
2844
2844
|
style: { padding: "0" }
|
|
2845
|
-
},
|
|
2845
|
+
}, Ll = { class: "user-info" }, Ml = ["src"], Dl = { class: "user-name" }, jl = /* @__PURE__ */ z({
|
|
2846
2846
|
__name: "Navbar",
|
|
2847
2847
|
setup(e) {
|
|
2848
2848
|
const t = ee(), n = V(), o = N();
|
|
2849
2849
|
$(!1);
|
|
2850
2850
|
const l = $(!1);
|
|
2851
2851
|
$(""), $(0);
|
|
2852
|
-
const s =
|
|
2852
|
+
const s = w(() => n.defaultAvatar), a = w(() => t.sidebar), r = w(() => o.avatar), p = w(() => o.name), d = w(() => o.nickname), f = w(() => n.nav), y = w(() => n), _ = w(() => o), C = w(() => n.showPageJsonSchema || !1), { isDark: E, toggleTheme: S } = Pt(), g = w(() => {
|
|
2853
2853
|
const D = y.value.envColor?.[_.value.env];
|
|
2854
2854
|
return E.value ? {
|
|
2855
2855
|
background: "linear-gradient(135deg, rgba(59, 130, 246, 0.55) 0%, rgba(37, 99, 235, 0.45) 45%, rgba(15, 23, 42, 0.92) 100%)",
|
|
@@ -2865,16 +2865,16 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2865
2865
|
boxShadow: "0 1px 4px rgba(15, 23, 42, 0.05)"
|
|
2866
2866
|
};
|
|
2867
2867
|
});
|
|
2868
|
-
|
|
2869
|
-
|
|
2868
|
+
xe(() => {
|
|
2869
|
+
yt("el-submenu is-active");
|
|
2870
2870
|
const D = k("navBarNotice") || "";
|
|
2871
|
-
D.length > 0 && !k("closeNavNotice") &&
|
|
2871
|
+
D.length > 0 && !k("closeNavNotice") && J(D) && window?.App?.config?.globalProperties?.$notify({
|
|
2872
2872
|
title: "提示",
|
|
2873
2873
|
message: D,
|
|
2874
2874
|
dangerouslyUseHTMLString: !0,
|
|
2875
2875
|
duration: 0,
|
|
2876
|
-
onClose:
|
|
2877
|
-
}), y.value.envColor?.[_.value.env] &&
|
|
2876
|
+
onClose: U
|
|
2877
|
+
}), y.value.envColor?.[_.value.env] && gn({
|
|
2878
2878
|
elRef: I.value.$el,
|
|
2879
2879
|
waterMark: _.value.env,
|
|
2880
2880
|
color: "skyblue",
|
|
@@ -2893,72 +2893,72 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2893
2893
|
function k(D) {
|
|
2894
2894
|
return n[D];
|
|
2895
2895
|
}
|
|
2896
|
-
async function
|
|
2897
|
-
n.updateSettings({ closeNavNotice: !0 }),
|
|
2896
|
+
async function U() {
|
|
2897
|
+
n.updateSettings({ closeNavNotice: !0 }), Kt(k("navBarNotice"));
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2900
|
-
const
|
|
2901
|
-
return
|
|
2899
|
+
function J(D) {
|
|
2900
|
+
const L = "dismiss:navbar_notice";
|
|
2901
|
+
return ve.exist(L) ? ve.get(L) !== D : !0;
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2904
|
-
|
|
2903
|
+
function Kt(D) {
|
|
2904
|
+
ve.set("dismiss:navbar_notice", D);
|
|
2905
2905
|
}
|
|
2906
|
-
return (D,
|
|
2907
|
-
const
|
|
2908
|
-
return i(), h(
|
|
2906
|
+
return (D, L) => {
|
|
2907
|
+
const ot = Ce, Wt = qn, Qt = Un, lt = Gn, Xt = Fn, Zt = Hn, Yt = It, en = he;
|
|
2908
|
+
return i(), h(en, {
|
|
2909
2909
|
ref_key: "header",
|
|
2910
2910
|
ref: I,
|
|
2911
2911
|
class: "navbar",
|
|
2912
|
-
style:
|
|
2912
|
+
style: sn(g.value)
|
|
2913
2913
|
}, {
|
|
2914
2914
|
default: c(() => [
|
|
2915
|
-
u(
|
|
2915
|
+
u(ot, { span: 16 }, {
|
|
2916
2916
|
default: c(() => [
|
|
2917
|
-
u(
|
|
2917
|
+
u(qo, {
|
|
2918
2918
|
"is-active": a.value.opened,
|
|
2919
2919
|
class: "hamburger-container",
|
|
2920
2920
|
onToggleClick: F
|
|
2921
2921
|
}, null, 8, ["is-active"]),
|
|
2922
|
-
u(
|
|
2922
|
+
u(No, { class: "breadcrumb-container" })
|
|
2923
2923
|
]),
|
|
2924
2924
|
_: 1
|
|
2925
2925
|
}),
|
|
2926
|
-
u(
|
|
2926
|
+
u(ot, { span: 8 }, {
|
|
2927
2927
|
default: c(() => [
|
|
2928
|
-
v("div",
|
|
2929
|
-
C.value ? (i(), b("div",
|
|
2930
|
-
u(
|
|
2931
|
-
])) :
|
|
2932
|
-
v("div",
|
|
2933
|
-
u(
|
|
2928
|
+
v("div", Pl, [
|
|
2929
|
+
C.value ? (i(), b("div", Al, [
|
|
2930
|
+
u(Ol)
|
|
2931
|
+
])) : B("", !0),
|
|
2932
|
+
v("div", Rl, [
|
|
2933
|
+
u(m(Xe), { buttons: f.value }, null, 8, ["buttons"])
|
|
2934
2934
|
]),
|
|
2935
|
-
u(
|
|
2935
|
+
u(Qt, {
|
|
2936
2936
|
placement: "bottom",
|
|
2937
|
-
content:
|
|
2937
|
+
content: m(E) ? "切换为明亮模式" : "切换为暗黑模式"
|
|
2938
2938
|
}, {
|
|
2939
2939
|
default: c(() => [
|
|
2940
2940
|
v("div", {
|
|
2941
2941
|
class: "right-item theme-toggle",
|
|
2942
2942
|
role: "button",
|
|
2943
2943
|
tabindex: "0",
|
|
2944
|
-
onClick:
|
|
2945
|
-
(...se) =>
|
|
2944
|
+
onClick: L[0] || (L[0] = //@ts-ignore
|
|
2945
|
+
(...se) => m(S) && m(S)(...se)),
|
|
2946
2946
|
onKeydown: [
|
|
2947
|
-
|
|
2947
|
+
L[1] || (L[1] = st(at(
|
|
2948
2948
|
//@ts-ignore
|
|
2949
|
-
(...se) =>
|
|
2949
|
+
(...se) => m(S) && m(S)(...se),
|
|
2950
2950
|
["prevent"]
|
|
2951
2951
|
), ["enter"])),
|
|
2952
|
-
|
|
2952
|
+
L[2] || (L[2] = st(at(
|
|
2953
2953
|
//@ts-ignore
|
|
2954
|
-
(...se) =>
|
|
2954
|
+
(...se) => m(S) && m(S)(...se),
|
|
2955
2955
|
["prevent"]
|
|
2956
2956
|
), ["space"]))
|
|
2957
2957
|
]
|
|
2958
2958
|
}, [
|
|
2959
|
-
u(
|
|
2959
|
+
u(Wt, null, {
|
|
2960
2960
|
default: c(() => [
|
|
2961
|
-
(i(), h(
|
|
2961
|
+
(i(), h(He(m(E) ? m(so) : m(ao))))
|
|
2962
2962
|
]),
|
|
2963
2963
|
_: 1
|
|
2964
2964
|
})
|
|
@@ -2966,28 +2966,28 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2966
2966
|
]),
|
|
2967
2967
|
_: 1
|
|
2968
2968
|
}, 8, ["content"]),
|
|
2969
|
-
u(
|
|
2969
|
+
u(Zt, {
|
|
2970
2970
|
class: "right-item",
|
|
2971
2971
|
trigger: "click"
|
|
2972
2972
|
}, {
|
|
2973
2973
|
dropdown: c(() => [
|
|
2974
|
-
u(
|
|
2974
|
+
u(Xt, { class: "user-dropdown" }, {
|
|
2975
2975
|
default: c(() => [
|
|
2976
|
-
u(
|
|
2976
|
+
u(lt, {
|
|
2977
2977
|
icon: "oms-icon-index",
|
|
2978
|
-
onClick:
|
|
2978
|
+
onClick: L[3] || (L[3] = (se) => D.$router.push("/"))
|
|
2979
2979
|
}, {
|
|
2980
|
-
default: c(() => [...
|
|
2980
|
+
default: c(() => [...L[5] || (L[5] = [
|
|
2981
2981
|
T("首页", -1)
|
|
2982
2982
|
])]),
|
|
2983
2983
|
_: 1
|
|
2984
2984
|
}),
|
|
2985
|
-
u(
|
|
2985
|
+
u(lt, {
|
|
2986
2986
|
divided: "",
|
|
2987
2987
|
icon: "el-icon-switch-button",
|
|
2988
2988
|
onClick: le
|
|
2989
2989
|
}, {
|
|
2990
|
-
default: c(() => [...
|
|
2990
|
+
default: c(() => [...L[6] || (L[6] = [
|
|
2991
2991
|
T("退出登录", -1)
|
|
2992
2992
|
])]),
|
|
2993
2993
|
_: 1
|
|
@@ -2997,14 +2997,14 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2997
2997
|
})
|
|
2998
2998
|
]),
|
|
2999
2999
|
default: c(() => [
|
|
3000
|
-
v("div",
|
|
3000
|
+
v("div", Ll, [
|
|
3001
3001
|
v("img", {
|
|
3002
3002
|
src: r.value ? r.value : s.value,
|
|
3003
3003
|
class: "user-avatar",
|
|
3004
3004
|
alt: "头像"
|
|
3005
|
-
}, null, 8,
|
|
3006
|
-
|
|
3007
|
-
v("span",
|
|
3005
|
+
}, null, 8, Ml),
|
|
3006
|
+
L[4] || (L[4] = T()),
|
|
3007
|
+
v("span", Dl, M(d.value || p.value), 1)
|
|
3008
3008
|
])
|
|
3009
3009
|
]),
|
|
3010
3010
|
_: 1
|
|
@@ -3013,32 +3013,32 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
3013
3013
|
]),
|
|
3014
3014
|
_: 1
|
|
3015
3015
|
}),
|
|
3016
|
-
l.value ? (i(), h(
|
|
3016
|
+
l.value ? (i(), h(Yt, {
|
|
3017
3017
|
key: 0,
|
|
3018
3018
|
"with-header": !1,
|
|
3019
3019
|
size: "50%"
|
|
3020
|
-
})) :
|
|
3020
|
+
})) : B("", !0)
|
|
3021
3021
|
]),
|
|
3022
3022
|
_: 1
|
|
3023
3023
|
}, 8, ["style"]);
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
|
-
}),
|
|
3026
|
+
}), Nl = /* @__PURE__ */ P(jl, [["__scopeId", "data-v-c4905268"]]), Vl = ["src"], Ul = {
|
|
3027
3027
|
key: 1,
|
|
3028
3028
|
class: "sidebar-title"
|
|
3029
|
-
},
|
|
3029
|
+
}, ql = ["src"], Hl = { class: "sidebar-title" }, Fl = /* @__PURE__ */ z({
|
|
3030
3030
|
__name: "Logo",
|
|
3031
3031
|
props: {
|
|
3032
3032
|
collapse: { type: Boolean }
|
|
3033
3033
|
},
|
|
3034
3034
|
setup(e) {
|
|
3035
|
-
const t = V(), n =
|
|
3035
|
+
const t = V(), n = w(() => t.title), o = w(() => t.logo);
|
|
3036
3036
|
return (l, s) => {
|
|
3037
3037
|
const a = A("router-link");
|
|
3038
3038
|
return i(), b("div", {
|
|
3039
3039
|
class: Q(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3040
3040
|
}, [
|
|
3041
|
-
u(
|
|
3041
|
+
u(an, { name: "sidebarLogoFade" }, {
|
|
3042
3042
|
default: c(() => [
|
|
3043
3043
|
l.collapse ? (i(), h(a, {
|
|
3044
3044
|
key: "collapse",
|
|
@@ -3050,7 +3050,7 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
3050
3050
|
key: 0,
|
|
3051
3051
|
src: o.value,
|
|
3052
3052
|
class: "sidebar-logo"
|
|
3053
|
-
}, null, 8,
|
|
3053
|
+
}, null, 8, Vl)) : (i(), b("h1", Ul, M(n.value), 1)),
|
|
3054
3054
|
s[0] || (s[0] = v("div", null, "系统", -1))
|
|
3055
3055
|
]),
|
|
3056
3056
|
_: 1
|
|
@@ -3064,8 +3064,8 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
3064
3064
|
key: 0,
|
|
3065
3065
|
src: o.value,
|
|
3066
3066
|
class: "sidebar-logo"
|
|
3067
|
-
}, null, 8,
|
|
3068
|
-
v("h1",
|
|
3067
|
+
}, null, 8, ql)) : B("", !0),
|
|
3068
|
+
v("h1", Hl, M(n.value), 1)
|
|
3069
3069
|
]),
|
|
3070
3070
|
_: 1
|
|
3071
3071
|
}))
|
|
@@ -3075,7 +3075,7 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
3075
3075
|
], 2);
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
|
-
}),
|
|
3078
|
+
}), Gl = /* @__PURE__ */ P(Fl, [["__scopeId", "data-v-7c0ca32e"]]), zl = {
|
|
3079
3079
|
props: {
|
|
3080
3080
|
to: {
|
|
3081
3081
|
type: String,
|
|
@@ -3088,10 +3088,10 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
3088
3088
|
},
|
|
3089
3089
|
methods: {
|
|
3090
3090
|
compType(e) {
|
|
3091
|
-
return
|
|
3091
|
+
return it(e) || this.newTab ? "a" : "router-link";
|
|
3092
3092
|
},
|
|
3093
3093
|
linkProps(e) {
|
|
3094
|
-
return
|
|
3094
|
+
return it(e) ? {
|
|
3095
3095
|
is: "a",
|
|
3096
3096
|
href: e,
|
|
3097
3097
|
target: "_blank",
|
|
@@ -3108,15 +3108,15 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
|
|
|
3108
3108
|
}
|
|
3109
3109
|
}
|
|
3110
3110
|
};
|
|
3111
|
-
function
|
|
3112
|
-
return i(), h(
|
|
3111
|
+
function Jl(e, t, n, o, l, s) {
|
|
3112
|
+
return i(), h(He(s.compType(n.to)), Z(re(s.linkProps(n.to))), {
|
|
3113
3113
|
default: c(() => [
|
|
3114
3114
|
pe(e.$slots, "default")
|
|
3115
3115
|
]),
|
|
3116
3116
|
_: 3
|
|
3117
3117
|
}, 16);
|
|
3118
3118
|
}
|
|
3119
|
-
const
|
|
3119
|
+
const Kl = /* @__PURE__ */ P(zl, [["render", Jl]]), Wl = {
|
|
3120
3120
|
computed: {
|
|
3121
3121
|
// @ts-ignore
|
|
3122
3122
|
device() {
|
|
@@ -3137,7 +3137,7 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
|
|
|
3137
3137
|
}
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
|
-
},
|
|
3140
|
+
}, Ql = { class: "menu-content" }, Xl = /* @__PURE__ */ z({
|
|
3141
3141
|
__name: "MenuContent",
|
|
3142
3142
|
props: {
|
|
3143
3143
|
meta: {
|
|
@@ -3151,21 +3151,21 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
|
|
|
3151
3151
|
setup(e) {
|
|
3152
3152
|
return (t, n) => {
|
|
3153
3153
|
const o = A("VIcon");
|
|
3154
|
-
return i(), b(
|
|
3154
|
+
return i(), b(O, null, [
|
|
3155
3155
|
u(o, {
|
|
3156
3156
|
name: e.meta.icon || "ra-all"
|
|
3157
3157
|
}, null, 8, ["name"]),
|
|
3158
|
-
v("span",
|
|
3158
|
+
v("span", Ql, M(e.meta.title), 1)
|
|
3159
3159
|
], 64);
|
|
3160
3160
|
};
|
|
3161
3161
|
}
|
|
3162
|
-
}),
|
|
3162
|
+
}), Zl = {
|
|
3163
3163
|
name: "SidebarItem",
|
|
3164
3164
|
components: {
|
|
3165
|
-
AppLink:
|
|
3166
|
-
MenuContent:
|
|
3165
|
+
AppLink: Kl,
|
|
3166
|
+
MenuContent: Xl
|
|
3167
3167
|
},
|
|
3168
|
-
mixins: [
|
|
3168
|
+
mixins: [Wl],
|
|
3169
3169
|
props: {
|
|
3170
3170
|
// route object
|
|
3171
3171
|
item: {
|
|
@@ -3183,7 +3183,7 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
|
|
|
3183
3183
|
},
|
|
3184
3184
|
methods: {
|
|
3185
3185
|
itemClick() {
|
|
3186
|
-
|
|
3186
|
+
ve.remove("table_filter:" + this.$props.to);
|
|
3187
3187
|
},
|
|
3188
3188
|
getTo(e) {
|
|
3189
3189
|
try {
|
|
@@ -3193,14 +3193,14 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
|
|
|
3193
3193
|
}
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
},
|
|
3196
|
+
}, Yl = {
|
|
3197
3197
|
key: 0,
|
|
3198
3198
|
class: "menu-wrapper"
|
|
3199
3199
|
};
|
|
3200
|
-
function
|
|
3201
|
-
const a = A("menu-content"), r =
|
|
3202
|
-
return n.item.hidden !== !1 ? (i(), b("div",
|
|
3203
|
-
n.item.meta && n.item.meta.menuType === 2 ? (i(), b(
|
|
3200
|
+
function es(e, t, n, o, l, s) {
|
|
3201
|
+
const a = A("menu-content"), r = zn, p = A("app-link"), d = A("sidebar-item", !0), f = Jn;
|
|
3202
|
+
return n.item.hidden !== !1 ? (i(), b("div", Yl, [
|
|
3203
|
+
n.item.meta && n.item.meta.menuType === 2 ? (i(), b(O, { key: 0 }, [
|
|
3204
3204
|
n.item.meta ? (i(), h(p, {
|
|
3205
3205
|
key: 0,
|
|
3206
3206
|
to: n.to,
|
|
@@ -3221,8 +3221,8 @@ function Ql(e, t, n, o, l, s) {
|
|
|
3221
3221
|
}, 8, ["index", "class", "onClick"])
|
|
3222
3222
|
]),
|
|
3223
3223
|
_: 1
|
|
3224
|
-
}, 8, ["to", "new-tab"])) :
|
|
3225
|
-
], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(
|
|
3224
|
+
}, 8, ["to", "new-tab"])) : B("", !0)
|
|
3225
|
+
], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(f, {
|
|
3226
3226
|
key: 1,
|
|
3227
3227
|
ref: "subMenu",
|
|
3228
3228
|
index: n.to,
|
|
@@ -3245,7 +3245,7 @@ function Ql(e, t, n, o, l, s) {
|
|
|
3245
3245
|
}, null, 8, ["meta"]))
|
|
3246
3246
|
]),
|
|
3247
3247
|
default: c(() => [
|
|
3248
|
-
(i(!0), b(
|
|
3248
|
+
(i(!0), b(O, null, j(n.item.children, (y) => (i(), h(d, {
|
|
3249
3249
|
key: y.path,
|
|
3250
3250
|
"is-nest": !0,
|
|
3251
3251
|
item: y,
|
|
@@ -3254,68 +3254,68 @@ function Ql(e, t, n, o, l, s) {
|
|
|
3254
3254
|
}, null, 8, ["item", "to"]))), 128))
|
|
3255
3255
|
]),
|
|
3256
3256
|
_: 1
|
|
3257
|
-
}, 8, ["index", "class"])) :
|
|
3258
|
-
])) :
|
|
3257
|
+
}, 8, ["index", "class"])) : B("", !0)
|
|
3258
|
+
])) : B("", !0);
|
|
3259
3259
|
}
|
|
3260
|
-
const
|
|
3260
|
+
const ts = /* @__PURE__ */ P(Zl, [["render", es]]), ns = /* @__PURE__ */ z({
|
|
3261
3261
|
__name: "SearchMenu",
|
|
3262
3262
|
setup(e) {
|
|
3263
3263
|
const t = N();
|
|
3264
|
-
function n(
|
|
3265
|
-
return
|
|
3264
|
+
function n(d) {
|
|
3265
|
+
return d.filter((f) => f.meta?.menuType === 0 ? !1 : (f.children && (f.children = n(f.children), f.children.length === 0 && delete f.children), !0));
|
|
3266
3266
|
}
|
|
3267
|
-
const o = $(""), l =
|
|
3268
|
-
let
|
|
3269
|
-
return l.value.forEach((
|
|
3270
|
-
|
|
3271
|
-
}), n(
|
|
3267
|
+
const o = $(""), l = w(() => t.remoteRouter), s = Ie(), a = w(() => {
|
|
3268
|
+
let d = [];
|
|
3269
|
+
return l.value.forEach((f) => {
|
|
3270
|
+
d = d.concat(x(f.routes));
|
|
3271
|
+
}), n(d);
|
|
3272
3272
|
});
|
|
3273
|
-
function r(
|
|
3274
|
-
let
|
|
3275
|
-
if (
|
|
3276
|
-
for (let y = 0; y <
|
|
3277
|
-
if (
|
|
3278
|
-
|
|
3273
|
+
function r(d) {
|
|
3274
|
+
let f = d;
|
|
3275
|
+
if (d.meta.menuType === 1 && d.children && d.children.length > 0) {
|
|
3276
|
+
for (let y = 0; y < d.children.length; y++)
|
|
3277
|
+
if (d.children[y].path.indexOf("/:") === -1) {
|
|
3278
|
+
f = d.children[y];
|
|
3279
3279
|
break;
|
|
3280
3280
|
}
|
|
3281
3281
|
}
|
|
3282
|
-
return s.resolve(
|
|
3282
|
+
return s.resolve(f.redirect ? f.redirect : f).fullPath;
|
|
3283
3283
|
}
|
|
3284
|
-
function p(
|
|
3285
|
-
s.push(
|
|
3284
|
+
function p(d) {
|
|
3285
|
+
s.push(d), o.value = "";
|
|
3286
3286
|
}
|
|
3287
|
-
return (
|
|
3288
|
-
const y =
|
|
3287
|
+
return (d, f) => {
|
|
3288
|
+
const y = Je, _ = Kn, C = ze;
|
|
3289
3289
|
return i(), h(C, {
|
|
3290
|
-
modelValue:
|
|
3291
|
-
"onUpdate:modelValue":
|
|
3290
|
+
modelValue: m(o),
|
|
3291
|
+
"onUpdate:modelValue": f[0] || (f[0] = (E) => qe(o) ? o.value = E : null),
|
|
3292
3292
|
filterable: "",
|
|
3293
3293
|
placeholder: "搜索菜单...",
|
|
3294
3294
|
class: "search-menu",
|
|
3295
3295
|
onChange: p
|
|
3296
3296
|
}, {
|
|
3297
3297
|
default: c(() => [
|
|
3298
|
-
(i(!0), b(
|
|
3298
|
+
(i(!0), b(O, null, j(m(a), (E) => (i(), b(O, {
|
|
3299
3299
|
key: E.path
|
|
3300
3300
|
}, [
|
|
3301
|
-
E.children !== void 0 ? (i(), b(
|
|
3301
|
+
E.children !== void 0 ? (i(), b(O, { key: 0 }, [
|
|
3302
3302
|
E.meta.menuType !== 0 ? (i(), h(_, {
|
|
3303
3303
|
key: E.path + "-",
|
|
3304
3304
|
label: E.meta.title
|
|
3305
3305
|
}, {
|
|
3306
3306
|
default: c(() => [
|
|
3307
|
-
(i(!0), b(
|
|
3308
|
-
key:
|
|
3307
|
+
(i(!0), b(O, null, j(E.children, (S, g) => (i(), b(O, {
|
|
3308
|
+
key: S.path
|
|
3309
3309
|
}, [
|
|
3310
3310
|
E.meta.menuType !== 0 ? (i(), h(y, {
|
|
3311
3311
|
key: 0,
|
|
3312
|
-
label: (g === E.children.length - 1 ? "└─" : "├─") +
|
|
3313
|
-
value: r(
|
|
3314
|
-
}, null, 8, ["label", "value"])) :
|
|
3312
|
+
label: (g === E.children.length - 1 ? "└─" : "├─") + S.meta.title,
|
|
3313
|
+
value: r(S)
|
|
3314
|
+
}, null, 8, ["label", "value"])) : B("", !0)
|
|
3315
3315
|
], 64))), 128))
|
|
3316
3316
|
]),
|
|
3317
3317
|
_: 2
|
|
3318
|
-
}, 1032, ["label"])) :
|
|
3318
|
+
}, 1032, ["label"])) : B("", !0)
|
|
3319
3319
|
], 64)) : (i(), h(y, {
|
|
3320
3320
|
key: 1,
|
|
3321
3321
|
label: "" + E.meta.title,
|
|
@@ -3327,12 +3327,12 @@ const Xl = /* @__PURE__ */ P(Jl, [["render", Ql]]), Zl = /* @__PURE__ */ z({
|
|
|
3327
3327
|
}, 8, ["modelValue"]);
|
|
3328
3328
|
};
|
|
3329
3329
|
}
|
|
3330
|
-
}),
|
|
3331
|
-
var
|
|
3332
|
-
const
|
|
3330
|
+
}), os = /* @__PURE__ */ P(ns, [["__scopeId", "data-v-1821c9c2"]]);
|
|
3331
|
+
var K = /* @__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))(K || {}), G = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(G || {});
|
|
3332
|
+
const ls = /* @__PURE__ */ z({
|
|
3333
3333
|
__name: "index",
|
|
3334
3334
|
setup(e) {
|
|
3335
|
-
const t = ee(), n = N(), o = V(), l =
|
|
3335
|
+
const t = ee(), n = N(), o = V(), l = w(() => t.sidebar), s = w(() => n.remoteRouter), a = w(() => n.customRouter), r = Ie(), p = Y(), d = w(() => {
|
|
3336
3336
|
let g = [];
|
|
3337
3337
|
return r.options.routes.concat(a.value || []).forEach((I) => {
|
|
3338
3338
|
I.path === "/" ? g = g.concat(I.children || []) : g.push(I);
|
|
@@ -3340,7 +3340,7 @@ const es = /* @__PURE__ */ z({
|
|
|
3340
3340
|
{ label: "", routes: g },
|
|
3341
3341
|
...s.value
|
|
3342
3342
|
]);
|
|
3343
|
-
}),
|
|
3343
|
+
}), f = w(() => {
|
|
3344
3344
|
const g = p.matched;
|
|
3345
3345
|
for (let I = g.length - 1; I >= 0; I--) {
|
|
3346
3346
|
const F = g[I];
|
|
@@ -3348,48 +3348,48 @@ const es = /* @__PURE__ */ z({
|
|
|
3348
3348
|
return E(), r.resolve(F.redirect ? F.redirect : F).fullPath;
|
|
3349
3349
|
}
|
|
3350
3350
|
return "";
|
|
3351
|
-
}), y =
|
|
3351
|
+
}), y = w(() => o.sidebarLogo), _ = w(() => ({
|
|
3352
3352
|
menuBg: "#304156",
|
|
3353
3353
|
menuText: "#bfcbd9",
|
|
3354
3354
|
menuActiveText: "#409EFF"
|
|
3355
|
-
})), C =
|
|
3356
|
-
|
|
3355
|
+
})), C = w(() => !l.value.opened);
|
|
3356
|
+
xe(() => E());
|
|
3357
3357
|
function E() {
|
|
3358
|
-
|
|
3358
|
+
yt("is-active", 200);
|
|
3359
3359
|
}
|
|
3360
|
-
function
|
|
3361
|
-
return g.filter((I) => [G.dir, G.menu].indexOf(I.meta.menuType) !== -1).map((I) => (I = Object.assign({}, I), I.children && (I.children =
|
|
3360
|
+
function S(g) {
|
|
3361
|
+
return g.filter((I) => [G.dir, G.menu].indexOf(I.meta.menuType) !== -1).map((I) => (I = Object.assign({}, I), I.children && (I.children = S(I.children)), I));
|
|
3362
3362
|
}
|
|
3363
3363
|
return (g, I) => {
|
|
3364
|
-
const F =
|
|
3364
|
+
const F = Qn, le = Wn;
|
|
3365
3365
|
return i(), b("div", {
|
|
3366
|
-
class: Q({ "has-logo":
|
|
3366
|
+
class: Q({ "has-logo": m(y) })
|
|
3367
3367
|
}, [
|
|
3368
|
-
|
|
3368
|
+
m(y) ? (i(), h(Gl, {
|
|
3369
3369
|
key: 0,
|
|
3370
|
-
collapse:
|
|
3371
|
-
}, null, 8, ["collapse"])) :
|
|
3370
|
+
collapse: m(C)
|
|
3371
|
+
}, null, 8, ["collapse"])) : B("", !0),
|
|
3372
3372
|
u(le, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3373
3373
|
default: c(() => [
|
|
3374
|
-
|
|
3374
|
+
m(C) ? B("", !0) : (i(), h(os, { key: 0 })),
|
|
3375
3375
|
u(F, {
|
|
3376
|
-
"default-active":
|
|
3377
|
-
collapse:
|
|
3378
|
-
"background-color":
|
|
3379
|
-
"text-color":
|
|
3376
|
+
"default-active": m(f),
|
|
3377
|
+
collapse: m(C),
|
|
3378
|
+
"background-color": m(_).menuBg,
|
|
3379
|
+
"text-color": m(_).menuText,
|
|
3380
3380
|
"unique-opened": !1,
|
|
3381
|
-
"active-text-color":
|
|
3381
|
+
"active-text-color": m(_).menuActiveText,
|
|
3382
3382
|
"collapse-transition": !1,
|
|
3383
3383
|
mode: "vertical"
|
|
3384
3384
|
}, {
|
|
3385
3385
|
default: c(() => [
|
|
3386
|
-
(i(!0), b(
|
|
3387
|
-
key:
|
|
3386
|
+
(i(!0), b(O, null, j(m(d), (k, U) => (i(), b(O, {
|
|
3387
|
+
key: U + "-module"
|
|
3388
3388
|
}, [
|
|
3389
|
-
(i(!0), b(
|
|
3390
|
-
key:
|
|
3391
|
-
item:
|
|
3392
|
-
to: g.$router.resolve(
|
|
3389
|
+
(i(!0), b(O, null, j(S(k.routes), (J) => (i(), h(ts, {
|
|
3390
|
+
key: J.path,
|
|
3391
|
+
item: J,
|
|
3392
|
+
to: g.$router.resolve(J.redirect ? J.redirect : J).fullPath
|
|
3393
3393
|
}, null, 8, ["item", "to"]))), 128))
|
|
3394
3394
|
], 64))), 128))
|
|
3395
3395
|
]),
|
|
@@ -3401,133 +3401,133 @@ const es = /* @__PURE__ */ z({
|
|
|
3401
3401
|
], 2);
|
|
3402
3402
|
};
|
|
3403
3403
|
}
|
|
3404
|
-
}),
|
|
3404
|
+
}), ss = /* @__PURE__ */ P(ls, [["__scopeId", "data-v-5b1cbaf5"]]), as = { class: "app-main" }, is = {
|
|
3405
3405
|
__name: "AppMain",
|
|
3406
3406
|
setup(e) {
|
|
3407
3407
|
const t = Y(), n = [], o = $(0);
|
|
3408
|
-
return
|
|
3408
|
+
return Pn(() => {
|
|
3409
3409
|
t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
|
|
3410
3410
|
}), (l, s) => {
|
|
3411
|
-
const a = A("router-view"), r =
|
|
3412
|
-
return i(), b("section",
|
|
3411
|
+
const a = A("router-view"), r = Xn;
|
|
3412
|
+
return i(), b("section", as, [
|
|
3413
3413
|
(i(), h(a, {
|
|
3414
|
-
key: l.$route.fullPath +
|
|
3414
|
+
key: l.$route.fullPath + m(o)
|
|
3415
3415
|
})),
|
|
3416
3416
|
u(r, { bottom: 50 })
|
|
3417
3417
|
]);
|
|
3418
3418
|
};
|
|
3419
3419
|
}
|
|
3420
|
-
},
|
|
3420
|
+
}, rs = /* @__PURE__ */ P(is, [["__scopeId", "data-v-ca0f0d98"]]), cs = { class: "main-container" }, us = 992, ps = {
|
|
3421
3421
|
__name: "index",
|
|
3422
3422
|
setup(e) {
|
|
3423
|
-
const { body: t } = document, n = ee(), o = V(), l =
|
|
3423
|
+
const { body: t } = document, n = ee(), o = V(), l = w(() => n.sidebar), s = w(() => n.device), a = w(() => o.fixedHeader), r = w(() => ({
|
|
3424
3424
|
hideSidebar: !l.value.opened,
|
|
3425
3425
|
openSidebar: l.value.opened,
|
|
3426
3426
|
withoutAnimation: l.value.withoutAnimation,
|
|
3427
3427
|
mobile: s.value === "mobile"
|
|
3428
|
-
})), p = () => t.getBoundingClientRect().width - 1 <
|
|
3429
|
-
|
|
3430
|
-
const
|
|
3428
|
+
})), p = () => t.getBoundingClientRect().width - 1 < us;
|
|
3429
|
+
io(window, "resize", () => f());
|
|
3430
|
+
const d = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
|
|
3431
3431
|
if (!document.hidden) {
|
|
3432
3432
|
const y = p();
|
|
3433
3433
|
n.toggleDevice(y ? "mobile" : "desktop"), y && n.closeSideBar({ withoutAnimation: !0 });
|
|
3434
3434
|
}
|
|
3435
3435
|
};
|
|
3436
3436
|
return (y, _) => (i(), b("div", {
|
|
3437
|
-
class: Q([
|
|
3437
|
+
class: Q([m(r), "app-wrapper"])
|
|
3438
3438
|
}, [
|
|
3439
|
-
|
|
3439
|
+
m(s) === "mobile" && m(l).opened ? (i(), b("div", {
|
|
3440
3440
|
key: 0,
|
|
3441
3441
|
class: "drawer-bg",
|
|
3442
|
-
onClick:
|
|
3443
|
-
})) :
|
|
3444
|
-
u(
|
|
3445
|
-
v("div",
|
|
3442
|
+
onClick: d
|
|
3443
|
+
})) : B("", !0),
|
|
3444
|
+
u(m(ss), { class: "sidebar-container" }),
|
|
3445
|
+
v("div", cs, [
|
|
3446
3446
|
v("div", {
|
|
3447
|
-
class: Q({ "fixed-header":
|
|
3447
|
+
class: Q({ "fixed-header": m(a) })
|
|
3448
3448
|
}, [
|
|
3449
|
-
u(
|
|
3449
|
+
u(m(Nl))
|
|
3450
3450
|
], 2),
|
|
3451
|
-
u(
|
|
3451
|
+
u(m(rs))
|
|
3452
3452
|
])
|
|
3453
3453
|
], 2));
|
|
3454
3454
|
}
|
|
3455
|
-
},
|
|
3455
|
+
}, jt = /* @__PURE__ */ P(ps, [["__scopeId", "data-v-b7ab74f0"]]), ds = { id: "login" }, fs = { id: "form" }, ms = {
|
|
3456
3456
|
key: 0,
|
|
3457
3457
|
class: "captcha"
|
|
3458
|
-
},
|
|
3458
|
+
}, hs = ["src"], bs = { class: "tips" }, ys = { class: "sso" }, _s = /* @__PURE__ */ z({
|
|
3459
3459
|
__name: "login",
|
|
3460
3460
|
setup(e) {
|
|
3461
|
-
const t =
|
|
3461
|
+
const t = Ie(), n = Y(), o = V(), l = ee(), s = N(), a = w(() => o.loginTips), r = w(() => o.captcha), p = w(() => l.baseURL), d = $(0), f = () => d.value++, y = w(() => _.value.username.length > 0 && _.value.password.length >= 4 && (r.value ? _.value.captcha.length === 4 : !0)), _ = $({
|
|
3462
3462
|
username: "",
|
|
3463
3463
|
password: "",
|
|
3464
3464
|
captcha: "",
|
|
3465
3465
|
sing: ""
|
|
3466
3466
|
}), C = () => {
|
|
3467
3467
|
if (_.value.username === "" || _.value.password === "" || r.value && _.value.captcha === "") {
|
|
3468
|
-
|
|
3468
|
+
Zn.error("用户名, 密码, 验证码是必须的");
|
|
3469
3469
|
return;
|
|
3470
3470
|
}
|
|
3471
|
-
r.value && (_.value.sing =
|
|
3471
|
+
r.value && (_.value.sing = co.MD5(`${_.value.username}${_.value.password}${_.value.captcha}`).toString()), s.login(_.value).then((E) => {
|
|
3472
3472
|
t.push({ path: n.query?.redirect || "/" });
|
|
3473
3473
|
}).catch((E) => {
|
|
3474
|
-
|
|
3474
|
+
d.value++;
|
|
3475
3475
|
});
|
|
3476
3476
|
};
|
|
3477
|
-
return (E,
|
|
3478
|
-
|
|
3479
|
-
v("form",
|
|
3480
|
-
|
|
3481
|
-
"onUpdate:modelValue":
|
|
3477
|
+
return (E, S) => (i(), b("div", ds, [
|
|
3478
|
+
S[4] || (S[4] = v("h1", { id: "title" }, "登录", -1)),
|
|
3479
|
+
v("form", fs, [
|
|
3480
|
+
_e(v("input", {
|
|
3481
|
+
"onUpdate:modelValue": S[0] || (S[0] = (g) => m(_).username = g),
|
|
3482
3482
|
type: "text",
|
|
3483
3483
|
placeholder: "用户名",
|
|
3484
3484
|
class: "input"
|
|
3485
3485
|
}, null, 512), [
|
|
3486
|
-
[
|
|
3486
|
+
[$e, m(_).username]
|
|
3487
3487
|
]),
|
|
3488
|
-
|
|
3489
|
-
"onUpdate:modelValue":
|
|
3488
|
+
_e(v("input", {
|
|
3489
|
+
"onUpdate:modelValue": S[1] || (S[1] = (g) => m(_).password = g),
|
|
3490
3490
|
type: "password",
|
|
3491
3491
|
placeholder: "密码",
|
|
3492
3492
|
class: "input"
|
|
3493
3493
|
}, null, 512), [
|
|
3494
|
-
[
|
|
3494
|
+
[$e, m(_).password]
|
|
3495
3495
|
]),
|
|
3496
|
-
r.value ? (i(), b("div",
|
|
3497
|
-
|
|
3498
|
-
"onUpdate:modelValue":
|
|
3496
|
+
r.value ? (i(), b("div", ms, [
|
|
3497
|
+
_e(v("input", {
|
|
3498
|
+
"onUpdate:modelValue": S[2] || (S[2] = (g) => m(_).captcha = g),
|
|
3499
3499
|
type: "text",
|
|
3500
3500
|
placeholder: "验证码",
|
|
3501
3501
|
class: "input-captcha"
|
|
3502
3502
|
}, null, 512), [
|
|
3503
|
-
[
|
|
3503
|
+
[$e, m(_).captcha]
|
|
3504
3504
|
]),
|
|
3505
3505
|
v("img", {
|
|
3506
3506
|
class: "captcha-img",
|
|
3507
|
-
src: p.value + "/user/captcha?ts=" + d
|
|
3507
|
+
src: p.value + "/user/captcha?ts=" + m(d),
|
|
3508
3508
|
title: "点击刷新",
|
|
3509
|
-
onClick:
|
|
3510
|
-
}, null, 8,
|
|
3511
|
-
])) :
|
|
3509
|
+
onClick: f
|
|
3510
|
+
}, null, 8, hs)
|
|
3511
|
+
])) : B("", !0),
|
|
3512
3512
|
v("div", {
|
|
3513
3513
|
class: Q({ input: !0, button: !0, "no-ready": !y.value }),
|
|
3514
3514
|
onClick: C
|
|
3515
3515
|
}, "登录", 2),
|
|
3516
|
-
v("div",
|
|
3516
|
+
v("div", bs, [
|
|
3517
3517
|
v("div", null, M(a.value), 1)
|
|
3518
3518
|
]),
|
|
3519
|
-
v("div",
|
|
3520
|
-
|
|
3521
|
-
(i(!0), b(
|
|
3519
|
+
v("div", ys, [
|
|
3520
|
+
S[3] || (S[3] = v("div", { id: "sso-qrcode" }, null, -1)),
|
|
3521
|
+
(i(!0), b(O, null, j(Object.keys([]), (g) => (i(), b("div", { key: g }, M(g), 1))), 128))
|
|
3522
3522
|
])
|
|
3523
3523
|
])
|
|
3524
3524
|
]));
|
|
3525
3525
|
}
|
|
3526
|
-
}),
|
|
3526
|
+
}), vs = {
|
|
3527
3527
|
name: "NotFoundPage"
|
|
3528
|
-
},
|
|
3529
|
-
function
|
|
3530
|
-
return i(), b("div",
|
|
3528
|
+
}, gs = { class: "not-found" };
|
|
3529
|
+
function ks(e, t, n, o, l, s) {
|
|
3530
|
+
return i(), b("div", gs, [...t[0] || (t[0] = [
|
|
3531
3531
|
v("svg", {
|
|
3532
3532
|
width: "380px",
|
|
3533
3533
|
height: "500px",
|
|
@@ -3596,10 +3596,10 @@ function ys(e, t, n, o, l, s) {
|
|
|
3596
3596
|
], -1)
|
|
3597
3597
|
])]);
|
|
3598
3598
|
}
|
|
3599
|
-
const
|
|
3599
|
+
const Ss = /* @__PURE__ */ P(vs, [["render", ks], ["__scopeId", "data-v-26068803"]]), ws = [
|
|
3600
3600
|
{
|
|
3601
3601
|
path: "/",
|
|
3602
|
-
component:
|
|
3602
|
+
component: jt,
|
|
3603
3603
|
redirect: "/dashboard",
|
|
3604
3604
|
name: "Root",
|
|
3605
3605
|
meta: {
|
|
@@ -3609,49 +3609,49 @@ const _s = /* @__PURE__ */ P(hs, [["render", ys], ["__scopeId", "data-v-26068803
|
|
|
3609
3609
|
{
|
|
3610
3610
|
path: "dashboard",
|
|
3611
3611
|
name: "Dashboard",
|
|
3612
|
-
component:
|
|
3612
|
+
component: Ro,
|
|
3613
3613
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
3614
3614
|
}
|
|
3615
3615
|
]
|
|
3616
3616
|
},
|
|
3617
3617
|
{
|
|
3618
3618
|
path: "/login",
|
|
3619
|
-
component:
|
|
3619
|
+
component: _s,
|
|
3620
3620
|
meta: { title: "用户登录", menuType: 0 },
|
|
3621
3621
|
hidden: !0
|
|
3622
3622
|
},
|
|
3623
3623
|
{
|
|
3624
3624
|
path: "/404",
|
|
3625
|
-
component:
|
|
3625
|
+
component: Ss,
|
|
3626
3626
|
meta: { menuType: 0 },
|
|
3627
3627
|
hidden: !0
|
|
3628
3628
|
}
|
|
3629
|
-
], ne =
|
|
3630
|
-
history:
|
|
3631
|
-
routes:
|
|
3629
|
+
], ne = An({
|
|
3630
|
+
history: Rn(),
|
|
3631
|
+
routes: ws
|
|
3632
3632
|
});
|
|
3633
|
-
|
|
3634
|
-
function
|
|
3633
|
+
Me.configure({ showSpinner: !1 });
|
|
3634
|
+
function xs(e) {
|
|
3635
3635
|
e.beforeEach((t, n, o) => {
|
|
3636
|
-
|
|
3636
|
+
Me.start(), t.preHash = location.hash.replace("#", ""), o();
|
|
3637
3637
|
}), e.afterEach((t) => {
|
|
3638
|
-
const n = N(
|
|
3638
|
+
const n = N(R);
|
|
3639
3639
|
t.matched.length > 0 && n.updateState({
|
|
3640
3640
|
key: "path",
|
|
3641
3641
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
3642
|
-
}),
|
|
3642
|
+
}), Me.done();
|
|
3643
3643
|
});
|
|
3644
3644
|
}
|
|
3645
|
-
function
|
|
3646
|
-
return N(
|
|
3645
|
+
function Es() {
|
|
3646
|
+
return N(R).isLodeRemoteRoutes;
|
|
3647
3647
|
}
|
|
3648
|
-
function
|
|
3649
|
-
return V(
|
|
3648
|
+
function Nt() {
|
|
3649
|
+
return V(R).whiteRoutes || [];
|
|
3650
3650
|
}
|
|
3651
|
-
function
|
|
3652
|
-
return N(
|
|
3651
|
+
function Is() {
|
|
3652
|
+
return N(R).token;
|
|
3653
3653
|
}
|
|
3654
|
-
class
|
|
3654
|
+
class Vt {
|
|
3655
3655
|
type = "qrcode";
|
|
3656
3656
|
flag() {
|
|
3657
3657
|
}
|
|
@@ -3661,14 +3661,14 @@ class jt {
|
|
|
3661
3661
|
showQrCode() {
|
|
3662
3662
|
}
|
|
3663
3663
|
}
|
|
3664
|
-
class
|
|
3664
|
+
class Gi extends Vt {
|
|
3665
3665
|
type = "jump";
|
|
3666
3666
|
client_id = "";
|
|
3667
3667
|
constructor(t) {
|
|
3668
3668
|
super(), this.client_id = t.client_id;
|
|
3669
3669
|
}
|
|
3670
3670
|
flag() {
|
|
3671
|
-
const t =
|
|
3671
|
+
const t = _t("code");
|
|
3672
3672
|
if (t)
|
|
3673
3673
|
return {
|
|
3674
3674
|
ticket: t,
|
|
@@ -3680,7 +3680,7 @@ class Ri extends jt {
|
|
|
3680
3680
|
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
|
|
3681
3681
|
}
|
|
3682
3682
|
}
|
|
3683
|
-
class
|
|
3683
|
+
class zi extends Vt {
|
|
3684
3684
|
type = "qrcode";
|
|
3685
3685
|
qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
3686
3686
|
reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
@@ -3693,7 +3693,7 @@ class Mi extends jt {
|
|
|
3693
3693
|
super();
|
|
3694
3694
|
}
|
|
3695
3695
|
flag() {
|
|
3696
|
-
const t =
|
|
3696
|
+
const t = _t("code");
|
|
3697
3697
|
if (t)
|
|
3698
3698
|
return {
|
|
3699
3699
|
ticket: t,
|
|
@@ -3706,7 +3706,7 @@ class Mi extends jt {
|
|
|
3706
3706
|
appid: this.appid,
|
|
3707
3707
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
3708
3708
|
};
|
|
3709
|
-
return ae(this.reloadUrl, s) + "&" +
|
|
3709
|
+
return ae(this.reloadUrl, s) + "&" + Sn(l || {});
|
|
3710
3710
|
}, n = () => {
|
|
3711
3711
|
const l = {
|
|
3712
3712
|
goto: encodeURIComponent(t()),
|
|
@@ -3717,52 +3717,52 @@ class Mi extends jt {
|
|
|
3717
3717
|
const { origin: s, data: a } = l;
|
|
3718
3718
|
s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
|
|
3719
3719
|
};
|
|
3720
|
-
this.iframe.src = n(),
|
|
3720
|
+
this.iframe.src = n(), kn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
3721
3721
|
"message",
|
|
3722
3722
|
(l) => o(l),
|
|
3723
3723
|
!1
|
|
3724
3724
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
|
|
3725
3725
|
}
|
|
3726
3726
|
}
|
|
3727
|
-
const
|
|
3728
|
-
function
|
|
3729
|
-
return
|
|
3727
|
+
const Cs = {};
|
|
3728
|
+
function Ts() {
|
|
3729
|
+
return q(V(R).sso || {}, Cs);
|
|
3730
3730
|
}
|
|
3731
|
-
function
|
|
3732
|
-
const e =
|
|
3731
|
+
function $s() {
|
|
3732
|
+
const e = Ts(), t = V(R).activeSsoKey || "", n = e[t];
|
|
3733
3733
|
if (n !== void 0)
|
|
3734
3734
|
return n();
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3736
|
+
function Bs(e) {
|
|
3737
3737
|
e.beforeEach(async (t, n, o) => {
|
|
3738
|
-
if (
|
|
3738
|
+
if (Nt().indexOf(t.path) !== -1) {
|
|
3739
3739
|
o();
|
|
3740
3740
|
return;
|
|
3741
3741
|
}
|
|
3742
|
-
if (
|
|
3742
|
+
if (Is()) {
|
|
3743
3743
|
t.query?.redirect ? o(t.query?.redirect) : o();
|
|
3744
3744
|
return;
|
|
3745
3745
|
}
|
|
3746
|
-
const s = t.query.redirect || t.path, a =
|
|
3746
|
+
const s = t.query.redirect || t.path, a = $s();
|
|
3747
3747
|
if (!a) {
|
|
3748
3748
|
o(`/login?redirect=${s}`);
|
|
3749
3749
|
return;
|
|
3750
3750
|
}
|
|
3751
|
-
const r = a.flag(), p = N(
|
|
3752
|
-
if (r && await p.login(
|
|
3751
|
+
const r = a.flag(), p = N(R);
|
|
3752
|
+
if (r && await p.login(In(r) ? r : { ticket: r })) {
|
|
3753
3753
|
o();
|
|
3754
3754
|
return;
|
|
3755
3755
|
}
|
|
3756
3756
|
a.jumpToLoginPage(o, `/login?redirect=${s}`);
|
|
3757
3757
|
});
|
|
3758
3758
|
}
|
|
3759
|
-
const
|
|
3760
|
-
function
|
|
3761
|
-
return i(), b("div",
|
|
3759
|
+
const Os = {}, Ps = { class: "loading preloader" };
|
|
3760
|
+
function As(e, t) {
|
|
3761
|
+
return i(), b("div", Ps, [...t[0] || (t[0] = [
|
|
3762
3762
|
v("div", { class: "preloader-inner" }, null, -1)
|
|
3763
3763
|
])]);
|
|
3764
3764
|
}
|
|
3765
|
-
const
|
|
3765
|
+
const Rs = /* @__PURE__ */ P(Os, [["render", As]]), Ls = {
|
|
3766
3766
|
name: "VNotice",
|
|
3767
3767
|
props: {
|
|
3768
3768
|
dataApi: {
|
|
@@ -3791,52 +3791,52 @@ const Os = /* @__PURE__ */ P(Cs, [["render", $s]]), Bs = {
|
|
|
3791
3791
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
3792
3792
|
}
|
|
3793
3793
|
};
|
|
3794
|
-
function
|
|
3794
|
+
function Ms(e, t, n, o, l, s) {
|
|
3795
3795
|
const a = Ke;
|
|
3796
3796
|
return i(), b("div", null, [
|
|
3797
|
-
l.hasNotice ? (i(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) :
|
|
3797
|
+
l.hasNotice ? (i(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
|
|
3798
3798
|
]);
|
|
3799
3799
|
}
|
|
3800
|
-
const
|
|
3800
|
+
const Ds = /* @__PURE__ */ P(Ls, [["render", Ms]]), js = ["innerHTML"], Ns = /* @__PURE__ */ z({
|
|
3801
3801
|
__name: "PageLoad",
|
|
3802
3802
|
props: {
|
|
3803
3803
|
schemaHandler: { type: Function, default: (e) => e },
|
|
3804
3804
|
schemaApi: { default: "" }
|
|
3805
3805
|
},
|
|
3806
3806
|
setup(e) {
|
|
3807
|
-
const t = e, n = ee(), o = V(), l = N(), s = Y(), a = $(!0), r = $(!1), p = $({}),
|
|
3808
|
-
return
|
|
3809
|
-
const
|
|
3807
|
+
const t = e, n = ee(), o = V(), l = N(), s = Y(), a = $(!0), r = $(!1), p = $({}), d = $(""), f = $({}), y = $([]), _ = $(!1), C = w(() => l.env), E = w(() => o);
|
|
3808
|
+
return Ue(() => {
|
|
3809
|
+
const S = s.path.split("/").filter((k) => k), g = S.length > 1 ? S.slice(0, S.length - 1).join("/") : S[0], I = "/schema" + s.meta.path, F = { params: s.params };
|
|
3810
3810
|
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || I, F).then(({ data: k }) => {
|
|
3811
|
-
a.value = !1, ie(k) && (k.notice !== void 0 && (r.value = !0,
|
|
3811
|
+
a.value = !1, ie(k) && (k.notice !== void 0 && (r.value = !0, Fe(k.notice) ? p.value = { title: k.notice } : ie(k.notice) && (p.value = k.notice, d.value = k.notice.noticeApi), delete k.notice), y.value = k.ownerNames || [], _.value = k.serviceOffLine || !1), f.value = t.schemaHandler(k, g), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: f.value });
|
|
3812
3812
|
});
|
|
3813
|
-
}), (
|
|
3813
|
+
}), (S, g) => {
|
|
3814
3814
|
const I = Ke;
|
|
3815
|
-
return i(), b(
|
|
3816
|
-
|
|
3815
|
+
return i(), b(O, null, [
|
|
3816
|
+
m(y).length > 0 ? (i(), h(I, {
|
|
3817
3817
|
key: 0,
|
|
3818
|
-
title: `该页面功能对应开发: [ ${
|
|
3818
|
+
title: `该页面功能对应开发: [ ${m(y).join(", ")} ] 有问题可直接企微反馈`,
|
|
3819
3819
|
type: "info",
|
|
3820
3820
|
style: { margin: "0 0 20px 0" },
|
|
3821
3821
|
closable: !1
|
|
3822
|
-
}, null, 8, ["title"])) :
|
|
3823
|
-
|
|
3822
|
+
}, null, 8, ["title"])) : B("", !0),
|
|
3823
|
+
m(C) === "prod" && m(_) ? (i(), b("div", {
|
|
3824
3824
|
key: 1,
|
|
3825
3825
|
class: "offline-notice",
|
|
3826
|
-
innerHTML:
|
|
3827
|
-
}, null, 8,
|
|
3828
|
-
|
|
3826
|
+
innerHTML: m(_) === !0 ? m(E).serviceOffLineNotice : m(_)
|
|
3827
|
+
}, null, 8, js)) : (i(), b(O, { key: 2 }, [
|
|
3828
|
+
m(r) ? (i(), h(Ds, {
|
|
3829
3829
|
key: 0,
|
|
3830
|
-
notice:
|
|
3830
|
+
notice: m(p),
|
|
3831
3831
|
style: { margin: "0 0 20px 0" },
|
|
3832
|
-
"data-api": d
|
|
3833
|
-
}, null, 8, ["notice", "data-api"])) :
|
|
3834
|
-
|
|
3832
|
+
"data-api": m(d)
|
|
3833
|
+
}, null, 8, ["notice", "data-api"])) : B("", !0),
|
|
3834
|
+
m(a) ? (i(), h(Rs, { key: 1 })) : pe(S.$slots, "default", Z(X({ key: 2 }, m(f))), void 0, !0)
|
|
3835
3835
|
], 64))
|
|
3836
3836
|
], 64);
|
|
3837
3837
|
};
|
|
3838
3838
|
}
|
|
3839
|
-
}),
|
|
3839
|
+
}), ye = /* @__PURE__ */ P(Ns, [["__scopeId", "data-v-e330fdc7"]]), Ut = {
|
|
3840
3840
|
__name: "table",
|
|
3841
3841
|
setup(e) {
|
|
3842
3842
|
const t = (n, o) => {
|
|
@@ -3845,46 +3845,46 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
|
|
|
3845
3845
|
prop: n.orderBy.field,
|
|
3846
3846
|
order: n.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
3847
3847
|
};
|
|
3848
|
-
n.tableProps =
|
|
3848
|
+
n.tableProps = q(n.tableProps, { defaultSort: s });
|
|
3849
3849
|
}
|
|
3850
|
-
const l = Object.keys(
|
|
3850
|
+
const l = Object.keys(me.props);
|
|
3851
3851
|
return Object.keys(n).forEach((s) => {
|
|
3852
3852
|
l.indexOf(s) === -1 && delete n[s];
|
|
3853
3853
|
}), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
|
|
3854
3854
|
};
|
|
3855
|
-
return (n, o) => (i(), h(
|
|
3855
|
+
return (n, o) => (i(), h(ye, { "schema-handler": t }, {
|
|
3856
3856
|
default: c((l) => [
|
|
3857
|
-
u(
|
|
3857
|
+
u(m(me), Z(re(l)), null, 16)
|
|
3858
3858
|
]),
|
|
3859
3859
|
_: 1
|
|
3860
3860
|
}));
|
|
3861
3861
|
}
|
|
3862
|
-
},
|
|
3862
|
+
}, Ne = {
|
|
3863
3863
|
__name: "form",
|
|
3864
3864
|
setup(e) {
|
|
3865
|
-
const t = Y(), n =
|
|
3866
|
-
const
|
|
3867
|
-
return Object.keys(r).forEach((
|
|
3868
|
-
if (
|
|
3869
|
-
delete r[
|
|
3865
|
+
const t = Y(), n = Ie(), o = (r, p) => {
|
|
3866
|
+
const d = Object.keys(te.props);
|
|
3867
|
+
return Object.keys(r).forEach((f) => {
|
|
3868
|
+
if (d.indexOf(f) === -1) {
|
|
3869
|
+
delete r[f];
|
|
3870
3870
|
return;
|
|
3871
3871
|
}
|
|
3872
|
-
/.*Api$/.test(
|
|
3873
|
-
}), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${p}/update/${t.params.id}`, r.getApi || (r.getApi = `/${p}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${p}/create`)), r =
|
|
3872
|
+
/.*Api$/.test(f) && (r[f] = ae(r[f], t.params));
|
|
3873
|
+
}), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${p}/update/${t.params.id}`, r.getApi || (r.getApi = `/${p}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${p}/create`)), r = q({
|
|
3874
3874
|
saveApi: p + "/save",
|
|
3875
3875
|
afterSubmit: "goback",
|
|
3876
3876
|
afterReset: "goback",
|
|
3877
3877
|
mod: t.params.id ? "edit" : "create"
|
|
3878
3878
|
}, r), r;
|
|
3879
3879
|
}, l = $(0), s = () => {
|
|
3880
|
-
|
|
3880
|
+
Jt.request({
|
|
3881
3881
|
url: "/form_mutex",
|
|
3882
3882
|
method: "get",
|
|
3883
3883
|
params: {
|
|
3884
3884
|
path: t.fullPath
|
|
3885
3885
|
}
|
|
3886
3886
|
}).then((r) => {
|
|
3887
|
-
r.data && (clearInterval(l.value),
|
|
3887
|
+
r.data && (clearInterval(l.value), St.alert(`${r.data}`, "操作提醒", {
|
|
3888
3888
|
showClose: !1,
|
|
3889
3889
|
showCancelButton: !0,
|
|
3890
3890
|
confirmButtonText: "返回",
|
|
@@ -3895,23 +3895,23 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
|
|
|
3895
3895
|
}));
|
|
3896
3896
|
});
|
|
3897
3897
|
};
|
|
3898
|
-
|
|
3898
|
+
xe(() => {
|
|
3899
3899
|
const r = V();
|
|
3900
3900
|
t.params.id !== void 0 && r.formMutex && (s(), l.value = setInterval(s, 2e3));
|
|
3901
|
-
}),
|
|
3901
|
+
}), rn(() => {
|
|
3902
3902
|
clearInterval(l.value);
|
|
3903
3903
|
});
|
|
3904
3904
|
function a() {
|
|
3905
3905
|
t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
|
|
3906
3906
|
}
|
|
3907
|
-
return (r, p) => (i(), h(
|
|
3908
|
-
default: c((
|
|
3909
|
-
u(
|
|
3907
|
+
return (r, p) => (i(), h(ye, { "schema-handler": o }, {
|
|
3908
|
+
default: c((d) => [
|
|
3909
|
+
u(m(te), Z(re(d)), null, 16)
|
|
3910
3910
|
]),
|
|
3911
3911
|
_: 1
|
|
3912
3912
|
}));
|
|
3913
3913
|
}
|
|
3914
|
-
},
|
|
3914
|
+
}, Vs = z({
|
|
3915
3915
|
name: "VTree",
|
|
3916
3916
|
components: {
|
|
3917
3917
|
VForm: te
|
|
@@ -3967,7 +3967,7 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
|
|
|
3967
3967
|
// 1 新增, 2 编辑
|
|
3968
3968
|
treeData: [],
|
|
3969
3969
|
formData: {},
|
|
3970
|
-
localTreeProps:
|
|
3970
|
+
localTreeProps: q({
|
|
3971
3971
|
"default-expand-all": !0,
|
|
3972
3972
|
"expand-on-click-node": !1,
|
|
3973
3973
|
props: {
|
|
@@ -4010,7 +4010,7 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
|
|
|
4010
4010
|
},
|
|
4011
4011
|
append(e, t) {
|
|
4012
4012
|
this.type = 1;
|
|
4013
|
-
const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...
|
|
4013
|
+
const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...wn(this.$props.props?.effectData, e) };
|
|
4014
4014
|
e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
|
|
4015
4015
|
},
|
|
4016
4016
|
canAppend(e, t) {
|
|
@@ -4051,25 +4051,25 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
|
|
|
4051
4051
|
});
|
|
4052
4052
|
}
|
|
4053
4053
|
}
|
|
4054
|
-
}),
|
|
4054
|
+
}), Us = { class: "card-header" }, qs = { class: "tree-action" }, Hs = { key: 0 }, Fs = {
|
|
4055
4055
|
key: 1,
|
|
4056
4056
|
style: { color: "#E6A23C" }
|
|
4057
|
-
},
|
|
4058
|
-
function
|
|
4059
|
-
const a = we, r =
|
|
4057
|
+
}, Gs = { class: "card-header" };
|
|
4058
|
+
function zs(e, t, n, o, l, s) {
|
|
4059
|
+
const a = we, r = Yn, p = We, d = Ce, f = A("v-form"), y = he;
|
|
4060
4060
|
return i(), h(y, {
|
|
4061
4061
|
class: "tree-box",
|
|
4062
4062
|
gutter: 20
|
|
4063
4063
|
}, {
|
|
4064
4064
|
default: c(() => [
|
|
4065
|
-
u(
|
|
4065
|
+
u(d, {
|
|
4066
4066
|
span: 8,
|
|
4067
4067
|
class: "tree-tree"
|
|
4068
4068
|
}, {
|
|
4069
4069
|
default: c(() => [
|
|
4070
4070
|
u(p, { shadow: "never" }, {
|
|
4071
4071
|
header: c(() => [
|
|
4072
|
-
v("div",
|
|
4072
|
+
v("div", Us, [
|
|
4073
4073
|
t[3] || (t[3] = v("span", null, "列表", -1)),
|
|
4074
4074
|
u(a, {
|
|
4075
4075
|
type: "text",
|
|
@@ -4095,8 +4095,8 @@ function Us(e, t, n, o, l, s) {
|
|
|
4095
4095
|
onNodeDragEnd: e.handleDragEnd
|
|
4096
4096
|
}), {
|
|
4097
4097
|
default: c(({ node: _, data: C }) => [
|
|
4098
|
-
v("span",
|
|
4099
|
-
C[e.localTreeProps.props.label] ? (i(), b("span",
|
|
4098
|
+
v("span", qs, [
|
|
4099
|
+
C[e.localTreeProps.props.label] ? (i(), b("span", Hs, M(C[e.localTreeProps.props.label]), 1)) : (i(), b("span", Fs, "请在右侧表单中修改 --> ")),
|
|
4100
4100
|
v("span", null, [
|
|
4101
4101
|
C[e.localTreeProps.props.label] ? (i(), h(a, {
|
|
4102
4102
|
key: 0,
|
|
@@ -4108,7 +4108,7 @@ function Us(e, t, n, o, l, s) {
|
|
|
4108
4108
|
T("编辑", -1)
|
|
4109
4109
|
])]),
|
|
4110
4110
|
_: 1
|
|
4111
|
-
}, 8, ["onClick"])) :
|
|
4111
|
+
}, 8, ["onClick"])) : B("", !0),
|
|
4112
4112
|
e.canAppend(C, _) ? (i(), h(a, {
|
|
4113
4113
|
key: 1,
|
|
4114
4114
|
class: "button",
|
|
@@ -4119,7 +4119,7 @@ function Us(e, t, n, o, l, s) {
|
|
|
4119
4119
|
T("添加", -1)
|
|
4120
4120
|
])]),
|
|
4121
4121
|
_: 1
|
|
4122
|
-
}, 8, ["onClick"])) :
|
|
4122
|
+
}, 8, ["onClick"])) : B("", !0),
|
|
4123
4123
|
C.children === void 0 || C.children.length === 0 ? (i(), h(a, {
|
|
4124
4124
|
key: 2,
|
|
4125
4125
|
class: "button",
|
|
@@ -4130,19 +4130,19 @@ function Us(e, t, n, o, l, s) {
|
|
|
4130
4130
|
T("删除", -1)
|
|
4131
4131
|
])]),
|
|
4132
4132
|
_: 1
|
|
4133
|
-
}, 8, ["onClick"])) :
|
|
4133
|
+
}, 8, ["onClick"])) : B("", !0)
|
|
4134
4134
|
])
|
|
4135
4135
|
])
|
|
4136
4136
|
]),
|
|
4137
4137
|
_: 1
|
|
4138
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4138
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : B("", !0)
|
|
4139
4139
|
]),
|
|
4140
4140
|
_: 1
|
|
4141
4141
|
})
|
|
4142
4142
|
]),
|
|
4143
4143
|
_: 1
|
|
4144
4144
|
}),
|
|
4145
|
-
u(
|
|
4145
|
+
u(d, {
|
|
4146
4146
|
span: 16,
|
|
4147
4147
|
class: "tree-form"
|
|
4148
4148
|
}, {
|
|
@@ -4152,19 +4152,19 @@ function Us(e, t, n, o, l, s) {
|
|
|
4152
4152
|
shadow: "never"
|
|
4153
4153
|
}, {
|
|
4154
4154
|
header: c(() => [
|
|
4155
|
-
v("div",
|
|
4155
|
+
v("div", Gs, [
|
|
4156
4156
|
v("span", null, M(e.formType), 1)
|
|
4157
4157
|
])
|
|
4158
4158
|
]),
|
|
4159
4159
|
default: c(() => [
|
|
4160
|
-
(i(), h(
|
|
4160
|
+
(i(), h(f, X({
|
|
4161
4161
|
key: e.formkey,
|
|
4162
4162
|
modelValue: e.formData,
|
|
4163
4163
|
"onUpdate:modelValue": t[1] || (t[1] = (_) => e.formData = _)
|
|
4164
4164
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4165
4165
|
]),
|
|
4166
4166
|
_: 1
|
|
4167
|
-
})) :
|
|
4167
|
+
})) : B("", !0)
|
|
4168
4168
|
]),
|
|
4169
4169
|
_: 1
|
|
4170
4170
|
})
|
|
@@ -4172,18 +4172,18 @@ function Us(e, t, n, o, l, s) {
|
|
|
4172
4172
|
_: 1
|
|
4173
4173
|
});
|
|
4174
4174
|
}
|
|
4175
|
-
const
|
|
4175
|
+
const dt = /* @__PURE__ */ P(Vs, [["render", zs]]), Js = {
|
|
4176
4176
|
__name: "tree",
|
|
4177
4177
|
setup(e) {
|
|
4178
4178
|
const t = (n, o) => {
|
|
4179
|
-
const l = Object.keys(
|
|
4179
|
+
const l = Object.keys(dt.props);
|
|
4180
4180
|
return Object.keys(n).forEach((s) => {
|
|
4181
4181
|
l.indexOf(s) === -1 && delete n[s];
|
|
4182
4182
|
}), n;
|
|
4183
4183
|
};
|
|
4184
|
-
return (n, o) => (i(), h(
|
|
4184
|
+
return (n, o) => (i(), h(ye, { "schema-handler": t }, {
|
|
4185
4185
|
default: c((l) => [
|
|
4186
|
-
u(
|
|
4186
|
+
u(dt, Z(re(l)), null, 16)
|
|
4187
4187
|
]),
|
|
4188
4188
|
_: 1
|
|
4189
4189
|
}));
|
|
@@ -4192,14 +4192,14 @@ const pt = /* @__PURE__ */ P(Ms, [["render", Us]]), Hs = {
|
|
|
4192
4192
|
__name: "container",
|
|
4193
4193
|
setup(e) {
|
|
4194
4194
|
const t = $(0);
|
|
4195
|
-
return
|
|
4195
|
+
return Ln(() => {
|
|
4196
4196
|
t.value++;
|
|
4197
4197
|
}), (n, o) => {
|
|
4198
4198
|
const l = A("router-view");
|
|
4199
4199
|
return i(), h(l);
|
|
4200
4200
|
};
|
|
4201
4201
|
}
|
|
4202
|
-
},
|
|
4202
|
+
}, Ks = {
|
|
4203
4203
|
title: {
|
|
4204
4204
|
text: ""
|
|
4205
4205
|
},
|
|
@@ -4228,34 +4228,34 @@ const pt = /* @__PURE__ */ P(Ms, [["render", Us]]), Hs = {
|
|
|
4228
4228
|
},
|
|
4229
4229
|
series: []
|
|
4230
4230
|
};
|
|
4231
|
-
function
|
|
4231
|
+
function Ws(e, t, n) {
|
|
4232
4232
|
if (n.length === 0)
|
|
4233
4233
|
return {};
|
|
4234
|
-
let o =
|
|
4235
|
-
if (o.title.text = e,
|
|
4234
|
+
let o = q({}, Ks);
|
|
4235
|
+
if (o.title.text = e, Fe(t)) {
|
|
4236
4236
|
const l = [], s = Object.keys(n[0]);
|
|
4237
|
-
let a = s[0], r = s.filter((
|
|
4237
|
+
let a = s[0], r = s.filter((d, f) => f > 0), p = t;
|
|
4238
4238
|
if (t.indexOf(":") > -1) {
|
|
4239
|
-
const
|
|
4240
|
-
p =
|
|
4239
|
+
const d = t.split(":"), f = d[1].split(",");
|
|
4240
|
+
p = d[0], a = f[0], r = f.filter((y, _) => _ > 0);
|
|
4241
4241
|
}
|
|
4242
|
-
r.forEach((
|
|
4243
|
-
const
|
|
4242
|
+
r.forEach((d) => {
|
|
4243
|
+
const f = [];
|
|
4244
4244
|
n.forEach((y) => {
|
|
4245
|
-
|
|
4245
|
+
f.push(y[d]);
|
|
4246
4246
|
}), o.series.push({
|
|
4247
|
-
name:
|
|
4247
|
+
name: d,
|
|
4248
4248
|
type: p,
|
|
4249
4249
|
smooth: !0,
|
|
4250
|
-
data:
|
|
4251
|
-
}), o.legend.data.push(
|
|
4252
|
-
}), n.forEach((
|
|
4253
|
-
l.push(
|
|
4250
|
+
data: f
|
|
4251
|
+
}), o.legend.data.push(d);
|
|
4252
|
+
}), n.forEach((d) => {
|
|
4253
|
+
l.push(d[a]);
|
|
4254
4254
|
}), o.xAxis.data = l;
|
|
4255
4255
|
}
|
|
4256
|
-
return ie(t) && (o =
|
|
4256
|
+
return ie(t) && (o = q(o, t)), o;
|
|
4257
4257
|
}
|
|
4258
|
-
const
|
|
4258
|
+
const Qs = z({
|
|
4259
4259
|
name: "NumberPanel",
|
|
4260
4260
|
props: {
|
|
4261
4261
|
dataList: {
|
|
@@ -4266,27 +4266,27 @@ const zs = z({
|
|
|
4266
4266
|
data() {
|
|
4267
4267
|
return {};
|
|
4268
4268
|
}
|
|
4269
|
-
}),
|
|
4270
|
-
function
|
|
4271
|
-
return i(!0), b(
|
|
4272
|
-
v("div",
|
|
4273
|
-
(i(!0), b(
|
|
4274
|
-
key:
|
|
4269
|
+
}), Xs = { class: "number-panel-title" }, Zs = { class: "number" }, Ys = { class: "name" };
|
|
4270
|
+
function ea(e, t, n, o, l, s) {
|
|
4271
|
+
return i(!0), b(O, null, j(e.dataList, (a, r) => (i(), b("span", { key: r }, [
|
|
4272
|
+
v("div", Xs, [
|
|
4273
|
+
(i(!0), b(O, null, j(Object.keys(a), (p, d) => (i(), b("div", {
|
|
4274
|
+
key: d,
|
|
4275
4275
|
class: "title-inner"
|
|
4276
4276
|
}, [
|
|
4277
|
-
v("p",
|
|
4278
|
-
v("p",
|
|
4277
|
+
v("p", Zs, M(a[p]), 1),
|
|
4278
|
+
v("p", Ys, M(p), 1)
|
|
4279
4279
|
]))), 128))
|
|
4280
4280
|
])
|
|
4281
4281
|
]))), 128);
|
|
4282
4282
|
}
|
|
4283
|
-
const
|
|
4283
|
+
const ta = /* @__PURE__ */ P(Qs, [["render", ea], ["__scopeId", "data-v-cc0d8293"]]), na = {
|
|
4284
4284
|
components: {
|
|
4285
|
-
Chart:
|
|
4286
|
-
Md:
|
|
4287
|
-
Json:
|
|
4288
|
-
Table:
|
|
4289
|
-
Number:
|
|
4285
|
+
Chart: to,
|
|
4286
|
+
Md: ro,
|
|
4287
|
+
Json: Qe,
|
|
4288
|
+
Table: me,
|
|
4289
|
+
Number: ta,
|
|
4290
4290
|
Html: ""
|
|
4291
4291
|
},
|
|
4292
4292
|
props: {
|
|
@@ -4307,14 +4307,14 @@ const Xs = /* @__PURE__ */ P(zs, [["render", Qs], ["__scopeId", "data-v-cc0d8293
|
|
|
4307
4307
|
};
|
|
4308
4308
|
if (l === "chart")
|
|
4309
4309
|
return {
|
|
4310
|
-
options:
|
|
4310
|
+
options: Ws(o.id, o.chart, o.data)
|
|
4311
4311
|
};
|
|
4312
4312
|
if (l === "md")
|
|
4313
4313
|
return {
|
|
4314
4314
|
source: o.data
|
|
4315
4315
|
};
|
|
4316
4316
|
if (l === "table") {
|
|
4317
|
-
if (!
|
|
4317
|
+
if (!vt(o.data))
|
|
4318
4318
|
return { showPagination: !1 };
|
|
4319
4319
|
const s = [];
|
|
4320
4320
|
return o.data[0] && Object.keys(o.data[0]).forEach((a, r) => {
|
|
@@ -4331,21 +4331,21 @@ const Xs = /* @__PURE__ */ P(zs, [["render", Qs], ["__scopeId", "data-v-cc0d8293
|
|
|
4331
4331
|
};
|
|
4332
4332
|
}
|
|
4333
4333
|
};
|
|
4334
|
-
function
|
|
4335
|
-
const a =
|
|
4336
|
-
return
|
|
4334
|
+
function oa(e, t, n, o, l, s) {
|
|
4335
|
+
const a = We, r = cn("resize");
|
|
4336
|
+
return _e((i(), h(a, {
|
|
4337
4337
|
shadow: "never",
|
|
4338
4338
|
class: "part"
|
|
4339
4339
|
}, {
|
|
4340
4340
|
default: c(() => [
|
|
4341
|
-
(i(), h(
|
|
4341
|
+
(i(), h(He(o.comptype()), Z(re(o.compprops(n.option))), null, 16))
|
|
4342
4342
|
]),
|
|
4343
4343
|
_: 1
|
|
4344
4344
|
})), [
|
|
4345
4345
|
[r, !0]
|
|
4346
4346
|
]);
|
|
4347
4347
|
}
|
|
4348
|
-
const
|
|
4348
|
+
const la = /* @__PURE__ */ P(na, [["render", oa], ["__scopeId", "data-v-a5a65cc1"]]), sa = /* @__PURE__ */ z({
|
|
4349
4349
|
__name: "index",
|
|
4350
4350
|
props: {
|
|
4351
4351
|
filter: {
|
|
@@ -4359,12 +4359,12 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
|
|
|
4359
4359
|
},
|
|
4360
4360
|
setup(e) {
|
|
4361
4361
|
const t = Y();
|
|
4362
|
-
|
|
4362
|
+
xe(() => {
|
|
4363
4363
|
});
|
|
4364
4364
|
const n = e, o = $({});
|
|
4365
|
-
|
|
4366
|
-
n.filter?.forEach((
|
|
4367
|
-
|
|
4365
|
+
Ue(() => {
|
|
4366
|
+
n.filter?.forEach((f) => {
|
|
4367
|
+
f.default !== null && (o.value[f.field] = f.default);
|
|
4368
4368
|
});
|
|
4369
4369
|
});
|
|
4370
4370
|
const l = {
|
|
@@ -4377,23 +4377,23 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
|
|
|
4377
4377
|
cancelButton: {
|
|
4378
4378
|
text: "重置"
|
|
4379
4379
|
}
|
|
4380
|
-
}, s = $(1), a = $(n.filter), r = $(n.dataPart), p =
|
|
4381
|
-
let
|
|
4382
|
-
if (!
|
|
4380
|
+
}, s = $(1), a = $(n.filter), r = $(n.dataPart), p = w(() => {
|
|
4381
|
+
let f = t.params.id;
|
|
4382
|
+
if (!f) {
|
|
4383
4383
|
const y = t.path.split("/");
|
|
4384
|
-
|
|
4384
|
+
f = y[y.length - 1];
|
|
4385
4385
|
}
|
|
4386
|
-
return "/focusbi_report/view/" +
|
|
4387
|
-
}),
|
|
4388
|
-
|
|
4386
|
+
return "/focusbi_report/view/" + f;
|
|
4387
|
+
}), d = (f) => {
|
|
4388
|
+
Jt.get(p.value, { params: f }).then(({ data: y }) => {
|
|
4389
4389
|
a.value = y.filter, r.value = y.dataPart, s.value++;
|
|
4390
4390
|
});
|
|
4391
4391
|
};
|
|
4392
|
-
return (
|
|
4393
|
-
const _ =
|
|
4394
|
-
return i(), h(
|
|
4392
|
+
return (f, y) => {
|
|
4393
|
+
const _ = We, C = Ce, E = Ke, S = he;
|
|
4394
|
+
return i(), h(S, null, {
|
|
4395
4395
|
default: c(() => [
|
|
4396
|
-
|
|
4396
|
+
m(a).length > 0 ? (i(), h(C, {
|
|
4397
4397
|
key: 0,
|
|
4398
4398
|
span: 24
|
|
4399
4399
|
}, {
|
|
@@ -4403,24 +4403,24 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
|
|
|
4403
4403
|
class: "part-filter"
|
|
4404
4404
|
}, {
|
|
4405
4405
|
default: c(() => [
|
|
4406
|
-
u(
|
|
4407
|
-
modelValue:
|
|
4406
|
+
u(m(te), {
|
|
4407
|
+
modelValue: m(o),
|
|
4408
4408
|
"onUpdate:modelValue": y[0] || (y[0] = (g) => qe(o) ? o.value = g : null),
|
|
4409
|
-
"form-items":
|
|
4409
|
+
"form-items": m(a),
|
|
4410
4410
|
options: l,
|
|
4411
|
-
onSubmit:
|
|
4411
|
+
onSubmit: d
|
|
4412
4412
|
}, null, 8, ["modelValue", "form-items"])
|
|
4413
4413
|
]),
|
|
4414
4414
|
_: 1
|
|
4415
4415
|
})
|
|
4416
4416
|
]),
|
|
4417
4417
|
_: 1
|
|
4418
|
-
})) :
|
|
4418
|
+
})) : B("", !0),
|
|
4419
4419
|
u(C, { span: 24 }, {
|
|
4420
4420
|
default: c(() => [
|
|
4421
|
-
u(
|
|
4421
|
+
u(S, { gutter: 20 }, {
|
|
4422
4422
|
default: c(() => [
|
|
4423
|
-
(i(!0), b(
|
|
4423
|
+
(i(!0), b(O, null, j(m(r), (g, I) => (i(), h(C, {
|
|
4424
4424
|
key: I,
|
|
4425
4425
|
span: g.col || 24
|
|
4426
4426
|
}, {
|
|
@@ -4434,8 +4434,8 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
|
|
|
4434
4434
|
T(M(g.errMsg), 1)
|
|
4435
4435
|
]),
|
|
4436
4436
|
_: 2
|
|
4437
|
-
}, 1032, ["title"])) : (i(), h(
|
|
4438
|
-
key:
|
|
4437
|
+
}, 1032, ["title"])) : (i(), h(la, {
|
|
4438
|
+
key: m(s),
|
|
4439
4439
|
option: g
|
|
4440
4440
|
}, null, 8, ["option"]))
|
|
4441
4441
|
]),
|
|
@@ -4452,10 +4452,10 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
|
|
|
4452
4452
|
});
|
|
4453
4453
|
};
|
|
4454
4454
|
}
|
|
4455
|
-
}),
|
|
4455
|
+
}), aa = {
|
|
4456
4456
|
__name: "report",
|
|
4457
4457
|
setup(e) {
|
|
4458
|
-
const t = Y(), n =
|
|
4458
|
+
const t = Y(), n = w(() => {
|
|
4459
4459
|
let o = t.params.id;
|
|
4460
4460
|
if (!o) {
|
|
4461
4461
|
const l = t.path.split("/");
|
|
@@ -4463,21 +4463,21 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
|
|
|
4463
4463
|
}
|
|
4464
4464
|
return "/focusbi_report/view/" + o;
|
|
4465
4465
|
});
|
|
4466
|
-
return (o, l) => (i(), h(
|
|
4466
|
+
return (o, l) => (i(), h(ye, { "schema-api": m(n) }, {
|
|
4467
4467
|
default: c((s) => [
|
|
4468
|
-
u(
|
|
4468
|
+
u(sa, Z(re(s)), null, 16)
|
|
4469
4469
|
]),
|
|
4470
4470
|
_: 1
|
|
4471
4471
|
}, 8, ["schema-api"]));
|
|
4472
4472
|
}
|
|
4473
|
-
},
|
|
4474
|
-
card:
|
|
4473
|
+
}, ia = (e) => u("div", null, [e.test]), ra = {
|
|
4474
|
+
card: On,
|
|
4475
4475
|
form: te,
|
|
4476
|
-
table:
|
|
4477
|
-
test:
|
|
4478
|
-
row:
|
|
4479
|
-
col:
|
|
4480
|
-
},
|
|
4476
|
+
table: me,
|
|
4477
|
+
test: ia,
|
|
4478
|
+
row: Bn,
|
|
4479
|
+
col: $n
|
|
4480
|
+
}, ca = {
|
|
4481
4481
|
card: {
|
|
4482
4482
|
type: "card",
|
|
4483
4483
|
props: {
|
|
@@ -4498,7 +4498,7 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
|
|
|
4498
4498
|
}
|
|
4499
4499
|
}
|
|
4500
4500
|
};
|
|
4501
|
-
function
|
|
4501
|
+
function ua(e) {
|
|
4502
4502
|
const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
|
|
4503
4503
|
delete t.span;
|
|
4504
4504
|
let l = {
|
|
@@ -4537,14 +4537,14 @@ function et(e) {
|
|
|
4537
4537
|
t.children.push({
|
|
4538
4538
|
type: "col",
|
|
4539
4539
|
props: l,
|
|
4540
|
-
children:
|
|
4540
|
+
children: ua(o)
|
|
4541
4541
|
});
|
|
4542
4542
|
return;
|
|
4543
4543
|
}
|
|
4544
|
-
o =
|
|
4544
|
+
o = q({
|
|
4545
4545
|
props: {}
|
|
4546
|
-
},
|
|
4547
|
-
const s =
|
|
4546
|
+
}, ca[o.type] || {}, o);
|
|
4547
|
+
const s = qt(o.children);
|
|
4548
4548
|
s.length && (o.children = et(s)), t.children.push({
|
|
4549
4549
|
type: "col",
|
|
4550
4550
|
props: l,
|
|
@@ -4552,32 +4552,32 @@ function et(e) {
|
|
|
4552
4552
|
});
|
|
4553
4553
|
}), [t];
|
|
4554
4554
|
}
|
|
4555
|
-
function
|
|
4556
|
-
return
|
|
4555
|
+
function qt(e) {
|
|
4556
|
+
return vt(e) ? e : ie(e) ? [e] : [];
|
|
4557
4557
|
}
|
|
4558
|
-
let
|
|
4559
|
-
const
|
|
4560
|
-
const t =
|
|
4561
|
-
return
|
|
4562
|
-
default: () =>
|
|
4558
|
+
let Ve = {};
|
|
4559
|
+
const Ht = (e) => {
|
|
4560
|
+
const t = ra[e.type] || Ve[e.type] || e.type;
|
|
4561
|
+
return pn(t, e.props, {
|
|
4562
|
+
default: () => qt(e.children).map((n) => Ht(n))
|
|
4563
4563
|
});
|
|
4564
|
-
},
|
|
4564
|
+
}, pa = (e) => (Object.keys(Ve).length === 0 && (Ve = un().appContext.components), et(Object.values(e.schema)).map((n) => Ht(n))), da = {
|
|
4565
4565
|
__name: "custom",
|
|
4566
4566
|
setup(e) {
|
|
4567
|
-
const t = $([]), n = (o, l) => (t.value =
|
|
4568
|
-
return (o, l) => (i(), h(
|
|
4567
|
+
const t = $([]), n = (o, l) => (t.value = dn(o), o);
|
|
4568
|
+
return (o, l) => (i(), h(ye, { "schema-handler": n }, {
|
|
4569
4569
|
default: c(() => [
|
|
4570
|
-
u(
|
|
4570
|
+
u(m(pa), { schema: m(t) }, null, 8, ["schema"])
|
|
4571
4571
|
]),
|
|
4572
4572
|
_: 1
|
|
4573
4573
|
}));
|
|
4574
4574
|
}
|
|
4575
4575
|
};
|
|
4576
4576
|
let ue = {};
|
|
4577
|
-
function
|
|
4577
|
+
function Ji(e) {
|
|
4578
4578
|
ue = e;
|
|
4579
4579
|
}
|
|
4580
|
-
const
|
|
4580
|
+
const fa = (e) => {
|
|
4581
4581
|
const t = (n) => {
|
|
4582
4582
|
const o = "./views/" + n + ".vue";
|
|
4583
4583
|
return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), Le);
|
|
@@ -4585,34 +4585,34 @@ const ca = (e) => {
|
|
|
4585
4585
|
if (e.path === "#")
|
|
4586
4586
|
return Le;
|
|
4587
4587
|
switch (e.page_type) {
|
|
4588
|
-
case
|
|
4589
|
-
return
|
|
4590
|
-
case
|
|
4591
|
-
return
|
|
4592
|
-
case
|
|
4593
|
-
case
|
|
4588
|
+
case K.list:
|
|
4589
|
+
return Ut;
|
|
4590
|
+
case K.form:
|
|
4591
|
+
return Ne;
|
|
4592
|
+
case K.custom:
|
|
4593
|
+
case K.localComp:
|
|
4594
4594
|
return t(e.view || "");
|
|
4595
|
-
case
|
|
4596
|
-
return
|
|
4597
|
-
case
|
|
4598
|
-
return
|
|
4599
|
-
case
|
|
4600
|
-
return
|
|
4595
|
+
case K.tree:
|
|
4596
|
+
return Js;
|
|
4597
|
+
case K.report:
|
|
4598
|
+
return aa;
|
|
4599
|
+
case K.customSchema:
|
|
4600
|
+
return da;
|
|
4601
4601
|
}
|
|
4602
4602
|
return Le;
|
|
4603
4603
|
};
|
|
4604
|
-
function
|
|
4604
|
+
function ma(e) {
|
|
4605
4605
|
let t = e.path;
|
|
4606
|
-
return e.type === G.menu && e.page_type ===
|
|
4606
|
+
return e.type === G.menu && e.page_type === K.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
|
|
4607
4607
|
}
|
|
4608
|
-
function
|
|
4608
|
+
function ha(e) {
|
|
4609
4609
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4610
4610
|
}
|
|
4611
|
-
const
|
|
4611
|
+
const Ft = (e) => {
|
|
4612
4612
|
const t = e.type !== G.page, n = {
|
|
4613
|
-
path:
|
|
4614
|
-
name: e.id + "_" +
|
|
4615
|
-
component:
|
|
4613
|
+
path: ma(e),
|
|
4614
|
+
name: e.id + "_" + ha(e) + "_" + e.path.replaceAll("/", "_"),
|
|
4615
|
+
component: fa(e),
|
|
4616
4616
|
meta: {
|
|
4617
4617
|
id: e.id,
|
|
4618
4618
|
pageId: e.id,
|
|
@@ -4621,15 +4621,16 @@ const Ut = (e) => {
|
|
|
4621
4621
|
hidden: !t,
|
|
4622
4622
|
path: e.path,
|
|
4623
4623
|
menuType: e.type,
|
|
4624
|
-
keepAlive: !1
|
|
4624
|
+
keepAlive: !1,
|
|
4625
|
+
role: e.role
|
|
4625
4626
|
},
|
|
4626
|
-
children: e.children ? e.children.map((o) =>
|
|
4627
|
+
children: e.children ? e.children.map((o) => Ft(o)) : []
|
|
4627
4628
|
};
|
|
4628
|
-
if (e.page_type ===
|
|
4629
|
+
if (e.page_type === K.entity) {
|
|
4629
4630
|
const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
|
|
4630
4631
|
path: o,
|
|
4631
4632
|
name: e.name + "列表" + e.id,
|
|
4632
|
-
component:
|
|
4633
|
+
component: Ut,
|
|
4633
4634
|
meta: {
|
|
4634
4635
|
id: e.id + 99999,
|
|
4635
4636
|
title: "列表",
|
|
@@ -4642,7 +4643,7 @@ const Ut = (e) => {
|
|
|
4642
4643
|
}, {
|
|
4643
4644
|
path: l,
|
|
4644
4645
|
name: e.name + "新建" + e.id,
|
|
4645
|
-
component:
|
|
4646
|
+
component: Ne,
|
|
4646
4647
|
meta: {
|
|
4647
4648
|
id: e.id + 99999 + 1,
|
|
4648
4649
|
title: "新建",
|
|
@@ -4655,7 +4656,7 @@ const Ut = (e) => {
|
|
|
4655
4656
|
}, {
|
|
4656
4657
|
path: s,
|
|
4657
4658
|
name: e.name + "编辑" + e.id,
|
|
4658
|
-
component:
|
|
4659
|
+
component: Ne,
|
|
4659
4660
|
meta: {
|
|
4660
4661
|
id: e.id + 99999 + 2,
|
|
4661
4662
|
title: "编辑",
|
|
@@ -4684,7 +4685,7 @@ const Ut = (e) => {
|
|
|
4684
4685
|
}
|
|
4685
4686
|
}
|
|
4686
4687
|
return n;
|
|
4687
|
-
},
|
|
4688
|
+
}, ba = (e) => {
|
|
4688
4689
|
const t = [];
|
|
4689
4690
|
return e.forEach((n) => {
|
|
4690
4691
|
const o = {
|
|
@@ -4693,96 +4694,148 @@ const Ut = (e) => {
|
|
|
4693
4694
|
routes: []
|
|
4694
4695
|
};
|
|
4695
4696
|
n.routes.forEach((l) => {
|
|
4696
|
-
o.routes.push(
|
|
4697
|
+
o.routes.push(Ft(l));
|
|
4697
4698
|
}), t.push(o);
|
|
4698
4699
|
}), t;
|
|
4700
|
+
}, ya = "root", ft = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], _a = (e) => {
|
|
4701
|
+
const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...ft(t), ...ft(n)];
|
|
4702
|
+
return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
|
|
4703
|
+
}, Gt = (e) => {
|
|
4704
|
+
const t = { ...e };
|
|
4705
|
+
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Gt(n))), t;
|
|
4706
|
+
}, va = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, tt = (e = [], t) => t.includes(ya) ? e.map((n) => Gt(n)) : e.reduce((n, o) => {
|
|
4707
|
+
const l = _a(o);
|
|
4708
|
+
if (!va(l, t))
|
|
4709
|
+
return n;
|
|
4710
|
+
const s = { ...o };
|
|
4711
|
+
if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
|
|
4712
|
+
const a = tt(o.children, t);
|
|
4713
|
+
a.length ? s.children = a : delete s.children;
|
|
4714
|
+
}
|
|
4715
|
+
return n.push(s), n;
|
|
4716
|
+
}, []), ga = (e) => {
|
|
4717
|
+
const t = globalThis.atob(e);
|
|
4718
|
+
let n = "";
|
|
4719
|
+
for (let o = 0; o < t.length; o++) {
|
|
4720
|
+
const l = t.charCodeAt(o).toString(16).padStart(2, "0");
|
|
4721
|
+
n += "%" + l;
|
|
4722
|
+
}
|
|
4723
|
+
try {
|
|
4724
|
+
return decodeURIComponent(n);
|
|
4725
|
+
} catch {
|
|
4726
|
+
return decodeURIComponent(encodeURIComponent(t));
|
|
4727
|
+
}
|
|
4728
|
+
}, ka = (e) => {
|
|
4729
|
+
const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
|
|
4730
|
+
return typeof globalThis.atob == "function" ? ga(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
|
|
4731
|
+
}, Sa = (e) => {
|
|
4732
|
+
if (!e)
|
|
4733
|
+
return null;
|
|
4734
|
+
const t = e.split(".");
|
|
4735
|
+
if (t.length < 2)
|
|
4736
|
+
return null;
|
|
4737
|
+
try {
|
|
4738
|
+
const n = ka(t[1]);
|
|
4739
|
+
return n ? JSON.parse(n) : null;
|
|
4740
|
+
} catch {
|
|
4741
|
+
return null;
|
|
4742
|
+
}
|
|
4743
|
+
}, zt = (e) => {
|
|
4744
|
+
const t = Sa(e);
|
|
4745
|
+
return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
|
|
4699
4746
|
};
|
|
4700
|
-
function
|
|
4747
|
+
function wa(e) {
|
|
4701
4748
|
e.beforeEach(async (t, n, o) => {
|
|
4702
|
-
if (
|
|
4749
|
+
if (Nt().indexOf(t.path) !== -1) {
|
|
4703
4750
|
o();
|
|
4704
4751
|
return;
|
|
4705
4752
|
}
|
|
4706
|
-
if (
|
|
4753
|
+
if (Es()) {
|
|
4707
4754
|
o();
|
|
4708
4755
|
return;
|
|
4709
4756
|
}
|
|
4710
|
-
const l = N(
|
|
4757
|
+
const l = N(R);
|
|
4711
4758
|
await l.info();
|
|
4712
|
-
const s = await l.loadRemoteRoutes(), a =
|
|
4713
|
-
|
|
4714
|
-
|
|
4759
|
+
const s = await l.loadRemoteRoutes(), a = ba(s), r = zt(be()), p = a.map((d) => {
|
|
4760
|
+
const f = tt(d.routes, r);
|
|
4761
|
+
return {
|
|
4762
|
+
...d,
|
|
4763
|
+
routes: f
|
|
4764
|
+
};
|
|
4765
|
+
}).filter((d) => d.routes.length > 0);
|
|
4766
|
+
p.forEach((d) => {
|
|
4767
|
+
d.routes.forEach((f) => {
|
|
4715
4768
|
e.addRoute({
|
|
4716
4769
|
path: "/",
|
|
4717
|
-
component:
|
|
4718
|
-
children: [
|
|
4770
|
+
component: jt,
|
|
4771
|
+
children: [f]
|
|
4719
4772
|
});
|
|
4720
4773
|
});
|
|
4721
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(
|
|
4774
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(p), await e.replace(t), o();
|
|
4722
4775
|
});
|
|
4723
4776
|
}
|
|
4724
|
-
function
|
|
4777
|
+
function xa(e) {
|
|
4725
4778
|
e.beforeEach(async (t, n, o) => {
|
|
4726
|
-
const s = [V(
|
|
4779
|
+
const s = [V(R).title || ""], a = t.matched.length;
|
|
4727
4780
|
for (let r = a; r > a - 3; r--) {
|
|
4728
4781
|
const p = t.matched[r - 1];
|
|
4729
4782
|
p?.meta?.title && s.push(p.meta.title + "");
|
|
4730
4783
|
}
|
|
4731
4784
|
s.length > 1 && (document.title = s.reverse().join("-")), o();
|
|
4732
4785
|
}), e.afterEach(async (t, n, o) => {
|
|
4733
|
-
const l = ee(
|
|
4786
|
+
const l = ee(R);
|
|
4734
4787
|
Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
|
|
4735
4788
|
});
|
|
4736
4789
|
}
|
|
4737
|
-
function
|
|
4738
|
-
|
|
4790
|
+
function Ea(e) {
|
|
4791
|
+
Bs(e), xs(e), wa(e), xa(e);
|
|
4739
4792
|
}
|
|
4740
|
-
|
|
4741
|
-
function
|
|
4742
|
-
return N(
|
|
4793
|
+
Ea(ne);
|
|
4794
|
+
function Ia() {
|
|
4795
|
+
return N(R).token;
|
|
4743
4796
|
}
|
|
4744
|
-
function
|
|
4745
|
-
return N(
|
|
4797
|
+
function Ca() {
|
|
4798
|
+
return N(R).expired;
|
|
4746
4799
|
}
|
|
4747
|
-
function
|
|
4748
|
-
|
|
4800
|
+
function mt(e) {
|
|
4801
|
+
To({
|
|
4749
4802
|
message: e,
|
|
4750
4803
|
type: "error",
|
|
4751
4804
|
duration: 5 * 1e3,
|
|
4752
4805
|
grouping: !0
|
|
4753
4806
|
});
|
|
4754
4807
|
}
|
|
4755
|
-
const
|
|
4808
|
+
const Ta = {
|
|
4756
4809
|
onFulfilled: function(e) {
|
|
4757
4810
|
e.headers = e.headers || {};
|
|
4758
|
-
const t =
|
|
4811
|
+
const t = Ia();
|
|
4759
4812
|
return t && (e.headers["X-Token"] = t), ne.currentRoute.value.meta?.path && (e.headers["X-Path"] = ne.currentRoute.value.meta.path), e;
|
|
4760
4813
|
}
|
|
4761
|
-
},
|
|
4814
|
+
}, $a = {
|
|
4762
4815
|
onFulfilled(e) {
|
|
4763
4816
|
if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
|
|
4764
4817
|
const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
|
|
4765
4818
|
if (e.data.code === 401) {
|
|
4766
|
-
if (
|
|
4819
|
+
if (Ca())
|
|
4767
4820
|
return;
|
|
4768
|
-
N(
|
|
4821
|
+
N(R).SetExpired(), ut.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
4769
4822
|
showClose: !1,
|
|
4770
4823
|
confirmButtonText: "重新登录",
|
|
4771
4824
|
showCancelButton: !0,
|
|
4772
4825
|
cancelButtonText: "取消",
|
|
4773
4826
|
callback: (l) => {
|
|
4774
|
-
l === "confirm" && (
|
|
4827
|
+
l === "confirm" && (Ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), N(R).SetExpired();
|
|
4775
4828
|
}
|
|
4776
4829
|
});
|
|
4777
4830
|
return;
|
|
4778
4831
|
} else
|
|
4779
|
-
|
|
4832
|
+
mt(o);
|
|
4780
4833
|
return Promise.reject(o);
|
|
4781
4834
|
}
|
|
4782
4835
|
let n = e.data?.data?._message_box;
|
|
4783
|
-
return n !== void 0 && (
|
|
4836
|
+
return n !== void 0 && (Fe(n) && (n = {
|
|
4784
4837
|
message: e.data?.data?._message_box
|
|
4785
|
-
}),
|
|
4838
|
+
}), ut({
|
|
4786
4839
|
title: "提示",
|
|
4787
4840
|
type: "success",
|
|
4788
4841
|
grouping: !0,
|
|
@@ -4790,28 +4843,28 @@ const _a = {
|
|
|
4790
4843
|
})), e.data;
|
|
4791
4844
|
},
|
|
4792
4845
|
onRejected(e) {
|
|
4793
|
-
return
|
|
4846
|
+
return Ge.isCancel(e) ? Promise.reject("") : (mt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
|
|
4794
4847
|
}
|
|
4795
|
-
},
|
|
4848
|
+
}, Ba = [
|
|
4796
4849
|
{
|
|
4797
|
-
request:
|
|
4798
|
-
response:
|
|
4850
|
+
request: Bo,
|
|
4851
|
+
response: Oo
|
|
4799
4852
|
},
|
|
4800
4853
|
{
|
|
4801
|
-
request:
|
|
4802
|
-
response:
|
|
4854
|
+
request: Ta,
|
|
4855
|
+
response: $a
|
|
4803
4856
|
}
|
|
4804
4857
|
];
|
|
4805
|
-
function
|
|
4806
|
-
const t =
|
|
4858
|
+
function nt(e = {}) {
|
|
4859
|
+
const t = Te.axios || {}, n = q(t, e || {}), o = Ge.create({
|
|
4807
4860
|
...n
|
|
4808
4861
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
4809
4862
|
});
|
|
4810
|
-
return
|
|
4863
|
+
return Ba.forEach((l) => {
|
|
4811
4864
|
o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
|
|
4812
4865
|
}), o;
|
|
4813
4866
|
}
|
|
4814
|
-
const
|
|
4867
|
+
const Jt = nt(), Oa = {
|
|
4815
4868
|
beforeMount(e, t) {
|
|
4816
4869
|
e.clickOutsideEvent = function(n) {
|
|
4817
4870
|
e === n.target || e.contains(n.target) || t.value(n, e);
|
|
@@ -4820,23 +4873,23 @@ const Ht = tt(), ka = {
|
|
|
4820
4873
|
unmounted(e) {
|
|
4821
4874
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
4822
4875
|
}
|
|
4823
|
-
}, oe =
|
|
4876
|
+
}, oe = lo(), Pa = {
|
|
4824
4877
|
mounted: (e, t) => {
|
|
4825
4878
|
e !== null && (t.value, e.oncontextmenu = (n) => {
|
|
4826
4879
|
n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && oe.emit("right-click", { event: n, data: t.value });
|
|
4827
4880
|
});
|
|
4828
4881
|
}
|
|
4829
|
-
},
|
|
4882
|
+
}, Aa = {
|
|
4830
4883
|
mounted(e) {
|
|
4831
4884
|
}
|
|
4832
4885
|
};
|
|
4833
|
-
function
|
|
4886
|
+
function ht(e, t) {
|
|
4834
4887
|
let n = e[`offset${t}`], o = e.offsetParent;
|
|
4835
4888
|
for (; o; )
|
|
4836
4889
|
n += o[`offset${t}`], o = o.offsetParent;
|
|
4837
4890
|
return n;
|
|
4838
4891
|
}
|
|
4839
|
-
const
|
|
4892
|
+
const Ra = {
|
|
4840
4893
|
mounted: (e, t) => {
|
|
4841
4894
|
if (e === null || !t.value.dev)
|
|
4842
4895
|
return;
|
|
@@ -4847,7 +4900,7 @@ const xa = {
|
|
|
4847
4900
|
n.classList.add("devtool-hover");
|
|
4848
4901
|
const o = document.createElement("i");
|
|
4849
4902
|
o.className = "devtool-item-wrapper", n.onmouseover = () => {
|
|
4850
|
-
o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top =
|
|
4903
|
+
o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = ht(n, "Top") - 15 + "px", o.style.left = ht(n, "Left") - 15 + "px";
|
|
4851
4904
|
};
|
|
4852
4905
|
const l = document.createElement("span");
|
|
4853
4906
|
l.className = "dev-action-edit", l.title = "编辑";
|
|
@@ -4862,48 +4915,49 @@ const xa = {
|
|
|
4862
4915
|
oe.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
4863
4916
|
}, o.appendChild(a), n.insertBefore(o, n.firstChild);
|
|
4864
4917
|
}
|
|
4865
|
-
},
|
|
4918
|
+
}, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4866
4919
|
__proto__: null,
|
|
4867
|
-
devtool:
|
|
4868
|
-
outClick:
|
|
4869
|
-
resize:
|
|
4870
|
-
rightClick:
|
|
4920
|
+
devtool: Ra,
|
|
4921
|
+
outClick: Oa,
|
|
4922
|
+
resize: Aa,
|
|
4923
|
+
rightClick: Pa
|
|
4871
4924
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4872
|
-
let
|
|
4873
|
-
function
|
|
4874
|
-
return e ?
|
|
4925
|
+
let Se;
|
|
4926
|
+
function Ki(e) {
|
|
4927
|
+
return e ? nt(q(Te.axios, e)) : Se;
|
|
4875
4928
|
}
|
|
4876
|
-
function
|
|
4877
|
-
const t =
|
|
4929
|
+
function Wi(e) {
|
|
4930
|
+
const t = q(Te, e), n = fn(ko), o = qa(t), l = t.plugins || [];
|
|
4878
4931
|
l.unshift(o), l.forEach((r) => {
|
|
4879
|
-
|
|
4880
|
-
}), t?.mock &&
|
|
4881
|
-
const s = ee(
|
|
4882
|
-
|
|
4883
|
-
"X-Token":
|
|
4932
|
+
Ua(n, r);
|
|
4933
|
+
}), t?.mock && Co(), Se = nt(t.axios), yo(n);
|
|
4934
|
+
const s = ee(R), a = V(R);
|
|
4935
|
+
po(Se), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = Se, n.config.globalProperties.$router = ne, window.App = n, window.OmsOptions = t, no(() => ({
|
|
4936
|
+
"X-Token": be()
|
|
4884
4937
|
})), ne.isReady().then(() => n.mount("#app"));
|
|
4885
4938
|
}
|
|
4886
|
-
function
|
|
4939
|
+
function Ma(e, t = {}) {
|
|
4887
4940
|
Object.keys(t).forEach((n) => {
|
|
4888
4941
|
e.component(n, t[n]);
|
|
4889
4942
|
});
|
|
4890
4943
|
}
|
|
4891
|
-
function
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4944
|
+
function Da(e = []) {
|
|
4945
|
+
const t = zt(be()), n = tt(e, t);
|
|
4946
|
+
n.forEach((o) => {
|
|
4947
|
+
ne.addRoute(o);
|
|
4948
|
+
}), N(R).setCustomRoutes(n);
|
|
4895
4949
|
}
|
|
4896
|
-
function
|
|
4950
|
+
function ja(e, t) {
|
|
4897
4951
|
t.forEach((n) => {
|
|
4898
4952
|
ie(n) && (n = [n]), e.use(...n);
|
|
4899
4953
|
});
|
|
4900
4954
|
}
|
|
4901
|
-
function
|
|
4955
|
+
function Na(e, t = {}) {
|
|
4902
4956
|
Object.keys(t).forEach((n) => {
|
|
4903
4957
|
e.directive(n, t[n]);
|
|
4904
4958
|
});
|
|
4905
4959
|
}
|
|
4906
|
-
function
|
|
4960
|
+
function Va(e = {}) {
|
|
4907
4961
|
const t = ["app", "settings", "user"];
|
|
4908
4962
|
Object.keys(e).forEach((n) => {
|
|
4909
4963
|
if (t.indexOf(n) !== -1) {
|
|
@@ -4913,50 +4967,50 @@ function Oa(e = {}) {
|
|
|
4913
4967
|
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
|
|
4914
4968
|
});
|
|
4915
4969
|
}
|
|
4916
|
-
function
|
|
4917
|
-
|
|
4970
|
+
function Ua(e, t) {
|
|
4971
|
+
Ma(e, t.components || {}), Da(t.routes || []), ja(e, t.use || []), Na(e, t.directives || {}), Va(t.storeModules || {}), At(t.mockApis || []);
|
|
4918
4972
|
}
|
|
4919
|
-
function
|
|
4973
|
+
function qa(e) {
|
|
4920
4974
|
return {
|
|
4921
|
-
components: { VIcon:
|
|
4922
|
-
directives:
|
|
4975
|
+
components: { VIcon: oo },
|
|
4976
|
+
directives: La,
|
|
4923
4977
|
use: [
|
|
4924
4978
|
ne,
|
|
4925
|
-
[
|
|
4979
|
+
[Cn, { locale: gt, ...e.settings?.ElementPlus }]
|
|
4926
4980
|
]
|
|
4927
4981
|
};
|
|
4928
4982
|
}
|
|
4929
4983
|
export {
|
|
4930
|
-
|
|
4984
|
+
Vt as BaseSso,
|
|
4931
4985
|
Le as Container,
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4986
|
+
zi as DingTalk,
|
|
4987
|
+
Gi as Github,
|
|
4988
|
+
jt as Layout,
|
|
4935
4989
|
G as MenuType,
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4990
|
+
To as Message,
|
|
4991
|
+
ut as MessageBox,
|
|
4992
|
+
K as PageType,
|
|
4993
|
+
Ts as allSso,
|
|
4994
|
+
ho as appState,
|
|
4995
|
+
bo as builderSchemaState,
|
|
4996
|
+
Wi as createAdmin,
|
|
4943
4997
|
oe as eventBus,
|
|
4944
|
-
|
|
4998
|
+
Po as getCmp,
|
|
4945
4999
|
Oe as getHttp,
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
5000
|
+
Se as http,
|
|
5001
|
+
nt as instance,
|
|
5002
|
+
R as pinia,
|
|
5003
|
+
Ji as regViews,
|
|
5004
|
+
Fi as setCmp,
|
|
5005
|
+
po as setHttp,
|
|
5006
|
+
mo as settings,
|
|
5007
|
+
yo as setupStore,
|
|
5008
|
+
ba as transRemoteModules,
|
|
4955
5009
|
ee as useAppStore,
|
|
4956
|
-
|
|
4957
|
-
|
|
5010
|
+
Hi as useBuilderSchemaStore,
|
|
5011
|
+
Ki as useHttp,
|
|
4958
5012
|
V as useSettingsStore,
|
|
4959
5013
|
N as useUserStore,
|
|
4960
|
-
|
|
5014
|
+
rt as userState
|
|
4961
5015
|
};
|
|
4962
5016
|
//# sourceMappingURL=index.es.js.map
|