@okiss/oms 0.0.81 → 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 +1339 -1169
- 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(A);
|
|
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
|
-
function
|
|
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
324
|
function Pt() {
|
|
352
|
-
const e =
|
|
353
|
-
const
|
|
354
|
-
e.themeMode !==
|
|
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 Pt() {
|
|
|
376
349
|
}
|
|
377
350
|
};
|
|
378
351
|
}
|
|
379
|
-
const
|
|
352
|
+
const ko = /* @__PURE__ */ z({
|
|
380
353
|
__name: "App",
|
|
381
354
|
setup(e) {
|
|
382
|
-
return Pt(),
|
|
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 &&
|
|
391
|
-
const o =
|
|
392
|
-
return
|
|
363
|
+
}), window?.OmsOptions?.form?.vsPath && nn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
|
|
364
|
+
const o = A("router-view");
|
|
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
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
|
-
At(
|
|
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 = gt, To = Ve.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__ */ z({
|
|
|
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: {
|
|
@@ -709,26 +682,26 @@ const jo = /* @__PURE__ */ L(Ao, [["render", Do], ["__scopeId", "data-v-fa74804e
|
|
|
709
682
|
}
|
|
710
683
|
}
|
|
711
684
|
};
|
|
712
|
-
function
|
|
713
|
-
const
|
|
714
|
-
return
|
|
685
|
+
function Uo(e, t, n, o, l, s) {
|
|
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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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(Vo, [["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,
|
|
@@ -1443,15 +1416,15 @@ const je = jt, ol = {
|
|
|
1443
1416
|
}
|
|
1444
1417
|
}
|
|
1445
1418
|
]
|
|
1446
|
-
},
|
|
1419
|
+
}, Ae = {
|
|
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: {
|
|
@@ -2111,7 +2084,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
|
|
|
2111
2084
|
label: "提示"
|
|
2112
2085
|
}
|
|
2113
2086
|
]
|
|
2114
|
-
},
|
|
2087
|
+
}, gl = {
|
|
2115
2088
|
type: "tpl",
|
|
2116
2089
|
name: "模板",
|
|
2117
2090
|
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
|
-
}, gl = {
|
|
2146
|
-
span: pl,
|
|
2147
|
-
enum: dl,
|
|
2148
|
-
html: ml,
|
|
2149
|
-
icon: fl,
|
|
2150
|
-
image: hl,
|
|
2151
|
-
json: bl,
|
|
2152
|
-
link: yl,
|
|
2153
|
-
rich: _l,
|
|
2154
|
-
tpl: vl
|
|
2155
2118
|
}, kl = {
|
|
2119
|
+
span: dl,
|
|
2120
|
+
enum: fl,
|
|
2121
|
+
html: ml,
|
|
2122
|
+
icon: hl,
|
|
2123
|
+
image: bl,
|
|
2124
|
+
json: yl,
|
|
2125
|
+
link: _l,
|
|
2126
|
+
rich: vl,
|
|
2127
|
+
tpl: gl
|
|
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
|
-
(
|
|
2611
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.headers), (k, U) => (i(), h(a, {
|
|
2639
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
|
-
(
|
|
2639
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
|
|
2667
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
|
-
(
|
|
2667
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
|
|
2695
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
|
-
(
|
|
2706
|
+
(i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
|
|
2734
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(
|
|
2747
|
+
u(f),
|
|
2775
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
|
-
(
|
|
2777
|
+
default: c(() => [
|
|
2778
|
+
(i(!0), b(O, null, j(s.types, (k, U) => (i(), h(E, {
|
|
2806
2779
|
key: U,
|
|
2807
|
-
label:
|
|
2808
|
-
value:
|
|
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 = y.value.envColor?.[
|
|
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
2876
|
onClose: U
|
|
2904
|
-
}), y.value.envColor?.[
|
|
2905
|
-
elRef:
|
|
2906
|
-
waterMark:
|
|
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
2896
|
async function U() {
|
|
2924
|
-
n.updateSettings({ closeNavNotice: !0 }),
|
|
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: {
|
|
@@ -3177,22 +3150,22 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
|
|
|
3177
3150
|
},
|
|
3178
3151
|
setup(e) {
|
|
3179
3152
|
return (t, n) => {
|
|
3180
|
-
const o =
|
|
3181
|
-
return
|
|
3153
|
+
const o = A("VIcon");
|
|
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,41 +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
|
-
return t ? typeof t == "string" ? this.$router.resolve(t).fullPath : t.name ? this.$router.resolve({ name: t.name, params: t.params, query: t.query }).fullPath : t.path ? this.$router.resolve({ path: t.path, query: t.query }).fullPath : "/" : "/";
|
|
3225
3194
|
}
|
|
3226
3195
|
}
|
|
3227
|
-
},
|
|
3196
|
+
}, Yl = {
|
|
3228
3197
|
key: 0,
|
|
3229
3198
|
class: "menu-wrapper"
|
|
3230
3199
|
};
|
|
3231
|
-
function
|
|
3232
|
-
const
|
|
3233
|
-
return n.item.hidden !== !1 ? (
|
|
3234
|
-
n.item.meta && n.item.meta.menuType === 2 ? (
|
|
3235
|
-
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, {
|
|
3236
3205
|
key: 0,
|
|
3237
3206
|
to: n.to,
|
|
3238
3207
|
"new-tab": n.item.meta.newTab
|
|
3239
3208
|
}, {
|
|
3240
|
-
default:
|
|
3241
|
-
u(
|
|
3209
|
+
default: c(() => [
|
|
3210
|
+
u(r, {
|
|
3242
3211
|
index: n.to,
|
|
3243
|
-
class:
|
|
3212
|
+
class: Q({ "submenu-title-noDropdown": !n.isNest }),
|
|
3244
3213
|
onClick: s.itemClick
|
|
3245
3214
|
}, {
|
|
3246
|
-
default:
|
|
3247
|
-
u(
|
|
3215
|
+
default: c(() => [
|
|
3216
|
+
u(a, {
|
|
3248
3217
|
meta: n.item.meta
|
|
3249
3218
|
}, null, 8, ["meta"])
|
|
3250
3219
|
]),
|
|
@@ -3253,30 +3222,30 @@ function Yl(e, t, n, o, l, s) {
|
|
|
3253
3222
|
]),
|
|
3254
3223
|
_: 1
|
|
3255
3224
|
}, 8, ["to", "new-tab"])) : B("", !0)
|
|
3256
|
-
], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (
|
|
3225
|
+
], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(f, {
|
|
3257
3226
|
key: 1,
|
|
3258
3227
|
ref: "subMenu",
|
|
3259
3228
|
index: n.to,
|
|
3260
|
-
class:
|
|
3229
|
+
class: Q({ "submenu-title-noDropdown": !n.isNest })
|
|
3261
3230
|
}, {
|
|
3262
|
-
title:
|
|
3263
|
-
n.item.redirect && n.item.redirect !== "#" ? (
|
|
3231
|
+
title: c(() => [
|
|
3232
|
+
n.item.redirect && n.item.redirect !== "#" ? (i(), h(p, {
|
|
3264
3233
|
key: 0,
|
|
3265
3234
|
to: n.to
|
|
3266
3235
|
}, {
|
|
3267
|
-
default:
|
|
3268
|
-
u(
|
|
3236
|
+
default: c(() => [
|
|
3237
|
+
u(a, {
|
|
3269
3238
|
meta: n.item.meta
|
|
3270
3239
|
}, null, 8, ["meta"])
|
|
3271
3240
|
]),
|
|
3272
3241
|
_: 1
|
|
3273
|
-
}, 8, ["to"])) : (
|
|
3242
|
+
}, 8, ["to"])) : (i(), h(a, {
|
|
3274
3243
|
key: 1,
|
|
3275
3244
|
meta: n.item.meta
|
|
3276
3245
|
}, null, 8, ["meta"]))
|
|
3277
3246
|
]),
|
|
3278
|
-
default:
|
|
3279
|
-
(
|
|
3247
|
+
default: c(() => [
|
|
3248
|
+
(i(!0), b(O, null, j(n.item.children, (y) => (i(), h(d, {
|
|
3280
3249
|
key: y.path,
|
|
3281
3250
|
"is-nest": !0,
|
|
3282
3251
|
item: y,
|
|
@@ -3288,70 +3257,69 @@ function Yl(e, t, n, o, l, s) {
|
|
|
3288
3257
|
}, 8, ["index", "class"])) : B("", !0)
|
|
3289
3258
|
])) : B("", !0);
|
|
3290
3259
|
}
|
|
3291
|
-
const
|
|
3260
|
+
const ts = /* @__PURE__ */ P(Zl, [["render", es]]), ns = /* @__PURE__ */ z({
|
|
3292
3261
|
__name: "SearchMenu",
|
|
3293
3262
|
setup(e) {
|
|
3294
|
-
const t =
|
|
3295
|
-
function n(
|
|
3296
|
-
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));
|
|
3297
3266
|
}
|
|
3298
|
-
const o =
|
|
3299
|
-
let
|
|
3300
|
-
return l.value.forEach((
|
|
3301
|
-
|
|
3302
|
-
}), 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);
|
|
3303
3272
|
});
|
|
3304
|
-
function
|
|
3305
|
-
let
|
|
3306
|
-
if (
|
|
3307
|
-
for (let
|
|
3308
|
-
if (
|
|
3309
|
-
|
|
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];
|
|
3310
3279
|
break;
|
|
3311
3280
|
}
|
|
3312
3281
|
}
|
|
3313
|
-
|
|
3314
|
-
return typeof y == "string" ? s.resolve(y).fullPath : y && y.name ? s.resolve({ name: y.name, params: y.params, query: y.query }).fullPath : y && y.path ? s.resolve({ path: y.path, query: y.query }).fullPath : "";
|
|
3282
|
+
return s.resolve(f.redirect ? f.redirect : f).fullPath;
|
|
3315
3283
|
}
|
|
3316
|
-
function p(
|
|
3317
|
-
|
|
3284
|
+
function p(d) {
|
|
3285
|
+
s.push(d), o.value = "";
|
|
3318
3286
|
}
|
|
3319
|
-
return (
|
|
3320
|
-
const y =
|
|
3321
|
-
return
|
|
3322
|
-
modelValue:
|
|
3323
|
-
"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),
|
|
3324
3292
|
filterable: "",
|
|
3325
3293
|
placeholder: "搜索菜单...",
|
|
3326
3294
|
class: "search-menu",
|
|
3327
3295
|
onChange: p
|
|
3328
3296
|
}, {
|
|
3329
|
-
default:
|
|
3330
|
-
(
|
|
3297
|
+
default: c(() => [
|
|
3298
|
+
(i(!0), b(O, null, j(m(a), (E) => (i(), b(O, {
|
|
3331
3299
|
key: E.path
|
|
3332
3300
|
}, [
|
|
3333
|
-
E.children !== void 0 ? (
|
|
3334
|
-
E.meta.menuType !== 0 ? (
|
|
3301
|
+
E.children !== void 0 ? (i(), b(O, { key: 0 }, [
|
|
3302
|
+
E.meta.menuType !== 0 ? (i(), h(_, {
|
|
3335
3303
|
key: E.path + "-",
|
|
3336
3304
|
label: E.meta.title
|
|
3337
3305
|
}, {
|
|
3338
|
-
default:
|
|
3339
|
-
(
|
|
3340
|
-
key:
|
|
3306
|
+
default: c(() => [
|
|
3307
|
+
(i(!0), b(O, null, j(E.children, (S, g) => (i(), b(O, {
|
|
3308
|
+
key: S.path
|
|
3341
3309
|
}, [
|
|
3342
|
-
E.meta.menuType !== 0 ? (
|
|
3310
|
+
E.meta.menuType !== 0 ? (i(), h(y, {
|
|
3343
3311
|
key: 0,
|
|
3344
|
-
label: (
|
|
3345
|
-
value:
|
|
3312
|
+
label: (g === E.children.length - 1 ? "└─" : "├─") + S.meta.title,
|
|
3313
|
+
value: r(S)
|
|
3346
3314
|
}, null, 8, ["label", "value"])) : B("", !0)
|
|
3347
3315
|
], 64))), 128))
|
|
3348
3316
|
]),
|
|
3349
3317
|
_: 2
|
|
3350
3318
|
}, 1032, ["label"])) : B("", !0)
|
|
3351
|
-
], 64)) : (
|
|
3319
|
+
], 64)) : (i(), h(y, {
|
|
3352
3320
|
key: 1,
|
|
3353
3321
|
label: "" + E.meta.title,
|
|
3354
|
-
value:
|
|
3322
|
+
value: r(E)
|
|
3355
3323
|
}, null, 8, ["label", "value"]))
|
|
3356
3324
|
], 64))), 128))
|
|
3357
3325
|
]),
|
|
@@ -3359,83 +3327,69 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ z({
|
|
|
3359
3327
|
}, 8, ["modelValue"]);
|
|
3360
3328
|
};
|
|
3361
3329
|
}
|
|
3362
|
-
}),
|
|
3363
|
-
var
|
|
3364
|
-
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({
|
|
3365
3333
|
__name: "index",
|
|
3366
3334
|
setup(e) {
|
|
3367
|
-
const t =
|
|
3368
|
-
let
|
|
3369
|
-
return
|
|
3370
|
-
|
|
3371
|
-
}),
|
|
3372
|
-
{ 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 },
|
|
3373
3341
|
...s.value
|
|
3374
3342
|
]);
|
|
3375
|
-
}),
|
|
3376
|
-
const
|
|
3377
|
-
for (let
|
|
3378
|
-
const
|
|
3379
|
-
if (
|
|
3380
|
-
return E(),
|
|
3343
|
+
}), f = w(() => {
|
|
3344
|
+
const g = p.matched;
|
|
3345
|
+
for (let I = g.length - 1; I >= 0; I--) {
|
|
3346
|
+
const F = g[I];
|
|
3347
|
+
if (F.meta.menuType === G.menu)
|
|
3348
|
+
return E(), r.resolve(F.redirect ? F.redirect : F).fullPath;
|
|
3381
3349
|
}
|
|
3382
3350
|
return "";
|
|
3383
|
-
}), y = w(() => o.sidebarLogo),
|
|
3351
|
+
}), y = w(() => o.sidebarLogo), _ = w(() => ({
|
|
3384
3352
|
menuBg: "#304156",
|
|
3385
3353
|
menuText: "#bfcbd9",
|
|
3386
3354
|
menuActiveText: "#409EFF"
|
|
3387
|
-
})),
|
|
3388
|
-
|
|
3355
|
+
})), C = w(() => !l.value.opened);
|
|
3356
|
+
xe(() => E());
|
|
3389
3357
|
function E() {
|
|
3390
|
-
|
|
3391
|
-
}
|
|
3392
|
-
function T(R) {
|
|
3393
|
-
const _ = R?.redirect || R;
|
|
3394
|
-
if (!_)
|
|
3395
|
-
return "";
|
|
3396
|
-
if (typeof _ == "string")
|
|
3397
|
-
return c.resolve(_).fullPath;
|
|
3398
|
-
if (typeof _ == "object") {
|
|
3399
|
-
if (_.name)
|
|
3400
|
-
return c.resolve({ name: _.name, params: _.params, query: _.query }).fullPath;
|
|
3401
|
-
if (_.path)
|
|
3402
|
-
return c.resolve({ path: _.path, query: _.query }).fullPath;
|
|
3403
|
-
}
|
|
3404
|
-
return "";
|
|
3358
|
+
yt("is-active", 200);
|
|
3405
3359
|
}
|
|
3406
|
-
function
|
|
3407
|
-
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));
|
|
3408
3362
|
}
|
|
3409
|
-
return (
|
|
3410
|
-
const
|
|
3411
|
-
return
|
|
3412
|
-
class:
|
|
3363
|
+
return (g, I) => {
|
|
3364
|
+
const F = Qn, le = Wn;
|
|
3365
|
+
return i(), b("div", {
|
|
3366
|
+
class: Q({ "has-logo": m(y) })
|
|
3413
3367
|
}, [
|
|
3414
|
-
|
|
3368
|
+
m(y) ? (i(), h(Gl, {
|
|
3415
3369
|
key: 0,
|
|
3416
|
-
collapse:
|
|
3370
|
+
collapse: m(C)
|
|
3417
3371
|
}, null, 8, ["collapse"])) : B("", !0),
|
|
3418
|
-
u(
|
|
3419
|
-
default:
|
|
3420
|
-
|
|
3421
|
-
u(
|
|
3422
|
-
"default-active":
|
|
3423
|
-
collapse:
|
|
3424
|
-
"background-color":
|
|
3425
|
-
"text-color":
|
|
3372
|
+
u(le, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3373
|
+
default: c(() => [
|
|
3374
|
+
m(C) ? B("", !0) : (i(), h(os, { key: 0 })),
|
|
3375
|
+
u(F, {
|
|
3376
|
+
"default-active": m(f),
|
|
3377
|
+
collapse: m(C),
|
|
3378
|
+
"background-color": m(_).menuBg,
|
|
3379
|
+
"text-color": m(_).menuText,
|
|
3426
3380
|
"unique-opened": !1,
|
|
3427
|
-
"active-text-color":
|
|
3381
|
+
"active-text-color": m(_).menuActiveText,
|
|
3428
3382
|
"collapse-transition": !1,
|
|
3429
3383
|
mode: "vertical"
|
|
3430
3384
|
}, {
|
|
3431
|
-
default:
|
|
3432
|
-
(
|
|
3433
|
-
key:
|
|
3385
|
+
default: c(() => [
|
|
3386
|
+
(i(!0), b(O, null, j(m(d), (k, U) => (i(), b(O, {
|
|
3387
|
+
key: U + "-module"
|
|
3434
3388
|
}, [
|
|
3435
|
-
(
|
|
3436
|
-
key:
|
|
3437
|
-
item:
|
|
3438
|
-
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
|
|
3439
3393
|
}, null, 8, ["item", "to"]))), 128))
|
|
3440
3394
|
], 64))), 128))
|
|
3441
3395
|
]),
|
|
@@ -3447,149 +3401,134 @@ const os = /* @__PURE__ */ z({
|
|
|
3447
3401
|
], 2);
|
|
3448
3402
|
};
|
|
3449
3403
|
}
|
|
3450
|
-
}),
|
|
3404
|
+
}), ss = /* @__PURE__ */ P(ls, [["__scopeId", "data-v-5b1cbaf5"]]), as = { class: "app-main" }, is = {
|
|
3451
3405
|
__name: "AppMain",
|
|
3452
3406
|
setup(e) {
|
|
3453
|
-
const t =
|
|
3454
|
-
return
|
|
3407
|
+
const t = Y(), n = [], o = $(0);
|
|
3408
|
+
return Pn(() => {
|
|
3455
3409
|
t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
|
|
3456
3410
|
}), (l, s) => {
|
|
3457
|
-
const
|
|
3458
|
-
return
|
|
3459
|
-
(
|
|
3460
|
-
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)
|
|
3461
3415
|
})),
|
|
3462
|
-
u(
|
|
3416
|
+
u(r, { bottom: 50 })
|
|
3463
3417
|
]);
|
|
3464
3418
|
};
|
|
3465
3419
|
}
|
|
3466
|
-
},
|
|
3420
|
+
}, rs = /* @__PURE__ */ P(is, [["__scopeId", "data-v-ca0f0d98"]]), cs = { class: "main-container" }, us = 992, ps = {
|
|
3467
3421
|
__name: "index",
|
|
3468
3422
|
setup(e) {
|
|
3469
|
-
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(() => ({
|
|
3470
3424
|
hideSidebar: !l.value.opened,
|
|
3471
3425
|
openSidebar: l.value.opened,
|
|
3472
3426
|
withoutAnimation: l.value.withoutAnimation,
|
|
3473
3427
|
mobile: s.value === "mobile"
|
|
3474
|
-
})), p = () => t.getBoundingClientRect().width - 1 <
|
|
3475
|
-
io(window, "resize", () =>
|
|
3476
|
-
const
|
|
3428
|
+
})), p = () => t.getBoundingClientRect().width - 1 < us;
|
|
3429
|
+
io(window, "resize", () => f());
|
|
3430
|
+
const d = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
|
|
3477
3431
|
if (!document.hidden) {
|
|
3478
3432
|
const y = p();
|
|
3479
3433
|
n.toggleDevice(y ? "mobile" : "desktop"), y && n.closeSideBar({ withoutAnimation: !0 });
|
|
3480
3434
|
}
|
|
3481
3435
|
};
|
|
3482
|
-
return (y,
|
|
3483
|
-
class:
|
|
3436
|
+
return (y, _) => (i(), b("div", {
|
|
3437
|
+
class: Q([m(r), "app-wrapper"])
|
|
3484
3438
|
}, [
|
|
3485
|
-
|
|
3439
|
+
m(s) === "mobile" && m(l).opened ? (i(), b("div", {
|
|
3486
3440
|
key: 0,
|
|
3487
3441
|
class: "drawer-bg",
|
|
3488
|
-
onClick:
|
|
3442
|
+
onClick: d
|
|
3489
3443
|
})) : B("", !0),
|
|
3490
|
-
u(
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
class:
|
|
3444
|
+
u(m(ss), { class: "sidebar-container" }),
|
|
3445
|
+
v("div", cs, [
|
|
3446
|
+
v("div", {
|
|
3447
|
+
class: Q({ "fixed-header": m(a) })
|
|
3494
3448
|
}, [
|
|
3495
|
-
u(
|
|
3449
|
+
u(m(Nl))
|
|
3496
3450
|
], 2),
|
|
3497
|
-
u(
|
|
3451
|
+
u(m(rs))
|
|
3498
3452
|
])
|
|
3499
3453
|
], 2));
|
|
3500
3454
|
}
|
|
3501
|
-
},
|
|
3455
|
+
}, jt = /* @__PURE__ */ P(ps, [["__scopeId", "data-v-b7ab74f0"]]), ds = { id: "login" }, fs = { id: "form" }, ms = {
|
|
3502
3456
|
key: 0,
|
|
3503
3457
|
class: "captcha"
|
|
3504
|
-
},
|
|
3458
|
+
}, hs = ["src"], bs = { class: "tips" }, ys = { class: "sso" }, _s = /* @__PURE__ */ z({
|
|
3505
3459
|
__name: "login",
|
|
3506
3460
|
setup(e) {
|
|
3507
|
-
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)), _ = $({
|
|
3508
3462
|
username: "",
|
|
3509
3463
|
password: "",
|
|
3510
3464
|
captcha: "",
|
|
3511
3465
|
sing: ""
|
|
3512
|
-
}),
|
|
3513
|
-
if (
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
return;
|
|
3517
|
-
}
|
|
3518
|
-
c.value && (b.value.sing = ao.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), x.value = !0, s.login(b.value).then((T) => {
|
|
3519
|
-
t.push({ path: n.query?.redirect || "/" });
|
|
3520
|
-
}).catch((T) => {
|
|
3521
|
-
m.value++;
|
|
3522
|
-
}).finally(() => {
|
|
3523
|
-
x.value = !1;
|
|
3524
|
-
});
|
|
3466
|
+
}), C = () => {
|
|
3467
|
+
if (_.value.username === "" || _.value.password === "" || r.value && _.value.captcha === "") {
|
|
3468
|
+
Zn.error("用户名, 密码, 验证码是必须的");
|
|
3469
|
+
return;
|
|
3525
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
|
+
});
|
|
3526
3476
|
};
|
|
3527
|
-
return (
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
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),
|
|
3534
3499
|
type: "text",
|
|
3535
|
-
placeholder: "
|
|
3536
|
-
class: "input"
|
|
3537
|
-
}, null, 512), [
|
|
3538
|
-
[Re, d(b).username]
|
|
3539
|
-
]),
|
|
3540
|
-
Te(k("input", {
|
|
3541
|
-
"onUpdate:modelValue": I[1] || (I[1] = (_) => d(b).password = _),
|
|
3542
|
-
type: "password",
|
|
3543
|
-
placeholder: "密码",
|
|
3544
|
-
class: "input"
|
|
3500
|
+
placeholder: "验证码",
|
|
3501
|
+
class: "input-captcha"
|
|
3545
3502
|
}, null, 512), [
|
|
3546
|
-
[
|
|
3503
|
+
[$e, m(_).captcha]
|
|
3547
3504
|
]),
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
]
|
|
3564
|
-
|
|
3565
|
-
class: "login-button",
|
|
3566
|
-
type: "primary",
|
|
3567
|
-
loading: d(x),
|
|
3568
|
-
disabled: !y.value || d(x),
|
|
3569
|
-
onClick: E
|
|
3570
|
-
}, {
|
|
3571
|
-
default: r(() => [
|
|
3572
|
-
C(N(d(x) ? "登录中…" : "登录"), 1)
|
|
3573
|
-
]),
|
|
3574
|
-
_: 1
|
|
3575
|
-
}, 8, ["loading", "disabled"]),
|
|
3576
|
-
k("div", hs, [
|
|
3577
|
-
k("div", null, N(i.value), 1)
|
|
3578
|
-
]),
|
|
3579
|
-
k("div", bs, [
|
|
3580
|
-
I[3] || (I[3] = k("div", { id: "sso-qrcode" }, null, -1)),
|
|
3581
|
-
(a(!0), v($, null, V(Object.keys([]), (_) => (a(), v("div", { key: _ }, N(_), 1))), 128))
|
|
3582
|
-
])
|
|
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))
|
|
3583
3522
|
])
|
|
3584
|
-
])
|
|
3585
|
-
|
|
3523
|
+
])
|
|
3524
|
+
]));
|
|
3586
3525
|
}
|
|
3587
|
-
}),
|
|
3526
|
+
}), vs = {
|
|
3588
3527
|
name: "NotFoundPage"
|
|
3589
|
-
},
|
|
3590
|
-
function
|
|
3591
|
-
return
|
|
3592
|
-
|
|
3528
|
+
}, gs = { class: "not-found" };
|
|
3529
|
+
function ks(e, t, n, o, l, s) {
|
|
3530
|
+
return i(), b("div", gs, [...t[0] || (t[0] = [
|
|
3531
|
+
v("svg", {
|
|
3593
3532
|
width: "380px",
|
|
3594
3533
|
height: "500px",
|
|
3595
3534
|
viewBox: "0 0 837 1045",
|
|
@@ -3598,7 +3537,7 @@ function gs(e, t, n, o, l, s) {
|
|
|
3598
3537
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3599
3538
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
3600
3539
|
}, [
|
|
3601
|
-
|
|
3540
|
+
v("g", {
|
|
3602
3541
|
id: "Page-1",
|
|
3603
3542
|
stroke: "none",
|
|
3604
3543
|
"stroke-width": "1",
|
|
@@ -3606,35 +3545,35 @@ function gs(e, t, n, o, l, s) {
|
|
|
3606
3545
|
"fill-rule": "evenodd",
|
|
3607
3546
|
"sketch:type": "MSPage"
|
|
3608
3547
|
}, [
|
|
3609
|
-
|
|
3548
|
+
v("path", {
|
|
3610
3549
|
id: "Polygon-1",
|
|
3611
3550
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
3612
3551
|
stroke: "#007FB2",
|
|
3613
3552
|
"stroke-width": "6",
|
|
3614
3553
|
"sketch:type": "MSShapeGroup"
|
|
3615
3554
|
}),
|
|
3616
|
-
|
|
3555
|
+
v("path", {
|
|
3617
3556
|
id: "Polygon-2",
|
|
3618
3557
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
3619
3558
|
stroke: "#EF4A5B",
|
|
3620
3559
|
"stroke-width": "6",
|
|
3621
3560
|
"sketch:type": "MSShapeGroup"
|
|
3622
3561
|
}),
|
|
3623
|
-
|
|
3562
|
+
v("path", {
|
|
3624
3563
|
id: "Polygon-3",
|
|
3625
3564
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
3626
3565
|
stroke: "#795D9C",
|
|
3627
3566
|
"stroke-width": "6",
|
|
3628
3567
|
"sketch:type": "MSShapeGroup"
|
|
3629
3568
|
}),
|
|
3630
|
-
|
|
3569
|
+
v("path", {
|
|
3631
3570
|
id: "Polygon-4",
|
|
3632
3571
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
3633
3572
|
stroke: "#F2773F",
|
|
3634
3573
|
"stroke-width": "6",
|
|
3635
3574
|
"sketch:type": "MSShapeGroup"
|
|
3636
3575
|
}),
|
|
3637
|
-
|
|
3576
|
+
v("path", {
|
|
3638
3577
|
id: "Polygon-5",
|
|
3639
3578
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
3640
3579
|
stroke: "#36B455",
|
|
@@ -3643,12 +3582,12 @@ function gs(e, t, n, o, l, s) {
|
|
|
3643
3582
|
})
|
|
3644
3583
|
])
|
|
3645
3584
|
], -1),
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
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", {
|
|
3652
3591
|
href: "",
|
|
3653
3592
|
class: "link-button"
|
|
3654
3593
|
}, "Go to Home Page")
|
|
@@ -3657,85 +3596,62 @@ function gs(e, t, n, o, l, s) {
|
|
|
3657
3596
|
], -1)
|
|
3658
3597
|
])]);
|
|
3659
3598
|
}
|
|
3660
|
-
const
|
|
3599
|
+
const Ss = /* @__PURE__ */ P(vs, [["render", ks], ["__scopeId", "data-v-26068803"]]), ws = [
|
|
3661
3600
|
{
|
|
3662
3601
|
path: "/",
|
|
3663
|
-
component:
|
|
3602
|
+
component: jt,
|
|
3664
3603
|
redirect: "/dashboard",
|
|
3665
3604
|
name: "Root",
|
|
3666
3605
|
meta: {
|
|
3667
|
-
|
|
3668
|
-
pageId: 0,
|
|
3669
|
-
title: "Root",
|
|
3670
|
-
menuType: 1,
|
|
3671
|
-
keepAlive: !1
|
|
3606
|
+
menuType: 1
|
|
3672
3607
|
},
|
|
3673
3608
|
children: [
|
|
3674
3609
|
{
|
|
3675
3610
|
path: "dashboard",
|
|
3676
3611
|
name: "Dashboard",
|
|
3677
|
-
component:
|
|
3678
|
-
meta: {
|
|
3679
|
-
id: 1,
|
|
3680
|
-
pageId: 1,
|
|
3681
|
-
title: "Dashboard",
|
|
3682
|
-
icon: "el-icon-help",
|
|
3683
|
-
menuType: 2,
|
|
3684
|
-
keepAlive: !0
|
|
3685
|
-
}
|
|
3612
|
+
component: Ro,
|
|
3613
|
+
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
3686
3614
|
}
|
|
3687
3615
|
]
|
|
3688
3616
|
},
|
|
3689
3617
|
{
|
|
3690
3618
|
path: "/login",
|
|
3691
|
-
component:
|
|
3692
|
-
meta: {
|
|
3693
|
-
id: 2,
|
|
3694
|
-
pageId: 2,
|
|
3695
|
-
title: "用户登录",
|
|
3696
|
-
menuType: 0,
|
|
3697
|
-
keepAlive: !1
|
|
3698
|
-
},
|
|
3619
|
+
component: _s,
|
|
3620
|
+
meta: { title: "用户登录", menuType: 0 },
|
|
3699
3621
|
hidden: !0
|
|
3700
3622
|
},
|
|
3701
3623
|
{
|
|
3702
3624
|
path: "/404",
|
|
3703
|
-
component:
|
|
3704
|
-
meta: {
|
|
3705
|
-
id: 3,
|
|
3706
|
-
pageId: 3,
|
|
3707
|
-
title: "404",
|
|
3708
|
-
menuType: 0,
|
|
3709
|
-
keepAlive: !1
|
|
3710
|
-
},
|
|
3625
|
+
component: Ss,
|
|
3626
|
+
meta: { menuType: 0 },
|
|
3711
3627
|
hidden: !0
|
|
3712
3628
|
}
|
|
3713
|
-
],
|
|
3714
|
-
history:
|
|
3629
|
+
], ne = An({
|
|
3630
|
+
history: Rn(),
|
|
3715
3631
|
routes: ws
|
|
3716
3632
|
});
|
|
3717
3633
|
Me.configure({ showSpinner: !1 });
|
|
3718
|
-
function
|
|
3634
|
+
function xs(e) {
|
|
3719
3635
|
e.beforeEach((t, n, o) => {
|
|
3720
3636
|
Me.start(), t.preHash = location.hash.replace("#", ""), o();
|
|
3721
3637
|
}), e.afterEach((t) => {
|
|
3722
|
-
const n =
|
|
3638
|
+
const n = N(R);
|
|
3723
3639
|
t.matched.length > 0 && n.updateState({
|
|
3724
3640
|
key: "path",
|
|
3725
3641
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
3726
3642
|
}), Me.done();
|
|
3727
3643
|
});
|
|
3728
3644
|
}
|
|
3729
|
-
function
|
|
3730
|
-
return
|
|
3645
|
+
function Es() {
|
|
3646
|
+
return N(R).isLodeRemoteRoutes;
|
|
3731
3647
|
}
|
|
3732
|
-
function
|
|
3733
|
-
return
|
|
3648
|
+
function Nt() {
|
|
3649
|
+
return V(R).whiteRoutes || [];
|
|
3734
3650
|
}
|
|
3735
|
-
function
|
|
3736
|
-
return
|
|
3651
|
+
function Is() {
|
|
3652
|
+
return N(R).token;
|
|
3737
3653
|
}
|
|
3738
|
-
class
|
|
3654
|
+
class Vt {
|
|
3739
3655
|
type = "qrcode";
|
|
3740
3656
|
flag() {
|
|
3741
3657
|
}
|
|
@@ -3745,14 +3661,14 @@ class Ut {
|
|
|
3745
3661
|
showQrCode() {
|
|
3746
3662
|
}
|
|
3747
3663
|
}
|
|
3748
|
-
class
|
|
3664
|
+
class Gi extends Vt {
|
|
3749
3665
|
type = "jump";
|
|
3750
3666
|
client_id = "";
|
|
3751
3667
|
constructor(t) {
|
|
3752
3668
|
super(), this.client_id = t.client_id;
|
|
3753
3669
|
}
|
|
3754
3670
|
flag() {
|
|
3755
|
-
const t =
|
|
3671
|
+
const t = _t("code");
|
|
3756
3672
|
if (t)
|
|
3757
3673
|
return {
|
|
3758
3674
|
ticket: t,
|
|
@@ -3764,7 +3680,7 @@ class $a extends Ut {
|
|
|
3764
3680
|
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
|
|
3765
3681
|
}
|
|
3766
3682
|
}
|
|
3767
|
-
class
|
|
3683
|
+
class zi extends Vt {
|
|
3768
3684
|
type = "qrcode";
|
|
3769
3685
|
qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
3770
3686
|
reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
@@ -3777,7 +3693,7 @@ class Pa extends Ut {
|
|
|
3777
3693
|
super();
|
|
3778
3694
|
}
|
|
3779
3695
|
flag() {
|
|
3780
|
-
const t =
|
|
3696
|
+
const t = _t("code");
|
|
3781
3697
|
if (t)
|
|
3782
3698
|
return {
|
|
3783
3699
|
ticket: t,
|
|
@@ -3790,63 +3706,63 @@ class Pa extends Ut {
|
|
|
3790
3706
|
appid: this.appid,
|
|
3791
3707
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
3792
3708
|
};
|
|
3793
|
-
return
|
|
3709
|
+
return ae(this.reloadUrl, s) + "&" + Sn(l || {});
|
|
3794
3710
|
}, n = () => {
|
|
3795
3711
|
const l = {
|
|
3796
3712
|
goto: encodeURIComponent(t()),
|
|
3797
3713
|
style: encodeURIComponent(this.style)
|
|
3798
3714
|
};
|
|
3799
|
-
return
|
|
3715
|
+
return ae(this.qrCodeUrl, l);
|
|
3800
3716
|
}, o = (l) => {
|
|
3801
|
-
const { origin: s, data:
|
|
3802
|
-
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 }));
|
|
3803
3719
|
};
|
|
3804
|
-
this.iframe.src = n(),
|
|
3720
|
+
this.iframe.src = n(), kn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
3805
3721
|
"message",
|
|
3806
3722
|
(l) => o(l),
|
|
3807
3723
|
!1
|
|
3808
3724
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
|
|
3809
3725
|
}
|
|
3810
3726
|
}
|
|
3811
|
-
const
|
|
3812
|
-
function Cs() {
|
|
3813
|
-
return G(q(A).sso || {}, Is);
|
|
3814
|
-
}
|
|
3727
|
+
const Cs = {};
|
|
3815
3728
|
function Ts() {
|
|
3816
|
-
|
|
3729
|
+
return q(V(R).sso || {}, Cs);
|
|
3730
|
+
}
|
|
3731
|
+
function $s() {
|
|
3732
|
+
const e = Ts(), t = V(R).activeSsoKey || "", n = e[t];
|
|
3817
3733
|
if (n !== void 0)
|
|
3818
3734
|
return n();
|
|
3819
3735
|
}
|
|
3820
|
-
function
|
|
3736
|
+
function Bs(e) {
|
|
3821
3737
|
e.beforeEach(async (t, n, o) => {
|
|
3822
|
-
if (
|
|
3738
|
+
if (Nt().indexOf(t.path) !== -1) {
|
|
3823
3739
|
o();
|
|
3824
3740
|
return;
|
|
3825
3741
|
}
|
|
3826
|
-
if (
|
|
3742
|
+
if (Is()) {
|
|
3827
3743
|
t.query?.redirect ? o(t.query?.redirect) : o();
|
|
3828
3744
|
return;
|
|
3829
3745
|
}
|
|
3830
|
-
const s = t.query.redirect || t.path,
|
|
3831
|
-
if (!
|
|
3746
|
+
const s = t.query.redirect || t.path, a = $s();
|
|
3747
|
+
if (!a) {
|
|
3832
3748
|
o(`/login?redirect=${s}`);
|
|
3833
3749
|
return;
|
|
3834
3750
|
}
|
|
3835
|
-
const
|
|
3836
|
-
if (
|
|
3751
|
+
const r = a.flag(), p = N(R);
|
|
3752
|
+
if (r && await p.login(In(r) ? r : { ticket: r })) {
|
|
3837
3753
|
o();
|
|
3838
3754
|
return;
|
|
3839
3755
|
}
|
|
3840
|
-
|
|
3756
|
+
a.jumpToLoginPage(o, `/login?redirect=${s}`);
|
|
3841
3757
|
});
|
|
3842
3758
|
}
|
|
3843
|
-
const
|
|
3844
|
-
function
|
|
3845
|
-
return
|
|
3846
|
-
|
|
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)
|
|
3847
3763
|
])]);
|
|
3848
3764
|
}
|
|
3849
|
-
const
|
|
3765
|
+
const Rs = /* @__PURE__ */ P(Os, [["render", As]]), Ls = {
|
|
3850
3766
|
name: "VNotice",
|
|
3851
3767
|
props: {
|
|
3852
3768
|
dataApi: {
|
|
@@ -3875,52 +3791,52 @@ const Ps = /* @__PURE__ */ L(Bs, [["render", $s]]), As = {
|
|
|
3875
3791
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
3876
3792
|
}
|
|
3877
3793
|
};
|
|
3878
|
-
function
|
|
3879
|
-
const
|
|
3880
|
-
return
|
|
3881
|
-
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)
|
|
3882
3798
|
]);
|
|
3883
3799
|
}
|
|
3884
|
-
const
|
|
3800
|
+
const Ds = /* @__PURE__ */ P(Ls, [["render", Ms]]), js = ["innerHTML"], Ns = /* @__PURE__ */ z({
|
|
3885
3801
|
__name: "PageLoad",
|
|
3886
3802
|
props: {
|
|
3887
3803
|
schemaHandler: { type: Function, default: (e) => e },
|
|
3888
3804
|
schemaApi: { default: "" }
|
|
3889
3805
|
},
|
|
3890
3806
|
setup(e) {
|
|
3891
|
-
const t = e, n =
|
|
3892
|
-
return
|
|
3893
|
-
const
|
|
3894
|
-
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi ||
|
|
3895
|
-
|
|
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 });
|
|
3896
3812
|
});
|
|
3897
|
-
}), (
|
|
3898
|
-
const
|
|
3899
|
-
return
|
|
3900
|
-
|
|
3813
|
+
}), (S, g) => {
|
|
3814
|
+
const I = Ke;
|
|
3815
|
+
return i(), b(O, null, [
|
|
3816
|
+
m(y).length > 0 ? (i(), h(I, {
|
|
3901
3817
|
key: 0,
|
|
3902
|
-
title: `该页面功能对应开发: [ ${
|
|
3818
|
+
title: `该页面功能对应开发: [ ${m(y).join(", ")} ] 有问题可直接企微反馈`,
|
|
3903
3819
|
type: "info",
|
|
3904
3820
|
style: { margin: "0 0 20px 0" },
|
|
3905
3821
|
closable: !1
|
|
3906
3822
|
}, null, 8, ["title"])) : B("", !0),
|
|
3907
|
-
|
|
3823
|
+
m(C) === "prod" && m(_) ? (i(), b("div", {
|
|
3908
3824
|
key: 1,
|
|
3909
3825
|
class: "offline-notice",
|
|
3910
|
-
innerHTML:
|
|
3911
|
-
}, null, 8,
|
|
3912
|
-
|
|
3826
|
+
innerHTML: m(_) === !0 ? m(E).serviceOffLineNotice : m(_)
|
|
3827
|
+
}, null, 8, js)) : (i(), b(O, { key: 2 }, [
|
|
3828
|
+
m(r) ? (i(), h(Ds, {
|
|
3913
3829
|
key: 0,
|
|
3914
|
-
notice:
|
|
3830
|
+
notice: m(p),
|
|
3915
3831
|
style: { margin: "0 0 20px 0" },
|
|
3916
|
-
"data-api": d
|
|
3832
|
+
"data-api": m(d)
|
|
3917
3833
|
}, null, 8, ["notice", "data-api"])) : B("", !0),
|
|
3918
|
-
|
|
3834
|
+
m(a) ? (i(), h(Rs, { key: 1 })) : pe(S.$slots, "default", Z(X({ key: 2 }, m(f))), void 0, !0)
|
|
3919
3835
|
], 64))
|
|
3920
3836
|
], 64);
|
|
3921
3837
|
};
|
|
3922
3838
|
}
|
|
3923
|
-
}),
|
|
3839
|
+
}), ye = /* @__PURE__ */ P(Ns, [["__scopeId", "data-v-e330fdc7"]]), Ut = {
|
|
3924
3840
|
__name: "table",
|
|
3925
3841
|
setup(e) {
|
|
3926
3842
|
const t = (n, o) => {
|
|
@@ -3929,16 +3845,16 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
3929
3845
|
prop: n.orderBy.field,
|
|
3930
3846
|
order: n.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
3931
3847
|
};
|
|
3932
|
-
n.tableProps =
|
|
3848
|
+
n.tableProps = q(n.tableProps, { defaultSort: s });
|
|
3933
3849
|
}
|
|
3934
|
-
const l = Object.keys(
|
|
3850
|
+
const l = Object.keys(me.props);
|
|
3935
3851
|
return Object.keys(n).forEach((s) => {
|
|
3936
3852
|
l.indexOf(s) === -1 && delete n[s];
|
|
3937
3853
|
}), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
|
|
3938
3854
|
};
|
|
3939
|
-
return (n, o) => (
|
|
3940
|
-
default:
|
|
3941
|
-
u(
|
|
3855
|
+
return (n, o) => (i(), h(ye, { "schema-handler": t }, {
|
|
3856
|
+
default: c((l) => [
|
|
3857
|
+
u(m(me), Z(re(l)), null, 16)
|
|
3942
3858
|
]),
|
|
3943
3859
|
_: 1
|
|
3944
3860
|
}));
|
|
@@ -3946,59 +3862,59 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
3946
3862
|
}, Ne = {
|
|
3947
3863
|
__name: "form",
|
|
3948
3864
|
setup(e) {
|
|
3949
|
-
const t =
|
|
3950
|
-
const
|
|
3951
|
-
return Object.keys(
|
|
3952
|
-
if (
|
|
3953
|
-
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];
|
|
3954
3870
|
return;
|
|
3955
3871
|
}
|
|
3956
|
-
/.*Api$/.test(
|
|
3957
|
-
}),
|
|
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({
|
|
3958
3874
|
saveApi: p + "/save",
|
|
3959
3875
|
afterSubmit: "goback",
|
|
3960
3876
|
afterReset: "goback",
|
|
3961
3877
|
mod: t.params.id ? "edit" : "create"
|
|
3962
|
-
},
|
|
3963
|
-
}, l =
|
|
3964
|
-
|
|
3878
|
+
}, r), r;
|
|
3879
|
+
}, l = $(0), s = () => {
|
|
3880
|
+
Jt.request({
|
|
3965
3881
|
url: "/form_mutex",
|
|
3966
3882
|
method: "get",
|
|
3967
3883
|
params: {
|
|
3968
3884
|
path: t.fullPath
|
|
3969
3885
|
}
|
|
3970
|
-
}).then((
|
|
3971
|
-
|
|
3886
|
+
}).then((r) => {
|
|
3887
|
+
r.data && (clearInterval(l.value), St.alert(`${r.data}`, "操作提醒", {
|
|
3972
3888
|
showClose: !1,
|
|
3973
3889
|
showCancelButton: !0,
|
|
3974
3890
|
confirmButtonText: "返回",
|
|
3975
3891
|
cancelButtonText: "刷新",
|
|
3976
3892
|
callback: (p) => {
|
|
3977
|
-
p === "cancel" ? location.reload() :
|
|
3893
|
+
p === "cancel" ? location.reload() : a();
|
|
3978
3894
|
}
|
|
3979
3895
|
}));
|
|
3980
3896
|
});
|
|
3981
3897
|
};
|
|
3982
|
-
|
|
3983
|
-
const
|
|
3984
|
-
t.params.id !== void 0 &&
|
|
3985
|
-
}),
|
|
3898
|
+
xe(() => {
|
|
3899
|
+
const r = V();
|
|
3900
|
+
t.params.id !== void 0 && r.formMutex && (s(), l.value = setInterval(s, 2e3));
|
|
3901
|
+
}), rn(() => {
|
|
3986
3902
|
clearInterval(l.value);
|
|
3987
3903
|
});
|
|
3988
|
-
function
|
|
3904
|
+
function a() {
|
|
3989
3905
|
t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
|
|
3990
3906
|
}
|
|
3991
|
-
return (
|
|
3992
|
-
default:
|
|
3993
|
-
u(
|
|
3907
|
+
return (r, p) => (i(), h(ye, { "schema-handler": o }, {
|
|
3908
|
+
default: c((d) => [
|
|
3909
|
+
u(m(te), Z(re(d)), null, 16)
|
|
3994
3910
|
]),
|
|
3995
3911
|
_: 1
|
|
3996
3912
|
}));
|
|
3997
3913
|
}
|
|
3998
|
-
},
|
|
3914
|
+
}, Vs = z({
|
|
3999
3915
|
name: "VTree",
|
|
4000
3916
|
components: {
|
|
4001
|
-
VForm:
|
|
3917
|
+
VForm: te
|
|
4002
3918
|
},
|
|
4003
3919
|
props: {
|
|
4004
3920
|
treeApi: {
|
|
@@ -4051,7 +3967,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
4051
3967
|
// 1 新增, 2 编辑
|
|
4052
3968
|
treeData: [],
|
|
4053
3969
|
formData: {},
|
|
4054
|
-
localTreeProps:
|
|
3970
|
+
localTreeProps: q({
|
|
4055
3971
|
"default-expand-all": !0,
|
|
4056
3972
|
"expand-on-click-node": !1,
|
|
4057
3973
|
props: {
|
|
@@ -4069,7 +3985,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
4069
3985
|
return ["", "新建", "编辑"][this.type];
|
|
4070
3986
|
},
|
|
4071
3987
|
formProps() {
|
|
4072
|
-
let e =
|
|
3988
|
+
let e = ae(this.$props.saveApi, this.formData);
|
|
4073
3989
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4074
3990
|
saveApi: e,
|
|
4075
3991
|
getApi: this.$props.getApi,
|
|
@@ -4094,7 +4010,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
4094
4010
|
},
|
|
4095
4011
|
append(e, t) {
|
|
4096
4012
|
this.type = 1;
|
|
4097
|
-
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) };
|
|
4098
4014
|
e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
|
|
4099
4015
|
},
|
|
4100
4016
|
canAppend(e, t) {
|
|
@@ -4108,7 +4024,7 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
4108
4024
|
remove(e) {
|
|
4109
4025
|
this.$http.request({
|
|
4110
4026
|
method: "DELETE",
|
|
4111
|
-
url:
|
|
4027
|
+
url: ae(this.$props.deleteApi, e)
|
|
4112
4028
|
}).then(({ code: t }) => {
|
|
4113
4029
|
t !== 0 ? this.$message.error("操作失败") : this.loadTree();
|
|
4114
4030
|
});
|
|
@@ -4128,46 +4044,46 @@ const Ms = /* @__PURE__ */ L(As, [["render", Ls]]), Ds = ["innerHTML"], js = /*
|
|
|
4128
4044
|
const l = e.data;
|
|
4129
4045
|
l.pid = t.data.id, this.$http.request({
|
|
4130
4046
|
method: "POST",
|
|
4131
|
-
url:
|
|
4047
|
+
url: ae(this.$props.saveApi, l),
|
|
4132
4048
|
data: l
|
|
4133
4049
|
}).then(({ code: s }) => {
|
|
4134
4050
|
s !== 0 && this.$message.error("操作失败");
|
|
4135
4051
|
});
|
|
4136
4052
|
}
|
|
4137
4053
|
}
|
|
4138
|
-
}),
|
|
4054
|
+
}), Us = { class: "card-header" }, qs = { class: "tree-action" }, Hs = { key: 0 }, Fs = {
|
|
4139
4055
|
key: 1,
|
|
4140
4056
|
style: { color: "#E6A23C" }
|
|
4141
|
-
},
|
|
4142
|
-
function
|
|
4143
|
-
const
|
|
4144
|
-
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, {
|
|
4145
4061
|
class: "tree-box",
|
|
4146
4062
|
gutter: 20
|
|
4147
4063
|
}, {
|
|
4148
|
-
default:
|
|
4149
|
-
u(
|
|
4064
|
+
default: c(() => [
|
|
4065
|
+
u(d, {
|
|
4150
4066
|
span: 8,
|
|
4151
4067
|
class: "tree-tree"
|
|
4152
4068
|
}, {
|
|
4153
|
-
default:
|
|
4069
|
+
default: c(() => [
|
|
4154
4070
|
u(p, { shadow: "never" }, {
|
|
4155
|
-
header:
|
|
4156
|
-
|
|
4157
|
-
t[3] || (t[3] =
|
|
4158
|
-
u(
|
|
4071
|
+
header: c(() => [
|
|
4072
|
+
v("div", Us, [
|
|
4073
|
+
t[3] || (t[3] = v("span", null, "列表", -1)),
|
|
4074
|
+
u(a, {
|
|
4159
4075
|
type: "text",
|
|
4160
4076
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4161
4077
|
}, {
|
|
4162
|
-
default:
|
|
4163
|
-
|
|
4078
|
+
default: c(() => [...t[2] || (t[2] = [
|
|
4079
|
+
T("添加", -1)
|
|
4164
4080
|
])]),
|
|
4165
4081
|
_: 1
|
|
4166
4082
|
})
|
|
4167
4083
|
])
|
|
4168
4084
|
]),
|
|
4169
|
-
default:
|
|
4170
|
-
(e.treeData || []).length > 0 ? (
|
|
4085
|
+
default: c(() => [
|
|
4086
|
+
(e.treeData || []).length > 0 ? (i(), h(r, X({
|
|
4171
4087
|
key: 0,
|
|
4172
4088
|
style: { height: "100vh" },
|
|
4173
4089
|
data: e.treeData,
|
|
@@ -4178,40 +4094,40 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4178
4094
|
"allow-drop": e.allowDrop,
|
|
4179
4095
|
onNodeDragEnd: e.handleDragEnd
|
|
4180
4096
|
}), {
|
|
4181
|
-
default:
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
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, {
|
|
4186
4102
|
key: 0,
|
|
4187
4103
|
class: "button",
|
|
4188
4104
|
type: "text",
|
|
4189
|
-
onClick: () => e.onclick(
|
|
4105
|
+
onClick: () => e.onclick(C)
|
|
4190
4106
|
}, {
|
|
4191
|
-
default:
|
|
4192
|
-
|
|
4107
|
+
default: c(() => [...t[4] || (t[4] = [
|
|
4108
|
+
T("编辑", -1)
|
|
4193
4109
|
])]),
|
|
4194
4110
|
_: 1
|
|
4195
4111
|
}, 8, ["onClick"])) : B("", !0),
|
|
4196
|
-
e.canAppend(
|
|
4112
|
+
e.canAppend(C, _) ? (i(), h(a, {
|
|
4197
4113
|
key: 1,
|
|
4198
4114
|
class: "button",
|
|
4199
4115
|
type: "text",
|
|
4200
|
-
onClick: () => e.append(
|
|
4116
|
+
onClick: () => e.append(C, _)
|
|
4201
4117
|
}, {
|
|
4202
|
-
default:
|
|
4203
|
-
|
|
4118
|
+
default: c(() => [...t[5] || (t[5] = [
|
|
4119
|
+
T("添加", -1)
|
|
4204
4120
|
])]),
|
|
4205
4121
|
_: 1
|
|
4206
4122
|
}, 8, ["onClick"])) : B("", !0),
|
|
4207
|
-
|
|
4123
|
+
C.children === void 0 || C.children.length === 0 ? (i(), h(a, {
|
|
4208
4124
|
key: 2,
|
|
4209
4125
|
class: "button",
|
|
4210
4126
|
type: "text",
|
|
4211
|
-
onClick: () => e.remove(
|
|
4127
|
+
onClick: () => e.remove(C)
|
|
4212
4128
|
}, {
|
|
4213
|
-
default:
|
|
4214
|
-
|
|
4129
|
+
default: c(() => [...t[6] || (t[6] = [
|
|
4130
|
+
T("删除", -1)
|
|
4215
4131
|
])]),
|
|
4216
4132
|
_: 1
|
|
4217
4133
|
}, 8, ["onClick"])) : B("", !0)
|
|
@@ -4226,25 +4142,25 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4226
4142
|
]),
|
|
4227
4143
|
_: 1
|
|
4228
4144
|
}),
|
|
4229
|
-
u(
|
|
4145
|
+
u(d, {
|
|
4230
4146
|
span: 16,
|
|
4231
4147
|
class: "tree-form"
|
|
4232
4148
|
}, {
|
|
4233
|
-
default:
|
|
4234
|
-
e.type ? (
|
|
4149
|
+
default: c(() => [
|
|
4150
|
+
e.type ? (i(), h(p, {
|
|
4235
4151
|
key: 0,
|
|
4236
4152
|
shadow: "never"
|
|
4237
4153
|
}, {
|
|
4238
|
-
header:
|
|
4239
|
-
|
|
4240
|
-
|
|
4154
|
+
header: c(() => [
|
|
4155
|
+
v("div", Gs, [
|
|
4156
|
+
v("span", null, M(e.formType), 1)
|
|
4241
4157
|
])
|
|
4242
4158
|
]),
|
|
4243
|
-
default:
|
|
4244
|
-
(
|
|
4159
|
+
default: c(() => [
|
|
4160
|
+
(i(), h(f, X({
|
|
4245
4161
|
key: e.formkey,
|
|
4246
4162
|
modelValue: e.formData,
|
|
4247
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4163
|
+
"onUpdate:modelValue": t[1] || (t[1] = (_) => e.formData = _)
|
|
4248
4164
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4249
4165
|
]),
|
|
4250
4166
|
_: 1
|
|
@@ -4256,18 +4172,18 @@ function Gs(e, t, n, o, l, s) {
|
|
|
4256
4172
|
_: 1
|
|
4257
4173
|
});
|
|
4258
4174
|
}
|
|
4259
|
-
const
|
|
4175
|
+
const dt = /* @__PURE__ */ P(Vs, [["render", zs]]), Js = {
|
|
4260
4176
|
__name: "tree",
|
|
4261
4177
|
setup(e) {
|
|
4262
4178
|
const t = (n, o) => {
|
|
4263
|
-
const l = Object.keys(
|
|
4179
|
+
const l = Object.keys(dt.props);
|
|
4264
4180
|
return Object.keys(n).forEach((s) => {
|
|
4265
4181
|
l.indexOf(s) === -1 && delete n[s];
|
|
4266
4182
|
}), n;
|
|
4267
4183
|
};
|
|
4268
|
-
return (n, o) => (
|
|
4269
|
-
default:
|
|
4270
|
-
u(
|
|
4184
|
+
return (n, o) => (i(), h(ye, { "schema-handler": t }, {
|
|
4185
|
+
default: c((l) => [
|
|
4186
|
+
u(dt, Z(re(l)), null, 16)
|
|
4271
4187
|
]),
|
|
4272
4188
|
_: 1
|
|
4273
4189
|
}));
|
|
@@ -4275,22 +4191,293 @@ const at = /* @__PURE__ */ L(Ns, [["render", Gs]]), zs = {
|
|
|
4275
4191
|
}, Le = {
|
|
4276
4192
|
__name: "container",
|
|
4277
4193
|
setup(e) {
|
|
4278
|
-
const t =
|
|
4279
|
-
return
|
|
4194
|
+
const t = $(0);
|
|
4195
|
+
return Ln(() => {
|
|
4280
4196
|
t.value++;
|
|
4281
4197
|
}), (n, o) => {
|
|
4282
|
-
const l =
|
|
4283
|
-
return
|
|
4198
|
+
const l = A("router-view");
|
|
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
|
+
});
|
|
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
|
+
});
|
|
4284
4453
|
};
|
|
4285
4454
|
}
|
|
4286
|
-
}
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
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"]));
|
|
4472
|
+
}
|
|
4473
|
+
}, ia = (e) => u("div", null, [e.test]), ra = {
|
|
4474
|
+
card: On,
|
|
4475
|
+
form: te,
|
|
4476
|
+
table: me,
|
|
4477
|
+
test: ia,
|
|
4478
|
+
row: Bn,
|
|
4479
|
+
col: $n
|
|
4480
|
+
}, ca = {
|
|
4294
4481
|
card: {
|
|
4295
4482
|
type: "card",
|
|
4296
4483
|
props: {
|
|
@@ -4311,7 +4498,7 @@ const at = /* @__PURE__ */ L(Ns, [["render", Gs]]), zs = {
|
|
|
4311
4498
|
}
|
|
4312
4499
|
}
|
|
4313
4500
|
};
|
|
4314
|
-
function
|
|
4501
|
+
function ua(e) {
|
|
4315
4502
|
const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
|
|
4316
4503
|
delete t.span;
|
|
4317
4504
|
let l = {
|
|
@@ -4323,9 +4510,9 @@ function Qs(e) {
|
|
|
4323
4510
|
type: n[s],
|
|
4324
4511
|
children: [l]
|
|
4325
4512
|
};
|
|
4326
|
-
return l.span = o,
|
|
4513
|
+
return l.span = o, et([l]);
|
|
4327
4514
|
}
|
|
4328
|
-
function
|
|
4515
|
+
function et(e) {
|
|
4329
4516
|
const t = {
|
|
4330
4517
|
type: "row",
|
|
4331
4518
|
props: {
|
|
@@ -4336,11 +4523,11 @@ function We(e) {
|
|
|
4336
4523
|
};
|
|
4337
4524
|
return e.forEach((n) => {
|
|
4338
4525
|
let o = Object.assign({}, n);
|
|
4339
|
-
if (
|
|
4340
|
-
let
|
|
4341
|
-
Object.keys(o.props?.style).forEach((
|
|
4342
|
-
|
|
4343
|
-
}), 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;
|
|
4344
4531
|
}
|
|
4345
4532
|
const l = {
|
|
4346
4533
|
span: o.span ?? 24,
|
|
@@ -4350,80 +4537,82 @@ function We(e) {
|
|
|
4350
4537
|
t.children.push({
|
|
4351
4538
|
type: "col",
|
|
4352
4539
|
props: l,
|
|
4353
|
-
children:
|
|
4540
|
+
children: ua(o)
|
|
4354
4541
|
});
|
|
4355
4542
|
return;
|
|
4356
4543
|
}
|
|
4357
|
-
o =
|
|
4544
|
+
o = q({
|
|
4358
4545
|
props: {}
|
|
4359
|
-
},
|
|
4360
|
-
const s =
|
|
4361
|
-
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({
|
|
4362
4549
|
type: "col",
|
|
4363
4550
|
props: l,
|
|
4364
4551
|
children: [o]
|
|
4365
4552
|
});
|
|
4366
4553
|
}), [t];
|
|
4367
4554
|
}
|
|
4368
|
-
function
|
|
4369
|
-
return
|
|
4555
|
+
function qt(e) {
|
|
4556
|
+
return vt(e) ? e : ie(e) ? [e] : [];
|
|
4370
4557
|
}
|
|
4371
|
-
let
|
|
4372
|
-
const
|
|
4373
|
-
const t =
|
|
4374
|
-
return
|
|
4375
|
-
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))
|
|
4376
4563
|
});
|
|
4377
|
-
},
|
|
4564
|
+
}, pa = (e) => (Object.keys(Ve).length === 0 && (Ve = un().appContext.components), et(Object.values(e.schema)).map((n) => Ht(n))), da = {
|
|
4378
4565
|
__name: "custom",
|
|
4379
4566
|
setup(e) {
|
|
4380
|
-
const t =
|
|
4381
|
-
return (o, l) => (
|
|
4382
|
-
default:
|
|
4383
|
-
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"])
|
|
4384
4571
|
]),
|
|
4385
4572
|
_: 1
|
|
4386
4573
|
}));
|
|
4387
4574
|
}
|
|
4388
4575
|
};
|
|
4389
|
-
let
|
|
4390
|
-
function
|
|
4391
|
-
|
|
4576
|
+
let ue = {};
|
|
4577
|
+
function Ji(e) {
|
|
4578
|
+
ue = e;
|
|
4392
4579
|
}
|
|
4393
|
-
const
|
|
4580
|
+
const fa = (e) => {
|
|
4394
4581
|
const t = (n) => {
|
|
4395
4582
|
const o = "./views/" + n + ".vue";
|
|
4396
|
-
return
|
|
4583
|
+
return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), Le);
|
|
4397
4584
|
};
|
|
4398
4585
|
if (e.path === "#")
|
|
4399
4586
|
return Le;
|
|
4400
4587
|
switch (e.page_type) {
|
|
4401
|
-
case
|
|
4402
|
-
return
|
|
4403
|
-
case
|
|
4588
|
+
case K.list:
|
|
4589
|
+
return Ut;
|
|
4590
|
+
case K.form:
|
|
4404
4591
|
return Ne;
|
|
4405
|
-
case
|
|
4406
|
-
case
|
|
4592
|
+
case K.custom:
|
|
4593
|
+
case K.localComp:
|
|
4407
4594
|
return t(e.view || "");
|
|
4408
|
-
case
|
|
4409
|
-
return
|
|
4410
|
-
case
|
|
4411
|
-
return
|
|
4595
|
+
case K.tree:
|
|
4596
|
+
return Js;
|
|
4597
|
+
case K.report:
|
|
4598
|
+
return aa;
|
|
4599
|
+
case K.customSchema:
|
|
4600
|
+
return da;
|
|
4412
4601
|
}
|
|
4413
4602
|
return Le;
|
|
4414
4603
|
};
|
|
4415
|
-
function
|
|
4604
|
+
function ma(e) {
|
|
4416
4605
|
let t = e.path;
|
|
4417
|
-
return e.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;
|
|
4418
4607
|
}
|
|
4419
|
-
function
|
|
4608
|
+
function ha(e) {
|
|
4420
4609
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4421
4610
|
}
|
|
4422
|
-
const
|
|
4423
|
-
const t = e.type !==
|
|
4424
|
-
path:
|
|
4425
|
-
name: e.id + "_" +
|
|
4426
|
-
component:
|
|
4611
|
+
const Ft = (e) => {
|
|
4612
|
+
const t = e.type !== G.page, n = {
|
|
4613
|
+
path: ma(e),
|
|
4614
|
+
name: e.id + "_" + ha(e) + "_" + e.path.replaceAll("/", "_"),
|
|
4615
|
+
component: fa(e),
|
|
4427
4616
|
meta: {
|
|
4428
4617
|
id: e.id,
|
|
4429
4618
|
pageId: e.id,
|
|
@@ -4435,18 +4624,18 @@ const Gt = (e) => {
|
|
|
4435
4624
|
keepAlive: !1,
|
|
4436
4625
|
role: e.role
|
|
4437
4626
|
},
|
|
4438
|
-
children: e.children ? e.children.map((o) =>
|
|
4627
|
+
children: e.children ? e.children.map((o) => Ft(o)) : []
|
|
4439
4628
|
};
|
|
4440
|
-
if (e.page_type ===
|
|
4441
|
-
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 = [{
|
|
4442
4631
|
path: o,
|
|
4443
4632
|
name: e.name + "列表" + e.id,
|
|
4444
|
-
component:
|
|
4633
|
+
component: Ut,
|
|
4445
4634
|
meta: {
|
|
4446
4635
|
id: e.id + 99999,
|
|
4447
4636
|
title: "列表",
|
|
4448
4637
|
hidden: !0,
|
|
4449
|
-
menuType:
|
|
4638
|
+
menuType: G.hidden,
|
|
4450
4639
|
keepAlive: !1,
|
|
4451
4640
|
pageId: e.id,
|
|
4452
4641
|
path: e.path
|
|
@@ -4459,7 +4648,7 @@ const Gt = (e) => {
|
|
|
4459
4648
|
id: e.id + 99999 + 1,
|
|
4460
4649
|
title: "新建",
|
|
4461
4650
|
hidden: !0,
|
|
4462
|
-
menuType:
|
|
4651
|
+
menuType: G.hidden,
|
|
4463
4652
|
keepAlive: !1,
|
|
4464
4653
|
pageId: e.id,
|
|
4465
4654
|
path: e.path
|
|
@@ -4472,20 +4661,20 @@ const Gt = (e) => {
|
|
|
4472
4661
|
id: e.id + 99999 + 2,
|
|
4473
4662
|
title: "编辑",
|
|
4474
4663
|
hidden: !0,
|
|
4475
|
-
menuType:
|
|
4664
|
+
menuType: G.hidden,
|
|
4476
4665
|
keepAlive: !1,
|
|
4477
4666
|
pageId: e.id,
|
|
4478
4667
|
path: e.path
|
|
4479
4668
|
}
|
|
4480
4669
|
}];
|
|
4481
|
-
n.children = [...
|
|
4670
|
+
n.children = [...a, ...n.children];
|
|
4482
4671
|
}
|
|
4483
4672
|
if (n.children && n.children.length > 0) {
|
|
4484
4673
|
let o = !0;
|
|
4485
4674
|
if (n.children.forEach((l) => {
|
|
4486
4675
|
l.meta && !l.meta.hidden && (o = !1);
|
|
4487
|
-
}), n.meta && (n.meta.menuType = t ?
|
|
4488
|
-
n.meta && (n.meta.menuType =
|
|
4676
|
+
}), n.meta && (n.meta.menuType = t ? G.dir : G.hidden), o) {
|
|
4677
|
+
n.meta && (n.meta.menuType = G.menu);
|
|
4489
4678
|
let l = "/";
|
|
4490
4679
|
for (let s = 0; s < n.children.length; s++)
|
|
4491
4680
|
if (n.children[s].path.indexOf("/:") === -1) {
|
|
@@ -4496,7 +4685,7 @@ const Gt = (e) => {
|
|
|
4496
4685
|
}
|
|
4497
4686
|
}
|
|
4498
4687
|
return n;
|
|
4499
|
-
},
|
|
4688
|
+
}, ba = (e) => {
|
|
4500
4689
|
const t = [];
|
|
4501
4690
|
return e.forEach((n) => {
|
|
4502
4691
|
const o = {
|
|
@@ -4505,26 +4694,26 @@ const Gt = (e) => {
|
|
|
4505
4694
|
routes: []
|
|
4506
4695
|
};
|
|
4507
4696
|
n.routes.forEach((l) => {
|
|
4508
|
-
o.routes.push(
|
|
4697
|
+
o.routes.push(Ft(l));
|
|
4509
4698
|
}), t.push(o);
|
|
4510
4699
|
}), t;
|
|
4511
|
-
},
|
|
4512
|
-
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)];
|
|
4513
4702
|
return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
|
|
4514
|
-
},
|
|
4703
|
+
}, Gt = (e) => {
|
|
4515
4704
|
const t = { ...e };
|
|
4516
|
-
return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) =>
|
|
4517
|
-
},
|
|
4518
|
-
const l =
|
|
4519
|
-
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))
|
|
4520
4709
|
return n;
|
|
4521
4710
|
const s = { ...o };
|
|
4522
4711
|
if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
|
|
4523
|
-
const
|
|
4524
|
-
|
|
4712
|
+
const a = tt(o.children, t);
|
|
4713
|
+
a.length ? s.children = a : delete s.children;
|
|
4525
4714
|
}
|
|
4526
4715
|
return n.push(s), n;
|
|
4527
|
-
}, []),
|
|
4716
|
+
}, []), ga = (e) => {
|
|
4528
4717
|
const t = globalThis.atob(e);
|
|
4529
4718
|
let n = "";
|
|
4530
4719
|
for (let o = 0; o < t.length; o++) {
|
|
@@ -4536,125 +4725,117 @@ const Gt = (e) => {
|
|
|
4536
4725
|
} catch {
|
|
4537
4726
|
return decodeURIComponent(encodeURIComponent(t));
|
|
4538
4727
|
}
|
|
4539
|
-
},
|
|
4728
|
+
}, ka = (e) => {
|
|
4540
4729
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
|
|
4541
|
-
return typeof globalThis.atob == "function" ?
|
|
4542
|
-
},
|
|
4730
|
+
return typeof globalThis.atob == "function" ? ga(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
|
|
4731
|
+
}, Sa = (e) => {
|
|
4543
4732
|
if (!e)
|
|
4544
4733
|
return null;
|
|
4545
4734
|
const t = e.split(".");
|
|
4546
4735
|
if (t.length < 2)
|
|
4547
4736
|
return null;
|
|
4548
4737
|
try {
|
|
4549
|
-
const n =
|
|
4738
|
+
const n = ka(t[1]);
|
|
4550
4739
|
return n ? JSON.parse(n) : null;
|
|
4551
4740
|
} catch {
|
|
4552
4741
|
return null;
|
|
4553
4742
|
}
|
|
4554
|
-
},
|
|
4555
|
-
const t =
|
|
4743
|
+
}, zt = (e) => {
|
|
4744
|
+
const t = Sa(e);
|
|
4556
4745
|
return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
|
|
4557
4746
|
};
|
|
4558
|
-
function
|
|
4747
|
+
function wa(e) {
|
|
4559
4748
|
e.beforeEach(async (t, n, o) => {
|
|
4560
|
-
if (
|
|
4749
|
+
if (Nt().indexOf(t.path) !== -1) {
|
|
4561
4750
|
o();
|
|
4562
4751
|
return;
|
|
4563
4752
|
}
|
|
4564
|
-
if (
|
|
4753
|
+
if (Es()) {
|
|
4565
4754
|
o();
|
|
4566
4755
|
return;
|
|
4567
4756
|
}
|
|
4568
|
-
const l =
|
|
4757
|
+
const l = N(R);
|
|
4569
4758
|
await l.info();
|
|
4570
|
-
const s =
|
|
4571
|
-
|
|
4572
|
-
const m = ke(l.rawCustomRouter, s);
|
|
4573
|
-
m.forEach((h) => {
|
|
4574
|
-
const y = typeof h.name == "string" ? h.name : void 0, b = y ? e.hasRoute(y) : !1, x = e.getRoutes().some((E) => E.path === h.path);
|
|
4575
|
-
b || x || e.addRoute(h);
|
|
4576
|
-
}), l.setCustomRoutes(m);
|
|
4577
|
-
}
|
|
4578
|
-
const i = await l.loadRemoteRoutes(), p = ni(i).map((m) => {
|
|
4579
|
-
const h = ke(m.routes, s);
|
|
4759
|
+
const s = await l.loadRemoteRoutes(), a = ba(s), r = zt(be()), p = a.map((d) => {
|
|
4760
|
+
const f = tt(d.routes, r);
|
|
4580
4761
|
return {
|
|
4581
|
-
...
|
|
4582
|
-
routes:
|
|
4762
|
+
...d,
|
|
4763
|
+
routes: f
|
|
4583
4764
|
};
|
|
4584
|
-
}).filter((
|
|
4585
|
-
p.forEach((
|
|
4586
|
-
|
|
4765
|
+
}).filter((d) => d.routes.length > 0);
|
|
4766
|
+
p.forEach((d) => {
|
|
4767
|
+
d.routes.forEach((f) => {
|
|
4587
4768
|
e.addRoute({
|
|
4588
4769
|
path: "/",
|
|
4589
|
-
component:
|
|
4590
|
-
children: [
|
|
4770
|
+
component: jt,
|
|
4771
|
+
children: [f]
|
|
4591
4772
|
});
|
|
4592
4773
|
});
|
|
4593
4774
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(p), await e.replace(t), o();
|
|
4594
4775
|
});
|
|
4595
4776
|
}
|
|
4596
|
-
function
|
|
4777
|
+
function xa(e) {
|
|
4597
4778
|
e.beforeEach(async (t, n, o) => {
|
|
4598
|
-
const s = [
|
|
4599
|
-
for (let
|
|
4600
|
-
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];
|
|
4601
4782
|
p?.meta?.title && s.push(p.meta.title + "");
|
|
4602
4783
|
}
|
|
4603
4784
|
s.length > 1 && (document.title = s.reverse().join("-")), o();
|
|
4604
4785
|
}), e.afterEach(async (t, n, o) => {
|
|
4605
|
-
const l =
|
|
4786
|
+
const l = ee(R);
|
|
4606
4787
|
Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
|
|
4607
4788
|
});
|
|
4608
4789
|
}
|
|
4609
|
-
function
|
|
4610
|
-
|
|
4790
|
+
function Ea(e) {
|
|
4791
|
+
Bs(e), xs(e), wa(e), xa(e);
|
|
4611
4792
|
}
|
|
4612
|
-
|
|
4613
|
-
function
|
|
4614
|
-
return
|
|
4793
|
+
Ea(ne);
|
|
4794
|
+
function Ia() {
|
|
4795
|
+
return N(R).token;
|
|
4615
4796
|
}
|
|
4616
|
-
function
|
|
4617
|
-
return
|
|
4797
|
+
function Ca() {
|
|
4798
|
+
return N(R).expired;
|
|
4618
4799
|
}
|
|
4619
|
-
function
|
|
4620
|
-
|
|
4800
|
+
function mt(e) {
|
|
4801
|
+
To({
|
|
4621
4802
|
message: e,
|
|
4622
4803
|
type: "error",
|
|
4623
4804
|
duration: 5 * 1e3,
|
|
4624
4805
|
grouping: !0
|
|
4625
4806
|
});
|
|
4626
4807
|
}
|
|
4627
|
-
const
|
|
4808
|
+
const Ta = {
|
|
4628
4809
|
onFulfilled: function(e) {
|
|
4629
4810
|
e.headers = e.headers || {};
|
|
4630
|
-
const t =
|
|
4631
|
-
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;
|
|
4632
4813
|
}
|
|
4633
|
-
},
|
|
4814
|
+
}, $a = {
|
|
4634
4815
|
onFulfilled(e) {
|
|
4635
4816
|
if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
|
|
4636
4817
|
const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
|
|
4637
4818
|
if (e.data.code === 401) {
|
|
4638
|
-
if (
|
|
4819
|
+
if (Ca())
|
|
4639
4820
|
return;
|
|
4640
|
-
|
|
4821
|
+
N(R).SetExpired(), ut.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
4641
4822
|
showClose: !1,
|
|
4642
4823
|
confirmButtonText: "重新登录",
|
|
4643
4824
|
showCancelButton: !0,
|
|
4644
4825
|
cancelButtonText: "取消",
|
|
4645
4826
|
callback: (l) => {
|
|
4646
|
-
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();
|
|
4647
4828
|
}
|
|
4648
4829
|
});
|
|
4649
4830
|
return;
|
|
4650
4831
|
} else
|
|
4651
|
-
|
|
4832
|
+
mt(o);
|
|
4652
4833
|
return Promise.reject(o);
|
|
4653
4834
|
}
|
|
4654
4835
|
let n = e.data?.data?._message_box;
|
|
4655
|
-
return n !== void 0 && (
|
|
4836
|
+
return n !== void 0 && (Fe(n) && (n = {
|
|
4656
4837
|
message: e.data?.data?._message_box
|
|
4657
|
-
}),
|
|
4838
|
+
}), ut({
|
|
4658
4839
|
title: "提示",
|
|
4659
4840
|
type: "success",
|
|
4660
4841
|
grouping: !0,
|
|
@@ -4662,28 +4843,28 @@ const fi = {
|
|
|
4662
4843
|
})), e.data;
|
|
4663
4844
|
},
|
|
4664
4845
|
onRejected(e) {
|
|
4665
|
-
return
|
|
4846
|
+
return Ge.isCancel(e) ? Promise.reject("") : (mt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
|
|
4666
4847
|
}
|
|
4667
|
-
},
|
|
4848
|
+
}, Ba = [
|
|
4668
4849
|
{
|
|
4669
|
-
request:
|
|
4670
|
-
response:
|
|
4850
|
+
request: Bo,
|
|
4851
|
+
response: Oo
|
|
4671
4852
|
},
|
|
4672
4853
|
{
|
|
4673
|
-
request:
|
|
4674
|
-
response:
|
|
4854
|
+
request: Ta,
|
|
4855
|
+
response: $a
|
|
4675
4856
|
}
|
|
4676
4857
|
];
|
|
4677
|
-
function
|
|
4678
|
-
const t =
|
|
4858
|
+
function nt(e = {}) {
|
|
4859
|
+
const t = Te.axios || {}, n = q(t, e || {}), o = Ge.create({
|
|
4679
4860
|
...n
|
|
4680
4861
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
4681
4862
|
});
|
|
4682
|
-
return
|
|
4863
|
+
return Ba.forEach((l) => {
|
|
4683
4864
|
o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
|
|
4684
4865
|
}), o;
|
|
4685
4866
|
}
|
|
4686
|
-
const
|
|
4867
|
+
const Jt = nt(), Oa = {
|
|
4687
4868
|
beforeMount(e, t) {
|
|
4688
4869
|
e.clickOutsideEvent = function(n) {
|
|
4689
4870
|
e === n.target || e.contains(n.target) || t.value(n, e);
|
|
@@ -4692,23 +4873,23 @@ const yi = Qe(), _i = {
|
|
|
4692
4873
|
unmounted(e) {
|
|
4693
4874
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
4694
4875
|
}
|
|
4695
|
-
},
|
|
4876
|
+
}, oe = lo(), Pa = {
|
|
4696
4877
|
mounted: (e, t) => {
|
|
4697
4878
|
e !== null && (t.value, e.oncontextmenu = (n) => {
|
|
4698
|
-
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 });
|
|
4699
4880
|
});
|
|
4700
4881
|
}
|
|
4701
|
-
},
|
|
4882
|
+
}, Aa = {
|
|
4702
4883
|
mounted(e) {
|
|
4703
4884
|
}
|
|
4704
4885
|
};
|
|
4705
|
-
function
|
|
4886
|
+
function ht(e, t) {
|
|
4706
4887
|
let n = e[`offset${t}`], o = e.offsetParent;
|
|
4707
4888
|
for (; o; )
|
|
4708
4889
|
n += o[`offset${t}`], o = o.offsetParent;
|
|
4709
4890
|
return n;
|
|
4710
4891
|
}
|
|
4711
|
-
const
|
|
4892
|
+
const Ra = {
|
|
4712
4893
|
mounted: (e, t) => {
|
|
4713
4894
|
if (e === null || !t.value.dev)
|
|
4714
4895
|
return;
|
|
@@ -4719,75 +4900,64 @@ const ki = {
|
|
|
4719
4900
|
n.classList.add("devtool-hover");
|
|
4720
4901
|
const o = document.createElement("i");
|
|
4721
4902
|
o.className = "devtool-item-wrapper", n.onmouseover = () => {
|
|
4722
|
-
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";
|
|
4723
4904
|
};
|
|
4724
4905
|
const l = document.createElement("span");
|
|
4725
4906
|
l.className = "dev-action-edit", l.title = "编辑";
|
|
4726
4907
|
const s = document.createElement("i");
|
|
4727
4908
|
s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (p) => {
|
|
4728
|
-
|
|
4909
|
+
oe.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
|
|
4729
4910
|
}, o.appendChild(l);
|
|
4730
|
-
const
|
|
4731
|
-
|
|
4732
|
-
const
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
}, 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);
|
|
4736
4917
|
}
|
|
4737
|
-
},
|
|
4918
|
+
}, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4738
4919
|
__proto__: null,
|
|
4739
|
-
devtool:
|
|
4740
|
-
outClick:
|
|
4741
|
-
resize:
|
|
4742
|
-
rightClick:
|
|
4920
|
+
devtool: Ra,
|
|
4921
|
+
outClick: Oa,
|
|
4922
|
+
resize: Aa,
|
|
4923
|
+
rightClick: Pa
|
|
4743
4924
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4744
|
-
let
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
return t && W.hasRoute(t) ? !0 : W.getRoutes().some((n) => n.path === e.path);
|
|
4748
|
-
};
|
|
4749
|
-
function La(e) {
|
|
4750
|
-
return e ? Qe(G(Ie.axios, e)) : _e;
|
|
4925
|
+
let Se;
|
|
4926
|
+
function Ki(e) {
|
|
4927
|
+
return e ? nt(q(Te.axios, e)) : Se;
|
|
4751
4928
|
}
|
|
4752
|
-
function
|
|
4753
|
-
const t =
|
|
4754
|
-
l.unshift(o), l.forEach((
|
|
4755
|
-
|
|
4756
|
-
}), t?.mock &&
|
|
4757
|
-
const s =
|
|
4758
|
-
|
|
4759
|
-
"X-Token":
|
|
4760
|
-
})),
|
|
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"));
|
|
4761
4938
|
}
|
|
4762
|
-
function
|
|
4939
|
+
function Ma(e, t = {}) {
|
|
4763
4940
|
Object.keys(t).forEach((n) => {
|
|
4764
4941
|
e.component(n, t[n]);
|
|
4765
4942
|
});
|
|
4766
4943
|
}
|
|
4767
|
-
function
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
const n = Kt(fe());
|
|
4773
|
-
if (!n.length)
|
|
4774
|
-
return;
|
|
4775
|
-
const o = ke(t.rawCustomRouter, n);
|
|
4776
|
-
o.forEach((l) => {
|
|
4777
|
-
Si(l) || W.addRoute(l);
|
|
4778
|
-
}), t.setCustomRoutes(o);
|
|
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);
|
|
4779
4949
|
}
|
|
4780
|
-
function
|
|
4950
|
+
function ja(e, t) {
|
|
4781
4951
|
t.forEach((n) => {
|
|
4782
|
-
|
|
4952
|
+
ie(n) && (n = [n]), e.use(...n);
|
|
4783
4953
|
});
|
|
4784
4954
|
}
|
|
4785
|
-
function
|
|
4955
|
+
function Na(e, t = {}) {
|
|
4786
4956
|
Object.keys(t).forEach((n) => {
|
|
4787
4957
|
e.directive(n, t[n]);
|
|
4788
4958
|
});
|
|
4789
4959
|
}
|
|
4790
|
-
function
|
|
4960
|
+
function Va(e = {}) {
|
|
4791
4961
|
const t = ["app", "settings", "user"];
|
|
4792
4962
|
Object.keys(e).forEach((n) => {
|
|
4793
4963
|
if (t.indexOf(n) !== -1) {
|
|
@@ -4797,50 +4967,50 @@ function Ti(e = {}) {
|
|
|
4797
4967
|
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
|
|
4798
4968
|
});
|
|
4799
4969
|
}
|
|
4800
|
-
function
|
|
4801
|
-
|
|
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 || []);
|
|
4802
4972
|
}
|
|
4803
|
-
function
|
|
4973
|
+
function qa(e) {
|
|
4804
4974
|
return {
|
|
4805
|
-
components: { VIcon:
|
|
4806
|
-
directives:
|
|
4975
|
+
components: { VIcon: oo },
|
|
4976
|
+
directives: La,
|
|
4807
4977
|
use: [
|
|
4808
|
-
|
|
4809
|
-
[
|
|
4978
|
+
ne,
|
|
4979
|
+
[Cn, { locale: gt, ...e.settings?.ElementPlus }]
|
|
4810
4980
|
]
|
|
4811
4981
|
};
|
|
4812
4982
|
}
|
|
4813
4983
|
export {
|
|
4814
|
-
|
|
4984
|
+
Vt as BaseSso,
|
|
4815
4985
|
Le as Container,
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4986
|
+
zi as DingTalk,
|
|
4987
|
+
Gi as Github,
|
|
4988
|
+
jt as Layout,
|
|
4989
|
+
G as MenuType,
|
|
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,
|
|
4829
4999
|
Oe as getHttp,
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
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
|
|
4845
5015
|
};
|
|
4846
5016
|
//# sourceMappingURL=index.es.js.map
|