@okiss/oms 0.0.87 → 0.0.89
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 +1002 -987
- package/dist/index.es.js.map +1 -1
- package/dist/oms.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +16 -16
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { normalizeTheme as pe, applyDocumentTheme as
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { ref as I, watch as be, computed as k, defineComponent as K, onBeforeMount as Fe, provide as yn, resolveComponent as L, createBlock as h, openBlock as i, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as _n, createElementBlock as _, Fragment as O, renderList as U, toDisplayString as R, normalizeClass as ee, renderSlot as de, createCommentVNode as $, mergeProps as X, toRefs as vn, unref as m, isRef as Ge, onMounted as Ie, normalizeStyle as gn, createElementVNode as v, withKeys as rt, withModifiers as ct, resolveDynamicComponent as Ke, Transition as kn, normalizeProps as Z, guardReactiveProps as re, withDirectives as ge, vModelText as Ae, onUnmounted as Sn, resolveDirective as wn, getCurrentInstance as xn, h as En, toRaw as In, createApp as Cn } from "vue";
|
|
2
|
+
import { normalizeTheme as pe, applyDocumentTheme as Tn, dispatchThemeChange as Bn, addNewStyle as $n, addNewStyleTag as On, queryParams as An, logGroup as Rn, compactObject as wt, showEleByClassName as xt, waterMarker as Pn, Cache as ke, isExternal as ut, getQueryParam as Et, createIFrame as Ln, strVarReplace as ae, obj2Param as Mn, isObject as ie, isString as ze, effectDataTrans as Dn, isArray as It } from "@okiss/utils";
|
|
3
|
+
import { defineStore as Ce, createPinia as jn } from "pinia";
|
|
4
4
|
import te from "js-cookie";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import Ct from "element-plus/es/locale/lang/zh-cn";
|
|
6
|
+
import Nn, { cloneDeep as x, merge as H, get as fe, unset as Tt, isObject as Un } from "lodash";
|
|
7
|
+
import Re from "mockjs";
|
|
8
8
|
import Je from "axios";
|
|
9
|
-
import
|
|
9
|
+
import Vn, { ElMessageBox as Bt, ElMessage as qn, ElCol as Hn, ElRow as Fn, ElCard as Gn } 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
|
|
14
|
-
import { ElBreadcrumb as
|
|
13
|
+
import { useRoute as W, useRouter as Te, onBeforeRouteLeave as Kn, createRouter as zn, createWebHashHistory as Jn, onBeforeRouteUpdate as Wn } from "vue-router";
|
|
14
|
+
import { ElBreadcrumb as Qn, ElBreadcrumbItem as Xn, ElContainer as Zn, ElRow as ye, ElMain as Yn, ElAside as eo, ElForm as $t, ElFormItem as Ot, ElSelect as We, ElOption as Qe, ElDivider as At, ElButton as me, ElCol as Be, ElDrawer as Rt, ElTooltip as Pt, ElIcon as to, ElDropdown as no, ElAvatar as oo, ElDropdownMenu as lo, ElDropdownItem as so, ElImage as ao, ElMenuItem as io, ElSubMenu as ro, ElOptionGroup as co, ElScrollbar as uo, ElMenu as po, ElBacktop as fo, ElMessage as mo, ElAlert as Xe, ElCard as Ze, ElTree as ho } 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 bo 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 yo, setUploadHeaderHandle as _o, VIcon as vo } 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 go from "mitt";
|
|
41
|
+
import { Moon as ko, Sunny as So } 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 wo } 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 xo from "vue3-markdown-it";
|
|
54
|
+
import Eo 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;
|
|
@@ -62,28 +62,28 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
const tt = "oms:token";
|
|
65
|
-
function
|
|
65
|
+
function _e() {
|
|
66
66
|
return te.get(tt) || "";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const t = V(
|
|
68
|
+
function Io(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 Co(e) {
|
|
77
|
+
Mt = e;
|
|
78
78
|
}
|
|
79
79
|
function Pe() {
|
|
80
|
-
return
|
|
80
|
+
return Mt;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const To = {
|
|
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"],
|
|
@@ -111,13 +111,13 @@ const So = {
|
|
|
111
111
|
formMutex: !0,
|
|
112
112
|
captcha: !0,
|
|
113
113
|
themeMode: "light"
|
|
114
|
-
},
|
|
115
|
-
axios:
|
|
116
|
-
settings:
|
|
114
|
+
}, $e = {
|
|
115
|
+
axios: To,
|
|
116
|
+
settings: Dt,
|
|
117
117
|
plugins: [],
|
|
118
118
|
mock: !1
|
|
119
|
-
},
|
|
120
|
-
state: () => ({ ...
|
|
119
|
+
}, Bo = x(Dt), V = Ce("settings", {
|
|
120
|
+
state: () => ({ ...Bo }),
|
|
121
121
|
actions: {
|
|
122
122
|
updateSettings(e) {
|
|
123
123
|
H(this, e);
|
|
@@ -127,7 +127,7 @@ const So = {
|
|
|
127
127
|
name: "",
|
|
128
128
|
nickname: "",
|
|
129
129
|
avatar: "",
|
|
130
|
-
token:
|
|
130
|
+
token: _e(),
|
|
131
131
|
customRouter: [],
|
|
132
132
|
remoteRouter: [],
|
|
133
133
|
menuRoutes: [],
|
|
@@ -137,26 +137,27 @@ 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, Io(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;
|
|
157
158
|
},
|
|
158
159
|
resetUser() {
|
|
159
|
-
const e = { ...dt, token:
|
|
160
|
+
const e = { ...dt, token: _e() };
|
|
160
161
|
Object.assign(this, e);
|
|
161
162
|
},
|
|
162
163
|
SET_EXPIRED() {
|
|
@@ -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
|
},
|
|
@@ -220,23 +221,23 @@ const So = {
|
|
|
220
221
|
this.SET_EXPIRED();
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
}),
|
|
224
|
-
function
|
|
224
|
+
}), Ee = "sidebarStatus";
|
|
225
|
+
function $o() {
|
|
225
226
|
if (typeof window > "u")
|
|
226
227
|
return;
|
|
227
|
-
const e = window.localStorage.getItem(
|
|
228
|
+
const e = window.localStorage.getItem(Ee);
|
|
228
229
|
if (e !== null)
|
|
229
230
|
return e === "1";
|
|
230
|
-
const t = te.get(
|
|
231
|
+
const t = te.get(Ee);
|
|
231
232
|
if (t !== void 0)
|
|
232
233
|
return !!t;
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
-
typeof window < "u" && window.localStorage.setItem(
|
|
235
|
+
function ft(e) {
|
|
236
|
+
typeof window < "u" && window.localStorage.setItem(Ee, e ? "1" : "0"), te.set(Ee, e ? "1" : "0");
|
|
236
237
|
}
|
|
237
|
-
const
|
|
238
|
+
const Oo = {
|
|
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: () => ({ ...Oo }),
|
|
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
|
+
}), Ao = {
|
|
295
296
|
currentCellItem: {}
|
|
296
297
|
// form/sub-form 当前单元格编辑数据
|
|
297
|
-
},
|
|
298
|
-
state: () => ({ ...
|
|
298
|
+
}, ir = Ce("builderSchema", {
|
|
299
|
+
state: () => ({ ...Ao }),
|
|
299
300
|
actions: {
|
|
300
301
|
SET_CURRENT_CELLITEM(e) {
|
|
301
302
|
this.currentCellItem = e;
|
|
@@ -304,58 +305,58 @@ const Eo = {
|
|
|
304
305
|
this.SET_CURRENT_CELLITEM(e);
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
|
-
}),
|
|
308
|
-
function
|
|
309
|
-
e.use(
|
|
308
|
+
}), M = jn();
|
|
309
|
+
function Ro(e) {
|
|
310
|
+
e.use(M);
|
|
310
311
|
}
|
|
311
|
-
const
|
|
312
|
-
let
|
|
313
|
-
function
|
|
312
|
+
const jt = "oms-theme", Nt = I("light");
|
|
313
|
+
let mt = !1, Se = null;
|
|
314
|
+
function Po(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 Lo(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, Tn(t), Bn(t), Lo(t);
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
+
function Mo(e) {
|
|
328
329
|
if (typeof window > "u" || typeof window.matchMedia != "function") {
|
|
329
|
-
|
|
330
|
+
Se = null;
|
|
330
331
|
return;
|
|
331
332
|
}
|
|
332
333
|
const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
|
|
333
334
|
const l = o.matches ?? t.matches;
|
|
334
335
|
e(l ? "dark" : "light");
|
|
335
336
|
};
|
|
336
|
-
typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n),
|
|
337
|
-
typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n),
|
|
337
|
+
typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), Se = () => {
|
|
338
|
+
typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), Se = 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 = Po(e.themeMode);
|
|
349
|
+
pe(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Le(s), be(
|
|
349
350
|
() => e.themeMode,
|
|
350
|
-
(
|
|
351
|
-
|
|
351
|
+
(a) => {
|
|
352
|
+
Le(pe(a));
|
|
352
353
|
},
|
|
353
354
|
{ immediate: !0 }
|
|
354
|
-
),
|
|
355
|
-
t(
|
|
355
|
+
), Se?.(), Mo((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 Do = /* @__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"), On(`.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 && yn("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 jo = [
|
|
387
388
|
{
|
|
388
389
|
type: "jump",
|
|
389
390
|
text: "跳转",
|
|
@@ -440,9 +441,9 @@ const Ao = [
|
|
|
440
441
|
}
|
|
441
442
|
];
|
|
442
443
|
[
|
|
443
|
-
...
|
|
444
|
+
...Nn.cloneDeep(jo)
|
|
444
445
|
];
|
|
445
|
-
const
|
|
446
|
+
const No = {
|
|
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
|
+
}, Uo = { listMock: No }, Vo = [
|
|
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) => Uo.listMock
|
|
511
512
|
}
|
|
512
|
-
],
|
|
513
|
-
...
|
|
514
|
-
],
|
|
515
|
-
function
|
|
513
|
+
], qo = [
|
|
514
|
+
...Vo
|
|
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
|
|
523
|
-
let t = e.url, n = e.baseURL ||
|
|
522
|
+
Vt(qo);
|
|
523
|
+
function qt(e) {
|
|
524
|
+
let t = e.url, n = e.baseURL || $e.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 =
|
|
529
|
-
|
|
530
|
-
const { url: l, type:
|
|
531
|
-
return
|
|
527
|
+
function Ho() {
|
|
528
|
+
Object.keys(Ue).forEach((e) => {
|
|
529
|
+
const t = Ue[e], n = qt(t);
|
|
530
|
+
Re.mock(n, t.method, function(o) {
|
|
531
|
+
const { url: l, type: s, body: a } = o, c = An(l), d = a ? JSON.parse(a) : {}, f = t.response({ query: c, data: d }), p = Re.mock(f);
|
|
532
|
+
return Rn(l, { type: s, query: c, data: d, response: p }), Re.mock(p);
|
|
532
533
|
});
|
|
533
534
|
});
|
|
534
535
|
}
|
|
535
|
-
const
|
|
536
|
+
const Fo = qn, ht = Bt, Go = Je.CancelToken, we = {
|
|
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
|
+
}, Ko = {
|
|
572
573
|
onFulfilled: function(e) {
|
|
573
|
-
return e.cacheEnable === !1 || (
|
|
574
|
-
|
|
574
|
+
return e.cacheEnable === !1 || (we.pending(e) && we.delTask(e), e.cancelToken = new Go((t) => {
|
|
575
|
+
we.addTask(e, t);
|
|
575
576
|
})), e;
|
|
576
577
|
},
|
|
577
578
|
onRejected(e) {
|
|
578
579
|
return Promise.reject(e);
|
|
579
580
|
}
|
|
580
|
-
},
|
|
581
|
+
}, zo = {
|
|
581
582
|
onFulfilled: function(e) {
|
|
582
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
583
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && we.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 rr(e, t) {
|
|
590
|
+
Ht[e] = t;
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
-
return
|
|
592
|
+
function Jo(e) {
|
|
593
|
+
return Ht[e];
|
|
593
594
|
}
|
|
594
|
-
const
|
|
595
|
+
const Wo = /* @__PURE__ */ K({
|
|
595
596
|
name: "Dashboard",
|
|
596
597
|
setup() {
|
|
597
|
-
const e =
|
|
598
|
+
const e = Jo("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
|
+
}, [C("Hi "), t.value, C(" 😄")])]);
|
|
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
|
+
}, Qo = /* @__PURE__ */ P(Wo, [["__scopeId", "data-v-85165680"]]), Xo = {
|
|
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 bo.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
|
+
}, Zo = {
|
|
656
657
|
key: 0,
|
|
657
658
|
class: "no-redirect"
|
|
658
|
-
},
|
|
659
|
-
function
|
|
660
|
-
const
|
|
659
|
+
}, Yo = ["onClick"];
|
|
660
|
+
function el(e, t, n, o, l, s) {
|
|
661
|
+
const a = Xn, c = Qn;
|
|
661
662
|
return i(), h(c, {
|
|
662
663
|
class: "app-breadcrumb",
|
|
663
664
|
separator: "/"
|
|
664
665
|
}, {
|
|
665
666
|
default: r(() => [
|
|
666
|
-
u(
|
|
667
|
+
u(_n, { name: "breadcrumb" }, {
|
|
667
668
|
default: r(() => [
|
|
668
|
-
(i(!0), _(
|
|
669
|
+
(i(!0), _(O, null, U(l.levelList, (d, f) => (i(), h(a, {
|
|
669
670
|
key: d.path
|
|
670
671
|
}, {
|
|
671
672
|
default: r(() => [
|
|
672
|
-
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 ||
|
|
673
|
+
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || f === l.levelList.length - 1 ? (i(), _("span", Zo, R(d.meta.title), 1)) : (i(), _("a", {
|
|
673
674
|
key: 1,
|
|
674
|
-
onClick: (
|
|
675
|
-
},
|
|
675
|
+
onClick: (p) => s.handleLink(d)
|
|
676
|
+
}, R(d.meta.title), 9, Yo))
|
|
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 tl = /* @__PURE__ */ P(Xo, [["render", el], ["__scopeId", "data-v-fa74804e"]]), nl = {
|
|
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 ol(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 =
|
|
716
|
-
return i(), h(
|
|
714
|
+
const ll = /* @__PURE__ */ P(nl, [["render", ol]]), sl = {};
|
|
715
|
+
function al(e, t) {
|
|
716
|
+
const n = ye, o = Yn, l = eo, s = Zn;
|
|
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(sl, [["render", al], ["__scopeId", "data-v-7c3d697b"]]), il = {
|
|
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
|
+
}, rl = {
|
|
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
|
+
}, cl = {
|
|
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
|
+
}, ul = {
|
|
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
|
+
}, dl = {
|
|
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
|
+
}, pl = {
|
|
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
|
+
}, fl = {
|
|
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
|
+
}, ml = {
|
|
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
|
+
}, hl = {
|
|
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
|
+
}, bl = {
|
|
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
|
+
}, yl = {
|
|
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
|
+
}, _l = {
|
|
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
|
+
}, vl = {
|
|
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
|
-
F(al);
|
|
1331
|
-
F(fl);
|
|
1332
1325
|
F(il);
|
|
1326
|
+
F(ul);
|
|
1333
1327
|
F(rl);
|
|
1334
1328
|
F(cl);
|
|
1329
|
+
F(pl);
|
|
1330
|
+
F(_l);
|
|
1335
1331
|
F(dl);
|
|
1336
|
-
F(
|
|
1337
|
-
|
|
1332
|
+
F(vl);
|
|
1333
|
+
F(fl);
|
|
1334
|
+
F(ml);
|
|
1335
|
+
F(hl);
|
|
1336
|
+
F(yl);
|
|
1337
|
+
F(bl);
|
|
1338
|
+
const Ve = Gt, gl = {
|
|
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 kl = {
|
|
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
|
+
}, Sl = {
|
|
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: kl,
|
|
1489
|
+
baseSchema: gl,
|
|
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
|
|
1613
|
-
return i(), h(
|
|
1612
|
+
function wl(e, t, n, o, l, s) {
|
|
1613
|
+
const a = L("v-form"), c = At, d = me, f = L("JsonView"), p = L("VButton"), g = Qe, w = We, y = Ot, T = $t, B = L("dev-layout");
|
|
1614
|
+
return i(), h(B, null, {
|
|
1614
1615
|
main: r(() => [
|
|
1615
|
-
l.builderSchema.formItems ? (i(), h(
|
|
1616
|
+
l.builderSchema.formItems ? (i(), h(a, X({
|
|
1616
1617
|
ref: "form",
|
|
1617
1618
|
key: l.key,
|
|
1618
1619
|
dev: !0
|
|
1619
|
-
}, l.builderSchema), null, 16)) :
|
|
1620
|
+
}, l.builderSchema), null, 16)) : $("", !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
|
+
C("保存页面配置", -1)
|
|
1627
1628
|
])]),
|
|
1628
1629
|
_: 1
|
|
1629
1630
|
}, 8, ["onClick"]),
|
|
1630
|
-
t[3] || (t[3] =
|
|
1631
|
-
u(
|
|
1631
|
+
t[3] || (t[3] = C(" ", -1)),
|
|
1632
|
+
u(p, {
|
|
1632
1633
|
text: "PageSchema",
|
|
1633
1634
|
type: "modal"
|
|
1634
1635
|
}, {
|
|
1635
1636
|
default: r(() => [
|
|
1636
|
-
u(
|
|
1637
|
+
u(f, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
1637
1638
|
]),
|
|
1638
1639
|
_: 1
|
|
1639
1640
|
})
|
|
@@ -1641,14 +1642,14 @@ function yl(e, t, n, o, l, a) {
|
|
|
1641
1642
|
"right-aside": r(() => [
|
|
1642
1643
|
l.activeIndex ? (i(), h(T, { key: 0 }, {
|
|
1643
1644
|
default: r(() => [
|
|
1644
|
-
u(
|
|
1645
|
+
u(y, { label: "控件类型" }, {
|
|
1645
1646
|
default: r(() => [
|
|
1646
1647
|
u(w, {
|
|
1647
1648
|
modelValue: l.currentCtrlType,
|
|
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(g, {
|
|
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
|
+
})) : $("", !0),
|
|
1666
|
+
(i(), h(a, X({
|
|
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 xl = /* @__PURE__ */ P(Sl, [["render", wl], ["__scopeId", "data-v-875f0171"]]), El = {
|
|
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
|
+
}, Il = {
|
|
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
|
+
}, Cl = {
|
|
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
|
+
}, Tl = {
|
|
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
|
+
}, Bl = {
|
|
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
|
+
}, Ol = {
|
|
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
|
+
}, Al = {
|
|
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
|
+
}, Pl = {
|
|
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
|
+
}, Ll = {
|
|
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
|
+
}, Ml = {
|
|
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
|
+
}, Dl = {
|
|
2136
|
+
span: Tl,
|
|
2137
|
+
enum: Bl,
|
|
2138
|
+
html: $l,
|
|
2139
|
+
icon: Ol,
|
|
2140
|
+
image: Al,
|
|
2141
|
+
json: Rl,
|
|
2142
|
+
link: Pl,
|
|
2143
|
+
rich: Ll,
|
|
2144
|
+
tpl: Ml
|
|
2145
|
+
}, jl = {
|
|
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
|
+
}, Nl = {
|
|
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
|
+
}, Ul = {
|
|
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
|
+
}, Vl = {
|
|
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
|
+
}, ql = {
|
|
2370
|
+
jump: jl,
|
|
2371
|
+
api: Nl,
|
|
2372
|
+
form: Ul,
|
|
2373
|
+
table: Vl
|
|
2374
|
+
}, Hl = {
|
|
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 = vn(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: El, select: Il, date: Cl },
|
|
2404
|
+
headers: Dl,
|
|
2405
|
+
buttons: ql
|
|
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
|
|
2559
|
-
return i(), h(
|
|
2558
|
+
function Fl(e, t, n, o, l, s) {
|
|
2559
|
+
const a = Be, c = me, d = ye, f = L("v-table"), p = At, g = me, w = L("JsonView"), y = L("VButton"), T = Qe, B = We, b = Ot, E = $t, A = L("v-form"), Q = L("dev-layout");
|
|
2560
|
+
return i(), h(Q, 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
|
+
C("添加搜索条件", -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
|
+
C("文本框", -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
|
+
C("下拉框", -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
|
+
C("日期", -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
|
+
C("添加列表项", -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
|
+
C(R(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
|
+
C("添加行按钮", -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
|
+
C(R(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
|
+
C("添加常规按钮", -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
|
+
C(R(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
|
+
C("按钮组", -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
|
+
C("添加批量按钮", -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
|
+
C(R(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
|
+
C("按钮组", -1)
|
|
2744
2745
|
])]),
|
|
2745
2746
|
_: 1
|
|
2746
2747
|
})
|
|
@@ -2755,28 +2756,28 @@ function jl(e, t, n, o, l, a) {
|
|
|
2755
2756
|
})
|
|
2756
2757
|
]),
|
|
2757
2758
|
main: r(() => [
|
|
2758
|
-
(i(), h(
|
|
2759
|
+
(i(), h(f, X({
|
|
2759
2760
|
ref: "table",
|
|
2760
2761
|
key: l.key,
|
|
2761
2762
|
dev: !0
|
|
2762
2763
|
}, l.builderSchema), null, 16)),
|
|
2763
|
-
u(
|
|
2764
|
-
u(
|
|
2764
|
+
u(p),
|
|
2765
|
+
u(g, {
|
|
2765
2766
|
type: "primary",
|
|
2766
|
-
onClick:
|
|
2767
|
+
onClick: s.saveSchema
|
|
2767
2768
|
}, {
|
|
2768
2769
|
default: r(() => [...t[15] || (t[15] = [
|
|
2769
|
-
|
|
2770
|
+
C("保存页面配置", -1)
|
|
2770
2771
|
])]),
|
|
2771
2772
|
_: 1
|
|
2772
2773
|
}, 8, ["onClick"]),
|
|
2773
|
-
t[16] || (t[16] =
|
|
2774
|
-
u(
|
|
2774
|
+
t[16] || (t[16] = C(" ", -1)),
|
|
2775
|
+
u(y, {
|
|
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
|
})
|
|
@@ -2786,12 +2787,12 @@ function jl(e, t, n, o, l, a) {
|
|
|
2786
2787
|
default: r(() => [
|
|
2787
2788
|
u(b, { label: "控件类型" }, {
|
|
2788
2789
|
default: r(() => [
|
|
2789
|
-
u(
|
|
2790
|
+
u(B, {
|
|
2790
2791
|
modelValue: l.currentCtrlType,
|
|
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(A,
|
|
2808
|
+
})) : $("", !0),
|
|
2809
|
+
(i(), h(A, X({
|
|
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 Gl = /* @__PURE__ */ P(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f"]]), Kl = "rtl", zl = {
|
|
2818
2819
|
__name: "PageEditor",
|
|
2819
2820
|
setup(e) {
|
|
2820
|
-
const t =
|
|
2821
|
-
|
|
2822
|
-
const n =
|
|
2823
|
-
return (
|
|
2824
|
-
const c = L("VIcon"), d =
|
|
2825
|
-
return i(), _(
|
|
2821
|
+
const t = I(!1);
|
|
2822
|
+
I(1);
|
|
2823
|
+
const n = W(), o = Y(), l = k(() => o.pages[n.path]);
|
|
2824
|
+
return (s, a) => {
|
|
2825
|
+
const c = L("VIcon"), d = Rt;
|
|
2826
|
+
return i(), _(O, null, [
|
|
2826
2827
|
u(c, {
|
|
2827
2828
|
name: "ra-set",
|
|
2828
|
-
onClick:
|
|
2829
|
+
onClick: a[0] || (a[0] = (f) => 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] = (f) => Ge(t) ? t.value = f : null),
|
|
2833
2834
|
title: "页面设计",
|
|
2834
2835
|
class: "my-drawer",
|
|
2835
|
-
direction:
|
|
2836
|
+
direction: Kl,
|
|
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(xl, {
|
|
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"])) : $("", !0),
|
|
2846
|
+
m(l).headers !== void 0 ? (i(), h(Gl, {
|
|
2846
2847
|
key: 1,
|
|
2847
2848
|
schema: m(l)
|
|
2848
|
-
}, null, 8, ["schema"])) :
|
|
2849
|
+
}, null, 8, ["schema"])) : $("", !0)
|
|
2849
2850
|
]),
|
|
2850
2851
|
_: 1
|
|
2851
2852
|
}, 8, ["modelValue"])
|
|
2852
2853
|
], 64);
|
|
2853
2854
|
};
|
|
2854
2855
|
}
|
|
2855
|
-
},
|
|
2856
|
+
}, Jl = { class: "right-content" }, Wl = {
|
|
2856
2857
|
key: 0,
|
|
2857
2858
|
class: "right-item"
|
|
2858
|
-
},
|
|
2859
|
+
}, Ql = {
|
|
2859
2860
|
class: "right-item-button",
|
|
2860
2861
|
style: { padding: "0" }
|
|
2861
|
-
},
|
|
2862
|
+
}, Xl = { class: "user-info" }, Zl = { class: "user-name" }, Yl = /* @__PURE__ */ K({
|
|
2862
2863
|
__name: "Navbar",
|
|
2863
2864
|
setup(e) {
|
|
2864
|
-
const t = Y(), n = V(), o =
|
|
2865
|
-
|
|
2866
|
-
const l =
|
|
2867
|
-
|
|
2868
|
-
const
|
|
2869
|
-
const
|
|
2870
|
-
return
|
|
2865
|
+
const t = Y(), n = V(), o = j();
|
|
2866
|
+
I(!1);
|
|
2867
|
+
const l = I(!1);
|
|
2868
|
+
I(""), I(0);
|
|
2869
|
+
const s = k(() => n.defaultAvatar), a = k(() => t.sidebar), c = k(() => t.device), d = k(() => o.avatar), f = k(() => o.name), p = k(() => o.nickname), g = k(() => n.nav), w = k(() => n), y = k(() => o), T = k(() => n.showPageJsonSchema || !1), { isDark: B, toggleTheme: b } = Ut(), E = k(() => {
|
|
2870
|
+
const D = w.value.envColor?.[y.value.env];
|
|
2871
|
+
return B.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,110 +2882,113 @@ 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") && an(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
|
-
}),
|
|
2894
|
-
elRef:
|
|
2895
|
-
waterMark:
|
|
2893
|
+
onClose: sn
|
|
2894
|
+
}), w.value.envColor?.[y.value.env] && Pn({
|
|
2895
|
+
elRef: A.value.$el,
|
|
2896
|
+
waterMark: y.value.env,
|
|
2896
2897
|
color: "skyblue",
|
|
2897
2898
|
size: "20"
|
|
2898
2899
|
});
|
|
2899
2900
|
});
|
|
2900
|
-
const
|
|
2901
|
-
|
|
2902
|
-
|
|
2901
|
+
const A = I(), Q = I(""), S = I(!1);
|
|
2902
|
+
be([d, s], () => {
|
|
2903
|
+
S.value = !1, Q.value = d.value || s.value || "";
|
|
2903
2904
|
}, { immediate: !0 });
|
|
2904
|
-
const
|
|
2905
|
-
const
|
|
2906
|
-
return
|
|
2905
|
+
const q = k(() => {
|
|
2906
|
+
const D = p.value || f.value || n.title || "用户";
|
|
2907
|
+
return D ? D.toString().trim().charAt(0).toUpperCase() : "用";
|
|
2907
2908
|
});
|
|
2908
|
-
function
|
|
2909
|
+
function z() {
|
|
2909
2910
|
t.toggleSideBar();
|
|
2910
2911
|
}
|
|
2911
|
-
async function
|
|
2912
|
+
async function ln() {
|
|
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 sn() {
|
|
2921
|
+
n.updateSettings({ closeNavNotice: !0 }), rn(Oe("navBarNotice"));
|
|
2921
2922
|
}
|
|
2922
|
-
function
|
|
2923
|
-
const
|
|
2924
|
-
return
|
|
2923
|
+
function an(D) {
|
|
2924
|
+
const N = "dismiss:navbar_notice";
|
|
2925
|
+
return ke.exist(N) ? ke.get(N) !== D : !0;
|
|
2925
2926
|
}
|
|
2926
|
-
function
|
|
2927
|
-
|
|
2927
|
+
function rn(D) {
|
|
2928
|
+
ke.set("dismiss:navbar_notice", D);
|
|
2928
2929
|
}
|
|
2929
|
-
function
|
|
2930
|
-
|
|
2930
|
+
function cn() {
|
|
2931
|
+
S.value || (S.value = !0, Q.value = "");
|
|
2931
2932
|
}
|
|
2932
|
-
return (
|
|
2933
|
-
const
|
|
2934
|
-
return i(), h(
|
|
2933
|
+
return (D, N) => {
|
|
2934
|
+
const at = Be, un = to, dn = Pt, pn = oo, it = so, fn = lo, mn = no, hn = Rt, bn = ye;
|
|
2935
|
+
return i(), h(bn, {
|
|
2935
2936
|
ref_key: "header",
|
|
2936
|
-
ref:
|
|
2937
|
+
ref: A,
|
|
2937
2938
|
class: "navbar",
|
|
2938
|
-
style:
|
|
2939
|
+
style: gn(E.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(ll, {
|
|
2945
|
+
"is-active": a.value.opened,
|
|
2945
2946
|
class: "hamburger-container",
|
|
2946
|
-
onToggleClick:
|
|
2947
|
+
onToggleClick: z
|
|
2947
2948
|
}, null, 8, ["is-active"]),
|
|
2948
|
-
|
|
2949
|
+
c.value !== "mobile" ? (i(), h(tl, {
|
|
2950
|
+
key: 0,
|
|
2951
|
+
class: "breadcrumb-container"
|
|
2952
|
+
})) : $("", !0)
|
|
2949
2953
|
]),
|
|
2950
2954
|
_: 1
|
|
2951
2955
|
}),
|
|
2952
|
-
u(
|
|
2956
|
+
u(at, { span: 8 }, {
|
|
2953
2957
|
default: r(() => [
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
u(
|
|
2957
|
-
])) :
|
|
2958
|
-
|
|
2959
|
-
u(m(et), { buttons:
|
|
2958
|
+
v("div", Jl, [
|
|
2959
|
+
T.value ? (i(), _("div", Wl, [
|
|
2960
|
+
u(zl)
|
|
2961
|
+
])) : $("", !0),
|
|
2962
|
+
v("div", Ql, [
|
|
2963
|
+
u(m(et), { buttons: g.value }, null, 8, ["buttons"])
|
|
2960
2964
|
]),
|
|
2961
|
-
u(
|
|
2965
|
+
u(dn, {
|
|
2962
2966
|
placement: "bottom",
|
|
2963
|
-
content: m(
|
|
2967
|
+
content: m(B) ? "切换为明亮模式" : "切换为暗黑模式"
|
|
2964
2968
|
}, {
|
|
2965
2969
|
default: r(() => [
|
|
2966
|
-
|
|
2970
|
+
v("div", {
|
|
2967
2971
|
class: "right-item theme-toggle",
|
|
2968
2972
|
role: "button",
|
|
2969
2973
|
tabindex: "0",
|
|
2970
|
-
onClick:
|
|
2971
|
-
(...
|
|
2974
|
+
onClick: N[0] || (N[0] = //@ts-ignore
|
|
2975
|
+
(...se) => m(b) && m(b)(...se)),
|
|
2972
2976
|
onKeydown: [
|
|
2973
|
-
|
|
2977
|
+
N[1] || (N[1] = rt(ct(
|
|
2974
2978
|
//@ts-ignore
|
|
2975
|
-
(...
|
|
2979
|
+
(...se) => m(b) && m(b)(...se),
|
|
2976
2980
|
["prevent"]
|
|
2977
2981
|
), ["enter"])),
|
|
2978
|
-
|
|
2982
|
+
N[2] || (N[2] = rt(ct(
|
|
2979
2983
|
//@ts-ignore
|
|
2980
|
-
(...
|
|
2984
|
+
(...se) => m(b) && m(b)(...se),
|
|
2981
2985
|
["prevent"]
|
|
2982
2986
|
), ["space"]))
|
|
2983
2987
|
]
|
|
2984
2988
|
}, [
|
|
2985
|
-
u(
|
|
2989
|
+
u(un, null, {
|
|
2986
2990
|
default: r(() => [
|
|
2987
|
-
(i(), h(
|
|
2991
|
+
(i(), h(Ke(m(B) ? m(ko) : m(So))))
|
|
2988
2992
|
]),
|
|
2989
2993
|
_: 1
|
|
2990
2994
|
})
|
|
@@ -2992,29 +2996,29 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
2992
2996
|
]),
|
|
2993
2997
|
_: 1
|
|
2994
2998
|
}, 8, ["content"]),
|
|
2995
|
-
u(
|
|
2999
|
+
u(mn, {
|
|
2996
3000
|
class: "right-item",
|
|
2997
3001
|
trigger: "click"
|
|
2998
3002
|
}, {
|
|
2999
3003
|
dropdown: r(() => [
|
|
3000
|
-
u(
|
|
3004
|
+
u(fn, { class: "user-dropdown" }, {
|
|
3001
3005
|
default: r(() => [
|
|
3002
3006
|
u(it, {
|
|
3003
3007
|
icon: "oms-icon-index",
|
|
3004
|
-
onClick:
|
|
3008
|
+
onClick: N[3] || (N[3] = (se) => D.$router.push("/"))
|
|
3005
3009
|
}, {
|
|
3006
|
-
default: r(() => [...
|
|
3007
|
-
|
|
3010
|
+
default: r(() => [...N[4] || (N[4] = [
|
|
3011
|
+
C("首页", -1)
|
|
3008
3012
|
])]),
|
|
3009
3013
|
_: 1
|
|
3010
3014
|
}),
|
|
3011
3015
|
u(it, {
|
|
3012
3016
|
divided: "",
|
|
3013
3017
|
icon: "el-icon-switch-button",
|
|
3014
|
-
onClick:
|
|
3018
|
+
onClick: ln
|
|
3015
3019
|
}, {
|
|
3016
|
-
default: r(() => [...
|
|
3017
|
-
|
|
3020
|
+
default: r(() => [...N[5] || (N[5] = [
|
|
3021
|
+
C("退出登录", -1)
|
|
3018
3022
|
])]),
|
|
3019
3023
|
_: 1
|
|
3020
3024
|
})
|
|
@@ -3023,19 +3027,19 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3023
3027
|
})
|
|
3024
3028
|
]),
|
|
3025
3029
|
default: r(() => [
|
|
3026
|
-
|
|
3027
|
-
u(
|
|
3030
|
+
v("div", Xl, [
|
|
3031
|
+
u(pn, {
|
|
3028
3032
|
class: "user-avatar",
|
|
3029
3033
|
size: 32,
|
|
3030
|
-
src:
|
|
3031
|
-
onError:
|
|
3034
|
+
src: Q.value || void 0,
|
|
3035
|
+
onError: cn
|
|
3032
3036
|
}, {
|
|
3033
3037
|
default: r(() => [
|
|
3034
|
-
|
|
3038
|
+
C(R(q.value), 1)
|
|
3035
3039
|
]),
|
|
3036
3040
|
_: 1
|
|
3037
3041
|
}, 8, ["src"]),
|
|
3038
|
-
|
|
3042
|
+
v("span", Zl, R(p.value || f.value), 1)
|
|
3039
3043
|
])
|
|
3040
3044
|
]),
|
|
3041
3045
|
_: 1
|
|
@@ -3044,52 +3048,52 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3044
3048
|
]),
|
|
3045
3049
|
_: 1
|
|
3046
3050
|
}),
|
|
3047
|
-
l.value ? (i(), h(
|
|
3051
|
+
l.value ? (i(), h(hn, {
|
|
3048
3052
|
key: 0,
|
|
3049
3053
|
"with-header": !1,
|
|
3050
3054
|
size: "50%"
|
|
3051
|
-
})) :
|
|
3055
|
+
})) : $("", !0)
|
|
3052
3056
|
]),
|
|
3053
3057
|
_: 1
|
|
3054
3058
|
}, 8, ["style"]);
|
|
3055
3059
|
};
|
|
3056
3060
|
}
|
|
3057
|
-
}),
|
|
3061
|
+
}), es = /* @__PURE__ */ P(Yl, [["__scopeId", "data-v-c2dc5c82"]]), ts = { class: "sidebar-logo-fallback" }, ns = {
|
|
3058
3062
|
key: 1,
|
|
3059
3063
|
class: "sidebar-logo-fallback"
|
|
3060
|
-
},
|
|
3064
|
+
}, os = { class: "sidebar-logo-fallback" }, ls = {
|
|
3061
3065
|
key: 1,
|
|
3062
3066
|
class: "sidebar-logo-fallback"
|
|
3063
|
-
},
|
|
3067
|
+
}, ss = { class: "sidebar-title" }, as = /* @__PURE__ */ K({
|
|
3064
3068
|
__name: "Logo",
|
|
3065
3069
|
props: {
|
|
3066
3070
|
collapse: { type: Boolean }
|
|
3067
3071
|
},
|
|
3068
3072
|
setup(e) {
|
|
3069
|
-
const t = V(), n = k(() => t.title), o = k(() => t.logo), l =
|
|
3073
|
+
const t = V(), n = k(() => t.title), o = k(() => t.logo), l = I(!1), s = k(() => !!o.value && !l.value), a = k(() => {
|
|
3070
3074
|
const d = n.value || "OMS";
|
|
3071
3075
|
return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
|
|
3072
3076
|
});
|
|
3073
|
-
|
|
3077
|
+
be(o, () => {
|
|
3074
3078
|
l.value = !1;
|
|
3075
3079
|
}, { immediate: !0 });
|
|
3076
3080
|
function c() {
|
|
3077
3081
|
l.value = !0;
|
|
3078
3082
|
}
|
|
3079
|
-
return (d,
|
|
3080
|
-
const
|
|
3083
|
+
return (d, f) => {
|
|
3084
|
+
const p = ao, g = L("router-link");
|
|
3081
3085
|
return i(), _("div", {
|
|
3082
|
-
class: ee(["sidebar-logo-container", { collapse:
|
|
3086
|
+
class: ee(["sidebar-logo-container", { collapse: e.collapse }])
|
|
3083
3087
|
}, [
|
|
3084
|
-
u(
|
|
3088
|
+
u(kn, { name: "sidebarLogoFade" }, {
|
|
3085
3089
|
default: r(() => [
|
|
3086
|
-
|
|
3090
|
+
e.collapse ? (i(), h(g, {
|
|
3087
3091
|
key: "collapse",
|
|
3088
3092
|
class: "sidebar-logo-link",
|
|
3089
3093
|
to: "/"
|
|
3090
3094
|
}, {
|
|
3091
3095
|
default: r(() => [
|
|
3092
|
-
|
|
3096
|
+
s.value ? (i(), h(p, {
|
|
3093
3097
|
key: 0,
|
|
3094
3098
|
src: o.value || "",
|
|
3095
3099
|
fit: "contain",
|
|
@@ -3097,20 +3101,20 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3097
3101
|
onError: c
|
|
3098
3102
|
}, {
|
|
3099
3103
|
error: r(() => [
|
|
3100
|
-
|
|
3104
|
+
v("div", ts, R(a.value), 1)
|
|
3101
3105
|
]),
|
|
3102
3106
|
_: 1
|
|
3103
|
-
}, 8, ["src"])) : (i(), _("div",
|
|
3104
|
-
|
|
3107
|
+
}, 8, ["src"])) : (i(), _("div", ns, R(a.value), 1)),
|
|
3108
|
+
f[0] || (f[0] = v("div", { class: "sidebar-subtitle" }, "系统", -1))
|
|
3105
3109
|
]),
|
|
3106
3110
|
_: 1
|
|
3107
|
-
})) : (i(), h(
|
|
3111
|
+
})) : (i(), h(g, {
|
|
3108
3112
|
key: "expand",
|
|
3109
3113
|
class: "sidebar-logo-link",
|
|
3110
3114
|
to: "/"
|
|
3111
3115
|
}, {
|
|
3112
3116
|
default: r(() => [
|
|
3113
|
-
|
|
3117
|
+
s.value ? (i(), h(p, {
|
|
3114
3118
|
key: 0,
|
|
3115
3119
|
src: o.value || "",
|
|
3116
3120
|
fit: "contain",
|
|
@@ -3118,11 +3122,11 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3118
3122
|
onError: c
|
|
3119
3123
|
}, {
|
|
3120
3124
|
error: r(() => [
|
|
3121
|
-
|
|
3125
|
+
v("div", os, R(a.value), 1)
|
|
3122
3126
|
]),
|
|
3123
3127
|
_: 1
|
|
3124
|
-
}, 8, ["src"])) : (i(), _("div",
|
|
3125
|
-
|
|
3128
|
+
}, 8, ["src"])) : (i(), _("div", ls, R(a.value), 1)),
|
|
3129
|
+
v("h1", ss, R(n.value), 1)
|
|
3126
3130
|
]),
|
|
3127
3131
|
_: 1
|
|
3128
3132
|
}))
|
|
@@ -3132,7 +3136,7 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3132
3136
|
], 2);
|
|
3133
3137
|
};
|
|
3134
3138
|
}
|
|
3135
|
-
}),
|
|
3139
|
+
}), is = /* @__PURE__ */ P(as, [["__scopeId", "data-v-d170b6a7"]]), rs = {
|
|
3136
3140
|
props: {
|
|
3137
3141
|
to: {
|
|
3138
3142
|
type: String,
|
|
@@ -3165,15 +3169,15 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
|
|
|
3165
3169
|
}
|
|
3166
3170
|
}
|
|
3167
3171
|
};
|
|
3168
|
-
function
|
|
3169
|
-
return i(), h(
|
|
3172
|
+
function cs(e, t, n, o, l, s) {
|
|
3173
|
+
return i(), h(Ke(s.compType(n.to)), Z(re(s.linkProps(n.to))), {
|
|
3170
3174
|
default: r(() => [
|
|
3171
3175
|
de(e.$slots, "default")
|
|
3172
3176
|
]),
|
|
3173
3177
|
_: 3
|
|
3174
3178
|
}, 16);
|
|
3175
3179
|
}
|
|
3176
|
-
const
|
|
3180
|
+
const us = /* @__PURE__ */ P(rs, [["render", cs]]), ds = {
|
|
3177
3181
|
computed: {
|
|
3178
3182
|
// @ts-ignore
|
|
3179
3183
|
device() {
|
|
@@ -3194,7 +3198,7 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
|
|
|
3194
3198
|
}
|
|
3195
3199
|
}
|
|
3196
3200
|
}
|
|
3197
|
-
},
|
|
3201
|
+
}, ps = { class: "menu-content" }, fs = /* @__PURE__ */ K({
|
|
3198
3202
|
__name: "MenuContent",
|
|
3199
3203
|
props: {
|
|
3200
3204
|
meta: {
|
|
@@ -3208,21 +3212,21 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
|
|
|
3208
3212
|
setup(e) {
|
|
3209
3213
|
return (t, n) => {
|
|
3210
3214
|
const o = L("VIcon");
|
|
3211
|
-
return i(), _(
|
|
3215
|
+
return i(), _(O, null, [
|
|
3212
3216
|
u(o, {
|
|
3213
3217
|
name: e.meta.icon || "ra-all"
|
|
3214
3218
|
}, null, 8, ["name"]),
|
|
3215
|
-
|
|
3219
|
+
v("span", ps, R(e.meta.title), 1)
|
|
3216
3220
|
], 64);
|
|
3217
3221
|
};
|
|
3218
3222
|
}
|
|
3219
|
-
}),
|
|
3223
|
+
}), ms = {
|
|
3220
3224
|
name: "SidebarItem",
|
|
3221
3225
|
components: {
|
|
3222
|
-
AppLink:
|
|
3223
|
-
MenuContent:
|
|
3226
|
+
AppLink: us,
|
|
3227
|
+
MenuContent: fs
|
|
3224
3228
|
},
|
|
3225
|
-
mixins: [
|
|
3229
|
+
mixins: [ds],
|
|
3226
3230
|
props: {
|
|
3227
3231
|
// route object
|
|
3228
3232
|
item: {
|
|
@@ -3244,7 +3248,7 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
|
|
|
3244
3248
|
},
|
|
3245
3249
|
methods: {
|
|
3246
3250
|
itemClick() {
|
|
3247
|
-
|
|
3251
|
+
ke.remove("table_filter:" + this.$props.to);
|
|
3248
3252
|
},
|
|
3249
3253
|
getTo(e) {
|
|
3250
3254
|
try {
|
|
@@ -3254,14 +3258,14 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
|
|
|
3254
3258
|
}
|
|
3255
3259
|
}
|
|
3256
3260
|
}
|
|
3257
|
-
},
|
|
3261
|
+
}, hs = {
|
|
3258
3262
|
key: 0,
|
|
3259
3263
|
class: "menu-wrapper"
|
|
3260
3264
|
};
|
|
3261
|
-
function
|
|
3262
|
-
const
|
|
3263
|
-
return n.item.hidden !== !1 ? (i(), _("div",
|
|
3264
|
-
n.item.meta && n.item.meta.menuType === 2 ? (i(), h(
|
|
3265
|
+
function bs(e, t, n, o, l, s) {
|
|
3266
|
+
const a = L("menu-content"), c = io, d = L("app-link"), f = Pt, p = L("sidebar-item", !0), g = ro;
|
|
3267
|
+
return n.item.hidden !== !1 ? (i(), _("div", hs, [
|
|
3268
|
+
n.item.meta && n.item.meta.menuType === 2 ? (i(), h(f, {
|
|
3265
3269
|
key: 0,
|
|
3266
3270
|
disabled: !n.isCollapse,
|
|
3267
3271
|
effect: "dark",
|
|
@@ -3278,10 +3282,10 @@ function ua(e, t, n, o, l, a) {
|
|
|
3278
3282
|
u(c, {
|
|
3279
3283
|
index: n.to,
|
|
3280
3284
|
class: ee({ "submenu-title-noDropdown": !n.isNest }),
|
|
3281
|
-
onClick:
|
|
3285
|
+
onClick: s.itemClick
|
|
3282
3286
|
}, {
|
|
3283
3287
|
default: r(() => [
|
|
3284
|
-
u(
|
|
3288
|
+
u(a, {
|
|
3285
3289
|
meta: n.item.meta
|
|
3286
3290
|
}, null, 8, ["meta"])
|
|
3287
3291
|
]),
|
|
@@ -3289,10 +3293,10 @@ function ua(e, t, n, o, l, a) {
|
|
|
3289
3293
|
}, 8, ["index", "class", "onClick"])
|
|
3290
3294
|
]),
|
|
3291
3295
|
_: 1
|
|
3292
|
-
}, 8, ["to", "new-tab"])) :
|
|
3296
|
+
}, 8, ["to", "new-tab"])) : $("", !0)
|
|
3293
3297
|
]),
|
|
3294
3298
|
_: 1
|
|
3295
|
-
}, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(
|
|
3299
|
+
}, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(f, {
|
|
3296
3300
|
key: 1,
|
|
3297
3301
|
disabled: !n.isCollapse,
|
|
3298
3302
|
effect: "dark",
|
|
@@ -3300,7 +3304,7 @@ function ua(e, t, n, o, l, a) {
|
|
|
3300
3304
|
content: n.item.meta?.title
|
|
3301
3305
|
}, {
|
|
3302
3306
|
default: r(() => [
|
|
3303
|
-
u(
|
|
3307
|
+
u(g, {
|
|
3304
3308
|
ref: "subMenu",
|
|
3305
3309
|
index: n.to,
|
|
3306
3310
|
class: ee({ "submenu-title-noDropdown": !n.isNest })
|
|
@@ -3311,22 +3315,22 @@ function ua(e, t, n, o, l, a) {
|
|
|
3311
3315
|
to: n.to
|
|
3312
3316
|
}, {
|
|
3313
3317
|
default: r(() => [
|
|
3314
|
-
u(
|
|
3318
|
+
u(a, {
|
|
3315
3319
|
meta: n.item.meta
|
|
3316
3320
|
}, null, 8, ["meta"])
|
|
3317
3321
|
]),
|
|
3318
3322
|
_: 1
|
|
3319
|
-
}, 8, ["to"])) : (i(), h(
|
|
3323
|
+
}, 8, ["to"])) : (i(), h(a, {
|
|
3320
3324
|
key: 1,
|
|
3321
3325
|
meta: n.item.meta
|
|
3322
3326
|
}, null, 8, ["meta"]))
|
|
3323
3327
|
]),
|
|
3324
3328
|
default: r(() => [
|
|
3325
|
-
(i(!0), _(
|
|
3329
|
+
(i(!0), _(O, null, U(n.item.children, (w) => (i(), h(p, {
|
|
3326
3330
|
key: w.path,
|
|
3327
3331
|
"is-nest": !0,
|
|
3328
3332
|
item: w,
|
|
3329
|
-
to:
|
|
3333
|
+
to: s.getTo(w),
|
|
3330
3334
|
class: "nest-menu"
|
|
3331
3335
|
}, null, 8, ["item", "to"]))), 128))
|
|
3332
3336
|
]),
|
|
@@ -3334,69 +3338,69 @@ function ua(e, t, n, o, l, a) {
|
|
|
3334
3338
|
}, 8, ["index", "class"])
|
|
3335
3339
|
]),
|
|
3336
3340
|
_: 1
|
|
3337
|
-
}, 8, ["disabled", "content"])) :
|
|
3338
|
-
])) :
|
|
3341
|
+
}, 8, ["disabled", "content"])) : $("", !0)
|
|
3342
|
+
])) : $("", !0);
|
|
3339
3343
|
}
|
|
3340
|
-
const
|
|
3344
|
+
const ys = /* @__PURE__ */ P(ms, [["render", bs]]), _s = /* @__PURE__ */ K({
|
|
3341
3345
|
__name: "SearchMenu",
|
|
3342
3346
|
setup(e) {
|
|
3343
|
-
const t =
|
|
3344
|
-
function n(
|
|
3345
|
-
return
|
|
3347
|
+
const t = j();
|
|
3348
|
+
function n(f) {
|
|
3349
|
+
return f.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = n(p.children), p.children.length === 0 && delete p.children), !0));
|
|
3346
3350
|
}
|
|
3347
|
-
const o =
|
|
3348
|
-
let
|
|
3349
|
-
return l.value.forEach((
|
|
3350
|
-
|
|
3351
|
-
}), n(
|
|
3351
|
+
const o = I(""), l = k(() => t.remoteRouter), s = Te(), a = k(() => {
|
|
3352
|
+
let f = [];
|
|
3353
|
+
return l.value.forEach((p) => {
|
|
3354
|
+
f = f.concat(x(p.routes));
|
|
3355
|
+
}), n(f);
|
|
3352
3356
|
});
|
|
3353
|
-
function c(
|
|
3354
|
-
let
|
|
3355
|
-
if (
|
|
3356
|
-
for (let
|
|
3357
|
-
if (
|
|
3358
|
-
|
|
3357
|
+
function c(f) {
|
|
3358
|
+
let p = f;
|
|
3359
|
+
if (f.meta.menuType === 1 && f.children && f.children.length > 0) {
|
|
3360
|
+
for (let g = 0; g < f.children.length; g++)
|
|
3361
|
+
if (f.children[g].path.indexOf("/:") === -1) {
|
|
3362
|
+
p = f.children[g];
|
|
3359
3363
|
break;
|
|
3360
3364
|
}
|
|
3361
3365
|
}
|
|
3362
|
-
return
|
|
3366
|
+
return s.resolve(p.redirect ? p.redirect : p).fullPath;
|
|
3363
3367
|
}
|
|
3364
|
-
function d(
|
|
3365
|
-
|
|
3368
|
+
function d(f) {
|
|
3369
|
+
s.push(f), o.value = "";
|
|
3366
3370
|
}
|
|
3367
|
-
return (
|
|
3368
|
-
const
|
|
3369
|
-
return i(), h(
|
|
3371
|
+
return (f, p) => {
|
|
3372
|
+
const g = Qe, w = co, y = We;
|
|
3373
|
+
return i(), h(y, {
|
|
3370
3374
|
modelValue: m(o),
|
|
3371
|
-
"onUpdate:modelValue":
|
|
3375
|
+
"onUpdate:modelValue": p[0] || (p[0] = (T) => Ge(o) ? o.value = T : null),
|
|
3372
3376
|
filterable: "",
|
|
3373
3377
|
placeholder: "搜索菜单...",
|
|
3374
3378
|
class: "search-menu",
|
|
3375
3379
|
onChange: d
|
|
3376
3380
|
}, {
|
|
3377
3381
|
default: r(() => [
|
|
3378
|
-
(i(!0), _(
|
|
3382
|
+
(i(!0), _(O, null, U(m(a), (T) => (i(), _(O, {
|
|
3379
3383
|
key: T.path
|
|
3380
3384
|
}, [
|
|
3381
|
-
T.children !== void 0 ? (i(), _(
|
|
3385
|
+
T.children !== void 0 ? (i(), _(O, { key: 0 }, [
|
|
3382
3386
|
T.meta.menuType !== 0 ? (i(), h(w, {
|
|
3383
3387
|
key: T.path + "-",
|
|
3384
3388
|
label: T.meta.title
|
|
3385
3389
|
}, {
|
|
3386
3390
|
default: r(() => [
|
|
3387
|
-
(i(!0), _(
|
|
3388
|
-
key:
|
|
3391
|
+
(i(!0), _(O, null, U(T.children, (B, b) => (i(), _(O, {
|
|
3392
|
+
key: B.path
|
|
3389
3393
|
}, [
|
|
3390
|
-
T.meta.menuType !== 0 ? (i(), h(
|
|
3394
|
+
T.meta.menuType !== 0 ? (i(), h(g, {
|
|
3391
3395
|
key: 0,
|
|
3392
|
-
label: (b === T.children.length - 1 ? "└─" : "├─") +
|
|
3393
|
-
value: c(
|
|
3394
|
-
}, null, 8, ["label", "value"])) :
|
|
3396
|
+
label: (b === T.children.length - 1 ? "└─" : "├─") + B.meta.title,
|
|
3397
|
+
value: c(B)
|
|
3398
|
+
}, null, 8, ["label", "value"])) : $("", !0)
|
|
3395
3399
|
], 64))), 128))
|
|
3396
3400
|
]),
|
|
3397
3401
|
_: 2
|
|
3398
|
-
}, 1032, ["label"])) :
|
|
3399
|
-
], 64)) : (i(), h(
|
|
3402
|
+
}, 1032, ["label"])) : $("", !0)
|
|
3403
|
+
], 64)) : (i(), h(g, {
|
|
3400
3404
|
key: 1,
|
|
3401
3405
|
label: "" + T.meta.title,
|
|
3402
3406
|
value: c(T)
|
|
@@ -3407,20 +3411,20 @@ const da = /* @__PURE__ */ R(ra, [["render", ua]]), pa = /* @__PURE__ */ z({
|
|
|
3407
3411
|
}, 8, ["modelValue"]);
|
|
3408
3412
|
};
|
|
3409
3413
|
}
|
|
3410
|
-
}),
|
|
3414
|
+
}), vs = /* @__PURE__ */ P(_s, [["__scopeId", "data-v-1821c9c2"]]);
|
|
3411
3415
|
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
|
|
3416
|
+
const gs = /* @__PURE__ */ K({
|
|
3413
3417
|
__name: "index",
|
|
3414
3418
|
setup(e) {
|
|
3415
|
-
const t = Y(), n =
|
|
3419
|
+
const t = Y(), n = j(), o = V(), l = k(() => t.sidebar), s = k(() => n.remoteRouter), a = k(() => n.customRouter), c = Te(), d = W(), f = k(() => {
|
|
3416
3420
|
let b = [];
|
|
3417
|
-
return c.options.routes.concat(
|
|
3421
|
+
return c.options.routes.concat(a.value || []).forEach((E) => {
|
|
3418
3422
|
E.path === "/" ? b = b.concat(E.children || []) : b.push(E);
|
|
3419
3423
|
}), x([
|
|
3420
3424
|
{ label: "", routes: b },
|
|
3421
|
-
...
|
|
3425
|
+
...s.value
|
|
3422
3426
|
]);
|
|
3423
|
-
}),
|
|
3427
|
+
}), p = k(() => {
|
|
3424
3428
|
const b = d.matched;
|
|
3425
3429
|
for (let E = b.length - 1; E >= 0; E--) {
|
|
3426
3430
|
const A = b[E];
|
|
@@ -3428,33 +3432,33 @@ const ma = /* @__PURE__ */ z({
|
|
|
3428
3432
|
return T(), c.resolve(A.redirect ? A.redirect : A).fullPath;
|
|
3429
3433
|
}
|
|
3430
3434
|
return "";
|
|
3431
|
-
}),
|
|
3435
|
+
}), g = k(() => o.sidebarLogo), w = k(() => ({
|
|
3432
3436
|
menuBg: "#304156",
|
|
3433
3437
|
menuText: "#bfcbd9",
|
|
3434
3438
|
menuActiveText: "#409EFF"
|
|
3435
|
-
})),
|
|
3436
|
-
|
|
3439
|
+
})), y = k(() => !l.value.opened);
|
|
3440
|
+
Ie(() => T());
|
|
3437
3441
|
function T() {
|
|
3438
|
-
|
|
3442
|
+
xt("is-active", 200);
|
|
3439
3443
|
}
|
|
3440
|
-
function
|
|
3441
|
-
return b.filter((E) => [G.dir, G.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children =
|
|
3444
|
+
function B(b) {
|
|
3445
|
+
return b.filter((E) => [G.dir, G.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children = B(E.children)), E));
|
|
3442
3446
|
}
|
|
3443
3447
|
return (b, E) => {
|
|
3444
|
-
const A =
|
|
3448
|
+
const A = po, Q = uo;
|
|
3445
3449
|
return i(), _("div", {
|
|
3446
|
-
class: ee({ "has-logo": m(
|
|
3450
|
+
class: ee({ "has-logo": m(g) })
|
|
3447
3451
|
}, [
|
|
3448
|
-
m(
|
|
3452
|
+
m(g) ? (i(), h(is, {
|
|
3449
3453
|
key: 0,
|
|
3450
|
-
collapse: m(
|
|
3451
|
-
}, null, 8, ["collapse"])) :
|
|
3452
|
-
u(
|
|
3454
|
+
collapse: m(y)
|
|
3455
|
+
}, null, 8, ["collapse"])) : $("", !0),
|
|
3456
|
+
u(Q, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3453
3457
|
default: r(() => [
|
|
3454
|
-
m(
|
|
3458
|
+
m(y) ? $("", !0) : (i(), h(vs, { key: 0 })),
|
|
3455
3459
|
u(A, {
|
|
3456
|
-
"default-active": m(
|
|
3457
|
-
collapse: m(
|
|
3460
|
+
"default-active": m(p),
|
|
3461
|
+
collapse: m(y),
|
|
3458
3462
|
"background-color": m(w).menuBg,
|
|
3459
3463
|
"text-color": m(w).menuText,
|
|
3460
3464
|
"unique-opened": !1,
|
|
@@ -3463,14 +3467,14 @@ const ma = /* @__PURE__ */ z({
|
|
|
3463
3467
|
mode: "vertical"
|
|
3464
3468
|
}, {
|
|
3465
3469
|
default: r(() => [
|
|
3466
|
-
(i(!0), _(
|
|
3470
|
+
(i(!0), _(O, null, U(m(f), (S, q) => (i(), _(O, {
|
|
3467
3471
|
key: q + "-module"
|
|
3468
3472
|
}, [
|
|
3469
|
-
(i(!0), _(
|
|
3470
|
-
key:
|
|
3471
|
-
item:
|
|
3472
|
-
to: b.$router.resolve(
|
|
3473
|
-
"is-collapse": m(
|
|
3473
|
+
(i(!0), _(O, null, U(B(S.routes), (z) => (i(), h(ys, {
|
|
3474
|
+
key: z.path,
|
|
3475
|
+
item: z,
|
|
3476
|
+
to: b.$router.resolve(z.redirect ? z.redirect : z).fullPath,
|
|
3477
|
+
"is-collapse": m(y)
|
|
3474
3478
|
}, null, 8, ["item", "to", "is-collapse"]))), 128))
|
|
3475
3479
|
], 64))), 128))
|
|
3476
3480
|
]),
|
|
@@ -3482,149 +3486,151 @@ const ma = /* @__PURE__ */ z({
|
|
|
3482
3486
|
], 2);
|
|
3483
3487
|
};
|
|
3484
3488
|
}
|
|
3485
|
-
}),
|
|
3489
|
+
}), ks = /* @__PURE__ */ P(gs, [["__scopeId", "data-v-3be8fe55"]]), Ss = { class: "app-main" }, ws = {
|
|
3486
3490
|
__name: "AppMain",
|
|
3487
3491
|
setup(e) {
|
|
3488
|
-
const t =
|
|
3489
|
-
return
|
|
3492
|
+
const t = W(), n = [], o = I(0);
|
|
3493
|
+
return Kn(() => {
|
|
3490
3494
|
t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
|
|
3491
|
-
}), (l,
|
|
3492
|
-
const
|
|
3493
|
-
return i(), _("section",
|
|
3494
|
-
(i(), h(
|
|
3495
|
+
}), (l, s) => {
|
|
3496
|
+
const a = L("router-view"), c = fo;
|
|
3497
|
+
return i(), _("section", Ss, [
|
|
3498
|
+
(i(), h(a, {
|
|
3495
3499
|
key: l.$route.fullPath + m(o)
|
|
3496
3500
|
})),
|
|
3497
3501
|
u(c, { bottom: 50 })
|
|
3498
3502
|
]);
|
|
3499
3503
|
};
|
|
3500
3504
|
}
|
|
3501
|
-
},
|
|
3505
|
+
}, xs = /* @__PURE__ */ P(ws, [["__scopeId", "data-v-ca0f0d98"]]), Es = { class: "main-container" }, Is = 992, Cs = {
|
|
3502
3506
|
__name: "index",
|
|
3503
3507
|
setup(e) {
|
|
3504
|
-
const { body: t } = document, n = Y(), o = V(), l = k(() => n.sidebar), a = k(() => n.device),
|
|
3505
|
-
hideSidebar: !
|
|
3506
|
-
openSidebar:
|
|
3507
|
-
withoutAnimation:
|
|
3508
|
+
const { body: t } = document, n = Y(), o = V(), l = W(), s = k(() => n.sidebar), a = k(() => n.device), c = k(() => o.fixedHeader), d = k(() => ({
|
|
3509
|
+
hideSidebar: !s.value.opened,
|
|
3510
|
+
openSidebar: s.value.opened,
|
|
3511
|
+
withoutAnimation: s.value.withoutAnimation,
|
|
3508
3512
|
mobile: a.value === "mobile"
|
|
3509
|
-
})),
|
|
3510
|
-
yo(window, "resize", () => f());
|
|
3511
|
-
const p = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
|
|
3513
|
+
})), f = () => t.getBoundingClientRect().width - 1 < Is, p = () => {
|
|
3512
3514
|
if (!document.hidden) {
|
|
3513
|
-
const
|
|
3514
|
-
n.toggleDevice(
|
|
3515
|
+
const w = f();
|
|
3516
|
+
n.toggleDevice(w ? "mobile" : "desktop"), w && n.closeSideBar({ withoutAnimation: !0 });
|
|
3515
3517
|
}
|
|
3516
3518
|
};
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
+
p(), wo(window, "resize", () => p()), be(l, () => {
|
|
3520
|
+
a.value === "mobile" && s.value.opened && n.closeSideBar({ withoutAnimation: !1 });
|
|
3521
|
+
});
|
|
3522
|
+
const g = () => n.closeSideBar({ withoutAnimation: !1 });
|
|
3523
|
+
return (w, y) => (i(), _("div", {
|
|
3524
|
+
class: ee([m(d), "app-wrapper"])
|
|
3519
3525
|
}, [
|
|
3520
|
-
m(a) === "mobile" && m(
|
|
3526
|
+
m(a) === "mobile" && m(s).opened ? (i(), _("div", {
|
|
3521
3527
|
key: 0,
|
|
3522
3528
|
class: "drawer-bg",
|
|
3523
|
-
onClick:
|
|
3524
|
-
})) :
|
|
3525
|
-
u(m(
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
class: ee({ "fixed-header": m(
|
|
3529
|
+
onClick: g
|
|
3530
|
+
})) : $("", !0),
|
|
3531
|
+
u(m(ks), { class: "sidebar-container" }),
|
|
3532
|
+
v("div", Es, [
|
|
3533
|
+
v("div", {
|
|
3534
|
+
class: ee({ "fixed-header": m(c) })
|
|
3529
3535
|
}, [
|
|
3530
|
-
u(m(
|
|
3536
|
+
u(m(es))
|
|
3531
3537
|
], 2),
|
|
3532
|
-
u(m(
|
|
3538
|
+
u(m(xs))
|
|
3533
3539
|
])
|
|
3534
3540
|
], 2));
|
|
3535
3541
|
}
|
|
3536
|
-
},
|
|
3542
|
+
}, Kt = /* @__PURE__ */ P(Cs, [["__scopeId", "data-v-6bf05d7c"]]), Ts = { id: "login" }, Bs = { id: "form" }, $s = {
|
|
3537
3543
|
key: 0,
|
|
3538
3544
|
class: "captcha"
|
|
3539
|
-
},
|
|
3545
|
+
}, Os = ["src"], As = { class: "tips" }, Rs = { class: "sso" }, Ps = /* @__PURE__ */ K({
|
|
3540
3546
|
__name: "login",
|
|
3541
3547
|
setup(e) {
|
|
3542
|
-
const t =
|
|
3548
|
+
const t = Te(), n = W(), o = V(), l = Y(), s = j(), a = k(() => o.loginTips), c = k(() => o.captcha), d = k(() => l.baseURL), f = I(0), p = I(!1), g = () => f.value++, w = k(() => y.value.username.length > 0 && y.value.password.length >= 4 && (c.value ? y.value.captcha.length === 4 : !0)), y = I({
|
|
3543
3549
|
username: "",
|
|
3544
3550
|
password: "",
|
|
3545
3551
|
captcha: "",
|
|
3546
3552
|
sing: ""
|
|
3547
3553
|
}), T = () => {
|
|
3548
|
-
if (!
|
|
3549
|
-
if (
|
|
3550
|
-
|
|
3554
|
+
if (!p.value) {
|
|
3555
|
+
if (y.value.username === "" || y.value.password === "" || c.value && y.value.captcha === "") {
|
|
3556
|
+
mo.error("用户名, 密码, 验证码是必须的");
|
|
3551
3557
|
return;
|
|
3552
3558
|
}
|
|
3553
|
-
c.value && (
|
|
3559
|
+
c.value && (y.value.sing = Eo.MD5(`${y.value.username}${y.value.password}${y.value.captcha}`).toString()), p.value = !0, s.login(y.value).then((B) => {
|
|
3554
3560
|
t.push({ path: n.query?.redirect || "/" });
|
|
3555
|
-
}).catch((
|
|
3556
|
-
|
|
3561
|
+
}).catch((B) => {
|
|
3562
|
+
f.value++;
|
|
3557
3563
|
}).finally(() => {
|
|
3558
|
-
|
|
3564
|
+
p.value = !1;
|
|
3559
3565
|
});
|
|
3560
3566
|
}
|
|
3561
3567
|
};
|
|
3562
|
-
return (
|
|
3568
|
+
return (B, b) => {
|
|
3563
3569
|
const E = me;
|
|
3564
|
-
return i(), _("div",
|
|
3565
|
-
b[5] || (b[5] =
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
"onUpdate:modelValue": b[0] || (b[0] = (A) => m(
|
|
3570
|
+
return i(), _("div", Ts, [
|
|
3571
|
+
b[5] || (b[5] = v("h1", { id: "title" }, "登录", -1)),
|
|
3572
|
+
v("form", Bs, [
|
|
3573
|
+
ge(v("input", {
|
|
3574
|
+
"onUpdate:modelValue": b[0] || (b[0] = (A) => m(y).username = A),
|
|
3569
3575
|
type: "text",
|
|
3570
3576
|
placeholder: "用户名",
|
|
3571
3577
|
class: "input"
|
|
3572
3578
|
}, null, 512), [
|
|
3573
|
-
[
|
|
3579
|
+
[Ae, m(y).username]
|
|
3574
3580
|
]),
|
|
3575
|
-
|
|
3576
|
-
"onUpdate:modelValue": b[1] || (b[1] = (A) => m(
|
|
3581
|
+
ge(v("input", {
|
|
3582
|
+
"onUpdate:modelValue": b[1] || (b[1] = (A) => m(y).password = A),
|
|
3577
3583
|
type: "password",
|
|
3578
3584
|
placeholder: "密码",
|
|
3579
3585
|
class: "input"
|
|
3580
3586
|
}, null, 512), [
|
|
3581
|
-
[
|
|
3587
|
+
[Ae, m(y).password]
|
|
3582
3588
|
]),
|
|
3583
|
-
c.value ? (i(), _("div",
|
|
3584
|
-
|
|
3585
|
-
"onUpdate:modelValue": b[2] || (b[2] = (A) => m(
|
|
3589
|
+
c.value ? (i(), _("div", $s, [
|
|
3590
|
+
ge(v("input", {
|
|
3591
|
+
"onUpdate:modelValue": b[2] || (b[2] = (A) => m(y).captcha = A),
|
|
3586
3592
|
type: "text",
|
|
3587
3593
|
placeholder: "验证码",
|
|
3588
3594
|
class: "input-captcha"
|
|
3589
3595
|
}, null, 512), [
|
|
3590
|
-
[
|
|
3596
|
+
[Ae, m(y).captcha]
|
|
3591
3597
|
]),
|
|
3592
|
-
|
|
3598
|
+
v("img", {
|
|
3593
3599
|
class: "captcha-img",
|
|
3594
|
-
src: d.value + "/user/captcha?ts=" + m(
|
|
3600
|
+
src: d.value + "/user/captcha?ts=" + m(f),
|
|
3595
3601
|
title: "点击刷新",
|
|
3596
|
-
onClick:
|
|
3597
|
-
}, null, 8,
|
|
3598
|
-
])) :
|
|
3602
|
+
onClick: g
|
|
3603
|
+
}, null, 8, Os)
|
|
3604
|
+
])) : $("", !0),
|
|
3599
3605
|
u(E, {
|
|
3600
3606
|
class: "login-button",
|
|
3601
3607
|
type: "primary",
|
|
3602
|
-
loading: m(
|
|
3608
|
+
loading: m(p),
|
|
3603
3609
|
disabled: !w.value,
|
|
3604
3610
|
onClick: T
|
|
3605
3611
|
}, {
|
|
3606
3612
|
default: r(() => [...b[3] || (b[3] = [
|
|
3607
|
-
|
|
3613
|
+
C("登录", -1)
|
|
3608
3614
|
])]),
|
|
3609
3615
|
_: 1
|
|
3610
3616
|
}, 8, ["loading", "disabled"]),
|
|
3611
|
-
|
|
3612
|
-
|
|
3617
|
+
v("div", As, [
|
|
3618
|
+
v("div", null, R(a.value), 1)
|
|
3613
3619
|
]),
|
|
3614
|
-
|
|
3615
|
-
b[4] || (b[4] =
|
|
3616
|
-
(i(!0), _(
|
|
3620
|
+
v("div", Rs, [
|
|
3621
|
+
b[4] || (b[4] = v("div", { id: "sso-qrcode" }, null, -1)),
|
|
3622
|
+
(i(!0), _(O, null, U(Object.keys([]), (A) => (i(), _("div", { key: A }, R(A), 1))), 128))
|
|
3617
3623
|
])
|
|
3618
3624
|
])
|
|
3619
3625
|
]);
|
|
3620
3626
|
};
|
|
3621
3627
|
}
|
|
3622
|
-
}),
|
|
3628
|
+
}), Ls = {
|
|
3623
3629
|
name: "NotFoundPage"
|
|
3624
|
-
},
|
|
3625
|
-
function
|
|
3626
|
-
return i(), _("div",
|
|
3627
|
-
|
|
3630
|
+
}, Ms = { class: "not-found" };
|
|
3631
|
+
function Ds(e, t, n, o, l, s) {
|
|
3632
|
+
return i(), _("div", Ms, [...t[0] || (t[0] = [
|
|
3633
|
+
v("svg", {
|
|
3628
3634
|
width: "380px",
|
|
3629
3635
|
height: "500px",
|
|
3630
3636
|
viewBox: "0 0 837 1045",
|
|
@@ -3633,7 +3639,7 @@ function $a(e, t, n, o, l, a) {
|
|
|
3633
3639
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3634
3640
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
3635
3641
|
}, [
|
|
3636
|
-
|
|
3642
|
+
v("g", {
|
|
3637
3643
|
id: "Page-1",
|
|
3638
3644
|
stroke: "none",
|
|
3639
3645
|
"stroke-width": "1",
|
|
@@ -3641,35 +3647,35 @@ function $a(e, t, n, o, l, a) {
|
|
|
3641
3647
|
"fill-rule": "evenodd",
|
|
3642
3648
|
"sketch:type": "MSPage"
|
|
3643
3649
|
}, [
|
|
3644
|
-
|
|
3650
|
+
v("path", {
|
|
3645
3651
|
id: "Polygon-1",
|
|
3646
3652
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
3647
3653
|
stroke: "#007FB2",
|
|
3648
3654
|
"stroke-width": "6",
|
|
3649
3655
|
"sketch:type": "MSShapeGroup"
|
|
3650
3656
|
}),
|
|
3651
|
-
|
|
3657
|
+
v("path", {
|
|
3652
3658
|
id: "Polygon-2",
|
|
3653
3659
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
3654
3660
|
stroke: "#EF4A5B",
|
|
3655
3661
|
"stroke-width": "6",
|
|
3656
3662
|
"sketch:type": "MSShapeGroup"
|
|
3657
3663
|
}),
|
|
3658
|
-
|
|
3664
|
+
v("path", {
|
|
3659
3665
|
id: "Polygon-3",
|
|
3660
3666
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
3661
3667
|
stroke: "#795D9C",
|
|
3662
3668
|
"stroke-width": "6",
|
|
3663
3669
|
"sketch:type": "MSShapeGroup"
|
|
3664
3670
|
}),
|
|
3665
|
-
|
|
3671
|
+
v("path", {
|
|
3666
3672
|
id: "Polygon-4",
|
|
3667
3673
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
3668
3674
|
stroke: "#F2773F",
|
|
3669
3675
|
"stroke-width": "6",
|
|
3670
3676
|
"sketch:type": "MSShapeGroup"
|
|
3671
3677
|
}),
|
|
3672
|
-
|
|
3678
|
+
v("path", {
|
|
3673
3679
|
id: "Polygon-5",
|
|
3674
3680
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
3675
3681
|
stroke: "#36B455",
|
|
@@ -3678,12 +3684,12 @@ function $a(e, t, n, o, l, a) {
|
|
|
3678
3684
|
})
|
|
3679
3685
|
])
|
|
3680
3686
|
], -1),
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
+
v("div", { class: "message-box" }, [
|
|
3688
|
+
v("h1", null, "404"),
|
|
3689
|
+
v("p", null, "Page not found"),
|
|
3690
|
+
v("div", { class: "buttons-con" }, [
|
|
3691
|
+
v("div", { class: "action-link-wrap" }, [
|
|
3692
|
+
v("a", {
|
|
3687
3693
|
href: "",
|
|
3688
3694
|
class: "link-button"
|
|
3689
3695
|
}, "Go to Home Page")
|
|
@@ -3692,10 +3698,10 @@ function $a(e, t, n, o, l, a) {
|
|
|
3692
3698
|
], -1)
|
|
3693
3699
|
])]);
|
|
3694
3700
|
}
|
|
3695
|
-
const
|
|
3701
|
+
const js = /* @__PURE__ */ P(Ls, [["render", Ds], ["__scopeId", "data-v-26068803"]]), Ns = [
|
|
3696
3702
|
{
|
|
3697
3703
|
path: "/",
|
|
3698
|
-
component:
|
|
3704
|
+
component: Kt,
|
|
3699
3705
|
redirect: "/dashboard",
|
|
3700
3706
|
name: "Root",
|
|
3701
3707
|
meta: {
|
|
@@ -3705,49 +3711,49 @@ const Aa = /* @__PURE__ */ R(Ba, [["render", $a], ["__scopeId", "data-v-26068803
|
|
|
3705
3711
|
{
|
|
3706
3712
|
path: "dashboard",
|
|
3707
3713
|
name: "Dashboard",
|
|
3708
|
-
component:
|
|
3714
|
+
component: Qo,
|
|
3709
3715
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
3710
3716
|
}
|
|
3711
3717
|
]
|
|
3712
3718
|
},
|
|
3713
3719
|
{
|
|
3714
3720
|
path: "/login",
|
|
3715
|
-
component:
|
|
3721
|
+
component: Ps,
|
|
3716
3722
|
meta: { title: "用户登录", menuType: 0 },
|
|
3717
3723
|
hidden: !0
|
|
3718
3724
|
},
|
|
3719
3725
|
{
|
|
3720
3726
|
path: "/404",
|
|
3721
|
-
component:
|
|
3727
|
+
component: js,
|
|
3722
3728
|
meta: { menuType: 0 },
|
|
3723
3729
|
hidden: !0
|
|
3724
3730
|
}
|
|
3725
|
-
], oe =
|
|
3726
|
-
history:
|
|
3727
|
-
routes:
|
|
3731
|
+
], oe = zn({
|
|
3732
|
+
history: Jn(),
|
|
3733
|
+
routes: Ns
|
|
3728
3734
|
});
|
|
3729
|
-
|
|
3730
|
-
function
|
|
3735
|
+
Ne.configure({ showSpinner: !1 });
|
|
3736
|
+
function Us(e) {
|
|
3731
3737
|
e.beforeEach((t, n, o) => {
|
|
3732
|
-
|
|
3738
|
+
Ne.start(), t.preHash = location.hash.replace("#", ""), o();
|
|
3733
3739
|
}), e.afterEach((t) => {
|
|
3734
|
-
const n =
|
|
3740
|
+
const n = j(M);
|
|
3735
3741
|
t.matched.length > 0 && n.updateState({
|
|
3736
3742
|
key: "path",
|
|
3737
3743
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
3738
|
-
}),
|
|
3744
|
+
}), Ne.done();
|
|
3739
3745
|
});
|
|
3740
3746
|
}
|
|
3741
|
-
function
|
|
3742
|
-
return
|
|
3747
|
+
function Vs() {
|
|
3748
|
+
return j(M).isLodeRemoteRoutes;
|
|
3743
3749
|
}
|
|
3744
|
-
function
|
|
3745
|
-
return V(
|
|
3750
|
+
function zt() {
|
|
3751
|
+
return V(M).whiteRoutes || [];
|
|
3746
3752
|
}
|
|
3747
|
-
function
|
|
3748
|
-
return
|
|
3753
|
+
function qs() {
|
|
3754
|
+
return j(M).token;
|
|
3749
3755
|
}
|
|
3750
|
-
class
|
|
3756
|
+
class Jt {
|
|
3751
3757
|
type = "qrcode";
|
|
3752
3758
|
flag() {
|
|
3753
3759
|
}
|
|
@@ -3757,14 +3763,14 @@ class Gt {
|
|
|
3757
3763
|
showQrCode() {
|
|
3758
3764
|
}
|
|
3759
3765
|
}
|
|
3760
|
-
class
|
|
3766
|
+
class cr extends Jt {
|
|
3761
3767
|
type = "jump";
|
|
3762
3768
|
client_id = "";
|
|
3763
3769
|
constructor(t) {
|
|
3764
3770
|
super(), this.client_id = t.client_id;
|
|
3765
3771
|
}
|
|
3766
3772
|
flag() {
|
|
3767
|
-
const t =
|
|
3773
|
+
const t = Et("code");
|
|
3768
3774
|
if (t)
|
|
3769
3775
|
return {
|
|
3770
3776
|
ticket: t,
|
|
@@ -3776,7 +3782,7 @@ class or extends Gt {
|
|
|
3776
3782
|
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
|
|
3777
3783
|
}
|
|
3778
3784
|
}
|
|
3779
|
-
class
|
|
3785
|
+
class ur extends Jt {
|
|
3780
3786
|
type = "qrcode";
|
|
3781
3787
|
qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
3782
3788
|
reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
@@ -3789,7 +3795,7 @@ class lr extends Gt {
|
|
|
3789
3795
|
super();
|
|
3790
3796
|
}
|
|
3791
3797
|
flag() {
|
|
3792
|
-
const t =
|
|
3798
|
+
const t = Et("code");
|
|
3793
3799
|
if (t)
|
|
3794
3800
|
return {
|
|
3795
3801
|
ticket: t,
|
|
@@ -3798,67 +3804,67 @@ class lr extends Gt {
|
|
|
3798
3804
|
}
|
|
3799
3805
|
showQrCode() {
|
|
3800
3806
|
const t = (l) => {
|
|
3801
|
-
const
|
|
3807
|
+
const s = {
|
|
3802
3808
|
appid: this.appid,
|
|
3803
3809
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
3804
3810
|
};
|
|
3805
|
-
return
|
|
3811
|
+
return ae(this.reloadUrl, s) + "&" + Mn(l || {});
|
|
3806
3812
|
}, n = () => {
|
|
3807
3813
|
const l = {
|
|
3808
3814
|
goto: encodeURIComponent(t()),
|
|
3809
3815
|
style: encodeURIComponent(this.style)
|
|
3810
3816
|
};
|
|
3811
|
-
return
|
|
3817
|
+
return ae(this.qrCodeUrl, l);
|
|
3812
3818
|
}, o = (l) => {
|
|
3813
|
-
const { origin:
|
|
3814
|
-
|
|
3819
|
+
const { origin: s, data: a } = l;
|
|
3820
|
+
s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
|
|
3815
3821
|
};
|
|
3816
|
-
this.iframe.src = n(),
|
|
3822
|
+
this.iframe.src = n(), Ln({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
3817
3823
|
"message",
|
|
3818
3824
|
(l) => o(l),
|
|
3819
3825
|
!1
|
|
3820
3826
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
|
|
3821
3827
|
}
|
|
3822
3828
|
}
|
|
3823
|
-
const
|
|
3824
|
-
function
|
|
3825
|
-
return H(V(
|
|
3829
|
+
const Hs = {};
|
|
3830
|
+
function Fs() {
|
|
3831
|
+
return H(V(M).sso || {}, Hs);
|
|
3826
3832
|
}
|
|
3827
|
-
function
|
|
3828
|
-
const e =
|
|
3833
|
+
function Gs() {
|
|
3834
|
+
const e = Fs(), t = V(M).activeSsoKey || "", n = e[t];
|
|
3829
3835
|
if (n !== void 0)
|
|
3830
3836
|
return n();
|
|
3831
3837
|
}
|
|
3832
|
-
function
|
|
3838
|
+
function Ks(e) {
|
|
3833
3839
|
e.beforeEach(async (t, n, o) => {
|
|
3834
|
-
if (
|
|
3840
|
+
if (zt().indexOf(t.path) !== -1) {
|
|
3835
3841
|
o();
|
|
3836
3842
|
return;
|
|
3837
3843
|
}
|
|
3838
|
-
if (
|
|
3844
|
+
if (qs()) {
|
|
3839
3845
|
t.query?.redirect ? o(t.query?.redirect) : o();
|
|
3840
3846
|
return;
|
|
3841
3847
|
}
|
|
3842
|
-
const
|
|
3843
|
-
if (!
|
|
3844
|
-
o(`/login?redirect=${
|
|
3848
|
+
const s = t.query.redirect || t.path, a = Gs();
|
|
3849
|
+
if (!a) {
|
|
3850
|
+
o(`/login?redirect=${s}`);
|
|
3845
3851
|
return;
|
|
3846
3852
|
}
|
|
3847
|
-
const c =
|
|
3848
|
-
if (c && await d.login(
|
|
3853
|
+
const c = a.flag(), d = j(M);
|
|
3854
|
+
if (c && await d.login(Un(c) ? c : { ticket: c })) {
|
|
3849
3855
|
o();
|
|
3850
3856
|
return;
|
|
3851
3857
|
}
|
|
3852
|
-
|
|
3858
|
+
a.jumpToLoginPage(o, `/login?redirect=${s}`);
|
|
3853
3859
|
});
|
|
3854
3860
|
}
|
|
3855
|
-
const
|
|
3856
|
-
function
|
|
3857
|
-
return i(), _("div",
|
|
3858
|
-
|
|
3861
|
+
const zs = {}, Js = { class: "loading preloader" };
|
|
3862
|
+
function Ws(e, t) {
|
|
3863
|
+
return i(), _("div", Js, [...t[0] || (t[0] = [
|
|
3864
|
+
v("div", { class: "preloader-inner" }, null, -1)
|
|
3859
3865
|
])]);
|
|
3860
3866
|
}
|
|
3861
|
-
const
|
|
3867
|
+
const Qs = /* @__PURE__ */ P(zs, [["render", Ws]]), Xs = {
|
|
3862
3868
|
name: "VNotice",
|
|
3863
3869
|
props: {
|
|
3864
3870
|
dataApi: {
|
|
@@ -3887,127 +3893,127 @@ const Fa = /* @__PURE__ */ R(Va, [["render", Ha]]), Ga = {
|
|
|
3887
3893
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
3888
3894
|
}
|
|
3889
3895
|
};
|
|
3890
|
-
function
|
|
3891
|
-
const
|
|
3896
|
+
function Zs(e, t, n, o, l, s) {
|
|
3897
|
+
const a = Xe;
|
|
3892
3898
|
return i(), _("div", null, [
|
|
3893
|
-
l.hasNotice ? (i(), h(
|
|
3899
|
+
l.hasNotice ? (i(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
|
|
3894
3900
|
]);
|
|
3895
3901
|
}
|
|
3896
|
-
const
|
|
3902
|
+
const Ys = /* @__PURE__ */ P(Xs, [["render", Zs]]), ea = ["innerHTML"], ta = /* @__PURE__ */ K({
|
|
3897
3903
|
__name: "PageLoad",
|
|
3898
3904
|
props: {
|
|
3899
3905
|
schemaHandler: { type: Function, default: (e) => e },
|
|
3900
3906
|
schemaApi: { default: "" }
|
|
3901
3907
|
},
|
|
3902
3908
|
setup(e) {
|
|
3903
|
-
const t = e, n = Y(), o = V(), l =
|
|
3909
|
+
const t = e, n = Y(), o = V(), l = j(), s = W(), a = I(!0), c = I(!1), d = I({}), f = I(""), p = I({}), g = I([]), w = I(!1), y = k(() => l.env), T = k(() => o);
|
|
3904
3910
|
return Fe(() => {
|
|
3905
|
-
const
|
|
3911
|
+
const B = s.path.split("/").filter((S) => S), b = B.length > 1 ? B.slice(0, B.length - 1).join("/") : B[0], E = "/schema" + s.meta.path, A = { params: s.params };
|
|
3906
3912
|
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || E, A).then(({ data: S }) => {
|
|
3907
|
-
|
|
3913
|
+
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, f.value = S.notice.noticeApi), delete S.notice), g.value = S.ownerNames || [], w.value = S.serviceOffLine || !1), p.value = t.schemaHandler(S, b), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
|
|
3908
3914
|
});
|
|
3909
|
-
}), (
|
|
3915
|
+
}), (B, b) => {
|
|
3910
3916
|
const E = Xe;
|
|
3911
|
-
return i(), _(
|
|
3912
|
-
m(
|
|
3917
|
+
return i(), _(O, null, [
|
|
3918
|
+
m(g).length > 0 ? (i(), h(E, {
|
|
3913
3919
|
key: 0,
|
|
3914
|
-
title: `该页面功能对应开发: [ ${m(
|
|
3920
|
+
title: `该页面功能对应开发: [ ${m(g).join(", ")} ] 有问题可直接企微反馈`,
|
|
3915
3921
|
type: "info",
|
|
3916
3922
|
style: { margin: "0 0 20px 0" },
|
|
3917
3923
|
closable: !1
|
|
3918
|
-
}, null, 8, ["title"])) :
|
|
3919
|
-
m(
|
|
3924
|
+
}, null, 8, ["title"])) : $("", !0),
|
|
3925
|
+
m(y) === "prod" && m(w) ? (i(), _("div", {
|
|
3920
3926
|
key: 1,
|
|
3921
3927
|
class: "offline-notice",
|
|
3922
3928
|
innerHTML: m(w) === !0 ? m(T).serviceOffLineNotice : m(w)
|
|
3923
|
-
}, null, 8,
|
|
3924
|
-
m(c) ? (i(), h(
|
|
3929
|
+
}, null, 8, ea)) : (i(), _(O, { key: 2 }, [
|
|
3930
|
+
m(c) ? (i(), h(Ys, {
|
|
3925
3931
|
key: 0,
|
|
3926
3932
|
notice: m(d),
|
|
3927
3933
|
style: { margin: "0 0 20px 0" },
|
|
3928
|
-
"data-api": m(
|
|
3929
|
-
}, null, 8, ["notice", "data-api"])) :
|
|
3930
|
-
m(
|
|
3934
|
+
"data-api": m(f)
|
|
3935
|
+
}, null, 8, ["notice", "data-api"])) : $("", !0),
|
|
3936
|
+
m(a) ? (i(), h(Qs, { key: 1 })) : de(B.$slots, "default", Z(X({ key: 2 }, m(p))), void 0, !0)
|
|
3931
3937
|
], 64))
|
|
3932
3938
|
], 64);
|
|
3933
3939
|
};
|
|
3934
3940
|
}
|
|
3935
|
-
}),
|
|
3941
|
+
}), ve = /* @__PURE__ */ P(ta, [["__scopeId", "data-v-e330fdc7"]]), Wt = {
|
|
3936
3942
|
__name: "table",
|
|
3937
3943
|
setup(e) {
|
|
3938
3944
|
const t = (n, o) => {
|
|
3939
3945
|
if (n.orderBy) {
|
|
3940
|
-
const
|
|
3946
|
+
const s = {
|
|
3941
3947
|
prop: n.orderBy.field,
|
|
3942
3948
|
order: n.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
3943
3949
|
};
|
|
3944
|
-
n.tableProps = H(n.tableProps, { defaultSort:
|
|
3950
|
+
n.tableProps = H(n.tableProps, { defaultSort: s });
|
|
3945
3951
|
}
|
|
3946
3952
|
const l = Object.keys(he.props);
|
|
3947
|
-
return Object.keys(n).forEach((
|
|
3948
|
-
l.indexOf(
|
|
3953
|
+
return Object.keys(n).forEach((s) => {
|
|
3954
|
+
l.indexOf(s) === -1 && delete n[s];
|
|
3949
3955
|
}), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
|
|
3950
3956
|
};
|
|
3951
|
-
return (n, o) => (i(), h(
|
|
3957
|
+
return (n, o) => (i(), h(ve, { "schema-handler": t }, {
|
|
3952
3958
|
default: r((l) => [
|
|
3953
|
-
u(m(he),
|
|
3959
|
+
u(m(he), Z(re(l)), null, 16)
|
|
3954
3960
|
]),
|
|
3955
3961
|
_: 1
|
|
3956
3962
|
}));
|
|
3957
3963
|
}
|
|
3958
|
-
},
|
|
3964
|
+
}, qe = {
|
|
3959
3965
|
__name: "form",
|
|
3960
3966
|
setup(e) {
|
|
3961
|
-
const t =
|
|
3962
|
-
const
|
|
3963
|
-
return Object.keys(c).forEach((
|
|
3964
|
-
if (
|
|
3965
|
-
delete c[
|
|
3967
|
+
const t = W(), n = Te(), o = (c, d) => {
|
|
3968
|
+
const f = Object.keys(ne.props);
|
|
3969
|
+
return Object.keys(c).forEach((p) => {
|
|
3970
|
+
if (f.indexOf(p) === -1) {
|
|
3971
|
+
delete c[p];
|
|
3966
3972
|
return;
|
|
3967
3973
|
}
|
|
3968
|
-
/.*Api$/.test(
|
|
3974
|
+
/.*Api$/.test(p) && (c[p] = ae(c[p], t.params));
|
|
3969
3975
|
}), 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
3976
|
saveApi: d + "/save",
|
|
3971
3977
|
afterSubmit: "goback",
|
|
3972
3978
|
afterReset: "goback",
|
|
3973
3979
|
mod: t.params.id ? "edit" : "create"
|
|
3974
3980
|
}, c), c;
|
|
3975
|
-
}, l =
|
|
3976
|
-
|
|
3981
|
+
}, l = I(0), s = () => {
|
|
3982
|
+
tn.request({
|
|
3977
3983
|
url: "/form_mutex",
|
|
3978
3984
|
method: "get",
|
|
3979
3985
|
params: {
|
|
3980
3986
|
path: t.fullPath
|
|
3981
3987
|
}
|
|
3982
3988
|
}).then((c) => {
|
|
3983
|
-
c.data && (clearInterval(l.value),
|
|
3989
|
+
c.data && (clearInterval(l.value), Bt.alert(`${c.data}`, "操作提醒", {
|
|
3984
3990
|
showClose: !1,
|
|
3985
3991
|
showCancelButton: !0,
|
|
3986
3992
|
confirmButtonText: "返回",
|
|
3987
3993
|
cancelButtonText: "刷新",
|
|
3988
3994
|
callback: (d) => {
|
|
3989
|
-
d === "cancel" ? location.reload() :
|
|
3995
|
+
d === "cancel" ? location.reload() : a();
|
|
3990
3996
|
}
|
|
3991
3997
|
}));
|
|
3992
3998
|
});
|
|
3993
3999
|
};
|
|
3994
|
-
|
|
4000
|
+
Ie(() => {
|
|
3995
4001
|
const c = V();
|
|
3996
|
-
t.params.id !== void 0 && c.formMutex && (
|
|
3997
|
-
}),
|
|
4002
|
+
t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
|
|
4003
|
+
}), Sn(() => {
|
|
3998
4004
|
clearInterval(l.value);
|
|
3999
4005
|
});
|
|
4000
|
-
function
|
|
4006
|
+
function a() {
|
|
4001
4007
|
t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
|
|
4002
4008
|
}
|
|
4003
|
-
return (c, d) => (i(), h(
|
|
4004
|
-
default: r((
|
|
4005
|
-
u(m(ne),
|
|
4009
|
+
return (c, d) => (i(), h(ve, { "schema-handler": o }, {
|
|
4010
|
+
default: r((f) => [
|
|
4011
|
+
u(m(ne), Z(re(f)), null, 16)
|
|
4006
4012
|
]),
|
|
4007
4013
|
_: 1
|
|
4008
4014
|
}));
|
|
4009
4015
|
}
|
|
4010
|
-
},
|
|
4016
|
+
}, na = K({
|
|
4011
4017
|
name: "VTree",
|
|
4012
4018
|
components: {
|
|
4013
4019
|
VForm: ne
|
|
@@ -4081,7 +4087,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4081
4087
|
return ["", "新建", "编辑"][this.type];
|
|
4082
4088
|
},
|
|
4083
4089
|
formProps() {
|
|
4084
|
-
let e =
|
|
4090
|
+
let e = ae(this.$props.saveApi, this.formData);
|
|
4085
4091
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4086
4092
|
saveApi: e,
|
|
4087
4093
|
getApi: this.$props.getApi,
|
|
@@ -4106,7 +4112,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4106
4112
|
},
|
|
4107
4113
|
append(e, t) {
|
|
4108
4114
|
this.type = 1;
|
|
4109
|
-
const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1,
|
|
4115
|
+
const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Dn(this.$props.props?.effectData, e) };
|
|
4110
4116
|
e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
|
|
4111
4117
|
},
|
|
4112
4118
|
canAppend(e, t) {
|
|
@@ -4120,7 +4126,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4120
4126
|
remove(e) {
|
|
4121
4127
|
this.$http.request({
|
|
4122
4128
|
method: "DELETE",
|
|
4123
|
-
url:
|
|
4129
|
+
url: ae(this.$props.deleteApi, e)
|
|
4124
4130
|
}).then(({ code: t }) => {
|
|
4125
4131
|
t !== 0 ? this.$message.error("操作失败") : this.loadTree();
|
|
4126
4132
|
});
|
|
@@ -4140,46 +4146,46 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
|
|
|
4140
4146
|
const l = e.data;
|
|
4141
4147
|
l.pid = t.data.id, this.$http.request({
|
|
4142
4148
|
method: "POST",
|
|
4143
|
-
url:
|
|
4149
|
+
url: ae(this.$props.saveApi, l),
|
|
4144
4150
|
data: l
|
|
4145
|
-
}).then(({ code:
|
|
4146
|
-
|
|
4151
|
+
}).then(({ code: s }) => {
|
|
4152
|
+
s !== 0 && this.$message.error("操作失败");
|
|
4147
4153
|
});
|
|
4148
4154
|
}
|
|
4149
4155
|
}
|
|
4150
|
-
}),
|
|
4156
|
+
}), oa = { class: "card-header" }, la = { class: "tree-action" }, sa = { key: 0 }, aa = {
|
|
4151
4157
|
key: 1,
|
|
4152
4158
|
style: { color: "#E6A23C" }
|
|
4153
|
-
},
|
|
4154
|
-
function
|
|
4155
|
-
const
|
|
4156
|
-
return i(), h(
|
|
4159
|
+
}, ia = { class: "card-header" };
|
|
4160
|
+
function ra(e, t, n, o, l, s) {
|
|
4161
|
+
const a = me, c = ho, d = Ze, f = Be, p = L("v-form"), g = ye;
|
|
4162
|
+
return i(), h(g, {
|
|
4157
4163
|
class: "tree-box",
|
|
4158
4164
|
gutter: 20
|
|
4159
4165
|
}, {
|
|
4160
4166
|
default: r(() => [
|
|
4161
|
-
u(
|
|
4167
|
+
u(f, {
|
|
4162
4168
|
span: 8,
|
|
4163
4169
|
class: "tree-tree"
|
|
4164
4170
|
}, {
|
|
4165
4171
|
default: r(() => [
|
|
4166
4172
|
u(d, { shadow: "never" }, {
|
|
4167
4173
|
header: r(() => [
|
|
4168
|
-
|
|
4169
|
-
t[3] || (t[3] =
|
|
4170
|
-
u(
|
|
4174
|
+
v("div", oa, [
|
|
4175
|
+
t[3] || (t[3] = v("span", null, "列表", -1)),
|
|
4176
|
+
u(a, {
|
|
4171
4177
|
type: "text",
|
|
4172
4178
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4173
4179
|
}, {
|
|
4174
4180
|
default: r(() => [...t[2] || (t[2] = [
|
|
4175
|
-
|
|
4181
|
+
C("添加", -1)
|
|
4176
4182
|
])]),
|
|
4177
4183
|
_: 1
|
|
4178
4184
|
})
|
|
4179
4185
|
])
|
|
4180
4186
|
]),
|
|
4181
4187
|
default: r(() => [
|
|
4182
|
-
(e.treeData || []).length > 0 ? (i(), h(c,
|
|
4188
|
+
(e.treeData || []).length > 0 ? (i(), h(c, X({
|
|
4183
4189
|
key: 0,
|
|
4184
4190
|
style: { height: "100vh" },
|
|
4185
4191
|
data: e.treeData,
|
|
@@ -4190,55 +4196,55 @@ function ns(e, t, n, o, l, a) {
|
|
|
4190
4196
|
"allow-drop": e.allowDrop,
|
|
4191
4197
|
onNodeDragEnd: e.handleDragEnd
|
|
4192
4198
|
}), {
|
|
4193
|
-
default: r(({ node: w, data:
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4199
|
+
default: r(({ node: w, data: y }) => [
|
|
4200
|
+
v("span", la, [
|
|
4201
|
+
y[e.localTreeProps.props.label] ? (i(), _("span", sa, R(y[e.localTreeProps.props.label]), 1)) : (i(), _("span", aa, "请在右侧表单中修改 --> ")),
|
|
4202
|
+
v("span", null, [
|
|
4203
|
+
y[e.localTreeProps.props.label] ? (i(), h(a, {
|
|
4198
4204
|
key: 0,
|
|
4199
4205
|
class: "button",
|
|
4200
4206
|
type: "text",
|
|
4201
|
-
onClick: () => e.onclick(
|
|
4207
|
+
onClick: () => e.onclick(y)
|
|
4202
4208
|
}, {
|
|
4203
4209
|
default: r(() => [...t[4] || (t[4] = [
|
|
4204
|
-
|
|
4210
|
+
C("编辑", -1)
|
|
4205
4211
|
])]),
|
|
4206
4212
|
_: 1
|
|
4207
|
-
}, 8, ["onClick"])) :
|
|
4208
|
-
e.canAppend(
|
|
4213
|
+
}, 8, ["onClick"])) : $("", !0),
|
|
4214
|
+
e.canAppend(y, w) ? (i(), h(a, {
|
|
4209
4215
|
key: 1,
|
|
4210
4216
|
class: "button",
|
|
4211
4217
|
type: "text",
|
|
4212
|
-
onClick: () => e.append(
|
|
4218
|
+
onClick: () => e.append(y, w)
|
|
4213
4219
|
}, {
|
|
4214
4220
|
default: r(() => [...t[5] || (t[5] = [
|
|
4215
|
-
|
|
4221
|
+
C("添加", -1)
|
|
4216
4222
|
])]),
|
|
4217
4223
|
_: 1
|
|
4218
|
-
}, 8, ["onClick"])) :
|
|
4219
|
-
|
|
4224
|
+
}, 8, ["onClick"])) : $("", !0),
|
|
4225
|
+
y.children === void 0 || y.children.length === 0 ? (i(), h(a, {
|
|
4220
4226
|
key: 2,
|
|
4221
4227
|
class: "button",
|
|
4222
4228
|
type: "text",
|
|
4223
|
-
onClick: () => e.remove(
|
|
4229
|
+
onClick: () => e.remove(y)
|
|
4224
4230
|
}, {
|
|
4225
4231
|
default: r(() => [...t[6] || (t[6] = [
|
|
4226
|
-
|
|
4232
|
+
C("删除", -1)
|
|
4227
4233
|
])]),
|
|
4228
4234
|
_: 1
|
|
4229
|
-
}, 8, ["onClick"])) :
|
|
4235
|
+
}, 8, ["onClick"])) : $("", !0)
|
|
4230
4236
|
])
|
|
4231
4237
|
])
|
|
4232
4238
|
]),
|
|
4233
4239
|
_: 1
|
|
4234
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4240
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : $("", !0)
|
|
4235
4241
|
]),
|
|
4236
4242
|
_: 1
|
|
4237
4243
|
})
|
|
4238
4244
|
]),
|
|
4239
4245
|
_: 1
|
|
4240
4246
|
}),
|
|
4241
|
-
u(
|
|
4247
|
+
u(f, {
|
|
4242
4248
|
span: 16,
|
|
4243
4249
|
class: "tree-form"
|
|
4244
4250
|
}, {
|
|
@@ -4248,19 +4254,19 @@ function ns(e, t, n, o, l, a) {
|
|
|
4248
4254
|
shadow: "never"
|
|
4249
4255
|
}, {
|
|
4250
4256
|
header: r(() => [
|
|
4251
|
-
|
|
4252
|
-
|
|
4257
|
+
v("div", ia, [
|
|
4258
|
+
v("span", null, R(e.formType), 1)
|
|
4253
4259
|
])
|
|
4254
4260
|
]),
|
|
4255
4261
|
default: r(() => [
|
|
4256
|
-
(i(), h(
|
|
4262
|
+
(i(), h(p, X({
|
|
4257
4263
|
key: e.formkey,
|
|
4258
4264
|
modelValue: e.formData,
|
|
4259
4265
|
"onUpdate:modelValue": t[1] || (t[1] = (w) => e.formData = w)
|
|
4260
4266
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4261
4267
|
]),
|
|
4262
4268
|
_: 1
|
|
4263
|
-
})) :
|
|
4269
|
+
})) : $("", !0)
|
|
4264
4270
|
]),
|
|
4265
4271
|
_: 1
|
|
4266
4272
|
})
|
|
@@ -4268,34 +4274,34 @@ function ns(e, t, n, o, l, a) {
|
|
|
4268
4274
|
_: 1
|
|
4269
4275
|
});
|
|
4270
4276
|
}
|
|
4271
|
-
const
|
|
4277
|
+
const yt = /* @__PURE__ */ P(na, [["render", ra]]), ca = {
|
|
4272
4278
|
__name: "tree",
|
|
4273
4279
|
setup(e) {
|
|
4274
4280
|
const t = (n, o) => {
|
|
4275
|
-
const l = Object.keys(
|
|
4276
|
-
return Object.keys(n).forEach((
|
|
4277
|
-
l.indexOf(
|
|
4281
|
+
const l = Object.keys(yt.props);
|
|
4282
|
+
return Object.keys(n).forEach((s) => {
|
|
4283
|
+
l.indexOf(s) === -1 && delete n[s];
|
|
4278
4284
|
}), n;
|
|
4279
4285
|
};
|
|
4280
|
-
return (n, o) => (i(), h(
|
|
4286
|
+
return (n, o) => (i(), h(ve, { "schema-handler": t }, {
|
|
4281
4287
|
default: r((l) => [
|
|
4282
|
-
u(
|
|
4288
|
+
u(yt, Z(re(l)), null, 16)
|
|
4283
4289
|
]),
|
|
4284
4290
|
_: 1
|
|
4285
4291
|
}));
|
|
4286
4292
|
}
|
|
4287
|
-
},
|
|
4293
|
+
}, je = {
|
|
4288
4294
|
__name: "container",
|
|
4289
4295
|
setup(e) {
|
|
4290
|
-
const t =
|
|
4291
|
-
return
|
|
4296
|
+
const t = I(0);
|
|
4297
|
+
return Wn(() => {
|
|
4292
4298
|
t.value++;
|
|
4293
4299
|
}), (n, o) => {
|
|
4294
4300
|
const l = L("router-view");
|
|
4295
4301
|
return i(), h(l);
|
|
4296
4302
|
};
|
|
4297
4303
|
}
|
|
4298
|
-
},
|
|
4304
|
+
}, ua = {
|
|
4299
4305
|
title: {
|
|
4300
4306
|
text: ""
|
|
4301
4307
|
},
|
|
@@ -4324,34 +4330,34 @@ const bt = /* @__PURE__ */ R(Qa, [["render", ns]]), os = {
|
|
|
4324
4330
|
},
|
|
4325
4331
|
series: []
|
|
4326
4332
|
};
|
|
4327
|
-
function
|
|
4333
|
+
function da(e, t, n) {
|
|
4328
4334
|
if (n.length === 0)
|
|
4329
4335
|
return {};
|
|
4330
|
-
let o = H({},
|
|
4331
|
-
if (o.title.text = e,
|
|
4332
|
-
const l = [],
|
|
4333
|
-
let
|
|
4336
|
+
let o = H({}, ua);
|
|
4337
|
+
if (o.title.text = e, ze(t)) {
|
|
4338
|
+
const l = [], s = Object.keys(n[0]);
|
|
4339
|
+
let a = s[0], c = s.filter((f, p) => p > 0), d = t;
|
|
4334
4340
|
if (t.indexOf(":") > -1) {
|
|
4335
|
-
const
|
|
4336
|
-
d =
|
|
4341
|
+
const f = t.split(":"), p = f[1].split(",");
|
|
4342
|
+
d = f[0], a = p[0], c = p.filter((g, w) => w > 0);
|
|
4337
4343
|
}
|
|
4338
|
-
c.forEach((
|
|
4339
|
-
const
|
|
4340
|
-
n.forEach((
|
|
4341
|
-
|
|
4344
|
+
c.forEach((f) => {
|
|
4345
|
+
const p = [];
|
|
4346
|
+
n.forEach((g) => {
|
|
4347
|
+
p.push(g[f]);
|
|
4342
4348
|
}), o.series.push({
|
|
4343
|
-
name:
|
|
4349
|
+
name: f,
|
|
4344
4350
|
type: d,
|
|
4345
4351
|
smooth: !0,
|
|
4346
|
-
data:
|
|
4347
|
-
}), o.legend.data.push(
|
|
4348
|
-
}), n.forEach((
|
|
4349
|
-
l.push(
|
|
4352
|
+
data: p
|
|
4353
|
+
}), o.legend.data.push(f);
|
|
4354
|
+
}), n.forEach((f) => {
|
|
4355
|
+
l.push(f[a]);
|
|
4350
4356
|
}), o.xAxis.data = l;
|
|
4351
4357
|
}
|
|
4352
4358
|
return ie(t) && (o = H(o, t)), o;
|
|
4353
4359
|
}
|
|
4354
|
-
const
|
|
4360
|
+
const pa = K({
|
|
4355
4361
|
name: "NumberPanel",
|
|
4356
4362
|
props: {
|
|
4357
4363
|
dataList: {
|
|
@@ -4362,27 +4368,27 @@ const ss = z({
|
|
|
4362
4368
|
data() {
|
|
4363
4369
|
return {};
|
|
4364
4370
|
}
|
|
4365
|
-
}),
|
|
4366
|
-
function
|
|
4367
|
-
return i(!0), _(
|
|
4368
|
-
|
|
4369
|
-
(i(!0), _(
|
|
4370
|
-
key:
|
|
4371
|
+
}), fa = { class: "number-panel-title" }, ma = { class: "number" }, ha = { class: "name" };
|
|
4372
|
+
function ba(e, t, n, o, l, s) {
|
|
4373
|
+
return i(!0), _(O, null, U(e.dataList, (a, c) => (i(), _("span", { key: c }, [
|
|
4374
|
+
v("div", fa, [
|
|
4375
|
+
(i(!0), _(O, null, U(Object.keys(a), (d, f) => (i(), _("div", {
|
|
4376
|
+
key: f,
|
|
4371
4377
|
class: "title-inner"
|
|
4372
4378
|
}, [
|
|
4373
|
-
|
|
4374
|
-
|
|
4379
|
+
v("p", ma, R(a[d]), 1),
|
|
4380
|
+
v("p", ha, R(d), 1)
|
|
4375
4381
|
]))), 128))
|
|
4376
4382
|
])
|
|
4377
4383
|
]))), 128);
|
|
4378
4384
|
}
|
|
4379
|
-
const
|
|
4385
|
+
const ya = /* @__PURE__ */ P(pa, [["render", ba], ["__scopeId", "data-v-cc0d8293"]]), _a = {
|
|
4380
4386
|
components: {
|
|
4381
|
-
Chart:
|
|
4382
|
-
Md:
|
|
4387
|
+
Chart: yo,
|
|
4388
|
+
Md: xo,
|
|
4383
4389
|
Json: Ye,
|
|
4384
4390
|
Table: he,
|
|
4385
|
-
Number:
|
|
4391
|
+
Number: ya,
|
|
4386
4392
|
Html: ""
|
|
4387
4393
|
},
|
|
4388
4394
|
props: {
|
|
@@ -4403,20 +4409,20 @@ const ds = /* @__PURE__ */ R(ss, [["render", us], ["__scopeId", "data-v-cc0d8293
|
|
|
4403
4409
|
};
|
|
4404
4410
|
if (l === "chart")
|
|
4405
4411
|
return {
|
|
4406
|
-
options:
|
|
4412
|
+
options: da(o.id, o.chart, o.data)
|
|
4407
4413
|
};
|
|
4408
4414
|
if (l === "md")
|
|
4409
4415
|
return {
|
|
4410
4416
|
source: o.data
|
|
4411
4417
|
};
|
|
4412
4418
|
if (l === "table") {
|
|
4413
|
-
if (!
|
|
4419
|
+
if (!It(o.data))
|
|
4414
4420
|
return { showPagination: !1 };
|
|
4415
|
-
const
|
|
4416
|
-
return o.data[0] && Object.keys(o.data[0]).forEach((
|
|
4417
|
-
|
|
4421
|
+
const s = [];
|
|
4422
|
+
return o.data[0] && Object.keys(o.data[0]).forEach((a, c) => {
|
|
4423
|
+
s.push({ field: a, label: a });
|
|
4418
4424
|
}), {
|
|
4419
|
-
headers:
|
|
4425
|
+
headers: s,
|
|
4420
4426
|
list: o.data,
|
|
4421
4427
|
showPagination: !1
|
|
4422
4428
|
};
|
|
@@ -4427,21 +4433,21 @@ const ds = /* @__PURE__ */ R(ss, [["render", us], ["__scopeId", "data-v-cc0d8293
|
|
|
4427
4433
|
};
|
|
4428
4434
|
}
|
|
4429
4435
|
};
|
|
4430
|
-
function
|
|
4431
|
-
const
|
|
4432
|
-
return
|
|
4436
|
+
function va(e, t, n, o, l, s) {
|
|
4437
|
+
const a = Ze, c = wn("resize");
|
|
4438
|
+
return ge((i(), h(a, {
|
|
4433
4439
|
shadow: "never",
|
|
4434
4440
|
class: "part"
|
|
4435
4441
|
}, {
|
|
4436
4442
|
default: r(() => [
|
|
4437
|
-
(i(), h(
|
|
4443
|
+
(i(), h(Ke(o.comptype()), Z(re(o.compprops(n.option))), null, 16))
|
|
4438
4444
|
]),
|
|
4439
4445
|
_: 1
|
|
4440
4446
|
})), [
|
|
4441
4447
|
[c, !0]
|
|
4442
4448
|
]);
|
|
4443
4449
|
}
|
|
4444
|
-
const
|
|
4450
|
+
const ga = /* @__PURE__ */ P(_a, [["render", va], ["__scopeId", "data-v-a5a65cc1"]]), ka = /* @__PURE__ */ K({
|
|
4445
4451
|
__name: "index",
|
|
4446
4452
|
props: {
|
|
4447
4453
|
filter: {
|
|
@@ -4454,13 +4460,13 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4454
4460
|
}
|
|
4455
4461
|
},
|
|
4456
4462
|
setup(e) {
|
|
4457
|
-
const t =
|
|
4458
|
-
|
|
4463
|
+
const t = W();
|
|
4464
|
+
Ie(() => {
|
|
4459
4465
|
});
|
|
4460
|
-
const n = e, o =
|
|
4466
|
+
const n = e, o = I({});
|
|
4461
4467
|
Fe(() => {
|
|
4462
|
-
n.filter?.forEach((
|
|
4463
|
-
|
|
4468
|
+
n.filter?.forEach((p) => {
|
|
4469
|
+
p.default !== null && (o.value[p.field] = p.default);
|
|
4464
4470
|
});
|
|
4465
4471
|
});
|
|
4466
4472
|
const l = {
|
|
@@ -4473,23 +4479,23 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4473
4479
|
cancelButton: {
|
|
4474
4480
|
text: "重置"
|
|
4475
4481
|
}
|
|
4476
|
-
},
|
|
4477
|
-
let
|
|
4478
|
-
if (!
|
|
4479
|
-
const
|
|
4480
|
-
|
|
4482
|
+
}, s = I(1), a = I(n.filter), c = I(n.dataPart), d = k(() => {
|
|
4483
|
+
let p = t.params.id;
|
|
4484
|
+
if (!p) {
|
|
4485
|
+
const g = t.path.split("/");
|
|
4486
|
+
p = g[g.length - 1];
|
|
4481
4487
|
}
|
|
4482
|
-
return "/focusbi_report/view/" +
|
|
4483
|
-
}),
|
|
4484
|
-
|
|
4485
|
-
|
|
4488
|
+
return "/focusbi_report/view/" + p;
|
|
4489
|
+
}), f = (p) => {
|
|
4490
|
+
tn.get(d.value, { params: p }).then(({ data: g }) => {
|
|
4491
|
+
a.value = g.filter, c.value = g.dataPart, s.value++;
|
|
4486
4492
|
});
|
|
4487
4493
|
};
|
|
4488
|
-
return (
|
|
4489
|
-
const w = Ze,
|
|
4490
|
-
return i(), h(
|
|
4494
|
+
return (p, g) => {
|
|
4495
|
+
const w = Ze, y = Be, T = Xe, B = ye;
|
|
4496
|
+
return i(), h(B, null, {
|
|
4491
4497
|
default: r(() => [
|
|
4492
|
-
m(
|
|
4498
|
+
m(a).length > 0 ? (i(), h(y, {
|
|
4493
4499
|
key: 0,
|
|
4494
4500
|
span: 24
|
|
4495
4501
|
}, {
|
|
@@ -4501,22 +4507,22 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4501
4507
|
default: r(() => [
|
|
4502
4508
|
u(m(ne), {
|
|
4503
4509
|
modelValue: m(o),
|
|
4504
|
-
"onUpdate:modelValue":
|
|
4505
|
-
"form-items": m(
|
|
4510
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => Ge(o) ? o.value = b : null),
|
|
4511
|
+
"form-items": m(a),
|
|
4506
4512
|
options: l,
|
|
4507
|
-
onSubmit:
|
|
4513
|
+
onSubmit: f
|
|
4508
4514
|
}, null, 8, ["modelValue", "form-items"])
|
|
4509
4515
|
]),
|
|
4510
4516
|
_: 1
|
|
4511
4517
|
})
|
|
4512
4518
|
]),
|
|
4513
4519
|
_: 1
|
|
4514
|
-
})) :
|
|
4515
|
-
u(
|
|
4520
|
+
})) : $("", !0),
|
|
4521
|
+
u(y, { span: 24 }, {
|
|
4516
4522
|
default: r(() => [
|
|
4517
|
-
u(
|
|
4523
|
+
u(B, { gutter: 20 }, {
|
|
4518
4524
|
default: r(() => [
|
|
4519
|
-
(i(!0), _(
|
|
4525
|
+
(i(!0), _(O, null, U(m(c), (b, E) => (i(), h(y, {
|
|
4520
4526
|
key: E,
|
|
4521
4527
|
span: b.col || 24
|
|
4522
4528
|
}, {
|
|
@@ -4527,11 +4533,11 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4527
4533
|
type: "error"
|
|
4528
4534
|
}, {
|
|
4529
4535
|
default: r(() => [
|
|
4530
|
-
|
|
4536
|
+
C(R(b.errMsg), 1)
|
|
4531
4537
|
]),
|
|
4532
4538
|
_: 2
|
|
4533
|
-
}, 1032, ["title"])) : (i(), h(
|
|
4534
|
-
key: m(
|
|
4539
|
+
}, 1032, ["title"])) : (i(), h(ga, {
|
|
4540
|
+
key: m(s),
|
|
4535
4541
|
option: b
|
|
4536
4542
|
}, null, 8, ["option"]))
|
|
4537
4543
|
]),
|
|
@@ -4548,10 +4554,10 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4548
4554
|
});
|
|
4549
4555
|
};
|
|
4550
4556
|
}
|
|
4551
|
-
}),
|
|
4557
|
+
}), Sa = {
|
|
4552
4558
|
__name: "report",
|
|
4553
4559
|
setup(e) {
|
|
4554
|
-
const t =
|
|
4560
|
+
const t = W(), n = k(() => {
|
|
4555
4561
|
let o = t.params.id;
|
|
4556
4562
|
if (!o) {
|
|
4557
4563
|
const l = t.path.split("/");
|
|
@@ -4559,21 +4565,21 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4559
4565
|
}
|
|
4560
4566
|
return "/focusbi_report/view/" + o;
|
|
4561
4567
|
});
|
|
4562
|
-
return (o, l) => (i(), h(
|
|
4563
|
-
default: r((
|
|
4564
|
-
u(
|
|
4568
|
+
return (o, l) => (i(), h(ve, { "schema-api": m(n) }, {
|
|
4569
|
+
default: r((s) => [
|
|
4570
|
+
u(ka, Z(re(s)), null, 16)
|
|
4565
4571
|
]),
|
|
4566
4572
|
_: 1
|
|
4567
4573
|
}, 8, ["schema-api"]));
|
|
4568
4574
|
}
|
|
4569
|
-
},
|
|
4570
|
-
card:
|
|
4575
|
+
}, wa = (e) => u("div", null, [e.test]), xa = {
|
|
4576
|
+
card: Gn,
|
|
4571
4577
|
form: ne,
|
|
4572
4578
|
table: he,
|
|
4573
|
-
test:
|
|
4574
|
-
row:
|
|
4575
|
-
col:
|
|
4576
|
-
},
|
|
4579
|
+
test: wa,
|
|
4580
|
+
row: Fn,
|
|
4581
|
+
col: Hn
|
|
4582
|
+
}, Ea = {
|
|
4577
4583
|
card: {
|
|
4578
4584
|
type: "card",
|
|
4579
4585
|
props: {
|
|
@@ -4594,16 +4600,16 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4594
4600
|
}
|
|
4595
4601
|
}
|
|
4596
4602
|
};
|
|
4597
|
-
function
|
|
4603
|
+
function Ia(e) {
|
|
4598
4604
|
const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
|
|
4599
4605
|
delete t.span;
|
|
4600
4606
|
let l = {
|
|
4601
4607
|
...t,
|
|
4602
4608
|
type: n[0]
|
|
4603
4609
|
};
|
|
4604
|
-
for (let
|
|
4610
|
+
for (let s = 1; s < n.length; s++)
|
|
4605
4611
|
l = {
|
|
4606
|
-
type: n[
|
|
4612
|
+
type: n[s],
|
|
4607
4613
|
children: [l]
|
|
4608
4614
|
};
|
|
4609
4615
|
return l.span = o, ot([l]);
|
|
@@ -4620,10 +4626,10 @@ function ot(e) {
|
|
|
4620
4626
|
return e.forEach((n) => {
|
|
4621
4627
|
let o = Object.assign({}, n);
|
|
4622
4628
|
if (ie(o.props?.style)) {
|
|
4623
|
-
let
|
|
4629
|
+
let a = "";
|
|
4624
4630
|
Object.keys(o.props?.style).forEach((c) => {
|
|
4625
|
-
|
|
4626
|
-
}), o.props.style =
|
|
4631
|
+
a += c + ":" + o.props?.style[c] + ";";
|
|
4632
|
+
}), o.props.style = a;
|
|
4627
4633
|
}
|
|
4628
4634
|
const l = {
|
|
4629
4635
|
span: o.span ?? 24,
|
|
@@ -4633,82 +4639,82 @@ function ot(e) {
|
|
|
4633
4639
|
t.children.push({
|
|
4634
4640
|
type: "col",
|
|
4635
4641
|
props: l,
|
|
4636
|
-
children:
|
|
4642
|
+
children: Ia(o)
|
|
4637
4643
|
});
|
|
4638
4644
|
return;
|
|
4639
4645
|
}
|
|
4640
4646
|
o = H({
|
|
4641
4647
|
props: {}
|
|
4642
|
-
},
|
|
4643
|
-
const
|
|
4644
|
-
|
|
4648
|
+
}, Ea[o.type] || {}, o);
|
|
4649
|
+
const s = Qt(o.children);
|
|
4650
|
+
s.length && (o.children = ot(s)), t.children.push({
|
|
4645
4651
|
type: "col",
|
|
4646
4652
|
props: l,
|
|
4647
4653
|
children: [o]
|
|
4648
4654
|
});
|
|
4649
4655
|
}), [t];
|
|
4650
4656
|
}
|
|
4651
|
-
function
|
|
4652
|
-
return
|
|
4657
|
+
function Qt(e) {
|
|
4658
|
+
return It(e) ? e : ie(e) ? [e] : [];
|
|
4653
4659
|
}
|
|
4654
|
-
let
|
|
4655
|
-
const
|
|
4656
|
-
const t =
|
|
4657
|
-
return
|
|
4658
|
-
default: () =>
|
|
4660
|
+
let He = {};
|
|
4661
|
+
const Xt = (e) => {
|
|
4662
|
+
const t = xa[e.type] || He[e.type] || e.type;
|
|
4663
|
+
return En(t, e.props, {
|
|
4664
|
+
default: () => Qt(e.children).map((n) => Xt(n))
|
|
4659
4665
|
});
|
|
4660
|
-
},
|
|
4666
|
+
}, Ca = (e) => (Object.keys(He).length === 0 && (He = xn().appContext.components), ot(Object.values(e.schema)).map((n) => Xt(n))), Ta = {
|
|
4661
4667
|
__name: "custom",
|
|
4662
4668
|
setup(e) {
|
|
4663
|
-
const t =
|
|
4664
|
-
return (o, l) => (i(), h(
|
|
4669
|
+
const t = I([]), n = (o, l) => (t.value = In(o), o);
|
|
4670
|
+
return (o, l) => (i(), h(ve, { "schema-handler": n }, {
|
|
4665
4671
|
default: r(() => [
|
|
4666
|
-
u(m(
|
|
4672
|
+
u(m(Ca), { schema: m(t) }, null, 8, ["schema"])
|
|
4667
4673
|
]),
|
|
4668
4674
|
_: 1
|
|
4669
4675
|
}));
|
|
4670
4676
|
}
|
|
4671
4677
|
};
|
|
4672
4678
|
let ue = {};
|
|
4673
|
-
function
|
|
4679
|
+
function dr(e) {
|
|
4674
4680
|
ue = e;
|
|
4675
4681
|
}
|
|
4676
|
-
const
|
|
4682
|
+
const Ba = (e) => {
|
|
4677
4683
|
const t = (n) => {
|
|
4678
4684
|
const o = "./views/" + n + ".vue";
|
|
4679
|
-
return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`),
|
|
4685
|
+
return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), je);
|
|
4680
4686
|
};
|
|
4681
4687
|
if (e.path === "#")
|
|
4682
|
-
return
|
|
4688
|
+
return je;
|
|
4683
4689
|
switch (e.page_type) {
|
|
4684
4690
|
case J.list:
|
|
4685
|
-
return
|
|
4691
|
+
return Wt;
|
|
4686
4692
|
case J.form:
|
|
4687
|
-
return
|
|
4693
|
+
return qe;
|
|
4688
4694
|
case J.custom:
|
|
4689
4695
|
case J.localComp:
|
|
4690
4696
|
return t(e.view || "");
|
|
4691
4697
|
case J.tree:
|
|
4692
|
-
return
|
|
4698
|
+
return ca;
|
|
4693
4699
|
case J.report:
|
|
4694
|
-
return
|
|
4700
|
+
return Sa;
|
|
4695
4701
|
case J.customSchema:
|
|
4696
|
-
return
|
|
4702
|
+
return Ta;
|
|
4697
4703
|
}
|
|
4698
|
-
return
|
|
4704
|
+
return je;
|
|
4699
4705
|
};
|
|
4700
|
-
function
|
|
4706
|
+
function $a(e) {
|
|
4701
4707
|
let t = e.path;
|
|
4702
4708
|
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
4709
|
}
|
|
4704
|
-
function
|
|
4710
|
+
function Oa(e) {
|
|
4705
4711
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4706
4712
|
}
|
|
4707
|
-
const
|
|
4713
|
+
const Zt = (e) => {
|
|
4708
4714
|
const t = e.type !== G.page, n = {
|
|
4709
|
-
path:
|
|
4710
|
-
name: e.id + "_" +
|
|
4711
|
-
component:
|
|
4715
|
+
path: $a(e),
|
|
4716
|
+
name: e.id + "_" + Oa(e) + "_" + e.path.replaceAll("/", "_"),
|
|
4717
|
+
component: Ba(e),
|
|
4712
4718
|
meta: {
|
|
4713
4719
|
id: e.id,
|
|
4714
4720
|
pageId: e.id,
|
|
@@ -4720,13 +4726,13 @@ const Wt = (e) => {
|
|
|
4720
4726
|
keepAlive: !1,
|
|
4721
4727
|
role: e.role
|
|
4722
4728
|
},
|
|
4723
|
-
children: e.children ? e.children.map((o) =>
|
|
4729
|
+
children: e.children ? e.children.map((o) => Zt(o)) : []
|
|
4724
4730
|
};
|
|
4725
4731
|
if (e.page_type === J.entity) {
|
|
4726
|
-
const o = e.path + "/list", l = e.path + "/form",
|
|
4732
|
+
const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
|
|
4727
4733
|
path: o,
|
|
4728
4734
|
name: e.name + "列表" + e.id,
|
|
4729
|
-
component:
|
|
4735
|
+
component: Wt,
|
|
4730
4736
|
meta: {
|
|
4731
4737
|
id: e.id + 99999,
|
|
4732
4738
|
title: "列表",
|
|
@@ -4739,7 +4745,7 @@ const Wt = (e) => {
|
|
|
4739
4745
|
}, {
|
|
4740
4746
|
path: l,
|
|
4741
4747
|
name: e.name + "新建" + e.id,
|
|
4742
|
-
component:
|
|
4748
|
+
component: qe,
|
|
4743
4749
|
meta: {
|
|
4744
4750
|
id: e.id + 99999 + 1,
|
|
4745
4751
|
title: "新建",
|
|
@@ -4750,9 +4756,9 @@ const Wt = (e) => {
|
|
|
4750
4756
|
path: e.path
|
|
4751
4757
|
}
|
|
4752
4758
|
}, {
|
|
4753
|
-
path:
|
|
4759
|
+
path: s,
|
|
4754
4760
|
name: e.name + "编辑" + e.id,
|
|
4755
|
-
component:
|
|
4761
|
+
component: qe,
|
|
4756
4762
|
meta: {
|
|
4757
4763
|
id: e.id + 99999 + 2,
|
|
4758
4764
|
title: "编辑",
|
|
@@ -4763,7 +4769,7 @@ const Wt = (e) => {
|
|
|
4763
4769
|
path: e.path
|
|
4764
4770
|
}
|
|
4765
4771
|
}];
|
|
4766
|
-
n.children = [...
|
|
4772
|
+
n.children = [...a, ...n.children];
|
|
4767
4773
|
}
|
|
4768
4774
|
if (n.children && n.children.length > 0) {
|
|
4769
4775
|
let o = !0;
|
|
@@ -4772,16 +4778,16 @@ const Wt = (e) => {
|
|
|
4772
4778
|
}), n.meta && (n.meta.menuType = t ? G.dir : G.hidden), o) {
|
|
4773
4779
|
n.meta && (n.meta.menuType = G.menu);
|
|
4774
4780
|
let l = "/";
|
|
4775
|
-
for (let
|
|
4776
|
-
if (n.children[
|
|
4777
|
-
l = n.children[
|
|
4781
|
+
for (let s = 0; s < n.children.length; s++)
|
|
4782
|
+
if (n.children[s].path.indexOf("/:") === -1) {
|
|
4783
|
+
l = n.children[s].path;
|
|
4778
4784
|
break;
|
|
4779
4785
|
}
|
|
4780
4786
|
n.redirect = l, n.path = "/" + e.id + "_DIR" + n.redirect.replaceAll("/", "_").toUpperCase();
|
|
4781
4787
|
}
|
|
4782
4788
|
}
|
|
4783
4789
|
return n;
|
|
4784
|
-
},
|
|
4790
|
+
}, Aa = (e) => {
|
|
4785
4791
|
const t = [];
|
|
4786
4792
|
return e.forEach((n) => {
|
|
4787
4793
|
const o = {
|
|
@@ -4790,26 +4796,26 @@ const Wt = (e) => {
|
|
|
4790
4796
|
routes: []
|
|
4791
4797
|
};
|
|
4792
4798
|
n.routes.forEach((l) => {
|
|
4793
|
-
o.routes.push(
|
|
4799
|
+
o.routes.push(Zt(l));
|
|
4794
4800
|
}), t.push(o);
|
|
4795
4801
|
}), t;
|
|
4796
|
-
},
|
|
4797
|
-
const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...
|
|
4802
|
+
}, Ra = "root", _t = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Pa = (e) => {
|
|
4803
|
+
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
4804
|
return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
|
|
4799
|
-
},
|
|
4805
|
+
}, Yt = (e) => {
|
|
4800
4806
|
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 (!
|
|
4807
|
+
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Yt(n))), t;
|
|
4808
|
+
}, La = (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) => {
|
|
4809
|
+
const l = Pa(o);
|
|
4810
|
+
if (!La(l, t))
|
|
4805
4811
|
return n;
|
|
4806
|
-
const
|
|
4807
|
-
if (o.meta && (
|
|
4808
|
-
const
|
|
4809
|
-
|
|
4812
|
+
const s = { ...o };
|
|
4813
|
+
if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
|
|
4814
|
+
const a = lt(o.children, t);
|
|
4815
|
+
a.length ? s.children = a : delete s.children;
|
|
4810
4816
|
}
|
|
4811
|
-
return n.push(
|
|
4812
|
-
}, []),
|
|
4817
|
+
return n.push(s), n;
|
|
4818
|
+
}, []), Ma = (e) => {
|
|
4813
4819
|
const t = globalThis.atob(e);
|
|
4814
4820
|
let n = "";
|
|
4815
4821
|
for (let o = 0; o < t.length; o++) {
|
|
@@ -4821,117 +4827,117 @@ const Wt = (e) => {
|
|
|
4821
4827
|
} catch {
|
|
4822
4828
|
return decodeURIComponent(encodeURIComponent(t));
|
|
4823
4829
|
}
|
|
4824
|
-
},
|
|
4830
|
+
}, Da = (e) => {
|
|
4825
4831
|
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
|
-
},
|
|
4832
|
+
return typeof globalThis.atob == "function" ? Ma(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
|
|
4833
|
+
}, ja = (e) => {
|
|
4828
4834
|
if (!e)
|
|
4829
4835
|
return null;
|
|
4830
4836
|
const t = e.split(".");
|
|
4831
4837
|
if (t.length < 2)
|
|
4832
4838
|
return null;
|
|
4833
4839
|
try {
|
|
4834
|
-
const n =
|
|
4840
|
+
const n = Da(t[1]);
|
|
4835
4841
|
return n ? JSON.parse(n) : null;
|
|
4836
4842
|
} catch {
|
|
4837
4843
|
return null;
|
|
4838
4844
|
}
|
|
4839
|
-
},
|
|
4840
|
-
const t =
|
|
4845
|
+
}, en = (e) => {
|
|
4846
|
+
const t = ja(e);
|
|
4841
4847
|
return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
|
|
4842
4848
|
};
|
|
4843
|
-
function
|
|
4849
|
+
function Na(e) {
|
|
4844
4850
|
e.beforeEach(async (t, n, o) => {
|
|
4845
|
-
if (
|
|
4851
|
+
if (zt().indexOf(t.path) !== -1) {
|
|
4846
4852
|
o();
|
|
4847
4853
|
return;
|
|
4848
4854
|
}
|
|
4849
|
-
if (
|
|
4855
|
+
if (Vs()) {
|
|
4850
4856
|
o();
|
|
4851
4857
|
return;
|
|
4852
4858
|
}
|
|
4853
|
-
const l =
|
|
4859
|
+
const l = j(M);
|
|
4854
4860
|
await l.info();
|
|
4855
|
-
const
|
|
4856
|
-
const
|
|
4861
|
+
const s = await l.loadRemoteRoutes(), a = Aa(s), c = en(_e()), d = a.map((f) => {
|
|
4862
|
+
const p = lt(f.routes, c);
|
|
4857
4863
|
return {
|
|
4858
|
-
...
|
|
4859
|
-
routes:
|
|
4864
|
+
...f,
|
|
4865
|
+
routes: p
|
|
4860
4866
|
};
|
|
4861
|
-
}).filter((
|
|
4862
|
-
d.forEach((
|
|
4863
|
-
|
|
4867
|
+
}).filter((f) => f.routes.length > 0);
|
|
4868
|
+
d.forEach((f) => {
|
|
4869
|
+
f.routes.forEach((p) => {
|
|
4864
4870
|
e.addRoute({
|
|
4865
4871
|
path: "/",
|
|
4866
|
-
component:
|
|
4867
|
-
children: [
|
|
4872
|
+
component: Kt,
|
|
4873
|
+
children: [p]
|
|
4868
4874
|
});
|
|
4869
4875
|
});
|
|
4870
4876
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), o();
|
|
4871
4877
|
});
|
|
4872
4878
|
}
|
|
4873
|
-
function
|
|
4879
|
+
function Ua(e) {
|
|
4874
4880
|
e.beforeEach(async (t, n, o) => {
|
|
4875
|
-
const
|
|
4876
|
-
for (let c =
|
|
4881
|
+
const s = [V(M).title || ""], a = t.matched.length;
|
|
4882
|
+
for (let c = a; c > a - 3; c--) {
|
|
4877
4883
|
const d = t.matched[c - 1];
|
|
4878
|
-
d?.meta?.title &&
|
|
4884
|
+
d?.meta?.title && s.push(d.meta.title + "");
|
|
4879
4885
|
}
|
|
4880
|
-
|
|
4886
|
+
s.length > 1 && (document.title = s.reverse().join("-")), o();
|
|
4881
4887
|
}), e.afterEach(async (t, n, o) => {
|
|
4882
|
-
const l = Y(
|
|
4888
|
+
const l = Y(M);
|
|
4883
4889
|
Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
|
|
4884
4890
|
});
|
|
4885
4891
|
}
|
|
4886
|
-
function
|
|
4887
|
-
|
|
4892
|
+
function Va(e) {
|
|
4893
|
+
Ks(e), Us(e), Na(e), Ua(e);
|
|
4888
4894
|
}
|
|
4889
|
-
|
|
4890
|
-
function
|
|
4891
|
-
return
|
|
4895
|
+
Va(oe);
|
|
4896
|
+
function qa() {
|
|
4897
|
+
return j(M).token;
|
|
4892
4898
|
}
|
|
4893
|
-
function
|
|
4894
|
-
return
|
|
4899
|
+
function Ha() {
|
|
4900
|
+
return j(M).expired;
|
|
4895
4901
|
}
|
|
4896
|
-
function
|
|
4897
|
-
|
|
4902
|
+
function vt(e) {
|
|
4903
|
+
Fo({
|
|
4898
4904
|
message: e,
|
|
4899
4905
|
type: "error",
|
|
4900
4906
|
duration: 5 * 1e3,
|
|
4901
4907
|
grouping: !0
|
|
4902
4908
|
});
|
|
4903
4909
|
}
|
|
4904
|
-
const
|
|
4910
|
+
const Fa = {
|
|
4905
4911
|
onFulfilled: function(e) {
|
|
4906
4912
|
e.headers = e.headers || {};
|
|
4907
|
-
const t =
|
|
4913
|
+
const t = qa();
|
|
4908
4914
|
return t && (e.headers["X-Token"] = t), oe.currentRoute.value.meta?.path && (e.headers["X-Path"] = oe.currentRoute.value.meta.path), e;
|
|
4909
4915
|
}
|
|
4910
|
-
},
|
|
4916
|
+
}, Ga = {
|
|
4911
4917
|
onFulfilled(e) {
|
|
4912
4918
|
if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
|
|
4913
4919
|
const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
|
|
4914
4920
|
if (e.data.code === 401) {
|
|
4915
|
-
if (
|
|
4921
|
+
if (Ha())
|
|
4916
4922
|
return;
|
|
4917
|
-
|
|
4923
|
+
j(M).SetExpired(), ht.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
4918
4924
|
showClose: !1,
|
|
4919
4925
|
confirmButtonText: "重新登录",
|
|
4920
4926
|
showCancelButton: !0,
|
|
4921
4927
|
cancelButtonText: "取消",
|
|
4922
4928
|
callback: (l) => {
|
|
4923
|
-
l === "confirm" && (
|
|
4929
|
+
l === "confirm" && (Lt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(M).SetExpired();
|
|
4924
4930
|
}
|
|
4925
4931
|
});
|
|
4926
4932
|
return;
|
|
4927
4933
|
} else
|
|
4928
|
-
|
|
4934
|
+
vt(o);
|
|
4929
4935
|
return Promise.reject(o);
|
|
4930
4936
|
}
|
|
4931
4937
|
let n = e.data?.data?._message_box;
|
|
4932
|
-
return n !== void 0 && (
|
|
4938
|
+
return n !== void 0 && (ze(n) && (n = {
|
|
4933
4939
|
message: e.data?.data?._message_box
|
|
4934
|
-
}),
|
|
4940
|
+
}), ht({
|
|
4935
4941
|
title: "提示",
|
|
4936
4942
|
type: "success",
|
|
4937
4943
|
grouping: !0,
|
|
@@ -4939,28 +4945,28 @@ const js = {
|
|
|
4939
4945
|
})), e.data;
|
|
4940
4946
|
},
|
|
4941
4947
|
onRejected(e) {
|
|
4942
|
-
return Je.isCancel(e) ? Promise.reject("") : (
|
|
4948
|
+
return Je.isCancel(e) ? Promise.reject("") : (vt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
|
|
4943
4949
|
}
|
|
4944
|
-
},
|
|
4950
|
+
}, Ka = [
|
|
4945
4951
|
{
|
|
4946
|
-
request:
|
|
4947
|
-
response:
|
|
4952
|
+
request: Ko,
|
|
4953
|
+
response: zo
|
|
4948
4954
|
},
|
|
4949
4955
|
{
|
|
4950
|
-
request:
|
|
4951
|
-
response:
|
|
4956
|
+
request: Fa,
|
|
4957
|
+
response: Ga
|
|
4952
4958
|
}
|
|
4953
4959
|
];
|
|
4954
|
-
function
|
|
4955
|
-
const t =
|
|
4960
|
+
function st(e = {}) {
|
|
4961
|
+
const t = $e.axios || {}, n = H(t, e || {}), o = Je.create({
|
|
4956
4962
|
...n
|
|
4957
4963
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
4958
4964
|
});
|
|
4959
|
-
return
|
|
4965
|
+
return Ka.forEach((l) => {
|
|
4960
4966
|
o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
|
|
4961
4967
|
}), o;
|
|
4962
4968
|
}
|
|
4963
|
-
const
|
|
4969
|
+
const tn = st(), za = {
|
|
4964
4970
|
beforeMount(e, t) {
|
|
4965
4971
|
e.clickOutsideEvent = function(n) {
|
|
4966
4972
|
e === n.target || e.contains(n.target) || t.value(n, e);
|
|
@@ -4969,23 +4975,23 @@ const Zt = at(), Vs = {
|
|
|
4969
4975
|
unmounted(e) {
|
|
4970
4976
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
4971
4977
|
}
|
|
4972
|
-
}, le =
|
|
4978
|
+
}, le = go(), Ja = {
|
|
4973
4979
|
mounted: (e, t) => {
|
|
4974
4980
|
e !== null && (t.value, e.oncontextmenu = (n) => {
|
|
4975
4981
|
n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && le.emit("right-click", { event: n, data: t.value });
|
|
4976
4982
|
});
|
|
4977
4983
|
}
|
|
4978
|
-
},
|
|
4984
|
+
}, Wa = {
|
|
4979
4985
|
mounted(e) {
|
|
4980
4986
|
}
|
|
4981
4987
|
};
|
|
4982
|
-
function
|
|
4988
|
+
function gt(e, t) {
|
|
4983
4989
|
let n = e[`offset${t}`], o = e.offsetParent;
|
|
4984
4990
|
for (; o; )
|
|
4985
4991
|
n += o[`offset${t}`], o = o.offsetParent;
|
|
4986
4992
|
return n;
|
|
4987
4993
|
}
|
|
4988
|
-
const
|
|
4994
|
+
const Qa = {
|
|
4989
4995
|
mounted: (e, t) => {
|
|
4990
4996
|
if (e === null || !t.value.dev)
|
|
4991
4997
|
return;
|
|
@@ -4996,64 +5002,73 @@ const Fs = {
|
|
|
4996
5002
|
n.classList.add("devtool-hover");
|
|
4997
5003
|
const o = document.createElement("i");
|
|
4998
5004
|
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 =
|
|
5005
|
+
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
5006
|
};
|
|
5001
5007
|
const l = document.createElement("span");
|
|
5002
5008
|
l.className = "dev-action-edit", l.title = "编辑";
|
|
5003
|
-
const
|
|
5004
|
-
|
|
5009
|
+
const s = document.createElement("i");
|
|
5010
|
+
s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (d) => {
|
|
5005
5011
|
le.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
|
|
5006
5012
|
}, o.appendChild(l);
|
|
5007
|
-
const
|
|
5008
|
-
|
|
5013
|
+
const a = document.createElement("span");
|
|
5014
|
+
a.className = "dev-action-del", a.title = "删除";
|
|
5009
5015
|
const c = document.createElement("i");
|
|
5010
|
-
c.className = "iconfont ra-cut",
|
|
5016
|
+
c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
|
|
5011
5017
|
le.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5012
|
-
}, o.appendChild(
|
|
5018
|
+
}, o.appendChild(a), n.insertBefore(o, n.firstChild);
|
|
5013
5019
|
}
|
|
5014
|
-
},
|
|
5020
|
+
}, Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5015
5021
|
__proto__: null,
|
|
5016
|
-
devtool:
|
|
5017
|
-
outClick:
|
|
5018
|
-
resize:
|
|
5019
|
-
rightClick:
|
|
5022
|
+
devtool: Qa,
|
|
5023
|
+
outClick: za,
|
|
5024
|
+
resize: Wa,
|
|
5025
|
+
rightClick: Ja
|
|
5020
5026
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5021
|
-
let
|
|
5022
|
-
|
|
5023
|
-
|
|
5027
|
+
let xe;
|
|
5028
|
+
const nn = [], kt = /* @__PURE__ */ new Set(), St = (e) => typeof e.name == "string" ? e.name : e.path;
|
|
5029
|
+
function pr(e) {
|
|
5030
|
+
return e ? st(H($e.axios, e)) : xe;
|
|
5024
5031
|
}
|
|
5025
|
-
function
|
|
5026
|
-
const t = H(
|
|
5027
|
-
l.unshift(o), l.forEach((
|
|
5028
|
-
|
|
5029
|
-
}), t?.mock &&
|
|
5030
|
-
const
|
|
5031
|
-
|
|
5032
|
-
"X-Token":
|
|
5033
|
-
})),
|
|
5032
|
+
function fr(e) {
|
|
5033
|
+
const t = H($e, e), n = Cn(Do), o = li(t), l = t.plugins || [];
|
|
5034
|
+
l.unshift(o), l.forEach((d) => {
|
|
5035
|
+
oi(n, d);
|
|
5036
|
+
}), t?.mock && Ho(), xe = st(t.axios), Ro(n);
|
|
5037
|
+
const s = Y(M), a = V(M), c = j(M);
|
|
5038
|
+
Co(xe), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = xe, n.config.globalProperties.$router = oe, window.App = n, window.OmsOptions = t, _o(() => ({
|
|
5039
|
+
"X-Token": _e()
|
|
5040
|
+
})), be(() => c.token, () => {
|
|
5041
|
+
on();
|
|
5042
|
+
}, { immediate: !0 }), oe.isReady().then(() => n.mount("#app"));
|
|
5034
5043
|
}
|
|
5035
|
-
function
|
|
5044
|
+
function Za(e, t = {}) {
|
|
5036
5045
|
Object.keys(t).forEach((n) => {
|
|
5037
5046
|
e.component(n, t[n]);
|
|
5038
5047
|
});
|
|
5039
5048
|
}
|
|
5040
|
-
function
|
|
5041
|
-
const
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
})
|
|
5049
|
+
function on() {
|
|
5050
|
+
const e = en(_e()), t = lt(nn, e), n = j(M), o = new Set(n.customRouter.map((s) => St(s))), l = t.filter((s) => {
|
|
5051
|
+
const a = St(s);
|
|
5052
|
+
return kt.has(a) || o.has(a) ? !1 : (kt.add(a), !0);
|
|
5053
|
+
});
|
|
5054
|
+
l.forEach((s) => {
|
|
5055
|
+
oe.addRoute(s);
|
|
5056
|
+
}), l.length && n.setCustomRoutes(l);
|
|
5057
|
+
}
|
|
5058
|
+
function Ya(e = []) {
|
|
5059
|
+
nn.push(...e), on();
|
|
5045
5060
|
}
|
|
5046
|
-
function
|
|
5061
|
+
function ei(e, t) {
|
|
5047
5062
|
t.forEach((n) => {
|
|
5048
5063
|
ie(n) && (n = [n]), e.use(...n);
|
|
5049
5064
|
});
|
|
5050
5065
|
}
|
|
5051
|
-
function
|
|
5066
|
+
function ti(e, t = {}) {
|
|
5052
5067
|
Object.keys(t).forEach((n) => {
|
|
5053
5068
|
e.directive(n, t[n]);
|
|
5054
5069
|
});
|
|
5055
5070
|
}
|
|
5056
|
-
function
|
|
5071
|
+
function ni(e = {}) {
|
|
5057
5072
|
const t = ["app", "settings", "user"];
|
|
5058
5073
|
Object.keys(e).forEach((n) => {
|
|
5059
5074
|
if (t.indexOf(n) !== -1) {
|
|
@@ -5063,50 +5078,50 @@ function Qs(e = {}) {
|
|
|
5063
5078
|
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
|
|
5064
5079
|
});
|
|
5065
5080
|
}
|
|
5066
|
-
function
|
|
5067
|
-
|
|
5081
|
+
function oi(e, t) {
|
|
5082
|
+
Za(e, t.components || {}), Ya(t.routes || []), ei(e, t.use || []), ti(e, t.directives || {}), ni(t.storeModules || {}), Vt(t.mockApis || []);
|
|
5068
5083
|
}
|
|
5069
|
-
function
|
|
5084
|
+
function li(e) {
|
|
5070
5085
|
return {
|
|
5071
|
-
components: { VIcon:
|
|
5072
|
-
directives:
|
|
5086
|
+
components: { VIcon: vo },
|
|
5087
|
+
directives: Xa,
|
|
5073
5088
|
use: [
|
|
5074
5089
|
oe,
|
|
5075
|
-
[
|
|
5090
|
+
[Vn, { locale: Ct, ...e.settings?.ElementPlus }]
|
|
5076
5091
|
]
|
|
5077
5092
|
};
|
|
5078
5093
|
}
|
|
5079
5094
|
export {
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5095
|
+
Jt as BaseSso,
|
|
5096
|
+
je as Container,
|
|
5097
|
+
ur as DingTalk,
|
|
5098
|
+
cr as Github,
|
|
5099
|
+
Kt as Layout,
|
|
5085
5100
|
G as MenuType,
|
|
5086
|
-
|
|
5087
|
-
|
|
5101
|
+
Fo as Message,
|
|
5102
|
+
ht as MessageBox,
|
|
5088
5103
|
J as PageType,
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5104
|
+
Fs as allSso,
|
|
5105
|
+
Oo as appState,
|
|
5106
|
+
Ao as builderSchemaState,
|
|
5107
|
+
fr as createAdmin,
|
|
5093
5108
|
le as eventBus,
|
|
5094
|
-
|
|
5109
|
+
Jo as getCmp,
|
|
5095
5110
|
Pe as getHttp,
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5111
|
+
xe as http,
|
|
5112
|
+
st as instance,
|
|
5113
|
+
M as pinia,
|
|
5114
|
+
dr as regViews,
|
|
5115
|
+
rr as setCmp,
|
|
5116
|
+
Co as setHttp,
|
|
5117
|
+
Bo as settings,
|
|
5118
|
+
Ro as setupStore,
|
|
5119
|
+
Aa as transRemoteModules,
|
|
5105
5120
|
Y as useAppStore,
|
|
5106
|
-
|
|
5107
|
-
|
|
5121
|
+
ir as useBuilderSchemaStore,
|
|
5122
|
+
pr as useHttp,
|
|
5108
5123
|
V as useSettingsStore,
|
|
5109
|
-
|
|
5124
|
+
j as useUserStore,
|
|
5110
5125
|
dt as userState
|
|
5111
5126
|
};
|
|
5112
5127
|
//# sourceMappingURL=index.es.js.map
|