@okiss/oms 0.0.29 → 0.0.31

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