@okiss/oms 0.0.63 → 0.0.65

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.
Files changed (38) hide show
  1. package/dist/index.es.js +647 -647
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/style.css +1 -1
  4. package/dist/types/App.vue.d.ts +1 -1
  5. package/dist/types/components/PageLoad.vue.d.ts +31 -4
  6. package/dist/types/components/RightMenu.vue.d.ts +4 -4
  7. package/dist/types/components/VLoading.vue.d.ts +1 -1
  8. package/dist/types/components/VTree.vue.d.ts +513 -4
  9. package/dist/types/components/notice/VNotice.vue.d.ts +4 -4
  10. package/dist/types/components/report/NumberPanel.vue.d.ts +4 -4
  11. package/dist/types/components/report/index.vue.d.ts +4 -4
  12. package/dist/types/scaffold/404.vue.d.ts +1 -1
  13. package/dist/types/scaffold/EmptyRole.vue.d.ts +1 -1
  14. package/dist/types/scaffold/container.vue.d.ts +1 -1
  15. package/dist/types/scaffold/custom.vue.d.ts +1 -1
  16. package/dist/types/scaffold/dashboard.vue.d.ts +1 -1
  17. package/dist/types/scaffold/devtool/DevLayout.vue.d.ts +8 -12
  18. package/dist/types/scaffold/devtool/formBuilder/index.vue.d.ts +704 -4
  19. package/dist/types/scaffold/devtool/tableBuilder/index.vue.d.ts +1640 -4
  20. package/dist/types/scaffold/form.vue.d.ts +1 -1
  21. package/dist/types/scaffold/layout/components/AppMain.vue.d.ts +1 -1
  22. package/dist/types/scaffold/layout/components/Breadcrumb/index.vue.d.ts +1 -1
  23. package/dist/types/scaffold/layout/components/Hamburger/index.vue.d.ts +5 -5
  24. package/dist/types/scaffold/layout/components/Navbar.vue.d.ts +3109 -1
  25. package/dist/types/scaffold/layout/components/PageEditor.vue.d.ts +3045 -3
  26. package/dist/types/scaffold/layout/components/PageScheam.vue.d.ts +5 -3
  27. package/dist/types/scaffold/layout/components/Sidebar/Link.vue.d.ts +4 -4
  28. package/dist/types/scaffold/layout/components/Sidebar/Logo.vue.d.ts +3 -3
  29. package/dist/types/scaffold/layout/components/Sidebar/MenuContent.vue.d.ts +4 -4
  30. package/dist/types/scaffold/layout/components/Sidebar/SearchMenuItem.vue.d.ts +1 -1
  31. package/dist/types/scaffold/layout/components/Sidebar/SidebarItem.vue.d.ts +61 -5
  32. package/dist/types/scaffold/layout/index.vue.d.ts +1 -1
  33. package/dist/types/scaffold/login.vue.d.ts +1 -1
  34. package/dist/types/scaffold/report.vue.d.ts +1 -1
  35. package/dist/types/scaffold/table.vue.d.ts +1 -1
  36. package/dist/types/scaffold/tree.vue.d.ts +1 -1
  37. package/package.json +6 -6
  38. package/dist/types/scaffold/layout/components/Sidebar/index.vue.d.ts +0 -18
package/dist/index.es.js CHANGED
@@ -1,19 +1,19 @@
1
- var At = Object.defineProperty;
2
- var Pt = (e, t, l) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
- var R = (e, t, l) => Pt(e, typeof t != "symbol" ? t + "" : t, l);
4
- import { defineComponent as q, onBeforeMount as ze, provide as Rt, resolveComponent as w, openBlock as i, createBlock as f, createVNode as p, computed as M, createTextVNode as S, withCtx as c, TransitionGroup as Lt, createElementBlock as h, Fragment as I, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as x, toRefs as Mt, ref as D, normalizeStyle as Dt, createElementVNode as b, Transition as jt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Xe, normalizeProps as G, guardReactiveProps as Y, unref as E, withDirectives as ie, vModelText as be, onMounted as Ze, onUnmounted as Nt, resolveDirective as Vt, isRef as qt, getCurrentInstance as Ut, h as Ht, toRaw as Ft, createApp as Gt } from "vue";
5
- import { addNewStyle as Jt, addNewStyleTag as zt, queryParams as Kt, logGroup as Wt, compactObject as Qe, showEleByClassName as Ye, waterMarker as Xt, Cache as re, isExternal as Ve, getQueryParam as et, createIFrame as Zt, strVarReplace as Z, obj2Param as Qt, isObject as Q, isString as Ie, effectDataTrans as Yt, isArray as tt } from "@okiss/utils";
1
+ var Tt = Object.defineProperty;
2
+ var Bt = (e, t, l) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
+ var R = (e, t, l) => Bt(e, typeof t != "symbol" ? t + "" : t, l);
4
+ import { defineComponent as q, onBeforeMount as ze, provide as Ot, resolveComponent as w, openBlock as i, createBlock as f, createVNode as p, computed as M, createTextVNode as S, withCtx as c, TransitionGroup as At, createElementBlock as h, Fragment as I, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as x, toRefs as Pt, ref as D, normalizeStyle as Rt, createElementVNode as b, Transition as Lt, resolveDynamicComponent as Ke, normalizeProps as G, guardReactiveProps as Y, unref as E, withDirectives as ie, vModelText as be, onMounted as We, onUnmounted as Mt, resolveDirective as Dt, isRef as jt, 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 Ze, waterMarker as zt, Cache as re, isExternal as Ve, getQueryParam as Qe, createIFrame as Kt, strVarReplace as Z, obj2Param as Wt, isObject as Q, isString as Ie, effectDataTrans as Xt, isArray as Ye } from "@okiss/utils";
6
6
  import ye from "mockjs";
7
- import el, { cloneDeep as v, merge as A, get as ne, unset as lt, isObject as tl } from "lodash";
8
- import nt from "element-plus/es/locale/lang/zh-cn";
9
- import $e from "axios";
7
+ import Zt, { cloneDeep as g, merge as A, get as ne, unset as et, isObject as Qt } from "lodash";
8
+ import tt from "element-plus/es/locale/lang/zh-cn";
9
+ import Ce from "axios";
10
10
  import N from "js-cookie";
11
- import { createStore as ll, useStore as ot, mapGetters as Ce } from "vuex";
12
- import nl, { ElMessage as ol, ElMessageBox as at, ElCard as al, ElRow as sl, ElCol as il } from "element-plus";
11
+ import { createStore as Yt, useStore as lt, mapGetters as $e } from "vuex";
12
+ import el, { ElMessage as tl, ElMessageBox as nt, 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 de, onBeforeRouteLeave as rl, useRouter as st, createRouter as cl, createWebHashHistory as ul, onBeforeRouteUpdate as pl } from "vue-router";
16
- import { ElBreadcrumbItem as dl, ElBreadcrumb as ml, ElRow as ae, ElMain as fl, ElAside as hl, ElContainer as bl, ElDivider as it, ElButton as pe, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as me, ElDrawer as ut, ElDropdownItem as yl, ElDropdownMenu as _l, ElDropdown as vl, ElMenuItem as gl, ElSubMenu as kl, ElOptionGroup as wl, ElMenu as Sl, ElScrollbar as El, ElBacktop as xl, ElMessage as Il, ElAlert as Oe, ElTree as $l, ElCard as Ae } from "element-plus/es";
15
+ import { useRoute as de, onBeforeRouteLeave as al, useRouter as ot, createRouter as sl, createWebHashHistory as il, onBeforeRouteUpdate as rl } from "vue-router";
16
+ import { ElBreadcrumbItem as cl, ElBreadcrumb as ul, ElRow as ae, ElMain as pl, ElAside as dl, ElContainer as ml, ElDivider as at, ElButton as pe, ElOption as Te, ElSelect as Be, ElFormItem as st, ElForm as it, ElCol as me, ElDrawer as rt, ElDropdownItem as fl, ElDropdownMenu as hl, ElDropdown as bl, ElMenuItem as yl, ElSubMenu as _l, ElOptionGroup as vl, ElMenu as gl, ElScrollbar as kl, ElBacktop as wl, ElMessage as Sl, ElAlert as Oe, ElTree as El, ElCard as Ae } from "element-plus/es";
17
17
  import "element-plus/es/components/base/style/css";
18
18
  import "element-plus/es/components/row/style/css";
19
19
  import "element-plus/es/components/drawer/style/css";
@@ -23,7 +23,7 @@ import "element-plus/es/components/dropdown-item/style/css";
23
23
  import "element-plus/es/components/col/style/css";
24
24
  import "element-plus/es/components/breadcrumb/style/css";
25
25
  import "element-plus/es/components/breadcrumb-item/style/css";
26
- import * as Cl from "path-to-regexp";
26
+ import * as xl from "path-to-regexp";
27
27
  import "element-plus/es/components/form/style/css";
28
28
  import "element-plus/es/components/form-item/style/css";
29
29
  import "element-plus/es/components/select/style/css";
@@ -33,22 +33,22 @@ import "element-plus/es/components/divider/style/css";
33
33
  import "element-plus/es/components/container/style/css";
34
34
  import "element-plus/es/components/aside/style/css";
35
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 Tl, setUploadHeaderHandle as Bl, VIcon as Ol } from "@okiss/vbtf";
36
+ import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as Il, setUploadHeaderHandle as Cl, VIcon as $l } from "@okiss/vbtf";
37
37
  import "normalize.css/normalize.css";
38
38
  import "@okiss/vbtf/style.css";
39
- import Al from "mitt";
39
+ import Tl 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 Pl } 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 Rl from "vue3-markdown-it";
51
- import { MD5 as Ll } from "crypto-js";
50
+ import Ol from "vue3-markdown-it";
51
+ import { MD5 as Al } 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 Ml = /* @__PURE__ */ q({
61
+ const Pl = /* @__PURE__ */ q({
62
62
  __name: "App",
63
63
  setup(e) {
64
64
  var t, l, o, n;
65
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(), Jt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), zt(`.iconfont {
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 {
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 && Rt("vsPath", (n = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : n.vsPath), (a, s) => {
74
+ }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ot("vsPath", (n = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : n.vsPath), (a, s) => {
75
75
  const r = w("router-view");
76
76
  return i(), f(r);
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 Dl = {
81
+ const Rl = {
82
82
  saveApi: "/save",
83
83
  afterSubmit: "",
84
84
  afterReset: "goback",
@@ -467,7 +467,7 @@ const Dl = {
467
467
  type: "success"
468
468
  }
469
469
  }
470
- ], jl = {
470
+ ], Ll = {
471
471
  exportAble: !0,
472
472
  filter: [
473
473
  {
@@ -564,7 +564,7 @@ const Dl = {
564
564
  }
565
565
  ],
566
566
  normalButton: [
567
- ...el.cloneDeep(qe),
567
+ ...Zt.cloneDeep(qe),
568
568
  {
569
569
  type: "jump",
570
570
  target: "/user/form",
@@ -576,7 +576,7 @@ const Dl = {
576
576
  ],
577
577
  selectedNotice: "当前共勾选: {selectedCount} 条",
578
578
  listApi: "/user/list"
579
- }, Nl = {
579
+ }, Ml = {
580
580
  code: 0,
581
581
  data: {
582
582
  "list|0-100": [
@@ -597,7 +597,7 @@ const Dl = {
597
597
  "page|1-5": 2
598
598
  }
599
599
  }
600
- }, Vl = {
600
+ }, Dl = {
601
601
  afterSubmit: "",
602
602
  afterReset: "goback",
603
603
  formItems: [
@@ -634,7 +634,7 @@ const Dl = {
634
634
  label: "span"
635
635
  }
636
636
  ]
637
- }, ql = {
637
+ }, jl = {
638
638
  afterSubmit: "",
639
639
  afterReset: "",
640
640
  formItems: [
@@ -673,7 +673,7 @@ const Dl = {
673
673
  label: "span"
674
674
  }
675
675
  ]
676
- }, Ul = { form: Dl, table: jl, listMock: Nl, layoutForm: Vl, layoutSection: ql }, Hl = [
676
+ }, Nl = { form: Rl, table: Ll, listMock: Ml, layoutForm: Dl, layoutSection: jl }, Vl = [
677
677
  {
678
678
  method: ee.POST,
679
679
  url: "/login",
@@ -717,15 +717,15 @@ const Dl = {
717
717
  {
718
718
  url: "/user/list",
719
719
  method: ee.GET,
720
- response: (e) => Ul.listMock
720
+ response: (e) => Nl.listMock
721
721
  }
722
- ], Fl = [
723
- ...Hl
724
- ], Gl = {
722
+ ], ql = [
723
+ ...Vl
724
+ ], Ul = {
725
725
  baseURL: "/api",
726
726
  withCredentials: !0,
727
727
  cacheEnable: !0
728
- }, pt = {
728
+ }, ct = {
729
729
  title: "oms",
730
730
  fixedHeader: !1,
731
731
  sidebarLogo: !0,
@@ -739,7 +739,7 @@ const Dl = {
739
739
  ElementPlus: {
740
740
  size: "default",
741
741
  zIndex: 3e3,
742
- locale: nt
742
+ locale: tt
743
743
  },
744
744
  nav: [],
745
745
  whiteRoutes: ["/login"],
@@ -753,29 +753,29 @@ const Dl = {
753
753
  formMutex: !0,
754
754
  captcha: !0
755
755
  }, fe = {
756
- axios: Gl,
757
- settings: pt,
756
+ axios: Ul,
757
+ settings: ct,
758
758
  plugins: [],
759
759
  mock: !1
760
760
  }, we = {};
761
- function dt(e) {
761
+ function ut(e) {
762
762
  e.forEach((t) => {
763
- const l = mt(t);
763
+ const l = pt(t);
764
764
  we[`${t.method}::${l}`] = t;
765
765
  });
766
766
  }
767
- dt(Fl);
768
- function mt(e) {
767
+ ut(ql);
768
+ function pt(e) {
769
769
  var o;
770
770
  let t = e.url, l = e.baseURL || ((o = fe.axios) == null ? void 0 : o.baseURL);
771
771
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
772
772
  }
773
- function Jl() {
773
+ function Hl() {
774
774
  Object.keys(we).forEach((e) => {
775
- const t = we[e], l = mt(t);
775
+ const t = we[e], l = pt(t);
776
776
  ye.mock(l, t.method, function(o) {
777
- const { url: n, type: a, body: s } = o, r = Kt(n), d = s ? JSON.parse(s) : {}, u = t.response({ query: r, data: d }), m = ye.mock(u);
778
- return Wt(n, { type: a, query: r, data: d, response: m }), ye.mock(m);
777
+ const { url: n, type: a, body: s } = o, r = Gt(n), d = s ? JSON.parse(s) : {}, u = t.response({ query: r, data: d }), m = ye.mock(u);
778
+ return Jt(n, { type: a, query: r, data: d, response: m }), ye.mock(m);
779
779
  });
780
780
  });
781
781
  }
@@ -783,14 +783,14 @@ const Le = "oms:token";
783
783
  function Me() {
784
784
  return N.get(Le) || "";
785
785
  }
786
- function zl(e) {
787
- const t = new Date((/* @__PURE__ */ new Date()).getTime() + (g.state.settings.tokenExpire || 864e5));
786
+ function Fl(e) {
787
+ const t = new Date((/* @__PURE__ */ new Date()).getTime() + (k.state.settings.tokenExpire || 864e5));
788
788
  return N.set(Le, e, { expires: t });
789
789
  }
790
- function ft() {
790
+ function dt() {
791
791
  return N.remove(Le);
792
792
  }
793
- const Kl = {
793
+ const Gl = {
794
794
  name: "",
795
795
  nickname: "",
796
796
  avatar: "",
@@ -804,15 +804,15 @@ const Kl = {
804
804
  path: "",
805
805
  env: "",
806
806
  expired: !1
807
- }, Wl = {
807
+ }, Jl = {
808
808
  namespaced: !0,
809
- state: Kl,
809
+ state: Gl,
810
810
  mutations: {
811
811
  updateToken(e, t) {
812
- e.token = t, zl(t);
812
+ e.token = t, Fl(t);
813
813
  },
814
814
  removeToken(e) {
815
- e.token = "", ft();
815
+ e.token = "", dt();
816
816
  },
817
817
  updateRemoteRouter(e, t) {
818
818
  e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
@@ -872,11 +872,11 @@ const Kl = {
872
872
  url: "/user/info",
873
873
  method: "GET"
874
874
  }).then((n) => {
875
- var r, d, u, m, y, k;
875
+ var r, d, u, m, y, _;
876
876
  const a = ((r = n.data) == null ? void 0 : r.role_ids) || [];
877
877
  e("updateState", { key: "name", value: (d = n.data) == null ? void 0 : d.name }), e("updateState", { key: "nickname", value: (u = n.data) == null ? void 0 : u.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (m = n.data) == null ? void 0 : m.env });
878
878
  const s = ((y = n.data) == null ? void 0 : y.website) || {};
879
- e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (k = n.data) == null ? void 0 : k.name), l(!0);
879
+ e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (_ = n.data) == null ? void 0 : _.name), l(!0);
880
880
  }).catch((n) => {
881
881
  o(n);
882
882
  }) : o("http client not init");
@@ -903,9 +903,9 @@ const Kl = {
903
903
  e("SET_EXPIRED");
904
904
  }
905
905
  }
906
- }, Xl = v(pt), Zl = {
906
+ }, zl = g(ct), Kl = {
907
907
  namespaced: !0,
908
- state: Xl,
908
+ state: zl,
909
909
  mutations: {
910
910
  updateSettings(e, t) {
911
911
  e = A(e, t);
@@ -916,7 +916,7 @@ const Kl = {
916
916
  e("updateSettings", l);
917
917
  }
918
918
  }
919
- }, Ql = {
919
+ }, Wl = {
920
920
  sidebar: {
921
921
  opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
922
922
  withoutAnimation: !1
@@ -926,9 +926,9 @@ const Kl = {
926
926
  currentRouteMeta: {},
927
927
  builderSchema: {},
928
928
  baseURL: ""
929
- }, Yl = {
929
+ }, Xl = {
930
930
  namespaced: !0,
931
- state: Ql,
931
+ state: Wl,
932
932
  mutations: {
933
933
  TOGGLE_SIDEBAR: (e) => {
934
934
  e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
@@ -975,12 +975,12 @@ const Kl = {
975
975
  e("SET_BASE_API", t);
976
976
  }
977
977
  }
978
- }, en = {
978
+ }, Zl = {
979
979
  currentCellItem: {}
980
980
  // form/sub-form 当前单元格编辑数据
981
- }, tn = {
981
+ }, Ql = {
982
982
  namespaced: !0,
983
- state: en,
983
+ state: Zl,
984
984
  mutations: {
985
985
  SET_CURRENT_CELLITEM: (e, t) => {
986
986
  e.currentCellItem = t;
@@ -991,7 +991,7 @@ const Kl = {
991
991
  e("SET_CURRENT_CELLITEM", t);
992
992
  }
993
993
  }
994
- }, g = ll({
994
+ }, k = Yt({
995
995
  state: void 0,
996
996
  getters: {
997
997
  http: (e) => e.http,
@@ -1018,12 +1018,12 @@ const Kl = {
1018
1018
  }
1019
1019
  },
1020
1020
  modules: {
1021
- user: Wl,
1022
- settings: Zl,
1023
- app: Yl,
1024
- builderSchema: tn
1021
+ user: Jl,
1022
+ settings: Kl,
1023
+ app: Xl,
1024
+ builderSchema: Ql
1025
1025
  }
1026
- }), ln = ol, Ue = at, nn = $e.CancelToken, ce = {
1026
+ }), Yl = tl, Ue = nt, en = Ce.CancelToken, ce = {
1027
1027
  taskList: {},
1028
1028
  cacheList: /* @__PURE__ */ new Map(),
1029
1029
  uniqueId(e) {
@@ -1059,33 +1059,33 @@ const Kl = {
1059
1059
  const t = this.uniqueId(e);
1060
1060
  return this.cacheList.delete(t);
1061
1061
  }
1062
- }, on = {
1062
+ }, tn = {
1063
1063
  onFulfilled: function(e) {
1064
- return e.cacheEnable === !1 || (ce.pending(e) && ce.delTask(e), e.cancelToken = new nn((t) => {
1064
+ return e.cacheEnable === !1 || (ce.pending(e) && ce.delTask(e), e.cancelToken = new en((t) => {
1065
1065
  ce.addTask(e, t);
1066
1066
  })), e;
1067
1067
  },
1068
1068
  onRejected(e) {
1069
1069
  return Promise.reject(e);
1070
1070
  }
1071
- }, an = {
1071
+ }, ln = {
1072
1072
  onFulfilled: function(e) {
1073
1073
  return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ce.addCache(e.config, e.data), e;
1074
1074
  },
1075
1075
  onRejected(e) {
1076
1076
  return Promise.reject(e);
1077
1077
  }
1078
- }, ht = {};
1079
- function xi(e, t) {
1080
- ht[e] = t;
1078
+ }, mt = {};
1079
+ function di(e, t) {
1080
+ mt[e] = t;
1081
1081
  }
1082
- function sn(e) {
1083
- return ht[e];
1082
+ function nn(e) {
1083
+ return mt[e];
1084
1084
  }
1085
- const rn = /* @__PURE__ */ q({
1085
+ const on = /* @__PURE__ */ q({
1086
1086
  name: "Dashboard",
1087
1087
  setup() {
1088
- const e = ot(), t = sn("dashboard");
1088
+ const e = lt(), t = nn("dashboard");
1089
1089
  if (t)
1090
1090
  return () => p("span", null, [p(t, null, null)]);
1091
1091
  const l = M(() => e.getters.name);
@@ -1095,12 +1095,12 @@ const rn = /* @__PURE__ */ q({
1095
1095
  class: "dashboard-text"
1096
1096
  }, [S("Hi "), l.value, S(" 😄")])]);
1097
1097
  }
1098
- }), $ = (e, t) => {
1098
+ }), C = (e, t) => {
1099
1099
  const l = e.__vccOpts || e;
1100
1100
  for (const [o, n] of t)
1101
1101
  l[o] = n;
1102
1102
  return l;
1103
- }, cn = /* @__PURE__ */ $(rn, [["__scopeId", "data-v-3122b6c7"]]), un = {
1103
+ }, an = /* @__PURE__ */ C(on, [["__scopeId", "data-v-3122b6c7"]]), sn = {
1104
1104
  data() {
1105
1105
  return {
1106
1106
  levelList: null
@@ -1132,7 +1132,7 @@ const rn = /* @__PURE__ */ q({
1132
1132
  },
1133
1133
  pathCompile(e) {
1134
1134
  const { params: t } = this.$route;
1135
- return Cl.compile(e)(t);
1135
+ return xl.compile(e)(t);
1136
1136
  },
1137
1137
  handleLink(e) {
1138
1138
  const { redirect: t, path: l } = e;
@@ -1143,27 +1143,27 @@ const rn = /* @__PURE__ */ q({
1143
1143
  this.$router.push(this.pathCompile(l));
1144
1144
  }
1145
1145
  }
1146
- }, pn = {
1146
+ }, rn = {
1147
1147
  key: 0,
1148
1148
  class: "no-redirect"
1149
- }, dn = ["onClick"];
1150
- function mn(e, t, l, o, n, a) {
1151
- const s = dl, r = ml;
1149
+ }, cn = ["onClick"];
1150
+ function un(e, t, l, o, n, a) {
1151
+ const s = cl, r = ul;
1152
1152
  return i(), f(r, {
1153
1153
  class: "app-breadcrumb",
1154
1154
  separator: "/"
1155
1155
  }, {
1156
1156
  default: c(() => [
1157
- p(Lt, { name: "breadcrumb" }, {
1157
+ p(At, { name: "breadcrumb" }, {
1158
1158
  default: c(() => [
1159
1159
  (i(!0), h(I, null, O(n.levelList, (d, u) => (i(), f(s, {
1160
1160
  key: d.path
1161
1161
  }, {
1162
1162
  default: c(() => [
1163
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || u === n.levelList.length - 1 ? (i(), h("span", pn, B(d.meta.title), 1)) : (i(), h("a", {
1163
+ d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || u === n.levelList.length - 1 ? (i(), h("span", rn, B(d.meta.title), 1)) : (i(), h("a", {
1164
1164
  key: 1,
1165
1165
  onClick: (m) => a.handleLink(d)
1166
- }, B(d.meta.title), 9, dn))
1166
+ }, B(d.meta.title), 9, cn))
1167
1167
  ]),
1168
1168
  _: 2
1169
1169
  }, 1024))), 128))
@@ -1174,7 +1174,7 @@ function mn(e, t, l, o, n, a) {
1174
1174
  _: 1
1175
1175
  });
1176
1176
  }
1177
- const fn = /* @__PURE__ */ $(un, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
1177
+ const pn = /* @__PURE__ */ C(sn, [["render", un], ["__scopeId", "data-v-fa74804e"]]), dn = {
1178
1178
  name: "Hamburger",
1179
1179
  props: {
1180
1180
  isActive: {
@@ -1189,7 +1189,7 @@ const fn = /* @__PURE__ */ $(un, [["render", mn], ["__scopeId", "data-v-fa74804e
1189
1189
  }
1190
1190
  }
1191
1191
  };
1192
- function bn(e, t, l, o, n, a) {
1192
+ function mn(e, t, l, o, n, a) {
1193
1193
  const s = w("v-icon");
1194
1194
  return i(), h("div", {
1195
1195
  style: { padding: "0 15px" },
@@ -1201,9 +1201,9 @@ function bn(e, t, l, o, n, a) {
1201
1201
  }, null, 8, ["class"])
1202
1202
  ]);
1203
1203
  }
1204
- const yn = /* @__PURE__ */ $(hn, [["render", bn]]), _n = {};
1205
- function vn(e, t) {
1206
- const l = ae, o = fl, n = hl, a = bl;
1204
+ const fn = /* @__PURE__ */ C(dn, [["render", mn]]), hn = {};
1205
+ function bn(e, t) {
1206
+ const l = ae, o = pl, n = dl, a = ml;
1207
1207
  return i(), f(a, { style: { width: "100%", height: "100%" } }, {
1208
1208
  default: c(() => [
1209
1209
  p(l, { class: "aside" }, {
@@ -1235,7 +1235,7 @@ function vn(e, t) {
1235
1235
  _: 3
1236
1236
  });
1237
1237
  }
1238
- const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
1238
+ const ft = /* @__PURE__ */ C(hn, [["render", bn], ["__scopeId", "data-v-7c3d697b"]]), yn = {
1239
1239
  type: "input",
1240
1240
  name: "文本框",
1241
1241
  default: {
@@ -1303,7 +1303,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1303
1303
  }
1304
1304
  }
1305
1305
  ]
1306
- }, kn = {
1306
+ }, _n = {
1307
1307
  type: "number",
1308
1308
  name: "数字",
1309
1309
  default: {
@@ -1345,7 +1345,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1345
1345
  }
1346
1346
  }
1347
1347
  ]
1348
- }, wn = {
1348
+ }, vn = {
1349
1349
  type: "number-range",
1350
1350
  name: "数字区间",
1351
1351
  default: {
@@ -1386,7 +1386,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1386
1386
  }
1387
1387
  }
1388
1388
  ]
1389
- }, Sn = {
1389
+ }, gn = {
1390
1390
  type: "select",
1391
1391
  name: "下拉框",
1392
1392
  default: {
@@ -1489,10 +1489,10 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1489
1489
  }
1490
1490
  ],
1491
1491
  trans(e) {
1492
- const t = v(e);
1492
+ const t = g(e);
1493
1493
  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;
1494
1494
  }
1495
- }, En = {
1495
+ }, kn = {
1496
1496
  type: "radio",
1497
1497
  name: "单选框",
1498
1498
  default: {
@@ -1538,7 +1538,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1538
1538
  label: "默认值"
1539
1539
  }
1540
1540
  ]
1541
- }, xn = {
1541
+ }, wn = {
1542
1542
  type: "switch",
1543
1543
  name: "开关",
1544
1544
  default: {
@@ -1594,7 +1594,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1594
1594
  }
1595
1595
  }
1596
1596
  ]
1597
- }, In = {
1597
+ }, Sn = {
1598
1598
  type: "code",
1599
1599
  name: "Code",
1600
1600
  default: {
@@ -1614,7 +1614,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1614
1614
  label: "字段key"
1615
1615
  }
1616
1616
  ]
1617
- }, $n = {
1617
+ }, En = {
1618
1618
  type: "json",
1619
1619
  name: "json",
1620
1620
  default: {
@@ -1634,7 +1634,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1634
1634
  label: "字段key"
1635
1635
  }
1636
1636
  ]
1637
- }, Cn = {
1637
+ }, xn = {
1638
1638
  type: "upload",
1639
1639
  name: "上传",
1640
1640
  default: {
@@ -1654,7 +1654,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1654
1654
  label: "字段key"
1655
1655
  }
1656
1656
  ]
1657
- }, Tn = {
1657
+ }, In = {
1658
1658
  type: "template",
1659
1659
  name: "自定义组件",
1660
1660
  default: {
@@ -1674,7 +1674,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1674
1674
  label: "字段key"
1675
1675
  }
1676
1676
  ]
1677
- }, Bn = {
1677
+ }, Cn = {
1678
1678
  type: "icon-select",
1679
1679
  name: "图标选择器",
1680
1680
  default: {
@@ -1694,7 +1694,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1694
1694
  label: "字段key"
1695
1695
  }
1696
1696
  ]
1697
- }, On = {
1697
+ }, $n = {
1698
1698
  type: "sub-form",
1699
1699
  name: "子表单",
1700
1700
  default: {
@@ -1762,7 +1762,7 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1762
1762
  }
1763
1763
  }
1764
1764
  ]
1765
- }, An = {
1765
+ }, Tn = {
1766
1766
  type: "checkbox",
1767
1767
  name: "复选框",
1768
1768
  default: {
@@ -1808,24 +1808,24 @@ const bt = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-7c3d697b
1808
1808
  }
1809
1809
  }
1810
1810
  ]
1811
- }, yt = {};
1811
+ }, ht = {};
1812
1812
  function P(e) {
1813
- yt[e.type] = e;
1813
+ ht[e.type] = e;
1814
1814
  }
1815
+ P(yn);
1815
1816
  P(gn);
1816
- P(Sn);
1817
- P(kn);
1817
+ P(_n);
1818
+ P(vn);
1818
1819
  P(wn);
1819
- P(xn);
1820
- P(On);
1821
- P(En);
1822
- P(An);
1823
- P(In);
1824
1820
  P($n);
1825
- P(Cn);
1826
- P(Bn);
1821
+ P(kn);
1827
1822
  P(Tn);
1828
- const Se = yt, Pn = {
1823
+ P(Sn);
1824
+ P(En);
1825
+ P(xn);
1826
+ P(Cn);
1827
+ P(In);
1828
+ const Se = ht, Bn = {
1829
1829
  options: {
1830
1830
  labelPosition: "top",
1831
1831
  submitButton: !1,
@@ -1931,7 +1931,7 @@ const Se = yt, Pn = {
1931
1931
  Object.keys(Se).forEach((e) => {
1932
1932
  De.push({ value: e, label: Se[e].name });
1933
1933
  });
1934
- const Rn = {
1934
+ const On = {
1935
1935
  options: {
1936
1936
  submitButton: !1,
1937
1937
  cancelButton: !1
@@ -1952,7 +1952,7 @@ const Rn = {
1952
1952
  type: "select",
1953
1953
  field: "type",
1954
1954
  label: "类型",
1955
- options: v(De)
1955
+ options: g(De)
1956
1956
  },
1957
1957
  {
1958
1958
  type: "input",
@@ -1963,8 +1963,8 @@ const Rn = {
1963
1963
  }
1964
1964
  }
1965
1965
  ]
1966
- }, Ln = {
1967
- components: { DevLayout: bt, VForm: z, VButton: Pe, JsonView: Re },
1966
+ }, An = {
1967
+ components: { DevLayout: ft, VForm: z, VButton: Pe, JsonView: Re },
1968
1968
  props: {
1969
1969
  schema: {
1970
1970
  type: Object,
@@ -1975,8 +1975,8 @@ const Rn = {
1975
1975
  data() {
1976
1976
  return {
1977
1977
  sqlOptions: {},
1978
- sqlSchema: Rn,
1979
- baseSchema: Pn,
1978
+ sqlSchema: On,
1979
+ baseSchema: Bn,
1980
1980
  activeTab: "base",
1981
1981
  builderSchema: Object.assign(
1982
1982
  {},
@@ -2001,7 +2001,7 @@ const Rn = {
2001
2001
  tableStruct: "",
2002
2002
  activeName: "1",
2003
2003
  currentCtrlType: "input",
2004
- types: v(De)
2004
+ types: g(De)
2005
2005
  };
2006
2006
  },
2007
2007
  computed: {
@@ -2016,7 +2016,7 @@ const Rn = {
2016
2016
  deep: !0,
2017
2017
  immediate: !0,
2018
2018
  handler(e) {
2019
- const t = v(e);
2019
+ const t = g(e);
2020
2020
  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++);
2021
2021
  }
2022
2022
  },
@@ -2041,12 +2041,12 @@ const Rn = {
2041
2041
  currentCtrlType: {
2042
2042
  handler(e) {
2043
2043
  const t = this.ctrlMap[e];
2044
- this.ctrlSchema = v({
2045
- options: v(_e),
2046
- formItems: v(t.builder)
2044
+ this.ctrlSchema = g({
2045
+ options: g(_e),
2046
+ formItems: g(t.builder)
2047
2047
  });
2048
2048
  const l = ne(this.builderSchema, this.activeIndex);
2049
- this.ctrlOptions = v(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2049
+ this.ctrlOptions = g(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2050
2050
  }
2051
2051
  }
2052
2052
  },
@@ -2066,25 +2066,25 @@ const Rn = {
2066
2066
  const t = "formItems";
2067
2067
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
2068
2068
  const l = this.ctrlMap[e];
2069
- this.activeCtrl = l, this.builderSchema[t].push(v(l.default)), this.ctrlSchema = v({
2070
- options: v(_e),
2071
- formItems: v(l.builder)
2069
+ this.activeCtrl = l, this.builderSchema[t].push(g(l.default)), this.ctrlSchema = g({
2070
+ options: g(_e),
2071
+ formItems: g(l.builder)
2072
2072
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2073
2073
  },
2074
2074
  removeOne() {
2075
- lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2075
+ et(this.builderSchema, this.activeIndex), this.builderSchema = g(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2076
2076
  },
2077
2077
  clicklabel() {
2078
2078
  const e = this.activeIndex;
2079
2079
  if (e.match(this.activeIndexReg)) {
2080
- const l = v(ne(this.builderSchema, e)), o = l.type, n = this.ctrlMap[o];
2080
+ const l = g(ne(this.builderSchema, e)), o = l.type, n = this.ctrlMap[o];
2081
2081
  if (!n) {
2082
2082
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
2083
2083
  return;
2084
2084
  }
2085
- this.currentCtrlType = o, this.ctrlOptions = l, this.ctrlSchema = v({
2086
- options: v(_e),
2087
- formItems: v(n.builder)
2085
+ this.currentCtrlType = o, this.ctrlOptions = l, this.ctrlSchema = g({
2086
+ options: g(_e),
2087
+ formItems: g(n.builder)
2088
2088
  }), this.ctrlKey++;
2089
2089
  }
2090
2090
  },
@@ -2099,8 +2099,8 @@ const Rn = {
2099
2099
  }
2100
2100
  }
2101
2101
  };
2102
- function Mn(e, t, l, o, n, a) {
2103
- const s = w("v-form"), r = it, d = pe, u = w("JsonView"), m = w("VButton"), y = Te, k = Be, _ = rt, J = ct, U = w("dev-layout");
2102
+ function Pn(e, t, l, o, n, a) {
2103
+ const s = w("v-form"), r = at, d = pe, u = w("JsonView"), m = w("VButton"), y = Te, _ = Be, v = st, J = it, U = w("dev-layout");
2104
2104
  return i(), f(U, null, {
2105
2105
  main: c(() => [
2106
2106
  n.builderSchema.formItems ? (i(), f(s, F({
@@ -2113,12 +2113,12 @@ function Mn(e, t, l, o, n, a) {
2113
2113
  type: "primary",
2114
2114
  onClick: a.saveSchema
2115
2115
  }, {
2116
- default: c(() => [
2116
+ default: c(() => t[2] || (t[2] = [
2117
2117
  S("保存页面配置")
2118
- ]),
2118
+ ])),
2119
2119
  _: 1
2120
2120
  }, 8, ["onClick"]),
2121
- S("    "),
2121
+ t[3] || (t[3] = S("    ")),
2122
2122
  p(m, {
2123
2123
  text: "PageSchema",
2124
2124
  type: "modal"
@@ -2132,9 +2132,9 @@ function Mn(e, t, l, o, n, a) {
2132
2132
  "right-aside": c(() => [
2133
2133
  n.activeIndex ? (i(), f(J, { key: 0 }, {
2134
2134
  default: c(() => [
2135
- p(_, { label: "控件类型" }, {
2135
+ p(v, { label: "控件类型" }, {
2136
2136
  default: c(() => [
2137
- p(k, {
2137
+ p(_, {
2138
2138
  modelValue: n.currentCtrlType,
2139
2139
  "onUpdate:modelValue": t[0] || (t[0] = (T) => n.currentCtrlType = T)
2140
2140
  }, {
@@ -2162,7 +2162,7 @@ function Mn(e, t, l, o, n, a) {
2162
2162
  _: 1
2163
2163
  });
2164
2164
  }
2165
- const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171"]]), jn = {
2165
+ const Rn = /* @__PURE__ */ C(An, [["render", Pn], ["__scopeId", "data-v-875f0171"]]), Ln = {
2166
2166
  type: "input",
2167
2167
  name: "文本框",
2168
2168
  default: {
@@ -2210,7 +2210,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2210
2210
  }
2211
2211
  }
2212
2212
  ]
2213
- }, Nn = {
2213
+ }, Mn = {
2214
2214
  type: "select",
2215
2215
  name: "下拉框",
2216
2216
  default: {
@@ -2308,10 +2308,10 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2308
2308
  }
2309
2309
  ],
2310
2310
  trans(e) {
2311
- const t = v(e);
2311
+ const t = g(e);
2312
2312
  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;
2313
2313
  }
2314
- }, Vn = {
2314
+ }, Dn = {
2315
2315
  type: "date",
2316
2316
  name: "日期",
2317
2317
  default: {
@@ -2360,7 +2360,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2360
2360
  labelPosition: "top",
2361
2361
  submitButton: !1,
2362
2362
  cancelButton: !1
2363
- }, qn = {
2363
+ }, jn = {
2364
2364
  type: "span",
2365
2365
  name: "文本",
2366
2366
  default: {
@@ -2390,7 +2390,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2390
2390
  label: "排序"
2391
2391
  }
2392
2392
  ]
2393
- }, Un = {
2393
+ }, Nn = {
2394
2394
  type: "enum",
2395
2395
  name: "标签",
2396
2396
  default: {
@@ -2441,7 +2441,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2441
2441
  trans(e) {
2442
2442
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
2443
2443
  }
2444
- }, Hn = {
2444
+ }, Vn = {
2445
2445
  type: "html",
2446
2446
  name: "HTML",
2447
2447
  default: {
@@ -2466,7 +2466,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2466
2466
  label: "提示"
2467
2467
  }
2468
2468
  ]
2469
- }, Fn = {
2469
+ }, qn = {
2470
2470
  type: "icon",
2471
2471
  name: "图标",
2472
2472
  default: {
@@ -2491,7 +2491,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2491
2491
  label: "提示"
2492
2492
  }
2493
2493
  ]
2494
- }, Gn = {
2494
+ }, Un = {
2495
2495
  type: "image",
2496
2496
  name: "图片",
2497
2497
  default: {
@@ -2516,7 +2516,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2516
2516
  label: "提示"
2517
2517
  }
2518
2518
  ]
2519
- }, Jn = {
2519
+ }, Hn = {
2520
2520
  type: "json",
2521
2521
  name: "JSON",
2522
2522
  default: {
@@ -2541,7 +2541,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2541
2541
  label: "提示"
2542
2542
  }
2543
2543
  ]
2544
- }, zn = {
2544
+ }, Fn = {
2545
2545
  type: "link",
2546
2546
  name: "链接",
2547
2547
  default: {
@@ -2566,7 +2566,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2566
2566
  label: "提示"
2567
2567
  }
2568
2568
  ]
2569
- }, Kn = {
2569
+ }, Gn = {
2570
2570
  type: "rich",
2571
2571
  name: "富文本",
2572
2572
  default: {
@@ -2591,7 +2591,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2591
2591
  label: "提示"
2592
2592
  }
2593
2593
  ]
2594
- }, Wn = {
2594
+ }, Jn = {
2595
2595
  type: "tpl",
2596
2596
  name: "模板",
2597
2597
  default: {
@@ -2622,17 +2622,17 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2622
2622
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2623
2623
  }
2624
2624
  ]
2625
- }, Xn = {
2626
- span: qn,
2627
- enum: Un,
2628
- html: Hn,
2629
- icon: Fn,
2630
- image: Gn,
2631
- json: Jn,
2632
- link: zn,
2633
- rich: Kn,
2634
- tpl: Wn
2635
- }, Zn = {
2625
+ }, zn = {
2626
+ span: jn,
2627
+ enum: Nn,
2628
+ html: Vn,
2629
+ icon: qn,
2630
+ image: Un,
2631
+ json: Hn,
2632
+ link: Fn,
2633
+ rich: Gn,
2634
+ tpl: Jn
2635
+ }, Kn = {
2636
2636
  type: "jump",
2637
2637
  name: "跳转",
2638
2638
  default: {
@@ -2679,7 +2679,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2679
2679
  }
2680
2680
  }
2681
2681
  ]
2682
- }, Qn = {
2682
+ }, Wn = {
2683
2683
  type: "api",
2684
2684
  name: "接口请求",
2685
2685
  default: {
@@ -2748,7 +2748,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2748
2748
  }
2749
2749
  }
2750
2750
  ]
2751
- }, Yn = {
2751
+ }, Xn = {
2752
2752
  type: "form",
2753
2753
  name: "弹框表单",
2754
2754
  default: {
@@ -2802,7 +2802,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2802
2802
  label: "保存接口"
2803
2803
  }
2804
2804
  ]
2805
- }, eo = {
2805
+ }, Zn = {
2806
2806
  type: "table",
2807
2807
  name: "弹框列表",
2808
2808
  default: {
@@ -2856,13 +2856,13 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2856
2856
  label: "保存接口"
2857
2857
  }
2858
2858
  ]
2859
- }, to = {
2860
- jump: Zn,
2861
- api: Qn,
2862
- form: Yn,
2863
- table: eo
2864
- }, lo = {
2865
- components: { JsonView: Re, DevLayout: bt, VTable: oe, VForm: z, VButton: Pe },
2859
+ }, Qn = {
2860
+ jump: Kn,
2861
+ api: Wn,
2862
+ form: Xn,
2863
+ table: Zn
2864
+ }, Yn = {
2865
+ components: { JsonView: Re, DevLayout: ft, VTable: oe, VForm: z, VButton: Pe },
2866
2866
  props: {
2867
2867
  schema: {
2868
2868
  type: Object,
@@ -2871,7 +2871,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2871
2871
  }
2872
2872
  },
2873
2873
  data() {
2874
- const e = Mt(this.$props.schema);
2874
+ const e = Pt(this.$props.schema);
2875
2875
  return delete e.listApi, e.list = [{}], {
2876
2876
  baseSchema: He,
2877
2877
  activeTab: "base",
@@ -2890,9 +2890,9 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2890
2890
  ctrlName: "",
2891
2891
  activeIndex: void 0,
2892
2892
  ctrlMap: {
2893
- filter: { input: jn, select: Nn, date: Vn },
2894
- headers: Xn,
2895
- buttons: to
2893
+ filter: { input: Ln, select: Mn, date: Dn },
2894
+ headers: zn,
2895
+ buttons: Qn
2896
2896
  },
2897
2897
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2898
2898
  currentCtrlType: "input"
@@ -2953,13 +2953,13 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2953
2953
  currentCtrlType: {
2954
2954
  handler(e) {
2955
2955
  const t = this.ctrlMap[this.activeBrick][e];
2956
- this.ctrlSchema = v({
2957
- options: v(ve),
2958
- formItems: v(t.builder)
2956
+ this.ctrlSchema = g({
2957
+ options: g(ve),
2958
+ formItems: g(t.builder)
2959
2959
  });
2960
2960
  const l = ne(this.builderSchema, this.activeIndex);
2961
2961
  l.type = e;
2962
- const o = v(l);
2962
+ const o = g(l);
2963
2963
  this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
2964
2964
  }
2965
2965
  }
@@ -3000,18 +3000,18 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
3000
3000
  this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
3001
3001
  return;
3002
3002
  }
3003
- this.activeCtrl = n[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(v(n[e].default)), this.ctrlSchema = v({
3004
- options: v(ve),
3005
- formItems: v(n[e].builder)
3003
+ this.activeCtrl = n[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(g(n[e].default)), this.ctrlSchema = g({
3004
+ options: g(ve),
3005
+ formItems: g(n[e].builder)
3006
3006
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
3007
3007
  },
3008
3008
  removeOne() {
3009
- lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3009
+ et(this.builderSchema, this.activeIndex), this.builderSchema = g(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3010
3010
  },
3011
3011
  clicklabel() {
3012
3012
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
3013
3013
  if (t) {
3014
- const l = v(ne(this.builderSchema, e));
3014
+ const l = g(ne(this.builderSchema, e));
3015
3015
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
3016
3016
  let o = this.builderSchema[t[1]][parseInt(t[2])].type;
3017
3017
  t[1] === "headers" && o === void 0 && (o = "span");
@@ -3020,9 +3020,9 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
3020
3020
  this.activeBrick, this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
3021
3021
  return;
3022
3022
  }
3023
- this.ctrlOptions = l, this.currentCtrlType = o, this.ctrlSchema = v({
3024
- options: v(ve),
3025
- formItems: v(n.builder)
3023
+ this.ctrlOptions = l, this.currentCtrlType = o, this.ctrlSchema = g({
3024
+ options: g(ve),
3025
+ formItems: g(n.builder)
3026
3026
  }), this.ctrlKey++;
3027
3027
  }
3028
3028
  },
@@ -3044,9 +3044,9 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
3044
3044
  }
3045
3045
  }
3046
3046
  };
3047
- function no(e, t, l, o, n, a) {
3048
- const s = me, r = pe, d = ae, u = w("v-table"), m = it, y = pe, k = w("JsonView"), _ = w("VButton"), J = Te, U = Be, T = rt, X = ct, Bt = w("v-form"), Ot = w("dev-layout");
3049
- return i(), f(Ot, null, {
3047
+ function eo(e, t, l, o, n, a) {
3048
+ const s = me, r = pe, d = ae, u = w("v-table"), m = at, y = pe, _ = w("JsonView"), v = w("VButton"), J = Te, U = Be, T = st, X = it, Ct = w("v-form"), $t = w("dev-layout");
3049
+ return i(), f($t, null, {
3050
3050
  "left-aside": c(() => [
3051
3051
  p(d, { style: { width: "200px" } }, {
3052
3052
  default: c(() => [
@@ -3056,20 +3056,20 @@ function no(e, t, l, o, n, a) {
3056
3056
  class: "title",
3057
3057
  "data-id": 22222
3058
3058
  }, {
3059
- default: c(() => [
3059
+ default: c(() => t[5] || (t[5] = [
3060
3060
  S("添加搜索条件")
3061
- ]),
3061
+ ])),
3062
3062
  _: 1
3063
3063
  }),
3064
3064
  p(s, { class: "ctrl" }, {
3065
3065
  default: c(() => [
3066
3066
  p(r, {
3067
3067
  class: "ctrl-btn",
3068
- onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
3068
+ onClick: t[0] || (t[0] = ($) => a.pushFilter("input"))
3069
3069
  }, {
3070
- default: c(() => [
3070
+ default: c(() => t[6] || (t[6] = [
3071
3071
  S("文本框")
3072
- ]),
3072
+ ])),
3073
3073
  _: 1
3074
3074
  })
3075
3075
  ]),
@@ -3079,11 +3079,11 @@ function no(e, t, l, o, n, a) {
3079
3079
  default: c(() => [
3080
3080
  p(r, {
3081
3081
  class: "ctrl-btn",
3082
- onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
3082
+ onClick: t[1] || (t[1] = ($) => a.pushFilter("select"))
3083
3083
  }, {
3084
- default: c(() => [
3084
+ default: c(() => t[7] || (t[7] = [
3085
3085
  S("下拉框")
3086
- ]),
3086
+ ])),
3087
3087
  _: 1
3088
3088
  })
3089
3089
  ]),
@@ -3093,11 +3093,11 @@ function no(e, t, l, o, n, a) {
3093
3093
  default: c(() => [
3094
3094
  p(r, {
3095
3095
  class: "ctrl-btn",
3096
- onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
3096
+ onClick: t[2] || (t[2] = ($) => a.pushFilter("date"))
3097
3097
  }, {
3098
- default: c(() => [
3098
+ default: c(() => t[8] || (t[8] = [
3099
3099
  S("日期")
3100
- ]),
3100
+ ])),
3101
3101
  _: 1
3102
3102
  })
3103
3103
  ]),
@@ -3109,22 +3109,22 @@ function no(e, t, l, o, n, a) {
3109
3109
  p(d, null, {
3110
3110
  default: c(() => [
3111
3111
  p(s, { class: "title" }, {
3112
- default: c(() => [
3112
+ default: c(() => t[9] || (t[9] = [
3113
3113
  S("添加列表项")
3114
- ]),
3114
+ ])),
3115
3115
  _: 1
3116
3116
  }),
3117
- (i(!0), h(I, null, O(Object.keys(n.ctrlMap.headers), (C, V) => (i(), f(s, {
3117
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.headers), ($, V) => (i(), f(s, {
3118
3118
  key: `column-${V}`,
3119
3119
  class: "ctrl"
3120
3120
  }, {
3121
3121
  default: c(() => [
3122
3122
  p(r, {
3123
3123
  class: "ctrl-btn",
3124
- onClick: (he) => a.pushHeaders(n.ctrlMap.headers[C].type)
3124
+ onClick: (he) => a.pushHeaders(n.ctrlMap.headers[$].type)
3125
3125
  }, {
3126
3126
  default: c(() => [
3127
- S(B(n.ctrlMap.headers[C].name), 1)
3127
+ S(B(n.ctrlMap.headers[$].name), 1)
3128
3128
  ]),
3129
3129
  _: 2
3130
3130
  }, 1032, ["onClick"])
@@ -3137,22 +3137,22 @@ function no(e, t, l, o, n, a) {
3137
3137
  p(d, null, {
3138
3138
  default: c(() => [
3139
3139
  p(s, { class: "title" }, {
3140
- default: c(() => [
3140
+ default: c(() => t[10] || (t[10] = [
3141
3141
  S("添加行按钮")
3142
- ]),
3142
+ ])),
3143
3143
  _: 1
3144
3144
  }),
3145
- (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3145
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), ($, V) => (i(), f(s, {
3146
3146
  key: `column-${V}`,
3147
3147
  class: "ctrl"
3148
3148
  }, {
3149
3149
  default: c(() => [
3150
3150
  p(r, {
3151
3151
  class: "ctrl-btn",
3152
- onClick: (he) => a.pushRowButton(n.ctrlMap.buttons[C].type)
3152
+ onClick: (he) => a.pushRowButton(n.ctrlMap.buttons[$].type)
3153
3153
  }, {
3154
3154
  default: c(() => [
3155
- S(B(n.ctrlMap.buttons[C].name), 1)
3155
+ S(B(n.ctrlMap.buttons[$].name), 1)
3156
3156
  ]),
3157
3157
  _: 2
3158
3158
  }, 1032, ["onClick"])
@@ -3165,22 +3165,22 @@ function no(e, t, l, o, n, a) {
3165
3165
  p(d, null, {
3166
3166
  default: c(() => [
3167
3167
  p(s, { class: "title" }, {
3168
- default: c(() => [
3168
+ default: c(() => t[11] || (t[11] = [
3169
3169
  S("添加常规按钮")
3170
- ]),
3170
+ ])),
3171
3171
  _: 1
3172
3172
  }),
3173
- (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3173
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), ($, V) => (i(), f(s, {
3174
3174
  key: `column-${V}`,
3175
3175
  class: "ctrl"
3176
3176
  }, {
3177
3177
  default: c(() => [
3178
3178
  p(r, {
3179
3179
  class: "ctrl-btn",
3180
- onClick: (he) => a.pushNormalButton(n.ctrlMap.buttons[C].type)
3180
+ onClick: (he) => a.pushNormalButton(n.ctrlMap.buttons[$].type)
3181
3181
  }, {
3182
3182
  default: c(() => [
3183
- S(B(n.ctrlMap.buttons[C].name), 1)
3183
+ S(B(n.ctrlMap.buttons[$].name), 1)
3184
3184
  ]),
3185
3185
  _: 2
3186
3186
  }, 1032, ["onClick"])
@@ -3190,9 +3190,9 @@ function no(e, t, l, o, n, a) {
3190
3190
  p(s, { class: "ctrl" }, {
3191
3191
  default: c(() => [
3192
3192
  p(r, { class: "ctrl-btn" }, {
3193
- default: c(() => [
3193
+ default: c(() => t[12] || (t[12] = [
3194
3194
  S("按钮组")
3195
- ]),
3195
+ ])),
3196
3196
  _: 1
3197
3197
  })
3198
3198
  ]),
@@ -3204,22 +3204,22 @@ function no(e, t, l, o, n, a) {
3204
3204
  p(d, null, {
3205
3205
  default: c(() => [
3206
3206
  p(s, { class: "title" }, {
3207
- default: c(() => [
3207
+ default: c(() => t[13] || (t[13] = [
3208
3208
  S("添加批量按钮")
3209
- ]),
3209
+ ])),
3210
3210
  _: 1
3211
3211
  }),
3212
- (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3212
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), ($, V) => (i(), f(s, {
3213
3213
  key: `column-${V}`,
3214
3214
  class: "ctrl"
3215
3215
  }, {
3216
3216
  default: c(() => [
3217
3217
  p(r, {
3218
3218
  class: "ctrl-btn",
3219
- onClick: (he) => a.pushBatchButton(n.ctrlMap.buttons[C].type)
3219
+ onClick: (he) => a.pushBatchButton(n.ctrlMap.buttons[$].type)
3220
3220
  }, {
3221
3221
  default: c(() => [
3222
- S(B(n.ctrlMap.buttons[C].name), 1)
3222
+ S(B(n.ctrlMap.buttons[$].name), 1)
3223
3223
  ]),
3224
3224
  _: 2
3225
3225
  }, 1032, ["onClick"])
@@ -3229,9 +3229,9 @@ function no(e, t, l, o, n, a) {
3229
3229
  p(s, { class: "ctrl" }, {
3230
3230
  default: c(() => [
3231
3231
  p(r, { class: "ctrl-btn" }, {
3232
- default: c(() => [
3232
+ default: c(() => t[14] || (t[14] = [
3233
3233
  S("按钮组")
3234
- ]),
3234
+ ])),
3235
3235
  _: 1
3236
3236
  })
3237
3237
  ]),
@@ -3255,18 +3255,18 @@ function no(e, t, l, o, n, a) {
3255
3255
  type: "primary",
3256
3256
  onClick: a.saveSchema
3257
3257
  }, {
3258
- default: c(() => [
3258
+ default: c(() => t[15] || (t[15] = [
3259
3259
  S("保存页面配置")
3260
- ]),
3260
+ ])),
3261
3261
  _: 1
3262
3262
  }, 8, ["onClick"]),
3263
- S("    "),
3264
- p(_, {
3263
+ t[16] || (t[16] = S("    ")),
3264
+ p(v, {
3265
3265
  text: "PageSchema",
3266
3266
  type: "modal"
3267
3267
  }, {
3268
3268
  default: c(() => [
3269
- p(k, { data: a.getSaveSchema }, null, 8, ["data"])
3269
+ p(_, { data: a.getSaveSchema }, null, 8, ["data"])
3270
3270
  ]),
3271
3271
  _: 1
3272
3272
  })
@@ -3278,13 +3278,13 @@ function no(e, t, l, o, n, a) {
3278
3278
  default: c(() => [
3279
3279
  p(U, {
3280
3280
  modelValue: n.currentCtrlType,
3281
- "onUpdate:modelValue": t[3] || (t[3] = (C) => n.currentCtrlType = C)
3281
+ "onUpdate:modelValue": t[3] || (t[3] = ($) => n.currentCtrlType = $)
3282
3282
  }, {
3283
3283
  default: c(() => [
3284
- (i(!0), h(I, null, O(a.types, (C, V) => (i(), f(J, {
3284
+ (i(!0), h(I, null, O(a.types, ($, V) => (i(), f(J, {
3285
3285
  key: V,
3286
- label: C.label,
3287
- value: C.value
3286
+ label: $.label,
3287
+ value: $.value
3288
3288
  }, null, 8, ["label", "value"]))), 128))
3289
3289
  ]),
3290
3290
  _: 1
@@ -3295,25 +3295,25 @@ function no(e, t, l, o, n, a) {
3295
3295
  ]),
3296
3296
  _: 1
3297
3297
  })) : x("", !0),
3298
- (i(), f(Bt, F({
3298
+ (i(), f(Ct, F({
3299
3299
  key: n.ctrlKey,
3300
3300
  modelValue: n.ctrlOptions,
3301
- "onUpdate:modelValue": t[4] || (t[4] = (C) => n.ctrlOptions = C)
3301
+ "onUpdate:modelValue": t[4] || (t[4] = ($) => n.ctrlOptions = $)
3302
3302
  }, n.ctrlSchema), null, 16, ["modelValue"]))
3303
3303
  ]),
3304
3304
  _: 1
3305
3305
  });
3306
3306
  }
3307
- const oo = /* @__PURE__ */ $(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), ao = {
3307
+ const to = /* @__PURE__ */ C(Yn, [["render", eo], ["__scopeId", "data-v-e5209cb7"]]), lo = {
3308
3308
  name: "PageEditor",
3309
- components: { FormBuilder: Dn, TableBuilder: oo },
3309
+ components: { FormBuilder: Rn, TableBuilder: to },
3310
3310
  setup() {
3311
- const e = D(!1), t = D(1), l = "rtl", o = de(), n = M(() => g.state.app.pages[o.path]);
3311
+ const e = D(!1), t = D(1), l = "rtl", o = de(), n = M(() => k.state.app.pages[o.path]);
3312
3312
  return { show: e, key: t, direction: l, pageSchema: n };
3313
3313
  }
3314
3314
  };
3315
- function so(e, t, l, o, n, a) {
3316
- const s = w("VIcon"), r = w("form-builder"), d = w("table-builder"), u = ut;
3315
+ function no(e, t, l, o, n, a) {
3316
+ const s = w("VIcon"), r = w("form-builder"), d = w("table-builder"), u = rt;
3317
3317
  return i(), h(I, null, [
3318
3318
  p(s, {
3319
3319
  name: "ra-set",
@@ -3343,12 +3343,12 @@ function so(e, t, l, o, n, a) {
3343
3343
  }, 8, ["modelValue", "direction"])
3344
3344
  ], 64);
3345
3345
  }
3346
- const io = /* @__PURE__ */ $(ao, [["render", so]]), ro = {
3346
+ const oo = /* @__PURE__ */ C(lo, [["render", no]]), ao = {
3347
3347
  components: {
3348
- Breadcrumb: fn,
3349
- Hamburger: yn,
3348
+ Breadcrumb: pn,
3349
+ Hamburger: fn,
3350
3350
  VButton: Pe,
3351
- PageEditor: io
3351
+ PageEditor: oo
3352
3352
  },
3353
3353
  data() {
3354
3354
  return {
@@ -3361,7 +3361,7 @@ const io = /* @__PURE__ */ $(ao, [["render", so]]), ro = {
3361
3361
  };
3362
3362
  },
3363
3363
  computed: {
3364
- ...Ce(["sidebar", "avatar", "name", "nickname", "nav"]),
3364
+ ...$e(["sidebar", "avatar", "name", "nickname", "nav"]),
3365
3365
  hasNewMessage() {
3366
3366
  return this.$store.state.settings.hasNewMessage;
3367
3367
  },
@@ -3379,7 +3379,7 @@ const io = /* @__PURE__ */ $(ao, [["render", so]]), ro = {
3379
3379
  }
3380
3380
  },
3381
3381
  mounted() {
3382
- Ye("el-submenu is-active");
3382
+ Ze("el-submenu is-active");
3383
3383
  const e = this.getSetting("navBarNotice");
3384
3384
  e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
3385
3385
  title: "提示",
@@ -3387,7 +3387,7 @@ const io = /* @__PURE__ */ $(ao, [["render", so]]), ro = {
3387
3387
  dangerouslyUseHTMLString: !0,
3388
3388
  duration: 0,
3389
3389
  onClose: this.closeNavBarNotice
3390
- }), this.setting.envColor[this.user.env] && Xt({
3390
+ }), this.setting.envColor[this.user.env] && zt({
3391
3391
  elRef: this.$refs.header.$el,
3392
3392
  waterMark: this.user.env,
3393
3393
  color: "skyblue",
@@ -3422,19 +3422,19 @@ const io = /* @__PURE__ */ $(ao, [["render", so]]), ro = {
3422
3422
  (t = (e = this.$route) == null ? void 0 : e.meta) != null && t.pageId && window.open(location.origin + location.pathname + "#/menu/" + ((o = (l = this.$route) == null ? void 0 : l.meta) == null ? void 0 : o.pageId));
3423
3423
  }
3424
3424
  }
3425
- }, co = { class: "right-content" }, uo = { class: "right-item" }, po = {
3425
+ }, so = { class: "right-content" }, io = { class: "right-item" }, ro = {
3426
3426
  key: 0,
3427
3427
  class: "right-item"
3428
- }, mo = {
3428
+ }, co = {
3429
3429
  class: "right-item-button",
3430
3430
  style: { padding: "0" }
3431
- }, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
3432
- function yo(e, t, l, o, n, a) {
3433
- const s = w("hamburger"), r = w("breadcrumb"), d = me, u = w("VIcon"), m = w("PageEditor"), y = w("v-button"), k = yl, _ = _l, J = vl, U = ut, T = ae;
3431
+ }, uo = { class: "user-info" }, po = ["src"], mo = { class: "user-name" };
3432
+ function fo(e, t, l, o, n, a) {
3433
+ const s = w("hamburger"), r = w("breadcrumb"), d = me, u = w("VIcon"), m = w("PageEditor"), y = w("v-button"), _ = fl, v = hl, J = bl, U = rt, T = ae;
3434
3434
  return i(), f(T, {
3435
3435
  ref: "header",
3436
3436
  class: "navbar",
3437
- style: Dt({ background: a.setting.envColor[a.user.env] })
3437
+ style: Rt({ background: a.setting.envColor[a.user.env] })
3438
3438
  }, {
3439
3439
  default: c(() => [
3440
3440
  p(d, { span: 16 }, {
@@ -3450,17 +3450,17 @@ function yo(e, t, l, o, n, a) {
3450
3450
  }),
3451
3451
  p(d, { span: 8 }, {
3452
3452
  default: c(() => [
3453
- b("div", co, [
3454
- b("div", uo, [
3453
+ b("div", so, [
3454
+ b("div", io, [
3455
3455
  p(u, {
3456
3456
  name: "ra-code",
3457
3457
  onClick: a.gotoMenuEdit
3458
3458
  }, null, 8, ["onClick"])
3459
3459
  ]),
3460
- a.showPageJsonSchemaIcon ? (i(), h("div", po, [
3460
+ a.showPageJsonSchemaIcon ? (i(), h("div", ro, [
3461
3461
  p(m)
3462
3462
  ])) : x("", !0),
3463
- b("div", mo, [
3463
+ b("div", co, [
3464
3464
  p(y, { buttons: e.nav }, null, 8, ["buttons"])
3465
3465
  ]),
3466
3466
  p(J, {
@@ -3468,25 +3468,25 @@ function yo(e, t, l, o, n, a) {
3468
3468
  trigger: "click"
3469
3469
  }, {
3470
3470
  dropdown: c(() => [
3471
- p(_, { class: "user-dropdown" }, {
3471
+ p(v, { class: "user-dropdown" }, {
3472
3472
  default: c(() => [
3473
- p(k, {
3473
+ p(_, {
3474
3474
  icon: "oms-icon-index",
3475
3475
  onClick: t[0] || (t[0] = (X) => e.$router.push("/"))
3476
3476
  }, {
3477
- default: c(() => [
3477
+ default: c(() => t[2] || (t[2] = [
3478
3478
  S("首页")
3479
- ]),
3479
+ ])),
3480
3480
  _: 1
3481
3481
  }),
3482
- p(k, {
3482
+ p(_, {
3483
3483
  divided: "",
3484
3484
  icon: "el-icon-switch-button",
3485
3485
  onClick: a.logout
3486
3486
  }, {
3487
- default: c(() => [
3487
+ default: c(() => t[3] || (t[3] = [
3488
3488
  S("退出登录")
3489
- ]),
3489
+ ])),
3490
3490
  _: 1
3491
3491
  }, 8, ["onClick"])
3492
3492
  ]),
@@ -3494,14 +3494,14 @@ function yo(e, t, l, o, n, a) {
3494
3494
  })
3495
3495
  ]),
3496
3496
  default: c(() => [
3497
- b("div", fo, [
3497
+ b("div", uo, [
3498
3498
  b("img", {
3499
3499
  src: e.avatar ? e.avatar : n.defaultAvatar,
3500
3500
  class: "user-avatar",
3501
3501
  alt: "头像"
3502
- }, null, 8, ho),
3503
- S(),
3504
- b("span", bo, B(e.nickname || e.name), 1)
3502
+ }, null, 8, po),
3503
+ t[1] || (t[1] = S()),
3504
+ b("span", mo, B(e.nickname || e.name), 1)
3505
3505
  ])
3506
3506
  ]),
3507
3507
  _: 1
@@ -3519,7 +3519,7 @@ function yo(e, t, l, o, n, a) {
3519
3519
  _: 1
3520
3520
  }, 8, ["style"]);
3521
3521
  }
3522
- const _o = /* @__PURE__ */ $(ro, [["render", yo], ["__scopeId", "data-v-99b3c688"]]), vo = {
3522
+ const ho = /* @__PURE__ */ C(ao, [["render", fo], ["__scopeId", "data-v-99b3c688"]]), bo = {
3523
3523
  name: "SidebarLogo",
3524
3524
  props: {
3525
3525
  collapse: {
@@ -3535,16 +3535,16 @@ const _o = /* @__PURE__ */ $(ro, [["render", yo], ["__scopeId", "data-v-99b3c688
3535
3535
  return this.$store.state.settings.logo;
3536
3536
  }
3537
3537
  }
3538
- }, go = (e) => (Ke("data-v-49084925"), e = e(), We(), e), ko = ["src"], wo = {
3538
+ }, yo = ["src"], _o = {
3539
3539
  key: 1,
3540
3540
  class: "sidebar-title"
3541
- }, So = /* @__PURE__ */ go(() => /* @__PURE__ */ b("div", null, "系统", -1)), Eo = ["src"], xo = { class: "sidebar-title" };
3542
- function Io(e, t, l, o, n, a) {
3541
+ }, vo = ["src"], go = { class: "sidebar-title" };
3542
+ function ko(e, t, l, o, n, a) {
3543
3543
  const s = w("router-link");
3544
3544
  return i(), h("div", {
3545
3545
  class: H(["sidebar-logo-container", { collapse: l.collapse }])
3546
3546
  }, [
3547
- p(jt, { name: "sidebarLogoFade" }, {
3547
+ p(Lt, { name: "sidebarLogoFade" }, {
3548
3548
  default: c(() => [
3549
3549
  l.collapse ? (i(), f(s, {
3550
3550
  key: "collapse",
@@ -3556,8 +3556,8 @@ function Io(e, t, l, o, n, a) {
3556
3556
  key: 0,
3557
3557
  src: a.logo,
3558
3558
  class: "sidebar-logo"
3559
- }, null, 8, ko)) : (i(), h("h1", wo, B(a.title), 1)),
3560
- So
3559
+ }, null, 8, yo)) : (i(), h("h1", _o, B(a.title), 1)),
3560
+ t[0] || (t[0] = b("div", null, "系统", -1))
3561
3561
  ]),
3562
3562
  _: 1
3563
3563
  })) : (i(), f(s, {
@@ -3570,8 +3570,8 @@ function Io(e, t, l, o, n, a) {
3570
3570
  key: 0,
3571
3571
  src: a.logo,
3572
3572
  class: "sidebar-logo"
3573
- }, null, 8, Eo)) : x("", !0),
3574
- b("h1", xo, B(a.title), 1)
3573
+ }, null, 8, vo)) : x("", !0),
3574
+ b("h1", go, B(a.title), 1)
3575
3575
  ]),
3576
3576
  _: 1
3577
3577
  }))
@@ -3580,7 +3580,7 @@ function Io(e, t, l, o, n, a) {
3580
3580
  })
3581
3581
  ], 2);
3582
3582
  }
3583
- const $o = /* @__PURE__ */ $(vo, [["render", Io], ["__scopeId", "data-v-49084925"]]), Co = {
3583
+ const wo = /* @__PURE__ */ C(bo, [["render", ko], ["__scopeId", "data-v-49084925"]]), So = {
3584
3584
  props: {
3585
3585
  to: {
3586
3586
  type: String,
@@ -3613,15 +3613,15 @@ const $o = /* @__PURE__ */ $(vo, [["render", Io], ["__scopeId", "data-v-49084925
3613
3613
  }
3614
3614
  }
3615
3615
  };
3616
- function To(e, t, l, o, n, a) {
3617
- return i(), f(Xe(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3616
+ function Eo(e, t, l, o, n, a) {
3617
+ return i(), f(Ke(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3618
3618
  default: c(() => [
3619
3619
  le(e.$slots, "default")
3620
3620
  ]),
3621
3621
  _: 3
3622
3622
  }, 16);
3623
3623
  }
3624
- const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
3624
+ const xo = /* @__PURE__ */ C(So, [["render", Eo]]), Io = {
3625
3625
  computed: {
3626
3626
  // @ts-ignore
3627
3627
  device() {
@@ -3642,7 +3642,7 @@ const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
3642
3642
  }
3643
3643
  }
3644
3644
  }
3645
- }, Ao = { class: "menu-content" }, Po = /* @__PURE__ */ q({
3645
+ }, Co = { class: "menu-content" }, $o = /* @__PURE__ */ q({
3646
3646
  __name: "MenuContent",
3647
3647
  props: {
3648
3648
  meta: {
@@ -3660,17 +3660,17 @@ const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
3660
3660
  p(o, {
3661
3661
  name: e.meta.icon || "ra-all"
3662
3662
  }, null, 8, ["name"]),
3663
- b("span", Ao, B(e.meta.title), 1)
3663
+ b("span", Co, B(e.meta.title), 1)
3664
3664
  ], 64);
3665
3665
  };
3666
3666
  }
3667
- }), Ro = {
3667
+ }), To = {
3668
3668
  name: "SidebarItem",
3669
3669
  components: {
3670
- AppLink: Bo,
3671
- MenuContent: Po
3670
+ AppLink: xo,
3671
+ MenuContent: $o
3672
3672
  },
3673
- mixins: [Oo],
3673
+ mixins: [Io],
3674
3674
  props: {
3675
3675
  // route object
3676
3676
  item: {
@@ -3698,13 +3698,13 @@ const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
3698
3698
  }
3699
3699
  }
3700
3700
  }
3701
- }, Lo = {
3701
+ }, Bo = {
3702
3702
  key: 0,
3703
3703
  class: "menu-wrapper"
3704
3704
  };
3705
- function Mo(e, t, l, o, n, a) {
3706
- const s = w("menu-content"), r = gl, d = w("app-link"), u = w("sidebar-item", !0), m = kl;
3707
- return l.item.hidden !== !1 ? (i(), h("div", Lo, [
3705
+ function Oo(e, t, l, o, n, a) {
3706
+ const s = w("menu-content"), r = yl, d = w("app-link"), u = w("sidebar-item", !0), m = _l;
3707
+ return l.item.hidden !== !1 ? (i(), h("div", Bo, [
3708
3708
  l.item.meta && l.item.meta.menuType === 2 ? (i(), h(I, { key: 0 }, [
3709
3709
  l.item.meta ? (i(), f(d, {
3710
3710
  key: 0,
@@ -3762,26 +3762,26 @@ function Mo(e, t, l, o, n, a) {
3762
3762
  }, 8, ["index", "class"])) : x("", !0)
3763
3763
  ])) : x("", !0);
3764
3764
  }
3765
- const Do = /* @__PURE__ */ $(Ro, [["render", Mo]]);
3766
- function _t(e) {
3765
+ const Ao = /* @__PURE__ */ C(To, [["render", Oo]]);
3766
+ function bt(e) {
3767
3767
  return e.filter((t) => {
3768
3768
  var l;
3769
- return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = _t(t.children), t.children.length === 0 && delete t.children), !0);
3769
+ 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);
3770
3770
  });
3771
3771
  }
3772
- const jo = {
3772
+ const Po = {
3773
3773
  data() {
3774
3774
  return {
3775
3775
  selected: ""
3776
3776
  };
3777
3777
  },
3778
3778
  computed: {
3779
- ...Ce(["remoteRouter"]),
3779
+ ...$e(["remoteRouter"]),
3780
3780
  filterRoutes() {
3781
3781
  let e = [];
3782
3782
  return this.remoteRouter.forEach((t) => {
3783
- e = e.concat(v(t.routes));
3784
- }), _t(e);
3783
+ e = e.concat(g(t.routes));
3784
+ }), bt(e);
3785
3785
  }
3786
3786
  },
3787
3787
  methods: {
@@ -3801,8 +3801,8 @@ const jo = {
3801
3801
  }
3802
3802
  }
3803
3803
  };
3804
- function No(e, t, l, o, n, a) {
3805
- const s = Te, r = wl, d = Be;
3804
+ function Ro(e, t, l, o, n, a) {
3805
+ const s = Te, r = vl, d = Be;
3806
3806
  return i(), f(d, {
3807
3807
  modelValue: n.selected,
3808
3808
  "onUpdate:modelValue": t[0] || (t[0] = (u) => n.selected = u),
@@ -3843,17 +3843,17 @@ function No(e, t, l, o, n, a) {
3843
3843
  _: 1
3844
3844
  }, 8, ["modelValue", "onChange"]);
3845
3845
  }
3846
- const Vo = /* @__PURE__ */ $(jo, [["render", No], ["__scopeId", "data-v-38301044"]]);
3846
+ const Lo = /* @__PURE__ */ C(Po, [["render", Ro], ["__scopeId", "data-v-8439744e"]]);
3847
3847
  var j = /* @__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))(j || {}), 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 || {});
3848
- const qo = q({
3849
- components: { SidebarItem: Do, Logo: $o, SearchMenu: Vo },
3848
+ const Mo = q({
3849
+ components: { SidebarItem: Ao, Logo: wo, SearchMenu: Lo },
3850
3850
  computed: {
3851
- ...Ce(["sidebar", "remoteRouter", "customRouter"]),
3851
+ ...$e(["sidebar", "remoteRouter", "customRouter"]),
3852
3852
  routes() {
3853
3853
  let e = [];
3854
3854
  return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
3855
3855
  t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
3856
- }), v([
3856
+ }), g([
3857
3857
  {
3858
3858
  label: "",
3859
3859
  routes: e
@@ -3889,15 +3889,15 @@ const qo = q({
3889
3889
  },
3890
3890
  methods: {
3891
3891
  showActive() {
3892
- Ye("is-active", 200);
3892
+ Ze("is-active", 200);
3893
3893
  },
3894
3894
  filterRoute(e) {
3895
3895
  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));
3896
3896
  }
3897
3897
  }
3898
3898
  });
3899
- function Uo(e, t, l, o, n, a) {
3900
- const s = w("logo"), r = w("search-menu"), d = w("sidebar-item"), u = Sl, m = El;
3899
+ function Do(e, t, l, o, n, a) {
3900
+ const s = w("logo"), r = w("search-menu"), d = w("sidebar-item"), u = gl, m = kl;
3901
3901
  return i(), h("div", {
3902
3902
  class: H({ "has-logo": e.showLogo })
3903
3903
  }, [
@@ -3919,13 +3919,13 @@ function Uo(e, t, l, o, n, a) {
3919
3919
  mode: "vertical"
3920
3920
  }, {
3921
3921
  default: c(() => [
3922
- (i(!0), h(I, null, O(e.routes, (y, k) => (i(), h(I, {
3923
- key: k + "-module"
3922
+ (i(!0), h(I, null, O(e.routes, (y, _) => (i(), h(I, {
3923
+ key: _ + "-module"
3924
3924
  }, [
3925
- (i(!0), h(I, null, O(e.filterRoute(y.routes), (_) => (i(), f(d, {
3926
- key: _.path,
3927
- item: _,
3928
- to: e.$router.resolve(_.redirect ? _.redirect : _).fullPath
3925
+ (i(!0), h(I, null, O(e.filterRoute(y.routes), (v) => (i(), f(d, {
3926
+ key: v.path,
3927
+ item: v,
3928
+ to: e.$router.resolve(v.redirect ? v.redirect : v).fullPath
3929
3929
  }, null, 8, ["item", "to"]))), 128))
3930
3930
  ], 64))), 128))
3931
3931
  ]),
@@ -3936,16 +3936,16 @@ function Uo(e, t, l, o, n, a) {
3936
3936
  })
3937
3937
  ], 2);
3938
3938
  }
3939
- const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828"]]), Fo = { class: "app-main" }, Go = {
3939
+ const jo = /* @__PURE__ */ C(Mo, [["render", Do], ["__scopeId", "data-v-d252f828"]]), No = { class: "app-main" }, Vo = {
3940
3940
  __name: "AppMain",
3941
3941
  setup(e) {
3942
3942
  const t = de(), l = [], o = D(0);
3943
- return rl(() => {
3943
+ return al(() => {
3944
3944
  var n;
3945
3945
  (n = t.meta) != null && n.keepAlive && l.indexOf(t.name) && l.push(t.name), o.value++;
3946
3946
  }), (n, a) => {
3947
- const s = w("router-view"), r = xl;
3948
- return i(), h("section", Fo, [
3947
+ const s = w("router-view"), r = wl;
3948
+ return i(), h("section", No, [
3949
3949
  (i(), f(s, {
3950
3950
  key: n.$route.fullPath + E(o)
3951
3951
  })),
@@ -3953,16 +3953,16 @@ const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828
3953
3953
  ]);
3954
3954
  };
3955
3955
  }
3956
- }, Jo = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-ca0f0d98"]]), zo = { class: "main-container" }, Ko = 992, Wo = {
3956
+ }, qo = /* @__PURE__ */ C(Vo, [["__scopeId", "data-v-ca0f0d98"]]), Uo = { class: "main-container" }, Ho = 992, Fo = {
3957
3957
  __name: "index",
3958
3958
  setup(e) {
3959
- const t = ot(), { body: l } = document, o = M(() => t.state.app.sidebar), n = M(() => t.state.app.device), a = M(() => t.state.settings.fixedHeader), s = M(() => ({
3959
+ const t = lt(), { body: l } = document, o = M(() => t.state.app.sidebar), n = M(() => t.state.app.device), a = M(() => t.state.settings.fixedHeader), s = M(() => ({
3960
3960
  hideSidebar: !o.value.opened,
3961
3961
  openSidebar: o.value.opened,
3962
3962
  withoutAnimation: o.value.withoutAnimation,
3963
3963
  mobile: n.value === "mobile"
3964
- })), r = () => l.getBoundingClientRect().width - 1 < Ko;
3965
- Pl(window, "resize", () => u());
3964
+ })), r = () => l.getBoundingClientRect().width - 1 < Ho;
3965
+ Bl(window, "resize", () => u());
3966
3966
  const d = () => {
3967
3967
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
3968
3968
  }, u = () => {
@@ -3979,45 +3979,45 @@ const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828
3979
3979
  class: "drawer-bg",
3980
3980
  onClick: d
3981
3981
  })) : x("", !0),
3982
- p(E(Ho), { class: "sidebar-container" }),
3983
- b("div", zo, [
3982
+ p(E(jo), { class: "sidebar-container" }),
3983
+ b("div", Uo, [
3984
3984
  b("div", {
3985
3985
  class: H({ "fixed-header": E(a) })
3986
3986
  }, [
3987
- p(E(_o))
3987
+ p(E(ho))
3988
3988
  ], 2),
3989
- p(E(Jo))
3989
+ p(E(qo))
3990
3990
  ])
3991
3991
  ], 2));
3992
3992
  }
3993
- }, vt = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-4e09424c"]]), Xo = { id: "login" }, Zo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Qo = { id: "form" }, Yo = {
3993
+ }, yt = /* @__PURE__ */ C(Fo, [["__scopeId", "data-v-4e09424c"]]), Go = { id: "login" }, Jo = { id: "form" }, zo = {
3994
3994
  key: 0,
3995
3995
  class: "captcha"
3996
- }, ea = ["src"], ta = { class: "tips" }, la = { class: "sso" }, na = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), oa = /* @__PURE__ */ q({
3996
+ }, Ko = ["src"], Wo = { class: "tips" }, Xo = { class: "sso" }, Zo = /* @__PURE__ */ q({
3997
3997
  __name: "login",
3998
3998
  setup(e) {
3999
- const t = st(), l = de(), o = M(() => g.state.settings.loginTips), n = M(() => g.state.settings.captcha), a = M(() => (g.state.app, g.state.app.baseURL)), s = D(0), r = () => s.value++, d = M(() => u.value.username.length > 0 && u.value.password.length >= 4 && (n.value ? u.value.captcha.length === 4 : !0)), u = D({
3999
+ const t = ot(), l = de(), o = M(() => k.state.settings.loginTips), n = M(() => k.state.settings.captcha), a = M(() => (k.state.app, k.state.app.baseURL)), s = D(0), r = () => s.value++, d = M(() => u.value.username.length > 0 && u.value.password.length >= 4 && (n.value ? u.value.captcha.length === 4 : !0)), u = D({
4000
4000
  username: "",
4001
4001
  password: "",
4002
4002
  captcha: "",
4003
4003
  sing: ""
4004
4004
  }), m = () => {
4005
4005
  if (u.value.username === "" || u.value.password === "" || n.value && u.value.captcha === "") {
4006
- Il.error("用户名, 密码, 验证码是必须的");
4006
+ Sl.error("用户名, 密码, 验证码是必须的");
4007
4007
  return;
4008
4008
  }
4009
- n.value && (u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString()), g.dispatch("user/login", u.value).then((y) => {
4010
- var k;
4011
- t.push({ path: ((k = l.query) == null ? void 0 : k.redirect) || "/" });
4009
+ n.value && (u.value.sing = Al(`${u.value.username}${u.value.password}${u.value.captcha}`).toString()), k.dispatch("user/login", u.value).then((y) => {
4010
+ var _;
4011
+ t.push({ path: ((_ = l.query) == null ? void 0 : _.redirect) || "/" });
4012
4012
  }).catch((y) => {
4013
4013
  s.value++;
4014
4014
  });
4015
4015
  };
4016
- return (y, k) => (i(), h("div", Xo, [
4017
- Zo,
4018
- b("form", Qo, [
4016
+ return (y, _) => (i(), h("div", Go, [
4017
+ _[4] || (_[4] = b("h1", { id: "title" }, "登录", -1)),
4018
+ b("form", Jo, [
4019
4019
  ie(b("input", {
4020
- "onUpdate:modelValue": k[0] || (k[0] = (_) => E(u).username = _),
4020
+ "onUpdate:modelValue": _[0] || (_[0] = (v) => E(u).username = v),
4021
4021
  type: "text",
4022
4022
  placeholder: "用户名",
4023
4023
  class: "input"
@@ -4025,16 +4025,16 @@ const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828
4025
4025
  [be, E(u).username]
4026
4026
  ]),
4027
4027
  ie(b("input", {
4028
- "onUpdate:modelValue": k[1] || (k[1] = (_) => E(u).password = _),
4028
+ "onUpdate:modelValue": _[1] || (_[1] = (v) => E(u).password = v),
4029
4029
  type: "password",
4030
4030
  placeholder: "密码",
4031
4031
  class: "input"
4032
4032
  }, null, 512), [
4033
4033
  [be, E(u).password]
4034
4034
  ]),
4035
- n.value ? (i(), h("div", Yo, [
4035
+ n.value ? (i(), h("div", zo, [
4036
4036
  ie(b("input", {
4037
- "onUpdate:modelValue": k[2] || (k[2] = (_) => E(u).captcha = _),
4037
+ "onUpdate:modelValue": _[2] || (_[2] = (v) => E(u).captcha = v),
4038
4038
  type: "text",
4039
4039
  placeholder: "验证码",
4040
4040
  class: "input-captcha"
@@ -4046,99 +4046,99 @@ const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828
4046
4046
  src: a.value + "/user/captcha?ts=" + E(s),
4047
4047
  title: "点击刷新",
4048
4048
  onClick: r
4049
- }, null, 8, ea)
4049
+ }, null, 8, Ko)
4050
4050
  ])) : x("", !0),
4051
4051
  b("div", {
4052
4052
  class: H({ input: !0, button: !0, "no-ready": !d.value }),
4053
4053
  onClick: m
4054
4054
  }, "登录", 2),
4055
- b("div", ta, [
4055
+ b("div", Wo, [
4056
4056
  b("div", null, B(o.value), 1)
4057
4057
  ]),
4058
- b("div", la, [
4059
- na,
4060
- (i(!0), h(I, null, O(Object.keys([]), (_) => (i(), h("div", { key: _ }, B(_), 1))), 128))
4058
+ b("div", Xo, [
4059
+ _[3] || (_[3] = b("div", { id: "sso-qrcode" }, null, -1)),
4060
+ (i(!0), h(I, null, O(Object.keys([]), (v) => (i(), h("div", { key: v }, B(v), 1))), 128))
4061
4061
  ])
4062
4062
  ])
4063
4063
  ]));
4064
4064
  }
4065
- }), aa = {
4065
+ }), Qo = {
4066
4066
  name: "NotFoundPage"
4067
- }, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("svg", {
4068
- width: "380px",
4069
- height: "500px",
4070
- viewBox: "0 0 837 1045",
4071
- version: "1.1",
4072
- xmlns: "http://www.w3.org/2000/svg",
4073
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
4074
- "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
4075
- }, [
4076
- /* @__PURE__ */ b("g", {
4077
- id: "Page-1",
4078
- stroke: "none",
4079
- "stroke-width": "1",
4080
- fill: "none",
4081
- "fill-rule": "evenodd",
4082
- "sketch:type": "MSPage"
4083
- }, [
4084
- /* @__PURE__ */ b("path", {
4085
- id: "Polygon-1",
4086
- d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
4087
- stroke: "#007FB2",
4088
- "stroke-width": "6",
4089
- "sketch:type": "MSShapeGroup"
4090
- }),
4091
- /* @__PURE__ */ b("path", {
4092
- id: "Polygon-2",
4093
- d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
4094
- stroke: "#EF4A5B",
4095
- "stroke-width": "6",
4096
- "sketch:type": "MSShapeGroup"
4097
- }),
4098
- /* @__PURE__ */ b("path", {
4099
- id: "Polygon-3",
4100
- d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
4101
- stroke: "#795D9C",
4102
- "stroke-width": "6",
4103
- "sketch:type": "MSShapeGroup"
4104
- }),
4105
- /* @__PURE__ */ b("path", {
4106
- id: "Polygon-4",
4107
- d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
4108
- stroke: "#F2773F",
4109
- "stroke-width": "6",
4110
- "sketch:type": "MSShapeGroup"
4111
- }),
4112
- /* @__PURE__ */ b("path", {
4113
- id: "Polygon-5",
4114
- d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
4115
- stroke: "#36B455",
4116
- "stroke-width": "6",
4117
- "sketch:type": "MSShapeGroup"
4118
- })
4119
- ])
4120
- ], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4121
- /* @__PURE__ */ b("h1", null, "404"),
4122
- /* @__PURE__ */ b("p", null, "Page not found"),
4123
- /* @__PURE__ */ b("div", { class: "buttons-con" }, [
4124
- /* @__PURE__ */ b("div", { class: "action-link-wrap" }, [
4125
- /* @__PURE__ */ b("a", {
4126
- href: "",
4127
- class: "link-button"
4128
- }, "Go to Home Page")
4129
- ])
4130
- ])
4131
- ], -1)), ca = [
4132
- ia,
4133
- ra
4134
- ];
4135
- function ua(e, t, l, o, n, a) {
4136
- return i(), h("div", sa, ca);
4067
+ }, Yo = { class: "not-found" };
4068
+ function ea(e, t, l, o, n, a) {
4069
+ return i(), h("div", Yo, t[0] || (t[0] = [
4070
+ b("svg", {
4071
+ width: "380px",
4072
+ height: "500px",
4073
+ viewBox: "0 0 837 1045",
4074
+ version: "1.1",
4075
+ xmlns: "http://www.w3.org/2000/svg",
4076
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4077
+ "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
4078
+ }, [
4079
+ b("g", {
4080
+ id: "Page-1",
4081
+ stroke: "none",
4082
+ "stroke-width": "1",
4083
+ fill: "none",
4084
+ "fill-rule": "evenodd",
4085
+ "sketch:type": "MSPage"
4086
+ }, [
4087
+ b("path", {
4088
+ id: "Polygon-1",
4089
+ d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
4090
+ stroke: "#007FB2",
4091
+ "stroke-width": "6",
4092
+ "sketch:type": "MSShapeGroup"
4093
+ }),
4094
+ b("path", {
4095
+ id: "Polygon-2",
4096
+ d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
4097
+ stroke: "#EF4A5B",
4098
+ "stroke-width": "6",
4099
+ "sketch:type": "MSShapeGroup"
4100
+ }),
4101
+ b("path", {
4102
+ id: "Polygon-3",
4103
+ d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
4104
+ stroke: "#795D9C",
4105
+ "stroke-width": "6",
4106
+ "sketch:type": "MSShapeGroup"
4107
+ }),
4108
+ b("path", {
4109
+ id: "Polygon-4",
4110
+ d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
4111
+ stroke: "#F2773F",
4112
+ "stroke-width": "6",
4113
+ "sketch:type": "MSShapeGroup"
4114
+ }),
4115
+ b("path", {
4116
+ id: "Polygon-5",
4117
+ d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
4118
+ stroke: "#36B455",
4119
+ "stroke-width": "6",
4120
+ "sketch:type": "MSShapeGroup"
4121
+ })
4122
+ ])
4123
+ ], -1),
4124
+ b("div", { class: "message-box" }, [
4125
+ b("h1", null, "404"),
4126
+ b("p", null, "Page not found"),
4127
+ b("div", { class: "buttons-con" }, [
4128
+ b("div", { class: "action-link-wrap" }, [
4129
+ b("a", {
4130
+ href: "",
4131
+ class: "link-button"
4132
+ }, "Go to Home Page")
4133
+ ])
4134
+ ])
4135
+ ], -1)
4136
+ ]));
4137
4137
  }
4138
- const pa = /* @__PURE__ */ $(aa, [["render", ua], ["__scopeId", "data-v-26068803"]]), da = [
4138
+ const ta = /* @__PURE__ */ C(Qo, [["render", ea], ["__scopeId", "data-v-26068803"]]), la = [
4139
4139
  {
4140
4140
  path: "/",
4141
- component: vt,
4141
+ component: yt,
4142
4142
  redirect: "/dashboard",
4143
4143
  name: "Root",
4144
4144
  meta: {
@@ -4148,48 +4148,48 @@ const pa = /* @__PURE__ */ $(aa, [["render", ua], ["__scopeId", "data-v-26068803
4148
4148
  {
4149
4149
  path: "dashboard",
4150
4150
  name: "Dashboard",
4151
- component: cn,
4151
+ component: an,
4152
4152
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
4153
4153
  }
4154
4154
  ]
4155
4155
  },
4156
4156
  {
4157
4157
  path: "/login",
4158
- component: oa,
4158
+ component: Zo,
4159
4159
  meta: { title: "用户登录", menuType: 0 },
4160
4160
  hidden: !0
4161
4161
  },
4162
4162
  {
4163
4163
  path: "/404",
4164
- component: pa,
4164
+ component: ta,
4165
4165
  meta: { menuType: 0 },
4166
4166
  hidden: !0
4167
4167
  }
4168
- ], K = cl({
4169
- history: ul(),
4170
- routes: da
4168
+ ], K = sl({
4169
+ history: il(),
4170
+ routes: la
4171
4171
  });
4172
4172
  ke.configure({ showSpinner: !1 });
4173
- function ma(e) {
4173
+ function na(e) {
4174
4174
  e.beforeEach((t, l, o) => {
4175
4175
  ke.start(), t.preHash = location.hash.replace("#", ""), o();
4176
4176
  }), e.afterEach((t) => {
4177
- t.matched.length > 0 && g.commit("user/updateState", {
4177
+ t.matched.length > 0 && k.commit("user/updateState", {
4178
4178
  key: "path",
4179
4179
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4180
4180
  }), ke.done();
4181
4181
  });
4182
4182
  }
4183
- function fa() {
4184
- return g.state.user.isLodeRemoteRoutes;
4183
+ function oa() {
4184
+ return k.state.user.isLodeRemoteRoutes;
4185
4185
  }
4186
- function kt() {
4187
- return g.state.settings.whiteRoutes || [];
4186
+ function _t() {
4187
+ return k.state.settings.whiteRoutes || [];
4188
4188
  }
4189
- function ha() {
4190
- return g.state.user.token;
4189
+ function aa() {
4190
+ return k.state.user.token;
4191
4191
  }
4192
- class wt {
4192
+ class vt {
4193
4193
  constructor() {
4194
4194
  R(this, "type", "qrcode");
4195
4195
  }
@@ -4201,7 +4201,7 @@ class wt {
4201
4201
  showQrCode() {
4202
4202
  }
4203
4203
  }
4204
- class Ii extends wt {
4204
+ class mi extends vt {
4205
4205
  constructor(l) {
4206
4206
  super();
4207
4207
  R(this, "type", "jump");
@@ -4209,7 +4209,7 @@ class Ii extends wt {
4209
4209
  this.client_id = l.client_id;
4210
4210
  }
4211
4211
  flag() {
4212
- const l = et("code");
4212
+ const l = Qe("code");
4213
4213
  if (l)
4214
4214
  return {
4215
4215
  ticket: l,
@@ -4221,7 +4221,7 @@ class Ii extends wt {
4221
4221
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${n}`);
4222
4222
  }
4223
4223
  }
4224
- class $i extends wt {
4224
+ class fi extends vt {
4225
4225
  constructor(l) {
4226
4226
  super();
4227
4227
  R(this, "type", "qrcode");
@@ -4234,7 +4234,7 @@ class $i extends wt {
4234
4234
  R(this, "style", "");
4235
4235
  }
4236
4236
  flag() {
4237
- const l = et("code");
4237
+ const l = Qe("code");
4238
4238
  if (l)
4239
4239
  return {
4240
4240
  ticket: l,
@@ -4247,7 +4247,7 @@ class $i extends wt {
4247
4247
  appid: this.appid,
4248
4248
  redirect_uri: encodeURIComponent(this.redirectUri)
4249
4249
  };
4250
- return Z(this.reloadUrl, s) + "&" + Qt(a || {});
4250
+ return Z(this.reloadUrl, s) + "&" + Wt(a || {});
4251
4251
  }, o = () => {
4252
4252
  const a = {
4253
4253
  goto: encodeURIComponent(l()),
@@ -4258,53 +4258,53 @@ class $i extends wt {
4258
4258
  const { origin: s, data: r } = a;
4259
4259
  s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: r }));
4260
4260
  };
4261
- this.iframe.src = o(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4261
+ this.iframe.src = o(), Kt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4262
4262
  "message",
4263
4263
  (a) => n(a),
4264
4264
  !1
4265
4265
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
4266
4266
  }
4267
4267
  }
4268
- const ba = {};
4269
- function ya() {
4270
- return A(g.state.settings.sso || {}, ba);
4268
+ const sa = {};
4269
+ function ia() {
4270
+ return A(k.state.settings.sso || {}, sa);
4271
4271
  }
4272
- function _a() {
4273
- const e = ya(), t = g.state.settings.activeSsoKey || "", l = e[t];
4272
+ function ra() {
4273
+ const e = ia(), t = k.state.settings.activeSsoKey || "", l = e[t];
4274
4274
  if (l !== void 0)
4275
4275
  return l();
4276
4276
  }
4277
- function va(e) {
4277
+ function ca(e) {
4278
4278
  e.beforeEach(async (t, l, o) => {
4279
4279
  var d, u;
4280
- if (kt().indexOf(t.path) !== -1) {
4280
+ if (_t().indexOf(t.path) !== -1) {
4281
4281
  o();
4282
4282
  return;
4283
4283
  }
4284
- if (ha()) {
4284
+ if (aa()) {
4285
4285
  (d = t.query) != null && d.redirect ? o((u = t.query) == null ? void 0 : u.redirect) : o();
4286
4286
  return;
4287
4287
  }
4288
- const a = t.query.redirect || t.path, s = _a();
4288
+ const a = t.query.redirect || t.path, s = ra();
4289
4289
  if (!s) {
4290
4290
  o(`/login?redirect=${a}`);
4291
4291
  return;
4292
4292
  }
4293
4293
  const r = s.flag();
4294
- if (r && await g.dispatch("user/login", tl(r) ? r : { ticket: r })) {
4294
+ if (r && await k.dispatch("user/login", Qt(r) ? r : { ticket: r })) {
4295
4295
  o();
4296
4296
  return;
4297
4297
  }
4298
4298
  s.jumpToLoginPage(o, `/login?redirect=${a}`);
4299
4299
  });
4300
4300
  }
4301
- const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Sa = [
4302
- wa
4303
- ];
4304
- function Ea(e, t) {
4305
- return i(), h("div", ka, Sa);
4301
+ const ua = {}, pa = { class: "loading preloader" };
4302
+ function da(e, t) {
4303
+ return i(), h("div", pa, t[0] || (t[0] = [
4304
+ b("div", { class: "preloader-inner" }, null, -1)
4305
+ ]));
4306
4306
  }
4307
- const St = /* @__PURE__ */ $(ga, [["render", Ea]]), xa = {
4307
+ const gt = /* @__PURE__ */ C(ua, [["render", da]]), ma = {
4308
4308
  name: "VNotice",
4309
4309
  props: {
4310
4310
  dataApi: {
@@ -4333,14 +4333,14 @@ const St = /* @__PURE__ */ $(ga, [["render", Ea]]), xa = {
4333
4333
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
4334
4334
  }
4335
4335
  };
4336
- function Ia(e, t, l, o, n, a) {
4336
+ function fa(e, t, l, o, n, a) {
4337
4337
  const s = Oe;
4338
4338
  return i(), h("div", null, [
4339
4339
  n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) : x("", !0)
4340
4340
  ]);
4341
4341
  }
4342
- const Et = /* @__PURE__ */ $(xa, [["render", Ia]]), $a = q({
4343
- components: { VLoading: St, VNotice: Et },
4342
+ const kt = /* @__PURE__ */ C(ma, [["render", fa]]), ha = q({
4343
+ components: { VLoading: gt, VNotice: kt },
4344
4344
  props: {
4345
4345
  schemaHandler: {
4346
4346
  type: Function,
@@ -4377,12 +4377,12 @@ const Et = /* @__PURE__ */ $(xa, [["render", Ia]]), $a = q({
4377
4377
  this.$http.get(this.$props.schemaApi || l, o).then(({ data: n }) => {
4378
4378
  this.loading = !1, Q(n) && (n.notice !== void 0 && (this.haveNotice = !0, Ie(n.notice) ? this.notice = {
4379
4379
  title: n.notice
4380
- } : Q(n.notice) && (this.notice = n.notice, this.noticeApi = n.notice.noticeApi), delete n.notice), this.owners = n.ownerNames || [], this.serviceOffLine = n.serviceOffLine || !1), this.schema = this.$props.schemaHandler(n, t), g.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4380
+ } : Q(n.notice) && (this.notice = n.notice, this.noticeApi = n.notice.noticeApi), delete n.notice), this.owners = n.ownerNames || [], this.serviceOffLine = n.serviceOffLine || !1), this.schema = this.$props.schemaHandler(n, t), k.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4381
4381
  });
4382
4382
  }
4383
- }), Ca = ["innerHTML"];
4384
- function Ta(e, t, l, o, n, a) {
4385
- const s = Oe, r = Et, d = St;
4383
+ }), ba = ["innerHTML"];
4384
+ function ya(e, t, l, o, n, a) {
4385
+ const s = Oe, r = kt, d = gt;
4386
4386
  return i(), h(I, null, [
4387
4387
  e.owners.length > 0 ? (i(), f(s, {
4388
4388
  key: 0,
@@ -4395,7 +4395,7 @@ function Ta(e, t, l, o, n, a) {
4395
4395
  key: 1,
4396
4396
  class: "offline-notice",
4397
4397
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4398
- }, null, 8, Ca)) : (i(), h(I, { key: 2 }, [
4398
+ }, null, 8, ba)) : (i(), h(I, { key: 2 }, [
4399
4399
  e.haveNotice ? (i(), f(r, {
4400
4400
  key: 0,
4401
4401
  notice: e.notice,
@@ -4406,7 +4406,7 @@ function Ta(e, t, l, o, n, a) {
4406
4406
  ], 64))
4407
4407
  ], 64);
4408
4408
  }
4409
- const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709"]]), xt = {
4409
+ const se = /* @__PURE__ */ C(ha, [["render", ya], ["__scopeId", "data-v-4965a709"]]), wt = {
4410
4410
  __name: "table",
4411
4411
  setup(e) {
4412
4412
  const t = (l, o) => {
@@ -4432,7 +4432,7 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
4432
4432
  }, Ee = {
4433
4433
  __name: "form",
4434
4434
  setup(e) {
4435
- const t = de(), l = st(), o = (r, d) => {
4435
+ const t = de(), l = ot(), o = (r, d) => {
4436
4436
  const u = Object.keys(z.props);
4437
4437
  return Object.keys(r).forEach((m) => {
4438
4438
  if (u.indexOf(m) === -1) {
@@ -4447,14 +4447,14 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
4447
4447
  mod: t.params.id ? "edit" : "create"
4448
4448
  }, r), r;
4449
4449
  }, n = D(0), a = () => {
4450
- Tt.request({
4450
+ It.request({
4451
4451
  url: "/form_mutex",
4452
4452
  method: "get",
4453
4453
  params: {
4454
4454
  path: t.fullPath
4455
4455
  }
4456
4456
  }).then((r) => {
4457
- r.data && (clearInterval(n.value), at.alert(`${r.data}`, "操作提醒", {
4457
+ r.data && (clearInterval(n.value), nt.alert(`${r.data}`, "操作提醒", {
4458
4458
  showClose: !1,
4459
4459
  showCancelButton: !0,
4460
4460
  confirmButtonText: "返回",
@@ -4465,9 +4465,9 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
4465
4465
  }));
4466
4466
  });
4467
4467
  };
4468
- Ze(() => {
4469
- t.params.id !== void 0 && g.state.settings.formMutex && (a(), n.value = setInterval(a, 2e3));
4470
- }), Nt(() => {
4468
+ We(() => {
4469
+ t.params.id !== void 0 && k.state.settings.formMutex && (a(), n.value = setInterval(a, 2e3));
4470
+ }), Mt(() => {
4471
4471
  clearInterval(n.value);
4472
4472
  });
4473
4473
  function s() {
@@ -4481,7 +4481,7 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
4481
4481
  _: 1
4482
4482
  }));
4483
4483
  }
4484
- }, Ba = q({
4484
+ }, _a = q({
4485
4485
  name: "VTree",
4486
4486
  components: {
4487
4487
  VForm: z
@@ -4581,7 +4581,7 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
4581
4581
  append(e, t) {
4582
4582
  var o, n;
4583
4583
  this.type = 1;
4584
- const l = { pid: e.id, [((o = this.$props.props) == null ? void 0 : o.levelKey) ?? "level"]: t.level + 1, ...Yt((n = this.$props.props) == null ? void 0 : n.effectData, e) };
4584
+ const l = { pid: e.id, [((o = this.$props.props) == null ? void 0 : o.levelKey) ?? "level"]: t.level + 1, ...Xt((n = this.$props.props) == null ? void 0 : n.effectData, e) };
4585
4585
  e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4586
4586
  },
4587
4587
  canAppend(e, t) {
@@ -4623,12 +4623,12 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
4623
4623
  });
4624
4624
  }
4625
4625
  }
4626
- }), Oa = { class: "card-header" }, Aa = /* @__PURE__ */ b("span", null, "列表", -1), Pa = { class: "tree-action" }, Ra = { key: 0 }, La = {
4626
+ }), va = { class: "card-header" }, ga = { class: "tree-action" }, ka = { key: 0 }, wa = {
4627
4627
  key: 1,
4628
4628
  style: { color: "#E6A23C" }
4629
- }, Ma = { class: "card-header" };
4630
- function Da(e, t, l, o, n, a) {
4631
- const s = pe, r = $l, d = Ae, u = me, m = w("v-form"), y = ae;
4629
+ }, Sa = { class: "card-header" };
4630
+ function Ea(e, t, l, o, n, a) {
4631
+ const s = pe, r = El, d = Ae, u = me, m = w("v-form"), y = ae;
4632
4632
  return i(), f(y, {
4633
4633
  class: "tree-box",
4634
4634
  gutter: 20
@@ -4641,15 +4641,15 @@ function Da(e, t, l, o, n, a) {
4641
4641
  default: c(() => [
4642
4642
  p(d, { shadow: "never" }, {
4643
4643
  header: c(() => [
4644
- b("div", Oa, [
4645
- Aa,
4644
+ b("div", va, [
4645
+ t[3] || (t[3] = b("span", null, "列表", -1)),
4646
4646
  p(s, {
4647
4647
  type: "text",
4648
4648
  onClick: t[0] || (t[0] = () => e.appendNew())
4649
4649
  }, {
4650
- default: c(() => [
4650
+ default: c(() => t[2] || (t[2] = [
4651
4651
  S("添加")
4652
- ]),
4652
+ ])),
4653
4653
  _: 1
4654
4654
  })
4655
4655
  ])
@@ -4666,41 +4666,41 @@ function Da(e, t, l, o, n, a) {
4666
4666
  "allow-drop": e.allowDrop,
4667
4667
  onNodeDragEnd: e.handleDragEnd
4668
4668
  }), {
4669
- default: c(({ node: k, data: _ }) => [
4670
- b("span", Pa, [
4671
- _[e.localTreeProps.props.label] ? (i(), h("span", Ra, B(_[e.localTreeProps.props.label]), 1)) : (i(), h("span", La, "请在右侧表单中修改 --> ")),
4669
+ default: c(({ node: _, data: v }) => [
4670
+ b("span", ga, [
4671
+ v[e.localTreeProps.props.label] ? (i(), h("span", ka, B(v[e.localTreeProps.props.label]), 1)) : (i(), h("span", wa, "请在右侧表单中修改 --> ")),
4672
4672
  b("span", null, [
4673
- _[e.localTreeProps.props.label] ? (i(), f(s, {
4673
+ v[e.localTreeProps.props.label] ? (i(), f(s, {
4674
4674
  key: 0,
4675
4675
  class: "button",
4676
4676
  type: "text",
4677
- onClick: () => e.onclick(_)
4677
+ onClick: () => e.onclick(v)
4678
4678
  }, {
4679
- default: c(() => [
4679
+ default: c(() => t[4] || (t[4] = [
4680
4680
  S("编辑")
4681
- ]),
4681
+ ])),
4682
4682
  _: 2
4683
4683
  }, 1032, ["onClick"])) : x("", !0),
4684
- e.canAppend(_, k) ? (i(), f(s, {
4684
+ e.canAppend(v, _) ? (i(), f(s, {
4685
4685
  key: 1,
4686
4686
  class: "button",
4687
4687
  type: "text",
4688
- onClick: () => e.append(_, k)
4688
+ onClick: () => e.append(v, _)
4689
4689
  }, {
4690
- default: c(() => [
4690
+ default: c(() => t[5] || (t[5] = [
4691
4691
  S("添加")
4692
- ]),
4692
+ ])),
4693
4693
  _: 2
4694
4694
  }, 1032, ["onClick"])) : x("", !0),
4695
- _.children === void 0 || _.children.length === 0 ? (i(), f(s, {
4695
+ v.children === void 0 || v.children.length === 0 ? (i(), f(s, {
4696
4696
  key: 2,
4697
4697
  class: "button",
4698
4698
  type: "text",
4699
- onClick: () => e.remove(_)
4699
+ onClick: () => e.remove(v)
4700
4700
  }, {
4701
- default: c(() => [
4701
+ default: c(() => t[6] || (t[6] = [
4702
4702
  S("删除")
4703
- ]),
4703
+ ])),
4704
4704
  _: 2
4705
4705
  }, 1032, ["onClick"])) : x("", !0)
4706
4706
  ])
@@ -4724,7 +4724,7 @@ function Da(e, t, l, o, n, a) {
4724
4724
  shadow: "never"
4725
4725
  }, {
4726
4726
  header: c(() => [
4727
- b("div", Ma, [
4727
+ b("div", Sa, [
4728
4728
  b("span", null, B(e.formType), 1)
4729
4729
  ])
4730
4730
  ]),
@@ -4732,7 +4732,7 @@ function Da(e, t, l, o, n, a) {
4732
4732
  (i(), f(m, F({
4733
4733
  key: e.formkey,
4734
4734
  modelValue: e.formData,
4735
- "onUpdate:modelValue": t[1] || (t[1] = (k) => e.formData = k)
4735
+ "onUpdate:modelValue": t[1] || (t[1] = (_) => e.formData = _)
4736
4736
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4737
4737
  ]),
4738
4738
  _: 1
@@ -4744,7 +4744,7 @@ function Da(e, t, l, o, n, a) {
4744
4744
  _: 1
4745
4745
  });
4746
4746
  }
4747
- const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
4747
+ const Fe = /* @__PURE__ */ C(_a, [["render", Ea]]), xa = {
4748
4748
  __name: "tree",
4749
4749
  setup(e) {
4750
4750
  const t = (l, o) => {
@@ -4764,14 +4764,14 @@ const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
4764
4764
  __name: "container",
4765
4765
  setup(e) {
4766
4766
  const t = D(0);
4767
- return pl(() => {
4767
+ return rl(() => {
4768
4768
  t.value++;
4769
4769
  }), (l, o) => {
4770
4770
  const n = w("router-view");
4771
4771
  return i(), f(n);
4772
4772
  };
4773
4773
  }
4774
- }, Na = {
4774
+ }, Ia = {
4775
4775
  title: {
4776
4776
  text: ""
4777
4777
  },
@@ -4800,16 +4800,16 @@ const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
4800
4800
  },
4801
4801
  series: []
4802
4802
  };
4803
- function Va(e, t, l) {
4803
+ function Ca(e, t, l) {
4804
4804
  if (l.length === 0)
4805
4805
  return {};
4806
- let o = A({}, Na);
4806
+ let o = A({}, Ia);
4807
4807
  if (o.title.text = e, Ie(t)) {
4808
4808
  const n = [], a = Object.keys(l[0]);
4809
4809
  let s = a[0], r = a.filter((u, m) => m > 0), d = t;
4810
4810
  if (t.indexOf(":") > -1) {
4811
4811
  const u = t.split(":"), m = u[1].split(",");
4812
- d = u[0], s = m[0], r = m.filter((y, k) => k > 0);
4812
+ d = u[0], s = m[0], r = m.filter((y, _) => _ > 0);
4813
4813
  }
4814
4814
  r.forEach((u) => {
4815
4815
  const m = [];
@@ -4827,7 +4827,7 @@ function Va(e, t, l) {
4827
4827
  }
4828
4828
  return Q(t) && (o = A(o, t)), o;
4829
4829
  }
4830
- const qa = q({
4830
+ const $a = q({
4831
4831
  name: "NumberPanel",
4832
4832
  props: {
4833
4833
  dataList: {
@@ -4838,27 +4838,27 @@ const qa = q({
4838
4838
  data() {
4839
4839
  return {};
4840
4840
  }
4841
- }), Ua = { class: "number-panel-title" }, Ha = { class: "number" }, Fa = { class: "name" };
4842
- function Ga(e, t, l, o, n, a) {
4841
+ }), Ta = { class: "number-panel-title" }, Ba = { class: "number" }, Oa = { class: "name" };
4842
+ function Aa(e, t, l, o, n, a) {
4843
4843
  return i(!0), h(I, null, O(e.dataList, (s, r) => (i(), h("span", { key: r }, [
4844
- b("div", Ua, [
4844
+ b("div", Ta, [
4845
4845
  (i(!0), h(I, null, O(Object.keys(s), (d, u) => (i(), h("div", {
4846
4846
  key: u,
4847
4847
  class: "title-inner"
4848
4848
  }, [
4849
- b("p", Ha, B(s[d]), 1),
4850
- b("p", Fa, B(d), 1)
4849
+ b("p", Ba, B(s[d]), 1),
4850
+ b("p", Oa, B(d), 1)
4851
4851
  ]))), 128))
4852
4852
  ])
4853
4853
  ]))), 128);
4854
4854
  }
4855
- const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293"]]), za = {
4855
+ const Pa = /* @__PURE__ */ C($a, [["render", Aa], ["__scopeId", "data-v-cc0d8293"]]), Ra = {
4856
4856
  components: {
4857
- Chart: Tl,
4858
- Md: Rl,
4857
+ Chart: Il,
4858
+ Md: Ol,
4859
4859
  Json: Re,
4860
4860
  Table: oe,
4861
- Number: Ja,
4861
+ Number: Pa,
4862
4862
  Html: ""
4863
4863
  },
4864
4864
  props: {
@@ -4879,14 +4879,14 @@ const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293
4879
4879
  };
4880
4880
  if (n === "chart")
4881
4881
  return {
4882
- options: Va(o.id, o.chart, o.data)
4882
+ options: Ca(o.id, o.chart, o.data)
4883
4883
  };
4884
4884
  if (n === "md")
4885
4885
  return {
4886
4886
  source: o.data
4887
4887
  };
4888
4888
  if (n === "table") {
4889
- if (!tt(o.data))
4889
+ if (!Ye(o.data))
4890
4890
  return { showPagination: !1 };
4891
4891
  const a = [];
4892
4892
  return o.data[0] && Object.keys(o.data[0]).forEach((s, r) => {
@@ -4903,21 +4903,21 @@ const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293
4903
4903
  };
4904
4904
  }
4905
4905
  };
4906
- function Ka(e, t, l, o, n, a) {
4907
- const s = Ae, r = Vt("resize");
4906
+ function La(e, t, l, o, n, a) {
4907
+ const s = Ae, r = Dt("resize");
4908
4908
  return ie((i(), f(s, {
4909
4909
  shadow: "never",
4910
4910
  class: "part"
4911
4911
  }, {
4912
4912
  default: c(() => [
4913
- (i(), f(Xe(o.comptype()), G(Y(o.compprops(l.option))), null, 16))
4913
+ (i(), f(Ke(o.comptype()), G(Y(o.compprops(l.option))), null, 16))
4914
4914
  ]),
4915
4915
  _: 1
4916
4916
  })), [
4917
4917
  [r, !0]
4918
4918
  ]);
4919
4919
  }
4920
- const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1"]]), Xa = /* @__PURE__ */ q({
4920
+ const Ma = /* @__PURE__ */ C(Ra, [["render", La], ["__scopeId", "data-v-a5a65cc1"]]), Da = /* @__PURE__ */ q({
4921
4921
  __name: "index",
4922
4922
  props: {
4923
4923
  filter: {
@@ -4931,7 +4931,7 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
4931
4931
  },
4932
4932
  setup(e) {
4933
4933
  const t = useRoute();
4934
- Ze(() => {
4934
+ We(() => {
4935
4935
  });
4936
4936
  const l = e, o = D({});
4937
4937
  ze(() => {
@@ -4958,27 +4958,27 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
4958
4958
  }
4959
4959
  return "/focusbi_report/view/" + m;
4960
4960
  }), u = (m) => {
4961
- Tt.get(d.value, { params: m }).then(({ data: y }) => {
4961
+ It.get(d.value, { params: m }).then(({ data: y }) => {
4962
4962
  s.value = y.filter, r.value = y.dataPart, a.value++;
4963
4963
  });
4964
4964
  };
4965
4965
  return (m, y) => {
4966
- const k = Ae, _ = me, J = Oe, U = ae;
4966
+ const _ = Ae, v = me, J = Oe, U = ae;
4967
4967
  return i(), f(U, null, {
4968
4968
  default: c(() => [
4969
- E(s).length > 0 ? (i(), f(_, {
4969
+ E(s).length > 0 ? (i(), f(v, {
4970
4970
  key: 0,
4971
4971
  span: 24
4972
4972
  }, {
4973
4973
  default: c(() => [
4974
- p(k, {
4974
+ p(_, {
4975
4975
  shadow: "never",
4976
4976
  class: "part-filter"
4977
4977
  }, {
4978
4978
  default: c(() => [
4979
4979
  p(E(z), {
4980
4980
  modelValue: E(o),
4981
- "onUpdate:modelValue": y[0] || (y[0] = (T) => qt(o) ? o.value = T : null),
4981
+ "onUpdate:modelValue": y[0] || (y[0] = (T) => jt(o) ? o.value = T : null),
4982
4982
  "form-items": E(s),
4983
4983
  options: n,
4984
4984
  onSubmit: u
@@ -4989,11 +4989,11 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
4989
4989
  ]),
4990
4990
  _: 1
4991
4991
  })) : x("", !0),
4992
- p(_, { span: 24 }, {
4992
+ p(v, { span: 24 }, {
4993
4993
  default: c(() => [
4994
4994
  p(U, { gutter: 20 }, {
4995
4995
  default: c(() => [
4996
- (i(!0), h(I, null, O(E(r), (T, X) => (i(), f(_, {
4996
+ (i(!0), h(I, null, O(E(r), (T, X) => (i(), f(v, {
4997
4997
  key: X,
4998
4998
  span: T.col || 24
4999
4999
  }, {
@@ -5007,7 +5007,7 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
5007
5007
  S(B(T.errMsg), 1)
5008
5008
  ]),
5009
5009
  _: 2
5010
- }, 1032, ["title"])) : (i(), f(Wa, {
5010
+ }, 1032, ["title"])) : (i(), f(Ma, {
5011
5011
  key: E(a),
5012
5012
  option: T
5013
5013
  }, null, 8, ["option"]))
@@ -5025,7 +5025,7 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
5025
5025
  });
5026
5026
  };
5027
5027
  }
5028
- }), Za = {
5028
+ }), ja = {
5029
5029
  __name: "report",
5030
5030
  setup(e) {
5031
5031
  const t = useRoute(), l = M(() => {
@@ -5038,19 +5038,19 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
5038
5038
  });
5039
5039
  return (o, n) => (i(), f(se, { "schema-api": E(l) }, {
5040
5040
  default: c((a) => [
5041
- p(Xa, G(Y(a)), null, 16)
5041
+ p(Da, G(Y(a)), null, 16)
5042
5042
  ]),
5043
5043
  _: 1
5044
5044
  }, 8, ["schema-api"]));
5045
5045
  }
5046
- }, Qa = (e) => p("div", null, [e.test]), Ya = {
5047
- card: al,
5046
+ }, Na = (e) => p("div", null, [e.test]), Va = {
5047
+ card: ll,
5048
5048
  form: z,
5049
5049
  table: oe,
5050
- test: Qa,
5051
- row: sl,
5052
- col: il
5053
- }, es = {
5050
+ test: Na,
5051
+ row: nl,
5052
+ col: ol
5053
+ }, qa = {
5054
5054
  card: {
5055
5055
  type: "card",
5056
5056
  props: {
@@ -5071,7 +5071,7 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
5071
5071
  }
5072
5072
  }
5073
5073
  };
5074
- function ts(e) {
5074
+ function Ua(e) {
5075
5075
  const t = Object.assign({}, e), l = t.type.split(".").reverse(), o = t.span || 24;
5076
5076
  delete t.span;
5077
5077
  let n = {
@@ -5112,14 +5112,14 @@ function je(e) {
5112
5112
  t.children.push({
5113
5113
  type: "col",
5114
5114
  props: n,
5115
- children: ts(o)
5115
+ children: Ua(o)
5116
5116
  });
5117
5117
  return;
5118
5118
  }
5119
5119
  o = A({
5120
5120
  props: {}
5121
- }, es[o.type] || {}, o);
5122
- const a = It(o.children);
5121
+ }, qa[o.type] || {}, o);
5122
+ const a = St(o.children);
5123
5123
  a.length && (o.children = je(a)), t.children.push({
5124
5124
  type: "col",
5125
5125
  props: n,
@@ -5127,32 +5127,32 @@ function je(e) {
5127
5127
  });
5128
5128
  }), [t];
5129
5129
  }
5130
- function It(e) {
5131
- return tt(e) ? e : Q(e) ? [e] : [];
5130
+ function St(e) {
5131
+ return Ye(e) ? e : Q(e) ? [e] : [];
5132
5132
  }
5133
5133
  let xe = {};
5134
- const $t = (e) => {
5135
- const t = Ya[e.type] || xe[e.type] || e.type;
5136
- return Ht(t, e.props, {
5137
- default: () => It(e.children).map((l) => $t(l))
5134
+ const Et = (e) => {
5135
+ const t = Va[e.type] || xe[e.type] || e.type;
5136
+ return Vt(t, e.props, {
5137
+ default: () => St(e.children).map((l) => Et(l))
5138
5138
  });
5139
- }, ls = (e) => (Object.keys(xe).length === 0 && (xe = Ut().appContext.components), je(Object.values(e.schema)).map((l) => $t(l))), ns = {
5139
+ }, Ha = (e) => (Object.keys(xe).length === 0 && (xe = Nt().appContext.components), je(Object.values(e.schema)).map((l) => Et(l))), Fa = {
5140
5140
  __name: "custom",
5141
5141
  setup(e) {
5142
- const t = D([]), l = (o, n) => (t.value = Ft(o), o);
5142
+ const t = D([]), l = (o, n) => (t.value = qt(o), o);
5143
5143
  return (o, n) => (i(), f(se, { "schema-handler": l }, {
5144
5144
  default: c(() => [
5145
- p(E(ls), { schema: E(t) }, null, 8, ["schema"])
5145
+ p(E(Ha), { schema: E(t) }, null, 8, ["schema"])
5146
5146
  ]),
5147
5147
  _: 1
5148
5148
  }));
5149
5149
  }
5150
5150
  };
5151
5151
  let te = {};
5152
- function Ci(e) {
5152
+ function hi(e) {
5153
5153
  te = e;
5154
5154
  }
5155
- const os = (e) => {
5155
+ const Ga = (e) => {
5156
5156
  const t = (l) => {
5157
5157
  const o = "./views/" + l + ".vue";
5158
5158
  return te && te[o] && te[o].default ? te[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ge);
@@ -5161,33 +5161,33 @@ const os = (e) => {
5161
5161
  return ge;
5162
5162
  switch (e.page_type) {
5163
5163
  case j.list:
5164
- return xt;
5164
+ return wt;
5165
5165
  case j.form:
5166
5166
  return Ee;
5167
5167
  case j.custom:
5168
5168
  case j.localComp:
5169
5169
  return t(e.view || "");
5170
5170
  case j.tree:
5171
- return ja;
5171
+ return xa;
5172
5172
  case j.report:
5173
- return Za;
5173
+ return ja;
5174
5174
  case j.customSchema:
5175
- return ns;
5175
+ return Fa;
5176
5176
  }
5177
5177
  return ge;
5178
5178
  };
5179
- function as(e) {
5179
+ function Ja(e) {
5180
5180
  let t = e.path;
5181
5181
  return e.type === L.menu && e.page_type === j.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;
5182
5182
  }
5183
- function ss(e) {
5183
+ function za(e) {
5184
5184
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5185
5185
  }
5186
- const Ct = (e) => {
5186
+ const xt = (e) => {
5187
5187
  const t = e.type !== L.page, l = {
5188
- path: as(e),
5189
- name: e.id + "_" + ss(e) + "_" + e.path.replaceAll("/", "_"),
5190
- component: os(e),
5188
+ path: Ja(e),
5189
+ name: e.id + "_" + za(e) + "_" + e.path.replaceAll("/", "_"),
5190
+ component: Ga(e),
5191
5191
  meta: {
5192
5192
  id: e.id,
5193
5193
  pageId: e.id,
@@ -5198,13 +5198,13 @@ const Ct = (e) => {
5198
5198
  menuType: e.type,
5199
5199
  keepAlive: !1
5200
5200
  },
5201
- children: e.children ? e.children.map((o) => Ct(o)) : []
5201
+ children: e.children ? e.children.map((o) => xt(o)) : []
5202
5202
  };
5203
5203
  if (e.page_type === j.entity) {
5204
5204
  const o = e.path + "/list", n = e.path + "/form", a = e.path + "/:id", s = [{
5205
5205
  path: o,
5206
5206
  name: e.name + "列表" + e.id,
5207
- component: xt,
5207
+ component: wt,
5208
5208
  meta: {
5209
5209
  id: e.id + 99999,
5210
5210
  title: "列表",
@@ -5259,7 +5259,7 @@ const Ct = (e) => {
5259
5259
  }
5260
5260
  }
5261
5261
  return l;
5262
- }, is = (e) => {
5262
+ }, Ka = (e) => {
5263
5263
  const t = [];
5264
5264
  return e.forEach((l) => {
5265
5265
  const o = {
@@ -5268,86 +5268,86 @@ const Ct = (e) => {
5268
5268
  routes: []
5269
5269
  };
5270
5270
  l.routes.forEach((n) => {
5271
- o.routes.push(Ct(n));
5271
+ o.routes.push(xt(n));
5272
5272
  }), t.push(o);
5273
5273
  }), t;
5274
5274
  };
5275
- function rs(e) {
5275
+ function Wa(e) {
5276
5276
  e.beforeEach(async (t, l, o) => {
5277
- if (kt().indexOf(t.path) !== -1) {
5277
+ if (_t().indexOf(t.path) !== -1) {
5278
5278
  o();
5279
5279
  return;
5280
5280
  }
5281
- if (fa()) {
5281
+ if (oa()) {
5282
5282
  o();
5283
5283
  return;
5284
5284
  }
5285
- await g.dispatch("user/info");
5286
- const n = await g.dispatch("user/loadRemoteRoutes"), a = is(n);
5285
+ await k.dispatch("user/info");
5286
+ const n = await k.dispatch("user/loadRemoteRoutes"), a = Ka(n);
5287
5287
  a.forEach((s) => {
5288
5288
  s.routes.forEach((r) => {
5289
5289
  e.addRoute({
5290
5290
  path: "/",
5291
- component: vt,
5291
+ component: yt,
5292
5292
  children: [r]
5293
5293
  });
5294
5294
  });
5295
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), g.commit("user/updateRemoteRouter", a), await e.replace(t), o();
5295
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), k.commit("user/updateRemoteRouter", a), await e.replace(t), o();
5296
5296
  });
5297
5297
  }
5298
- function cs(e) {
5298
+ function Xa(e) {
5299
5299
  e.beforeEach(async (t, l, o) => {
5300
5300
  var r;
5301
- const a = [g.state.settings.title || ""], s = t.matched.length;
5301
+ const a = [k.state.settings.title || ""], s = t.matched.length;
5302
5302
  for (let d = s; d > s - 3; d--) {
5303
5303
  const u = t.matched[d - 1];
5304
5304
  (r = u == null ? void 0 : u.meta) != null && r.title && a.push(u.meta.title + "");
5305
5305
  }
5306
5306
  a.length > 1 && (document.title = a.reverse().join("-")), o();
5307
5307
  }), e.afterEach(async (t, l, o) => {
5308
- Object.keys(t.meta).length > 0 && await g.dispatch("app/setCurrentMeta", t.meta);
5308
+ Object.keys(t.meta).length > 0 && await k.dispatch("app/setCurrentMeta", t.meta);
5309
5309
  });
5310
5310
  }
5311
- function us(e) {
5312
- va(e), ma(e), rs(e), cs(e);
5311
+ function Za(e) {
5312
+ ca(e), na(e), Wa(e), Xa(e);
5313
5313
  }
5314
- us(K);
5315
- function ps() {
5316
- return g.state.user.token;
5314
+ Za(K);
5315
+ function Qa() {
5316
+ return k.state.user.token;
5317
5317
  }
5318
- function ds() {
5319
- return g.state.user.expired;
5318
+ function Ya() {
5319
+ return k.state.user.expired;
5320
5320
  }
5321
5321
  function Ge(e) {
5322
- ln({
5322
+ Yl({
5323
5323
  message: e,
5324
5324
  type: "error",
5325
5325
  duration: 5 * 1e3,
5326
5326
  grouping: !0
5327
5327
  });
5328
5328
  }
5329
- const ms = {
5329
+ const es = {
5330
5330
  onFulfilled: function(e) {
5331
5331
  var l;
5332
5332
  e.headers = e.headers || {};
5333
- const t = ps();
5333
+ const t = Qa();
5334
5334
  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;
5335
5335
  }
5336
- }, fs = {
5336
+ }, ts = {
5337
5337
  onFulfilled(e) {
5338
5338
  var o, n, a, s, r, d, u;
5339
5339
  if (!(((o = e.config) == null ? void 0 : o.notHoldApiErr) !== void 0 && ((n = e.config) == null ? void 0 : n.notHoldApiErr) === !0) && e.data.code !== 0) {
5340
5340
  const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5341
5341
  if (e.data.code === 401) {
5342
- if (ds())
5342
+ if (Ya())
5343
5343
  return;
5344
- g.dispatch("user/SetExpired"), Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5344
+ k.dispatch("user/SetExpired"), Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5345
5345
  showClose: !1,
5346
5346
  confirmButtonText: "重新登录",
5347
5347
  showCancelButton: !0,
5348
5348
  cancelButtonText: "取消",
5349
5349
  callback: (y) => {
5350
- y === "confirm" && (ft(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), g.dispatch("user/SetExpired");
5350
+ y === "confirm" && (dt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), k.dispatch("user/SetExpired");
5351
5351
  }
5352
5352
  });
5353
5353
  return;
@@ -5367,28 +5367,28 @@ const ms = {
5367
5367
  },
5368
5368
  onRejected(e) {
5369
5369
  var t;
5370
- return $e.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5370
+ return Ce.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5371
5371
  }
5372
- }, hs = [
5372
+ }, ls = [
5373
5373
  {
5374
- request: on,
5375
- response: an
5374
+ request: tn,
5375
+ response: ln
5376
5376
  },
5377
5377
  {
5378
- request: ms,
5379
- response: fs
5378
+ request: es,
5379
+ response: ts
5380
5380
  }
5381
5381
  ];
5382
5382
  function Ne(e = {}) {
5383
- const t = fe.axios || {}, l = A(t, e || {}), o = $e.create({
5383
+ const t = fe.axios || {}, l = A(t, e || {}), o = Ce.create({
5384
5384
  ...l
5385
5385
  // adapter: (c) => cacheAdapter(c, defaultAxios)
5386
5386
  });
5387
- return hs.forEach((n) => {
5387
+ return ls.forEach((n) => {
5388
5388
  o.interceptors.request.use(n.request.onFulfilled, n.request.onRejected), o.interceptors.response.use(n.response.onFulfilled, n.response.onRejected);
5389
5389
  }), o;
5390
5390
  }
5391
- const Tt = Ne(), bs = {
5391
+ const It = Ne(), ns = {
5392
5392
  beforeMount(e, t) {
5393
5393
  e.clickOutsideEvent = function(l) {
5394
5394
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5397,13 +5397,13 @@ const Tt = Ne(), bs = {
5397
5397
  unmounted(e) {
5398
5398
  document.body.removeEventListener("click", e.clickOutsideEvent);
5399
5399
  }
5400
- }, W = Al(), ys = {
5400
+ }, W = Tl(), os = {
5401
5401
  mounted: (e, t) => {
5402
5402
  e !== null && (t.value, e.oncontextmenu = (l) => {
5403
5403
  l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
5404
5404
  });
5405
5405
  }
5406
- }, _s = {
5406
+ }, as = {
5407
5407
  mounted(e) {
5408
5408
  }
5409
5409
  };
@@ -5413,7 +5413,7 @@ function Je(e, t) {
5413
5413
  l += o[`offset${t}`], o = o.offsetParent;
5414
5414
  return l;
5415
5415
  }
5416
- const vs = {
5416
+ const ss = {
5417
5417
  mounted: (e, t) => {
5418
5418
  if (e === null || !t.value.dev)
5419
5419
  return;
@@ -5439,89 +5439,89 @@ const vs = {
5439
5439
  W.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5440
5440
  }, o.appendChild(s), l.insertBefore(o, l.firstChild);
5441
5441
  }
5442
- }, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5442
+ }, is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5443
5443
  __proto__: null,
5444
- devtool: vs,
5445
- outClick: bs,
5446
- resize: _s,
5447
- rightClick: ys
5444
+ devtool: ss,
5445
+ outClick: ns,
5446
+ resize: as,
5447
+ rightClick: os
5448
5448
  }, Symbol.toStringTag, { value: "Module" }));
5449
5449
  let ue;
5450
- function Ti(e) {
5450
+ function bi(e) {
5451
5451
  return e ? Ne(A(fe.axios, e)) : ue;
5452
5452
  }
5453
- function Bi(e) {
5454
- const t = A(fe, e), l = Gt(Ml), o = $s(t), n = t.plugins || [];
5453
+ function yi(e) {
5454
+ const t = A(fe, e), l = Ut(Pl), o = fs(t), n = t.plugins || [];
5455
5455
  n.unshift(o), n.forEach((a) => {
5456
- Is(l, a);
5457
- }), t != null && t.mock && Jl(), ue = Ne(t.axios), g.dispatch("setHttp", ue).then(), g.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), g.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ue, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Bl(() => ({
5456
+ ms(l, a);
5457
+ }), t != null && t.mock && Hl(), ue = Ne(t.axios), k.dispatch("setHttp", ue).then(), k.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), k.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ue, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Cl(() => ({
5458
5458
  "X-Token": Me()
5459
5459
  })), K.isReady().then(() => l.mount("#app"));
5460
5460
  }
5461
- function ks(e, t = {}) {
5461
+ function rs(e, t = {}) {
5462
5462
  Object.keys(t).forEach((l) => {
5463
5463
  e.component(l, t[l]);
5464
5464
  });
5465
5465
  }
5466
- function ws(e = []) {
5466
+ function cs(e = []) {
5467
5467
  e.forEach((t) => {
5468
5468
  K.addRoute(t);
5469
- }), g.commit("user/setCustomRoutes", e);
5469
+ }), k.commit("user/setCustomRoutes", e);
5470
5470
  }
5471
- function Ss(e, t) {
5471
+ function us(e, t) {
5472
5472
  t.forEach((l) => {
5473
5473
  Q(l) && (l = [l]), e.use(...l);
5474
5474
  });
5475
5475
  }
5476
- function Es(e, t = {}) {
5476
+ function ps(e, t = {}) {
5477
5477
  Object.keys(t).forEach((l) => {
5478
5478
  e.directive(l, t[l]);
5479
5479
  });
5480
5480
  }
5481
- function xs(e = {}) {
5481
+ function ds(e = {}) {
5482
5482
  const t = ["app", "settings", "user"];
5483
5483
  Object.keys(e).forEach((l) => {
5484
5484
  if (t.indexOf(l) !== -1) {
5485
5485
  console.warn(`storeModule name [${l}] is use by base, please change it!`);
5486
5486
  return;
5487
5487
  }
5488
- g.registerModule(l, e[l]);
5488
+ k.registerModule(l, e[l]);
5489
5489
  });
5490
5490
  }
5491
- function Is(e, t) {
5492
- ks(e, t.components || {}), ws(t.routes || []), Ss(e, t.use || []), Es(e, t.directives || {}), xs(t.storeModules || {}), dt(t.mockApis || []);
5491
+ function ms(e, t) {
5492
+ rs(e, t.components || {}), cs(t.routes || []), us(e, t.use || []), ps(e, t.directives || {}), ds(t.storeModules || {}), ut(t.mockApis || []);
5493
5493
  }
5494
- function $s(e) {
5494
+ function fs(e) {
5495
5495
  var t;
5496
5496
  return {
5497
- components: { VIcon: Ol },
5498
- directives: gs,
5497
+ components: { VIcon: $l },
5498
+ directives: is,
5499
5499
  use: [
5500
- g,
5500
+ k,
5501
5501
  K,
5502
- [nl, { locale: nt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5502
+ [el, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5503
5503
  ]
5504
5504
  };
5505
5505
  }
5506
5506
  export {
5507
- wt as BaseSso,
5507
+ vt as BaseSso,
5508
5508
  ge as Container,
5509
- $i as DingTalk,
5510
- Ii as Github,
5511
- vt as Layout,
5509
+ fi as DingTalk,
5510
+ mi as Github,
5511
+ yt as Layout,
5512
5512
  L as MenuType,
5513
- ln as Message,
5513
+ Yl as Message,
5514
5514
  Ue as MessageBox,
5515
5515
  j as PageType,
5516
- ya as allSso,
5517
- Bi as createAdmin,
5516
+ ia as allSso,
5517
+ yi as createAdmin,
5518
5518
  W as eventBus,
5519
- sn as getCmp,
5519
+ nn as getCmp,
5520
5520
  ue as http,
5521
5521
  Ne as instance,
5522
- Ci as regViews,
5523
- xi as setCmp,
5524
- is as transRemoteModules,
5525
- Ti as useHttp
5522
+ hi as regViews,
5523
+ di as setCmp,
5524
+ Ka as transRemoteModules,
5525
+ bi as useHttp
5526
5526
  };
5527
5527
  //# sourceMappingURL=index.es.js.map