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