@okiss/oms 0.0.87 → 0.0.88
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 +816 -803
- 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 C, watch as
|
|
2
|
-
import { normalizeTheme as pe, applyDocumentTheme as
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { ref as C, watch as Ee, computed as k, defineComponent as K, onBeforeMount as Fe, provide as bn, resolveComponent as L, createBlock as h, openBlock as i, createVNode as u, createTextVNode as $, withCtx as r, TransitionGroup as yn, createElementBlock as _, Fragment as O, renderList as U, toDisplayString as A, normalizeClass as ee, renderSlot as de, createCommentVNode as B, mergeProps as Q, toRefs as _n, unref as m, isRef as Ge, onMounted as Ie, normalizeStyle as vn, createElementVNode as g, withKeys as rt, withModifiers as ct, resolveDynamicComponent as Ke, Transition as gn, normalizeProps as X, guardReactiveProps as re, withDirectives as ve, vModelText as Re, onUnmounted as kn, resolveDirective as Sn, getCurrentInstance as wn, h as xn, toRaw as En, createApp as In } from "vue";
|
|
2
|
+
import { normalizeTheme as pe, applyDocumentTheme as Cn, dispatchThemeChange as Tn, addNewStyle as $n, addNewStyleTag as Bn, queryParams as On, logGroup as Rn, compactObject as wt, showEleByClassName as xt, waterMarker as An, Cache as ge, isExternal as ut, getQueryParam as Et, createIFrame as Pn, strVarReplace as ae, obj2Param as Ln, isObject as ie, isString as ze, effectDataTrans as Mn, isArray as It } from "@okiss/utils";
|
|
3
|
+
import { defineStore as Ce, createPinia as Dn } from "pinia";
|
|
4
4
|
import te from "js-cookie";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import Ct from "element-plus/es/locale/lang/zh-cn";
|
|
6
|
+
import jn, { cloneDeep as x, merge as H, get as fe, unset as Tt, isObject as Nn } from "lodash";
|
|
7
7
|
import Ae from "mockjs";
|
|
8
8
|
import Je from "axios";
|
|
9
|
-
import
|
|
9
|
+
import Un, { ElMessageBox as $t, ElMessage as Vn, ElCol as qn, ElRow as Hn, ElCard as Fn } 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 Z, useRouter as
|
|
14
|
-
import { ElBreadcrumb as
|
|
13
|
+
import { useRoute as Z, useRouter as Te, onBeforeRouteLeave as Gn, createRouter as Kn, createWebHashHistory as zn, onBeforeRouteUpdate as Jn } from "vue-router";
|
|
14
|
+
import { ElBreadcrumb as Wn, ElBreadcrumbItem as Qn, ElContainer as Xn, ElRow as be, ElMain as Zn, ElAside as Yn, ElForm as Bt, ElFormItem as Ot, ElSelect as We, ElOption as Qe, ElDivider as Rt, ElButton as me, ElCol as $e, ElDrawer as At, ElTooltip as Pt, ElIcon as eo, ElDropdown as to, ElAvatar as no, ElDropdownMenu as oo, ElDropdownItem as lo, ElImage as so, ElMenuItem as ao, ElSubMenu as io, ElOptionGroup as ro, ElScrollbar as co, ElMenu as uo, ElBacktop as po, ElMessage as fo, ElAlert as Xe, ElCard as Ze, ElTree as mo } from "element-plus/es";
|
|
15
15
|
import "element-plus/es/components/base/style/css";
|
|
16
16
|
import "element-plus/es/components/row/style/css";
|
|
17
17
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -24,7 +24,7 @@ import "element-plus/es/components/icon/style/css";
|
|
|
24
24
|
import "element-plus/es/components/col/style/css";
|
|
25
25
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
26
26
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
27
|
-
import * as
|
|
27
|
+
import * as ho from "path-to-regexp";
|
|
28
28
|
import "element-plus/es/components/form/style/css";
|
|
29
29
|
import "element-plus/es/components/form-item/style/css";
|
|
30
30
|
import "element-plus/es/components/select/style/css";
|
|
@@ -34,11 +34,11 @@ import "element-plus/es/components/divider/style/css";
|
|
|
34
34
|
import "element-plus/es/components/container/style/css";
|
|
35
35
|
import "element-plus/es/components/aside/style/css";
|
|
36
36
|
import "element-plus/es/components/main/style/css";
|
|
37
|
-
import { JsonView as Ye, VBtn as et, VForm as ne, VTable as he, VChart as
|
|
37
|
+
import { JsonView as Ye, VBtn as et, VForm as ne, VTable as he, VChart as bo, setUploadHeaderHandle as yo, VIcon as _o } from "@okiss/vbtf";
|
|
38
38
|
import "normalize.css/normalize.css";
|
|
39
39
|
import "@okiss/vbtf/style.css";
|
|
40
|
-
import
|
|
41
|
-
import { Moon as
|
|
40
|
+
import vo from "mitt";
|
|
41
|
+
import { Moon as go, Sunny as ko } from "@element-plus/icons-vue";
|
|
42
42
|
import "element-plus/es/components/scrollbar/style/css";
|
|
43
43
|
import "element-plus/es/components/menu/style/css";
|
|
44
44
|
import "element-plus/es/components/image/style/css";
|
|
@@ -46,14 +46,14 @@ import "element-plus/es/components/sub-menu/style/css";
|
|
|
46
46
|
import "element-plus/es/components/menu-item/style/css";
|
|
47
47
|
import "element-plus/es/components/option-group/style/css";
|
|
48
48
|
import "element-plus/es/components/backtop/style/css";
|
|
49
|
-
import { useEventListener as
|
|
49
|
+
import { useEventListener as So } from "@vueuse/core";
|
|
50
50
|
import "element-plus/es/components/alert/style/css";
|
|
51
51
|
import "element-plus/es/components/card/style/css";
|
|
52
52
|
import "element-plus/es/components/tree/style/css";
|
|
53
|
-
import
|
|
54
|
-
import
|
|
53
|
+
import wo from "vue3-markdown-it";
|
|
54
|
+
import xo from "crypto-js";
|
|
55
55
|
import "element-plus/es/components/message/style/css";
|
|
56
|
-
import
|
|
56
|
+
import Ne from "nprogress";
|
|
57
57
|
import "nprogress/nprogress.css";
|
|
58
58
|
String.prototype.format || (String.prototype.format = function() {
|
|
59
59
|
const e = arguments;
|
|
@@ -65,25 +65,25 @@ const tt = "oms:token";
|
|
|
65
65
|
function ye() {
|
|
66
66
|
return te.get(tt) || "";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const t = V(
|
|
68
|
+
function Eo(e) {
|
|
69
|
+
const t = V(M), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
|
|
70
70
|
return te.set(tt, e, { expires: n });
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Lt() {
|
|
73
73
|
return te.remove(tt);
|
|
74
74
|
}
|
|
75
|
-
let
|
|
76
|
-
function
|
|
77
|
-
|
|
75
|
+
let Mt = null;
|
|
76
|
+
function Io(e) {
|
|
77
|
+
Mt = e;
|
|
78
78
|
}
|
|
79
79
|
function Pe() {
|
|
80
|
-
return
|
|
80
|
+
return Mt;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const Co = {
|
|
83
83
|
baseURL: "/api",
|
|
84
84
|
withCredentials: !0,
|
|
85
85
|
cacheEnable: !0
|
|
86
|
-
},
|
|
86
|
+
}, Dt = {
|
|
87
87
|
title: "oms",
|
|
88
88
|
fixedHeader: !1,
|
|
89
89
|
sidebarLogo: !0,
|
|
@@ -97,7 +97,7 @@ const So = {
|
|
|
97
97
|
ElementPlus: {
|
|
98
98
|
size: "default",
|
|
99
99
|
zIndex: 3e3,
|
|
100
|
-
locale:
|
|
100
|
+
locale: Ct
|
|
101
101
|
},
|
|
102
102
|
nav: [],
|
|
103
103
|
whiteRoutes: ["/login"],
|
|
@@ -112,12 +112,12 @@ const So = {
|
|
|
112
112
|
captcha: !0,
|
|
113
113
|
themeMode: "light"
|
|
114
114
|
}, Be = {
|
|
115
|
-
axios:
|
|
116
|
-
settings:
|
|
115
|
+
axios: Co,
|
|
116
|
+
settings: Dt,
|
|
117
117
|
plugins: [],
|
|
118
118
|
mock: !1
|
|
119
|
-
},
|
|
120
|
-
state: () => ({ ...
|
|
119
|
+
}, To = x(Dt), V = Ce("settings", {
|
|
120
|
+
state: () => ({ ...To }),
|
|
121
121
|
actions: {
|
|
122
122
|
updateSettings(e) {
|
|
123
123
|
H(this, e);
|
|
@@ -137,20 +137,21 @@ const So = {
|
|
|
137
137
|
path: "",
|
|
138
138
|
env: "",
|
|
139
139
|
expired: !1
|
|
140
|
-
},
|
|
140
|
+
}, pt = (e) => typeof e.name == "string" ? e.name : e.path, j = Ce("user", {
|
|
141
141
|
state: () => ({ ...dt }),
|
|
142
142
|
actions: {
|
|
143
143
|
updateToken(e) {
|
|
144
|
-
this.token = e,
|
|
144
|
+
this.token = e, Eo(e);
|
|
145
145
|
},
|
|
146
146
|
removeToken() {
|
|
147
|
-
this.token = "",
|
|
147
|
+
this.token = "", Lt();
|
|
148
148
|
},
|
|
149
149
|
updateRemoteRouter(e) {
|
|
150
150
|
this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
|
|
151
151
|
},
|
|
152
152
|
setCustomRoutes(e) {
|
|
153
|
-
|
|
153
|
+
const t = new Set(this.customRouter.map((o) => pt(o))), n = e.filter((o) => !t.has(pt(o)));
|
|
154
|
+
n.length && (this.customRouter = this.customRouter.concat(n));
|
|
154
155
|
},
|
|
155
156
|
updateState({ key: e, value: t }) {
|
|
156
157
|
this[e] = t;
|
|
@@ -195,8 +196,8 @@ const So = {
|
|
|
195
196
|
}).then((o) => {
|
|
196
197
|
const l = o.data?.role_ids || [];
|
|
197
198
|
this.updateState({ key: "name", value: o.data?.name }), this.updateState({ key: "nickname", value: o.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: o.data?.env });
|
|
198
|
-
const
|
|
199
|
-
V().updateSettings(
|
|
199
|
+
const s = o.data?.website || {};
|
|
200
|
+
V().updateSettings(s), !te.get("username") && te.set("username", o.data?.name), e(!0);
|
|
200
201
|
}).catch((o) => t(o));
|
|
201
202
|
});
|
|
202
203
|
},
|
|
@@ -221,7 +222,7 @@ const So = {
|
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
224
|
}), xe = "sidebarStatus";
|
|
224
|
-
function
|
|
225
|
+
function $o() {
|
|
225
226
|
if (typeof window > "u")
|
|
226
227
|
return;
|
|
227
228
|
const e = window.localStorage.getItem(xe);
|
|
@@ -231,12 +232,12 @@ function xo() {
|
|
|
231
232
|
if (t !== void 0)
|
|
232
233
|
return !!t;
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
+
function ft(e) {
|
|
235
236
|
typeof window < "u" && window.localStorage.setItem(xe, e ? "1" : "0"), te.set(xe, e ? "1" : "0");
|
|
236
237
|
}
|
|
237
|
-
const
|
|
238
|
+
const Bo = {
|
|
238
239
|
sidebar: {
|
|
239
|
-
opened:
|
|
240
|
+
opened: $o() ?? !0,
|
|
240
241
|
withoutAnimation: !1
|
|
241
242
|
},
|
|
242
243
|
device: "desktop",
|
|
@@ -244,14 +245,14 @@ const Eo = {
|
|
|
244
245
|
currentRouteMeta: {},
|
|
245
246
|
builderSchema: {},
|
|
246
247
|
baseURL: ""
|
|
247
|
-
}, Y =
|
|
248
|
-
state: () => ({ ...
|
|
248
|
+
}, Y = Ce("app", {
|
|
249
|
+
state: () => ({ ...Bo }),
|
|
249
250
|
actions: {
|
|
250
251
|
TOGGLE_SIDEBAR() {
|
|
251
|
-
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1,
|
|
252
|
+
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, ft(this.sidebar.opened);
|
|
252
253
|
},
|
|
253
254
|
CLOSE_SIDEBAR(e) {
|
|
254
|
-
this.sidebar.opened = !1,
|
|
255
|
+
this.sidebar.opened = !1, ft(this.sidebar.opened), this.sidebar.withoutAnimation = e;
|
|
255
256
|
},
|
|
256
257
|
TOGGLE_DEVICE(e) {
|
|
257
258
|
this.device = e;
|
|
@@ -291,11 +292,11 @@ const Eo = {
|
|
|
291
292
|
this.SET_BASE_API(e);
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
|
-
}),
|
|
295
|
+
}), Oo = {
|
|
295
296
|
currentCellItem: {}
|
|
296
297
|
// form/sub-form 当前单元格编辑数据
|
|
297
|
-
},
|
|
298
|
-
state: () => ({ ...
|
|
298
|
+
}, ar = Ce("builderSchema", {
|
|
299
|
+
state: () => ({ ...Oo }),
|
|
299
300
|
actions: {
|
|
300
301
|
SET_CURRENT_CELLITEM(e) {
|
|
301
302
|
this.currentCellItem = e;
|
|
@@ -304,27 +305,27 @@ const Eo = {
|
|
|
304
305
|
this.SET_CURRENT_CELLITEM(e);
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
|
-
}),
|
|
308
|
-
function
|
|
309
|
-
e.use(
|
|
308
|
+
}), M = Dn();
|
|
309
|
+
function Ro(e) {
|
|
310
|
+
e.use(M);
|
|
310
311
|
}
|
|
311
|
-
const
|
|
312
|
-
let
|
|
313
|
-
function
|
|
312
|
+
const jt = "oms-theme", Nt = C("light");
|
|
313
|
+
let mt = !1, ke = null;
|
|
314
|
+
function Ao(e) {
|
|
314
315
|
const t = pe(e ?? void 0);
|
|
315
316
|
if (typeof window > "u")
|
|
316
317
|
return t;
|
|
317
|
-
const n = window.localStorage?.getItem(
|
|
318
|
+
const n = window.localStorage?.getItem(jt);
|
|
318
319
|
return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
-
typeof window < "u" && window.localStorage?.setItem(
|
|
321
|
+
function Po(e) {
|
|
322
|
+
typeof window < "u" && window.localStorage?.setItem(jt, e);
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function Le(e) {
|
|
324
325
|
const t = pe(e);
|
|
325
|
-
|
|
326
|
+
Nt.value = t, Cn(t), Tn(t), Po(t);
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
+
function Lo(e) {
|
|
328
329
|
if (typeof window > "u" || typeof window.matchMedia != "function") {
|
|
329
330
|
ke = null;
|
|
330
331
|
return;
|
|
@@ -337,25 +338,25 @@ function Oo(e) {
|
|
|
337
338
|
typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), ke = null;
|
|
338
339
|
};
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
-
const e = V(), t = (
|
|
342
|
-
const
|
|
343
|
-
e.themeMode !==
|
|
341
|
+
function Ut() {
|
|
342
|
+
const e = V(), t = (s) => {
|
|
343
|
+
const a = pe(s);
|
|
344
|
+
e.themeMode !== a ? e.updateSettings({ themeMode: a }) : Le(a);
|
|
344
345
|
};
|
|
345
|
-
if (!
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
pe(e.themeMode) !==
|
|
346
|
+
if (!mt) {
|
|
347
|
+
mt = !0;
|
|
348
|
+
const s = Ao(e.themeMode);
|
|
349
|
+
pe(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Le(s), Ee(
|
|
349
350
|
() => e.themeMode,
|
|
350
|
-
(
|
|
351
|
-
|
|
351
|
+
(a) => {
|
|
352
|
+
Le(pe(a));
|
|
352
353
|
},
|
|
353
354
|
{ immediate: !0 }
|
|
354
|
-
), ke?.(),
|
|
355
|
-
t(
|
|
355
|
+
), ke?.(), Lo((a) => {
|
|
356
|
+
t(a);
|
|
356
357
|
});
|
|
357
358
|
}
|
|
358
|
-
const n = k(() =>
|
|
359
|
+
const n = k(() => Nt.value), o = k(() => n.value === "dark");
|
|
359
360
|
return {
|
|
360
361
|
themeMode: n,
|
|
361
362
|
isDark: o,
|
|
@@ -365,25 +366,25 @@ function Dt() {
|
|
|
365
366
|
}
|
|
366
367
|
};
|
|
367
368
|
}
|
|
368
|
-
const
|
|
369
|
+
const Mo = /* @__PURE__ */ K({
|
|
369
370
|
__name: "App",
|
|
370
371
|
setup(e) {
|
|
371
|
-
return
|
|
372
|
+
return Ut(), Fe(() => {
|
|
372
373
|
const t = document.getElementById("preloader");
|
|
373
|
-
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(),
|
|
374
|
+
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), $n("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Bn(`.iconfont {
|
|
374
375
|
font-size: 19px;
|
|
375
376
|
font-style: normal;
|
|
376
377
|
-webkit-font-smoothing: antialiased;
|
|
377
378
|
font-family: iconfont !important;
|
|
378
379
|
}`));
|
|
379
|
-
}), window?.OmsOptions?.form?.vsPath &&
|
|
380
|
+
}), window?.OmsOptions?.form?.vsPath && bn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
|
|
380
381
|
const o = L("router-view");
|
|
381
382
|
return i(), h(o);
|
|
382
383
|
};
|
|
383
384
|
}
|
|
384
385
|
});
|
|
385
386
|
var ce = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ce || {});
|
|
386
|
-
const
|
|
387
|
+
const Do = [
|
|
387
388
|
{
|
|
388
389
|
type: "jump",
|
|
389
390
|
text: "跳转",
|
|
@@ -440,9 +441,9 @@ const Ao = [
|
|
|
440
441
|
}
|
|
441
442
|
];
|
|
442
443
|
[
|
|
443
|
-
...
|
|
444
|
+
...jn.cloneDeep(Do)
|
|
444
445
|
];
|
|
445
|
-
const
|
|
446
|
+
const jo = {
|
|
446
447
|
code: 0,
|
|
447
448
|
data: {
|
|
448
449
|
"list|0-100": [
|
|
@@ -463,7 +464,7 @@ const Po = {
|
|
|
463
464
|
"page|1-5": 2
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
|
-
},
|
|
467
|
+
}, No = { listMock: jo }, Uo = [
|
|
467
468
|
{
|
|
468
469
|
method: ce.POST,
|
|
469
470
|
url: "/login",
|
|
@@ -507,32 +508,32 @@ const Po = {
|
|
|
507
508
|
{
|
|
508
509
|
url: "/user/list",
|
|
509
510
|
method: ce.GET,
|
|
510
|
-
response: (e) =>
|
|
511
|
+
response: (e) => No.listMock
|
|
511
512
|
}
|
|
512
|
-
],
|
|
513
|
-
...
|
|
514
|
-
],
|
|
515
|
-
function
|
|
513
|
+
], Vo = [
|
|
514
|
+
...Uo
|
|
515
|
+
], Ue = {};
|
|
516
|
+
function Vt(e) {
|
|
516
517
|
e.forEach((t) => {
|
|
517
|
-
const n =
|
|
518
|
-
|
|
518
|
+
const n = qt(t);
|
|
519
|
+
Ue[`${t.method}::${n}`] = t;
|
|
519
520
|
});
|
|
520
521
|
}
|
|
521
|
-
|
|
522
|
-
function
|
|
522
|
+
Vt(Vo);
|
|
523
|
+
function qt(e) {
|
|
523
524
|
let t = e.url, n = e.baseURL || Be.axios?.baseURL;
|
|
524
525
|
return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
525
526
|
}
|
|
526
|
-
function
|
|
527
|
-
Object.keys(
|
|
528
|
-
const t =
|
|
527
|
+
function qo() {
|
|
528
|
+
Object.keys(Ue).forEach((e) => {
|
|
529
|
+
const t = Ue[e], n = qt(t);
|
|
529
530
|
Ae.mock(n, t.method, function(o) {
|
|
530
|
-
const { url: l, type:
|
|
531
|
-
return
|
|
531
|
+
const { url: l, type: s, body: a } = o, c = On(l), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), f = Ae.mock(p);
|
|
532
|
+
return Rn(l, { type: s, query: c, data: d, response: f }), Ae.mock(f);
|
|
532
533
|
});
|
|
533
534
|
});
|
|
534
535
|
}
|
|
535
|
-
const
|
|
536
|
+
const Ho = Vn, ht = $t, Fo = Je.CancelToken, Se = {
|
|
536
537
|
taskList: {},
|
|
537
538
|
cacheList: /* @__PURE__ */ new Map(),
|
|
538
539
|
uniqueId(e) {
|
|
@@ -568,48 +569,48 @@ const jo = Mn, mt = It, No = Je.CancelToken, Se = {
|
|
|
568
569
|
const t = this.uniqueId(e);
|
|
569
570
|
return this.cacheList.delete(t);
|
|
570
571
|
}
|
|
571
|
-
},
|
|
572
|
+
}, Go = {
|
|
572
573
|
onFulfilled: function(e) {
|
|
573
|
-
return e.cacheEnable === !1 || (Se.pending(e) && Se.delTask(e), e.cancelToken = new
|
|
574
|
+
return e.cacheEnable === !1 || (Se.pending(e) && Se.delTask(e), e.cancelToken = new Fo((t) => {
|
|
574
575
|
Se.addTask(e, t);
|
|
575
576
|
})), e;
|
|
576
577
|
},
|
|
577
578
|
onRejected(e) {
|
|
578
579
|
return Promise.reject(e);
|
|
579
580
|
}
|
|
580
|
-
},
|
|
581
|
+
}, Ko = {
|
|
581
582
|
onFulfilled: function(e) {
|
|
582
583
|
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && Se.addCache(e.config, e.data), e;
|
|
583
584
|
},
|
|
584
585
|
onRejected(e) {
|
|
585
586
|
return Promise.reject(e);
|
|
586
587
|
}
|
|
587
|
-
},
|
|
588
|
-
function
|
|
589
|
-
|
|
588
|
+
}, Ht = {};
|
|
589
|
+
function ir(e, t) {
|
|
590
|
+
Ht[e] = t;
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
-
return
|
|
592
|
+
function zo(e) {
|
|
593
|
+
return Ht[e];
|
|
593
594
|
}
|
|
594
|
-
const
|
|
595
|
+
const Jo = /* @__PURE__ */ K({
|
|
595
596
|
name: "Dashboard",
|
|
596
597
|
setup() {
|
|
597
|
-
const e =
|
|
598
|
+
const e = zo("dashboard");
|
|
598
599
|
if (e)
|
|
599
600
|
return () => u("span", null, [u(e, null, null)]);
|
|
600
|
-
const t = k(() =>
|
|
601
|
+
const t = k(() => j().name);
|
|
601
602
|
return () => u("div", {
|
|
602
603
|
class: "dashboard-container"
|
|
603
604
|
}, [u("div", {
|
|
604
605
|
class: "dashboard-text"
|
|
605
|
-
}, [
|
|
606
|
+
}, [$("Hi "), t.value, $(" 😄")])]);
|
|
606
607
|
}
|
|
607
|
-
}),
|
|
608
|
+
}), P = (e, t) => {
|
|
608
609
|
const n = e.__vccOpts || e;
|
|
609
610
|
for (const [o, l] of t)
|
|
610
611
|
n[o] = l;
|
|
611
612
|
return n;
|
|
612
|
-
},
|
|
613
|
+
}, Wo = /* @__PURE__ */ P(Jo, [["__scopeId", "data-v-85165680"]]), Qo = {
|
|
613
614
|
data() {
|
|
614
615
|
return {
|
|
615
616
|
levelList: null
|
|
@@ -641,7 +642,7 @@ const Ho = /* @__PURE__ */ z({
|
|
|
641
642
|
},
|
|
642
643
|
pathCompile(e) {
|
|
643
644
|
const { params: t } = this.$route;
|
|
644
|
-
return
|
|
645
|
+
return ho.compile(e)(t);
|
|
645
646
|
},
|
|
646
647
|
handleLink(e) {
|
|
647
648
|
const { redirect: t, path: n } = e;
|
|
@@ -652,27 +653,27 @@ const Ho = /* @__PURE__ */ z({
|
|
|
652
653
|
this.$router.push(this.pathCompile(n));
|
|
653
654
|
}
|
|
654
655
|
}
|
|
655
|
-
},
|
|
656
|
+
}, Xo = {
|
|
656
657
|
key: 0,
|
|
657
658
|
class: "no-redirect"
|
|
658
|
-
},
|
|
659
|
-
function
|
|
660
|
-
const
|
|
659
|
+
}, Zo = ["onClick"];
|
|
660
|
+
function Yo(e, t, n, o, l, s) {
|
|
661
|
+
const a = Qn, c = Wn;
|
|
661
662
|
return i(), h(c, {
|
|
662
663
|
class: "app-breadcrumb",
|
|
663
664
|
separator: "/"
|
|
664
665
|
}, {
|
|
665
666
|
default: r(() => [
|
|
666
|
-
u(
|
|
667
|
+
u(yn, { name: "breadcrumb" }, {
|
|
667
668
|
default: r(() => [
|
|
668
|
-
(i(!0), _(
|
|
669
|
+
(i(!0), _(O, null, U(l.levelList, (d, p) => (i(), h(a, {
|
|
669
670
|
key: d.path
|
|
670
671
|
}, {
|
|
671
672
|
default: r(() => [
|
|
672
|
-
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === l.levelList.length - 1 ? (i(), _("span",
|
|
673
|
+
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === l.levelList.length - 1 ? (i(), _("span", Xo, A(d.meta.title), 1)) : (i(), _("a", {
|
|
673
674
|
key: 1,
|
|
674
|
-
onClick: (f) =>
|
|
675
|
-
},
|
|
675
|
+
onClick: (f) => s.handleLink(d)
|
|
676
|
+
}, A(d.meta.title), 9, Zo))
|
|
676
677
|
]),
|
|
677
678
|
_: 2
|
|
678
679
|
}, 1024))), 128))
|
|
@@ -683,7 +684,7 @@ function Jo(e, t, n, o, l, a) {
|
|
|
683
684
|
_: 1
|
|
684
685
|
});
|
|
685
686
|
}
|
|
686
|
-
const
|
|
687
|
+
const el = /* @__PURE__ */ P(Qo, [["render", Yo], ["__scopeId", "data-v-fa74804e"]]), tl = {
|
|
687
688
|
name: "Hamburger",
|
|
688
689
|
props: {
|
|
689
690
|
isActive: {
|
|
@@ -698,22 +699,22 @@ const Wo = /* @__PURE__ */ R(Go, [["render", Jo], ["__scopeId", "data-v-fa74804e
|
|
|
698
699
|
}
|
|
699
700
|
}
|
|
700
701
|
};
|
|
701
|
-
function
|
|
702
|
-
const
|
|
702
|
+
function nl(e, t, n, o, l, s) {
|
|
703
|
+
const a = L("v-icon");
|
|
703
704
|
return i(), _("div", {
|
|
704
705
|
style: { padding: "0 15px" },
|
|
705
|
-
onClick: t[0] || (t[0] = (...c) =>
|
|
706
|
+
onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
|
|
706
707
|
}, [
|
|
707
|
-
u(
|
|
708
|
+
u(a, {
|
|
708
709
|
class: ee({ "is-active": n.isActive }),
|
|
709
710
|
name: "ra-leftalignment"
|
|
710
711
|
}, null, 8, ["class"])
|
|
711
712
|
]);
|
|
712
713
|
}
|
|
713
|
-
const
|
|
714
|
-
function
|
|
715
|
-
const n = be, o =
|
|
716
|
-
return i(), h(
|
|
714
|
+
const ol = /* @__PURE__ */ P(tl, [["render", nl]]), ll = {};
|
|
715
|
+
function sl(e, t) {
|
|
716
|
+
const n = be, o = Zn, l = Yn, s = Xn;
|
|
717
|
+
return i(), h(s, { style: { width: "100%", height: "100%" } }, {
|
|
717
718
|
default: r(() => [
|
|
718
719
|
u(n, { class: "aside" }, {
|
|
719
720
|
default: r(() => [
|
|
@@ -744,7 +745,7 @@ function el(e, t) {
|
|
|
744
745
|
_: 3
|
|
745
746
|
});
|
|
746
747
|
}
|
|
747
|
-
const
|
|
748
|
+
const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b"]]), al = {
|
|
748
749
|
type: "input",
|
|
749
750
|
name: "文本框",
|
|
750
751
|
default: {
|
|
@@ -812,7 +813,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
812
813
|
}
|
|
813
814
|
}
|
|
814
815
|
]
|
|
815
|
-
},
|
|
816
|
+
}, il = {
|
|
816
817
|
type: "number",
|
|
817
818
|
name: "数字",
|
|
818
819
|
default: {
|
|
@@ -854,7 +855,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
854
855
|
}
|
|
855
856
|
}
|
|
856
857
|
]
|
|
857
|
-
},
|
|
858
|
+
}, rl = {
|
|
858
859
|
type: "number-range",
|
|
859
860
|
name: "数字区间",
|
|
860
861
|
default: {
|
|
@@ -895,7 +896,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
895
896
|
}
|
|
896
897
|
}
|
|
897
898
|
]
|
|
898
|
-
},
|
|
899
|
+
}, cl = {
|
|
899
900
|
type: "select",
|
|
900
901
|
name: "下拉框",
|
|
901
902
|
default: {
|
|
@@ -1001,7 +1002,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1001
1002
|
const t = x(e);
|
|
1002
1003
|
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;
|
|
1003
1004
|
}
|
|
1004
|
-
},
|
|
1005
|
+
}, ul = {
|
|
1005
1006
|
type: "radio",
|
|
1006
1007
|
name: "单选框",
|
|
1007
1008
|
default: {
|
|
@@ -1047,7 +1048,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1047
1048
|
label: "默认值"
|
|
1048
1049
|
}
|
|
1049
1050
|
]
|
|
1050
|
-
},
|
|
1051
|
+
}, dl = {
|
|
1051
1052
|
type: "switch",
|
|
1052
1053
|
name: "开关",
|
|
1053
1054
|
default: {
|
|
@@ -1103,7 +1104,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1103
1104
|
}
|
|
1104
1105
|
}
|
|
1105
1106
|
]
|
|
1106
|
-
},
|
|
1107
|
+
}, pl = {
|
|
1107
1108
|
type: "code",
|
|
1108
1109
|
name: "Code",
|
|
1109
1110
|
default: {
|
|
@@ -1123,7 +1124,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1123
1124
|
label: "字段key"
|
|
1124
1125
|
}
|
|
1125
1126
|
]
|
|
1126
|
-
},
|
|
1127
|
+
}, fl = {
|
|
1127
1128
|
type: "json",
|
|
1128
1129
|
name: "json",
|
|
1129
1130
|
default: {
|
|
@@ -1143,7 +1144,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1143
1144
|
label: "字段key"
|
|
1144
1145
|
}
|
|
1145
1146
|
]
|
|
1146
|
-
},
|
|
1147
|
+
}, ml = {
|
|
1147
1148
|
type: "upload",
|
|
1148
1149
|
name: "上传",
|
|
1149
1150
|
default: {
|
|
@@ -1163,7 +1164,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1163
1164
|
label: "字段key"
|
|
1164
1165
|
}
|
|
1165
1166
|
]
|
|
1166
|
-
},
|
|
1167
|
+
}, hl = {
|
|
1167
1168
|
type: "template",
|
|
1168
1169
|
name: "自定义组件",
|
|
1169
1170
|
default: {
|
|
@@ -1183,7 +1184,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1183
1184
|
label: "字段key"
|
|
1184
1185
|
}
|
|
1185
1186
|
]
|
|
1186
|
-
},
|
|
1187
|
+
}, bl = {
|
|
1187
1188
|
type: "icon-select",
|
|
1188
1189
|
name: "图标选择器",
|
|
1189
1190
|
default: {
|
|
@@ -1203,7 +1204,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1203
1204
|
label: "字段key"
|
|
1204
1205
|
}
|
|
1205
1206
|
]
|
|
1206
|
-
},
|
|
1207
|
+
}, yl = {
|
|
1207
1208
|
type: "sub-form",
|
|
1208
1209
|
name: "子表单",
|
|
1209
1210
|
default: {
|
|
@@ -1271,7 +1272,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1271
1272
|
}
|
|
1272
1273
|
}
|
|
1273
1274
|
]
|
|
1274
|
-
},
|
|
1275
|
+
}, _l = {
|
|
1275
1276
|
type: "checkbox",
|
|
1276
1277
|
name: "复选框",
|
|
1277
1278
|
default: {
|
|
@@ -1317,24 +1318,24 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
|
|
|
1317
1318
|
}
|
|
1318
1319
|
}
|
|
1319
1320
|
]
|
|
1320
|
-
},
|
|
1321
|
+
}, Gt = {};
|
|
1321
1322
|
function F(e) {
|
|
1322
|
-
|
|
1323
|
+
Gt[e.type] = e;
|
|
1323
1324
|
}
|
|
1324
|
-
F(tl);
|
|
1325
|
-
F(ll);
|
|
1326
|
-
F(nl);
|
|
1327
|
-
F(ol);
|
|
1328
|
-
F(sl);
|
|
1329
|
-
F(pl);
|
|
1330
1325
|
F(al);
|
|
1331
|
-
F(
|
|
1326
|
+
F(cl);
|
|
1332
1327
|
F(il);
|
|
1333
1328
|
F(rl);
|
|
1334
|
-
F(cl);
|
|
1335
1329
|
F(dl);
|
|
1330
|
+
F(yl);
|
|
1336
1331
|
F(ul);
|
|
1337
|
-
|
|
1332
|
+
F(_l);
|
|
1333
|
+
F(pl);
|
|
1334
|
+
F(fl);
|
|
1335
|
+
F(ml);
|
|
1336
|
+
F(bl);
|
|
1337
|
+
F(hl);
|
|
1338
|
+
const Ve = Gt, vl = {
|
|
1338
1339
|
options: {
|
|
1339
1340
|
labelPosition: "top",
|
|
1340
1341
|
submitButton: !1,
|
|
@@ -1432,15 +1433,15 @@ const Ue = qt, ml = {
|
|
|
1432
1433
|
}
|
|
1433
1434
|
}
|
|
1434
1435
|
]
|
|
1435
|
-
},
|
|
1436
|
+
}, Me = {
|
|
1436
1437
|
labelPosition: "top",
|
|
1437
1438
|
submitButton: !1,
|
|
1438
1439
|
cancelButton: !1
|
|
1439
1440
|
}, nt = [];
|
|
1440
|
-
Object.keys(
|
|
1441
|
-
nt.push({ value: e, label:
|
|
1441
|
+
Object.keys(Ve).forEach((e) => {
|
|
1442
|
+
nt.push({ value: e, label: Ve[e].name });
|
|
1442
1443
|
});
|
|
1443
|
-
const
|
|
1444
|
+
const gl = {
|
|
1444
1445
|
options: {
|
|
1445
1446
|
submitButton: !1,
|
|
1446
1447
|
cancelButton: !1
|
|
@@ -1472,8 +1473,8 @@ const hl = {
|
|
|
1472
1473
|
}
|
|
1473
1474
|
}
|
|
1474
1475
|
]
|
|
1475
|
-
},
|
|
1476
|
-
components: { DevLayout:
|
|
1476
|
+
}, kl = {
|
|
1477
|
+
components: { DevLayout: Ft, VForm: ne, VButton: et, JsonView: Ye },
|
|
1477
1478
|
props: {
|
|
1478
1479
|
schema: {
|
|
1479
1480
|
type: Object,
|
|
@@ -1484,8 +1485,8 @@ const hl = {
|
|
|
1484
1485
|
data() {
|
|
1485
1486
|
return {
|
|
1486
1487
|
sqlOptions: {},
|
|
1487
|
-
sqlSchema:
|
|
1488
|
-
baseSchema:
|
|
1488
|
+
sqlSchema: gl,
|
|
1489
|
+
baseSchema: vl,
|
|
1489
1490
|
activeTab: "base",
|
|
1490
1491
|
builderSchema: Object.assign(
|
|
1491
1492
|
{},
|
|
@@ -1505,7 +1506,7 @@ const hl = {
|
|
|
1505
1506
|
ctrlSchema: {},
|
|
1506
1507
|
ctrlName: "",
|
|
1507
1508
|
activeIndex: void 0,
|
|
1508
|
-
ctrlMap:
|
|
1509
|
+
ctrlMap: Ve,
|
|
1509
1510
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
1510
1511
|
tableStruct: "",
|
|
1511
1512
|
activeName: "1",
|
|
@@ -1539,8 +1540,8 @@ const hl = {
|
|
|
1539
1540
|
const n = t ? t.type : "", o = this.ctrlMap[n], l = o.trans ? o.trans(e) : e;
|
|
1540
1541
|
if (l && Object.keys(l).length > 0) {
|
|
1541
1542
|
if (l.type = n, this.activeIndex.indexOf("[") > -1) {
|
|
1542
|
-
const [
|
|
1543
|
-
this.builderSchema[
|
|
1543
|
+
const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
1544
|
+
this.builderSchema[a][c] = { ...l };
|
|
1544
1545
|
} else
|
|
1545
1546
|
this.builderSchema[this.activeIndex] = l;
|
|
1546
1547
|
this.key++;
|
|
@@ -1551,7 +1552,7 @@ const hl = {
|
|
|
1551
1552
|
handler(e) {
|
|
1552
1553
|
const t = this.ctrlMap[e];
|
|
1553
1554
|
this.ctrlSchema = x({
|
|
1554
|
-
options: x(
|
|
1555
|
+
options: x(Me),
|
|
1555
1556
|
formItems: x(t.builder)
|
|
1556
1557
|
});
|
|
1557
1558
|
const n = fe(this.builderSchema, this.activeIndex);
|
|
@@ -1576,12 +1577,12 @@ const hl = {
|
|
|
1576
1577
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
1577
1578
|
const n = this.ctrlMap[e];
|
|
1578
1579
|
this.activeCtrl = n, this.builderSchema[t].push(x(n.default)), this.ctrlSchema = x({
|
|
1579
|
-
options: x(
|
|
1580
|
+
options: x(Me),
|
|
1580
1581
|
formItems: x(n.builder)
|
|
1581
1582
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
1582
1583
|
},
|
|
1583
1584
|
removeOne() {
|
|
1584
|
-
|
|
1585
|
+
Tt(this.builderSchema, this.activeIndex), this.builderSchema = x(wt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
1585
1586
|
},
|
|
1586
1587
|
clicklabel() {
|
|
1587
1588
|
const e = this.activeIndex;
|
|
@@ -1592,7 +1593,7 @@ const hl = {
|
|
|
1592
1593
|
return;
|
|
1593
1594
|
}
|
|
1594
1595
|
this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = x({
|
|
1595
|
-
options: x(
|
|
1596
|
+
options: x(Me),
|
|
1596
1597
|
formItems: x(l.builder)
|
|
1597
1598
|
}), this.ctrlKey++;
|
|
1598
1599
|
}
|
|
@@ -1608,32 +1609,32 @@ const hl = {
|
|
|
1608
1609
|
}
|
|
1609
1610
|
}
|
|
1610
1611
|
};
|
|
1611
|
-
function
|
|
1612
|
-
const
|
|
1612
|
+
function Sl(e, t, n, o, l, s) {
|
|
1613
|
+
const a = L("v-form"), c = Rt, d = me, p = L("JsonView"), f = L("VButton"), y = Qe, w = We, v = Ot, T = Bt, I = L("dev-layout");
|
|
1613
1614
|
return i(), h(I, null, {
|
|
1614
1615
|
main: r(() => [
|
|
1615
|
-
l.builderSchema.formItems ? (i(), h(
|
|
1616
|
+
l.builderSchema.formItems ? (i(), h(a, Q({
|
|
1616
1617
|
ref: "form",
|
|
1617
1618
|
key: l.key,
|
|
1618
1619
|
dev: !0
|
|
1619
|
-
}, l.builderSchema), null, 16)) :
|
|
1620
|
+
}, l.builderSchema), null, 16)) : B("", !0),
|
|
1620
1621
|
u(c),
|
|
1621
1622
|
u(d, {
|
|
1622
1623
|
type: "primary",
|
|
1623
|
-
onClick:
|
|
1624
|
+
onClick: s.saveSchema
|
|
1624
1625
|
}, {
|
|
1625
1626
|
default: r(() => [...t[2] || (t[2] = [
|
|
1626
|
-
|
|
1627
|
+
$("保存页面配置", -1)
|
|
1627
1628
|
])]),
|
|
1628
1629
|
_: 1
|
|
1629
1630
|
}, 8, ["onClick"]),
|
|
1630
|
-
t[3] || (t[3] =
|
|
1631
|
+
t[3] || (t[3] = $(" ", -1)),
|
|
1631
1632
|
u(f, {
|
|
1632
1633
|
text: "PageSchema",
|
|
1633
1634
|
type: "modal"
|
|
1634
1635
|
}, {
|
|
1635
1636
|
default: r(() => [
|
|
1636
|
-
u(p, { data:
|
|
1637
|
+
u(p, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
1637
1638
|
]),
|
|
1638
1639
|
_: 1
|
|
1639
1640
|
})
|
|
@@ -1648,7 +1649,7 @@ function yl(e, t, n, o, l, a) {
|
|
|
1648
1649
|
"onUpdate:modelValue": t[0] || (t[0] = (b) => l.currentCtrlType = b)
|
|
1649
1650
|
}, {
|
|
1650
1651
|
default: r(() => [
|
|
1651
|
-
(i(!0), _(
|
|
1652
|
+
(i(!0), _(O, null, U(l.types, (b, E) => (i(), h(y, {
|
|
1652
1653
|
key: E,
|
|
1653
1654
|
label: b.label,
|
|
1654
1655
|
value: b.value
|
|
@@ -1661,8 +1662,8 @@ function yl(e, t, n, o, l, a) {
|
|
|
1661
1662
|
})
|
|
1662
1663
|
]),
|
|
1663
1664
|
_: 1
|
|
1664
|
-
})) :
|
|
1665
|
-
(i(), h(
|
|
1665
|
+
})) : B("", !0),
|
|
1666
|
+
(i(), h(a, Q({
|
|
1666
1667
|
key: l.ctrlKey,
|
|
1667
1668
|
modelValue: l.ctrlOptions,
|
|
1668
1669
|
"onUpdate:modelValue": t[1] || (t[1] = (b) => l.ctrlOptions = b)
|
|
@@ -1671,7 +1672,7 @@ function yl(e, t, n, o, l, a) {
|
|
|
1671
1672
|
_: 1
|
|
1672
1673
|
});
|
|
1673
1674
|
}
|
|
1674
|
-
const
|
|
1675
|
+
const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171"]]), xl = {
|
|
1675
1676
|
type: "input",
|
|
1676
1677
|
name: "文本框",
|
|
1677
1678
|
default: {
|
|
@@ -1719,7 +1720,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
1719
1720
|
}
|
|
1720
1721
|
}
|
|
1721
1722
|
]
|
|
1722
|
-
},
|
|
1723
|
+
}, El = {
|
|
1723
1724
|
type: "select",
|
|
1724
1725
|
name: "下拉框",
|
|
1725
1726
|
default: {
|
|
@@ -1820,7 +1821,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
1820
1821
|
const t = x(e);
|
|
1821
1822
|
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;
|
|
1822
1823
|
}
|
|
1823
|
-
},
|
|
1824
|
+
}, Il = {
|
|
1824
1825
|
type: "date",
|
|
1825
1826
|
name: "日期",
|
|
1826
1827
|
default: {
|
|
@@ -1840,7 +1841,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
1840
1841
|
label: "字段key"
|
|
1841
1842
|
}
|
|
1842
1843
|
]
|
|
1843
|
-
},
|
|
1844
|
+
}, bt = {
|
|
1844
1845
|
options: {
|
|
1845
1846
|
labelPosition: "top",
|
|
1846
1847
|
submitButton: !1,
|
|
@@ -1865,11 +1866,11 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
1865
1866
|
label: "导出按钮"
|
|
1866
1867
|
}
|
|
1867
1868
|
]
|
|
1868
|
-
},
|
|
1869
|
+
}, De = {
|
|
1869
1870
|
labelPosition: "top",
|
|
1870
1871
|
submitButton: !1,
|
|
1871
1872
|
cancelButton: !1
|
|
1872
|
-
},
|
|
1873
|
+
}, Cl = {
|
|
1873
1874
|
type: "span",
|
|
1874
1875
|
name: "文本",
|
|
1875
1876
|
default: {
|
|
@@ -1899,7 +1900,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
1899
1900
|
label: "排序"
|
|
1900
1901
|
}
|
|
1901
1902
|
]
|
|
1902
|
-
},
|
|
1903
|
+
}, Tl = {
|
|
1903
1904
|
type: "enum",
|
|
1904
1905
|
name: "标签",
|
|
1905
1906
|
default: {
|
|
@@ -1950,7 +1951,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
1950
1951
|
trans(e) {
|
|
1951
1952
|
return e.options = e.options || [], e.label || (e.label = "表头"), e;
|
|
1952
1953
|
}
|
|
1953
|
-
},
|
|
1954
|
+
}, $l = {
|
|
1954
1955
|
type: "html",
|
|
1955
1956
|
name: "HTML",
|
|
1956
1957
|
default: {
|
|
@@ -1975,7 +1976,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
1975
1976
|
label: "提示"
|
|
1976
1977
|
}
|
|
1977
1978
|
]
|
|
1978
|
-
},
|
|
1979
|
+
}, Bl = {
|
|
1979
1980
|
type: "icon",
|
|
1980
1981
|
name: "图标",
|
|
1981
1982
|
default: {
|
|
@@ -2000,7 +2001,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2000
2001
|
label: "提示"
|
|
2001
2002
|
}
|
|
2002
2003
|
]
|
|
2003
|
-
},
|
|
2004
|
+
}, Ol = {
|
|
2004
2005
|
type: "image",
|
|
2005
2006
|
name: "图片",
|
|
2006
2007
|
default: {
|
|
@@ -2025,7 +2026,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2025
2026
|
label: "提示"
|
|
2026
2027
|
}
|
|
2027
2028
|
]
|
|
2028
|
-
},
|
|
2029
|
+
}, Rl = {
|
|
2029
2030
|
type: "json",
|
|
2030
2031
|
name: "JSON",
|
|
2031
2032
|
default: {
|
|
@@ -2050,7 +2051,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2050
2051
|
label: "提示"
|
|
2051
2052
|
}
|
|
2052
2053
|
]
|
|
2053
|
-
},
|
|
2054
|
+
}, Al = {
|
|
2054
2055
|
type: "link",
|
|
2055
2056
|
name: "链接",
|
|
2056
2057
|
default: {
|
|
@@ -2075,7 +2076,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2075
2076
|
label: "提示"
|
|
2076
2077
|
}
|
|
2077
2078
|
]
|
|
2078
|
-
},
|
|
2079
|
+
}, Pl = {
|
|
2079
2080
|
type: "rich",
|
|
2080
2081
|
name: "富文本",
|
|
2081
2082
|
default: {
|
|
@@ -2100,7 +2101,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2100
2101
|
label: "提示"
|
|
2101
2102
|
}
|
|
2102
2103
|
]
|
|
2103
|
-
},
|
|
2104
|
+
}, Ll = {
|
|
2104
2105
|
type: "tpl",
|
|
2105
2106
|
name: "模板",
|
|
2106
2107
|
default: {
|
|
@@ -2131,17 +2132,17 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2131
2132
|
info: "例如 <code>姓名: {name} 年龄:{age}</code>"
|
|
2132
2133
|
}
|
|
2133
2134
|
]
|
|
2134
|
-
},
|
|
2135
|
-
span:
|
|
2136
|
-
enum:
|
|
2137
|
-
html:
|
|
2138
|
-
icon:
|
|
2139
|
-
image:
|
|
2140
|
-
json:
|
|
2141
|
-
link:
|
|
2142
|
-
rich:
|
|
2143
|
-
tpl:
|
|
2144
|
-
},
|
|
2135
|
+
}, Ml = {
|
|
2136
|
+
span: Cl,
|
|
2137
|
+
enum: Tl,
|
|
2138
|
+
html: $l,
|
|
2139
|
+
icon: Bl,
|
|
2140
|
+
image: Ol,
|
|
2141
|
+
json: Rl,
|
|
2142
|
+
link: Al,
|
|
2143
|
+
rich: Pl,
|
|
2144
|
+
tpl: Ll
|
|
2145
|
+
}, Dl = {
|
|
2145
2146
|
type: "jump",
|
|
2146
2147
|
name: "跳转",
|
|
2147
2148
|
default: {
|
|
@@ -2188,7 +2189,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2188
2189
|
}
|
|
2189
2190
|
}
|
|
2190
2191
|
]
|
|
2191
|
-
},
|
|
2192
|
+
}, jl = {
|
|
2192
2193
|
type: "api",
|
|
2193
2194
|
name: "接口请求",
|
|
2194
2195
|
default: {
|
|
@@ -2257,7 +2258,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2257
2258
|
}
|
|
2258
2259
|
}
|
|
2259
2260
|
]
|
|
2260
|
-
},
|
|
2261
|
+
}, Nl = {
|
|
2261
2262
|
type: "form",
|
|
2262
2263
|
name: "弹框表单",
|
|
2263
2264
|
default: {
|
|
@@ -2311,7 +2312,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2311
2312
|
label: "保存接口"
|
|
2312
2313
|
}
|
|
2313
2314
|
]
|
|
2314
|
-
},
|
|
2315
|
+
}, Ul = {
|
|
2315
2316
|
type: "table",
|
|
2316
2317
|
name: "弹框列表",
|
|
2317
2318
|
default: {
|
|
@@ -2365,13 +2366,13 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2365
2366
|
label: "保存接口"
|
|
2366
2367
|
}
|
|
2367
2368
|
]
|
|
2368
|
-
},
|
|
2369
|
-
jump:
|
|
2370
|
-
api:
|
|
2371
|
-
form:
|
|
2372
|
-
table:
|
|
2373
|
-
},
|
|
2374
|
-
components: { JsonView: Ye, DevLayout:
|
|
2369
|
+
}, Vl = {
|
|
2370
|
+
jump: Dl,
|
|
2371
|
+
api: jl,
|
|
2372
|
+
form: Nl,
|
|
2373
|
+
table: Ul
|
|
2374
|
+
}, ql = {
|
|
2375
|
+
components: { JsonView: Ye, DevLayout: Ft, VTable: he, VForm: ne, VButton: et },
|
|
2375
2376
|
props: {
|
|
2376
2377
|
schema: {
|
|
2377
2378
|
type: Object,
|
|
@@ -2380,13 +2381,13 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2380
2381
|
}
|
|
2381
2382
|
},
|
|
2382
2383
|
data() {
|
|
2383
|
-
const e =
|
|
2384
|
+
const e = _n(this.$props.schema);
|
|
2384
2385
|
return delete e.listApi, e.list = [{}], {
|
|
2385
|
-
baseSchema:
|
|
2386
|
+
baseSchema: bt,
|
|
2386
2387
|
activeTab: "base",
|
|
2387
2388
|
builderSchema: Object.assign(
|
|
2388
2389
|
{},
|
|
2389
|
-
|
|
2390
|
+
bt,
|
|
2390
2391
|
e
|
|
2391
2392
|
),
|
|
2392
2393
|
baseOptions: {},
|
|
@@ -2399,9 +2400,9 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2399
2400
|
ctrlName: "",
|
|
2400
2401
|
activeIndex: void 0,
|
|
2401
2402
|
ctrlMap: {
|
|
2402
|
-
filter: { input:
|
|
2403
|
-
headers:
|
|
2404
|
-
buttons:
|
|
2403
|
+
filter: { input: xl, select: El, date: Il },
|
|
2404
|
+
headers: Ml,
|
|
2405
|
+
buttons: Vl
|
|
2405
2406
|
},
|
|
2406
2407
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2407
2408
|
currentCtrlType: "input"
|
|
@@ -2450,8 +2451,8 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2450
2451
|
const l = o.trans ? o.trans(e) : e;
|
|
2451
2452
|
if (l && Object.keys(l).length > 0) {
|
|
2452
2453
|
if (l.type = n, this.activeIndex.indexOf("[") > -1) {
|
|
2453
|
-
const [
|
|
2454
|
-
this.builderSchema[
|
|
2454
|
+
const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2455
|
+
this.builderSchema[a][c] = { ...l };
|
|
2455
2456
|
} else
|
|
2456
2457
|
this.builderSchema[this.activeIndex] = l;
|
|
2457
2458
|
this.key++;
|
|
@@ -2463,7 +2464,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2463
2464
|
handler(e) {
|
|
2464
2465
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
2465
2466
|
this.ctrlSchema = x({
|
|
2466
|
-
options: x(
|
|
2467
|
+
options: x(De),
|
|
2467
2468
|
formItems: x(t.builder)
|
|
2468
2469
|
});
|
|
2469
2470
|
const n = fe(this.builderSchema, this.activeIndex);
|
|
@@ -2511,12 +2512,12 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2511
2512
|
return;
|
|
2512
2513
|
}
|
|
2513
2514
|
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({
|
|
2514
|
-
options: x(
|
|
2515
|
+
options: x(De),
|
|
2515
2516
|
formItems: x(l[e].builder)
|
|
2516
2517
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2517
2518
|
},
|
|
2518
2519
|
removeOne() {
|
|
2519
|
-
|
|
2520
|
+
Tt(this.builderSchema, this.activeIndex), this.builderSchema = x(wt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2520
2521
|
},
|
|
2521
2522
|
clicklabel() {
|
|
2522
2523
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -2531,7 +2532,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2531
2532
|
return;
|
|
2532
2533
|
}
|
|
2533
2534
|
this.ctrlOptions = n, this.currentCtrlType = o, this.ctrlSchema = x({
|
|
2534
|
-
options: x(
|
|
2535
|
+
options: x(De),
|
|
2535
2536
|
formItems: x(l.builder)
|
|
2536
2537
|
}), this.ctrlKey++;
|
|
2537
2538
|
}
|
|
@@ -2548,65 +2549,65 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
|
|
|
2548
2549
|
normalButton: o,
|
|
2549
2550
|
batchButton: l
|
|
2550
2551
|
}
|
|
2551
|
-
}).then(({ data:
|
|
2552
|
-
|
|
2552
|
+
}).then(({ data: s }) => {
|
|
2553
|
+
s && this.$message({ type: "success", message: "保存成功, 请刷新页面查看效果" });
|
|
2553
2554
|
});
|
|
2554
2555
|
}
|
|
2555
2556
|
}
|
|
2556
2557
|
};
|
|
2557
|
-
function
|
|
2558
|
-
const
|
|
2558
|
+
function Hl(e, t, n, o, l, s) {
|
|
2559
|
+
const a = $e, c = me, d = be, p = L("v-table"), f = Rt, y = me, w = L("JsonView"), v = L("VButton"), T = Qe, I = We, b = Ot, E = Bt, R = L("v-form"), W = L("dev-layout");
|
|
2559
2560
|
return i(), h(W, null, {
|
|
2560
2561
|
"left-aside": r(() => [
|
|
2561
2562
|
u(d, { style: { width: "200px" } }, {
|
|
2562
2563
|
default: r(() => [
|
|
2563
2564
|
u(d, null, {
|
|
2564
2565
|
default: r(() => [
|
|
2565
|
-
u(
|
|
2566
|
+
u(a, {
|
|
2566
2567
|
class: "title",
|
|
2567
2568
|
"data-id": 22222
|
|
2568
2569
|
}, {
|
|
2569
2570
|
default: r(() => [...t[5] || (t[5] = [
|
|
2570
|
-
|
|
2571
|
+
$("添加搜索条件", -1)
|
|
2571
2572
|
])]),
|
|
2572
2573
|
_: 1
|
|
2573
2574
|
}),
|
|
2574
|
-
u(
|
|
2575
|
+
u(a, { class: "ctrl" }, {
|
|
2575
2576
|
default: r(() => [
|
|
2576
2577
|
u(c, {
|
|
2577
2578
|
class: "ctrl-btn",
|
|
2578
|
-
onClick: t[0] || (t[0] = (S) =>
|
|
2579
|
+
onClick: t[0] || (t[0] = (S) => s.pushFilter("input"))
|
|
2579
2580
|
}, {
|
|
2580
2581
|
default: r(() => [...t[6] || (t[6] = [
|
|
2581
|
-
|
|
2582
|
+
$("文本框", -1)
|
|
2582
2583
|
])]),
|
|
2583
2584
|
_: 1
|
|
2584
2585
|
})
|
|
2585
2586
|
]),
|
|
2586
2587
|
_: 1
|
|
2587
2588
|
}),
|
|
2588
|
-
u(
|
|
2589
|
+
u(a, { class: "ctrl" }, {
|
|
2589
2590
|
default: r(() => [
|
|
2590
2591
|
u(c, {
|
|
2591
2592
|
class: "ctrl-btn",
|
|
2592
|
-
onClick: t[1] || (t[1] = (S) =>
|
|
2593
|
+
onClick: t[1] || (t[1] = (S) => s.pushFilter("select"))
|
|
2593
2594
|
}, {
|
|
2594
2595
|
default: r(() => [...t[7] || (t[7] = [
|
|
2595
|
-
|
|
2596
|
+
$("下拉框", -1)
|
|
2596
2597
|
])]),
|
|
2597
2598
|
_: 1
|
|
2598
2599
|
})
|
|
2599
2600
|
]),
|
|
2600
2601
|
_: 1
|
|
2601
2602
|
}),
|
|
2602
|
-
u(
|
|
2603
|
+
u(a, { class: "ctrl" }, {
|
|
2603
2604
|
default: r(() => [
|
|
2604
2605
|
u(c, {
|
|
2605
2606
|
class: "ctrl-btn",
|
|
2606
|
-
onClick: t[2] || (t[2] = (S) =>
|
|
2607
|
+
onClick: t[2] || (t[2] = (S) => s.pushFilter("date"))
|
|
2607
2608
|
}, {
|
|
2608
2609
|
default: r(() => [...t[8] || (t[8] = [
|
|
2609
|
-
|
|
2610
|
+
$("日期", -1)
|
|
2610
2611
|
])]),
|
|
2611
2612
|
_: 1
|
|
2612
2613
|
})
|
|
@@ -2618,23 +2619,23 @@ function jl(e, t, n, o, l, a) {
|
|
|
2618
2619
|
}),
|
|
2619
2620
|
u(d, null, {
|
|
2620
2621
|
default: r(() => [
|
|
2621
|
-
u(
|
|
2622
|
+
u(a, { class: "title" }, {
|
|
2622
2623
|
default: r(() => [...t[9] || (t[9] = [
|
|
2623
|
-
|
|
2624
|
+
$("添加列表项", -1)
|
|
2624
2625
|
])]),
|
|
2625
2626
|
_: 1
|
|
2626
2627
|
}),
|
|
2627
|
-
(i(!0), _(
|
|
2628
|
+
(i(!0), _(O, null, U(Object.keys(l.ctrlMap.headers), (S, q) => (i(), h(a, {
|
|
2628
2629
|
key: `column-${q}`,
|
|
2629
2630
|
class: "ctrl"
|
|
2630
2631
|
}, {
|
|
2631
2632
|
default: r(() => [
|
|
2632
2633
|
u(c, {
|
|
2633
2634
|
class: "ctrl-btn",
|
|
2634
|
-
onClick: (
|
|
2635
|
+
onClick: (z) => s.pushHeaders(l.ctrlMap.headers[S].type)
|
|
2635
2636
|
}, {
|
|
2636
2637
|
default: r(() => [
|
|
2637
|
-
|
|
2638
|
+
$(A(l.ctrlMap.headers[S].name), 1)
|
|
2638
2639
|
]),
|
|
2639
2640
|
_: 2
|
|
2640
2641
|
}, 1032, ["onClick"])
|
|
@@ -2646,23 +2647,23 @@ function jl(e, t, n, o, l, a) {
|
|
|
2646
2647
|
}),
|
|
2647
2648
|
u(d, null, {
|
|
2648
2649
|
default: r(() => [
|
|
2649
|
-
u(
|
|
2650
|
+
u(a, { class: "title" }, {
|
|
2650
2651
|
default: r(() => [...t[10] || (t[10] = [
|
|
2651
|
-
|
|
2652
|
+
$("添加行按钮", -1)
|
|
2652
2653
|
])]),
|
|
2653
2654
|
_: 1
|
|
2654
2655
|
}),
|
|
2655
|
-
(i(!0), _(
|
|
2656
|
+
(i(!0), _(O, null, U(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(a, {
|
|
2656
2657
|
key: `column-${q}`,
|
|
2657
2658
|
class: "ctrl"
|
|
2658
2659
|
}, {
|
|
2659
2660
|
default: r(() => [
|
|
2660
2661
|
u(c, {
|
|
2661
2662
|
class: "ctrl-btn",
|
|
2662
|
-
onClick: (
|
|
2663
|
+
onClick: (z) => s.pushRowButton(l.ctrlMap.buttons[S].type)
|
|
2663
2664
|
}, {
|
|
2664
2665
|
default: r(() => [
|
|
2665
|
-
|
|
2666
|
+
$(A(l.ctrlMap.buttons[S].name), 1)
|
|
2666
2667
|
]),
|
|
2667
2668
|
_: 2
|
|
2668
2669
|
}, 1032, ["onClick"])
|
|
@@ -2674,34 +2675,34 @@ function jl(e, t, n, o, l, a) {
|
|
|
2674
2675
|
}),
|
|
2675
2676
|
u(d, null, {
|
|
2676
2677
|
default: r(() => [
|
|
2677
|
-
u(
|
|
2678
|
+
u(a, { class: "title" }, {
|
|
2678
2679
|
default: r(() => [...t[11] || (t[11] = [
|
|
2679
|
-
|
|
2680
|
+
$("添加常规按钮", -1)
|
|
2680
2681
|
])]),
|
|
2681
2682
|
_: 1
|
|
2682
2683
|
}),
|
|
2683
|
-
(i(!0), _(
|
|
2684
|
+
(i(!0), _(O, null, U(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(a, {
|
|
2684
2685
|
key: `column-${q}`,
|
|
2685
2686
|
class: "ctrl"
|
|
2686
2687
|
}, {
|
|
2687
2688
|
default: r(() => [
|
|
2688
2689
|
u(c, {
|
|
2689
2690
|
class: "ctrl-btn",
|
|
2690
|
-
onClick: (
|
|
2691
|
+
onClick: (z) => s.pushNormalButton(l.ctrlMap.buttons[S].type)
|
|
2691
2692
|
}, {
|
|
2692
2693
|
default: r(() => [
|
|
2693
|
-
|
|
2694
|
+
$(A(l.ctrlMap.buttons[S].name), 1)
|
|
2694
2695
|
]),
|
|
2695
2696
|
_: 2
|
|
2696
2697
|
}, 1032, ["onClick"])
|
|
2697
2698
|
]),
|
|
2698
2699
|
_: 2
|
|
2699
2700
|
}, 1024))), 128)),
|
|
2700
|
-
u(
|
|
2701
|
+
u(a, { class: "ctrl" }, {
|
|
2701
2702
|
default: r(() => [
|
|
2702
2703
|
u(c, { class: "ctrl-btn" }, {
|
|
2703
2704
|
default: r(() => [...t[12] || (t[12] = [
|
|
2704
|
-
|
|
2705
|
+
$("按钮组", -1)
|
|
2705
2706
|
])]),
|
|
2706
2707
|
_: 1
|
|
2707
2708
|
})
|
|
@@ -2713,34 +2714,34 @@ function jl(e, t, n, o, l, a) {
|
|
|
2713
2714
|
}),
|
|
2714
2715
|
u(d, null, {
|
|
2715
2716
|
default: r(() => [
|
|
2716
|
-
u(
|
|
2717
|
+
u(a, { class: "title" }, {
|
|
2717
2718
|
default: r(() => [...t[13] || (t[13] = [
|
|
2718
|
-
|
|
2719
|
+
$("添加批量按钮", -1)
|
|
2719
2720
|
])]),
|
|
2720
2721
|
_: 1
|
|
2721
2722
|
}),
|
|
2722
|
-
(i(!0), _(
|
|
2723
|
+
(i(!0), _(O, null, U(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(a, {
|
|
2723
2724
|
key: `column-${q}`,
|
|
2724
2725
|
class: "ctrl"
|
|
2725
2726
|
}, {
|
|
2726
2727
|
default: r(() => [
|
|
2727
2728
|
u(c, {
|
|
2728
2729
|
class: "ctrl-btn",
|
|
2729
|
-
onClick: (
|
|
2730
|
+
onClick: (z) => s.pushBatchButton(l.ctrlMap.buttons[S].type)
|
|
2730
2731
|
}, {
|
|
2731
2732
|
default: r(() => [
|
|
2732
|
-
|
|
2733
|
+
$(A(l.ctrlMap.buttons[S].name), 1)
|
|
2733
2734
|
]),
|
|
2734
2735
|
_: 2
|
|
2735
2736
|
}, 1032, ["onClick"])
|
|
2736
2737
|
]),
|
|
2737
2738
|
_: 2
|
|
2738
2739
|
}, 1024))), 128)),
|
|
2739
|
-
u(
|
|
2740
|
+
u(a, { class: "ctrl" }, {
|
|
2740
2741
|
default: r(() => [
|
|
2741
2742
|
u(c, { class: "ctrl-btn" }, {
|
|
2742
2743
|
default: r(() => [...t[14] || (t[14] = [
|
|
2743
|
-
|
|
2744
|
+
$("按钮组", -1)
|
|
2744
2745
|
])]),
|
|
2745
2746
|
_: 1
|
|
2746
2747
|
})
|
|
@@ -2763,20 +2764,20 @@ function jl(e, t, n, o, l, a) {
|
|
|
2763
2764
|
u(f),
|
|
2764
2765
|
u(y, {
|
|
2765
2766
|
type: "primary",
|
|
2766
|
-
onClick:
|
|
2767
|
+
onClick: s.saveSchema
|
|
2767
2768
|
}, {
|
|
2768
2769
|
default: r(() => [...t[15] || (t[15] = [
|
|
2769
|
-
|
|
2770
|
+
$("保存页面配置", -1)
|
|
2770
2771
|
])]),
|
|
2771
2772
|
_: 1
|
|
2772
2773
|
}, 8, ["onClick"]),
|
|
2773
|
-
t[16] || (t[16] =
|
|
2774
|
+
t[16] || (t[16] = $(" ", -1)),
|
|
2774
2775
|
u(v, {
|
|
2775
2776
|
text: "PageSchema",
|
|
2776
2777
|
type: "modal"
|
|
2777
2778
|
}, {
|
|
2778
2779
|
default: r(() => [
|
|
2779
|
-
u(w, { data:
|
|
2780
|
+
u(w, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
2780
2781
|
]),
|
|
2781
2782
|
_: 1
|
|
2782
2783
|
})
|
|
@@ -2791,7 +2792,7 @@ function jl(e, t, n, o, l, a) {
|
|
|
2791
2792
|
"onUpdate:modelValue": t[3] || (t[3] = (S) => l.currentCtrlType = S)
|
|
2792
2793
|
}, {
|
|
2793
2794
|
default: r(() => [
|
|
2794
|
-
(i(!0), _(
|
|
2795
|
+
(i(!0), _(O, null, U(s.types, (S, q) => (i(), h(T, {
|
|
2795
2796
|
key: q,
|
|
2796
2797
|
label: S.label,
|
|
2797
2798
|
value: S.value
|
|
@@ -2804,8 +2805,8 @@ function jl(e, t, n, o, l, a) {
|
|
|
2804
2805
|
})
|
|
2805
2806
|
]),
|
|
2806
2807
|
_: 1
|
|
2807
|
-
})) :
|
|
2808
|
-
(i(), h(
|
|
2808
|
+
})) : B("", !0),
|
|
2809
|
+
(i(), h(R, Q({
|
|
2809
2810
|
key: l.ctrlKey,
|
|
2810
2811
|
modelValue: l.ctrlOptions,
|
|
2811
2812
|
"onUpdate:modelValue": t[4] || (t[4] = (S) => l.ctrlOptions = S)
|
|
@@ -2814,65 +2815,65 @@ function jl(e, t, n, o, l, a) {
|
|
|
2814
2815
|
_: 1
|
|
2815
2816
|
});
|
|
2816
2817
|
}
|
|
2817
|
-
const
|
|
2818
|
+
const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f"]]), Gl = "rtl", Kl = {
|
|
2818
2819
|
__name: "PageEditor",
|
|
2819
2820
|
setup(e) {
|
|
2820
2821
|
const t = C(!1);
|
|
2821
2822
|
C(1);
|
|
2822
2823
|
const n = Z(), o = Y(), l = k(() => o.pages[n.path]);
|
|
2823
|
-
return (
|
|
2824
|
-
const c = L("VIcon"), d =
|
|
2825
|
-
return i(), _(
|
|
2824
|
+
return (s, a) => {
|
|
2825
|
+
const c = L("VIcon"), d = At;
|
|
2826
|
+
return i(), _(O, null, [
|
|
2826
2827
|
u(c, {
|
|
2827
2828
|
name: "ra-set",
|
|
2828
|
-
onClick:
|
|
2829
|
+
onClick: a[0] || (a[0] = (p) => t.value = !m(t))
|
|
2829
2830
|
}),
|
|
2830
2831
|
u(d, {
|
|
2831
2832
|
modelValue: m(t),
|
|
2832
|
-
"onUpdate:modelValue":
|
|
2833
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => Ge(t) ? t.value = p : null),
|
|
2833
2834
|
title: "页面设计",
|
|
2834
2835
|
class: "my-drawer",
|
|
2835
|
-
direction:
|
|
2836
|
+
direction: Gl,
|
|
2836
2837
|
size: "90%",
|
|
2837
2838
|
"destroy-on-close": "",
|
|
2838
2839
|
"append-to-body": ""
|
|
2839
2840
|
}, {
|
|
2840
2841
|
default: r(() => [
|
|
2841
|
-
m(l).formItems !== void 0 ? (i(), h(
|
|
2842
|
+
m(l).formItems !== void 0 ? (i(), h(wl, {
|
|
2842
2843
|
key: 0,
|
|
2843
2844
|
schema: m(l)
|
|
2844
|
-
}, null, 8, ["schema"])) :
|
|
2845
|
-
m(l).headers !== void 0 ? (i(), h(
|
|
2845
|
+
}, null, 8, ["schema"])) : B("", !0),
|
|
2846
|
+
m(l).headers !== void 0 ? (i(), h(Fl, {
|
|
2846
2847
|
key: 1,
|
|
2847
2848
|
schema: m(l)
|
|
2848
|
-
}, null, 8, ["schema"])) :
|
|
2849
|
+
}, null, 8, ["schema"])) : B("", !0)
|
|
2849
2850
|
]),
|
|
2850
2851
|
_: 1
|
|
2851
2852
|
}, 8, ["modelValue"])
|
|
2852
2853
|
], 64);
|
|
2853
2854
|
};
|
|
2854
2855
|
}
|
|
2855
|
-
},
|
|
2856
|
+
}, zl = { class: "right-content" }, Jl = {
|
|
2856
2857
|
key: 0,
|
|
2857
2858
|
class: "right-item"
|
|
2858
|
-
},
|
|
2859
|
+
}, Wl = {
|
|
2859
2860
|
class: "right-item-button",
|
|
2860
2861
|
style: { padding: "0" }
|
|
2861
|
-
},
|
|
2862
|
+
}, Ql = { class: "user-info" }, Xl = { class: "user-name" }, Zl = /* @__PURE__ */ K({
|
|
2862
2863
|
__name: "Navbar",
|
|
2863
2864
|
setup(e) {
|
|
2864
|
-
const t = Y(), n = V(), o =
|
|
2865
|
+
const t = Y(), n = V(), o = j();
|
|
2865
2866
|
C(!1);
|
|
2866
2867
|
const l = C(!1);
|
|
2867
2868
|
C(""), C(0);
|
|
2868
|
-
const
|
|
2869
|
-
const
|
|
2869
|
+
const s = k(() => n.defaultAvatar), a = k(() => t.sidebar), c = k(() => o.avatar), d = k(() => o.name), p = k(() => o.nickname), f = k(() => n.nav), y = k(() => n), w = k(() => o), v = k(() => n.showPageJsonSchema || !1), { isDark: T, toggleTheme: I } = Ut(), b = k(() => {
|
|
2870
|
+
const D = y.value.envColor?.[w.value.env];
|
|
2870
2871
|
return T.value ? {
|
|
2871
2872
|
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%)",
|
|
2872
2873
|
borderBottom: "1px solid rgba(148, 163, 184, 0.35)",
|
|
2873
2874
|
boxShadow: "0 1px 8px rgba(15, 23, 42, 0.7)"
|
|
2874
|
-
} :
|
|
2875
|
-
background: `linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 60%, ${
|
|
2875
|
+
} : D ? {
|
|
2876
|
+
background: `linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 60%, ${D} 100%)`,
|
|
2876
2877
|
borderBottom: "1px solid rgba(15, 23, 42, 0.08)",
|
|
2877
2878
|
boxShadow: "0 1px 4px rgba(15, 23, 42, 0.08)"
|
|
2878
2879
|
} : {
|
|
@@ -2881,84 +2882,84 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
2881
2882
|
boxShadow: "0 1px 4px rgba(15, 23, 42, 0.05)"
|
|
2882
2883
|
};
|
|
2883
2884
|
});
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
const
|
|
2887
|
-
|
|
2885
|
+
Ie(() => {
|
|
2886
|
+
xt("el-submenu is-active");
|
|
2887
|
+
const D = Oe("navBarNotice") || "";
|
|
2888
|
+
D.length > 0 && !Oe("closeNavNotice") && sn(D) && window?.App?.config?.globalProperties?.$notify({
|
|
2888
2889
|
title: "提示",
|
|
2889
|
-
message:
|
|
2890
|
+
message: D,
|
|
2890
2891
|
dangerouslyUseHTMLString: !0,
|
|
2891
2892
|
duration: 0,
|
|
2892
|
-
onClose:
|
|
2893
|
-
}), y.value.envColor?.[w.value.env] &&
|
|
2893
|
+
onClose: ln
|
|
2894
|
+
}), y.value.envColor?.[w.value.env] && An({
|
|
2894
2895
|
elRef: E.value.$el,
|
|
2895
2896
|
waterMark: w.value.env,
|
|
2896
2897
|
color: "skyblue",
|
|
2897
2898
|
size: "20"
|
|
2898
2899
|
});
|
|
2899
2900
|
});
|
|
2900
|
-
const E = C(),
|
|
2901
|
-
|
|
2902
|
-
W.value = !1,
|
|
2901
|
+
const E = C(), R = C(""), W = C(!1);
|
|
2902
|
+
Ee([c, s], () => {
|
|
2903
|
+
W.value = !1, R.value = c.value || s.value || "";
|
|
2903
2904
|
}, { immediate: !0 });
|
|
2904
2905
|
const S = k(() => {
|
|
2905
|
-
const
|
|
2906
|
-
return
|
|
2906
|
+
const D = p.value || d.value || n.title || "用户";
|
|
2907
|
+
return D ? D.toString().trim().charAt(0).toUpperCase() : "用";
|
|
2907
2908
|
});
|
|
2908
2909
|
function q() {
|
|
2909
2910
|
t.toggleSideBar();
|
|
2910
2911
|
}
|
|
2911
|
-
async function
|
|
2912
|
+
async function z() {
|
|
2912
2913
|
await o.logout();
|
|
2913
|
-
const
|
|
2914
|
-
location.reload(`${location.origin}/#/login?redirect=${
|
|
2914
|
+
const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
|
|
2915
|
+
location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
|
|
2915
2916
|
}
|
|
2916
|
-
function Oe(
|
|
2917
|
-
return n[
|
|
2917
|
+
function Oe(D) {
|
|
2918
|
+
return n[D];
|
|
2918
2919
|
}
|
|
2919
|
-
async function
|
|
2920
|
-
n.updateSettings({ closeNavNotice: !0 }),
|
|
2920
|
+
async function ln() {
|
|
2921
|
+
n.updateSettings({ closeNavNotice: !0 }), an(Oe("navBarNotice"));
|
|
2921
2922
|
}
|
|
2922
|
-
function
|
|
2923
|
-
const
|
|
2924
|
-
return ge.exist(
|
|
2923
|
+
function sn(D) {
|
|
2924
|
+
const N = "dismiss:navbar_notice";
|
|
2925
|
+
return ge.exist(N) ? ge.get(N) !== D : !0;
|
|
2925
2926
|
}
|
|
2926
|
-
function
|
|
2927
|
-
ge.set("dismiss:navbar_notice",
|
|
2927
|
+
function an(D) {
|
|
2928
|
+
ge.set("dismiss:navbar_notice", D);
|
|
2928
2929
|
}
|
|
2929
|
-
function
|
|
2930
|
-
W.value || (W.value = !0,
|
|
2930
|
+
function rn() {
|
|
2931
|
+
W.value || (W.value = !0, R.value = "");
|
|
2931
2932
|
}
|
|
2932
|
-
return (
|
|
2933
|
-
const
|
|
2934
|
-
return i(), h(
|
|
2933
|
+
return (D, N) => {
|
|
2934
|
+
const at = $e, cn = eo, un = Pt, dn = no, it = lo, pn = oo, fn = to, mn = At, hn = be;
|
|
2935
|
+
return i(), h(hn, {
|
|
2935
2936
|
ref_key: "header",
|
|
2936
2937
|
ref: E,
|
|
2937
2938
|
class: "navbar",
|
|
2938
|
-
style:
|
|
2939
|
+
style: vn(b.value)
|
|
2939
2940
|
}, {
|
|
2940
2941
|
default: r(() => [
|
|
2941
|
-
u(
|
|
2942
|
+
u(at, { span: 16 }, {
|
|
2942
2943
|
default: r(() => [
|
|
2943
|
-
u(
|
|
2944
|
-
"is-active":
|
|
2944
|
+
u(ol, {
|
|
2945
|
+
"is-active": a.value.opened,
|
|
2945
2946
|
class: "hamburger-container",
|
|
2946
2947
|
onToggleClick: q
|
|
2947
2948
|
}, null, 8, ["is-active"]),
|
|
2948
|
-
u(
|
|
2949
|
+
u(el, { class: "breadcrumb-container" })
|
|
2949
2950
|
]),
|
|
2950
2951
|
_: 1
|
|
2951
2952
|
}),
|
|
2952
|
-
u(
|
|
2953
|
+
u(at, { span: 8 }, {
|
|
2953
2954
|
default: r(() => [
|
|
2954
|
-
g("div",
|
|
2955
|
-
v.value ? (i(), _("div",
|
|
2956
|
-
u(
|
|
2957
|
-
])) :
|
|
2958
|
-
g("div",
|
|
2955
|
+
g("div", zl, [
|
|
2956
|
+
v.value ? (i(), _("div", Jl, [
|
|
2957
|
+
u(Kl)
|
|
2958
|
+
])) : B("", !0),
|
|
2959
|
+
g("div", Wl, [
|
|
2959
2960
|
u(m(et), { buttons: f.value }, null, 8, ["buttons"])
|
|
2960
2961
|
]),
|
|
2961
|
-
u(
|
|
2962
|
+
u(un, {
|
|
2962
2963
|
placement: "bottom",
|
|
2963
2964
|
content: m(T) ? "切换为明亮模式" : "切换为暗黑模式"
|
|
2964
2965
|
}, {
|
|
@@ -2967,24 +2968,24 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
2967
2968
|
class: "right-item theme-toggle",
|
|
2968
2969
|
role: "button",
|
|
2969
2970
|
tabindex: "0",
|
|
2970
|
-
onClick:
|
|
2971
|
-
(...
|
|
2971
|
+
onClick: N[0] || (N[0] = //@ts-ignore
|
|
2972
|
+
(...se) => m(I) && m(I)(...se)),
|
|
2972
2973
|
onKeydown: [
|
|
2973
|
-
|
|
2974
|
+
N[1] || (N[1] = rt(ct(
|
|
2974
2975
|
//@ts-ignore
|
|
2975
|
-
(...
|
|
2976
|
+
(...se) => m(I) && m(I)(...se),
|
|
2976
2977
|
["prevent"]
|
|
2977
2978
|
), ["enter"])),
|
|
2978
|
-
|
|
2979
|
+
N[2] || (N[2] = rt(ct(
|
|
2979
2980
|
//@ts-ignore
|
|
2980
|
-
(...
|
|
2981
|
+
(...se) => m(I) && m(I)(...se),
|
|
2981
2982
|
["prevent"]
|
|
2982
2983
|
), ["space"]))
|
|
2983
2984
|
]
|
|
2984
2985
|
}, [
|
|
2985
|
-
u(
|
|
2986
|
+
u(cn, null, {
|
|
2986
2987
|
default: r(() => [
|
|
2987
|
-
(i(), h(
|
|
2988
|
+
(i(), h(Ke(m(T) ? m(go) : m(ko))))
|
|
2988
2989
|
]),
|
|
2989
2990
|
_: 1
|
|
2990
2991
|
})
|
|
@@ -2992,29 +2993,29 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
2992
2993
|
]),
|
|
2993
2994
|
_: 1
|
|
2994
2995
|
}, 8, ["content"]),
|
|
2995
|
-
u(
|
|
2996
|
+
u(fn, {
|
|
2996
2997
|
class: "right-item",
|
|
2997
2998
|
trigger: "click"
|
|
2998
2999
|
}, {
|
|
2999
3000
|
dropdown: r(() => [
|
|
3000
|
-
u(
|
|
3001
|
+
u(pn, { class: "user-dropdown" }, {
|
|
3001
3002
|
default: r(() => [
|
|
3002
3003
|
u(it, {
|
|
3003
3004
|
icon: "oms-icon-index",
|
|
3004
|
-
onClick:
|
|
3005
|
+
onClick: N[3] || (N[3] = (se) => D.$router.push("/"))
|
|
3005
3006
|
}, {
|
|
3006
|
-
default: r(() => [...
|
|
3007
|
-
|
|
3007
|
+
default: r(() => [...N[4] || (N[4] = [
|
|
3008
|
+
$("首页", -1)
|
|
3008
3009
|
])]),
|
|
3009
3010
|
_: 1
|
|
3010
3011
|
}),
|
|
3011
3012
|
u(it, {
|
|
3012
3013
|
divided: "",
|
|
3013
3014
|
icon: "el-icon-switch-button",
|
|
3014
|
-
onClick:
|
|
3015
|
+
onClick: z
|
|
3015
3016
|
}, {
|
|
3016
|
-
default: r(() => [...
|
|
3017
|
-
|
|
3017
|
+
default: r(() => [...N[5] || (N[5] = [
|
|
3018
|
+
$("退出登录", -1)
|
|
3018
3019
|
])]),
|
|
3019
3020
|
_: 1
|
|
3020
3021
|
})
|
|
@@ -3023,19 +3024,19 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3023
3024
|
})
|
|
3024
3025
|
]),
|
|
3025
3026
|
default: r(() => [
|
|
3026
|
-
g("div",
|
|
3027
|
-
u(
|
|
3027
|
+
g("div", Ql, [
|
|
3028
|
+
u(dn, {
|
|
3028
3029
|
class: "user-avatar",
|
|
3029
3030
|
size: 32,
|
|
3030
|
-
src:
|
|
3031
|
-
onError:
|
|
3031
|
+
src: R.value || void 0,
|
|
3032
|
+
onError: rn
|
|
3032
3033
|
}, {
|
|
3033
3034
|
default: r(() => [
|
|
3034
|
-
|
|
3035
|
+
$(A(S.value), 1)
|
|
3035
3036
|
]),
|
|
3036
3037
|
_: 1
|
|
3037
3038
|
}, 8, ["src"]),
|
|
3038
|
-
g("span",
|
|
3039
|
+
g("span", Xl, A(p.value || d.value), 1)
|
|
3039
3040
|
])
|
|
3040
3041
|
]),
|
|
3041
3042
|
_: 1
|
|
@@ -3044,44 +3045,44 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3044
3045
|
]),
|
|
3045
3046
|
_: 1
|
|
3046
3047
|
}),
|
|
3047
|
-
l.value ? (i(), h(
|
|
3048
|
+
l.value ? (i(), h(mn, {
|
|
3048
3049
|
key: 0,
|
|
3049
3050
|
"with-header": !1,
|
|
3050
3051
|
size: "50%"
|
|
3051
|
-
})) :
|
|
3052
|
+
})) : B("", !0)
|
|
3052
3053
|
]),
|
|
3053
3054
|
_: 1
|
|
3054
3055
|
}, 8, ["style"]);
|
|
3055
3056
|
};
|
|
3056
3057
|
}
|
|
3057
|
-
}),
|
|
3058
|
+
}), Yl = /* @__PURE__ */ P(Zl, [["__scopeId", "data-v-946dd90a"]]), es = { class: "sidebar-logo-fallback" }, ts = {
|
|
3058
3059
|
key: 1,
|
|
3059
3060
|
class: "sidebar-logo-fallback"
|
|
3060
|
-
},
|
|
3061
|
+
}, ns = { class: "sidebar-logo-fallback" }, os = {
|
|
3061
3062
|
key: 1,
|
|
3062
3063
|
class: "sidebar-logo-fallback"
|
|
3063
|
-
},
|
|
3064
|
+
}, ls = { class: "sidebar-title" }, ss = /* @__PURE__ */ K({
|
|
3064
3065
|
__name: "Logo",
|
|
3065
3066
|
props: {
|
|
3066
3067
|
collapse: { type: Boolean }
|
|
3067
3068
|
},
|
|
3068
3069
|
setup(e) {
|
|
3069
|
-
const t = V(), n = k(() => t.title), o = k(() => t.logo), l = C(!1),
|
|
3070
|
+
const t = V(), n = k(() => t.title), o = k(() => t.logo), l = C(!1), s = k(() => !!o.value && !l.value), a = k(() => {
|
|
3070
3071
|
const d = n.value || "OMS";
|
|
3071
3072
|
return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
|
|
3072
3073
|
});
|
|
3073
|
-
|
|
3074
|
+
Ee(o, () => {
|
|
3074
3075
|
l.value = !1;
|
|
3075
3076
|
}, { immediate: !0 });
|
|
3076
3077
|
function c() {
|
|
3077
3078
|
l.value = !0;
|
|
3078
3079
|
}
|
|
3079
3080
|
return (d, p) => {
|
|
3080
|
-
const f =
|
|
3081
|
+
const f = so, y = L("router-link");
|
|
3081
3082
|
return i(), _("div", {
|
|
3082
3083
|
class: ee(["sidebar-logo-container", { collapse: d.collapse }])
|
|
3083
3084
|
}, [
|
|
3084
|
-
u(
|
|
3085
|
+
u(gn, { name: "sidebarLogoFade" }, {
|
|
3085
3086
|
default: r(() => [
|
|
3086
3087
|
d.collapse ? (i(), h(y, {
|
|
3087
3088
|
key: "collapse",
|
|
@@ -3089,7 +3090,7 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3089
3090
|
to: "/"
|
|
3090
3091
|
}, {
|
|
3091
3092
|
default: r(() => [
|
|
3092
|
-
|
|
3093
|
+
s.value ? (i(), h(f, {
|
|
3093
3094
|
key: 0,
|
|
3094
3095
|
src: o.value || "",
|
|
3095
3096
|
fit: "contain",
|
|
@@ -3097,10 +3098,10 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3097
3098
|
onError: c
|
|
3098
3099
|
}, {
|
|
3099
3100
|
error: r(() => [
|
|
3100
|
-
g("div",
|
|
3101
|
+
g("div", es, A(a.value), 1)
|
|
3101
3102
|
]),
|
|
3102
3103
|
_: 1
|
|
3103
|
-
}, 8, ["src"])) : (i(), _("div",
|
|
3104
|
+
}, 8, ["src"])) : (i(), _("div", ts, A(a.value), 1)),
|
|
3104
3105
|
p[0] || (p[0] = g("div", { class: "sidebar-subtitle" }, "系统", -1))
|
|
3105
3106
|
]),
|
|
3106
3107
|
_: 1
|
|
@@ -3110,7 +3111,7 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3110
3111
|
to: "/"
|
|
3111
3112
|
}, {
|
|
3112
3113
|
default: r(() => [
|
|
3113
|
-
|
|
3114
|
+
s.value ? (i(), h(f, {
|
|
3114
3115
|
key: 0,
|
|
3115
3116
|
src: o.value || "",
|
|
3116
3117
|
fit: "contain",
|
|
@@ -3118,11 +3119,11 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3118
3119
|
onError: c
|
|
3119
3120
|
}, {
|
|
3120
3121
|
error: r(() => [
|
|
3121
|
-
g("div",
|
|
3122
|
+
g("div", ns, A(a.value), 1)
|
|
3122
3123
|
]),
|
|
3123
3124
|
_: 1
|
|
3124
|
-
}, 8, ["src"])) : (i(), _("div",
|
|
3125
|
-
g("h1",
|
|
3125
|
+
}, 8, ["src"])) : (i(), _("div", os, A(a.value), 1)),
|
|
3126
|
+
g("h1", ls, A(n.value), 1)
|
|
3126
3127
|
]),
|
|
3127
3128
|
_: 1
|
|
3128
3129
|
}))
|
|
@@ -3132,7 +3133,7 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3132
3133
|
], 2);
|
|
3133
3134
|
};
|
|
3134
3135
|
}
|
|
3135
|
-
}),
|
|
3136
|
+
}), as = /* @__PURE__ */ P(ss, [["__scopeId", "data-v-d170b6a7"]]), is = {
|
|
3136
3137
|
props: {
|
|
3137
3138
|
to: {
|
|
3138
3139
|
type: String,
|
|
@@ -3165,15 +3166,15 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3165
3166
|
}
|
|
3166
3167
|
}
|
|
3167
3168
|
};
|
|
3168
|
-
function
|
|
3169
|
-
return i(), h(
|
|
3169
|
+
function rs(e, t, n, o, l, s) {
|
|
3170
|
+
return i(), h(Ke(s.compType(n.to)), X(re(s.linkProps(n.to))), {
|
|
3170
3171
|
default: r(() => [
|
|
3171
3172
|
de(e.$slots, "default")
|
|
3172
3173
|
]),
|
|
3173
3174
|
_: 3
|
|
3174
3175
|
}, 16);
|
|
3175
3176
|
}
|
|
3176
|
-
const
|
|
3177
|
+
const cs = /* @__PURE__ */ P(is, [["render", rs]]), us = {
|
|
3177
3178
|
computed: {
|
|
3178
3179
|
// @ts-ignore
|
|
3179
3180
|
device() {
|
|
@@ -3194,7 +3195,7 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
|
|
|
3194
3195
|
}
|
|
3195
3196
|
}
|
|
3196
3197
|
}
|
|
3197
|
-
},
|
|
3198
|
+
}, ds = { class: "menu-content" }, ps = /* @__PURE__ */ K({
|
|
3198
3199
|
__name: "MenuContent",
|
|
3199
3200
|
props: {
|
|
3200
3201
|
meta: {
|
|
@@ -3208,21 +3209,21 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
|
|
|
3208
3209
|
setup(e) {
|
|
3209
3210
|
return (t, n) => {
|
|
3210
3211
|
const o = L("VIcon");
|
|
3211
|
-
return i(), _(
|
|
3212
|
+
return i(), _(O, null, [
|
|
3212
3213
|
u(o, {
|
|
3213
3214
|
name: e.meta.icon || "ra-all"
|
|
3214
3215
|
}, null, 8, ["name"]),
|
|
3215
|
-
g("span",
|
|
3216
|
+
g("span", ds, A(e.meta.title), 1)
|
|
3216
3217
|
], 64);
|
|
3217
3218
|
};
|
|
3218
3219
|
}
|
|
3219
|
-
}),
|
|
3220
|
+
}), fs = {
|
|
3220
3221
|
name: "SidebarItem",
|
|
3221
3222
|
components: {
|
|
3222
|
-
AppLink:
|
|
3223
|
-
MenuContent:
|
|
3223
|
+
AppLink: cs,
|
|
3224
|
+
MenuContent: ps
|
|
3224
3225
|
},
|
|
3225
|
-
mixins: [
|
|
3226
|
+
mixins: [us],
|
|
3226
3227
|
props: {
|
|
3227
3228
|
// route object
|
|
3228
3229
|
item: {
|
|
@@ -3254,13 +3255,13 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
|
|
|
3254
3255
|
}
|
|
3255
3256
|
}
|
|
3256
3257
|
}
|
|
3257
|
-
},
|
|
3258
|
+
}, ms = {
|
|
3258
3259
|
key: 0,
|
|
3259
3260
|
class: "menu-wrapper"
|
|
3260
3261
|
};
|
|
3261
|
-
function
|
|
3262
|
-
const
|
|
3263
|
-
return n.item.hidden !== !1 ? (i(), _("div",
|
|
3262
|
+
function hs(e, t, n, o, l, s) {
|
|
3263
|
+
const a = L("menu-content"), c = ao, d = L("app-link"), p = Pt, f = L("sidebar-item", !0), y = io;
|
|
3264
|
+
return n.item.hidden !== !1 ? (i(), _("div", ms, [
|
|
3264
3265
|
n.item.meta && n.item.meta.menuType === 2 ? (i(), h(p, {
|
|
3265
3266
|
key: 0,
|
|
3266
3267
|
disabled: !n.isCollapse,
|
|
@@ -3278,10 +3279,10 @@ function ua(e, t, n, o, l, a) {
|
|
|
3278
3279
|
u(c, {
|
|
3279
3280
|
index: n.to,
|
|
3280
3281
|
class: ee({ "submenu-title-noDropdown": !n.isNest }),
|
|
3281
|
-
onClick:
|
|
3282
|
+
onClick: s.itemClick
|
|
3282
3283
|
}, {
|
|
3283
3284
|
default: r(() => [
|
|
3284
|
-
u(
|
|
3285
|
+
u(a, {
|
|
3285
3286
|
meta: n.item.meta
|
|
3286
3287
|
}, null, 8, ["meta"])
|
|
3287
3288
|
]),
|
|
@@ -3289,7 +3290,7 @@ function ua(e, t, n, o, l, a) {
|
|
|
3289
3290
|
}, 8, ["index", "class", "onClick"])
|
|
3290
3291
|
]),
|
|
3291
3292
|
_: 1
|
|
3292
|
-
}, 8, ["to", "new-tab"])) :
|
|
3293
|
+
}, 8, ["to", "new-tab"])) : B("", !0)
|
|
3293
3294
|
]),
|
|
3294
3295
|
_: 1
|
|
3295
3296
|
}, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(p, {
|
|
@@ -3311,22 +3312,22 @@ function ua(e, t, n, o, l, a) {
|
|
|
3311
3312
|
to: n.to
|
|
3312
3313
|
}, {
|
|
3313
3314
|
default: r(() => [
|
|
3314
|
-
u(
|
|
3315
|
+
u(a, {
|
|
3315
3316
|
meta: n.item.meta
|
|
3316
3317
|
}, null, 8, ["meta"])
|
|
3317
3318
|
]),
|
|
3318
3319
|
_: 1
|
|
3319
|
-
}, 8, ["to"])) : (i(), h(
|
|
3320
|
+
}, 8, ["to"])) : (i(), h(a, {
|
|
3320
3321
|
key: 1,
|
|
3321
3322
|
meta: n.item.meta
|
|
3322
3323
|
}, null, 8, ["meta"]))
|
|
3323
3324
|
]),
|
|
3324
3325
|
default: r(() => [
|
|
3325
|
-
(i(!0), _(
|
|
3326
|
+
(i(!0), _(O, null, U(n.item.children, (w) => (i(), h(f, {
|
|
3326
3327
|
key: w.path,
|
|
3327
3328
|
"is-nest": !0,
|
|
3328
3329
|
item: w,
|
|
3329
|
-
to:
|
|
3330
|
+
to: s.getTo(w),
|
|
3330
3331
|
class: "nest-menu"
|
|
3331
3332
|
}, null, 8, ["item", "to"]))), 128))
|
|
3332
3333
|
]),
|
|
@@ -3334,17 +3335,17 @@ function ua(e, t, n, o, l, a) {
|
|
|
3334
3335
|
}, 8, ["index", "class"])
|
|
3335
3336
|
]),
|
|
3336
3337
|
_: 1
|
|
3337
|
-
}, 8, ["disabled", "content"])) :
|
|
3338
|
-
])) :
|
|
3338
|
+
}, 8, ["disabled", "content"])) : B("", !0)
|
|
3339
|
+
])) : B("", !0);
|
|
3339
3340
|
}
|
|
3340
|
-
const
|
|
3341
|
+
const bs = /* @__PURE__ */ P(fs, [["render", hs]]), ys = /* @__PURE__ */ K({
|
|
3341
3342
|
__name: "SearchMenu",
|
|
3342
3343
|
setup(e) {
|
|
3343
|
-
const t =
|
|
3344
|
+
const t = j();
|
|
3344
3345
|
function n(p) {
|
|
3345
3346
|
return p.filter((f) => f.meta?.menuType === 0 ? !1 : (f.children && (f.children = n(f.children), f.children.length === 0 && delete f.children), !0));
|
|
3346
3347
|
}
|
|
3347
|
-
const o = C(""), l = k(() => t.remoteRouter),
|
|
3348
|
+
const o = C(""), l = k(() => t.remoteRouter), s = Te(), a = k(() => {
|
|
3348
3349
|
let p = [];
|
|
3349
3350
|
return l.value.forEach((f) => {
|
|
3350
3351
|
p = p.concat(x(f.routes));
|
|
@@ -3359,13 +3360,13 @@ const da = /* @__PURE__ */ R(ra, [["render", ua]]), pa = /* @__PURE__ */ z({
|
|
|
3359
3360
|
break;
|
|
3360
3361
|
}
|
|
3361
3362
|
}
|
|
3362
|
-
return
|
|
3363
|
+
return s.resolve(f.redirect ? f.redirect : f).fullPath;
|
|
3363
3364
|
}
|
|
3364
3365
|
function d(p) {
|
|
3365
|
-
|
|
3366
|
+
s.push(p), o.value = "";
|
|
3366
3367
|
}
|
|
3367
3368
|
return (p, f) => {
|
|
3368
|
-
const y = Qe, w =
|
|
3369
|
+
const y = Qe, w = ro, v = We;
|
|
3369
3370
|
return i(), h(v, {
|
|
3370
3371
|
modelValue: m(o),
|
|
3371
3372
|
"onUpdate:modelValue": f[0] || (f[0] = (T) => Ge(o) ? o.value = T : null),
|
|
@@ -3375,27 +3376,27 @@ const da = /* @__PURE__ */ R(ra, [["render", ua]]), pa = /* @__PURE__ */ z({
|
|
|
3375
3376
|
onChange: d
|
|
3376
3377
|
}, {
|
|
3377
3378
|
default: r(() => [
|
|
3378
|
-
(i(!0), _(
|
|
3379
|
+
(i(!0), _(O, null, U(m(a), (T) => (i(), _(O, {
|
|
3379
3380
|
key: T.path
|
|
3380
3381
|
}, [
|
|
3381
|
-
T.children !== void 0 ? (i(), _(
|
|
3382
|
+
T.children !== void 0 ? (i(), _(O, { key: 0 }, [
|
|
3382
3383
|
T.meta.menuType !== 0 ? (i(), h(w, {
|
|
3383
3384
|
key: T.path + "-",
|
|
3384
3385
|
label: T.meta.title
|
|
3385
3386
|
}, {
|
|
3386
3387
|
default: r(() => [
|
|
3387
|
-
(i(!0), _(
|
|
3388
|
+
(i(!0), _(O, null, U(T.children, (I, b) => (i(), _(O, {
|
|
3388
3389
|
key: I.path
|
|
3389
3390
|
}, [
|
|
3390
3391
|
T.meta.menuType !== 0 ? (i(), h(y, {
|
|
3391
3392
|
key: 0,
|
|
3392
3393
|
label: (b === T.children.length - 1 ? "└─" : "├─") + I.meta.title,
|
|
3393
3394
|
value: c(I)
|
|
3394
|
-
}, null, 8, ["label", "value"])) :
|
|
3395
|
+
}, null, 8, ["label", "value"])) : B("", !0)
|
|
3395
3396
|
], 64))), 128))
|
|
3396
3397
|
]),
|
|
3397
3398
|
_: 2
|
|
3398
|
-
}, 1032, ["label"])) :
|
|
3399
|
+
}, 1032, ["label"])) : B("", !0)
|
|
3399
3400
|
], 64)) : (i(), h(y, {
|
|
3400
3401
|
key: 1,
|
|
3401
3402
|
label: "" + T.meta.title,
|
|
@@ -3407,25 +3408,25 @@ const da = /* @__PURE__ */ R(ra, [["render", ua]]), pa = /* @__PURE__ */ z({
|
|
|
3407
3408
|
}, 8, ["modelValue"]);
|
|
3408
3409
|
};
|
|
3409
3410
|
}
|
|
3410
|
-
}),
|
|
3411
|
+
}), _s = /* @__PURE__ */ P(ys, [["__scopeId", "data-v-1821c9c2"]]);
|
|
3411
3412
|
var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), 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 || {});
|
|
3412
|
-
const
|
|
3413
|
+
const vs = /* @__PURE__ */ K({
|
|
3413
3414
|
__name: "index",
|
|
3414
3415
|
setup(e) {
|
|
3415
|
-
const t = Y(), n =
|
|
3416
|
+
const t = Y(), n = j(), o = V(), l = k(() => t.sidebar), s = k(() => n.remoteRouter), a = k(() => n.customRouter), c = Te(), d = Z(), p = k(() => {
|
|
3416
3417
|
let b = [];
|
|
3417
|
-
return c.options.routes.concat(
|
|
3418
|
+
return c.options.routes.concat(a.value || []).forEach((E) => {
|
|
3418
3419
|
E.path === "/" ? b = b.concat(E.children || []) : b.push(E);
|
|
3419
3420
|
}), x([
|
|
3420
3421
|
{ label: "", routes: b },
|
|
3421
|
-
...
|
|
3422
|
+
...s.value
|
|
3422
3423
|
]);
|
|
3423
3424
|
}), f = k(() => {
|
|
3424
3425
|
const b = d.matched;
|
|
3425
3426
|
for (let E = b.length - 1; E >= 0; E--) {
|
|
3426
|
-
const
|
|
3427
|
-
if (
|
|
3428
|
-
return T(), c.resolve(
|
|
3427
|
+
const R = b[E];
|
|
3428
|
+
if (R.meta.menuType === G.menu)
|
|
3429
|
+
return T(), c.resolve(R.redirect ? R.redirect : R).fullPath;
|
|
3429
3430
|
}
|
|
3430
3431
|
return "";
|
|
3431
3432
|
}), y = k(() => o.sidebarLogo), w = k(() => ({
|
|
@@ -3433,26 +3434,26 @@ const ma = /* @__PURE__ */ z({
|
|
|
3433
3434
|
menuText: "#bfcbd9",
|
|
3434
3435
|
menuActiveText: "#409EFF"
|
|
3435
3436
|
})), v = k(() => !l.value.opened);
|
|
3436
|
-
|
|
3437
|
+
Ie(() => T());
|
|
3437
3438
|
function T() {
|
|
3438
|
-
|
|
3439
|
+
xt("is-active", 200);
|
|
3439
3440
|
}
|
|
3440
3441
|
function I(b) {
|
|
3441
3442
|
return b.filter((E) => [G.dir, G.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children = I(E.children)), E));
|
|
3442
3443
|
}
|
|
3443
3444
|
return (b, E) => {
|
|
3444
|
-
const
|
|
3445
|
+
const R = uo, W = co;
|
|
3445
3446
|
return i(), _("div", {
|
|
3446
3447
|
class: ee({ "has-logo": m(y) })
|
|
3447
3448
|
}, [
|
|
3448
|
-
m(y) ? (i(), h(
|
|
3449
|
+
m(y) ? (i(), h(as, {
|
|
3449
3450
|
key: 0,
|
|
3450
3451
|
collapse: m(v)
|
|
3451
|
-
}, null, 8, ["collapse"])) :
|
|
3452
|
+
}, null, 8, ["collapse"])) : B("", !0),
|
|
3452
3453
|
u(W, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3453
3454
|
default: r(() => [
|
|
3454
|
-
m(v) ?
|
|
3455
|
-
u(
|
|
3455
|
+
m(v) ? B("", !0) : (i(), h(_s, { key: 0 })),
|
|
3456
|
+
u(R, {
|
|
3456
3457
|
"default-active": m(f),
|
|
3457
3458
|
collapse: m(v),
|
|
3458
3459
|
"background-color": m(w).menuBg,
|
|
@@ -3463,13 +3464,13 @@ const ma = /* @__PURE__ */ z({
|
|
|
3463
3464
|
mode: "vertical"
|
|
3464
3465
|
}, {
|
|
3465
3466
|
default: r(() => [
|
|
3466
|
-
(i(!0), _(
|
|
3467
|
+
(i(!0), _(O, null, U(m(p), (S, q) => (i(), _(O, {
|
|
3467
3468
|
key: q + "-module"
|
|
3468
3469
|
}, [
|
|
3469
|
-
(i(!0), _(
|
|
3470
|
-
key:
|
|
3471
|
-
item:
|
|
3472
|
-
to: b.$router.resolve(
|
|
3470
|
+
(i(!0), _(O, null, U(I(S.routes), (z) => (i(), h(bs, {
|
|
3471
|
+
key: z.path,
|
|
3472
|
+
item: z,
|
|
3473
|
+
to: b.$router.resolve(z.redirect ? z.redirect : z).fullPath,
|
|
3473
3474
|
"is-collapse": m(v)
|
|
3474
3475
|
}, null, 8, ["item", "to", "is-collapse"]))), 128))
|
|
3475
3476
|
], 64))), 128))
|
|
@@ -3482,32 +3483,32 @@ const ma = /* @__PURE__ */ z({
|
|
|
3482
3483
|
], 2);
|
|
3483
3484
|
};
|
|
3484
3485
|
}
|
|
3485
|
-
}),
|
|
3486
|
+
}), gs = /* @__PURE__ */ P(vs, [["__scopeId", "data-v-3be8fe55"]]), ks = { class: "app-main" }, Ss = {
|
|
3486
3487
|
__name: "AppMain",
|
|
3487
3488
|
setup(e) {
|
|
3488
3489
|
const t = Z(), n = [], o = C(0);
|
|
3489
|
-
return
|
|
3490
|
+
return Gn(() => {
|
|
3490
3491
|
t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
|
|
3491
|
-
}), (l,
|
|
3492
|
-
const
|
|
3493
|
-
return i(), _("section",
|
|
3494
|
-
(i(), h(
|
|
3492
|
+
}), (l, s) => {
|
|
3493
|
+
const a = L("router-view"), c = po;
|
|
3494
|
+
return i(), _("section", ks, [
|
|
3495
|
+
(i(), h(a, {
|
|
3495
3496
|
key: l.$route.fullPath + m(o)
|
|
3496
3497
|
})),
|
|
3497
3498
|
u(c, { bottom: 50 })
|
|
3498
3499
|
]);
|
|
3499
3500
|
};
|
|
3500
3501
|
}
|
|
3501
|
-
},
|
|
3502
|
+
}, ws = /* @__PURE__ */ P(Ss, [["__scopeId", "data-v-ca0f0d98"]]), xs = { class: "main-container" }, Es = 992, Is = {
|
|
3502
3503
|
__name: "index",
|
|
3503
3504
|
setup(e) {
|
|
3504
|
-
const { body: t } = document, n = Y(), o = V(), l = k(() => n.sidebar),
|
|
3505
|
+
const { body: t } = document, n = Y(), o = V(), l = k(() => n.sidebar), s = k(() => n.device), a = k(() => o.fixedHeader), c = k(() => ({
|
|
3505
3506
|
hideSidebar: !l.value.opened,
|
|
3506
3507
|
openSidebar: l.value.opened,
|
|
3507
3508
|
withoutAnimation: l.value.withoutAnimation,
|
|
3508
|
-
mobile:
|
|
3509
|
-
})), d = () => t.getBoundingClientRect().width - 1 <
|
|
3510
|
-
|
|
3509
|
+
mobile: s.value === "mobile"
|
|
3510
|
+
})), d = () => t.getBoundingClientRect().width - 1 < Es;
|
|
3511
|
+
So(window, "resize", () => f());
|
|
3511
3512
|
const p = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
|
|
3512
3513
|
if (!document.hidden) {
|
|
3513
3514
|
const y = d();
|
|
@@ -3517,29 +3518,29 @@ const ma = /* @__PURE__ */ z({
|
|
|
3517
3518
|
return (y, w) => (i(), _("div", {
|
|
3518
3519
|
class: ee([m(c), "app-wrapper"])
|
|
3519
3520
|
}, [
|
|
3520
|
-
m(
|
|
3521
|
+
m(s) === "mobile" && m(l).opened ? (i(), _("div", {
|
|
3521
3522
|
key: 0,
|
|
3522
3523
|
class: "drawer-bg",
|
|
3523
3524
|
onClick: p
|
|
3524
|
-
})) :
|
|
3525
|
-
u(m(
|
|
3526
|
-
g("div",
|
|
3525
|
+
})) : B("", !0),
|
|
3526
|
+
u(m(gs), { class: "sidebar-container" }),
|
|
3527
|
+
g("div", xs, [
|
|
3527
3528
|
g("div", {
|
|
3528
|
-
class: ee({ "fixed-header": m(
|
|
3529
|
+
class: ee({ "fixed-header": m(a) })
|
|
3529
3530
|
}, [
|
|
3530
|
-
u(m(
|
|
3531
|
+
u(m(Yl))
|
|
3531
3532
|
], 2),
|
|
3532
|
-
u(m(
|
|
3533
|
+
u(m(ws))
|
|
3533
3534
|
])
|
|
3534
3535
|
], 2));
|
|
3535
3536
|
}
|
|
3536
|
-
},
|
|
3537
|
+
}, Kt = /* @__PURE__ */ P(Is, [["__scopeId", "data-v-b7ab74f0"]]), Cs = { id: "login" }, Ts = { id: "form" }, $s = {
|
|
3537
3538
|
key: 0,
|
|
3538
3539
|
class: "captcha"
|
|
3539
|
-
},
|
|
3540
|
+
}, Bs = ["src"], Os = { class: "tips" }, Rs = { class: "sso" }, As = /* @__PURE__ */ K({
|
|
3540
3541
|
__name: "login",
|
|
3541
3542
|
setup(e) {
|
|
3542
|
-
const t =
|
|
3543
|
+
const t = Te(), n = Z(), o = V(), l = Y(), s = j(), a = k(() => o.loginTips), c = k(() => o.captcha), d = k(() => l.baseURL), p = C(0), f = C(!1), y = () => p.value++, w = k(() => v.value.username.length > 0 && v.value.password.length >= 4 && (c.value ? v.value.captcha.length === 4 : !0)), v = C({
|
|
3543
3544
|
username: "",
|
|
3544
3545
|
password: "",
|
|
3545
3546
|
captcha: "",
|
|
@@ -3547,10 +3548,10 @@ const ma = /* @__PURE__ */ z({
|
|
|
3547
3548
|
}), T = () => {
|
|
3548
3549
|
if (!f.value) {
|
|
3549
3550
|
if (v.value.username === "" || v.value.password === "" || c.value && v.value.captcha === "") {
|
|
3550
|
-
|
|
3551
|
+
fo.error("用户名, 密码, 验证码是必须的");
|
|
3551
3552
|
return;
|
|
3552
3553
|
}
|
|
3553
|
-
c.value && (v.value.sing =
|
|
3554
|
+
c.value && (v.value.sing = xo.MD5(`${v.value.username}${v.value.password}${v.value.captcha}`).toString()), f.value = !0, s.login(v.value).then((I) => {
|
|
3554
3555
|
t.push({ path: n.query?.redirect || "/" });
|
|
3555
3556
|
}).catch((I) => {
|
|
3556
3557
|
p.value++;
|
|
@@ -3561,41 +3562,41 @@ const ma = /* @__PURE__ */ z({
|
|
|
3561
3562
|
};
|
|
3562
3563
|
return (I, b) => {
|
|
3563
3564
|
const E = me;
|
|
3564
|
-
return i(), _("div",
|
|
3565
|
+
return i(), _("div", Cs, [
|
|
3565
3566
|
b[5] || (b[5] = g("h1", { id: "title" }, "登录", -1)),
|
|
3566
|
-
g("form",
|
|
3567
|
+
g("form", Ts, [
|
|
3567
3568
|
ve(g("input", {
|
|
3568
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
3569
|
+
"onUpdate:modelValue": b[0] || (b[0] = (R) => m(v).username = R),
|
|
3569
3570
|
type: "text",
|
|
3570
3571
|
placeholder: "用户名",
|
|
3571
3572
|
class: "input"
|
|
3572
3573
|
}, null, 512), [
|
|
3573
|
-
[
|
|
3574
|
+
[Re, m(v).username]
|
|
3574
3575
|
]),
|
|
3575
3576
|
ve(g("input", {
|
|
3576
|
-
"onUpdate:modelValue": b[1] || (b[1] = (
|
|
3577
|
+
"onUpdate:modelValue": b[1] || (b[1] = (R) => m(v).password = R),
|
|
3577
3578
|
type: "password",
|
|
3578
3579
|
placeholder: "密码",
|
|
3579
3580
|
class: "input"
|
|
3580
3581
|
}, null, 512), [
|
|
3581
|
-
[
|
|
3582
|
+
[Re, m(v).password]
|
|
3582
3583
|
]),
|
|
3583
|
-
c.value ? (i(), _("div",
|
|
3584
|
+
c.value ? (i(), _("div", $s, [
|
|
3584
3585
|
ve(g("input", {
|
|
3585
|
-
"onUpdate:modelValue": b[2] || (b[2] = (
|
|
3586
|
+
"onUpdate:modelValue": b[2] || (b[2] = (R) => m(v).captcha = R),
|
|
3586
3587
|
type: "text",
|
|
3587
3588
|
placeholder: "验证码",
|
|
3588
3589
|
class: "input-captcha"
|
|
3589
3590
|
}, null, 512), [
|
|
3590
|
-
[
|
|
3591
|
+
[Re, m(v).captcha]
|
|
3591
3592
|
]),
|
|
3592
3593
|
g("img", {
|
|
3593
3594
|
class: "captcha-img",
|
|
3594
3595
|
src: d.value + "/user/captcha?ts=" + m(p),
|
|
3595
3596
|
title: "点击刷新",
|
|
3596
3597
|
onClick: y
|
|
3597
|
-
}, null, 8,
|
|
3598
|
-
])) :
|
|
3598
|
+
}, null, 8, Bs)
|
|
3599
|
+
])) : B("", !0),
|
|
3599
3600
|
u(E, {
|
|
3600
3601
|
class: "login-button",
|
|
3601
3602
|
type: "primary",
|
|
@@ -3604,26 +3605,26 @@ const ma = /* @__PURE__ */ z({
|
|
|
3604
3605
|
onClick: T
|
|
3605
3606
|
}, {
|
|
3606
3607
|
default: r(() => [...b[3] || (b[3] = [
|
|
3607
|
-
|
|
3608
|
+
$("登录", -1)
|
|
3608
3609
|
])]),
|
|
3609
3610
|
_: 1
|
|
3610
3611
|
}, 8, ["loading", "disabled"]),
|
|
3611
|
-
g("div",
|
|
3612
|
-
g("div", null,
|
|
3612
|
+
g("div", Os, [
|
|
3613
|
+
g("div", null, A(a.value), 1)
|
|
3613
3614
|
]),
|
|
3614
|
-
g("div",
|
|
3615
|
+
g("div", Rs, [
|
|
3615
3616
|
b[4] || (b[4] = g("div", { id: "sso-qrcode" }, null, -1)),
|
|
3616
|
-
(i(!0), _(
|
|
3617
|
+
(i(!0), _(O, null, U(Object.keys([]), (R) => (i(), _("div", { key: R }, A(R), 1))), 128))
|
|
3617
3618
|
])
|
|
3618
3619
|
])
|
|
3619
3620
|
]);
|
|
3620
3621
|
};
|
|
3621
3622
|
}
|
|
3622
|
-
}),
|
|
3623
|
+
}), Ps = {
|
|
3623
3624
|
name: "NotFoundPage"
|
|
3624
|
-
},
|
|
3625
|
-
function
|
|
3626
|
-
return i(), _("div",
|
|
3625
|
+
}, Ls = { class: "not-found" };
|
|
3626
|
+
function Ms(e, t, n, o, l, s) {
|
|
3627
|
+
return i(), _("div", Ls, [...t[0] || (t[0] = [
|
|
3627
3628
|
g("svg", {
|
|
3628
3629
|
width: "380px",
|
|
3629
3630
|
height: "500px",
|
|
@@ -3692,10 +3693,10 @@ function $a(e, t, n, o, l, a) {
|
|
|
3692
3693
|
], -1)
|
|
3693
3694
|
])]);
|
|
3694
3695
|
}
|
|
3695
|
-
const
|
|
3696
|
+
const Ds = /* @__PURE__ */ P(Ps, [["render", Ms], ["__scopeId", "data-v-26068803"]]), js = [
|
|
3696
3697
|
{
|
|
3697
3698
|
path: "/",
|
|
3698
|
-
component:
|
|
3699
|
+
component: Kt,
|
|
3699
3700
|
redirect: "/dashboard",
|
|
3700
3701
|
name: "Root",
|
|
3701
3702
|
meta: {
|
|
@@ -3705,49 +3706,49 @@ const Aa = /* @__PURE__ */ R(Ba, [["render", $a], ["__scopeId", "data-v-26068803
|
|
|
3705
3706
|
{
|
|
3706
3707
|
path: "dashboard",
|
|
3707
3708
|
name: "Dashboard",
|
|
3708
|
-
component:
|
|
3709
|
+
component: Wo,
|
|
3709
3710
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
3710
3711
|
}
|
|
3711
3712
|
]
|
|
3712
3713
|
},
|
|
3713
3714
|
{
|
|
3714
3715
|
path: "/login",
|
|
3715
|
-
component:
|
|
3716
|
+
component: As,
|
|
3716
3717
|
meta: { title: "用户登录", menuType: 0 },
|
|
3717
3718
|
hidden: !0
|
|
3718
3719
|
},
|
|
3719
3720
|
{
|
|
3720
3721
|
path: "/404",
|
|
3721
|
-
component:
|
|
3722
|
+
component: Ds,
|
|
3722
3723
|
meta: { menuType: 0 },
|
|
3723
3724
|
hidden: !0
|
|
3724
3725
|
}
|
|
3725
|
-
], oe =
|
|
3726
|
-
history:
|
|
3727
|
-
routes:
|
|
3726
|
+
], oe = Kn({
|
|
3727
|
+
history: zn(),
|
|
3728
|
+
routes: js
|
|
3728
3729
|
});
|
|
3729
|
-
|
|
3730
|
-
function
|
|
3730
|
+
Ne.configure({ showSpinner: !1 });
|
|
3731
|
+
function Ns(e) {
|
|
3731
3732
|
e.beforeEach((t, n, o) => {
|
|
3732
|
-
|
|
3733
|
+
Ne.start(), t.preHash = location.hash.replace("#", ""), o();
|
|
3733
3734
|
}), e.afterEach((t) => {
|
|
3734
|
-
const n =
|
|
3735
|
+
const n = j(M);
|
|
3735
3736
|
t.matched.length > 0 && n.updateState({
|
|
3736
3737
|
key: "path",
|
|
3737
3738
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
3738
|
-
}),
|
|
3739
|
+
}), Ne.done();
|
|
3739
3740
|
});
|
|
3740
3741
|
}
|
|
3741
|
-
function
|
|
3742
|
-
return
|
|
3742
|
+
function Us() {
|
|
3743
|
+
return j(M).isLodeRemoteRoutes;
|
|
3743
3744
|
}
|
|
3744
|
-
function
|
|
3745
|
-
return V(
|
|
3745
|
+
function zt() {
|
|
3746
|
+
return V(M).whiteRoutes || [];
|
|
3746
3747
|
}
|
|
3747
|
-
function
|
|
3748
|
-
return
|
|
3748
|
+
function Vs() {
|
|
3749
|
+
return j(M).token;
|
|
3749
3750
|
}
|
|
3750
|
-
class
|
|
3751
|
+
class Jt {
|
|
3751
3752
|
type = "qrcode";
|
|
3752
3753
|
flag() {
|
|
3753
3754
|
}
|
|
@@ -3757,14 +3758,14 @@ class Gt {
|
|
|
3757
3758
|
showQrCode() {
|
|
3758
3759
|
}
|
|
3759
3760
|
}
|
|
3760
|
-
class
|
|
3761
|
+
class rr extends Jt {
|
|
3761
3762
|
type = "jump";
|
|
3762
3763
|
client_id = "";
|
|
3763
3764
|
constructor(t) {
|
|
3764
3765
|
super(), this.client_id = t.client_id;
|
|
3765
3766
|
}
|
|
3766
3767
|
flag() {
|
|
3767
|
-
const t =
|
|
3768
|
+
const t = Et("code");
|
|
3768
3769
|
if (t)
|
|
3769
3770
|
return {
|
|
3770
3771
|
ticket: t,
|
|
@@ -3776,7 +3777,7 @@ class or extends Gt {
|
|
|
3776
3777
|
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
|
|
3777
3778
|
}
|
|
3778
3779
|
}
|
|
3779
|
-
class
|
|
3780
|
+
class cr extends Jt {
|
|
3780
3781
|
type = "qrcode";
|
|
3781
3782
|
qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
3782
3783
|
reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
@@ -3789,7 +3790,7 @@ class lr extends Gt {
|
|
|
3789
3790
|
super();
|
|
3790
3791
|
}
|
|
3791
3792
|
flag() {
|
|
3792
|
-
const t =
|
|
3793
|
+
const t = Et("code");
|
|
3793
3794
|
if (t)
|
|
3794
3795
|
return {
|
|
3795
3796
|
ticket: t,
|
|
@@ -3798,67 +3799,67 @@ class lr extends Gt {
|
|
|
3798
3799
|
}
|
|
3799
3800
|
showQrCode() {
|
|
3800
3801
|
const t = (l) => {
|
|
3801
|
-
const
|
|
3802
|
+
const s = {
|
|
3802
3803
|
appid: this.appid,
|
|
3803
3804
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
3804
3805
|
};
|
|
3805
|
-
return
|
|
3806
|
+
return ae(this.reloadUrl, s) + "&" + Ln(l || {});
|
|
3806
3807
|
}, n = () => {
|
|
3807
3808
|
const l = {
|
|
3808
3809
|
goto: encodeURIComponent(t()),
|
|
3809
3810
|
style: encodeURIComponent(this.style)
|
|
3810
3811
|
};
|
|
3811
|
-
return
|
|
3812
|
+
return ae(this.qrCodeUrl, l);
|
|
3812
3813
|
}, o = (l) => {
|
|
3813
|
-
const { origin:
|
|
3814
|
-
|
|
3814
|
+
const { origin: s, data: a } = l;
|
|
3815
|
+
s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
|
|
3815
3816
|
};
|
|
3816
|
-
this.iframe.src = n(),
|
|
3817
|
+
this.iframe.src = n(), Pn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
3817
3818
|
"message",
|
|
3818
3819
|
(l) => o(l),
|
|
3819
3820
|
!1
|
|
3820
3821
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
|
|
3821
3822
|
}
|
|
3822
3823
|
}
|
|
3823
|
-
const
|
|
3824
|
-
function
|
|
3825
|
-
return H(V(
|
|
3824
|
+
const qs = {};
|
|
3825
|
+
function Hs() {
|
|
3826
|
+
return H(V(M).sso || {}, qs);
|
|
3826
3827
|
}
|
|
3827
|
-
function
|
|
3828
|
-
const e =
|
|
3828
|
+
function Fs() {
|
|
3829
|
+
const e = Hs(), t = V(M).activeSsoKey || "", n = e[t];
|
|
3829
3830
|
if (n !== void 0)
|
|
3830
3831
|
return n();
|
|
3831
3832
|
}
|
|
3832
|
-
function
|
|
3833
|
+
function Gs(e) {
|
|
3833
3834
|
e.beforeEach(async (t, n, o) => {
|
|
3834
|
-
if (
|
|
3835
|
+
if (zt().indexOf(t.path) !== -1) {
|
|
3835
3836
|
o();
|
|
3836
3837
|
return;
|
|
3837
3838
|
}
|
|
3838
|
-
if (
|
|
3839
|
+
if (Vs()) {
|
|
3839
3840
|
t.query?.redirect ? o(t.query?.redirect) : o();
|
|
3840
3841
|
return;
|
|
3841
3842
|
}
|
|
3842
|
-
const
|
|
3843
|
-
if (!
|
|
3844
|
-
o(`/login?redirect=${
|
|
3843
|
+
const s = t.query.redirect || t.path, a = Fs();
|
|
3844
|
+
if (!a) {
|
|
3845
|
+
o(`/login?redirect=${s}`);
|
|
3845
3846
|
return;
|
|
3846
3847
|
}
|
|
3847
|
-
const c =
|
|
3848
|
-
if (c && await d.login(
|
|
3848
|
+
const c = a.flag(), d = j(M);
|
|
3849
|
+
if (c && await d.login(Nn(c) ? c : { ticket: c })) {
|
|
3849
3850
|
o();
|
|
3850
3851
|
return;
|
|
3851
3852
|
}
|
|
3852
|
-
|
|
3853
|
+
a.jumpToLoginPage(o, `/login?redirect=${s}`);
|
|
3853
3854
|
});
|
|
3854
3855
|
}
|
|
3855
|
-
const
|
|
3856
|
-
function
|
|
3857
|
-
return i(), _("div",
|
|
3856
|
+
const Ks = {}, zs = { class: "loading preloader" };
|
|
3857
|
+
function Js(e, t) {
|
|
3858
|
+
return i(), _("div", zs, [...t[0] || (t[0] = [
|
|
3858
3859
|
g("div", { class: "preloader-inner" }, null, -1)
|
|
3859
3860
|
])]);
|
|
3860
3861
|
}
|
|
3861
|
-
const
|
|
3862
|
+
const Ws = /* @__PURE__ */ P(Ks, [["render", Js]]), Qs = {
|
|
3862
3863
|
name: "VNotice",
|
|
3863
3864
|
props: {
|
|
3864
3865
|
dataApi: {
|
|
@@ -3887,65 +3888,65 @@ const Fa = /* @__PURE__ */ R(Va, [["render", Ha]]), Ga = {
|
|
|
3887
3888
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
3888
3889
|
}
|
|
3889
3890
|
};
|
|
3890
|
-
function
|
|
3891
|
-
const
|
|
3891
|
+
function Xs(e, t, n, o, l, s) {
|
|
3892
|
+
const a = Xe;
|
|
3892
3893
|
return i(), _("div", null, [
|
|
3893
|
-
l.hasNotice ? (i(), h(
|
|
3894
|
+
l.hasNotice ? (i(), h(a, X(Q({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
|
|
3894
3895
|
]);
|
|
3895
3896
|
}
|
|
3896
|
-
const
|
|
3897
|
+
const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /* @__PURE__ */ K({
|
|
3897
3898
|
__name: "PageLoad",
|
|
3898
3899
|
props: {
|
|
3899
3900
|
schemaHandler: { type: Function, default: (e) => e },
|
|
3900
3901
|
schemaApi: { default: "" }
|
|
3901
3902
|
},
|
|
3902
3903
|
setup(e) {
|
|
3903
|
-
const t = e, n = Y(), o = V(), l =
|
|
3904
|
+
const t = e, n = Y(), o = V(), l = j(), s = Z(), a = C(!0), c = C(!1), d = C({}), p = C(""), f = C({}), y = C([]), w = C(!1), v = k(() => l.env), T = k(() => o);
|
|
3904
3905
|
return Fe(() => {
|
|
3905
|
-
const I =
|
|
3906
|
-
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || E,
|
|
3907
|
-
|
|
3906
|
+
const I = s.path.split("/").filter((S) => S), b = I.length > 1 ? I.slice(0, I.length - 1).join("/") : I[0], E = "/schema" + s.meta.path, R = { params: s.params };
|
|
3907
|
+
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || E, R).then(({ data: S }) => {
|
|
3908
|
+
a.value = !1, ie(S) && (S.notice !== void 0 && (c.value = !0, ze(S.notice) ? d.value = { title: S.notice } : ie(S.notice) && (d.value = S.notice, p.value = S.notice.noticeApi), delete S.notice), y.value = S.ownerNames || [], w.value = S.serviceOffLine || !1), f.value = t.schemaHandler(S, b), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: f.value });
|
|
3908
3909
|
});
|
|
3909
3910
|
}), (I, b) => {
|
|
3910
3911
|
const E = Xe;
|
|
3911
|
-
return i(), _(
|
|
3912
|
+
return i(), _(O, null, [
|
|
3912
3913
|
m(y).length > 0 ? (i(), h(E, {
|
|
3913
3914
|
key: 0,
|
|
3914
3915
|
title: `该页面功能对应开发: [ ${m(y).join(", ")} ] 有问题可直接企微反馈`,
|
|
3915
3916
|
type: "info",
|
|
3916
3917
|
style: { margin: "0 0 20px 0" },
|
|
3917
3918
|
closable: !1
|
|
3918
|
-
}, null, 8, ["title"])) :
|
|
3919
|
+
}, null, 8, ["title"])) : B("", !0),
|
|
3919
3920
|
m(v) === "prod" && m(w) ? (i(), _("div", {
|
|
3920
3921
|
key: 1,
|
|
3921
3922
|
class: "offline-notice",
|
|
3922
3923
|
innerHTML: m(w) === !0 ? m(T).serviceOffLineNotice : m(w)
|
|
3923
|
-
}, null, 8,
|
|
3924
|
-
m(c) ? (i(), h(
|
|
3924
|
+
}, null, 8, Ys)) : (i(), _(O, { key: 2 }, [
|
|
3925
|
+
m(c) ? (i(), h(Zs, {
|
|
3925
3926
|
key: 0,
|
|
3926
3927
|
notice: m(d),
|
|
3927
3928
|
style: { margin: "0 0 20px 0" },
|
|
3928
3929
|
"data-api": m(p)
|
|
3929
|
-
}, null, 8, ["notice", "data-api"])) :
|
|
3930
|
-
m(
|
|
3930
|
+
}, null, 8, ["notice", "data-api"])) : B("", !0),
|
|
3931
|
+
m(a) ? (i(), h(Ws, { key: 1 })) : de(I.$slots, "default", X(Q({ key: 2 }, m(f))), void 0, !0)
|
|
3931
3932
|
], 64))
|
|
3932
3933
|
], 64);
|
|
3933
3934
|
};
|
|
3934
3935
|
}
|
|
3935
|
-
}), _e = /* @__PURE__ */
|
|
3936
|
+
}), _e = /* @__PURE__ */ P(ea, [["__scopeId", "data-v-e330fdc7"]]), Wt = {
|
|
3936
3937
|
__name: "table",
|
|
3937
3938
|
setup(e) {
|
|
3938
3939
|
const t = (n, o) => {
|
|
3939
3940
|
if (n.orderBy) {
|
|
3940
|
-
const
|
|
3941
|
+
const s = {
|
|
3941
3942
|
prop: n.orderBy.field,
|
|
3942
3943
|
order: n.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
3943
3944
|
};
|
|
3944
|
-
n.tableProps = H(n.tableProps, { defaultSort:
|
|
3945
|
+
n.tableProps = H(n.tableProps, { defaultSort: s });
|
|
3945
3946
|
}
|
|
3946
3947
|
const l = Object.keys(he.props);
|
|
3947
|
-
return Object.keys(n).forEach((
|
|
3948
|
-
l.indexOf(
|
|
3948
|
+
return Object.keys(n).forEach((s) => {
|
|
3949
|
+
l.indexOf(s) === -1 && delete n[s];
|
|
3949
3950
|
}), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
|
|
3950
3951
|
};
|
|
3951
3952
|
return (n, o) => (i(), h(_e, { "schema-handler": t }, {
|
|
@@ -3955,49 +3956,49 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
3955
3956
|
_: 1
|
|
3956
3957
|
}));
|
|
3957
3958
|
}
|
|
3958
|
-
},
|
|
3959
|
+
}, qe = {
|
|
3959
3960
|
__name: "form",
|
|
3960
3961
|
setup(e) {
|
|
3961
|
-
const t = Z(), n =
|
|
3962
|
+
const t = Z(), n = Te(), o = (c, d) => {
|
|
3962
3963
|
const p = Object.keys(ne.props);
|
|
3963
3964
|
return Object.keys(c).forEach((f) => {
|
|
3964
3965
|
if (p.indexOf(f) === -1) {
|
|
3965
3966
|
delete c[f];
|
|
3966
3967
|
return;
|
|
3967
3968
|
}
|
|
3968
|
-
/.*Api$/.test(f) && (c[f] =
|
|
3969
|
+
/.*Api$/.test(f) && (c[f] = ae(c[f], t.params));
|
|
3969
3970
|
}), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${d}/update/${t.params.id}`, c.getApi || (c.getApi = `/${d}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${d}/create`)), c = H({
|
|
3970
3971
|
saveApi: d + "/save",
|
|
3971
3972
|
afterSubmit: "goback",
|
|
3972
3973
|
afterReset: "goback",
|
|
3973
3974
|
mod: t.params.id ? "edit" : "create"
|
|
3974
3975
|
}, c), c;
|
|
3975
|
-
}, l = C(0),
|
|
3976
|
-
|
|
3976
|
+
}, l = C(0), s = () => {
|
|
3977
|
+
tn.request({
|
|
3977
3978
|
url: "/form_mutex",
|
|
3978
3979
|
method: "get",
|
|
3979
3980
|
params: {
|
|
3980
3981
|
path: t.fullPath
|
|
3981
3982
|
}
|
|
3982
3983
|
}).then((c) => {
|
|
3983
|
-
c.data && (clearInterval(l.value),
|
|
3984
|
+
c.data && (clearInterval(l.value), $t.alert(`${c.data}`, "操作提醒", {
|
|
3984
3985
|
showClose: !1,
|
|
3985
3986
|
showCancelButton: !0,
|
|
3986
3987
|
confirmButtonText: "返回",
|
|
3987
3988
|
cancelButtonText: "刷新",
|
|
3988
3989
|
callback: (d) => {
|
|
3989
|
-
d === "cancel" ? location.reload() :
|
|
3990
|
+
d === "cancel" ? location.reload() : a();
|
|
3990
3991
|
}
|
|
3991
3992
|
}));
|
|
3992
3993
|
});
|
|
3993
3994
|
};
|
|
3994
|
-
|
|
3995
|
+
Ie(() => {
|
|
3995
3996
|
const c = V();
|
|
3996
|
-
t.params.id !== void 0 && c.formMutex && (
|
|
3997
|
-
}),
|
|
3997
|
+
t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
|
|
3998
|
+
}), kn(() => {
|
|
3998
3999
|
clearInterval(l.value);
|
|
3999
4000
|
});
|
|
4000
|
-
function
|
|
4001
|
+
function a() {
|
|
4001
4002
|
t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
|
|
4002
4003
|
}
|
|
4003
4004
|
return (c, d) => (i(), h(_e, { "schema-handler": o }, {
|
|
@@ -4007,7 +4008,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4007
4008
|
_: 1
|
|
4008
4009
|
}));
|
|
4009
4010
|
}
|
|
4010
|
-
},
|
|
4011
|
+
}, ta = K({
|
|
4011
4012
|
name: "VTree",
|
|
4012
4013
|
components: {
|
|
4013
4014
|
VForm: ne
|
|
@@ -4081,7 +4082,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4081
4082
|
return ["", "新建", "编辑"][this.type];
|
|
4082
4083
|
},
|
|
4083
4084
|
formProps() {
|
|
4084
|
-
let e =
|
|
4085
|
+
let e = ae(this.$props.saveApi, this.formData);
|
|
4085
4086
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4086
4087
|
saveApi: e,
|
|
4087
4088
|
getApi: this.$props.getApi,
|
|
@@ -4106,7 +4107,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4106
4107
|
},
|
|
4107
4108
|
append(e, t) {
|
|
4108
4109
|
this.type = 1;
|
|
4109
|
-
const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1,
|
|
4110
|
+
const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Mn(this.$props.props?.effectData, e) };
|
|
4110
4111
|
e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
|
|
4111
4112
|
},
|
|
4112
4113
|
canAppend(e, t) {
|
|
@@ -4120,7 +4121,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4120
4121
|
remove(e) {
|
|
4121
4122
|
this.$http.request({
|
|
4122
4123
|
method: "DELETE",
|
|
4123
|
-
url:
|
|
4124
|
+
url: ae(this.$props.deleteApi, e)
|
|
4124
4125
|
}).then(({ code: t }) => {
|
|
4125
4126
|
t !== 0 ? this.$message.error("操作失败") : this.loadTree();
|
|
4126
4127
|
});
|
|
@@ -4140,19 +4141,19 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4140
4141
|
const l = e.data;
|
|
4141
4142
|
l.pid = t.data.id, this.$http.request({
|
|
4142
4143
|
method: "POST",
|
|
4143
|
-
url:
|
|
4144
|
+
url: ae(this.$props.saveApi, l),
|
|
4144
4145
|
data: l
|
|
4145
|
-
}).then(({ code:
|
|
4146
|
-
|
|
4146
|
+
}).then(({ code: s }) => {
|
|
4147
|
+
s !== 0 && this.$message.error("操作失败");
|
|
4147
4148
|
});
|
|
4148
4149
|
}
|
|
4149
4150
|
}
|
|
4150
|
-
}),
|
|
4151
|
+
}), na = { class: "card-header" }, oa = { class: "tree-action" }, la = { key: 0 }, sa = {
|
|
4151
4152
|
key: 1,
|
|
4152
4153
|
style: { color: "#E6A23C" }
|
|
4153
|
-
},
|
|
4154
|
-
function
|
|
4155
|
-
const
|
|
4154
|
+
}, aa = { class: "card-header" };
|
|
4155
|
+
function ia(e, t, n, o, l, s) {
|
|
4156
|
+
const a = me, c = mo, d = Ze, p = $e, f = L("v-form"), y = be;
|
|
4156
4157
|
return i(), h(y, {
|
|
4157
4158
|
class: "tree-box",
|
|
4158
4159
|
gutter: 20
|
|
@@ -4165,14 +4166,14 @@ function ns(e, t, n, o, l, a) {
|
|
|
4165
4166
|
default: r(() => [
|
|
4166
4167
|
u(d, { shadow: "never" }, {
|
|
4167
4168
|
header: r(() => [
|
|
4168
|
-
g("div",
|
|
4169
|
+
g("div", na, [
|
|
4169
4170
|
t[3] || (t[3] = g("span", null, "列表", -1)),
|
|
4170
|
-
u(
|
|
4171
|
+
u(a, {
|
|
4171
4172
|
type: "text",
|
|
4172
4173
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4173
4174
|
}, {
|
|
4174
4175
|
default: r(() => [...t[2] || (t[2] = [
|
|
4175
|
-
|
|
4176
|
+
$("添加", -1)
|
|
4176
4177
|
])]),
|
|
4177
4178
|
_: 1
|
|
4178
4179
|
})
|
|
@@ -4191,47 +4192,47 @@ function ns(e, t, n, o, l, a) {
|
|
|
4191
4192
|
onNodeDragEnd: e.handleDragEnd
|
|
4192
4193
|
}), {
|
|
4193
4194
|
default: r(({ node: w, data: v }) => [
|
|
4194
|
-
g("span",
|
|
4195
|
-
v[e.localTreeProps.props.label] ? (i(), _("span",
|
|
4195
|
+
g("span", oa, [
|
|
4196
|
+
v[e.localTreeProps.props.label] ? (i(), _("span", la, A(v[e.localTreeProps.props.label]), 1)) : (i(), _("span", sa, "请在右侧表单中修改 --> ")),
|
|
4196
4197
|
g("span", null, [
|
|
4197
|
-
v[e.localTreeProps.props.label] ? (i(), h(
|
|
4198
|
+
v[e.localTreeProps.props.label] ? (i(), h(a, {
|
|
4198
4199
|
key: 0,
|
|
4199
4200
|
class: "button",
|
|
4200
4201
|
type: "text",
|
|
4201
4202
|
onClick: () => e.onclick(v)
|
|
4202
4203
|
}, {
|
|
4203
4204
|
default: r(() => [...t[4] || (t[4] = [
|
|
4204
|
-
|
|
4205
|
+
$("编辑", -1)
|
|
4205
4206
|
])]),
|
|
4206
4207
|
_: 1
|
|
4207
|
-
}, 8, ["onClick"])) :
|
|
4208
|
-
e.canAppend(v, w) ? (i(), h(
|
|
4208
|
+
}, 8, ["onClick"])) : B("", !0),
|
|
4209
|
+
e.canAppend(v, w) ? (i(), h(a, {
|
|
4209
4210
|
key: 1,
|
|
4210
4211
|
class: "button",
|
|
4211
4212
|
type: "text",
|
|
4212
4213
|
onClick: () => e.append(v, w)
|
|
4213
4214
|
}, {
|
|
4214
4215
|
default: r(() => [...t[5] || (t[5] = [
|
|
4215
|
-
|
|
4216
|
+
$("添加", -1)
|
|
4216
4217
|
])]),
|
|
4217
4218
|
_: 1
|
|
4218
|
-
}, 8, ["onClick"])) :
|
|
4219
|
-
v.children === void 0 || v.children.length === 0 ? (i(), h(
|
|
4219
|
+
}, 8, ["onClick"])) : B("", !0),
|
|
4220
|
+
v.children === void 0 || v.children.length === 0 ? (i(), h(a, {
|
|
4220
4221
|
key: 2,
|
|
4221
4222
|
class: "button",
|
|
4222
4223
|
type: "text",
|
|
4223
4224
|
onClick: () => e.remove(v)
|
|
4224
4225
|
}, {
|
|
4225
4226
|
default: r(() => [...t[6] || (t[6] = [
|
|
4226
|
-
|
|
4227
|
+
$("删除", -1)
|
|
4227
4228
|
])]),
|
|
4228
4229
|
_: 1
|
|
4229
|
-
}, 8, ["onClick"])) :
|
|
4230
|
+
}, 8, ["onClick"])) : B("", !0)
|
|
4230
4231
|
])
|
|
4231
4232
|
])
|
|
4232
4233
|
]),
|
|
4233
4234
|
_: 1
|
|
4234
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4235
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : B("", !0)
|
|
4235
4236
|
]),
|
|
4236
4237
|
_: 1
|
|
4237
4238
|
})
|
|
@@ -4248,8 +4249,8 @@ function ns(e, t, n, o, l, a) {
|
|
|
4248
4249
|
shadow: "never"
|
|
4249
4250
|
}, {
|
|
4250
4251
|
header: r(() => [
|
|
4251
|
-
g("div",
|
|
4252
|
-
g("span", null,
|
|
4252
|
+
g("div", aa, [
|
|
4253
|
+
g("span", null, A(e.formType), 1)
|
|
4253
4254
|
])
|
|
4254
4255
|
]),
|
|
4255
4256
|
default: r(() => [
|
|
@@ -4260,7 +4261,7 @@ function ns(e, t, n, o, l, a) {
|
|
|
4260
4261
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4261
4262
|
]),
|
|
4262
4263
|
_: 1
|
|
4263
|
-
})) :
|
|
4264
|
+
})) : B("", !0)
|
|
4264
4265
|
]),
|
|
4265
4266
|
_: 1
|
|
4266
4267
|
})
|
|
@@ -4268,34 +4269,34 @@ function ns(e, t, n, o, l, a) {
|
|
|
4268
4269
|
_: 1
|
|
4269
4270
|
});
|
|
4270
4271
|
}
|
|
4271
|
-
const
|
|
4272
|
+
const yt = /* @__PURE__ */ P(ta, [["render", ia]]), ra = {
|
|
4272
4273
|
__name: "tree",
|
|
4273
4274
|
setup(e) {
|
|
4274
4275
|
const t = (n, o) => {
|
|
4275
|
-
const l = Object.keys(
|
|
4276
|
-
return Object.keys(n).forEach((
|
|
4277
|
-
l.indexOf(
|
|
4276
|
+
const l = Object.keys(yt.props);
|
|
4277
|
+
return Object.keys(n).forEach((s) => {
|
|
4278
|
+
l.indexOf(s) === -1 && delete n[s];
|
|
4278
4279
|
}), n;
|
|
4279
4280
|
};
|
|
4280
4281
|
return (n, o) => (i(), h(_e, { "schema-handler": t }, {
|
|
4281
4282
|
default: r((l) => [
|
|
4282
|
-
u(
|
|
4283
|
+
u(yt, X(re(l)), null, 16)
|
|
4283
4284
|
]),
|
|
4284
4285
|
_: 1
|
|
4285
4286
|
}));
|
|
4286
4287
|
}
|
|
4287
|
-
},
|
|
4288
|
+
}, je = {
|
|
4288
4289
|
__name: "container",
|
|
4289
4290
|
setup(e) {
|
|
4290
4291
|
const t = C(0);
|
|
4291
|
-
return
|
|
4292
|
+
return Jn(() => {
|
|
4292
4293
|
t.value++;
|
|
4293
4294
|
}), (n, o) => {
|
|
4294
4295
|
const l = L("router-view");
|
|
4295
4296
|
return i(), h(l);
|
|
4296
4297
|
};
|
|
4297
4298
|
}
|
|
4298
|
-
},
|
|
4299
|
+
}, ca = {
|
|
4299
4300
|
title: {
|
|
4300
4301
|
text: ""
|
|
4301
4302
|
},
|
|
@@ -4324,16 +4325,16 @@ const bt = /* @__PURE__ */ R(Qa, [["render", ns]]), os = {
|
|
|
4324
4325
|
},
|
|
4325
4326
|
series: []
|
|
4326
4327
|
};
|
|
4327
|
-
function
|
|
4328
|
+
function ua(e, t, n) {
|
|
4328
4329
|
if (n.length === 0)
|
|
4329
4330
|
return {};
|
|
4330
|
-
let o = H({},
|
|
4331
|
-
if (o.title.text = e,
|
|
4332
|
-
const l = [],
|
|
4333
|
-
let
|
|
4331
|
+
let o = H({}, ca);
|
|
4332
|
+
if (o.title.text = e, ze(t)) {
|
|
4333
|
+
const l = [], s = Object.keys(n[0]);
|
|
4334
|
+
let a = s[0], c = s.filter((p, f) => f > 0), d = t;
|
|
4334
4335
|
if (t.indexOf(":") > -1) {
|
|
4335
4336
|
const p = t.split(":"), f = p[1].split(",");
|
|
4336
|
-
d = p[0],
|
|
4337
|
+
d = p[0], a = f[0], c = f.filter((y, w) => w > 0);
|
|
4337
4338
|
}
|
|
4338
4339
|
c.forEach((p) => {
|
|
4339
4340
|
const f = [];
|
|
@@ -4346,12 +4347,12 @@ function as(e, t, n) {
|
|
|
4346
4347
|
data: f
|
|
4347
4348
|
}), o.legend.data.push(p);
|
|
4348
4349
|
}), n.forEach((p) => {
|
|
4349
|
-
l.push(p[
|
|
4350
|
+
l.push(p[a]);
|
|
4350
4351
|
}), o.xAxis.data = l;
|
|
4351
4352
|
}
|
|
4352
4353
|
return ie(t) && (o = H(o, t)), o;
|
|
4353
4354
|
}
|
|
4354
|
-
const
|
|
4355
|
+
const da = K({
|
|
4355
4356
|
name: "NumberPanel",
|
|
4356
4357
|
props: {
|
|
4357
4358
|
dataList: {
|
|
@@ -4362,27 +4363,27 @@ const ss = z({
|
|
|
4362
4363
|
data() {
|
|
4363
4364
|
return {};
|
|
4364
4365
|
}
|
|
4365
|
-
}),
|
|
4366
|
-
function
|
|
4367
|
-
return i(!0), _(
|
|
4368
|
-
g("div",
|
|
4369
|
-
(i(!0), _(
|
|
4366
|
+
}), pa = { class: "number-panel-title" }, fa = { class: "number" }, ma = { class: "name" };
|
|
4367
|
+
function ha(e, t, n, o, l, s) {
|
|
4368
|
+
return i(!0), _(O, null, U(e.dataList, (a, c) => (i(), _("span", { key: c }, [
|
|
4369
|
+
g("div", pa, [
|
|
4370
|
+
(i(!0), _(O, null, U(Object.keys(a), (d, p) => (i(), _("div", {
|
|
4370
4371
|
key: p,
|
|
4371
4372
|
class: "title-inner"
|
|
4372
4373
|
}, [
|
|
4373
|
-
g("p",
|
|
4374
|
-
g("p",
|
|
4374
|
+
g("p", fa, A(a[d]), 1),
|
|
4375
|
+
g("p", ma, A(d), 1)
|
|
4375
4376
|
]))), 128))
|
|
4376
4377
|
])
|
|
4377
4378
|
]))), 128);
|
|
4378
4379
|
}
|
|
4379
|
-
const
|
|
4380
|
+
const ba = /* @__PURE__ */ P(da, [["render", ha], ["__scopeId", "data-v-cc0d8293"]]), ya = {
|
|
4380
4381
|
components: {
|
|
4381
|
-
Chart:
|
|
4382
|
-
Md:
|
|
4382
|
+
Chart: bo,
|
|
4383
|
+
Md: wo,
|
|
4383
4384
|
Json: Ye,
|
|
4384
4385
|
Table: he,
|
|
4385
|
-
Number:
|
|
4386
|
+
Number: ba,
|
|
4386
4387
|
Html: ""
|
|
4387
4388
|
},
|
|
4388
4389
|
props: {
|
|
@@ -4403,20 +4404,20 @@ const ds = /* @__PURE__ */ R(ss, [["render", us], ["__scopeId", "data-v-cc0d8293
|
|
|
4403
4404
|
};
|
|
4404
4405
|
if (l === "chart")
|
|
4405
4406
|
return {
|
|
4406
|
-
options:
|
|
4407
|
+
options: ua(o.id, o.chart, o.data)
|
|
4407
4408
|
};
|
|
4408
4409
|
if (l === "md")
|
|
4409
4410
|
return {
|
|
4410
4411
|
source: o.data
|
|
4411
4412
|
};
|
|
4412
4413
|
if (l === "table") {
|
|
4413
|
-
if (!
|
|
4414
|
+
if (!It(o.data))
|
|
4414
4415
|
return { showPagination: !1 };
|
|
4415
|
-
const
|
|
4416
|
-
return o.data[0] && Object.keys(o.data[0]).forEach((
|
|
4417
|
-
|
|
4416
|
+
const s = [];
|
|
4417
|
+
return o.data[0] && Object.keys(o.data[0]).forEach((a, c) => {
|
|
4418
|
+
s.push({ field: a, label: a });
|
|
4418
4419
|
}), {
|
|
4419
|
-
headers:
|
|
4420
|
+
headers: s,
|
|
4420
4421
|
list: o.data,
|
|
4421
4422
|
showPagination: !1
|
|
4422
4423
|
};
|
|
@@ -4427,21 +4428,21 @@ const ds = /* @__PURE__ */ R(ss, [["render", us], ["__scopeId", "data-v-cc0d8293
|
|
|
4427
4428
|
};
|
|
4428
4429
|
}
|
|
4429
4430
|
};
|
|
4430
|
-
function
|
|
4431
|
-
const
|
|
4432
|
-
return ve((i(), h(
|
|
4431
|
+
function _a(e, t, n, o, l, s) {
|
|
4432
|
+
const a = Ze, c = Sn("resize");
|
|
4433
|
+
return ve((i(), h(a, {
|
|
4433
4434
|
shadow: "never",
|
|
4434
4435
|
class: "part"
|
|
4435
4436
|
}, {
|
|
4436
4437
|
default: r(() => [
|
|
4437
|
-
(i(), h(
|
|
4438
|
+
(i(), h(Ke(o.comptype()), X(re(o.compprops(n.option))), null, 16))
|
|
4438
4439
|
]),
|
|
4439
4440
|
_: 1
|
|
4440
4441
|
})), [
|
|
4441
4442
|
[c, !0]
|
|
4442
4443
|
]);
|
|
4443
4444
|
}
|
|
4444
|
-
const
|
|
4445
|
+
const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1"]]), ga = /* @__PURE__ */ K({
|
|
4445
4446
|
__name: "index",
|
|
4446
4447
|
props: {
|
|
4447
4448
|
filter: {
|
|
@@ -4455,7 +4456,7 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4455
4456
|
},
|
|
4456
4457
|
setup(e) {
|
|
4457
4458
|
const t = Z();
|
|
4458
|
-
|
|
4459
|
+
Ie(() => {
|
|
4459
4460
|
});
|
|
4460
4461
|
const n = e, o = C({});
|
|
4461
4462
|
Fe(() => {
|
|
@@ -4473,7 +4474,7 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4473
4474
|
cancelButton: {
|
|
4474
4475
|
text: "重置"
|
|
4475
4476
|
}
|
|
4476
|
-
},
|
|
4477
|
+
}, s = C(1), a = C(n.filter), c = C(n.dataPart), d = k(() => {
|
|
4477
4478
|
let f = t.params.id;
|
|
4478
4479
|
if (!f) {
|
|
4479
4480
|
const y = t.path.split("/");
|
|
@@ -4481,15 +4482,15 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4481
4482
|
}
|
|
4482
4483
|
return "/focusbi_report/view/" + f;
|
|
4483
4484
|
}), p = (f) => {
|
|
4484
|
-
|
|
4485
|
-
|
|
4485
|
+
tn.get(d.value, { params: f }).then(({ data: y }) => {
|
|
4486
|
+
a.value = y.filter, c.value = y.dataPart, s.value++;
|
|
4486
4487
|
});
|
|
4487
4488
|
};
|
|
4488
4489
|
return (f, y) => {
|
|
4489
|
-
const w = Ze, v =
|
|
4490
|
+
const w = Ze, v = $e, T = Xe, I = be;
|
|
4490
4491
|
return i(), h(I, null, {
|
|
4491
4492
|
default: r(() => [
|
|
4492
|
-
m(
|
|
4493
|
+
m(a).length > 0 ? (i(), h(v, {
|
|
4493
4494
|
key: 0,
|
|
4494
4495
|
span: 24
|
|
4495
4496
|
}, {
|
|
@@ -4502,7 +4503,7 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4502
4503
|
u(m(ne), {
|
|
4503
4504
|
modelValue: m(o),
|
|
4504
4505
|
"onUpdate:modelValue": y[0] || (y[0] = (b) => Ge(o) ? o.value = b : null),
|
|
4505
|
-
"form-items": m(
|
|
4506
|
+
"form-items": m(a),
|
|
4506
4507
|
options: l,
|
|
4507
4508
|
onSubmit: p
|
|
4508
4509
|
}, null, 8, ["modelValue", "form-items"])
|
|
@@ -4511,12 +4512,12 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4511
4512
|
})
|
|
4512
4513
|
]),
|
|
4513
4514
|
_: 1
|
|
4514
|
-
})) :
|
|
4515
|
+
})) : B("", !0),
|
|
4515
4516
|
u(v, { span: 24 }, {
|
|
4516
4517
|
default: r(() => [
|
|
4517
4518
|
u(I, { gutter: 20 }, {
|
|
4518
4519
|
default: r(() => [
|
|
4519
|
-
(i(!0), _(
|
|
4520
|
+
(i(!0), _(O, null, U(m(c), (b, E) => (i(), h(v, {
|
|
4520
4521
|
key: E,
|
|
4521
4522
|
span: b.col || 24
|
|
4522
4523
|
}, {
|
|
@@ -4527,11 +4528,11 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4527
4528
|
type: "error"
|
|
4528
4529
|
}, {
|
|
4529
4530
|
default: r(() => [
|
|
4530
|
-
|
|
4531
|
+
$(A(b.errMsg), 1)
|
|
4531
4532
|
]),
|
|
4532
4533
|
_: 2
|
|
4533
|
-
}, 1032, ["title"])) : (i(), h(
|
|
4534
|
-
key: m(
|
|
4534
|
+
}, 1032, ["title"])) : (i(), h(va, {
|
|
4535
|
+
key: m(s),
|
|
4535
4536
|
option: b
|
|
4536
4537
|
}, null, 8, ["option"]))
|
|
4537
4538
|
]),
|
|
@@ -4548,7 +4549,7 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4548
4549
|
});
|
|
4549
4550
|
};
|
|
4550
4551
|
}
|
|
4551
|
-
}),
|
|
4552
|
+
}), ka = {
|
|
4552
4553
|
__name: "report",
|
|
4553
4554
|
setup(e) {
|
|
4554
4555
|
const t = Z(), n = k(() => {
|
|
@@ -4560,20 +4561,20 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4560
4561
|
return "/focusbi_report/view/" + o;
|
|
4561
4562
|
});
|
|
4562
4563
|
return (o, l) => (i(), h(_e, { "schema-api": m(n) }, {
|
|
4563
|
-
default: r((
|
|
4564
|
-
u(
|
|
4564
|
+
default: r((s) => [
|
|
4565
|
+
u(ga, X(re(s)), null, 16)
|
|
4565
4566
|
]),
|
|
4566
4567
|
_: 1
|
|
4567
4568
|
}, 8, ["schema-api"]));
|
|
4568
4569
|
}
|
|
4569
|
-
},
|
|
4570
|
-
card:
|
|
4570
|
+
}, Sa = (e) => u("div", null, [e.test]), wa = {
|
|
4571
|
+
card: Fn,
|
|
4571
4572
|
form: ne,
|
|
4572
4573
|
table: he,
|
|
4573
|
-
test:
|
|
4574
|
-
row:
|
|
4575
|
-
col:
|
|
4576
|
-
},
|
|
4574
|
+
test: Sa,
|
|
4575
|
+
row: Hn,
|
|
4576
|
+
col: qn
|
|
4577
|
+
}, xa = {
|
|
4577
4578
|
card: {
|
|
4578
4579
|
type: "card",
|
|
4579
4580
|
props: {
|
|
@@ -4594,16 +4595,16 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4594
4595
|
}
|
|
4595
4596
|
}
|
|
4596
4597
|
};
|
|
4597
|
-
function
|
|
4598
|
+
function Ea(e) {
|
|
4598
4599
|
const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
|
|
4599
4600
|
delete t.span;
|
|
4600
4601
|
let l = {
|
|
4601
4602
|
...t,
|
|
4602
4603
|
type: n[0]
|
|
4603
4604
|
};
|
|
4604
|
-
for (let
|
|
4605
|
+
for (let s = 1; s < n.length; s++)
|
|
4605
4606
|
l = {
|
|
4606
|
-
type: n[
|
|
4607
|
+
type: n[s],
|
|
4607
4608
|
children: [l]
|
|
4608
4609
|
};
|
|
4609
4610
|
return l.span = o, ot([l]);
|
|
@@ -4620,10 +4621,10 @@ function ot(e) {
|
|
|
4620
4621
|
return e.forEach((n) => {
|
|
4621
4622
|
let o = Object.assign({}, n);
|
|
4622
4623
|
if (ie(o.props?.style)) {
|
|
4623
|
-
let
|
|
4624
|
+
let a = "";
|
|
4624
4625
|
Object.keys(o.props?.style).forEach((c) => {
|
|
4625
|
-
|
|
4626
|
-
}), o.props.style =
|
|
4626
|
+
a += c + ":" + o.props?.style[c] + ";";
|
|
4627
|
+
}), o.props.style = a;
|
|
4627
4628
|
}
|
|
4628
4629
|
const l = {
|
|
4629
4630
|
span: o.span ?? 24,
|
|
@@ -4633,82 +4634,82 @@ function ot(e) {
|
|
|
4633
4634
|
t.children.push({
|
|
4634
4635
|
type: "col",
|
|
4635
4636
|
props: l,
|
|
4636
|
-
children:
|
|
4637
|
+
children: Ea(o)
|
|
4637
4638
|
});
|
|
4638
4639
|
return;
|
|
4639
4640
|
}
|
|
4640
4641
|
o = H({
|
|
4641
4642
|
props: {}
|
|
4642
|
-
},
|
|
4643
|
-
const
|
|
4644
|
-
|
|
4643
|
+
}, xa[o.type] || {}, o);
|
|
4644
|
+
const s = Qt(o.children);
|
|
4645
|
+
s.length && (o.children = ot(s)), t.children.push({
|
|
4645
4646
|
type: "col",
|
|
4646
4647
|
props: l,
|
|
4647
4648
|
children: [o]
|
|
4648
4649
|
});
|
|
4649
4650
|
}), [t];
|
|
4650
4651
|
}
|
|
4651
|
-
function
|
|
4652
|
-
return
|
|
4652
|
+
function Qt(e) {
|
|
4653
|
+
return It(e) ? e : ie(e) ? [e] : [];
|
|
4653
4654
|
}
|
|
4654
|
-
let
|
|
4655
|
-
const
|
|
4656
|
-
const t =
|
|
4657
|
-
return
|
|
4658
|
-
default: () =>
|
|
4655
|
+
let He = {};
|
|
4656
|
+
const Xt = (e) => {
|
|
4657
|
+
const t = wa[e.type] || He[e.type] || e.type;
|
|
4658
|
+
return xn(t, e.props, {
|
|
4659
|
+
default: () => Qt(e.children).map((n) => Xt(n))
|
|
4659
4660
|
});
|
|
4660
|
-
},
|
|
4661
|
+
}, Ia = (e) => (Object.keys(He).length === 0 && (He = wn().appContext.components), ot(Object.values(e.schema)).map((n) => Xt(n))), Ca = {
|
|
4661
4662
|
__name: "custom",
|
|
4662
4663
|
setup(e) {
|
|
4663
|
-
const t = C([]), n = (o, l) => (t.value =
|
|
4664
|
+
const t = C([]), n = (o, l) => (t.value = En(o), o);
|
|
4664
4665
|
return (o, l) => (i(), h(_e, { "schema-handler": n }, {
|
|
4665
4666
|
default: r(() => [
|
|
4666
|
-
u(m(
|
|
4667
|
+
u(m(Ia), { schema: m(t) }, null, 8, ["schema"])
|
|
4667
4668
|
]),
|
|
4668
4669
|
_: 1
|
|
4669
4670
|
}));
|
|
4670
4671
|
}
|
|
4671
4672
|
};
|
|
4672
4673
|
let ue = {};
|
|
4673
|
-
function
|
|
4674
|
+
function ur(e) {
|
|
4674
4675
|
ue = e;
|
|
4675
4676
|
}
|
|
4676
|
-
const
|
|
4677
|
+
const Ta = (e) => {
|
|
4677
4678
|
const t = (n) => {
|
|
4678
4679
|
const o = "./views/" + n + ".vue";
|
|
4679
|
-
return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`),
|
|
4680
|
+
return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), je);
|
|
4680
4681
|
};
|
|
4681
4682
|
if (e.path === "#")
|
|
4682
|
-
return
|
|
4683
|
+
return je;
|
|
4683
4684
|
switch (e.page_type) {
|
|
4684
4685
|
case J.list:
|
|
4685
|
-
return
|
|
4686
|
+
return Wt;
|
|
4686
4687
|
case J.form:
|
|
4687
|
-
return
|
|
4688
|
+
return qe;
|
|
4688
4689
|
case J.custom:
|
|
4689
4690
|
case J.localComp:
|
|
4690
4691
|
return t(e.view || "");
|
|
4691
4692
|
case J.tree:
|
|
4692
|
-
return
|
|
4693
|
+
return ra;
|
|
4693
4694
|
case J.report:
|
|
4694
|
-
return
|
|
4695
|
+
return ka;
|
|
4695
4696
|
case J.customSchema:
|
|
4696
|
-
return
|
|
4697
|
+
return Ca;
|
|
4697
4698
|
}
|
|
4698
|
-
return
|
|
4699
|
+
return je;
|
|
4699
4700
|
};
|
|
4700
|
-
function
|
|
4701
|
+
function $a(e) {
|
|
4701
4702
|
let t = e.path;
|
|
4702
4703
|
return e.type === G.menu && e.page_type === J.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;
|
|
4703
4704
|
}
|
|
4704
|
-
function
|
|
4705
|
+
function Ba(e) {
|
|
4705
4706
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4706
4707
|
}
|
|
4707
|
-
const
|
|
4708
|
+
const Zt = (e) => {
|
|
4708
4709
|
const t = e.type !== G.page, n = {
|
|
4709
|
-
path:
|
|
4710
|
-
name: e.id + "_" +
|
|
4711
|
-
component:
|
|
4710
|
+
path: $a(e),
|
|
4711
|
+
name: e.id + "_" + Ba(e) + "_" + e.path.replaceAll("/", "_"),
|
|
4712
|
+
component: Ta(e),
|
|
4712
4713
|
meta: {
|
|
4713
4714
|
id: e.id,
|
|
4714
4715
|
pageId: e.id,
|
|
@@ -4720,13 +4721,13 @@ const Wt = (e) => {
|
|
|
4720
4721
|
keepAlive: !1,
|
|
4721
4722
|
role: e.role
|
|
4722
4723
|
},
|
|
4723
|
-
children: e.children ? e.children.map((o) =>
|
|
4724
|
+
children: e.children ? e.children.map((o) => Zt(o)) : []
|
|
4724
4725
|
};
|
|
4725
4726
|
if (e.page_type === J.entity) {
|
|
4726
|
-
const o = e.path + "/list", l = e.path + "/form",
|
|
4727
|
+
const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
|
|
4727
4728
|
path: o,
|
|
4728
4729
|
name: e.name + "列表" + e.id,
|
|
4729
|
-
component:
|
|
4730
|
+
component: Wt,
|
|
4730
4731
|
meta: {
|
|
4731
4732
|
id: e.id + 99999,
|
|
4732
4733
|
title: "列表",
|
|
@@ -4739,7 +4740,7 @@ const Wt = (e) => {
|
|
|
4739
4740
|
}, {
|
|
4740
4741
|
path: l,
|
|
4741
4742
|
name: e.name + "新建" + e.id,
|
|
4742
|
-
component:
|
|
4743
|
+
component: qe,
|
|
4743
4744
|
meta: {
|
|
4744
4745
|
id: e.id + 99999 + 1,
|
|
4745
4746
|
title: "新建",
|
|
@@ -4750,9 +4751,9 @@ const Wt = (e) => {
|
|
|
4750
4751
|
path: e.path
|
|
4751
4752
|
}
|
|
4752
4753
|
}, {
|
|
4753
|
-
path:
|
|
4754
|
+
path: s,
|
|
4754
4755
|
name: e.name + "编辑" + e.id,
|
|
4755
|
-
component:
|
|
4756
|
+
component: qe,
|
|
4756
4757
|
meta: {
|
|
4757
4758
|
id: e.id + 99999 + 2,
|
|
4758
4759
|
title: "编辑",
|
|
@@ -4763,7 +4764,7 @@ const Wt = (e) => {
|
|
|
4763
4764
|
path: e.path
|
|
4764
4765
|
}
|
|
4765
4766
|
}];
|
|
4766
|
-
n.children = [...
|
|
4767
|
+
n.children = [...a, ...n.children];
|
|
4767
4768
|
}
|
|
4768
4769
|
if (n.children && n.children.length > 0) {
|
|
4769
4770
|
let o = !0;
|
|
@@ -4772,16 +4773,16 @@ const Wt = (e) => {
|
|
|
4772
4773
|
}), n.meta && (n.meta.menuType = t ? G.dir : G.hidden), o) {
|
|
4773
4774
|
n.meta && (n.meta.menuType = G.menu);
|
|
4774
4775
|
let l = "/";
|
|
4775
|
-
for (let
|
|
4776
|
-
if (n.children[
|
|
4777
|
-
l = n.children[
|
|
4776
|
+
for (let s = 0; s < n.children.length; s++)
|
|
4777
|
+
if (n.children[s].path.indexOf("/:") === -1) {
|
|
4778
|
+
l = n.children[s].path;
|
|
4778
4779
|
break;
|
|
4779
4780
|
}
|
|
4780
4781
|
n.redirect = l, n.path = "/" + e.id + "_DIR" + n.redirect.replaceAll("/", "_").toUpperCase();
|
|
4781
4782
|
}
|
|
4782
4783
|
}
|
|
4783
4784
|
return n;
|
|
4784
|
-
},
|
|
4785
|
+
}, Oa = (e) => {
|
|
4785
4786
|
const t = [];
|
|
4786
4787
|
return e.forEach((n) => {
|
|
4787
4788
|
const o = {
|
|
@@ -4790,26 +4791,26 @@ const Wt = (e) => {
|
|
|
4790
4791
|
routes: []
|
|
4791
4792
|
};
|
|
4792
4793
|
n.routes.forEach((l) => {
|
|
4793
|
-
o.routes.push(
|
|
4794
|
+
o.routes.push(Zt(l));
|
|
4794
4795
|
}), t.push(o);
|
|
4795
4796
|
}), t;
|
|
4796
|
-
},
|
|
4797
|
-
const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...
|
|
4797
|
+
}, Ra = "root", _t = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Aa = (e) => {
|
|
4798
|
+
const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [..._t(t), ..._t(n)];
|
|
4798
4799
|
return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
|
|
4799
|
-
},
|
|
4800
|
+
}, Yt = (e) => {
|
|
4800
4801
|
const t = { ...e };
|
|
4801
|
-
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) =>
|
|
4802
|
-
},
|
|
4803
|
-
const l =
|
|
4804
|
-
if (!
|
|
4802
|
+
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Yt(n))), t;
|
|
4803
|
+
}, Pa = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, lt = (e = [], t) => t.includes(Ra) ? e.map((n) => Yt(n)) : e.reduce((n, o) => {
|
|
4804
|
+
const l = Aa(o);
|
|
4805
|
+
if (!Pa(l, t))
|
|
4805
4806
|
return n;
|
|
4806
|
-
const
|
|
4807
|
-
if (o.meta && (
|
|
4808
|
-
const
|
|
4809
|
-
|
|
4807
|
+
const s = { ...o };
|
|
4808
|
+
if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
|
|
4809
|
+
const a = lt(o.children, t);
|
|
4810
|
+
a.length ? s.children = a : delete s.children;
|
|
4810
4811
|
}
|
|
4811
|
-
return n.push(
|
|
4812
|
-
}, []),
|
|
4812
|
+
return n.push(s), n;
|
|
4813
|
+
}, []), La = (e) => {
|
|
4813
4814
|
const t = globalThis.atob(e);
|
|
4814
4815
|
let n = "";
|
|
4815
4816
|
for (let o = 0; o < t.length; o++) {
|
|
@@ -4821,38 +4822,38 @@ const Wt = (e) => {
|
|
|
4821
4822
|
} catch {
|
|
4822
4823
|
return decodeURIComponent(encodeURIComponent(t));
|
|
4823
4824
|
}
|
|
4824
|
-
},
|
|
4825
|
+
}, Ma = (e) => {
|
|
4825
4826
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
|
|
4826
|
-
return typeof globalThis.atob == "function" ?
|
|
4827
|
-
},
|
|
4827
|
+
return typeof globalThis.atob == "function" ? La(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
|
|
4828
|
+
}, Da = (e) => {
|
|
4828
4829
|
if (!e)
|
|
4829
4830
|
return null;
|
|
4830
4831
|
const t = e.split(".");
|
|
4831
4832
|
if (t.length < 2)
|
|
4832
4833
|
return null;
|
|
4833
4834
|
try {
|
|
4834
|
-
const n =
|
|
4835
|
+
const n = Ma(t[1]);
|
|
4835
4836
|
return n ? JSON.parse(n) : null;
|
|
4836
4837
|
} catch {
|
|
4837
4838
|
return null;
|
|
4838
4839
|
}
|
|
4839
|
-
},
|
|
4840
|
-
const t =
|
|
4840
|
+
}, en = (e) => {
|
|
4841
|
+
const t = Da(e);
|
|
4841
4842
|
return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
|
|
4842
4843
|
};
|
|
4843
|
-
function
|
|
4844
|
+
function ja(e) {
|
|
4844
4845
|
e.beforeEach(async (t, n, o) => {
|
|
4845
|
-
if (
|
|
4846
|
+
if (zt().indexOf(t.path) !== -1) {
|
|
4846
4847
|
o();
|
|
4847
4848
|
return;
|
|
4848
4849
|
}
|
|
4849
|
-
if (
|
|
4850
|
+
if (Us()) {
|
|
4850
4851
|
o();
|
|
4851
4852
|
return;
|
|
4852
4853
|
}
|
|
4853
|
-
const l =
|
|
4854
|
+
const l = j(M);
|
|
4854
4855
|
await l.info();
|
|
4855
|
-
const
|
|
4856
|
+
const s = await l.loadRemoteRoutes(), a = Oa(s), c = en(ye()), d = a.map((p) => {
|
|
4856
4857
|
const f = lt(p.routes, c);
|
|
4857
4858
|
return {
|
|
4858
4859
|
...p,
|
|
@@ -4863,75 +4864,75 @@ function Ps(e) {
|
|
|
4863
4864
|
p.routes.forEach((f) => {
|
|
4864
4865
|
e.addRoute({
|
|
4865
4866
|
path: "/",
|
|
4866
|
-
component:
|
|
4867
|
+
component: Kt,
|
|
4867
4868
|
children: [f]
|
|
4868
4869
|
});
|
|
4869
4870
|
});
|
|
4870
4871
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), o();
|
|
4871
4872
|
});
|
|
4872
4873
|
}
|
|
4873
|
-
function
|
|
4874
|
+
function Na(e) {
|
|
4874
4875
|
e.beforeEach(async (t, n, o) => {
|
|
4875
|
-
const
|
|
4876
|
-
for (let c =
|
|
4876
|
+
const s = [V(M).title || ""], a = t.matched.length;
|
|
4877
|
+
for (let c = a; c > a - 3; c--) {
|
|
4877
4878
|
const d = t.matched[c - 1];
|
|
4878
|
-
d?.meta?.title &&
|
|
4879
|
+
d?.meta?.title && s.push(d.meta.title + "");
|
|
4879
4880
|
}
|
|
4880
|
-
|
|
4881
|
+
s.length > 1 && (document.title = s.reverse().join("-")), o();
|
|
4881
4882
|
}), e.afterEach(async (t, n, o) => {
|
|
4882
|
-
const l = Y(
|
|
4883
|
+
const l = Y(M);
|
|
4883
4884
|
Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
|
|
4884
4885
|
});
|
|
4885
4886
|
}
|
|
4886
|
-
function
|
|
4887
|
-
|
|
4887
|
+
function Ua(e) {
|
|
4888
|
+
Gs(e), Ns(e), ja(e), Na(e);
|
|
4888
4889
|
}
|
|
4889
|
-
|
|
4890
|
-
function
|
|
4891
|
-
return
|
|
4890
|
+
Ua(oe);
|
|
4891
|
+
function Va() {
|
|
4892
|
+
return j(M).token;
|
|
4892
4893
|
}
|
|
4893
|
-
function
|
|
4894
|
-
return
|
|
4894
|
+
function qa() {
|
|
4895
|
+
return j(M).expired;
|
|
4895
4896
|
}
|
|
4896
|
-
function
|
|
4897
|
-
|
|
4897
|
+
function vt(e) {
|
|
4898
|
+
Ho({
|
|
4898
4899
|
message: e,
|
|
4899
4900
|
type: "error",
|
|
4900
4901
|
duration: 5 * 1e3,
|
|
4901
4902
|
grouping: !0
|
|
4902
4903
|
});
|
|
4903
4904
|
}
|
|
4904
|
-
const
|
|
4905
|
+
const Ha = {
|
|
4905
4906
|
onFulfilled: function(e) {
|
|
4906
4907
|
e.headers = e.headers || {};
|
|
4907
|
-
const t =
|
|
4908
|
+
const t = Va();
|
|
4908
4909
|
return t && (e.headers["X-Token"] = t), oe.currentRoute.value.meta?.path && (e.headers["X-Path"] = oe.currentRoute.value.meta.path), e;
|
|
4909
4910
|
}
|
|
4910
|
-
},
|
|
4911
|
+
}, Fa = {
|
|
4911
4912
|
onFulfilled(e) {
|
|
4912
4913
|
if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
|
|
4913
4914
|
const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
|
|
4914
4915
|
if (e.data.code === 401) {
|
|
4915
|
-
if (
|
|
4916
|
+
if (qa())
|
|
4916
4917
|
return;
|
|
4917
|
-
|
|
4918
|
+
j(M).SetExpired(), ht.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
4918
4919
|
showClose: !1,
|
|
4919
4920
|
confirmButtonText: "重新登录",
|
|
4920
4921
|
showCancelButton: !0,
|
|
4921
4922
|
cancelButtonText: "取消",
|
|
4922
4923
|
callback: (l) => {
|
|
4923
|
-
l === "confirm" && (
|
|
4924
|
+
l === "confirm" && (Lt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(M).SetExpired();
|
|
4924
4925
|
}
|
|
4925
4926
|
});
|
|
4926
4927
|
return;
|
|
4927
4928
|
} else
|
|
4928
|
-
|
|
4929
|
+
vt(o);
|
|
4929
4930
|
return Promise.reject(o);
|
|
4930
4931
|
}
|
|
4931
4932
|
let n = e.data?.data?._message_box;
|
|
4932
|
-
return n !== void 0 && (
|
|
4933
|
+
return n !== void 0 && (ze(n) && (n = {
|
|
4933
4934
|
message: e.data?.data?._message_box
|
|
4934
|
-
}),
|
|
4935
|
+
}), ht({
|
|
4935
4936
|
title: "提示",
|
|
4936
4937
|
type: "success",
|
|
4937
4938
|
grouping: !0,
|
|
@@ -4939,28 +4940,28 @@ const js = {
|
|
|
4939
4940
|
})), e.data;
|
|
4940
4941
|
},
|
|
4941
4942
|
onRejected(e) {
|
|
4942
|
-
return Je.isCancel(e) ? Promise.reject("") : (
|
|
4943
|
+
return Je.isCancel(e) ? Promise.reject("") : (vt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
|
|
4943
4944
|
}
|
|
4944
|
-
},
|
|
4945
|
+
}, Ga = [
|
|
4945
4946
|
{
|
|
4946
|
-
request:
|
|
4947
|
-
response:
|
|
4947
|
+
request: Go,
|
|
4948
|
+
response: Ko
|
|
4948
4949
|
},
|
|
4949
4950
|
{
|
|
4950
|
-
request:
|
|
4951
|
-
response:
|
|
4951
|
+
request: Ha,
|
|
4952
|
+
response: Fa
|
|
4952
4953
|
}
|
|
4953
4954
|
];
|
|
4954
|
-
function
|
|
4955
|
+
function st(e = {}) {
|
|
4955
4956
|
const t = Be.axios || {}, n = H(t, e || {}), o = Je.create({
|
|
4956
4957
|
...n
|
|
4957
4958
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
4958
4959
|
});
|
|
4959
|
-
return
|
|
4960
|
+
return Ga.forEach((l) => {
|
|
4960
4961
|
o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
|
|
4961
4962
|
}), o;
|
|
4962
4963
|
}
|
|
4963
|
-
const
|
|
4964
|
+
const tn = st(), Ka = {
|
|
4964
4965
|
beforeMount(e, t) {
|
|
4965
4966
|
e.clickOutsideEvent = function(n) {
|
|
4966
4967
|
e === n.target || e.contains(n.target) || t.value(n, e);
|
|
@@ -4969,23 +4970,23 @@ const Zt = at(), Vs = {
|
|
|
4969
4970
|
unmounted(e) {
|
|
4970
4971
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
4971
4972
|
}
|
|
4972
|
-
}, le =
|
|
4973
|
+
}, le = vo(), za = {
|
|
4973
4974
|
mounted: (e, t) => {
|
|
4974
4975
|
e !== null && (t.value, e.oncontextmenu = (n) => {
|
|
4975
4976
|
n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && le.emit("right-click", { event: n, data: t.value });
|
|
4976
4977
|
});
|
|
4977
4978
|
}
|
|
4978
|
-
},
|
|
4979
|
+
}, Ja = {
|
|
4979
4980
|
mounted(e) {
|
|
4980
4981
|
}
|
|
4981
4982
|
};
|
|
4982
|
-
function
|
|
4983
|
+
function gt(e, t) {
|
|
4983
4984
|
let n = e[`offset${t}`], o = e.offsetParent;
|
|
4984
4985
|
for (; o; )
|
|
4985
4986
|
n += o[`offset${t}`], o = o.offsetParent;
|
|
4986
4987
|
return n;
|
|
4987
4988
|
}
|
|
4988
|
-
const
|
|
4989
|
+
const Wa = {
|
|
4989
4990
|
mounted: (e, t) => {
|
|
4990
4991
|
if (e === null || !t.value.dev)
|
|
4991
4992
|
return;
|
|
@@ -4996,64 +4997,76 @@ const Fs = {
|
|
|
4996
4997
|
n.classList.add("devtool-hover");
|
|
4997
4998
|
const o = document.createElement("i");
|
|
4998
4999
|
o.className = "devtool-item-wrapper", n.onmouseover = () => {
|
|
4999
|
-
o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top =
|
|
5000
|
+
o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = gt(n, "Top") - 15 + "px", o.style.left = gt(n, "Left") - 15 + "px";
|
|
5000
5001
|
};
|
|
5001
5002
|
const l = document.createElement("span");
|
|
5002
5003
|
l.className = "dev-action-edit", l.title = "编辑";
|
|
5003
|
-
const
|
|
5004
|
-
|
|
5004
|
+
const s = document.createElement("i");
|
|
5005
|
+
s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (d) => {
|
|
5005
5006
|
le.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
|
|
5006
5007
|
}, o.appendChild(l);
|
|
5007
|
-
const
|
|
5008
|
-
|
|
5008
|
+
const a = document.createElement("span");
|
|
5009
|
+
a.className = "dev-action-del", a.title = "删除";
|
|
5009
5010
|
const c = document.createElement("i");
|
|
5010
|
-
c.className = "iconfont ra-cut",
|
|
5011
|
+
c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
|
|
5011
5012
|
le.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5012
|
-
}, o.appendChild(
|
|
5013
|
+
}, o.appendChild(a), n.insertBefore(o, n.firstChild);
|
|
5013
5014
|
}
|
|
5014
|
-
},
|
|
5015
|
+
}, Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5015
5016
|
__proto__: null,
|
|
5016
|
-
devtool:
|
|
5017
|
-
outClick:
|
|
5018
|
-
resize:
|
|
5019
|
-
rightClick:
|
|
5017
|
+
devtool: Wa,
|
|
5018
|
+
outClick: Ka,
|
|
5019
|
+
resize: Ja,
|
|
5020
|
+
rightClick: za
|
|
5020
5021
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5021
5022
|
let we;
|
|
5022
|
-
|
|
5023
|
-
|
|
5023
|
+
const nn = [], kt = /* @__PURE__ */ new Set(), St = (e) => typeof e.name == "string" ? e.name : e.path;
|
|
5024
|
+
function dr(e) {
|
|
5025
|
+
return e ? st(H(Be.axios, e)) : we;
|
|
5024
5026
|
}
|
|
5025
|
-
function
|
|
5026
|
-
const t = H(Be, e), n =
|
|
5027
|
-
l.unshift(o), l.forEach((
|
|
5028
|
-
|
|
5029
|
-
}), t?.mock &&
|
|
5030
|
-
const
|
|
5031
|
-
|
|
5027
|
+
function pr(e) {
|
|
5028
|
+
const t = H(Be, e), n = In(Mo), o = oi(t), l = t.plugins || [];
|
|
5029
|
+
l.unshift(o), l.forEach((d) => {
|
|
5030
|
+
ni(n, d);
|
|
5031
|
+
}), t?.mock && qo(), we = st(t.axios), Ro(n);
|
|
5032
|
+
const s = Y(M), a = V(M), c = j(M);
|
|
5033
|
+
Io(we), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = we, n.config.globalProperties.$router = oe, window.App = n, window.OmsOptions = t, yo(() => ({
|
|
5032
5034
|
"X-Token": ye()
|
|
5033
|
-
})),
|
|
5035
|
+
})), Ee(() => c.token, () => {
|
|
5036
|
+
on();
|
|
5037
|
+
}, { immediate: !0 }), oe.isReady().then(() => n.mount("#app"));
|
|
5034
5038
|
}
|
|
5035
|
-
function
|
|
5039
|
+
function Xa(e, t = {}) {
|
|
5036
5040
|
Object.keys(t).forEach((n) => {
|
|
5037
5041
|
e.component(n, t[n]);
|
|
5038
5042
|
});
|
|
5039
5043
|
}
|
|
5040
|
-
function
|
|
5041
|
-
const
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5044
|
+
function on() {
|
|
5045
|
+
const e = en(ye());
|
|
5046
|
+
if (!e.length)
|
|
5047
|
+
return;
|
|
5048
|
+
const t = lt(nn, e), n = j(M), o = new Set(n.customRouter.map((s) => St(s))), l = t.filter((s) => {
|
|
5049
|
+
const a = St(s);
|
|
5050
|
+
return kt.has(a) || o.has(a) ? !1 : (kt.add(a), !0);
|
|
5051
|
+
});
|
|
5052
|
+
l.forEach((s) => {
|
|
5053
|
+
oe.addRoute(s);
|
|
5054
|
+
}), l.length && n.setCustomRoutes(l);
|
|
5045
5055
|
}
|
|
5046
|
-
function
|
|
5056
|
+
function Za(e = []) {
|
|
5057
|
+
nn.push(...e), on();
|
|
5058
|
+
}
|
|
5059
|
+
function Ya(e, t) {
|
|
5047
5060
|
t.forEach((n) => {
|
|
5048
5061
|
ie(n) && (n = [n]), e.use(...n);
|
|
5049
5062
|
});
|
|
5050
5063
|
}
|
|
5051
|
-
function
|
|
5064
|
+
function ei(e, t = {}) {
|
|
5052
5065
|
Object.keys(t).forEach((n) => {
|
|
5053
5066
|
e.directive(n, t[n]);
|
|
5054
5067
|
});
|
|
5055
5068
|
}
|
|
5056
|
-
function
|
|
5069
|
+
function ti(e = {}) {
|
|
5057
5070
|
const t = ["app", "settings", "user"];
|
|
5058
5071
|
Object.keys(e).forEach((n) => {
|
|
5059
5072
|
if (t.indexOf(n) !== -1) {
|
|
@@ -5063,50 +5076,50 @@ function Qs(e = {}) {
|
|
|
5063
5076
|
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
|
|
5064
5077
|
});
|
|
5065
5078
|
}
|
|
5066
|
-
function
|
|
5067
|
-
|
|
5079
|
+
function ni(e, t) {
|
|
5080
|
+
Xa(e, t.components || {}), Za(t.routes || []), Ya(e, t.use || []), ei(e, t.directives || {}), ti(t.storeModules || {}), Vt(t.mockApis || []);
|
|
5068
5081
|
}
|
|
5069
|
-
function
|
|
5082
|
+
function oi(e) {
|
|
5070
5083
|
return {
|
|
5071
|
-
components: { VIcon:
|
|
5072
|
-
directives:
|
|
5084
|
+
components: { VIcon: _o },
|
|
5085
|
+
directives: Qa,
|
|
5073
5086
|
use: [
|
|
5074
5087
|
oe,
|
|
5075
|
-
[
|
|
5088
|
+
[Un, { locale: Ct, ...e.settings?.ElementPlus }]
|
|
5076
5089
|
]
|
|
5077
5090
|
};
|
|
5078
5091
|
}
|
|
5079
5092
|
export {
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5093
|
+
Jt as BaseSso,
|
|
5094
|
+
je as Container,
|
|
5095
|
+
cr as DingTalk,
|
|
5096
|
+
rr as Github,
|
|
5097
|
+
Kt as Layout,
|
|
5085
5098
|
G as MenuType,
|
|
5086
|
-
|
|
5087
|
-
|
|
5099
|
+
Ho as Message,
|
|
5100
|
+
ht as MessageBox,
|
|
5088
5101
|
J as PageType,
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5102
|
+
Hs as allSso,
|
|
5103
|
+
Bo as appState,
|
|
5104
|
+
Oo as builderSchemaState,
|
|
5105
|
+
pr as createAdmin,
|
|
5093
5106
|
le as eventBus,
|
|
5094
|
-
|
|
5107
|
+
zo as getCmp,
|
|
5095
5108
|
Pe as getHttp,
|
|
5096
5109
|
we as http,
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5110
|
+
st as instance,
|
|
5111
|
+
M as pinia,
|
|
5112
|
+
ur as regViews,
|
|
5113
|
+
ir as setCmp,
|
|
5114
|
+
Io as setHttp,
|
|
5115
|
+
To as settings,
|
|
5116
|
+
Ro as setupStore,
|
|
5117
|
+
Oa as transRemoteModules,
|
|
5105
5118
|
Y as useAppStore,
|
|
5106
|
-
|
|
5107
|
-
|
|
5119
|
+
ar as useBuilderSchemaStore,
|
|
5120
|
+
dr as useHttp,
|
|
5108
5121
|
V as useSettingsStore,
|
|
5109
|
-
|
|
5122
|
+
j as useUserStore,
|
|
5110
5123
|
dt as userState
|
|
5111
5124
|
};
|
|
5112
5125
|
//# sourceMappingURL=index.es.js.map
|