@okiss/oms 0.0.51 → 0.0.53

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,19 @@
1
- var Ct = Object.defineProperty;
2
- var Tt = (e, t, l) => t in e ? Ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
- var R = (e, t, l) => (Tt(e, typeof t != "symbol" ? t + "" : t, l), l);
4
- import { defineComponent as q, onBeforeMount as ze, provide as Ot, resolveComponent as v, openBlock as i, createBlock as m, createVNode as u, computed as j, createTextVNode as k, withCtx as r, TransitionGroup as Bt, createElementBlock as h, Fragment as E, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as $, toRefs as At, ref as M, normalizeStyle as Pt, createElementVNode as _, Transition as Rt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as w, withDirectives as ie, vModelText as he, resolveDirective as Lt, onMounted as Mt, isRef as jt, getCurrentInstance as Dt, h as Nt, toRaw as Vt, createApp as qt } from "vue";
5
- import { addNewStyle as Ut, addNewStyleTag as Ht, queryParams as Ft, logGroup as Gt, compactObject as Qe, showEleByClassName as Xe, waterMarker as Jt, Cache as be, isExternal as Ve, getQueryParam as Ye, createIFrame as zt, strVarReplace as Q, obj2Param as Kt, isObject as X, isString as $e, effectDataTrans as Wt, isArray as et } from "@okiss/utils";
1
+ var At = Object.defineProperty;
2
+ var Pt = (e, t, l) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
+ var R = (e, t, l) => (Pt(e, typeof t != "symbol" ? t + "" : t, l), l);
4
+ import { defineComponent as q, onBeforeMount as ze, provide as Rt, resolveComponent as w, openBlock as i, createBlock as f, createVNode as p, computed as M, createTextVNode as S, withCtx as c, TransitionGroup as Lt, createElementBlock as h, Fragment as I, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as E, toRefs as Mt, ref as D, normalizeStyle as Dt, createElementVNode as b, Transition as jt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Xe, normalizeProps as G, guardReactiveProps as Y, unref as x, withDirectives as ie, vModelText as he, onMounted as Ze, onUnmounted as Nt, resolveDirective as Vt, isRef as qt, getCurrentInstance as Ut, h as Ht, toRaw as Ft, createApp as Gt } from "vue";
5
+ import { addNewStyle as Jt, addNewStyleTag as zt, queryParams as Kt, logGroup as Wt, compactObject as Qe, showEleByClassName as Ye, waterMarker as Xt, Cache as be, isExternal as Ve, getQueryParam as et, createIFrame as Zt, strVarReplace as Z, obj2Param as Qt, isObject as Q, isString as Ie, effectDataTrans as Yt, isArray as tt } from "@okiss/utils";
6
6
  import _e from "mockjs";
7
- import Zt, { cloneDeep as y, merge as A, get as ne, unset as tt, isObject as Qt } from "lodash";
8
- import lt from "element-plus/lib/locale/lang/zh-cn";
9
- import Ie from "axios";
7
+ import el, { cloneDeep as v, merge as A, get as ne, unset as lt, isObject as tl } from "lodash";
8
+ import nt from "element-plus/lib/locale/lang/zh-cn";
9
+ import $e from "axios";
10
10
  import N from "js-cookie";
11
- import { createStore as Xt, useStore as nt, mapGetters as Ce } from "vuex";
12
- import Yt, { ElMessage as el, ElMessageBox as tl, ElCard as ll, ElRow as nl, ElCol as ol } from "element-plus";
11
+ import { createStore as ll, useStore as ot, mapGetters as Ce } from "vuex";
12
+ import nl, { ElMessage as ol, ElMessageBox as at, ElCard as al, ElRow as sl, ElCol as il } from "element-plus";
13
13
  import "element-plus/dist/index.css";
14
14
  import "dayjs/locale/zh-cn";
15
- import { useRoute as pe, onBeforeRouteLeave as al, useRouter as sl, createRouter as il, createWebHashHistory as rl, onBeforeRouteUpdate as cl } from "vue-router";
16
- import { ElBreadcrumbItem as ul, ElBreadcrumb as pl, ElRow as ae, ElMain as dl, ElAside as ml, ElContainer as fl, ElDivider as ot, ElButton as ue, ElOption as Te, ElSelect as Oe, ElFormItem as at, ElForm as st, ElCol as de, ElDrawer as it, ElDropdownItem as hl, ElDropdownMenu as bl, ElDropdown as _l, ElMenuItem as yl, ElSubMenu as vl, ElOptionGroup as gl, ElMenu as kl, ElScrollbar as wl, ElBacktop as Sl, ElMessage as xl, ElAlert as Be, ElTree as El, ElCard as Ae } from "element-plus/es";
15
+ import { useRoute as pe, onBeforeRouteLeave as rl, useRouter as st, createRouter as cl, createWebHashHistory as ul, onBeforeRouteUpdate as pl } from "vue-router";
16
+ import { ElBreadcrumbItem as dl, ElBreadcrumb as ml, ElRow as ae, ElMain as fl, ElAside as hl, ElContainer as bl, ElDivider as it, ElButton as ue, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as de, ElDrawer as ut, ElDropdownItem as _l, ElDropdownMenu as yl, ElDropdown as vl, ElMenuItem as gl, ElSubMenu as kl, ElOptionGroup as wl, ElMenu as Sl, ElScrollbar as xl, ElBacktop as El, ElMessage as Il, ElAlert as Oe, ElTree as $l, ElCard as Ae } from "element-plus/es";
17
17
  import "element-plus/es/components/base/style/css";
18
18
  import "element-plus/es/components/row/style/css";
19
19
  import "element-plus/es/components/drawer/style/css";
@@ -23,7 +23,7 @@ import "element-plus/es/components/dropdown-item/style/css";
23
23
  import "element-plus/es/components/col/style/css";
24
24
  import "element-plus/es/components/breadcrumb/style/css";
25
25
  import "element-plus/es/components/breadcrumb-item/style/css";
26
- import * as $l from "path-to-regexp";
26
+ import * as Cl from "path-to-regexp";
27
27
  import "element-plus/es/components/form/style/css";
28
28
  import "element-plus/es/components/form-item/style/css";
29
29
  import "element-plus/es/components/select/style/css";
@@ -33,22 +33,22 @@ import "element-plus/es/components/divider/style/css";
33
33
  import "element-plus/es/components/container/style/css";
34
34
  import "element-plus/es/components/aside/style/css";
35
35
  import "element-plus/es/components/main/style/css";
36
- import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as Il, setUploadHeaderHandle as Cl, VIcon as Tl } from "@okiss/vbtf";
36
+ import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as Tl, setUploadHeaderHandle as Bl, VIcon as Ol } from "@okiss/vbtf";
37
37
  import "normalize.css/normalize.css";
38
38
  import "@okiss/vbtf/style.css";
39
- import Ol from "mitt";
39
+ import Al 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 Bl } from "@vueuse/core";
46
+ import { useEventListener as Pl } 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 Al from "vue3-markdown-it";
51
- import { MD5 as Pl } from "crypto-js";
50
+ import Rl from "vue3-markdown-it";
51
+ import { MD5 as Ll } 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 Rl = /* @__PURE__ */ q({
61
+ const Ml = /* @__PURE__ */ q({
62
62
  __name: "App",
63
63
  setup(e) {
64
- var t, l, n, o;
64
+ var t, l, o, n;
65
65
  return ze(() => {
66
66
  var s;
67
67
  const a = document.getElementById("preloader");
68
- a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Ut("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ht(`.iconfont {
68
+ a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Jt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), zt(`.iconfont {
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 && Ot("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);
74
+ }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Rt("vsPath", (n = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : n.vsPath), (a, s) => {
75
+ const r = w("router-view");
76
+ return i(), f(r);
77
77
  };
78
78
  }
79
79
  });
80
80
  var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
81
- const Ll = {
81
+ const Dl = {
82
82
  saveApi: "/save",
83
83
  afterSubmit: "",
84
84
  afterReset: "goback",
@@ -467,7 +467,7 @@ const Ll = {
467
467
  type: "success"
468
468
  }
469
469
  }
470
- ], Ml = {
470
+ ], jl = {
471
471
  exportAble: !0,
472
472
  filter: [
473
473
  {
@@ -564,7 +564,7 @@ const Ll = {
564
564
  }
565
565
  ],
566
566
  normalButton: [
567
- ...Zt.cloneDeep(qe),
567
+ ...el.cloneDeep(qe),
568
568
  {
569
569
  type: "jump",
570
570
  target: "/user/form",
@@ -576,7 +576,7 @@ const Ll = {
576
576
  ],
577
577
  selectedNotice: "当前共勾选: {selectedCount} 条",
578
578
  listApi: "/user/list"
579
- }, jl = {
579
+ }, Nl = {
580
580
  code: 0,
581
581
  data: {
582
582
  "list|0-100": [
@@ -597,7 +597,7 @@ const Ll = {
597
597
  "page|1-5": 2
598
598
  }
599
599
  }
600
- }, Dl = {
600
+ }, Vl = {
601
601
  afterSubmit: "",
602
602
  afterReset: "goback",
603
603
  formItems: [
@@ -634,7 +634,7 @@ const Ll = {
634
634
  label: "span"
635
635
  }
636
636
  ]
637
- }, Nl = {
637
+ }, ql = {
638
638
  afterSubmit: "",
639
639
  afterReset: "",
640
640
  formItems: [
@@ -673,7 +673,7 @@ const Ll = {
673
673
  label: "span"
674
674
  }
675
675
  ]
676
- }, Vl = { form: Ll, table: Ml, listMock: jl, layoutForm: Dl, layoutSection: Nl }, ql = [
676
+ }, Ul = { form: Dl, table: jl, listMock: Nl, layoutForm: Vl, layoutSection: ql }, Hl = [
677
677
  {
678
678
  method: ee.POST,
679
679
  url: "/login",
@@ -717,15 +717,15 @@ const Ll = {
717
717
  {
718
718
  url: "/user/list",
719
719
  method: ee.GET,
720
- response: (e) => Vl.listMock
720
+ response: (e) => Ul.listMock
721
721
  }
722
- ], Ul = [
723
- ...ql
724
- ], Hl = {
722
+ ], Fl = [
723
+ ...Hl
724
+ ], Gl = {
725
725
  baseURL: "/api",
726
726
  withCredentials: !0,
727
727
  cacheEnable: !0
728
- }, rt = {
728
+ }, pt = {
729
729
  title: "oms",
730
730
  fixedHeader: !1,
731
731
  sidebarLogo: !0,
@@ -739,7 +739,7 @@ const Ll = {
739
739
  ElementPlus: {
740
740
  size: "default",
741
741
  zIndex: 3e3,
742
- locale: lt
742
+ locale: nt
743
743
  },
744
744
  nav: [],
745
745
  whiteRoutes: ["/login"],
@@ -749,46 +749,48 @@ const Ll = {
749
749
  uat: "gray",
750
750
  pre: "green"
751
751
  },
752
- serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
752
+ serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~",
753
+ formMutex: !0,
754
+ captcha: !0
753
755
  }, me = {
754
- axios: Hl,
755
- settings: rt,
756
+ axios: Gl,
757
+ settings: pt,
756
758
  plugins: [],
757
759
  mock: !1
758
760
  }, we = {};
759
- function ct(e) {
761
+ function dt(e) {
760
762
  e.forEach((t) => {
761
- const l = ut(t);
763
+ const l = mt(t);
762
764
  we[`${t.method}::${l}`] = t;
763
765
  });
764
766
  }
765
- ct(Ul);
766
- function ut(e) {
767
- var n;
768
- let t = e.url, l = e.baseURL || ((n = me.axios) == null ? void 0 : n.baseURL);
769
- return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
767
+ dt(Fl);
768
+ function mt(e) {
769
+ var o;
770
+ let t = e.url, l = e.baseURL || ((o = me.axios) == null ? void 0 : o.baseURL);
771
+ return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
770
772
  }
771
- function Fl() {
773
+ function Jl() {
772
774
  Object.keys(we).forEach((e) => {
773
- const t = we[e], l = ut(t);
774
- _e.mock(l, t.method, function(n) {
775
- const { url: o, type: a, body: s } = n, p = Ft(o), c = s ? JSON.parse(s) : {}, d = t.response({ query: p, data: c }), f = _e.mock(d);
776
- return Gt(o, { type: a, query: p, data: c, response: f }), _e.mock(f);
775
+ const t = we[e], l = mt(t);
776
+ _e.mock(l, t.method, function(o) {
777
+ const { url: n, type: a, body: s } = o, r = Kt(n), d = s ? JSON.parse(s) : {}, u = t.response({ query: r, data: d }), m = _e.mock(u);
778
+ return Wt(n, { type: a, query: r, data: d, response: m }), _e.mock(m);
777
779
  });
778
- }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
780
+ });
779
781
  }
780
782
  const Le = "oms:token";
781
783
  function Me() {
782
784
  return N.get(Le) || "";
783
785
  }
784
- function Gl(e) {
785
- const t = new Date((/* @__PURE__ */ new Date()).getTime() + (S.state.settings.tokenExpire || 864e5));
786
+ function zl(e) {
787
+ const t = new Date((/* @__PURE__ */ new Date()).getTime() + (g.state.settings.tokenExpire || 864e5));
786
788
  return N.set(Le, e, { expires: t });
787
789
  }
788
- function pt() {
790
+ function ft() {
789
791
  return N.remove(Le);
790
792
  }
791
- const Jl = {
793
+ const Kl = {
792
794
  name: "",
793
795
  nickname: "",
794
796
  avatar: "",
@@ -800,16 +802,17 @@ const Jl = {
800
802
  resource: {},
801
803
  roleIds: [],
802
804
  path: "",
803
- env: ""
804
- }, zl = {
805
+ env: "",
806
+ expired: !1
807
+ }, Wl = {
805
808
  namespaced: !0,
806
- state: Jl,
809
+ state: Kl,
807
810
  mutations: {
808
811
  updateToken(e, t) {
809
- e.token = t, Gl(t);
812
+ e.token = t, zl(t);
810
813
  },
811
814
  removeToken(e) {
812
- e.token = "", pt();
815
+ e.token = "", ft();
813
816
  },
814
817
  updateRemoteRouter(e, t) {
815
818
  e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
@@ -833,8 +836,12 @@ const Jl = {
833
836
  resource: {},
834
837
  roleIds: [],
835
838
  path: "",
836
- env: ""
839
+ env: "",
840
+ expired: !1
837
841
  });
842
+ },
843
+ SET_EXPIRED: (e) => {
844
+ e.expired = !e.expired;
838
845
  }
839
846
  },
840
847
  actions: {
@@ -842,15 +849,15 @@ const Jl = {
842
849
  commit: e,
843
850
  state: t,
844
851
  rootState: l
845
- }, n) {
846
- return new Promise((o, a) => {
852
+ }, o) {
853
+ return new Promise((n, a) => {
847
854
  l.http ? l.http.request({
848
855
  url: "/user/login",
849
856
  method: "POST",
850
- data: n
857
+ data: o
851
858
  }).then((s) => {
852
- var p;
853
- e("updateToken", (p = s.data) == null ? void 0 : p.token), o(!0);
859
+ var r;
860
+ e("updateToken", (r = s.data) == null ? void 0 : r.token), n(!0);
854
861
  }).catch((s) => {
855
862
  a(s);
856
863
  }) : a("http client not init");
@@ -860,25 +867,25 @@ const Jl = {
860
867
  e("removeToken"), e("resetUser");
861
868
  },
862
869
  info({ commit: e, rootState: t }) {
863
- return new Promise((l, n) => {
870
+ return new Promise((l, o) => {
864
871
  t.http ? t.http.request({
865
872
  url: "/user/info",
866
873
  method: "GET"
867
- }).then((o) => {
868
- var p, c, d, f, b, g;
869
- const a = ((p = o.data) == null ? void 0 : p.role_ids) || [];
870
- e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (f = o.data) == null ? void 0 : f.env });
871
- const s = ((b = o.data) == null ? void 0 : b.website) || {};
872
- e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (g = o.data) == null ? void 0 : g.name), l(!0);
873
- }).catch((o) => {
874
- n(o);
875
- }) : n("http client not init");
874
+ }).then((n) => {
875
+ var r, d, u, m, _, k;
876
+ const a = ((r = n.data) == null ? void 0 : r.role_ids) || [];
877
+ e("updateState", { key: "name", value: (d = n.data) == null ? void 0 : d.name }), e("updateState", { key: "nickname", value: (u = n.data) == null ? void 0 : u.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (m = n.data) == null ? void 0 : m.env });
878
+ const s = ((_ = n.data) == null ? void 0 : _.website) || {};
879
+ e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (k = n.data) == null ? void 0 : k.name), l(!0);
880
+ }).catch((n) => {
881
+ o(n);
882
+ }) : o("http client not init");
876
883
  });
877
884
  },
878
885
  loadRemoteRoutes({ state: e, rootState: t }) {
879
- return new Promise((l, n) => {
880
- var o;
881
- (o = t.http) == null || o.request({
886
+ return new Promise((l, o) => {
887
+ var n;
888
+ (n = t.http) == null || n.request({
882
889
  url: "/user/routes",
883
890
  method: "get"
884
891
  }).then((a) => {
@@ -886,16 +893,19 @@ const Jl = {
886
893
  const s = a.data || [];
887
894
  l(s);
888
895
  } else
889
- n("error");
896
+ o("error");
890
897
  }).catch((a) => {
891
- console.log(a), n(a);
898
+ o(a);
892
899
  });
893
900
  });
901
+ },
902
+ SetExpired({ commit: e }) {
903
+ e("SET_EXPIRED");
894
904
  }
895
905
  }
896
- }, Kl = y(rt), Wl = {
906
+ }, Xl = v(pt), Zl = {
897
907
  namespaced: !0,
898
- state: Kl,
908
+ state: Xl,
899
909
  mutations: {
900
910
  updateSettings(e, t) {
901
911
  e = A(e, t);
@@ -906,7 +916,7 @@ const Jl = {
906
916
  e("updateSettings", l);
907
917
  }
908
918
  }
909
- }, Zl = {
919
+ }, Ql = {
910
920
  sidebar: {
911
921
  opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
912
922
  withoutAnimation: !1
@@ -916,9 +926,9 @@ const Jl = {
916
926
  currentRouteMeta: {},
917
927
  builderSchema: {},
918
928
  baseURL: ""
919
- }, Ql = {
929
+ }, Yl = {
920
930
  namespaced: !0,
921
- state: Zl,
931
+ state: Ql,
922
932
  mutations: {
923
933
  TOGGLE_SIDEBAR: (e) => {
924
934
  e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
@@ -965,12 +975,12 @@ const Jl = {
965
975
  e("SET_BASE_API", t);
966
976
  }
967
977
  }
968
- }, Xl = {
978
+ }, en = {
969
979
  currentCellItem: {}
970
980
  // form/sub-form 当前单元格编辑数据
971
- }, Yl = {
981
+ }, tn = {
972
982
  namespaced: !0,
973
- state: Xl,
983
+ state: en,
974
984
  mutations: {
975
985
  SET_CURRENT_CELLITEM: (e, t) => {
976
986
  e.currentCellItem = t;
@@ -981,7 +991,7 @@ const Jl = {
981
991
  e("SET_CURRENT_CELLITEM", t);
982
992
  }
983
993
  }
984
- }, S = Xt({
994
+ }, g = ll({
985
995
  state: void 0,
986
996
  getters: {
987
997
  http: (e) => e.http,
@@ -1008,12 +1018,12 @@ const Jl = {
1008
1018
  }
1009
1019
  },
1010
1020
  modules: {
1011
- user: zl,
1012
- settings: Wl,
1013
- app: Ql,
1014
- builderSchema: Yl
1021
+ user: Wl,
1022
+ settings: Zl,
1023
+ app: Yl,
1024
+ builderSchema: tn
1015
1025
  }
1016
- }), en = el, Ue = tl, tn = Ie.CancelToken, re = {
1026
+ }), ln = ol, Ue = at, nn = $e.CancelToken, re = {
1017
1027
  taskList: {},
1018
1028
  cacheList: /* @__PURE__ */ new Map(),
1019
1029
  uniqueId(e) {
@@ -1038,61 +1048,61 @@ const Jl = {
1038
1048
  this.delCache(e);
1039
1049
  return;
1040
1050
  }
1041
- return console.log("getcache", t, l.response), l.response;
1051
+ return l.response, l.response;
1042
1052
  }
1043
1053
  },
1044
1054
  addCache(e, t) {
1045
- const l = this.uniqueId(e), n = e.cacheTime || 0;
1046
- n && this.cacheList.set(l, { response: t, expirationTime: (/* @__PURE__ */ new Date()).getTime() + n });
1055
+ const l = this.uniqueId(e), o = e.cacheTime || 0;
1056
+ o && this.cacheList.set(l, { response: t, expirationTime: (/* @__PURE__ */ new Date()).getTime() + o });
1047
1057
  },
1048
1058
  delCache(e) {
1049
1059
  const t = this.uniqueId(e);
1050
1060
  return this.cacheList.delete(t);
1051
1061
  }
1052
- }, ln = {
1062
+ }, on = {
1053
1063
  onFulfilled: function(e) {
1054
- return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new tn((t) => {
1064
+ return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new nn((t) => {
1055
1065
  re.addTask(e, t);
1056
1066
  })), e;
1057
1067
  },
1058
1068
  onRejected(e) {
1059
1069
  return Promise.reject(e);
1060
1070
  }
1061
- }, nn = {
1071
+ }, an = {
1062
1072
  onFulfilled: function(e) {
1063
1073
  return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && re.addCache(e.config, e.data), e;
1064
1074
  },
1065
1075
  onRejected(e) {
1066
1076
  return Promise.reject(e);
1067
1077
  }
1068
- }, dt = {};
1069
- function Si(e, t) {
1070
- dt[e] = t;
1078
+ }, ht = {};
1079
+ function Ei(e, t) {
1080
+ ht[e] = t;
1071
1081
  }
1072
- function on(e) {
1073
- return dt[e];
1082
+ function sn(e) {
1083
+ return ht[e];
1074
1084
  }
1075
- const an = /* @__PURE__ */ q({
1085
+ const rn = /* @__PURE__ */ q({
1076
1086
  name: "Dashboard",
1077
1087
  setup() {
1078
- const e = nt(), t = on("dashboard");
1088
+ const e = ot(), t = sn("dashboard");
1079
1089
  if (t)
1080
- return () => u("span", null, [u(t, null, null)]);
1081
- const l = j(() => e.getters.name);
1082
- return () => u("div", {
1090
+ return () => p("span", null, [p(t, null, null)]);
1091
+ const l = M(() => e.getters.name);
1092
+ return () => p("div", {
1083
1093
  class: "dashboard-container"
1084
- }, [u("div", {
1094
+ }, [p("div", {
1085
1095
  class: "dashboard-text"
1086
- }, [k("Hi "), l.value, k(" 😄")])]);
1096
+ }, [S("Hi "), l.value, S(" 😄")])]);
1087
1097
  }
1088
1098
  });
1089
- const I = (e, t) => {
1099
+ const $ = (e, t) => {
1090
1100
  const l = e.__vccOpts || e;
1091
- for (const [n, o] of t)
1092
- l[n] = o;
1101
+ for (const [o, n] of t)
1102
+ l[o] = n;
1093
1103
  return l;
1094
- }, sn = /* @__PURE__ */ I(an, [["__scopeId", "data-v-3122b6c7"]]);
1095
- const rn = {
1104
+ }, cn = /* @__PURE__ */ $(rn, [["__scopeId", "data-v-3122b6c7"]]);
1105
+ const un = {
1096
1106
  data() {
1097
1107
  return {
1098
1108
  levelList: null
@@ -1124,7 +1134,7 @@ const rn = {
1124
1134
  },
1125
1135
  pathCompile(e) {
1126
1136
  const { params: t } = this.$route;
1127
- return $l.compile(e)(t);
1137
+ return Cl.compile(e)(t);
1128
1138
  },
1129
1139
  handleLink(e) {
1130
1140
  const { redirect: t, path: l } = e;
@@ -1135,27 +1145,27 @@ const rn = {
1135
1145
  this.$router.push(this.pathCompile(l));
1136
1146
  }
1137
1147
  }
1138
- }, cn = {
1148
+ }, pn = {
1139
1149
  key: 0,
1140
1150
  class: "no-redirect"
1141
- }, un = ["onClick"];
1142
- function pn(e, t, l, n, o, a) {
1143
- const s = ul, p = pl;
1144
- return i(), m(p, {
1151
+ }, dn = ["onClick"];
1152
+ function mn(e, t, l, o, n, a) {
1153
+ const s = dl, r = ml;
1154
+ return i(), f(r, {
1145
1155
  class: "app-breadcrumb",
1146
1156
  separator: "/"
1147
1157
  }, {
1148
- default: r(() => [
1149
- u(Bt, { name: "breadcrumb" }, {
1150
- default: r(() => [
1151
- (i(!0), h(E, null, B(o.levelList, (c, d) => (i(), m(s, {
1152
- key: c.path
1158
+ default: c(() => [
1159
+ p(Lt, { name: "breadcrumb" }, {
1160
+ default: c(() => [
1161
+ (i(!0), h(I, null, O(n.levelList, (d, u) => (i(), f(s, {
1162
+ key: d.path
1153
1163
  }, {
1154
- default: r(() => [
1155
- c.path.indexOf("/DIR_") === 0 && c.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", cn, O(c.meta.title), 1)) : (i(), h("a", {
1164
+ default: c(() => [
1165
+ d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || u === n.levelList.length - 1 ? (i(), h("span", pn, B(d.meta.title), 1)) : (i(), h("a", {
1156
1166
  key: 1,
1157
- onClick: (f) => a.handleLink(c)
1158
- }, O(c.meta.title), 9, un))
1167
+ onClick: (m) => a.handleLink(d)
1168
+ }, B(d.meta.title), 9, dn))
1159
1169
  ]),
1160
1170
  _: 2
1161
1171
  }, 1024))), 128))
@@ -1166,7 +1176,7 @@ function pn(e, t, l, n, o, a) {
1166
1176
  _: 1
1167
1177
  });
1168
1178
  }
1169
- const dn = /* @__PURE__ */ I(rn, [["render", pn], ["__scopeId", "data-v-fa74804e"]]), mn = {
1179
+ const fn = /* @__PURE__ */ $(un, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
1170
1180
  name: "Hamburger",
1171
1181
  props: {
1172
1182
  isActive: {
@@ -1181,45 +1191,45 @@ const dn = /* @__PURE__ */ I(rn, [["render", pn], ["__scopeId", "data-v-fa74804e
1181
1191
  }
1182
1192
  }
1183
1193
  };
1184
- function fn(e, t, l, n, o, a) {
1185
- const s = v("v-icon");
1194
+ function bn(e, t, l, o, n, a) {
1195
+ const s = w("v-icon");
1186
1196
  return i(), h("div", {
1187
1197
  style: { padding: "0 15px" },
1188
- onClick: t[0] || (t[0] = (...p) => a.toggleClick && a.toggleClick(...p))
1198
+ onClick: t[0] || (t[0] = (...r) => a.toggleClick && a.toggleClick(...r))
1189
1199
  }, [
1190
- u(s, {
1200
+ p(s, {
1191
1201
  class: H({ "is-active": l.isActive }),
1192
1202
  name: "ra-leftalignment"
1193
1203
  }, null, 8, ["class"])
1194
1204
  ]);
1195
1205
  }
1196
- const hn = /* @__PURE__ */ I(mn, [["render", fn]]);
1197
- const bn = {};
1198
- function _n(e, t) {
1199
- const l = ae, n = dl, o = ml, a = fl;
1200
- return i(), m(a, { style: { width: "100%", height: "100%" } }, {
1201
- default: r(() => [
1202
- u(l, { class: "aside" }, {
1203
- default: r(() => [
1206
+ const _n = /* @__PURE__ */ $(hn, [["render", bn]]);
1207
+ const yn = {};
1208
+ function vn(e, t) {
1209
+ const l = ae, o = fl, n = hl, a = bl;
1210
+ return i(), f(a, { style: { width: "100%", height: "100%" } }, {
1211
+ default: c(() => [
1212
+ p(l, { class: "aside" }, {
1213
+ default: c(() => [
1204
1214
  le(e.$slots, "left-aside", {}, void 0, !0)
1205
1215
  ]),
1206
1216
  _: 3
1207
1217
  }),
1208
- u(n, {
1218
+ p(o, {
1209
1219
  class: "main",
1210
1220
  style: { margin: "0 10px" }
1211
1221
  }, {
1212
- default: r(() => [
1222
+ default: c(() => [
1213
1223
  le(e.$slots, "main", {}, void 0, !0)
1214
1224
  ]),
1215
1225
  _: 3
1216
1226
  }),
1217
- u(o, {
1227
+ p(n, {
1218
1228
  class: "aside",
1219
1229
  width: "350px",
1220
1230
  style: { padding: "20px" }
1221
1231
  }, {
1222
- default: r(() => [
1232
+ default: c(() => [
1223
1233
  le(e.$slots, "right-aside", {}, void 0, !0)
1224
1234
  ]),
1225
1235
  _: 3
@@ -1228,7 +1238,7 @@ function _n(e, t) {
1228
1238
  _: 3
1229
1239
  });
1230
1240
  }
1231
- const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b"]]), yn = {
1241
+ const bt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
1232
1242
  type: "input",
1233
1243
  name: "文本框",
1234
1244
  default: {
@@ -1296,7 +1306,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1296
1306
  }
1297
1307
  }
1298
1308
  ]
1299
- }, vn = {
1309
+ }, kn = {
1300
1310
  type: "number",
1301
1311
  name: "数字",
1302
1312
  default: {
@@ -1338,7 +1348,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1338
1348
  }
1339
1349
  }
1340
1350
  ]
1341
- }, gn = {
1351
+ }, wn = {
1342
1352
  type: "number-range",
1343
1353
  name: "数字区间",
1344
1354
  default: {
@@ -1379,7 +1389,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1379
1389
  }
1380
1390
  }
1381
1391
  ]
1382
- }, kn = {
1392
+ }, Sn = {
1383
1393
  type: "select",
1384
1394
  name: "下拉框",
1385
1395
  default: {
@@ -1482,10 +1492,10 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1482
1492
  }
1483
1493
  ],
1484
1494
  trans(e) {
1485
- const t = y(e);
1495
+ const t = v(e);
1486
1496
  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;
1487
1497
  }
1488
- }, wn = {
1498
+ }, xn = {
1489
1499
  type: "radio",
1490
1500
  name: "单选框",
1491
1501
  default: {
@@ -1531,7 +1541,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1531
1541
  label: "默认值"
1532
1542
  }
1533
1543
  ]
1534
- }, Sn = {
1544
+ }, En = {
1535
1545
  type: "switch",
1536
1546
  name: "开关",
1537
1547
  default: {
@@ -1587,7 +1597,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1587
1597
  }
1588
1598
  }
1589
1599
  ]
1590
- }, xn = {
1600
+ }, In = {
1591
1601
  type: "code",
1592
1602
  name: "Code",
1593
1603
  default: {
@@ -1607,7 +1617,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1607
1617
  label: "字段key"
1608
1618
  }
1609
1619
  ]
1610
- }, En = {
1620
+ }, $n = {
1611
1621
  type: "json",
1612
1622
  name: "json",
1613
1623
  default: {
@@ -1627,7 +1637,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1627
1637
  label: "字段key"
1628
1638
  }
1629
1639
  ]
1630
- }, $n = {
1640
+ }, Cn = {
1631
1641
  type: "upload",
1632
1642
  name: "上传",
1633
1643
  default: {
@@ -1647,7 +1657,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1647
1657
  label: "字段key"
1648
1658
  }
1649
1659
  ]
1650
- }, In = {
1660
+ }, Tn = {
1651
1661
  type: "template",
1652
1662
  name: "自定义组件",
1653
1663
  default: {
@@ -1667,7 +1677,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1667
1677
  label: "字段key"
1668
1678
  }
1669
1679
  ]
1670
- }, Cn = {
1680
+ }, Bn = {
1671
1681
  type: "icon-select",
1672
1682
  name: "图标选择器",
1673
1683
  default: {
@@ -1687,7 +1697,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1687
1697
  label: "字段key"
1688
1698
  }
1689
1699
  ]
1690
- }, Tn = {
1700
+ }, On = {
1691
1701
  type: "sub-form",
1692
1702
  name: "子表单",
1693
1703
  default: {
@@ -1755,7 +1765,7 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1755
1765
  }
1756
1766
  }
1757
1767
  ]
1758
- }, On = {
1768
+ }, An = {
1759
1769
  type: "checkbox",
1760
1770
  name: "复选框",
1761
1771
  default: {
@@ -1801,24 +1811,24 @@ const mt = /* @__PURE__ */ I(bn, [["render", _n], ["__scopeId", "data-v-7c3d697b
1801
1811
  }
1802
1812
  }
1803
1813
  ]
1804
- }, ft = {};
1814
+ }, _t = {};
1805
1815
  function P(e) {
1806
- ft[e.type] = e;
1816
+ _t[e.type] = e;
1807
1817
  }
1808
- P(yn);
1809
- P(kn);
1810
- P(vn);
1811
1818
  P(gn);
1812
1819
  P(Sn);
1813
- P(Tn);
1820
+ P(kn);
1814
1821
  P(wn);
1822
+ P(En);
1815
1823
  P(On);
1816
1824
  P(xn);
1817
- P(En);
1825
+ P(An);
1826
+ P(In);
1818
1827
  P($n);
1819
1828
  P(Cn);
1820
- P(In);
1821
- const Se = ft, Bn = {
1829
+ P(Bn);
1830
+ P(Tn);
1831
+ const Se = _t, Pn = {
1822
1832
  options: {
1823
1833
  labelPosition: "top",
1824
1834
  submitButton: !1,
@@ -1921,11 +1931,11 @@ const ye = {
1921
1931
  labelPosition: "top",
1922
1932
  submitButton: !1,
1923
1933
  cancelButton: !1
1924
- }, je = [];
1934
+ }, De = [];
1925
1935
  Object.keys(Se).forEach((e) => {
1926
- je.push({ value: e, label: Se[e].name });
1936
+ De.push({ value: e, label: Se[e].name });
1927
1937
  });
1928
- const An = {
1938
+ const Rn = {
1929
1939
  options: {
1930
1940
  submitButton: !1,
1931
1941
  cancelButton: !1
@@ -1946,7 +1956,7 @@ const An = {
1946
1956
  type: "select",
1947
1957
  field: "type",
1948
1958
  label: "类型",
1949
- options: y(je)
1959
+ options: v(De)
1950
1960
  },
1951
1961
  {
1952
1962
  type: "input",
@@ -1957,8 +1967,8 @@ const An = {
1957
1967
  }
1958
1968
  }
1959
1969
  ]
1960
- }, Pn = {
1961
- components: { DevLayout: mt, VForm: z, VButton: Pe, JsonView: Re },
1970
+ }, Ln = {
1971
+ components: { DevLayout: bt, VForm: z, VButton: Pe, JsonView: Re },
1962
1972
  props: {
1963
1973
  schema: {
1964
1974
  type: Object,
@@ -1969,8 +1979,8 @@ const An = {
1969
1979
  data() {
1970
1980
  return {
1971
1981
  sqlOptions: {},
1972
- sqlSchema: An,
1973
- baseSchema: Bn,
1982
+ sqlSchema: Rn,
1983
+ baseSchema: Pn,
1974
1984
  activeTab: "base",
1975
1985
  builderSchema: Object.assign(
1976
1986
  {},
@@ -1995,7 +2005,7 @@ const An = {
1995
2005
  tableStruct: "",
1996
2006
  activeName: "1",
1997
2007
  currentCtrlType: "input",
1998
- types: y(je)
2008
+ types: v(De)
1999
2009
  };
2000
2010
  },
2001
2011
  computed: {
@@ -2010,7 +2020,7 @@ const An = {
2010
2020
  deep: !0,
2011
2021
  immediate: !0,
2012
2022
  handler(e) {
2013
- const t = y(e);
2023
+ const t = v(e);
2014
2024
  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++);
2015
2025
  }
2016
2026
  },
@@ -2021,13 +2031,13 @@ const An = {
2021
2031
  const t = ne(this.builderSchema, this.activeIndex);
2022
2032
  if (!t)
2023
2033
  return;
2024
- const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
2025
- if (o && Object.keys(o).length > 0) {
2026
- if (o.type = l, this.activeIndex.indexOf("[") > -1) {
2027
- const [a, s, p] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2028
- this.builderSchema[s][p] = { ...o };
2034
+ const l = t ? t.type : "", o = this.ctrlMap[l], n = o.trans ? o.trans(e) : e;
2035
+ if (n && Object.keys(n).length > 0) {
2036
+ if (n.type = l, this.activeIndex.indexOf("[") > -1) {
2037
+ const [a, s, r] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2038
+ this.builderSchema[s][r] = { ...n };
2029
2039
  } else
2030
- this.builderSchema[this.activeIndex] = o;
2040
+ this.builderSchema[this.activeIndex] = n;
2031
2041
  this.key++;
2032
2042
  }
2033
2043
  }
@@ -2035,12 +2045,12 @@ const An = {
2035
2045
  currentCtrlType: {
2036
2046
  handler(e) {
2037
2047
  const t = this.ctrlMap[e];
2038
- this.ctrlSchema = y({
2039
- options: y(ye),
2040
- formItems: y(t.builder)
2048
+ this.ctrlSchema = v({
2049
+ options: v(ye),
2050
+ formItems: v(t.builder)
2041
2051
  });
2042
2052
  const l = ne(this.builderSchema, this.activeIndex);
2043
- this.ctrlOptions = y(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2053
+ this.ctrlOptions = v(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2044
2054
  }
2045
2055
  }
2046
2056
  },
@@ -2060,25 +2070,25 @@ const An = {
2060
2070
  const t = "formItems";
2061
2071
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
2062
2072
  const l = this.ctrlMap[e];
2063
- this.activeCtrl = l, this.builderSchema[t].push(y(l.default)), this.ctrlSchema = y({
2064
- options: y(ye),
2065
- formItems: y(l.builder)
2073
+ this.activeCtrl = l, this.builderSchema[t].push(v(l.default)), this.ctrlSchema = v({
2074
+ options: v(ye),
2075
+ formItems: v(l.builder)
2066
2076
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2067
2077
  },
2068
2078
  removeOne() {
2069
- tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2079
+ lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2070
2080
  },
2071
2081
  clicklabel() {
2072
2082
  const e = this.activeIndex;
2073
2083
  if (e.match(this.activeIndexReg)) {
2074
- const l = y(ne(this.builderSchema, e)), n = l.type, o = this.ctrlMap[n];
2075
- if (!o) {
2084
+ const l = v(ne(this.builderSchema, e)), o = l.type, n = this.ctrlMap[o];
2085
+ if (!n) {
2076
2086
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
2077
2087
  return;
2078
2088
  }
2079
- this.currentCtrlType = n, this.ctrlOptions = l, this.ctrlSchema = y({
2080
- options: y(ye),
2081
- formItems: y(o.builder)
2089
+ this.currentCtrlType = o, this.ctrlOptions = l, this.ctrlSchema = v({
2090
+ options: v(ye),
2091
+ formItems: v(n.builder)
2082
2092
  }), this.ctrlKey++;
2083
2093
  }
2084
2094
  },
@@ -2093,48 +2103,48 @@ const An = {
2093
2103
  }
2094
2104
  }
2095
2105
  };
2096
- function Rn(e, t, l, n, o, a) {
2097
- const s = v("v-form"), p = ot, c = ue, d = v("JsonView"), f = v("VButton"), b = Te, g = Oe, x = at, J = st, U = v("dev-layout");
2098
- return i(), m(U, null, {
2099
- main: r(() => [
2100
- o.builderSchema.formItems ? (i(), m(s, F({
2106
+ function Mn(e, t, l, o, n, a) {
2107
+ const s = w("v-form"), r = it, d = ue, u = w("JsonView"), m = w("VButton"), _ = Te, k = Be, y = rt, J = ct, U = w("dev-layout");
2108
+ return i(), f(U, null, {
2109
+ main: c(() => [
2110
+ n.builderSchema.formItems ? (i(), f(s, F({
2101
2111
  ref: "form",
2102
- key: o.key,
2112
+ key: n.key,
2103
2113
  dev: !0
2104
- }, o.builderSchema), null, 16)) : $("", !0),
2105
- u(p),
2106
- u(c, {
2114
+ }, n.builderSchema), null, 16)) : E("", !0),
2115
+ p(r),
2116
+ p(d, {
2107
2117
  type: "primary",
2108
2118
  onClick: a.saveSchema
2109
2119
  }, {
2110
- default: r(() => [
2111
- k("保存页面配置")
2120
+ default: c(() => [
2121
+ S("保存页面配置")
2112
2122
  ]),
2113
2123
  _: 1
2114
2124
  }, 8, ["onClick"]),
2115
- k("    "),
2116
- u(f, {
2125
+ S("    "),
2126
+ p(m, {
2117
2127
  text: "PageSchema",
2118
2128
  type: "modal"
2119
2129
  }, {
2120
- default: r(() => [
2121
- u(d, { data: a.getSaveSchema }, null, 8, ["data"])
2130
+ default: c(() => [
2131
+ p(u, { data: a.getSaveSchema }, null, 8, ["data"])
2122
2132
  ]),
2123
2133
  _: 1
2124
2134
  })
2125
2135
  ]),
2126
- "right-aside": r(() => [
2127
- o.activeIndex ? (i(), m(J, { key: 0 }, {
2128
- default: r(() => [
2129
- u(x, { label: "控件类型" }, {
2130
- default: r(() => [
2131
- u(g, {
2132
- modelValue: o.currentCtrlType,
2133
- "onUpdate:modelValue": t[0] || (t[0] = (T) => o.currentCtrlType = T)
2136
+ "right-aside": c(() => [
2137
+ n.activeIndex ? (i(), f(J, { key: 0 }, {
2138
+ default: c(() => [
2139
+ p(y, { label: "控件类型" }, {
2140
+ default: c(() => [
2141
+ p(k, {
2142
+ modelValue: n.currentCtrlType,
2143
+ "onUpdate:modelValue": t[0] || (t[0] = (T) => n.currentCtrlType = T)
2134
2144
  }, {
2135
- default: r(() => [
2136
- (i(!0), h(E, null, B(o.types, (T, Z) => (i(), m(b, {
2137
- key: Z,
2145
+ default: c(() => [
2146
+ (i(!0), h(I, null, O(n.types, (T, X) => (i(), f(_, {
2147
+ key: X,
2138
2148
  label: T.label,
2139
2149
  value: T.value
2140
2150
  }, null, 8, ["label", "value"]))), 128))
@@ -2146,17 +2156,17 @@ function Rn(e, t, l, n, o, a) {
2146
2156
  })
2147
2157
  ]),
2148
2158
  _: 1
2149
- })) : $("", !0),
2150
- (i(), m(s, F({
2151
- key: o.ctrlKey,
2152
- modelValue: o.ctrlOptions,
2153
- "onUpdate:modelValue": t[1] || (t[1] = (T) => o.ctrlOptions = T)
2154
- }, o.ctrlSchema), null, 16, ["modelValue"]))
2159
+ })) : E("", !0),
2160
+ (i(), f(s, F({
2161
+ key: n.ctrlKey,
2162
+ modelValue: n.ctrlOptions,
2163
+ "onUpdate:modelValue": t[1] || (t[1] = (T) => n.ctrlOptions = T)
2164
+ }, n.ctrlSchema), null, 16, ["modelValue"]))
2155
2165
  ]),
2156
2166
  _: 1
2157
2167
  });
2158
2168
  }
2159
- const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171"]]), Mn = {
2169
+ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171"]]), jn = {
2160
2170
  type: "input",
2161
2171
  name: "文本框",
2162
2172
  default: {
@@ -2204,7 +2214,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2204
2214
  }
2205
2215
  }
2206
2216
  ]
2207
- }, jn = {
2217
+ }, Nn = {
2208
2218
  type: "select",
2209
2219
  name: "下拉框",
2210
2220
  default: {
@@ -2302,10 +2312,10 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2302
2312
  }
2303
2313
  ],
2304
2314
  trans(e) {
2305
- const t = y(e);
2315
+ const t = v(e);
2306
2316
  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;
2307
2317
  }
2308
- }, Dn = {
2318
+ }, Vn = {
2309
2319
  type: "date",
2310
2320
  name: "日期",
2311
2321
  default: {
@@ -2354,7 +2364,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2354
2364
  labelPosition: "top",
2355
2365
  submitButton: !1,
2356
2366
  cancelButton: !1
2357
- }, Nn = {
2367
+ }, qn = {
2358
2368
  type: "span",
2359
2369
  name: "文本",
2360
2370
  default: {
@@ -2384,7 +2394,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2384
2394
  label: "排序"
2385
2395
  }
2386
2396
  ]
2387
- }, Vn = {
2397
+ }, Un = {
2388
2398
  type: "enum",
2389
2399
  name: "标签",
2390
2400
  default: {
@@ -2435,7 +2445,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2435
2445
  trans(e) {
2436
2446
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
2437
2447
  }
2438
- }, qn = {
2448
+ }, Hn = {
2439
2449
  type: "html",
2440
2450
  name: "HTML",
2441
2451
  default: {
@@ -2460,7 +2470,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2460
2470
  label: "提示"
2461
2471
  }
2462
2472
  ]
2463
- }, Un = {
2473
+ }, Fn = {
2464
2474
  type: "icon",
2465
2475
  name: "图标",
2466
2476
  default: {
@@ -2485,7 +2495,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2485
2495
  label: "提示"
2486
2496
  }
2487
2497
  ]
2488
- }, Hn = {
2498
+ }, Gn = {
2489
2499
  type: "image",
2490
2500
  name: "图片",
2491
2501
  default: {
@@ -2510,7 +2520,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2510
2520
  label: "提示"
2511
2521
  }
2512
2522
  ]
2513
- }, Fn = {
2523
+ }, Jn = {
2514
2524
  type: "json",
2515
2525
  name: "JSON",
2516
2526
  default: {
@@ -2535,7 +2545,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2535
2545
  label: "提示"
2536
2546
  }
2537
2547
  ]
2538
- }, Gn = {
2548
+ }, zn = {
2539
2549
  type: "link",
2540
2550
  name: "链接",
2541
2551
  default: {
@@ -2560,7 +2570,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2560
2570
  label: "提示"
2561
2571
  }
2562
2572
  ]
2563
- }, Jn = {
2573
+ }, Kn = {
2564
2574
  type: "rich",
2565
2575
  name: "富文本",
2566
2576
  default: {
@@ -2585,7 +2595,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2585
2595
  label: "提示"
2586
2596
  }
2587
2597
  ]
2588
- }, zn = {
2598
+ }, Wn = {
2589
2599
  type: "tpl",
2590
2600
  name: "模板",
2591
2601
  default: {
@@ -2616,17 +2626,17 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2616
2626
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2617
2627
  }
2618
2628
  ]
2619
- }, Kn = {
2620
- span: Nn,
2621
- enum: Vn,
2622
- html: qn,
2623
- icon: Un,
2624
- image: Hn,
2625
- json: Fn,
2626
- link: Gn,
2627
- rich: Jn,
2628
- tpl: zn
2629
- }, Wn = {
2629
+ }, Xn = {
2630
+ span: qn,
2631
+ enum: Un,
2632
+ html: Hn,
2633
+ icon: Fn,
2634
+ image: Gn,
2635
+ json: Jn,
2636
+ link: zn,
2637
+ rich: Kn,
2638
+ tpl: Wn
2639
+ }, Zn = {
2630
2640
  type: "jump",
2631
2641
  name: "跳转",
2632
2642
  default: {
@@ -2673,7 +2683,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2673
2683
  }
2674
2684
  }
2675
2685
  ]
2676
- }, Zn = {
2686
+ }, Qn = {
2677
2687
  type: "api",
2678
2688
  name: "接口请求",
2679
2689
  default: {
@@ -2742,7 +2752,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2742
2752
  }
2743
2753
  }
2744
2754
  ]
2745
- }, Qn = {
2755
+ }, Yn = {
2746
2756
  type: "form",
2747
2757
  name: "弹框表单",
2748
2758
  default: {
@@ -2796,7 +2806,7 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2796
2806
  label: "保存接口"
2797
2807
  }
2798
2808
  ]
2799
- }, Xn = {
2809
+ }, eo = {
2800
2810
  type: "table",
2801
2811
  name: "弹框列表",
2802
2812
  default: {
@@ -2850,14 +2860,14 @@ const Ln = /* @__PURE__ */ I(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171
2850
2860
  label: "保存接口"
2851
2861
  }
2852
2862
  ]
2853
- }, Yn = {
2854
- jump: Wn,
2855
- api: Zn,
2856
- form: Qn,
2857
- table: Xn
2863
+ }, to = {
2864
+ jump: Zn,
2865
+ api: Qn,
2866
+ form: Yn,
2867
+ table: eo
2858
2868
  };
2859
- const eo = {
2860
- components: { JsonView: Re, DevLayout: mt, VTable: oe, VForm: z, VButton: Pe },
2869
+ const lo = {
2870
+ components: { JsonView: Re, DevLayout: bt, VTable: oe, VForm: z, VButton: Pe },
2861
2871
  props: {
2862
2872
  schema: {
2863
2873
  type: Object,
@@ -2866,7 +2876,7 @@ const eo = {
2866
2876
  }
2867
2877
  },
2868
2878
  data() {
2869
- const e = At(this.$props.schema);
2879
+ const e = Mt(this.$props.schema);
2870
2880
  return delete e.listApi, e.list = [{}], {
2871
2881
  baseSchema: He,
2872
2882
  activeTab: "base",
@@ -2885,9 +2895,9 @@ const eo = {
2885
2895
  ctrlName: "",
2886
2896
  activeIndex: void 0,
2887
2897
  ctrlMap: {
2888
- filter: { input: Mn, select: jn, date: Dn },
2889
- headers: Kn,
2890
- buttons: Yn
2898
+ filter: { input: jn, select: Nn, date: Vn },
2899
+ headers: Xn,
2900
+ buttons: to
2891
2901
  },
2892
2902
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2893
2903
  currentCtrlType: "input"
@@ -2930,16 +2940,16 @@ const eo = {
2930
2940
  return;
2931
2941
  let l = this.builderSchema[t[1]][parseInt(t[2])].type;
2932
2942
  t[1] === "headers" && l === void 0 && (l = "span");
2933
- const n = this.ctrlMap[this.activeBrick][l];
2934
- if (!n)
2943
+ const o = this.ctrlMap[this.activeBrick][l];
2944
+ if (!o)
2935
2945
  return;
2936
- const o = n.trans ? n.trans(e) : e;
2937
- if (o && Object.keys(o).length > 0) {
2938
- if (o.type = l, this.activeIndex.indexOf("[") > -1) {
2939
- const [a, s, p] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2940
- this.builderSchema[s][p] = { ...o };
2946
+ const n = o.trans ? o.trans(e) : e;
2947
+ if (n && Object.keys(n).length > 0) {
2948
+ if (n.type = l, this.activeIndex.indexOf("[") > -1) {
2949
+ const [a, s, r] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2950
+ this.builderSchema[s][r] = { ...n };
2941
2951
  } else
2942
- this.builderSchema[this.activeIndex] = o;
2952
+ this.builderSchema[this.activeIndex] = n;
2943
2953
  this.key++;
2944
2954
  }
2945
2955
  this.updateBuilderSchema();
@@ -2948,14 +2958,14 @@ const eo = {
2948
2958
  currentCtrlType: {
2949
2959
  handler(e) {
2950
2960
  const t = this.ctrlMap[this.activeBrick][e];
2951
- this.ctrlSchema = y({
2952
- options: y(ve),
2953
- formItems: y(t.builder)
2961
+ this.ctrlSchema = v({
2962
+ options: v(ve),
2963
+ formItems: v(t.builder)
2954
2964
  });
2955
2965
  const l = ne(this.builderSchema, this.activeIndex);
2956
2966
  l.type = e;
2957
- const n = y(l);
2958
- this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
2967
+ const o = v(l);
2968
+ this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
2959
2969
  }
2960
2970
  }
2961
2971
  },
@@ -2989,40 +2999,40 @@ const eo = {
2989
2999
  pushRowButton(e) {
2990
3000
  this.push(e, "rowButton", "buttons", "buttons");
2991
3001
  },
2992
- push(e, t, l, n) {
2993
- const o = this.ctrlMap[l];
2994
- if (!o[e]) {
3002
+ push(e, t, l, o) {
3003
+ const n = this.ctrlMap[l];
3004
+ if (!n[e]) {
2995
3005
  this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
2996
3006
  return;
2997
3007
  }
2998
- this.activeCtrl = o[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(y(o[e].default)), this.ctrlSchema = y({
2999
- options: y(ve),
3000
- formItems: y(o[e].builder)
3008
+ this.activeCtrl = n[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(v(n[e].default)), this.ctrlSchema = v({
3009
+ options: v(ve),
3010
+ formItems: v(n[e].builder)
3001
3011
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
3002
3012
  },
3003
3013
  removeOne() {
3004
- tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3014
+ lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3005
3015
  },
3006
3016
  clicklabel() {
3007
3017
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
3008
3018
  if (t) {
3009
- const l = y(ne(this.builderSchema, e));
3019
+ const l = v(ne(this.builderSchema, e));
3010
3020
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
3011
- let n = this.builderSchema[t[1]][parseInt(t[2])].type;
3012
- t[1] === "headers" && n === void 0 && (n = "span");
3013
- const o = this.ctrlMap[this.activeBrick][n];
3014
- if (!o) {
3015
- console.log(this.activeBrick, n, t), this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
3021
+ let o = this.builderSchema[t[1]][parseInt(t[2])].type;
3022
+ t[1] === "headers" && o === void 0 && (o = "span");
3023
+ const n = this.ctrlMap[this.activeBrick][o];
3024
+ if (!n) {
3025
+ this.activeBrick, this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
3016
3026
  return;
3017
3027
  }
3018
- this.ctrlOptions = l, this.currentCtrlType = n, this.ctrlSchema = y({
3019
- options: y(ve),
3020
- formItems: y(o.builder)
3028
+ this.ctrlOptions = l, this.currentCtrlType = o, this.ctrlSchema = v({
3029
+ options: v(ve),
3030
+ formItems: v(n.builder)
3021
3031
  }), this.ctrlKey++;
3022
3032
  }
3023
3033
  },
3024
3034
  saveSchema() {
3025
- const { filter: e, headers: t, rowButton: l, normalButton: n, batchButton: o } = this.currentBuilderSchema;
3035
+ const { filter: e, headers: t, rowButton: l, normalButton: o, batchButton: n } = this.currentBuilderSchema;
3026
3036
  this.$http.request({
3027
3037
  method: "POST",
3028
3038
  url: "/devtool/page_schema",
@@ -3030,8 +3040,8 @@ const eo = {
3030
3040
  filter: e,
3031
3041
  headers: t,
3032
3042
  rowButton: l,
3033
- normalButton: n,
3034
- batchButton: o
3043
+ normalButton: o,
3044
+ batchButton: n
3035
3045
  }
3036
3046
  }).then(({ data: a }) => {
3037
3047
  a && this.$message({ type: "success", message: "保存成功, 请刷新页面查看效果" });
@@ -3039,59 +3049,59 @@ const eo = {
3039
3049
  }
3040
3050
  }
3041
3051
  };
3042
- function to(e, t, l, n, o, a) {
3043
- const s = de, p = ue, c = ae, d = v("v-table"), f = ot, b = ue, g = v("JsonView"), x = v("VButton"), J = Te, U = Oe, T = at, Z = st, $t = v("v-form"), It = v("dev-layout");
3044
- return i(), m(It, null, {
3045
- "left-aside": r(() => [
3046
- u(c, { style: { width: "200px" } }, {
3047
- default: r(() => [
3048
- u(c, null, {
3049
- default: r(() => [
3050
- u(s, {
3052
+ function no(e, t, l, o, n, a) {
3053
+ const s = de, r = ue, d = ae, u = w("v-table"), m = it, _ = ue, k = w("JsonView"), y = w("VButton"), J = Te, U = Be, T = rt, X = ct, Bt = w("v-form"), Ot = w("dev-layout");
3054
+ return i(), f(Ot, null, {
3055
+ "left-aside": c(() => [
3056
+ p(d, { style: { width: "200px" } }, {
3057
+ default: c(() => [
3058
+ p(d, null, {
3059
+ default: c(() => [
3060
+ p(s, {
3051
3061
  class: "title",
3052
3062
  "data-id": 22222
3053
3063
  }, {
3054
- default: r(() => [
3055
- k("添加搜索条件")
3064
+ default: c(() => [
3065
+ S("添加搜索条件")
3056
3066
  ]),
3057
3067
  _: 1
3058
3068
  }),
3059
- u(s, { class: "ctrl" }, {
3060
- default: r(() => [
3061
- u(p, {
3069
+ p(s, { class: "ctrl" }, {
3070
+ default: c(() => [
3071
+ p(r, {
3062
3072
  class: "ctrl-btn",
3063
3073
  onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
3064
3074
  }, {
3065
- default: r(() => [
3066
- k("文本框")
3075
+ default: c(() => [
3076
+ S("文本框")
3067
3077
  ]),
3068
3078
  _: 1
3069
3079
  })
3070
3080
  ]),
3071
3081
  _: 1
3072
3082
  }),
3073
- u(s, { class: "ctrl" }, {
3074
- default: r(() => [
3075
- u(p, {
3083
+ p(s, { class: "ctrl" }, {
3084
+ default: c(() => [
3085
+ p(r, {
3076
3086
  class: "ctrl-btn",
3077
3087
  onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
3078
3088
  }, {
3079
- default: r(() => [
3080
- k("下拉框")
3089
+ default: c(() => [
3090
+ S("下拉框")
3081
3091
  ]),
3082
3092
  _: 1
3083
3093
  })
3084
3094
  ]),
3085
3095
  _: 1
3086
3096
  }),
3087
- u(s, { class: "ctrl" }, {
3088
- default: r(() => [
3089
- u(p, {
3097
+ p(s, { class: "ctrl" }, {
3098
+ default: c(() => [
3099
+ p(r, {
3090
3100
  class: "ctrl-btn",
3091
3101
  onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
3092
3102
  }, {
3093
- default: r(() => [
3094
- k("日期")
3103
+ default: c(() => [
3104
+ S("日期")
3095
3105
  ]),
3096
3106
  _: 1
3097
3107
  })
@@ -3101,25 +3111,25 @@ function to(e, t, l, n, o, a) {
3101
3111
  ]),
3102
3112
  _: 1
3103
3113
  }),
3104
- u(c, null, {
3105
- default: r(() => [
3106
- u(s, { class: "title" }, {
3107
- default: r(() => [
3108
- k("添加列表项")
3114
+ p(d, null, {
3115
+ default: c(() => [
3116
+ p(s, { class: "title" }, {
3117
+ default: c(() => [
3118
+ S("添加列表项")
3109
3119
  ]),
3110
3120
  _: 1
3111
3121
  }),
3112
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.headers), (C, V) => (i(), m(s, {
3122
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.headers), (C, V) => (i(), f(s, {
3113
3123
  key: `column-${V}`,
3114
3124
  class: "ctrl"
3115
3125
  }, {
3116
- default: r(() => [
3117
- u(p, {
3126
+ default: c(() => [
3127
+ p(r, {
3118
3128
  class: "ctrl-btn",
3119
- onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[C].type)
3129
+ onClick: (fe) => a.pushHeaders(n.ctrlMap.headers[C].type)
3120
3130
  }, {
3121
- default: r(() => [
3122
- k(O(o.ctrlMap.headers[C].name), 1)
3131
+ default: c(() => [
3132
+ S(B(n.ctrlMap.headers[C].name), 1)
3123
3133
  ]),
3124
3134
  _: 2
3125
3135
  }, 1032, ["onClick"])
@@ -3129,25 +3139,25 @@ function to(e, t, l, n, o, a) {
3129
3139
  ]),
3130
3140
  _: 1
3131
3141
  }),
3132
- u(c, null, {
3133
- default: r(() => [
3134
- u(s, { class: "title" }, {
3135
- default: r(() => [
3136
- k("添加行按钮")
3142
+ p(d, null, {
3143
+ default: c(() => [
3144
+ p(s, { class: "title" }, {
3145
+ default: c(() => [
3146
+ S("添加行按钮")
3137
3147
  ]),
3138
3148
  _: 1
3139
3149
  }),
3140
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3150
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3141
3151
  key: `column-${V}`,
3142
3152
  class: "ctrl"
3143
3153
  }, {
3144
- default: r(() => [
3145
- u(p, {
3154
+ default: c(() => [
3155
+ p(r, {
3146
3156
  class: "ctrl-btn",
3147
- onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[C].type)
3157
+ onClick: (fe) => a.pushRowButton(n.ctrlMap.buttons[C].type)
3148
3158
  }, {
3149
- default: r(() => [
3150
- k(O(o.ctrlMap.buttons[C].name), 1)
3159
+ default: c(() => [
3160
+ S(B(n.ctrlMap.buttons[C].name), 1)
3151
3161
  ]),
3152
3162
  _: 2
3153
3163
  }, 1032, ["onClick"])
@@ -3157,36 +3167,36 @@ function to(e, t, l, n, o, a) {
3157
3167
  ]),
3158
3168
  _: 1
3159
3169
  }),
3160
- u(c, null, {
3161
- default: r(() => [
3162
- u(s, { class: "title" }, {
3163
- default: r(() => [
3164
- k("添加常规按钮")
3170
+ p(d, null, {
3171
+ default: c(() => [
3172
+ p(s, { class: "title" }, {
3173
+ default: c(() => [
3174
+ S("添加常规按钮")
3165
3175
  ]),
3166
3176
  _: 1
3167
3177
  }),
3168
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3178
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3169
3179
  key: `column-${V}`,
3170
3180
  class: "ctrl"
3171
3181
  }, {
3172
- default: r(() => [
3173
- u(p, {
3182
+ default: c(() => [
3183
+ p(r, {
3174
3184
  class: "ctrl-btn",
3175
- onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
3185
+ onClick: (fe) => a.pushNormalButton(n.ctrlMap.buttons[C].type)
3176
3186
  }, {
3177
- default: r(() => [
3178
- k(O(o.ctrlMap.buttons[C].name), 1)
3187
+ default: c(() => [
3188
+ S(B(n.ctrlMap.buttons[C].name), 1)
3179
3189
  ]),
3180
3190
  _: 2
3181
3191
  }, 1032, ["onClick"])
3182
3192
  ]),
3183
3193
  _: 2
3184
3194
  }, 1024))), 128)),
3185
- u(s, { class: "ctrl" }, {
3186
- default: r(() => [
3187
- u(p, { class: "ctrl-btn" }, {
3188
- default: r(() => [
3189
- k("按钮组")
3195
+ p(s, { class: "ctrl" }, {
3196
+ default: c(() => [
3197
+ p(r, { class: "ctrl-btn" }, {
3198
+ default: c(() => [
3199
+ S("按钮组")
3190
3200
  ]),
3191
3201
  _: 1
3192
3202
  })
@@ -3196,36 +3206,36 @@ function to(e, t, l, n, o, a) {
3196
3206
  ]),
3197
3207
  _: 1
3198
3208
  }),
3199
- u(c, null, {
3200
- default: r(() => [
3201
- u(s, { class: "title" }, {
3202
- default: r(() => [
3203
- k("添加批量按钮")
3209
+ p(d, null, {
3210
+ default: c(() => [
3211
+ p(s, { class: "title" }, {
3212
+ default: c(() => [
3213
+ S("添加批量按钮")
3204
3214
  ]),
3205
3215
  _: 1
3206
3216
  }),
3207
- (i(!0), h(E, null, B(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3217
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3208
3218
  key: `column-${V}`,
3209
3219
  class: "ctrl"
3210
3220
  }, {
3211
- default: r(() => [
3212
- u(p, {
3221
+ default: c(() => [
3222
+ p(r, {
3213
3223
  class: "ctrl-btn",
3214
- onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
3224
+ onClick: (fe) => a.pushBatchButton(n.ctrlMap.buttons[C].type)
3215
3225
  }, {
3216
- default: r(() => [
3217
- k(O(o.ctrlMap.buttons[C].name), 1)
3226
+ default: c(() => [
3227
+ S(B(n.ctrlMap.buttons[C].name), 1)
3218
3228
  ]),
3219
3229
  _: 2
3220
3230
  }, 1032, ["onClick"])
3221
3231
  ]),
3222
3232
  _: 2
3223
3233
  }, 1024))), 128)),
3224
- u(s, { class: "ctrl" }, {
3225
- default: r(() => [
3226
- u(p, { class: "ctrl-btn" }, {
3227
- default: r(() => [
3228
- k("按钮组")
3234
+ p(s, { class: "ctrl" }, {
3235
+ default: c(() => [
3236
+ p(r, { class: "ctrl-btn" }, {
3237
+ default: c(() => [
3238
+ S("按钮组")
3229
3239
  ]),
3230
3240
  _: 1
3231
3241
  })
@@ -3239,44 +3249,44 @@ function to(e, t, l, n, o, a) {
3239
3249
  _: 1
3240
3250
  })
3241
3251
  ]),
3242
- main: r(() => [
3243
- (i(), m(d, F({
3252
+ main: c(() => [
3253
+ (i(), f(u, F({
3244
3254
  ref: "table",
3245
- key: o.key,
3255
+ key: n.key,
3246
3256
  dev: !0
3247
- }, o.builderSchema), null, 16)),
3248
- u(f),
3249
- u(b, {
3257
+ }, n.builderSchema), null, 16)),
3258
+ p(m),
3259
+ p(_, {
3250
3260
  type: "primary",
3251
3261
  onClick: a.saveSchema
3252
3262
  }, {
3253
- default: r(() => [
3254
- k("保存页面配置")
3263
+ default: c(() => [
3264
+ S("保存页面配置")
3255
3265
  ]),
3256
3266
  _: 1
3257
3267
  }, 8, ["onClick"]),
3258
- k("    "),
3259
- u(x, {
3268
+ S("    "),
3269
+ p(y, {
3260
3270
  text: "PageSchema",
3261
3271
  type: "modal"
3262
3272
  }, {
3263
- default: r(() => [
3264
- u(g, { data: a.getSaveSchema }, null, 8, ["data"])
3273
+ default: c(() => [
3274
+ p(k, { data: a.getSaveSchema }, null, 8, ["data"])
3265
3275
  ]),
3266
3276
  _: 1
3267
3277
  })
3268
3278
  ]),
3269
- "right-aside": r(() => [
3270
- o.activeIndex ? (i(), m(Z, { key: 0 }, {
3271
- default: r(() => [
3272
- u(T, { label: "控件类型" }, {
3273
- default: r(() => [
3274
- u(U, {
3275
- modelValue: o.currentCtrlType,
3276
- "onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
3279
+ "right-aside": c(() => [
3280
+ n.activeIndex ? (i(), f(X, { key: 0 }, {
3281
+ default: c(() => [
3282
+ p(T, { label: "控件类型" }, {
3283
+ default: c(() => [
3284
+ p(U, {
3285
+ modelValue: n.currentCtrlType,
3286
+ "onUpdate:modelValue": t[3] || (t[3] = (C) => n.currentCtrlType = C)
3277
3287
  }, {
3278
- default: r(() => [
3279
- (i(!0), h(E, null, B(a.types, (C, V) => (i(), m(J, {
3288
+ default: c(() => [
3289
+ (i(!0), h(I, null, O(a.types, (C, V) => (i(), f(J, {
3280
3290
  key: V,
3281
3291
  label: C.label,
3282
3292
  value: C.value
@@ -3289,62 +3299,62 @@ function to(e, t, l, n, o, a) {
3289
3299
  })
3290
3300
  ]),
3291
3301
  _: 1
3292
- })) : $("", !0),
3293
- (i(), m($t, F({
3294
- key: o.ctrlKey,
3295
- modelValue: o.ctrlOptions,
3296
- "onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
3297
- }, o.ctrlSchema), null, 16, ["modelValue"]))
3302
+ })) : E("", !0),
3303
+ (i(), f(Bt, F({
3304
+ key: n.ctrlKey,
3305
+ modelValue: n.ctrlOptions,
3306
+ "onUpdate:modelValue": t[4] || (t[4] = (C) => n.ctrlOptions = C)
3307
+ }, n.ctrlSchema), null, 16, ["modelValue"]))
3298
3308
  ]),
3299
3309
  _: 1
3300
3310
  });
3301
3311
  }
3302
- const lo = /* @__PURE__ */ I(eo, [["render", to], ["__scopeId", "data-v-e5209cb7"]]), no = {
3312
+ const oo = /* @__PURE__ */ $(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), ao = {
3303
3313
  name: "PageEditor",
3304
- components: { FormBuilder: Ln, TableBuilder: lo },
3314
+ components: { FormBuilder: Dn, TableBuilder: oo },
3305
3315
  setup() {
3306
- const e = M(!1), t = M(1), l = "rtl", n = pe(), o = j(() => S.state.app.pages[n.path]);
3307
- return { show: e, key: t, direction: l, pageSchema: o };
3316
+ const e = D(!1), t = D(1), l = "rtl", o = pe(), n = M(() => g.state.app.pages[o.path]);
3317
+ return { show: e, key: t, direction: l, pageSchema: n };
3308
3318
  }
3309
3319
  };
3310
- function oo(e, t, l, n, o, a) {
3311
- const s = v("VIcon"), p = v("form-builder"), c = v("table-builder"), d = it;
3312
- return i(), h(E, null, [
3313
- u(s, {
3320
+ function so(e, t, l, o, n, a) {
3321
+ const s = w("VIcon"), r = w("form-builder"), d = w("table-builder"), u = ut;
3322
+ return i(), h(I, null, [
3323
+ p(s, {
3314
3324
  name: "ra-set",
3315
- onClick: t[0] || (t[0] = (f) => n.show = !n.show)
3325
+ onClick: t[0] || (t[0] = (m) => o.show = !o.show)
3316
3326
  }),
3317
- u(d, {
3318
- modelValue: n.show,
3319
- "onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
3327
+ p(u, {
3328
+ modelValue: o.show,
3329
+ "onUpdate:modelValue": t[1] || (t[1] = (m) => o.show = m),
3320
3330
  title: "页面设计",
3321
3331
  class: "my-drawer",
3322
- direction: n.direction,
3332
+ direction: o.direction,
3323
3333
  size: "90%",
3324
3334
  "destroy-on-close": "",
3325
3335
  "append-to-body": ""
3326
3336
  }, {
3327
- default: r(() => [
3328
- n.pageSchema.formItems !== void 0 ? (i(), m(p, {
3337
+ default: c(() => [
3338
+ o.pageSchema.formItems !== void 0 ? (i(), f(r, {
3329
3339
  key: 0,
3330
- schema: n.pageSchema
3331
- }, null, 8, ["schema"])) : $("", !0),
3332
- n.pageSchema.headers !== void 0 ? (i(), m(c, {
3340
+ schema: o.pageSchema
3341
+ }, null, 8, ["schema"])) : E("", !0),
3342
+ o.pageSchema.headers !== void 0 ? (i(), f(d, {
3333
3343
  key: 1,
3334
- schema: n.pageSchema
3335
- }, null, 8, ["schema"])) : $("", !0)
3344
+ schema: o.pageSchema
3345
+ }, null, 8, ["schema"])) : E("", !0)
3336
3346
  ]),
3337
3347
  _: 1
3338
3348
  }, 8, ["modelValue", "direction"])
3339
3349
  ], 64);
3340
3350
  }
3341
- const ao = /* @__PURE__ */ I(no, [["render", oo]]);
3342
- const so = {
3351
+ const io = /* @__PURE__ */ $(ao, [["render", so]]);
3352
+ const ro = {
3343
3353
  components: {
3344
- Breadcrumb: dn,
3345
- Hamburger: hn,
3354
+ Breadcrumb: fn,
3355
+ Hamburger: _n,
3346
3356
  VButton: Pe,
3347
- PageEditor: ao
3357
+ PageEditor: io
3348
3358
  },
3349
3359
  data() {
3350
3360
  return {
@@ -3375,7 +3385,7 @@ const so = {
3375
3385
  }
3376
3386
  },
3377
3387
  mounted() {
3378
- Xe("el-submenu is-active");
3388
+ Ye("el-submenu is-active");
3379
3389
  const e = this.getSetting("navBarNotice");
3380
3390
  e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
3381
3391
  title: "提示",
@@ -3383,7 +3393,7 @@ const so = {
3383
3393
  dangerouslyUseHTMLString: !0,
3384
3394
  duration: 0,
3385
3395
  onClose: this.closeNavBarNotice
3386
- }), this.setting.envColor[this.user.env] && Jt({
3396
+ }), this.setting.envColor[this.user.env] && Xt({
3387
3397
  elRef: this.$refs.header.$el,
3388
3398
  waterMark: this.user.env,
3389
3399
  color: "skyblue",
@@ -3415,74 +3425,74 @@ const so = {
3415
3425
  be.set(t, e);
3416
3426
  },
3417
3427
  gotoMenuEdit() {
3418
- var e, t, l, n;
3419
- (t = (e = this.$route) == null ? void 0 : e.meta) != null && t.pageId && window.open(location.origin + location.pathname + "#/menu/" + ((n = (l = this.$route) == null ? void 0 : l.meta) == null ? void 0 : n.pageId));
3428
+ var e, t, l, o;
3429
+ (t = (e = this.$route) == null ? void 0 : e.meta) != null && t.pageId && window.open(location.origin + location.pathname + "#/menu/" + ((o = (l = this.$route) == null ? void 0 : l.meta) == null ? void 0 : o.pageId));
3420
3430
  }
3421
3431
  }
3422
- }, io = { class: "right-content" }, ro = { class: "right-item" }, co = {
3432
+ }, co = { class: "right-content" }, uo = { class: "right-item" }, po = {
3423
3433
  key: 0,
3424
3434
  class: "right-item"
3425
- }, uo = {
3435
+ }, mo = {
3426
3436
  class: "right-item-button",
3427
3437
  style: { padding: "0" }
3428
- }, po = { class: "user-info" }, mo = ["src"], fo = { class: "user-name" };
3429
- function ho(e, t, l, n, o, a) {
3430
- const s = v("hamburger"), p = v("breadcrumb"), c = de, d = v("VIcon"), f = v("PageEditor"), b = v("v-button"), g = hl, x = bl, J = _l, U = it, T = ae;
3431
- return i(), m(T, {
3438
+ }, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
3439
+ function _o(e, t, l, o, n, a) {
3440
+ const s = w("hamburger"), r = w("breadcrumb"), d = de, u = w("VIcon"), m = w("PageEditor"), _ = w("v-button"), k = _l, y = yl, J = vl, U = ut, T = ae;
3441
+ return i(), f(T, {
3432
3442
  ref: "header",
3433
3443
  class: "navbar",
3434
- style: Pt({ background: a.setting.envColor[a.user.env] })
3444
+ style: Dt({ background: a.setting.envColor[a.user.env] })
3435
3445
  }, {
3436
- default: r(() => [
3437
- u(c, { span: 16 }, {
3438
- default: r(() => [
3439
- u(s, {
3446
+ default: c(() => [
3447
+ p(d, { span: 16 }, {
3448
+ default: c(() => [
3449
+ p(s, {
3440
3450
  "is-active": e.sidebar.opened,
3441
3451
  class: "hamburger-container",
3442
3452
  onToggleClick: a.toggleSideBar
3443
3453
  }, null, 8, ["is-active", "onToggleClick"]),
3444
- u(p, { class: "breadcrumb-container" })
3454
+ p(r, { class: "breadcrumb-container" })
3445
3455
  ]),
3446
3456
  _: 1
3447
3457
  }),
3448
- u(c, { span: 8 }, {
3449
- default: r(() => [
3450
- _("div", io, [
3451
- _("div", ro, [
3452
- u(d, {
3458
+ p(d, { span: 8 }, {
3459
+ default: c(() => [
3460
+ b("div", co, [
3461
+ b("div", uo, [
3462
+ p(u, {
3453
3463
  name: "ra-code",
3454
3464
  onClick: a.gotoMenuEdit
3455
3465
  }, null, 8, ["onClick"])
3456
3466
  ]),
3457
- a.showPageJsonSchemaIcon ? (i(), h("div", co, [
3458
- u(f)
3459
- ])) : $("", !0),
3460
- _("div", uo, [
3461
- u(b, { buttons: e.nav }, null, 8, ["buttons"])
3467
+ a.showPageJsonSchemaIcon ? (i(), h("div", po, [
3468
+ p(m)
3469
+ ])) : E("", !0),
3470
+ b("div", mo, [
3471
+ p(_, { buttons: e.nav }, null, 8, ["buttons"])
3462
3472
  ]),
3463
- u(J, {
3473
+ p(J, {
3464
3474
  class: "right-item",
3465
3475
  trigger: "click"
3466
3476
  }, {
3467
- dropdown: r(() => [
3468
- u(x, { class: "user-dropdown" }, {
3469
- default: r(() => [
3470
- u(g, {
3477
+ dropdown: c(() => [
3478
+ p(y, { class: "user-dropdown" }, {
3479
+ default: c(() => [
3480
+ p(k, {
3471
3481
  icon: "oms-icon-index",
3472
- onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
3482
+ onClick: t[0] || (t[0] = (X) => e.$router.push("/"))
3473
3483
  }, {
3474
- default: r(() => [
3475
- k("首页")
3484
+ default: c(() => [
3485
+ S("首页")
3476
3486
  ]),
3477
3487
  _: 1
3478
3488
  }),
3479
- u(g, {
3489
+ p(k, {
3480
3490
  divided: "",
3481
3491
  icon: "el-icon-switch-button",
3482
3492
  onClick: a.logout
3483
3493
  }, {
3484
- default: r(() => [
3485
- k("退出登录")
3494
+ default: c(() => [
3495
+ S("退出登录")
3486
3496
  ]),
3487
3497
  _: 1
3488
3498
  }, 8, ["onClick"])
@@ -3490,15 +3500,15 @@ function ho(e, t, l, n, o, a) {
3490
3500
  _: 1
3491
3501
  })
3492
3502
  ]),
3493
- default: r(() => [
3494
- _("div", po, [
3495
- _("img", {
3496
- src: e.avatar ? e.avatar : o.defaultAvatar,
3503
+ default: c(() => [
3504
+ b("div", fo, [
3505
+ b("img", {
3506
+ src: e.avatar ? e.avatar : n.defaultAvatar,
3497
3507
  class: "user-avatar",
3498
3508
  alt: "头像"
3499
- }, null, 8, mo),
3500
- k(),
3501
- _("span", fo, O(e.nickname || e.name), 1)
3509
+ }, null, 8, ho),
3510
+ S(),
3511
+ b("span", bo, B(e.nickname || e.name), 1)
3502
3512
  ])
3503
3513
  ]),
3504
3514
  _: 1
@@ -3507,17 +3517,17 @@ function ho(e, t, l, n, o, a) {
3507
3517
  ]),
3508
3518
  _: 1
3509
3519
  }),
3510
- o.showJsonSchema ? (i(), m(U, {
3520
+ n.showJsonSchema ? (i(), f(U, {
3511
3521
  key: 0,
3512
3522
  "with-header": !1,
3513
3523
  size: "50%"
3514
- })) : $("", !0)
3524
+ })) : E("", !0)
3515
3525
  ]),
3516
3526
  _: 1
3517
3527
  }, 8, ["style"]);
3518
3528
  }
3519
- const bo = /* @__PURE__ */ I(so, [["render", ho], ["__scopeId", "data-v-99b3c688"]]);
3520
- const _o = {
3529
+ const yo = /* @__PURE__ */ $(ro, [["render", _o], ["__scopeId", "data-v-99b3c688"]]);
3530
+ const vo = {
3521
3531
  name: "SidebarLogo",
3522
3532
  props: {
3523
3533
  collapse: {
@@ -3533,43 +3543,43 @@ const _o = {
3533
3543
  return this.$store.state.settings.logo;
3534
3544
  }
3535
3545
  }
3536
- }, yo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), vo = ["src"], go = {
3546
+ }, go = (e) => (Ke("data-v-49084925"), e = e(), We(), e), ko = ["src"], wo = {
3537
3547
  key: 1,
3538
3548
  class: "sidebar-title"
3539
- }, ko = /* @__PURE__ */ yo(() => /* @__PURE__ */ _("div", null, "系统", -1)), wo = ["src"], So = { class: "sidebar-title" };
3540
- function xo(e, t, l, n, o, a) {
3541
- const s = v("router-link");
3549
+ }, So = /* @__PURE__ */ go(() => /* @__PURE__ */ b("div", null, "系统", -1)), xo = ["src"], Eo = { class: "sidebar-title" };
3550
+ function Io(e, t, l, o, n, a) {
3551
+ const s = w("router-link");
3542
3552
  return i(), h("div", {
3543
3553
  class: H(["sidebar-logo-container", { collapse: l.collapse }])
3544
3554
  }, [
3545
- u(Rt, { name: "sidebarLogoFade" }, {
3546
- default: r(() => [
3547
- l.collapse ? (i(), m(s, {
3555
+ p(jt, { name: "sidebarLogoFade" }, {
3556
+ default: c(() => [
3557
+ l.collapse ? (i(), f(s, {
3548
3558
  key: "collapse",
3549
3559
  class: "sidebar-logo-link",
3550
3560
  to: "/"
3551
3561
  }, {
3552
- default: r(() => [
3562
+ default: c(() => [
3553
3563
  a.logo ? (i(), h("img", {
3554
3564
  key: 0,
3555
3565
  src: a.logo,
3556
3566
  class: "sidebar-logo"
3557
- }, null, 8, vo)) : (i(), h("h1", go, O(a.title), 1)),
3558
- ko
3567
+ }, null, 8, ko)) : (i(), h("h1", wo, B(a.title), 1)),
3568
+ So
3559
3569
  ]),
3560
3570
  _: 1
3561
- })) : (i(), m(s, {
3571
+ })) : (i(), f(s, {
3562
3572
  key: "expand",
3563
3573
  class: "sidebar-logo-link",
3564
3574
  to: "/"
3565
3575
  }, {
3566
- default: r(() => [
3576
+ default: c(() => [
3567
3577
  a.logo ? (i(), h("img", {
3568
3578
  key: 0,
3569
3579
  src: a.logo,
3570
3580
  class: "sidebar-logo"
3571
- }, null, 8, wo)) : $("", !0),
3572
- _("h1", So, O(a.title), 1)
3581
+ }, null, 8, xo)) : E("", !0),
3582
+ b("h1", Eo, B(a.title), 1)
3573
3583
  ]),
3574
3584
  _: 1
3575
3585
  }))
@@ -3578,7 +3588,7 @@ function xo(e, t, l, n, o, a) {
3578
3588
  })
3579
3589
  ], 2);
3580
3590
  }
3581
- const Eo = /* @__PURE__ */ I(_o, [["render", xo], ["__scopeId", "data-v-49084925"]]), $o = {
3591
+ const $o = /* @__PURE__ */ $(vo, [["render", Io], ["__scopeId", "data-v-49084925"]]), Co = {
3582
3592
  props: {
3583
3593
  to: {
3584
3594
  type: String,
@@ -3611,15 +3621,15 @@ const Eo = /* @__PURE__ */ I(_o, [["render", xo], ["__scopeId", "data-v-49084925
3611
3621
  }
3612
3622
  }
3613
3623
  };
3614
- function Io(e, t, l, n, o, a) {
3615
- return i(), m(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3616
- default: r(() => [
3624
+ function To(e, t, l, o, n, a) {
3625
+ return i(), f(Xe(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3626
+ default: c(() => [
3617
3627
  le(e.$slots, "default")
3618
3628
  ]),
3619
3629
  _: 3
3620
3630
  }, 16);
3621
3631
  }
3622
- const Co = /* @__PURE__ */ I($o, [["render", Io]]), To = {
3632
+ const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
3623
3633
  computed: {
3624
3634
  // @ts-ignore
3625
3635
  device() {
@@ -3640,7 +3650,7 @@ const Co = /* @__PURE__ */ I($o, [["render", Io]]), To = {
3640
3650
  }
3641
3651
  }
3642
3652
  }
3643
- }, Oo = { class: "menu-content" }, Bo = /* @__PURE__ */ q({
3653
+ }, Ao = { class: "menu-content" }, Po = /* @__PURE__ */ q({
3644
3654
  __name: "MenuContent",
3645
3655
  props: {
3646
3656
  meta: {
@@ -3653,22 +3663,22 @@ const Co = /* @__PURE__ */ I($o, [["render", Io]]), To = {
3653
3663
  },
3654
3664
  setup(e) {
3655
3665
  return (t, l) => {
3656
- const n = v("VIcon");
3657
- return i(), h(E, null, [
3658
- u(n, {
3666
+ const o = w("VIcon");
3667
+ return i(), h(I, null, [
3668
+ p(o, {
3659
3669
  name: e.meta.icon || "ra-all"
3660
3670
  }, null, 8, ["name"]),
3661
- _("span", Oo, O(e.meta.title), 1)
3671
+ b("span", Ao, B(e.meta.title), 1)
3662
3672
  ], 64);
3663
3673
  };
3664
3674
  }
3665
- }), Ao = {
3675
+ }), Ro = {
3666
3676
  name: "SidebarItem",
3667
3677
  components: {
3668
- AppLink: Co,
3669
- MenuContent: Bo
3678
+ AppLink: Bo,
3679
+ MenuContent: Po
3670
3680
  },
3671
- mixins: [To],
3681
+ mixins: [Oo],
3672
3682
  props: {
3673
3683
  // route object
3674
3684
  item: {
@@ -3693,26 +3703,26 @@ const Co = /* @__PURE__ */ I($o, [["render", Io]]), To = {
3693
3703
  }
3694
3704
  }
3695
3705
  }
3696
- }, Po = {
3706
+ }, Lo = {
3697
3707
  key: 0,
3698
3708
  class: "menu-wrapper"
3699
3709
  };
3700
- function Ro(e, t, l, n, o, a) {
3701
- const s = v("menu-content"), p = yl, c = v("app-link"), d = v("sidebar-item", !0), f = vl;
3702
- return l.item.hidden !== !1 ? (i(), h("div", Po, [
3703
- l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
3704
- l.item.meta ? (i(), m(c, {
3710
+ function Mo(e, t, l, o, n, a) {
3711
+ const s = w("menu-content"), r = gl, d = w("app-link"), u = w("sidebar-item", !0), m = kl;
3712
+ return l.item.hidden !== !1 ? (i(), h("div", Lo, [
3713
+ l.item.meta && l.item.meta.menuType === 2 ? (i(), h(I, { key: 0 }, [
3714
+ l.item.meta ? (i(), f(d, {
3705
3715
  key: 0,
3706
3716
  to: l.to,
3707
3717
  "new-tab": l.item.meta.newTab
3708
3718
  }, {
3709
- default: r(() => [
3710
- u(p, {
3719
+ default: c(() => [
3720
+ p(r, {
3711
3721
  index: l.to,
3712
3722
  class: H({ "submenu-title-noDropdown": !l.isNest })
3713
3723
  }, {
3714
- default: r(() => [
3715
- u(s, {
3724
+ default: c(() => [
3725
+ p(s, {
3716
3726
  meta: l.item.meta
3717
3727
  }, null, 8, ["meta"])
3718
3728
  ]),
@@ -3720,50 +3730,50 @@ function Ro(e, t, l, n, o, a) {
3720
3730
  }, 8, ["index", "class"])
3721
3731
  ]),
3722
3732
  _: 1
3723
- }, 8, ["to", "new-tab"])) : $("", !0)
3724
- ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
3733
+ }, 8, ["to", "new-tab"])) : E("", !0)
3734
+ ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), f(m, {
3725
3735
  key: 1,
3726
3736
  ref: "subMenu",
3727
3737
  index: l.to,
3728
3738
  class: H({ "submenu-title-noDropdown": !l.isNest })
3729
3739
  }, {
3730
- title: r(() => [
3731
- l.item.redirect && l.item.redirect !== "#" ? (i(), m(c, {
3740
+ title: c(() => [
3741
+ l.item.redirect && l.item.redirect !== "#" ? (i(), f(d, {
3732
3742
  key: 0,
3733
3743
  to: l.to
3734
3744
  }, {
3735
- default: r(() => [
3736
- u(s, {
3745
+ default: c(() => [
3746
+ p(s, {
3737
3747
  meta: l.item.meta
3738
3748
  }, null, 8, ["meta"])
3739
3749
  ]),
3740
3750
  _: 1
3741
- }, 8, ["to"])) : (i(), m(s, {
3751
+ }, 8, ["to"])) : (i(), f(s, {
3742
3752
  key: 1,
3743
3753
  meta: l.item.meta
3744
3754
  }, null, 8, ["meta"]))
3745
3755
  ]),
3746
- default: r(() => [
3747
- (i(!0), h(E, null, B(l.item.children, (b) => (i(), m(d, {
3748
- key: b.path,
3756
+ default: c(() => [
3757
+ (i(!0), h(I, null, O(l.item.children, (_) => (i(), f(u, {
3758
+ key: _.path,
3749
3759
  "is-nest": !0,
3750
- item: b,
3751
- to: a.getTo(b),
3760
+ item: _,
3761
+ to: a.getTo(_),
3752
3762
  class: "nest-menu"
3753
3763
  }, null, 8, ["item", "to"]))), 128))
3754
3764
  ]),
3755
3765
  _: 1
3756
- }, 8, ["index", "class"])) : $("", !0)
3757
- ])) : $("", !0);
3766
+ }, 8, ["index", "class"])) : E("", !0)
3767
+ ])) : E("", !0);
3758
3768
  }
3759
- const Lo = /* @__PURE__ */ I(Ao, [["render", Ro]]);
3760
- function ht(e) {
3769
+ const Do = /* @__PURE__ */ $(Ro, [["render", Mo]]);
3770
+ function yt(e) {
3761
3771
  return e.filter((t) => {
3762
3772
  var l;
3763
- return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ht(t.children), t.children.length === 0 && delete t.children), !0);
3773
+ return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = yt(t.children), t.children.length === 0 && delete t.children), !0);
3764
3774
  });
3765
3775
  }
3766
- const Mo = {
3776
+ const jo = {
3767
3777
  data() {
3768
3778
  return {
3769
3779
  selected: ""
@@ -3774,8 +3784,8 @@ const Mo = {
3774
3784
  filterRoutes() {
3775
3785
  let e = [];
3776
3786
  return this.remoteRouter.forEach((t) => {
3777
- e = e.concat(y(t.routes));
3778
- }), ht(e);
3787
+ e = e.concat(v(t.routes));
3788
+ }), yt(e);
3779
3789
  }
3780
3790
  },
3781
3791
  methods: {
@@ -3795,59 +3805,59 @@ const Mo = {
3795
3805
  }
3796
3806
  }
3797
3807
  };
3798
- function jo(e, t, l, n, o, a) {
3799
- const s = Te, p = gl, c = Oe;
3800
- return i(), m(c, {
3801
- modelValue: o.selected,
3802
- "onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
3808
+ function No(e, t, l, o, n, a) {
3809
+ const s = Te, r = wl, d = Be;
3810
+ return i(), f(d, {
3811
+ modelValue: n.selected,
3812
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => n.selected = u),
3803
3813
  filterable: "",
3804
3814
  placeholder: "搜索菜单...",
3805
3815
  class: "search-menu",
3806
3816
  onChange: a.onselected
3807
3817
  }, {
3808
- default: r(() => [
3809
- (i(!0), h(E, null, B(a.filterRoutes, (d) => (i(), h(E, {
3810
- key: d.path
3818
+ default: c(() => [
3819
+ (i(!0), h(I, null, O(a.filterRoutes, (u) => (i(), h(I, {
3820
+ key: u.path
3811
3821
  }, [
3812
- d.children !== void 0 ? (i(), h(E, { key: 0 }, [
3813
- d.meta.menuType !== 0 ? (i(), m(p, {
3814
- key: d.path + "-",
3815
- label: d.meta.title
3822
+ u.children !== void 0 ? (i(), h(I, { key: 0 }, [
3823
+ u.meta.menuType !== 0 ? (i(), f(r, {
3824
+ key: u.path + "-",
3825
+ label: u.meta.title
3816
3826
  }, {
3817
- default: r(() => [
3818
- (i(!0), h(E, null, B(d.children, (f, b) => (i(), h(E, {
3819
- key: f.path
3827
+ default: c(() => [
3828
+ (i(!0), h(I, null, O(u.children, (m, _) => (i(), h(I, {
3829
+ key: m.path
3820
3830
  }, [
3821
- d.meta.menuType !== 0 ? (i(), m(s, {
3831
+ u.meta.menuType !== 0 ? (i(), f(s, {
3822
3832
  key: 0,
3823
- label: (b === d.children.length - 1 ? "└─" : "├─") + f.meta.title,
3824
- value: a.getJumpPath(f)
3825
- }, null, 8, ["label", "value"])) : $("", !0)
3833
+ label: (_ === u.children.length - 1 ? "└─" : "├─") + m.meta.title,
3834
+ value: a.getJumpPath(m)
3835
+ }, null, 8, ["label", "value"])) : E("", !0)
3826
3836
  ], 64))), 128))
3827
3837
  ]),
3828
3838
  _: 2
3829
- }, 1032, ["label"])) : $("", !0)
3830
- ], 64)) : (i(), m(s, {
3839
+ }, 1032, ["label"])) : E("", !0)
3840
+ ], 64)) : (i(), f(s, {
3831
3841
  key: 1,
3832
- label: "" + d.meta.title,
3833
- value: a.getJumpPath(d)
3842
+ label: "" + u.meta.title,
3843
+ value: a.getJumpPath(u)
3834
3844
  }, null, 8, ["label", "value"]))
3835
3845
  ], 64))), 128))
3836
3846
  ]),
3837
3847
  _: 1
3838
3848
  }, 8, ["modelValue", "onChange"]);
3839
3849
  }
3840
- const Do = /* @__PURE__ */ I(Mo, [["render", jo], ["__scopeId", "data-v-38301044"]]);
3841
- var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}), L = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(L || {});
3842
- const No = q({
3843
- components: { SidebarItem: Lo, Logo: Eo, SearchMenu: Do },
3850
+ const Vo = /* @__PURE__ */ $(jo, [["render", No], ["__scopeId", "data-v-38301044"]]);
3851
+ var j = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(j || {}), L = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(L || {});
3852
+ const qo = q({
3853
+ components: { SidebarItem: Do, Logo: $o, SearchMenu: Vo },
3844
3854
  computed: {
3845
3855
  ...Ce(["sidebar", "remoteRouter", "customRouter"]),
3846
3856
  routes() {
3847
3857
  let e = [];
3848
3858
  return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
3849
3859
  t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
3850
- }), y([
3860
+ }), v([
3851
3861
  {
3852
3862
  label: "",
3853
3863
  routes: e
@@ -3883,26 +3893,26 @@ const No = q({
3883
3893
  },
3884
3894
  methods: {
3885
3895
  showActive() {
3886
- Xe("is-active", 200);
3896
+ Ye("is-active", 200);
3887
3897
  },
3888
3898
  filterRoute(e) {
3889
3899
  return e.filter((t) => [L.dir, L.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
3890
3900
  }
3891
3901
  }
3892
3902
  });
3893
- function Vo(e, t, l, n, o, a) {
3894
- const s = v("logo"), p = v("search-menu"), c = v("sidebar-item"), d = kl, f = wl;
3903
+ function Uo(e, t, l, o, n, a) {
3904
+ const s = w("logo"), r = w("search-menu"), d = w("sidebar-item"), u = Sl, m = xl;
3895
3905
  return i(), h("div", {
3896
3906
  class: H({ "has-logo": e.showLogo })
3897
3907
  }, [
3898
- e.showLogo ? (i(), m(s, {
3908
+ e.showLogo ? (i(), f(s, {
3899
3909
  key: 0,
3900
3910
  collapse: e.isCollapse
3901
- }, null, 8, ["collapse"])) : $("", !0),
3902
- u(f, { "wrap-class": "scrollbar-wrapper" }, {
3903
- default: r(() => [
3904
- e.isCollapse ? $("", !0) : (i(), m(p, { key: 0 })),
3905
- u(d, {
3911
+ }, null, 8, ["collapse"])) : E("", !0),
3912
+ p(m, { "wrap-class": "scrollbar-wrapper" }, {
3913
+ default: c(() => [
3914
+ e.isCollapse ? E("", !0) : (i(), f(r, { key: 0 })),
3915
+ p(u, {
3906
3916
  "default-active": e.activeMenu,
3907
3917
  collapse: e.isCollapse,
3908
3918
  "background-color": e.variables.menuBg,
@@ -3912,14 +3922,14 @@ function Vo(e, t, l, n, o, a) {
3912
3922
  "collapse-transition": !1,
3913
3923
  mode: "vertical"
3914
3924
  }, {
3915
- default: r(() => [
3916
- (i(!0), h(E, null, B(e.routes, (b, g) => (i(), h(E, {
3917
- key: g + "-module"
3925
+ default: c(() => [
3926
+ (i(!0), h(I, null, O(e.routes, (_, k) => (i(), h(I, {
3927
+ key: k + "-module"
3918
3928
  }, [
3919
- (i(!0), h(E, null, B(e.filterRoute(b.routes), (x) => (i(), m(c, {
3920
- key: x.path,
3921
- item: x,
3922
- to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
3929
+ (i(!0), h(I, null, O(e.filterRoute(_.routes), (y) => (i(), f(d, {
3930
+ key: y.path,
3931
+ item: y,
3932
+ to: e.$router.resolve(y.redirect ? y.redirect : y).fullPath
3923
3933
  }, null, 8, ["item", "to"]))), 128))
3924
3934
  ], 64))), 128))
3925
3935
  ]),
@@ -3930,221 +3940,138 @@ function Vo(e, t, l, n, o, a) {
3930
3940
  })
3931
3941
  ], 2);
3932
3942
  }
3933
- const qo = /* @__PURE__ */ I(No, [["render", Vo], ["__scopeId", "data-v-d252f828"]]);
3934
- const Uo = { class: "app-main" }, Ho = {
3943
+ const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828"]]);
3944
+ const Fo = { class: "app-main" }, Go = {
3935
3945
  __name: "AppMain",
3936
3946
  setup(e) {
3937
- const t = pe(), l = [], n = M(0);
3938
- return al(() => {
3939
- var o;
3940
- (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3941
- }), (o, a) => {
3942
- const s = v("router-view"), p = Sl;
3943
- return i(), h("section", Uo, [
3944
- (i(), m(s, {
3945
- key: o.$route.fullPath + w(n)
3947
+ const t = pe(), l = [], o = D(0);
3948
+ return rl(() => {
3949
+ var n;
3950
+ (n = t.meta) != null && n.keepAlive && l.indexOf(t.name) && l.push(t.name), o.value++;
3951
+ }), (n, a) => {
3952
+ const s = w("router-view"), r = El;
3953
+ return i(), h("section", Fo, [
3954
+ (i(), f(s, {
3955
+ key: n.$route.fullPath + x(o)
3946
3956
  })),
3947
- u(p, { bottom: 50 })
3957
+ p(r, { bottom: 50 })
3948
3958
  ]);
3949
3959
  };
3950
3960
  }
3951
- }, Fo = /* @__PURE__ */ I(Ho, [["__scopeId", "data-v-ca0f0d98"]]);
3952
- const Go = { class: "main-container" }, Jo = 992, zo = {
3961
+ }, Jo = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-ca0f0d98"]]);
3962
+ const zo = { class: "main-container" }, Ko = 992, Wo = {
3953
3963
  __name: "index",
3954
3964
  setup(e) {
3955
- const t = nt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
3956
- hideSidebar: !n.value.opened,
3957
- openSidebar: n.value.opened,
3958
- withoutAnimation: n.value.withoutAnimation,
3959
- mobile: o.value === "mobile"
3960
- })), p = () => l.getBoundingClientRect().width - 1 < Jo;
3961
- Bl(window, "resize", () => d());
3962
- const c = () => {
3965
+ const t = ot(), { body: l } = document, o = M(() => t.state.app.sidebar), n = M(() => t.state.app.device), a = M(() => t.state.settings.fixedHeader), s = M(() => ({
3966
+ hideSidebar: !o.value.opened,
3967
+ openSidebar: o.value.opened,
3968
+ withoutAnimation: o.value.withoutAnimation,
3969
+ mobile: n.value === "mobile"
3970
+ })), r = () => l.getBoundingClientRect().width - 1 < Ko;
3971
+ Pl(window, "resize", () => u());
3972
+ const d = () => {
3963
3973
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
3964
- }, d = () => {
3974
+ }, u = () => {
3965
3975
  if (!document.hidden) {
3966
- const f = p();
3967
- t.dispatch("app/toggleDevice", f ? "mobile" : "desktop"), f && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
3976
+ const m = r();
3977
+ t.dispatch("app/toggleDevice", m ? "mobile" : "desktop"), m && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
3968
3978
  }
3969
3979
  };
3970
- return (f, b) => (i(), h("div", {
3971
- class: H([w(s), "app-wrapper"])
3980
+ return (m, _) => (i(), h("div", {
3981
+ class: H([x(s), "app-wrapper"])
3972
3982
  }, [
3973
- w(o) === "mobile" && w(n).opened ? (i(), h("div", {
3983
+ x(n) === "mobile" && x(o).opened ? (i(), h("div", {
3974
3984
  key: 0,
3975
3985
  class: "drawer-bg",
3976
- onClick: c
3977
- })) : $("", !0),
3978
- u(w(qo), { class: "sidebar-container" }),
3979
- _("div", Go, [
3980
- _("div", {
3981
- class: H({ "fixed-header": w(a) })
3986
+ onClick: d
3987
+ })) : E("", !0),
3988
+ p(x(Ho), { class: "sidebar-container" }),
3989
+ b("div", zo, [
3990
+ b("div", {
3991
+ class: H({ "fixed-header": x(a) })
3982
3992
  }, [
3983
- u(w(bo))
3993
+ p(x(yo))
3984
3994
  ], 2),
3985
- u(w(Fo))
3995
+ p(x(Jo))
3986
3996
  ])
3987
3997
  ], 2));
3988
3998
  }
3989
- }, bt = /* @__PURE__ */ I(zo, [["__scopeId", "data-v-957442cd"]]);
3990
- class _t {
3991
- constructor() {
3992
- R(this, "type", "qrcode");
3993
- }
3994
- flag() {
3995
- }
3996
- jumpToLoginPage(t, l) {
3997
- t(l);
3998
- }
3999
- showQrCode() {
4000
- }
4001
- }
4002
- class xi extends _t {
4003
- constructor(l) {
4004
- super();
4005
- R(this, "type", "jump");
4006
- R(this, "client_id", "");
4007
- this.client_id = l.client_id;
4008
- }
4009
- flag() {
4010
- const l = Ye("code");
4011
- if (l)
4012
- return {
4013
- ticket: l,
4014
- key: "github"
4015
- };
4016
- }
4017
- jumpToLoginPage(l, n) {
4018
- const o = encodeURIComponent(location.href);
4019
- location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
4020
- }
4021
- }
4022
- class Ei extends _t {
4023
- constructor(l) {
4024
- super();
4025
- R(this, "type", "qrcode");
4026
- R(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
4027
- R(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
4028
- R(this, "elId", "");
4029
- R(this, "appid", "");
4030
- R(this, "iframe", new HTMLIFrameElement());
4031
- R(this, "redirectUri", "");
4032
- R(this, "style", "");
4033
- }
4034
- flag() {
4035
- const l = Ye("code");
4036
- if (l)
4037
- return {
4038
- ticket: l,
4039
- key: "dingtalk"
4040
- };
4041
- }
4042
- showQrCode() {
4043
- const l = (a) => {
4044
- const s = {
4045
- appid: this.appid,
4046
- redirect_uri: encodeURIComponent(this.redirectUri)
4047
- };
4048
- return Q(this.reloadUrl, s) + "&" + Kt(a || {});
4049
- }, n = () => {
4050
- const a = {
4051
- goto: encodeURIComponent(l()),
4052
- style: encodeURIComponent(this.style)
4053
- };
4054
- return Q(this.qrCodeUrl, a);
4055
- }, o = (a) => {
4056
- const { origin: s, data: p } = a;
4057
- s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: p }));
4058
- };
4059
- this.iframe.src = n(), zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4060
- "message",
4061
- (a) => o(a),
4062
- !1
4063
- ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
4064
- }
4065
- }
4066
- const Ko = {};
4067
- function Wo() {
4068
- return A(S.state.settings.sso || {}, Ko);
4069
- }
4070
- function Zo() {
4071
- const e = Wo(), t = S.state.settings.activeSsoKey || "";
4072
- console.log(e, t);
4073
- const l = e[t];
4074
- if (l !== void 0)
4075
- return l();
4076
- }
4077
- const Qo = { id: "login" }, Xo = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
3999
+ }, vt = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-957442cd"]]), Xo = { id: "login" }, Zo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Qo = { id: "form" }, Yo = {
4000
+ key: 0,
4001
+ class: "captcha"
4002
+ }, ea = ["src"], ta = { class: "tips" }, la = { class: "sso" }, na = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), oa = /* @__PURE__ */ q({
4078
4003
  __name: "login",
4079
4004
  setup(e) {
4080
- const t = sl(), l = pe(), n = j(() => S.state.settings.loginTips), o = j(() => (console.log(S.state.app), S.state.app.baseURL)), a = M(0), s = () => a.value++, p = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = M({
4005
+ const t = st(), l = pe(), o = M(() => g.state.settings.loginTips), n = M(() => g.state.settings.captcha), a = M(() => (g.state.app, g.state.app.baseURL)), s = D(0), r = () => s.value++, d = M(() => u.value.username.length > 0 && u.value.password.length >= 4 && (n.value ? u.value.captcha.length === 4 : !0)), u = D({
4081
4006
  username: "",
4082
4007
  password: "",
4083
4008
  captcha: "",
4084
4009
  sing: ""
4085
- }), d = () => {
4086
- if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
4087
- xl.error("用户名, 密码, 验证码是必须的");
4010
+ }), m = () => {
4011
+ if (u.value.username === "" || u.value.password === "" || n.value && u.value.captcha === "") {
4012
+ Il.error("用户名, 密码, 验证码是必须的");
4088
4013
  return;
4089
4014
  }
4090
- c.value.sing = Pl(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), S.dispatch("user/login", c.value).then((f) => {
4091
- var b;
4092
- t.push({ path: ((b = l.query) == null ? void 0 : b.redirect) || "/" });
4015
+ n.value && (u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString()), g.dispatch("user/login", u.value).then((_) => {
4016
+ var k;
4017
+ t.push({ path: ((k = l.query) == null ? void 0 : k.redirect) || "/" });
4018
+ }).catch((_) => {
4019
+ s.value++;
4093
4020
  });
4094
4021
  };
4095
- return M(), (f, b) => (i(), h("div", Qo, [
4096
- Xo,
4097
- _("form", Yo, [
4098
- ie(_("input", {
4099
- "onUpdate:modelValue": b[0] || (b[0] = (g) => w(c).username = g),
4022
+ return (_, k) => (i(), h("div", Xo, [
4023
+ Zo,
4024
+ b("form", Qo, [
4025
+ ie(b("input", {
4026
+ "onUpdate:modelValue": k[0] || (k[0] = (y) => x(u).username = y),
4100
4027
  type: "text",
4101
4028
  placeholder: "用户名",
4102
4029
  class: "input"
4103
4030
  }, null, 512), [
4104
- [he, w(c).username]
4031
+ [he, x(u).username]
4105
4032
  ]),
4106
- ie(_("input", {
4107
- "onUpdate:modelValue": b[1] || (b[1] = (g) => w(c).password = g),
4033
+ ie(b("input", {
4034
+ "onUpdate:modelValue": k[1] || (k[1] = (y) => x(u).password = y),
4108
4035
  type: "password",
4109
4036
  placeholder: "密码",
4110
4037
  class: "input"
4111
4038
  }, null, 512), [
4112
- [he, w(c).password]
4039
+ [he, x(u).password]
4113
4040
  ]),
4114
- _("div", ea, [
4115
- ie(_("input", {
4116
- "onUpdate:modelValue": b[2] || (b[2] = (g) => w(c).captcha = g),
4041
+ n.value ? (i(), h("div", Yo, [
4042
+ ie(b("input", {
4043
+ "onUpdate:modelValue": k[2] || (k[2] = (y) => x(u).captcha = y),
4117
4044
  type: "text",
4118
4045
  placeholder: "验证码",
4119
4046
  class: "input-captcha"
4120
4047
  }, null, 512), [
4121
- [he, w(c).captcha]
4048
+ [he, x(u).captcha]
4122
4049
  ]),
4123
- _("img", {
4050
+ b("img", {
4124
4051
  class: "captcha-img",
4125
- src: o.value + "/user/captcha?ts=" + w(a),
4052
+ src: a.value + "/user/captcha?ts=" + x(s),
4126
4053
  title: "点击刷新",
4127
- onClick: s
4128
- }, null, 8, ta)
4129
- ]),
4130
- _("div", {
4131
- class: H({ input: !0, button: !0, "no-ready": !p.value }),
4132
- onClick: d
4054
+ onClick: r
4055
+ }, null, 8, ea)
4056
+ ])) : E("", !0),
4057
+ b("div", {
4058
+ class: H({ input: !0, button: !0, "no-ready": !d.value }),
4059
+ onClick: m
4133
4060
  }, "登录", 2),
4134
- _("div", la, [
4135
- _("div", null, O(n.value), 1)
4061
+ b("div", ta, [
4062
+ b("div", null, B(o.value), 1)
4136
4063
  ]),
4137
- _("div", na, [
4138
- oa,
4139
- (i(!0), h(E, null, B(Object.keys([]), (g) => (i(), h("div", { key: g }, O(g), 1))), 128))
4064
+ b("div", la, [
4065
+ na,
4066
+ (i(!0), h(I, null, O(Object.keys([]), (y) => (i(), h("div", { key: y }, B(y), 1))), 128))
4140
4067
  ])
4141
4068
  ])
4142
4069
  ]));
4143
4070
  }
4144
4071
  });
4145
- const sa = {
4072
+ const aa = {
4146
4073
  name: "NotFoundPage"
4147
- }, yt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ yt(() => /* @__PURE__ */ _("svg", {
4074
+ }, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("svg", {
4148
4075
  width: "380px",
4149
4076
  height: "500px",
4150
4077
  viewBox: "0 0 837 1045",
@@ -4153,7 +4080,7 @@ const sa = {
4153
4080
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
4154
4081
  "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
4155
4082
  }, [
4156
- /* @__PURE__ */ _("g", {
4083
+ /* @__PURE__ */ b("g", {
4157
4084
  id: "Page-1",
4158
4085
  stroke: "none",
4159
4086
  "stroke-width": "1",
@@ -4161,35 +4088,35 @@ const sa = {
4161
4088
  "fill-rule": "evenodd",
4162
4089
  "sketch:type": "MSPage"
4163
4090
  }, [
4164
- /* @__PURE__ */ _("path", {
4091
+ /* @__PURE__ */ b("path", {
4165
4092
  id: "Polygon-1",
4166
4093
  d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
4167
4094
  stroke: "#007FB2",
4168
4095
  "stroke-width": "6",
4169
4096
  "sketch:type": "MSShapeGroup"
4170
4097
  }),
4171
- /* @__PURE__ */ _("path", {
4098
+ /* @__PURE__ */ b("path", {
4172
4099
  id: "Polygon-2",
4173
4100
  d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
4174
4101
  stroke: "#EF4A5B",
4175
4102
  "stroke-width": "6",
4176
4103
  "sketch:type": "MSShapeGroup"
4177
4104
  }),
4178
- /* @__PURE__ */ _("path", {
4105
+ /* @__PURE__ */ b("path", {
4179
4106
  id: "Polygon-3",
4180
4107
  d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
4181
4108
  stroke: "#795D9C",
4182
4109
  "stroke-width": "6",
4183
4110
  "sketch:type": "MSShapeGroup"
4184
4111
  }),
4185
- /* @__PURE__ */ _("path", {
4112
+ /* @__PURE__ */ b("path", {
4186
4113
  id: "Polygon-4",
4187
4114
  d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
4188
4115
  stroke: "#F2773F",
4189
4116
  "stroke-width": "6",
4190
4117
  "sketch:type": "MSShapeGroup"
4191
4118
  }),
4192
- /* @__PURE__ */ _("path", {
4119
+ /* @__PURE__ */ b("path", {
4193
4120
  id: "Polygon-5",
4194
4121
  d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
4195
4122
  stroke: "#36B455",
@@ -4197,28 +4124,28 @@ const sa = {
4197
4124
  "sketch:type": "MSShapeGroup"
4198
4125
  })
4199
4126
  ])
4200
- ], -1)), ca = /* @__PURE__ */ yt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
4201
- /* @__PURE__ */ _("h1", null, "404"),
4202
- /* @__PURE__ */ _("p", null, "Page not found"),
4203
- /* @__PURE__ */ _("div", { class: "buttons-con" }, [
4204
- /* @__PURE__ */ _("div", { class: "action-link-wrap" }, [
4205
- /* @__PURE__ */ _("a", {
4127
+ ], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4128
+ /* @__PURE__ */ b("h1", null, "404"),
4129
+ /* @__PURE__ */ b("p", null, "Page not found"),
4130
+ /* @__PURE__ */ b("div", { class: "buttons-con" }, [
4131
+ /* @__PURE__ */ b("div", { class: "action-link-wrap" }, [
4132
+ /* @__PURE__ */ b("a", {
4206
4133
  href: "",
4207
4134
  class: "link-button"
4208
4135
  }, "Go to Home Page")
4209
4136
  ])
4210
4137
  ])
4211
- ], -1)), ua = [
4212
- ra,
4213
- ca
4138
+ ], -1)), ca = [
4139
+ ia,
4140
+ ra
4214
4141
  ];
4215
- function pa(e, t, l, n, o, a) {
4216
- return i(), h("div", ia, ua);
4142
+ function ua(e, t, l, o, n, a) {
4143
+ return i(), h("div", sa, ca);
4217
4144
  }
4218
- const da = /* @__PURE__ */ I(sa, [["render", pa], ["__scopeId", "data-v-26068803"]]), ma = [
4145
+ const pa = /* @__PURE__ */ $(aa, [["render", ua], ["__scopeId", "data-v-26068803"]]), da = [
4219
4146
  {
4220
4147
  path: "/",
4221
- component: bt,
4148
+ component: vt,
4222
4149
  redirect: "/dashboard",
4223
4150
  name: "Root",
4224
4151
  meta: {
@@ -4228,78 +4155,163 @@ const da = /* @__PURE__ */ I(sa, [["render", pa], ["__scopeId", "data-v-26068803
4228
4155
  {
4229
4156
  path: "dashboard",
4230
4157
  name: "Dashboard",
4231
- component: sn,
4158
+ component: cn,
4232
4159
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
4233
4160
  }
4234
4161
  ]
4235
4162
  },
4236
4163
  {
4237
4164
  path: "/login",
4238
- component: aa,
4165
+ component: oa,
4239
4166
  meta: { title: "用户登录", menuType: 0 },
4240
4167
  hidden: !0
4241
4168
  },
4242
4169
  {
4243
4170
  path: "/404",
4244
- component: da,
4171
+ component: pa,
4245
4172
  meta: { menuType: 0 },
4246
4173
  hidden: !0
4247
4174
  }
4248
- ], K = il({
4249
- history: rl(),
4250
- routes: ma
4175
+ ], K = cl({
4176
+ history: ul(),
4177
+ routes: da
4251
4178
  });
4252
4179
  ke.configure({ showSpinner: !1 });
4253
- function fa(e) {
4254
- e.beforeEach((t, l, n) => {
4255
- ke.start(), t.preHash = location.hash.replace("#", ""), n();
4180
+ function ma(e) {
4181
+ e.beforeEach((t, l, o) => {
4182
+ ke.start(), t.preHash = location.hash.replace("#", ""), o();
4256
4183
  }), e.afterEach((t) => {
4257
- t.matched.length > 0 && S.commit("user/updateState", {
4184
+ t.matched.length > 0 && g.commit("user/updateState", {
4258
4185
  key: "path",
4259
4186
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4260
4187
  }), ke.done();
4261
4188
  });
4262
4189
  }
4190
+ function fa() {
4191
+ return g.state.user.isLodeRemoteRoutes;
4192
+ }
4193
+ function kt() {
4194
+ return g.state.settings.whiteRoutes || [];
4195
+ }
4263
4196
  function ha() {
4264
- return S.state.user.isLodeRemoteRoutes;
4197
+ return g.state.user.token;
4198
+ }
4199
+ class wt {
4200
+ constructor() {
4201
+ R(this, "type", "qrcode");
4202
+ }
4203
+ flag() {
4204
+ }
4205
+ jumpToLoginPage(t, l) {
4206
+ t(l);
4207
+ }
4208
+ showQrCode() {
4209
+ }
4210
+ }
4211
+ class Ii extends wt {
4212
+ constructor(l) {
4213
+ super();
4214
+ R(this, "type", "jump");
4215
+ R(this, "client_id", "");
4216
+ this.client_id = l.client_id;
4217
+ }
4218
+ flag() {
4219
+ const l = et("code");
4220
+ if (l)
4221
+ return {
4222
+ ticket: l,
4223
+ key: "github"
4224
+ };
4225
+ }
4226
+ jumpToLoginPage(l, o) {
4227
+ const n = encodeURIComponent(location.href);
4228
+ location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${n}`);
4229
+ }
4230
+ }
4231
+ class $i extends wt {
4232
+ constructor(l) {
4233
+ super();
4234
+ R(this, "type", "qrcode");
4235
+ R(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
4236
+ R(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
4237
+ R(this, "elId", "");
4238
+ R(this, "appid", "");
4239
+ R(this, "iframe", new HTMLIFrameElement());
4240
+ R(this, "redirectUri", "");
4241
+ R(this, "style", "");
4242
+ }
4243
+ flag() {
4244
+ const l = et("code");
4245
+ if (l)
4246
+ return {
4247
+ ticket: l,
4248
+ key: "dingtalk"
4249
+ };
4250
+ }
4251
+ showQrCode() {
4252
+ const l = (a) => {
4253
+ const s = {
4254
+ appid: this.appid,
4255
+ redirect_uri: encodeURIComponent(this.redirectUri)
4256
+ };
4257
+ return Z(this.reloadUrl, s) + "&" + Qt(a || {});
4258
+ }, o = () => {
4259
+ const a = {
4260
+ goto: encodeURIComponent(l()),
4261
+ style: encodeURIComponent(this.style)
4262
+ };
4263
+ return Z(this.qrCodeUrl, a);
4264
+ }, n = (a) => {
4265
+ const { origin: s, data: r } = a;
4266
+ s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: r }));
4267
+ };
4268
+ this.iframe.src = o(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4269
+ "message",
4270
+ (a) => n(a),
4271
+ !1
4272
+ ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
4273
+ }
4265
4274
  }
4266
- function vt() {
4267
- return S.state.settings.whiteRoutes || [];
4275
+ const ba = {};
4276
+ function _a() {
4277
+ return A(g.state.settings.sso || {}, ba);
4268
4278
  }
4269
- function ba() {
4270
- return S.state.user.token;
4279
+ function ya() {
4280
+ const e = _a(), t = g.state.settings.activeSsoKey || "", l = e[t];
4281
+ if (l !== void 0)
4282
+ return l();
4271
4283
  }
4272
- function _a(e) {
4273
- e.beforeEach(async (t, l, n) => {
4274
- var c, d;
4275
- if (vt().indexOf(t.path) !== -1) {
4276
- n();
4284
+ function va(e) {
4285
+ e.beforeEach(async (t, l, o) => {
4286
+ var d, u;
4287
+ if (kt().indexOf(t.path) !== -1) {
4288
+ o();
4277
4289
  return;
4278
4290
  }
4279
- if (ba()) {
4280
- (c = t.query) != null && c.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4291
+ if (ha()) {
4292
+ (d = t.query) != null && d.redirect ? o((u = t.query) == null ? void 0 : u.redirect) : o();
4281
4293
  return;
4282
4294
  }
4283
- const a = t.query.redirect || t.path, s = Zo();
4295
+ const a = t.query.redirect || t.path, s = ya();
4284
4296
  if (!s) {
4285
- n(`/login?redirect=${a}`);
4297
+ o(`/login?redirect=${a}`);
4286
4298
  return;
4287
4299
  }
4288
- const p = s.flag();
4289
- if (p && await S.dispatch("user/login", Qt(p) ? p : { ticket: p })) {
4290
- n();
4300
+ const r = s.flag();
4301
+ if (r && await g.dispatch("user/login", tl(r) ? r : { ticket: r })) {
4302
+ o();
4291
4303
  return;
4292
4304
  }
4293
- s.jumpToLoginPage(n, `/login?redirect=${a}`);
4305
+ s.jumpToLoginPage(o, `/login?redirect=${a}`);
4294
4306
  });
4295
4307
  }
4296
- const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ _("div", { class: "preloader-inner" }, null, -1), ka = [
4297
- ga
4308
+ const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Sa = [
4309
+ wa
4298
4310
  ];
4299
- function wa(e, t) {
4300
- return i(), h("div", va, ka);
4311
+ function xa(e, t) {
4312
+ return i(), h("div", ka, Sa);
4301
4313
  }
4302
- const gt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
4314
+ const St = /* @__PURE__ */ $(ga, [["render", xa]]), Ea = {
4303
4315
  name: "VNotice",
4304
4316
  props: {
4305
4317
  dataApi: {
@@ -4319,7 +4331,7 @@ const gt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
4319
4331
  };
4320
4332
  },
4321
4333
  mounted() {
4322
- if (console.log("dataApi", !!this.$props.dataApi), this.$props.dataApi) {
4334
+ if (this.$props.dataApi, this.$props.dataApi) {
4323
4335
  this.$http.get(this.$props.dataApi).then(({ data: e }) => {
4324
4336
  this.noticeProps = e, this.hasNotice = !!e;
4325
4337
  });
@@ -4328,14 +4340,14 @@ const gt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
4328
4340
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
4329
4341
  }
4330
4342
  };
4331
- function xa(e, t, l, n, o, a) {
4332
- const s = Be;
4343
+ function Ia(e, t, l, o, n, a) {
4344
+ const s = Oe;
4333
4345
  return i(), h("div", null, [
4334
- o.hasNotice ? (i(), m(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : $("", !0)
4346
+ n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) : E("", !0)
4335
4347
  ]);
4336
4348
  }
4337
- const kt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
4338
- components: { VLoading: gt, VNotice: kt },
4349
+ const xt = /* @__PURE__ */ $(Ea, [["render", Ia]]), $a = q({
4350
+ components: { VLoading: St, VNotice: xt },
4339
4351
  props: {
4340
4352
  schemaHandler: {
4341
4353
  type: Function,
@@ -4368,44 +4380,44 @@ const kt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
4368
4380
  }
4369
4381
  },
4370
4382
  beforeCreate() {
4371
- const e = this.$route.path.split("/").filter((o) => o), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, n = { params: this.$route.params };
4372
- this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4373
- this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
4374
- title: o.notice
4375
- } : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4383
+ const e = this.$route.path.split("/").filter((n) => n), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, o = { params: this.$route.params };
4384
+ this.$http.get(this.$props.schemaApi || l, o).then(({ data: n }) => {
4385
+ this.loading = !1, Q(n) && (n.notice !== void 0 && (this.haveNotice = !0, Ie(n.notice) ? this.notice = {
4386
+ title: n.notice
4387
+ } : Q(n.notice) && (this.notice = n.notice, this.noticeApi = n.notice.noticeApi), delete n.notice), this.owners = n.ownerNames || [], this.serviceOffLine = n.serviceOffLine || !1), this.schema = this.$props.schemaHandler(n, t), g.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4376
4388
  });
4377
4389
  }
4378
4390
  });
4379
- const $a = ["innerHTML"];
4380
- function Ia(e, t, l, n, o, a) {
4381
- const s = Be, p = kt, c = gt;
4382
- return i(), h(E, null, [
4383
- e.owners.length > 0 ? (i(), m(s, {
4391
+ const Ca = ["innerHTML"];
4392
+ function Ta(e, t, l, o, n, a) {
4393
+ const s = Oe, r = xt, d = St;
4394
+ return i(), h(I, null, [
4395
+ e.owners.length > 0 ? (i(), f(s, {
4384
4396
  key: 0,
4385
4397
  title: `该页面功能对应开发: [ ${e.owners.join(", ")} ] 有问题可直接企微反馈`,
4386
4398
  type: "info",
4387
4399
  style: { margin: "0 0 20px 0" },
4388
4400
  closable: !1
4389
- }, null, 8, ["title"])) : $("", !0),
4401
+ }, null, 8, ["title"])) : E("", !0),
4390
4402
  e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
4391
4403
  key: 1,
4392
4404
  class: "offline-notice",
4393
4405
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4394
- }, null, 8, $a)) : (i(), h(E, { key: 2 }, [
4395
- e.haveNotice ? (i(), m(p, {
4406
+ }, null, 8, Ca)) : (i(), h(I, { key: 2 }, [
4407
+ e.haveNotice ? (i(), f(r, {
4396
4408
  key: 0,
4397
4409
  notice: e.notice,
4398
4410
  style: { margin: "0 0 20px 0" },
4399
4411
  "data-api": e.noticeApi
4400
- }, null, 8, ["notice", "data-api"])) : $("", !0),
4401
- e.loading ? (i(), m(c, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4412
+ }, null, 8, ["notice", "data-api"])) : E("", !0),
4413
+ e.loading ? (i(), f(d, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4402
4414
  ], 64))
4403
4415
  ], 64);
4404
4416
  }
4405
- const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), wt = {
4417
+ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709"]]), Et = {
4406
4418
  __name: "table",
4407
4419
  setup(e) {
4408
- const t = (l, n) => {
4420
+ const t = (l, o) => {
4409
4421
  if (l.orderBy) {
4410
4422
  const a = {
4411
4423
  prop: l.orderBy.field,
@@ -4413,14 +4425,14 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4413
4425
  };
4414
4426
  l.tableProps = A(l.tableProps, { defaultSort: a });
4415
4427
  }
4416
- const o = Object.keys(oe.props);
4428
+ const n = Object.keys(oe.props);
4417
4429
  return Object.keys(l).forEach((a) => {
4418
- o.indexOf(a) === -1 && delete l[a];
4419
- }), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
4430
+ n.indexOf(a) === -1 && delete l[a];
4431
+ }), l.listApi === void 0 && (l.listApi = `/${o}/list`), l;
4420
4432
  };
4421
- return (l, n) => (i(), m(se, { "schema-handler": t }, {
4422
- default: r((o) => [
4423
- u(w(oe), G(Y(o)), null, 16)
4433
+ return (l, o) => (i(), f(se, { "schema-handler": t }, {
4434
+ default: c((n) => [
4435
+ p(x(oe), G(Y(n)), null, 16)
4424
4436
  ]),
4425
4437
  _: 1
4426
4438
  }));
@@ -4428,29 +4440,56 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4428
4440
  }, xe = {
4429
4441
  __name: "form",
4430
4442
  setup(e) {
4431
- const t = pe(), l = (n, o) => {
4432
- const a = Object.keys(z.props);
4433
- return Object.keys(n).forEach((s) => {
4434
- if (a.indexOf(s) === -1) {
4435
- delete n[s];
4443
+ const t = pe(), l = st(), o = (r, d) => {
4444
+ const u = Object.keys(z.props);
4445
+ return Object.keys(r).forEach((m) => {
4446
+ if (u.indexOf(m) === -1) {
4447
+ delete r[m];
4436
4448
  return;
4437
4449
  }
4438
- /.*Api$/.test(s) && (n[s] = Q(n[s], t.params));
4439
- }), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n = A({
4440
- saveApi: o + "/save",
4450
+ /.*Api$/.test(m) && (r[m] = Z(r[m], t.params));
4451
+ }), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${d}/update/${t.params.id}`, r.getApi || (r.getApi = `/${d}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${d}/create`)), r = A({
4452
+ saveApi: d + "/save",
4441
4453
  afterSubmit: "goback",
4442
4454
  afterReset: "goback",
4443
4455
  mod: t.params.id ? "edit" : "create"
4444
- }, n), n;
4456
+ }, r), r;
4457
+ }, n = D(0), a = () => {
4458
+ Tt.request({
4459
+ url: "/form_mutex",
4460
+ method: "get",
4461
+ params: {
4462
+ path: t.fullPath
4463
+ }
4464
+ }).then((r) => {
4465
+ r.data && (clearInterval(n.value), at.alert(`${r.data}`, "操作提醒", {
4466
+ showClose: !1,
4467
+ showCancelButton: !0,
4468
+ confirmButtonText: "返回",
4469
+ cancelButtonText: "刷新",
4470
+ callback: (d) => {
4471
+ d === "cancel" ? location.reload() : s();
4472
+ }
4473
+ }));
4474
+ });
4445
4475
  };
4446
- return (n, o) => (i(), m(se, { "schema-handler": l }, {
4447
- default: r((a) => [
4448
- u(w(z), G(Y(a)), null, 16)
4476
+ Ze(() => {
4477
+ t.params.id !== void 0 && g.state.settings.formMutex && (a(), n.value = setInterval(a, 2e3));
4478
+ }), Nt(() => {
4479
+ clearInterval(n.value);
4480
+ });
4481
+ function s() {
4482
+ var r, d;
4483
+ (r = t.query) != null && r.goback ? l.push((d = t.query) == null ? void 0 : d.goback) : history.state.back && history.back();
4484
+ }
4485
+ return (r, d) => (i(), f(se, { "schema-handler": o }, {
4486
+ default: c((u) => [
4487
+ p(x(z), G(Y(u)), null, 16)
4449
4488
  ]),
4450
4489
  _: 1
4451
4490
  }));
4452
4491
  }
4453
- }, Ca = q({
4492
+ }, Ba = q({
4454
4493
  name: "VTree",
4455
4494
  components: {
4456
4495
  VForm: z
@@ -4524,7 +4563,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4524
4563
  return ["", "新建", "编辑"][this.type];
4525
4564
  },
4526
4565
  formProps() {
4527
- let e = Q(this.$props.saveApi, this.formData);
4566
+ let e = Z(this.$props.saveApi, this.formData);
4528
4567
  return this.type === 1 && (e = this.$props.createApi), {
4529
4568
  saveApi: e,
4530
4569
  getApi: this.$props.getApi,
@@ -4548,10 +4587,10 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4548
4587
  this.type = 2, this.formData = e, this.formkey++;
4549
4588
  },
4550
4589
  append(e, t) {
4551
- var n, o;
4590
+ var o, n;
4552
4591
  this.type = 1;
4553
- const l = { pid: e.id, [((n = this.$props.props) == null ? void 0 : n.levelKey) ?? "level"]: t.level + 1, ...Wt((o = this.$props.props) == null ? void 0 : o.effectData, e) };
4554
- console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4592
+ const l = { pid: e.id, [((o = this.$props.props) == null ? void 0 : o.levelKey) ?? "level"]: t.level + 1, ...Yt((n = this.$props.props) == null ? void 0 : n.effectData, e) };
4593
+ e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4555
4594
  },
4556
4595
  canAppend(e, t) {
4557
4596
  return e[this.localTreeProps.props.label] ? t.level < this.$props.maxDepth : !1;
@@ -4565,7 +4604,7 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4565
4604
  remove(e) {
4566
4605
  this.$http.request({
4567
4606
  method: "DELETE",
4568
- url: Q(this.$props.deleteApi, e)
4607
+ url: Z(this.$props.deleteApi, e)
4569
4608
  }).then(({ code: t }) => {
4570
4609
  t !== 0 ? this.$message.error("操作失败") : this.loadTree();
4571
4610
  });
@@ -4579,53 +4618,53 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4579
4618
  return !0;
4580
4619
  },
4581
4620
  allowDrop(e, t, l) {
4582
- return console.log(l), l === "inner";
4621
+ return l === "inner";
4583
4622
  },
4584
- handleDragEnd(e, t, l, n) {
4585
- const o = e.data;
4586
- o.pid = t.data.id, this.$http.request({
4623
+ handleDragEnd(e, t, l, o) {
4624
+ const n = e.data;
4625
+ n.pid = t.data.id, this.$http.request({
4587
4626
  method: "POST",
4588
- url: Q(this.$props.saveApi, o),
4589
- data: o
4627
+ url: Z(this.$props.saveApi, n),
4628
+ data: n
4590
4629
  }).then(({ code: a }) => {
4591
4630
  a !== 0 && this.$message.error("操作失败");
4592
4631
  });
4593
4632
  }
4594
4633
  }
4595
4634
  });
4596
- const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ _("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
4635
+ const Oa = { class: "card-header" }, Aa = /* @__PURE__ */ b("span", null, "列表", -1), Pa = { class: "tree-action" }, Ra = { key: 0 }, La = {
4597
4636
  key: 1,
4598
4637
  style: { color: "#E6A23C" }
4599
- }, Ra = { class: "card-header" };
4600
- function La(e, t, l, n, o, a) {
4601
- const s = ue, p = El, c = Ae, d = de, f = v("v-form"), b = ae;
4602
- return i(), m(b, {
4638
+ }, Ma = { class: "card-header" };
4639
+ function Da(e, t, l, o, n, a) {
4640
+ const s = ue, r = $l, d = Ae, u = de, m = w("v-form"), _ = ae;
4641
+ return i(), f(_, {
4603
4642
  class: "tree-box",
4604
4643
  gutter: 20
4605
4644
  }, {
4606
- default: r(() => [
4607
- u(d, {
4645
+ default: c(() => [
4646
+ p(u, {
4608
4647
  span: 8,
4609
4648
  class: "tree-tree"
4610
4649
  }, {
4611
- default: r(() => [
4612
- u(c, { shadow: "never" }, {
4613
- header: r(() => [
4614
- _("div", Ta, [
4615
- Oa,
4616
- u(s, {
4650
+ default: c(() => [
4651
+ p(d, { shadow: "never" }, {
4652
+ header: c(() => [
4653
+ b("div", Oa, [
4654
+ Aa,
4655
+ p(s, {
4617
4656
  type: "text",
4618
4657
  onClick: t[0] || (t[0] = () => e.appendNew())
4619
4658
  }, {
4620
- default: r(() => [
4621
- k("添加")
4659
+ default: c(() => [
4660
+ S("添加")
4622
4661
  ]),
4623
4662
  _: 1
4624
4663
  })
4625
4664
  ])
4626
4665
  ]),
4627
- default: r(() => [
4628
- (e.treeData || []).length > 0 ? (i(), m(p, F({
4666
+ default: c(() => [
4667
+ (e.treeData || []).length > 0 ? (i(), f(r, F({
4629
4668
  key: 0,
4630
4669
  style: { height: "100vh" },
4631
4670
  data: e.treeData,
@@ -4636,77 +4675,77 @@ function La(e, t, l, n, o, a) {
4636
4675
  "allow-drop": e.allowDrop,
4637
4676
  onNodeDragEnd: e.handleDragEnd
4638
4677
  }), {
4639
- default: r(({ node: g, data: x }) => [
4640
- _("span", Ba, [
4641
- x[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
4642
- _("span", null, [
4643
- x[e.localTreeProps.props.label] ? (i(), m(s, {
4678
+ default: c(({ node: k, data: y }) => [
4679
+ b("span", Pa, [
4680
+ y[e.localTreeProps.props.label] ? (i(), h("span", Ra, B(y[e.localTreeProps.props.label]), 1)) : (i(), h("span", La, "请在右侧表单中修改 --> ")),
4681
+ b("span", null, [
4682
+ y[e.localTreeProps.props.label] ? (i(), f(s, {
4644
4683
  key: 0,
4645
4684
  class: "button",
4646
4685
  type: "text",
4647
- onClick: () => e.onclick(x)
4686
+ onClick: () => e.onclick(y)
4648
4687
  }, {
4649
- default: r(() => [
4650
- k("编辑")
4688
+ default: c(() => [
4689
+ S("编辑")
4651
4690
  ]),
4652
4691
  _: 2
4653
- }, 1032, ["onClick"])) : $("", !0),
4654
- e.canAppend(x, g) ? (i(), m(s, {
4692
+ }, 1032, ["onClick"])) : E("", !0),
4693
+ e.canAppend(y, k) ? (i(), f(s, {
4655
4694
  key: 1,
4656
4695
  class: "button",
4657
4696
  type: "text",
4658
- onClick: () => e.append(x, g)
4697
+ onClick: () => e.append(y, k)
4659
4698
  }, {
4660
- default: r(() => [
4661
- k("添加")
4699
+ default: c(() => [
4700
+ S("添加")
4662
4701
  ]),
4663
4702
  _: 2
4664
- }, 1032, ["onClick"])) : $("", !0),
4665
- x.children === void 0 || x.children.length === 0 ? (i(), m(s, {
4703
+ }, 1032, ["onClick"])) : E("", !0),
4704
+ y.children === void 0 || y.children.length === 0 ? (i(), f(s, {
4666
4705
  key: 2,
4667
4706
  class: "button",
4668
4707
  type: "text",
4669
- onClick: () => e.remove(x)
4708
+ onClick: () => e.remove(y)
4670
4709
  }, {
4671
- default: r(() => [
4672
- k("删除")
4710
+ default: c(() => [
4711
+ S("删除")
4673
4712
  ]),
4674
4713
  _: 2
4675
- }, 1032, ["onClick"])) : $("", !0)
4714
+ }, 1032, ["onClick"])) : E("", !0)
4676
4715
  ])
4677
4716
  ])
4678
4717
  ]),
4679
4718
  _: 1
4680
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : $("", !0)
4719
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
4681
4720
  ]),
4682
4721
  _: 1
4683
4722
  })
4684
4723
  ]),
4685
4724
  _: 1
4686
4725
  }),
4687
- u(d, {
4726
+ p(u, {
4688
4727
  span: 16,
4689
4728
  class: "tree-form"
4690
4729
  }, {
4691
- default: r(() => [
4692
- e.type ? (i(), m(c, {
4730
+ default: c(() => [
4731
+ e.type ? (i(), f(d, {
4693
4732
  key: 0,
4694
4733
  shadow: "never"
4695
4734
  }, {
4696
- header: r(() => [
4697
- _("div", Ra, [
4698
- _("span", null, O(e.formType), 1)
4735
+ header: c(() => [
4736
+ b("div", Ma, [
4737
+ b("span", null, B(e.formType), 1)
4699
4738
  ])
4700
4739
  ]),
4701
- default: r(() => [
4702
- (i(), m(f, F({
4740
+ default: c(() => [
4741
+ (i(), f(m, F({
4703
4742
  key: e.formkey,
4704
4743
  modelValue: e.formData,
4705
- "onUpdate:modelValue": t[1] || (t[1] = (g) => e.formData = g)
4744
+ "onUpdate:modelValue": t[1] || (t[1] = (k) => e.formData = k)
4706
4745
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4707
4746
  ]),
4708
4747
  _: 1
4709
- })) : $("", !0)
4748
+ })) : E("", !0)
4710
4749
  ]),
4711
4750
  _: 1
4712
4751
  })
@@ -4714,18 +4753,18 @@ function La(e, t, l, n, o, a) {
4714
4753
  _: 1
4715
4754
  });
4716
4755
  }
4717
- const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
4756
+ const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
4718
4757
  __name: "tree",
4719
4758
  setup(e) {
4720
- const t = (l, n) => {
4721
- const o = Object.keys(Fe.props);
4759
+ const t = (l, o) => {
4760
+ const n = Object.keys(Fe.props);
4722
4761
  return Object.keys(l).forEach((a) => {
4723
- o.indexOf(a) === -1 && delete l[a];
4762
+ n.indexOf(a) === -1 && delete l[a];
4724
4763
  }), l;
4725
4764
  };
4726
- return (l, n) => (i(), m(se, { "schema-handler": t }, {
4727
- default: r((o) => [
4728
- u(Fe, G(Y(o)), null, 16)
4765
+ return (l, o) => (i(), f(se, { "schema-handler": t }, {
4766
+ default: c((n) => [
4767
+ p(Fe, G(Y(n)), null, 16)
4729
4768
  ]),
4730
4769
  _: 1
4731
4770
  }));
@@ -4733,15 +4772,15 @@ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
4733
4772
  }, ge = {
4734
4773
  __name: "container",
4735
4774
  setup(e) {
4736
- const t = M(0);
4737
- return cl(() => {
4775
+ const t = D(0);
4776
+ return pl(() => {
4738
4777
  t.value++;
4739
- }), (l, n) => {
4740
- const o = v("router-view");
4741
- return i(), m(o);
4778
+ }), (l, o) => {
4779
+ const n = w("router-view");
4780
+ return i(), f(n);
4742
4781
  };
4743
4782
  }
4744
- }, ja = {
4783
+ }, Na = {
4745
4784
  title: {
4746
4785
  text: ""
4747
4786
  },
@@ -4770,34 +4809,34 @@ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
4770
4809
  },
4771
4810
  series: []
4772
4811
  };
4773
- function Da(e, t, l) {
4812
+ function Va(e, t, l) {
4774
4813
  if (l.length === 0)
4775
4814
  return {};
4776
- let n = A({}, ja);
4777
- if (n.title.text = e, $e(t)) {
4778
- const o = [], a = Object.keys(l[0]);
4779
- let s = a[0], p = a.filter((d, f) => f > 0), c = t;
4815
+ let o = A({}, Na);
4816
+ if (o.title.text = e, Ie(t)) {
4817
+ const n = [], a = Object.keys(l[0]);
4818
+ let s = a[0], r = a.filter((u, m) => m > 0), d = t;
4780
4819
  if (t.indexOf(":") > -1) {
4781
- const d = t.split(":"), f = d[1].split(",");
4782
- c = d[0], s = f[0], p = f.filter((b, g) => g > 0);
4820
+ const u = t.split(":"), m = u[1].split(",");
4821
+ d = u[0], s = m[0], r = m.filter((_, k) => k > 0);
4783
4822
  }
4784
- p.forEach((d) => {
4785
- const f = [];
4786
- l.forEach((b) => {
4787
- f.push(b[d]);
4788
- }), n.series.push({
4789
- name: d,
4790
- type: c,
4823
+ r.forEach((u) => {
4824
+ const m = [];
4825
+ l.forEach((_) => {
4826
+ m.push(_[u]);
4827
+ }), o.series.push({
4828
+ name: u,
4829
+ type: d,
4791
4830
  smooth: !0,
4792
- data: f
4793
- }), n.legend.data.push(d);
4794
- }), l.forEach((d) => {
4795
- o.push(d[s]);
4796
- }), n.xAxis.data = o;
4831
+ data: m
4832
+ }), o.legend.data.push(u);
4833
+ }), l.forEach((u) => {
4834
+ n.push(u[s]);
4835
+ }), o.xAxis.data = n;
4797
4836
  }
4798
- return X(t) && (n = A(n, t)), console.log(111, n), n;
4837
+ return Q(t) && (o = A(o, t)), o;
4799
4838
  }
4800
- const Na = q({
4839
+ const qa = q({
4801
4840
  name: "NumberPanel",
4802
4841
  props: {
4803
4842
  dataList: {
@@ -4808,27 +4847,27 @@ const Na = q({
4808
4847
  data() {
4809
4848
  return {};
4810
4849
  }
4811
- }), Va = { class: "number-panel-title" }, qa = { class: "number" }, Ua = { class: "name" };
4812
- function Ha(e, t, l, n, o, a) {
4813
- return i(!0), h(E, null, B(e.dataList, (s, p) => (i(), h("span", { key: p }, [
4814
- _("div", Va, [
4815
- (i(!0), h(E, null, B(Object.keys(s), (c, d) => (i(), h("div", {
4816
- key: d,
4850
+ }), Ua = { class: "number-panel-title" }, Ha = { class: "number" }, Fa = { class: "name" };
4851
+ function Ga(e, t, l, o, n, a) {
4852
+ return i(!0), h(I, null, O(e.dataList, (s, r) => (i(), h("span", { key: r }, [
4853
+ b("div", Ua, [
4854
+ (i(!0), h(I, null, O(Object.keys(s), (d, u) => (i(), h("div", {
4855
+ key: u,
4817
4856
  class: "title-inner"
4818
4857
  }, [
4819
- _("p", qa, O(s[c]), 1),
4820
- _("p", Ua, O(c), 1)
4858
+ b("p", Ha, B(s[d]), 1),
4859
+ b("p", Fa, B(d), 1)
4821
4860
  ]))), 128))
4822
4861
  ])
4823
4862
  ]))), 128);
4824
4863
  }
4825
- const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293"]]), Ga = {
4864
+ const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293"]]), za = {
4826
4865
  components: {
4827
- Chart: Il,
4828
- Md: Al,
4866
+ Chart: Tl,
4867
+ Md: Rl,
4829
4868
  Json: Re,
4830
4869
  Table: oe,
4831
- Number: Fa,
4870
+ Number: Ja,
4832
4871
  Html: ""
4833
4872
  },
4834
4873
  props: {
@@ -4841,29 +4880,29 @@ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
4841
4880
  setup(e) {
4842
4881
  const t = () => e.option.chart === "num" ? "number" : e.option.type;
4843
4882
  return {
4844
- compprops: (n) => {
4845
- const o = t();
4846
- if (o === "number")
4883
+ compprops: (o) => {
4884
+ const n = t();
4885
+ if (n === "number")
4847
4886
  return {
4848
- dataList: n.data
4887
+ dataList: o.data
4849
4888
  };
4850
- if (o === "chart")
4889
+ if (n === "chart")
4851
4890
  return {
4852
- options: Da(n.id, n.chart, n.data)
4891
+ options: Va(o.id, o.chart, o.data)
4853
4892
  };
4854
- if (o === "md")
4893
+ if (n === "md")
4855
4894
  return {
4856
- source: n.data
4895
+ source: o.data
4857
4896
  };
4858
- if (o === "table") {
4859
- if (!et(n.data))
4897
+ if (n === "table") {
4898
+ if (!tt(o.data))
4860
4899
  return { showPagination: !1 };
4861
4900
  const a = [];
4862
- return n.data[0] && Object.keys(n.data[0]).forEach((s, p) => {
4901
+ return o.data[0] && Object.keys(o.data[0]).forEach((s, r) => {
4863
4902
  a.push({ field: s, label: s });
4864
4903
  }), {
4865
4904
  headers: a,
4866
- list: n.data,
4905
+ list: o.data,
4867
4906
  showPagination: !1
4868
4907
  };
4869
4908
  }
@@ -4873,21 +4912,21 @@ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
4873
4912
  };
4874
4913
  }
4875
4914
  };
4876
- function Ja(e, t, l, n, o, a) {
4877
- const s = Ae, p = Lt("resize");
4878
- return ie((i(), m(s, {
4915
+ function Ka(e, t, l, o, n, a) {
4916
+ const s = Ae, r = Vt("resize");
4917
+ return ie((i(), f(s, {
4879
4918
  shadow: "never",
4880
4919
  class: "part"
4881
4920
  }, {
4882
- default: r(() => [
4883
- (i(), m(Ze(n.comptype()), G(Y(n.compprops(l.option))), null, 16))
4921
+ default: c(() => [
4922
+ (i(), f(Xe(o.comptype()), G(Y(o.compprops(l.option))), null, 16))
4884
4923
  ]),
4885
4924
  _: 1
4886
4925
  })), [
4887
- [p, !0]
4926
+ [r, !0]
4888
4927
  ]);
4889
4928
  }
4890
- const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1"]]), Ka = /* @__PURE__ */ q({
4929
+ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1"]]), Xa = /* @__PURE__ */ q({
4891
4930
  __name: "index",
4892
4931
  props: {
4893
4932
  filter: {
@@ -4901,16 +4940,16 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4901
4940
  },
4902
4941
  setup(e) {
4903
4942
  const t = e, l = useRoute();
4904
- Mt(() => {
4943
+ Ze(() => {
4905
4944
  });
4906
- const n = M({});
4945
+ const o = D({});
4907
4946
  ze(() => {
4908
- var f;
4909
- (f = t.filter) == null || f.forEach((b) => {
4910
- b.default !== null && (n.value[b.field] = b.default);
4947
+ var m;
4948
+ (m = t.filter) == null || m.forEach((_) => {
4949
+ _.default !== null && (o.value[_.field] = _.default);
4911
4950
  });
4912
4951
  });
4913
- const o = {
4952
+ const n = {
4914
4953
  inline: !0,
4915
4954
  labelPosition: "right",
4916
4955
  labelWidth: "auto",
@@ -4920,65 +4959,65 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4920
4959
  cancelButton: {
4921
4960
  text: "重置"
4922
4961
  }
4923
- }, a = M(1), s = M(t.filter), p = M(t.dataPart), c = j(() => {
4924
- let f = l.params.id;
4925
- if (!f) {
4926
- const b = l.path.split("/");
4927
- f = b[b.length - 1];
4962
+ }, a = D(1), s = D(t.filter), r = D(t.dataPart), d = M(() => {
4963
+ let m = l.params.id;
4964
+ if (!m) {
4965
+ const _ = l.path.split("/");
4966
+ m = _[_.length - 1];
4928
4967
  }
4929
- return "/focusbi_report/view/" + f;
4930
- }), d = (f) => {
4931
- ms.get(c.value, { params: f }).then(({ data: b }) => {
4932
- s.value = b.filter, p.value = b.dataPart, a.value++;
4968
+ return "/focusbi_report/view/" + m;
4969
+ }), u = (m) => {
4970
+ Tt.get(d.value, { params: m }).then(({ data: _ }) => {
4971
+ s.value = _.filter, r.value = _.dataPart, a.value++;
4933
4972
  });
4934
4973
  };
4935
- return (f, b) => {
4936
- const g = Ae, x = de, J = Be, U = ae;
4937
- return i(), m(U, null, {
4938
- default: r(() => [
4939
- w(s).length > 0 ? (i(), m(x, {
4974
+ return (m, _) => {
4975
+ const k = Ae, y = de, J = Oe, U = ae;
4976
+ return i(), f(U, null, {
4977
+ default: c(() => [
4978
+ x(s).length > 0 ? (i(), f(y, {
4940
4979
  key: 0,
4941
4980
  span: 24
4942
4981
  }, {
4943
- default: r(() => [
4944
- u(g, {
4982
+ default: c(() => [
4983
+ p(k, {
4945
4984
  shadow: "never",
4946
4985
  class: "part-filter"
4947
4986
  }, {
4948
- default: r(() => [
4949
- u(w(z), {
4950
- modelValue: w(n),
4951
- "onUpdate:modelValue": b[0] || (b[0] = (T) => jt(n) ? n.value = T : null),
4952
- "form-items": w(s),
4953
- options: o,
4954
- onSubmit: d
4987
+ default: c(() => [
4988
+ p(x(z), {
4989
+ modelValue: x(o),
4990
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => qt(o) ? o.value = T : null),
4991
+ "form-items": x(s),
4992
+ options: n,
4993
+ onSubmit: u
4955
4994
  }, null, 8, ["modelValue", "form-items"])
4956
4995
  ]),
4957
4996
  _: 1
4958
4997
  })
4959
4998
  ]),
4960
4999
  _: 1
4961
- })) : $("", !0),
4962
- u(x, { span: 24 }, {
4963
- default: r(() => [
4964
- u(U, { gutter: 20 }, {
4965
- default: r(() => [
4966
- (i(!0), h(E, null, B(w(p), (T, Z) => (i(), m(x, {
4967
- key: Z,
5000
+ })) : E("", !0),
5001
+ p(y, { span: 24 }, {
5002
+ default: c(() => [
5003
+ p(U, { gutter: 20 }, {
5004
+ default: c(() => [
5005
+ (i(!0), h(I, null, O(x(r), (T, X) => (i(), f(y, {
5006
+ key: X,
4968
5007
  span: T.col || 24
4969
5008
  }, {
4970
- default: r(() => [
4971
- T.errMsg ? (i(), m(J, {
5009
+ default: c(() => [
5010
+ T.errMsg ? (i(), f(J, {
4972
5011
  key: 1,
4973
5012
  title: T.id + " 片段执行出错",
4974
5013
  type: "error"
4975
5014
  }, {
4976
- default: r(() => [
4977
- k(O(T.errMsg), 1)
5015
+ default: c(() => [
5016
+ S(B(T.errMsg), 1)
4978
5017
  ]),
4979
5018
  _: 2
4980
- }, 1032, ["title"])) : (i(), m(za, {
4981
- key: w(a),
5019
+ }, 1032, ["title"])) : (i(), f(Wa, {
5020
+ key: x(a),
4982
5021
  option: T
4983
5022
  }, null, 8, ["option"]))
4984
5023
  ]),
@@ -4996,33 +5035,33 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4996
5035
  };
4997
5036
  }
4998
5037
  });
4999
- const Wa = {
5038
+ const Za = {
5000
5039
  __name: "report",
5001
5040
  setup(e) {
5002
- const t = useRoute(), l = j(() => {
5003
- let n = t.params.id;
5004
- if (!n) {
5005
- const o = t.path.split("/");
5006
- n = o[o.length - 1];
5041
+ const t = useRoute(), l = M(() => {
5042
+ let o = t.params.id;
5043
+ if (!o) {
5044
+ const n = t.path.split("/");
5045
+ o = n[n.length - 1];
5007
5046
  }
5008
- return "/focusbi_report/view/" + n;
5047
+ return "/focusbi_report/view/" + o;
5009
5048
  });
5010
- return (n, o) => (i(), m(se, { "schema-api": w(l) }, {
5011
- default: r((a) => [
5012
- u(Ka, G(Y(a)), null, 16)
5049
+ return (o, n) => (i(), f(se, { "schema-api": x(l) }, {
5050
+ default: c((a) => [
5051
+ p(Xa, G(Y(a)), null, 16)
5013
5052
  ]),
5014
5053
  _: 1
5015
5054
  }, 8, ["schema-api"]));
5016
5055
  }
5017
5056
  };
5018
- const Za = (e) => u("div", null, [e.test]), Qa = {
5019
- card: ll,
5057
+ const Qa = (e) => p("div", null, [e.test]), Ya = {
5058
+ card: al,
5020
5059
  form: z,
5021
5060
  table: oe,
5022
- test: Za,
5023
- row: nl,
5024
- col: ol
5025
- }, Xa = {
5061
+ test: Qa,
5062
+ row: sl,
5063
+ col: il
5064
+ }, es = {
5026
5065
  card: {
5027
5066
  type: "card",
5028
5067
  props: {
@@ -5043,21 +5082,21 @@ const Za = (e) => u("div", null, [e.test]), Qa = {
5043
5082
  }
5044
5083
  }
5045
5084
  };
5046
- function Ya(e) {
5047
- const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
5085
+ function ts(e) {
5086
+ const t = Object.assign({}, e), l = t.type.split(".").reverse(), o = t.span || 24;
5048
5087
  delete t.span;
5049
- let o = {
5088
+ let n = {
5050
5089
  ...t,
5051
5090
  type: l[0]
5052
5091
  };
5053
5092
  for (let a = 1; a < l.length; a++)
5054
- o = {
5093
+ n = {
5055
5094
  type: l[a],
5056
- children: [o]
5095
+ children: [n]
5057
5096
  };
5058
- return o.span = n, De([o]);
5097
+ return n.span = o, je([n]);
5059
5098
  }
5060
- function De(e) {
5099
+ function je(e) {
5061
5100
  const t = {
5062
5101
  type: "row",
5063
5102
  props: {
@@ -5067,99 +5106,99 @@ function De(e) {
5067
5106
  children: []
5068
5107
  };
5069
5108
  return e.forEach((l) => {
5070
- var s, p;
5071
- let n = Object.assign({}, l);
5072
- if (X((s = n.props) == null ? void 0 : s.style)) {
5073
- let c = "";
5074
- Object.keys((p = n.props) == null ? void 0 : p.style).forEach((d) => {
5075
- var f;
5076
- c += d + ":" + ((f = n.props) == null ? void 0 : f.style[d]) + ";";
5077
- }), n.props.style = c;
5109
+ var s, r;
5110
+ let o = Object.assign({}, l);
5111
+ if (Q((s = o.props) == null ? void 0 : s.style)) {
5112
+ let d = "";
5113
+ Object.keys((r = o.props) == null ? void 0 : r.style).forEach((u) => {
5114
+ var m;
5115
+ d += u + ":" + ((m = o.props) == null ? void 0 : m.style[u]) + ";";
5116
+ }), o.props.style = d;
5078
5117
  }
5079
- const o = {
5080
- span: n.span ?? 24,
5118
+ const n = {
5119
+ span: o.span ?? 24,
5081
5120
  class: "render-col"
5082
5121
  };
5083
- if (delete n.span, n.type.indexOf(".") > 0) {
5122
+ if (delete o.span, o.type.indexOf(".") > 0) {
5084
5123
  t.children.push({
5085
5124
  type: "col",
5086
- props: o,
5087
- children: Ya(n)
5125
+ props: n,
5126
+ children: ts(o)
5088
5127
  });
5089
5128
  return;
5090
5129
  }
5091
- n = A({
5130
+ o = A({
5092
5131
  props: {}
5093
- }, Xa[n.type] || {}, n);
5094
- const a = St(n.children);
5095
- a.length && (n.children = De(a)), t.children.push({
5132
+ }, es[o.type] || {}, o);
5133
+ const a = It(o.children);
5134
+ a.length && (o.children = je(a)), t.children.push({
5096
5135
  type: "col",
5097
- props: o,
5098
- children: [n]
5136
+ props: n,
5137
+ children: [o]
5099
5138
  });
5100
5139
  }), [t];
5101
5140
  }
5102
- function St(e) {
5103
- return et(e) ? e : X(e) ? [e] : [];
5141
+ function It(e) {
5142
+ return tt(e) ? e : Q(e) ? [e] : [];
5104
5143
  }
5105
5144
  let Ee = {};
5106
- const xt = (e) => {
5107
- const t = Qa[e.type] || Ee[e.type] || e.type;
5108
- return Nt(t, e.props, {
5109
- default: () => St(e.children).map((l) => xt(l))
5145
+ const $t = (e) => {
5146
+ const t = Ya[e.type] || Ee[e.type] || e.type;
5147
+ return Ht(t, e.props, {
5148
+ default: () => It(e.children).map((l) => $t(l))
5110
5149
  });
5111
- }, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Dt().appContext.components), De(Object.values(e.schema)).map((l) => xt(l))), ts = {
5150
+ }, ls = (e) => (Object.keys(Ee).length === 0 && (Ee = Ut().appContext.components), je(Object.values(e.schema)).map((l) => $t(l))), ns = {
5112
5151
  __name: "custom",
5113
5152
  setup(e) {
5114
- const t = M([]), l = (n, o) => (t.value = Vt(n), n);
5115
- return (n, o) => (i(), m(se, { "schema-handler": l }, {
5116
- default: r(() => [
5117
- u(w(es), { schema: w(t) }, null, 8, ["schema"])
5153
+ const t = D([]), l = (o, n) => (t.value = Ft(o), o);
5154
+ return (o, n) => (i(), f(se, { "schema-handler": l }, {
5155
+ default: c(() => [
5156
+ p(x(ls), { schema: x(t) }, null, 8, ["schema"])
5118
5157
  ]),
5119
5158
  _: 1
5120
5159
  }));
5121
5160
  }
5122
5161
  };
5123
5162
  let te = {};
5124
- function $i(e) {
5163
+ function Ci(e) {
5125
5164
  te = e;
5126
5165
  }
5127
- const ls = (e) => {
5166
+ const os = (e) => {
5128
5167
  const t = (l) => {
5129
- const n = "./views/" + l + ".vue";
5130
- return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ge);
5168
+ const o = "./views/" + l + ".vue";
5169
+ return te && te[o] && te[o].default ? te[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ge);
5131
5170
  };
5132
5171
  if (e.path === "#")
5133
5172
  return ge;
5134
5173
  switch (e.page_type) {
5135
- case D.list:
5136
- return wt;
5137
- case D.form:
5174
+ case j.list:
5175
+ return Et;
5176
+ case j.form:
5138
5177
  return xe;
5139
- case D.custom:
5140
- case D.localComp:
5178
+ case j.custom:
5179
+ case j.localComp:
5141
5180
  return t(e.view || "");
5142
- case D.tree:
5143
- return Ma;
5144
- case D.report:
5145
- return Wa;
5146
- case D.customSchema:
5147
- return ts;
5181
+ case j.tree:
5182
+ return ja;
5183
+ case j.report:
5184
+ return Za;
5185
+ case j.customSchema:
5186
+ return ns;
5148
5187
  }
5149
5188
  return ge;
5150
5189
  };
5151
- function ns(e) {
5190
+ function as(e) {
5152
5191
  let t = e.path;
5153
- return e.type === L.menu && e.page_type === D.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
5192
+ return e.type === L.menu && e.page_type === j.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
5154
5193
  }
5155
- function os(e) {
5194
+ function ss(e) {
5156
5195
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5157
5196
  }
5158
- const Et = (e) => {
5197
+ const Ct = (e) => {
5159
5198
  const t = e.type !== L.page, l = {
5160
- path: ns(e),
5161
- name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
5162
- component: ls(e),
5199
+ path: as(e),
5200
+ name: e.id + "_" + ss(e) + "_" + e.path.replaceAll("/", "_"),
5201
+ component: os(e),
5163
5202
  meta: {
5164
5203
  id: e.id,
5165
5204
  pageId: e.id,
@@ -5170,13 +5209,13 @@ const Et = (e) => {
5170
5209
  menuType: e.type,
5171
5210
  keepAlive: !1
5172
5211
  },
5173
- children: e.children ? e.children.map((n) => Et(n)) : []
5212
+ children: e.children ? e.children.map((o) => Ct(o)) : []
5174
5213
  };
5175
- if (e.page_type === D.entity) {
5176
- const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
5177
- path: n,
5214
+ if (e.page_type === j.entity) {
5215
+ const o = e.path + "/list", n = e.path + "/form", a = e.path + "/:id", s = [{
5216
+ path: o,
5178
5217
  name: e.name + "列表" + e.id,
5179
- component: wt,
5218
+ component: Et,
5180
5219
  meta: {
5181
5220
  id: e.id + 99999,
5182
5221
  title: "列表",
@@ -5187,7 +5226,7 @@ const Et = (e) => {
5187
5226
  path: e.path
5188
5227
  }
5189
5228
  }, {
5190
- path: o,
5229
+ path: n,
5191
5230
  name: e.name + "新建" + e.id,
5192
5231
  component: xe,
5193
5232
  meta: {
@@ -5216,115 +5255,120 @@ const Et = (e) => {
5216
5255
  l.children = [...s, ...l.children];
5217
5256
  }
5218
5257
  if (l.children && l.children.length > 0) {
5219
- let n = !0;
5220
- if (l.children.forEach((o) => {
5221
- o.meta && !o.meta.hidden && (n = !1);
5222
- }), l.meta && (l.meta.menuType = t ? L.dir : L.hidden), n) {
5258
+ let o = !0;
5259
+ if (l.children.forEach((n) => {
5260
+ n.meta && !n.meta.hidden && (o = !1);
5261
+ }), l.meta && (l.meta.menuType = t ? L.dir : L.hidden), o) {
5223
5262
  l.meta && (l.meta.menuType = L.menu);
5224
- let o = "/";
5263
+ let n = "/";
5225
5264
  for (let a = 0; a < l.children.length; a++)
5226
5265
  if (l.children[a].path.indexOf("/:") === -1) {
5227
- o = l.children[a].path;
5266
+ n = l.children[a].path;
5228
5267
  break;
5229
5268
  }
5230
- l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
5269
+ l.redirect = n, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
5231
5270
  }
5232
5271
  }
5233
5272
  return l;
5234
- }, as = (e) => {
5273
+ }, is = (e) => {
5235
5274
  const t = [];
5236
5275
  return e.forEach((l) => {
5237
- const n = {
5276
+ const o = {
5238
5277
  id: l.id,
5239
5278
  label: l.label,
5240
5279
  routes: []
5241
5280
  };
5242
- l.routes.forEach((o) => {
5243
- n.routes.push(Et(o));
5244
- }), t.push(n);
5281
+ l.routes.forEach((n) => {
5282
+ o.routes.push(Ct(n));
5283
+ }), t.push(o);
5245
5284
  }), t;
5246
5285
  };
5247
- function ss(e) {
5248
- e.beforeEach(async (t, l, n) => {
5249
- if (vt().indexOf(t.path) !== -1) {
5250
- n();
5286
+ function rs(e) {
5287
+ e.beforeEach(async (t, l, o) => {
5288
+ if (kt().indexOf(t.path) !== -1) {
5289
+ o();
5251
5290
  return;
5252
5291
  }
5253
- if (ha()) {
5254
- n();
5292
+ if (fa()) {
5293
+ o();
5255
5294
  return;
5256
5295
  }
5257
- await S.dispatch("user/info");
5258
- const o = await S.dispatch("user/loadRemoteRoutes"), a = as(o);
5296
+ await g.dispatch("user/info");
5297
+ const n = await g.dispatch("user/loadRemoteRoutes"), a = is(n);
5259
5298
  a.forEach((s) => {
5260
- s.routes.forEach((p) => {
5299
+ s.routes.forEach((r) => {
5261
5300
  e.addRoute({
5262
5301
  path: "/",
5263
- component: bt,
5264
- children: [p]
5302
+ component: vt,
5303
+ children: [r]
5265
5304
  });
5266
5305
  });
5267
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
5306
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), g.commit("user/updateRemoteRouter", a), await e.replace(t), o();
5268
5307
  });
5269
5308
  }
5270
- function is(e) {
5271
- e.beforeEach(async (t, l, n) => {
5272
- var p;
5273
- const a = [S.state.settings.title || ""], s = t.matched.length;
5274
- for (let c = s; c > s - 3; c--) {
5275
- const d = t.matched[c - 1];
5276
- (p = d == null ? void 0 : d.meta) != null && p.title && a.push(d.meta.title + "");
5309
+ function cs(e) {
5310
+ e.beforeEach(async (t, l, o) => {
5311
+ var r;
5312
+ const a = [g.state.settings.title || ""], s = t.matched.length;
5313
+ for (let d = s; d > s - 3; d--) {
5314
+ const u = t.matched[d - 1];
5315
+ (r = u == null ? void 0 : u.meta) != null && r.title && a.push(u.meta.title + "");
5277
5316
  }
5278
- a.length > 1 && (document.title = a.reverse().join("-")), n();
5279
- }), e.afterEach(async (t, l, n) => {
5280
- Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
5317
+ a.length > 1 && (document.title = a.reverse().join("-")), o();
5318
+ }), e.afterEach(async (t, l, o) => {
5319
+ Object.keys(t.meta).length > 0 && await g.dispatch("app/setCurrentMeta", t.meta);
5281
5320
  });
5282
5321
  }
5283
- function rs(e) {
5284
- _a(e), fa(e), ss(e), is(e);
5322
+ function us(e) {
5323
+ va(e), ma(e), rs(e), cs(e);
5285
5324
  }
5286
- rs(K);
5287
- function cs() {
5288
- return S.state.user.token;
5325
+ us(K);
5326
+ function ps() {
5327
+ return g.state.user.token;
5328
+ }
5329
+ function ds() {
5330
+ return g.state.user.expired;
5289
5331
  }
5290
5332
  function Ge(e) {
5291
- en({
5333
+ ln({
5292
5334
  message: e,
5293
5335
  type: "error",
5294
5336
  duration: 5 * 1e3,
5295
5337
  grouping: !0
5296
5338
  });
5297
5339
  }
5298
- const us = {
5340
+ const ms = {
5299
5341
  onFulfilled: function(e) {
5300
5342
  var l;
5301
5343
  e.headers = e.headers || {};
5302
- const t = cs();
5344
+ const t = ps();
5303
5345
  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;
5304
5346
  }
5305
- }, ps = {
5347
+ }, fs = {
5306
5348
  onFulfilled(e) {
5307
- var n, o, a, s, p, c, d;
5308
- if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
5309
- const f = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5349
+ var o, n, a, s, r, d, u;
5350
+ if (!(((o = e.config) == null ? void 0 : o.notHoldApiErr) !== void 0 && ((n = e.config) == null ? void 0 : n.notHoldApiErr) === !0) && e.data.code !== 0) {
5351
+ const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5310
5352
  if (e.data.code === 401) {
5311
- Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5353
+ if (ds())
5354
+ return;
5355
+ g.dispatch("user/SetExpired"), Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5312
5356
  showClose: !1,
5313
5357
  confirmButtonText: "重新登录",
5314
5358
  showCancelButton: !0,
5315
5359
  cancelButtonText: "取消",
5316
- callback: (b) => {
5317
- b === "confirm" && (pt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
5360
+ callback: (_) => {
5361
+ _ === "confirm" && (ft(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), g.dispatch("user/SetExpired");
5318
5362
  }
5319
5363
  });
5320
5364
  return;
5321
5365
  } else
5322
- Ge(f);
5323
- return Promise.reject(f);
5366
+ Ge(m);
5367
+ return Promise.reject(m);
5324
5368
  }
5325
- let l = (p = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : p._message_box;
5326
- return l !== void 0 && ($e(l) && (l = {
5327
- message: (d = (c = e.data) == null ? void 0 : c.data) == null ? void 0 : d._message_box
5369
+ let l = (r = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : r._message_box;
5370
+ return l !== void 0 && (Ie(l) && (l = {
5371
+ message: (u = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : u._message_box
5328
5372
  }), Ue({
5329
5373
  title: "提示",
5330
5374
  type: "success",
@@ -5334,29 +5378,29 @@ const us = {
5334
5378
  },
5335
5379
  onRejected(e) {
5336
5380
  var t;
5337
- return Ie.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5381
+ return $e.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5338
5382
  }
5339
- }, ds = [
5383
+ }, hs = [
5340
5384
  {
5341
- request: ln,
5342
- response: nn
5385
+ request: on,
5386
+ response: an
5343
5387
  },
5344
5388
  {
5345
- request: us,
5346
- response: ps
5389
+ request: ms,
5390
+ response: fs
5347
5391
  }
5348
5392
  ];
5349
5393
  function Ne(e = {}) {
5350
- const t = me.axios || {}, l = A(t, e || {}), n = Ie.create({
5394
+ const t = me.axios || {}, l = A(t, e || {}), o = $e.create({
5351
5395
  ...l
5352
5396
  // adapter: (c) => cacheAdapter(c, defaultAxios)
5353
5397
  });
5354
- return ds.forEach((o) => {
5355
- n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
5356
- }), n;
5398
+ return hs.forEach((n) => {
5399
+ o.interceptors.request.use(n.request.onFulfilled, n.request.onRejected), o.interceptors.response.use(n.response.onFulfilled, n.response.onRejected);
5400
+ }), o;
5357
5401
  }
5358
- const ms = Ne();
5359
- const fs = {
5402
+ const Tt = Ne();
5403
+ const bs = {
5360
5404
  beforeMount(e, t) {
5361
5405
  e.clickOutsideEvent = function(l) {
5362
5406
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5365,131 +5409,131 @@ const fs = {
5365
5409
  unmounted(e) {
5366
5410
  document.body.removeEventListener("click", e.clickOutsideEvent);
5367
5411
  }
5368
- }, W = Ol(), hs = {
5412
+ }, W = Al(), _s = {
5369
5413
  mounted: (e, t) => {
5370
5414
  e !== null && (t.value, e.oncontextmenu = (l) => {
5371
5415
  l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
5372
5416
  });
5373
5417
  }
5374
- }, bs = {
5418
+ }, ys = {
5375
5419
  mounted(e) {
5376
5420
  }
5377
5421
  };
5378
5422
  function Je(e, t) {
5379
- let l = e[`offset${t}`], n = e.offsetParent;
5380
- for (; n; )
5381
- l += n[`offset${t}`], n = n.offsetParent;
5423
+ let l = e[`offset${t}`], o = e.offsetParent;
5424
+ for (; o; )
5425
+ l += o[`offset${t}`], o = o.offsetParent;
5382
5426
  return l;
5383
5427
  }
5384
- const _s = {
5428
+ const vs = {
5385
5429
  mounted: (e, t) => {
5386
5430
  if (e === null || !t.value.dev)
5387
5431
  return;
5388
5432
  let l = e;
5389
5433
  if (t.value.parent)
5390
- for (let c = 0; c < t.value.parent; c++)
5434
+ for (let d = 0; d < t.value.parent; d++)
5391
5435
  l.parentElement && (l = l.parentElement);
5392
5436
  l.classList.add("devtool-hover");
5393
- const n = document.createElement("i");
5394
- n.className = "devtool-item-wrapper", l.onmouseover = () => {
5395
- n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = Je(l, "Top") - 15 + "px", n.style.left = Je(l, "Left") - 15 + "px";
5437
+ const o = document.createElement("i");
5438
+ o.className = "devtool-item-wrapper", l.onmouseover = () => {
5439
+ o.style.height = l.offsetHeight + 30 + "px", o.style.width = l.offsetWidth + 30 + "px", o.style.top = Je(l, "Top") - 15 + "px", o.style.left = Je(l, "Left") - 15 + "px";
5396
5440
  };
5397
- const o = document.createElement("span");
5398
- o.className = "dev-action-edit", o.title = "编辑";
5441
+ const n = document.createElement("span");
5442
+ n.className = "dev-action-edit", n.title = "编辑";
5399
5443
  const a = document.createElement("i");
5400
- a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (c) => {
5401
- W.emit("dev-action", { event: c, data: { type: "edit", devId: t.value.devId } });
5402
- }, n.appendChild(o);
5444
+ a.className = "iconfont ra-editor1", n.appendChild(a), n.onclick = (d) => {
5445
+ W.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
5446
+ }, o.appendChild(n);
5403
5447
  const s = document.createElement("span");
5404
5448
  s.className = "dev-action-del", s.title = "删除";
5405
- const p = document.createElement("i");
5406
- p.className = "iconfont ra-cut", s.appendChild(p), s.onclick = (c) => {
5407
- W.emit("dev-action", { event: c, data: { type: "del", devId: t.value.devId } });
5408
- }, n.appendChild(s), l.insertBefore(n, l.firstChild);
5449
+ const r = document.createElement("i");
5450
+ r.className = "iconfont ra-cut", s.appendChild(r), s.onclick = (d) => {
5451
+ W.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5452
+ }, o.appendChild(s), l.insertBefore(o, l.firstChild);
5409
5453
  }
5410
- }, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5454
+ }, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5411
5455
  __proto__: null,
5412
- devtool: _s,
5413
- outClick: fs,
5414
- resize: bs,
5415
- rightClick: hs
5456
+ devtool: vs,
5457
+ outClick: bs,
5458
+ resize: ys,
5459
+ rightClick: _s
5416
5460
  }, Symbol.toStringTag, { value: "Module" }));
5417
5461
  let ce;
5418
- function Ii(e) {
5462
+ function Ti(e) {
5419
5463
  return e ? Ne(A(me.axios, e)) : ce;
5420
5464
  }
5421
- function Ci(e) {
5422
- const t = A(me, e), l = qt(Rl), n = Es(t), o = t.plugins || [];
5423
- o.unshift(n), o.forEach((a) => {
5424
- xs(l, a);
5425
- }), t != null && t.mock && Fl(), ce = Ne(t.axios), S.dispatch("setHttp", ce).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), S.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Cl(() => ({
5465
+ function Bi(e) {
5466
+ const t = A(me, e), l = Gt(Ml), o = $s(t), n = t.plugins || [];
5467
+ n.unshift(o), n.forEach((a) => {
5468
+ Is(l, a);
5469
+ }), t != null && t.mock && Jl(), ce = Ne(t.axios), g.dispatch("setHttp", ce).then(), g.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), g.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Bl(() => ({
5426
5470
  "X-Token": Me()
5427
5471
  })), K.isReady().then(() => l.mount("#app"));
5428
5472
  }
5429
- function vs(e, t = {}) {
5473
+ function ks(e, t = {}) {
5430
5474
  Object.keys(t).forEach((l) => {
5431
5475
  e.component(l, t[l]);
5432
5476
  });
5433
5477
  }
5434
- function gs(e = []) {
5478
+ function ws(e = []) {
5435
5479
  e.forEach((t) => {
5436
5480
  K.addRoute(t);
5437
- }), S.commit("user/setCustomRoutes", e);
5481
+ }), g.commit("user/setCustomRoutes", e);
5438
5482
  }
5439
- function ks(e, t) {
5483
+ function Ss(e, t) {
5440
5484
  t.forEach((l) => {
5441
- X(l) && (l = [l]), e.use(...l);
5485
+ Q(l) && (l = [l]), e.use(...l);
5442
5486
  });
5443
5487
  }
5444
- function ws(e, t = {}) {
5488
+ function xs(e, t = {}) {
5445
5489
  Object.keys(t).forEach((l) => {
5446
5490
  e.directive(l, t[l]);
5447
5491
  });
5448
5492
  }
5449
- function Ss(e = {}) {
5493
+ function Es(e = {}) {
5450
5494
  const t = ["app", "settings", "user"];
5451
5495
  Object.keys(e).forEach((l) => {
5452
5496
  if (t.indexOf(l) !== -1) {
5453
5497
  console.warn(`storeModule name [${l}] is use by base, please change it!`);
5454
5498
  return;
5455
5499
  }
5456
- S.registerModule(l, e[l]);
5500
+ g.registerModule(l, e[l]);
5457
5501
  });
5458
5502
  }
5459
- function xs(e, t) {
5460
- vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), ct(t.mockApis || []);
5503
+ function Is(e, t) {
5504
+ ks(e, t.components || {}), ws(t.routes || []), Ss(e, t.use || []), xs(e, t.directives || {}), Es(t.storeModules || {}), dt(t.mockApis || []);
5461
5505
  }
5462
- function Es(e) {
5506
+ function $s(e) {
5463
5507
  var t;
5464
5508
  return {
5465
- components: { VIcon: Tl },
5466
- directives: ys,
5509
+ components: { VIcon: Ol },
5510
+ directives: gs,
5467
5511
  use: [
5468
- S,
5512
+ g,
5469
5513
  K,
5470
- [Yt, { locale: lt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5514
+ [nl, { locale: nt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5471
5515
  ]
5472
5516
  };
5473
5517
  }
5474
5518
  export {
5475
- _t as BaseSso,
5519
+ wt as BaseSso,
5476
5520
  ge as Container,
5477
- Ei as DingTalk,
5478
- xi as Github,
5479
- bt as Layout,
5521
+ $i as DingTalk,
5522
+ Ii as Github,
5523
+ vt as Layout,
5480
5524
  L as MenuType,
5481
- en as Message,
5525
+ ln as Message,
5482
5526
  Ue as MessageBox,
5483
- D as PageType,
5484
- Wo as allSso,
5485
- Ci as createAdmin,
5527
+ j as PageType,
5528
+ _a as allSso,
5529
+ Bi as createAdmin,
5486
5530
  W as eventBus,
5487
- on as getCmp,
5531
+ sn as getCmp,
5488
5532
  ce as http,
5489
5533
  Ne as instance,
5490
- $i as regViews,
5491
- Si as setCmp,
5492
- as as transRemoteModules,
5493
- Ii as useHttp
5534
+ Ci as regViews,
5535
+ Ei as setCmp,
5536
+ is as transRemoteModules,
5537
+ Ti as useHttp
5494
5538
  };
5495
5539
  //# sourceMappingURL=index.es.js.map