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