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