@okiss/oms 0.0.38 → 0.0.39
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 +741 -722
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var $t = Object.defineProperty;
|
|
2
2
|
var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
-
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as
|
|
5
|
-
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as
|
|
6
|
-
import
|
|
4
|
+
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as f, createVNode as u, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as S, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as G, createCommentVNode as x, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as W, guardReactiveProps as Y, unref as k, withDirectives as ie, vModelText as he, resolveDirective as Rt, onMounted as Pt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
|
|
5
|
+
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as be, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as $e, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
|
|
6
|
+
import _e from "mockjs";
|
|
7
7
|
import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
|
|
8
8
|
import tt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { createStore as Zt, useStore as lt, mapGetters as
|
|
9
|
+
import Ie from "axios";
|
|
10
|
+
import N from "js-cookie";
|
|
11
|
+
import { createStore as Zt, useStore as lt, mapGetters as Ce } from "vuex";
|
|
12
12
|
import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElCol as ll } from "element-plus";
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
|
-
import { useRoute as
|
|
16
|
-
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as
|
|
15
|
+
import { useRoute as pe, onBeforeRouteLeave as nl, useRouter as ol, createRouter as al, createWebHashHistory as sl, onBeforeRouteUpdate as il } from "vue-router";
|
|
16
|
+
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as ul, ElAside as pl, ElContainer as dl, ElDivider as nt, ElButton as ue, ElOption as Te, ElSelect as Oe, ElFormItem as ot, ElForm as at, ElCol as de, ElDrawer as st, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Be, ElTree as Sl, ElCard as Ae } from "element-plus/es";
|
|
17
17
|
import "element-plus/es/components/base/style/css";
|
|
18
18
|
import "element-plus/es/components/row/style/css";
|
|
19
19
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
33
|
import "element-plus/es/components/container/style/css";
|
|
34
34
|
import "element-plus/es/components/aside/style/css";
|
|
35
35
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import { VForm as J, VBtn as
|
|
36
|
+
import { VForm as J, VBtn as Re, JsonView as Pe, 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
39
|
import Cl from "mitt";
|
|
@@ -48,8 +48,9 @@ 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
50
|
import Ol from "vue3-markdown-it";
|
|
51
|
+
import { MD5 as Bl } from "crypto-js";
|
|
51
52
|
import "element-plus/es/components/message/style/css";
|
|
52
|
-
import
|
|
53
|
+
import ke from "nprogress";
|
|
53
54
|
import "nprogress/nprogress.css";
|
|
54
55
|
String.prototype.format || (String.prototype.format = function() {
|
|
55
56
|
const e = arguments;
|
|
@@ -57,26 +58,26 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
57
58
|
return typeof e[l] < "u" ? e[l] : t;
|
|
58
59
|
});
|
|
59
60
|
});
|
|
60
|
-
const
|
|
61
|
+
const Al = /* @__PURE__ */ q({
|
|
61
62
|
__name: "App",
|
|
62
63
|
setup(e) {
|
|
63
64
|
var t, l, n, o;
|
|
64
65
|
return ze(() => {
|
|
65
|
-
const
|
|
66
|
-
|
|
66
|
+
const a = document.getElementById("preloader");
|
|
67
|
+
a !== null && (document.body.removeChild(a), Vt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), qt(`.iconfont {
|
|
67
68
|
font-size: 19px;
|
|
68
69
|
font-style: normal;
|
|
69
70
|
-webkit-font-smoothing: antialiased;
|
|
70
71
|
font-family: iconfont !important;
|
|
71
72
|
}`));
|
|
72
|
-
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ct("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (
|
|
73
|
+
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ct("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
|
|
73
74
|
const c = v("router-view");
|
|
74
|
-
return i(),
|
|
75
|
+
return i(), f(c);
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
78
|
});
|
|
78
79
|
var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
|
|
79
|
-
const
|
|
80
|
+
const Rl = {
|
|
80
81
|
saveApi: "/save",
|
|
81
82
|
afterSubmit: "",
|
|
82
83
|
afterReset: "goback",
|
|
@@ -465,7 +466,7 @@ const Al = {
|
|
|
465
466
|
type: "success"
|
|
466
467
|
}
|
|
467
468
|
}
|
|
468
|
-
],
|
|
469
|
+
], Pl = {
|
|
469
470
|
exportAble: !0,
|
|
470
471
|
filter: [
|
|
471
472
|
{
|
|
@@ -574,7 +575,7 @@ const Al = {
|
|
|
574
575
|
],
|
|
575
576
|
selectedNotice: "当前共勾选: {selectedCount} 条",
|
|
576
577
|
listApi: "/user/list"
|
|
577
|
-
},
|
|
578
|
+
}, Ll = {
|
|
578
579
|
code: 0,
|
|
579
580
|
data: {
|
|
580
581
|
"list|0-100": [
|
|
@@ -595,7 +596,7 @@ const Al = {
|
|
|
595
596
|
"page|1-5": 2
|
|
596
597
|
}
|
|
597
598
|
}
|
|
598
|
-
},
|
|
599
|
+
}, Ml = {
|
|
599
600
|
afterSubmit: "",
|
|
600
601
|
afterReset: "goback",
|
|
601
602
|
formItems: [
|
|
@@ -632,7 +633,7 @@ const Al = {
|
|
|
632
633
|
label: "span"
|
|
633
634
|
}
|
|
634
635
|
]
|
|
635
|
-
},
|
|
636
|
+
}, Dl = {
|
|
636
637
|
afterSubmit: "",
|
|
637
638
|
afterReset: "",
|
|
638
639
|
formItems: [
|
|
@@ -671,7 +672,7 @@ const Al = {
|
|
|
671
672
|
label: "span"
|
|
672
673
|
}
|
|
673
674
|
]
|
|
674
|
-
},
|
|
675
|
+
}, jl = { form: Rl, table: Pl, listMock: Ll, layoutForm: Ml, layoutSection: Dl }, Nl = [
|
|
675
676
|
{
|
|
676
677
|
method: ee.POST,
|
|
677
678
|
url: "/login",
|
|
@@ -715,11 +716,11 @@ const Al = {
|
|
|
715
716
|
{
|
|
716
717
|
url: "/user/list",
|
|
717
718
|
method: ee.GET,
|
|
718
|
-
response: (e) =>
|
|
719
|
+
response: (e) => jl.listMock
|
|
719
720
|
}
|
|
720
|
-
],
|
|
721
|
-
...
|
|
722
|
-
],
|
|
721
|
+
], Vl = [
|
|
722
|
+
...Nl
|
|
723
|
+
], ql = {
|
|
723
724
|
baseURL: "/api",
|
|
724
725
|
withCredentials: !0,
|
|
725
726
|
timeout: 5e3,
|
|
@@ -749,49 +750,49 @@ const Al = {
|
|
|
749
750
|
pre: "green"
|
|
750
751
|
},
|
|
751
752
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
|
|
752
|
-
},
|
|
753
|
-
axios:
|
|
753
|
+
}, me = {
|
|
754
|
+
axios: ql,
|
|
754
755
|
settings: it,
|
|
755
756
|
plugins: [],
|
|
756
757
|
mock: !1
|
|
757
|
-
},
|
|
758
|
+
}, we = {};
|
|
758
759
|
function rt(e) {
|
|
759
760
|
e.forEach((t) => {
|
|
760
761
|
const l = ct(t);
|
|
761
|
-
|
|
762
|
+
we[`${t.method}::${l}`] = t;
|
|
762
763
|
});
|
|
763
764
|
}
|
|
764
|
-
rt(
|
|
765
|
+
rt(Vl);
|
|
765
766
|
function ct(e) {
|
|
766
767
|
var n;
|
|
767
|
-
let t = e.url, l = e.baseURL || ((n =
|
|
768
|
+
let t = e.url, l = e.baseURL || ((n = me.axios) == null ? void 0 : n.baseURL);
|
|
768
769
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
769
770
|
}
|
|
770
|
-
function
|
|
771
|
-
Object.keys(
|
|
772
|
-
const t =
|
|
773
|
-
|
|
774
|
-
const { url: o, type:
|
|
775
|
-
return Ht(o, { type:
|
|
771
|
+
function Ul() {
|
|
772
|
+
Object.keys(we).forEach((e) => {
|
|
773
|
+
const t = we[e], l = ct(t);
|
|
774
|
+
_e.mock(l, t.method, function(n) {
|
|
775
|
+
const { url: o, type: a, body: s } = n, c = Ut(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: p }), m = _e.mock(d);
|
|
776
|
+
return Ht(o, { type: a, query: c, data: p, response: m }), _e.mock(m);
|
|
776
777
|
});
|
|
777
778
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
778
779
|
}
|
|
779
|
-
const
|
|
780
|
-
function
|
|
781
|
-
return
|
|
780
|
+
const Le = "oms:token";
|
|
781
|
+
function Me() {
|
|
782
|
+
return N.get(Le) || "";
|
|
782
783
|
}
|
|
783
|
-
function
|
|
784
|
+
function Hl(e) {
|
|
784
785
|
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
|
|
785
|
-
return
|
|
786
|
+
return N.set(Le, e, { expires: t });
|
|
786
787
|
}
|
|
787
788
|
function ut() {
|
|
788
|
-
return
|
|
789
|
+
return N.remove(Le);
|
|
789
790
|
}
|
|
790
|
-
const
|
|
791
|
+
const Fl = {
|
|
791
792
|
name: "",
|
|
792
793
|
nickname: "",
|
|
793
794
|
avatar: "",
|
|
794
|
-
token:
|
|
795
|
+
token: Me(),
|
|
795
796
|
customRouter: [],
|
|
796
797
|
remoteRouter: [],
|
|
797
798
|
menuRoutes: [],
|
|
@@ -800,12 +801,12 @@ const Hl = {
|
|
|
800
801
|
roleIds: [],
|
|
801
802
|
path: "",
|
|
802
803
|
env: ""
|
|
803
|
-
},
|
|
804
|
+
}, Gl = {
|
|
804
805
|
namespaced: !0,
|
|
805
|
-
state:
|
|
806
|
+
state: Fl,
|
|
806
807
|
mutations: {
|
|
807
808
|
updateToken(e, t) {
|
|
808
|
-
e.token = t,
|
|
809
|
+
e.token = t, Hl(t);
|
|
809
810
|
},
|
|
810
811
|
removeToken(e) {
|
|
811
812
|
e.token = "", ut();
|
|
@@ -824,7 +825,7 @@ const Hl = {
|
|
|
824
825
|
name: "",
|
|
825
826
|
nickname: "",
|
|
826
827
|
avatar: "",
|
|
827
|
-
token:
|
|
828
|
+
token: Me(),
|
|
828
829
|
customRouter: [],
|
|
829
830
|
remoteRouter: [],
|
|
830
831
|
menuRoutes: [],
|
|
@@ -842,17 +843,17 @@ const Hl = {
|
|
|
842
843
|
state: t,
|
|
843
844
|
rootState: l
|
|
844
845
|
}, n) {
|
|
845
|
-
return new Promise((o,
|
|
846
|
+
return new Promise((o, a) => {
|
|
846
847
|
l.http ? l.http.request({
|
|
847
848
|
url: "/user/login",
|
|
848
849
|
method: "POST",
|
|
849
850
|
data: n
|
|
850
|
-
}).then((
|
|
851
|
+
}).then((s) => {
|
|
851
852
|
var c;
|
|
852
|
-
e("updateToken", (c =
|
|
853
|
-
}).catch((
|
|
854
|
-
s
|
|
855
|
-
}) :
|
|
853
|
+
e("updateToken", (c = s.data) == null ? void 0 : c.token), o(!0);
|
|
854
|
+
}).catch((s) => {
|
|
855
|
+
a(s);
|
|
856
|
+
}) : a("http client not init");
|
|
856
857
|
});
|
|
857
858
|
},
|
|
858
859
|
logout({ commit: e }) {
|
|
@@ -864,9 +865,9 @@ const Hl = {
|
|
|
864
865
|
url: "/user/info",
|
|
865
866
|
method: "GET"
|
|
866
867
|
}).then((o) => {
|
|
867
|
-
var
|
|
868
|
-
const
|
|
869
|
-
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (p = o.data) == null ? void 0 : p.nickname }), e("updateState", { key: "roleIds", value:
|
|
868
|
+
var s, c, p, d, m;
|
|
869
|
+
const a = ((s = o.data) == null ? void 0 : s.role_ids) || [];
|
|
870
|
+
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (p = o.data) == null ? void 0 : p.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (d = o.data) == null ? void 0 : d.env }), !N.get("username") && N.set("username", (m = o.data) == null ? void 0 : m.name), l(!0);
|
|
870
871
|
}).catch((o) => {
|
|
871
872
|
n(o);
|
|
872
873
|
}) : n("http client not init");
|
|
@@ -878,21 +879,21 @@ const Hl = {
|
|
|
878
879
|
(o = t.http) == null || o.request({
|
|
879
880
|
url: "/user/routes",
|
|
880
881
|
method: "get"
|
|
881
|
-
}).then((
|
|
882
|
-
if (
|
|
883
|
-
const
|
|
884
|
-
l(
|
|
882
|
+
}).then((a) => {
|
|
883
|
+
if (a.code === 0) {
|
|
884
|
+
const s = a.data || [];
|
|
885
|
+
l(s);
|
|
885
886
|
} else
|
|
886
887
|
n("error");
|
|
887
|
-
}).catch((
|
|
888
|
-
console.log(
|
|
888
|
+
}).catch((a) => {
|
|
889
|
+
console.log(a), n(a);
|
|
889
890
|
});
|
|
890
891
|
});
|
|
891
892
|
}
|
|
892
893
|
}
|
|
893
|
-
},
|
|
894
|
+
}, Jl = y(it), zl = {
|
|
894
895
|
namespaced: !0,
|
|
895
|
-
state:
|
|
896
|
+
state: Jl,
|
|
896
897
|
mutations: {
|
|
897
898
|
updateSettings(e, t) {
|
|
898
899
|
e = A(e, t);
|
|
@@ -903,24 +904,24 @@ const Hl = {
|
|
|
903
904
|
e("updateSettings", l);
|
|
904
905
|
}
|
|
905
906
|
}
|
|
906
|
-
},
|
|
907
|
+
}, Kl = {
|
|
907
908
|
sidebar: {
|
|
908
|
-
opened:
|
|
909
|
+
opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
|
|
909
910
|
withoutAnimation: !1
|
|
910
911
|
},
|
|
911
912
|
device: "desktop",
|
|
912
913
|
pages: {},
|
|
913
914
|
currentRouteMeta: {},
|
|
914
915
|
builderSchema: {}
|
|
915
|
-
},
|
|
916
|
+
}, Wl = {
|
|
916
917
|
namespaced: !0,
|
|
917
|
-
state:
|
|
918
|
+
state: Kl,
|
|
918
919
|
mutations: {
|
|
919
920
|
TOGGLE_SIDEBAR: (e) => {
|
|
920
|
-
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ?
|
|
921
|
+
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
|
|
921
922
|
},
|
|
922
923
|
CLOSE_SIDEBAR: (e, t) => {
|
|
923
|
-
|
|
924
|
+
N.set("sidebarStatus", "0"), e.sidebar.opened = !1, e.sidebar.withoutAnimation = t;
|
|
924
925
|
},
|
|
925
926
|
TOGGLE_DEVICE: (e, t) => {
|
|
926
927
|
e.device = t;
|
|
@@ -955,12 +956,12 @@ const Hl = {
|
|
|
955
956
|
e("SET_BUILDER_SCHEMA", t);
|
|
956
957
|
}
|
|
957
958
|
}
|
|
958
|
-
},
|
|
959
|
+
}, Zl = {
|
|
959
960
|
currentCellItem: {}
|
|
960
961
|
// form/sub-form 当前单元格编辑数据
|
|
961
|
-
},
|
|
962
|
+
}, Ql = {
|
|
962
963
|
namespaced: !0,
|
|
963
|
-
state:
|
|
964
|
+
state: Zl,
|
|
964
965
|
mutations: {
|
|
965
966
|
SET_CURRENT_CELLITEM: (e, t) => {
|
|
966
967
|
e.currentCellItem = t;
|
|
@@ -998,12 +999,12 @@ const Hl = {
|
|
|
998
999
|
}
|
|
999
1000
|
},
|
|
1000
1001
|
modules: {
|
|
1001
|
-
user:
|
|
1002
|
-
settings:
|
|
1003
|
-
app:
|
|
1004
|
-
builderSchema:
|
|
1002
|
+
user: Gl,
|
|
1003
|
+
settings: zl,
|
|
1004
|
+
app: Wl,
|
|
1005
|
+
builderSchema: Ql
|
|
1005
1006
|
}
|
|
1006
|
-
}),
|
|
1007
|
+
}), Xl = Xt, Ue = Yt, Yl = Ie.CancelToken, re = {
|
|
1007
1008
|
taskList: {},
|
|
1008
1009
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1009
1010
|
uniqueId(e) {
|
|
@@ -1039,36 +1040,36 @@ const Hl = {
|
|
|
1039
1040
|
const t = this.uniqueId(e);
|
|
1040
1041
|
return this.cacheList.delete(t);
|
|
1041
1042
|
}
|
|
1042
|
-
},
|
|
1043
|
+
}, en = {
|
|
1043
1044
|
onFulfilled: function(e) {
|
|
1044
|
-
return e.cacheEnable === !1 || (
|
|
1045
|
-
|
|
1045
|
+
return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new Yl((t) => {
|
|
1046
|
+
re.addTask(e, t);
|
|
1046
1047
|
})), e;
|
|
1047
1048
|
},
|
|
1048
1049
|
onRejected(e) {
|
|
1049
1050
|
return Promise.reject(e);
|
|
1050
1051
|
}
|
|
1051
|
-
},
|
|
1052
|
+
}, tn = {
|
|
1052
1053
|
onFulfilled: function(e) {
|
|
1053
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
1054
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && re.addCache(e.config, e.data), e;
|
|
1054
1055
|
},
|
|
1055
1056
|
onRejected(e) {
|
|
1056
1057
|
return Promise.reject(e);
|
|
1057
1058
|
}
|
|
1058
1059
|
}, pt = {};
|
|
1059
|
-
function
|
|
1060
|
+
function Si(e, t) {
|
|
1060
1061
|
pt[e] = t;
|
|
1061
1062
|
}
|
|
1062
|
-
function
|
|
1063
|
+
function ln(e) {
|
|
1063
1064
|
return pt[e];
|
|
1064
1065
|
}
|
|
1065
|
-
const
|
|
1066
|
+
const nn = /* @__PURE__ */ q({
|
|
1066
1067
|
name: "Dashboard",
|
|
1067
1068
|
setup() {
|
|
1068
|
-
const e =
|
|
1069
|
+
const e = ln("test");
|
|
1069
1070
|
if (e)
|
|
1070
1071
|
return () => u(e, null, null);
|
|
1071
|
-
const t = lt(), l =
|
|
1072
|
+
const t = lt(), l = j(() => t.getters.name);
|
|
1072
1073
|
return () => u("div", {
|
|
1073
1074
|
class: "dashboard-container"
|
|
1074
1075
|
}, [u("div", {
|
|
@@ -1081,8 +1082,8 @@ const $ = (e, t) => {
|
|
|
1081
1082
|
for (const [n, o] of t)
|
|
1082
1083
|
l[n] = o;
|
|
1083
1084
|
return l;
|
|
1084
|
-
},
|
|
1085
|
-
const
|
|
1085
|
+
}, on = /* @__PURE__ */ $(nn, [["__scopeId", "data-v-10e6b4b6"]]);
|
|
1086
|
+
const an = {
|
|
1086
1087
|
data() {
|
|
1087
1088
|
return {
|
|
1088
1089
|
levelList: null
|
|
@@ -1128,24 +1129,24 @@ const on = {
|
|
|
1128
1129
|
}, sn = {
|
|
1129
1130
|
key: 0,
|
|
1130
1131
|
class: "no-redirect"
|
|
1131
|
-
},
|
|
1132
|
-
function
|
|
1133
|
-
const
|
|
1134
|
-
return i(),
|
|
1132
|
+
}, rn = ["onClick"];
|
|
1133
|
+
function cn(e, t, l, n, o, a) {
|
|
1134
|
+
const s = rl, c = cl;
|
|
1135
|
+
return i(), f(c, {
|
|
1135
1136
|
class: "app-breadcrumb",
|
|
1136
1137
|
separator: "/"
|
|
1137
1138
|
}, {
|
|
1138
1139
|
default: r(() => [
|
|
1139
1140
|
u(Tt, { name: "breadcrumb" }, {
|
|
1140
1141
|
default: r(() => [
|
|
1141
|
-
(i(!0), h(
|
|
1142
|
+
(i(!0), h(S, null, B(o.levelList, (p, d) => (i(), f(s, {
|
|
1142
1143
|
key: p.path
|
|
1143
1144
|
}, {
|
|
1144
1145
|
default: r(() => [
|
|
1145
1146
|
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", sn, O(p.meta.title), 1)) : (i(), h("a", {
|
|
1146
1147
|
key: 1,
|
|
1147
|
-
onClick: (
|
|
1148
|
-
}, O(p.meta.title), 9,
|
|
1148
|
+
onClick: (m) => a.handleLink(p)
|
|
1149
|
+
}, O(p.meta.title), 9, rn))
|
|
1149
1150
|
]),
|
|
1150
1151
|
_: 2
|
|
1151
1152
|
}, 1024))), 128))
|
|
@@ -1156,7 +1157,7 @@ function rn(e, t, l, n, o, s) {
|
|
|
1156
1157
|
_: 1
|
|
1157
1158
|
});
|
|
1158
1159
|
}
|
|
1159
|
-
const
|
|
1160
|
+
const un = /* @__PURE__ */ $(an, [["render", cn], ["__scopeId", "data-v-fa74804e"]]), pn = {
|
|
1160
1161
|
name: "Hamburger",
|
|
1161
1162
|
props: {
|
|
1162
1163
|
isActive: {
|
|
@@ -1171,23 +1172,23 @@ const cn = /* @__PURE__ */ $(on, [["render", rn], ["__scopeId", "data-v-fa74804e
|
|
|
1171
1172
|
}
|
|
1172
1173
|
}
|
|
1173
1174
|
};
|
|
1174
|
-
function
|
|
1175
|
-
const
|
|
1175
|
+
function dn(e, t, l, n, o, a) {
|
|
1176
|
+
const s = v("v-icon");
|
|
1176
1177
|
return i(), h("div", {
|
|
1177
1178
|
style: { padding: "0 15px" },
|
|
1178
|
-
onClick: t[0] || (t[0] = (...c) =>
|
|
1179
|
+
onClick: t[0] || (t[0] = (...c) => a.toggleClick && a.toggleClick(...c))
|
|
1179
1180
|
}, [
|
|
1180
|
-
u(
|
|
1181
|
-
class:
|
|
1181
|
+
u(s, {
|
|
1182
|
+
class: H({ "is-active": l.isActive }),
|
|
1182
1183
|
name: "ra-leftalignment"
|
|
1183
1184
|
}, null, 8, ["class"])
|
|
1184
1185
|
]);
|
|
1185
1186
|
}
|
|
1186
|
-
const
|
|
1187
|
-
const
|
|
1188
|
-
function
|
|
1189
|
-
const l =
|
|
1190
|
-
return i(),
|
|
1187
|
+
const mn = /* @__PURE__ */ $(pn, [["render", dn]]);
|
|
1188
|
+
const fn = {};
|
|
1189
|
+
function hn(e, t) {
|
|
1190
|
+
const l = ae, n = ul, o = pl, a = dl;
|
|
1191
|
+
return i(), f(a, { style: { width: "100%", height: "100%" } }, {
|
|
1191
1192
|
default: r(() => [
|
|
1192
1193
|
u(l, { class: "aside" }, {
|
|
1193
1194
|
default: r(() => [
|
|
@@ -1218,7 +1219,7 @@ function fn(e, t) {
|
|
|
1218
1219
|
_: 3
|
|
1219
1220
|
});
|
|
1220
1221
|
}
|
|
1221
|
-
const dt = /* @__PURE__ */ $(
|
|
1222
|
+
const dt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
|
|
1222
1223
|
type: "input",
|
|
1223
1224
|
name: "文本框",
|
|
1224
1225
|
default: {
|
|
@@ -1286,7 +1287,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1286
1287
|
}
|
|
1287
1288
|
}
|
|
1288
1289
|
]
|
|
1289
|
-
},
|
|
1290
|
+
}, _n = {
|
|
1290
1291
|
type: "number",
|
|
1291
1292
|
name: "数字",
|
|
1292
1293
|
default: {
|
|
@@ -1328,7 +1329,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1328
1329
|
}
|
|
1329
1330
|
}
|
|
1330
1331
|
]
|
|
1331
|
-
},
|
|
1332
|
+
}, yn = {
|
|
1332
1333
|
type: "number-range",
|
|
1333
1334
|
name: "数字区间",
|
|
1334
1335
|
default: {
|
|
@@ -1369,7 +1370,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1369
1370
|
}
|
|
1370
1371
|
}
|
|
1371
1372
|
]
|
|
1372
|
-
},
|
|
1373
|
+
}, vn = {
|
|
1373
1374
|
type: "select",
|
|
1374
1375
|
name: "下拉框",
|
|
1375
1376
|
default: {
|
|
@@ -1475,7 +1476,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1475
1476
|
const t = y(e);
|
|
1476
1477
|
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;
|
|
1477
1478
|
}
|
|
1478
|
-
},
|
|
1479
|
+
}, gn = {
|
|
1479
1480
|
type: "radio",
|
|
1480
1481
|
name: "单选框",
|
|
1481
1482
|
default: {
|
|
@@ -1521,7 +1522,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1521
1522
|
label: "默认值"
|
|
1522
1523
|
}
|
|
1523
1524
|
]
|
|
1524
|
-
},
|
|
1525
|
+
}, kn = {
|
|
1525
1526
|
type: "switch",
|
|
1526
1527
|
name: "开关",
|
|
1527
1528
|
default: {
|
|
@@ -1577,7 +1578,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1577
1578
|
}
|
|
1578
1579
|
}
|
|
1579
1580
|
]
|
|
1580
|
-
},
|
|
1581
|
+
}, wn = {
|
|
1581
1582
|
type: "code",
|
|
1582
1583
|
name: "Code",
|
|
1583
1584
|
default: {
|
|
@@ -1597,7 +1598,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1597
1598
|
label: "字段key"
|
|
1598
1599
|
}
|
|
1599
1600
|
]
|
|
1600
|
-
},
|
|
1601
|
+
}, Sn = {
|
|
1601
1602
|
type: "json",
|
|
1602
1603
|
name: "json",
|
|
1603
1604
|
default: {
|
|
@@ -1617,7 +1618,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1617
1618
|
label: "字段key"
|
|
1618
1619
|
}
|
|
1619
1620
|
]
|
|
1620
|
-
},
|
|
1621
|
+
}, xn = {
|
|
1621
1622
|
type: "upload",
|
|
1622
1623
|
name: "上传",
|
|
1623
1624
|
default: {
|
|
@@ -1637,7 +1638,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1637
1638
|
label: "字段key"
|
|
1638
1639
|
}
|
|
1639
1640
|
]
|
|
1640
|
-
},
|
|
1641
|
+
}, En = {
|
|
1641
1642
|
type: "template",
|
|
1642
1643
|
name: "自定义组件",
|
|
1643
1644
|
default: {
|
|
@@ -1657,7 +1658,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1657
1658
|
label: "字段key"
|
|
1658
1659
|
}
|
|
1659
1660
|
]
|
|
1660
|
-
},
|
|
1661
|
+
}, $n = {
|
|
1661
1662
|
type: "icon-select",
|
|
1662
1663
|
name: "图标选择器",
|
|
1663
1664
|
default: {
|
|
@@ -1677,7 +1678,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1677
1678
|
label: "字段key"
|
|
1678
1679
|
}
|
|
1679
1680
|
]
|
|
1680
|
-
},
|
|
1681
|
+
}, In = {
|
|
1681
1682
|
type: "sub-form",
|
|
1682
1683
|
name: "子表单",
|
|
1683
1684
|
default: {
|
|
@@ -1745,7 +1746,7 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1745
1746
|
}
|
|
1746
1747
|
}
|
|
1747
1748
|
]
|
|
1748
|
-
},
|
|
1749
|
+
}, Cn = {
|
|
1749
1750
|
type: "checkbox",
|
|
1750
1751
|
name: "复选框",
|
|
1751
1752
|
default: {
|
|
@@ -1795,20 +1796,20 @@ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b
|
|
|
1795
1796
|
function R(e) {
|
|
1796
1797
|
mt[e.type] = e;
|
|
1797
1798
|
}
|
|
1798
|
-
R(hn);
|
|
1799
|
-
R(yn);
|
|
1800
1799
|
R(bn);
|
|
1801
|
-
R(_n);
|
|
1802
|
-
R(gn);
|
|
1803
|
-
R($n);
|
|
1804
1800
|
R(vn);
|
|
1805
|
-
R(
|
|
1801
|
+
R(_n);
|
|
1802
|
+
R(yn);
|
|
1806
1803
|
R(kn);
|
|
1804
|
+
R(In);
|
|
1805
|
+
R(gn);
|
|
1806
|
+
R(Cn);
|
|
1807
1807
|
R(wn);
|
|
1808
1808
|
R(Sn);
|
|
1809
|
-
R(En);
|
|
1810
1809
|
R(xn);
|
|
1811
|
-
|
|
1810
|
+
R($n);
|
|
1811
|
+
R(En);
|
|
1812
|
+
const Se = mt, Tn = {
|
|
1812
1813
|
options: {
|
|
1813
1814
|
labelPosition: "top",
|
|
1814
1815
|
submitButton: !1,
|
|
@@ -1907,15 +1908,15 @@ const we = mt, Cn = {
|
|
|
1907
1908
|
}
|
|
1908
1909
|
]
|
|
1909
1910
|
};
|
|
1910
|
-
const
|
|
1911
|
+
const ye = {
|
|
1911
1912
|
labelPosition: "top",
|
|
1912
1913
|
submitButton: !1,
|
|
1913
1914
|
cancelButton: !1
|
|
1914
|
-
},
|
|
1915
|
-
Object.keys(
|
|
1916
|
-
|
|
1915
|
+
}, De = [];
|
|
1916
|
+
Object.keys(Se).forEach((e) => {
|
|
1917
|
+
De.push({ value: e, label: Se[e].name });
|
|
1917
1918
|
});
|
|
1918
|
-
const
|
|
1919
|
+
const On = {
|
|
1919
1920
|
options: {
|
|
1920
1921
|
submitButton: !1,
|
|
1921
1922
|
cancelButton: !1
|
|
@@ -1936,7 +1937,7 @@ const Tn = {
|
|
|
1936
1937
|
type: "select",
|
|
1937
1938
|
field: "type",
|
|
1938
1939
|
label: "类型",
|
|
1939
|
-
options: y(
|
|
1940
|
+
options: y(De)
|
|
1940
1941
|
},
|
|
1941
1942
|
{
|
|
1942
1943
|
type: "input",
|
|
@@ -1947,8 +1948,8 @@ const Tn = {
|
|
|
1947
1948
|
}
|
|
1948
1949
|
}
|
|
1949
1950
|
]
|
|
1950
|
-
},
|
|
1951
|
-
components: { DevLayout: dt, VForm: J, VButton:
|
|
1951
|
+
}, Bn = {
|
|
1952
|
+
components: { DevLayout: dt, VForm: J, VButton: Re, JsonView: Pe },
|
|
1952
1953
|
props: {
|
|
1953
1954
|
schema: {
|
|
1954
1955
|
type: Object,
|
|
@@ -1959,8 +1960,8 @@ const Tn = {
|
|
|
1959
1960
|
data() {
|
|
1960
1961
|
return {
|
|
1961
1962
|
sqlOptions: {},
|
|
1962
|
-
sqlSchema:
|
|
1963
|
-
baseSchema:
|
|
1963
|
+
sqlSchema: On,
|
|
1964
|
+
baseSchema: Tn,
|
|
1964
1965
|
activeTab: "base",
|
|
1965
1966
|
builderSchema: Object.assign(
|
|
1966
1967
|
{},
|
|
@@ -1980,12 +1981,12 @@ const Tn = {
|
|
|
1980
1981
|
ctrlSchema: {},
|
|
1981
1982
|
ctrlName: "",
|
|
1982
1983
|
activeIndex: void 0,
|
|
1983
|
-
ctrlMap:
|
|
1984
|
+
ctrlMap: Se,
|
|
1984
1985
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
1985
1986
|
tableStruct: "",
|
|
1986
1987
|
activeName: "1",
|
|
1987
1988
|
currentCtrlType: "input",
|
|
1988
|
-
types: y(
|
|
1989
|
+
types: y(De)
|
|
1989
1990
|
};
|
|
1990
1991
|
},
|
|
1991
1992
|
computed: {
|
|
@@ -2014,8 +2015,8 @@ const Tn = {
|
|
|
2014
2015
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2015
2016
|
if (o && Object.keys(o).length > 0) {
|
|
2016
2017
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2017
|
-
const [
|
|
2018
|
-
this.builderSchema[
|
|
2018
|
+
const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2019
|
+
this.builderSchema[s][c] = { ...o };
|
|
2019
2020
|
} else
|
|
2020
2021
|
this.builderSchema[this.activeIndex] = o;
|
|
2021
2022
|
this.key++;
|
|
@@ -2026,7 +2027,7 @@ const Tn = {
|
|
|
2026
2027
|
handler(e) {
|
|
2027
2028
|
const t = this.ctrlMap[e];
|
|
2028
2029
|
this.ctrlSchema = y({
|
|
2029
|
-
options: y(
|
|
2030
|
+
options: y(ye),
|
|
2030
2031
|
formItems: y(t.builder)
|
|
2031
2032
|
});
|
|
2032
2033
|
const l = ne(this.builderSchema, this.activeIndex);
|
|
@@ -2051,7 +2052,7 @@ const Tn = {
|
|
|
2051
2052
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
2052
2053
|
const l = this.ctrlMap[e];
|
|
2053
2054
|
this.activeCtrl = l, this.builderSchema[t].push(y(l.default)), this.ctrlSchema = y({
|
|
2054
|
-
options: y(
|
|
2055
|
+
options: y(ye),
|
|
2055
2056
|
formItems: y(l.builder)
|
|
2056
2057
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2057
2058
|
},
|
|
@@ -2067,7 +2068,7 @@ const Tn = {
|
|
|
2067
2068
|
return;
|
|
2068
2069
|
}
|
|
2069
2070
|
this.currentCtrlType = n, this.ctrlOptions = l, this.ctrlSchema = y({
|
|
2070
|
-
options: y(
|
|
2071
|
+
options: y(ye),
|
|
2071
2072
|
formItems: y(o.builder)
|
|
2072
2073
|
}), this.ctrlKey++;
|
|
2073
2074
|
}
|
|
@@ -2083,19 +2084,19 @@ const Tn = {
|
|
|
2083
2084
|
}
|
|
2084
2085
|
}
|
|
2085
2086
|
};
|
|
2086
|
-
function
|
|
2087
|
-
const
|
|
2088
|
-
return i(),
|
|
2087
|
+
function An(e, t, l, n, o, a) {
|
|
2088
|
+
const s = v("v-form"), c = nt, p = ue, d = v("JsonView"), m = v("VButton"), _ = Te, T = Oe, w = ot, F = at, U = v("dev-layout");
|
|
2089
|
+
return i(), f(U, null, {
|
|
2089
2090
|
main: r(() => [
|
|
2090
|
-
o.builderSchema.formItems ? (i(),
|
|
2091
|
+
o.builderSchema.formItems ? (i(), f(s, G({
|
|
2091
2092
|
ref: "form",
|
|
2092
2093
|
key: o.key,
|
|
2093
2094
|
dev: !0
|
|
2094
|
-
}, o.builderSchema), null, 16)) :
|
|
2095
|
+
}, o.builderSchema), null, 16)) : x("", !0),
|
|
2095
2096
|
u(c),
|
|
2096
2097
|
u(p, {
|
|
2097
2098
|
type: "primary",
|
|
2098
|
-
onClick:
|
|
2099
|
+
onClick: a.saveSchema
|
|
2099
2100
|
}, {
|
|
2100
2101
|
default: r(() => [
|
|
2101
2102
|
g("保存页面配置")
|
|
@@ -2103,27 +2104,27 @@ function Bn(e, t, l, n, o, s) {
|
|
|
2103
2104
|
_: 1
|
|
2104
2105
|
}, 8, ["onClick"]),
|
|
2105
2106
|
g(" "),
|
|
2106
|
-
u(
|
|
2107
|
+
u(m, {
|
|
2107
2108
|
text: "PageSchema",
|
|
2108
2109
|
type: "modal"
|
|
2109
2110
|
}, {
|
|
2110
2111
|
default: r(() => [
|
|
2111
|
-
u(d, { data:
|
|
2112
|
+
u(d, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
2112
2113
|
]),
|
|
2113
2114
|
_: 1
|
|
2114
2115
|
})
|
|
2115
2116
|
]),
|
|
2116
2117
|
"right-aside": r(() => [
|
|
2117
|
-
o.activeIndex ? (i(),
|
|
2118
|
+
o.activeIndex ? (i(), f(F, { key: 0 }, {
|
|
2118
2119
|
default: r(() => [
|
|
2119
|
-
u(
|
|
2120
|
+
u(w, { label: "控件类型" }, {
|
|
2120
2121
|
default: r(() => [
|
|
2121
2122
|
u(T, {
|
|
2122
2123
|
modelValue: o.currentCtrlType,
|
|
2123
2124
|
"onUpdate:modelValue": t[0] || (t[0] = (C) => o.currentCtrlType = C)
|
|
2124
2125
|
}, {
|
|
2125
2126
|
default: r(() => [
|
|
2126
|
-
(i(!0), h(
|
|
2127
|
+
(i(!0), h(S, null, B(o.types, (C, Z) => (i(), f(_, {
|
|
2127
2128
|
key: Z,
|
|
2128
2129
|
label: C.label,
|
|
2129
2130
|
value: C.value
|
|
@@ -2136,8 +2137,8 @@ function Bn(e, t, l, n, o, s) {
|
|
|
2136
2137
|
})
|
|
2137
2138
|
]),
|
|
2138
2139
|
_: 1
|
|
2139
|
-
})) :
|
|
2140
|
-
(i(),
|
|
2140
|
+
})) : x("", !0),
|
|
2141
|
+
(i(), f(s, G({
|
|
2141
2142
|
key: o.ctrlKey,
|
|
2142
2143
|
modelValue: o.ctrlOptions,
|
|
2143
2144
|
"onUpdate:modelValue": t[1] || (t[1] = (C) => o.ctrlOptions = C)
|
|
@@ -2146,7 +2147,7 @@ function Bn(e, t, l, n, o, s) {
|
|
|
2146
2147
|
_: 1
|
|
2147
2148
|
});
|
|
2148
2149
|
}
|
|
2149
|
-
const
|
|
2150
|
+
const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171"]]), Pn = {
|
|
2150
2151
|
type: "input",
|
|
2151
2152
|
name: "文本框",
|
|
2152
2153
|
default: {
|
|
@@ -2194,7 +2195,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2194
2195
|
}
|
|
2195
2196
|
}
|
|
2196
2197
|
]
|
|
2197
|
-
},
|
|
2198
|
+
}, Ln = {
|
|
2198
2199
|
type: "select",
|
|
2199
2200
|
name: "下拉框",
|
|
2200
2201
|
default: {
|
|
@@ -2295,7 +2296,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2295
2296
|
const t = y(e);
|
|
2296
2297
|
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;
|
|
2297
2298
|
}
|
|
2298
|
-
},
|
|
2299
|
+
}, Mn = {
|
|
2299
2300
|
type: "date",
|
|
2300
2301
|
name: "日期",
|
|
2301
2302
|
default: {
|
|
@@ -2340,11 +2341,11 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2340
2341
|
label: "导出按钮"
|
|
2341
2342
|
}
|
|
2342
2343
|
]
|
|
2343
|
-
},
|
|
2344
|
+
}, ve = {
|
|
2344
2345
|
labelPosition: "top",
|
|
2345
2346
|
submitButton: !1,
|
|
2346
2347
|
cancelButton: !1
|
|
2347
|
-
},
|
|
2348
|
+
}, Dn = {
|
|
2348
2349
|
type: "span",
|
|
2349
2350
|
name: "文本",
|
|
2350
2351
|
default: {
|
|
@@ -2374,7 +2375,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2374
2375
|
label: "排序"
|
|
2375
2376
|
}
|
|
2376
2377
|
]
|
|
2377
|
-
},
|
|
2378
|
+
}, jn = {
|
|
2378
2379
|
type: "enum",
|
|
2379
2380
|
name: "标签",
|
|
2380
2381
|
default: {
|
|
@@ -2425,7 +2426,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2425
2426
|
trans(e) {
|
|
2426
2427
|
return e.options = e.options || [], e.label || (e.label = "表头"), e;
|
|
2427
2428
|
}
|
|
2428
|
-
},
|
|
2429
|
+
}, Nn = {
|
|
2429
2430
|
type: "html",
|
|
2430
2431
|
name: "HTML",
|
|
2431
2432
|
default: {
|
|
@@ -2450,7 +2451,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2450
2451
|
label: "提示"
|
|
2451
2452
|
}
|
|
2452
2453
|
]
|
|
2453
|
-
},
|
|
2454
|
+
}, Vn = {
|
|
2454
2455
|
type: "icon",
|
|
2455
2456
|
name: "图标",
|
|
2456
2457
|
default: {
|
|
@@ -2475,7 +2476,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2475
2476
|
label: "提示"
|
|
2476
2477
|
}
|
|
2477
2478
|
]
|
|
2478
|
-
},
|
|
2479
|
+
}, qn = {
|
|
2479
2480
|
type: "image",
|
|
2480
2481
|
name: "图片",
|
|
2481
2482
|
default: {
|
|
@@ -2500,7 +2501,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2500
2501
|
label: "提示"
|
|
2501
2502
|
}
|
|
2502
2503
|
]
|
|
2503
|
-
},
|
|
2504
|
+
}, Un = {
|
|
2504
2505
|
type: "json",
|
|
2505
2506
|
name: "JSON",
|
|
2506
2507
|
default: {
|
|
@@ -2525,7 +2526,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2525
2526
|
label: "提示"
|
|
2526
2527
|
}
|
|
2527
2528
|
]
|
|
2528
|
-
},
|
|
2529
|
+
}, Hn = {
|
|
2529
2530
|
type: "link",
|
|
2530
2531
|
name: "链接",
|
|
2531
2532
|
default: {
|
|
@@ -2550,7 +2551,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2550
2551
|
label: "提示"
|
|
2551
2552
|
}
|
|
2552
2553
|
]
|
|
2553
|
-
},
|
|
2554
|
+
}, Fn = {
|
|
2554
2555
|
type: "rich",
|
|
2555
2556
|
name: "富文本",
|
|
2556
2557
|
default: {
|
|
@@ -2575,7 +2576,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2575
2576
|
label: "提示"
|
|
2576
2577
|
}
|
|
2577
2578
|
]
|
|
2578
|
-
},
|
|
2579
|
+
}, Gn = {
|
|
2579
2580
|
type: "tpl",
|
|
2580
2581
|
name: "模板",
|
|
2581
2582
|
default: {
|
|
@@ -2606,17 +2607,17 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2606
2607
|
info: "例如 <code>姓名: {name} 年龄:{age}</code>"
|
|
2607
2608
|
}
|
|
2608
2609
|
]
|
|
2609
|
-
}, Gn = {
|
|
2610
|
-
span: Mn,
|
|
2611
|
-
enum: Dn,
|
|
2612
|
-
html: jn,
|
|
2613
|
-
icon: Nn,
|
|
2614
|
-
image: Vn,
|
|
2615
|
-
json: qn,
|
|
2616
|
-
link: Un,
|
|
2617
|
-
rich: Hn,
|
|
2618
|
-
tpl: Fn
|
|
2619
2610
|
}, Jn = {
|
|
2611
|
+
span: Dn,
|
|
2612
|
+
enum: jn,
|
|
2613
|
+
html: Nn,
|
|
2614
|
+
icon: Vn,
|
|
2615
|
+
image: qn,
|
|
2616
|
+
json: Un,
|
|
2617
|
+
link: Hn,
|
|
2618
|
+
rich: Fn,
|
|
2619
|
+
tpl: Gn
|
|
2620
|
+
}, zn = {
|
|
2620
2621
|
type: "jump",
|
|
2621
2622
|
name: "跳转",
|
|
2622
2623
|
default: {
|
|
@@ -2663,7 +2664,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2663
2664
|
}
|
|
2664
2665
|
}
|
|
2665
2666
|
]
|
|
2666
|
-
},
|
|
2667
|
+
}, Kn = {
|
|
2667
2668
|
type: "api",
|
|
2668
2669
|
name: "接口请求",
|
|
2669
2670
|
default: {
|
|
@@ -2732,7 +2733,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2732
2733
|
}
|
|
2733
2734
|
}
|
|
2734
2735
|
]
|
|
2735
|
-
},
|
|
2736
|
+
}, Wn = {
|
|
2736
2737
|
type: "form",
|
|
2737
2738
|
name: "弹框表单",
|
|
2738
2739
|
default: {
|
|
@@ -2786,7 +2787,7 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2786
2787
|
label: "保存接口"
|
|
2787
2788
|
}
|
|
2788
2789
|
]
|
|
2789
|
-
},
|
|
2790
|
+
}, Zn = {
|
|
2790
2791
|
type: "table",
|
|
2791
2792
|
name: "弹框列表",
|
|
2792
2793
|
default: {
|
|
@@ -2840,14 +2841,14 @@ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171
|
|
|
2840
2841
|
label: "保存接口"
|
|
2841
2842
|
}
|
|
2842
2843
|
]
|
|
2843
|
-
},
|
|
2844
|
-
jump:
|
|
2845
|
-
api:
|
|
2846
|
-
form:
|
|
2847
|
-
table:
|
|
2844
|
+
}, Qn = {
|
|
2845
|
+
jump: zn,
|
|
2846
|
+
api: Kn,
|
|
2847
|
+
form: Wn,
|
|
2848
|
+
table: Zn
|
|
2848
2849
|
};
|
|
2849
|
-
const
|
|
2850
|
-
components: { JsonView:
|
|
2850
|
+
const Xn = {
|
|
2851
|
+
components: { JsonView: Pe, DevLayout: dt, VTable: oe, VForm: J, VButton: Re },
|
|
2851
2852
|
props: {
|
|
2852
2853
|
schema: {
|
|
2853
2854
|
type: Object,
|
|
@@ -2875,9 +2876,9 @@ const Qn = {
|
|
|
2875
2876
|
ctrlName: "",
|
|
2876
2877
|
activeIndex: void 0,
|
|
2877
2878
|
ctrlMap: {
|
|
2878
|
-
filter: { input:
|
|
2879
|
-
headers:
|
|
2880
|
-
buttons:
|
|
2879
|
+
filter: { input: Pn, select: Ln, date: Mn },
|
|
2880
|
+
headers: Jn,
|
|
2881
|
+
buttons: Qn
|
|
2881
2882
|
},
|
|
2882
2883
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2883
2884
|
currentCtrlType: "input"
|
|
@@ -2926,8 +2927,8 @@ const Qn = {
|
|
|
2926
2927
|
const o = n.trans ? n.trans(e) : e;
|
|
2927
2928
|
if (o && Object.keys(o).length > 0) {
|
|
2928
2929
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2929
|
-
const [
|
|
2930
|
-
this.builderSchema[
|
|
2930
|
+
const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2931
|
+
this.builderSchema[s][c] = { ...o };
|
|
2931
2932
|
} else
|
|
2932
2933
|
this.builderSchema[this.activeIndex] = o;
|
|
2933
2934
|
this.key++;
|
|
@@ -2939,7 +2940,7 @@ const Qn = {
|
|
|
2939
2940
|
handler(e) {
|
|
2940
2941
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
2941
2942
|
this.ctrlSchema = y({
|
|
2942
|
-
options: y(
|
|
2943
|
+
options: y(ve),
|
|
2943
2944
|
formItems: y(t.builder)
|
|
2944
2945
|
});
|
|
2945
2946
|
const l = ne(this.builderSchema, this.activeIndex);
|
|
@@ -2986,7 +2987,7 @@ const Qn = {
|
|
|
2986
2987
|
return;
|
|
2987
2988
|
}
|
|
2988
2989
|
this.activeCtrl = o[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(y(o[e].default)), this.ctrlSchema = y({
|
|
2989
|
-
options: y(
|
|
2990
|
+
options: y(ve),
|
|
2990
2991
|
formItems: y(o[e].builder)
|
|
2991
2992
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2992
2993
|
},
|
|
@@ -3006,7 +3007,7 @@ const Qn = {
|
|
|
3006
3007
|
return;
|
|
3007
3008
|
}
|
|
3008
3009
|
this.ctrlOptions = l, this.currentCtrlType = n, this.ctrlSchema = y({
|
|
3009
|
-
options: y(
|
|
3010
|
+
options: y(ve),
|
|
3010
3011
|
formItems: y(o.builder)
|
|
3011
3012
|
}), this.ctrlKey++;
|
|
3012
3013
|
}
|
|
@@ -3023,21 +3024,21 @@ const Qn = {
|
|
|
3023
3024
|
normalButton: n,
|
|
3024
3025
|
batchButton: o
|
|
3025
3026
|
}
|
|
3026
|
-
}).then(({ data:
|
|
3027
|
-
|
|
3027
|
+
}).then(({ data: a }) => {
|
|
3028
|
+
a && this.$message({ type: "success", message: "保存成功, 请刷新页面查看效果" });
|
|
3028
3029
|
});
|
|
3029
3030
|
}
|
|
3030
3031
|
}
|
|
3031
3032
|
};
|
|
3032
|
-
function
|
|
3033
|
-
const
|
|
3034
|
-
return i(),
|
|
3033
|
+
function Yn(e, t, l, n, o, a) {
|
|
3034
|
+
const s = de, c = ue, p = ae, d = v("v-table"), m = nt, _ = ue, T = v("JsonView"), w = v("VButton"), F = Te, U = Oe, C = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
|
|
3035
|
+
return i(), f(Et, null, {
|
|
3035
3036
|
"left-aside": r(() => [
|
|
3036
3037
|
u(p, { style: { width: "200px" } }, {
|
|
3037
3038
|
default: r(() => [
|
|
3038
3039
|
u(p, null, {
|
|
3039
3040
|
default: r(() => [
|
|
3040
|
-
u(
|
|
3041
|
+
u(s, {
|
|
3041
3042
|
class: "title",
|
|
3042
3043
|
"data-id": 22222
|
|
3043
3044
|
}, {
|
|
@@ -3046,11 +3047,11 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3046
3047
|
]),
|
|
3047
3048
|
_: 1
|
|
3048
3049
|
}),
|
|
3049
|
-
u(
|
|
3050
|
+
u(s, { class: "ctrl" }, {
|
|
3050
3051
|
default: r(() => [
|
|
3051
3052
|
u(c, {
|
|
3052
3053
|
class: "ctrl-btn",
|
|
3053
|
-
onClick: t[0] || (t[0] = (I) =>
|
|
3054
|
+
onClick: t[0] || (t[0] = (I) => a.pushFilter("input"))
|
|
3054
3055
|
}, {
|
|
3055
3056
|
default: r(() => [
|
|
3056
3057
|
g("文本框")
|
|
@@ -3060,11 +3061,11 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3060
3061
|
]),
|
|
3061
3062
|
_: 1
|
|
3062
3063
|
}),
|
|
3063
|
-
u(
|
|
3064
|
+
u(s, { class: "ctrl" }, {
|
|
3064
3065
|
default: r(() => [
|
|
3065
3066
|
u(c, {
|
|
3066
3067
|
class: "ctrl-btn",
|
|
3067
|
-
onClick: t[1] || (t[1] = (I) =>
|
|
3068
|
+
onClick: t[1] || (t[1] = (I) => a.pushFilter("select"))
|
|
3068
3069
|
}, {
|
|
3069
3070
|
default: r(() => [
|
|
3070
3071
|
g("下拉框")
|
|
@@ -3074,11 +3075,11 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3074
3075
|
]),
|
|
3075
3076
|
_: 1
|
|
3076
3077
|
}),
|
|
3077
|
-
u(
|
|
3078
|
+
u(s, { class: "ctrl" }, {
|
|
3078
3079
|
default: r(() => [
|
|
3079
3080
|
u(c, {
|
|
3080
3081
|
class: "ctrl-btn",
|
|
3081
|
-
onClick: t[2] || (t[2] = (I) =>
|
|
3082
|
+
onClick: t[2] || (t[2] = (I) => a.pushFilter("date"))
|
|
3082
3083
|
}, {
|
|
3083
3084
|
default: r(() => [
|
|
3084
3085
|
g("日期")
|
|
@@ -3093,20 +3094,20 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3093
3094
|
}),
|
|
3094
3095
|
u(p, null, {
|
|
3095
3096
|
default: r(() => [
|
|
3096
|
-
u(
|
|
3097
|
+
u(s, { class: "title" }, {
|
|
3097
3098
|
default: r(() => [
|
|
3098
3099
|
g("添加列表项")
|
|
3099
3100
|
]),
|
|
3100
3101
|
_: 1
|
|
3101
3102
|
}),
|
|
3102
|
-
(i(!0), h(
|
|
3103
|
-
key: `column-${
|
|
3103
|
+
(i(!0), h(S, null, B(Object.keys(o.ctrlMap.headers), (I, V) => (i(), f(s, {
|
|
3104
|
+
key: `column-${V}`,
|
|
3104
3105
|
class: "ctrl"
|
|
3105
3106
|
}, {
|
|
3106
3107
|
default: r(() => [
|
|
3107
3108
|
u(c, {
|
|
3108
3109
|
class: "ctrl-btn",
|
|
3109
|
-
onClick: (
|
|
3110
|
+
onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[I].type)
|
|
3110
3111
|
}, {
|
|
3111
3112
|
default: r(() => [
|
|
3112
3113
|
g(O(o.ctrlMap.headers[I].name), 1)
|
|
@@ -3121,20 +3122,20 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3121
3122
|
}),
|
|
3122
3123
|
u(p, null, {
|
|
3123
3124
|
default: r(() => [
|
|
3124
|
-
u(
|
|
3125
|
+
u(s, { class: "title" }, {
|
|
3125
3126
|
default: r(() => [
|
|
3126
3127
|
g("添加行按钮")
|
|
3127
3128
|
]),
|
|
3128
3129
|
_: 1
|
|
3129
3130
|
}),
|
|
3130
|
-
(i(!0), h(
|
|
3131
|
-
key: `column-${
|
|
3131
|
+
(i(!0), h(S, null, B(Object.keys(o.ctrlMap.buttons), (I, V) => (i(), f(s, {
|
|
3132
|
+
key: `column-${V}`,
|
|
3132
3133
|
class: "ctrl"
|
|
3133
3134
|
}, {
|
|
3134
3135
|
default: r(() => [
|
|
3135
3136
|
u(c, {
|
|
3136
3137
|
class: "ctrl-btn",
|
|
3137
|
-
onClick: (
|
|
3138
|
+
onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[I].type)
|
|
3138
3139
|
}, {
|
|
3139
3140
|
default: r(() => [
|
|
3140
3141
|
g(O(o.ctrlMap.buttons[I].name), 1)
|
|
@@ -3149,20 +3150,20 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3149
3150
|
}),
|
|
3150
3151
|
u(p, null, {
|
|
3151
3152
|
default: r(() => [
|
|
3152
|
-
u(
|
|
3153
|
+
u(s, { class: "title" }, {
|
|
3153
3154
|
default: r(() => [
|
|
3154
3155
|
g("添加常规按钮")
|
|
3155
3156
|
]),
|
|
3156
3157
|
_: 1
|
|
3157
3158
|
}),
|
|
3158
|
-
(i(!0), h(
|
|
3159
|
-
key: `column-${
|
|
3159
|
+
(i(!0), h(S, null, B(Object.keys(o.ctrlMap.buttons), (I, V) => (i(), f(s, {
|
|
3160
|
+
key: `column-${V}`,
|
|
3160
3161
|
class: "ctrl"
|
|
3161
3162
|
}, {
|
|
3162
3163
|
default: r(() => [
|
|
3163
3164
|
u(c, {
|
|
3164
3165
|
class: "ctrl-btn",
|
|
3165
|
-
onClick: (
|
|
3166
|
+
onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[I].type)
|
|
3166
3167
|
}, {
|
|
3167
3168
|
default: r(() => [
|
|
3168
3169
|
g(O(o.ctrlMap.buttons[I].name), 1)
|
|
@@ -3172,7 +3173,7 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3172
3173
|
]),
|
|
3173
3174
|
_: 2
|
|
3174
3175
|
}, 1024))), 128)),
|
|
3175
|
-
u(
|
|
3176
|
+
u(s, { class: "ctrl" }, {
|
|
3176
3177
|
default: r(() => [
|
|
3177
3178
|
u(c, { class: "ctrl-btn" }, {
|
|
3178
3179
|
default: r(() => [
|
|
@@ -3188,20 +3189,20 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3188
3189
|
}),
|
|
3189
3190
|
u(p, null, {
|
|
3190
3191
|
default: r(() => [
|
|
3191
|
-
u(
|
|
3192
|
+
u(s, { class: "title" }, {
|
|
3192
3193
|
default: r(() => [
|
|
3193
3194
|
g("添加批量按钮")
|
|
3194
3195
|
]),
|
|
3195
3196
|
_: 1
|
|
3196
3197
|
}),
|
|
3197
|
-
(i(!0), h(
|
|
3198
|
-
key: `column-${
|
|
3198
|
+
(i(!0), h(S, null, B(Object.keys(o.ctrlMap.buttons), (I, V) => (i(), f(s, {
|
|
3199
|
+
key: `column-${V}`,
|
|
3199
3200
|
class: "ctrl"
|
|
3200
3201
|
}, {
|
|
3201
3202
|
default: r(() => [
|
|
3202
3203
|
u(c, {
|
|
3203
3204
|
class: "ctrl-btn",
|
|
3204
|
-
onClick: (
|
|
3205
|
+
onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[I].type)
|
|
3205
3206
|
}, {
|
|
3206
3207
|
default: r(() => [
|
|
3207
3208
|
g(O(o.ctrlMap.buttons[I].name), 1)
|
|
@@ -3211,7 +3212,7 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3211
3212
|
]),
|
|
3212
3213
|
_: 2
|
|
3213
3214
|
}, 1024))), 128)),
|
|
3214
|
-
u(
|
|
3215
|
+
u(s, { class: "ctrl" }, {
|
|
3215
3216
|
default: r(() => [
|
|
3216
3217
|
u(c, { class: "ctrl-btn" }, {
|
|
3217
3218
|
default: r(() => [
|
|
@@ -3230,15 +3231,15 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3230
3231
|
})
|
|
3231
3232
|
]),
|
|
3232
3233
|
main: r(() => [
|
|
3233
|
-
(i(),
|
|
3234
|
+
(i(), f(d, G({
|
|
3234
3235
|
ref: "table",
|
|
3235
3236
|
key: o.key,
|
|
3236
3237
|
dev: !0
|
|
3237
3238
|
}, o.builderSchema), null, 16)),
|
|
3238
|
-
u(
|
|
3239
|
+
u(m),
|
|
3239
3240
|
u(_, {
|
|
3240
3241
|
type: "primary",
|
|
3241
|
-
onClick:
|
|
3242
|
+
onClick: a.saveSchema
|
|
3242
3243
|
}, {
|
|
3243
3244
|
default: r(() => [
|
|
3244
3245
|
g("保存页面配置")
|
|
@@ -3246,18 +3247,18 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3246
3247
|
_: 1
|
|
3247
3248
|
}, 8, ["onClick"]),
|
|
3248
3249
|
g(" "),
|
|
3249
|
-
u(
|
|
3250
|
+
u(w, {
|
|
3250
3251
|
text: "PageSchema",
|
|
3251
3252
|
type: "modal"
|
|
3252
3253
|
}, {
|
|
3253
3254
|
default: r(() => [
|
|
3254
|
-
u(T, { data:
|
|
3255
|
+
u(T, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3255
3256
|
]),
|
|
3256
3257
|
_: 1
|
|
3257
3258
|
})
|
|
3258
3259
|
]),
|
|
3259
3260
|
"right-aside": r(() => [
|
|
3260
|
-
o.activeIndex ? (i(),
|
|
3261
|
+
o.activeIndex ? (i(), f(Z, { key: 0 }, {
|
|
3261
3262
|
default: r(() => [
|
|
3262
3263
|
u(C, { label: "控件类型" }, {
|
|
3263
3264
|
default: r(() => [
|
|
@@ -3266,8 +3267,8 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3266
3267
|
"onUpdate:modelValue": t[3] || (t[3] = (I) => o.currentCtrlType = I)
|
|
3267
3268
|
}, {
|
|
3268
3269
|
default: r(() => [
|
|
3269
|
-
(i(!0), h(
|
|
3270
|
-
key:
|
|
3270
|
+
(i(!0), h(S, null, B(a.types, (I, V) => (i(), f(F, {
|
|
3271
|
+
key: V,
|
|
3271
3272
|
label: I.label,
|
|
3272
3273
|
value: I.value
|
|
3273
3274
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -3279,8 +3280,8 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3279
3280
|
})
|
|
3280
3281
|
]),
|
|
3281
3282
|
_: 1
|
|
3282
|
-
})) :
|
|
3283
|
-
(i(),
|
|
3283
|
+
})) : x("", !0),
|
|
3284
|
+
(i(), f(xt, G({
|
|
3284
3285
|
key: o.ctrlKey,
|
|
3285
3286
|
modelValue: o.ctrlOptions,
|
|
3286
3287
|
"onUpdate:modelValue": t[4] || (t[4] = (I) => o.ctrlOptions = I)
|
|
@@ -3289,24 +3290,24 @@ function Xn(e, t, l, n, o, s) {
|
|
|
3289
3290
|
_: 1
|
|
3290
3291
|
});
|
|
3291
3292
|
}
|
|
3292
|
-
const
|
|
3293
|
+
const eo = /* @__PURE__ */ $(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7"]]), to = {
|
|
3293
3294
|
name: "PageEditor",
|
|
3294
|
-
components: { FormBuilder:
|
|
3295
|
+
components: { FormBuilder: Rn, TableBuilder: eo },
|
|
3295
3296
|
setup() {
|
|
3296
|
-
const e = L(!1), t = L(1), l = "rtl", n =
|
|
3297
|
+
const e = L(!1), t = L(1), l = "rtl", n = pe(), o = j(() => E.state.app.pages[n.path]);
|
|
3297
3298
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3298
3299
|
}
|
|
3299
3300
|
};
|
|
3300
|
-
function
|
|
3301
|
-
const
|
|
3302
|
-
return i(), h(
|
|
3303
|
-
u(
|
|
3301
|
+
function lo(e, t, l, n, o, a) {
|
|
3302
|
+
const s = v("VIcon"), c = v("form-builder"), p = v("table-builder"), d = st;
|
|
3303
|
+
return i(), h(S, null, [
|
|
3304
|
+
u(s, {
|
|
3304
3305
|
name: "ra-set",
|
|
3305
|
-
onClick: t[0] || (t[0] = (
|
|
3306
|
+
onClick: t[0] || (t[0] = (m) => n.show = !n.show)
|
|
3306
3307
|
}),
|
|
3307
3308
|
u(d, {
|
|
3308
3309
|
modelValue: n.show,
|
|
3309
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3310
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => n.show = m),
|
|
3310
3311
|
title: "页面设计",
|
|
3311
3312
|
class: "my-drawer",
|
|
3312
3313
|
direction: n.direction,
|
|
@@ -3315,26 +3316,26 @@ function to(e, t, l, n, o, s) {
|
|
|
3315
3316
|
"append-to-body": ""
|
|
3316
3317
|
}, {
|
|
3317
3318
|
default: r(() => [
|
|
3318
|
-
n.pageSchema.formItems !== void 0 ? (i(),
|
|
3319
|
+
n.pageSchema.formItems !== void 0 ? (i(), f(c, {
|
|
3319
3320
|
key: 0,
|
|
3320
3321
|
schema: n.pageSchema
|
|
3321
|
-
}, null, 8, ["schema"])) :
|
|
3322
|
-
n.pageSchema.headers !== void 0 ? (i(),
|
|
3322
|
+
}, null, 8, ["schema"])) : x("", !0),
|
|
3323
|
+
n.pageSchema.headers !== void 0 ? (i(), f(p, {
|
|
3323
3324
|
key: 1,
|
|
3324
3325
|
schema: n.pageSchema
|
|
3325
|
-
}, null, 8, ["schema"])) :
|
|
3326
|
+
}, null, 8, ["schema"])) : x("", !0)
|
|
3326
3327
|
]),
|
|
3327
3328
|
_: 1
|
|
3328
3329
|
}, 8, ["modelValue", "direction"])
|
|
3329
3330
|
], 64);
|
|
3330
3331
|
}
|
|
3331
|
-
const
|
|
3332
|
-
const
|
|
3332
|
+
const no = /* @__PURE__ */ $(to, [["render", lo]]);
|
|
3333
|
+
const oo = {
|
|
3333
3334
|
components: {
|
|
3334
|
-
Breadcrumb:
|
|
3335
|
-
Hamburger:
|
|
3336
|
-
VButton:
|
|
3337
|
-
PageEditor:
|
|
3335
|
+
Breadcrumb: un,
|
|
3336
|
+
Hamburger: mn,
|
|
3337
|
+
VButton: Re,
|
|
3338
|
+
PageEditor: no
|
|
3338
3339
|
},
|
|
3339
3340
|
data() {
|
|
3340
3341
|
return {
|
|
@@ -3347,7 +3348,7 @@ const no = {
|
|
|
3347
3348
|
};
|
|
3348
3349
|
},
|
|
3349
3350
|
computed: {
|
|
3350
|
-
...
|
|
3351
|
+
...Ce(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3351
3352
|
hasNewMessage() {
|
|
3352
3353
|
return this.$store.state.settings.hasNewMessage;
|
|
3353
3354
|
},
|
|
@@ -3398,38 +3399,38 @@ const no = {
|
|
|
3398
3399
|
},
|
|
3399
3400
|
showNotice(e) {
|
|
3400
3401
|
const t = "dismiss:navbar_notice";
|
|
3401
|
-
return
|
|
3402
|
+
return be.exist(t) ? be.get(t) !== e : !0;
|
|
3402
3403
|
},
|
|
3403
3404
|
closeNotice(e) {
|
|
3404
3405
|
const t = "dismiss:navbar_notice";
|
|
3405
|
-
|
|
3406
|
+
be.set(t, e);
|
|
3406
3407
|
},
|
|
3407
3408
|
gotoMenuEdit() {
|
|
3408
3409
|
var e, t, l, n;
|
|
3409
3410
|
(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));
|
|
3410
3411
|
}
|
|
3411
3412
|
}
|
|
3412
|
-
},
|
|
3413
|
+
}, ao = { class: "right-content" }, so = { class: "right-item" }, io = {
|
|
3413
3414
|
key: 0,
|
|
3414
3415
|
class: "right-item"
|
|
3415
|
-
},
|
|
3416
|
+
}, ro = {
|
|
3416
3417
|
class: "right-item-button",
|
|
3417
3418
|
style: { padding: "0" }
|
|
3418
|
-
},
|
|
3419
|
-
function
|
|
3420
|
-
const
|
|
3421
|
-
return i(),
|
|
3419
|
+
}, co = { class: "user-info" }, uo = ["src"], po = { class: "user-name" };
|
|
3420
|
+
function mo(e, t, l, n, o, a) {
|
|
3421
|
+
const s = v("hamburger"), c = v("breadcrumb"), p = de, d = v("VIcon"), m = v("PageEditor"), _ = v("v-button"), T = ml, w = fl, F = hl, U = st, C = ae;
|
|
3422
|
+
return i(), f(C, {
|
|
3422
3423
|
ref: "header",
|
|
3423
3424
|
class: "navbar",
|
|
3424
|
-
style: Bt({ background:
|
|
3425
|
+
style: Bt({ background: a.setting.envColor[a.user.env] })
|
|
3425
3426
|
}, {
|
|
3426
3427
|
default: r(() => [
|
|
3427
3428
|
u(p, { span: 16 }, {
|
|
3428
3429
|
default: r(() => [
|
|
3429
|
-
u(
|
|
3430
|
+
u(s, {
|
|
3430
3431
|
"is-active": e.sidebar.opened,
|
|
3431
3432
|
class: "hamburger-container",
|
|
3432
|
-
onToggleClick:
|
|
3433
|
+
onToggleClick: a.toggleSideBar
|
|
3433
3434
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3434
3435
|
u(c, { class: "breadcrumb-container" })
|
|
3435
3436
|
]),
|
|
@@ -3437,25 +3438,25 @@ function po(e, t, l, n, o, s) {
|
|
|
3437
3438
|
}),
|
|
3438
3439
|
u(p, { span: 8 }, {
|
|
3439
3440
|
default: r(() => [
|
|
3440
|
-
b("div",
|
|
3441
|
+
b("div", ao, [
|
|
3441
3442
|
b("div", so, [
|
|
3442
3443
|
u(d, {
|
|
3443
3444
|
name: "ra-code",
|
|
3444
|
-
onClick:
|
|
3445
|
+
onClick: a.gotoMenuEdit
|
|
3445
3446
|
}, null, 8, ["onClick"])
|
|
3446
3447
|
]),
|
|
3447
|
-
|
|
3448
|
-
u(
|
|
3449
|
-
])) :
|
|
3450
|
-
b("div",
|
|
3448
|
+
a.showPageJsonSchemaIcon ? (i(), h("div", io, [
|
|
3449
|
+
u(m)
|
|
3450
|
+
])) : x("", !0),
|
|
3451
|
+
b("div", ro, [
|
|
3451
3452
|
u(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3452
3453
|
]),
|
|
3453
|
-
u(
|
|
3454
|
+
u(F, {
|
|
3454
3455
|
class: "right-item",
|
|
3455
3456
|
trigger: "click"
|
|
3456
3457
|
}, {
|
|
3457
3458
|
dropdown: r(() => [
|
|
3458
|
-
u(
|
|
3459
|
+
u(w, { class: "user-dropdown" }, {
|
|
3459
3460
|
default: r(() => [
|
|
3460
3461
|
u(T, {
|
|
3461
3462
|
icon: "oms-icon-index",
|
|
@@ -3469,7 +3470,7 @@ function po(e, t, l, n, o, s) {
|
|
|
3469
3470
|
u(T, {
|
|
3470
3471
|
divided: "",
|
|
3471
3472
|
icon: "el-icon-switch-button",
|
|
3472
|
-
onClick:
|
|
3473
|
+
onClick: a.logout
|
|
3473
3474
|
}, {
|
|
3474
3475
|
default: r(() => [
|
|
3475
3476
|
g("退出登录")
|
|
@@ -3481,14 +3482,14 @@ function po(e, t, l, n, o, s) {
|
|
|
3481
3482
|
})
|
|
3482
3483
|
]),
|
|
3483
3484
|
default: r(() => [
|
|
3484
|
-
b("div",
|
|
3485
|
+
b("div", co, [
|
|
3485
3486
|
b("img", {
|
|
3486
3487
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3487
3488
|
class: "user-avatar",
|
|
3488
3489
|
alt: "头像"
|
|
3489
|
-
}, null, 8,
|
|
3490
|
+
}, null, 8, uo),
|
|
3490
3491
|
g(),
|
|
3491
|
-
b("span",
|
|
3492
|
+
b("span", po, O(e.nickname || e.name), 1)
|
|
3492
3493
|
])
|
|
3493
3494
|
]),
|
|
3494
3495
|
_: 1
|
|
@@ -3497,17 +3498,17 @@ function po(e, t, l, n, o, s) {
|
|
|
3497
3498
|
]),
|
|
3498
3499
|
_: 1
|
|
3499
3500
|
}),
|
|
3500
|
-
o.showJsonSchema ? (i(),
|
|
3501
|
+
o.showJsonSchema ? (i(), f(U, {
|
|
3501
3502
|
key: 0,
|
|
3502
3503
|
"with-header": !1,
|
|
3503
3504
|
size: "50%"
|
|
3504
|
-
})) :
|
|
3505
|
+
})) : x("", !0)
|
|
3505
3506
|
]),
|
|
3506
3507
|
_: 1
|
|
3507
3508
|
}, 8, ["style"]);
|
|
3508
3509
|
}
|
|
3509
|
-
const
|
|
3510
|
-
const
|
|
3510
|
+
const fo = /* @__PURE__ */ $(oo, [["render", mo], ["__scopeId", "data-v-9d0fb088"]]);
|
|
3511
|
+
const ho = {
|
|
3511
3512
|
name: "SidebarLogo",
|
|
3512
3513
|
props: {
|
|
3513
3514
|
collapse: {
|
|
@@ -3523,43 +3524,43 @@ const fo = {
|
|
|
3523
3524
|
return this.$store.state.settings.logo;
|
|
3524
3525
|
}
|
|
3525
3526
|
}
|
|
3526
|
-
},
|
|
3527
|
+
}, bo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), _o = ["src"], yo = {
|
|
3527
3528
|
key: 1,
|
|
3528
3529
|
class: "sidebar-title"
|
|
3529
|
-
},
|
|
3530
|
-
function
|
|
3531
|
-
const
|
|
3530
|
+
}, vo = /* @__PURE__ */ bo(() => /* @__PURE__ */ b("div", null, "系统", -1)), go = ["src"], ko = { class: "sidebar-title" };
|
|
3531
|
+
function wo(e, t, l, n, o, a) {
|
|
3532
|
+
const s = v("router-link");
|
|
3532
3533
|
return i(), h("div", {
|
|
3533
|
-
class:
|
|
3534
|
+
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3534
3535
|
}, [
|
|
3535
3536
|
u(At, { name: "sidebarLogoFade" }, {
|
|
3536
3537
|
default: r(() => [
|
|
3537
|
-
l.collapse ? (i(),
|
|
3538
|
+
l.collapse ? (i(), f(s, {
|
|
3538
3539
|
key: "collapse",
|
|
3539
3540
|
class: "sidebar-logo-link",
|
|
3540
3541
|
to: "/"
|
|
3541
3542
|
}, {
|
|
3542
3543
|
default: r(() => [
|
|
3543
|
-
|
|
3544
|
+
a.logo ? (i(), h("img", {
|
|
3544
3545
|
key: 0,
|
|
3545
|
-
src:
|
|
3546
|
+
src: a.logo,
|
|
3546
3547
|
class: "sidebar-logo"
|
|
3547
|
-
}, null, 8,
|
|
3548
|
-
|
|
3548
|
+
}, null, 8, _o)) : (i(), h("h1", yo, O(a.title), 1)),
|
|
3549
|
+
vo
|
|
3549
3550
|
]),
|
|
3550
3551
|
_: 1
|
|
3551
|
-
})) : (i(),
|
|
3552
|
+
})) : (i(), f(s, {
|
|
3552
3553
|
key: "expand",
|
|
3553
3554
|
class: "sidebar-logo-link",
|
|
3554
3555
|
to: "/"
|
|
3555
3556
|
}, {
|
|
3556
3557
|
default: r(() => [
|
|
3557
|
-
|
|
3558
|
+
a.logo ? (i(), h("img", {
|
|
3558
3559
|
key: 0,
|
|
3559
|
-
src:
|
|
3560
|
+
src: a.logo,
|
|
3560
3561
|
class: "sidebar-logo"
|
|
3561
|
-
}, null, 8,
|
|
3562
|
-
b("h1",
|
|
3562
|
+
}, null, 8, go)) : x("", !0),
|
|
3563
|
+
b("h1", ko, O(a.title), 1)
|
|
3563
3564
|
]),
|
|
3564
3565
|
_: 1
|
|
3565
3566
|
}))
|
|
@@ -3568,7 +3569,7 @@ function ko(e, t, l, n, o, s) {
|
|
|
3568
3569
|
})
|
|
3569
3570
|
], 2);
|
|
3570
3571
|
}
|
|
3571
|
-
const
|
|
3572
|
+
const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925"]]), xo = {
|
|
3572
3573
|
props: {
|
|
3573
3574
|
to: {
|
|
3574
3575
|
type: String,
|
|
@@ -3601,15 +3602,15 @@ const wo = /* @__PURE__ */ $(fo, [["render", ko], ["__scopeId", "data-v-49084925
|
|
|
3601
3602
|
}
|
|
3602
3603
|
}
|
|
3603
3604
|
};
|
|
3604
|
-
function
|
|
3605
|
-
return i(),
|
|
3605
|
+
function Eo(e, t, l, n, o, a) {
|
|
3606
|
+
return i(), f(Ze(a.compType(l.to)), W(Y(a.linkProps(l.to))), {
|
|
3606
3607
|
default: r(() => [
|
|
3607
3608
|
le(e.$slots, "default")
|
|
3608
3609
|
]),
|
|
3609
3610
|
_: 3
|
|
3610
3611
|
}, 16);
|
|
3611
3612
|
}
|
|
3612
|
-
const
|
|
3613
|
+
const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
|
|
3613
3614
|
computed: {
|
|
3614
3615
|
// @ts-ignore
|
|
3615
3616
|
device() {
|
|
@@ -3630,7 +3631,7 @@ const Eo = /* @__PURE__ */ $(So, [["render", xo]]), $o = {
|
|
|
3630
3631
|
}
|
|
3631
3632
|
}
|
|
3632
3633
|
}
|
|
3633
|
-
},
|
|
3634
|
+
}, Co = { class: "menu-content" }, To = /* @__PURE__ */ q({
|
|
3634
3635
|
__name: "MenuContent",
|
|
3635
3636
|
props: {
|
|
3636
3637
|
meta: {
|
|
@@ -3644,21 +3645,21 @@ const Eo = /* @__PURE__ */ $(So, [["render", xo]]), $o = {
|
|
|
3644
3645
|
setup(e) {
|
|
3645
3646
|
return (t, l) => {
|
|
3646
3647
|
const n = v("VIcon");
|
|
3647
|
-
return i(), h(
|
|
3648
|
+
return i(), h(S, null, [
|
|
3648
3649
|
u(n, {
|
|
3649
3650
|
name: e.meta.icon || "ra-all"
|
|
3650
3651
|
}, null, 8, ["name"]),
|
|
3651
|
-
b("span",
|
|
3652
|
+
b("span", Co, O(e.meta.title), 1)
|
|
3652
3653
|
], 64);
|
|
3653
3654
|
};
|
|
3654
3655
|
}
|
|
3655
|
-
}),
|
|
3656
|
+
}), Oo = {
|
|
3656
3657
|
name: "SidebarItem",
|
|
3657
3658
|
components: {
|
|
3658
|
-
AppLink:
|
|
3659
|
-
MenuContent:
|
|
3659
|
+
AppLink: $o,
|
|
3660
|
+
MenuContent: To
|
|
3660
3661
|
},
|
|
3661
|
-
mixins: [
|
|
3662
|
+
mixins: [Io],
|
|
3662
3663
|
props: {
|
|
3663
3664
|
// route object
|
|
3664
3665
|
item: {
|
|
@@ -3683,15 +3684,15 @@ const Eo = /* @__PURE__ */ $(So, [["render", xo]]), $o = {
|
|
|
3683
3684
|
}
|
|
3684
3685
|
}
|
|
3685
3686
|
}
|
|
3686
|
-
},
|
|
3687
|
+
}, Bo = {
|
|
3687
3688
|
key: 0,
|
|
3688
3689
|
class: "menu-wrapper"
|
|
3689
3690
|
};
|
|
3690
|
-
function
|
|
3691
|
-
const
|
|
3692
|
-
return l.item.hidden !== !1 ? (i(), h("div",
|
|
3693
|
-
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(
|
|
3694
|
-
l.item.meta ? (i(),
|
|
3691
|
+
function Ao(e, t, l, n, o, a) {
|
|
3692
|
+
const s = v("menu-content"), c = bl, p = v("app-link"), d = v("sidebar-item", !0), m = _l;
|
|
3693
|
+
return l.item.hidden !== !1 ? (i(), h("div", Bo, [
|
|
3694
|
+
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(S, { key: 0 }, [
|
|
3695
|
+
l.item.meta ? (i(), f(p, {
|
|
3695
3696
|
key: 0,
|
|
3696
3697
|
to: l.to,
|
|
3697
3698
|
"new-tab": l.item.meta.newTab
|
|
@@ -3699,10 +3700,10 @@ function Bo(e, t, l, n, o, s) {
|
|
|
3699
3700
|
default: r(() => [
|
|
3700
3701
|
u(c, {
|
|
3701
3702
|
index: l.to,
|
|
3702
|
-
class:
|
|
3703
|
+
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3703
3704
|
}, {
|
|
3704
3705
|
default: r(() => [
|
|
3705
|
-
u(
|
|
3706
|
+
u(s, {
|
|
3706
3707
|
meta: l.item.meta
|
|
3707
3708
|
}, null, 8, ["meta"])
|
|
3708
3709
|
]),
|
|
@@ -3710,58 +3711,58 @@ function Bo(e, t, l, n, o, s) {
|
|
|
3710
3711
|
}, 8, ["index", "class"])
|
|
3711
3712
|
]),
|
|
3712
3713
|
_: 1
|
|
3713
|
-
}, 8, ["to", "new-tab"])) :
|
|
3714
|
-
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m
|
|
3714
|
+
}, 8, ["to", "new-tab"])) : x("", !0)
|
|
3715
|
+
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), f(m, {
|
|
3715
3716
|
key: 1,
|
|
3716
3717
|
ref: "subMenu",
|
|
3717
3718
|
index: l.to,
|
|
3718
|
-
class:
|
|
3719
|
+
class: H({ "submenu-title-noDropdown": !l.isNest }),
|
|
3719
3720
|
"popper-append-to-body": ""
|
|
3720
3721
|
}, {
|
|
3721
3722
|
title: r(() => [
|
|
3722
|
-
l.item.redirect && l.item.redirect !== "#" ? (i(),
|
|
3723
|
+
l.item.redirect && l.item.redirect !== "#" ? (i(), f(p, {
|
|
3723
3724
|
key: 0,
|
|
3724
3725
|
to: l.to
|
|
3725
3726
|
}, {
|
|
3726
3727
|
default: r(() => [
|
|
3727
|
-
u(
|
|
3728
|
+
u(s, {
|
|
3728
3729
|
meta: l.item.meta
|
|
3729
3730
|
}, null, 8, ["meta"])
|
|
3730
3731
|
]),
|
|
3731
3732
|
_: 1
|
|
3732
|
-
}, 8, ["to"])) : (i(),
|
|
3733
|
+
}, 8, ["to"])) : (i(), f(s, {
|
|
3733
3734
|
key: 1,
|
|
3734
3735
|
meta: l.item.meta
|
|
3735
3736
|
}, null, 8, ["meta"]))
|
|
3736
3737
|
]),
|
|
3737
3738
|
default: r(() => [
|
|
3738
|
-
(i(!0), h(
|
|
3739
|
+
(i(!0), h(S, null, B(l.item.children, (_) => (i(), f(d, {
|
|
3739
3740
|
key: _.path,
|
|
3740
3741
|
"is-nest": !0,
|
|
3741
3742
|
item: _,
|
|
3742
|
-
to:
|
|
3743
|
+
to: a.getTo(_),
|
|
3743
3744
|
class: "nest-menu"
|
|
3744
3745
|
}, null, 8, ["item", "to"]))), 128))
|
|
3745
3746
|
]),
|
|
3746
3747
|
_: 1
|
|
3747
|
-
}, 8, ["index", "class"])) :
|
|
3748
|
-
])) :
|
|
3748
|
+
}, 8, ["index", "class"])) : x("", !0)
|
|
3749
|
+
])) : x("", !0);
|
|
3749
3750
|
}
|
|
3750
|
-
const
|
|
3751
|
+
const Ro = /* @__PURE__ */ $(Oo, [["render", Ao]]);
|
|
3751
3752
|
function ft(e) {
|
|
3752
3753
|
return e.filter((t) => {
|
|
3753
3754
|
var l;
|
|
3754
3755
|
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ft(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3755
3756
|
});
|
|
3756
3757
|
}
|
|
3757
|
-
const
|
|
3758
|
+
const Po = {
|
|
3758
3759
|
data() {
|
|
3759
3760
|
return {
|
|
3760
3761
|
selected: ""
|
|
3761
3762
|
};
|
|
3762
3763
|
},
|
|
3763
3764
|
computed: {
|
|
3764
|
-
...
|
|
3765
|
+
...Ce(["remoteRouter"]),
|
|
3765
3766
|
filterRoutes() {
|
|
3766
3767
|
let e = [];
|
|
3767
3768
|
return this.remoteRouter.forEach((t) => {
|
|
@@ -3775,39 +3776,39 @@ const Ro = {
|
|
|
3775
3776
|
}
|
|
3776
3777
|
}
|
|
3777
3778
|
};
|
|
3778
|
-
function
|
|
3779
|
-
const
|
|
3780
|
-
return i(),
|
|
3779
|
+
function Lo(e, t, l, n, o, a) {
|
|
3780
|
+
const s = Te, c = yl, p = Oe;
|
|
3781
|
+
return i(), f(p, {
|
|
3781
3782
|
modelValue: o.selected,
|
|
3782
3783
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
3783
3784
|
filterable: "",
|
|
3784
3785
|
placeholder: "搜索菜单...",
|
|
3785
3786
|
class: "search-menu",
|
|
3786
|
-
onChange:
|
|
3787
|
+
onChange: a.onselected
|
|
3787
3788
|
}, {
|
|
3788
3789
|
default: r(() => [
|
|
3789
|
-
(i(!0), h(
|
|
3790
|
+
(i(!0), h(S, null, B(a.filterRoutes, (d) => (i(), h(S, {
|
|
3790
3791
|
key: d.path
|
|
3791
3792
|
}, [
|
|
3792
|
-
d.children !== void 0 ? (i(), h(
|
|
3793
|
-
d.meta.menuType !== 0 ? (i(),
|
|
3793
|
+
d.children !== void 0 ? (i(), h(S, { key: 0 }, [
|
|
3794
|
+
d.meta.menuType !== 0 ? (i(), f(c, {
|
|
3794
3795
|
key: d.path + "-",
|
|
3795
3796
|
label: d.meta.title
|
|
3796
3797
|
}, {
|
|
3797
3798
|
default: r(() => [
|
|
3798
|
-
(i(!0), h(
|
|
3799
|
-
key:
|
|
3799
|
+
(i(!0), h(S, null, B(d.children, (m, _) => (i(), h(S, {
|
|
3800
|
+
key: m.path
|
|
3800
3801
|
}, [
|
|
3801
|
-
d.meta.menuType !== 0 ? (i(),
|
|
3802
|
+
d.meta.menuType !== 0 ? (i(), f(s, {
|
|
3802
3803
|
key: 0,
|
|
3803
|
-
label: (_ === d.children.length - 1 ? "└─" : "├─") +
|
|
3804
|
-
value:
|
|
3805
|
-
}, null, 8, ["label", "value"])) :
|
|
3804
|
+
label: (_ === d.children.length - 1 ? "└─" : "├─") + m.meta.title,
|
|
3805
|
+
value: m.path
|
|
3806
|
+
}, null, 8, ["label", "value"])) : x("", !0)
|
|
3806
3807
|
], 64))), 128))
|
|
3807
3808
|
]),
|
|
3808
3809
|
_: 2
|
|
3809
|
-
}, 1032, ["label"])) :
|
|
3810
|
-
], 64)) : (i(),
|
|
3810
|
+
}, 1032, ["label"])) : x("", !0)
|
|
3811
|
+
], 64)) : (i(), f(s, {
|
|
3811
3812
|
key: 1,
|
|
3812
3813
|
label: "" + d.meta.title,
|
|
3813
3814
|
value: d.path
|
|
@@ -3817,12 +3818,12 @@ function Po(e, t, l, n, o, s) {
|
|
|
3817
3818
|
_: 1
|
|
3818
3819
|
}, 8, ["modelValue", "onChange"]);
|
|
3819
3820
|
}
|
|
3820
|
-
const
|
|
3821
|
+
const Mo = /* @__PURE__ */ $(Po, [["render", Lo], ["__scopeId", "data-v-811395be"]]);
|
|
3821
3822
|
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 || {}), P = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(P || {});
|
|
3822
|
-
const
|
|
3823
|
-
components: { SidebarItem:
|
|
3823
|
+
const Do = q({
|
|
3824
|
+
components: { SidebarItem: Ro, Logo: So, SearchMenu: Mo },
|
|
3824
3825
|
computed: {
|
|
3825
|
-
...
|
|
3826
|
+
...Ce(["sidebar", "remoteRouter", "customRouter"]),
|
|
3826
3827
|
routes() {
|
|
3827
3828
|
let e = [];
|
|
3828
3829
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
@@ -3867,18 +3868,18 @@ const Mo = q({
|
|
|
3867
3868
|
}
|
|
3868
3869
|
}
|
|
3869
3870
|
});
|
|
3870
|
-
function
|
|
3871
|
-
const
|
|
3871
|
+
function jo(e, t, l, n, o, a) {
|
|
3872
|
+
const s = v("logo"), c = v("search-menu"), p = v("sidebar-item"), d = vl, m = gl;
|
|
3872
3873
|
return i(), h("div", {
|
|
3873
|
-
class:
|
|
3874
|
+
class: H({ "has-logo": e.showLogo })
|
|
3874
3875
|
}, [
|
|
3875
|
-
e.showLogo ? (i(),
|
|
3876
|
+
e.showLogo ? (i(), f(s, {
|
|
3876
3877
|
key: 0,
|
|
3877
3878
|
collapse: e.isCollapse
|
|
3878
|
-
}, null, 8, ["collapse"])) :
|
|
3879
|
-
u(
|
|
3879
|
+
}, null, 8, ["collapse"])) : x("", !0),
|
|
3880
|
+
u(m, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3880
3881
|
default: r(() => [
|
|
3881
|
-
e.isCollapse ?
|
|
3882
|
+
e.isCollapse ? x("", !0) : (i(), f(c, { key: 0 })),
|
|
3882
3883
|
u(d, {
|
|
3883
3884
|
"default-active": e.activeMenu,
|
|
3884
3885
|
collapse: e.isCollapse,
|
|
@@ -3890,13 +3891,13 @@ function Do(e, t, l, n, o, s) {
|
|
|
3890
3891
|
mode: "vertical"
|
|
3891
3892
|
}, {
|
|
3892
3893
|
default: r(() => [
|
|
3893
|
-
(i(!0), h(
|
|
3894
|
+
(i(!0), h(S, null, B(e.routes, (_, T) => (i(), h(S, {
|
|
3894
3895
|
key: T + "-module"
|
|
3895
3896
|
}, [
|
|
3896
|
-
(i(!0), h(
|
|
3897
|
-
key:
|
|
3898
|
-
item:
|
|
3899
|
-
to: e.$router.resolve(
|
|
3897
|
+
(i(!0), h(S, null, B(e.filterRoute(_.routes), (w) => (i(), f(p, {
|
|
3898
|
+
key: w.path,
|
|
3899
|
+
item: w,
|
|
3900
|
+
to: e.$router.resolve(w.redirect ? w.redirect : w).fullPath
|
|
3900
3901
|
}, null, 8, ["item", "to"]))), 128))
|
|
3901
3902
|
], 64))), 128))
|
|
3902
3903
|
]),
|
|
@@ -3907,64 +3908,64 @@ function Do(e, t, l, n, o, s) {
|
|
|
3907
3908
|
})
|
|
3908
3909
|
], 2);
|
|
3909
3910
|
}
|
|
3910
|
-
const
|
|
3911
|
-
const
|
|
3911
|
+
const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-800716bb"]]);
|
|
3912
|
+
const Vo = { class: "app-main" }, qo = {
|
|
3912
3913
|
__name: "AppMain",
|
|
3913
3914
|
setup(e) {
|
|
3914
|
-
const t =
|
|
3915
|
+
const t = pe(), l = [], n = L(0);
|
|
3915
3916
|
return nl(() => {
|
|
3916
3917
|
var o;
|
|
3917
3918
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3918
|
-
}), (o,
|
|
3919
|
-
const
|
|
3920
|
-
return i(), h("section",
|
|
3921
|
-
(i(),
|
|
3922
|
-
key: o.$route.fullPath +
|
|
3919
|
+
}), (o, a) => {
|
|
3920
|
+
const s = v("router-view"), c = kl;
|
|
3921
|
+
return i(), h("section", Vo, [
|
|
3922
|
+
(i(), f(s, {
|
|
3923
|
+
key: o.$route.fullPath + k(n)
|
|
3923
3924
|
})),
|
|
3924
3925
|
u(c, { bottom: 50 })
|
|
3925
3926
|
]);
|
|
3926
3927
|
};
|
|
3927
3928
|
}
|
|
3928
|
-
},
|
|
3929
|
-
const
|
|
3929
|
+
}, Uo = /* @__PURE__ */ $(qo, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3930
|
+
const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
3930
3931
|
__name: "index",
|
|
3931
3932
|
setup(e) {
|
|
3932
|
-
const t = lt(), { body: l } = document, n =
|
|
3933
|
+
const t = lt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
|
|
3933
3934
|
hideSidebar: !n.value.opened,
|
|
3934
3935
|
openSidebar: n.value.opened,
|
|
3935
3936
|
withoutAnimation: n.value.withoutAnimation,
|
|
3936
3937
|
mobile: o.value === "mobile"
|
|
3937
|
-
})), c = () => l.getBoundingClientRect().width - 1 <
|
|
3938
|
+
})), c = () => l.getBoundingClientRect().width - 1 < Fo;
|
|
3938
3939
|
Tl(window, "resize", () => d());
|
|
3939
3940
|
const p = () => {
|
|
3940
3941
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
3941
3942
|
}, d = () => {
|
|
3942
3943
|
if (!document.hidden) {
|
|
3943
|
-
const
|
|
3944
|
-
t.dispatch("app/toggleDevice",
|
|
3944
|
+
const m = c();
|
|
3945
|
+
t.dispatch("app/toggleDevice", m ? "mobile" : "desktop"), m && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
3945
3946
|
}
|
|
3946
3947
|
};
|
|
3947
|
-
return (
|
|
3948
|
-
class:
|
|
3948
|
+
return (m, _) => (i(), h("div", {
|
|
3949
|
+
class: H([k(s), "app-wrapper"])
|
|
3949
3950
|
}, [
|
|
3950
|
-
|
|
3951
|
+
k(o) === "mobile" && k(n).opened ? (i(), h("div", {
|
|
3951
3952
|
key: 0,
|
|
3952
3953
|
class: "drawer-bg",
|
|
3953
3954
|
onClick: p
|
|
3954
|
-
})) :
|
|
3955
|
-
u(
|
|
3956
|
-
b("div",
|
|
3955
|
+
})) : x("", !0),
|
|
3956
|
+
u(k(No), { class: "sidebar-container" }),
|
|
3957
|
+
b("div", Ho, [
|
|
3957
3958
|
b("div", {
|
|
3958
|
-
class:
|
|
3959
|
+
class: H({ "fixed-header": k(a) })
|
|
3959
3960
|
}, [
|
|
3960
|
-
u(
|
|
3961
|
+
u(k(fo))
|
|
3961
3962
|
], 2),
|
|
3962
|
-
u(
|
|
3963
|
+
u(k(Uo))
|
|
3963
3964
|
])
|
|
3964
3965
|
], 2));
|
|
3965
3966
|
}
|
|
3966
|
-
}, ht = /* @__PURE__ */ $(
|
|
3967
|
-
class
|
|
3967
|
+
}, ht = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-957442cd"]]);
|
|
3968
|
+
class Jo {
|
|
3968
3969
|
constructor() {
|
|
3969
3970
|
M(this, "type", "qrcode");
|
|
3970
3971
|
}
|
|
@@ -3976,7 +3977,7 @@ class Go {
|
|
|
3976
3977
|
showQrCode() {
|
|
3977
3978
|
}
|
|
3978
3979
|
}
|
|
3979
|
-
class
|
|
3980
|
+
class zo extends Jo {
|
|
3980
3981
|
constructor(l) {
|
|
3981
3982
|
super();
|
|
3982
3983
|
M(this, "type", "qrcode");
|
|
@@ -3994,93 +3995,111 @@ class Jo extends Go {
|
|
|
3994
3995
|
return l;
|
|
3995
3996
|
}
|
|
3996
3997
|
showQrCode() {
|
|
3997
|
-
const l = (
|
|
3998
|
-
const
|
|
3998
|
+
const l = (a) => {
|
|
3999
|
+
const s = {
|
|
3999
4000
|
appid: this.appid,
|
|
4000
4001
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4001
4002
|
};
|
|
4002
|
-
return Q(this.reloadUrl,
|
|
4003
|
+
return Q(this.reloadUrl, s) + "&" + zt(a || {});
|
|
4003
4004
|
}, n = () => {
|
|
4004
|
-
const
|
|
4005
|
+
const a = {
|
|
4005
4006
|
goto: encodeURIComponent(l()),
|
|
4006
4007
|
style: encodeURIComponent(this.style)
|
|
4007
4008
|
};
|
|
4008
|
-
return Q(this.qrCodeUrl,
|
|
4009
|
-
}, o = (
|
|
4010
|
-
const { origin:
|
|
4011
|
-
|
|
4009
|
+
return Q(this.qrCodeUrl, a);
|
|
4010
|
+
}, o = (a) => {
|
|
4011
|
+
const { origin: s, data: c } = a;
|
|
4012
|
+
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: c }));
|
|
4012
4013
|
};
|
|
4013
4014
|
this.iframe.src = n(), Jt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4014
4015
|
"message",
|
|
4015
|
-
(
|
|
4016
|
+
(a) => o(a),
|
|
4016
4017
|
!1
|
|
4017
|
-
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (
|
|
4018
|
+
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
|
|
4018
4019
|
}
|
|
4019
4020
|
}
|
|
4020
|
-
const
|
|
4021
|
-
dingtalk: (e) => new
|
|
4021
|
+
const Ko = {
|
|
4022
|
+
dingtalk: (e) => new zo(e)
|
|
4022
4023
|
};
|
|
4023
|
-
function
|
|
4024
|
-
return A(E.state.settings.sso || {},
|
|
4024
|
+
function Wo() {
|
|
4025
|
+
return A(E.state.settings.sso || {}, Ko);
|
|
4025
4026
|
}
|
|
4026
|
-
function
|
|
4027
|
-
const t =
|
|
4027
|
+
function Zo(e) {
|
|
4028
|
+
const t = Wo(), l = E.state.settings.activeSsoKey || "", n = t[l];
|
|
4028
4029
|
if (n !== void 0)
|
|
4029
4030
|
return n(e);
|
|
4030
4031
|
}
|
|
4031
|
-
const
|
|
4032
|
+
const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
|
|
4032
4033
|
__name: "login",
|
|
4033
4034
|
setup(e) {
|
|
4034
|
-
const t = ol(), l =
|
|
4035
|
+
const t = ol(), l = pe(), n = j(() => E.state.settings.loginTips), o = L(0), a = () => o.value++, s = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
|
|
4035
4036
|
username: "",
|
|
4036
|
-
password: ""
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4037
|
+
password: "",
|
|
4038
|
+
captcha: "",
|
|
4039
|
+
sing: ""
|
|
4040
|
+
}), p = () => {
|
|
4041
|
+
if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
|
|
4042
|
+
wl.error("用户名, 密码, 验证码是必须的");
|
|
4040
4043
|
return;
|
|
4041
4044
|
}
|
|
4042
|
-
E.dispatch("user/login",
|
|
4043
|
-
var
|
|
4044
|
-
t.push({ path: ((
|
|
4045
|
+
c.value.sing = Bl(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), E.dispatch("user/login", c.value).then((d) => {
|
|
4046
|
+
var m;
|
|
4047
|
+
t.push({ path: ((m = l.query) == null ? void 0 : m.redirect) || "/" });
|
|
4045
4048
|
});
|
|
4046
4049
|
};
|
|
4047
|
-
return L(), (
|
|
4048
|
-
|
|
4049
|
-
b("form",
|
|
4050
|
-
|
|
4051
|
-
"onUpdate:modelValue":
|
|
4050
|
+
return L(), (d, m) => (i(), h("div", Qo, [
|
|
4051
|
+
Xo,
|
|
4052
|
+
b("form", Yo, [
|
|
4053
|
+
ie(b("input", {
|
|
4054
|
+
"onUpdate:modelValue": m[0] || (m[0] = (_) => k(c).username = _),
|
|
4052
4055
|
type: "text",
|
|
4053
4056
|
placeholder: "用户名",
|
|
4054
4057
|
class: "input"
|
|
4055
4058
|
}, null, 512), [
|
|
4056
|
-
[
|
|
4059
|
+
[he, k(c).username]
|
|
4057
4060
|
]),
|
|
4058
|
-
|
|
4059
|
-
"onUpdate:modelValue":
|
|
4061
|
+
ie(b("input", {
|
|
4062
|
+
"onUpdate:modelValue": m[1] || (m[1] = (_) => k(c).password = _),
|
|
4060
4063
|
type: "password",
|
|
4061
4064
|
placeholder: "密码",
|
|
4062
4065
|
class: "input"
|
|
4063
4066
|
}, null, 512), [
|
|
4064
|
-
[
|
|
4067
|
+
[he, k(c).password]
|
|
4068
|
+
]),
|
|
4069
|
+
b("div", ea, [
|
|
4070
|
+
ie(b("input", {
|
|
4071
|
+
"onUpdate:modelValue": m[2] || (m[2] = (_) => k(c).captcha = _),
|
|
4072
|
+
type: "text",
|
|
4073
|
+
placeholder: "验证码",
|
|
4074
|
+
class: "input-captcha"
|
|
4075
|
+
}, null, 512), [
|
|
4076
|
+
[he, k(c).captcha]
|
|
4077
|
+
]),
|
|
4078
|
+
b("img", {
|
|
4079
|
+
class: "captcha-img",
|
|
4080
|
+
src: "/xapi/user/captcha?ts=" + k(o),
|
|
4081
|
+
title: "点击刷新",
|
|
4082
|
+
onClick: a
|
|
4083
|
+
}, null, 8, ta)
|
|
4065
4084
|
]),
|
|
4066
4085
|
b("div", {
|
|
4067
|
-
class:
|
|
4068
|
-
onClick:
|
|
4069
|
-
}, "登录"),
|
|
4070
|
-
b("div",
|
|
4071
|
-
b("div", null, O(
|
|
4086
|
+
class: H({ input: !0, button: !0, "no-ready": !s.value }),
|
|
4087
|
+
onClick: p
|
|
4088
|
+
}, "登录", 2),
|
|
4089
|
+
b("div", la, [
|
|
4090
|
+
b("div", null, O(n.value), 1)
|
|
4072
4091
|
]),
|
|
4073
|
-
b("div",
|
|
4074
|
-
|
|
4075
|
-
(i(!0), h(
|
|
4092
|
+
b("div", na, [
|
|
4093
|
+
oa,
|
|
4094
|
+
(i(!0), h(S, null, B(Object.keys([]), (_) => (i(), h("div", { key: _ }, O(_), 1))), 128))
|
|
4076
4095
|
])
|
|
4077
4096
|
])
|
|
4078
4097
|
]));
|
|
4079
4098
|
}
|
|
4080
4099
|
});
|
|
4081
|
-
const
|
|
4100
|
+
const sa = {
|
|
4082
4101
|
name: "NotFoundPage"
|
|
4083
|
-
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e),
|
|
4102
|
+
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4084
4103
|
width: "380px",
|
|
4085
4104
|
height: "500px",
|
|
4086
4105
|
viewBox: "0 0 837 1045",
|
|
@@ -4133,7 +4152,7 @@ const ns = {
|
|
|
4133
4152
|
"sketch:type": "MSShapeGroup"
|
|
4134
4153
|
})
|
|
4135
4154
|
])
|
|
4136
|
-
], -1)),
|
|
4155
|
+
], -1)), ca = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4137
4156
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4138
4157
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4139
4158
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4144,14 +4163,14 @@ const ns = {
|
|
|
4144
4163
|
}, "Go to Home Page")
|
|
4145
4164
|
])
|
|
4146
4165
|
])
|
|
4147
|
-
], -1)),
|
|
4148
|
-
|
|
4149
|
-
|
|
4166
|
+
], -1)), ua = [
|
|
4167
|
+
ra,
|
|
4168
|
+
ca
|
|
4150
4169
|
];
|
|
4151
|
-
function
|
|
4152
|
-
return i(), h("div",
|
|
4170
|
+
function pa(e, t, l, n, o, a) {
|
|
4171
|
+
return i(), h("div", ia, ua);
|
|
4153
4172
|
}
|
|
4154
|
-
const
|
|
4173
|
+
const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803"]]), ma = [
|
|
4155
4174
|
{
|
|
4156
4175
|
path: "/",
|
|
4157
4176
|
component: ht,
|
|
@@ -4164,78 +4183,78 @@ const cs = /* @__PURE__ */ $(ns, [["render", rs], ["__scopeId", "data-v-26068803
|
|
|
4164
4183
|
{
|
|
4165
4184
|
path: "dashboard",
|
|
4166
4185
|
name: "Dashboard",
|
|
4167
|
-
component:
|
|
4186
|
+
component: on,
|
|
4168
4187
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4169
4188
|
}
|
|
4170
4189
|
]
|
|
4171
4190
|
},
|
|
4172
4191
|
{
|
|
4173
4192
|
path: "/login",
|
|
4174
|
-
component:
|
|
4193
|
+
component: aa,
|
|
4175
4194
|
meta: { title: "用户登录", menuType: 0 },
|
|
4176
4195
|
hidden: !0
|
|
4177
4196
|
},
|
|
4178
4197
|
{
|
|
4179
4198
|
path: "/404",
|
|
4180
|
-
component:
|
|
4199
|
+
component: da,
|
|
4181
4200
|
meta: { menuType: 0 },
|
|
4182
4201
|
hidden: !0
|
|
4183
4202
|
}
|
|
4184
|
-
], z =
|
|
4185
|
-
history:
|
|
4186
|
-
routes:
|
|
4203
|
+
], z = al({
|
|
4204
|
+
history: sl(),
|
|
4205
|
+
routes: ma
|
|
4187
4206
|
});
|
|
4188
|
-
|
|
4189
|
-
function
|
|
4207
|
+
ke.configure({ showSpinner: !1 });
|
|
4208
|
+
function fa(e) {
|
|
4190
4209
|
e.beforeEach((t, l, n) => {
|
|
4191
|
-
|
|
4210
|
+
ke.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4192
4211
|
}), e.afterEach((t) => {
|
|
4193
4212
|
t.matched.length > 0 && E.commit("user/updateState", {
|
|
4194
4213
|
key: "path",
|
|
4195
4214
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4196
|
-
}),
|
|
4215
|
+
}), ke.done();
|
|
4197
4216
|
});
|
|
4198
4217
|
}
|
|
4199
|
-
function
|
|
4218
|
+
function ha() {
|
|
4200
4219
|
return E.state.user.isLodeRemoteRoutes;
|
|
4201
4220
|
}
|
|
4202
4221
|
function _t() {
|
|
4203
4222
|
return E.state.settings.whiteRoutes || [];
|
|
4204
4223
|
}
|
|
4205
|
-
function
|
|
4224
|
+
function ba() {
|
|
4206
4225
|
return E.state.user.token;
|
|
4207
4226
|
}
|
|
4208
|
-
function
|
|
4227
|
+
function _a(e) {
|
|
4209
4228
|
e.beforeEach(async (t, l, n) => {
|
|
4210
4229
|
var p, d;
|
|
4211
4230
|
if (_t().indexOf(t.path) !== -1) {
|
|
4212
4231
|
n();
|
|
4213
4232
|
return;
|
|
4214
4233
|
}
|
|
4215
|
-
if (
|
|
4234
|
+
if (ba()) {
|
|
4216
4235
|
(p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4217
4236
|
return;
|
|
4218
4237
|
}
|
|
4219
|
-
const
|
|
4220
|
-
if (!
|
|
4221
|
-
n(`/login?redirect=${
|
|
4238
|
+
const a = t.query.redirect || t.path, s = Zo({});
|
|
4239
|
+
if (!s) {
|
|
4240
|
+
n(`/login?redirect=${a}`);
|
|
4222
4241
|
return;
|
|
4223
4242
|
}
|
|
4224
|
-
const c =
|
|
4243
|
+
const c = s.flag();
|
|
4225
4244
|
if (c && await E.dispatch("user/login", { ticket: c })) {
|
|
4226
4245
|
n();
|
|
4227
4246
|
return;
|
|
4228
4247
|
}
|
|
4229
|
-
|
|
4248
|
+
s.jumpToLoginPage(n, `/login?redirect=${a}`);
|
|
4230
4249
|
});
|
|
4231
4250
|
}
|
|
4232
|
-
const
|
|
4233
|
-
|
|
4251
|
+
const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), ka = [
|
|
4252
|
+
ga
|
|
4234
4253
|
];
|
|
4235
|
-
function
|
|
4236
|
-
return i(), h("div",
|
|
4254
|
+
function wa(e, t) {
|
|
4255
|
+
return i(), h("div", va, ka);
|
|
4237
4256
|
}
|
|
4238
|
-
const yt = /* @__PURE__ */ $(
|
|
4257
|
+
const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
4239
4258
|
name: "VNotice",
|
|
4240
4259
|
props: {
|
|
4241
4260
|
dataApi: {
|
|
@@ -4263,16 +4282,16 @@ const yt = /* @__PURE__ */ $(hs, [["render", vs]]), gs = {
|
|
|
4263
4282
|
this.title = this.notice.title;
|
|
4264
4283
|
}
|
|
4265
4284
|
};
|
|
4266
|
-
function
|
|
4267
|
-
const
|
|
4285
|
+
function xa(e, t, l, n, o, a) {
|
|
4286
|
+
const s = Be;
|
|
4268
4287
|
return i(), h("div", null, [
|
|
4269
|
-
o.hasNotice ? (i(),
|
|
4288
|
+
o.hasNotice ? (i(), f(s, {
|
|
4270
4289
|
key: 0,
|
|
4271
4290
|
title: o.title
|
|
4272
|
-
}, null, 8, ["title"])) :
|
|
4291
|
+
}, null, 8, ["title"])) : x("", !0)
|
|
4273
4292
|
]);
|
|
4274
4293
|
}
|
|
4275
|
-
const vt = /* @__PURE__ */ $(
|
|
4294
|
+
const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
4276
4295
|
components: { VLoading: yt, VNotice: vt },
|
|
4277
4296
|
props: {
|
|
4278
4297
|
schemaHandler: {
|
|
@@ -4308,72 +4327,72 @@ const vt = /* @__PURE__ */ $(gs, [["render", ks]]), ws = q({
|
|
|
4308
4327
|
beforeCreate() {
|
|
4309
4328
|
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 };
|
|
4310
4329
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4311
|
-
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0,
|
|
4330
|
+
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
|
|
4312
4331
|
title: o.notice
|
|
4313
4332
|
} : 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), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4314
4333
|
});
|
|
4315
4334
|
}
|
|
4316
4335
|
});
|
|
4317
|
-
const
|
|
4318
|
-
function
|
|
4319
|
-
const
|
|
4320
|
-
return i(), h(
|
|
4321
|
-
e.owners.length > 0 ? (i(),
|
|
4336
|
+
const $a = ["innerHTML"];
|
|
4337
|
+
function Ia(e, t, l, n, o, a) {
|
|
4338
|
+
const s = Be, c = vt, p = yt;
|
|
4339
|
+
return i(), h(S, null, [
|
|
4340
|
+
e.owners.length > 0 ? (i(), f(s, {
|
|
4322
4341
|
key: 0,
|
|
4323
4342
|
title: `该页面功能对应开发: [ ${e.owners.join(", ")} ] 有问题可直接企微反馈`,
|
|
4324
4343
|
type: "info",
|
|
4325
4344
|
style: { margin: "0 0 20px 0" },
|
|
4326
4345
|
closable: !1
|
|
4327
|
-
}, null, 8, ["title"])) :
|
|
4346
|
+
}, null, 8, ["title"])) : x("", !0),
|
|
4328
4347
|
e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
|
|
4329
4348
|
key: 1,
|
|
4330
4349
|
class: "offline-notice",
|
|
4331
4350
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4332
|
-
}, null, 8,
|
|
4333
|
-
e.haveNotice ? (i(),
|
|
4351
|
+
}, null, 8, $a)) : (i(), h(S, { key: 2 }, [
|
|
4352
|
+
e.haveNotice ? (i(), f(c, {
|
|
4334
4353
|
key: 0,
|
|
4335
4354
|
notice: e.notice,
|
|
4336
4355
|
style: { margin: "0 0 20px 0" },
|
|
4337
4356
|
"data-api": e.noticeApi
|
|
4338
|
-
}, null, 8, ["notice", "data-api"])) :
|
|
4339
|
-
e.loading ? (i(),
|
|
4357
|
+
}, null, 8, ["notice", "data-api"])) : x("", !0),
|
|
4358
|
+
e.loading ? (i(), f(p, { key: 1 })) : le(e.$slots, "default", W(G({ key: 2 }, e.schema)), void 0, !0)
|
|
4340
4359
|
], 64))
|
|
4341
4360
|
], 64);
|
|
4342
4361
|
}
|
|
4343
|
-
const
|
|
4362
|
+
const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8"]]), gt = {
|
|
4344
4363
|
__name: "table",
|
|
4345
4364
|
setup(e) {
|
|
4346
4365
|
const t = (l, n) => {
|
|
4347
4366
|
if (l.orderBy) {
|
|
4348
|
-
const
|
|
4367
|
+
const a = {
|
|
4349
4368
|
prop: l.orderBy.field,
|
|
4350
4369
|
order: l.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4351
4370
|
};
|
|
4352
|
-
l.tableProps = A(l.tableProps, { defaultSort:
|
|
4371
|
+
l.tableProps = A(l.tableProps, { defaultSort: a });
|
|
4353
4372
|
}
|
|
4354
4373
|
const o = Object.keys(oe.props);
|
|
4355
|
-
return Object.keys(l).forEach((
|
|
4356
|
-
o.indexOf(
|
|
4374
|
+
return Object.keys(l).forEach((a) => {
|
|
4375
|
+
o.indexOf(a) === -1 && delete l[a];
|
|
4357
4376
|
}), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
|
|
4358
4377
|
};
|
|
4359
|
-
return (l, n) => (i(),
|
|
4378
|
+
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4360
4379
|
default: r((o) => [
|
|
4361
|
-
u(
|
|
4380
|
+
u(k(oe), W(Y(o)), null, 16)
|
|
4362
4381
|
]),
|
|
4363
4382
|
_: 1
|
|
4364
4383
|
}));
|
|
4365
4384
|
}
|
|
4366
|
-
},
|
|
4385
|
+
}, xe = {
|
|
4367
4386
|
__name: "form",
|
|
4368
4387
|
setup(e) {
|
|
4369
|
-
const t =
|
|
4370
|
-
const
|
|
4371
|
-
return Object.keys(n).forEach((
|
|
4372
|
-
if (
|
|
4373
|
-
delete n[
|
|
4388
|
+
const t = pe(), l = (n, o) => {
|
|
4389
|
+
const a = Object.keys(J.props);
|
|
4390
|
+
return Object.keys(n).forEach((s) => {
|
|
4391
|
+
if (a.indexOf(s) === -1) {
|
|
4392
|
+
delete n[s];
|
|
4374
4393
|
return;
|
|
4375
4394
|
}
|
|
4376
|
-
/.*Api$/.test(
|
|
4395
|
+
/.*Api$/.test(s) && (n[s] = Q(n[s], t.params));
|
|
4377
4396
|
}), 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 = A({
|
|
4378
4397
|
saveApi: o + "/save",
|
|
4379
4398
|
afterSubmit: "goback",
|
|
@@ -4381,14 +4400,14 @@ const ae = /* @__PURE__ */ $(ws, [["render", xs], ["__scopeId", "data-v-015774e8
|
|
|
4381
4400
|
mod: t.params.id ? "edit" : "create"
|
|
4382
4401
|
}, n), n;
|
|
4383
4402
|
};
|
|
4384
|
-
return (n, o) => (i(),
|
|
4385
|
-
default: r((
|
|
4386
|
-
u(
|
|
4403
|
+
return (n, o) => (i(), f(se, { "schema-handler": l }, {
|
|
4404
|
+
default: r((a) => [
|
|
4405
|
+
u(k(J), W(Y(a)), null, 16)
|
|
4387
4406
|
]),
|
|
4388
4407
|
_: 1
|
|
4389
4408
|
}));
|
|
4390
4409
|
}
|
|
4391
|
-
},
|
|
4410
|
+
}, Ca = q({
|
|
4392
4411
|
name: "VTree",
|
|
4393
4412
|
components: {
|
|
4394
4413
|
VForm: J
|
|
@@ -4525,19 +4544,19 @@ const ae = /* @__PURE__ */ $(ws, [["render", xs], ["__scopeId", "data-v-015774e8
|
|
|
4525
4544
|
method: "POST",
|
|
4526
4545
|
url: Q(this.$props.saveApi, o),
|
|
4527
4546
|
data: o
|
|
4528
|
-
}).then(({ code:
|
|
4529
|
-
|
|
4547
|
+
}).then(({ code: a }) => {
|
|
4548
|
+
a !== 0 && this.$message.error("操作失败");
|
|
4530
4549
|
});
|
|
4531
4550
|
}
|
|
4532
4551
|
}
|
|
4533
4552
|
});
|
|
4534
|
-
const
|
|
4553
|
+
const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Ra = {
|
|
4535
4554
|
key: 1,
|
|
4536
4555
|
style: { color: "#E6A23C" }
|
|
4537
|
-
},
|
|
4538
|
-
function
|
|
4539
|
-
const
|
|
4540
|
-
return i(),
|
|
4556
|
+
}, Pa = { class: "card-header" };
|
|
4557
|
+
function La(e, t, l, n, o, a) {
|
|
4558
|
+
const s = ue, c = Sl, p = Ae, d = de, m = v("v-form"), _ = ae;
|
|
4559
|
+
return i(), f(_, {
|
|
4541
4560
|
class: "tree-box",
|
|
4542
4561
|
gutter: 20
|
|
4543
4562
|
}, {
|
|
@@ -4549,9 +4568,9 @@ function As(e, t, l, n, o, s) {
|
|
|
4549
4568
|
default: r(() => [
|
|
4550
4569
|
u(p, { shadow: "never" }, {
|
|
4551
4570
|
header: r(() => [
|
|
4552
|
-
b("div",
|
|
4553
|
-
|
|
4554
|
-
u(
|
|
4571
|
+
b("div", Ta, [
|
|
4572
|
+
Oa,
|
|
4573
|
+
u(s, {
|
|
4555
4574
|
type: "text",
|
|
4556
4575
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4557
4576
|
}, {
|
|
@@ -4563,7 +4582,7 @@ function As(e, t, l, n, o, s) {
|
|
|
4563
4582
|
])
|
|
4564
4583
|
]),
|
|
4565
4584
|
default: r(() => [
|
|
4566
|
-
(e.treeData || []).length > 0 ? (i(),
|
|
4585
|
+
(e.treeData || []).length > 0 ? (i(), f(c, G({
|
|
4567
4586
|
key: 0,
|
|
4568
4587
|
style: { height: "100vh" },
|
|
4569
4588
|
data: e.treeData,
|
|
@@ -4574,48 +4593,48 @@ function As(e, t, l, n, o, s) {
|
|
|
4574
4593
|
"allow-drop": e.allowDrop,
|
|
4575
4594
|
onNodeDragEnd: e.handleDragEnd
|
|
4576
4595
|
}), {
|
|
4577
|
-
default: r(({ node: T, data:
|
|
4578
|
-
b("span",
|
|
4579
|
-
|
|
4596
|
+
default: r(({ node: T, data: w }) => [
|
|
4597
|
+
b("span", Ba, [
|
|
4598
|
+
w[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(w[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ra, "请在右侧表单中修改 --> ")),
|
|
4580
4599
|
b("span", null, [
|
|
4581
|
-
|
|
4600
|
+
w[e.localTreeProps.props.label] ? (i(), f(s, {
|
|
4582
4601
|
key: 0,
|
|
4583
4602
|
class: "button",
|
|
4584
4603
|
type: "text",
|
|
4585
|
-
onClick: () => e.onclick(
|
|
4604
|
+
onClick: () => e.onclick(w)
|
|
4586
4605
|
}, {
|
|
4587
4606
|
default: r(() => [
|
|
4588
4607
|
g("编辑")
|
|
4589
4608
|
]),
|
|
4590
4609
|
_: 2
|
|
4591
|
-
}, 1032, ["onClick"])) :
|
|
4592
|
-
e.canAppend(
|
|
4610
|
+
}, 1032, ["onClick"])) : x("", !0),
|
|
4611
|
+
e.canAppend(w, T) ? (i(), f(s, {
|
|
4593
4612
|
key: 1,
|
|
4594
4613
|
class: "button",
|
|
4595
4614
|
type: "text",
|
|
4596
|
-
onClick: () => e.append(
|
|
4615
|
+
onClick: () => e.append(w, T)
|
|
4597
4616
|
}, {
|
|
4598
4617
|
default: r(() => [
|
|
4599
4618
|
g("添加")
|
|
4600
4619
|
]),
|
|
4601
4620
|
_: 2
|
|
4602
|
-
}, 1032, ["onClick"])) :
|
|
4603
|
-
|
|
4621
|
+
}, 1032, ["onClick"])) : x("", !0),
|
|
4622
|
+
w.children === void 0 || w.children.length === 0 ? (i(), f(s, {
|
|
4604
4623
|
key: 2,
|
|
4605
4624
|
class: "button",
|
|
4606
4625
|
type: "text",
|
|
4607
|
-
onClick: () => e.remove(
|
|
4626
|
+
onClick: () => e.remove(w)
|
|
4608
4627
|
}, {
|
|
4609
4628
|
default: r(() => [
|
|
4610
4629
|
g("删除")
|
|
4611
4630
|
]),
|
|
4612
4631
|
_: 2
|
|
4613
|
-
}, 1032, ["onClick"])) :
|
|
4632
|
+
}, 1032, ["onClick"])) : x("", !0)
|
|
4614
4633
|
])
|
|
4615
4634
|
])
|
|
4616
4635
|
]),
|
|
4617
4636
|
_: 1
|
|
4618
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4637
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : x("", !0)
|
|
4619
4638
|
]),
|
|
4620
4639
|
_: 1
|
|
4621
4640
|
})
|
|
@@ -4627,24 +4646,24 @@ function As(e, t, l, n, o, s) {
|
|
|
4627
4646
|
class: "tree-form"
|
|
4628
4647
|
}, {
|
|
4629
4648
|
default: r(() => [
|
|
4630
|
-
e.type ? (i(),
|
|
4649
|
+
e.type ? (i(), f(p, {
|
|
4631
4650
|
key: 0,
|
|
4632
4651
|
shadow: "never"
|
|
4633
4652
|
}, {
|
|
4634
4653
|
header: r(() => [
|
|
4635
|
-
b("div",
|
|
4654
|
+
b("div", Pa, [
|
|
4636
4655
|
b("span", null, O(e.formType), 1)
|
|
4637
4656
|
])
|
|
4638
4657
|
]),
|
|
4639
4658
|
default: r(() => [
|
|
4640
|
-
(i(), m
|
|
4659
|
+
(i(), f(m, G({
|
|
4641
4660
|
key: e.formkey,
|
|
4642
4661
|
modelValue: e.formData,
|
|
4643
4662
|
"onUpdate:modelValue": t[1] || (t[1] = (T) => e.formData = T)
|
|
4644
4663
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4645
4664
|
]),
|
|
4646
4665
|
_: 1
|
|
4647
|
-
})) :
|
|
4666
|
+
})) : x("", !0)
|
|
4648
4667
|
]),
|
|
4649
4668
|
_: 1
|
|
4650
4669
|
})
|
|
@@ -4652,23 +4671,23 @@ function As(e, t, l, n, o, s) {
|
|
|
4652
4671
|
_: 1
|
|
4653
4672
|
});
|
|
4654
4673
|
}
|
|
4655
|
-
const Fe = /* @__PURE__ */ $(
|
|
4674
|
+
const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
4656
4675
|
__name: "tree",
|
|
4657
4676
|
setup(e) {
|
|
4658
4677
|
const t = (l, n) => {
|
|
4659
4678
|
const o = Object.keys(Fe.props);
|
|
4660
|
-
return Object.keys(l).forEach((
|
|
4661
|
-
o.indexOf(
|
|
4679
|
+
return Object.keys(l).forEach((a) => {
|
|
4680
|
+
o.indexOf(a) === -1 && delete l[a];
|
|
4662
4681
|
}), l;
|
|
4663
4682
|
};
|
|
4664
|
-
return (l, n) => (i(),
|
|
4683
|
+
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4665
4684
|
default: r((o) => [
|
|
4666
4685
|
u(Fe, W(Y(o)), null, 16)
|
|
4667
4686
|
]),
|
|
4668
4687
|
_: 1
|
|
4669
4688
|
}));
|
|
4670
4689
|
}
|
|
4671
|
-
},
|
|
4690
|
+
}, ge = {
|
|
4672
4691
|
__name: "container",
|
|
4673
4692
|
setup(e) {
|
|
4674
4693
|
const t = L(0);
|
|
@@ -4676,10 +4695,10 @@ const Fe = /* @__PURE__ */ $(Es, [["render", As]]), Rs = {
|
|
|
4676
4695
|
t.value++;
|
|
4677
4696
|
}), (l, n) => {
|
|
4678
4697
|
const o = v("router-view");
|
|
4679
|
-
return i(),
|
|
4698
|
+
return i(), f(o);
|
|
4680
4699
|
};
|
|
4681
4700
|
}
|
|
4682
|
-
},
|
|
4701
|
+
}, Da = {
|
|
4683
4702
|
title: {
|
|
4684
4703
|
text: ""
|
|
4685
4704
|
},
|
|
@@ -4708,34 +4727,34 @@ const Fe = /* @__PURE__ */ $(Es, [["render", As]]), Rs = {
|
|
|
4708
4727
|
},
|
|
4709
4728
|
series: []
|
|
4710
4729
|
};
|
|
4711
|
-
function
|
|
4730
|
+
function ja(e, t, l) {
|
|
4712
4731
|
if (l.length === 0)
|
|
4713
4732
|
return {};
|
|
4714
|
-
let n = A({},
|
|
4715
|
-
if (n.title.text = e,
|
|
4716
|
-
const o = [],
|
|
4717
|
-
let
|
|
4733
|
+
let n = A({}, Da);
|
|
4734
|
+
if (n.title.text = e, $e(t)) {
|
|
4735
|
+
const o = [], a = Object.keys(l[0]);
|
|
4736
|
+
let s = a[0], c = a.filter((d, m) => m > 0), p = t;
|
|
4718
4737
|
if (t.indexOf(":") > -1) {
|
|
4719
|
-
const d = t.split(":"),
|
|
4720
|
-
p = d[0],
|
|
4738
|
+
const d = t.split(":"), m = d[1].split(",");
|
|
4739
|
+
p = d[0], s = m[0], c = m.filter((_, T) => T > 0);
|
|
4721
4740
|
}
|
|
4722
4741
|
c.forEach((d) => {
|
|
4723
|
-
const
|
|
4742
|
+
const m = [];
|
|
4724
4743
|
l.forEach((_) => {
|
|
4725
|
-
|
|
4744
|
+
m.push(_[d]);
|
|
4726
4745
|
}), n.series.push({
|
|
4727
4746
|
name: d,
|
|
4728
4747
|
type: p,
|
|
4729
4748
|
smooth: !0,
|
|
4730
|
-
data:
|
|
4749
|
+
data: m
|
|
4731
4750
|
}), n.legend.data.push(d);
|
|
4732
4751
|
}), l.forEach((d) => {
|
|
4733
|
-
o.push(d[
|
|
4752
|
+
o.push(d[s]);
|
|
4734
4753
|
}), n.xAxis.data = o;
|
|
4735
4754
|
}
|
|
4736
4755
|
return X(t) && (n = A(n, t)), console.log(111, n), n;
|
|
4737
4756
|
}
|
|
4738
|
-
const
|
|
4757
|
+
const Na = q({
|
|
4739
4758
|
name: "NumberPanel",
|
|
4740
4759
|
props: {
|
|
4741
4760
|
dataList: {
|
|
@@ -4746,27 +4765,27 @@ const Ms = q({
|
|
|
4746
4765
|
data() {
|
|
4747
4766
|
return {};
|
|
4748
4767
|
}
|
|
4749
|
-
}),
|
|
4750
|
-
function
|
|
4751
|
-
return i(!0), h(
|
|
4752
|
-
b("div",
|
|
4753
|
-
(i(!0), h(
|
|
4768
|
+
}), Va = { class: "number-panel-title" }, qa = { class: "number" }, Ua = { class: "name" };
|
|
4769
|
+
function Ha(e, t, l, n, o, a) {
|
|
4770
|
+
return i(!0), h(S, null, B(e.dataList, (s, c) => (i(), h("span", { key: c }, [
|
|
4771
|
+
b("div", Va, [
|
|
4772
|
+
(i(!0), h(S, null, B(Object.keys(s), (p, d) => (i(), h("div", {
|
|
4754
4773
|
key: d,
|
|
4755
4774
|
class: "title-inner"
|
|
4756
4775
|
}, [
|
|
4757
|
-
b("p",
|
|
4758
|
-
b("p",
|
|
4776
|
+
b("p", qa, O(s[p]), 1),
|
|
4777
|
+
b("p", Ua, O(p), 1)
|
|
4759
4778
|
]))), 128))
|
|
4760
4779
|
])
|
|
4761
4780
|
]))), 128);
|
|
4762
4781
|
}
|
|
4763
|
-
const
|
|
4782
|
+
const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293"]]), Ga = {
|
|
4764
4783
|
components: {
|
|
4765
4784
|
Chart: El,
|
|
4766
4785
|
Md: Ol,
|
|
4767
|
-
Json:
|
|
4786
|
+
Json: Pe,
|
|
4768
4787
|
Table: oe,
|
|
4769
|
-
Number:
|
|
4788
|
+
Number: Fa,
|
|
4770
4789
|
Html: ""
|
|
4771
4790
|
},
|
|
4772
4791
|
props: {
|
|
@@ -4787,7 +4806,7 @@ const qs = /* @__PURE__ */ $(Ms, [["render", Vs], ["__scopeId", "data-v-cc0d8293
|
|
|
4787
4806
|
};
|
|
4788
4807
|
if (o === "chart")
|
|
4789
4808
|
return {
|
|
4790
|
-
options:
|
|
4809
|
+
options: ja(n.id, n.chart, n.data)
|
|
4791
4810
|
};
|
|
4792
4811
|
if (o === "md")
|
|
4793
4812
|
return {
|
|
@@ -4796,11 +4815,11 @@ const qs = /* @__PURE__ */ $(Ms, [["render", Vs], ["__scopeId", "data-v-cc0d8293
|
|
|
4796
4815
|
if (o === "table") {
|
|
4797
4816
|
if (!Ye(n.data))
|
|
4798
4817
|
return { showPagination: !1 };
|
|
4799
|
-
const
|
|
4800
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((
|
|
4801
|
-
|
|
4818
|
+
const a = [];
|
|
4819
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((s, c) => {
|
|
4820
|
+
a.push({ field: s, label: s });
|
|
4802
4821
|
}), {
|
|
4803
|
-
headers:
|
|
4822
|
+
headers: a,
|
|
4804
4823
|
list: n.data,
|
|
4805
4824
|
showPagination: !1
|
|
4806
4825
|
};
|
|
@@ -4811,21 +4830,21 @@ const qs = /* @__PURE__ */ $(Ms, [["render", Vs], ["__scopeId", "data-v-cc0d8293
|
|
|
4811
4830
|
};
|
|
4812
4831
|
}
|
|
4813
4832
|
};
|
|
4814
|
-
function
|
|
4815
|
-
const
|
|
4816
|
-
return
|
|
4833
|
+
function Ja(e, t, l, n, o, a) {
|
|
4834
|
+
const s = Ae, c = Rt("resize");
|
|
4835
|
+
return ie((i(), f(s, {
|
|
4817
4836
|
shadow: "never",
|
|
4818
4837
|
class: "part"
|
|
4819
4838
|
}, {
|
|
4820
4839
|
default: r(() => [
|
|
4821
|
-
(i(),
|
|
4840
|
+
(i(), f(Ze(n.comptype()), W(Y(n.compprops(l.option))), null, 16))
|
|
4822
4841
|
]),
|
|
4823
4842
|
_: 1
|
|
4824
4843
|
})), [
|
|
4825
4844
|
[c, !0]
|
|
4826
4845
|
]);
|
|
4827
4846
|
}
|
|
4828
|
-
const
|
|
4847
|
+
const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1"]]), Ka = /* @__PURE__ */ q({
|
|
4829
4848
|
__name: "index",
|
|
4830
4849
|
props: {
|
|
4831
4850
|
filter: {
|
|
@@ -4843,8 +4862,8 @@ const Fs = /* @__PURE__ */ $(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4843
4862
|
});
|
|
4844
4863
|
const n = L({});
|
|
4845
4864
|
ze(() => {
|
|
4846
|
-
var
|
|
4847
|
-
(
|
|
4865
|
+
var m;
|
|
4866
|
+
(m = t.filter) == null || m.forEach((_) => {
|
|
4848
4867
|
_.default !== null && (n.value[_.field] = _.default);
|
|
4849
4868
|
});
|
|
4850
4869
|
});
|
|
@@ -4858,23 +4877,23 @@ const Fs = /* @__PURE__ */ $(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4858
4877
|
cancelButton: {
|
|
4859
4878
|
text: "重置"
|
|
4860
4879
|
}
|
|
4861
|
-
},
|
|
4862
|
-
let
|
|
4863
|
-
if (!
|
|
4880
|
+
}, a = L(1), s = L(t.filter), c = L(t.dataPart), p = j(() => {
|
|
4881
|
+
let m = l.params.id;
|
|
4882
|
+
if (!m) {
|
|
4864
4883
|
const _ = l.path.split("/");
|
|
4865
|
-
|
|
4884
|
+
m = _[_.length - 1];
|
|
4866
4885
|
}
|
|
4867
|
-
return "/focusbi_report/view/" +
|
|
4868
|
-
}), d = (
|
|
4869
|
-
|
|
4870
|
-
|
|
4886
|
+
return "/focusbi_report/view/" + m;
|
|
4887
|
+
}), d = (m) => {
|
|
4888
|
+
ms.get(p.value, { params: m }).then(({ data: _ }) => {
|
|
4889
|
+
s.value = _.filter, c.value = _.dataPart, a.value++;
|
|
4871
4890
|
});
|
|
4872
4891
|
};
|
|
4873
|
-
return (
|
|
4874
|
-
const T =
|
|
4875
|
-
return i(),
|
|
4892
|
+
return (m, _) => {
|
|
4893
|
+
const T = Ae, w = de, F = Be, U = ae;
|
|
4894
|
+
return i(), f(U, null, {
|
|
4876
4895
|
default: r(() => [
|
|
4877
|
-
|
|
4896
|
+
k(s).length > 0 ? (i(), f(w, {
|
|
4878
4897
|
key: 0,
|
|
4879
4898
|
span: 24
|
|
4880
4899
|
}, {
|
|
@@ -4884,10 +4903,10 @@ const Fs = /* @__PURE__ */ $(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4884
4903
|
class: "part-filter"
|
|
4885
4904
|
}, {
|
|
4886
4905
|
default: r(() => [
|
|
4887
|
-
u(
|
|
4888
|
-
modelValue:
|
|
4906
|
+
u(k(J), {
|
|
4907
|
+
modelValue: k(n),
|
|
4889
4908
|
"onUpdate:modelValue": _[0] || (_[0] = (C) => Lt(n) ? n.value = C : null),
|
|
4890
|
-
"form-items":
|
|
4909
|
+
"form-items": k(s),
|
|
4891
4910
|
options: o,
|
|
4892
4911
|
onSubmit: d
|
|
4893
4912
|
}, null, 8, ["modelValue", "form-items"])
|
|
@@ -4896,17 +4915,17 @@ const Fs = /* @__PURE__ */ $(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4896
4915
|
})
|
|
4897
4916
|
]),
|
|
4898
4917
|
_: 1
|
|
4899
|
-
})) :
|
|
4900
|
-
u(
|
|
4918
|
+
})) : x("", !0),
|
|
4919
|
+
u(w, { span: 24 }, {
|
|
4901
4920
|
default: r(() => [
|
|
4902
4921
|
u(U, { gutter: 20 }, {
|
|
4903
4922
|
default: r(() => [
|
|
4904
|
-
(i(!0), h(
|
|
4923
|
+
(i(!0), h(S, null, B(k(c), (C, Z) => (i(), f(w, {
|
|
4905
4924
|
key: Z,
|
|
4906
4925
|
span: C.col || 24
|
|
4907
4926
|
}, {
|
|
4908
4927
|
default: r(() => [
|
|
4909
|
-
C.errMsg ? (i(),
|
|
4928
|
+
C.errMsg ? (i(), f(F, {
|
|
4910
4929
|
key: 1,
|
|
4911
4930
|
title: C.id + " 片段执行出错",
|
|
4912
4931
|
type: "error"
|
|
@@ -4915,8 +4934,8 @@ const Fs = /* @__PURE__ */ $(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4915
4934
|
g(O(C.errMsg), 1)
|
|
4916
4935
|
]),
|
|
4917
4936
|
_: 2
|
|
4918
|
-
}, 1032, ["title"])) : (i(),
|
|
4919
|
-
key:
|
|
4937
|
+
}, 1032, ["title"])) : (i(), f(za, {
|
|
4938
|
+
key: k(a),
|
|
4920
4939
|
option: C
|
|
4921
4940
|
}, null, 8, ["option"]))
|
|
4922
4941
|
]),
|
|
@@ -4934,10 +4953,10 @@ const Fs = /* @__PURE__ */ $(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4934
4953
|
};
|
|
4935
4954
|
}
|
|
4936
4955
|
});
|
|
4937
|
-
const
|
|
4956
|
+
const Wa = {
|
|
4938
4957
|
__name: "report",
|
|
4939
4958
|
setup(e) {
|
|
4940
|
-
const t = useRoute(), l =
|
|
4959
|
+
const t = useRoute(), l = j(() => {
|
|
4941
4960
|
let n = t.params.id;
|
|
4942
4961
|
if (!n) {
|
|
4943
4962
|
const o = t.path.split("/");
|
|
@@ -4945,22 +4964,22 @@ const Js = {
|
|
|
4945
4964
|
}
|
|
4946
4965
|
return "/focusbi_report/view/" + n;
|
|
4947
4966
|
});
|
|
4948
|
-
return (n, o) => (i(),
|
|
4949
|
-
default: r((
|
|
4950
|
-
u(
|
|
4967
|
+
return (n, o) => (i(), f(se, { "schema-api": k(l) }, {
|
|
4968
|
+
default: r((a) => [
|
|
4969
|
+
u(Ka, W(Y(a)), null, 16)
|
|
4951
4970
|
]),
|
|
4952
4971
|
_: 1
|
|
4953
4972
|
}, 8, ["schema-api"]));
|
|
4954
4973
|
}
|
|
4955
4974
|
};
|
|
4956
|
-
const
|
|
4975
|
+
const Za = (e) => u("div", null, [e.test]), Qa = {
|
|
4957
4976
|
card: el,
|
|
4958
4977
|
form: J,
|
|
4959
4978
|
table: oe,
|
|
4960
|
-
test:
|
|
4979
|
+
test: Za,
|
|
4961
4980
|
row: tl,
|
|
4962
4981
|
col: ll
|
|
4963
|
-
},
|
|
4982
|
+
}, Xa = {
|
|
4964
4983
|
card: {
|
|
4965
4984
|
type: "card",
|
|
4966
4985
|
props: {
|
|
@@ -4981,21 +5000,21 @@ const zs = (e) => u("div", null, [e.test]), Ks = {
|
|
|
4981
5000
|
}
|
|
4982
5001
|
}
|
|
4983
5002
|
};
|
|
4984
|
-
function
|
|
5003
|
+
function Ya(e) {
|
|
4985
5004
|
const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
|
|
4986
5005
|
delete t.span;
|
|
4987
5006
|
let o = {
|
|
4988
5007
|
...t,
|
|
4989
5008
|
type: l[0]
|
|
4990
5009
|
};
|
|
4991
|
-
for (let
|
|
5010
|
+
for (let a = 1; a < l.length; a++)
|
|
4992
5011
|
o = {
|
|
4993
|
-
type: l[
|
|
5012
|
+
type: l[a],
|
|
4994
5013
|
children: [o]
|
|
4995
5014
|
};
|
|
4996
|
-
return o.span = n,
|
|
5015
|
+
return o.span = n, je([o]);
|
|
4997
5016
|
}
|
|
4998
|
-
function
|
|
5017
|
+
function je(e) {
|
|
4999
5018
|
const t = {
|
|
5000
5019
|
type: "row",
|
|
5001
5020
|
props: {
|
|
@@ -5005,13 +5024,13 @@ function De(e) {
|
|
|
5005
5024
|
children: []
|
|
5006
5025
|
};
|
|
5007
5026
|
return e.forEach((l) => {
|
|
5008
|
-
var
|
|
5027
|
+
var s, c;
|
|
5009
5028
|
let n = Object.assign({}, l);
|
|
5010
|
-
if (X((
|
|
5029
|
+
if (X((s = n.props) == null ? void 0 : s.style)) {
|
|
5011
5030
|
let p = "";
|
|
5012
5031
|
Object.keys((c = n.props) == null ? void 0 : c.style).forEach((d) => {
|
|
5013
|
-
var
|
|
5014
|
-
p += d + ":" + ((
|
|
5032
|
+
var m;
|
|
5033
|
+
p += d + ":" + ((m = n.props) == null ? void 0 : m.style[d]) + ";";
|
|
5015
5034
|
}), n.props.style = p;
|
|
5016
5035
|
}
|
|
5017
5036
|
const o = {
|
|
@@ -5022,15 +5041,15 @@ function De(e) {
|
|
|
5022
5041
|
t.children.push({
|
|
5023
5042
|
type: "col",
|
|
5024
5043
|
props: o,
|
|
5025
|
-
children:
|
|
5044
|
+
children: Ya(n)
|
|
5026
5045
|
});
|
|
5027
5046
|
return;
|
|
5028
5047
|
}
|
|
5029
5048
|
n = A({
|
|
5030
5049
|
props: {}
|
|
5031
|
-
},
|
|
5032
|
-
const
|
|
5033
|
-
|
|
5050
|
+
}, Xa[n.type] || {}, n);
|
|
5051
|
+
const a = kt(n.children);
|
|
5052
|
+
a.length && (n.children = je(a)), t.children.push({
|
|
5034
5053
|
type: "col",
|
|
5035
5054
|
props: o,
|
|
5036
5055
|
children: [n]
|
|
@@ -5040,64 +5059,64 @@ function De(e) {
|
|
|
5040
5059
|
function kt(e) {
|
|
5041
5060
|
return Ye(e) ? e : X(e) ? [e] : [];
|
|
5042
5061
|
}
|
|
5043
|
-
let
|
|
5062
|
+
let Ee = {};
|
|
5044
5063
|
const wt = (e) => {
|
|
5045
|
-
const t =
|
|
5064
|
+
const t = Qa[e.type] || Ee[e.type] || e.type;
|
|
5046
5065
|
return Dt(t, e.props, {
|
|
5047
5066
|
default: () => kt(e.children).map((l) => wt(l))
|
|
5048
5067
|
});
|
|
5049
|
-
},
|
|
5068
|
+
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Mt().appContext.components), je(Object.values(e.schema)).map((l) => wt(l))), ts = {
|
|
5050
5069
|
__name: "custom",
|
|
5051
5070
|
setup(e) {
|
|
5052
5071
|
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
5053
|
-
return (n, o) => (i(),
|
|
5072
|
+
return (n, o) => (i(), f(se, { "schema-handler": l }, {
|
|
5054
5073
|
default: r(() => [
|
|
5055
|
-
u(
|
|
5074
|
+
u(k(es), { schema: k(t) }, null, 8, ["schema"])
|
|
5056
5075
|
]),
|
|
5057
5076
|
_: 1
|
|
5058
5077
|
}));
|
|
5059
5078
|
}
|
|
5060
5079
|
};
|
|
5061
5080
|
let te = {};
|
|
5062
|
-
function
|
|
5081
|
+
function xi(e) {
|
|
5063
5082
|
te = e;
|
|
5064
5083
|
}
|
|
5065
|
-
const
|
|
5084
|
+
const ls = (e) => {
|
|
5066
5085
|
const t = (l) => {
|
|
5067
5086
|
const n = "./views/" + l + ".vue";
|
|
5068
|
-
return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`),
|
|
5087
|
+
return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ge);
|
|
5069
5088
|
};
|
|
5070
5089
|
if (e.path === "#")
|
|
5071
|
-
return
|
|
5090
|
+
return ge;
|
|
5072
5091
|
switch (e.page_type) {
|
|
5073
5092
|
case D.list:
|
|
5074
5093
|
return gt;
|
|
5075
5094
|
case D.form:
|
|
5076
|
-
return
|
|
5095
|
+
return xe;
|
|
5077
5096
|
case D.custom:
|
|
5078
5097
|
case D.localComp:
|
|
5079
5098
|
return t(e.view || "");
|
|
5080
5099
|
case D.tree:
|
|
5081
|
-
return
|
|
5100
|
+
return Ma;
|
|
5082
5101
|
case D.report:
|
|
5083
|
-
return
|
|
5102
|
+
return Wa;
|
|
5084
5103
|
case D.customSchema:
|
|
5085
|
-
return
|
|
5104
|
+
return ts;
|
|
5086
5105
|
}
|
|
5087
|
-
return
|
|
5106
|
+
return ge;
|
|
5088
5107
|
};
|
|
5089
|
-
function
|
|
5108
|
+
function ns(e) {
|
|
5090
5109
|
let t = e.path;
|
|
5091
5110
|
return e.type === P.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;
|
|
5092
5111
|
}
|
|
5093
|
-
function
|
|
5112
|
+
function os(e) {
|
|
5094
5113
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5095
5114
|
}
|
|
5096
5115
|
const St = (e) => {
|
|
5097
5116
|
const t = e.type !== P.page, l = {
|
|
5098
|
-
path:
|
|
5099
|
-
name: e.id + "_" +
|
|
5100
|
-
component:
|
|
5117
|
+
path: ns(e),
|
|
5118
|
+
name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5119
|
+
component: ls(e),
|
|
5101
5120
|
meta: {
|
|
5102
5121
|
id: e.id,
|
|
5103
5122
|
pageId: e.id,
|
|
@@ -5111,7 +5130,7 @@ const St = (e) => {
|
|
|
5111
5130
|
children: e.children ? e.children.map((n) => St(n)) : []
|
|
5112
5131
|
};
|
|
5113
5132
|
if (e.page_type === D.entity) {
|
|
5114
|
-
const n = e.path + "/list", o = e.path + "/form",
|
|
5133
|
+
const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5115
5134
|
path: n,
|
|
5116
5135
|
name: e.name + "列表" + e.id,
|
|
5117
5136
|
component: gt,
|
|
@@ -5127,7 +5146,7 @@ const St = (e) => {
|
|
|
5127
5146
|
}, {
|
|
5128
5147
|
path: o,
|
|
5129
5148
|
name: e.name + "新建" + e.id,
|
|
5130
|
-
component:
|
|
5149
|
+
component: xe,
|
|
5131
5150
|
meta: {
|
|
5132
5151
|
id: e.id + 99999 + 1,
|
|
5133
5152
|
title: "新建",
|
|
@@ -5138,9 +5157,9 @@ const St = (e) => {
|
|
|
5138
5157
|
path: e.path
|
|
5139
5158
|
}
|
|
5140
5159
|
}, {
|
|
5141
|
-
path:
|
|
5160
|
+
path: a,
|
|
5142
5161
|
name: e.name + "编辑" + e.id,
|
|
5143
|
-
component:
|
|
5162
|
+
component: xe,
|
|
5144
5163
|
meta: {
|
|
5145
5164
|
id: e.id + 99999 + 2,
|
|
5146
5165
|
title: "编辑",
|
|
@@ -5151,7 +5170,7 @@ const St = (e) => {
|
|
|
5151
5170
|
path: e.path
|
|
5152
5171
|
}
|
|
5153
5172
|
}];
|
|
5154
|
-
l.children = [...
|
|
5173
|
+
l.children = [...s, ...l.children];
|
|
5155
5174
|
}
|
|
5156
5175
|
if (l.children && l.children.length > 0) {
|
|
5157
5176
|
let n = !0;
|
|
@@ -5160,16 +5179,16 @@ const St = (e) => {
|
|
|
5160
5179
|
}), l.meta && (l.meta.menuType = t ? P.dir : P.hidden), n) {
|
|
5161
5180
|
l.meta && (l.meta.menuType = P.menu);
|
|
5162
5181
|
let o = "/";
|
|
5163
|
-
for (let
|
|
5164
|
-
if (l.children[
|
|
5165
|
-
o = l.children[
|
|
5182
|
+
for (let a = 0; a < l.children.length; a++)
|
|
5183
|
+
if (l.children[a].path.indexOf("/:") === -1) {
|
|
5184
|
+
o = l.children[a].path;
|
|
5166
5185
|
break;
|
|
5167
5186
|
}
|
|
5168
5187
|
l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
|
|
5169
5188
|
}
|
|
5170
5189
|
}
|
|
5171
5190
|
return l;
|
|
5172
|
-
},
|
|
5191
|
+
}, as = (e) => {
|
|
5173
5192
|
const t = [];
|
|
5174
5193
|
return e.forEach((l) => {
|
|
5175
5194
|
const n = {
|
|
@@ -5182,69 +5201,69 @@ const St = (e) => {
|
|
|
5182
5201
|
}), t.push(n);
|
|
5183
5202
|
}), t;
|
|
5184
5203
|
};
|
|
5185
|
-
function
|
|
5204
|
+
function ss(e) {
|
|
5186
5205
|
e.beforeEach(async (t, l, n) => {
|
|
5187
5206
|
if (_t().indexOf(t.path) !== -1) {
|
|
5188
5207
|
n();
|
|
5189
5208
|
return;
|
|
5190
5209
|
}
|
|
5191
|
-
if (
|
|
5210
|
+
if (ha()) {
|
|
5192
5211
|
n();
|
|
5193
5212
|
return;
|
|
5194
5213
|
}
|
|
5195
5214
|
await E.dispatch("user/info");
|
|
5196
|
-
const o = await E.dispatch("user/loadRemoteRoutes"),
|
|
5197
|
-
|
|
5198
|
-
|
|
5215
|
+
const o = await E.dispatch("user/loadRemoteRoutes"), a = as(o);
|
|
5216
|
+
a.forEach((s) => {
|
|
5217
|
+
s.routes.forEach((c) => {
|
|
5199
5218
|
e.addRoute({
|
|
5200
5219
|
path: "/",
|
|
5201
5220
|
component: ht,
|
|
5202
5221
|
children: [c]
|
|
5203
5222
|
});
|
|
5204
5223
|
});
|
|
5205
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), E.commit("user/updateRemoteRouter",
|
|
5224
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), E.commit("user/updateRemoteRouter", a), await e.replace(t), n();
|
|
5206
5225
|
});
|
|
5207
5226
|
}
|
|
5208
|
-
function
|
|
5227
|
+
function is(e) {
|
|
5209
5228
|
e.beforeEach(async (t, l, n) => {
|
|
5210
5229
|
var c;
|
|
5211
|
-
const
|
|
5212
|
-
for (let p =
|
|
5230
|
+
const a = [E.state.settings.title || ""], s = t.matched.length;
|
|
5231
|
+
for (let p = s; p > s - 3; p--) {
|
|
5213
5232
|
const d = t.matched[p - 1];
|
|
5214
|
-
(c = d == null ? void 0 : d.meta) != null && c.title &&
|
|
5233
|
+
(c = d == null ? void 0 : d.meta) != null && c.title && a.push(d.meta.title + "");
|
|
5215
5234
|
}
|
|
5216
|
-
|
|
5235
|
+
a.length > 1 && (document.title = a.reverse().join("-")), n();
|
|
5217
5236
|
}), e.afterEach(async (t, l, n) => {
|
|
5218
5237
|
Object.keys(t.meta).length > 0 && await E.dispatch("app/setCurrentMeta", t.meta);
|
|
5219
5238
|
});
|
|
5220
5239
|
}
|
|
5221
|
-
function
|
|
5222
|
-
|
|
5240
|
+
function rs(e) {
|
|
5241
|
+
_a(e), fa(e), ss(e), is(e);
|
|
5223
5242
|
}
|
|
5224
|
-
|
|
5225
|
-
function
|
|
5243
|
+
rs(z);
|
|
5244
|
+
function cs() {
|
|
5226
5245
|
return E.state.user.token;
|
|
5227
5246
|
}
|
|
5228
5247
|
function Ge(e) {
|
|
5229
|
-
|
|
5248
|
+
Xl({
|
|
5230
5249
|
message: e,
|
|
5231
5250
|
type: "error",
|
|
5232
5251
|
duration: 5 * 1e3,
|
|
5233
5252
|
grouping: !0
|
|
5234
5253
|
});
|
|
5235
5254
|
}
|
|
5236
|
-
const
|
|
5255
|
+
const us = {
|
|
5237
5256
|
onFulfilled: function(e) {
|
|
5238
5257
|
var l;
|
|
5239
5258
|
e.headers = e.headers || {};
|
|
5240
|
-
const t =
|
|
5259
|
+
const t = cs();
|
|
5241
5260
|
return t && (e.headers["X-Token"] = t), (l = z.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = z.currentRoute.value.meta.path), e;
|
|
5242
5261
|
}
|
|
5243
|
-
},
|
|
5262
|
+
}, ps = {
|
|
5244
5263
|
onFulfilled(e) {
|
|
5245
|
-
var n, o,
|
|
5264
|
+
var n, o, a, s, c, p, d;
|
|
5246
5265
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5247
|
-
const
|
|
5266
|
+
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5248
5267
|
if (e.data.code === 401) {
|
|
5249
5268
|
Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5250
5269
|
showClose: !1,
|
|
@@ -5257,11 +5276,11 @@ const ia = {
|
|
|
5257
5276
|
});
|
|
5258
5277
|
return;
|
|
5259
5278
|
} else
|
|
5260
|
-
Ge(
|
|
5261
|
-
return Promise.reject(
|
|
5279
|
+
Ge(m);
|
|
5280
|
+
return Promise.reject(m);
|
|
5262
5281
|
}
|
|
5263
|
-
let l = (c = (
|
|
5264
|
-
return l !== void 0 && (
|
|
5282
|
+
let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
|
|
5283
|
+
return l !== void 0 && ($e(l) && (l = {
|
|
5265
5284
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
5266
5285
|
}), Ue({
|
|
5267
5286
|
title: "提示",
|
|
@@ -5272,29 +5291,29 @@ const ia = {
|
|
|
5272
5291
|
},
|
|
5273
5292
|
onRejected(e) {
|
|
5274
5293
|
var t;
|
|
5275
|
-
return
|
|
5294
|
+
return Ie.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
|
|
5276
5295
|
}
|
|
5277
|
-
},
|
|
5296
|
+
}, ds = [
|
|
5278
5297
|
{
|
|
5279
|
-
request:
|
|
5280
|
-
response:
|
|
5298
|
+
request: en,
|
|
5299
|
+
response: tn
|
|
5281
5300
|
},
|
|
5282
5301
|
{
|
|
5283
|
-
request:
|
|
5284
|
-
response:
|
|
5302
|
+
request: us,
|
|
5303
|
+
response: ps
|
|
5285
5304
|
}
|
|
5286
5305
|
];
|
|
5287
|
-
function
|
|
5288
|
-
const t =
|
|
5306
|
+
function Ne(e = {}) {
|
|
5307
|
+
const t = me.axios || {}, l = A(t, e || {}), n = Ie.create({
|
|
5289
5308
|
...l
|
|
5290
5309
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5291
5310
|
});
|
|
5292
|
-
return
|
|
5311
|
+
return ds.forEach((o) => {
|
|
5293
5312
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
5294
5313
|
}), n;
|
|
5295
5314
|
}
|
|
5296
|
-
const
|
|
5297
|
-
const
|
|
5315
|
+
const ms = Ne();
|
|
5316
|
+
const fs = {
|
|
5298
5317
|
beforeMount(e, t) {
|
|
5299
5318
|
e.clickOutsideEvent = function(l) {
|
|
5300
5319
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5303,13 +5322,13 @@ const pa = {
|
|
|
5303
5322
|
unmounted(e) {
|
|
5304
5323
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5305
5324
|
}
|
|
5306
|
-
}, K = Cl(),
|
|
5325
|
+
}, K = Cl(), hs = {
|
|
5307
5326
|
mounted: (e, t) => {
|
|
5308
5327
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5309
5328
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && K.emit("right-click", { event: l, data: t.value });
|
|
5310
5329
|
});
|
|
5311
5330
|
}
|
|
5312
|
-
},
|
|
5331
|
+
}, bs = {
|
|
5313
5332
|
mounted(e) {
|
|
5314
5333
|
}
|
|
5315
5334
|
};
|
|
@@ -5319,7 +5338,7 @@ function Je(e, t) {
|
|
|
5319
5338
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5320
5339
|
return l;
|
|
5321
5340
|
}
|
|
5322
|
-
const
|
|
5341
|
+
const _s = {
|
|
5323
5342
|
mounted: (e, t) => {
|
|
5324
5343
|
if (e === null || !t.value.dev)
|
|
5325
5344
|
return;
|
|
@@ -5334,57 +5353,57 @@ const fa = {
|
|
|
5334
5353
|
};
|
|
5335
5354
|
const o = document.createElement("span");
|
|
5336
5355
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
5337
|
-
const
|
|
5338
|
-
|
|
5356
|
+
const a = document.createElement("i");
|
|
5357
|
+
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (p) => {
|
|
5339
5358
|
K.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
|
|
5340
5359
|
}, n.appendChild(o);
|
|
5341
|
-
const
|
|
5342
|
-
|
|
5360
|
+
const s = document.createElement("span");
|
|
5361
|
+
s.className = "dev-action-del", s.title = "删除";
|
|
5343
5362
|
const c = document.createElement("i");
|
|
5344
|
-
c.className = "iconfont ra-cut",
|
|
5363
|
+
c.className = "iconfont ra-cut", s.appendChild(c), s.onclick = (p) => {
|
|
5345
5364
|
K.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
5346
|
-
}, n.appendChild(
|
|
5365
|
+
}, n.appendChild(s), l.insertBefore(n, l.firstChild);
|
|
5347
5366
|
}
|
|
5348
|
-
},
|
|
5367
|
+
}, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5349
5368
|
__proto__: null,
|
|
5350
|
-
devtool:
|
|
5351
|
-
outClick:
|
|
5352
|
-
resize:
|
|
5353
|
-
rightClick:
|
|
5369
|
+
devtool: _s,
|
|
5370
|
+
outClick: fs,
|
|
5371
|
+
resize: bs,
|
|
5372
|
+
rightClick: hs
|
|
5354
5373
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5355
|
-
let
|
|
5356
|
-
function
|
|
5357
|
-
return e ?
|
|
5374
|
+
let ce;
|
|
5375
|
+
function Ei(e) {
|
|
5376
|
+
return e ? Ne(A(me.axios, e)) : ce;
|
|
5358
5377
|
}
|
|
5359
|
-
function
|
|
5360
|
-
const t = A(
|
|
5361
|
-
o.unshift(n), o.forEach((
|
|
5362
|
-
|
|
5363
|
-
}), t != null && t.mock &&
|
|
5364
|
-
"X-Token":
|
|
5378
|
+
function $i(e) {
|
|
5379
|
+
const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5380
|
+
o.unshift(n), o.forEach((a) => {
|
|
5381
|
+
xs(l, a);
|
|
5382
|
+
}), t != null && t.mock && Ul(), ce = Ne(t.axios), E.dispatch("setHttp", ce).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = z, window.App = l, window.OmsOptions = t, $l(() => ({
|
|
5383
|
+
"X-Token": Me()
|
|
5365
5384
|
})), z.isReady().then(() => l.mount("#app"));
|
|
5366
5385
|
}
|
|
5367
|
-
function
|
|
5386
|
+
function vs(e, t = {}) {
|
|
5368
5387
|
Object.keys(t).forEach((l) => {
|
|
5369
5388
|
e.component(l, t[l]);
|
|
5370
5389
|
});
|
|
5371
5390
|
}
|
|
5372
|
-
function
|
|
5391
|
+
function gs(e = []) {
|
|
5373
5392
|
e.forEach((t) => {
|
|
5374
5393
|
z.addRoute(t);
|
|
5375
5394
|
}), E.commit("user/setCustomRoutes", e);
|
|
5376
5395
|
}
|
|
5377
|
-
function
|
|
5396
|
+
function ks(e, t) {
|
|
5378
5397
|
t.forEach((l) => {
|
|
5379
5398
|
X(l) && (l = [l]), e.use(...l);
|
|
5380
5399
|
});
|
|
5381
5400
|
}
|
|
5382
|
-
function
|
|
5401
|
+
function ws(e, t = {}) {
|
|
5383
5402
|
Object.keys(t).forEach((l) => {
|
|
5384
5403
|
e.directive(l, t[l]);
|
|
5385
5404
|
});
|
|
5386
5405
|
}
|
|
5387
|
-
function
|
|
5406
|
+
function Ss(e = {}) {
|
|
5388
5407
|
const t = ["app", "settings", "user"];
|
|
5389
5408
|
Object.keys(e).forEach((l) => {
|
|
5390
5409
|
if (t.indexOf(l) !== -1) {
|
|
@@ -5394,14 +5413,14 @@ function ga(e = {}) {
|
|
|
5394
5413
|
E.registerModule(l, e[l]);
|
|
5395
5414
|
});
|
|
5396
5415
|
}
|
|
5397
|
-
function
|
|
5398
|
-
|
|
5416
|
+
function xs(e, t) {
|
|
5417
|
+
vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), rt(t.mockApis || []);
|
|
5399
5418
|
}
|
|
5400
|
-
function
|
|
5419
|
+
function Es(e) {
|
|
5401
5420
|
var t;
|
|
5402
5421
|
return {
|
|
5403
5422
|
components: { VIcon: Il },
|
|
5404
|
-
directives:
|
|
5423
|
+
directives: ys,
|
|
5405
5424
|
use: [
|
|
5406
5425
|
E,
|
|
5407
5426
|
z,
|
|
@@ -5410,23 +5429,23 @@ function wa(e) {
|
|
|
5410
5429
|
};
|
|
5411
5430
|
}
|
|
5412
5431
|
export {
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5432
|
+
Jo as BaseSso,
|
|
5433
|
+
ge as Container,
|
|
5434
|
+
zo as DingTalk,
|
|
5416
5435
|
ht as Layout,
|
|
5417
5436
|
P as MenuType,
|
|
5418
|
-
|
|
5437
|
+
Xl as Message,
|
|
5419
5438
|
Ue as MessageBox,
|
|
5420
5439
|
D as PageType,
|
|
5421
|
-
|
|
5422
|
-
|
|
5440
|
+
Wo as allSso,
|
|
5441
|
+
$i as createAdmin,
|
|
5423
5442
|
K as eventBus,
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5443
|
+
ln as getCmp,
|
|
5444
|
+
ce as http,
|
|
5445
|
+
Ne as instance,
|
|
5446
|
+
xi as regViews,
|
|
5447
|
+
Si as setCmp,
|
|
5448
|
+
as as transRemoteModules,
|
|
5449
|
+
Ei as useHttp
|
|
5431
5450
|
};
|
|
5432
5451
|
//# sourceMappingURL=index.es.js.map
|