@okiss/oms 0.0.29 → 0.0.31
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 +919 -818
- 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,56 +1104,59 @@ 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 =
|
|
1143
|
-
|
|
1142
|
+
const e = sn("test");
|
|
1143
|
+
if (e)
|
|
1144
|
+
return () => c(e, null, null);
|
|
1145
|
+
const t = at(), l = N(() => t.getters.name);
|
|
1146
|
+
return () => c("div", {
|
|
1144
1147
|
class: "dashboard-container"
|
|
1145
1148
|
}, [c("div", {
|
|
1146
1149
|
class: "dashboard-text"
|
|
1147
|
-
}, [g("Hi "),
|
|
1150
|
+
}, [g("Hi "), l.value, g(" \u{1F604}")])]);
|
|
1148
1151
|
}
|
|
1149
1152
|
});
|
|
1150
|
-
const
|
|
1153
|
+
const x = (e, t) => {
|
|
1151
1154
|
const l = e.__vccOpts || e;
|
|
1152
1155
|
for (const [n, o] of t)
|
|
1153
1156
|
l[n] = o;
|
|
1154
1157
|
return l;
|
|
1155
|
-
},
|
|
1156
|
-
const
|
|
1158
|
+
}, rn = /* @__PURE__ */ x(an, [["__scopeId", "data-v-10e6b4b6"]]);
|
|
1159
|
+
const un = {
|
|
1157
1160
|
data() {
|
|
1158
1161
|
return {
|
|
1159
1162
|
levelList: null
|
|
@@ -1185,7 +1188,7 @@ const Xl = {
|
|
|
1185
1188
|
},
|
|
1186
1189
|
pathCompile(e) {
|
|
1187
1190
|
const { params: t } = this.$route;
|
|
1188
|
-
return
|
|
1191
|
+
return Bl.compile(e)(t);
|
|
1189
1192
|
},
|
|
1190
1193
|
handleLink(e) {
|
|
1191
1194
|
const { redirect: t, path: l } = e;
|
|
@@ -1196,27 +1199,27 @@ const Xl = {
|
|
|
1196
1199
|
this.$router.push(this.pathCompile(l));
|
|
1197
1200
|
}
|
|
1198
1201
|
}
|
|
1199
|
-
},
|
|
1202
|
+
}, cn = {
|
|
1200
1203
|
key: 0,
|
|
1201
1204
|
class: "no-redirect"
|
|
1202
|
-
},
|
|
1203
|
-
function
|
|
1204
|
-
const
|
|
1205
|
+
}, pn = ["onClick"];
|
|
1206
|
+
function dn(e, t, l, n, o, s) {
|
|
1207
|
+
const a = Nt, u = Vt;
|
|
1205
1208
|
return i(), m(u, {
|
|
1206
1209
|
class: "app-breadcrumb",
|
|
1207
1210
|
separator: "/"
|
|
1208
1211
|
}, {
|
|
1209
1212
|
default: r(() => [
|
|
1210
|
-
c(
|
|
1213
|
+
c(It, { name: "breadcrumb" }, {
|
|
1211
1214
|
default: r(() => [
|
|
1212
|
-
(i(!0),
|
|
1215
|
+
(i(!0), h(E, null, A(o.levelList, (p, d) => (i(), m(a, {
|
|
1213
1216
|
key: p.path
|
|
1214
1217
|
}, {
|
|
1215
1218
|
default: r(() => [
|
|
1216
|
-
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(),
|
|
1219
|
+
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
1220
|
key: 1,
|
|
1218
|
-
onClick: (
|
|
1219
|
-
}, I(p.meta.title), 9,
|
|
1221
|
+
onClick: (f) => s.handleLink(p)
|
|
1222
|
+
}, I(p.meta.title), 9, pn))
|
|
1220
1223
|
]),
|
|
1221
1224
|
_: 2
|
|
1222
1225
|
}, 1024))), 128))
|
|
@@ -1227,7 +1230,7 @@ function to(e, t, l, n, o, a) {
|
|
|
1227
1230
|
_: 1
|
|
1228
1231
|
});
|
|
1229
1232
|
}
|
|
1230
|
-
const
|
|
1233
|
+
const mn = /* @__PURE__ */ x(un, [["render", dn], ["__scopeId", "data-v-fa74804e"]]), fn = {
|
|
1231
1234
|
name: "Hamburger",
|
|
1232
1235
|
props: {
|
|
1233
1236
|
isActive: {
|
|
@@ -1242,27 +1245,27 @@ const lo = /* @__PURE__ */ B(Xl, [["render", to], ["__scopeId", "data-v-fa74804e
|
|
|
1242
1245
|
}
|
|
1243
1246
|
}
|
|
1244
1247
|
};
|
|
1245
|
-
function
|
|
1246
|
-
const
|
|
1247
|
-
return i(),
|
|
1248
|
+
function hn(e, t, l, n, o, s) {
|
|
1249
|
+
const a = v("v-icon");
|
|
1250
|
+
return i(), h("div", {
|
|
1248
1251
|
style: { padding: "0 15px" },
|
|
1249
|
-
onClick: t[0] || (t[0] = (...u) =>
|
|
1252
|
+
onClick: t[0] || (t[0] = (...u) => s.toggleClick && s.toggleClick(...u))
|
|
1250
1253
|
}, [
|
|
1251
|
-
c(
|
|
1254
|
+
c(a, {
|
|
1252
1255
|
class: G({ "is-active": l.isActive }),
|
|
1253
1256
|
name: "ra-leftalignment"
|
|
1254
1257
|
}, null, 8, ["class"])
|
|
1255
1258
|
]);
|
|
1256
1259
|
}
|
|
1257
|
-
const
|
|
1258
|
-
const
|
|
1259
|
-
function
|
|
1260
|
-
const l =
|
|
1261
|
-
return i(), m(
|
|
1260
|
+
const bn = /* @__PURE__ */ x(fn, [["render", hn]]);
|
|
1261
|
+
const _n = {};
|
|
1262
|
+
function yn(e, t) {
|
|
1263
|
+
const l = se, n = qt, o = Ut, s = Ht;
|
|
1264
|
+
return i(), m(s, { style: { width: "100%", height: "100%" } }, {
|
|
1262
1265
|
default: r(() => [
|
|
1263
1266
|
c(l, { class: "aside" }, {
|
|
1264
1267
|
default: r(() => [
|
|
1265
|
-
|
|
1268
|
+
te(e.$slots, "left-aside", {}, void 0, !0)
|
|
1266
1269
|
]),
|
|
1267
1270
|
_: 3
|
|
1268
1271
|
}),
|
|
@@ -1271,7 +1274,7 @@ function io(e, t) {
|
|
|
1271
1274
|
style: { margin: "0 10px" }
|
|
1272
1275
|
}, {
|
|
1273
1276
|
default: r(() => [
|
|
1274
|
-
|
|
1277
|
+
te(e.$slots, "main", {}, void 0, !0)
|
|
1275
1278
|
]),
|
|
1276
1279
|
_: 3
|
|
1277
1280
|
}),
|
|
@@ -1281,7 +1284,7 @@ function io(e, t) {
|
|
|
1281
1284
|
style: { padding: "20px" }
|
|
1282
1285
|
}, {
|
|
1283
1286
|
default: r(() => [
|
|
1284
|
-
|
|
1287
|
+
te(e.$slots, "right-aside", {}, void 0, !0)
|
|
1285
1288
|
]),
|
|
1286
1289
|
_: 3
|
|
1287
1290
|
})
|
|
@@ -1289,7 +1292,7 @@ function io(e, t) {
|
|
|
1289
1292
|
_: 3
|
|
1290
1293
|
});
|
|
1291
1294
|
}
|
|
1292
|
-
const
|
|
1295
|
+
const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b"]]), vn = {
|
|
1293
1296
|
type: "input",
|
|
1294
1297
|
name: "\u6587\u672C\u6846",
|
|
1295
1298
|
default: {
|
|
@@ -1357,7 +1360,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1357
1360
|
}
|
|
1358
1361
|
}
|
|
1359
1362
|
]
|
|
1360
|
-
},
|
|
1363
|
+
}, gn = {
|
|
1361
1364
|
type: "number",
|
|
1362
1365
|
name: "\u6570\u5B57",
|
|
1363
1366
|
default: {
|
|
@@ -1399,7 +1402,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1399
1402
|
}
|
|
1400
1403
|
}
|
|
1401
1404
|
]
|
|
1402
|
-
},
|
|
1405
|
+
}, kn = {
|
|
1403
1406
|
type: "number-range",
|
|
1404
1407
|
name: "\u6570\u5B57\u533A\u95F4",
|
|
1405
1408
|
default: {
|
|
@@ -1440,7 +1443,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1440
1443
|
}
|
|
1441
1444
|
}
|
|
1442
1445
|
]
|
|
1443
|
-
},
|
|
1446
|
+
}, En = {
|
|
1444
1447
|
type: "select",
|
|
1445
1448
|
name: "\u4E0B\u62C9\u6846",
|
|
1446
1449
|
default: {
|
|
@@ -1546,7 +1549,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1546
1549
|
const t = y(e);
|
|
1547
1550
|
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
1551
|
}
|
|
1549
|
-
},
|
|
1552
|
+
}, wn = {
|
|
1550
1553
|
type: "radio",
|
|
1551
1554
|
name: "\u5355\u9009\u6846",
|
|
1552
1555
|
default: {
|
|
@@ -1592,7 +1595,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1592
1595
|
label: "\u9ED8\u8BA4\u503C"
|
|
1593
1596
|
}
|
|
1594
1597
|
]
|
|
1595
|
-
},
|
|
1598
|
+
}, Sn = {
|
|
1596
1599
|
type: "switch",
|
|
1597
1600
|
name: "\u5F00\u5173",
|
|
1598
1601
|
default: {
|
|
@@ -1648,7 +1651,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1648
1651
|
}
|
|
1649
1652
|
}
|
|
1650
1653
|
]
|
|
1651
|
-
},
|
|
1654
|
+
}, Cn = {
|
|
1652
1655
|
type: "code",
|
|
1653
1656
|
name: "Code",
|
|
1654
1657
|
default: {
|
|
@@ -1668,7 +1671,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1668
1671
|
label: "\u5B57\u6BB5key"
|
|
1669
1672
|
}
|
|
1670
1673
|
]
|
|
1671
|
-
},
|
|
1674
|
+
}, xn = {
|
|
1672
1675
|
type: "json",
|
|
1673
1676
|
name: "json",
|
|
1674
1677
|
default: {
|
|
@@ -1688,7 +1691,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1688
1691
|
label: "\u5B57\u6BB5key"
|
|
1689
1692
|
}
|
|
1690
1693
|
]
|
|
1691
|
-
},
|
|
1694
|
+
}, Bn = {
|
|
1692
1695
|
type: "upload",
|
|
1693
1696
|
name: "\u4E0A\u4F20",
|
|
1694
1697
|
default: {
|
|
@@ -1708,7 +1711,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1708
1711
|
label: "\u5B57\u6BB5key"
|
|
1709
1712
|
}
|
|
1710
1713
|
]
|
|
1711
|
-
},
|
|
1714
|
+
}, In = {
|
|
1712
1715
|
type: "template",
|
|
1713
1716
|
name: "\u81EA\u5B9A\u4E49\u7EC4\u4EF6",
|
|
1714
1717
|
default: {
|
|
@@ -1728,7 +1731,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1728
1731
|
label: "\u5B57\u6BB5key"
|
|
1729
1732
|
}
|
|
1730
1733
|
]
|
|
1731
|
-
},
|
|
1734
|
+
}, An = {
|
|
1732
1735
|
type: "icon-select",
|
|
1733
1736
|
name: "\u56FE\u6807\u9009\u62E9\u5668",
|
|
1734
1737
|
default: {
|
|
@@ -1748,7 +1751,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1748
1751
|
label: "\u5B57\u6BB5key"
|
|
1749
1752
|
}
|
|
1750
1753
|
]
|
|
1751
|
-
},
|
|
1754
|
+
}, $n = {
|
|
1752
1755
|
type: "sub-form",
|
|
1753
1756
|
name: "\u5B50\u8868\u5355",
|
|
1754
1757
|
default: {
|
|
@@ -1816,7 +1819,7 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1816
1819
|
}
|
|
1817
1820
|
}
|
|
1818
1821
|
]
|
|
1819
|
-
},
|
|
1822
|
+
}, Tn = {
|
|
1820
1823
|
type: "checkbox",
|
|
1821
1824
|
name: "\u590D\u9009\u6846",
|
|
1822
1825
|
default: {
|
|
@@ -1862,24 +1865,24 @@ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b
|
|
|
1862
1865
|
}
|
|
1863
1866
|
}
|
|
1864
1867
|
]
|
|
1865
|
-
},
|
|
1866
|
-
function
|
|
1867
|
-
|
|
1868
|
+
}, mt = {};
|
|
1869
|
+
function O(e) {
|
|
1870
|
+
mt[e.type] = e;
|
|
1868
1871
|
}
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
const
|
|
1872
|
+
O(vn);
|
|
1873
|
+
O(En);
|
|
1874
|
+
O(gn);
|
|
1875
|
+
O(kn);
|
|
1876
|
+
O(Sn);
|
|
1877
|
+
O($n);
|
|
1878
|
+
O(wn);
|
|
1879
|
+
O(Tn);
|
|
1880
|
+
O(Cn);
|
|
1881
|
+
O(xn);
|
|
1882
|
+
O(Bn);
|
|
1883
|
+
O(An);
|
|
1884
|
+
O(In);
|
|
1885
|
+
const we = mt, Fn = {
|
|
1883
1886
|
options: {
|
|
1884
1887
|
labelPosition: "top",
|
|
1885
1888
|
submitButton: !1,
|
|
@@ -1982,11 +1985,11 @@ const be = {
|
|
|
1982
1985
|
labelPosition: "top",
|
|
1983
1986
|
submitButton: !1,
|
|
1984
1987
|
cancelButton: !1
|
|
1985
|
-
},
|
|
1986
|
-
Object.keys(
|
|
1987
|
-
|
|
1988
|
+
}, Me = [];
|
|
1989
|
+
Object.keys(we).forEach((e) => {
|
|
1990
|
+
Me.push({ value: e, label: we[e].name });
|
|
1988
1991
|
});
|
|
1989
|
-
const
|
|
1992
|
+
const On = {
|
|
1990
1993
|
options: {
|
|
1991
1994
|
submitButton: !1,
|
|
1992
1995
|
cancelButton: !1
|
|
@@ -2007,7 +2010,7 @@ const wo = {
|
|
|
2007
2010
|
type: "select",
|
|
2008
2011
|
field: "type",
|
|
2009
2012
|
label: "\u7C7B\u578B",
|
|
2010
|
-
options: y(
|
|
2013
|
+
options: y(Me)
|
|
2011
2014
|
},
|
|
2012
2015
|
{
|
|
2013
2016
|
type: "input",
|
|
@@ -2018,8 +2021,8 @@ const wo = {
|
|
|
2018
2021
|
}
|
|
2019
2022
|
}
|
|
2020
2023
|
]
|
|
2021
|
-
},
|
|
2022
|
-
components: { DevLayout:
|
|
2024
|
+
}, Dn = {
|
|
2025
|
+
components: { DevLayout: dt, VForm: J, VButton: Oe, JsonView: De },
|
|
2023
2026
|
props: {
|
|
2024
2027
|
schema: {
|
|
2025
2028
|
type: Object,
|
|
@@ -2030,8 +2033,8 @@ const wo = {
|
|
|
2030
2033
|
data() {
|
|
2031
2034
|
return {
|
|
2032
2035
|
sqlOptions: {},
|
|
2033
|
-
sqlSchema:
|
|
2034
|
-
baseSchema:
|
|
2036
|
+
sqlSchema: On,
|
|
2037
|
+
baseSchema: Fn,
|
|
2035
2038
|
activeTab: "base",
|
|
2036
2039
|
builderSchema: Object.assign(
|
|
2037
2040
|
{},
|
|
@@ -2051,12 +2054,12 @@ const wo = {
|
|
|
2051
2054
|
ctrlSchema: {},
|
|
2052
2055
|
ctrlName: "",
|
|
2053
2056
|
activeIndex: void 0,
|
|
2054
|
-
ctrlMap:
|
|
2057
|
+
ctrlMap: we,
|
|
2055
2058
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
2056
2059
|
tableStruct: "",
|
|
2057
2060
|
activeName: "1",
|
|
2058
2061
|
currentCtrlType: "input",
|
|
2059
|
-
types: y(
|
|
2062
|
+
types: y(Me)
|
|
2060
2063
|
};
|
|
2061
2064
|
},
|
|
2062
2065
|
computed: {
|
|
@@ -2072,20 +2075,20 @@ const wo = {
|
|
|
2072
2075
|
immediate: !0,
|
|
2073
2076
|
handler(e) {
|
|
2074
2077
|
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 =
|
|
2078
|
+
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
2079
|
}
|
|
2077
2080
|
},
|
|
2078
2081
|
ctrlOptions: {
|
|
2079
2082
|
deep: !0,
|
|
2080
2083
|
handler(e) {
|
|
2081
|
-
const t =
|
|
2084
|
+
const t = le(this.builderSchema, this.activeIndex);
|
|
2082
2085
|
if (!t)
|
|
2083
2086
|
return;
|
|
2084
2087
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2085
2088
|
if (o && Object.keys(o).length > 0) {
|
|
2086
2089
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2087
|
-
const [
|
|
2088
|
-
this.builderSchema[
|
|
2090
|
+
const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2091
|
+
this.builderSchema[a][u] = { ...o };
|
|
2089
2092
|
} else
|
|
2090
2093
|
this.builderSchema[this.activeIndex] = o;
|
|
2091
2094
|
this.key++;
|
|
@@ -2099,22 +2102,22 @@ const wo = {
|
|
|
2099
2102
|
options: y(be),
|
|
2100
2103
|
formItems: y(t.builder)
|
|
2101
2104
|
});
|
|
2102
|
-
const l =
|
|
2105
|
+
const l = le(this.builderSchema, this.activeIndex);
|
|
2103
2106
|
this.ctrlOptions = y(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
2104
2107
|
}
|
|
2105
2108
|
}
|
|
2106
2109
|
},
|
|
2107
2110
|
beforeCreate() {
|
|
2108
|
-
|
|
2111
|
+
z.on("dev-action", ({ event: e, data: t }) => {
|
|
2109
2112
|
this.onDevAction(t.type, t.devId);
|
|
2110
2113
|
});
|
|
2111
2114
|
},
|
|
2112
2115
|
unmounted() {
|
|
2113
|
-
|
|
2116
|
+
z.off("dev-action");
|
|
2114
2117
|
},
|
|
2115
2118
|
methods: {
|
|
2116
2119
|
onDevAction(e, t) {
|
|
2117
|
-
|
|
2120
|
+
this.activeIndex = "formItems" + t, e === "edit" && (this.activeTab = "ctrl", this.clicklabel()), e === "del" && (this.activeTab = "base", this.removeOne()), this.ctrlKey++;
|
|
2118
2121
|
},
|
|
2119
2122
|
push(e) {
|
|
2120
2123
|
const t = "formItems";
|
|
@@ -2126,12 +2129,12 @@ const wo = {
|
|
|
2126
2129
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2127
2130
|
},
|
|
2128
2131
|
removeOne() {
|
|
2129
|
-
|
|
2132
|
+
st(this.builderSchema, this.activeIndex), this.builderSchema = y(lt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2130
2133
|
},
|
|
2131
2134
|
clicklabel() {
|
|
2132
2135
|
const e = this.activeIndex;
|
|
2133
2136
|
if (e.match(this.activeIndexReg)) {
|
|
2134
|
-
const l = y(
|
|
2137
|
+
const l = y(le(this.builderSchema, e)), n = l.type, o = this.ctrlMap[n];
|
|
2135
2138
|
if (!o) {
|
|
2136
2139
|
this.$message({ type: "warning", message: "\u5C1A\u672A\u652F\u6301\u8BE5\u7EC4\u4EF6\u7684UI\u7F16\u8F91" });
|
|
2137
2140
|
return;
|
|
@@ -2153,19 +2156,19 @@ const wo = {
|
|
|
2153
2156
|
}
|
|
2154
2157
|
}
|
|
2155
2158
|
};
|
|
2156
|
-
function
|
|
2157
|
-
const
|
|
2159
|
+
function Pn(e, t, l, n, o, s) {
|
|
2160
|
+
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
2161
|
return i(), m(q, null, {
|
|
2159
2162
|
main: r(() => [
|
|
2160
|
-
o.builderSchema.formItems ? (i(), m(
|
|
2163
|
+
o.builderSchema.formItems ? (i(), m(a, U({
|
|
2161
2164
|
ref: "form",
|
|
2162
2165
|
key: o.key,
|
|
2163
2166
|
dev: !0
|
|
2164
|
-
}, o.builderSchema), null, 16)) :
|
|
2167
|
+
}, o.builderSchema), null, 16)) : w("", !0),
|
|
2165
2168
|
c(u),
|
|
2166
2169
|
c(p, {
|
|
2167
2170
|
type: "primary",
|
|
2168
|
-
onClick:
|
|
2171
|
+
onClick: s.saveSchema
|
|
2169
2172
|
}, {
|
|
2170
2173
|
default: r(() => [
|
|
2171
2174
|
g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
|
|
@@ -2173,12 +2176,12 @@ function Co(e, t, l, n, o, a) {
|
|
|
2173
2176
|
_: 1
|
|
2174
2177
|
}, 8, ["onClick"]),
|
|
2175
2178
|
g(" \xA0\xA0 "),
|
|
2176
|
-
c(
|
|
2179
|
+
c(f, {
|
|
2177
2180
|
text: "PageSchema",
|
|
2178
2181
|
type: "modal"
|
|
2179
2182
|
}, {
|
|
2180
2183
|
default: r(() => [
|
|
2181
|
-
c(d, { data:
|
|
2184
|
+
c(d, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
2182
2185
|
]),
|
|
2183
2186
|
_: 1
|
|
2184
2187
|
})
|
|
@@ -2190,13 +2193,13 @@ function Co(e, t, l, n, o, a) {
|
|
|
2190
2193
|
default: r(() => [
|
|
2191
2194
|
c(T, {
|
|
2192
2195
|
modelValue: o.currentCtrlType,
|
|
2193
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2196
|
+
"onUpdate:modelValue": t[0] || (t[0] = (B) => o.currentCtrlType = B)
|
|
2194
2197
|
}, {
|
|
2195
2198
|
default: r(() => [
|
|
2196
|
-
(i(!0),
|
|
2197
|
-
key:
|
|
2198
|
-
label:
|
|
2199
|
-
value:
|
|
2199
|
+
(i(!0), h(E, null, A(o.types, (B, W) => (i(), m(_, {
|
|
2200
|
+
key: W,
|
|
2201
|
+
label: B.label,
|
|
2202
|
+
value: B.value
|
|
2200
2203
|
}, null, 8, ["label", "value"]))), 128))
|
|
2201
2204
|
]),
|
|
2202
2205
|
_: 1
|
|
@@ -2206,17 +2209,17 @@ function Co(e, t, l, n, o, a) {
|
|
|
2206
2209
|
})
|
|
2207
2210
|
]),
|
|
2208
2211
|
_: 1
|
|
2209
|
-
})) :
|
|
2210
|
-
(i(), m(
|
|
2212
|
+
})) : w("", !0),
|
|
2213
|
+
(i(), m(a, U({
|
|
2211
2214
|
key: o.ctrlKey,
|
|
2212
2215
|
modelValue: o.ctrlOptions,
|
|
2213
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2216
|
+
"onUpdate:modelValue": t[1] || (t[1] = (B) => o.ctrlOptions = B)
|
|
2214
2217
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
2215
2218
|
]),
|
|
2216
2219
|
_: 1
|
|
2217
2220
|
});
|
|
2218
2221
|
}
|
|
2219
|
-
const
|
|
2222
|
+
const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171"]]), Ln = {
|
|
2220
2223
|
type: "input",
|
|
2221
2224
|
name: "\u6587\u672C\u6846",
|
|
2222
2225
|
default: {
|
|
@@ -2264,7 +2267,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2264
2267
|
}
|
|
2265
2268
|
}
|
|
2266
2269
|
]
|
|
2267
|
-
},
|
|
2270
|
+
}, Mn = {
|
|
2268
2271
|
type: "select",
|
|
2269
2272
|
name: "\u4E0B\u62C9\u6846",
|
|
2270
2273
|
default: {
|
|
@@ -2365,7 +2368,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2365
2368
|
const t = y(e);
|
|
2366
2369
|
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
2370
|
}
|
|
2368
|
-
},
|
|
2371
|
+
}, jn = {
|
|
2369
2372
|
type: "date",
|
|
2370
2373
|
name: "\u65E5\u671F",
|
|
2371
2374
|
default: {
|
|
@@ -2385,7 +2388,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2385
2388
|
label: "\u5B57\u6BB5key"
|
|
2386
2389
|
}
|
|
2387
2390
|
]
|
|
2388
|
-
},
|
|
2391
|
+
}, Ge = {
|
|
2389
2392
|
options: {
|
|
2390
2393
|
labelPosition: "top",
|
|
2391
2394
|
submitButton: !1,
|
|
@@ -2414,7 +2417,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2414
2417
|
labelPosition: "top",
|
|
2415
2418
|
submitButton: !1,
|
|
2416
2419
|
cancelButton: !1
|
|
2417
|
-
},
|
|
2420
|
+
}, Nn = {
|
|
2418
2421
|
type: "span",
|
|
2419
2422
|
name: "\u6587\u672C",
|
|
2420
2423
|
default: {
|
|
@@ -2444,7 +2447,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2444
2447
|
label: "\u6392\u5E8F"
|
|
2445
2448
|
}
|
|
2446
2449
|
]
|
|
2447
|
-
},
|
|
2450
|
+
}, Vn = {
|
|
2448
2451
|
type: "enum",
|
|
2449
2452
|
name: "\u6807\u7B7E",
|
|
2450
2453
|
default: {
|
|
@@ -2495,7 +2498,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2495
2498
|
trans(e) {
|
|
2496
2499
|
return e.options = e.options || [], e.label || (e.label = "\u8868\u5934"), e;
|
|
2497
2500
|
}
|
|
2498
|
-
},
|
|
2501
|
+
}, qn = {
|
|
2499
2502
|
type: "html",
|
|
2500
2503
|
name: "HTML",
|
|
2501
2504
|
default: {
|
|
@@ -2520,7 +2523,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2520
2523
|
label: "\u63D0\u793A"
|
|
2521
2524
|
}
|
|
2522
2525
|
]
|
|
2523
|
-
},
|
|
2526
|
+
}, Un = {
|
|
2524
2527
|
type: "icon",
|
|
2525
2528
|
name: "\u56FE\u6807",
|
|
2526
2529
|
default: {
|
|
@@ -2545,7 +2548,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2545
2548
|
label: "\u63D0\u793A"
|
|
2546
2549
|
}
|
|
2547
2550
|
]
|
|
2548
|
-
},
|
|
2551
|
+
}, Hn = {
|
|
2549
2552
|
type: "image",
|
|
2550
2553
|
name: "\u56FE\u7247",
|
|
2551
2554
|
default: {
|
|
@@ -2570,7 +2573,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2570
2573
|
label: "\u63D0\u793A"
|
|
2571
2574
|
}
|
|
2572
2575
|
]
|
|
2573
|
-
},
|
|
2576
|
+
}, Gn = {
|
|
2574
2577
|
type: "json",
|
|
2575
2578
|
name: "JSON",
|
|
2576
2579
|
default: {
|
|
@@ -2595,7 +2598,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2595
2598
|
label: "\u63D0\u793A"
|
|
2596
2599
|
}
|
|
2597
2600
|
]
|
|
2598
|
-
},
|
|
2601
|
+
}, Jn = {
|
|
2599
2602
|
type: "link",
|
|
2600
2603
|
name: "\u94FE\u63A5",
|
|
2601
2604
|
default: {
|
|
@@ -2620,7 +2623,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2620
2623
|
label: "\u63D0\u793A"
|
|
2621
2624
|
}
|
|
2622
2625
|
]
|
|
2623
|
-
},
|
|
2626
|
+
}, zn = {
|
|
2624
2627
|
type: "rich",
|
|
2625
2628
|
name: "\u5BCC\u6587\u672C",
|
|
2626
2629
|
default: {
|
|
@@ -2645,7 +2648,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2645
2648
|
label: "\u63D0\u793A"
|
|
2646
2649
|
}
|
|
2647
2650
|
]
|
|
2648
|
-
},
|
|
2651
|
+
}, Kn = {
|
|
2649
2652
|
type: "tpl",
|
|
2650
2653
|
name: "\u6A21\u677F",
|
|
2651
2654
|
default: {
|
|
@@ -2676,17 +2679,17 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2676
2679
|
info: "\u4F8B\u5982 <code>\u59D3\u540D: {name} \u5E74\u9F84:{age}</code>"
|
|
2677
2680
|
}
|
|
2678
2681
|
]
|
|
2679
|
-
},
|
|
2680
|
-
span:
|
|
2681
|
-
enum:
|
|
2682
|
-
html:
|
|
2683
|
-
icon:
|
|
2684
|
-
image:
|
|
2685
|
-
json:
|
|
2686
|
-
link:
|
|
2687
|
-
rich:
|
|
2688
|
-
tpl:
|
|
2689
|
-
},
|
|
2682
|
+
}, Wn = {
|
|
2683
|
+
span: Nn,
|
|
2684
|
+
enum: Vn,
|
|
2685
|
+
html: qn,
|
|
2686
|
+
icon: Un,
|
|
2687
|
+
image: Hn,
|
|
2688
|
+
json: Gn,
|
|
2689
|
+
link: Jn,
|
|
2690
|
+
rich: zn,
|
|
2691
|
+
tpl: Kn
|
|
2692
|
+
}, Zn = {
|
|
2690
2693
|
type: "jump",
|
|
2691
2694
|
name: "\u8DF3\u8F6C",
|
|
2692
2695
|
default: {
|
|
@@ -2733,7 +2736,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2733
2736
|
}
|
|
2734
2737
|
}
|
|
2735
2738
|
]
|
|
2736
|
-
},
|
|
2739
|
+
}, Qn = {
|
|
2737
2740
|
type: "api",
|
|
2738
2741
|
name: "\u63A5\u53E3\u8BF7\u6C42",
|
|
2739
2742
|
default: {
|
|
@@ -2802,7 +2805,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2802
2805
|
}
|
|
2803
2806
|
}
|
|
2804
2807
|
]
|
|
2805
|
-
},
|
|
2808
|
+
}, Xn = {
|
|
2806
2809
|
type: "form",
|
|
2807
2810
|
name: "\u5F39\u6846\u8868\u5355",
|
|
2808
2811
|
default: {
|
|
@@ -2856,7 +2859,7 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2856
2859
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2857
2860
|
}
|
|
2858
2861
|
]
|
|
2859
|
-
},
|
|
2862
|
+
}, Yn = {
|
|
2860
2863
|
type: "table",
|
|
2861
2864
|
name: "\u5F39\u6846\u5217\u8868",
|
|
2862
2865
|
default: {
|
|
@@ -2910,14 +2913,14 @@ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06
|
|
|
2910
2913
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2911
2914
|
}
|
|
2912
2915
|
]
|
|
2913
|
-
},
|
|
2914
|
-
jump:
|
|
2915
|
-
api:
|
|
2916
|
-
form:
|
|
2917
|
-
table:
|
|
2916
|
+
}, eo = {
|
|
2917
|
+
jump: Zn,
|
|
2918
|
+
api: Qn,
|
|
2919
|
+
form: Xn,
|
|
2920
|
+
table: Yn
|
|
2918
2921
|
};
|
|
2919
|
-
const
|
|
2920
|
-
components: { JsonView: De, DevLayout:
|
|
2922
|
+
const to = {
|
|
2923
|
+
components: { JsonView: De, DevLayout: dt, VTable: ne, VForm: J, VButton: Oe },
|
|
2921
2924
|
props: {
|
|
2922
2925
|
schema: {
|
|
2923
2926
|
type: Object,
|
|
@@ -2926,13 +2929,13 @@ const Go = {
|
|
|
2926
2929
|
}
|
|
2927
2930
|
},
|
|
2928
2931
|
data() {
|
|
2929
|
-
const e =
|
|
2932
|
+
const e = At(this.$props.schema);
|
|
2930
2933
|
return delete e.listApi, e.list = [{}], {
|
|
2931
|
-
baseSchema:
|
|
2934
|
+
baseSchema: Ge,
|
|
2932
2935
|
activeTab: "base",
|
|
2933
2936
|
builderSchema: Object.assign(
|
|
2934
2937
|
{},
|
|
2935
|
-
|
|
2938
|
+
Ge,
|
|
2936
2939
|
e
|
|
2937
2940
|
),
|
|
2938
2941
|
baseOptions: {},
|
|
@@ -2945,9 +2948,9 @@ const Go = {
|
|
|
2945
2948
|
ctrlName: "",
|
|
2946
2949
|
activeIndex: void 0,
|
|
2947
2950
|
ctrlMap: {
|
|
2948
|
-
filter: { input:
|
|
2949
|
-
headers:
|
|
2950
|
-
buttons:
|
|
2951
|
+
filter: { input: Ln, select: Mn, date: jn },
|
|
2952
|
+
headers: Wn,
|
|
2953
|
+
buttons: eo
|
|
2951
2954
|
},
|
|
2952
2955
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2953
2956
|
currentCtrlType: "input"
|
|
@@ -2978,7 +2981,7 @@ const Go = {
|
|
|
2978
2981
|
deep: !0,
|
|
2979
2982
|
immediate: !0,
|
|
2980
2983
|
handler(e) {
|
|
2981
|
-
this.builderSchema =
|
|
2984
|
+
this.builderSchema = F(this.builderSchema, e), this.key++, this.updateBuilderSchema();
|
|
2982
2985
|
}
|
|
2983
2986
|
},
|
|
2984
2987
|
ctrlOptions: {
|
|
@@ -2995,8 +2998,8 @@ const Go = {
|
|
|
2995
2998
|
const o = n.trans ? n.trans(e) : e;
|
|
2996
2999
|
if (o && Object.keys(o).length > 0) {
|
|
2997
3000
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2998
|
-
const [
|
|
2999
|
-
this.builderSchema[
|
|
3001
|
+
const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
3002
|
+
this.builderSchema[a][u] = { ...o };
|
|
3000
3003
|
} else
|
|
3001
3004
|
this.builderSchema[this.activeIndex] = o;
|
|
3002
3005
|
this.key++;
|
|
@@ -3011,7 +3014,7 @@ const Go = {
|
|
|
3011
3014
|
options: y(_e),
|
|
3012
3015
|
formItems: y(t.builder)
|
|
3013
3016
|
});
|
|
3014
|
-
const l =
|
|
3017
|
+
const l = le(this.builderSchema, this.activeIndex);
|
|
3015
3018
|
l.type = e;
|
|
3016
3019
|
const n = y(l);
|
|
3017
3020
|
this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
@@ -3019,12 +3022,12 @@ const Go = {
|
|
|
3019
3022
|
}
|
|
3020
3023
|
},
|
|
3021
3024
|
beforeCreate() {
|
|
3022
|
-
|
|
3025
|
+
z.on("dev-action", ({ event: e, data: t }) => {
|
|
3023
3026
|
this.onDevAction(t.type, t.devId);
|
|
3024
3027
|
});
|
|
3025
3028
|
},
|
|
3026
3029
|
unmounted() {
|
|
3027
|
-
|
|
3030
|
+
z.off("dev-action");
|
|
3028
3031
|
},
|
|
3029
3032
|
methods: {
|
|
3030
3033
|
updateBuilderSchema() {
|
|
@@ -3060,13 +3063,13 @@ const Go = {
|
|
|
3060
3063
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3061
3064
|
},
|
|
3062
3065
|
removeOne() {
|
|
3063
|
-
|
|
3066
|
+
st(this.builderSchema, this.activeIndex), this.builderSchema = y(lt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3064
3067
|
},
|
|
3065
3068
|
clicklabel() {
|
|
3066
3069
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
3067
3070
|
if (t) {
|
|
3068
|
-
const l = y(
|
|
3069
|
-
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons")
|
|
3071
|
+
const l = y(le(this.builderSchema, e));
|
|
3072
|
+
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
|
|
3070
3073
|
let n = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
3071
3074
|
t[1] === "headers" && n === void 0 && (n = "span");
|
|
3072
3075
|
const o = this.ctrlMap[this.activeBrick][n];
|
|
@@ -3092,21 +3095,21 @@ const Go = {
|
|
|
3092
3095
|
normalButton: n,
|
|
3093
3096
|
batchButton: o
|
|
3094
3097
|
}
|
|
3095
|
-
}).then(({ data:
|
|
3096
|
-
|
|
3098
|
+
}).then(({ data: s }) => {
|
|
3099
|
+
s && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
|
|
3097
3100
|
});
|
|
3098
3101
|
}
|
|
3099
3102
|
}
|
|
3100
3103
|
};
|
|
3101
|
-
function
|
|
3102
|
-
const
|
|
3103
|
-
return i(), m(
|
|
3104
|
+
function lo(e, t, l, n, o, s) {
|
|
3105
|
+
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");
|
|
3106
|
+
return i(), m(St, null, {
|
|
3104
3107
|
"left-aside": r(() => [
|
|
3105
3108
|
c(p, { style: { width: "200px" } }, {
|
|
3106
3109
|
default: r(() => [
|
|
3107
3110
|
c(p, null, {
|
|
3108
3111
|
default: r(() => [
|
|
3109
|
-
c(
|
|
3112
|
+
c(a, {
|
|
3110
3113
|
class: "title",
|
|
3111
3114
|
"data-id": 22222
|
|
3112
3115
|
}, {
|
|
@@ -3115,11 +3118,11 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3115
3118
|
]),
|
|
3116
3119
|
_: 1
|
|
3117
3120
|
}),
|
|
3118
|
-
c(
|
|
3121
|
+
c(a, { class: "ctrl" }, {
|
|
3119
3122
|
default: r(() => [
|
|
3120
3123
|
c(u, {
|
|
3121
3124
|
class: "ctrl-btn",
|
|
3122
|
-
onClick: t[0] || (t[0] = (C) =>
|
|
3125
|
+
onClick: t[0] || (t[0] = (C) => s.pushFilter("input"))
|
|
3123
3126
|
}, {
|
|
3124
3127
|
default: r(() => [
|
|
3125
3128
|
g("\u6587\u672C\u6846")
|
|
@@ -3129,11 +3132,11 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3129
3132
|
]),
|
|
3130
3133
|
_: 1
|
|
3131
3134
|
}),
|
|
3132
|
-
c(
|
|
3135
|
+
c(a, { class: "ctrl" }, {
|
|
3133
3136
|
default: r(() => [
|
|
3134
3137
|
c(u, {
|
|
3135
3138
|
class: "ctrl-btn",
|
|
3136
|
-
onClick: t[1] || (t[1] = (C) =>
|
|
3139
|
+
onClick: t[1] || (t[1] = (C) => s.pushFilter("select"))
|
|
3137
3140
|
}, {
|
|
3138
3141
|
default: r(() => [
|
|
3139
3142
|
g("\u4E0B\u62C9\u6846")
|
|
@@ -3143,11 +3146,11 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3143
3146
|
]),
|
|
3144
3147
|
_: 1
|
|
3145
3148
|
}),
|
|
3146
|
-
c(
|
|
3149
|
+
c(a, { class: "ctrl" }, {
|
|
3147
3150
|
default: r(() => [
|
|
3148
3151
|
c(u, {
|
|
3149
3152
|
class: "ctrl-btn",
|
|
3150
|
-
onClick: t[2] || (t[2] = (C) =>
|
|
3153
|
+
onClick: t[2] || (t[2] = (C) => s.pushFilter("date"))
|
|
3151
3154
|
}, {
|
|
3152
3155
|
default: r(() => [
|
|
3153
3156
|
g("\u65E5\u671F")
|
|
@@ -3162,20 +3165,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3162
3165
|
}),
|
|
3163
3166
|
c(p, null, {
|
|
3164
3167
|
default: r(() => [
|
|
3165
|
-
c(
|
|
3168
|
+
c(a, { class: "title" }, {
|
|
3166
3169
|
default: r(() => [
|
|
3167
3170
|
g("\u6DFB\u52A0\u5217\u8868\u9879")
|
|
3168
3171
|
]),
|
|
3169
3172
|
_: 1
|
|
3170
3173
|
}),
|
|
3171
|
-
(i(!0),
|
|
3174
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.headers), (C, j) => (i(), m(a, {
|
|
3172
3175
|
key: `column-${j}`,
|
|
3173
3176
|
class: "ctrl"
|
|
3174
3177
|
}, {
|
|
3175
3178
|
default: r(() => [
|
|
3176
3179
|
c(u, {
|
|
3177
3180
|
class: "ctrl-btn",
|
|
3178
|
-
onClick: (me) =>
|
|
3181
|
+
onClick: (me) => s.pushHeaders(o.ctrlMap.headers[C].type)
|
|
3179
3182
|
}, {
|
|
3180
3183
|
default: r(() => [
|
|
3181
3184
|
g(I(o.ctrlMap.headers[C].name), 1)
|
|
@@ -3190,20 +3193,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3190
3193
|
}),
|
|
3191
3194
|
c(p, null, {
|
|
3192
3195
|
default: r(() => [
|
|
3193
|
-
c(
|
|
3196
|
+
c(a, { class: "title" }, {
|
|
3194
3197
|
default: r(() => [
|
|
3195
3198
|
g("\u6DFB\u52A0\u884C\u6309\u94AE")
|
|
3196
3199
|
]),
|
|
3197
3200
|
_: 1
|
|
3198
3201
|
}),
|
|
3199
|
-
(i(!0),
|
|
3202
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
|
|
3200
3203
|
key: `column-${j}`,
|
|
3201
3204
|
class: "ctrl"
|
|
3202
3205
|
}, {
|
|
3203
3206
|
default: r(() => [
|
|
3204
3207
|
c(u, {
|
|
3205
3208
|
class: "ctrl-btn",
|
|
3206
|
-
onClick: (me) =>
|
|
3209
|
+
onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[C].type)
|
|
3207
3210
|
}, {
|
|
3208
3211
|
default: r(() => [
|
|
3209
3212
|
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
@@ -3218,20 +3221,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3218
3221
|
}),
|
|
3219
3222
|
c(p, null, {
|
|
3220
3223
|
default: r(() => [
|
|
3221
|
-
c(
|
|
3224
|
+
c(a, { class: "title" }, {
|
|
3222
3225
|
default: r(() => [
|
|
3223
3226
|
g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE")
|
|
3224
3227
|
]),
|
|
3225
3228
|
_: 1
|
|
3226
3229
|
}),
|
|
3227
|
-
(i(!0),
|
|
3230
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
|
|
3228
3231
|
key: `column-${j}`,
|
|
3229
3232
|
class: "ctrl"
|
|
3230
3233
|
}, {
|
|
3231
3234
|
default: r(() => [
|
|
3232
3235
|
c(u, {
|
|
3233
3236
|
class: "ctrl-btn",
|
|
3234
|
-
onClick: (me) =>
|
|
3237
|
+
onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[C].type)
|
|
3235
3238
|
}, {
|
|
3236
3239
|
default: r(() => [
|
|
3237
3240
|
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
@@ -3241,7 +3244,7 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3241
3244
|
]),
|
|
3242
3245
|
_: 2
|
|
3243
3246
|
}, 1024))), 128)),
|
|
3244
|
-
c(
|
|
3247
|
+
c(a, { class: "ctrl" }, {
|
|
3245
3248
|
default: r(() => [
|
|
3246
3249
|
c(u, { class: "ctrl-btn" }, {
|
|
3247
3250
|
default: r(() => [
|
|
@@ -3257,20 +3260,20 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3257
3260
|
}),
|
|
3258
3261
|
c(p, null, {
|
|
3259
3262
|
default: r(() => [
|
|
3260
|
-
c(
|
|
3263
|
+
c(a, { class: "title" }, {
|
|
3261
3264
|
default: r(() => [
|
|
3262
3265
|
g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE")
|
|
3263
3266
|
]),
|
|
3264
3267
|
_: 1
|
|
3265
3268
|
}),
|
|
3266
|
-
(i(!0),
|
|
3269
|
+
(i(!0), h(E, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
|
|
3267
3270
|
key: `column-${j}`,
|
|
3268
3271
|
class: "ctrl"
|
|
3269
3272
|
}, {
|
|
3270
3273
|
default: r(() => [
|
|
3271
3274
|
c(u, {
|
|
3272
3275
|
class: "ctrl-btn",
|
|
3273
|
-
onClick: (me) =>
|
|
3276
|
+
onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[C].type)
|
|
3274
3277
|
}, {
|
|
3275
3278
|
default: r(() => [
|
|
3276
3279
|
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
@@ -3280,7 +3283,7 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3280
3283
|
]),
|
|
3281
3284
|
_: 2
|
|
3282
3285
|
}, 1024))), 128)),
|
|
3283
|
-
c(
|
|
3286
|
+
c(a, { class: "ctrl" }, {
|
|
3284
3287
|
default: r(() => [
|
|
3285
3288
|
c(u, { class: "ctrl-btn" }, {
|
|
3286
3289
|
default: r(() => [
|
|
@@ -3304,10 +3307,10 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3304
3307
|
key: o.key,
|
|
3305
3308
|
dev: !0
|
|
3306
3309
|
}, o.builderSchema), null, 16)),
|
|
3307
|
-
c(
|
|
3310
|
+
c(f),
|
|
3308
3311
|
c(_, {
|
|
3309
3312
|
type: "primary",
|
|
3310
|
-
onClick:
|
|
3313
|
+
onClick: s.saveSchema
|
|
3311
3314
|
}, {
|
|
3312
3315
|
default: r(() => [
|
|
3313
3316
|
g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
|
|
@@ -3320,22 +3323,22 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3320
3323
|
type: "modal"
|
|
3321
3324
|
}, {
|
|
3322
3325
|
default: r(() => [
|
|
3323
|
-
c(T, { data:
|
|
3326
|
+
c(T, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
3324
3327
|
]),
|
|
3325
3328
|
_: 1
|
|
3326
3329
|
})
|
|
3327
3330
|
]),
|
|
3328
3331
|
"right-aside": r(() => [
|
|
3329
|
-
o.activeIndex ? (i(), m(
|
|
3332
|
+
o.activeIndex ? (i(), m(W, { key: 0 }, {
|
|
3330
3333
|
default: r(() => [
|
|
3331
|
-
c(
|
|
3334
|
+
c(B, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
|
|
3332
3335
|
default: r(() => [
|
|
3333
3336
|
c(q, {
|
|
3334
3337
|
modelValue: o.currentCtrlType,
|
|
3335
3338
|
"onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
|
|
3336
3339
|
}, {
|
|
3337
3340
|
default: r(() => [
|
|
3338
|
-
(i(!0),
|
|
3341
|
+
(i(!0), h(E, null, A(s.types, (C, j) => (i(), m(H, {
|
|
3339
3342
|
key: j,
|
|
3340
3343
|
label: C.label,
|
|
3341
3344
|
value: C.value
|
|
@@ -3348,8 +3351,8 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3348
3351
|
})
|
|
3349
3352
|
]),
|
|
3350
3353
|
_: 1
|
|
3351
|
-
})) :
|
|
3352
|
-
(i(), m(
|
|
3354
|
+
})) : w("", !0),
|
|
3355
|
+
(i(), m(wt, U({
|
|
3353
3356
|
key: o.ctrlKey,
|
|
3354
3357
|
modelValue: o.ctrlOptions,
|
|
3355
3358
|
"onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
|
|
@@ -3358,24 +3361,24 @@ function Jo(e, t, l, n, o, a) {
|
|
|
3358
3361
|
_: 1
|
|
3359
3362
|
});
|
|
3360
3363
|
}
|
|
3361
|
-
const
|
|
3364
|
+
const no = /* @__PURE__ */ x(to, [["render", lo], ["__scopeId", "data-v-e5209cb7"]]), oo = {
|
|
3362
3365
|
name: "PageEditor",
|
|
3363
|
-
components: { FormBuilder:
|
|
3366
|
+
components: { FormBuilder: Rn, TableBuilder: no },
|
|
3364
3367
|
setup() {
|
|
3365
|
-
const e =
|
|
3368
|
+
const e = P(!1), t = P(1), l = "rtl", n = pe(), o = N(() => S.state.app.pages[n.path]);
|
|
3366
3369
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3367
3370
|
}
|
|
3368
3371
|
};
|
|
3369
|
-
function
|
|
3370
|
-
const
|
|
3371
|
-
return i(),
|
|
3372
|
-
c(
|
|
3372
|
+
function so(e, t, l, n, o, s) {
|
|
3373
|
+
const a = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d = tt;
|
|
3374
|
+
return i(), h(E, null, [
|
|
3375
|
+
c(a, {
|
|
3373
3376
|
name: "ra-set",
|
|
3374
|
-
onClick: t[0] || (t[0] = (
|
|
3377
|
+
onClick: t[0] || (t[0] = (f) => n.show = !n.show)
|
|
3375
3378
|
}),
|
|
3376
3379
|
c(d, {
|
|
3377
3380
|
modelValue: n.show,
|
|
3378
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3381
|
+
"onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
|
|
3379
3382
|
title: "\u9875\u9762\u8BBE\u8BA1",
|
|
3380
3383
|
"custom-class": "my-drawer",
|
|
3381
3384
|
direction: n.direction,
|
|
@@ -3387,23 +3390,23 @@ function Wo(e, t, l, n, o, a) {
|
|
|
3387
3390
|
n.pageSchema.formItems !== void 0 ? (i(), m(u, {
|
|
3388
3391
|
key: 0,
|
|
3389
3392
|
schema: n.pageSchema
|
|
3390
|
-
}, null, 8, ["schema"])) :
|
|
3393
|
+
}, null, 8, ["schema"])) : w("", !0),
|
|
3391
3394
|
n.pageSchema.headers !== void 0 ? (i(), m(p, {
|
|
3392
3395
|
key: 1,
|
|
3393
3396
|
schema: n.pageSchema
|
|
3394
|
-
}, null, 8, ["schema"])) :
|
|
3397
|
+
}, null, 8, ["schema"])) : w("", !0)
|
|
3395
3398
|
]),
|
|
3396
3399
|
_: 1
|
|
3397
3400
|
}, 8, ["modelValue", "direction"])
|
|
3398
3401
|
], 64);
|
|
3399
3402
|
}
|
|
3400
|
-
const
|
|
3401
|
-
const
|
|
3403
|
+
const ao = /* @__PURE__ */ x(oo, [["render", so]]);
|
|
3404
|
+
const io = {
|
|
3402
3405
|
components: {
|
|
3403
|
-
Breadcrumb:
|
|
3404
|
-
Hamburger:
|
|
3405
|
-
VButton:
|
|
3406
|
-
PageEditor:
|
|
3406
|
+
Breadcrumb: mn,
|
|
3407
|
+
Hamburger: bn,
|
|
3408
|
+
VButton: Oe,
|
|
3409
|
+
PageEditor: ao
|
|
3407
3410
|
},
|
|
3408
3411
|
data() {
|
|
3409
3412
|
return {
|
|
@@ -3416,7 +3419,7 @@ const Qo = {
|
|
|
3416
3419
|
};
|
|
3417
3420
|
},
|
|
3418
3421
|
computed: {
|
|
3419
|
-
...
|
|
3422
|
+
...Fe(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3420
3423
|
hasNewMessage() {
|
|
3421
3424
|
return this.$store.state.settings.hasNewMessage;
|
|
3422
3425
|
},
|
|
@@ -3434,7 +3437,7 @@ const Qo = {
|
|
|
3434
3437
|
}
|
|
3435
3438
|
},
|
|
3436
3439
|
mounted() {
|
|
3437
|
-
|
|
3440
|
+
nt("el-submenu is-active");
|
|
3438
3441
|
const e = this.getSetting("navBarNotice");
|
|
3439
3442
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3440
3443
|
title: "\u63D0\u793A",
|
|
@@ -3442,7 +3445,7 @@ const Qo = {
|
|
|
3442
3445
|
dangerouslyUseHTMLString: !0,
|
|
3443
3446
|
duration: 0,
|
|
3444
3447
|
onClose: this.closeNavBarNotice
|
|
3445
|
-
}), this.setting.envColor[this.user.env] &&
|
|
3448
|
+
}), this.setting.envColor[this.user.env] && al({
|
|
3446
3449
|
elRef: this.$refs.header.$el,
|
|
3447
3450
|
waterMark: this.user.env,
|
|
3448
3451
|
color: "skyblue",
|
|
@@ -3478,27 +3481,27 @@ const Qo = {
|
|
|
3478
3481
|
(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
3482
|
}
|
|
3480
3483
|
}
|
|
3481
|
-
},
|
|
3484
|
+
}, ro = { class: "right-content" }, uo = { class: "right-item" }, co = {
|
|
3482
3485
|
key: 0,
|
|
3483
3486
|
class: "right-item"
|
|
3484
|
-
},
|
|
3487
|
+
}, po = {
|
|
3485
3488
|
class: "right-item-button",
|
|
3486
3489
|
style: { padding: "0" }
|
|
3487
|
-
},
|
|
3488
|
-
function
|
|
3489
|
-
const
|
|
3490
|
-
return i(), m(
|
|
3490
|
+
}, mo = { class: "user-info" }, fo = ["src"], ho = { class: "user-name" };
|
|
3491
|
+
function bo(e, t, l, n, o, s) {
|
|
3492
|
+
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;
|
|
3493
|
+
return i(), m(B, {
|
|
3491
3494
|
ref: "header",
|
|
3492
3495
|
class: "navbar",
|
|
3493
|
-
style:
|
|
3496
|
+
style: $t({ background: s.setting.envColor[s.user.env] })
|
|
3494
3497
|
}, {
|
|
3495
3498
|
default: r(() => [
|
|
3496
3499
|
c(p, { span: 16 }, {
|
|
3497
3500
|
default: r(() => [
|
|
3498
|
-
c(
|
|
3501
|
+
c(a, {
|
|
3499
3502
|
"is-active": e.sidebar.opened,
|
|
3500
3503
|
class: "hamburger-container",
|
|
3501
|
-
onToggleClick:
|
|
3504
|
+
onToggleClick: s.toggleSideBar
|
|
3502
3505
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3503
3506
|
c(u, { class: "breadcrumb-container" })
|
|
3504
3507
|
]),
|
|
@@ -3506,17 +3509,17 @@ function an(e, t, l, n, o, a) {
|
|
|
3506
3509
|
}),
|
|
3507
3510
|
c(p, { span: 8 }, {
|
|
3508
3511
|
default: r(() => [
|
|
3509
|
-
b("div",
|
|
3510
|
-
b("div",
|
|
3512
|
+
b("div", ro, [
|
|
3513
|
+
b("div", uo, [
|
|
3511
3514
|
c(d, {
|
|
3512
3515
|
name: "ra-code",
|
|
3513
|
-
onClick:
|
|
3516
|
+
onClick: s.gotoMenuEdit
|
|
3514
3517
|
}, null, 8, ["onClick"])
|
|
3515
3518
|
]),
|
|
3516
|
-
|
|
3517
|
-
c(
|
|
3518
|
-
])) :
|
|
3519
|
-
b("div",
|
|
3519
|
+
s.showPageJsonSchemaIcon ? (i(), h("div", co, [
|
|
3520
|
+
c(f)
|
|
3521
|
+
])) : w("", !0),
|
|
3522
|
+
b("div", po, [
|
|
3520
3523
|
c(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3521
3524
|
]),
|
|
3522
3525
|
c(H, {
|
|
@@ -3528,7 +3531,7 @@ function an(e, t, l, n, o, a) {
|
|
|
3528
3531
|
default: r(() => [
|
|
3529
3532
|
c(T, {
|
|
3530
3533
|
icon: "oms-icon-index",
|
|
3531
|
-
onClick: t[0] || (t[0] = (
|
|
3534
|
+
onClick: t[0] || (t[0] = (W) => e.$router.push("/"))
|
|
3532
3535
|
}, {
|
|
3533
3536
|
default: r(() => [
|
|
3534
3537
|
g("\u9996\u9875")
|
|
@@ -3538,7 +3541,7 @@ function an(e, t, l, n, o, a) {
|
|
|
3538
3541
|
c(T, {
|
|
3539
3542
|
divided: "",
|
|
3540
3543
|
icon: "el-icon-switch-button",
|
|
3541
|
-
onClick:
|
|
3544
|
+
onClick: s.logout
|
|
3542
3545
|
}, {
|
|
3543
3546
|
default: r(() => [
|
|
3544
3547
|
g("\u9000\u51FA\u767B\u5F55")
|
|
@@ -3550,14 +3553,14 @@ function an(e, t, l, n, o, a) {
|
|
|
3550
3553
|
})
|
|
3551
3554
|
]),
|
|
3552
3555
|
default: r(() => [
|
|
3553
|
-
b("div",
|
|
3556
|
+
b("div", mo, [
|
|
3554
3557
|
b("img", {
|
|
3555
3558
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3556
3559
|
class: "user-avatar",
|
|
3557
3560
|
alt: "\u5934\u50CF"
|
|
3558
|
-
}, null, 8,
|
|
3561
|
+
}, null, 8, fo),
|
|
3559
3562
|
g(),
|
|
3560
|
-
b("span",
|
|
3563
|
+
b("span", ho, I(e.nickname || e.name), 1)
|
|
3561
3564
|
])
|
|
3562
3565
|
]),
|
|
3563
3566
|
_: 1
|
|
@@ -3570,13 +3573,13 @@ function an(e, t, l, n, o, a) {
|
|
|
3570
3573
|
key: 0,
|
|
3571
3574
|
"with-header": !1,
|
|
3572
3575
|
size: "50%"
|
|
3573
|
-
})) :
|
|
3576
|
+
})) : w("", !0)
|
|
3574
3577
|
]),
|
|
3575
3578
|
_: 1
|
|
3576
3579
|
}, 8, ["style"]);
|
|
3577
3580
|
}
|
|
3578
|
-
const
|
|
3579
|
-
const
|
|
3581
|
+
const _o = /* @__PURE__ */ x(io, [["render", bo], ["__scopeId", "data-v-9d0fb088"]]);
|
|
3582
|
+
const yo = {
|
|
3580
3583
|
name: "SidebarLogo",
|
|
3581
3584
|
props: {
|
|
3582
3585
|
collapse: {
|
|
@@ -3592,43 +3595,43 @@ const rn = {
|
|
|
3592
3595
|
return this.$store.state.settings.logo;
|
|
3593
3596
|
}
|
|
3594
3597
|
}
|
|
3595
|
-
},
|
|
3598
|
+
}, vo = (e) => (We("data-v-49084925"), e = e(), Ze(), e), go = ["src"], ko = {
|
|
3596
3599
|
key: 1,
|
|
3597
3600
|
class: "sidebar-title"
|
|
3598
|
-
},
|
|
3599
|
-
function
|
|
3600
|
-
const
|
|
3601
|
-
return i(),
|
|
3601
|
+
}, Eo = /* @__PURE__ */ vo(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), wo = ["src"], So = { class: "sidebar-title" };
|
|
3602
|
+
function Co(e, t, l, n, o, s) {
|
|
3603
|
+
const a = v("router-link");
|
|
3604
|
+
return i(), h("div", {
|
|
3602
3605
|
class: G(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3603
3606
|
}, [
|
|
3604
|
-
c(
|
|
3607
|
+
c(Tt, { name: "sidebarLogoFade" }, {
|
|
3605
3608
|
default: r(() => [
|
|
3606
|
-
l.collapse ? (i(), m(
|
|
3609
|
+
l.collapse ? (i(), m(a, {
|
|
3607
3610
|
key: "collapse",
|
|
3608
3611
|
class: "sidebar-logo-link",
|
|
3609
3612
|
to: "/"
|
|
3610
3613
|
}, {
|
|
3611
3614
|
default: r(() => [
|
|
3612
|
-
|
|
3615
|
+
s.logo ? (i(), h("img", {
|
|
3613
3616
|
key: 0,
|
|
3614
|
-
src:
|
|
3617
|
+
src: s.logo,
|
|
3615
3618
|
class: "sidebar-logo"
|
|
3616
|
-
}, null, 8,
|
|
3617
|
-
|
|
3619
|
+
}, null, 8, go)) : (i(), h("h1", ko, I(s.title), 1)),
|
|
3620
|
+
Eo
|
|
3618
3621
|
]),
|
|
3619
3622
|
_: 1
|
|
3620
|
-
})) : (i(), m(
|
|
3623
|
+
})) : (i(), m(a, {
|
|
3621
3624
|
key: "expand",
|
|
3622
3625
|
class: "sidebar-logo-link",
|
|
3623
3626
|
to: "/"
|
|
3624
3627
|
}, {
|
|
3625
3628
|
default: r(() => [
|
|
3626
|
-
|
|
3629
|
+
s.logo ? (i(), h("img", {
|
|
3627
3630
|
key: 0,
|
|
3628
|
-
src:
|
|
3631
|
+
src: s.logo,
|
|
3629
3632
|
class: "sidebar-logo"
|
|
3630
|
-
}, null, 8,
|
|
3631
|
-
b("h1",
|
|
3633
|
+
}, null, 8, wo)) : w("", !0),
|
|
3634
|
+
b("h1", So, I(s.title), 1)
|
|
3632
3635
|
]),
|
|
3633
3636
|
_: 1
|
|
3634
3637
|
}))
|
|
@@ -3637,7 +3640,7 @@ function hn(e, t, l, n, o, a) {
|
|
|
3637
3640
|
})
|
|
3638
3641
|
], 2);
|
|
3639
3642
|
}
|
|
3640
|
-
const
|
|
3643
|
+
const xo = /* @__PURE__ */ x(yo, [["render", Co], ["__scopeId", "data-v-49084925"]]), Bo = {
|
|
3641
3644
|
props: {
|
|
3642
3645
|
to: {
|
|
3643
3646
|
type: String,
|
|
@@ -3650,10 +3653,10 @@ const bn = /* @__PURE__ */ B(rn, [["render", hn], ["__scopeId", "data-v-49084925
|
|
|
3650
3653
|
},
|
|
3651
3654
|
methods: {
|
|
3652
3655
|
compType(e) {
|
|
3653
|
-
return
|
|
3656
|
+
return Ve(e) || this.newTab ? "a" : "router-link";
|
|
3654
3657
|
},
|
|
3655
3658
|
linkProps(e) {
|
|
3656
|
-
return
|
|
3659
|
+
return Ve(e) ? {
|
|
3657
3660
|
is: "a",
|
|
3658
3661
|
href: e,
|
|
3659
3662
|
target: "_blank",
|
|
@@ -3670,15 +3673,15 @@ const bn = /* @__PURE__ */ B(rn, [["render", hn], ["__scopeId", "data-v-49084925
|
|
|
3670
3673
|
}
|
|
3671
3674
|
}
|
|
3672
3675
|
};
|
|
3673
|
-
function
|
|
3674
|
-
return i(), m(
|
|
3676
|
+
function Io(e, t, l, n, o, s) {
|
|
3677
|
+
return i(), m(Qe(s.compType(l.to)), K(X(s.linkProps(l.to))), {
|
|
3675
3678
|
default: r(() => [
|
|
3676
|
-
|
|
3679
|
+
te(e.$slots, "default")
|
|
3677
3680
|
]),
|
|
3678
3681
|
_: 3
|
|
3679
3682
|
}, 16);
|
|
3680
3683
|
}
|
|
3681
|
-
const
|
|
3684
|
+
const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
|
|
3682
3685
|
computed: {
|
|
3683
3686
|
device() {
|
|
3684
3687
|
return this.$store.state.app.device;
|
|
@@ -3698,7 +3701,7 @@ const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
|
|
|
3698
3701
|
}
|
|
3699
3702
|
}
|
|
3700
3703
|
}
|
|
3701
|
-
},
|
|
3704
|
+
}, To = { class: "menu-content" }, Fo = /* @__PURE__ */ V({
|
|
3702
3705
|
__name: "MenuContent",
|
|
3703
3706
|
props: {
|
|
3704
3707
|
meta: {
|
|
@@ -3712,21 +3715,21 @@ const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
|
|
|
3712
3715
|
setup(e) {
|
|
3713
3716
|
return (t, l) => {
|
|
3714
3717
|
const n = v("VIcon");
|
|
3715
|
-
return i(),
|
|
3718
|
+
return i(), h(E, null, [
|
|
3716
3719
|
c(n, {
|
|
3717
3720
|
name: e.meta.icon || "ra-all"
|
|
3718
3721
|
}, null, 8, ["name"]),
|
|
3719
|
-
b("span",
|
|
3722
|
+
b("span", To, I(e.meta.title), 1)
|
|
3720
3723
|
], 64);
|
|
3721
3724
|
};
|
|
3722
3725
|
}
|
|
3723
|
-
}),
|
|
3726
|
+
}), Oo = {
|
|
3724
3727
|
name: "SidebarItem",
|
|
3725
3728
|
components: {
|
|
3726
|
-
AppLink:
|
|
3727
|
-
MenuContent:
|
|
3729
|
+
AppLink: Ao,
|
|
3730
|
+
MenuContent: Fo
|
|
3728
3731
|
},
|
|
3729
|
-
mixins: [
|
|
3732
|
+
mixins: [$o],
|
|
3730
3733
|
props: {
|
|
3731
3734
|
item: {
|
|
3732
3735
|
type: Object,
|
|
@@ -3746,18 +3749,18 @@ const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
|
|
|
3746
3749
|
try {
|
|
3747
3750
|
return this.$router.resolve(e.redirect ? e.redirect : e).fullPath;
|
|
3748
3751
|
} catch {
|
|
3749
|
-
return console.error("\u8DEF\u7531\u89E3\u6790\u9519\u8BEF"),
|
|
3752
|
+
return console.error("\u8DEF\u7531\u89E3\u6790\u9519\u8BEF"), "/";
|
|
3750
3753
|
}
|
|
3751
3754
|
}
|
|
3752
3755
|
}
|
|
3753
|
-
},
|
|
3756
|
+
}, Do = {
|
|
3754
3757
|
key: 0,
|
|
3755
3758
|
class: "menu-wrapper"
|
|
3756
3759
|
};
|
|
3757
|
-
function
|
|
3758
|
-
const
|
|
3759
|
-
return l.item.hidden !== !1 ? (i(),
|
|
3760
|
-
l.item.meta && l.item.meta.menuType === 2 ? (i(),
|
|
3760
|
+
function Po(e, t, l, n, o, s) {
|
|
3761
|
+
const a = v("menu-content"), u = Kt, p = v("app-link"), d = v("sidebar-item", !0), f = Wt;
|
|
3762
|
+
return l.item.hidden !== !1 ? (i(), h("div", Do, [
|
|
3763
|
+
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
|
|
3761
3764
|
l.item.meta ? (i(), m(p, {
|
|
3762
3765
|
key: 0,
|
|
3763
3766
|
to: l.to,
|
|
@@ -3769,7 +3772,7 @@ function Cn(e, t, l, n, o, a) {
|
|
|
3769
3772
|
class: G({ "submenu-title-noDropdown": !l.isNest })
|
|
3770
3773
|
}, {
|
|
3771
3774
|
default: r(() => [
|
|
3772
|
-
c(
|
|
3775
|
+
c(a, {
|
|
3773
3776
|
meta: l.item.meta
|
|
3774
3777
|
}, null, 8, ["meta"])
|
|
3775
3778
|
]),
|
|
@@ -3777,8 +3780,8 @@ function Cn(e, t, l, n, o, a) {
|
|
|
3777
3780
|
}, 8, ["index", "class"])
|
|
3778
3781
|
]),
|
|
3779
3782
|
_: 1
|
|
3780
|
-
}, 8, ["to", "new-tab"])) :
|
|
3781
|
-
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(
|
|
3783
|
+
}, 8, ["to", "new-tab"])) : w("", !0)
|
|
3784
|
+
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
|
|
3782
3785
|
key: 1,
|
|
3783
3786
|
ref: "subMenu",
|
|
3784
3787
|
index: l.to,
|
|
@@ -3791,49 +3794,49 @@ function Cn(e, t, l, n, o, a) {
|
|
|
3791
3794
|
to: l.to
|
|
3792
3795
|
}, {
|
|
3793
3796
|
default: r(() => [
|
|
3794
|
-
c(
|
|
3797
|
+
c(a, {
|
|
3795
3798
|
meta: l.item.meta
|
|
3796
3799
|
}, null, 8, ["meta"])
|
|
3797
3800
|
]),
|
|
3798
3801
|
_: 1
|
|
3799
|
-
}, 8, ["to"])) : (i(), m(
|
|
3802
|
+
}, 8, ["to"])) : (i(), m(a, {
|
|
3800
3803
|
key: 1,
|
|
3801
3804
|
meta: l.item.meta
|
|
3802
3805
|
}, null, 8, ["meta"]))
|
|
3803
3806
|
]),
|
|
3804
3807
|
default: r(() => [
|
|
3805
|
-
(i(!0),
|
|
3808
|
+
(i(!0), h(E, null, A(l.item.children, (_) => (i(), m(d, {
|
|
3806
3809
|
key: _.path,
|
|
3807
3810
|
"is-nest": !0,
|
|
3808
3811
|
item: _,
|
|
3809
|
-
to:
|
|
3812
|
+
to: s.getTo(_),
|
|
3810
3813
|
class: "nest-menu"
|
|
3811
3814
|
}, null, 8, ["item", "to"]))), 128))
|
|
3812
3815
|
]),
|
|
3813
3816
|
_: 1
|
|
3814
|
-
}, 8, ["index", "class"])) :
|
|
3815
|
-
])) :
|
|
3817
|
+
}, 8, ["index", "class"])) : w("", !0)
|
|
3818
|
+
])) : w("", !0);
|
|
3816
3819
|
}
|
|
3817
|
-
const
|
|
3818
|
-
function
|
|
3820
|
+
const Ro = /* @__PURE__ */ x(Oo, [["render", Po]]);
|
|
3821
|
+
function ft(e) {
|
|
3819
3822
|
return e.filter((t) => {
|
|
3820
3823
|
var l;
|
|
3821
|
-
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children =
|
|
3824
|
+
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
3825
|
});
|
|
3823
3826
|
}
|
|
3824
|
-
const
|
|
3827
|
+
const Lo = {
|
|
3825
3828
|
data() {
|
|
3826
3829
|
return {
|
|
3827
3830
|
selected: ""
|
|
3828
3831
|
};
|
|
3829
3832
|
},
|
|
3830
3833
|
computed: {
|
|
3831
|
-
...
|
|
3834
|
+
...Fe(["remoteRouter"]),
|
|
3832
3835
|
filterRoutes() {
|
|
3833
3836
|
let e = [];
|
|
3834
3837
|
return this.remoteRouter.forEach((t) => {
|
|
3835
3838
|
e = e.concat(y(t.routes));
|
|
3836
|
-
}),
|
|
3839
|
+
}), ft(e);
|
|
3837
3840
|
}
|
|
3838
3841
|
},
|
|
3839
3842
|
methods: {
|
|
@@ -3842,39 +3845,39 @@ const xn = {
|
|
|
3842
3845
|
}
|
|
3843
3846
|
}
|
|
3844
3847
|
};
|
|
3845
|
-
function
|
|
3846
|
-
const
|
|
3848
|
+
function Mo(e, t, l, n, o, s) {
|
|
3849
|
+
const a = xe, u = Zt, p = Be;
|
|
3847
3850
|
return i(), m(p, {
|
|
3848
3851
|
modelValue: o.selected,
|
|
3849
3852
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
3850
3853
|
filterable: "",
|
|
3851
3854
|
placeholder: "\u641C\u7D22\u83DC\u5355...",
|
|
3852
3855
|
class: "search-menu",
|
|
3853
|
-
onChange:
|
|
3856
|
+
onChange: s.onselected
|
|
3854
3857
|
}, {
|
|
3855
3858
|
default: r(() => [
|
|
3856
|
-
(i(!0),
|
|
3859
|
+
(i(!0), h(E, null, A(s.filterRoutes, (d) => (i(), h(E, {
|
|
3857
3860
|
key: d.path
|
|
3858
3861
|
}, [
|
|
3859
|
-
d.children !== void 0 ? (i(),
|
|
3862
|
+
d.children !== void 0 ? (i(), h(E, { key: 0 }, [
|
|
3860
3863
|
d.meta.menuType !== 0 ? (i(), m(u, {
|
|
3861
3864
|
key: d.path + "-",
|
|
3862
3865
|
label: d.meta.title
|
|
3863
3866
|
}, {
|
|
3864
3867
|
default: r(() => [
|
|
3865
|
-
(i(!0),
|
|
3866
|
-
key:
|
|
3868
|
+
(i(!0), h(E, null, A(d.children, (f, _) => (i(), h(E, {
|
|
3869
|
+
key: f.path
|
|
3867
3870
|
}, [
|
|
3868
|
-
d.meta.menuType !== 0 ? (i(), m(
|
|
3871
|
+
d.meta.menuType !== 0 ? (i(), m(a, {
|
|
3869
3872
|
key: 0,
|
|
3870
|
-
label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") +
|
|
3871
|
-
value:
|
|
3872
|
-
}, null, 8, ["label", "value"])) :
|
|
3873
|
+
label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + f.meta.title,
|
|
3874
|
+
value: f.path
|
|
3875
|
+
}, null, 8, ["label", "value"])) : w("", !0)
|
|
3873
3876
|
], 64))), 128))
|
|
3874
3877
|
]),
|
|
3875
3878
|
_: 2
|
|
3876
|
-
}, 1032, ["label"])) :
|
|
3877
|
-
], 64)) : (i(), m(
|
|
3879
|
+
}, 1032, ["label"])) : w("", !0)
|
|
3880
|
+
], 64)) : (i(), m(a, {
|
|
3878
3881
|
key: 1,
|
|
3879
3882
|
label: "" + d.meta.title,
|
|
3880
3883
|
value: d.path
|
|
@@ -3884,23 +3887,17 @@ function In(e, t, l, n, o, a) {
|
|
|
3884
3887
|
_: 1
|
|
3885
3888
|
}, 8, ["modelValue", "onChange"]);
|
|
3886
3889
|
}
|
|
3887
|
-
const
|
|
3888
|
-
var
|
|
3889
|
-
const
|
|
3890
|
-
components: { SidebarItem:
|
|
3890
|
+
const jo = /* @__PURE__ */ x(Lo, [["render", Mo], ["__scopeId", "data-v-811395be"]]);
|
|
3891
|
+
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 || {});
|
|
3892
|
+
const No = V({
|
|
3893
|
+
components: { SidebarItem: Ro, Logo: xo, SearchMenu: jo },
|
|
3891
3894
|
computed: {
|
|
3892
|
-
...
|
|
3895
|
+
...Fe(["sidebar", "remoteRouter", "customRouter"]),
|
|
3893
3896
|
routes() {
|
|
3894
3897
|
let e = [];
|
|
3895
3898
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
3896
3899
|
t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
|
|
3897
|
-
}),
|
|
3898
|
-
{
|
|
3899
|
-
label: "",
|
|
3900
|
-
routes: e
|
|
3901
|
-
},
|
|
3902
|
-
...this.remoteRouter
|
|
3903
|
-
])), y([
|
|
3900
|
+
}), y([
|
|
3904
3901
|
{
|
|
3905
3902
|
label: "",
|
|
3906
3903
|
routes: e
|
|
@@ -3909,10 +3906,9 @@ const $n = V({
|
|
|
3909
3906
|
]);
|
|
3910
3907
|
},
|
|
3911
3908
|
activeMenu() {
|
|
3912
|
-
|
|
3913
|
-
let e = this.$route.matched;
|
|
3909
|
+
const e = this.$route.matched;
|
|
3914
3910
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
3915
|
-
|
|
3911
|
+
const l = e[t];
|
|
3916
3912
|
if (l.meta.menuType == D.menu)
|
|
3917
3913
|
return this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3918
3914
|
}
|
|
@@ -3933,7 +3929,7 @@ const $n = V({
|
|
|
3933
3929
|
}
|
|
3934
3930
|
},
|
|
3935
3931
|
mounted() {
|
|
3936
|
-
|
|
3932
|
+
nt("is-active");
|
|
3937
3933
|
},
|
|
3938
3934
|
methods: {
|
|
3939
3935
|
filterRoute(e) {
|
|
@@ -3941,18 +3937,18 @@ const $n = V({
|
|
|
3941
3937
|
}
|
|
3942
3938
|
}
|
|
3943
3939
|
});
|
|
3944
|
-
function
|
|
3945
|
-
const
|
|
3946
|
-
return i(),
|
|
3940
|
+
function Vo(e, t, l, n, o, s) {
|
|
3941
|
+
const a = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = Qt, f = Xt;
|
|
3942
|
+
return i(), h("div", {
|
|
3947
3943
|
class: G({ "has-logo": e.showLogo })
|
|
3948
3944
|
}, [
|
|
3949
|
-
e.showLogo ? (i(), m(
|
|
3945
|
+
e.showLogo ? (i(), m(a, {
|
|
3950
3946
|
key: 0,
|
|
3951
3947
|
collapse: e.isCollapse
|
|
3952
|
-
}, null, 8, ["collapse"])) :
|
|
3953
|
-
c(
|
|
3948
|
+
}, null, 8, ["collapse"])) : w("", !0),
|
|
3949
|
+
c(f, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3954
3950
|
default: r(() => [
|
|
3955
|
-
e.isCollapse ?
|
|
3951
|
+
e.isCollapse ? w("", !0) : (i(), m(u, { key: 0 })),
|
|
3956
3952
|
c(d, {
|
|
3957
3953
|
"default-active": e.activeMenu,
|
|
3958
3954
|
collapse: e.isCollapse,
|
|
@@ -3964,10 +3960,10 @@ function Tn(e, t, l, n, o, a) {
|
|
|
3964
3960
|
mode: "vertical"
|
|
3965
3961
|
}, {
|
|
3966
3962
|
default: r(() => [
|
|
3967
|
-
(i(!0),
|
|
3963
|
+
(i(!0), h(E, null, A(e.routes, (_, T) => (i(), h(E, {
|
|
3968
3964
|
key: T + "-module"
|
|
3969
3965
|
}, [
|
|
3970
|
-
(i(!0),
|
|
3966
|
+
(i(!0), h(E, null, A(e.filterRoute(_.routes), ($) => (i(), m(p, {
|
|
3971
3967
|
key: $.path,
|
|
3972
3968
|
item: $,
|
|
3973
3969
|
to: e.$router.resolve($.redirect ? $.redirect : $).fullPath
|
|
@@ -3981,66 +3977,66 @@ function Tn(e, t, l, n, o, a) {
|
|
|
3981
3977
|
})
|
|
3982
3978
|
], 2);
|
|
3983
3979
|
}
|
|
3984
|
-
const
|
|
3985
|
-
const
|
|
3980
|
+
const qo = /* @__PURE__ */ x(No, [["render", Vo], ["__scopeId", "data-v-800716bb"]]);
|
|
3981
|
+
const Uo = { class: "app-main" }, Ho = {
|
|
3986
3982
|
__name: "AppMain",
|
|
3987
3983
|
setup(e) {
|
|
3988
|
-
const t =
|
|
3989
|
-
return
|
|
3984
|
+
const t = pe(), l = [], n = P(0);
|
|
3985
|
+
return El(() => {
|
|
3990
3986
|
var o;
|
|
3991
3987
|
(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 +
|
|
3988
|
+
}), (o, s) => {
|
|
3989
|
+
const a = v("router-view"), u = Yt;
|
|
3990
|
+
return i(), h("section", Uo, [
|
|
3991
|
+
(i(), m(a, {
|
|
3992
|
+
key: o.$route.fullPath + k(n)
|
|
3997
3993
|
})),
|
|
3998
3994
|
c(u, { bottom: 50 })
|
|
3999
3995
|
]);
|
|
4000
3996
|
};
|
|
4001
3997
|
}
|
|
4002
|
-
},
|
|
4003
|
-
const
|
|
3998
|
+
}, Go = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3999
|
+
const Jo = { class: "main-container" }, zo = {
|
|
4004
4000
|
__name: "index",
|
|
4005
4001
|
setup(e) {
|
|
4006
|
-
const t =
|
|
4002
|
+
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
4003
|
hideSidebar: !o.value.opened,
|
|
4008
4004
|
openSidebar: o.value.opened,
|
|
4009
4005
|
withoutAnimation: o.value.withoutAnimation,
|
|
4010
|
-
mobile:
|
|
4006
|
+
mobile: s.value === "mobile"
|
|
4011
4007
|
})), p = () => l.getBoundingClientRect().width - 1 < n;
|
|
4012
|
-
|
|
4008
|
+
Al(window, "resize", () => f());
|
|
4013
4009
|
const d = () => {
|
|
4014
4010
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
4015
|
-
},
|
|
4011
|
+
}, f = () => {
|
|
4016
4012
|
if (!document.hidden) {
|
|
4017
4013
|
const _ = p();
|
|
4018
4014
|
t.dispatch("app/toggleDevice", _ ? "mobile" : "desktop"), _ && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
4019
4015
|
}
|
|
4020
4016
|
};
|
|
4021
|
-
return (_, T) => (i(),
|
|
4022
|
-
class: G([
|
|
4017
|
+
return (_, T) => (i(), h("div", {
|
|
4018
|
+
class: G([k(u), "app-wrapper"])
|
|
4023
4019
|
}, [
|
|
4024
|
-
|
|
4020
|
+
k(s) === "mobile" && k(o).opened ? (i(), h("div", {
|
|
4025
4021
|
key: 0,
|
|
4026
4022
|
class: "drawer-bg",
|
|
4027
4023
|
onClick: d
|
|
4028
|
-
})) :
|
|
4029
|
-
c(
|
|
4030
|
-
b("div",
|
|
4024
|
+
})) : w("", !0),
|
|
4025
|
+
c(k(qo), { class: "sidebar-container" }),
|
|
4026
|
+
b("div", Jo, [
|
|
4031
4027
|
b("div", {
|
|
4032
|
-
class: G({ "fixed-header":
|
|
4028
|
+
class: G({ "fixed-header": k(a) })
|
|
4033
4029
|
}, [
|
|
4034
|
-
c(
|
|
4030
|
+
c(k(_o))
|
|
4035
4031
|
], 2),
|
|
4036
|
-
c(
|
|
4032
|
+
c(k(Go))
|
|
4037
4033
|
])
|
|
4038
4034
|
], 2));
|
|
4039
4035
|
}
|
|
4040
|
-
},
|
|
4041
|
-
class
|
|
4036
|
+
}, ht = /* @__PURE__ */ x(zo, [["__scopeId", "data-v-957442cd"]]);
|
|
4037
|
+
class Ko {
|
|
4042
4038
|
constructor() {
|
|
4043
|
-
|
|
4039
|
+
R(this, "type", "qrcode");
|
|
4044
4040
|
}
|
|
4045
4041
|
flag() {
|
|
4046
4042
|
}
|
|
@@ -4050,111 +4046,111 @@ class Mn {
|
|
|
4050
4046
|
showQrCode() {
|
|
4051
4047
|
}
|
|
4052
4048
|
}
|
|
4053
|
-
class
|
|
4049
|
+
class Wo extends Ko {
|
|
4054
4050
|
constructor(l) {
|
|
4055
4051
|
super();
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4052
|
+
R(this, "type", "qrcode");
|
|
4053
|
+
R(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
|
|
4054
|
+
R(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
|
|
4055
|
+
R(this, "elId", "");
|
|
4056
|
+
R(this, "appid", "");
|
|
4057
|
+
R(this, "iframe", new HTMLIFrameElement());
|
|
4058
|
+
R(this, "redirectUri", "");
|
|
4059
|
+
R(this, "style", "");
|
|
4064
4060
|
}
|
|
4065
4061
|
flag() {
|
|
4066
|
-
const l =
|
|
4062
|
+
const l = il("code");
|
|
4067
4063
|
if (l)
|
|
4068
4064
|
return l;
|
|
4069
4065
|
}
|
|
4070
4066
|
showQrCode() {
|
|
4071
|
-
const l = (
|
|
4072
|
-
const
|
|
4067
|
+
const l = (s) => {
|
|
4068
|
+
const a = {
|
|
4073
4069
|
appid: this.appid,
|
|
4074
4070
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4075
4071
|
};
|
|
4076
|
-
return
|
|
4072
|
+
return Z(this.reloadUrl, a) + "&" + ul(s || {});
|
|
4077
4073
|
}, n = () => {
|
|
4078
|
-
const
|
|
4074
|
+
const s = {
|
|
4079
4075
|
goto: encodeURIComponent(l()),
|
|
4080
4076
|
style: encodeURIComponent(this.style)
|
|
4081
4077
|
};
|
|
4082
|
-
return
|
|
4083
|
-
}, o = (
|
|
4084
|
-
const { origin:
|
|
4085
|
-
|
|
4078
|
+
return Z(this.qrCodeUrl, s);
|
|
4079
|
+
}, o = (s) => {
|
|
4080
|
+
const { origin: a, data: u } = s;
|
|
4081
|
+
a === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
|
|
4086
4082
|
};
|
|
4087
|
-
this.iframe.src = n(),
|
|
4083
|
+
this.iframe.src = n(), rl({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4088
4084
|
"message",
|
|
4089
|
-
(
|
|
4085
|
+
(s) => o(s),
|
|
4090
4086
|
!1
|
|
4091
|
-
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (
|
|
4087
|
+
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (s) => this.onScanSuccess(s));
|
|
4092
4088
|
}
|
|
4093
4089
|
}
|
|
4094
|
-
const
|
|
4095
|
-
dingtalk: (e) => new
|
|
4090
|
+
const Zo = {
|
|
4091
|
+
dingtalk: (e) => new Wo(e)
|
|
4096
4092
|
};
|
|
4097
|
-
function
|
|
4098
|
-
return
|
|
4093
|
+
function Qo() {
|
|
4094
|
+
return F(S.state.settings.sso || {}, Zo);
|
|
4099
4095
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const t =
|
|
4096
|
+
function Xo(e) {
|
|
4097
|
+
const t = Qo(), l = S.state.settings.activeSsoKey || "", n = t[l];
|
|
4102
4098
|
if (n !== void 0)
|
|
4103
4099
|
return n(e);
|
|
4104
4100
|
}
|
|
4105
|
-
const
|
|
4101
|
+
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
4102
|
__name: "login",
|
|
4107
4103
|
setup(e) {
|
|
4108
|
-
const t =
|
|
4104
|
+
const t = wl(), l = pe(), n = N(() => S.state.settings.loginTips), o = P({
|
|
4109
4105
|
username: "",
|
|
4110
4106
|
password: ""
|
|
4111
|
-
}),
|
|
4107
|
+
}), s = () => {
|
|
4112
4108
|
if (o.value.username === "" || o.value.password === "") {
|
|
4113
|
-
|
|
4109
|
+
el.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
|
|
4114
4110
|
return;
|
|
4115
4111
|
}
|
|
4116
|
-
S.dispatch("user/login", o.value).then((
|
|
4112
|
+
S.dispatch("user/login", o.value).then((a) => {
|
|
4117
4113
|
var u;
|
|
4118
4114
|
t.push({ path: ((u = l.query) == null ? void 0 : u.redirect) || "/" });
|
|
4119
4115
|
});
|
|
4120
4116
|
};
|
|
4121
|
-
return
|
|
4122
|
-
|
|
4123
|
-
b("form",
|
|
4124
|
-
|
|
4125
|
-
"onUpdate:modelValue": u[0] || (u[0] = (p) =>
|
|
4117
|
+
return P(), (a, u) => (i(), h("div", Yo, [
|
|
4118
|
+
es,
|
|
4119
|
+
b("form", ts, [
|
|
4120
|
+
ve(b("input", {
|
|
4121
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => k(o).username = p),
|
|
4126
4122
|
type: "text",
|
|
4127
4123
|
placeholder: "\u7528\u6237\u540D",
|
|
4128
4124
|
class: "input"
|
|
4129
4125
|
}, null, 512), [
|
|
4130
|
-
[
|
|
4126
|
+
[Ne, k(o).username]
|
|
4131
4127
|
]),
|
|
4132
|
-
|
|
4133
|
-
"onUpdate:modelValue": u[1] || (u[1] = (p) =>
|
|
4128
|
+
ve(b("input", {
|
|
4129
|
+
"onUpdate:modelValue": u[1] || (u[1] = (p) => k(o).password = p),
|
|
4134
4130
|
type: "password",
|
|
4135
4131
|
placeholder: "\u5BC6\u7801",
|
|
4136
4132
|
class: "input"
|
|
4137
4133
|
}, null, 512), [
|
|
4138
|
-
[
|
|
4134
|
+
[Ne, k(o).password]
|
|
4139
4135
|
]),
|
|
4140
4136
|
b("div", {
|
|
4141
4137
|
class: "input button",
|
|
4142
|
-
onClick:
|
|
4138
|
+
onClick: s
|
|
4143
4139
|
}, "\u767B\u5F55"),
|
|
4144
|
-
b("div",
|
|
4145
|
-
b("div", null, I(
|
|
4140
|
+
b("div", ls, [
|
|
4141
|
+
b("div", null, I(k(n)), 1)
|
|
4146
4142
|
]),
|
|
4147
|
-
b("div",
|
|
4148
|
-
|
|
4149
|
-
(i(!0),
|
|
4143
|
+
b("div", ns, [
|
|
4144
|
+
os,
|
|
4145
|
+
(i(!0), h(E, null, A(Object.keys([]), (p) => (i(), h("div", { key: p }, I(p), 1))), 128))
|
|
4150
4146
|
])
|
|
4151
4147
|
])
|
|
4152
4148
|
]));
|
|
4153
4149
|
}
|
|
4154
4150
|
});
|
|
4155
|
-
const
|
|
4151
|
+
const as = {
|
|
4156
4152
|
name: "NotFoundPage"
|
|
4157
|
-
},
|
|
4153
|
+
}, bt = (e) => (We("data-v-26068803"), e = e(), Ze(), e), is = { class: "not-found" }, rs = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4158
4154
|
width: "380px",
|
|
4159
4155
|
height: "500px",
|
|
4160
4156
|
viewBox: "0 0 837 1045",
|
|
@@ -4207,7 +4203,7 @@ const Zn = {
|
|
|
4207
4203
|
"sketch:type": "MSShapeGroup"
|
|
4208
4204
|
})
|
|
4209
4205
|
])
|
|
4210
|
-
], -1)),
|
|
4206
|
+
], -1)), us = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4211
4207
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4212
4208
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4213
4209
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4218,17 +4214,17 @@ const Zn = {
|
|
|
4218
4214
|
}, "Go to Home Page")
|
|
4219
4215
|
])
|
|
4220
4216
|
])
|
|
4221
|
-
], -1)),
|
|
4222
|
-
|
|
4223
|
-
|
|
4217
|
+
], -1)), cs = [
|
|
4218
|
+
rs,
|
|
4219
|
+
us
|
|
4224
4220
|
];
|
|
4225
|
-
function
|
|
4226
|
-
return i(),
|
|
4221
|
+
function ps(e, t, l, n, o, s) {
|
|
4222
|
+
return i(), h("div", is, cs);
|
|
4227
4223
|
}
|
|
4228
|
-
const
|
|
4224
|
+
const ds = /* @__PURE__ */ x(as, [["render", ps], ["__scopeId", "data-v-26068803"]]), ms = [
|
|
4229
4225
|
{
|
|
4230
4226
|
path: "/",
|
|
4231
|
-
component:
|
|
4227
|
+
component: ht,
|
|
4232
4228
|
redirect: "/dashboard",
|
|
4233
4229
|
name: "Root",
|
|
4234
4230
|
meta: {
|
|
@@ -4238,79 +4234,79 @@ const la = /* @__PURE__ */ B(Zn, [["render", ta], ["__scopeId", "data-v-26068803
|
|
|
4238
4234
|
{
|
|
4239
4235
|
path: "dashboard",
|
|
4240
4236
|
name: "Dashboard",
|
|
4241
|
-
component:
|
|
4237
|
+
component: rn,
|
|
4242
4238
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4243
4239
|
}
|
|
4244
4240
|
]
|
|
4245
4241
|
},
|
|
4246
4242
|
{
|
|
4247
4243
|
path: "/login",
|
|
4248
|
-
component:
|
|
4244
|
+
component: ss,
|
|
4249
4245
|
meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
|
|
4250
4246
|
hidden: !0
|
|
4251
4247
|
},
|
|
4252
4248
|
{
|
|
4253
4249
|
path: "/404",
|
|
4254
|
-
component:
|
|
4250
|
+
component: ds,
|
|
4255
4251
|
meta: { menuType: 0 },
|
|
4256
4252
|
hidden: !0
|
|
4257
4253
|
}
|
|
4258
|
-
],
|
|
4259
|
-
history:
|
|
4260
|
-
routes:
|
|
4254
|
+
], oe = Sl({
|
|
4255
|
+
history: Cl(),
|
|
4256
|
+
routes: ms
|
|
4261
4257
|
});
|
|
4262
|
-
|
|
4263
|
-
function
|
|
4258
|
+
ke.configure({ showSpinner: !1 });
|
|
4259
|
+
function fs(e) {
|
|
4264
4260
|
e.beforeEach((t, l, n) => {
|
|
4265
|
-
|
|
4261
|
+
ke.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4266
4262
|
}), e.afterEach((t) => {
|
|
4267
4263
|
t.matched.length > 0 && S.commit("user/updateState", {
|
|
4268
4264
|
key: "path",
|
|
4269
4265
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4270
|
-
}),
|
|
4266
|
+
}), ke.done();
|
|
4271
4267
|
});
|
|
4272
4268
|
}
|
|
4273
|
-
function
|
|
4269
|
+
function hs() {
|
|
4274
4270
|
return S.state.user.isLodeRemoteRoutes;
|
|
4275
4271
|
}
|
|
4276
|
-
function
|
|
4272
|
+
function _t() {
|
|
4277
4273
|
return S.state.settings.whiteRoutes || [];
|
|
4278
4274
|
}
|
|
4279
|
-
function
|
|
4275
|
+
function bs() {
|
|
4280
4276
|
return S.state.user.token;
|
|
4281
4277
|
}
|
|
4282
|
-
function
|
|
4278
|
+
function _s(e) {
|
|
4283
4279
|
e.beforeEach(async (t, l, n) => {
|
|
4284
4280
|
var p, d;
|
|
4285
|
-
if (
|
|
4281
|
+
if (_t().indexOf(t.path) !== -1) {
|
|
4286
4282
|
n();
|
|
4287
4283
|
return;
|
|
4288
4284
|
}
|
|
4289
|
-
if (
|
|
4285
|
+
if (bs()) {
|
|
4290
4286
|
(p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4291
4287
|
return;
|
|
4292
4288
|
}
|
|
4293
|
-
const
|
|
4294
|
-
if (!
|
|
4295
|
-
n(`/login?redirect=${
|
|
4289
|
+
const s = t.query.redirect || t.path, a = Xo({});
|
|
4290
|
+
if (!a) {
|
|
4291
|
+
n(`/login?redirect=${s}`);
|
|
4296
4292
|
return;
|
|
4297
4293
|
}
|
|
4298
|
-
const u =
|
|
4294
|
+
const u = a.flag();
|
|
4299
4295
|
if (u && await S.dispatch("user/login", { ticket: u })) {
|
|
4300
4296
|
n();
|
|
4301
4297
|
return;
|
|
4302
4298
|
}
|
|
4303
|
-
|
|
4299
|
+
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4304
4300
|
});
|
|
4305
4301
|
}
|
|
4306
|
-
const
|
|
4307
|
-
|
|
4302
|
+
const ys = {}, vs = { class: "loading preloader" }, gs = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), ks = [
|
|
4303
|
+
gs
|
|
4308
4304
|
];
|
|
4309
|
-
function
|
|
4310
|
-
return i(),
|
|
4305
|
+
function Es(e, t) {
|
|
4306
|
+
return i(), h("div", vs, ks);
|
|
4311
4307
|
}
|
|
4312
|
-
const
|
|
4313
|
-
components: { VLoading:
|
|
4308
|
+
const yt = /* @__PURE__ */ x(ys, [["render", Es]]), ws = V({
|
|
4309
|
+
components: { VLoading: yt },
|
|
4314
4310
|
props: {
|
|
4315
4311
|
schemaHandler: {
|
|
4316
4312
|
type: Function,
|
|
@@ -4344,85 +4340,85 @@ const ht = /* @__PURE__ */ B(ra, [["render", da]]), ma = V({
|
|
|
4344
4340
|
beforeCreate() {
|
|
4345
4341
|
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
4342
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4347
|
-
this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0,
|
|
4343
|
+
this.loading = !1, Q(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
|
|
4348
4344
|
title: o.notice
|
|
4349
|
-
} :
|
|
4345
|
+
} : 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
4346
|
});
|
|
4351
4347
|
}
|
|
4352
4348
|
});
|
|
4353
|
-
const
|
|
4354
|
-
function
|
|
4355
|
-
const
|
|
4356
|
-
return i(),
|
|
4357
|
-
e.owners.length > 0 ? (i(), m(
|
|
4349
|
+
const Ss = ["innerHTML"];
|
|
4350
|
+
function Cs(e, t, l, n, o, s) {
|
|
4351
|
+
const a = ge, u = ge, p = yt;
|
|
4352
|
+
return i(), h(E, null, [
|
|
4353
|
+
e.owners.length > 0 ? (i(), m(a, {
|
|
4358
4354
|
key: 0,
|
|
4359
4355
|
title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
|
|
4360
4356
|
type: "info",
|
|
4361
4357
|
style: { margin: "0 0 20px 0" },
|
|
4362
4358
|
closable: !1
|
|
4363
|
-
}, null, 8, ["title"])) :
|
|
4364
|
-
e.env === "prod" && e.serviceOffLine ? (i(),
|
|
4359
|
+
}, null, 8, ["title"])) : w("", !0),
|
|
4360
|
+
e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
|
|
4365
4361
|
key: 1,
|
|
4366
4362
|
class: "offline-notice",
|
|
4367
4363
|
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 })) :
|
|
4364
|
+
}, null, 8, Ss)) : (i(), h(E, { key: 2 }, [
|
|
4365
|
+
e.haveNotice ? (i(), m(u, U({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : w("", !0),
|
|
4366
|
+
e.loading ? (i(), m(p, { key: 1 })) : te(e.$slots, "default", K(U({ key: 2 }, e.schema)), void 0, !0)
|
|
4371
4367
|
], 64))
|
|
4372
4368
|
], 64);
|
|
4373
4369
|
}
|
|
4374
|
-
const
|
|
4370
|
+
const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f"]]), vt = {
|
|
4375
4371
|
__name: "table",
|
|
4376
4372
|
setup(e) {
|
|
4377
4373
|
const t = (l, n) => {
|
|
4378
4374
|
if (l.orderBy) {
|
|
4379
|
-
const
|
|
4375
|
+
const s = {
|
|
4380
4376
|
prop: l.orderBy.field,
|
|
4381
4377
|
order: l.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4382
4378
|
};
|
|
4383
|
-
l.tableProps =
|
|
4379
|
+
l.tableProps = F(l.tableProps, { defaultSort: s });
|
|
4384
4380
|
}
|
|
4385
|
-
const o = Object.keys(
|
|
4386
|
-
return Object.keys(l).forEach((
|
|
4387
|
-
o.indexOf(
|
|
4381
|
+
const o = Object.keys(ne.props);
|
|
4382
|
+
return Object.keys(l).forEach((s) => {
|
|
4383
|
+
o.indexOf(s) === -1 && delete l[s];
|
|
4388
4384
|
}), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
|
|
4389
4385
|
};
|
|
4390
|
-
return (l, n) => (i(), m(
|
|
4386
|
+
return (l, n) => (i(), m(ae, { "schema-handler": t }, {
|
|
4391
4387
|
default: r((o) => [
|
|
4392
|
-
c(
|
|
4388
|
+
c(k(ne), K(X(o)), null, 16)
|
|
4393
4389
|
]),
|
|
4394
4390
|
_: 1
|
|
4395
4391
|
}));
|
|
4396
4392
|
}
|
|
4397
|
-
},
|
|
4393
|
+
}, Se = {
|
|
4398
4394
|
__name: "form",
|
|
4399
4395
|
setup(e) {
|
|
4400
|
-
const t =
|
|
4401
|
-
const
|
|
4402
|
-
return Object.keys(n).forEach((
|
|
4403
|
-
if (
|
|
4404
|
-
delete n[
|
|
4396
|
+
const t = pe(), l = (n, o) => {
|
|
4397
|
+
const s = Object.keys(J.props);
|
|
4398
|
+
return Object.keys(n).forEach((a) => {
|
|
4399
|
+
if (s.indexOf(a) === -1) {
|
|
4400
|
+
delete n[a];
|
|
4405
4401
|
return;
|
|
4406
4402
|
}
|
|
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 =
|
|
4403
|
+
/.*Api$/.test(a) && (n[a] = Z(n[a], t.params));
|
|
4404
|
+
}), 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
4405
|
saveApi: o + "/save",
|
|
4410
4406
|
afterSubmit: "goback",
|
|
4411
4407
|
afterReset: "goback",
|
|
4412
4408
|
mod: t.params.id ? "edit" : "create"
|
|
4413
4409
|
}, n), n;
|
|
4414
4410
|
};
|
|
4415
|
-
return (n, o) => (i(), m(
|
|
4416
|
-
default: r((
|
|
4417
|
-
c(
|
|
4411
|
+
return (n, o) => (i(), m(ae, { "schema-handler": l }, {
|
|
4412
|
+
default: r((s) => [
|
|
4413
|
+
c(k(J), K(X(s)), null, 16)
|
|
4418
4414
|
]),
|
|
4419
4415
|
_: 1
|
|
4420
4416
|
}));
|
|
4421
4417
|
}
|
|
4422
|
-
},
|
|
4418
|
+
}, xs = V({
|
|
4423
4419
|
name: "VTree",
|
|
4424
4420
|
components: {
|
|
4425
|
-
VForm:
|
|
4421
|
+
VForm: J
|
|
4426
4422
|
},
|
|
4427
4423
|
props: {
|
|
4428
4424
|
treeApi: {
|
|
@@ -4474,7 +4470,7 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4474
4470
|
type: 0,
|
|
4475
4471
|
treeData: [],
|
|
4476
4472
|
formData: {},
|
|
4477
|
-
localTreeProps:
|
|
4473
|
+
localTreeProps: F({
|
|
4478
4474
|
"default-expand-all": !0,
|
|
4479
4475
|
"expand-on-click-node": !1,
|
|
4480
4476
|
props: {
|
|
@@ -4492,7 +4488,7 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4492
4488
|
return ["", "\u65B0\u5EFA", "\u7F16\u8F91"][this.type];
|
|
4493
4489
|
},
|
|
4494
4490
|
formProps() {
|
|
4495
|
-
let e =
|
|
4491
|
+
let e = Z(this.$props.saveApi, this.formData);
|
|
4496
4492
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4497
4493
|
saveApi: e,
|
|
4498
4494
|
getApi: this.$props.getApi,
|
|
@@ -4516,9 +4512,9 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4516
4512
|
this.type = 2, this.formData = e, this.formkey++;
|
|
4517
4513
|
},
|
|
4518
4514
|
append(e, t) {
|
|
4519
|
-
var n, o,
|
|
4515
|
+
var n, o, s;
|
|
4520
4516
|
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, ...
|
|
4517
|
+
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
4518
|
console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
|
|
4523
4519
|
},
|
|
4524
4520
|
canAppend(e, t) {
|
|
@@ -4533,7 +4529,7 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4533
4529
|
remove(e) {
|
|
4534
4530
|
this.$http.request({
|
|
4535
4531
|
method: "DELETE",
|
|
4536
|
-
url:
|
|
4532
|
+
url: Z(this.$props.deleteApi, e)
|
|
4537
4533
|
}).then(({ code: t }) => {
|
|
4538
4534
|
t !== 0 ? this.$message.error("\u64CD\u4F5C\u5931\u8D25") : this.loadTree();
|
|
4539
4535
|
});
|
|
@@ -4553,34 +4549,34 @@ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38
|
|
|
4553
4549
|
const o = e.data;
|
|
4554
4550
|
o.pid = t.data.id, this.$http.request({
|
|
4555
4551
|
method: "POST",
|
|
4556
|
-
url:
|
|
4552
|
+
url: Z(this.$props.saveApi, o),
|
|
4557
4553
|
data: o
|
|
4558
|
-
}).then(({ code:
|
|
4559
|
-
|
|
4554
|
+
}).then(({ code: s }) => {
|
|
4555
|
+
s !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
|
|
4560
4556
|
});
|
|
4561
4557
|
}
|
|
4562
4558
|
}
|
|
4563
4559
|
});
|
|
4564
|
-
const
|
|
4560
|
+
const Bs = { class: "card-header" }, Is = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), As = { class: "tree-action" }, $s = { key: 0 }, Ts = {
|
|
4565
4561
|
key: 1,
|
|
4566
4562
|
style: { color: "#E6A23C" }
|
|
4567
|
-
},
|
|
4568
|
-
function
|
|
4569
|
-
const l =
|
|
4563
|
+
}, Fs = { class: "card-header" };
|
|
4564
|
+
function Os(e, t) {
|
|
4565
|
+
const l = ue, n = tl, o = Ie, s = ce, a = v("v-form"), u = se;
|
|
4570
4566
|
return i(), m(u, {
|
|
4571
4567
|
class: "tree-box",
|
|
4572
4568
|
gutter: 20
|
|
4573
4569
|
}, {
|
|
4574
4570
|
default: r(() => [
|
|
4575
|
-
c(
|
|
4571
|
+
c(s, {
|
|
4576
4572
|
span: 8,
|
|
4577
4573
|
class: "tree-tree"
|
|
4578
4574
|
}, {
|
|
4579
4575
|
default: r(() => [
|
|
4580
4576
|
c(o, { shadow: "never" }, {
|
|
4581
4577
|
header: r(() => [
|
|
4582
|
-
b("div",
|
|
4583
|
-
|
|
4578
|
+
b("div", Bs, [
|
|
4579
|
+
Is,
|
|
4584
4580
|
c(l, {
|
|
4585
4581
|
type: "text",
|
|
4586
4582
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
@@ -4605,8 +4601,8 @@ function wa(e, t) {
|
|
|
4605
4601
|
onNodeDragEnd: e.handleDragEnd
|
|
4606
4602
|
}), {
|
|
4607
4603
|
default: r(({ node: p, data: d }) => [
|
|
4608
|
-
b("span",
|
|
4609
|
-
d[e.localTreeProps.props.label] ? (i(),
|
|
4604
|
+
b("span", As, [
|
|
4605
|
+
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
4606
|
b("span", null, [
|
|
4611
4607
|
d[e.localTreeProps.props.label] ? (i(), m(l, {
|
|
4612
4608
|
key: 0,
|
|
@@ -4618,7 +4614,7 @@ function wa(e, t) {
|
|
|
4618
4614
|
g("\u7F16\u8F91")
|
|
4619
4615
|
]),
|
|
4620
4616
|
_: 2
|
|
4621
|
-
}, 1032, ["onClick"])) :
|
|
4617
|
+
}, 1032, ["onClick"])) : w("", !0),
|
|
4622
4618
|
e.canAppend(d, p) ? (i(), m(l, {
|
|
4623
4619
|
key: 1,
|
|
4624
4620
|
class: "button",
|
|
@@ -4629,7 +4625,7 @@ function wa(e, t) {
|
|
|
4629
4625
|
g("\u6DFB\u52A0")
|
|
4630
4626
|
]),
|
|
4631
4627
|
_: 2
|
|
4632
|
-
}, 1032, ["onClick"])) :
|
|
4628
|
+
}, 1032, ["onClick"])) : w("", !0),
|
|
4633
4629
|
d.children === void 0 || d.children.length === 0 ? (i(), m(l, {
|
|
4634
4630
|
key: 2,
|
|
4635
4631
|
class: "button",
|
|
@@ -4640,19 +4636,19 @@ function wa(e, t) {
|
|
|
4640
4636
|
g("\u5220\u9664")
|
|
4641
4637
|
]),
|
|
4642
4638
|
_: 2
|
|
4643
|
-
}, 1032, ["onClick"])) :
|
|
4639
|
+
}, 1032, ["onClick"])) : w("", !0)
|
|
4644
4640
|
])
|
|
4645
4641
|
])
|
|
4646
4642
|
]),
|
|
4647
4643
|
_: 1
|
|
4648
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4644
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : w("", !0)
|
|
4649
4645
|
]),
|
|
4650
4646
|
_: 1
|
|
4651
4647
|
})
|
|
4652
4648
|
]),
|
|
4653
4649
|
_: 1
|
|
4654
4650
|
}),
|
|
4655
|
-
c(
|
|
4651
|
+
c(s, {
|
|
4656
4652
|
span: 16,
|
|
4657
4653
|
class: "tree-form"
|
|
4658
4654
|
}, {
|
|
@@ -4662,19 +4658,19 @@ function wa(e, t) {
|
|
|
4662
4658
|
shadow: "never"
|
|
4663
4659
|
}, {
|
|
4664
4660
|
header: r(() => [
|
|
4665
|
-
b("div",
|
|
4661
|
+
b("div", Fs, [
|
|
4666
4662
|
b("span", null, I(e.formType), 1)
|
|
4667
4663
|
])
|
|
4668
4664
|
]),
|
|
4669
4665
|
default: r(() => [
|
|
4670
|
-
(i(), m(
|
|
4666
|
+
(i(), m(a, U({
|
|
4671
4667
|
key: e.formkey,
|
|
4672
4668
|
modelValue: e.formData,
|
|
4673
4669
|
"onUpdate:modelValue": t[1] || (t[1] = (p) => e.formData = p)
|
|
4674
4670
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4675
4671
|
]),
|
|
4676
4672
|
_: 1
|
|
4677
|
-
})) :
|
|
4673
|
+
})) : w("", !0)
|
|
4678
4674
|
]),
|
|
4679
4675
|
_: 1
|
|
4680
4676
|
})
|
|
@@ -4682,34 +4678,34 @@ function wa(e, t) {
|
|
|
4682
4678
|
_: 1
|
|
4683
4679
|
});
|
|
4684
4680
|
}
|
|
4685
|
-
const
|
|
4681
|
+
const Je = /* @__PURE__ */ x(xs, [["render", Os]]), Ds = {
|
|
4686
4682
|
__name: "tree",
|
|
4687
4683
|
setup(e) {
|
|
4688
4684
|
const t = (l, n) => {
|
|
4689
|
-
const o = Object.keys(
|
|
4690
|
-
return Object.keys(l).forEach((
|
|
4691
|
-
o.indexOf(
|
|
4685
|
+
const o = Object.keys(Je.props);
|
|
4686
|
+
return Object.keys(l).forEach((s) => {
|
|
4687
|
+
o.indexOf(s) === -1 && delete l[s];
|
|
4692
4688
|
}), l;
|
|
4693
4689
|
};
|
|
4694
|
-
return (l, n) => (i(), m(
|
|
4690
|
+
return (l, n) => (i(), m(ae, { "schema-handler": t }, {
|
|
4695
4691
|
default: r((o) => [
|
|
4696
|
-
c(
|
|
4692
|
+
c(Je, K(X(o)), null, 16)
|
|
4697
4693
|
]),
|
|
4698
4694
|
_: 1
|
|
4699
4695
|
}));
|
|
4700
4696
|
}
|
|
4701
|
-
},
|
|
4697
|
+
}, ye = {
|
|
4702
4698
|
__name: "container",
|
|
4703
4699
|
setup(e) {
|
|
4704
|
-
const t =
|
|
4705
|
-
return
|
|
4700
|
+
const t = P(0);
|
|
4701
|
+
return xl(() => {
|
|
4706
4702
|
t.value++;
|
|
4707
4703
|
}), (l, n) => {
|
|
4708
4704
|
const o = v("router-view");
|
|
4709
4705
|
return i(), m(o);
|
|
4710
4706
|
};
|
|
4711
4707
|
}
|
|
4712
|
-
},
|
|
4708
|
+
}, Ps = {
|
|
4713
4709
|
title: {
|
|
4714
4710
|
text: ""
|
|
4715
4711
|
},
|
|
@@ -4738,34 +4734,34 @@ const He = /* @__PURE__ */ B(ba, [["render", wa]]), Sa = {
|
|
|
4738
4734
|
},
|
|
4739
4735
|
series: []
|
|
4740
4736
|
};
|
|
4741
|
-
function
|
|
4737
|
+
function Rs(e, t, l) {
|
|
4742
4738
|
if (l.length === 0)
|
|
4743
4739
|
return {};
|
|
4744
|
-
let n =
|
|
4745
|
-
if (n.title.text = e,
|
|
4746
|
-
const o = [],
|
|
4747
|
-
let
|
|
4740
|
+
let n = F({}, Ps);
|
|
4741
|
+
if (n.title.text = e, $e(t)) {
|
|
4742
|
+
const o = [], s = Object.keys(l[0]);
|
|
4743
|
+
let a = s[0], u = s.filter((d, f) => f > 0), p = t;
|
|
4748
4744
|
if (t.indexOf(":") > -1) {
|
|
4749
|
-
const d = t.split(":"),
|
|
4750
|
-
p = d[0],
|
|
4745
|
+
const d = t.split(":"), f = d[1].split(",");
|
|
4746
|
+
p = d[0], a = f[0], u = f.filter((_, T) => T > 0);
|
|
4751
4747
|
}
|
|
4752
4748
|
u.forEach((d) => {
|
|
4753
|
-
const
|
|
4749
|
+
const f = [];
|
|
4754
4750
|
l.forEach((_) => {
|
|
4755
|
-
|
|
4751
|
+
f.push(_[d]);
|
|
4756
4752
|
}), n.series.push({
|
|
4757
4753
|
name: d,
|
|
4758
4754
|
type: p,
|
|
4759
4755
|
smooth: !0,
|
|
4760
|
-
data:
|
|
4756
|
+
data: f
|
|
4761
4757
|
}), n.legend.data.push(d);
|
|
4762
4758
|
}), l.forEach((d) => {
|
|
4763
|
-
o.push(d[
|
|
4759
|
+
o.push(d[a]);
|
|
4764
4760
|
}), n.xAxis.data = o;
|
|
4765
4761
|
}
|
|
4766
|
-
return
|
|
4762
|
+
return Q(t) && (n = F(n, t)), console.log(111, n), n;
|
|
4767
4763
|
}
|
|
4768
|
-
const
|
|
4764
|
+
const Ls = V({
|
|
4769
4765
|
name: "NumberPanel",
|
|
4770
4766
|
props: {
|
|
4771
4767
|
dataList: {
|
|
@@ -4776,27 +4772,27 @@ const xa = V({
|
|
|
4776
4772
|
data() {
|
|
4777
4773
|
return {};
|
|
4778
4774
|
}
|
|
4779
|
-
}),
|
|
4780
|
-
function
|
|
4781
|
-
return i(!0),
|
|
4782
|
-
b("div",
|
|
4783
|
-
(i(!0),
|
|
4775
|
+
}), Ms = { class: "number-panel-title" }, js = { class: "number" }, Ns = { class: "name" };
|
|
4776
|
+
function Vs(e, t, l, n, o, s) {
|
|
4777
|
+
return i(!0), h(E, null, A(e.dataList, (a, u) => (i(), h("span", { key: u }, [
|
|
4778
|
+
b("div", Ms, [
|
|
4779
|
+
(i(!0), h(E, null, A(Object.keys(a), (p, d) => (i(), h("div", {
|
|
4784
4780
|
key: d,
|
|
4785
4781
|
class: "title-inner"
|
|
4786
4782
|
}, [
|
|
4787
|
-
b("p",
|
|
4788
|
-
b("p",
|
|
4783
|
+
b("p", js, I(a[p]), 1),
|
|
4784
|
+
b("p", Ns, I(p), 1)
|
|
4789
4785
|
]))), 128))
|
|
4790
4786
|
])
|
|
4791
4787
|
]))), 128);
|
|
4792
4788
|
}
|
|
4793
|
-
const
|
|
4789
|
+
const qs = /* @__PURE__ */ x(Ls, [["render", Vs], ["__scopeId", "data-v-cc0d8293"]]), Us = {
|
|
4794
4790
|
components: {
|
|
4795
|
-
Chart:
|
|
4796
|
-
Md:
|
|
4791
|
+
Chart: vl,
|
|
4792
|
+
Md: $l,
|
|
4797
4793
|
Json: De,
|
|
4798
|
-
Table:
|
|
4799
|
-
Number:
|
|
4794
|
+
Table: ne,
|
|
4795
|
+
Number: qs,
|
|
4800
4796
|
Html: ""
|
|
4801
4797
|
},
|
|
4802
4798
|
props: {
|
|
@@ -4817,20 +4813,20 @@ const Fa = /* @__PURE__ */ B(xa, [["render", Ta], ["__scopeId", "data-v-cc0d8293
|
|
|
4817
4813
|
};
|
|
4818
4814
|
if (o === "chart")
|
|
4819
4815
|
return {
|
|
4820
|
-
options:
|
|
4816
|
+
options: Rs(n.id, n.chart, n.data)
|
|
4821
4817
|
};
|
|
4822
4818
|
if (o === "md")
|
|
4823
4819
|
return {
|
|
4824
4820
|
source: n.data
|
|
4825
4821
|
};
|
|
4826
4822
|
if (o === "table") {
|
|
4827
|
-
if (!
|
|
4823
|
+
if (!ot(n.data))
|
|
4828
4824
|
return { showPagination: !1 };
|
|
4829
|
-
const
|
|
4830
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((
|
|
4831
|
-
|
|
4825
|
+
const s = [];
|
|
4826
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((a, u) => {
|
|
4827
|
+
s.push({ field: a, label: a });
|
|
4832
4828
|
}), {
|
|
4833
|
-
headers:
|
|
4829
|
+
headers: s,
|
|
4834
4830
|
list: n.data,
|
|
4835
4831
|
showPagination: !1
|
|
4836
4832
|
};
|
|
@@ -4841,21 +4837,21 @@ const Fa = /* @__PURE__ */ B(xa, [["render", Ta], ["__scopeId", "data-v-cc0d8293
|
|
|
4841
4837
|
};
|
|
4842
4838
|
}
|
|
4843
4839
|
};
|
|
4844
|
-
function
|
|
4845
|
-
const
|
|
4846
|
-
return
|
|
4840
|
+
function Hs(e, t, l, n, o, s) {
|
|
4841
|
+
const a = Ie, u = Ft("resize");
|
|
4842
|
+
return ve((i(), m(a, {
|
|
4847
4843
|
shadow: "never",
|
|
4848
4844
|
class: "part"
|
|
4849
4845
|
}, {
|
|
4850
4846
|
default: r(() => [
|
|
4851
|
-
(i(), m(
|
|
4847
|
+
(i(), m(Qe(n.comptype()), K(X(n.compprops(l.option))), null, 16))
|
|
4852
4848
|
]),
|
|
4853
4849
|
_: 1
|
|
4854
4850
|
})), [
|
|
4855
4851
|
[u, !0]
|
|
4856
4852
|
]);
|
|
4857
4853
|
}
|
|
4858
|
-
const
|
|
4854
|
+
const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1"]]), Js = /* @__PURE__ */ V({
|
|
4859
4855
|
__name: "index",
|
|
4860
4856
|
props: {
|
|
4861
4857
|
filter: {
|
|
@@ -4869,12 +4865,12 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4869
4865
|
},
|
|
4870
4866
|
setup(e) {
|
|
4871
4867
|
const t = e, l = useRoute();
|
|
4872
|
-
|
|
4868
|
+
Ot(() => {
|
|
4873
4869
|
});
|
|
4874
|
-
const n =
|
|
4875
|
-
|
|
4876
|
-
var
|
|
4877
|
-
(
|
|
4870
|
+
const n = P({});
|
|
4871
|
+
Ke(() => {
|
|
4872
|
+
var f;
|
|
4873
|
+
(f = t.filter) == null || f.forEach((_) => {
|
|
4878
4874
|
_.default !== null && (n.value[_.field] = _.default);
|
|
4879
4875
|
});
|
|
4880
4876
|
});
|
|
@@ -4888,23 +4884,23 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4888
4884
|
cancelButton: {
|
|
4889
4885
|
text: "\u91CD\u7F6E"
|
|
4890
4886
|
}
|
|
4891
|
-
},
|
|
4892
|
-
let
|
|
4893
|
-
if (!
|
|
4887
|
+
}, s = P(1), a = P(t.filter), u = P(t.dataPart), p = N(() => {
|
|
4888
|
+
let f = l.params.id;
|
|
4889
|
+
if (!f) {
|
|
4894
4890
|
const _ = l.path.split("/");
|
|
4895
|
-
|
|
4891
|
+
f = _[_.length - 1];
|
|
4896
4892
|
}
|
|
4897
|
-
return "/focusbi_report/view/" +
|
|
4898
|
-
}), d = (
|
|
4899
|
-
|
|
4900
|
-
|
|
4893
|
+
return "/focusbi_report/view/" + f;
|
|
4894
|
+
}), d = (f) => {
|
|
4895
|
+
on.get(p.value, { params: f }).then(({ data: _ }) => {
|
|
4896
|
+
a.value = _.filter, u.value = _.dataPart, s.value++;
|
|
4901
4897
|
});
|
|
4902
4898
|
};
|
|
4903
|
-
return (
|
|
4904
|
-
const T =
|
|
4899
|
+
return (f, _) => {
|
|
4900
|
+
const T = Ie, $ = ce, H = ge, q = se;
|
|
4905
4901
|
return i(), m(q, null, {
|
|
4906
4902
|
default: r(() => [
|
|
4907
|
-
|
|
4903
|
+
k(a).length > 0 ? (i(), m($, {
|
|
4908
4904
|
key: 0,
|
|
4909
4905
|
span: 24
|
|
4910
4906
|
}, {
|
|
@@ -4914,10 +4910,10 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4914
4910
|
class: "part-filter"
|
|
4915
4911
|
}, {
|
|
4916
4912
|
default: r(() => [
|
|
4917
|
-
c(
|
|
4918
|
-
modelValue:
|
|
4919
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
4920
|
-
"form-items":
|
|
4913
|
+
c(k(J), {
|
|
4914
|
+
modelValue: k(n),
|
|
4915
|
+
"onUpdate:modelValue": _[0] || (_[0] = (B) => Dt(n) ? n.value = B : null),
|
|
4916
|
+
"form-items": k(a),
|
|
4921
4917
|
options: o,
|
|
4922
4918
|
onSubmit: d
|
|
4923
4919
|
}, null, 8, ["modelValue", "form-items"])
|
|
@@ -4926,28 +4922,28 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4926
4922
|
})
|
|
4927
4923
|
]),
|
|
4928
4924
|
_: 1
|
|
4929
|
-
})) :
|
|
4925
|
+
})) : w("", !0),
|
|
4930
4926
|
c($, { span: 24 }, {
|
|
4931
4927
|
default: r(() => [
|
|
4932
4928
|
c(q, { gutter: 20 }, {
|
|
4933
4929
|
default: r(() => [
|
|
4934
|
-
(i(!0),
|
|
4935
|
-
key:
|
|
4936
|
-
span:
|
|
4930
|
+
(i(!0), h(E, null, A(k(u), (B, W) => (i(), m($, {
|
|
4931
|
+
key: W,
|
|
4932
|
+
span: B.col || 24
|
|
4937
4933
|
}, {
|
|
4938
4934
|
default: r(() => [
|
|
4939
|
-
|
|
4935
|
+
B.errMsg ? (i(), m(H, {
|
|
4940
4936
|
key: 1,
|
|
4941
|
-
title:
|
|
4937
|
+
title: B.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
|
|
4942
4938
|
type: "error"
|
|
4943
4939
|
}, {
|
|
4944
4940
|
default: r(() => [
|
|
4945
|
-
g(I(
|
|
4941
|
+
g(I(B.errMsg), 1)
|
|
4946
4942
|
]),
|
|
4947
4943
|
_: 2
|
|
4948
|
-
}, 1032, ["title"])) : (i(), m(
|
|
4949
|
-
key:
|
|
4950
|
-
option:
|
|
4944
|
+
}, 1032, ["title"])) : (i(), m(Gs, {
|
|
4945
|
+
key: k(s),
|
|
4946
|
+
option: B
|
|
4951
4947
|
}, null, 8, ["option"]))
|
|
4952
4948
|
]),
|
|
4953
4949
|
_: 2
|
|
@@ -4964,7 +4960,7 @@ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1
|
|
|
4964
4960
|
};
|
|
4965
4961
|
}
|
|
4966
4962
|
});
|
|
4967
|
-
const
|
|
4963
|
+
const zs = {
|
|
4968
4964
|
__name: "report",
|
|
4969
4965
|
setup(e) {
|
|
4970
4966
|
const t = useRoute(), l = N(() => {
|
|
@@ -4975,54 +4971,159 @@ const La = {
|
|
|
4975
4971
|
}
|
|
4976
4972
|
return "/focusbi_report/view/" + n;
|
|
4977
4973
|
});
|
|
4978
|
-
return (n, o) => (i(), m(
|
|
4979
|
-
default: r((
|
|
4980
|
-
c(
|
|
4974
|
+
return (n, o) => (i(), m(ae, { "schema-api": k(l) }, {
|
|
4975
|
+
default: r((s) => [
|
|
4976
|
+
c(Js, K(X(s)), null, 16)
|
|
4981
4977
|
]),
|
|
4982
4978
|
_: 1
|
|
4983
4979
|
}, 8, ["schema-api"]));
|
|
4984
4980
|
}
|
|
4985
4981
|
};
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4982
|
+
const Ks = (e) => c("div", null, [e.test]), Ws = {
|
|
4983
|
+
card: bl,
|
|
4984
|
+
form: J,
|
|
4985
|
+
table: ne,
|
|
4986
|
+
test: Ks,
|
|
4987
|
+
row: _l,
|
|
4988
|
+
col: yl
|
|
4989
|
+
}, Zs = {
|
|
4990
|
+
card: {
|
|
4991
|
+
type: "card",
|
|
4992
|
+
props: {
|
|
4993
|
+
class: "render-card",
|
|
4994
|
+
shadow: "never"
|
|
4995
|
+
}
|
|
4996
|
+
},
|
|
4997
|
+
form: {
|
|
4998
|
+
type: "form",
|
|
4999
|
+
props: {
|
|
5000
|
+
afterReset: ""
|
|
5001
|
+
}
|
|
5002
|
+
},
|
|
5003
|
+
table: {
|
|
5004
|
+
type: "table",
|
|
5005
|
+
props: {
|
|
5006
|
+
syncUrl: !1
|
|
5007
|
+
}
|
|
5008
|
+
}
|
|
5009
|
+
};
|
|
5010
|
+
function Qs(e) {
|
|
5011
|
+
const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
|
|
5012
|
+
delete t.span;
|
|
5013
|
+
let o = {
|
|
5014
|
+
...t,
|
|
5015
|
+
type: l[0]
|
|
5016
|
+
};
|
|
5017
|
+
for (let s = 1; s < l.length; s++)
|
|
5018
|
+
o = {
|
|
5019
|
+
type: l[s],
|
|
5020
|
+
children: [o]
|
|
5021
|
+
};
|
|
5022
|
+
return o.span = n, je([o]);
|
|
5023
|
+
}
|
|
5024
|
+
function je(e) {
|
|
5025
|
+
const t = {
|
|
5026
|
+
type: "row",
|
|
5027
|
+
props: {
|
|
5028
|
+
gutter: 20,
|
|
5029
|
+
class: "render-row"
|
|
5030
|
+
},
|
|
5031
|
+
children: []
|
|
5032
|
+
};
|
|
5033
|
+
return e.forEach((l) => {
|
|
5034
|
+
var a, u, p;
|
|
5035
|
+
let n = Object.assign({}, l);
|
|
5036
|
+
if (Q((a = n.props) == null ? void 0 : a.style)) {
|
|
5037
|
+
let d = "";
|
|
5038
|
+
Object.keys((u = n.props) == null ? void 0 : u.style).forEach((f) => {
|
|
5039
|
+
var _;
|
|
5040
|
+
d += f + ":" + ((_ = n.props) == null ? void 0 : _.style[f]) + ";";
|
|
5041
|
+
}), n.props.style = d;
|
|
5042
|
+
}
|
|
5043
|
+
const o = {
|
|
5044
|
+
span: (p = n.span) != null ? p : 24,
|
|
5045
|
+
class: "render-col"
|
|
5046
|
+
};
|
|
5047
|
+
if (delete n.span, n.type.indexOf(".") > 0) {
|
|
5048
|
+
t.children.push({
|
|
5049
|
+
type: "col",
|
|
5050
|
+
props: o,
|
|
5051
|
+
children: Qs(n)
|
|
5052
|
+
});
|
|
5053
|
+
return;
|
|
5054
|
+
}
|
|
5055
|
+
n = F({
|
|
5056
|
+
props: {}
|
|
5057
|
+
}, Zs[n.type] || {}, n);
|
|
5058
|
+
const s = gt(n.children);
|
|
5059
|
+
s.length && (n.children = je(s)), t.children.push({
|
|
5060
|
+
type: "col",
|
|
5061
|
+
props: o,
|
|
5062
|
+
children: [n]
|
|
5063
|
+
});
|
|
5064
|
+
}), [t];
|
|
5065
|
+
}
|
|
5066
|
+
function gt(e) {
|
|
5067
|
+
return ot(e) ? e : Q(e) ? [e] : [];
|
|
5068
|
+
}
|
|
5069
|
+
let Ce = {};
|
|
5070
|
+
const kt = (e) => {
|
|
5071
|
+
const t = Ws[e.type] || Ce[e.type] || e.type;
|
|
5072
|
+
return Rt(t, e.props, {
|
|
5073
|
+
default: () => gt(e.children).map((l) => kt(l))
|
|
5074
|
+
});
|
|
5075
|
+
}, Xs = (e) => (Object.keys(Ce).length === 0 && (Ce = Pt().appContext.components), je(Object.values(e.schema)).map((l) => kt(l))), Ys = {
|
|
5076
|
+
__name: "custom",
|
|
5077
|
+
setup(e) {
|
|
5078
|
+
const t = P([]), l = (n, o) => (t.value = Lt(n), n);
|
|
5079
|
+
return (n, o) => (i(), m(ae, { "schema-handler": l }, {
|
|
5080
|
+
default: r(() => [
|
|
5081
|
+
c(k(Xs), { schema: k(t) }, null, 8, ["schema"])
|
|
5082
|
+
]),
|
|
5083
|
+
_: 1
|
|
5084
|
+
}));
|
|
5085
|
+
}
|
|
5086
|
+
};
|
|
5087
|
+
let ee = {};
|
|
5088
|
+
function bi(e) {
|
|
5089
|
+
ee = e;
|
|
4989
5090
|
}
|
|
4990
|
-
const
|
|
5091
|
+
const ea = (e) => {
|
|
4991
5092
|
const t = (l) => {
|
|
4992
5093
|
const n = "./views/" + l + ".vue";
|
|
4993
|
-
return
|
|
5094
|
+
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
5095
|
};
|
|
4995
5096
|
if (e.path === "#")
|
|
4996
|
-
return
|
|
5097
|
+
return ye;
|
|
4997
5098
|
switch (e.page_type) {
|
|
4998
|
-
case
|
|
4999
|
-
return
|
|
5000
|
-
case
|
|
5001
|
-
return
|
|
5002
|
-
case
|
|
5003
|
-
case
|
|
5099
|
+
case L.list:
|
|
5100
|
+
return vt;
|
|
5101
|
+
case L.form:
|
|
5102
|
+
return Se;
|
|
5103
|
+
case L.custom:
|
|
5104
|
+
case L.localComp:
|
|
5004
5105
|
return t(e.view || "");
|
|
5005
|
-
case
|
|
5006
|
-
return
|
|
5007
|
-
case
|
|
5008
|
-
return
|
|
5009
|
-
case
|
|
5010
|
-
return
|
|
5106
|
+
case L.tree:
|
|
5107
|
+
return Ds;
|
|
5108
|
+
case L.report:
|
|
5109
|
+
return zs;
|
|
5110
|
+
case L.customSchema:
|
|
5111
|
+
return Ys;
|
|
5011
5112
|
}
|
|
5012
|
-
return
|
|
5113
|
+
return ye;
|
|
5013
5114
|
};
|
|
5014
|
-
function
|
|
5115
|
+
function ta(e) {
|
|
5015
5116
|
let t = e.path;
|
|
5016
|
-
return e.type === D.menu && e.page_type ===
|
|
5117
|
+
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
5118
|
}
|
|
5018
|
-
function
|
|
5119
|
+
function la(e) {
|
|
5019
5120
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5020
5121
|
}
|
|
5021
|
-
const
|
|
5122
|
+
const Et = (e) => {
|
|
5022
5123
|
const t = e.type !== D.page, l = {
|
|
5023
|
-
path:
|
|
5024
|
-
name: e.id + "_" +
|
|
5025
|
-
component:
|
|
5124
|
+
path: ta(e),
|
|
5125
|
+
name: e.id + "_" + la(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5126
|
+
component: ea(e),
|
|
5026
5127
|
meta: {
|
|
5027
5128
|
id: e.id,
|
|
5028
5129
|
pageId: e.id,
|
|
@@ -5033,13 +5134,13 @@ const _t = (e) => {
|
|
|
5033
5134
|
menuType: e.type,
|
|
5034
5135
|
keepAlive: !1
|
|
5035
5136
|
},
|
|
5036
|
-
children: e.children ? e.children.map((n) =>
|
|
5137
|
+
children: e.children ? e.children.map((n) => Et(n)) : []
|
|
5037
5138
|
};
|
|
5038
|
-
if (e.page_type ===
|
|
5039
|
-
const n = e.path + "/list", o = e.path + "/form",
|
|
5139
|
+
if (e.page_type === L.entity) {
|
|
5140
|
+
const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
|
|
5040
5141
|
path: n,
|
|
5041
5142
|
name: e.name + "\u5217\u8868" + e.id,
|
|
5042
|
-
component:
|
|
5143
|
+
component: vt,
|
|
5043
5144
|
meta: {
|
|
5044
5145
|
id: e.id + 99999,
|
|
5045
5146
|
title: "\u5217\u8868",
|
|
@@ -5051,7 +5152,7 @@ const _t = (e) => {
|
|
|
5051
5152
|
}, {
|
|
5052
5153
|
path: o,
|
|
5053
5154
|
name: e.name + "\u65B0\u5EFA" + e.id,
|
|
5054
|
-
component:
|
|
5155
|
+
component: Se,
|
|
5055
5156
|
meta: {
|
|
5056
5157
|
id: e.id + 99999 + 1,
|
|
5057
5158
|
title: "\u65B0\u5EFA",
|
|
@@ -5061,9 +5162,9 @@ const _t = (e) => {
|
|
|
5061
5162
|
pageId: e.id
|
|
5062
5163
|
}
|
|
5063
5164
|
}, {
|
|
5064
|
-
path:
|
|
5165
|
+
path: s,
|
|
5065
5166
|
name: e.name + "\u7F16\u8F91" + e.id,
|
|
5066
|
-
component:
|
|
5167
|
+
component: Se,
|
|
5067
5168
|
meta: {
|
|
5068
5169
|
id: e.id + 99999 + 2,
|
|
5069
5170
|
title: "\u7F16\u8F91",
|
|
@@ -5073,7 +5174,7 @@ const _t = (e) => {
|
|
|
5073
5174
|
pageId: e.id
|
|
5074
5175
|
}
|
|
5075
5176
|
}];
|
|
5076
|
-
l.children = [...
|
|
5177
|
+
l.children = [...a, ...l.children];
|
|
5077
5178
|
}
|
|
5078
5179
|
if (l.children && l.children.length > 0) {
|
|
5079
5180
|
let n = !0;
|
|
@@ -5082,16 +5183,16 @@ const _t = (e) => {
|
|
|
5082
5183
|
}), l.meta && (l.meta.menuType = t ? D.dir : D.hidden), n) {
|
|
5083
5184
|
l.meta && (l.meta.menuType = D.menu);
|
|
5084
5185
|
let o = "/";
|
|
5085
|
-
for (let
|
|
5086
|
-
if (l.children[
|
|
5087
|
-
o = l.children[
|
|
5186
|
+
for (let s = 0; s < l.children.length; s++)
|
|
5187
|
+
if (l.children[s].path.indexOf("/:") === -1) {
|
|
5188
|
+
o = l.children[s].path;
|
|
5088
5189
|
break;
|
|
5089
5190
|
}
|
|
5090
5191
|
l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
|
|
5091
5192
|
}
|
|
5092
5193
|
}
|
|
5093
5194
|
return l;
|
|
5094
|
-
},
|
|
5195
|
+
}, na = (e) => {
|
|
5095
5196
|
const t = [];
|
|
5096
5197
|
return e.forEach((l) => {
|
|
5097
5198
|
const n = {
|
|
@@ -5100,51 +5201,51 @@ const _t = (e) => {
|
|
|
5100
5201
|
routes: []
|
|
5101
5202
|
};
|
|
5102
5203
|
l.routes.forEach((o) => {
|
|
5103
|
-
n.routes.push(
|
|
5204
|
+
n.routes.push(Et(o));
|
|
5104
5205
|
}), t.push(n);
|
|
5105
5206
|
}), t;
|
|
5106
5207
|
};
|
|
5107
|
-
function
|
|
5208
|
+
function oa(e) {
|
|
5108
5209
|
e.beforeEach(async (t, l, n) => {
|
|
5109
|
-
if (
|
|
5210
|
+
if (_t().indexOf(t.path) !== -1) {
|
|
5110
5211
|
n();
|
|
5111
5212
|
return;
|
|
5112
5213
|
}
|
|
5113
|
-
if (
|
|
5214
|
+
if (hs()) {
|
|
5114
5215
|
n();
|
|
5115
5216
|
return;
|
|
5116
5217
|
}
|
|
5117
5218
|
await S.dispatch("user/info");
|
|
5118
|
-
const o = await S.dispatch("user/loadRemoteRoutes"),
|
|
5119
|
-
|
|
5120
|
-
|
|
5219
|
+
const o = await S.dispatch("user/loadRemoteRoutes"), s = na(o);
|
|
5220
|
+
s.forEach((a) => {
|
|
5221
|
+
a.routes.forEach((u) => {
|
|
5121
5222
|
e.addRoute({
|
|
5122
5223
|
path: "/",
|
|
5123
|
-
component:
|
|
5224
|
+
component: ht,
|
|
5124
5225
|
children: [u]
|
|
5125
5226
|
});
|
|
5126
5227
|
});
|
|
5127
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter",
|
|
5228
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", s), await e.replace(t), n();
|
|
5128
5229
|
});
|
|
5129
5230
|
}
|
|
5130
|
-
function
|
|
5231
|
+
function sa(e) {
|
|
5131
5232
|
e.beforeEach(async (t, l, n) => {
|
|
5132
5233
|
var u;
|
|
5133
|
-
const
|
|
5134
|
-
for (let p =
|
|
5234
|
+
const s = [S.state.settings.title || ""], a = t.matched.length;
|
|
5235
|
+
for (let p = a; p > a - 3; p--) {
|
|
5135
5236
|
const d = t.matched[p - 1];
|
|
5136
|
-
(u = d == null ? void 0 : d.meta) != null && u.title &&
|
|
5237
|
+
(u = d == null ? void 0 : d.meta) != null && u.title && s.push(d.meta.title + "");
|
|
5137
5238
|
}
|
|
5138
|
-
|
|
5239
|
+
s.length > 1 && (document.title = s.reverse().join("-")), n();
|
|
5139
5240
|
}), e.afterEach(async (t, l, n) => {
|
|
5140
5241
|
Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
|
|
5141
5242
|
});
|
|
5142
5243
|
}
|
|
5143
|
-
function
|
|
5144
|
-
|
|
5244
|
+
function aa(e) {
|
|
5245
|
+
_s(e), fs(e), oa(e), sa(e);
|
|
5145
5246
|
}
|
|
5146
|
-
|
|
5147
|
-
const
|
|
5247
|
+
aa(oe);
|
|
5248
|
+
const ia = {
|
|
5148
5249
|
beforeMount(e, t) {
|
|
5149
5250
|
e.clickOutsideEvent = function(l) {
|
|
5150
5251
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5153,23 +5254,23 @@ const Ga = {
|
|
|
5153
5254
|
unmounted(e) {
|
|
5154
5255
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5155
5256
|
}
|
|
5156
|
-
},
|
|
5257
|
+
}, z = Il(), ra = {
|
|
5157
5258
|
mounted: (e, t) => {
|
|
5158
5259
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5159
|
-
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value &&
|
|
5260
|
+
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && z.emit("right-click", { event: l, data: t.value });
|
|
5160
5261
|
});
|
|
5161
5262
|
}
|
|
5162
|
-
},
|
|
5263
|
+
}, ua = {
|
|
5163
5264
|
mounted(e) {
|
|
5164
5265
|
}
|
|
5165
5266
|
};
|
|
5166
|
-
function
|
|
5267
|
+
function ze(e, t) {
|
|
5167
5268
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5168
5269
|
for (; n; )
|
|
5169
5270
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5170
5271
|
return l;
|
|
5171
5272
|
}
|
|
5172
|
-
const
|
|
5273
|
+
const ca = {
|
|
5173
5274
|
mounted: (e, t) => {
|
|
5174
5275
|
if (e === null || !t.value.dev)
|
|
5175
5276
|
return;
|
|
@@ -5180,61 +5281,61 @@ const Ka = {
|
|
|
5180
5281
|
l.classList.add("devtool-hover");
|
|
5181
5282
|
const n = document.createElement("i");
|
|
5182
5283
|
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 =
|
|
5284
|
+
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
5285
|
};
|
|
5185
5286
|
const o = document.createElement("span");
|
|
5186
5287
|
o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
|
|
5187
|
-
const
|
|
5188
|
-
|
|
5189
|
-
|
|
5288
|
+
const s = document.createElement("i");
|
|
5289
|
+
s.className = "iconfont ra-editor1", o.appendChild(s), o.onclick = (p) => {
|
|
5290
|
+
z.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
|
|
5190
5291
|
}, n.appendChild(o);
|
|
5191
|
-
const
|
|
5192
|
-
|
|
5292
|
+
const a = document.createElement("span");
|
|
5293
|
+
a.className = "dev-action-del", a.title = "\u5220\u9664";
|
|
5193
5294
|
const u = document.createElement("i");
|
|
5194
|
-
u.className = "iconfont ra-cut",
|
|
5195
|
-
|
|
5196
|
-
}, n.appendChild(
|
|
5295
|
+
u.className = "iconfont ra-cut", a.appendChild(u), a.onclick = (p) => {
|
|
5296
|
+
z.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
5297
|
+
}, n.appendChild(a), l.insertBefore(n, l.firstChild);
|
|
5197
5298
|
}
|
|
5198
|
-
},
|
|
5299
|
+
}, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5199
5300
|
__proto__: null,
|
|
5200
|
-
outClick:
|
|
5201
|
-
rightClick:
|
|
5202
|
-
resize:
|
|
5203
|
-
devtool:
|
|
5301
|
+
outClick: ia,
|
|
5302
|
+
rightClick: ra,
|
|
5303
|
+
resize: ua,
|
|
5304
|
+
devtool: ca
|
|
5204
5305
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5205
|
-
let
|
|
5206
|
-
function
|
|
5207
|
-
return e ?
|
|
5306
|
+
let re;
|
|
5307
|
+
function _i(e) {
|
|
5308
|
+
return e ? Le(F(de.axios, e)) : re;
|
|
5208
5309
|
}
|
|
5209
|
-
function
|
|
5210
|
-
const t =
|
|
5211
|
-
o.unshift(n), o.forEach((
|
|
5212
|
-
|
|
5213
|
-
}), t != null && t.mock &&
|
|
5214
|
-
"X-Token":
|
|
5215
|
-
})),
|
|
5310
|
+
function yi(e) {
|
|
5311
|
+
const t = F(de, e), l = Mt(Tl), n = ya(t), o = t.plugins || [];
|
|
5312
|
+
o.unshift(n), o.forEach((s) => {
|
|
5313
|
+
_a(l, s);
|
|
5314
|
+
}), 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(() => ({
|
|
5315
|
+
"X-Token": Re()
|
|
5316
|
+
})), oe.isReady().then(() => l.mount("#app"));
|
|
5216
5317
|
}
|
|
5217
|
-
function
|
|
5318
|
+
function da(e, t = {}) {
|
|
5218
5319
|
Object.keys(t).forEach((l) => {
|
|
5219
5320
|
e.component(l, t[l]);
|
|
5220
5321
|
});
|
|
5221
5322
|
}
|
|
5222
|
-
function
|
|
5323
|
+
function ma(e = []) {
|
|
5223
5324
|
e.forEach((t) => {
|
|
5224
|
-
|
|
5325
|
+
oe.addRoute(t);
|
|
5225
5326
|
}), S.commit("user/setCustomRoutes", e);
|
|
5226
5327
|
}
|
|
5227
|
-
function
|
|
5328
|
+
function fa(e, t) {
|
|
5228
5329
|
t.forEach((l) => {
|
|
5229
|
-
|
|
5330
|
+
Q(l) && (l = [l]), e.use(...l);
|
|
5230
5331
|
});
|
|
5231
5332
|
}
|
|
5232
|
-
function
|
|
5333
|
+
function ha(e, t = {}) {
|
|
5233
5334
|
Object.keys(t).forEach((l) => {
|
|
5234
5335
|
e.directive(l, t[l]);
|
|
5235
5336
|
});
|
|
5236
5337
|
}
|
|
5237
|
-
function
|
|
5338
|
+
function ba(e = {}) {
|
|
5238
5339
|
const t = ["app", "settings", "user"];
|
|
5239
5340
|
Object.keys(e).forEach((l) => {
|
|
5240
5341
|
if (t.indexOf(l) !== -1) {
|
|
@@ -5244,39 +5345,39 @@ function es(e = {}) {
|
|
|
5244
5345
|
S.registerModule(l, e[l]);
|
|
5245
5346
|
});
|
|
5246
5347
|
}
|
|
5247
|
-
function
|
|
5248
|
-
|
|
5348
|
+
function _a(e, t) {
|
|
5349
|
+
da(e, t.components || {}), ma(t.routes || []), fa(e, t.use || []), ha(e, t.directives || {}), ba(t.storeModules || {}), rt(t.mockApis || []);
|
|
5249
5350
|
}
|
|
5250
|
-
function
|
|
5351
|
+
function ya(e) {
|
|
5251
5352
|
var t;
|
|
5252
5353
|
return {
|
|
5253
|
-
components: { VIcon:
|
|
5254
|
-
directives:
|
|
5354
|
+
components: { VIcon: kl },
|
|
5355
|
+
directives: pa,
|
|
5255
5356
|
use: [
|
|
5256
5357
|
S,
|
|
5257
|
-
|
|
5258
|
-
[
|
|
5358
|
+
oe,
|
|
5359
|
+
[ml, { locale: Ae, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5259
5360
|
]
|
|
5260
5361
|
};
|
|
5261
5362
|
}
|
|
5262
5363
|
export {
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5364
|
+
Ko as BaseSso,
|
|
5365
|
+
ye as Container,
|
|
5366
|
+
Wo as DingTalk,
|
|
5367
|
+
ht as Layout,
|
|
5267
5368
|
D as MenuType,
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5369
|
+
Ue as Message,
|
|
5370
|
+
He as MessageBox,
|
|
5371
|
+
L as PageType,
|
|
5372
|
+
Qo as allSso,
|
|
5373
|
+
yi as createAdmin,
|
|
5374
|
+
z as eventBus,
|
|
5375
|
+
sn as getCmp,
|
|
5376
|
+
re as http,
|
|
5377
|
+
Le as instance,
|
|
5378
|
+
bi as regViews,
|
|
5379
|
+
hi as setCmp,
|
|
5380
|
+
na as transRemoteModules,
|
|
5381
|
+
_i as useHttp
|
|
5281
5382
|
};
|
|
5282
5383
|
//# sourceMappingURL=index.es.js.map
|