@okiss/oms 0.0.48 → 0.0.50
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 +541 -518
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/scaffold/EmptyRole.vue.d.ts +2 -0
- package/dist/types/types.d.ts +2 -1
- package/dist/types/utils/sso/base.d.ts +20 -0
- package/dist/types/utils/sso/dingtalk.d.ts +15 -0
- package/dist/types/utils/sso/github.d.ts +10 -0
- package/dist/types/utils/sso/index.d.ts +6 -33
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as q, onBeforeMount as ze, provide as
|
|
5
|
-
import { addNewStyle as
|
|
1
|
+
var Ct = Object.defineProperty;
|
|
2
|
+
var Tt = (e, t, l) => t in e ? Ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var R = (e, t, l) => (Tt(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { defineComponent as q, onBeforeMount as ze, provide as Ot, resolveComponent as v, openBlock as i, createBlock as m, createVNode as u, computed as j, createTextVNode as k, withCtx as r, TransitionGroup as Bt, createElementBlock as h, Fragment as E, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as $, toRefs as At, ref as M, normalizeStyle as Pt, createElementVNode as _, Transition as Rt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as w, withDirectives as ie, vModelText as he, resolveDirective as Lt, onMounted as Mt, isRef as jt, getCurrentInstance as Dt, h as Nt, toRaw as Vt, createApp as qt } from "vue";
|
|
5
|
+
import { addNewStyle as Ut, addNewStyleTag as Ht, queryParams as Ft, logGroup as Gt, compactObject as Qe, showEleByClassName as Xe, waterMarker as Jt, Cache as be, isExternal as Ve, getQueryParam as Ye, createIFrame as zt, strVarReplace as Q, obj2Param as Kt, isObject as X, isString as $e, effectDataTrans as Wt, isArray as et } from "@okiss/utils";
|
|
6
6
|
import _e from "mockjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import Zt, { cloneDeep as y, merge as A, get as ne, unset as tt, isObject as Qt } from "lodash";
|
|
8
|
+
import lt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
9
|
import Ie from "axios";
|
|
10
10
|
import N from "js-cookie";
|
|
11
|
-
import { createStore as
|
|
12
|
-
import
|
|
11
|
+
import { createStore as Xt, useStore as nt, mapGetters as Ce } from "vuex";
|
|
12
|
+
import Yt, { ElMessage as el, ElMessageBox as tl, ElCard as ll, ElRow as nl, ElCol as ol } from "element-plus";
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
|
-
import { useRoute as
|
|
16
|
-
import { ElBreadcrumbItem as
|
|
15
|
+
import { useRoute as pe, onBeforeRouteLeave as al, useRouter as sl, createRouter as il, createWebHashHistory as rl, onBeforeRouteUpdate as cl } from "vue-router";
|
|
16
|
+
import { ElBreadcrumbItem as ul, ElBreadcrumb as pl, ElRow as ae, ElMain as dl, ElAside as ml, ElContainer as fl, ElDivider as ot, ElButton as ue, ElOption as Te, ElSelect as Oe, ElFormItem as at, ElForm as st, ElCol as de, ElDrawer as it, ElDropdownItem as hl, ElDropdownMenu as bl, ElDropdown as _l, ElMenuItem as yl, ElSubMenu as vl, ElOptionGroup as gl, ElMenu as kl, ElScrollbar as wl, ElBacktop as Sl, ElMessage as xl, ElAlert as Be, ElTree as El, ElCard as Ae } from "element-plus/es";
|
|
17
17
|
import "element-plus/es/components/base/style/css";
|
|
18
18
|
import "element-plus/es/components/row/style/css";
|
|
19
19
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -23,7 +23,7 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
23
23
|
import "element-plus/es/components/col/style/css";
|
|
24
24
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
25
25
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
26
|
-
import * as
|
|
26
|
+
import * as $l from "path-to-regexp";
|
|
27
27
|
import "element-plus/es/components/form/style/css";
|
|
28
28
|
import "element-plus/es/components/form-item/style/css";
|
|
29
29
|
import "element-plus/es/components/select/style/css";
|
|
@@ -33,22 +33,22 @@ 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 { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as
|
|
36
|
+
import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as Il, setUploadHeaderHandle as Cl, VIcon as Tl } from "@okiss/vbtf";
|
|
37
37
|
import "normalize.css/normalize.css";
|
|
38
38
|
import "@okiss/vbtf/style.css";
|
|
39
|
-
import
|
|
39
|
+
import Ol from "mitt";
|
|
40
40
|
import "element-plus/es/components/scrollbar/style/css";
|
|
41
41
|
import "element-plus/es/components/menu/style/css";
|
|
42
42
|
import "element-plus/es/components/sub-menu/style/css";
|
|
43
43
|
import "element-plus/es/components/menu-item/style/css";
|
|
44
44
|
import "element-plus/es/components/option-group/style/css";
|
|
45
45
|
import "element-plus/es/components/backtop/style/css";
|
|
46
|
-
import { useEventListener as
|
|
46
|
+
import { useEventListener as Bl } from "@vueuse/core";
|
|
47
47
|
import "element-plus/es/components/alert/style/css";
|
|
48
48
|
import "element-plus/es/components/card/style/css";
|
|
49
49
|
import "element-plus/es/components/tree/style/css";
|
|
50
|
-
import
|
|
51
|
-
import { MD5 as
|
|
50
|
+
import Al from "vue3-markdown-it";
|
|
51
|
+
import { MD5 as Pl } from "crypto-js";
|
|
52
52
|
import "element-plus/es/components/message/style/css";
|
|
53
53
|
import ke from "nprogress";
|
|
54
54
|
import "nprogress/nprogress.css";
|
|
@@ -58,27 +58,27 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
58
58
|
return typeof e[l] < "u" ? e[l] : t;
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
const
|
|
61
|
+
const Rl = /* @__PURE__ */ q({
|
|
62
62
|
__name: "App",
|
|
63
63
|
setup(e) {
|
|
64
64
|
var t, l, n, o;
|
|
65
65
|
return ze(() => {
|
|
66
66
|
var s;
|
|
67
67
|
const a = document.getElementById("preloader");
|
|
68
|
-
a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(),
|
|
68
|
+
a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Ut("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ht(`.iconfont {
|
|
69
69
|
font-size: 19px;
|
|
70
70
|
font-style: normal;
|
|
71
71
|
-webkit-font-smoothing: antialiased;
|
|
72
72
|
font-family: iconfont !important;
|
|
73
73
|
}`));
|
|
74
|
-
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath &&
|
|
75
|
-
const
|
|
76
|
-
return i(), m(
|
|
74
|
+
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ot("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
|
|
75
|
+
const p = v("router-view");
|
|
76
|
+
return i(), m(p);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
|
|
81
|
-
const
|
|
81
|
+
const Ll = {
|
|
82
82
|
saveApi: "/save",
|
|
83
83
|
afterSubmit: "",
|
|
84
84
|
afterReset: "goback",
|
|
@@ -467,7 +467,7 @@ const Pl = {
|
|
|
467
467
|
type: "success"
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
],
|
|
470
|
+
], Ml = {
|
|
471
471
|
exportAble: !0,
|
|
472
472
|
filter: [
|
|
473
473
|
{
|
|
@@ -564,7 +564,7 @@ const Pl = {
|
|
|
564
564
|
}
|
|
565
565
|
],
|
|
566
566
|
normalButton: [
|
|
567
|
-
...
|
|
567
|
+
...Zt.cloneDeep(qe),
|
|
568
568
|
{
|
|
569
569
|
type: "jump",
|
|
570
570
|
target: "/user/form",
|
|
@@ -576,7 +576,7 @@ const Pl = {
|
|
|
576
576
|
],
|
|
577
577
|
selectedNotice: "当前共勾选: {selectedCount} 条",
|
|
578
578
|
listApi: "/user/list"
|
|
579
|
-
},
|
|
579
|
+
}, jl = {
|
|
580
580
|
code: 0,
|
|
581
581
|
data: {
|
|
582
582
|
"list|0-100": [
|
|
@@ -597,7 +597,7 @@ const Pl = {
|
|
|
597
597
|
"page|1-5": 2
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
},
|
|
600
|
+
}, Dl = {
|
|
601
601
|
afterSubmit: "",
|
|
602
602
|
afterReset: "goback",
|
|
603
603
|
formItems: [
|
|
@@ -634,7 +634,7 @@ const Pl = {
|
|
|
634
634
|
label: "span"
|
|
635
635
|
}
|
|
636
636
|
]
|
|
637
|
-
},
|
|
637
|
+
}, Nl = {
|
|
638
638
|
afterSubmit: "",
|
|
639
639
|
afterReset: "",
|
|
640
640
|
formItems: [
|
|
@@ -673,7 +673,7 @@ const Pl = {
|
|
|
673
673
|
label: "span"
|
|
674
674
|
}
|
|
675
675
|
]
|
|
676
|
-
},
|
|
676
|
+
}, Vl = { form: Ll, table: Ml, listMock: jl, layoutForm: Dl, layoutSection: Nl }, ql = [
|
|
677
677
|
{
|
|
678
678
|
method: ee.POST,
|
|
679
679
|
url: "/login",
|
|
@@ -717,16 +717,15 @@ const Pl = {
|
|
|
717
717
|
{
|
|
718
718
|
url: "/user/list",
|
|
719
719
|
method: ee.GET,
|
|
720
|
-
response: (e) =>
|
|
720
|
+
response: (e) => Vl.listMock
|
|
721
721
|
}
|
|
722
|
-
],
|
|
723
|
-
...
|
|
724
|
-
],
|
|
722
|
+
], Ul = [
|
|
723
|
+
...ql
|
|
724
|
+
], Hl = {
|
|
725
725
|
baseURL: "/api",
|
|
726
726
|
withCredentials: !0,
|
|
727
|
-
timeout: 5e3,
|
|
728
727
|
cacheEnable: !0
|
|
729
|
-
},
|
|
728
|
+
}, rt = {
|
|
730
729
|
title: "oms",
|
|
731
730
|
fixedHeader: !1,
|
|
732
731
|
sidebarLogo: !0,
|
|
@@ -734,13 +733,13 @@ const Pl = {
|
|
|
734
733
|
closeNavNotice: !1,
|
|
735
734
|
navBarNotice: "",
|
|
736
735
|
hasNewMessage: !0,
|
|
737
|
-
showPageJsonSchema: !
|
|
736
|
+
showPageJsonSchema: !1,
|
|
738
737
|
loginTips: "",
|
|
739
738
|
sso: {},
|
|
740
739
|
ElementPlus: {
|
|
741
740
|
size: "default",
|
|
742
741
|
zIndex: 3e3,
|
|
743
|
-
locale:
|
|
742
|
+
locale: lt
|
|
744
743
|
},
|
|
745
744
|
nav: [],
|
|
746
745
|
whiteRoutes: ["/login"],
|
|
@@ -752,29 +751,29 @@ const Pl = {
|
|
|
752
751
|
},
|
|
753
752
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
|
|
754
753
|
}, me = {
|
|
755
|
-
axios:
|
|
756
|
-
settings:
|
|
754
|
+
axios: Hl,
|
|
755
|
+
settings: rt,
|
|
757
756
|
plugins: [],
|
|
758
757
|
mock: !1
|
|
759
758
|
}, we = {};
|
|
760
|
-
function
|
|
759
|
+
function ct(e) {
|
|
761
760
|
e.forEach((t) => {
|
|
762
|
-
const l =
|
|
761
|
+
const l = ut(t);
|
|
763
762
|
we[`${t.method}::${l}`] = t;
|
|
764
763
|
});
|
|
765
764
|
}
|
|
766
|
-
|
|
767
|
-
function
|
|
765
|
+
ct(Ul);
|
|
766
|
+
function ut(e) {
|
|
768
767
|
var n;
|
|
769
768
|
let t = e.url, l = e.baseURL || ((n = me.axios) == null ? void 0 : n.baseURL);
|
|
770
769
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
771
770
|
}
|
|
772
|
-
function
|
|
771
|
+
function Fl() {
|
|
773
772
|
Object.keys(we).forEach((e) => {
|
|
774
|
-
const t = we[e], l =
|
|
773
|
+
const t = we[e], l = ut(t);
|
|
775
774
|
_e.mock(l, t.method, function(n) {
|
|
776
|
-
const { url: o, type: a, body: s } = n,
|
|
777
|
-
return
|
|
775
|
+
const { url: o, type: a, body: s } = n, p = Ft(o), c = s ? JSON.parse(s) : {}, d = t.response({ query: p, data: c }), f = _e.mock(d);
|
|
776
|
+
return Gt(o, { type: a, query: p, data: c, response: f }), _e.mock(f);
|
|
778
777
|
});
|
|
779
778
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
780
779
|
}
|
|
@@ -782,14 +781,14 @@ const Le = "oms:token";
|
|
|
782
781
|
function Me() {
|
|
783
782
|
return N.get(Le) || "";
|
|
784
783
|
}
|
|
785
|
-
function
|
|
784
|
+
function Gl(e) {
|
|
786
785
|
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (S.state.settings.tokenExpire || 864e5));
|
|
787
786
|
return N.set(Le, e, { expires: t });
|
|
788
787
|
}
|
|
789
788
|
function pt() {
|
|
790
789
|
return N.remove(Le);
|
|
791
790
|
}
|
|
792
|
-
const
|
|
791
|
+
const Jl = {
|
|
793
792
|
name: "",
|
|
794
793
|
nickname: "",
|
|
795
794
|
avatar: "",
|
|
@@ -802,12 +801,12 @@ const Fl = {
|
|
|
802
801
|
roleIds: [],
|
|
803
802
|
path: "",
|
|
804
803
|
env: ""
|
|
805
|
-
},
|
|
804
|
+
}, zl = {
|
|
806
805
|
namespaced: !0,
|
|
807
|
-
state:
|
|
806
|
+
state: Jl,
|
|
808
807
|
mutations: {
|
|
809
808
|
updateToken(e, t) {
|
|
810
|
-
e.token = t,
|
|
809
|
+
e.token = t, Gl(t);
|
|
811
810
|
},
|
|
812
811
|
removeToken(e) {
|
|
813
812
|
e.token = "", pt();
|
|
@@ -850,8 +849,8 @@ const Fl = {
|
|
|
850
849
|
method: "POST",
|
|
851
850
|
data: n
|
|
852
851
|
}).then((s) => {
|
|
853
|
-
var
|
|
854
|
-
e("updateToken", (
|
|
852
|
+
var p;
|
|
853
|
+
e("updateToken", (p = s.data) == null ? void 0 : p.token), o(!0);
|
|
855
854
|
}).catch((s) => {
|
|
856
855
|
a(s);
|
|
857
856
|
}) : a("http client not init");
|
|
@@ -866,8 +865,8 @@ const Fl = {
|
|
|
866
865
|
url: "/user/info",
|
|
867
866
|
method: "GET"
|
|
868
867
|
}).then((o) => {
|
|
869
|
-
var
|
|
870
|
-
const a = ((
|
|
868
|
+
var p, c, d, f, b, g;
|
|
869
|
+
const a = ((p = o.data) == null ? void 0 : p.role_ids) || [];
|
|
871
870
|
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (f = o.data) == null ? void 0 : f.env });
|
|
872
871
|
const s = ((b = o.data) == null ? void 0 : b.website) || {};
|
|
873
872
|
e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (g = o.data) == null ? void 0 : g.name), l(!0);
|
|
@@ -894,9 +893,9 @@ const Fl = {
|
|
|
894
893
|
});
|
|
895
894
|
}
|
|
896
895
|
}
|
|
897
|
-
},
|
|
896
|
+
}, Kl = y(rt), Wl = {
|
|
898
897
|
namespaced: !0,
|
|
899
|
-
state:
|
|
898
|
+
state: Kl,
|
|
900
899
|
mutations: {
|
|
901
900
|
updateSettings(e, t) {
|
|
902
901
|
e = A(e, t);
|
|
@@ -907,7 +906,7 @@ const Fl = {
|
|
|
907
906
|
e("updateSettings", l);
|
|
908
907
|
}
|
|
909
908
|
}
|
|
910
|
-
},
|
|
909
|
+
}, Zl = {
|
|
911
910
|
sidebar: {
|
|
912
911
|
opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
|
|
913
912
|
withoutAnimation: !1
|
|
@@ -917,9 +916,9 @@ const Fl = {
|
|
|
917
916
|
currentRouteMeta: {},
|
|
918
917
|
builderSchema: {},
|
|
919
918
|
baseURL: ""
|
|
920
|
-
},
|
|
919
|
+
}, Ql = {
|
|
921
920
|
namespaced: !0,
|
|
922
|
-
state:
|
|
921
|
+
state: Zl,
|
|
923
922
|
mutations: {
|
|
924
923
|
TOGGLE_SIDEBAR: (e) => {
|
|
925
924
|
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
|
|
@@ -966,12 +965,12 @@ const Fl = {
|
|
|
966
965
|
e("SET_BASE_API", t);
|
|
967
966
|
}
|
|
968
967
|
}
|
|
969
|
-
},
|
|
968
|
+
}, Xl = {
|
|
970
969
|
currentCellItem: {}
|
|
971
970
|
// form/sub-form 当前单元格编辑数据
|
|
972
|
-
},
|
|
971
|
+
}, Yl = {
|
|
973
972
|
namespaced: !0,
|
|
974
|
-
state:
|
|
973
|
+
state: Xl,
|
|
975
974
|
mutations: {
|
|
976
975
|
SET_CURRENT_CELLITEM: (e, t) => {
|
|
977
976
|
e.currentCellItem = t;
|
|
@@ -982,7 +981,7 @@ const Fl = {
|
|
|
982
981
|
e("SET_CURRENT_CELLITEM", t);
|
|
983
982
|
}
|
|
984
983
|
}
|
|
985
|
-
}, S =
|
|
984
|
+
}, S = Xt({
|
|
986
985
|
state: void 0,
|
|
987
986
|
getters: {
|
|
988
987
|
http: (e) => e.http,
|
|
@@ -1009,12 +1008,12 @@ const Fl = {
|
|
|
1009
1008
|
}
|
|
1010
1009
|
},
|
|
1011
1010
|
modules: {
|
|
1012
|
-
user:
|
|
1013
|
-
settings:
|
|
1014
|
-
app:
|
|
1015
|
-
builderSchema:
|
|
1011
|
+
user: zl,
|
|
1012
|
+
settings: Wl,
|
|
1013
|
+
app: Ql,
|
|
1014
|
+
builderSchema: Yl
|
|
1016
1015
|
}
|
|
1017
|
-
}),
|
|
1016
|
+
}), en = el, Ue = tl, tn = Ie.CancelToken, re = {
|
|
1018
1017
|
taskList: {},
|
|
1019
1018
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1020
1019
|
uniqueId(e) {
|
|
@@ -1050,39 +1049,39 @@ const Fl = {
|
|
|
1050
1049
|
const t = this.uniqueId(e);
|
|
1051
1050
|
return this.cacheList.delete(t);
|
|
1052
1051
|
}
|
|
1053
|
-
},
|
|
1052
|
+
}, ln = {
|
|
1054
1053
|
onFulfilled: function(e) {
|
|
1055
|
-
return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new
|
|
1054
|
+
return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new tn((t) => {
|
|
1056
1055
|
re.addTask(e, t);
|
|
1057
1056
|
})), e;
|
|
1058
1057
|
},
|
|
1059
1058
|
onRejected(e) {
|
|
1060
1059
|
return Promise.reject(e);
|
|
1061
1060
|
}
|
|
1062
|
-
},
|
|
1061
|
+
}, nn = {
|
|
1063
1062
|
onFulfilled: function(e) {
|
|
1064
1063
|
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && re.addCache(e.config, e.data), e;
|
|
1065
1064
|
},
|
|
1066
1065
|
onRejected(e) {
|
|
1067
1066
|
return Promise.reject(e);
|
|
1068
1067
|
}
|
|
1069
|
-
},
|
|
1068
|
+
}, dt = {};
|
|
1070
1069
|
function Si(e, t) {
|
|
1071
|
-
|
|
1070
|
+
dt[e] = t;
|
|
1072
1071
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1072
|
+
function on(e) {
|
|
1073
|
+
return dt[e];
|
|
1075
1074
|
}
|
|
1076
|
-
const
|
|
1075
|
+
const an = /* @__PURE__ */ q({
|
|
1077
1076
|
name: "Dashboard",
|
|
1078
1077
|
setup() {
|
|
1079
|
-
const e =
|
|
1080
|
-
if (
|
|
1081
|
-
return () =>
|
|
1082
|
-
const
|
|
1083
|
-
return () =>
|
|
1078
|
+
const e = nt(), t = on("dashboard");
|
|
1079
|
+
if (t)
|
|
1080
|
+
return () => u("span", null, [u(t, null, null)]);
|
|
1081
|
+
const l = j(() => e.getters.name);
|
|
1082
|
+
return () => u("div", {
|
|
1084
1083
|
class: "dashboard-container"
|
|
1085
|
-
}, [
|
|
1084
|
+
}, [u("div", {
|
|
1086
1085
|
class: "dashboard-text"
|
|
1087
1086
|
}, [k("Hi "), l.value, k(" 😄")])]);
|
|
1088
1087
|
}
|
|
@@ -1092,8 +1091,8 @@ const I = (e, t) => {
|
|
|
1092
1091
|
for (const [n, o] of t)
|
|
1093
1092
|
l[n] = o;
|
|
1094
1093
|
return l;
|
|
1095
|
-
},
|
|
1096
|
-
const
|
|
1094
|
+
}, sn = /* @__PURE__ */ I(an, [["__scopeId", "data-v-3122b6c7"]]);
|
|
1095
|
+
const rn = {
|
|
1097
1096
|
data() {
|
|
1098
1097
|
return {
|
|
1099
1098
|
levelList: null
|
|
@@ -1125,7 +1124,7 @@ const an = {
|
|
|
1125
1124
|
},
|
|
1126
1125
|
pathCompile(e) {
|
|
1127
1126
|
const { params: t } = this.$route;
|
|
1128
|
-
return
|
|
1127
|
+
return $l.compile(e)(t);
|
|
1129
1128
|
},
|
|
1130
1129
|
handleLink(e) {
|
|
1131
1130
|
const { redirect: t, path: l } = e;
|
|
@@ -1136,27 +1135,27 @@ const an = {
|
|
|
1136
1135
|
this.$router.push(this.pathCompile(l));
|
|
1137
1136
|
}
|
|
1138
1137
|
}
|
|
1139
|
-
},
|
|
1138
|
+
}, cn = {
|
|
1140
1139
|
key: 0,
|
|
1141
1140
|
class: "no-redirect"
|
|
1142
|
-
},
|
|
1143
|
-
function
|
|
1144
|
-
const s =
|
|
1145
|
-
return i(), m(
|
|
1141
|
+
}, un = ["onClick"];
|
|
1142
|
+
function pn(e, t, l, n, o, a) {
|
|
1143
|
+
const s = ul, p = pl;
|
|
1144
|
+
return i(), m(p, {
|
|
1146
1145
|
class: "app-breadcrumb",
|
|
1147
1146
|
separator: "/"
|
|
1148
1147
|
}, {
|
|
1149
1148
|
default: r(() => [
|
|
1150
|
-
|
|
1149
|
+
u(Bt, { name: "breadcrumb" }, {
|
|
1151
1150
|
default: r(() => [
|
|
1152
|
-
(i(!0), h(E, null,
|
|
1151
|
+
(i(!0), h(E, null, B(o.levelList, (c, d) => (i(), m(s, {
|
|
1153
1152
|
key: c.path
|
|
1154
1153
|
}, {
|
|
1155
1154
|
default: r(() => [
|
|
1156
|
-
c.path.indexOf("/DIR_") === 0 && c.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span",
|
|
1155
|
+
c.path.indexOf("/DIR_") === 0 && c.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", cn, O(c.meta.title), 1)) : (i(), h("a", {
|
|
1157
1156
|
key: 1,
|
|
1158
1157
|
onClick: (f) => a.handleLink(c)
|
|
1159
|
-
},
|
|
1158
|
+
}, O(c.meta.title), 9, un))
|
|
1160
1159
|
]),
|
|
1161
1160
|
_: 2
|
|
1162
1161
|
}, 1024))), 128))
|
|
@@ -1167,7 +1166,7 @@ function cn(e, t, l, n, o, a) {
|
|
|
1167
1166
|
_: 1
|
|
1168
1167
|
});
|
|
1169
1168
|
}
|
|
1170
|
-
const
|
|
1169
|
+
const dn = /* @__PURE__ */ I(rn, [["render", pn], ["__scopeId", "data-v-fa74804e"]]), mn = {
|
|
1171
1170
|
name: "Hamburger",
|
|
1172
1171
|
props: {
|
|
1173
1172
|
isActive: {
|
|
@@ -1182,31 +1181,31 @@ const pn = /* @__PURE__ */ I(an, [["render", cn], ["__scopeId", "data-v-fa74804e
|
|
|
1182
1181
|
}
|
|
1183
1182
|
}
|
|
1184
1183
|
};
|
|
1185
|
-
function
|
|
1184
|
+
function fn(e, t, l, n, o, a) {
|
|
1186
1185
|
const s = v("v-icon");
|
|
1187
1186
|
return i(), h("div", {
|
|
1188
1187
|
style: { padding: "0 15px" },
|
|
1189
|
-
onClick: t[0] || (t[0] = (...
|
|
1188
|
+
onClick: t[0] || (t[0] = (...p) => a.toggleClick && a.toggleClick(...p))
|
|
1190
1189
|
}, [
|
|
1191
|
-
|
|
1190
|
+
u(s, {
|
|
1192
1191
|
class: H({ "is-active": l.isActive }),
|
|
1193
1192
|
name: "ra-leftalignment"
|
|
1194
1193
|
}, null, 8, ["class"])
|
|
1195
1194
|
]);
|
|
1196
1195
|
}
|
|
1197
|
-
const
|
|
1198
|
-
const
|
|
1199
|
-
function
|
|
1200
|
-
const l = ae, n =
|
|
1196
|
+
const hn = /* @__PURE__ */ I(mn, [["render", fn]]);
|
|
1197
|
+
const bn = {};
|
|
1198
|
+
function _n(e, t) {
|
|
1199
|
+
const l = ae, n = dl, o = ml, a = fl;
|
|
1201
1200
|
return i(), m(a, { style: { width: "100%", height: "100%" } }, {
|
|
1202
1201
|
default: r(() => [
|
|
1203
|
-
|
|
1202
|
+
u(l, { class: "aside" }, {
|
|
1204
1203
|
default: r(() => [
|
|
1205
1204
|
le(e.$slots, "left-aside", {}, void 0, !0)
|
|
1206
1205
|
]),
|
|
1207
1206
|
_: 3
|
|
1208
1207
|
}),
|
|
1209
|
-
|
|
1208
|
+
u(n, {
|
|
1210
1209
|
class: "main",
|
|
1211
1210
|
style: { margin: "0 10px" }
|
|
1212
1211
|
}, {
|
|
@@ -1215,7 +1214,7 @@ function hn(e, t) {
|
|
|
1215
1214
|
]),
|
|
1216
1215
|
_: 3
|
|
1217
1216
|
}),
|
|
1218
|
-
|
|
1217
|
+
u(o, {
|
|
1219
1218
|
class: "aside",
|
|
1220
1219
|
width: "350px",
|
|
1221
1220
|
style: { padding: "20px" }
|
|
@@ -1229,7 +1228,7 @@ function hn(e, t) {
|
|
|
1229
1228
|
_: 3
|
|
1230
1229
|
});
|
|
1231
1230
|
}
|
|
1232
|
-
const
|
|
1231
|
+
const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b"]]), yn = {
|
|
1233
1232
|
type: "input",
|
|
1234
1233
|
name: "文本框",
|
|
1235
1234
|
default: {
|
|
@@ -1297,7 +1296,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1297
1296
|
}
|
|
1298
1297
|
}
|
|
1299
1298
|
]
|
|
1300
|
-
},
|
|
1299
|
+
}, vn = {
|
|
1301
1300
|
type: "number",
|
|
1302
1301
|
name: "数字",
|
|
1303
1302
|
default: {
|
|
@@ -1339,7 +1338,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1339
1338
|
}
|
|
1340
1339
|
}
|
|
1341
1340
|
]
|
|
1342
|
-
},
|
|
1341
|
+
}, gn = {
|
|
1343
1342
|
type: "number-range",
|
|
1344
1343
|
name: "数字区间",
|
|
1345
1344
|
default: {
|
|
@@ -1380,7 +1379,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1380
1379
|
}
|
|
1381
1380
|
}
|
|
1382
1381
|
]
|
|
1383
|
-
},
|
|
1382
|
+
}, kn = {
|
|
1384
1383
|
type: "select",
|
|
1385
1384
|
name: "下拉框",
|
|
1386
1385
|
default: {
|
|
@@ -1486,7 +1485,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1486
1485
|
const t = y(e);
|
|
1487
1486
|
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;
|
|
1488
1487
|
}
|
|
1489
|
-
},
|
|
1488
|
+
}, wn = {
|
|
1490
1489
|
type: "radio",
|
|
1491
1490
|
name: "单选框",
|
|
1492
1491
|
default: {
|
|
@@ -1532,7 +1531,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1532
1531
|
label: "默认值"
|
|
1533
1532
|
}
|
|
1534
1533
|
]
|
|
1535
|
-
},
|
|
1534
|
+
}, Sn = {
|
|
1536
1535
|
type: "switch",
|
|
1537
1536
|
name: "开关",
|
|
1538
1537
|
default: {
|
|
@@ -1588,7 +1587,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1588
1587
|
}
|
|
1589
1588
|
}
|
|
1590
1589
|
]
|
|
1591
|
-
},
|
|
1590
|
+
}, xn = {
|
|
1592
1591
|
type: "code",
|
|
1593
1592
|
name: "Code",
|
|
1594
1593
|
default: {
|
|
@@ -1608,7 +1607,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1608
1607
|
label: "字段key"
|
|
1609
1608
|
}
|
|
1610
1609
|
]
|
|
1611
|
-
},
|
|
1610
|
+
}, En = {
|
|
1612
1611
|
type: "json",
|
|
1613
1612
|
name: "json",
|
|
1614
1613
|
default: {
|
|
@@ -1628,7 +1627,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1628
1627
|
label: "字段key"
|
|
1629
1628
|
}
|
|
1630
1629
|
]
|
|
1631
|
-
},
|
|
1630
|
+
}, $n = {
|
|
1632
1631
|
type: "upload",
|
|
1633
1632
|
name: "上传",
|
|
1634
1633
|
default: {
|
|
@@ -1648,7 +1647,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1648
1647
|
label: "字段key"
|
|
1649
1648
|
}
|
|
1650
1649
|
]
|
|
1651
|
-
},
|
|
1650
|
+
}, In = {
|
|
1652
1651
|
type: "template",
|
|
1653
1652
|
name: "自定义组件",
|
|
1654
1653
|
default: {
|
|
@@ -1668,7 +1667,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1668
1667
|
label: "字段key"
|
|
1669
1668
|
}
|
|
1670
1669
|
]
|
|
1671
|
-
},
|
|
1670
|
+
}, Cn = {
|
|
1672
1671
|
type: "icon-select",
|
|
1673
1672
|
name: "图标选择器",
|
|
1674
1673
|
default: {
|
|
@@ -1688,7 +1687,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1688
1687
|
label: "字段key"
|
|
1689
1688
|
}
|
|
1690
1689
|
]
|
|
1691
|
-
},
|
|
1690
|
+
}, Tn = {
|
|
1692
1691
|
type: "sub-form",
|
|
1693
1692
|
name: "子表单",
|
|
1694
1693
|
default: {
|
|
@@ -1756,7 +1755,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1756
1755
|
}
|
|
1757
1756
|
}
|
|
1758
1757
|
]
|
|
1759
|
-
},
|
|
1758
|
+
}, On = {
|
|
1760
1759
|
type: "checkbox",
|
|
1761
1760
|
name: "复选框",
|
|
1762
1761
|
default: {
|
|
@@ -1802,24 +1801,24 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1802
1801
|
}
|
|
1803
1802
|
}
|
|
1804
1803
|
]
|
|
1805
|
-
},
|
|
1804
|
+
}, ft = {};
|
|
1806
1805
|
function P(e) {
|
|
1807
|
-
|
|
1806
|
+
ft[e.type] = e;
|
|
1808
1807
|
}
|
|
1809
|
-
P(bn);
|
|
1810
|
-
P(vn);
|
|
1811
|
-
P(_n);
|
|
1812
1808
|
P(yn);
|
|
1813
1809
|
P(kn);
|
|
1814
|
-
P(
|
|
1810
|
+
P(vn);
|
|
1815
1811
|
P(gn);
|
|
1816
|
-
P(Cn);
|
|
1817
|
-
P(wn);
|
|
1818
1812
|
P(Sn);
|
|
1813
|
+
P(Tn);
|
|
1814
|
+
P(wn);
|
|
1815
|
+
P(On);
|
|
1819
1816
|
P(xn);
|
|
1820
|
-
P($n);
|
|
1821
1817
|
P(En);
|
|
1822
|
-
|
|
1818
|
+
P($n);
|
|
1819
|
+
P(Cn);
|
|
1820
|
+
P(In);
|
|
1821
|
+
const Se = ft, Bn = {
|
|
1823
1822
|
options: {
|
|
1824
1823
|
labelPosition: "top",
|
|
1825
1824
|
submitButton: !1,
|
|
@@ -1922,11 +1921,11 @@ const ye = {
|
|
|
1922
1921
|
labelPosition: "top",
|
|
1923
1922
|
submitButton: !1,
|
|
1924
1923
|
cancelButton: !1
|
|
1925
|
-
},
|
|
1924
|
+
}, je = [];
|
|
1926
1925
|
Object.keys(Se).forEach((e) => {
|
|
1927
|
-
|
|
1926
|
+
je.push({ value: e, label: Se[e].name });
|
|
1928
1927
|
});
|
|
1929
|
-
const
|
|
1928
|
+
const An = {
|
|
1930
1929
|
options: {
|
|
1931
1930
|
submitButton: !1,
|
|
1932
1931
|
cancelButton: !1
|
|
@@ -1947,7 +1946,7 @@ const Bn = {
|
|
|
1947
1946
|
type: "select",
|
|
1948
1947
|
field: "type",
|
|
1949
1948
|
label: "类型",
|
|
1950
|
-
options: y(
|
|
1949
|
+
options: y(je)
|
|
1951
1950
|
},
|
|
1952
1951
|
{
|
|
1953
1952
|
type: "input",
|
|
@@ -1958,8 +1957,8 @@ const Bn = {
|
|
|
1958
1957
|
}
|
|
1959
1958
|
}
|
|
1960
1959
|
]
|
|
1961
|
-
},
|
|
1962
|
-
components: { DevLayout:
|
|
1960
|
+
}, Pn = {
|
|
1961
|
+
components: { DevLayout: mt, VForm: z, VButton: Pe, JsonView: Re },
|
|
1963
1962
|
props: {
|
|
1964
1963
|
schema: {
|
|
1965
1964
|
type: Object,
|
|
@@ -1970,8 +1969,8 @@ const Bn = {
|
|
|
1970
1969
|
data() {
|
|
1971
1970
|
return {
|
|
1972
1971
|
sqlOptions: {},
|
|
1973
|
-
sqlSchema:
|
|
1974
|
-
baseSchema:
|
|
1972
|
+
sqlSchema: An,
|
|
1973
|
+
baseSchema: Bn,
|
|
1975
1974
|
activeTab: "base",
|
|
1976
1975
|
builderSchema: Object.assign(
|
|
1977
1976
|
{},
|
|
@@ -1996,7 +1995,7 @@ const Bn = {
|
|
|
1996
1995
|
tableStruct: "",
|
|
1997
1996
|
activeName: "1",
|
|
1998
1997
|
currentCtrlType: "input",
|
|
1999
|
-
types: y(
|
|
1998
|
+
types: y(je)
|
|
2000
1999
|
};
|
|
2001
2000
|
},
|
|
2002
2001
|
computed: {
|
|
@@ -2025,8 +2024,8 @@ const Bn = {
|
|
|
2025
2024
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2026
2025
|
if (o && Object.keys(o).length > 0) {
|
|
2027
2026
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2028
|
-
const [a, s,
|
|
2029
|
-
this.builderSchema[s][
|
|
2027
|
+
const [a, s, p] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2028
|
+
this.builderSchema[s][p] = { ...o };
|
|
2030
2029
|
} else
|
|
2031
2030
|
this.builderSchema[this.activeIndex] = o;
|
|
2032
2031
|
this.key++;
|
|
@@ -2067,7 +2066,7 @@ const Bn = {
|
|
|
2067
2066
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2068
2067
|
},
|
|
2069
2068
|
removeOne() {
|
|
2070
|
-
|
|
2069
|
+
tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2071
2070
|
},
|
|
2072
2071
|
clicklabel() {
|
|
2073
2072
|
const e = this.activeIndex;
|
|
@@ -2094,8 +2093,8 @@ const Bn = {
|
|
|
2094
2093
|
}
|
|
2095
2094
|
}
|
|
2096
2095
|
};
|
|
2097
|
-
function
|
|
2098
|
-
const s = v("v-form"),
|
|
2096
|
+
function Rn(e, t, l, n, o, a) {
|
|
2097
|
+
const s = v("v-form"), p = ot, c = ue, d = v("JsonView"), f = v("VButton"), b = Te, g = Oe, x = at, J = st, U = v("dev-layout");
|
|
2099
2098
|
return i(), m(U, null, {
|
|
2100
2099
|
main: r(() => [
|
|
2101
2100
|
o.builderSchema.formItems ? (i(), m(s, F({
|
|
@@ -2103,8 +2102,8 @@ function An(e, t, l, n, o, a) {
|
|
|
2103
2102
|
key: o.key,
|
|
2104
2103
|
dev: !0
|
|
2105
2104
|
}, o.builderSchema), null, 16)) : $("", !0),
|
|
2106
|
-
p
|
|
2107
|
-
|
|
2105
|
+
u(p),
|
|
2106
|
+
u(c, {
|
|
2108
2107
|
type: "primary",
|
|
2109
2108
|
onClick: a.saveSchema
|
|
2110
2109
|
}, {
|
|
@@ -2114,12 +2113,12 @@ function An(e, t, l, n, o, a) {
|
|
|
2114
2113
|
_: 1
|
|
2115
2114
|
}, 8, ["onClick"]),
|
|
2116
2115
|
k(" "),
|
|
2117
|
-
|
|
2116
|
+
u(f, {
|
|
2118
2117
|
text: "PageSchema",
|
|
2119
2118
|
type: "modal"
|
|
2120
2119
|
}, {
|
|
2121
2120
|
default: r(() => [
|
|
2122
|
-
|
|
2121
|
+
u(d, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
2123
2122
|
]),
|
|
2124
2123
|
_: 1
|
|
2125
2124
|
})
|
|
@@ -2127,14 +2126,14 @@ function An(e, t, l, n, o, a) {
|
|
|
2127
2126
|
"right-aside": r(() => [
|
|
2128
2127
|
o.activeIndex ? (i(), m(J, { key: 0 }, {
|
|
2129
2128
|
default: r(() => [
|
|
2130
|
-
|
|
2129
|
+
u(x, { label: "控件类型" }, {
|
|
2131
2130
|
default: r(() => [
|
|
2132
|
-
|
|
2131
|
+
u(g, {
|
|
2133
2132
|
modelValue: o.currentCtrlType,
|
|
2134
2133
|
"onUpdate:modelValue": t[0] || (t[0] = (T) => o.currentCtrlType = T)
|
|
2135
2134
|
}, {
|
|
2136
2135
|
default: r(() => [
|
|
2137
|
-
(i(!0), h(E, null,
|
|
2136
|
+
(i(!0), h(E, null, B(o.types, (T, Z) => (i(), m(b, {
|
|
2138
2137
|
key: Z,
|
|
2139
2138
|
label: T.label,
|
|
2140
2139
|
value: T.value
|
|
@@ -2157,7 +2156,7 @@ function An(e, t, l, n, o, a) {
|
|
|
2157
2156
|
_: 1
|
|
2158
2157
|
});
|
|
2159
2158
|
}
|
|
2160
|
-
const
|
|
2159
|
+
const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171"]]), Mn = {
|
|
2161
2160
|
type: "input",
|
|
2162
2161
|
name: "文本框",
|
|
2163
2162
|
default: {
|
|
@@ -2205,7 +2204,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2205
2204
|
}
|
|
2206
2205
|
}
|
|
2207
2206
|
]
|
|
2208
|
-
},
|
|
2207
|
+
}, jn = {
|
|
2209
2208
|
type: "select",
|
|
2210
2209
|
name: "下拉框",
|
|
2211
2210
|
default: {
|
|
@@ -2306,7 +2305,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2306
2305
|
const t = y(e);
|
|
2307
2306
|
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;
|
|
2308
2307
|
}
|
|
2309
|
-
},
|
|
2308
|
+
}, Dn = {
|
|
2310
2309
|
type: "date",
|
|
2311
2310
|
name: "日期",
|
|
2312
2311
|
default: {
|
|
@@ -2355,7 +2354,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2355
2354
|
labelPosition: "top",
|
|
2356
2355
|
submitButton: !1,
|
|
2357
2356
|
cancelButton: !1
|
|
2358
|
-
},
|
|
2357
|
+
}, Nn = {
|
|
2359
2358
|
type: "span",
|
|
2360
2359
|
name: "文本",
|
|
2361
2360
|
default: {
|
|
@@ -2385,7 +2384,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2385
2384
|
label: "排序"
|
|
2386
2385
|
}
|
|
2387
2386
|
]
|
|
2388
|
-
},
|
|
2387
|
+
}, Vn = {
|
|
2389
2388
|
type: "enum",
|
|
2390
2389
|
name: "标签",
|
|
2391
2390
|
default: {
|
|
@@ -2436,7 +2435,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2436
2435
|
trans(e) {
|
|
2437
2436
|
return e.options = e.options || [], e.label || (e.label = "表头"), e;
|
|
2438
2437
|
}
|
|
2439
|
-
},
|
|
2438
|
+
}, qn = {
|
|
2440
2439
|
type: "html",
|
|
2441
2440
|
name: "HTML",
|
|
2442
2441
|
default: {
|
|
@@ -2461,7 +2460,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2461
2460
|
label: "提示"
|
|
2462
2461
|
}
|
|
2463
2462
|
]
|
|
2464
|
-
},
|
|
2463
|
+
}, Un = {
|
|
2465
2464
|
type: "icon",
|
|
2466
2465
|
name: "图标",
|
|
2467
2466
|
default: {
|
|
@@ -2486,7 +2485,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2486
2485
|
label: "提示"
|
|
2487
2486
|
}
|
|
2488
2487
|
]
|
|
2489
|
-
},
|
|
2488
|
+
}, Hn = {
|
|
2490
2489
|
type: "image",
|
|
2491
2490
|
name: "图片",
|
|
2492
2491
|
default: {
|
|
@@ -2511,7 +2510,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2511
2510
|
label: "提示"
|
|
2512
2511
|
}
|
|
2513
2512
|
]
|
|
2514
|
-
},
|
|
2513
|
+
}, Fn = {
|
|
2515
2514
|
type: "json",
|
|
2516
2515
|
name: "JSON",
|
|
2517
2516
|
default: {
|
|
@@ -2536,7 +2535,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2536
2535
|
label: "提示"
|
|
2537
2536
|
}
|
|
2538
2537
|
]
|
|
2539
|
-
},
|
|
2538
|
+
}, Gn = {
|
|
2540
2539
|
type: "link",
|
|
2541
2540
|
name: "链接",
|
|
2542
2541
|
default: {
|
|
@@ -2561,7 +2560,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2561
2560
|
label: "提示"
|
|
2562
2561
|
}
|
|
2563
2562
|
]
|
|
2564
|
-
},
|
|
2563
|
+
}, Jn = {
|
|
2565
2564
|
type: "rich",
|
|
2566
2565
|
name: "富文本",
|
|
2567
2566
|
default: {
|
|
@@ -2586,7 +2585,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2586
2585
|
label: "提示"
|
|
2587
2586
|
}
|
|
2588
2587
|
]
|
|
2589
|
-
},
|
|
2588
|
+
}, zn = {
|
|
2590
2589
|
type: "tpl",
|
|
2591
2590
|
name: "模板",
|
|
2592
2591
|
default: {
|
|
@@ -2617,17 +2616,17 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2617
2616
|
info: "例如 <code>姓名: {name} 年龄:{age}</code>"
|
|
2618
2617
|
}
|
|
2619
2618
|
]
|
|
2620
|
-
},
|
|
2621
|
-
span:
|
|
2622
|
-
enum:
|
|
2623
|
-
html:
|
|
2624
|
-
icon:
|
|
2625
|
-
image:
|
|
2626
|
-
json:
|
|
2627
|
-
link:
|
|
2628
|
-
rich:
|
|
2629
|
-
tpl:
|
|
2630
|
-
},
|
|
2619
|
+
}, Kn = {
|
|
2620
|
+
span: Nn,
|
|
2621
|
+
enum: Vn,
|
|
2622
|
+
html: qn,
|
|
2623
|
+
icon: Un,
|
|
2624
|
+
image: Hn,
|
|
2625
|
+
json: Fn,
|
|
2626
|
+
link: Gn,
|
|
2627
|
+
rich: Jn,
|
|
2628
|
+
tpl: zn
|
|
2629
|
+
}, Wn = {
|
|
2631
2630
|
type: "jump",
|
|
2632
2631
|
name: "跳转",
|
|
2633
2632
|
default: {
|
|
@@ -2674,7 +2673,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2674
2673
|
}
|
|
2675
2674
|
}
|
|
2676
2675
|
]
|
|
2677
|
-
},
|
|
2676
|
+
}, Zn = {
|
|
2678
2677
|
type: "api",
|
|
2679
2678
|
name: "接口请求",
|
|
2680
2679
|
default: {
|
|
@@ -2743,7 +2742,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2743
2742
|
}
|
|
2744
2743
|
}
|
|
2745
2744
|
]
|
|
2746
|
-
},
|
|
2745
|
+
}, Qn = {
|
|
2747
2746
|
type: "form",
|
|
2748
2747
|
name: "弹框表单",
|
|
2749
2748
|
default: {
|
|
@@ -2797,7 +2796,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2797
2796
|
label: "保存接口"
|
|
2798
2797
|
}
|
|
2799
2798
|
]
|
|
2800
|
-
},
|
|
2799
|
+
}, Xn = {
|
|
2801
2800
|
type: "table",
|
|
2802
2801
|
name: "弹框列表",
|
|
2803
2802
|
default: {
|
|
@@ -2851,14 +2850,14 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2851
2850
|
label: "保存接口"
|
|
2852
2851
|
}
|
|
2853
2852
|
]
|
|
2854
|
-
},
|
|
2855
|
-
jump:
|
|
2856
|
-
api:
|
|
2857
|
-
form:
|
|
2858
|
-
table:
|
|
2853
|
+
}, Yn = {
|
|
2854
|
+
jump: Wn,
|
|
2855
|
+
api: Zn,
|
|
2856
|
+
form: Qn,
|
|
2857
|
+
table: Xn
|
|
2859
2858
|
};
|
|
2860
|
-
const
|
|
2861
|
-
components: { JsonView: Re, DevLayout:
|
|
2859
|
+
const eo = {
|
|
2860
|
+
components: { JsonView: Re, DevLayout: mt, VTable: oe, VForm: z, VButton: Pe },
|
|
2862
2861
|
props: {
|
|
2863
2862
|
schema: {
|
|
2864
2863
|
type: Object,
|
|
@@ -2867,7 +2866,7 @@ const Xn = {
|
|
|
2867
2866
|
}
|
|
2868
2867
|
},
|
|
2869
2868
|
data() {
|
|
2870
|
-
const e =
|
|
2869
|
+
const e = At(this.$props.schema);
|
|
2871
2870
|
return delete e.listApi, e.list = [{}], {
|
|
2872
2871
|
baseSchema: He,
|
|
2873
2872
|
activeTab: "base",
|
|
@@ -2886,9 +2885,9 @@ const Xn = {
|
|
|
2886
2885
|
ctrlName: "",
|
|
2887
2886
|
activeIndex: void 0,
|
|
2888
2887
|
ctrlMap: {
|
|
2889
|
-
filter: { input:
|
|
2890
|
-
headers:
|
|
2891
|
-
buttons:
|
|
2888
|
+
filter: { input: Mn, select: jn, date: Dn },
|
|
2889
|
+
headers: Kn,
|
|
2890
|
+
buttons: Yn
|
|
2892
2891
|
},
|
|
2893
2892
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2894
2893
|
currentCtrlType: "input"
|
|
@@ -2937,8 +2936,8 @@ const Xn = {
|
|
|
2937
2936
|
const o = n.trans ? n.trans(e) : e;
|
|
2938
2937
|
if (o && Object.keys(o).length > 0) {
|
|
2939
2938
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2940
|
-
const [a, s,
|
|
2941
|
-
this.builderSchema[s][
|
|
2939
|
+
const [a, s, p] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2940
|
+
this.builderSchema[s][p] = { ...o };
|
|
2942
2941
|
} else
|
|
2943
2942
|
this.builderSchema[this.activeIndex] = o;
|
|
2944
2943
|
this.key++;
|
|
@@ -3002,7 +3001,7 @@ const Xn = {
|
|
|
3002
3001
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3003
3002
|
},
|
|
3004
3003
|
removeOne() {
|
|
3005
|
-
|
|
3004
|
+
tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3006
3005
|
},
|
|
3007
3006
|
clicklabel() {
|
|
3008
3007
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -3040,15 +3039,15 @@ const Xn = {
|
|
|
3040
3039
|
}
|
|
3041
3040
|
}
|
|
3042
3041
|
};
|
|
3043
|
-
function
|
|
3044
|
-
const s = de,
|
|
3045
|
-
return i(), m(
|
|
3042
|
+
function to(e, t, l, n, o, a) {
|
|
3043
|
+
const s = de, p = ue, c = ae, d = v("v-table"), f = ot, b = ue, g = v("JsonView"), x = v("VButton"), J = Te, U = Oe, T = at, Z = st, $t = v("v-form"), It = v("dev-layout");
|
|
3044
|
+
return i(), m(It, null, {
|
|
3046
3045
|
"left-aside": r(() => [
|
|
3047
|
-
|
|
3046
|
+
u(c, { style: { width: "200px" } }, {
|
|
3048
3047
|
default: r(() => [
|
|
3049
|
-
|
|
3048
|
+
u(c, null, {
|
|
3050
3049
|
default: r(() => [
|
|
3051
|
-
|
|
3050
|
+
u(s, {
|
|
3052
3051
|
class: "title",
|
|
3053
3052
|
"data-id": 22222
|
|
3054
3053
|
}, {
|
|
@@ -3057,9 +3056,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3057
3056
|
]),
|
|
3058
3057
|
_: 1
|
|
3059
3058
|
}),
|
|
3060
|
-
|
|
3059
|
+
u(s, { class: "ctrl" }, {
|
|
3061
3060
|
default: r(() => [
|
|
3062
|
-
p
|
|
3061
|
+
u(p, {
|
|
3063
3062
|
class: "ctrl-btn",
|
|
3064
3063
|
onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
|
|
3065
3064
|
}, {
|
|
@@ -3071,9 +3070,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3071
3070
|
]),
|
|
3072
3071
|
_: 1
|
|
3073
3072
|
}),
|
|
3074
|
-
|
|
3073
|
+
u(s, { class: "ctrl" }, {
|
|
3075
3074
|
default: r(() => [
|
|
3076
|
-
p
|
|
3075
|
+
u(p, {
|
|
3077
3076
|
class: "ctrl-btn",
|
|
3078
3077
|
onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
|
|
3079
3078
|
}, {
|
|
@@ -3085,9 +3084,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3085
3084
|
]),
|
|
3086
3085
|
_: 1
|
|
3087
3086
|
}),
|
|
3088
|
-
|
|
3087
|
+
u(s, { class: "ctrl" }, {
|
|
3089
3088
|
default: r(() => [
|
|
3090
|
-
p
|
|
3089
|
+
u(p, {
|
|
3091
3090
|
class: "ctrl-btn",
|
|
3092
3091
|
onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
|
|
3093
3092
|
}, {
|
|
@@ -3102,25 +3101,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3102
3101
|
]),
|
|
3103
3102
|
_: 1
|
|
3104
3103
|
}),
|
|
3105
|
-
|
|
3104
|
+
u(c, null, {
|
|
3106
3105
|
default: r(() => [
|
|
3107
|
-
|
|
3106
|
+
u(s, { class: "title" }, {
|
|
3108
3107
|
default: r(() => [
|
|
3109
3108
|
k("添加列表项")
|
|
3110
3109
|
]),
|
|
3111
3110
|
_: 1
|
|
3112
3111
|
}),
|
|
3113
|
-
(i(!0), h(E, null,
|
|
3112
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.headers), (C, V) => (i(), m(s, {
|
|
3114
3113
|
key: `column-${V}`,
|
|
3115
3114
|
class: "ctrl"
|
|
3116
3115
|
}, {
|
|
3117
3116
|
default: r(() => [
|
|
3118
|
-
p
|
|
3117
|
+
u(p, {
|
|
3119
3118
|
class: "ctrl-btn",
|
|
3120
3119
|
onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[C].type)
|
|
3121
3120
|
}, {
|
|
3122
3121
|
default: r(() => [
|
|
3123
|
-
k(
|
|
3122
|
+
k(O(o.ctrlMap.headers[C].name), 1)
|
|
3124
3123
|
]),
|
|
3125
3124
|
_: 2
|
|
3126
3125
|
}, 1032, ["onClick"])
|
|
@@ -3130,25 +3129,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3130
3129
|
]),
|
|
3131
3130
|
_: 1
|
|
3132
3131
|
}),
|
|
3133
|
-
|
|
3132
|
+
u(c, null, {
|
|
3134
3133
|
default: r(() => [
|
|
3135
|
-
|
|
3134
|
+
u(s, { class: "title" }, {
|
|
3136
3135
|
default: r(() => [
|
|
3137
3136
|
k("添加行按钮")
|
|
3138
3137
|
]),
|
|
3139
3138
|
_: 1
|
|
3140
3139
|
}),
|
|
3141
|
-
(i(!0), h(E, null,
|
|
3140
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
|
|
3142
3141
|
key: `column-${V}`,
|
|
3143
3142
|
class: "ctrl"
|
|
3144
3143
|
}, {
|
|
3145
3144
|
default: r(() => [
|
|
3146
|
-
p
|
|
3145
|
+
u(p, {
|
|
3147
3146
|
class: "ctrl-btn",
|
|
3148
3147
|
onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[C].type)
|
|
3149
3148
|
}, {
|
|
3150
3149
|
default: r(() => [
|
|
3151
|
-
k(
|
|
3150
|
+
k(O(o.ctrlMap.buttons[C].name), 1)
|
|
3152
3151
|
]),
|
|
3153
3152
|
_: 2
|
|
3154
3153
|
}, 1032, ["onClick"])
|
|
@@ -3158,34 +3157,34 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3158
3157
|
]),
|
|
3159
3158
|
_: 1
|
|
3160
3159
|
}),
|
|
3161
|
-
|
|
3160
|
+
u(c, null, {
|
|
3162
3161
|
default: r(() => [
|
|
3163
|
-
|
|
3162
|
+
u(s, { class: "title" }, {
|
|
3164
3163
|
default: r(() => [
|
|
3165
3164
|
k("添加常规按钮")
|
|
3166
3165
|
]),
|
|
3167
3166
|
_: 1
|
|
3168
3167
|
}),
|
|
3169
|
-
(i(!0), h(E, null,
|
|
3168
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
|
|
3170
3169
|
key: `column-${V}`,
|
|
3171
3170
|
class: "ctrl"
|
|
3172
3171
|
}, {
|
|
3173
3172
|
default: r(() => [
|
|
3174
|
-
p
|
|
3173
|
+
u(p, {
|
|
3175
3174
|
class: "ctrl-btn",
|
|
3176
3175
|
onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
|
|
3177
3176
|
}, {
|
|
3178
3177
|
default: r(() => [
|
|
3179
|
-
k(
|
|
3178
|
+
k(O(o.ctrlMap.buttons[C].name), 1)
|
|
3180
3179
|
]),
|
|
3181
3180
|
_: 2
|
|
3182
3181
|
}, 1032, ["onClick"])
|
|
3183
3182
|
]),
|
|
3184
3183
|
_: 2
|
|
3185
3184
|
}, 1024))), 128)),
|
|
3186
|
-
|
|
3185
|
+
u(s, { class: "ctrl" }, {
|
|
3187
3186
|
default: r(() => [
|
|
3188
|
-
p
|
|
3187
|
+
u(p, { class: "ctrl-btn" }, {
|
|
3189
3188
|
default: r(() => [
|
|
3190
3189
|
k("按钮组")
|
|
3191
3190
|
]),
|
|
@@ -3197,34 +3196,34 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3197
3196
|
]),
|
|
3198
3197
|
_: 1
|
|
3199
3198
|
}),
|
|
3200
|
-
|
|
3199
|
+
u(c, null, {
|
|
3201
3200
|
default: r(() => [
|
|
3202
|
-
|
|
3201
|
+
u(s, { class: "title" }, {
|
|
3203
3202
|
default: r(() => [
|
|
3204
3203
|
k("添加批量按钮")
|
|
3205
3204
|
]),
|
|
3206
3205
|
_: 1
|
|
3207
3206
|
}),
|
|
3208
|
-
(i(!0), h(E, null,
|
|
3207
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
|
|
3209
3208
|
key: `column-${V}`,
|
|
3210
3209
|
class: "ctrl"
|
|
3211
3210
|
}, {
|
|
3212
3211
|
default: r(() => [
|
|
3213
|
-
p
|
|
3212
|
+
u(p, {
|
|
3214
3213
|
class: "ctrl-btn",
|
|
3215
3214
|
onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
|
|
3216
3215
|
}, {
|
|
3217
3216
|
default: r(() => [
|
|
3218
|
-
k(
|
|
3217
|
+
k(O(o.ctrlMap.buttons[C].name), 1)
|
|
3219
3218
|
]),
|
|
3220
3219
|
_: 2
|
|
3221
3220
|
}, 1032, ["onClick"])
|
|
3222
3221
|
]),
|
|
3223
3222
|
_: 2
|
|
3224
3223
|
}, 1024))), 128)),
|
|
3225
|
-
|
|
3224
|
+
u(s, { class: "ctrl" }, {
|
|
3226
3225
|
default: r(() => [
|
|
3227
|
-
p
|
|
3226
|
+
u(p, { class: "ctrl-btn" }, {
|
|
3228
3227
|
default: r(() => [
|
|
3229
3228
|
k("按钮组")
|
|
3230
3229
|
]),
|
|
@@ -3246,8 +3245,8 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3246
3245
|
key: o.key,
|
|
3247
3246
|
dev: !0
|
|
3248
3247
|
}, o.builderSchema), null, 16)),
|
|
3249
|
-
|
|
3250
|
-
|
|
3248
|
+
u(f),
|
|
3249
|
+
u(b, {
|
|
3251
3250
|
type: "primary",
|
|
3252
3251
|
onClick: a.saveSchema
|
|
3253
3252
|
}, {
|
|
@@ -3257,12 +3256,12 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3257
3256
|
_: 1
|
|
3258
3257
|
}, 8, ["onClick"]),
|
|
3259
3258
|
k(" "),
|
|
3260
|
-
|
|
3259
|
+
u(x, {
|
|
3261
3260
|
text: "PageSchema",
|
|
3262
3261
|
type: "modal"
|
|
3263
3262
|
}, {
|
|
3264
3263
|
default: r(() => [
|
|
3265
|
-
|
|
3264
|
+
u(g, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3266
3265
|
]),
|
|
3267
3266
|
_: 1
|
|
3268
3267
|
})
|
|
@@ -3270,14 +3269,14 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3270
3269
|
"right-aside": r(() => [
|
|
3271
3270
|
o.activeIndex ? (i(), m(Z, { key: 0 }, {
|
|
3272
3271
|
default: r(() => [
|
|
3273
|
-
|
|
3272
|
+
u(T, { label: "控件类型" }, {
|
|
3274
3273
|
default: r(() => [
|
|
3275
|
-
|
|
3274
|
+
u(U, {
|
|
3276
3275
|
modelValue: o.currentCtrlType,
|
|
3277
3276
|
"onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
|
|
3278
3277
|
}, {
|
|
3279
3278
|
default: r(() => [
|
|
3280
|
-
(i(!0), h(E, null,
|
|
3279
|
+
(i(!0), h(E, null, B(a.types, (C, V) => (i(), m(J, {
|
|
3281
3280
|
key: V,
|
|
3282
3281
|
label: C.label,
|
|
3283
3282
|
value: C.value
|
|
@@ -3291,7 +3290,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3291
3290
|
]),
|
|
3292
3291
|
_: 1
|
|
3293
3292
|
})) : $("", !0),
|
|
3294
|
-
(i(), m(
|
|
3293
|
+
(i(), m($t, F({
|
|
3295
3294
|
key: o.ctrlKey,
|
|
3296
3295
|
modelValue: o.ctrlOptions,
|
|
3297
3296
|
"onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
|
|
@@ -3300,22 +3299,22 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3300
3299
|
_: 1
|
|
3301
3300
|
});
|
|
3302
3301
|
}
|
|
3303
|
-
const
|
|
3302
|
+
const lo = /* @__PURE__ */ I(eo, [["render", to], ["__scopeId", "data-v-e5209cb7"]]), no = {
|
|
3304
3303
|
name: "PageEditor",
|
|
3305
|
-
components: { FormBuilder:
|
|
3304
|
+
components: { FormBuilder: Ln, TableBuilder: lo },
|
|
3306
3305
|
setup() {
|
|
3307
|
-
const e =
|
|
3306
|
+
const e = M(!1), t = M(1), l = "rtl", n = pe(), o = j(() => S.state.app.pages[n.path]);
|
|
3308
3307
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3309
3308
|
}
|
|
3310
3309
|
};
|
|
3311
|
-
function
|
|
3312
|
-
const s = v("VIcon"),
|
|
3310
|
+
function oo(e, t, l, n, o, a) {
|
|
3311
|
+
const s = v("VIcon"), p = v("form-builder"), c = v("table-builder"), d = it;
|
|
3313
3312
|
return i(), h(E, null, [
|
|
3314
|
-
|
|
3313
|
+
u(s, {
|
|
3315
3314
|
name: "ra-set",
|
|
3316
3315
|
onClick: t[0] || (t[0] = (f) => n.show = !n.show)
|
|
3317
3316
|
}),
|
|
3318
|
-
|
|
3317
|
+
u(d, {
|
|
3319
3318
|
modelValue: n.show,
|
|
3320
3319
|
"onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
|
|
3321
3320
|
title: "页面设计",
|
|
@@ -3326,7 +3325,7 @@ function lo(e, t, l, n, o, a) {
|
|
|
3326
3325
|
"append-to-body": ""
|
|
3327
3326
|
}, {
|
|
3328
3327
|
default: r(() => [
|
|
3329
|
-
n.pageSchema.formItems !== void 0 ? (i(), m(
|
|
3328
|
+
n.pageSchema.formItems !== void 0 ? (i(), m(p, {
|
|
3330
3329
|
key: 0,
|
|
3331
3330
|
schema: n.pageSchema
|
|
3332
3331
|
}, null, 8, ["schema"])) : $("", !0),
|
|
@@ -3339,13 +3338,13 @@ function lo(e, t, l, n, o, a) {
|
|
|
3339
3338
|
}, 8, ["modelValue", "direction"])
|
|
3340
3339
|
], 64);
|
|
3341
3340
|
}
|
|
3342
|
-
const
|
|
3343
|
-
const
|
|
3341
|
+
const ao = /* @__PURE__ */ I(no, [["render", oo]]);
|
|
3342
|
+
const so = {
|
|
3344
3343
|
components: {
|
|
3345
|
-
Breadcrumb:
|
|
3346
|
-
Hamburger:
|
|
3344
|
+
Breadcrumb: dn,
|
|
3345
|
+
Hamburger: hn,
|
|
3347
3346
|
VButton: Pe,
|
|
3348
|
-
PageEditor:
|
|
3347
|
+
PageEditor: ao
|
|
3349
3348
|
},
|
|
3350
3349
|
data() {
|
|
3351
3350
|
return {
|
|
@@ -3384,7 +3383,7 @@ const oo = {
|
|
|
3384
3383
|
dangerouslyUseHTMLString: !0,
|
|
3385
3384
|
duration: 0,
|
|
3386
3385
|
onClose: this.closeNavBarNotice
|
|
3387
|
-
}), this.setting.envColor[this.user.env] &&
|
|
3386
|
+
}), this.setting.envColor[this.user.env] && Jt({
|
|
3388
3387
|
elRef: this.$refs.header.$el,
|
|
3389
3388
|
waterMark: this.user.env,
|
|
3390
3389
|
color: "skyblue",
|
|
@@ -3420,55 +3419,55 @@ const oo = {
|
|
|
3420
3419
|
(t = (e = this.$route) == null ? void 0 : e.meta) != null && t.pageId && window.open(location.origin + location.pathname + "#/menu/" + ((n = (l = this.$route) == null ? void 0 : l.meta) == null ? void 0 : n.pageId));
|
|
3421
3420
|
}
|
|
3422
3421
|
}
|
|
3423
|
-
},
|
|
3422
|
+
}, io = { class: "right-content" }, ro = { class: "right-item" }, co = {
|
|
3424
3423
|
key: 0,
|
|
3425
3424
|
class: "right-item"
|
|
3426
|
-
},
|
|
3425
|
+
}, uo = {
|
|
3427
3426
|
class: "right-item-button",
|
|
3428
3427
|
style: { padding: "0" }
|
|
3429
|
-
},
|
|
3430
|
-
function
|
|
3431
|
-
const s = v("hamburger"),
|
|
3428
|
+
}, po = { class: "user-info" }, mo = ["src"], fo = { class: "user-name" };
|
|
3429
|
+
function ho(e, t, l, n, o, a) {
|
|
3430
|
+
const s = v("hamburger"), p = v("breadcrumb"), c = de, d = v("VIcon"), f = v("PageEditor"), b = v("v-button"), g = hl, x = bl, J = _l, U = it, T = ae;
|
|
3432
3431
|
return i(), m(T, {
|
|
3433
3432
|
ref: "header",
|
|
3434
3433
|
class: "navbar",
|
|
3435
|
-
style:
|
|
3434
|
+
style: Pt({ background: a.setting.envColor[a.user.env] })
|
|
3436
3435
|
}, {
|
|
3437
3436
|
default: r(() => [
|
|
3438
|
-
|
|
3437
|
+
u(c, { span: 16 }, {
|
|
3439
3438
|
default: r(() => [
|
|
3440
|
-
|
|
3439
|
+
u(s, {
|
|
3441
3440
|
"is-active": e.sidebar.opened,
|
|
3442
3441
|
class: "hamburger-container",
|
|
3443
3442
|
onToggleClick: a.toggleSideBar
|
|
3444
3443
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3445
|
-
p
|
|
3444
|
+
u(p, { class: "breadcrumb-container" })
|
|
3446
3445
|
]),
|
|
3447
3446
|
_: 1
|
|
3448
3447
|
}),
|
|
3449
|
-
|
|
3448
|
+
u(c, { span: 8 }, {
|
|
3450
3449
|
default: r(() => [
|
|
3451
|
-
_("div",
|
|
3452
|
-
_("div",
|
|
3453
|
-
|
|
3450
|
+
_("div", io, [
|
|
3451
|
+
_("div", ro, [
|
|
3452
|
+
u(d, {
|
|
3454
3453
|
name: "ra-code",
|
|
3455
3454
|
onClick: a.gotoMenuEdit
|
|
3456
3455
|
}, null, 8, ["onClick"])
|
|
3457
3456
|
]),
|
|
3458
|
-
a.showPageJsonSchemaIcon ? (i(), h("div",
|
|
3459
|
-
|
|
3457
|
+
a.showPageJsonSchemaIcon ? (i(), h("div", co, [
|
|
3458
|
+
u(f)
|
|
3460
3459
|
])) : $("", !0),
|
|
3461
|
-
_("div",
|
|
3462
|
-
|
|
3460
|
+
_("div", uo, [
|
|
3461
|
+
u(b, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3463
3462
|
]),
|
|
3464
|
-
|
|
3463
|
+
u(J, {
|
|
3465
3464
|
class: "right-item",
|
|
3466
3465
|
trigger: "click"
|
|
3467
3466
|
}, {
|
|
3468
3467
|
dropdown: r(() => [
|
|
3469
|
-
|
|
3468
|
+
u(x, { class: "user-dropdown" }, {
|
|
3470
3469
|
default: r(() => [
|
|
3471
|
-
|
|
3470
|
+
u(g, {
|
|
3472
3471
|
icon: "oms-icon-index",
|
|
3473
3472
|
onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
|
|
3474
3473
|
}, {
|
|
@@ -3477,7 +3476,7 @@ function mo(e, t, l, n, o, a) {
|
|
|
3477
3476
|
]),
|
|
3478
3477
|
_: 1
|
|
3479
3478
|
}),
|
|
3480
|
-
|
|
3479
|
+
u(g, {
|
|
3481
3480
|
divided: "",
|
|
3482
3481
|
icon: "el-icon-switch-button",
|
|
3483
3482
|
onClick: a.logout
|
|
@@ -3492,14 +3491,14 @@ function mo(e, t, l, n, o, a) {
|
|
|
3492
3491
|
})
|
|
3493
3492
|
]),
|
|
3494
3493
|
default: r(() => [
|
|
3495
|
-
_("div",
|
|
3494
|
+
_("div", po, [
|
|
3496
3495
|
_("img", {
|
|
3497
3496
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3498
3497
|
class: "user-avatar",
|
|
3499
3498
|
alt: "头像"
|
|
3500
|
-
}, null, 8,
|
|
3499
|
+
}, null, 8, mo),
|
|
3501
3500
|
k(),
|
|
3502
|
-
_("span",
|
|
3501
|
+
_("span", fo, O(e.nickname || e.name), 1)
|
|
3503
3502
|
])
|
|
3504
3503
|
]),
|
|
3505
3504
|
_: 1
|
|
@@ -3517,8 +3516,8 @@ function mo(e, t, l, n, o, a) {
|
|
|
3517
3516
|
_: 1
|
|
3518
3517
|
}, 8, ["style"]);
|
|
3519
3518
|
}
|
|
3520
|
-
const
|
|
3521
|
-
const
|
|
3519
|
+
const bo = /* @__PURE__ */ I(so, [["render", ho], ["__scopeId", "data-v-99b3c688"]]);
|
|
3520
|
+
const _o = {
|
|
3522
3521
|
name: "SidebarLogo",
|
|
3523
3522
|
props: {
|
|
3524
3523
|
collapse: {
|
|
@@ -3534,16 +3533,16 @@ const ho = {
|
|
|
3534
3533
|
return this.$store.state.settings.logo;
|
|
3535
3534
|
}
|
|
3536
3535
|
}
|
|
3537
|
-
},
|
|
3536
|
+
}, yo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), vo = ["src"], go = {
|
|
3538
3537
|
key: 1,
|
|
3539
3538
|
class: "sidebar-title"
|
|
3540
|
-
},
|
|
3541
|
-
function
|
|
3539
|
+
}, ko = /* @__PURE__ */ yo(() => /* @__PURE__ */ _("div", null, "系统", -1)), wo = ["src"], So = { class: "sidebar-title" };
|
|
3540
|
+
function xo(e, t, l, n, o, a) {
|
|
3542
3541
|
const s = v("router-link");
|
|
3543
3542
|
return i(), h("div", {
|
|
3544
3543
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3545
3544
|
}, [
|
|
3546
|
-
|
|
3545
|
+
u(Rt, { name: "sidebarLogoFade" }, {
|
|
3547
3546
|
default: r(() => [
|
|
3548
3547
|
l.collapse ? (i(), m(s, {
|
|
3549
3548
|
key: "collapse",
|
|
@@ -3555,8 +3554,8 @@ function wo(e, t, l, n, o, a) {
|
|
|
3555
3554
|
key: 0,
|
|
3556
3555
|
src: a.logo,
|
|
3557
3556
|
class: "sidebar-logo"
|
|
3558
|
-
}, null, 8,
|
|
3559
|
-
|
|
3557
|
+
}, null, 8, vo)) : (i(), h("h1", go, O(a.title), 1)),
|
|
3558
|
+
ko
|
|
3560
3559
|
]),
|
|
3561
3560
|
_: 1
|
|
3562
3561
|
})) : (i(), m(s, {
|
|
@@ -3569,8 +3568,8 @@ function wo(e, t, l, n, o, a) {
|
|
|
3569
3568
|
key: 0,
|
|
3570
3569
|
src: a.logo,
|
|
3571
3570
|
class: "sidebar-logo"
|
|
3572
|
-
}, null, 8,
|
|
3573
|
-
_("h1",
|
|
3571
|
+
}, null, 8, wo)) : $("", !0),
|
|
3572
|
+
_("h1", So, O(a.title), 1)
|
|
3574
3573
|
]),
|
|
3575
3574
|
_: 1
|
|
3576
3575
|
}))
|
|
@@ -3579,7 +3578,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
3579
3578
|
})
|
|
3580
3579
|
], 2);
|
|
3581
3580
|
}
|
|
3582
|
-
const
|
|
3581
|
+
const Eo = /* @__PURE__ */ I(_o, [["render", xo], ["__scopeId", "data-v-49084925"]]), $o = {
|
|
3583
3582
|
props: {
|
|
3584
3583
|
to: {
|
|
3585
3584
|
type: String,
|
|
@@ -3612,7 +3611,7 @@ const So = /* @__PURE__ */ I(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3612
3611
|
}
|
|
3613
3612
|
}
|
|
3614
3613
|
};
|
|
3615
|
-
function
|
|
3614
|
+
function Io(e, t, l, n, o, a) {
|
|
3616
3615
|
return i(), m(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
|
|
3617
3616
|
default: r(() => [
|
|
3618
3617
|
le(e.$slots, "default")
|
|
@@ -3620,7 +3619,7 @@ function Eo(e, t, l, n, o, a) {
|
|
|
3620
3619
|
_: 3
|
|
3621
3620
|
}, 16);
|
|
3622
3621
|
}
|
|
3623
|
-
const
|
|
3622
|
+
const Co = /* @__PURE__ */ I($o, [["render", Io]]), To = {
|
|
3624
3623
|
computed: {
|
|
3625
3624
|
// @ts-ignore
|
|
3626
3625
|
device() {
|
|
@@ -3641,7 +3640,7 @@ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
|
3641
3640
|
}
|
|
3642
3641
|
}
|
|
3643
3642
|
}
|
|
3644
|
-
},
|
|
3643
|
+
}, Oo = { class: "menu-content" }, Bo = /* @__PURE__ */ q({
|
|
3645
3644
|
__name: "MenuContent",
|
|
3646
3645
|
props: {
|
|
3647
3646
|
meta: {
|
|
@@ -3656,20 +3655,20 @@ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
|
3656
3655
|
return (t, l) => {
|
|
3657
3656
|
const n = v("VIcon");
|
|
3658
3657
|
return i(), h(E, null, [
|
|
3659
|
-
|
|
3658
|
+
u(n, {
|
|
3660
3659
|
name: e.meta.icon || "ra-all"
|
|
3661
3660
|
}, null, 8, ["name"]),
|
|
3662
|
-
_("span",
|
|
3661
|
+
_("span", Oo, O(e.meta.title), 1)
|
|
3663
3662
|
], 64);
|
|
3664
3663
|
};
|
|
3665
3664
|
}
|
|
3666
|
-
}),
|
|
3665
|
+
}), Ao = {
|
|
3667
3666
|
name: "SidebarItem",
|
|
3668
3667
|
components: {
|
|
3669
|
-
AppLink:
|
|
3670
|
-
MenuContent:
|
|
3668
|
+
AppLink: Co,
|
|
3669
|
+
MenuContent: Bo
|
|
3671
3670
|
},
|
|
3672
|
-
mixins: [
|
|
3671
|
+
mixins: [To],
|
|
3673
3672
|
props: {
|
|
3674
3673
|
// route object
|
|
3675
3674
|
item: {
|
|
@@ -3694,13 +3693,13 @@ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
|
3694
3693
|
}
|
|
3695
3694
|
}
|
|
3696
3695
|
}
|
|
3697
|
-
},
|
|
3696
|
+
}, Po = {
|
|
3698
3697
|
key: 0,
|
|
3699
3698
|
class: "menu-wrapper"
|
|
3700
3699
|
};
|
|
3701
|
-
function
|
|
3702
|
-
const s = v("menu-content"),
|
|
3703
|
-
return l.item.hidden !== !1 ? (i(), h("div",
|
|
3700
|
+
function Ro(e, t, l, n, o, a) {
|
|
3701
|
+
const s = v("menu-content"), p = yl, c = v("app-link"), d = v("sidebar-item", !0), f = vl;
|
|
3702
|
+
return l.item.hidden !== !1 ? (i(), h("div", Po, [
|
|
3704
3703
|
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
|
|
3705
3704
|
l.item.meta ? (i(), m(c, {
|
|
3706
3705
|
key: 0,
|
|
@@ -3708,12 +3707,12 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3708
3707
|
"new-tab": l.item.meta.newTab
|
|
3709
3708
|
}, {
|
|
3710
3709
|
default: r(() => [
|
|
3711
|
-
p
|
|
3710
|
+
u(p, {
|
|
3712
3711
|
index: l.to,
|
|
3713
3712
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3714
3713
|
}, {
|
|
3715
3714
|
default: r(() => [
|
|
3716
|
-
|
|
3715
|
+
u(s, {
|
|
3717
3716
|
meta: l.item.meta
|
|
3718
3717
|
}, null, 8, ["meta"])
|
|
3719
3718
|
]),
|
|
@@ -3734,7 +3733,7 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3734
3733
|
to: l.to
|
|
3735
3734
|
}, {
|
|
3736
3735
|
default: r(() => [
|
|
3737
|
-
|
|
3736
|
+
u(s, {
|
|
3738
3737
|
meta: l.item.meta
|
|
3739
3738
|
}, null, 8, ["meta"])
|
|
3740
3739
|
]),
|
|
@@ -3745,7 +3744,7 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3745
3744
|
}, null, 8, ["meta"]))
|
|
3746
3745
|
]),
|
|
3747
3746
|
default: r(() => [
|
|
3748
|
-
(i(!0), h(E, null,
|
|
3747
|
+
(i(!0), h(E, null, B(l.item.children, (b) => (i(), m(d, {
|
|
3749
3748
|
key: b.path,
|
|
3750
3749
|
"is-nest": !0,
|
|
3751
3750
|
item: b,
|
|
@@ -3757,14 +3756,14 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3757
3756
|
}, 8, ["index", "class"])) : $("", !0)
|
|
3758
3757
|
])) : $("", !0);
|
|
3759
3758
|
}
|
|
3760
|
-
const
|
|
3761
|
-
function
|
|
3759
|
+
const Lo = /* @__PURE__ */ I(Ao, [["render", Ro]]);
|
|
3760
|
+
function ht(e) {
|
|
3762
3761
|
return e.filter((t) => {
|
|
3763
3762
|
var l;
|
|
3764
|
-
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children =
|
|
3763
|
+
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ht(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3765
3764
|
});
|
|
3766
3765
|
}
|
|
3767
|
-
const
|
|
3766
|
+
const Mo = {
|
|
3768
3767
|
data() {
|
|
3769
3768
|
return {
|
|
3770
3769
|
selected: ""
|
|
@@ -3776,7 +3775,7 @@ const Ro = {
|
|
|
3776
3775
|
let e = [];
|
|
3777
3776
|
return this.remoteRouter.forEach((t) => {
|
|
3778
3777
|
e = e.concat(y(t.routes));
|
|
3779
|
-
}),
|
|
3778
|
+
}), ht(e);
|
|
3780
3779
|
}
|
|
3781
3780
|
},
|
|
3782
3781
|
methods: {
|
|
@@ -3796,8 +3795,8 @@ const Ro = {
|
|
|
3796
3795
|
}
|
|
3797
3796
|
}
|
|
3798
3797
|
};
|
|
3799
|
-
function
|
|
3800
|
-
const s = Te,
|
|
3798
|
+
function jo(e, t, l, n, o, a) {
|
|
3799
|
+
const s = Te, p = gl, c = Oe;
|
|
3801
3800
|
return i(), m(c, {
|
|
3802
3801
|
modelValue: o.selected,
|
|
3803
3802
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
@@ -3807,16 +3806,16 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3807
3806
|
onChange: a.onselected
|
|
3808
3807
|
}, {
|
|
3809
3808
|
default: r(() => [
|
|
3810
|
-
(i(!0), h(E, null,
|
|
3809
|
+
(i(!0), h(E, null, B(a.filterRoutes, (d) => (i(), h(E, {
|
|
3811
3810
|
key: d.path
|
|
3812
3811
|
}, [
|
|
3813
3812
|
d.children !== void 0 ? (i(), h(E, { key: 0 }, [
|
|
3814
|
-
d.meta.menuType !== 0 ? (i(), m(
|
|
3813
|
+
d.meta.menuType !== 0 ? (i(), m(p, {
|
|
3815
3814
|
key: d.path + "-",
|
|
3816
3815
|
label: d.meta.title
|
|
3817
3816
|
}, {
|
|
3818
3817
|
default: r(() => [
|
|
3819
|
-
(i(!0), h(E, null,
|
|
3818
|
+
(i(!0), h(E, null, B(d.children, (f, b) => (i(), h(E, {
|
|
3820
3819
|
key: f.path
|
|
3821
3820
|
}, [
|
|
3822
3821
|
d.meta.menuType !== 0 ? (i(), m(s, {
|
|
@@ -3838,10 +3837,10 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3838
3837
|
_: 1
|
|
3839
3838
|
}, 8, ["modelValue", "onChange"]);
|
|
3840
3839
|
}
|
|
3841
|
-
const
|
|
3842
|
-
var
|
|
3843
|
-
const
|
|
3844
|
-
components: { SidebarItem:
|
|
3840
|
+
const Do = /* @__PURE__ */ I(Mo, [["render", jo], ["__scopeId", "data-v-7a867c34"]]);
|
|
3841
|
+
var D = /* @__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))(D || {}), L = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(L || {});
|
|
3842
|
+
const No = q({
|
|
3843
|
+
components: { SidebarItem: Lo, Logo: Eo, SearchMenu: Do },
|
|
3845
3844
|
computed: {
|
|
3846
3845
|
...Ce(["sidebar", "remoteRouter", "customRouter"]),
|
|
3847
3846
|
routes() {
|
|
@@ -3860,7 +3859,7 @@ const Do = q({
|
|
|
3860
3859
|
const e = this.$route.matched;
|
|
3861
3860
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
3862
3861
|
const l = e[t];
|
|
3863
|
-
if (l.meta.menuType ===
|
|
3862
|
+
if (l.meta.menuType === L.menu)
|
|
3864
3863
|
return this.showActive(), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3865
3864
|
}
|
|
3866
3865
|
return "";
|
|
@@ -3887,12 +3886,12 @@ const Do = q({
|
|
|
3887
3886
|
Xe("is-active", 200);
|
|
3888
3887
|
},
|
|
3889
3888
|
filterRoute(e) {
|
|
3890
|
-
return e.filter((t) => [
|
|
3889
|
+
return e.filter((t) => [L.dir, L.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
|
|
3891
3890
|
}
|
|
3892
3891
|
}
|
|
3893
3892
|
});
|
|
3894
|
-
function
|
|
3895
|
-
const s = v("logo"),
|
|
3893
|
+
function Vo(e, t, l, n, o, a) {
|
|
3894
|
+
const s = v("logo"), p = v("search-menu"), c = v("sidebar-item"), d = kl, f = wl;
|
|
3896
3895
|
return i(), h("div", {
|
|
3897
3896
|
class: H({ "has-logo": e.showLogo })
|
|
3898
3897
|
}, [
|
|
@@ -3900,10 +3899,10 @@ function jo(e, t, l, n, o, a) {
|
|
|
3900
3899
|
key: 0,
|
|
3901
3900
|
collapse: e.isCollapse
|
|
3902
3901
|
}, null, 8, ["collapse"])) : $("", !0),
|
|
3903
|
-
|
|
3902
|
+
u(f, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3904
3903
|
default: r(() => [
|
|
3905
|
-
e.isCollapse ? $("", !0) : (i(), m(
|
|
3906
|
-
|
|
3904
|
+
e.isCollapse ? $("", !0) : (i(), m(p, { key: 0 })),
|
|
3905
|
+
u(d, {
|
|
3907
3906
|
"default-active": e.activeMenu,
|
|
3908
3907
|
collapse: e.isCollapse,
|
|
3909
3908
|
"background-color": e.variables.menuBg,
|
|
@@ -3914,10 +3913,10 @@ function jo(e, t, l, n, o, a) {
|
|
|
3914
3913
|
mode: "vertical"
|
|
3915
3914
|
}, {
|
|
3916
3915
|
default: r(() => [
|
|
3917
|
-
(i(!0), h(E, null,
|
|
3916
|
+
(i(!0), h(E, null, B(e.routes, (b, g) => (i(), h(E, {
|
|
3918
3917
|
key: g + "-module"
|
|
3919
3918
|
}, [
|
|
3920
|
-
(i(!0), h(E, null,
|
|
3919
|
+
(i(!0), h(E, null, B(e.filterRoute(b.routes), (x) => (i(), m(c, {
|
|
3921
3920
|
key: x.path,
|
|
3922
3921
|
item: x,
|
|
3923
3922
|
to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
|
|
@@ -3931,40 +3930,40 @@ function jo(e, t, l, n, o, a) {
|
|
|
3931
3930
|
})
|
|
3932
3931
|
], 2);
|
|
3933
3932
|
}
|
|
3934
|
-
const
|
|
3935
|
-
const
|
|
3933
|
+
const qo = /* @__PURE__ */ I(No, [["render", Vo], ["__scopeId", "data-v-d252f828"]]);
|
|
3934
|
+
const Uo = { class: "app-main" }, Ho = {
|
|
3936
3935
|
__name: "AppMain",
|
|
3937
3936
|
setup(e) {
|
|
3938
|
-
const t =
|
|
3939
|
-
return
|
|
3937
|
+
const t = pe(), l = [], n = M(0);
|
|
3938
|
+
return al(() => {
|
|
3940
3939
|
var o;
|
|
3941
3940
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3942
3941
|
}), (o, a) => {
|
|
3943
|
-
const s = v("router-view"),
|
|
3944
|
-
return i(), h("section",
|
|
3942
|
+
const s = v("router-view"), p = Sl;
|
|
3943
|
+
return i(), h("section", Uo, [
|
|
3945
3944
|
(i(), m(s, {
|
|
3946
3945
|
key: o.$route.fullPath + w(n)
|
|
3947
3946
|
})),
|
|
3948
|
-
p
|
|
3947
|
+
u(p, { bottom: 50 })
|
|
3949
3948
|
]);
|
|
3950
3949
|
};
|
|
3951
3950
|
}
|
|
3952
|
-
},
|
|
3953
|
-
const
|
|
3951
|
+
}, Fo = /* @__PURE__ */ I(Ho, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3952
|
+
const Go = { class: "main-container" }, Jo = 992, zo = {
|
|
3954
3953
|
__name: "index",
|
|
3955
3954
|
setup(e) {
|
|
3956
|
-
const t =
|
|
3955
|
+
const t = nt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
|
|
3957
3956
|
hideSidebar: !n.value.opened,
|
|
3958
3957
|
openSidebar: n.value.opened,
|
|
3959
3958
|
withoutAnimation: n.value.withoutAnimation,
|
|
3960
3959
|
mobile: o.value === "mobile"
|
|
3961
|
-
})),
|
|
3962
|
-
|
|
3960
|
+
})), p = () => l.getBoundingClientRect().width - 1 < Jo;
|
|
3961
|
+
Bl(window, "resize", () => d());
|
|
3963
3962
|
const c = () => {
|
|
3964
3963
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
3965
3964
|
}, d = () => {
|
|
3966
3965
|
if (!document.hidden) {
|
|
3967
|
-
const f =
|
|
3966
|
+
const f = p();
|
|
3968
3967
|
t.dispatch("app/toggleDevice", f ? "mobile" : "desktop"), f && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
3969
3968
|
}
|
|
3970
3969
|
};
|
|
@@ -3976,21 +3975,21 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
|
3976
3975
|
class: "drawer-bg",
|
|
3977
3976
|
onClick: c
|
|
3978
3977
|
})) : $("", !0),
|
|
3979
|
-
|
|
3980
|
-
_("div",
|
|
3978
|
+
u(w(qo), { class: "sidebar-container" }),
|
|
3979
|
+
_("div", Go, [
|
|
3981
3980
|
_("div", {
|
|
3982
3981
|
class: H({ "fixed-header": w(a) })
|
|
3983
3982
|
}, [
|
|
3984
|
-
|
|
3983
|
+
u(w(bo))
|
|
3985
3984
|
], 2),
|
|
3986
|
-
|
|
3985
|
+
u(w(Fo))
|
|
3987
3986
|
])
|
|
3988
3987
|
], 2));
|
|
3989
3988
|
}
|
|
3990
|
-
},
|
|
3991
|
-
class
|
|
3989
|
+
}, bt = /* @__PURE__ */ I(zo, [["__scopeId", "data-v-957442cd"]]);
|
|
3990
|
+
class _t {
|
|
3992
3991
|
constructor() {
|
|
3993
|
-
|
|
3992
|
+
R(this, "type", "qrcode");
|
|
3994
3993
|
}
|
|
3995
3994
|
flag() {
|
|
3996
3995
|
}
|
|
@@ -4000,22 +3999,45 @@ class Jo {
|
|
|
4000
3999
|
showQrCode() {
|
|
4001
4000
|
}
|
|
4002
4001
|
}
|
|
4003
|
-
class
|
|
4002
|
+
class xi extends _t {
|
|
4004
4003
|
constructor(l) {
|
|
4005
4004
|
super();
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
D(this, "elId", "");
|
|
4010
|
-
D(this, "appid", "");
|
|
4011
|
-
D(this, "iframe", new HTMLIFrameElement());
|
|
4012
|
-
D(this, "redirectUri", "");
|
|
4013
|
-
D(this, "style", "");
|
|
4005
|
+
R(this, "type", "jump");
|
|
4006
|
+
R(this, "client_id", "");
|
|
4007
|
+
this.client_id = l.client_id;
|
|
4014
4008
|
}
|
|
4015
4009
|
flag() {
|
|
4016
|
-
const l =
|
|
4010
|
+
const l = Ye("code");
|
|
4017
4011
|
if (l)
|
|
4018
|
-
return
|
|
4012
|
+
return {
|
|
4013
|
+
ticket: l,
|
|
4014
|
+
key: "github"
|
|
4015
|
+
};
|
|
4016
|
+
}
|
|
4017
|
+
jumpToLoginPage(l, n) {
|
|
4018
|
+
const o = encodeURIComponent(location.href);
|
|
4019
|
+
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
class Ei extends _t {
|
|
4023
|
+
constructor(l) {
|
|
4024
|
+
super();
|
|
4025
|
+
R(this, "type", "qrcode");
|
|
4026
|
+
R(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
|
|
4027
|
+
R(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
|
|
4028
|
+
R(this, "elId", "");
|
|
4029
|
+
R(this, "appid", "");
|
|
4030
|
+
R(this, "iframe", new HTMLIFrameElement());
|
|
4031
|
+
R(this, "redirectUri", "");
|
|
4032
|
+
R(this, "style", "");
|
|
4033
|
+
}
|
|
4034
|
+
flag() {
|
|
4035
|
+
const l = Ye("code");
|
|
4036
|
+
if (l)
|
|
4037
|
+
return {
|
|
4038
|
+
ticket: l,
|
|
4039
|
+
key: "dingtalk"
|
|
4040
|
+
};
|
|
4019
4041
|
}
|
|
4020
4042
|
showQrCode() {
|
|
4021
4043
|
const l = (a) => {
|
|
@@ -4023,7 +4045,7 @@ class zo extends Jo {
|
|
|
4023
4045
|
appid: this.appid,
|
|
4024
4046
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4025
4047
|
};
|
|
4026
|
-
return Q(this.reloadUrl, s) + "&" +
|
|
4048
|
+
return Q(this.reloadUrl, s) + "&" + Kt(a || {});
|
|
4027
4049
|
}, n = () => {
|
|
4028
4050
|
const a = {
|
|
4029
4051
|
goto: encodeURIComponent(l()),
|
|
@@ -4031,46 +4053,46 @@ class zo extends Jo {
|
|
|
4031
4053
|
};
|
|
4032
4054
|
return Q(this.qrCodeUrl, a);
|
|
4033
4055
|
}, o = (a) => {
|
|
4034
|
-
const { origin: s, data:
|
|
4035
|
-
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode:
|
|
4056
|
+
const { origin: s, data: p } = a;
|
|
4057
|
+
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: p }));
|
|
4036
4058
|
};
|
|
4037
|
-
this.iframe.src = n(),
|
|
4059
|
+
this.iframe.src = n(), zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4038
4060
|
"message",
|
|
4039
4061
|
(a) => o(a),
|
|
4040
4062
|
!1
|
|
4041
4063
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
|
|
4042
4064
|
}
|
|
4043
4065
|
}
|
|
4044
|
-
const Ko = {
|
|
4045
|
-
dingtalk: (e) => new zo(e)
|
|
4046
|
-
};
|
|
4066
|
+
const Ko = {};
|
|
4047
4067
|
function Wo() {
|
|
4048
4068
|
return A(S.state.settings.sso || {}, Ko);
|
|
4049
4069
|
}
|
|
4050
|
-
function Zo(
|
|
4051
|
-
const
|
|
4052
|
-
|
|
4053
|
-
|
|
4070
|
+
function Zo() {
|
|
4071
|
+
const e = Wo(), t = S.state.settings.activeSsoKey || "";
|
|
4072
|
+
console.log(e, t);
|
|
4073
|
+
const l = e[t];
|
|
4074
|
+
if (l !== void 0)
|
|
4075
|
+
return l();
|
|
4054
4076
|
}
|
|
4055
4077
|
const Qo = { id: "login" }, Xo = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
|
|
4056
4078
|
__name: "login",
|
|
4057
4079
|
setup(e) {
|
|
4058
|
-
const t =
|
|
4080
|
+
const t = sl(), l = pe(), n = j(() => S.state.settings.loginTips), o = j(() => (console.log(S.state.app), S.state.app.baseURL)), a = M(0), s = () => a.value++, p = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = M({
|
|
4059
4081
|
username: "",
|
|
4060
4082
|
password: "",
|
|
4061
4083
|
captcha: "",
|
|
4062
4084
|
sing: ""
|
|
4063
4085
|
}), d = () => {
|
|
4064
4086
|
if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
|
|
4065
|
-
|
|
4087
|
+
xl.error("用户名, 密码, 验证码是必须的");
|
|
4066
4088
|
return;
|
|
4067
4089
|
}
|
|
4068
|
-
c.value.sing =
|
|
4090
|
+
c.value.sing = Pl(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), S.dispatch("user/login", c.value).then((f) => {
|
|
4069
4091
|
var b;
|
|
4070
4092
|
t.push({ path: ((b = l.query) == null ? void 0 : b.redirect) || "/" });
|
|
4071
4093
|
});
|
|
4072
4094
|
};
|
|
4073
|
-
return
|
|
4095
|
+
return M(), (f, b) => (i(), h("div", Qo, [
|
|
4074
4096
|
Xo,
|
|
4075
4097
|
_("form", Yo, [
|
|
4076
4098
|
ie(_("input", {
|
|
@@ -4106,15 +4128,15 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ _("h1", { id: "title" }, "登
|
|
|
4106
4128
|
}, null, 8, ta)
|
|
4107
4129
|
]),
|
|
4108
4130
|
_("div", {
|
|
4109
|
-
class: H({ input: !0, button: !0, "no-ready": !
|
|
4131
|
+
class: H({ input: !0, button: !0, "no-ready": !p.value }),
|
|
4110
4132
|
onClick: d
|
|
4111
4133
|
}, "登录", 2),
|
|
4112
4134
|
_("div", la, [
|
|
4113
|
-
_("div", null,
|
|
4135
|
+
_("div", null, O(n.value), 1)
|
|
4114
4136
|
]),
|
|
4115
4137
|
_("div", na, [
|
|
4116
4138
|
oa,
|
|
4117
|
-
(i(!0), h(E, null,
|
|
4139
|
+
(i(!0), h(E, null, B(Object.keys([]), (g) => (i(), h("div", { key: g }, O(g), 1))), 128))
|
|
4118
4140
|
])
|
|
4119
4141
|
])
|
|
4120
4142
|
]));
|
|
@@ -4122,7 +4144,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ _("h1", { id: "title" }, "登
|
|
|
4122
4144
|
});
|
|
4123
4145
|
const sa = {
|
|
4124
4146
|
name: "NotFoundPage"
|
|
4125
|
-
},
|
|
4147
|
+
}, yt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ yt(() => /* @__PURE__ */ _("svg", {
|
|
4126
4148
|
width: "380px",
|
|
4127
4149
|
height: "500px",
|
|
4128
4150
|
viewBox: "0 0 837 1045",
|
|
@@ -4175,7 +4197,7 @@ const sa = {
|
|
|
4175
4197
|
"sketch:type": "MSShapeGroup"
|
|
4176
4198
|
})
|
|
4177
4199
|
])
|
|
4178
|
-
], -1)), ca = /* @__PURE__ */
|
|
4200
|
+
], -1)), ca = /* @__PURE__ */ yt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
|
|
4179
4201
|
/* @__PURE__ */ _("h1", null, "404"),
|
|
4180
4202
|
/* @__PURE__ */ _("p", null, "Page not found"),
|
|
4181
4203
|
/* @__PURE__ */ _("div", { class: "buttons-con" }, [
|
|
@@ -4186,17 +4208,17 @@ const sa = {
|
|
|
4186
4208
|
}, "Go to Home Page")
|
|
4187
4209
|
])
|
|
4188
4210
|
])
|
|
4189
|
-
], -1)),
|
|
4211
|
+
], -1)), ua = [
|
|
4190
4212
|
ra,
|
|
4191
4213
|
ca
|
|
4192
4214
|
];
|
|
4193
|
-
function
|
|
4194
|
-
return i(), h("div", ia,
|
|
4215
|
+
function pa(e, t, l, n, o, a) {
|
|
4216
|
+
return i(), h("div", ia, ua);
|
|
4195
4217
|
}
|
|
4196
|
-
const da = /* @__PURE__ */ I(sa, [["render",
|
|
4218
|
+
const da = /* @__PURE__ */ I(sa, [["render", pa], ["__scopeId", "data-v-26068803"]]), ma = [
|
|
4197
4219
|
{
|
|
4198
4220
|
path: "/",
|
|
4199
|
-
component:
|
|
4221
|
+
component: bt,
|
|
4200
4222
|
redirect: "/dashboard",
|
|
4201
4223
|
name: "Root",
|
|
4202
4224
|
meta: {
|
|
@@ -4206,7 +4228,7 @@ const da = /* @__PURE__ */ I(sa, [["render", ua], ["__scopeId", "data-v-26068803
|
|
|
4206
4228
|
{
|
|
4207
4229
|
path: "dashboard",
|
|
4208
4230
|
name: "Dashboard",
|
|
4209
|
-
component:
|
|
4231
|
+
component: sn,
|
|
4210
4232
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4211
4233
|
}
|
|
4212
4234
|
]
|
|
@@ -4223,8 +4245,8 @@ const da = /* @__PURE__ */ I(sa, [["render", ua], ["__scopeId", "data-v-26068803
|
|
|
4223
4245
|
meta: { menuType: 0 },
|
|
4224
4246
|
hidden: !0
|
|
4225
4247
|
}
|
|
4226
|
-
], K =
|
|
4227
|
-
history:
|
|
4248
|
+
], K = il({
|
|
4249
|
+
history: rl(),
|
|
4228
4250
|
routes: ma
|
|
4229
4251
|
});
|
|
4230
4252
|
ke.configure({ showSpinner: !1 });
|
|
@@ -4241,7 +4263,7 @@ function fa(e) {
|
|
|
4241
4263
|
function ha() {
|
|
4242
4264
|
return S.state.user.isLodeRemoteRoutes;
|
|
4243
4265
|
}
|
|
4244
|
-
function
|
|
4266
|
+
function vt() {
|
|
4245
4267
|
return S.state.settings.whiteRoutes || [];
|
|
4246
4268
|
}
|
|
4247
4269
|
function ba() {
|
|
@@ -4250,7 +4272,7 @@ function ba() {
|
|
|
4250
4272
|
function _a(e) {
|
|
4251
4273
|
e.beforeEach(async (t, l, n) => {
|
|
4252
4274
|
var c, d;
|
|
4253
|
-
if (
|
|
4275
|
+
if (vt().indexOf(t.path) !== -1) {
|
|
4254
4276
|
n();
|
|
4255
4277
|
return;
|
|
4256
4278
|
}
|
|
@@ -4258,13 +4280,13 @@ function _a(e) {
|
|
|
4258
4280
|
(c = t.query) != null && c.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4259
4281
|
return;
|
|
4260
4282
|
}
|
|
4261
|
-
const a = t.query.redirect || t.path, s = Zo(
|
|
4283
|
+
const a = t.query.redirect || t.path, s = Zo();
|
|
4262
4284
|
if (!s) {
|
|
4263
4285
|
n(`/login?redirect=${a}`);
|
|
4264
4286
|
return;
|
|
4265
4287
|
}
|
|
4266
|
-
const
|
|
4267
|
-
if (
|
|
4288
|
+
const p = s.flag();
|
|
4289
|
+
if (p && await S.dispatch("user/login", Qt(p) ? p : { ticket: p })) {
|
|
4268
4290
|
n();
|
|
4269
4291
|
return;
|
|
4270
4292
|
}
|
|
@@ -4277,7 +4299,7 @@ const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ _("div"
|
|
|
4277
4299
|
function wa(e, t) {
|
|
4278
4300
|
return i(), h("div", va, ka);
|
|
4279
4301
|
}
|
|
4280
|
-
const
|
|
4302
|
+
const gt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
|
|
4281
4303
|
name: "VNotice",
|
|
4282
4304
|
props: {
|
|
4283
4305
|
dataApi: {
|
|
@@ -4307,13 +4329,13 @@ const yt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
|
|
|
4307
4329
|
}
|
|
4308
4330
|
};
|
|
4309
4331
|
function xa(e, t, l, n, o, a) {
|
|
4310
|
-
const s =
|
|
4332
|
+
const s = Be;
|
|
4311
4333
|
return i(), h("div", null, [
|
|
4312
4334
|
o.hasNotice ? (i(), m(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : $("", !0)
|
|
4313
4335
|
]);
|
|
4314
4336
|
}
|
|
4315
|
-
const
|
|
4316
|
-
components: { VLoading:
|
|
4337
|
+
const kt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
|
|
4338
|
+
components: { VLoading: gt, VNotice: kt },
|
|
4317
4339
|
props: {
|
|
4318
4340
|
schemaHandler: {
|
|
4319
4341
|
type: Function,
|
|
@@ -4356,7 +4378,7 @@ const vt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
|
|
|
4356
4378
|
});
|
|
4357
4379
|
const $a = ["innerHTML"];
|
|
4358
4380
|
function Ia(e, t, l, n, o, a) {
|
|
4359
|
-
const s =
|
|
4381
|
+
const s = Be, p = kt, c = gt;
|
|
4360
4382
|
return i(), h(E, null, [
|
|
4361
4383
|
e.owners.length > 0 ? (i(), m(s, {
|
|
4362
4384
|
key: 0,
|
|
@@ -4370,7 +4392,7 @@ function Ia(e, t, l, n, o, a) {
|
|
|
4370
4392
|
class: "offline-notice",
|
|
4371
4393
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4372
4394
|
}, null, 8, $a)) : (i(), h(E, { key: 2 }, [
|
|
4373
|
-
e.haveNotice ? (i(), m(
|
|
4395
|
+
e.haveNotice ? (i(), m(p, {
|
|
4374
4396
|
key: 0,
|
|
4375
4397
|
notice: e.notice,
|
|
4376
4398
|
style: { margin: "0 0 20px 0" },
|
|
@@ -4380,7 +4402,7 @@ function Ia(e, t, l, n, o, a) {
|
|
|
4380
4402
|
], 64))
|
|
4381
4403
|
], 64);
|
|
4382
4404
|
}
|
|
4383
|
-
const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]),
|
|
4405
|
+
const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), wt = {
|
|
4384
4406
|
__name: "table",
|
|
4385
4407
|
setup(e) {
|
|
4386
4408
|
const t = (l, n) => {
|
|
@@ -4398,7 +4420,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4398
4420
|
};
|
|
4399
4421
|
return (l, n) => (i(), m(se, { "schema-handler": t }, {
|
|
4400
4422
|
default: r((o) => [
|
|
4401
|
-
|
|
4423
|
+
u(w(oe), G(Y(o)), null, 16)
|
|
4402
4424
|
]),
|
|
4403
4425
|
_: 1
|
|
4404
4426
|
}));
|
|
@@ -4406,7 +4428,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4406
4428
|
}, xe = {
|
|
4407
4429
|
__name: "form",
|
|
4408
4430
|
setup(e) {
|
|
4409
|
-
const t =
|
|
4431
|
+
const t = pe(), l = (n, o) => {
|
|
4410
4432
|
const a = Object.keys(z.props);
|
|
4411
4433
|
return Object.keys(n).forEach((s) => {
|
|
4412
4434
|
if (a.indexOf(s) === -1) {
|
|
@@ -4423,7 +4445,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4423
4445
|
};
|
|
4424
4446
|
return (n, o) => (i(), m(se, { "schema-handler": l }, {
|
|
4425
4447
|
default: r((a) => [
|
|
4426
|
-
|
|
4448
|
+
u(w(z), G(Y(a)), null, 16)
|
|
4427
4449
|
]),
|
|
4428
4450
|
_: 1
|
|
4429
4451
|
}));
|
|
@@ -4528,7 +4550,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4528
4550
|
append(e, t) {
|
|
4529
4551
|
var n, o;
|
|
4530
4552
|
this.type = 1;
|
|
4531
|
-
const l = { pid: e.id, [((n = this.$props.props) == null ? void 0 : n.levelKey) ?? "level"]: t.level + 1, ...
|
|
4553
|
+
const l = { pid: e.id, [((n = this.$props.props) == null ? void 0 : n.levelKey) ?? "level"]: t.level + 1, ...Wt((o = this.$props.props) == null ? void 0 : o.effectData, e) };
|
|
4532
4554
|
console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
|
|
4533
4555
|
},
|
|
4534
4556
|
canAppend(e, t) {
|
|
@@ -4571,27 +4593,27 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4571
4593
|
}
|
|
4572
4594
|
}
|
|
4573
4595
|
});
|
|
4574
|
-
const Ta = { class: "card-header" },
|
|
4596
|
+
const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ _("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
|
|
4575
4597
|
key: 1,
|
|
4576
4598
|
style: { color: "#E6A23C" }
|
|
4577
4599
|
}, Ra = { class: "card-header" };
|
|
4578
4600
|
function La(e, t, l, n, o, a) {
|
|
4579
|
-
const s =
|
|
4601
|
+
const s = ue, p = El, c = Ae, d = de, f = v("v-form"), b = ae;
|
|
4580
4602
|
return i(), m(b, {
|
|
4581
4603
|
class: "tree-box",
|
|
4582
4604
|
gutter: 20
|
|
4583
4605
|
}, {
|
|
4584
4606
|
default: r(() => [
|
|
4585
|
-
|
|
4607
|
+
u(d, {
|
|
4586
4608
|
span: 8,
|
|
4587
4609
|
class: "tree-tree"
|
|
4588
4610
|
}, {
|
|
4589
4611
|
default: r(() => [
|
|
4590
|
-
|
|
4612
|
+
u(c, { shadow: "never" }, {
|
|
4591
4613
|
header: r(() => [
|
|
4592
4614
|
_("div", Ta, [
|
|
4593
|
-
|
|
4594
|
-
|
|
4615
|
+
Oa,
|
|
4616
|
+
u(s, {
|
|
4595
4617
|
type: "text",
|
|
4596
4618
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4597
4619
|
}, {
|
|
@@ -4603,7 +4625,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4603
4625
|
])
|
|
4604
4626
|
]),
|
|
4605
4627
|
default: r(() => [
|
|
4606
|
-
(e.treeData || []).length > 0 ? (i(), m(
|
|
4628
|
+
(e.treeData || []).length > 0 ? (i(), m(p, F({
|
|
4607
4629
|
key: 0,
|
|
4608
4630
|
style: { height: "100vh" },
|
|
4609
4631
|
data: e.treeData,
|
|
@@ -4615,8 +4637,8 @@ function La(e, t, l, n, o, a) {
|
|
|
4615
4637
|
onNodeDragEnd: e.handleDragEnd
|
|
4616
4638
|
}), {
|
|
4617
4639
|
default: r(({ node: g, data: x }) => [
|
|
4618
|
-
_("span",
|
|
4619
|
-
x[e.localTreeProps.props.label] ? (i(), h("span", Aa,
|
|
4640
|
+
_("span", Ba, [
|
|
4641
|
+
x[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
|
|
4620
4642
|
_("span", null, [
|
|
4621
4643
|
x[e.localTreeProps.props.label] ? (i(), m(s, {
|
|
4622
4644
|
key: 0,
|
|
@@ -4662,7 +4684,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4662
4684
|
]),
|
|
4663
4685
|
_: 1
|
|
4664
4686
|
}),
|
|
4665
|
-
|
|
4687
|
+
u(d, {
|
|
4666
4688
|
span: 16,
|
|
4667
4689
|
class: "tree-form"
|
|
4668
4690
|
}, {
|
|
@@ -4673,7 +4695,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4673
4695
|
}, {
|
|
4674
4696
|
header: r(() => [
|
|
4675
4697
|
_("div", Ra, [
|
|
4676
|
-
_("span", null,
|
|
4698
|
+
_("span", null, O(e.formType), 1)
|
|
4677
4699
|
])
|
|
4678
4700
|
]),
|
|
4679
4701
|
default: r(() => [
|
|
@@ -4703,7 +4725,7 @@ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
|
|
|
4703
4725
|
};
|
|
4704
4726
|
return (l, n) => (i(), m(se, { "schema-handler": t }, {
|
|
4705
4727
|
default: r((o) => [
|
|
4706
|
-
|
|
4728
|
+
u(Fe, G(Y(o)), null, 16)
|
|
4707
4729
|
]),
|
|
4708
4730
|
_: 1
|
|
4709
4731
|
}));
|
|
@@ -4711,15 +4733,15 @@ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
|
|
|
4711
4733
|
}, ge = {
|
|
4712
4734
|
__name: "container",
|
|
4713
4735
|
setup(e) {
|
|
4714
|
-
const t =
|
|
4715
|
-
return
|
|
4736
|
+
const t = M(0);
|
|
4737
|
+
return cl(() => {
|
|
4716
4738
|
t.value++;
|
|
4717
4739
|
}), (l, n) => {
|
|
4718
4740
|
const o = v("router-view");
|
|
4719
4741
|
return i(), m(o);
|
|
4720
4742
|
};
|
|
4721
4743
|
}
|
|
4722
|
-
},
|
|
4744
|
+
}, ja = {
|
|
4723
4745
|
title: {
|
|
4724
4746
|
text: ""
|
|
4725
4747
|
},
|
|
@@ -4748,18 +4770,18 @@ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
|
|
|
4748
4770
|
},
|
|
4749
4771
|
series: []
|
|
4750
4772
|
};
|
|
4751
|
-
function
|
|
4773
|
+
function Da(e, t, l) {
|
|
4752
4774
|
if (l.length === 0)
|
|
4753
4775
|
return {};
|
|
4754
|
-
let n = A({},
|
|
4776
|
+
let n = A({}, ja);
|
|
4755
4777
|
if (n.title.text = e, $e(t)) {
|
|
4756
4778
|
const o = [], a = Object.keys(l[0]);
|
|
4757
|
-
let s = a[0],
|
|
4779
|
+
let s = a[0], p = a.filter((d, f) => f > 0), c = t;
|
|
4758
4780
|
if (t.indexOf(":") > -1) {
|
|
4759
4781
|
const d = t.split(":"), f = d[1].split(",");
|
|
4760
|
-
c = d[0], s = f[0],
|
|
4782
|
+
c = d[0], s = f[0], p = f.filter((b, g) => g > 0);
|
|
4761
4783
|
}
|
|
4762
|
-
|
|
4784
|
+
p.forEach((d) => {
|
|
4763
4785
|
const f = [];
|
|
4764
4786
|
l.forEach((b) => {
|
|
4765
4787
|
f.push(b[d]);
|
|
@@ -4788,22 +4810,22 @@ const Na = q({
|
|
|
4788
4810
|
}
|
|
4789
4811
|
}), Va = { class: "number-panel-title" }, qa = { class: "number" }, Ua = { class: "name" };
|
|
4790
4812
|
function Ha(e, t, l, n, o, a) {
|
|
4791
|
-
return i(!0), h(E, null,
|
|
4813
|
+
return i(!0), h(E, null, B(e.dataList, (s, p) => (i(), h("span", { key: p }, [
|
|
4792
4814
|
_("div", Va, [
|
|
4793
|
-
(i(!0), h(E, null,
|
|
4815
|
+
(i(!0), h(E, null, B(Object.keys(s), (c, d) => (i(), h("div", {
|
|
4794
4816
|
key: d,
|
|
4795
4817
|
class: "title-inner"
|
|
4796
4818
|
}, [
|
|
4797
|
-
_("p", qa,
|
|
4798
|
-
_("p", Ua,
|
|
4819
|
+
_("p", qa, O(s[c]), 1),
|
|
4820
|
+
_("p", Ua, O(c), 1)
|
|
4799
4821
|
]))), 128))
|
|
4800
4822
|
])
|
|
4801
4823
|
]))), 128);
|
|
4802
4824
|
}
|
|
4803
4825
|
const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293"]]), Ga = {
|
|
4804
4826
|
components: {
|
|
4805
|
-
Chart:
|
|
4806
|
-
Md:
|
|
4827
|
+
Chart: Il,
|
|
4828
|
+
Md: Al,
|
|
4807
4829
|
Json: Re,
|
|
4808
4830
|
Table: oe,
|
|
4809
4831
|
Number: Fa,
|
|
@@ -4827,17 +4849,17 @@ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4827
4849
|
};
|
|
4828
4850
|
if (o === "chart")
|
|
4829
4851
|
return {
|
|
4830
|
-
options:
|
|
4852
|
+
options: Da(n.id, n.chart, n.data)
|
|
4831
4853
|
};
|
|
4832
4854
|
if (o === "md")
|
|
4833
4855
|
return {
|
|
4834
4856
|
source: n.data
|
|
4835
4857
|
};
|
|
4836
4858
|
if (o === "table") {
|
|
4837
|
-
if (!
|
|
4859
|
+
if (!et(n.data))
|
|
4838
4860
|
return { showPagination: !1 };
|
|
4839
4861
|
const a = [];
|
|
4840
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((s,
|
|
4862
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((s, p) => {
|
|
4841
4863
|
a.push({ field: s, label: s });
|
|
4842
4864
|
}), {
|
|
4843
4865
|
headers: a,
|
|
@@ -4852,7 +4874,7 @@ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4852
4874
|
}
|
|
4853
4875
|
};
|
|
4854
4876
|
function Ja(e, t, l, n, o, a) {
|
|
4855
|
-
const s = Ae,
|
|
4877
|
+
const s = Ae, p = Lt("resize");
|
|
4856
4878
|
return ie((i(), m(s, {
|
|
4857
4879
|
shadow: "never",
|
|
4858
4880
|
class: "part"
|
|
@@ -4862,7 +4884,7 @@ function Ja(e, t, l, n, o, a) {
|
|
|
4862
4884
|
]),
|
|
4863
4885
|
_: 1
|
|
4864
4886
|
})), [
|
|
4865
|
-
[
|
|
4887
|
+
[p, !0]
|
|
4866
4888
|
]);
|
|
4867
4889
|
}
|
|
4868
4890
|
const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1"]]), Ka = /* @__PURE__ */ q({
|
|
@@ -4879,9 +4901,9 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4879
4901
|
},
|
|
4880
4902
|
setup(e) {
|
|
4881
4903
|
const t = e, l = useRoute();
|
|
4882
|
-
|
|
4904
|
+
Mt(() => {
|
|
4883
4905
|
});
|
|
4884
|
-
const n =
|
|
4906
|
+
const n = M({});
|
|
4885
4907
|
ze(() => {
|
|
4886
4908
|
var f;
|
|
4887
4909
|
(f = t.filter) == null || f.forEach((b) => {
|
|
@@ -4898,7 +4920,7 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4898
4920
|
cancelButton: {
|
|
4899
4921
|
text: "重置"
|
|
4900
4922
|
}
|
|
4901
|
-
}, a =
|
|
4923
|
+
}, a = M(1), s = M(t.filter), p = M(t.dataPart), c = j(() => {
|
|
4902
4924
|
let f = l.params.id;
|
|
4903
4925
|
if (!f) {
|
|
4904
4926
|
const b = l.path.split("/");
|
|
@@ -4907,11 +4929,11 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4907
4929
|
return "/focusbi_report/view/" + f;
|
|
4908
4930
|
}), d = (f) => {
|
|
4909
4931
|
ms.get(c.value, { params: f }).then(({ data: b }) => {
|
|
4910
|
-
s.value = b.filter,
|
|
4932
|
+
s.value = b.filter, p.value = b.dataPart, a.value++;
|
|
4911
4933
|
});
|
|
4912
4934
|
};
|
|
4913
4935
|
return (f, b) => {
|
|
4914
|
-
const g = Ae, x = de, J =
|
|
4936
|
+
const g = Ae, x = de, J = Be, U = ae;
|
|
4915
4937
|
return i(), m(U, null, {
|
|
4916
4938
|
default: r(() => [
|
|
4917
4939
|
w(s).length > 0 ? (i(), m(x, {
|
|
@@ -4919,14 +4941,14 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4919
4941
|
span: 24
|
|
4920
4942
|
}, {
|
|
4921
4943
|
default: r(() => [
|
|
4922
|
-
|
|
4944
|
+
u(g, {
|
|
4923
4945
|
shadow: "never",
|
|
4924
4946
|
class: "part-filter"
|
|
4925
4947
|
}, {
|
|
4926
4948
|
default: r(() => [
|
|
4927
|
-
|
|
4949
|
+
u(w(z), {
|
|
4928
4950
|
modelValue: w(n),
|
|
4929
|
-
"onUpdate:modelValue": b[0] || (b[0] = (T) =>
|
|
4951
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => jt(n) ? n.value = T : null),
|
|
4930
4952
|
"form-items": w(s),
|
|
4931
4953
|
options: o,
|
|
4932
4954
|
onSubmit: d
|
|
@@ -4937,11 +4959,11 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4937
4959
|
]),
|
|
4938
4960
|
_: 1
|
|
4939
4961
|
})) : $("", !0),
|
|
4940
|
-
|
|
4962
|
+
u(x, { span: 24 }, {
|
|
4941
4963
|
default: r(() => [
|
|
4942
|
-
|
|
4964
|
+
u(U, { gutter: 20 }, {
|
|
4943
4965
|
default: r(() => [
|
|
4944
|
-
(i(!0), h(E, null,
|
|
4966
|
+
(i(!0), h(E, null, B(w(p), (T, Z) => (i(), m(x, {
|
|
4945
4967
|
key: Z,
|
|
4946
4968
|
span: T.col || 24
|
|
4947
4969
|
}, {
|
|
@@ -4952,7 +4974,7 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4952
4974
|
type: "error"
|
|
4953
4975
|
}, {
|
|
4954
4976
|
default: r(() => [
|
|
4955
|
-
k(
|
|
4977
|
+
k(O(T.errMsg), 1)
|
|
4956
4978
|
]),
|
|
4957
4979
|
_: 2
|
|
4958
4980
|
}, 1032, ["title"])) : (i(), m(za, {
|
|
@@ -4977,7 +4999,7 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4977
4999
|
const Wa = {
|
|
4978
5000
|
__name: "report",
|
|
4979
5001
|
setup(e) {
|
|
4980
|
-
const t = useRoute(), l =
|
|
5002
|
+
const t = useRoute(), l = j(() => {
|
|
4981
5003
|
let n = t.params.id;
|
|
4982
5004
|
if (!n) {
|
|
4983
5005
|
const o = t.path.split("/");
|
|
@@ -4987,19 +5009,19 @@ const Wa = {
|
|
|
4987
5009
|
});
|
|
4988
5010
|
return (n, o) => (i(), m(se, { "schema-api": w(l) }, {
|
|
4989
5011
|
default: r((a) => [
|
|
4990
|
-
|
|
5012
|
+
u(Ka, G(Y(a)), null, 16)
|
|
4991
5013
|
]),
|
|
4992
5014
|
_: 1
|
|
4993
5015
|
}, 8, ["schema-api"]));
|
|
4994
5016
|
}
|
|
4995
5017
|
};
|
|
4996
|
-
const Za = (e) =>
|
|
4997
|
-
card:
|
|
5018
|
+
const Za = (e) => u("div", null, [e.test]), Qa = {
|
|
5019
|
+
card: ll,
|
|
4998
5020
|
form: z,
|
|
4999
5021
|
table: oe,
|
|
5000
5022
|
test: Za,
|
|
5001
|
-
row:
|
|
5002
|
-
col:
|
|
5023
|
+
row: nl,
|
|
5024
|
+
col: ol
|
|
5003
5025
|
}, Xa = {
|
|
5004
5026
|
card: {
|
|
5005
5027
|
type: "card",
|
|
@@ -5033,9 +5055,9 @@ function Ya(e) {
|
|
|
5033
5055
|
type: l[a],
|
|
5034
5056
|
children: [o]
|
|
5035
5057
|
};
|
|
5036
|
-
return o.span = n,
|
|
5058
|
+
return o.span = n, De([o]);
|
|
5037
5059
|
}
|
|
5038
|
-
function
|
|
5060
|
+
function De(e) {
|
|
5039
5061
|
const t = {
|
|
5040
5062
|
type: "row",
|
|
5041
5063
|
props: {
|
|
@@ -5045,11 +5067,11 @@ function je(e) {
|
|
|
5045
5067
|
children: []
|
|
5046
5068
|
};
|
|
5047
5069
|
return e.forEach((l) => {
|
|
5048
|
-
var s,
|
|
5070
|
+
var s, p;
|
|
5049
5071
|
let n = Object.assign({}, l);
|
|
5050
5072
|
if (X((s = n.props) == null ? void 0 : s.style)) {
|
|
5051
5073
|
let c = "";
|
|
5052
|
-
Object.keys((
|
|
5074
|
+
Object.keys((p = n.props) == null ? void 0 : p.style).forEach((d) => {
|
|
5053
5075
|
var f;
|
|
5054
5076
|
c += d + ":" + ((f = n.props) == null ? void 0 : f.style[d]) + ";";
|
|
5055
5077
|
}), n.props.style = c;
|
|
@@ -5069,37 +5091,37 @@ function je(e) {
|
|
|
5069
5091
|
n = A({
|
|
5070
5092
|
props: {}
|
|
5071
5093
|
}, Xa[n.type] || {}, n);
|
|
5072
|
-
const a =
|
|
5073
|
-
a.length && (n.children =
|
|
5094
|
+
const a = St(n.children);
|
|
5095
|
+
a.length && (n.children = De(a)), t.children.push({
|
|
5074
5096
|
type: "col",
|
|
5075
5097
|
props: o,
|
|
5076
5098
|
children: [n]
|
|
5077
5099
|
});
|
|
5078
5100
|
}), [t];
|
|
5079
5101
|
}
|
|
5080
|
-
function
|
|
5081
|
-
return
|
|
5102
|
+
function St(e) {
|
|
5103
|
+
return et(e) ? e : X(e) ? [e] : [];
|
|
5082
5104
|
}
|
|
5083
5105
|
let Ee = {};
|
|
5084
|
-
const
|
|
5106
|
+
const xt = (e) => {
|
|
5085
5107
|
const t = Qa[e.type] || Ee[e.type] || e.type;
|
|
5086
|
-
return
|
|
5087
|
-
default: () =>
|
|
5108
|
+
return Nt(t, e.props, {
|
|
5109
|
+
default: () => St(e.children).map((l) => xt(l))
|
|
5088
5110
|
});
|
|
5089
|
-
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee =
|
|
5111
|
+
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Dt().appContext.components), De(Object.values(e.schema)).map((l) => xt(l))), ts = {
|
|
5090
5112
|
__name: "custom",
|
|
5091
5113
|
setup(e) {
|
|
5092
|
-
const t =
|
|
5114
|
+
const t = M([]), l = (n, o) => (t.value = Vt(n), n);
|
|
5093
5115
|
return (n, o) => (i(), m(se, { "schema-handler": l }, {
|
|
5094
5116
|
default: r(() => [
|
|
5095
|
-
|
|
5117
|
+
u(w(es), { schema: w(t) }, null, 8, ["schema"])
|
|
5096
5118
|
]),
|
|
5097
5119
|
_: 1
|
|
5098
5120
|
}));
|
|
5099
5121
|
}
|
|
5100
5122
|
};
|
|
5101
5123
|
let te = {};
|
|
5102
|
-
function
|
|
5124
|
+
function $i(e) {
|
|
5103
5125
|
te = e;
|
|
5104
5126
|
}
|
|
5105
5127
|
const ls = (e) => {
|
|
@@ -5110,31 +5132,31 @@ const ls = (e) => {
|
|
|
5110
5132
|
if (e.path === "#")
|
|
5111
5133
|
return ge;
|
|
5112
5134
|
switch (e.page_type) {
|
|
5113
|
-
case
|
|
5114
|
-
return
|
|
5115
|
-
case
|
|
5135
|
+
case D.list:
|
|
5136
|
+
return wt;
|
|
5137
|
+
case D.form:
|
|
5116
5138
|
return xe;
|
|
5117
|
-
case
|
|
5118
|
-
case
|
|
5139
|
+
case D.custom:
|
|
5140
|
+
case D.localComp:
|
|
5119
5141
|
return t(e.view || "");
|
|
5120
|
-
case
|
|
5142
|
+
case D.tree:
|
|
5121
5143
|
return Ma;
|
|
5122
|
-
case
|
|
5144
|
+
case D.report:
|
|
5123
5145
|
return Wa;
|
|
5124
|
-
case
|
|
5146
|
+
case D.customSchema:
|
|
5125
5147
|
return ts;
|
|
5126
5148
|
}
|
|
5127
5149
|
return ge;
|
|
5128
5150
|
};
|
|
5129
5151
|
function ns(e) {
|
|
5130
5152
|
let t = e.path;
|
|
5131
|
-
return e.type ===
|
|
5153
|
+
return e.type === L.menu && e.page_type === D.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;
|
|
5132
5154
|
}
|
|
5133
5155
|
function os(e) {
|
|
5134
5156
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5135
5157
|
}
|
|
5136
|
-
const
|
|
5137
|
-
const t = e.type !==
|
|
5158
|
+
const Et = (e) => {
|
|
5159
|
+
const t = e.type !== L.page, l = {
|
|
5138
5160
|
path: ns(e),
|
|
5139
5161
|
name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5140
5162
|
component: ls(e),
|
|
@@ -5148,18 +5170,18 @@ const St = (e) => {
|
|
|
5148
5170
|
menuType: e.type,
|
|
5149
5171
|
keepAlive: !1
|
|
5150
5172
|
},
|
|
5151
|
-
children: e.children ? e.children.map((n) =>
|
|
5173
|
+
children: e.children ? e.children.map((n) => Et(n)) : []
|
|
5152
5174
|
};
|
|
5153
|
-
if (e.page_type ===
|
|
5175
|
+
if (e.page_type === D.entity) {
|
|
5154
5176
|
const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5155
5177
|
path: n,
|
|
5156
5178
|
name: e.name + "列表" + e.id,
|
|
5157
|
-
component:
|
|
5179
|
+
component: wt,
|
|
5158
5180
|
meta: {
|
|
5159
5181
|
id: e.id + 99999,
|
|
5160
5182
|
title: "列表",
|
|
5161
5183
|
hidden: !0,
|
|
5162
|
-
menuType:
|
|
5184
|
+
menuType: L.hidden,
|
|
5163
5185
|
keepAlive: !1,
|
|
5164
5186
|
pageId: e.id,
|
|
5165
5187
|
path: e.path
|
|
@@ -5172,7 +5194,7 @@ const St = (e) => {
|
|
|
5172
5194
|
id: e.id + 99999 + 1,
|
|
5173
5195
|
title: "新建",
|
|
5174
5196
|
hidden: !0,
|
|
5175
|
-
menuType:
|
|
5197
|
+
menuType: L.hidden,
|
|
5176
5198
|
keepAlive: !1,
|
|
5177
5199
|
pageId: e.id,
|
|
5178
5200
|
path: e.path
|
|
@@ -5185,7 +5207,7 @@ const St = (e) => {
|
|
|
5185
5207
|
id: e.id + 99999 + 2,
|
|
5186
5208
|
title: "编辑",
|
|
5187
5209
|
hidden: !0,
|
|
5188
|
-
menuType:
|
|
5210
|
+
menuType: L.hidden,
|
|
5189
5211
|
keepAlive: !1,
|
|
5190
5212
|
pageId: e.id,
|
|
5191
5213
|
path: e.path
|
|
@@ -5197,8 +5219,8 @@ const St = (e) => {
|
|
|
5197
5219
|
let n = !0;
|
|
5198
5220
|
if (l.children.forEach((o) => {
|
|
5199
5221
|
o.meta && !o.meta.hidden && (n = !1);
|
|
5200
|
-
}), l.meta && (l.meta.menuType = t ?
|
|
5201
|
-
l.meta && (l.meta.menuType =
|
|
5222
|
+
}), l.meta && (l.meta.menuType = t ? L.dir : L.hidden), n) {
|
|
5223
|
+
l.meta && (l.meta.menuType = L.menu);
|
|
5202
5224
|
let o = "/";
|
|
5203
5225
|
for (let a = 0; a < l.children.length; a++)
|
|
5204
5226
|
if (l.children[a].path.indexOf("/:") === -1) {
|
|
@@ -5218,13 +5240,13 @@ const St = (e) => {
|
|
|
5218
5240
|
routes: []
|
|
5219
5241
|
};
|
|
5220
5242
|
l.routes.forEach((o) => {
|
|
5221
|
-
n.routes.push(
|
|
5243
|
+
n.routes.push(Et(o));
|
|
5222
5244
|
}), t.push(n);
|
|
5223
5245
|
}), t;
|
|
5224
5246
|
};
|
|
5225
5247
|
function ss(e) {
|
|
5226
5248
|
e.beforeEach(async (t, l, n) => {
|
|
5227
|
-
if (
|
|
5249
|
+
if (vt().indexOf(t.path) !== -1) {
|
|
5228
5250
|
n();
|
|
5229
5251
|
return;
|
|
5230
5252
|
}
|
|
@@ -5235,11 +5257,11 @@ function ss(e) {
|
|
|
5235
5257
|
await S.dispatch("user/info");
|
|
5236
5258
|
const o = await S.dispatch("user/loadRemoteRoutes"), a = as(o);
|
|
5237
5259
|
a.forEach((s) => {
|
|
5238
|
-
s.routes.forEach((
|
|
5260
|
+
s.routes.forEach((p) => {
|
|
5239
5261
|
e.addRoute({
|
|
5240
5262
|
path: "/",
|
|
5241
|
-
component:
|
|
5242
|
-
children: [
|
|
5263
|
+
component: bt,
|
|
5264
|
+
children: [p]
|
|
5243
5265
|
});
|
|
5244
5266
|
});
|
|
5245
5267
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
|
|
@@ -5247,11 +5269,11 @@ function ss(e) {
|
|
|
5247
5269
|
}
|
|
5248
5270
|
function is(e) {
|
|
5249
5271
|
e.beforeEach(async (t, l, n) => {
|
|
5250
|
-
var
|
|
5272
|
+
var p;
|
|
5251
5273
|
const a = [S.state.settings.title || ""], s = t.matched.length;
|
|
5252
5274
|
for (let c = s; c > s - 3; c--) {
|
|
5253
5275
|
const d = t.matched[c - 1];
|
|
5254
|
-
(
|
|
5276
|
+
(p = d == null ? void 0 : d.meta) != null && p.title && a.push(d.meta.title + "");
|
|
5255
5277
|
}
|
|
5256
5278
|
a.length > 1 && (document.title = a.reverse().join("-")), n();
|
|
5257
5279
|
}), e.afterEach(async (t, l, n) => {
|
|
@@ -5266,23 +5288,23 @@ function cs() {
|
|
|
5266
5288
|
return S.state.user.token;
|
|
5267
5289
|
}
|
|
5268
5290
|
function Ge(e) {
|
|
5269
|
-
|
|
5291
|
+
en({
|
|
5270
5292
|
message: e,
|
|
5271
5293
|
type: "error",
|
|
5272
5294
|
duration: 5 * 1e3,
|
|
5273
5295
|
grouping: !0
|
|
5274
5296
|
});
|
|
5275
5297
|
}
|
|
5276
|
-
const
|
|
5298
|
+
const us = {
|
|
5277
5299
|
onFulfilled: function(e) {
|
|
5278
5300
|
var l;
|
|
5279
5301
|
e.headers = e.headers || {};
|
|
5280
5302
|
const t = cs();
|
|
5281
5303
|
return t && (e.headers["X-Token"] = t), (l = K.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = K.currentRoute.value.meta.path), e;
|
|
5282
5304
|
}
|
|
5283
|
-
},
|
|
5305
|
+
}, ps = {
|
|
5284
5306
|
onFulfilled(e) {
|
|
5285
|
-
var n, o, a, s,
|
|
5307
|
+
var n, o, a, s, p, c, d;
|
|
5286
5308
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5287
5309
|
const f = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5288
5310
|
if (e.data.code === 401) {
|
|
@@ -5300,7 +5322,7 @@ const ps = {
|
|
|
5300
5322
|
Ge(f);
|
|
5301
5323
|
return Promise.reject(f);
|
|
5302
5324
|
}
|
|
5303
|
-
let l = (
|
|
5325
|
+
let l = (p = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : p._message_box;
|
|
5304
5326
|
return l !== void 0 && ($e(l) && (l = {
|
|
5305
5327
|
message: (d = (c = e.data) == null ? void 0 : c.data) == null ? void 0 : d._message_box
|
|
5306
5328
|
}), Ue({
|
|
@@ -5316,12 +5338,12 @@ const ps = {
|
|
|
5316
5338
|
}
|
|
5317
5339
|
}, ds = [
|
|
5318
5340
|
{
|
|
5319
|
-
request:
|
|
5320
|
-
response:
|
|
5341
|
+
request: ln,
|
|
5342
|
+
response: nn
|
|
5321
5343
|
},
|
|
5322
5344
|
{
|
|
5323
|
-
request:
|
|
5324
|
-
response:
|
|
5345
|
+
request: us,
|
|
5346
|
+
response: ps
|
|
5325
5347
|
}
|
|
5326
5348
|
];
|
|
5327
5349
|
function Ne(e = {}) {
|
|
@@ -5343,7 +5365,7 @@ const fs = {
|
|
|
5343
5365
|
unmounted(e) {
|
|
5344
5366
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5345
5367
|
}
|
|
5346
|
-
}, W =
|
|
5368
|
+
}, W = Ol(), hs = {
|
|
5347
5369
|
mounted: (e, t) => {
|
|
5348
5370
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5349
5371
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
|
|
@@ -5380,8 +5402,8 @@ const _s = {
|
|
|
5380
5402
|
}, n.appendChild(o);
|
|
5381
5403
|
const s = document.createElement("span");
|
|
5382
5404
|
s.className = "dev-action-del", s.title = "删除";
|
|
5383
|
-
const
|
|
5384
|
-
|
|
5405
|
+
const p = document.createElement("i");
|
|
5406
|
+
p.className = "iconfont ra-cut", s.appendChild(p), s.onclick = (c) => {
|
|
5385
5407
|
W.emit("dev-action", { event: c, data: { type: "del", devId: t.value.devId } });
|
|
5386
5408
|
}, n.appendChild(s), l.insertBefore(n, l.firstChild);
|
|
5387
5409
|
}
|
|
@@ -5393,14 +5415,14 @@ const _s = {
|
|
|
5393
5415
|
rightClick: hs
|
|
5394
5416
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5395
5417
|
let ce;
|
|
5396
|
-
function
|
|
5418
|
+
function Ii(e) {
|
|
5397
5419
|
return e ? Ne(A(me.axios, e)) : ce;
|
|
5398
5420
|
}
|
|
5399
|
-
function
|
|
5400
|
-
const t = A(me, e), l =
|
|
5421
|
+
function Ci(e) {
|
|
5422
|
+
const t = A(me, e), l = qt(Rl), n = Es(t), o = t.plugins || [];
|
|
5401
5423
|
o.unshift(n), o.forEach((a) => {
|
|
5402
5424
|
xs(l, a);
|
|
5403
|
-
}), t != null && t.mock &&
|
|
5425
|
+
}), t != null && t.mock && Fl(), ce = Ne(t.axios), S.dispatch("setHttp", ce).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), S.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Cl(() => ({
|
|
5404
5426
|
"X-Token": Me()
|
|
5405
5427
|
})), K.isReady().then(() => l.mount("#app"));
|
|
5406
5428
|
}
|
|
@@ -5435,38 +5457,39 @@ function Ss(e = {}) {
|
|
|
5435
5457
|
});
|
|
5436
5458
|
}
|
|
5437
5459
|
function xs(e, t) {
|
|
5438
|
-
vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}),
|
|
5460
|
+
vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), ct(t.mockApis || []);
|
|
5439
5461
|
}
|
|
5440
5462
|
function Es(e) {
|
|
5441
5463
|
var t;
|
|
5442
5464
|
return {
|
|
5443
|
-
components: { VIcon:
|
|
5465
|
+
components: { VIcon: Tl },
|
|
5444
5466
|
directives: ys,
|
|
5445
5467
|
use: [
|
|
5446
5468
|
S,
|
|
5447
5469
|
K,
|
|
5448
|
-
[
|
|
5470
|
+
[Yt, { locale: lt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5449
5471
|
]
|
|
5450
5472
|
};
|
|
5451
5473
|
}
|
|
5452
5474
|
export {
|
|
5453
|
-
|
|
5475
|
+
_t as BaseSso,
|
|
5454
5476
|
ge as Container,
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5477
|
+
Ei as DingTalk,
|
|
5478
|
+
xi as Github,
|
|
5479
|
+
bt as Layout,
|
|
5480
|
+
L as MenuType,
|
|
5481
|
+
en as Message,
|
|
5459
5482
|
Ue as MessageBox,
|
|
5460
|
-
|
|
5483
|
+
D as PageType,
|
|
5461
5484
|
Wo as allSso,
|
|
5462
|
-
|
|
5485
|
+
Ci as createAdmin,
|
|
5463
5486
|
W as eventBus,
|
|
5464
|
-
|
|
5487
|
+
on as getCmp,
|
|
5465
5488
|
ce as http,
|
|
5466
5489
|
Ne as instance,
|
|
5467
|
-
|
|
5490
|
+
$i as regViews,
|
|
5468
5491
|
Si as setCmp,
|
|
5469
5492
|
as as transRemoteModules,
|
|
5470
|
-
|
|
5493
|
+
Ii as useHttp
|
|
5471
5494
|
};
|
|
5472
5495
|
//# sourceMappingURL=index.es.js.map
|