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