@okiss/oms 0.0.97 → 0.0.99
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 +1185 -1297
- package/dist/index.es.js.map +1 -1
- package/dist/oms.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { normalizeTheme as
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { ref as C, watch as ye, computed as k, defineComponent as z, onBeforeMount as Ge, provide as _o, resolveComponent as P, createBlock as m, openBlock as i, createVNode as u, createTextVNode as T, withCtx as r, TransitionGroup as vo, createElementBlock as v, Fragment as A, renderList as V, toDisplayString as B, normalizeClass as te, renderSlot as pe, createCommentVNode as $, mergeProps as X, toRefs as go, unref as h, isRef as Ke, onMounted as Ie, normalizeStyle as ko, createElementVNode as _, withKeys as ut, withModifiers as Ne, resolveDynamicComponent as ze, Transition as xt, normalizeProps as Z, guardReactiveProps as ce, onUnmounted as So, resolveDirective as wo, withDirectives as xo, getCurrentInstance as Eo, h as Io, toRaw as Co, createApp as To } from "vue";
|
|
2
|
+
import { normalizeTheme as fe, applyDocumentTheme as Oo, dispatchThemeChange as $o, addNewStyle as Bo, addNewStyleTag as Ao, queryParams as Ro, logGroup as Po, compactObject as Et, showEleByClassName as It, waterMarker as Lo, Cache as ke, isExternal as dt, getQueryParam as Ct, createIFrame as Mo, strVarReplace as ie, obj2Param as Do, isObject as re, isString as Je, effectDataTrans as jo, isArray as Tt } from "@okiss/utils";
|
|
3
|
+
import { defineStore as Ce, createPinia as No } from "pinia";
|
|
4
4
|
import oe from "js-cookie";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
5
|
+
import Ot from "element-plus/es/locale/lang/zh-cn";
|
|
6
|
+
import Vo, { cloneDeep as E, merge as q, get as me, unset as $t, isObject as Uo } from "lodash";
|
|
7
|
+
import Re from "mockjs";
|
|
8
|
+
import We from "axios";
|
|
9
|
+
import qo, { ElMessageBox as Bt, ElMessage as At, ElCol as Ho, ElRow as Fo, ElCard as Go } from "element-plus";
|
|
10
10
|
import "element-plus/theme-chalk/src/index.scss";
|
|
11
11
|
import "element-plus/theme-chalk/src/dark/css-vars.scss";
|
|
12
12
|
import "dayjs/locale/zh-cn";
|
|
13
|
-
import { useRoute as Q, useRouter as
|
|
14
|
-
import { ElBreadcrumb as
|
|
13
|
+
import { useRoute as Q, useRouter as Te, onBeforeRouteLeave as Ko, createRouter as zo, createWebHashHistory as Jo, onBeforeRouteUpdate as Wo } from "vue-router";
|
|
14
|
+
import { ElBreadcrumb as Qo, ElBreadcrumbItem as Xo, ElContainer as Zo, ElRow as _e, ElMain as Yo, ElAside as en, ElForm as Qe, ElFormItem as Xe, ElSelect as Ze, ElOption as Ye, ElDivider as Rt, ElButton as he, ElCol as Oe, ElDrawer as Pt, ElTooltip as Lt, ElIcon as Mt, ElDropdown as tn, ElAvatar as on, ElDropdownMenu as nn, ElDropdownItem as ln, ElImage as sn, ElMenuItem as an, ElSubMenu as rn, ElOptionGroup as cn, ElScrollbar as un, ElMenu as dn, ElBacktop as pn, ElCard as $e, ElInput as fn, ElAlert as et, ElTree as mn } 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";
|
|
18
|
-
import "element-plus/es/components/avatar/style/css";
|
|
19
18
|
import "element-plus/es/components/dropdown/style/css";
|
|
20
19
|
import "element-plus/es/components/dropdown-menu/style/css";
|
|
21
20
|
import "element-plus/es/components/dropdown-item/style/css";
|
|
21
|
+
import "element-plus/es/components/avatar/style/css";
|
|
22
22
|
import "element-plus/es/components/tooltip/style/css";
|
|
23
23
|
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 hn 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
|
|
37
|
+
import { JsonView as tt, VBtn as ot, VForm as ne, VTable as be, VChart as bn, setUploadHeaderHandle as yn, VIcon as _n } 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 vn from "mitt";
|
|
41
|
+
import { Moon as gn, Sunny as kn, InfoFilled as Sn } 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 wn } from "@vueuse/core";
|
|
50
50
|
import "element-plus/es/components/alert/style/css";
|
|
51
51
|
import "element-plus/es/components/card/style/css";
|
|
52
52
|
import "element-plus/es/components/tree/style/css";
|
|
53
|
-
import
|
|
53
|
+
import xn from "vue3-markdown-it";
|
|
54
54
|
import "element-plus/es/components/input/style/css";
|
|
55
|
-
import
|
|
56
|
-
import
|
|
55
|
+
import En from "crypto-js";
|
|
56
|
+
import Ve from "nprogress";
|
|
57
57
|
import "nprogress/nprogress.css";
|
|
58
58
|
String.prototype.format || (String.prototype.format = function() {
|
|
59
59
|
const e = arguments;
|
|
@@ -61,29 +61,29 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
61
61
|
return typeof e[o] < "u" ? e[o] : t;
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
|
-
const
|
|
65
|
-
function
|
|
66
|
-
return oe.get(
|
|
64
|
+
const nt = "oms:token";
|
|
65
|
+
function ve() {
|
|
66
|
+
return oe.get(nt) || "";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const t =
|
|
70
|
-
return oe.set(
|
|
68
|
+
function In(e) {
|
|
69
|
+
const t = U(L), o = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
|
|
70
|
+
return oe.set(nt, e, { expires: o });
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return oe.remove(
|
|
72
|
+
function Dt() {
|
|
73
|
+
return oe.remove(nt);
|
|
74
74
|
}
|
|
75
|
-
let
|
|
76
|
-
function
|
|
77
|
-
|
|
75
|
+
let jt = null;
|
|
76
|
+
function Cn(e) {
|
|
77
|
+
jt = e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function Pe() {
|
|
80
|
+
return jt;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const Tn = {
|
|
83
83
|
baseURL: "/api",
|
|
84
84
|
withCredentials: !0,
|
|
85
85
|
cacheEnable: !0
|
|
86
|
-
},
|
|
86
|
+
}, Nt = {
|
|
87
87
|
title: "oms",
|
|
88
88
|
fixedHeader: !1,
|
|
89
89
|
sidebarLogo: !0,
|
|
@@ -97,7 +97,7 @@ const Ln = {
|
|
|
97
97
|
ElementPlus: {
|
|
98
98
|
size: "default",
|
|
99
99
|
zIndex: 3e3,
|
|
100
|
-
locale:
|
|
100
|
+
locale: Ot
|
|
101
101
|
},
|
|
102
102
|
nav: [],
|
|
103
103
|
whiteRoutes: ["/login"],
|
|
@@ -110,25 +110,24 @@ const Ln = {
|
|
|
110
110
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~",
|
|
111
111
|
formMutex: !0,
|
|
112
112
|
captcha: !0,
|
|
113
|
-
themeMode: "light"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
settings: Kt,
|
|
113
|
+
themeMode: "light"
|
|
114
|
+
}, Be = {
|
|
115
|
+
axios: Tn,
|
|
116
|
+
settings: Nt,
|
|
118
117
|
plugins: [],
|
|
119
118
|
mock: !1
|
|
120
|
-
},
|
|
121
|
-
state: () => ({ ...
|
|
119
|
+
}, On = E(Nt), U = Ce("settings", {
|
|
120
|
+
state: () => ({ ...On }),
|
|
122
121
|
actions: {
|
|
123
122
|
updateSettings(e) {
|
|
124
123
|
q(this, e);
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
|
-
}),
|
|
126
|
+
}), pt = {
|
|
128
127
|
name: "",
|
|
129
128
|
nickname: "",
|
|
130
129
|
avatar: "",
|
|
131
|
-
token:
|
|
130
|
+
token: ve(),
|
|
132
131
|
customRouter: [],
|
|
133
132
|
remoteRouter: [],
|
|
134
133
|
menuRoutes: [],
|
|
@@ -138,27 +137,27 @@ const Ln = {
|
|
|
138
137
|
path: "",
|
|
139
138
|
env: "",
|
|
140
139
|
expired: !1
|
|
141
|
-
},
|
|
142
|
-
state: () => ({ ...
|
|
140
|
+
}, ft = (e) => typeof e.name == "string" ? e.name : e.path, j = Ce("user", {
|
|
141
|
+
state: () => ({ ...pt }),
|
|
143
142
|
actions: {
|
|
144
143
|
updateToken(e) {
|
|
145
|
-
this.token = e,
|
|
144
|
+
this.token = e, In(e);
|
|
146
145
|
},
|
|
147
146
|
removeToken() {
|
|
148
|
-
this.token = "",
|
|
147
|
+
this.token = "", Dt();
|
|
149
148
|
},
|
|
150
149
|
updateRemoteRouter(e) {
|
|
151
150
|
this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
|
|
152
151
|
},
|
|
153
152
|
setCustomRoutes(e) {
|
|
154
|
-
const t = new Set(this.customRouter.map((n) =>
|
|
153
|
+
const t = new Set(this.customRouter.map((n) => ft(n))), o = e.filter((n) => !t.has(ft(n)));
|
|
155
154
|
o.length && (this.customRouter = this.customRouter.concat(o));
|
|
156
155
|
},
|
|
157
156
|
updateState({ key: e, value: t }) {
|
|
158
157
|
this[e] = t;
|
|
159
158
|
},
|
|
160
159
|
resetUser() {
|
|
161
|
-
const e = { ...
|
|
160
|
+
const e = { ...pt, token: ve() };
|
|
162
161
|
Object.assign(this, e);
|
|
163
162
|
},
|
|
164
163
|
SET_EXPIRED() {
|
|
@@ -167,7 +166,7 @@ const Ln = {
|
|
|
167
166
|
// async actions
|
|
168
167
|
login(e) {
|
|
169
168
|
return new Promise((t, o) => {
|
|
170
|
-
const n =
|
|
169
|
+
const n = Pe();
|
|
171
170
|
if (!n) {
|
|
172
171
|
o("http client not init");
|
|
173
172
|
return;
|
|
@@ -186,7 +185,7 @@ const Ln = {
|
|
|
186
185
|
},
|
|
187
186
|
info() {
|
|
188
187
|
return new Promise((e, t) => {
|
|
189
|
-
const o =
|
|
188
|
+
const o = Pe();
|
|
190
189
|
if (!o) {
|
|
191
190
|
t("http client not init");
|
|
192
191
|
return;
|
|
@@ -198,13 +197,13 @@ const Ln = {
|
|
|
198
197
|
const l = n.data?.role_ids || [];
|
|
199
198
|
this.updateState({ key: "name", value: n.data?.name }), this.updateState({ key: "nickname", value: n.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: n.data?.env });
|
|
200
199
|
const s = n.data?.website || {};
|
|
201
|
-
|
|
200
|
+
U().updateSettings(s), !oe.get("username") && oe.set("username", n.data?.name), e(!0);
|
|
202
201
|
}).catch((n) => t(n));
|
|
203
202
|
});
|
|
204
203
|
},
|
|
205
204
|
loadRemoteRoutes() {
|
|
206
205
|
return new Promise((e, t) => {
|
|
207
|
-
|
|
206
|
+
Pe()?.request({
|
|
208
207
|
url: "/user/routes",
|
|
209
208
|
method: "get"
|
|
210
209
|
}).then((n) => {
|
|
@@ -222,23 +221,23 @@ const Ln = {
|
|
|
222
221
|
this.SET_EXPIRED();
|
|
223
222
|
}
|
|
224
223
|
}
|
|
225
|
-
}),
|
|
226
|
-
function
|
|
224
|
+
}), Ee = "sidebarStatus";
|
|
225
|
+
function $n() {
|
|
227
226
|
if (typeof window > "u")
|
|
228
227
|
return;
|
|
229
|
-
const e = window.localStorage.getItem(
|
|
228
|
+
const e = window.localStorage.getItem(Ee);
|
|
230
229
|
if (e !== null)
|
|
231
230
|
return e === "1";
|
|
232
|
-
const t = oe.get(
|
|
231
|
+
const t = oe.get(Ee);
|
|
233
232
|
if (t !== void 0)
|
|
234
233
|
return !!t;
|
|
235
234
|
}
|
|
236
|
-
function
|
|
237
|
-
typeof window < "u" && window.localStorage.setItem(
|
|
235
|
+
function mt(e) {
|
|
236
|
+
typeof window < "u" && window.localStorage.setItem(Ee, e ? "1" : "0"), oe.set(Ee, e ? "1" : "0");
|
|
238
237
|
}
|
|
239
|
-
const
|
|
238
|
+
const Bn = {
|
|
240
239
|
sidebar: {
|
|
241
|
-
opened:
|
|
240
|
+
opened: $n() ?? !0,
|
|
242
241
|
withoutAnimation: !1
|
|
243
242
|
},
|
|
244
243
|
device: "desktop",
|
|
@@ -246,14 +245,14 @@ const jn = {
|
|
|
246
245
|
currentRouteMeta: {},
|
|
247
246
|
builderSchema: {},
|
|
248
247
|
baseURL: ""
|
|
249
|
-
}, Y =
|
|
250
|
-
state: () => ({ ...
|
|
248
|
+
}, Y = Ce("app", {
|
|
249
|
+
state: () => ({ ...Bn }),
|
|
251
250
|
actions: {
|
|
252
251
|
TOGGLE_SIDEBAR() {
|
|
253
|
-
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1,
|
|
252
|
+
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, mt(this.sidebar.opened);
|
|
254
253
|
},
|
|
255
254
|
CLOSE_SIDEBAR(e) {
|
|
256
|
-
this.sidebar.opened = !1,
|
|
255
|
+
this.sidebar.opened = !1, mt(this.sidebar.opened), this.sidebar.withoutAnimation = e;
|
|
257
256
|
},
|
|
258
257
|
TOGGLE_DEVICE(e) {
|
|
259
258
|
this.device = e;
|
|
@@ -293,11 +292,11 @@ const jn = {
|
|
|
293
292
|
this.SET_BASE_API(e);
|
|
294
293
|
}
|
|
295
294
|
}
|
|
296
|
-
}),
|
|
295
|
+
}), An = {
|
|
297
296
|
currentCellItem: {}
|
|
298
297
|
// form/sub-form 当前单元格编辑数据
|
|
299
|
-
},
|
|
300
|
-
state: () => ({ ...
|
|
298
|
+
}, fr = Ce("builderSchema", {
|
|
299
|
+
state: () => ({ ...An }),
|
|
301
300
|
actions: {
|
|
302
301
|
SET_CURRENT_CELLITEM(e) {
|
|
303
302
|
this.currentCellItem = e;
|
|
@@ -306,27 +305,27 @@ const jn = {
|
|
|
306
305
|
this.SET_CURRENT_CELLITEM(e);
|
|
307
306
|
}
|
|
308
307
|
}
|
|
309
|
-
}),
|
|
310
|
-
function
|
|
311
|
-
e.use(
|
|
308
|
+
}), L = No();
|
|
309
|
+
function Rn(e) {
|
|
310
|
+
e.use(L);
|
|
312
311
|
}
|
|
313
|
-
const
|
|
314
|
-
let
|
|
315
|
-
function
|
|
316
|
-
const t =
|
|
312
|
+
const Vt = "oms-theme", Ut = C("light");
|
|
313
|
+
let ht = !1, Se = null;
|
|
314
|
+
function Pn(e) {
|
|
315
|
+
const t = fe(e ?? void 0);
|
|
317
316
|
if (typeof window > "u")
|
|
318
317
|
return t;
|
|
319
|
-
const o = window.localStorage?.getItem(
|
|
318
|
+
const o = window.localStorage?.getItem(Vt);
|
|
320
319
|
return o === "dark" || o === "light" ? o : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
321
320
|
}
|
|
322
|
-
function
|
|
323
|
-
typeof window < "u" && window.localStorage?.setItem(
|
|
321
|
+
function Ln(e) {
|
|
322
|
+
typeof window < "u" && window.localStorage?.setItem(Vt, e);
|
|
324
323
|
}
|
|
325
|
-
function
|
|
326
|
-
const t =
|
|
327
|
-
|
|
324
|
+
function Le(e) {
|
|
325
|
+
const t = fe(e);
|
|
326
|
+
Ut.value = t, Oo(t), $o(t), Ln(t);
|
|
328
327
|
}
|
|
329
|
-
function
|
|
328
|
+
function Mn(e) {
|
|
330
329
|
if (typeof window > "u" || typeof window.matchMedia != "function") {
|
|
331
330
|
Se = null;
|
|
332
331
|
return;
|
|
@@ -339,25 +338,25 @@ function Hn(e) {
|
|
|
339
338
|
typeof t.removeEventListener == "function" ? t.removeEventListener("change", o) : t.removeListener(o), Se = null;
|
|
340
339
|
};
|
|
341
340
|
}
|
|
342
|
-
function
|
|
343
|
-
const e =
|
|
344
|
-
const a =
|
|
345
|
-
e.themeMode !== a ? e.updateSettings({ themeMode: a }) :
|
|
341
|
+
function qt() {
|
|
342
|
+
const e = U(), t = (s) => {
|
|
343
|
+
const a = fe(s);
|
|
344
|
+
e.themeMode !== a ? e.updateSettings({ themeMode: a }) : Le(a);
|
|
346
345
|
};
|
|
347
|
-
if (!
|
|
348
|
-
|
|
349
|
-
const s =
|
|
350
|
-
|
|
346
|
+
if (!ht) {
|
|
347
|
+
ht = !0;
|
|
348
|
+
const s = Pn(e.themeMode);
|
|
349
|
+
fe(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Le(s), ye(
|
|
351
350
|
() => e.themeMode,
|
|
352
351
|
(a) => {
|
|
353
|
-
|
|
352
|
+
Le(fe(a));
|
|
354
353
|
},
|
|
355
354
|
{ immediate: !0 }
|
|
356
|
-
), Se?.(),
|
|
355
|
+
), Se?.(), Mn((a) => {
|
|
357
356
|
t(a);
|
|
358
357
|
});
|
|
359
358
|
}
|
|
360
|
-
const o =
|
|
359
|
+
const o = k(() => Ut.value), n = k(() => o.value === "dark");
|
|
361
360
|
return {
|
|
362
361
|
themeMode: o,
|
|
363
362
|
isDark: n,
|
|
@@ -367,25 +366,25 @@ function Wt() {
|
|
|
367
366
|
}
|
|
368
367
|
};
|
|
369
368
|
}
|
|
370
|
-
const
|
|
369
|
+
const Dn = /* @__PURE__ */ z({
|
|
371
370
|
__name: "App",
|
|
372
371
|
setup(e) {
|
|
373
|
-
return
|
|
372
|
+
return qt(), Ge(() => {
|
|
374
373
|
const t = document.getElementById("preloader");
|
|
375
|
-
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(),
|
|
374
|
+
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), Bo("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ao(`.iconfont {
|
|
376
375
|
font-size: 19px;
|
|
377
376
|
font-style: normal;
|
|
378
377
|
-webkit-font-smoothing: antialiased;
|
|
379
378
|
font-family: iconfont !important;
|
|
380
379
|
}`));
|
|
381
|
-
}), window?.OmsOptions?.form?.vsPath &&
|
|
382
|
-
const n =
|
|
383
|
-
return
|
|
380
|
+
}), window?.OmsOptions?.form?.vsPath && _o("vsPath", window?.OmsOptions?.form?.vsPath), (t, o) => {
|
|
381
|
+
const n = P("router-view");
|
|
382
|
+
return i(), m(n);
|
|
384
383
|
};
|
|
385
384
|
}
|
|
386
385
|
});
|
|
387
|
-
var
|
|
388
|
-
const
|
|
386
|
+
var ue = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ue || {});
|
|
387
|
+
const jn = [
|
|
389
388
|
{
|
|
390
389
|
type: "jump",
|
|
391
390
|
text: "跳转",
|
|
@@ -442,9 +441,9 @@ const Gn = [
|
|
|
442
441
|
}
|
|
443
442
|
];
|
|
444
443
|
[
|
|
445
|
-
...
|
|
444
|
+
...Vo.cloneDeep(jn)
|
|
446
445
|
];
|
|
447
|
-
const
|
|
446
|
+
const Nn = {
|
|
448
447
|
code: 0,
|
|
449
448
|
data: {
|
|
450
449
|
"list|0-100": [
|
|
@@ -465,9 +464,9 @@ const Kn = {
|
|
|
465
464
|
"page|1-5": 2
|
|
466
465
|
}
|
|
467
466
|
}
|
|
468
|
-
},
|
|
467
|
+
}, Vn = { listMock: Nn }, Un = [
|
|
469
468
|
{
|
|
470
|
-
method:
|
|
469
|
+
method: ue.POST,
|
|
471
470
|
url: "/login",
|
|
472
471
|
response(e) {
|
|
473
472
|
return {
|
|
@@ -480,7 +479,7 @@ const Kn = {
|
|
|
480
479
|
}
|
|
481
480
|
},
|
|
482
481
|
{
|
|
483
|
-
method:
|
|
482
|
+
method: ue.GET,
|
|
484
483
|
url: "/user/info",
|
|
485
484
|
response(e) {
|
|
486
485
|
return {
|
|
@@ -494,7 +493,7 @@ const Kn = {
|
|
|
494
493
|
},
|
|
495
494
|
{
|
|
496
495
|
url: "/user/routes",
|
|
497
|
-
method:
|
|
496
|
+
method: ue.GET,
|
|
498
497
|
response: (e) => ({
|
|
499
498
|
code: 0,
|
|
500
499
|
data: [
|
|
@@ -508,33 +507,33 @@ const Kn = {
|
|
|
508
507
|
},
|
|
509
508
|
{
|
|
510
509
|
url: "/user/list",
|
|
511
|
-
method:
|
|
512
|
-
response: (e) =>
|
|
510
|
+
method: ue.GET,
|
|
511
|
+
response: (e) => Vn.listMock
|
|
513
512
|
}
|
|
514
|
-
],
|
|
515
|
-
...
|
|
516
|
-
],
|
|
517
|
-
function
|
|
513
|
+
], qn = [
|
|
514
|
+
...Un
|
|
515
|
+
], Ue = {};
|
|
516
|
+
function Ht(e) {
|
|
518
517
|
e.forEach((t) => {
|
|
519
|
-
const o =
|
|
520
|
-
|
|
518
|
+
const o = Ft(t);
|
|
519
|
+
Ue[`${t.method}::${o}`] = t;
|
|
521
520
|
});
|
|
522
521
|
}
|
|
523
|
-
|
|
524
|
-
function
|
|
525
|
-
let t = e.url, o = e.baseURL ||
|
|
522
|
+
Ht(qn);
|
|
523
|
+
function Ft(e) {
|
|
524
|
+
let t = e.url, o = e.baseURL || Be.axios?.baseURL;
|
|
526
525
|
return o || (o = ""), typeof t == "string" ? (t = ("/" + o + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
527
526
|
}
|
|
528
|
-
function
|
|
529
|
-
Object.keys(
|
|
530
|
-
const t =
|
|
531
|
-
|
|
532
|
-
const { url: l, type: s, body: a } = n,
|
|
533
|
-
return
|
|
527
|
+
function Hn() {
|
|
528
|
+
Object.keys(Ue).forEach((e) => {
|
|
529
|
+
const t = Ue[e], o = Ft(t);
|
|
530
|
+
Re.mock(o, t.method, function(n) {
|
|
531
|
+
const { url: l, type: s, body: a } = n, c = Ro(l), d = a ? JSON.parse(a) : {}, f = t.response({ query: c, data: d }), p = Re.mock(f);
|
|
532
|
+
return Po(l, { type: s, query: c, data: d, response: p }), Re.mock(p);
|
|
534
533
|
});
|
|
535
534
|
});
|
|
536
535
|
}
|
|
537
|
-
const
|
|
536
|
+
const Fn = At, bt = Bt, Gn = We.CancelToken, we = {
|
|
538
537
|
taskList: {},
|
|
539
538
|
cacheList: /* @__PURE__ */ new Map(),
|
|
540
539
|
uniqueId(e) {
|
|
@@ -570,48 +569,48 @@ const Xn = Nt, wt = jt, Zn = Ye.CancelToken, xe = {
|
|
|
570
569
|
const t = this.uniqueId(e);
|
|
571
570
|
return this.cacheList.delete(t);
|
|
572
571
|
}
|
|
573
|
-
},
|
|
572
|
+
}, Kn = {
|
|
574
573
|
onFulfilled: function(e) {
|
|
575
|
-
return e.cacheEnable === !1 || (
|
|
576
|
-
|
|
574
|
+
return e.cacheEnable === !1 || (we.pending(e) && we.delTask(e), e.cancelToken = new Gn((t) => {
|
|
575
|
+
we.addTask(e, t);
|
|
577
576
|
})), e;
|
|
578
577
|
},
|
|
579
578
|
onRejected(e) {
|
|
580
579
|
return Promise.reject(e);
|
|
581
580
|
}
|
|
582
|
-
},
|
|
581
|
+
}, zn = {
|
|
583
582
|
onFulfilled: function(e) {
|
|
584
|
-
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;
|
|
585
584
|
},
|
|
586
585
|
onRejected(e) {
|
|
587
586
|
return Promise.reject(e);
|
|
588
587
|
}
|
|
589
|
-
},
|
|
590
|
-
function
|
|
591
|
-
|
|
588
|
+
}, Gt = {};
|
|
589
|
+
function mr(e, t) {
|
|
590
|
+
Gt[e] = t;
|
|
592
591
|
}
|
|
593
|
-
function
|
|
594
|
-
return
|
|
592
|
+
function Jn(e) {
|
|
593
|
+
return Gt[e];
|
|
595
594
|
}
|
|
596
|
-
const
|
|
595
|
+
const Wn = /* @__PURE__ */ z({
|
|
597
596
|
name: "Dashboard",
|
|
598
597
|
setup() {
|
|
599
|
-
const e =
|
|
598
|
+
const e = Jn("dashboard");
|
|
600
599
|
if (e)
|
|
601
|
-
return () =>
|
|
602
|
-
const t =
|
|
603
|
-
return () =>
|
|
600
|
+
return () => u("span", null, [u(e, null, null)]);
|
|
601
|
+
const t = k(() => j().name);
|
|
602
|
+
return () => u("div", {
|
|
604
603
|
class: "dashboard-container"
|
|
605
|
-
}, [
|
|
604
|
+
}, [u("div", {
|
|
606
605
|
class: "dashboard-text"
|
|
607
|
-
}, [
|
|
606
|
+
}, [T("Hi "), t.value, T(" 😄")])]);
|
|
608
607
|
}
|
|
609
|
-
}),
|
|
608
|
+
}), R = (e, t) => {
|
|
610
609
|
const o = e.__vccOpts || e;
|
|
611
610
|
for (const [n, l] of t)
|
|
612
611
|
o[n] = l;
|
|
613
612
|
return o;
|
|
614
|
-
},
|
|
613
|
+
}, Qn = /* @__PURE__ */ R(Wn, [["__scopeId", "data-v-85165680"]]), Xn = {
|
|
615
614
|
data() {
|
|
616
615
|
return {
|
|
617
616
|
levelList: null
|
|
@@ -643,7 +642,7 @@ const ol = /* @__PURE__ */ G({
|
|
|
643
642
|
},
|
|
644
643
|
pathCompile(e) {
|
|
645
644
|
const { params: t } = this.$route;
|
|
646
|
-
return
|
|
645
|
+
return hn.compile(e)(t);
|
|
647
646
|
},
|
|
648
647
|
handleLink(e) {
|
|
649
648
|
const { redirect: t, path: o } = e;
|
|
@@ -654,27 +653,27 @@ const ol = /* @__PURE__ */ G({
|
|
|
654
653
|
this.$router.push(this.pathCompile(o));
|
|
655
654
|
}
|
|
656
655
|
}
|
|
657
|
-
},
|
|
656
|
+
}, Zn = {
|
|
658
657
|
key: 0,
|
|
659
658
|
class: "no-redirect"
|
|
660
|
-
},
|
|
661
|
-
function
|
|
662
|
-
const a =
|
|
663
|
-
return
|
|
659
|
+
}, Yn = ["onClick"];
|
|
660
|
+
function el(e, t, o, n, l, s) {
|
|
661
|
+
const a = Xo, c = Qo;
|
|
662
|
+
return i(), m(c, {
|
|
664
663
|
class: "app-breadcrumb",
|
|
665
664
|
separator: "/"
|
|
666
665
|
}, {
|
|
667
|
-
default:
|
|
668
|
-
|
|
669
|
-
default:
|
|
670
|
-
(
|
|
666
|
+
default: r(() => [
|
|
667
|
+
u(vo, { name: "breadcrumb" }, {
|
|
668
|
+
default: r(() => [
|
|
669
|
+
(i(!0), v(A, null, V(l.levelList, (d, f) => (i(), m(a, {
|
|
671
670
|
key: d.path
|
|
672
671
|
}, {
|
|
673
|
-
default:
|
|
674
|
-
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 ||
|
|
672
|
+
default: r(() => [
|
|
673
|
+
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || f === l.levelList.length - 1 ? (i(), v("span", Zn, B(d.meta.title), 1)) : (i(), v("a", {
|
|
675
674
|
key: 1,
|
|
676
675
|
onClick: (p) => s.handleLink(d)
|
|
677
|
-
},
|
|
676
|
+
}, B(d.meta.title), 9, Yn))
|
|
678
677
|
]),
|
|
679
678
|
_: 2
|
|
680
679
|
}, 1024))), 128))
|
|
@@ -685,7 +684,7 @@ function il(e, t, o, n, l, s) {
|
|
|
685
684
|
_: 1
|
|
686
685
|
});
|
|
687
686
|
}
|
|
688
|
-
const
|
|
687
|
+
const tl = /* @__PURE__ */ R(Xn, [["render", el], ["__scopeId", "data-v-fa74804e"]]), ol = {
|
|
689
688
|
name: "Hamburger",
|
|
690
689
|
props: {
|
|
691
690
|
isActive: {
|
|
@@ -700,45 +699,45 @@ const rl = /* @__PURE__ */ L(ll, [["render", il], ["__scopeId", "data-v-fa74804e
|
|
|
700
699
|
}
|
|
701
700
|
}
|
|
702
701
|
};
|
|
703
|
-
function
|
|
704
|
-
const a =
|
|
705
|
-
return
|
|
702
|
+
function nl(e, t, o, n, l, s) {
|
|
703
|
+
const a = P("v-icon");
|
|
704
|
+
return i(), v("div", {
|
|
706
705
|
style: { padding: "0 15px" },
|
|
707
|
-
onClick: t[0] || (t[0] = (...
|
|
706
|
+
onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
|
|
708
707
|
}, [
|
|
709
|
-
|
|
708
|
+
u(a, {
|
|
710
709
|
class: te({ "is-active": o.isActive }),
|
|
711
710
|
name: "ra-leftalignment"
|
|
712
711
|
}, null, 8, ["class"])
|
|
713
712
|
]);
|
|
714
713
|
}
|
|
715
|
-
const
|
|
716
|
-
function
|
|
717
|
-
const o =
|
|
718
|
-
return
|
|
719
|
-
default:
|
|
720
|
-
|
|
721
|
-
default:
|
|
722
|
-
|
|
714
|
+
const ll = /* @__PURE__ */ R(ol, [["render", nl]]), sl = {};
|
|
715
|
+
function al(e, t) {
|
|
716
|
+
const o = _e, n = Yo, l = en, s = Zo;
|
|
717
|
+
return i(), m(s, { style: { width: "100%", height: "100%" } }, {
|
|
718
|
+
default: r(() => [
|
|
719
|
+
u(o, { class: "aside" }, {
|
|
720
|
+
default: r(() => [
|
|
721
|
+
pe(e.$slots, "left-aside", {}, void 0, !0)
|
|
723
722
|
]),
|
|
724
723
|
_: 3
|
|
725
724
|
}),
|
|
726
|
-
|
|
725
|
+
u(n, {
|
|
727
726
|
class: "main",
|
|
728
727
|
style: { margin: "0 10px" }
|
|
729
728
|
}, {
|
|
730
|
-
default:
|
|
731
|
-
|
|
729
|
+
default: r(() => [
|
|
730
|
+
pe(e.$slots, "main", {}, void 0, !0)
|
|
732
731
|
]),
|
|
733
732
|
_: 3
|
|
734
733
|
}),
|
|
735
|
-
|
|
734
|
+
u(l, {
|
|
736
735
|
class: "aside",
|
|
737
736
|
width: "350px",
|
|
738
737
|
style: { padding: "20px" }
|
|
739
738
|
}, {
|
|
740
|
-
default:
|
|
741
|
-
|
|
739
|
+
default: r(() => [
|
|
740
|
+
pe(e.$slots, "right-aside", {}, void 0, !0)
|
|
742
741
|
]),
|
|
743
742
|
_: 3
|
|
744
743
|
})
|
|
@@ -746,7 +745,7 @@ function ml(e, t) {
|
|
|
746
745
|
_: 3
|
|
747
746
|
});
|
|
748
747
|
}
|
|
749
|
-
const
|
|
748
|
+
const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b"]]), il = {
|
|
750
749
|
type: "input",
|
|
751
750
|
name: "文本框",
|
|
752
751
|
default: {
|
|
@@ -814,7 +813,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
814
813
|
}
|
|
815
814
|
}
|
|
816
815
|
]
|
|
817
|
-
},
|
|
816
|
+
}, rl = {
|
|
818
817
|
type: "number",
|
|
819
818
|
name: "数字",
|
|
820
819
|
default: {
|
|
@@ -856,7 +855,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
856
855
|
}
|
|
857
856
|
}
|
|
858
857
|
]
|
|
859
|
-
},
|
|
858
|
+
}, cl = {
|
|
860
859
|
type: "number-range",
|
|
861
860
|
name: "数字区间",
|
|
862
861
|
default: {
|
|
@@ -897,7 +896,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
897
896
|
}
|
|
898
897
|
}
|
|
899
898
|
]
|
|
900
|
-
},
|
|
899
|
+
}, ul = {
|
|
901
900
|
type: "select",
|
|
902
901
|
name: "下拉框",
|
|
903
902
|
default: {
|
|
@@ -1003,7 +1002,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1003
1002
|
const t = E(e);
|
|
1004
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;
|
|
1005
1004
|
}
|
|
1006
|
-
},
|
|
1005
|
+
}, dl = {
|
|
1007
1006
|
type: "radio",
|
|
1008
1007
|
name: "单选框",
|
|
1009
1008
|
default: {
|
|
@@ -1049,7 +1048,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1049
1048
|
label: "默认值"
|
|
1050
1049
|
}
|
|
1051
1050
|
]
|
|
1052
|
-
},
|
|
1051
|
+
}, pl = {
|
|
1053
1052
|
type: "switch",
|
|
1054
1053
|
name: "开关",
|
|
1055
1054
|
default: {
|
|
@@ -1105,7 +1104,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1105
1104
|
}
|
|
1106
1105
|
}
|
|
1107
1106
|
]
|
|
1108
|
-
},
|
|
1107
|
+
}, fl = {
|
|
1109
1108
|
type: "code",
|
|
1110
1109
|
name: "Code",
|
|
1111
1110
|
default: {
|
|
@@ -1125,7 +1124,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1125
1124
|
label: "字段key"
|
|
1126
1125
|
}
|
|
1127
1126
|
]
|
|
1128
|
-
},
|
|
1127
|
+
}, ml = {
|
|
1129
1128
|
type: "json",
|
|
1130
1129
|
name: "json",
|
|
1131
1130
|
default: {
|
|
@@ -1145,7 +1144,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1145
1144
|
label: "字段key"
|
|
1146
1145
|
}
|
|
1147
1146
|
]
|
|
1148
|
-
},
|
|
1147
|
+
}, hl = {
|
|
1149
1148
|
type: "upload",
|
|
1150
1149
|
name: "上传",
|
|
1151
1150
|
default: {
|
|
@@ -1165,7 +1164,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1165
1164
|
label: "字段key"
|
|
1166
1165
|
}
|
|
1167
1166
|
]
|
|
1168
|
-
},
|
|
1167
|
+
}, bl = {
|
|
1169
1168
|
type: "template",
|
|
1170
1169
|
name: "自定义组件",
|
|
1171
1170
|
default: {
|
|
@@ -1185,7 +1184,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1185
1184
|
label: "字段key"
|
|
1186
1185
|
}
|
|
1187
1186
|
]
|
|
1188
|
-
},
|
|
1187
|
+
}, yl = {
|
|
1189
1188
|
type: "icon-select",
|
|
1190
1189
|
name: "图标选择器",
|
|
1191
1190
|
default: {
|
|
@@ -1205,7 +1204,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1205
1204
|
label: "字段key"
|
|
1206
1205
|
}
|
|
1207
1206
|
]
|
|
1208
|
-
},
|
|
1207
|
+
}, _l = {
|
|
1209
1208
|
type: "sub-form",
|
|
1210
1209
|
name: "子表单",
|
|
1211
1210
|
default: {
|
|
@@ -1273,7 +1272,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1273
1272
|
}
|
|
1274
1273
|
}
|
|
1275
1274
|
]
|
|
1276
|
-
},
|
|
1275
|
+
}, vl = {
|
|
1277
1276
|
type: "checkbox",
|
|
1278
1277
|
name: "复选框",
|
|
1279
1278
|
default: {
|
|
@@ -1319,24 +1318,24 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
|
|
|
1319
1318
|
}
|
|
1320
1319
|
}
|
|
1321
1320
|
]
|
|
1322
|
-
},
|
|
1321
|
+
}, zt = {};
|
|
1323
1322
|
function H(e) {
|
|
1324
|
-
|
|
1323
|
+
zt[e.type] = e;
|
|
1325
1324
|
}
|
|
1325
|
+
H(il);
|
|
1326
|
+
H(ul);
|
|
1327
|
+
H(rl);
|
|
1328
|
+
H(cl);
|
|
1329
|
+
H(pl);
|
|
1330
|
+
H(_l);
|
|
1331
|
+
H(dl);
|
|
1332
|
+
H(vl);
|
|
1326
1333
|
H(fl);
|
|
1327
|
-
H(
|
|
1334
|
+
H(ml);
|
|
1328
1335
|
H(hl);
|
|
1336
|
+
H(yl);
|
|
1329
1337
|
H(bl);
|
|
1330
|
-
|
|
1331
|
-
H(El);
|
|
1332
|
-
H(_l);
|
|
1333
|
-
H(Il);
|
|
1334
|
-
H(gl);
|
|
1335
|
-
H(kl);
|
|
1336
|
-
H(wl);
|
|
1337
|
-
H(xl);
|
|
1338
|
-
H(Sl);
|
|
1339
|
-
const Ke = eo, Cl = {
|
|
1338
|
+
const qe = zt, gl = {
|
|
1340
1339
|
options: {
|
|
1341
1340
|
labelPosition: "top",
|
|
1342
1341
|
submitButton: !1,
|
|
@@ -1434,15 +1433,15 @@ const Ke = eo, Cl = {
|
|
|
1434
1433
|
}
|
|
1435
1434
|
}
|
|
1436
1435
|
]
|
|
1437
|
-
},
|
|
1436
|
+
}, Me = {
|
|
1438
1437
|
labelPosition: "top",
|
|
1439
1438
|
submitButton: !1,
|
|
1440
1439
|
cancelButton: !1
|
|
1441
|
-
},
|
|
1442
|
-
Object.keys(
|
|
1443
|
-
|
|
1440
|
+
}, lt = [];
|
|
1441
|
+
Object.keys(qe).forEach((e) => {
|
|
1442
|
+
lt.push({ value: e, label: qe[e].name });
|
|
1444
1443
|
});
|
|
1445
|
-
const
|
|
1444
|
+
const kl = {
|
|
1446
1445
|
options: {
|
|
1447
1446
|
submitButton: !1,
|
|
1448
1447
|
cancelButton: !1
|
|
@@ -1463,7 +1462,7 @@ const Tl = {
|
|
|
1463
1462
|
type: "select",
|
|
1464
1463
|
field: "type",
|
|
1465
1464
|
label: "类型",
|
|
1466
|
-
options: E(
|
|
1465
|
+
options: E(lt)
|
|
1467
1466
|
},
|
|
1468
1467
|
{
|
|
1469
1468
|
type: "input",
|
|
@@ -1474,8 +1473,8 @@ const Tl = {
|
|
|
1474
1473
|
}
|
|
1475
1474
|
}
|
|
1476
1475
|
]
|
|
1477
|
-
},
|
|
1478
|
-
components: { DevLayout:
|
|
1476
|
+
}, Sl = {
|
|
1477
|
+
components: { DevLayout: Kt, VForm: ne, VButton: ot, JsonView: tt },
|
|
1479
1478
|
props: {
|
|
1480
1479
|
schema: {
|
|
1481
1480
|
type: Object,
|
|
@@ -1486,8 +1485,8 @@ const Tl = {
|
|
|
1486
1485
|
data() {
|
|
1487
1486
|
return {
|
|
1488
1487
|
sqlOptions: {},
|
|
1489
|
-
sqlSchema:
|
|
1490
|
-
baseSchema:
|
|
1488
|
+
sqlSchema: kl,
|
|
1489
|
+
baseSchema: gl,
|
|
1491
1490
|
activeTab: "base",
|
|
1492
1491
|
builderSchema: Object.assign(
|
|
1493
1492
|
{},
|
|
@@ -1507,12 +1506,12 @@ const Tl = {
|
|
|
1507
1506
|
ctrlSchema: {},
|
|
1508
1507
|
ctrlName: "",
|
|
1509
1508
|
activeIndex: void 0,
|
|
1510
|
-
ctrlMap:
|
|
1509
|
+
ctrlMap: qe,
|
|
1511
1510
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
1512
1511
|
tableStruct: "",
|
|
1513
1512
|
activeName: "1",
|
|
1514
1513
|
currentCtrlType: "input",
|
|
1515
|
-
types: E(
|
|
1514
|
+
types: E(lt)
|
|
1516
1515
|
};
|
|
1517
1516
|
},
|
|
1518
1517
|
computed: {
|
|
@@ -1535,14 +1534,14 @@ const Tl = {
|
|
|
1535
1534
|
deep: !0,
|
|
1536
1535
|
// immediate: true,
|
|
1537
1536
|
handler(e) {
|
|
1538
|
-
const t =
|
|
1537
|
+
const t = me(this.builderSchema, this.activeIndex);
|
|
1539
1538
|
if (!t)
|
|
1540
1539
|
return;
|
|
1541
1540
|
const o = t ? t.type : "", n = this.ctrlMap[o], l = n.trans ? n.trans(e) : e;
|
|
1542
1541
|
if (l && Object.keys(l).length > 0) {
|
|
1543
1542
|
if (l.type = o, this.activeIndex.indexOf("[") > -1) {
|
|
1544
|
-
const [s, a,
|
|
1545
|
-
this.builderSchema[a][
|
|
1543
|
+
const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
1544
|
+
this.builderSchema[a][c] = { ...l };
|
|
1546
1545
|
} else
|
|
1547
1546
|
this.builderSchema[this.activeIndex] = l;
|
|
1548
1547
|
this.key++;
|
|
@@ -1553,10 +1552,10 @@ const Tl = {
|
|
|
1553
1552
|
handler(e) {
|
|
1554
1553
|
const t = this.ctrlMap[e];
|
|
1555
1554
|
this.ctrlSchema = E({
|
|
1556
|
-
options: E(
|
|
1555
|
+
options: E(Me),
|
|
1557
1556
|
formItems: E(t.builder)
|
|
1558
1557
|
});
|
|
1559
|
-
const o =
|
|
1558
|
+
const o = me(this.builderSchema, this.activeIndex);
|
|
1560
1559
|
this.ctrlOptions = E(o), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
1561
1560
|
}
|
|
1562
1561
|
}
|
|
@@ -1578,23 +1577,23 @@ const Tl = {
|
|
|
1578
1577
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
1579
1578
|
const o = this.ctrlMap[e];
|
|
1580
1579
|
this.activeCtrl = o, this.builderSchema[t].push(E(o.default)), this.ctrlSchema = E({
|
|
1581
|
-
options: E(
|
|
1580
|
+
options: E(Me),
|
|
1582
1581
|
formItems: E(o.builder)
|
|
1583
1582
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
1584
1583
|
},
|
|
1585
1584
|
removeOne() {
|
|
1586
|
-
|
|
1585
|
+
$t(this.builderSchema, this.activeIndex), this.builderSchema = E(Et(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
1587
1586
|
},
|
|
1588
1587
|
clicklabel() {
|
|
1589
1588
|
const e = this.activeIndex;
|
|
1590
1589
|
if (e.match(this.activeIndexReg)) {
|
|
1591
|
-
const o = E(
|
|
1590
|
+
const o = E(me(this.builderSchema, e)), n = o.type, l = this.ctrlMap[n];
|
|
1592
1591
|
if (!l) {
|
|
1593
1592
|
this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
|
|
1594
1593
|
return;
|
|
1595
1594
|
}
|
|
1596
1595
|
this.currentCtrlType = n, this.ctrlOptions = o, this.ctrlSchema = E({
|
|
1597
|
-
options: E(
|
|
1596
|
+
options: E(Me),
|
|
1598
1597
|
formItems: E(l.builder)
|
|
1599
1598
|
}), this.ctrlKey++;
|
|
1600
1599
|
}
|
|
@@ -1610,50 +1609,50 @@ const Tl = {
|
|
|
1610
1609
|
}
|
|
1611
1610
|
}
|
|
1612
1611
|
};
|
|
1613
|
-
function
|
|
1614
|
-
const a =
|
|
1615
|
-
return
|
|
1616
|
-
main:
|
|
1617
|
-
l.builderSchema.formItems ? (
|
|
1612
|
+
function wl(e, t, o, n, l, s) {
|
|
1613
|
+
const a = P("v-form"), c = Rt, d = he, f = P("JsonView"), p = P("VButton"), b = Ye, S = Ze, I = Xe, O = Qe, w = P("dev-layout");
|
|
1614
|
+
return i(), m(w, null, {
|
|
1615
|
+
main: r(() => [
|
|
1616
|
+
l.builderSchema.formItems ? (i(), m(a, X({
|
|
1618
1617
|
ref: "form",
|
|
1619
1618
|
key: l.key,
|
|
1620
1619
|
dev: !0
|
|
1621
1620
|
}, l.builderSchema), null, 16)) : $("", !0),
|
|
1622
|
-
c
|
|
1623
|
-
|
|
1621
|
+
u(c),
|
|
1622
|
+
u(d, {
|
|
1624
1623
|
type: "primary",
|
|
1625
1624
|
onClick: s.saveSchema
|
|
1626
1625
|
}, {
|
|
1627
|
-
default:
|
|
1628
|
-
|
|
1626
|
+
default: r(() => [...t[2] || (t[2] = [
|
|
1627
|
+
T("保存页面配置", -1)
|
|
1629
1628
|
])]),
|
|
1630
1629
|
_: 1
|
|
1631
1630
|
}, 8, ["onClick"]),
|
|
1632
|
-
t[3] || (t[3] =
|
|
1633
|
-
|
|
1631
|
+
t[3] || (t[3] = T(" ", -1)),
|
|
1632
|
+
u(p, {
|
|
1634
1633
|
text: "PageSchema",
|
|
1635
1634
|
type: "modal"
|
|
1636
1635
|
}, {
|
|
1637
|
-
default:
|
|
1638
|
-
|
|
1636
|
+
default: r(() => [
|
|
1637
|
+
u(f, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
1639
1638
|
]),
|
|
1640
1639
|
_: 1
|
|
1641
1640
|
})
|
|
1642
1641
|
]),
|
|
1643
|
-
"right-aside":
|
|
1644
|
-
l.activeIndex ? (
|
|
1645
|
-
default:
|
|
1646
|
-
|
|
1647
|
-
default:
|
|
1648
|
-
|
|
1642
|
+
"right-aside": r(() => [
|
|
1643
|
+
l.activeIndex ? (i(), m(O, { key: 0 }, {
|
|
1644
|
+
default: r(() => [
|
|
1645
|
+
u(I, { label: "控件类型" }, {
|
|
1646
|
+
default: r(() => [
|
|
1647
|
+
u(S, {
|
|
1649
1648
|
modelValue: l.currentCtrlType,
|
|
1650
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1649
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => l.currentCtrlType = y)
|
|
1651
1650
|
}, {
|
|
1652
|
-
default:
|
|
1653
|
-
(
|
|
1654
|
-
key:
|
|
1655
|
-
label:
|
|
1656
|
-
value:
|
|
1651
|
+
default: r(() => [
|
|
1652
|
+
(i(!0), v(A, null, V(l.types, (y, x) => (i(), m(b, {
|
|
1653
|
+
key: x,
|
|
1654
|
+
label: y.label,
|
|
1655
|
+
value: y.value
|
|
1657
1656
|
}, null, 8, ["label", "value"]))), 128))
|
|
1658
1657
|
]),
|
|
1659
1658
|
_: 1
|
|
@@ -1664,16 +1663,16 @@ function $l(e, t, o, n, l, s) {
|
|
|
1664
1663
|
]),
|
|
1665
1664
|
_: 1
|
|
1666
1665
|
})) : $("", !0),
|
|
1667
|
-
(
|
|
1666
|
+
(i(), m(a, X({
|
|
1668
1667
|
key: l.ctrlKey,
|
|
1669
1668
|
modelValue: l.ctrlOptions,
|
|
1670
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1669
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => l.ctrlOptions = y)
|
|
1671
1670
|
}, l.ctrlSchema), null, 16, ["modelValue"]))
|
|
1672
1671
|
]),
|
|
1673
1672
|
_: 1
|
|
1674
1673
|
});
|
|
1675
1674
|
}
|
|
1676
|
-
const
|
|
1675
|
+
const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171"]]), El = {
|
|
1677
1676
|
type: "input",
|
|
1678
1677
|
name: "文本框",
|
|
1679
1678
|
default: {
|
|
@@ -1721,7 +1720,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
1721
1720
|
}
|
|
1722
1721
|
}
|
|
1723
1722
|
]
|
|
1724
|
-
},
|
|
1723
|
+
}, Il = {
|
|
1725
1724
|
type: "select",
|
|
1726
1725
|
name: "下拉框",
|
|
1727
1726
|
default: {
|
|
@@ -1822,7 +1821,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
1822
1821
|
const t = E(e);
|
|
1823
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;
|
|
1824
1823
|
}
|
|
1825
|
-
},
|
|
1824
|
+
}, Cl = {
|
|
1826
1825
|
type: "date",
|
|
1827
1826
|
name: "日期",
|
|
1828
1827
|
default: {
|
|
@@ -1842,7 +1841,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
1842
1841
|
label: "字段key"
|
|
1843
1842
|
}
|
|
1844
1843
|
]
|
|
1845
|
-
},
|
|
1844
|
+
}, yt = {
|
|
1846
1845
|
options: {
|
|
1847
1846
|
labelPosition: "top",
|
|
1848
1847
|
submitButton: !1,
|
|
@@ -1867,11 +1866,11 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
1867
1866
|
label: "导出按钮"
|
|
1868
1867
|
}
|
|
1869
1868
|
]
|
|
1870
|
-
},
|
|
1869
|
+
}, De = {
|
|
1871
1870
|
labelPosition: "top",
|
|
1872
1871
|
submitButton: !1,
|
|
1873
1872
|
cancelButton: !1
|
|
1874
|
-
},
|
|
1873
|
+
}, Tl = {
|
|
1875
1874
|
type: "span",
|
|
1876
1875
|
name: "文本",
|
|
1877
1876
|
default: {
|
|
@@ -1901,7 +1900,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
1901
1900
|
label: "排序"
|
|
1902
1901
|
}
|
|
1903
1902
|
]
|
|
1904
|
-
},
|
|
1903
|
+
}, Ol = {
|
|
1905
1904
|
type: "enum",
|
|
1906
1905
|
name: "标签",
|
|
1907
1906
|
default: {
|
|
@@ -1952,7 +1951,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
1952
1951
|
trans(e) {
|
|
1953
1952
|
return e.options = e.options || [], e.label || (e.label = "表头"), e;
|
|
1954
1953
|
}
|
|
1955
|
-
},
|
|
1954
|
+
}, $l = {
|
|
1956
1955
|
type: "html",
|
|
1957
1956
|
name: "HTML",
|
|
1958
1957
|
default: {
|
|
@@ -1977,7 +1976,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
1977
1976
|
label: "提示"
|
|
1978
1977
|
}
|
|
1979
1978
|
]
|
|
1980
|
-
},
|
|
1979
|
+
}, Bl = {
|
|
1981
1980
|
type: "icon",
|
|
1982
1981
|
name: "图标",
|
|
1983
1982
|
default: {
|
|
@@ -2002,7 +2001,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2002
2001
|
label: "提示"
|
|
2003
2002
|
}
|
|
2004
2003
|
]
|
|
2005
|
-
},
|
|
2004
|
+
}, Al = {
|
|
2006
2005
|
type: "image",
|
|
2007
2006
|
name: "图片",
|
|
2008
2007
|
default: {
|
|
@@ -2027,7 +2026,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2027
2026
|
label: "提示"
|
|
2028
2027
|
}
|
|
2029
2028
|
]
|
|
2030
|
-
},
|
|
2029
|
+
}, Rl = {
|
|
2031
2030
|
type: "json",
|
|
2032
2031
|
name: "JSON",
|
|
2033
2032
|
default: {
|
|
@@ -2052,7 +2051,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2052
2051
|
label: "提示"
|
|
2053
2052
|
}
|
|
2054
2053
|
]
|
|
2055
|
-
},
|
|
2054
|
+
}, Pl = {
|
|
2056
2055
|
type: "link",
|
|
2057
2056
|
name: "链接",
|
|
2058
2057
|
default: {
|
|
@@ -2077,7 +2076,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2077
2076
|
label: "提示"
|
|
2078
2077
|
}
|
|
2079
2078
|
]
|
|
2080
|
-
},
|
|
2079
|
+
}, Ll = {
|
|
2081
2080
|
type: "rich",
|
|
2082
2081
|
name: "富文本",
|
|
2083
2082
|
default: {
|
|
@@ -2102,7 +2101,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2102
2101
|
label: "提示"
|
|
2103
2102
|
}
|
|
2104
2103
|
]
|
|
2105
|
-
},
|
|
2104
|
+
}, Ml = {
|
|
2106
2105
|
type: "tpl",
|
|
2107
2106
|
name: "模板",
|
|
2108
2107
|
default: {
|
|
@@ -2133,17 +2132,17 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2133
2132
|
info: "例如 <code>姓名: {name} 年龄:{age}</code>"
|
|
2134
2133
|
}
|
|
2135
2134
|
]
|
|
2136
|
-
},
|
|
2137
|
-
span:
|
|
2138
|
-
enum:
|
|
2139
|
-
html:
|
|
2140
|
-
icon:
|
|
2141
|
-
image:
|
|
2142
|
-
json:
|
|
2143
|
-
link:
|
|
2144
|
-
rich:
|
|
2145
|
-
tpl:
|
|
2146
|
-
},
|
|
2135
|
+
}, Dl = {
|
|
2136
|
+
span: Tl,
|
|
2137
|
+
enum: Ol,
|
|
2138
|
+
html: $l,
|
|
2139
|
+
icon: Bl,
|
|
2140
|
+
image: Al,
|
|
2141
|
+
json: Rl,
|
|
2142
|
+
link: Pl,
|
|
2143
|
+
rich: Ll,
|
|
2144
|
+
tpl: Ml
|
|
2145
|
+
}, jl = {
|
|
2147
2146
|
type: "jump",
|
|
2148
2147
|
name: "跳转",
|
|
2149
2148
|
default: {
|
|
@@ -2190,7 +2189,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2190
2189
|
}
|
|
2191
2190
|
}
|
|
2192
2191
|
]
|
|
2193
|
-
},
|
|
2192
|
+
}, Nl = {
|
|
2194
2193
|
type: "api",
|
|
2195
2194
|
name: "接口请求",
|
|
2196
2195
|
default: {
|
|
@@ -2259,7 +2258,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2259
2258
|
}
|
|
2260
2259
|
}
|
|
2261
2260
|
]
|
|
2262
|
-
},
|
|
2261
|
+
}, Vl = {
|
|
2263
2262
|
type: "form",
|
|
2264
2263
|
name: "弹框表单",
|
|
2265
2264
|
default: {
|
|
@@ -2313,7 +2312,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2313
2312
|
label: "保存接口"
|
|
2314
2313
|
}
|
|
2315
2314
|
]
|
|
2316
|
-
},
|
|
2315
|
+
}, Ul = {
|
|
2317
2316
|
type: "table",
|
|
2318
2317
|
name: "弹框列表",
|
|
2319
2318
|
default: {
|
|
@@ -2367,13 +2366,13 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2367
2366
|
label: "保存接口"
|
|
2368
2367
|
}
|
|
2369
2368
|
]
|
|
2370
|
-
},
|
|
2371
|
-
jump:
|
|
2372
|
-
api:
|
|
2373
|
-
form:
|
|
2374
|
-
table:
|
|
2375
|
-
},
|
|
2376
|
-
components: { JsonView:
|
|
2369
|
+
}, ql = {
|
|
2370
|
+
jump: jl,
|
|
2371
|
+
api: Nl,
|
|
2372
|
+
form: Vl,
|
|
2373
|
+
table: Ul
|
|
2374
|
+
}, Hl = {
|
|
2375
|
+
components: { JsonView: tt, DevLayout: Kt, VTable: be, VForm: ne, VButton: ot },
|
|
2377
2376
|
props: {
|
|
2378
2377
|
schema: {
|
|
2379
2378
|
type: Object,
|
|
@@ -2382,13 +2381,13 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2382
2381
|
}
|
|
2383
2382
|
},
|
|
2384
2383
|
data() {
|
|
2385
|
-
const e =
|
|
2384
|
+
const e = go(this.$props.schema);
|
|
2386
2385
|
return delete e.listApi, e.list = [{}], {
|
|
2387
|
-
baseSchema:
|
|
2386
|
+
baseSchema: yt,
|
|
2388
2387
|
activeTab: "base",
|
|
2389
2388
|
builderSchema: Object.assign(
|
|
2390
2389
|
{},
|
|
2391
|
-
|
|
2390
|
+
yt,
|
|
2392
2391
|
e
|
|
2393
2392
|
),
|
|
2394
2393
|
baseOptions: {},
|
|
@@ -2401,9 +2400,9 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2401
2400
|
ctrlName: "",
|
|
2402
2401
|
activeIndex: void 0,
|
|
2403
2402
|
ctrlMap: {
|
|
2404
|
-
filter: { input:
|
|
2405
|
-
headers:
|
|
2406
|
-
buttons:
|
|
2403
|
+
filter: { input: El, select: Il, date: Cl },
|
|
2404
|
+
headers: Dl,
|
|
2405
|
+
buttons: ql
|
|
2407
2406
|
},
|
|
2408
2407
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2409
2408
|
currentCtrlType: "input"
|
|
@@ -2452,8 +2451,8 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2452
2451
|
const l = n.trans ? n.trans(e) : e;
|
|
2453
2452
|
if (l && Object.keys(l).length > 0) {
|
|
2454
2453
|
if (l.type = o, this.activeIndex.indexOf("[") > -1) {
|
|
2455
|
-
const [s, a,
|
|
2456
|
-
this.builderSchema[a][
|
|
2454
|
+
const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2455
|
+
this.builderSchema[a][c] = { ...l };
|
|
2457
2456
|
} else
|
|
2458
2457
|
this.builderSchema[this.activeIndex] = l;
|
|
2459
2458
|
this.key++;
|
|
@@ -2465,10 +2464,10 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2465
2464
|
handler(e) {
|
|
2466
2465
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
2467
2466
|
this.ctrlSchema = E({
|
|
2468
|
-
options: E(
|
|
2467
|
+
options: E(De),
|
|
2469
2468
|
formItems: E(t.builder)
|
|
2470
2469
|
});
|
|
2471
|
-
const o =
|
|
2470
|
+
const o = me(this.builderSchema, this.activeIndex);
|
|
2472
2471
|
o.type = e;
|
|
2473
2472
|
const n = E(o);
|
|
2474
2473
|
this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
@@ -2513,17 +2512,17 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2513
2512
|
return;
|
|
2514
2513
|
}
|
|
2515
2514
|
this.activeCtrl = l[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(E(l[e].default)), this.ctrlSchema = E({
|
|
2516
|
-
options: E(
|
|
2515
|
+
options: E(De),
|
|
2517
2516
|
formItems: E(l[e].builder)
|
|
2518
2517
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2519
2518
|
},
|
|
2520
2519
|
removeOne() {
|
|
2521
|
-
|
|
2520
|
+
$t(this.builderSchema, this.activeIndex), this.builderSchema = E(Et(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2522
2521
|
},
|
|
2523
2522
|
clicklabel() {
|
|
2524
2523
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
2525
2524
|
if (t) {
|
|
2526
|
-
const o = E(
|
|
2525
|
+
const o = E(me(this.builderSchema, e));
|
|
2527
2526
|
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
|
|
2528
2527
|
let n = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
2529
2528
|
t[1] === "headers" && n === void 0 && (n = "span");
|
|
@@ -2533,7 +2532,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2533
2532
|
return;
|
|
2534
2533
|
}
|
|
2535
2534
|
this.ctrlOptions = o, this.currentCtrlType = n, this.ctrlSchema = E({
|
|
2536
|
-
options: E(
|
|
2535
|
+
options: E(De),
|
|
2537
2536
|
formItems: E(l.builder)
|
|
2538
2537
|
}), this.ctrlKey++;
|
|
2539
2538
|
}
|
|
@@ -2556,59 +2555,59 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2556
2555
|
}
|
|
2557
2556
|
}
|
|
2558
2557
|
};
|
|
2559
|
-
function
|
|
2560
|
-
const a =
|
|
2561
|
-
return
|
|
2562
|
-
"left-aside":
|
|
2563
|
-
|
|
2564
|
-
default:
|
|
2565
|
-
|
|
2566
|
-
default:
|
|
2567
|
-
|
|
2558
|
+
function Fl(e, t, o, n, l, s) {
|
|
2559
|
+
const a = Oe, c = he, d = _e, f = P("v-table"), p = Rt, b = he, S = P("JsonView"), I = P("VButton"), O = Ye, w = Ze, y = Xe, x = Qe, F = P("v-form"), G = P("dev-layout");
|
|
2560
|
+
return i(), m(G, null, {
|
|
2561
|
+
"left-aside": r(() => [
|
|
2562
|
+
u(d, { style: { width: "200px" } }, {
|
|
2563
|
+
default: r(() => [
|
|
2564
|
+
u(d, null, {
|
|
2565
|
+
default: r(() => [
|
|
2566
|
+
u(a, {
|
|
2568
2567
|
class: "title",
|
|
2569
2568
|
"data-id": 22222
|
|
2570
2569
|
}, {
|
|
2571
|
-
default:
|
|
2572
|
-
|
|
2570
|
+
default: r(() => [...t[5] || (t[5] = [
|
|
2571
|
+
T("添加搜索条件", -1)
|
|
2573
2572
|
])]),
|
|
2574
2573
|
_: 1
|
|
2575
2574
|
}),
|
|
2576
|
-
|
|
2577
|
-
default:
|
|
2578
|
-
c
|
|
2575
|
+
u(a, { class: "ctrl" }, {
|
|
2576
|
+
default: r(() => [
|
|
2577
|
+
u(c, {
|
|
2579
2578
|
class: "ctrl-btn",
|
|
2580
|
-
onClick: t[0] || (t[0] = (
|
|
2579
|
+
onClick: t[0] || (t[0] = (g) => s.pushFilter("input"))
|
|
2581
2580
|
}, {
|
|
2582
|
-
default:
|
|
2583
|
-
|
|
2581
|
+
default: r(() => [...t[6] || (t[6] = [
|
|
2582
|
+
T("文本框", -1)
|
|
2584
2583
|
])]),
|
|
2585
2584
|
_: 1
|
|
2586
2585
|
})
|
|
2587
2586
|
]),
|
|
2588
2587
|
_: 1
|
|
2589
2588
|
}),
|
|
2590
|
-
|
|
2591
|
-
default:
|
|
2592
|
-
c
|
|
2589
|
+
u(a, { class: "ctrl" }, {
|
|
2590
|
+
default: r(() => [
|
|
2591
|
+
u(c, {
|
|
2593
2592
|
class: "ctrl-btn",
|
|
2594
|
-
onClick: t[1] || (t[1] = (
|
|
2593
|
+
onClick: t[1] || (t[1] = (g) => s.pushFilter("select"))
|
|
2595
2594
|
}, {
|
|
2596
|
-
default:
|
|
2597
|
-
|
|
2595
|
+
default: r(() => [...t[7] || (t[7] = [
|
|
2596
|
+
T("下拉框", -1)
|
|
2598
2597
|
])]),
|
|
2599
2598
|
_: 1
|
|
2600
2599
|
})
|
|
2601
2600
|
]),
|
|
2602
2601
|
_: 1
|
|
2603
2602
|
}),
|
|
2604
|
-
|
|
2605
|
-
default:
|
|
2606
|
-
c
|
|
2603
|
+
u(a, { class: "ctrl" }, {
|
|
2604
|
+
default: r(() => [
|
|
2605
|
+
u(c, {
|
|
2607
2606
|
class: "ctrl-btn",
|
|
2608
|
-
onClick: t[2] || (t[2] = (
|
|
2607
|
+
onClick: t[2] || (t[2] = (g) => s.pushFilter("date"))
|
|
2609
2608
|
}, {
|
|
2610
|
-
default:
|
|
2611
|
-
|
|
2609
|
+
default: r(() => [...t[8] || (t[8] = [
|
|
2610
|
+
T("日期", -1)
|
|
2612
2611
|
])]),
|
|
2613
2612
|
_: 1
|
|
2614
2613
|
})
|
|
@@ -2618,25 +2617,25 @@ function Xl(e, t, o, n, l, s) {
|
|
|
2618
2617
|
]),
|
|
2619
2618
|
_: 1
|
|
2620
2619
|
}),
|
|
2621
|
-
|
|
2622
|
-
default:
|
|
2623
|
-
|
|
2624
|
-
default:
|
|
2625
|
-
|
|
2620
|
+
u(d, null, {
|
|
2621
|
+
default: r(() => [
|
|
2622
|
+
u(a, { class: "title" }, {
|
|
2623
|
+
default: r(() => [...t[9] || (t[9] = [
|
|
2624
|
+
T("添加列表项", -1)
|
|
2626
2625
|
])]),
|
|
2627
2626
|
_: 1
|
|
2628
2627
|
}),
|
|
2629
|
-
(
|
|
2630
|
-
key: `column-${
|
|
2628
|
+
(i(!0), v(A, null, V(Object.keys(l.ctrlMap.headers), (g, M) => (i(), m(a, {
|
|
2629
|
+
key: `column-${M}`,
|
|
2631
2630
|
class: "ctrl"
|
|
2632
2631
|
}, {
|
|
2633
|
-
default:
|
|
2634
|
-
c
|
|
2632
|
+
default: r(() => [
|
|
2633
|
+
u(c, {
|
|
2635
2634
|
class: "ctrl-btn",
|
|
2636
|
-
onClick: (
|
|
2635
|
+
onClick: (ee) => s.pushHeaders(l.ctrlMap.headers[g].type)
|
|
2637
2636
|
}, {
|
|
2638
|
-
default:
|
|
2639
|
-
|
|
2637
|
+
default: r(() => [
|
|
2638
|
+
T(B(l.ctrlMap.headers[g].name), 1)
|
|
2640
2639
|
]),
|
|
2641
2640
|
_: 2
|
|
2642
2641
|
}, 1032, ["onClick"])
|
|
@@ -2646,25 +2645,25 @@ function Xl(e, t, o, n, l, s) {
|
|
|
2646
2645
|
]),
|
|
2647
2646
|
_: 1
|
|
2648
2647
|
}),
|
|
2649
|
-
|
|
2650
|
-
default:
|
|
2651
|
-
|
|
2652
|
-
default:
|
|
2653
|
-
|
|
2648
|
+
u(d, null, {
|
|
2649
|
+
default: r(() => [
|
|
2650
|
+
u(a, { class: "title" }, {
|
|
2651
|
+
default: r(() => [...t[10] || (t[10] = [
|
|
2652
|
+
T("添加行按钮", -1)
|
|
2654
2653
|
])]),
|
|
2655
2654
|
_: 1
|
|
2656
2655
|
}),
|
|
2657
|
-
(
|
|
2658
|
-
key: `column-${
|
|
2656
|
+
(i(!0), v(A, null, V(Object.keys(l.ctrlMap.buttons), (g, M) => (i(), m(a, {
|
|
2657
|
+
key: `column-${M}`,
|
|
2659
2658
|
class: "ctrl"
|
|
2660
2659
|
}, {
|
|
2661
|
-
default:
|
|
2662
|
-
c
|
|
2660
|
+
default: r(() => [
|
|
2661
|
+
u(c, {
|
|
2663
2662
|
class: "ctrl-btn",
|
|
2664
|
-
onClick: (
|
|
2663
|
+
onClick: (ee) => s.pushRowButton(l.ctrlMap.buttons[g].type)
|
|
2665
2664
|
}, {
|
|
2666
|
-
default:
|
|
2667
|
-
|
|
2665
|
+
default: r(() => [
|
|
2666
|
+
T(B(l.ctrlMap.buttons[g].name), 1)
|
|
2668
2667
|
]),
|
|
2669
2668
|
_: 2
|
|
2670
2669
|
}, 1032, ["onClick"])
|
|
@@ -2674,36 +2673,36 @@ function Xl(e, t, o, n, l, s) {
|
|
|
2674
2673
|
]),
|
|
2675
2674
|
_: 1
|
|
2676
2675
|
}),
|
|
2677
|
-
|
|
2678
|
-
default:
|
|
2679
|
-
|
|
2680
|
-
default:
|
|
2681
|
-
|
|
2676
|
+
u(d, null, {
|
|
2677
|
+
default: r(() => [
|
|
2678
|
+
u(a, { class: "title" }, {
|
|
2679
|
+
default: r(() => [...t[11] || (t[11] = [
|
|
2680
|
+
T("添加常规按钮", -1)
|
|
2682
2681
|
])]),
|
|
2683
2682
|
_: 1
|
|
2684
2683
|
}),
|
|
2685
|
-
(
|
|
2686
|
-
key: `column-${
|
|
2684
|
+
(i(!0), v(A, null, V(Object.keys(l.ctrlMap.buttons), (g, M) => (i(), m(a, {
|
|
2685
|
+
key: `column-${M}`,
|
|
2687
2686
|
class: "ctrl"
|
|
2688
2687
|
}, {
|
|
2689
|
-
default:
|
|
2690
|
-
c
|
|
2688
|
+
default: r(() => [
|
|
2689
|
+
u(c, {
|
|
2691
2690
|
class: "ctrl-btn",
|
|
2692
|
-
onClick: (
|
|
2691
|
+
onClick: (ee) => s.pushNormalButton(l.ctrlMap.buttons[g].type)
|
|
2693
2692
|
}, {
|
|
2694
|
-
default:
|
|
2695
|
-
|
|
2693
|
+
default: r(() => [
|
|
2694
|
+
T(B(l.ctrlMap.buttons[g].name), 1)
|
|
2696
2695
|
]),
|
|
2697
2696
|
_: 2
|
|
2698
2697
|
}, 1032, ["onClick"])
|
|
2699
2698
|
]),
|
|
2700
2699
|
_: 2
|
|
2701
2700
|
}, 1024))), 128)),
|
|
2702
|
-
|
|
2703
|
-
default:
|
|
2704
|
-
c
|
|
2705
|
-
default:
|
|
2706
|
-
|
|
2701
|
+
u(a, { class: "ctrl" }, {
|
|
2702
|
+
default: r(() => [
|
|
2703
|
+
u(c, { class: "ctrl-btn" }, {
|
|
2704
|
+
default: r(() => [...t[12] || (t[12] = [
|
|
2705
|
+
T("按钮组", -1)
|
|
2707
2706
|
])]),
|
|
2708
2707
|
_: 1
|
|
2709
2708
|
})
|
|
@@ -2713,36 +2712,36 @@ function Xl(e, t, o, n, l, s) {
|
|
|
2713
2712
|
]),
|
|
2714
2713
|
_: 1
|
|
2715
2714
|
}),
|
|
2716
|
-
|
|
2717
|
-
default:
|
|
2718
|
-
|
|
2719
|
-
default:
|
|
2720
|
-
|
|
2715
|
+
u(d, null, {
|
|
2716
|
+
default: r(() => [
|
|
2717
|
+
u(a, { class: "title" }, {
|
|
2718
|
+
default: r(() => [...t[13] || (t[13] = [
|
|
2719
|
+
T("添加批量按钮", -1)
|
|
2721
2720
|
])]),
|
|
2722
2721
|
_: 1
|
|
2723
2722
|
}),
|
|
2724
|
-
(
|
|
2725
|
-
key: `column-${
|
|
2723
|
+
(i(!0), v(A, null, V(Object.keys(l.ctrlMap.buttons), (g, M) => (i(), m(a, {
|
|
2724
|
+
key: `column-${M}`,
|
|
2726
2725
|
class: "ctrl"
|
|
2727
2726
|
}, {
|
|
2728
|
-
default:
|
|
2729
|
-
c
|
|
2727
|
+
default: r(() => [
|
|
2728
|
+
u(c, {
|
|
2730
2729
|
class: "ctrl-btn",
|
|
2731
|
-
onClick: (
|
|
2730
|
+
onClick: (ee) => s.pushBatchButton(l.ctrlMap.buttons[g].type)
|
|
2732
2731
|
}, {
|
|
2733
|
-
default:
|
|
2734
|
-
|
|
2732
|
+
default: r(() => [
|
|
2733
|
+
T(B(l.ctrlMap.buttons[g].name), 1)
|
|
2735
2734
|
]),
|
|
2736
2735
|
_: 2
|
|
2737
2736
|
}, 1032, ["onClick"])
|
|
2738
2737
|
]),
|
|
2739
2738
|
_: 2
|
|
2740
2739
|
}, 1024))), 128)),
|
|
2741
|
-
|
|
2742
|
-
default:
|
|
2743
|
-
c
|
|
2744
|
-
default:
|
|
2745
|
-
|
|
2740
|
+
u(a, { class: "ctrl" }, {
|
|
2741
|
+
default: r(() => [
|
|
2742
|
+
u(c, { class: "ctrl-btn" }, {
|
|
2743
|
+
default: r(() => [...t[14] || (t[14] = [
|
|
2744
|
+
T("按钮组", -1)
|
|
2746
2745
|
])]),
|
|
2747
2746
|
_: 1
|
|
2748
2747
|
})
|
|
@@ -2756,47 +2755,47 @@ function Xl(e, t, o, n, l, s) {
|
|
|
2756
2755
|
_: 1
|
|
2757
2756
|
})
|
|
2758
2757
|
]),
|
|
2759
|
-
main:
|
|
2760
|
-
(
|
|
2758
|
+
main: r(() => [
|
|
2759
|
+
(i(), m(f, X({
|
|
2761
2760
|
ref: "table",
|
|
2762
2761
|
key: l.key,
|
|
2763
2762
|
dev: !0
|
|
2764
2763
|
}, l.builderSchema), null, 16)),
|
|
2765
|
-
|
|
2766
|
-
|
|
2764
|
+
u(p),
|
|
2765
|
+
u(b, {
|
|
2767
2766
|
type: "primary",
|
|
2768
2767
|
onClick: s.saveSchema
|
|
2769
2768
|
}, {
|
|
2770
|
-
default:
|
|
2771
|
-
|
|
2769
|
+
default: r(() => [...t[15] || (t[15] = [
|
|
2770
|
+
T("保存页面配置", -1)
|
|
2772
2771
|
])]),
|
|
2773
2772
|
_: 1
|
|
2774
2773
|
}, 8, ["onClick"]),
|
|
2775
|
-
t[16] || (t[16] =
|
|
2776
|
-
|
|
2774
|
+
t[16] || (t[16] = T(" ", -1)),
|
|
2775
|
+
u(I, {
|
|
2777
2776
|
text: "PageSchema",
|
|
2778
2777
|
type: "modal"
|
|
2779
2778
|
}, {
|
|
2780
|
-
default:
|
|
2781
|
-
|
|
2779
|
+
default: r(() => [
|
|
2780
|
+
u(S, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
2782
2781
|
]),
|
|
2783
2782
|
_: 1
|
|
2784
2783
|
})
|
|
2785
2784
|
]),
|
|
2786
|
-
"right-aside":
|
|
2787
|
-
l.activeIndex ? (
|
|
2788
|
-
default:
|
|
2789
|
-
|
|
2790
|
-
default:
|
|
2791
|
-
|
|
2785
|
+
"right-aside": r(() => [
|
|
2786
|
+
l.activeIndex ? (i(), m(x, { key: 0 }, {
|
|
2787
|
+
default: r(() => [
|
|
2788
|
+
u(y, { label: "控件类型" }, {
|
|
2789
|
+
default: r(() => [
|
|
2790
|
+
u(w, {
|
|
2792
2791
|
modelValue: l.currentCtrlType,
|
|
2793
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2792
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => l.currentCtrlType = g)
|
|
2794
2793
|
}, {
|
|
2795
|
-
default:
|
|
2796
|
-
(
|
|
2797
|
-
key:
|
|
2798
|
-
label:
|
|
2799
|
-
value:
|
|
2794
|
+
default: r(() => [
|
|
2795
|
+
(i(!0), v(A, null, V(s.types, (g, M) => (i(), m(O, {
|
|
2796
|
+
key: M,
|
|
2797
|
+
label: g.label,
|
|
2798
|
+
value: g.value
|
|
2800
2799
|
}, null, 8, ["label", "value"]))), 128))
|
|
2801
2800
|
]),
|
|
2802
2801
|
_: 1
|
|
@@ -2807,46 +2806,46 @@ function Xl(e, t, o, n, l, s) {
|
|
|
2807
2806
|
]),
|
|
2808
2807
|
_: 1
|
|
2809
2808
|
})) : $("", !0),
|
|
2810
|
-
(
|
|
2809
|
+
(i(), m(F, X({
|
|
2811
2810
|
key: l.ctrlKey,
|
|
2812
2811
|
modelValue: l.ctrlOptions,
|
|
2813
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
2812
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => l.ctrlOptions = g)
|
|
2814
2813
|
}, l.ctrlSchema), null, 16, ["modelValue"]))
|
|
2815
2814
|
]),
|
|
2816
2815
|
_: 1
|
|
2817
2816
|
});
|
|
2818
2817
|
}
|
|
2819
|
-
const
|
|
2818
|
+
const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f"]]), Kl = "rtl", zl = {
|
|
2820
2819
|
__name: "PageEditor",
|
|
2821
2820
|
setup(e) {
|
|
2822
|
-
const t =
|
|
2823
|
-
|
|
2824
|
-
const o = Q(), n = Y(), l =
|
|
2821
|
+
const t = C(!1);
|
|
2822
|
+
C(1);
|
|
2823
|
+
const o = Q(), n = Y(), l = k(() => n.pages[o.path]);
|
|
2825
2824
|
return (s, a) => {
|
|
2826
|
-
const
|
|
2827
|
-
return
|
|
2828
|
-
c
|
|
2825
|
+
const c = P("VIcon"), d = Pt;
|
|
2826
|
+
return i(), v(A, null, [
|
|
2827
|
+
u(c, {
|
|
2829
2828
|
name: "ra-set",
|
|
2830
|
-
onClick: a[0] || (a[0] = (
|
|
2829
|
+
onClick: a[0] || (a[0] = (f) => t.value = !h(t))
|
|
2831
2830
|
}),
|
|
2832
|
-
|
|
2833
|
-
modelValue:
|
|
2834
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2831
|
+
u(d, {
|
|
2832
|
+
modelValue: h(t),
|
|
2833
|
+
"onUpdate:modelValue": a[1] || (a[1] = (f) => Ke(t) ? t.value = f : null),
|
|
2835
2834
|
title: "页面设计",
|
|
2836
2835
|
class: "my-drawer",
|
|
2837
|
-
direction:
|
|
2836
|
+
direction: Kl,
|
|
2838
2837
|
size: "90%",
|
|
2839
2838
|
"destroy-on-close": "",
|
|
2840
2839
|
"append-to-body": ""
|
|
2841
2840
|
}, {
|
|
2842
|
-
default:
|
|
2843
|
-
|
|
2841
|
+
default: r(() => [
|
|
2842
|
+
h(l).formItems !== void 0 ? (i(), m(xl, {
|
|
2844
2843
|
key: 0,
|
|
2845
|
-
schema:
|
|
2844
|
+
schema: h(l)
|
|
2846
2845
|
}, null, 8, ["schema"])) : $("", !0),
|
|
2847
|
-
|
|
2846
|
+
h(l).headers !== void 0 ? (i(), m(Gl, {
|
|
2848
2847
|
key: 1,
|
|
2849
|
-
schema:
|
|
2848
|
+
schema: h(l)
|
|
2850
2849
|
}, null, 8, ["schema"])) : $("", !0)
|
|
2851
2850
|
]),
|
|
2852
2851
|
_: 1
|
|
@@ -2854,77 +2853,28 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2854
2853
|
], 64);
|
|
2855
2854
|
};
|
|
2856
2855
|
}
|
|
2857
|
-
},
|
|
2858
|
-
let xt = !1;
|
|
2859
|
-
function ts(e) {
|
|
2860
|
-
if (e === "default" || e === "theme1" || e === "theme2" || e === "theme3")
|
|
2861
|
-
return e;
|
|
2862
|
-
if (typeof window > "u")
|
|
2863
|
-
return "theme1";
|
|
2864
|
-
const t = window.localStorage?.getItem(to);
|
|
2865
|
-
return t === "default" || t === "theme1" || t === "theme2" || t === "theme3" ? t : "theme1";
|
|
2866
|
-
}
|
|
2867
|
-
function os(e) {
|
|
2868
|
-
typeof window < "u" && window.localStorage?.setItem(to, e);
|
|
2869
|
-
}
|
|
2870
|
-
function Ue(e) {
|
|
2871
|
-
if (Ee.value = e, typeof document < "u") {
|
|
2872
|
-
const t = document.documentElement;
|
|
2873
|
-
t.classList.remove("aesthetic-default", "aesthetic-theme2", "aesthetic-theme3"), e === "default" ? t.classList.add("aesthetic-default") : e === "theme2" ? t.classList.add("aesthetic-theme2") : e === "theme3" && t.classList.add("aesthetic-theme3"), `${e}`, t.className;
|
|
2874
|
-
}
|
|
2875
|
-
os(e);
|
|
2876
|
-
}
|
|
2877
|
-
function ns() {
|
|
2878
|
-
const e = V(), t = (o) => {
|
|
2879
|
-
e.aestheticMode !== o ? e.updateSettings({ aestheticMode: o }) : Ue(o);
|
|
2880
|
-
};
|
|
2881
|
-
if (!xt) {
|
|
2882
|
-
xt = !0;
|
|
2883
|
-
const o = ts(e.aestheticMode);
|
|
2884
|
-
Ue(o), ue(
|
|
2885
|
-
() => e.aestheticMode,
|
|
2886
|
-
(n) => {
|
|
2887
|
-
(n === "default" || n === "theme1" || n === "theme2" || n === "theme3") && Ue(n);
|
|
2888
|
-
},
|
|
2889
|
-
{ immediate: !0 }
|
|
2890
|
-
);
|
|
2891
|
-
}
|
|
2892
|
-
return {
|
|
2893
|
-
aestheticMode: g(() => Ee.value),
|
|
2894
|
-
isTheme1: g(() => Ee.value === "theme1"),
|
|
2895
|
-
setAestheticMode: t,
|
|
2896
|
-
toggleAestheticMode: () => {
|
|
2897
|
-
const o = ["default", "theme1", "theme2", "theme3"], l = (o.indexOf(Ee.value) + 1) % o.length;
|
|
2898
|
-
t(o[l]);
|
|
2899
|
-
}
|
|
2900
|
-
};
|
|
2901
|
-
}
|
|
2902
|
-
const ls = { class: "right-content" }, ss = {
|
|
2856
|
+
}, Jl = { class: "right-content" }, Wl = {
|
|
2903
2857
|
key: 0,
|
|
2904
2858
|
class: "right-item"
|
|
2905
|
-
},
|
|
2859
|
+
}, Ql = {
|
|
2906
2860
|
class: "right-item-button",
|
|
2907
2861
|
style: { padding: "0" }
|
|
2908
|
-
},
|
|
2909
|
-
class: "aesthetic-picker",
|
|
2910
|
-
role: "button",
|
|
2911
|
-
tabindex: "0"
|
|
2912
|
-
}, rs = { class: "user-info" }, cs = { class: "user-name" }, us = /* @__PURE__ */ G({
|
|
2862
|
+
}, Xl = { class: "user-info" }, Zl = { class: "user-name" }, Yl = /* @__PURE__ */ z({
|
|
2913
2863
|
__name: "Navbar",
|
|
2914
2864
|
setup(e) {
|
|
2915
|
-
const t = Y(), o =
|
|
2916
|
-
|
|
2917
|
-
const l =
|
|
2918
|
-
|
|
2919
|
-
const s =
|
|
2920
|
-
const
|
|
2921
|
-
return
|
|
2865
|
+
const t = Y(), o = U(), n = j();
|
|
2866
|
+
C(!1);
|
|
2867
|
+
const l = C(!1);
|
|
2868
|
+
C(""), C(0);
|
|
2869
|
+
const s = k(() => o.defaultAvatar), a = k(() => t.sidebar), c = k(() => t.device), d = k(() => n.avatar), f = k(() => n.name), p = k(() => n.nickname), b = k(() => o.nav), S = k(() => o), I = k(() => n), O = k(() => o.showPageJsonSchema || !1), { isDark: w, toggleTheme: y } = qt(), x = k(() => {
|
|
2870
|
+
const D = S.value.envColor?.[I.value.env];
|
|
2871
|
+
return w.value ? {
|
|
2922
2872
|
background: "linear-gradient(135deg, rgba(var(--el-color-primary-rgb, 0, 176, 116), 0.15) 0%, rgba(2, 6, 23, 0.95) 100%)",
|
|
2923
2873
|
borderBottom: "1px solid var(--border-color)",
|
|
2924
2874
|
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.3)",
|
|
2925
2875
|
color: "var(--sidebar-text-color)"
|
|
2926
|
-
} :
|
|
2927
|
-
background: `linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 248, 0.9) 60%, ${
|
|
2876
|
+
} : D ? {
|
|
2877
|
+
background: `linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 248, 0.9) 60%, ${D} 100%)`,
|
|
2928
2878
|
borderBottom: "1px solid var(--border-color)",
|
|
2929
2879
|
boxShadow: "0 1px 4px rgba(0, 0, 0, 0.05)",
|
|
2930
2880
|
color: "var(--sidebar-text-color)"
|
|
@@ -2935,113 +2885,113 @@ const ls = { class: "right-content" }, ss = {
|
|
|
2935
2885
|
color: "var(--sidebar-text-color)"
|
|
2936
2886
|
};
|
|
2937
2887
|
});
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
const
|
|
2941
|
-
|
|
2888
|
+
Ie(() => {
|
|
2889
|
+
It("el-submenu is-active");
|
|
2890
|
+
const D = W("navBarNotice") || "";
|
|
2891
|
+
D.length > 0 && !W("closeNavNotice") && io(D) && window?.App?.config?.globalProperties?.$notify({
|
|
2942
2892
|
title: "提示",
|
|
2943
|
-
message:
|
|
2893
|
+
message: D,
|
|
2944
2894
|
dangerouslyUseHTMLString: !0,
|
|
2945
2895
|
duration: 0,
|
|
2946
|
-
onClose:
|
|
2947
|
-
}),
|
|
2948
|
-
elRef:
|
|
2949
|
-
waterMark:
|
|
2896
|
+
onClose: ao
|
|
2897
|
+
}), S.value.envColor?.[I.value.env] && Lo({
|
|
2898
|
+
elRef: F.value.$el,
|
|
2899
|
+
waterMark: I.value.env,
|
|
2950
2900
|
color: "skyblue",
|
|
2951
2901
|
size: "20"
|
|
2952
2902
|
});
|
|
2953
2903
|
});
|
|
2954
|
-
const
|
|
2955
|
-
|
|
2956
|
-
|
|
2904
|
+
const F = C(), G = C(""), g = C(!1);
|
|
2905
|
+
ye([d, s], () => {
|
|
2906
|
+
g.value = !1, G.value = d.value || s.value || "";
|
|
2957
2907
|
}, { immediate: !0 });
|
|
2958
|
-
const
|
|
2959
|
-
const
|
|
2960
|
-
return
|
|
2908
|
+
const M = k(() => {
|
|
2909
|
+
const D = p.value || f.value || o.title || "用户";
|
|
2910
|
+
return D ? D.toString().trim().charAt(0).toUpperCase() : "用";
|
|
2961
2911
|
});
|
|
2962
2912
|
function ee() {
|
|
2963
2913
|
t.toggleSideBar();
|
|
2964
2914
|
}
|
|
2965
|
-
async function
|
|
2915
|
+
async function Ae() {
|
|
2966
2916
|
await n.logout();
|
|
2967
|
-
const
|
|
2968
|
-
location.reload(`${location.origin}/#/login?redirect=${
|
|
2917
|
+
const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
|
|
2918
|
+
location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
|
|
2969
2919
|
}
|
|
2970
|
-
function
|
|
2971
|
-
return o[
|
|
2920
|
+
function W(D) {
|
|
2921
|
+
return o[D];
|
|
2972
2922
|
}
|
|
2973
|
-
async function
|
|
2974
|
-
o.updateSettings({ closeNavNotice: !0 }),
|
|
2923
|
+
async function ao() {
|
|
2924
|
+
o.updateSettings({ closeNavNotice: !0 }), ro(W("navBarNotice"));
|
|
2975
2925
|
}
|
|
2976
|
-
function
|
|
2977
|
-
const
|
|
2978
|
-
return
|
|
2926
|
+
function io(D) {
|
|
2927
|
+
const N = "dismiss:navbar_notice";
|
|
2928
|
+
return ke.exist(N) ? ke.get(N) !== D : !0;
|
|
2979
2929
|
}
|
|
2980
|
-
function
|
|
2981
|
-
|
|
2930
|
+
function ro(D) {
|
|
2931
|
+
ke.set("dismiss:navbar_notice", D);
|
|
2982
2932
|
}
|
|
2983
|
-
function
|
|
2984
|
-
|
|
2933
|
+
function co() {
|
|
2934
|
+
g.value || (g.value = !0, G.value = "");
|
|
2985
2935
|
}
|
|
2986
|
-
return (
|
|
2987
|
-
const
|
|
2988
|
-
return
|
|
2936
|
+
return (D, N) => {
|
|
2937
|
+
const rt = Oe, uo = Mt, po = Lt, fo = on, ct = ln, mo = nn, ho = tn, bo = Pt, yo = _e;
|
|
2938
|
+
return i(), m(yo, {
|
|
2989
2939
|
ref_key: "header",
|
|
2990
|
-
ref:
|
|
2940
|
+
ref: F,
|
|
2991
2941
|
class: "navbar",
|
|
2992
|
-
style:
|
|
2942
|
+
style: ko(x.value)
|
|
2993
2943
|
}, {
|
|
2994
|
-
default:
|
|
2995
|
-
|
|
2996
|
-
default:
|
|
2997
|
-
|
|
2944
|
+
default: r(() => [
|
|
2945
|
+
u(rt, { span: 16 }, {
|
|
2946
|
+
default: r(() => [
|
|
2947
|
+
u(ll, {
|
|
2998
2948
|
"is-active": a.value.opened,
|
|
2999
2949
|
class: "hamburger-container",
|
|
3000
2950
|
onToggleClick: ee
|
|
3001
2951
|
}, null, 8, ["is-active"]),
|
|
3002
|
-
|
|
2952
|
+
c.value !== "mobile" ? (i(), m(tl, {
|
|
3003
2953
|
key: 0,
|
|
3004
2954
|
class: "breadcrumb-container"
|
|
3005
2955
|
})) : $("", !0)
|
|
3006
2956
|
]),
|
|
3007
2957
|
_: 1
|
|
3008
2958
|
}),
|
|
3009
|
-
|
|
3010
|
-
default:
|
|
3011
|
-
|
|
3012
|
-
O.value ? (
|
|
3013
|
-
|
|
2959
|
+
u(rt, { span: 8 }, {
|
|
2960
|
+
default: r(() => [
|
|
2961
|
+
_("div", Jl, [
|
|
2962
|
+
O.value ? (i(), v("div", Wl, [
|
|
2963
|
+
u(zl)
|
|
3014
2964
|
])) : $("", !0),
|
|
3015
|
-
|
|
3016
|
-
|
|
2965
|
+
_("div", Ql, [
|
|
2966
|
+
u(h(ot), { buttons: b.value }, null, 8, ["buttons"])
|
|
3017
2967
|
]),
|
|
3018
|
-
|
|
2968
|
+
u(po, {
|
|
3019
2969
|
placement: "bottom",
|
|
3020
|
-
content:
|
|
2970
|
+
content: h(w) ? "切换为明亮模式" : "切换为暗黑模式"
|
|
3021
2971
|
}, {
|
|
3022
|
-
default:
|
|
3023
|
-
|
|
2972
|
+
default: r(() => [
|
|
2973
|
+
_("div", {
|
|
3024
2974
|
class: "right-item theme-toggle",
|
|
3025
2975
|
role: "button",
|
|
3026
2976
|
tabindex: "0",
|
|
3027
|
-
onClick:
|
|
3028
|
-
(...
|
|
2977
|
+
onClick: N[0] || (N[0] = //@ts-ignore
|
|
2978
|
+
(...ae) => h(y) && h(y)(...ae)),
|
|
3029
2979
|
onKeydown: [
|
|
3030
|
-
|
|
2980
|
+
N[1] || (N[1] = ut(Ne(
|
|
3031
2981
|
//@ts-ignore
|
|
3032
|
-
(...
|
|
2982
|
+
(...ae) => h(y) && h(y)(...ae),
|
|
3033
2983
|
["prevent"]
|
|
3034
2984
|
), ["enter"])),
|
|
3035
|
-
|
|
2985
|
+
N[2] || (N[2] = ut(Ne(
|
|
3036
2986
|
//@ts-ignore
|
|
3037
|
-
(...
|
|
2987
|
+
(...ae) => h(y) && h(y)(...ae),
|
|
3038
2988
|
["prevent"]
|
|
3039
2989
|
), ["space"]))
|
|
3040
2990
|
]
|
|
3041
2991
|
}, [
|
|
3042
|
-
|
|
3043
|
-
default:
|
|
3044
|
-
(
|
|
2992
|
+
u(uo, null, {
|
|
2993
|
+
default: r(() => [
|
|
2994
|
+
(i(), m(ze(h(w) ? h(gn) : h(kn))))
|
|
3045
2995
|
]),
|
|
3046
2996
|
_: 1
|
|
3047
2997
|
})
|
|
@@ -3049,90 +2999,29 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3049
2999
|
]),
|
|
3050
3000
|
_: 1
|
|
3051
3001
|
}, 8, ["content"]),
|
|
3052
|
-
|
|
3053
|
-
class: "right-item",
|
|
3054
|
-
trigger: "click",
|
|
3055
|
-
onCommand: f(K)
|
|
3056
|
-
}, {
|
|
3057
|
-
dropdown: i(() => [
|
|
3058
|
-
c(ft, null, {
|
|
3059
|
-
default: i(() => [
|
|
3060
|
-
c(ae, {
|
|
3061
|
-
command: "theme1",
|
|
3062
|
-
disabled: f(S) === "theme1"
|
|
3063
|
-
}, {
|
|
3064
|
-
default: i(() => [...B[4] || (B[4] = [
|
|
3065
|
-
I("薄荷绿 (Mint)", -1)
|
|
3066
|
-
])]),
|
|
3067
|
-
_: 1
|
|
3068
|
-
}, 8, ["disabled"]),
|
|
3069
|
-
c(ae, {
|
|
3070
|
-
command: "theme2",
|
|
3071
|
-
disabled: f(S) === "theme2"
|
|
3072
|
-
}, {
|
|
3073
|
-
default: i(() => [...B[5] || (B[5] = [
|
|
3074
|
-
I("皇家紫 (Purple)", -1)
|
|
3075
|
-
])]),
|
|
3076
|
-
_: 1
|
|
3077
|
-
}, 8, ["disabled"]),
|
|
3078
|
-
c(ae, {
|
|
3079
|
-
command: "theme3",
|
|
3080
|
-
disabled: f(S) === "theme3"
|
|
3081
|
-
}, {
|
|
3082
|
-
default: i(() => [...B[6] || (B[6] = [
|
|
3083
|
-
I("海洋蓝 (Blue)", -1)
|
|
3084
|
-
])]),
|
|
3085
|
-
_: 1
|
|
3086
|
-
}, 8, ["disabled"]),
|
|
3087
|
-
c(ae, {
|
|
3088
|
-
command: "default",
|
|
3089
|
-
disabled: f(S) === "default",
|
|
3090
|
-
divided: ""
|
|
3091
|
-
}, {
|
|
3092
|
-
default: i(() => [...B[7] || (B[7] = [
|
|
3093
|
-
I("原生样式 (Native)", -1)
|
|
3094
|
-
])]),
|
|
3095
|
-
_: 1
|
|
3096
|
-
}, 8, ["disabled"])
|
|
3097
|
-
]),
|
|
3098
|
-
_: 1
|
|
3099
|
-
})
|
|
3100
|
-
]),
|
|
3101
|
-
default: i(() => [
|
|
3102
|
-
y("div", is, [
|
|
3103
|
-
c(mt, null, {
|
|
3104
|
-
default: i(() => [
|
|
3105
|
-
c(f(Tn))
|
|
3106
|
-
]),
|
|
3107
|
-
_: 1
|
|
3108
|
-
})
|
|
3109
|
-
])
|
|
3110
|
-
]),
|
|
3111
|
-
_: 1
|
|
3112
|
-
}, 8, ["onCommand"]),
|
|
3113
|
-
c(ht, {
|
|
3002
|
+
u(ho, {
|
|
3114
3003
|
class: "right-item",
|
|
3115
3004
|
trigger: "click"
|
|
3116
3005
|
}, {
|
|
3117
|
-
dropdown:
|
|
3118
|
-
|
|
3119
|
-
default:
|
|
3120
|
-
|
|
3006
|
+
dropdown: r(() => [
|
|
3007
|
+
u(mo, { class: "user-dropdown" }, {
|
|
3008
|
+
default: r(() => [
|
|
3009
|
+
u(ct, {
|
|
3121
3010
|
icon: "oms-icon-index",
|
|
3122
|
-
onClick:
|
|
3011
|
+
onClick: N[3] || (N[3] = (ae) => D.$router.push("/"))
|
|
3123
3012
|
}, {
|
|
3124
|
-
default:
|
|
3125
|
-
|
|
3013
|
+
default: r(() => [...N[4] || (N[4] = [
|
|
3014
|
+
T("首页", -1)
|
|
3126
3015
|
])]),
|
|
3127
3016
|
_: 1
|
|
3128
3017
|
}),
|
|
3129
|
-
|
|
3018
|
+
u(ct, {
|
|
3130
3019
|
divided: "",
|
|
3131
3020
|
icon: "el-icon-switch-button",
|
|
3132
|
-
onClick:
|
|
3021
|
+
onClick: Ae
|
|
3133
3022
|
}, {
|
|
3134
|
-
default:
|
|
3135
|
-
|
|
3023
|
+
default: r(() => [...N[5] || (N[5] = [
|
|
3024
|
+
T("退出登录", -1)
|
|
3136
3025
|
])]),
|
|
3137
3026
|
_: 1
|
|
3138
3027
|
})
|
|
@@ -3140,20 +3029,20 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3140
3029
|
_: 1
|
|
3141
3030
|
})
|
|
3142
3031
|
]),
|
|
3143
|
-
default:
|
|
3144
|
-
|
|
3145
|
-
|
|
3032
|
+
default: r(() => [
|
|
3033
|
+
_("div", Xl, [
|
|
3034
|
+
u(fo, {
|
|
3146
3035
|
class: "user-avatar",
|
|
3147
3036
|
size: 32,
|
|
3148
|
-
src:
|
|
3149
|
-
onError:
|
|
3037
|
+
src: G.value || void 0,
|
|
3038
|
+
onError: co
|
|
3150
3039
|
}, {
|
|
3151
|
-
default:
|
|
3152
|
-
|
|
3040
|
+
default: r(() => [
|
|
3041
|
+
T(B(M.value), 1)
|
|
3153
3042
|
]),
|
|
3154
3043
|
_: 1
|
|
3155
3044
|
}, 8, ["src"]),
|
|
3156
|
-
|
|
3045
|
+
_("span", Zl, B(p.value || f.value), 1)
|
|
3157
3046
|
])
|
|
3158
3047
|
]),
|
|
3159
3048
|
_: 1
|
|
@@ -3162,7 +3051,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3162
3051
|
]),
|
|
3163
3052
|
_: 1
|
|
3164
3053
|
}),
|
|
3165
|
-
l.value ? (
|
|
3054
|
+
l.value ? (i(), m(bo, {
|
|
3166
3055
|
key: 0,
|
|
3167
3056
|
"with-header": !1,
|
|
3168
3057
|
size: "50%"
|
|
@@ -3172,75 +3061,75 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3172
3061
|
}, 8, ["style"]);
|
|
3173
3062
|
};
|
|
3174
3063
|
}
|
|
3175
|
-
}),
|
|
3064
|
+
}), es = /* @__PURE__ */ R(Yl, [["__scopeId", "data-v-b90728f0"]]), ts = { class: "sidebar-logo-fallback" }, os = {
|
|
3176
3065
|
key: 1,
|
|
3177
3066
|
class: "sidebar-logo-fallback"
|
|
3178
|
-
},
|
|
3067
|
+
}, ns = { class: "sidebar-logo-fallback" }, ls = {
|
|
3179
3068
|
key: 1,
|
|
3180
3069
|
class: "sidebar-logo-fallback"
|
|
3181
|
-
},
|
|
3070
|
+
}, ss = { class: "sidebar-title" }, as = /* @__PURE__ */ z({
|
|
3182
3071
|
__name: "Logo",
|
|
3183
3072
|
props: {
|
|
3184
3073
|
collapse: { type: Boolean }
|
|
3185
3074
|
},
|
|
3186
3075
|
setup(e) {
|
|
3187
|
-
const t =
|
|
3076
|
+
const t = U(), o = k(() => t.title), n = k(() => t.logo), l = C(!1), s = k(() => !!n.value && !l.value), a = k(() => {
|
|
3188
3077
|
const d = o.value || "OMS";
|
|
3189
3078
|
return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
|
|
3190
3079
|
});
|
|
3191
|
-
|
|
3080
|
+
ye(n, () => {
|
|
3192
3081
|
l.value = !1;
|
|
3193
3082
|
}, { immediate: !0 });
|
|
3194
|
-
function
|
|
3083
|
+
function c() {
|
|
3195
3084
|
l.value = !0;
|
|
3196
3085
|
}
|
|
3197
|
-
return (d,
|
|
3198
|
-
const p =
|
|
3199
|
-
return
|
|
3086
|
+
return (d, f) => {
|
|
3087
|
+
const p = sn, b = P("router-link");
|
|
3088
|
+
return i(), v("div", {
|
|
3200
3089
|
class: te(["sidebar-logo-container", { collapse: e.collapse }])
|
|
3201
3090
|
}, [
|
|
3202
|
-
|
|
3203
|
-
default:
|
|
3204
|
-
e.collapse ? (
|
|
3091
|
+
u(xt, { name: "sidebarLogoFade" }, {
|
|
3092
|
+
default: r(() => [
|
|
3093
|
+
e.collapse ? (i(), m(b, {
|
|
3205
3094
|
key: "collapse",
|
|
3206
3095
|
class: "sidebar-logo-link",
|
|
3207
3096
|
to: "/"
|
|
3208
3097
|
}, {
|
|
3209
|
-
default:
|
|
3210
|
-
s.value ? (
|
|
3098
|
+
default: r(() => [
|
|
3099
|
+
s.value ? (i(), m(p, {
|
|
3211
3100
|
key: 0,
|
|
3212
3101
|
src: n.value || "",
|
|
3213
3102
|
fit: "contain",
|
|
3214
3103
|
class: "sidebar-logo",
|
|
3215
|
-
onError:
|
|
3104
|
+
onError: c
|
|
3216
3105
|
}, {
|
|
3217
|
-
error:
|
|
3218
|
-
|
|
3106
|
+
error: r(() => [
|
|
3107
|
+
_("div", ts, B(a.value), 1)
|
|
3219
3108
|
]),
|
|
3220
3109
|
_: 1
|
|
3221
|
-
}, 8, ["src"])) : (
|
|
3222
|
-
|
|
3110
|
+
}, 8, ["src"])) : (i(), v("div", os, B(a.value), 1)),
|
|
3111
|
+
f[0] || (f[0] = _("div", { class: "sidebar-subtitle" }, "系统", -1))
|
|
3223
3112
|
]),
|
|
3224
3113
|
_: 1
|
|
3225
|
-
})) : (
|
|
3114
|
+
})) : (i(), m(b, {
|
|
3226
3115
|
key: "expand",
|
|
3227
3116
|
class: "sidebar-logo-link",
|
|
3228
3117
|
to: "/"
|
|
3229
3118
|
}, {
|
|
3230
|
-
default:
|
|
3231
|
-
s.value ? (
|
|
3119
|
+
default: r(() => [
|
|
3120
|
+
s.value ? (i(), m(p, {
|
|
3232
3121
|
key: 0,
|
|
3233
3122
|
src: n.value || "",
|
|
3234
3123
|
fit: "contain",
|
|
3235
3124
|
class: "sidebar-logo",
|
|
3236
|
-
onError:
|
|
3125
|
+
onError: c
|
|
3237
3126
|
}, {
|
|
3238
|
-
error:
|
|
3239
|
-
|
|
3127
|
+
error: r(() => [
|
|
3128
|
+
_("div", ns, B(a.value), 1)
|
|
3240
3129
|
]),
|
|
3241
3130
|
_: 1
|
|
3242
|
-
}, 8, ["src"])) : (
|
|
3243
|
-
|
|
3131
|
+
}, 8, ["src"])) : (i(), v("div", ls, B(a.value), 1)),
|
|
3132
|
+
_("h1", ss, B(o.value), 1)
|
|
3244
3133
|
]),
|
|
3245
3134
|
_: 1
|
|
3246
3135
|
}))
|
|
@@ -3250,7 +3139,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3250
3139
|
], 2);
|
|
3251
3140
|
};
|
|
3252
3141
|
}
|
|
3253
|
-
}),
|
|
3142
|
+
}), is = /* @__PURE__ */ R(as, [["__scopeId", "data-v-737655f0"]]), rs = {
|
|
3254
3143
|
props: {
|
|
3255
3144
|
to: {
|
|
3256
3145
|
type: String,
|
|
@@ -3263,10 +3152,10 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3263
3152
|
},
|
|
3264
3153
|
methods: {
|
|
3265
3154
|
compType(e) {
|
|
3266
|
-
return
|
|
3155
|
+
return dt(e) || this.newTab ? "a" : "router-link";
|
|
3267
3156
|
},
|
|
3268
3157
|
linkProps(e) {
|
|
3269
|
-
return
|
|
3158
|
+
return dt(e) ? {
|
|
3270
3159
|
is: "a",
|
|
3271
3160
|
href: e,
|
|
3272
3161
|
target: "_blank",
|
|
@@ -3283,15 +3172,15 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3283
3172
|
}
|
|
3284
3173
|
}
|
|
3285
3174
|
};
|
|
3286
|
-
function
|
|
3287
|
-
return
|
|
3288
|
-
default:
|
|
3289
|
-
|
|
3175
|
+
function cs(e, t, o, n, l, s) {
|
|
3176
|
+
return i(), m(ze(s.compType(o.to)), Z(ce(s.linkProps(o.to))), {
|
|
3177
|
+
default: r(() => [
|
|
3178
|
+
pe(e.$slots, "default")
|
|
3290
3179
|
]),
|
|
3291
3180
|
_: 3
|
|
3292
3181
|
}, 16);
|
|
3293
3182
|
}
|
|
3294
|
-
const
|
|
3183
|
+
const us = /* @__PURE__ */ R(rs, [["render", cs]]), ds = {
|
|
3295
3184
|
computed: {
|
|
3296
3185
|
// @ts-ignore
|
|
3297
3186
|
device() {
|
|
@@ -3312,7 +3201,7 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3312
3201
|
}
|
|
3313
3202
|
}
|
|
3314
3203
|
}
|
|
3315
|
-
},
|
|
3204
|
+
}, ps = { class: "menu-content" }, fs = /* @__PURE__ */ z({
|
|
3316
3205
|
__name: "MenuContent",
|
|
3317
3206
|
props: {
|
|
3318
3207
|
meta: {
|
|
@@ -3325,22 +3214,22 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3325
3214
|
},
|
|
3326
3215
|
setup(e) {
|
|
3327
3216
|
return (t, o) => {
|
|
3328
|
-
const n =
|
|
3329
|
-
return
|
|
3330
|
-
|
|
3217
|
+
const n = P("VIcon");
|
|
3218
|
+
return i(), v(A, null, [
|
|
3219
|
+
u(n, {
|
|
3331
3220
|
name: e.meta.icon || "ra-all"
|
|
3332
3221
|
}, null, 8, ["name"]),
|
|
3333
|
-
|
|
3222
|
+
_("span", ps, B(e.meta.title), 1)
|
|
3334
3223
|
], 64);
|
|
3335
3224
|
};
|
|
3336
3225
|
}
|
|
3337
|
-
}),
|
|
3226
|
+
}), ms = {
|
|
3338
3227
|
name: "SidebarItem",
|
|
3339
3228
|
components: {
|
|
3340
|
-
AppLink:
|
|
3341
|
-
MenuContent:
|
|
3229
|
+
AppLink: us,
|
|
3230
|
+
MenuContent: fs
|
|
3342
3231
|
},
|
|
3343
|
-
mixins: [
|
|
3232
|
+
mixins: [ds],
|
|
3344
3233
|
props: {
|
|
3345
3234
|
// route object
|
|
3346
3235
|
item: {
|
|
@@ -3362,7 +3251,7 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3362
3251
|
},
|
|
3363
3252
|
methods: {
|
|
3364
3253
|
itemClick() {
|
|
3365
|
-
|
|
3254
|
+
ke.remove("table_filter:" + this.$props.to);
|
|
3366
3255
|
},
|
|
3367
3256
|
getTo(e) {
|
|
3368
3257
|
try {
|
|
@@ -3372,34 +3261,34 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3372
3261
|
}
|
|
3373
3262
|
}
|
|
3374
3263
|
}
|
|
3375
|
-
},
|
|
3264
|
+
}, hs = {
|
|
3376
3265
|
key: 0,
|
|
3377
3266
|
class: "menu-wrapper"
|
|
3378
3267
|
};
|
|
3379
|
-
function
|
|
3380
|
-
const a =
|
|
3381
|
-
return o.item.hidden !== !1 ? (
|
|
3382
|
-
o.item.meta && o.item.meta.menuType === 2 ? (
|
|
3268
|
+
function bs(e, t, o, n, l, s) {
|
|
3269
|
+
const a = P("menu-content"), c = an, d = P("app-link"), f = Lt, p = P("sidebar-item", !0), b = rn;
|
|
3270
|
+
return o.item.hidden !== !1 ? (i(), v("div", hs, [
|
|
3271
|
+
o.item.meta && o.item.meta.menuType === 2 ? (i(), m(f, {
|
|
3383
3272
|
key: 0,
|
|
3384
3273
|
disabled: !o.isCollapse,
|
|
3385
3274
|
effect: "dark",
|
|
3386
3275
|
placement: "right",
|
|
3387
3276
|
content: o.item.meta?.title
|
|
3388
3277
|
}, {
|
|
3389
|
-
default:
|
|
3390
|
-
o.item.meta ? (
|
|
3278
|
+
default: r(() => [
|
|
3279
|
+
o.item.meta ? (i(), m(d, {
|
|
3391
3280
|
key: 0,
|
|
3392
3281
|
to: o.to,
|
|
3393
3282
|
"new-tab": o.item.meta.newTab
|
|
3394
3283
|
}, {
|
|
3395
|
-
default:
|
|
3396
|
-
c
|
|
3284
|
+
default: r(() => [
|
|
3285
|
+
u(c, {
|
|
3397
3286
|
index: o.to,
|
|
3398
3287
|
class: te({ "submenu-title-noDropdown": !o.isNest }),
|
|
3399
3288
|
onClick: s.itemClick
|
|
3400
3289
|
}, {
|
|
3401
|
-
default:
|
|
3402
|
-
|
|
3290
|
+
default: r(() => [
|
|
3291
|
+
u(a, {
|
|
3403
3292
|
meta: o.item.meta
|
|
3404
3293
|
}, null, 8, ["meta"])
|
|
3405
3294
|
]),
|
|
@@ -3410,41 +3299,41 @@ function Cs(e, t, o, n, l, s) {
|
|
|
3410
3299
|
}, 8, ["to", "new-tab"])) : $("", !0)
|
|
3411
3300
|
]),
|
|
3412
3301
|
_: 1
|
|
3413
|
-
}, 8, ["disabled", "content"])) : o.item.meta && o.item.meta.menuType === 1 ? (
|
|
3302
|
+
}, 8, ["disabled", "content"])) : o.item.meta && o.item.meta.menuType === 1 ? (i(), m(f, {
|
|
3414
3303
|
key: 1,
|
|
3415
3304
|
disabled: !o.isCollapse,
|
|
3416
3305
|
effect: "dark",
|
|
3417
3306
|
placement: "right",
|
|
3418
3307
|
content: o.item.meta?.title
|
|
3419
3308
|
}, {
|
|
3420
|
-
default:
|
|
3421
|
-
|
|
3309
|
+
default: r(() => [
|
|
3310
|
+
u(b, {
|
|
3422
3311
|
ref: "subMenu",
|
|
3423
3312
|
index: o.to,
|
|
3424
3313
|
class: te({ "submenu-title-noDropdown": !o.isNest })
|
|
3425
3314
|
}, {
|
|
3426
|
-
title:
|
|
3427
|
-
o.item.redirect && o.item.redirect !== "#" ? (
|
|
3315
|
+
title: r(() => [
|
|
3316
|
+
o.item.redirect && o.item.redirect !== "#" ? (i(), m(d, {
|
|
3428
3317
|
key: 0,
|
|
3429
3318
|
to: o.to
|
|
3430
3319
|
}, {
|
|
3431
|
-
default:
|
|
3432
|
-
|
|
3320
|
+
default: r(() => [
|
|
3321
|
+
u(a, {
|
|
3433
3322
|
meta: o.item.meta
|
|
3434
3323
|
}, null, 8, ["meta"])
|
|
3435
3324
|
]),
|
|
3436
3325
|
_: 1
|
|
3437
|
-
}, 8, ["to"])) : (
|
|
3326
|
+
}, 8, ["to"])) : (i(), m(a, {
|
|
3438
3327
|
key: 1,
|
|
3439
3328
|
meta: o.item.meta
|
|
3440
3329
|
}, null, 8, ["meta"]))
|
|
3441
3330
|
]),
|
|
3442
|
-
default:
|
|
3443
|
-
(
|
|
3444
|
-
key:
|
|
3331
|
+
default: r(() => [
|
|
3332
|
+
(i(!0), v(A, null, V(o.item.children, (S) => (i(), m(p, {
|
|
3333
|
+
key: S.path,
|
|
3445
3334
|
"is-nest": !0,
|
|
3446
|
-
item:
|
|
3447
|
-
to: s.getTo(
|
|
3335
|
+
item: S,
|
|
3336
|
+
to: s.getTo(S),
|
|
3448
3337
|
class: "nest-menu"
|
|
3449
3338
|
}, null, 8, ["item", "to"]))), 128))
|
|
3450
3339
|
]),
|
|
@@ -3455,69 +3344,69 @@ function Cs(e, t, o, n, l, s) {
|
|
|
3455
3344
|
}, 8, ["disabled", "content"])) : $("", !0)
|
|
3456
3345
|
])) : $("", !0);
|
|
3457
3346
|
}
|
|
3458
|
-
const
|
|
3347
|
+
const ys = /* @__PURE__ */ R(ms, [["render", bs]]), _s = /* @__PURE__ */ z({
|
|
3459
3348
|
__name: "SearchMenu",
|
|
3460
3349
|
setup(e) {
|
|
3461
|
-
const t =
|
|
3462
|
-
function o(
|
|
3463
|
-
return
|
|
3350
|
+
const t = j();
|
|
3351
|
+
function o(f) {
|
|
3352
|
+
return f.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = o(p.children), p.children.length === 0 && delete p.children), !0));
|
|
3464
3353
|
}
|
|
3465
|
-
const n =
|
|
3466
|
-
let
|
|
3354
|
+
const n = C(""), l = k(() => t.remoteRouter), s = Te(), a = k(() => {
|
|
3355
|
+
let f = [];
|
|
3467
3356
|
return l.value.forEach((p) => {
|
|
3468
|
-
|
|
3469
|
-
}), o(
|
|
3357
|
+
f = f.concat(E(p.routes));
|
|
3358
|
+
}), o(f);
|
|
3470
3359
|
});
|
|
3471
|
-
function
|
|
3472
|
-
let p =
|
|
3473
|
-
if (
|
|
3474
|
-
for (let b = 0; b <
|
|
3475
|
-
if (
|
|
3476
|
-
p =
|
|
3360
|
+
function c(f) {
|
|
3361
|
+
let p = f;
|
|
3362
|
+
if (f.meta.menuType === 1 && f.children && f.children.length > 0) {
|
|
3363
|
+
for (let b = 0; b < f.children.length; b++)
|
|
3364
|
+
if (f.children[b].path.indexOf("/:") === -1) {
|
|
3365
|
+
p = f.children[b];
|
|
3477
3366
|
break;
|
|
3478
3367
|
}
|
|
3479
3368
|
}
|
|
3480
3369
|
return s.resolve(p.redirect ? p.redirect : p).fullPath;
|
|
3481
3370
|
}
|
|
3482
|
-
function d(
|
|
3483
|
-
s.push(
|
|
3371
|
+
function d(f) {
|
|
3372
|
+
s.push(f), n.value = "";
|
|
3484
3373
|
}
|
|
3485
|
-
return (
|
|
3486
|
-
const b =
|
|
3487
|
-
return
|
|
3488
|
-
modelValue:
|
|
3489
|
-
"onUpdate:modelValue": p[0] || (p[0] = (O) =>
|
|
3374
|
+
return (f, p) => {
|
|
3375
|
+
const b = Ye, S = cn, I = Ze;
|
|
3376
|
+
return i(), m(I, {
|
|
3377
|
+
modelValue: h(n),
|
|
3378
|
+
"onUpdate:modelValue": p[0] || (p[0] = (O) => Ke(n) ? n.value = O : null),
|
|
3490
3379
|
filterable: "",
|
|
3491
3380
|
placeholder: "搜索菜单...",
|
|
3492
3381
|
class: "search-menu",
|
|
3493
3382
|
onChange: d
|
|
3494
3383
|
}, {
|
|
3495
|
-
default:
|
|
3496
|
-
(
|
|
3384
|
+
default: r(() => [
|
|
3385
|
+
(i(!0), v(A, null, V(h(a), (O) => (i(), v(A, {
|
|
3497
3386
|
key: O.path
|
|
3498
3387
|
}, [
|
|
3499
|
-
O.children !== void 0 ? (
|
|
3500
|
-
O.meta.menuType !== 0 ? (
|
|
3388
|
+
O.children !== void 0 ? (i(), v(A, { key: 0 }, [
|
|
3389
|
+
O.meta.menuType !== 0 ? (i(), m(S, {
|
|
3501
3390
|
key: O.path + "-",
|
|
3502
3391
|
label: O.meta.title
|
|
3503
3392
|
}, {
|
|
3504
|
-
default:
|
|
3505
|
-
(
|
|
3506
|
-
key:
|
|
3393
|
+
default: r(() => [
|
|
3394
|
+
(i(!0), v(A, null, V(O.children, (w, y) => (i(), v(A, {
|
|
3395
|
+
key: w.path
|
|
3507
3396
|
}, [
|
|
3508
|
-
O.meta.menuType !== 0 ? (
|
|
3397
|
+
O.meta.menuType !== 0 ? (i(), m(b, {
|
|
3509
3398
|
key: 0,
|
|
3510
|
-
label: (
|
|
3511
|
-
value:
|
|
3399
|
+
label: (y === O.children.length - 1 ? "└─" : "├─") + w.meta.title,
|
|
3400
|
+
value: c(w)
|
|
3512
3401
|
}, null, 8, ["label", "value"])) : $("", !0)
|
|
3513
3402
|
], 64))), 128))
|
|
3514
3403
|
]),
|
|
3515
3404
|
_: 2
|
|
3516
3405
|
}, 1032, ["label"])) : $("", !0)
|
|
3517
|
-
], 64)) : (
|
|
3406
|
+
], 64)) : (i(), m(b, {
|
|
3518
3407
|
key: 1,
|
|
3519
3408
|
label: "" + O.meta.title,
|
|
3520
|
-
value:
|
|
3409
|
+
value: c(O)
|
|
3521
3410
|
}, null, 8, ["label", "value"]))
|
|
3522
3411
|
], 64))), 128))
|
|
3523
3412
|
]),
|
|
@@ -3525,63 +3414,63 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
|
|
|
3525
3414
|
}, 8, ["modelValue"]);
|
|
3526
3415
|
};
|
|
3527
3416
|
}
|
|
3528
|
-
}),
|
|
3529
|
-
var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}),
|
|
3530
|
-
const
|
|
3417
|
+
}), vs = /* @__PURE__ */ R(_s, [["__scopeId", "data-v-02f2e7b9"]]);
|
|
3418
|
+
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 || {}), K = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(K || {});
|
|
3419
|
+
const gs = /* @__PURE__ */ z({
|
|
3531
3420
|
__name: "index",
|
|
3532
3421
|
setup(e) {
|
|
3533
|
-
const t = Y(), o =
|
|
3534
|
-
let
|
|
3535
|
-
return
|
|
3536
|
-
|
|
3422
|
+
const t = Y(), o = j(), n = U(), l = k(() => t.sidebar), s = k(() => o.remoteRouter), a = k(() => o.customRouter), c = Te(), d = Q(), f = k(() => {
|
|
3423
|
+
let w = [];
|
|
3424
|
+
return c.options.routes.concat(a.value || []).forEach((y) => {
|
|
3425
|
+
y.path === "/" ? w = w.concat(y.children || []) : w.push(y);
|
|
3537
3426
|
}), E([
|
|
3538
|
-
{ label: "", routes:
|
|
3427
|
+
{ label: "", routes: w },
|
|
3539
3428
|
...s.value
|
|
3540
3429
|
]);
|
|
3541
|
-
}), p =
|
|
3542
|
-
const
|
|
3543
|
-
for (let
|
|
3544
|
-
const
|
|
3545
|
-
if (
|
|
3546
|
-
return
|
|
3430
|
+
}), p = k(() => {
|
|
3431
|
+
const w = d.matched;
|
|
3432
|
+
for (let y = w.length - 1; y >= 0; y--) {
|
|
3433
|
+
const x = w[y];
|
|
3434
|
+
if (x.meta.menuType === K.menu)
|
|
3435
|
+
return I(), c.resolve(x.redirect ? x.redirect : x).fullPath;
|
|
3547
3436
|
}
|
|
3548
3437
|
return "";
|
|
3549
|
-
}), b =
|
|
3550
|
-
|
|
3551
|
-
function
|
|
3552
|
-
|
|
3438
|
+
}), b = k(() => n.sidebarLogo), S = k(() => !l.value.opened);
|
|
3439
|
+
Ie(() => I());
|
|
3440
|
+
function I() {
|
|
3441
|
+
It("is-active", 200);
|
|
3553
3442
|
}
|
|
3554
|
-
function O(
|
|
3555
|
-
return
|
|
3443
|
+
function O(w) {
|
|
3444
|
+
return w.filter((y) => [K.dir, K.menu].indexOf(y.meta.menuType) !== -1).map((y) => (y = Object.assign({}, y), y.children && (y.children = O(y.children)), y));
|
|
3556
3445
|
}
|
|
3557
|
-
return (
|
|
3558
|
-
const
|
|
3559
|
-
return
|
|
3560
|
-
class: te({ "has-logo":
|
|
3446
|
+
return (w, y) => {
|
|
3447
|
+
const x = dn, F = un;
|
|
3448
|
+
return i(), v("div", {
|
|
3449
|
+
class: te({ "has-logo": h(b) })
|
|
3561
3450
|
}, [
|
|
3562
|
-
|
|
3451
|
+
h(b) ? (i(), m(is, {
|
|
3563
3452
|
key: 0,
|
|
3564
|
-
collapse:
|
|
3453
|
+
collapse: h(S)
|
|
3565
3454
|
}, null, 8, ["collapse"])) : $("", !0),
|
|
3566
|
-
|
|
3567
|
-
default:
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
"default-active":
|
|
3571
|
-
collapse:
|
|
3455
|
+
u(F, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3456
|
+
default: r(() => [
|
|
3457
|
+
h(S) ? $("", !0) : (i(), m(vs, { key: 0 })),
|
|
3458
|
+
u(x, {
|
|
3459
|
+
"default-active": h(p),
|
|
3460
|
+
collapse: h(S),
|
|
3572
3461
|
"unique-opened": !1,
|
|
3573
3462
|
"collapse-transition": !1,
|
|
3574
3463
|
mode: "vertical"
|
|
3575
3464
|
}, {
|
|
3576
|
-
default:
|
|
3577
|
-
(
|
|
3578
|
-
key:
|
|
3465
|
+
default: r(() => [
|
|
3466
|
+
(i(!0), v(A, null, V(h(f), (G, g) => (i(), v(A, {
|
|
3467
|
+
key: g + "-module"
|
|
3579
3468
|
}, [
|
|
3580
|
-
(
|
|
3581
|
-
key:
|
|
3582
|
-
item:
|
|
3583
|
-
to:
|
|
3584
|
-
"is-collapse":
|
|
3469
|
+
(i(!0), v(A, null, V(O(G.routes), (M) => (i(), m(ys, {
|
|
3470
|
+
key: M.path,
|
|
3471
|
+
item: M,
|
|
3472
|
+
to: w.$router.resolve(M.redirect ? M.redirect : M).fullPath,
|
|
3473
|
+
"is-collapse": h(S)
|
|
3585
3474
|
}, null, 8, ["item", "to", "is-collapse"]))), 128))
|
|
3586
3475
|
], 64))), 128))
|
|
3587
3476
|
]),
|
|
@@ -3593,140 +3482,140 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3593
3482
|
], 2);
|
|
3594
3483
|
};
|
|
3595
3484
|
}
|
|
3596
|
-
}),
|
|
3485
|
+
}), ks = /* @__PURE__ */ R(gs, [["__scopeId", "data-v-ed591c64"]]), Ss = { class: "app-main" }, ws = {
|
|
3597
3486
|
__name: "AppMain",
|
|
3598
3487
|
setup(e) {
|
|
3599
|
-
const t = Q(), o = [], n =
|
|
3600
|
-
return
|
|
3488
|
+
const t = Q(), o = [], n = C(0);
|
|
3489
|
+
return Ko(() => {
|
|
3601
3490
|
t.meta?.keepAlive && o.indexOf(t.name) && o.push(t.name), n.value++;
|
|
3602
3491
|
}), (l, s) => {
|
|
3603
|
-
const a =
|
|
3604
|
-
return
|
|
3605
|
-
(
|
|
3606
|
-
key: l.$route.fullPath +
|
|
3492
|
+
const a = P("router-view"), c = pn;
|
|
3493
|
+
return i(), v("section", Ss, [
|
|
3494
|
+
(i(), m(a, {
|
|
3495
|
+
key: l.$route.fullPath + h(n)
|
|
3607
3496
|
})),
|
|
3608
|
-
c
|
|
3497
|
+
u(c, { bottom: 50 })
|
|
3609
3498
|
]);
|
|
3610
3499
|
};
|
|
3611
3500
|
}
|
|
3612
|
-
},
|
|
3501
|
+
}, xs = /* @__PURE__ */ R(ws, [["__scopeId", "data-v-ca0f0d98"]]), Es = { class: "main-container" }, Is = 992, Cs = {
|
|
3613
3502
|
__name: "index",
|
|
3614
3503
|
setup(e) {
|
|
3615
|
-
const { body: t } = document, o = Y(), n =
|
|
3504
|
+
const { body: t } = document, o = Y(), n = U(), l = Q(), s = k(() => o.sidebar), a = k(() => o.device), c = k(() => n.fixedHeader), d = k(() => ({
|
|
3616
3505
|
hideSidebar: !s.value.opened,
|
|
3617
3506
|
openSidebar: s.value.opened,
|
|
3618
3507
|
withoutAnimation: s.value.withoutAnimation,
|
|
3619
3508
|
mobile: a.value === "mobile"
|
|
3620
|
-
})),
|
|
3509
|
+
})), f = () => t.getBoundingClientRect().width - 1 < Is, p = () => {
|
|
3621
3510
|
if (!document.hidden) {
|
|
3622
|
-
const
|
|
3623
|
-
o.toggleDevice(
|
|
3511
|
+
const S = f();
|
|
3512
|
+
o.toggleDevice(S ? "mobile" : "desktop"), S && o.closeSideBar({ withoutAnimation: !0 });
|
|
3624
3513
|
}
|
|
3625
3514
|
};
|
|
3626
|
-
p(),
|
|
3515
|
+
p(), wn(window, "resize", () => p()), ye(l, () => {
|
|
3627
3516
|
a.value === "mobile" && s.value.opened && o.closeSideBar({ withoutAnimation: !1 });
|
|
3628
3517
|
});
|
|
3629
3518
|
const b = () => o.closeSideBar({ withoutAnimation: !1 });
|
|
3630
|
-
return (
|
|
3631
|
-
class: te([
|
|
3519
|
+
return (S, I) => (i(), v("div", {
|
|
3520
|
+
class: te([h(d), "app-wrapper"])
|
|
3632
3521
|
}, [
|
|
3633
|
-
|
|
3522
|
+
h(a) === "mobile" && h(s).opened ? (i(), v("div", {
|
|
3634
3523
|
key: 0,
|
|
3635
3524
|
class: "drawer-bg",
|
|
3636
3525
|
onClick: b
|
|
3637
3526
|
})) : $("", !0),
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
class: te({ "fixed-header":
|
|
3527
|
+
u(h(ks), { class: "sidebar-container" }),
|
|
3528
|
+
_("div", Es, [
|
|
3529
|
+
_("div", {
|
|
3530
|
+
class: te({ "fixed-header": h(c) })
|
|
3642
3531
|
}, [
|
|
3643
|
-
|
|
3532
|
+
u(h(es))
|
|
3644
3533
|
], 2),
|
|
3645
|
-
|
|
3534
|
+
u(h(xs))
|
|
3646
3535
|
])
|
|
3647
3536
|
], 2));
|
|
3648
3537
|
}
|
|
3649
|
-
},
|
|
3538
|
+
}, Jt = /* @__PURE__ */ R(Cs, [["__scopeId", "data-v-9a5dd368"]]), Ts = { class: "login-container" }, Os = { class: "login-card-wrapper" }, $s = { class: "login-header" }, Bs = { class: "logo-wrapper" }, As = ["src"], Rs = {
|
|
3650
3539
|
key: 1,
|
|
3651
3540
|
class: "logo-fallback"
|
|
3652
|
-
},
|
|
3541
|
+
}, Ps = { class: "login-title" }, Ls = { class: "captcha-wrapper" }, Ms = ["src"], Ds = {
|
|
3653
3542
|
key: 1,
|
|
3654
3543
|
class: "login-tips"
|
|
3655
|
-
},
|
|
3544
|
+
}, js = {
|
|
3656
3545
|
key: 2,
|
|
3657
3546
|
class: "sso-divider"
|
|
3658
|
-
},
|
|
3547
|
+
}, Ns = { class: "login-footer" }, Vs = /* @__PURE__ */ z({
|
|
3659
3548
|
__name: "login",
|
|
3660
3549
|
setup(e) {
|
|
3661
|
-
const t =
|
|
3550
|
+
const t = Te(), o = Q(), n = U(), l = Y(), s = j(), a = k(() => n.loginTips), c = k(() => n.captcha), d = k(() => l.baseURL), f = C(0), p = C(!1), b = C({
|
|
3662
3551
|
username: "",
|
|
3663
3552
|
password: "",
|
|
3664
3553
|
captcha: "",
|
|
3665
3554
|
sing: ""
|
|
3666
|
-
}),
|
|
3667
|
-
const
|
|
3668
|
-
return
|
|
3669
|
-
}),
|
|
3670
|
-
|
|
3671
|
-
}, O =
|
|
3555
|
+
}), S = k(() => {
|
|
3556
|
+
const y = n.title || "OMS";
|
|
3557
|
+
return y ? y.toString().trim().charAt(0).toUpperCase() : "O";
|
|
3558
|
+
}), I = () => {
|
|
3559
|
+
f.value++;
|
|
3560
|
+
}, O = k(() => b.value.username.length > 0 && b.value.password.length >= 4 && (c.value ? b.value.captcha.length === 4 : !0)), w = () => {
|
|
3672
3561
|
if (!p.value) {
|
|
3673
3562
|
if (!O.value) {
|
|
3674
|
-
|
|
3563
|
+
At.error("请填写完整的登录信息");
|
|
3675
3564
|
return;
|
|
3676
3565
|
}
|
|
3677
|
-
|
|
3566
|
+
c.value && (b.value.sing = En.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), p.value = !0, s.login(b.value).then((y) => {
|
|
3678
3567
|
t.push({ path: o.query?.redirect || "/" });
|
|
3679
|
-
}).catch((
|
|
3680
|
-
|
|
3568
|
+
}).catch((y) => {
|
|
3569
|
+
f.value++;
|
|
3681
3570
|
}).finally(() => {
|
|
3682
3571
|
p.value = !1;
|
|
3683
3572
|
});
|
|
3684
3573
|
}
|
|
3685
3574
|
};
|
|
3686
|
-
return (
|
|
3687
|
-
const
|
|
3688
|
-
return
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3575
|
+
return (y, x) => {
|
|
3576
|
+
const F = fn, G = Xe, g = Mt, M = he, ee = Qe, Ae = $e;
|
|
3577
|
+
return i(), v("div", Ts, [
|
|
3578
|
+
x[7] || (x[7] = _("div", { class: "login-background" }, [
|
|
3579
|
+
_("div", { class: "shape shape-1" }),
|
|
3580
|
+
_("div", { class: "shape shape-2" }),
|
|
3581
|
+
_("div", { class: "shape shape-3" })
|
|
3693
3582
|
], -1)),
|
|
3694
|
-
|
|
3583
|
+
u(xt, {
|
|
3695
3584
|
name: "fade-scale",
|
|
3696
3585
|
appear: ""
|
|
3697
3586
|
}, {
|
|
3698
|
-
default:
|
|
3699
|
-
|
|
3700
|
-
|
|
3587
|
+
default: r(() => [
|
|
3588
|
+
_("div", Os, [
|
|
3589
|
+
u(Ae, {
|
|
3701
3590
|
class: "login-card",
|
|
3702
3591
|
shadow: "never"
|
|
3703
3592
|
}, {
|
|
3704
|
-
default:
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3593
|
+
default: r(() => [
|
|
3594
|
+
_("div", $s, [
|
|
3595
|
+
_("div", Bs, [
|
|
3596
|
+
h(n).logo ? (i(), v("img", {
|
|
3708
3597
|
key: 0,
|
|
3709
|
-
src:
|
|
3598
|
+
src: h(n).logo,
|
|
3710
3599
|
alt: "Logo",
|
|
3711
3600
|
class: "logo-img"
|
|
3712
|
-
}, null, 8,
|
|
3601
|
+
}, null, 8, As)) : (i(), v("div", Rs, B(S.value), 1))
|
|
3713
3602
|
]),
|
|
3714
|
-
|
|
3715
|
-
|
|
3603
|
+
_("h1", Ps, B(h(n).title || "OMS"), 1),
|
|
3604
|
+
x[3] || (x[3] = _("p", { class: "login-subtitle" }, "欢迎回来,请登录您的账户", -1))
|
|
3716
3605
|
]),
|
|
3717
|
-
|
|
3606
|
+
u(ee, {
|
|
3718
3607
|
ref: "loginForm",
|
|
3719
3608
|
model: b.value,
|
|
3720
3609
|
class: "login-form",
|
|
3721
3610
|
size: "large",
|
|
3722
|
-
onSubmit:
|
|
3611
|
+
onSubmit: Ne(w, ["prevent"])
|
|
3723
3612
|
}, {
|
|
3724
|
-
default:
|
|
3725
|
-
|
|
3726
|
-
default:
|
|
3727
|
-
|
|
3613
|
+
default: r(() => [
|
|
3614
|
+
u(G, { prop: "username" }, {
|
|
3615
|
+
default: r(() => [
|
|
3616
|
+
u(F, {
|
|
3728
3617
|
modelValue: b.value.username,
|
|
3729
|
-
"onUpdate:modelValue":
|
|
3618
|
+
"onUpdate:modelValue": x[0] || (x[0] = (W) => b.value.username = W),
|
|
3730
3619
|
placeholder: "用户名",
|
|
3731
3620
|
"prefix-icon": "User",
|
|
3732
3621
|
class: "custom-input"
|
|
@@ -3734,11 +3623,11 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3734
3623
|
]),
|
|
3735
3624
|
_: 1
|
|
3736
3625
|
}),
|
|
3737
|
-
|
|
3738
|
-
default:
|
|
3739
|
-
|
|
3626
|
+
u(G, { prop: "password" }, {
|
|
3627
|
+
default: r(() => [
|
|
3628
|
+
u(F, {
|
|
3740
3629
|
modelValue: b.value.password,
|
|
3741
|
-
"onUpdate:modelValue":
|
|
3630
|
+
"onUpdate:modelValue": x[1] || (x[1] = (W) => b.value.password = W),
|
|
3742
3631
|
type: "password",
|
|
3743
3632
|
placeholder: "密码",
|
|
3744
3633
|
"show-password": "",
|
|
@@ -3748,60 +3637,60 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3748
3637
|
]),
|
|
3749
3638
|
_: 1
|
|
3750
3639
|
}),
|
|
3751
|
-
|
|
3640
|
+
c.value ? (i(), m(G, {
|
|
3752
3641
|
key: 0,
|
|
3753
3642
|
prop: "captcha"
|
|
3754
3643
|
}, {
|
|
3755
|
-
default:
|
|
3756
|
-
|
|
3757
|
-
|
|
3644
|
+
default: r(() => [
|
|
3645
|
+
_("div", Ls, [
|
|
3646
|
+
u(F, {
|
|
3758
3647
|
modelValue: b.value.captcha,
|
|
3759
|
-
"onUpdate:modelValue":
|
|
3648
|
+
"onUpdate:modelValue": x[2] || (x[2] = (W) => b.value.captcha = W),
|
|
3760
3649
|
placeholder: "验证码",
|
|
3761
3650
|
"prefix-icon": "Key",
|
|
3762
3651
|
class: "custom-input captcha-input"
|
|
3763
3652
|
}, null, 8, ["modelValue"]),
|
|
3764
|
-
|
|
3653
|
+
_("div", {
|
|
3765
3654
|
class: "captcha-img-box",
|
|
3766
|
-
onClick:
|
|
3655
|
+
onClick: I
|
|
3767
3656
|
}, [
|
|
3768
|
-
|
|
3769
|
-
src: d.value + "/user/captcha?ts=" +
|
|
3657
|
+
_("img", {
|
|
3658
|
+
src: d.value + "/user/captcha?ts=" + f.value,
|
|
3770
3659
|
title: "点击刷新",
|
|
3771
3660
|
class: "captcha-img"
|
|
3772
|
-
}, null, 8,
|
|
3661
|
+
}, null, 8, Ms)
|
|
3773
3662
|
])
|
|
3774
3663
|
])
|
|
3775
3664
|
]),
|
|
3776
3665
|
_: 1
|
|
3777
3666
|
})) : $("", !0),
|
|
3778
|
-
a.value ? (
|
|
3779
|
-
|
|
3780
|
-
default:
|
|
3781
|
-
|
|
3667
|
+
a.value ? (i(), v("div", Ds, [
|
|
3668
|
+
u(g, null, {
|
|
3669
|
+
default: r(() => [
|
|
3670
|
+
u(h(Sn))
|
|
3782
3671
|
]),
|
|
3783
3672
|
_: 1
|
|
3784
3673
|
}),
|
|
3785
|
-
|
|
3674
|
+
_("span", null, B(a.value), 1)
|
|
3786
3675
|
])) : $("", !0),
|
|
3787
|
-
|
|
3676
|
+
u(M, {
|
|
3788
3677
|
class: "submit-button",
|
|
3789
3678
|
type: "primary",
|
|
3790
3679
|
loading: p.value,
|
|
3791
3680
|
disabled: !O.value,
|
|
3792
3681
|
"native-type": "submit",
|
|
3793
|
-
onClick:
|
|
3682
|
+
onClick: w
|
|
3794
3683
|
}, {
|
|
3795
|
-
default:
|
|
3796
|
-
|
|
3684
|
+
default: r(() => [...x[4] || (x[4] = [
|
|
3685
|
+
T(" 登 录 ", -1)
|
|
3797
3686
|
])]),
|
|
3798
3687
|
_: 1
|
|
3799
3688
|
}, 8, ["loading", "disabled"]),
|
|
3800
|
-
Object.keys(
|
|
3801
|
-
|
|
3689
|
+
Object.keys(h(n).sso || {}).length > 0 ? (i(), v("div", js, [...x[5] || (x[5] = [
|
|
3690
|
+
_("span", null, "其他登录方式", -1)
|
|
3802
3691
|
])])) : $("", !0),
|
|
3803
|
-
|
|
3804
|
-
|
|
3692
|
+
x[6] || (x[6] = _("div", { class: "sso-container" }, [
|
|
3693
|
+
_("div", { id: "sso-qrcode" })
|
|
3805
3694
|
], -1))
|
|
3806
3695
|
]),
|
|
3807
3696
|
_: 1
|
|
@@ -3809,7 +3698,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3809
3698
|
]),
|
|
3810
3699
|
_: 1
|
|
3811
3700
|
}),
|
|
3812
|
-
|
|
3701
|
+
_("div", Ns, " © " + B((/* @__PURE__ */ new Date()).getFullYear()) + " " + B(h(n).title || "OMS") + ". All rights reserved. ", 1)
|
|
3813
3702
|
])
|
|
3814
3703
|
]),
|
|
3815
3704
|
_: 1
|
|
@@ -3817,12 +3706,12 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3817
3706
|
]);
|
|
3818
3707
|
};
|
|
3819
3708
|
}
|
|
3820
|
-
}),
|
|
3709
|
+
}), Us = {
|
|
3821
3710
|
name: "NotFoundPage"
|
|
3822
|
-
},
|
|
3823
|
-
function
|
|
3824
|
-
return
|
|
3825
|
-
|
|
3711
|
+
}, qs = { class: "not-found" };
|
|
3712
|
+
function Hs(e, t, o, n, l, s) {
|
|
3713
|
+
return i(), v("div", qs, [...t[0] || (t[0] = [
|
|
3714
|
+
_("svg", {
|
|
3826
3715
|
width: "380px",
|
|
3827
3716
|
height: "500px",
|
|
3828
3717
|
viewBox: "0 0 837 1045",
|
|
@@ -3831,7 +3720,7 @@ function ea(e, t, o, n, l, s) {
|
|
|
3831
3720
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3832
3721
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
3833
3722
|
}, [
|
|
3834
|
-
|
|
3723
|
+
_("g", {
|
|
3835
3724
|
id: "Page-1",
|
|
3836
3725
|
stroke: "none",
|
|
3837
3726
|
"stroke-width": "1",
|
|
@@ -3839,35 +3728,35 @@ function ea(e, t, o, n, l, s) {
|
|
|
3839
3728
|
"fill-rule": "evenodd",
|
|
3840
3729
|
"sketch:type": "MSPage"
|
|
3841
3730
|
}, [
|
|
3842
|
-
|
|
3731
|
+
_("path", {
|
|
3843
3732
|
id: "Polygon-1",
|
|
3844
3733
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
3845
3734
|
stroke: "#007FB2",
|
|
3846
3735
|
"stroke-width": "6",
|
|
3847
3736
|
"sketch:type": "MSShapeGroup"
|
|
3848
3737
|
}),
|
|
3849
|
-
|
|
3738
|
+
_("path", {
|
|
3850
3739
|
id: "Polygon-2",
|
|
3851
3740
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
3852
3741
|
stroke: "#EF4A5B",
|
|
3853
3742
|
"stroke-width": "6",
|
|
3854
3743
|
"sketch:type": "MSShapeGroup"
|
|
3855
3744
|
}),
|
|
3856
|
-
|
|
3745
|
+
_("path", {
|
|
3857
3746
|
id: "Polygon-3",
|
|
3858
3747
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
3859
3748
|
stroke: "#795D9C",
|
|
3860
3749
|
"stroke-width": "6",
|
|
3861
3750
|
"sketch:type": "MSShapeGroup"
|
|
3862
3751
|
}),
|
|
3863
|
-
|
|
3752
|
+
_("path", {
|
|
3864
3753
|
id: "Polygon-4",
|
|
3865
3754
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
3866
3755
|
stroke: "#F2773F",
|
|
3867
3756
|
"stroke-width": "6",
|
|
3868
3757
|
"sketch:type": "MSShapeGroup"
|
|
3869
3758
|
}),
|
|
3870
|
-
|
|
3759
|
+
_("path", {
|
|
3871
3760
|
id: "Polygon-5",
|
|
3872
3761
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
3873
3762
|
stroke: "#36B455",
|
|
@@ -3876,12 +3765,12 @@ function ea(e, t, o, n, l, s) {
|
|
|
3876
3765
|
})
|
|
3877
3766
|
])
|
|
3878
3767
|
], -1),
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3768
|
+
_("div", { class: "message-box" }, [
|
|
3769
|
+
_("h1", null, "404"),
|
|
3770
|
+
_("p", null, "Page not found"),
|
|
3771
|
+
_("div", { class: "buttons-con" }, [
|
|
3772
|
+
_("div", { class: "action-link-wrap" }, [
|
|
3773
|
+
_("a", {
|
|
3885
3774
|
href: "",
|
|
3886
3775
|
class: "link-button"
|
|
3887
3776
|
}, "Go to Home Page")
|
|
@@ -3890,10 +3779,10 @@ function ea(e, t, o, n, l, s) {
|
|
|
3890
3779
|
], -1)
|
|
3891
3780
|
])]);
|
|
3892
3781
|
}
|
|
3893
|
-
const
|
|
3782
|
+
const Fs = /* @__PURE__ */ R(Us, [["render", Hs], ["__scopeId", "data-v-26068803"]]), Gs = [
|
|
3894
3783
|
{
|
|
3895
3784
|
path: "/",
|
|
3896
|
-
component:
|
|
3785
|
+
component: Jt,
|
|
3897
3786
|
redirect: "/dashboard",
|
|
3898
3787
|
name: "Root",
|
|
3899
3788
|
meta: {
|
|
@@ -3903,49 +3792,49 @@ const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803
|
|
|
3903
3792
|
{
|
|
3904
3793
|
path: "dashboard",
|
|
3905
3794
|
name: "Dashboard",
|
|
3906
|
-
component:
|
|
3795
|
+
component: Qn,
|
|
3907
3796
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
3908
3797
|
}
|
|
3909
3798
|
]
|
|
3910
3799
|
},
|
|
3911
3800
|
{
|
|
3912
3801
|
path: "/login",
|
|
3913
|
-
component:
|
|
3802
|
+
component: Vs,
|
|
3914
3803
|
meta: { title: "用户登录", menuType: 0 },
|
|
3915
3804
|
hidden: !0
|
|
3916
3805
|
},
|
|
3917
3806
|
{
|
|
3918
3807
|
path: "/404",
|
|
3919
|
-
component:
|
|
3808
|
+
component: Fs,
|
|
3920
3809
|
meta: { menuType: 0 },
|
|
3921
3810
|
hidden: !0
|
|
3922
3811
|
}
|
|
3923
|
-
], le =
|
|
3924
|
-
history:
|
|
3925
|
-
routes:
|
|
3812
|
+
], le = zo({
|
|
3813
|
+
history: Jo(),
|
|
3814
|
+
routes: Gs
|
|
3926
3815
|
});
|
|
3927
|
-
|
|
3928
|
-
function
|
|
3816
|
+
Ve.configure({ showSpinner: !1 });
|
|
3817
|
+
function Ks(e) {
|
|
3929
3818
|
e.beforeEach((t, o, n) => {
|
|
3930
|
-
|
|
3819
|
+
Ve.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
3931
3820
|
}), e.afterEach((t) => {
|
|
3932
|
-
const o =
|
|
3821
|
+
const o = j(L);
|
|
3933
3822
|
t.matched.length > 0 && o.updateState({
|
|
3934
3823
|
key: "path",
|
|
3935
3824
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
3936
|
-
}),
|
|
3825
|
+
}), Ve.done();
|
|
3937
3826
|
});
|
|
3938
3827
|
}
|
|
3939
|
-
function
|
|
3940
|
-
return
|
|
3828
|
+
function zs() {
|
|
3829
|
+
return j(L).isLodeRemoteRoutes;
|
|
3941
3830
|
}
|
|
3942
|
-
function
|
|
3943
|
-
return
|
|
3831
|
+
function Wt() {
|
|
3832
|
+
return U(L).whiteRoutes || [];
|
|
3944
3833
|
}
|
|
3945
|
-
function
|
|
3946
|
-
return
|
|
3834
|
+
function Js() {
|
|
3835
|
+
return j(L).token;
|
|
3947
3836
|
}
|
|
3948
|
-
class
|
|
3837
|
+
class Qt {
|
|
3949
3838
|
type = "qrcode";
|
|
3950
3839
|
flag() {
|
|
3951
3840
|
}
|
|
@@ -3955,14 +3844,14 @@ class lo {
|
|
|
3955
3844
|
showQrCode() {
|
|
3956
3845
|
}
|
|
3957
3846
|
}
|
|
3958
|
-
class
|
|
3847
|
+
class hr extends Qt {
|
|
3959
3848
|
type = "jump";
|
|
3960
3849
|
client_id = "";
|
|
3961
3850
|
constructor(t) {
|
|
3962
3851
|
super(), this.client_id = t.client_id;
|
|
3963
3852
|
}
|
|
3964
3853
|
flag() {
|
|
3965
|
-
const t =
|
|
3854
|
+
const t = Ct("code");
|
|
3966
3855
|
if (t)
|
|
3967
3856
|
return {
|
|
3968
3857
|
ticket: t,
|
|
@@ -3974,7 +3863,7 @@ class Ir extends lo {
|
|
|
3974
3863
|
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${n}`);
|
|
3975
3864
|
}
|
|
3976
3865
|
}
|
|
3977
|
-
class
|
|
3866
|
+
class br extends Qt {
|
|
3978
3867
|
type = "qrcode";
|
|
3979
3868
|
qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
3980
3869
|
reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
@@ -3987,7 +3876,7 @@ class Cr extends lo {
|
|
|
3987
3876
|
super();
|
|
3988
3877
|
}
|
|
3989
3878
|
flag() {
|
|
3990
|
-
const t =
|
|
3879
|
+
const t = Ct("code");
|
|
3991
3880
|
if (t)
|
|
3992
3881
|
return {
|
|
3993
3882
|
ticket: t,
|
|
@@ -4000,63 +3889,63 @@ class Cr extends lo {
|
|
|
4000
3889
|
appid: this.appid,
|
|
4001
3890
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4002
3891
|
};
|
|
4003
|
-
return
|
|
3892
|
+
return ie(this.reloadUrl, s) + "&" + Do(l || {});
|
|
4004
3893
|
}, o = () => {
|
|
4005
3894
|
const l = {
|
|
4006
3895
|
goto: encodeURIComponent(t()),
|
|
4007
3896
|
style: encodeURIComponent(this.style)
|
|
4008
3897
|
};
|
|
4009
|
-
return
|
|
3898
|
+
return ie(this.qrCodeUrl, l);
|
|
4010
3899
|
}, n = (l) => {
|
|
4011
3900
|
const { origin: s, data: a } = l;
|
|
4012
3901
|
s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
|
|
4013
3902
|
};
|
|
4014
|
-
this.iframe.src = o(),
|
|
3903
|
+
this.iframe.src = o(), Mo({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4015
3904
|
"message",
|
|
4016
3905
|
(l) => n(l),
|
|
4017
3906
|
!1
|
|
4018
3907
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
|
|
4019
3908
|
}
|
|
4020
3909
|
}
|
|
4021
|
-
const
|
|
4022
|
-
function
|
|
4023
|
-
return q(
|
|
3910
|
+
const Ws = {};
|
|
3911
|
+
function Qs() {
|
|
3912
|
+
return q(U(L).sso || {}, Ws);
|
|
4024
3913
|
}
|
|
4025
|
-
function
|
|
4026
|
-
const e =
|
|
3914
|
+
function Xs() {
|
|
3915
|
+
const e = Qs(), t = U(L).activeSsoKey || "", o = e[t];
|
|
4027
3916
|
if (o !== void 0)
|
|
4028
3917
|
return o();
|
|
4029
3918
|
}
|
|
4030
|
-
function
|
|
3919
|
+
function Zs(e) {
|
|
4031
3920
|
e.beforeEach(async (t, o, n) => {
|
|
4032
|
-
if (
|
|
3921
|
+
if (Wt().indexOf(t.path) !== -1) {
|
|
4033
3922
|
n();
|
|
4034
3923
|
return;
|
|
4035
3924
|
}
|
|
4036
|
-
if (
|
|
3925
|
+
if (Js()) {
|
|
4037
3926
|
t.query?.redirect ? n(t.query?.redirect) : n();
|
|
4038
3927
|
return;
|
|
4039
3928
|
}
|
|
4040
|
-
const s = t.query.redirect || t.path, a =
|
|
3929
|
+
const s = t.query.redirect || t.path, a = Xs();
|
|
4041
3930
|
if (!a) {
|
|
4042
3931
|
n(`/login?redirect=${s}`);
|
|
4043
3932
|
return;
|
|
4044
3933
|
}
|
|
4045
|
-
const
|
|
4046
|
-
if (
|
|
3934
|
+
const c = a.flag(), d = j(L);
|
|
3935
|
+
if (c && await d.login(Uo(c) ? c : { ticket: c })) {
|
|
4047
3936
|
n();
|
|
4048
3937
|
return;
|
|
4049
3938
|
}
|
|
4050
3939
|
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4051
3940
|
});
|
|
4052
3941
|
}
|
|
4053
|
-
const
|
|
4054
|
-
function
|
|
4055
|
-
return
|
|
4056
|
-
|
|
3942
|
+
const Ys = {}, ea = { class: "loading preloader" };
|
|
3943
|
+
function ta(e, t) {
|
|
3944
|
+
return i(), v("div", ea, [...t[0] || (t[0] = [
|
|
3945
|
+
_("div", { class: "preloader-inner" }, null, -1)
|
|
4057
3946
|
])]);
|
|
4058
3947
|
}
|
|
4059
|
-
const
|
|
3948
|
+
const oa = /* @__PURE__ */ R(Ys, [["render", ta]]), na = {
|
|
4060
3949
|
name: "VNotice",
|
|
4061
3950
|
props: {
|
|
4062
3951
|
dataApi: {
|
|
@@ -4085,52 +3974,52 @@ const ma = /* @__PURE__ */ L(ua, [["render", pa]]), fa = {
|
|
|
4085
3974
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
4086
3975
|
}
|
|
4087
3976
|
};
|
|
4088
|
-
function
|
|
4089
|
-
const a =
|
|
4090
|
-
return
|
|
4091
|
-
l.hasNotice ? (
|
|
3977
|
+
function la(e, t, o, n, l, s) {
|
|
3978
|
+
const a = et;
|
|
3979
|
+
return i(), v("div", null, [
|
|
3980
|
+
l.hasNotice ? (i(), m(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
|
|
4092
3981
|
]);
|
|
4093
3982
|
}
|
|
4094
|
-
const
|
|
3983
|
+
const sa = /* @__PURE__ */ R(na, [["render", la]]), aa = ["innerHTML"], ia = /* @__PURE__ */ z({
|
|
4095
3984
|
__name: "PageLoad",
|
|
4096
3985
|
props: {
|
|
4097
3986
|
schemaHandler: { type: Function, default: (e) => e },
|
|
4098
3987
|
schemaApi: { default: "" }
|
|
4099
3988
|
},
|
|
4100
3989
|
setup(e) {
|
|
4101
|
-
const t = e, o = Y(), n =
|
|
4102
|
-
return
|
|
4103
|
-
const
|
|
4104
|
-
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi ||
|
|
4105
|
-
a.value = !1,
|
|
3990
|
+
const t = e, o = Y(), n = U(), l = j(), s = Q(), a = C(!0), c = C(!1), d = C({}), f = C(""), p = C({}), b = C([]), S = C(!1), I = k(() => l.env), O = k(() => n);
|
|
3991
|
+
return Ge(() => {
|
|
3992
|
+
const w = s.path.split("/").filter((g) => g), y = w.length > 1 ? w.slice(0, w.length - 1).join("/") : w[0], x = "/schema" + s.meta.path, F = { params: s.params };
|
|
3993
|
+
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || x, F).then(({ data: g }) => {
|
|
3994
|
+
a.value = !1, re(g) && (g.notice !== void 0 && (c.value = !0, Je(g.notice) ? d.value = { title: g.notice } : re(g.notice) && (d.value = g.notice, f.value = g.notice.noticeApi), delete g.notice), b.value = g.ownerNames || [], S.value = g.serviceOffLine || !1), p.value = t.schemaHandler(g, y), o.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
|
|
4106
3995
|
});
|
|
4107
|
-
}), (
|
|
4108
|
-
const
|
|
4109
|
-
return
|
|
4110
|
-
|
|
3996
|
+
}), (w, y) => {
|
|
3997
|
+
const x = et;
|
|
3998
|
+
return i(), v(A, null, [
|
|
3999
|
+
h(b).length > 0 ? (i(), m(x, {
|
|
4111
4000
|
key: 0,
|
|
4112
|
-
title: `该页面功能对应开发: [ ${
|
|
4001
|
+
title: `该页面功能对应开发: [ ${h(b).join(", ")} ] 有问题可直接企微反馈`,
|
|
4113
4002
|
type: "info",
|
|
4114
4003
|
style: { margin: "0 0 20px 0" },
|
|
4115
4004
|
closable: !1
|
|
4116
4005
|
}, null, 8, ["title"])) : $("", !0),
|
|
4117
|
-
|
|
4006
|
+
h(I) === "prod" && h(S) ? (i(), v("div", {
|
|
4118
4007
|
key: 1,
|
|
4119
4008
|
class: "offline-notice",
|
|
4120
|
-
innerHTML:
|
|
4121
|
-
}, null, 8,
|
|
4122
|
-
|
|
4009
|
+
innerHTML: h(S) === !0 ? h(O).serviceOffLineNotice : h(S)
|
|
4010
|
+
}, null, 8, aa)) : (i(), v(A, { key: 2 }, [
|
|
4011
|
+
h(c) ? (i(), m(sa, {
|
|
4123
4012
|
key: 0,
|
|
4124
|
-
notice:
|
|
4013
|
+
notice: h(d),
|
|
4125
4014
|
style: { margin: "0 0 20px 0" },
|
|
4126
|
-
"data-api": f
|
|
4015
|
+
"data-api": h(f)
|
|
4127
4016
|
}, null, 8, ["notice", "data-api"])) : $("", !0),
|
|
4128
|
-
|
|
4017
|
+
h(a) ? (i(), m(oa, { key: 1 })) : pe(w.$slots, "default", Z(X({ key: 2 }, h(p))), void 0, !0)
|
|
4129
4018
|
], 64))
|
|
4130
4019
|
], 64);
|
|
4131
4020
|
};
|
|
4132
4021
|
}
|
|
4133
|
-
}),
|
|
4022
|
+
}), ge = /* @__PURE__ */ R(ia, [["__scopeId", "data-v-e330fdc7"]]), Xt = {
|
|
4134
4023
|
__name: "table",
|
|
4135
4024
|
setup(e) {
|
|
4136
4025
|
const t = (o, n) => {
|
|
@@ -4141,44 +4030,44 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4141
4030
|
};
|
|
4142
4031
|
o.tableProps = q(o.tableProps, { defaultSort: s });
|
|
4143
4032
|
}
|
|
4144
|
-
const l = Object.keys(
|
|
4033
|
+
const l = Object.keys(be.props);
|
|
4145
4034
|
return Object.keys(o).forEach((s) => {
|
|
4146
4035
|
l.indexOf(s) === -1 && delete o[s];
|
|
4147
4036
|
}), o.listApi === void 0 && (o.listApi = `/${n}/list`), o;
|
|
4148
4037
|
};
|
|
4149
|
-
return (o, n) => (
|
|
4150
|
-
default:
|
|
4151
|
-
|
|
4038
|
+
return (o, n) => (i(), m(ge, { "schema-handler": t }, {
|
|
4039
|
+
default: r((l) => [
|
|
4040
|
+
u(h(be), Z(ce(l)), null, 16)
|
|
4152
4041
|
]),
|
|
4153
4042
|
_: 1
|
|
4154
4043
|
}));
|
|
4155
4044
|
}
|
|
4156
|
-
},
|
|
4045
|
+
}, He = {
|
|
4157
4046
|
__name: "form",
|
|
4158
4047
|
setup(e) {
|
|
4159
|
-
const t = Q(), o =
|
|
4160
|
-
const
|
|
4161
|
-
return Object.keys(
|
|
4162
|
-
if (
|
|
4163
|
-
delete
|
|
4048
|
+
const t = Q(), o = Te(), n = (c, d) => {
|
|
4049
|
+
const f = Object.keys(ne.props);
|
|
4050
|
+
return Object.keys(c).forEach((p) => {
|
|
4051
|
+
if (f.indexOf(p) === -1) {
|
|
4052
|
+
delete c[p];
|
|
4164
4053
|
return;
|
|
4165
4054
|
}
|
|
4166
|
-
/.*Api$/.test(p) && (
|
|
4167
|
-
}),
|
|
4055
|
+
/.*Api$/.test(p) && (c[p] = ie(c[p], t.params));
|
|
4056
|
+
}), 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 = q({
|
|
4168
4057
|
saveApi: d + "/save",
|
|
4169
4058
|
afterSubmit: "goback",
|
|
4170
4059
|
afterReset: "goback",
|
|
4171
4060
|
mod: t.params.id ? "edit" : "create"
|
|
4172
|
-
},
|
|
4173
|
-
}, l =
|
|
4174
|
-
|
|
4061
|
+
}, c), c;
|
|
4062
|
+
}, l = C(0), s = () => {
|
|
4063
|
+
no.request({
|
|
4175
4064
|
url: "/form_mutex",
|
|
4176
4065
|
method: "get",
|
|
4177
4066
|
params: {
|
|
4178
4067
|
path: t.fullPath
|
|
4179
4068
|
}
|
|
4180
|
-
}).then((
|
|
4181
|
-
|
|
4069
|
+
}).then((c) => {
|
|
4070
|
+
c.data && (clearInterval(l.value), Bt.alert(`${c.data}`, "操作提醒", {
|
|
4182
4071
|
showClose: !1,
|
|
4183
4072
|
showCancelButton: !0,
|
|
4184
4073
|
confirmButtonText: "返回",
|
|
@@ -4189,23 +4078,23 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4189
4078
|
}));
|
|
4190
4079
|
});
|
|
4191
4080
|
};
|
|
4192
|
-
|
|
4193
|
-
const
|
|
4194
|
-
t.params.id !== void 0 &&
|
|
4195
|
-
}),
|
|
4081
|
+
Ie(() => {
|
|
4082
|
+
const c = U();
|
|
4083
|
+
t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
|
|
4084
|
+
}), So(() => {
|
|
4196
4085
|
clearInterval(l.value);
|
|
4197
4086
|
});
|
|
4198
4087
|
function a() {
|
|
4199
4088
|
t.query?.goback ? o.push(t.query?.goback) : history.state.back && history.back();
|
|
4200
4089
|
}
|
|
4201
|
-
return (
|
|
4202
|
-
default:
|
|
4203
|
-
|
|
4090
|
+
return (c, d) => (i(), m(ge, { "schema-handler": n }, {
|
|
4091
|
+
default: r((f) => [
|
|
4092
|
+
u(h(ne), Z(ce(f)), null, 16)
|
|
4204
4093
|
]),
|
|
4205
4094
|
_: 1
|
|
4206
4095
|
}));
|
|
4207
4096
|
}
|
|
4208
|
-
},
|
|
4097
|
+
}, ra = z({
|
|
4209
4098
|
name: "VTree",
|
|
4210
4099
|
components: {
|
|
4211
4100
|
VForm: ne
|
|
@@ -4279,7 +4168,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4279
4168
|
return ["", "新建", "编辑"][this.type];
|
|
4280
4169
|
},
|
|
4281
4170
|
formProps() {
|
|
4282
|
-
let e =
|
|
4171
|
+
let e = ie(this.$props.saveApi, this.formData);
|
|
4283
4172
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4284
4173
|
saveApi: e,
|
|
4285
4174
|
getApi: this.$props.getApi,
|
|
@@ -4304,7 +4193,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4304
4193
|
},
|
|
4305
4194
|
append(e, t) {
|
|
4306
4195
|
this.type = 1;
|
|
4307
|
-
const o = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...
|
|
4196
|
+
const o = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...jo(this.$props.props?.effectData, e) };
|
|
4308
4197
|
e.children || (e.children = []), this.formData = o, this.formkey++, e.children.push(o), this.treeData = [...this.treeData];
|
|
4309
4198
|
},
|
|
4310
4199
|
canAppend(e, t) {
|
|
@@ -4318,7 +4207,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4318
4207
|
remove(e) {
|
|
4319
4208
|
this.$http.request({
|
|
4320
4209
|
method: "DELETE",
|
|
4321
|
-
url:
|
|
4210
|
+
url: ie(this.$props.deleteApi, e)
|
|
4322
4211
|
}).then(({ code: t }) => {
|
|
4323
4212
|
t !== 0 ? this.$message.error("操作失败") : this.loadTree();
|
|
4324
4213
|
});
|
|
@@ -4338,46 +4227,46 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4338
4227
|
const l = e.data;
|
|
4339
4228
|
l.pid = t.data.id, this.$http.request({
|
|
4340
4229
|
method: "POST",
|
|
4341
|
-
url:
|
|
4230
|
+
url: ie(this.$props.saveApi, l),
|
|
4342
4231
|
data: l
|
|
4343
4232
|
}).then(({ code: s }) => {
|
|
4344
4233
|
s !== 0 && this.$message.error("操作失败");
|
|
4345
4234
|
});
|
|
4346
4235
|
}
|
|
4347
4236
|
}
|
|
4348
|
-
}),
|
|
4237
|
+
}), ca = { class: "card-header" }, ua = { class: "tree-action" }, da = { key: 0 }, pa = {
|
|
4349
4238
|
key: 1,
|
|
4350
4239
|
style: { color: "#E6A23C" }
|
|
4351
|
-
},
|
|
4352
|
-
function
|
|
4353
|
-
const a =
|
|
4354
|
-
return
|
|
4240
|
+
}, fa = { class: "card-header" };
|
|
4241
|
+
function ma(e, t, o, n, l, s) {
|
|
4242
|
+
const a = he, c = mn, d = $e, f = Oe, p = P("v-form"), b = _e;
|
|
4243
|
+
return i(), m(b, {
|
|
4355
4244
|
class: "tree-box",
|
|
4356
4245
|
gutter: 20
|
|
4357
4246
|
}, {
|
|
4358
|
-
default:
|
|
4359
|
-
|
|
4247
|
+
default: r(() => [
|
|
4248
|
+
u(f, {
|
|
4360
4249
|
span: 8,
|
|
4361
4250
|
class: "tree-tree"
|
|
4362
4251
|
}, {
|
|
4363
|
-
default:
|
|
4364
|
-
|
|
4365
|
-
header:
|
|
4366
|
-
|
|
4367
|
-
t[3] || (t[3] =
|
|
4368
|
-
|
|
4252
|
+
default: r(() => [
|
|
4253
|
+
u(d, { shadow: "never" }, {
|
|
4254
|
+
header: r(() => [
|
|
4255
|
+
_("div", ca, [
|
|
4256
|
+
t[3] || (t[3] = _("span", null, "列表", -1)),
|
|
4257
|
+
u(a, {
|
|
4369
4258
|
type: "text",
|
|
4370
4259
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4371
4260
|
}, {
|
|
4372
|
-
default:
|
|
4373
|
-
|
|
4261
|
+
default: r(() => [...t[2] || (t[2] = [
|
|
4262
|
+
T("添加", -1)
|
|
4374
4263
|
])]),
|
|
4375
4264
|
_: 1
|
|
4376
4265
|
})
|
|
4377
4266
|
])
|
|
4378
4267
|
]),
|
|
4379
|
-
default:
|
|
4380
|
-
(e.treeData || []).length > 0 ? (
|
|
4268
|
+
default: r(() => [
|
|
4269
|
+
(e.treeData || []).length > 0 ? (i(), m(c, X({
|
|
4381
4270
|
key: 0,
|
|
4382
4271
|
style: { height: "100vh" },
|
|
4383
4272
|
data: e.treeData,
|
|
@@ -4388,40 +4277,40 @@ function Ea(e, t, o, n, l, s) {
|
|
|
4388
4277
|
"allow-drop": e.allowDrop,
|
|
4389
4278
|
onNodeDragEnd: e.handleDragEnd
|
|
4390
4279
|
}), {
|
|
4391
|
-
default:
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4280
|
+
default: r(({ node: S, data: I }) => [
|
|
4281
|
+
_("span", ua, [
|
|
4282
|
+
I[e.localTreeProps.props.label] ? (i(), v("span", da, B(I[e.localTreeProps.props.label]), 1)) : (i(), v("span", pa, "请在右侧表单中修改 --> ")),
|
|
4283
|
+
_("span", null, [
|
|
4284
|
+
I[e.localTreeProps.props.label] ? (i(), m(a, {
|
|
4396
4285
|
key: 0,
|
|
4397
4286
|
class: "button",
|
|
4398
4287
|
type: "text",
|
|
4399
|
-
onClick: () => e.onclick(
|
|
4288
|
+
onClick: () => e.onclick(I)
|
|
4400
4289
|
}, {
|
|
4401
|
-
default:
|
|
4402
|
-
|
|
4290
|
+
default: r(() => [...t[4] || (t[4] = [
|
|
4291
|
+
T("编辑", -1)
|
|
4403
4292
|
])]),
|
|
4404
4293
|
_: 1
|
|
4405
4294
|
}, 8, ["onClick"])) : $("", !0),
|
|
4406
|
-
e.canAppend(
|
|
4295
|
+
e.canAppend(I, S) ? (i(), m(a, {
|
|
4407
4296
|
key: 1,
|
|
4408
4297
|
class: "button",
|
|
4409
4298
|
type: "text",
|
|
4410
|
-
onClick: () => e.append(
|
|
4299
|
+
onClick: () => e.append(I, S)
|
|
4411
4300
|
}, {
|
|
4412
|
-
default:
|
|
4413
|
-
|
|
4301
|
+
default: r(() => [...t[5] || (t[5] = [
|
|
4302
|
+
T("添加", -1)
|
|
4414
4303
|
])]),
|
|
4415
4304
|
_: 1
|
|
4416
4305
|
}, 8, ["onClick"])) : $("", !0),
|
|
4417
|
-
|
|
4306
|
+
I.children === void 0 || I.children.length === 0 ? (i(), m(a, {
|
|
4418
4307
|
key: 2,
|
|
4419
4308
|
class: "button",
|
|
4420
4309
|
type: "text",
|
|
4421
|
-
onClick: () => e.remove(
|
|
4310
|
+
onClick: () => e.remove(I)
|
|
4422
4311
|
}, {
|
|
4423
|
-
default:
|
|
4424
|
-
|
|
4312
|
+
default: r(() => [...t[6] || (t[6] = [
|
|
4313
|
+
T("删除", -1)
|
|
4425
4314
|
])]),
|
|
4426
4315
|
_: 1
|
|
4427
4316
|
}, 8, ["onClick"])) : $("", !0)
|
|
@@ -4436,25 +4325,25 @@ function Ea(e, t, o, n, l, s) {
|
|
|
4436
4325
|
]),
|
|
4437
4326
|
_: 1
|
|
4438
4327
|
}),
|
|
4439
|
-
|
|
4328
|
+
u(f, {
|
|
4440
4329
|
span: 16,
|
|
4441
4330
|
class: "tree-form"
|
|
4442
4331
|
}, {
|
|
4443
|
-
default:
|
|
4444
|
-
e.type ? (
|
|
4332
|
+
default: r(() => [
|
|
4333
|
+
e.type ? (i(), m(d, {
|
|
4445
4334
|
key: 0,
|
|
4446
4335
|
shadow: "never"
|
|
4447
4336
|
}, {
|
|
4448
|
-
header:
|
|
4449
|
-
|
|
4450
|
-
|
|
4337
|
+
header: r(() => [
|
|
4338
|
+
_("div", fa, [
|
|
4339
|
+
_("span", null, B(e.formType), 1)
|
|
4451
4340
|
])
|
|
4452
4341
|
]),
|
|
4453
|
-
default:
|
|
4454
|
-
(
|
|
4342
|
+
default: r(() => [
|
|
4343
|
+
(i(), m(p, X({
|
|
4455
4344
|
key: e.formkey,
|
|
4456
4345
|
modelValue: e.formData,
|
|
4457
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4346
|
+
"onUpdate:modelValue": t[1] || (t[1] = (S) => e.formData = S)
|
|
4458
4347
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4459
4348
|
]),
|
|
4460
4349
|
_: 1
|
|
@@ -4466,34 +4355,34 @@ function Ea(e, t, o, n, l, s) {
|
|
|
4466
4355
|
_: 1
|
|
4467
4356
|
});
|
|
4468
4357
|
}
|
|
4469
|
-
const
|
|
4358
|
+
const _t = /* @__PURE__ */ R(ra, [["render", ma]]), ha = {
|
|
4470
4359
|
__name: "tree",
|
|
4471
4360
|
setup(e) {
|
|
4472
4361
|
const t = (o, n) => {
|
|
4473
|
-
const l = Object.keys(
|
|
4362
|
+
const l = Object.keys(_t.props);
|
|
4474
4363
|
return Object.keys(o).forEach((s) => {
|
|
4475
4364
|
l.indexOf(s) === -1 && delete o[s];
|
|
4476
4365
|
}), o;
|
|
4477
4366
|
};
|
|
4478
|
-
return (o, n) => (
|
|
4479
|
-
default:
|
|
4480
|
-
|
|
4367
|
+
return (o, n) => (i(), m(ge, { "schema-handler": t }, {
|
|
4368
|
+
default: r((l) => [
|
|
4369
|
+
u(_t, Z(ce(l)), null, 16)
|
|
4481
4370
|
]),
|
|
4482
4371
|
_: 1
|
|
4483
4372
|
}));
|
|
4484
4373
|
}
|
|
4485
|
-
},
|
|
4374
|
+
}, je = {
|
|
4486
4375
|
__name: "container",
|
|
4487
4376
|
setup(e) {
|
|
4488
|
-
const t =
|
|
4489
|
-
return
|
|
4377
|
+
const t = C(0);
|
|
4378
|
+
return Wo(() => {
|
|
4490
4379
|
t.value++;
|
|
4491
4380
|
}), (o, n) => {
|
|
4492
|
-
const l =
|
|
4493
|
-
return
|
|
4381
|
+
const l = P("router-view");
|
|
4382
|
+
return i(), m(l);
|
|
4494
4383
|
};
|
|
4495
4384
|
}
|
|
4496
|
-
},
|
|
4385
|
+
}, ba = {
|
|
4497
4386
|
title: {
|
|
4498
4387
|
text: ""
|
|
4499
4388
|
},
|
|
@@ -4522,34 +4411,34 @@ const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
|
|
|
4522
4411
|
},
|
|
4523
4412
|
series: []
|
|
4524
4413
|
};
|
|
4525
|
-
function
|
|
4414
|
+
function ya(e, t, o) {
|
|
4526
4415
|
if (o.length === 0)
|
|
4527
4416
|
return {};
|
|
4528
|
-
let n = q({},
|
|
4529
|
-
if (n.title.text = e,
|
|
4417
|
+
let n = q({}, ba);
|
|
4418
|
+
if (n.title.text = e, Je(t)) {
|
|
4530
4419
|
const l = [], s = Object.keys(o[0]);
|
|
4531
|
-
let a = s[0],
|
|
4420
|
+
let a = s[0], c = s.filter((f, p) => p > 0), d = t;
|
|
4532
4421
|
if (t.indexOf(":") > -1) {
|
|
4533
|
-
const
|
|
4534
|
-
d =
|
|
4422
|
+
const f = t.split(":"), p = f[1].split(",");
|
|
4423
|
+
d = f[0], a = p[0], c = p.filter((b, S) => S > 0);
|
|
4535
4424
|
}
|
|
4536
|
-
|
|
4425
|
+
c.forEach((f) => {
|
|
4537
4426
|
const p = [];
|
|
4538
4427
|
o.forEach((b) => {
|
|
4539
|
-
p.push(b[
|
|
4428
|
+
p.push(b[f]);
|
|
4540
4429
|
}), n.series.push({
|
|
4541
|
-
name:
|
|
4430
|
+
name: f,
|
|
4542
4431
|
type: d,
|
|
4543
4432
|
smooth: !0,
|
|
4544
4433
|
data: p
|
|
4545
|
-
}), n.legend.data.push(
|
|
4546
|
-
}), o.forEach((
|
|
4547
|
-
l.push(
|
|
4434
|
+
}), n.legend.data.push(f);
|
|
4435
|
+
}), o.forEach((f) => {
|
|
4436
|
+
l.push(f[a]);
|
|
4548
4437
|
}), n.xAxis.data = l;
|
|
4549
4438
|
}
|
|
4550
|
-
return
|
|
4439
|
+
return re(t) && (n = q(n, t)), n;
|
|
4551
4440
|
}
|
|
4552
|
-
const
|
|
4441
|
+
const _a = z({
|
|
4553
4442
|
name: "NumberPanel",
|
|
4554
4443
|
props: {
|
|
4555
4444
|
dataList: {
|
|
@@ -4560,27 +4449,27 @@ const Oa = G({
|
|
|
4560
4449
|
data() {
|
|
4561
4450
|
return {};
|
|
4562
4451
|
}
|
|
4563
|
-
}),
|
|
4564
|
-
function
|
|
4565
|
-
return
|
|
4566
|
-
|
|
4567
|
-
(
|
|
4568
|
-
key:
|
|
4452
|
+
}), va = { class: "number-panel-title" }, ga = { class: "number" }, ka = { class: "name" };
|
|
4453
|
+
function Sa(e, t, o, n, l, s) {
|
|
4454
|
+
return i(!0), v(A, null, V(e.dataList, (a, c) => (i(), v("span", { key: c }, [
|
|
4455
|
+
_("div", va, [
|
|
4456
|
+
(i(!0), v(A, null, V(Object.keys(a), (d, f) => (i(), v("div", {
|
|
4457
|
+
key: f,
|
|
4569
4458
|
class: "title-inner"
|
|
4570
4459
|
}, [
|
|
4571
|
-
|
|
4572
|
-
|
|
4460
|
+
_("p", ga, B(a[d]), 1),
|
|
4461
|
+
_("p", ka, B(d), 1)
|
|
4573
4462
|
]))), 128))
|
|
4574
4463
|
])
|
|
4575
4464
|
]))), 128);
|
|
4576
4465
|
}
|
|
4577
|
-
const
|
|
4466
|
+
const wa = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-cc0d8293"]]), xa = {
|
|
4578
4467
|
components: {
|
|
4579
|
-
Chart:
|
|
4580
|
-
Md:
|
|
4581
|
-
Json:
|
|
4582
|
-
Table:
|
|
4583
|
-
Number:
|
|
4468
|
+
Chart: bn,
|
|
4469
|
+
Md: xn,
|
|
4470
|
+
Json: tt,
|
|
4471
|
+
Table: be,
|
|
4472
|
+
Number: wa,
|
|
4584
4473
|
Html: ""
|
|
4585
4474
|
},
|
|
4586
4475
|
props: {
|
|
@@ -4601,17 +4490,17 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
|
|
|
4601
4490
|
};
|
|
4602
4491
|
if (l === "chart")
|
|
4603
4492
|
return {
|
|
4604
|
-
options:
|
|
4493
|
+
options: ya(n.id, n.chart, n.data)
|
|
4605
4494
|
};
|
|
4606
4495
|
if (l === "md")
|
|
4607
4496
|
return {
|
|
4608
4497
|
source: n.data
|
|
4609
4498
|
};
|
|
4610
4499
|
if (l === "table") {
|
|
4611
|
-
if (!
|
|
4500
|
+
if (!Tt(n.data))
|
|
4612
4501
|
return { showPagination: !1 };
|
|
4613
4502
|
const s = [];
|
|
4614
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((a,
|
|
4503
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((a, c) => {
|
|
4615
4504
|
s.push({ field: a, label: a });
|
|
4616
4505
|
}), {
|
|
4617
4506
|
headers: s,
|
|
@@ -4625,21 +4514,21 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
|
|
|
4625
4514
|
};
|
|
4626
4515
|
}
|
|
4627
4516
|
};
|
|
4628
|
-
function
|
|
4629
|
-
const a =
|
|
4630
|
-
return
|
|
4517
|
+
function Ea(e, t, o, n, l, s) {
|
|
4518
|
+
const a = $e, c = wo("resize");
|
|
4519
|
+
return xo((i(), m(a, {
|
|
4631
4520
|
shadow: "never",
|
|
4632
4521
|
class: "part"
|
|
4633
4522
|
}, {
|
|
4634
|
-
default:
|
|
4635
|
-
(
|
|
4523
|
+
default: r(() => [
|
|
4524
|
+
(i(), m(ze(n.comptype()), Z(ce(n.compprops(o.option))), null, 16))
|
|
4636
4525
|
]),
|
|
4637
4526
|
_: 1
|
|
4638
4527
|
})), [
|
|
4639
|
-
[
|
|
4528
|
+
[c, !0]
|
|
4640
4529
|
]);
|
|
4641
4530
|
}
|
|
4642
|
-
const
|
|
4531
|
+
const Ia = /* @__PURE__ */ R(xa, [["render", Ea], ["__scopeId", "data-v-a5a65cc1"]]), Ca = /* @__PURE__ */ z({
|
|
4643
4532
|
__name: "index",
|
|
4644
4533
|
props: {
|
|
4645
4534
|
filter: {
|
|
@@ -4653,10 +4542,10 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4653
4542
|
},
|
|
4654
4543
|
setup(e) {
|
|
4655
4544
|
const t = Q();
|
|
4656
|
-
|
|
4545
|
+
Ie(() => {
|
|
4657
4546
|
});
|
|
4658
|
-
const o = e, n =
|
|
4659
|
-
|
|
4547
|
+
const o = e, n = C({});
|
|
4548
|
+
Ge(() => {
|
|
4660
4549
|
o.filter?.forEach((p) => {
|
|
4661
4550
|
p.default !== null && (n.value[p.field] = p.default);
|
|
4662
4551
|
});
|
|
@@ -4671,38 +4560,38 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4671
4560
|
cancelButton: {
|
|
4672
4561
|
text: "重置"
|
|
4673
4562
|
}
|
|
4674
|
-
}, s =
|
|
4563
|
+
}, s = C(1), a = C(o.filter), c = C(o.dataPart), d = k(() => {
|
|
4675
4564
|
let p = t.params.id;
|
|
4676
4565
|
if (!p) {
|
|
4677
4566
|
const b = t.path.split("/");
|
|
4678
4567
|
p = b[b.length - 1];
|
|
4679
4568
|
}
|
|
4680
4569
|
return "/focusbi_report/view/" + p;
|
|
4681
|
-
}),
|
|
4682
|
-
|
|
4683
|
-
a.value = b.filter,
|
|
4570
|
+
}), f = (p) => {
|
|
4571
|
+
no.get(d.value, { params: p }).then(({ data: b }) => {
|
|
4572
|
+
a.value = b.filter, c.value = b.dataPart, s.value++;
|
|
4684
4573
|
});
|
|
4685
4574
|
};
|
|
4686
4575
|
return (p, b) => {
|
|
4687
|
-
const
|
|
4688
|
-
return
|
|
4689
|
-
default:
|
|
4690
|
-
|
|
4576
|
+
const S = $e, I = Oe, O = et, w = _e;
|
|
4577
|
+
return i(), m(w, null, {
|
|
4578
|
+
default: r(() => [
|
|
4579
|
+
h(a).length > 0 ? (i(), m(I, {
|
|
4691
4580
|
key: 0,
|
|
4692
4581
|
span: 24
|
|
4693
4582
|
}, {
|
|
4694
|
-
default:
|
|
4695
|
-
|
|
4583
|
+
default: r(() => [
|
|
4584
|
+
u(S, {
|
|
4696
4585
|
shadow: "never",
|
|
4697
4586
|
class: "part-filter"
|
|
4698
4587
|
}, {
|
|
4699
|
-
default:
|
|
4700
|
-
|
|
4701
|
-
modelValue:
|
|
4702
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
4703
|
-
"form-items":
|
|
4588
|
+
default: r(() => [
|
|
4589
|
+
u(h(ne), {
|
|
4590
|
+
modelValue: h(n),
|
|
4591
|
+
"onUpdate:modelValue": b[0] || (b[0] = (y) => Ke(n) ? n.value = y : null),
|
|
4592
|
+
"form-items": h(a),
|
|
4704
4593
|
options: l,
|
|
4705
|
-
onSubmit:
|
|
4594
|
+
onSubmit: f
|
|
4706
4595
|
}, null, 8, ["modelValue", "form-items"])
|
|
4707
4596
|
]),
|
|
4708
4597
|
_: 1
|
|
@@ -4710,27 +4599,27 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4710
4599
|
]),
|
|
4711
4600
|
_: 1
|
|
4712
4601
|
})) : $("", !0),
|
|
4713
|
-
|
|
4714
|
-
default:
|
|
4715
|
-
|
|
4716
|
-
default:
|
|
4717
|
-
(
|
|
4718
|
-
key:
|
|
4719
|
-
span:
|
|
4602
|
+
u(I, { span: 24 }, {
|
|
4603
|
+
default: r(() => [
|
|
4604
|
+
u(w, { gutter: 20 }, {
|
|
4605
|
+
default: r(() => [
|
|
4606
|
+
(i(!0), v(A, null, V(h(c), (y, x) => (i(), m(I, {
|
|
4607
|
+
key: x,
|
|
4608
|
+
span: y.col || 24
|
|
4720
4609
|
}, {
|
|
4721
|
-
default:
|
|
4722
|
-
|
|
4610
|
+
default: r(() => [
|
|
4611
|
+
y.errMsg ? (i(), m(O, {
|
|
4723
4612
|
key: 1,
|
|
4724
|
-
title:
|
|
4613
|
+
title: y.id + " 片段执行出错",
|
|
4725
4614
|
type: "error"
|
|
4726
4615
|
}, {
|
|
4727
|
-
default:
|
|
4728
|
-
|
|
4616
|
+
default: r(() => [
|
|
4617
|
+
T(B(y.errMsg), 1)
|
|
4729
4618
|
]),
|
|
4730
4619
|
_: 2
|
|
4731
|
-
}, 1032, ["title"])) : (
|
|
4732
|
-
key:
|
|
4733
|
-
option:
|
|
4620
|
+
}, 1032, ["title"])) : (i(), m(Ia, {
|
|
4621
|
+
key: h(s),
|
|
4622
|
+
option: y
|
|
4734
4623
|
}, null, 8, ["option"]))
|
|
4735
4624
|
]),
|
|
4736
4625
|
_: 2
|
|
@@ -4746,10 +4635,10 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4746
4635
|
});
|
|
4747
4636
|
};
|
|
4748
4637
|
}
|
|
4749
|
-
}),
|
|
4638
|
+
}), Ta = {
|
|
4750
4639
|
__name: "report",
|
|
4751
4640
|
setup(e) {
|
|
4752
|
-
const t = Q(), o =
|
|
4641
|
+
const t = Q(), o = k(() => {
|
|
4753
4642
|
let n = t.params.id;
|
|
4754
4643
|
if (!n) {
|
|
4755
4644
|
const l = t.path.split("/");
|
|
@@ -4757,21 +4646,21 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4757
4646
|
}
|
|
4758
4647
|
return "/focusbi_report/view/" + n;
|
|
4759
4648
|
});
|
|
4760
|
-
return (n, l) => (
|
|
4761
|
-
default:
|
|
4762
|
-
|
|
4649
|
+
return (n, l) => (i(), m(ge, { "schema-api": h(o) }, {
|
|
4650
|
+
default: r((s) => [
|
|
4651
|
+
u(Ca, Z(ce(s)), null, 16)
|
|
4763
4652
|
]),
|
|
4764
4653
|
_: 1
|
|
4765
4654
|
}, 8, ["schema-api"]));
|
|
4766
4655
|
}
|
|
4767
|
-
},
|
|
4768
|
-
card:
|
|
4656
|
+
}, Oa = (e) => u("div", null, [e.test]), $a = {
|
|
4657
|
+
card: Go,
|
|
4769
4658
|
form: ne,
|
|
4770
|
-
table:
|
|
4771
|
-
test:
|
|
4772
|
-
row:
|
|
4773
|
-
col:
|
|
4774
|
-
},
|
|
4659
|
+
table: be,
|
|
4660
|
+
test: Oa,
|
|
4661
|
+
row: Fo,
|
|
4662
|
+
col: Ho
|
|
4663
|
+
}, Ba = {
|
|
4775
4664
|
card: {
|
|
4776
4665
|
type: "card",
|
|
4777
4666
|
props: {
|
|
@@ -4792,7 +4681,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4792
4681
|
}
|
|
4793
4682
|
}
|
|
4794
4683
|
};
|
|
4795
|
-
function
|
|
4684
|
+
function Aa(e) {
|
|
4796
4685
|
const t = Object.assign({}, e), o = t.type.split(".").reverse(), n = t.span || 24;
|
|
4797
4686
|
delete t.span;
|
|
4798
4687
|
let l = {
|
|
@@ -4804,9 +4693,9 @@ function Ha(e) {
|
|
|
4804
4693
|
type: o[s],
|
|
4805
4694
|
children: [l]
|
|
4806
4695
|
};
|
|
4807
|
-
return l.span = n,
|
|
4696
|
+
return l.span = n, st([l]);
|
|
4808
4697
|
}
|
|
4809
|
-
function
|
|
4698
|
+
function st(e) {
|
|
4810
4699
|
const t = {
|
|
4811
4700
|
type: "row",
|
|
4812
4701
|
props: {
|
|
@@ -4817,10 +4706,10 @@ function ct(e) {
|
|
|
4817
4706
|
};
|
|
4818
4707
|
return e.forEach((o) => {
|
|
4819
4708
|
let n = Object.assign({}, o);
|
|
4820
|
-
if (
|
|
4709
|
+
if (re(n.props?.style)) {
|
|
4821
4710
|
let a = "";
|
|
4822
|
-
Object.keys(n.props?.style).forEach((
|
|
4823
|
-
a +=
|
|
4711
|
+
Object.keys(n.props?.style).forEach((c) => {
|
|
4712
|
+
a += c + ":" + n.props?.style[c] + ";";
|
|
4824
4713
|
}), n.props.style = a;
|
|
4825
4714
|
}
|
|
4826
4715
|
const l = {
|
|
@@ -4831,82 +4720,82 @@ function ct(e) {
|
|
|
4831
4720
|
t.children.push({
|
|
4832
4721
|
type: "col",
|
|
4833
4722
|
props: l,
|
|
4834
|
-
children:
|
|
4723
|
+
children: Aa(n)
|
|
4835
4724
|
});
|
|
4836
4725
|
return;
|
|
4837
4726
|
}
|
|
4838
4727
|
n = q({
|
|
4839
4728
|
props: {}
|
|
4840
|
-
},
|
|
4841
|
-
const s =
|
|
4842
|
-
s.length && (n.children =
|
|
4729
|
+
}, Ba[n.type] || {}, n);
|
|
4730
|
+
const s = Zt(n.children);
|
|
4731
|
+
s.length && (n.children = st(s)), t.children.push({
|
|
4843
4732
|
type: "col",
|
|
4844
4733
|
props: l,
|
|
4845
4734
|
children: [n]
|
|
4846
4735
|
});
|
|
4847
4736
|
}), [t];
|
|
4848
4737
|
}
|
|
4849
|
-
function
|
|
4850
|
-
return
|
|
4738
|
+
function Zt(e) {
|
|
4739
|
+
return Tt(e) ? e : re(e) ? [e] : [];
|
|
4851
4740
|
}
|
|
4852
|
-
let
|
|
4853
|
-
const
|
|
4854
|
-
const t =
|
|
4855
|
-
return
|
|
4856
|
-
default: () =>
|
|
4741
|
+
let Fe = {};
|
|
4742
|
+
const Yt = (e) => {
|
|
4743
|
+
const t = $a[e.type] || Fe[e.type] || e.type;
|
|
4744
|
+
return Io(t, e.props, {
|
|
4745
|
+
default: () => Zt(e.children).map((o) => Yt(o))
|
|
4857
4746
|
});
|
|
4858
|
-
},
|
|
4747
|
+
}, Ra = (e) => (Object.keys(Fe).length === 0 && (Fe = Eo().appContext.components), st(Object.values(e.schema)).map((o) => Yt(o))), Pa = {
|
|
4859
4748
|
__name: "custom",
|
|
4860
4749
|
setup(e) {
|
|
4861
|
-
const t =
|
|
4862
|
-
return (n, l) => (
|
|
4863
|
-
default:
|
|
4864
|
-
|
|
4750
|
+
const t = C([]), o = (n, l) => (t.value = Co(n), n);
|
|
4751
|
+
return (n, l) => (i(), m(ge, { "schema-handler": o }, {
|
|
4752
|
+
default: r(() => [
|
|
4753
|
+
u(h(Ra), { schema: h(t) }, null, 8, ["schema"])
|
|
4865
4754
|
]),
|
|
4866
4755
|
_: 1
|
|
4867
4756
|
}));
|
|
4868
4757
|
}
|
|
4869
4758
|
};
|
|
4870
|
-
let
|
|
4871
|
-
function
|
|
4872
|
-
|
|
4759
|
+
let de = {};
|
|
4760
|
+
function yr(e) {
|
|
4761
|
+
de = e;
|
|
4873
4762
|
}
|
|
4874
|
-
const
|
|
4763
|
+
const La = (e) => {
|
|
4875
4764
|
const t = (o) => {
|
|
4876
4765
|
const n = "./views/" + o + ".vue";
|
|
4877
|
-
return
|
|
4766
|
+
return de && de[n] && de[n].default ? de[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), je);
|
|
4878
4767
|
};
|
|
4879
4768
|
if (e.path === "#")
|
|
4880
|
-
return
|
|
4769
|
+
return je;
|
|
4881
4770
|
switch (e.page_type) {
|
|
4882
4771
|
case J.list:
|
|
4883
|
-
return
|
|
4772
|
+
return Xt;
|
|
4884
4773
|
case J.form:
|
|
4885
|
-
return
|
|
4774
|
+
return He;
|
|
4886
4775
|
case J.custom:
|
|
4887
4776
|
case J.localComp:
|
|
4888
4777
|
return t(e.view || "");
|
|
4889
4778
|
case J.tree:
|
|
4890
|
-
return
|
|
4779
|
+
return ha;
|
|
4891
4780
|
case J.report:
|
|
4892
|
-
return
|
|
4781
|
+
return Ta;
|
|
4893
4782
|
case J.customSchema:
|
|
4894
|
-
return
|
|
4783
|
+
return Pa;
|
|
4895
4784
|
}
|
|
4896
|
-
return
|
|
4785
|
+
return je;
|
|
4897
4786
|
};
|
|
4898
|
-
function
|
|
4787
|
+
function Ma(e) {
|
|
4899
4788
|
let t = e.path;
|
|
4900
|
-
return e.type ===
|
|
4789
|
+
return e.type === K.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;
|
|
4901
4790
|
}
|
|
4902
|
-
function
|
|
4791
|
+
function Da(e) {
|
|
4903
4792
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4904
4793
|
}
|
|
4905
|
-
const
|
|
4906
|
-
const t = e.type !==
|
|
4907
|
-
path:
|
|
4908
|
-
name: e.id + "_" +
|
|
4909
|
-
component:
|
|
4794
|
+
const eo = (e) => {
|
|
4795
|
+
const t = e.type !== K.page, o = {
|
|
4796
|
+
path: Ma(e),
|
|
4797
|
+
name: e.id + "_" + Da(e) + "_" + e.path.replaceAll("/", "_"),
|
|
4798
|
+
component: La(e),
|
|
4910
4799
|
meta: {
|
|
4911
4800
|
id: e.id,
|
|
4912
4801
|
pageId: e.id,
|
|
@@ -4918,18 +4807,18 @@ const ro = (e) => {
|
|
|
4918
4807
|
keepAlive: !1,
|
|
4919
4808
|
role: e.role
|
|
4920
4809
|
},
|
|
4921
|
-
children: e.children ? e.children.map((n) =>
|
|
4810
|
+
children: e.children ? e.children.map((n) => eo(n)) : []
|
|
4922
4811
|
};
|
|
4923
4812
|
if (e.page_type === J.entity) {
|
|
4924
4813
|
const n = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
|
|
4925
4814
|
path: n,
|
|
4926
4815
|
name: e.name + "列表" + e.id,
|
|
4927
|
-
component:
|
|
4816
|
+
component: Xt,
|
|
4928
4817
|
meta: {
|
|
4929
4818
|
id: e.id + 99999,
|
|
4930
4819
|
title: "列表",
|
|
4931
4820
|
hidden: !0,
|
|
4932
|
-
menuType:
|
|
4821
|
+
menuType: K.hidden,
|
|
4933
4822
|
keepAlive: !1,
|
|
4934
4823
|
pageId: e.id,
|
|
4935
4824
|
path: e.path
|
|
@@ -4937,12 +4826,12 @@ const ro = (e) => {
|
|
|
4937
4826
|
}, {
|
|
4938
4827
|
path: l,
|
|
4939
4828
|
name: e.name + "新建" + e.id,
|
|
4940
|
-
component:
|
|
4829
|
+
component: He,
|
|
4941
4830
|
meta: {
|
|
4942
4831
|
id: e.id + 99999 + 1,
|
|
4943
4832
|
title: "新建",
|
|
4944
4833
|
hidden: !0,
|
|
4945
|
-
menuType:
|
|
4834
|
+
menuType: K.hidden,
|
|
4946
4835
|
keepAlive: !1,
|
|
4947
4836
|
pageId: e.id,
|
|
4948
4837
|
path: e.path
|
|
@@ -4950,12 +4839,12 @@ const ro = (e) => {
|
|
|
4950
4839
|
}, {
|
|
4951
4840
|
path: s,
|
|
4952
4841
|
name: e.name + "编辑" + e.id,
|
|
4953
|
-
component:
|
|
4842
|
+
component: He,
|
|
4954
4843
|
meta: {
|
|
4955
4844
|
id: e.id + 99999 + 2,
|
|
4956
4845
|
title: "编辑",
|
|
4957
4846
|
hidden: !0,
|
|
4958
|
-
menuType:
|
|
4847
|
+
menuType: K.hidden,
|
|
4959
4848
|
keepAlive: !1,
|
|
4960
4849
|
pageId: e.id,
|
|
4961
4850
|
path: e.path
|
|
@@ -4967,8 +4856,8 @@ const ro = (e) => {
|
|
|
4967
4856
|
let n = !0;
|
|
4968
4857
|
if (o.children.forEach((l) => {
|
|
4969
4858
|
l.meta && !l.meta.hidden && (n = !1);
|
|
4970
|
-
}), o.meta && (o.meta.menuType = t ?
|
|
4971
|
-
o.meta && (o.meta.menuType =
|
|
4859
|
+
}), o.meta && (o.meta.menuType = t ? K.dir : K.hidden), n) {
|
|
4860
|
+
o.meta && (o.meta.menuType = K.menu);
|
|
4972
4861
|
let l = "/";
|
|
4973
4862
|
for (let s = 0; s < o.children.length; s++)
|
|
4974
4863
|
if (o.children[s].path.indexOf("/:") === -1) {
|
|
@@ -4979,7 +4868,7 @@ const ro = (e) => {
|
|
|
4979
4868
|
}
|
|
4980
4869
|
}
|
|
4981
4870
|
return o;
|
|
4982
|
-
},
|
|
4871
|
+
}, ja = (e) => {
|
|
4983
4872
|
const t = [];
|
|
4984
4873
|
return e.forEach((o) => {
|
|
4985
4874
|
const n = {
|
|
@@ -4988,28 +4877,28 @@ const ro = (e) => {
|
|
|
4988
4877
|
routes: []
|
|
4989
4878
|
};
|
|
4990
4879
|
o.routes.forEach((l) => {
|
|
4991
|
-
n.routes.push(
|
|
4880
|
+
n.routes.push(eo(l));
|
|
4992
4881
|
}), t.push(n);
|
|
4993
4882
|
}), t;
|
|
4994
|
-
},
|
|
4995
|
-
const t = typeof e.role == "string" ? e.role : "", o = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", n = [...
|
|
4883
|
+
}, Na = "root", vt = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Va = (e) => {
|
|
4884
|
+
const t = typeof e.role == "string" ? e.role : "", o = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", n = [...vt(t), ...vt(o)];
|
|
4996
4885
|
return !n.length && e.children && e.children.length ? [] : Array.from(new Set(n));
|
|
4997
|
-
},
|
|
4886
|
+
}, to = (e) => {
|
|
4998
4887
|
const t = { ...e };
|
|
4999
|
-
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((o) =>
|
|
5000
|
-
},
|
|
5001
|
-
const l =
|
|
5002
|
-
if (!
|
|
4888
|
+
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((o) => to(o))), t;
|
|
4889
|
+
}, Ua = (e, t) => e.length ? t.length ? e.some((o) => t.includes(o)) : !1 : !0, at = (e = [], t) => t.includes(Na) ? e.map((o) => to(o)) : e.reduce((o, n) => {
|
|
4890
|
+
const l = Va(n);
|
|
4891
|
+
if (!Ua(l, t))
|
|
5003
4892
|
return o;
|
|
5004
4893
|
const s = { ...n };
|
|
5005
4894
|
if (n.meta && (s.meta = { ...n.meta }), n.children && n.children.length) {
|
|
5006
|
-
const a =
|
|
4895
|
+
const a = at(n.children, t);
|
|
5007
4896
|
if (!a.length)
|
|
5008
4897
|
return o;
|
|
5009
4898
|
s.children = a;
|
|
5010
4899
|
}
|
|
5011
4900
|
return o.push(s), o;
|
|
5012
|
-
}, []),
|
|
4901
|
+
}, []), qa = (e) => {
|
|
5013
4902
|
const t = globalThis.atob(e);
|
|
5014
4903
|
let o = "";
|
|
5015
4904
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -5021,117 +4910,117 @@ const ro = (e) => {
|
|
|
5021
4910
|
} catch {
|
|
5022
4911
|
return decodeURIComponent(encodeURIComponent(t));
|
|
5023
4912
|
}
|
|
5024
|
-
},
|
|
4913
|
+
}, Ha = (e) => {
|
|
5025
4914
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), o = 4 - t.length % 4, n = t + (o < 4 ? "=".repeat(o) : "");
|
|
5026
|
-
return typeof globalThis.atob == "function" ?
|
|
5027
|
-
},
|
|
4915
|
+
return typeof globalThis.atob == "function" ? qa(n) : typeof Buffer < "u" ? Buffer.from(n, "base64").toString("utf-8") : "";
|
|
4916
|
+
}, Fa = (e) => {
|
|
5028
4917
|
if (!e)
|
|
5029
4918
|
return null;
|
|
5030
4919
|
const t = e.split(".");
|
|
5031
4920
|
if (t.length < 2)
|
|
5032
4921
|
return null;
|
|
5033
4922
|
try {
|
|
5034
|
-
const o =
|
|
4923
|
+
const o = Ha(t[1]);
|
|
5035
4924
|
return o ? JSON.parse(o) : null;
|
|
5036
4925
|
} catch {
|
|
5037
4926
|
return null;
|
|
5038
4927
|
}
|
|
5039
|
-
},
|
|
5040
|
-
const t =
|
|
4928
|
+
}, oo = (e) => {
|
|
4929
|
+
const t = Fa(e);
|
|
5041
4930
|
return (t && typeof t.role == "string" ? t.role : "").split(",").map((n) => n.trim()).filter((n) => !!n);
|
|
5042
4931
|
};
|
|
5043
|
-
function
|
|
4932
|
+
function Ga(e) {
|
|
5044
4933
|
e.beforeEach(async (t, o, n) => {
|
|
5045
|
-
if (
|
|
4934
|
+
if (Wt().indexOf(t.path) !== -1) {
|
|
5046
4935
|
n();
|
|
5047
4936
|
return;
|
|
5048
4937
|
}
|
|
5049
|
-
if (
|
|
4938
|
+
if (zs()) {
|
|
5050
4939
|
n();
|
|
5051
4940
|
return;
|
|
5052
4941
|
}
|
|
5053
|
-
const l =
|
|
4942
|
+
const l = j(L);
|
|
5054
4943
|
await l.info();
|
|
5055
|
-
const s = await l.loadRemoteRoutes(), a =
|
|
5056
|
-
const p =
|
|
4944
|
+
const s = await l.loadRemoteRoutes(), a = ja(s), c = oo(ve()), d = a.map((f) => {
|
|
4945
|
+
const p = at(f.routes, c);
|
|
5057
4946
|
return {
|
|
5058
|
-
...
|
|
4947
|
+
...f,
|
|
5059
4948
|
routes: p
|
|
5060
4949
|
};
|
|
5061
|
-
}).filter((
|
|
5062
|
-
d.forEach((
|
|
5063
|
-
|
|
4950
|
+
}).filter((f) => f.routes.length > 0);
|
|
4951
|
+
d.forEach((f) => {
|
|
4952
|
+
f.routes.forEach((p) => {
|
|
5064
4953
|
e.addRoute({
|
|
5065
4954
|
path: "/",
|
|
5066
|
-
component:
|
|
4955
|
+
component: Jt,
|
|
5067
4956
|
children: [p]
|
|
5068
4957
|
});
|
|
5069
4958
|
});
|
|
5070
4959
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), n();
|
|
5071
4960
|
});
|
|
5072
4961
|
}
|
|
5073
|
-
function
|
|
4962
|
+
function Ka(e) {
|
|
5074
4963
|
e.beforeEach(async (t, o, n) => {
|
|
5075
|
-
const s = [
|
|
5076
|
-
for (let
|
|
5077
|
-
const d = t.matched[
|
|
4964
|
+
const s = [U(L).title || ""], a = t.matched.length;
|
|
4965
|
+
for (let c = a; c > a - 3; c--) {
|
|
4966
|
+
const d = t.matched[c - 1];
|
|
5078
4967
|
d?.meta?.title && s.push(d.meta.title + "");
|
|
5079
4968
|
}
|
|
5080
4969
|
s.length > 1 && (document.title = s.reverse().join("-")), n();
|
|
5081
4970
|
}), e.afterEach(async (t, o, n) => {
|
|
5082
|
-
const l = Y(
|
|
4971
|
+
const l = Y(L);
|
|
5083
4972
|
Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
|
|
5084
4973
|
});
|
|
5085
4974
|
}
|
|
5086
|
-
function
|
|
5087
|
-
|
|
4975
|
+
function za(e) {
|
|
4976
|
+
Zs(e), Ks(e), Ga(e), Ka(e);
|
|
5088
4977
|
}
|
|
5089
|
-
|
|
5090
|
-
function
|
|
5091
|
-
return
|
|
4978
|
+
za(le);
|
|
4979
|
+
function Ja() {
|
|
4980
|
+
return j(L).token;
|
|
5092
4981
|
}
|
|
5093
|
-
function
|
|
5094
|
-
return
|
|
4982
|
+
function Wa() {
|
|
4983
|
+
return j(L).expired;
|
|
5095
4984
|
}
|
|
5096
|
-
function
|
|
5097
|
-
|
|
4985
|
+
function gt(e) {
|
|
4986
|
+
Fn({
|
|
5098
4987
|
message: e,
|
|
5099
4988
|
type: "error",
|
|
5100
4989
|
duration: 5 * 1e3,
|
|
5101
4990
|
grouping: !0
|
|
5102
4991
|
});
|
|
5103
4992
|
}
|
|
5104
|
-
const
|
|
4993
|
+
const Qa = {
|
|
5105
4994
|
onFulfilled: function(e) {
|
|
5106
4995
|
e.headers = e.headers || {};
|
|
5107
|
-
const t =
|
|
4996
|
+
const t = Ja();
|
|
5108
4997
|
return t && (e.headers["X-Token"] = t), le.currentRoute.value.meta?.path && (e.headers["X-Path"] = le.currentRoute.value.meta.path), e;
|
|
5109
4998
|
}
|
|
5110
|
-
},
|
|
4999
|
+
}, Xa = {
|
|
5111
5000
|
onFulfilled(e) {
|
|
5112
5001
|
if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
|
|
5113
5002
|
const n = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
|
|
5114
5003
|
if (e.data.code === 401) {
|
|
5115
|
-
if (
|
|
5004
|
+
if (Wa())
|
|
5116
5005
|
return;
|
|
5117
|
-
|
|
5006
|
+
j(L).SetExpired(), bt.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5118
5007
|
showClose: !1,
|
|
5119
5008
|
confirmButtonText: "重新登录",
|
|
5120
5009
|
showCancelButton: !0,
|
|
5121
5010
|
cancelButtonText: "取消",
|
|
5122
5011
|
callback: (l) => {
|
|
5123
|
-
l === "confirm" && (
|
|
5012
|
+
l === "confirm" && (Dt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(L).SetExpired();
|
|
5124
5013
|
}
|
|
5125
5014
|
});
|
|
5126
5015
|
return;
|
|
5127
5016
|
} else
|
|
5128
|
-
|
|
5017
|
+
gt(n);
|
|
5129
5018
|
return Promise.reject(n);
|
|
5130
5019
|
}
|
|
5131
5020
|
let o = e.data?.data?._message_box;
|
|
5132
|
-
return o !== void 0 && (
|
|
5021
|
+
return o !== void 0 && (Je(o) && (o = {
|
|
5133
5022
|
message: e.data?.data?._message_box
|
|
5134
|
-
}),
|
|
5023
|
+
}), bt({
|
|
5135
5024
|
title: "提示",
|
|
5136
5025
|
type: "success",
|
|
5137
5026
|
grouping: !0,
|
|
@@ -5139,28 +5028,28 @@ const ii = {
|
|
|
5139
5028
|
})), e.data;
|
|
5140
5029
|
},
|
|
5141
5030
|
onRejected(e) {
|
|
5142
|
-
return
|
|
5031
|
+
return We.isCancel(e) ? Promise.reject("") : (gt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
|
|
5143
5032
|
}
|
|
5144
|
-
},
|
|
5033
|
+
}, Za = [
|
|
5145
5034
|
{
|
|
5146
|
-
request:
|
|
5147
|
-
response:
|
|
5035
|
+
request: Kn,
|
|
5036
|
+
response: zn
|
|
5148
5037
|
},
|
|
5149
5038
|
{
|
|
5150
|
-
request:
|
|
5151
|
-
response:
|
|
5039
|
+
request: Qa,
|
|
5040
|
+
response: Xa
|
|
5152
5041
|
}
|
|
5153
5042
|
];
|
|
5154
|
-
function
|
|
5155
|
-
const t =
|
|
5043
|
+
function it(e = {}) {
|
|
5044
|
+
const t = Be.axios || {}, o = q(t, e || {}), n = We.create({
|
|
5156
5045
|
...o
|
|
5157
5046
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5158
5047
|
});
|
|
5159
|
-
return
|
|
5048
|
+
return Za.forEach((l) => {
|
|
5160
5049
|
n.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), n.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
|
|
5161
5050
|
}), n;
|
|
5162
5051
|
}
|
|
5163
|
-
const
|
|
5052
|
+
const no = it(), Ya = {
|
|
5164
5053
|
beforeMount(e, t) {
|
|
5165
5054
|
e.clickOutsideEvent = function(o) {
|
|
5166
5055
|
e === o.target || e.contains(o.target) || t.value(o, e);
|
|
@@ -5169,23 +5058,23 @@ const po = dt(), ui = {
|
|
|
5169
5058
|
unmounted(e) {
|
|
5170
5059
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5171
5060
|
}
|
|
5172
|
-
}, se =
|
|
5061
|
+
}, se = vn(), ei = {
|
|
5173
5062
|
mounted: (e, t) => {
|
|
5174
5063
|
e !== null && (t.value, e.oncontextmenu = (o) => {
|
|
5175
5064
|
o.preventDefault(), o.stopPropagation(), o.cancelBubble = !0, t.value && se.emit("right-click", { event: o, data: t.value });
|
|
5176
5065
|
});
|
|
5177
5066
|
}
|
|
5178
|
-
},
|
|
5067
|
+
}, ti = {
|
|
5179
5068
|
mounted(e) {
|
|
5180
5069
|
}
|
|
5181
5070
|
};
|
|
5182
|
-
function
|
|
5071
|
+
function kt(e, t) {
|
|
5183
5072
|
let o = e[`offset${t}`], n = e.offsetParent;
|
|
5184
5073
|
for (; n; )
|
|
5185
5074
|
o += n[`offset${t}`], n = n.offsetParent;
|
|
5186
5075
|
return o;
|
|
5187
5076
|
}
|
|
5188
|
-
const
|
|
5077
|
+
const oi = {
|
|
5189
5078
|
mounted: (e, t) => {
|
|
5190
5079
|
if (e === null || !t.value.dev)
|
|
5191
5080
|
return;
|
|
@@ -5196,7 +5085,7 @@ const mi = {
|
|
|
5196
5085
|
o.classList.add("devtool-hover");
|
|
5197
5086
|
const n = document.createElement("i");
|
|
5198
5087
|
n.className = "devtool-item-wrapper", o.onmouseover = () => {
|
|
5199
|
-
n.style.height = o.offsetHeight + 30 + "px", n.style.width = o.offsetWidth + 30 + "px", n.style.top =
|
|
5088
|
+
n.style.height = o.offsetHeight + 30 + "px", n.style.width = o.offsetWidth + 30 + "px", n.style.top = kt(o, "Top") - 15 + "px", n.style.left = kt(o, "Left") - 15 + "px";
|
|
5200
5089
|
};
|
|
5201
5090
|
const l = document.createElement("span");
|
|
5202
5091
|
l.className = "dev-action-edit", l.title = "编辑";
|
|
@@ -5206,63 +5095,63 @@ const mi = {
|
|
|
5206
5095
|
}, n.appendChild(l);
|
|
5207
5096
|
const a = document.createElement("span");
|
|
5208
5097
|
a.className = "dev-action-del", a.title = "删除";
|
|
5209
|
-
const
|
|
5210
|
-
|
|
5098
|
+
const c = document.createElement("i");
|
|
5099
|
+
c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
|
|
5211
5100
|
se.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5212
5101
|
}, n.appendChild(a), o.insertBefore(n, o.firstChild);
|
|
5213
5102
|
}
|
|
5214
|
-
},
|
|
5103
|
+
}, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5215
5104
|
__proto__: null,
|
|
5216
|
-
devtool:
|
|
5217
|
-
outClick:
|
|
5218
|
-
resize:
|
|
5219
|
-
rightClick:
|
|
5105
|
+
devtool: oi,
|
|
5106
|
+
outClick: Ya,
|
|
5107
|
+
resize: ti,
|
|
5108
|
+
rightClick: ei
|
|
5220
5109
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5221
|
-
let
|
|
5222
|
-
const
|
|
5223
|
-
function
|
|
5224
|
-
return e ?
|
|
5110
|
+
let xe;
|
|
5111
|
+
const lo = [], St = /* @__PURE__ */ new Set(), wt = (e) => typeof e.name == "string" ? e.name : e.path;
|
|
5112
|
+
function _r(e) {
|
|
5113
|
+
return e ? it(q(Be.axios, e)) : xe;
|
|
5225
5114
|
}
|
|
5226
|
-
function
|
|
5227
|
-
const t = q(
|
|
5115
|
+
function vr(e) {
|
|
5116
|
+
const t = q(Be, e), o = To(Dn), n = ui(t), l = t.plugins || [];
|
|
5228
5117
|
l.unshift(n), l.forEach((d) => {
|
|
5229
|
-
|
|
5230
|
-
}), t?.mock &&
|
|
5231
|
-
const s = Y(
|
|
5232
|
-
|
|
5233
|
-
"X-Token":
|
|
5234
|
-
})),
|
|
5235
|
-
|
|
5118
|
+
ci(o, d);
|
|
5119
|
+
}), t?.mock && Hn(), xe = it(t.axios), Rn(o);
|
|
5120
|
+
const s = Y(L), a = U(L), c = j(L);
|
|
5121
|
+
Cn(xe), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), o.config.globalProperties.$http = xe, o.config.globalProperties.$router = le, window.App = o, window.OmsOptions = t, yn(() => ({
|
|
5122
|
+
"X-Token": ve()
|
|
5123
|
+
})), ye(() => c.token, () => {
|
|
5124
|
+
so();
|
|
5236
5125
|
}, { immediate: !0 }), le.isReady().then(() => o.mount("#app"));
|
|
5237
5126
|
}
|
|
5238
|
-
function
|
|
5127
|
+
function li(e, t = {}) {
|
|
5239
5128
|
Object.keys(t).forEach((o) => {
|
|
5240
5129
|
e.component(o, t[o]);
|
|
5241
5130
|
});
|
|
5242
5131
|
}
|
|
5243
|
-
function
|
|
5244
|
-
const e =
|
|
5245
|
-
const a =
|
|
5246
|
-
return
|
|
5132
|
+
function so() {
|
|
5133
|
+
const e = oo(ve()), t = at(lo, e), o = j(L), n = new Set(o.customRouter.map((s) => wt(s))), l = t.filter((s) => {
|
|
5134
|
+
const a = wt(s);
|
|
5135
|
+
return St.has(a) || n.has(a) ? !1 : (St.add(a), !0);
|
|
5247
5136
|
});
|
|
5248
5137
|
l.forEach((s) => {
|
|
5249
5138
|
le.addRoute(s);
|
|
5250
5139
|
}), l.length && o.setCustomRoutes(l);
|
|
5251
5140
|
}
|
|
5252
|
-
function
|
|
5253
|
-
|
|
5141
|
+
function si(e = []) {
|
|
5142
|
+
lo.push(...e), so();
|
|
5254
5143
|
}
|
|
5255
|
-
function
|
|
5144
|
+
function ai(e, t) {
|
|
5256
5145
|
t.forEach((o) => {
|
|
5257
|
-
|
|
5146
|
+
re(o) && (o = [o]), e.use(...o);
|
|
5258
5147
|
});
|
|
5259
5148
|
}
|
|
5260
|
-
function
|
|
5149
|
+
function ii(e, t = {}) {
|
|
5261
5150
|
Object.keys(t).forEach((o) => {
|
|
5262
5151
|
e.directive(o, t[o]);
|
|
5263
5152
|
});
|
|
5264
5153
|
}
|
|
5265
|
-
function
|
|
5154
|
+
function ri(e = {}) {
|
|
5266
5155
|
const t = ["app", "settings", "user"];
|
|
5267
5156
|
Object.keys(e).forEach((o) => {
|
|
5268
5157
|
if (t.indexOf(o) !== -1) {
|
|
@@ -5272,51 +5161,50 @@ function vi(e = {}) {
|
|
|
5272
5161
|
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", o);
|
|
5273
5162
|
});
|
|
5274
5163
|
}
|
|
5275
|
-
function
|
|
5276
|
-
|
|
5164
|
+
function ci(e, t) {
|
|
5165
|
+
li(e, t.components || {}), si(t.routes || []), ai(e, t.use || []), ii(e, t.directives || {}), ri(t.storeModules || {}), Ht(t.mockApis || []);
|
|
5277
5166
|
}
|
|
5278
|
-
function
|
|
5167
|
+
function ui(e) {
|
|
5279
5168
|
return {
|
|
5280
|
-
components: { VIcon:
|
|
5281
|
-
directives:
|
|
5169
|
+
components: { VIcon: _n },
|
|
5170
|
+
directives: ni,
|
|
5282
5171
|
use: [
|
|
5283
5172
|
le,
|
|
5284
|
-
[
|
|
5173
|
+
[qo, { locale: Ot, ...e.settings?.ElementPlus }]
|
|
5285
5174
|
]
|
|
5286
5175
|
};
|
|
5287
5176
|
}
|
|
5288
5177
|
export {
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5178
|
+
Qt as BaseSso,
|
|
5179
|
+
je as Container,
|
|
5180
|
+
br as DingTalk,
|
|
5181
|
+
hr as Github,
|
|
5182
|
+
Jt as Layout,
|
|
5183
|
+
K as MenuType,
|
|
5184
|
+
Fn as Message,
|
|
5185
|
+
bt as MessageBox,
|
|
5297
5186
|
J as PageType,
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5187
|
+
Qs as allSso,
|
|
5188
|
+
Bn as appState,
|
|
5189
|
+
An as builderSchemaState,
|
|
5190
|
+
vr as createAdmin,
|
|
5302
5191
|
se as eventBus,
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
ns as useAestheticMode,
|
|
5192
|
+
Jn as getCmp,
|
|
5193
|
+
Pe as getHttp,
|
|
5194
|
+
xe as http,
|
|
5195
|
+
it as instance,
|
|
5196
|
+
L as pinia,
|
|
5197
|
+
yr as regViews,
|
|
5198
|
+
mr as setCmp,
|
|
5199
|
+
Cn as setHttp,
|
|
5200
|
+
On as settings,
|
|
5201
|
+
Rn as setupStore,
|
|
5202
|
+
ja as transRemoteModules,
|
|
5315
5203
|
Y as useAppStore,
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5204
|
+
fr as useBuilderSchemaStore,
|
|
5205
|
+
_r as useHttp,
|
|
5206
|
+
U as useSettingsStore,
|
|
5207
|
+
j as useUserStore,
|
|
5208
|
+
pt as userState
|
|
5321
5209
|
};
|
|
5322
5210
|
//# sourceMappingURL=index.es.js.map
|