@okiss/oms 0.0.29 → 0.0.30
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 +914 -816
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/render/index.d.ts +14 -0
- package/dist/types/scaffold/custom.d.ts +15 -0
- package/dist/types/scaffold/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/JRender/index.d.ts +0 -2
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as V, onBeforeMount as
|
|
5
|
-
import { ElConfigProvider as
|
|
1
|
+
var Ct = Object.defineProperty;
|
|
2
|
+
var xt = (e, t, l) => t in e ? Ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var R = (e, t, l) => (xt(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { defineComponent as V, onBeforeMount as Ke, provide as Bt, resolveComponent as v, openBlock as i, createBlock as m, unref as k, withCtx as r, createVNode as c, computed as N, createTextVNode as g, TransitionGroup as It, createElementBlock as h, Fragment as E, renderList as A, toDisplayString as I, normalizeClass as G, renderSlot as te, mergeProps as U, createCommentVNode as w, toRefs as At, ref as P, normalizeStyle as $t, createElementVNode as b, Transition as Tt, pushScopeId as We, popScopeId as Ze, resolveDynamicComponent as Qe, normalizeProps as K, guardReactiveProps as X, withDirectives as ve, vModelText as Ne, resolveDirective as Ft, onMounted as Ot, isRef as Dt, getCurrentInstance as Pt, h as Rt, toRaw as Lt, createApp as Mt } from "vue";
|
|
5
|
+
import { ElConfigProvider as jt, ElBreadcrumbItem as Nt, ElBreadcrumb as Vt, ElRow as se, ElMain as qt, ElAside as Ut, ElContainer as Ht, ElDivider as Xe, ElButton as ue, ElOption as xe, ElSelect as Be, ElFormItem as Ye, ElForm as et, ElCol as ce, ElDrawer as tt, ElDropdownItem as Gt, ElDropdownMenu as Jt, ElDropdown as zt, ElMenuItem as Kt, ElSubMenu as Wt, ElOptionGroup as Zt, ElMenu as Qt, ElScrollbar as Xt, ElBacktop as Yt, ElMessage as el, ElAlert as ge, ElTree as tl, ElCard as Ie } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/config-provider/style/css";
|
|
7
|
-
import
|
|
8
|
-
import { addNewStyle as
|
|
7
|
+
import Ae from "element-plus/lib/locale/lang/zh-cn";
|
|
8
|
+
import { addNewStyle as ll, addNewStyleTag as nl, queryParams as ol, logGroup as sl, isString as $e, compactObject as lt, showEleByClassName as nt, waterMarker as al, Cache as fe, isExternal as Ve, getQueryParam as il, createIFrame as rl, strVarReplace as Z, obj2Param as ul, isObject as Q, effectDataTrans as cl, isArray as ot } from "@okiss/utils";
|
|
9
9
|
import he from "mockjs";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import pl, { cloneDeep as y, merge as F, get as le, unset as st } from "lodash";
|
|
11
|
+
import Te from "axios";
|
|
12
12
|
import M from "js-cookie";
|
|
13
|
-
import { createStore as
|
|
14
|
-
import
|
|
13
|
+
import { createStore as dl, useStore as at, mapGetters as Fe } from "vuex";
|
|
14
|
+
import ml, { ElMessage as fl, ElMessageBox as hl, ElCard as bl, ElRow as _l, ElCol as yl } from "element-plus";
|
|
15
15
|
import "element-plus/dist/index.css";
|
|
16
16
|
import "dayjs/locale/zh-cn";
|
|
17
|
-
import { VForm as
|
|
17
|
+
import { VForm as J, VBtn as Oe, JsonView as De, VTable as ne, VChart as vl, setUploadHeaderHandle as gl, VIcon as kl } from "@okiss/vbtf";
|
|
18
18
|
import "normalize.css/normalize.css";
|
|
19
19
|
import "@okiss/vbtf/style.css";
|
|
20
|
-
import { useRoute as
|
|
20
|
+
import { useRoute as pe, onBeforeRouteLeave as El, useRouter as wl, createRouter as Sl, createWebHashHistory as Cl, onBeforeRouteUpdate as xl } from "vue-router";
|
|
21
21
|
import "element-plus/es/components/row/style/css";
|
|
22
22
|
import "element-plus/es/components/drawer/style/css";
|
|
23
23
|
import "element-plus/es/components/dropdown/style/css";
|
|
@@ -26,7 +26,7 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
26
26
|
import "element-plus/es/components/col/style/css";
|
|
27
27
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
28
28
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
29
|
-
import * as
|
|
29
|
+
import * as Bl from "path-to-regexp";
|
|
30
30
|
import "element-plus/es/components/form/style/css";
|
|
31
31
|
import "element-plus/es/components/form-item/style/css";
|
|
32
32
|
import "element-plus/es/components/select/style/css";
|
|
@@ -36,20 +36,20 @@ import "element-plus/es/components/divider/style/css";
|
|
|
36
36
|
import "element-plus/es/components/container/style/css";
|
|
37
37
|
import "element-plus/es/components/aside/style/css";
|
|
38
38
|
import "element-plus/es/components/main/style/css";
|
|
39
|
-
import
|
|
39
|
+
import Il from "mitt";
|
|
40
40
|
import "element-plus/es/components/scrollbar/style/css";
|
|
41
41
|
import "element-plus/es/components/menu/style/css";
|
|
42
42
|
import "element-plus/es/components/sub-menu/style/css";
|
|
43
43
|
import "element-plus/es/components/menu-item/style/css";
|
|
44
44
|
import "element-plus/es/components/option-group/style/css";
|
|
45
45
|
import "element-plus/es/components/backtop/style/css";
|
|
46
|
-
import { useEventListener as
|
|
46
|
+
import { useEventListener as Al } from "@vueuse/core";
|
|
47
47
|
import "element-plus/es/components/alert/style/css";
|
|
48
48
|
import "element-plus/es/components/card/style/css";
|
|
49
49
|
import "element-plus/es/components/tree/style/css";
|
|
50
|
-
import
|
|
50
|
+
import $l from "vue3-markdown-it";
|
|
51
51
|
import "element-plus/es/components/message/style/css";
|
|
52
|
-
import
|
|
52
|
+
import ke from "nprogress";
|
|
53
53
|
import "nprogress/nprogress.css";
|
|
54
54
|
String.prototype.format || (String.prototype.format = function() {
|
|
55
55
|
const e = arguments;
|
|
@@ -57,23 +57,23 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
57
57
|
return typeof e[l] < "u" ? e[l] : t;
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
-
const
|
|
60
|
+
const Tl = /* @__PURE__ */ V({
|
|
61
61
|
__name: "App",
|
|
62
62
|
setup(e) {
|
|
63
|
-
var l, n, o,
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
|
|
63
|
+
var l, n, o, s;
|
|
64
|
+
Ke(() => {
|
|
65
|
+
const a = document.getElementById("preloader");
|
|
66
|
+
a !== null && (document.body.removeChild(a), ll("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), nl(`.iconfont {
|
|
67
67
|
font-size: 19px;
|
|
68
68
|
font-style: normal;
|
|
69
69
|
-webkit-font-smoothing: antialiased;
|
|
70
70
|
font-family: iconfont !important;
|
|
71
71
|
}`));
|
|
72
72
|
});
|
|
73
|
-
const t =
|
|
74
|
-
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath &&
|
|
75
|
-
const p = v("router-view"), d =
|
|
76
|
-
return i(), m(d, { locale:
|
|
73
|
+
const t = Ae;
|
|
74
|
+
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && Bt("vsPath", (s = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : s.vsPath), (a, u) => {
|
|
75
|
+
const p = v("router-view"), d = jt;
|
|
76
|
+
return i(), m(d, { locale: k(t) }, {
|
|
77
77
|
default: r(() => [
|
|
78
78
|
c(p)
|
|
79
79
|
]),
|
|
@@ -82,8 +82,8 @@ const kl = /* @__PURE__ */ V({
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
var
|
|
86
|
-
const
|
|
85
|
+
var Y = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(Y || {});
|
|
86
|
+
const Fl = {
|
|
87
87
|
saveApi: "/save",
|
|
88
88
|
afterSubmit: "",
|
|
89
89
|
afterReset: "goback",
|
|
@@ -415,7 +415,7 @@ const El = {
|
|
|
415
415
|
info: "\u5728\u901A\u7528\u8868\u5355\u63A7\u4EF6\u65E0\u6CD5\u6EE1\u8DB3\u9700\u6C42\u65F6, \u53EF\u4EE5\u7F16\u5199 `template` \u6A21\u677F\u7EC4\u4EF6"
|
|
416
416
|
}
|
|
417
417
|
]
|
|
418
|
-
},
|
|
418
|
+
}, qe = [
|
|
419
419
|
{
|
|
420
420
|
type: "jump",
|
|
421
421
|
text: "\u8DF3\u8F6C",
|
|
@@ -470,7 +470,7 @@ const El = {
|
|
|
470
470
|
type: "success"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
],
|
|
473
|
+
], Ol = {
|
|
474
474
|
exportAble: !0,
|
|
475
475
|
filter: [
|
|
476
476
|
{
|
|
@@ -536,7 +536,7 @@ const El = {
|
|
|
536
536
|
label: "\u4FE1\u606F"
|
|
537
537
|
}
|
|
538
538
|
],
|
|
539
|
-
batchButton:
|
|
539
|
+
batchButton: qe,
|
|
540
540
|
rowButton: [
|
|
541
541
|
{
|
|
542
542
|
type: "jump",
|
|
@@ -567,7 +567,7 @@ const El = {
|
|
|
567
567
|
}
|
|
568
568
|
],
|
|
569
569
|
normalButton: [
|
|
570
|
-
...
|
|
570
|
+
...pl.cloneDeep(qe),
|
|
571
571
|
{
|
|
572
572
|
type: "jump",
|
|
573
573
|
target: "/user/form",
|
|
@@ -579,7 +579,7 @@ const El = {
|
|
|
579
579
|
],
|
|
580
580
|
selectedNotice: "\u5F53\u524D\u5171\u52FE\u9009: {selectedCount} \u6761",
|
|
581
581
|
listApi: "/user/list"
|
|
582
|
-
},
|
|
582
|
+
}, Dl = {
|
|
583
583
|
code: 0,
|
|
584
584
|
data: {
|
|
585
585
|
"list|0-100": [
|
|
@@ -600,7 +600,7 @@ const El = {
|
|
|
600
600
|
"page|1-5": 2
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, Pl = {
|
|
604
604
|
afterSubmit: "",
|
|
605
605
|
afterReset: "goback",
|
|
606
606
|
formItems: [
|
|
@@ -637,7 +637,7 @@ const El = {
|
|
|
637
637
|
label: "span"
|
|
638
638
|
}
|
|
639
639
|
]
|
|
640
|
-
},
|
|
640
|
+
}, Rl = {
|
|
641
641
|
afterSubmit: "",
|
|
642
642
|
afterReset: "",
|
|
643
643
|
formItems: [
|
|
@@ -676,9 +676,9 @@ const El = {
|
|
|
676
676
|
label: "span"
|
|
677
677
|
}
|
|
678
678
|
]
|
|
679
|
-
},
|
|
679
|
+
}, Ll = { form: Fl, table: Ol, listMock: Dl, layoutForm: Pl, layoutSection: Rl }, Ml = [
|
|
680
680
|
{
|
|
681
|
-
method:
|
|
681
|
+
method: Y.POST,
|
|
682
682
|
url: "/login",
|
|
683
683
|
response(e) {
|
|
684
684
|
return {
|
|
@@ -691,7 +691,7 @@ const El = {
|
|
|
691
691
|
}
|
|
692
692
|
},
|
|
693
693
|
{
|
|
694
|
-
method:
|
|
694
|
+
method: Y.GET,
|
|
695
695
|
url: "/user/info",
|
|
696
696
|
response(e) {
|
|
697
697
|
return {
|
|
@@ -705,7 +705,7 @@ const El = {
|
|
|
705
705
|
},
|
|
706
706
|
{
|
|
707
707
|
url: "/user/routes",
|
|
708
|
-
method:
|
|
708
|
+
method: Y.GET,
|
|
709
709
|
response: (e) => ({
|
|
710
710
|
code: 0,
|
|
711
711
|
data: [
|
|
@@ -719,17 +719,17 @@ const El = {
|
|
|
719
719
|
},
|
|
720
720
|
{
|
|
721
721
|
url: "/user/list",
|
|
722
|
-
method:
|
|
723
|
-
response: (e) =>
|
|
722
|
+
method: Y.GET,
|
|
723
|
+
response: (e) => Ll.listMock
|
|
724
724
|
}
|
|
725
|
-
],
|
|
726
|
-
...
|
|
727
|
-
],
|
|
725
|
+
], jl = [
|
|
726
|
+
...Ml
|
|
727
|
+
], Nl = {
|
|
728
728
|
baseURL: "/api",
|
|
729
729
|
withCredentials: !0,
|
|
730
730
|
timeout: 5e3,
|
|
731
731
|
cacheEnable: !0
|
|
732
|
-
},
|
|
732
|
+
}, it = {
|
|
733
733
|
title: "oms",
|
|
734
734
|
fixedHeader: !1,
|
|
735
735
|
sidebarLogo: !0,
|
|
@@ -743,7 +743,7 @@ const El = {
|
|
|
743
743
|
ElementPlus: {
|
|
744
744
|
size: "default",
|
|
745
745
|
zIndex: 3e3,
|
|
746
|
-
locale:
|
|
746
|
+
locale: Ae
|
|
747
747
|
},
|
|
748
748
|
nav: [],
|
|
749
749
|
whiteRoutes: ["/login"],
|
|
@@ -754,49 +754,49 @@ const El = {
|
|
|
754
754
|
pre: "green"
|
|
755
755
|
},
|
|
756
756
|
serviceOffLineNotice: "\u5F53\u524D\u9875\u9762\u529F\u80FD\u6B63\u5728\u7EF4\u62A4, \u8BF7\u7A0D\u540E\u518D\u8BD5~~~"
|
|
757
|
-
},
|
|
758
|
-
axios:
|
|
759
|
-
settings:
|
|
757
|
+
}, de = {
|
|
758
|
+
axios: Nl,
|
|
759
|
+
settings: it,
|
|
760
760
|
plugins: [],
|
|
761
761
|
mock: !1
|
|
762
|
-
},
|
|
763
|
-
function
|
|
762
|
+
}, Ee = {};
|
|
763
|
+
function rt(e) {
|
|
764
764
|
e.forEach((t) => {
|
|
765
|
-
const l =
|
|
766
|
-
|
|
765
|
+
const l = ut(t);
|
|
766
|
+
Ee[`${t.method}::${l}`] = t;
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
|
-
|
|
770
|
-
function
|
|
769
|
+
rt(jl);
|
|
770
|
+
function ut(e) {
|
|
771
771
|
var n;
|
|
772
|
-
let t = e.url, l = e.baseURL || ((n =
|
|
772
|
+
let t = e.url, l = e.baseURL || ((n = de.axios) == null ? void 0 : n.baseURL);
|
|
773
773
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
Object.keys(
|
|
777
|
-
const t =
|
|
775
|
+
function Vl() {
|
|
776
|
+
Object.keys(Ee).forEach((e) => {
|
|
777
|
+
const t = Ee[e], l = ut(t);
|
|
778
778
|
he.mock(l, t.method, function(n) {
|
|
779
|
-
const { url: o, type:
|
|
780
|
-
return
|
|
779
|
+
const { url: o, type: s, body: a } = n, u = ol(o), p = a ? JSON.parse(a) : {}, d = t.response({ query: u, data: p }), f = he.mock(d);
|
|
780
|
+
return sl(o, { type: s, query: u, data: p, response: f }), he.mock(f);
|
|
781
781
|
});
|
|
782
782
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
783
783
|
}
|
|
784
|
-
const
|
|
785
|
-
function
|
|
786
|
-
return M.get(
|
|
784
|
+
const Pe = "oms:token";
|
|
785
|
+
function Re() {
|
|
786
|
+
return M.get(Pe) || "";
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function ql(e) {
|
|
789
789
|
const t = new Date(new Date().getTime() + (S.state.settings.tokenExpire || 864e5));
|
|
790
|
-
return M.set(
|
|
790
|
+
return M.set(Pe, e, { expires: t });
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
return M.remove(
|
|
792
|
+
function ct() {
|
|
793
|
+
return M.remove(Pe);
|
|
794
794
|
}
|
|
795
|
-
const
|
|
795
|
+
const Ul = {
|
|
796
796
|
name: "",
|
|
797
797
|
nickname: "",
|
|
798
798
|
avatar: "",
|
|
799
|
-
token:
|
|
799
|
+
token: Re(),
|
|
800
800
|
customRouter: [],
|
|
801
801
|
remoteRouter: [],
|
|
802
802
|
menuRoutes: [],
|
|
@@ -805,15 +805,15 @@ const Dl = {
|
|
|
805
805
|
roleIds: [],
|
|
806
806
|
path: "",
|
|
807
807
|
env: ""
|
|
808
|
-
},
|
|
808
|
+
}, Hl = {
|
|
809
809
|
namespaced: !0,
|
|
810
|
-
state:
|
|
810
|
+
state: Ul,
|
|
811
811
|
mutations: {
|
|
812
812
|
updateToken(e, t) {
|
|
813
|
-
e.token = t,
|
|
813
|
+
e.token = t, ql(t);
|
|
814
814
|
},
|
|
815
815
|
removeToken(e) {
|
|
816
|
-
e.token = "",
|
|
816
|
+
e.token = "", ct();
|
|
817
817
|
},
|
|
818
818
|
updateRemoteRouter(e, t) {
|
|
819
819
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -829,7 +829,7 @@ const Dl = {
|
|
|
829
829
|
name: "",
|
|
830
830
|
nickname: "",
|
|
831
831
|
avatar: "",
|
|
832
|
-
token:
|
|
832
|
+
token: Re(),
|
|
833
833
|
customRouter: [],
|
|
834
834
|
remoteRouter: [],
|
|
835
835
|
menuRoutes: [],
|
|
@@ -847,17 +847,17 @@ const Dl = {
|
|
|
847
847
|
state: t,
|
|
848
848
|
rootState: l
|
|
849
849
|
}, n) {
|
|
850
|
-
return new Promise((o,
|
|
850
|
+
return new Promise((o, s) => {
|
|
851
851
|
l.http ? l.http.request({
|
|
852
852
|
url: "/user/login",
|
|
853
853
|
method: "POST",
|
|
854
854
|
data: n
|
|
855
|
-
}).then((
|
|
855
|
+
}).then((a) => {
|
|
856
856
|
var u;
|
|
857
|
-
e("updateToken", (u =
|
|
858
|
-
}).catch((
|
|
859
|
-
a
|
|
860
|
-
}) :
|
|
857
|
+
e("updateToken", (u = a.data) == null ? void 0 : u.token), o(!0);
|
|
858
|
+
}).catch((a) => {
|
|
859
|
+
s(a);
|
|
860
|
+
}) : s("http client not init");
|
|
861
861
|
});
|
|
862
862
|
},
|
|
863
863
|
logout({ commit: e }) {
|
|
@@ -869,9 +869,9 @@ const Dl = {
|
|
|
869
869
|
url: "/user/info",
|
|
870
870
|
method: "GET"
|
|
871
871
|
}).then((o) => {
|
|
872
|
-
var
|
|
873
|
-
const
|
|
874
|
-
e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (p = o.data) == null ? void 0 : p.nickname }), e("updateState", { key: "roleIds", value:
|
|
872
|
+
var a, u, p, d, f;
|
|
873
|
+
const s = ((a = o.data) == null ? void 0 : a.role_ids) || [];
|
|
874
|
+
e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (p = o.data) == null ? void 0 : p.nickname }), e("updateState", { key: "roleIds", value: s }), e("updateState", { key: "env", value: (d = o.data) == null ? void 0 : d.env }), !M.get("username") && M.set("username", (f = o.data) == null ? void 0 : f.name), l(!0);
|
|
875
875
|
}).catch((o) => {
|
|
876
876
|
n(o);
|
|
877
877
|
}) : n("http client not init");
|
|
@@ -883,24 +883,24 @@ const Dl = {
|
|
|
883
883
|
(o = t.http) == null || o.request({
|
|
884
884
|
url: "/user/routes",
|
|
885
885
|
method: "get"
|
|
886
|
-
}).then((
|
|
887
|
-
if (
|
|
888
|
-
const
|
|
889
|
-
l(
|
|
886
|
+
}).then((s) => {
|
|
887
|
+
if (s.code === 0) {
|
|
888
|
+
const a = s.data || [];
|
|
889
|
+
l(a);
|
|
890
890
|
} else
|
|
891
891
|
n("error");
|
|
892
|
-
}).catch((
|
|
893
|
-
console.log(
|
|
892
|
+
}).catch((s) => {
|
|
893
|
+
console.log(s), n(s);
|
|
894
894
|
});
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
|
-
},
|
|
898
|
+
}, Gl = y(it), Jl = {
|
|
899
899
|
namespaced: !0,
|
|
900
|
-
state:
|
|
900
|
+
state: Gl,
|
|
901
901
|
mutations: {
|
|
902
902
|
updateSettings(e, t) {
|
|
903
|
-
e =
|
|
903
|
+
e = F(e, t);
|
|
904
904
|
}
|
|
905
905
|
},
|
|
906
906
|
actions: {
|
|
@@ -908,7 +908,7 @@ const Dl = {
|
|
|
908
908
|
e("updateSettings", l);
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
},
|
|
911
|
+
}, zl = {
|
|
912
912
|
sidebar: {
|
|
913
913
|
opened: M.get("sidebarStatus") ? !!M.get("sidebarStatus") : !0,
|
|
914
914
|
withoutAnimation: !1
|
|
@@ -917,9 +917,9 @@ const Dl = {
|
|
|
917
917
|
pages: {},
|
|
918
918
|
currentRouteMeta: {},
|
|
919
919
|
builderSchema: {}
|
|
920
|
-
},
|
|
920
|
+
}, Kl = {
|
|
921
921
|
namespaced: !0,
|
|
922
|
-
state:
|
|
922
|
+
state: zl,
|
|
923
923
|
mutations: {
|
|
924
924
|
TOGGLE_SIDEBAR: (e) => {
|
|
925
925
|
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? M.set("sidebarStatus", "1") : M.set("sidebarStatus", "0");
|
|
@@ -960,11 +960,11 @@ const Dl = {
|
|
|
960
960
|
e("SET_BUILDER_SCHEMA", t);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
},
|
|
963
|
+
}, Wl = {
|
|
964
964
|
currentCellItem: {}
|
|
965
|
-
},
|
|
965
|
+
}, Zl = {
|
|
966
966
|
namespaced: !0,
|
|
967
|
-
state:
|
|
967
|
+
state: Wl,
|
|
968
968
|
mutations: {
|
|
969
969
|
SET_CURRENT_CELLITEM: (e, t) => {
|
|
970
970
|
e.currentCellItem = t;
|
|
@@ -975,7 +975,7 @@ const Dl = {
|
|
|
975
975
|
e("SET_CURRENT_CELLITEM", t);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
}, S =
|
|
978
|
+
}, S = dl({
|
|
979
979
|
state: void 0,
|
|
980
980
|
getters: {
|
|
981
981
|
http: (e) => e.http,
|
|
@@ -1002,12 +1002,12 @@ const Dl = {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
},
|
|
1004
1004
|
modules: {
|
|
1005
|
-
user:
|
|
1006
|
-
settings:
|
|
1007
|
-
app:
|
|
1008
|
-
builderSchema:
|
|
1005
|
+
user: Hl,
|
|
1006
|
+
settings: Jl,
|
|
1007
|
+
app: Kl,
|
|
1008
|
+
builderSchema: Zl
|
|
1009
1009
|
}
|
|
1010
|
-
}),
|
|
1010
|
+
}), Ue = fl, He = hl, Ql = Te.CancelToken, ie = {
|
|
1011
1011
|
taskList: {},
|
|
1012
1012
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1013
1013
|
uniqueId(e) {
|
|
@@ -1043,60 +1043,60 @@ const Dl = {
|
|
|
1043
1043
|
const t = this.uniqueId(e);
|
|
1044
1044
|
return this.cacheList.delete(t);
|
|
1045
1045
|
}
|
|
1046
|
-
},
|
|
1046
|
+
}, Xl = {
|
|
1047
1047
|
onFulfilled: function(e) {
|
|
1048
|
-
return e.cacheEnable === !1 || (
|
|
1049
|
-
|
|
1048
|
+
return e.cacheEnable === !1 || (ie.pending(e) && ie.delTask(e), e.cancelToken = new Ql((t) => {
|
|
1049
|
+
ie.addTask(e, t);
|
|
1050
1050
|
})), e;
|
|
1051
1051
|
},
|
|
1052
1052
|
onRejected(e) {
|
|
1053
1053
|
return Promise.reject(e);
|
|
1054
1054
|
}
|
|
1055
|
-
},
|
|
1055
|
+
}, Yl = {
|
|
1056
1056
|
onFulfilled: function(e) {
|
|
1057
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
1057
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ie.addCache(e.config, e.data), e;
|
|
1058
1058
|
},
|
|
1059
1059
|
onRejected(e) {
|
|
1060
1060
|
return Promise.reject(e);
|
|
1061
1061
|
}
|
|
1062
1062
|
};
|
|
1063
|
-
function
|
|
1063
|
+
function en() {
|
|
1064
1064
|
return S.state.user.token;
|
|
1065
1065
|
}
|
|
1066
|
-
const
|
|
1066
|
+
const tn = {
|
|
1067
1067
|
onFulfilled: function(e) {
|
|
1068
1068
|
e.headers = e.headers || {};
|
|
1069
|
-
const t =
|
|
1069
|
+
const t = en();
|
|
1070
1070
|
return t && (e.headers["X-Token"] = t), e;
|
|
1071
1071
|
}
|
|
1072
|
-
},
|
|
1072
|
+
}, ln = {
|
|
1073
1073
|
onFulfilled(e) {
|
|
1074
|
-
var n, o,
|
|
1074
|
+
var n, o, s, a, u, p, d;
|
|
1075
1075
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
1076
|
-
const
|
|
1076
|
+
const f = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
|
|
1077
1077
|
if (e.data.code === 401) {
|
|
1078
|
-
|
|
1078
|
+
He.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
|
|
1079
1079
|
showClose: !1,
|
|
1080
1080
|
confirmButtonText: "\u91CD\u65B0\u767B\u5F55",
|
|
1081
1081
|
showCancelButton: !0,
|
|
1082
1082
|
cancelButtonText: "\u53D6\u6D88",
|
|
1083
1083
|
callback: (_) => {
|
|
1084
|
-
_ === "confirm" && (
|
|
1084
|
+
_ === "confirm" && (ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
1085
1085
|
}
|
|
1086
1086
|
});
|
|
1087
1087
|
return;
|
|
1088
1088
|
} else
|
|
1089
|
-
|
|
1090
|
-
message:
|
|
1089
|
+
Ue({
|
|
1090
|
+
message: f,
|
|
1091
1091
|
type: "error",
|
|
1092
1092
|
duration: 5 * 1e3
|
|
1093
1093
|
});
|
|
1094
|
-
return Promise.reject(
|
|
1094
|
+
return Promise.reject(f);
|
|
1095
1095
|
}
|
|
1096
|
-
let l = (u = (
|
|
1097
|
-
return l !== void 0 && (
|
|
1096
|
+
let l = (u = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : u._message_box;
|
|
1097
|
+
return l !== void 0 && ($e(l) && (l = {
|
|
1098
1098
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
1099
|
-
}),
|
|
1099
|
+
}), He({
|
|
1100
1100
|
title: "\u63D0\u793A",
|
|
1101
1101
|
type: "success",
|
|
1102
1102
|
...l
|
|
@@ -1104,42 +1104,42 @@ const Gl = {
|
|
|
1104
1104
|
},
|
|
1105
1105
|
onRejected(e) {
|
|
1106
1106
|
var t;
|
|
1107
|
-
return
|
|
1107
|
+
return Te.isCancel(e) ? Promise.reject("") : (Ue({
|
|
1108
1108
|
message: `${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`,
|
|
1109
1109
|
type: "error",
|
|
1110
1110
|
duration: 5 * 1e3
|
|
1111
1111
|
}), Promise.reject(e));
|
|
1112
1112
|
}
|
|
1113
|
-
},
|
|
1113
|
+
}, nn = [
|
|
1114
1114
|
{
|
|
1115
|
-
request:
|
|
1116
|
-
response:
|
|
1115
|
+
request: Xl,
|
|
1116
|
+
response: Yl
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
|
-
request:
|
|
1120
|
-
response:
|
|
1119
|
+
request: tn,
|
|
1120
|
+
response: ln
|
|
1121
1121
|
}
|
|
1122
1122
|
];
|
|
1123
|
-
function
|
|
1124
|
-
const t =
|
|
1123
|
+
function Le(e = {}) {
|
|
1124
|
+
const t = de.axios || {}, l = F(t, e || {}), n = Te.create({
|
|
1125
1125
|
...l
|
|
1126
1126
|
});
|
|
1127
|
-
return
|
|
1127
|
+
return nn.forEach((o) => {
|
|
1128
1128
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
1129
1129
|
}), n;
|
|
1130
1130
|
}
|
|
1131
|
-
const
|
|
1132
|
-
const
|
|
1133
|
-
function
|
|
1134
|
-
|
|
1131
|
+
const on = Le();
|
|
1132
|
+
const pt = {};
|
|
1133
|
+
function hi(e, t) {
|
|
1134
|
+
pt[e] = t;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return
|
|
1136
|
+
function sn(e) {
|
|
1137
|
+
return pt[e];
|
|
1138
1138
|
}
|
|
1139
|
-
const
|
|
1139
|
+
const an = V({
|
|
1140
1140
|
name: "Dashboard",
|
|
1141
1141
|
setup() {
|
|
1142
|
-
const e =
|
|
1142
|
+
const e = at(), t = N(() => e.getters.name), l = sn("test");
|
|
1143
1143
|
return l ? () => c(l, null, null) : () => c("div", {
|
|
1144
1144
|
class: "dashboard-container"
|
|
1145
1145
|
}, [c("div", {
|
|
@@ -1147,13 +1147,13 @@ const Zl = V({
|
|
|
1147
1147
|
}, [g("Hi "), t.value, g(" \u{1F604}")])]);
|
|
1148
1148
|
}
|
|
1149
1149
|
});
|
|
1150
|
-
const
|
|
1150
|
+
const x = (e, t) => {
|
|
1151
1151
|
const l = e.__vccOpts || e;
|
|
1152
1152
|
for (const [n, o] of t)
|
|
1153
1153
|
l[n] = o;
|
|
1154
1154
|
return l;
|
|
1155
|
-
},
|
|
1156
|
-
const
|
|
1155
|
+
}, rn = /* @__PURE__ */ x(an, [["__scopeId", "data-v-07cd0734"]]);
|
|
1156
|
+
const un = {
|
|
1157
1157
|
data() {
|
|
1158
1158
|
return {
|
|
1159
1159
|
levelList: null
|
|
@@ -1185,7 +1185,7 @@ const Xl = {
|
|
|
1185
1185
|
},
|
|
1186
1186
|
pathCompile(e) {
|
|
1187
1187
|
const { params: t } = this.$route;
|
|
1188
|
-
return
|
|
1188
|
+
return Bl.compile(e)(t);
|
|
1189
1189
|
},
|
|
1190
1190
|
handleLink(e) {
|
|
1191
1191
|
const { redirect: t, path: l } = e;
|
|
@@ -1196,27 +1196,27 @@ const Xl = {
|
|
|
1196
1196
|
this.$router.push(this.pathCompile(l));
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
},
|
|
1199
|
+
}, cn = {
|
|
1200
1200
|
key: 0,
|
|
1201
1201
|
class: "no-redirect"
|
|
1202
|
-
},
|
|
1203
|
-
function
|
|
1204
|
-
const
|
|
1202
|
+
}, pn = ["onClick"];
|
|
1203
|
+
function dn(e, t, l, n, o, s) {
|
|
1204
|
+
const a = Nt, u = Vt;
|
|
1205
1205
|
return i(), m(u, {
|
|
1206
1206
|
class: "app-breadcrumb",
|
|
1207
1207
|
separator: "/"
|
|
1208
1208
|
}, {
|
|
1209
1209
|
default: r(() => [
|
|
1210
|
-
c(
|
|
1210
|
+
c(It, { name: "breadcrumb" }, {
|
|
1211
1211
|
default: r(() => [
|
|
1212
|
-
(i(!0),
|
|
1212
|
+
(i(!0), h(E, null, A(o.levelList, (p, d) => (i(), m(a, {
|
|
1213
1213
|
key: p.path
|
|
1214
1214
|
}, {
|
|
1215
1215
|
default: r(() => [
|
|
1216
|
-
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(),
|
|
1216
|
+
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", cn, I(p.meta.title), 1)) : (i(), h("a", {
|
|
1217
1217
|
key: 1,
|
|
1218
|
-
onClick: (
|
|
1219
|
-
}, I(p.meta.title), 9,
|
|
1218
|
+
onClick: (f) => s.handleLink(p)
|
|
1219
|
+
}, I(p.meta.title), 9, pn))
|
|
1220
1220
|
]),
|
|
1221
1221
|
_: 2
|
|
1222
1222
|
}, 1024))), 128))
|
|
@@ -1227,7 +1227,7 @@ function to(e, t, l, n, o, a) {
|
|
|
1227
1227
|
_: 1
|
|
1228
1228
|
});
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1230
|
+
const mn = /* @__PURE__ */ x(un, [["render", dn], ["__scopeId", "data-v-fa74804e"]]), fn = {
|
|
1231
1231
|
name: "Hamburger",
|
|
1232
1232
|
props: {
|
|
1233
1233
|
isActive: {
|
|
@@ -1242,27 +1242,27 @@ const lo = /* @__PURE__ */ B(Xl, [["render", to], ["__scopeId", "data-v-fa74804e
|
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
|
-
function
|
|
1246
|
-
const
|
|
1247
|
-
return i(),
|
|
1245
|
+
function hn(e, t, l, n, o, s) {
|
|
1246
|
+
const a = v("v-icon");
|
|
1247
|
+
return i(), h("div", {
|
|
1248
1248
|
style: { padding: "0 15px" },
|
|
1249
|
-
onClick: t[0] || (t[0] = (...u) =>
|
|
1249
|
+
onClick: t[0] || (t[0] = (...u) => s.toggleClick && s.toggleClick(...u))
|
|
1250
1250
|
}, [
|
|
1251
|
-
c(
|
|
1251
|
+
c(a, {
|
|
1252
1252
|
class: G({ "is-active": l.isActive }),
|
|
1253
1253
|
name: "ra-leftalignment"
|
|
1254
1254
|
}, null, 8, ["class"])
|
|
1255
1255
|
]);
|
|
1256
1256
|
}
|
|
1257
|
-
const
|
|
1258
|
-
const
|
|
1259
|
-
function
|
|
1260
|
-
const l =
|
|
1261
|
-
return i(), m(
|
|
1257
|
+
const bn = /* @__PURE__ */ x(fn, [["render", hn]]);
|
|
1258
|
+
const _n = {};
|
|
1259
|
+
function yn(e, t) {
|
|
1260
|
+
const l = se, n = qt, o = Ut, s = Ht;
|
|
1261
|
+
return i(), m(s, { style: { width: "100%", height: "100%" } }, {
|
|
1262
1262
|
default: r(() => [
|
|
1263
1263
|
c(l, { class: "aside" }, {
|
|
1264
1264
|
default: r(() => [
|
|
1265
|
-
|
|
1265
|
+
te(e.$slots, "left-aside", {}, void 0, !0)
|
|
1266
1266
|
]),
|
|
1267
1267
|
_: 3
|
|
1268
1268
|
}),
|
|
@@ -1271,7 +1271,7 @@ function io(e, t) {
|
|
|
1271
1271
|
style: { margin: "0 10px" }
|
|
1272
1272
|
}, {
|
|
1273
1273
|
default: r(() => [
|
|
1274
|
-
|
|
1274
|
+
te(e.$slots, "main", {}, void 0, !0)
|
|
1275
1275
|
]),
|
|
1276
1276
|
_: 3
|
|
1277
1277
|
}),
|
|
@@ -1281,7 +1281,7 @@ function io(e, t) {
|
|
|
1281
1281
|
style: { padding: "20px" }
|
|
1282
1282
|
}, {
|
|
1283
1283
|
default: r(() => [
|
|
1284
|
-
|
|
1284
|
+
te(e.$slots, "right-aside", {}, void 0, !0)
|
|
1285
1285
|
]),
|
|
1286
1286
|
_: 3
|
|
1287
1287
|
})
|
|
@@ -1289,7 +1289,7 @@ function io(e, t) {
|
|
|
1289
1289
|
_: 3
|
|
1290
1290
|
});
|
|
1291
1291
|
}
|
|
1292
|
-
const
|
|
1292
|
+
const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b"]]), vn = {
|
|
1293
1293
|
type: "input",
|
|
1294
1294
|
name: "\u6587\u672C\u6846",
|
|
1295
1295
|
default: {
|
|
@@ -1357,7 +1357,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
]
|
|
1360
|
-
},
|
|
1360
|
+
}, gn = {
|
|
1361
1361
|
type: "number",
|
|
1362
1362
|
name: "\u6570\u5B57",
|
|
1363
1363
|
default: {
|
|
@@ -1399,7 +1399,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
1401
|
]
|
|
1402
|
-
},
|
|
1402
|
+
}, kn = {
|
|
1403
1403
|
type: "number-range",
|
|
1404
1404
|
name: "\u6570\u5B57\u533A\u95F4",
|
|
1405
1405
|
default: {
|
|
@@ -1440,7 +1440,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
]
|
|
1443
|
-
},
|
|
1443
|
+
}, En = {
|
|
1444
1444
|
type: "select",
|
|
1445
1445
|
name: "\u4E0B\u62C9\u6846",
|
|
1446
1446
|
default: {
|
|
@@ -1546,7 +1546,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1546
1546
|
const t = y(e);
|
|
1547
1547
|
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;
|
|
1548
1548
|
}
|
|
1549
|
-
},
|
|
1549
|
+
}, wn = {
|
|
1550
1550
|
type: "radio",
|
|
1551
1551
|
name: "\u5355\u9009\u6846",
|
|
1552
1552
|
default: {
|
|
@@ -1592,7 +1592,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1592
1592
|
label: "\u9ED8\u8BA4\u503C"
|
|
1593
1593
|
}
|
|
1594
1594
|
]
|
|
1595
|
-
},
|
|
1595
|
+
}, Sn = {
|
|
1596
1596
|
type: "switch",
|
|
1597
1597
|
name: "\u5F00\u5173",
|
|
1598
1598
|
default: {
|
|
@@ -1648,7 +1648,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
1650
|
]
|
|
1651
|
-
},
|
|
1651
|
+
}, Cn = {
|
|
1652
1652
|
type: "code",
|
|
1653
1653
|
name: "Code",
|
|
1654
1654
|
default: {
|
|
@@ -1668,7 +1668,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1668
1668
|
label: "\u5B57\u6BB5key"
|
|
1669
1669
|
}
|
|
1670
1670
|
]
|
|
1671
|
-
},
|
|
1671
|
+
}, xn = {
|
|
1672
1672
|
type: "json",
|
|
1673
1673
|
name: "json",
|
|
1674
1674
|
default: {
|
|
@@ -1688,7 +1688,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1688
1688
|
label: "\u5B57\u6BB5key"
|
|
1689
1689
|
}
|
|
1690
1690
|
]
|
|
1691
|
-
},
|
|
1691
|
+
}, Bn = {
|
|
1692
1692
|
type: "upload",
|
|
1693
1693
|
name: "\u4E0A\u4F20",
|
|
1694
1694
|
default: {
|
|
@@ -1708,7 +1708,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1708
1708
|
label: "\u5B57\u6BB5key"
|
|
1709
1709
|
}
|
|
1710
1710
|
]
|
|
1711
|
-
},
|
|
1711
|
+
}, In = {
|
|
1712
1712
|
type: "template",
|
|
1713
1713
|
name: "\u81EA\u5B9A\u4E49\u7EC4\u4EF6",
|
|
1714
1714
|
default: {
|
|
@@ -1728,7 +1728,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1728
1728
|
label: "\u5B57\u6BB5key"
|
|
1729
1729
|
}
|
|
1730
1730
|
]
|
|
1731
|
-
},
|
|
1731
|
+
}, An = {
|
|
1732
1732
|
type: "icon-select",
|
|
1733
1733
|
name: "\u56FE\u6807\u9009\u62E9\u5668",
|
|
1734
1734
|
default: {
|
|
@@ -1748,7 +1748,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1748
1748
|
label: "\u5B57\u6BB5key"
|
|
1749
1749
|
}
|
|
1750
1750
|
]
|
|
1751
|
-
},
|
|
1751
|
+
}, $n = {
|
|
1752
1752
|
type: "sub-form",
|
|
1753
1753
|
name: "\u5B50\u8868\u5355",
|
|
1754
1754
|
default: {
|
|
@@ -1816,7 +1816,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
1818
|
]
|
|
1819
|
-
},
|
|
1819
|
+
}, Tn = {
|
|
1820
1820
|
type: "checkbox",
|
|
1821
1821
|
name: "\u590D\u9009\u6846",
|
|
1822
1822
|
default: {
|
|
@@ -1862,24 +1862,24 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
1864
|
]
|
|
1865
|
-
},
|
|
1866
|
-
function
|
|
1867
|
-
|
|
1865
|
+
}, mt = {};
|
|
1866
|
+
function O(e) {
|
|
1867
|
+
mt[e.type] = e;
|
|
1868
1868
|
}
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
const
|
|
1869
|
+
O(vn);
|
|
1870
|
+
O(En);
|
|
1871
|
+
O(gn);
|
|
1872
|
+
O(kn);
|
|
1873
|
+
O(Sn);
|
|
1874
|
+
O($n);
|
|
1875
|
+
O(wn);
|
|
1876
|
+
O(Tn);
|
|
1877
|
+
O(Cn);
|
|
1878
|
+
O(xn);
|
|
1879
|
+
O(Bn);
|
|
1880
|
+
O(An);
|
|
1881
|
+
O(In);
|
|
1882
|
+
const we = mt, Fn = {
|
|
1883
1883
|
options: {
|
|
1884
1884
|
labelPosition: "top",
|
|
1885
1885
|
submitButton: !1,
|
|
@@ -1982,11 +1982,11 @@ const be = {
|
|
|
1982
1982
|
labelPosition: "top",
|
|
1983
1983
|
submitButton: !1,
|
|
1984
1984
|
cancelButton: !1
|
|
1985
|
-
},
|
|
1986
|
-
Object.keys(
|
|
1987
|
-
|
|
1985
|
+
}, Me = [];
|
|
1986
|
+
Object.keys(we).forEach((e) => {
|
|
1987
|
+
Me.push({ value: e, label: we[e].name });
|
|
1988
1988
|
});
|
|
1989
|
-
const
|
|
1989
|
+
const On = {
|
|
1990
1990
|
options: {
|
|
1991
1991
|
submitButton: !1,
|
|
1992
1992
|
cancelButton: !1
|
|
@@ -2007,7 +2007,7 @@ const wo = {
|
|
|
2007
2007
|
type: "select",
|
|
2008
2008
|
field: "type",
|
|
2009
2009
|
label: "\u7C7B\u578B",
|
|
2010
|
-
options: y(
|
|
2010
|
+
options: y(Me)
|
|
2011
2011
|
},
|
|
2012
2012
|
{
|
|
2013
2013
|
type: "input",
|
|
@@ -2018,8 +2018,8 @@ const wo = {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
}
|
|
2020
2020
|
]
|
|
2021
|
-
},
|
|
2022
|
-
components: { DevLayout:
|
|
2021
|
+
}, Dn = {
|
|
2022
|
+
components: { DevLayout: dt, VForm: J, VButton: Oe, JsonView: De },
|
|
2023
2023
|
props: {
|
|
2024
2024
|
schema: {
|
|
2025
2025
|
type: Object,
|
|
@@ -2030,8 +2030,8 @@ const wo = {
|
|
|
2030
2030
|
data() {
|
|
2031
2031
|
return {
|
|
2032
2032
|
sqlOptions: {},
|
|
2033
|
-
sqlSchema:
|
|
2034
|
-
baseSchema:
|
|
2033
|
+
sqlSchema: On,
|
|
2034
|
+
baseSchema: Fn,
|
|
2035
2035
|
activeTab: "base",
|
|
2036
2036
|
builderSchema: Object.assign(
|
|
2037
2037
|
{},
|
|
@@ -2051,12 +2051,12 @@ const wo = {
|
|
|
2051
2051
|
ctrlSchema: {},
|
|
2052
2052
|
ctrlName: "",
|
|
2053
2053
|
activeIndex: void 0,
|
|
2054
|
-
ctrlMap:
|
|
2054
|
+
ctrlMap: we,
|
|
2055
2055
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
2056
2056
|
tableStruct: "",
|
|
2057
2057
|
activeName: "1",
|
|
2058
2058
|
currentCtrlType: "input",
|
|
2059
|
-
types: y(
|
|
2059
|
+
types: y(Me)
|
|
2060
2060
|
};
|
|
2061
2061
|
},
|
|
2062
2062
|
computed: {
|
|
@@ -2072,20 +2072,20 @@ const wo = {
|
|
|
2072
2072
|
immediate: !0,
|
|
2073
2073
|
handler(e) {
|
|
2074
2074
|
const t = y(e);
|
|
2075
|
-
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema =
|
|
2075
|
+
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = F(this.builderSchema, { options: t }), this.key++);
|
|
2076
2076
|
}
|
|
2077
2077
|
},
|
|
2078
2078
|
ctrlOptions: {
|
|
2079
2079
|
deep: !0,
|
|
2080
2080
|
handler(e) {
|
|
2081
|
-
const t =
|
|
2081
|
+
const t = le(this.builderSchema, this.activeIndex);
|
|
2082
2082
|
if (!t)
|
|
2083
2083
|
return;
|
|
2084
2084
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2085
2085
|
if (o && Object.keys(o).length > 0) {
|
|
2086
2086
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2087
|
-
const [
|
|
2088
|
-
this.builderSchema[
|
|
2087
|
+
const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2088
|
+
this.builderSchema[a][u] = { ...o };
|
|
2089
2089
|
} else
|
|
2090
2090
|
this.builderSchema[this.activeIndex] = o;
|
|
2091
2091
|
this.key++;
|
|
@@ -2099,22 +2099,22 @@ const wo = {
|
|
|
2099
2099
|
options: y(be),
|
|
2100
2100
|
formItems: y(t.builder)
|
|
2101
2101
|
});
|
|
2102
|
-
const l =
|
|
2102
|
+
const l = le(this.builderSchema, this.activeIndex);
|
|
2103
2103
|
this.ctrlOptions = y(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
2106
|
},
|
|
2107
2107
|
beforeCreate() {
|
|
2108
|
-
|
|
2108
|
+
z.on("dev-action", ({ event: e, data: t }) => {
|
|
2109
2109
|
this.onDevAction(t.type, t.devId);
|
|
2110
2110
|
});
|
|
2111
2111
|
},
|
|
2112
2112
|
unmounted() {
|
|
2113
|
-
|
|
2113
|
+
z.off("dev-action");
|
|
2114
2114
|
},
|
|
2115
2115
|
methods: {
|
|
2116
2116
|
onDevAction(e, t) {
|
|
2117
|
-
|
|
2117
|
+
this.activeIndex = "formItems" + t, e === "edit" && (this.activeTab = "ctrl", this.clicklabel()), e === "del" && (this.activeTab = "base", this.removeOne()), this.ctrlKey++;
|
|
2118
2118
|
},
|
|
2119
2119
|
push(e) {
|
|
2120
2120
|
const t = "formItems";
|
|
@@ -2126,12 +2126,12 @@ const wo = {
|
|
|
2126
2126
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2127
2127
|
},
|
|
2128
2128
|
removeOne() {
|
|
2129
|
-
|
|
2129
|
+
st(this.builderSchema, this.activeIndex), this.builderSchema = y(lt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2130
2130
|
},
|
|
2131
2131
|
clicklabel() {
|
|
2132
2132
|
const e = this.activeIndex;
|
|
2133
2133
|
if (e.match(this.activeIndexReg)) {
|
|
2134
|
-
const l = y(
|
|
2134
|
+
const l = y(le(this.builderSchema, e)), n = l.type, o = this.ctrlMap[n];
|
|
2135
2135
|
if (!o) {
|
|
2136
2136
|
this.$message({ type: "warning", message: "\u5C1A\u672A\u652F\u6301\u8BE5\u7EC4\u4EF6\u7684UI\u7F16\u8F91" });
|
|
2137
2137
|
return;
|
|
@@ -2153,19 +2153,19 @@ const wo = {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
2155
2155
|
};
|
|
2156
|
-
function
|
|
2157
|
-
const
|
|
2156
|
+
function Pn(e, t, l, n, o, s) {
|
|
2157
|
+
const a = v("v-form"), u = Xe, p = ue, d = v("JsonView"), f = v("VButton"), _ = xe, T = Be, $ = Ye, H = et, q = v("dev-layout");
|
|
2158
2158
|
return i(), m(q, null, {
|
|
2159
2159
|
main: r(() => [
|
|
2160
|
-
o.builderSchema.formItems ? (i(), m(
|
|
2160
|
+
o.builderSchema.formItems ? (i(), m(a, U({
|
|
2161
2161
|
ref: "form",
|
|
2162
2162
|
key: o.key,
|
|
2163
2163
|
dev: !0
|
|
2164
|
-
}, o.builderSchema), null, 16)) :
|
|
2164
|
+
}, o.builderSchema), null, 16)) : w("", !0),
|
|
2165
2165
|
c(u),
|
|
2166
2166
|
c(p, {
|
|
2167
2167
|
type: "primary",
|
|
2168
|
-
onClick:
|
|
2168
|
+
onClick: s.saveSchema
|
|
2169
2169
|
}, {
|
|
2170
2170
|
default: r(() => [
|
|
2171
2171
|
g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
|
|
@@ -2173,12 +2173,12 @@ function Co(e, t, l, n, o, a) {
|
|
|
2173
2173
|
_: 1
|
|
2174
2174
|
}, 8, ["onClick"]),
|
|
2175
2175
|
g(" \xA0\xA0 "),
|
|
2176
|
-
c(
|
|
2176
|
+
c(f, {
|
|
2177
2177
|
text: "PageSchema",
|
|
2178
2178
|
type: "modal"
|
|
2179
2179
|
}, {
|
|
2180
2180
|
default: r(() => [
|
|
2181
|
-
c(d, { data:
|
|
2181
|
+
c(d, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
2182
2182
|
]),
|
|
2183
2183
|
_: 1
|
|
2184
2184
|
})
|
|
@@ -2190,13 +2190,13 @@ function Co(e, t, l, n, o, a) {
|
|
|
2190
2190
|
default: r(() => [
|
|
2191
2191
|
c(T, {
|
|
2192
2192
|
modelValue: o.currentCtrlType,
|
|
2193
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2193
|
+
"onUpdate:modelValue": t[0] || (t[0] = (B) => o.currentCtrlType = B)
|
|
2194
2194
|
}, {
|
|
2195
2195
|
default: r(() => [
|
|
2196
|
-
(i(!0),
|
|
2197
|
-
key:
|
|
2198
|
-
label:
|
|
2199
|
-
value:
|
|
2196
|
+
(i(!0), h(E, null, A(o.types, (B, W) => (i(), m(_, {
|
|
2197
|
+
key: W,
|
|
2198
|
+
label: B.label,
|
|
2199
|
+
value: B.value
|
|
2200
2200
|
}, null, 8, ["label", "value"]))), 128))
|
|
2201
2201
|
]),
|
|
2202
2202
|
_: 1
|
|
@@ -2206,17 +2206,17 @@ function Co(e, t, l, n, o, a) {
|
|
|
2206
2206
|
})
|
|
2207
2207
|
]),
|
|
2208
2208
|
_: 1
|
|
2209
|
-
})) :
|
|
2210
|
-
(i(), m(
|
|
2209
|
+
})) : w("", !0),
|
|
2210
|
+
(i(), m(a, U({
|
|
2211
2211
|
key: o.ctrlKey,
|
|
2212
2212
|
modelValue: o.ctrlOptions,
|
|
2213
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2213
|
+
"onUpdate:modelValue": t[1] || (t[1] = (B) => o.ctrlOptions = B)
|
|
2214
2214
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
2215
2215
|
]),
|
|
2216
2216
|
_: 1
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
|
-
const
|
|
2219
|
+
const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171"]]), Ln = {
|
|
2220
2220
|
type: "input",
|
|
2221
2221
|
name: "\u6587\u672C\u6846",
|
|
2222
2222
|
default: {
|
|
@@ -2264,7 +2264,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2264
2264
|
}
|
|
2265
2265
|
}
|
|
2266
2266
|
]
|
|
2267
|
-
},
|
|
2267
|
+
}, Mn = {
|
|
2268
2268
|
type: "select",
|
|
2269
2269
|
name: "\u4E0B\u62C9\u6846",
|
|
2270
2270
|
default: {
|
|
@@ -2365,7 +2365,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2365
2365
|
const t = y(e);
|
|
2366
2366
|
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;
|
|
2367
2367
|
}
|
|
2368
|
-
},
|
|
2368
|
+
}, jn = {
|
|
2369
2369
|
type: "date",
|
|
2370
2370
|
name: "\u65E5\u671F",
|
|
2371
2371
|
default: {
|
|
@@ -2385,7 +2385,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2385
2385
|
label: "\u5B57\u6BB5key"
|
|
2386
2386
|
}
|
|
2387
2387
|
]
|
|
2388
|
-
},
|
|
2388
|
+
}, Ge = {
|
|
2389
2389
|
options: {
|
|
2390
2390
|
labelPosition: "top",
|
|
2391
2391
|
submitButton: !1,
|
|
@@ -2414,7 +2414,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2414
2414
|
labelPosition: "top",
|
|
2415
2415
|
submitButton: !1,
|
|
2416
2416
|
cancelButton: !1
|
|
2417
|
-
},
|
|
2417
|
+
}, Nn = {
|
|
2418
2418
|
type: "span",
|
|
2419
2419
|
name: "\u6587\u672C",
|
|
2420
2420
|
default: {
|
|
@@ -2444,7 +2444,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2444
2444
|
label: "\u6392\u5E8F"
|
|
2445
2445
|
}
|
|
2446
2446
|
]
|
|
2447
|
-
},
|
|
2447
|
+
}, Vn = {
|
|
2448
2448
|
type: "enum",
|
|
2449
2449
|
name: "\u6807\u7B7E",
|
|
2450
2450
|
default: {
|
|
@@ -2495,7 +2495,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2495
2495
|
trans(e) {
|
|
2496
2496
|
return e.options = e.options || [], e.label || (e.label = "\u8868\u5934"), e;
|
|
2497
2497
|
}
|
|
2498
|
-
},
|
|
2498
|
+
}, qn = {
|
|
2499
2499
|
type: "html",
|
|
2500
2500
|
name: "HTML",
|
|
2501
2501
|
default: {
|
|
@@ -2520,7 +2520,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2520
2520
|
label: "\u63D0\u793A"
|
|
2521
2521
|
}
|
|
2522
2522
|
]
|
|
2523
|
-
},
|
|
2523
|
+
}, Un = {
|
|
2524
2524
|
type: "icon",
|
|
2525
2525
|
name: "\u56FE\u6807",
|
|
2526
2526
|
default: {
|
|
@@ -2545,7 +2545,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2545
2545
|
label: "\u63D0\u793A"
|
|
2546
2546
|
}
|
|
2547
2547
|
]
|
|
2548
|
-
},
|
|
2548
|
+
}, Hn = {
|
|
2549
2549
|
type: "image",
|
|
2550
2550
|
name: "\u56FE\u7247",
|
|
2551
2551
|
default: {
|
|
@@ -2570,7 +2570,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2570
2570
|
label: "\u63D0\u793A"
|
|
2571
2571
|
}
|
|
2572
2572
|
]
|
|
2573
|
-
},
|
|
2573
|
+
}, Gn = {
|
|
2574
2574
|
type: "json",
|
|
2575
2575
|
name: "JSON",
|
|
2576
2576
|
default: {
|
|
@@ -2595,7 +2595,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2595
2595
|
label: "\u63D0\u793A"
|
|
2596
2596
|
}
|
|
2597
2597
|
]
|
|
2598
|
-
},
|
|
2598
|
+
}, Jn = {
|
|
2599
2599
|
type: "link",
|
|
2600
2600
|
name: "\u94FE\u63A5",
|
|
2601
2601
|
default: {
|
|
@@ -2620,7 +2620,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2620
2620
|
label: "\u63D0\u793A"
|
|
2621
2621
|
}
|
|
2622
2622
|
]
|
|
2623
|
-
},
|
|
2623
|
+
}, zn = {
|
|
2624
2624
|
type: "rich",
|
|
2625
2625
|
name: "\u5BCC\u6587\u672C",
|
|
2626
2626
|
default: {
|
|
@@ -2645,7 +2645,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2645
2645
|
label: "\u63D0\u793A"
|
|
2646
2646
|
}
|
|
2647
2647
|
]
|
|
2648
|
-
},
|
|
2648
|
+
}, Kn = {
|
|
2649
2649
|
type: "tpl",
|
|
2650
2650
|
name: "\u6A21\u677F",
|
|
2651
2651
|
default: {
|
|
@@ -2676,17 +2676,17 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2676
2676
|
info: "\u4F8B\u5982 <code>\u59D3\u540D: {name} \u5E74\u9F84:{age}</code>"
|
|
2677
2677
|
}
|
|
2678
2678
|
]
|
|
2679
|
-
},
|
|
2680
|
-
span:
|
|
2681
|
-
enum:
|
|
2682
|
-
html:
|
|
2683
|
-
icon:
|
|
2684
|
-
image:
|
|
2685
|
-
json:
|
|
2686
|
-
link:
|
|
2687
|
-
rich:
|
|
2688
|
-
tpl:
|
|
2689
|
-
},
|
|
2679
|
+
}, Wn = {
|
|
2680
|
+
span: Nn,
|
|
2681
|
+
enum: Vn,
|
|
2682
|
+
html: qn,
|
|
2683
|
+
icon: Un,
|
|
2684
|
+
image: Hn,
|
|
2685
|
+
json: Gn,
|
|
2686
|
+
link: Jn,
|
|
2687
|
+
rich: zn,
|
|
2688
|
+
tpl: Kn
|
|
2689
|
+
}, Zn = {
|
|
2690
2690
|
type: "jump",
|
|
2691
2691
|
name: "\u8DF3\u8F6C",
|
|
2692
2692
|
default: {
|
|
@@ -2733,7 +2733,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
2735
|
]
|
|
2736
|
-
},
|
|
2736
|
+
}, Qn = {
|
|
2737
2737
|
type: "api",
|
|
2738
2738
|
name: "\u63A5\u53E3\u8BF7\u6C42",
|
|
2739
2739
|
default: {
|
|
@@ -2802,7 +2802,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
2804
|
]
|
|
2805
|
-
},
|
|
2805
|
+
}, Xn = {
|
|
2806
2806
|
type: "form",
|
|
2807
2807
|
name: "\u5F39\u6846\u8868\u5355",
|
|
2808
2808
|
default: {
|
|
@@ -2856,7 +2856,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2856
2856
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2857
2857
|
}
|
|
2858
2858
|
]
|
|
2859
|
-
},
|
|
2859
|
+
}, Yn = {
|
|
2860
2860
|
type: "table",
|
|
2861
2861
|
name: "\u5F39\u6846\u5217\u8868",
|
|
2862
2862
|
default: {
|
|
@@ -2910,14 +2910,14 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2910
2910
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2911
2911
|
}
|
|
2912
2912
|
]
|
|
2913
|
-
},
|
|
2914
|
-
jump:
|
|
2915
|
-
api:
|
|
2916
|
-
form:
|
|
2917
|
-
table:
|
|
2913
|
+
}, eo = {
|
|
2914
|
+
jump: Zn,
|
|
2915
|
+
api: Qn,
|
|
2916
|
+
form: Xn,
|
|
2917
|
+
table: Yn
|
|
2918
2918
|
};
|
|
2919
|
-
const
|
|
2920
|
-
components: { JsonView: De, DevLayout:
|
|
2919
|
+
const to = {
|
|
2920
|
+
components: { JsonView: De, DevLayout: dt, VTable: ne, VForm: J, VButton: Oe },
|
|
2921
2921
|
props: {
|
|
2922
2922
|
schema: {
|
|
2923
2923
|
type: Object,
|
|
@@ -2926,13 +2926,13 @@ const Go = {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
},
|
|
2928
2928
|
data() {
|
|
2929
|
-
const e =
|
|
2929
|
+
const e = At(this.$props.schema);
|
|
2930
2930
|
return delete e.listApi, e.list = [{}], {
|
|
2931
|
-
baseSchema:
|
|
2931
|
+
baseSchema: Ge,
|
|
2932
2932
|
activeTab: "base",
|
|
2933
2933
|
builderSchema: Object.assign(
|
|
2934
2934
|
{},
|
|
2935
|
-
|
|
2935
|
+
Ge,
|
|
2936
2936
|
e
|
|
2937
2937
|
),
|
|
2938
2938
|
baseOptions: {},
|
|
@@ -2945,9 +2945,9 @@ const Go = {
|
|
|
2945
2945
|
ctrlName: "",
|
|
2946
2946
|
activeIndex: void 0,
|
|
2947
2947
|
ctrlMap: {
|
|
2948
|
-
filter: { input:
|
|
2949
|
-
headers:
|
|
2950
|
-
buttons:
|
|
2948
|
+
filter: { input: Ln, select: Mn, date: jn },
|
|
2949
|
+
headers: Wn,
|
|
2950
|
+
buttons: eo
|
|
2951
2951
|
},
|
|
2952
2952
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2953
2953
|
currentCtrlType: "input"
|
|
@@ -2978,7 +2978,7 @@ const Go = {
|
|
|
2978
2978
|
deep: !0,
|
|
2979
2979
|
immediate: !0,
|
|
2980
2980
|
handler(e) {
|
|
2981
|
-
this.builderSchema =
|
|
2981
|
+
this.builderSchema = F(this.builderSchema, e), this.key++, this.updateBuilderSchema();
|
|
2982
2982
|
}
|
|
2983
2983
|
},
|
|
2984
2984
|
ctrlOptions: {
|
|
@@ -2995,8 +2995,8 @@ const Go = {
|
|
|
2995
2995
|
const o = n.trans ? n.trans(e) : e;
|
|
2996
2996
|
if (o && Object.keys(o).length > 0) {
|
|
2997
2997
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2998
|
-
const [
|
|
2999
|
-
this.builderSchema[
|
|
2998
|
+
const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2999
|
+
this.builderSchema[a][u] = { ...o };
|
|
3000
3000
|
} else
|
|
3001
3001
|
this.builderSchema[this.activeIndex] = o;
|
|
3002
3002
|
this.key++;
|
|
@@ -3011,7 +3011,7 @@ const Go = {
|
|
|
3011
3011
|
options: y(_e),
|
|
3012
3012
|
formItems: y(t.builder)
|
|
3013
3013
|
});
|
|
3014
|
-
const l =
|
|
3014
|
+
const l = le(this.builderSchema, this.activeIndex);
|
|
3015
3015
|
l.type = e;
|
|
3016
3016
|
const n = y(l);
|
|
3017
3017
|
this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
@@ -3019,12 +3019,12 @@ const Go = {
|
|
|
3019
3019
|
}
|
|
3020
3020
|
},
|
|
3021
3021
|
beforeCreate() {
|
|
3022
|
-
|
|
3022
|
+
z.on("dev-action", ({ event: e, data: t }) => {
|
|
3023
3023
|
this.onDevAction(t.type, t.devId);
|
|
3024
3024
|
});
|
|
3025
3025
|
},
|
|
3026
3026
|
unmounted() {
|
|
3027
|
-
|
|
3027
|
+
z.off("dev-action");
|
|
3028
3028
|
},
|
|
3029
3029
|
methods: {
|
|
3030
3030
|
updateBuilderSchema() {
|
|
@@ -3060,13 +3060,13 @@ const Go = {
|
|
|
3060
3060
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3061
3061
|
},
|
|
3062
3062
|
removeOne() {
|
|
3063
|
-
|
|
3063
|
+
st(this.builderSchema, this.activeIndex), this.builderSchema = y(lt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3064
3064
|
},
|
|
3065
3065
|
clicklabel() {
|
|
3066
3066
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
3067
3067
|
if (t) {
|
|
3068
|
-
const l = y(
|
|
3069
|
-
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons")
|
|
3068
|
+
const l = y(le(this.builderSchema, e));
|
|
3069
|
+
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
|
|
3070
3070
|
let n = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
3071
3071
|
t[1] === "headers" && n === void 0 && (n = "span");
|
|
3072
3072
|
const o = this.ctrlMap[this.activeBrick][n];
|
|
@@ -3092,21 +3092,21 @@ const Go = {
|
|
|
3092
3092
|
normalButton: n,
|
|
3093
3093
|
batchButton: o
|
|
3094
3094
|
}
|
|
3095
|
-
}).then(({ data:
|
|
3096
|
-
|
|
3095
|
+
}).then(({ data: s }) => {
|
|
3096
|
+
s && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
|
|
3097
3097
|
});
|
|
3098
3098
|
}
|
|
3099
3099
|
}
|
|
3100
3100
|
};
|
|
3101
|
-
function
|
|
3102
|
-
const
|
|
3103
|
-
return i(), m(
|
|
3101
|
+
function lo(e, t, l, n, o, s) {
|
|
3102
|
+
const a = ce, u = ue, p = se, d = v("v-table"), f = Xe, _ = ue, T = v("JsonView"), $ = v("VButton"), H = xe, q = Be, B = Ye, W = et, wt = v("v-form"), St = v("dev-layout");
|
|
3103
|
+
return i(), m(St, null, {
|
|
3104
3104
|
"left-aside": r(() => [
|
|
3105
3105
|
c(p, { style: { width: "200px" } }, {
|
|
3106
3106
|
default: r(() => [
|
|
3107
3107
|
c(p, null, {
|
|
3108
3108
|
default: r(() => [
|
|
3109
|
-
c(
|
|
3109
|
+
c(a, {
|
|
3110
3110
|
class: "title",
|
|
3111
3111
|
"data-id": 22222
|
|
3112
3112
|
}, {
|
|
@@ -3115,11 +3115,11 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3115
3115
|
]),
|
|
3116
3116
|
_: 1
|
|
3117
3117
|
}),
|
|
3118
|
-
c(
|
|
3118
|
+
c(a, { class: "ctrl" }, {
|
|
3119
3119
|
default: r(() => [
|
|
3120
3120
|
c(u, {
|
|
3121
3121
|
class: "ctrl-btn",
|
|
3122
|
-
onClick: t[0] || (t[0] = (C) =>
|
|
3122
|
+
onClick: t[0] || (t[0] = (C) => s.pushFilter("input"))
|
|
3123
3123
|
}, {
|
|
3124
3124
|
default: r(() => [
|
|
3125
3125
|
g("\u6587\u672C\u6846")
|
|
@@ -3129,11 +3129,11 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3129
3129
|
]),
|
|
3130
3130
|
_: 1
|
|
3131
3131
|
}),
|
|
3132
|
-
c(
|
|
3132
|
+
c(a, { class: "ctrl" }, {
|
|
3133
3133
|
default: r(() => [
|
|
3134
3134
|
c(u, {
|
|
3135
3135
|
class: "ctrl-btn",
|
|
3136
|
-
onClick: t[1] || (t[1] = (C) =>
|
|
3136
|
+
onClick: t[1] || (t[1] = (C) => s.pushFilter("select"))
|
|
3137
3137
|
}, {
|
|
3138
3138
|
default: r(() => [
|
|
3139
3139
|
g("\u4E0B\u62C9\u6846")
|
|
@@ -3143,11 +3143,11 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3143
3143
|
]),
|
|
3144
3144
|
_: 1
|
|
3145
3145
|
}),
|
|
3146
|
-
c(
|
|
3146
|
+
c(a, { class: "ctrl" }, {
|
|
3147
3147
|
default: r(() => [
|
|
3148
3148
|
c(u, {
|
|
3149
3149
|
class: "ctrl-btn",
|
|
3150
|
-
onClick: t[2] || (t[2] = (C) =>
|
|
3150
|
+
onClick: t[2] || (t[2] = (C) => s.pushFilter("date"))
|
|
3151
3151
|
}, {
|
|
3152
3152
|
default: r(() => [
|
|
3153
3153
|
g("\u65E5\u671F")
|
|
@@ -3162,20 +3162,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3162
3162
|
}),
|
|
3163
3163
|
c(p, null, {
|
|
3164
3164
|
default: r(() => [
|
|
3165
|
-
c(
|
|
3165
|
+
c(a, { class: "title" }, {
|
|
3166
3166
|
default: r(() => [
|
|
3167
3167
|
g("\u6DFB\u52A0\u5217\u8868\u9879")
|
|
3168
3168
|
]),
|
|
3169
3169
|
_: 1
|
|
3170
3170
|
}),
|
|
3171
|
-
(i(!0),
|
|
3171
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.headers), (C, j) => (i(), m(a, {
|
|
3172
3172
|
key: `column-${j}`,
|
|
3173
3173
|
class: "ctrl"
|
|
3174
3174
|
}, {
|
|
3175
3175
|
default: r(() => [
|
|
3176
3176
|
c(u, {
|
|
3177
3177
|
class: "ctrl-btn",
|
|
3178
|
-
onClick: (me) =>
|
|
3178
|
+
onClick: (me) => s.pushHeaders(o.ctrlMap.headers[C].type)
|
|
3179
3179
|
}, {
|
|
3180
3180
|
default: r(() => [
|
|
3181
3181
|
g(I(o.ctrlMap.headers[C].name), 1)
|
|
@@ -3190,20 +3190,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3190
3190
|
}),
|
|
3191
3191
|
c(p, null, {
|
|
3192
3192
|
default: r(() => [
|
|
3193
|
-
c(
|
|
3193
|
+
c(a, { class: "title" }, {
|
|
3194
3194
|
default: r(() => [
|
|
3195
3195
|
g("\u6DFB\u52A0\u884C\u6309\u94AE")
|
|
3196
3196
|
]),
|
|
3197
3197
|
_: 1
|
|
3198
3198
|
}),
|
|
3199
|
-
(i(!0),
|
|
3199
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
|
|
3200
3200
|
key: `column-${j}`,
|
|
3201
3201
|
class: "ctrl"
|
|
3202
3202
|
}, {
|
|
3203
3203
|
default: r(() => [
|
|
3204
3204
|
c(u, {
|
|
3205
3205
|
class: "ctrl-btn",
|
|
3206
|
-
onClick: (me) =>
|
|
3206
|
+
onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[C].type)
|
|
3207
3207
|
}, {
|
|
3208
3208
|
default: r(() => [
|
|
3209
3209
|
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
@@ -3218,20 +3218,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3218
3218
|
}),
|
|
3219
3219
|
c(p, null, {
|
|
3220
3220
|
default: r(() => [
|
|
3221
|
-
c(
|
|
3221
|
+
c(a, { class: "title" }, {
|
|
3222
3222
|
default: r(() => [
|
|
3223
3223
|
g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE")
|
|
3224
3224
|
]),
|
|
3225
3225
|
_: 1
|
|
3226
3226
|
}),
|
|
3227
|
-
(i(!0),
|
|
3227
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
|
|
3228
3228
|
key: `column-${j}`,
|
|
3229
3229
|
class: "ctrl"
|
|
3230
3230
|
}, {
|
|
3231
3231
|
default: r(() => [
|
|
3232
3232
|
c(u, {
|
|
3233
3233
|
class: "ctrl-btn",
|
|
3234
|
-
onClick: (me) =>
|
|
3234
|
+
onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[C].type)
|
|
3235
3235
|
}, {
|
|
3236
3236
|
default: r(() => [
|
|
3237
3237
|
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
@@ -3241,7 +3241,7 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3241
3241
|
]),
|
|
3242
3242
|
_: 2
|
|
3243
3243
|
}, 1024))), 128)),
|
|
3244
|
-
c(
|
|
3244
|
+
c(a, { class: "ctrl" }, {
|
|
3245
3245
|
default: r(() => [
|
|
3246
3246
|
c(u, { class: "ctrl-btn" }, {
|
|
3247
3247
|
default: r(() => [
|
|
@@ -3257,20 +3257,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3257
3257
|
}),
|
|
3258
3258
|
c(p, null, {
|
|
3259
3259
|
default: r(() => [
|
|
3260
|
-
c(
|
|
3260
|
+
c(a, { class: "title" }, {
|
|
3261
3261
|
default: r(() => [
|
|
3262
3262
|
g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE")
|
|
3263
3263
|
]),
|
|
3264
3264
|
_: 1
|
|
3265
3265
|
}),
|
|
3266
|
-
(i(!0),
|
|
3266
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
|
|
3267
3267
|
key: `column-${j}`,
|
|
3268
3268
|
class: "ctrl"
|
|
3269
3269
|
}, {
|
|
3270
3270
|
default: r(() => [
|
|
3271
3271
|
c(u, {
|
|
3272
3272
|
class: "ctrl-btn",
|
|
3273
|
-
onClick: (me) =>
|
|
3273
|
+
onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[C].type)
|
|
3274
3274
|
}, {
|
|
3275
3275
|
default: r(() => [
|
|
3276
3276
|
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
@@ -3280,7 +3280,7 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3280
3280
|
]),
|
|
3281
3281
|
_: 2
|
|
3282
3282
|
}, 1024))), 128)),
|
|
3283
|
-
c(
|
|
3283
|
+
c(a, { class: "ctrl" }, {
|
|
3284
3284
|
default: r(() => [
|
|
3285
3285
|
c(u, { class: "ctrl-btn" }, {
|
|
3286
3286
|
default: r(() => [
|
|
@@ -3304,10 +3304,10 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3304
3304
|
key: o.key,
|
|
3305
3305
|
dev: !0
|
|
3306
3306
|
}, o.builderSchema), null, 16)),
|
|
3307
|
-
c(
|
|
3307
|
+
c(f),
|
|
3308
3308
|
c(_, {
|
|
3309
3309
|
type: "primary",
|
|
3310
|
-
onClick:
|
|
3310
|
+
onClick: s.saveSchema
|
|
3311
3311
|
}, {
|
|
3312
3312
|
default: r(() => [
|
|
3313
3313
|
g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
|
|
@@ -3320,22 +3320,22 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3320
3320
|
type: "modal"
|
|
3321
3321
|
}, {
|
|
3322
3322
|
default: r(() => [
|
|
3323
|
-
c(T, { data:
|
|
3323
|
+
c(T, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
3324
3324
|
]),
|
|
3325
3325
|
_: 1
|
|
3326
3326
|
})
|
|
3327
3327
|
]),
|
|
3328
3328
|
"right-aside": r(() => [
|
|
3329
|
-
o.activeIndex ? (i(), m(
|
|
3329
|
+
o.activeIndex ? (i(), m(W, { key: 0 }, {
|
|
3330
3330
|
default: r(() => [
|
|
3331
|
-
c(
|
|
3331
|
+
c(B, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
|
|
3332
3332
|
default: r(() => [
|
|
3333
3333
|
c(q, {
|
|
3334
3334
|
modelValue: o.currentCtrlType,
|
|
3335
3335
|
"onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
|
|
3336
3336
|
}, {
|
|
3337
3337
|
default: r(() => [
|
|
3338
|
-
(i(!0),
|
|
3338
|
+
(i(!0), h(E, null, A(s.types, (C, j) => (i(), m(H, {
|
|
3339
3339
|
key: j,
|
|
3340
3340
|
label: C.label,
|
|
3341
3341
|
value: C.value
|
|
@@ -3348,8 +3348,8 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3348
3348
|
})
|
|
3349
3349
|
]),
|
|
3350
3350
|
_: 1
|
|
3351
|
-
})) :
|
|
3352
|
-
(i(), m(
|
|
3351
|
+
})) : w("", !0),
|
|
3352
|
+
(i(), m(wt, U({
|
|
3353
3353
|
key: o.ctrlKey,
|
|
3354
3354
|
modelValue: o.ctrlOptions,
|
|
3355
3355
|
"onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
|
|
@@ -3358,24 +3358,24 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3358
3358
|
_: 1
|
|
3359
3359
|
});
|
|
3360
3360
|
}
|
|
3361
|
-
const
|
|
3361
|
+
const no = /* @__PURE__ */ x(to, [["render", lo], ["__scopeId", "data-v-e5209cb7"]]), oo = {
|
|
3362
3362
|
name: "PageEditor",
|
|
3363
|
-
components: { FormBuilder:
|
|
3363
|
+
components: { FormBuilder: Rn, TableBuilder: no },
|
|
3364
3364
|
setup() {
|
|
3365
|
-
const e =
|
|
3365
|
+
const e = P(!1), t = P(1), l = "rtl", n = pe(), o = N(() => S.state.app.pages[n.path]);
|
|
3366
3366
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3367
3367
|
}
|
|
3368
3368
|
};
|
|
3369
|
-
function
|
|
3370
|
-
const
|
|
3371
|
-
return i(),
|
|
3372
|
-
c(
|
|
3369
|
+
function so(e, t, l, n, o, s) {
|
|
3370
|
+
const a = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d = tt;
|
|
3371
|
+
return i(), h(E, null, [
|
|
3372
|
+
c(a, {
|
|
3373
3373
|
name: "ra-set",
|
|
3374
|
-
onClick: t[0] || (t[0] = (
|
|
3374
|
+
onClick: t[0] || (t[0] = (f) => n.show = !n.show)
|
|
3375
3375
|
}),
|
|
3376
3376
|
c(d, {
|
|
3377
3377
|
modelValue: n.show,
|
|
3378
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3378
|
+
"onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
|
|
3379
3379
|
title: "\u9875\u9762\u8BBE\u8BA1",
|
|
3380
3380
|
"custom-class": "my-drawer",
|
|
3381
3381
|
direction: n.direction,
|
|
@@ -3387,23 +3387,23 @@ function Wo(e, t, l, n, o, a) {
|
|
|
3387
3387
|
n.pageSchema.formItems !== void 0 ? (i(), m(u, {
|
|
3388
3388
|
key: 0,
|
|
3389
3389
|
schema: n.pageSchema
|
|
3390
|
-
}, null, 8, ["schema"])) :
|
|
3390
|
+
}, null, 8, ["schema"])) : w("", !0),
|
|
3391
3391
|
n.pageSchema.headers !== void 0 ? (i(), m(p, {
|
|
3392
3392
|
key: 1,
|
|
3393
3393
|
schema: n.pageSchema
|
|
3394
|
-
}, null, 8, ["schema"])) :
|
|
3394
|
+
}, null, 8, ["schema"])) : w("", !0)
|
|
3395
3395
|
]),
|
|
3396
3396
|
_: 1
|
|
3397
3397
|
}, 8, ["modelValue", "direction"])
|
|
3398
3398
|
], 64);
|
|
3399
3399
|
}
|
|
3400
|
-
const
|
|
3401
|
-
const
|
|
3400
|
+
const ao = /* @__PURE__ */ x(oo, [["render", so]]);
|
|
3401
|
+
const io = {
|
|
3402
3402
|
components: {
|
|
3403
|
-
Breadcrumb:
|
|
3404
|
-
Hamburger:
|
|
3405
|
-
VButton:
|
|
3406
|
-
PageEditor:
|
|
3403
|
+
Breadcrumb: mn,
|
|
3404
|
+
Hamburger: bn,
|
|
3405
|
+
VButton: Oe,
|
|
3406
|
+
PageEditor: ao
|
|
3407
3407
|
},
|
|
3408
3408
|
data() {
|
|
3409
3409
|
return {
|
|
@@ -3416,7 +3416,7 @@ const Qo = {
|
|
|
3416
3416
|
};
|
|
3417
3417
|
},
|
|
3418
3418
|
computed: {
|
|
3419
|
-
...
|
|
3419
|
+
...Fe(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3420
3420
|
hasNewMessage() {
|
|
3421
3421
|
return this.$store.state.settings.hasNewMessage;
|
|
3422
3422
|
},
|
|
@@ -3434,7 +3434,7 @@ const Qo = {
|
|
|
3434
3434
|
}
|
|
3435
3435
|
},
|
|
3436
3436
|
mounted() {
|
|
3437
|
-
|
|
3437
|
+
nt("el-submenu is-active");
|
|
3438
3438
|
const e = this.getSetting("navBarNotice");
|
|
3439
3439
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3440
3440
|
title: "\u63D0\u793A",
|
|
@@ -3442,7 +3442,7 @@ const Qo = {
|
|
|
3442
3442
|
dangerouslyUseHTMLString: !0,
|
|
3443
3443
|
duration: 0,
|
|
3444
3444
|
onClose: this.closeNavBarNotice
|
|
3445
|
-
}), this.setting.envColor[this.user.env] &&
|
|
3445
|
+
}), this.setting.envColor[this.user.env] && al({
|
|
3446
3446
|
elRef: this.$refs.header.$el,
|
|
3447
3447
|
waterMark: this.user.env,
|
|
3448
3448
|
color: "skyblue",
|
|
@@ -3478,27 +3478,27 @@ const Qo = {
|
|
|
3478
3478
|
(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));
|
|
3479
3479
|
}
|
|
3480
3480
|
}
|
|
3481
|
-
},
|
|
3481
|
+
}, ro = { class: "right-content" }, uo = { class: "right-item" }, co = {
|
|
3482
3482
|
key: 0,
|
|
3483
3483
|
class: "right-item"
|
|
3484
|
-
},
|
|
3484
|
+
}, po = {
|
|
3485
3485
|
class: "right-item-button",
|
|
3486
3486
|
style: { padding: "0" }
|
|
3487
|
-
},
|
|
3488
|
-
function
|
|
3489
|
-
const
|
|
3490
|
-
return i(), m(
|
|
3487
|
+
}, mo = { class: "user-info" }, fo = ["src"], ho = { class: "user-name" };
|
|
3488
|
+
function bo(e, t, l, n, o, s) {
|
|
3489
|
+
const a = v("hamburger"), u = v("breadcrumb"), p = ce, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T = Gt, $ = Jt, H = zt, q = tt, B = se;
|
|
3490
|
+
return i(), m(B, {
|
|
3491
3491
|
ref: "header",
|
|
3492
3492
|
class: "navbar",
|
|
3493
|
-
style:
|
|
3493
|
+
style: $t({ background: s.setting.envColor[s.user.env] })
|
|
3494
3494
|
}, {
|
|
3495
3495
|
default: r(() => [
|
|
3496
3496
|
c(p, { span: 16 }, {
|
|
3497
3497
|
default: r(() => [
|
|
3498
|
-
c(
|
|
3498
|
+
c(a, {
|
|
3499
3499
|
"is-active": e.sidebar.opened,
|
|
3500
3500
|
class: "hamburger-container",
|
|
3501
|
-
onToggleClick:
|
|
3501
|
+
onToggleClick: s.toggleSideBar
|
|
3502
3502
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3503
3503
|
c(u, { class: "breadcrumb-container" })
|
|
3504
3504
|
]),
|
|
@@ -3506,17 +3506,17 @@ function an(e, t, l, n, o, a) {
|
|
|
3506
3506
|
}),
|
|
3507
3507
|
c(p, { span: 8 }, {
|
|
3508
3508
|
default: r(() => [
|
|
3509
|
-
b("div",
|
|
3510
|
-
b("div",
|
|
3509
|
+
b("div", ro, [
|
|
3510
|
+
b("div", uo, [
|
|
3511
3511
|
c(d, {
|
|
3512
3512
|
name: "ra-code",
|
|
3513
|
-
onClick:
|
|
3513
|
+
onClick: s.gotoMenuEdit
|
|
3514
3514
|
}, null, 8, ["onClick"])
|
|
3515
3515
|
]),
|
|
3516
|
-
|
|
3517
|
-
c(
|
|
3518
|
-
])) :
|
|
3519
|
-
b("div",
|
|
3516
|
+
s.showPageJsonSchemaIcon ? (i(), h("div", co, [
|
|
3517
|
+
c(f)
|
|
3518
|
+
])) : w("", !0),
|
|
3519
|
+
b("div", po, [
|
|
3520
3520
|
c(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3521
3521
|
]),
|
|
3522
3522
|
c(H, {
|
|
@@ -3528,7 +3528,7 @@ function an(e, t, l, n, o, a) {
|
|
|
3528
3528
|
default: r(() => [
|
|
3529
3529
|
c(T, {
|
|
3530
3530
|
icon: "oms-icon-index",
|
|
3531
|
-
onClick: t[0] || (t[0] = (
|
|
3531
|
+
onClick: t[0] || (t[0] = (W) => e.$router.push("/"))
|
|
3532
3532
|
}, {
|
|
3533
3533
|
default: r(() => [
|
|
3534
3534
|
g("\u9996\u9875")
|
|
@@ -3538,7 +3538,7 @@ function an(e, t, l, n, o, a) {
|
|
|
3538
3538
|
c(T, {
|
|
3539
3539
|
divided: "",
|
|
3540
3540
|
icon: "el-icon-switch-button",
|
|
3541
|
-
onClick:
|
|
3541
|
+
onClick: s.logout
|
|
3542
3542
|
}, {
|
|
3543
3543
|
default: r(() => [
|
|
3544
3544
|
g("\u9000\u51FA\u767B\u5F55")
|
|
@@ -3550,14 +3550,14 @@ function an(e, t, l, n, o, a) {
|
|
|
3550
3550
|
})
|
|
3551
3551
|
]),
|
|
3552
3552
|
default: r(() => [
|
|
3553
|
-
b("div",
|
|
3553
|
+
b("div", mo, [
|
|
3554
3554
|
b("img", {
|
|
3555
3555
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3556
3556
|
class: "user-avatar",
|
|
3557
3557
|
alt: "\u5934\u50CF"
|
|
3558
|
-
}, null, 8,
|
|
3558
|
+
}, null, 8, fo),
|
|
3559
3559
|
g(),
|
|
3560
|
-
b("span",
|
|
3560
|
+
b("span", ho, I(e.nickname || e.name), 1)
|
|
3561
3561
|
])
|
|
3562
3562
|
]),
|
|
3563
3563
|
_: 1
|
|
@@ -3570,13 +3570,13 @@ function an(e, t, l, n, o, a) {
|
|
|
3570
3570
|
key: 0,
|
|
3571
3571
|
"with-header": !1,
|
|
3572
3572
|
size: "50%"
|
|
3573
|
-
})) :
|
|
3573
|
+
})) : w("", !0)
|
|
3574
3574
|
]),
|
|
3575
3575
|
_: 1
|
|
3576
3576
|
}, 8, ["style"]);
|
|
3577
3577
|
}
|
|
3578
|
-
const
|
|
3579
|
-
const
|
|
3578
|
+
const _o = /* @__PURE__ */ x(io, [["render", bo], ["__scopeId", "data-v-9d0fb088"]]);
|
|
3579
|
+
const yo = {
|
|
3580
3580
|
name: "SidebarLogo",
|
|
3581
3581
|
props: {
|
|
3582
3582
|
collapse: {
|
|
@@ -3592,43 +3592,43 @@ const rn = {
|
|
|
3592
3592
|
return this.$store.state.settings.logo;
|
|
3593
3593
|
}
|
|
3594
3594
|
}
|
|
3595
|
-
},
|
|
3595
|
+
}, vo = (e) => (We("data-v-49084925"), e = e(), Ze(), e), go = ["src"], ko = {
|
|
3596
3596
|
key: 1,
|
|
3597
3597
|
class: "sidebar-title"
|
|
3598
|
-
},
|
|
3599
|
-
function
|
|
3600
|
-
const
|
|
3601
|
-
return i(),
|
|
3598
|
+
}, Eo = /* @__PURE__ */ vo(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), wo = ["src"], So = { class: "sidebar-title" };
|
|
3599
|
+
function Co(e, t, l, n, o, s) {
|
|
3600
|
+
const a = v("router-link");
|
|
3601
|
+
return i(), h("div", {
|
|
3602
3602
|
class: G(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3603
3603
|
}, [
|
|
3604
|
-
c(
|
|
3604
|
+
c(Tt, { name: "sidebarLogoFade" }, {
|
|
3605
3605
|
default: r(() => [
|
|
3606
|
-
l.collapse ? (i(), m(
|
|
3606
|
+
l.collapse ? (i(), m(a, {
|
|
3607
3607
|
key: "collapse",
|
|
3608
3608
|
class: "sidebar-logo-link",
|
|
3609
3609
|
to: "/"
|
|
3610
3610
|
}, {
|
|
3611
3611
|
default: r(() => [
|
|
3612
|
-
|
|
3612
|
+
s.logo ? (i(), h("img", {
|
|
3613
3613
|
key: 0,
|
|
3614
|
-
src:
|
|
3614
|
+
src: s.logo,
|
|
3615
3615
|
class: "sidebar-logo"
|
|
3616
|
-
}, null, 8,
|
|
3617
|
-
|
|
3616
|
+
}, null, 8, go)) : (i(), h("h1", ko, I(s.title), 1)),
|
|
3617
|
+
Eo
|
|
3618
3618
|
]),
|
|
3619
3619
|
_: 1
|
|
3620
|
-
})) : (i(), m(
|
|
3620
|
+
})) : (i(), m(a, {
|
|
3621
3621
|
key: "expand",
|
|
3622
3622
|
class: "sidebar-logo-link",
|
|
3623
3623
|
to: "/"
|
|
3624
3624
|
}, {
|
|
3625
3625
|
default: r(() => [
|
|
3626
|
-
|
|
3626
|
+
s.logo ? (i(), h("img", {
|
|
3627
3627
|
key: 0,
|
|
3628
|
-
src:
|
|
3628
|
+
src: s.logo,
|
|
3629
3629
|
class: "sidebar-logo"
|
|
3630
|
-
}, null, 8,
|
|
3631
|
-
b("h1",
|
|
3630
|
+
}, null, 8, wo)) : w("", !0),
|
|
3631
|
+
b("h1", So, I(s.title), 1)
|
|
3632
3632
|
]),
|
|
3633
3633
|
_: 1
|
|
3634
3634
|
}))
|
|
@@ -3637,7 +3637,7 @@ function hn(e, t, l, n, o, a) {
|
|
|
3637
3637
|
})
|
|
3638
3638
|
], 2);
|
|
3639
3639
|
}
|
|
3640
|
-
const
|
|
3640
|
+
const xo = /* @__PURE__ */ x(yo, [["render", Co], ["__scopeId", "data-v-49084925"]]), Bo = {
|
|
3641
3641
|
props: {
|
|
3642
3642
|
to: {
|
|
3643
3643
|
type: String,
|
|
@@ -3650,10 +3650,10 @@ const bn = /* @__PURE__ */ B(rn, [["render", hn], ["__scopeId", "data-v-49084925
|
|
|
3650
3650
|
},
|
|
3651
3651
|
methods: {
|
|
3652
3652
|
compType(e) {
|
|
3653
|
-
return
|
|
3653
|
+
return Ve(e) || this.newTab ? "a" : "router-link";
|
|
3654
3654
|
},
|
|
3655
3655
|
linkProps(e) {
|
|
3656
|
-
return
|
|
3656
|
+
return Ve(e) ? {
|
|
3657
3657
|
is: "a",
|
|
3658
3658
|
href: e,
|
|
3659
3659
|
target: "_blank",
|
|
@@ -3670,15 +3670,15 @@ const bn = /* @__PURE__ */ B(rn, [["render", hn], ["__scopeId", "data-v-49084925
|
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
3672
|
};
|
|
3673
|
-
function
|
|
3674
|
-
return i(), m(
|
|
3673
|
+
function Io(e, t, l, n, o, s) {
|
|
3674
|
+
return i(), m(Qe(s.compType(l.to)), K(X(s.linkProps(l.to))), {
|
|
3675
3675
|
default: r(() => [
|
|
3676
|
-
|
|
3676
|
+
te(e.$slots, "default")
|
|
3677
3677
|
]),
|
|
3678
3678
|
_: 3
|
|
3679
3679
|
}, 16);
|
|
3680
3680
|
}
|
|
3681
|
-
const
|
|
3681
|
+
const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
|
|
3682
3682
|
computed: {
|
|
3683
3683
|
device() {
|
|
3684
3684
|
return this.$store.state.app.device;
|
|
@@ -3698,7 +3698,7 @@ const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
|
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
|
-
},
|
|
3701
|
+
}, To = { class: "menu-content" }, Fo = /* @__PURE__ */ V({
|
|
3702
3702
|
__name: "MenuContent",
|
|
3703
3703
|
props: {
|
|
3704
3704
|
meta: {
|
|
@@ -3712,21 +3712,21 @@ const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
|
|
|
3712
3712
|
setup(e) {
|
|
3713
3713
|
return (t, l) => {
|
|
3714
3714
|
const n = v("VIcon");
|
|
3715
|
-
return i(),
|
|
3715
|
+
return i(), h(E, null, [
|
|
3716
3716
|
c(n, {
|
|
3717
3717
|
name: e.meta.icon || "ra-all"
|
|
3718
3718
|
}, null, 8, ["name"]),
|
|
3719
|
-
b("span",
|
|
3719
|
+
b("span", To, I(e.meta.title), 1)
|
|
3720
3720
|
], 64);
|
|
3721
3721
|
};
|
|
3722
3722
|
}
|
|
3723
|
-
}),
|
|
3723
|
+
}), Oo = {
|
|
3724
3724
|
name: "SidebarItem",
|
|
3725
3725
|
components: {
|
|
3726
|
-
AppLink:
|
|
3727
|
-
MenuContent:
|
|
3726
|
+
AppLink: Ao,
|
|
3727
|
+
MenuContent: Fo
|
|
3728
3728
|
},
|
|
3729
|
-
mixins: [
|
|
3729
|
+
mixins: [$o],
|
|
3730
3730
|
props: {
|
|
3731
3731
|
item: {
|
|
3732
3732
|
type: Object,
|
|
@@ -3746,18 +3746,18 @@ const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
|
|
|
3746
3746
|
try {
|
|
3747
3747
|
return this.$router.resolve(e.redirect ? e.redirect : e).fullPath;
|
|
3748
3748
|
} catch {
|
|
3749
|
-
return console.error("\u8DEF\u7531\u89E3\u6790\u9519\u8BEF"),
|
|
3749
|
+
return console.error("\u8DEF\u7531\u89E3\u6790\u9519\u8BEF"), "/";
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
3752
3752
|
}
|
|
3753
|
-
},
|
|
3753
|
+
}, Do = {
|
|
3754
3754
|
key: 0,
|
|
3755
3755
|
class: "menu-wrapper"
|
|
3756
3756
|
};
|
|
3757
|
-
function
|
|
3758
|
-
const
|
|
3759
|
-
return l.item.hidden !== !1 ? (i(),
|
|
3760
|
-
l.item.meta && l.item.meta.menuType === 2 ? (i(),
|
|
3757
|
+
function Po(e, t, l, n, o, s) {
|
|
3758
|
+
const a = v("menu-content"), u = Kt, p = v("app-link"), d = v("sidebar-item", !0), f = Wt;
|
|
3759
|
+
return l.item.hidden !== !1 ? (i(), h("div", Do, [
|
|
3760
|
+
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
|
|
3761
3761
|
l.item.meta ? (i(), m(p, {
|
|
3762
3762
|
key: 0,
|
|
3763
3763
|
to: l.to,
|
|
@@ -3769,7 +3769,7 @@ function Cn(e, t, l, n, o, a) {
|
|
|
3769
3769
|
class: G({ "submenu-title-noDropdown": !l.isNest })
|
|
3770
3770
|
}, {
|
|
3771
3771
|
default: r(() => [
|
|
3772
|
-
c(
|
|
3772
|
+
c(a, {
|
|
3773
3773
|
meta: l.item.meta
|
|
3774
3774
|
}, null, 8, ["meta"])
|
|
3775
3775
|
]),
|
|
@@ -3777,8 +3777,8 @@ function Cn(e, t, l, n, o, a) {
|
|
|
3777
3777
|
}, 8, ["index", "class"])
|
|
3778
3778
|
]),
|
|
3779
3779
|
_: 1
|
|
3780
|
-
}, 8, ["to", "new-tab"])) :
|
|
3781
|
-
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(
|
|
3780
|
+
}, 8, ["to", "new-tab"])) : w("", !0)
|
|
3781
|
+
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
|
|
3782
3782
|
key: 1,
|
|
3783
3783
|
ref: "subMenu",
|
|
3784
3784
|
index: l.to,
|
|
@@ -3791,49 +3791,49 @@ function Cn(e, t, l, n, o, a) {
|
|
|
3791
3791
|
to: l.to
|
|
3792
3792
|
}, {
|
|
3793
3793
|
default: r(() => [
|
|
3794
|
-
c(
|
|
3794
|
+
c(a, {
|
|
3795
3795
|
meta: l.item.meta
|
|
3796
3796
|
}, null, 8, ["meta"])
|
|
3797
3797
|
]),
|
|
3798
3798
|
_: 1
|
|
3799
|
-
}, 8, ["to"])) : (i(), m(
|
|
3799
|
+
}, 8, ["to"])) : (i(), m(a, {
|
|
3800
3800
|
key: 1,
|
|
3801
3801
|
meta: l.item.meta
|
|
3802
3802
|
}, null, 8, ["meta"]))
|
|
3803
3803
|
]),
|
|
3804
3804
|
default: r(() => [
|
|
3805
|
-
(i(!0),
|
|
3805
|
+
(i(!0), h(E, null, A(l.item.children, (_) => (i(), m(d, {
|
|
3806
3806
|
key: _.path,
|
|
3807
3807
|
"is-nest": !0,
|
|
3808
3808
|
item: _,
|
|
3809
|
-
to:
|
|
3809
|
+
to: s.getTo(_),
|
|
3810
3810
|
class: "nest-menu"
|
|
3811
3811
|
}, null, 8, ["item", "to"]))), 128))
|
|
3812
3812
|
]),
|
|
3813
3813
|
_: 1
|
|
3814
|
-
}, 8, ["index", "class"])) :
|
|
3815
|
-
])) :
|
|
3814
|
+
}, 8, ["index", "class"])) : w("", !0)
|
|
3815
|
+
])) : w("", !0);
|
|
3816
3816
|
}
|
|
3817
|
-
const
|
|
3818
|
-
function
|
|
3817
|
+
const Ro = /* @__PURE__ */ x(Oo, [["render", Po]]);
|
|
3818
|
+
function ft(e) {
|
|
3819
3819
|
return e.filter((t) => {
|
|
3820
3820
|
var l;
|
|
3821
|
-
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children =
|
|
3821
|
+
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);
|
|
3822
3822
|
});
|
|
3823
3823
|
}
|
|
3824
|
-
const
|
|
3824
|
+
const Lo = {
|
|
3825
3825
|
data() {
|
|
3826
3826
|
return {
|
|
3827
3827
|
selected: ""
|
|
3828
3828
|
};
|
|
3829
3829
|
},
|
|
3830
3830
|
computed: {
|
|
3831
|
-
...
|
|
3831
|
+
...Fe(["remoteRouter"]),
|
|
3832
3832
|
filterRoutes() {
|
|
3833
3833
|
let e = [];
|
|
3834
3834
|
return this.remoteRouter.forEach((t) => {
|
|
3835
3835
|
e = e.concat(y(t.routes));
|
|
3836
|
-
}),
|
|
3836
|
+
}), ft(e);
|
|
3837
3837
|
}
|
|
3838
3838
|
},
|
|
3839
3839
|
methods: {
|
|
@@ -3842,39 +3842,39 @@ const xn = {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
}
|
|
3844
3844
|
};
|
|
3845
|
-
function
|
|
3846
|
-
const
|
|
3845
|
+
function Mo(e, t, l, n, o, s) {
|
|
3846
|
+
const a = xe, u = Zt, p = Be;
|
|
3847
3847
|
return i(), m(p, {
|
|
3848
3848
|
modelValue: o.selected,
|
|
3849
3849
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
3850
3850
|
filterable: "",
|
|
3851
3851
|
placeholder: "\u641C\u7D22\u83DC\u5355...",
|
|
3852
3852
|
class: "search-menu",
|
|
3853
|
-
onChange:
|
|
3853
|
+
onChange: s.onselected
|
|
3854
3854
|
}, {
|
|
3855
3855
|
default: r(() => [
|
|
3856
|
-
(i(!0),
|
|
3856
|
+
(i(!0), h(E, null, A(s.filterRoutes, (d) => (i(), h(E, {
|
|
3857
3857
|
key: d.path
|
|
3858
3858
|
}, [
|
|
3859
|
-
d.children !== void 0 ? (i(),
|
|
3859
|
+
d.children !== void 0 ? (i(), h(E, { key: 0 }, [
|
|
3860
3860
|
d.meta.menuType !== 0 ? (i(), m(u, {
|
|
3861
3861
|
key: d.path + "-",
|
|
3862
3862
|
label: d.meta.title
|
|
3863
3863
|
}, {
|
|
3864
3864
|
default: r(() => [
|
|
3865
|
-
(i(!0),
|
|
3866
|
-
key:
|
|
3865
|
+
(i(!0), h(E, null, A(d.children, (f, _) => (i(), h(E, {
|
|
3866
|
+
key: f.path
|
|
3867
3867
|
}, [
|
|
3868
|
-
d.meta.menuType !== 0 ? (i(), m(
|
|
3868
|
+
d.meta.menuType !== 0 ? (i(), m(a, {
|
|
3869
3869
|
key: 0,
|
|
3870
|
-
label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") +
|
|
3871
|
-
value:
|
|
3872
|
-
}, null, 8, ["label", "value"])) :
|
|
3870
|
+
label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + f.meta.title,
|
|
3871
|
+
value: f.path
|
|
3872
|
+
}, null, 8, ["label", "value"])) : w("", !0)
|
|
3873
3873
|
], 64))), 128))
|
|
3874
3874
|
]),
|
|
3875
3875
|
_: 2
|
|
3876
|
-
}, 1032, ["label"])) :
|
|
3877
|
-
], 64)) : (i(), m(
|
|
3876
|
+
}, 1032, ["label"])) : w("", !0)
|
|
3877
|
+
], 64)) : (i(), m(a, {
|
|
3878
3878
|
key: 1,
|
|
3879
3879
|
label: "" + d.meta.title,
|
|
3880
3880
|
value: d.path
|
|
@@ -3884,23 +3884,17 @@ function In(e, t, l, n, o, a) {
|
|
|
3884
3884
|
_: 1
|
|
3885
3885
|
}, 8, ["modelValue", "onChange"]);
|
|
3886
3886
|
}
|
|
3887
|
-
const
|
|
3888
|
-
var
|
|
3889
|
-
const
|
|
3890
|
-
components: { SidebarItem:
|
|
3887
|
+
const jo = /* @__PURE__ */ x(Lo, [["render", Mo], ["__scopeId", "data-v-811395be"]]);
|
|
3888
|
+
var L = /* @__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))(L || {}), D = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(D || {});
|
|
3889
|
+
const No = V({
|
|
3890
|
+
components: { SidebarItem: Ro, Logo: xo, SearchMenu: jo },
|
|
3891
3891
|
computed: {
|
|
3892
|
-
...
|
|
3892
|
+
...Fe(["sidebar", "remoteRouter", "customRouter"]),
|
|
3893
3893
|
routes() {
|
|
3894
3894
|
let e = [];
|
|
3895
3895
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
3896
3896
|
t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
|
|
3897
|
-
}),
|
|
3898
|
-
{
|
|
3899
|
-
label: "",
|
|
3900
|
-
routes: e
|
|
3901
|
-
},
|
|
3902
|
-
...this.remoteRouter
|
|
3903
|
-
])), y([
|
|
3897
|
+
}), y([
|
|
3904
3898
|
{
|
|
3905
3899
|
label: "",
|
|
3906
3900
|
routes: e
|
|
@@ -3909,10 +3903,9 @@ const $n = V({
|
|
|
3909
3903
|
]);
|
|
3910
3904
|
},
|
|
3911
3905
|
activeMenu() {
|
|
3912
|
-
|
|
3913
|
-
let e = this.$route.matched;
|
|
3906
|
+
const e = this.$route.matched;
|
|
3914
3907
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
3915
|
-
|
|
3908
|
+
const l = e[t];
|
|
3916
3909
|
if (l.meta.menuType == D.menu)
|
|
3917
3910
|
return this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3918
3911
|
}
|
|
@@ -3933,7 +3926,7 @@ const $n = V({
|
|
|
3933
3926
|
}
|
|
3934
3927
|
},
|
|
3935
3928
|
mounted() {
|
|
3936
|
-
|
|
3929
|
+
nt("is-active");
|
|
3937
3930
|
},
|
|
3938
3931
|
methods: {
|
|
3939
3932
|
filterRoute(e) {
|
|
@@ -3941,18 +3934,18 @@ const $n = V({
|
|
|
3941
3934
|
}
|
|
3942
3935
|
}
|
|
3943
3936
|
});
|
|
3944
|
-
function
|
|
3945
|
-
const
|
|
3946
|
-
return i(),
|
|
3937
|
+
function Vo(e, t, l, n, o, s) {
|
|
3938
|
+
const a = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = Qt, f = Xt;
|
|
3939
|
+
return i(), h("div", {
|
|
3947
3940
|
class: G({ "has-logo": e.showLogo })
|
|
3948
3941
|
}, [
|
|
3949
|
-
e.showLogo ? (i(), m(
|
|
3942
|
+
e.showLogo ? (i(), m(a, {
|
|
3950
3943
|
key: 0,
|
|
3951
3944
|
collapse: e.isCollapse
|
|
3952
|
-
}, null, 8, ["collapse"])) :
|
|
3953
|
-
c(
|
|
3945
|
+
}, null, 8, ["collapse"])) : w("", !0),
|
|
3946
|
+
c(f, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3954
3947
|
default: r(() => [
|
|
3955
|
-
e.isCollapse ?
|
|
3948
|
+
e.isCollapse ? w("", !0) : (i(), m(u, { key: 0 })),
|
|
3956
3949
|
c(d, {
|
|
3957
3950
|
"default-active": e.activeMenu,
|
|
3958
3951
|
collapse: e.isCollapse,
|
|
@@ -3964,10 +3957,10 @@ function Tn(e, t, l, n, o, a) {
|
|
|
3964
3957
|
mode: "vertical"
|
|
3965
3958
|
}, {
|
|
3966
3959
|
default: r(() => [
|
|
3967
|
-
(i(!0),
|
|
3960
|
+
(i(!0), h(E, null, A(e.routes, (_, T) => (i(), h(E, {
|
|
3968
3961
|
key: T + "-module"
|
|
3969
3962
|
}, [
|
|
3970
|
-
(i(!0),
|
|
3963
|
+
(i(!0), h(E, null, A(e.filterRoute(_.routes), ($) => (i(), m(p, {
|
|
3971
3964
|
key: $.path,
|
|
3972
3965
|
item: $,
|
|
3973
3966
|
to: e.$router.resolve($.redirect ? $.redirect : $).fullPath
|
|
@@ -3981,66 +3974,66 @@ function Tn(e, t, l, n, o, a) {
|
|
|
3981
3974
|
})
|
|
3982
3975
|
], 2);
|
|
3983
3976
|
}
|
|
3984
|
-
const
|
|
3985
|
-
const
|
|
3977
|
+
const qo = /* @__PURE__ */ x(No, [["render", Vo], ["__scopeId", "data-v-800716bb"]]);
|
|
3978
|
+
const Uo = { class: "app-main" }, Ho = {
|
|
3986
3979
|
__name: "AppMain",
|
|
3987
3980
|
setup(e) {
|
|
3988
|
-
const t =
|
|
3989
|
-
return
|
|
3981
|
+
const t = pe(), l = [], n = P(0);
|
|
3982
|
+
return El(() => {
|
|
3990
3983
|
var o;
|
|
3991
3984
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3992
|
-
}), (o,
|
|
3993
|
-
const
|
|
3994
|
-
return i(),
|
|
3995
|
-
(i(), m(
|
|
3996
|
-
key: o.$route.fullPath +
|
|
3985
|
+
}), (o, s) => {
|
|
3986
|
+
const a = v("router-view"), u = Yt;
|
|
3987
|
+
return i(), h("section", Uo, [
|
|
3988
|
+
(i(), m(a, {
|
|
3989
|
+
key: o.$route.fullPath + k(n)
|
|
3997
3990
|
})),
|
|
3998
3991
|
c(u, { bottom: 50 })
|
|
3999
3992
|
]);
|
|
4000
3993
|
};
|
|
4001
3994
|
}
|
|
4002
|
-
},
|
|
4003
|
-
const
|
|
3995
|
+
}, Go = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3996
|
+
const Jo = { class: "main-container" }, zo = {
|
|
4004
3997
|
__name: "index",
|
|
4005
3998
|
setup(e) {
|
|
4006
|
-
const t =
|
|
3999
|
+
const t = at(), { body: l } = document, n = 992, o = N(() => t.state.app.sidebar), s = N(() => t.state.app.device), a = N(() => t.state.settings.fixedHeader), u = N(() => ({
|
|
4007
4000
|
hideSidebar: !o.value.opened,
|
|
4008
4001
|
openSidebar: o.value.opened,
|
|
4009
4002
|
withoutAnimation: o.value.withoutAnimation,
|
|
4010
|
-
mobile:
|
|
4003
|
+
mobile: s.value === "mobile"
|
|
4011
4004
|
})), p = () => l.getBoundingClientRect().width - 1 < n;
|
|
4012
|
-
|
|
4005
|
+
Al(window, "resize", () => f());
|
|
4013
4006
|
const d = () => {
|
|
4014
4007
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
4015
|
-
},
|
|
4008
|
+
}, f = () => {
|
|
4016
4009
|
if (!document.hidden) {
|
|
4017
4010
|
const _ = p();
|
|
4018
4011
|
t.dispatch("app/toggleDevice", _ ? "mobile" : "desktop"), _ && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
4019
4012
|
}
|
|
4020
4013
|
};
|
|
4021
|
-
return (_, T) => (i(),
|
|
4022
|
-
class: G([
|
|
4014
|
+
return (_, T) => (i(), h("div", {
|
|
4015
|
+
class: G([k(u), "app-wrapper"])
|
|
4023
4016
|
}, [
|
|
4024
|
-
|
|
4017
|
+
k(s) === "mobile" && k(o).opened ? (i(), h("div", {
|
|
4025
4018
|
key: 0,
|
|
4026
4019
|
class: "drawer-bg",
|
|
4027
4020
|
onClick: d
|
|
4028
|
-
})) :
|
|
4029
|
-
c(
|
|
4030
|
-
b("div",
|
|
4021
|
+
})) : w("", !0),
|
|
4022
|
+
c(k(qo), { class: "sidebar-container" }),
|
|
4023
|
+
b("div", Jo, [
|
|
4031
4024
|
b("div", {
|
|
4032
|
-
class: G({ "fixed-header":
|
|
4025
|
+
class: G({ "fixed-header": k(a) })
|
|
4033
4026
|
}, [
|
|
4034
|
-
c(
|
|
4027
|
+
c(k(_o))
|
|
4035
4028
|
], 2),
|
|
4036
|
-
c(
|
|
4029
|
+
c(k(Go))
|
|
4037
4030
|
])
|
|
4038
4031
|
], 2));
|
|
4039
4032
|
}
|
|
4040
|
-
},
|
|
4041
|
-
class
|
|
4033
|
+
}, ht = /* @__PURE__ */ x(zo, [["__scopeId", "data-v-957442cd"]]);
|
|
4034
|
+
class Ko {
|
|
4042
4035
|
constructor() {
|
|
4043
|
-
|
|
4036
|
+
R(this, "type", "qrcode");
|
|
4044
4037
|
}
|
|
4045
4038
|
flag() {
|
|
4046
4039
|
}
|
|
@@ -4050,111 +4043,111 @@ class Mn {
|
|
|
4050
4043
|
showQrCode() {
|
|
4051
4044
|
}
|
|
4052
4045
|
}
|
|
4053
|
-
class
|
|
4046
|
+
class Wo extends Ko {
|
|
4054
4047
|
constructor(l) {
|
|
4055
4048
|
super();
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4049
|
+
R(this, "type", "qrcode");
|
|
4050
|
+
R(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
|
|
4051
|
+
R(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
|
|
4052
|
+
R(this, "elId", "");
|
|
4053
|
+
R(this, "appid", "");
|
|
4054
|
+
R(this, "iframe", new HTMLIFrameElement());
|
|
4055
|
+
R(this, "redirectUri", "");
|
|
4056
|
+
R(this, "style", "");
|
|
4064
4057
|
}
|
|
4065
4058
|
flag() {
|
|
4066
|
-
const l =
|
|
4059
|
+
const l = il("code");
|
|
4067
4060
|
if (l)
|
|
4068
4061
|
return l;
|
|
4069
4062
|
}
|
|
4070
4063
|
showQrCode() {
|
|
4071
|
-
const l = (
|
|
4072
|
-
const
|
|
4064
|
+
const l = (s) => {
|
|
4065
|
+
const a = {
|
|
4073
4066
|
appid: this.appid,
|
|
4074
4067
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4075
4068
|
};
|
|
4076
|
-
return
|
|
4069
|
+
return Z(this.reloadUrl, a) + "&" + ul(s || {});
|
|
4077
4070
|
}, n = () => {
|
|
4078
|
-
const
|
|
4071
|
+
const s = {
|
|
4079
4072
|
goto: encodeURIComponent(l()),
|
|
4080
4073
|
style: encodeURIComponent(this.style)
|
|
4081
4074
|
};
|
|
4082
|
-
return
|
|
4083
|
-
}, o = (
|
|
4084
|
-
const { origin:
|
|
4085
|
-
|
|
4075
|
+
return Z(this.qrCodeUrl, s);
|
|
4076
|
+
}, o = (s) => {
|
|
4077
|
+
const { origin: a, data: u } = s;
|
|
4078
|
+
a === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
|
|
4086
4079
|
};
|
|
4087
|
-
this.iframe.src = n(),
|
|
4080
|
+
this.iframe.src = n(), rl({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4088
4081
|
"message",
|
|
4089
|
-
(
|
|
4082
|
+
(s) => o(s),
|
|
4090
4083
|
!1
|
|
4091
|
-
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (
|
|
4084
|
+
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (s) => this.onScanSuccess(s));
|
|
4092
4085
|
}
|
|
4093
4086
|
}
|
|
4094
|
-
const
|
|
4095
|
-
dingtalk: (e) => new
|
|
4087
|
+
const Zo = {
|
|
4088
|
+
dingtalk: (e) => new Wo(e)
|
|
4096
4089
|
};
|
|
4097
|
-
function
|
|
4098
|
-
return
|
|
4090
|
+
function Qo() {
|
|
4091
|
+
return F(S.state.settings.sso || {}, Zo);
|
|
4099
4092
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const t =
|
|
4093
|
+
function Xo(e) {
|
|
4094
|
+
const t = Qo(), l = S.state.settings.activeSsoKey || "", n = t[l];
|
|
4102
4095
|
if (n !== void 0)
|
|
4103
4096
|
return n(e);
|
|
4104
4097
|
}
|
|
4105
|
-
const
|
|
4098
|
+
const Yo = { id: "login" }, es = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ts = { id: "form" }, ls = { class: "tips" }, ns = { class: "sso" }, os = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), ss = /* @__PURE__ */ V({
|
|
4106
4099
|
__name: "login",
|
|
4107
4100
|
setup(e) {
|
|
4108
|
-
const t =
|
|
4101
|
+
const t = wl(), l = pe(), n = N(() => S.state.settings.loginTips), o = P({
|
|
4109
4102
|
username: "",
|
|
4110
4103
|
password: ""
|
|
4111
|
-
}),
|
|
4104
|
+
}), s = () => {
|
|
4112
4105
|
if (o.value.username === "" || o.value.password === "") {
|
|
4113
|
-
|
|
4106
|
+
el.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
|
|
4114
4107
|
return;
|
|
4115
4108
|
}
|
|
4116
|
-
S.dispatch("user/login", o.value).then((
|
|
4109
|
+
S.dispatch("user/login", o.value).then((a) => {
|
|
4117
4110
|
var u;
|
|
4118
4111
|
t.push({ path: ((u = l.query) == null ? void 0 : u.redirect) || "/" });
|
|
4119
4112
|
});
|
|
4120
4113
|
};
|
|
4121
|
-
return
|
|
4122
|
-
|
|
4123
|
-
b("form",
|
|
4124
|
-
|
|
4125
|
-
"onUpdate:modelValue": u[0] || (u[0] = (p) =>
|
|
4114
|
+
return P(), (a, u) => (i(), h("div", Yo, [
|
|
4115
|
+
es,
|
|
4116
|
+
b("form", ts, [
|
|
4117
|
+
ve(b("input", {
|
|
4118
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => k(o).username = p),
|
|
4126
4119
|
type: "text",
|
|
4127
4120
|
placeholder: "\u7528\u6237\u540D",
|
|
4128
4121
|
class: "input"
|
|
4129
4122
|
}, null, 512), [
|
|
4130
|
-
[
|
|
4123
|
+
[Ne, k(o).username]
|
|
4131
4124
|
]),
|
|
4132
|
-
|
|
4133
|
-
"onUpdate:modelValue": u[1] || (u[1] = (p) =>
|
|
4125
|
+
ve(b("input", {
|
|
4126
|
+
"onUpdate:modelValue": u[1] || (u[1] = (p) => k(o).password = p),
|
|
4134
4127
|
type: "password",
|
|
4135
4128
|
placeholder: "\u5BC6\u7801",
|
|
4136
4129
|
class: "input"
|
|
4137
4130
|
}, null, 512), [
|
|
4138
|
-
[
|
|
4131
|
+
[Ne, k(o).password]
|
|
4139
4132
|
]),
|
|
4140
4133
|
b("div", {
|
|
4141
4134
|
class: "input button",
|
|
4142
|
-
onClick:
|
|
4135
|
+
onClick: s
|
|
4143
4136
|
}, "\u767B\u5F55"),
|
|
4144
|
-
b("div",
|
|
4145
|
-
b("div", null, I(
|
|
4137
|
+
b("div", ls, [
|
|
4138
|
+
b("div", null, I(k(n)), 1)
|
|
4146
4139
|
]),
|
|
4147
|
-
b("div",
|
|
4148
|
-
|
|
4149
|
-
(i(!0),
|
|
4140
|
+
b("div", ns, [
|
|
4141
|
+
os,
|
|
4142
|
+
(i(!0), h(E, null, A(Object.keys([]), (p) => (i(), h("div", { key: p }, I(p), 1))), 128))
|
|
4150
4143
|
])
|
|
4151
4144
|
])
|
|
4152
4145
|
]));
|
|
4153
4146
|
}
|
|
4154
4147
|
});
|
|
4155
|
-
const
|
|
4148
|
+
const as = {
|
|
4156
4149
|
name: "NotFoundPage"
|
|
4157
|
-
},
|
|
4150
|
+
}, bt = (e) => (We("data-v-26068803"), e = e(), Ze(), e), is = { class: "not-found" }, rs = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4158
4151
|
width: "380px",
|
|
4159
4152
|
height: "500px",
|
|
4160
4153
|
viewBox: "0 0 837 1045",
|
|
@@ -4207,7 +4200,7 @@ const Zn = {
|
|
|
4207
4200
|
"sketch:type": "MSShapeGroup"
|
|
4208
4201
|
})
|
|
4209
4202
|
])
|
|
4210
|
-
], -1)),
|
|
4203
|
+
], -1)), us = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4211
4204
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4212
4205
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4213
4206
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4218,17 +4211,17 @@ const Zn = {
|
|
|
4218
4211
|
}, "Go to Home Page")
|
|
4219
4212
|
])
|
|
4220
4213
|
])
|
|
4221
|
-
], -1)),
|
|
4222
|
-
|
|
4223
|
-
|
|
4214
|
+
], -1)), cs = [
|
|
4215
|
+
rs,
|
|
4216
|
+
us
|
|
4224
4217
|
];
|
|
4225
|
-
function
|
|
4226
|
-
return i(),
|
|
4218
|
+
function ps(e, t, l, n, o, s) {
|
|
4219
|
+
return i(), h("div", is, cs);
|
|
4227
4220
|
}
|
|
4228
|
-
const
|
|
4221
|
+
const ds = /* @__PURE__ */ x(as, [["render", ps], ["__scopeId", "data-v-26068803"]]), ms = [
|
|
4229
4222
|
{
|
|
4230
4223
|
path: "/",
|
|
4231
|
-
component:
|
|
4224
|
+
component: ht,
|
|
4232
4225
|
redirect: "/dashboard",
|
|
4233
4226
|
name: "Root",
|
|
4234
4227
|
meta: {
|
|
@@ -4238,79 +4231,79 @@ const la = /* @__PURE__ */ B(Zn, [["render", ta], ["__scopeId", "data-v-26068803
|
|
|
4238
4231
|
{
|
|
4239
4232
|
path: "dashboard",
|
|
4240
4233
|
name: "Dashboard",
|
|
4241
|
-
component:
|
|
4234
|
+
component: rn,
|
|
4242
4235
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4243
4236
|
}
|
|
4244
4237
|
]
|
|
4245
4238
|
},
|
|
4246
4239
|
{
|
|
4247
4240
|
path: "/login",
|
|
4248
|
-
component:
|
|
4241
|
+
component: ss,
|
|
4249
4242
|
meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
|
|
4250
4243
|
hidden: !0
|
|
4251
4244
|
},
|
|
4252
4245
|
{
|
|
4253
4246
|
path: "/404",
|
|
4254
|
-
component:
|
|
4247
|
+
component: ds,
|
|
4255
4248
|
meta: { menuType: 0 },
|
|
4256
4249
|
hidden: !0
|
|
4257
4250
|
}
|
|
4258
|
-
],
|
|
4259
|
-
history:
|
|
4260
|
-
routes:
|
|
4251
|
+
], oe = Sl({
|
|
4252
|
+
history: Cl(),
|
|
4253
|
+
routes: ms
|
|
4261
4254
|
});
|
|
4262
|
-
|
|
4263
|
-
function
|
|
4255
|
+
ke.configure({ showSpinner: !1 });
|
|
4256
|
+
function fs(e) {
|
|
4264
4257
|
e.beforeEach((t, l, n) => {
|
|
4265
|
-
|
|
4258
|
+
ke.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4266
4259
|
}), e.afterEach((t) => {
|
|
4267
4260
|
t.matched.length > 0 && S.commit("user/updateState", {
|
|
4268
4261
|
key: "path",
|
|
4269
4262
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4270
|
-
}),
|
|
4263
|
+
}), ke.done();
|
|
4271
4264
|
});
|
|
4272
4265
|
}
|
|
4273
|
-
function
|
|
4266
|
+
function hs() {
|
|
4274
4267
|
return S.state.user.isLodeRemoteRoutes;
|
|
4275
4268
|
}
|
|
4276
|
-
function
|
|
4269
|
+
function _t() {
|
|
4277
4270
|
return S.state.settings.whiteRoutes || [];
|
|
4278
4271
|
}
|
|
4279
|
-
function
|
|
4272
|
+
function bs() {
|
|
4280
4273
|
return S.state.user.token;
|
|
4281
4274
|
}
|
|
4282
|
-
function
|
|
4275
|
+
function _s(e) {
|
|
4283
4276
|
e.beforeEach(async (t, l, n) => {
|
|
4284
4277
|
var p, d;
|
|
4285
|
-
if (
|
|
4278
|
+
if (_t().indexOf(t.path) !== -1) {
|
|
4286
4279
|
n();
|
|
4287
4280
|
return;
|
|
4288
4281
|
}
|
|
4289
|
-
if (
|
|
4282
|
+
if (bs()) {
|
|
4290
4283
|
(p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4291
4284
|
return;
|
|
4292
4285
|
}
|
|
4293
|
-
const
|
|
4294
|
-
if (!
|
|
4295
|
-
n(`/login?redirect=${
|
|
4286
|
+
const s = t.query.redirect || t.path, a = Xo({});
|
|
4287
|
+
if (!a) {
|
|
4288
|
+
n(`/login?redirect=${s}`);
|
|
4296
4289
|
return;
|
|
4297
4290
|
}
|
|
4298
|
-
const u =
|
|
4291
|
+
const u = a.flag();
|
|
4299
4292
|
if (u && await S.dispatch("user/login", { ticket: u })) {
|
|
4300
4293
|
n();
|
|
4301
4294
|
return;
|
|
4302
4295
|
}
|
|
4303
|
-
|
|
4296
|
+
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4304
4297
|
});
|
|
4305
4298
|
}
|
|
4306
|
-
const
|
|
4307
|
-
|
|
4299
|
+
const ys = {}, vs = { class: "loading preloader" }, gs = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), ks = [
|
|
4300
|
+
gs
|
|
4308
4301
|
];
|
|
4309
|
-
function
|
|
4310
|
-
return i(),
|
|
4302
|
+
function Es(e, t) {
|
|
4303
|
+
return i(), h("div", vs, ks);
|
|
4311
4304
|
}
|
|
4312
|
-
const
|
|
4313
|
-
components: { VLoading:
|
|
4305
|
+
const yt = /* @__PURE__ */ x(ys, [["render", Es]]), ws = V({
|
|
4306
|
+
components: { VLoading: yt },
|
|
4314
4307
|
props: {
|
|
4315
4308
|
schemaHandler: {
|
|
4316
4309
|
type: Function,
|
|
@@ -4344,85 +4337,85 @@ const ht = /* @__PURE__ */ B(ra, [["render", da]]), ma = V({
|
|
|
4344
4337
|
beforeCreate() {
|
|
4345
4338
|
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 };
|
|
4346
4339
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4347
|
-
this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0,
|
|
4340
|
+
this.loading = !1, Q(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
|
|
4348
4341
|
title: o.notice
|
|
4349
|
-
} :
|
|
4342
|
+
} : Q(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4350
4343
|
});
|
|
4351
4344
|
}
|
|
4352
4345
|
});
|
|
4353
|
-
const
|
|
4354
|
-
function
|
|
4355
|
-
const
|
|
4356
|
-
return i(),
|
|
4357
|
-
e.owners.length > 0 ? (i(), m(
|
|
4346
|
+
const Ss = ["innerHTML"];
|
|
4347
|
+
function Cs(e, t, l, n, o, s) {
|
|
4348
|
+
const a = ge, u = ge, p = yt;
|
|
4349
|
+
return i(), h(E, null, [
|
|
4350
|
+
e.owners.length > 0 ? (i(), m(a, {
|
|
4358
4351
|
key: 0,
|
|
4359
4352
|
title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
|
|
4360
4353
|
type: "info",
|
|
4361
4354
|
style: { margin: "0 0 20px 0" },
|
|
4362
4355
|
closable: !1
|
|
4363
|
-
}, null, 8, ["title"])) :
|
|
4364
|
-
e.env === "prod" && e.serviceOffLine ? (i(),
|
|
4356
|
+
}, null, 8, ["title"])) : w("", !0),
|
|
4357
|
+
e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
|
|
4365
4358
|
key: 1,
|
|
4366
4359
|
class: "offline-notice",
|
|
4367
4360
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4368
|
-
}, null, 8,
|
|
4369
|
-
e.haveNotice ? (i(), m(u, U({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) :
|
|
4370
|
-
e.loading ? (i(), m(p, { key: 1 })) :
|
|
4361
|
+
}, null, 8, Ss)) : (i(), h(E, { key: 2 }, [
|
|
4362
|
+
e.haveNotice ? (i(), m(u, U({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : w("", !0),
|
|
4363
|
+
e.loading ? (i(), m(p, { key: 1 })) : te(e.$slots, "default", K(U({ key: 2 }, e.schema)), void 0, !0)
|
|
4371
4364
|
], 64))
|
|
4372
4365
|
], 64);
|
|
4373
4366
|
}
|
|
4374
|
-
const
|
|
4367
|
+
const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f"]]), vt = {
|
|
4375
4368
|
__name: "table",
|
|
4376
4369
|
setup(e) {
|
|
4377
4370
|
const t = (l, n) => {
|
|
4378
4371
|
if (l.orderBy) {
|
|
4379
|
-
const
|
|
4372
|
+
const s = {
|
|
4380
4373
|
prop: l.orderBy.field,
|
|
4381
4374
|
order: l.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4382
4375
|
};
|
|
4383
|
-
l.tableProps =
|
|
4376
|
+
l.tableProps = F(l.tableProps, { defaultSort: s });
|
|
4384
4377
|
}
|
|
4385
|
-
const o = Object.keys(
|
|
4386
|
-
return Object.keys(l).forEach((
|
|
4387
|
-
o.indexOf(
|
|
4378
|
+
const o = Object.keys(ne.props);
|
|
4379
|
+
return Object.keys(l).forEach((s) => {
|
|
4380
|
+
o.indexOf(s) === -1 && delete l[s];
|
|
4388
4381
|
}), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
|
|
4389
4382
|
};
|
|
4390
|
-
return (l, n) => (i(), m(
|
|
4383
|
+
return (l, n) => (i(), m(ae, { "schema-handler": t }, {
|
|
4391
4384
|
default: r((o) => [
|
|
4392
|
-
c(
|
|
4385
|
+
c(k(ne), K(X(o)), null, 16)
|
|
4393
4386
|
]),
|
|
4394
4387
|
_: 1
|
|
4395
4388
|
}));
|
|
4396
4389
|
}
|
|
4397
|
-
},
|
|
4390
|
+
}, Se = {
|
|
4398
4391
|
__name: "form",
|
|
4399
4392
|
setup(e) {
|
|
4400
|
-
const t =
|
|
4401
|
-
const
|
|
4402
|
-
return Object.keys(n).forEach((
|
|
4403
|
-
if (
|
|
4404
|
-
delete n[
|
|
4393
|
+
const t = pe(), l = (n, o) => {
|
|
4394
|
+
const s = Object.keys(J.props);
|
|
4395
|
+
return Object.keys(n).forEach((a) => {
|
|
4396
|
+
if (s.indexOf(a) === -1) {
|
|
4397
|
+
delete n[a];
|
|
4405
4398
|
return;
|
|
4406
4399
|
}
|
|
4407
|
-
/.*Api$/.test(
|
|
4408
|
-
}), 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 =
|
|
4400
|
+
/.*Api$/.test(a) && (n[a] = Z(n[a], t.params));
|
|
4401
|
+
}), 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 = F({
|
|
4409
4402
|
saveApi: o + "/save",
|
|
4410
4403
|
afterSubmit: "goback",
|
|
4411
4404
|
afterReset: "goback",
|
|
4412
4405
|
mod: t.params.id ? "edit" : "create"
|
|
4413
4406
|
}, n), n;
|
|
4414
4407
|
};
|
|
4415
|
-
return (n, o) => (i(), m(
|
|
4416
|
-
default: r((
|
|
4417
|
-
c(
|
|
4408
|
+
return (n, o) => (i(), m(ae, { "schema-handler": l }, {
|
|
4409
|
+
default: r((s) => [
|
|
4410
|
+
c(k(J), K(X(s)), null, 16)
|
|
4418
4411
|
]),
|
|
4419
4412
|
_: 1
|
|
4420
4413
|
}));
|
|
4421
4414
|
}
|
|
4422
|
-
},
|
|
4415
|
+
}, xs = V({
|
|
4423
4416
|
name: "VTree",
|
|
4424
4417
|
components: {
|
|
4425
|
-
VForm:
|
|
4418
|
+
VForm: J
|
|
4426
4419
|
},
|
|
4427
4420
|
props: {
|
|
4428
4421
|
treeApi: {
|
|
@@ -4474,7 +4467,7 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4474
4467
|
type: 0,
|
|
4475
4468
|
treeData: [],
|
|
4476
4469
|
formData: {},
|
|
4477
|
-
localTreeProps:
|
|
4470
|
+
localTreeProps: F({
|
|
4478
4471
|
"default-expand-all": !0,
|
|
4479
4472
|
"expand-on-click-node": !1,
|
|
4480
4473
|
props: {
|
|
@@ -4492,7 +4485,7 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4492
4485
|
return ["", "\u65B0\u5EFA", "\u7F16\u8F91"][this.type];
|
|
4493
4486
|
},
|
|
4494
4487
|
formProps() {
|
|
4495
|
-
let e =
|
|
4488
|
+
let e = Z(this.$props.saveApi, this.formData);
|
|
4496
4489
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4497
4490
|
saveApi: e,
|
|
4498
4491
|
getApi: this.$props.getApi,
|
|
@@ -4516,9 +4509,9 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4516
4509
|
this.type = 2, this.formData = e, this.formkey++;
|
|
4517
4510
|
},
|
|
4518
4511
|
append(e, t) {
|
|
4519
|
-
var n, o,
|
|
4512
|
+
var n, o, s;
|
|
4520
4513
|
this.type = 1;
|
|
4521
|
-
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...
|
|
4514
|
+
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...cl((s = this.$props.props) == null ? void 0 : s.effectData, e) };
|
|
4522
4515
|
console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
|
|
4523
4516
|
},
|
|
4524
4517
|
canAppend(e, t) {
|
|
@@ -4533,7 +4526,7 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4533
4526
|
remove(e) {
|
|
4534
4527
|
this.$http.request({
|
|
4535
4528
|
method: "DELETE",
|
|
4536
|
-
url:
|
|
4529
|
+
url: Z(this.$props.deleteApi, e)
|
|
4537
4530
|
}).then(({ code: t }) => {
|
|
4538
4531
|
t !== 0 ? this.$message.error("\u64CD\u4F5C\u5931\u8D25") : this.loadTree();
|
|
4539
4532
|
});
|
|
@@ -4553,34 +4546,34 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4553
4546
|
const o = e.data;
|
|
4554
4547
|
o.pid = t.data.id, this.$http.request({
|
|
4555
4548
|
method: "POST",
|
|
4556
|
-
url:
|
|
4549
|
+
url: Z(this.$props.saveApi, o),
|
|
4557
4550
|
data: o
|
|
4558
|
-
}).then(({ code:
|
|
4559
|
-
|
|
4551
|
+
}).then(({ code: s }) => {
|
|
4552
|
+
s !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
|
|
4560
4553
|
});
|
|
4561
4554
|
}
|
|
4562
4555
|
}
|
|
4563
4556
|
});
|
|
4564
|
-
const
|
|
4557
|
+
const Bs = { class: "card-header" }, Is = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), As = { class: "tree-action" }, $s = { key: 0 }, Ts = {
|
|
4565
4558
|
key: 1,
|
|
4566
4559
|
style: { color: "#E6A23C" }
|
|
4567
|
-
},
|
|
4568
|
-
function
|
|
4569
|
-
const l =
|
|
4560
|
+
}, Fs = { class: "card-header" };
|
|
4561
|
+
function Os(e, t) {
|
|
4562
|
+
const l = ue, n = tl, o = Ie, s = ce, a = v("v-form"), u = se;
|
|
4570
4563
|
return i(), m(u, {
|
|
4571
4564
|
class: "tree-box",
|
|
4572
4565
|
gutter: 20
|
|
4573
4566
|
}, {
|
|
4574
4567
|
default: r(() => [
|
|
4575
|
-
c(
|
|
4568
|
+
c(s, {
|
|
4576
4569
|
span: 8,
|
|
4577
4570
|
class: "tree-tree"
|
|
4578
4571
|
}, {
|
|
4579
4572
|
default: r(() => [
|
|
4580
4573
|
c(o, { shadow: "never" }, {
|
|
4581
4574
|
header: r(() => [
|
|
4582
|
-
b("div",
|
|
4583
|
-
|
|
4575
|
+
b("div", Bs, [
|
|
4576
|
+
Is,
|
|
4584
4577
|
c(l, {
|
|
4585
4578
|
type: "text",
|
|
4586
4579
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
@@ -4605,8 +4598,8 @@ function wa(e, t) {
|
|
|
4605
4598
|
onNodeDragEnd: e.handleDragEnd
|
|
4606
4599
|
}), {
|
|
4607
4600
|
default: r(({ node: p, data: d }) => [
|
|
4608
|
-
b("span",
|
|
4609
|
-
d[e.localTreeProps.props.label] ? (i(),
|
|
4601
|
+
b("span", As, [
|
|
4602
|
+
d[e.localTreeProps.props.label] ? (i(), h("span", $s, I(d[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ts, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
|
|
4610
4603
|
b("span", null, [
|
|
4611
4604
|
d[e.localTreeProps.props.label] ? (i(), m(l, {
|
|
4612
4605
|
key: 0,
|
|
@@ -4618,7 +4611,7 @@ function wa(e, t) {
|
|
|
4618
4611
|
g("\u7F16\u8F91")
|
|
4619
4612
|
]),
|
|
4620
4613
|
_: 2
|
|
4621
|
-
}, 1032, ["onClick"])) :
|
|
4614
|
+
}, 1032, ["onClick"])) : w("", !0),
|
|
4622
4615
|
e.canAppend(d, p) ? (i(), m(l, {
|
|
4623
4616
|
key: 1,
|
|
4624
4617
|
class: "button",
|
|
@@ -4629,7 +4622,7 @@ function wa(e, t) {
|
|
|
4629
4622
|
g("\u6DFB\u52A0")
|
|
4630
4623
|
]),
|
|
4631
4624
|
_: 2
|
|
4632
|
-
}, 1032, ["onClick"])) :
|
|
4625
|
+
}, 1032, ["onClick"])) : w("", !0),
|
|
4633
4626
|
d.children === void 0 || d.children.length === 0 ? (i(), m(l, {
|
|
4634
4627
|
key: 2,
|
|
4635
4628
|
class: "button",
|
|
@@ -4640,19 +4633,19 @@ function wa(e, t) {
|
|
|
4640
4633
|
g("\u5220\u9664")
|
|
4641
4634
|
]),
|
|
4642
4635
|
_: 2
|
|
4643
|
-
}, 1032, ["onClick"])) :
|
|
4636
|
+
}, 1032, ["onClick"])) : w("", !0)
|
|
4644
4637
|
])
|
|
4645
4638
|
])
|
|
4646
4639
|
]),
|
|
4647
4640
|
_: 1
|
|
4648
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4641
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : w("", !0)
|
|
4649
4642
|
]),
|
|
4650
4643
|
_: 1
|
|
4651
4644
|
})
|
|
4652
4645
|
]),
|
|
4653
4646
|
_: 1
|
|
4654
4647
|
}),
|
|
4655
|
-
c(
|
|
4648
|
+
c(s, {
|
|
4656
4649
|
span: 16,
|
|
4657
4650
|
class: "tree-form"
|
|
4658
4651
|
}, {
|
|
@@ -4662,19 +4655,19 @@ function wa(e, t) {
|
|
|
4662
4655
|
shadow: "never"
|
|
4663
4656
|
}, {
|
|
4664
4657
|
header: r(() => [
|
|
4665
|
-
b("div",
|
|
4658
|
+
b("div", Fs, [
|
|
4666
4659
|
b("span", null, I(e.formType), 1)
|
|
4667
4660
|
])
|
|
4668
4661
|
]),
|
|
4669
4662
|
default: r(() => [
|
|
4670
|
-
(i(), m(
|
|
4663
|
+
(i(), m(a, U({
|
|
4671
4664
|
key: e.formkey,
|
|
4672
4665
|
modelValue: e.formData,
|
|
4673
4666
|
"onUpdate:modelValue": t[1] || (t[1] = (p) => e.formData = p)
|
|
4674
4667
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4675
4668
|
]),
|
|
4676
4669
|
_: 1
|
|
4677
|
-
})) :
|
|
4670
|
+
})) : w("", !0)
|
|
4678
4671
|
]),
|
|
4679
4672
|
_: 1
|
|
4680
4673
|
})
|
|
@@ -4682,34 +4675,34 @@ function wa(e, t) {
|
|
|
4682
4675
|
_: 1
|
|
4683
4676
|
});
|
|
4684
4677
|
}
|
|
4685
|
-
const
|
|
4678
|
+
const Je = /* @__PURE__ */ x(xs, [["render", Os]]), Ds = {
|
|
4686
4679
|
__name: "tree",
|
|
4687
4680
|
setup(e) {
|
|
4688
4681
|
const t = (l, n) => {
|
|
4689
|
-
const o = Object.keys(
|
|
4690
|
-
return Object.keys(l).forEach((
|
|
4691
|
-
o.indexOf(
|
|
4682
|
+
const o = Object.keys(Je.props);
|
|
4683
|
+
return Object.keys(l).forEach((s) => {
|
|
4684
|
+
o.indexOf(s) === -1 && delete l[s];
|
|
4692
4685
|
}), l;
|
|
4693
4686
|
};
|
|
4694
|
-
return (l, n) => (i(), m(
|
|
4687
|
+
return (l, n) => (i(), m(ae, { "schema-handler": t }, {
|
|
4695
4688
|
default: r((o) => [
|
|
4696
|
-
c(
|
|
4689
|
+
c(Je, K(X(o)), null, 16)
|
|
4697
4690
|
]),
|
|
4698
4691
|
_: 1
|
|
4699
4692
|
}));
|
|
4700
4693
|
}
|
|
4701
|
-
},
|
|
4694
|
+
}, ye = {
|
|
4702
4695
|
__name: "container",
|
|
4703
4696
|
setup(e) {
|
|
4704
|
-
const t =
|
|
4705
|
-
return
|
|
4697
|
+
const t = P(0);
|
|
4698
|
+
return xl(() => {
|
|
4706
4699
|
t.value++;
|
|
4707
4700
|
}), (l, n) => {
|
|
4708
4701
|
const o = v("router-view");
|
|
4709
4702
|
return i(), m(o);
|
|
4710
4703
|
};
|
|
4711
4704
|
}
|
|
4712
|
-
},
|
|
4705
|
+
}, Ps = {
|
|
4713
4706
|
title: {
|
|
4714
4707
|
text: ""
|
|
4715
4708
|
},
|
|
@@ -4738,34 +4731,34 @@ const He = /* @__PURE__ */ B(ba, [["render", wa]]), Sa = {
|
|
|
4738
4731
|
},
|
|
4739
4732
|
series: []
|
|
4740
4733
|
};
|
|
4741
|
-
function
|
|
4734
|
+
function Rs(e, t, l) {
|
|
4742
4735
|
if (l.length === 0)
|
|
4743
4736
|
return {};
|
|
4744
|
-
let n =
|
|
4745
|
-
if (n.title.text = e,
|
|
4746
|
-
const o = [],
|
|
4747
|
-
let
|
|
4737
|
+
let n = F({}, Ps);
|
|
4738
|
+
if (n.title.text = e, $e(t)) {
|
|
4739
|
+
const o = [], s = Object.keys(l[0]);
|
|
4740
|
+
let a = s[0], u = s.filter((d, f) => f > 0), p = t;
|
|
4748
4741
|
if (t.indexOf(":") > -1) {
|
|
4749
|
-
const d = t.split(":"),
|
|
4750
|
-
p = d[0],
|
|
4742
|
+
const d = t.split(":"), f = d[1].split(",");
|
|
4743
|
+
p = d[0], a = f[0], u = f.filter((_, T) => T > 0);
|
|
4751
4744
|
}
|
|
4752
4745
|
u.forEach((d) => {
|
|
4753
|
-
const
|
|
4746
|
+
const f = [];
|
|
4754
4747
|
l.forEach((_) => {
|
|
4755
|
-
|
|
4748
|
+
f.push(_[d]);
|
|
4756
4749
|
}), n.series.push({
|
|
4757
4750
|
name: d,
|
|
4758
4751
|
type: p,
|
|
4759
4752
|
smooth: !0,
|
|
4760
|
-
data:
|
|
4753
|
+
data: f
|
|
4761
4754
|
}), n.legend.data.push(d);
|
|
4762
4755
|
}), l.forEach((d) => {
|
|
4763
|
-
o.push(d[
|
|
4756
|
+
o.push(d[a]);
|
|
4764
4757
|
}), n.xAxis.data = o;
|
|
4765
4758
|
}
|
|
4766
|
-
return
|
|
4759
|
+
return Q(t) && (n = F(n, t)), console.log(111, n), n;
|
|
4767
4760
|
}
|
|
4768
|
-
const
|
|
4761
|
+
const Ls = V({
|
|
4769
4762
|
name: "NumberPanel",
|
|
4770
4763
|
props: {
|
|
4771
4764
|
dataList: {
|
|
@@ -4776,27 +4769,27 @@ const xa = V({
|
|
|
4776
4769
|
data() {
|
|
4777
4770
|
return {};
|
|
4778
4771
|
}
|
|
4779
|
-
}),
|
|
4780
|
-
function
|
|
4781
|
-
return i(!0),
|
|
4782
|
-
b("div",
|
|
4783
|
-
(i(!0),
|
|
4772
|
+
}), Ms = { class: "number-panel-title" }, js = { class: "number" }, Ns = { class: "name" };
|
|
4773
|
+
function Vs(e, t, l, n, o, s) {
|
|
4774
|
+
return i(!0), h(E, null, A(e.dataList, (a, u) => (i(), h("span", { key: u }, [
|
|
4775
|
+
b("div", Ms, [
|
|
4776
|
+
(i(!0), h(E, null, A(Object.keys(a), (p, d) => (i(), h("div", {
|
|
4784
4777
|
key: d,
|
|
4785
4778
|
class: "title-inner"
|
|
4786
4779
|
}, [
|
|
4787
|
-
b("p",
|
|
4788
|
-
b("p",
|
|
4780
|
+
b("p", js, I(a[p]), 1),
|
|
4781
|
+
b("p", Ns, I(p), 1)
|
|
4789
4782
|
]))), 128))
|
|
4790
4783
|
])
|
|
4791
4784
|
]))), 128);
|
|
4792
4785
|
}
|
|
4793
|
-
const
|
|
4786
|
+
const qs = /* @__PURE__ */ x(Ls, [["render", Vs], ["__scopeId", "data-v-cc0d8293"]]), Us = {
|
|
4794
4787
|
components: {
|
|
4795
|
-
Chart:
|
|
4796
|
-
Md:
|
|
4788
|
+
Chart: vl,
|
|
4789
|
+
Md: $l,
|
|
4797
4790
|
Json: De,
|
|
4798
|
-
Table:
|
|
4799
|
-
Number:
|
|
4791
|
+
Table: ne,
|
|
4792
|
+
Number: qs,
|
|
4800
4793
|
Html: ""
|
|
4801
4794
|
},
|
|
4802
4795
|
props: {
|
|
@@ -4817,20 +4810,20 @@ const Fa = /* @__PURE__ */ B(xa, [["render", Ta], ["__scopeId", "data-v-cc0d8293
|
|
|
4817
4810
|
};
|
|
4818
4811
|
if (o === "chart")
|
|
4819
4812
|
return {
|
|
4820
|
-
options:
|
|
4813
|
+
options: Rs(n.id, n.chart, n.data)
|
|
4821
4814
|
};
|
|
4822
4815
|
if (o === "md")
|
|
4823
4816
|
return {
|
|
4824
4817
|
source: n.data
|
|
4825
4818
|
};
|
|
4826
4819
|
if (o === "table") {
|
|
4827
|
-
if (!
|
|
4820
|
+
if (!ot(n.data))
|
|
4828
4821
|
return { showPagination: !1 };
|
|
4829
|
-
const
|
|
4830
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((
|
|
4831
|
-
|
|
4822
|
+
const s = [];
|
|
4823
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((a, u) => {
|
|
4824
|
+
s.push({ field: a, label: a });
|
|
4832
4825
|
}), {
|
|
4833
|
-
headers:
|
|
4826
|
+
headers: s,
|
|
4834
4827
|
list: n.data,
|
|
4835
4828
|
showPagination: !1
|
|
4836
4829
|
};
|
|
@@ -4841,21 +4834,21 @@ const Fa = /* @__PURE__ */ B(xa, [["render", Ta], ["__scopeId", "data-v-cc0d8293
|
|
|
4841
4834
|
};
|
|
4842
4835
|
}
|
|
4843
4836
|
};
|
|
4844
|
-
function
|
|
4845
|
-
const
|
|
4846
|
-
return
|
|
4837
|
+
function Hs(e, t, l, n, o, s) {
|
|
4838
|
+
const a = Ie, u = Ft("resize");
|
|
4839
|
+
return ve((i(), m(a, {
|
|
4847
4840
|
shadow: "never",
|
|
4848
4841
|
class: "part"
|
|
4849
4842
|
}, {
|
|
4850
4843
|
default: r(() => [
|
|
4851
|
-
(i(), m(
|
|
4844
|
+
(i(), m(Qe(n.comptype()), K(X(n.compprops(l.option))), null, 16))
|
|
4852
4845
|
]),
|
|
4853
4846
|
_: 1
|
|
4854
4847
|
})), [
|
|
4855
4848
|
[u, !0]
|
|
4856
4849
|
]);
|
|
4857
4850
|
}
|
|
4858
|
-
const
|
|
4851
|
+
const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1"]]), Js = /* @__PURE__ */ V({
|
|
4859
4852
|
__name: "index",
|
|
4860
4853
|
props: {
|
|
4861
4854
|
filter: {
|
|
@@ -4869,12 +4862,12 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4869
4862
|
},
|
|
4870
4863
|
setup(e) {
|
|
4871
4864
|
const t = e, l = useRoute();
|
|
4872
|
-
|
|
4865
|
+
Ot(() => {
|
|
4873
4866
|
});
|
|
4874
|
-
const n =
|
|
4875
|
-
|
|
4876
|
-
var
|
|
4877
|
-
(
|
|
4867
|
+
const n = P({});
|
|
4868
|
+
Ke(() => {
|
|
4869
|
+
var f;
|
|
4870
|
+
(f = t.filter) == null || f.forEach((_) => {
|
|
4878
4871
|
_.default !== null && (n.value[_.field] = _.default);
|
|
4879
4872
|
});
|
|
4880
4873
|
});
|
|
@@ -4888,23 +4881,23 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4888
4881
|
cancelButton: {
|
|
4889
4882
|
text: "\u91CD\u7F6E"
|
|
4890
4883
|
}
|
|
4891
|
-
},
|
|
4892
|
-
let
|
|
4893
|
-
if (!
|
|
4884
|
+
}, s = P(1), a = P(t.filter), u = P(t.dataPart), p = N(() => {
|
|
4885
|
+
let f = l.params.id;
|
|
4886
|
+
if (!f) {
|
|
4894
4887
|
const _ = l.path.split("/");
|
|
4895
|
-
|
|
4888
|
+
f = _[_.length - 1];
|
|
4896
4889
|
}
|
|
4897
|
-
return "/focusbi_report/view/" +
|
|
4898
|
-
}), d = (
|
|
4899
|
-
|
|
4900
|
-
|
|
4890
|
+
return "/focusbi_report/view/" + f;
|
|
4891
|
+
}), d = (f) => {
|
|
4892
|
+
on.get(p.value, { params: f }).then(({ data: _ }) => {
|
|
4893
|
+
a.value = _.filter, u.value = _.dataPart, s.value++;
|
|
4901
4894
|
});
|
|
4902
4895
|
};
|
|
4903
|
-
return (
|
|
4904
|
-
const T =
|
|
4896
|
+
return (f, _) => {
|
|
4897
|
+
const T = Ie, $ = ce, H = ge, q = se;
|
|
4905
4898
|
return i(), m(q, null, {
|
|
4906
4899
|
default: r(() => [
|
|
4907
|
-
|
|
4900
|
+
k(a).length > 0 ? (i(), m($, {
|
|
4908
4901
|
key: 0,
|
|
4909
4902
|
span: 24
|
|
4910
4903
|
}, {
|
|
@@ -4914,10 +4907,10 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4914
4907
|
class: "part-filter"
|
|
4915
4908
|
}, {
|
|
4916
4909
|
default: r(() => [
|
|
4917
|
-
c(
|
|
4918
|
-
modelValue:
|
|
4919
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
4920
|
-
"form-items":
|
|
4910
|
+
c(k(J), {
|
|
4911
|
+
modelValue: k(n),
|
|
4912
|
+
"onUpdate:modelValue": _[0] || (_[0] = (B) => Dt(n) ? n.value = B : null),
|
|
4913
|
+
"form-items": k(a),
|
|
4921
4914
|
options: o,
|
|
4922
4915
|
onSubmit: d
|
|
4923
4916
|
}, null, 8, ["modelValue", "form-items"])
|
|
@@ -4926,28 +4919,28 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4926
4919
|
})
|
|
4927
4920
|
]),
|
|
4928
4921
|
_: 1
|
|
4929
|
-
})) :
|
|
4922
|
+
})) : w("", !0),
|
|
4930
4923
|
c($, { span: 24 }, {
|
|
4931
4924
|
default: r(() => [
|
|
4932
4925
|
c(q, { gutter: 20 }, {
|
|
4933
4926
|
default: r(() => [
|
|
4934
|
-
(i(!0),
|
|
4935
|
-
key:
|
|
4936
|
-
span:
|
|
4927
|
+
(i(!0), h(E, null, A(k(u), (B, W) => (i(), m($, {
|
|
4928
|
+
key: W,
|
|
4929
|
+
span: B.col || 24
|
|
4937
4930
|
}, {
|
|
4938
4931
|
default: r(() => [
|
|
4939
|
-
|
|
4932
|
+
B.errMsg ? (i(), m(H, {
|
|
4940
4933
|
key: 1,
|
|
4941
|
-
title:
|
|
4934
|
+
title: B.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
|
|
4942
4935
|
type: "error"
|
|
4943
4936
|
}, {
|
|
4944
4937
|
default: r(() => [
|
|
4945
|
-
g(I(
|
|
4938
|
+
g(I(B.errMsg), 1)
|
|
4946
4939
|
]),
|
|
4947
4940
|
_: 2
|
|
4948
|
-
}, 1032, ["title"])) : (i(), m(
|
|
4949
|
-
key:
|
|
4950
|
-
option:
|
|
4941
|
+
}, 1032, ["title"])) : (i(), m(Gs, {
|
|
4942
|
+
key: k(s),
|
|
4943
|
+
option: B
|
|
4951
4944
|
}, null, 8, ["option"]))
|
|
4952
4945
|
]),
|
|
4953
4946
|
_: 2
|
|
@@ -4964,7 +4957,7 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4964
4957
|
};
|
|
4965
4958
|
}
|
|
4966
4959
|
});
|
|
4967
|
-
const
|
|
4960
|
+
const zs = {
|
|
4968
4961
|
__name: "report",
|
|
4969
4962
|
setup(e) {
|
|
4970
4963
|
const t = useRoute(), l = N(() => {
|
|
@@ -4975,54 +4968,159 @@ const La = {
|
|
|
4975
4968
|
}
|
|
4976
4969
|
return "/focusbi_report/view/" + n;
|
|
4977
4970
|
});
|
|
4978
|
-
return (n, o) => (i(), m(
|
|
4979
|
-
default: r((
|
|
4980
|
-
c(
|
|
4971
|
+
return (n, o) => (i(), m(ae, { "schema-api": k(l) }, {
|
|
4972
|
+
default: r((s) => [
|
|
4973
|
+
c(Js, K(X(s)), null, 16)
|
|
4981
4974
|
]),
|
|
4982
4975
|
_: 1
|
|
4983
4976
|
}, 8, ["schema-api"]));
|
|
4984
4977
|
}
|
|
4985
4978
|
};
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4979
|
+
const Ks = (e) => c("div", null, [e.test]), Ws = {
|
|
4980
|
+
card: bl,
|
|
4981
|
+
form: J,
|
|
4982
|
+
table: ne,
|
|
4983
|
+
test: Ks,
|
|
4984
|
+
row: _l,
|
|
4985
|
+
col: yl
|
|
4986
|
+
}, Zs = {
|
|
4987
|
+
card: {
|
|
4988
|
+
type: "card",
|
|
4989
|
+
props: {
|
|
4990
|
+
class: "render-card",
|
|
4991
|
+
shadow: "never"
|
|
4992
|
+
}
|
|
4993
|
+
},
|
|
4994
|
+
form: {
|
|
4995
|
+
type: "form",
|
|
4996
|
+
props: {
|
|
4997
|
+
afterReset: ""
|
|
4998
|
+
}
|
|
4999
|
+
},
|
|
5000
|
+
table: {
|
|
5001
|
+
type: "table",
|
|
5002
|
+
props: {
|
|
5003
|
+
syncUrl: !1
|
|
5004
|
+
}
|
|
5005
|
+
}
|
|
5006
|
+
};
|
|
5007
|
+
function Qs(e) {
|
|
5008
|
+
const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
|
|
5009
|
+
delete t.span;
|
|
5010
|
+
let o = {
|
|
5011
|
+
...t,
|
|
5012
|
+
type: l[0]
|
|
5013
|
+
};
|
|
5014
|
+
for (let s = 1; s < l.length; s++)
|
|
5015
|
+
o = {
|
|
5016
|
+
type: l[s],
|
|
5017
|
+
children: [o]
|
|
5018
|
+
};
|
|
5019
|
+
return o.span = n, je([o]);
|
|
5020
|
+
}
|
|
5021
|
+
function je(e) {
|
|
5022
|
+
const t = {
|
|
5023
|
+
type: "row",
|
|
5024
|
+
props: {
|
|
5025
|
+
gutter: 20,
|
|
5026
|
+
class: "render-row"
|
|
5027
|
+
},
|
|
5028
|
+
children: []
|
|
5029
|
+
};
|
|
5030
|
+
return e.forEach((l) => {
|
|
5031
|
+
var a, u, p;
|
|
5032
|
+
let n = Object.assign({}, l);
|
|
5033
|
+
if (Q((a = n.props) == null ? void 0 : a.style)) {
|
|
5034
|
+
let d = "";
|
|
5035
|
+
Object.keys((u = n.props) == null ? void 0 : u.style).forEach((f) => {
|
|
5036
|
+
var _;
|
|
5037
|
+
d += f + ":" + ((_ = n.props) == null ? void 0 : _.style[f]) + ";";
|
|
5038
|
+
}), n.props.style = d;
|
|
5039
|
+
}
|
|
5040
|
+
const o = {
|
|
5041
|
+
span: (p = n.span) != null ? p : 24,
|
|
5042
|
+
class: "render-col"
|
|
5043
|
+
};
|
|
5044
|
+
if (delete n.span, n.type.indexOf(".") > 0) {
|
|
5045
|
+
t.children.push({
|
|
5046
|
+
type: "col",
|
|
5047
|
+
props: o,
|
|
5048
|
+
children: Qs(n)
|
|
5049
|
+
});
|
|
5050
|
+
return;
|
|
5051
|
+
}
|
|
5052
|
+
n = F({
|
|
5053
|
+
props: {}
|
|
5054
|
+
}, Zs[n.type] || {}, n);
|
|
5055
|
+
const s = gt(n.children);
|
|
5056
|
+
s.length && (n.children = je(s)), t.children.push({
|
|
5057
|
+
type: "col",
|
|
5058
|
+
props: o,
|
|
5059
|
+
children: [n]
|
|
5060
|
+
});
|
|
5061
|
+
}), [t];
|
|
5062
|
+
}
|
|
5063
|
+
function gt(e) {
|
|
5064
|
+
return ot(e) ? e : Q(e) ? [e] : [];
|
|
5065
|
+
}
|
|
5066
|
+
let Ce = {};
|
|
5067
|
+
const kt = (e) => {
|
|
5068
|
+
const t = Ws[e.type] || Ce[e.type] || e.type;
|
|
5069
|
+
return Rt(t, e.props, {
|
|
5070
|
+
default: () => gt(e.children).map((l) => kt(l))
|
|
5071
|
+
});
|
|
5072
|
+
}, Xs = (e) => (Object.keys(Ce).length === 0 && (Ce = Pt().appContext.components), je(Object.values(e.schema)).map((l) => kt(l))), Ys = {
|
|
5073
|
+
__name: "custom",
|
|
5074
|
+
setup(e) {
|
|
5075
|
+
const t = P([]), l = (n, o) => (t.value = Lt(n), n);
|
|
5076
|
+
return (n, o) => (i(), m(ae, { "schema-handler": l }, {
|
|
5077
|
+
default: r(() => [
|
|
5078
|
+
c(k(Xs), { schema: k(t) }, null, 8, ["schema"])
|
|
5079
|
+
]),
|
|
5080
|
+
_: 1
|
|
5081
|
+
}));
|
|
5082
|
+
}
|
|
5083
|
+
};
|
|
5084
|
+
let ee = {};
|
|
5085
|
+
function bi(e) {
|
|
5086
|
+
ee = e;
|
|
4989
5087
|
}
|
|
4990
|
-
const
|
|
5088
|
+
const ea = (e) => {
|
|
4991
5089
|
const t = (l) => {
|
|
4992
5090
|
const n = "./views/" + l + ".vue";
|
|
4993
|
-
return
|
|
5091
|
+
return ee && ee[n] && ee[n].default ? ee[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), ye);
|
|
4994
5092
|
};
|
|
4995
5093
|
if (e.path === "#")
|
|
4996
|
-
return
|
|
5094
|
+
return ye;
|
|
4997
5095
|
switch (e.page_type) {
|
|
4998
|
-
case
|
|
4999
|
-
return
|
|
5000
|
-
case
|
|
5001
|
-
return
|
|
5002
|
-
case
|
|
5003
|
-
case
|
|
5096
|
+
case L.list:
|
|
5097
|
+
return vt;
|
|
5098
|
+
case L.form:
|
|
5099
|
+
return Se;
|
|
5100
|
+
case L.custom:
|
|
5101
|
+
case L.localComp:
|
|
5004
5102
|
return t(e.view || "");
|
|
5005
|
-
case
|
|
5006
|
-
return
|
|
5007
|
-
case
|
|
5008
|
-
return
|
|
5009
|
-
case
|
|
5010
|
-
return
|
|
5103
|
+
case L.tree:
|
|
5104
|
+
return Ds;
|
|
5105
|
+
case L.report:
|
|
5106
|
+
return zs;
|
|
5107
|
+
case L.customSchema:
|
|
5108
|
+
return Ys;
|
|
5011
5109
|
}
|
|
5012
|
-
return
|
|
5110
|
+
return ye;
|
|
5013
5111
|
};
|
|
5014
|
-
function
|
|
5112
|
+
function ta(e) {
|
|
5015
5113
|
let t = e.path;
|
|
5016
|
-
return e.type === D.menu && e.page_type ===
|
|
5114
|
+
return e.type === D.menu && e.page_type === L.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;
|
|
5017
5115
|
}
|
|
5018
|
-
function
|
|
5116
|
+
function la(e) {
|
|
5019
5117
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5020
5118
|
}
|
|
5021
|
-
const
|
|
5119
|
+
const Et = (e) => {
|
|
5022
5120
|
const t = e.type !== D.page, l = {
|
|
5023
|
-
path:
|
|
5024
|
-
name: e.id + "_" +
|
|
5025
|
-
component:
|
|
5121
|
+
path: ta(e),
|
|
5122
|
+
name: e.id + "_" + la(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5123
|
+
component: ea(e),
|
|
5026
5124
|
meta: {
|
|
5027
5125
|
id: e.id,
|
|
5028
5126
|
pageId: e.id,
|
|
@@ -5033,13 +5131,13 @@ const _t = (e) => {
|
|
|
5033
5131
|
menuType: e.type,
|
|
5034
5132
|
keepAlive: !1
|
|
5035
5133
|
},
|
|
5036
|
-
children: e.children ? e.children.map((n) =>
|
|
5134
|
+
children: e.children ? e.children.map((n) => Et(n)) : []
|
|
5037
5135
|
};
|
|
5038
|
-
if (e.page_type ===
|
|
5039
|
-
const n = e.path + "/list", o = e.path + "/form",
|
|
5136
|
+
if (e.page_type === L.entity) {
|
|
5137
|
+
const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
|
|
5040
5138
|
path: n,
|
|
5041
5139
|
name: e.name + "\u5217\u8868" + e.id,
|
|
5042
|
-
component:
|
|
5140
|
+
component: vt,
|
|
5043
5141
|
meta: {
|
|
5044
5142
|
id: e.id + 99999,
|
|
5045
5143
|
title: "\u5217\u8868",
|
|
@@ -5051,7 +5149,7 @@ const _t = (e) => {
|
|
|
5051
5149
|
}, {
|
|
5052
5150
|
path: o,
|
|
5053
5151
|
name: e.name + "\u65B0\u5EFA" + e.id,
|
|
5054
|
-
component:
|
|
5152
|
+
component: Se,
|
|
5055
5153
|
meta: {
|
|
5056
5154
|
id: e.id + 99999 + 1,
|
|
5057
5155
|
title: "\u65B0\u5EFA",
|
|
@@ -5061,9 +5159,9 @@ const _t = (e) => {
|
|
|
5061
5159
|
pageId: e.id
|
|
5062
5160
|
}
|
|
5063
5161
|
}, {
|
|
5064
|
-
path:
|
|
5162
|
+
path: s,
|
|
5065
5163
|
name: e.name + "\u7F16\u8F91" + e.id,
|
|
5066
|
-
component:
|
|
5164
|
+
component: Se,
|
|
5067
5165
|
meta: {
|
|
5068
5166
|
id: e.id + 99999 + 2,
|
|
5069
5167
|
title: "\u7F16\u8F91",
|
|
@@ -5073,7 +5171,7 @@ const _t = (e) => {
|
|
|
5073
5171
|
pageId: e.id
|
|
5074
5172
|
}
|
|
5075
5173
|
}];
|
|
5076
|
-
l.children = [...
|
|
5174
|
+
l.children = [...a, ...l.children];
|
|
5077
5175
|
}
|
|
5078
5176
|
if (l.children && l.children.length > 0) {
|
|
5079
5177
|
let n = !0;
|
|
@@ -5082,16 +5180,16 @@ const _t = (e) => {
|
|
|
5082
5180
|
}), l.meta && (l.meta.menuType = t ? D.dir : D.hidden), n) {
|
|
5083
5181
|
l.meta && (l.meta.menuType = D.menu);
|
|
5084
5182
|
let o = "/";
|
|
5085
|
-
for (let
|
|
5086
|
-
if (l.children[
|
|
5087
|
-
o = l.children[
|
|
5183
|
+
for (let s = 0; s < l.children.length; s++)
|
|
5184
|
+
if (l.children[s].path.indexOf("/:") === -1) {
|
|
5185
|
+
o = l.children[s].path;
|
|
5088
5186
|
break;
|
|
5089
5187
|
}
|
|
5090
5188
|
l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
|
|
5091
5189
|
}
|
|
5092
5190
|
}
|
|
5093
5191
|
return l;
|
|
5094
|
-
},
|
|
5192
|
+
}, na = (e) => {
|
|
5095
5193
|
const t = [];
|
|
5096
5194
|
return e.forEach((l) => {
|
|
5097
5195
|
const n = {
|
|
@@ -5100,51 +5198,51 @@ const _t = (e) => {
|
|
|
5100
5198
|
routes: []
|
|
5101
5199
|
};
|
|
5102
5200
|
l.routes.forEach((o) => {
|
|
5103
|
-
n.routes.push(
|
|
5201
|
+
n.routes.push(Et(o));
|
|
5104
5202
|
}), t.push(n);
|
|
5105
5203
|
}), t;
|
|
5106
5204
|
};
|
|
5107
|
-
function
|
|
5205
|
+
function oa(e) {
|
|
5108
5206
|
e.beforeEach(async (t, l, n) => {
|
|
5109
|
-
if (
|
|
5207
|
+
if (_t().indexOf(t.path) !== -1) {
|
|
5110
5208
|
n();
|
|
5111
5209
|
return;
|
|
5112
5210
|
}
|
|
5113
|
-
if (
|
|
5211
|
+
if (hs()) {
|
|
5114
5212
|
n();
|
|
5115
5213
|
return;
|
|
5116
5214
|
}
|
|
5117
5215
|
await S.dispatch("user/info");
|
|
5118
|
-
const o = await S.dispatch("user/loadRemoteRoutes"),
|
|
5119
|
-
|
|
5120
|
-
|
|
5216
|
+
const o = await S.dispatch("user/loadRemoteRoutes"), s = na(o);
|
|
5217
|
+
s.forEach((a) => {
|
|
5218
|
+
a.routes.forEach((u) => {
|
|
5121
5219
|
e.addRoute({
|
|
5122
5220
|
path: "/",
|
|
5123
|
-
component:
|
|
5221
|
+
component: ht,
|
|
5124
5222
|
children: [u]
|
|
5125
5223
|
});
|
|
5126
5224
|
});
|
|
5127
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter",
|
|
5225
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", s), await e.replace(t), n();
|
|
5128
5226
|
});
|
|
5129
5227
|
}
|
|
5130
|
-
function
|
|
5228
|
+
function sa(e) {
|
|
5131
5229
|
e.beforeEach(async (t, l, n) => {
|
|
5132
5230
|
var u;
|
|
5133
|
-
const
|
|
5134
|
-
for (let p =
|
|
5231
|
+
const s = [S.state.settings.title || ""], a = t.matched.length;
|
|
5232
|
+
for (let p = a; p > a - 3; p--) {
|
|
5135
5233
|
const d = t.matched[p - 1];
|
|
5136
|
-
(u = d == null ? void 0 : d.meta) != null && u.title &&
|
|
5234
|
+
(u = d == null ? void 0 : d.meta) != null && u.title && s.push(d.meta.title + "");
|
|
5137
5235
|
}
|
|
5138
|
-
|
|
5236
|
+
s.length > 1 && (document.title = s.reverse().join("-")), n();
|
|
5139
5237
|
}), e.afterEach(async (t, l, n) => {
|
|
5140
5238
|
Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
|
|
5141
5239
|
});
|
|
5142
5240
|
}
|
|
5143
|
-
function
|
|
5144
|
-
|
|
5241
|
+
function aa(e) {
|
|
5242
|
+
_s(e), fs(e), oa(e), sa(e);
|
|
5145
5243
|
}
|
|
5146
|
-
|
|
5147
|
-
const
|
|
5244
|
+
aa(oe);
|
|
5245
|
+
const ia = {
|
|
5148
5246
|
beforeMount(e, t) {
|
|
5149
5247
|
e.clickOutsideEvent = function(l) {
|
|
5150
5248
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5153,23 +5251,23 @@ const Ga = {
|
|
|
5153
5251
|
unmounted(e) {
|
|
5154
5252
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5155
5253
|
}
|
|
5156
|
-
},
|
|
5254
|
+
}, z = Il(), ra = {
|
|
5157
5255
|
mounted: (e, t) => {
|
|
5158
5256
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5159
|
-
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value &&
|
|
5257
|
+
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && z.emit("right-click", { event: l, data: t.value });
|
|
5160
5258
|
});
|
|
5161
5259
|
}
|
|
5162
|
-
},
|
|
5260
|
+
}, ua = {
|
|
5163
5261
|
mounted(e) {
|
|
5164
5262
|
}
|
|
5165
5263
|
};
|
|
5166
|
-
function
|
|
5264
|
+
function ze(e, t) {
|
|
5167
5265
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5168
5266
|
for (; n; )
|
|
5169
5267
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5170
5268
|
return l;
|
|
5171
5269
|
}
|
|
5172
|
-
const
|
|
5270
|
+
const ca = {
|
|
5173
5271
|
mounted: (e, t) => {
|
|
5174
5272
|
if (e === null || !t.value.dev)
|
|
5175
5273
|
return;
|
|
@@ -5180,61 +5278,61 @@ const Ka = {
|
|
|
5180
5278
|
l.classList.add("devtool-hover");
|
|
5181
5279
|
const n = document.createElement("i");
|
|
5182
5280
|
n.className = "devtool-item-wrapper", l.onmouseover = () => {
|
|
5183
|
-
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top =
|
|
5281
|
+
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = ze(l, "Top") - 15 + "px", n.style.left = ze(l, "Left") - 15 + "px";
|
|
5184
5282
|
};
|
|
5185
5283
|
const o = document.createElement("span");
|
|
5186
5284
|
o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
|
|
5187
|
-
const
|
|
5188
|
-
|
|
5189
|
-
|
|
5285
|
+
const s = document.createElement("i");
|
|
5286
|
+
s.className = "iconfont ra-editor1", o.appendChild(s), o.onclick = (p) => {
|
|
5287
|
+
z.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
|
|
5190
5288
|
}, n.appendChild(o);
|
|
5191
|
-
const
|
|
5192
|
-
|
|
5289
|
+
const a = document.createElement("span");
|
|
5290
|
+
a.className = "dev-action-del", a.title = "\u5220\u9664";
|
|
5193
5291
|
const u = document.createElement("i");
|
|
5194
|
-
u.className = "iconfont ra-cut",
|
|
5195
|
-
|
|
5196
|
-
}, n.appendChild(
|
|
5292
|
+
u.className = "iconfont ra-cut", a.appendChild(u), a.onclick = (p) => {
|
|
5293
|
+
z.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
5294
|
+
}, n.appendChild(a), l.insertBefore(n, l.firstChild);
|
|
5197
5295
|
}
|
|
5198
|
-
},
|
|
5296
|
+
}, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5199
5297
|
__proto__: null,
|
|
5200
|
-
outClick:
|
|
5201
|
-
rightClick:
|
|
5202
|
-
resize:
|
|
5203
|
-
devtool:
|
|
5298
|
+
outClick: ia,
|
|
5299
|
+
rightClick: ra,
|
|
5300
|
+
resize: ua,
|
|
5301
|
+
devtool: ca
|
|
5204
5302
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5205
|
-
let
|
|
5206
|
-
function
|
|
5207
|
-
return e ?
|
|
5303
|
+
let re;
|
|
5304
|
+
function _i(e) {
|
|
5305
|
+
return e ? Le(F(de.axios, e)) : re;
|
|
5208
5306
|
}
|
|
5209
|
-
function
|
|
5210
|
-
const t =
|
|
5211
|
-
o.unshift(n), o.forEach((
|
|
5212
|
-
|
|
5213
|
-
}), t != null && t.mock &&
|
|
5214
|
-
"X-Token":
|
|
5215
|
-
})),
|
|
5307
|
+
function yi(e) {
|
|
5308
|
+
const t = F(de, e), l = Mt(Tl), n = ya(t), o = t.plugins || [];
|
|
5309
|
+
o.unshift(n), o.forEach((s) => {
|
|
5310
|
+
_a(l, s);
|
|
5311
|
+
}), t != null && t.mock && Vl(), re = Le(t.axios), S.dispatch("setHttp", re).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = re, l.config.globalProperties.$router = oe, window.App = l, window.OmsOptions = t, gl(() => ({
|
|
5312
|
+
"X-Token": Re()
|
|
5313
|
+
})), oe.isReady().then(() => l.mount("#app"));
|
|
5216
5314
|
}
|
|
5217
|
-
function
|
|
5315
|
+
function da(e, t = {}) {
|
|
5218
5316
|
Object.keys(t).forEach((l) => {
|
|
5219
5317
|
e.component(l, t[l]);
|
|
5220
5318
|
});
|
|
5221
5319
|
}
|
|
5222
|
-
function
|
|
5320
|
+
function ma(e = []) {
|
|
5223
5321
|
e.forEach((t) => {
|
|
5224
|
-
|
|
5322
|
+
oe.addRoute(t);
|
|
5225
5323
|
}), S.commit("user/setCustomRoutes", e);
|
|
5226
5324
|
}
|
|
5227
|
-
function
|
|
5325
|
+
function fa(e, t) {
|
|
5228
5326
|
t.forEach((l) => {
|
|
5229
|
-
|
|
5327
|
+
Q(l) && (l = [l]), e.use(...l);
|
|
5230
5328
|
});
|
|
5231
5329
|
}
|
|
5232
|
-
function
|
|
5330
|
+
function ha(e, t = {}) {
|
|
5233
5331
|
Object.keys(t).forEach((l) => {
|
|
5234
5332
|
e.directive(l, t[l]);
|
|
5235
5333
|
});
|
|
5236
5334
|
}
|
|
5237
|
-
function
|
|
5335
|
+
function ba(e = {}) {
|
|
5238
5336
|
const t = ["app", "settings", "user"];
|
|
5239
5337
|
Object.keys(e).forEach((l) => {
|
|
5240
5338
|
if (t.indexOf(l) !== -1) {
|
|
@@ -5244,39 +5342,39 @@ function es(e = {}) {
|
|
|
5244
5342
|
S.registerModule(l, e[l]);
|
|
5245
5343
|
});
|
|
5246
5344
|
}
|
|
5247
|
-
function
|
|
5248
|
-
|
|
5345
|
+
function _a(e, t) {
|
|
5346
|
+
da(e, t.components || {}), ma(t.routes || []), fa(e, t.use || []), ha(e, t.directives || {}), ba(t.storeModules || {}), rt(t.mockApis || []);
|
|
5249
5347
|
}
|
|
5250
|
-
function
|
|
5348
|
+
function ya(e) {
|
|
5251
5349
|
var t;
|
|
5252
5350
|
return {
|
|
5253
|
-
components: { VIcon:
|
|
5254
|
-
directives:
|
|
5351
|
+
components: { VIcon: kl },
|
|
5352
|
+
directives: pa,
|
|
5255
5353
|
use: [
|
|
5256
5354
|
S,
|
|
5257
|
-
|
|
5258
|
-
[
|
|
5355
|
+
oe,
|
|
5356
|
+
[ml, { locale: Ae, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5259
5357
|
]
|
|
5260
5358
|
};
|
|
5261
5359
|
}
|
|
5262
5360
|
export {
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5361
|
+
Ko as BaseSso,
|
|
5362
|
+
ye as Container,
|
|
5363
|
+
Wo as DingTalk,
|
|
5364
|
+
ht as Layout,
|
|
5267
5365
|
D as MenuType,
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5366
|
+
Ue as Message,
|
|
5367
|
+
He as MessageBox,
|
|
5368
|
+
L as PageType,
|
|
5369
|
+
Qo as allSso,
|
|
5370
|
+
yi as createAdmin,
|
|
5371
|
+
z as eventBus,
|
|
5372
|
+
sn as getCmp,
|
|
5373
|
+
re as http,
|
|
5374
|
+
Le as instance,
|
|
5375
|
+
bi as regViews,
|
|
5376
|
+
hi as setCmp,
|
|
5377
|
+
na as transRemoteModules,
|
|
5378
|
+
_i as useHttp
|
|
5281
5379
|
};
|
|
5282
5380
|
//# sourceMappingURL=index.es.js.map
|