@okiss/oms 0.0.28 → 0.0.29

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 CHANGED
@@ -1,20 +1,23 @@
1
- import { defineComponent as N, onBeforeMount as Ge, provide as vt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as gt, createElementBlock as f, Fragment as k, renderList as $, toDisplayString as x, normalizeClass as H, renderSlot as Y, mergeProps as q, createCommentVNode as E, toRefs as kt, ref as R, normalizeStyle as Et, createElementVNode as b, Transition as wt, pushScopeId as Je, popScopeId as ze, resolveDynamicComponent as Ke, normalizeProps as J, guardReactiveProps as Z, withDirectives as _e, vModelText as Le, resolveDirective as St, onMounted as Ct, createApp as Bt } from "vue";
2
- import { ElConfigProvider as xt, ElBreadcrumbItem as $t, ElBreadcrumb as It, ElRow as le, ElMain as At, ElAside as Tt, ElContainer as Ft, ElDivider as We, ElButton as ae, ElOption as we, ElSelect as Se, ElFormItem as Ze, ElForm as Qe, ElCol as re, ElDrawer as Xe, ElDropdownItem as Dt, ElDropdownMenu as Ot, ElDropdown as Pt, ElMenuItem as Rt, ElSubMenu as Lt, ElOptionGroup as Mt, ElMenu as jt, ElScrollbar as Nt, ElBacktop as Vt, ElMessage as qt, ElAlert as ye, ElTree as Ut, ElCard as Ce } from "element-plus/es";
1
+ var gt = Object.defineProperty;
2
+ var kt = (e, t, l) => t in e ? gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
+ var P = (e, t, l) => (kt(e, typeof t != "symbol" ? t + "" : t, l), l);
4
+ import { defineComponent as V, onBeforeMount as Je, provide as Et, resolveComponent as v, openBlock as i, createBlock as m, unref as w, withCtx as r, createVNode as c, computed as N, createTextVNode as g, TransitionGroup as wt, createElementBlock as f, Fragment as k, renderList as A, toDisplayString as I, normalizeClass as G, renderSlot as ee, mergeProps as U, createCommentVNode as E, toRefs as St, ref as L, normalizeStyle as Ct, createElementVNode as b, Transition as Bt, pushScopeId as ze, popScopeId as Ke, resolveDynamicComponent as We, normalizeProps as z, guardReactiveProps as Q, withDirectives as ye, vModelText as Me, resolveDirective as xt, onMounted as It, isRef as At, createApp as $t } from "vue";
5
+ import { ElConfigProvider as Tt, ElBreadcrumbItem as Ft, ElBreadcrumb as Dt, ElRow as oe, ElMain as Ot, ElAside as Pt, ElContainer as Rt, ElDivider as Ze, ElButton as ie, ElOption as Se, ElSelect as Ce, ElFormItem as Qe, ElForm as Xe, ElCol as ue, ElDrawer as Ye, ElDropdownItem as Lt, ElDropdownMenu as Mt, ElDropdown as jt, ElMenuItem as Nt, ElSubMenu as Vt, ElOptionGroup as qt, ElMenu as Ut, ElScrollbar as Ht, ElBacktop as Gt, ElMessage as Jt, ElAlert as ve, ElTree as zt, ElCard as Be } from "element-plus/es";
3
6
  import "element-plus/es/components/config-provider/style/css";
4
- import Be from "element-plus/lib/locale/lang/zh-cn";
5
- import { addNewStyle as Ht, addNewStyleTag as Gt, queryParams as Jt, logGroup as zt, isString as xe, compactObject as Ye, showEleByClassName as et, waterMarker as Kt, Cache as me, isExternal as Me, getQueryParam as Wt, createIFrame as Zt, strVarReplace as K, obj2Param as Qt, isObject as $e, effectDataTrans as Xt, isArray as Yt } from "@okiss/utils";
6
- import fe from "mockjs";
7
- import el, { cloneDeep as y, merge as O, get as ee, unset as tt } from "lodash";
8
- import Ie from "axios";
9
- import L from "js-cookie";
10
- import { createStore as tl, useStore as lt, mapGetters as Ae } from "vuex";
11
- import ll, { ElMessage as ol, ElMessageBox as nl } from "element-plus";
7
+ import xe from "element-plus/lib/locale/lang/zh-cn";
8
+ import { addNewStyle as Kt, addNewStyleTag as Wt, queryParams as Zt, logGroup as Qt, isString as Ie, compactObject as et, showEleByClassName as tt, waterMarker as Xt, Cache as fe, isExternal as je, getQueryParam as Yt, createIFrame as el, strVarReplace as W, obj2Param as tl, isObject as Ae, effectDataTrans as ll, isArray as ol } from "@okiss/utils";
9
+ import he from "mockjs";
10
+ import nl, { cloneDeep as y, merge as O, get as te, unset as lt } from "lodash";
11
+ import $e from "axios";
12
+ import M from "js-cookie";
13
+ import { createStore as al, useStore as ot, mapGetters as Te } from "vuex";
14
+ import sl, { ElMessage as il, ElMessageBox as rl } from "element-plus";
12
15
  import "element-plus/dist/index.css";
13
16
  import "dayjs/locale/zh-cn";
14
- import { VForm as W, VBtn as Te, JsonView as Fe, VTable as ie, VChart as sl, setUploadHeaderHandle as al, VIcon as il } from "@okiss/vbtf";
17
+ import { VForm as Z, VBtn as Fe, JsonView as De, VTable as re, VChart as ul, setUploadHeaderHandle as cl, VIcon as pl } from "@okiss/vbtf";
15
18
  import "normalize.css/normalize.css";
16
19
  import "@okiss/vbtf/style.css";
17
- import { useRoute as ue, onBeforeRouteLeave as rl, useRouter as ul, createRouter as cl, createWebHashHistory as dl, onBeforeRouteUpdate as pl } from "vue-router";
20
+ import { useRoute as ce, onBeforeRouteLeave as dl, useRouter as ml, createRouter as fl, createWebHashHistory as hl, onBeforeRouteUpdate as bl } 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 ml from "path-to-regexp";
29
+ import * as _l 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 fl from "mitt";
39
+ import yl 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 hl } from "@vueuse/core";
46
+ import { useEventListener as vl } 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 bl from "vue3-markdown-it";
50
+ import gl from "vue3-markdown-it";
48
51
  import "element-plus/es/components/message/style/css";
49
- import ve from "nprogress";
52
+ import ge 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 _l = /* @__PURE__ */ N({
60
+ const kl = /* @__PURE__ */ V({
58
61
  __name: "App",
59
62
  setup(e) {
60
- var l, n, o, s;
61
- Ge(() => {
62
- const a = document.getElementById("preloader");
63
- a !== null && (document.body.removeChild(a), Ht("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Gt(`.iconfont {
63
+ var l, n, o, a;
64
+ Je(() => {
65
+ const s = document.getElementById("preloader");
66
+ s !== null && (document.body.removeChild(s), Kt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Wt(`.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 = Be;
71
- return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && vt("vsPath", (s = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : s.vsPath), (a, c) => {
72
- const d = v("router-view"), p = xt;
73
- return i(), m(p, { locale: T(t) }, {
73
+ const t = xe;
74
+ return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && Et("vsPath", (a = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : a.vsPath), (s, u) => {
75
+ const p = v("router-view"), d = Tt;
76
+ return i(), m(d, { locale: w(t) }, {
74
77
  default: r(() => [
75
- u(d)
78
+ c(p)
76
79
  ]),
77
80
  _: 1
78
81
  }, 8, ["locale"]);
79
82
  };
80
83
  }
81
84
  });
82
- var Q = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(Q || {});
83
- const yl = {
85
+ var X = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(X || {});
86
+ const El = {
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
- }, je = [
418
+ }, Ne = [
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
- ], vl = {
473
+ ], wl = {
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: je,
539
+ batchButton: Ne,
537
540
  rowButton: [
538
541
  {
539
542
  type: "jump",
@@ -564,7 +567,7 @@ const yl = {
564
567
  }
565
568
  ],
566
569
  normalButton: [
567
- ...el.cloneDeep(je),
570
+ ...nl.cloneDeep(Ne),
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
- }, gl = {
582
+ }, Sl = {
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
- }, kl = {
603
+ }, Cl = {
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
- }, El = {
640
+ }, Bl = {
638
641
  afterSubmit: "",
639
642
  afterReset: "",
640
643
  formItems: [
@@ -673,9 +676,9 @@ const yl = {
673
676
  label: "span"
674
677
  }
675
678
  ]
676
- }, wl = { form: yl, table: vl, listMock: gl, layoutForm: kl, layoutSection: El }, Sl = [
679
+ }, xl = { form: El, table: wl, listMock: Sl, layoutForm: Cl, layoutSection: Bl }, Il = [
677
680
  {
678
- method: Q.POST,
681
+ method: X.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: Q.GET,
694
+ method: X.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: Q.GET,
708
+ method: X.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: Q.GET,
720
- response: (e) => wl.listMock
722
+ method: X.GET,
723
+ response: (e) => xl.listMock
721
724
  }
722
- ], Cl = [
723
- ...Sl
724
- ], Bl = {
725
+ ], Al = [
726
+ ...Il
727
+ ], $l = {
725
728
  baseURL: "/api",
726
729
  withCredentials: !0,
727
730
  timeout: 5e3,
728
731
  cacheEnable: !0
729
- }, ot = {
732
+ }, nt = {
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: Be
746
+ locale: xe
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
- }, ce = {
755
- axios: Bl,
756
- settings: ot,
757
+ }, pe = {
758
+ axios: $l,
759
+ settings: nt,
757
760
  plugins: [],
758
761
  mock: !1
759
- }, ge = {};
760
- function nt(e) {
762
+ }, ke = {};
763
+ function at(e) {
761
764
  e.forEach((t) => {
762
765
  const l = st(t);
763
- ge[`${t.method}::${l}`] = t;
766
+ ke[`${t.method}::${l}`] = t;
764
767
  });
765
768
  }
766
- nt(Cl);
769
+ at(Al);
767
770
  function st(e) {
768
771
  var n;
769
- let t = e.url, l = e.baseURL || ((n = ce.axios) == null ? void 0 : n.baseURL);
772
+ let t = e.url, l = e.baseURL || ((n = pe.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 xl() {
773
- Object.keys(ge).forEach((e) => {
774
- const t = ge[e], l = st(t);
775
- fe.mock(l, t.method, function(n) {
776
- const { url: o, type: s, body: a } = n, c = Jt(o), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), h = fe.mock(p);
777
- return zt(o, { type: s, query: c, data: d, response: h }), fe.mock(h);
775
+ function Tl() {
776
+ Object.keys(ke).forEach((e) => {
777
+ const t = ke[e], l = st(t);
778
+ he.mock(l, t.method, function(n) {
779
+ const { url: o, type: a, body: s } = n, u = Zt(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: u, data: p }), h = he.mock(d);
780
+ return Qt(o, { type: a, query: u, data: p, response: h }), he.mock(h);
778
781
  });
779
782
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
780
783
  }
781
- const De = "oms:token";
782
- function Oe() {
783
- return L.get(De) || "";
784
+ const Oe = "oms:token";
785
+ function Pe() {
786
+ return M.get(Oe) || "";
784
787
  }
785
- function $l(e) {
786
- const t = new Date(new Date().getTime() + (w.state.settings.tokenExpire || 864e5));
787
- return L.set(De, e, { expires: t });
788
+ function Fl(e) {
789
+ const t = new Date(new Date().getTime() + (S.state.settings.tokenExpire || 864e5));
790
+ return M.set(Oe, e, { expires: t });
788
791
  }
789
- function at() {
790
- return L.remove(De);
792
+ function it() {
793
+ return M.remove(Oe);
791
794
  }
792
- const Il = {
795
+ const Dl = {
793
796
  name: "",
794
797
  nickname: "",
795
798
  avatar: "",
796
- token: Oe(),
799
+ token: Pe(),
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
- }, Al = {
808
+ }, Ol = {
806
809
  namespaced: !0,
807
- state: Il,
810
+ state: Dl,
808
811
  mutations: {
809
812
  updateToken(e, t) {
810
- e.token = t, $l(t);
813
+ e.token = t, Fl(t);
811
814
  },
812
815
  removeToken(e) {
813
- e.token = "", at();
816
+ e.token = "", it();
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: Oe(),
832
+ token: Pe(),
830
833
  customRouter: [],
831
834
  remoteRouter: [],
832
835
  menuRoutes: [],
@@ -844,17 +847,17 @@ const Il = {
844
847
  state: t,
845
848
  rootState: l
846
849
  }, n) {
847
- return new Promise((o, s) => {
850
+ return new Promise((o, a) => {
848
851
  l.http ? l.http.request({
849
852
  url: "/user/login",
850
853
  method: "POST",
851
854
  data: n
852
- }).then((a) => {
853
- var c;
854
- e("updateToken", (c = a.data) == null ? void 0 : c.token), o(!0);
855
- }).catch((a) => {
856
- s(a);
857
- }) : s("http client not init");
855
+ }).then((s) => {
856
+ var u;
857
+ e("updateToken", (u = s.data) == null ? void 0 : u.token), o(!0);
858
+ }).catch((s) => {
859
+ a(s);
860
+ }) : a("http client not init");
858
861
  });
859
862
  },
860
863
  logout({ commit: e }) {
@@ -866,9 +869,9 @@ const Il = {
866
869
  url: "/user/info",
867
870
  method: "GET"
868
871
  }).then((o) => {
869
- var a, c, d, p, h;
870
- const s = ((a = o.data) == null ? void 0 : a.role_ids) || [];
871
- e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: s }), e("updateState", { key: "env", value: (p = o.data) == null ? void 0 : p.env }), !L.get("username") && L.set("username", (h = o.data) == null ? void 0 : h.name), l(!0);
872
+ var s, u, p, d, h;
873
+ const a = ((s = o.data) == null ? void 0 : s.role_ids) || [];
874
+ e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (p = o.data) == null ? void 0 : p.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (d = o.data) == null ? void 0 : d.env }), !M.get("username") && M.set("username", (h = o.data) == null ? void 0 : h.name), l(!0);
872
875
  }).catch((o) => {
873
876
  n(o);
874
877
  }) : n("http client not init");
@@ -880,21 +883,21 @@ const Il = {
880
883
  (o = t.http) == null || o.request({
881
884
  url: "/user/routes",
882
885
  method: "get"
883
- }).then((s) => {
884
- if (s.code === 0) {
885
- const a = s.data || [];
886
- l(a);
886
+ }).then((a) => {
887
+ if (a.code === 0) {
888
+ const s = a.data || [];
889
+ l(s);
887
890
  } else
888
891
  n("error");
889
- }).catch((s) => {
890
- console.log(s), n(s);
892
+ }).catch((a) => {
893
+ console.log(a), n(a);
891
894
  });
892
895
  });
893
896
  }
894
897
  }
895
- }, Tl = y(ot), Fl = {
898
+ }, Pl = y(nt), Rl = {
896
899
  namespaced: !0,
897
- state: Tl,
900
+ state: Pl,
898
901
  mutations: {
899
902
  updateSettings(e, t) {
900
903
  e = O(e, t);
@@ -905,24 +908,24 @@ const Il = {
905
908
  e("updateSettings", l);
906
909
  }
907
910
  }
908
- }, Dl = {
911
+ }, Ll = {
909
912
  sidebar: {
910
- opened: L.get("sidebarStatus") ? !!L.get("sidebarStatus") : !0,
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
- }, Ol = {
920
+ }, Ml = {
918
921
  namespaced: !0,
919
- state: Dl,
922
+ state: Ll,
920
923
  mutations: {
921
924
  TOGGLE_SIDEBAR: (e) => {
922
- e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? L.set("sidebarStatus", "1") : L.set("sidebarStatus", "0");
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
- L.set("sidebarStatus", "0"), e.sidebar.opened = !1, e.sidebar.withoutAnimation = t;
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
- }, Pl = {
963
+ }, jl = {
961
964
  currentCellItem: {}
962
- }, Rl = {
965
+ }, Nl = {
963
966
  namespaced: !0,
964
- state: Pl,
967
+ state: jl,
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
- }, w = tl({
978
+ }, S = al({
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: Al,
1003
- settings: Fl,
1004
- app: Ol,
1005
- builderSchema: Rl
1005
+ user: Ol,
1006
+ settings: Rl,
1007
+ app: Ml,
1008
+ builderSchema: Nl
1006
1009
  }
1007
- }), Ne = ol, Ve = nl, Ll = Ie.CancelToken, ne = {
1010
+ }), Ve = il, qe = rl, Vl = $e.CancelToken, ae = {
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
- }, Ml = {
1046
+ }, ql = {
1044
1047
  onFulfilled: function(e) {
1045
- return e.cacheEnable === !1 || (ne.pending(e) && ne.delTask(e), e.cancelToken = new Ll((t) => {
1046
- ne.addTask(e, t);
1048
+ return e.cacheEnable === !1 || (ae.pending(e) && ae.delTask(e), e.cancelToken = new Vl((t) => {
1049
+ ae.addTask(e, t);
1047
1050
  })), e;
1048
1051
  },
1049
1052
  onRejected(e) {
1050
1053
  return Promise.reject(e);
1051
1054
  }
1052
- }, jl = {
1055
+ }, Ul = {
1053
1056
  onFulfilled: function(e) {
1054
- return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ne.addCache(e.config, e.data), e;
1057
+ return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ae.addCache(e.config, e.data), e;
1055
1058
  },
1056
1059
  onRejected(e) {
1057
1060
  return Promise.reject(e);
1058
1061
  }
1059
1062
  };
1060
- function Nl() {
1061
- return w.state.user.token;
1063
+ function Hl() {
1064
+ return S.state.user.token;
1062
1065
  }
1063
- const Vl = {
1066
+ const Gl = {
1064
1067
  onFulfilled: function(e) {
1065
1068
  e.headers = e.headers || {};
1066
- const t = Nl();
1069
+ const t = Hl();
1067
1070
  return t && (e.headers["X-Token"] = t), e;
1068
1071
  }
1069
- }, ql = {
1072
+ }, Jl = {
1070
1073
  onFulfilled(e) {
1071
- var n, o, s, a, c, d, p;
1074
+ var n, o, a, s, 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 h = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
1076
+ const h = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
1074
1077
  if (e.data.code === 401) {
1075
- Ve.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
1078
+ qe.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" && (at(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
1084
+ _ === "confirm" && (it(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
1082
1085
  }
1083
1086
  });
1084
1087
  return;
1085
1088
  } else
1086
- Ne({
1089
+ Ve({
1087
1090
  message: h,
1088
1091
  type: "error",
1089
1092
  duration: 5 * 1e3
1090
1093
  });
1091
1094
  return Promise.reject(h);
1092
1095
  }
1093
- let l = (c = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : c._message_box;
1094
- return l !== void 0 && (xe(l) && (l = {
1095
- message: (p = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : p._message_box
1096
- }), Ve({
1096
+ let l = (u = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : u._message_box;
1097
+ return l !== void 0 && (Ie(l) && (l = {
1098
+ message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
1099
+ }), qe({
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 Ie.isCancel(e) ? Promise.reject("") : (Ne({
1107
+ return $e.isCancel(e) ? Promise.reject("") : (Ve({
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
- }, Ul = [
1113
+ }, zl = [
1111
1114
  {
1112
- request: Ml,
1113
- response: jl
1115
+ request: ql,
1116
+ response: Ul
1114
1117
  },
1115
1118
  {
1116
- request: Vl,
1117
- response: ql
1119
+ request: Gl,
1120
+ response: Jl
1118
1121
  }
1119
1122
  ];
1120
- function Pe(e = {}) {
1121
- const t = ce.axios || {}, l = O(t, e || {}), n = Ie.create({
1123
+ function Re(e = {}) {
1124
+ const t = pe.axios || {}, l = O(t, e || {}), n = $e.create({
1122
1125
  ...l
1123
1126
  });
1124
- return Ul.forEach((o) => {
1127
+ return zl.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 Hl = Pe();
1129
- const it = {};
1130
- function hi(e, t) {
1131
- it[e] = t;
1131
+ const Kl = Re();
1132
+ const rt = {};
1133
+ function Ys(e, t) {
1134
+ rt[e] = t;
1132
1135
  }
1133
- function Gl(e) {
1134
- return it[e];
1136
+ function Wl(e) {
1137
+ return rt[e];
1135
1138
  }
1136
- const Jl = N({
1139
+ const Zl = V({
1137
1140
  name: "Dashboard",
1138
1141
  setup() {
1139
- const e = lt(), t = j(() => e.getters.name), l = Gl("test");
1140
- return l ? () => u(l, null, null) : () => u("div", {
1142
+ const e = ot(), t = N(() => e.getters.name), l = Wl("test");
1143
+ return l ? () => c(l, null, null) : () => c("div", {
1141
1144
  class: "dashboard-container"
1142
- }, [u("div", {
1145
+ }, [c("div", {
1143
1146
  class: "dashboard-text"
1144
1147
  }, [g("Hi "), t.value, g(" \u{1F604}")])]);
1145
1148
  }
1146
1149
  });
1147
- const C = (e, t) => {
1150
+ const B = (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
- }, zl = /* @__PURE__ */ C(Jl, [["__scopeId", "data-v-07cd0734"]]);
1153
- const Kl = {
1155
+ }, Ql = /* @__PURE__ */ B(Zl, [["__scopeId", "data-v-07cd0734"]]);
1156
+ const Xl = {
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 ml.compile(e)(t);
1188
+ return _l.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
- }, Wl = {
1199
+ }, Yl = {
1197
1200
  key: 0,
1198
1201
  class: "no-redirect"
1199
- }, Zl = ["onClick"];
1200
- function Ql(e, t, l, n, o, s) {
1201
- const a = $t, c = It;
1202
- return i(), m(c, {
1202
+ }, eo = ["onClick"];
1203
+ function to(e, t, l, n, o, a) {
1204
+ const s = Ft, u = Dt;
1205
+ return i(), m(u, {
1203
1206
  class: "app-breadcrumb",
1204
1207
  separator: "/"
1205
1208
  }, {
1206
1209
  default: r(() => [
1207
- u(gt, { name: "breadcrumb" }, {
1210
+ c(wt, { name: "breadcrumb" }, {
1208
1211
  default: r(() => [
1209
- (i(!0), f(k, null, $(o.levelList, (d, p) => (i(), m(a, {
1210
- key: d.path
1212
+ (i(!0), f(k, null, A(o.levelList, (p, d) => (i(), m(s, {
1213
+ key: p.path
1211
1214
  }, {
1212
1215
  default: r(() => [
1213
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === o.levelList.length - 1 ? (i(), f("span", Wl, x(d.meta.title), 1)) : (i(), f("a", {
1216
+ p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), f("span", Yl, I(p.meta.title), 1)) : (i(), f("a", {
1214
1217
  key: 1,
1215
- onClick: (h) => s.handleLink(d)
1216
- }, x(d.meta.title), 9, Zl))
1218
+ onClick: (h) => a.handleLink(p)
1219
+ }, I(p.meta.title), 9, eo))
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 Xl = /* @__PURE__ */ C(Kl, [["render", Ql], ["__scopeId", "data-v-fa74804e"]]), Yl = {
1230
+ const lo = /* @__PURE__ */ B(Xl, [["render", to], ["__scopeId", "data-v-fa74804e"]]), oo = {
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 eo(e, t, l, n, o, s) {
1243
- const a = v("v-icon");
1245
+ function no(e, t, l, n, o, a) {
1246
+ const s = v("v-icon");
1244
1247
  return i(), f("div", {
1245
1248
  style: { padding: "0 15px" },
1246
- onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
1249
+ onClick: t[0] || (t[0] = (...u) => a.toggleClick && a.toggleClick(...u))
1247
1250
  }, [
1248
- u(a, {
1249
- class: H({ "is-active": l.isActive }),
1251
+ c(s, {
1252
+ class: G({ "is-active": l.isActive }),
1250
1253
  name: "ra-leftalignment"
1251
1254
  }, null, 8, ["class"])
1252
1255
  ]);
1253
1256
  }
1254
- const to = /* @__PURE__ */ C(Yl, [["render", eo]]);
1255
- const lo = {};
1256
- function oo(e, t) {
1257
- const l = le, n = At, o = Tt, s = Ft;
1258
- return i(), m(s, { style: { width: "100%", height: "100%" } }, {
1257
+ const ao = /* @__PURE__ */ B(oo, [["render", no]]);
1258
+ const so = {};
1259
+ function io(e, t) {
1260
+ const l = oe, n = Ot, o = Pt, a = Rt;
1261
+ return i(), m(a, { style: { width: "100%", height: "100%" } }, {
1259
1262
  default: r(() => [
1260
- u(l, { class: "aside" }, {
1263
+ c(l, { class: "aside" }, {
1261
1264
  default: r(() => [
1262
- Y(e.$slots, "left-aside", {}, void 0, !0)
1265
+ ee(e.$slots, "left-aside", {}, void 0, !0)
1263
1266
  ]),
1264
1267
  _: 3
1265
1268
  }),
1266
- u(n, {
1269
+ c(n, {
1267
1270
  class: "main",
1268
1271
  style: { margin: "0 10px" }
1269
1272
  }, {
1270
1273
  default: r(() => [
1271
- Y(e.$slots, "main", {}, void 0, !0)
1274
+ ee(e.$slots, "main", {}, void 0, !0)
1272
1275
  ]),
1273
1276
  _: 3
1274
1277
  }),
1275
- u(o, {
1278
+ c(o, {
1276
1279
  class: "aside",
1277
1280
  width: "350px",
1278
1281
  style: { padding: "20px" }
1279
1282
  }, {
1280
1283
  default: r(() => [
1281
- Y(e.$slots, "right-aside", {}, void 0, !0)
1284
+ ee(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 rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b"]]), no = {
1292
+ const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b"]]), ro = {
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
- }, so = {
1360
+ }, uo = {
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
- }, ao = {
1402
+ }, co = {
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
- }, io = {
1443
+ }, po = {
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
- }, ro = {
1549
+ }, mo = {
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
- }, uo = {
1595
+ }, fo = {
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
- }, co = {
1651
+ }, ho = {
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
- }, po = {
1671
+ }, bo = {
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
- }, mo = {
1691
+ }, _o = {
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
- }, fo = {
1711
+ }, yo = {
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
- }, ho = {
1731
+ }, vo = {
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
- }, bo = {
1751
+ }, go = {
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
- }, _o = {
1819
+ }, ko = {
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
- }, ut = {};
1865
+ }, ct = {};
1863
1866
  function F(e) {
1864
- ut[e.type] = e;
1867
+ ct[e.type] = e;
1865
1868
  }
1866
- F(no);
1867
- F(io);
1868
- F(so);
1869
- F(ao);
1870
- F(uo);
1871
- F(bo);
1872
1869
  F(ro);
1873
- F(_o);
1874
- F(co);
1875
1870
  F(po);
1871
+ F(uo);
1872
+ F(co);
1873
+ F(fo);
1874
+ F(go);
1876
1875
  F(mo);
1876
+ F(ko);
1877
1877
  F(ho);
1878
- F(fo);
1879
- const ke = ut, yo = {
1878
+ F(bo);
1879
+ F(_o);
1880
+ F(vo);
1881
+ F(yo);
1882
+ const Ee = ct, Eo = {
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 he = {
1981
+ const be = {
1979
1982
  labelPosition: "top",
1980
1983
  submitButton: !1,
1981
1984
  cancelButton: !1
1982
- }, Re = [];
1983
- Object.keys(ke).forEach((e) => {
1984
- Re.push({ value: e, label: ke[e].name });
1985
+ }, Le = [];
1986
+ Object.keys(Ee).forEach((e) => {
1987
+ Le.push({ value: e, label: Ee[e].name });
1985
1988
  });
1986
- const vo = {
1989
+ const wo = {
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(Re)
2010
+ options: y(Le)
2008
2011
  },
2009
2012
  {
2010
2013
  type: "input",
@@ -2015,8 +2018,8 @@ const vo = {
2015
2018
  }
2016
2019
  }
2017
2020
  ]
2018
- }, go = {
2019
- components: { DevLayout: rt, VForm: W, VButton: Te, JsonView: Fe },
2021
+ }, So = {
2022
+ components: { DevLayout: ut, VForm: Z, VButton: Fe, 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: vo,
2031
- baseSchema: yo,
2033
+ sqlSchema: wo,
2034
+ baseSchema: Eo,
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: ke,
2054
+ ctrlMap: Ee,
2052
2055
  activeIndexReg: /(formItems)?\[(\d+)\]/,
2053
2056
  tableStruct: "",
2054
2057
  activeName: "1",
2055
2058
  currentCtrlType: "input",
2056
- types: y(Re)
2059
+ types: y(Le)
2057
2060
  };
2058
2061
  },
2059
2062
  computed: {
@@ -2075,14 +2078,14 @@ const vo = {
2075
2078
  ctrlOptions: {
2076
2079
  deep: !0,
2077
2080
  handler(e) {
2078
- const t = ee(this.builderSchema, this.activeIndex);
2081
+ const t = te(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, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2085
- this.builderSchema[a][c] = { ...o };
2087
+ const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2088
+ this.builderSchema[s][u] = { ...o };
2086
2089
  } else
2087
2090
  this.builderSchema[this.activeIndex] = o;
2088
2091
  this.key++;
@@ -2093,21 +2096,21 @@ const vo = {
2093
2096
  handler(e) {
2094
2097
  const t = this.ctrlMap[e];
2095
2098
  this.ctrlSchema = y({
2096
- options: y(he),
2099
+ options: y(be),
2097
2100
  formItems: y(t.builder)
2098
2101
  });
2099
- const l = ee(this.builderSchema, this.activeIndex);
2102
+ const l = te(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
- G.on("dev-action", ({ event: e, data: t }) => {
2108
+ J.on("dev-action", ({ event: e, data: t }) => {
2106
2109
  this.onDevAction(t.type, t.devId);
2107
2110
  });
2108
2111
  },
2109
2112
  unmounted() {
2110
- G.off("dev-action");
2113
+ J.off("dev-action");
2111
2114
  },
2112
2115
  methods: {
2113
2116
  onDevAction(e, t) {
@@ -2118,23 +2121,23 @@ const vo = {
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(he),
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
- tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Ye(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2129
+ lt(this.builderSchema, this.activeIndex), this.builderSchema = y(et(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(ee(this.builderSchema, e)), n = l.type, o = this.ctrlMap[n];
2134
+ const l = y(te(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(he),
2140
+ options: y(be),
2138
2141
  formItems: y(o.builder)
2139
2142
  }), this.ctrlKey++;
2140
2143
  }
@@ -2149,52 +2152,51 @@ const vo = {
2149
2152
  });
2150
2153
  }
2151
2154
  }
2152
- }, ko = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), Eo = /* @__PURE__ */ g(" \xA0\xA0 ");
2153
- function wo(e, t, l, n, o, s) {
2154
- const a = v("v-form"), c = We, d = ae, p = v("JsonView"), h = v("VButton"), _ = we, A = Se, I = Ze, U = Qe, V = v("dev-layout");
2155
- return i(), m(V, null, {
2155
+ };
2156
+ function Co(e, t, l, n, o, a) {
2157
+ const s = v("v-form"), u = Ze, p = ie, d = v("JsonView"), h = v("VButton"), _ = Se, T = Ce, $ = Qe, H = Xe, q = v("dev-layout");
2158
+ return i(), m(q, null, {
2156
2159
  main: r(() => [
2157
- o.builderSchema.formItems ? (i(), m(a, q({
2158
- key: 0,
2160
+ o.builderSchema.formItems ? (i(), m(s, U({
2159
2161
  ref: "form",
2160
2162
  key: o.key,
2161
2163
  dev: !0
2162
2164
  }, o.builderSchema), null, 16)) : E("", !0),
2163
- u(c),
2164
- u(d, {
2165
+ c(u),
2166
+ c(p, {
2165
2167
  type: "primary",
2166
- onClick: s.saveSchema
2168
+ onClick: a.saveSchema
2167
2169
  }, {
2168
2170
  default: r(() => [
2169
- ko
2171
+ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
2170
2172
  ]),
2171
2173
  _: 1
2172
2174
  }, 8, ["onClick"]),
2173
- Eo,
2174
- u(h, {
2175
+ g(" \xA0\xA0 "),
2176
+ c(h, {
2175
2177
  text: "PageSchema",
2176
2178
  type: "modal"
2177
2179
  }, {
2178
2180
  default: r(() => [
2179
- u(p, { data: s.getSaveSchema }, null, 8, ["data"])
2181
+ c(d, { data: a.getSaveSchema }, null, 8, ["data"])
2180
2182
  ]),
2181
2183
  _: 1
2182
2184
  })
2183
2185
  ]),
2184
2186
  "right-aside": r(() => [
2185
- o.activeIndex ? (i(), m(U, { key: 0 }, {
2187
+ o.activeIndex ? (i(), m(H, { key: 0 }, {
2186
2188
  default: r(() => [
2187
- u(I, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
2189
+ c($, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
2188
2190
  default: r(() => [
2189
- u(A, {
2191
+ c(T, {
2190
2192
  modelValue: o.currentCtrlType,
2191
- "onUpdate:modelValue": t[0] || (t[0] = (B) => o.currentCtrlType = B)
2193
+ "onUpdate:modelValue": t[0] || (t[0] = (x) => o.currentCtrlType = x)
2192
2194
  }, {
2193
2195
  default: r(() => [
2194
- (i(!0), f(k, null, $(o.types, (B, z) => (i(), m(_, {
2195
- key: z,
2196
- label: B.label,
2197
- value: B.value
2196
+ (i(!0), f(k, null, A(o.types, (x, K) => (i(), m(_, {
2197
+ key: K,
2198
+ label: x.label,
2199
+ value: x.value
2198
2200
  }, null, 8, ["label", "value"]))), 128))
2199
2201
  ]),
2200
2202
  _: 1
@@ -2205,16 +2207,16 @@ function wo(e, t, l, n, o, s) {
2205
2207
  ]),
2206
2208
  _: 1
2207
2209
  })) : E("", !0),
2208
- (i(), m(a, q({
2210
+ (i(), m(s, U({
2209
2211
  key: o.ctrlKey,
2210
2212
  modelValue: o.ctrlOptions,
2211
- "onUpdate:modelValue": t[1] || (t[1] = (B) => o.ctrlOptions = B)
2213
+ "onUpdate:modelValue": t[1] || (t[1] = (x) => o.ctrlOptions = x)
2212
2214
  }, o.ctrlSchema), null, 16, ["modelValue"]))
2213
2215
  ]),
2214
2216
  _: 1
2215
2217
  });
2216
2218
  }
2217
- const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06"]]), Co = {
2219
+ const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06"]]), xo = {
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
- }, Bo = {
2267
+ }, Io = {
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
- }, xo = {
2368
+ }, Ao = {
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
- }, qe = {
2388
+ }, Ue = {
2387
2389
  options: {
2388
2390
  labelPosition: "top",
2389
2391
  submitButton: !1,
@@ -2408,7 +2410,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
2408
2410
  label: "\u5BFC\u51FA\u6309\u94AE"
2409
2411
  }
2410
2412
  ]
2411
- }, be = {
2413
+ }, _e = {
2412
2414
  labelPosition: "top",
2413
2415
  submitButton: !1,
2414
2416
  cancelButton: !1
@@ -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
- }, Io = {
2447
+ }, To = {
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
- }, Ao = {
2498
+ }, Fo = {
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
- }, To = {
2523
+ }, Do = {
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
- }, Fo = {
2548
+ }, Oo = {
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
- }, Do = {
2573
+ }, Po = {
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
- }, Oo = {
2598
+ }, Ro = {
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
- }, Po = {
2623
+ }, Lo = {
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
- }, Ro = {
2648
+ }, Mo = {
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
- }, Lo = {
2679
+ }, jo = {
2678
2680
  span: $o,
2679
- enum: Io,
2680
- html: Ao,
2681
- icon: To,
2682
- image: Fo,
2683
- json: Do,
2684
- link: Oo,
2685
- rich: Po,
2686
- tpl: Ro
2687
- }, Mo = {
2681
+ enum: To,
2682
+ html: Fo,
2683
+ icon: Do,
2684
+ image: Oo,
2685
+ json: Po,
2686
+ link: Ro,
2687
+ rich: Lo,
2688
+ tpl: Mo
2689
+ }, No = {
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
- }, jo = {
2736
+ }, Vo = {
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
- }, No = {
2805
+ }, qo = {
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
- }, Vo = {
2859
+ }, Uo = {
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
- }, qo = {
2912
- jump: Mo,
2913
- api: jo,
2914
- form: No,
2915
- table: Vo
2913
+ }, Ho = {
2914
+ jump: No,
2915
+ api: Vo,
2916
+ form: qo,
2917
+ table: Uo
2916
2918
  };
2917
- const Uo = {
2918
- components: { JsonView: Fe, DevLayout: rt, VTable: ie, VForm: W, VButton: Te },
2919
+ const Go = {
2920
+ components: { JsonView: De, DevLayout: ut, VTable: re, VForm: Z, VButton: Fe },
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 = kt(this.$props.schema);
2929
+ const e = St(this.$props.schema);
2928
2930
  return delete e.listApi, e.list = [{}], {
2929
- baseSchema: qe,
2931
+ baseSchema: Ue,
2930
2932
  activeTab: "base",
2931
2933
  builderSchema: Object.assign(
2932
2934
  {},
2933
- qe,
2935
+ Ue,
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: Co, select: Bo, date: xo },
2947
- headers: Lo,
2948
- buttons: qo
2948
+ filter: { input: xo, select: Io, date: Ao },
2949
+ headers: jo,
2950
+ buttons: Ho
2949
2951
  },
2950
2952
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2951
2953
  currentCtrlType: "input"
@@ -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, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2997
- this.builderSchema[a][c] = { ...o };
2998
+ const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2999
+ this.builderSchema[s][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(be),
3011
+ options: y(_e),
3010
3012
  formItems: y(t.builder)
3011
3013
  });
3012
- const l = ee(this.builderSchema, this.activeIndex);
3014
+ const l = te(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
- G.on("dev-action", ({ event: e, data: t }) => {
3022
+ J.on("dev-action", ({ event: e, data: t }) => {
3021
3023
  this.onDevAction(t.type, t.devId);
3022
3024
  });
3023
3025
  },
3024
3026
  unmounted() {
3025
- G.off("dev-action");
3027
+ J.off("dev-action");
3026
3028
  },
3027
3029
  methods: {
3028
3030
  updateBuilderSchema() {
@@ -3053,17 +3055,17 @@ 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(be),
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
- tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Ye(this.builderSchema)), console.log(this.builderSchema), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3063
+ lt(this.builderSchema, this.activeIndex), this.builderSchema = y(et(this.builderSchema)), console.log(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(ee(this.builderSchema, e));
3068
+ const l = y(te(this.builderSchema, e));
3067
3069
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons"), console.log(t);
3068
3070
  let n = this.builderSchema[t[1]][parseInt(t[2])].type;
3069
3071
  t[1] === "headers" && n === void 0 && (n = "span");
@@ -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(be),
3078
+ options: y(_e),
3077
3079
  formItems: y(o.builder)
3078
3080
  }), this.ctrlKey++;
3079
3081
  }
@@ -3090,65 +3092,65 @@ const Uo = {
3090
3092
  normalButton: n,
3091
3093
  batchButton: o
3092
3094
  }
3093
- }).then(({ data: s }) => {
3094
- s && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
3095
+ }).then(({ data: a }) => {
3096
+ a && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
3095
3097
  });
3096
3098
  }
3097
3099
  }
3098
- }, Ho = /* @__PURE__ */ g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6"), Go = /* @__PURE__ */ g("\u6587\u672C\u6846"), Jo = /* @__PURE__ */ g("\u4E0B\u62C9\u6846"), zo = /* @__PURE__ */ g("\u65E5\u671F"), Ko = /* @__PURE__ */ g("\u6DFB\u52A0\u5217\u8868\u9879"), Wo = /* @__PURE__ */ g("\u6DFB\u52A0\u884C\u6309\u94AE"), Zo = /* @__PURE__ */ g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE"), Qo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), Xo = /* @__PURE__ */ g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE"), Yo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), en = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), tn = /* @__PURE__ */ g(" \xA0\xA0 ");
3099
- function ln(e, t, l, n, o, s) {
3100
- const a = re, c = ae, d = le, p = v("v-table"), h = We, _ = ae, A = v("JsonView"), I = v("VButton"), U = we, V = Se, B = Ze, z = Qe, _t = v("v-form"), yt = v("dev-layout");
3101
- return i(), m(yt, null, {
3100
+ };
3101
+ function Jo(e, t, l, n, o, a) {
3102
+ const s = ue, u = ie, p = oe, d = v("v-table"), h = Ze, _ = ie, T = v("JsonView"), $ = v("VButton"), H = Se, q = Ce, x = Qe, K = Xe, yt = v("v-form"), vt = v("dev-layout");
3103
+ return i(), m(vt, null, {
3102
3104
  "left-aside": r(() => [
3103
- u(d, { style: { width: "200px" } }, {
3105
+ c(p, { style: { width: "200px" } }, {
3104
3106
  default: r(() => [
3105
- u(d, null, {
3107
+ c(p, null, {
3106
3108
  default: r(() => [
3107
- u(a, {
3109
+ c(s, {
3108
3110
  class: "title",
3109
3111
  "data-id": 22222
3110
3112
  }, {
3111
3113
  default: r(() => [
3112
- Ho
3114
+ g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6")
3113
3115
  ]),
3114
3116
  _: 1
3115
3117
  }),
3116
- u(a, { class: "ctrl" }, {
3118
+ c(s, { class: "ctrl" }, {
3117
3119
  default: r(() => [
3118
- u(c, {
3120
+ c(u, {
3119
3121
  class: "ctrl-btn",
3120
- onClick: t[0] || (t[0] = (S) => s.pushFilter("input"))
3122
+ onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
3121
3123
  }, {
3122
3124
  default: r(() => [
3123
- Go
3125
+ g("\u6587\u672C\u6846")
3124
3126
  ]),
3125
3127
  _: 1
3126
3128
  })
3127
3129
  ]),
3128
3130
  _: 1
3129
3131
  }),
3130
- u(a, { class: "ctrl" }, {
3132
+ c(s, { class: "ctrl" }, {
3131
3133
  default: r(() => [
3132
- u(c, {
3134
+ c(u, {
3133
3135
  class: "ctrl-btn",
3134
- onClick: t[1] || (t[1] = (S) => s.pushFilter("select"))
3136
+ onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
3135
3137
  }, {
3136
3138
  default: r(() => [
3137
- Jo
3139
+ g("\u4E0B\u62C9\u6846")
3138
3140
  ]),
3139
3141
  _: 1
3140
3142
  })
3141
3143
  ]),
3142
3144
  _: 1
3143
3145
  }),
3144
- u(a, { class: "ctrl" }, {
3146
+ c(s, { class: "ctrl" }, {
3145
3147
  default: r(() => [
3146
- u(c, {
3148
+ c(u, {
3147
3149
  class: "ctrl-btn",
3148
- onClick: t[2] || (t[2] = (S) => s.pushFilter("date"))
3150
+ onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
3149
3151
  }, {
3150
3152
  default: r(() => [
3151
- zo
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
- u(d, null, {
3163
+ c(p, null, {
3162
3164
  default: r(() => [
3163
- u(a, { class: "title" }, {
3165
+ c(s, { class: "title" }, {
3164
3166
  default: r(() => [
3165
- Ko
3167
+ g("\u6DFB\u52A0\u5217\u8868\u9879")
3166
3168
  ]),
3167
3169
  _: 1
3168
3170
  }),
3169
- (i(!0), f(k, null, $(Object.keys(o.ctrlMap.headers), (S, M) => (i(), m(a, {
3170
- key: `column-${M}`,
3171
+ (i(!0), f(k, null, A(Object.keys(o.ctrlMap.headers), (C, j) => (i(), m(s, {
3172
+ key: `column-${j}`,
3171
3173
  class: "ctrl"
3172
3174
  }, {
3173
3175
  default: r(() => [
3174
- u(c, {
3176
+ c(u, {
3175
3177
  class: "ctrl-btn",
3176
- onClick: (pe) => s.pushHeaders(o.ctrlMap.headers[S].type)
3178
+ onClick: (me) => a.pushHeaders(o.ctrlMap.headers[C].type)
3177
3179
  }, {
3178
3180
  default: r(() => [
3179
- g(x(o.ctrlMap.headers[S].name), 1)
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
- u(d, null, {
3191
+ c(p, null, {
3190
3192
  default: r(() => [
3191
- u(a, { class: "title" }, {
3193
+ c(s, { class: "title" }, {
3192
3194
  default: r(() => [
3193
- Wo
3195
+ g("\u6DFB\u52A0\u884C\u6309\u94AE")
3194
3196
  ]),
3195
3197
  _: 1
3196
3198
  }),
3197
- (i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3198
- key: `column-${M}`,
3199
+ (i(!0), f(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(s, {
3200
+ key: `column-${j}`,
3199
3201
  class: "ctrl"
3200
3202
  }, {
3201
3203
  default: r(() => [
3202
- u(c, {
3204
+ c(u, {
3203
3205
  class: "ctrl-btn",
3204
- onClick: (pe) => s.pushRowButton(o.ctrlMap.buttons[S].type)
3206
+ onClick: (me) => a.pushRowButton(o.ctrlMap.buttons[C].type)
3205
3207
  }, {
3206
3208
  default: r(() => [
3207
- g(x(o.ctrlMap.buttons[S].name), 1)
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
- u(d, null, {
3219
+ c(p, null, {
3218
3220
  default: r(() => [
3219
- u(a, { class: "title" }, {
3221
+ c(s, { class: "title" }, {
3220
3222
  default: r(() => [
3221
- Zo
3223
+ g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE")
3222
3224
  ]),
3223
3225
  _: 1
3224
3226
  }),
3225
- (i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3226
- key: `column-${M}`,
3227
+ (i(!0), f(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(s, {
3228
+ key: `column-${j}`,
3227
3229
  class: "ctrl"
3228
3230
  }, {
3229
3231
  default: r(() => [
3230
- u(c, {
3232
+ c(u, {
3231
3233
  class: "ctrl-btn",
3232
- onClick: (pe) => s.pushNormalButton(o.ctrlMap.buttons[S].type)
3234
+ onClick: (me) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
3233
3235
  }, {
3234
3236
  default: r(() => [
3235
- g(x(o.ctrlMap.buttons[S].name), 1)
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
- u(a, { class: "ctrl" }, {
3244
+ c(s, { class: "ctrl" }, {
3243
3245
  default: r(() => [
3244
- u(c, { class: "ctrl-btn" }, {
3246
+ c(u, { class: "ctrl-btn" }, {
3245
3247
  default: r(() => [
3246
- Qo
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
- u(d, null, {
3258
+ c(p, null, {
3257
3259
  default: r(() => [
3258
- u(a, { class: "title" }, {
3260
+ c(s, { class: "title" }, {
3259
3261
  default: r(() => [
3260
- Xo
3262
+ g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE")
3261
3263
  ]),
3262
3264
  _: 1
3263
3265
  }),
3264
- (i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3265
- key: `column-${M}`,
3266
+ (i(!0), f(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(s, {
3267
+ key: `column-${j}`,
3266
3268
  class: "ctrl"
3267
3269
  }, {
3268
3270
  default: r(() => [
3269
- u(c, {
3271
+ c(u, {
3270
3272
  class: "ctrl-btn",
3271
- onClick: (pe) => s.pushBatchButton(o.ctrlMap.buttons[S].type)
3273
+ onClick: (me) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
3272
3274
  }, {
3273
3275
  default: r(() => [
3274
- g(x(o.ctrlMap.buttons[S].name), 1)
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
- u(a, { class: "ctrl" }, {
3283
+ c(s, { class: "ctrl" }, {
3282
3284
  default: r(() => [
3283
- u(c, { class: "ctrl-btn" }, {
3285
+ c(u, { class: "ctrl-btn" }, {
3284
3286
  default: r(() => [
3285
- Yo
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(p, q({
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
- u(h),
3306
- u(_, {
3307
+ c(h),
3308
+ c(_, {
3307
3309
  type: "primary",
3308
- onClick: s.saveSchema
3310
+ onClick: a.saveSchema
3309
3311
  }, {
3310
3312
  default: r(() => [
3311
- en
3313
+ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
3312
3314
  ]),
3313
3315
  _: 1
3314
3316
  }, 8, ["onClick"]),
3315
- tn,
3316
- u(I, {
3317
+ g(" \xA0\xA0 "),
3318
+ c($, {
3317
3319
  text: "PageSchema",
3318
3320
  type: "modal"
3319
3321
  }, {
3320
3322
  default: r(() => [
3321
- u(A, { data: s.getSaveSchema }, null, 8, ["data"])
3323
+ c(T, { data: a.getSaveSchema }, null, 8, ["data"])
3322
3324
  ]),
3323
3325
  _: 1
3324
3326
  })
3325
3327
  ]),
3326
3328
  "right-aside": r(() => [
3327
- o.activeIndex ? (i(), m(z, { key: 0 }, {
3329
+ o.activeIndex ? (i(), m(K, { key: 0 }, {
3328
3330
  default: r(() => [
3329
- u(B, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
3331
+ c(x, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
3330
3332
  default: r(() => [
3331
- u(V, {
3333
+ c(q, {
3332
3334
  modelValue: o.currentCtrlType,
3333
- "onUpdate:modelValue": t[3] || (t[3] = (S) => o.currentCtrlType = S)
3335
+ "onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
3334
3336
  }, {
3335
3337
  default: r(() => [
3336
- (i(!0), f(k, null, $(s.types, (S, M) => (i(), m(U, {
3337
- key: M,
3338
- label: S.label,
3339
- value: S.value
3338
+ (i(!0), f(k, null, A(a.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
@@ -3347,31 +3349,31 @@ function ln(e, t, l, n, o, s) {
3347
3349
  ]),
3348
3350
  _: 1
3349
3351
  })) : E("", !0),
3350
- (i(), m(_t, q({
3352
+ (i(), m(yt, U({
3351
3353
  key: o.ctrlKey,
3352
3354
  modelValue: o.ctrlOptions,
3353
- "onUpdate:modelValue": t[4] || (t[4] = (S) => o.ctrlOptions = S)
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 on = /* @__PURE__ */ C(Uo, [["render", ln], ["__scopeId", "data-v-77db3a16"]]), nn = {
3361
+ const zo = /* @__PURE__ */ B(Go, [["render", Jo], ["__scopeId", "data-v-77db3a16"]]), Ko = {
3360
3362
  name: "PageEditor",
3361
- components: { FormBuilder: So, TableBuilder: on },
3363
+ components: { FormBuilder: Bo, TableBuilder: zo },
3362
3364
  setup() {
3363
- const e = R(!1), t = R(1), l = "rtl", n = ue(), o = j(() => w.state.app.pages[n.path]);
3365
+ const e = L(!1), t = L(1), l = "rtl", n = ce(), 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 sn(e, t, l, n, o, s) {
3368
- const a = v("VIcon"), c = v("form-builder"), d = v("table-builder"), p = Xe;
3369
+ function Wo(e, t, l, n, o, a) {
3370
+ const s = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d = Ye;
3369
3371
  return i(), f(k, null, [
3370
- u(a, {
3372
+ c(s, {
3371
3373
  name: "ra-set",
3372
3374
  onClick: t[0] || (t[0] = (h) => n.show = !n.show)
3373
3375
  }),
3374
- u(p, {
3376
+ c(d, {
3375
3377
  modelValue: n.show,
3376
3378
  "onUpdate:modelValue": t[1] || (t[1] = (h) => n.show = h),
3377
3379
  title: "\u9875\u9762\u8BBE\u8BA1",
@@ -3382,11 +3384,11 @@ 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(c, {
3387
+ n.pageSchema.formItems !== void 0 ? (i(), m(u, {
3386
3388
  key: 0,
3387
3389
  schema: n.pageSchema
3388
3390
  }, null, 8, ["schema"])) : E("", !0),
3389
- n.pageSchema.headers !== void 0 ? (i(), m(d, {
3391
+ n.pageSchema.headers !== void 0 ? (i(), m(p, {
3390
3392
  key: 1,
3391
3393
  schema: n.pageSchema
3392
3394
  }, null, 8, ["schema"])) : E("", !0)
@@ -3395,13 +3397,13 @@ function sn(e, t, l, n, o, s) {
3395
3397
  }, 8, ["modelValue", "direction"])
3396
3398
  ], 64);
3397
3399
  }
3398
- const an = /* @__PURE__ */ C(nn, [["render", sn]]);
3399
- const rn = {
3400
+ const Zo = /* @__PURE__ */ B(Ko, [["render", Wo]]);
3401
+ const Qo = {
3400
3402
  components: {
3401
- Breadcrumb: Xl,
3402
- Hamburger: to,
3403
- VButton: Te,
3404
- PageEditor: an
3403
+ Breadcrumb: lo,
3404
+ Hamburger: ao,
3405
+ VButton: Fe,
3406
+ PageEditor: Zo
3405
3407
  },
3406
3408
  data() {
3407
3409
  return {
@@ -3414,7 +3416,7 @@ const rn = {
3414
3416
  };
3415
3417
  },
3416
3418
  computed: {
3417
- ...Ae(["sidebar", "avatar", "name", "nickname", "nav"]),
3419
+ ...Te(["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
- et("el-submenu is-active");
3437
+ tt("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] && Kt({
3445
+ }), this.setting.envColor[this.user.env] && Xt({
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 me.exist(t) ? me.get(t) !== e : !0;
3470
+ return fe.exist(t) ? fe.get(t) !== e : !0;
3469
3471
  },
3470
3472
  closeNotice(e) {
3471
3473
  const t = "dismiss:navbar_notice";
3472
- me.set(t, e);
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
- }, un = { class: "right-content" }, cn = { class: "right-item" }, dn = {
3481
+ }, Xo = { class: "right-content" }, Yo = { class: "right-item" }, en = {
3480
3482
  key: 0,
3481
3483
  class: "right-item"
3482
- }, pn = {
3484
+ }, tn = {
3483
3485
  class: "right-item-button",
3484
3486
  style: { padding: "0" }
3485
- }, mn = { class: "user-info" }, fn = ["src"], hn = /* @__PURE__ */ g(), bn = { class: "user-name" }, _n = /* @__PURE__ */ g("\u9996\u9875"), yn = /* @__PURE__ */ g("\u9000\u51FA\u767B\u5F55");
3486
- function vn(e, t, l, n, o, s) {
3487
- const a = v("hamburger"), c = v("breadcrumb"), d = re, p = v("VIcon"), h = v("PageEditor"), _ = v("v-button"), A = Dt, I = Ot, U = Pt, V = Xe, B = le;
3488
- return i(), m(B, {
3487
+ }, ln = { class: "user-info" }, on = ["src"], nn = { class: "user-name" };
3488
+ function an(e, t, l, n, o, a) {
3489
+ const s = v("hamburger"), u = v("breadcrumb"), p = ue, d = v("VIcon"), h = v("PageEditor"), _ = v("v-button"), T = Lt, $ = Mt, H = jt, q = Ye, x = oe;
3490
+ return i(), m(x, {
3489
3491
  ref: "header",
3490
3492
  class: "navbar",
3491
- style: Et({ background: s.setting.envColor[s.user.env] })
3493
+ style: Ct({ background: a.setting.envColor[a.user.env] })
3492
3494
  }, {
3493
3495
  default: r(() => [
3494
- u(d, { span: 16 }, {
3496
+ c(p, { span: 16 }, {
3495
3497
  default: r(() => [
3496
- u(a, {
3498
+ c(s, {
3497
3499
  "is-active": e.sidebar.opened,
3498
3500
  class: "hamburger-container",
3499
- onToggleClick: s.toggleSideBar
3501
+ onToggleClick: a.toggleSideBar
3500
3502
  }, null, 8, ["is-active", "onToggleClick"]),
3501
- u(c, { class: "breadcrumb-container" })
3503
+ c(u, { class: "breadcrumb-container" })
3502
3504
  ]),
3503
3505
  _: 1
3504
3506
  }),
3505
- u(d, { span: 8 }, {
3507
+ c(p, { span: 8 }, {
3506
3508
  default: r(() => [
3507
- b("div", un, [
3508
- b("div", cn, [
3509
- u(p, {
3509
+ b("div", Xo, [
3510
+ b("div", Yo, [
3511
+ c(d, {
3510
3512
  name: "ra-code",
3511
- onClick: s.gotoMenuEdit
3513
+ onClick: a.gotoMenuEdit
3512
3514
  }, null, 8, ["onClick"])
3513
3515
  ]),
3514
- s.showPageJsonSchemaIcon ? (i(), f("div", dn, [
3515
- u(h)
3516
+ a.showPageJsonSchemaIcon ? (i(), f("div", en, [
3517
+ c(h)
3516
3518
  ])) : E("", !0),
3517
- b("div", pn, [
3518
- u(_, { buttons: e.nav }, null, 8, ["buttons"])
3519
+ b("div", tn, [
3520
+ c(_, { buttons: e.nav }, null, 8, ["buttons"])
3519
3521
  ]),
3520
- u(U, {
3522
+ c(H, {
3521
3523
  class: "right-item",
3522
3524
  trigger: "click"
3523
3525
  }, {
3524
3526
  dropdown: r(() => [
3525
- u(I, { class: "user-dropdown" }, {
3527
+ c($, { class: "user-dropdown" }, {
3526
3528
  default: r(() => [
3527
- u(A, {
3529
+ c(T, {
3528
3530
  icon: "oms-icon-index",
3529
- onClick: t[0] || (t[0] = (z) => e.$router.push("/"))
3531
+ onClick: t[0] || (t[0] = (K) => e.$router.push("/"))
3530
3532
  }, {
3531
3533
  default: r(() => [
3532
- _n
3534
+ g("\u9996\u9875")
3533
3535
  ]),
3534
3536
  _: 1
3535
3537
  }),
3536
- u(A, {
3538
+ c(T, {
3537
3539
  divided: "",
3538
3540
  icon: "el-icon-switch-button",
3539
- onClick: s.logout
3541
+ onClick: a.logout
3540
3542
  }, {
3541
3543
  default: r(() => [
3542
- yn
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", mn, [
3553
+ b("div", ln, [
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, fn),
3557
- hn,
3558
- b("span", bn, x(e.nickname || e.name), 1)
3558
+ }, null, 8, on),
3559
+ g(),
3560
+ b("span", nn, I(e.nickname || e.name), 1)
3559
3561
  ])
3560
3562
  ]),
3561
3563
  _: 1
@@ -3564,7 +3566,7 @@ function vn(e, t, l, n, o, s) {
3564
3566
  ]),
3565
3567
  _: 1
3566
3568
  }),
3567
- o.showJsonSchema ? (i(), m(V, {
3569
+ o.showJsonSchema ? (i(), m(q, {
3568
3570
  key: 0,
3569
3571
  "with-header": !1,
3570
3572
  size: "50%"
@@ -3573,8 +3575,8 @@ function vn(e, t, l, n, o, s) {
3573
3575
  _: 1
3574
3576
  }, 8, ["style"]);
3575
3577
  }
3576
- const gn = /* @__PURE__ */ C(rn, [["render", vn], ["__scopeId", "data-v-9d0fb088"]]);
3577
- const kn = {
3578
+ const sn = /* @__PURE__ */ B(Qo, [["render", an], ["__scopeId", "data-v-9d0fb088"]]);
3579
+ const rn = {
3578
3580
  name: "SidebarLogo",
3579
3581
  props: {
3580
3582
  collapse: {
@@ -3590,43 +3592,43 @@ const kn = {
3590
3592
  return this.$store.state.settings.logo;
3591
3593
  }
3592
3594
  }
3593
- }, En = (e) => (Je("data-v-49084925"), e = e(), ze(), e), wn = ["src"], Sn = {
3595
+ }, un = (e) => (ze("data-v-49084925"), e = e(), Ke(), e), cn = ["src"], pn = {
3594
3596
  key: 1,
3595
3597
  class: "sidebar-title"
3596
- }, Cn = /* @__PURE__ */ En(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), Bn = ["src"], xn = { class: "sidebar-title" };
3597
- function $n(e, t, l, n, o, s) {
3598
- const a = v("router-link");
3598
+ }, dn = /* @__PURE__ */ un(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), mn = ["src"], fn = { class: "sidebar-title" };
3599
+ function hn(e, t, l, n, o, a) {
3600
+ const s = v("router-link");
3599
3601
  return i(), f("div", {
3600
- class: H(["sidebar-logo-container", { collapse: l.collapse }])
3602
+ class: G(["sidebar-logo-container", { collapse: l.collapse }])
3601
3603
  }, [
3602
- u(wt, { name: "sidebarLogoFade" }, {
3604
+ c(Bt, { name: "sidebarLogoFade" }, {
3603
3605
  default: r(() => [
3604
- l.collapse ? (i(), m(a, {
3606
+ l.collapse ? (i(), m(s, {
3605
3607
  key: "collapse",
3606
3608
  class: "sidebar-logo-link",
3607
3609
  to: "/"
3608
3610
  }, {
3609
3611
  default: r(() => [
3610
- s.logo ? (i(), f("img", {
3612
+ a.logo ? (i(), f("img", {
3611
3613
  key: 0,
3612
- src: s.logo,
3614
+ src: a.logo,
3613
3615
  class: "sidebar-logo"
3614
- }, null, 8, wn)) : (i(), f("h1", Sn, x(s.title), 1)),
3615
- Cn
3616
+ }, null, 8, cn)) : (i(), f("h1", pn, I(a.title), 1)),
3617
+ dn
3616
3618
  ]),
3617
3619
  _: 1
3618
- })) : (i(), m(a, {
3620
+ })) : (i(), m(s, {
3619
3621
  key: "expand",
3620
3622
  class: "sidebar-logo-link",
3621
3623
  to: "/"
3622
3624
  }, {
3623
3625
  default: r(() => [
3624
- s.logo ? (i(), f("img", {
3626
+ a.logo ? (i(), f("img", {
3625
3627
  key: 0,
3626
- src: s.logo,
3628
+ src: a.logo,
3627
3629
  class: "sidebar-logo"
3628
- }, null, 8, Bn)) : E("", !0),
3629
- b("h1", xn, x(s.title), 1)
3630
+ }, null, 8, mn)) : E("", !0),
3631
+ b("h1", fn, I(a.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 In = /* @__PURE__ */ C(kn, [["render", $n], ["__scopeId", "data-v-49084925"]]), An = {
3640
+ const bn = /* @__PURE__ */ B(rn, [["render", hn], ["__scopeId", "data-v-49084925"]]), _n = {
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 Me(e) || this.newTab ? "a" : "router-link";
3653
+ return je(e) || this.newTab ? "a" : "router-link";
3652
3654
  },
3653
3655
  linkProps(e) {
3654
- if (Me(e))
3655
- return {
3656
- is: "a",
3657
- href: e,
3658
- target: "_blank",
3659
- rel: "noopener"
3660
- };
3661
- if (this.newTab) {
3662
- const t = this.$router.resolve(e);
3663
- return {
3664
- is: "a",
3665
- href: t.href,
3666
- target: "_blank",
3667
- rel: "noopener"
3668
- };
3669
- }
3670
- return {
3656
+ return je(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 Tn(e, t, l, n, o, s) {
3678
- return i(), m(Ke(s.compType(l.to)), J(Z(s.linkProps(l.to))), {
3673
+ function yn(e, t, l, n, o, a) {
3674
+ return i(), m(We(a.compType(l.to)), z(Q(a.linkProps(l.to))), {
3679
3675
  default: r(() => [
3680
- Y(e.$slots, "default")
3676
+ ee(e.$slots, "default")
3681
3677
  ]),
3682
3678
  _: 3
3683
3679
  }, 16);
3684
3680
  }
3685
- const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
3681
+ const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
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
- }, On = { class: "menu-content" }, Pn = /* @__PURE__ */ N({
3701
+ }, kn = { class: "menu-content" }, En = /* @__PURE__ */ V({
3706
3702
  __name: "MenuContent",
3707
3703
  props: {
3708
3704
  meta: {
@@ -3717,20 +3713,20 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
3717
3713
  return (t, l) => {
3718
3714
  const n = v("VIcon");
3719
3715
  return i(), f(k, null, [
3720
- u(n, {
3716
+ c(n, {
3721
3717
  name: e.meta.icon || "ra-all"
3722
3718
  }, null, 8, ["name"]),
3723
- b("span", On, x(e.meta.title), 1)
3719
+ b("span", kn, I(e.meta.title), 1)
3724
3720
  ], 64);
3725
3721
  };
3726
3722
  }
3727
- }), Rn = {
3723
+ }), wn = {
3728
3724
  name: "SidebarItem",
3729
3725
  components: {
3730
- AppLink: Fn,
3731
- MenuContent: Pn
3726
+ AppLink: vn,
3727
+ MenuContent: En
3732
3728
  },
3733
- mixins: [Dn],
3729
+ mixins: [gn],
3734
3730
  props: {
3735
3731
  item: {
3736
3732
  type: Object,
@@ -3754,26 +3750,26 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
3754
3750
  }
3755
3751
  }
3756
3752
  }
3757
- }, Ln = {
3753
+ }, Sn = {
3758
3754
  key: 0,
3759
3755
  class: "menu-wrapper"
3760
3756
  };
3761
- function Mn(e, t, l, n, o, s) {
3762
- const a = v("menu-content"), c = Rt, d = v("app-link"), p = v("sidebar-item", !0), h = Lt;
3763
- return l.item.hidden !== !1 ? (i(), f("div", Ln, [
3757
+ function Cn(e, t, l, n, o, a) {
3758
+ const s = v("menu-content"), u = Nt, p = v("app-link"), d = v("sidebar-item", !0), h = Vt;
3759
+ return l.item.hidden !== !1 ? (i(), f("div", Sn, [
3764
3760
  l.item.meta && l.item.meta.menuType === 2 ? (i(), f(k, { key: 0 }, [
3765
- l.item.meta ? (i(), m(d, {
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(c, {
3767
+ c(u, {
3772
3768
  index: l.to,
3773
- class: H({ "submenu-title-noDropdown": !l.isNest })
3769
+ class: G({ "submenu-title-noDropdown": !l.isNest })
3774
3770
  }, {
3775
3771
  default: r(() => [
3776
- u(a, {
3772
+ c(s, {
3777
3773
  meta: l.item.meta
3778
3774
  }, null, 8, ["meta"])
3779
3775
  ]),
@@ -3786,31 +3782,31 @@ function Mn(e, t, l, n, o, s) {
3786
3782
  key: 1,
3787
3783
  ref: "subMenu",
3788
3784
  index: l.to,
3789
- class: H({ "submenu-title-noDropdown": !l.isNest }),
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(d, {
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
- u(a, {
3794
+ c(s, {
3799
3795
  meta: l.item.meta
3800
3796
  }, null, 8, ["meta"])
3801
3797
  ]),
3802
3798
  _: 1
3803
- }, 8, ["to"])) : (i(), m(a, {
3799
+ }, 8, ["to"])) : (i(), m(s, {
3804
3800
  key: 1,
3805
3801
  meta: l.item.meta
3806
3802
  }, null, 8, ["meta"]))
3807
3803
  ]),
3808
3804
  default: r(() => [
3809
- (i(!0), f(k, null, $(l.item.children, (_) => (i(), m(p, {
3805
+ (i(!0), f(k, null, A(l.item.children, (_) => (i(), m(d, {
3810
3806
  key: _.path,
3811
3807
  "is-nest": !0,
3812
3808
  item: _,
3813
- to: s.getTo(_),
3809
+ to: a.getTo(_),
3814
3810
  class: "nest-menu"
3815
3811
  }, null, 8, ["item", "to"]))), 128))
3816
3812
  ]),
@@ -3818,26 +3814,26 @@ function Mn(e, t, l, n, o, s) {
3818
3814
  }, 8, ["index", "class"])) : E("", !0)
3819
3815
  ])) : E("", !0);
3820
3816
  }
3821
- const jn = /* @__PURE__ */ C(Rn, [["render", Mn]]);
3822
- function ct(e) {
3817
+ const Bn = /* @__PURE__ */ B(wn, [["render", Cn]]);
3818
+ function pt(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 = ct(t.children), t.children.length === 0 && delete t.children), !0);
3821
+ return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = pt(t.children), t.children.length === 0 && delete t.children), !0);
3826
3822
  });
3827
3823
  }
3828
- const Nn = {
3824
+ const xn = {
3829
3825
  data() {
3830
3826
  return {
3831
3827
  selected: ""
3832
3828
  };
3833
3829
  },
3834
3830
  computed: {
3835
- ...Ae(["remoteRouter"]),
3831
+ ...Te(["remoteRouter"]),
3836
3832
  filterRoutes() {
3837
3833
  let e = [];
3838
3834
  return this.remoteRouter.forEach((t) => {
3839
3835
  e = e.concat(y(t.routes));
3840
- }), ct(e);
3836
+ }), pt(e);
3841
3837
  }
3842
3838
  },
3843
3839
  methods: {
@@ -3846,54 +3842,54 @@ const Nn = {
3846
3842
  }
3847
3843
  }
3848
3844
  };
3849
- function Vn(e, t, l, n, o, s) {
3850
- const a = we, c = Mt, d = Se;
3851
- return i(), m(d, {
3845
+ function In(e, t, l, n, o, a) {
3846
+ const s = Se, u = qt, p = Ce;
3847
+ return i(), m(p, {
3852
3848
  modelValue: o.selected,
3853
- "onUpdate:modelValue": t[0] || (t[0] = (p) => o.selected = p),
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
- onChange: s.onselected
3853
+ onChange: a.onselected
3858
3854
  }, {
3859
3855
  default: r(() => [
3860
- (i(!0), f(k, null, $(s.filterRoutes, (p) => (i(), f(k, {
3861
- key: p.path
3856
+ (i(!0), f(k, null, A(a.filterRoutes, (d) => (i(), f(k, {
3857
+ key: d.path
3862
3858
  }, [
3863
- p.children !== void 0 ? (i(), f(k, { key: 0 }, [
3864
- p.meta.menuType !== 0 ? (i(), m(c, {
3865
- key: p.path + "-",
3866
- label: p.meta.title
3859
+ d.children !== void 0 ? (i(), f(k, { 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), f(k, null, $(p.children, (h, _) => (i(), f(k, {
3865
+ (i(!0), f(k, null, A(d.children, (h, _) => (i(), f(k, {
3870
3866
  key: h.path
3871
3867
  }, [
3872
- p.meta.menuType !== 0 ? (i(), m(a, {
3868
+ d.meta.menuType !== 0 ? (i(), m(s, {
3873
3869
  key: 0,
3874
- label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + h.meta.title,
3870
+ label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + h.meta.title,
3875
3871
  value: h.path
3876
3872
  }, null, 8, ["label", "value"])) : E("", !0)
3877
3873
  ], 64))), 128))
3878
3874
  ]),
3879
3875
  _: 2
3880
3876
  }, 1032, ["label"])) : E("", !0)
3881
- ], 64)) : (i(), m(a, {
3877
+ ], 64)) : (i(), m(s, {
3882
3878
  key: 1,
3883
- label: "" + p.meta.title,
3884
- value: p.path
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 qn = /* @__PURE__ */ C(Nn, [["render", Vn], ["__scopeId", "data-v-811395be"]]);
3892
- var P = /* @__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))(P || {}), 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 || {});
3893
- const Un = N({
3894
- components: { SidebarItem: jn, Logo: In, SearchMenu: qn },
3887
+ const An = /* @__PURE__ */ B(xn, [["render", In], ["__scopeId", "data-v-811395be"]]);
3888
+ var R = /* @__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))(R || {}), 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 $n = V({
3890
+ components: { SidebarItem: Bn, Logo: bn, SearchMenu: An },
3895
3891
  computed: {
3896
- ...Ae(["sidebar", "remoteRouter", "customRouter"]),
3892
+ ...Te(["sidebar", "remoteRouter", "customRouter"]),
3897
3893
  routes() {
3898
3894
  let e = [];
3899
3895
  return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
@@ -3937,7 +3933,7 @@ const Un = N({
3937
3933
  }
3938
3934
  },
3939
3935
  mounted() {
3940
- et("is-active");
3936
+ tt("is-active");
3941
3937
  },
3942
3938
  methods: {
3943
3939
  filterRoute(e) {
@@ -3945,19 +3941,19 @@ const Un = N({
3945
3941
  }
3946
3942
  }
3947
3943
  });
3948
- function Hn(e, t, l, n, o, s) {
3949
- const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = jt, h = Nt;
3944
+ function Tn(e, t, l, n, o, a) {
3945
+ const s = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = Ut, h = Ht;
3950
3946
  return i(), f("div", {
3951
- class: H({ "has-logo": e.showLogo })
3947
+ class: G({ "has-logo": e.showLogo })
3952
3948
  }, [
3953
- e.showLogo ? (i(), m(a, {
3949
+ e.showLogo ? (i(), m(s, {
3954
3950
  key: 0,
3955
3951
  collapse: e.isCollapse
3956
3952
  }, null, 8, ["collapse"])) : E("", !0),
3957
- u(h, { "wrap-class": "scrollbar-wrapper" }, {
3953
+ c(h, { "wrap-class": "scrollbar-wrapper" }, {
3958
3954
  default: r(() => [
3959
- e.isCollapse ? E("", !0) : (i(), m(c, { key: 0 })),
3960
- u(p, {
3955
+ e.isCollapse ? E("", !0) : (i(), m(u, { key: 0 })),
3956
+ c(d, {
3961
3957
  "default-active": e.activeMenu,
3962
3958
  collapse: e.isCollapse,
3963
3959
  "background-color": e.variables.menuBg,
@@ -3968,13 +3964,13 @@ function Hn(e, t, l, n, o, s) {
3968
3964
  mode: "vertical"
3969
3965
  }, {
3970
3966
  default: r(() => [
3971
- (i(!0), f(k, null, $(e.routes, (_, A) => (i(), f(k, {
3972
- key: A + "-module"
3967
+ (i(!0), f(k, null, A(e.routes, (_, T) => (i(), f(k, {
3968
+ key: T + "-module"
3973
3969
  }, [
3974
- (i(!0), f(k, null, $(e.filterRoute(_.routes), (I) => (i(), m(d, {
3975
- key: I.path,
3976
- item: I,
3977
- to: e.$router.resolve(I.redirect ? I.redirect : I).fullPath
3970
+ (i(!0), f(k, null, A(e.filterRoute(_.routes), ($) => (i(), m(p, {
3971
+ key: $.path,
3972
+ item: $,
3973
+ to: e.$router.resolve($.redirect ? $.redirect : $).fullPath
3978
3974
  }, null, 8, ["item", "to"]))), 128))
3979
3975
  ], 64))), 128))
3980
3976
  ]),
@@ -3985,66 +3981,66 @@ function Hn(e, t, l, n, o, s) {
3985
3981
  })
3986
3982
  ], 2);
3987
3983
  }
3988
- const Gn = /* @__PURE__ */ C(Un, [["render", Hn], ["__scopeId", "data-v-cf9a1835"]]);
3989
- const Jn = { class: "app-main" }, zn = {
3984
+ const Fn = /* @__PURE__ */ B($n, [["render", Tn], ["__scopeId", "data-v-cf9a1835"]]);
3985
+ const Dn = { class: "app-main" }, On = {
3990
3986
  __name: "AppMain",
3991
3987
  setup(e) {
3992
- const t = ue(), l = [], n = R(0);
3993
- return rl(() => {
3988
+ const t = ce(), l = [], n = L(0);
3989
+ return dl(() => {
3994
3990
  var o;
3995
3991
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3996
- }), (o, s) => {
3997
- const a = v("router-view"), c = Vt;
3998
- return i(), f("section", Jn, [
3999
- (i(), m(a, {
4000
- key: o.$route.fullPath + n.value
3992
+ }), (o, a) => {
3993
+ const s = v("router-view"), u = Gt;
3994
+ return i(), f("section", Dn, [
3995
+ (i(), m(s, {
3996
+ key: o.$route.fullPath + w(n)
4001
3997
  })),
4002
- u(c, { bottom: 50 })
3998
+ c(u, { bottom: 50 })
4003
3999
  ]);
4004
4000
  };
4005
4001
  }
4006
- }, Kn = /* @__PURE__ */ C(zn, [["__scopeId", "data-v-ca0f0d98"]]);
4007
- const Wn = { class: "main-container" }, Zn = {
4002
+ }, Pn = /* @__PURE__ */ B(On, [["__scopeId", "data-v-ca0f0d98"]]);
4003
+ const Rn = { class: "main-container" }, Ln = {
4008
4004
  __name: "index",
4009
4005
  setup(e) {
4010
- const t = lt(), { body: l } = document, n = 992, o = j(() => t.state.app.sidebar), s = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), c = j(() => ({
4006
+ const t = ot(), { body: l } = document, n = 992, o = N(() => t.state.app.sidebar), a = N(() => t.state.app.device), s = N(() => t.state.settings.fixedHeader), u = N(() => ({
4011
4007
  hideSidebar: !o.value.opened,
4012
4008
  openSidebar: o.value.opened,
4013
4009
  withoutAnimation: o.value.withoutAnimation,
4014
- mobile: s.value === "mobile"
4015
- })), d = () => l.getBoundingClientRect().width - 1 < n;
4016
- hl(window, "resize", () => h());
4017
- const p = () => {
4010
+ mobile: a.value === "mobile"
4011
+ })), p = () => l.getBoundingClientRect().width - 1 < n;
4012
+ vl(window, "resize", () => h());
4013
+ const d = () => {
4018
4014
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
4019
4015
  }, h = () => {
4020
4016
  if (!document.hidden) {
4021
- const _ = d();
4017
+ const _ = p();
4022
4018
  t.dispatch("app/toggleDevice", _ ? "mobile" : "desktop"), _ && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
4023
4019
  }
4024
4020
  };
4025
- return (_, A) => (i(), f("div", {
4026
- class: H([T(c), "app-wrapper"])
4021
+ return (_, T) => (i(), f("div", {
4022
+ class: G([w(u), "app-wrapper"])
4027
4023
  }, [
4028
- T(s) === "mobile" && T(o).opened ? (i(), f("div", {
4024
+ w(a) === "mobile" && w(o).opened ? (i(), f("div", {
4029
4025
  key: 0,
4030
4026
  class: "drawer-bg",
4031
- onClick: p
4027
+ onClick: d
4032
4028
  })) : E("", !0),
4033
- u(T(Gn), { class: "sidebar-container" }),
4034
- b("div", Wn, [
4029
+ c(w(Fn), { class: "sidebar-container" }),
4030
+ b("div", Rn, [
4035
4031
  b("div", {
4036
- class: H({ "fixed-header": T(a) })
4032
+ class: G({ "fixed-header": w(s) })
4037
4033
  }, [
4038
- u(T(gn))
4034
+ c(w(sn))
4039
4035
  ], 2),
4040
- u(T(Kn))
4036
+ c(w(Pn))
4041
4037
  ])
4042
4038
  ], 2));
4043
4039
  }
4044
- }, dt = /* @__PURE__ */ C(Zn, [["__scopeId", "data-v-957442cd"]]);
4045
- class Qn {
4040
+ }, dt = /* @__PURE__ */ B(Ln, [["__scopeId", "data-v-957442cd"]]);
4041
+ class Mn {
4046
4042
  constructor() {
4047
- this.type = "qrcode";
4043
+ P(this, "type", "qrcode");
4048
4044
  }
4049
4045
  flag() {
4050
4046
  }
@@ -4054,103 +4050,111 @@ class Qn {
4054
4050
  showQrCode() {
4055
4051
  }
4056
4052
  }
4057
- class Xn extends Qn {
4058
- constructor(t) {
4059
- super(), this.type = "qrcode", this.qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}", this.reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}", this.elId = "", this.appid = "", this.iframe = new HTMLIFrameElement(), this.redirectUri = "", this.style = "";
4053
+ class jn extends Mn {
4054
+ constructor(l) {
4055
+ super();
4056
+ P(this, "type", "qrcode");
4057
+ P(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
4058
+ P(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
4059
+ P(this, "elId", "");
4060
+ P(this, "appid", "");
4061
+ P(this, "iframe", new HTMLIFrameElement());
4062
+ P(this, "redirectUri", "");
4063
+ P(this, "style", "");
4060
4064
  }
4061
4065
  flag() {
4062
- const t = Wt("code");
4063
- if (t)
4064
- return t;
4066
+ const l = Yt("code");
4067
+ if (l)
4068
+ return l;
4065
4069
  }
4066
4070
  showQrCode() {
4067
- const t = (o) => {
4071
+ const l = (a) => {
4068
4072
  const s = {
4069
4073
  appid: this.appid,
4070
4074
  redirect_uri: encodeURIComponent(this.redirectUri)
4071
4075
  };
4072
- return K(this.reloadUrl, s) + "&" + Qt(o || {});
4073
- }, l = () => {
4074
- const o = {
4075
- goto: encodeURIComponent(t()),
4076
+ return W(this.reloadUrl, s) + "&" + tl(a || {});
4077
+ }, n = () => {
4078
+ const a = {
4079
+ goto: encodeURIComponent(l()),
4076
4080
  style: encodeURIComponent(this.style)
4077
4081
  };
4078
- return K(this.qrCodeUrl, o);
4079
- }, n = (o) => {
4080
- const { origin: s, data: a } = o;
4081
- s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
4082
+ return W(this.qrCodeUrl, a);
4083
+ }, o = (a) => {
4084
+ const { origin: s, data: u } = a;
4085
+ s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
4082
4086
  };
4083
- this.iframe.src = l(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4087
+ this.iframe.src = n(), el({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4084
4088
  "message",
4085
- (o) => n(o),
4089
+ (a) => o(a),
4086
4090
  !1
4087
- ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (o) => this.onScanSuccess(o));
4091
+ ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
4088
4092
  }
4089
4093
  }
4090
- const Yn = {
4091
- dingtalk: (e) => new Xn(e)
4094
+ const Nn = {
4095
+ dingtalk: (e) => new jn(e)
4092
4096
  };
4093
- function es() {
4094
- return O(w.state.settings.sso || {}, Yn);
4097
+ function Vn() {
4098
+ return O(S.state.settings.sso || {}, Nn);
4095
4099
  }
4096
- function ts(e) {
4097
- const t = es(), l = w.state.settings.activeSsoKey || "", n = t[l];
4100
+ function qn(e) {
4101
+ const t = Vn(), l = S.state.settings.activeSsoKey || "", n = t[l];
4098
4102
  if (n !== void 0)
4099
4103
  return n(e);
4100
4104
  }
4101
- const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ns = { id: "form" }, ss = { class: "tips" }, as = { class: "sso" }, is = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), rs = /* @__PURE__ */ N({
4105
+ const Un = { id: "login" }, Hn = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), Gn = { id: "form" }, Jn = { class: "tips" }, zn = { class: "sso" }, Kn = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), Wn = /* @__PURE__ */ V({
4102
4106
  __name: "login",
4103
4107
  setup(e) {
4104
- const t = ul(), l = ue(), n = j(() => w.state.settings.loginTips), o = R({
4108
+ const t = ml(), l = ce(), n = N(() => S.state.settings.loginTips), o = L({
4105
4109
  username: "",
4106
4110
  password: ""
4107
- }), s = () => {
4111
+ }), a = () => {
4108
4112
  if (o.value.username === "" || o.value.password === "") {
4109
- qt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
4113
+ Jt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
4110
4114
  return;
4111
4115
  }
4112
- w.dispatch("user/login", o.value).then((a) => {
4113
- var c;
4114
- t.push({ path: ((c = l.query) == null ? void 0 : c.redirect) || "/" });
4116
+ S.dispatch("user/login", o.value).then((s) => {
4117
+ var u;
4118
+ t.push({ path: ((u = l.query) == null ? void 0 : u.redirect) || "/" });
4115
4119
  });
4116
4120
  };
4117
- return R(), (a, c) => (i(), f("div", ls, [
4118
- os,
4119
- b("form", ns, [
4120
- _e(b("input", {
4121
- "onUpdate:modelValue": c[0] || (c[0] = (d) => o.value.username = d),
4121
+ return L(), (s, u) => (i(), f("div", Un, [
4122
+ Hn,
4123
+ b("form", Gn, [
4124
+ ye(b("input", {
4125
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => w(o).username = p),
4122
4126
  type: "text",
4123
4127
  placeholder: "\u7528\u6237\u540D",
4124
4128
  class: "input"
4125
4129
  }, null, 512), [
4126
- [Le, o.value.username]
4130
+ [Me, w(o).username]
4127
4131
  ]),
4128
- _e(b("input", {
4129
- "onUpdate:modelValue": c[1] || (c[1] = (d) => o.value.password = d),
4132
+ ye(b("input", {
4133
+ "onUpdate:modelValue": u[1] || (u[1] = (p) => w(o).password = p),
4130
4134
  type: "password",
4131
4135
  placeholder: "\u5BC6\u7801",
4132
4136
  class: "input"
4133
4137
  }, null, 512), [
4134
- [Le, o.value.password]
4138
+ [Me, w(o).password]
4135
4139
  ]),
4136
4140
  b("div", {
4137
4141
  class: "input button",
4138
- onClick: s
4142
+ onClick: a
4139
4143
  }, "\u767B\u5F55"),
4140
- b("div", ss, [
4141
- b("div", null, x(T(n)), 1)
4144
+ b("div", Jn, [
4145
+ b("div", null, I(w(n)), 1)
4142
4146
  ]),
4143
- b("div", as, [
4144
- is,
4145
- (i(!0), f(k, null, $(Object.keys([]), (d) => (i(), f("div", { key: d }, x(d), 1))), 128))
4147
+ b("div", zn, [
4148
+ Kn,
4149
+ (i(!0), f(k, null, A(Object.keys([]), (p) => (i(), f("div", { key: p }, I(p), 1))), 128))
4146
4150
  ])
4147
4151
  ])
4148
4152
  ]));
4149
4153
  }
4150
4154
  });
4151
- const us = {
4155
+ const Zn = {
4152
4156
  name: "NotFoundPage"
4153
- }, pt = (e) => (Je("data-v-26068803"), e = e(), ze(), e), cs = { class: "not-found" }, ds = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("svg", {
4157
+ }, mt = (e) => (ze("data-v-26068803"), e = e(), Ke(), e), Qn = { class: "not-found" }, Xn = /* @__PURE__ */ mt(() => /* @__PURE__ */ b("svg", {
4154
4158
  width: "380px",
4155
4159
  height: "500px",
4156
4160
  viewBox: "0 0 837 1045",
@@ -4203,7 +4207,7 @@ const us = {
4203
4207
  "sketch:type": "MSShapeGroup"
4204
4208
  })
4205
4209
  ])
4206
- ], -1)), ps = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4210
+ ], -1)), Yn = /* @__PURE__ */ mt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4207
4211
  /* @__PURE__ */ b("h1", null, "404"),
4208
4212
  /* @__PURE__ */ b("p", null, "Page not found"),
4209
4213
  /* @__PURE__ */ b("div", { class: "buttons-con" }, [
@@ -4214,14 +4218,14 @@ const us = {
4214
4218
  }, "Go to Home Page")
4215
4219
  ])
4216
4220
  ])
4217
- ], -1)), ms = [
4218
- ds,
4219
- ps
4221
+ ], -1)), ea = [
4222
+ Xn,
4223
+ Yn
4220
4224
  ];
4221
- function fs(e, t, l, n, o, s) {
4222
- return i(), f("div", cs, ms);
4225
+ function ta(e, t, l, n, o, a) {
4226
+ return i(), f("div", Qn, ea);
4223
4227
  }
4224
- const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803"]]), bs = [
4228
+ const la = /* @__PURE__ */ B(Zn, [["render", ta], ["__scopeId", "data-v-26068803"]]), oa = [
4225
4229
  {
4226
4230
  path: "/",
4227
4231
  component: dt,
@@ -4234,79 +4238,79 @@ const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803
4234
4238
  {
4235
4239
  path: "dashboard",
4236
4240
  name: "Dashboard",
4237
- component: zl,
4241
+ component: Ql,
4238
4242
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
4239
4243
  }
4240
4244
  ]
4241
4245
  },
4242
4246
  {
4243
4247
  path: "/login",
4244
- component: rs,
4248
+ component: Wn,
4245
4249
  meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
4246
4250
  hidden: !0
4247
4251
  },
4248
4252
  {
4249
4253
  path: "/404",
4250
- component: hs,
4254
+ component: la,
4251
4255
  meta: { menuType: 0 },
4252
4256
  hidden: !0
4253
4257
  }
4254
- ], te = cl({
4255
- history: dl(),
4256
- routes: bs
4258
+ ], le = fl({
4259
+ history: hl(),
4260
+ routes: oa
4257
4261
  });
4258
- ve.configure({ showSpinner: !1 });
4259
- function _s(e) {
4262
+ ge.configure({ showSpinner: !1 });
4263
+ function na(e) {
4260
4264
  e.beforeEach((t, l, n) => {
4261
- ve.start(), t.preHash = location.hash.replace("#", ""), n();
4265
+ ge.start(), t.preHash = location.hash.replace("#", ""), n();
4262
4266
  }), e.afterEach((t) => {
4263
- t.matched.length > 0 && w.commit("user/updateState", {
4267
+ t.matched.length > 0 && S.commit("user/updateState", {
4264
4268
  key: "path",
4265
4269
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4266
- }), ve.done();
4270
+ }), ge.done();
4267
4271
  });
4268
4272
  }
4269
- function ys() {
4270
- return w.state.user.isLodeRemoteRoutes;
4273
+ function aa() {
4274
+ return S.state.user.isLodeRemoteRoutes;
4271
4275
  }
4272
- function mt() {
4273
- return w.state.settings.whiteRoutes || [];
4276
+ function ft() {
4277
+ return S.state.settings.whiteRoutes || [];
4274
4278
  }
4275
- function vs() {
4276
- return w.state.user.token;
4279
+ function sa() {
4280
+ return S.state.user.token;
4277
4281
  }
4278
- function gs(e) {
4282
+ function ia(e) {
4279
4283
  e.beforeEach(async (t, l, n) => {
4280
- var d, p;
4281
- if (mt().indexOf(t.path) !== -1) {
4284
+ var p, d;
4285
+ if (ft().indexOf(t.path) !== -1) {
4282
4286
  n();
4283
4287
  return;
4284
4288
  }
4285
- if (vs()) {
4286
- (d = t.query) != null && d.redirect ? n((p = t.query) == null ? void 0 : p.redirect) : n();
4289
+ if (sa()) {
4290
+ (p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4287
4291
  return;
4288
4292
  }
4289
- const s = t.query.redirect || t.path, a = ts({});
4290
- if (!a) {
4291
- n(`/login?redirect=${s}`);
4293
+ const a = t.query.redirect || t.path, s = qn({});
4294
+ if (!s) {
4295
+ n(`/login?redirect=${a}`);
4292
4296
  return;
4293
4297
  }
4294
- const c = a.flag();
4295
- if (c && await w.dispatch("user/login", { ticket: c })) {
4298
+ const u = s.flag();
4299
+ if (u && await S.dispatch("user/login", { ticket: u })) {
4296
4300
  n();
4297
4301
  return;
4298
4302
  }
4299
- a.jumpToLoginPage(n, `/login?redirect=${s}`);
4303
+ s.jumpToLoginPage(n, `/login?redirect=${a}`);
4300
4304
  });
4301
4305
  }
4302
- const ks = {}, Es = { class: "loading preloader" }, ws = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Ss = [
4303
- ws
4306
+ const ra = {}, ua = { class: "loading preloader" }, ca = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), pa = [
4307
+ ca
4304
4308
  ];
4305
- function Cs(e, t) {
4306
- return i(), f("div", Es, Ss);
4309
+ function da(e, t) {
4310
+ return i(), f("div", ua, pa);
4307
4311
  }
4308
- const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), Bs = N({
4309
- components: { VLoading: ft },
4312
+ const ht = /* @__PURE__ */ B(ra, [["render", da]]), ma = V({
4313
+ components: { VLoading: ht },
4310
4314
  props: {
4311
4315
  schemaHandler: {
4312
4316
  type: Function,
@@ -4340,17 +4344,17 @@ const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), Bs = N({
4340
4344
  beforeCreate() {
4341
4345
  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
4346
  this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4343
- this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, xe(o.notice) ? this.notice = {
4347
+ this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, Ie(o.notice) ? this.notice = {
4344
4348
  title: o.notice
4345
- } : $e(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), w.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4349
+ } : Ae(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
4350
  });
4347
4351
  }
4348
4352
  });
4349
- const xs = ["innerHTML"];
4350
- function $s(e, t, l, n, o, s) {
4351
- const a = ye, c = ye, d = ft;
4353
+ const fa = ["innerHTML"];
4354
+ function ha(e, t, l, n, o, a) {
4355
+ const s = ve, u = ve, p = ht;
4352
4356
  return i(), f(k, null, [
4353
- e.owners.length > 0 ? (i(), m(a, {
4357
+ e.owners.length > 0 ? (i(), m(s, {
4354
4358
  key: 0,
4355
4359
  title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
4356
4360
  type: "info",
@@ -4361,46 +4365,46 @@ function $s(e, t, l, n, o, s) {
4361
4365
  key: 1,
4362
4366
  class: "offline-notice",
4363
4367
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4364
- }, null, 8, xs)) : (i(), f(k, { key: 2 }, [
4365
- e.haveNotice ? (i(), m(c, q({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : E("", !0),
4366
- e.loading ? (i(), m(d, { key: 1 })) : Y(e.$slots, "default", J(q({ key: 2 }, e.schema)), void 0, !0)
4368
+ }, null, 8, fa)) : (i(), f(k, { key: 2 }, [
4369
+ e.haveNotice ? (i(), m(u, U({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : E("", !0),
4370
+ e.loading ? (i(), m(p, { key: 1 })) : ee(e.$slots, "default", z(U({ key: 2 }, e.schema)), void 0, !0)
4367
4371
  ], 64))
4368
4372
  ], 64);
4369
4373
  }
4370
- const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38"]]), ht = {
4374
+ const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38"]]), bt = {
4371
4375
  __name: "table",
4372
4376
  setup(e) {
4373
4377
  const t = (l, n) => {
4374
4378
  if (l.orderBy) {
4375
- const s = {
4379
+ const a = {
4376
4380
  prop: l.orderBy.field,
4377
4381
  order: l.orderBy.mod === "desc" ? "descending" : "ascending"
4378
4382
  };
4379
- l.tableProps = O(l.tableProps, { defaultSort: s });
4383
+ l.tableProps = O(l.tableProps, { defaultSort: a });
4380
4384
  }
4381
- const o = Object.keys(ie.props);
4382
- return Object.keys(l).forEach((s) => {
4383
- o.indexOf(s) === -1 && delete l[s];
4385
+ const o = Object.keys(re.props);
4386
+ return Object.keys(l).forEach((a) => {
4387
+ o.indexOf(a) === -1 && delete l[a];
4384
4388
  }), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
4385
4389
  };
4386
4390
  return (l, n) => (i(), m(de, { "schema-handler": t }, {
4387
4391
  default: r((o) => [
4388
- u(T(ie), J(Z(o)), null, 16)
4392
+ c(w(re), z(Q(o)), null, 16)
4389
4393
  ]),
4390
4394
  _: 1
4391
4395
  }));
4392
4396
  }
4393
- }, Ee = {
4397
+ }, we = {
4394
4398
  __name: "form",
4395
4399
  setup(e) {
4396
- const t = ue(), l = (n, o) => {
4397
- const s = Object.keys(W.props);
4398
- return Object.keys(n).forEach((a) => {
4399
- if (s.indexOf(a) === -1) {
4400
- delete n[a];
4400
+ const t = ce(), l = (n, o) => {
4401
+ const a = Object.keys(Z.props);
4402
+ return Object.keys(n).forEach((s) => {
4403
+ if (a.indexOf(s) === -1) {
4404
+ delete n[s];
4401
4405
  return;
4402
4406
  }
4403
- /.*Api$/.test(a) && (n[a] = K(n[a], t.params));
4407
+ /.*Api$/.test(s) && (n[s] = W(n[s], t.params));
4404
4408
  }), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n = O({
4405
4409
  saveApi: o + "/save",
4406
4410
  afterSubmit: "goback",
@@ -4409,16 +4413,16 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
4409
4413
  }, n), n;
4410
4414
  };
4411
4415
  return (n, o) => (i(), m(de, { "schema-handler": l }, {
4412
- default: r((s) => [
4413
- u(T(W), J(Z(s)), null, 16)
4416
+ default: r((a) => [
4417
+ c(w(Z), z(Q(a)), null, 16)
4414
4418
  ]),
4415
4419
  _: 1
4416
4420
  }));
4417
4421
  }
4418
- }, Is = N({
4422
+ }, ba = V({
4419
4423
  name: "VTree",
4420
4424
  components: {
4421
- VForm: W
4425
+ VForm: Z
4422
4426
  },
4423
4427
  props: {
4424
4428
  treeApi: {
@@ -4488,7 +4492,7 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
4488
4492
  return ["", "\u65B0\u5EFA", "\u7F16\u8F91"][this.type];
4489
4493
  },
4490
4494
  formProps() {
4491
- let e = K(this.$props.saveApi, this.formData);
4495
+ let e = W(this.$props.saveApi, this.formData);
4492
4496
  return this.type === 1 && (e = this.$props.createApi), {
4493
4497
  saveApi: e,
4494
4498
  getApi: this.$props.getApi,
@@ -4512,9 +4516,9 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
4512
4516
  this.type = 2, this.formData = e, this.formkey++;
4513
4517
  },
4514
4518
  append(e, t) {
4515
- var n, o, s;
4519
+ var n, o, a;
4516
4520
  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, ...Xt((s = this.$props.props) == null ? void 0 : s.effectData, e) };
4521
+ const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...ll((a = this.$props.props) == null ? void 0 : a.effectData, e) };
4518
4522
  console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4519
4523
  },
4520
4524
  canAppend(e, t) {
@@ -4529,7 +4533,7 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
4529
4533
  remove(e) {
4530
4534
  this.$http.request({
4531
4535
  method: "DELETE",
4532
- url: K(this.$props.deleteApi, e)
4536
+ url: W(this.$props.deleteApi, e)
4533
4537
  }).then(({ code: t }) => {
4534
4538
  t !== 0 ? this.$message.error("\u64CD\u4F5C\u5931\u8D25") : this.loadTree();
4535
4539
  });
@@ -4549,47 +4553,47 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
4549
4553
  const o = e.data;
4550
4554
  o.pid = t.data.id, this.$http.request({
4551
4555
  method: "POST",
4552
- url: K(this.$props.saveApi, o),
4556
+ url: W(this.$props.saveApi, o),
4553
4557
  data: o
4554
- }).then(({ code: s }) => {
4555
- s !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
4558
+ }).then(({ code: a }) => {
4559
+ a !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
4556
4560
  });
4557
4561
  }
4558
4562
  }
4559
4563
  });
4560
- const As = { class: "card-header" }, Ts = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Fs = /* @__PURE__ */ g("\u6DFB\u52A0"), Ds = { class: "tree-action" }, Os = { key: 0 }, Ps = {
4564
+ const _a = { class: "card-header" }, ya = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), va = { class: "tree-action" }, ga = { key: 0 }, ka = {
4561
4565
  key: 1,
4562
4566
  style: { color: "#E6A23C" }
4563
- }, Rs = /* @__PURE__ */ g("\u7F16\u8F91"), Ls = /* @__PURE__ */ g("\u6DFB\u52A0"), Ms = /* @__PURE__ */ g("\u5220\u9664"), js = { class: "card-header" };
4564
- function Ns(e, t) {
4565
- const l = ae, n = Ut, o = Ce, s = re, a = v("v-form"), c = le;
4566
- return i(), m(c, {
4567
+ }, Ea = { class: "card-header" };
4568
+ function wa(e, t) {
4569
+ const l = ie, n = zt, o = Be, a = ue, s = v("v-form"), u = oe;
4570
+ return i(), m(u, {
4567
4571
  class: "tree-box",
4568
4572
  gutter: 20
4569
4573
  }, {
4570
4574
  default: r(() => [
4571
- u(s, {
4575
+ c(a, {
4572
4576
  span: 8,
4573
4577
  class: "tree-tree"
4574
4578
  }, {
4575
4579
  default: r(() => [
4576
- u(o, { shadow: "never" }, {
4580
+ c(o, { shadow: "never" }, {
4577
4581
  header: r(() => [
4578
- b("div", As, [
4579
- Ts,
4580
- u(l, {
4582
+ b("div", _a, [
4583
+ ya,
4584
+ c(l, {
4581
4585
  type: "text",
4582
4586
  onClick: t[0] || (t[0] = () => e.appendNew())
4583
4587
  }, {
4584
4588
  default: r(() => [
4585
- Fs
4589
+ g("\u6DFB\u52A0")
4586
4590
  ]),
4587
4591
  _: 1
4588
4592
  })
4589
4593
  ])
4590
4594
  ]),
4591
4595
  default: r(() => [
4592
- (e.treeData || []).length > 0 ? (i(), m(n, q({
4596
+ (e.treeData || []).length > 0 ? (i(), m(n, U({
4593
4597
  key: 0,
4594
4598
  style: { height: "100vh" },
4595
4599
  data: e.treeData,
@@ -4600,40 +4604,40 @@ function Ns(e, t) {
4600
4604
  "allow-drop": e.allowDrop,
4601
4605
  onNodeDragEnd: e.handleDragEnd
4602
4606
  }), {
4603
- default: r(({ node: d, data: p }) => [
4604
- b("span", Ds, [
4605
- p[e.localTreeProps.props.label] ? (i(), f("span", Os, x(p[e.localTreeProps.props.label]), 1)) : (i(), f("span", Ps, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4607
+ default: r(({ node: p, data: d }) => [
4608
+ b("span", va, [
4609
+ d[e.localTreeProps.props.label] ? (i(), f("span", ga, I(d[e.localTreeProps.props.label]), 1)) : (i(), f("span", ka, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4606
4610
  b("span", null, [
4607
- p[e.localTreeProps.props.label] ? (i(), m(l, {
4611
+ d[e.localTreeProps.props.label] ? (i(), m(l, {
4608
4612
  key: 0,
4609
4613
  class: "button",
4610
4614
  type: "text",
4611
- onClick: () => e.onclick(p)
4615
+ onClick: () => e.onclick(d)
4612
4616
  }, {
4613
4617
  default: r(() => [
4614
- Rs
4618
+ g("\u7F16\u8F91")
4615
4619
  ]),
4616
4620
  _: 2
4617
4621
  }, 1032, ["onClick"])) : E("", !0),
4618
- e.canAppend(p, d) ? (i(), m(l, {
4622
+ e.canAppend(d, p) ? (i(), m(l, {
4619
4623
  key: 1,
4620
4624
  class: "button",
4621
4625
  type: "text",
4622
- onClick: () => e.append(p, d)
4626
+ onClick: () => e.append(d, p)
4623
4627
  }, {
4624
4628
  default: r(() => [
4625
- Ls
4629
+ g("\u6DFB\u52A0")
4626
4630
  ]),
4627
4631
  _: 2
4628
4632
  }, 1032, ["onClick"])) : E("", !0),
4629
- p.children === void 0 || p.children.length === 0 ? (i(), m(l, {
4633
+ d.children === void 0 || d.children.length === 0 ? (i(), m(l, {
4630
4634
  key: 2,
4631
4635
  class: "button",
4632
4636
  type: "text",
4633
- onClick: () => e.remove(p)
4637
+ onClick: () => e.remove(d)
4634
4638
  }, {
4635
4639
  default: r(() => [
4636
- Ms
4640
+ g("\u5220\u9664")
4637
4641
  ]),
4638
4642
  _: 2
4639
4643
  }, 1032, ["onClick"])) : E("", !0)
@@ -4648,7 +4652,7 @@ function Ns(e, t) {
4648
4652
  ]),
4649
4653
  _: 1
4650
4654
  }),
4651
- u(s, {
4655
+ c(a, {
4652
4656
  span: 16,
4653
4657
  class: "tree-form"
4654
4658
  }, {
@@ -4658,15 +4662,15 @@ function Ns(e, t) {
4658
4662
  shadow: "never"
4659
4663
  }, {
4660
4664
  header: r(() => [
4661
- b("div", js, [
4662
- b("span", null, x(e.formType), 1)
4665
+ b("div", Ea, [
4666
+ b("span", null, I(e.formType), 1)
4663
4667
  ])
4664
4668
  ]),
4665
4669
  default: r(() => [
4666
- (i(), m(a, q({
4670
+ (i(), m(s, U({
4667
4671
  key: e.formkey,
4668
4672
  modelValue: e.formData,
4669
- "onUpdate:modelValue": t[1] || (t[1] = (d) => e.formData = d)
4673
+ "onUpdate:modelValue": t[1] || (t[1] = (p) => e.formData = p)
4670
4674
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4671
4675
  ]),
4672
4676
  _: 1
@@ -4678,34 +4682,34 @@ function Ns(e, t) {
4678
4682
  _: 1
4679
4683
  });
4680
4684
  }
4681
- const Ue = /* @__PURE__ */ C(Is, [["render", Ns]]), Vs = {
4685
+ const He = /* @__PURE__ */ B(ba, [["render", wa]]), Sa = {
4682
4686
  __name: "tree",
4683
4687
  setup(e) {
4684
4688
  const t = (l, n) => {
4685
- const o = Object.keys(Ue.props);
4686
- return Object.keys(l).forEach((s) => {
4687
- o.indexOf(s) === -1 && delete l[s];
4689
+ const o = Object.keys(He.props);
4690
+ return Object.keys(l).forEach((a) => {
4691
+ o.indexOf(a) === -1 && delete l[a];
4688
4692
  }), l;
4689
4693
  };
4690
4694
  return (l, n) => (i(), m(de, { "schema-handler": t }, {
4691
4695
  default: r((o) => [
4692
- u(Ue, J(Z(o)), null, 16)
4696
+ c(He, z(Q(o)), null, 16)
4693
4697
  ]),
4694
4698
  _: 1
4695
4699
  }));
4696
4700
  }
4697
- }, oe = {
4701
+ }, ne = {
4698
4702
  __name: "container",
4699
4703
  setup(e) {
4700
- const t = R(0);
4701
- return pl(() => {
4704
+ const t = L(0);
4705
+ return bl(() => {
4702
4706
  t.value++;
4703
4707
  }), (l, n) => {
4704
4708
  const o = v("router-view");
4705
4709
  return i(), m(o);
4706
4710
  };
4707
4711
  }
4708
- }, qs = {
4712
+ }, Ca = {
4709
4713
  title: {
4710
4714
  text: ""
4711
4715
  },
@@ -4734,34 +4738,34 @@ const Ue = /* @__PURE__ */ C(Is, [["render", Ns]]), Vs = {
4734
4738
  },
4735
4739
  series: []
4736
4740
  };
4737
- function Us(e, t, l) {
4741
+ function Ba(e, t, l) {
4738
4742
  if (l.length === 0)
4739
4743
  return {};
4740
- let n = O({}, qs);
4741
- if (n.title.text = e, xe(t)) {
4742
- const o = [], s = Object.keys(l[0]);
4743
- let a = s[0], c = s.filter((p, h) => h > 0), d = t;
4744
+ let n = O({}, Ca);
4745
+ if (n.title.text = e, Ie(t)) {
4746
+ const o = [], a = Object.keys(l[0]);
4747
+ let s = a[0], u = a.filter((d, h) => h > 0), p = t;
4744
4748
  if (t.indexOf(":") > -1) {
4745
- const p = t.split(":"), h = p[1].split(",");
4746
- d = p[0], a = h[0], c = h.filter((_, A) => A > 0);
4749
+ const d = t.split(":"), h = d[1].split(",");
4750
+ p = d[0], s = h[0], u = h.filter((_, T) => T > 0);
4747
4751
  }
4748
- c.forEach((p) => {
4752
+ u.forEach((d) => {
4749
4753
  const h = [];
4750
4754
  l.forEach((_) => {
4751
- h.push(_[p]);
4755
+ h.push(_[d]);
4752
4756
  }), n.series.push({
4753
- name: p,
4754
- type: d,
4757
+ name: d,
4758
+ type: p,
4755
4759
  smooth: !0,
4756
4760
  data: h
4757
- }), n.legend.data.push(p);
4758
- }), l.forEach((p) => {
4759
- o.push(p[a]);
4761
+ }), n.legend.data.push(d);
4762
+ }), l.forEach((d) => {
4763
+ o.push(d[s]);
4760
4764
  }), n.xAxis.data = o;
4761
4765
  }
4762
- return $e(t) && (n = O(n, t)), console.log(111, n), n;
4766
+ return Ae(t) && (n = O(n, t)), console.log(111, n), n;
4763
4767
  }
4764
- const Hs = N({
4768
+ const xa = V({
4765
4769
  name: "NumberPanel",
4766
4770
  props: {
4767
4771
  dataList: {
@@ -4772,27 +4776,27 @@ const Hs = N({
4772
4776
  data() {
4773
4777
  return {};
4774
4778
  }
4775
- }), Gs = { class: "number-panel-title" }, Js = { class: "number" }, zs = { class: "name" };
4776
- function Ks(e, t, l, n, o, s) {
4777
- return i(!0), f(k, null, $(e.dataList, (a, c) => (i(), f("span", { key: c }, [
4778
- b("div", Gs, [
4779
- (i(!0), f(k, null, $(Object.keys(a), (d, p) => (i(), f("div", {
4780
- key: p,
4779
+ }), Ia = { class: "number-panel-title" }, Aa = { class: "number" }, $a = { class: "name" };
4780
+ function Ta(e, t, l, n, o, a) {
4781
+ return i(!0), f(k, null, A(e.dataList, (s, u) => (i(), f("span", { key: u }, [
4782
+ b("div", Ia, [
4783
+ (i(!0), f(k, null, A(Object.keys(s), (p, d) => (i(), f("div", {
4784
+ key: d,
4781
4785
  class: "title-inner"
4782
4786
  }, [
4783
- b("p", Js, x(a[d]), 1),
4784
- b("p", zs, x(d), 1)
4787
+ b("p", Aa, I(s[p]), 1),
4788
+ b("p", $a, I(p), 1)
4785
4789
  ]))), 128))
4786
4790
  ])
4787
4791
  ]))), 128);
4788
4792
  }
4789
- const Ws = /* @__PURE__ */ C(Hs, [["render", Ks], ["__scopeId", "data-v-cc0d8293"]]), Zs = {
4793
+ const Fa = /* @__PURE__ */ B(xa, [["render", Ta], ["__scopeId", "data-v-cc0d8293"]]), Da = {
4790
4794
  components: {
4791
- Chart: sl,
4792
- Md: bl,
4793
- Json: Fe,
4794
- Table: ie,
4795
- Number: Ws,
4795
+ Chart: ul,
4796
+ Md: gl,
4797
+ Json: De,
4798
+ Table: re,
4799
+ Number: Fa,
4796
4800
  Html: ""
4797
4801
  },
4798
4802
  props: {
@@ -4813,20 +4817,20 @@ const Ws = /* @__PURE__ */ C(Hs, [["render", Ks], ["__scopeId", "data-v-cc0d8293
4813
4817
  };
4814
4818
  if (o === "chart")
4815
4819
  return {
4816
- options: Us(n.id, n.chart, n.data)
4820
+ options: Ba(n.id, n.chart, n.data)
4817
4821
  };
4818
4822
  if (o === "md")
4819
4823
  return {
4820
4824
  source: n.data
4821
4825
  };
4822
4826
  if (o === "table") {
4823
- if (!Yt(n.data))
4827
+ if (!ol(n.data))
4824
4828
  return { showPagination: !1 };
4825
- const s = [];
4826
- return n.data[0] && Object.keys(n.data[0]).forEach((a, c) => {
4827
- s.push({ field: a, label: a });
4829
+ const a = [];
4830
+ return n.data[0] && Object.keys(n.data[0]).forEach((s, u) => {
4831
+ a.push({ field: s, label: s });
4828
4832
  }), {
4829
- headers: s,
4833
+ headers: a,
4830
4834
  list: n.data,
4831
4835
  showPagination: !1
4832
4836
  };
@@ -4837,21 +4841,21 @@ const Ws = /* @__PURE__ */ C(Hs, [["render", Ks], ["__scopeId", "data-v-cc0d8293
4837
4841
  };
4838
4842
  }
4839
4843
  };
4840
- function Qs(e, t, l, n, o, s) {
4841
- const a = Ce, c = St("resize");
4842
- return _e((i(), m(a, {
4844
+ function Oa(e, t, l, n, o, a) {
4845
+ const s = Be, u = xt("resize");
4846
+ return ye((i(), m(s, {
4843
4847
  shadow: "never",
4844
4848
  class: "part"
4845
4849
  }, {
4846
4850
  default: r(() => [
4847
- (i(), m(Ke(n.comptype()), J(Z(n.compprops(l.option))), null, 16))
4851
+ (i(), m(We(n.comptype()), z(Q(n.compprops(l.option))), null, 16))
4848
4852
  ]),
4849
4853
  _: 1
4850
4854
  })), [
4851
- [c, !0]
4855
+ [u, !0]
4852
4856
  ]);
4853
4857
  }
4854
- const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1"]]), Ys = /* @__PURE__ */ N({
4858
+ const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1"]]), Ra = /* @__PURE__ */ V({
4855
4859
  __name: "index",
4856
4860
  props: {
4857
4861
  filter: {
@@ -4865,10 +4869,10 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
4865
4869
  },
4866
4870
  setup(e) {
4867
4871
  const t = e, l = useRoute();
4868
- Ct(() => {
4872
+ It(() => {
4869
4873
  });
4870
- const n = R({});
4871
- Ge(() => {
4874
+ const n = L({});
4875
+ Je(() => {
4872
4876
  var h;
4873
4877
  (h = t.filter) == null || h.forEach((_) => {
4874
4878
  _.default !== null && (n.value[_.field] = _.default);
@@ -4884,38 +4888,38 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
4884
4888
  cancelButton: {
4885
4889
  text: "\u91CD\u7F6E"
4886
4890
  }
4887
- }, s = R(1), a = R(t.filter), c = R(t.dataPart), d = j(() => {
4891
+ }, a = L(1), s = L(t.filter), u = L(t.dataPart), p = N(() => {
4888
4892
  let h = l.params.id;
4889
4893
  if (!h) {
4890
4894
  const _ = l.path.split("/");
4891
4895
  h = _[_.length - 1];
4892
4896
  }
4893
4897
  return "/focusbi_report/view/" + h;
4894
- }), p = (h) => {
4895
- Hl.get(d.value, { params: h }).then(({ data: _ }) => {
4896
- a.value = _.filter, c.value = _.dataPart, s.value++;
4898
+ }), d = (h) => {
4899
+ Kl.get(p.value, { params: h }).then(({ data: _ }) => {
4900
+ s.value = _.filter, u.value = _.dataPart, a.value++;
4897
4901
  });
4898
4902
  };
4899
4903
  return (h, _) => {
4900
- const A = Ce, I = re, U = ye, V = le;
4901
- return i(), m(V, null, {
4904
+ const T = Be, $ = ue, H = ve, q = oe;
4905
+ return i(), m(q, null, {
4902
4906
  default: r(() => [
4903
- a.value.length > 0 ? (i(), m(I, {
4907
+ w(s).length > 0 ? (i(), m($, {
4904
4908
  key: 0,
4905
4909
  span: 24
4906
4910
  }, {
4907
4911
  default: r(() => [
4908
- u(A, {
4912
+ c(T, {
4909
4913
  shadow: "never",
4910
4914
  class: "part-filter"
4911
4915
  }, {
4912
4916
  default: r(() => [
4913
- u(T(W), {
4914
- modelValue: n.value,
4915
- "onUpdate:modelValue": _[0] || (_[0] = (B) => n.value = B),
4916
- "form-items": a.value,
4917
+ c(w(Z), {
4918
+ modelValue: w(n),
4919
+ "onUpdate:modelValue": _[0] || (_[0] = (x) => At(n) ? n.value = x : null),
4920
+ "form-items": w(s),
4917
4921
  options: o,
4918
- onSubmit: p
4922
+ onSubmit: d
4919
4923
  }, null, 8, ["modelValue", "form-items"])
4920
4924
  ]),
4921
4925
  _: 1
@@ -4923,27 +4927,27 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
4923
4927
  ]),
4924
4928
  _: 1
4925
4929
  })) : E("", !0),
4926
- u(I, { span: 24 }, {
4930
+ c($, { span: 24 }, {
4927
4931
  default: r(() => [
4928
- u(V, { gutter: 20 }, {
4932
+ c(q, { gutter: 20 }, {
4929
4933
  default: r(() => [
4930
- (i(!0), f(k, null, $(c.value, (B, z) => (i(), m(I, {
4931
- key: z,
4932
- span: B.col || 24
4934
+ (i(!0), f(k, null, A(w(u), (x, K) => (i(), m($, {
4935
+ key: K,
4936
+ span: x.col || 24
4933
4937
  }, {
4934
4938
  default: r(() => [
4935
- B.errMsg ? (i(), m(U, {
4939
+ x.errMsg ? (i(), m(H, {
4936
4940
  key: 1,
4937
- title: B.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
4941
+ title: x.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
4938
4942
  type: "error"
4939
4943
  }, {
4940
4944
  default: r(() => [
4941
- g(x(B.errMsg), 1)
4945
+ g(I(x.errMsg), 1)
4942
4946
  ]),
4943
4947
  _: 2
4944
- }, 1032, ["title"])) : (i(), m(Xs, {
4945
- key: s.value,
4946
- option: B
4948
+ }, 1032, ["title"])) : (i(), m(Pa, {
4949
+ key: w(a),
4950
+ option: x
4947
4951
  }, null, 8, ["option"]))
4948
4952
  ]),
4949
4953
  _: 2
@@ -4960,10 +4964,10 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
4960
4964
  };
4961
4965
  }
4962
4966
  });
4963
- const ea = {
4967
+ const La = {
4964
4968
  __name: "report",
4965
4969
  setup(e) {
4966
- const t = useRoute(), l = j(() => {
4970
+ const t = useRoute(), l = N(() => {
4967
4971
  let n = t.params.id;
4968
4972
  if (!n) {
4969
4973
  const o = t.path.split("/");
@@ -4971,54 +4975,54 @@ const ea = {
4971
4975
  }
4972
4976
  return "/focusbi_report/view/" + n;
4973
4977
  });
4974
- return (n, o) => (i(), m(de, { "schema-api": T(l) }, {
4975
- default: r((s) => [
4976
- u(Ys, J(Z(s)), null, 16)
4978
+ return (n, o) => (i(), m(de, { "schema-api": w(l) }, {
4979
+ default: r((a) => [
4980
+ c(Ra, z(Q(a)), null, 16)
4977
4981
  ]),
4978
4982
  _: 1
4979
4983
  }, 8, ["schema-api"]));
4980
4984
  }
4981
4985
  };
4982
- let X = {};
4983
- function bi(e) {
4984
- X = e;
4986
+ let Y = {};
4987
+ function ei(e) {
4988
+ Y = e;
4985
4989
  }
4986
- const ta = (e) => {
4990
+ const Ma = (e) => {
4987
4991
  const t = (l) => {
4988
4992
  const n = "./views/" + l + ".vue";
4989
- return X && X[n] && X[n].default ? X[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), oe);
4993
+ return Y && Y[n] && Y[n].default ? Y[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), ne);
4990
4994
  };
4991
4995
  if (e.path === "#")
4992
- return oe;
4996
+ return ne;
4993
4997
  switch (e.page_type) {
4994
- case P.list:
4995
- return ht;
4996
- case P.form:
4997
- return Ee;
4998
- case P.custom:
4999
- case P.localComp:
4998
+ case R.list:
4999
+ return bt;
5000
+ case R.form:
5001
+ return we;
5002
+ case R.custom:
5003
+ case R.localComp:
5000
5004
  return t(e.view || "");
5001
- case P.tree:
5002
- return Vs;
5003
- case P.report:
5004
- return ea;
5005
- case P.customSchema:
5006
- return oe;
5005
+ case R.tree:
5006
+ return Sa;
5007
+ case R.report:
5008
+ return La;
5009
+ case R.customSchema:
5010
+ return ne;
5007
5011
  }
5008
- return oe;
5012
+ return ne;
5009
5013
  };
5010
- function la(e) {
5014
+ function ja(e) {
5011
5015
  let t = e.path;
5012
- return e.type === D.menu && e.page_type === P.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;
5016
+ return e.type === D.menu && e.page_type === R.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
5017
  }
5014
- function oa(e) {
5018
+ function Na(e) {
5015
5019
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5016
5020
  }
5017
- const bt = (e) => {
5021
+ const _t = (e) => {
5018
5022
  const t = e.type !== D.page, l = {
5019
- path: la(e),
5020
- name: e.id + "_" + oa(e) + "_" + e.path.replaceAll("/", "_"),
5021
- component: ta(e),
5023
+ path: ja(e),
5024
+ name: e.id + "_" + Na(e) + "_" + e.path.replaceAll("/", "_"),
5025
+ component: Ma(e),
5022
5026
  meta: {
5023
5027
  id: e.id,
5024
5028
  pageId: e.id,
@@ -5029,13 +5033,13 @@ const bt = (e) => {
5029
5033
  menuType: e.type,
5030
5034
  keepAlive: !1
5031
5035
  },
5032
- children: e.children ? e.children.map((n) => bt(n)) : []
5036
+ children: e.children ? e.children.map((n) => _t(n)) : []
5033
5037
  };
5034
- if (e.page_type === P.entity) {
5035
- const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
5038
+ if (e.page_type === R.entity) {
5039
+ const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
5036
5040
  path: n,
5037
5041
  name: e.name + "\u5217\u8868" + e.id,
5038
- component: ht,
5042
+ component: bt,
5039
5043
  meta: {
5040
5044
  id: e.id + 99999,
5041
5045
  title: "\u5217\u8868",
@@ -5047,7 +5051,7 @@ const bt = (e) => {
5047
5051
  }, {
5048
5052
  path: o,
5049
5053
  name: e.name + "\u65B0\u5EFA" + e.id,
5050
- component: Ee,
5054
+ component: we,
5051
5055
  meta: {
5052
5056
  id: e.id + 99999 + 1,
5053
5057
  title: "\u65B0\u5EFA",
@@ -5057,9 +5061,9 @@ const bt = (e) => {
5057
5061
  pageId: e.id
5058
5062
  }
5059
5063
  }, {
5060
- path: s,
5064
+ path: a,
5061
5065
  name: e.name + "\u7F16\u8F91" + e.id,
5062
- component: Ee,
5066
+ component: we,
5063
5067
  meta: {
5064
5068
  id: e.id + 99999 + 2,
5065
5069
  title: "\u7F16\u8F91",
@@ -5069,7 +5073,7 @@ const bt = (e) => {
5069
5073
  pageId: e.id
5070
5074
  }
5071
5075
  }];
5072
- l.children = [...a, ...l.children];
5076
+ l.children = [...s, ...l.children];
5073
5077
  }
5074
5078
  if (l.children && l.children.length > 0) {
5075
5079
  let n = !0;
@@ -5078,16 +5082,16 @@ const bt = (e) => {
5078
5082
  }), l.meta && (l.meta.menuType = t ? D.dir : D.hidden), n) {
5079
5083
  l.meta && (l.meta.menuType = D.menu);
5080
5084
  let o = "/";
5081
- for (let s = 0; s < l.children.length; s++)
5082
- if (l.children[s].path.indexOf("/:") === -1) {
5083
- o = l.children[s].path;
5085
+ for (let a = 0; a < l.children.length; a++)
5086
+ if (l.children[a].path.indexOf("/:") === -1) {
5087
+ o = l.children[a].path;
5084
5088
  break;
5085
5089
  }
5086
5090
  l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
5087
5091
  }
5088
5092
  }
5089
5093
  return l;
5090
- }, na = (e) => {
5094
+ }, Va = (e) => {
5091
5095
  const t = [];
5092
5096
  return e.forEach((l) => {
5093
5097
  const n = {
@@ -5096,51 +5100,51 @@ const bt = (e) => {
5096
5100
  routes: []
5097
5101
  };
5098
5102
  l.routes.forEach((o) => {
5099
- n.routes.push(bt(o));
5103
+ n.routes.push(_t(o));
5100
5104
  }), t.push(n);
5101
5105
  }), t;
5102
5106
  };
5103
- function sa(e) {
5107
+ function qa(e) {
5104
5108
  e.beforeEach(async (t, l, n) => {
5105
- if (mt().indexOf(t.path) !== -1) {
5109
+ if (ft().indexOf(t.path) !== -1) {
5106
5110
  n();
5107
5111
  return;
5108
5112
  }
5109
- if (ys()) {
5113
+ if (aa()) {
5110
5114
  n();
5111
5115
  return;
5112
5116
  }
5113
- await w.dispatch("user/info");
5114
- const o = await w.dispatch("user/loadRemoteRoutes"), s = na(o);
5115
- s.forEach((a) => {
5116
- a.routes.forEach((c) => {
5117
+ await S.dispatch("user/info");
5118
+ const o = await S.dispatch("user/loadRemoteRoutes"), a = Va(o);
5119
+ a.forEach((s) => {
5120
+ s.routes.forEach((u) => {
5117
5121
  e.addRoute({
5118
5122
  path: "/",
5119
5123
  component: dt,
5120
- children: [c]
5124
+ children: [u]
5121
5125
  });
5122
5126
  });
5123
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), w.commit("user/updateRemoteRouter", s), await e.replace(t), n();
5127
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
5124
5128
  });
5125
5129
  }
5126
- function aa(e) {
5130
+ function Ua(e) {
5127
5131
  e.beforeEach(async (t, l, n) => {
5128
- var c;
5129
- const s = [w.state.settings.title || ""], a = t.matched.length;
5130
- for (let d = a; d > a - 3; d--) {
5131
- const p = t.matched[d - 1];
5132
- (c = p == null ? void 0 : p.meta) != null && c.title && s.push(p.meta.title + "");
5132
+ var u;
5133
+ const a = [S.state.settings.title || ""], s = t.matched.length;
5134
+ for (let p = s; p > s - 3; p--) {
5135
+ const d = t.matched[p - 1];
5136
+ (u = d == null ? void 0 : d.meta) != null && u.title && a.push(d.meta.title + "");
5133
5137
  }
5134
- s.length > 1 && (document.title = s.reverse().join("-")), n();
5138
+ a.length > 1 && (document.title = a.reverse().join("-")), n();
5135
5139
  }), e.afterEach(async (t, l, n) => {
5136
- Object.keys(t.meta).length > 0 && await w.dispatch("app/setCurrentMeta", t.meta);
5140
+ Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
5137
5141
  });
5138
5142
  }
5139
- function ia(e) {
5140
- gs(e), _s(e), sa(e), aa(e);
5143
+ function Ha(e) {
5144
+ ia(e), na(e), qa(e), Ua(e);
5141
5145
  }
5142
- ia(te);
5143
- const ra = {
5146
+ Ha(le);
5147
+ const Ga = {
5144
5148
  beforeMount(e, t) {
5145
5149
  e.clickOutsideEvent = function(l) {
5146
5150
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5149,130 +5153,130 @@ const ra = {
5149
5153
  unmounted(e) {
5150
5154
  document.body.removeEventListener("click", e.clickOutsideEvent);
5151
5155
  }
5152
- }, G = fl(), ua = {
5156
+ }, J = yl(), Ja = {
5153
5157
  mounted: (e, t) => {
5154
5158
  e !== null && (t.value, e.oncontextmenu = (l) => {
5155
- l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && G.emit("right-click", { event: l, data: t.value });
5159
+ l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && J.emit("right-click", { event: l, data: t.value });
5156
5160
  });
5157
5161
  }
5158
- }, ca = {
5162
+ }, za = {
5159
5163
  mounted(e) {
5160
5164
  }
5161
5165
  };
5162
- function He(e, t) {
5166
+ function Ge(e, t) {
5163
5167
  let l = e[`offset${t}`], n = e.offsetParent;
5164
5168
  for (; n; )
5165
5169
  l += n[`offset${t}`], n = n.offsetParent;
5166
5170
  return l;
5167
5171
  }
5168
- const da = {
5172
+ const Ka = {
5169
5173
  mounted: (e, t) => {
5170
5174
  if (e === null || !t.value.dev)
5171
5175
  return;
5172
5176
  let l = e;
5173
5177
  if (t.value.parent)
5174
- for (let d = 0; d < t.value.parent; d++)
5178
+ for (let p = 0; p < t.value.parent; p++)
5175
5179
  l.parentElement && (l = l.parentElement);
5176
5180
  l.classList.add("devtool-hover");
5177
5181
  const n = document.createElement("i");
5178
5182
  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 = He(l, "Top") - 15 + "px", n.style.left = He(l, "Left") - 15 + "px";
5183
+ n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = Ge(l, "Top") - 15 + "px", n.style.left = Ge(l, "Left") - 15 + "px";
5180
5184
  };
5181
5185
  const o = document.createElement("span");
5182
5186
  o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
5183
- const s = document.createElement("i");
5184
- s.className = "iconfont ra-editor1", o.appendChild(s), o.onclick = (d) => {
5185
- G.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
5187
+ const a = document.createElement("i");
5188
+ a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (p) => {
5189
+ J.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
5186
5190
  }, n.appendChild(o);
5187
- const a = document.createElement("span");
5188
- a.className = "dev-action-del", a.title = "\u5220\u9664";
5189
- const c = document.createElement("i");
5190
- c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
5191
- G.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5192
- }, n.appendChild(a), l.insertBefore(n, l.firstChild);
5191
+ const s = document.createElement("span");
5192
+ s.className = "dev-action-del", s.title = "\u5220\u9664";
5193
+ const u = document.createElement("i");
5194
+ u.className = "iconfont ra-cut", s.appendChild(u), s.onclick = (p) => {
5195
+ J.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
5196
+ }, n.appendChild(s), l.insertBefore(n, l.firstChild);
5193
5197
  }
5194
- }, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5198
+ }, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5195
5199
  __proto__: null,
5196
- outClick: ra,
5197
- rightClick: ua,
5198
- resize: ca,
5199
- devtool: da
5200
+ outClick: Ga,
5201
+ rightClick: Ja,
5202
+ resize: za,
5203
+ devtool: Ka
5200
5204
  }, Symbol.toStringTag, { value: "Module" }));
5201
5205
  let se;
5202
- function _i(e) {
5203
- return e ? Pe(O(ce.axios, e)) : se;
5206
+ function ti(e) {
5207
+ return e ? Re(O(pe.axios, e)) : se;
5204
5208
  }
5205
- function yi(e) {
5206
- const t = O(ce, e), l = Bt(_l), n = va(t), o = t.plugins || [];
5207
- o.unshift(n), o.forEach((s) => {
5208
- ya(l, s);
5209
- }), t != null && t.mock && xl(), se = Pe(t.axios), w.dispatch("setHttp", se).then(), w.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = te, window.App = l, window.OmsOptions = t, al(() => ({
5210
- "X-Token": Oe()
5211
- })), te.isReady().then(() => l.mount("#app"));
5209
+ function li(e) {
5210
+ const t = O(pe, e), l = $t(kl), n = ls(t), o = t.plugins || [];
5211
+ o.unshift(n), o.forEach((a) => {
5212
+ ts(l, a);
5213
+ }), t != null && t.mock && Tl(), se = Re(t.axios), S.dispatch("setHttp", se).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = le, window.App = l, window.OmsOptions = t, cl(() => ({
5214
+ "X-Token": Pe()
5215
+ })), le.isReady().then(() => l.mount("#app"));
5212
5216
  }
5213
- function ma(e, t = {}) {
5217
+ function Za(e, t = {}) {
5214
5218
  Object.keys(t).forEach((l) => {
5215
5219
  e.component(l, t[l]);
5216
5220
  });
5217
5221
  }
5218
- function fa(e = []) {
5222
+ function Qa(e = []) {
5219
5223
  e.forEach((t) => {
5220
- te.addRoute(t);
5221
- }), w.commit("user/setCustomRoutes", e);
5224
+ le.addRoute(t);
5225
+ }), S.commit("user/setCustomRoutes", e);
5222
5226
  }
5223
- function ha(e, t) {
5227
+ function Xa(e, t) {
5224
5228
  t.forEach((l) => {
5225
- $e(l) && (l = [l]), e.use(...l);
5229
+ Ae(l) && (l = [l]), e.use(...l);
5226
5230
  });
5227
5231
  }
5228
- function ba(e, t = {}) {
5232
+ function Ya(e, t = {}) {
5229
5233
  Object.keys(t).forEach((l) => {
5230
5234
  e.directive(l, t[l]);
5231
5235
  });
5232
5236
  }
5233
- function _a(e = {}) {
5237
+ function es(e = {}) {
5234
5238
  const t = ["app", "settings", "user"];
5235
5239
  Object.keys(e).forEach((l) => {
5236
5240
  if (t.indexOf(l) !== -1) {
5237
5241
  console.warn(`storeModule name [${l}] is use by base, please change it!`);
5238
5242
  return;
5239
5243
  }
5240
- w.registerModule(l, e[l]);
5244
+ S.registerModule(l, e[l]);
5241
5245
  });
5242
5246
  }
5243
- function ya(e, t) {
5244
- ma(e, t.components || {}), fa(t.routes || []), ha(e, t.use || []), ba(e, t.directives || {}), _a(t.storeModules || {}), nt(t.mockApis || []);
5247
+ function ts(e, t) {
5248
+ Za(e, t.components || {}), Qa(t.routes || []), Xa(e, t.use || []), Ya(e, t.directives || {}), es(t.storeModules || {}), at(t.mockApis || []);
5245
5249
  }
5246
- function va(e) {
5250
+ function ls(e) {
5247
5251
  var t;
5248
5252
  return {
5249
- components: { VIcon: il },
5250
- directives: pa,
5253
+ components: { VIcon: pl },
5254
+ directives: Wa,
5251
5255
  use: [
5252
- w,
5253
- te,
5254
- [ll, { locale: Be, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5256
+ S,
5257
+ le,
5258
+ [sl, { locale: xe, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5255
5259
  ]
5256
5260
  };
5257
5261
  }
5258
5262
  export {
5259
- Qn as BaseSso,
5260
- oe as Container,
5261
- Xn as DingTalk,
5263
+ Mn as BaseSso,
5264
+ ne as Container,
5265
+ jn as DingTalk,
5262
5266
  dt as Layout,
5263
5267
  D as MenuType,
5264
- Ne as Message,
5265
- Ve as MessageBox,
5266
- P as PageType,
5267
- es as allSso,
5268
- yi as createAdmin,
5269
- G as eventBus,
5270
- Gl as getCmp,
5268
+ Ve as Message,
5269
+ qe as MessageBox,
5270
+ R as PageType,
5271
+ Vn as allSso,
5272
+ li as createAdmin,
5273
+ J as eventBus,
5274
+ Wl as getCmp,
5271
5275
  se as http,
5272
- Pe as instance,
5273
- bi as regViews,
5274
- hi as setCmp,
5275
- na as transRemoteModules,
5276
- _i as useHttp
5276
+ Re as instance,
5277
+ ei as regViews,
5278
+ Ys as setCmp,
5279
+ Va as transRemoteModules,
5280
+ ti as useHttp
5277
5281
  };
5278
5282
  //# sourceMappingURL=index.es.js.map