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