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