@okiss/oms 0.0.29 → 0.0.30

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