@okiss/oms 0.0.48 → 0.0.49

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