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