@okiss/oms 0.0.80 → 0.0.81
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 +663 -644
- package/dist/index.es.js.map +1 -1
- package/dist/oms.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { normalizeTheme as
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { ref as O, watch as en, computed as w, defineComponent as z, onBeforeMount as pt, provide as tn, resolveComponent as P, createBlock as f, openBlock as a, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as nn, createElementBlock as v, Fragment as $, renderList as V, toDisplayString as N, normalizeClass as Y, renderSlot as ce, createCommentVNode as B, mergeProps as Q, toRefs as on, unref as d, isRef as dt, onMounted as Ue, normalizeStyle as ln, createElementVNode as k, withKeys as Ye, withModifiers as et, resolveDynamicComponent as mt, Transition as sn, normalizeProps as le, guardReactiveProps as we, withDirectives as Te, vModelText as Re, onUnmounted as an, getCurrentInstance as rn, h as cn, toRaw as un, createApp as pn } from "vue";
|
|
2
|
+
import { normalizeTheme as ue, applyDocumentTheme as dn, dispatchThemeChange as mn, addNewStyle as fn, addNewStyleTag as hn, queryParams as bn, logGroup as yn, compactObject as ft, showEleByClassName as ht, waterMarker as _n, Cache as he, isExternal as tt, getQueryParam as bt, createIFrame as vn, strVarReplace as ne, obj2Param as gn, isObject as ve, isString as yt, effectDataTrans as kn, isArray as wn } from "@okiss/utils";
|
|
3
|
+
import { defineStore as Se, createPinia as Sn } from "pinia";
|
|
4
4
|
import de from "js-cookie";
|
|
5
|
-
import
|
|
6
|
-
import xn, { cloneDeep as S, merge as
|
|
5
|
+
import _t from "element-plus/es/locale/lang/zh-cn";
|
|
6
|
+
import xn, { cloneDeep as S, merge as G, get as pe, unset as vt, isObject as En } from "lodash";
|
|
7
7
|
import Be from "mockjs";
|
|
8
8
|
import Ve from "axios";
|
|
9
|
-
import In, { ElMessageBox as
|
|
9
|
+
import In, { ElMessageBox as gt, ElMessage as Cn, ElCol as Tn, ElRow as Rn, ElCard as Bn } 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 se, useRouter as
|
|
14
|
-
import { ElBreadcrumb as Ln, ElBreadcrumbItem as Mn, ElContainer as Dn, ElRow as
|
|
13
|
+
import { useRoute as se, useRouter as xe, onBeforeRouteLeave as On, createRouter as $n, createWebHashHistory as Pn, onBeforeRouteUpdate as An } from "vue-router";
|
|
14
|
+
import { ElBreadcrumb as Ln, ElBreadcrumbItem as Mn, ElContainer as Dn, ElRow as Ee, ElMain as jn, ElAside as Nn, ElForm as kt, ElFormItem as wt, ElSelect as He, ElOption as Fe, ElDivider as St, ElButton as me, ElCol as Ge, ElDrawer as xt, ElTooltip as qn, ElIcon as Un, ElDropdown as Vn, ElDropdownMenu as Hn, ElDropdownItem as Fn, ElMenuItem as Gn, ElSubMenu as zn, ElOptionGroup as Kn, ElScrollbar as Jn, ElMenu as Wn, ElBacktop as Qn, ElMessage as Xn, ElAlert as Et, ElCard as Zn, ElTree as Yn } 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";
|
|
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
33
|
import "element-plus/es/components/container/style/css";
|
|
34
34
|
import "element-plus/es/components/aside/style/css";
|
|
35
35
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import { JsonView as
|
|
36
|
+
import { JsonView as It, VBtn as ze, VForm as oe, VTable as ge, setUploadHeaderHandle as to, VIcon as no } from "@okiss/vbtf";
|
|
37
37
|
import "normalize.css/normalize.css";
|
|
38
38
|
import "@okiss/vbtf/style.css";
|
|
39
39
|
import oo from "mitt";
|
|
@@ -50,7 +50,7 @@ import "element-plus/es/components/card/style/css";
|
|
|
50
50
|
import "element-plus/es/components/tree/style/css";
|
|
51
51
|
import ao from "crypto-js";
|
|
52
52
|
import "element-plus/es/components/message/style/css";
|
|
53
|
-
import
|
|
53
|
+
import Me from "nprogress";
|
|
54
54
|
import "nprogress/nprogress.css";
|
|
55
55
|
String.prototype.format || (String.prototype.format = function() {
|
|
56
56
|
const e = arguments;
|
|
@@ -58,29 +58,29 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
58
58
|
return typeof e[n] < "u" ? e[n] : t;
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
const
|
|
62
|
-
function
|
|
63
|
-
return de.get(
|
|
61
|
+
const Ke = "oms:token";
|
|
62
|
+
function fe() {
|
|
63
|
+
return de.get(Ke) || "";
|
|
64
64
|
}
|
|
65
65
|
function ro(e) {
|
|
66
|
-
const t =
|
|
67
|
-
return de.set(
|
|
66
|
+
const t = q(A), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
|
|
67
|
+
return de.set(Ke, e, { expires: n });
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return de.remove(
|
|
69
|
+
function Ct() {
|
|
70
|
+
return de.remove(Ke);
|
|
71
71
|
}
|
|
72
|
-
let
|
|
72
|
+
let Tt = null;
|
|
73
73
|
function co(e) {
|
|
74
|
-
|
|
74
|
+
Tt = e;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function Oe() {
|
|
77
|
+
return Tt;
|
|
78
78
|
}
|
|
79
79
|
const uo = {
|
|
80
80
|
baseURL: "/api",
|
|
81
81
|
withCredentials: !0,
|
|
82
82
|
cacheEnable: !0
|
|
83
|
-
},
|
|
83
|
+
}, Rt = {
|
|
84
84
|
title: "oms",
|
|
85
85
|
fixedHeader: !1,
|
|
86
86
|
sidebarLogo: !0,
|
|
@@ -94,7 +94,7 @@ const uo = {
|
|
|
94
94
|
ElementPlus: {
|
|
95
95
|
size: "default",
|
|
96
96
|
zIndex: 3e3,
|
|
97
|
-
locale:
|
|
97
|
+
locale: _t
|
|
98
98
|
},
|
|
99
99
|
nav: [],
|
|
100
100
|
whiteRoutes: ["/login"],
|
|
@@ -108,23 +108,23 @@ const uo = {
|
|
|
108
108
|
formMutex: !0,
|
|
109
109
|
captcha: !0,
|
|
110
110
|
themeMode: "light"
|
|
111
|
-
},
|
|
111
|
+
}, Ie = {
|
|
112
112
|
axios: uo,
|
|
113
|
-
settings:
|
|
113
|
+
settings: Rt,
|
|
114
114
|
plugins: [],
|
|
115
115
|
mock: !1
|
|
116
|
-
}, po = S(
|
|
116
|
+
}, po = S(Rt), q = Se("settings", {
|
|
117
117
|
state: () => ({ ...po }),
|
|
118
118
|
actions: {
|
|
119
119
|
updateSettings(e) {
|
|
120
|
-
|
|
120
|
+
G(this, e);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
123
|
+
}), nt = {
|
|
124
124
|
name: "",
|
|
125
125
|
nickname: "",
|
|
126
126
|
avatar: "",
|
|
127
|
-
token:
|
|
127
|
+
token: fe(),
|
|
128
128
|
customRouter: [],
|
|
129
129
|
rawCustomRouter: [],
|
|
130
130
|
remoteRouter: [],
|
|
@@ -135,14 +135,14 @@ const uo = {
|
|
|
135
135
|
path: "",
|
|
136
136
|
env: "",
|
|
137
137
|
expired: !1
|
|
138
|
-
}, j =
|
|
139
|
-
state: () => ({ ...
|
|
138
|
+
}, j = Se("user", {
|
|
139
|
+
state: () => ({ ...nt }),
|
|
140
140
|
actions: {
|
|
141
141
|
updateToken(e) {
|
|
142
142
|
this.token = e, ro(e);
|
|
143
143
|
},
|
|
144
144
|
removeToken() {
|
|
145
|
-
this.token = "",
|
|
145
|
+
this.token = "", Ct();
|
|
146
146
|
},
|
|
147
147
|
updateRemoteRouter(e) {
|
|
148
148
|
this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
|
|
@@ -164,7 +164,7 @@ const uo = {
|
|
|
164
164
|
this[e] = t;
|
|
165
165
|
},
|
|
166
166
|
resetUser() {
|
|
167
|
-
const e = { ...
|
|
167
|
+
const e = { ...nt, token: fe() };
|
|
168
168
|
Object.assign(this, e);
|
|
169
169
|
},
|
|
170
170
|
SET_EXPIRED() {
|
|
@@ -173,7 +173,7 @@ const uo = {
|
|
|
173
173
|
// async actions
|
|
174
174
|
login(e) {
|
|
175
175
|
return new Promise((t, n) => {
|
|
176
|
-
const o =
|
|
176
|
+
const o = Oe();
|
|
177
177
|
if (!o) {
|
|
178
178
|
n("http client not init");
|
|
179
179
|
return;
|
|
@@ -192,7 +192,7 @@ const uo = {
|
|
|
192
192
|
},
|
|
193
193
|
info() {
|
|
194
194
|
return new Promise((e, t) => {
|
|
195
|
-
const n =
|
|
195
|
+
const n = Oe();
|
|
196
196
|
if (!n) {
|
|
197
197
|
t("http client not init");
|
|
198
198
|
return;
|
|
@@ -204,13 +204,13 @@ const uo = {
|
|
|
204
204
|
const l = o.data?.role_ids || [];
|
|
205
205
|
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
206
|
const s = o.data?.website || {};
|
|
207
|
-
|
|
207
|
+
q().updateSettings(s), !de.get("username") && de.set("username", o.data?.name), e(!0);
|
|
208
208
|
}).catch((o) => t(o));
|
|
209
209
|
});
|
|
210
210
|
},
|
|
211
211
|
loadRemoteRoutes() {
|
|
212
212
|
return new Promise((e, t) => {
|
|
213
|
-
|
|
213
|
+
Oe()?.request({
|
|
214
214
|
url: "/user/routes",
|
|
215
215
|
method: "get"
|
|
216
216
|
}).then((o) => {
|
|
@@ -236,7 +236,7 @@ const uo = {
|
|
|
236
236
|
} catch {
|
|
237
237
|
return null;
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, ot = (e) => {
|
|
240
240
|
if (!(typeof window > "u"))
|
|
241
241
|
try {
|
|
242
242
|
window.localStorage.setItem(Bt, e);
|
|
@@ -255,14 +255,14 @@ const uo = {
|
|
|
255
255
|
currentRouteMeta: {},
|
|
256
256
|
builderSchema: {},
|
|
257
257
|
baseURL: ""
|
|
258
|
-
}, X =
|
|
258
|
+
}, X = Se("app", {
|
|
259
259
|
state: () => ({ ...fo }),
|
|
260
260
|
actions: {
|
|
261
261
|
TOGGLE_SIDEBAR() {
|
|
262
|
-
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1,
|
|
262
|
+
this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, ot(this.sidebar.opened ? "1" : "0");
|
|
263
263
|
},
|
|
264
264
|
CLOSE_SIDEBAR(e) {
|
|
265
|
-
|
|
265
|
+
ot("0"), this.sidebar.opened = !1, this.sidebar.withoutAnimation = e;
|
|
266
266
|
},
|
|
267
267
|
TOGGLE_DEVICE(e) {
|
|
268
268
|
this.device = e;
|
|
@@ -305,7 +305,7 @@ const uo = {
|
|
|
305
305
|
}), ho = {
|
|
306
306
|
currentCellItem: {}
|
|
307
307
|
// form/sub-form 当前单元格编辑数据
|
|
308
|
-
},
|
|
308
|
+
}, Ba = Se("builderSchema", {
|
|
309
309
|
state: () => ({ ...ho }),
|
|
310
310
|
actions: {
|
|
311
311
|
SET_CURRENT_CELLITEM(e) {
|
|
@@ -315,58 +315,58 @@ const uo = {
|
|
|
315
315
|
this.SET_CURRENT_CELLITEM(e);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
318
|
+
}), A = Sn();
|
|
319
319
|
function bo(e) {
|
|
320
|
-
e.use(
|
|
320
|
+
e.use(A);
|
|
321
321
|
}
|
|
322
|
-
const
|
|
323
|
-
let
|
|
322
|
+
const Ot = "oms-theme", $t = O("light");
|
|
323
|
+
let lt = !1, be = null;
|
|
324
324
|
function yo(e) {
|
|
325
|
-
const t =
|
|
325
|
+
const t = ue(e ?? void 0);
|
|
326
326
|
if (typeof window > "u")
|
|
327
327
|
return t;
|
|
328
|
-
const n = window.localStorage?.getItem(
|
|
328
|
+
const n = window.localStorage?.getItem(Ot);
|
|
329
329
|
return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
330
330
|
}
|
|
331
331
|
function _o(e) {
|
|
332
|
-
typeof window < "u" && window.localStorage?.setItem(
|
|
332
|
+
typeof window < "u" && window.localStorage?.setItem(Ot, e);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
const t =
|
|
336
|
-
|
|
334
|
+
function $e(e) {
|
|
335
|
+
const t = ue(e);
|
|
336
|
+
$t.value = t, dn(t), mn(t), _o(t);
|
|
337
337
|
}
|
|
338
338
|
function vo(e) {
|
|
339
339
|
if (typeof window > "u" || typeof window.matchMedia != "function") {
|
|
340
|
-
|
|
340
|
+
be = null;
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
343
|
const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
|
|
344
344
|
const l = o.matches ?? t.matches;
|
|
345
345
|
e(l ? "dark" : "light");
|
|
346
346
|
};
|
|
347
|
-
typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n),
|
|
348
|
-
typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n),
|
|
347
|
+
typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), be = () => {
|
|
348
|
+
typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), be = null;
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
const e =
|
|
353
|
-
const i =
|
|
354
|
-
e.themeMode !== i ? e.updateSettings({ themeMode: i }) :
|
|
351
|
+
function Pt() {
|
|
352
|
+
const e = q(), t = (s) => {
|
|
353
|
+
const i = ue(s);
|
|
354
|
+
e.themeMode !== i ? e.updateSettings({ themeMode: i }) : $e(i);
|
|
355
355
|
};
|
|
356
|
-
if (!
|
|
357
|
-
|
|
356
|
+
if (!lt) {
|
|
357
|
+
lt = !0;
|
|
358
358
|
const s = yo(e.themeMode);
|
|
359
|
-
|
|
359
|
+
ue(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : $e(s), en(
|
|
360
360
|
() => e.themeMode,
|
|
361
361
|
(i) => {
|
|
362
|
-
|
|
362
|
+
$e(ue(i));
|
|
363
363
|
},
|
|
364
364
|
{ immediate: !0 }
|
|
365
|
-
),
|
|
365
|
+
), be?.(), vo((i) => {
|
|
366
366
|
t(i);
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
const n = w(() =>
|
|
369
|
+
const n = w(() => $t.value), o = w(() => n.value === "dark");
|
|
370
370
|
return {
|
|
371
371
|
themeMode: n,
|
|
372
372
|
isDark: o,
|
|
@@ -376,10 +376,10 @@ function $t() {
|
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
const go = /* @__PURE__ */
|
|
379
|
+
const go = /* @__PURE__ */ z({
|
|
380
380
|
__name: "App",
|
|
381
381
|
setup(e) {
|
|
382
|
-
return
|
|
382
|
+
return Pt(), pt(() => {
|
|
383
383
|
const t = document.getElementById("preloader");
|
|
384
384
|
t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), fn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), hn(`.iconfont {
|
|
385
385
|
font-size: 19px;
|
|
@@ -388,12 +388,12 @@ const go = /* @__PURE__ */ K({
|
|
|
388
388
|
font-family: iconfont !important;
|
|
389
389
|
}`));
|
|
390
390
|
}), window?.OmsOptions?.form?.vsPath && tn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
|
|
391
|
-
const o =
|
|
392
|
-
return a(),
|
|
391
|
+
const o = P("router-view");
|
|
392
|
+
return a(), f(o);
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
-
var
|
|
396
|
+
var ae = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ae || {});
|
|
397
397
|
const ko = [
|
|
398
398
|
{
|
|
399
399
|
type: "jump",
|
|
@@ -476,7 +476,7 @@ const wo = {
|
|
|
476
476
|
}
|
|
477
477
|
}, So = { listMock: wo }, xo = [
|
|
478
478
|
{
|
|
479
|
-
method:
|
|
479
|
+
method: ae.POST,
|
|
480
480
|
url: "/login",
|
|
481
481
|
response(e) {
|
|
482
482
|
return {
|
|
@@ -489,7 +489,7 @@ const wo = {
|
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
|
-
method:
|
|
492
|
+
method: ae.GET,
|
|
493
493
|
url: "/user/info",
|
|
494
494
|
response(e) {
|
|
495
495
|
return {
|
|
@@ -503,7 +503,7 @@ const wo = {
|
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
url: "/user/routes",
|
|
506
|
-
method:
|
|
506
|
+
method: ae.GET,
|
|
507
507
|
response: (e) => ({
|
|
508
508
|
code: 0,
|
|
509
509
|
data: [
|
|
@@ -517,33 +517,33 @@ const wo = {
|
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
url: "/user/list",
|
|
520
|
-
method:
|
|
520
|
+
method: ae.GET,
|
|
521
521
|
response: (e) => So.listMock
|
|
522
522
|
}
|
|
523
523
|
], Eo = [
|
|
524
524
|
...xo
|
|
525
|
-
],
|
|
525
|
+
], De = {};
|
|
526
526
|
function At(e) {
|
|
527
527
|
e.forEach((t) => {
|
|
528
|
-
const n =
|
|
529
|
-
|
|
528
|
+
const n = Lt(t);
|
|
529
|
+
De[`${t.method}::${n}`] = t;
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
532
|
At(Eo);
|
|
533
|
-
function
|
|
534
|
-
let t = e.url, n = e.baseURL ||
|
|
533
|
+
function Lt(e) {
|
|
534
|
+
let t = e.url, n = e.baseURL || Ie.axios?.baseURL;
|
|
535
535
|
return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
536
536
|
}
|
|
537
537
|
function Io() {
|
|
538
|
-
Object.keys(
|
|
539
|
-
const t =
|
|
538
|
+
Object.keys(De).forEach((e) => {
|
|
539
|
+
const t = De[e], n = Lt(t);
|
|
540
540
|
Be.mock(n, t.method, function(o) {
|
|
541
|
-
const { url: l, type: s, body: i } = o, c = bn(l),
|
|
542
|
-
return yn(l, { type: s, query: c, data:
|
|
541
|
+
const { url: l, type: s, body: i } = o, c = bn(l), p = i ? JSON.parse(i) : {}, m = t.response({ query: c, data: p }), h = Be.mock(m);
|
|
542
|
+
return yn(l, { type: s, query: c, data: p, response: h }), Be.mock(h);
|
|
543
543
|
});
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
|
-
const Co = Cn,
|
|
546
|
+
const Co = Cn, st = gt, To = Ve.CancelToken, ye = {
|
|
547
547
|
taskList: {},
|
|
548
548
|
cacheList: /* @__PURE__ */ new Map(),
|
|
549
549
|
uniqueId(e) {
|
|
@@ -579,30 +579,30 @@ const Co = Cn, lt = vt, To = Ve.CancelToken, be = {
|
|
|
579
579
|
const t = this.uniqueId(e);
|
|
580
580
|
return this.cacheList.delete(t);
|
|
581
581
|
}
|
|
582
|
-
},
|
|
582
|
+
}, Ro = {
|
|
583
583
|
onFulfilled: function(e) {
|
|
584
|
-
return e.cacheEnable === !1 || (
|
|
585
|
-
|
|
584
|
+
return e.cacheEnable === !1 || (ye.pending(e) && ye.delTask(e), e.cancelToken = new To((t) => {
|
|
585
|
+
ye.addTask(e, t);
|
|
586
586
|
})), e;
|
|
587
587
|
},
|
|
588
588
|
onRejected(e) {
|
|
589
589
|
return Promise.reject(e);
|
|
590
590
|
}
|
|
591
|
-
},
|
|
591
|
+
}, Bo = {
|
|
592
592
|
onFulfilled: function(e) {
|
|
593
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
593
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ye.addCache(e.config, e.data), e;
|
|
594
594
|
},
|
|
595
595
|
onRejected(e) {
|
|
596
596
|
return Promise.reject(e);
|
|
597
597
|
}
|
|
598
|
-
},
|
|
598
|
+
}, Mt = {};
|
|
599
599
|
function Oa(e, t) {
|
|
600
|
-
|
|
600
|
+
Mt[e] = t;
|
|
601
601
|
}
|
|
602
602
|
function Oo(e) {
|
|
603
|
-
return
|
|
603
|
+
return Mt[e];
|
|
604
604
|
}
|
|
605
|
-
const $o = /* @__PURE__ */
|
|
605
|
+
const $o = /* @__PURE__ */ z({
|
|
606
606
|
name: "Dashboard",
|
|
607
607
|
setup() {
|
|
608
608
|
const e = Oo("dashboard");
|
|
@@ -620,7 +620,7 @@ const $o = /* @__PURE__ */ K({
|
|
|
620
620
|
for (const [o, l] of t)
|
|
621
621
|
n[o] = l;
|
|
622
622
|
return n;
|
|
623
|
-
},
|
|
623
|
+
}, Po = /* @__PURE__ */ L($o, [["__scopeId", "data-v-85165680"]]), Ao = {
|
|
624
624
|
data() {
|
|
625
625
|
return {
|
|
626
626
|
levelList: null
|
|
@@ -669,21 +669,21 @@ const $o = /* @__PURE__ */ K({
|
|
|
669
669
|
}, Mo = ["onClick"];
|
|
670
670
|
function Do(e, t, n, o, l, s) {
|
|
671
671
|
const i = Mn, c = Ln;
|
|
672
|
-
return a(),
|
|
672
|
+
return a(), f(c, {
|
|
673
673
|
class: "app-breadcrumb",
|
|
674
674
|
separator: "/"
|
|
675
675
|
}, {
|
|
676
676
|
default: r(() => [
|
|
677
677
|
u(nn, { name: "breadcrumb" }, {
|
|
678
678
|
default: r(() => [
|
|
679
|
-
(a(!0),
|
|
680
|
-
key:
|
|
679
|
+
(a(!0), v($, null, V(l.levelList, (p, m) => (a(), f(i, {
|
|
680
|
+
key: p.path
|
|
681
681
|
}, {
|
|
682
682
|
default: r(() => [
|
|
683
|
-
|
|
683
|
+
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || m === l.levelList.length - 1 ? (a(), v("span", Lo, N(p.meta.title), 1)) : (a(), v("a", {
|
|
684
684
|
key: 1,
|
|
685
|
-
onClick: (
|
|
686
|
-
}, N(
|
|
685
|
+
onClick: (h) => s.handleLink(p)
|
|
686
|
+
}, N(p.meta.title), 9, Mo))
|
|
687
687
|
]),
|
|
688
688
|
_: 2
|
|
689
689
|
}, 1024))), 128))
|
|
@@ -694,7 +694,7 @@ function Do(e, t, n, o, l, s) {
|
|
|
694
694
|
_: 1
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
const jo = /* @__PURE__ */ L(
|
|
697
|
+
const jo = /* @__PURE__ */ L(Ao, [["render", Do], ["__scopeId", "data-v-fa74804e"]]), No = {
|
|
698
698
|
name: "Hamburger",
|
|
699
699
|
props: {
|
|
700
700
|
isActive: {
|
|
@@ -709,26 +709,26 @@ const jo = /* @__PURE__ */ L(Po, [["render", Do], ["__scopeId", "data-v-fa74804e
|
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
};
|
|
712
|
-
function
|
|
713
|
-
const i =
|
|
714
|
-
return a(),
|
|
712
|
+
function qo(e, t, n, o, l, s) {
|
|
713
|
+
const i = P("v-icon");
|
|
714
|
+
return a(), v("div", {
|
|
715
715
|
style: { padding: "0 15px" },
|
|
716
716
|
onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
|
|
717
717
|
}, [
|
|
718
718
|
u(i, {
|
|
719
|
-
class:
|
|
719
|
+
class: Y({ "is-active": n.isActive }),
|
|
720
720
|
name: "ra-leftalignment"
|
|
721
721
|
}, null, 8, ["class"])
|
|
722
722
|
]);
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const Uo = /* @__PURE__ */ L(No, [["render", qo]]), Vo = {};
|
|
725
725
|
function Ho(e, t) {
|
|
726
|
-
const n =
|
|
727
|
-
return a(),
|
|
726
|
+
const n = Ee, o = jn, l = Nn, s = Dn;
|
|
727
|
+
return a(), f(s, { style: { width: "100%", height: "100%" } }, {
|
|
728
728
|
default: r(() => [
|
|
729
729
|
u(n, { class: "aside" }, {
|
|
730
730
|
default: r(() => [
|
|
731
|
-
|
|
731
|
+
ce(e.$slots, "left-aside", {}, void 0, !0)
|
|
732
732
|
]),
|
|
733
733
|
_: 3
|
|
734
734
|
}),
|
|
@@ -737,7 +737,7 @@ function Ho(e, t) {
|
|
|
737
737
|
style: { margin: "0 10px" }
|
|
738
738
|
}, {
|
|
739
739
|
default: r(() => [
|
|
740
|
-
|
|
740
|
+
ce(e.$slots, "main", {}, void 0, !0)
|
|
741
741
|
]),
|
|
742
742
|
_: 3
|
|
743
743
|
}),
|
|
@@ -747,7 +747,7 @@ function Ho(e, t) {
|
|
|
747
747
|
style: { padding: "20px" }
|
|
748
748
|
}, {
|
|
749
749
|
default: r(() => [
|
|
750
|
-
|
|
750
|
+
ce(e.$slots, "right-aside", {}, void 0, !0)
|
|
751
751
|
]),
|
|
752
752
|
_: 3
|
|
753
753
|
})
|
|
@@ -755,7 +755,7 @@ function Ho(e, t) {
|
|
|
755
755
|
_: 3
|
|
756
756
|
});
|
|
757
757
|
}
|
|
758
|
-
const
|
|
758
|
+
const Dt = /* @__PURE__ */ L(Vo, [["render", Ho], ["__scopeId", "data-v-7c3d697b"]]), Fo = {
|
|
759
759
|
type: "input",
|
|
760
760
|
name: "文本框",
|
|
761
761
|
default: {
|
|
@@ -1328,9 +1328,9 @@ const Mt = /* @__PURE__ */ L(qo, [["render", Ho], ["__scopeId", "data-v-7c3d697b
|
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
]
|
|
1331
|
-
},
|
|
1331
|
+
}, jt = {};
|
|
1332
1332
|
function H(e) {
|
|
1333
|
-
|
|
1333
|
+
jt[e.type] = e;
|
|
1334
1334
|
}
|
|
1335
1335
|
H(Fo);
|
|
1336
1336
|
H(Ko);
|
|
@@ -1345,7 +1345,7 @@ H(Xo);
|
|
|
1345
1345
|
H(Zo);
|
|
1346
1346
|
H(el);
|
|
1347
1347
|
H(Yo);
|
|
1348
|
-
const
|
|
1348
|
+
const je = jt, ol = {
|
|
1349
1349
|
options: {
|
|
1350
1350
|
labelPosition: "top",
|
|
1351
1351
|
submitButton: !1,
|
|
@@ -1443,13 +1443,13 @@ const De = Dt, ol = {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
1445
|
]
|
|
1446
|
-
},
|
|
1446
|
+
}, Pe = {
|
|
1447
1447
|
labelPosition: "top",
|
|
1448
1448
|
submitButton: !1,
|
|
1449
1449
|
cancelButton: !1
|
|
1450
|
-
},
|
|
1451
|
-
Object.keys(
|
|
1452
|
-
|
|
1450
|
+
}, Je = [];
|
|
1451
|
+
Object.keys(je).forEach((e) => {
|
|
1452
|
+
Je.push({ value: e, label: je[e].name });
|
|
1453
1453
|
});
|
|
1454
1454
|
const ll = {
|
|
1455
1455
|
options: {
|
|
@@ -1472,7 +1472,7 @@ const ll = {
|
|
|
1472
1472
|
type: "select",
|
|
1473
1473
|
field: "type",
|
|
1474
1474
|
label: "类型",
|
|
1475
|
-
options: S(
|
|
1475
|
+
options: S(Je)
|
|
1476
1476
|
},
|
|
1477
1477
|
{
|
|
1478
1478
|
type: "input",
|
|
@@ -1484,7 +1484,7 @@ const ll = {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
]
|
|
1486
1486
|
}, sl = {
|
|
1487
|
-
components: { DevLayout:
|
|
1487
|
+
components: { DevLayout: Dt, VForm: oe, VButton: ze, JsonView: It },
|
|
1488
1488
|
props: {
|
|
1489
1489
|
schema: {
|
|
1490
1490
|
type: Object,
|
|
@@ -1516,12 +1516,12 @@ const ll = {
|
|
|
1516
1516
|
ctrlSchema: {},
|
|
1517
1517
|
ctrlName: "",
|
|
1518
1518
|
activeIndex: void 0,
|
|
1519
|
-
ctrlMap:
|
|
1519
|
+
ctrlMap: je,
|
|
1520
1520
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
1521
1521
|
tableStruct: "",
|
|
1522
1522
|
activeName: "1",
|
|
1523
1523
|
currentCtrlType: "input",
|
|
1524
|
-
types: S(
|
|
1524
|
+
types: S(Je)
|
|
1525
1525
|
};
|
|
1526
1526
|
},
|
|
1527
1527
|
computed: {
|
|
@@ -1537,14 +1537,14 @@ const ll = {
|
|
|
1537
1537
|
immediate: !0,
|
|
1538
1538
|
handler(e) {
|
|
1539
1539
|
const t = S(e);
|
|
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 =
|
|
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 = G(this.builderSchema, { options: t }), this.key++);
|
|
1541
1541
|
}
|
|
1542
1542
|
},
|
|
1543
1543
|
ctrlOptions: {
|
|
1544
1544
|
deep: !0,
|
|
1545
1545
|
// immediate: true,
|
|
1546
1546
|
handler(e) {
|
|
1547
|
-
const t =
|
|
1547
|
+
const t = pe(this.builderSchema, this.activeIndex);
|
|
1548
1548
|
if (!t)
|
|
1549
1549
|
return;
|
|
1550
1550
|
const n = t ? t.type : "", o = this.ctrlMap[n], l = o.trans ? o.trans(e) : e;
|
|
@@ -1562,21 +1562,21 @@ const ll = {
|
|
|
1562
1562
|
handler(e) {
|
|
1563
1563
|
const t = this.ctrlMap[e];
|
|
1564
1564
|
this.ctrlSchema = S({
|
|
1565
|
-
options: S(
|
|
1565
|
+
options: S(Pe),
|
|
1566
1566
|
formItems: S(t.builder)
|
|
1567
1567
|
});
|
|
1568
|
-
const n =
|
|
1568
|
+
const n = pe(this.builderSchema, this.activeIndex);
|
|
1569
1569
|
this.ctrlOptions = S(n), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
1572
|
},
|
|
1573
1573
|
beforeCreate() {
|
|
1574
|
-
|
|
1574
|
+
ee.on("dev-action", ({ event: e, data: t }) => {
|
|
1575
1575
|
this.onDevAction(t.type, t.devId);
|
|
1576
1576
|
});
|
|
1577
1577
|
},
|
|
1578
1578
|
unmounted() {
|
|
1579
|
-
|
|
1579
|
+
ee.off("dev-action");
|
|
1580
1580
|
},
|
|
1581
1581
|
methods: {
|
|
1582
1582
|
onDevAction(e, t) {
|
|
@@ -1587,23 +1587,23 @@ const ll = {
|
|
|
1587
1587
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
1588
1588
|
const n = this.ctrlMap[e];
|
|
1589
1589
|
this.activeCtrl = n, this.builderSchema[t].push(S(n.default)), this.ctrlSchema = S({
|
|
1590
|
-
options: S(
|
|
1590
|
+
options: S(Pe),
|
|
1591
1591
|
formItems: S(n.builder)
|
|
1592
1592
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
1593
1593
|
},
|
|
1594
1594
|
removeOne() {
|
|
1595
|
-
|
|
1595
|
+
vt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
1596
1596
|
},
|
|
1597
1597
|
clicklabel() {
|
|
1598
1598
|
const e = this.activeIndex;
|
|
1599
1599
|
if (e.match(this.activeIndexReg)) {
|
|
1600
|
-
const n = S(
|
|
1600
|
+
const n = S(pe(this.builderSchema, e)), o = n.type, l = this.ctrlMap[o];
|
|
1601
1601
|
if (!l) {
|
|
1602
1602
|
this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
|
|
1603
1603
|
return;
|
|
1604
1604
|
}
|
|
1605
1605
|
this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = S({
|
|
1606
|
-
options: S(
|
|
1606
|
+
options: S(Pe),
|
|
1607
1607
|
formItems: S(l.builder)
|
|
1608
1608
|
}), this.ctrlKey++;
|
|
1609
1609
|
}
|
|
@@ -1620,16 +1620,16 @@ const ll = {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
};
|
|
1622
1622
|
function il(e, t, n, o, l, s) {
|
|
1623
|
-
const i =
|
|
1624
|
-
return a(),
|
|
1623
|
+
const i = P("v-form"), c = St, p = me, m = P("JsonView"), h = P("VButton"), y = Fe, b = He, x = wt, E = kt, T = P("dev-layout");
|
|
1624
|
+
return a(), f(T, null, {
|
|
1625
1625
|
main: r(() => [
|
|
1626
|
-
l.builderSchema.formItems ? (a(),
|
|
1626
|
+
l.builderSchema.formItems ? (a(), f(i, Q({
|
|
1627
1627
|
ref: "form",
|
|
1628
1628
|
key: l.key,
|
|
1629
1629
|
dev: !0
|
|
1630
1630
|
}, l.builderSchema), null, 16)) : B("", !0),
|
|
1631
1631
|
u(c),
|
|
1632
|
-
u(
|
|
1632
|
+
u(p, {
|
|
1633
1633
|
type: "primary",
|
|
1634
1634
|
onClick: s.saveSchema
|
|
1635
1635
|
}, {
|
|
@@ -1639,7 +1639,7 @@ function il(e, t, n, o, l, s) {
|
|
|
1639
1639
|
_: 1
|
|
1640
1640
|
}, 8, ["onClick"]),
|
|
1641
1641
|
t[3] || (t[3] = C(" ", -1)),
|
|
1642
|
-
u(
|
|
1642
|
+
u(h, {
|
|
1643
1643
|
text: "PageSchema",
|
|
1644
1644
|
type: "modal"
|
|
1645
1645
|
}, {
|
|
@@ -1650,19 +1650,19 @@ function il(e, t, n, o, l, s) {
|
|
|
1650
1650
|
})
|
|
1651
1651
|
]),
|
|
1652
1652
|
"right-aside": r(() => [
|
|
1653
|
-
l.activeIndex ? (a(),
|
|
1653
|
+
l.activeIndex ? (a(), f(E, { key: 0 }, {
|
|
1654
1654
|
default: r(() => [
|
|
1655
1655
|
u(x, { label: "控件类型" }, {
|
|
1656
1656
|
default: r(() => [
|
|
1657
1657
|
u(b, {
|
|
1658
1658
|
modelValue: l.currentCtrlType,
|
|
1659
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1659
|
+
"onUpdate:modelValue": t[0] || (t[0] = (I) => l.currentCtrlType = I)
|
|
1660
1660
|
}, {
|
|
1661
1661
|
default: r(() => [
|
|
1662
|
-
(a(!0),
|
|
1663
|
-
key:
|
|
1664
|
-
label:
|
|
1665
|
-
value:
|
|
1662
|
+
(a(!0), v($, null, V(l.types, (I, R) => (a(), f(y, {
|
|
1663
|
+
key: R,
|
|
1664
|
+
label: I.label,
|
|
1665
|
+
value: I.value
|
|
1666
1666
|
}, null, 8, ["label", "value"]))), 128))
|
|
1667
1667
|
]),
|
|
1668
1668
|
_: 1
|
|
@@ -1673,10 +1673,10 @@ function il(e, t, n, o, l, s) {
|
|
|
1673
1673
|
]),
|
|
1674
1674
|
_: 1
|
|
1675
1675
|
})) : B("", !0),
|
|
1676
|
-
(a(),
|
|
1676
|
+
(a(), f(i, Q({
|
|
1677
1677
|
key: l.ctrlKey,
|
|
1678
1678
|
modelValue: l.ctrlOptions,
|
|
1679
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1679
|
+
"onUpdate:modelValue": t[1] || (t[1] = (I) => l.ctrlOptions = I)
|
|
1680
1680
|
}, l.ctrlSchema), null, 16, ["modelValue"]))
|
|
1681
1681
|
]),
|
|
1682
1682
|
_: 1
|
|
@@ -1851,7 +1851,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
1851
1851
|
label: "字段key"
|
|
1852
1852
|
}
|
|
1853
1853
|
]
|
|
1854
|
-
},
|
|
1854
|
+
}, it = {
|
|
1855
1855
|
options: {
|
|
1856
1856
|
labelPosition: "top",
|
|
1857
1857
|
submitButton: !1,
|
|
@@ -1880,7 +1880,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
1880
1880
|
labelPosition: "top",
|
|
1881
1881
|
submitButton: !1,
|
|
1882
1882
|
cancelButton: !1
|
|
1883
|
-
},
|
|
1883
|
+
}, pl = {
|
|
1884
1884
|
type: "span",
|
|
1885
1885
|
name: "文本",
|
|
1886
1886
|
default: {
|
|
@@ -1910,7 +1910,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
1910
1910
|
label: "排序"
|
|
1911
1911
|
}
|
|
1912
1912
|
]
|
|
1913
|
-
},
|
|
1913
|
+
}, dl = {
|
|
1914
1914
|
type: "enum",
|
|
1915
1915
|
name: "标签",
|
|
1916
1916
|
default: {
|
|
@@ -2143,8 +2143,8 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2143
2143
|
}
|
|
2144
2144
|
]
|
|
2145
2145
|
}, gl = {
|
|
2146
|
-
span:
|
|
2147
|
-
enum:
|
|
2146
|
+
span: pl,
|
|
2147
|
+
enum: dl,
|
|
2148
2148
|
html: ml,
|
|
2149
2149
|
icon: fl,
|
|
2150
2150
|
image: hl,
|
|
@@ -2382,7 +2382,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2382
2382
|
form: Sl,
|
|
2383
2383
|
table: xl
|
|
2384
2384
|
}, Il = {
|
|
2385
|
-
components: { JsonView:
|
|
2385
|
+
components: { JsonView: It, DevLayout: Dt, VTable: ge, VForm: oe, VButton: ze },
|
|
2386
2386
|
props: {
|
|
2387
2387
|
schema: {
|
|
2388
2388
|
type: Object,
|
|
@@ -2393,11 +2393,11 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2393
2393
|
data() {
|
|
2394
2394
|
const e = on(this.$props.schema);
|
|
2395
2395
|
return delete e.listApi, e.list = [{}], {
|
|
2396
|
-
baseSchema:
|
|
2396
|
+
baseSchema: it,
|
|
2397
2397
|
activeTab: "base",
|
|
2398
2398
|
builderSchema: Object.assign(
|
|
2399
2399
|
{},
|
|
2400
|
-
|
|
2400
|
+
it,
|
|
2401
2401
|
e
|
|
2402
2402
|
),
|
|
2403
2403
|
baseOptions: {},
|
|
@@ -2443,7 +2443,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2443
2443
|
deep: !0,
|
|
2444
2444
|
immediate: !0,
|
|
2445
2445
|
handler(e) {
|
|
2446
|
-
this.builderSchema =
|
|
2446
|
+
this.builderSchema = G(this.builderSchema, e), this.key++, this.updateBuilderSchema();
|
|
2447
2447
|
}
|
|
2448
2448
|
},
|
|
2449
2449
|
ctrlOptions: {
|
|
@@ -2477,7 +2477,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2477
2477
|
options: S(Ae),
|
|
2478
2478
|
formItems: S(t.builder)
|
|
2479
2479
|
});
|
|
2480
|
-
const n =
|
|
2480
|
+
const n = pe(this.builderSchema, this.activeIndex);
|
|
2481
2481
|
n.type = e;
|
|
2482
2482
|
const o = S(n);
|
|
2483
2483
|
this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
@@ -2485,12 +2485,12 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2485
2485
|
}
|
|
2486
2486
|
},
|
|
2487
2487
|
beforeCreate() {
|
|
2488
|
-
|
|
2488
|
+
ee.on("dev-action", ({ event: e, data: t }) => {
|
|
2489
2489
|
this.onDevAction(t.type, t.devId);
|
|
2490
2490
|
});
|
|
2491
2491
|
},
|
|
2492
2492
|
unmounted() {
|
|
2493
|
-
|
|
2493
|
+
ee.off("dev-action");
|
|
2494
2494
|
},
|
|
2495
2495
|
methods: {
|
|
2496
2496
|
updateBuilderSchema() {
|
|
@@ -2527,12 +2527,12 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2527
2527
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2528
2528
|
},
|
|
2529
2529
|
removeOne() {
|
|
2530
|
-
|
|
2530
|
+
vt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2531
2531
|
},
|
|
2532
2532
|
clicklabel() {
|
|
2533
2533
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
2534
2534
|
if (t) {
|
|
2535
|
-
const n = S(
|
|
2535
|
+
const n = S(pe(this.builderSchema, e));
|
|
2536
2536
|
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
|
|
2537
2537
|
let o = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
2538
2538
|
t[1] === "headers" && o === void 0 && (o = "span");
|
|
@@ -2566,12 +2566,12 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2566
2566
|
}
|
|
2567
2567
|
};
|
|
2568
2568
|
function Cl(e, t, n, o, l, s) {
|
|
2569
|
-
const i =
|
|
2570
|
-
return a(),
|
|
2569
|
+
const i = Ge, c = me, p = Ee, m = P("v-table"), h = St, y = me, b = P("JsonView"), x = P("VButton"), E = Fe, T = He, I = wt, R = kt, _ = P("v-form"), K = P("dev-layout");
|
|
2570
|
+
return a(), f(K, null, {
|
|
2571
2571
|
"left-aside": r(() => [
|
|
2572
|
-
u(
|
|
2572
|
+
u(p, { style: { width: "200px" } }, {
|
|
2573
2573
|
default: r(() => [
|
|
2574
|
-
u(
|
|
2574
|
+
u(p, null, {
|
|
2575
2575
|
default: r(() => [
|
|
2576
2576
|
u(i, {
|
|
2577
2577
|
class: "title",
|
|
@@ -2586,7 +2586,7 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2586
2586
|
default: r(() => [
|
|
2587
2587
|
u(c, {
|
|
2588
2588
|
class: "ctrl-btn",
|
|
2589
|
-
onClick: t[0] || (t[0] = (
|
|
2589
|
+
onClick: t[0] || (t[0] = (g) => s.pushFilter("input"))
|
|
2590
2590
|
}, {
|
|
2591
2591
|
default: r(() => [...t[6] || (t[6] = [
|
|
2592
2592
|
C("文本框", -1)
|
|
@@ -2600,7 +2600,7 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2600
2600
|
default: r(() => [
|
|
2601
2601
|
u(c, {
|
|
2602
2602
|
class: "ctrl-btn",
|
|
2603
|
-
onClick: t[1] || (t[1] = (
|
|
2603
|
+
onClick: t[1] || (t[1] = (g) => s.pushFilter("select"))
|
|
2604
2604
|
}, {
|
|
2605
2605
|
default: r(() => [...t[7] || (t[7] = [
|
|
2606
2606
|
C("下拉框", -1)
|
|
@@ -2614,7 +2614,7 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2614
2614
|
default: r(() => [
|
|
2615
2615
|
u(c, {
|
|
2616
2616
|
class: "ctrl-btn",
|
|
2617
|
-
onClick: t[2] || (t[2] = (
|
|
2617
|
+
onClick: t[2] || (t[2] = (g) => s.pushFilter("date"))
|
|
2618
2618
|
}, {
|
|
2619
2619
|
default: r(() => [...t[8] || (t[8] = [
|
|
2620
2620
|
C("日期", -1)
|
|
@@ -2627,7 +2627,7 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2627
2627
|
]),
|
|
2628
2628
|
_: 1
|
|
2629
2629
|
}),
|
|
2630
|
-
u(
|
|
2630
|
+
u(p, null, {
|
|
2631
2631
|
default: r(() => [
|
|
2632
2632
|
u(i, { class: "title" }, {
|
|
2633
2633
|
default: r(() => [...t[9] || (t[9] = [
|
|
@@ -2635,17 +2635,17 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2635
2635
|
])]),
|
|
2636
2636
|
_: 1
|
|
2637
2637
|
}),
|
|
2638
|
-
(a(!0),
|
|
2639
|
-
key: `column-${
|
|
2638
|
+
(a(!0), v($, null, V(Object.keys(l.ctrlMap.headers), (g, U) => (a(), f(i, {
|
|
2639
|
+
key: `column-${U}`,
|
|
2640
2640
|
class: "ctrl"
|
|
2641
2641
|
}, {
|
|
2642
2642
|
default: r(() => [
|
|
2643
2643
|
u(c, {
|
|
2644
2644
|
class: "ctrl-btn",
|
|
2645
|
-
onClick: (
|
|
2645
|
+
onClick: (Z) => s.pushHeaders(l.ctrlMap.headers[g].type)
|
|
2646
2646
|
}, {
|
|
2647
2647
|
default: r(() => [
|
|
2648
|
-
C(N(l.ctrlMap.headers[
|
|
2648
|
+
C(N(l.ctrlMap.headers[g].name), 1)
|
|
2649
2649
|
]),
|
|
2650
2650
|
_: 2
|
|
2651
2651
|
}, 1032, ["onClick"])
|
|
@@ -2655,7 +2655,7 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2655
2655
|
]),
|
|
2656
2656
|
_: 1
|
|
2657
2657
|
}),
|
|
2658
|
-
u(
|
|
2658
|
+
u(p, null, {
|
|
2659
2659
|
default: r(() => [
|
|
2660
2660
|
u(i, { class: "title" }, {
|
|
2661
2661
|
default: r(() => [...t[10] || (t[10] = [
|
|
@@ -2663,17 +2663,17 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2663
2663
|
])]),
|
|
2664
2664
|
_: 1
|
|
2665
2665
|
}),
|
|
2666
|
-
(a(!0),
|
|
2667
|
-
key: `column-${
|
|
2666
|
+
(a(!0), v($, null, V(Object.keys(l.ctrlMap.buttons), (g, U) => (a(), f(i, {
|
|
2667
|
+
key: `column-${U}`,
|
|
2668
2668
|
class: "ctrl"
|
|
2669
2669
|
}, {
|
|
2670
2670
|
default: r(() => [
|
|
2671
2671
|
u(c, {
|
|
2672
2672
|
class: "ctrl-btn",
|
|
2673
|
-
onClick: (
|
|
2673
|
+
onClick: (Z) => s.pushRowButton(l.ctrlMap.buttons[g].type)
|
|
2674
2674
|
}, {
|
|
2675
2675
|
default: r(() => [
|
|
2676
|
-
C(N(l.ctrlMap.buttons[
|
|
2676
|
+
C(N(l.ctrlMap.buttons[g].name), 1)
|
|
2677
2677
|
]),
|
|
2678
2678
|
_: 2
|
|
2679
2679
|
}, 1032, ["onClick"])
|
|
@@ -2683,7 +2683,7 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2683
2683
|
]),
|
|
2684
2684
|
_: 1
|
|
2685
2685
|
}),
|
|
2686
|
-
u(
|
|
2686
|
+
u(p, null, {
|
|
2687
2687
|
default: r(() => [
|
|
2688
2688
|
u(i, { class: "title" }, {
|
|
2689
2689
|
default: r(() => [...t[11] || (t[11] = [
|
|
@@ -2691,17 +2691,17 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2691
2691
|
])]),
|
|
2692
2692
|
_: 1
|
|
2693
2693
|
}),
|
|
2694
|
-
(a(!0),
|
|
2695
|
-
key: `column-${
|
|
2694
|
+
(a(!0), v($, null, V(Object.keys(l.ctrlMap.buttons), (g, U) => (a(), f(i, {
|
|
2695
|
+
key: `column-${U}`,
|
|
2696
2696
|
class: "ctrl"
|
|
2697
2697
|
}, {
|
|
2698
2698
|
default: r(() => [
|
|
2699
2699
|
u(c, {
|
|
2700
2700
|
class: "ctrl-btn",
|
|
2701
|
-
onClick: (
|
|
2701
|
+
onClick: (Z) => s.pushNormalButton(l.ctrlMap.buttons[g].type)
|
|
2702
2702
|
}, {
|
|
2703
2703
|
default: r(() => [
|
|
2704
|
-
C(N(l.ctrlMap.buttons[
|
|
2704
|
+
C(N(l.ctrlMap.buttons[g].name), 1)
|
|
2705
2705
|
]),
|
|
2706
2706
|
_: 2
|
|
2707
2707
|
}, 1032, ["onClick"])
|
|
@@ -2722,7 +2722,7 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2722
2722
|
]),
|
|
2723
2723
|
_: 1
|
|
2724
2724
|
}),
|
|
2725
|
-
u(
|
|
2725
|
+
u(p, null, {
|
|
2726
2726
|
default: r(() => [
|
|
2727
2727
|
u(i, { class: "title" }, {
|
|
2728
2728
|
default: r(() => [...t[13] || (t[13] = [
|
|
@@ -2730,17 +2730,17 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2730
2730
|
])]),
|
|
2731
2731
|
_: 1
|
|
2732
2732
|
}),
|
|
2733
|
-
(a(!0),
|
|
2734
|
-
key: `column-${
|
|
2733
|
+
(a(!0), v($, null, V(Object.keys(l.ctrlMap.buttons), (g, U) => (a(), f(i, {
|
|
2734
|
+
key: `column-${U}`,
|
|
2735
2735
|
class: "ctrl"
|
|
2736
2736
|
}, {
|
|
2737
2737
|
default: r(() => [
|
|
2738
2738
|
u(c, {
|
|
2739
2739
|
class: "ctrl-btn",
|
|
2740
|
-
onClick: (
|
|
2740
|
+
onClick: (Z) => s.pushBatchButton(l.ctrlMap.buttons[g].type)
|
|
2741
2741
|
}, {
|
|
2742
2742
|
default: r(() => [
|
|
2743
|
-
C(N(l.ctrlMap.buttons[
|
|
2743
|
+
C(N(l.ctrlMap.buttons[g].name), 1)
|
|
2744
2744
|
]),
|
|
2745
2745
|
_: 2
|
|
2746
2746
|
}, 1032, ["onClick"])
|
|
@@ -2766,13 +2766,13 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2766
2766
|
})
|
|
2767
2767
|
]),
|
|
2768
2768
|
main: r(() => [
|
|
2769
|
-
(a(),
|
|
2769
|
+
(a(), f(m, Q({
|
|
2770
2770
|
ref: "table",
|
|
2771
2771
|
key: l.key,
|
|
2772
2772
|
dev: !0
|
|
2773
2773
|
}, l.builderSchema), null, 16)),
|
|
2774
|
-
u(
|
|
2775
|
-
u(
|
|
2774
|
+
u(h),
|
|
2775
|
+
u(y, {
|
|
2776
2776
|
type: "primary",
|
|
2777
2777
|
onClick: s.saveSchema
|
|
2778
2778
|
}, {
|
|
@@ -2793,19 +2793,19 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2793
2793
|
})
|
|
2794
2794
|
]),
|
|
2795
2795
|
"right-aside": r(() => [
|
|
2796
|
-
l.activeIndex ? (a(),
|
|
2796
|
+
l.activeIndex ? (a(), f(R, { key: 0 }, {
|
|
2797
2797
|
default: r(() => [
|
|
2798
|
-
u(
|
|
2798
|
+
u(I, { label: "控件类型" }, {
|
|
2799
2799
|
default: r(() => [
|
|
2800
2800
|
u(T, {
|
|
2801
2801
|
modelValue: l.currentCtrlType,
|
|
2802
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2802
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => l.currentCtrlType = g)
|
|
2803
2803
|
}, {
|
|
2804
2804
|
default: r(() => [
|
|
2805
|
-
(a(!0),
|
|
2806
|
-
key:
|
|
2807
|
-
label:
|
|
2808
|
-
value:
|
|
2805
|
+
(a(!0), v($, null, V(s.types, (g, U) => (a(), f(E, {
|
|
2806
|
+
key: U,
|
|
2807
|
+
label: g.label,
|
|
2808
|
+
value: g.value
|
|
2809
2809
|
}, null, 8, ["label", "value"]))), 128))
|
|
2810
2810
|
]),
|
|
2811
2811
|
_: 1
|
|
@@ -2816,46 +2816,46 @@ function Cl(e, t, n, o, l, s) {
|
|
|
2816
2816
|
]),
|
|
2817
2817
|
_: 1
|
|
2818
2818
|
})) : B("", !0),
|
|
2819
|
-
(a(),
|
|
2819
|
+
(a(), f(_, Q({
|
|
2820
2820
|
key: l.ctrlKey,
|
|
2821
2821
|
modelValue: l.ctrlOptions,
|
|
2822
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
2822
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => l.ctrlOptions = g)
|
|
2823
2823
|
}, l.ctrlSchema), null, 16, ["modelValue"]))
|
|
2824
2824
|
]),
|
|
2825
2825
|
_: 1
|
|
2826
2826
|
});
|
|
2827
2827
|
}
|
|
2828
|
-
const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba"]]),
|
|
2828
|
+
const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba"]]), Rl = "rtl", Bl = {
|
|
2829
2829
|
__name: "PageEditor",
|
|
2830
2830
|
setup(e) {
|
|
2831
|
-
const t =
|
|
2832
|
-
|
|
2831
|
+
const t = O(!1);
|
|
2832
|
+
O(1);
|
|
2833
2833
|
const n = se(), o = X(), l = w(() => o.pages[n.path]);
|
|
2834
2834
|
return (s, i) => {
|
|
2835
|
-
const c =
|
|
2836
|
-
return a(),
|
|
2835
|
+
const c = P("VIcon"), p = xt;
|
|
2836
|
+
return a(), v($, null, [
|
|
2837
2837
|
u(c, {
|
|
2838
2838
|
name: "ra-set",
|
|
2839
|
-
onClick: i[0] || (i[0] = (m) => t.value = !
|
|
2839
|
+
onClick: i[0] || (i[0] = (m) => t.value = !d(t))
|
|
2840
2840
|
}),
|
|
2841
|
-
u(
|
|
2842
|
-
modelValue:
|
|
2841
|
+
u(p, {
|
|
2842
|
+
modelValue: d(t),
|
|
2843
2843
|
"onUpdate:modelValue": i[1] || (i[1] = (m) => dt(t) ? t.value = m : null),
|
|
2844
2844
|
title: "页面设计",
|
|
2845
2845
|
class: "my-drawer",
|
|
2846
|
-
direction:
|
|
2846
|
+
direction: Rl,
|
|
2847
2847
|
size: "90%",
|
|
2848
2848
|
"destroy-on-close": "",
|
|
2849
2849
|
"append-to-body": ""
|
|
2850
2850
|
}, {
|
|
2851
2851
|
default: r(() => [
|
|
2852
|
-
|
|
2852
|
+
d(l).formItems !== void 0 ? (a(), f(al, {
|
|
2853
2853
|
key: 0,
|
|
2854
|
-
schema:
|
|
2854
|
+
schema: d(l)
|
|
2855
2855
|
}, null, 8, ["schema"])) : B("", !0),
|
|
2856
|
-
|
|
2856
|
+
d(l).headers !== void 0 ? (a(), f(Tl, {
|
|
2857
2857
|
key: 1,
|
|
2858
|
-
schema:
|
|
2858
|
+
schema: d(l)
|
|
2859
2859
|
}, null, 8, ["schema"])) : B("", !0)
|
|
2860
2860
|
]),
|
|
2861
2861
|
_: 1
|
|
@@ -2866,19 +2866,19 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
2866
2866
|
}, Ol = { class: "right-content" }, $l = {
|
|
2867
2867
|
key: 0,
|
|
2868
2868
|
class: "right-item"
|
|
2869
|
-
},
|
|
2869
|
+
}, Pl = {
|
|
2870
2870
|
class: "right-item-button",
|
|
2871
2871
|
style: { padding: "0" }
|
|
2872
|
-
},
|
|
2872
|
+
}, Al = { class: "user-info" }, Ll = ["src"], Ml = { class: "user-name" }, Dl = /* @__PURE__ */ z({
|
|
2873
2873
|
__name: "Navbar",
|
|
2874
2874
|
setup(e) {
|
|
2875
|
-
const t = X(), n =
|
|
2876
|
-
|
|
2877
|
-
const l =
|
|
2878
|
-
|
|
2879
|
-
const s = w(() => n.defaultAvatar), i = w(() => t.sidebar), c = w(() => o.avatar),
|
|
2880
|
-
const D =
|
|
2881
|
-
return
|
|
2875
|
+
const t = X(), n = q(), o = j();
|
|
2876
|
+
O(!1);
|
|
2877
|
+
const l = O(!1);
|
|
2878
|
+
O(""), O(0);
|
|
2879
|
+
const s = w(() => n.defaultAvatar), i = w(() => t.sidebar), c = w(() => o.avatar), p = w(() => o.name), m = w(() => o.nickname), h = w(() => n.nav), y = w(() => n), b = w(() => o), x = w(() => n.showPageJsonSchema || !1), { isDark: E, toggleTheme: T } = Pt(), I = w(() => {
|
|
2880
|
+
const D = y.value.envColor?.[b.value.env];
|
|
2881
|
+
return E.value ? {
|
|
2882
2882
|
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
2883
|
borderBottom: "1px solid rgba(148, 163, 184, 0.35)",
|
|
2884
2884
|
boxShadow: "0 1px 8px rgba(15, 23, 42, 0.7)"
|
|
@@ -2893,99 +2893,99 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
2893
2893
|
};
|
|
2894
2894
|
});
|
|
2895
2895
|
Ue(() => {
|
|
2896
|
-
|
|
2897
|
-
const D =
|
|
2898
|
-
D.length > 0 && !
|
|
2896
|
+
ht("el-submenu is-active");
|
|
2897
|
+
const D = g("navBarNotice") || "";
|
|
2898
|
+
D.length > 0 && !g("closeNavNotice") && Z(D) && window?.App?.config?.globalProperties?.$notify({
|
|
2899
2899
|
title: "提示",
|
|
2900
2900
|
message: D,
|
|
2901
2901
|
dangerouslyUseHTMLString: !0,
|
|
2902
2902
|
duration: 0,
|
|
2903
|
-
onClose:
|
|
2904
|
-
}),
|
|
2905
|
-
elRef:
|
|
2903
|
+
onClose: U
|
|
2904
|
+
}), y.value.envColor?.[b.value.env] && _n({
|
|
2905
|
+
elRef: R.value.$el,
|
|
2906
2906
|
waterMark: b.value.env,
|
|
2907
2907
|
color: "skyblue",
|
|
2908
2908
|
size: "20"
|
|
2909
2909
|
});
|
|
2910
2910
|
});
|
|
2911
|
-
const
|
|
2912
|
-
function
|
|
2911
|
+
const R = O();
|
|
2912
|
+
function _() {
|
|
2913
2913
|
t.toggleSideBar();
|
|
2914
2914
|
}
|
|
2915
|
-
async function
|
|
2915
|
+
async function K() {
|
|
2916
2916
|
await o.logout();
|
|
2917
2917
|
const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
|
|
2918
2918
|
location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2920
|
+
function g(D) {
|
|
2921
2921
|
return n[D];
|
|
2922
2922
|
}
|
|
2923
|
-
async function
|
|
2924
|
-
n.updateSettings({ closeNavNotice: !0 }),
|
|
2923
|
+
async function U() {
|
|
2924
|
+
n.updateSettings({ closeNavNotice: !0 }), ie(g("navBarNotice"));
|
|
2925
2925
|
}
|
|
2926
|
-
function
|
|
2926
|
+
function Z(D) {
|
|
2927
2927
|
const M = "dismiss:navbar_notice";
|
|
2928
|
-
return
|
|
2928
|
+
return he.exist(M) ? he.get(M) !== D : !0;
|
|
2929
2929
|
}
|
|
2930
|
-
function
|
|
2931
|
-
|
|
2930
|
+
function ie(D) {
|
|
2931
|
+
he.set("dismiss:navbar_notice", D);
|
|
2932
2932
|
}
|
|
2933
2933
|
return (D, M) => {
|
|
2934
|
-
const
|
|
2935
|
-
return a(),
|
|
2934
|
+
const Xe = Ge, Jt = Un, Wt = qn, Ze = Fn, Qt = Hn, Xt = Vn, Zt = xt, Yt = Ee;
|
|
2935
|
+
return a(), f(Yt, {
|
|
2936
2936
|
ref_key: "header",
|
|
2937
|
-
ref:
|
|
2937
|
+
ref: R,
|
|
2938
2938
|
class: "navbar",
|
|
2939
|
-
style: ln(
|
|
2939
|
+
style: ln(I.value)
|
|
2940
2940
|
}, {
|
|
2941
2941
|
default: r(() => [
|
|
2942
|
-
u(
|
|
2942
|
+
u(Xe, { span: 16 }, {
|
|
2943
2943
|
default: r(() => [
|
|
2944
|
-
u(
|
|
2944
|
+
u(Uo, {
|
|
2945
2945
|
"is-active": i.value.opened,
|
|
2946
2946
|
class: "hamburger-container",
|
|
2947
|
-
onToggleClick:
|
|
2947
|
+
onToggleClick: _
|
|
2948
2948
|
}, null, 8, ["is-active"]),
|
|
2949
2949
|
u(jo, { class: "breadcrumb-container" })
|
|
2950
2950
|
]),
|
|
2951
2951
|
_: 1
|
|
2952
2952
|
}),
|
|
2953
|
-
u(
|
|
2953
|
+
u(Xe, { span: 8 }, {
|
|
2954
2954
|
default: r(() => [
|
|
2955
|
-
|
|
2956
|
-
x.value ? (a(),
|
|
2957
|
-
u(
|
|
2955
|
+
k("div", Ol, [
|
|
2956
|
+
x.value ? (a(), v("div", $l, [
|
|
2957
|
+
u(Bl)
|
|
2958
2958
|
])) : B("", !0),
|
|
2959
|
-
|
|
2960
|
-
u(
|
|
2959
|
+
k("div", Pl, [
|
|
2960
|
+
u(d(ze), { buttons: h.value }, null, 8, ["buttons"])
|
|
2961
2961
|
]),
|
|
2962
2962
|
u(Wt, {
|
|
2963
2963
|
placement: "bottom",
|
|
2964
|
-
content:
|
|
2964
|
+
content: d(E) ? "切换为明亮模式" : "切换为暗黑模式"
|
|
2965
2965
|
}, {
|
|
2966
2966
|
default: r(() => [
|
|
2967
|
-
|
|
2967
|
+
k("div", {
|
|
2968
2968
|
class: "right-item theme-toggle",
|
|
2969
2969
|
role: "button",
|
|
2970
2970
|
tabindex: "0",
|
|
2971
2971
|
onClick: M[0] || (M[0] = //@ts-ignore
|
|
2972
|
-
(...te) =>
|
|
2972
|
+
(...te) => d(T) && d(T)(...te)),
|
|
2973
2973
|
onKeydown: [
|
|
2974
|
-
M[1] || (M[1] =
|
|
2974
|
+
M[1] || (M[1] = Ye(et(
|
|
2975
2975
|
//@ts-ignore
|
|
2976
|
-
(...te) =>
|
|
2976
|
+
(...te) => d(T) && d(T)(...te),
|
|
2977
2977
|
["prevent"]
|
|
2978
2978
|
), ["enter"])),
|
|
2979
|
-
M[2] || (M[2] =
|
|
2979
|
+
M[2] || (M[2] = Ye(et(
|
|
2980
2980
|
//@ts-ignore
|
|
2981
|
-
(...te) =>
|
|
2981
|
+
(...te) => d(T) && d(T)(...te),
|
|
2982
2982
|
["prevent"]
|
|
2983
2983
|
), ["space"]))
|
|
2984
2984
|
]
|
|
2985
2985
|
}, [
|
|
2986
2986
|
u(Jt, null, {
|
|
2987
2987
|
default: r(() => [
|
|
2988
|
-
(a(),
|
|
2988
|
+
(a(), f(mt(d(E) ? d(lo) : d(so))))
|
|
2989
2989
|
]),
|
|
2990
2990
|
_: 1
|
|
2991
2991
|
})
|
|
@@ -3000,7 +3000,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
3000
3000
|
dropdown: r(() => [
|
|
3001
3001
|
u(Qt, { class: "user-dropdown" }, {
|
|
3002
3002
|
default: r(() => [
|
|
3003
|
-
u(
|
|
3003
|
+
u(Ze, {
|
|
3004
3004
|
icon: "oms-icon-index",
|
|
3005
3005
|
onClick: M[3] || (M[3] = (te) => D.$router.push("/"))
|
|
3006
3006
|
}, {
|
|
@@ -3009,10 +3009,10 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
3009
3009
|
])]),
|
|
3010
3010
|
_: 1
|
|
3011
3011
|
}),
|
|
3012
|
-
u(
|
|
3012
|
+
u(Ze, {
|
|
3013
3013
|
divided: "",
|
|
3014
3014
|
icon: "el-icon-switch-button",
|
|
3015
|
-
onClick:
|
|
3015
|
+
onClick: K
|
|
3016
3016
|
}, {
|
|
3017
3017
|
default: r(() => [...M[6] || (M[6] = [
|
|
3018
3018
|
C("退出登录", -1)
|
|
@@ -3024,14 +3024,14 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
3024
3024
|
})
|
|
3025
3025
|
]),
|
|
3026
3026
|
default: r(() => [
|
|
3027
|
-
|
|
3028
|
-
|
|
3027
|
+
k("div", Al, [
|
|
3028
|
+
k("img", {
|
|
3029
3029
|
src: c.value ? c.value : s.value,
|
|
3030
3030
|
class: "user-avatar",
|
|
3031
3031
|
alt: "头像"
|
|
3032
3032
|
}, null, 8, Ll),
|
|
3033
3033
|
M[4] || (M[4] = C()),
|
|
3034
|
-
|
|
3034
|
+
k("span", Ml, N(m.value || p.value), 1)
|
|
3035
3035
|
])
|
|
3036
3036
|
]),
|
|
3037
3037
|
_: 1
|
|
@@ -3040,7 +3040,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
3040
3040
|
]),
|
|
3041
3041
|
_: 1
|
|
3042
3042
|
}),
|
|
3043
|
-
l.value ? (a(),
|
|
3043
|
+
l.value ? (a(), f(Zt, {
|
|
3044
3044
|
key: 0,
|
|
3045
3045
|
"with-header": !1,
|
|
3046
3046
|
size: "50%"
|
|
@@ -3050,49 +3050,49 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
3050
3050
|
}, 8, ["style"]);
|
|
3051
3051
|
};
|
|
3052
3052
|
}
|
|
3053
|
-
}), jl = /* @__PURE__ */ L(Dl, [["__scopeId", "data-v-c4905268"]]), Nl = ["src"],
|
|
3053
|
+
}), jl = /* @__PURE__ */ L(Dl, [["__scopeId", "data-v-c4905268"]]), Nl = ["src"], ql = {
|
|
3054
3054
|
key: 1,
|
|
3055
3055
|
class: "sidebar-title"
|
|
3056
|
-
},
|
|
3056
|
+
}, Ul = ["src"], Vl = { class: "sidebar-title" }, Hl = /* @__PURE__ */ z({
|
|
3057
3057
|
__name: "Logo",
|
|
3058
3058
|
props: {
|
|
3059
3059
|
collapse: { type: Boolean }
|
|
3060
3060
|
},
|
|
3061
3061
|
setup(e) {
|
|
3062
|
-
const t =
|
|
3062
|
+
const t = q(), n = w(() => t.title), o = w(() => t.logo);
|
|
3063
3063
|
return (l, s) => {
|
|
3064
|
-
const i =
|
|
3065
|
-
return a(),
|
|
3066
|
-
class:
|
|
3064
|
+
const i = P("router-link");
|
|
3065
|
+
return a(), v("div", {
|
|
3066
|
+
class: Y(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3067
3067
|
}, [
|
|
3068
3068
|
u(sn, { name: "sidebarLogoFade" }, {
|
|
3069
3069
|
default: r(() => [
|
|
3070
|
-
l.collapse ? (a(),
|
|
3070
|
+
l.collapse ? (a(), f(i, {
|
|
3071
3071
|
key: "collapse",
|
|
3072
3072
|
class: "sidebar-logo-link",
|
|
3073
3073
|
to: "/"
|
|
3074
3074
|
}, {
|
|
3075
3075
|
default: r(() => [
|
|
3076
|
-
o.value ? (a(),
|
|
3076
|
+
o.value ? (a(), v("img", {
|
|
3077
3077
|
key: 0,
|
|
3078
3078
|
src: o.value,
|
|
3079
3079
|
class: "sidebar-logo"
|
|
3080
|
-
}, null, 8, Nl)) : (a(),
|
|
3081
|
-
s[0] || (s[0] =
|
|
3080
|
+
}, null, 8, Nl)) : (a(), v("h1", ql, N(n.value), 1)),
|
|
3081
|
+
s[0] || (s[0] = k("div", null, "系统", -1))
|
|
3082
3082
|
]),
|
|
3083
3083
|
_: 1
|
|
3084
|
-
})) : (a(),
|
|
3084
|
+
})) : (a(), f(i, {
|
|
3085
3085
|
key: "expand",
|
|
3086
3086
|
class: "sidebar-logo-link",
|
|
3087
3087
|
to: "/"
|
|
3088
3088
|
}, {
|
|
3089
3089
|
default: r(() => [
|
|
3090
|
-
o.value ? (a(),
|
|
3090
|
+
o.value ? (a(), v("img", {
|
|
3091
3091
|
key: 0,
|
|
3092
3092
|
src: o.value,
|
|
3093
3093
|
class: "sidebar-logo"
|
|
3094
|
-
}, null, 8,
|
|
3095
|
-
|
|
3094
|
+
}, null, 8, Ul)) : B("", !0),
|
|
3095
|
+
k("h1", Vl, N(n.value), 1)
|
|
3096
3096
|
]),
|
|
3097
3097
|
_: 1
|
|
3098
3098
|
}))
|
|
@@ -3115,10 +3115,10 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
3115
3115
|
},
|
|
3116
3116
|
methods: {
|
|
3117
3117
|
compType(e) {
|
|
3118
|
-
return
|
|
3118
|
+
return tt(e) || this.newTab ? "a" : "router-link";
|
|
3119
3119
|
},
|
|
3120
3120
|
linkProps(e) {
|
|
3121
|
-
return
|
|
3121
|
+
return tt(e) ? {
|
|
3122
3122
|
is: "a",
|
|
3123
3123
|
href: e,
|
|
3124
3124
|
target: "_blank",
|
|
@@ -3136,9 +3136,9 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
|
|
|
3136
3136
|
}
|
|
3137
3137
|
};
|
|
3138
3138
|
function zl(e, t, n, o, l, s) {
|
|
3139
|
-
return a(),
|
|
3139
|
+
return a(), f(mt(s.compType(n.to)), le(we(s.linkProps(n.to))), {
|
|
3140
3140
|
default: r(() => [
|
|
3141
|
-
|
|
3141
|
+
ce(e.$slots, "default")
|
|
3142
3142
|
]),
|
|
3143
3143
|
_: 3
|
|
3144
3144
|
}, 16);
|
|
@@ -3164,7 +3164,7 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
|
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
|
-
}, Wl = { class: "menu-content" }, Ql = /* @__PURE__ */
|
|
3167
|
+
}, Wl = { class: "menu-content" }, Ql = /* @__PURE__ */ z({
|
|
3168
3168
|
__name: "MenuContent",
|
|
3169
3169
|
props: {
|
|
3170
3170
|
meta: {
|
|
@@ -3177,12 +3177,12 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
|
|
|
3177
3177
|
},
|
|
3178
3178
|
setup(e) {
|
|
3179
3179
|
return (t, n) => {
|
|
3180
|
-
const o =
|
|
3181
|
-
return a(),
|
|
3180
|
+
const o = P("VIcon");
|
|
3181
|
+
return a(), v($, null, [
|
|
3182
3182
|
u(o, {
|
|
3183
3183
|
name: e.meta.icon || "ra-all"
|
|
3184
3184
|
}, null, 8, ["name"]),
|
|
3185
|
-
|
|
3185
|
+
k("span", Wl, N(e.meta.title), 1)
|
|
3186
3186
|
], 64);
|
|
3187
3187
|
};
|
|
3188
3188
|
}
|
|
@@ -3210,14 +3210,18 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
|
|
|
3210
3210
|
},
|
|
3211
3211
|
methods: {
|
|
3212
3212
|
itemClick() {
|
|
3213
|
-
|
|
3213
|
+
he.remove("table_filter:" + this.$props.to);
|
|
3214
3214
|
},
|
|
3215
3215
|
getTo(e) {
|
|
3216
3216
|
try {
|
|
3217
|
-
return this
|
|
3217
|
+
return this.resolveRoute(e);
|
|
3218
3218
|
} catch {
|
|
3219
3219
|
return console.error("路由解析错误"), "/";
|
|
3220
3220
|
}
|
|
3221
|
+
},
|
|
3222
|
+
resolveRoute(e) {
|
|
3223
|
+
const t = e && e.redirect ? e.redirect : e;
|
|
3224
|
+
return t ? typeof t == "string" ? this.$router.resolve(t).fullPath : t.name ? this.$router.resolve({ name: t.name, params: t.params, query: t.query }).fullPath : t.path ? this.$router.resolve({ path: t.path, query: t.query }).fullPath : "/" : "/";
|
|
3221
3225
|
}
|
|
3222
3226
|
}
|
|
3223
3227
|
}, Zl = {
|
|
@@ -3225,10 +3229,10 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
|
|
|
3225
3229
|
class: "menu-wrapper"
|
|
3226
3230
|
};
|
|
3227
3231
|
function Yl(e, t, n, o, l, s) {
|
|
3228
|
-
const i =
|
|
3229
|
-
return n.item.hidden !== !1 ? (a(),
|
|
3230
|
-
n.item.meta && n.item.meta.menuType === 2 ? (a(),
|
|
3231
|
-
n.item.meta ? (a(),
|
|
3232
|
+
const i = P("menu-content"), c = Gn, p = P("app-link"), m = P("sidebar-item", !0), h = zn;
|
|
3233
|
+
return n.item.hidden !== !1 ? (a(), v("div", Zl, [
|
|
3234
|
+
n.item.meta && n.item.meta.menuType === 2 ? (a(), v($, { key: 0 }, [
|
|
3235
|
+
n.item.meta ? (a(), f(p, {
|
|
3232
3236
|
key: 0,
|
|
3233
3237
|
to: n.to,
|
|
3234
3238
|
"new-tab": n.item.meta.newTab
|
|
@@ -3236,7 +3240,7 @@ function Yl(e, t, n, o, l, s) {
|
|
|
3236
3240
|
default: r(() => [
|
|
3237
3241
|
u(c, {
|
|
3238
3242
|
index: n.to,
|
|
3239
|
-
class:
|
|
3243
|
+
class: Y({ "submenu-title-noDropdown": !n.isNest }),
|
|
3240
3244
|
onClick: s.itemClick
|
|
3241
3245
|
}, {
|
|
3242
3246
|
default: r(() => [
|
|
@@ -3249,14 +3253,14 @@ function Yl(e, t, n, o, l, s) {
|
|
|
3249
3253
|
]),
|
|
3250
3254
|
_: 1
|
|
3251
3255
|
}, 8, ["to", "new-tab"])) : B("", !0)
|
|
3252
|
-
], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (a(), h
|
|
3256
|
+
], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (a(), f(h, {
|
|
3253
3257
|
key: 1,
|
|
3254
3258
|
ref: "subMenu",
|
|
3255
3259
|
index: n.to,
|
|
3256
|
-
class:
|
|
3260
|
+
class: Y({ "submenu-title-noDropdown": !n.isNest })
|
|
3257
3261
|
}, {
|
|
3258
3262
|
title: r(() => [
|
|
3259
|
-
n.item.redirect && n.item.redirect !== "#" ? (a(),
|
|
3263
|
+
n.item.redirect && n.item.redirect !== "#" ? (a(), f(p, {
|
|
3260
3264
|
key: 0,
|
|
3261
3265
|
to: n.to
|
|
3262
3266
|
}, {
|
|
@@ -3266,17 +3270,17 @@ function Yl(e, t, n, o, l, s) {
|
|
|
3266
3270
|
}, null, 8, ["meta"])
|
|
3267
3271
|
]),
|
|
3268
3272
|
_: 1
|
|
3269
|
-
}, 8, ["to"])) : (a(),
|
|
3273
|
+
}, 8, ["to"])) : (a(), f(i, {
|
|
3270
3274
|
key: 1,
|
|
3271
3275
|
meta: n.item.meta
|
|
3272
3276
|
}, null, 8, ["meta"]))
|
|
3273
3277
|
]),
|
|
3274
3278
|
default: r(() => [
|
|
3275
|
-
(a(!0),
|
|
3276
|
-
key:
|
|
3279
|
+
(a(!0), v($, null, V(n.item.children, (y) => (a(), f(m, {
|
|
3280
|
+
key: y.path,
|
|
3277
3281
|
"is-nest": !0,
|
|
3278
|
-
item:
|
|
3279
|
-
to: s.getTo(
|
|
3282
|
+
item: y,
|
|
3283
|
+
to: s.getTo(y),
|
|
3280
3284
|
class: "nest-menu"
|
|
3281
3285
|
}, null, 8, ["item", "to"]))), 128))
|
|
3282
3286
|
]),
|
|
@@ -3284,69 +3288,70 @@ function Yl(e, t, n, o, l, s) {
|
|
|
3284
3288
|
}, 8, ["index", "class"])) : B("", !0)
|
|
3285
3289
|
])) : B("", !0);
|
|
3286
3290
|
}
|
|
3287
|
-
const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */
|
|
3291
|
+
const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ z({
|
|
3288
3292
|
__name: "SearchMenu",
|
|
3289
3293
|
setup(e) {
|
|
3290
3294
|
const t = j();
|
|
3291
3295
|
function n(m) {
|
|
3292
|
-
return m.filter((
|
|
3296
|
+
return m.filter((h) => h.meta?.menuType === 0 ? !1 : (h.children && (h.children = n(h.children), h.children.length === 0 && delete h.children), !0));
|
|
3293
3297
|
}
|
|
3294
|
-
const o =
|
|
3298
|
+
const o = O(""), l = w(() => t.remoteRouter), s = xe(), i = w(() => {
|
|
3295
3299
|
let m = [];
|
|
3296
|
-
return l.value.forEach((
|
|
3297
|
-
m = m.concat(S(
|
|
3300
|
+
return l.value.forEach((h) => {
|
|
3301
|
+
m = m.concat(S(h.routes));
|
|
3298
3302
|
}), n(m);
|
|
3299
3303
|
});
|
|
3300
3304
|
function c(m) {
|
|
3301
|
-
let
|
|
3302
|
-
if (m
|
|
3303
|
-
for (let
|
|
3304
|
-
if (m.children[
|
|
3305
|
-
|
|
3305
|
+
let h = m;
|
|
3306
|
+
if (m?.meta?.menuType === 1 && m.children && m.children.length > 0) {
|
|
3307
|
+
for (let b = 0; b < m.children.length; b++)
|
|
3308
|
+
if (m.children[b].path.indexOf("/:") === -1) {
|
|
3309
|
+
h = m.children[b];
|
|
3306
3310
|
break;
|
|
3307
3311
|
}
|
|
3308
3312
|
}
|
|
3309
|
-
|
|
3313
|
+
const y = h?.redirect || h;
|
|
3314
|
+
return typeof y == "string" ? s.resolve(y).fullPath : y && y.name ? s.resolve({ name: y.name, params: y.params, query: y.query }).fullPath : y && y.path ? s.resolve({ path: y.path, query: y.query }).fullPath : "";
|
|
3310
3315
|
}
|
|
3311
|
-
function
|
|
3312
|
-
s.push(m), o.value = "";
|
|
3316
|
+
function p(m) {
|
|
3317
|
+
m && s.push(m), o.value = "";
|
|
3313
3318
|
}
|
|
3314
|
-
return (m,
|
|
3315
|
-
const
|
|
3316
|
-
return a(),
|
|
3317
|
-
modelValue:
|
|
3318
|
-
"onUpdate:modelValue":
|
|
3319
|
+
return (m, h) => {
|
|
3320
|
+
const y = Fe, b = Kn, x = He;
|
|
3321
|
+
return a(), f(x, {
|
|
3322
|
+
modelValue: d(o),
|
|
3323
|
+
"onUpdate:modelValue": h[0] || (h[0] = (E) => dt(o) ? o.value = E : null),
|
|
3319
3324
|
filterable: "",
|
|
3320
3325
|
placeholder: "搜索菜单...",
|
|
3321
3326
|
class: "search-menu",
|
|
3322
|
-
onChange:
|
|
3327
|
+
onChange: p
|
|
3323
3328
|
}, {
|
|
3324
3329
|
default: r(() => [
|
|
3325
|
-
(a(!0),
|
|
3326
|
-
key:
|
|
3330
|
+
(a(!0), v($, null, V(d(i), (E) => (a(), v($, {
|
|
3331
|
+
key: E.path
|
|
3327
3332
|
}, [
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
key:
|
|
3331
|
-
label:
|
|
3333
|
+
E.children !== void 0 ? (a(), v($, { key: 0 }, [
|
|
3334
|
+
E.meta.menuType !== 0 ? (a(), f(b, {
|
|
3335
|
+
key: E.path + "-",
|
|
3336
|
+
label: E.meta.title
|
|
3332
3337
|
}, {
|
|
3333
3338
|
default: r(() => [
|
|
3334
|
-
(a(!0),
|
|
3339
|
+
(a(!0), v($, null, V(E.children, (T, I) => (a(), v($, {
|
|
3335
3340
|
key: T.path
|
|
3336
3341
|
}, [
|
|
3337
|
-
|
|
3342
|
+
E.meta.menuType !== 0 ? (a(), f(y, {
|
|
3338
3343
|
key: 0,
|
|
3339
|
-
label: (
|
|
3344
|
+
label: (I === E.children.length - 1 ? "└─" : "├─") + T.meta.title,
|
|
3340
3345
|
value: c(T)
|
|
3341
3346
|
}, null, 8, ["label", "value"])) : B("", !0)
|
|
3342
3347
|
], 64))), 128))
|
|
3343
3348
|
]),
|
|
3344
3349
|
_: 2
|
|
3345
3350
|
}, 1032, ["label"])) : B("", !0)
|
|
3346
|
-
], 64)) : (a(),
|
|
3351
|
+
], 64)) : (a(), f(y, {
|
|
3347
3352
|
key: 1,
|
|
3348
|
-
label: "" +
|
|
3349
|
-
value: c(
|
|
3353
|
+
label: "" + E.meta.title,
|
|
3354
|
+
value: c(E)
|
|
3350
3355
|
}, null, 8, ["label", "value"]))
|
|
3351
3356
|
], 64))), 128))
|
|
3352
3357
|
]),
|
|
@@ -3354,69 +3359,83 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ K({
|
|
|
3354
3359
|
}, 8, ["modelValue"]);
|
|
3355
3360
|
};
|
|
3356
3361
|
}
|
|
3357
|
-
}), ns = /* @__PURE__ */ L(ts, [["__scopeId", "data-v-
|
|
3362
|
+
}), ns = /* @__PURE__ */ L(ts, [["__scopeId", "data-v-47d0ecef"]]);
|
|
3358
3363
|
var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), F = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(F || {});
|
|
3359
|
-
const os = /* @__PURE__ */
|
|
3364
|
+
const os = /* @__PURE__ */ z({
|
|
3360
3365
|
__name: "index",
|
|
3361
3366
|
setup(e) {
|
|
3362
|
-
const t = X(), n = j(), o =
|
|
3363
|
-
let
|
|
3364
|
-
return c.options.routes.concat(i.value || []).forEach((
|
|
3365
|
-
|
|
3367
|
+
const t = X(), n = j(), o = q(), l = w(() => t.sidebar), s = w(() => n.remoteRouter), i = w(() => n.customRouter), c = xe(), p = se(), m = w(() => {
|
|
3368
|
+
let R = [];
|
|
3369
|
+
return c.options.routes.concat(i.value || []).forEach((_) => {
|
|
3370
|
+
_.path === "/" ? R = R.concat(_.children || []) : R.push(_);
|
|
3366
3371
|
}), S([
|
|
3367
|
-
{ label: "", routes:
|
|
3372
|
+
{ label: "", routes: R },
|
|
3368
3373
|
...s.value
|
|
3369
3374
|
]);
|
|
3370
|
-
}),
|
|
3371
|
-
const
|
|
3372
|
-
for (let
|
|
3373
|
-
const
|
|
3374
|
-
if (
|
|
3375
|
-
return
|
|
3375
|
+
}), h = w(() => {
|
|
3376
|
+
const R = p.matched;
|
|
3377
|
+
for (let _ = R.length - 1; _ >= 0; _--) {
|
|
3378
|
+
const K = R[_];
|
|
3379
|
+
if (K.meta.menuType === F.menu)
|
|
3380
|
+
return E(), T(K);
|
|
3376
3381
|
}
|
|
3377
3382
|
return "";
|
|
3378
|
-
}),
|
|
3383
|
+
}), y = w(() => o.sidebarLogo), b = w(() => ({
|
|
3379
3384
|
menuBg: "#304156",
|
|
3380
3385
|
menuText: "#bfcbd9",
|
|
3381
3386
|
menuActiveText: "#409EFF"
|
|
3382
3387
|
})), x = w(() => !l.value.opened);
|
|
3383
|
-
Ue(() =>
|
|
3384
|
-
function
|
|
3385
|
-
|
|
3388
|
+
Ue(() => E());
|
|
3389
|
+
function E() {
|
|
3390
|
+
ht("is-active", 200);
|
|
3391
|
+
}
|
|
3392
|
+
function T(R) {
|
|
3393
|
+
const _ = R?.redirect || R;
|
|
3394
|
+
if (!_)
|
|
3395
|
+
return "";
|
|
3396
|
+
if (typeof _ == "string")
|
|
3397
|
+
return c.resolve(_).fullPath;
|
|
3398
|
+
if (typeof _ == "object") {
|
|
3399
|
+
if (_.name)
|
|
3400
|
+
return c.resolve({ name: _.name, params: _.params, query: _.query }).fullPath;
|
|
3401
|
+
if (_.path)
|
|
3402
|
+
return c.resolve({ path: _.path, query: _.query }).fullPath;
|
|
3403
|
+
}
|
|
3404
|
+
return "";
|
|
3386
3405
|
}
|
|
3387
|
-
function
|
|
3388
|
-
return
|
|
3406
|
+
function I(R) {
|
|
3407
|
+
return R.filter((_) => [F.dir, F.menu].indexOf(_.meta.menuType) !== -1).map((_) => (_ = Object.assign({}, _), _.children && (_.children = I(_.children)), _));
|
|
3389
3408
|
}
|
|
3390
|
-
return (
|
|
3391
|
-
const
|
|
3392
|
-
return a(),
|
|
3393
|
-
class:
|
|
3409
|
+
return (R, _) => {
|
|
3410
|
+
const K = Wn, g = Jn;
|
|
3411
|
+
return a(), v("div", {
|
|
3412
|
+
class: Y({ "has-logo": d(y) })
|
|
3394
3413
|
}, [
|
|
3395
|
-
|
|
3414
|
+
d(y) ? (a(), f(Fl, {
|
|
3396
3415
|
key: 0,
|
|
3397
|
-
collapse:
|
|
3416
|
+
collapse: d(x)
|
|
3398
3417
|
}, null, 8, ["collapse"])) : B("", !0),
|
|
3399
|
-
u(
|
|
3418
|
+
u(g, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3400
3419
|
default: r(() => [
|
|
3401
|
-
|
|
3402
|
-
u(
|
|
3403
|
-
"default-active":
|
|
3404
|
-
collapse:
|
|
3405
|
-
"background-color":
|
|
3406
|
-
"text-color":
|
|
3420
|
+
d(x) ? B("", !0) : (a(), f(ns, { key: 0 })),
|
|
3421
|
+
u(K, {
|
|
3422
|
+
"default-active": d(h),
|
|
3423
|
+
collapse: d(x),
|
|
3424
|
+
"background-color": d(b).menuBg,
|
|
3425
|
+
"text-color": d(b).menuText,
|
|
3407
3426
|
"unique-opened": !1,
|
|
3408
|
-
"active-text-color":
|
|
3427
|
+
"active-text-color": d(b).menuActiveText,
|
|
3409
3428
|
"collapse-transition": !1,
|
|
3410
3429
|
mode: "vertical"
|
|
3411
3430
|
}, {
|
|
3412
3431
|
default: r(() => [
|
|
3413
|
-
(a(!0),
|
|
3414
|
-
key:
|
|
3432
|
+
(a(!0), v($, null, V(d(m), (U, Z) => (a(), v($, {
|
|
3433
|
+
key: Z + "-module"
|
|
3415
3434
|
}, [
|
|
3416
|
-
(a(!0),
|
|
3417
|
-
key:
|
|
3418
|
-
item:
|
|
3419
|
-
to:
|
|
3435
|
+
(a(!0), v($, null, V(I(U.routes), (ie) => (a(), f(es, {
|
|
3436
|
+
key: ie.path,
|
|
3437
|
+
item: ie,
|
|
3438
|
+
to: T(ie)
|
|
3420
3439
|
}, null, 8, ["item", "to"]))), 128))
|
|
3421
3440
|
], 64))), 128))
|
|
3422
3441
|
]),
|
|
@@ -3428,17 +3447,17 @@ const os = /* @__PURE__ */ K({
|
|
|
3428
3447
|
], 2);
|
|
3429
3448
|
};
|
|
3430
3449
|
}
|
|
3431
|
-
}), ls = /* @__PURE__ */ L(os, [["__scopeId", "data-v-
|
|
3450
|
+
}), ls = /* @__PURE__ */ L(os, [["__scopeId", "data-v-f7d939e1"]]), ss = { class: "app-main" }, is = {
|
|
3432
3451
|
__name: "AppMain",
|
|
3433
3452
|
setup(e) {
|
|
3434
|
-
const t = se(), n = [], o =
|
|
3453
|
+
const t = se(), n = [], o = O(0);
|
|
3435
3454
|
return On(() => {
|
|
3436
3455
|
t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
|
|
3437
3456
|
}), (l, s) => {
|
|
3438
|
-
const i =
|
|
3439
|
-
return a(),
|
|
3440
|
-
(a(),
|
|
3441
|
-
key: l.$route.fullPath +
|
|
3457
|
+
const i = P("router-view"), c = Qn;
|
|
3458
|
+
return a(), v("section", ss, [
|
|
3459
|
+
(a(), f(i, {
|
|
3460
|
+
key: l.$route.fullPath + d(o)
|
|
3442
3461
|
})),
|
|
3443
3462
|
u(c, { bottom: 50 })
|
|
3444
3463
|
]);
|
|
@@ -3447,50 +3466,50 @@ const os = /* @__PURE__ */ K({
|
|
|
3447
3466
|
}, as = /* @__PURE__ */ L(is, [["__scopeId", "data-v-ca0f0d98"]]), rs = { class: "main-container" }, cs = 992, us = {
|
|
3448
3467
|
__name: "index",
|
|
3449
3468
|
setup(e) {
|
|
3450
|
-
const { body: t } = document, n = X(), o =
|
|
3469
|
+
const { body: t } = document, n = X(), o = q(), l = w(() => n.sidebar), s = w(() => n.device), i = w(() => o.fixedHeader), c = w(() => ({
|
|
3451
3470
|
hideSidebar: !l.value.opened,
|
|
3452
3471
|
openSidebar: l.value.opened,
|
|
3453
3472
|
withoutAnimation: l.value.withoutAnimation,
|
|
3454
3473
|
mobile: s.value === "mobile"
|
|
3455
|
-
})),
|
|
3456
|
-
io(window, "resize", () =>
|
|
3457
|
-
const m = () => n.closeSideBar({ withoutAnimation: !1 }),
|
|
3474
|
+
})), p = () => t.getBoundingClientRect().width - 1 < cs;
|
|
3475
|
+
io(window, "resize", () => h());
|
|
3476
|
+
const m = () => n.closeSideBar({ withoutAnimation: !1 }), h = () => {
|
|
3458
3477
|
if (!document.hidden) {
|
|
3459
|
-
const
|
|
3460
|
-
n.toggleDevice(
|
|
3478
|
+
const y = p();
|
|
3479
|
+
n.toggleDevice(y ? "mobile" : "desktop"), y && n.closeSideBar({ withoutAnimation: !0 });
|
|
3461
3480
|
}
|
|
3462
3481
|
};
|
|
3463
|
-
return (
|
|
3464
|
-
class:
|
|
3482
|
+
return (y, b) => (a(), v("div", {
|
|
3483
|
+
class: Y([d(c), "app-wrapper"])
|
|
3465
3484
|
}, [
|
|
3466
|
-
|
|
3485
|
+
d(s) === "mobile" && d(l).opened ? (a(), v("div", {
|
|
3467
3486
|
key: 0,
|
|
3468
3487
|
class: "drawer-bg",
|
|
3469
3488
|
onClick: m
|
|
3470
3489
|
})) : B("", !0),
|
|
3471
|
-
u(
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
class:
|
|
3490
|
+
u(d(ls), { class: "sidebar-container" }),
|
|
3491
|
+
k("div", rs, [
|
|
3492
|
+
k("div", {
|
|
3493
|
+
class: Y({ "fixed-header": d(i) })
|
|
3475
3494
|
}, [
|
|
3476
|
-
u(
|
|
3495
|
+
u(d(jl))
|
|
3477
3496
|
], 2),
|
|
3478
|
-
u(
|
|
3497
|
+
u(d(as))
|
|
3479
3498
|
])
|
|
3480
3499
|
], 2));
|
|
3481
3500
|
}
|
|
3482
|
-
},
|
|
3501
|
+
}, Nt = /* @__PURE__ */ L(us, [["__scopeId", "data-v-b7ab74f0"]]), ps = { id: "login" }, ds = { id: "form" }, ms = {
|
|
3483
3502
|
key: 0,
|
|
3484
3503
|
class: "captcha"
|
|
3485
|
-
}, fs = ["src"], hs = { class: "tips" }, bs = { class: "sso" }, ys = /* @__PURE__ */
|
|
3504
|
+
}, fs = ["src"], hs = { class: "tips" }, bs = { class: "sso" }, ys = /* @__PURE__ */ z({
|
|
3486
3505
|
__name: "login",
|
|
3487
3506
|
setup(e) {
|
|
3488
|
-
const t =
|
|
3507
|
+
const t = xe(), n = se(), o = q(), l = X(), s = j(), i = w(() => o.loginTips), c = w(() => o.captcha), p = w(() => l.baseURL), m = O(0), h = () => m.value++, y = w(() => b.value.username.length > 0 && b.value.password.length >= 4 && (c.value ? b.value.captcha.length === 4 : !0)), b = O({
|
|
3489
3508
|
username: "",
|
|
3490
3509
|
password: "",
|
|
3491
3510
|
captcha: "",
|
|
3492
3511
|
sing: ""
|
|
3493
|
-
}), x =
|
|
3512
|
+
}), x = O(!1), E = () => {
|
|
3494
3513
|
if (!x.value) {
|
|
3495
3514
|
if (b.value.username === "" || b.value.password === "" || c.value && b.value.captcha === "") {
|
|
3496
3515
|
Xn.error("用户名, 密码, 验证码是必须的");
|
|
@@ -3505,61 +3524,61 @@ const os = /* @__PURE__ */ K({
|
|
|
3505
3524
|
});
|
|
3506
3525
|
}
|
|
3507
3526
|
};
|
|
3508
|
-
return (T,
|
|
3509
|
-
const
|
|
3510
|
-
return a(),
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
"onUpdate:modelValue":
|
|
3527
|
+
return (T, I) => {
|
|
3528
|
+
const R = me;
|
|
3529
|
+
return a(), v("div", ps, [
|
|
3530
|
+
I[4] || (I[4] = k("h1", { id: "title" }, "登录", -1)),
|
|
3531
|
+
k("form", ds, [
|
|
3532
|
+
Te(k("input", {
|
|
3533
|
+
"onUpdate:modelValue": I[0] || (I[0] = (_) => d(b).username = _),
|
|
3515
3534
|
type: "text",
|
|
3516
3535
|
placeholder: "用户名",
|
|
3517
3536
|
class: "input"
|
|
3518
3537
|
}, null, 512), [
|
|
3519
|
-
[
|
|
3538
|
+
[Re, d(b).username]
|
|
3520
3539
|
]),
|
|
3521
|
-
|
|
3522
|
-
"onUpdate:modelValue":
|
|
3540
|
+
Te(k("input", {
|
|
3541
|
+
"onUpdate:modelValue": I[1] || (I[1] = (_) => d(b).password = _),
|
|
3523
3542
|
type: "password",
|
|
3524
3543
|
placeholder: "密码",
|
|
3525
3544
|
class: "input"
|
|
3526
3545
|
}, null, 512), [
|
|
3527
|
-
[
|
|
3546
|
+
[Re, d(b).password]
|
|
3528
3547
|
]),
|
|
3529
|
-
c.value ? (a(),
|
|
3530
|
-
|
|
3531
|
-
"onUpdate:modelValue":
|
|
3548
|
+
c.value ? (a(), v("div", ms, [
|
|
3549
|
+
Te(k("input", {
|
|
3550
|
+
"onUpdate:modelValue": I[2] || (I[2] = (_) => d(b).captcha = _),
|
|
3532
3551
|
type: "text",
|
|
3533
3552
|
placeholder: "验证码",
|
|
3534
3553
|
class: "input-captcha"
|
|
3535
3554
|
}, null, 512), [
|
|
3536
|
-
[
|
|
3555
|
+
[Re, d(b).captcha]
|
|
3537
3556
|
]),
|
|
3538
|
-
|
|
3557
|
+
k("img", {
|
|
3539
3558
|
class: "captcha-img",
|
|
3540
|
-
src:
|
|
3559
|
+
src: p.value + "/user/captcha?ts=" + d(m),
|
|
3541
3560
|
title: "点击刷新",
|
|
3542
|
-
onClick:
|
|
3561
|
+
onClick: h
|
|
3543
3562
|
}, null, 8, fs)
|
|
3544
3563
|
])) : B("", !0),
|
|
3545
|
-
u(
|
|
3564
|
+
u(R, {
|
|
3546
3565
|
class: "login-button",
|
|
3547
3566
|
type: "primary",
|
|
3548
|
-
loading:
|
|
3549
|
-
disabled: !
|
|
3550
|
-
onClick:
|
|
3567
|
+
loading: d(x),
|
|
3568
|
+
disabled: !y.value || d(x),
|
|
3569
|
+
onClick: E
|
|
3551
3570
|
}, {
|
|
3552
3571
|
default: r(() => [
|
|
3553
|
-
C(N(
|
|
3572
|
+
C(N(d(x) ? "登录中…" : "登录"), 1)
|
|
3554
3573
|
]),
|
|
3555
3574
|
_: 1
|
|
3556
3575
|
}, 8, ["loading", "disabled"]),
|
|
3557
|
-
|
|
3558
|
-
|
|
3576
|
+
k("div", hs, [
|
|
3577
|
+
k("div", null, N(i.value), 1)
|
|
3559
3578
|
]),
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
(a(!0),
|
|
3579
|
+
k("div", bs, [
|
|
3580
|
+
I[3] || (I[3] = k("div", { id: "sso-qrcode" }, null, -1)),
|
|
3581
|
+
(a(!0), v($, null, V(Object.keys([]), (_) => (a(), v("div", { key: _ }, N(_), 1))), 128))
|
|
3563
3582
|
])
|
|
3564
3583
|
])
|
|
3565
3584
|
]);
|
|
@@ -3569,8 +3588,8 @@ const os = /* @__PURE__ */ K({
|
|
|
3569
3588
|
name: "NotFoundPage"
|
|
3570
3589
|
}, vs = { class: "not-found" };
|
|
3571
3590
|
function gs(e, t, n, o, l, s) {
|
|
3572
|
-
return a(),
|
|
3573
|
-
|
|
3591
|
+
return a(), v("div", vs, [...t[0] || (t[0] = [
|
|
3592
|
+
k("svg", {
|
|
3574
3593
|
width: "380px",
|
|
3575
3594
|
height: "500px",
|
|
3576
3595
|
viewBox: "0 0 837 1045",
|
|
@@ -3579,7 +3598,7 @@ function gs(e, t, n, o, l, s) {
|
|
|
3579
3598
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3580
3599
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
3581
3600
|
}, [
|
|
3582
|
-
|
|
3601
|
+
k("g", {
|
|
3583
3602
|
id: "Page-1",
|
|
3584
3603
|
stroke: "none",
|
|
3585
3604
|
"stroke-width": "1",
|
|
@@ -3587,35 +3606,35 @@ function gs(e, t, n, o, l, s) {
|
|
|
3587
3606
|
"fill-rule": "evenodd",
|
|
3588
3607
|
"sketch:type": "MSPage"
|
|
3589
3608
|
}, [
|
|
3590
|
-
|
|
3609
|
+
k("path", {
|
|
3591
3610
|
id: "Polygon-1",
|
|
3592
3611
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
3593
3612
|
stroke: "#007FB2",
|
|
3594
3613
|
"stroke-width": "6",
|
|
3595
3614
|
"sketch:type": "MSShapeGroup"
|
|
3596
3615
|
}),
|
|
3597
|
-
|
|
3616
|
+
k("path", {
|
|
3598
3617
|
id: "Polygon-2",
|
|
3599
3618
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
3600
3619
|
stroke: "#EF4A5B",
|
|
3601
3620
|
"stroke-width": "6",
|
|
3602
3621
|
"sketch:type": "MSShapeGroup"
|
|
3603
3622
|
}),
|
|
3604
|
-
|
|
3623
|
+
k("path", {
|
|
3605
3624
|
id: "Polygon-3",
|
|
3606
3625
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
3607
3626
|
stroke: "#795D9C",
|
|
3608
3627
|
"stroke-width": "6",
|
|
3609
3628
|
"sketch:type": "MSShapeGroup"
|
|
3610
3629
|
}),
|
|
3611
|
-
|
|
3630
|
+
k("path", {
|
|
3612
3631
|
id: "Polygon-4",
|
|
3613
3632
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
3614
3633
|
stroke: "#F2773F",
|
|
3615
3634
|
"stroke-width": "6",
|
|
3616
3635
|
"sketch:type": "MSShapeGroup"
|
|
3617
3636
|
}),
|
|
3618
|
-
|
|
3637
|
+
k("path", {
|
|
3619
3638
|
id: "Polygon-5",
|
|
3620
3639
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
3621
3640
|
stroke: "#36B455",
|
|
@@ -3624,12 +3643,12 @@ function gs(e, t, n, o, l, s) {
|
|
|
3624
3643
|
})
|
|
3625
3644
|
])
|
|
3626
3645
|
], -1),
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3646
|
+
k("div", { class: "message-box" }, [
|
|
3647
|
+
k("h1", null, "404"),
|
|
3648
|
+
k("p", null, "Page not found"),
|
|
3649
|
+
k("div", { class: "buttons-con" }, [
|
|
3650
|
+
k("div", { class: "action-link-wrap" }, [
|
|
3651
|
+
k("a", {
|
|
3633
3652
|
href: "",
|
|
3634
3653
|
class: "link-button"
|
|
3635
3654
|
}, "Go to Home Page")
|
|
@@ -3641,7 +3660,7 @@ function gs(e, t, n, o, l, s) {
|
|
|
3641
3660
|
const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803"]]), ws = [
|
|
3642
3661
|
{
|
|
3643
3662
|
path: "/",
|
|
3644
|
-
component:
|
|
3663
|
+
component: Nt,
|
|
3645
3664
|
redirect: "/dashboard",
|
|
3646
3665
|
name: "Root",
|
|
3647
3666
|
meta: {
|
|
@@ -3655,7 +3674,7 @@ const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803
|
|
|
3655
3674
|
{
|
|
3656
3675
|
path: "dashboard",
|
|
3657
3676
|
name: "Dashboard",
|
|
3658
|
-
component:
|
|
3677
|
+
component: Po,
|
|
3659
3678
|
meta: {
|
|
3660
3679
|
id: 1,
|
|
3661
3680
|
pageId: 1,
|
|
@@ -3692,29 +3711,29 @@ const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803
|
|
|
3692
3711
|
hidden: !0
|
|
3693
3712
|
}
|
|
3694
3713
|
], W = $n({
|
|
3695
|
-
history:
|
|
3714
|
+
history: Pn(),
|
|
3696
3715
|
routes: ws
|
|
3697
3716
|
});
|
|
3698
|
-
|
|
3717
|
+
Me.configure({ showSpinner: !1 });
|
|
3699
3718
|
function Ss(e) {
|
|
3700
3719
|
e.beforeEach((t, n, o) => {
|
|
3701
|
-
|
|
3720
|
+
Me.start(), t.preHash = location.hash.replace("#", ""), o();
|
|
3702
3721
|
}), e.afterEach((t) => {
|
|
3703
|
-
const n = j(
|
|
3722
|
+
const n = j(A);
|
|
3704
3723
|
t.matched.length > 0 && n.updateState({
|
|
3705
3724
|
key: "path",
|
|
3706
3725
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
3707
|
-
}),
|
|
3726
|
+
}), Me.done();
|
|
3708
3727
|
});
|
|
3709
3728
|
}
|
|
3710
3729
|
function xs() {
|
|
3711
|
-
return j(
|
|
3730
|
+
return j(A).isLodeRemoteRoutes;
|
|
3712
3731
|
}
|
|
3713
|
-
function
|
|
3714
|
-
return
|
|
3732
|
+
function qt() {
|
|
3733
|
+
return q(A).whiteRoutes || [];
|
|
3715
3734
|
}
|
|
3716
3735
|
function Es() {
|
|
3717
|
-
return j(
|
|
3736
|
+
return j(A).token;
|
|
3718
3737
|
}
|
|
3719
3738
|
class Ut {
|
|
3720
3739
|
type = "qrcode";
|
|
@@ -3733,7 +3752,7 @@ class $a extends Ut {
|
|
|
3733
3752
|
super(), this.client_id = t.client_id;
|
|
3734
3753
|
}
|
|
3735
3754
|
flag() {
|
|
3736
|
-
const t =
|
|
3755
|
+
const t = bt("code");
|
|
3737
3756
|
if (t)
|
|
3738
3757
|
return {
|
|
3739
3758
|
ticket: t,
|
|
@@ -3745,7 +3764,7 @@ class $a extends Ut {
|
|
|
3745
3764
|
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
|
|
3746
3765
|
}
|
|
3747
3766
|
}
|
|
3748
|
-
class
|
|
3767
|
+
class Pa extends Ut {
|
|
3749
3768
|
type = "qrcode";
|
|
3750
3769
|
qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
3751
3770
|
reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
@@ -3758,7 +3777,7 @@ class Aa extends Ut {
|
|
|
3758
3777
|
super();
|
|
3759
3778
|
}
|
|
3760
3779
|
flag() {
|
|
3761
|
-
const t =
|
|
3780
|
+
const t = bt("code");
|
|
3762
3781
|
if (t)
|
|
3763
3782
|
return {
|
|
3764
3783
|
ticket: t,
|
|
@@ -3791,16 +3810,16 @@ class Aa extends Ut {
|
|
|
3791
3810
|
}
|
|
3792
3811
|
const Is = {};
|
|
3793
3812
|
function Cs() {
|
|
3794
|
-
return
|
|
3813
|
+
return G(q(A).sso || {}, Is);
|
|
3795
3814
|
}
|
|
3796
3815
|
function Ts() {
|
|
3797
|
-
const e = Cs(), t =
|
|
3816
|
+
const e = Cs(), t = q(A).activeSsoKey || "", n = e[t];
|
|
3798
3817
|
if (n !== void 0)
|
|
3799
3818
|
return n();
|
|
3800
3819
|
}
|
|
3801
|
-
function
|
|
3820
|
+
function Rs(e) {
|
|
3802
3821
|
e.beforeEach(async (t, n, o) => {
|
|
3803
|
-
if (
|
|
3822
|
+
if (qt().indexOf(t.path) !== -1) {
|
|
3804
3823
|
o();
|
|
3805
3824
|
return;
|
|
3806
3825
|
}
|
|
@@ -3813,21 +3832,21 @@ function Bs(e) {
|
|
|
3813
3832
|
o(`/login?redirect=${s}`);
|
|
3814
3833
|
return;
|
|
3815
3834
|
}
|
|
3816
|
-
const c = i.flag(),
|
|
3817
|
-
if (c && await
|
|
3835
|
+
const c = i.flag(), p = j(A);
|
|
3836
|
+
if (c && await p.login(c)) {
|
|
3818
3837
|
o();
|
|
3819
3838
|
return;
|
|
3820
3839
|
}
|
|
3821
3840
|
i.jumpToLoginPage(o, `/login?redirect=${s}`);
|
|
3822
3841
|
});
|
|
3823
3842
|
}
|
|
3824
|
-
const
|
|
3843
|
+
const Bs = {}, Os = { class: "loading preloader" };
|
|
3825
3844
|
function $s(e, t) {
|
|
3826
|
-
return a(),
|
|
3827
|
-
|
|
3845
|
+
return a(), v("div", Os, [...t[0] || (t[0] = [
|
|
3846
|
+
k("div", { class: "preloader-inner" }, null, -1)
|
|
3828
3847
|
])]);
|
|
3829
3848
|
}
|
|
3830
|
-
const
|
|
3849
|
+
const Ps = /* @__PURE__ */ L(Bs, [["render", $s]]), As = {
|
|
3831
3850
|
name: "VNotice",
|
|
3832
3851
|
props: {
|
|
3833
3852
|
dataApi: {
|
|
@@ -3857,51 +3876,51 @@ const As = /* @__PURE__ */ L(Rs, [["render", $s]]), Ps = {
|
|
|
3857
3876
|
}
|
|
3858
3877
|
};
|
|
3859
3878
|
function Ls(e, t, n, o, l, s) {
|
|
3860
|
-
const i =
|
|
3861
|
-
return a(),
|
|
3862
|
-
l.hasNotice ? (a(),
|
|
3879
|
+
const i = Et;
|
|
3880
|
+
return a(), v("div", null, [
|
|
3881
|
+
l.hasNotice ? (a(), f(i, le(Q({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
|
|
3863
3882
|
]);
|
|
3864
3883
|
}
|
|
3865
|
-
const Ms = /* @__PURE__ */ L(
|
|
3884
|
+
const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /* @__PURE__ */ z({
|
|
3866
3885
|
__name: "PageLoad",
|
|
3867
3886
|
props: {
|
|
3868
3887
|
schemaHandler: { type: Function, default: (e) => e },
|
|
3869
3888
|
schemaApi: { default: "" }
|
|
3870
3889
|
},
|
|
3871
3890
|
setup(e) {
|
|
3872
|
-
const t = e, n = X(), o =
|
|
3873
|
-
return
|
|
3874
|
-
const T = s.path.split("/").filter((
|
|
3875
|
-
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi ||
|
|
3876
|
-
i.value = !1,
|
|
3891
|
+
const t = e, n = X(), o = q(), l = j(), s = se(), i = O(!0), c = O(!1), p = O({}), m = O(""), h = O({}), y = O([]), b = O(!1), x = w(() => l.env), E = w(() => o);
|
|
3892
|
+
return pt(() => {
|
|
3893
|
+
const T = s.path.split("/").filter((g) => g), I = T.length > 1 ? T.slice(0, T.length - 1).join("/") : T[0], R = "/schema" + s.meta.path, _ = { params: s.params };
|
|
3894
|
+
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || R, _).then(({ data: g }) => {
|
|
3895
|
+
i.value = !1, ve(g) && (g.notice !== void 0 && (c.value = !0, yt(g.notice) ? p.value = { title: g.notice } : ve(g.notice) && (p.value = g.notice, m.value = g.notice.noticeApi), delete g.notice), y.value = g.ownerNames || [], b.value = g.serviceOffLine || !1), h.value = t.schemaHandler(g, I), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: h.value });
|
|
3877
3896
|
});
|
|
3878
|
-
}), (T,
|
|
3879
|
-
const
|
|
3880
|
-
return a(),
|
|
3881
|
-
|
|
3897
|
+
}), (T, I) => {
|
|
3898
|
+
const R = Et;
|
|
3899
|
+
return a(), v($, null, [
|
|
3900
|
+
d(y).length > 0 ? (a(), f(R, {
|
|
3882
3901
|
key: 0,
|
|
3883
|
-
title: `该页面功能对应开发: [ ${
|
|
3902
|
+
title: `该页面功能对应开发: [ ${d(y).join(", ")} ] 有问题可直接企微反馈`,
|
|
3884
3903
|
type: "info",
|
|
3885
3904
|
style: { margin: "0 0 20px 0" },
|
|
3886
3905
|
closable: !1
|
|
3887
3906
|
}, null, 8, ["title"])) : B("", !0),
|
|
3888
|
-
|
|
3907
|
+
d(x) === "prod" && d(b) ? (a(), v("div", {
|
|
3889
3908
|
key: 1,
|
|
3890
3909
|
class: "offline-notice",
|
|
3891
|
-
innerHTML:
|
|
3892
|
-
}, null, 8, Ds)) : (a(),
|
|
3893
|
-
|
|
3910
|
+
innerHTML: d(b) === !0 ? d(E).serviceOffLineNotice : d(b)
|
|
3911
|
+
}, null, 8, Ds)) : (a(), v($, { key: 2 }, [
|
|
3912
|
+
d(c) ? (a(), f(Ms, {
|
|
3894
3913
|
key: 0,
|
|
3895
|
-
notice: p
|
|
3914
|
+
notice: d(p),
|
|
3896
3915
|
style: { margin: "0 0 20px 0" },
|
|
3897
|
-
"data-api":
|
|
3916
|
+
"data-api": d(m)
|
|
3898
3917
|
}, null, 8, ["notice", "data-api"])) : B("", !0),
|
|
3899
|
-
|
|
3918
|
+
d(i) ? (a(), f(Ps, { key: 1 })) : ce(T.$slots, "default", le(Q({ key: 2 }, d(h))), void 0, !0)
|
|
3900
3919
|
], 64))
|
|
3901
3920
|
], 64);
|
|
3902
3921
|
};
|
|
3903
3922
|
}
|
|
3904
|
-
}),
|
|
3923
|
+
}), Ce = /* @__PURE__ */ L(js, [["__scopeId", "data-v-8c134236"]]), Vt = {
|
|
3905
3924
|
__name: "table",
|
|
3906
3925
|
setup(e) {
|
|
3907
3926
|
const t = (n, o) => {
|
|
@@ -3910,38 +3929,38 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
3910
3929
|
prop: n.orderBy.field,
|
|
3911
3930
|
order: n.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
3912
3931
|
};
|
|
3913
|
-
n.tableProps =
|
|
3932
|
+
n.tableProps = G(n.tableProps, { defaultSort: s });
|
|
3914
3933
|
}
|
|
3915
|
-
const l = Object.keys(
|
|
3934
|
+
const l = Object.keys(ge.props);
|
|
3916
3935
|
return Object.keys(n).forEach((s) => {
|
|
3917
3936
|
l.indexOf(s) === -1 && delete n[s];
|
|
3918
3937
|
}), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
|
|
3919
3938
|
};
|
|
3920
|
-
return (n, o) => (a(),
|
|
3939
|
+
return (n, o) => (a(), f(Ce, { "schema-handler": t }, {
|
|
3921
3940
|
default: r((l) => [
|
|
3922
|
-
u(
|
|
3941
|
+
u(d(ge), le(we(l)), null, 16)
|
|
3923
3942
|
]),
|
|
3924
3943
|
_: 1
|
|
3925
3944
|
}));
|
|
3926
3945
|
}
|
|
3927
|
-
},
|
|
3946
|
+
}, Ne = {
|
|
3928
3947
|
__name: "form",
|
|
3929
3948
|
setup(e) {
|
|
3930
|
-
const t = se(), n =
|
|
3949
|
+
const t = se(), n = xe(), o = (c, p) => {
|
|
3931
3950
|
const m = Object.keys(oe.props);
|
|
3932
|
-
return Object.keys(c).forEach((
|
|
3933
|
-
if (m.indexOf(
|
|
3934
|
-
delete c[
|
|
3951
|
+
return Object.keys(c).forEach((h) => {
|
|
3952
|
+
if (m.indexOf(h) === -1) {
|
|
3953
|
+
delete c[h];
|
|
3935
3954
|
return;
|
|
3936
3955
|
}
|
|
3937
|
-
/.*Api$/.test(
|
|
3938
|
-
}), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${
|
|
3939
|
-
saveApi:
|
|
3956
|
+
/.*Api$/.test(h) && (c[h] = ne(c[h], t.params));
|
|
3957
|
+
}), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${p}/update/${t.params.id}`, c.getApi || (c.getApi = `/${p}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${p}/create`)), c = G({
|
|
3958
|
+
saveApi: p + "/save",
|
|
3940
3959
|
afterSubmit: "goback",
|
|
3941
3960
|
afterReset: "goback",
|
|
3942
3961
|
mod: t.params.id ? "edit" : "create"
|
|
3943
3962
|
}, c), c;
|
|
3944
|
-
}, l =
|
|
3963
|
+
}, l = O(0), s = () => {
|
|
3945
3964
|
yi.request({
|
|
3946
3965
|
url: "/form_mutex",
|
|
3947
3966
|
method: "get",
|
|
@@ -3949,19 +3968,19 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
3949
3968
|
path: t.fullPath
|
|
3950
3969
|
}
|
|
3951
3970
|
}).then((c) => {
|
|
3952
|
-
c.data && (clearInterval(l.value),
|
|
3971
|
+
c.data && (clearInterval(l.value), gt.alert(`${c.data}`, "操作提醒", {
|
|
3953
3972
|
showClose: !1,
|
|
3954
3973
|
showCancelButton: !0,
|
|
3955
3974
|
confirmButtonText: "返回",
|
|
3956
3975
|
cancelButtonText: "刷新",
|
|
3957
|
-
callback: (
|
|
3958
|
-
|
|
3976
|
+
callback: (p) => {
|
|
3977
|
+
p === "cancel" ? location.reload() : i();
|
|
3959
3978
|
}
|
|
3960
3979
|
}));
|
|
3961
3980
|
});
|
|
3962
3981
|
};
|
|
3963
3982
|
Ue(() => {
|
|
3964
|
-
const c =
|
|
3983
|
+
const c = q();
|
|
3965
3984
|
t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
|
|
3966
3985
|
}), an(() => {
|
|
3967
3986
|
clearInterval(l.value);
|
|
@@ -3969,14 +3988,14 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
3969
3988
|
function i() {
|
|
3970
3989
|
t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
|
|
3971
3990
|
}
|
|
3972
|
-
return (c,
|
|
3991
|
+
return (c, p) => (a(), f(Ce, { "schema-handler": o }, {
|
|
3973
3992
|
default: r((m) => [
|
|
3974
|
-
u(
|
|
3993
|
+
u(d(oe), le(we(m)), null, 16)
|
|
3975
3994
|
]),
|
|
3976
3995
|
_: 1
|
|
3977
3996
|
}));
|
|
3978
3997
|
}
|
|
3979
|
-
}, Ns =
|
|
3998
|
+
}, Ns = z({
|
|
3980
3999
|
name: "VTree",
|
|
3981
4000
|
components: {
|
|
3982
4001
|
VForm: oe
|
|
@@ -4032,7 +4051,7 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
4032
4051
|
// 1 新增, 2 编辑
|
|
4033
4052
|
treeData: [],
|
|
4034
4053
|
formData: {},
|
|
4035
|
-
localTreeProps:
|
|
4054
|
+
localTreeProps: G({
|
|
4036
4055
|
"default-expand-all": !0,
|
|
4037
4056
|
"expand-on-click-node": !1,
|
|
4038
4057
|
props: {
|
|
@@ -4116,13 +4135,13 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
4116
4135
|
});
|
|
4117
4136
|
}
|
|
4118
4137
|
}
|
|
4119
|
-
}),
|
|
4138
|
+
}), qs = { class: "card-header" }, Us = { class: "tree-action" }, Vs = { key: 0 }, Hs = {
|
|
4120
4139
|
key: 1,
|
|
4121
4140
|
style: { color: "#E6A23C" }
|
|
4122
4141
|
}, Fs = { class: "card-header" };
|
|
4123
4142
|
function Gs(e, t, n, o, l, s) {
|
|
4124
|
-
const i =
|
|
4125
|
-
return a(),
|
|
4143
|
+
const i = me, c = Yn, p = Zn, m = Ge, h = P("v-form"), y = Ee;
|
|
4144
|
+
return a(), f(y, {
|
|
4126
4145
|
class: "tree-box",
|
|
4127
4146
|
gutter: 20
|
|
4128
4147
|
}, {
|
|
@@ -4132,10 +4151,10 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4132
4151
|
class: "tree-tree"
|
|
4133
4152
|
}, {
|
|
4134
4153
|
default: r(() => [
|
|
4135
|
-
u(
|
|
4154
|
+
u(p, { shadow: "never" }, {
|
|
4136
4155
|
header: r(() => [
|
|
4137
|
-
|
|
4138
|
-
t[3] || (t[3] =
|
|
4156
|
+
k("div", qs, [
|
|
4157
|
+
t[3] || (t[3] = k("span", null, "列表", -1)),
|
|
4139
4158
|
u(i, {
|
|
4140
4159
|
type: "text",
|
|
4141
4160
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
@@ -4148,7 +4167,7 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4148
4167
|
])
|
|
4149
4168
|
]),
|
|
4150
4169
|
default: r(() => [
|
|
4151
|
-
(e.treeData || []).length > 0 ? (a(),
|
|
4170
|
+
(e.treeData || []).length > 0 ? (a(), f(c, Q({
|
|
4152
4171
|
key: 0,
|
|
4153
4172
|
style: { height: "100vh" },
|
|
4154
4173
|
data: e.treeData,
|
|
@@ -4160,10 +4179,10 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4160
4179
|
onNodeDragEnd: e.handleDragEnd
|
|
4161
4180
|
}), {
|
|
4162
4181
|
default: r(({ node: b, data: x }) => [
|
|
4163
|
-
|
|
4164
|
-
x[e.localTreeProps.props.label] ? (a(),
|
|
4165
|
-
|
|
4166
|
-
x[e.localTreeProps.props.label] ? (a(),
|
|
4182
|
+
k("span", Us, [
|
|
4183
|
+
x[e.localTreeProps.props.label] ? (a(), v("span", Vs, N(x[e.localTreeProps.props.label]), 1)) : (a(), v("span", Hs, "请在右侧表单中修改 --> ")),
|
|
4184
|
+
k("span", null, [
|
|
4185
|
+
x[e.localTreeProps.props.label] ? (a(), f(i, {
|
|
4167
4186
|
key: 0,
|
|
4168
4187
|
class: "button",
|
|
4169
4188
|
type: "text",
|
|
@@ -4174,7 +4193,7 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4174
4193
|
])]),
|
|
4175
4194
|
_: 1
|
|
4176
4195
|
}, 8, ["onClick"])) : B("", !0),
|
|
4177
|
-
e.canAppend(x, b) ? (a(),
|
|
4196
|
+
e.canAppend(x, b) ? (a(), f(i, {
|
|
4178
4197
|
key: 1,
|
|
4179
4198
|
class: "button",
|
|
4180
4199
|
type: "text",
|
|
@@ -4185,7 +4204,7 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4185
4204
|
])]),
|
|
4186
4205
|
_: 1
|
|
4187
4206
|
}, 8, ["onClick"])) : B("", !0),
|
|
4188
|
-
x.children === void 0 || x.children.length === 0 ? (a(),
|
|
4207
|
+
x.children === void 0 || x.children.length === 0 ? (a(), f(i, {
|
|
4189
4208
|
key: 2,
|
|
4190
4209
|
class: "button",
|
|
4191
4210
|
type: "text",
|
|
@@ -4212,17 +4231,17 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4212
4231
|
class: "tree-form"
|
|
4213
4232
|
}, {
|
|
4214
4233
|
default: r(() => [
|
|
4215
|
-
e.type ? (a(),
|
|
4234
|
+
e.type ? (a(), f(p, {
|
|
4216
4235
|
key: 0,
|
|
4217
4236
|
shadow: "never"
|
|
4218
4237
|
}, {
|
|
4219
4238
|
header: r(() => [
|
|
4220
|
-
|
|
4221
|
-
|
|
4239
|
+
k("div", Fs, [
|
|
4240
|
+
k("span", null, N(e.formType), 1)
|
|
4222
4241
|
])
|
|
4223
4242
|
]),
|
|
4224
4243
|
default: r(() => [
|
|
4225
|
-
(a(), h
|
|
4244
|
+
(a(), f(h, Q({
|
|
4226
4245
|
key: e.formkey,
|
|
4227
4246
|
modelValue: e.formData,
|
|
4228
4247
|
"onUpdate:modelValue": t[1] || (t[1] = (b) => e.formData = b)
|
|
@@ -4237,39 +4256,39 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4237
4256
|
_: 1
|
|
4238
4257
|
});
|
|
4239
4258
|
}
|
|
4240
|
-
const
|
|
4259
|
+
const at = /* @__PURE__ */ L(Ns, [["render", Gs]]), zs = {
|
|
4241
4260
|
__name: "tree",
|
|
4242
4261
|
setup(e) {
|
|
4243
4262
|
const t = (n, o) => {
|
|
4244
|
-
const l = Object.keys(
|
|
4263
|
+
const l = Object.keys(at.props);
|
|
4245
4264
|
return Object.keys(n).forEach((s) => {
|
|
4246
4265
|
l.indexOf(s) === -1 && delete n[s];
|
|
4247
4266
|
}), n;
|
|
4248
4267
|
};
|
|
4249
|
-
return (n, o) => (a(),
|
|
4268
|
+
return (n, o) => (a(), f(Ce, { "schema-handler": t }, {
|
|
4250
4269
|
default: r((l) => [
|
|
4251
|
-
u(
|
|
4270
|
+
u(at, le(we(l)), null, 16)
|
|
4252
4271
|
]),
|
|
4253
4272
|
_: 1
|
|
4254
4273
|
}));
|
|
4255
4274
|
}
|
|
4256
|
-
},
|
|
4275
|
+
}, Le = {
|
|
4257
4276
|
__name: "container",
|
|
4258
4277
|
setup(e) {
|
|
4259
|
-
const t =
|
|
4260
|
-
return
|
|
4278
|
+
const t = O(0);
|
|
4279
|
+
return An(() => {
|
|
4261
4280
|
t.value++;
|
|
4262
4281
|
}), (n, o) => {
|
|
4263
|
-
const l =
|
|
4264
|
-
return a(),
|
|
4282
|
+
const l = P("router-view");
|
|
4283
|
+
return a(), f(l);
|
|
4265
4284
|
};
|
|
4266
4285
|
}
|
|
4267
4286
|
}, Ks = (e) => u("div", null, [e.test]), Js = {
|
|
4268
|
-
card:
|
|
4287
|
+
card: Bn,
|
|
4269
4288
|
form: oe,
|
|
4270
|
-
table:
|
|
4289
|
+
table: ge,
|
|
4271
4290
|
test: Ks,
|
|
4272
|
-
row:
|
|
4291
|
+
row: Rn,
|
|
4273
4292
|
col: Tn
|
|
4274
4293
|
}, Ws = {
|
|
4275
4294
|
card: {
|
|
@@ -4304,9 +4323,9 @@ function Qs(e) {
|
|
|
4304
4323
|
type: n[s],
|
|
4305
4324
|
children: [l]
|
|
4306
4325
|
};
|
|
4307
|
-
return l.span = o,
|
|
4326
|
+
return l.span = o, We([l]);
|
|
4308
4327
|
}
|
|
4309
|
-
function
|
|
4328
|
+
function We(e) {
|
|
4310
4329
|
const t = {
|
|
4311
4330
|
type: "row",
|
|
4312
4331
|
props: {
|
|
@@ -4317,7 +4336,7 @@ function Je(e) {
|
|
|
4317
4336
|
};
|
|
4318
4337
|
return e.forEach((n) => {
|
|
4319
4338
|
let o = Object.assign({}, n);
|
|
4320
|
-
if (
|
|
4339
|
+
if (ve(o.props?.style)) {
|
|
4321
4340
|
let i = "";
|
|
4322
4341
|
Object.keys(o.props?.style).forEach((c) => {
|
|
4323
4342
|
i += c + ":" + o.props?.style[c] + ";";
|
|
@@ -4335,54 +4354,54 @@ function Je(e) {
|
|
|
4335
4354
|
});
|
|
4336
4355
|
return;
|
|
4337
4356
|
}
|
|
4338
|
-
o =
|
|
4357
|
+
o = G({
|
|
4339
4358
|
props: {}
|
|
4340
4359
|
}, Ws[o.type] || {}, o);
|
|
4341
|
-
const s =
|
|
4342
|
-
s.length && (o.children =
|
|
4360
|
+
const s = Ht(o.children);
|
|
4361
|
+
s.length && (o.children = We(s)), t.children.push({
|
|
4343
4362
|
type: "col",
|
|
4344
4363
|
props: l,
|
|
4345
4364
|
children: [o]
|
|
4346
4365
|
});
|
|
4347
4366
|
}), [t];
|
|
4348
4367
|
}
|
|
4349
|
-
function
|
|
4350
|
-
return wn(e) ? e :
|
|
4368
|
+
function Ht(e) {
|
|
4369
|
+
return wn(e) ? e : ve(e) ? [e] : [];
|
|
4351
4370
|
}
|
|
4352
|
-
let
|
|
4353
|
-
const
|
|
4354
|
-
const t = Js[e.type] ||
|
|
4371
|
+
let qe = {};
|
|
4372
|
+
const Ft = (e) => {
|
|
4373
|
+
const t = Js[e.type] || qe[e.type] || e.type;
|
|
4355
4374
|
return cn(t, e.props, {
|
|
4356
|
-
default: () =>
|
|
4375
|
+
default: () => Ht(e.children).map((n) => Ft(n))
|
|
4357
4376
|
});
|
|
4358
|
-
}, Xs = (e) => (Object.keys(
|
|
4377
|
+
}, Xs = (e) => (Object.keys(qe).length === 0 && (qe = rn().appContext.components), We(Object.values(e.schema)).map((n) => Ft(n))), Zs = {
|
|
4359
4378
|
__name: "custom",
|
|
4360
4379
|
setup(e) {
|
|
4361
|
-
const t =
|
|
4362
|
-
return (o, l) => (a(),
|
|
4380
|
+
const t = O([]), n = (o, l) => (t.value = un(o), o);
|
|
4381
|
+
return (o, l) => (a(), f(Ce, { "schema-handler": n }, {
|
|
4363
4382
|
default: r(() => [
|
|
4364
|
-
u(
|
|
4383
|
+
u(d(Xs), { schema: d(t) }, null, 8, ["schema"])
|
|
4365
4384
|
]),
|
|
4366
4385
|
_: 1
|
|
4367
4386
|
}));
|
|
4368
4387
|
}
|
|
4369
4388
|
};
|
|
4370
|
-
let
|
|
4371
|
-
function
|
|
4372
|
-
|
|
4389
|
+
let re = {};
|
|
4390
|
+
function Aa(e) {
|
|
4391
|
+
re = e;
|
|
4373
4392
|
}
|
|
4374
4393
|
const Ys = (e) => {
|
|
4375
4394
|
const t = (n) => {
|
|
4376
4395
|
const o = "./views/" + n + ".vue";
|
|
4377
|
-
return
|
|
4396
|
+
return re && re[o] && re[o].default ? re[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), Le);
|
|
4378
4397
|
};
|
|
4379
4398
|
if (e.path === "#")
|
|
4380
|
-
return
|
|
4399
|
+
return Le;
|
|
4381
4400
|
switch (e.page_type) {
|
|
4382
4401
|
case J.list:
|
|
4383
4402
|
return Vt;
|
|
4384
4403
|
case J.form:
|
|
4385
|
-
return
|
|
4404
|
+
return Ne;
|
|
4386
4405
|
case J.custom:
|
|
4387
4406
|
case J.localComp:
|
|
4388
4407
|
return t(e.view || "");
|
|
@@ -4391,7 +4410,7 @@ const Ys = (e) => {
|
|
|
4391
4410
|
case J.customSchema:
|
|
4392
4411
|
return Zs;
|
|
4393
4412
|
}
|
|
4394
|
-
return
|
|
4413
|
+
return Le;
|
|
4395
4414
|
};
|
|
4396
4415
|
function ei(e) {
|
|
4397
4416
|
let t = e.path;
|
|
@@ -4400,7 +4419,7 @@ function ei(e) {
|
|
|
4400
4419
|
function ti(e) {
|
|
4401
4420
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4402
4421
|
}
|
|
4403
|
-
const
|
|
4422
|
+
const Gt = (e) => {
|
|
4404
4423
|
const t = e.type !== F.page, n = {
|
|
4405
4424
|
path: ei(e),
|
|
4406
4425
|
name: e.id + "_" + ti(e) + "_" + e.path.replaceAll("/", "_"),
|
|
@@ -4416,7 +4435,7 @@ const Ft = (e) => {
|
|
|
4416
4435
|
keepAlive: !1,
|
|
4417
4436
|
role: e.role
|
|
4418
4437
|
},
|
|
4419
|
-
children: e.children ? e.children.map((o) =>
|
|
4438
|
+
children: e.children ? e.children.map((o) => Gt(o)) : []
|
|
4420
4439
|
};
|
|
4421
4440
|
if (e.page_type === J.entity) {
|
|
4422
4441
|
const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", i = [{
|
|
@@ -4435,7 +4454,7 @@ const Ft = (e) => {
|
|
|
4435
4454
|
}, {
|
|
4436
4455
|
path: l,
|
|
4437
4456
|
name: e.name + "新建" + e.id,
|
|
4438
|
-
component:
|
|
4457
|
+
component: Ne,
|
|
4439
4458
|
meta: {
|
|
4440
4459
|
id: e.id + 99999 + 1,
|
|
4441
4460
|
title: "新建",
|
|
@@ -4448,7 +4467,7 @@ const Ft = (e) => {
|
|
|
4448
4467
|
}, {
|
|
4449
4468
|
path: s,
|
|
4450
4469
|
name: e.name + "编辑" + e.id,
|
|
4451
|
-
component:
|
|
4470
|
+
component: Ne,
|
|
4452
4471
|
meta: {
|
|
4453
4472
|
id: e.id + 99999 + 2,
|
|
4454
4473
|
title: "编辑",
|
|
@@ -4486,22 +4505,22 @@ const Ft = (e) => {
|
|
|
4486
4505
|
routes: []
|
|
4487
4506
|
};
|
|
4488
4507
|
n.routes.forEach((l) => {
|
|
4489
|
-
o.routes.push(
|
|
4508
|
+
o.routes.push(Gt(l));
|
|
4490
4509
|
}), t.push(o);
|
|
4491
4510
|
}), t;
|
|
4492
|
-
}, oi = "root",
|
|
4493
|
-
const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...
|
|
4511
|
+
}, oi = "root", rt = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], li = (e) => {
|
|
4512
|
+
const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...rt(t), ...rt(n)];
|
|
4494
4513
|
return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
|
|
4495
|
-
},
|
|
4514
|
+
}, zt = (e) => {
|
|
4496
4515
|
const t = { ...e };
|
|
4497
|
-
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) =>
|
|
4498
|
-
}, si = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0,
|
|
4516
|
+
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => zt(n))), t;
|
|
4517
|
+
}, si = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, ke = (e = [], t) => t.includes(oi) ? e.map((n) => zt(n)) : e.reduce((n, o) => {
|
|
4499
4518
|
const l = li(o);
|
|
4500
4519
|
if (!si(l, t))
|
|
4501
4520
|
return n;
|
|
4502
4521
|
const s = { ...o };
|
|
4503
4522
|
if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
|
|
4504
|
-
const i =
|
|
4523
|
+
const i = ke(o.children, t);
|
|
4505
4524
|
i.length ? s.children = i : delete s.children;
|
|
4506
4525
|
}
|
|
4507
4526
|
return n.push(s), n;
|
|
@@ -4532,13 +4551,13 @@ const Ft = (e) => {
|
|
|
4532
4551
|
} catch {
|
|
4533
4552
|
return null;
|
|
4534
4553
|
}
|
|
4535
|
-
},
|
|
4554
|
+
}, Kt = (e) => {
|
|
4536
4555
|
const t = ri(e);
|
|
4537
4556
|
return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
|
|
4538
4557
|
};
|
|
4539
4558
|
function ci(e) {
|
|
4540
4559
|
e.beforeEach(async (t, n, o) => {
|
|
4541
|
-
if (
|
|
4560
|
+
if (qt().indexOf(t.path) !== -1) {
|
|
4542
4561
|
o();
|
|
4543
4562
|
return;
|
|
4544
4563
|
}
|
|
@@ -4546,58 +4565,58 @@ function ci(e) {
|
|
|
4546
4565
|
o();
|
|
4547
4566
|
return;
|
|
4548
4567
|
}
|
|
4549
|
-
const l = j(
|
|
4568
|
+
const l = j(A);
|
|
4550
4569
|
await l.info();
|
|
4551
|
-
const s =
|
|
4570
|
+
const s = Kt(fe());
|
|
4552
4571
|
if (l.rawCustomRouter.length) {
|
|
4553
|
-
const m =
|
|
4554
|
-
m.forEach((
|
|
4555
|
-
const
|
|
4556
|
-
b || x || e.addRoute(
|
|
4572
|
+
const m = ke(l.rawCustomRouter, s);
|
|
4573
|
+
m.forEach((h) => {
|
|
4574
|
+
const y = typeof h.name == "string" ? h.name : void 0, b = y ? e.hasRoute(y) : !1, x = e.getRoutes().some((E) => E.path === h.path);
|
|
4575
|
+
b || x || e.addRoute(h);
|
|
4557
4576
|
}), l.setCustomRoutes(m);
|
|
4558
4577
|
}
|
|
4559
|
-
const i = await l.loadRemoteRoutes(),
|
|
4560
|
-
const
|
|
4578
|
+
const i = await l.loadRemoteRoutes(), p = ni(i).map((m) => {
|
|
4579
|
+
const h = ke(m.routes, s);
|
|
4561
4580
|
return {
|
|
4562
4581
|
...m,
|
|
4563
|
-
routes:
|
|
4582
|
+
routes: h
|
|
4564
4583
|
};
|
|
4565
4584
|
}).filter((m) => m.routes.length > 0);
|
|
4566
|
-
|
|
4567
|
-
m.routes.forEach((
|
|
4585
|
+
p.forEach((m) => {
|
|
4586
|
+
m.routes.forEach((h) => {
|
|
4568
4587
|
e.addRoute({
|
|
4569
4588
|
path: "/",
|
|
4570
|
-
component:
|
|
4571
|
-
children: [
|
|
4589
|
+
component: Nt,
|
|
4590
|
+
children: [h]
|
|
4572
4591
|
});
|
|
4573
4592
|
});
|
|
4574
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(
|
|
4593
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(p), await e.replace(t), o();
|
|
4575
4594
|
});
|
|
4576
4595
|
}
|
|
4577
4596
|
function ui(e) {
|
|
4578
4597
|
e.beforeEach(async (t, n, o) => {
|
|
4579
|
-
const s = [
|
|
4598
|
+
const s = [q(A).title || ""], i = t.matched.length;
|
|
4580
4599
|
for (let c = i; c > i - 3; c--) {
|
|
4581
|
-
const
|
|
4582
|
-
|
|
4600
|
+
const p = t.matched[c - 1];
|
|
4601
|
+
p?.meta?.title && s.push(p.meta.title + "");
|
|
4583
4602
|
}
|
|
4584
4603
|
s.length > 1 && (document.title = s.reverse().join("-")), o();
|
|
4585
4604
|
}), e.afterEach(async (t, n, o) => {
|
|
4586
|
-
const l = X(
|
|
4605
|
+
const l = X(A);
|
|
4587
4606
|
Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
|
|
4588
4607
|
});
|
|
4589
4608
|
}
|
|
4590
|
-
function
|
|
4591
|
-
|
|
4609
|
+
function pi(e) {
|
|
4610
|
+
Rs(e), Ss(e), ci(e), ui(e);
|
|
4592
4611
|
}
|
|
4593
|
-
|
|
4594
|
-
function
|
|
4595
|
-
return j(
|
|
4612
|
+
pi(W);
|
|
4613
|
+
function di() {
|
|
4614
|
+
return j(A).token;
|
|
4596
4615
|
}
|
|
4597
4616
|
function mi() {
|
|
4598
|
-
return j(
|
|
4617
|
+
return j(A).expired;
|
|
4599
4618
|
}
|
|
4600
|
-
function
|
|
4619
|
+
function ct(e) {
|
|
4601
4620
|
Co({
|
|
4602
4621
|
message: e,
|
|
4603
4622
|
type: "error",
|
|
@@ -4608,7 +4627,7 @@ function rt(e) {
|
|
|
4608
4627
|
const fi = {
|
|
4609
4628
|
onFulfilled: function(e) {
|
|
4610
4629
|
e.headers = e.headers || {};
|
|
4611
|
-
const t =
|
|
4630
|
+
const t = di();
|
|
4612
4631
|
return t && (e.headers["X-Token"] = t), W.currentRoute.value.meta?.path && (e.headers["X-Path"] = W.currentRoute.value.meta.path), e;
|
|
4613
4632
|
}
|
|
4614
4633
|
}, hi = {
|
|
@@ -4618,24 +4637,24 @@ const fi = {
|
|
|
4618
4637
|
if (e.data.code === 401) {
|
|
4619
4638
|
if (mi())
|
|
4620
4639
|
return;
|
|
4621
|
-
j(
|
|
4640
|
+
j(A).SetExpired(), st.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
4622
4641
|
showClose: !1,
|
|
4623
4642
|
confirmButtonText: "重新登录",
|
|
4624
4643
|
showCancelButton: !0,
|
|
4625
4644
|
cancelButtonText: "取消",
|
|
4626
4645
|
callback: (l) => {
|
|
4627
|
-
l === "confirm" && (
|
|
4646
|
+
l === "confirm" && (Ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(A).SetExpired();
|
|
4628
4647
|
}
|
|
4629
4648
|
});
|
|
4630
4649
|
return;
|
|
4631
4650
|
} else
|
|
4632
|
-
|
|
4651
|
+
ct(o);
|
|
4633
4652
|
return Promise.reject(o);
|
|
4634
4653
|
}
|
|
4635
4654
|
let n = e.data?.data?._message_box;
|
|
4636
|
-
return n !== void 0 && (
|
|
4655
|
+
return n !== void 0 && (yt(n) && (n = {
|
|
4637
4656
|
message: e.data?.data?._message_box
|
|
4638
|
-
}),
|
|
4657
|
+
}), st({
|
|
4639
4658
|
title: "提示",
|
|
4640
4659
|
type: "success",
|
|
4641
4660
|
grouping: !0,
|
|
@@ -4643,20 +4662,20 @@ const fi = {
|
|
|
4643
4662
|
})), e.data;
|
|
4644
4663
|
},
|
|
4645
4664
|
onRejected(e) {
|
|
4646
|
-
return Ve.isCancel(e) ? Promise.reject("") : (
|
|
4665
|
+
return Ve.isCancel(e) ? Promise.reject("") : (ct(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
|
|
4647
4666
|
}
|
|
4648
4667
|
}, bi = [
|
|
4649
4668
|
{
|
|
4650
|
-
request:
|
|
4651
|
-
response:
|
|
4669
|
+
request: Ro,
|
|
4670
|
+
response: Bo
|
|
4652
4671
|
},
|
|
4653
4672
|
{
|
|
4654
4673
|
request: fi,
|
|
4655
4674
|
response: hi
|
|
4656
4675
|
}
|
|
4657
4676
|
];
|
|
4658
|
-
function
|
|
4659
|
-
const t =
|
|
4677
|
+
function Qe(e = {}) {
|
|
4678
|
+
const t = Ie.axios || {}, n = G(t, e || {}), o = Ve.create({
|
|
4660
4679
|
...n
|
|
4661
4680
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
4662
4681
|
});
|
|
@@ -4664,7 +4683,7 @@ function We(e = {}) {
|
|
|
4664
4683
|
o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
|
|
4665
4684
|
}), o;
|
|
4666
4685
|
}
|
|
4667
|
-
const yi =
|
|
4686
|
+
const yi = Qe(), _i = {
|
|
4668
4687
|
beforeMount(e, t) {
|
|
4669
4688
|
e.clickOutsideEvent = function(n) {
|
|
4670
4689
|
e === n.target || e.contains(n.target) || t.value(n, e);
|
|
@@ -4673,17 +4692,17 @@ const yi = We(), _i = {
|
|
|
4673
4692
|
unmounted(e) {
|
|
4674
4693
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
4675
4694
|
}
|
|
4676
|
-
},
|
|
4695
|
+
}, ee = oo(), vi = {
|
|
4677
4696
|
mounted: (e, t) => {
|
|
4678
4697
|
e !== null && (t.value, e.oncontextmenu = (n) => {
|
|
4679
|
-
n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value &&
|
|
4698
|
+
n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && ee.emit("right-click", { event: n, data: t.value });
|
|
4680
4699
|
});
|
|
4681
4700
|
}
|
|
4682
4701
|
}, gi = {
|
|
4683
4702
|
mounted(e) {
|
|
4684
4703
|
}
|
|
4685
4704
|
};
|
|
4686
|
-
function
|
|
4705
|
+
function ut(e, t) {
|
|
4687
4706
|
let n = e[`offset${t}`], o = e.offsetParent;
|
|
4688
4707
|
for (; o; )
|
|
4689
4708
|
n += o[`offset${t}`], o = o.offsetParent;
|
|
@@ -4695,24 +4714,24 @@ const ki = {
|
|
|
4695
4714
|
return;
|
|
4696
4715
|
let n = e;
|
|
4697
4716
|
if (t.value.parent)
|
|
4698
|
-
for (let
|
|
4717
|
+
for (let p = 0; p < t.value.parent; p++)
|
|
4699
4718
|
n.parentElement && (n = n.parentElement);
|
|
4700
4719
|
n.classList.add("devtool-hover");
|
|
4701
4720
|
const o = document.createElement("i");
|
|
4702
4721
|
o.className = "devtool-item-wrapper", n.onmouseover = () => {
|
|
4703
|
-
o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top =
|
|
4722
|
+
o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = ut(n, "Top") - 15 + "px", o.style.left = ut(n, "Left") - 15 + "px";
|
|
4704
4723
|
};
|
|
4705
4724
|
const l = document.createElement("span");
|
|
4706
4725
|
l.className = "dev-action-edit", l.title = "编辑";
|
|
4707
4726
|
const s = document.createElement("i");
|
|
4708
|
-
s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (
|
|
4709
|
-
|
|
4727
|
+
s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (p) => {
|
|
4728
|
+
ee.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
|
|
4710
4729
|
}, o.appendChild(l);
|
|
4711
4730
|
const i = document.createElement("span");
|
|
4712
4731
|
i.className = "dev-action-del", i.title = "删除";
|
|
4713
4732
|
const c = document.createElement("i");
|
|
4714
|
-
c.className = "iconfont ra-cut", i.appendChild(c), i.onclick = (
|
|
4715
|
-
|
|
4733
|
+
c.className = "iconfont ra-cut", i.appendChild(c), i.onclick = (p) => {
|
|
4734
|
+
ee.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
4716
4735
|
}, o.appendChild(i), n.insertBefore(o, n.firstChild);
|
|
4717
4736
|
}
|
|
4718
4737
|
}, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4722,22 +4741,22 @@ const ki = {
|
|
|
4722
4741
|
resize: gi,
|
|
4723
4742
|
rightClick: vi
|
|
4724
4743
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4725
|
-
let
|
|
4744
|
+
let _e;
|
|
4726
4745
|
const Si = (e) => {
|
|
4727
4746
|
const t = typeof e.name == "string" ? e.name : void 0;
|
|
4728
4747
|
return t && W.hasRoute(t) ? !0 : W.getRoutes().some((n) => n.path === e.path);
|
|
4729
4748
|
};
|
|
4730
4749
|
function La(e) {
|
|
4731
|
-
return e ?
|
|
4750
|
+
return e ? Qe(G(Ie.axios, e)) : _e;
|
|
4732
4751
|
}
|
|
4733
4752
|
function Ma(e) {
|
|
4734
|
-
const t =
|
|
4753
|
+
const t = G(Ie, e), n = pn(go), o = Bi(t), l = t.plugins || [];
|
|
4735
4754
|
l.unshift(o), l.forEach((c) => {
|
|
4736
|
-
|
|
4737
|
-
}), t?.mock && Io(),
|
|
4738
|
-
const s = X(
|
|
4739
|
-
co(
|
|
4740
|
-
"X-Token":
|
|
4755
|
+
Ri(n, c);
|
|
4756
|
+
}), t?.mock && Io(), _e = Qe(t.axios), bo(n);
|
|
4757
|
+
const s = X(A), i = q(A);
|
|
4758
|
+
co(_e), i.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = _e, n.config.globalProperties.$router = W, window.App = n, window.OmsOptions = t, to(() => ({
|
|
4759
|
+
"X-Token": fe()
|
|
4741
4760
|
})), W.isReady().then(() => n.mount("#app"));
|
|
4742
4761
|
}
|
|
4743
4762
|
function xi(e, t = {}) {
|
|
@@ -4748,12 +4767,12 @@ function xi(e, t = {}) {
|
|
|
4748
4767
|
function Ei(e = []) {
|
|
4749
4768
|
if (!e.length)
|
|
4750
4769
|
return;
|
|
4751
|
-
const t = j(
|
|
4770
|
+
const t = j(A);
|
|
4752
4771
|
t.addRawCustomRoutes(e);
|
|
4753
|
-
const n =
|
|
4772
|
+
const n = Kt(fe());
|
|
4754
4773
|
if (!n.length)
|
|
4755
4774
|
return;
|
|
4756
|
-
const o =
|
|
4775
|
+
const o = ke(t.rawCustomRouter, n);
|
|
4757
4776
|
o.forEach((l) => {
|
|
4758
4777
|
Si(l) || W.addRoute(l);
|
|
4759
4778
|
}), t.setCustomRoutes(o);
|
|
@@ -4778,50 +4797,50 @@ function Ti(e = {}) {
|
|
|
4778
4797
|
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
|
|
4779
4798
|
});
|
|
4780
4799
|
}
|
|
4781
|
-
function
|
|
4800
|
+
function Ri(e, t) {
|
|
4782
4801
|
xi(e, t.components || {}), Ei(t.routes || []), Ii(e, t.use || []), Ci(e, t.directives || {}), Ti(t.storeModules || {}), At(t.mockApis || []);
|
|
4783
4802
|
}
|
|
4784
|
-
function
|
|
4803
|
+
function Bi(e) {
|
|
4785
4804
|
return {
|
|
4786
4805
|
components: { VIcon: no },
|
|
4787
4806
|
directives: wi,
|
|
4788
4807
|
use: [
|
|
4789
4808
|
W,
|
|
4790
|
-
[In, { locale:
|
|
4809
|
+
[In, { locale: _t, ...e.settings?.ElementPlus }]
|
|
4791
4810
|
]
|
|
4792
4811
|
};
|
|
4793
4812
|
}
|
|
4794
4813
|
export {
|
|
4795
4814
|
Ut as BaseSso,
|
|
4796
|
-
|
|
4797
|
-
|
|
4815
|
+
Le as Container,
|
|
4816
|
+
Pa as DingTalk,
|
|
4798
4817
|
$a as Github,
|
|
4799
|
-
|
|
4818
|
+
Nt as Layout,
|
|
4800
4819
|
F as MenuType,
|
|
4801
4820
|
Co as Message,
|
|
4802
|
-
|
|
4821
|
+
st as MessageBox,
|
|
4803
4822
|
J as PageType,
|
|
4804
4823
|
Cs as allSso,
|
|
4805
4824
|
fo as appState,
|
|
4806
4825
|
ho as builderSchemaState,
|
|
4807
4826
|
Ma as createAdmin,
|
|
4808
|
-
|
|
4827
|
+
ee as eventBus,
|
|
4809
4828
|
Oo as getCmp,
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4829
|
+
Oe as getHttp,
|
|
4830
|
+
_e as http,
|
|
4831
|
+
Qe as instance,
|
|
4832
|
+
A as pinia,
|
|
4833
|
+
Aa as regViews,
|
|
4815
4834
|
Oa as setCmp,
|
|
4816
4835
|
co as setHttp,
|
|
4817
4836
|
po as settings,
|
|
4818
4837
|
bo as setupStore,
|
|
4819
4838
|
ni as transRemoteModules,
|
|
4820
4839
|
X as useAppStore,
|
|
4821
|
-
|
|
4840
|
+
Ba as useBuilderSchemaStore,
|
|
4822
4841
|
La as useHttp,
|
|
4823
|
-
|
|
4842
|
+
q as useSettingsStore,
|
|
4824
4843
|
j as useUserStore,
|
|
4825
|
-
|
|
4844
|
+
nt as userState
|
|
4826
4845
|
};
|
|
4827
4846
|
//# sourceMappingURL=index.es.js.map
|