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