@okiss/oms 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,20 +1,19 @@
1
- var Tt = Object.defineProperty;
2
- var Ot = (e, t, l) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
- var L = (e, t, l) => (Ot(e, typeof t != "symbol" ? t + "" : t, l), l);
4
- import { defineComponent as V, onBeforeMount as Ze, provide as Bt, resolveComponent as v, openBlock as i, createBlock as m, ref as A, createElementBlock as h, createVNode as c, unref as w, mergeProps as U, pushScopeId as $e, popScopeId as Ie, createElementVNode as _, computed as j, createTextVNode as k, withCtx as r, TransitionGroup as At, Fragment as E, renderList as B, toDisplayString as O, normalizeClass as F, renderSlot as le, createCommentVNode as $, toRefs as Pt, normalizeStyle as Rt, Transition as Lt, resolveDynamicComponent as Qe, normalizeProps as J, guardReactiveProps as Y, withDirectives as ie, vModelText as he, resolveDirective as Mt, onMounted as jt, isRef as Dt, getCurrentInstance as Nt, h as Vt, toRaw as qt, createApp as Ut } from "vue";
5
- import { addNewStyle as Ht, addNewStyleTag as Ft, queryParams as Gt, logGroup as Jt, compactObject as Xe, showEleByClassName as Ye, waterMarker as zt, Cache as be, isExternal as Ue, getQueryParam as et, createIFrame as Kt, strVarReplace as Q, obj2Param as Wt, isObject as X, isString as Ce, effectDataTrans as Zt, isArray as tt } from "@okiss/utils";
1
+ var Ct = Object.defineProperty;
2
+ var Tt = (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) => (Tt(e, typeof t != "symbol" ? t + "" : t, l), l);
4
+ import { defineComponent as q, onBeforeMount as ze, provide as Ot, resolveComponent as v, openBlock as i, createBlock as m, createVNode as u, computed as j, createTextVNode as k, withCtx as r, TransitionGroup as Bt, createElementBlock as h, Fragment as E, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as $, toRefs as At, ref as M, normalizeStyle as Pt, createElementVNode as _, Transition as Rt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as w, withDirectives as ie, vModelText as he, resolveDirective as Lt, onMounted as Mt, isRef as jt, getCurrentInstance as Dt, h as Nt, toRaw as Vt, createApp as qt } from "vue";
5
+ import { addNewStyle as Ut, addNewStyleTag as Ht, queryParams as Ft, logGroup as Gt, compactObject as Qe, showEleByClassName as Xe, waterMarker as Jt, Cache as be, isExternal as Ve, getQueryParam as Ye, createIFrame as zt, strVarReplace as Q, obj2Param as Kt, isObject as X, isString as $e, effectDataTrans as Wt, isArray as et } from "@okiss/utils";
6
6
  import _e from "mockjs";
7
- import Qt, { cloneDeep as y, merge as P, get as ne, unset as lt, isObject as Xt } from "lodash";
8
- import nt from "element-plus/lib/locale/lang/zh-cn";
9
- import Te from "axios";
7
+ import Zt, { cloneDeep as y, merge as A, get as ne, unset as tt, isObject as Qt } from "lodash";
8
+ import lt from "element-plus/lib/locale/lang/zh-cn";
9
+ import Ie from "axios";
10
10
  import N from "js-cookie";
11
- import { createStore as Yt, useStore as ot, mapGetters as Oe } from "vuex";
12
- import el, { ElMessage as tl, ElMessageBox as ll, ElCard as nl, ElRow as ol, ElCol as al } from "element-plus";
11
+ import { createStore as Xt, useStore as nt, mapGetters as Ce } from "vuex";
12
+ import Yt, { ElMessage as el, ElMessageBox as tl, ElCard as ll, ElRow as nl, ElCol as ol } from "element-plus";
13
13
  import "element-plus/dist/index.css";
14
14
  import "dayjs/locale/zh-cn";
15
- import { useRoute as pe, onBeforeRouteLeave as sl, useRouter as il, createRouter as rl, createWebHashHistory as cl, onBeforeRouteUpdate as ul } from "vue-router";
16
- import { VForm as G, VBtn as Be, JsonView as Ae, VTable as oe, VChart as pl, setUploadHeaderHandle as dl, VIcon as ml } from "@okiss/vbtf";
17
- import { ElBreadcrumbItem as fl, ElBreadcrumb as hl, ElRow as ae, ElMain as bl, ElAside as _l, ElContainer as yl, ElDivider as at, ElButton as ue, ElOption as Pe, ElSelect as Re, ElFormItem as st, ElForm as it, ElCol as de, ElDrawer as rt, ElDropdownItem as vl, ElDropdownMenu as gl, ElDropdown as kl, ElMenuItem as wl, ElSubMenu as Sl, ElOptionGroup as xl, ElMenu as El, ElScrollbar as $l, ElBacktop as Il, ElMessage as Cl, ElAlert as Le, ElTree as Tl, ElCard as Me } from "element-plus/es";
15
+ import { useRoute as pe, onBeforeRouteLeave as al, useRouter as sl, createRouter as il, createWebHashHistory as rl, onBeforeRouteUpdate as cl } from "vue-router";
16
+ import { ElBreadcrumbItem as ul, ElBreadcrumb as pl, ElRow as ae, ElMain as dl, ElAside as ml, ElContainer as fl, ElDivider as ot, ElButton as ue, ElOption as Te, ElSelect as Oe, ElFormItem as at, ElForm as st, ElCol as de, ElDrawer as it, ElDropdownItem as hl, ElDropdownMenu as bl, ElDropdown as _l, ElMenuItem as yl, ElSubMenu as vl, ElOptionGroup as gl, ElMenu as kl, ElScrollbar as wl, ElBacktop as Sl, ElMessage as xl, ElAlert as Be, ElTree as El, ElCard as Ae } from "element-plus/es";
18
17
  import "element-plus/es/components/base/style/css";
19
18
  import "element-plus/es/components/row/style/css";
20
19
  import "element-plus/es/components/drawer/style/css";
@@ -24,7 +23,7 @@ import "element-plus/es/components/dropdown-item/style/css";
24
23
  import "element-plus/es/components/col/style/css";
25
24
  import "element-plus/es/components/breadcrumb/style/css";
26
25
  import "element-plus/es/components/breadcrumb-item/style/css";
27
- import * as Ol from "path-to-regexp";
26
+ import * as $l from "path-to-regexp";
28
27
  import "element-plus/es/components/form/style/css";
29
28
  import "element-plus/es/components/form-item/style/css";
30
29
  import "element-plus/es/components/select/style/css";
@@ -34,21 +33,22 @@ import "element-plus/es/components/divider/style/css";
34
33
  import "element-plus/es/components/container/style/css";
35
34
  import "element-plus/es/components/aside/style/css";
36
35
  import "element-plus/es/components/main/style/css";
36
+ import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as Il, setUploadHeaderHandle as Cl, VIcon as Tl } from "@okiss/vbtf";
37
37
  import "normalize.css/normalize.css";
38
38
  import "@okiss/vbtf/style.css";
39
- import Bl from "mitt";
39
+ import Ol 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 Al } from "@vueuse/core";
46
+ import { useEventListener as Bl } 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 Pl from "vue3-markdown-it";
51
- import { MD5 as Rl } from "crypto-js";
50
+ import Al from "vue3-markdown-it";
51
+ import { MD5 as Pl } from "crypto-js";
52
52
  import "element-plus/es/components/message/style/css";
53
53
  import ke from "nprogress";
54
54
  import "nprogress/nprogress.css";
@@ -58,27 +58,27 @@ String.prototype.format || (String.prototype.format = function() {
58
58
  return typeof e[l] < "u" ? e[l] : t;
59
59
  });
60
60
  });
61
- const Ll = /* @__PURE__ */ V({
61
+ const Rl = /* @__PURE__ */ q({
62
62
  __name: "App",
63
63
  setup(e) {
64
64
  var t, l, n, o;
65
- return Ze(() => {
65
+ return ze(() => {
66
66
  var s;
67
67
  const a = document.getElementById("preloader");
68
- a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Ht("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ft(`.iconfont {
68
+ a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Ut("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ht(`.iconfont {
69
69
  font-size: 19px;
70
70
  font-style: normal;
71
71
  -webkit-font-smoothing: antialiased;
72
72
  font-family: iconfont !important;
73
73
  }`));
74
- }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Bt("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
74
+ }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ot("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
75
75
  const p = v("router-view");
76
76
  return i(), m(p);
77
77
  };
78
78
  }
79
79
  });
80
80
  var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
81
- const Ml = {
81
+ const Ll = {
82
82
  saveApi: "/save",
83
83
  afterSubmit: "",
84
84
  afterReset: "goback",
@@ -412,7 +412,7 @@ const Ml = {
412
412
  info: "在通用表单控件无法满足需求时, 可以编写 `template` 模板组件"
413
413
  }
414
414
  ]
415
- }, He = [
415
+ }, qe = [
416
416
  {
417
417
  type: "jump",
418
418
  text: "跳转",
@@ -467,7 +467,7 @@ const Ml = {
467
467
  type: "success"
468
468
  }
469
469
  }
470
- ], jl = {
470
+ ], Ml = {
471
471
  exportAble: !0,
472
472
  filter: [
473
473
  {
@@ -533,7 +533,7 @@ const Ml = {
533
533
  label: "信息"
534
534
  }
535
535
  ],
536
- batchButton: He,
536
+ batchButton: qe,
537
537
  rowButton: [
538
538
  {
539
539
  type: "jump",
@@ -564,7 +564,7 @@ const Ml = {
564
564
  }
565
565
  ],
566
566
  normalButton: [
567
- ...Qt.cloneDeep(He),
567
+ ...Zt.cloneDeep(qe),
568
568
  {
569
569
  type: "jump",
570
570
  target: "/user/form",
@@ -576,7 +576,7 @@ const Ml = {
576
576
  ],
577
577
  selectedNotice: "当前共勾选: {selectedCount} 条",
578
578
  listApi: "/user/list"
579
- }, Dl = {
579
+ }, jl = {
580
580
  code: 0,
581
581
  data: {
582
582
  "list|0-100": [
@@ -597,7 +597,7 @@ const Ml = {
597
597
  "page|1-5": 2
598
598
  }
599
599
  }
600
- }, Nl = {
600
+ }, Dl = {
601
601
  afterSubmit: "",
602
602
  afterReset: "goback",
603
603
  formItems: [
@@ -634,7 +634,7 @@ const Ml = {
634
634
  label: "span"
635
635
  }
636
636
  ]
637
- }, Vl = {
637
+ }, Nl = {
638
638
  afterSubmit: "",
639
639
  afterReset: "",
640
640
  formItems: [
@@ -673,7 +673,7 @@ const Ml = {
673
673
  label: "span"
674
674
  }
675
675
  ]
676
- }, ql = { form: Ml, table: jl, listMock: Dl, layoutForm: Nl, layoutSection: Vl }, Ul = [
676
+ }, Vl = { form: Ll, table: Ml, listMock: jl, layoutForm: Dl, layoutSection: Nl }, ql = [
677
677
  {
678
678
  method: ee.POST,
679
679
  url: "/login",
@@ -717,15 +717,15 @@ const Ml = {
717
717
  {
718
718
  url: "/user/list",
719
719
  method: ee.GET,
720
- response: (e) => ql.listMock
720
+ response: (e) => Vl.listMock
721
721
  }
722
- ], Hl = [
723
- ...Ul
724
- ], Fl = {
722
+ ], Ul = [
723
+ ...ql
724
+ ], Hl = {
725
725
  baseURL: "/api",
726
726
  withCredentials: !0,
727
727
  cacheEnable: !0
728
- }, ct = {
728
+ }, rt = {
729
729
  title: "oms",
730
730
  fixedHeader: !1,
731
731
  sidebarLogo: !0,
@@ -739,7 +739,7 @@ const Ml = {
739
739
  ElementPlus: {
740
740
  size: "default",
741
741
  zIndex: 3e3,
742
- locale: nt
742
+ locale: lt
743
743
  },
744
744
  nav: [],
745
745
  whiteRoutes: ["/login"],
@@ -751,48 +751,48 @@ const Ml = {
751
751
  },
752
752
  serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
753
753
  }, me = {
754
- axios: Fl,
755
- settings: ct,
754
+ axios: Hl,
755
+ settings: rt,
756
756
  plugins: [],
757
757
  mock: !1
758
758
  }, we = {};
759
- function ut(e) {
759
+ function ct(e) {
760
760
  e.forEach((t) => {
761
- const l = pt(t);
761
+ const l = ut(t);
762
762
  we[`${t.method}::${l}`] = t;
763
763
  });
764
764
  }
765
- ut(Hl);
766
- function pt(e) {
765
+ ct(Ul);
766
+ function ut(e) {
767
767
  var n;
768
768
  let t = e.url, l = e.baseURL || ((n = me.axios) == null ? void 0 : n.baseURL);
769
769
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
770
770
  }
771
- function Gl() {
771
+ function Fl() {
772
772
  Object.keys(we).forEach((e) => {
773
- const t = we[e], l = pt(t);
773
+ const t = we[e], l = ut(t);
774
774
  _e.mock(l, t.method, function(n) {
775
- const { url: o, type: a, body: s } = n, p = Gt(o), u = s ? JSON.parse(s) : {}, d = t.response({ query: p, data: u }), f = _e.mock(d);
776
- return Jt(o, { type: a, query: p, data: u, response: f }), _e.mock(f);
775
+ const { url: o, type: a, body: s } = n, p = Ft(o), c = s ? JSON.parse(s) : {}, d = t.response({ query: p, data: c }), f = _e.mock(d);
776
+ return Gt(o, { type: a, query: p, data: c, response: f }), _e.mock(f);
777
777
  });
778
778
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
779
779
  }
780
- const je = "oms:token";
781
- function De() {
782
- return N.get(je) || "";
780
+ const Le = "oms:token";
781
+ function Me() {
782
+ return N.get(Le) || "";
783
783
  }
784
- function Jl(e) {
784
+ function Gl(e) {
785
785
  const t = new Date((/* @__PURE__ */ new Date()).getTime() + (S.state.settings.tokenExpire || 864e5));
786
- return N.set(je, e, { expires: t });
786
+ return N.set(Le, e, { expires: t });
787
787
  }
788
- function dt() {
789
- return N.remove(je);
788
+ function pt() {
789
+ return N.remove(Le);
790
790
  }
791
- const zl = {
791
+ const Jl = {
792
792
  name: "",
793
793
  nickname: "",
794
794
  avatar: "",
795
- token: De(),
795
+ token: Me(),
796
796
  customRouter: [],
797
797
  remoteRouter: [],
798
798
  menuRoutes: [],
@@ -801,15 +801,15 @@ const zl = {
801
801
  roleIds: [],
802
802
  path: "",
803
803
  env: ""
804
- }, Kl = {
804
+ }, zl = {
805
805
  namespaced: !0,
806
- state: zl,
806
+ state: Jl,
807
807
  mutations: {
808
808
  updateToken(e, t) {
809
- e.token = t, Jl(t);
809
+ e.token = t, Gl(t);
810
810
  },
811
811
  removeToken(e) {
812
- e.token = "", dt();
812
+ e.token = "", pt();
813
813
  },
814
814
  updateRemoteRouter(e, t) {
815
815
  e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
@@ -825,7 +825,7 @@ const zl = {
825
825
  name: "",
826
826
  nickname: "",
827
827
  avatar: "",
828
- token: De(),
828
+ token: Me(),
829
829
  customRouter: [],
830
830
  remoteRouter: [],
831
831
  menuRoutes: [],
@@ -865,9 +865,9 @@ const zl = {
865
865
  url: "/user/info",
866
866
  method: "GET"
867
867
  }).then((o) => {
868
- var p, u, d, f, b, g;
868
+ var p, c, d, f, b, g;
869
869
  const a = ((p = o.data) == null ? void 0 : p.role_ids) || [];
870
- e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (f = o.data) == null ? void 0 : f.env });
870
+ e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (f = o.data) == null ? void 0 : f.env });
871
871
  const s = ((b = o.data) == null ? void 0 : b.website) || {};
872
872
  e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (g = o.data) == null ? void 0 : g.name), l(!0);
873
873
  }).catch((o) => {
@@ -893,12 +893,12 @@ const zl = {
893
893
  });
894
894
  }
895
895
  }
896
- }, Wl = y(ct), Zl = {
896
+ }, Kl = y(rt), Wl = {
897
897
  namespaced: !0,
898
- state: Wl,
898
+ state: Kl,
899
899
  mutations: {
900
900
  updateSettings(e, t) {
901
- e = P(e, t);
901
+ e = A(e, t);
902
902
  }
903
903
  },
904
904
  actions: {
@@ -906,7 +906,7 @@ const zl = {
906
906
  e("updateSettings", l);
907
907
  }
908
908
  }
909
- }, Ql = {
909
+ }, Zl = {
910
910
  sidebar: {
911
911
  opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
912
912
  withoutAnimation: !1
@@ -916,9 +916,9 @@ const zl = {
916
916
  currentRouteMeta: {},
917
917
  builderSchema: {},
918
918
  baseURL: ""
919
- }, Xl = {
919
+ }, Ql = {
920
920
  namespaced: !0,
921
- state: Ql,
921
+ state: Zl,
922
922
  mutations: {
923
923
  TOGGLE_SIDEBAR: (e) => {
924
924
  e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
@@ -965,12 +965,12 @@ const zl = {
965
965
  e("SET_BASE_API", t);
966
966
  }
967
967
  }
968
- }, Yl = {
968
+ }, Xl = {
969
969
  currentCellItem: {}
970
970
  // form/sub-form 当前单元格编辑数据
971
- }, en = {
971
+ }, Yl = {
972
972
  namespaced: !0,
973
- state: Yl,
973
+ state: Xl,
974
974
  mutations: {
975
975
  SET_CURRENT_CELLITEM: (e, t) => {
976
976
  e.currentCellItem = t;
@@ -981,7 +981,7 @@ const zl = {
981
981
  e("SET_CURRENT_CELLITEM", t);
982
982
  }
983
983
  }
984
- }, S = Yt({
984
+ }, S = Xt({
985
985
  state: void 0,
986
986
  getters: {
987
987
  http: (e) => e.http,
@@ -1008,12 +1008,12 @@ const zl = {
1008
1008
  }
1009
1009
  },
1010
1010
  modules: {
1011
- user: Kl,
1012
- settings: Zl,
1013
- app: Xl,
1014
- builderSchema: en
1011
+ user: zl,
1012
+ settings: Wl,
1013
+ app: Ql,
1014
+ builderSchema: Yl
1015
1015
  }
1016
- }), tn = tl, Fe = ll, ln = Te.CancelToken, re = {
1016
+ }), en = el, Ue = tl, tn = Ie.CancelToken, re = {
1017
1017
  taskList: {},
1018
1018
  cacheList: /* @__PURE__ */ new Map(),
1019
1019
  uniqueId(e) {
@@ -1049,47 +1049,41 @@ const zl = {
1049
1049
  const t = this.uniqueId(e);
1050
1050
  return this.cacheList.delete(t);
1051
1051
  }
1052
- }, nn = {
1052
+ }, ln = {
1053
1053
  onFulfilled: function(e) {
1054
- return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new ln((t) => {
1054
+ return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new tn((t) => {
1055
1055
  re.addTask(e, t);
1056
1056
  })), e;
1057
1057
  },
1058
1058
  onRejected(e) {
1059
1059
  return Promise.reject(e);
1060
1060
  }
1061
- }, on = {
1061
+ }, nn = {
1062
1062
  onFulfilled: function(e) {
1063
1063
  return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && re.addCache(e.config, e.data), e;
1064
1064
  },
1065
1065
  onRejected(e) {
1066
1066
  return Promise.reject(e);
1067
1067
  }
1068
- }, mt = {};
1069
- function Ci(e, t) {
1070
- mt[e] = t;
1068
+ }, dt = {};
1069
+ function Si(e, t) {
1070
+ dt[e] = t;
1071
1071
  }
1072
- function an(e) {
1073
- return mt[e];
1072
+ function on(e) {
1073
+ return dt[e];
1074
1074
  }
1075
- const sn = (e) => ($e("data-v-553f7039"), e = e(), Ie(), e), rn = { class: "box" }, cn = /* @__PURE__ */ sn(() => /* @__PURE__ */ _("div", { class: "box-container" }, "申请权限", -1)), un = /* @__PURE__ */ V({
1076
- __name: "EmptyRole",
1077
- setup(e) {
1078
- const t = A({}), l = {
1079
- formItems: [
1080
- {
1081
- field: "role_id",
1082
- label: "角色"
1083
- }
1084
- ]
1085
- };
1086
- return (n, o) => (i(), h("div", rn, [
1087
- cn,
1088
- c(w(G), U({
1089
- modelValue: t.value,
1090
- "onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a)
1091
- }, l), null, 16, ["modelValue"])
1092
- ]));
1075
+ const an = /* @__PURE__ */ q({
1076
+ name: "Dashboard",
1077
+ setup() {
1078
+ const e = nt(), t = on("dashboard");
1079
+ if (t)
1080
+ return () => u("span", null, [u(t, null, null)]);
1081
+ const l = j(() => e.getters.name);
1082
+ return () => u("div", {
1083
+ class: "dashboard-container"
1084
+ }, [u("div", {
1085
+ class: "dashboard-text"
1086
+ }, [k("Hi "), l.value, k(" 😄")])]);
1093
1087
  }
1094
1088
  });
1095
1089
  const I = (e, t) => {
@@ -1097,22 +1091,8 @@ const I = (e, t) => {
1097
1091
  for (const [n, o] of t)
1098
1092
  l[n] = o;
1099
1093
  return l;
1100
- }, Ge = /* @__PURE__ */ I(un, [["__scopeId", "data-v-553f7039"]]), pn = /* @__PURE__ */ V({
1101
- name: "Dashboard",
1102
- setup() {
1103
- const e = ot(), t = j(() => e.state.settings.loginTips), l = an("dashboard");
1104
- if (l)
1105
- return () => c("span", null, [c(l, null, null), t.value.length === 0 ? c(Ge, null, null) : void 0]);
1106
- const n = j(() => e.getters.name);
1107
- return () => c("div", {
1108
- class: "dashboard-container"
1109
- }, [c("div", {
1110
- class: "dashboard-text"
1111
- }, [k("Hi "), n.value, k(" 😄")]), t.value.length === 0 ? c(Ge, null, null) : void 0]);
1112
- }
1113
- });
1114
- const dn = /* @__PURE__ */ I(pn, [["__scopeId", "data-v-5bd7dba5"]]);
1115
- const mn = {
1094
+ }, sn = /* @__PURE__ */ I(an, [["__scopeId", "data-v-3122b6c7"]]);
1095
+ const rn = {
1116
1096
  data() {
1117
1097
  return {
1118
1098
  levelList: null
@@ -1144,7 +1124,7 @@ const mn = {
1144
1124
  },
1145
1125
  pathCompile(e) {
1146
1126
  const { params: t } = this.$route;
1147
- return Ol.compile(e)(t);
1127
+ return $l.compile(e)(t);
1148
1128
  },
1149
1129
  handleLink(e) {
1150
1130
  const { redirect: t, path: l } = e;
@@ -1155,27 +1135,27 @@ const mn = {
1155
1135
  this.$router.push(this.pathCompile(l));
1156
1136
  }
1157
1137
  }
1158
- }, fn = {
1138
+ }, cn = {
1159
1139
  key: 0,
1160
1140
  class: "no-redirect"
1161
- }, hn = ["onClick"];
1162
- function bn(e, t, l, n, o, a) {
1163
- const s = fl, p = hl;
1141
+ }, un = ["onClick"];
1142
+ function pn(e, t, l, n, o, a) {
1143
+ const s = ul, p = pl;
1164
1144
  return i(), m(p, {
1165
1145
  class: "app-breadcrumb",
1166
1146
  separator: "/"
1167
1147
  }, {
1168
1148
  default: r(() => [
1169
- c(At, { name: "breadcrumb" }, {
1149
+ u(Bt, { name: "breadcrumb" }, {
1170
1150
  default: r(() => [
1171
- (i(!0), h(E, null, B(o.levelList, (u, d) => (i(), m(s, {
1172
- key: u.path
1151
+ (i(!0), h(E, null, B(o.levelList, (c, d) => (i(), m(s, {
1152
+ key: c.path
1173
1153
  }, {
1174
1154
  default: r(() => [
1175
- u.path.indexOf("/DIR_") === 0 && u.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", fn, O(u.meta.title), 1)) : (i(), h("a", {
1155
+ c.path.indexOf("/DIR_") === 0 && c.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", cn, O(c.meta.title), 1)) : (i(), h("a", {
1176
1156
  key: 1,
1177
- onClick: (f) => a.handleLink(u)
1178
- }, O(u.meta.title), 9, hn))
1157
+ onClick: (f) => a.handleLink(c)
1158
+ }, O(c.meta.title), 9, un))
1179
1159
  ]),
1180
1160
  _: 2
1181
1161
  }, 1024))), 128))
@@ -1186,7 +1166,7 @@ function bn(e, t, l, n, o, a) {
1186
1166
  _: 1
1187
1167
  });
1188
1168
  }
1189
- const _n = /* @__PURE__ */ I(mn, [["render", bn], ["__scopeId", "data-v-fa74804e"]]), yn = {
1169
+ const dn = /* @__PURE__ */ I(rn, [["render", pn], ["__scopeId", "data-v-fa74804e"]]), mn = {
1190
1170
  name: "Hamburger",
1191
1171
  props: {
1192
1172
  isActive: {
@@ -1201,31 +1181,31 @@ const _n = /* @__PURE__ */ I(mn, [["render", bn], ["__scopeId", "data-v-fa74804e
1201
1181
  }
1202
1182
  }
1203
1183
  };
1204
- function vn(e, t, l, n, o, a) {
1184
+ function fn(e, t, l, n, o, a) {
1205
1185
  const s = v("v-icon");
1206
1186
  return i(), h("div", {
1207
1187
  style: { padding: "0 15px" },
1208
1188
  onClick: t[0] || (t[0] = (...p) => a.toggleClick && a.toggleClick(...p))
1209
1189
  }, [
1210
- c(s, {
1211
- class: F({ "is-active": l.isActive }),
1190
+ u(s, {
1191
+ class: H({ "is-active": l.isActive }),
1212
1192
  name: "ra-leftalignment"
1213
1193
  }, null, 8, ["class"])
1214
1194
  ]);
1215
1195
  }
1216
- const gn = /* @__PURE__ */ I(yn, [["render", vn]]);
1217
- const kn = {};
1218
- function wn(e, t) {
1219
- const l = ae, n = bl, o = _l, a = yl;
1196
+ const hn = /* @__PURE__ */ I(mn, [["render", fn]]);
1197
+ const bn = {};
1198
+ function _n(e, t) {
1199
+ const l = ae, n = dl, o = ml, a = fl;
1220
1200
  return i(), m(a, { style: { width: "100%", height: "100%" } }, {
1221
1201
  default: r(() => [
1222
- c(l, { class: "aside" }, {
1202
+ u(l, { class: "aside" }, {
1223
1203
  default: r(() => [
1224
1204
  le(e.$slots, "left-aside", {}, void 0, !0)
1225
1205
  ]),
1226
1206
  _: 3
1227
1207
  }),
1228
- c(n, {
1208
+ u(n, {
1229
1209
  class: "main",
1230
1210
  style: { margin: "0 10px" }
1231
1211
  }, {
@@ -1234,7 +1214,7 @@ function wn(e, t) {
1234
1214
  ]),
1235
1215
  _: 3
1236
1216
  }),
1237
- c(o, {
1217
+ u(o, {
1238
1218
  class: "aside",
1239
1219
  width: "350px",
1240
1220
  style: { padding: "20px" }
@@ -1248,7 +1228,7 @@ function wn(e, t) {
1248
1228
  _: 3
1249
1229
  });
1250
1230
  }
1251
- const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b"]]), Sn = {
1231
+ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b"]]), yn = {
1252
1232
  type: "input",
1253
1233
  name: "文本框",
1254
1234
  default: {
@@ -1316,7 +1296,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1316
1296
  }
1317
1297
  }
1318
1298
  ]
1319
- }, xn = {
1299
+ }, vn = {
1320
1300
  type: "number",
1321
1301
  name: "数字",
1322
1302
  default: {
@@ -1358,7 +1338,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1358
1338
  }
1359
1339
  }
1360
1340
  ]
1361
- }, En = {
1341
+ }, gn = {
1362
1342
  type: "number-range",
1363
1343
  name: "数字区间",
1364
1344
  default: {
@@ -1399,7 +1379,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1399
1379
  }
1400
1380
  }
1401
1381
  ]
1402
- }, $n = {
1382
+ }, kn = {
1403
1383
  type: "select",
1404
1384
  name: "下拉框",
1405
1385
  default: {
@@ -1505,7 +1485,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1505
1485
  const t = y(e);
1506
1486
  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;
1507
1487
  }
1508
- }, In = {
1488
+ }, wn = {
1509
1489
  type: "radio",
1510
1490
  name: "单选框",
1511
1491
  default: {
@@ -1551,7 +1531,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1551
1531
  label: "默认值"
1552
1532
  }
1553
1533
  ]
1554
- }, Cn = {
1534
+ }, Sn = {
1555
1535
  type: "switch",
1556
1536
  name: "开关",
1557
1537
  default: {
@@ -1607,7 +1587,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1607
1587
  }
1608
1588
  }
1609
1589
  ]
1610
- }, Tn = {
1590
+ }, xn = {
1611
1591
  type: "code",
1612
1592
  name: "Code",
1613
1593
  default: {
@@ -1627,7 +1607,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1627
1607
  label: "字段key"
1628
1608
  }
1629
1609
  ]
1630
- }, On = {
1610
+ }, En = {
1631
1611
  type: "json",
1632
1612
  name: "json",
1633
1613
  default: {
@@ -1647,7 +1627,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1647
1627
  label: "字段key"
1648
1628
  }
1649
1629
  ]
1650
- }, Bn = {
1630
+ }, $n = {
1651
1631
  type: "upload",
1652
1632
  name: "上传",
1653
1633
  default: {
@@ -1667,7 +1647,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1667
1647
  label: "字段key"
1668
1648
  }
1669
1649
  ]
1670
- }, An = {
1650
+ }, In = {
1671
1651
  type: "template",
1672
1652
  name: "自定义组件",
1673
1653
  default: {
@@ -1687,7 +1667,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1687
1667
  label: "字段key"
1688
1668
  }
1689
1669
  ]
1690
- }, Pn = {
1670
+ }, Cn = {
1691
1671
  type: "icon-select",
1692
1672
  name: "图标选择器",
1693
1673
  default: {
@@ -1707,7 +1687,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1707
1687
  label: "字段key"
1708
1688
  }
1709
1689
  ]
1710
- }, Rn = {
1690
+ }, Tn = {
1711
1691
  type: "sub-form",
1712
1692
  name: "子表单",
1713
1693
  default: {
@@ -1775,7 +1755,7 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1775
1755
  }
1776
1756
  }
1777
1757
  ]
1778
- }, Ln = {
1758
+ }, On = {
1779
1759
  type: "checkbox",
1780
1760
  name: "复选框",
1781
1761
  default: {
@@ -1821,24 +1801,24 @@ const ft = /* @__PURE__ */ I(kn, [["render", wn], ["__scopeId", "data-v-7c3d697b
1821
1801
  }
1822
1802
  }
1823
1803
  ]
1824
- }, ht = {};
1825
- function R(e) {
1826
- ht[e.type] = e;
1804
+ }, ft = {};
1805
+ function P(e) {
1806
+ ft[e.type] = e;
1827
1807
  }
1828
- R(Sn);
1829
- R($n);
1830
- R(xn);
1831
- R(En);
1832
- R(Cn);
1833
- R(Rn);
1834
- R(In);
1835
- R(Ln);
1836
- R(Tn);
1837
- R(On);
1838
- R(Bn);
1839
- R(Pn);
1840
- R(An);
1841
- const Se = ht, Mn = {
1808
+ P(yn);
1809
+ P(kn);
1810
+ P(vn);
1811
+ P(gn);
1812
+ P(Sn);
1813
+ P(Tn);
1814
+ P(wn);
1815
+ P(On);
1816
+ P(xn);
1817
+ P(En);
1818
+ P($n);
1819
+ P(Cn);
1820
+ P(In);
1821
+ const Se = ft, Bn = {
1842
1822
  options: {
1843
1823
  labelPosition: "top",
1844
1824
  submitButton: !1,
@@ -1941,11 +1921,11 @@ const ye = {
1941
1921
  labelPosition: "top",
1942
1922
  submitButton: !1,
1943
1923
  cancelButton: !1
1944
- }, Ne = [];
1924
+ }, je = [];
1945
1925
  Object.keys(Se).forEach((e) => {
1946
- Ne.push({ value: e, label: Se[e].name });
1926
+ je.push({ value: e, label: Se[e].name });
1947
1927
  });
1948
- const jn = {
1928
+ const An = {
1949
1929
  options: {
1950
1930
  submitButton: !1,
1951
1931
  cancelButton: !1
@@ -1966,7 +1946,7 @@ const jn = {
1966
1946
  type: "select",
1967
1947
  field: "type",
1968
1948
  label: "类型",
1969
- options: y(Ne)
1949
+ options: y(je)
1970
1950
  },
1971
1951
  {
1972
1952
  type: "input",
@@ -1977,8 +1957,8 @@ const jn = {
1977
1957
  }
1978
1958
  }
1979
1959
  ]
1980
- }, Dn = {
1981
- components: { DevLayout: ft, VForm: G, VButton: Be, JsonView: Ae },
1960
+ }, Pn = {
1961
+ components: { DevLayout: mt, VForm: z, VButton: Pe, JsonView: Re },
1982
1962
  props: {
1983
1963
  schema: {
1984
1964
  type: Object,
@@ -1989,8 +1969,8 @@ const jn = {
1989
1969
  data() {
1990
1970
  return {
1991
1971
  sqlOptions: {},
1992
- sqlSchema: jn,
1993
- baseSchema: Mn,
1972
+ sqlSchema: An,
1973
+ baseSchema: Bn,
1994
1974
  activeTab: "base",
1995
1975
  builderSchema: Object.assign(
1996
1976
  {},
@@ -2015,7 +1995,7 @@ const jn = {
2015
1995
  tableStruct: "",
2016
1996
  activeName: "1",
2017
1997
  currentCtrlType: "input",
2018
- types: y(Ne)
1998
+ types: y(je)
2019
1999
  };
2020
2000
  },
2021
2001
  computed: {
@@ -2031,7 +2011,7 @@ const jn = {
2031
2011
  immediate: !0,
2032
2012
  handler(e) {
2033
2013
  const t = y(e);
2034
- 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 = P(this.builderSchema, { options: t }), this.key++);
2014
+ 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 = A(this.builderSchema, { options: t }), this.key++);
2035
2015
  }
2036
2016
  },
2037
2017
  ctrlOptions: {
@@ -2086,7 +2066,7 @@ const jn = {
2086
2066
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2087
2067
  },
2088
2068
  removeOne() {
2089
- lt(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2069
+ tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2090
2070
  },
2091
2071
  clicklabel() {
2092
2072
  const e = this.activeIndex;
@@ -2113,17 +2093,17 @@ const jn = {
2113
2093
  }
2114
2094
  }
2115
2095
  };
2116
- function Nn(e, t, l, n, o, a) {
2117
- const s = v("v-form"), p = at, u = ue, d = v("JsonView"), f = v("VButton"), b = Pe, g = Re, x = st, z = it, H = v("dev-layout");
2118
- return i(), m(H, null, {
2096
+ function Rn(e, t, l, n, o, a) {
2097
+ const s = v("v-form"), p = ot, c = ue, d = v("JsonView"), f = v("VButton"), b = Te, g = Oe, x = at, J = st, U = v("dev-layout");
2098
+ return i(), m(U, null, {
2119
2099
  main: r(() => [
2120
- o.builderSchema.formItems ? (i(), m(s, U({
2100
+ o.builderSchema.formItems ? (i(), m(s, F({
2121
2101
  ref: "form",
2122
2102
  key: o.key,
2123
2103
  dev: !0
2124
2104
  }, o.builderSchema), null, 16)) : $("", !0),
2125
- c(p),
2126
- c(u, {
2105
+ u(p),
2106
+ u(c, {
2127
2107
  type: "primary",
2128
2108
  onClick: a.saveSchema
2129
2109
  }, {
@@ -2133,22 +2113,22 @@ function Nn(e, t, l, n, o, a) {
2133
2113
  _: 1
2134
2114
  }, 8, ["onClick"]),
2135
2115
  k("    "),
2136
- c(f, {
2116
+ u(f, {
2137
2117
  text: "PageSchema",
2138
2118
  type: "modal"
2139
2119
  }, {
2140
2120
  default: r(() => [
2141
- c(d, { data: a.getSaveSchema }, null, 8, ["data"])
2121
+ u(d, { data: a.getSaveSchema }, null, 8, ["data"])
2142
2122
  ]),
2143
2123
  _: 1
2144
2124
  })
2145
2125
  ]),
2146
2126
  "right-aside": r(() => [
2147
- o.activeIndex ? (i(), m(z, { key: 0 }, {
2127
+ o.activeIndex ? (i(), m(J, { key: 0 }, {
2148
2128
  default: r(() => [
2149
- c(x, { label: "控件类型" }, {
2129
+ u(x, { label: "控件类型" }, {
2150
2130
  default: r(() => [
2151
- c(g, {
2131
+ u(g, {
2152
2132
  modelValue: o.currentCtrlType,
2153
2133
  "onUpdate:modelValue": t[0] || (t[0] = (T) => o.currentCtrlType = T)
2154
2134
  }, {
@@ -2167,7 +2147,7 @@ function Nn(e, t, l, n, o, a) {
2167
2147
  ]),
2168
2148
  _: 1
2169
2149
  })) : $("", !0),
2170
- (i(), m(s, U({
2150
+ (i(), m(s, F({
2171
2151
  key: o.ctrlKey,
2172
2152
  modelValue: o.ctrlOptions,
2173
2153
  "onUpdate:modelValue": t[1] || (t[1] = (T) => o.ctrlOptions = T)
@@ -2176,7 +2156,7 @@ function Nn(e, t, l, n, o, a) {
2176
2156
  _: 1
2177
2157
  });
2178
2158
  }
2179
- const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171"]]), qn = {
2159
+ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171"]]), Mn = {
2180
2160
  type: "input",
2181
2161
  name: "文本框",
2182
2162
  default: {
@@ -2224,7 +2204,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2224
2204
  }
2225
2205
  }
2226
2206
  ]
2227
- }, Un = {
2207
+ }, jn = {
2228
2208
  type: "select",
2229
2209
  name: "下拉框",
2230
2210
  default: {
@@ -2325,7 +2305,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2325
2305
  const t = y(e);
2326
2306
  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;
2327
2307
  }
2328
- }, Hn = {
2308
+ }, Dn = {
2329
2309
  type: "date",
2330
2310
  name: "日期",
2331
2311
  default: {
@@ -2345,7 +2325,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2345
2325
  label: "字段key"
2346
2326
  }
2347
2327
  ]
2348
- }, Je = {
2328
+ }, He = {
2349
2329
  options: {
2350
2330
  labelPosition: "top",
2351
2331
  submitButton: !1,
@@ -2374,7 +2354,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2374
2354
  labelPosition: "top",
2375
2355
  submitButton: !1,
2376
2356
  cancelButton: !1
2377
- }, Fn = {
2357
+ }, Nn = {
2378
2358
  type: "span",
2379
2359
  name: "文本",
2380
2360
  default: {
@@ -2404,7 +2384,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2404
2384
  label: "排序"
2405
2385
  }
2406
2386
  ]
2407
- }, Gn = {
2387
+ }, Vn = {
2408
2388
  type: "enum",
2409
2389
  name: "标签",
2410
2390
  default: {
@@ -2455,7 +2435,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2455
2435
  trans(e) {
2456
2436
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
2457
2437
  }
2458
- }, Jn = {
2438
+ }, qn = {
2459
2439
  type: "html",
2460
2440
  name: "HTML",
2461
2441
  default: {
@@ -2480,7 +2460,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2480
2460
  label: "提示"
2481
2461
  }
2482
2462
  ]
2483
- }, zn = {
2463
+ }, Un = {
2484
2464
  type: "icon",
2485
2465
  name: "图标",
2486
2466
  default: {
@@ -2505,7 +2485,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2505
2485
  label: "提示"
2506
2486
  }
2507
2487
  ]
2508
- }, Kn = {
2488
+ }, Hn = {
2509
2489
  type: "image",
2510
2490
  name: "图片",
2511
2491
  default: {
@@ -2530,7 +2510,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2530
2510
  label: "提示"
2531
2511
  }
2532
2512
  ]
2533
- }, Wn = {
2513
+ }, Fn = {
2534
2514
  type: "json",
2535
2515
  name: "JSON",
2536
2516
  default: {
@@ -2555,7 +2535,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2555
2535
  label: "提示"
2556
2536
  }
2557
2537
  ]
2558
- }, Zn = {
2538
+ }, Gn = {
2559
2539
  type: "link",
2560
2540
  name: "链接",
2561
2541
  default: {
@@ -2580,7 +2560,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2580
2560
  label: "提示"
2581
2561
  }
2582
2562
  ]
2583
- }, Qn = {
2563
+ }, Jn = {
2584
2564
  type: "rich",
2585
2565
  name: "富文本",
2586
2566
  default: {
@@ -2605,7 +2585,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2605
2585
  label: "提示"
2606
2586
  }
2607
2587
  ]
2608
- }, Xn = {
2588
+ }, zn = {
2609
2589
  type: "tpl",
2610
2590
  name: "模板",
2611
2591
  default: {
@@ -2636,17 +2616,17 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2636
2616
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2637
2617
  }
2638
2618
  ]
2639
- }, Yn = {
2640
- span: Fn,
2641
- enum: Gn,
2642
- html: Jn,
2643
- icon: zn,
2644
- image: Kn,
2645
- json: Wn,
2646
- link: Zn,
2647
- rich: Qn,
2648
- tpl: Xn
2649
- }, eo = {
2619
+ }, Kn = {
2620
+ span: Nn,
2621
+ enum: Vn,
2622
+ html: qn,
2623
+ icon: Un,
2624
+ image: Hn,
2625
+ json: Fn,
2626
+ link: Gn,
2627
+ rich: Jn,
2628
+ tpl: zn
2629
+ }, Wn = {
2650
2630
  type: "jump",
2651
2631
  name: "跳转",
2652
2632
  default: {
@@ -2693,7 +2673,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2693
2673
  }
2694
2674
  }
2695
2675
  ]
2696
- }, to = {
2676
+ }, Zn = {
2697
2677
  type: "api",
2698
2678
  name: "接口请求",
2699
2679
  default: {
@@ -2762,7 +2742,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2762
2742
  }
2763
2743
  }
2764
2744
  ]
2765
- }, lo = {
2745
+ }, Qn = {
2766
2746
  type: "form",
2767
2747
  name: "弹框表单",
2768
2748
  default: {
@@ -2816,7 +2796,7 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2816
2796
  label: "保存接口"
2817
2797
  }
2818
2798
  ]
2819
- }, no = {
2799
+ }, Xn = {
2820
2800
  type: "table",
2821
2801
  name: "弹框列表",
2822
2802
  default: {
@@ -2870,14 +2850,14 @@ const Vn = /* @__PURE__ */ I(Dn, [["render", Nn], ["__scopeId", "data-v-875f0171
2870
2850
  label: "保存接口"
2871
2851
  }
2872
2852
  ]
2873
- }, oo = {
2874
- jump: eo,
2875
- api: to,
2876
- form: lo,
2877
- table: no
2853
+ }, Yn = {
2854
+ jump: Wn,
2855
+ api: Zn,
2856
+ form: Qn,
2857
+ table: Xn
2878
2858
  };
2879
- const ao = {
2880
- components: { JsonView: Ae, DevLayout: ft, VTable: oe, VForm: G, VButton: Be },
2859
+ const eo = {
2860
+ components: { JsonView: Re, DevLayout: mt, VTable: oe, VForm: z, VButton: Pe },
2881
2861
  props: {
2882
2862
  schema: {
2883
2863
  type: Object,
@@ -2886,13 +2866,13 @@ const ao = {
2886
2866
  }
2887
2867
  },
2888
2868
  data() {
2889
- const e = Pt(this.$props.schema);
2869
+ const e = At(this.$props.schema);
2890
2870
  return delete e.listApi, e.list = [{}], {
2891
- baseSchema: Je,
2871
+ baseSchema: He,
2892
2872
  activeTab: "base",
2893
2873
  builderSchema: Object.assign(
2894
2874
  {},
2895
- Je,
2875
+ He,
2896
2876
  e
2897
2877
  ),
2898
2878
  baseOptions: {},
@@ -2905,9 +2885,9 @@ const ao = {
2905
2885
  ctrlName: "",
2906
2886
  activeIndex: void 0,
2907
2887
  ctrlMap: {
2908
- filter: { input: qn, select: Un, date: Hn },
2909
- headers: Yn,
2910
- buttons: oo
2888
+ filter: { input: Mn, select: jn, date: Dn },
2889
+ headers: Kn,
2890
+ buttons: Yn
2911
2891
  },
2912
2892
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2913
2893
  currentCtrlType: "input"
@@ -2938,7 +2918,7 @@ const ao = {
2938
2918
  deep: !0,
2939
2919
  immediate: !0,
2940
2920
  handler(e) {
2941
- this.builderSchema = P(this.builderSchema, e), this.key++, this.updateBuilderSchema();
2921
+ this.builderSchema = A(this.builderSchema, e), this.key++, this.updateBuilderSchema();
2942
2922
  }
2943
2923
  },
2944
2924
  ctrlOptions: {
@@ -3021,7 +3001,7 @@ const ao = {
3021
3001
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
3022
3002
  },
3023
3003
  removeOne() {
3024
- lt(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3004
+ tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3025
3005
  },
3026
3006
  clicklabel() {
3027
3007
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
@@ -3059,15 +3039,15 @@ const ao = {
3059
3039
  }
3060
3040
  }
3061
3041
  };
3062
- function so(e, t, l, n, o, a) {
3063
- const s = de, p = ue, u = ae, d = v("v-table"), f = at, b = ue, g = v("JsonView"), x = v("VButton"), z = Pe, H = Re, T = st, Z = it, It = v("v-form"), Ct = v("dev-layout");
3064
- return i(), m(Ct, null, {
3042
+ function to(e, t, l, n, o, a) {
3043
+ const s = de, p = ue, c = ae, d = v("v-table"), f = ot, b = ue, g = v("JsonView"), x = v("VButton"), J = Te, U = Oe, T = at, Z = st, $t = v("v-form"), It = v("dev-layout");
3044
+ return i(), m(It, null, {
3065
3045
  "left-aside": r(() => [
3066
- c(u, { style: { width: "200px" } }, {
3046
+ u(c, { style: { width: "200px" } }, {
3067
3047
  default: r(() => [
3068
- c(u, null, {
3048
+ u(c, null, {
3069
3049
  default: r(() => [
3070
- c(s, {
3050
+ u(s, {
3071
3051
  class: "title",
3072
3052
  "data-id": 22222
3073
3053
  }, {
@@ -3076,9 +3056,9 @@ function so(e, t, l, n, o, a) {
3076
3056
  ]),
3077
3057
  _: 1
3078
3058
  }),
3079
- c(s, { class: "ctrl" }, {
3059
+ u(s, { class: "ctrl" }, {
3080
3060
  default: r(() => [
3081
- c(p, {
3061
+ u(p, {
3082
3062
  class: "ctrl-btn",
3083
3063
  onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
3084
3064
  }, {
@@ -3090,9 +3070,9 @@ function so(e, t, l, n, o, a) {
3090
3070
  ]),
3091
3071
  _: 1
3092
3072
  }),
3093
- c(s, { class: "ctrl" }, {
3073
+ u(s, { class: "ctrl" }, {
3094
3074
  default: r(() => [
3095
- c(p, {
3075
+ u(p, {
3096
3076
  class: "ctrl-btn",
3097
3077
  onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
3098
3078
  }, {
@@ -3104,9 +3084,9 @@ function so(e, t, l, n, o, a) {
3104
3084
  ]),
3105
3085
  _: 1
3106
3086
  }),
3107
- c(s, { class: "ctrl" }, {
3087
+ u(s, { class: "ctrl" }, {
3108
3088
  default: r(() => [
3109
- c(p, {
3089
+ u(p, {
3110
3090
  class: "ctrl-btn",
3111
3091
  onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
3112
3092
  }, {
@@ -3121,20 +3101,20 @@ function so(e, t, l, n, o, a) {
3121
3101
  ]),
3122
3102
  _: 1
3123
3103
  }),
3124
- c(u, null, {
3104
+ u(c, null, {
3125
3105
  default: r(() => [
3126
- c(s, { class: "title" }, {
3106
+ u(s, { class: "title" }, {
3127
3107
  default: r(() => [
3128
3108
  k("添加列表项")
3129
3109
  ]),
3130
3110
  _: 1
3131
3111
  }),
3132
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.headers), (C, q) => (i(), m(s, {
3133
- key: `column-${q}`,
3112
+ (i(!0), h(E, null, B(Object.keys(o.ctrlMap.headers), (C, V) => (i(), m(s, {
3113
+ key: `column-${V}`,
3134
3114
  class: "ctrl"
3135
3115
  }, {
3136
3116
  default: r(() => [
3137
- c(p, {
3117
+ u(p, {
3138
3118
  class: "ctrl-btn",
3139
3119
  onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[C].type)
3140
3120
  }, {
@@ -3149,20 +3129,20 @@ function so(e, t, l, n, o, a) {
3149
3129
  ]),
3150
3130
  _: 1
3151
3131
  }),
3152
- c(u, null, {
3132
+ u(c, null, {
3153
3133
  default: r(() => [
3154
- c(s, { class: "title" }, {
3134
+ u(s, { class: "title" }, {
3155
3135
  default: r(() => [
3156
3136
  k("添加行按钮")
3157
3137
  ]),
3158
3138
  _: 1
3159
3139
  }),
3160
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, q) => (i(), m(s, {
3161
- key: `column-${q}`,
3140
+ (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3141
+ key: `column-${V}`,
3162
3142
  class: "ctrl"
3163
3143
  }, {
3164
3144
  default: r(() => [
3165
- c(p, {
3145
+ u(p, {
3166
3146
  class: "ctrl-btn",
3167
3147
  onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[C].type)
3168
3148
  }, {
@@ -3177,20 +3157,20 @@ function so(e, t, l, n, o, a) {
3177
3157
  ]),
3178
3158
  _: 1
3179
3159
  }),
3180
- c(u, null, {
3160
+ u(c, null, {
3181
3161
  default: r(() => [
3182
- c(s, { class: "title" }, {
3162
+ u(s, { class: "title" }, {
3183
3163
  default: r(() => [
3184
3164
  k("添加常规按钮")
3185
3165
  ]),
3186
3166
  _: 1
3187
3167
  }),
3188
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, q) => (i(), m(s, {
3189
- key: `column-${q}`,
3168
+ (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3169
+ key: `column-${V}`,
3190
3170
  class: "ctrl"
3191
3171
  }, {
3192
3172
  default: r(() => [
3193
- c(p, {
3173
+ u(p, {
3194
3174
  class: "ctrl-btn",
3195
3175
  onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
3196
3176
  }, {
@@ -3202,9 +3182,9 @@ function so(e, t, l, n, o, a) {
3202
3182
  ]),
3203
3183
  _: 2
3204
3184
  }, 1024))), 128)),
3205
- c(s, { class: "ctrl" }, {
3185
+ u(s, { class: "ctrl" }, {
3206
3186
  default: r(() => [
3207
- c(p, { class: "ctrl-btn" }, {
3187
+ u(p, { class: "ctrl-btn" }, {
3208
3188
  default: r(() => [
3209
3189
  k("按钮组")
3210
3190
  ]),
@@ -3216,20 +3196,20 @@ function so(e, t, l, n, o, a) {
3216
3196
  ]),
3217
3197
  _: 1
3218
3198
  }),
3219
- c(u, null, {
3199
+ u(c, null, {
3220
3200
  default: r(() => [
3221
- c(s, { class: "title" }, {
3201
+ u(s, { class: "title" }, {
3222
3202
  default: r(() => [
3223
3203
  k("添加批量按钮")
3224
3204
  ]),
3225
3205
  _: 1
3226
3206
  }),
3227
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, q) => (i(), m(s, {
3228
- key: `column-${q}`,
3207
+ (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3208
+ key: `column-${V}`,
3229
3209
  class: "ctrl"
3230
3210
  }, {
3231
3211
  default: r(() => [
3232
- c(p, {
3212
+ u(p, {
3233
3213
  class: "ctrl-btn",
3234
3214
  onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
3235
3215
  }, {
@@ -3241,9 +3221,9 @@ function so(e, t, l, n, o, a) {
3241
3221
  ]),
3242
3222
  _: 2
3243
3223
  }, 1024))), 128)),
3244
- c(s, { class: "ctrl" }, {
3224
+ u(s, { class: "ctrl" }, {
3245
3225
  default: r(() => [
3246
- c(p, { class: "ctrl-btn" }, {
3226
+ u(p, { class: "ctrl-btn" }, {
3247
3227
  default: r(() => [
3248
3228
  k("按钮组")
3249
3229
  ]),
@@ -3260,13 +3240,13 @@ function so(e, t, l, n, o, a) {
3260
3240
  })
3261
3241
  ]),
3262
3242
  main: r(() => [
3263
- (i(), m(d, U({
3243
+ (i(), m(d, F({
3264
3244
  ref: "table",
3265
3245
  key: o.key,
3266
3246
  dev: !0
3267
3247
  }, o.builderSchema), null, 16)),
3268
- c(f),
3269
- c(b, {
3248
+ u(f),
3249
+ u(b, {
3270
3250
  type: "primary",
3271
3251
  onClick: a.saveSchema
3272
3252
  }, {
@@ -3276,12 +3256,12 @@ function so(e, t, l, n, o, a) {
3276
3256
  _: 1
3277
3257
  }, 8, ["onClick"]),
3278
3258
  k("    "),
3279
- c(x, {
3259
+ u(x, {
3280
3260
  text: "PageSchema",
3281
3261
  type: "modal"
3282
3262
  }, {
3283
3263
  default: r(() => [
3284
- c(g, { data: a.getSaveSchema }, null, 8, ["data"])
3264
+ u(g, { data: a.getSaveSchema }, null, 8, ["data"])
3285
3265
  ]),
3286
3266
  _: 1
3287
3267
  })
@@ -3289,15 +3269,15 @@ function so(e, t, l, n, o, a) {
3289
3269
  "right-aside": r(() => [
3290
3270
  o.activeIndex ? (i(), m(Z, { key: 0 }, {
3291
3271
  default: r(() => [
3292
- c(T, { label: "控件类型" }, {
3272
+ u(T, { label: "控件类型" }, {
3293
3273
  default: r(() => [
3294
- c(H, {
3274
+ u(U, {
3295
3275
  modelValue: o.currentCtrlType,
3296
3276
  "onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
3297
3277
  }, {
3298
3278
  default: r(() => [
3299
- (i(!0), h(E, null, B(a.types, (C, q) => (i(), m(z, {
3300
- key: q,
3279
+ (i(!0), h(E, null, B(a.types, (C, V) => (i(), m(J, {
3280
+ key: V,
3301
3281
  label: C.label,
3302
3282
  value: C.value
3303
3283
  }, null, 8, ["label", "value"]))), 128))
@@ -3310,7 +3290,7 @@ function so(e, t, l, n, o, a) {
3310
3290
  ]),
3311
3291
  _: 1
3312
3292
  })) : $("", !0),
3313
- (i(), m(It, U({
3293
+ (i(), m($t, F({
3314
3294
  key: o.ctrlKey,
3315
3295
  modelValue: o.ctrlOptions,
3316
3296
  "onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
@@ -3319,22 +3299,22 @@ function so(e, t, l, n, o, a) {
3319
3299
  _: 1
3320
3300
  });
3321
3301
  }
3322
- const io = /* @__PURE__ */ I(ao, [["render", so], ["__scopeId", "data-v-e5209cb7"]]), ro = {
3302
+ const lo = /* @__PURE__ */ I(eo, [["render", to], ["__scopeId", "data-v-e5209cb7"]]), no = {
3323
3303
  name: "PageEditor",
3324
- components: { FormBuilder: Vn, TableBuilder: io },
3304
+ components: { FormBuilder: Ln, TableBuilder: lo },
3325
3305
  setup() {
3326
- const e = A(!1), t = A(1), l = "rtl", n = pe(), o = j(() => S.state.app.pages[n.path]);
3306
+ const e = M(!1), t = M(1), l = "rtl", n = pe(), o = j(() => S.state.app.pages[n.path]);
3327
3307
  return { show: e, key: t, direction: l, pageSchema: o };
3328
3308
  }
3329
3309
  };
3330
- function co(e, t, l, n, o, a) {
3331
- const s = v("VIcon"), p = v("form-builder"), u = v("table-builder"), d = rt;
3310
+ function oo(e, t, l, n, o, a) {
3311
+ const s = v("VIcon"), p = v("form-builder"), c = v("table-builder"), d = it;
3332
3312
  return i(), h(E, null, [
3333
- c(s, {
3313
+ u(s, {
3334
3314
  name: "ra-set",
3335
3315
  onClick: t[0] || (t[0] = (f) => n.show = !n.show)
3336
3316
  }),
3337
- c(d, {
3317
+ u(d, {
3338
3318
  modelValue: n.show,
3339
3319
  "onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
3340
3320
  title: "页面设计",
@@ -3349,7 +3329,7 @@ function co(e, t, l, n, o, a) {
3349
3329
  key: 0,
3350
3330
  schema: n.pageSchema
3351
3331
  }, null, 8, ["schema"])) : $("", !0),
3352
- n.pageSchema.headers !== void 0 ? (i(), m(u, {
3332
+ n.pageSchema.headers !== void 0 ? (i(), m(c, {
3353
3333
  key: 1,
3354
3334
  schema: n.pageSchema
3355
3335
  }, null, 8, ["schema"])) : $("", !0)
@@ -3358,13 +3338,13 @@ function co(e, t, l, n, o, a) {
3358
3338
  }, 8, ["modelValue", "direction"])
3359
3339
  ], 64);
3360
3340
  }
3361
- const uo = /* @__PURE__ */ I(ro, [["render", co]]);
3362
- const po = {
3341
+ const ao = /* @__PURE__ */ I(no, [["render", oo]]);
3342
+ const so = {
3363
3343
  components: {
3364
- Breadcrumb: _n,
3365
- Hamburger: gn,
3366
- VButton: Be,
3367
- PageEditor: uo
3344
+ Breadcrumb: dn,
3345
+ Hamburger: hn,
3346
+ VButton: Pe,
3347
+ PageEditor: ao
3368
3348
  },
3369
3349
  data() {
3370
3350
  return {
@@ -3377,7 +3357,7 @@ const po = {
3377
3357
  };
3378
3358
  },
3379
3359
  computed: {
3380
- ...Oe(["sidebar", "avatar", "name", "nickname", "nav"]),
3360
+ ...Ce(["sidebar", "avatar", "name", "nickname", "nav"]),
3381
3361
  hasNewMessage() {
3382
3362
  return this.$store.state.settings.hasNewMessage;
3383
3363
  },
@@ -3395,7 +3375,7 @@ const po = {
3395
3375
  }
3396
3376
  },
3397
3377
  mounted() {
3398
- Ye("el-submenu is-active");
3378
+ Xe("el-submenu is-active");
3399
3379
  const e = this.getSetting("navBarNotice");
3400
3380
  e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
3401
3381
  title: "提示",
@@ -3403,7 +3383,7 @@ const po = {
3403
3383
  dangerouslyUseHTMLString: !0,
3404
3384
  duration: 0,
3405
3385
  onClose: this.closeNavBarNotice
3406
- }), this.setting.envColor[this.user.env] && zt({
3386
+ }), this.setting.envColor[this.user.env] && Jt({
3407
3387
  elRef: this.$refs.header.$el,
3408
3388
  waterMark: this.user.env,
3409
3389
  color: "skyblue",
@@ -3439,55 +3419,55 @@ const po = {
3439
3419
  (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));
3440
3420
  }
3441
3421
  }
3442
- }, mo = { class: "right-content" }, fo = { class: "right-item" }, ho = {
3422
+ }, io = { class: "right-content" }, ro = { class: "right-item" }, co = {
3443
3423
  key: 0,
3444
3424
  class: "right-item"
3445
- }, bo = {
3425
+ }, uo = {
3446
3426
  class: "right-item-button",
3447
3427
  style: { padding: "0" }
3448
- }, _o = { class: "user-info" }, yo = ["src"], vo = { class: "user-name" };
3449
- function go(e, t, l, n, o, a) {
3450
- const s = v("hamburger"), p = v("breadcrumb"), u = de, d = v("VIcon"), f = v("PageEditor"), b = v("v-button"), g = vl, x = gl, z = kl, H = rt, T = ae;
3428
+ }, po = { class: "user-info" }, mo = ["src"], fo = { class: "user-name" };
3429
+ function ho(e, t, l, n, o, a) {
3430
+ const s = v("hamburger"), p = v("breadcrumb"), c = de, d = v("VIcon"), f = v("PageEditor"), b = v("v-button"), g = hl, x = bl, J = _l, U = it, T = ae;
3451
3431
  return i(), m(T, {
3452
3432
  ref: "header",
3453
3433
  class: "navbar",
3454
- style: Rt({ background: a.setting.envColor[a.user.env] })
3434
+ style: Pt({ background: a.setting.envColor[a.user.env] })
3455
3435
  }, {
3456
3436
  default: r(() => [
3457
- c(u, { span: 16 }, {
3437
+ u(c, { span: 16 }, {
3458
3438
  default: r(() => [
3459
- c(s, {
3439
+ u(s, {
3460
3440
  "is-active": e.sidebar.opened,
3461
3441
  class: "hamburger-container",
3462
3442
  onToggleClick: a.toggleSideBar
3463
3443
  }, null, 8, ["is-active", "onToggleClick"]),
3464
- c(p, { class: "breadcrumb-container" })
3444
+ u(p, { class: "breadcrumb-container" })
3465
3445
  ]),
3466
3446
  _: 1
3467
3447
  }),
3468
- c(u, { span: 8 }, {
3448
+ u(c, { span: 8 }, {
3469
3449
  default: r(() => [
3470
- _("div", mo, [
3471
- _("div", fo, [
3472
- c(d, {
3450
+ _("div", io, [
3451
+ _("div", ro, [
3452
+ u(d, {
3473
3453
  name: "ra-code",
3474
3454
  onClick: a.gotoMenuEdit
3475
3455
  }, null, 8, ["onClick"])
3476
3456
  ]),
3477
- a.showPageJsonSchemaIcon ? (i(), h("div", ho, [
3478
- c(f)
3457
+ a.showPageJsonSchemaIcon ? (i(), h("div", co, [
3458
+ u(f)
3479
3459
  ])) : $("", !0),
3480
- _("div", bo, [
3481
- c(b, { buttons: e.nav }, null, 8, ["buttons"])
3460
+ _("div", uo, [
3461
+ u(b, { buttons: e.nav }, null, 8, ["buttons"])
3482
3462
  ]),
3483
- c(z, {
3463
+ u(J, {
3484
3464
  class: "right-item",
3485
3465
  trigger: "click"
3486
3466
  }, {
3487
3467
  dropdown: r(() => [
3488
- c(x, { class: "user-dropdown" }, {
3468
+ u(x, { class: "user-dropdown" }, {
3489
3469
  default: r(() => [
3490
- c(g, {
3470
+ u(g, {
3491
3471
  icon: "oms-icon-index",
3492
3472
  onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
3493
3473
  }, {
@@ -3496,7 +3476,7 @@ function go(e, t, l, n, o, a) {
3496
3476
  ]),
3497
3477
  _: 1
3498
3478
  }),
3499
- c(g, {
3479
+ u(g, {
3500
3480
  divided: "",
3501
3481
  icon: "el-icon-switch-button",
3502
3482
  onClick: a.logout
@@ -3511,14 +3491,14 @@ function go(e, t, l, n, o, a) {
3511
3491
  })
3512
3492
  ]),
3513
3493
  default: r(() => [
3514
- _("div", _o, [
3494
+ _("div", po, [
3515
3495
  _("img", {
3516
3496
  src: e.avatar ? e.avatar : o.defaultAvatar,
3517
3497
  class: "user-avatar",
3518
3498
  alt: "头像"
3519
- }, null, 8, yo),
3499
+ }, null, 8, mo),
3520
3500
  k(),
3521
- _("span", vo, O(e.nickname || e.name), 1)
3501
+ _("span", fo, O(e.nickname || e.name), 1)
3522
3502
  ])
3523
3503
  ]),
3524
3504
  _: 1
@@ -3527,7 +3507,7 @@ function go(e, t, l, n, o, a) {
3527
3507
  ]),
3528
3508
  _: 1
3529
3509
  }),
3530
- o.showJsonSchema ? (i(), m(H, {
3510
+ o.showJsonSchema ? (i(), m(U, {
3531
3511
  key: 0,
3532
3512
  "with-header": !1,
3533
3513
  size: "50%"
@@ -3536,8 +3516,8 @@ function go(e, t, l, n, o, a) {
3536
3516
  _: 1
3537
3517
  }, 8, ["style"]);
3538
3518
  }
3539
- const ko = /* @__PURE__ */ I(po, [["render", go], ["__scopeId", "data-v-99b3c688"]]);
3540
- const wo = {
3519
+ const bo = /* @__PURE__ */ I(so, [["render", ho], ["__scopeId", "data-v-99b3c688"]]);
3520
+ const _o = {
3541
3521
  name: "SidebarLogo",
3542
3522
  props: {
3543
3523
  collapse: {
@@ -3553,16 +3533,16 @@ const wo = {
3553
3533
  return this.$store.state.settings.logo;
3554
3534
  }
3555
3535
  }
3556
- }, So = (e) => ($e("data-v-49084925"), e = e(), Ie(), e), xo = ["src"], Eo = {
3536
+ }, yo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), vo = ["src"], go = {
3557
3537
  key: 1,
3558
3538
  class: "sidebar-title"
3559
- }, $o = /* @__PURE__ */ So(() => /* @__PURE__ */ _("div", null, "系统", -1)), Io = ["src"], Co = { class: "sidebar-title" };
3560
- function To(e, t, l, n, o, a) {
3539
+ }, ko = /* @__PURE__ */ yo(() => /* @__PURE__ */ _("div", null, "系统", -1)), wo = ["src"], So = { class: "sidebar-title" };
3540
+ function xo(e, t, l, n, o, a) {
3561
3541
  const s = v("router-link");
3562
3542
  return i(), h("div", {
3563
- class: F(["sidebar-logo-container", { collapse: l.collapse }])
3543
+ class: H(["sidebar-logo-container", { collapse: l.collapse }])
3564
3544
  }, [
3565
- c(Lt, { name: "sidebarLogoFade" }, {
3545
+ u(Rt, { name: "sidebarLogoFade" }, {
3566
3546
  default: r(() => [
3567
3547
  l.collapse ? (i(), m(s, {
3568
3548
  key: "collapse",
@@ -3574,8 +3554,8 @@ function To(e, t, l, n, o, a) {
3574
3554
  key: 0,
3575
3555
  src: a.logo,
3576
3556
  class: "sidebar-logo"
3577
- }, null, 8, xo)) : (i(), h("h1", Eo, O(a.title), 1)),
3578
- $o
3557
+ }, null, 8, vo)) : (i(), h("h1", go, O(a.title), 1)),
3558
+ ko
3579
3559
  ]),
3580
3560
  _: 1
3581
3561
  })) : (i(), m(s, {
@@ -3588,8 +3568,8 @@ function To(e, t, l, n, o, a) {
3588
3568
  key: 0,
3589
3569
  src: a.logo,
3590
3570
  class: "sidebar-logo"
3591
- }, null, 8, Io)) : $("", !0),
3592
- _("h1", Co, O(a.title), 1)
3571
+ }, null, 8, wo)) : $("", !0),
3572
+ _("h1", So, O(a.title), 1)
3593
3573
  ]),
3594
3574
  _: 1
3595
3575
  }))
@@ -3598,7 +3578,7 @@ function To(e, t, l, n, o, a) {
3598
3578
  })
3599
3579
  ], 2);
3600
3580
  }
3601
- const Oo = /* @__PURE__ */ I(wo, [["render", To], ["__scopeId", "data-v-49084925"]]), Bo = {
3581
+ const Eo = /* @__PURE__ */ I(_o, [["render", xo], ["__scopeId", "data-v-49084925"]]), $o = {
3602
3582
  props: {
3603
3583
  to: {
3604
3584
  type: String,
@@ -3611,10 +3591,10 @@ const Oo = /* @__PURE__ */ I(wo, [["render", To], ["__scopeId", "data-v-49084925
3611
3591
  },
3612
3592
  methods: {
3613
3593
  compType(e) {
3614
- return Ue(e) || this.newTab ? "a" : "router-link";
3594
+ return Ve(e) || this.newTab ? "a" : "router-link";
3615
3595
  },
3616
3596
  linkProps(e) {
3617
- return Ue(e) ? {
3597
+ return Ve(e) ? {
3618
3598
  is: "a",
3619
3599
  href: e,
3620
3600
  target: "_blank",
@@ -3631,15 +3611,15 @@ const Oo = /* @__PURE__ */ I(wo, [["render", To], ["__scopeId", "data-v-49084925
3631
3611
  }
3632
3612
  }
3633
3613
  };
3634
- function Ao(e, t, l, n, o, a) {
3635
- return i(), m(Qe(a.compType(l.to)), J(Y(a.linkProps(l.to))), {
3614
+ function Io(e, t, l, n, o, a) {
3615
+ return i(), m(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3636
3616
  default: r(() => [
3637
3617
  le(e.$slots, "default")
3638
3618
  ]),
3639
3619
  _: 3
3640
3620
  }, 16);
3641
3621
  }
3642
- const Po = /* @__PURE__ */ I(Bo, [["render", Ao]]), Ro = {
3622
+ const Co = /* @__PURE__ */ I($o, [["render", Io]]), To = {
3643
3623
  computed: {
3644
3624
  // @ts-ignore
3645
3625
  device() {
@@ -3660,7 +3640,7 @@ const Po = /* @__PURE__ */ I(Bo, [["render", Ao]]), Ro = {
3660
3640
  }
3661
3641
  }
3662
3642
  }
3663
- }, Lo = { class: "menu-content" }, Mo = /* @__PURE__ */ V({
3643
+ }, Oo = { class: "menu-content" }, Bo = /* @__PURE__ */ q({
3664
3644
  __name: "MenuContent",
3665
3645
  props: {
3666
3646
  meta: {
@@ -3675,20 +3655,20 @@ const Po = /* @__PURE__ */ I(Bo, [["render", Ao]]), Ro = {
3675
3655
  return (t, l) => {
3676
3656
  const n = v("VIcon");
3677
3657
  return i(), h(E, null, [
3678
- c(n, {
3658
+ u(n, {
3679
3659
  name: e.meta.icon || "ra-all"
3680
3660
  }, null, 8, ["name"]),
3681
- _("span", Lo, O(e.meta.title), 1)
3661
+ _("span", Oo, O(e.meta.title), 1)
3682
3662
  ], 64);
3683
3663
  };
3684
3664
  }
3685
- }), jo = {
3665
+ }), Ao = {
3686
3666
  name: "SidebarItem",
3687
3667
  components: {
3688
- AppLink: Po,
3689
- MenuContent: Mo
3668
+ AppLink: Co,
3669
+ MenuContent: Bo
3690
3670
  },
3691
- mixins: [Ro],
3671
+ mixins: [To],
3692
3672
  props: {
3693
3673
  // route object
3694
3674
  item: {
@@ -3713,26 +3693,26 @@ const Po = /* @__PURE__ */ I(Bo, [["render", Ao]]), Ro = {
3713
3693
  }
3714
3694
  }
3715
3695
  }
3716
- }, Do = {
3696
+ }, Po = {
3717
3697
  key: 0,
3718
3698
  class: "menu-wrapper"
3719
3699
  };
3720
- function No(e, t, l, n, o, a) {
3721
- const s = v("menu-content"), p = wl, u = v("app-link"), d = v("sidebar-item", !0), f = Sl;
3722
- return l.item.hidden !== !1 ? (i(), h("div", Do, [
3700
+ function Ro(e, t, l, n, o, a) {
3701
+ const s = v("menu-content"), p = yl, c = v("app-link"), d = v("sidebar-item", !0), f = vl;
3702
+ return l.item.hidden !== !1 ? (i(), h("div", Po, [
3723
3703
  l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
3724
- l.item.meta ? (i(), m(u, {
3704
+ l.item.meta ? (i(), m(c, {
3725
3705
  key: 0,
3726
3706
  to: l.to,
3727
3707
  "new-tab": l.item.meta.newTab
3728
3708
  }, {
3729
3709
  default: r(() => [
3730
- c(p, {
3710
+ u(p, {
3731
3711
  index: l.to,
3732
- class: F({ "submenu-title-noDropdown": !l.isNest })
3712
+ class: H({ "submenu-title-noDropdown": !l.isNest })
3733
3713
  }, {
3734
3714
  default: r(() => [
3735
- c(s, {
3715
+ u(s, {
3736
3716
  meta: l.item.meta
3737
3717
  }, null, 8, ["meta"])
3738
3718
  ]),
@@ -3745,15 +3725,15 @@ function No(e, t, l, n, o, a) {
3745
3725
  key: 1,
3746
3726
  ref: "subMenu",
3747
3727
  index: l.to,
3748
- class: F({ "submenu-title-noDropdown": !l.isNest })
3728
+ class: H({ "submenu-title-noDropdown": !l.isNest })
3749
3729
  }, {
3750
3730
  title: r(() => [
3751
- l.item.redirect && l.item.redirect !== "#" ? (i(), m(u, {
3731
+ l.item.redirect && l.item.redirect !== "#" ? (i(), m(c, {
3752
3732
  key: 0,
3753
3733
  to: l.to
3754
3734
  }, {
3755
3735
  default: r(() => [
3756
- c(s, {
3736
+ u(s, {
3757
3737
  meta: l.item.meta
3758
3738
  }, null, 8, ["meta"])
3759
3739
  ]),
@@ -3776,26 +3756,26 @@ function No(e, t, l, n, o, a) {
3776
3756
  }, 8, ["index", "class"])) : $("", !0)
3777
3757
  ])) : $("", !0);
3778
3758
  }
3779
- const Vo = /* @__PURE__ */ I(jo, [["render", No]]);
3780
- function bt(e) {
3759
+ const Lo = /* @__PURE__ */ I(Ao, [["render", Ro]]);
3760
+ function ht(e) {
3781
3761
  return e.filter((t) => {
3782
3762
  var l;
3783
- return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = bt(t.children), t.children.length === 0 && delete t.children), !0);
3763
+ return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ht(t.children), t.children.length === 0 && delete t.children), !0);
3784
3764
  });
3785
3765
  }
3786
- const qo = {
3766
+ const Mo = {
3787
3767
  data() {
3788
3768
  return {
3789
3769
  selected: ""
3790
3770
  };
3791
3771
  },
3792
3772
  computed: {
3793
- ...Oe(["remoteRouter"]),
3773
+ ...Ce(["remoteRouter"]),
3794
3774
  filterRoutes() {
3795
3775
  let e = [];
3796
3776
  return this.remoteRouter.forEach((t) => {
3797
3777
  e = e.concat(y(t.routes));
3798
- }), bt(e);
3778
+ }), ht(e);
3799
3779
  }
3800
3780
  },
3801
3781
  methods: {
@@ -3815,9 +3795,9 @@ const qo = {
3815
3795
  }
3816
3796
  }
3817
3797
  };
3818
- function Uo(e, t, l, n, o, a) {
3819
- const s = Pe, p = xl, u = Re;
3820
- return i(), m(u, {
3798
+ function jo(e, t, l, n, o, a) {
3799
+ const s = Te, p = gl, c = Oe;
3800
+ return i(), m(c, {
3821
3801
  modelValue: o.selected,
3822
3802
  "onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
3823
3803
  filterable: "",
@@ -3857,12 +3837,12 @@ function Uo(e, t, l, n, o, a) {
3857
3837
  _: 1
3858
3838
  }, 8, ["modelValue", "onChange"]);
3859
3839
  }
3860
- const Ho = /* @__PURE__ */ I(qo, [["render", Uo], ["__scopeId", "data-v-7a867c34"]]);
3861
- var D = /* @__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))(D || {}), M = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(M || {});
3862
- const Fo = V({
3863
- components: { SidebarItem: Vo, Logo: Oo, SearchMenu: Ho },
3840
+ const Do = /* @__PURE__ */ I(Mo, [["render", jo], ["__scopeId", "data-v-7a867c34"]]);
3841
+ var D = /* @__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))(D || {}), L = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(L || {});
3842
+ const No = q({
3843
+ components: { SidebarItem: Lo, Logo: Eo, SearchMenu: Do },
3864
3844
  computed: {
3865
- ...Oe(["sidebar", "remoteRouter", "customRouter"]),
3845
+ ...Ce(["sidebar", "remoteRouter", "customRouter"]),
3866
3846
  routes() {
3867
3847
  let e = [];
3868
3848
  return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
@@ -3879,7 +3859,7 @@ const Fo = V({
3879
3859
  const e = this.$route.matched;
3880
3860
  for (let t = e.length - 1; t >= 0; t--) {
3881
3861
  const l = e[t];
3882
- if (l.meta.menuType === M.menu)
3862
+ if (l.meta.menuType === L.menu)
3883
3863
  return this.showActive(), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
3884
3864
  }
3885
3865
  return "";
@@ -3903,26 +3883,26 @@ const Fo = V({
3903
3883
  },
3904
3884
  methods: {
3905
3885
  showActive() {
3906
- Ye("is-active", 200);
3886
+ Xe("is-active", 200);
3907
3887
  },
3908
3888
  filterRoute(e) {
3909
- return e.filter((t) => [M.dir, M.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
3889
+ return e.filter((t) => [L.dir, L.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
3910
3890
  }
3911
3891
  }
3912
3892
  });
3913
- function Go(e, t, l, n, o, a) {
3914
- const s = v("logo"), p = v("search-menu"), u = v("sidebar-item"), d = El, f = $l;
3893
+ function Vo(e, t, l, n, o, a) {
3894
+ const s = v("logo"), p = v("search-menu"), c = v("sidebar-item"), d = kl, f = wl;
3915
3895
  return i(), h("div", {
3916
- class: F({ "has-logo": e.showLogo })
3896
+ class: H({ "has-logo": e.showLogo })
3917
3897
  }, [
3918
3898
  e.showLogo ? (i(), m(s, {
3919
3899
  key: 0,
3920
3900
  collapse: e.isCollapse
3921
3901
  }, null, 8, ["collapse"])) : $("", !0),
3922
- c(f, { "wrap-class": "scrollbar-wrapper" }, {
3902
+ u(f, { "wrap-class": "scrollbar-wrapper" }, {
3923
3903
  default: r(() => [
3924
3904
  e.isCollapse ? $("", !0) : (i(), m(p, { key: 0 })),
3925
- c(d, {
3905
+ u(d, {
3926
3906
  "default-active": e.activeMenu,
3927
3907
  collapse: e.isCollapse,
3928
3908
  "background-color": e.variables.menuBg,
@@ -3936,7 +3916,7 @@ function Go(e, t, l, n, o, a) {
3936
3916
  (i(!0), h(E, null, B(e.routes, (b, g) => (i(), h(E, {
3937
3917
  key: g + "-module"
3938
3918
  }, [
3939
- (i(!0), h(E, null, B(e.filterRoute(b.routes), (x) => (i(), m(u, {
3919
+ (i(!0), h(E, null, B(e.filterRoute(b.routes), (x) => (i(), m(c, {
3940
3920
  key: x.path,
3941
3921
  item: x,
3942
3922
  to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
@@ -3950,36 +3930,36 @@ function Go(e, t, l, n, o, a) {
3950
3930
  })
3951
3931
  ], 2);
3952
3932
  }
3953
- const Jo = /* @__PURE__ */ I(Fo, [["render", Go], ["__scopeId", "data-v-d252f828"]]);
3954
- const zo = { class: "app-main" }, Ko = {
3933
+ const qo = /* @__PURE__ */ I(No, [["render", Vo], ["__scopeId", "data-v-d252f828"]]);
3934
+ const Uo = { class: "app-main" }, Ho = {
3955
3935
  __name: "AppMain",
3956
3936
  setup(e) {
3957
- const t = pe(), l = [], n = A(0);
3958
- return sl(() => {
3937
+ const t = pe(), l = [], n = M(0);
3938
+ return al(() => {
3959
3939
  var o;
3960
3940
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3961
3941
  }), (o, a) => {
3962
- const s = v("router-view"), p = Il;
3963
- return i(), h("section", zo, [
3942
+ const s = v("router-view"), p = Sl;
3943
+ return i(), h("section", Uo, [
3964
3944
  (i(), m(s, {
3965
3945
  key: o.$route.fullPath + w(n)
3966
3946
  })),
3967
- c(p, { bottom: 50 })
3947
+ u(p, { bottom: 50 })
3968
3948
  ]);
3969
3949
  };
3970
3950
  }
3971
- }, Wo = /* @__PURE__ */ I(Ko, [["__scopeId", "data-v-ca0f0d98"]]);
3972
- const Zo = { class: "main-container" }, Qo = 992, Xo = {
3951
+ }, Fo = /* @__PURE__ */ I(Ho, [["__scopeId", "data-v-ca0f0d98"]]);
3952
+ const Go = { class: "main-container" }, Jo = 992, zo = {
3973
3953
  __name: "index",
3974
3954
  setup(e) {
3975
- const t = ot(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
3955
+ const t = nt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
3976
3956
  hideSidebar: !n.value.opened,
3977
3957
  openSidebar: n.value.opened,
3978
3958
  withoutAnimation: n.value.withoutAnimation,
3979
3959
  mobile: o.value === "mobile"
3980
- })), p = () => l.getBoundingClientRect().width - 1 < Qo;
3981
- Al(window, "resize", () => d());
3982
- const u = () => {
3960
+ })), p = () => l.getBoundingClientRect().width - 1 < Jo;
3961
+ Bl(window, "resize", () => d());
3962
+ const c = () => {
3983
3963
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
3984
3964
  }, d = () => {
3985
3965
  if (!document.hidden) {
@@ -3988,28 +3968,28 @@ const Zo = { class: "main-container" }, Qo = 992, Xo = {
3988
3968
  }
3989
3969
  };
3990
3970
  return (f, b) => (i(), h("div", {
3991
- class: F([w(s), "app-wrapper"])
3971
+ class: H([w(s), "app-wrapper"])
3992
3972
  }, [
3993
3973
  w(o) === "mobile" && w(n).opened ? (i(), h("div", {
3994
3974
  key: 0,
3995
3975
  class: "drawer-bg",
3996
- onClick: u
3976
+ onClick: c
3997
3977
  })) : $("", !0),
3998
- c(w(Jo), { class: "sidebar-container" }),
3999
- _("div", Zo, [
3978
+ u(w(qo), { class: "sidebar-container" }),
3979
+ _("div", Go, [
4000
3980
  _("div", {
4001
- class: F({ "fixed-header": w(a) })
3981
+ class: H({ "fixed-header": w(a) })
4002
3982
  }, [
4003
- c(w(ko))
3983
+ u(w(bo))
4004
3984
  ], 2),
4005
- c(w(Wo))
3985
+ u(w(Fo))
4006
3986
  ])
4007
3987
  ], 2));
4008
3988
  }
4009
- }, _t = /* @__PURE__ */ I(Xo, [["__scopeId", "data-v-957442cd"]]);
4010
- class yt {
3989
+ }, bt = /* @__PURE__ */ I(zo, [["__scopeId", "data-v-957442cd"]]);
3990
+ class _t {
4011
3991
  constructor() {
4012
- L(this, "type", "qrcode");
3992
+ R(this, "type", "qrcode");
4013
3993
  }
4014
3994
  flag() {
4015
3995
  }
@@ -4019,15 +3999,15 @@ class yt {
4019
3999
  showQrCode() {
4020
4000
  }
4021
4001
  }
4022
- class Ti extends yt {
4002
+ class xi extends _t {
4023
4003
  constructor(l) {
4024
4004
  super();
4025
- L(this, "type", "jump");
4026
- L(this, "client_id", "");
4005
+ R(this, "type", "jump");
4006
+ R(this, "client_id", "");
4027
4007
  this.client_id = l.client_id;
4028
4008
  }
4029
4009
  flag() {
4030
- const l = et("code");
4010
+ const l = Ye("code");
4031
4011
  if (l)
4032
4012
  return {
4033
4013
  ticket: l,
@@ -4039,20 +4019,20 @@ class Ti extends yt {
4039
4019
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
4040
4020
  }
4041
4021
  }
4042
- class Oi extends yt {
4022
+ class Ei extends _t {
4043
4023
  constructor(l) {
4044
4024
  super();
4045
- L(this, "type", "qrcode");
4046
- L(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
4047
- L(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
4048
- L(this, "elId", "");
4049
- L(this, "appid", "");
4050
- L(this, "iframe", new HTMLIFrameElement());
4051
- L(this, "redirectUri", "");
4052
- L(this, "style", "");
4025
+ R(this, "type", "qrcode");
4026
+ R(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
4027
+ R(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
4028
+ R(this, "elId", "");
4029
+ R(this, "appid", "");
4030
+ R(this, "iframe", new HTMLIFrameElement());
4031
+ R(this, "redirectUri", "");
4032
+ R(this, "style", "");
4053
4033
  }
4054
4034
  flag() {
4055
- const l = et("code");
4035
+ const l = Ye("code");
4056
4036
  if (l)
4057
4037
  return {
4058
4038
  ticket: l,
@@ -4065,7 +4045,7 @@ class Oi extends yt {
4065
4045
  appid: this.appid,
4066
4046
  redirect_uri: encodeURIComponent(this.redirectUri)
4067
4047
  };
4068
- return Q(this.reloadUrl, s) + "&" + Wt(a || {});
4048
+ return Q(this.reloadUrl, s) + "&" + Kt(a || {});
4069
4049
  }, n = () => {
4070
4050
  const a = {
4071
4051
  goto: encodeURIComponent(l()),
@@ -4076,95 +4056,95 @@ class Oi extends yt {
4076
4056
  const { origin: s, data: p } = a;
4077
4057
  s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: p }));
4078
4058
  };
4079
- this.iframe.src = n(), Kt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4059
+ this.iframe.src = n(), zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4080
4060
  "message",
4081
4061
  (a) => o(a),
4082
4062
  !1
4083
4063
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
4084
4064
  }
4085
4065
  }
4086
- const Yo = {};
4087
- function ea() {
4088
- return P(S.state.settings.sso || {}, Yo);
4066
+ const Ko = {};
4067
+ function Wo() {
4068
+ return A(S.state.settings.sso || {}, Ko);
4089
4069
  }
4090
- function ta() {
4091
- const e = ea(), t = S.state.settings.activeSsoKey || "";
4070
+ function Zo() {
4071
+ const e = Wo(), t = S.state.settings.activeSsoKey || "";
4092
4072
  console.log(e, t);
4093
4073
  const l = e[t];
4094
4074
  if (l !== void 0)
4095
4075
  return l();
4096
4076
  }
4097
- const la = { id: "login" }, na = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), oa = { id: "form" }, aa = { class: "captcha" }, sa = ["src"], ia = { class: "tips" }, ra = { class: "sso" }, ca = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), ua = /* @__PURE__ */ V({
4077
+ const Qo = { id: "login" }, Xo = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
4098
4078
  __name: "login",
4099
4079
  setup(e) {
4100
- const t = il(), l = pe(), n = j(() => S.state.settings.loginTips), o = j(() => (console.log(S.state.app), S.state.app.baseURL)), a = A(0), s = () => a.value++, p = j(() => u.value.username.length > 0 && u.value.password.length >= 4 && u.value.captcha.length === 4), u = A({
4080
+ const t = sl(), l = pe(), n = j(() => S.state.settings.loginTips), o = j(() => (console.log(S.state.app), S.state.app.baseURL)), a = M(0), s = () => a.value++, p = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = M({
4101
4081
  username: "",
4102
4082
  password: "",
4103
4083
  captcha: "",
4104
4084
  sing: ""
4105
4085
  }), d = () => {
4106
- if (u.value.username === "" || u.value.password === "" || u.value.captcha === "") {
4107
- Cl.error("用户名, 密码, 验证码是必须的");
4086
+ if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
4087
+ xl.error("用户名, 密码, 验证码是必须的");
4108
4088
  return;
4109
4089
  }
4110
- u.value.sing = Rl(`${u.value.username}${u.value.password}${u.value.captcha}`).toString(), S.dispatch("user/login", u.value).then((f) => {
4090
+ c.value.sing = Pl(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), S.dispatch("user/login", c.value).then((f) => {
4111
4091
  var b;
4112
4092
  t.push({ path: ((b = l.query) == null ? void 0 : b.redirect) || "/" });
4113
4093
  });
4114
4094
  };
4115
- return A(), (f, b) => (i(), h("div", la, [
4116
- na,
4117
- _("form", oa, [
4095
+ return M(), (f, b) => (i(), h("div", Qo, [
4096
+ Xo,
4097
+ _("form", Yo, [
4118
4098
  ie(_("input", {
4119
- "onUpdate:modelValue": b[0] || (b[0] = (g) => w(u).username = g),
4099
+ "onUpdate:modelValue": b[0] || (b[0] = (g) => w(c).username = g),
4120
4100
  type: "text",
4121
4101
  placeholder: "用户名",
4122
4102
  class: "input"
4123
4103
  }, null, 512), [
4124
- [he, w(u).username]
4104
+ [he, w(c).username]
4125
4105
  ]),
4126
4106
  ie(_("input", {
4127
- "onUpdate:modelValue": b[1] || (b[1] = (g) => w(u).password = g),
4107
+ "onUpdate:modelValue": b[1] || (b[1] = (g) => w(c).password = g),
4128
4108
  type: "password",
4129
4109
  placeholder: "密码",
4130
4110
  class: "input"
4131
4111
  }, null, 512), [
4132
- [he, w(u).password]
4112
+ [he, w(c).password]
4133
4113
  ]),
4134
- _("div", aa, [
4114
+ _("div", ea, [
4135
4115
  ie(_("input", {
4136
- "onUpdate:modelValue": b[2] || (b[2] = (g) => w(u).captcha = g),
4116
+ "onUpdate:modelValue": b[2] || (b[2] = (g) => w(c).captcha = g),
4137
4117
  type: "text",
4138
4118
  placeholder: "验证码",
4139
4119
  class: "input-captcha"
4140
4120
  }, null, 512), [
4141
- [he, w(u).captcha]
4121
+ [he, w(c).captcha]
4142
4122
  ]),
4143
4123
  _("img", {
4144
4124
  class: "captcha-img",
4145
4125
  src: o.value + "/user/captcha?ts=" + w(a),
4146
4126
  title: "点击刷新",
4147
4127
  onClick: s
4148
- }, null, 8, sa)
4128
+ }, null, 8, ta)
4149
4129
  ]),
4150
4130
  _("div", {
4151
- class: F({ input: !0, button: !0, "no-ready": !p.value }),
4131
+ class: H({ input: !0, button: !0, "no-ready": !p.value }),
4152
4132
  onClick: d
4153
4133
  }, "登录", 2),
4154
- _("div", ia, [
4134
+ _("div", la, [
4155
4135
  _("div", null, O(n.value), 1)
4156
4136
  ]),
4157
- _("div", ra, [
4158
- ca,
4137
+ _("div", na, [
4138
+ oa,
4159
4139
  (i(!0), h(E, null, B(Object.keys([]), (g) => (i(), h("div", { key: g }, O(g), 1))), 128))
4160
4140
  ])
4161
4141
  ])
4162
4142
  ]));
4163
4143
  }
4164
4144
  });
4165
- const pa = {
4145
+ const sa = {
4166
4146
  name: "NotFoundPage"
4167
- }, vt = (e) => ($e("data-v-26068803"), e = e(), Ie(), e), da = { class: "not-found" }, ma = /* @__PURE__ */ vt(() => /* @__PURE__ */ _("svg", {
4147
+ }, yt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ yt(() => /* @__PURE__ */ _("svg", {
4168
4148
  width: "380px",
4169
4149
  height: "500px",
4170
4150
  viewBox: "0 0 837 1045",
@@ -4217,7 +4197,7 @@ const pa = {
4217
4197
  "sketch:type": "MSShapeGroup"
4218
4198
  })
4219
4199
  ])
4220
- ], -1)), fa = /* @__PURE__ */ vt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
4200
+ ], -1)), ca = /* @__PURE__ */ yt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
4221
4201
  /* @__PURE__ */ _("h1", null, "404"),
4222
4202
  /* @__PURE__ */ _("p", null, "Page not found"),
4223
4203
  /* @__PURE__ */ _("div", { class: "buttons-con" }, [
@@ -4228,17 +4208,17 @@ const pa = {
4228
4208
  }, "Go to Home Page")
4229
4209
  ])
4230
4210
  ])
4231
- ], -1)), ha = [
4232
- ma,
4233
- fa
4211
+ ], -1)), ua = [
4212
+ ra,
4213
+ ca
4234
4214
  ];
4235
- function ba(e, t, l, n, o, a) {
4236
- return i(), h("div", da, ha);
4215
+ function pa(e, t, l, n, o, a) {
4216
+ return i(), h("div", ia, ua);
4237
4217
  }
4238
- const _a = /* @__PURE__ */ I(pa, [["render", ba], ["__scopeId", "data-v-26068803"]]), ya = [
4218
+ const da = /* @__PURE__ */ I(sa, [["render", pa], ["__scopeId", "data-v-26068803"]]), ma = [
4239
4219
  {
4240
4220
  path: "/",
4241
- component: _t,
4221
+ component: bt,
4242
4222
  redirect: "/dashboard",
4243
4223
  name: "Root",
4244
4224
  meta: {
@@ -4248,29 +4228,29 @@ const _a = /* @__PURE__ */ I(pa, [["render", ba], ["__scopeId", "data-v-26068803
4248
4228
  {
4249
4229
  path: "dashboard",
4250
4230
  name: "Dashboard",
4251
- component: dn,
4231
+ component: sn,
4252
4232
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
4253
4233
  }
4254
4234
  ]
4255
4235
  },
4256
4236
  {
4257
4237
  path: "/login",
4258
- component: ua,
4238
+ component: aa,
4259
4239
  meta: { title: "用户登录", menuType: 0 },
4260
4240
  hidden: !0
4261
4241
  },
4262
4242
  {
4263
4243
  path: "/404",
4264
- component: _a,
4244
+ component: da,
4265
4245
  meta: { menuType: 0 },
4266
4246
  hidden: !0
4267
4247
  }
4268
- ], K = rl({
4269
- history: cl(),
4270
- routes: ya
4248
+ ], K = il({
4249
+ history: rl(),
4250
+ routes: ma
4271
4251
  });
4272
4252
  ke.configure({ showSpinner: !1 });
4273
- function va(e) {
4253
+ function fa(e) {
4274
4254
  e.beforeEach((t, l, n) => {
4275
4255
  ke.start(), t.preHash = location.hash.replace("#", ""), n();
4276
4256
  }), e.afterEach((t) => {
@@ -4280,46 +4260,46 @@ function va(e) {
4280
4260
  }), ke.done();
4281
4261
  });
4282
4262
  }
4283
- function ga() {
4263
+ function ha() {
4284
4264
  return S.state.user.isLodeRemoteRoutes;
4285
4265
  }
4286
- function gt() {
4266
+ function vt() {
4287
4267
  return S.state.settings.whiteRoutes || [];
4288
4268
  }
4289
- function ka() {
4269
+ function ba() {
4290
4270
  return S.state.user.token;
4291
4271
  }
4292
- function wa(e) {
4272
+ function _a(e) {
4293
4273
  e.beforeEach(async (t, l, n) => {
4294
- var u, d;
4295
- if (gt().indexOf(t.path) !== -1) {
4274
+ var c, d;
4275
+ if (vt().indexOf(t.path) !== -1) {
4296
4276
  n();
4297
4277
  return;
4298
4278
  }
4299
- if (ka()) {
4300
- (u = t.query) != null && u.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4279
+ if (ba()) {
4280
+ (c = t.query) != null && c.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4301
4281
  return;
4302
4282
  }
4303
- const a = t.query.redirect || t.path, s = ta();
4283
+ const a = t.query.redirect || t.path, s = Zo();
4304
4284
  if (!s) {
4305
4285
  n(`/login?redirect=${a}`);
4306
4286
  return;
4307
4287
  }
4308
4288
  const p = s.flag();
4309
- if (p && await S.dispatch("user/login", Xt(p) ? p : { ticket: p })) {
4289
+ if (p && await S.dispatch("user/login", Qt(p) ? p : { ticket: p })) {
4310
4290
  n();
4311
4291
  return;
4312
4292
  }
4313
4293
  s.jumpToLoginPage(n, `/login?redirect=${a}`);
4314
4294
  });
4315
4295
  }
4316
- const Sa = {}, xa = { class: "loading preloader" }, Ea = /* @__PURE__ */ _("div", { class: "preloader-inner" }, null, -1), $a = [
4317
- Ea
4296
+ const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ _("div", { class: "preloader-inner" }, null, -1), ka = [
4297
+ ga
4318
4298
  ];
4319
- function Ia(e, t) {
4320
- return i(), h("div", xa, $a);
4299
+ function wa(e, t) {
4300
+ return i(), h("div", va, ka);
4321
4301
  }
4322
- const kt = /* @__PURE__ */ I(Sa, [["render", Ia]]), Ca = {
4302
+ const gt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
4323
4303
  name: "VNotice",
4324
4304
  props: {
4325
4305
  dataApi: {
@@ -4348,14 +4328,14 @@ const kt = /* @__PURE__ */ I(Sa, [["render", Ia]]), Ca = {
4348
4328
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
4349
4329
  }
4350
4330
  };
4351
- function Ta(e, t, l, n, o, a) {
4352
- const s = Le;
4331
+ function xa(e, t, l, n, o, a) {
4332
+ const s = Be;
4353
4333
  return i(), h("div", null, [
4354
- o.hasNotice ? (i(), m(s, J(U({ key: 0 }, o.noticeProps)), null, 16)) : $("", !0)
4334
+ o.hasNotice ? (i(), m(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : $("", !0)
4355
4335
  ]);
4356
4336
  }
4357
- const wt = /* @__PURE__ */ I(Ca, [["render", Ta]]), Oa = V({
4358
- components: { VLoading: kt, VNotice: wt },
4337
+ const kt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
4338
+ components: { VLoading: gt, VNotice: kt },
4359
4339
  props: {
4360
4340
  schemaHandler: {
4361
4341
  type: Function,
@@ -4390,15 +4370,15 @@ const wt = /* @__PURE__ */ I(Ca, [["render", Ta]]), Oa = V({
4390
4370
  beforeCreate() {
4391
4371
  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 };
4392
4372
  this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4393
- this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ce(o.notice) ? this.notice = {
4373
+ this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
4394
4374
  title: o.notice
4395
4375
  } : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), 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 });
4396
4376
  });
4397
4377
  }
4398
4378
  });
4399
- const Ba = ["innerHTML"];
4400
- function Aa(e, t, l, n, o, a) {
4401
- const s = Le, p = wt, u = kt;
4379
+ const $a = ["innerHTML"];
4380
+ function Ia(e, t, l, n, o, a) {
4381
+ const s = Be, p = kt, c = gt;
4402
4382
  return i(), h(E, null, [
4403
4383
  e.owners.length > 0 ? (i(), m(s, {
4404
4384
  key: 0,
@@ -4411,18 +4391,18 @@ function Aa(e, t, l, n, o, a) {
4411
4391
  key: 1,
4412
4392
  class: "offline-notice",
4413
4393
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4414
- }, null, 8, Ba)) : (i(), h(E, { key: 2 }, [
4394
+ }, null, 8, $a)) : (i(), h(E, { key: 2 }, [
4415
4395
  e.haveNotice ? (i(), m(p, {
4416
4396
  key: 0,
4417
4397
  notice: e.notice,
4418
4398
  style: { margin: "0 0 20px 0" },
4419
4399
  "data-api": e.noticeApi
4420
4400
  }, null, 8, ["notice", "data-api"])) : $("", !0),
4421
- e.loading ? (i(), m(u, { key: 1 })) : le(e.$slots, "default", J(U({ key: 2 }, e.schema)), void 0, !0)
4401
+ e.loading ? (i(), m(c, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4422
4402
  ], 64))
4423
4403
  ], 64);
4424
4404
  }
4425
- const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709"]]), St = {
4405
+ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), wt = {
4426
4406
  __name: "table",
4427
4407
  setup(e) {
4428
4408
  const t = (l, n) => {
@@ -4431,7 +4411,7 @@ const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709
4431
4411
  prop: l.orderBy.field,
4432
4412
  order: l.orderBy.mod === "desc" ? "descending" : "ascending"
4433
4413
  };
4434
- l.tableProps = P(l.tableProps, { defaultSort: a });
4414
+ l.tableProps = A(l.tableProps, { defaultSort: a });
4435
4415
  }
4436
4416
  const o = Object.keys(oe.props);
4437
4417
  return Object.keys(l).forEach((a) => {
@@ -4440,7 +4420,7 @@ const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709
4440
4420
  };
4441
4421
  return (l, n) => (i(), m(se, { "schema-handler": t }, {
4442
4422
  default: r((o) => [
4443
- c(w(oe), J(Y(o)), null, 16)
4423
+ u(w(oe), G(Y(o)), null, 16)
4444
4424
  ]),
4445
4425
  _: 1
4446
4426
  }));
@@ -4449,14 +4429,14 @@ const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709
4449
4429
  __name: "form",
4450
4430
  setup(e) {
4451
4431
  const t = pe(), l = (n, o) => {
4452
- const a = Object.keys(G.props);
4432
+ const a = Object.keys(z.props);
4453
4433
  return Object.keys(n).forEach((s) => {
4454
4434
  if (a.indexOf(s) === -1) {
4455
4435
  delete n[s];
4456
4436
  return;
4457
4437
  }
4458
4438
  /.*Api$/.test(s) && (n[s] = Q(n[s], t.params));
4459
- }), 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 = P({
4439
+ }), 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 = A({
4460
4440
  saveApi: o + "/save",
4461
4441
  afterSubmit: "goback",
4462
4442
  afterReset: "goback",
@@ -4465,15 +4445,15 @@ const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709
4465
4445
  };
4466
4446
  return (n, o) => (i(), m(se, { "schema-handler": l }, {
4467
4447
  default: r((a) => [
4468
- c(w(G), J(Y(a)), null, 16)
4448
+ u(w(z), G(Y(a)), null, 16)
4469
4449
  ]),
4470
4450
  _: 1
4471
4451
  }));
4472
4452
  }
4473
- }, Pa = V({
4453
+ }, Ca = q({
4474
4454
  name: "VTree",
4475
4455
  components: {
4476
- VForm: G
4456
+ VForm: z
4477
4457
  },
4478
4458
  props: {
4479
4459
  treeApi: {
@@ -4526,7 +4506,7 @@ const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709
4526
4506
  // 1 新增, 2 编辑
4527
4507
  treeData: [],
4528
4508
  formData: {},
4529
- localTreeProps: P({
4509
+ localTreeProps: A({
4530
4510
  "default-expand-all": !0,
4531
4511
  "expand-on-click-node": !1,
4532
4512
  props: {
@@ -4570,7 +4550,7 @@ const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709
4570
4550
  append(e, t) {
4571
4551
  var n, o;
4572
4552
  this.type = 1;
4573
- const l = { pid: e.id, [((n = this.$props.props) == null ? void 0 : n.levelKey) ?? "level"]: t.level + 1, ...Zt((o = this.$props.props) == null ? void 0 : o.effectData, e) };
4553
+ const l = { pid: e.id, [((n = this.$props.props) == null ? void 0 : n.levelKey) ?? "level"]: t.level + 1, ...Wt((o = this.$props.props) == null ? void 0 : o.effectData, e) };
4574
4554
  console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4575
4555
  },
4576
4556
  canAppend(e, t) {
@@ -4613,27 +4593,27 @@ const se = /* @__PURE__ */ I(Oa, [["render", Aa], ["__scopeId", "data-v-4965a709
4613
4593
  }
4614
4594
  }
4615
4595
  });
4616
- const Ra = { class: "card-header" }, La = /* @__PURE__ */ _("span", null, "列表", -1), Ma = { class: "tree-action" }, ja = { key: 0 }, Da = {
4596
+ const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ _("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
4617
4597
  key: 1,
4618
4598
  style: { color: "#E6A23C" }
4619
- }, Na = { class: "card-header" };
4620
- function Va(e, t, l, n, o, a) {
4621
- const s = ue, p = Tl, u = Me, d = de, f = v("v-form"), b = ae;
4599
+ }, Ra = { class: "card-header" };
4600
+ function La(e, t, l, n, o, a) {
4601
+ const s = ue, p = El, c = Ae, d = de, f = v("v-form"), b = ae;
4622
4602
  return i(), m(b, {
4623
4603
  class: "tree-box",
4624
4604
  gutter: 20
4625
4605
  }, {
4626
4606
  default: r(() => [
4627
- c(d, {
4607
+ u(d, {
4628
4608
  span: 8,
4629
4609
  class: "tree-tree"
4630
4610
  }, {
4631
4611
  default: r(() => [
4632
- c(u, { shadow: "never" }, {
4612
+ u(c, { shadow: "never" }, {
4633
4613
  header: r(() => [
4634
- _("div", Ra, [
4635
- La,
4636
- c(s, {
4614
+ _("div", Ta, [
4615
+ Oa,
4616
+ u(s, {
4637
4617
  type: "text",
4638
4618
  onClick: t[0] || (t[0] = () => e.appendNew())
4639
4619
  }, {
@@ -4645,7 +4625,7 @@ function Va(e, t, l, n, o, a) {
4645
4625
  ])
4646
4626
  ]),
4647
4627
  default: r(() => [
4648
- (e.treeData || []).length > 0 ? (i(), m(p, U({
4628
+ (e.treeData || []).length > 0 ? (i(), m(p, F({
4649
4629
  key: 0,
4650
4630
  style: { height: "100vh" },
4651
4631
  data: e.treeData,
@@ -4657,8 +4637,8 @@ function Va(e, t, l, n, o, a) {
4657
4637
  onNodeDragEnd: e.handleDragEnd
4658
4638
  }), {
4659
4639
  default: r(({ node: g, data: x }) => [
4660
- _("span", Ma, [
4661
- x[e.localTreeProps.props.label] ? (i(), h("span", ja, O(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Da, "请在右侧表单中修改 --> ")),
4640
+ _("span", Ba, [
4641
+ x[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
4662
4642
  _("span", null, [
4663
4643
  x[e.localTreeProps.props.label] ? (i(), m(s, {
4664
4644
  key: 0,
@@ -4704,22 +4684,22 @@ function Va(e, t, l, n, o, a) {
4704
4684
  ]),
4705
4685
  _: 1
4706
4686
  }),
4707
- c(d, {
4687
+ u(d, {
4708
4688
  span: 16,
4709
4689
  class: "tree-form"
4710
4690
  }, {
4711
4691
  default: r(() => [
4712
- e.type ? (i(), m(u, {
4692
+ e.type ? (i(), m(c, {
4713
4693
  key: 0,
4714
4694
  shadow: "never"
4715
4695
  }, {
4716
4696
  header: r(() => [
4717
- _("div", Na, [
4697
+ _("div", Ra, [
4718
4698
  _("span", null, O(e.formType), 1)
4719
4699
  ])
4720
4700
  ]),
4721
4701
  default: r(() => [
4722
- (i(), m(f, U({
4702
+ (i(), m(f, F({
4723
4703
  key: e.formkey,
4724
4704
  modelValue: e.formData,
4725
4705
  "onUpdate:modelValue": t[1] || (t[1] = (g) => e.formData = g)
@@ -4734,18 +4714,18 @@ function Va(e, t, l, n, o, a) {
4734
4714
  _: 1
4735
4715
  });
4736
4716
  }
4737
- const ze = /* @__PURE__ */ I(Pa, [["render", Va]]), qa = {
4717
+ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
4738
4718
  __name: "tree",
4739
4719
  setup(e) {
4740
4720
  const t = (l, n) => {
4741
- const o = Object.keys(ze.props);
4721
+ const o = Object.keys(Fe.props);
4742
4722
  return Object.keys(l).forEach((a) => {
4743
4723
  o.indexOf(a) === -1 && delete l[a];
4744
4724
  }), l;
4745
4725
  };
4746
4726
  return (l, n) => (i(), m(se, { "schema-handler": t }, {
4747
4727
  default: r((o) => [
4748
- c(ze, J(Y(o)), null, 16)
4728
+ u(Fe, G(Y(o)), null, 16)
4749
4729
  ]),
4750
4730
  _: 1
4751
4731
  }));
@@ -4753,15 +4733,15 @@ const ze = /* @__PURE__ */ I(Pa, [["render", Va]]), qa = {
4753
4733
  }, ge = {
4754
4734
  __name: "container",
4755
4735
  setup(e) {
4756
- const t = A(0);
4757
- return ul(() => {
4736
+ const t = M(0);
4737
+ return cl(() => {
4758
4738
  t.value++;
4759
4739
  }), (l, n) => {
4760
4740
  const o = v("router-view");
4761
4741
  return i(), m(o);
4762
4742
  };
4763
4743
  }
4764
- }, Ua = {
4744
+ }, ja = {
4765
4745
  title: {
4766
4746
  text: ""
4767
4747
  },
@@ -4790,16 +4770,16 @@ const ze = /* @__PURE__ */ I(Pa, [["render", Va]]), qa = {
4790
4770
  },
4791
4771
  series: []
4792
4772
  };
4793
- function Ha(e, t, l) {
4773
+ function Da(e, t, l) {
4794
4774
  if (l.length === 0)
4795
4775
  return {};
4796
- let n = P({}, Ua);
4797
- if (n.title.text = e, Ce(t)) {
4776
+ let n = A({}, ja);
4777
+ if (n.title.text = e, $e(t)) {
4798
4778
  const o = [], a = Object.keys(l[0]);
4799
- let s = a[0], p = a.filter((d, f) => f > 0), u = t;
4779
+ let s = a[0], p = a.filter((d, f) => f > 0), c = t;
4800
4780
  if (t.indexOf(":") > -1) {
4801
4781
  const d = t.split(":"), f = d[1].split(",");
4802
- u = d[0], s = f[0], p = f.filter((b, g) => g > 0);
4782
+ c = d[0], s = f[0], p = f.filter((b, g) => g > 0);
4803
4783
  }
4804
4784
  p.forEach((d) => {
4805
4785
  const f = [];
@@ -4807,7 +4787,7 @@ function Ha(e, t, l) {
4807
4787
  f.push(b[d]);
4808
4788
  }), n.series.push({
4809
4789
  name: d,
4810
- type: u,
4790
+ type: c,
4811
4791
  smooth: !0,
4812
4792
  data: f
4813
4793
  }), n.legend.data.push(d);
@@ -4815,9 +4795,9 @@ function Ha(e, t, l) {
4815
4795
  o.push(d[s]);
4816
4796
  }), n.xAxis.data = o;
4817
4797
  }
4818
- return X(t) && (n = P(n, t)), console.log(111, n), n;
4798
+ return X(t) && (n = A(n, t)), console.log(111, n), n;
4819
4799
  }
4820
- const Fa = V({
4800
+ const Na = q({
4821
4801
  name: "NumberPanel",
4822
4802
  props: {
4823
4803
  dataList: {
@@ -4828,27 +4808,27 @@ const Fa = V({
4828
4808
  data() {
4829
4809
  return {};
4830
4810
  }
4831
- }), Ga = { class: "number-panel-title" }, Ja = { class: "number" }, za = { class: "name" };
4832
- function Ka(e, t, l, n, o, a) {
4811
+ }), Va = { class: "number-panel-title" }, qa = { class: "number" }, Ua = { class: "name" };
4812
+ function Ha(e, t, l, n, o, a) {
4833
4813
  return i(!0), h(E, null, B(e.dataList, (s, p) => (i(), h("span", { key: p }, [
4834
- _("div", Ga, [
4835
- (i(!0), h(E, null, B(Object.keys(s), (u, d) => (i(), h("div", {
4814
+ _("div", Va, [
4815
+ (i(!0), h(E, null, B(Object.keys(s), (c, d) => (i(), h("div", {
4836
4816
  key: d,
4837
4817
  class: "title-inner"
4838
4818
  }, [
4839
- _("p", Ja, O(s[u]), 1),
4840
- _("p", za, O(u), 1)
4819
+ _("p", qa, O(s[c]), 1),
4820
+ _("p", Ua, O(c), 1)
4841
4821
  ]))), 128))
4842
4822
  ])
4843
4823
  ]))), 128);
4844
4824
  }
4845
- const Wa = /* @__PURE__ */ I(Fa, [["render", Ka], ["__scopeId", "data-v-cc0d8293"]]), Za = {
4825
+ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293"]]), Ga = {
4846
4826
  components: {
4847
- Chart: pl,
4848
- Md: Pl,
4849
- Json: Ae,
4827
+ Chart: Il,
4828
+ Md: Al,
4829
+ Json: Re,
4850
4830
  Table: oe,
4851
- Number: Wa,
4831
+ Number: Fa,
4852
4832
  Html: ""
4853
4833
  },
4854
4834
  props: {
@@ -4869,14 +4849,14 @@ const Wa = /* @__PURE__ */ I(Fa, [["render", Ka], ["__scopeId", "data-v-cc0d8293
4869
4849
  };
4870
4850
  if (o === "chart")
4871
4851
  return {
4872
- options: Ha(n.id, n.chart, n.data)
4852
+ options: Da(n.id, n.chart, n.data)
4873
4853
  };
4874
4854
  if (o === "md")
4875
4855
  return {
4876
4856
  source: n.data
4877
4857
  };
4878
4858
  if (o === "table") {
4879
- if (!tt(n.data))
4859
+ if (!et(n.data))
4880
4860
  return { showPagination: !1 };
4881
4861
  const a = [];
4882
4862
  return n.data[0] && Object.keys(n.data[0]).forEach((s, p) => {
@@ -4893,21 +4873,21 @@ const Wa = /* @__PURE__ */ I(Fa, [["render", Ka], ["__scopeId", "data-v-cc0d8293
4893
4873
  };
4894
4874
  }
4895
4875
  };
4896
- function Qa(e, t, l, n, o, a) {
4897
- const s = Me, p = Mt("resize");
4876
+ function Ja(e, t, l, n, o, a) {
4877
+ const s = Ae, p = Lt("resize");
4898
4878
  return ie((i(), m(s, {
4899
4879
  shadow: "never",
4900
4880
  class: "part"
4901
4881
  }, {
4902
4882
  default: r(() => [
4903
- (i(), m(Qe(n.comptype()), J(Y(n.compprops(l.option))), null, 16))
4883
+ (i(), m(Ze(n.comptype()), G(Y(n.compprops(l.option))), null, 16))
4904
4884
  ]),
4905
4885
  _: 1
4906
4886
  })), [
4907
4887
  [p, !0]
4908
4888
  ]);
4909
4889
  }
4910
- const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1"]]), Ya = /* @__PURE__ */ V({
4890
+ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1"]]), Ka = /* @__PURE__ */ q({
4911
4891
  __name: "index",
4912
4892
  props: {
4913
4893
  filter: {
@@ -4921,10 +4901,10 @@ const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1
4921
4901
  },
4922
4902
  setup(e) {
4923
4903
  const t = e, l = useRoute();
4924
- jt(() => {
4904
+ Mt(() => {
4925
4905
  });
4926
- const n = A({});
4927
- Ze(() => {
4906
+ const n = M({});
4907
+ ze(() => {
4928
4908
  var f;
4929
4909
  (f = t.filter) == null || f.forEach((b) => {
4930
4910
  b.default !== null && (n.value[b.field] = b.default);
@@ -4940,7 +4920,7 @@ const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1
4940
4920
  cancelButton: {
4941
4921
  text: "重置"
4942
4922
  }
4943
- }, a = A(1), s = A(t.filter), p = A(t.dataPart), u = j(() => {
4923
+ }, a = M(1), s = M(t.filter), p = M(t.dataPart), c = j(() => {
4944
4924
  let f = l.params.id;
4945
4925
  if (!f) {
4946
4926
  const b = l.path.split("/");
@@ -4948,27 +4928,27 @@ const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1
4948
4928
  }
4949
4929
  return "/focusbi_report/view/" + f;
4950
4930
  }), d = (f) => {
4951
- ys.get(u.value, { params: f }).then(({ data: b }) => {
4931
+ ms.get(c.value, { params: f }).then(({ data: b }) => {
4952
4932
  s.value = b.filter, p.value = b.dataPart, a.value++;
4953
4933
  });
4954
4934
  };
4955
4935
  return (f, b) => {
4956
- const g = Me, x = de, z = Le, H = ae;
4957
- return i(), m(H, null, {
4936
+ const g = Ae, x = de, J = Be, U = ae;
4937
+ return i(), m(U, null, {
4958
4938
  default: r(() => [
4959
4939
  w(s).length > 0 ? (i(), m(x, {
4960
4940
  key: 0,
4961
4941
  span: 24
4962
4942
  }, {
4963
4943
  default: r(() => [
4964
- c(g, {
4944
+ u(g, {
4965
4945
  shadow: "never",
4966
4946
  class: "part-filter"
4967
4947
  }, {
4968
4948
  default: r(() => [
4969
- c(w(G), {
4949
+ u(w(z), {
4970
4950
  modelValue: w(n),
4971
- "onUpdate:modelValue": b[0] || (b[0] = (T) => Dt(n) ? n.value = T : null),
4951
+ "onUpdate:modelValue": b[0] || (b[0] = (T) => jt(n) ? n.value = T : null),
4972
4952
  "form-items": w(s),
4973
4953
  options: o,
4974
4954
  onSubmit: d
@@ -4979,16 +4959,16 @@ const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1
4979
4959
  ]),
4980
4960
  _: 1
4981
4961
  })) : $("", !0),
4982
- c(x, { span: 24 }, {
4962
+ u(x, { span: 24 }, {
4983
4963
  default: r(() => [
4984
- c(H, { gutter: 20 }, {
4964
+ u(U, { gutter: 20 }, {
4985
4965
  default: r(() => [
4986
4966
  (i(!0), h(E, null, B(w(p), (T, Z) => (i(), m(x, {
4987
4967
  key: Z,
4988
4968
  span: T.col || 24
4989
4969
  }, {
4990
4970
  default: r(() => [
4991
- T.errMsg ? (i(), m(z, {
4971
+ T.errMsg ? (i(), m(J, {
4992
4972
  key: 1,
4993
4973
  title: T.id + " 片段执行出错",
4994
4974
  type: "error"
@@ -4997,7 +4977,7 @@ const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1
4997
4977
  k(O(T.errMsg), 1)
4998
4978
  ]),
4999
4979
  _: 2
5000
- }, 1032, ["title"])) : (i(), m(Xa, {
4980
+ }, 1032, ["title"])) : (i(), m(za, {
5001
4981
  key: w(a),
5002
4982
  option: T
5003
4983
  }, null, 8, ["option"]))
@@ -5016,7 +4996,7 @@ const Xa = /* @__PURE__ */ I(Za, [["render", Qa], ["__scopeId", "data-v-a5a65cc1
5016
4996
  };
5017
4997
  }
5018
4998
  });
5019
- const es = {
4999
+ const Wa = {
5020
5000
  __name: "report",
5021
5001
  setup(e) {
5022
5002
  const t = useRoute(), l = j(() => {
@@ -5029,20 +5009,20 @@ const es = {
5029
5009
  });
5030
5010
  return (n, o) => (i(), m(se, { "schema-api": w(l) }, {
5031
5011
  default: r((a) => [
5032
- c(Ya, J(Y(a)), null, 16)
5012
+ u(Ka, G(Y(a)), null, 16)
5033
5013
  ]),
5034
5014
  _: 1
5035
5015
  }, 8, ["schema-api"]));
5036
5016
  }
5037
5017
  };
5038
- const ts = (e) => c("div", null, [e.test]), ls = {
5039
- card: nl,
5040
- form: G,
5018
+ const Za = (e) => u("div", null, [e.test]), Qa = {
5019
+ card: ll,
5020
+ form: z,
5041
5021
  table: oe,
5042
- test: ts,
5043
- row: ol,
5044
- col: al
5045
- }, ns = {
5022
+ test: Za,
5023
+ row: nl,
5024
+ col: ol
5025
+ }, Xa = {
5046
5026
  card: {
5047
5027
  type: "card",
5048
5028
  props: {
@@ -5063,7 +5043,7 @@ const ts = (e) => c("div", null, [e.test]), ls = {
5063
5043
  }
5064
5044
  }
5065
5045
  };
5066
- function os(e) {
5046
+ function Ya(e) {
5067
5047
  const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
5068
5048
  delete t.span;
5069
5049
  let o = {
@@ -5075,9 +5055,9 @@ function os(e) {
5075
5055
  type: l[a],
5076
5056
  children: [o]
5077
5057
  };
5078
- return o.span = n, Ve([o]);
5058
+ return o.span = n, De([o]);
5079
5059
  }
5080
- function Ve(e) {
5060
+ function De(e) {
5081
5061
  const t = {
5082
5062
  type: "row",
5083
5063
  props: {
@@ -5090,11 +5070,11 @@ function Ve(e) {
5090
5070
  var s, p;
5091
5071
  let n = Object.assign({}, l);
5092
5072
  if (X((s = n.props) == null ? void 0 : s.style)) {
5093
- let u = "";
5073
+ let c = "";
5094
5074
  Object.keys((p = n.props) == null ? void 0 : p.style).forEach((d) => {
5095
5075
  var f;
5096
- u += d + ":" + ((f = n.props) == null ? void 0 : f.style[d]) + ";";
5097
- }), n.props.style = u;
5076
+ c += d + ":" + ((f = n.props) == null ? void 0 : f.style[d]) + ";";
5077
+ }), n.props.style = c;
5098
5078
  }
5099
5079
  const o = {
5100
5080
  span: n.span ?? 24,
@@ -5104,47 +5084,47 @@ function Ve(e) {
5104
5084
  t.children.push({
5105
5085
  type: "col",
5106
5086
  props: o,
5107
- children: os(n)
5087
+ children: Ya(n)
5108
5088
  });
5109
5089
  return;
5110
5090
  }
5111
- n = P({
5091
+ n = A({
5112
5092
  props: {}
5113
- }, ns[n.type] || {}, n);
5114
- const a = xt(n.children);
5115
- a.length && (n.children = Ve(a)), t.children.push({
5093
+ }, Xa[n.type] || {}, n);
5094
+ const a = St(n.children);
5095
+ a.length && (n.children = De(a)), t.children.push({
5116
5096
  type: "col",
5117
5097
  props: o,
5118
5098
  children: [n]
5119
5099
  });
5120
5100
  }), [t];
5121
5101
  }
5122
- function xt(e) {
5123
- return tt(e) ? e : X(e) ? [e] : [];
5102
+ function St(e) {
5103
+ return et(e) ? e : X(e) ? [e] : [];
5124
5104
  }
5125
5105
  let Ee = {};
5126
- const Et = (e) => {
5127
- const t = ls[e.type] || Ee[e.type] || e.type;
5128
- return Vt(t, e.props, {
5129
- default: () => xt(e.children).map((l) => Et(l))
5106
+ const xt = (e) => {
5107
+ const t = Qa[e.type] || Ee[e.type] || e.type;
5108
+ return Nt(t, e.props, {
5109
+ default: () => St(e.children).map((l) => xt(l))
5130
5110
  });
5131
- }, as = (e) => (Object.keys(Ee).length === 0 && (Ee = Nt().appContext.components), Ve(Object.values(e.schema)).map((l) => Et(l))), ss = {
5111
+ }, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Dt().appContext.components), De(Object.values(e.schema)).map((l) => xt(l))), ts = {
5132
5112
  __name: "custom",
5133
5113
  setup(e) {
5134
- const t = A([]), l = (n, o) => (t.value = qt(n), n);
5114
+ const t = M([]), l = (n, o) => (t.value = Vt(n), n);
5135
5115
  return (n, o) => (i(), m(se, { "schema-handler": l }, {
5136
5116
  default: r(() => [
5137
- c(w(as), { schema: w(t) }, null, 8, ["schema"])
5117
+ u(w(es), { schema: w(t) }, null, 8, ["schema"])
5138
5118
  ]),
5139
5119
  _: 1
5140
5120
  }));
5141
5121
  }
5142
5122
  };
5143
5123
  let te = {};
5144
- function Bi(e) {
5124
+ function $i(e) {
5145
5125
  te = e;
5146
5126
  }
5147
- const is = (e) => {
5127
+ const ls = (e) => {
5148
5128
  const t = (l) => {
5149
5129
  const n = "./views/" + l + ".vue";
5150
5130
  return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ge);
@@ -5153,33 +5133,33 @@ const is = (e) => {
5153
5133
  return ge;
5154
5134
  switch (e.page_type) {
5155
5135
  case D.list:
5156
- return St;
5136
+ return wt;
5157
5137
  case D.form:
5158
5138
  return xe;
5159
5139
  case D.custom:
5160
5140
  case D.localComp:
5161
5141
  return t(e.view || "");
5162
5142
  case D.tree:
5163
- return qa;
5143
+ return Ma;
5164
5144
  case D.report:
5165
- return es;
5145
+ return Wa;
5166
5146
  case D.customSchema:
5167
- return ss;
5147
+ return ts;
5168
5148
  }
5169
5149
  return ge;
5170
5150
  };
5171
- function rs(e) {
5151
+ function ns(e) {
5172
5152
  let t = e.path;
5173
- return e.type === M.menu && e.page_type === D.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;
5153
+ return e.type === L.menu && e.page_type === D.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;
5174
5154
  }
5175
- function cs(e) {
5155
+ function os(e) {
5176
5156
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5177
5157
  }
5178
- const $t = (e) => {
5179
- const t = e.type !== M.page, l = {
5180
- path: rs(e),
5181
- name: e.id + "_" + cs(e) + "_" + e.path.replaceAll("/", "_"),
5182
- component: is(e),
5158
+ const Et = (e) => {
5159
+ const t = e.type !== L.page, l = {
5160
+ path: ns(e),
5161
+ name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
5162
+ component: ls(e),
5183
5163
  meta: {
5184
5164
  id: e.id,
5185
5165
  pageId: e.id,
@@ -5190,18 +5170,18 @@ const $t = (e) => {
5190
5170
  menuType: e.type,
5191
5171
  keepAlive: !1
5192
5172
  },
5193
- children: e.children ? e.children.map((n) => $t(n)) : []
5173
+ children: e.children ? e.children.map((n) => Et(n)) : []
5194
5174
  };
5195
5175
  if (e.page_type === D.entity) {
5196
5176
  const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
5197
5177
  path: n,
5198
5178
  name: e.name + "列表" + e.id,
5199
- component: St,
5179
+ component: wt,
5200
5180
  meta: {
5201
5181
  id: e.id + 99999,
5202
5182
  title: "列表",
5203
5183
  hidden: !0,
5204
- menuType: M.hidden,
5184
+ menuType: L.hidden,
5205
5185
  keepAlive: !1,
5206
5186
  pageId: e.id,
5207
5187
  path: e.path
@@ -5214,7 +5194,7 @@ const $t = (e) => {
5214
5194
  id: e.id + 99999 + 1,
5215
5195
  title: "新建",
5216
5196
  hidden: !0,
5217
- menuType: M.hidden,
5197
+ menuType: L.hidden,
5218
5198
  keepAlive: !1,
5219
5199
  pageId: e.id,
5220
5200
  path: e.path
@@ -5227,7 +5207,7 @@ const $t = (e) => {
5227
5207
  id: e.id + 99999 + 2,
5228
5208
  title: "编辑",
5229
5209
  hidden: !0,
5230
- menuType: M.hidden,
5210
+ menuType: L.hidden,
5231
5211
  keepAlive: !1,
5232
5212
  pageId: e.id,
5233
5213
  path: e.path
@@ -5239,8 +5219,8 @@ const $t = (e) => {
5239
5219
  let n = !0;
5240
5220
  if (l.children.forEach((o) => {
5241
5221
  o.meta && !o.meta.hidden && (n = !1);
5242
- }), l.meta && (l.meta.menuType = t ? M.dir : M.hidden), n) {
5243
- l.meta && (l.meta.menuType = M.menu);
5222
+ }), l.meta && (l.meta.menuType = t ? L.dir : L.hidden), n) {
5223
+ l.meta && (l.meta.menuType = L.menu);
5244
5224
  let o = "/";
5245
5225
  for (let a = 0; a < l.children.length; a++)
5246
5226
  if (l.children[a].path.indexOf("/:") === -1) {
@@ -5251,7 +5231,7 @@ const $t = (e) => {
5251
5231
  }
5252
5232
  }
5253
5233
  return l;
5254
- }, us = (e) => {
5234
+ }, as = (e) => {
5255
5235
  const t = [];
5256
5236
  return e.forEach((l) => {
5257
5237
  const n = {
@@ -5260,39 +5240,39 @@ const $t = (e) => {
5260
5240
  routes: []
5261
5241
  };
5262
5242
  l.routes.forEach((o) => {
5263
- n.routes.push($t(o));
5243
+ n.routes.push(Et(o));
5264
5244
  }), t.push(n);
5265
5245
  }), t;
5266
5246
  };
5267
- function ps(e) {
5247
+ function ss(e) {
5268
5248
  e.beforeEach(async (t, l, n) => {
5269
- if (gt().indexOf(t.path) !== -1) {
5249
+ if (vt().indexOf(t.path) !== -1) {
5270
5250
  n();
5271
5251
  return;
5272
5252
  }
5273
- if (ga()) {
5253
+ if (ha()) {
5274
5254
  n();
5275
5255
  return;
5276
5256
  }
5277
5257
  await S.dispatch("user/info");
5278
- const o = await S.dispatch("user/loadRemoteRoutes"), a = us(o);
5258
+ const o = await S.dispatch("user/loadRemoteRoutes"), a = as(o);
5279
5259
  a.forEach((s) => {
5280
5260
  s.routes.forEach((p) => {
5281
5261
  e.addRoute({
5282
5262
  path: "/",
5283
- component: _t,
5263
+ component: bt,
5284
5264
  children: [p]
5285
5265
  });
5286
5266
  });
5287
5267
  }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
5288
5268
  });
5289
5269
  }
5290
- function ds(e) {
5270
+ function is(e) {
5291
5271
  e.beforeEach(async (t, l, n) => {
5292
5272
  var p;
5293
5273
  const a = [S.state.settings.title || ""], s = t.matched.length;
5294
- for (let u = s; u > s - 3; u--) {
5295
- const d = t.matched[u - 1];
5274
+ for (let c = s; c > s - 3; c--) {
5275
+ const d = t.matched[c - 1];
5296
5276
  (p = d == null ? void 0 : d.meta) != null && p.title && a.push(d.meta.title + "");
5297
5277
  }
5298
5278
  a.length > 1 && (document.title = a.reverse().join("-")), n();
@@ -5300,52 +5280,52 @@ function ds(e) {
5300
5280
  Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
5301
5281
  });
5302
5282
  }
5303
- function ms(e) {
5304
- wa(e), va(e), ps(e), ds(e);
5283
+ function rs(e) {
5284
+ _a(e), fa(e), ss(e), is(e);
5305
5285
  }
5306
- ms(K);
5307
- function fs() {
5286
+ rs(K);
5287
+ function cs() {
5308
5288
  return S.state.user.token;
5309
5289
  }
5310
- function Ke(e) {
5311
- tn({
5290
+ function Ge(e) {
5291
+ en({
5312
5292
  message: e,
5313
5293
  type: "error",
5314
5294
  duration: 5 * 1e3,
5315
5295
  grouping: !0
5316
5296
  });
5317
5297
  }
5318
- const hs = {
5298
+ const us = {
5319
5299
  onFulfilled: function(e) {
5320
5300
  var l;
5321
5301
  e.headers = e.headers || {};
5322
- const t = fs();
5302
+ const t = cs();
5323
5303
  return t && (e.headers["X-Token"] = t), (l = K.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = K.currentRoute.value.meta.path), e;
5324
5304
  }
5325
- }, bs = {
5305
+ }, ps = {
5326
5306
  onFulfilled(e) {
5327
- var n, o, a, s, p, u, d;
5307
+ var n, o, a, s, p, c, d;
5328
5308
  if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
5329
5309
  const f = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5330
5310
  if (e.data.code === 401) {
5331
- Fe.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5311
+ Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5332
5312
  showClose: !1,
5333
5313
  confirmButtonText: "重新登录",
5334
5314
  showCancelButton: !0,
5335
5315
  cancelButtonText: "取消",
5336
5316
  callback: (b) => {
5337
- b === "confirm" && (dt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
5317
+ b === "confirm" && (pt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
5338
5318
  }
5339
5319
  });
5340
5320
  return;
5341
5321
  } else
5342
- Ke(f);
5322
+ Ge(f);
5343
5323
  return Promise.reject(f);
5344
5324
  }
5345
5325
  let l = (p = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : p._message_box;
5346
- return l !== void 0 && (Ce(l) && (l = {
5347
- message: (d = (u = e.data) == null ? void 0 : u.data) == null ? void 0 : d._message_box
5348
- }), Fe({
5326
+ return l !== void 0 && ($e(l) && (l = {
5327
+ message: (d = (c = e.data) == null ? void 0 : c.data) == null ? void 0 : d._message_box
5328
+ }), Ue({
5349
5329
  title: "提示",
5350
5330
  type: "success",
5351
5331
  grouping: !0,
@@ -5354,29 +5334,29 @@ const hs = {
5354
5334
  },
5355
5335
  onRejected(e) {
5356
5336
  var t;
5357
- return Te.isCancel(e) ? Promise.reject("") : (Ke(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5337
+ return Ie.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5358
5338
  }
5359
- }, _s = [
5339
+ }, ds = [
5360
5340
  {
5361
- request: nn,
5362
- response: on
5341
+ request: ln,
5342
+ response: nn
5363
5343
  },
5364
5344
  {
5365
- request: hs,
5366
- response: bs
5345
+ request: us,
5346
+ response: ps
5367
5347
  }
5368
5348
  ];
5369
- function qe(e = {}) {
5370
- const t = me.axios || {}, l = P(t, e || {}), n = Te.create({
5349
+ function Ne(e = {}) {
5350
+ const t = me.axios || {}, l = A(t, e || {}), n = Ie.create({
5371
5351
  ...l
5372
5352
  // adapter: (c) => cacheAdapter(c, defaultAxios)
5373
5353
  });
5374
- return _s.forEach((o) => {
5354
+ return ds.forEach((o) => {
5375
5355
  n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
5376
5356
  }), n;
5377
5357
  }
5378
- const ys = qe();
5379
- const vs = {
5358
+ const ms = Ne();
5359
+ const fs = {
5380
5360
  beforeMount(e, t) {
5381
5361
  e.clickOutsideEvent = function(l) {
5382
5362
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5385,88 +5365,88 @@ const vs = {
5385
5365
  unmounted(e) {
5386
5366
  document.body.removeEventListener("click", e.clickOutsideEvent);
5387
5367
  }
5388
- }, W = Bl(), gs = {
5368
+ }, W = Ol(), hs = {
5389
5369
  mounted: (e, t) => {
5390
5370
  e !== null && (t.value, e.oncontextmenu = (l) => {
5391
5371
  l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
5392
5372
  });
5393
5373
  }
5394
- }, ks = {
5374
+ }, bs = {
5395
5375
  mounted(e) {
5396
5376
  }
5397
5377
  };
5398
- function We(e, t) {
5378
+ function Je(e, t) {
5399
5379
  let l = e[`offset${t}`], n = e.offsetParent;
5400
5380
  for (; n; )
5401
5381
  l += n[`offset${t}`], n = n.offsetParent;
5402
5382
  return l;
5403
5383
  }
5404
- const ws = {
5384
+ const _s = {
5405
5385
  mounted: (e, t) => {
5406
5386
  if (e === null || !t.value.dev)
5407
5387
  return;
5408
5388
  let l = e;
5409
5389
  if (t.value.parent)
5410
- for (let u = 0; u < t.value.parent; u++)
5390
+ for (let c = 0; c < t.value.parent; c++)
5411
5391
  l.parentElement && (l = l.parentElement);
5412
5392
  l.classList.add("devtool-hover");
5413
5393
  const n = document.createElement("i");
5414
5394
  n.className = "devtool-item-wrapper", l.onmouseover = () => {
5415
- n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = We(l, "Top") - 15 + "px", n.style.left = We(l, "Left") - 15 + "px";
5395
+ n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = Je(l, "Top") - 15 + "px", n.style.left = Je(l, "Left") - 15 + "px";
5416
5396
  };
5417
5397
  const o = document.createElement("span");
5418
5398
  o.className = "dev-action-edit", o.title = "编辑";
5419
5399
  const a = document.createElement("i");
5420
- a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (u) => {
5421
- W.emit("dev-action", { event: u, data: { type: "edit", devId: t.value.devId } });
5400
+ a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (c) => {
5401
+ W.emit("dev-action", { event: c, data: { type: "edit", devId: t.value.devId } });
5422
5402
  }, n.appendChild(o);
5423
5403
  const s = document.createElement("span");
5424
5404
  s.className = "dev-action-del", s.title = "删除";
5425
5405
  const p = document.createElement("i");
5426
- p.className = "iconfont ra-cut", s.appendChild(p), s.onclick = (u) => {
5427
- W.emit("dev-action", { event: u, data: { type: "del", devId: t.value.devId } });
5406
+ p.className = "iconfont ra-cut", s.appendChild(p), s.onclick = (c) => {
5407
+ W.emit("dev-action", { event: c, data: { type: "del", devId: t.value.devId } });
5428
5408
  }, n.appendChild(s), l.insertBefore(n, l.firstChild);
5429
5409
  }
5430
- }, Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5410
+ }, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5431
5411
  __proto__: null,
5432
- devtool: ws,
5433
- outClick: vs,
5434
- resize: ks,
5435
- rightClick: gs
5412
+ devtool: _s,
5413
+ outClick: fs,
5414
+ resize: bs,
5415
+ rightClick: hs
5436
5416
  }, Symbol.toStringTag, { value: "Module" }));
5437
5417
  let ce;
5438
- function Ai(e) {
5439
- return e ? qe(P(me.axios, e)) : ce;
5418
+ function Ii(e) {
5419
+ return e ? Ne(A(me.axios, e)) : ce;
5440
5420
  }
5441
- function Pi(e) {
5442
- const t = P(me, e), l = Ut(Ll), n = Os(t), o = t.plugins || [];
5421
+ function Ci(e) {
5422
+ const t = A(me, e), l = qt(Rl), n = Es(t), o = t.plugins || [];
5443
5423
  o.unshift(n), o.forEach((a) => {
5444
- Ts(l, a);
5445
- }), t != null && t.mock && Gl(), ce = qe(t.axios), S.dispatch("setHttp", ce).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), S.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, dl(() => ({
5446
- "X-Token": De()
5424
+ xs(l, a);
5425
+ }), t != null && t.mock && Fl(), ce = Ne(t.axios), S.dispatch("setHttp", ce).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), S.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Cl(() => ({
5426
+ "X-Token": Me()
5447
5427
  })), K.isReady().then(() => l.mount("#app"));
5448
5428
  }
5449
- function xs(e, t = {}) {
5429
+ function vs(e, t = {}) {
5450
5430
  Object.keys(t).forEach((l) => {
5451
5431
  e.component(l, t[l]);
5452
5432
  });
5453
5433
  }
5454
- function Es(e = []) {
5434
+ function gs(e = []) {
5455
5435
  e.forEach((t) => {
5456
5436
  K.addRoute(t);
5457
5437
  }), S.commit("user/setCustomRoutes", e);
5458
5438
  }
5459
- function $s(e, t) {
5439
+ function ks(e, t) {
5460
5440
  t.forEach((l) => {
5461
5441
  X(l) && (l = [l]), e.use(...l);
5462
5442
  });
5463
5443
  }
5464
- function Is(e, t = {}) {
5444
+ function ws(e, t = {}) {
5465
5445
  Object.keys(t).forEach((l) => {
5466
5446
  e.directive(l, t[l]);
5467
5447
  });
5468
5448
  }
5469
- function Cs(e = {}) {
5449
+ function Ss(e = {}) {
5470
5450
  const t = ["app", "settings", "user"];
5471
5451
  Object.keys(e).forEach((l) => {
5472
5452
  if (t.indexOf(l) !== -1) {
@@ -5476,40 +5456,40 @@ function Cs(e = {}) {
5476
5456
  S.registerModule(l, e[l]);
5477
5457
  });
5478
5458
  }
5479
- function Ts(e, t) {
5480
- xs(e, t.components || {}), Es(t.routes || []), $s(e, t.use || []), Is(e, t.directives || {}), Cs(t.storeModules || {}), ut(t.mockApis || []);
5459
+ function xs(e, t) {
5460
+ vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), ct(t.mockApis || []);
5481
5461
  }
5482
- function Os(e) {
5462
+ function Es(e) {
5483
5463
  var t;
5484
5464
  return {
5485
- components: { VIcon: ml },
5486
- directives: Ss,
5465
+ components: { VIcon: Tl },
5466
+ directives: ys,
5487
5467
  use: [
5488
5468
  S,
5489
5469
  K,
5490
- [el, { locale: nt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5470
+ [Yt, { locale: lt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5491
5471
  ]
5492
5472
  };
5493
5473
  }
5494
5474
  export {
5495
- yt as BaseSso,
5475
+ _t as BaseSso,
5496
5476
  ge as Container,
5497
- Oi as DingTalk,
5498
- Ti as Github,
5499
- _t as Layout,
5500
- M as MenuType,
5501
- tn as Message,
5502
- Fe as MessageBox,
5477
+ Ei as DingTalk,
5478
+ xi as Github,
5479
+ bt as Layout,
5480
+ L as MenuType,
5481
+ en as Message,
5482
+ Ue as MessageBox,
5503
5483
  D as PageType,
5504
- ea as allSso,
5505
- Pi as createAdmin,
5484
+ Wo as allSso,
5485
+ Ci as createAdmin,
5506
5486
  W as eventBus,
5507
- an as getCmp,
5487
+ on as getCmp,
5508
5488
  ce as http,
5509
- qe as instance,
5510
- Bi as regViews,
5511
- Ci as setCmp,
5512
- us as transRemoteModules,
5513
- Ai as useHttp
5489
+ Ne as instance,
5490
+ $i as regViews,
5491
+ Si as setCmp,
5492
+ as as transRemoteModules,
5493
+ Ii as useHttp
5514
5494
  };
5515
5495
  //# sourceMappingURL=index.es.js.map