@okiss/oms 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,20 +1,20 @@
1
- import { defineComponent as N, onBeforeMount as Ge, provide as yt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as vt, createElementBlock as f, Fragment as k, renderList as I, toDisplayString as B, normalizeClass as H, renderSlot as Y, mergeProps as q, createCommentVNode as E, toRefs as gt, ref as R, createElementVNode as b, Transition as kt, pushScopeId as Je, popScopeId as Ke, resolveDynamicComponent as ze, normalizeProps as J, guardReactiveProps as Z, withDirectives as ye, vModelText as Le, resolveDirective as Et, onMounted as wt, createApp as St } from "vue";
2
- import { ElConfigProvider as Ct, ElBreadcrumbItem as xt, ElBreadcrumb as Bt, ElRow as le, ElMain as It, ElAside as $t, ElContainer as At, ElDivider as We, ElButton as ae, ElOption as Se, ElSelect as Ce, ElFormItem as Ze, ElForm as Qe, ElCol as ue, ElDrawer as Xe, ElDropdownItem as Tt, ElDropdownMenu as Ft, ElDropdown as Dt, ElMenuItem as Ot, ElSubMenu as Pt, ElOptionGroup as Rt, ElMenu as Lt, ElScrollbar as Mt, ElBacktop as jt, ElMessage as Nt, ElAlert as ve, ElTree as Vt, ElCard as xe } from "element-plus/es";
1
+ import { defineComponent as N, onBeforeMount as Ge, provide as yt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as vt, createElementBlock as h, Fragment as k, renderList as $, toDisplayString as B, normalizeClass as H, renderSlot as Y, mergeProps as q, createCommentVNode as w, toRefs as gt, ref as R, normalizeStyle as kt, createElementVNode as b, Transition as wt, pushScopeId as Je, popScopeId as ze, resolveDynamicComponent as Ke, normalizeProps as J, guardReactiveProps as Z, withDirectives as ye, vModelText as Le, resolveDirective as Et, onMounted as St, createApp as Ct } from "vue";
2
+ import { ElConfigProvider as xt, ElBreadcrumbItem as Bt, ElBreadcrumb as $t, ElRow as le, ElMain as It, ElAside as At, ElContainer as Tt, ElDivider as We, ElButton as ae, ElOption as Se, ElSelect as Ce, ElFormItem as Ze, ElForm as Qe, ElCol as ue, ElDrawer as Xe, ElDropdownItem as Ft, ElDropdownMenu as Dt, ElDropdown as Ot, ElMenuItem as Pt, ElSubMenu as Rt, ElOptionGroup as Lt, ElMenu as Mt, ElScrollbar as jt, ElBacktop as Nt, ElMessage as Vt, ElAlert as ve, ElTree as qt, ElCard as xe } from "element-plus/es";
3
3
  import "element-plus/es/components/config-provider/style/css";
4
4
  import Be from "element-plus/lib/locale/lang/zh-cn";
5
- import { addNewStyle as qt, addNewStyleTag as Ut, queryParams as Ht, logGroup as Gt, isString as Ie, compactObject as Ye, showEleByClassName as Jt, Cache as fe, isExternal as Me, getQueryParam as Kt, createIFrame as zt, strVarReplace as z, obj2Param as Wt, isObject as $e, effectDataTrans as Zt, isArray as Qt } from "@okiss/utils";
5
+ import { addNewStyle as Ut, addNewStyleTag as Ht, queryParams as Gt, logGroup as Jt, isString as $e, compactObject as Ye, showEleByClassName as zt, waterMarker as Kt, Cache as fe, isExternal as Me, getQueryParam as Wt, createIFrame as Zt, strVarReplace as K, obj2Param as Qt, isObject as Ie, effectDataTrans as Xt, isArray as Yt } from "@okiss/utils";
6
6
  import he from "mockjs";
7
- import Xt, { cloneDeep as y, merge as D, get as ee, unset as et } from "lodash";
7
+ import el, { cloneDeep as y, merge as D, get as ee, unset as et } from "lodash";
8
8
  import ie from "axios";
9
9
  import L from "js-cookie";
10
- import { createStore as Yt, useStore as tt, mapGetters as Ae } from "vuex";
11
- import el, { ElMessage as tl, ElMessageBox as ll } from "element-plus";
10
+ import { createStore as tl, useStore as tt, mapGetters as Ae } from "vuex";
11
+ import ll, { ElMessage as ol, ElMessageBox as nl } from "element-plus";
12
12
  import "element-plus/dist/index.css";
13
13
  import "dayjs/locale/zh-cn";
14
- import { VForm as W, VBtn as Te, JsonView as Fe, VTable as re, VChart as ol, setUploadHeaderHandle as nl, VIcon as sl } from "@okiss/vbtf";
14
+ import { VForm as W, VBtn as Te, JsonView as Fe, VTable as re, VChart as sl, setUploadHeaderHandle as al, VIcon as il } from "@okiss/vbtf";
15
15
  import "normalize.css/normalize.css";
16
16
  import "@okiss/vbtf/style.css";
17
- import { useRoute as ce, onBeforeRouteLeave as al, useRouter as il, createRouter as rl, createWebHashHistory as ul, onBeforeRouteUpdate as cl } from "vue-router";
17
+ import { useRoute as ce, onBeforeRouteLeave as rl, useRouter as ul, createRouter as cl, createWebHashHistory as dl, onBeforeRouteUpdate as pl } from "vue-router";
18
18
  import "element-plus/es/components/row/style/css";
19
19
  import "element-plus/es/components/drawer/style/css";
20
20
  import "element-plus/es/components/dropdown/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 dl from "path-to-regexp";
26
+ import * as ml 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,18 +33,18 @@ 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 pl from "mitt";
36
+ import fl from "mitt";
37
37
  import "element-plus/es/components/scrollbar/style/css";
38
38
  import "element-plus/es/components/menu/style/css";
39
39
  import "element-plus/es/components/sub-menu/style/css";
40
40
  import "element-plus/es/components/menu-item/style/css";
41
41
  import "element-plus/es/components/option-group/style/css";
42
42
  import "element-plus/es/components/backtop/style/css";
43
- import { useEventListener as ml } from "@vueuse/core";
43
+ import { useEventListener as hl } from "@vueuse/core";
44
44
  import "element-plus/es/components/alert/style/css";
45
45
  import "element-plus/es/components/card/style/css";
46
46
  import "element-plus/es/components/tree/style/css";
47
- import fl from "vue3-markdown-it";
47
+ import bl from "vue3-markdown-it";
48
48
  import "element-plus/es/components/message/style/css";
49
49
  import ge from "nprogress";
50
50
  import "nprogress/nprogress.css";
@@ -54,13 +54,13 @@ String.prototype.format || (String.prototype.format = function() {
54
54
  return typeof e[l] < "u" ? e[l] : t;
55
55
  });
56
56
  });
57
- const hl = /* @__PURE__ */ N({
57
+ const _l = /* @__PURE__ */ N({
58
58
  __name: "App",
59
59
  setup(e) {
60
60
  var l, n, o, s;
61
61
  Ge(() => {
62
62
  const a = document.getElementById("preloader");
63
- a !== null && (document.body.removeChild(a), qt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ut(`.iconfont {
63
+ a !== null && (document.body.removeChild(a), Ut("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ht(`.iconfont {
64
64
  font-size: 19px;
65
65
  font-style: normal;
66
66
  -webkit-font-smoothing: antialiased;
@@ -69,7 +69,7 @@ const hl = /* @__PURE__ */ N({
69
69
  });
70
70
  const t = Be;
71
71
  return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && yt("vsPath", (s = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : s.vsPath), (a, c) => {
72
- const d = v("router-view"), p = Ct;
72
+ const d = v("router-view"), p = xt;
73
73
  return i(), m(p, { locale: T(t) }, {
74
74
  default: r(() => [
75
75
  u(d)
@@ -80,7 +80,7 @@ const hl = /* @__PURE__ */ N({
80
80
  }
81
81
  });
82
82
  var Q = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(Q || {});
83
- const bl = {
83
+ const yl = {
84
84
  saveApi: "/save",
85
85
  afterSubmit: "",
86
86
  afterReset: "goback",
@@ -467,7 +467,7 @@ const bl = {
467
467
  type: "success"
468
468
  }
469
469
  }
470
- ], _l = {
470
+ ], vl = {
471
471
  exportAble: !0,
472
472
  filter: [
473
473
  {
@@ -564,7 +564,7 @@ const bl = {
564
564
  }
565
565
  ],
566
566
  normalButton: [
567
- ...Xt.cloneDeep(je),
567
+ ...el.cloneDeep(je),
568
568
  {
569
569
  type: "jump",
570
570
  target: "/user/form",
@@ -576,7 +576,7 @@ const bl = {
576
576
  ],
577
577
  selectedNotice: "\u5F53\u524D\u5171\u52FE\u9009: {selectedCount} \u6761",
578
578
  listApi: "/user/list"
579
- }, yl = {
579
+ }, gl = {
580
580
  code: 0,
581
581
  data: {
582
582
  "list|0-100": [
@@ -597,7 +597,7 @@ const bl = {
597
597
  "page|1-5": 2
598
598
  }
599
599
  }
600
- }, vl = {
600
+ }, kl = {
601
601
  afterSubmit: "",
602
602
  afterReset: "goback",
603
603
  formItems: [
@@ -634,7 +634,7 @@ const bl = {
634
634
  label: "span"
635
635
  }
636
636
  ]
637
- }, gl = {
637
+ }, wl = {
638
638
  afterSubmit: "",
639
639
  afterReset: "",
640
640
  formItems: [
@@ -673,7 +673,7 @@ const bl = {
673
673
  label: "span"
674
674
  }
675
675
  ]
676
- }, kl = { form: bl, table: _l, listMock: yl, layoutForm: vl, layoutSection: gl }, El = [
676
+ }, El = { form: yl, table: vl, listMock: gl, layoutForm: kl, layoutSection: wl }, Sl = [
677
677
  {
678
678
  method: Q.POST,
679
679
  url: "/login",
@@ -717,11 +717,11 @@ const bl = {
717
717
  {
718
718
  url: "/user/list",
719
719
  method: Q.GET,
720
- response: (e) => kl.listMock
720
+ response: (e) => El.listMock
721
721
  }
722
- ], wl = [
723
- ...El
724
- ], Sl = {
722
+ ], Cl = [
723
+ ...Sl
724
+ ], xl = {
725
725
  baseURL: "/api",
726
726
  withCredentials: !0,
727
727
  timeout: 5e3
@@ -744,9 +744,13 @@ const bl = {
744
744
  nav: [],
745
745
  whiteRoutes: ["/login"],
746
746
  tokenExpire: 7 * 24 * 60 * 60 * 1e3,
747
- defaultAvatar: "http://assest.daodao.run/avatar.jpg"
747
+ defaultAvatar: "http://assest.daodao.run/avatar.jpg",
748
+ envColor: {
749
+ uat: "gray",
750
+ pre: "green"
751
+ }
748
752
  }, de = {
749
- axios: Sl,
753
+ axios: xl,
750
754
  settings: lt,
751
755
  plugins: [],
752
756
  mock: !1
@@ -757,18 +761,18 @@ function ot(e) {
757
761
  ke[`${t.method}::${l}`] = t;
758
762
  });
759
763
  }
760
- ot(wl);
764
+ ot(Cl);
761
765
  function nt(e) {
762
766
  var n;
763
767
  let t = e.url, l = e.baseURL || ((n = de.axios) == null ? void 0 : n.baseURL);
764
768
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
765
769
  }
766
- function Cl() {
770
+ function Bl() {
767
771
  Object.keys(ke).forEach((e) => {
768
772
  const t = ke[e], l = nt(t);
769
773
  he.mock(l, t.method, function(n) {
770
- const { url: o, type: s, body: a } = n, c = Ht(o), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), h = he.mock(p);
771
- return Gt(o, { type: s, query: c, data: d, response: h }), he.mock(h);
774
+ const { url: o, type: s, body: a } = n, c = Gt(o), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), f = he.mock(p);
775
+ return Jt(o, { type: s, query: c, data: d, response: f }), he.mock(f);
772
776
  });
773
777
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
774
778
  }
@@ -776,14 +780,14 @@ const De = "oms:token";
776
780
  function Oe() {
777
781
  return L.get(De) || "";
778
782
  }
779
- function xl(e) {
780
- const t = new Date(new Date().getTime() + (w.state.settings.tokenExpire || 864e5));
783
+ function $l(e) {
784
+ const t = new Date(new Date().getTime() + (E.state.settings.tokenExpire || 864e5));
781
785
  return L.set(De, e, { expires: t });
782
786
  }
783
787
  function st() {
784
788
  return L.remove(De);
785
789
  }
786
- const Bl = {
790
+ const Il = {
787
791
  name: "",
788
792
  nickname: "",
789
793
  avatar: "",
@@ -794,13 +798,14 @@ const Bl = {
794
798
  isLodeRemoteRoutes: !1,
795
799
  resource: {},
796
800
  roleIds: [],
797
- path: ""
798
- }, Il = {
801
+ path: "",
802
+ env: ""
803
+ }, Al = {
799
804
  namespaced: !0,
800
- state: Bl,
805
+ state: Il,
801
806
  mutations: {
802
807
  updateToken(e, t) {
803
- e.token = t, xl(t);
808
+ e.token = t, $l(t);
804
809
  },
805
810
  removeToken(e) {
806
811
  e.token = "", st();
@@ -826,7 +831,8 @@ const Bl = {
826
831
  isLodeRemoteRoutes: !1,
827
832
  resource: {},
828
833
  roleIds: [],
829
- path: ""
834
+ path: "",
835
+ env: ""
830
836
  });
831
837
  }
832
838
  },
@@ -858,9 +864,9 @@ const Bl = {
858
864
  url: "/user/info",
859
865
  method: "GET"
860
866
  }).then((o) => {
861
- var a, c, d, p;
867
+ var a, c, d, p, f;
862
868
  const s = ((a = o.data) == null ? void 0 : a.role_ids) || [];
863
- 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: s }), !L.get("username") && L.set("username", (p = o.data) == null ? void 0 : p.name), l(!0);
869
+ 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: s }), e("updateState", { key: "env", value: (p = o.data) == null ? void 0 : p.env }), !L.get("username") && L.set("username", (f = o.data) == null ? void 0 : f.name), l(!0);
864
870
  }).catch((o) => {
865
871
  n(o);
866
872
  }) : n("http client not init");
@@ -884,9 +890,9 @@ const Bl = {
884
890
  });
885
891
  }
886
892
  }
887
- }, $l = y(lt), Al = {
893
+ }, Tl = y(lt), Fl = {
888
894
  namespaced: !0,
889
- state: $l,
895
+ state: Tl,
890
896
  mutations: {
891
897
  updateSettings(e, t) {
892
898
  e = D(e, t);
@@ -897,7 +903,7 @@ const Bl = {
897
903
  e("updateSettings", l);
898
904
  }
899
905
  }
900
- }, Tl = {
906
+ }, Dl = {
901
907
  sidebar: {
902
908
  opened: L.get("sidebarStatus") ? !!L.get("sidebarStatus") : !0,
903
909
  withoutAnimation: !1
@@ -906,9 +912,9 @@ const Bl = {
906
912
  pages: {},
907
913
  currentRouteMeta: {},
908
914
  builderSchema: {}
909
- }, Fl = {
915
+ }, Ol = {
910
916
  namespaced: !0,
911
- state: Tl,
917
+ state: Dl,
912
918
  mutations: {
913
919
  TOGGLE_SIDEBAR: (e) => {
914
920
  e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? L.set("sidebarStatus", "1") : L.set("sidebarStatus", "0");
@@ -949,11 +955,11 @@ const Bl = {
949
955
  e("SET_BUILDER_SCHEMA", t);
950
956
  }
951
957
  }
952
- }, Dl = {
958
+ }, Pl = {
953
959
  currentCellItem: {}
954
- }, Ol = {
960
+ }, Rl = {
955
961
  namespaced: !0,
956
- state: Dl,
962
+ state: Pl,
957
963
  mutations: {
958
964
  SET_CURRENT_CELLITEM: (e, t) => {
959
965
  e.currentCellItem = t;
@@ -964,7 +970,7 @@ const Bl = {
964
970
  e("SET_CURRENT_CELLITEM", t);
965
971
  }
966
972
  }
967
- }, w = Yt({
973
+ }, E = tl({
968
974
  state: void 0,
969
975
  getters: {
970
976
  http: (e) => e.http,
@@ -991,12 +997,12 @@ const Bl = {
991
997
  }
992
998
  },
993
999
  modules: {
994
- user: Il,
995
- settings: Al,
996
- app: Fl,
997
- builderSchema: Ol
1000
+ user: Al,
1001
+ settings: Fl,
1002
+ app: Ol,
1003
+ builderSchema: Rl
998
1004
  }
999
- }), Ne = tl, Ve = ll, Pl = ie.CancelToken, ne = {
1005
+ }), Ne = ol, Ve = nl, Ll = ie.CancelToken, ne = {
1000
1006
  taskList: {},
1001
1007
  cacheList: /* @__PURE__ */ new Map(),
1002
1008
  uniqueId(e) {
@@ -1032,16 +1038,16 @@ const Bl = {
1032
1038
  const t = this.uniqueId(e);
1033
1039
  return this.cacheList.delete(t);
1034
1040
  }
1035
- }, Rl = {
1041
+ }, Ml = {
1036
1042
  onFulfilled: function(e) {
1037
- return ne.pending(e) && ne.delTask(e), e.cancelToken = new Pl((t) => {
1043
+ return ne.pending(e) && ne.delTask(e), e.cancelToken = new Ll((t) => {
1038
1044
  ne.addTask(e, t);
1039
1045
  }), e;
1040
1046
  },
1041
1047
  onRejected(e) {
1042
1048
  return Promise.reject(e);
1043
1049
  }
1044
- }, Ll = {
1050
+ }, jl = {
1045
1051
  onFulfilled: function(e) {
1046
1052
  return e.config.method === "get" && Object.keys(e.data).length > 0 && ne.addCache(e.config, e.data), e;
1047
1053
  },
@@ -1049,20 +1055,20 @@ const Bl = {
1049
1055
  return Promise.reject(e);
1050
1056
  }
1051
1057
  };
1052
- function Ml() {
1053
- return w.state.user.token;
1058
+ function Nl() {
1059
+ return E.state.user.token;
1054
1060
  }
1055
- const jl = {
1061
+ const Vl = {
1056
1062
  onFulfilled: function(e) {
1057
1063
  e.headers = e.headers || {};
1058
- const t = Ml();
1064
+ const t = Nl();
1059
1065
  return t && (e.headers["X-Token"] = t), e;
1060
1066
  }
1061
- }, Nl = {
1067
+ }, ql = {
1062
1068
  onFulfilled(e) {
1063
1069
  var n, o, s, a, c, d, p;
1064
1070
  if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
1065
- const h = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
1071
+ const f = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
1066
1072
  if (e.data.code === 401) {
1067
1073
  Ve.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
1068
1074
  showClose: !1,
@@ -1076,14 +1082,14 @@ const jl = {
1076
1082
  return;
1077
1083
  } else
1078
1084
  Ne({
1079
- message: h,
1085
+ message: f,
1080
1086
  type: "error",
1081
1087
  duration: 5 * 1e3
1082
1088
  });
1083
- return Promise.reject(h);
1089
+ return Promise.reject(f);
1084
1090
  }
1085
1091
  let l = (c = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : c._message_box;
1086
- return l !== void 0 && (Ie(l) && (l = {
1092
+ return l !== void 0 && ($e(l) && (l = {
1087
1093
  message: (p = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : p._message_box
1088
1094
  }), Ve({
1089
1095
  title: "\u63D0\u793A",
@@ -1099,14 +1105,14 @@ const jl = {
1099
1105
  duration: 5 * 1e3
1100
1106
  }), Promise.reject(e));
1101
1107
  }
1102
- }, Vl = [
1108
+ }, Ul = [
1103
1109
  {
1104
- request: Rl,
1105
- response: Ll
1110
+ request: Ml,
1111
+ response: jl
1106
1112
  },
1107
1113
  {
1108
- request: jl,
1109
- response: Nl
1114
+ request: Vl,
1115
+ response: ql
1110
1116
  }
1111
1117
  ];
1112
1118
  function Pe(e = {}) {
@@ -1115,22 +1121,22 @@ function Pe(e = {}) {
1115
1121
  const n = ie.create({
1116
1122
  ...l
1117
1123
  });
1118
- return Vl.forEach((o) => {
1124
+ return Ul.forEach((o) => {
1119
1125
  n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
1120
1126
  }), n;
1121
1127
  }
1122
- const ql = Pe();
1128
+ const Hl = Pe();
1123
1129
  const at = {};
1124
- function pi(e, t) {
1130
+ function fi(e, t) {
1125
1131
  at[e] = t;
1126
1132
  }
1127
- function Ul(e) {
1133
+ function Gl(e) {
1128
1134
  return at[e];
1129
1135
  }
1130
- const Hl = N({
1136
+ const Jl = N({
1131
1137
  name: "Dashboard",
1132
1138
  setup() {
1133
- const e = tt(), t = j(() => e.getters.name), l = Ul("test");
1139
+ const e = tt(), t = j(() => e.getters.name), l = Gl("test");
1134
1140
  return l ? () => u(l, null, null) : () => u("div", {
1135
1141
  class: "dashboard-container"
1136
1142
  }, [u("div", {
@@ -1143,8 +1149,8 @@ const C = (e, t) => {
1143
1149
  for (const [n, o] of t)
1144
1150
  l[n] = o;
1145
1151
  return l;
1146
- }, Gl = /* @__PURE__ */ C(Hl, [["__scopeId", "data-v-07cd0734"]]);
1147
- const Jl = {
1152
+ }, zl = /* @__PURE__ */ C(Jl, [["__scopeId", "data-v-07cd0734"]]);
1153
+ const Kl = {
1148
1154
  data() {
1149
1155
  return {
1150
1156
  levelList: null
@@ -1160,9 +1166,15 @@ const Jl = {
1160
1166
  },
1161
1167
  methods: {
1162
1168
  getBreadcrumb() {
1163
- let e = this.$route.matched.filter((l) => l.meta && l.meta.title);
1169
+ let e = this.$route.matched.filter(
1170
+ (l) => l.meta && l.meta.title
1171
+ );
1164
1172
  const t = e[0];
1165
- this.isDashboard(t) || (e = [{ path: "/dashboard", meta: { title: "Dashboard" } }].concat(e)), this.levelList = e.filter((l) => l.meta && l.meta.title && l.meta.breadcrumb !== !1);
1173
+ this.isDashboard(t) || (e = [{ path: "/dashboard", meta: { title: "Dashboard" } }].concat(
1174
+ e
1175
+ )), this.levelList = e.filter(
1176
+ (l) => l.meta && l.meta.title && l.meta.breadcrumb !== !1
1177
+ );
1166
1178
  },
1167
1179
  isDashboard(e) {
1168
1180
  const t = e && e.name;
@@ -1170,7 +1182,7 @@ const Jl = {
1170
1182
  },
1171
1183
  pathCompile(e) {
1172
1184
  const { params: t } = this.$route;
1173
- return dl.compile(e)(t);
1185
+ return ml.compile(e)(t);
1174
1186
  },
1175
1187
  handleLink(e) {
1176
1188
  const { redirect: t, path: l } = e;
@@ -1181,12 +1193,12 @@ const Jl = {
1181
1193
  this.$router.push(this.pathCompile(l));
1182
1194
  }
1183
1195
  }
1184
- }, Kl = {
1196
+ }, Wl = {
1185
1197
  key: 0,
1186
1198
  class: "no-redirect"
1187
- }, zl = ["onClick"];
1188
- function Wl(e, t, l, n, o, s) {
1189
- const a = xt, c = Bt;
1199
+ }, Zl = ["onClick"];
1200
+ function Ql(e, t, l, n, o, s) {
1201
+ const a = Bt, c = $t;
1190
1202
  return i(), m(c, {
1191
1203
  class: "app-breadcrumb",
1192
1204
  separator: "/"
@@ -1194,14 +1206,14 @@ function Wl(e, t, l, n, o, s) {
1194
1206
  default: r(() => [
1195
1207
  u(vt, { name: "breadcrumb" }, {
1196
1208
  default: r(() => [
1197
- (i(!0), f(k, null, I(o.levelList, (d, p) => (i(), m(a, {
1209
+ (i(!0), h(k, null, $(o.levelList, (d, p) => (i(), m(a, {
1198
1210
  key: d.path
1199
1211
  }, {
1200
1212
  default: r(() => [
1201
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === o.levelList.length - 1 ? (i(), f("span", Kl, B(d.meta.title), 1)) : (i(), f("a", {
1213
+ d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === o.levelList.length - 1 ? (i(), h("span", Wl, B(d.meta.title), 1)) : (i(), h("a", {
1202
1214
  key: 1,
1203
- onClick: (h) => s.handleLink(d)
1204
- }, B(d.meta.title), 9, zl))
1215
+ onClick: (f) => s.handleLink(d)
1216
+ }, B(d.meta.title), 9, Zl))
1205
1217
  ]),
1206
1218
  _: 2
1207
1219
  }, 1024))), 128))
@@ -1212,7 +1224,7 @@ function Wl(e, t, l, n, o, s) {
1212
1224
  _: 1
1213
1225
  });
1214
1226
  }
1215
- const Zl = /* @__PURE__ */ C(Jl, [["render", Wl], ["__scopeId", "data-v-fa74804e"]]), Ql = {
1227
+ const Xl = /* @__PURE__ */ C(Kl, [["render", Ql], ["__scopeId", "data-v-fa74804e"]]), Yl = {
1216
1228
  name: "Hamburger",
1217
1229
  props: {
1218
1230
  isActive: {
@@ -1227,9 +1239,9 @@ const Zl = /* @__PURE__ */ C(Jl, [["render", Wl], ["__scopeId", "data-v-fa74804e
1227
1239
  }
1228
1240
  }
1229
1241
  };
1230
- function Xl(e, t, l, n, o, s) {
1242
+ function eo(e, t, l, n, o, s) {
1231
1243
  const a = v("v-icon");
1232
- return i(), f("div", {
1244
+ return i(), h("div", {
1233
1245
  style: { padding: "0 15px" },
1234
1246
  onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
1235
1247
  }, [
@@ -1239,10 +1251,10 @@ function Xl(e, t, l, n, o, s) {
1239
1251
  }, null, 8, ["class"])
1240
1252
  ]);
1241
1253
  }
1242
- const Yl = /* @__PURE__ */ C(Ql, [["render", Xl]]);
1243
- const eo = {};
1244
- function to(e, t) {
1245
- const l = le, n = It, o = $t, s = At;
1254
+ const to = /* @__PURE__ */ C(Yl, [["render", eo]]);
1255
+ const lo = {};
1256
+ function oo(e, t) {
1257
+ const l = le, n = It, o = At, s = Tt;
1246
1258
  return i(), m(s, { style: { width: "100%", height: "100%" } }, {
1247
1259
  default: r(() => [
1248
1260
  u(l, { class: "aside" }, {
@@ -1274,7 +1286,7 @@ function to(e, t) {
1274
1286
  _: 3
1275
1287
  });
1276
1288
  }
1277
- const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b"]]), lo = {
1289
+ const it = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b"]]), no = {
1278
1290
  type: "input",
1279
1291
  name: "\u6587\u672C\u6846",
1280
1292
  default: {
@@ -1342,7 +1354,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1342
1354
  }
1343
1355
  }
1344
1356
  ]
1345
- }, oo = {
1357
+ }, so = {
1346
1358
  type: "number",
1347
1359
  name: "\u6570\u5B57",
1348
1360
  default: {
@@ -1384,7 +1396,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1384
1396
  }
1385
1397
  }
1386
1398
  ]
1387
- }, no = {
1399
+ }, ao = {
1388
1400
  type: "number-range",
1389
1401
  name: "\u6570\u5B57\u533A\u95F4",
1390
1402
  default: {
@@ -1425,7 +1437,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1425
1437
  }
1426
1438
  }
1427
1439
  ]
1428
- }, so = {
1440
+ }, io = {
1429
1441
  type: "select",
1430
1442
  name: "\u4E0B\u62C9\u6846",
1431
1443
  default: {
@@ -1531,7 +1543,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1531
1543
  const t = y(e);
1532
1544
  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;
1533
1545
  }
1534
- }, ao = {
1546
+ }, ro = {
1535
1547
  type: "radio",
1536
1548
  name: "\u5355\u9009\u6846",
1537
1549
  default: {
@@ -1577,7 +1589,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1577
1589
  label: "\u9ED8\u8BA4\u503C"
1578
1590
  }
1579
1591
  ]
1580
- }, io = {
1592
+ }, uo = {
1581
1593
  type: "switch",
1582
1594
  name: "\u5F00\u5173",
1583
1595
  default: {
@@ -1633,7 +1645,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1633
1645
  }
1634
1646
  }
1635
1647
  ]
1636
- }, ro = {
1648
+ }, co = {
1637
1649
  type: "code",
1638
1650
  name: "Code",
1639
1651
  default: {
@@ -1653,7 +1665,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1653
1665
  label: "\u5B57\u6BB5key"
1654
1666
  }
1655
1667
  ]
1656
- }, uo = {
1668
+ }, po = {
1657
1669
  type: "json",
1658
1670
  name: "json",
1659
1671
  default: {
@@ -1673,7 +1685,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1673
1685
  label: "\u5B57\u6BB5key"
1674
1686
  }
1675
1687
  ]
1676
- }, co = {
1688
+ }, mo = {
1677
1689
  type: "upload",
1678
1690
  name: "\u4E0A\u4F20",
1679
1691
  default: {
@@ -1693,7 +1705,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1693
1705
  label: "\u5B57\u6BB5key"
1694
1706
  }
1695
1707
  ]
1696
- }, po = {
1708
+ }, fo = {
1697
1709
  type: "template",
1698
1710
  name: "\u81EA\u5B9A\u4E49\u7EC4\u4EF6",
1699
1711
  default: {
@@ -1713,7 +1725,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1713
1725
  label: "\u5B57\u6BB5key"
1714
1726
  }
1715
1727
  ]
1716
- }, mo = {
1728
+ }, ho = {
1717
1729
  type: "icon-select",
1718
1730
  name: "\u56FE\u6807\u9009\u62E9\u5668",
1719
1731
  default: {
@@ -1733,7 +1745,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1733
1745
  label: "\u5B57\u6BB5key"
1734
1746
  }
1735
1747
  ]
1736
- }, fo = {
1748
+ }, bo = {
1737
1749
  type: "sub-form",
1738
1750
  name: "\u5B50\u8868\u5355",
1739
1751
  default: {
@@ -1801,7 +1813,7 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1801
1813
  }
1802
1814
  }
1803
1815
  ]
1804
- }, ho = {
1816
+ }, _o = {
1805
1817
  type: "checkbox",
1806
1818
  name: "\u590D\u9009\u6846",
1807
1819
  default: {
@@ -1851,20 +1863,20 @@ const it = /* @__PURE__ */ C(eo, [["render", to], ["__scopeId", "data-v-7c3d697b
1851
1863
  function F(e) {
1852
1864
  rt[e.type] = e;
1853
1865
  }
1854
- F(lo);
1855
- F(so);
1856
- F(oo);
1857
1866
  F(no);
1858
1867
  F(io);
1859
- F(fo);
1868
+ F(so);
1860
1869
  F(ao);
1861
- F(ho);
1862
- F(ro);
1863
1870
  F(uo);
1871
+ F(bo);
1872
+ F(ro);
1873
+ F(_o);
1864
1874
  F(co);
1865
- F(mo);
1866
1875
  F(po);
1867
- const Ee = rt, bo = {
1876
+ F(mo);
1877
+ F(ho);
1878
+ F(fo);
1879
+ const we = rt, yo = {
1868
1880
  options: {
1869
1881
  labelPosition: "top",
1870
1882
  submitButton: !1,
@@ -1968,10 +1980,10 @@ const be = {
1968
1980
  submitButton: !1,
1969
1981
  cancelButton: !1
1970
1982
  }, Re = [];
1971
- Object.keys(Ee).forEach((e) => {
1972
- Re.push({ value: e, label: Ee[e].name });
1983
+ Object.keys(we).forEach((e) => {
1984
+ Re.push({ value: e, label: we[e].name });
1973
1985
  });
1974
- const _o = {
1986
+ const vo = {
1975
1987
  options: {
1976
1988
  submitButton: !1,
1977
1989
  cancelButton: !1
@@ -2003,7 +2015,7 @@ const _o = {
2003
2015
  }
2004
2016
  }
2005
2017
  ]
2006
- }, yo = {
2018
+ }, go = {
2007
2019
  components: { DevLayout: it, VForm: W, VButton: Te, JsonView: Fe },
2008
2020
  props: {
2009
2021
  schema: {
@@ -2015,15 +2027,19 @@ const _o = {
2015
2027
  data() {
2016
2028
  return {
2017
2029
  sqlOptions: {},
2018
- sqlSchema: _o,
2019
- baseSchema: bo,
2030
+ sqlSchema: vo,
2031
+ baseSchema: yo,
2020
2032
  activeTab: "base",
2021
- builderSchema: Object.assign({}, this.$props.schema, {
2022
- options: {
2023
- submitButton: !1,
2024
- cancelButton: !1
2033
+ builderSchema: Object.assign(
2034
+ {},
2035
+ this.$props.schema,
2036
+ {
2037
+ options: {
2038
+ submitButton: !1,
2039
+ cancelButton: !1
2040
+ }
2025
2041
  }
2026
- }),
2042
+ ),
2027
2043
  baseOptions: {},
2028
2044
  key: 0,
2029
2045
  ctrlKey: 0,
@@ -2032,7 +2048,7 @@ const _o = {
2032
2048
  ctrlSchema: {},
2033
2049
  ctrlName: "",
2034
2050
  activeIndex: void 0,
2035
- ctrlMap: Ee,
2051
+ ctrlMap: we,
2036
2052
  activeIndexReg: /(formItems)?\[(\d+)\]/,
2037
2053
  tableStruct: "",
2038
2054
  activeName: "1",
@@ -2133,9 +2149,9 @@ const _o = {
2133
2149
  });
2134
2150
  }
2135
2151
  }
2136
- }, vo = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), go = /* @__PURE__ */ g(" \xA0\xA0 ");
2137
- function ko(e, t, l, n, o, s) {
2138
- const a = v("v-form"), c = We, d = ae, p = v("JsonView"), h = v("VButton"), _ = Se, A = Ce, $ = Ze, U = Qe, V = v("dev-layout");
2152
+ }, ko = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), wo = /* @__PURE__ */ g(" \xA0\xA0 ");
2153
+ function Eo(e, t, l, n, o, s) {
2154
+ const a = v("v-form"), c = We, d = ae, p = v("JsonView"), f = v("VButton"), _ = Se, A = Ce, I = Ze, U = Qe, V = v("dev-layout");
2139
2155
  return i(), m(V, null, {
2140
2156
  main: r(() => [
2141
2157
  o.builderSchema.formItems ? (i(), m(a, q({
@@ -2143,19 +2159,19 @@ function ko(e, t, l, n, o, s) {
2143
2159
  ref: "form",
2144
2160
  key: o.key,
2145
2161
  dev: !0
2146
- }, o.builderSchema), null, 16)) : E("", !0),
2162
+ }, o.builderSchema), null, 16)) : w("", !0),
2147
2163
  u(c),
2148
2164
  u(d, {
2149
2165
  type: "primary",
2150
2166
  onClick: s.saveSchema
2151
2167
  }, {
2152
2168
  default: r(() => [
2153
- vo
2169
+ ko
2154
2170
  ]),
2155
2171
  _: 1
2156
2172
  }, 8, ["onClick"]),
2157
- go,
2158
- u(h, {
2173
+ wo,
2174
+ u(f, {
2159
2175
  text: "PageSchema",
2160
2176
  type: "modal"
2161
2177
  }, {
@@ -2168,15 +2184,15 @@ function ko(e, t, l, n, o, s) {
2168
2184
  "right-aside": r(() => [
2169
2185
  o.activeIndex ? (i(), m(U, { key: 0 }, {
2170
2186
  default: r(() => [
2171
- u($, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
2187
+ u(I, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
2172
2188
  default: r(() => [
2173
2189
  u(A, {
2174
2190
  modelValue: o.currentCtrlType,
2175
2191
  "onUpdate:modelValue": t[0] || (t[0] = (x) => o.currentCtrlType = x)
2176
2192
  }, {
2177
2193
  default: r(() => [
2178
- (i(!0), f(k, null, I(o.types, (x, K) => (i(), m(_, {
2179
- key: K,
2194
+ (i(!0), h(k, null, $(o.types, (x, z) => (i(), m(_, {
2195
+ key: z,
2180
2196
  label: x.label,
2181
2197
  value: x.value
2182
2198
  }, null, 8, ["label", "value"]))), 128))
@@ -2188,7 +2204,7 @@ function ko(e, t, l, n, o, s) {
2188
2204
  })
2189
2205
  ]),
2190
2206
  _: 1
2191
- })) : E("", !0),
2207
+ })) : w("", !0),
2192
2208
  (i(), m(a, q({
2193
2209
  key: o.ctrlKey,
2194
2210
  modelValue: o.ctrlOptions,
@@ -2198,7 +2214,7 @@ function ko(e, t, l, n, o, s) {
2198
2214
  _: 1
2199
2215
  });
2200
2216
  }
2201
- const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06"]]), wo = {
2217
+ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06"]]), Co = {
2202
2218
  type: "input",
2203
2219
  name: "\u6587\u672C\u6846",
2204
2220
  default: {
@@ -2246,7 +2262,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2246
2262
  }
2247
2263
  }
2248
2264
  ]
2249
- }, So = {
2265
+ }, xo = {
2250
2266
  type: "select",
2251
2267
  name: "\u4E0B\u62C9\u6846",
2252
2268
  default: {
@@ -2347,7 +2363,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2347
2363
  const t = y(e);
2348
2364
  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;
2349
2365
  }
2350
- }, Co = {
2366
+ }, Bo = {
2351
2367
  type: "date",
2352
2368
  name: "\u65E5\u671F",
2353
2369
  default: {
@@ -2396,7 +2412,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2396
2412
  labelPosition: "top",
2397
2413
  submitButton: !1,
2398
2414
  cancelButton: !1
2399
- }, xo = {
2415
+ }, $o = {
2400
2416
  type: "span",
2401
2417
  name: "\u6587\u672C",
2402
2418
  default: {
@@ -2426,7 +2442,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2426
2442
  label: "\u6392\u5E8F"
2427
2443
  }
2428
2444
  ]
2429
- }, Bo = {
2445
+ }, Io = {
2430
2446
  type: "enum",
2431
2447
  name: "\u6807\u7B7E",
2432
2448
  default: {
@@ -2477,7 +2493,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2477
2493
  trans(e) {
2478
2494
  return e.options = e.options || [], e.label || (e.label = "\u8868\u5934"), e;
2479
2495
  }
2480
- }, Io = {
2496
+ }, Ao = {
2481
2497
  type: "html",
2482
2498
  name: "HTML",
2483
2499
  default: {
@@ -2502,7 +2518,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2502
2518
  label: "\u63D0\u793A"
2503
2519
  }
2504
2520
  ]
2505
- }, $o = {
2521
+ }, To = {
2506
2522
  type: "icon",
2507
2523
  name: "\u56FE\u6807",
2508
2524
  default: {
@@ -2527,7 +2543,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2527
2543
  label: "\u63D0\u793A"
2528
2544
  }
2529
2545
  ]
2530
- }, Ao = {
2546
+ }, Fo = {
2531
2547
  type: "image",
2532
2548
  name: "\u56FE\u7247",
2533
2549
  default: {
@@ -2552,7 +2568,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2552
2568
  label: "\u63D0\u793A"
2553
2569
  }
2554
2570
  ]
2555
- }, To = {
2571
+ }, Do = {
2556
2572
  type: "json",
2557
2573
  name: "JSON",
2558
2574
  default: {
@@ -2577,7 +2593,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2577
2593
  label: "\u63D0\u793A"
2578
2594
  }
2579
2595
  ]
2580
- }, Fo = {
2596
+ }, Oo = {
2581
2597
  type: "link",
2582
2598
  name: "\u94FE\u63A5",
2583
2599
  default: {
@@ -2602,7 +2618,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2602
2618
  label: "\u63D0\u793A"
2603
2619
  }
2604
2620
  ]
2605
- }, Do = {
2621
+ }, Po = {
2606
2622
  type: "rich",
2607
2623
  name: "\u5BCC\u6587\u672C",
2608
2624
  default: {
@@ -2627,7 +2643,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2627
2643
  label: "\u63D0\u793A"
2628
2644
  }
2629
2645
  ]
2630
- }, Oo = {
2646
+ }, Ro = {
2631
2647
  type: "tpl",
2632
2648
  name: "\u6A21\u677F",
2633
2649
  default: {
@@ -2658,17 +2674,17 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2658
2674
  info: "\u4F8B\u5982 <code>\u59D3\u540D: {name} \u5E74\u9F84:{age}</code>"
2659
2675
  }
2660
2676
  ]
2661
- }, Po = {
2662
- span: xo,
2663
- enum: Bo,
2664
- html: Io,
2665
- icon: $o,
2666
- image: Ao,
2667
- json: To,
2668
- link: Fo,
2669
- rich: Do,
2670
- tpl: Oo
2671
- }, Ro = {
2677
+ }, Lo = {
2678
+ span: $o,
2679
+ enum: Io,
2680
+ html: Ao,
2681
+ icon: To,
2682
+ image: Fo,
2683
+ json: Do,
2684
+ link: Oo,
2685
+ rich: Po,
2686
+ tpl: Ro
2687
+ }, Mo = {
2672
2688
  type: "jump",
2673
2689
  name: "\u8DF3\u8F6C",
2674
2690
  default: {
@@ -2715,7 +2731,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2715
2731
  }
2716
2732
  }
2717
2733
  ]
2718
- }, Lo = {
2734
+ }, jo = {
2719
2735
  type: "api",
2720
2736
  name: "\u63A5\u53E3\u8BF7\u6C42",
2721
2737
  default: {
@@ -2784,7 +2800,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2784
2800
  }
2785
2801
  }
2786
2802
  ]
2787
- }, Mo = {
2803
+ }, No = {
2788
2804
  type: "form",
2789
2805
  name: "\u5F39\u6846\u8868\u5355",
2790
2806
  default: {
@@ -2838,7 +2854,7 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2838
2854
  label: "\u4FDD\u5B58\u63A5\u53E3"
2839
2855
  }
2840
2856
  ]
2841
- }, jo = {
2857
+ }, Vo = {
2842
2858
  type: "table",
2843
2859
  name: "\u5F39\u6846\u5217\u8868",
2844
2860
  default: {
@@ -2892,13 +2908,13 @@ const Eo = /* @__PURE__ */ C(yo, [["render", ko], ["__scopeId", "data-v-d89bdb06
2892
2908
  label: "\u4FDD\u5B58\u63A5\u53E3"
2893
2909
  }
2894
2910
  ]
2895
- }, No = {
2896
- jump: Ro,
2897
- api: Lo,
2898
- form: Mo,
2899
- table: jo
2911
+ }, qo = {
2912
+ jump: Mo,
2913
+ api: jo,
2914
+ form: No,
2915
+ table: Vo
2900
2916
  };
2901
- const Vo = {
2917
+ const Uo = {
2902
2918
  components: { JsonView: Fe, DevLayout: it, VTable: re, VForm: W, VButton: Te },
2903
2919
  props: {
2904
2920
  schema: {
@@ -2912,7 +2928,11 @@ const Vo = {
2912
2928
  return delete e.listApi, e.list = [{}], {
2913
2929
  baseSchema: qe,
2914
2930
  activeTab: "base",
2915
- builderSchema: Object.assign({}, qe, e),
2931
+ builderSchema: Object.assign(
2932
+ {},
2933
+ qe,
2934
+ e
2935
+ ),
2916
2936
  baseOptions: {},
2917
2937
  key: 0,
2918
2938
  ctrlKey: 0,
@@ -2923,9 +2943,9 @@ const Vo = {
2923
2943
  ctrlName: "",
2924
2944
  activeIndex: void 0,
2925
2945
  ctrlMap: {
2926
- filter: { input: wo, select: So, date: Co },
2927
- headers: Po,
2928
- buttons: No
2946
+ filter: { input: Co, select: xo, date: Bo },
2947
+ headers: Lo,
2948
+ buttons: qo
2929
2949
  },
2930
2950
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2931
2951
  currentCtrlType: "input"
@@ -3075,9 +3095,9 @@ const Vo = {
3075
3095
  });
3076
3096
  }
3077
3097
  }
3078
- }, qo = /* @__PURE__ */ g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6"), Uo = /* @__PURE__ */ g("\u6587\u672C\u6846"), Ho = /* @__PURE__ */ g("\u4E0B\u62C9\u6846"), Go = /* @__PURE__ */ g("\u65E5\u671F"), Jo = /* @__PURE__ */ g("\u6DFB\u52A0\u5217\u8868\u9879"), Ko = /* @__PURE__ */ g("\u6DFB\u52A0\u884C\u6309\u94AE"), zo = /* @__PURE__ */ g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE"), Wo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), Zo = /* @__PURE__ */ g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE"), Qo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), Xo = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), Yo = /* @__PURE__ */ g(" \xA0\xA0 ");
3079
- function en(e, t, l, n, o, s) {
3080
- const a = ue, c = ae, d = le, p = v("v-table"), h = We, _ = ae, A = v("JsonView"), $ = v("VButton"), U = Se, V = Ce, x = Ze, K = Qe, bt = v("v-form"), _t = v("dev-layout");
3098
+ }, Ho = /* @__PURE__ */ g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6"), Go = /* @__PURE__ */ g("\u6587\u672C\u6846"), Jo = /* @__PURE__ */ g("\u4E0B\u62C9\u6846"), zo = /* @__PURE__ */ g("\u65E5\u671F"), Ko = /* @__PURE__ */ g("\u6DFB\u52A0\u5217\u8868\u9879"), Wo = /* @__PURE__ */ g("\u6DFB\u52A0\u884C\u6309\u94AE"), Zo = /* @__PURE__ */ g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE"), Qo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), Xo = /* @__PURE__ */ g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE"), Yo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), en = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), tn = /* @__PURE__ */ g(" \xA0\xA0 ");
3099
+ function ln(e, t, l, n, o, s) {
3100
+ const a = ue, c = ae, d = le, p = v("v-table"), f = We, _ = ae, A = v("JsonView"), I = v("VButton"), U = Se, V = Ce, x = Ze, z = Qe, bt = v("v-form"), _t = v("dev-layout");
3081
3101
  return i(), m(_t, null, {
3082
3102
  "left-aside": r(() => [
3083
3103
  u(d, { style: { width: "200px" } }, {
@@ -3089,7 +3109,7 @@ function en(e, t, l, n, o, s) {
3089
3109
  "data-id": 22222
3090
3110
  }, {
3091
3111
  default: r(() => [
3092
- qo
3112
+ Ho
3093
3113
  ]),
3094
3114
  _: 1
3095
3115
  }),
@@ -3100,7 +3120,7 @@ function en(e, t, l, n, o, s) {
3100
3120
  onClick: t[0] || (t[0] = (S) => s.pushFilter("input"))
3101
3121
  }, {
3102
3122
  default: r(() => [
3103
- Uo
3123
+ Go
3104
3124
  ]),
3105
3125
  _: 1
3106
3126
  })
@@ -3114,7 +3134,7 @@ function en(e, t, l, n, o, s) {
3114
3134
  onClick: t[1] || (t[1] = (S) => s.pushFilter("select"))
3115
3135
  }, {
3116
3136
  default: r(() => [
3117
- Ho
3137
+ Jo
3118
3138
  ]),
3119
3139
  _: 1
3120
3140
  })
@@ -3128,7 +3148,7 @@ function en(e, t, l, n, o, s) {
3128
3148
  onClick: t[2] || (t[2] = (S) => s.pushFilter("date"))
3129
3149
  }, {
3130
3150
  default: r(() => [
3131
- Go
3151
+ zo
3132
3152
  ]),
3133
3153
  _: 1
3134
3154
  })
@@ -3142,11 +3162,11 @@ function en(e, t, l, n, o, s) {
3142
3162
  default: r(() => [
3143
3163
  u(a, { class: "title" }, {
3144
3164
  default: r(() => [
3145
- Jo
3165
+ Ko
3146
3166
  ]),
3147
3167
  _: 1
3148
3168
  }),
3149
- (i(!0), f(k, null, I(Object.keys(o.ctrlMap.headers), (S, M) => (i(), m(a, {
3169
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.headers), (S, M) => (i(), m(a, {
3150
3170
  key: `column-${M}`,
3151
3171
  class: "ctrl"
3152
3172
  }, {
@@ -3170,11 +3190,11 @@ function en(e, t, l, n, o, s) {
3170
3190
  default: r(() => [
3171
3191
  u(a, { class: "title" }, {
3172
3192
  default: r(() => [
3173
- Ko
3193
+ Wo
3174
3194
  ]),
3175
3195
  _: 1
3176
3196
  }),
3177
- (i(!0), f(k, null, I(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3197
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3178
3198
  key: `column-${M}`,
3179
3199
  class: "ctrl"
3180
3200
  }, {
@@ -3198,11 +3218,11 @@ function en(e, t, l, n, o, s) {
3198
3218
  default: r(() => [
3199
3219
  u(a, { class: "title" }, {
3200
3220
  default: r(() => [
3201
- zo
3221
+ Zo
3202
3222
  ]),
3203
3223
  _: 1
3204
3224
  }),
3205
- (i(!0), f(k, null, I(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3225
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3206
3226
  key: `column-${M}`,
3207
3227
  class: "ctrl"
3208
3228
  }, {
@@ -3223,7 +3243,7 @@ function en(e, t, l, n, o, s) {
3223
3243
  default: r(() => [
3224
3244
  u(c, { class: "ctrl-btn" }, {
3225
3245
  default: r(() => [
3226
- Wo
3246
+ Qo
3227
3247
  ]),
3228
3248
  _: 1
3229
3249
  })
@@ -3237,11 +3257,11 @@ function en(e, t, l, n, o, s) {
3237
3257
  default: r(() => [
3238
3258
  u(a, { class: "title" }, {
3239
3259
  default: r(() => [
3240
- Zo
3260
+ Xo
3241
3261
  ]),
3242
3262
  _: 1
3243
3263
  }),
3244
- (i(!0), f(k, null, I(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3264
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3245
3265
  key: `column-${M}`,
3246
3266
  class: "ctrl"
3247
3267
  }, {
@@ -3262,7 +3282,7 @@ function en(e, t, l, n, o, s) {
3262
3282
  default: r(() => [
3263
3283
  u(c, { class: "ctrl-btn" }, {
3264
3284
  default: r(() => [
3265
- Qo
3285
+ Yo
3266
3286
  ]),
3267
3287
  _: 1
3268
3288
  })
@@ -3282,18 +3302,18 @@ function en(e, t, l, n, o, s) {
3282
3302
  key: o.key,
3283
3303
  dev: !0
3284
3304
  }, o.builderSchema), null, 16)),
3285
- u(h),
3305
+ u(f),
3286
3306
  u(_, {
3287
3307
  type: "primary",
3288
3308
  onClick: s.saveSchema
3289
3309
  }, {
3290
3310
  default: r(() => [
3291
- Xo
3311
+ en
3292
3312
  ]),
3293
3313
  _: 1
3294
3314
  }, 8, ["onClick"]),
3295
- Yo,
3296
- u($, {
3315
+ tn,
3316
+ u(I, {
3297
3317
  text: "PageSchema",
3298
3318
  type: "modal"
3299
3319
  }, {
@@ -3304,7 +3324,7 @@ function en(e, t, l, n, o, s) {
3304
3324
  })
3305
3325
  ]),
3306
3326
  "right-aside": r(() => [
3307
- o.activeIndex ? (i(), m(K, { key: 0 }, {
3327
+ o.activeIndex ? (i(), m(z, { key: 0 }, {
3308
3328
  default: r(() => [
3309
3329
  u(x, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
3310
3330
  default: r(() => [
@@ -3313,7 +3333,7 @@ function en(e, t, l, n, o, s) {
3313
3333
  "onUpdate:modelValue": t[3] || (t[3] = (S) => o.currentCtrlType = S)
3314
3334
  }, {
3315
3335
  default: r(() => [
3316
- (i(!0), f(k, null, I(s.types, (S, M) => (i(), m(U, {
3336
+ (i(!0), h(k, null, $(s.types, (S, M) => (i(), m(U, {
3317
3337
  key: M,
3318
3338
  label: S.label,
3319
3339
  value: S.value
@@ -3326,7 +3346,7 @@ function en(e, t, l, n, o, s) {
3326
3346
  })
3327
3347
  ]),
3328
3348
  _: 1
3329
- })) : E("", !0),
3349
+ })) : w("", !0),
3330
3350
  (i(), m(bt, q({
3331
3351
  key: o.ctrlKey,
3332
3352
  modelValue: o.ctrlOptions,
@@ -3336,24 +3356,24 @@ function en(e, t, l, n, o, s) {
3336
3356
  _: 1
3337
3357
  });
3338
3358
  }
3339
- const tn = /* @__PURE__ */ C(Vo, [["render", en], ["__scopeId", "data-v-77db3a16"]]), ln = {
3359
+ const on = /* @__PURE__ */ C(Uo, [["render", ln], ["__scopeId", "data-v-77db3a16"]]), nn = {
3340
3360
  name: "PageEditor",
3341
- components: { FormBuilder: Eo, TableBuilder: tn },
3361
+ components: { FormBuilder: So, TableBuilder: on },
3342
3362
  setup() {
3343
- const e = R(!1), t = R(1), l = "rtl", n = ce(), o = j(() => w.state.app.pages[n.path]);
3363
+ const e = R(!1), t = R(1), l = "rtl", n = ce(), o = j(() => E.state.app.pages[n.path]);
3344
3364
  return { show: e, key: t, direction: l, pageSchema: o };
3345
3365
  }
3346
3366
  };
3347
- function on(e, t, l, n, o, s) {
3367
+ function sn(e, t, l, n, o, s) {
3348
3368
  const a = v("VIcon"), c = v("form-builder"), d = v("table-builder"), p = Xe;
3349
- return i(), f(k, null, [
3369
+ return i(), h(k, null, [
3350
3370
  u(a, {
3351
3371
  name: "ra-set",
3352
- onClick: t[0] || (t[0] = (h) => n.show = !n.show)
3372
+ onClick: t[0] || (t[0] = (f) => n.show = !n.show)
3353
3373
  }),
3354
3374
  u(p, {
3355
3375
  modelValue: n.show,
3356
- "onUpdate:modelValue": t[1] || (t[1] = (h) => n.show = h),
3376
+ "onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
3357
3377
  title: "\u9875\u9762\u8BBE\u8BA1",
3358
3378
  "custom-class": "my-drawer",
3359
3379
  direction: n.direction,
@@ -3365,23 +3385,23 @@ function on(e, t, l, n, o, s) {
3365
3385
  n.pageSchema.formItems !== void 0 ? (i(), m(c, {
3366
3386
  key: 0,
3367
3387
  schema: n.pageSchema
3368
- }, null, 8, ["schema"])) : E("", !0),
3388
+ }, null, 8, ["schema"])) : w("", !0),
3369
3389
  n.pageSchema.headers !== void 0 ? (i(), m(d, {
3370
3390
  key: 1,
3371
3391
  schema: n.pageSchema
3372
- }, null, 8, ["schema"])) : E("", !0)
3392
+ }, null, 8, ["schema"])) : w("", !0)
3373
3393
  ]),
3374
3394
  _: 1
3375
3395
  }, 8, ["modelValue", "direction"])
3376
3396
  ], 64);
3377
3397
  }
3378
- const nn = /* @__PURE__ */ C(ln, [["render", on]]);
3379
- const sn = {
3398
+ const an = /* @__PURE__ */ C(nn, [["render", sn]]);
3399
+ const rn = {
3380
3400
  components: {
3381
- Breadcrumb: Zl,
3382
- Hamburger: Yl,
3401
+ Breadcrumb: Xl,
3402
+ Hamburger: to,
3383
3403
  VButton: Te,
3384
- PageEditor: nn
3404
+ PageEditor: an
3385
3405
  },
3386
3406
  data() {
3387
3407
  return {
@@ -3401,12 +3421,18 @@ const sn = {
3401
3421
  moduleName() {
3402
3422
  return this.$store.state.app.moduleName;
3403
3423
  },
3424
+ setting() {
3425
+ return this.$store.state.settings;
3426
+ },
3427
+ user() {
3428
+ return this.$store.state.user;
3429
+ },
3404
3430
  showPageJsonSchemaIcon() {
3405
3431
  return this.$store.state.settings.showPageJsonSchema || !1;
3406
3432
  }
3407
3433
  },
3408
3434
  mounted() {
3409
- Jt("el-submenu is-active");
3435
+ zt("el-submenu is-active");
3410
3436
  const e = this.getSetting("navBarNotice");
3411
3437
  e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
3412
3438
  title: "\u63D0\u793A",
@@ -3414,6 +3440,11 @@ const sn = {
3414
3440
  dangerouslyUseHTMLString: !0,
3415
3441
  duration: 0,
3416
3442
  onClose: this.closeNavBarNotice
3443
+ }), this.user.env && Kt({
3444
+ elRef: this.$refs.header.$el,
3445
+ waterMark: this.user.env,
3446
+ color: "skyblue",
3447
+ size: "20"
3417
3448
  });
3418
3449
  },
3419
3450
  methods: {
@@ -3445,16 +3476,20 @@ const sn = {
3445
3476
  (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));
3446
3477
  }
3447
3478
  }
3448
- }, an = { class: "right-content" }, rn = { class: "right-item" }, un = {
3479
+ }, un = { class: "right-content" }, cn = { class: "right-item" }, dn = {
3449
3480
  key: 0,
3450
3481
  class: "right-item"
3451
- }, cn = {
3482
+ }, pn = {
3452
3483
  class: "right-item-button",
3453
3484
  style: { padding: "0" }
3454
- }, dn = { class: "user-info" }, pn = ["src"], mn = /* @__PURE__ */ g(), fn = { class: "user-name" }, hn = /* @__PURE__ */ g("\u9996\u9875"), bn = /* @__PURE__ */ g("\u9000\u51FA\u767B\u5F55");
3455
- function _n(e, t, l, n, o, s) {
3456
- const a = v("hamburger"), c = v("breadcrumb"), d = ue, p = v("VIcon"), h = v("PageEditor"), _ = v("v-button"), A = Tt, $ = Ft, U = Dt, V = Xe, x = le;
3457
- return i(), m(x, { class: "navbar" }, {
3485
+ }, mn = { class: "user-info" }, fn = ["src"], hn = /* @__PURE__ */ g(), bn = { class: "user-name" }, _n = /* @__PURE__ */ g("\u9996\u9875"), yn = /* @__PURE__ */ g("\u9000\u51FA\u767B\u5F55");
3486
+ function vn(e, t, l, n, o, s) {
3487
+ const a = v("hamburger"), c = v("breadcrumb"), d = ue, p = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), A = Ft, I = Dt, U = Ot, V = Xe, x = le;
3488
+ return i(), m(x, {
3489
+ ref: "header",
3490
+ class: "navbar",
3491
+ style: kt({ background: s.setting.envColor[s.user.env] })
3492
+ }, {
3458
3493
  default: r(() => [
3459
3494
  u(d, { span: 16 }, {
3460
3495
  default: r(() => [
@@ -3469,17 +3504,17 @@ function _n(e, t, l, n, o, s) {
3469
3504
  }),
3470
3505
  u(d, { span: 8 }, {
3471
3506
  default: r(() => [
3472
- b("div", an, [
3473
- b("div", rn, [
3507
+ b("div", un, [
3508
+ b("div", cn, [
3474
3509
  u(p, {
3475
3510
  name: "ra-code",
3476
3511
  onClick: s.gotoMenuEdit
3477
3512
  }, null, 8, ["onClick"])
3478
3513
  ]),
3479
- s.showPageJsonSchemaIcon ? (i(), f("div", un, [
3480
- u(h)
3481
- ])) : E("", !0),
3482
- b("div", cn, [
3514
+ s.showPageJsonSchemaIcon ? (i(), h("div", dn, [
3515
+ u(f)
3516
+ ])) : w("", !0),
3517
+ b("div", pn, [
3483
3518
  u(_, { buttons: e.nav }, null, 8, ["buttons"])
3484
3519
  ]),
3485
3520
  u(U, {
@@ -3487,14 +3522,14 @@ function _n(e, t, l, n, o, s) {
3487
3522
  trigger: "click"
3488
3523
  }, {
3489
3524
  dropdown: r(() => [
3490
- u($, { class: "user-dropdown" }, {
3525
+ u(I, { class: "user-dropdown" }, {
3491
3526
  default: r(() => [
3492
3527
  u(A, {
3493
3528
  icon: "oms-icon-index",
3494
- onClick: t[0] || (t[0] = (K) => e.$router.push("/"))
3529
+ onClick: t[0] || (t[0] = (z) => e.$router.push("/"))
3495
3530
  }, {
3496
3531
  default: r(() => [
3497
- hn
3532
+ _n
3498
3533
  ]),
3499
3534
  _: 1
3500
3535
  }),
@@ -3504,7 +3539,7 @@ function _n(e, t, l, n, o, s) {
3504
3539
  onClick: s.logout
3505
3540
  }, {
3506
3541
  default: r(() => [
3507
- bn
3542
+ yn
3508
3543
  ]),
3509
3544
  _: 1
3510
3545
  }, 8, ["onClick"])
@@ -3513,14 +3548,14 @@ function _n(e, t, l, n, o, s) {
3513
3548
  })
3514
3549
  ]),
3515
3550
  default: r(() => [
3516
- b("div", dn, [
3551
+ b("div", mn, [
3517
3552
  b("img", {
3518
3553
  src: e.avatar ? e.avatar : o.defaultAvatar,
3519
3554
  class: "user-avatar",
3520
3555
  alt: "\u5934\u50CF"
3521
- }, null, 8, pn),
3522
- mn,
3523
- b("span", fn, B(e.nickname || e.name), 1)
3556
+ }, null, 8, fn),
3557
+ hn,
3558
+ b("span", bn, B(e.nickname || e.name), 1)
3524
3559
  ])
3525
3560
  ]),
3526
3561
  _: 1
@@ -3533,13 +3568,13 @@ function _n(e, t, l, n, o, s) {
3533
3568
  key: 0,
3534
3569
  "with-header": !1,
3535
3570
  size: "50%"
3536
- })) : E("", !0)
3571
+ })) : w("", !0)
3537
3572
  ]),
3538
3573
  _: 1
3539
- });
3574
+ }, 8, ["style"]);
3540
3575
  }
3541
- const yn = /* @__PURE__ */ C(sn, [["render", _n], ["__scopeId", "data-v-37256b53"]]);
3542
- const vn = {
3576
+ const gn = /* @__PURE__ */ C(rn, [["render", vn], ["__scopeId", "data-v-17c40e76"]]);
3577
+ const kn = {
3543
3578
  name: "SidebarLogo",
3544
3579
  props: {
3545
3580
  collapse: {
@@ -3555,16 +3590,16 @@ const vn = {
3555
3590
  return this.$store.state.settings.logo;
3556
3591
  }
3557
3592
  }
3558
- }, gn = (e) => (Je("data-v-49084925"), e = e(), Ke(), e), kn = ["src"], En = {
3593
+ }, wn = (e) => (Je("data-v-49084925"), e = e(), ze(), e), En = ["src"], Sn = {
3559
3594
  key: 1,
3560
3595
  class: "sidebar-title"
3561
- }, wn = /* @__PURE__ */ gn(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), Sn = ["src"], Cn = { class: "sidebar-title" };
3562
- function xn(e, t, l, n, o, s) {
3596
+ }, Cn = /* @__PURE__ */ wn(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), xn = ["src"], Bn = { class: "sidebar-title" };
3597
+ function $n(e, t, l, n, o, s) {
3563
3598
  const a = v("router-link");
3564
- return i(), f("div", {
3599
+ return i(), h("div", {
3565
3600
  class: H(["sidebar-logo-container", { collapse: l.collapse }])
3566
3601
  }, [
3567
- u(kt, { name: "sidebarLogoFade" }, {
3602
+ u(wt, { name: "sidebarLogoFade" }, {
3568
3603
  default: r(() => [
3569
3604
  l.collapse ? (i(), m(a, {
3570
3605
  key: "collapse",
@@ -3572,12 +3607,12 @@ function xn(e, t, l, n, o, s) {
3572
3607
  to: "/"
3573
3608
  }, {
3574
3609
  default: r(() => [
3575
- s.logo ? (i(), f("img", {
3610
+ s.logo ? (i(), h("img", {
3576
3611
  key: 0,
3577
3612
  src: s.logo,
3578
3613
  class: "sidebar-logo"
3579
- }, null, 8, kn)) : (i(), f("h1", En, B(s.title), 1)),
3580
- wn
3614
+ }, null, 8, En)) : (i(), h("h1", Sn, B(s.title), 1)),
3615
+ Cn
3581
3616
  ]),
3582
3617
  _: 1
3583
3618
  })) : (i(), m(a, {
@@ -3586,12 +3621,12 @@ function xn(e, t, l, n, o, s) {
3586
3621
  to: "/"
3587
3622
  }, {
3588
3623
  default: r(() => [
3589
- s.logo ? (i(), f("img", {
3624
+ s.logo ? (i(), h("img", {
3590
3625
  key: 0,
3591
3626
  src: s.logo,
3592
3627
  class: "sidebar-logo"
3593
- }, null, 8, Sn)) : E("", !0),
3594
- b("h1", Cn, B(s.title), 1)
3628
+ }, null, 8, xn)) : w("", !0),
3629
+ b("h1", Bn, B(s.title), 1)
3595
3630
  ]),
3596
3631
  _: 1
3597
3632
  }))
@@ -3600,7 +3635,7 @@ function xn(e, t, l, n, o, s) {
3600
3635
  })
3601
3636
  ], 2);
3602
3637
  }
3603
- const Bn = /* @__PURE__ */ C(vn, [["render", xn], ["__scopeId", "data-v-49084925"]]), In = {
3638
+ const In = /* @__PURE__ */ C(kn, [["render", $n], ["__scopeId", "data-v-49084925"]]), An = {
3604
3639
  props: {
3605
3640
  to: {
3606
3641
  type: String,
@@ -3639,15 +3674,15 @@ const Bn = /* @__PURE__ */ C(vn, [["render", xn], ["__scopeId", "data-v-49084925
3639
3674
  }
3640
3675
  }
3641
3676
  };
3642
- function $n(e, t, l, n, o, s) {
3643
- return i(), m(ze(s.compType(l.to)), J(Z(s.linkProps(l.to))), {
3677
+ function Tn(e, t, l, n, o, s) {
3678
+ return i(), m(Ke(s.compType(l.to)), J(Z(s.linkProps(l.to))), {
3644
3679
  default: r(() => [
3645
3680
  Y(e.$slots, "default")
3646
3681
  ]),
3647
3682
  _: 3
3648
3683
  }, 16);
3649
3684
  }
3650
- const An = /* @__PURE__ */ C(In, [["render", $n]]), Tn = {
3685
+ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
3651
3686
  computed: {
3652
3687
  device() {
3653
3688
  return this.$store.state.app.device;
@@ -3667,7 +3702,7 @@ const An = /* @__PURE__ */ C(In, [["render", $n]]), Tn = {
3667
3702
  }
3668
3703
  }
3669
3704
  }
3670
- }, Fn = { class: "menu-content" }, Dn = /* @__PURE__ */ N({
3705
+ }, On = { class: "menu-content" }, Pn = /* @__PURE__ */ N({
3671
3706
  __name: "MenuContent",
3672
3707
  props: {
3673
3708
  meta: {
@@ -3681,21 +3716,21 @@ const An = /* @__PURE__ */ C(In, [["render", $n]]), Tn = {
3681
3716
  setup(e) {
3682
3717
  return (t, l) => {
3683
3718
  const n = v("VIcon");
3684
- return i(), f(k, null, [
3719
+ return i(), h(k, null, [
3685
3720
  u(n, {
3686
3721
  name: e.meta.icon || "ra-all"
3687
3722
  }, null, 8, ["name"]),
3688
- b("span", Fn, B(e.meta.title), 1)
3723
+ b("span", On, B(e.meta.title), 1)
3689
3724
  ], 64);
3690
3725
  };
3691
3726
  }
3692
- }), On = {
3727
+ }), Rn = {
3693
3728
  name: "SidebarItem",
3694
3729
  components: {
3695
- AppLink: An,
3696
- MenuContent: Dn
3730
+ AppLink: Fn,
3731
+ MenuContent: Pn
3697
3732
  },
3698
- mixins: [Tn],
3733
+ mixins: [Dn],
3699
3734
  props: {
3700
3735
  item: {
3701
3736
  type: Object,
@@ -3719,14 +3754,14 @@ const An = /* @__PURE__ */ C(In, [["render", $n]]), Tn = {
3719
3754
  }
3720
3755
  }
3721
3756
  }
3722
- }, Pn = {
3757
+ }, Ln = {
3723
3758
  key: 0,
3724
3759
  class: "menu-wrapper"
3725
3760
  };
3726
- function Rn(e, t, l, n, o, s) {
3727
- const a = v("menu-content"), c = Ot, d = v("app-link"), p = v("sidebar-item", !0), h = Pt;
3728
- return l.item.hidden !== !1 ? (i(), f("div", Pn, [
3729
- l.item.meta && l.item.meta.menuType === 2 ? (i(), f(k, { key: 0 }, [
3761
+ function Mn(e, t, l, n, o, s) {
3762
+ const a = v("menu-content"), c = Pt, d = v("app-link"), p = v("sidebar-item", !0), f = Rt;
3763
+ return l.item.hidden !== !1 ? (i(), h("div", Ln, [
3764
+ l.item.meta && l.item.meta.menuType === 2 ? (i(), h(k, { key: 0 }, [
3730
3765
  l.item.meta ? (i(), m(d, {
3731
3766
  key: 0,
3732
3767
  to: l.to,
@@ -3746,8 +3781,8 @@ function Rn(e, t, l, n, o, s) {
3746
3781
  }, 8, ["index", "class"])
3747
3782
  ]),
3748
3783
  _: 1
3749
- }, 8, ["to", "new-tab"])) : E("", !0)
3750
- ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(h, {
3784
+ }, 8, ["to", "new-tab"])) : w("", !0)
3785
+ ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
3751
3786
  key: 1,
3752
3787
  ref: "subMenu",
3753
3788
  index: l.to,
@@ -3771,7 +3806,7 @@ function Rn(e, t, l, n, o, s) {
3771
3806
  }, null, 8, ["meta"]))
3772
3807
  ]),
3773
3808
  default: r(() => [
3774
- (i(!0), f(k, null, I(l.item.children, (_) => (i(), m(p, {
3809
+ (i(!0), h(k, null, $(l.item.children, (_) => (i(), m(p, {
3775
3810
  key: _.path,
3776
3811
  "is-nest": !0,
3777
3812
  item: _,
@@ -3780,17 +3815,17 @@ function Rn(e, t, l, n, o, s) {
3780
3815
  }, null, 8, ["item", "to"]))), 128))
3781
3816
  ]),
3782
3817
  _: 1
3783
- }, 8, ["index", "class"])) : E("", !0)
3784
- ])) : E("", !0);
3818
+ }, 8, ["index", "class"])) : w("", !0)
3819
+ ])) : w("", !0);
3785
3820
  }
3786
- const Ln = /* @__PURE__ */ C(On, [["render", Rn]]);
3821
+ const jn = /* @__PURE__ */ C(Rn, [["render", Mn]]);
3787
3822
  function ut(e) {
3788
3823
  return e.filter((t) => {
3789
3824
  var l;
3790
3825
  return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ut(t.children), t.children.length === 0 && delete t.children), !0);
3791
3826
  });
3792
3827
  }
3793
- const Mn = {
3828
+ const Nn = {
3794
3829
  data() {
3795
3830
  return {
3796
3831
  selected: ""
@@ -3811,8 +3846,8 @@ const Mn = {
3811
3846
  }
3812
3847
  }
3813
3848
  };
3814
- function jn(e, t, l, n, o, s) {
3815
- const a = Se, c = Rt, d = Ce;
3849
+ function Vn(e, t, l, n, o, s) {
3850
+ const a = Se, c = Lt, d = Ce;
3816
3851
  return i(), m(d, {
3817
3852
  modelValue: o.selected,
3818
3853
  "onUpdate:modelValue": t[0] || (t[0] = (p) => o.selected = p),
@@ -3822,27 +3857,27 @@ function jn(e, t, l, n, o, s) {
3822
3857
  onChange: s.onselected
3823
3858
  }, {
3824
3859
  default: r(() => [
3825
- (i(!0), f(k, null, I(s.filterRoutes, (p) => (i(), f(k, {
3860
+ (i(!0), h(k, null, $(s.filterRoutes, (p) => (i(), h(k, {
3826
3861
  key: p.path
3827
3862
  }, [
3828
- p.children !== void 0 ? (i(), f(k, { key: 0 }, [
3863
+ p.children !== void 0 ? (i(), h(k, { key: 0 }, [
3829
3864
  p.meta.menuType !== 0 ? (i(), m(c, {
3830
3865
  key: p.path + "-",
3831
3866
  label: p.meta.title
3832
3867
  }, {
3833
3868
  default: r(() => [
3834
- (i(!0), f(k, null, I(p.children, (h, _) => (i(), f(k, {
3835
- key: h.path
3869
+ (i(!0), h(k, null, $(p.children, (f, _) => (i(), h(k, {
3870
+ key: f.path
3836
3871
  }, [
3837
3872
  p.meta.menuType !== 0 ? (i(), m(a, {
3838
3873
  key: 0,
3839
- label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + h.meta.title,
3840
- value: h.path
3841
- }, null, 8, ["label", "value"])) : E("", !0)
3874
+ label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + f.meta.title,
3875
+ value: f.path
3876
+ }, null, 8, ["label", "value"])) : w("", !0)
3842
3877
  ], 64))), 128))
3843
3878
  ]),
3844
3879
  _: 2
3845
- }, 1032, ["label"])) : E("", !0)
3880
+ }, 1032, ["label"])) : w("", !0)
3846
3881
  ], 64)) : (i(), m(a, {
3847
3882
  key: 1,
3848
3883
  label: "" + p.meta.title,
@@ -3853,10 +3888,10 @@ function jn(e, t, l, n, o, s) {
3853
3888
  _: 1
3854
3889
  }, 8, ["modelValue", "onChange"]);
3855
3890
  }
3856
- const Nn = /* @__PURE__ */ C(Mn, [["render", jn], ["__scopeId", "data-v-811395be"]]);
3891
+ const qn = /* @__PURE__ */ C(Nn, [["render", Vn], ["__scopeId", "data-v-811395be"]]);
3857
3892
  var P = /* @__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))(P || {}), O = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(O || {});
3858
- const Vn = N({
3859
- components: { SidebarItem: Ln, Logo: Bn, SearchMenu: Nn },
3893
+ const Un = N({
3894
+ components: { SidebarItem: jn, Logo: In, SearchMenu: qn },
3860
3895
  computed: {
3861
3896
  ...Ae(["sidebar", "remoteRouter", "customRouter"]),
3862
3897
  routes() {
@@ -3901,18 +3936,18 @@ const Vn = N({
3901
3936
  }
3902
3937
  }
3903
3938
  });
3904
- function qn(e, t, l, n, o, s) {
3905
- const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = Lt, h = Mt;
3906
- return i(), f("div", {
3939
+ function Hn(e, t, l, n, o, s) {
3940
+ const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = Mt, f = jt;
3941
+ return i(), h("div", {
3907
3942
  class: H({ "has-logo": e.showLogo })
3908
3943
  }, [
3909
3944
  e.showLogo ? (i(), m(a, {
3910
3945
  key: 0,
3911
3946
  collapse: e.isCollapse
3912
- }, null, 8, ["collapse"])) : E("", !0),
3913
- u(h, { "wrap-class": "scrollbar-wrapper" }, {
3947
+ }, null, 8, ["collapse"])) : w("", !0),
3948
+ u(f, { "wrap-class": "scrollbar-wrapper" }, {
3914
3949
  default: r(() => [
3915
- e.isCollapse ? E("", !0) : (i(), m(c, { key: 0 })),
3950
+ e.isCollapse ? w("", !0) : (i(), m(c, { key: 0 })),
3916
3951
  u(p, {
3917
3952
  "default-active": e.activeMenu,
3918
3953
  collapse: e.isCollapse,
@@ -3924,13 +3959,13 @@ function qn(e, t, l, n, o, s) {
3924
3959
  mode: "vertical"
3925
3960
  }, {
3926
3961
  default: r(() => [
3927
- (i(!0), f(k, null, I(e.routes, (_, A) => (i(), f(k, {
3962
+ (i(!0), h(k, null, $(e.routes, (_, A) => (i(), h(k, {
3928
3963
  key: A + "-module"
3929
3964
  }, [
3930
- (i(!0), f(k, null, I(e.filterRoute(_.routes), ($) => (i(), m(d, {
3931
- key: $.path,
3932
- item: $,
3933
- to: e.$router.resolve($.redirect ? $.redirect : $).fullPath
3965
+ (i(!0), h(k, null, $(e.filterRoute(_.routes), (I) => (i(), m(d, {
3966
+ key: I.path,
3967
+ item: I,
3968
+ to: e.$router.resolve(I.redirect ? I.redirect : I).fullPath
3934
3969
  }, null, 8, ["item", "to"]))), 128))
3935
3970
  ], 64))), 128))
3936
3971
  ]),
@@ -3941,17 +3976,17 @@ function qn(e, t, l, n, o, s) {
3941
3976
  })
3942
3977
  ], 2);
3943
3978
  }
3944
- const Un = /* @__PURE__ */ C(Vn, [["render", qn], ["__scopeId", "data-v-80b6b34b"]]);
3945
- const Hn = { class: "app-main" }, Gn = {
3979
+ const Gn = /* @__PURE__ */ C(Un, [["render", Hn], ["__scopeId", "data-v-80b6b34b"]]);
3980
+ const Jn = { class: "app-main" }, zn = {
3946
3981
  __name: "AppMain",
3947
3982
  setup(e) {
3948
3983
  const t = ce(), l = [], n = R(0);
3949
- return al(() => {
3984
+ return rl(() => {
3950
3985
  var o;
3951
3986
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3952
3987
  }), (o, s) => {
3953
- const a = v("router-view"), c = jt;
3954
- return i(), f("section", Hn, [
3988
+ const a = v("router-view"), c = Nt;
3989
+ return i(), h("section", Jn, [
3955
3990
  (i(), m(a, {
3956
3991
  key: o.$route.fullPath + n.value
3957
3992
  })),
@@ -3959,8 +3994,8 @@ const Hn = { class: "app-main" }, Gn = {
3959
3994
  ]);
3960
3995
  };
3961
3996
  }
3962
- }, Jn = /* @__PURE__ */ C(Gn, [["__scopeId", "data-v-ca0f0d98"]]);
3963
- const Kn = { class: "main-container" }, zn = {
3997
+ }, Kn = /* @__PURE__ */ C(zn, [["__scopeId", "data-v-ca0f0d98"]]);
3998
+ const Wn = { class: "main-container" }, Zn = {
3964
3999
  __name: "index",
3965
4000
  setup(e) {
3966
4001
  const t = tt(), { body: l } = document, n = 992, o = j(() => t.state.app.sidebar), s = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), c = j(() => ({
@@ -3969,36 +4004,36 @@ const Kn = { class: "main-container" }, zn = {
3969
4004
  withoutAnimation: o.value.withoutAnimation,
3970
4005
  mobile: s.value === "mobile"
3971
4006
  })), d = () => l.getBoundingClientRect().width - 1 < n;
3972
- ml(window, "resize", () => h());
4007
+ hl(window, "resize", () => f());
3973
4008
  const p = () => {
3974
4009
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
3975
- }, h = () => {
4010
+ }, f = () => {
3976
4011
  if (!document.hidden) {
3977
4012
  const _ = d();
3978
4013
  t.dispatch("app/toggleDevice", _ ? "mobile" : "desktop"), _ && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
3979
4014
  }
3980
4015
  };
3981
- return (_, A) => (i(), f("div", {
4016
+ return (_, A) => (i(), h("div", {
3982
4017
  class: H([T(c), "app-wrapper"])
3983
4018
  }, [
3984
- T(s) === "mobile" && T(o).opened ? (i(), f("div", {
4019
+ T(s) === "mobile" && T(o).opened ? (i(), h("div", {
3985
4020
  key: 0,
3986
4021
  class: "drawer-bg",
3987
4022
  onClick: p
3988
- })) : E("", !0),
3989
- u(T(Un), { class: "sidebar-container" }),
3990
- b("div", Kn, [
4023
+ })) : w("", !0),
4024
+ u(T(Gn), { class: "sidebar-container" }),
4025
+ b("div", Wn, [
3991
4026
  b("div", {
3992
4027
  class: H({ "fixed-header": T(a) })
3993
4028
  }, [
3994
- u(T(yn))
4029
+ u(T(gn))
3995
4030
  ], 2),
3996
- u(T(Jn))
4031
+ u(T(Kn))
3997
4032
  ])
3998
4033
  ], 2));
3999
4034
  }
4000
- }, ct = /* @__PURE__ */ C(zn, [["__scopeId", "data-v-957442cd"]]);
4001
- class Wn {
4035
+ }, ct = /* @__PURE__ */ C(Zn, [["__scopeId", "data-v-957442cd"]]);
4036
+ class Qn {
4002
4037
  constructor() {
4003
4038
  this.type = "qrcode";
4004
4039
  }
@@ -4010,12 +4045,12 @@ class Wn {
4010
4045
  showQrCode() {
4011
4046
  }
4012
4047
  }
4013
- class Zn extends Wn {
4048
+ class Xn extends Qn {
4014
4049
  constructor(t) {
4015
4050
  super(), this.type = "qrcode", this.qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}", this.reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}", this.elId = "", this.appid = "", this.iframe = new HTMLIFrameElement(), this.redirectUri = "", this.style = "";
4016
4051
  }
4017
4052
  flag() {
4018
- const t = Kt("code");
4053
+ const t = Wt("code");
4019
4054
  if (t)
4020
4055
  return t;
4021
4056
  }
@@ -4025,50 +4060,54 @@ class Zn extends Wn {
4025
4060
  appid: this.appid,
4026
4061
  redirect_uri: encodeURIComponent(this.redirectUri)
4027
4062
  };
4028
- return z(this.reloadUrl, s) + "&" + Wt(o || {});
4063
+ return K(this.reloadUrl, s) + "&" + Qt(o || {});
4029
4064
  }, l = () => {
4030
4065
  const o = {
4031
4066
  goto: encodeURIComponent(t()),
4032
4067
  style: encodeURIComponent(this.style)
4033
4068
  };
4034
- return z(this.qrCodeUrl, o);
4069
+ return K(this.qrCodeUrl, o);
4035
4070
  }, n = (o) => {
4036
4071
  const { origin: s, data: a } = o;
4037
4072
  s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
4038
4073
  };
4039
- this.iframe.src = l(), zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener("message", (o) => n(o), !1) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (o) => this.onScanSuccess(o));
4074
+ this.iframe.src = l(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4075
+ "message",
4076
+ (o) => n(o),
4077
+ !1
4078
+ ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (o) => this.onScanSuccess(o));
4040
4079
  }
4041
4080
  }
4042
- const Qn = {
4043
- dingtalk: (e) => new Zn(e)
4081
+ const Yn = {
4082
+ dingtalk: (e) => new Xn(e)
4044
4083
  };
4045
- function Xn() {
4046
- return D(w.state.settings.sso || {}, Qn);
4084
+ function es() {
4085
+ return D(E.state.settings.sso || {}, Yn);
4047
4086
  }
4048
- function Yn(e) {
4049
- const t = Xn(), l = w.state.settings.activeSsoKey || "", n = t[l];
4087
+ function ts(e) {
4088
+ const t = es(), l = E.state.settings.activeSsoKey || "", n = t[l];
4050
4089
  if (n !== void 0)
4051
4090
  return n(e);
4052
4091
  }
4053
- const es = { id: "login" }, ts = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ls = { id: "form" }, os = { class: "tips" }, ns = { class: "sso" }, ss = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), as = /* @__PURE__ */ N({
4092
+ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ns = { id: "form" }, ss = { class: "tips" }, as = { class: "sso" }, is = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), rs = /* @__PURE__ */ N({
4054
4093
  __name: "login",
4055
4094
  setup(e) {
4056
- const t = il(), l = ce(), n = j(() => w.state.settings.loginTips), o = R({
4095
+ const t = ul(), l = ce(), n = j(() => E.state.settings.loginTips), o = R({
4057
4096
  username: "",
4058
4097
  password: ""
4059
4098
  }), s = () => {
4060
4099
  if (o.value.username === "" || o.value.password === "") {
4061
- Nt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
4100
+ Vt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
4062
4101
  return;
4063
4102
  }
4064
- w.dispatch("user/login", o.value).then((a) => {
4103
+ E.dispatch("user/login", o.value).then((a) => {
4065
4104
  var c;
4066
4105
  t.push({ path: ((c = l.query) == null ? void 0 : c.redirect) || "/" });
4067
4106
  });
4068
4107
  };
4069
- return R(), (a, c) => (i(), f("div", es, [
4070
- ts,
4071
- b("form", ls, [
4108
+ return R(), (a, c) => (i(), h("div", ls, [
4109
+ os,
4110
+ b("form", ns, [
4072
4111
  ye(b("input", {
4073
4112
  "onUpdate:modelValue": c[0] || (c[0] = (d) => o.value.username = d),
4074
4113
  type: "text",
@@ -4089,20 +4128,20 @@ const es = { id: "login" }, ts = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
4089
4128
  class: "input button",
4090
4129
  onClick: s
4091
4130
  }, "\u767B\u5F55"),
4092
- b("div", os, [
4131
+ b("div", ss, [
4093
4132
  b("div", null, B(T(n)), 1)
4094
4133
  ]),
4095
- b("div", ns, [
4096
- ss,
4097
- (i(!0), f(k, null, I(Object.keys([]), (d) => (i(), f("div", { key: d }, B(d), 1))), 128))
4134
+ b("div", as, [
4135
+ is,
4136
+ (i(!0), h(k, null, $(Object.keys([]), (d) => (i(), h("div", { key: d }, B(d), 1))), 128))
4098
4137
  ])
4099
4138
  ])
4100
4139
  ]));
4101
4140
  }
4102
4141
  });
4103
- const is = {
4142
+ const us = {
4104
4143
  name: "NotFoundPage"
4105
- }, dt = (e) => (Je("data-v-26068803"), e = e(), Ke(), e), rs = { class: "not-found" }, us = /* @__PURE__ */ dt(() => /* @__PURE__ */ b("svg", {
4144
+ }, dt = (e) => (Je("data-v-26068803"), e = e(), ze(), e), cs = { class: "not-found" }, ds = /* @__PURE__ */ dt(() => /* @__PURE__ */ b("svg", {
4106
4145
  width: "380px",
4107
4146
  height: "500px",
4108
4147
  viewBox: "0 0 837 1045",
@@ -4155,7 +4194,7 @@ const is = {
4155
4194
  "sketch:type": "MSShapeGroup"
4156
4195
  })
4157
4196
  ])
4158
- ], -1)), cs = /* @__PURE__ */ dt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4197
+ ], -1)), ps = /* @__PURE__ */ dt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4159
4198
  /* @__PURE__ */ b("h1", null, "404"),
4160
4199
  /* @__PURE__ */ b("p", null, "Page not found"),
4161
4200
  /* @__PURE__ */ b("div", { class: "buttons-con" }, [
@@ -4166,14 +4205,14 @@ const is = {
4166
4205
  }, "Go to Home Page")
4167
4206
  ])
4168
4207
  ])
4169
- ], -1)), ds = [
4170
- us,
4171
- cs
4208
+ ], -1)), ms = [
4209
+ ds,
4210
+ ps
4172
4211
  ];
4173
- function ps(e, t, l, n, o, s) {
4174
- return i(), f("div", rs, ds);
4212
+ function fs(e, t, l, n, o, s) {
4213
+ return i(), h("div", cs, ms);
4175
4214
  }
4176
- const ms = /* @__PURE__ */ C(is, [["render", ps], ["__scopeId", "data-v-26068803"]]), fs = [
4215
+ const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803"]]), bs = [
4177
4216
  {
4178
4217
  path: "/",
4179
4218
  component: ct,
@@ -4186,78 +4225,78 @@ const ms = /* @__PURE__ */ C(is, [["render", ps], ["__scopeId", "data-v-26068803
4186
4225
  {
4187
4226
  path: "dashboard",
4188
4227
  name: "Dashboard",
4189
- component: Gl,
4228
+ component: zl,
4190
4229
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
4191
4230
  }
4192
4231
  ]
4193
4232
  },
4194
4233
  {
4195
4234
  path: "/login",
4196
- component: as,
4235
+ component: rs,
4197
4236
  meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
4198
4237
  hidden: !0
4199
4238
  },
4200
4239
  {
4201
4240
  path: "/404",
4202
- component: ms,
4241
+ component: hs,
4203
4242
  meta: { menuType: 0 },
4204
4243
  hidden: !0
4205
4244
  }
4206
- ], te = rl({
4207
- history: ul(),
4208
- routes: fs
4245
+ ], te = cl({
4246
+ history: dl(),
4247
+ routes: bs
4209
4248
  });
4210
4249
  ge.configure({ showSpinner: !1 });
4211
- function hs(e) {
4250
+ function _s(e) {
4212
4251
  e.beforeEach((t, l, n) => {
4213
4252
  ge.start(), t.preHash = location.hash.replace("#", ""), n();
4214
4253
  }), e.afterEach((t) => {
4215
- t.matched.length > 0 && w.commit("user/updateState", {
4254
+ t.matched.length > 0 && E.commit("user/updateState", {
4216
4255
  key: "path",
4217
4256
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4218
4257
  }), ge.done();
4219
4258
  });
4220
4259
  }
4221
- function bs() {
4222
- return w.state.user.isLodeRemoteRoutes;
4260
+ function ys() {
4261
+ return E.state.user.isLodeRemoteRoutes;
4223
4262
  }
4224
4263
  function pt() {
4225
- return w.state.settings.whiteRoutes || [];
4264
+ return E.state.settings.whiteRoutes || [];
4226
4265
  }
4227
- function _s() {
4228
- return w.state.user.token;
4266
+ function vs() {
4267
+ return E.state.user.token;
4229
4268
  }
4230
- function ys(e) {
4269
+ function gs(e) {
4231
4270
  e.beforeEach(async (t, l, n) => {
4232
4271
  var d, p;
4233
4272
  if (pt().indexOf(t.path) !== -1) {
4234
4273
  n();
4235
4274
  return;
4236
4275
  }
4237
- if (_s()) {
4276
+ if (vs()) {
4238
4277
  (d = t.query) != null && d.redirect ? n((p = t.query) == null ? void 0 : p.redirect) : n();
4239
4278
  return;
4240
4279
  }
4241
- const s = t.query.redirect || t.path, a = Yn({});
4280
+ const s = t.query.redirect || t.path, a = ts({});
4242
4281
  if (!a) {
4243
4282
  n(`/login?redirect=${s}`);
4244
4283
  return;
4245
4284
  }
4246
4285
  const c = a.flag();
4247
- if (c && await w.dispatch("user/login", { ticket: c })) {
4286
+ if (c && await E.dispatch("user/login", { ticket: c })) {
4248
4287
  n();
4249
4288
  return;
4250
4289
  }
4251
4290
  a.jumpToLoginPage(n, `/login?redirect=${s}`);
4252
4291
  });
4253
4292
  }
4254
- const vs = {}, gs = { class: "loading preloader" }, ks = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Es = [
4255
- ks
4293
+ const ks = {}, ws = { class: "loading preloader" }, Es = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Ss = [
4294
+ Es
4256
4295
  ];
4257
- function ws(e, t) {
4258
- return i(), f("div", gs, Es);
4296
+ function Cs(e, t) {
4297
+ return i(), h("div", ws, Ss);
4259
4298
  }
4260
- const mt = /* @__PURE__ */ C(vs, [["render", ws]]), Ss = N({
4299
+ const mt = /* @__PURE__ */ C(ks, [["render", Cs]]), xs = N({
4261
4300
  components: { VLoading: mt },
4262
4301
  props: {
4263
4302
  schemaHandler: {
@@ -4283,27 +4322,27 @@ const mt = /* @__PURE__ */ C(vs, [["render", ws]]), Ss = N({
4283
4322
  beforeCreate() {
4284
4323
  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 };
4285
4324
  this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4286
- this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, Ie(o.notice) ? this.notice = {
4325
+ this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
4287
4326
  title: o.notice
4288
- } : $e(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.schema = this.$props.schemaHandler(o, t), w.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4327
+ } : Ie(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.schema = this.$props.schemaHandler(o, t), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4289
4328
  });
4290
4329
  }
4291
4330
  });
4292
- function Cs(e, t, l, n, o, s) {
4331
+ function Bs(e, t, l, n, o, s) {
4293
4332
  const a = ve, c = ve, d = mt;
4294
- return i(), f(k, null, [
4333
+ return i(), h(k, null, [
4295
4334
  e.owners.length > 0 ? (i(), m(a, {
4296
4335
  key: 0,
4297
4336
  title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
4298
4337
  type: "info",
4299
4338
  style: { margin: "0 0 20px 0" },
4300
4339
  closable: !1
4301
- }, null, 8, ["title"])) : E("", !0),
4302
- e.haveNotice ? (i(), m(c, q({ key: 1 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : E("", !0),
4340
+ }, null, 8, ["title"])) : w("", !0),
4341
+ e.haveNotice ? (i(), m(c, q({ key: 1 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : w("", !0),
4303
4342
  e.loading ? (i(), m(d, { key: 2 })) : Y(e.$slots, "default", J(q({ key: 3 }, e.schema)))
4304
4343
  ], 64);
4305
4344
  }
4306
- const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4345
+ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ft = {
4307
4346
  __name: "table",
4308
4347
  setup(e) {
4309
4348
  const t = (l, n) => {
@@ -4326,7 +4365,7 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4326
4365
  _: 1
4327
4366
  }));
4328
4367
  }
4329
- }, we = {
4368
+ }, Ee = {
4330
4369
  __name: "form",
4331
4370
  setup(e) {
4332
4371
  const t = ce(), l = (n, o) => {
@@ -4336,7 +4375,7 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4336
4375
  delete n[a];
4337
4376
  return;
4338
4377
  }
4339
- /.*Api$/.test(a) && (n[a] = z(n[a], t.params));
4378
+ /.*Api$/.test(a) && (n[a] = K(n[a], t.params));
4340
4379
  }), 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 = D({
4341
4380
  saveApi: o + "/save",
4342
4381
  afterSubmit: "goback",
@@ -4351,7 +4390,7 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4351
4390
  _: 1
4352
4391
  }));
4353
4392
  }
4354
- }, xs = N({
4393
+ }, $s = N({
4355
4394
  name: "VTree",
4356
4395
  components: {
4357
4396
  VForm: W
@@ -4424,7 +4463,7 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4424
4463
  return ["", "\u65B0\u5EFA", "\u7F16\u8F91"][this.type];
4425
4464
  },
4426
4465
  formProps() {
4427
- let e = z(this.$props.saveApi, this.formData);
4466
+ let e = K(this.$props.saveApi, this.formData);
4428
4467
  return this.type === 1 && (e = this.$props.createApi), {
4429
4468
  saveApi: e,
4430
4469
  getApi: this.$props.getApi,
@@ -4450,7 +4489,7 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4450
4489
  append(e, t) {
4451
4490
  var n, o, s;
4452
4491
  this.type = 1;
4453
- const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Zt((s = this.$props.props) == null ? void 0 : s.effectData, e) };
4492
+ const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Xt((s = this.$props.props) == null ? void 0 : s.effectData, e) };
4454
4493
  console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4455
4494
  },
4456
4495
  canAppend(e, t) {
@@ -4465,7 +4504,7 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4465
4504
  remove(e) {
4466
4505
  this.$http.request({
4467
4506
  method: "DELETE",
4468
- url: z(this.$props.deleteApi, e)
4507
+ url: K(this.$props.deleteApi, e)
4469
4508
  }).then(({ code: t }) => {
4470
4509
  t !== 0 ? this.$message.error("\u64CD\u4F5C\u5931\u8D25") : this.loadTree();
4471
4510
  });
@@ -4485,7 +4524,7 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4485
4524
  const o = e.data;
4486
4525
  o.pid = t.data.id, this.$http.request({
4487
4526
  method: "POST",
4488
- url: z(this.$props.saveApi, o),
4527
+ url: K(this.$props.saveApi, o),
4489
4528
  data: o
4490
4529
  }).then(({ code: s }) => {
4491
4530
  s !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
@@ -4493,12 +4532,12 @@ const pe = /* @__PURE__ */ C(Ss, [["render", Cs]]), ft = {
4493
4532
  }
4494
4533
  }
4495
4534
  });
4496
- const Bs = { class: "card-header" }, Is = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), $s = /* @__PURE__ */ g("\u6DFB\u52A0"), As = { class: "tree-action" }, Ts = { key: 0 }, Fs = {
4535
+ const Is = { class: "card-header" }, As = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Ts = /* @__PURE__ */ g("\u6DFB\u52A0"), Fs = { class: "tree-action" }, Ds = { key: 0 }, Os = {
4497
4536
  key: 1,
4498
4537
  style: { color: "#E6A23C" }
4499
- }, Ds = /* @__PURE__ */ g("\u7F16\u8F91"), Os = /* @__PURE__ */ g("\u6DFB\u52A0"), Ps = /* @__PURE__ */ g("\u5220\u9664"), Rs = { class: "card-header" };
4500
- function Ls(e, t) {
4501
- const l = ae, n = Vt, o = xe, s = ue, a = v("v-form"), c = le;
4538
+ }, Ps = /* @__PURE__ */ g("\u7F16\u8F91"), Rs = /* @__PURE__ */ g("\u6DFB\u52A0"), Ls = /* @__PURE__ */ g("\u5220\u9664"), Ms = { class: "card-header" };
4539
+ function js(e, t) {
4540
+ const l = ae, n = qt, o = xe, s = ue, a = v("v-form"), c = le;
4502
4541
  return i(), m(c, {
4503
4542
  class: "tree-box",
4504
4543
  gutter: 20
@@ -4511,14 +4550,14 @@ function Ls(e, t) {
4511
4550
  default: r(() => [
4512
4551
  u(o, { shadow: "never" }, {
4513
4552
  header: r(() => [
4514
- b("div", Bs, [
4515
- Is,
4553
+ b("div", Is, [
4554
+ As,
4516
4555
  u(l, {
4517
4556
  type: "text",
4518
4557
  onClick: t[0] || (t[0] = () => e.appendNew())
4519
4558
  }, {
4520
4559
  default: r(() => [
4521
- $s
4560
+ Ts
4522
4561
  ]),
4523
4562
  _: 1
4524
4563
  })
@@ -4537,8 +4576,8 @@ function Ls(e, t) {
4537
4576
  onNodeDragEnd: e.handleDragEnd
4538
4577
  }), {
4539
4578
  default: r(({ node: d, data: p }) => [
4540
- b("span", As, [
4541
- p[e.localTreeProps.props.label] ? (i(), f("span", Ts, B(p[e.localTreeProps.props.label]), 1)) : (i(), f("span", Fs, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4579
+ b("span", Fs, [
4580
+ p[e.localTreeProps.props.label] ? (i(), h("span", Ds, B(p[e.localTreeProps.props.label]), 1)) : (i(), h("span", Os, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4542
4581
  b("span", null, [
4543
4582
  p[e.localTreeProps.props.label] ? (i(), m(l, {
4544
4583
  key: 0,
@@ -4547,10 +4586,10 @@ function Ls(e, t) {
4547
4586
  onClick: () => e.onclick(p)
4548
4587
  }, {
4549
4588
  default: r(() => [
4550
- Ds
4589
+ Ps
4551
4590
  ]),
4552
4591
  _: 2
4553
- }, 1032, ["onClick"])) : E("", !0),
4592
+ }, 1032, ["onClick"])) : w("", !0),
4554
4593
  e.canAppend(p, d) ? (i(), m(l, {
4555
4594
  key: 1,
4556
4595
  class: "button",
@@ -4558,10 +4597,10 @@ function Ls(e, t) {
4558
4597
  onClick: () => e.append(p, d)
4559
4598
  }, {
4560
4599
  default: r(() => [
4561
- Os
4600
+ Rs
4562
4601
  ]),
4563
4602
  _: 2
4564
- }, 1032, ["onClick"])) : E("", !0),
4603
+ }, 1032, ["onClick"])) : w("", !0),
4565
4604
  p.children === void 0 || p.children.length === 0 ? (i(), m(l, {
4566
4605
  key: 2,
4567
4606
  class: "button",
@@ -4569,15 +4608,15 @@ function Ls(e, t) {
4569
4608
  onClick: () => e.remove(p)
4570
4609
  }, {
4571
4610
  default: r(() => [
4572
- Ps
4611
+ Ls
4573
4612
  ]),
4574
4613
  _: 2
4575
- }, 1032, ["onClick"])) : E("", !0)
4614
+ }, 1032, ["onClick"])) : w("", !0)
4576
4615
  ])
4577
4616
  ])
4578
4617
  ]),
4579
4618
  _: 1
4580
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
4619
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : w("", !0)
4581
4620
  ]),
4582
4621
  _: 1
4583
4622
  })
@@ -4594,7 +4633,7 @@ function Ls(e, t) {
4594
4633
  shadow: "never"
4595
4634
  }, {
4596
4635
  header: r(() => [
4597
- b("div", Rs, [
4636
+ b("div", Ms, [
4598
4637
  b("span", null, B(e.formType), 1)
4599
4638
  ])
4600
4639
  ]),
@@ -4606,7 +4645,7 @@ function Ls(e, t) {
4606
4645
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4607
4646
  ]),
4608
4647
  _: 1
4609
- })) : E("", !0)
4648
+ })) : w("", !0)
4610
4649
  ]),
4611
4650
  _: 1
4612
4651
  })
@@ -4614,7 +4653,7 @@ function Ls(e, t) {
4614
4653
  _: 1
4615
4654
  });
4616
4655
  }
4617
- const Ue = /* @__PURE__ */ C(xs, [["render", Ls]]), Ms = {
4656
+ const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
4618
4657
  __name: "tree",
4619
4658
  setup(e) {
4620
4659
  const t = (l, n) => {
@@ -4634,14 +4673,14 @@ const Ue = /* @__PURE__ */ C(xs, [["render", Ls]]), Ms = {
4634
4673
  __name: "container",
4635
4674
  setup(e) {
4636
4675
  const t = R(0);
4637
- return cl(() => {
4676
+ return pl(() => {
4638
4677
  t.value++;
4639
4678
  }), (l, n) => {
4640
4679
  const o = v("router-view");
4641
4680
  return i(), m(o);
4642
4681
  };
4643
4682
  }
4644
- }, js = {
4683
+ }, Vs = {
4645
4684
  title: {
4646
4685
  text: ""
4647
4686
  },
@@ -4670,34 +4709,34 @@ const Ue = /* @__PURE__ */ C(xs, [["render", Ls]]), Ms = {
4670
4709
  },
4671
4710
  series: []
4672
4711
  };
4673
- function Ns(e, t, l) {
4712
+ function qs(e, t, l) {
4674
4713
  if (l.length === 0)
4675
4714
  return {};
4676
- let n = D({}, js);
4677
- if (n.title.text = e, Ie(t)) {
4715
+ let n = D({}, Vs);
4716
+ if (n.title.text = e, $e(t)) {
4678
4717
  const o = [], s = Object.keys(l[0]);
4679
- let a = s[0], c = s.filter((p, h) => h > 0), d = t;
4718
+ let a = s[0], c = s.filter((p, f) => f > 0), d = t;
4680
4719
  if (t.indexOf(":") > -1) {
4681
- const p = t.split(":"), h = p[1].split(",");
4682
- d = p[0], a = h[0], c = h.filter((_, A) => A > 0);
4720
+ const p = t.split(":"), f = p[1].split(",");
4721
+ d = p[0], a = f[0], c = f.filter((_, A) => A > 0);
4683
4722
  }
4684
4723
  c.forEach((p) => {
4685
- const h = [];
4724
+ const f = [];
4686
4725
  l.forEach((_) => {
4687
- h.push(_[p]);
4726
+ f.push(_[p]);
4688
4727
  }), n.series.push({
4689
4728
  name: p,
4690
4729
  type: d,
4691
4730
  smooth: !0,
4692
- data: h
4731
+ data: f
4693
4732
  }), n.legend.data.push(p);
4694
4733
  }), l.forEach((p) => {
4695
4734
  o.push(p[a]);
4696
4735
  }), n.xAxis.data = o;
4697
4736
  }
4698
- return $e(t) && (n = D(n, t)), console.log(111, n), n;
4737
+ return Ie(t) && (n = D(n, t)), console.log(111, n), n;
4699
4738
  }
4700
- const Vs = N({
4739
+ const Us = N({
4701
4740
  name: "NumberPanel",
4702
4741
  props: {
4703
4742
  dataList: {
@@ -4708,27 +4747,27 @@ const Vs = N({
4708
4747
  data() {
4709
4748
  return {};
4710
4749
  }
4711
- }), qs = { class: "number-panel-title" }, Us = { class: "number" }, Hs = { class: "name" };
4712
- function Gs(e, t, l, n, o, s) {
4713
- return i(!0), f(k, null, I(e.dataList, (a, c) => (i(), f("span", { key: c }, [
4714
- b("div", qs, [
4715
- (i(!0), f(k, null, I(Object.keys(a), (d, p) => (i(), f("div", {
4750
+ }), Hs = { class: "number-panel-title" }, Gs = { class: "number" }, Js = { class: "name" };
4751
+ function zs(e, t, l, n, o, s) {
4752
+ return i(!0), h(k, null, $(e.dataList, (a, c) => (i(), h("span", { key: c }, [
4753
+ b("div", Hs, [
4754
+ (i(!0), h(k, null, $(Object.keys(a), (d, p) => (i(), h("div", {
4716
4755
  key: p,
4717
4756
  class: "title-inner"
4718
4757
  }, [
4719
- b("p", Us, B(a[d]), 1),
4720
- b("p", Hs, B(d), 1)
4758
+ b("p", Gs, B(a[d]), 1),
4759
+ b("p", Js, B(d), 1)
4721
4760
  ]))), 128))
4722
4761
  ])
4723
4762
  ]))), 128);
4724
4763
  }
4725
- const Js = /* @__PURE__ */ C(Vs, [["render", Gs], ["__scopeId", "data-v-cc0d8293"]]), Ks = {
4764
+ const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293"]]), Ws = {
4726
4765
  components: {
4727
- Chart: ol,
4728
- Md: fl,
4766
+ Chart: sl,
4767
+ Md: bl,
4729
4768
  Json: Fe,
4730
4769
  Table: re,
4731
- Number: Js,
4770
+ Number: Ks,
4732
4771
  Html: ""
4733
4772
  },
4734
4773
  props: {
@@ -4749,14 +4788,14 @@ const Js = /* @__PURE__ */ C(Vs, [["render", Gs], ["__scopeId", "data-v-cc0d8293
4749
4788
  };
4750
4789
  if (o === "chart")
4751
4790
  return {
4752
- options: Ns(n.id, n.chart, n.data)
4791
+ options: qs(n.id, n.chart, n.data)
4753
4792
  };
4754
4793
  if (o === "md")
4755
4794
  return {
4756
4795
  source: n.data
4757
4796
  };
4758
4797
  if (o === "table") {
4759
- if (!Qt(n.data))
4798
+ if (!Yt(n.data))
4760
4799
  return { showPagination: !1 };
4761
4800
  const s = [];
4762
4801
  return n.data[0] && Object.keys(n.data[0]).forEach((a, c) => {
@@ -4773,21 +4812,21 @@ const Js = /* @__PURE__ */ C(Vs, [["render", Gs], ["__scopeId", "data-v-cc0d8293
4773
4812
  };
4774
4813
  }
4775
4814
  };
4776
- function zs(e, t, l, n, o, s) {
4815
+ function Zs(e, t, l, n, o, s) {
4777
4816
  const a = xe, c = Et("resize");
4778
4817
  return ye((i(), m(a, {
4779
4818
  shadow: "never",
4780
4819
  class: "part"
4781
4820
  }, {
4782
4821
  default: r(() => [
4783
- (i(), m(ze(n.comptype()), J(Z(n.compprops(l.option))), null, 16))
4822
+ (i(), m(Ke(n.comptype()), J(Z(n.compprops(l.option))), null, 16))
4784
4823
  ]),
4785
4824
  _: 1
4786
4825
  })), [
4787
4826
  [c, !0]
4788
4827
  ]);
4789
4828
  }
4790
- const Ws = /* @__PURE__ */ C(Ks, [["render", zs], ["__scopeId", "data-v-a5a65cc1"]]), Zs = /* @__PURE__ */ N({
4829
+ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1"]]), Xs = /* @__PURE__ */ N({
4791
4830
  __name: "index",
4792
4831
  props: {
4793
4832
  filter: {
@@ -4801,12 +4840,12 @@ const Ws = /* @__PURE__ */ C(Ks, [["render", zs], ["__scopeId", "data-v-a5a65cc1
4801
4840
  },
4802
4841
  setup(e) {
4803
4842
  const t = e, l = useRoute();
4804
- wt(() => {
4843
+ St(() => {
4805
4844
  });
4806
4845
  const n = R({});
4807
4846
  Ge(() => {
4808
- var h;
4809
- (h = t.filter) == null || h.forEach((_) => {
4847
+ var f;
4848
+ (f = t.filter) == null || f.forEach((_) => {
4810
4849
  _.default !== null && (n.value[_.field] = _.default);
4811
4850
  });
4812
4851
  });
@@ -4821,22 +4860,22 @@ const Ws = /* @__PURE__ */ C(Ks, [["render", zs], ["__scopeId", "data-v-a5a65cc1
4821
4860
  text: "\u91CD\u7F6E"
4822
4861
  }
4823
4862
  }, s = R(1), a = R(t.filter), c = R(t.dataPart), d = j(() => {
4824
- let h = l.params.id;
4825
- if (!h) {
4863
+ let f = l.params.id;
4864
+ if (!f) {
4826
4865
  const _ = l.path.split("/");
4827
- h = _[_.length - 1];
4866
+ f = _[_.length - 1];
4828
4867
  }
4829
- return "/focusbi_report/view/" + h;
4830
- }), p = (h) => {
4831
- ql.get(d.value, { params: h }).then(({ data: _ }) => {
4868
+ return "/focusbi_report/view/" + f;
4869
+ }), p = (f) => {
4870
+ Hl.get(d.value, { params: f }).then(({ data: _ }) => {
4832
4871
  a.value = _.filter, c.value = _.dataPart, s.value++;
4833
4872
  });
4834
4873
  };
4835
- return (h, _) => {
4836
- const A = xe, $ = ue, U = ve, V = le;
4874
+ return (f, _) => {
4875
+ const A = xe, I = ue, U = ve, V = le;
4837
4876
  return i(), m(V, null, {
4838
4877
  default: r(() => [
4839
- a.value.length > 0 ? (i(), m($, {
4878
+ a.value.length > 0 ? (i(), m(I, {
4840
4879
  key: 0,
4841
4880
  span: 24
4842
4881
  }, {
@@ -4858,13 +4897,13 @@ const Ws = /* @__PURE__ */ C(Ks, [["render", zs], ["__scopeId", "data-v-a5a65cc1
4858
4897
  })
4859
4898
  ]),
4860
4899
  _: 1
4861
- })) : E("", !0),
4862
- u($, { span: 24 }, {
4900
+ })) : w("", !0),
4901
+ u(I, { span: 24 }, {
4863
4902
  default: r(() => [
4864
4903
  u(V, { gutter: 20 }, {
4865
4904
  default: r(() => [
4866
- (i(!0), f(k, null, I(c.value, (x, K) => (i(), m($, {
4867
- key: K,
4905
+ (i(!0), h(k, null, $(c.value, (x, z) => (i(), m(I, {
4906
+ key: z,
4868
4907
  span: x.col || 24
4869
4908
  }, {
4870
4909
  default: r(() => [
@@ -4877,7 +4916,7 @@ const Ws = /* @__PURE__ */ C(Ks, [["render", zs], ["__scopeId", "data-v-a5a65cc1
4877
4916
  g(B(x.errMsg), 1)
4878
4917
  ]),
4879
4918
  _: 2
4880
- }, 1032, ["title"])) : (i(), m(Ws, {
4919
+ }, 1032, ["title"])) : (i(), m(Qs, {
4881
4920
  key: s.value,
4882
4921
  option: x
4883
4922
  }, null, 8, ["option"]))
@@ -4896,7 +4935,7 @@ const Ws = /* @__PURE__ */ C(Ks, [["render", zs], ["__scopeId", "data-v-a5a65cc1
4896
4935
  };
4897
4936
  }
4898
4937
  });
4899
- const Qs = {
4938
+ const Ys = {
4900
4939
  __name: "report",
4901
4940
  setup(e) {
4902
4941
  const t = useRoute(), l = j(() => {
@@ -4909,17 +4948,17 @@ const Qs = {
4909
4948
  });
4910
4949
  return (n, o) => (i(), m(pe, { "schema-api": T(l) }, {
4911
4950
  default: r((s) => [
4912
- u(Zs, J(Z(s)), null, 16)
4951
+ u(Xs, J(Z(s)), null, 16)
4913
4952
  ]),
4914
4953
  _: 1
4915
4954
  }, 8, ["schema-api"]));
4916
4955
  }
4917
4956
  };
4918
4957
  let X = {};
4919
- function mi(e) {
4958
+ function hi(e) {
4920
4959
  X = e;
4921
4960
  }
4922
- const Xs = (e) => {
4961
+ const ea = (e) => {
4923
4962
  const t = (l) => {
4924
4963
  const n = "./views/" + l + ".vue";
4925
4964
  return X && X[n] && X[n].default ? X[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), oe);
@@ -4930,31 +4969,31 @@ const Xs = (e) => {
4930
4969
  case P.list:
4931
4970
  return ft;
4932
4971
  case P.form:
4933
- return we;
4972
+ return Ee;
4934
4973
  case P.custom:
4935
4974
  case P.localComp:
4936
4975
  return t(e.view || "");
4937
4976
  case P.tree:
4938
- return Ms;
4977
+ return Ns;
4939
4978
  case P.report:
4940
- return Qs;
4979
+ return Ys;
4941
4980
  case P.customSchema:
4942
4981
  return oe;
4943
4982
  }
4944
4983
  return oe;
4945
4984
  };
4946
- function Ys(e) {
4985
+ function ta(e) {
4947
4986
  let t = e.path;
4948
4987
  return e.type === O.menu && e.page_type === P.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;
4949
4988
  }
4950
- function ea(e) {
4989
+ function la(e) {
4951
4990
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4952
4991
  }
4953
4992
  const ht = (e) => {
4954
4993
  const t = e.type !== O.page, l = {
4955
- path: Ys(e),
4956
- name: e.id + "_" + ea(e) + "_" + e.path.replaceAll("/", "_"),
4957
- component: Xs(e),
4994
+ path: ta(e),
4995
+ name: e.id + "_" + la(e) + "_" + e.path.replaceAll("/", "_"),
4996
+ component: ea(e),
4958
4997
  meta: {
4959
4998
  id: e.id,
4960
4999
  pageId: e.id,
@@ -4983,7 +5022,7 @@ const ht = (e) => {
4983
5022
  }, {
4984
5023
  path: o,
4985
5024
  name: e.name + "\u65B0\u5EFA" + e.id,
4986
- component: we,
5025
+ component: Ee,
4987
5026
  meta: {
4988
5027
  id: e.id + 99999 + 1,
4989
5028
  title: "\u65B0\u5EFA",
@@ -4995,7 +5034,7 @@ const ht = (e) => {
4995
5034
  }, {
4996
5035
  path: s,
4997
5036
  name: e.name + "\u7F16\u8F91" + e.id,
4998
- component: we,
5037
+ component: Ee,
4999
5038
  meta: {
5000
5039
  id: e.id + 99999 + 2,
5001
5040
  title: "\u7F16\u8F91",
@@ -5023,7 +5062,7 @@ const ht = (e) => {
5023
5062
  }
5024
5063
  }
5025
5064
  return l;
5026
- }, ta = (e) => {
5065
+ }, oa = (e) => {
5027
5066
  const t = [];
5028
5067
  return e.forEach((l) => {
5029
5068
  const n = {
@@ -5036,18 +5075,18 @@ const ht = (e) => {
5036
5075
  }), t.push(n);
5037
5076
  }), t;
5038
5077
  };
5039
- function la(e) {
5078
+ function na(e) {
5040
5079
  e.beforeEach(async (t, l, n) => {
5041
5080
  if (pt().indexOf(t.path) !== -1) {
5042
5081
  n();
5043
5082
  return;
5044
5083
  }
5045
- if (bs()) {
5084
+ if (ys()) {
5046
5085
  n();
5047
5086
  return;
5048
5087
  }
5049
- await w.dispatch("user/info");
5050
- const o = await w.dispatch("user/loadRemoteRoutes"), s = ta(o);
5088
+ await E.dispatch("user/info");
5089
+ const o = await E.dispatch("user/loadRemoteRoutes"), s = oa(o);
5051
5090
  s.forEach((a) => {
5052
5091
  a.routes.forEach((c) => {
5053
5092
  e.addRoute({
@@ -5056,27 +5095,27 @@ function la(e) {
5056
5095
  children: [c]
5057
5096
  });
5058
5097
  });
5059
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), w.commit("user/updateRemoteRouter", s), await e.replace(t), n();
5098
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), E.commit("user/updateRemoteRouter", s), await e.replace(t), n();
5060
5099
  });
5061
5100
  }
5062
- function oa(e) {
5101
+ function sa(e) {
5063
5102
  e.beforeEach(async (t, l, n) => {
5064
5103
  var c;
5065
- const s = [w.state.settings.title || ""], a = t.matched.length;
5104
+ const s = [E.state.settings.title || ""], a = t.matched.length;
5066
5105
  for (let d = a; d > a - 3; d--) {
5067
5106
  const p = t.matched[d - 1];
5068
5107
  (c = p == null ? void 0 : p.meta) != null && c.title && s.push(p.meta.title + "");
5069
5108
  }
5070
5109
  s.length > 1 && (document.title = s.reverse().join("-")), n();
5071
5110
  }), e.afterEach(async (t, l, n) => {
5072
- Object.keys(t.meta).length > 0 && await w.dispatch("app/setCurrentMeta", t.meta);
5111
+ Object.keys(t.meta).length > 0 && await E.dispatch("app/setCurrentMeta", t.meta);
5073
5112
  });
5074
5113
  }
5075
- function na(e) {
5076
- ys(e), hs(e), la(e), oa(e);
5114
+ function aa(e) {
5115
+ gs(e), _s(e), na(e), sa(e);
5077
5116
  }
5078
- na(te);
5079
- const sa = {
5117
+ aa(te);
5118
+ const ia = {
5080
5119
  beforeMount(e, t) {
5081
5120
  e.clickOutsideEvent = function(l) {
5082
5121
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5085,13 +5124,13 @@ const sa = {
5085
5124
  unmounted(e) {
5086
5125
  document.body.removeEventListener("click", e.clickOutsideEvent);
5087
5126
  }
5088
- }, G = pl(), aa = {
5127
+ }, G = fl(), ra = {
5089
5128
  mounted: (e, t) => {
5090
5129
  e !== null && (t.value, e.oncontextmenu = (l) => {
5091
5130
  l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && G.emit("right-click", { event: l, data: t.value });
5092
5131
  });
5093
5132
  }
5094
- }, ia = {
5133
+ }, ua = {
5095
5134
  mounted(e) {
5096
5135
  }
5097
5136
  };
@@ -5101,7 +5140,7 @@ function He(e, t) {
5101
5140
  l += n[`offset${t}`], n = n.offsetParent;
5102
5141
  return l;
5103
5142
  }
5104
- const ra = {
5143
+ const ca = {
5105
5144
  mounted: (e, t) => {
5106
5145
  if (e === null || !t.value.dev)
5107
5146
  return;
@@ -5127,88 +5166,88 @@ const ra = {
5127
5166
  G.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5128
5167
  }, n.appendChild(a), l.insertBefore(n, l.firstChild);
5129
5168
  }
5130
- }, ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5169
+ }, da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5131
5170
  __proto__: null,
5132
- outClick: sa,
5133
- rightClick: aa,
5134
- resize: ia,
5135
- devtool: ra
5171
+ outClick: ia,
5172
+ rightClick: ra,
5173
+ resize: ua,
5174
+ devtool: ca
5136
5175
  }, Symbol.toStringTag, { value: "Module" }));
5137
5176
  let se;
5138
- function fi(e) {
5177
+ function bi(e) {
5139
5178
  return e ? Pe(D(de.axios, e)) : se;
5140
5179
  }
5141
- function hi(e) {
5142
- const t = D(de, e), l = St(hl), n = ba(t), o = t.plugins || [];
5180
+ function _i(e) {
5181
+ const t = D(de, e), l = Ct(_l), n = ya(t), o = t.plugins || [];
5143
5182
  o.unshift(n), o.forEach((s) => {
5144
- ha(l, s);
5145
- }), t != null && t.mock && Cl(), se = Pe(t.axios), w.dispatch("setHttp", se).then(), w.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = te, window.App = l, window.OmsOptions = t, nl(() => ({
5183
+ _a(l, s);
5184
+ }), t != null && t.mock && Bl(), se = Pe(t.axios), E.dispatch("setHttp", se).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = te, window.App = l, window.OmsOptions = t, al(() => ({
5146
5185
  "X-Token": Oe()
5147
5186
  })), te.isReady().then(() => l.mount("#app"));
5148
5187
  }
5149
- function ca(e, t = {}) {
5188
+ function pa(e, t = {}) {
5150
5189
  Object.keys(t).forEach((l) => {
5151
5190
  e.component(l, t[l]);
5152
5191
  });
5153
5192
  }
5154
- function da(e = []) {
5193
+ function ma(e = []) {
5155
5194
  e.forEach((t) => {
5156
5195
  te.addRoute(t);
5157
- }), w.commit("user/setCustomRoutes", e);
5196
+ }), E.commit("user/setCustomRoutes", e);
5158
5197
  }
5159
- function pa(e, t) {
5198
+ function fa(e, t) {
5160
5199
  t.forEach((l) => {
5161
- $e(l) && (l = [l]), e.use(...l);
5200
+ Ie(l) && (l = [l]), e.use(...l);
5162
5201
  });
5163
5202
  }
5164
- function ma(e, t = {}) {
5203
+ function ha(e, t = {}) {
5165
5204
  Object.keys(t).forEach((l) => {
5166
5205
  e.directive(l, t[l]);
5167
5206
  });
5168
5207
  }
5169
- function fa(e = {}) {
5208
+ function ba(e = {}) {
5170
5209
  const t = ["app", "settings", "user"];
5171
5210
  Object.keys(e).forEach((l) => {
5172
5211
  if (t.indexOf(l) !== -1) {
5173
5212
  console.warn(`storeModule name [${l}] is use by base, please change it!`);
5174
5213
  return;
5175
5214
  }
5176
- w.registerModule(l, e[l]);
5215
+ E.registerModule(l, e[l]);
5177
5216
  });
5178
5217
  }
5179
- function ha(e, t) {
5180
- ca(e, t.components || {}), da(t.routes || []), pa(e, t.use || []), ma(e, t.directives || {}), fa(t.storeModules || {}), ot(t.mockApis || []);
5218
+ function _a(e, t) {
5219
+ pa(e, t.components || {}), ma(t.routes || []), fa(e, t.use || []), ha(e, t.directives || {}), ba(t.storeModules || {}), ot(t.mockApis || []);
5181
5220
  }
5182
- function ba(e) {
5221
+ function ya(e) {
5183
5222
  var t;
5184
5223
  return {
5185
- components: { VIcon: sl },
5186
- directives: ua,
5224
+ components: { VIcon: il },
5225
+ directives: da,
5187
5226
  use: [
5188
- w,
5227
+ E,
5189
5228
  te,
5190
- [el, { locale: Be, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5229
+ [ll, { locale: Be, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5191
5230
  ]
5192
5231
  };
5193
5232
  }
5194
5233
  export {
5195
- Wn as BaseSso,
5234
+ Qn as BaseSso,
5196
5235
  oe as Container,
5197
- Zn as DingTalk,
5236
+ Xn as DingTalk,
5198
5237
  ct as Layout,
5199
5238
  O as MenuType,
5200
5239
  Ne as Message,
5201
5240
  Ve as MessageBox,
5202
5241
  P as PageType,
5203
- Xn as allSso,
5204
- hi as createAdmin,
5242
+ es as allSso,
5243
+ _i as createAdmin,
5205
5244
  G as eventBus,
5206
- Ul as getCmp,
5245
+ Gl as getCmp,
5207
5246
  se as http,
5208
5247
  Pe as instance,
5209
- mi as regViews,
5210
- pi as setCmp,
5211
- ta as transRemoteModules,
5212
- fi as useHttp
5248
+ hi as regViews,
5249
+ fi as setCmp,
5250
+ oa as transRemoteModules,
5251
+ bi as useHttp
5213
5252
  };
5214
5253
  //# sourceMappingURL=index.es.js.map