@okiss/oms 0.0.47 → 0.0.49
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 +841 -796
- 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 +3 -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,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { addNewStyle as
|
|
1
|
+
var Tt = Object.defineProperty;
|
|
2
|
+
var Ot = (e, t, l) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var L = (e, t, l) => (Ot(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { defineComponent as V, onBeforeMount as Ze, provide as Bt, resolveComponent as v, openBlock as i, createBlock as m, ref as A, createElementBlock as h, createVNode as c, unref as w, mergeProps as U, pushScopeId as $e, popScopeId as Ie, createElementVNode as _, computed as j, createTextVNode as k, withCtx as r, TransitionGroup as At, Fragment as E, renderList as B, toDisplayString as O, normalizeClass as F, renderSlot as le, createCommentVNode as $, toRefs as Pt, normalizeStyle as Rt, Transition as Lt, resolveDynamicComponent as Qe, normalizeProps as J, guardReactiveProps as Y, withDirectives as ie, vModelText as he, resolveDirective as Mt, onMounted as jt, isRef as Dt, getCurrentInstance as Nt, h as Vt, toRaw as qt, createApp as Ut } from "vue";
|
|
5
|
+
import { addNewStyle as Ht, addNewStyleTag as Ft, queryParams as Gt, logGroup as Jt, compactObject as Xe, showEleByClassName as Ye, waterMarker as zt, Cache as be, isExternal as Ue, getQueryParam as et, createIFrame as Kt, strVarReplace as Q, obj2Param as Wt, isObject as X, isString as Ce, effectDataTrans as Zt, isArray as tt } from "@okiss/utils";
|
|
6
6
|
import _e from "mockjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import Qt, { cloneDeep as y, merge as P, get as ne, unset as lt, isObject as Xt } from "lodash";
|
|
8
|
+
import nt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
|
+
import Te from "axios";
|
|
10
10
|
import N from "js-cookie";
|
|
11
|
-
import { createStore as
|
|
12
|
-
import
|
|
11
|
+
import { createStore as Yt, useStore as ot, mapGetters as Oe } from "vuex";
|
|
12
|
+
import el, { ElMessage as tl, ElMessageBox as ll, ElCard as nl, ElRow as ol, ElCol as al } from "element-plus";
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
|
-
import { useRoute as
|
|
16
|
-
import {
|
|
15
|
+
import { useRoute as pe, onBeforeRouteLeave as sl, useRouter as il, createRouter as rl, createWebHashHistory as cl, onBeforeRouteUpdate as ul } from "vue-router";
|
|
16
|
+
import { VForm as G, VBtn as Be, JsonView as Ae, VTable as oe, VChart as pl, setUploadHeaderHandle as dl, VIcon as ml } from "@okiss/vbtf";
|
|
17
|
+
import { ElBreadcrumbItem as fl, ElBreadcrumb as hl, ElRow as ae, ElMain as bl, ElAside as _l, ElContainer as yl, ElDivider as at, ElButton as ue, ElOption as Pe, ElSelect as Re, ElFormItem as st, ElForm as it, ElCol as de, ElDrawer as rt, ElDropdownItem as vl, ElDropdownMenu as gl, ElDropdown as kl, ElMenuItem as wl, ElSubMenu as Sl, ElOptionGroup as xl, ElMenu as El, ElScrollbar as $l, ElBacktop as Il, ElMessage as Cl, ElAlert as Le, ElTree as Tl, ElCard as Me } from "element-plus/es";
|
|
17
18
|
import "element-plus/es/components/base/style/css";
|
|
18
19
|
import "element-plus/es/components/row/style/css";
|
|
19
20
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -23,7 +24,7 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
23
24
|
import "element-plus/es/components/col/style/css";
|
|
24
25
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
25
26
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
26
|
-
import * as
|
|
27
|
+
import * as Ol from "path-to-regexp";
|
|
27
28
|
import "element-plus/es/components/form/style/css";
|
|
28
29
|
import "element-plus/es/components/form-item/style/css";
|
|
29
30
|
import "element-plus/es/components/select/style/css";
|
|
@@ -33,22 +34,21 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
34
|
import "element-plus/es/components/container/style/css";
|
|
34
35
|
import "element-plus/es/components/aside/style/css";
|
|
35
36
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as El, setUploadHeaderHandle as $l, VIcon as Il } from "@okiss/vbtf";
|
|
37
37
|
import "normalize.css/normalize.css";
|
|
38
38
|
import "@okiss/vbtf/style.css";
|
|
39
|
-
import
|
|
39
|
+
import Bl 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 Al } 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 Pl from "vue3-markdown-it";
|
|
51
|
+
import { MD5 as Rl } 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 Ll = /* @__PURE__ */ V({
|
|
62
62
|
__name: "App",
|
|
63
63
|
setup(e) {
|
|
64
64
|
var t, l, n, o;
|
|
65
|
-
return
|
|
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(), Ht("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ft(`.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 && Bt("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 Ml = {
|
|
82
82
|
saveApi: "/save",
|
|
83
83
|
afterSubmit: "",
|
|
84
84
|
afterReset: "goback",
|
|
@@ -412,7 +412,7 @@ const Pl = {
|
|
|
412
412
|
info: "在通用表单控件无法满足需求时, 可以编写 `template` 模板组件"
|
|
413
413
|
}
|
|
414
414
|
]
|
|
415
|
-
},
|
|
415
|
+
}, He = [
|
|
416
416
|
{
|
|
417
417
|
type: "jump",
|
|
418
418
|
text: "跳转",
|
|
@@ -467,7 +467,7 @@ const Pl = {
|
|
|
467
467
|
type: "success"
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
],
|
|
470
|
+
], jl = {
|
|
471
471
|
exportAble: !0,
|
|
472
472
|
filter: [
|
|
473
473
|
{
|
|
@@ -533,7 +533,7 @@ const Pl = {
|
|
|
533
533
|
label: "信息"
|
|
534
534
|
}
|
|
535
535
|
],
|
|
536
|
-
batchButton:
|
|
536
|
+
batchButton: He,
|
|
537
537
|
rowButton: [
|
|
538
538
|
{
|
|
539
539
|
type: "jump",
|
|
@@ -564,7 +564,7 @@ const Pl = {
|
|
|
564
564
|
}
|
|
565
565
|
],
|
|
566
566
|
normalButton: [
|
|
567
|
-
...
|
|
567
|
+
...Qt.cloneDeep(He),
|
|
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
|
+
}, Dl = {
|
|
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
|
+
}, Nl = {
|
|
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
|
+
}, Vl = {
|
|
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
|
+
}, ql = { form: Ml, table: jl, listMock: Dl, layoutForm: Nl, layoutSection: Vl }, Ul = [
|
|
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) => ql.listMock
|
|
721
721
|
}
|
|
722
|
-
],
|
|
723
|
-
...
|
|
724
|
-
],
|
|
722
|
+
], Hl = [
|
|
723
|
+
...Ul
|
|
724
|
+
], Fl = {
|
|
725
725
|
baseURL: "/api",
|
|
726
726
|
withCredentials: !0,
|
|
727
|
-
timeout: 5e3,
|
|
728
727
|
cacheEnable: !0
|
|
729
|
-
},
|
|
728
|
+
}, ct = {
|
|
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: nt
|
|
744
743
|
},
|
|
745
744
|
nav: [],
|
|
746
745
|
whiteRoutes: ["/login"],
|
|
@@ -752,48 +751,48 @@ const Pl = {
|
|
|
752
751
|
},
|
|
753
752
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
|
|
754
753
|
}, me = {
|
|
755
|
-
axios:
|
|
756
|
-
settings:
|
|
754
|
+
axios: Fl,
|
|
755
|
+
settings: ct,
|
|
757
756
|
plugins: [],
|
|
758
757
|
mock: !1
|
|
759
758
|
}, we = {};
|
|
760
|
-
function
|
|
759
|
+
function ut(e) {
|
|
761
760
|
e.forEach((t) => {
|
|
762
|
-
const l =
|
|
761
|
+
const l = pt(t);
|
|
763
762
|
we[`${t.method}::${l}`] = t;
|
|
764
763
|
});
|
|
765
764
|
}
|
|
766
|
-
|
|
767
|
-
function
|
|
765
|
+
ut(Hl);
|
|
766
|
+
function pt(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 Gl() {
|
|
773
772
|
Object.keys(we).forEach((e) => {
|
|
774
|
-
const t = we[e], l =
|
|
773
|
+
const t = we[e], l = pt(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 = Gt(o), u = s ? JSON.parse(s) : {}, d = t.response({ query: p, data: u }), f = _e.mock(d);
|
|
776
|
+
return Jt(o, { type: a, query: p, data: u, 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
|
}
|
|
781
|
-
const
|
|
782
|
-
function
|
|
783
|
-
return N.get(
|
|
780
|
+
const je = "oms:token";
|
|
781
|
+
function De() {
|
|
782
|
+
return N.get(je) || "";
|
|
784
783
|
}
|
|
785
|
-
function
|
|
784
|
+
function Jl(e) {
|
|
786
785
|
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (S.state.settings.tokenExpire || 864e5));
|
|
787
|
-
return N.set(
|
|
786
|
+
return N.set(je, e, { expires: t });
|
|
788
787
|
}
|
|
789
|
-
function
|
|
790
|
-
return N.remove(
|
|
788
|
+
function dt() {
|
|
789
|
+
return N.remove(je);
|
|
791
790
|
}
|
|
792
|
-
const
|
|
791
|
+
const zl = {
|
|
793
792
|
name: "",
|
|
794
793
|
nickname: "",
|
|
795
794
|
avatar: "",
|
|
796
|
-
token:
|
|
795
|
+
token: De(),
|
|
797
796
|
customRouter: [],
|
|
798
797
|
remoteRouter: [],
|
|
799
798
|
menuRoutes: [],
|
|
@@ -802,15 +801,15 @@ const Fl = {
|
|
|
802
801
|
roleIds: [],
|
|
803
802
|
path: "",
|
|
804
803
|
env: ""
|
|
805
|
-
},
|
|
804
|
+
}, Kl = {
|
|
806
805
|
namespaced: !0,
|
|
807
|
-
state:
|
|
806
|
+
state: zl,
|
|
808
807
|
mutations: {
|
|
809
808
|
updateToken(e, t) {
|
|
810
|
-
e.token = t,
|
|
809
|
+
e.token = t, Jl(t);
|
|
811
810
|
},
|
|
812
811
|
removeToken(e) {
|
|
813
|
-
e.token = "",
|
|
812
|
+
e.token = "", dt();
|
|
814
813
|
},
|
|
815
814
|
updateRemoteRouter(e, t) {
|
|
816
815
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -826,7 +825,7 @@ const Fl = {
|
|
|
826
825
|
name: "",
|
|
827
826
|
nickname: "",
|
|
828
827
|
avatar: "",
|
|
829
|
-
token:
|
|
828
|
+
token: De(),
|
|
830
829
|
customRouter: [],
|
|
831
830
|
remoteRouter: [],
|
|
832
831
|
menuRoutes: [],
|
|
@@ -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,9 +865,11 @@ const Fl = {
|
|
|
866
865
|
url: "/user/info",
|
|
867
866
|
method: "GET"
|
|
868
867
|
}).then((o) => {
|
|
869
|
-
var
|
|
870
|
-
const a = ((
|
|
871
|
-
e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (
|
|
868
|
+
var p, u, d, f, b, g;
|
|
869
|
+
const a = ((p = o.data) == null ? void 0 : p.role_ids) || [];
|
|
870
|
+
e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.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 });
|
|
871
|
+
const s = ((b = o.data) == null ? void 0 : b.website) || {};
|
|
872
|
+
e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (g = o.data) == null ? void 0 : g.name), l(!0);
|
|
872
873
|
}).catch((o) => {
|
|
873
874
|
n(o);
|
|
874
875
|
}) : n("http client not init");
|
|
@@ -892,12 +893,12 @@ const Fl = {
|
|
|
892
893
|
});
|
|
893
894
|
}
|
|
894
895
|
}
|
|
895
|
-
},
|
|
896
|
+
}, Wl = y(ct), Zl = {
|
|
896
897
|
namespaced: !0,
|
|
897
|
-
state:
|
|
898
|
+
state: Wl,
|
|
898
899
|
mutations: {
|
|
899
900
|
updateSettings(e, t) {
|
|
900
|
-
e =
|
|
901
|
+
e = P(e, t);
|
|
901
902
|
}
|
|
902
903
|
},
|
|
903
904
|
actions: {
|
|
@@ -905,7 +906,7 @@ const Fl = {
|
|
|
905
906
|
e("updateSettings", l);
|
|
906
907
|
}
|
|
907
908
|
}
|
|
908
|
-
},
|
|
909
|
+
}, Ql = {
|
|
909
910
|
sidebar: {
|
|
910
911
|
opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
|
|
911
912
|
withoutAnimation: !1
|
|
@@ -915,9 +916,9 @@ const Fl = {
|
|
|
915
916
|
currentRouteMeta: {},
|
|
916
917
|
builderSchema: {},
|
|
917
918
|
baseURL: ""
|
|
918
|
-
},
|
|
919
|
+
}, Xl = {
|
|
919
920
|
namespaced: !0,
|
|
920
|
-
state:
|
|
921
|
+
state: Ql,
|
|
921
922
|
mutations: {
|
|
922
923
|
TOGGLE_SIDEBAR: (e) => {
|
|
923
924
|
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
|
|
@@ -964,12 +965,12 @@ const Fl = {
|
|
|
964
965
|
e("SET_BASE_API", t);
|
|
965
966
|
}
|
|
966
967
|
}
|
|
967
|
-
},
|
|
968
|
+
}, Yl = {
|
|
968
969
|
currentCellItem: {}
|
|
969
970
|
// form/sub-form 当前单元格编辑数据
|
|
970
|
-
},
|
|
971
|
+
}, en = {
|
|
971
972
|
namespaced: !0,
|
|
972
|
-
state:
|
|
973
|
+
state: Yl,
|
|
973
974
|
mutations: {
|
|
974
975
|
SET_CURRENT_CELLITEM: (e, t) => {
|
|
975
976
|
e.currentCellItem = t;
|
|
@@ -980,7 +981,7 @@ const Fl = {
|
|
|
980
981
|
e("SET_CURRENT_CELLITEM", t);
|
|
981
982
|
}
|
|
982
983
|
}
|
|
983
|
-
}, S =
|
|
984
|
+
}, S = Yt({
|
|
984
985
|
state: void 0,
|
|
985
986
|
getters: {
|
|
986
987
|
http: (e) => e.http,
|
|
@@ -1007,12 +1008,12 @@ const Fl = {
|
|
|
1007
1008
|
}
|
|
1008
1009
|
},
|
|
1009
1010
|
modules: {
|
|
1010
|
-
user:
|
|
1011
|
-
settings:
|
|
1012
|
-
app:
|
|
1013
|
-
builderSchema:
|
|
1011
|
+
user: Kl,
|
|
1012
|
+
settings: Zl,
|
|
1013
|
+
app: Xl,
|
|
1014
|
+
builderSchema: en
|
|
1014
1015
|
}
|
|
1015
|
-
}),
|
|
1016
|
+
}), tn = tl, Fe = ll, ln = Te.CancelToken, re = {
|
|
1016
1017
|
taskList: {},
|
|
1017
1018
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1018
1019
|
uniqueId(e) {
|
|
@@ -1048,41 +1049,47 @@ const Fl = {
|
|
|
1048
1049
|
const t = this.uniqueId(e);
|
|
1049
1050
|
return this.cacheList.delete(t);
|
|
1050
1051
|
}
|
|
1051
|
-
},
|
|
1052
|
+
}, nn = {
|
|
1052
1053
|
onFulfilled: function(e) {
|
|
1053
|
-
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 ln((t) => {
|
|
1054
1055
|
re.addTask(e, t);
|
|
1055
1056
|
})), e;
|
|
1056
1057
|
},
|
|
1057
1058
|
onRejected(e) {
|
|
1058
1059
|
return Promise.reject(e);
|
|
1059
1060
|
}
|
|
1060
|
-
},
|
|
1061
|
+
}, on = {
|
|
1061
1062
|
onFulfilled: function(e) {
|
|
1062
1063
|
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && re.addCache(e.config, e.data), e;
|
|
1063
1064
|
},
|
|
1064
1065
|
onRejected(e) {
|
|
1065
1066
|
return Promise.reject(e);
|
|
1066
1067
|
}
|
|
1067
|
-
},
|
|
1068
|
-
function
|
|
1069
|
-
|
|
1068
|
+
}, mt = {};
|
|
1069
|
+
function Ci(e, t) {
|
|
1070
|
+
mt[e] = t;
|
|
1070
1071
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return
|
|
1072
|
+
function an(e) {
|
|
1073
|
+
return mt[e];
|
|
1073
1074
|
}
|
|
1074
|
-
const
|
|
1075
|
-
|
|
1076
|
-
setup() {
|
|
1077
|
-
const
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1075
|
+
const sn = (e) => ($e("data-v-553f7039"), e = e(), Ie(), e), rn = { class: "box" }, cn = /* @__PURE__ */ sn(() => /* @__PURE__ */ _("div", { class: "box-container" }, "申请权限", -1)), un = /* @__PURE__ */ V({
|
|
1076
|
+
__name: "EmptyRole",
|
|
1077
|
+
setup(e) {
|
|
1078
|
+
const t = A({}), l = {
|
|
1079
|
+
formItems: [
|
|
1080
|
+
{
|
|
1081
|
+
field: "role_id",
|
|
1082
|
+
label: "角色"
|
|
1083
|
+
}
|
|
1084
|
+
]
|
|
1085
|
+
};
|
|
1086
|
+
return (n, o) => (i(), h("div", rn, [
|
|
1087
|
+
cn,
|
|
1088
|
+
c(w(G), U({
|
|
1089
|
+
modelValue: t.value,
|
|
1090
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a)
|
|
1091
|
+
}, l), null, 16, ["modelValue"])
|
|
1092
|
+
]));
|
|
1086
1093
|
}
|
|
1087
1094
|
});
|
|
1088
1095
|
const I = (e, t) => {
|
|
@@ -1090,8 +1097,22 @@ const I = (e, t) => {
|
|
|
1090
1097
|
for (const [n, o] of t)
|
|
1091
1098
|
l[n] = o;
|
|
1092
1099
|
return l;
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1100
|
+
}, Ge = /* @__PURE__ */ I(un, [["__scopeId", "data-v-553f7039"]]), pn = /* @__PURE__ */ V({
|
|
1101
|
+
name: "Dashboard",
|
|
1102
|
+
setup() {
|
|
1103
|
+
const e = ot(), t = j(() => e.state.settings.loginTips), l = an("dashboard");
|
|
1104
|
+
if (l)
|
|
1105
|
+
return () => c("span", null, [c(l, null, null), t.value.length === 0 ? c(Ge, null, null) : void 0]);
|
|
1106
|
+
const n = j(() => e.getters.name);
|
|
1107
|
+
return () => c("div", {
|
|
1108
|
+
class: "dashboard-container"
|
|
1109
|
+
}, [c("div", {
|
|
1110
|
+
class: "dashboard-text"
|
|
1111
|
+
}, [k("Hi "), n.value, k(" 😄")]), t.value.length === 0 ? c(Ge, null, null) : void 0]);
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
const dn = /* @__PURE__ */ I(pn, [["__scopeId", "data-v-5bd7dba5"]]);
|
|
1115
|
+
const mn = {
|
|
1095
1116
|
data() {
|
|
1096
1117
|
return {
|
|
1097
1118
|
levelList: null
|
|
@@ -1123,7 +1144,7 @@ const an = {
|
|
|
1123
1144
|
},
|
|
1124
1145
|
pathCompile(e) {
|
|
1125
1146
|
const { params: t } = this.$route;
|
|
1126
|
-
return
|
|
1147
|
+
return Ol.compile(e)(t);
|
|
1127
1148
|
},
|
|
1128
1149
|
handleLink(e) {
|
|
1129
1150
|
const { redirect: t, path: l } = e;
|
|
@@ -1134,27 +1155,27 @@ const an = {
|
|
|
1134
1155
|
this.$router.push(this.pathCompile(l));
|
|
1135
1156
|
}
|
|
1136
1157
|
}
|
|
1137
|
-
},
|
|
1158
|
+
}, fn = {
|
|
1138
1159
|
key: 0,
|
|
1139
1160
|
class: "no-redirect"
|
|
1140
|
-
},
|
|
1141
|
-
function
|
|
1142
|
-
const s =
|
|
1143
|
-
return i(), m(
|
|
1161
|
+
}, hn = ["onClick"];
|
|
1162
|
+
function bn(e, t, l, n, o, a) {
|
|
1163
|
+
const s = fl, p = hl;
|
|
1164
|
+
return i(), m(p, {
|
|
1144
1165
|
class: "app-breadcrumb",
|
|
1145
1166
|
separator: "/"
|
|
1146
1167
|
}, {
|
|
1147
1168
|
default: r(() => [
|
|
1148
|
-
|
|
1169
|
+
c(At, { name: "breadcrumb" }, {
|
|
1149
1170
|
default: r(() => [
|
|
1150
|
-
(i(!0), h(E, null,
|
|
1151
|
-
key:
|
|
1171
|
+
(i(!0), h(E, null, B(o.levelList, (u, d) => (i(), m(s, {
|
|
1172
|
+
key: u.path
|
|
1152
1173
|
}, {
|
|
1153
1174
|
default: r(() => [
|
|
1154
|
-
|
|
1175
|
+
u.path.indexOf("/DIR_") === 0 && u.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", fn, O(u.meta.title), 1)) : (i(), h("a", {
|
|
1155
1176
|
key: 1,
|
|
1156
|
-
onClick: (f) => a.handleLink(
|
|
1157
|
-
},
|
|
1177
|
+
onClick: (f) => a.handleLink(u)
|
|
1178
|
+
}, O(u.meta.title), 9, hn))
|
|
1158
1179
|
]),
|
|
1159
1180
|
_: 2
|
|
1160
1181
|
}, 1024))), 128))
|
|
@@ -1165,7 +1186,7 @@ function cn(e, t, l, n, o, a) {
|
|
|
1165
1186
|
_: 1
|
|
1166
1187
|
});
|
|
1167
1188
|
}
|
|
1168
|
-
const
|
|
1189
|
+
const _n = /* @__PURE__ */ I(mn, [["render", bn], ["__scopeId", "data-v-fa74804e"]]), yn = {
|
|
1169
1190
|
name: "Hamburger",
|
|
1170
1191
|
props: {
|
|
1171
1192
|
isActive: {
|
|
@@ -1180,31 +1201,31 @@ const pn = /* @__PURE__ */ I(an, [["render", cn], ["__scopeId", "data-v-fa74804e
|
|
|
1180
1201
|
}
|
|
1181
1202
|
}
|
|
1182
1203
|
};
|
|
1183
|
-
function
|
|
1204
|
+
function vn(e, t, l, n, o, a) {
|
|
1184
1205
|
const s = v("v-icon");
|
|
1185
1206
|
return i(), h("div", {
|
|
1186
1207
|
style: { padding: "0 15px" },
|
|
1187
|
-
onClick: t[0] || (t[0] = (...
|
|
1208
|
+
onClick: t[0] || (t[0] = (...p) => a.toggleClick && a.toggleClick(...p))
|
|
1188
1209
|
}, [
|
|
1189
|
-
|
|
1190
|
-
class:
|
|
1210
|
+
c(s, {
|
|
1211
|
+
class: F({ "is-active": l.isActive }),
|
|
1191
1212
|
name: "ra-leftalignment"
|
|
1192
1213
|
}, null, 8, ["class"])
|
|
1193
1214
|
]);
|
|
1194
1215
|
}
|
|
1195
|
-
const
|
|
1196
|
-
const
|
|
1197
|
-
function
|
|
1198
|
-
const l = ae, n =
|
|
1216
|
+
const gn = /* @__PURE__ */ I(yn, [["render", vn]]);
|
|
1217
|
+
const kn = {};
|
|
1218
|
+
function wn(e, t) {
|
|
1219
|
+
const l = ae, n = bl, o = _l, a = yl;
|
|
1199
1220
|
return i(), m(a, { style: { width: "100%", height: "100%" } }, {
|
|
1200
1221
|
default: r(() => [
|
|
1201
|
-
|
|
1222
|
+
c(l, { class: "aside" }, {
|
|
1202
1223
|
default: r(() => [
|
|
1203
1224
|
le(e.$slots, "left-aside", {}, void 0, !0)
|
|
1204
1225
|
]),
|
|
1205
1226
|
_: 3
|
|
1206
1227
|
}),
|
|
1207
|
-
|
|
1228
|
+
c(n, {
|
|
1208
1229
|
class: "main",
|
|
1209
1230
|
style: { margin: "0 10px" }
|
|
1210
1231
|
}, {
|
|
@@ -1213,7 +1234,7 @@ function hn(e, t) {
|
|
|
1213
1234
|
]),
|
|
1214
1235
|
_: 3
|
|
1215
1236
|
}),
|
|
1216
|
-
|
|
1237
|
+
c(o, {
|
|
1217
1238
|
class: "aside",
|
|
1218
1239
|
width: "350px",
|
|
1219
1240
|
style: { padding: "20px" }
|
|
@@ -1227,7 +1248,7 @@ function hn(e, t) {
|
|
|
1227
1248
|
_: 3
|
|
1228
1249
|
});
|
|
1229
1250
|
}
|
|
1230
|
-
const
|
|
1251
|
+
const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b"]]), Sn = {
|
|
1231
1252
|
type: "input",
|
|
1232
1253
|
name: "文本框",
|
|
1233
1254
|
default: {
|
|
@@ -1295,7 +1316,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1295
1316
|
}
|
|
1296
1317
|
}
|
|
1297
1318
|
]
|
|
1298
|
-
},
|
|
1319
|
+
}, xn = {
|
|
1299
1320
|
type: "number",
|
|
1300
1321
|
name: "数字",
|
|
1301
1322
|
default: {
|
|
@@ -1337,7 +1358,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1337
1358
|
}
|
|
1338
1359
|
}
|
|
1339
1360
|
]
|
|
1340
|
-
},
|
|
1361
|
+
}, En = {
|
|
1341
1362
|
type: "number-range",
|
|
1342
1363
|
name: "数字区间",
|
|
1343
1364
|
default: {
|
|
@@ -1378,7 +1399,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1378
1399
|
}
|
|
1379
1400
|
}
|
|
1380
1401
|
]
|
|
1381
|
-
},
|
|
1402
|
+
}, $n = {
|
|
1382
1403
|
type: "select",
|
|
1383
1404
|
name: "下拉框",
|
|
1384
1405
|
default: {
|
|
@@ -1484,7 +1505,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1484
1505
|
const t = y(e);
|
|
1485
1506
|
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;
|
|
1486
1507
|
}
|
|
1487
|
-
},
|
|
1508
|
+
}, In = {
|
|
1488
1509
|
type: "radio",
|
|
1489
1510
|
name: "单选框",
|
|
1490
1511
|
default: {
|
|
@@ -1530,7 +1551,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1530
1551
|
label: "默认值"
|
|
1531
1552
|
}
|
|
1532
1553
|
]
|
|
1533
|
-
},
|
|
1554
|
+
}, Cn = {
|
|
1534
1555
|
type: "switch",
|
|
1535
1556
|
name: "开关",
|
|
1536
1557
|
default: {
|
|
@@ -1586,7 +1607,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1586
1607
|
}
|
|
1587
1608
|
}
|
|
1588
1609
|
]
|
|
1589
|
-
},
|
|
1610
|
+
}, Tn = {
|
|
1590
1611
|
type: "code",
|
|
1591
1612
|
name: "Code",
|
|
1592
1613
|
default: {
|
|
@@ -1606,7 +1627,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1606
1627
|
label: "字段key"
|
|
1607
1628
|
}
|
|
1608
1629
|
]
|
|
1609
|
-
},
|
|
1630
|
+
}, On = {
|
|
1610
1631
|
type: "json",
|
|
1611
1632
|
name: "json",
|
|
1612
1633
|
default: {
|
|
@@ -1626,7 +1647,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1626
1647
|
label: "字段key"
|
|
1627
1648
|
}
|
|
1628
1649
|
]
|
|
1629
|
-
},
|
|
1650
|
+
}, Bn = {
|
|
1630
1651
|
type: "upload",
|
|
1631
1652
|
name: "上传",
|
|
1632
1653
|
default: {
|
|
@@ -1646,7 +1667,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1646
1667
|
label: "字段key"
|
|
1647
1668
|
}
|
|
1648
1669
|
]
|
|
1649
|
-
},
|
|
1670
|
+
}, An = {
|
|
1650
1671
|
type: "template",
|
|
1651
1672
|
name: "自定义组件",
|
|
1652
1673
|
default: {
|
|
@@ -1666,7 +1687,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1666
1687
|
label: "字段key"
|
|
1667
1688
|
}
|
|
1668
1689
|
]
|
|
1669
|
-
},
|
|
1690
|
+
}, Pn = {
|
|
1670
1691
|
type: "icon-select",
|
|
1671
1692
|
name: "图标选择器",
|
|
1672
1693
|
default: {
|
|
@@ -1686,7 +1707,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1686
1707
|
label: "字段key"
|
|
1687
1708
|
}
|
|
1688
1709
|
]
|
|
1689
|
-
},
|
|
1710
|
+
}, Rn = {
|
|
1690
1711
|
type: "sub-form",
|
|
1691
1712
|
name: "子表单",
|
|
1692
1713
|
default: {
|
|
@@ -1754,7 +1775,7 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1754
1775
|
}
|
|
1755
1776
|
}
|
|
1756
1777
|
]
|
|
1757
|
-
},
|
|
1778
|
+
}, Ln = {
|
|
1758
1779
|
type: "checkbox",
|
|
1759
1780
|
name: "复选框",
|
|
1760
1781
|
default: {
|
|
@@ -1800,24 +1821,24 @@ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1800
1821
|
}
|
|
1801
1822
|
}
|
|
1802
1823
|
]
|
|
1803
|
-
},
|
|
1804
|
-
function
|
|
1805
|
-
|
|
1824
|
+
}, ht = {};
|
|
1825
|
+
function R(e) {
|
|
1826
|
+
ht[e.type] = e;
|
|
1806
1827
|
}
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
const Se =
|
|
1828
|
+
R(Sn);
|
|
1829
|
+
R($n);
|
|
1830
|
+
R(xn);
|
|
1831
|
+
R(En);
|
|
1832
|
+
R(Cn);
|
|
1833
|
+
R(Rn);
|
|
1834
|
+
R(In);
|
|
1835
|
+
R(Ln);
|
|
1836
|
+
R(Tn);
|
|
1837
|
+
R(On);
|
|
1838
|
+
R(Bn);
|
|
1839
|
+
R(Pn);
|
|
1840
|
+
R(An);
|
|
1841
|
+
const Se = ht, Mn = {
|
|
1821
1842
|
options: {
|
|
1822
1843
|
labelPosition: "top",
|
|
1823
1844
|
submitButton: !1,
|
|
@@ -1920,11 +1941,11 @@ const ye = {
|
|
|
1920
1941
|
labelPosition: "top",
|
|
1921
1942
|
submitButton: !1,
|
|
1922
1943
|
cancelButton: !1
|
|
1923
|
-
},
|
|
1944
|
+
}, Ne = [];
|
|
1924
1945
|
Object.keys(Se).forEach((e) => {
|
|
1925
|
-
|
|
1946
|
+
Ne.push({ value: e, label: Se[e].name });
|
|
1926
1947
|
});
|
|
1927
|
-
const
|
|
1948
|
+
const jn = {
|
|
1928
1949
|
options: {
|
|
1929
1950
|
submitButton: !1,
|
|
1930
1951
|
cancelButton: !1
|
|
@@ -1945,7 +1966,7 @@ const Bn = {
|
|
|
1945
1966
|
type: "select",
|
|
1946
1967
|
field: "type",
|
|
1947
1968
|
label: "类型",
|
|
1948
|
-
options: y(
|
|
1969
|
+
options: y(Ne)
|
|
1949
1970
|
},
|
|
1950
1971
|
{
|
|
1951
1972
|
type: "input",
|
|
@@ -1956,8 +1977,8 @@ const Bn = {
|
|
|
1956
1977
|
}
|
|
1957
1978
|
}
|
|
1958
1979
|
]
|
|
1959
|
-
},
|
|
1960
|
-
components: { DevLayout:
|
|
1980
|
+
}, Dn = {
|
|
1981
|
+
components: { DevLayout: ft, VForm: G, VButton: Be, JsonView: Ae },
|
|
1961
1982
|
props: {
|
|
1962
1983
|
schema: {
|
|
1963
1984
|
type: Object,
|
|
@@ -1968,8 +1989,8 @@ const Bn = {
|
|
|
1968
1989
|
data() {
|
|
1969
1990
|
return {
|
|
1970
1991
|
sqlOptions: {},
|
|
1971
|
-
sqlSchema:
|
|
1972
|
-
baseSchema:
|
|
1992
|
+
sqlSchema: jn,
|
|
1993
|
+
baseSchema: Mn,
|
|
1973
1994
|
activeTab: "base",
|
|
1974
1995
|
builderSchema: Object.assign(
|
|
1975
1996
|
{},
|
|
@@ -1994,7 +2015,7 @@ const Bn = {
|
|
|
1994
2015
|
tableStruct: "",
|
|
1995
2016
|
activeName: "1",
|
|
1996
2017
|
currentCtrlType: "input",
|
|
1997
|
-
types: y(
|
|
2018
|
+
types: y(Ne)
|
|
1998
2019
|
};
|
|
1999
2020
|
},
|
|
2000
2021
|
computed: {
|
|
@@ -2010,7 +2031,7 @@ const Bn = {
|
|
|
2010
2031
|
immediate: !0,
|
|
2011
2032
|
handler(e) {
|
|
2012
2033
|
const t = y(e);
|
|
2013
|
-
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema =
|
|
2034
|
+
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = P(this.builderSchema, { options: t }), this.key++);
|
|
2014
2035
|
}
|
|
2015
2036
|
},
|
|
2016
2037
|
ctrlOptions: {
|
|
@@ -2023,8 +2044,8 @@ const Bn = {
|
|
|
2023
2044
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2024
2045
|
if (o && Object.keys(o).length > 0) {
|
|
2025
2046
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2026
|
-
const [a, s,
|
|
2027
|
-
this.builderSchema[s][
|
|
2047
|
+
const [a, s, p] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2048
|
+
this.builderSchema[s][p] = { ...o };
|
|
2028
2049
|
} else
|
|
2029
2050
|
this.builderSchema[this.activeIndex] = o;
|
|
2030
2051
|
this.key++;
|
|
@@ -2065,7 +2086,7 @@ const Bn = {
|
|
|
2065
2086
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2066
2087
|
},
|
|
2067
2088
|
removeOne() {
|
|
2068
|
-
|
|
2089
|
+
lt(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2069
2090
|
},
|
|
2070
2091
|
clicklabel() {
|
|
2071
2092
|
const e = this.activeIndex;
|
|
@@ -2092,47 +2113,47 @@ const Bn = {
|
|
|
2092
2113
|
}
|
|
2093
2114
|
}
|
|
2094
2115
|
};
|
|
2095
|
-
function
|
|
2096
|
-
const s = v("v-form"),
|
|
2097
|
-
return i(), m(
|
|
2116
|
+
function Nn(e, t, l, n, o, a) {
|
|
2117
|
+
const s = v("v-form"), p = at, u = ue, d = v("JsonView"), f = v("VButton"), b = Pe, g = Re, x = st, z = it, H = v("dev-layout");
|
|
2118
|
+
return i(), m(H, null, {
|
|
2098
2119
|
main: r(() => [
|
|
2099
|
-
o.builderSchema.formItems ? (i(), m(s,
|
|
2120
|
+
o.builderSchema.formItems ? (i(), m(s, U({
|
|
2100
2121
|
ref: "form",
|
|
2101
2122
|
key: o.key,
|
|
2102
2123
|
dev: !0
|
|
2103
2124
|
}, o.builderSchema), null, 16)) : $("", !0),
|
|
2104
|
-
p
|
|
2105
|
-
|
|
2125
|
+
c(p),
|
|
2126
|
+
c(u, {
|
|
2106
2127
|
type: "primary",
|
|
2107
2128
|
onClick: a.saveSchema
|
|
2108
2129
|
}, {
|
|
2109
2130
|
default: r(() => [
|
|
2110
|
-
|
|
2131
|
+
k("保存页面配置")
|
|
2111
2132
|
]),
|
|
2112
2133
|
_: 1
|
|
2113
2134
|
}, 8, ["onClick"]),
|
|
2114
|
-
|
|
2115
|
-
|
|
2135
|
+
k(" "),
|
|
2136
|
+
c(f, {
|
|
2116
2137
|
text: "PageSchema",
|
|
2117
2138
|
type: "modal"
|
|
2118
2139
|
}, {
|
|
2119
2140
|
default: r(() => [
|
|
2120
|
-
|
|
2141
|
+
c(d, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
2121
2142
|
]),
|
|
2122
2143
|
_: 1
|
|
2123
2144
|
})
|
|
2124
2145
|
]),
|
|
2125
2146
|
"right-aside": r(() => [
|
|
2126
|
-
o.activeIndex ? (i(), m(
|
|
2147
|
+
o.activeIndex ? (i(), m(z, { key: 0 }, {
|
|
2127
2148
|
default: r(() => [
|
|
2128
|
-
|
|
2149
|
+
c(x, { label: "控件类型" }, {
|
|
2129
2150
|
default: r(() => [
|
|
2130
|
-
|
|
2151
|
+
c(g, {
|
|
2131
2152
|
modelValue: o.currentCtrlType,
|
|
2132
2153
|
"onUpdate:modelValue": t[0] || (t[0] = (T) => o.currentCtrlType = T)
|
|
2133
2154
|
}, {
|
|
2134
2155
|
default: r(() => [
|
|
2135
|
-
(i(!0), h(E, null,
|
|
2156
|
+
(i(!0), h(E, null, B(o.types, (T, Z) => (i(), m(b, {
|
|
2136
2157
|
key: Z,
|
|
2137
2158
|
label: T.label,
|
|
2138
2159
|
value: T.value
|
|
@@ -2146,7 +2167,7 @@ function An(e, t, l, n, o, a) {
|
|
|
2146
2167
|
]),
|
|
2147
2168
|
_: 1
|
|
2148
2169
|
})) : $("", !0),
|
|
2149
|
-
(i(), m(s,
|
|
2170
|
+
(i(), m(s, U({
|
|
2150
2171
|
key: o.ctrlKey,
|
|
2151
2172
|
modelValue: o.ctrlOptions,
|
|
2152
2173
|
"onUpdate:modelValue": t[1] || (t[1] = (T) => o.ctrlOptions = T)
|
|
@@ -2155,7 +2176,7 @@ function An(e, t, l, n, o, a) {
|
|
|
2155
2176
|
_: 1
|
|
2156
2177
|
});
|
|
2157
2178
|
}
|
|
2158
|
-
const
|
|
2179
|
+
const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171"]]), qn = {
|
|
2159
2180
|
type: "input",
|
|
2160
2181
|
name: "文本框",
|
|
2161
2182
|
default: {
|
|
@@ -2203,7 +2224,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2203
2224
|
}
|
|
2204
2225
|
}
|
|
2205
2226
|
]
|
|
2206
|
-
},
|
|
2227
|
+
}, Un = {
|
|
2207
2228
|
type: "select",
|
|
2208
2229
|
name: "下拉框",
|
|
2209
2230
|
default: {
|
|
@@ -2304,7 +2325,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2304
2325
|
const t = y(e);
|
|
2305
2326
|
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;
|
|
2306
2327
|
}
|
|
2307
|
-
},
|
|
2328
|
+
}, Hn = {
|
|
2308
2329
|
type: "date",
|
|
2309
2330
|
name: "日期",
|
|
2310
2331
|
default: {
|
|
@@ -2324,7 +2345,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2324
2345
|
label: "字段key"
|
|
2325
2346
|
}
|
|
2326
2347
|
]
|
|
2327
|
-
},
|
|
2348
|
+
}, Je = {
|
|
2328
2349
|
options: {
|
|
2329
2350
|
labelPosition: "top",
|
|
2330
2351
|
submitButton: !1,
|
|
@@ -2353,7 +2374,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2353
2374
|
labelPosition: "top",
|
|
2354
2375
|
submitButton: !1,
|
|
2355
2376
|
cancelButton: !1
|
|
2356
|
-
},
|
|
2377
|
+
}, Fn = {
|
|
2357
2378
|
type: "span",
|
|
2358
2379
|
name: "文本",
|
|
2359
2380
|
default: {
|
|
@@ -2383,7 +2404,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2383
2404
|
label: "排序"
|
|
2384
2405
|
}
|
|
2385
2406
|
]
|
|
2386
|
-
},
|
|
2407
|
+
}, Gn = {
|
|
2387
2408
|
type: "enum",
|
|
2388
2409
|
name: "标签",
|
|
2389
2410
|
default: {
|
|
@@ -2434,7 +2455,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2434
2455
|
trans(e) {
|
|
2435
2456
|
return e.options = e.options || [], e.label || (e.label = "表头"), e;
|
|
2436
2457
|
}
|
|
2437
|
-
},
|
|
2458
|
+
}, Jn = {
|
|
2438
2459
|
type: "html",
|
|
2439
2460
|
name: "HTML",
|
|
2440
2461
|
default: {
|
|
@@ -2459,7 +2480,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2459
2480
|
label: "提示"
|
|
2460
2481
|
}
|
|
2461
2482
|
]
|
|
2462
|
-
},
|
|
2483
|
+
}, zn = {
|
|
2463
2484
|
type: "icon",
|
|
2464
2485
|
name: "图标",
|
|
2465
2486
|
default: {
|
|
@@ -2484,7 +2505,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2484
2505
|
label: "提示"
|
|
2485
2506
|
}
|
|
2486
2507
|
]
|
|
2487
|
-
},
|
|
2508
|
+
}, Kn = {
|
|
2488
2509
|
type: "image",
|
|
2489
2510
|
name: "图片",
|
|
2490
2511
|
default: {
|
|
@@ -2509,7 +2530,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2509
2530
|
label: "提示"
|
|
2510
2531
|
}
|
|
2511
2532
|
]
|
|
2512
|
-
},
|
|
2533
|
+
}, Wn = {
|
|
2513
2534
|
type: "json",
|
|
2514
2535
|
name: "JSON",
|
|
2515
2536
|
default: {
|
|
@@ -2534,7 +2555,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2534
2555
|
label: "提示"
|
|
2535
2556
|
}
|
|
2536
2557
|
]
|
|
2537
|
-
},
|
|
2558
|
+
}, Zn = {
|
|
2538
2559
|
type: "link",
|
|
2539
2560
|
name: "链接",
|
|
2540
2561
|
default: {
|
|
@@ -2559,7 +2580,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2559
2580
|
label: "提示"
|
|
2560
2581
|
}
|
|
2561
2582
|
]
|
|
2562
|
-
},
|
|
2583
|
+
}, Qn = {
|
|
2563
2584
|
type: "rich",
|
|
2564
2585
|
name: "富文本",
|
|
2565
2586
|
default: {
|
|
@@ -2584,7 +2605,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2584
2605
|
label: "提示"
|
|
2585
2606
|
}
|
|
2586
2607
|
]
|
|
2587
|
-
},
|
|
2608
|
+
}, Xn = {
|
|
2588
2609
|
type: "tpl",
|
|
2589
2610
|
name: "模板",
|
|
2590
2611
|
default: {
|
|
@@ -2615,17 +2636,17 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2615
2636
|
info: "例如 <code>姓名: {name} 年龄:{age}</code>"
|
|
2616
2637
|
}
|
|
2617
2638
|
]
|
|
2618
|
-
},
|
|
2619
|
-
span:
|
|
2620
|
-
enum:
|
|
2621
|
-
html:
|
|
2622
|
-
icon:
|
|
2623
|
-
image:
|
|
2624
|
-
json:
|
|
2625
|
-
link:
|
|
2626
|
-
rich:
|
|
2627
|
-
tpl:
|
|
2628
|
-
},
|
|
2639
|
+
}, Yn = {
|
|
2640
|
+
span: Fn,
|
|
2641
|
+
enum: Gn,
|
|
2642
|
+
html: Jn,
|
|
2643
|
+
icon: zn,
|
|
2644
|
+
image: Kn,
|
|
2645
|
+
json: Wn,
|
|
2646
|
+
link: Zn,
|
|
2647
|
+
rich: Qn,
|
|
2648
|
+
tpl: Xn
|
|
2649
|
+
}, eo = {
|
|
2629
2650
|
type: "jump",
|
|
2630
2651
|
name: "跳转",
|
|
2631
2652
|
default: {
|
|
@@ -2672,7 +2693,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2672
2693
|
}
|
|
2673
2694
|
}
|
|
2674
2695
|
]
|
|
2675
|
-
},
|
|
2696
|
+
}, to = {
|
|
2676
2697
|
type: "api",
|
|
2677
2698
|
name: "接口请求",
|
|
2678
2699
|
default: {
|
|
@@ -2741,7 +2762,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2741
2762
|
}
|
|
2742
2763
|
}
|
|
2743
2764
|
]
|
|
2744
|
-
},
|
|
2765
|
+
}, lo = {
|
|
2745
2766
|
type: "form",
|
|
2746
2767
|
name: "弹框表单",
|
|
2747
2768
|
default: {
|
|
@@ -2795,7 +2816,7 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2795
2816
|
label: "保存接口"
|
|
2796
2817
|
}
|
|
2797
2818
|
]
|
|
2798
|
-
},
|
|
2819
|
+
}, no = {
|
|
2799
2820
|
type: "table",
|
|
2800
2821
|
name: "弹框列表",
|
|
2801
2822
|
default: {
|
|
@@ -2849,14 +2870,14 @@ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2849
2870
|
label: "保存接口"
|
|
2850
2871
|
}
|
|
2851
2872
|
]
|
|
2852
|
-
},
|
|
2853
|
-
jump:
|
|
2854
|
-
api:
|
|
2855
|
-
form:
|
|
2856
|
-
table:
|
|
2873
|
+
}, oo = {
|
|
2874
|
+
jump: eo,
|
|
2875
|
+
api: to,
|
|
2876
|
+
form: lo,
|
|
2877
|
+
table: no
|
|
2857
2878
|
};
|
|
2858
|
-
const
|
|
2859
|
-
components: { JsonView:
|
|
2879
|
+
const ao = {
|
|
2880
|
+
components: { JsonView: Ae, DevLayout: ft, VTable: oe, VForm: G, VButton: Be },
|
|
2860
2881
|
props: {
|
|
2861
2882
|
schema: {
|
|
2862
2883
|
type: Object,
|
|
@@ -2865,13 +2886,13 @@ const Xn = {
|
|
|
2865
2886
|
}
|
|
2866
2887
|
},
|
|
2867
2888
|
data() {
|
|
2868
|
-
const e =
|
|
2889
|
+
const e = Pt(this.$props.schema);
|
|
2869
2890
|
return delete e.listApi, e.list = [{}], {
|
|
2870
|
-
baseSchema:
|
|
2891
|
+
baseSchema: Je,
|
|
2871
2892
|
activeTab: "base",
|
|
2872
2893
|
builderSchema: Object.assign(
|
|
2873
2894
|
{},
|
|
2874
|
-
|
|
2895
|
+
Je,
|
|
2875
2896
|
e
|
|
2876
2897
|
),
|
|
2877
2898
|
baseOptions: {},
|
|
@@ -2884,9 +2905,9 @@ const Xn = {
|
|
|
2884
2905
|
ctrlName: "",
|
|
2885
2906
|
activeIndex: void 0,
|
|
2886
2907
|
ctrlMap: {
|
|
2887
|
-
filter: { input:
|
|
2888
|
-
headers:
|
|
2889
|
-
buttons:
|
|
2908
|
+
filter: { input: qn, select: Un, date: Hn },
|
|
2909
|
+
headers: Yn,
|
|
2910
|
+
buttons: oo
|
|
2890
2911
|
},
|
|
2891
2912
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2892
2913
|
currentCtrlType: "input"
|
|
@@ -2917,7 +2938,7 @@ const Xn = {
|
|
|
2917
2938
|
deep: !0,
|
|
2918
2939
|
immediate: !0,
|
|
2919
2940
|
handler(e) {
|
|
2920
|
-
this.builderSchema =
|
|
2941
|
+
this.builderSchema = P(this.builderSchema, e), this.key++, this.updateBuilderSchema();
|
|
2921
2942
|
}
|
|
2922
2943
|
},
|
|
2923
2944
|
ctrlOptions: {
|
|
@@ -2935,8 +2956,8 @@ const Xn = {
|
|
|
2935
2956
|
const o = n.trans ? n.trans(e) : e;
|
|
2936
2957
|
if (o && Object.keys(o).length > 0) {
|
|
2937
2958
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2938
|
-
const [a, s,
|
|
2939
|
-
this.builderSchema[s][
|
|
2959
|
+
const [a, s, p] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2960
|
+
this.builderSchema[s][p] = { ...o };
|
|
2940
2961
|
} else
|
|
2941
2962
|
this.builderSchema[this.activeIndex] = o;
|
|
2942
2963
|
this.key++;
|
|
@@ -3000,7 +3021,7 @@ const Xn = {
|
|
|
3000
3021
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3001
3022
|
},
|
|
3002
3023
|
removeOne() {
|
|
3003
|
-
|
|
3024
|
+
lt(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3004
3025
|
},
|
|
3005
3026
|
clicklabel() {
|
|
3006
3027
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -3038,59 +3059,59 @@ const Xn = {
|
|
|
3038
3059
|
}
|
|
3039
3060
|
}
|
|
3040
3061
|
};
|
|
3041
|
-
function
|
|
3042
|
-
const s = de,
|
|
3043
|
-
return i(), m(
|
|
3062
|
+
function so(e, t, l, n, o, a) {
|
|
3063
|
+
const s = de, p = ue, u = ae, d = v("v-table"), f = at, b = ue, g = v("JsonView"), x = v("VButton"), z = Pe, H = Re, T = st, Z = it, It = v("v-form"), Ct = v("dev-layout");
|
|
3064
|
+
return i(), m(Ct, null, {
|
|
3044
3065
|
"left-aside": r(() => [
|
|
3045
|
-
|
|
3066
|
+
c(u, { style: { width: "200px" } }, {
|
|
3046
3067
|
default: r(() => [
|
|
3047
|
-
|
|
3068
|
+
c(u, null, {
|
|
3048
3069
|
default: r(() => [
|
|
3049
|
-
|
|
3070
|
+
c(s, {
|
|
3050
3071
|
class: "title",
|
|
3051
3072
|
"data-id": 22222
|
|
3052
3073
|
}, {
|
|
3053
3074
|
default: r(() => [
|
|
3054
|
-
|
|
3075
|
+
k("添加搜索条件")
|
|
3055
3076
|
]),
|
|
3056
3077
|
_: 1
|
|
3057
3078
|
}),
|
|
3058
|
-
|
|
3079
|
+
c(s, { class: "ctrl" }, {
|
|
3059
3080
|
default: r(() => [
|
|
3060
|
-
p
|
|
3081
|
+
c(p, {
|
|
3061
3082
|
class: "ctrl-btn",
|
|
3062
3083
|
onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
|
|
3063
3084
|
}, {
|
|
3064
3085
|
default: r(() => [
|
|
3065
|
-
|
|
3086
|
+
k("文本框")
|
|
3066
3087
|
]),
|
|
3067
3088
|
_: 1
|
|
3068
3089
|
})
|
|
3069
3090
|
]),
|
|
3070
3091
|
_: 1
|
|
3071
3092
|
}),
|
|
3072
|
-
|
|
3093
|
+
c(s, { class: "ctrl" }, {
|
|
3073
3094
|
default: r(() => [
|
|
3074
|
-
p
|
|
3095
|
+
c(p, {
|
|
3075
3096
|
class: "ctrl-btn",
|
|
3076
3097
|
onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
|
|
3077
3098
|
}, {
|
|
3078
3099
|
default: r(() => [
|
|
3079
|
-
|
|
3100
|
+
k("下拉框")
|
|
3080
3101
|
]),
|
|
3081
3102
|
_: 1
|
|
3082
3103
|
})
|
|
3083
3104
|
]),
|
|
3084
3105
|
_: 1
|
|
3085
3106
|
}),
|
|
3086
|
-
|
|
3107
|
+
c(s, { class: "ctrl" }, {
|
|
3087
3108
|
default: r(() => [
|
|
3088
|
-
p
|
|
3109
|
+
c(p, {
|
|
3089
3110
|
class: "ctrl-btn",
|
|
3090
3111
|
onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
|
|
3091
3112
|
}, {
|
|
3092
3113
|
default: r(() => [
|
|
3093
|
-
|
|
3114
|
+
k("日期")
|
|
3094
3115
|
]),
|
|
3095
3116
|
_: 1
|
|
3096
3117
|
})
|
|
@@ -3100,25 +3121,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3100
3121
|
]),
|
|
3101
3122
|
_: 1
|
|
3102
3123
|
}),
|
|
3103
|
-
|
|
3124
|
+
c(u, null, {
|
|
3104
3125
|
default: r(() => [
|
|
3105
|
-
|
|
3126
|
+
c(s, { class: "title" }, {
|
|
3106
3127
|
default: r(() => [
|
|
3107
|
-
|
|
3128
|
+
k("添加列表项")
|
|
3108
3129
|
]),
|
|
3109
3130
|
_: 1
|
|
3110
3131
|
}),
|
|
3111
|
-
(i(!0), h(E, null,
|
|
3112
|
-
key: `column-${
|
|
3132
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.headers), (C, q) => (i(), m(s, {
|
|
3133
|
+
key: `column-${q}`,
|
|
3113
3134
|
class: "ctrl"
|
|
3114
3135
|
}, {
|
|
3115
3136
|
default: r(() => [
|
|
3116
|
-
p
|
|
3137
|
+
c(p, {
|
|
3117
3138
|
class: "ctrl-btn",
|
|
3118
3139
|
onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[C].type)
|
|
3119
3140
|
}, {
|
|
3120
3141
|
default: r(() => [
|
|
3121
|
-
|
|
3142
|
+
k(O(o.ctrlMap.headers[C].name), 1)
|
|
3122
3143
|
]),
|
|
3123
3144
|
_: 2
|
|
3124
3145
|
}, 1032, ["onClick"])
|
|
@@ -3128,25 +3149,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3128
3149
|
]),
|
|
3129
3150
|
_: 1
|
|
3130
3151
|
}),
|
|
3131
|
-
|
|
3152
|
+
c(u, null, {
|
|
3132
3153
|
default: r(() => [
|
|
3133
|
-
|
|
3154
|
+
c(s, { class: "title" }, {
|
|
3134
3155
|
default: r(() => [
|
|
3135
|
-
|
|
3156
|
+
k("添加行按钮")
|
|
3136
3157
|
]),
|
|
3137
3158
|
_: 1
|
|
3138
3159
|
}),
|
|
3139
|
-
(i(!0), h(E, null,
|
|
3140
|
-
key: `column-${
|
|
3160
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, q) => (i(), m(s, {
|
|
3161
|
+
key: `column-${q}`,
|
|
3141
3162
|
class: "ctrl"
|
|
3142
3163
|
}, {
|
|
3143
3164
|
default: r(() => [
|
|
3144
|
-
p
|
|
3165
|
+
c(p, {
|
|
3145
3166
|
class: "ctrl-btn",
|
|
3146
3167
|
onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[C].type)
|
|
3147
3168
|
}, {
|
|
3148
3169
|
default: r(() => [
|
|
3149
|
-
|
|
3170
|
+
k(O(o.ctrlMap.buttons[C].name), 1)
|
|
3150
3171
|
]),
|
|
3151
3172
|
_: 2
|
|
3152
3173
|
}, 1032, ["onClick"])
|
|
@@ -3156,36 +3177,36 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3156
3177
|
]),
|
|
3157
3178
|
_: 1
|
|
3158
3179
|
}),
|
|
3159
|
-
|
|
3180
|
+
c(u, null, {
|
|
3160
3181
|
default: r(() => [
|
|
3161
|
-
|
|
3182
|
+
c(s, { class: "title" }, {
|
|
3162
3183
|
default: r(() => [
|
|
3163
|
-
|
|
3184
|
+
k("添加常规按钮")
|
|
3164
3185
|
]),
|
|
3165
3186
|
_: 1
|
|
3166
3187
|
}),
|
|
3167
|
-
(i(!0), h(E, null,
|
|
3168
|
-
key: `column-${
|
|
3188
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, q) => (i(), m(s, {
|
|
3189
|
+
key: `column-${q}`,
|
|
3169
3190
|
class: "ctrl"
|
|
3170
3191
|
}, {
|
|
3171
3192
|
default: r(() => [
|
|
3172
|
-
p
|
|
3193
|
+
c(p, {
|
|
3173
3194
|
class: "ctrl-btn",
|
|
3174
3195
|
onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
|
|
3175
3196
|
}, {
|
|
3176
3197
|
default: r(() => [
|
|
3177
|
-
|
|
3198
|
+
k(O(o.ctrlMap.buttons[C].name), 1)
|
|
3178
3199
|
]),
|
|
3179
3200
|
_: 2
|
|
3180
3201
|
}, 1032, ["onClick"])
|
|
3181
3202
|
]),
|
|
3182
3203
|
_: 2
|
|
3183
3204
|
}, 1024))), 128)),
|
|
3184
|
-
|
|
3205
|
+
c(s, { class: "ctrl" }, {
|
|
3185
3206
|
default: r(() => [
|
|
3186
|
-
p
|
|
3207
|
+
c(p, { class: "ctrl-btn" }, {
|
|
3187
3208
|
default: r(() => [
|
|
3188
|
-
|
|
3209
|
+
k("按钮组")
|
|
3189
3210
|
]),
|
|
3190
3211
|
_: 1
|
|
3191
3212
|
})
|
|
@@ -3195,36 +3216,36 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3195
3216
|
]),
|
|
3196
3217
|
_: 1
|
|
3197
3218
|
}),
|
|
3198
|
-
|
|
3219
|
+
c(u, null, {
|
|
3199
3220
|
default: r(() => [
|
|
3200
|
-
|
|
3221
|
+
c(s, { class: "title" }, {
|
|
3201
3222
|
default: r(() => [
|
|
3202
|
-
|
|
3223
|
+
k("添加批量按钮")
|
|
3203
3224
|
]),
|
|
3204
3225
|
_: 1
|
|
3205
3226
|
}),
|
|
3206
|
-
(i(!0), h(E, null,
|
|
3207
|
-
key: `column-${
|
|
3227
|
+
(i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, q) => (i(), m(s, {
|
|
3228
|
+
key: `column-${q}`,
|
|
3208
3229
|
class: "ctrl"
|
|
3209
3230
|
}, {
|
|
3210
3231
|
default: r(() => [
|
|
3211
|
-
p
|
|
3232
|
+
c(p, {
|
|
3212
3233
|
class: "ctrl-btn",
|
|
3213
3234
|
onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
|
|
3214
3235
|
}, {
|
|
3215
3236
|
default: r(() => [
|
|
3216
|
-
|
|
3237
|
+
k(O(o.ctrlMap.buttons[C].name), 1)
|
|
3217
3238
|
]),
|
|
3218
3239
|
_: 2
|
|
3219
3240
|
}, 1032, ["onClick"])
|
|
3220
3241
|
]),
|
|
3221
3242
|
_: 2
|
|
3222
3243
|
}, 1024))), 128)),
|
|
3223
|
-
|
|
3244
|
+
c(s, { class: "ctrl" }, {
|
|
3224
3245
|
default: r(() => [
|
|
3225
|
-
p
|
|
3246
|
+
c(p, { class: "ctrl-btn" }, {
|
|
3226
3247
|
default: r(() => [
|
|
3227
|
-
|
|
3248
|
+
k("按钮组")
|
|
3228
3249
|
]),
|
|
3229
3250
|
_: 1
|
|
3230
3251
|
})
|
|
@@ -3239,28 +3260,28 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3239
3260
|
})
|
|
3240
3261
|
]),
|
|
3241
3262
|
main: r(() => [
|
|
3242
|
-
(i(), m(d,
|
|
3263
|
+
(i(), m(d, U({
|
|
3243
3264
|
ref: "table",
|
|
3244
3265
|
key: o.key,
|
|
3245
3266
|
dev: !0
|
|
3246
3267
|
}, o.builderSchema), null, 16)),
|
|
3247
|
-
|
|
3248
|
-
|
|
3268
|
+
c(f),
|
|
3269
|
+
c(b, {
|
|
3249
3270
|
type: "primary",
|
|
3250
3271
|
onClick: a.saveSchema
|
|
3251
3272
|
}, {
|
|
3252
3273
|
default: r(() => [
|
|
3253
|
-
|
|
3274
|
+
k("保存页面配置")
|
|
3254
3275
|
]),
|
|
3255
3276
|
_: 1
|
|
3256
3277
|
}, 8, ["onClick"]),
|
|
3257
|
-
|
|
3258
|
-
|
|
3278
|
+
k(" "),
|
|
3279
|
+
c(x, {
|
|
3259
3280
|
text: "PageSchema",
|
|
3260
3281
|
type: "modal"
|
|
3261
3282
|
}, {
|
|
3262
3283
|
default: r(() => [
|
|
3263
|
-
|
|
3284
|
+
c(g, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3264
3285
|
]),
|
|
3265
3286
|
_: 1
|
|
3266
3287
|
})
|
|
@@ -3268,15 +3289,15 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3268
3289
|
"right-aside": r(() => [
|
|
3269
3290
|
o.activeIndex ? (i(), m(Z, { key: 0 }, {
|
|
3270
3291
|
default: r(() => [
|
|
3271
|
-
|
|
3292
|
+
c(T, { label: "控件类型" }, {
|
|
3272
3293
|
default: r(() => [
|
|
3273
|
-
|
|
3294
|
+
c(H, {
|
|
3274
3295
|
modelValue: o.currentCtrlType,
|
|
3275
3296
|
"onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
|
|
3276
3297
|
}, {
|
|
3277
3298
|
default: r(() => [
|
|
3278
|
-
(i(!0), h(E, null,
|
|
3279
|
-
key:
|
|
3299
|
+
(i(!0), h(E, null, B(a.types, (C, q) => (i(), m(z, {
|
|
3300
|
+
key: q,
|
|
3280
3301
|
label: C.label,
|
|
3281
3302
|
value: C.value
|
|
3282
3303
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -3289,7 +3310,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3289
3310
|
]),
|
|
3290
3311
|
_: 1
|
|
3291
3312
|
})) : $("", !0),
|
|
3292
|
-
(i(), m(
|
|
3313
|
+
(i(), m(It, U({
|
|
3293
3314
|
key: o.ctrlKey,
|
|
3294
3315
|
modelValue: o.ctrlOptions,
|
|
3295
3316
|
"onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
|
|
@@ -3298,22 +3319,22 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3298
3319
|
_: 1
|
|
3299
3320
|
});
|
|
3300
3321
|
}
|
|
3301
|
-
const
|
|
3322
|
+
const io = /* @__PURE__ */ I(ao, [["render", so], ["__scopeId", "data-v-e5209cb7"]]), ro = {
|
|
3302
3323
|
name: "PageEditor",
|
|
3303
|
-
components: { FormBuilder:
|
|
3324
|
+
components: { FormBuilder: Vn, TableBuilder: io },
|
|
3304
3325
|
setup() {
|
|
3305
|
-
const e =
|
|
3326
|
+
const e = A(!1), t = A(1), l = "rtl", n = pe(), o = j(() => S.state.app.pages[n.path]);
|
|
3306
3327
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3307
3328
|
}
|
|
3308
3329
|
};
|
|
3309
|
-
function
|
|
3310
|
-
const s = v("VIcon"),
|
|
3330
|
+
function co(e, t, l, n, o, a) {
|
|
3331
|
+
const s = v("VIcon"), p = v("form-builder"), u = v("table-builder"), d = rt;
|
|
3311
3332
|
return i(), h(E, null, [
|
|
3312
|
-
|
|
3333
|
+
c(s, {
|
|
3313
3334
|
name: "ra-set",
|
|
3314
3335
|
onClick: t[0] || (t[0] = (f) => n.show = !n.show)
|
|
3315
3336
|
}),
|
|
3316
|
-
|
|
3337
|
+
c(d, {
|
|
3317
3338
|
modelValue: n.show,
|
|
3318
3339
|
"onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
|
|
3319
3340
|
title: "页面设计",
|
|
@@ -3324,11 +3345,11 @@ function lo(e, t, l, n, o, a) {
|
|
|
3324
3345
|
"append-to-body": ""
|
|
3325
3346
|
}, {
|
|
3326
3347
|
default: r(() => [
|
|
3327
|
-
n.pageSchema.formItems !== void 0 ? (i(), m(
|
|
3348
|
+
n.pageSchema.formItems !== void 0 ? (i(), m(p, {
|
|
3328
3349
|
key: 0,
|
|
3329
3350
|
schema: n.pageSchema
|
|
3330
3351
|
}, null, 8, ["schema"])) : $("", !0),
|
|
3331
|
-
n.pageSchema.headers !== void 0 ? (i(), m(
|
|
3352
|
+
n.pageSchema.headers !== void 0 ? (i(), m(u, {
|
|
3332
3353
|
key: 1,
|
|
3333
3354
|
schema: n.pageSchema
|
|
3334
3355
|
}, null, 8, ["schema"])) : $("", !0)
|
|
@@ -3337,13 +3358,13 @@ function lo(e, t, l, n, o, a) {
|
|
|
3337
3358
|
}, 8, ["modelValue", "direction"])
|
|
3338
3359
|
], 64);
|
|
3339
3360
|
}
|
|
3340
|
-
const
|
|
3341
|
-
const
|
|
3361
|
+
const uo = /* @__PURE__ */ I(ro, [["render", co]]);
|
|
3362
|
+
const po = {
|
|
3342
3363
|
components: {
|
|
3343
|
-
Breadcrumb:
|
|
3344
|
-
Hamburger:
|
|
3345
|
-
VButton:
|
|
3346
|
-
PageEditor:
|
|
3364
|
+
Breadcrumb: _n,
|
|
3365
|
+
Hamburger: gn,
|
|
3366
|
+
VButton: Be,
|
|
3367
|
+
PageEditor: uo
|
|
3347
3368
|
},
|
|
3348
3369
|
data() {
|
|
3349
3370
|
return {
|
|
@@ -3356,7 +3377,7 @@ const oo = {
|
|
|
3356
3377
|
};
|
|
3357
3378
|
},
|
|
3358
3379
|
computed: {
|
|
3359
|
-
...
|
|
3380
|
+
...Oe(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3360
3381
|
hasNewMessage() {
|
|
3361
3382
|
return this.$store.state.settings.hasNewMessage;
|
|
3362
3383
|
},
|
|
@@ -3374,7 +3395,7 @@ const oo = {
|
|
|
3374
3395
|
}
|
|
3375
3396
|
},
|
|
3376
3397
|
mounted() {
|
|
3377
|
-
|
|
3398
|
+
Ye("el-submenu is-active");
|
|
3378
3399
|
const e = this.getSetting("navBarNotice");
|
|
3379
3400
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3380
3401
|
title: "提示",
|
|
@@ -3382,7 +3403,7 @@ const oo = {
|
|
|
3382
3403
|
dangerouslyUseHTMLString: !0,
|
|
3383
3404
|
duration: 0,
|
|
3384
3405
|
onClose: this.closeNavBarNotice
|
|
3385
|
-
}), this.setting.envColor[this.user.env] &&
|
|
3406
|
+
}), this.setting.envColor[this.user.env] && zt({
|
|
3386
3407
|
elRef: this.$refs.header.$el,
|
|
3387
3408
|
waterMark: this.user.env,
|
|
3388
3409
|
color: "skyblue",
|
|
@@ -3418,70 +3439,70 @@ const oo = {
|
|
|
3418
3439
|
(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));
|
|
3419
3440
|
}
|
|
3420
3441
|
}
|
|
3421
|
-
},
|
|
3442
|
+
}, mo = { class: "right-content" }, fo = { class: "right-item" }, ho = {
|
|
3422
3443
|
key: 0,
|
|
3423
3444
|
class: "right-item"
|
|
3424
|
-
},
|
|
3445
|
+
}, bo = {
|
|
3425
3446
|
class: "right-item-button",
|
|
3426
3447
|
style: { padding: "0" }
|
|
3427
|
-
},
|
|
3428
|
-
function
|
|
3429
|
-
const s = v("hamburger"),
|
|
3448
|
+
}, _o = { class: "user-info" }, yo = ["src"], vo = { class: "user-name" };
|
|
3449
|
+
function go(e, t, l, n, o, a) {
|
|
3450
|
+
const s = v("hamburger"), p = v("breadcrumb"), u = de, d = v("VIcon"), f = v("PageEditor"), b = v("v-button"), g = vl, x = gl, z = kl, H = rt, T = ae;
|
|
3430
3451
|
return i(), m(T, {
|
|
3431
3452
|
ref: "header",
|
|
3432
3453
|
class: "navbar",
|
|
3433
|
-
style:
|
|
3454
|
+
style: Rt({ background: a.setting.envColor[a.user.env] })
|
|
3434
3455
|
}, {
|
|
3435
3456
|
default: r(() => [
|
|
3436
|
-
|
|
3457
|
+
c(u, { span: 16 }, {
|
|
3437
3458
|
default: r(() => [
|
|
3438
|
-
|
|
3459
|
+
c(s, {
|
|
3439
3460
|
"is-active": e.sidebar.opened,
|
|
3440
3461
|
class: "hamburger-container",
|
|
3441
3462
|
onToggleClick: a.toggleSideBar
|
|
3442
3463
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3443
|
-
p
|
|
3464
|
+
c(p, { class: "breadcrumb-container" })
|
|
3444
3465
|
]),
|
|
3445
3466
|
_: 1
|
|
3446
3467
|
}),
|
|
3447
|
-
|
|
3468
|
+
c(u, { span: 8 }, {
|
|
3448
3469
|
default: r(() => [
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3470
|
+
_("div", mo, [
|
|
3471
|
+
_("div", fo, [
|
|
3472
|
+
c(d, {
|
|
3452
3473
|
name: "ra-code",
|
|
3453
3474
|
onClick: a.gotoMenuEdit
|
|
3454
3475
|
}, null, 8, ["onClick"])
|
|
3455
3476
|
]),
|
|
3456
|
-
a.showPageJsonSchemaIcon ? (i(), h("div",
|
|
3457
|
-
|
|
3477
|
+
a.showPageJsonSchemaIcon ? (i(), h("div", ho, [
|
|
3478
|
+
c(f)
|
|
3458
3479
|
])) : $("", !0),
|
|
3459
|
-
|
|
3460
|
-
|
|
3480
|
+
_("div", bo, [
|
|
3481
|
+
c(b, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3461
3482
|
]),
|
|
3462
|
-
|
|
3483
|
+
c(z, {
|
|
3463
3484
|
class: "right-item",
|
|
3464
3485
|
trigger: "click"
|
|
3465
3486
|
}, {
|
|
3466
3487
|
dropdown: r(() => [
|
|
3467
|
-
|
|
3488
|
+
c(x, { class: "user-dropdown" }, {
|
|
3468
3489
|
default: r(() => [
|
|
3469
|
-
|
|
3490
|
+
c(g, {
|
|
3470
3491
|
icon: "oms-icon-index",
|
|
3471
3492
|
onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
|
|
3472
3493
|
}, {
|
|
3473
3494
|
default: r(() => [
|
|
3474
|
-
|
|
3495
|
+
k("首页")
|
|
3475
3496
|
]),
|
|
3476
3497
|
_: 1
|
|
3477
3498
|
}),
|
|
3478
|
-
|
|
3499
|
+
c(g, {
|
|
3479
3500
|
divided: "",
|
|
3480
3501
|
icon: "el-icon-switch-button",
|
|
3481
3502
|
onClick: a.logout
|
|
3482
3503
|
}, {
|
|
3483
3504
|
default: r(() => [
|
|
3484
|
-
|
|
3505
|
+
k("退出登录")
|
|
3485
3506
|
]),
|
|
3486
3507
|
_: 1
|
|
3487
3508
|
}, 8, ["onClick"])
|
|
@@ -3490,14 +3511,14 @@ function mo(e, t, l, n, o, a) {
|
|
|
3490
3511
|
})
|
|
3491
3512
|
]),
|
|
3492
3513
|
default: r(() => [
|
|
3493
|
-
|
|
3494
|
-
|
|
3514
|
+
_("div", _o, [
|
|
3515
|
+
_("img", {
|
|
3495
3516
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3496
3517
|
class: "user-avatar",
|
|
3497
3518
|
alt: "头像"
|
|
3498
|
-
}, null, 8,
|
|
3499
|
-
|
|
3500
|
-
|
|
3519
|
+
}, null, 8, yo),
|
|
3520
|
+
k(),
|
|
3521
|
+
_("span", vo, O(e.nickname || e.name), 1)
|
|
3501
3522
|
])
|
|
3502
3523
|
]),
|
|
3503
3524
|
_: 1
|
|
@@ -3506,7 +3527,7 @@ function mo(e, t, l, n, o, a) {
|
|
|
3506
3527
|
]),
|
|
3507
3528
|
_: 1
|
|
3508
3529
|
}),
|
|
3509
|
-
o.showJsonSchema ? (i(), m(
|
|
3530
|
+
o.showJsonSchema ? (i(), m(H, {
|
|
3510
3531
|
key: 0,
|
|
3511
3532
|
"with-header": !1,
|
|
3512
3533
|
size: "50%"
|
|
@@ -3515,8 +3536,8 @@ function mo(e, t, l, n, o, a) {
|
|
|
3515
3536
|
_: 1
|
|
3516
3537
|
}, 8, ["style"]);
|
|
3517
3538
|
}
|
|
3518
|
-
const
|
|
3519
|
-
const
|
|
3539
|
+
const ko = /* @__PURE__ */ I(po, [["render", go], ["__scopeId", "data-v-99b3c688"]]);
|
|
3540
|
+
const wo = {
|
|
3520
3541
|
name: "SidebarLogo",
|
|
3521
3542
|
props: {
|
|
3522
3543
|
collapse: {
|
|
@@ -3532,16 +3553,16 @@ const ho = {
|
|
|
3532
3553
|
return this.$store.state.settings.logo;
|
|
3533
3554
|
}
|
|
3534
3555
|
}
|
|
3535
|
-
},
|
|
3556
|
+
}, So = (e) => ($e("data-v-49084925"), e = e(), Ie(), e), xo = ["src"], Eo = {
|
|
3536
3557
|
key: 1,
|
|
3537
3558
|
class: "sidebar-title"
|
|
3538
|
-
},
|
|
3539
|
-
function
|
|
3559
|
+
}, $o = /* @__PURE__ */ So(() => /* @__PURE__ */ _("div", null, "系统", -1)), Io = ["src"], Co = { class: "sidebar-title" };
|
|
3560
|
+
function To(e, t, l, n, o, a) {
|
|
3540
3561
|
const s = v("router-link");
|
|
3541
3562
|
return i(), h("div", {
|
|
3542
|
-
class:
|
|
3563
|
+
class: F(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3543
3564
|
}, [
|
|
3544
|
-
|
|
3565
|
+
c(Lt, { name: "sidebarLogoFade" }, {
|
|
3545
3566
|
default: r(() => [
|
|
3546
3567
|
l.collapse ? (i(), m(s, {
|
|
3547
3568
|
key: "collapse",
|
|
@@ -3553,8 +3574,8 @@ function wo(e, t, l, n, o, a) {
|
|
|
3553
3574
|
key: 0,
|
|
3554
3575
|
src: a.logo,
|
|
3555
3576
|
class: "sidebar-logo"
|
|
3556
|
-
}, null, 8,
|
|
3557
|
-
|
|
3577
|
+
}, null, 8, xo)) : (i(), h("h1", Eo, O(a.title), 1)),
|
|
3578
|
+
$o
|
|
3558
3579
|
]),
|
|
3559
3580
|
_: 1
|
|
3560
3581
|
})) : (i(), m(s, {
|
|
@@ -3567,8 +3588,8 @@ function wo(e, t, l, n, o, a) {
|
|
|
3567
3588
|
key: 0,
|
|
3568
3589
|
src: a.logo,
|
|
3569
3590
|
class: "sidebar-logo"
|
|
3570
|
-
}, null, 8,
|
|
3571
|
-
|
|
3591
|
+
}, null, 8, Io)) : $("", !0),
|
|
3592
|
+
_("h1", Co, O(a.title), 1)
|
|
3572
3593
|
]),
|
|
3573
3594
|
_: 1
|
|
3574
3595
|
}))
|
|
@@ -3577,7 +3598,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
3577
3598
|
})
|
|
3578
3599
|
], 2);
|
|
3579
3600
|
}
|
|
3580
|
-
const
|
|
3601
|
+
const Oo = /* @__PURE__ */ I(wo, [["render", To], ["__scopeId", "data-v-49084925"]]), Bo = {
|
|
3581
3602
|
props: {
|
|
3582
3603
|
to: {
|
|
3583
3604
|
type: String,
|
|
@@ -3590,10 +3611,10 @@ const So = /* @__PURE__ */ I(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3590
3611
|
},
|
|
3591
3612
|
methods: {
|
|
3592
3613
|
compType(e) {
|
|
3593
|
-
return
|
|
3614
|
+
return Ue(e) || this.newTab ? "a" : "router-link";
|
|
3594
3615
|
},
|
|
3595
3616
|
linkProps(e) {
|
|
3596
|
-
return
|
|
3617
|
+
return Ue(e) ? {
|
|
3597
3618
|
is: "a",
|
|
3598
3619
|
href: e,
|
|
3599
3620
|
target: "_blank",
|
|
@@ -3610,15 +3631,15 @@ const So = /* @__PURE__ */ I(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3610
3631
|
}
|
|
3611
3632
|
}
|
|
3612
3633
|
};
|
|
3613
|
-
function
|
|
3614
|
-
return i(), m(
|
|
3634
|
+
function Ao(e, t, l, n, o, a) {
|
|
3635
|
+
return i(), m(Qe(a.compType(l.to)), J(Y(a.linkProps(l.to))), {
|
|
3615
3636
|
default: r(() => [
|
|
3616
3637
|
le(e.$slots, "default")
|
|
3617
3638
|
]),
|
|
3618
3639
|
_: 3
|
|
3619
3640
|
}, 16);
|
|
3620
3641
|
}
|
|
3621
|
-
const
|
|
3642
|
+
const Po = /* @__PURE__ */ I(Bo, [["render", Ao]]), Ro = {
|
|
3622
3643
|
computed: {
|
|
3623
3644
|
// @ts-ignore
|
|
3624
3645
|
device() {
|
|
@@ -3639,7 +3660,7 @@ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
|
3639
3660
|
}
|
|
3640
3661
|
}
|
|
3641
3662
|
}
|
|
3642
|
-
},
|
|
3663
|
+
}, Lo = { class: "menu-content" }, Mo = /* @__PURE__ */ V({
|
|
3643
3664
|
__name: "MenuContent",
|
|
3644
3665
|
props: {
|
|
3645
3666
|
meta: {
|
|
@@ -3654,20 +3675,20 @@ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
|
3654
3675
|
return (t, l) => {
|
|
3655
3676
|
const n = v("VIcon");
|
|
3656
3677
|
return i(), h(E, null, [
|
|
3657
|
-
|
|
3678
|
+
c(n, {
|
|
3658
3679
|
name: e.meta.icon || "ra-all"
|
|
3659
3680
|
}, null, 8, ["name"]),
|
|
3660
|
-
|
|
3681
|
+
_("span", Lo, O(e.meta.title), 1)
|
|
3661
3682
|
], 64);
|
|
3662
3683
|
};
|
|
3663
3684
|
}
|
|
3664
|
-
}),
|
|
3685
|
+
}), jo = {
|
|
3665
3686
|
name: "SidebarItem",
|
|
3666
3687
|
components: {
|
|
3667
|
-
AppLink:
|
|
3668
|
-
MenuContent:
|
|
3688
|
+
AppLink: Po,
|
|
3689
|
+
MenuContent: Mo
|
|
3669
3690
|
},
|
|
3670
|
-
mixins: [
|
|
3691
|
+
mixins: [Ro],
|
|
3671
3692
|
props: {
|
|
3672
3693
|
// route object
|
|
3673
3694
|
item: {
|
|
@@ -3692,26 +3713,26 @@ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
|
3692
3713
|
}
|
|
3693
3714
|
}
|
|
3694
3715
|
}
|
|
3695
|
-
},
|
|
3716
|
+
}, Do = {
|
|
3696
3717
|
key: 0,
|
|
3697
3718
|
class: "menu-wrapper"
|
|
3698
3719
|
};
|
|
3699
|
-
function
|
|
3700
|
-
const s = v("menu-content"),
|
|
3701
|
-
return l.item.hidden !== !1 ? (i(), h("div",
|
|
3720
|
+
function No(e, t, l, n, o, a) {
|
|
3721
|
+
const s = v("menu-content"), p = wl, u = v("app-link"), d = v("sidebar-item", !0), f = Sl;
|
|
3722
|
+
return l.item.hidden !== !1 ? (i(), h("div", Do, [
|
|
3702
3723
|
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
|
|
3703
|
-
l.item.meta ? (i(), m(
|
|
3724
|
+
l.item.meta ? (i(), m(u, {
|
|
3704
3725
|
key: 0,
|
|
3705
3726
|
to: l.to,
|
|
3706
3727
|
"new-tab": l.item.meta.newTab
|
|
3707
3728
|
}, {
|
|
3708
3729
|
default: r(() => [
|
|
3709
|
-
p
|
|
3730
|
+
c(p, {
|
|
3710
3731
|
index: l.to,
|
|
3711
|
-
class:
|
|
3732
|
+
class: F({ "submenu-title-noDropdown": !l.isNest })
|
|
3712
3733
|
}, {
|
|
3713
3734
|
default: r(() => [
|
|
3714
|
-
|
|
3735
|
+
c(s, {
|
|
3715
3736
|
meta: l.item.meta
|
|
3716
3737
|
}, null, 8, ["meta"])
|
|
3717
3738
|
]),
|
|
@@ -3724,15 +3745,15 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3724
3745
|
key: 1,
|
|
3725
3746
|
ref: "subMenu",
|
|
3726
3747
|
index: l.to,
|
|
3727
|
-
class:
|
|
3748
|
+
class: F({ "submenu-title-noDropdown": !l.isNest })
|
|
3728
3749
|
}, {
|
|
3729
3750
|
title: r(() => [
|
|
3730
|
-
l.item.redirect && l.item.redirect !== "#" ? (i(), m(
|
|
3751
|
+
l.item.redirect && l.item.redirect !== "#" ? (i(), m(u, {
|
|
3731
3752
|
key: 0,
|
|
3732
3753
|
to: l.to
|
|
3733
3754
|
}, {
|
|
3734
3755
|
default: r(() => [
|
|
3735
|
-
|
|
3756
|
+
c(s, {
|
|
3736
3757
|
meta: l.item.meta
|
|
3737
3758
|
}, null, 8, ["meta"])
|
|
3738
3759
|
]),
|
|
@@ -3743,11 +3764,11 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3743
3764
|
}, null, 8, ["meta"]))
|
|
3744
3765
|
]),
|
|
3745
3766
|
default: r(() => [
|
|
3746
|
-
(i(!0), h(E, null,
|
|
3747
|
-
key:
|
|
3767
|
+
(i(!0), h(E, null, B(l.item.children, (b) => (i(), m(d, {
|
|
3768
|
+
key: b.path,
|
|
3748
3769
|
"is-nest": !0,
|
|
3749
|
-
item:
|
|
3750
|
-
to: a.getTo(
|
|
3770
|
+
item: b,
|
|
3771
|
+
to: a.getTo(b),
|
|
3751
3772
|
class: "nest-menu"
|
|
3752
3773
|
}, null, 8, ["item", "to"]))), 128))
|
|
3753
3774
|
]),
|
|
@@ -3755,26 +3776,26 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3755
3776
|
}, 8, ["index", "class"])) : $("", !0)
|
|
3756
3777
|
])) : $("", !0);
|
|
3757
3778
|
}
|
|
3758
|
-
const
|
|
3759
|
-
function
|
|
3779
|
+
const Vo = /* @__PURE__ */ I(jo, [["render", No]]);
|
|
3780
|
+
function bt(e) {
|
|
3760
3781
|
return e.filter((t) => {
|
|
3761
3782
|
var l;
|
|
3762
|
-
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children =
|
|
3783
|
+
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = bt(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3763
3784
|
});
|
|
3764
3785
|
}
|
|
3765
|
-
const
|
|
3786
|
+
const qo = {
|
|
3766
3787
|
data() {
|
|
3767
3788
|
return {
|
|
3768
3789
|
selected: ""
|
|
3769
3790
|
};
|
|
3770
3791
|
},
|
|
3771
3792
|
computed: {
|
|
3772
|
-
...
|
|
3793
|
+
...Oe(["remoteRouter"]),
|
|
3773
3794
|
filterRoutes() {
|
|
3774
3795
|
let e = [];
|
|
3775
3796
|
return this.remoteRouter.forEach((t) => {
|
|
3776
3797
|
e = e.concat(y(t.routes));
|
|
3777
|
-
}),
|
|
3798
|
+
}), bt(e);
|
|
3778
3799
|
}
|
|
3779
3800
|
},
|
|
3780
3801
|
methods: {
|
|
@@ -3794,9 +3815,9 @@ const Ro = {
|
|
|
3794
3815
|
}
|
|
3795
3816
|
}
|
|
3796
3817
|
};
|
|
3797
|
-
function
|
|
3798
|
-
const s =
|
|
3799
|
-
return i(), m(
|
|
3818
|
+
function Uo(e, t, l, n, o, a) {
|
|
3819
|
+
const s = Pe, p = xl, u = Re;
|
|
3820
|
+
return i(), m(u, {
|
|
3800
3821
|
modelValue: o.selected,
|
|
3801
3822
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
3802
3823
|
filterable: "",
|
|
@@ -3805,21 +3826,21 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3805
3826
|
onChange: a.onselected
|
|
3806
3827
|
}, {
|
|
3807
3828
|
default: r(() => [
|
|
3808
|
-
(i(!0), h(E, null,
|
|
3829
|
+
(i(!0), h(E, null, B(a.filterRoutes, (d) => (i(), h(E, {
|
|
3809
3830
|
key: d.path
|
|
3810
3831
|
}, [
|
|
3811
3832
|
d.children !== void 0 ? (i(), h(E, { key: 0 }, [
|
|
3812
|
-
d.meta.menuType !== 0 ? (i(), m(
|
|
3833
|
+
d.meta.menuType !== 0 ? (i(), m(p, {
|
|
3813
3834
|
key: d.path + "-",
|
|
3814
3835
|
label: d.meta.title
|
|
3815
3836
|
}, {
|
|
3816
3837
|
default: r(() => [
|
|
3817
|
-
(i(!0), h(E, null,
|
|
3838
|
+
(i(!0), h(E, null, B(d.children, (f, b) => (i(), h(E, {
|
|
3818
3839
|
key: f.path
|
|
3819
3840
|
}, [
|
|
3820
3841
|
d.meta.menuType !== 0 ? (i(), m(s, {
|
|
3821
3842
|
key: 0,
|
|
3822
|
-
label: (
|
|
3843
|
+
label: (b === d.children.length - 1 ? "└─" : "├─") + f.meta.title,
|
|
3823
3844
|
value: a.getJumpPath(f)
|
|
3824
3845
|
}, null, 8, ["label", "value"])) : $("", !0)
|
|
3825
3846
|
], 64))), 128))
|
|
@@ -3836,12 +3857,12 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3836
3857
|
_: 1
|
|
3837
3858
|
}, 8, ["modelValue", "onChange"]);
|
|
3838
3859
|
}
|
|
3839
|
-
const
|
|
3840
|
-
var
|
|
3841
|
-
const
|
|
3842
|
-
components: { SidebarItem:
|
|
3860
|
+
const Ho = /* @__PURE__ */ I(qo, [["render", Uo], ["__scopeId", "data-v-7a867c34"]]);
|
|
3861
|
+
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 || {}), M = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(M || {});
|
|
3862
|
+
const Fo = V({
|
|
3863
|
+
components: { SidebarItem: Vo, Logo: Oo, SearchMenu: Ho },
|
|
3843
3864
|
computed: {
|
|
3844
|
-
...
|
|
3865
|
+
...Oe(["sidebar", "remoteRouter", "customRouter"]),
|
|
3845
3866
|
routes() {
|
|
3846
3867
|
let e = [];
|
|
3847
3868
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
@@ -3858,7 +3879,7 @@ const Do = q({
|
|
|
3858
3879
|
const e = this.$route.matched;
|
|
3859
3880
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
3860
3881
|
const l = e[t];
|
|
3861
|
-
if (l.meta.menuType ===
|
|
3882
|
+
if (l.meta.menuType === M.menu)
|
|
3862
3883
|
return this.showActive(), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3863
3884
|
}
|
|
3864
3885
|
return "";
|
|
@@ -3882,26 +3903,26 @@ const Do = q({
|
|
|
3882
3903
|
},
|
|
3883
3904
|
methods: {
|
|
3884
3905
|
showActive() {
|
|
3885
|
-
|
|
3906
|
+
Ye("is-active", 200);
|
|
3886
3907
|
},
|
|
3887
3908
|
filterRoute(e) {
|
|
3888
|
-
return e.filter((t) => [
|
|
3909
|
+
return e.filter((t) => [M.dir, M.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
|
|
3889
3910
|
}
|
|
3890
3911
|
}
|
|
3891
3912
|
});
|
|
3892
|
-
function
|
|
3893
|
-
const s = v("logo"),
|
|
3913
|
+
function Go(e, t, l, n, o, a) {
|
|
3914
|
+
const s = v("logo"), p = v("search-menu"), u = v("sidebar-item"), d = El, f = $l;
|
|
3894
3915
|
return i(), h("div", {
|
|
3895
|
-
class:
|
|
3916
|
+
class: F({ "has-logo": e.showLogo })
|
|
3896
3917
|
}, [
|
|
3897
3918
|
e.showLogo ? (i(), m(s, {
|
|
3898
3919
|
key: 0,
|
|
3899
3920
|
collapse: e.isCollapse
|
|
3900
3921
|
}, null, 8, ["collapse"])) : $("", !0),
|
|
3901
|
-
|
|
3922
|
+
c(f, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3902
3923
|
default: r(() => [
|
|
3903
|
-
e.isCollapse ? $("", !0) : (i(), m(
|
|
3904
|
-
|
|
3924
|
+
e.isCollapse ? $("", !0) : (i(), m(p, { key: 0 })),
|
|
3925
|
+
c(d, {
|
|
3905
3926
|
"default-active": e.activeMenu,
|
|
3906
3927
|
collapse: e.isCollapse,
|
|
3907
3928
|
"background-color": e.variables.menuBg,
|
|
@@ -3912,10 +3933,10 @@ function jo(e, t, l, n, o, a) {
|
|
|
3912
3933
|
mode: "vertical"
|
|
3913
3934
|
}, {
|
|
3914
3935
|
default: r(() => [
|
|
3915
|
-
(i(!0), h(E, null,
|
|
3916
|
-
key:
|
|
3936
|
+
(i(!0), h(E, null, B(e.routes, (b, g) => (i(), h(E, {
|
|
3937
|
+
key: g + "-module"
|
|
3917
3938
|
}, [
|
|
3918
|
-
(i(!0), h(E, null,
|
|
3939
|
+
(i(!0), h(E, null, B(e.filterRoute(b.routes), (x) => (i(), m(u, {
|
|
3919
3940
|
key: x.path,
|
|
3920
3941
|
item: x,
|
|
3921
3942
|
to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
|
|
@@ -3929,66 +3950,66 @@ function jo(e, t, l, n, o, a) {
|
|
|
3929
3950
|
})
|
|
3930
3951
|
], 2);
|
|
3931
3952
|
}
|
|
3932
|
-
const
|
|
3933
|
-
const
|
|
3953
|
+
const Jo = /* @__PURE__ */ I(Fo, [["render", Go], ["__scopeId", "data-v-d252f828"]]);
|
|
3954
|
+
const zo = { class: "app-main" }, Ko = {
|
|
3934
3955
|
__name: "AppMain",
|
|
3935
3956
|
setup(e) {
|
|
3936
|
-
const t =
|
|
3937
|
-
return
|
|
3957
|
+
const t = pe(), l = [], n = A(0);
|
|
3958
|
+
return sl(() => {
|
|
3938
3959
|
var o;
|
|
3939
3960
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3940
3961
|
}), (o, a) => {
|
|
3941
|
-
const s = v("router-view"),
|
|
3942
|
-
return i(), h("section",
|
|
3962
|
+
const s = v("router-view"), p = Il;
|
|
3963
|
+
return i(), h("section", zo, [
|
|
3943
3964
|
(i(), m(s, {
|
|
3944
3965
|
key: o.$route.fullPath + w(n)
|
|
3945
3966
|
})),
|
|
3946
|
-
p
|
|
3967
|
+
c(p, { bottom: 50 })
|
|
3947
3968
|
]);
|
|
3948
3969
|
};
|
|
3949
3970
|
}
|
|
3950
|
-
},
|
|
3951
|
-
const
|
|
3971
|
+
}, Wo = /* @__PURE__ */ I(Ko, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3972
|
+
const Zo = { class: "main-container" }, Qo = 992, Xo = {
|
|
3952
3973
|
__name: "index",
|
|
3953
3974
|
setup(e) {
|
|
3954
|
-
const t =
|
|
3975
|
+
const t = ot(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
|
|
3955
3976
|
hideSidebar: !n.value.opened,
|
|
3956
3977
|
openSidebar: n.value.opened,
|
|
3957
3978
|
withoutAnimation: n.value.withoutAnimation,
|
|
3958
3979
|
mobile: o.value === "mobile"
|
|
3959
|
-
})),
|
|
3960
|
-
|
|
3961
|
-
const
|
|
3980
|
+
})), p = () => l.getBoundingClientRect().width - 1 < Qo;
|
|
3981
|
+
Al(window, "resize", () => d());
|
|
3982
|
+
const u = () => {
|
|
3962
3983
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
3963
3984
|
}, d = () => {
|
|
3964
3985
|
if (!document.hidden) {
|
|
3965
|
-
const f =
|
|
3986
|
+
const f = p();
|
|
3966
3987
|
t.dispatch("app/toggleDevice", f ? "mobile" : "desktop"), f && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
3967
3988
|
}
|
|
3968
3989
|
};
|
|
3969
|
-
return (f,
|
|
3970
|
-
class:
|
|
3990
|
+
return (f, b) => (i(), h("div", {
|
|
3991
|
+
class: F([w(s), "app-wrapper"])
|
|
3971
3992
|
}, [
|
|
3972
3993
|
w(o) === "mobile" && w(n).opened ? (i(), h("div", {
|
|
3973
3994
|
key: 0,
|
|
3974
3995
|
class: "drawer-bg",
|
|
3975
|
-
onClick:
|
|
3996
|
+
onClick: u
|
|
3976
3997
|
})) : $("", !0),
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
class:
|
|
3998
|
+
c(w(Jo), { class: "sidebar-container" }),
|
|
3999
|
+
_("div", Zo, [
|
|
4000
|
+
_("div", {
|
|
4001
|
+
class: F({ "fixed-header": w(a) })
|
|
3981
4002
|
}, [
|
|
3982
|
-
|
|
4003
|
+
c(w(ko))
|
|
3983
4004
|
], 2),
|
|
3984
|
-
|
|
4005
|
+
c(w(Wo))
|
|
3985
4006
|
])
|
|
3986
4007
|
], 2));
|
|
3987
4008
|
}
|
|
3988
|
-
},
|
|
3989
|
-
class
|
|
4009
|
+
}, _t = /* @__PURE__ */ I(Xo, [["__scopeId", "data-v-957442cd"]]);
|
|
4010
|
+
class yt {
|
|
3990
4011
|
constructor() {
|
|
3991
|
-
|
|
4012
|
+
L(this, "type", "qrcode");
|
|
3992
4013
|
}
|
|
3993
4014
|
flag() {
|
|
3994
4015
|
}
|
|
@@ -3998,22 +4019,45 @@ class Jo {
|
|
|
3998
4019
|
showQrCode() {
|
|
3999
4020
|
}
|
|
4000
4021
|
}
|
|
4001
|
-
class
|
|
4022
|
+
class Ti extends yt {
|
|
4002
4023
|
constructor(l) {
|
|
4003
4024
|
super();
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
D(this, "elId", "");
|
|
4008
|
-
D(this, "appid", "");
|
|
4009
|
-
D(this, "iframe", new HTMLIFrameElement());
|
|
4010
|
-
D(this, "redirectUri", "");
|
|
4011
|
-
D(this, "style", "");
|
|
4025
|
+
L(this, "type", "jump");
|
|
4026
|
+
L(this, "client_id", "");
|
|
4027
|
+
this.client_id = l.client_id;
|
|
4012
4028
|
}
|
|
4013
4029
|
flag() {
|
|
4014
|
-
const l =
|
|
4030
|
+
const l = et("code");
|
|
4015
4031
|
if (l)
|
|
4016
|
-
return
|
|
4032
|
+
return {
|
|
4033
|
+
ticket: l,
|
|
4034
|
+
key: "github"
|
|
4035
|
+
};
|
|
4036
|
+
}
|
|
4037
|
+
jumpToLoginPage(l, n) {
|
|
4038
|
+
const o = encodeURIComponent(location.href);
|
|
4039
|
+
location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
|
|
4040
|
+
}
|
|
4041
|
+
}
|
|
4042
|
+
class Oi extends yt {
|
|
4043
|
+
constructor(l) {
|
|
4044
|
+
super();
|
|
4045
|
+
L(this, "type", "qrcode");
|
|
4046
|
+
L(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
|
|
4047
|
+
L(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
|
|
4048
|
+
L(this, "elId", "");
|
|
4049
|
+
L(this, "appid", "");
|
|
4050
|
+
L(this, "iframe", new HTMLIFrameElement());
|
|
4051
|
+
L(this, "redirectUri", "");
|
|
4052
|
+
L(this, "style", "");
|
|
4053
|
+
}
|
|
4054
|
+
flag() {
|
|
4055
|
+
const l = et("code");
|
|
4056
|
+
if (l)
|
|
4057
|
+
return {
|
|
4058
|
+
ticket: l,
|
|
4059
|
+
key: "dingtalk"
|
|
4060
|
+
};
|
|
4017
4061
|
}
|
|
4018
4062
|
showQrCode() {
|
|
4019
4063
|
const l = (a) => {
|
|
@@ -4021,7 +4065,7 @@ class zo extends Jo {
|
|
|
4021
4065
|
appid: this.appid,
|
|
4022
4066
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4023
4067
|
};
|
|
4024
|
-
return Q(this.reloadUrl, s) + "&" +
|
|
4068
|
+
return Q(this.reloadUrl, s) + "&" + Wt(a || {});
|
|
4025
4069
|
}, n = () => {
|
|
4026
4070
|
const a = {
|
|
4027
4071
|
goto: encodeURIComponent(l()),
|
|
@@ -4029,98 +4073,98 @@ class zo extends Jo {
|
|
|
4029
4073
|
};
|
|
4030
4074
|
return Q(this.qrCodeUrl, a);
|
|
4031
4075
|
}, o = (a) => {
|
|
4032
|
-
const { origin: s, data:
|
|
4033
|
-
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode:
|
|
4076
|
+
const { origin: s, data: p } = a;
|
|
4077
|
+
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: p }));
|
|
4034
4078
|
};
|
|
4035
|
-
this.iframe.src = n(),
|
|
4079
|
+
this.iframe.src = n(), Kt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4036
4080
|
"message",
|
|
4037
4081
|
(a) => o(a),
|
|
4038
4082
|
!1
|
|
4039
4083
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
|
|
4040
4084
|
}
|
|
4041
4085
|
}
|
|
4042
|
-
const
|
|
4043
|
-
|
|
4044
|
-
};
|
|
4045
|
-
function Wo() {
|
|
4046
|
-
return A(S.state.settings.sso || {}, Ko);
|
|
4086
|
+
const Yo = {};
|
|
4087
|
+
function ea() {
|
|
4088
|
+
return P(S.state.settings.sso || {}, Yo);
|
|
4047
4089
|
}
|
|
4048
|
-
function
|
|
4049
|
-
const
|
|
4050
|
-
|
|
4051
|
-
|
|
4090
|
+
function ta() {
|
|
4091
|
+
const e = ea(), t = S.state.settings.activeSsoKey || "";
|
|
4092
|
+
console.log(e, t);
|
|
4093
|
+
const l = e[t];
|
|
4094
|
+
if (l !== void 0)
|
|
4095
|
+
return l();
|
|
4052
4096
|
}
|
|
4053
|
-
const
|
|
4097
|
+
const la = { id: "login" }, na = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), oa = { id: "form" }, aa = { class: "captcha" }, sa = ["src"], ia = { class: "tips" }, ra = { class: "sso" }, ca = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), ua = /* @__PURE__ */ V({
|
|
4054
4098
|
__name: "login",
|
|
4055
4099
|
setup(e) {
|
|
4056
|
-
const t =
|
|
4100
|
+
const t = il(), l = pe(), n = j(() => S.state.settings.loginTips), o = j(() => (console.log(S.state.app), S.state.app.baseURL)), a = A(0), s = () => a.value++, p = j(() => u.value.username.length > 0 && u.value.password.length >= 4 && u.value.captcha.length === 4), u = A({
|
|
4057
4101
|
username: "",
|
|
4058
4102
|
password: "",
|
|
4059
4103
|
captcha: "",
|
|
4060
4104
|
sing: ""
|
|
4061
4105
|
}), d = () => {
|
|
4062
|
-
if (
|
|
4063
|
-
|
|
4106
|
+
if (u.value.username === "" || u.value.password === "" || u.value.captcha === "") {
|
|
4107
|
+
Cl.error("用户名, 密码, 验证码是必须的");
|
|
4064
4108
|
return;
|
|
4065
4109
|
}
|
|
4066
|
-
|
|
4067
|
-
var
|
|
4068
|
-
t.push({ path: ((
|
|
4110
|
+
u.value.sing = Rl(`${u.value.username}${u.value.password}${u.value.captcha}`).toString(), S.dispatch("user/login", u.value).then((f) => {
|
|
4111
|
+
var b;
|
|
4112
|
+
t.push({ path: ((b = l.query) == null ? void 0 : b.redirect) || "/" });
|
|
4069
4113
|
});
|
|
4070
4114
|
};
|
|
4071
|
-
return
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
ie(
|
|
4075
|
-
"onUpdate:modelValue":
|
|
4115
|
+
return A(), (f, b) => (i(), h("div", la, [
|
|
4116
|
+
na,
|
|
4117
|
+
_("form", oa, [
|
|
4118
|
+
ie(_("input", {
|
|
4119
|
+
"onUpdate:modelValue": b[0] || (b[0] = (g) => w(u).username = g),
|
|
4076
4120
|
type: "text",
|
|
4077
4121
|
placeholder: "用户名",
|
|
4078
4122
|
class: "input"
|
|
4079
4123
|
}, null, 512), [
|
|
4080
|
-
[he, w(
|
|
4124
|
+
[he, w(u).username]
|
|
4081
4125
|
]),
|
|
4082
|
-
ie(
|
|
4083
|
-
"onUpdate:modelValue":
|
|
4126
|
+
ie(_("input", {
|
|
4127
|
+
"onUpdate:modelValue": b[1] || (b[1] = (g) => w(u).password = g),
|
|
4084
4128
|
type: "password",
|
|
4085
4129
|
placeholder: "密码",
|
|
4086
4130
|
class: "input"
|
|
4087
4131
|
}, null, 512), [
|
|
4088
|
-
[he, w(
|
|
4132
|
+
[he, w(u).password]
|
|
4089
4133
|
]),
|
|
4090
|
-
|
|
4091
|
-
ie(
|
|
4092
|
-
"onUpdate:modelValue":
|
|
4134
|
+
_("div", aa, [
|
|
4135
|
+
ie(_("input", {
|
|
4136
|
+
"onUpdate:modelValue": b[2] || (b[2] = (g) => w(u).captcha = g),
|
|
4093
4137
|
type: "text",
|
|
4094
4138
|
placeholder: "验证码",
|
|
4095
4139
|
class: "input-captcha"
|
|
4096
4140
|
}, null, 512), [
|
|
4097
|
-
[he, w(
|
|
4141
|
+
[he, w(u).captcha]
|
|
4098
4142
|
]),
|
|
4099
|
-
|
|
4143
|
+
_("img", {
|
|
4100
4144
|
class: "captcha-img",
|
|
4101
4145
|
src: o.value + "/user/captcha?ts=" + w(a),
|
|
4102
4146
|
title: "点击刷新",
|
|
4103
4147
|
onClick: s
|
|
4104
|
-
}, null, 8,
|
|
4148
|
+
}, null, 8, sa)
|
|
4105
4149
|
]),
|
|
4106
|
-
|
|
4107
|
-
class:
|
|
4150
|
+
_("div", {
|
|
4151
|
+
class: F({ input: !0, button: !0, "no-ready": !p.value }),
|
|
4108
4152
|
onClick: d
|
|
4109
4153
|
}, "登录", 2),
|
|
4110
|
-
|
|
4111
|
-
|
|
4154
|
+
_("div", ia, [
|
|
4155
|
+
_("div", null, O(n.value), 1)
|
|
4112
4156
|
]),
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
(i(!0), h(E, null,
|
|
4157
|
+
_("div", ra, [
|
|
4158
|
+
ca,
|
|
4159
|
+
(i(!0), h(E, null, B(Object.keys([]), (g) => (i(), h("div", { key: g }, O(g), 1))), 128))
|
|
4116
4160
|
])
|
|
4117
4161
|
])
|
|
4118
4162
|
]));
|
|
4119
4163
|
}
|
|
4120
4164
|
});
|
|
4121
|
-
const
|
|
4165
|
+
const pa = {
|
|
4122
4166
|
name: "NotFoundPage"
|
|
4123
|
-
},
|
|
4167
|
+
}, vt = (e) => ($e("data-v-26068803"), e = e(), Ie(), e), da = { class: "not-found" }, ma = /* @__PURE__ */ vt(() => /* @__PURE__ */ _("svg", {
|
|
4124
4168
|
width: "380px",
|
|
4125
4169
|
height: "500px",
|
|
4126
4170
|
viewBox: "0 0 837 1045",
|
|
@@ -4129,7 +4173,7 @@ const sa = {
|
|
|
4129
4173
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
4130
4174
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
4131
4175
|
}, [
|
|
4132
|
-
/* @__PURE__ */
|
|
4176
|
+
/* @__PURE__ */ _("g", {
|
|
4133
4177
|
id: "Page-1",
|
|
4134
4178
|
stroke: "none",
|
|
4135
4179
|
"stroke-width": "1",
|
|
@@ -4137,35 +4181,35 @@ const sa = {
|
|
|
4137
4181
|
"fill-rule": "evenodd",
|
|
4138
4182
|
"sketch:type": "MSPage"
|
|
4139
4183
|
}, [
|
|
4140
|
-
/* @__PURE__ */
|
|
4184
|
+
/* @__PURE__ */ _("path", {
|
|
4141
4185
|
id: "Polygon-1",
|
|
4142
4186
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
4143
4187
|
stroke: "#007FB2",
|
|
4144
4188
|
"stroke-width": "6",
|
|
4145
4189
|
"sketch:type": "MSShapeGroup"
|
|
4146
4190
|
}),
|
|
4147
|
-
/* @__PURE__ */
|
|
4191
|
+
/* @__PURE__ */ _("path", {
|
|
4148
4192
|
id: "Polygon-2",
|
|
4149
4193
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
4150
4194
|
stroke: "#EF4A5B",
|
|
4151
4195
|
"stroke-width": "6",
|
|
4152
4196
|
"sketch:type": "MSShapeGroup"
|
|
4153
4197
|
}),
|
|
4154
|
-
/* @__PURE__ */
|
|
4198
|
+
/* @__PURE__ */ _("path", {
|
|
4155
4199
|
id: "Polygon-3",
|
|
4156
4200
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
4157
4201
|
stroke: "#795D9C",
|
|
4158
4202
|
"stroke-width": "6",
|
|
4159
4203
|
"sketch:type": "MSShapeGroup"
|
|
4160
4204
|
}),
|
|
4161
|
-
/* @__PURE__ */
|
|
4205
|
+
/* @__PURE__ */ _("path", {
|
|
4162
4206
|
id: "Polygon-4",
|
|
4163
4207
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
4164
4208
|
stroke: "#F2773F",
|
|
4165
4209
|
"stroke-width": "6",
|
|
4166
4210
|
"sketch:type": "MSShapeGroup"
|
|
4167
4211
|
}),
|
|
4168
|
-
/* @__PURE__ */
|
|
4212
|
+
/* @__PURE__ */ _("path", {
|
|
4169
4213
|
id: "Polygon-5",
|
|
4170
4214
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
4171
4215
|
stroke: "#36B455",
|
|
@@ -4173,28 +4217,28 @@ const sa = {
|
|
|
4173
4217
|
"sketch:type": "MSShapeGroup"
|
|
4174
4218
|
})
|
|
4175
4219
|
])
|
|
4176
|
-
], -1)),
|
|
4177
|
-
/* @__PURE__ */
|
|
4178
|
-
/* @__PURE__ */
|
|
4179
|
-
/* @__PURE__ */
|
|
4180
|
-
/* @__PURE__ */
|
|
4181
|
-
/* @__PURE__ */
|
|
4220
|
+
], -1)), fa = /* @__PURE__ */ vt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
|
|
4221
|
+
/* @__PURE__ */ _("h1", null, "404"),
|
|
4222
|
+
/* @__PURE__ */ _("p", null, "Page not found"),
|
|
4223
|
+
/* @__PURE__ */ _("div", { class: "buttons-con" }, [
|
|
4224
|
+
/* @__PURE__ */ _("div", { class: "action-link-wrap" }, [
|
|
4225
|
+
/* @__PURE__ */ _("a", {
|
|
4182
4226
|
href: "",
|
|
4183
4227
|
class: "link-button"
|
|
4184
4228
|
}, "Go to Home Page")
|
|
4185
4229
|
])
|
|
4186
4230
|
])
|
|
4187
|
-
], -1)),
|
|
4188
|
-
|
|
4189
|
-
|
|
4231
|
+
], -1)), ha = [
|
|
4232
|
+
ma,
|
|
4233
|
+
fa
|
|
4190
4234
|
];
|
|
4191
|
-
function
|
|
4192
|
-
return i(), h("div",
|
|
4235
|
+
function ba(e, t, l, n, o, a) {
|
|
4236
|
+
return i(), h("div", da, ha);
|
|
4193
4237
|
}
|
|
4194
|
-
const
|
|
4238
|
+
const _a = /* @__PURE__ */ I(pa, [["render", ba], ["__scopeId", "data-v-26068803"]]), ya = [
|
|
4195
4239
|
{
|
|
4196
4240
|
path: "/",
|
|
4197
|
-
component:
|
|
4241
|
+
component: _t,
|
|
4198
4242
|
redirect: "/dashboard",
|
|
4199
4243
|
name: "Root",
|
|
4200
4244
|
meta: {
|
|
@@ -4204,29 +4248,29 @@ const da = /* @__PURE__ */ I(sa, [["render", ua], ["__scopeId", "data-v-26068803
|
|
|
4204
4248
|
{
|
|
4205
4249
|
path: "dashboard",
|
|
4206
4250
|
name: "Dashboard",
|
|
4207
|
-
component:
|
|
4251
|
+
component: dn,
|
|
4208
4252
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4209
4253
|
}
|
|
4210
4254
|
]
|
|
4211
4255
|
},
|
|
4212
4256
|
{
|
|
4213
4257
|
path: "/login",
|
|
4214
|
-
component:
|
|
4258
|
+
component: ua,
|
|
4215
4259
|
meta: { title: "用户登录", menuType: 0 },
|
|
4216
4260
|
hidden: !0
|
|
4217
4261
|
},
|
|
4218
4262
|
{
|
|
4219
4263
|
path: "/404",
|
|
4220
|
-
component:
|
|
4264
|
+
component: _a,
|
|
4221
4265
|
meta: { menuType: 0 },
|
|
4222
4266
|
hidden: !0
|
|
4223
4267
|
}
|
|
4224
|
-
], K =
|
|
4225
|
-
history:
|
|
4226
|
-
routes:
|
|
4268
|
+
], K = rl({
|
|
4269
|
+
history: cl(),
|
|
4270
|
+
routes: ya
|
|
4227
4271
|
});
|
|
4228
4272
|
ke.configure({ showSpinner: !1 });
|
|
4229
|
-
function
|
|
4273
|
+
function va(e) {
|
|
4230
4274
|
e.beforeEach((t, l, n) => {
|
|
4231
4275
|
ke.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4232
4276
|
}), e.afterEach((t) => {
|
|
@@ -4236,46 +4280,46 @@ function fa(e) {
|
|
|
4236
4280
|
}), ke.done();
|
|
4237
4281
|
});
|
|
4238
4282
|
}
|
|
4239
|
-
function
|
|
4283
|
+
function ga() {
|
|
4240
4284
|
return S.state.user.isLodeRemoteRoutes;
|
|
4241
4285
|
}
|
|
4242
|
-
function
|
|
4286
|
+
function gt() {
|
|
4243
4287
|
return S.state.settings.whiteRoutes || [];
|
|
4244
4288
|
}
|
|
4245
|
-
function
|
|
4289
|
+
function ka() {
|
|
4246
4290
|
return S.state.user.token;
|
|
4247
4291
|
}
|
|
4248
|
-
function
|
|
4292
|
+
function wa(e) {
|
|
4249
4293
|
e.beforeEach(async (t, l, n) => {
|
|
4250
|
-
var
|
|
4251
|
-
if (
|
|
4294
|
+
var u, d;
|
|
4295
|
+
if (gt().indexOf(t.path) !== -1) {
|
|
4252
4296
|
n();
|
|
4253
4297
|
return;
|
|
4254
4298
|
}
|
|
4255
|
-
if (
|
|
4256
|
-
(
|
|
4299
|
+
if (ka()) {
|
|
4300
|
+
(u = t.query) != null && u.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4257
4301
|
return;
|
|
4258
4302
|
}
|
|
4259
|
-
const a = t.query.redirect || t.path, s =
|
|
4303
|
+
const a = t.query.redirect || t.path, s = ta();
|
|
4260
4304
|
if (!s) {
|
|
4261
4305
|
n(`/login?redirect=${a}`);
|
|
4262
4306
|
return;
|
|
4263
4307
|
}
|
|
4264
|
-
const
|
|
4265
|
-
if (
|
|
4308
|
+
const p = s.flag();
|
|
4309
|
+
if (p && await S.dispatch("user/login", Xt(p) ? p : { ticket: p })) {
|
|
4266
4310
|
n();
|
|
4267
4311
|
return;
|
|
4268
4312
|
}
|
|
4269
4313
|
s.jumpToLoginPage(n, `/login?redirect=${a}`);
|
|
4270
4314
|
});
|
|
4271
4315
|
}
|
|
4272
|
-
const
|
|
4273
|
-
|
|
4316
|
+
const Sa = {}, xa = { class: "loading preloader" }, Ea = /* @__PURE__ */ _("div", { class: "preloader-inner" }, null, -1), $a = [
|
|
4317
|
+
Ea
|
|
4274
4318
|
];
|
|
4275
|
-
function
|
|
4276
|
-
return i(), h("div",
|
|
4319
|
+
function Ia(e, t) {
|
|
4320
|
+
return i(), h("div", xa, $a);
|
|
4277
4321
|
}
|
|
4278
|
-
const
|
|
4322
|
+
const kt = /* @__PURE__ */ I(Sa, [["render", Ia]]), Ca = {
|
|
4279
4323
|
name: "VNotice",
|
|
4280
4324
|
props: {
|
|
4281
4325
|
dataApi: {
|
|
@@ -4304,14 +4348,14 @@ const yt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
|
|
|
4304
4348
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
4305
4349
|
}
|
|
4306
4350
|
};
|
|
4307
|
-
function
|
|
4308
|
-
const s =
|
|
4351
|
+
function Ta(e, t, l, n, o, a) {
|
|
4352
|
+
const s = Le;
|
|
4309
4353
|
return i(), h("div", null, [
|
|
4310
|
-
o.hasNotice ? (i(), m(s,
|
|
4354
|
+
o.hasNotice ? (i(), m(s, J(U({ key: 0 }, o.noticeProps)), null, 16)) : $("", !0)
|
|
4311
4355
|
]);
|
|
4312
4356
|
}
|
|
4313
|
-
const
|
|
4314
|
-
components: { VLoading:
|
|
4357
|
+
const wt = /* @__PURE__ */ I(Ca, [["render", Ta]]), Oa = V({
|
|
4358
|
+
components: { VLoading: kt, VNotice: wt },
|
|
4315
4359
|
props: {
|
|
4316
4360
|
schemaHandler: {
|
|
4317
4361
|
type: Function,
|
|
@@ -4346,15 +4390,15 @@ const vt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
|
|
|
4346
4390
|
beforeCreate() {
|
|
4347
4391
|
const e = this.$route.path.split("/").filter((o) => o), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, n = { params: this.$route.params };
|
|
4348
4392
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4349
|
-
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0,
|
|
4393
|
+
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ce(o.notice) ? this.notice = {
|
|
4350
4394
|
title: o.notice
|
|
4351
4395
|
} : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4352
4396
|
});
|
|
4353
4397
|
}
|
|
4354
4398
|
});
|
|
4355
|
-
const
|
|
4356
|
-
function
|
|
4357
|
-
const s =
|
|
4399
|
+
const Ba = ["innerHTML"];
|
|
4400
|
+
function Aa(e, t, l, n, o, a) {
|
|
4401
|
+
const s = Le, p = wt, u = kt;
|
|
4358
4402
|
return i(), h(E, null, [
|
|
4359
4403
|
e.owners.length > 0 ? (i(), m(s, {
|
|
4360
4404
|
key: 0,
|
|
@@ -4367,18 +4411,18 @@ function Ia(e, t, l, n, o, a) {
|
|
|
4367
4411
|
key: 1,
|
|
4368
4412
|
class: "offline-notice",
|
|
4369
4413
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4370
|
-
}, null, 8,
|
|
4371
|
-
e.haveNotice ? (i(), m(
|
|
4414
|
+
}, null, 8, Ba)) : (i(), h(E, { key: 2 }, [
|
|
4415
|
+
e.haveNotice ? (i(), m(p, {
|
|
4372
4416
|
key: 0,
|
|
4373
4417
|
notice: e.notice,
|
|
4374
4418
|
style: { margin: "0 0 20px 0" },
|
|
4375
4419
|
"data-api": e.noticeApi
|
|
4376
4420
|
}, null, 8, ["notice", "data-api"])) : $("", !0),
|
|
4377
|
-
e.loading ? (i(), m(
|
|
4421
|
+
e.loading ? (i(), m(u, { key: 1 })) : le(e.$slots, "default", J(U({ key: 2 }, e.schema)), void 0, !0)
|
|
4378
4422
|
], 64))
|
|
4379
4423
|
], 64);
|
|
4380
4424
|
}
|
|
4381
|
-
const se = /* @__PURE__ */ I(
|
|
4425
|
+
const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709"]]), St = {
|
|
4382
4426
|
__name: "table",
|
|
4383
4427
|
setup(e) {
|
|
4384
4428
|
const t = (l, n) => {
|
|
@@ -4387,7 +4431,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4387
4431
|
prop: l.orderBy.field,
|
|
4388
4432
|
order: l.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4389
4433
|
};
|
|
4390
|
-
l.tableProps =
|
|
4434
|
+
l.tableProps = P(l.tableProps, { defaultSort: a });
|
|
4391
4435
|
}
|
|
4392
4436
|
const o = Object.keys(oe.props);
|
|
4393
4437
|
return Object.keys(l).forEach((a) => {
|
|
@@ -4396,7 +4440,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4396
4440
|
};
|
|
4397
4441
|
return (l, n) => (i(), m(se, { "schema-handler": t }, {
|
|
4398
4442
|
default: r((o) => [
|
|
4399
|
-
|
|
4443
|
+
c(w(oe), J(Y(o)), null, 16)
|
|
4400
4444
|
]),
|
|
4401
4445
|
_: 1
|
|
4402
4446
|
}));
|
|
@@ -4404,15 +4448,15 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4404
4448
|
}, xe = {
|
|
4405
4449
|
__name: "form",
|
|
4406
4450
|
setup(e) {
|
|
4407
|
-
const t =
|
|
4408
|
-
const a = Object.keys(
|
|
4451
|
+
const t = pe(), l = (n, o) => {
|
|
4452
|
+
const a = Object.keys(G.props);
|
|
4409
4453
|
return Object.keys(n).forEach((s) => {
|
|
4410
4454
|
if (a.indexOf(s) === -1) {
|
|
4411
4455
|
delete n[s];
|
|
4412
4456
|
return;
|
|
4413
4457
|
}
|
|
4414
4458
|
/.*Api$/.test(s) && (n[s] = Q(n[s], t.params));
|
|
4415
|
-
}), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n =
|
|
4459
|
+
}), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n = P({
|
|
4416
4460
|
saveApi: o + "/save",
|
|
4417
4461
|
afterSubmit: "goback",
|
|
4418
4462
|
afterReset: "goback",
|
|
@@ -4421,15 +4465,15 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4421
4465
|
};
|
|
4422
4466
|
return (n, o) => (i(), m(se, { "schema-handler": l }, {
|
|
4423
4467
|
default: r((a) => [
|
|
4424
|
-
|
|
4468
|
+
c(w(G), J(Y(a)), null, 16)
|
|
4425
4469
|
]),
|
|
4426
4470
|
_: 1
|
|
4427
4471
|
}));
|
|
4428
4472
|
}
|
|
4429
|
-
},
|
|
4473
|
+
}, Pa = V({
|
|
4430
4474
|
name: "VTree",
|
|
4431
4475
|
components: {
|
|
4432
|
-
VForm:
|
|
4476
|
+
VForm: G
|
|
4433
4477
|
},
|
|
4434
4478
|
props: {
|
|
4435
4479
|
treeApi: {
|
|
@@ -4482,7 +4526,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4482
4526
|
// 1 新增, 2 编辑
|
|
4483
4527
|
treeData: [],
|
|
4484
4528
|
formData: {},
|
|
4485
|
-
localTreeProps:
|
|
4529
|
+
localTreeProps: P({
|
|
4486
4530
|
"default-expand-all": !0,
|
|
4487
4531
|
"expand-on-click-node": !1,
|
|
4488
4532
|
props: {
|
|
@@ -4526,7 +4570,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4526
4570
|
append(e, t) {
|
|
4527
4571
|
var n, o;
|
|
4528
4572
|
this.type = 1;
|
|
4529
|
-
const l = { pid: e.id, [((n = this.$props.props) == null ? void 0 : n.levelKey) ?? "level"]: t.level + 1, ...
|
|
4573
|
+
const l = { pid: e.id, [((n = this.$props.props) == null ? void 0 : n.levelKey) ?? "level"]: t.level + 1, ...Zt((o = this.$props.props) == null ? void 0 : o.effectData, e) };
|
|
4530
4574
|
console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
|
|
4531
4575
|
},
|
|
4532
4576
|
canAppend(e, t) {
|
|
@@ -4569,39 +4613,39 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4569
4613
|
}
|
|
4570
4614
|
}
|
|
4571
4615
|
});
|
|
4572
|
-
const
|
|
4616
|
+
const Ra = { class: "card-header" }, La = /* @__PURE__ */ _("span", null, "列表", -1), Ma = { class: "tree-action" }, ja = { key: 0 }, Da = {
|
|
4573
4617
|
key: 1,
|
|
4574
4618
|
style: { color: "#E6A23C" }
|
|
4575
|
-
},
|
|
4576
|
-
function
|
|
4577
|
-
const s =
|
|
4578
|
-
return i(), m(
|
|
4619
|
+
}, Na = { class: "card-header" };
|
|
4620
|
+
function Va(e, t, l, n, o, a) {
|
|
4621
|
+
const s = ue, p = Tl, u = Me, d = de, f = v("v-form"), b = ae;
|
|
4622
|
+
return i(), m(b, {
|
|
4579
4623
|
class: "tree-box",
|
|
4580
4624
|
gutter: 20
|
|
4581
4625
|
}, {
|
|
4582
4626
|
default: r(() => [
|
|
4583
|
-
|
|
4627
|
+
c(d, {
|
|
4584
4628
|
span: 8,
|
|
4585
4629
|
class: "tree-tree"
|
|
4586
4630
|
}, {
|
|
4587
4631
|
default: r(() => [
|
|
4588
|
-
|
|
4632
|
+
c(u, { shadow: "never" }, {
|
|
4589
4633
|
header: r(() => [
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4634
|
+
_("div", Ra, [
|
|
4635
|
+
La,
|
|
4636
|
+
c(s, {
|
|
4593
4637
|
type: "text",
|
|
4594
4638
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4595
4639
|
}, {
|
|
4596
4640
|
default: r(() => [
|
|
4597
|
-
|
|
4641
|
+
k("添加")
|
|
4598
4642
|
]),
|
|
4599
4643
|
_: 1
|
|
4600
4644
|
})
|
|
4601
4645
|
])
|
|
4602
4646
|
]),
|
|
4603
4647
|
default: r(() => [
|
|
4604
|
-
(e.treeData || []).length > 0 ? (i(), m(
|
|
4648
|
+
(e.treeData || []).length > 0 ? (i(), m(p, U({
|
|
4605
4649
|
key: 0,
|
|
4606
4650
|
style: { height: "100vh" },
|
|
4607
4651
|
data: e.treeData,
|
|
@@ -4612,10 +4656,10 @@ function La(e, t, l, n, o, a) {
|
|
|
4612
4656
|
"allow-drop": e.allowDrop,
|
|
4613
4657
|
onNodeDragEnd: e.handleDragEnd
|
|
4614
4658
|
}), {
|
|
4615
|
-
default: r(({ node:
|
|
4616
|
-
|
|
4617
|
-
x[e.localTreeProps.props.label] ? (i(), h("span",
|
|
4618
|
-
|
|
4659
|
+
default: r(({ node: g, data: x }) => [
|
|
4660
|
+
_("span", Ma, [
|
|
4661
|
+
x[e.localTreeProps.props.label] ? (i(), h("span", ja, O(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Da, "请在右侧表单中修改 --> ")),
|
|
4662
|
+
_("span", null, [
|
|
4619
4663
|
x[e.localTreeProps.props.label] ? (i(), m(s, {
|
|
4620
4664
|
key: 0,
|
|
4621
4665
|
class: "button",
|
|
@@ -4623,18 +4667,18 @@ function La(e, t, l, n, o, a) {
|
|
|
4623
4667
|
onClick: () => e.onclick(x)
|
|
4624
4668
|
}, {
|
|
4625
4669
|
default: r(() => [
|
|
4626
|
-
|
|
4670
|
+
k("编辑")
|
|
4627
4671
|
]),
|
|
4628
4672
|
_: 2
|
|
4629
4673
|
}, 1032, ["onClick"])) : $("", !0),
|
|
4630
|
-
e.canAppend(x,
|
|
4674
|
+
e.canAppend(x, g) ? (i(), m(s, {
|
|
4631
4675
|
key: 1,
|
|
4632
4676
|
class: "button",
|
|
4633
4677
|
type: "text",
|
|
4634
|
-
onClick: () => e.append(x,
|
|
4678
|
+
onClick: () => e.append(x, g)
|
|
4635
4679
|
}, {
|
|
4636
4680
|
default: r(() => [
|
|
4637
|
-
|
|
4681
|
+
k("添加")
|
|
4638
4682
|
]),
|
|
4639
4683
|
_: 2
|
|
4640
4684
|
}, 1032, ["onClick"])) : $("", !0),
|
|
@@ -4645,7 +4689,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4645
4689
|
onClick: () => e.remove(x)
|
|
4646
4690
|
}, {
|
|
4647
4691
|
default: r(() => [
|
|
4648
|
-
|
|
4692
|
+
k("删除")
|
|
4649
4693
|
]),
|
|
4650
4694
|
_: 2
|
|
4651
4695
|
}, 1032, ["onClick"])) : $("", !0)
|
|
@@ -4660,25 +4704,25 @@ function La(e, t, l, n, o, a) {
|
|
|
4660
4704
|
]),
|
|
4661
4705
|
_: 1
|
|
4662
4706
|
}),
|
|
4663
|
-
|
|
4707
|
+
c(d, {
|
|
4664
4708
|
span: 16,
|
|
4665
4709
|
class: "tree-form"
|
|
4666
4710
|
}, {
|
|
4667
4711
|
default: r(() => [
|
|
4668
|
-
e.type ? (i(), m(
|
|
4712
|
+
e.type ? (i(), m(u, {
|
|
4669
4713
|
key: 0,
|
|
4670
4714
|
shadow: "never"
|
|
4671
4715
|
}, {
|
|
4672
4716
|
header: r(() => [
|
|
4673
|
-
|
|
4674
|
-
|
|
4717
|
+
_("div", Na, [
|
|
4718
|
+
_("span", null, O(e.formType), 1)
|
|
4675
4719
|
])
|
|
4676
4720
|
]),
|
|
4677
4721
|
default: r(() => [
|
|
4678
|
-
(i(), m(f,
|
|
4722
|
+
(i(), m(f, U({
|
|
4679
4723
|
key: e.formkey,
|
|
4680
4724
|
modelValue: e.formData,
|
|
4681
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4725
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.formData = g)
|
|
4682
4726
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4683
4727
|
]),
|
|
4684
4728
|
_: 1
|
|
@@ -4690,18 +4734,18 @@ function La(e, t, l, n, o, a) {
|
|
|
4690
4734
|
_: 1
|
|
4691
4735
|
});
|
|
4692
4736
|
}
|
|
4693
|
-
const
|
|
4737
|
+
const ze = /* @__PURE__ */ I(Pa, [["render", Va]]), qa = {
|
|
4694
4738
|
__name: "tree",
|
|
4695
4739
|
setup(e) {
|
|
4696
4740
|
const t = (l, n) => {
|
|
4697
|
-
const o = Object.keys(
|
|
4741
|
+
const o = Object.keys(ze.props);
|
|
4698
4742
|
return Object.keys(l).forEach((a) => {
|
|
4699
4743
|
o.indexOf(a) === -1 && delete l[a];
|
|
4700
4744
|
}), l;
|
|
4701
4745
|
};
|
|
4702
4746
|
return (l, n) => (i(), m(se, { "schema-handler": t }, {
|
|
4703
4747
|
default: r((o) => [
|
|
4704
|
-
|
|
4748
|
+
c(ze, J(Y(o)), null, 16)
|
|
4705
4749
|
]),
|
|
4706
4750
|
_: 1
|
|
4707
4751
|
}));
|
|
@@ -4709,15 +4753,15 @@ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
|
|
|
4709
4753
|
}, ge = {
|
|
4710
4754
|
__name: "container",
|
|
4711
4755
|
setup(e) {
|
|
4712
|
-
const t =
|
|
4713
|
-
return
|
|
4756
|
+
const t = A(0);
|
|
4757
|
+
return ul(() => {
|
|
4714
4758
|
t.value++;
|
|
4715
4759
|
}), (l, n) => {
|
|
4716
4760
|
const o = v("router-view");
|
|
4717
4761
|
return i(), m(o);
|
|
4718
4762
|
};
|
|
4719
4763
|
}
|
|
4720
|
-
},
|
|
4764
|
+
}, Ua = {
|
|
4721
4765
|
title: {
|
|
4722
4766
|
text: ""
|
|
4723
4767
|
},
|
|
@@ -4746,24 +4790,24 @@ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
|
|
|
4746
4790
|
},
|
|
4747
4791
|
series: []
|
|
4748
4792
|
};
|
|
4749
|
-
function
|
|
4793
|
+
function Ha(e, t, l) {
|
|
4750
4794
|
if (l.length === 0)
|
|
4751
4795
|
return {};
|
|
4752
|
-
let n =
|
|
4753
|
-
if (n.title.text = e,
|
|
4796
|
+
let n = P({}, Ua);
|
|
4797
|
+
if (n.title.text = e, Ce(t)) {
|
|
4754
4798
|
const o = [], a = Object.keys(l[0]);
|
|
4755
|
-
let s = a[0],
|
|
4799
|
+
let s = a[0], p = a.filter((d, f) => f > 0), u = t;
|
|
4756
4800
|
if (t.indexOf(":") > -1) {
|
|
4757
4801
|
const d = t.split(":"), f = d[1].split(",");
|
|
4758
|
-
|
|
4802
|
+
u = d[0], s = f[0], p = f.filter((b, g) => g > 0);
|
|
4759
4803
|
}
|
|
4760
|
-
|
|
4804
|
+
p.forEach((d) => {
|
|
4761
4805
|
const f = [];
|
|
4762
|
-
l.forEach((
|
|
4763
|
-
f.push(
|
|
4806
|
+
l.forEach((b) => {
|
|
4807
|
+
f.push(b[d]);
|
|
4764
4808
|
}), n.series.push({
|
|
4765
4809
|
name: d,
|
|
4766
|
-
type:
|
|
4810
|
+
type: u,
|
|
4767
4811
|
smooth: !0,
|
|
4768
4812
|
data: f
|
|
4769
4813
|
}), n.legend.data.push(d);
|
|
@@ -4771,9 +4815,9 @@ function ja(e, t, l) {
|
|
|
4771
4815
|
o.push(d[s]);
|
|
4772
4816
|
}), n.xAxis.data = o;
|
|
4773
4817
|
}
|
|
4774
|
-
return X(t) && (n =
|
|
4818
|
+
return X(t) && (n = P(n, t)), console.log(111, n), n;
|
|
4775
4819
|
}
|
|
4776
|
-
const
|
|
4820
|
+
const Fa = V({
|
|
4777
4821
|
name: "NumberPanel",
|
|
4778
4822
|
props: {
|
|
4779
4823
|
dataList: {
|
|
@@ -4784,27 +4828,27 @@ const Na = q({
|
|
|
4784
4828
|
data() {
|
|
4785
4829
|
return {};
|
|
4786
4830
|
}
|
|
4787
|
-
}),
|
|
4788
|
-
function
|
|
4789
|
-
return i(!0), h(E, null,
|
|
4790
|
-
|
|
4791
|
-
(i(!0), h(E, null,
|
|
4831
|
+
}), Ga = { class: "number-panel-title" }, Ja = { class: "number" }, za = { class: "name" };
|
|
4832
|
+
function Ka(e, t, l, n, o, a) {
|
|
4833
|
+
return i(!0), h(E, null, B(e.dataList, (s, p) => (i(), h("span", { key: p }, [
|
|
4834
|
+
_("div", Ga, [
|
|
4835
|
+
(i(!0), h(E, null, B(Object.keys(s), (u, d) => (i(), h("div", {
|
|
4792
4836
|
key: d,
|
|
4793
4837
|
class: "title-inner"
|
|
4794
4838
|
}, [
|
|
4795
|
-
|
|
4796
|
-
|
|
4839
|
+
_("p", Ja, O(s[u]), 1),
|
|
4840
|
+
_("p", za, O(u), 1)
|
|
4797
4841
|
]))), 128))
|
|
4798
4842
|
])
|
|
4799
4843
|
]))), 128);
|
|
4800
4844
|
}
|
|
4801
|
-
const
|
|
4845
|
+
const Wa = /* @__PURE__ */ I(Fa, [["render", Ka], ["__scopeId", "data-v-cc0d8293"]]), Za = {
|
|
4802
4846
|
components: {
|
|
4803
|
-
Chart:
|
|
4804
|
-
Md:
|
|
4805
|
-
Json:
|
|
4847
|
+
Chart: pl,
|
|
4848
|
+
Md: Pl,
|
|
4849
|
+
Json: Ae,
|
|
4806
4850
|
Table: oe,
|
|
4807
|
-
Number:
|
|
4851
|
+
Number: Wa,
|
|
4808
4852
|
Html: ""
|
|
4809
4853
|
},
|
|
4810
4854
|
props: {
|
|
@@ -4825,17 +4869,17 @@ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4825
4869
|
};
|
|
4826
4870
|
if (o === "chart")
|
|
4827
4871
|
return {
|
|
4828
|
-
options:
|
|
4872
|
+
options: Ha(n.id, n.chart, n.data)
|
|
4829
4873
|
};
|
|
4830
4874
|
if (o === "md")
|
|
4831
4875
|
return {
|
|
4832
4876
|
source: n.data
|
|
4833
4877
|
};
|
|
4834
4878
|
if (o === "table") {
|
|
4835
|
-
if (!
|
|
4879
|
+
if (!tt(n.data))
|
|
4836
4880
|
return { showPagination: !1 };
|
|
4837
4881
|
const a = [];
|
|
4838
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((s,
|
|
4882
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((s, p) => {
|
|
4839
4883
|
a.push({ field: s, label: s });
|
|
4840
4884
|
}), {
|
|
4841
4885
|
headers: a,
|
|
@@ -4849,21 +4893,21 @@ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4849
4893
|
};
|
|
4850
4894
|
}
|
|
4851
4895
|
};
|
|
4852
|
-
function
|
|
4853
|
-
const s =
|
|
4896
|
+
function Qa(e, t, l, n, o, a) {
|
|
4897
|
+
const s = Me, p = Mt("resize");
|
|
4854
4898
|
return ie((i(), m(s, {
|
|
4855
4899
|
shadow: "never",
|
|
4856
4900
|
class: "part"
|
|
4857
4901
|
}, {
|
|
4858
4902
|
default: r(() => [
|
|
4859
|
-
(i(), m(
|
|
4903
|
+
(i(), m(Qe(n.comptype()), J(Y(n.compprops(l.option))), null, 16))
|
|
4860
4904
|
]),
|
|
4861
4905
|
_: 1
|
|
4862
4906
|
})), [
|
|
4863
|
-
[
|
|
4907
|
+
[p, !0]
|
|
4864
4908
|
]);
|
|
4865
4909
|
}
|
|
4866
|
-
const
|
|
4910
|
+
const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1"]]), Ya = /* @__PURE__ */ V({
|
|
4867
4911
|
__name: "index",
|
|
4868
4912
|
props: {
|
|
4869
4913
|
filter: {
|
|
@@ -4877,13 +4921,13 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4877
4921
|
},
|
|
4878
4922
|
setup(e) {
|
|
4879
4923
|
const t = e, l = useRoute();
|
|
4880
|
-
|
|
4924
|
+
jt(() => {
|
|
4881
4925
|
});
|
|
4882
|
-
const n =
|
|
4883
|
-
|
|
4926
|
+
const n = A({});
|
|
4927
|
+
Ze(() => {
|
|
4884
4928
|
var f;
|
|
4885
|
-
(f = t.filter) == null || f.forEach((
|
|
4886
|
-
|
|
4929
|
+
(f = t.filter) == null || f.forEach((b) => {
|
|
4930
|
+
b.default !== null && (n.value[b.field] = b.default);
|
|
4887
4931
|
});
|
|
4888
4932
|
});
|
|
4889
4933
|
const o = {
|
|
@@ -4896,35 +4940,35 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4896
4940
|
cancelButton: {
|
|
4897
4941
|
text: "重置"
|
|
4898
4942
|
}
|
|
4899
|
-
}, a =
|
|
4943
|
+
}, a = A(1), s = A(t.filter), p = A(t.dataPart), u = j(() => {
|
|
4900
4944
|
let f = l.params.id;
|
|
4901
4945
|
if (!f) {
|
|
4902
|
-
const
|
|
4903
|
-
f =
|
|
4946
|
+
const b = l.path.split("/");
|
|
4947
|
+
f = b[b.length - 1];
|
|
4904
4948
|
}
|
|
4905
4949
|
return "/focusbi_report/view/" + f;
|
|
4906
4950
|
}), d = (f) => {
|
|
4907
|
-
|
|
4908
|
-
s.value =
|
|
4951
|
+
ys.get(u.value, { params: f }).then(({ data: b }) => {
|
|
4952
|
+
s.value = b.filter, p.value = b.dataPart, a.value++;
|
|
4909
4953
|
});
|
|
4910
4954
|
};
|
|
4911
|
-
return (f,
|
|
4912
|
-
const
|
|
4913
|
-
return i(), m(
|
|
4955
|
+
return (f, b) => {
|
|
4956
|
+
const g = Me, x = de, z = Le, H = ae;
|
|
4957
|
+
return i(), m(H, null, {
|
|
4914
4958
|
default: r(() => [
|
|
4915
4959
|
w(s).length > 0 ? (i(), m(x, {
|
|
4916
4960
|
key: 0,
|
|
4917
4961
|
span: 24
|
|
4918
4962
|
}, {
|
|
4919
4963
|
default: r(() => [
|
|
4920
|
-
|
|
4964
|
+
c(g, {
|
|
4921
4965
|
shadow: "never",
|
|
4922
4966
|
class: "part-filter"
|
|
4923
4967
|
}, {
|
|
4924
4968
|
default: r(() => [
|
|
4925
|
-
|
|
4969
|
+
c(w(G), {
|
|
4926
4970
|
modelValue: w(n),
|
|
4927
|
-
"onUpdate:modelValue":
|
|
4971
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => Dt(n) ? n.value = T : null),
|
|
4928
4972
|
"form-items": w(s),
|
|
4929
4973
|
options: o,
|
|
4930
4974
|
onSubmit: d
|
|
@@ -4935,25 +4979,25 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4935
4979
|
]),
|
|
4936
4980
|
_: 1
|
|
4937
4981
|
})) : $("", !0),
|
|
4938
|
-
|
|
4982
|
+
c(x, { span: 24 }, {
|
|
4939
4983
|
default: r(() => [
|
|
4940
|
-
|
|
4984
|
+
c(H, { gutter: 20 }, {
|
|
4941
4985
|
default: r(() => [
|
|
4942
|
-
(i(!0), h(E, null,
|
|
4986
|
+
(i(!0), h(E, null, B(w(p), (T, Z) => (i(), m(x, {
|
|
4943
4987
|
key: Z,
|
|
4944
4988
|
span: T.col || 24
|
|
4945
4989
|
}, {
|
|
4946
4990
|
default: r(() => [
|
|
4947
|
-
T.errMsg ? (i(), m(
|
|
4991
|
+
T.errMsg ? (i(), m(z, {
|
|
4948
4992
|
key: 1,
|
|
4949
4993
|
title: T.id + " 片段执行出错",
|
|
4950
4994
|
type: "error"
|
|
4951
4995
|
}, {
|
|
4952
4996
|
default: r(() => [
|
|
4953
|
-
|
|
4997
|
+
k(O(T.errMsg), 1)
|
|
4954
4998
|
]),
|
|
4955
4999
|
_: 2
|
|
4956
|
-
}, 1032, ["title"])) : (i(), m(
|
|
5000
|
+
}, 1032, ["title"])) : (i(), m(Xa, {
|
|
4957
5001
|
key: w(a),
|
|
4958
5002
|
option: T
|
|
4959
5003
|
}, null, 8, ["option"]))
|
|
@@ -4972,10 +5016,10 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4972
5016
|
};
|
|
4973
5017
|
}
|
|
4974
5018
|
});
|
|
4975
|
-
const
|
|
5019
|
+
const es = {
|
|
4976
5020
|
__name: "report",
|
|
4977
5021
|
setup(e) {
|
|
4978
|
-
const t = useRoute(), l =
|
|
5022
|
+
const t = useRoute(), l = j(() => {
|
|
4979
5023
|
let n = t.params.id;
|
|
4980
5024
|
if (!n) {
|
|
4981
5025
|
const o = t.path.split("/");
|
|
@@ -4985,20 +5029,20 @@ const Wa = {
|
|
|
4985
5029
|
});
|
|
4986
5030
|
return (n, o) => (i(), m(se, { "schema-api": w(l) }, {
|
|
4987
5031
|
default: r((a) => [
|
|
4988
|
-
|
|
5032
|
+
c(Ya, J(Y(a)), null, 16)
|
|
4989
5033
|
]),
|
|
4990
5034
|
_: 1
|
|
4991
5035
|
}, 8, ["schema-api"]));
|
|
4992
5036
|
}
|
|
4993
5037
|
};
|
|
4994
|
-
const
|
|
4995
|
-
card:
|
|
4996
|
-
form:
|
|
5038
|
+
const ts = (e) => c("div", null, [e.test]), ls = {
|
|
5039
|
+
card: nl,
|
|
5040
|
+
form: G,
|
|
4997
5041
|
table: oe,
|
|
4998
|
-
test:
|
|
4999
|
-
row:
|
|
5000
|
-
col:
|
|
5001
|
-
},
|
|
5042
|
+
test: ts,
|
|
5043
|
+
row: ol,
|
|
5044
|
+
col: al
|
|
5045
|
+
}, ns = {
|
|
5002
5046
|
card: {
|
|
5003
5047
|
type: "card",
|
|
5004
5048
|
props: {
|
|
@@ -5019,7 +5063,7 @@ const Za = (e) => p("div", null, [e.test]), Qa = {
|
|
|
5019
5063
|
}
|
|
5020
5064
|
}
|
|
5021
5065
|
};
|
|
5022
|
-
function
|
|
5066
|
+
function os(e) {
|
|
5023
5067
|
const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
|
|
5024
5068
|
delete t.span;
|
|
5025
5069
|
let o = {
|
|
@@ -5031,9 +5075,9 @@ function Ya(e) {
|
|
|
5031
5075
|
type: l[a],
|
|
5032
5076
|
children: [o]
|
|
5033
5077
|
};
|
|
5034
|
-
return o.span = n,
|
|
5078
|
+
return o.span = n, Ve([o]);
|
|
5035
5079
|
}
|
|
5036
|
-
function
|
|
5080
|
+
function Ve(e) {
|
|
5037
5081
|
const t = {
|
|
5038
5082
|
type: "row",
|
|
5039
5083
|
props: {
|
|
@@ -5043,14 +5087,14 @@ function je(e) {
|
|
|
5043
5087
|
children: []
|
|
5044
5088
|
};
|
|
5045
5089
|
return e.forEach((l) => {
|
|
5046
|
-
var s,
|
|
5090
|
+
var s, p;
|
|
5047
5091
|
let n = Object.assign({}, l);
|
|
5048
5092
|
if (X((s = n.props) == null ? void 0 : s.style)) {
|
|
5049
|
-
let
|
|
5050
|
-
Object.keys((
|
|
5093
|
+
let u = "";
|
|
5094
|
+
Object.keys((p = n.props) == null ? void 0 : p.style).forEach((d) => {
|
|
5051
5095
|
var f;
|
|
5052
|
-
|
|
5053
|
-
}), n.props.style =
|
|
5096
|
+
u += d + ":" + ((f = n.props) == null ? void 0 : f.style[d]) + ";";
|
|
5097
|
+
}), n.props.style = u;
|
|
5054
5098
|
}
|
|
5055
5099
|
const o = {
|
|
5056
5100
|
span: n.span ?? 24,
|
|
@@ -5060,47 +5104,47 @@ function je(e) {
|
|
|
5060
5104
|
t.children.push({
|
|
5061
5105
|
type: "col",
|
|
5062
5106
|
props: o,
|
|
5063
|
-
children:
|
|
5107
|
+
children: os(n)
|
|
5064
5108
|
});
|
|
5065
5109
|
return;
|
|
5066
5110
|
}
|
|
5067
|
-
n =
|
|
5111
|
+
n = P({
|
|
5068
5112
|
props: {}
|
|
5069
|
-
},
|
|
5070
|
-
const a =
|
|
5071
|
-
a.length && (n.children =
|
|
5113
|
+
}, ns[n.type] || {}, n);
|
|
5114
|
+
const a = xt(n.children);
|
|
5115
|
+
a.length && (n.children = Ve(a)), t.children.push({
|
|
5072
5116
|
type: "col",
|
|
5073
5117
|
props: o,
|
|
5074
5118
|
children: [n]
|
|
5075
5119
|
});
|
|
5076
5120
|
}), [t];
|
|
5077
5121
|
}
|
|
5078
|
-
function
|
|
5079
|
-
return
|
|
5122
|
+
function xt(e) {
|
|
5123
|
+
return tt(e) ? e : X(e) ? [e] : [];
|
|
5080
5124
|
}
|
|
5081
5125
|
let Ee = {};
|
|
5082
|
-
const
|
|
5083
|
-
const t =
|
|
5084
|
-
return
|
|
5085
|
-
default: () =>
|
|
5126
|
+
const Et = (e) => {
|
|
5127
|
+
const t = ls[e.type] || Ee[e.type] || e.type;
|
|
5128
|
+
return Vt(t, e.props, {
|
|
5129
|
+
default: () => xt(e.children).map((l) => Et(l))
|
|
5086
5130
|
});
|
|
5087
|
-
},
|
|
5131
|
+
}, as = (e) => (Object.keys(Ee).length === 0 && (Ee = Nt().appContext.components), Ve(Object.values(e.schema)).map((l) => Et(l))), ss = {
|
|
5088
5132
|
__name: "custom",
|
|
5089
5133
|
setup(e) {
|
|
5090
|
-
const t =
|
|
5134
|
+
const t = A([]), l = (n, o) => (t.value = qt(n), n);
|
|
5091
5135
|
return (n, o) => (i(), m(se, { "schema-handler": l }, {
|
|
5092
5136
|
default: r(() => [
|
|
5093
|
-
|
|
5137
|
+
c(w(as), { schema: w(t) }, null, 8, ["schema"])
|
|
5094
5138
|
]),
|
|
5095
5139
|
_: 1
|
|
5096
5140
|
}));
|
|
5097
5141
|
}
|
|
5098
5142
|
};
|
|
5099
5143
|
let te = {};
|
|
5100
|
-
function
|
|
5144
|
+
function Bi(e) {
|
|
5101
5145
|
te = e;
|
|
5102
5146
|
}
|
|
5103
|
-
const
|
|
5147
|
+
const is = (e) => {
|
|
5104
5148
|
const t = (l) => {
|
|
5105
5149
|
const n = "./views/" + l + ".vue";
|
|
5106
5150
|
return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ge);
|
|
@@ -5108,34 +5152,34 @@ const ls = (e) => {
|
|
|
5108
5152
|
if (e.path === "#")
|
|
5109
5153
|
return ge;
|
|
5110
5154
|
switch (e.page_type) {
|
|
5111
|
-
case
|
|
5112
|
-
return
|
|
5113
|
-
case
|
|
5155
|
+
case D.list:
|
|
5156
|
+
return St;
|
|
5157
|
+
case D.form:
|
|
5114
5158
|
return xe;
|
|
5115
|
-
case
|
|
5116
|
-
case
|
|
5159
|
+
case D.custom:
|
|
5160
|
+
case D.localComp:
|
|
5117
5161
|
return t(e.view || "");
|
|
5118
|
-
case
|
|
5119
|
-
return
|
|
5120
|
-
case
|
|
5121
|
-
return
|
|
5122
|
-
case
|
|
5123
|
-
return
|
|
5162
|
+
case D.tree:
|
|
5163
|
+
return qa;
|
|
5164
|
+
case D.report:
|
|
5165
|
+
return es;
|
|
5166
|
+
case D.customSchema:
|
|
5167
|
+
return ss;
|
|
5124
5168
|
}
|
|
5125
5169
|
return ge;
|
|
5126
5170
|
};
|
|
5127
|
-
function
|
|
5171
|
+
function rs(e) {
|
|
5128
5172
|
let t = e.path;
|
|
5129
|
-
return e.type ===
|
|
5173
|
+
return e.type === M.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;
|
|
5130
5174
|
}
|
|
5131
|
-
function
|
|
5175
|
+
function cs(e) {
|
|
5132
5176
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5133
5177
|
}
|
|
5134
|
-
const
|
|
5135
|
-
const t = e.type !==
|
|
5136
|
-
path:
|
|
5137
|
-
name: e.id + "_" +
|
|
5138
|
-
component:
|
|
5178
|
+
const $t = (e) => {
|
|
5179
|
+
const t = e.type !== M.page, l = {
|
|
5180
|
+
path: rs(e),
|
|
5181
|
+
name: e.id + "_" + cs(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5182
|
+
component: is(e),
|
|
5139
5183
|
meta: {
|
|
5140
5184
|
id: e.id,
|
|
5141
5185
|
pageId: e.id,
|
|
@@ -5146,18 +5190,18 @@ const St = (e) => {
|
|
|
5146
5190
|
menuType: e.type,
|
|
5147
5191
|
keepAlive: !1
|
|
5148
5192
|
},
|
|
5149
|
-
children: e.children ? e.children.map((n) =>
|
|
5193
|
+
children: e.children ? e.children.map((n) => $t(n)) : []
|
|
5150
5194
|
};
|
|
5151
|
-
if (e.page_type ===
|
|
5195
|
+
if (e.page_type === D.entity) {
|
|
5152
5196
|
const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5153
5197
|
path: n,
|
|
5154
5198
|
name: e.name + "列表" + e.id,
|
|
5155
|
-
component:
|
|
5199
|
+
component: St,
|
|
5156
5200
|
meta: {
|
|
5157
5201
|
id: e.id + 99999,
|
|
5158
5202
|
title: "列表",
|
|
5159
5203
|
hidden: !0,
|
|
5160
|
-
menuType:
|
|
5204
|
+
menuType: M.hidden,
|
|
5161
5205
|
keepAlive: !1,
|
|
5162
5206
|
pageId: e.id,
|
|
5163
5207
|
path: e.path
|
|
@@ -5170,7 +5214,7 @@ const St = (e) => {
|
|
|
5170
5214
|
id: e.id + 99999 + 1,
|
|
5171
5215
|
title: "新建",
|
|
5172
5216
|
hidden: !0,
|
|
5173
|
-
menuType:
|
|
5217
|
+
menuType: M.hidden,
|
|
5174
5218
|
keepAlive: !1,
|
|
5175
5219
|
pageId: e.id,
|
|
5176
5220
|
path: e.path
|
|
@@ -5183,7 +5227,7 @@ const St = (e) => {
|
|
|
5183
5227
|
id: e.id + 99999 + 2,
|
|
5184
5228
|
title: "编辑",
|
|
5185
5229
|
hidden: !0,
|
|
5186
|
-
menuType:
|
|
5230
|
+
menuType: M.hidden,
|
|
5187
5231
|
keepAlive: !1,
|
|
5188
5232
|
pageId: e.id,
|
|
5189
5233
|
path: e.path
|
|
@@ -5195,8 +5239,8 @@ const St = (e) => {
|
|
|
5195
5239
|
let n = !0;
|
|
5196
5240
|
if (l.children.forEach((o) => {
|
|
5197
5241
|
o.meta && !o.meta.hidden && (n = !1);
|
|
5198
|
-
}), l.meta && (l.meta.menuType = t ?
|
|
5199
|
-
l.meta && (l.meta.menuType =
|
|
5242
|
+
}), l.meta && (l.meta.menuType = t ? M.dir : M.hidden), n) {
|
|
5243
|
+
l.meta && (l.meta.menuType = M.menu);
|
|
5200
5244
|
let o = "/";
|
|
5201
5245
|
for (let a = 0; a < l.children.length; a++)
|
|
5202
5246
|
if (l.children[a].path.indexOf("/:") === -1) {
|
|
@@ -5207,7 +5251,7 @@ const St = (e) => {
|
|
|
5207
5251
|
}
|
|
5208
5252
|
}
|
|
5209
5253
|
return l;
|
|
5210
|
-
},
|
|
5254
|
+
}, us = (e) => {
|
|
5211
5255
|
const t = [];
|
|
5212
5256
|
return e.forEach((l) => {
|
|
5213
5257
|
const n = {
|
|
@@ -5216,92 +5260,92 @@ const St = (e) => {
|
|
|
5216
5260
|
routes: []
|
|
5217
5261
|
};
|
|
5218
5262
|
l.routes.forEach((o) => {
|
|
5219
|
-
n.routes.push(
|
|
5263
|
+
n.routes.push($t(o));
|
|
5220
5264
|
}), t.push(n);
|
|
5221
5265
|
}), t;
|
|
5222
5266
|
};
|
|
5223
|
-
function
|
|
5267
|
+
function ps(e) {
|
|
5224
5268
|
e.beforeEach(async (t, l, n) => {
|
|
5225
|
-
if (
|
|
5269
|
+
if (gt().indexOf(t.path) !== -1) {
|
|
5226
5270
|
n();
|
|
5227
5271
|
return;
|
|
5228
5272
|
}
|
|
5229
|
-
if (
|
|
5273
|
+
if (ga()) {
|
|
5230
5274
|
n();
|
|
5231
5275
|
return;
|
|
5232
5276
|
}
|
|
5233
5277
|
await S.dispatch("user/info");
|
|
5234
|
-
const o = await S.dispatch("user/loadRemoteRoutes"), a =
|
|
5278
|
+
const o = await S.dispatch("user/loadRemoteRoutes"), a = us(o);
|
|
5235
5279
|
a.forEach((s) => {
|
|
5236
|
-
s.routes.forEach((
|
|
5280
|
+
s.routes.forEach((p) => {
|
|
5237
5281
|
e.addRoute({
|
|
5238
5282
|
path: "/",
|
|
5239
|
-
component:
|
|
5240
|
-
children: [
|
|
5283
|
+
component: _t,
|
|
5284
|
+
children: [p]
|
|
5241
5285
|
});
|
|
5242
5286
|
});
|
|
5243
5287
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
|
|
5244
5288
|
});
|
|
5245
5289
|
}
|
|
5246
|
-
function
|
|
5290
|
+
function ds(e) {
|
|
5247
5291
|
e.beforeEach(async (t, l, n) => {
|
|
5248
|
-
var
|
|
5292
|
+
var p;
|
|
5249
5293
|
const a = [S.state.settings.title || ""], s = t.matched.length;
|
|
5250
|
-
for (let
|
|
5251
|
-
const d = t.matched[
|
|
5252
|
-
(
|
|
5294
|
+
for (let u = s; u > s - 3; u--) {
|
|
5295
|
+
const d = t.matched[u - 1];
|
|
5296
|
+
(p = d == null ? void 0 : d.meta) != null && p.title && a.push(d.meta.title + "");
|
|
5253
5297
|
}
|
|
5254
5298
|
a.length > 1 && (document.title = a.reverse().join("-")), n();
|
|
5255
5299
|
}), e.afterEach(async (t, l, n) => {
|
|
5256
5300
|
Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
|
|
5257
5301
|
});
|
|
5258
5302
|
}
|
|
5259
|
-
function
|
|
5260
|
-
|
|
5303
|
+
function ms(e) {
|
|
5304
|
+
wa(e), va(e), ps(e), ds(e);
|
|
5261
5305
|
}
|
|
5262
|
-
|
|
5263
|
-
function
|
|
5306
|
+
ms(K);
|
|
5307
|
+
function fs() {
|
|
5264
5308
|
return S.state.user.token;
|
|
5265
5309
|
}
|
|
5266
|
-
function
|
|
5267
|
-
|
|
5310
|
+
function Ke(e) {
|
|
5311
|
+
tn({
|
|
5268
5312
|
message: e,
|
|
5269
5313
|
type: "error",
|
|
5270
5314
|
duration: 5 * 1e3,
|
|
5271
5315
|
grouping: !0
|
|
5272
5316
|
});
|
|
5273
5317
|
}
|
|
5274
|
-
const
|
|
5318
|
+
const hs = {
|
|
5275
5319
|
onFulfilled: function(e) {
|
|
5276
5320
|
var l;
|
|
5277
5321
|
e.headers = e.headers || {};
|
|
5278
|
-
const t =
|
|
5322
|
+
const t = fs();
|
|
5279
5323
|
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;
|
|
5280
5324
|
}
|
|
5281
|
-
},
|
|
5325
|
+
}, bs = {
|
|
5282
5326
|
onFulfilled(e) {
|
|
5283
|
-
var n, o, a, s,
|
|
5327
|
+
var n, o, a, s, p, u, d;
|
|
5284
5328
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5285
5329
|
const f = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5286
5330
|
if (e.data.code === 401) {
|
|
5287
|
-
|
|
5331
|
+
Fe.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5288
5332
|
showClose: !1,
|
|
5289
5333
|
confirmButtonText: "重新登录",
|
|
5290
5334
|
showCancelButton: !0,
|
|
5291
5335
|
cancelButtonText: "取消",
|
|
5292
|
-
callback: (
|
|
5293
|
-
|
|
5336
|
+
callback: (b) => {
|
|
5337
|
+
b === "confirm" && (dt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
5294
5338
|
}
|
|
5295
5339
|
});
|
|
5296
5340
|
return;
|
|
5297
5341
|
} else
|
|
5298
|
-
|
|
5342
|
+
Ke(f);
|
|
5299
5343
|
return Promise.reject(f);
|
|
5300
5344
|
}
|
|
5301
|
-
let l = (
|
|
5302
|
-
return l !== void 0 && (
|
|
5303
|
-
message: (d = (
|
|
5304
|
-
}),
|
|
5345
|
+
let l = (p = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : p._message_box;
|
|
5346
|
+
return l !== void 0 && (Ce(l) && (l = {
|
|
5347
|
+
message: (d = (u = e.data) == null ? void 0 : u.data) == null ? void 0 : d._message_box
|
|
5348
|
+
}), Fe({
|
|
5305
5349
|
title: "提示",
|
|
5306
5350
|
type: "success",
|
|
5307
5351
|
grouping: !0,
|
|
@@ -5310,29 +5354,29 @@ const ps = {
|
|
|
5310
5354
|
},
|
|
5311
5355
|
onRejected(e) {
|
|
5312
5356
|
var t;
|
|
5313
|
-
return
|
|
5357
|
+
return Te.isCancel(e) ? Promise.reject("") : (Ke(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
|
|
5314
5358
|
}
|
|
5315
|
-
},
|
|
5359
|
+
}, _s = [
|
|
5316
5360
|
{
|
|
5317
|
-
request:
|
|
5318
|
-
response:
|
|
5361
|
+
request: nn,
|
|
5362
|
+
response: on
|
|
5319
5363
|
},
|
|
5320
5364
|
{
|
|
5321
|
-
request:
|
|
5322
|
-
response:
|
|
5365
|
+
request: hs,
|
|
5366
|
+
response: bs
|
|
5323
5367
|
}
|
|
5324
5368
|
];
|
|
5325
|
-
function
|
|
5326
|
-
const t = me.axios || {}, l =
|
|
5369
|
+
function qe(e = {}) {
|
|
5370
|
+
const t = me.axios || {}, l = P(t, e || {}), n = Te.create({
|
|
5327
5371
|
...l
|
|
5328
5372
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5329
5373
|
});
|
|
5330
|
-
return
|
|
5374
|
+
return _s.forEach((o) => {
|
|
5331
5375
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
5332
5376
|
}), n;
|
|
5333
5377
|
}
|
|
5334
|
-
const
|
|
5335
|
-
const
|
|
5378
|
+
const ys = qe();
|
|
5379
|
+
const vs = {
|
|
5336
5380
|
beforeMount(e, t) {
|
|
5337
5381
|
e.clickOutsideEvent = function(l) {
|
|
5338
5382
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5341,88 +5385,88 @@ const fs = {
|
|
|
5341
5385
|
unmounted(e) {
|
|
5342
5386
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5343
5387
|
}
|
|
5344
|
-
}, W =
|
|
5388
|
+
}, W = Bl(), gs = {
|
|
5345
5389
|
mounted: (e, t) => {
|
|
5346
5390
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5347
5391
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
|
|
5348
5392
|
});
|
|
5349
5393
|
}
|
|
5350
|
-
},
|
|
5394
|
+
}, ks = {
|
|
5351
5395
|
mounted(e) {
|
|
5352
5396
|
}
|
|
5353
5397
|
};
|
|
5354
|
-
function
|
|
5398
|
+
function We(e, t) {
|
|
5355
5399
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5356
5400
|
for (; n; )
|
|
5357
5401
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5358
5402
|
return l;
|
|
5359
5403
|
}
|
|
5360
|
-
const
|
|
5404
|
+
const ws = {
|
|
5361
5405
|
mounted: (e, t) => {
|
|
5362
5406
|
if (e === null || !t.value.dev)
|
|
5363
5407
|
return;
|
|
5364
5408
|
let l = e;
|
|
5365
5409
|
if (t.value.parent)
|
|
5366
|
-
for (let
|
|
5410
|
+
for (let u = 0; u < t.value.parent; u++)
|
|
5367
5411
|
l.parentElement && (l = l.parentElement);
|
|
5368
5412
|
l.classList.add("devtool-hover");
|
|
5369
5413
|
const n = document.createElement("i");
|
|
5370
5414
|
n.className = "devtool-item-wrapper", l.onmouseover = () => {
|
|
5371
|
-
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top =
|
|
5415
|
+
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = We(l, "Top") - 15 + "px", n.style.left = We(l, "Left") - 15 + "px";
|
|
5372
5416
|
};
|
|
5373
5417
|
const o = document.createElement("span");
|
|
5374
5418
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
5375
5419
|
const a = document.createElement("i");
|
|
5376
|
-
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (
|
|
5377
|
-
W.emit("dev-action", { event:
|
|
5420
|
+
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (u) => {
|
|
5421
|
+
W.emit("dev-action", { event: u, data: { type: "edit", devId: t.value.devId } });
|
|
5378
5422
|
}, n.appendChild(o);
|
|
5379
5423
|
const s = document.createElement("span");
|
|
5380
5424
|
s.className = "dev-action-del", s.title = "删除";
|
|
5381
|
-
const
|
|
5382
|
-
|
|
5383
|
-
W.emit("dev-action", { event:
|
|
5425
|
+
const p = document.createElement("i");
|
|
5426
|
+
p.className = "iconfont ra-cut", s.appendChild(p), s.onclick = (u) => {
|
|
5427
|
+
W.emit("dev-action", { event: u, data: { type: "del", devId: t.value.devId } });
|
|
5384
5428
|
}, n.appendChild(s), l.insertBefore(n, l.firstChild);
|
|
5385
5429
|
}
|
|
5386
|
-
},
|
|
5430
|
+
}, Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5387
5431
|
__proto__: null,
|
|
5388
|
-
devtool:
|
|
5389
|
-
outClick:
|
|
5390
|
-
resize:
|
|
5391
|
-
rightClick:
|
|
5432
|
+
devtool: ws,
|
|
5433
|
+
outClick: vs,
|
|
5434
|
+
resize: ks,
|
|
5435
|
+
rightClick: gs
|
|
5392
5436
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5393
5437
|
let ce;
|
|
5394
|
-
function
|
|
5395
|
-
return e ?
|
|
5438
|
+
function Ai(e) {
|
|
5439
|
+
return e ? qe(P(me.axios, e)) : ce;
|
|
5396
5440
|
}
|
|
5397
|
-
function
|
|
5398
|
-
const t =
|
|
5441
|
+
function Pi(e) {
|
|
5442
|
+
const t = P(me, e), l = Ut(Ll), n = Os(t), o = t.plugins || [];
|
|
5399
5443
|
o.unshift(n), o.forEach((a) => {
|
|
5400
|
-
|
|
5401
|
-
}), t != null && t.mock &&
|
|
5402
|
-
"X-Token":
|
|
5444
|
+
Ts(l, a);
|
|
5445
|
+
}), t != null && t.mock && Gl(), ce = qe(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, dl(() => ({
|
|
5446
|
+
"X-Token": De()
|
|
5403
5447
|
})), K.isReady().then(() => l.mount("#app"));
|
|
5404
5448
|
}
|
|
5405
|
-
function
|
|
5449
|
+
function xs(e, t = {}) {
|
|
5406
5450
|
Object.keys(t).forEach((l) => {
|
|
5407
5451
|
e.component(l, t[l]);
|
|
5408
5452
|
});
|
|
5409
5453
|
}
|
|
5410
|
-
function
|
|
5454
|
+
function Es(e = []) {
|
|
5411
5455
|
e.forEach((t) => {
|
|
5412
5456
|
K.addRoute(t);
|
|
5413
5457
|
}), S.commit("user/setCustomRoutes", e);
|
|
5414
5458
|
}
|
|
5415
|
-
function
|
|
5459
|
+
function $s(e, t) {
|
|
5416
5460
|
t.forEach((l) => {
|
|
5417
5461
|
X(l) && (l = [l]), e.use(...l);
|
|
5418
5462
|
});
|
|
5419
5463
|
}
|
|
5420
|
-
function
|
|
5464
|
+
function Is(e, t = {}) {
|
|
5421
5465
|
Object.keys(t).forEach((l) => {
|
|
5422
5466
|
e.directive(l, t[l]);
|
|
5423
5467
|
});
|
|
5424
5468
|
}
|
|
5425
|
-
function
|
|
5469
|
+
function Cs(e = {}) {
|
|
5426
5470
|
const t = ["app", "settings", "user"];
|
|
5427
5471
|
Object.keys(e).forEach((l) => {
|
|
5428
5472
|
if (t.indexOf(l) !== -1) {
|
|
@@ -5432,39 +5476,40 @@ function Ss(e = {}) {
|
|
|
5432
5476
|
S.registerModule(l, e[l]);
|
|
5433
5477
|
});
|
|
5434
5478
|
}
|
|
5435
|
-
function
|
|
5436
|
-
|
|
5479
|
+
function Ts(e, t) {
|
|
5480
|
+
xs(e, t.components || {}), Es(t.routes || []), $s(e, t.use || []), Is(e, t.directives || {}), Cs(t.storeModules || {}), ut(t.mockApis || []);
|
|
5437
5481
|
}
|
|
5438
|
-
function
|
|
5482
|
+
function Os(e) {
|
|
5439
5483
|
var t;
|
|
5440
5484
|
return {
|
|
5441
|
-
components: { VIcon:
|
|
5442
|
-
directives:
|
|
5485
|
+
components: { VIcon: ml },
|
|
5486
|
+
directives: Ss,
|
|
5443
5487
|
use: [
|
|
5444
5488
|
S,
|
|
5445
5489
|
K,
|
|
5446
|
-
[
|
|
5490
|
+
[el, { locale: nt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5447
5491
|
]
|
|
5448
5492
|
};
|
|
5449
5493
|
}
|
|
5450
5494
|
export {
|
|
5451
|
-
|
|
5495
|
+
yt as BaseSso,
|
|
5452
5496
|
ge as Container,
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5497
|
+
Oi as DingTalk,
|
|
5498
|
+
Ti as Github,
|
|
5499
|
+
_t as Layout,
|
|
5500
|
+
M as MenuType,
|
|
5501
|
+
tn as Message,
|
|
5502
|
+
Fe as MessageBox,
|
|
5503
|
+
D as PageType,
|
|
5504
|
+
ea as allSso,
|
|
5505
|
+
Pi as createAdmin,
|
|
5461
5506
|
W as eventBus,
|
|
5462
|
-
|
|
5507
|
+
an as getCmp,
|
|
5463
5508
|
ce as http,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5509
|
+
qe as instance,
|
|
5510
|
+
Bi as regViews,
|
|
5511
|
+
Ci as setCmp,
|
|
5512
|
+
us as transRemoteModules,
|
|
5513
|
+
Ai as useHttp
|
|
5469
5514
|
};
|
|
5470
5515
|
//# sourceMappingURL=index.es.js.map
|